h_ui
Version:
A Vue.js 2.0 UI Components Framework
1 lines • 33.6 kB
JavaScript
module.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/dist/lib/cjs/",e(e.s=1087)}({0:function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},1:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},10:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},100:function(t,n,e){e(59),e(76),t.exports=e(41).f("iterator")},102:function(t,n,e){var r=e(9)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:e=!0}},o[r]=function(){return s},t(o)}catch(t){}return e}},107:function(t,n,e){e(59),e(108),t.exports=e(0).Array.from},108:function(t,n,e){"use strict";var r=e(16),i=e(3),o=e(20),s=e(87),u=e(88),a=e(42),c=e(68),f=e(89);i(i.S+i.F*!e(102)((function(t){Array.from(t)})),"Array",{from:function(t){var n,e,i,l,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,v=void 0!==g,m=0,y=f(h);if(v&&(g=r(g,d>2?arguments[2]:void 0,2)),null==y||p==Array&&u(y))for(e=new p(n=a(h.length));n>m;m++)c(e,m,v?g(h[m],m):h[m]);else for(l=y.call(h),e=new p;!(i=l.next()).done;m++)c(e,m,v?s(l,g,[i.value,m],!0):i.value);return e.length=m,e}})},1087:function(t,n,e){"use strict";var r=e(8);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e(1088)),o=e(32);i.default.install=function(t,n){(0,o.setGlobal)(t,n),t.component("HSlider",i.default),t.component("Slider",i.default)};var s=i.default;n.default=s},1088:function(t,n,e){"use strict";e.r(n);var r=e(766),i=e(587);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);var s=e(4),u=Object(s.a)(i.default,r.a,r.b,!1,null,null,null);n.default=u.exports},11:function(t,n,e){var r=e(5),i=e(14);t.exports=e(2)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},110:function(t,n){t.exports=function(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r},t.exports.__esModule=!0,t.exports.default=t.exports},12:function(t,n,e){var r=e(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},123:function(t,n,e){var r=e(133),i=e(134),o=e(127),s=e(135);t.exports=function(t){return r(t)||i(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},126:function(t,n,e){t.exports=e(129)},127:function(t,n,e){var r=e(64),i=e(110);t.exports=function(t,n){if(t){if("string"==typeof t)return i(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?r(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,n):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},129:function(t,n,e){e(130),t.exports=e(0).Array.isArray},13:function(t,n,e){var r=e(50),i=e(18);t.exports=function(t){return r(i(t))}},130:function(t,n,e){var r=e(3);r(r.S,"Array",{isArray:e(57)})},133:function(t,n,e){var r=e(126),i=e(110);t.exports=function(t){if(r(t))return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},134:function(t,n,e){var r=e(61),i=e(63),o=e(64);t.exports=function(t){if(void 0!==r&&null!=t[i]||null!=t["@@iterator"])return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},135:function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},14:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},15:function(t,n,e){var r=e(38);t.exports=function(t,n,e){return n in t?r(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports},16:function(t,n,e){var r=e(27);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},17:function(t,n,e){var r=e(6);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},18:function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},19:function(t,n,e){var r=e(45),i=e(31);t.exports=Object.keys||function(t){return r(t,i)}},2:function(t,n,e){t.exports=!e(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},20:function(t,n,e){var r=e(18);t.exports=function(t){return Object(r(t))}},21:function(t,n){t.exports=require("h_ui/dist/lib/util/tools.js")},22:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},23:function(t,n){t.exports=!0},24:function(t,n,e){var r=e(6),i=e(1).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},25:function(t,n,e){t.exports=!e(2)&&!e(7)((function(){return 7!=Object.defineProperty(e(24)("div"),"a",{get:function(){return 7}}).a}))},26:function(t,n){t.exports={}},27:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},28:function(t,n){n.f={}.propertyIsEnumerable},29:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},3:function(t,n,e){var r=e(1),i=e(0),o=e(16),s=e(11),u=e(10),a=function(t,n,e){var c,f,l,h=t&a.F,p=t&a.G,d=t&a.S,g=t&a.P,v=t&a.B,m=t&a.W,y=p?i:i[n]||(i[n]={}),x=y.prototype,b=p?r:d?r[n]:(r[n]||{}).prototype;for(c in p&&(e=n),e)(f=!h&&b&&void 0!==b[c])&&u(y,c)||(l=f?b[c]:e[c],y[c]=p&&"function"!=typeof b[c]?e[c]:v&&f?o(l,r):m&&b[c]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):g&&"function"==typeof l?o(Function.call,l):l,g&&((y.virtual||(y.virtual={}))[c]=l,t&a.R&&x&&!x[c]&&s(x,c,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},30:function(t,n,e){var r=e(0),i=e(1),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,n){return s[t]||(s[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(23)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},31:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},32:function(t,n){t.exports=require("h_ui/dist/lib/util/global.js")},33:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},335:function(t,n){t.exports=require("h_ui/dist/lib/cjs/Tooltip.js")},34:function(t,n,e){var r=e(30)("keys"),i=e(22);t.exports=function(t){return r[t]||(r[t]=i(t))}},35:function(t,n){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},352:function(t,n,e){t.exports=e(353)},353:function(t,n,e){e(354),t.exports=e(0).Number.isNaN},354:function(t,n,e){var r=e(3);r(r.S,"Number",{isNaN:function(t){return t!=t}})},36:function(t,n){n.f=Object.getOwnPropertySymbols},37:function(t,n,e){var r=e(5).f,i=e(10),o=e(9)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},38:function(t,n,e){t.exports=e(39)},39:function(t,n,e){e(40);var r=e(0).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},4:function(t,n,e){"use strict";function r(t,n,e,r,i,o,s,u){var a,c="function"==typeof t?t.options:t;if(n&&(c.render=n,c.staticRenderFns=e,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):i&&(a=u?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),a)if(c.functional){c._injectStyles=a;var f=c.render;c.render=function(t,n){return a.call(n),f(t,n)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:c}}e.d(n,"a",(function(){return r}))},40:function(t,n,e){var r=e(3);r(r.S+r.F*!e(2),"Object",{defineProperty:e(5).f})},41:function(t,n,e){n.f=e(9)},42:function(t,n,e){var r=e(29),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},43:function(t,n,e){var r=e(1),i=e(0),o=e(23),s=e(41),u=e(5).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||u(n,t,{value:s.f(t)})}},44:function(t,n,e){var r=e(45),i=e(31).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},45:function(t,n,e){var r=e(10),i=e(13),o=e(67)(!1),s=e(34)("IE_PROTO");t.exports=function(t,n){var e,u=i(t),a=0,c=[];for(e in u)e!=s&&r(u,e)&&c.push(e);for(;n.length>a;)r(u,e=n[a++])&&(~o(c,e)||c.push(e));return c}},46:function(t,n,e){var r=e(28),i=e(14),o=e(13),s=e(17),u=e(10),a=e(25),c=Object.getOwnPropertyDescriptor;n.f=e(2)?c:function(t,n){if(t=o(t),n=s(n,!0),a)try{return c(t,n)}catch(t){}if(u(t,n))return i(!r.f.call(t,n),t[n])}},48:function(t,n,e){var r=e(12),i=e(74),o=e(31),s=e(34)("IE_PROTO"),u=function(){},a=function(){var t,n=e(24)("iframe"),r=o.length;for(n.style.display="none",e(73).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[o[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(u.prototype=r(t),e=new u,u.prototype=null,e[s]=t):e=a(),void 0===n?e:i(e,n)}},5:function(t,n,e){var r=e(12),i=e(25),o=e(17),s=Object.defineProperty;n.f=e(2)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return s(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},50:function(t,n,e){var r=e(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},51:function(t,n,e){var r=e(3),i=e(18),o=e(7),s=e(35),u="["+s+"]",a=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),f=function(t,n,e){var i={},u=o((function(){return!!s[t]()||"
"!="
"[t]()})),a=i[t]=u?n(l):s[t];e&&(i[e]=a),r(r.P+r.F*u,"String",i)},l=f.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(c,"")),t};t.exports=f},53:function(t,n,e){t.exports=e(69)},54:function(t,n,e){t.exports=e(11)},55:function(t,n,e){"use strict";var r=e(23),i=e(3),o=e(54),s=e(11),u=e(26),a=e(93),c=e(37),f=e(90),l=e(9)("iterator"),h=!([].keys&&"next"in[].keys()),p="keys",d="values",g=function(){return this};t.exports=function(t,n,e,v,m,y,x){a(e,n,v);var b,S,w,P=function(t){if(!h&&t in M)return M[t];switch(t){case p:case d:return function(){return new e(this,t)}}return function(){return new e(this,t)}},_=n+" Iterator",V=m==d,O=!1,M=t.prototype,D=M[l]||M["@@iterator"]||m&&M[m],j=D||P(m),E=m?V?P("entries"):j:void 0,F="Array"==n&&M.entries||D;if(F&&(w=f(F.call(new t)))!==Object.prototype&&w.next&&(c(w,_,!0),r||"function"==typeof w[l]||s(w,l,g)),V&&D&&D.name!==d&&(O=!0,j=function(){return D.call(this)}),r&&!x||!h&&!O&&M[l]||s(M,l,j),u[n]=j,u[_]=g,m)if(b={values:V?j:P(d),keys:y?j:P(p),entries:E},x)for(S in b)S in M||o(M,S,b[S]);else i(i.P+i.F*(h||O),n,b);return b}},57:function(t,n,e){var r=e(33);t.exports=Array.isArray||function(t){return"Array"==r(t)}},587:function(t,n,e){"use strict";e.r(n);var r=e(588),i=e.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(o);n.default=i.a},588:function(t,n,e){"use strict";var r=e(8);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e(123)),o=r(e(15)),s=r(e(85)),u=r(e(53)),a=r(e(352)),c=r(e(662)),f=r(e(335)),l=e(21),h=r(e(60)),p="h-slider",d={name:"Slider",mixins:[h.default],components:{InputNumber:c.default,Tooltip:f.default},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},range:{type:Boolean,default:!1},value:{type:[Number,Array],default:0},disabled:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},showStops:{type:Boolean,default:!1},tipFormat:{type:Function,default:function(t){return t}},showTip:{type:String,default:"hover",validator:function(t){return(0,l.oneOf)(t,["hover","always","never"])}}},data:function(){return{prefixCls:p,currentValue:void 0,dragging:!1,firstDragging:!1,secondDragging:!1,startX:0,currentX:0,startPos:0,newPos:null,oldSingleValue:void 0,oldFirstValue:void 0,oldSecondValue:void 0,singlePosition:void 0,firstPosition:void 0,secondPosition:void 0}},created:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui slider lifecycle created");var t=this.value;this.value||(t=this.range?[0,0]:0),this.range&&Array.isArray(this.value)&&(t=[],this.value.forEach((function(n){t.push(n||0)}))),this.currentValue=t,this.oldSingleValue=t,this.oldFirstValue=t[0],this.oldSecondValue=t[1],this.singlePosition=(t-this.min)/(this.computedMax-this.min)*100,this.firstPosition=(t[0]-this.min)/(this.computedMax-this.min)*100,this.secondPosition=(t[1]-this.min)/(this.computedMax-this.min)*100},watch:{value:function(t){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui slider watch value change: "+(0,s.default)(t)),this.currentValue=t},currentValue:function(t,n){var e=this;this.$nextTick((function(){e.$refs.tooltip.updatePopper(),e.range&&e.$refs.tooltip2.updatePopper()})),(0,s.default)(t)!==(0,s.default)(n)&&(this.updateValue(t),this.$emit("input",t),this.$emit("on-input",t))},max:function(t){this.updateValue(this.currentValue)},min:function(t){this.updateValue(this.currentValue)}},computed:{classes:function(){var t;return["".concat(p),(t={},(0,o.default)(t,"".concat(p,"-input"),this.showInput&&!this.range),(0,o.default)(t,"".concat(p,"-range"),this.range),(0,o.default)(t,"".concat(p,"-disabled"),this.disabled),t)]},buttonClasses:function(){return["".concat(p,"-button"),(0,o.default)({},"".concat(p,"-button-dragging"),this.dragging)]},button1Classes:function(){return["".concat(p,"-button"),(0,o.default)({},"".concat(p,"-button-dragging"),this.firstDragging)]},button2Classes:function(){return["".concat(p,"-button"),(0,o.default)({},"".concat(p,"-button-dragging"),this.secondDragging)]},barStyle:function(){return this.range?{width:(this.currentValue[1]-this.currentValue[0])/(this.computedMax-this.min)*100+"%",left:(this.currentValue[0]-this.min)/(this.computedMax-this.min)*100+"%"}:{width:(this.currentValue-this.min)/(this.computedMax-this.min)*100+"%"}},stops:function(){for(var t=(this.computedMax-this.min)/this.step,n=[],e=100*this.step/(this.computedMax-this.min),r=1;r<t;r++)n.push(r*e);return n},sliderWidth:function(){return(0,u.default)((0,l.getStyle)(this.$refs.slider,"width"),10)},tipDisabled:function(){return null===this.currentValue||(null===this.tipFormat(this.currentValue[0])||"never"===this.showTip)},computedMax:function(){return Math.max(this.min,this.max)}},methods:{updateValue:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.range){var e=(0,i.default)(t);if(n?e[0]>e[1]&&(e=[this.min,this.computedMax]):e[0]>e[1]&&(e[0]=e[1]),e[0]<this.min&&(e[0]=this.min),e[0]>this.computedMax&&(e[0]=this.computedMax),e[1]<this.min&&(e[1]=this.min),e[1]>this.computedMax&&(e[1]=this.computedMax),this.currentValue[0]===e[0]&&this.currentValue[1]===e[1])return this.setFirstPosition(this.currentValue[0]),void this.setSecondPosition(this.currentValue[1]);this.currentValue=e,this.setFirstPosition(this.currentValue[0]),this.setSecondPosition(this.currentValue[1])}else t<this.min&&(this.currentValue=this.min),t>this.computedMax&&(this.currentValue=this.computedMax),this.setSinglePosition(this.currentValue)},sliderClick:function(t){if(!this.disabled){var n=(t.clientX-this.$refs.slider.getBoundingClientRect().left)/this.sliderWidth*100;if(this.range){var e="";e=n<=this.firstPosition?"First":n>=this.secondPosition?"Second":n-this.firstPosition<=this.secondPosition-n?"First":"Second",this["change".concat(e,"Position")](n)}else this.changeSinglePosition(n)}},onSingleButtonDown:function(t){this.disabled||(t.preventDefault(),this.onSingleDragStart(t),window.addEventListener("mousemove",this.onSingleDragging),window.addEventListener("mouseup",this.onSingleDragEnd))},onSingleDragStart:function(t){this.dragging=!0,this.startX=t.clientX,this.startPos=(0,u.default)(this.singlePosition||0,10)},onSingleDragging:function(t){if(this.dragging){this.$refs.tooltip.visible=!0,this.currentX=t.clientX;var n=(this.currentX-this.startX)/this.sliderWidth*100;this.newPos=this.startPos+n,this.changeSinglePosition(this.newPos)}},onSingleDragEnd:function(){this.dragging&&(this.dragging=!1,this.$refs.tooltip.visible=!1,this.changeSinglePosition(this.newPos),window.removeEventListener("mousemove",this.onSingleDragging),window.removeEventListener("mouseup",this.onSingleDragEnd))},changeSinglePosition:function(t){var n=t;n<0?n=0:n>100&&(n=100);var e=100/((this.computedMax-this.min)/this.step),r=Math.round(n/e),i=Math.round(r*e*(this.computedMax-this.min)*.01+this.min);(0,a.default)(i)||(this.currentValue=i),this.setSinglePosition(this.currentValue),this.dragging||this.currentValue!==this.oldSingleValue&&(this.$emit("on-change",this.currentValue),this.dispatch("FormItem","on-form-change",this.currentValue),this.oldSingleValue=this.currentValue)},setSinglePosition:function(t){this.singlePosition=(t-this.min)/(this.computedMax-this.min)*100},handleInputChange:function(t){this.currentValue=t,this.setSinglePosition(t),this.$emit("on-change",this.currentValue),this.dispatch("FormItem","on-form-change",this.currentValue)},onFirstButtonDown:function(t){this.disabled||(t.preventDefault(),this.onFirstDragStart(t),window.addEventListener("mousemove",this.onFirstDragging),window.addEventListener("mouseup",this.onFirstDragEnd))},onFirstDragStart:function(t){this.firstDragging=!0,this.startX=t.clientX,this.startPos=(0,u.default)(this.firstPosition,10)},onFirstDragging:function(t){if(this.firstDragging){this.$refs.tooltip.visible=!0,this.currentX=t.clientX;var n=(this.currentX-this.startX)/this.sliderWidth*100;this.newPos=this.startPos+n,this.changeFirstPosition(this.newPos)}},onFirstDragEnd:function(){this.firstDragging&&(this.firstDragging=!1,this.$refs.tooltip.visible=!1,this.changeFirstPosition(this.newPos),window.removeEventListener("mousemove",this.onFirstDragging),window.removeEventListener("mouseup",this.onFirstDragEnd))},changeFirstPosition:function(t){var n=t;n<0?n=0:n>this.secondPosition&&(n=this.secondPosition);var e=100/((this.computedMax-this.min)/this.step),r=Math.round(n/e);this.currentValue=[Math.round(r*e*(this.computedMax-this.min)*.01+this.min),this.currentValue[1]],this.setFirstPosition(this.currentValue[0]),this.firstDragging||this.currentValue[0]!==this.oldFirstValue&&(this.$emit("on-change",this.currentValue),this.dispatch("FormItem","on-form-change",this.currentValue),this.oldFirstValue=this.currentValue[0])},setFirstPosition:function(t){this.firstPosition=(t-this.min)/(this.computedMax-this.min)*100},onSecondButtonDown:function(t){this.disabled||(t.preventDefault(),this.onSecondDragStart(t),window.addEventListener("mousemove",this.onSecondDragging),window.addEventListener("mouseup",this.onSecondDragEnd))},onSecondDragStart:function(t){this.secondDragging=!0,this.startX=t.clientX,this.startPos=(0,u.default)(this.secondPosition,10)},onSecondDragging:function(t){if(this.secondDragging){this.$refs.tooltip2.visible=!0,this.currentX=t.clientX;var n=(this.currentX-this.startX)/this.sliderWidth*100;this.newPos=this.startPos+n,this.changeSecondPosition(this.newPos)}},onSecondDragEnd:function(){this.secondDragging&&(this.secondDragging=!1,this.$refs.tooltip2.visible=!1,this.changeSecondPosition(this.newPos),window.removeEventListener("mousemove",this.onSecondDragging),window.removeEventListener("mouseup",this.onSecondDragEnd))},changeSecondPosition:function(t){var n=t;n>100?n=100:n<this.firstPosition&&(n=this.firstPosition);var e=100/((this.computedMax-this.min)/this.step),r=Math.round(n/e);this.currentValue=[this.currentValue[0],Math.round(r*e*(this.computedMax-this.min)*.01+this.min)],this.setSecondPosition(this.currentValue[1]),this.secondDragging||this.currentValue[1]!==this.oldSecondValue&&(this.$emit("on-change",this.currentValue),this.dispatch("FormItem","on-form-change",this.currentValue),this.oldSecondValue=this.currentValue[1])},setSecondPosition:function(t){this.secondPosition=(t-this.min)/(this.computedMax-this.min)*100}},mounted:function(){if(window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui slider lifecycle mounted"),"always"==this.showTip&&(this.$refs.tooltip.visible=!0),this.range){var t=Array.isArray(this.currentValue);!t||t&&2!=this.currentValue.length||t&&(isNaN(this.currentValue[0])||isNaN(this.currentValue[1]))?this.currentValue=[this.min,this.computedMax]:this.updateValue(this.currentValue,!0)}else"number"!=typeof this.currentValue&&(this.currentValue=this.min),this.updateValue(this.currentValue)}};n.default=d},59:function(t,n,e){"use strict";var r=e(92)(!0);e(55)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})}))},6:function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,n){t.exports=require("h_ui/dist/lib/mixins/emitter.js")},61:function(t,n,e){t.exports=e(97)},62:function(t,n,e){var r=e(22)("meta"),i=e(6),o=e(10),s=e(5).f,u=0,a=Object.isExtensible||function(){return!0},c=!e(7)((function(){return a(Object.preventExtensions({}))})),f=function(t){s(t,r,{value:{i:"O"+ ++u,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!a(t))return"F";if(!n)return"E";f(t)}return t[r].i},getWeak:function(t,n){if(!o(t,r)){if(!a(t))return!0;if(!n)return!1;f(t)}return t[r].w},onFreeze:function(t){return c&&l.NEED&&a(t)&&!o(t,r)&&f(t),t}}},63:function(t,n,e){t.exports=e(100)},64:function(t,n,e){t.exports=e(107)},65:function(t,n,e){var r=e(29),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=r(t))<0?i(t+n,0):o(t,n)}},66:function(t,n,e){"use strict";var r=e(1),i=e(10),o=e(2),s=e(3),u=e(54),a=e(62).KEY,c=e(7),f=e(30),l=e(37),h=e(22),p=e(9),d=e(41),g=e(43),v=e(79),m=e(57),y=e(12),x=e(6),b=e(20),S=e(13),w=e(17),P=e(14),_=e(48),V=e(80),O=e(46),M=e(36),D=e(5),j=e(19),E=O.f,F=D.f,T=V.f,L=r.Symbol,C=r.JSON,I=C&&C.stringify,A=p("_hidden"),N=p("toPrimitive"),$={}.propertyIsEnumerable,k=f("symbol-registry"),X=f("symbols"),R=f("op-symbols"),B=Object.prototype,H="function"==typeof L&&!!M.f,U=r.QObject,G=!U||!U.prototype||!U.prototype.findChild,W=o&&c((function(){return 7!=_(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=E(B,n);r&&delete B[n],F(t,n,e),r&&t!==B&&F(B,n,r)}:F,J=function(t){var n=X[t]=_(L.prototype);return n._k=t,n},q=H&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},z=function(t,n,e){return t===B&&z(R,n,e),y(t),n=w(n,!0),y(e),i(X,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=_(e,{enumerable:P(0,!1)})):(i(t,A)||F(t,A,P(1,{})),t[A][n]=!0),W(t,n,e)):F(t,n,e)},K=function(t,n){y(t);for(var e,r=v(n=S(n)),i=0,o=r.length;o>i;)z(t,e=r[i++],n[e]);return t},Y=function(t){var n=$.call(this,t=w(t,!0));return!(this===B&&i(X,t)&&!i(R,t))&&(!(n||!i(this,t)||!i(X,t)||i(this,A)&&this[A][t])||n)},Q=function(t,n){if(t=S(t),n=w(n,!0),t!==B||!i(X,n)||i(R,n)){var e=E(t,n);return!e||!i(X,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=T(S(t)),r=[],o=0;e.length>o;)i(X,n=e[o++])||n==A||n==a||r.push(n);return r},tt=function(t){for(var n,e=t===B,r=T(e?R:S(t)),o=[],s=0;r.length>s;)!i(X,n=r[s++])||e&&!i(B,n)||o.push(X[n]);return o};H||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===B&&n.call(R,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),W(this,t,P(1,e))};return o&&G&&W(B,t,{configurable:!0,set:n}),J(t)},u(L.prototype,"toString",(function(){return this._k})),O.f=Q,D.f=z,e(44).f=V.f=Z,e(28).f=Y,M.f=tt,o&&!e(23)&&u(B,"propertyIsEnumerable",Y,!0),d.f=function(t){return J(p(t))}),s(s.G+s.W+s.F*!H,{Symbol:L});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)p(nt[et++]);for(var rt=j(p.store),it=0;rt.length>it;)g(rt[it++]);s(s.S+s.F*!H,"Symbol",{for:function(t){return i(k,t+="")?k[t]:k[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in k)if(k[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),s(s.S+s.F*!H,"Object",{create:function(t,n){return void 0===n?_(t):K(_(t),n)},defineProperty:z,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var ot=c((function(){M.f(1)}));s(s.S+s.F*ot,"Object",{getOwnPropertySymbols:function(t){return M.f(b(t))}}),C&&s(s.S+s.F*(!H||c((function(){var t=L();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(e=n=r[1],(x(n)||void 0!==t)&&!q(t))return m(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!q(n))return n}),r[1]=n,I.apply(C,r)}}),L.prototype[N]||e(11)(L.prototype,N,L.prototype.valueOf),l(L,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},662:function(t,n){t.exports=require("h_ui/dist/lib/cjs/InputNumber.js")},67:function(t,n,e){var r=e(13),i=e(42),o=e(65);t.exports=function(t){return function(n,e,s){var u,a=r(n),c=i(a.length),f=o(s,c);if(t&&e!=e){for(;c>f;)if((u=a[f++])!=u)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}}},68:function(t,n,e){"use strict";var r=e(5),i=e(14);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},69:function(t,n,e){e(70),t.exports=e(0).parseInt},7:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},70:function(t,n,e){var r=e(3),i=e(71);r(r.G+r.F*(parseInt!=i),{parseInt:i})},71:function(t,n,e){var r=e(1).parseInt,i=e(51).trim,o=e(35),s=/^[-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,n){var e=i(String(t),3);return r(e,n>>>0||(s.test(e)?16:10))}:r},73:function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},74:function(t,n,e){var r=e(5),i=e(12),o=e(19);t.exports=e(2)?Object.defineProperties:function(t,n){i(t);for(var e,s=o(n),u=s.length,a=0;u>a;)r.f(t,e=s[a++],n[e]);return t}},75:function(t,n){},76:function(t,n,e){e(94);for(var r=e(1),i=e(11),o=e(26),s=e(9)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<u.length;a++){var c=u[a],f=r[c],l=f&&f.prototype;l&&!l[s]&&i(l,s,c),o[c]=o.Array}},766:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return i}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.classes},[!t.range&&t.showInput?e("Input-number",{attrs:{min:t.min,max:t.max,step:t.step,value:t.currentValue,disabled:t.disabled},on:{"on-change":t.handleInputChange}}):t._e(),t._v(" "),e("div",{ref:"slider",class:[t.prefixCls+"-wrap"],on:{click:function(n){return n.target!==n.currentTarget?null:t.sliderClick(n)}}},[t.showStops?t._l(t.stops,(function(n,r){return e("div",{key:r,class:[t.prefixCls+"-stop"],style:{left:n+"%"},on:{click:function(n){return n.target!==n.currentTarget?null:t.sliderClick(n)}}})})):t._e(),t._v(" "),e("div",{class:[t.prefixCls+"-bar"],style:t.barStyle,on:{click:function(n){return n.target!==n.currentTarget?null:t.sliderClick(n)}}}),t._v(" "),t.range?[e("div",{class:[t.prefixCls+"-button-wrap"],style:{left:t.firstPosition+"%"},on:{mousedown:t.onFirstButtonDown}},[e("Tooltip",{ref:"tooltip",attrs:{controlled:t.firstDragging,placement:"top",content:t.tipFormat(t.currentValue[0]),disabled:t.tipDisabled,always:"always"===t.showTip}},[e("div",{class:t.button1Classes})])],1),t._v(" "),e("div",{class:[t.prefixCls+"-button-wrap"],style:{left:t.secondPosition+"%"},on:{mousedown:t.onSecondButtonDown}},[e("Tooltip",{ref:"tooltip2",attrs:{controlled:t.secondDragging,placement:"top",content:t.tipFormat(t.currentValue[1]),disabled:t.tipDisabled,always:"always"===t.showTip}},[e("div",{class:t.button2Classes})])],1)]:[e("div",{class:[t.prefixCls+"-button-wrap"],style:{left:t.singlePosition+"%"},on:{mousedown:t.onSingleButtonDown}},[e("Tooltip",{ref:"tooltip",attrs:{controlled:t.dragging,placement:"top",content:t.tipFormat(t.currentValue),disabled:t.tipDisabled,always:"always"===t.showTip}},[e("div",{class:t.buttonClasses})])],1)]],2)],1)},i=[];r._withStripped=!0},79:function(t,n,e){var r=e(19),i=e(36),o=e(28);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var s,u=e(t),a=o.f,c=0;u.length>c;)a.call(t,s=u[c++])&&n.push(s);return n}},8:function(t,n){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},80:function(t,n,e){var r=e(13),i=e(44).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return s.slice()}}(t):i(r(t))}},81:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},85:function(t,n,e){t.exports=e(91)},86:function(t,n,e){var r=e(33),i=e(9)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?e:o?r(n):"Object"==(s=r(n))&&"function"==typeof n.callee?"Arguments":s}},87:function(t,n,e){var r=e(12);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},88:function(t,n,e){var r=e(26),i=e(9)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},89:function(t,n,e){var r=e(86),i=e(9)("iterator"),o=e(26);t.exports=e(0).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},9:function(t,n,e){var r=e(30)("wks"),i=e(22),o=e(1).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},90:function(t,n,e){var r=e(10),i=e(20),o=e(34)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},91:function(t,n,e){var r=e(0),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},92:function(t,n,e){var r=e(29),i=e(18);t.exports=function(t){return function(n,e){var o,s,u=String(i(n)),a=r(e),c=u.length;return a<0||a>=c?t?"":void 0:(o=u.charCodeAt(a))<55296||o>56319||a+1===c||(s=u.charCodeAt(a+1))<56320||s>57343?t?u.charAt(a):o:t?u.slice(a,a+2):s-56320+(o-55296<<10)+65536}}},93:function(t,n,e){"use strict";var r=e(48),i=e(14),o=e(37),s={};e(11)(s,e(9)("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(s,{next:i(1,e)}),o(t,n+" Iterator")}},94:function(t,n,e){"use strict";var r=e(95),i=e(81),o=e(26),s=e(13);t.exports=e(55)(Array,"Array",(function(t,n){this._t=s(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},95:function(t,n){t.exports=function(){}},97:function(t,n,e){e(66),e(75),e(98),e(99),t.exports=e(0).Symbol},98:function(t,n,e){e(43)("asyncIterator")},99:function(t,n,e){e(43)("observable")}});