h_ui
Version:
A Vue.js 2.0 UI Components Framework
26 lines • 75.4 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/mixins/locale.js"),require("h_ui/dist/lib/mixins/emitter.js"),require("h_ui/dist/lib/util/dom.js"),require("h_ui/dist/lib/directives/transfer-dom.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/mixins/locale.js","h_ui/dist/lib/mixins/emitter.js","h_ui/dist/lib/util/dom.js","h_ui/dist/lib/directives/transfer-dom.js"],t):"object"==typeof exports?exports["h_ui/lib"]=t(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/mixins/locale.js"),require("h_ui/dist/lib/mixins/emitter.js"),require("h_ui/dist/lib/util/dom.js"),require("h_ui/dist/lib/directives/transfer-dom.js")):e["h_ui/lib"]=t(e["h_ui/dist/lib/util/tools.js"],e["h_ui/dist/lib/util/global.js"],e["h_ui/dist/lib/mixins/locale.js"],e["h_ui/dist/lib/mixins/emitter.js"],e["h_ui/dist/lib/util/dom.js"],e["h_ui/dist/lib/directives/transfer-dom.js"])}(window,(function(e,t,n,i,r,o){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/lib/",n(n.s=1152)}({0:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},10:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},101:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.innerShow,expression:"innerShow"}],ref:"container",staticClass:"h-select-dropdown",on:{mousedown:function(e){e.stopPropagation()}}},[e._t("default")],2)])},r=[];i._withStripped=!0},109:function(e,t,n){e.exports=n(120)},11:function(e,t,n){var i=n(5),r=n(14);e.exports=n(2)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},112:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},1152:function(e,t,n){"use strict";var i=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(701)),o=n(32);r.default.install=function(e,t){(0,o.setGlobal)(e,t),e.component("HTypefield",r.default),e.component("Typefield",r.default)};var s=r.default;t.default=s},12:function(e,t,n){var i=n(6);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},120:function(e,t,n){n(121),e.exports=n(0).parseFloat},121:function(e,t,n){var i=n(3),r=n(122);i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},122:function(e,t,n){var i=n(1).parseFloat,r=n(51).trim;e.exports=1/i(n(35)+"-0")!=-1/0?function(e){var t=r(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},128:function(e,t){e.exports=o},13:function(e,t,n){var i=n(50),r=n(18);e.exports=function(e){return i(r(e))}},137:function(e,t,n){"use strict";n.r(t),function(e){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),i))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:u(a(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var f=n&&!(!window.MSInputMethodContext||!document.documentMode),c=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?f:10===e?c:f||c}function h(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function d(e){return null!==e.parentNode?d(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s,a,u=o.commonAncestorContainer;if(e!==u&&t!==u||i.contains(r))return"BODY"===(a=(s=u).nodeName)||"HTML"!==a&&h(s.firstElementChild)!==s?h(u):u;var l=d(e);return l.host?m(l.host,t):m(e,d(t).host)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||r;return o[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=g(t,"top"),r=g(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function b(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function w(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function y(e){var t=e.body,n=e.documentElement,i=p(10)&&getComputedStyle(n);return{height:w("Height",t,n,i),width:w("Width",t,n,i)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},N=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),O=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function E(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=g(e,"top"),i=g(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?y(e.ownerDocument):{},a=o.width||e.clientWidth||r.width,u=o.height||e.clientHeight||r.height,l=e.offsetWidth-a,f=e.offsetHeight-u;if(l||f){var c=s(e);l-=b(c,"x"),f-=b(c,"y"),r.width-=l,r.height-=f}return E(r)}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=p(10),r="HTML"===t.nodeName,o=_(e),a=_(t),l=u(e),f=s(t),c=parseFloat(f.borderTopWidth),h=parseFloat(f.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=E({top:o.top-a.top-c,left:o.left-a.left-h,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var m=parseFloat(f.marginTop),g=parseFloat(f.marginLeft);d.top-=c-m,d.bottom-=c-m,d.left-=h-g,d.right-=h-g,d.marginTop=m,d.marginLeft=g}return(i&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(d=v(d,t)),d}function D(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=T(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:g(n),a=t?0:g(n,"left"),u={top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:o};return E(u)}function V(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var n=a(e);return!!n&&V(n)}function M(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function B(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=r?M(e):m(e,l(t));if("viewport"===i)o=D(s,r);else{var f=void 0;"scrollParent"===i?"BODY"===(f=u(a(t))).nodeName&&(f=e.ownerDocument.documentElement):f="window"===i?e.ownerDocument.documentElement:i;var c=T(f,s,r);if("HTML"!==f.nodeName||V(s))o=c;else{var p=y(e.ownerDocument),h=p.height,d=p.width;o.top+=c.top-c.marginTop,o.bottom=h+c.top,o.left+=c.left-c.marginLeft,o.right=d+c.left}}var g="number"==typeof(n=n||0);return o.left+=g?n:n.left||0,o.top+=g?n:n.top||0,o.right-=g?n:n.right||0,o.bottom-=g?n:n.bottom||0,o}function C(e){return e.width*e.height}function F(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=B(n,i,o,r),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},u=Object.keys(a).map((function(e){return S({key:e},a[e],{area:C(a[e])})})).sort((function(e,t){return t.area-e.area})),l=u.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),f=l.length>0?l[0].key:u[0].key,c=e.split("-")[1];return f+(c?"-"+c:"")}function P(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?M(t):m(t,l(n));return T(n,r,i)}function j(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function k(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function $(e,t,n){n=n.split("-")[0];var i=j(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return r[s]=t[s]+t[u]/2-i[u]/2,r[a]=n===a?t[a]-i[l]:t[k(a)],r}function A(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=A(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function;var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=E(t.offsets.popper),t.offsets.reference=E(t.offsets.reference),t=n(t,e))})),t}function I(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=F(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=$(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=L(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function R(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function U(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function H(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(e){var t=e.ownerDocument;return t?t.defaultView:window}function z(e,t,n,i){var r="BODY"===e.nodeName,o=r?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),r||z(u(o.parentNode),t,n,i),i.push(o)}function q(e,t,n,i){n.updateBound=i,W(e).addEventListener("resize",n.updateBound,{passive:!0});var r=u(e);return z(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function G(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,W(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function X(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function J(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&X(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var Z=n&&/Firefox/i.test(navigator.userAgent);function K(e,t,n){var i=A(e,(function(e){return e.name===t})),r=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!r);return r}var Q=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ee=Q.slice(3);function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),i=ee.slice(n+1).concat(ee.slice(0,n));return t?i.reverse():i}var ne="flip",ie="clockwise",re="counterclockwise";function oe(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(A(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&s[a].indexOf(",");var u=/\s*,\s*|\s+/,l=-1!==a?[s.slice(0,a).concat([s[a].split(u)[0]]),[s[a].split(u)[1]].concat(s.slice(a+1))]:[s];return l=l.map((function(e,i){var r=(1===i?!o:o)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return e;if(0===s.indexOf("%")){return E("%p"===s?n:i)[t]/100*o}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*o;return o}(e,r,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,i){X(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}var se={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),u=a?"left":"top",l=a?"width":"height",f={start:O({},u,o[u]),end:O({},u,o[u]+o[l]-s[l])};e.offsets.popper=S({},s,f[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],u=void 0;return u=X(+n)?[+n,0]:oe(n,o,s,a),"left"===a?(o.top+=u[0],o.left-=u[1]):"right"===a?(o.top+=u[0],o.left+=u[1]):"top"===a?(o.left+=u[0],o.top-=u[1]):"bottom"===a&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var i=U("transform"),r=e.instance.popper.style,o=r.top,s=r.left,a=r[i];r.top="",r.left="",r[i]="";var u=B(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=s,r[i]=a,t.boundaries=u;var l=t.priority,f=e.offsets.popper,c={primary:function(e){var n=f[e];return f[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(f[e],u[e])),O({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=f[n];return f[e]>u[e]&&!t.escapeWithReference&&(i=Math.min(f[n],u[e]-("right"===e?f.width:f.height))),O({},n,i)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";f=S({},f,c[t](e))})),e.offsets.popper=f,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",u=s?"left":"top",l=s?"width":"height";return n[a]<o(i[u])&&(e.offsets.popper[u]=o(i[u])-n[l]),n[u]>o(i[a])&&(e.offsets.popper[u]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!K(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(r),f=l?"height":"width",c=l?"Top":"Left",p=c.toLowerCase(),h=l?"left":"top",d=l?"bottom":"right",m=j(i)[f];u[d]-m<a[p]&&(e.offsets.popper[p]-=a[p]-(u[d]-m)),u[p]+m>a[d]&&(e.offsets.popper[p]+=u[p]+m-a[d]),e.offsets.popper=E(e.offsets.popper);var g=u[p]+u[f]/2-m/2,v=s(e.instance.popper),b=parseFloat(v["margin"+c]),w=parseFloat(v["border"+c+"Width"]),y=g-e.offsets.popper[p]-b-w;return y=Math.max(Math.min(a[f]-m,y),0),e.arrowElement=i,e.offsets.arrow=(O(n={},p,Math.round(y)),O(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(R(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=B(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=k(i),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case ne:s=[i,r];break;case ie:s=te(i);break;case re:s=te(i,!0);break;default:s=t.behavior}return s.forEach((function(a,u){if(i!==a||s.length===u+1)return e;i=e.placement.split("-")[0],r=k(i);var l=e.offsets.popper,f=e.offsets.reference,c=Math.floor,p="left"===i&&c(l.right)>c(f.left)||"right"===i&&c(l.left)<c(f.right)||"top"===i&&c(l.bottom)>c(f.top)||"bottom"===i&&c(l.top)<c(f.bottom),h=c(l.left)<c(n.left),d=c(l.right)>c(n.right),m=c(l.top)<c(n.top),g=c(l.bottom)>c(n.bottom),v="left"===i&&h||"right"===i&&d||"top"===i&&m||"bottom"===i&&g,b=-1!==["top","bottom"].indexOf(i),w=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&d||!b&&"start"===o&&m||!b&&"end"===o&&g),y=!!t.flipVariationsByContent&&(b&&"start"===o&&d||b&&"end"===o&&h||!b&&"start"===o&&g||!b&&"end"===o&&m),x=w||y;(p||v||x)&&(e.flipped=!0,(p||v)&&(i=s[u+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=S({},e.offsets.popper,$(e.instance.popper,e.offsets.reference,e.placement)),e=L(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),e.placement=k(t),e.offsets.popper=E(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=A(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=A(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration,s=void 0!==o?o:t.gpuAcceleration,a=h(e.instance.popper),u=_(a),l={position:r.position},f=function(e,t){var n=e.offsets,i=n.popper,r=n.reference,o=Math.round,s=Math.floor,a=function(e){return e},u=o(r.width),l=o(i.width),f=-1!==["left","right"].indexOf(e.placement),c=-1!==e.placement.indexOf("-"),p=t?f||c||u%2==l%2?o:s:a,h=t?o:a;return{left:p(u%2==1&&l%2==1&&!c&&t?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:p(i.right)}}(e,window.devicePixelRatio<2||!Z),c="bottom"===n?"top":"bottom",p="right"===i?"left":"right",d=U("transform"),m=void 0,g=void 0;if(g="bottom"===c?"HTML"===a.nodeName?-a.clientHeight+f.bottom:-u.height+f.bottom:f.top,m="right"===p?"HTML"===a.nodeName?-a.clientWidth+f.right:-u.width+f.right:f.left,s&&d)l[d]="translate3d("+m+"px, "+g+"px, 0)",l[c]=0,l[p]=0,l.willChange="transform";else{var v="bottom"===c?-1:1,b="right"===p?-1:1;l[c]=g*v,l[p]=m*b,l.willChange=c+", "+p}var w={"x-placement":e.placement};return e.attributes=S({},w,e.attributes),e.styles=S({},l,e.styles),e.arrowStyles=S({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return J(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&J(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=P(r,t,e,n.positionFixed),s=F(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),J(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:se},ue=function(){function e(t,n){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=r(this.update.bind(this)),this.options=S({},e.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,s.modifiers)).forEach((function(t){i.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},s.modifiers?s.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return N(e,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return G.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();ue.Utils=("undefined"!=typeof window?window:e).PopperUtils,ue.placements=Q,ue.Defaults=ae,t.default=ue}.call(this,n(112))},14:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},140:function(e,t,n){"use strict";n.r(t);var i=n(101),r=n(82);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(4),a=Object(s.a)(r.default,i.a,i.b,!1,null,null,null);t.default=a.exports},143:function(e,t,n){e.exports=n(144)},144:function(e,t,n){n(145),e.exports=n(0).Object.assign},145:function(e,t,n){var i=n(3);i(i.S+i.F,"Object",{assign:n(146)})},146:function(e,t,n){"use strict";var i=n(2),r=n(19),o=n(36),s=n(28),a=n(20),u=n(50),l=Object.assign;e.exports=!l||n(7)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){for(var n=a(e),l=arguments.length,f=1,c=o.f,p=s.f;l>f;)for(var h,d=u(arguments[f++]),m=c?r(d).concat(c(d)):r(d),g=m.length,v=0;g>v;)h=m[v++],i&&!p.call(d,h)||(n[h]=d[h]);return n}:l},15:function(e,t,n){var i=n(38);e.exports=function(e,t,n){return t in e?i(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},16:function(e,t,n){var i=n(27);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},17:function(e,t,n){var i=n(6);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},18:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},19:function(e,t,n){var i=n(45),r=n(31);e.exports=Object.keys||function(e){return i(e,r)}},2:function(e,t,n){e.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},20:function(e,t,n){var i=n(18);e.exports=function(e){return Object(i(e))}},21:function(t,n){t.exports=e},22:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},23:function(e,t){e.exports=!0},24:function(e,t,n){var i=n(6),r=n(1).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},25:function(e,t,n){e.exports=!n(2)&&!n(7)((function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a}))},27:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},28:function(e,t){t.f={}.propertyIsEnumerable},29:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},3:function(e,t,n){var i=n(1),r=n(0),o=n(16),s=n(11),a=n(10),u=function(e,t,n){var l,f,c,p=e&u.F,h=e&u.G,d=e&u.S,m=e&u.P,g=e&u.B,v=e&u.W,b=h?r:r[t]||(r[t]={}),w=b.prototype,y=h?i:d?i[t]:(i[t]||{}).prototype;for(l in h&&(n=t),n)(f=!p&&y&&void 0!==y[l])&&a(b,l)||(c=f?y[l]:n[l],b[l]=h&&"function"!=typeof y[l]?n[l]:g&&f?o(c,i):v&&y[l]==c?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):m&&"function"==typeof c?o(Function.call,c):c,m&&((b.virtual||(b.virtual={}))[l]=c,e&u.R&&w&&!w[l]&&s(w,l,c)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},30:function(e,t,n){var i=n(0),r=n(1),o="__core-js_shared__",s=r[o]||(r[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(23)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},306:function(e,t,n){"use strict";n.r(t);var i=n(307),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t.default=r.a},307:function(e,t,n){"use strict";var i=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(15)),o=i(n(53)),s=i(n(85)),a=i(n(56)),u=i(n(143)),l=i(n(109)),f=n(21),c=i(n(60)),p=i(n(49)),h=i(n(140)),d=i(n(128)),m=n(84),g=i(n(702)),v="h-typefield",b="h-icon";function w(e,t){var n,i;try{n=e.toString().split(".")[1].length}catch(e){n=0}try{i=t.toString().split(".")[1].length}catch(e){i=0}var r=Math.pow(10,Math.max(n,i));return(Math.round(e*r)+Math.round(t*r))/r}var y={name:"Typefield",directives:{TransferDom:d.default},components:{Drop:h.default},data:function(){return{prefixCls:v,focused:!1,havefocused:!1,inputValue:"",checked:!1,tipShow:!1,bigNum:null,currentValue:String(this.value),prepend:!1,append:!1,viewValue:"",formatValue:"",inputLock:!1}},mixins:[c.default,p.default],props:{type:{validator:function(e){return(0,f.oneOf)(e,["money","cardNo"])},default:"money"},value:{required:!1,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},placeholder:String,hidden:Boolean,isround:Boolean,integerNum:{type:[Number,String],default:13},suffixNum:{type:[Number,String],default:2},bigTips:Boolean,position:String,divided:{type:Boolean,default:!1},immeDivided:{type:Boolean,default:!1},size:{validator:function(e){return(0,f.oneOf)(e,["small","large","normal"])},default:"normal"},algin:{type:String,default:"left"},notFillin:{type:Boolean,default:!1},notFormat:{type:Boolean,default:!1},setNull:{type:Boolean,default:!1},maxlength:{type:[String,Number],default:null},cardFormat:{type:Boolean,default:!0},focusAllSelect:{type:Boolean,default:!1},nonNegative:{type:Boolean,default:!1},hoverTips:{type:Boolean,default:!1},transfer:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:"0",validator:function(e){var t=(0,o.default)(e,10);return t<=32767&&t>=-1}},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},step:{type:Number,default:1},stepSwitch:{type:Boolean,default:!0},uppercaseMethod:{type:Function},keepBigTip:{type:Boolean,default:!1},isShowBtn:{type:Boolean,default:!1},eventTriggerConfig:{type:Object,default:function(){return{}}},positionFixed:{type:Boolean,default:!1},canReadonlyFocus:{type:Boolean,default:!1},customTransferClassName:{type:String,default:""},bigTipsPlacement:{type:String,default:"bottom"},showDigitalTip:{type:Boolean,default:!1}},computed:{tipAlwaysShow:function(){return this.calculateBigTipsText(this.inputValue),this.keepBigTip&&"money"==this.type&&void 0!==this.viewValue&&0!==this.viewValue.length&&(this.showDigitalTip&&this.bigNum&&""!=this.bigNum||!this.showDigitalTip)},upDisabled:{get:function(){return Number(this.currentValue)>=this.max},set:function(e){}},downDisabled:{get:function(){return Number(this.currentValue)<=this.min},set:function(e){}},integerRegExp:function(){var e=Number(this.integerNum)+1;return new RegExp("^[0-9]{"+e+"}|^-[0-9]{"+e+"}")},precisionRegExp:function(){var e=Number(this.suffixNum)+1;return new RegExp("\\.[0-9]{"+e+"}")},upClasses:function(){return["".concat(v,"-handler"),"".concat(v,"-handler-up"),(0,r.default)({},"".concat(v,"-handler-up-disabled"),this.upDisabled)]},innerUpClasses:function(){return"".concat(v,"-handler-up-inner ").concat(b," iconfont icon-packup")},downClasses:function(){return["".concat(v,"-handler"),"".concat(v,"-handler-down"),(0,r.default)({},"".concat(v,"-handler-down-disabled"),this.downDisabled)]},innerDownClasses:function(){return"".concat(v,"-handler-down-inner ").concat(b," iconfont icon-unfold")},clazz:function(){var e;return["".concat(v),(e={"input-field-focused":this.focused,"input-field-active":this.inputValue||this.placeholder||this.$refs.input&&this.$refs.input.value},(0,r.default)(e,"".concat(v,"-").concat(this.size),!!this.size),(0,r.default)(e,"".concat(v,"-disabled"),this.disabled),(0,r.default)(e,"".concat(v,"-readonly"),this.readonly),(0,r.default)(e,"".concat(v,"-editable"),!this.editable),(0,r.default)(e,"".concat(v,"-group"),this.prepend||this.append||this.isShowBtn),(0,r.default)(e,"".concat(v,"-group-with-prepend"),this.prepend),(0,r.default)(e,"".concat(v,"-group-with-append"),this.append||this.isShowBtn),e)]},tipzz:function(){var e,t=this.globalMixinInfo&&this.globalMixinInfo.theme?this.globalMixinInfo.theme:"";return["".concat(v,"-tip"),(e={},(0,r.default)(e,"".concat(v,"-tip-keep"),this.keepBigTip),(0,r.default)(e,"".concat(v,"-tip-top"),"top"===this.bigTipsPlacement&&!this.transfer),(0,r.default)(e,"".concat(v,"-tip-transfer"),(0,f.findComponentParent)(this,["Msgbox","Drawer"])&&this.transfer),(0,r.default)(e,this.customTransferClassName,this.transfer&&!!this.customTransferClassName),(0,r.default)(e,"v-transfer-dom",this.transfer),(0,r.default)(e,t,this.transfer&&!!this.globalMixinInfo&&this.globalMixinInfo.theme),e)]},classes:function(){return["".concat(v,"-").concat(this.algin),this.prepend?"".concat(v,"-no-radius"):"",this.append||this.isShowBtn?"".concat(v,"-no-right-radius"):""]},handleClass:function(){var e;return["".concat(v,"-arrow-wrap"),(e={},(0,r.default)(e,"".concat(v,"-hander-append"),this.append),(0,r.default)(e,"".concat(v,"-hander-arrow"),!this.append),(0,r.default)(e,"".concat(v,"-handler-large"),this.size&&"large"===this.size),(0,r.default)(e,"".concat(v,"-handler-small"),this.size&&"small"===this.size),e)]},localePlaceholder:function(){return this.setNull?"":void 0===this.placeholder?this.t("i.typefield.placeholder"):this.placeholder},maxNum:function(){return new g.default(this.max)},minNum:function(){return new g.default(this.min)},eventTrigger:function(){var e=this,t={"on-change":{outValueChange:!0,handle:!0}};if("{}"===(0,s.default)(this.eventTriggerConfig))return t;var n={};return(0,a.default)(t).forEach((function(i){n[i]=(0,u.default)(t[i],e.eventTriggerConfig[i]||{})})),n}},watch:{value:function(e){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui typefield watch value change: "+e);var t=e;null!==t&&null!=t||(t=""),this.currentValue=t,-1!==String(this.value).indexOf("e")?this.initValue(this.changeRexNum(this.value)):this.initValue(String(this.value))},inputValue:function(e){this.viewValue=(0,f.changeTipsVal)(e,this.integerNum,this.suffixNum,this.isround)},tipShow:function(e){e&&this.transfer&&this.$refs.drop.update()},keepBigTip:function(){this.calculateBigTipsText(this.inputValue)}},mounted:function(){(window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui typefield lifecycle mounted"),this.prepend=void 0!==this.$slots.prepend,this.append=void 0!==this.$slots.append,null!==this.value||null!=this.value)&&(-1!==String(this.value).indexOf("e")?this.initValue(this.changeRexNum(this.value)):this.initValue(String(this.value)));(0,m.on)(this.$refs.reference,"keydown",this.keyDown),(0,m.on)(this.$refs.input,"compositionstart",this.handleCompositionstart),(0,m.on)(this.$refs.input,"compositionend",this.handleCompositionend),this.keepBigTip&&this.calculateBigTipsText(this.inputValue)},methods:{handleCompositionstart:function(){this.inputLock=!0},handleCompositionend:function(e){this.inputLock&&(this.valChange(e),this.inputLock=!1)},setLocalePlaceholder:function(){return this.setNull?"":void 0===this.placeholder?this.t("i.typefield.placeholder"):this.placeholder},preventDefault:function(e){e.preventDefault()},keyDown:function(e){if(!this.immeDivided){if(this.isShowBtn)return;this.stepSwitch&&(window.isO45?39===e.keyCode?(e.preventDefault(),this.up(e)):37===e.keyCode&&(e.preventDefault(),this.down(e)):38===e.keyCode?(e.preventDefault(),this.up(e)):40===e.keyCode&&(e.preventDefault(),this.down(e)))}},up:function(e){var t=Number(this.currentValue);if(isNaN(t))return!1;this.changeStep("up",e)},down:function(e){var t=Number(this.currentValue);if(isNaN(t))return!1;this.changeStep("down",e)},changeStep:function(e,t){var n=this;if(this.disabled||this.readonly)return!1;var i=Number(this.currentValue),r=Number(this.currentValue),o=Number(this.step);if(isNaN(r))return!1;if(!isNaN(i))if("up"===e)r=w(i,o)<=this.max?w(r,o):this.max;else if("down"===e){var s=w(i,-o);if(this.nonNegative&&s<0)return void(r=0);r=s>=this.min?s:this.min}r=null==r?r:r.toString(),this.$nextTick((function(){n.currentValue=r,n.bigShow(n.type,n.currentValue),n.$emit("input",r),n.$emit("on-keyup",r,event),!n.isShowBtn&&n.$emit("on-change",r),n.dispatch("FormItem","on-form-change",r)}))},formatVModel:function(e){var t=this.inputValue?this.inputValue.trim():this.inputValue;return t&&""!==t?(this.notFormat||("cardNo"===this.type&&(t=this.formatCardNo(t)),"money"===this.type&&(t=this.formatNum(e.target.value,this.integerNum,this.suffixNum))),e.target.value=this.inputValue=t):this.setNull&&"money"==this.type&&(t=this.setNullStr(),e.target.value=this.inputValue=t),t},blurValue:function(e){this.havefocused=!1,this.focused=!1,"money"==this.type&&(this.tipShow=!1);var t=this.formatVModel(e),n=this.formatValue!==t,i=this.cardFormatValue(t.replace(/,/g,""));this.$emit("input",i),this.$emit("on-blur",e,n),n&&this.$emit("on-change",i,this.formatValue),this.dispatch("FormItem","on-form-blur",t.replace(/,/g,"")),this.formatValue=i},keyup:function(e){if(190!==e.keyCode&&110!==e.keyCode&&"Period"!==e.code||e.target.value.toString().includes(".")||(e.target.value=e.target.value+"."),13===e.keyCode){"money"==this.type&&(this.tipShow=!1);var t=this.formatVModel(e),n=this.formatValue!==t,i=this.cardFormatValue(t.replace(/,/g,""));this.$emit("input",i),this.$emit("on-enter",e),n&&this.$emit("on-change",i,this.formatValue),this.formatValue=i}},cardFormatValue:function(e){var t=e;return this.cardFormat||"cardNo"!=this.type||(t=t.replace(/\s+/g,"")),t},blur:function(){this.havefocused=!1,this.$refs.input.blur();var e=this.cardFormatValue(this.inputValue);this.$emit("input",e),this.dispatch("FormItem","on-form-blur",this.inputValue)},focusValue:function(e){var t=this;if(this.readonly&&this.canReadonlyFocus&&this.$emit("on-focus",e),this.readonly||this.disabled)return!1;if(this.focused=!0,this.havefocused=!0,"money"==this.type)if(this.setNull&&0==Number(this.inputValue.trim()))this.currentValue="",this.inputValue="",e.target.value="";else{if(this.notFillin&&this.inputValue&&!this.immeDivided&&!this.divided){var n=new g.default(this.inputValue.trim().replace(/[^0-9\.-]/g,"")).toFormat(null,null,f.BIGNUMBER_DEFAULT_FORMAT);n.indexOf(".")>-1&&(n=(n=n.replace(/0+?$/g,"")).replace(/[.]$/g,"")),this.inputValue=n}this.immeDivided?this.currentValue=this.inputValue:this.currentValue=this.inputValue?this.inputValue.trim().replace(/,/g,""):this.inputValue,this.inputValue=this.currentValue}if("cardNo"==this.type&&(this.inputValue=this.inputValue?String(this.inputValue).replace(/\s+/g,""):"",e.target.createTextRange)){var i=e.target.createTextRange();i.collapse(!0),i.moveStart("character",e.target.value.length),i.moveEnd("character",0),i.select()}this.bigShow(this.type,this.inputValue),this.focusAllSelect&&"money"===this.type&&this.$nextTick((function(){t.$refs.input.select()})),this.$emit("on-focus",e),this.dispatch("FormItem","on-form-focus")},focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()},onInput:function(e){this.inputLock||this.valChange(e)},valChange:function(e){var t,n,i,r,o=e.target.value.trim().replace(/,/g,"");(t=0,n=/MSIE (\d+\.\d+);/.test(navigator.userAgent),i=!!navigator.userAgent.match(/Trident\/7.0/),r=navigator.userAgent.indexOf("rv:11.0"),n&&(t=Number(RegExp.$1)),-1!==navigator.appVersion.indexOf("MSIE 10")&&(t=10),i&&-1!==r&&(t=11),11!==t||this.currentValue!==o||"input"!==e.type)&&(!isNaN(Number(o))&&Number(o)>this.max?(e.target.value=this.max.toString(),o=this.max.toString()):"cardNo"!=this.type&&this.max==1/0&&o.match(this.integerRegExp)&&(e.target.value=this.inputValue,o=this.currentValue),this.isround||(0===Number(this.suffixNum)&&o.match(/\./)||o.toString().match(this.precisionRegExp))&&(e.target.value=this.currentValue,o=this.currentValue),this.nonNegative&&(o=o.replace(/-/,""),e.target.value=o),isNaN(o)&&"-"!==o&&"."!==o&&"-."!==o?(e.target.value=this.currentValue,o=this.currentValue):this.currentValue=o,this.immeDivided?(this.inputValue=(0,f.divideNum)(o),"."===o&&(this.inputValue=".")):this.inputValue=o,this.bigShow(this.type,o),this.$emit("input",o),this.$emit("on-keyup",o),this.dispatch("FormItem","on-form-change",o))},changeRexNum:function(e){var t=String(e),n=/^([0-9])\.?([0-9]*)e-([0-9])/;if(!n.test(t))return e;var i=t.match(n),r=Number(String(i[1])+(i[2]||""));return("0."+String(Math.pow(10,Number(i[3])-1)).substr(1)+r).replace(/0*$/,"")},toFixed:function(e,t){if(t>20||t<0)throw new RangeError("toFixed() digits argument must be between 0 and 20");if(isNaN(e)||e>=Math.pow(10,21))return e.toString();if(void 0===t||0==t)return Math.round(e).toString();var n=e.toString(),i=n.split(".");if(i.length<2){n+=".";for(var r=0;r<t;r+=1)n+="0";return n}var s=i[0],a=i[1];if(a.length==t)return n;if(a.length<t){for(var u=0;u<t-a.length;u+=1)n+="0";return n}n=s+"."+a.substr(0,t);var f=a.substr(t,1);if((0,o.default)(f,10)>=5){var c=Math.pow(10,t);n=(n=(Math.round((0,l.default)(n)*c)+1)/c).toFixed(t)}return n},formatCardNo:function(e){var t=e.trim().replace(/,/g,"");return t=t.replace(/[^0-9\.-]/g,"")||"","cardNo"==this.type&&null!=(t=t.replace("-","").replace(".",""))&&""!=t&&(-1!=t.indexOf(".")&&(t=t.split(".")[0]),t=t?t.match(/\d{1,4}/g).join(" "):""),t},formatNum:function(e,t,n){var i=e.trim().replace(/,/g,"");if(i=i.replace(/[^0-9\.-]/g,"")||"","money"==this.type){var r=i.split("."),o=r.length>0?r[0]:i,s=r.length>1?r[1]:"",a="-"===i[0];o=(0,f.cutNum)(o.replace("-",""),t);var u=new g.default((a?"-"+o:o)+"."+s);if(u.isNaN())return"";u.isLessThan(this.minNum)&&(u=this.minNum),u.isGreaterThan(this.maxNum)&&(u=this.maxNum),this.nonNegative&&u.isNegative()&&(u=u.absoluteValue());var l=this.divided||this.immeDivided?f.BIGNUMBER_GROUPING_FORMAT:f.BIGNUMBER_DEFAULT_FORMAT;i=this.isround?u.toFormat(Number(n),g.default.ROUND_HALF_UP,l):u.toFormat(Number(n),1,l),this.notFillin&&i.indexOf(".")>-1&&(i=(i=i.replace(/0+?$/g,"")).replace(/[.]$/g,""))}return i},setBigData:function(e,t){var n,i,r,o=!1;t.length>0?(n=t[0].substr(0,this.integerNum),i=t[1]):n=e,r=n.slice(0,8);var s=n.slice(8),a=i?s+"."+i:s;if(this.isround)a=Number(a).toFixedSelf(this.suffixNum);else if(a=this.fillZero(a,Number(this.suffixNum)),this.suffixNum>0){var u=a.split(".");a=u[0]+"."+u[1].substring(0,this.suffixNum)}var l=a.split(".");return(l.length>0&&l[0].length>s.length||0==l.length&&a.length>s.length)&&(o=!0,a=a.slice(1)),(r=o?Number(r)+1:r)+a},fillZero:function(e,t){var n=(0,l.default)(e);if(!isNaN(n)){var i=e.toString(),r=i.indexOf(".");for(r<0&&(r=i.length,i+=".");i.length<=r+t&&!this.notFillin;)i+="0";return 0==t&&(i=i.slice(0,r)),i}},setNum:function(e,t,n){var i=e;if(!isNaN(i)){if(t>0){var r=i.split("."),o=r[0].substring(0,n);i=Number(o)+"."+r[1].substring(0,t)}else i=String(Number(i));return i}},calculateBigTipsText:function(e){if(this.uppercaseMethod){var t=(0,f.changeTipsNum)(e,this.integerNum,this.suffixNum,this.isround);this.bigNum=this.uppercaseMethod(t)}else this.showDigitalTip?this.bigNum=(0,f.getBigNumDigit)(e):this.bigNum=(0,f.changeTipsVal)(e,this.integerNum,this.suffixNum,this.isroundr)},bigShow:function(e,t){"money"==e&&t?(this.bigTips||this.showDigitalTip)&&(this.calculateBigTipsText(t),this.tipShow=Boolean(this.bigNum)):this.tipShow=!1},setNullStr:function(){for(var e=0===Number(this.suffixNum)?"0":"0.",t=this.suffixNum-1;t>=0;t--)e+="0";return e},initValue:function(e){var t;e&&0!=Number(e)||!this.setNull||"money"!=this.type||this.focused?(this.notFormat||this.havefocused||!e?this.havefocused&&this.immeDivided&&!this.notFormat&&e?(t=(0,f.divideNum)(e),"."===e&&(t=".")):t=e:("cardNo"===this.type&&(t=this.formatCardNo(e)),"money"===this.type&&(t=this.formatNum(e,this.integerNum,this.suffixNum))),this.inputValue=t):(this.inputValue=this.setNullStr(),t=this.inputValue);var n=this.cardFormatValue(t.replace(/,/g,""));this.havefocused||(this.formatValue!==n&&!0===this.eventTrigger["on-change"].outValueChange&&this.$emit("on-change",n),this.formatValue=n,this.$emit("input",n)),this.dispatch("FormItem","on-form-change",n)},hover:function(){this.hoverTips&&this.value&&!this.tipShow&&this.bigShow(this.type,this.value)},out:function(){this.focused||(this.tipShow=!1)}},beforeDestroy:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui typefield lifecycle beforeDestroy"),(0,m.off)(this.$refs.reference,"keydown",this.keyDown),(0,m.off)(this.$refs.input,"compositionstart",this.handleCompositionstart),(0,m.off)(this.$refs.input,"compositionend",this.handleCompositionend)}};t.default=y},31:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},32:function(e,n){e.exports=t},33:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},34:function(e,t,n){var i=n(30)("keys"),r=n(22);e.exports=function(e){return i[e]||(i[e]=r(e))}},343:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hidden?e._e():n("div",{ref:"reference",class:e.clazz,on:{mouseover:e.hover,mouseout:e.out}},[e.prepend?n("div",{class:[e.prefixCls+"-group-prepend"]},[e._t("prepend")],2):e._e(),e._v(" "),n("input",{ref:"input",class:e.classes,attrs:{disabled:e.disabled,readonly:!e.editable||e.readonly,placeholder:e.localePlaceholder,maxlength:e.maxlength,tabindex:e.tabindex},domProps:{value:e.inputValue},on:{blur:e.blurValue,input:e.onInput,change:e.valChange,keyup:e.keyup,focus:function(t){return e.focusValue(t)}}}),e._v(" "),e.step&&e.isShowBtn&&!e.immeDivided?n("div",{class:[e.prefixCls+"-handler-wrap",e.append?"no-border-radius":""]},[e.step&&e.isShowBtn&&!e.immeDivided?n("div",{class:e.handleClass},[n("a",{class:e.upClasses,on:{click:e.up,mouse:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.preventDefault(t)}}},[n("span",{class:e.innerUpClasses,on:{click:e.preventDefault}})]),e._v(" "),n("a",{class:e.downClasses,on:{click:e.down,mouse:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.preventDefault(t)}}},[n("span",{class:e.innerDownClasses,on:{click:e.preventDefault}})])]):e._e()]):e._e(),e._v(" "),n("transition",{attrs:{name:"label-fade"}},[e.transfer?e._e():[n("div",{directives:[{name:"show",rawName:"v-show",value:e.tipShow||e.tipAlwaysShow,expression:"tipShow || tipAlwaysShow"}],class:e.tipzz},[e._v(e._s(e.bigNum))])],e._v(" "),e.transfer?[n("Drop",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom",value:e.transfer,expression:"transfer"}],ref:"drop",class:e.tipzz,attrs:{show:e.tipShow||e.tipAlwaysShow,"data-transfer":e.transfer,adaptParentWidth:!1,positionFixed:e.positionFixed,placement:"top"===e.bigTipsPlacement?"top-start":"bottom-start"}},[e._v(e._s(e.bigNum))])]:e._e()],2),e._v(" "),e.append?n("div",{class:[e.prefixCls+"-group-append"]},[e.append?e._t("append"):e._e()],2):e._e()],1)},r=[];i._withStripped=!0},35:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},36:function(e,t){t.f=Object.getOwnPropertySymbols},38:function(e,t,n){e.exports=n(39)},39:function(e,t,n){n(40);var i=n(0).Object;e.exports=function(e,t,n){return i.defineProperty(e,t,n)}},4:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var u,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=u):r&&(u=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(l.functional){l._injectStyles=u;var f=l.render;l.render=function(e,t){return u.call(t),f(e,t)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:e,options:l}}n.d(t,"a",(function(){return i}))},40:function(e,t,n){var i=n(3);i(i.S+i.F*!n(2),"Object",{defineProperty:n(5).f})},42:function(e,t,n){var i=n(29),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254