UNPKG

h_ui

Version:

A Vue.js 2.0 UI Components Framework

26 lines 130 kB
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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="/dist/lib/cjs/",n(n.s=1091)}({0:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(e,t){var n=e.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(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},100:function(e,t,n){n(59),n(76),e.exports=n(41).f("iterator")},101:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.innerShow,expression:"innerShow"}],ref:"container",staticClass:"h-select-dropdown",on:{mousedown:function(e){e.stopPropagation()}}},[e._t("default")],2)])},i=[];r._withStripped=!0},102:function(e,t,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(e){}e.exports=function(e,t){if(!t&&!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},e(o)}catch(e){}return n}},104:function(e,t,n){e.exports=n(113)},105:function(e,t,n){e.exports=n(114)},106:function(e,t,n){e.exports=n(116)},107:function(e,t,n){n(59),n(108),e.exports=n(0).Array.from},108:function(e,t,n){"use strict";var r=n(16),i=n(3),o=n(20),a=n(87),s=n(88),l=n(42),u=n(68),c=n(89);i(i.S+i.F*!n(102)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,d=o(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,g=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(t=l(d.length));t>g;g++)u(n,g,v?m(d[g],g):d[g]);else for(f=b.call(d),n=new p;!(i=f.next()).done;g++)u(n,g,v?a(f,m,[i.value,g],!0):i.value);return n.length=g,n}})},109:function(e,t,n){e.exports=n(120)},1091:function(e,t,n){"use strict";var r=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1092)),o=n(32);i.default.install=function(e,t){(0,o.setGlobal)(e,t),e.component("SplicePanel",i.default),e.component("HSplicePanel",i.default)};var a=i.default;t.default=a},1092:function(e,t,n){"use strict";var r=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(359)),o=r(n(1093)),a=n(21),s={mixins:[i.default],props:{type:{validator:function(e){return(0,a.oneOf)(e,["daterange","datetimerange"])},default:"daterange"},value:{},showLong:{type:Boolean,default:!1},longValue:{type:[Date,String,Array]},splitPanels:{type:Boolean,default:!0},name:{type:String,default:"splicePanel"}},components:{SpliceRange:o.default},computed:{panel:function(){return"SpliceRange"},ownPickerProps:function(){return this.options},localePlaceholder:function(){return void 0===this.placeholder?this.t("i.datepicker.selectDate"):this.placeholder}}};t.default=s},1093:function(e,t,n){"use strict";n.r(t);var r=n(788),i=n(589);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(4),s=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);t.default=s.exports},11:function(e,t,n){var r=n(5),i=n(14);e.exports=n(2)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},110:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},111:function(e,t,n){var r=n(149),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},112:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},113:function(e,t,n){n(66),e.exports=n(0).Object.getOwnPropertySymbols},114:function(e,t,n){n(115);var r=n(0).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},115:function(e,t,n){var r=n(13),i=n(46).f;n(58)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},116:function(e,t,n){n(117),e.exports=n(0).Object.getOwnPropertyDescriptors},117:function(e,t,n){var r=n(3),i=n(118),o=n(13),a=n(46),s=n(68);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),l=a.f,u=i(r),c={},f=0;u.length>f;)void 0!==(n=l(r,t=u[f++]))&&s(c,t,n);return c}})},118:function(e,t,n){var r=n(44),i=n(36),o=n(12),a=n(1).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},119:function(e,t){e.exports=require("h_ui/dist/lib/cjs/Button.js")},12:function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},120:function(e,t,n){n(121),e.exports=n(0).parseFloat},121:function(e,t,n){var r=n(3),i=n(122);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},122:function(e,t,n){var r=n(1).parseFloat,i=n(51).trim;e.exports=1/r(n(35)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},123:function(e,t,n){var r=n(133),i=n(134),o=n(127),a=n(135);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},124:function(e,t){e.exports=require("h_ui/dist/lib/directives/clickoutside.js")},125:function(e,t,n){var r=n(61),i=n(63);function o(t){return e.exports=o="function"==typeof r&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},126:function(e,t,n){e.exports=n(129)},127:function(e,t,n){var r=n(64),i=n(110);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?r(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},128:function(e,t){e.exports=require("h_ui/dist/lib/directives/transfer-dom.js")},129:function(e,t,n){n(130),e.exports=n(0).Array.isArray},13:function(e,t,n){var r=n(50),i=n(18);e.exports=function(e){return r(i(e))}},130:function(e,t,n){var r=n(3);r(r.S,"Array",{isArray:n(57)})},133:function(e,t,n){var r=n(126),i=n(110);e.exports=function(e){if(r(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},134:function(e,t,n){var r=n(61),i=n(63),o=n(64);e.exports=function(e){if(void 0!==r&&null!=e[i]||null!=e["@@iterator"])return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},135:function(e,t){e.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.")},e.exports.__esModule=!0,e.exports.default=e.exports},136:function(e,t,n){var r=n(111).Symbol;e.exports=r},137:function(e,t,n){"use strict";n.r(t),function(e){ /**! * @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 e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:l(s(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?c:10===e?f:c||f}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.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:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(l):l;var u=h(e);return u.host?m(u.host,t):m(e,h(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),i=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),D=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function P(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?w(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,l=o.height||e.clientHeight||i.height,u=e.offsetWidth-s,c=e.offsetHeight-l;if(u||c){var f=a(e);u-=b(f,"x"),c-=b(f,"y"),i.width-=u,i.height-=c}return P(i)}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===t.nodeName,o=_(e),s=_(t),u=l(e),c=a(t),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=P({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?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(h=g(h,t)),h}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=M(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return P(l)}function C(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&C(n)}function T(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function j(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?T(e):m(e,u(t));if("viewport"===r)o=O(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=l(s(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===r?e.ownerDocument.documentElement:r;var f=M(c,a,i);if("HTML"!==c.nodeName||C(a))o=f;else{var d=w(e.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){return e.width*e.height}function E(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=j(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return S({key:e},s[e],{area:$(s[e])})})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function L(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?T(t):m(t,u(n));return M(n,i,r)}function V(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function F(e,t,n){n=n.split("-")[0];var r=V(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[A(s)],i}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function H(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=N(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function;var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=P(t.offsets.popper),t.offsets.reference=P(t.offsets.reference),t=n(t,e))})),t}function I(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=E(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=F(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=H(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function B(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function U(){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[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Y(e){var t=e.ownerDocument;return t?t.defaultView:window}function W(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||W(l(o.parentNode),t,n,r),r.push(o)}function q(e,t,n,r){n.updateBound=r,Y(e).addEventListener("resize",n.updateBound,{passive:!0});var i=l(e);return W(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 e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Y(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function J(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&J(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var X=n&&/Firefox/i.test(navigator.userAgent);function Q(e,t,n){var r=N(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.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"],ee=Z.slice(3);function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne="flip",re="clockwise",ie="counterclockwise";function oe(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(N(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&a[s].indexOf(",");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return P("%p"===a?n:r)[t]/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}(e,i,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,r){J(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var ae={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:D({},l,o[l]),end:D({},l,o[l]+o[u]-a[u])};e.offsets.popper=S({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=J(+n)?[+n,0]:oe(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=R("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=j(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),D({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),D({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=S({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Q(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,l=o.reference,u=-1!==["left","right"].indexOf(i),c=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),p=u?"left":"top",h=u?"bottom":"right",m=V(r)[c];l[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(l[h]-m)),l[d]+m>s[h]&&(e.offsets.popper[d]+=l[d]+m-s[h]),e.offsets.popper=P(e.offsets.popper);var v=l[d]+l[c]/2-m/2,g=a(e.instance.popper),b=parseFloat(g["margin"+f]),y=parseFloat(g["border"+f+"Width"]),w=v-e.offsets.popper[d]-b-y;return w=Math.max(Math.min(s[c]-m,w),0),e.arrowElement=r,e.offsets.arrow=(D(n={},d,Math.round(w)),D(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(B(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=j(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=A(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ne:a=[r,i];break;case re:a=te(r);break;case ie:a=te(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=A(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)<f(c.right)||"top"===r&&f(u.bottom)>f(c.top)||"bottom"===r&&f(u.top)<f(c.bottom),p=f(u.left)<f(n.left),h=f(u.right)>f(n.right),m=f(u.top)<f(n.top),v=f(u.bottom)>f(n.bottom),g="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&m||!b&&"end"===o&&v),w=!!t.flipVariationsByContent&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&v||!b&&"end"===o&&m),x=y||w;(d||g||x)&&(e.flipped=!0,(d||g)&&(r=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=S({},e.offsets.popper,F(e.instance.popper,e.offsets.reference,e.placement)),e=H(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.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),e.placement=A(t),e.offsets.popper=P(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=N(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration,a=void 0!==o?o:t.gpuAcceleration,s=p(e.instance.popper),l=_(s),u={position:i.position},c=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),u=o(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||l%2==u%2?o:a:s,p=t?o:s;return{left:d(l%2==1&&u%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!X),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=R("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&h)u[h]="translate3d("+m+"px, "+v+"px, 0)",u[f]=0,u[d]=0,u.willChange="transform";else{var g="bottom"===f?-1:1,b="right"===d?-1:1;u[f]=v*g,u[d]=m*b,u.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=S({},y,e.attributes),e.styles=S({},u,e.styles),e.arrowStyles=S({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=L(i,t,e,n.positionFixed),a=E(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},se={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ae},le=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=S({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return k(e,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),e}();le.Utils=("undefined"!=typeof window?window:e).PopperUtils,le.placements=Z,le.Defaults=se,t.default=le}.call(this,n(112))},138:function(e,t,n){var r=n(136),i=n(154),o=n(155),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},14:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},140:function(e,t,n){"use strict";n.r(t);var r=n(101),i=n(82);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(4),s=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);t.default=s.exports},141:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},142:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},147:function(e,t,n){"use strict";var r=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.toDate=t.siblingMonth=t.prevMonth=t.parseDate=t.nextMonth=t.isInRange=t.initTimeDate=t.getFirstDayOfMonth=t.getDayCountOfMonth=t.formatDateLabels=t.formatDate=t.dateToString=t.clearHours=t.TYPE_VALUE_RESOLVER_MAP=t.DEFAULT_FORMATS=void 0;var i=r(n(167)),o=r(n(374)),a=r(n(123)),s=r(n(316));t.dateToString=function(e){var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();n<10&&(n="0"+n),r<10&&(r="0"+r);var i="".concat(t).concat(n).concat(r);return e?i:""};var l=function(e){var t=new Date(e);return isNaN(t.getTime())&&"string"==typeof e&&((t=e.split("-").map(Number))[1]+=1,t=(0,o.default)(Date,(0,a.default)(t))),isNaN(t.getTime())?null:t};t.toDate=l;t.clearHours=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()};t.isInRange=function(e,t,n){if(!t||!n)return!1;var r=[t,n].sort(),o=(0,i.default)(r,2),a=o[0],s=o[1];return e>=a&&e<=s};var u=function(e,t){var n=l(e);return n?s.default.format(n,t||"yyyy-MM-dd"):""};t.formatDate=u;var c=function(e,t){return s.default.parse(e,t||"yyyy-MM-dd")};t.parseDate=c;var f=function(e,t){return new Date(e,t+1,0).getDate()};t.getDayCountOfMonth=f;t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()};var d=function(e,t){var n=new Date(e),r=n.getMonth()+t,i=f(n.getFullYear(),r);return i<n.getDate()&&n.setDate(i),n.setMonth(r),n};t.siblingMonth=d;t.prevMonth=function(e){return d(e,-1)};t.nextMonth=function(e){return d(e,1)};t.initTimeDate=function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e};var p,h,m=(p={yyyy:function(e){return e.getFullYear()},m:function(e){return e.getMonth()+1},mm:function(e){return("0"+(e.getMonth()+1)).slice(-2)},mmm:function(e,t){return e.toLocaleDateString(t,{month:"long"}).slice(0,3)},Mmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return(n[0].toUpperCase()+n.slice(1).toLowerCase()).slice(0,3)},mmmm:function(e,t){return e.toLocaleDateString(t,{month:"long"})},Mmmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return n[0].toUpperCase()+n.slice(1).toLowerCase()}},h=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(e,t,n){var r=t.match(/(\[[^\]]+\])([^\[\]]+)(\[[^\]]+\])/).slice(1);return{separator:r[1],labels:[r[0],r[2]].map((function(t){return{label:t.replace(/\[[^\]]+\]/,(function(t){return t.slice(1,-1).replace(h,(function(t){return p[t](n,e)}))})),type:-1!=t.indexOf("yy")?"year":"month"}}))}});t.formatDateLabels=m;t.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(e,t){return u(e,t)},g=function(e,t){return c(e,t)},b=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return u(n,t)+" - "+u(r,t)}else if(!Array.isArray(e)&&e instanceof Date)return u(e,t);return""},y=function(e,t){var n=Array.isArray(e)?e:e.split(" - ");if(2===n.length){var r=n[0],i=n[1];return[c(r,t),c(i,t)]}return[]},w={default:{formatter:function(e){return e?String(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:v,parser:g},datetime:{formatter:v,parser:g},daterange:{formatter:b,parser:y},datetimerange:{formatter:b,parser:y},monthrange:{formatter:b,parser:y},timerange:{formatter:b,parser:y},time:{formatter:v,parser:g},month:{formatter:v,parser:g},year:{formatter:v,parser:g},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return u(e,t)})).join(",")},parser:function(e,t){return e.split(",").map((function(e){return c(e.trim(),t)}))}},number:{formatter:function(e){return e?String(e):""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}}};t.TYPE_VALUE_RESOLVER_MAP=w},149:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(112))},15:function(e,t,n){var r=n(38);e.exports=function(e,t,n){return t in e?r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},150:function(e,t,n){var r=n(318),i=n(321);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},152:function(e,t){e.exports=require("h_ui/dist/lib/cjs/Input.js")},154:function(e,t,n){var r=n(136),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},155:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},16:function(e,t,n){var r=n(27);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},167:function(e,t,n){var r=n(264),i=n(265),o=n(127),a=n(266);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},17:function(e,t,n){var r=n(6);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},170:function(e,t,n){"use strict";n.r(t);var r=n(171),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},171:function(e,t,n){"use strict";var r=n(64),i=n(61),o=n(63),a=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a(n(123)),l=a(n(15)),u=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)),g=n(21),b=n(84),y=n(147),w=a(n(60)),x=a(n(49));function k(e,t){var n=void 0!==i&&e[o]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return r(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,s=function(){};return{s:s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},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 l,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,l=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw l}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S="h-date-picker",P=function(e){return e.reduce((function(e,t){return e&&!t||"string"==typeof t&&""===t.trim()}),!0)},_={name:"CalendarPicker",mixins:[w.default,x.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(e){return(0,g.oneOf)(e,["small","large"])}},placeholder:{type:String},placement:{validator:function(e){return(0,g.oneOf)(e,["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(e){return(0,g.oneOf)(e,["click","move"])},default:"click"},tabindex:{type:[String,Number],default:"0",validator:function(e){var t=(0,c.default)(e,10);return t<=32767&&t>=-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(e){var t="Invalid Date"!==new Date("1970-01-01 "+e).toString();return t}},selectDateHoldTime:{type:Boolean,default:!1}},provide:function(){return{defaultValue:"object"===(0,u.default)(this.defaultValue)?this.defaultValue:new Date(this.defaultValue)}},data:function(){var e=this.value,t=this.type.indexOf("range")>-1;"string"==typeof this.value&&this.type.includes("range")&&(e=this.value.split(" - "));var n=t?[null,null]:[null],r=P((t?e:[e])||[])?n:this.parseDate(e);return"splicePanel"==this.name&&e[0]&&(r=this.parseDate(e)),{prefixCls:S,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 e,t=this.globalMixinInfo?this.globalMixinInfo.theme:"";return e={},(0,l.default)(e,S+"-dropdown-transfer",(0,g.findComponentParent)(this,["Msgbox","Drawer"])&&this.transfer),(0,l.default)(e,S+"-transfer",(0,g.findComponentParent)(this,"Msgbox")&&this.transfer),(0,l.default)(e,this.customTransferClassName,this.transfer&&!!this.customTransferClassName),(0,l.default)(e,"v-transfer-dom",this.transfer),(0,l.default)(e,t,this.transfer&&!!this.globalMixinInfo),e},publicVModelValue:function(){if(this.multiple)return this.internalValue.slice();if(P(this.internalValue)&&this.type.includes("range"))return[];var e=this.type.indexOf("range")>-1,t=this.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return this.type.match(/^time/)&&(t=t.map(this.formatDate)),e||this.multiple?t:t[0]},publicStringValue:function(){var e=this.formatDate,t=this.publicVModelValue;if(this.type.match(/^time/))return t;if(Array.isArray(t)){var n=t.map(e);return P(n)&&this.type.includes("range")?[]:n}return e(t)},opened:{get:function(){return null===this.open?this.visible:this.open},set:function(e){this.visible=e}},iconType:function(){var e="activity";return"time"!==this.type&&"timerange"!==this.type||(e="time"),this.showClose&&(e="close"),e},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(e){var t=this,n=this.$refs.input?this.$refs.input.$el.querySelector("input"):null;if("move"===this.pickMode&&null!==n)switch(e.keyCode){case 38:e.preventDefault(),n.setSelectionRange(0,this.cursorPos),setTimeout((function(){n.setSelectionRange(t.cursorPos,t.cursorPos),t.changeValue("up")}),100);break;case 40:e.preventDefault(),n.setSelectionRange(0,this.cursorPos),setTimeout((function(){n.setSelectionRange(t.cursorPos,t.cursorPos),t.changeValue("down")}),100);break;case 37:if(e.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(e.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(e){var t=this,n="up"===e?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(){t.$refs.input.$el.querySelector("input").setSelectionRange(t.cursorPos,t.cursorPos)}))}},onSelectionModeChange:function(e){var t=e;return t.match(/^date/)&&(t="date"),t.match(/^month/)&&(t="month"),this.selectionMode=(0,g.oneOf)(t,["year","month","date","time"])&&t,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(e){this.readonly||this.disabled||(this.visible=e,this.$refs.pickerPanel.onToggleVisibility(e),e&&this.$refs.input&&this.focus())},fold:function(){this.visible=!1},focus:function(){var e=this;if(this.disabled)return!1;setTimeout((function(){e.iconVisible||(e.visible=!0,e.$refs.pickerPanel.onToggleVisibility(!0)),e.isFocus=!0,e.$refs.input&&e.$refs.input.focus(),""!==e.value&&e.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(e,t){if(["date","daterange","datetime","datetimerange"].indexOf(this.type)>-1){var n=this.type.indexOf("range")>-1;if(t[0]instanceof Date&&(!n||t[1]instanceof Date)){var r,i=k(["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,y.formatDate)(t[0].toString(),a)+" - "+(0,y.formatDate)(t[1].toString(),a):(0,y.formatDate)(t[0].toString(),a))===e)return!n||t[0]<=t[1]}}catch(e){i.e(e)}finally{i.f()}}return!1}return!0},handleInput:function(e){0===e.length&&(this.internalValue=this.internalValue.map((function(){return null})))},handleInputChange:function(e){var t=this;this.$nextTick((function(){t.$refs.input.setCurrentValue(t.visualValue)}));var n=this.type.indexOf("range")>-1||this.multiple,r=this.visualValue,i=e.target.value,o=this.parseDate(i),a=this.options&&"function"==typeof this.options.disabledDate&&this.options.disabledDate,s=n?o:o[0],l=a&&a(s),u=this.checkLegality(i,o);this.type.indexOf("range")>-1&&o[0]>o[1]&&(o=o.reverse()),i!==r&&!l&&u?(this.internalValue=o,this.emitChange()):!this.clearOnIllegal||u&&!l||(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 e=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 e.onSelectionModeChange(e.type)}),500)},emitChange:function(){var e=this;this.$nextTick((function(){e.dispatch("FormItem","on-form-change",e.publicStringValue)}))},parseDate:function(e){var t=e,n=this.type.indexOf("range")>-1,r=this.type,i=(y.TYPE_VALUE_RESOLVER_MAP[r]||y.TYPE_VALUE_RESOLVER_MAP.default).parser,o=this.format||y.DEFAULT_FORMATS[r],a=y.TYPE_VALUE_RESOLVER_MAP.multiple.parser;return!t||"time"!==r||t instanceof Date?this.multiple&&t?t=a(t,o):n?t=t?"string"==typeof t||"timerange"===r||Array.isArray(t)&&o.toLowerCase().indexOf("yyyymmdd")>-1?i(t,o):(t=t.map((function(e){return new Date(e)}))).map((function(e){return isNaN(e.getTime())?null:e})):[null,null]:"string"==typeof t&&0!==r.indexOf("time")&&(t=i(t,o)||null):t=i(t,o),n||this.multiple?t||[]:[t]},formatDate:function(e){var t=y.DEFAULT_FORMATS[this.type];return this.multiple?(0,y.TYPE_VALUE_RESOLVER_MAP.multiple.formatter)(e,this.format||t):(0,(y.TYPE_VALUE_RESOLVER_MAP[this.type]||y.TYPE_VALUE_RESOLVER_MAP.default).formatter)(e,this.format||t)},onPick:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.multiple){var n=e.getTime(),r=this.internalValue.findIndex((function(e){return e&&e.getTime()===n})),i=[].concat((0,s.default)(this.internalValue),[e]).filter(Boolean),o=i.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==r}));this.internalValue=o.map((function(e){return new Date(e)}))}else this.internalValue=Array.isArray(e)?e:[e];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=t),this.emitChange(),this.iconVisible&&this.focus()},onPickSuccess:function(){this.visible=!1,this.$emit("on-ok"),this.reset()},handleSelectRange:function(e,t){this.$emit("on-select-range",e,t)},handleclick:function(e){e.stopPropagation()},handleKeydown:function(e){var t=e.keyCode;if(this.visible&&27===t&&(e.preventDefault(),this.visible=!1),46===t&&!this.deleteNotAllClear){if(this.readonly||this.disabled)return;e.preventDefault(),this.handleClear(),this.focus()}},handleLongDate:function(){var e=this.type.indexOf("range")>-1,t=e?[null,null]:[null],n=e?this.parseDate([this.longValue,this.longValue]):this.parseDate(this.longValue),r=P([this.longValue]||!1)?t:n;if(r[0]){if(e){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 e=this.options&&"function"==typeof this.options.disabledDate&&this.options.disabledDate,t=new Date;e&&e(t)||(this.$set(this.internalValue,0,new Date(this.defaultValue)),this.visible=!1,this.emitChange())},getDate:function(e){return e.replace(/[^0-9]/gi,"")}},watch:{visible:function(e){var t=this;if(