h_ui
Version:
A Vue.js 2.0 UI Components Framework
26 lines • 111 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/Icon.js"),require("h_ui/dist/lib/mixins/locale.js"),require("h_ui/dist/lib/mixins/emitter.js"),require("h_ui/dist/lib/util/dom.js"),require("h_ui/dist/lib/Checkbox.js"),require("h_ui/dist/lib/Button.js"),require("h_ui/dist/lib/directives/clickoutside.js"),require("h_ui/dist/lib/directives/transfer-dom.js"),require("h_ui/dist/lib/Message.js"),require("h_ui/dist/lib/util/index.js"),require("h_ui/dist/lib/util/calcTextareaHeight.js")):"function"==typeof define&&define.amd?define("h_ui/lib",["h_ui/dist/lib/util/tools.js","h_ui/dist/lib/util/global.js","h_ui/dist/lib/Icon.js","h_ui/dist/lib/mixins/locale.js","h_ui/dist/lib/mixins/emitter.js","h_ui/dist/lib/util/dom.js","h_ui/dist/lib/Checkbox.js","h_ui/dist/lib/Button.js","h_ui/dist/lib/directives/clickoutside.js","h_ui/dist/lib/directives/transfer-dom.js","h_ui/dist/lib/Message.js","h_ui/dist/lib/util/index.js","h_ui/dist/lib/util/calcTextareaHeight.js"],t):"object"==typeof exports?exports["h_ui/lib"]=t(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/Icon.js"),require("h_ui/dist/lib/mixins/locale.js"),require("h_ui/dist/lib/mixins/emitter.js"),require("h_ui/dist/lib/util/dom.js"),require("h_ui/dist/lib/Checkbox.js"),require("h_ui/dist/lib/Button.js"),require("h_ui/dist/lib/directives/clickoutside.js"),require("h_ui/dist/lib/directives/transfer-dom.js"),require("h_ui/dist/lib/Message.js"),require("h_ui/dist/lib/util/index.js"),require("h_ui/dist/lib/util/calcTextareaHeight.js")):e["h_ui/lib"]=t(e["h_ui/dist/lib/util/tools.js"],e["h_ui/dist/lib/util/global.js"],e["h_ui/dist/lib/Icon.js"],e["h_ui/dist/lib/mixins/locale.js"],e["h_ui/dist/lib/mixins/emitter.js"],e["h_ui/dist/lib/util/dom.js"],e["h_ui/dist/lib/Checkbox.js"],e["h_ui/dist/lib/Button.js"],e["h_ui/dist/lib/directives/clickoutside.js"],e["h_ui/dist/lib/directives/transfer-dom.js"],e["h_ui/dist/lib/Message.js"],e["h_ui/dist/lib/util/index.js"],e["h_ui/dist/lib/util/calcTextareaHeight.js"])}(window,(function(e,t,n,i,o,r,s,l,a,u,c,f,h){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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/",n(n.s=852)}({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 i})),n.d(t,"b",(function(){return o}));var i=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)])},o=[];i._withStripped=!0},102:function(e,t,n){var i=n(9)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},e(r)}catch(e){}return n}},107:function(e,t,n){n(59),n(108),e.exports=n(0).Array.from},108:function(e,t,n){"use strict";var i=n(16),o=n(3),r=n(20),s=n(87),l=n(88),a=n(42),u=n(68),c=n(89);o(o.S+o.F*!n(102)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,f,h=r(e),d="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,b=0,y=c(h);if(v&&(m=i(m,p>2?arguments[2]:void 0,2)),null==y||d==Array&&l(y))for(n=new d(t=a(h.length));t>b;b++)u(n,b,v?m(h[b],b):h[b]);else for(f=y.call(h),n=new d;!(o=f.next()).done;b++)u(n,b,v?s(f,m,[o.value,b],!0):o.value);return n.length=b,n}})},109:function(e,t,n){e.exports=n(120)},11:function(e,t,n){var i=n(5),o=n(14);e.exports=n(2)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},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},119:function(e,t){e.exports=l},12:function(e,t,n){var i=n(6);e.exports=function(e){if(!i(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 i=n(3),o=n(122);i(i.G+i.F*(parseFloat!=o),{parseFloat:o})},122:function(e,t,n){var i=n(1).parseFloat,o=n(51).trim;e.exports=1/i(n(35)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},124:function(e,t){e.exports=a},125:function(e,t,n){var i=n(61),o=n(63);function r(t){return e.exports=r="function"==typeof i&&"symbol"==typeof o?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},128:function(e,t){e.exports=u},13:function(e,t,n){var i=n(50),o=n(18);e.exports=function(e){return i(o(e))}},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,i=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 o=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()}),i))}};function r(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function a(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:a(l(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 h(e){return 11===e?c:10===e?f:c||f}function d(e){if(!e)return document.documentElement;for(var t=h(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(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,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s,l,a=r.commonAncestorContainer;if(e!==a&&t!==a||i.contains(o))return"BODY"===(l=(s=a).nodeName)||"HTML"!==l&&d(s.firstElementChild)!==s?d(a):a;var u=p(e);return u.host?m(u.host,t):m(e,p(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var o=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||o;return r[n]}return e[n]}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=v(t,"top"),o=v(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=o*r,e.right+=o*r,e}function y(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function g(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],h(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,i=h(10)&&getComputedStyle(n);return{height:g("Height",t,n,i),width:g("Width",t,n,i)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},S=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function $(e){return _({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(h(10)){t=e.getBoundingClientRect();var n=v(e,"top"),i=v(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?x(e.ownerDocument):{},l=r.width||e.clientWidth||o.width,a=r.height||e.clientHeight||o.height,u=e.offsetWidth-l,c=e.offsetHeight-a;if(u||c){var f=s(e);u-=y(f,"x"),c-=y(f,"y"),o.width-=u,o.height-=c}return $(o)}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=h(10),o="HTML"===t.nodeName,r=k(e),l=k(t),u=a(e),c=s(t),f=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&o&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var p=$({top:r.top-l.top-f,left:r.left-l.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var m=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);p.top-=f-m,p.bottom-=f-m,p.left-=d-v,p.right-=d-v,p.marginTop=m,p.marginLeft=v}return(i&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(p=b(p,t)),p}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=T(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:v(n),l=t?0:v(n,"left"),a={top:s-i.top+i.marginTop,left:l-i.left+i.marginLeft,width:o,height:r};return $(a)}function I(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var n=l(e);return!!n&&I(n)}function M(e){if(!e||!e.parentElement||h())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function B(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?M(e):m(e,u(t));if("viewport"===i)r=O(s,o);else{var c=void 0;"scrollParent"===i?"BODY"===(c=a(l(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===i?e.ownerDocument.documentElement:i;var f=T(c,s,o);if("HTML"!==c.nodeName||I(s))r=f;else{var h=x(e.ownerDocument),d=h.height,p=h.width;r.top+=f.top-f.marginTop,r.bottom=d+f.top,r.left+=f.left-f.marginLeft,r.right=p+f.left}}var v="number"==typeof(n=n||0);return r.left+=v?n:n.left||0,r.top+=v?n:n.top||0,r.right-=v?n:n.right||0,r.bottom-=v?n:n.bottom||0,r}function N(e){return e.width*e.height}function F(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=B(n,i,r,o),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},a=Object.keys(l).map((function(e){return _({key:e},l[e],{area:N(l[e])})})).sort((function(e,t){return t.area-e.area})),u=a.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),c=u.length>0?u[0].key:a[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function P(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?M(t):m(t,u(n));return T(n,o,i)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function E(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 j(e,t,n){n=n.split("-")[0];var i=L(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",l=r?"left":"top",a=r?"height":"width",u=r?"width":"height";return o[s]=t[s]+t[a]/2-i[a]/2,o[l]=n===l?t[l]-i[u]:t[E(l)],o}function A(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 i=A(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function;var n=e.function||e.fn;e.enabled&&r(n)&&(t.offsets.popper=$(t.offsets.popper),t.offsets.reference=$(t.offsets.reference),t=n(t,e))})),t}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=F(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=j(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 q(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function V(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if(void 0!==document.body.style[r])return r}return null}function W(){return this.state.isDestroyed=!0,q(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[V("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function R(e){var t=e.ownerDocument;return t?t.defaultView:window}function U(e,t,n,i){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),o||U(a(r.parentNode),t,n,i),i.push(r)}function z(e,t,n,i){n.updateBound=i,R(e).addEventListener("resize",n.updateBound,{passive:!0});var o=a(e);return U(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Q(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function K(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,R(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 G(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Y(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&G(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var J=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var i=A(e,(function(e){return e.name===t})),o=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!o);return o}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),i=ee.slice(n+1).concat(ee.slice(0,n));return t?i.reverse():i}var ne="flip",ie="clockwise",oe="counterclockwise";function re(e,t,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=s.indexOf(A(s,(function(e){return-1!==e.search(/,|\s/)})));s[l]&&s[l].indexOf(",");var a=/\s*,\s*|\s+/,u=-1!==l?[s.slice(0,l).concat([s[l].split(a)[0]]),[s[l].split(a)[1]].concat(s.slice(l+1))]:[s];return u=u.map((function(e,i){var o=(1===i?!r:r)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return e;if(0===s.indexOf("%")){return $("%p"===s?n:i)[t]/100*r}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(e,o,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,i){G(n)&&(o[t]+=n*("-"===e[i-1]?-1:1))}))})),o}var se={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,s=o.popper,l=-1!==["bottom","top"].indexOf(n),a=l?"left":"top",u=l?"width":"height",c={start:C({},a,r[a]),end:C({},a,r[a]+r[u]-s[u])};e.offsets.popper=_({},s,c[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,o=e.offsets,r=o.popper,s=o.reference,l=i.split("-")[0],a=void 0;return a=G(+n)?[+n,0]:re(n,r,s,l),"left"===l?(r.top+=a[0],r.left-=a[1]):"right"===l?(r.top+=a[0],r.left+=a[1]):"top"===l?(r.left+=a[0],r.top-=a[1]):"bottom"===l&&(r.left+=a[0],r.top+=a[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var i=V("transform"),o=e.instance.popper.style,r=o.top,s=o.left,l=o[i];o.top="",o.left="",o[i]="";var a=B(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=r,o.left=s,o[i]=l,t.boundaries=a;var u=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<a[e]&&!t.escapeWithReference&&(n=Math.max(c[e],a[e])),C({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=c[n];return c[e]>a[e]&&!t.escapeWithReference&&(i=Math.min(c[n],a[e]-("right"===e?c.width:c.height))),C({},n,i)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=_({},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,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),l=s?"right":"bottom",a=s?"left":"top",u=s?"width":"height";return n[l]<r(i[a])&&(e.offsets.popper[a]=r(i[a])-n[u]),n[a]>r(i[l])&&(e.offsets.popper[a]=r(i[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return e;var o=e.placement.split("-")[0],r=e.offsets,l=r.popper,a=r.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",f=u?"Top":"Left",h=f.toLowerCase(),d=u?"left":"top",p=u?"bottom":"right",m=L(i)[c];a[p]-m<l[h]&&(e.offsets.popper[h]-=l[h]-(a[p]-m)),a[h]+m>l[p]&&(e.offsets.popper[h]+=a[h]+m-l[p]),e.offsets.popper=$(e.offsets.popper);var v=a[h]+a[c]/2-m/2,b=s(e.instance.popper),y=parseFloat(b["margin"+f]),g=parseFloat(b["border"+f+"Width"]),x=v-e.offsets.popper[h]-y-g;return x=Math.max(Math.min(l[c]-m,x),0),e.arrowElement=i,e.offsets.arrow=(C(n={},h,Math.round(x)),C(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(q(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=B(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],o=E(i),r=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case ne:s=[i,o];break;case ie:s=te(i);break;case oe:s=te(i,!0);break;default:s=t.behavior}return s.forEach((function(l,a){if(i!==l||s.length===a+1)return e;i=e.placement.split("-")[0],o=E(i);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,h="left"===i&&f(u.right)>f(c.left)||"right"===i&&f(u.left)<f(c.right)||"top"===i&&f(u.bottom)>f(c.top)||"bottom"===i&&f(u.top)<f(c.bottom),d=f(u.left)<f(n.left),p=f(u.right)>f(n.right),m=f(u.top)<f(n.top),v=f(u.bottom)>f(n.bottom),b="left"===i&&d||"right"===i&&p||"top"===i&&m||"bottom"===i&&v,y=-1!==["top","bottom"].indexOf(i),g=!!t.flipVariations&&(y&&"start"===r&&d||y&&"end"===r&&p||!y&&"start"===r&&m||!y&&"end"===r&&v),x=!!t.flipVariationsByContent&&(y&&"start"===r&&p||y&&"end"===r&&d||!y&&"start"===r&&v||!y&&"end"===r&&m),w=g||x;(h||b||w)&&(e.flipped=!0,(h||b)&&(i=s[a+1]),w&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=_({},e.offsets.popper,j(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],i=e.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(l?o[s?"width":"height"]:0),e.placement=E(t),e.offsets.popper=$(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=A(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,i=t.y,o=e.offsets.popper,r=A(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration,s=void 0!==r?r:t.gpuAcceleration,l=d(e.instance.popper),a=k(l),u={position:o.position},c=function(e,t){var n=e.offsets,i=n.popper,o=n.reference,r=Math.round,s=Math.floor,l=function(e){return e},a=r(o.width),u=r(i.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),h=t?c||f||a%2==u%2?r:s:l,d=t?r:l;return{left:h(a%2==1&&u%2==1&&!f&&t?i.left-1:i.left),top:d(i.top),bottom:d(i.bottom),right:h(i.right)}}(e,window.devicePixelRatio<2||!J),f="bottom"===n?"top":"bottom",h="right"===i?"left":"right",p=V("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===l.nodeName?-l.clientHeight+c.bottom:-a.height+c.bottom:c.top,m="right"===h?"HTML"===l.nodeName?-l.clientWidth+c.right:-a.width+c.right:c.left,s&&p)u[p]="translate3d("+m+"px, "+v+"px, 0)",u[f]=0,u[h]=0,u.willChange="transform";else{var b="bottom"===f?-1:1,y="right"===h?-1:1;u[f]=v*b,u[h]=m*y,u.willChange=f+", "+h}var g={"x-placement":e.placement};return e.attributes=_({},g,e.attributes),e.styles=_({},u,e.styles),e.arrowStyles=_({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Y(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&&Y(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){var r=P(o,t,e,n.positionFixed),s=F(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),Y(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},le={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:se},ae=function(){function e(t,n){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=o(this.update.bind(this)),this.options=_({},e.Defaults,s),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(_({},e.Defaults.modifiers,s.modifiers)).forEach((function(t){i.options.modifiers[t]=_({},e.Defaults.modifiers[t]||{},s.modifiers?s.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return _({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&r(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var l=this.options.eventsEnabled;l&&this.enableEventListeners(),this.state.eventsEnabled=l}return S(e,[{key:"update",value:function(){return D.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return Q.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Z,ae.Defaults=le,t.default=ae}.call(this,n(112))},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 i=n(101),o=n(82);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var s=n(4),l=Object(s.a)(o.default,i.a,i.b,!1,null,null,null);t.default=l.exports},15:function(e,t,n){var i=n(38);e.exports=function(e,t,n){return t in e?i(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},16:function(e,t,n){var i=n(27);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},17:function(e,t,n){var i=n(6);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},18:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},19:function(e,t,n){var i=n(45),o=n(31);e.exports=Object.keys||function(e){return i(e,o)}},199:function(e,t){e.exports=c},2:function(e,t,n){e.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},20:function(e,t,n){var i=n(18);e.exports=function(e){return Object(i(e))}},21:function(t,n){t.exports=e},22:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},23:function(e,t){e.exports=!0},230:function(e,t){e.exports=f},24:function(e,t,n){var i=n(6),o=n(1).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},25:function(e,t,n){e.exports=!n(2)&&!n(7)((function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a}))},26:function(e,t){e.exports={}},27:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},28:function(e,t){t.f={}.propertyIsEnumerable},286:function(e,t,n){"use strict";n.r(t);var i=n(287),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=o.a},287:function(e,t,n){"use strict";var i=n(64),o=n(61),r=n(63),s=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=s(n(125)),a=s(n(15)),u=s(n(53)),c=s(n(85)),f=s(n(47)),h=s(n(96)),d=s(n(119)),p=s(n(199)),m=s(n(351)),v=s(n(140)),b=s(n(124)),y=s(n(128)),g=n(21),x=s(n(60)),w=s(n(49)),S=s(n(230));function C(e,t){var n=void 0!==o&&e[r]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _(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 i(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var s=0,l=function(){};return{s:l,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:l}}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 a,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,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var $="h-select",k={name:"Select",mixins:[x.default,w.default],components:{Icon:f.default,Drop:v.default,Checkbox:h.default,HOption:m.default,HButton:d.default},directives:{clickoutside:b.default,TransferDom:y.default},props:{tabToSave:{type:Boolean,default:!1},filterMethod:{type:Function},chooseToRemoteMethod:{type:Boolean,default:!1},multipleNumber:{type:[Number,String],default:null},showLoadingIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},value:{type:[String,Number,Array],default:""},label:{type:[String,Number,Array],default:""},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},multClearable:{type:Boolean,default:!1},placeholder:{type:String},filterable:{type:Boolean,default:!1},accuFilter:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},remoteMethod:{type:Function},remoteIcon:{type:String,default:""},loading:{type:Boolean,default:!1},loadingText:{type:String},size:{validator:function(e){return(0,g.oneOf)(e,["small","large","default"])},default:"default"},labelInValue:{type:Boolean,default:!1},notFoundText:{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"},width:{type:[String,Number]},defaultLineHeight:{type:Number,default:30},transfer:{type:Boolean,default:!1},autoComplete:{type:Boolean,default:!1},isString:{type:Boolean,default:!1},isCheckall:{type:Boolean,default:!1},noMoreText:{type:String},isComputed:{type:Boolean,default:!1},isArrow:{type:Boolean,default:!0},algin:{type:String,default:"left"},setDefSelect:{type:Boolean,default:!1},dropWidth:{type:[String,Number]},searchHolder:{type:String},showBottom:{type:Boolean,default:!1},specialIndex:{type:Boolean,default:!1},checkToHead:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!1},hideMult:{type:Boolean,default:!1},focusSelect:{type:Boolean,default:!0},remoteFocusNotShowList:{type:Boolean,default:!1},scrollFix:{type:Boolean,default:!1},isBackClear:{type:Boolean,default:!1},autoPlacement:{type:Boolean,default:!1},zeroToNull:{type:Boolean,default:!1},widthAdaption:{type:Boolean,default:!1},maxDropWidth:{type:[String,Number],default:500},dropMinWidth:{type:[String,Number]},allowCreate:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},notAutoFocus:{type:Boolean,default:!1},isSelectFilter:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:0,validator:function(e){var t=(0,u.default)(e,10);return t<=32767&&t>=-1}},maxlength:{type:Number,default:1/0},lengthByByte:{type:Boolean,default:!1},byteNum:{type:[Number,String],default:2},buttonToTop:{type:Boolean,default:!1},initValueTypeToString:{type:Boolean,default:!1},queryNotEmpty:{type:Boolean,default:!1},selectInPoptip:{type:Boolean,default:!1},customTransferClassName:{type:String},valueNotMatch:{type:Boolean,default:!1},targetNode:{type:[Element,String]},positionFixed:{type:Boolean,default:!1}},data:function(){return{mainPrefixCls:"h",prefixCls:$,visible:!1,selectTabindex:this.filterable?0:this.tabindex,options:[],disabledOpts:[],optionInstances:[],selectedSingle:"",selectedMultiple:[],focusIndex:0,query:"",lastQuery:"",selectToChangeQuery:!1,slotChangeDuration:!1,model:null,currentLabel:this.label,isInputFocus:!1,isLi:!0,scrollBarWidth:(0,g.getScrollBarSize)(),isfirstSelect:!1,selectHead:!1,titleTip:"",isSelectAll:!1,typeValue:"string",focusValue:"",viewValue:null,lastScrollTop:0,inputLastQuery:"",fPlacement:this.placement}},computed:{notFound:function(){return this.optionInstances.every((function(e){return e.hidden}))},showHeader:function(){return this.$slots.header||this.buttonToTop},classes:function(){var e;return["".concat($),(e={},(0,a.default)(e,"".concat($,"-visible"),this.visible),(0,a.default)(e,"".concat($,"-disabled"),this.disabled),(0,a.default)(e,"".concat($,"-editable"),!this.editable),(0,a.default)(e,"".concat($,"-readonly"),this.readonly),(0,a.default)(e,"".concat($,"-multiple"),this.multiple),(0,a.default)(e,"".concat($,"-single"),!this.multiple),(0,a.default)(e,"".concat($,"-show-clear"),this.showCloseIcon),(0,a.default)(e,"".concat($,"-").concat(this.size),!!this.size),(0,a.default)(e,"".concat($,"-hideMult"),this.hideMult&&this.multiple),e)]},tagClass:function(){return["h-tag",(0,a.default)({},"".concat($,"-tag-").concat(this.size),!!this.size)]},checkHeadClass:function(){return(0,a.default)({},"".concat($,"-checkHead"),this.checkToHead&&this.showBottom&&this.filterable)},hideMultHead:function(){var e;return e={},(0,a.default)(e,"".concat($,"-hideMultHead"),this.hideMult&&this.multiple),(0,a.default)(e,"".concat($,"-hideMultHead-select"),this.isSelectAll),e},dropdownCls:function(){var e,t=this.globalMixinInfo?this.globalMixinInfo.theme:"";return e={},(0,a.default)(e,"h-select-dropdown-transfer",(0,g.findComponentParent)(this,["Msgbox","Drawer"])&&this.transfer),(0,a.default)(e,"h-select-multiple",this.multiple&&this.transfer),(0,a.default)(e,"h-auto-complete",this.autoComplete),(0,a.default)(e,"h-select-dropdown-inpoptip",this.selectInPoptip),(0,a.default)(e,"".concat(this.customTransferClassName),this.customTransferClassName),(0,a.default)(e,"v-transfer-dom",this.transfer),(0,a.default)(e,t,this.transfer&&!!this.globalMixinInfo),e},content:function(){return"".concat($,"-dropdown-content")},selectionCls:function(){return["".concat($,"-").concat(this.algin),(0,a.default)({},"".concat($,"-selection"),!this.autoComplete)]},showPlaceholder:function(){var e=!1;return"string"==typeof this.model?""===this.model&&(e=!0):Array.isArray(this.model)?this.model.length||(e=!0):null===this.model&&(e=!0),e},showCloseIcon:function(){return(!this.multiple&&this.clearable||this.multiple&&this.multClearable)&&!this.showPlaceholder},showRemoteIcon:function(){return!(!this.remote||""==this.remoteIcon)},localePlaceholder:function(){return void 0===this.placeholder?this.t("i.select.placeholder"):this.placeholder},localeSearchHolder:function(){return void 0===this.searchHolder?this.t("i.select.searchHolder"):this.searchHolder},localeNotFoundText:function(){return void 0===this.notFoundText?this.t("i.select.noMatch"):this.notFoundText},localeLoadingText:function(){return void 0===this.loadingText?this.t("i.select.loading"):this.loadingText},localeNoMoreText:function(){return void 0===this.noMoreText?this.t("i.select.noMoreData"):this.noMoreText},dropVisible:function(){var e=this,t=!1,n=!0;return this.remote&&this.showBottom&&(n=!0),!(this.visible&&n)&&this.queryNotEmpty&&(this.query=""),t=this.visible&&n,this.$refs.input&&setTimeout((function(){e.$refs.input&&t&&!e.remoteFocusNotShowList&&e.$refs.input.select(),e.$refs.input&&!t&&e.$refs.input.blur()})),!this.multiple&&this.remote&&setTimeout((function(){e.offsetArrow()}),200),t},selectInputStyles:function(){return{width:"".concat(this.width,"px")}},multiplestyle:function(){return{width:"".concat(this.width,"px")}},inputVisibleStyle:function(){if(this.filterable&&this.multiple){var e={};if(this.isInputFocus||0===this.selectedMultiple.length){var t=this.$refs.reference;t&&(e.height=0==t.clientHeight?this.defaultLineHeight:t.clientHeight+"px",e.lineHeight=0==t.offsetHeight?this.defaultLineHeight:t.offsetHeight+"px")}else e.height="1px",e.lineHeight="1px",e.position="absolute",e.bottom=0,e.opacity=0;return e}},checkAll:function(){return!this.isCheckall||!this.multiple||this.notFoundShow||this.buttonToTop||this.enableCreate&&this.showNewOption?"".concat($,"-checkall ").concat($,"-check-no-padding"):"".concat($,"-checkall")},notFoundShow:function(){var e=this.options||this.$slots.default;return e=e||[],this.notFound&&!this.remote||this.remote&&!this.loading&&!e.length||!this.remote&&!e.length},showFooter:function(){return this.$slots.footer||this.isCheckall},enableCreate:function(){return this.allowCreate&&this.filterable},showNewOption:function(){var e=this.query,t=this.optionInstances,n=!1;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];if(o.showLabel===e||o.value===e||o.searchLabel==e){n=!0;break}}return e&&!n}},methods:{multipleNumberCheck:function(e){var t=e,n=Number(this.multipleNumber)||0;return"string"==typeof t&&(t=t.split(",")),!!(this.multiple&&null!==this.multipleNumber&&t.length>n)&&(p.default.error("最多可以选择".concat(n,"个")),!0)},handleInputKeyup:function(e){this.inputLastQuery=this.query,this.$emit("on-keyup",this.query,e)},handleInputKeydown:function(e){this.inputLastQuery=this.query,this.$emit("on-keydown",this.query,e)},handleclick:function(e){e.stopPropagation()},keyup:function(e){if(9==e.keyCode){if(this.disabled||this.readonly||!this.editable)return!1;this.toggleMenu()}},keydown:function(e){this.handleKeydown(e)},focus:function(){var e=this;this.isInputFocus=!0,this.disabled||this.readonly||this.$nextTick((function(){e.visible=!0,e.filterable?e.$refs.input.focus():e.$refs.reference.focus(),e.$emit("on-focus")}))},blur:function(){this.multiple?this.dispatch("FormItem","on-form-blur",this.selectedMultiple):this.dispatch("FormItem","on-form-blur",this.selectedSingle),this.isInputFocus=!1,this.visible=!1,this.filterable?this.$refs.input.blur():this.$refs.reference.blur()},select:function(){this.filterable&&(this.$refs.input.focus(),this.$refs.input.select())},handleSelectScroll:function(e){var t=e.target.scrollHeight-Math.round(e.target.scrollTop)-e.target.clientHeight;Math.abs(t)<=1&&(t=0),this.$emit("on-scroll",t,this.lastScrollTop!==e.target.scrollTop?"y":"x"),this.lastScrollTop=e.target.scrollTop},toggleCheck:function(){var e=this,t=[];return this.optionInstances.forEach((function(n){e.isSelectFilter?n.hidden||-1===(0,g.findInx)(e.model,(function(e){return e==n.value}))&&t.push(n.value):t.push(n.value)})),this.multipleNumberCheck(t)},toggleSelect:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n||!this.toggleCheck()){this.isSelectAll=!this.isSelectAll;var i=this.$refs.createdOption,o=this.isSelectFilter;if(e)if(this.specialIndex)this.model="string"==this.typeValue?["-1"]:[-1];else{var r=[];this.optionInstances.forEach((function(e){e.disabled||(o?e.hidden||-1===(0,g.findInx)(t.model,(function(t){return t==e.value}))&&t.model.push(e.value):r.push(e.value))})),o||(this.model=r),i&&(i.selected||i.select(),i.selected=!0)}else{if(i){i.selected=!1;var s=(0,g.findInx)(this.model,(function(e){return e==i.value}));s>-1&&this.model.splice(s,1)}o?(this.selectHead=!1,this.optionInstances.forEach((function(e){if(!e.hidden){var n=(0,g.findInx)(t.model,(function(t){return t==e.value}));n>-1&&t.model.splice(n,1)}}))):(this.model=[],this.selectHead=!1)}this.$refs.reference.focus()}else this.$nextTick((function(){t.selectHead=!1}))},offsetArrow:function(){var e=this,t=!1;if(this.multiple){var n=this.$refs.reference;t=n&&n.scrollHeight>n.clientHeight}var i=function(t,n,i){var o=i?n+e.scrollBarWidth-3:n;e.$refs[t]&&e.$refs[t].$el&&(e.$refs[t].$el.style.right=o+"px")};this.$refs.arrowb||this.$refs.searchb?i("close",25,t):i("close",8,t),i("arrowb",8,t),i("searchb",8,t)},toggleMenu:function(){if(this.disabled||this.readonly||!this.editable)return!1;this.model==this.query&&this.model==this.value&&"string"==typeof this.value&&this.remoteFocusNotShowList&&!this.multiple?(this.visible=!1,this.focusSelect||(this.selectToChangeQuery=!1)):this.visible=!this.visible,this.isInputFocus=!0},fold:function(){this.visible=!1},hideMenu:function(){this.visible=!1,window.isO45||(this.focusIndex=0),this.broadcast("Option","on-select-close")},findChild:function(e){var t=function t(n){if(n.$options.componentName){if(n.created)return;e(n)}else n.$children.length&&n.$children.forEach((function(e){t(e)}))};this.optionInstances.length?this.optionInstances.forEach((function(e){t(e)})):this.$children.forEach((function(e){t(e)}))},updateOptions:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[],o=[],r=this.enableCreate&&void 0!==this.$refs.createdOption?2:1;this.optionInstances=[],this.findChild((function(n){i.push({value:n.value,label:void 0===n.label?n.searchLabel:n.label}),n.disabled&&o.push(n.value),n.index=r++,e&&t.optionInstances.push(n)})),this.options=i,this.disabledOpts=o,this.specialIndex&&this.options.length>0&&(this.typeValue=(0,g.typeOf)(this.options[0].value)),e&&(this.remote||(this.updateSingleSelected(!0,n),this.updateMultipleSelected(!0,n)))},updateSingleSelected:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,l.default)(this.model);if("string"===n||"number"===n){for(var i=!1,o="",r=0;r<this.options.length;r++)if(this.model===this.options[r].value){o=this.options[r].label,i=!0;break}this.selectedSingle=o,this.enableCreate&&!i&&(this.selectedSingle=this.model,i=!0),i||""===this.model||this.remote||this.valueNotMatch&&(this.model=""),t&&!i&&(this.model="",this.query="")}this.viewValue=this.selectedSingle,this.filterable&&!this.showBottom&&this.selectedSingle&&this.query!==this.selectedSingle&&!this.inputLastQuery&&(this.query=this.selectedSingle),this.toggleSingleSelected(this.model,e)},handleIconClose:function(){if(this.readobly||this.disabled||!this.editable)return!1;this.multiple?this.clearMultipleSelect():this.clearSingleSelect(),this.isInputFocus=!0},clearMultipleSelect:function(){var e=this,t=[];this.model.forEach((function(n){-1!=e.disabledOpts.indexOf(n)&&t.push(n)})),this.model=t},clearSingleSelect:function(){this.showCloseIcon&&(this.findChild((function(e){e.selected=!1})),this.model="",this.filterable&&!this.showBottom&&(this.query=""),this.hideMenu(),this.showTitle?this.titleTip=this.localePlaceholder:this.titleTip="")},updateMultipleSelected:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.multiple&&Array.isArray(this.model)){for(var n=this.selectedMultiple,i=[],o=[],r=0;r<this.model.length;r++){var s,l=this.model[r],a=void 0,u=C(this.options);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(c.value==l){a=c;break}}}catch(e){u.e(e)}finally{u.f()}if(!a&&this.remote){var f,h=C(n);try{for(h.s();!(f=h.n()).done;){var d=f.value;if(d.value===l){a=d;break}}}catch(e){h.e(e)}finally{h.f()}}a?i.push({value:a.value,label:a.label}):this.enableCreate?i.push({value:l,label:l}):!this.remote&&this.valueNotMatch&&o.push(l)}o.length>0&&(this.model=this.model.filter((function(e){return!o.includes(e)})));var p=[],m={};if(i.forEach((function(e){m[e.value]||(p.push(e),m[e.value]=1)})),this.selectedMultiple=this.remote?p:i,t){for(var v=[],b=0;b<i.length;b++)v.push(i[b].value);this.model.length===v.length&&(this.slotChangeDuration=!0),this.model=v}}this.viewValue=this.selectedMultiple,this.toggleMultipleSelected(e&&this.multiple&&""===this.model?[]:this.model,e)},selectedTagClasses:function(e,t){var n;return["".concat("h","-tag"),(n={},(0,a.default)(n,"".concat($,"-tag-disabled-option"),!this.disabled&&!this.readonly&&-1!=this.disabledOpts.indexOf(this.model[e])),(0,a.default)(n,"".concat($,"-tag-").concat(this.size),!!this.size),n)]},removeTag:function(e,t,n){var i=e,o=this.selectedMultiple[i];if(this.disabled||this.readonly||!this.editable)return!1;if(t&&(i=this.model.findIndex((function(e){return e===t.value}))),this.remote||this.enableCreate){var r=this.model[i];this.selectedMultiple=this.selectedMultiple.filter((function(e){return e.value!==r}))}-1==this.disabledOpts.indexOf(this.model[i])&&(this.model.splice(i,1),this.filterable&&this.visible&&!this.showBottom&&this.$refs.input.focus(),this.isInputFocus=!0,n?"delete"===n&&!this.isBackClear&&this.$emit("on-item-remove",o,i):this.$emit("on-item-remove",o,i))},toggleSingleSelected:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.multiple){var i="",o=this.$refs.createdOption;o&&e.indexOf(o.value)>-1&&(o.selected=!0),this.findChild((function(t){t.value===e?(t.selected=!0,i=void 0===t.label?t.searchLabel:t.label):t.selected=!1})),this.$nextTick((function(){t.offsetArrow()})),n||(this.labelInValue?(this.$emit("on-change",{value:e,label:i||e}),this.dispatch("FormItem","on-form-change",{value:e,label:i||e})):(this.$emit("on-change",e),this.dispatch("FormItem","on-form-change",e)))}},toggleMultipleSelected:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.multiple){for(var i=!0,o=[],r=function(n){var i=t.selectedMultiple.find((function(t){return t.value===e[n]}));o.push({value:e[n],label:i?i.label:e[n]})},s=0;s<e.length;s++)r(s);if(this.findChild((function(t){var n=(0,g.findInx)("string"==typeof e?e.split(","):e,(function(e){return e==t.value}));t.selected=n>=0,i&&0==t.selected&&(i=!1)})),this.enableCreate){o.forEach((function(e){void 0===e.label&&(e.label=e.value)}));var l=this.$refs.createdOption;l&&(l.selected=e.indexOf(l.value)>=0,i&&!l.selected&&(i=!1))}if(this.isSelectAll=i,!n)if(this.labelInValue)this.$emit("on-change",o),this.dispatch("FormItem","on-form-change",o);else{if(this.multipleNumber&&this.multipleNumberCheck(this.model))return;this.$emit("on-change",e),this.dispatch("FormItem","on-form-change",e)}}},handleClose:function(){this.hideMenu(),this.isInputFocus&&(this.multiple?this.dispatch("FormItem","on-form-blur",this.selectedMultiple):this.dispatch("FormItem","on-form-blur",this.selectedSingle),this.isInputFocus=!1)},handleKeydown:function(e){if(this.isKeyDown=!0,this.keyboardEvent=e,this.visible){var t=e.keyCode;if(27===t&&(e.preventDefault(),this.hideMenu()),window.isO45){if(39===t&&(e.preventDefault(),this.navigateOptions("next")),37===t&&(e.preventDefault(),this.navigateOptions("prev")),39!==t&&37!==t||this.multiple||(this.model=this.focusValue,this.selectToChangeQuery=!0),this.multiple&&32===t){e.preventDefault();var n=this.$refs.createdOption;n&&n.isFocus?(n.select(),!this.multiple&&n.selected||(n.selected=!n.selected)):this.findChild((function(e){e.isFocus&&e.select()}))}return!1}if(40===t&&(e.preventDefault(),this.navigateOptions("next")),38===t&&(e.preventDefault(),this.navigateOptions("prev")),13===t||9===t&&this.tabToSave){13===t&&e.preventDefault();var i=this.$refs.createdOption;i&&i.isFocus?(i.select(),!this.multiple&&i.selected||(i.selected=!i.selected)):!this.multiple&&window.IS_LICAI?(this.model=this.focusValue,this.selectToChangeQuery=!0):this.findChild((function(e){e.isFocus&&e.select()}))}S.default.isKeyMatch(e,"A")&&e.ctrlKey&&this.multiple&&