h_ui
Version:
A Vue.js 2.0 UI Components Framework
26 lines • 43.8 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/directives/clickoutside.js"),require("h_ui/dist/lib/directives/transfer-dom-drop.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/directives/clickoutside.js","h_ui/dist/lib/directives/transfer-dom-drop.js"],e):"object"==typeof exports?exports["h_ui/lib"]=e(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/directives/clickoutside.js"),require("h_ui/dist/lib/directives/transfer-dom-drop.js")):t["h_ui/lib"]=e(t["h_ui/dist/lib/util/tools.js"],t["h_ui/dist/lib/util/global.js"],t["h_ui/dist/lib/directives/clickoutside.js"],t["h_ui/dist/lib/directives/transfer-dom-drop.js"])}(window,(function(t,e,n,r){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/lib/",n(n.s=893)}({0:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},10:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},101:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.innerShow,expression:"innerShow"}],ref:"container",staticClass:"h-select-dropdown",on:{mousedown:function(t){t.stopPropagation()}}},[t._t("default")],2)])},o=[];r._withStripped=!0},109:function(t,e,n){t.exports=n(120)},11:function(t,e,n){var r=n(5),o=n(14);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},112:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},12:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},120:function(t,e,n){n(121),t.exports=n(0).parseFloat},121:function(t,e,n){var r=n(3),o=n(122);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},122:function(t,e,n){var r=n(1).parseFloat,o=n(51).trim;t.exports=1/r(n(35)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},124:function(t,e){t.exports=n},13:function(t,e,n){var r=n(50),o=n(18);t.exports=function(t){return r(o(t))}},137:function(t,e,n){"use strict";n.r(e),function(t){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var o=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function i(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function s(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?t:u(s(t))}function f(t){return t&&t.referenceNode?t.referenceNode:t}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),l=n&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?c:10===t?l:c||l}function d(t){if(!t)return document.documentElement;for(var e=p(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,o=n?e:t,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,u=i.commonAncestorContainer;if(t!==u&&e!==u||r.contains(o))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&d(a.firstElementChild)!==a?d(u):u;var f=h(t);return f.host?m(f.host,e):m(t,h(e).host)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var o=t.ownerDocument.documentElement,i=t.ownerDocument.scrollingElement||o;return i[n]}return t[n]}function b(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(e,"top"),o=v(e,"left"),i=n?-1:1;return t.top+=r*i,t.bottom+=r*i,t.left+=o*i,t.right+=o*i,t}function g(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function w(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],p(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function y(t){var e=t.body,n=t.documentElement,r=p(10)&&getComputedStyle(n);return{height:w("Height",e,n,r),width:w("Width",e,n,r)}}var x=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},O=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),_=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},E=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function M(t){return E({},t,{right:t.left+t.width,bottom:t.top+t.height})}function P(t){var e={};try{if(p(10)){e=t.getBoundingClientRect();var n=v(t,"top"),r=v(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?y(t.ownerDocument):{},s=i.width||t.clientWidth||o.width,u=i.height||t.clientHeight||o.height,f=t.offsetWidth-s,c=t.offsetHeight-u;if(f||c){var l=a(t);f-=g(l,"x"),c-=g(l,"y"),o.width-=f,o.height-=c}return M(o)}function j(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),o="HTML"===e.nodeName,i=P(t),s=P(e),f=u(t),c=a(e),l=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=M({top:i.top-s.top-l,left:i.left-s.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var m=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);h.top-=l-m,h.bottom-=l-m,h.left-=d-v,h.right-=d-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?e.contains(f):e===f&&"BODY"!==f.nodeName)&&(h=b(h,e)),h}function T(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=j(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return M(u)}function $(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=s(t);return!!n&&$(n)}function k(t){if(!t||!t.parentElement||p())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function S(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?k(t):m(t,f(e));if("viewport"===r)i=T(a,o);else{var c=void 0;"scrollParent"===r?"BODY"===(c=u(s(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===r?t.ownerDocument.documentElement:r;var l=j(c,a,o);if("HTML"!==c.nodeName||$(a))i=l;else{var p=y(t.ownerDocument),d=p.height,h=p.width;i.top+=l.top-l.marginTop,i.bottom=d+l.top,i.left+=l.left-l.marginLeft,i.right=h+l.left}}var v="number"==typeof(n=n||0);return i.left+=v?n:n.left||0,i.top+=v?n:n.top||0,i.right-=v?n:n.right||0,i.bottom-=v?n:n.bottom||0,i}function D(t){return t.width*t.height}function C(t,e,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=S(n,r,i,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map((function(t){return E({key:t},s[t],{area:D(s[t])})})).sort((function(t,e){return e.area-t.area})),f=u.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),c=f.length>0?f[0].key:u[0].key,l=t.split("-")[1];return c+(l?"-"+l:"")}function N(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?k(e):m(e,f(n));return j(n,o,r)}function F(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function L(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function B(t,e,n){n=n.split("-")[0];var r=F(t),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",u=i?"height":"width",f=i?"width":"height";return o[a]=e[a]+e[u]/2-r[u]/2,o[s]=n===s?e[s]-r[f]:e[L(s)],o}function H(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function W(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=H(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&i(n)&&(e.offsets.popper=M(e.offsets.popper),e.offsets.reference=M(e.offsets.reference),e=n(e,t))})),e}function I(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=N(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=C(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=B(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=W(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function A(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function U(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var o=e[r],i=o?""+o+n:t;if(void 0!==document.body.style[i])return i}return null}function V(){return this.state.isDestroyed=!0,A(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function R(t){var e=t.ownerDocument;return e?e.defaultView:window}function z(t,e,n,r){var o="BODY"===t.nodeName,i=o?t.ownerDocument.defaultView:t;i.addEventListener(e,n,{passive:!0}),o||z(u(i.parentNode),e,n,r),r.push(i)}function q(t,e,n,r){n.updateBound=r,R(t).addEventListener("resize",n.updateBound,{passive:!0});var o=u(t);return z(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Y(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function G(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,R(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function X(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function J(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&X(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var K=n&&/Firefox/i.test(navigator.userAgent);function Q(t,e,n){var r=H(t,(function(t){return t.name===e})),o=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.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"],tt=Z.slice(3);function et(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=tt.indexOf(t),r=tt.slice(n+1).concat(tt.slice(0,n));return e?r.reverse():r}var nt="flip",rt="clockwise",ot="counterclockwise";function it(t,e,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(H(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&a[s].indexOf(",");var u=/\s*,\s*|\s+/,f=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return f=f.map((function(t,r){var o=(1===r?!i:i)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return t;if(0===a.indexOf("%")){return M("%p"===a?n:r)[e]/100*i}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*i;return i}(t,o,e,n)}))})),f.forEach((function(t,e){t.forEach((function(n,r){X(n)&&(o[e]+=n*("-"===t[r-1]?-1:1))}))})),o}var at={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var o=t.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",f=s?"width":"height",c={start:_({},u,i[u]),end:_({},u,i[u]+i[f]-a[f])};t.offsets.popper=E({},a,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,o=t.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],u=void 0;return u=X(+n)?[+n,0]:it(n,i,a,s),"left"===s?(i.top+=u[0],i.left-=u[1]):"right"===s?(i.top+=u[0],i.left+=u[1]):"top"===s?(i.left+=u[0],i.top-=u[1]):"bottom"===s&&(i.left+=u[0],i.top+=u[1]),t.popper=i,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||d(t.instance.popper);t.instance.reference===n&&(n=d(n));var r=U("transform"),o=t.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=S(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=i,o.left=a,o[r]=s,e.boundaries=u;var f=e.priority,c=t.offsets.popper,l={primary:function(t){var n=c[t];return c[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(c[t],u[t])),_({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>u[t]&&!e.escapeWithReference&&(r=Math.min(c[n],u[t]-("right"===t?c.width:c.height))),_({},n,r)}};return f.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=E({},c,l[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,o=t.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",u=a?"left":"top",f=a?"width":"height";return n[s]<i(r[u])&&(t.offsets.popper[u]=i(r[u])-n[f]),n[u]>i(r[s])&&(t.offsets.popper[u]=i(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Q(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return t;var o=t.placement.split("-")[0],i=t.offsets,s=i.popper,u=i.reference,f=-1!==["left","right"].indexOf(o),c=f?"height":"width",l=f?"Top":"Left",p=l.toLowerCase(),d=f?"left":"top",h=f?"bottom":"right",m=F(r)[c];u[h]-m<s[p]&&(t.offsets.popper[p]-=s[p]-(u[h]-m)),u[p]+m>s[h]&&(t.offsets.popper[p]+=u[p]+m-s[h]),t.offsets.popper=M(t.offsets.popper);var v=u[p]+u[c]/2-m/2,b=a(t.instance.popper),g=parseFloat(b["margin"+l]),w=parseFloat(b["border"+l+"Width"]),y=v-t.offsets.popper[p]-g-w;return y=Math.max(Math.min(s[c]-m,y),0),t.arrowElement=r,t.offsets.arrow=(_(n={},p,Math.round(y)),_(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(A(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=S(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=L(r),i=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case nt:a=[r,o];break;case rt:a=et(r);break;case ot:a=et(r,!0);break;default:a=e.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],o=L(r);var f=t.offsets.popper,c=t.offsets.reference,l=Math.floor,p="left"===r&&l(f.right)>l(c.left)||"right"===r&&l(f.left)<l(c.right)||"top"===r&&l(f.bottom)>l(c.top)||"bottom"===r&&l(f.top)<l(c.bottom),d=l(f.left)<l(n.left),h=l(f.right)>l(n.right),m=l(f.top)<l(n.top),v=l(f.bottom)>l(n.bottom),b="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,g=-1!==["top","bottom"].indexOf(r),w=!!e.flipVariations&&(g&&"start"===i&&d||g&&"end"===i&&h||!g&&"start"===i&&m||!g&&"end"===i&&v),y=!!e.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&d||!g&&"start"===i&&v||!g&&"end"===i&&m),x=w||y;(p||b||x)&&(t.flipped=!0,(p||b)&&(r=a[u+1]),x&&(i=function(t){return"end"===t?"start":"start"===t?"end":t}(i)),t.placement=r+(i?"-"+i:""),t.offsets.popper=E({},t.offsets.popper,B(t.instance.popper,t.offsets.reference,t.placement)),t=W(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),t.placement=L(e),t.offsets.popper=M(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Q(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=H(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,o=t.offsets.popper,i=H(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,a=void 0!==i?i:e.gpuAcceleration,s=d(t.instance.popper),u=P(s),f={position:o.position},c=function(t,e){var n=t.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(t){return t},u=i(o.width),f=i(r.width),c=-1!==["left","right"].indexOf(t.placement),l=-1!==t.placement.indexOf("-"),p=e?c||l||u%2==f%2?i:a:s,d=e?i:s;return{left:p(u%2==1&&f%2==1&&!l&&e?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:p(r.right)}}(t,window.devicePixelRatio<2||!K),l="bottom"===n?"top":"bottom",p="right"===r?"left":"right",h=U("transform"),m=void 0,v=void 0;if(v="bottom"===l?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,m="right"===p?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&h)f[h]="translate3d("+m+"px, "+v+"px, 0)",f[l]=0,f[p]=0,f.willChange="transform";else{var b="bottom"===l?-1:1,g="right"===p?-1:1;f[l]=v*b,f[p]=m*g,f.willChange=l+", "+p}var w={"x-placement":t.placement};return t.attributes=E({},w,t.attributes),t.styles=E({},f,t.styles),t.arrowStyles=E({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return J(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&J(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,o){var i=N(o,e,t,n.positionFixed),a=C(n.placement,i,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),J(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},st={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:at},ut=function(){function t(e,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=E({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(E({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){r.options.modifiers[e]=E({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return E({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&i(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return O(t,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return V.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),t}();ut.Utils=("undefined"!=typeof window?window:t).PopperUtils,ut.placements=Z,ut.Defaults=st,e.default=ut}.call(this,n(112))},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},140:function(t,e,n){"use strict";n.r(e);var r=n(101),o=n(82);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var a=n(4),s=Object(a.a)(o.default,r.a,r.b,!1,null,null,null);e.default=s.exports},15:function(t,e,n){var r=n(38);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},16:function(t,e,n){var r=n(27);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},17:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},18:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},19:function(t,e,n){var r=n(45),o=n(31);t.exports=Object.keys||function(t){return r(t,o)}},2:function(t,e,n){t.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},20:function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},21:function(e,n){e.exports=t},22:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},23:function(t,e){t.exports=!0},24:function(t,e,n){var r=n(6),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},25:function(t,e,n){t.exports=!n(2)&&!n(7)((function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a}))},27:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},29:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},3:function(t,e,n){var r=n(1),o=n(0),i=n(16),a=n(11),s=n(10),u=function(t,e,n){var f,c,l,p=t&u.F,d=t&u.G,h=t&u.S,m=t&u.P,v=t&u.B,b=t&u.W,g=d?o:o[e]||(o[e]={}),w=g.prototype,y=d?r:h?r[e]:(r[e]||{}).prototype;for(f in d&&(n=e),n)(c=!p&&y&&void 0!==y[f])&&s(g,f)||(l=c?y[f]:n[f],g[f]=d&&"function"!=typeof y[f]?n[f]:v&&c?i(l,r):b&&y[f]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):m&&"function"==typeof l?i(Function.call,l):l,m&&((g.virtual||(g.virtual={}))[f]=l,t&u.R&&w&&!w[f]&&a(w,f,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},30:function(t,e,n){var r=n(0),o=n(1),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(23)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},31:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},32:function(t,n){t.exports=e},33:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},34:function(t,e,n){var r=n(30)("keys"),o=n(22);t.exports=function(t){return r[t]||(r[t]=o(t))}},35:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},38:function(t,e,n){t.exports=n(39)},39:function(t,e,n){n(40);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},4:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){var u,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=u):o&&(u=s?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(f.functional){f._injectStyles=u;var c=f.render;f.render=function(t,e){return u.call(e),c(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:f}}n.d(e,"a",(function(){return r}))},40:function(t,e,n){var r=n(3);r(r.S+r.F*!n(2),"Object",{defineProperty:n(5).f})},42:function(t,e,n){var r=n(29),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},45:function(t,e,n){var r=n(10),o=n(13),i=n(67)(!1),a=n(34)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,f=[];for(n in s)n!=a&&r(s,n)&&f.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(f,n)||f.push(n));return f}},469:function(t,e,n){"use strict";n.r(e);var r=n(470),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e.default=o.a},470:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(15)),i=r(n(140)),a=r(n(124)),s=r(n(895)),u=n(21),f={name:"Dropdown",directives:{clickoutside:a.default,TransferDomDrop:s.default},components:{Drop:i.default},props:{trigger:{validator:function(t){return(0,u.oneOf)(t,["click","hover","custom"])},default:"hover"},placement:{validator:function(t){return(0,u.oneOf)(t,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},visible:{type:Boolean,default:!1},adaptParentWidth:{type:Boolean,default:!1},transfer:{type:Boolean,default:!1},noTransition:{type:Boolean,default:!1},autoPlacement:{type:Boolean,default:!1},targetNode:{type:[Element,String]},transferzIndex:{type:Number,default:1001},positionFixed:{type:Boolean,default:!1},customTransferClassName:{type:String}},computed:{dropClasses:function(){var t,e=this.globalMixinInfo&&this.globalMixinInfo.theme?this.globalMixinInfo.theme:"";return t={},(0,o.default)(t,this.customTransferClassName,this.transfer&&!!this.customTransferClassName),(0,o.default)(t,"v-transfer-dom",this.transfer),(0,o.default)(t,e,this.transfer&&!!this.globalMixinInfo&&this.globalMixinInfo.theme),t},transferzIndexs:function(){var t=900,e=(0,u.findComponentParent)(this,["Msgbox","Drawer"]);return this.transfer&&e&&(t=this.transferzIndex),t}},data:function(){return{prefixCls:"h-dropdown",currentVisible:this.visible}},watch:{visible:function(t){this.currentVisible=t},currentVisible:function(t){"custom"===this.trigger&&this.$emit("update:visible",t),t&&this.$refs.drop.update(),this.$emit("on-visible-change",t)}},methods:{handleClick:function(){return"custom"!==this.trigger&&("click"===this.trigger&&void(this.currentVisible=!this.currentVisible))},handleMouseenter:function(){var t=this;return"custom"!==this.trigger&&("hover"===this.trigger&&(this.timeout&&clearTimeout(this.timeout),void(this.timeout=setTimeout((function(){t.currentVisible=!0}),250))))},handleMouseleave:function(){var t=this;return"custom"!==this.trigger&&("hover"===this.trigger&&void(this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.currentVisible=!1}),150))))},handleClose:function(){return"custom"!==this.trigger&&("click"===this.trigger&&void(this.currentVisible=!1))},hasParent:function(){var t=(0,u.findComponentsUpward)(this,"Dropdown");return t||!1},fold:function(){this.currentVisible=!1}},mounted:function(){var t=this;window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui dropdown lifecycle mounted"),this.$on("on-click",(function(e){var n=t.hasParent();n&&n.$emit("on-click",e)})),this.$on("on-hover-click",(function(){var e=t.hasParent();e?(t.$nextTick((function(){if("custom"===t.trigger)return!1;t.currentVisible=!1})),e.$emit("on-hover-click")):t.$nextTick((function(){if("custom"===t.trigger)return!1;t.currentVisible=!1}))})),this.$on("on-haschild-click",(function(){t.$nextTick((function(){if("custom"===t.trigger)return!1;t.currentVisible=!0}));var e=t.hasParent();e&&e.$emit("on-haschild-click")}))},beforeDestroy:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui dropdown lifecycle beforeDestroy"),this.$off("on-click"),this.$off("on-hover-click"),this.$off("on-haschild-click"),this.timeout&&clearTimeout(this.timeout)}};e.default=f},471:function(t,e,n){"use strict";n.r(e);var r=n(472),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e.default=o.a},472:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"DropdownMenu"}},473:function(t,e,n){"use strict";n.r(e);var r=n(474),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e.default=o.a},474:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(15)),i="h-dropdown-item",a={name:"DropdownItem",props:{name:{type:[String,Number]},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},divided:{type:Boolean,default:!1}},computed:{classes:function(){var t;return["".concat(i),(t={},(0,o.default)(t,"".concat(i,"-disabled"),this.disabled),(0,o.default)(t,"".concat(i,"-selected"),this.selected),(0,o.default)(t,"".concat(i,"-divided"),this.divided),t)]}},methods:{handleClick:function(){var t,e=this.$parent.$parent.$parent,n=this.$parent&&"Dropdown"===this.$parent.$options.name;this.disabled?this.$nextTick((function(){e.currentVisible=!0})):n?this.$parent.$emit("on-haschild-click"):e&&"Dropdown"===e.$options.name&&e.$emit("on-hover-click"),t=this.name?this.name:this.$el.innerHTML,this.disabled||e.$emit("on-click",t)}}};e.default=a},5:function(t,e,n){var r=n(12),o=n(25),i=n(17),a=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},50:function(t,e,n){var r=n(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},51:function(t,e,n){var r=n(3),o=n(18),i=n(7),a=n(35),s="["+a+"]",u=RegExp("^"+s+s+"*"),f=RegExp(s+s+"*$"),c=function(t,e,n){var o={},s=i((function(){return!!a[t]()||"
"!="
"[t]()})),u=o[t]=s?e(l):a[t];n&&(o[n]=u),r(r.P+r.F*s,"String",o)},l=c.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(f,"")),t};t.exports=c},56:function(t,e,n){t.exports=n(77)},58:function(t,e,n){var r=n(3),o=n(0),i=n(7);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},65:function(t,e,n){var r=n(29),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},67:function(t,e,n){var r=n(13),o=n(42),i=n(65);t.exports=function(t){return function(e,n,a){var s,u=r(e),f=o(u.length),c=i(a,f);if(t&&n!=n){for(;f>c;)if((s=u[c++])!=s)return!0}else for(;f>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},7:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},726:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],class:[t.prefixCls],on:{mouseenter:t.handleMouseenter,mouseleave:t.handleMouseleave}},[n("div",{ref:"reference",class:[t.prefixCls+"-rel"],on:{click:t.handleClick}},[t._t("default")],2),t._v(" "),n("Drop",{directives:[{name:"transfer-dom-drop",rawName:"v-transfer-dom-drop",value:t.targetNode,expression:"targetNode"}],ref:"drop",class:t.dropClasses,attrs:{show:t.currentVisible,animated:!t.noTransition,placement:t.placement,widthAdaption:!1,transferzIndex:t.transferzIndexs,autoPlacement:t.autoPlacement,adaptParentWidth:t.adaptParentWidth,"data-transfer":t.transfer,transfer:t.transfer,positionFixed:t.positionFixed},nativeOn:{mouseenter:function(e){return t.handleMouseenter(e)},mouseleave:function(e){return t.handleMouseleave(e)}}},[t._t("list")],2)],1)},o=[];r._withStripped=!0},727:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("ul",{staticClass:"h-dropdown-menu"},[t._t("default")],2)},o=[];r._withStripped=!0},728:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("li",{class:t.classes,on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[t._t("default")],2)},o=[];r._withStripped=!0},77:function(t,e,n){n(78),t.exports=n(0).Object.keys},78:function(t,e,n){var r=n(20),o=n(19);n(58)("keys",(function(){return function(t){return o(r(t))}}))},8:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},82:function(t,e,n){"use strict";n.r(e);var r=n(83),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e.default=o.a},83:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(56)),i=r(n(109)),a=r(n(137)),s={name:"CommonDropdown",props:{show:{type:Boolean,default:!1},placement:{type:String,validator:function(t){return["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].includes(t)},default:"bottom-start"},autoPlacement:{type:Boolean,default:!1},dropWidth:{type:[String,Number],default:0},maxDropWidth:{type:[String,Number],default:500},dropMinWidth:{type:[String,Number]},widthAdaption:{type:Boolean,default:!1},animated:{type:Boolean,default:!0},transfer:{type:Boolean,default:!1},transferzIndex:{type:Number,default:0},adaptParentWidth:{type:Boolean,default:!0},positionFixed:{type:Boolean,default:!1}},data:function(){return{popperPlacement:"bottom",innerShow:this.show}},computed:{animation:function(){return this.animated?this.popperPlacement.includes("top")?"slide-down":this.popperPlacement.includes("bottom")?"slide-up":"fade":""}},watch:{show:function(t){var e=this;!this.popper&&this.initUpdate(),this.$nextTick((function(){var n=function(){return e.autoPlacement?e.setAutoPlacement():e.placement};t&&e.popper&&(e.popperPlacement=n(),e.popper.popper.style.transformOrigin=n().includes("bottom")?"center top":"center bottom"),e.innerShow=t,t?e.popper.enableEventListeners():e.popper.disableEventListeners(),e.update()}))}},methods:{setAutoPlacement:function(){var t=this.$parent.$el.getBoundingClientRect(),e=t.bottom,n=t.height,r=t.left,o=window.innerHeight,i=window.innerWidth,a=this.$refs.container.clientHeight,s=this.$refs.container.clientWidth;return"none"===this.$refs.container.style.display&&0===a&&(this.$refs.container.style.display="block",a=this.$refs.container.clientHeight,s=this.$refs.container.clientWidth,this.$refs.container.style.display="none"),i-r-20>s?o-e-n<a?"top-start":"bottom-start":o-e-n<a?"top-end":"bottom-end"},update:function(){var t=this;if(this.popper)return this.$nextTick((function(){t.autoPlacement&&t.show&&(t.popperPlacement=t.setAutoPlacement(),t.popper.options.placement=t.setAutoPlacement())})),this.popper.scheduleUpdate(),void this.popper.scheduleUpdate();this.initUpdate()},initUpdate:function(){var t=this,e=this;this.$nextTick((function(){if(!t.popper){var n=function(){return t.autoPlacement?t.setAutoPlacement():t.placement};t.popperPlacement=n(),t.popper=new a.default(t.$parent.$refs.reference,t.$el,{placement:n(),positionFixed:t.positionFixed,eventsEnabled:t.show,modifiers:{preventOverflow:{escapeWithReference:!0},flip:{enabled:!1},computeStyle:{gpuAcceleration:!1},applyStyle:{enabled:!1},applyVueStyle:{enabled:!0,fn:function(t){var n=e.dropWidth,r=e.maxDropWidth,a=e.dropMinWidth,s=e.widthAdaption,u=e.adaptParentWidth,f=t.instance.popper,c=t.offsets.reference.width,l=t.styles;e.$parent.$refs.reference&&(c=e.$parent.$refs.reference.offsetWidth);var p=""===n?0:n,d=""===r?500:r;if(s)f.style.width="auto",(0,i.default)(p)>0?l["min-width"]=(0,i.default)(p):l["min-width"]=c,(0,i.default)(d)>0&&(0,i.default)(d)>(0,i.default)(p)?l["max-width"]=Math.max((0,i.default)(d),c):l["max-width"]=Math.max((0,i.default)(p),c),n&&!isNaN(Number(n))&&(l["max-width"]=Number(n));else{var h=u?c:0;l.width=Math.max(h,Number(a)||0,p)||void 0}!function(t,e,n){n.transfer&&(t.style["z-index"]=n.transferzIndex),(0,o.default)(e).forEach((function(n){var r="";-1!==["width","max-width","min-width","height","top","right","bottom","left"].indexOf(n)&&(r="px"),t.style[n]=e[n]+r}))}(f,l,e)},order:900}},onUpdate:function(){}}),e.popper.scheduleUpdate()}}))}},mounted:function(){var t=this;this.$on("on-static-update",(function(e){t.show&&(t.popper?t.popper.scheduleUpdate():t.update())}))},beforeDestroy:function(){this.$off("on-static-update")},destroyed:function(){this.popper&&this.popper.destroy(),this.popper=null}};e.default=s},893:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(894)),i=r(n(896)),a=r(n(897)),s=n(32);o.default.install=function(t,e){(0,s.setGlobal)(t,e),t.component("HDropdown",o.default),t.component("Dropdown",o.default),t.component("HDropdownMenu",i.default),t.component("DropdownMenu",i.default),t.component("HDropdownItem",a.default),t.component("DropdownItem",a.default)},o.default.Menu=i.default,o.default.Item=a.default;var u=o.default;e.default=u},894:function(t,e,n){"use strict";n.r(e);var r=n(726),o=n(469);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var a=n(4),s=Object(a.a)(o.default,r.a,r.b,!1,null,null,null);e.default=s.exports},895:function(t,e){t.exports=r},896:function(t,e,n){"use strict";n.r(e);var r=n(727),o=n(471);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var a=n(4),s=Object(a.a)(o.default,r.a,r.b,!1,null,null,null);e.default=s.exports},897:function(t,e,n){"use strict";n.r(e);var r=n(728),o=n(473);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var a=n(4),s=Object(a.a)(o.default,r.a,r.b,!1,null,null,null);e.default=s.exports}})}));