h_ui
Version:
A Vue.js 2.0 UI Components Framework
26 lines • 103 kB
JavaScript
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/lib/cjs/",n(n.s=1124)}({0:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},10:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},100:function(t,e,n){n(59),n(76),t.exports=n(41).f("iterator")},101:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.innerShow,expression:"innerShow"}],ref:"container",staticClass:"h-select-dropdown",on:{mousedown:function(t){t.stopPropagation()}}},[t._t("default")],2)])},i=[];r._withStripped=!0},102:function(t,e,n){var r=n(9)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},107:function(t,e,n){n(59),n(108),t.exports=n(0).Array.from},108:function(t,e,n){"use strict";var r=n(16),i=n(3),o=n(20),a=n(87),s=n(88),u=n(42),l=n(68),c=n(89);i(i.S+i.F*!n(102)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,f,d=o(t),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,y=0,b=c(d);if(v&&(m=r(m,h>2?arguments[2]:void 0,2)),null==b||p==Array&&s(b))for(n=new p(e=u(d.length));e>y;y++)l(n,y,v?m(d[y],y):d[y]);else for(f=b.call(d),n=new p;!(i=f.next()).done;y++)l(n,y,v?a(f,m,[i.value,y],!0):i.value);return n.length=y,n}})},109:function(t,e,n){t.exports=n(120)},11:function(t,e,n){var r=n(5),i=n(14);t.exports=n(2)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},110:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},111:function(t,e,n){var r=n(149),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},112:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},1124:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(1125)),o=n(32);i.default.install=function(t,e){(0,o.setGlobal)(t,e),t.component("TimePicker",i.default),t.component("HTimePicker",i.default)};var a=i.default;e.default=a},1125:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(359)),o=r(n(685)),a=r(n(380)),s=r(n(203)),u=n(21),l={mixins:[i.default,s.default],components:{TimePickerPanel:o.default,RangeTimePickerPanel:a.default},props:{type:{validator:function(t){return(0,u.oneOf)(t,["time","timerange"])},default:"time"},splitPanels:{type:Boolean,default:!1}},computed:{panel:function(){return"timerange"===this.type?"RangeTimePickerPanel":"TimePickerPanel"},ownPickerProps:function(){return{disabledHours:this.disabledHours,disabledMinutes:this.disabledMinutes,disabledSeconds:this.disabledSeconds,hideDisabledOptions:this.hideDisabledOptions}},localePlaceholder:function(){return void 0===this.placeholder?this.t("i.datepicker.selectTime"):this.placeholder}}};e.default=l},119:function(t,e){t.exports=require("h_ui/dist/lib/cjs/Button.js")},12:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},120:function(t,e,n){n(121),t.exports=n(0).parseFloat},121:function(t,e,n){var r=n(3),i=n(122);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},122:function(t,e,n){var r=n(1).parseFloat,i=n(51).trim;t.exports=1/r(n(35)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},123:function(t,e,n){var r=n(133),i=n(134),o=n(127),a=n(135);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},124:function(t,e){t.exports=require("h_ui/dist/lib/directives/clickoutside.js")},125:function(t,e,n){var r=n(61),i=n(63);function o(e){return t.exports=o="function"==typeof r&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},126:function(t,e,n){t.exports=n(129)},127:function(t,e,n){var r=n(64),i=n(110);t.exports=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?r(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},128:function(t,e){t.exports=require("h_ui/dist/lib/directives/transfer-dom.js")},129:function(t,e,n){n(130),t.exports=n(0).Array.isArray},13:function(t,e,n){var r=n(50),i=n(18);t.exports=function(t){return r(i(t))}},130:function(t,e,n){var r=n(3);r(r.S,"Array",{isArray:n(57)})},133:function(t,e,n){var r=n(126),i=n(110);t.exports=function(t){if(r(t))return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},134:function(t,e,n){var r=n(61),i=n(63),o=n(64);t.exports=function(t){if(void 0!==r&&null!=t[i]||null!=t["@@iterator"])return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},135:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},136:function(t,e,n){var r=n(111).Symbol;t.exports=r},137:function(t,e,n){"use strict";n.r(e),function(t){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function o(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function s(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:u(s(t))}function l(t){return t&&t.referenceNode?t.referenceNode:t}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(t){return 11===t?c:10===t?f:c||f}function p(t){if(!t)return document.documentElement;for(var e=d(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,u=o.commonAncestorContainer;if(t!==u&&e!==u||r.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(u):u;var l=h(t);return l.host?m(l.host,e):m(t,h(e).host)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function y(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(e,"top"),i=v(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function b(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function g(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],d(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function x(t){var e=t.body,n=t.documentElement,r=d(10)&&getComputedStyle(n);return{height:g("Height",e,n,r),width:g("Width",e,n,r)}}var w=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},S=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),_=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function k(t){return O({},t,{right:t.left+t.width,bottom:t.top+t.height})}function P(t){var e={};try{if(d(10)){e=t.getBoundingClientRect();var n=v(t,"top"),r=v(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?x(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,u=o.height||t.clientHeight||i.height,l=t.offsetWidth-s,c=t.offsetHeight-u;if(l||c){var f=a(t);l-=b(f,"x"),c-=b(f,"y"),i.width-=l,i.height-=c}return k(i)}function M(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===e.nodeName,o=P(t),s=P(e),l=u(t),c=a(e),f=parseFloat(c.borderTopWidth),p=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=k({top:o.top-s.top-f,left:o.left-s.left-p,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-v,h.right-=p-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(h=y(h,e)),h}function T(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=M(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return k(u)}function C(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=s(t);return!!n&&C(n)}function D(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function j(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?D(t):m(t,l(e));if("viewport"===r)o=T(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=u(s(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===r?t.ownerDocument.documentElement:r;var f=M(c,a,i);if("HTML"!==c.nodeName||C(a))o=f;else{var d=x(t.ownerDocument),p=d.height,h=d.width;o.top+=f.top-f.marginTop,o.bottom=p+f.top,o.left+=f.left-f.marginLeft,o.right=h+f.left}}var v="number"==typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function E(t){return t.width*t.height}function $(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=j(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map((function(t){return O({key:t},s[t],{area:E(s[t])})})).sort((function(t,e){return e.area-t.area})),l=u.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function A(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?D(e):m(e,l(n));return M(n,i,r)}function L(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function V(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function F(t,e,n){n=n.split("-")[0];var r=L(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=e[a]+e[u]/2-r[u]/2,i[s]=n===s?e[s]-r[l]:e[V(s)],i}function H(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function I(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=H(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&o(n)&&(e.offsets.popper=k(e.offsets.popper),e.offsets.reference=k(e.offsets.reference),e=n(e,t))})),e}function N(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=$(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=F(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=I(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function B(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function U(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if(void 0!==document.body.style[o])return o}return null}function R(){return this.state.isDestroyed=!0,B(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(t){var e=t.ownerDocument;return e?e.defaultView:window}function Y(t,e,n,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),i||Y(u(o.parentNode),e,n,r),r.push(o)}function q(t,e,n,r){n.updateBound=r,W(t).addEventListener("resize",n.updateBound,{passive:!0});var i=u(t);return Y(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function z(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function G(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,W(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function J(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function K(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&J(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var X=n&&/Firefox/i.test(navigator.userAgent);function Q(t,e,n){var r=H(t,(function(t){return t.name===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i);return i}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],tt=Z.slice(3);function et(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=tt.indexOf(t),r=tt.slice(n+1).concat(tt.slice(0,n));return e?r.reverse():r}var nt="flip",rt="clockwise",it="counterclockwise";function ot(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(H(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&a[s].indexOf(",");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return l=l.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){return k("%p"===a?n:r)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,i,e,n)}))})),l.forEach((function(t,e){t.forEach((function(n,r){J(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}var at={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:_({},u,o[u]),end:_({},u,o[u]+o[l]-a[l])};t.offsets.popper=O({},a,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=J(+n)?[+n,0]:ot(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var r=U("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=j(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=u;var l=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(c[t],u[t])),_({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>u[t]&&!e.escapeWithReference&&(r=Math.min(c[n],u[t]-("right"===t?c.width:c.height))),_({},n,r)}};return l.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=O({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(t.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(t.offsets.popper[u]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Q(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=L(r)[c];u[h]-m<s[d]&&(t.offsets.popper[d]-=s[d]-(u[h]-m)),u[d]+m>s[h]&&(t.offsets.popper[d]+=u[d]+m-s[h]),t.offsets.popper=k(t.offsets.popper);var v=u[d]+u[c]/2-m/2,y=a(t.instance.popper),b=parseFloat(y["margin"+f]),g=parseFloat(y["border"+f+"Width"]),x=v-t.offsets.popper[d]-b-g;return x=Math.max(Math.min(s[c]-m,x),0),t.arrowElement=r,t.offsets.arrow=(_(n={},d,Math.round(x)),_(n,p,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(B(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=j(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=V(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case nt:a=[r,i];break;case rt:a=et(r);break;case it:a=et(r,!0);break;default:a=e.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],i=V(r);var l=t.offsets.popper,c=t.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),p=f(l.left)<f(n.left),h=f(l.right)>f(n.right),m=f(l.top)<f(n.top),v=f(l.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),g=!!e.flipVariations&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&m||!b&&"end"===o&&v),x=!!e.flipVariationsByContent&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&v||!b&&"end"===o&&m),w=g||x;(d||y||w)&&(t.flipped=!0,(d||y)&&(r=a[u+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=O({},t.offsets.popper,F(t.instance.popper,t.offsets.reference,t.placement)),t=I(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=V(e),t.offsets.popper=k(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Q(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=H(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=H(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,a=void 0!==o?o:e.gpuAcceleration,s=p(t.instance.popper),u=P(s),l={position:i.position},c=function(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),d=e?c||f||u%2==l%2?o:a:s,p=e?o:s;return{left:d(u%2==1&&l%2==1&&!f&&e?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(t,window.devicePixelRatio<2||!X),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=U("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&h)l[h]="translate3d("+m+"px, "+v+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var y="bottom"===f?-1:1,b="right"===d?-1:1;l[f]=v*y,l[d]=m*b,l.willChange=f+", "+d}var g={"x-placement":t.placement};return t.attributes=O({},g,t.attributes),t.styles=O({},l,t.styles),t.arrowStyles=O({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return K(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&K(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=A(i,e,t,n.positionFixed),a=$(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),K(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},st={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:at},ut=function(){function t(e,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=O({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(O({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){r.options.modifiers[e]=O({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return O({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&o(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return S(t,[{key:"update",value:function(){return N.call(this)}},{key:"destroy",value:function(){return R.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),t}();ut.Utils=("undefined"!=typeof window?window:t).PopperUtils,ut.placements=Z,ut.Defaults=st,e.default=ut}.call(this,n(112))},138:function(t,e,n){var r=n(136),i=n(154),o=n(155),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},140:function(t,e,n){"use strict";n.r(e);var r=n(101),i=n(82);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a=n(4),s=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);e.default=s.exports},141:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},142:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},147:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.toDate=e.siblingMonth=e.prevMonth=e.parseDate=e.nextMonth=e.isInRange=e.initTimeDate=e.getFirstDayOfMonth=e.getDayCountOfMonth=e.formatDateLabels=e.formatDate=e.dateToString=e.clearHours=e.TYPE_VALUE_RESOLVER_MAP=e.DEFAULT_FORMATS=void 0;var i=r(n(167)),o=r(n(374)),a=r(n(123)),s=r(n(316));e.dateToString=function(t){var e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();n<10&&(n="0"+n),r<10&&(r="0"+r);var i="".concat(e).concat(n).concat(r);return t?i:""};var u=function(t){var e=new Date(t);return isNaN(e.getTime())&&"string"==typeof t&&((e=t.split("-").map(Number))[1]+=1,e=(0,o.default)(Date,(0,a.default)(e))),isNaN(e.getTime())?null:e};e.toDate=u;e.clearHours=function(t){var e=new Date(t);return e.setHours(0,0,0,0),e.getTime()};e.isInRange=function(t,e,n){if(!e||!n)return!1;var r=[e,n].sort(),o=(0,i.default)(r,2),a=o[0],s=o[1];return t>=a&&t<=s};var l=function(t,e){var n=u(t);return n?s.default.format(n,e||"yyyy-MM-dd"):""};e.formatDate=l;var c=function(t,e){return s.default.parse(t,e||"yyyy-MM-dd")};e.parseDate=c;var f=function(t,e){return new Date(t,e+1,0).getDate()};e.getDayCountOfMonth=f;e.getFirstDayOfMonth=function(t){var e=new Date(t.getTime());return e.setDate(1),e.getDay()};var d=function(t,e){var n=new Date(t),r=n.getMonth()+e,i=f(n.getFullYear(),r);return i<n.getDate()&&n.setDate(i),n.setMonth(r),n};e.siblingMonth=d;e.prevMonth=function(t){return d(t,-1)};e.nextMonth=function(t){return d(t,1)};e.initTimeDate=function(){var t=new Date;return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t};var p,h,m=(p={yyyy:function(t){return t.getFullYear()},m:function(t){return t.getMonth()+1},mm:function(t){return("0"+(t.getMonth()+1)).slice(-2)},mmm:function(t,e){return t.toLocaleDateString(e,{month:"long"}).slice(0,3)},Mmm:function(t,e){var n=t.toLocaleDateString(e,{month:"long"});return(n[0].toUpperCase()+n.slice(1).toLowerCase()).slice(0,3)},mmmm:function(t,e){return t.toLocaleDateString(e,{month:"long"})},Mmmm:function(t,e){var n=t.toLocaleDateString(e,{month:"long"});return n[0].toUpperCase()+n.slice(1).toLowerCase()}},h=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(t,e,n){var r=e.match(/(\[[^\]]+\])([^\[\]]+)(\[[^\]]+\])/).slice(1);return{separator:r[1],labels:[r[0],r[2]].map((function(e){return{label:e.replace(/\[[^\]]+\]/,(function(e){return e.slice(1,-1).replace(h,(function(e){return p[e](n,t)}))})),type:-1!=e.indexOf("yy")?"year":"month"}}))}});e.formatDateLabels=m;e.DEFAULT_FORMATS={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss",monthrange:"yyyy-MM"};var v=function(t,e){return l(t,e)},y=function(t,e){return c(t,e)},b=function(t,e){if(Array.isArray(t)&&2===t.length){var n=t[0],r=t[1];if(n&&r)return l(n,e)+" - "+l(r,e)}else if(!Array.isArray(t)&&t instanceof Date)return l(t,e);return""},g=function(t,e){var n=Array.isArray(t)?t:t.split(" - ");if(2===n.length){var r=n[0],i=n[1];return[c(r,e),c(i,e)]}return[]},x={default:{formatter:function(t){return t?String(t):""},parser:function(t){return void 0===t||""===t?null:t}},date:{formatter:v,parser:y},datetime:{formatter:v,parser:y},daterange:{formatter:b,parser:g},datetimerange:{formatter:b,parser:g},monthrange:{formatter:b,parser:g},timerange:{formatter:b,parser:g},time:{formatter:v,parser:y},month:{formatter:v,parser:y},year:{formatter:v,parser:y},multiple:{formatter:function(t,e){return t.filter(Boolean).map((function(t){return l(t,e)})).join(",")},parser:function(t,e){return t.split(",").map((function(t){return c(t.trim(),e)}))}},number:{formatter:function(t){return t?String(t):""},parser:function(t){var e=Number(t);return isNaN(t)?null:e}}};e.TYPE_VALUE_RESOLVER_MAP=x},149:function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(112))},15:function(t,e,n){var r=n(38);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},150:function(t,e,n){var r=n(318),i=n(321);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},152:function(t,e){t.exports=require("h_ui/dist/lib/cjs/Input.js")},154:function(t,e,n){var r=n(136),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},155:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},16:function(t,e,n){var r=n(27);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},167:function(t,e,n){var r=n(264),i=n(265),o=n(127),a=n(266);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},17:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},170:function(t,e,n){"use strict";n.r(e);var r=n(171),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e.default=i.a},171:function(t,e,n){"use strict";var r=n(64),i=n(61),o=n(63),a=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(123)),u=a(n(15)),l=a(n(125)),c=a(n(53)),f=a(n(85)),d=a(n(360)),p=a(n(152)),h=a(n(140)),m=a(n(124)),v=a(n(128)),y=n(21),b=n(84),g=n(147),x=a(n(60)),w=a(n(49));function S(t,e){var n=void 0!==i&&t[o]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return r(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var a=0,s=function(){};return{s:s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,l=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){c=!0,u=t},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw u}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var O="h-date-picker",k=function(t){return t.reduce((function(t,e){return t&&!e||"string"==typeof e&&""===e.trim()}),!0)},P={name:"CalendarPicker",mixins:[x.default,w.default],components:{HInput:p.default,Drop:h.default},directives:{clickoutside:m.default,TransferDom:v.default},props:{format:{type:String},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},confirm:{type:Boolean,default:!1},showLong:{type:Boolean,default:!1},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},showWeekNumbers:{type:Boolean,default:!1},startDate:{type:[Date,String]},size:{validator:function(t){return(0,y.oneOf)(t,["small","large"])}},placeholder:{type:String},placement:{validator:function(t){return(0,y.oneOf)(t,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom-start"},options:{type:Object,default:function(){}},timePickerOptions:{default:function(){return{}},type:Object},transfer:{type:Boolean,default:!1},name:{type:String},elementId:{type:String},steps:{type:Array,default:function(){return[]}},value:{type:[Date,String,Array]},longValue:{type:[Date,String,Array]},showFormat:{type:Boolean,default:!1},controlRange:{type:Boolean,default:!1},selectRange:{type:[String,Number],default:1},showTwoPanel:{type:Boolean,default:!1},autoPlacement:{type:Boolean,default:!1},clearOnIllegal:{type:Boolean,default:!1},iconVisible:{type:Boolean,default:!1},pickMode:{type:String,validator:function(t){return(0,y.oneOf)(t,["click","move"])},default:"click"},tabindex:{type:[String,Number],default:"0",validator:function(t){var e=(0,c.default)(t,10);return e<=32767&&e>=-1}},showToday:{type:Boolean,default:!1},valueTypeArr:{type:Boolean,default:!1},unlinkPanels:{type:Boolean,default:!1},defaultValue:{type:[Date,String],default:function(){return new Date}},deleteNotAllClear:{type:Boolean,default:!1},designWeek:{type:Array,default:function(){return[]}},validateValueChange:{type:Boolean,default:!0},targetNode:{type:[Element,String]},numberValue:{type:Boolean,default:!1},useCurrentTime:{type:Boolean,default:!1},dblclickClose:{type:Boolean,default:!1},titleShow:{type:Boolean,default:!1},positionFixed:{type:Boolean,default:!1},customTransferClassName:{type:String},dateCellClass:{type:Function},selectDateDefaultTime:{type:String,validator:function(t){var e="Invalid Date"!==new Date("1970-01-01 "+t).toString();return e}},selectDateHoldTime:{type:Boolean,default:!1}},provide:function(){return{defaultValue:"object"===(0,l.default)(this.defaultValue)?this.defaultValue:new Date(this.defaultValue)}},data:function(){var t=this.value,e=this.type.indexOf("range")>-1;"string"==typeof this.value&&this.type.includes("range")&&(t=this.value.split(" - "));var n=e?[null,null]:[null],r=k((e?t:[t])||[])?n:this.parseDate(t);return"splicePanel"==this.name&&t[0]&&(r=this.parseDate(t)),{prefixCls:O,showClose:!1,visible:!1,internalValue:r,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:this.onSelectionModeChange(this.type),forceInputRerender:1,isFocus:!1,rangeNum:0,fPlacement:this.placement,viewValue:null,cursorPos:19}},computed:{dropdownCls:function(){var t,e=this.globalMixinInfo?this.globalMixinInfo.theme:"";return t={},(0,u.default)(t,O+"-dropdown-transfer",(0,y.findComponentParent)(this,["Msgbox","Drawer"])&&this.transfer),(0,u.default)(t,O+"-transfer",(0,y.findComponentParent)(this,"Msgbox")&&this.transfer),(0,u.default)(t,this.customTransferClassName,this.transfer&&!!this.customTransferClassName),(0,u.default)(t,"v-transfer-dom",this.transfer),(0,u.default)(t,e,this.transfer&&!!this.globalMixinInfo),t},publicVModelValue:function(){if(this.multiple)return this.internalValue.slice();if(k(this.internalValue)&&this.type.includes("range"))return[];var t=this.type.indexOf("range")>-1,e=this.internalValue.map((function(t){return t instanceof Date?new Date(t):t||""}));return this.type.match(/^time/)&&(e=e.map(this.formatDate)),t||this.multiple?e:e[0]},publicStringValue:function(){var t=this.formatDate,e=this.publicVModelValue;if(this.type.match(/^time/))return e;if(Array.isArray(e)){var n=e.map(t);return k(n)&&this.type.includes("range")?[]:n}return t(e)},opened:{get:function(){return null===this.open?this.visible:this.open},set:function(t){this.visible=t}},iconType:function(){var t="activity";return"time"!==this.type&&"timerange"!==this.type||(t="time"),this.showClose&&(t="close"),t},transition:function(){return this.fPlacement.match(/^bottom/)?"slide-up":"slide-down"},visualValue:function(){return this.viewValue=this.formatDate(this.internalValue),this.formatDate(this.internalValue)},isConfirm:function(){return this.confirm||"datetime"===this.type||"datetimerange"===this.type||this.multiple||this.showLong||this.showToday}},methods:{clickHandler:function(){this.cursorPos=this.$refs.input.$el.querySelector("input").selectionStart},keyUpHandler:function(t){var e=this,n=this.$refs.input?this.$refs.input.$el.querySelector("input"):null;if("move"===this.pickMode&&null!==n)switch(t.keyCode){case 38:t.preventDefault(),n.setSelectionRange(0,this.cursorPos),setTimeout((function(){n.setSelectionRange(e.cursorPos,e.cursorPos),e.changeValue("up")}),100);break;case 40:t.preventDefault(),n.setSelectionRange(0,this.cursorPos),setTimeout((function(){n.setSelectionRange(e.cursorPos,e.cursorPos),e.changeValue("down")}),100);break;case 37:if(t.preventDefault(),13===this.cursorPos)this.cursorPos-=5;else this.cursorPos-=3;this.cursorPos<0&&(this.cursorPos=0),n.setSelectionRange(this.cursorPos,this.cursorPos);break;case 39:if(t.preventDefault(),6===this.cursorPos)this.cursorPos+=5;else this.cursorPos+=3;this.cursorPos>19&&(this.cursorPos=19),n.setSelectionRange(this.cursorPos,this.cursorPos)}},changeValue:function(t){var e=this,n="up"===t?1e3:-1e3,r=-1;if(this.cursorPos<9?r=Math.ceil((this.cursorPos+1)/3)-1:this.cursorPos>10&&(r=Math.ceil((this.cursorPos-10)/3)+3-1),-1!==r){var i,o;if(r<3)i=null!==this.internalValue[0]?new Date(this.internalValue[0]).getTime()+n*Math.pow(60,2-r):new Date(1970,1,1,0,0,0),this.$set(this.internalValue,0,new Date(i));else o=null!==this.internalValue[1]?new Date(this.internalValue[1]).getTime()+n*Math.pow(60,5-r):new Date(1970,1,1,0,0,0),this.$set(this.internalValue,1,new Date(o));this.$nextTick((function(){e.$refs.input.$el.querySelector("input").setSelectionRange(e.cursorPos,e.cursorPos)}))}},onSelectionModeChange:function(t){var e=t;return e.match(/^date/)&&(e="date"),e.match(/^month/)&&(e="month"),this.selectionMode=(0,y.oneOf)(e,["year","month","date","time"])&&e,this.$refs.drop&&this.$refs.drop.update(),this.selectionMode},handleTransferClick:function(){this.transfer&&(this.disableCloseUnderTransfer=!0)},handleClose:function(){if(this.disableCloseUnderTransfer)return this.disableCloseUnderTransfer=!1,!1;null===this.open&&(this.visible=!1,this.disableClickOutSide=!1,this.isFocus&&(this.isFocus=!1))},handleFocus:function(){this.isFocus=!0,this.iconVisible||(this.handleVisible(!0),this.$emit("on-focus"),this.dispatch("FormItem","on-form-focus"))},handleVisible:function(t){this.readonly||this.disabled||(this.visible=t,this.$refs.pickerPanel.onToggleVisibility(t),t&&this.$refs.input&&this.focus())},fold:function(){this.visible=!1},focus:function(){var t=this;if(this.disabled)return!1;setTimeout((function(){t.iconVisible||(t.visible=!0,t.$refs.pickerPanel.onToggleVisibility(!0)),t.isFocus=!0,t.$refs.input&&t.$refs.input.focus(),""!==t.value&&t.select()}),0)},blur:function(){this.isFocus&&this.dispatch("FormItem","on-form-blur",this.currentValue),this.visible=!1,this.$refs.pickerPanel.onToggleVisibility(!1),this.isFocus=!1,this.$refs.input&&this.$refs.input.blur()},select:function(){this.$refs.input&&this.$refs.input.select()},handleBlur:function(){navigator.userAgent.indexOf("MSIE")>=0||navigator.userAgent.indexOf("Trident")>=0||(this.visible=!1),this.onSelectionModeChange(this.type),this.internalValue=this.internalValue.slice(),this.reset(),this.visible=!1,this.$refs.pickerPanel.onToggleVisibility(!1),this.$emit("on-blur"),this.dispatch("FormItem","on-form-blur")},reset:function(){this.$refs.pickerPanel.reset&&this.$refs.pickerPanel.reset()},checkLegality:function(t,e){if(["date","daterange","datetime","datetimerange"].indexOf(this.type)>-1){var n=this.type.indexOf("range")>-1;if(e[0]instanceof Date&&(!n||e[1]instanceof Date)){var r,i=S(["yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"]);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=this.type.indexOf("time")>-1?o+" HH:mm:ss":o;if((n?(0,g.formatDate)(e[0].toString(),a)+" - "+(0,g.formatDate)(e[1].toString(),a):(0,g.formatDate)(e[0].toString(),a))===t)return!n||e[0]<=e[1]}}catch(t){i.e(t)}finally{i.f()}}return!1}return!0},handleInput:function(t){0===t.length&&(this.internalValue=this.internalValue.map((function(){return null})))},handleInputChange:function(t){var e=this;this.$nextTick((function(){e.$refs.input.setCurrentValue(e.visualValue)}));var n=this.type.indexOf("range")>-1||this.multiple,r=this.visualValue,i=t.target.value,o=this.parseDate(i),a=this.options&&"function"==typeof this.options.disabledDate&&this.options.disabledDate,s=n?o:o[0],u=a&&a(s),l=this.checkLegality(i,o);this.type.indexOf("range")>-1&&o[0]>o[1]&&(o=o.reverse()),i!==r&&!u&&l?(this.internalValue=o,this.emitChange()):!this.clearOnIllegal||l&&!u||(this.handleClear(),this.$emit("on-illegal-input",i))},handleInputMouseenter:function(){this.readonly||this.disabled||this.visualValue&&this.clearable&&(this.showClose=!0)},handleInputMouseleave:function(){this.showClose=!1},handleIconClick:function(){this.showClose?this.handleClear():this.disabled||(this.iconVisible&&this.isFocus||(this.isFocus=!this.isFocus),this.handleVisible(this.isFocus))},handleClear:function(){var t=this;this.visible=!1,this.internalValue=this.internalValue.map((function(){return null})),this.$emit("on-clear"),this.dispatch("FormItem","on-form-change",""),this.emitChange(),this.reset(),setTimeout((function(){return t.onSelectionModeChange(t.type)}),500)},emitChange:function(){var t=this;this.$nextTick((function(){t.dispatch("FormItem","on-form-change",t.publicStringValue)}))},parseDate:function(t){var e=t,n=this.type.indexOf("range")>-1,r=this.type,i=(g.TYPE_VALUE_RESOLVER_MAP[r]||g.TYPE_VALUE_RESOLVER_MAP.default).parser,o=this.format||g.DEFAULT_FORMATS[r],a=g.TYPE_VALUE_RESOLVER_MAP.multiple.parser;return!e||"time"!==r||e instanceof Date?this.multiple&&e?e=a(e,o):n?e=e?"string"==typeof e||"timerange"===r||Array.isArray(e)&&o.toLowerCase().indexOf("yyyymmdd")>-1?i(e,o):(e=e.map((function(t){return new Date(t)}))).map((function(t){return isNaN(t.getTime())?null:t})):[null,null]:"string"==typeof e&&0!==r.indexOf("time")&&(e=i(e,o)||null):e=i(e,o),n||this.multiple?e||[]:[e]},formatDate:function(t){var e=g.DEFAULT_FORMATS[this.type];return this.multiple?(0,g.TYPE_VALUE_RESOLVER_MAP.multiple.formatter)(t,this.format||e):(0,(g.TYPE_VALUE_RESOLVER_MAP[this.type]||g.TYPE_VALUE_RESOLVER_MAP.default).formatter)(t,this.format||e)},onPick:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.multiple){var n=t.getTime(),r=this.internalValue.findIndex((function(t){return t&&t.getTime()===n})),i=[].concat((0,s.default)(this.internalValue),[t]).filter(Boolean),o=i.map((function(t){return t.getTime()})).filter((function(t,e,n){return n.indexOf(t)===e&&e!==r}));this.internalValue=o.map((function(t){return new Date(t)}))}else this.internalValue=Array.isArray(t)?t:[t];2===this.internalValue.length?this.cursorPos=19:this.cursorPos=8,this.isConfirm||this.onSelectionModeChange(this.type),(!this.isConfirm||this.showToday&&"datetime"!==this.type)&&(this.visible=e),this.emitChange(),this.iconVisible&&this.focus()},onPickSuccess:function(){this.visible=!1,this.$emit("on-ok"),this.reset()},handleSelectRange:function(t,e){this.$emit("on-select-range",t,e)},handleclick:function(t){t.stopPropagation()},handleKeydown:function(t){var e=t.keyCode;if(this.visible&&27===e&&(t.preventDefault(),this.visible=!1),46===e&&!this.deleteNotAllClear){if(this.readonly||this.disabled)return;t.preventDefault(),this.handleClear(),this.focus()}},handleLongDate:function(){var t=this.type.indexOf("range")>-1,e=t?[null,null]:[null],n=t?this.parseDate([this.longValue,this.longValue]):this.parseDate(this.longValue),r=k([this.longValue]||!1)?e:n;if(r[0]){if(t){var i=this.internalValue[0]?this.internalValue[0].getTime():0,o=r[0].getTime();if(0===i||o-i<0)return;this.$set(this.internalValue,1,r[0])}else this.internalValue=r;this.emitChange()}},handlePickToday:function(){var t=this.options&&"function"==typeof this.options.disabledDate&&this.options.disabledDate,e=new Date;t&&t(e)||(this.$set(this.internalValue,0,new Date(this.defaultValue)),this.visible=!1,this.emitChange())},getDate:function(t){return t.replace(/[^0-9]/gi,"")}},watch:{visible:function(t){var e=this;if(!1===t){var n=this.$refs.input;n&&n.blur(),setTimeout((function(){e.dispatch("Msgbox","on-esc-real-close",!0)}),0)}else setTimeout((function(){e.dispatch("Msgbox","on-esc-real-close",!1)}),0);this.$refs.drop.update(),(this.open||null===this.open)&&(this.open||this.$emit("on-open-change",t))},value:{handler:function(t,e){"DatePicker"===this.$options.name||"hDatePicker"===this.$options.name?window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui datepicker watch value change: "+(0,f.default)(t)):"TimePicker"===this.$options.name||"hTimePicker"===this.$options.name?window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui timepicker watch value change: "+(0,f.default)(t)):"SplicePanel"!==this.$options.name&&"hSplicePanel"!==this.$options.name||window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui splicepanel watch value change: "+(0,f.default)(t)),this.internalValue=this.parseDate(t),this.validateValueChange&&((0,d.default)(t)&&(0,d.default)(e)||this.dispatch("FormItem",