UNPKG

bk-vue-cec

Version:

一个为运维业务场景而生,好看易用的Vue2原创组件库,由T-inside Design进行托管社区化运作

1 lines 944 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("path")):"function"==typeof define&&define.amd?define(["exports","vue","path"],t):t((e=e||self).bkMagicVue={},e.Vue,e.path)}(this,(function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,i,n,s,a,r){try{var o=e[a](r),l=o.value}catch(e){return void i(e)}o.done?t(l):Promise.resolve(l).then(n,s)}function a(e){return function(){var t=this,i=arguments;return new Promise((function(n,a){var r=e.apply(t,i);function o(e){s(r,n,a,o,l,"next",e)}function l(e){s(r,n,a,o,l,"throw",e)}o(void 0)}))}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e}function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function d(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach((function(t){c(e,t,i[t])}))}return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,i){return(f=p()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var s=new(Function.bind.apply(e,n));return i&&h(s,i.prototype),s}).apply(null,arguments)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var n,s,a=[],r=!0,o=!1;try{for(i=i.call(e);!(r=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw s}}return a}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||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.")}()}function b(e,t){if(e){if("string"==typeof e)return v(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function y(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=b(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,a=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw a}}}}t=t&&t.hasOwnProperty("default")?t.default:t,i=i&&i.hasOwnProperty("default")?i.default:i;var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function k(e,t){return e(t={exports:{}},t.exports),t.exports}var I=k((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),w=k((function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)})),M=(w.version,function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}),N=function(e,t,i){if(M(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,s){return e.call(t,i,n,s)}}return function(){return e.apply(t,arguments)}},x=function(e){return"object"==typeof e?null!==e:"function"==typeof e},L=function(e){if(!x(e))throw TypeError(e+" is not an object!");return e},S=function(e){try{return!!e()}catch(e){return!0}},T=!S((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),D=I.document,j=x(D)&&x(D.createElement),E=function(e){return j?D.createElement(e):{}},z=!T&&!S((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),A=function(e,t){if(!x(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!x(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!x(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!x(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")},O=Object.defineProperty,_={f:T?Object.defineProperty:function(e,t,i){if(L(e),t=A(t,!0),L(i),z)try{return O(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},P=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Q=T?function(e,t,i){return _.f(e,t,P(1,i))}:function(e,t,i){return e[t]=i,e},J={}.hasOwnProperty,H=function(e,t){return J.call(e,t)},R=function(e,t,i){var n,s,a,r=e&R.F,o=e&R.G,l=e&R.S,c=e&R.P,u=e&R.B,d=e&R.W,h=o?w:w[t]||(w[t]={}),p=h.prototype,f=o?I:l?I[t]:(I[t]||{}).prototype;for(n in o&&(i=t),i)(s=!r&&f&&void 0!==f[n])&&H(h,n)||(a=s?f[n]:i[n],h[n]=o&&"function"!=typeof f[n]?i[n]:u&&s?N(a,I):d&&f[n]==a?function(e){var t=function(t,i,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(a):c&&"function"==typeof a?N(Function.call,a):a,c&&((h.virtual||(h.virtual={}))[n]=a,e&R.R&&p&&!p[n]&&Q(p,n,a)))};R.F=1,R.G=2,R.S=4,R.P=8,R.B=16,R.W=32,R.U=64,R.R=128;var B,W=R,F={}.toString,G=function(e){return F.call(e).slice(8,-1)},Z=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==G(e)?e.split(""):Object(e)},Y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},V=function(e){return Z(Y(e))},U=Math.ceil,$=Math.floor,X=function(e){return isNaN(e=+e)?0:(e>0?$:U)(e)},K=Math.min,q=function(e){return e>0?K(X(e),9007199254740991):0},ee=Math.max,te=Math.min,ie=k((function(e){var t=I["__core-js_shared__"]||(I["__core-js_shared__"]={});(e.exports=function(e,i){return t[e]||(t[e]=void 0!==i?i:{})})("versions",[]).push({version:w.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),ne=0,se=Math.random(),ae=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++ne+se).toString(36))},re=ie("keys"),oe=function(e){return re[e]||(re[e]=ae(e))},le=(B=!1,function(e,t,i){var n,s=V(e),a=q(s.length),r=function(e,t){return(e=X(e))<0?ee(e+t,0):te(e,t)}(i,a);if(B&&t!=t){for(;a>r;)if((n=s[r++])!=n)return!0}else for(;a>r;r++)if((B||r in s)&&s[r]===t)return B||r||0;return!B&&-1}),ce=oe("IE_PROTO"),ue=function(e,t){var i,n=V(e),s=0,a=[];for(i in n)i!=ce&&H(n,i)&&a.push(i);for(;t.length>s;)H(n,i=t[s++])&&(~le(a,i)||a.push(i));return a},de="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),he=Object.keys||function(e){return ue(e,de)},pe={f:{}.propertyIsEnumerable},fe=pe.f,ge=function(e){return function(t){for(var i,n=V(t),s=he(n),a=s.length,r=0,o=[];a>r;)i=s[r++],T&&!fe.call(n,i)||o.push(e?[i,n[i]]:n[i]);return o}},me=ge(!1);W(W.S,"Object",{values:function(e){return me(e)}});var be=w.Object.values;W(W.S+W.F*!T,"Object",{defineProperty:_.f});var ve,ye=w.Object,Ce=function(e,t,i){return ye.defineProperty(e,t,i)},ke=!1;!function(){if(!window.__bk_zIndex_manager){var e={nextZIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return"default"===t?e.zIndex++:t},nextTickIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return"default"===i?(e.zIndex+=t,e.zIndex):i}};Ce(e,"zIndex",{configurable:!0,get:function(){return ke||(ve=ve||(t.prototype.$BK_EL||{}).zIndex||2e3,ke=!0),ve},set:function(e){ve=e}}),window.__bk_zIndex_manager=e}}();var Ie=window.__bk_zIndex_manager;function we(e,t,i,n){var s,a=!1,r=0;function o(){s&&clearTimeout(s)}function l(){var l=this,c=Date.now()-r,u=arguments;function d(){r=Date.now(),i.apply(l,u)}function h(){s=void 0}a||(n&&!s&&d(),o(),void 0===n&&c>e?d():!0!==t&&(s=setTimeout(n?h:d,void 0===n?e-c:e)))}return"boolean"!=typeof t&&(n=i,i=t,t=void 0),l.cancel=function(){o(),a=!0},l}function Me(e,t,i){return void 0===i?we(e,t,!1):we(e,i,!1!==t)}var Ne=function(e,t,i,n,s,a,r,o,l,c){"boolean"!=typeof r&&(l=o,o=r,r=!1);var u,d="function"==typeof i?i.options:i;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),n&&(d._scopeId=n),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__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=r?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),u)if(d.functional){var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return i},xe=Ne({render:function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:"bk-fade-in-linear"}},[this.visible?t("div",{staticClass:"bk-back-to-top",style:this.positionStyle,on:{click:this.scrollTop}},[this._t("default",[t("i",{staticClass:"bk-icon icon-angle-up-line"})])],2):this._e()])},staticRenderFns:[]},void 0,{name:"bk-back-top",props:{bottom:{type:Number,default:40},right:{type:Number,default:40},target:{type:String,default:""},visibilityHeight:{type:Number,default:200}},data:function(){return{visible:!1,zIndex:0,container:document,el:document.documentElement}},computed:{positionStyle:function(){return"right: ".concat(this.right,"px;\n bottom: ").concat(this.bottom,"px;\n z-index: ").concat(this.zIndex)}},watch:{visible:function(e){e&&(this.zIndex=Ie.nextTickIndex(2))}},mounted:function(){if(this._lazyScrollHandler=we(30,this.scrollHandler),this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target does not exist");this.container=this.el}this.container.addEventListener("scroll",this._lazyScrollHandler)},methods:{clickHandler:function(){this.$emit("click")},scrollTop:function(){this.el.scrollTo({top:0,behavior:"smooth"})},scrollHandler:function(){this.visible=this.el.scrollTop>=this.visibilityHeight}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Le=function(e){return Object(Y(e))},Se=function(e,t){var i=(w.Object||{})[e]||Object[e],n={};n[e]=t(i),W(W.S+W.F*S((function(){i(1)})),"Object",n)};Se("keys",(function(){return function(e){return he(Le(e))}}));var Te=w.Object.keys;function De(e,t){e.install=function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=e.props||{};Te(n).forEach((function(e){s.hasOwnProperty(e)&&("function"==typeof s[e]||s[e]instanceof Array?s[e]={type:s[e],default:n[e]}:s[e].default=n[e])})),e.name=n.namespace?e.name.replace("bk",n.namespace):e.name,i.component(e.name,e),"function"==typeof t&&t(i,n)}}De(xe);var je=document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!0)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)},Ee=document.removeEventListener?function(e,t,i){e&&t&&e.removeEventListener(t,i,!0)}:function(e,t,i){e&&t&&e.detachEvent("on"+t,i)},ze=Ne({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"root"},[t("div",{ref:"point",class:{"bk-affix":this.affix},style:this.styles},[this._t("default")],2)])},staticRenderFns:[]},void 0,{name:"bk-affix",props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},target:{type:String,default:""},zIndex:{type:Number,default:1e3}},data:function(){return{affix:!1,styles:{}}},computed:{offsetType:function(){var e="top";return this.offsetBottom>=0&&(e="bottom"),e}},mounted:function(){var e=this;this.targetEl=this.target?document.querySelector(this.target):window,this.$refs.point.style.zIndex=this.zIndex,je(this.targetEl,"scroll",this.listenScroll),je(this.targetEl,"resize",this.listenScroll),this.$nextTick((function(){e.handleScroll()}))},beforeDestroy:function(){Ee(this.targetEl,"scroll",this.listenScroll),Ee(this.targetEl,"resize",this.listenScroll),Ee(window,"scroll",this.setTargetLoop)},methods:{setTargetLoop:function(){"top"===this.offsetType?this.styles={top:"".concat(this.targetEl.getBoundingClientRect().top+this.offsetTop,"px")}:this.styles={bottom:"".concat(window.innerHeight-this.targetEl.getBoundingClientRect().bottom+this.offsetBottom,"px")}},listenScroll:function(){this.throttle(this.handleScroll,100)},throttle:function(e,t){var i=0,n=null,s=new Date,a=this,r=t-(s-i),o=arguments;r<=0?(e.apply.apply(e,[a].concat(m(o))),i=new Date):n||(n=setTimeout((function(){clearTimeout(n),n=null,e.apply.apply(e,[a].concat(m(o))),i=new Date}),r))},getOffset:function(e){var t=e.getBoundingClientRect(),i=this.targetEl===window?{top:0,left:0}:this.targetEl.getBoundingClientRect(),n=this.targetEl.clientTop||0,s=this.targetEl.clientLeft||0;return{top:t.top-i.top-n,left:t.left-i.left-s}},handleScroll:function(){var e=this.targetEl===window?{top:0,left:0,bottom:window.innerHeight}:this.targetEl.getBoundingClientRect(),t=this.getOffset(this.$refs.root),i=this.targetEl===window?this.targetEl.innerHeight:this.targetEl.clientHeight,n=this.$refs.point.offsetHeight;t.top<this.offsetTop&&"top"===this.offsetType&&!this.affix?(this.affix=!0,this.styles={position:"fixed",top:"".concat(e.top+this.offsetTop,"px"),left:"".concat(e.left+t.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.targetEl!==window&&je(window,"scroll",this.setTargetLoop),this.$emit("change",!0)):t.top>this.offsetTop&&"top"===this.offsetType&&this.affix&&(this.affix=!1,this.styles=null,this.$emit("change",!1)),t.top+this.offsetBottom+n>i&&"bottom"===this.offsetType&&!this.affix?(this.affix=!0,this.styles={bottom:"".concat(window.innerHeight-e.bottom+this.offsetBottom,"px"),left:"".concat(e.left+t.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.targetEl!==window&&je(window,"scroll",this.setTargetLoop),this.$emit("change",!0)):t.top+this.offsetBottom+n<i&&"bottom"===this.offsetType&&this.affix&&(this.affix=!1,this.styles=null,this.$emit("change",!1))}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(ze);var Ae,Oe=Ne({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"bk-fixed-navbar-wrapper",class:[e.extCls,e.position],style:{zIndex:e.localZIndex}},e._l(e.navConfig,(function(t,n){return i("div",{directives:[{name:"bk-tooltips",rawName:"v-bk-tooltips",value:t.tooltip,expression:"item.tooltip"}],key:n,staticClass:"fixed-navbar-item",on:{click:t.action}},[i("i",{class:["bk-icon",t.icon]}),i("span",{staticClass:"text"},[e._v(e._s(t.text))])])})),0)},staticRenderFns:[]},void 0,{name:"bk-fixed-navbar",props:{navItems:{type:Array,default:function(){return[]}},extCls:{type:String,default:""},position:{type:String,default:"middle"}},data:function(){return{localZIndex:Ie.nextTickIndex(2)}},computed:{navConfig:function(){return this.navItems.map((function(e){return u({tooltip:{disabled:!0},action:function(){}},e)}))}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function _e(e){return e&&"object"===n(e)&&e.hasOwnProperty("componentOptions")}function Pe(e,t,i){e&&(e.addEventListener?e.addEventListener(t,i,!1):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i)}function Qe(e,t,i){e&&(e.removeEventListener?e.removeEventListener(t,i,!1):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null)}De(Oe);window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;function Je(e,t){return e.$children.reduce((function(e,i){i.$options.name===t&&e.push(i);var n=Je(i,t);return e.concat(n)}),[])}var He=/([\:\-\_]+(.))/g,Re=/^moz([A-Z])/,Be=function(e){return e.replace(He,(function(e,t,i,n){return n?i.toUpperCase():i})).replace(Re,"Moz$1")};function We(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function Fe(e,t){if(e){for(var i=e.className,n=(t||"").split(" "),s=0,a=n.length;s<a;s++){var r=n[s];r&&(e.classList?e.classList.add(r):We(e,r)||(i+=" "+r))}e.classList||(e.className=i)}}function Ge(e,t){if(e&&t){for(var i=t.split(" "),n=" "+e.className+" ",s=0,a=i.length;s<a;s++){var r=i[s];r&&(e.classList?e.classList.remove(r):We(e,r)&&(n=n.replace(" "+r+" "," ")))}e.classList||(e.className=(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}var Ze=Number(document.documentMode)<9?function(e,t){if(!e||!t)return null;"float"===(t=Be(t))&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(i){return e.style[t]}}:function(e,t){if(!e||!t)return null;"float"===(t=Be(t))&&(t="cssFloat");try{var i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch(i){return e.style[t]}};var Ye={beforeEnter:function(e){Fe(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},enter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){Ge(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},leave:function(e){0!==e.scrollHeight&&(Fe(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave:function(e){Ge(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}},Ve={name:"CollapseTransition",functional:!0,render:function(e,t){var i=t.children;return e("transition",{on:Ye},i)}},Ue=Ne({render:function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{staticClass:"bk-transition",attrs:{name:this.transitionName}},["collapse"===this.name?t("CollapseTransition",[this._t("default")],2):this._t("default")],2)},staticRenderFns:[]},void 0,{name:"bk-transition",components:{CollapseTransition:Ve},props:{name:{type:String,default:""},durationTime:{type:String,default:".3s"},durationType:{type:String,default:"linear"}},computed:{transitionName:function(){return this.isCollapse?"":this.name},isCollapse:function(){return"collapse"===this.name}},mounted:function(){var e=this.getSlot();e.elm.style.transitionDuration=this.durationTime,e.elm.style.transitionTimingFunction=this.durationType},methods:{getSlot:function(){return this.$slots.default[0]}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(Ue);var $e=Ne({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"bk-alert-leave"},on:{"before-leave":e.beforeLeave,leave:e.leave,"after-leave":e.afterLeave}},[e.visible?i("div",{staticClass:"bk-alert",class:e.typeClass},[i("div",{staticClass:"bk-alert-wraper"},[e.showIcon?i("i",{staticClass:"bk-icon icon-info"}):e._e(),i("div",{staticClass:"bk-alert-content"},[i("div",{staticClass:"bk-alert-title"},[e._t("title",[e._v("\n "+e._s(e.title)+"\n ")])],2),i("div",{staticClass:"bk-alert-description"})]),e.closable?i("span",{staticClass:"bk-alert-close",class:e.closeClasses,on:{click:e.handleClose}},[e._v(e._s(e.closeText))]):e._e()])]):e._e()])},staticRenderFns:[]},void 0,{name:"bk-alert",props:{type:{type:String,default:"info"},title:{type:String,default:""},closable:{type:Boolean,default:!1},closeText:{type:String},showIcon:{type:Boolean,default:!0}},data:function(){return{visible:!0}},computed:{typeClass:function(){return"bk-alert-".concat(this.type)},closeClasses:function(){var e={};return this.closeText?e["close-text"]=!0:(e["bk-icon"]=!0,e["icon-close"]=!0),e}},methods:{beforeLeave:function(e){var t=e.getBoundingClientRect().height;e.style.height="".concat(t,"px")},leave:function(e){setTimeout((function(){e.style.height=0}))},afterLeave:function(e){e.style.height=""},handleClose:function(){this.visible=!1,this.$emit("close")}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De($e),W(W.S,"Number",{isNaN:function(e){return e!=e}});var Xe=w.Number.isNaN,Ke=Ne({render:function(){var e=this.$createElement;return(this._self._c||e)("span",{class:this.extCls},[this._v(this._s(this.formatValue))])},staticRenderFns:[]},void 0,{name:"bk-animate-number",props:{value:{type:Number,required:!0},digits:{type:Number,default:0},extCls:{type:String,default:""}},data:function(){return{tweeningValue:0,rafId:""}},computed:{formatValue:function(){return Number(this.tweeningValue).toFixed(this.digits)}},watch:{value:function(e,t){this.tween(t,e)}},mounted:function(){this.tween(0,this.value)},beforeDestroy:function(){cancelAnimationFrame(this.rafId)},methods:{tween:function(e,t){var i=this;if(Xe(+t))return 0;var n=Math.abs(t-e),s=t-e>0?1:-1,a=Math.ceil(n/30*Math.pow(10,this.digits))/Math.pow(10,this.digits),r=25/Math.ceil(n/a),o=1;!function e(){if(o<r)return i.rafId=requestAnimationFrame(e),void o++;i.tweeningValue+=a*s,(1===s?i.tweeningValue<t:i.tweeningValue>t)?(i.rafId=requestAnimationFrame(e),o=1):i.tweeningValue=t}()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(Ke);var qe=Ne({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"bk-badge-wrapper",class:e.extCls,style:{"vertical-align":e.$slots.default?"middle":"",cursor:e.icon?"pointer":""}},[e._t("default"),i("transition",{attrs:{name:"fade-center"}},[i("span",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"bk-badge",class:e.badgeClass,style:e.badgeStyle,on:{mouseenter:e.handleHover,mouseleave:e.handleLeave}},[e.icon&&!e.dot?i("i",{staticClass:"bk-icon",class:"icon-"+e.icon}):e._e(),e.icon||e.dot?e._e():i("span",[e._v(e._s(e.text))])])])],2)},staticRenderFns:[]},void 0,{name:"bk-badge",props:{theme:{type:String,default:"",validator:function(e){return["","primary","info","warning","danger","success"].indexOf(e)>-1||0===e.indexOf("#")}},val:{type:[Number,String],default:1},valLength:{type:[Number,String],default:3},icon:{type:String,default:""},max:{type:Number,default:-1},dot:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},position:{type:String,default:"top-right"},radius:{type:[String,Number],default:void 0},extCls:{type:String,default:""}},computed:{text:function(){var e=this,t=n(this.val),i=this.max,s=this.val,a=this.icon,r="number"===t||/^\d+$/.test(this.val);if(a)return a;if(r&&i>-1&&Number(s)>i)return i+"+";var o=[],l=0;return(s+="").split("").forEach((function(t){l<Number(e.valLength)&&(l+=/[\u4e00-\u9fa5]/.test(t)?2:1,o.push(t))})),o.join("")},hexTheme:function(){return/^#[0-9a-fA-F]{3,6}$/.test(this.theme)},badgeStyle:function(){var e=void 0!==this.radius&&/^\d+(%|px|em|rem|vh|vw)?$/.test(this.radius),t=e&&/^\d+$/.test(this.radius)&&"".concat(this.radius,"px")||this.radius,i=this.icon&&{color:this.theme||"",borderColor:"transparent",backgroundColor:"#fff"}||{color:this.hexTheme?"#fff":"",backgroundColor:this.hexTheme?this.theme:"",borderColor:this.hexTheme?this.theme:"",borderWidth:this.dot?"1px":"2px"};return e&&u(i,{borderRadius:t}),i},badgeClass:function(){return[this.theme&&!this.hexTheme?"bk-"+this.theme:"",this.$slots.default?this.position:"",{pinned:this.$slots.default,dot:this.dot,"is-icon":!!this.icon}]}},methods:{handleHover:function(){this.$emit("hover")},handleLeave:function(){this.$emit("leave")}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(qe);var et=Ne({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",e._b({class:[e.buttonCls,e.extCls],attrs:{title:e.title,disabled:e.disabled,type:e.nativeType},on:{click:e.handleClick}},"button",e.$attrs,!1),[e.loading?i("div",{staticClass:"bk-button-loading"},[i("div",{staticClass:"bounce1"}),i("div",{staticClass:"bounce2"}),i("div",{staticClass:"bounce3"}),i("div",{staticClass:"bounce4"})]):e._e(),i("div",{class:e.loading?"bk-loading-wrapper":""},[e.iconType?i("i",{staticClass:"bk-icon left-icon",class:["icon-"+e.iconType,"loading"===e.iconType?"bk-button-icon-loading":""]},["loading"===e.iconType?[i("span",{staticClass:"loading"})]:e._e()],2):e._e(),i("span",[e._t("default")],2),e.iconRightType?i("i",{staticClass:"bk-icon right-icon",class:["icon-"+e.iconRightType,"loading"===e.iconRightType?"bk-button-icon-loading":""]},["loading"===e.iconRightType?[i("span",{staticClass:"loading"})]:e._e()],2):e._e()])])},staticRenderFns:[]},void 0,{name:"bk-button",props:{theme:{type:String,default:"default",validator:function(e){return!(["default","primary","warning","success","danger"].indexOf(e)<0)||(console.error("theme property is not valid: '".concat(e,"'")),!1)}},hoverTheme:{type:String,default:"",validator:function(e){return!(["","primary","warning","success","danger"].indexOf(e)<0)||(console.error("hoverTheme property is not valid: '".concat(e,"'")),!1)}},size:{type:String,default:"normal",validator:function(e){return!(["small","normal","large"].indexOf(e)<0)||(console.error("size property is not valid: '".concat(e,"'")),!1)}},title:{type:String,default:""},icon:String,iconRight:String,disabled:Boolean,loading:Boolean,outline:Boolean,text:Boolean,nativeType:{type:String,default:"button"},extCls:{type:String,default:""}},data:function(){return{showSlot:!0}},computed:{iconType:function(){var e=this.icon||"";return e&&0===e.indexOf("icon")&&(e=e.replace(/^(icon-)/,"")),e},iconRightType:function(){var e=this.iconRight||"";return e&&0===e.indexOf("icon")&&(e=e.replace(/^(icon-)/,"")),e},themeType:function(){return this.text&&"default"===this.theme?"primary":this.theme},buttonCls:function(){return["bk-".concat(this.themeType),"bk-button-".concat(this.size),this.hoverTheme?"bk-button-hover bk-".concat(this.hoverTheme):this.text?"bk-button-text":"bk-button",this.disabled?"is-disabled":"",this.loading?"is-loading":"",this.outline?"is-outline":"",this.showSlot?"":"no-slot"]}},mounted:function(){this.showSlot=void 0!==this.$slots.default},methods:{handleClick:function(e){this.disabled||this.loading||(this.$emit("click",e),this.$el.blur())}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(et);var tt=k((function(e){var t=function(e){var t=Object.prototype,i=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",r=n.toStringTag||"@@toStringTag";function o(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,i){return e[t]=i}}function l(e,t,i,n){var s=t&&t.prototype instanceof d?t:d,a=Object.create(s.prototype),r=new w(n||[]);return a._invoke=function(e,t,i){var n="suspendedStart";return function(s,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===s)throw a;return N()}for(i.method=s,i.arg=a;;){var r=i.delegate;if(r){var o=C(r,i);if(o){if(o===u)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=c(e,t,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}(e,i,r),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function d(){}function h(){}function p(){}var f={};o(f,s,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(M([])));m&&m!==t&&i.call(m,s)&&(f=m);var b=p.prototype=d.prototype=Object.create(f);function v(e){["next","throw","return"].forEach((function(t){o(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var n;this._invoke=function(s,a){function r(){return new t((function(n,r){!function n(s,a,r,o){var l=c(e[s],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,r,o)}),(function(e){n("throw",e,r,o)})):t.resolve(d).then((function(e){u.value=e,r(u)}),(function(e){return n("throw",e,r,o)}))}o(l.arg)}(s,a,n,r)}))}return n=n?n.then(r,r):r()}}function C(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=c(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var s=n.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function M(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:N}}function N(){return{value:void 0,done:!0}}return h.prototype=p,o(b,"constructor",p),o(p,"constructor",h),h.displayName=o(p,r,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,o(e,r,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},v(y.prototype),o(y.prototype,a,(function(){return this})),e.AsyncIterator=y,e.async=function(t,i,n,s,a){void 0===a&&(a=Promise);var r=new y(l(t,i,n,s),a);return e.isGeneratorFunction(i)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},v(b),o(b,r,"Generator"),o(b,s,(function(){return this})),o(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},e.values=M,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(i,n){return r.type="throw",r.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],r=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var o=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(o&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var a=s;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var r=a?a.completion:{};return r.type=e,r.arg=t,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),I(i),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var s=n.arg;I(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:M(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})),it={methods:{dispatch:function(e,t,i){for(var n=this.$parent||this.$root,s=n.$options.name;n&&(!s||s!==e);)(n=n.$parent)&&(s=n.$options.name);n&&n.$emit.apply(n,[t].concat(i))}}},nt=0,st=0;var at=Ne({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"bk-form-checkbox",class:[{"is-disabled":e.disabled,"is-indeterminate":e.indeterminate,"is-checked":e.selected},e.extCls],on:{click:e.handleClick,keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.handleClick(t))}}},[i("span",{staticClass:"bk-checkbox",attrs:{tabindex:!e.disabled&&0}}),i("input",{attrs:{type:"hidden",name:e.name},domProps:{value:void 0===e.label?e.localValue:e.label}}),e.$slots.default?i("span",{staticClass:"bk-checkbox-text"},[e._t("default")],2):e._e()])},staticRenderFns:[]},void 0,{name:"bk-checkbox",mixins:[it],props:{value:{type:[String,Number,Boolean],default:void 0},checked:{type:Boolean,default:void 0},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},label:{type:[String,Number]},name:{type:String,default:function(){return"bk-checkbox_".concat(nt++)}},disabled:Boolean,indeterminate:Boolean,extCls:{type:String,default:""},beforeChange:Function},data:function(){return{parent:null,localValue:void 0}},computed:{selected:function(){return this.localValue===this.localTrueValue},parentValue:function(){return this.parent?this.parent.localValue:null},localTrueValue:function(){return this.parent?void 0===this.label&&void 0===this.value?this.trueValue:void 0!==this.value?this.value:this.label:void 0===this.label?this.trueValue:this.label}},watch:{value:function(e){this.setLocalValue(e)},checked:function(){this.setLocalValue()},parentValue:function(){this.setLocalValue()}},created:function(){this.dispatch("bk-checkbox-group","checkbox-item-add",this),this.init()},methods:{getValue:function(){return this.selected?{isChecked:!0,value:this.localTrueValue}:{isChecked:!1,value:this.falseValue}},init:function(){for(var e=this.$parent;e&&!e.isCheckboxGroup&&"bk-checkbox-group"!==!e.$options.name;)e=e.$parent;this.parent=e,this.setLocalValue()},setLocalValue:function(e){if(void 0===e)if(this.parent){var t=this.localTrueValue,i=this.parent.localValue.includes(t);this.localValue=i?t:this.falseValue}else void 0!==this.checked?this.localValue=this.checked?this.localTrueValue:this.falseValue:void 0===this.value?this.localValue=this.falseValue:this.localValue=this.value;else this.localValue=e},handleClick:function(){var e=this;return a(tt.mark((function t(){var i,n,s;return tt.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.disabled){t.next=2;break}return t.abrupt("return",!1);case 2:if("function"!=typeof e.beforeChange){t.next=8;break}return t.next=5,e.beforeChange();case 5:if(!1!==t.sent){t.next=8;break}return t.abrupt("return");case 8:i=e.localValue,n=e.indeterminate?e.localTrueValue:i===e.localTrueValue?e.falseValue:e.localTrueValue,e.localValue=n,e.$emit("input",n,e.localTrueValue),e.$emit("change",n,i,e.localTrueValue),e.dispatch("bk-form-item","form-change"),e.parent&&(s=void 0===e.localTrueValue?n:e.localTrueValue,e.parent.handleChange(e.selected,s));case 15:case"end":return t.stop()}}),t)})))()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(at);var rt=Ne({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"bk-form-control",attrs:{name:this.name}},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"bk-checkbox-group",props:{value:{type:Array,default:function(){return[]}},name:{type:[String,Number],default:function(){return"bk-checkbox-group_".concat(st++)}}},data:function(){return{checkboxItems:[],isCheckboxGroup:!0,localValue:m(this.value)}},watch:{value:function(e){this.localValue=m(e)}},created:function(){var e=this;this.$on("checkbox-item-add",(function(t){return t&&e.checkboxItems.push(t),!1}))},methods:{handleChange:function(e,t){var i=m(this.localValue),n=[];this.checkboxItems.forEach((function(e){var t=e.getValue();t.isChecked&&n.push(t.value)})),this.localValue=n,this.$emit("input",this.localValue),this.$emit("change",this.localValue,i)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(rt);var ot=Array.isArray||function(e){return"Array"==G(e)};W(W.S,"Array",{isArray:ot});var lt=w.Array.isArray,ct=Ne({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"bk-collapse",class:this.extCls},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"bk-collapse",provide:function(){return{collapse:this}},props:{accordion:{type:Boolean,default:!1},value:{type:[Array,String]},extCls:{type:String,default:""}},data:function(){return{currentActive:[]}},watch:{value:{handler:function(e){lt(e)?this.currentActive=e.map((function(e){return"".concat(e)})):this.currentActive=void 0!==e?["".concat(e)]:[]},immediate:!0}},created:function(){var e=this;this.itemList=[],this.$on("inject",(function(t){e.itemList.push(t)})),this.$on("item-toggle",this.itemToggle)},methods:{itemToggle:function(e){if(this.accordion)this.currentActive=this.currentActive.length&&this.currentActive[0]===e.name?[]:[e.name];else{var t=this.currentActive.indexOf(e.name);t>-1?this.currentActive.splice(t,1):this.currentActive.push(e.name)}this.$emit("input",this.currentActive),this.$emit("item-click",this.currentActive)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(ct);var ut=Ne({render:function(){var e,t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"bk-collapse-item",class:(e={"bk-collapse-item-active":t.isActive,"is-disabled":t.disabled},e[t.extCls]=!0,e)},[t.customTriggerArea?n("div",{staticClass:"bk-collapse-item-header custom-trigger-layout"},[n("div",{staticClass:"trigger-area bk-collapse-item-hover cursor-pointer",on:{click:t.toggle}},[t._t("default")],2),n("div",{staticClass:"no-trigger-area"},[t._t("no-trigger")],2),n("span",{staticClass:"custom-trigger-angle",class:{"collapse-expand":t.isActive},on:{click:t.toggle}},[t.hideArrow?t._e():n("i",{staticClass:"bk-icon icon-angle-right"})])]):n("div",{staticClass:"bk-collapse-item-header bk-collapse-item-hover cursor-pointer",on:{click:t.toggle}},[n("span",{staticClass:"fr",class:{"collapse-expand":t.isActive}},[t.hideArrow?t._e():n("i",{staticClass:"bk-icon icon-angle-right"})]),t._t("icon"),t._t("default")],2),t.calcRender?[n("transition",{attrs:{name:"collapse"},on:{"before-enter":t.beforeEnter,enter:t.enter,"after-enter":t.afterEnter,"before-leave":t.beforeLeave,leave:t.leave,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive&&t.isShow,expression:"isActive && isShow"}],staticClass:"bk-collapse-item-content"},[n("div",{staticClass:"bk-collapse-item-detail"},[t._t("content")],2)])])]:t._e()],2)},staticRenderFns:[]},void 0,{name:"bk-collapse-item",inject:["collapse"],props:{customTriggerArea:{type:Boolean,default:!1},name:{type:String},hideArrow:{type:Boolean,default:!1},extCls:{type:String,default:""},contentHiddenType:{type:String,default:"none"},disabled:{type:Boolean,default:!1}},data:function(){return{index:0,isRender:!1,isShow:!1}},computed:{calcRender:function(){return"hidden"===this.contentHiddenType||this.isRender},isActive:function(){return this.collapse.currentActive.includes(this.name)}},watch:{isActive:{handler:function(e){var t=this;e&&(this.isRender||(this.isRender=!0,this.$nextTick((function(){t.isShow=!0}))))},immediate:!0}},created:function(){this.collapse.$emit("inject",this)},methods:{toggle:function(){this.disabled||this.collapse.$emit("item-toggle",this)},beforeEnter:function(e){this.$emit("before-enter"),Fe(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},enter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){Ge(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},leave:function(e){0!==e.scrollHeight&&(Fe(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave:function(e){this.$emit("after-leave"),Ge(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}}},void 0,!1,void 0,!1,void 0,void 0,void 0);De(ut);for(var dt="undefined"!=typeof window&&"undefined"!=typeof document,ht=["Edge","Trident","Firefox"],pt=0,ft=0;ft<ht.length;ft+=1)if(dt&&navigator.userAgent.indexOf(ht[ft])>=0){pt=1;break}var gt=dt&&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()}),pt))}};function mt(e){return e&&"[object Function]"==={}.toString.call(e)}function bt(e,t){if(1!==e.nodeType)return[];var i=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?i[t]:i}function vt(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function yt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=bt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/(auto|scroll|overlay)/.test(i+s+n)?e:yt(vt(e))}var Ct=dt&&!(!window.MSInputMethodContext||!document.documentMode),kt=dt&&/MSIE 10/.test(navigator.userAgent);function It(e){return 11===e?Ct:10===e?kt:Ct||kt}function wt(e){if(!e)return document.documentElement;for(var t=It(10)?document.body:null,i=e.offsetParent||null;i===t&&e.nextElementSibling;)i=(e=e.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===bt(i,"position")?wt(i):i:e?e.ownerDocument.documentElement:document.documentElement}function Mt(e){return null!==e.parentNode?Mt(e.parentNode):e}function Nt(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var i=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?e:t,s=i?t:e,a=document.createRange();a.setStart(n,0),a.setEnd(s,0);var r,o,l=a.commonAncestorContainer;if(e!==l&&t!==l||n.contains(s))return"BODY"===(o=(r=l).nodeName)||"HTML"!==o&&wt(r.firstElementChild)!==r?wt(l):l;var c=Mt(e);return c.host?Nt(c.host,t):Nt(e,Mt(t).host)}function xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===t?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var s=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||s;return a[i]}return e[i]}function Lt(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=xt(t,"top"),s=xt(t,"left"),a=i?-1:1;return e.top+=n*a,e.bottom+=n*a,e.left+=s*a,e.right+=s*a,e}function St(e,t){var i="x"===t?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(e["border"+i+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function Tt(e,t,i,n){return Math.max(t["offset"+e],t["scroll"+e],i["client"+e],i["offset"+e],i["scroll"+e],It(10)?parseInt(i["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function Dt(e){var t=e.body,i=e.documentElement,n=It(10)&&getComputedStyle(i);return{height:Tt("Height",t,i,n),width:Tt("Width",t,i,n)}}var jt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Et=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),zt=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function Ot(e){return At({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _t(e){var t={};try{if(It(10)){t=e.getBoundingClientRect();var i=xt(e,"top"),n=xt(e,"left");t.top+=i,t.left+=n,t.bottom+=i,t.right+=n}else t=e.getBoundingClientRect()}catch(e){}var s={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Dt(e.ownerDocument):{},r=a.width||e.clientWidth||s.right-s.left,o=a.height||e.clientHeight||s.bottom-s.top,l=e.offsetWidth-r,c=e.offsetHeight-o;if(l||c){var u=bt(e);l-=St(u,"x"),c-=St(u,"y"),s.width-=l,s.height-=c}return Ot(s)}function Pt(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=It(10),s="HTML"===t.nodeName,a=_t(e),r=_t(t),o=yt(e),l=bt(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);i&&s&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var d=Ot({top:a.top-r.top-c,left:a.left-r.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!n&&s){var h=parseFloat(l.marginTop,10),p=parseFloat(l.marginLeft,10);d.top-=c-h,d.bottom-=c-h,d.left-=u-p,d.right-=u-p,d.marginTop=h,d.marginLeft=p}return(n&&!i?t.contains(o):t===o&&"BODY"!==o.nodeName)&&(d=Lt(d,t)),d}function Qt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.ownerDocument.documentElement,n=Pt(e,i),s=Math.max(i.clientWidth,window.innerWidth||0),a=Math.max(i.clientHeight,window.innerHeight||0),r=t?0:xt(i),o=t?0:xt(i,"left"),l={top:r-n.top+n.marginTop,left:o-n.left+n.marginLeft,width:s,height:a};return Ot(l)}function Jt(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===bt(e,"position"))return!0;var i=vt(e);return!!i&&Jt(i)}function Ht(e){if(!e||!e.parentElement||It())return document.documentElement;for(var t=e.parentElement;t&&"none"===bt(t,"transform");)t=t.parentElement;return t||document.documentElement}function Rt(e,t,i,n){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},r=s?Ht(e):Nt(e,t);if("viewport"===n)a=Qt(r,s);else{var o=void 0;"scrollParent"===n?"BODY"===(o=yt(vt(t))).nodeName&&(o=e.ownerDocument.documentElement):o="window"===n?e.ownerDocument.documentElement:n;var l=Pt(o,r,s);if("HTML"!==o.nodeName||Jt(r))a=l;else{var c=Dt(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.r