h_ui
Version:
A Vue.js 2.0 UI Components Framework
26 lines • 74.5 kB
JavaScript
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/lib/cjs/",n(n.s=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 r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.innerShow,expression:"innerShow"}],ref:"container",staticClass:"h-select-dropdown",on:{mousedown:function(e){e.stopPropagation()}}},[e._t("default")],2)])},i=[];r._withStripped=!0},109:function(e,t,n){e.exports=n(120)},11:function(e,t,n){var r=n(5),i=n(14);e.exports=n(2)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},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 r=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(701)),o=n(32);i.default.install=function(e,t){(0,o.setGlobal)(e,t),e.component("HTypefield",i.default),e.component("Typefield",i.default)};var a=i.default;t.default=a},12:function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},120:function(e,t,n){n(121),e.exports=n(0).parseFloat},121:function(e,t,n){var r=n(3),i=n(122);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},122:function(e,t,n){var r=n(1).parseFloat,i=n(51).trim;e.exports=1/r(n(35)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},128:function(e,t){e.exports=require("h_ui/dist/lib/directives/transfer-dom.js")},13:function(e,t,n){var r=n(50),i=n(18);e.exports=function(e){return r(i(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,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function 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=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:u(s(e))}function f(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),c=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?l:10===e?c:l||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 r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(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,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,u=o.commonAncestorContainer;if(e!==u&&t!==u||r.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(u):u;var f=d(e);return f.host?m(f.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",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),i=g(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function w(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){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(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function y(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function E(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function T(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=g(e,"top"),r=g(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?y(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,f=e.offsetWidth-s,l=e.offsetHeight-u;if(f||l){var c=a(e);f-=w(c,"x"),l-=w(c,"y"),i.width-=f,i.height-=l}return E(i)}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),i="HTML"===t.nodeName,o=T(e),s=T(t),f=u(e),l=a(t),c=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=E({top:o.top-s.top-c,left:o.left-s.left-h,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var m=parseFloat(l.marginTop),g=parseFloat(l.marginLeft);d.top-=c-m,d.bottom-=c-m,d.left-=h-g,d.right-=h-g,d.marginTop=m,d.marginLeft=g}return(r&&!n?t.contains(f):t===f&&"BODY"!==f.nodeName)&&(d=v(d,t)),d}function D(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=_(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:g(n),s=t?0:g(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return E(u)}function V(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&V(n)}function M(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function B(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?M(e):m(e,f(t));if("viewport"===r)o=D(a,i);else{var l=void 0;"scrollParent"===r?"BODY"===(l=u(s(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var c=_(l,a,i);if("HTML"!==l.nodeName||V(a))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,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=B(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return S({key:e},s[e],{area:C(s[e])})})).sort((function(e,t){return t.area-e.area})),f=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=f.length>0?f[0].key:u[0].key,c=e.split("-")[1];return l+(c?"-"+c:"")}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?M(t):m(t,f(n));return _(n,i,r)}function k(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function $(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 A(e,t,n){n=n.split("-")[0];var r=k(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",f=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[f]:t[$(s)],i}function L(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function j(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=L(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function;var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=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=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=j(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),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function 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,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||z(u(o.parentNode),t,n,r),r.push(o)}function G(e,t,n,r){n.updateBound=r,W(e).addEventListener("resize",n.updateBound,{passive:!0});var i=u(e);return z(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function q(){this.state.eventsEnabled||(this.state=G(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 r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&X(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Z=n&&/Firefox/i.test(navigator.userAgent);function K(e,t,n){var r=L(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i);return i}var 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),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne="flip",re="clockwise",ie="counterclockwise";function oe(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(L(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&a[s].indexOf(",");var u=/\s*,\s*|\s+/,f=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return f=f.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return E("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),f.forEach((function(e,t){e.forEach((function(n,r){X(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var ae={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",f=s?"width":"height",l={start:O({},u,o[u]),end:O({},u,o[u]+o[f]-a[f])};e.offsets.popper=S({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=X(+n)?[+n,0]:oe(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(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 r=U("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=B(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var f=t.priority,l=e.offsets.popper,c={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),O({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),O({},n,r)}};return f.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=S({},l,c[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",f=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[f]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!K(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,u=o.reference,f=-1!==["left","right"].indexOf(i),l=f?"height":"width",c=f?"Top":"Left",p=c.toLowerCase(),h=f?"left":"top",d=f?"bottom":"right",m=k(r)[l];u[d]-m<s[p]&&(e.offsets.popper[p]-=s[p]-(u[d]-m)),u[p]+m>s[d]&&(e.offsets.popper[p]+=u[p]+m-s[d]),e.offsets.popper=E(e.offsets.popper);var g=u[p]+u[l]/2-m/2,v=a(e.instance.popper),w=parseFloat(v["margin"+c]),b=parseFloat(v["border"+c+"Width"]),y=g-e.offsets.popper[p]-w-b;return y=Math.max(Math.min(s[l]-m,y),0),e.arrowElement=r,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),r=e.placement.split("-")[0],i=$(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ne:a=[r,i];break;case re:a=te(r);break;case ie:a=te(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=$(r);var f=e.offsets.popper,l=e.offsets.reference,c=Math.floor,p="left"===r&&c(f.right)>c(l.left)||"right"===r&&c(f.left)<c(l.right)||"top"===r&&c(f.bottom)>c(l.top)||"bottom"===r&&c(f.top)<c(l.bottom),h=c(f.left)<c(n.left),d=c(f.right)>c(n.right),m=c(f.top)<c(n.top),g=c(f.bottom)>c(n.bottom),v="left"===r&&h||"right"===r&&d||"top"===r&&m||"bottom"===r&&g,w=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(w&&"start"===o&&h||w&&"end"===o&&d||!w&&"start"===o&&m||!w&&"end"===o&&g),y=!!t.flipVariationsByContent&&(w&&"start"===o&&d||w&&"end"===o&&h||!w&&"start"===o&&g||!w&&"end"===o&&m),x=b||y;(p||v||x)&&(e.flipped=!0,(p||v)&&(r=a[u+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=S({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=j(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=$(t),e.offsets.popper=E(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=L(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=L(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration,a=void 0!==o?o:t.gpuAcceleration,s=h(e.instance.popper),u=T(s),f={position:i.position},l=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},u=o(i.width),f=o(r.width),l=-1!==["left","right"].indexOf(e.placement),c=-1!==e.placement.indexOf("-"),p=t?l||c||u%2==f%2?o:a:s,h=t?o:s;return{left:p(u%2==1&&f%2==1&&!c&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!Z),c="bottom"===n?"top":"bottom",p="right"===r?"left":"right",d=U("transform"),m=void 0,g=void 0;if(g="bottom"===c?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,m="right"===p?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,a&&d)f[d]="translate3d("+m+"px, "+g+"px, 0)",f[c]=0,f[p]=0,f.willChange="transform";else{var v="bottom"===c?-1:1,w="right"===p?-1:1;f[c]=g*v,f[p]=m*w,f.willChange=c+", "+p}var b={"x-placement":e.placement};return e.attributes=S({},b,e.attributes),e.styles=S({},f,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,r,i){var o=P(i,t,e,n.positionFixed),a=F(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),J(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},se={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ae},ue=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=S({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return N(e,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();ue.Utils=("undefined"!=typeof window?window:e).PopperUtils,ue.placements=Q,ue.Defaults=se,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 r=n(101),i=n(82);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(4),s=Object(a.a)(i.default,r.a,r.b,!1,null,null,null);t.default=s.exports},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 r=n(3);r(r.S+r.F,"Object",{assign:n(146)})},146:function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(36),a=n(28),s=n(20),u=n(50),f=Object.assign;e.exports=!f||n(7)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||Object.keys(f({},t)).join("")!=r}))?function(e,t){for(var n=s(e),f=arguments.length,l=1,c=o.f,p=a.f;f>l;)for(var h,d=u(arguments[l++]),m=c?i(d).concat(c(d)):i(d),g=m.length,v=0;g>v;)h=m[v++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:f},15:function(e,t,n){var r=n(38);e.exports=function(e,t,n){return t in e?r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},16:function(e,t,n){var r=n(27);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},17:function(e,t,n){var r=n(6);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},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 r=n(45),i=n(31);e.exports=Object.keys||function(e){return r(e,i)}},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 r=n(18);e.exports=function(e){return Object(r(e))}},21:function(e,t){e.exports=require("h_ui/dist/lib/util/tools.js")},22:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},23:function(e,t){e.exports=!0},24:function(e,t,n){var r=n(6),i=n(1).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.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,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},3:function(e,t,n){var r=n(1),i=n(0),o=n(16),a=n(11),s=n(10),u=function(e,t,n){var f,l,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,w=h?i:i[t]||(i[t]={}),b=w.prototype,y=h?r:d?r[t]:(r[t]||{}).prototype;for(f in h&&(n=t),n)(l=!p&&y&&void 0!==y[f])&&s(w,f)||(c=l?y[f]:n[f],w[f]=h&&"function"!=typeof y[f]?n[f]:g&&l?o(c,r):v&&y[f]==c?function(e){var t=function(t,n,r){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,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):m&&"function"==typeof c?o(Function.call,c):c,m&&((w.virtual||(w.virtual={}))[f]=c,e&u.R&&b&&!b[f]&&a(b,f,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 r=n(0),i=n(1),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(23)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},306:function(e,t,n){"use strict";n.r(t);var r=n(307),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t.default=i.a},307:function(e,t,n){"use strict";var r=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(15)),o=r(n(53)),a=r(n(85)),s=r(n(56)),u=r(n(143)),f=r(n(109)),l=n(21),c=r(n(60)),p=r(n(49)),h=r(n(140)),d=r(n(128)),m=n(84),g=r(n(702)),v="h-typefield",w="h-icon";function b(e,t){var n,r;try{n=e.toString().split(".")[1].length}catch(e){n=0}try{r=t.toString().split(".")[1].length}catch(e){r=0}var i=Math.pow(10,Math.max(n,r));return(Math.round(e*i)+Math.round(t*i))/i}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,l.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,l.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,i.default)({},"".concat(v,"-handler-up-disabled"),this.upDisabled)]},innerUpClasses:function(){return"".concat(v,"-handler-up-inner ").concat(w," iconfont icon-packup")},downClasses:function(){return["".concat(v,"-handler"),"".concat(v,"-handler-down"),(0,i.default)({},"".concat(v,"-handler-down-disabled"),this.downDisabled)]},innerDownClasses:function(){return"".concat(v,"-handler-down-inner ").concat(w," 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,i.default)(e,"".concat(v,"-").concat(this.size),!!this.size),(0,i.default)(e,"".concat(v,"-disabled"),this.disabled),(0,i.default)(e,"".concat(v,"-readonly"),this.readonly),(0,i.default)(e,"".concat(v,"-editable"),!this.editable),(0,i.default)(e,"".concat(v,"-group"),this.prepend||this.append||this.isShowBtn),(0,i.default)(e,"".concat(v,"-group-with-prepend"),this.prepend),(0,i.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,i.default)(e,"".concat(v,"-tip-keep"),this.keepBigTip),(0,i.default)(e,"".concat(v,"-tip-top"),"top"===this.bigTipsPlacement&&!this.transfer),(0,i.default)(e,"".concat(v,"-tip-transfer"),(0,l.findComponentParent)(this,["Msgbox","Drawer"])&&this.transfer),(0,i.default)(e,this.customTransferClassName,this.transfer&&!!this.customTransferClassName),(0,i.default)(e,"v-transfer-dom",this.transfer),(0,i.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,i.default)(e,"".concat(v,"-hander-append"),this.append),(0,i.default)(e,"".concat(v,"-hander-arrow"),!this.append),(0,i.default)(e,"".concat(v,"-handler-large"),this.size&&"large"===this.size),(0,i.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,a.default)(this.eventTriggerConfig))return t;var n={};return(0,s.default)(t).forEach((function(r){n[r]=(0,u.default)(t[r],e.eventTriggerConfig[r]||{})})),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,l.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 r=Number(this.currentValue),i=Number(this.currentValue),o=Number(this.step);if(isNaN(i))return!1;if(!isNaN(r))if("up"===e)i=b(r,o)<=this.max?b(i,o):this.max;else if("down"===e){var a=b(r,-o);if(this.nonNegative&&a<0)return void(i=0);i=a>=this.min?a:this.min}i=null==i?i:i.toString(),this.$nextTick((function(){n.currentValue=i,n.bigShow(n.type,n.currentValue),n.$emit("input",i),n.$emit("on-keyup",i,event),!n.isShowBtn&&n.$emit("on-change",i),n.dispatch("FormItem","on-form-change",i)}))},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,r=this.cardFormatValue(t.replace(/,/g,""));this.$emit("input",r),this.$emit("on-blur",e,n),n&&this.$emit("on-change",r,this.formatValue),this.dispatch("FormItem","on-form-blur",t.replace(/,/g,"")),this.formatValue=r},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,r=this.cardFormatValue(t.replace(/,/g,""));this.$emit("input",r),this.$emit("on-enter",e),n&&this.$emit("on-change",r,this.formatValue),this.formatValue=r}},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,l.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 r=e.target.createTextRange();r.collapse(!0),r.moveStart("character",e.target.value.length),r.moveEnd("character",0),r.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,r,i,o=e.target.value.trim().replace(/,/g,"");(t=0,n=/MSIE (\d+\.\d+);/.test(navigator.userAgent),r=!!navigator.userAgent.match(/Trident\/7.0/),i=navigator.userAgent.indexOf("rv:11.0"),n&&(t=Number(RegExp.$1)),-1!==navigator.appVersion.indexOf("MSIE 10")&&(t=10),r&&-1!==i&&(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,l.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 r=t.match(n),i=Number(String(r[1])+(r[2]||""));return("0."+String(Math.pow(10,Number(r[3])-1)).substr(1)+i).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(),r=n.split(".");if(r.length<2){n+=".";for(var i=0;i<t;i+=1)n+="0";return n}var a=r[0],s=r[1];if(s.length==t)return n;if(s.length<t){for(var u=0;u<t-s.length;u+=1)n+="0";return n}n=a+"."+s.substr(0,t);var l=s.substr(t,1);if((0,o.default)(l,10)>=5){var c=Math.pow(10,t);n=(n=(Math.round((0,f.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 r=e.trim().replace(/,/g,"");if(r=r.replace(/[^0-9\.-]/g,"")||"","money"==this.type){var i=r.split("."),o=i.length>0?i[0]:r,a=i.length>1?i[1]:"",s="-"===r[0];o=(0,l.cutNum)(o.replace("-",""),t);var u=new g.default((s?"-"+o:o)+"."+a);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 f=this.divided||this.immeDivided?l.BIGNUMBER_GROUPING_FORMAT:l.BIGNUMBER_DEFAULT_FORMAT;r=this.isround?u.toFormat(Number(n),g.default.ROUND_HALF_UP,f):u.toFormat(Number(n),1,f),this.notFillin&&r.indexOf(".")>-1&&(r=(r=r.replace(/0+?$/g,"")).replace(/[.]$/g,""))}return r},setBigData:function(e,t){var n,r,i,o=!1;t.length>0?(n=t[0].substr(0,this.integerNum),r=t[1]):n=e,i=n.slice(0,8);var a=n.slice(8),s=r?a+"."+r:a;if(this.isround)s=Number(s).toFixedSelf(this.suffixNum);else if(s=this.fillZero(s,Number(this.suffixNum)),this.suffixNum>0){var u=s.split(".");s=u[0]+"."+u[1].substring(0,this.suffixNum)}var f=s.split(".");return(f.length>0&&f[0].length>a.length||0==f.length&&s.length>a.length)&&(o=!0,s=s.slice(1)),(i=o?Number(i)+1:i)+s},fillZero:function(e,t){var n=(0,f.default)(e);if(!isNaN(n)){var r=e.toString(),i=r.indexOf(".");for(i<0&&(i=r.length,r+=".");r.length<=i+t&&!this.notFillin;)r+="0";return 0==t&&(r=r.slice(0,i)),r}},setNum:function(e,t,n){var r=e;if(!isNaN(r)){if(t>0){var i=r.split("."),o=i[0].substring(0,n);r=Number(o)+"."+i[1].substring(0,t)}else r=String(Number(r));return r}},calculateBigTipsText:function(e){if(this.uppercaseMethod){var t=(0,l.changeTipsNum)(e,this.integerNum,this.suffixNum,this.isround);this.bigNum=this.uppercaseMethod(t)}else this.showDigitalTip?this.bigNum=(0,l.getBigNumDigit)(e):this.bigNum=(0,l.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,l.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,t){e.exports=require("h_ui/dist/lib/util/global.js")},33:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},34:function(e,t,n){var r=n(30)("keys"),i=n(22);e.exports=function(e){return r[e]||(r[e]=i(e))}},343:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return 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)},i=[];r._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 r=n(0).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},4:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},f._ssrRegister=u):i&&(u=s?function(){i.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(f.functional){f._injectStyles=u;var l=f.render;f.render=function(e,t){return u.call(t),l(e,t)}}else{var c=f.beforeCreate;f.beforeCreate=c?[].concat(c,u):[u]}return{exports:e,options:f}}n.d(t,"a",(function(){return r}))},40:function(e,t,n){var r=n(3);r(r.S+r.F*!n(2),"Object",{defineProperty:n(5).f})},42:function(e,t,n){var r=n(29),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},45:function(e,t,n){var r=n(10),i=n(13),o=n(67)(!1),a=n(34)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,f=[];for(n in s)n!=a&&r(s,n)&&f.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(f,n)||f.push(n));return f}},49:function(e,t){e.exports=require("h_ui/dist/lib/mixins/locale.js")},5:function(e,t,n){var r=n(12),i=n(25),o=n(17),a=Object.defineProperty;t.f=n(2)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},50:function(e,t,n){var r=n(33);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},51:function(e,t,n){var r=n(3),i=n(18),o=n(7),a=n(35),s="["+a+"]",u=RegExp("^"+s+s+"*"),f=RegExp(s+s+"*$"),l=function(e,t,n){var i={},s=o((function(){return!!a[e]()||"
"!="
"[e]()})),u=i[e]=s?t(c):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},c=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")