UNPKG

h_ui

Version:

A Vue.js 2.0 UI Components Framework

26 lines 67.5 kB
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/lib/cjs/",n(n.s=1083)}({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)}},104:function(t,e,n){t.exports=n(113)},105:function(t,e,n){t.exports=n(114)},106:function(t,e,n){t.exports=n(116)},1083:function(t,e,n){"use strict";var i=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(1084)),r=i(n(1086)),s=n(32);o.default.install=function(t,e){(0,s.setGlobal)(t,e),t.component("HSingleSelect",o.default),t.component("HSingleBlock",r.default)},o.default.Block=r.default;var a=o.default;e.default=a},1084:function(t,e,n){"use strict";n.r(e);var i=n(764),o=n(581);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);var s=n(4),a=Object(s.a)(o.default,i.a,i.b,!1,null,null,null);e.default=a.exports},1085:function(t,e,n){"use strict";n.r(e);var i=n(807),o=n(583);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);var s=n(4),a=Object(s.a)(o.default,i.a,i.b,!1,null,null,null);e.default=a.exports},1086:function(t,e,n){"use strict";n.r(e);var i=n(765),o=n(585);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);var s=n(4),a=Object(s.a)(o.default,i.a,i.b,!1,null,null,null);e.default=a.exports},109:function(t,e,n){t.exports=n(120)},11:function(t,e,n){var i=n(5),o=n(14);t.exports=n(2)?function(t,e,n){return i.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},113:function(t,e,n){n(66),t.exports=n(0).Object.getOwnPropertySymbols},114:function(t,e,n){n(115);var i=n(0).Object;t.exports=function(t,e){return i.getOwnPropertyDescriptor(t,e)}},115:function(t,e,n){var i=n(13),o=n(46).f;n(58)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(i(t),e)}}))},116:function(t,e,n){n(117),t.exports=n(0).Object.getOwnPropertyDescriptors},117:function(t,e,n){var i=n(3),o=n(118),r=n(13),s=n(46),a=n(68);i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=r(t),l=s.f,u=o(i),c={},f=0;u.length>f;)void 0!==(n=l(i,e=u[f++]))&&a(c,e,n);return c}})},118:function(t,e,n){var i=n(44),o=n(36),r=n(12),s=n(1).Reflect;t.exports=s&&s.ownKeys||function(t){var e=i.f(r(t)),n=o.f;return n?e.concat(n(t)):e}},12:function(t,e,n){var i=n(6);t.exports=function(t){if(!i(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 i=n(3),o=n(122);i(i.G+i.F*(parseFloat!=o),{parseFloat:o})},122:function(t,e,n){var i=n(1).parseFloat,o=n(51).trim;t.exports=1/i(n(35)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},124:function(t,e){t.exports=require("h_ui/dist/lib/directives/clickoutside.js")},128:function(t,e){t.exports=require("h_ui/dist/lib/directives/transfer-dom.js")},13:function(t,e,n){var i=n(50),o=n(18);t.exports=function(t){return i(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,i=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()}),i))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function l(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:l(a(t))}function u(t){return t&&t.referenceNode?t.referenceNode:t}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?c:10===t?f:c||f}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 i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(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,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&d(s.firstElementChild)!==s?d(l):l;var u=h(t);return u.host?m(u.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",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function g(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=v(e,"top"),o=v(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function b(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function y(t,e,n,i){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(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,n=t.documentElement,i=p(10)&&getComputedStyle(n);return{height:y("Height",e,n,i),width:y("Width",e,n,i)}}var x=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},S=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),O=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},I=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function E(t){return I({},t,{right:t.left+t.width,bottom:t.top+t.height})}function D(t){var e={};try{if(p(10)){e=t.getBoundingClientRect();var n=v(t,"top"),i=v(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?w(t.ownerDocument):{},a=r.width||t.clientWidth||o.width,l=r.height||t.clientHeight||o.height,u=t.offsetWidth-a,c=t.offsetHeight-l;if(u||c){var f=s(t);u-=b(f,"x"),c-=b(f,"y"),o.width-=u,o.height-=c}return E(o)}function k(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=p(10),o="HTML"===e.nodeName,r=D(t),a=D(e),u=l(t),c=s(e),f=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=E({top:r.top-a.top-f,left:r.left-a.left-d,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!i&&o){var m=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=d-v,h.right-=d-v,h.marginTop=m,h.marginLeft=v}return(i&&!n?e.contains(u):e===u&&"BODY"!==u.nodeName)&&(h=g(h,e)),h}function T(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=k(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:v(n),a=e?0:v(n,"left"),l={top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:r};return E(l)}function _(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=a(t);return!!n&&_(n)}function C(t){if(!t||!t.parentElement||p())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function F(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?C(t):m(t,u(e));if("viewport"===i)r=T(s,o);else{var c=void 0;"scrollParent"===i?"BODY"===(c=l(a(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===i?t.ownerDocument.documentElement:i;var f=k(c,s,o);if("HTML"!==c.nodeName||_(s))r=f;else{var p=w(t.ownerDocument),d=p.height,h=p.width;r.top+=f.top-f.marginTop,r.bottom=d+f.top,r.left+=f.left-f.marginLeft,r.right=h+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 $(t){return t.width*t.height}function M(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=F(n,i,r,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return I({key:t},a[t],{area:$(a[t])})})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function P(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?C(e):m(e,u(n));return k(n,o,i)}function j(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function B(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 L(t,e,n){n=n.split("-")[0];var i=j(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[u]:e[B(a)],o}function N(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 i=N(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&r(n)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=n(e,t))})),e}function H(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=M(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=L(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 q(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function V(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function A(){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(t){var e=t.ownerDocument;return e?e.defaultView:window}function U(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||U(l(r.parentNode),e,n,i),i.push(r)}function K(t,e,n,i){n.updateBound=i,R(t).addEventListener("resize",n.updateBound,{passive:!0});var o=l(t);return U(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Y(){this.state.eventsEnabled||(this.state=K(this.reference,this.options,this.state,this.scheduleUpdate))}function z(){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 G(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Q(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&G(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var J=n&&/Firefox/i.test(navigator.userAgent);function X(t,e,n){var i=N(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.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"],tt=Z.slice(3);function et(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=tt.indexOf(t),i=tt.slice(n+1).concat(tt.slice(0,n));return e?i.reverse():i}var nt="flip",it="clockwise",ot="counterclockwise";function rt(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(N(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&s[a].indexOf(",");var l=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map((function(t,i){var o=(1===i?!r:r)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){return E("%p"===s?n:i)[e]/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}(t,o,e,n)}))})),u.forEach((function(t,e){t.forEach((function(n,i){G(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var st={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:O({},l,r[l]),end:O({},l,r[l]+r[u]-s[u])};t.offsets.popper=I({},s,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],l=void 0;return l=G(+n)?[+n,0]:rt(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,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 i=V("transform"),o=t.instance.popper.style,r=o.top,s=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=F(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=s,o[i]=a,e.boundaries=l;var u=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),O({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),O({},n,i)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=I({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[u]),n[l]>r(i[a])&&(t.offsets.popper[l]=r(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!X(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,l=r.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",f=u?"Top":"Left",p=f.toLowerCase(),d=u?"left":"top",h=u?"bottom":"right",m=j(i)[c];l[h]-m<a[p]&&(t.offsets.popper[p]-=a[p]-(l[h]-m)),l[p]+m>a[h]&&(t.offsets.popper[p]+=l[p]+m-a[h]),t.offsets.popper=E(t.offsets.popper);var v=l[p]+l[c]/2-m/2,g=s(t.instance.popper),b=parseFloat(g["margin"+f]),y=parseFloat(g["border"+f+"Width"]),w=v-t.offsets.popper[p]-b-y;return w=Math.max(Math.min(a[c]-m,w),0),t.arrowElement=i,t.offsets.arrow=(O(n={},p,Math.round(w)),O(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(q(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=F(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=B(i),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case nt:s=[i,o];break;case it:s=et(i);break;case ot:s=et(i,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],o=B(i);var u=t.offsets.popper,c=t.offsets.reference,f=Math.floor,p="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),h=f(u.right)>f(n.right),m=f(u.top)<f(n.top),v=f(u.bottom)>f(n.bottom),g="left"===i&&d||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,b=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(b&&"start"===r&&d||b&&"end"===r&&h||!b&&"start"===r&&m||!b&&"end"===r&&v),w=!!e.flipVariationsByContent&&(b&&"start"===r&&h||b&&"end"===r&&d||!b&&"start"===r&&v||!b&&"end"===r&&m),x=y||w;(p||g||x)&&(t.flipped=!0,(p||g)&&(i=s[l+1]),x&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=I({},t.offsets.popper,L(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],i=t.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),t.placement=B(e),t.offsets.popper=E(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!X(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=N(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,i=e.y,o=t.offsets.popper,r=N(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,s=void 0!==r?r:e.gpuAcceleration,a=d(t.instance.popper),l=D(a),u={position:o.position},c=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,s=Math.floor,a=function(t){return t},l=r(o.width),u=r(i.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),p=e?c||f||l%2==u%2?r:s:a,d=e?r:a;return{left:p(l%2==1&&u%2==1&&!f&&e?i.left-1:i.left),top:d(i.top),bottom:d(i.bottom),right:p(i.right)}}(t,window.devicePixelRatio<2||!J),f="bottom"===n?"top":"bottom",p="right"===i?"left":"right",h=V("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===a.nodeName?-a.clientHeight+c.bottom:-l.height+c.bottom:c.top,m="right"===p?"HTML"===a.nodeName?-a.clientWidth+c.right:-l.width+c.right:c.left,s&&h)u[h]="translate3d("+m+"px, "+v+"px, 0)",u[f]=0,u[p]=0,u.willChange="transform";else{var g="bottom"===f?-1:1,b="right"===p?-1:1;u[f]=v*g,u[p]=m*b,u.willChange=f+", "+p}var y={"x-placement":t.placement};return t.attributes=I({},y,t.attributes),t.styles=I({},u,t.styles),t.arrowStyles=I({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Q(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&&Q(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=P(o,e,t,n.positionFixed),s=M(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),Q(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},at={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:st},lt=function(){function t(e,n){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=o(this.update.bind(this)),this.options=I({},t.Defaults,s),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(I({},t.Defaults.modifiers,s.modifiers)).forEach((function(e){i.options.modifiers[e]=I({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return I({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&r(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return S(t,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return A.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return z.call(this)}}]),t}();lt.Utils=("undefined"!=typeof window?window:t).PopperUtils,lt.placements=Z,lt.Defaults=at,e.default=lt}.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}}},15:function(t,e,n){var i=n(38);t.exports=function(t,e,n){return e in t?i(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 i=n(27);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},17:function(t,e,n){var i=n(6);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(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 i=n(45),o=n(31);t.exports=Object.keys||function(t){return i(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 i=n(18);t.exports=function(t){return Object(i(t))}},21:function(t,e){t.exports=require("h_ui/dist/lib/util/tools.js")},22:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},23:function(t,e){t.exports=!0},230:function(t,e){t.exports=require("h_ui/dist/lib/util/index.js")},24:function(t,e,n){var i=n(6),o=n(1).document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?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}},28:function(t,e){e.f={}.propertyIsEnumerable},29:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},3:function(t,e,n){var i=n(1),o=n(0),r=n(16),s=n(11),a=n(10),l=function(t,e,n){var u,c,f,p=t&l.F,d=t&l.G,h=t&l.S,m=t&l.P,v=t&l.B,g=t&l.W,b=d?o:o[e]||(o[e]={}),y=b.prototype,w=d?i:h?i[e]:(i[e]||{}).prototype;for(u in d&&(n=e),n)(c=!p&&w&&void 0!==w[u])&&a(b,u)||(f=c?w[u]:n[u],b[u]=d&&"function"!=typeof w[u]?n[u]:v&&c?r(f,i):g&&w[u]==f?function(t){var e=function(e,n,i){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,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):m&&"function"==typeof f?r(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[u]=f,t&l.R&&y&&!y[u]&&s(y,u,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},30:function(t,e,n){var i=n(0),o=n(1),r="__core-js_shared__",s=o[r]||(o[r]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.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,e){t.exports=require("h_ui/dist/lib/util/global.js")},33:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},34:function(t,e,n){var i=n(30)("keys"),o=n(22);t.exports=function(t){return i[t]||(i[t]=o(t))}},35:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},36:function(t,e){e.f=Object.getOwnPropertySymbols},37:function(t,e,n){var i=n(5).f,o=n(10),r=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},38:function(t,e,n){t.exports=n(39)},39:function(t,e,n){n(40);var i=n(0).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},4:function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,a){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(l=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(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return i}))},40:function(t,e,n){var i=n(3);i(i.S+i.F*!n(2),"Object",{defineProperty:n(5).f})},41:function(t,e,n){e.f=n(9)},42:function(t,e,n){var i=n(29),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},43:function(t,e,n){var i=n(1),o=n(0),r=n(23),s=n(41),a=n(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},44:function(t,e,n){var i=n(45),o=n(31).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},45:function(t,e,n){var i=n(10),o=n(13),r=n(67)(!1),s=n(34)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),l=0,u=[];for(n in a)n!=s&&i(a,n)&&u.push(n);for(;e.length>l;)i(a,n=e[l++])&&(~r(u,n)||u.push(n));return u}},46:function(t,e,n){var i=n(28),o=n(14),r=n(13),s=n(17),a=n(10),l=n(25),u=Object.getOwnPropertyDescriptor;e.f=n(2)?u:function(t,e){if(t=r(t),e=s(e,!0),l)try{return u(t,e)}catch(t){}if(a(t,e))return o(!i.f.call(t,e),t[e])}},48:function(t,e,n){var i=n(12),o=n(74),r=n(31),s=n(34)("IE_PROTO"),a=function(){},l=function(){var t,e=n(24)("iframe"),i=r.length;for(e.style.display="none",n(73).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[r[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=i(t),n=new a,a.prototype=null,n[s]=t):n=l(),void 0===e?n:o(n,e)}},49:function(t,e){t.exports=require("h_ui/dist/lib/mixins/locale.js")},5:function(t,e,n){var i=n(12),o=n(25),r=n(17),s=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return s(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 i=n(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},51:function(t,e,n){var i=n(3),o=n(18),r=n(7),s=n(35),a="["+s+"]",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),c=function(t,e,n){var o={},a=r((function(){return!!s[t]()||"​…"!="​…"[t]()})),l=o[t]=a?e(f):s[t];n&&(o[n]=l),i(i.P+i.F*a,"String",o)},f=c.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=c},53:function(t,e,n){t.exports=n(69)},54:function(t,e,n){t.exports=n(11)},56:function(t,e,n){t.exports=n(77)},57:function(t,e,n){var i=n(33);t.exports=Array.isArray||function(t){return"Array"==i(t)}},58:function(t,e,n){var i=n(3),o=n(0),r=n(7);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},581:function(t,e,n){"use strict";n.r(e);var i=n(582),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e.default=o.a},582:function(t,e,n){"use strict";var i=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,r=i(n(15)),s=i(n(53)),a=i(n(698)),l=i(n(1085)),u=i(n(124)),c=i(n(128)),f=i(n(230)),p=i(n(60)),d=i(n(49)),h={name:"SingleSelect",mixins:[p.default,d.default],components:{Drop:l.default},directives:{clickoutside:u.default,TransferDom:c.default},props:{value:{type:[String,Number],default:""},label:{type:String,default:""},animated:{type:Boolean,default:!0},accuFilter:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{type:String},filterBy:{type:String,default:""},inputDelay:{type:Number,default:100},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:function(t,e){e()}},loading:{type:Boolean,default:!1},loadingText:{type:String},transfer:{type:Boolean,default:!1},autoPlacement:{type:Boolean,default:!1},placement:{validator:function(t){return["top","top-start","top-end","bottom","bottom-start","bottom-end"].includes(t)},default:"bottom"},widthAdaption:{type:Boolean,default:!1},dropWidth:{type:[String,Number]},maxDropWidth:{type:[String,Number],default:500},keepInputValue:{type:Boolean,default:!1},showFirstLabelOnly:{type:Boolean,default:!1},hiddenEmpty:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!0},scrollToTop:{type:Boolean,default:!1},lazyLoadDrop:{type:Boolean,default:!1},isFilterValue:{type:Boolean,default:!0},tabindex:{type:[String,Number],default:0,validator:function(t){var e=(0,s.default)(t,10);return e<=32767&&e>=-1}},canDragValue:{type:Boolean,default:!1},showCol:{type:Array,default:function(){return[]}},isStockSelect:{type:Boolean,default:!1},firstInit:{type:Boolean,default:!1},kbCid:String,beforeFocus:{type:Function,default:function(){return!0}},afterFocus:{type:Function,default:function(){}},maxlength:{type:Number,default:1/0},lengthByByte:{type:Boolean,default:!1},byteNum:{type:[Number,String],default:2},positionFixed:{type:Boolean,default:!1},customTransferClassName:{type:String}},data:function(){return{prefixCls:"h-selectTable",isRealVisible:!this.lazyLoadDrop,visible:!1,fPlacement:this.placement,isInputting:!1,availableOptions:[],isInputFocus:!1,focusIndex:0,focusValue:"",model:null,selectedString:"",queryString:"",isFilter:this.isFilterValue,loadFlag:!1}},computed:{classes:function(){var t;return["".concat(this.prefixCls),"".concat(this.prefixCls,"-single"),(t={},(0,r.default)(t,"".concat(this.prefixCls,"-visible"),this.visible),(0,r.default)(t,"".concat(this.prefixCls,"-disabled"),this.disabled),(0,r.default)(t,"".concat(this.prefixCls,"-readonly"),this.readonly),t)]},dropdownCls:function(){var t,e=this.globalMixinInfo&&this.globalMixinInfo.theme?this.globalMixinInfo.theme:"";return t={"h-select-dropdown-transfer":this.transfer},(0,r.default)(t,this.customTransferClassName,this.transfer&&!!this.customTransferClassName),(0,r.default)(t,"v-transfer-dom",this.transfer),(0,r.default)(t,e,this.transfer&&!!this.globalMixinInfo&&this.globalMixinInfo.theme),t},showPlaceholder:function(){var t=!1;return"string"==typeof this.model?""===this.model&&(t=!0):null===this.model&&(t=!0),t},localePlaceholder:function(){return void 0===this.placeholder?this.t("i.select.placeholder"):this.placeholder},localeLoadingText:function(){return void 0===this.loadingText?this.t("i.select.loading"):this.loadingText},transitionName:function(){return this.fPlacement.match(/^bottom/)?"slide-up":"slide-down"},dropVisible:function(){var t=!0,e=this.$slots.default||[];return this.loading||!this.remote||""!==this.queryString||e.length||(t=!1),this.visible&&t}},watch:{value:{handler:function(t){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui singleselect watch value change: "+t),this.model=t},immediate:!0},label:{handler:function(t){t&&this.updateSelectedString(this.model)},immediate:!0},model:function(t){this.updateSelectedString(t)},selectedString:function(t){if(this.$emit("input",t),(this.isFilter||this.isRealVisible||""===t)&&this.isFilterValue){this.toggleSelected(t);var e=this.findOptionLabel(t,this.visible);this.queryString=e}else this.queryString=this.label},queryString:function(t){var e=this;o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,e.isInputting&&(e.remote&&e.remoteMethod?e.remoteMethod(t,(function(){e.$nextTick((function(){e.firstInit?e.broadcast("SingleBlock","on-query-change","",!0):e.broadcast("SingleBlock","on-query-change",t)}))})):(e.keepInputValue&&e.broadcast("SingleBlock","on-add-option",t),e.loadFlag=!0,e.broadcast("SingleBlock","on-query-change",t)),e.$emit("on-query-change",t),0===t.length&&(e.model="",e.focusValue="")),e.lengthByByte&&e.maxlength)for(var n=0,i=0;i<t.length;i++){var r=t.charAt(i);if(/[^\x00-\xff]|\·/.test(r)?n+=Number(e.byteNum):n+=1,n>e.maxlength){var s=t.substr(0,i);e.queryString=s;break}}e.broadcast("Drop","on-update-popper")}),this.inputDelay)},visible:function(t){var e=this;t?(this.isRealVisible?(this.$nextTick().then((function(){e.isInputting||e.updateQueryLabel(),e.scrollToTop&&e.broadcast("SingleBlock","on-scroll-top")})).then((function(){e.isInputting||e.$refs.input.select()})),this.broadcast("Drop","on-update-popper")):(this.isRealVisible=!0,this.$nextTick().then((function(){e.isFilter=!0,e.updateOptions(!0),e.toggleSelected(e.selectedString),e.broadcast("Drop","on-update-popper"),e.isInputting||e.updateQueryLabel()})).then((function(){e.isInputting||e.$refs.input.select()}))),this.setPlacement(),setTimeout((function(){e.dispatch("Msgbox","on-esc-real-close",!1)}),0)):(this.remote&&this.remoteMethod||this.broadcast("SingleBlock","on-query-change","",!0),this.isInputting||this.updateQueryLabel(),setTimeout((function(){e.dispatch("Msgbox","on-esc-real-close",!0)}),0)),this.$emit("on-drop-change",t)},placement:function(t){this.fPlacement=t}},methods:{updateSelectedString:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.availableOptions,r=this.label,s=this.visible;if(!this.isRealVisible&&!s&&r.length>0||!this.isFilterValue)this.$nextTick((function(){e.selectedString=t,e.isFilter=!1}));else{var a=o.filter((function(e){return e.value===t}));a.length>0?(this.selectedString=a[0].value,i&&this.model===this.selectedString&&this.toggleSelected(this.selectedString)):n||i||(this.selectedString="")}},toggleSelected:function(t){var e=this;this.findChild((function(n){n.cloneData.forEach((function(n){t===n.value?(e.$set(n,"selected",!0),e.$emit("on-change",e.model)):e.$set(n,"selected",!1)}))})),""===t&&this.$emit("on-change",t)},findOptionLabel:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.availableOptions,i=this.showCols(),o="",r=n.filter((function(e){return e.value===t}));return r.length>0&&(o=i.length>0&&!this.showFirstLabelOnly&&!e?r[0].label+" "+r[0][i[0]]:r[0].label),o},showCols:function(){var t=this.showCol;return this.findChild((function(e){t=e.showCol})),t},updateQueryLabel:function(){var t=this.isInputFocus,e=this.visible;this.isInputting=!1,t&&e&&this.queryString.length>0?this.queryString=this.findOptionLabel(this.model,!0):!e&&this.queryString.length>0&&(this.queryString=this.findOptionLabel(this.model))},handleClose:function(){var t=this,e=this.isInputFocus,n=this.isInputting,i=this.availableOptions;if(e&&n){var o=!1;if(""!==this.queryString){for(var r in i)if(this.queryString===i[r].label||this.queryString===i[r].label1){this.model=i[r].value,o=!0;break}o||(i.length>0?this.checkOption(this.focusValue):this.model=""),o=!1}this.$nextTick((function(){t.dispatch("FormItem","on-form-blur",t.model)}))}this.isInputFocus=!1,this.isInputting=!1,this.fold()},handleToggleMenu:function(){var t=this;if(this.disabled||this.readonly)return!1;if(this.isStockSelect&&this.visible)return!1;if(this.remote&&this.loading||!this.remote&&this.loadFlag)return!1;this.visible=!this.visible;var e=this.availableOptions;if(!this.visible){if(e.length>0){var n;for(var i in e)if(this.queryString===e[i].label||this.queryString===e[i].label1){this.model=e[i].value,n=!0;break}n||(e.length>0?this.checkOption(this.focusValue):this.model=""),n=!1,this.$nextTick((function(){t.dispatch("FormItem","on-form-blur",t.model)}))}else""!==this.queryString&&(this.model="");this.isInputting=!1}this.model&&0!==this.availableOptions.length&&(this.focusValue=this.model,this.focusIndex=this.findOptionIndex(this.focusValue)+1,this.broadcast("SingleBlock","on-focus-change",this.focusValue)),this.focus()},findOptionIndex:function(t){var e=this.availableOptions.filter((function(e){return e.value===t}));return e.length>0?e[0].index:0},handleInputFocus:function(t){this.isInputFocus=!0,this.$emit("on-focus"),this.$emit("on-input-focus"),this.dispatch("FormItem","on-form-focus")},handleInputBlur:function(){this.isInputFocus=!1,this.$emit("on-blur"),this.dispatch("FormItem","on-form-blur")},handleInputKeyDown:function(t){if(this.disabled||this.readonly)return!1;f.default.isKeyMatch(t,"Tab")||f.default.isKeyMatch(t,"Esc")||f.default.isKeyMatch(t,"Enter")||f.default.isKeyMatch(t,"Delete")||f.default.isKeyMatch(t,"Ctrl_L")||f.default.isKeyMatch(t,"Alt_L")||f.default.isKeyMatch(t,"Up")||f.default.isKeyMatch(t,"Down")||f.default.isKeyMatch(t,"Left")||f.default.isKeyMatch(t,"Right")||(this.visible||(this.visible=!0),this.isInputting=!0),this.isInputFocus||(this.isInputFocus=!0),this.$emit("on-keydown",this.queryString,t)},handleInputKeyup:function(t){f.default.isKeyMatch(t,"Tab")||this.$emit("on-keyup",this.queryString,t)},handleInputDrop:function(t){this.canDragValue||t.preventDefault()},handleSelectKeydown:function(t){if(this.disabled||this.readonly)return!1;var e=this.visible,n=this.availableOptions;e&&(f.default.isKeyMatch(t,"Tab")&&(this.fold(),this.isInputFocus=!1),f.default.isKeyMatch(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.navigateOptions("prev")):f.default.isKeyMatch(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.navigateOptions("next")):f.default.isKeyMatch(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.fold()):f.default.isKeyMatch(t,"Enter")&&(t.preventDefault(),n.length>0?this.checkOption(this.focusValue,!1,"keyboard"):this.queryString="",this.fold(),this.focus())),f.default.isKeyMatch(t,"Delete")&&(t.preventDefault(),this.model="",this.$emit("on-change",this.model))},navigateOptions:function(t){var e=this;if(!(this.availableOptions.length<=0)){if("next"===t){var n=this.focusIndex+1;this.focusIndex=this.focusIndex>=this.availableOptions.length?1:n}else if("prev"===t){var i=this.focusIndex-1;this.focusIndex=this.focusIndex<=1?this.availableOptions.length:i}var o=this.availableOptions[this.focusIndex-1].value;this.focusValue=o,this.findChild((function(t){var n=t.itemHeight;t.$el.scrollTop=n*(e.focusIndex-1)})),this.broadcast("SingleBlock","on-focus-change",o)}},findChild:function(t){var e=function e(n){n.$options.componentName?t(n):n.$children.length&&n.$children.forEach((function(t){e(t)}))};this.$children.forEach((function(t){e(t)}))},updateOptions:function(t){var e=[];this.findChild((function(t){t.cloneData.forEach((function(n,i){e.push((0,a.default)({value:n.value,label:n.label||n.value,label1:n[t.showCol[0]],disabled:n.disabled||!1,index:i}))}))})),this.availableOptions=e,this.broadcast("Drop","on-update-popper"),t&&(this.remote||this.updateSelectedString(this.model,!0))},checkOption:function(t){var e=this,n=arguments.length>2?arguments[2]:void 0;this.model=t,"click"!==n&&"keyboard"!==n||(this.isInputting=!1,this.fold(),this.dispatch("FormItem","on-form-change",this.model),this.$nextTick((function(){e.$refs.input.select(),"click"===n&&e.$emit("on-item-click",t)})))},setPlacement:function(){if(this.autoPlacement){var t=document.documentElement.clientHeight,e=document.documentElement.clientWidth,n=this.$refs.select.getBoundingClientRect(),i=t-n.top-n.height,o=e-n.left,r=this.dropWidth?this.dropWidth:this.maxDropWidth?this.maxDropWidth:0;this.fPlacement=i<210?o<r?"top-end":"top-start":o<r?"bottom-end":"bottom-start"}},focus:function(){this.isInputFocus=!0,this.$refs.input.focus()},blur:function(){var t=this,e=this.isInputFocus,n=this.visible,i=this.availableOptions;if(e&&n){var o=!1;if(""!==this.queryString){for(var r in i)if(this.queryString===i[r].label||this.queryString===i[r].label1){this.model=i[r].value,o=!0;break}o||(i.length>0?this.checkOption(this.focusValue):this.model=""),o=!1}this.$nextTick((function(){t.dispatch("FormItem","on-form-blur",t.model)}))}this.fold(),this.$refs.input.blur(),this.isInputting=!1,this.isInputFocus=!1},fold:function(){this.visible=!1},customerResetModel:function(){this.model=this.value,this.updateSelectedString(this.model)},forceUpdateInputQuery:function(){this.queryString=this.findOptionLabel(this.model)}},mounted:function(){var t=this;window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui singleselect lifecycle mounted"),this.isRealVisible&&this.updateOptions(!0),this.$on("on-options-visible-change",(function(e){t.availableOptions=e.data.filter((function(t){return!t.hidden})),t.availableOptions.forEach((function(t,e){t.index=e})),t.loadFlag=!1,""===t.model&&""===t.queryString?t.focusIndex=0:(t.focusIndex=1,t.focusValue=t.availableOptions.length>0?t.availableOptions[t.focusIndex-1].value:null)}))},beforeDestroy:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui singleselect lifecycle beforeDestroy"),this.broadcast("Drop","on-destroy-popper"),this.$off("on-options-visible-change")}};e.default=h},583:function(t,e,n){"use strict";n.r(e);var i=n(584),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e.default=o.a},584:function(t,e,n){"use strict";var i=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(109)),r=i(n(53)),s=n(21),a=i(n(137)),l={name:"Drop",props:{widthAdaption:{type:Boolean,default:!1},maxDropWidth:{type:[String,Number],default:500},placement:{type:String,default:"bottom-start"},className:{type:String},dropWidth:{type:[String,Number]},positionFixed:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},data:function(){return{popper:null,width:"",parentWidth:null}},computed:{styles:function(){var t={};if(this.widthAdaption){if((0,o.default)(this.dropWidth)>0?t.minWidth="".concat((0,o.default)(this.dropWidth),"px"):t.minWidth="".concat((0,o.default)(this.parentWidth),"px"),(0,o.default)(this.maxDropWidth)>0&&(0,o.default)(this.dropWidth)>0&&(0,o.default)(this.maxDropWidth)>(0,o.default)(this.dropWidth)){var e=Math.max((0,o.default)(this.maxDropWidth),(0,o.default)(this.parentWidth));t.maxWidth="".concat(e,"px")}else if((0,o.default)(this.maxDropWidth)>0&&(0,o.default)(this.dropWidth)>0&&(0,o.default)(this.maxDropWidth)<=(0,o.default)(this.dropWidth)){var n=Math.max((0,o.default)(this.dropWidth),(0,o.default)(this.parentWidth));t.maxWidth="".concat(n,"px")}else t.maxWidth="".concat(this.maxDropWidth,"px");t.width="auto"}else this.width?t.width="".concat(this.width,"px"):t.width="".concat(this.dropWidth,"px");return t}},watch:{show:function(t){t?this.popper.enableEventListeners():this.popper.disableEventListeners()}},methods:{handleClick:function(t){this.$emit("click",t)},update:function(){var t=this;if(this.popper?this.$nextTick((function(){t.popper.options.placement=t.placement,t.popper.update()})):this.$nextTick((function(){var e=t.placement;t.popper=new a.default(t.$parent.$refs.reference,t.$el,{eventsEnabled:!1,placement:e,positionFixed:t.positionFixed,modifiers:{preventOverflow:{padding:0,escapeWithReference:!0,boundariesElement:"body"},flip:{enabled:!1},computeStyle:{gpuAcceleration:!1},onCreate:function(){t.resetTransformOrigin()}}})})),this.dropWidth)this.width=this.dropWidth,this.parentWidth=this.dropWidth;else{var e=(0,r.default)((0,s.getStyle)(this.$parent.$el,"width"),10);this.width=e,this.parentWidth=e}},destroy:function(){var t=this;this.popper&&(this.resetTransformOrigin(),setTimeout((function(){t.popper.destroy(),t.popper=null}),300))},resetTransformOrigin:function(t){var e={top:"bottom",bottom:"top"}[this.$el.getAttribute("x-placement").split("-")[0]];this.$el.style.transformOrigin="center ".concat(e)}},created:function(){this.$on("on-update-popper",this.update),this.$on("on-destroy-popper",this.destroy)},beforeDestroy:function(){this.popper&&this.popper.destroy()}};e.default=l},585:function(t,e,n){"use strict";n.r(e);var i=n(586),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e.default=o.a},586:function(t,e,n){"use strict";var i=n(56),o=n(104),r=n(105),s=n(106),a=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=a(n(15)),u=a(n(60)),c=a(n(49)),f=n(21);