bkui-vue 0.0.1-beta.112 → 0.0.1-beta.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("@popperjs/core"));else if("function"==typeof define&&define.amd)define(["../shared","@popperjs/core"],n);else{var t="object"==typeof exports?n(require("../shared"),require("@popperjs/core")):n(e["../shared"],e["@popperjs/core"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,n)=>(()=>{var t={1147:(e,n,t)=>{"use strict";var r=t(9601),o=t.n(r),i=t(2609);t.n(i)()(o()).push([e.id,".bk-popper {\n display: none;\n padding: 7px 14px;\n font-size: 12px;\n color: #fff;\n background: #333;\n border-radius: 4px;\n}\n.bk-popper.light {\n color: #63656e;\n background: #fff;\n box-shadow: #dcdee5 0px 0px 6px 0px;\n}\n.bk-popper .bk-popper-arrow,\n.bk-popper .bk-popper-arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n}\n.bk-popper .bk-popper-arrow {\n visibility: hidden;\n}\n.bk-popper .bk-popper-arrow::before {\n content: '';\n visibility: visible;\n transform: rotate(45deg);\n}\n.bk-popper[data-show] {\n display: block;\n}\n.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {\n bottom: -4px;\n}\n.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {\n top: -4px;\n}\n.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {\n right: -4px;\n}\n.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {\n left: -4px;\n}\n",""])},2609:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var u=0;u<this.length;u++){var c=this[u][0];null!=c&&(a[c]=!0)}for(var p=0;p<e.length;p++){var s=[].concat(e[p]);r&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),t&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=t):s[2]=t),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),n.push(s))}},n}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},2439:(e,n,t)=>{e.exports=t(2527)},7430:e=>{"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),t={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=t},6377:e=>{var n,t,r,o,i,a,u,c,p,s,d,l,f,m,v,b=!1;function h(){if(!b){b=!0;var e=navigator.userAgent,h=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(l=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),s=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),d=!!/Win64/.exec(e),h){(n=h[1]?parseFloat(h[1]):h[5]?parseFloat(h[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);a=w?parseFloat(w[1])+4:n,t=h[2]?parseFloat(h[2]):NaN,r=h[3]?parseFloat(h[3]):NaN,(o=h[4]?parseFloat(h[4]):NaN)?(h=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=h&&h[1]?parseFloat(h[1]):NaN):i=NaN}else n=t=r=i=o=NaN;if(y){if(y[1]){var g=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);u=!g||parseFloat(g[1].replace("_","."))}else u=!1;c=!!y[2],p=!!y[3]}else u=c=p=!1}}var y={ie:function(){return h()||n},ieCompatibilityMode:function(){return h()||a>n},ie64:function(){return y.ie()&&d},firefox:function(){return h()||t},opera:function(){return h()||r},webkit:function(){return h()||o},safari:function(){return y.webkit()},chrome:function(){return h()||i},windows:function(){return h()||c},osx:function(){return h()||u},linux:function(){return h()||p},iphone:function(){return h()||l},mobile:function(){return h()||l||f||s||v},nativeApp:function(){return h()||m},android:function(){return h()||s},ipad:function(){return h()||f}};e.exports=y},3541:(e,n,t)=>{"use strict";var r,o=t(7430);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,n){if(!o.canUseDOM||n&&!("addEventListener"in document))return!1;var t="on"+e,i=t in document;if(!i){var a=document.createElement("div");a.setAttribute(t,"return;"),i="function"==typeof a[t]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},2527:(e,n,t)=>{"use strict";var r=t(6377),o=t(3541);function i(e){var n=0,t=0,r=0,o=0;return"detail"in e&&(t=e.detail),"wheelDelta"in e&&(t=-e.wheelDelta/120),"wheelDeltaY"in e&&(t=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=t,t=0),r=10*n,o=10*t,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!n&&(n=r<1?-1:1),o&&!t&&(t=o<1?-1:1),{spinX:n,spinY:t,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},4212:n=>{"use strict";n.exports=e},5798:e=>{"use strict";e.exports=n}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={id:e,exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{bkTooltips:()=>h,clickoutside:()=>d,mousewheel:()=>r});var e=o(2439),n=o.n(e),t="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;const r={beforeMount:function(e,r){var o,i;console.error(e,r),o=e,i=r.value,(null==o?void 0:o.addEventListener)&&o.addEventListener(t?"DOMMouseScroll":"mousewheel",(function(e){var t=n()(e);null==i||i.apply(this,[e,t])}))}};function a(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var c,p=new Map;function s(e,n){var t,r=[];return Array.isArray(n.arg)?r=n.arg:(t=n.arg,"undefined"!=typeof Element&&t instanceof Element&&r.push(n.arg)),function(t,o){var i=n.instance.popperRef,a=t.target,u=null==o?void 0:o.target,c=!n||!n.instance,p=!a||!u,s=e.contains(a)||e.contains(u),d=e===a,l=r.length&&r.some((function(e){return null==e?void 0:e.contains(a)}))||r.length&&r.includes(u),f=i&&(i.contains(a)||i.contains(u));c||p||s||d||l||f||n.value(t,o)}}document.addEventListener("mousedown",(function(e){return c=e})),document.addEventListener("mouseup",(function(e){var n,t=a(p.values());try{for(t.s();!(n=t.n()).done;){var r,o=a(n.value);try{for(o.s();!(r=o.n()).done;)(0,r.value.documentHandler)(e,c)}catch(e){o.e(e)}finally{o.f()}}}catch(e){t.e(e)}finally{t.f()}}));const d={beforeMount:function(e,n){p.has(e)||p.set(e,[]),p.get(e).push({documentHandler:s(e,n),bindingFn:n.value})},updated:function(e,n){p.has(e)||p.set(e,[]);var t=p.get(e),r=t.findIndex((function(e){return e.bindingFn===n.oldValue})),o={documentHandler:s(e,n),bindingFn:n.value};r>=0?t.splice(r,1,o):t.push(o)},unmounted:function(e){p.delete(e)}};function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,n):void 0}}(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 m(e){return m="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},m(e)}var v=o(4212),b=o(5798);const h=(o(1147),{mounted:function(e,n){var t={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===m(n.value)?Object.assign(t,n.value):t.content=n.value;var r=t.disabled,o=t.arrow,i=t.theme;if(!r){var a=function(e,n,t){var r=v.bkZIndexManager.getPopperIndex(),o=document.createElement("div");if(o.className="bk-popper ".concat(t?"light":"dark"),o.innerText=e,o.style.zIndex=String(r),n){var i=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();o.appendChild(i)}return document.body.appendChild(o),o}(t.content,o,"light"===i);!function(e,n,t){var r=t.placement,o=t.distance,i=t.trigger,a=t.showOnInit,u=t.onShow,c=t.onHide,p=(0,b.createPopper)(e,n,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){var s=null;e.addEventListener("mouseenter",(function(){d(),clearTimeout(s)})),n.addEventListener("mouseenter",(function(){clearTimeout(s)})),e.addEventListener("mouseleave",(function(){s=setTimeout(l,100)})),n.addEventListener("mouseleave",(function(){s=setTimeout(l,100)}))}else"click"===i&&document.body.addEventListener("click",(function(t){e.contains(t.target)&&!n.hasAttribute("data-show")?d():n.hasAttribute("data-show")&&l()}));function d(){n.setAttribute("data-show",""),u(),p.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(f(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),p.update()}function l(){n.removeAttribute("data-show"),c(),p.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(f(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}a&&d()}(e,a,t)}}})})(),i})()));
2
+ !function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("@popperjs/core"));else if("function"==typeof define&&define.amd)define(["../shared","@popperjs/core"],n);else{var t="object"==typeof exports?n(require("../shared"),require("@popperjs/core")):n(e["../shared"],e["@popperjs/core"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,n)=>(()=>{var t={1147:(e,n,t)=>{"use strict";var r=t(9601),o=t.n(r),i=t(2609);t.n(i)()(o()).push([e.id,".bk-popper {\n display: none;\n padding: 7px 14px;\n font-size: 12px;\n color: #fff;\n background: #333;\n border-radius: 4px;\n}\n.bk-popper.light {\n color: #63656e;\n background: #fff;\n box-shadow: #dcdee5 0px 0px 6px 0px;\n}\n.bk-popper .bk-popper-arrow,\n.bk-popper .bk-popper-arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n}\n.bk-popper .bk-popper-arrow {\n visibility: hidden;\n}\n.bk-popper .bk-popper-arrow::before {\n content: '';\n visibility: visible;\n transform: rotate(45deg);\n}\n.bk-popper[data-show] {\n display: block;\n}\n.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {\n bottom: -4px;\n}\n.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {\n top: -4px;\n}\n.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {\n right: -4px;\n}\n.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {\n left: -4px;\n}\n",""])},2609:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var u=0;u<this.length;u++){var c=this[u][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var p=[].concat(e[s]);r&&a[p[0]]||(void 0!==i&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),t&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=t):p[2]=t),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),n.push(p))}},n}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},2439:(e,n,t)=>{e.exports=t(2527)},7430:e=>{"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),t={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=t},6377:e=>{var n,t,r,o,i,a,u,c,s,p,d,l,f,m,v,b=!1;function h(){if(!b){b=!0;var e=navigator.userAgent,h=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(l=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),p=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),d=!!/Win64/.exec(e),h){(n=h[1]?parseFloat(h[1]):h[5]?parseFloat(h[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);a=w?parseFloat(w[1])+4:n,t=h[2]?parseFloat(h[2]):NaN,r=h[3]?parseFloat(h[3]):NaN,(o=h[4]?parseFloat(h[4]):NaN)?(h=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=h&&h[1]?parseFloat(h[1]):NaN):i=NaN}else n=t=r=i=o=NaN;if(y){if(y[1]){var g=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);u=!g||parseFloat(g[1].replace("_","."))}else u=!1;c=!!y[2],s=!!y[3]}else u=c=s=!1}}var y={ie:function(){return h()||n},ieCompatibilityMode:function(){return h()||a>n},ie64:function(){return y.ie()&&d},firefox:function(){return h()||t},opera:function(){return h()||r},webkit:function(){return h()||o},safari:function(){return y.webkit()},chrome:function(){return h()||i},windows:function(){return h()||c},osx:function(){return h()||u},linux:function(){return h()||s},iphone:function(){return h()||l},mobile:function(){return h()||l||f||p||v},nativeApp:function(){return h()||m},android:function(){return h()||p},ipad:function(){return h()||f}};e.exports=y},3541:(e,n,t)=>{"use strict";var r,o=t(7430);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,n){if(!o.canUseDOM||n&&!("addEventListener"in document))return!1;var t="on"+e,i=t in document;if(!i){var a=document.createElement("div");a.setAttribute(t,"return;"),i="function"==typeof a[t]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},2527:(e,n,t)=>{"use strict";var r=t(6377),o=t(3541);function i(e){var n=0,t=0,r=0,o=0;return"detail"in e&&(t=e.detail),"wheelDelta"in e&&(t=-e.wheelDelta/120),"wheelDeltaY"in e&&(t=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=t,t=0),r=10*n,o=10*t,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!n&&(n=r<1?-1:1),o&&!t&&(t=o<1?-1:1),{spinX:n,spinY:t,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},4212:n=>{"use strict";n.exports=e},5798:e=>{"use strict";e.exports=n}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={id:e,exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i),o.d(i,{bkTooltips:()=>h,clickoutside:()=>d,mousewheel:()=>r});var e=o(2439),n=o.n(e),t="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;const r={beforeMount:function(e,r){var o,i;console.error(e,r),o=e,i=r.value,(null==o?void 0:o.addEventListener)&&o.addEventListener(t?"DOMMouseScroll":"mousewheel",(function(e){var t=n()(e);null==i||i.apply(this,[e,t])}))}};function a(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw i}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var c,s=new Map;function p(e,n){var t,r=[];return Array.isArray(n.arg)?r=n.arg:(t=n.arg,"undefined"!=typeof Element&&t instanceof Element&&r.push(n.arg)),function(t,o){var i=n.instance.popperRef,a=t.target,u=null==o?void 0:o.target,c=!n||!n.instance,s=!a||!u,p=e.contains(a)||e.contains(u),d=e===a,l=r.length&&r.some((function(e){return null==e?void 0:e.contains(a)}))||r.length&&r.includes(u),f=i&&(i.contains(a)||i.contains(u));c||s||p||d||l||f||n.value(t,o)}}document.addEventListener("mousedown",(function(e){return c=e})),document.addEventListener("mouseup",(function(e){var n,t=a(s.values());try{for(t.s();!(n=t.n()).done;){var r,o=a(n.value);try{for(o.s();!(r=o.n()).done;)(0,r.value.documentHandler)(e,c)}catch(e){o.e(e)}finally{o.f()}}}catch(e){t.e(e)}finally{t.f()}}));const d={beforeMount:function(e,n){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:p(e,n),bindingFn:n.value})},updated:function(e,n){s.has(e)||s.set(e,[]);var t=s.get(e),r=t.findIndex((function(e){return e.bindingFn===n.oldValue})),o={documentHandler:p(e,n),bindingFn:n.value};r>=0?t.splice(r,1,o):t.push(o)},unmounted:function(e){s.delete(e)}};function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,n):void 0}}(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 m(e){return m="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},m(e)}var v=o(4212),b=o(5798);const h=(o(1147),{mounted:function(e,n){var t={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===m(n.value)?Object.assign(t,n.value):t.content=n.value;var r=t.disabled,o=t.arrow,i=t.theme;if(!r){var a=function(e,n,t){var r=v.bkZIndexManager.getPopperIndex(),o=document.createElement("div");if(o.className="bk-popper ".concat(t?"light":"dark"),o.innerText=e,o.style.zIndex=String(r),n){var i=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();o.appendChild(i)}return document.body.appendChild(o),o}(t.content,o,"light"===i);!function(e,n,t){var r=t.placement,o=t.distance,i=t.trigger,a=t.showOnInit,u=t.onShow,c=t.onHide,s=(0,b.createPopper)(e,n,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){var p=null;e.addEventListener("mouseenter",(function(){d(),clearTimeout(p)})),n.addEventListener("mouseenter",(function(){clearTimeout(p)})),e.addEventListener("mouseleave",(function(){p=setTimeout(l,100)})),e.addEventListener("click",(function(){l()})),n.addEventListener("mouseleave",(function(){p=setTimeout(l,100)}))}else"click"===i&&document.body.addEventListener("click",(function(t){e.contains(t.target)&&!n.hasAttribute("data-show")?d():n.hasAttribute("data-show")&&l()}));function d(){n.setAttribute("data-show",""),u(),s.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(f(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),s.update()}function l(){n.removeAttribute("data-show"),c(),s.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(f(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}a&&d()}(e,a,t)}}})})(),i})()));
@@ -222,8 +222,6 @@ declare const BkPopover2: {
222
222
  content: string | number;
223
223
  theme: string;
224
224
  transBoundary: import("vue").ComputedRef<boolean>;
225
- width: string | number;
226
- height: string | number;
227
225
  handleClickOutside: (_e: MouseEvent) => void;
228
226
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
229
227
  show: (..._args: any[]) => boolean;
@@ -366,8 +364,6 @@ declare const BkPopover2: {
366
364
  content: string | number;
367
365
  theme: string;
368
366
  transBoundary: import("vue").ComputedRef<boolean>;
369
- width: string | number;
370
- height: string | number;
371
367
  handleClickOutside: (_e: MouseEvent) => void;
372
368
  }> & {} & {} & import("vue").ComponentCustomProperties;
373
369
  __isFragment?: never;
@@ -471,8 +467,6 @@ declare const BkPopover2: {
471
467
  content: string | number;
472
468
  theme: string;
473
469
  transBoundary: import("vue").ComputedRef<boolean>;
474
- width: string | number;
475
- height: string | number;
476
470
  handleClickOutside: (_e: MouseEvent) => void;
477
471
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
478
472
  show: (..._args: any[]) => boolean;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:c+1,h=m-a+(v-c)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||m>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,c=v,r=d;var g=(1e4*(268435455&(m+=122192928e5))+v)%4294967296;u[s++]=g>>>24&255,u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&g;var y=m/4294967296*1e4&268435455;u[s++]=y>>>8&255,u[s++]=255&y,u[s++]=y>>>24&15|16,u[s++]=y>>>16&255,u[s++]=d>>>8|128,u[s++]=255&d;for(var w=0;w<6;++w)u[s+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>xe});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||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.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,u,f=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(u||(u={}));var d=(c(s={},u.SHOW,f),c(s,u.HIDE,f),c(s,u.CLICK_OUTSIDE,f),s);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,c=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var m={onAfterHidden:Function,onAfterShow:Function},v=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1)},m);const h=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),g=(0,o.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,t;return(0,o.createVNode)(o.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function y(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function b(e){return["top","bottom"].includes(y(e))?"x":"y"}function x(e){return"y"===e?"height":"width"}function T(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=b(t),c=x(a),s=o[c]/2-r[c]/2,u="x"===a;let f;switch(y(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(w(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function E(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,m=P(p),v=a[d?"floating"===f?"reference":"floating":f],h=R(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[f]);return{top:h.top-g.top+m.top,bottom:g.bottom-h.bottom+m.bottom,left:h.left-g.left+m.left,right:g.right-h.right+m.right}}const C=Math.min,A=Math.max;function O(e,t,n){return A(e,C(t,n))}const S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=w(e),r=b(e),i=x(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const N={start:"end",end:"start"};function k(e){return e.replace(/start|end/g,(e=>N[e]))}const I=["top","right","bottom","left"],V=I.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function D(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return I.some((t=>e[t]>=0))}const $=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=y(n),a=w(n),c="x"===b(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},u=await E(t,c),f=b(y(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=s[f],m=s[d];if(i){const e="y"===f?"bottom":"right";p=O(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";m=O(m+u["y"===d?"top":"left"],m,m-u[e])}const v=a.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-o}}}}};function W(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function q(e){if(null==e)return window;if(!W(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function F(e){return q(e).getComputedStyle(e)}function z(e){return W(e)?"":e?(e.nodeName||"").toLowerCase():""}function B(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function _(e){return e instanceof q(e).HTMLElement}function U(e){return e instanceof q(e).Element}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof q(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=F(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(z(e))}function Z(e){const t=/firefox/i.test(B()),n=F(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(B())}const J=Math.min,Q=Math.max,ee=Math.round;function te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&_(e)&&(c=e.offsetWidth>0&&ee(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ee(a.height)/e.offsetHeight||1);const u=U(e)?q(e):window,f=!G()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/s,m=a.width/c,v=a.height/s;return{width:m,height:v,top:p,right:d+m,bottom:p+v,left:d,x:d,y:p}}function ne(e){return(t=e,(t instanceof q(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function oe(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return te(ne(e)).left+oe(e).scrollLeft}function ie(e,t,n){const o=_(t),r=ne(t),i=te(e,o&&function(e){const t=te(e);return ee(t.width)!==e.offsetWidth||ee(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==z(t)||X(r))&&(l=oe(t)),_(t)){const e=te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function le(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ne(e)}function ae(e){return _(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ce(e){const t=q(e);let n=ae(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=ae(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=le(e);for(K(t)&&(t=t.host);_(t)&&!["html","body"].includes(z(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function se(e){if(_(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=te(e);return{width:t.width,height:t.height}}function ue(e){const t=le(e);return["html","body","#document"].includes(z(t))?e.ownerDocument.body:_(t)&&X(t)?t:ue(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ue(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=q(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function de(e,t,n){return"viewport"===t?R(function(e,t){const n=q(e),o=ne(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):U(t)?function(e,t){const n=te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):R(function(e){var t;const n=ne(e),o=oe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+re(e);const c=-o.scrollTop;return"rtl"===F(r||n).direction&&(a+=Q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(ne(e)))}function pe(e){const t=fe(e),n=["absolute","fixed"].includes(F(e).position)&&_(e)?ce(e):e;return U(n)?t.filter((e=>U(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&K(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==z(e))):[]}const me={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?pe(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=Q(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=Q(o.left,e.left),e}),de(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=_(n),i=ne(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==z(n)||X(i))&&(l=oe(n)),_(n))){const e=te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:U,getDimensions:se,getOffsetParent:ce,getDocumentElement:ne,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ie(t,ce(n),o),floating:{...se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===F(e).direction},ve=function(t,n,r,i,l,a){var s=(0,o.ref)(!1),u=function(){var e,t,n=v(null===(e=r.value)||void 0===e?void 0:e.$el);return null===(t=document.fullscreenElement)||void 0===t?void 0:t.contains(n)},f=["dark","light"],d=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(f.includes(t))-Number(f.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!f.includes(e)}))}})),p=function(){return!u()&&t.autoVisibility},m=function(){var e,n,o,c;return{elReference:v(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:v(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?v(null===(o=l.value)||void 0===o?void 0:o.$el):null,root:v(null===(c=a.value)||void 0===c?void 0:c.$el)}},v=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},h=d.value.customThemes.join(" "),g=d.value.customThemes.reduce((function(e,t){return Object.assign(c({},"data-".concat(t,"-theme"),!0),e)}),{}),S="".concat(h),N=null,I=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},W=function(){var e=m(),n=e.elReference,o=e.elContent,r=e.elArrow,i=function(e){var n=[$(t.offset),M({padding:t.padding})],o={placement:t.placement,middleware:n};return t.arrow&&n.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=P(o),u={x:r,y:i},f=b(l),d=w(l),p=x(f),m=await c.getDimensions(n),v="y"===f?"top":"left",h="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],y=u[f]-a.reference[f],T=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let R=T?"y"===f?T.clientHeight||0:T.clientWidth||0:0;0===R&&(R=a.floating[p]);const E=g/2-y/2,C=s[v],A=R-m[p]-s[h],S=R/2-m[p]/2+E,L=O(C,S,A),H=("start"===d?s[v]:s[h])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(H?S<C?C-S:A-S:0),data:{[f]:L,centerOffset:S-L}}}}))({element:e})),u()||t.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:v=V,autoAlignment:h=!0,...g}=e,b=function(e,t,n){return(e?[...n.filter((t=>w(t)===e)),...n.filter((t=>w(t)!==e))]:n.filter((e=>y(e)===e))).filter((n=>!e||w(n)===e||!!t&&k(n)!==n))}(m,h,v),x=await E(t,g),T=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:R,cross:C}=H(P,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==P)return{x:a,y:c,reset:{placement:b[0]}};const A=[x[y(P)],x[R],x[C]],O=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:O},reset:{placement:S}};const L=O.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),N=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,I=null!=N?N:L[0].placement;return I!==f?{data:{index:T+1,overflows:O},reset:{placement:I}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:u}=e,f=R(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=P(c),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=u)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===b(o)){const e=d[0],t=d[d.length-1],n="top"===y(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===y(o),t=A(...d.map((e=>e.right))),n=C(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,v=y(o),h=f||(v!==l&&p?function(e){const t=L(e);return[k(e),t,k(t)]}(l):[L(l)]),g=[l,...h],w=await E(t,m),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&b.push(w[v]),u){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=g[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),p()&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=D(await E(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=D(await E(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}}()),o}(r);((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:u}=T(c,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:v,y:h,data:g,reset:y}=await m({x:s,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=v?v:s,u=null!=h?h:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:u}=T(c,f,a))),n=-1)}return{x:s,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:me,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(S,"")," ").concat(S).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(g).forEach((function(e){o.setAttribute(e,g[e])}));var u=l.split("-")[0],f=u;["left","right","top","bottom"].includes(u)||(f="top"),function(e,t,n,o){var r;Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(I(t),"px,").concat(I(n),"px,0)")});var i=!!p()&&(null===(r=o.hide)||void 0===r?void 0:r.referenceHidden);Object.assign(e.style,{visibility:i?"hidden":"visible"})}(o,n,i,a),function(e,n,o){if(t.arrow){var r=o.arrow,i=r.x,l=r.y;e.setAttribute("data-arrow",n),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var a={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(e.style,c({left:null!==i?"".concat(i,"px"):"",top:null!==l?"".concat(l,"px"):""},a,"-4px"))}}(r,f,a)}))},q=function(){s.value=!0},F=function(){s.value=!1},z=function(){s.value?F():q()},B=function(){z()};return(0,o.watch)(s,(function(o){var r,l;o?((l=v(null===(r=i.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),W(),n.emit("afterShow",{isSHow:!0})):function(){var e;v(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("afterHidden",{isSHow:!1})}()})),{showPopover:q,hidePopover:F,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",q],["mouseleave",F],["focus",q],["blur",F]],click:[["click",B]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:W,triggerPopover:z,resolvePopElements:m,isElementFullScreen:u,resolveTargetElement:v,createPopInstance:function(){var e=m(),t=e.elReference,n=e.elContent;N=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,u=c||s?[...U(e)?fe(e):[],...fe(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),U(e)&&!a&&d.observe(e),d.observe(t));let p=a?te(e):null;return a&&function t(){const o=te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){W()}))},localIsShow:s,cleanup:N}};var he=i(8022),ge=null,ye=null,we=null;const be=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a,Root:g},directives:{clickoutside:r.clickoutside},props:v,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.width,a=e.height,c=e.disableTeleport,s=(0,o.ref)(),f=(0,o.ref)(),d=(0,o.ref)(),p=(0,o.ref)(),m=(0,o.ref)(!1),v=null,h=ve(e,t,s,f,d,p),g=h.localIsShow,y=h.showPopover,w=h.hidePopover,b=h.resolveTriggerEvents,x=h.updatePopover,T=h.resolvePopElements,P=h.isElementFullScreen,R=h.cleanup,E=h.createPopInstance,C=function(){w()},A=function(){E(),e.always?y():O()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?y():w()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?A():I()}));var O=function(){var e=T().elReference;(v=b()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},S=function(){var e=T(),t=e.elReference,n=e.root;k.value=H(m.value,n||t)},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=null,l=function(e){null===i&&e()},a=function(){n&&(i="[data-fllsrn-id=".concat(ye,"]"))},c=function(){/^body$/i.test(e.boundary)||"string"!=typeof e.boundary||(o(e.boundary)||console.error("props.boundary is not available selector"),i=e.boundary)};return l((function(){if(/^parent$/i.test(e.boundary)){i="".concat(t).concat(ge);var n=(r||{}).parentNode;(null==n?void 0:n.parentNode)&&(n.parentNode.setAttribute("data-pnode-id",we),i="[data-pnode-id=".concat(we,"]"))}})),l(c),l(a),l((function(){i="string"==typeof e.boundary?e.boundary:"".concat(t).concat(ge)})),i},o=function(e){return document.querySelector(e)instanceof HTMLElement};if(null===ge||!o("#".concat(ge))){ge="id_".concat((0,he.v4)());var r=document.createElement("div");r.setAttribute("id",ge),r.setAttribute("data-popper-id",ge),document.body.append(r)}null===ye&&(ye="id_".concat((0,he.v4)())),null===we&&(we="id_".concat((0,he.v4)()));var i=function(){var e;if(null===document.fullscreenElement){var t="[data-fllsrn-id=".concat(ye,"]");(null!==(e=document.querySelectorAll(t))&&void 0!==e?e:[]).forEach((function(e){e.removeAttribute("data-fllsrn-id")}))}else document.fullscreenElement.setAttribute("data-fllsrn-id",ye)};return{popContainerId:ge,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:i}}(e,"#"),H=L.getPrefixId,N=L.resetFullscreenElementTag,k=(0,o.ref)();S();var I=function(){"function"==typeof R&&R(),function(){if(null==v?void 0:v.length){var e=T().elReference;e&&v.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),v=null}}()},V=function(){m.value=P(),N(),S(),x()};(0,o.onMounted)((function(){e.disabled||(A(),S(),document.body.addEventListener("fullscreenchange",V))})),(0,o.onUnmounted)((function(){I(),document.body.removeEventListener("fullscreenchange",V)})),t.expose({show:function(){y()},hide:C});var D=(0,o.computed)((function(){return(m.value||!c)&&"string"==typeof k.value}));return{boundary:k,arrow:e.arrow,refReference:s,refContent:f,refArrow:d,content:r,theme:i,transBoundary:D,width:l,height:a,handleClickOutside:function(n){t.emit(u.CLICK_OUTSIDE,{isShow:g.value}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||g.value&&C()}}},render:function(){var e,t,n,r,i,l,c=this;return(0,o.createVNode)(g,{ref:"refRoot"},{default:function(){return[(0,o.createVNode)(h,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:c.boundary,disabled:!c.transBoundary},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(l=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),c.handleClickOutside]])]}})]}})}}),xe=(0,e.withInstall)(be)})(),l})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,h=v-a+(m-c)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||v>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,c=m,r=d;var g=(1e4*(268435455&(v+=122192928e5))+m)%4294967296;u[s++]=g>>>24&255,u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&g;var y=v/4294967296*1e4&268435455;u[s++]=y>>>8&255,u[s++]=255&y,u[s++]=y>>>24&15|16,u[s++]=y>>>16&255,u[s++]=d>>>8|128,u[s++]=255&d;for(var w=0;w<6;++w)u[s+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>xe});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||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.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,u,f=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(u||(u={}));var d=(c(s={},u.SHOW,f),c(s,u.HIDE,f),c(s,u.CLICK_OUTSIDE,f),s);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,c=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var v={onAfterHidden:Function,onAfterShow:Function},m=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1)},v);const h=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),g=(0,o.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,t;return(0,o.createVNode)(o.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function y(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function b(e){return["top","bottom"].includes(y(e))?"x":"y"}function x(e){return"y"===e?"height":"width"}function T(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=b(t),c=x(a),s=o[c]/2-r[c]/2,u="x"===a;let f;switch(y(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(w(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function E(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,v=P(p),m=a[d?"floating"===f?"reference":"floating":f],h=R(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[f]);return{top:h.top-g.top+v.top,bottom:g.bottom-h.bottom+v.bottom,left:h.left-g.left+v.left,right:g.right-h.right+v.right}}const C=Math.min,A=Math.max;function O(e,t,n){return A(e,C(t,n))}const S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=w(e),r=b(e),i=x(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const N={start:"end",end:"start"};function k(e){return e.replace(/start|end/g,(e=>N[e]))}const I=["top","right","bottom","left"],V=I.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function D(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return I.some((t=>e[t]>=0))}const $=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=y(n),a=w(n),c="x"===b(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},u=await E(t,c),f=b(y(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=s[f],v=s[d];if(i){const e="y"===f?"bottom":"right";p=O(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";v=O(v+u["y"===d?"top":"left"],v,v-u[e])}const m=a.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-n,y:m.y-o}}}}};function W(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function q(e){if(null==e)return window;if(!W(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function F(e){return q(e).getComputedStyle(e)}function z(e){return W(e)?"":e?(e.nodeName||"").toLowerCase():""}function B(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function _(e){return e instanceof q(e).HTMLElement}function U(e){return e instanceof q(e).Element}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof q(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=F(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(z(e))}function Z(e){const t=/firefox/i.test(B()),n=F(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(B())}const J=Math.min,Q=Math.max,ee=Math.round;function te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&_(e)&&(c=e.offsetWidth>0&&ee(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ee(a.height)/e.offsetHeight||1);const u=U(e)?q(e):window,f=!G()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/s,v=a.width/c,m=a.height/s;return{width:v,height:m,top:p,right:d+v,bottom:p+m,left:d,x:d,y:p}}function ne(e){return(t=e,(t instanceof q(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function oe(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return te(ne(e)).left+oe(e).scrollLeft}function ie(e,t,n){const o=_(t),r=ne(t),i=te(e,o&&function(e){const t=te(e);return ee(t.width)!==e.offsetWidth||ee(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==z(t)||X(r))&&(l=oe(t)),_(t)){const e=te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function le(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ne(e)}function ae(e){return _(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ce(e){const t=q(e);let n=ae(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=ae(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=le(e);for(K(t)&&(t=t.host);_(t)&&!["html","body"].includes(z(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function se(e){if(_(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=te(e);return{width:t.width,height:t.height}}function ue(e){const t=le(e);return["html","body","#document"].includes(z(t))?e.ownerDocument.body:_(t)&&X(t)?t:ue(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ue(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=q(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function de(e,t,n){return"viewport"===t?R(function(e,t){const n=q(e),o=ne(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):U(t)?function(e,t){const n=te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):R(function(e){var t;const n=ne(e),o=oe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+re(e);const c=-o.scrollTop;return"rtl"===F(r||n).direction&&(a+=Q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(ne(e)))}function pe(e){const t=fe(e),n=["absolute","fixed"].includes(F(e).position)&&_(e)?ce(e):e;return U(n)?t.filter((e=>U(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&K(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==z(e))):[]}const ve={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?pe(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=Q(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=Q(o.left,e.left),e}),de(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=_(n),i=ne(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==z(n)||X(i))&&(l=oe(n)),_(n))){const e=te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:U,getDimensions:se,getOffsetParent:ce,getDocumentElement:ne,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ie(t,ce(n),o),floating:{...se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===F(e).direction},me=function(t,n,r,i,l,a){var s=(0,o.ref)(!1),u=function(){var e,t,n=m(null===(e=r.value)||void 0===e?void 0:e.$el);return null===(t=document.fullscreenElement)||void 0===t?void 0:t.contains(n)},f=["dark","light"],d=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(f.includes(t))-Number(f.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!f.includes(e)}))}})),p=function(){return!u()&&t.autoVisibility},v=function(){var e,n,o,c;return{elReference:m(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:m(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?m(null===(o=l.value)||void 0===o?void 0:o.$el):null,root:m(null===(c=a.value)||void 0===c?void 0:c.$el)}},m=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},h=d.value.customThemes.join(" "),g=d.value.customThemes.reduce((function(e,t){return Object.assign(c({},"data-".concat(t,"-theme"),!0),e)}),{}),S="".concat(h),N=null,I=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},W=function(){var e=v(),n=e.elReference,o=e.elContent,r=e.elArrow;if(n){var i=function(e){var n=[$(t.offset),M({padding:t.padding})],o={placement:t.placement,middleware:n};return t.arrow&&n.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=P(o),u={x:r,y:i},f=b(l),d=w(l),p=x(f),v=await c.getDimensions(n),m="y"===f?"top":"left",h="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],y=u[f]-a.reference[f],T=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let R=T?"y"===f?T.clientHeight||0:T.clientWidth||0:0;0===R&&(R=a.floating[p]);const E=g/2-y/2,C=s[m],A=R-v[p]-s[h],S=R/2-v[p]/2+E,L=O(C,S,A),H=("start"===d?s[m]:s[h])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(H?S<C?C-S:A-S:0),data:{[f]:L,centerOffset:S-L}}}}))({element:e})),u()||t.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:v=null,allowedPlacements:m=V,autoAlignment:h=!0,...g}=e,b=function(e,t,n){return(e?[...n.filter((t=>w(t)===e)),...n.filter((t=>w(t)!==e))]:n.filter((e=>y(e)===e))).filter((n=>!e||w(n)===e||!!t&&k(n)!==n))}(v,h,m),x=await E(t,g),T=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:R,cross:C}=H(P,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==P)return{x:a,y:c,reset:{placement:b[0]}};const A=[x[y(P)],x[R],x[C]],O=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:O},reset:{placement:S}};const L=O.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),N=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,I=null!=N?N:L[0].placement;return I!==f?{data:{index:T+1,overflows:O},reset:{placement:I}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:u}=e,f=R(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=P(c),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=u)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===b(o)){const e=d[0],t=d[d.length-1],n="top"===y(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===y(o),t=A(...d.map((e=>e.right))),n=C(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...v}=e,m=y(o),h=f||(m!==l&&p?function(e){const t=L(e);return[k(e),t,k(t)]}(l):[L(l)]),g=[l,...h],w=await E(t,v),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&b.push(w[m]),u){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=g[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),p()&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=D(await E(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=D(await E(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}}()),o}(r);((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:u}=T(c,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:v}=i[n],{x:m,y:h,data:g,reset:y}=await v({x:s,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,u=null!=h?h:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:u}=T(c,f,a))),n=-1)}return{x:s,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:ve,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(S,"")," ").concat(S).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(g).forEach((function(e){o.setAttribute(e,g[e])}));var u=l.split("-")[0],f=u;["left","right","top","bottom"].includes(u)||(f="top"),function(e,t,n,o){var r;Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(I(t),"px,").concat(I(n),"px,0)")});var i=!!p()&&(null===(r=o.hide)||void 0===r?void 0:r.referenceHidden);Object.assign(e.style,{visibility:i?"hidden":"visible"})}(o,n,i,a),function(e,n,o){if(t.arrow){var r=o.arrow,i=r.x,l=r.y;e.setAttribute("data-arrow",n),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var a={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(e.style,c({left:null!==i?"".concat(i,"px"):"",top:null!==l?"".concat(l,"px"):""},a,"-4px"))}}(r,f,a)}))}},q=function(){s.value=!0},F=function(){s.value=!1},z=function(){s.value?F():q()},B=function(){z()};return(0,o.watch)(s,(function(o){var r,l;o?((l=m(null===(r=i.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),W(),n.emit("afterShow",{isSHow:!0})):function(){var e;m(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("afterHidden",{isSHow:!1})}()})),{showPopover:q,hidePopover:F,resolveTriggerEvents:function(){var e;return null!==(e={hover:[["mouseenter",q],["mouseleave",F],["focus",q],["blur",F]],click:[["click",B]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:W,triggerPopover:z,resolvePopElements:v,isElementFullScreen:u,resolveTargetElement:m,createPopInstance:function(){var e=v(),t=e.elReference,n=e.elContent;N=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,u=c||s?[...U(e)?fe(e):[],...fe(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),U(e)&&!a&&d.observe(e),d.observe(t));let p=a?te(e):null;return a&&function t(){const o=te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){W()}))},localIsShow:s,cleanup:N}};var he=i(8022),ge=null,ye=null,we=null;const be=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a,Root:g},directives:{clickoutside:r.clickoutside},props:m,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=(0,o.ref)(),c=(0,o.ref)(),s=(0,o.ref)(),f=(0,o.ref)(),d=(0,o.ref)(!1),p=null,v=me(e,t,a,c,s,f),m=v.localIsShow,h=v.showPopover,g=v.hidePopover,y=v.resolveTriggerEvents,w=v.updatePopover,b=v.resolvePopElements,x=v.isElementFullScreen,T=v.cleanup,P=v.createPopInstance,R=function(){g()},E=function(){P(),e.always?h():C()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?h():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?E():N()}));var C=function(){var e=b().elReference;(p=y()).forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},A=function(){var e=b(),t=e.elReference,n=e.root;H.value=S(d.value,n||t)},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=null,l=function(e){null===i&&e()},a=function(){n&&(i="[data-fllsrn-id=".concat(ye,"]"))},c=function(){/^body$/i.test(e.boundary)||"string"!=typeof e.boundary||(o(e.boundary)||console.error("props.boundary is not available selector"),i=e.boundary)};return l((function(){if(/^parent$/i.test(e.boundary)){i="".concat(t).concat(ge);var n=(r||{}).parentNode;(null==n?void 0:n.parentNode)&&(n.parentNode.setAttribute("data-pnode-id",we),i="[data-pnode-id=".concat(we,"]"))}})),l(c),l(a),l((function(){i="string"==typeof e.boundary?e.boundary:"".concat(t).concat(ge)})),i},o=function(e){return document.querySelector(e)instanceof HTMLElement};if(null===ge||!o("#".concat(ge))){ge="id_".concat((0,he.v4)());var r=document.createElement("div");r.setAttribute("id",ge),r.setAttribute("data-popper-id",ge),document.body.append(r)}null===ye&&(ye="id_".concat((0,he.v4)())),null===we&&(we="id_".concat((0,he.v4)()));var i=function(){var e;if(null===document.fullscreenElement){var t="[data-fllsrn-id=".concat(ye,"]");(null!==(e=document.querySelectorAll(t))&&void 0!==e?e:[]).forEach((function(e){e.removeAttribute("data-fllsrn-id")}))}else document.fullscreenElement.setAttribute("data-fllsrn-id",ye)};return{popContainerId:ge,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:i}}(e,"#"),S=O.getPrefixId,L=O.resetFullscreenElementTag,H=(0,o.ref)();A();var N=function(){"function"==typeof T&&T(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()},k=function(){d.value=x(),L(),A(),w()};(0,o.onMounted)((function(){e.disabled||(E(),A(),document.body.addEventListener("fullscreenchange",k))})),(0,o.onUnmounted)((function(){N(),document.body.removeEventListener("fullscreenchange",k)})),t.expose({show:function(){h()},hide:R});var I=(0,o.computed)((function(){return(d.value||!l)&&"string"==typeof H.value}));return{boundary:H,arrow:e.arrow,refReference:a,refContent:c,refArrow:s,content:r,theme:i,transBoundary:I,handleClickOutside:function(n){t.emit(u.CLICK_OUTSIDE,{isShow:m.value,event:n}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||m.value&&R()}}},render:function(){var e,t,n,r,i,l,c=this;return(0,o.createVNode)(g,{ref:"refRoot"},{default:function(){return[(0,o.createVNode)(h,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:c.boundary,disabled:!c.transBoundary},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(l=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),c.handleClickOutside]])]}})]}})}}),xe=(0,e.withInstall)(be)})(),l})()));
@@ -92,8 +92,6 @@ declare const _default: import("vue").DefineComponent<{
92
92
  content: string | number;
93
93
  theme: string;
94
94
  transBoundary: import("vue").ComputedRef<boolean>;
95
- width: string | number;
96
- height: string | number;
97
95
  handleClickOutside: (_e: MouseEvent) => void;
98
96
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
99
97
  show: (..._args: any[]) => boolean;
@@ -1,13 +1,7 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
- import { OnFirstUpdateFnType } from '@bkui-vue/shared';
3
2
  import { IOptionGroupContext, IPopoverConfig, ISelectContext } from './type';
4
3
  export declare const selectKey: InjectionKey<ISelectContext>;
5
4
  export declare const optionGroupKey: InjectionKey<IOptionGroupContext>;
6
- export declare function useFocus(): {
7
- isFocus: Ref<boolean>;
8
- handleFocus: () => void;
9
- handleBlur: () => void;
10
- };
11
5
  export declare function useHover(): {
12
6
  isHover: Ref<boolean>;
13
7
  setHover: () => void;
@@ -18,11 +12,10 @@ export declare function useRegistry<T>(data: Ref<Map<any, T>>): {
18
12
  unregister: (key: any) => void;
19
13
  };
20
14
  export declare function useDebouncedRef<T>(value: any, delay?: number): Ref<T>;
21
- export declare function usePopover(config: IPopoverConfig): {
15
+ export declare function usePopover(config: IPopoverConfig, triggerRef: Ref<HTMLElement>): {
22
16
  isPopoverShow: Ref<boolean>;
23
17
  popperWidth: Ref<string | number>;
24
18
  togglePopover: () => void;
25
- onPopoverFirstUpdate: OnFirstUpdateFnType;
26
19
  hidePopover: () => void;
27
20
  showPopover: () => void;
28
21
  };
@@ -150,6 +150,8 @@ declare const BkSelect: {
150
150
  default: boolean;
151
151
  };
152
152
  }>> & {
153
+ onFocus?: (...args: any[]) => any;
154
+ onBlur?: (...args: any[]) => any;
153
155
  onChange?: (...args: any[]) => any;
154
156
  "onUpdate:modelValue"?: (...args: any[]) => any;
155
157
  onClear?: (...args: any[]) => any;
@@ -167,7 +169,7 @@ declare const BkSelect: {
167
169
  }>;
168
170
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
169
171
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
170
- $emit: (event: "change" | "toggle" | "clear" | "update:modelValue" | "scroll-end", ...args: any[]) => void;
172
+ $emit: (event: "focus" | "blur" | "change" | "toggle" | "clear" | "update:modelValue" | "scroll-end", ...args: any[]) => void;
171
173
  $el: any;
172
174
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
173
175
  modelValue: import("vue-types").VueTypeValidableDef<any>;
@@ -288,6 +290,8 @@ declare const BkSelect: {
288
290
  default: boolean;
289
291
  };
290
292
  }>> & {
293
+ onFocus?: (...args: any[]) => any;
294
+ onBlur?: (...args: any[]) => any;
291
295
  onChange?: (...args: any[]) => any;
292
296
  "onUpdate:modelValue"?: (...args: any[]) => any;
293
297
  onClear?: (...args: any[]) => any;
@@ -381,8 +385,8 @@ declare const BkSelect: {
381
385
  isPopoverShow: import("vue").Ref<boolean>;
382
386
  isHover: import("vue").Ref<boolean>;
383
387
  popperWidth: import("vue").Ref<string | number>;
384
- popoverRef: import("vue").Ref<any>;
385
388
  inputRef: import("vue").Ref<HTMLElement>;
389
+ triggerRef: import("vue").Ref<HTMLElement>;
386
390
  selectTagInputRef: import("vue").Ref<{
387
391
  $: import("vue").ComponentInternalInstance;
388
392
  $data: {};
@@ -548,10 +552,9 @@ declare const BkSelect: {
548
552
  searchKey: import("vue").Ref<string>;
549
553
  setHover: () => void;
550
554
  cancelHover: () => void;
551
- handleFocus: () => void;
555
+ handleFocus: (e: FocusEvent) => void;
552
556
  handleTogglePopover: () => void;
553
557
  handleClear: (e: Event) => void;
554
- onPopoverFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
555
558
  hidePopover: () => void;
556
559
  showPopover: () => void;
557
560
  handleToggleAll: () => void;
@@ -635,13 +638,15 @@ declare const BkSelect: {
635
638
  handleMouseEnter: () => void;
636
639
  visible: import("vue").Ref<boolean>;
637
640
  }> & {} & {} & import("vue").ComponentCustomProperties) => void;
638
- handleClickOutside: () => void;
641
+ handleClickOutside: ({ event }: {
642
+ event: any;
643
+ }) => void;
639
644
  handleScroll: (e: any) => void;
640
645
  handleDeleteTag: (val: any) => void;
641
646
  handleInputChange: (value: any) => void;
642
647
  handleInputEnter: (value: any, e: Event) => void;
643
648
  handleKeydown: (e: KeyboardEvent) => void;
644
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "clear" | "update:modelValue" | "scroll-end")[], string, {
649
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "change" | "toggle" | "clear" | "update:modelValue" | "scroll-end")[], string, {
645
650
  showOnInit: boolean;
646
651
  disabled: boolean;
647
652
  placeholder: string;
@@ -807,6 +812,8 @@ declare const BkSelect: {
807
812
  default: boolean;
808
813
  };
809
814
  }>> & {
815
+ onFocus?: (...args: any[]) => any;
816
+ onBlur?: (...args: any[]) => any;
810
817
  onChange?: (...args: any[]) => any;
811
818
  "onUpdate:modelValue"?: (...args: any[]) => any;
812
819
  onClear?: (...args: any[]) => any;
@@ -900,8 +907,8 @@ declare const BkSelect: {
900
907
  isPopoverShow: import("vue").Ref<boolean>;
901
908
  isHover: import("vue").Ref<boolean>;
902
909
  popperWidth: import("vue").Ref<string | number>;
903
- popoverRef: import("vue").Ref<any>;
904
910
  inputRef: import("vue").Ref<HTMLElement>;
911
+ triggerRef: import("vue").Ref<HTMLElement>;
905
912
  selectTagInputRef: import("vue").Ref<{
906
913
  $: import("vue").ComponentInternalInstance;
907
914
  $data: {};
@@ -1067,10 +1074,9 @@ declare const BkSelect: {
1067
1074
  searchKey: import("vue").Ref<string>;
1068
1075
  setHover: () => void;
1069
1076
  cancelHover: () => void;
1070
- handleFocus: () => void;
1077
+ handleFocus: (e: FocusEvent) => void;
1071
1078
  handleTogglePopover: () => void;
1072
1079
  handleClear: (e: Event) => void;
1073
- onPopoverFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
1074
1080
  hidePopover: () => void;
1075
1081
  showPopover: () => void;
1076
1082
  handleToggleAll: () => void;
@@ -1154,7 +1160,9 @@ declare const BkSelect: {
1154
1160
  handleMouseEnter: () => void;
1155
1161
  visible: import("vue").Ref<boolean>;
1156
1162
  }> & {} & {} & import("vue").ComponentCustomProperties) => void;
1157
- handleClickOutside: () => void;
1163
+ handleClickOutside: ({ event }: {
1164
+ event: any;
1165
+ }) => void;
1158
1166
  handleScroll: (e: any) => void;
1159
1167
  handleDeleteTag: (val: any) => void;
1160
1168
  handleInputChange: (value: any) => void;
@@ -1283,6 +1291,8 @@ declare const BkSelect: {
1283
1291
  default: boolean;
1284
1292
  };
1285
1293
  }>> & {
1294
+ onFocus?: (...args: any[]) => any;
1295
+ onBlur?: (...args: any[]) => any;
1286
1296
  onChange?: (...args: any[]) => any;
1287
1297
  "onUpdate:modelValue"?: (...args: any[]) => any;
1288
1298
  onClear?: (...args: any[]) => any;
@@ -1376,8 +1386,8 @@ declare const BkSelect: {
1376
1386
  isPopoverShow: import("vue").Ref<boolean>;
1377
1387
  isHover: import("vue").Ref<boolean>;
1378
1388
  popperWidth: import("vue").Ref<string | number>;
1379
- popoverRef: import("vue").Ref<any>;
1380
1389
  inputRef: import("vue").Ref<HTMLElement>;
1390
+ triggerRef: import("vue").Ref<HTMLElement>;
1381
1391
  selectTagInputRef: import("vue").Ref<{
1382
1392
  $: import("vue").ComponentInternalInstance;
1383
1393
  $data: {};
@@ -1543,10 +1553,9 @@ declare const BkSelect: {
1543
1553
  searchKey: import("vue").Ref<string>;
1544
1554
  setHover: () => void;
1545
1555
  cancelHover: () => void;
1546
- handleFocus: () => void;
1556
+ handleFocus: (e: FocusEvent) => void;
1547
1557
  handleTogglePopover: () => void;
1548
1558
  handleClear: (e: Event) => void;
1549
- onPopoverFirstUpdate: import("@bkui-vue/shared").OnFirstUpdateFnType;
1550
1559
  hidePopover: () => void;
1551
1560
  showPopover: () => void;
1552
1561
  handleToggleAll: () => void;
@@ -1630,13 +1639,15 @@ declare const BkSelect: {
1630
1639
  handleMouseEnter: () => void;
1631
1640
  visible: import("vue").Ref<boolean>;
1632
1641
  }> & {} & {} & import("vue").ComponentCustomProperties) => void;
1633
- handleClickOutside: () => void;
1642
+ handleClickOutside: ({ event }: {
1643
+ event: any;
1644
+ }) => void;
1634
1645
  handleScroll: (e: any) => void;
1635
1646
  handleDeleteTag: (val: any) => void;
1636
1647
  handleInputChange: (value: any) => void;
1637
1648
  handleInputEnter: (value: any, e: Event) => void;
1638
1649
  handleKeydown: (e: KeyboardEvent) => void;
1639
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "toggle" | "clear" | "update:modelValue" | "scroll-end")[], "change" | "toggle" | "clear" | "update:modelValue" | "scroll-end", {
1650
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "change" | "toggle" | "clear" | "update:modelValue" | "scroll-end")[], "focus" | "blur" | "change" | "toggle" | "clear" | "update:modelValue" | "scroll-end", {
1640
1651
  showOnInit: boolean;
1641
1652
  disabled: boolean;
1642
1653
  placeholder: string;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"),require("../directives"),require("../input"),require("../loading"),require("../popover"),require("../tag"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon","../directives","../input","../loading","../popover","../tag"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon"),require("../directives"),require("../input"),require("../loading"),require("../popover"),require("../tag")):t(e["../shared"],e.vue,e["../icon"],e["../directives"],e["../input"],e["../loading"],e["../popover"],e["../tag"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,l,i,a)=>(()=>{var u={7162:(e,t,r)=>{e.exports=r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,l=Object.create(o.prototype),i=new L(n||[]);return l._invoke=function(e,t,r){var n=p;return function(o,l){if(n===v)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw l;return C()}for(r.method=o,r.arg=l;;){var i=r.delegate;if(i){var a=S(i,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?f:d,u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=f,r.method="throw",r.arg=u.arg)}}}(e,r,i),l}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",v="executing",f="completed",h={};function g(){}function y(){}function m(){}var b={};u(b,l,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(j([])));T&&T!==r&&n.call(T,l)&&(b=T);var x=m.prototype=g.prototype=Object.create(b);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,l,i,a){var u=c(e[o],e,l);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(p).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,a)}))}a(u.arg)}var o;this._invoke=function(e,n){function l(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(l,l):l()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=c(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var l=o.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function V(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function j(e){if(e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:C}}function C(){return{value:t,done:!0}}return y.prototype=m,u(x,"constructor",m),u(m,"constructor",y),y.displayName=u(m,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,a,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},P(O.prototype),u(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,l){void 0===l&&(l=Promise);var i=new O(s(t,r,n,o),l);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(x),u(x,a,"Generator"),u(x,l,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},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 r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var l=this.tryEntries.length-1;l>=0;--l){var i=this.tryEntries[l],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var l=o;break}}l&&("break"===e||"continue"===e)&&l.tryLoc<=t&&t<=l.finallyLoc&&(l=null);var i=l?l.completion:{};return i.type=e,i.arg=t,l?(this.method="next",this.next=l.finallyLoc,h):this.complete(i)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4061:e=>{"use strict";e.exports=n},6870:e=>{"use strict";e.exports=r},8133:e=>{"use strict";e.exports=o},4870:e=>{"use strict";e.exports=l},5537:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},7739:e=>{"use strict";e.exports=a},748:e=>{"use strict";e.exports=t}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return u[e](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var p={};return(()=>{"use strict";c.r(p),c.d(p,{BkOption:()=>s,BkOptionGroup:()=>h,BkSelect:()=>L,default:()=>j});var e=c(4212),t=c(748),r=c(7162),n=c.n(r);Object.create,Object.create;var o=Symbol("BkSelect"),l=Symbol("BkOptionGroup");function i(e){return{register:function(t,r){if(r){if(!e.value.has(t))return e.value.set(t,r);console.warn("repeat ".concat(t),r)}},unregister:function(t){e.value.delete(t)}}}function a(e,r){var o=this,l=function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=e;return(0,t.customRef)((function(e,t){return{get:function(){return e(),o},set:function(e){clearTimeout(r),void 0===e||""===e?(o=e,t()):r=setTimeout((function(){o=e,t()}),n)}}}))}(""),i=(0,t.ref)(!1);return(0,t.watch)(l,(function(){return t=o,a=void 0,u=void 0,s=n().mark((function t(){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i.value=!0,t.next=4,e(l.value);case 4:i.value=!1,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:return t.prev=10,null==r||r(),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,7,10,13]])})),new(u||(u=Promise))((function(e,r){function n(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof u?r:new u((function(e){e(r)}))).then(n,o)}l((s=s.apply(t,a||[])).next())}));var t,a,u,s})),{searchKey:l,searchLoading:i}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?String(e).trim().toLowerCase():e}const s=(0,t.defineComponent)({name:"Option",props:{value:e.PropTypes.any,label:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]),disabled:e.PropTypes.bool.def(!1)},setup:function(e){var r=(0,t.getCurrentInstance)().proxy,n=(0,t.reactive)({visible:!0}),i=(0,t.toRefs)(e),a=i.disabled,u=i.value,s=(0,t.inject)(o,null),c=(0,t.inject)(l,null),p=(0,t.computed)((function(){var e;return null===(e=null==s?void 0:s.selected)||void 0===e?void 0:e.some((function(e){return e===u.value}))})),d=(0,t.computed)((function(){return null==s?void 0:s.multiple})),v=(0,t.computed)((function(){return(null==s?void 0:s.activeOptionValue)===u.value}));return(0,t.onBeforeMount)((function(){null==s||s.register(u.value,r),null==c||c.register(u.value,r)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregister(u.value),null==c||c.unregister(u.value)})),Object.assign(Object.assign({},(0,t.toRefs)(n)),{selected:p,multiple:d,isHover:v,handleOptionClick:function(){a.value||null==s||s.handleOptionSelected(r)},handleMouseEnter:function(){s.activeOptionValue=u.value}})},render:function(){var r,n,o,l=(0,e.classes)({"is-selected":this.selected,"is-disabled":this.disabled,"is-multiple":this.multiple,"is-hover":this.isHover,"bk-select-option":!0});return(0,t.withDirectives)((0,t.createVNode)("li",{class:l,onClick:this.handleOptionClick,onMouseenter:this.handleMouseEnter},[null!==(o=null===(n=(r=this.$slots).default)||void 0===n?void 0:n.call(r))&&void 0!==o?o:(0,t.createVNode)("span",null,[this.label])]),[[t.vShow,this.visible]])}});function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(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.")}()}var f=c(6870);const h=(0,t.defineComponent)({name:"Group",props:{label:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1),collapsible:e.PropTypes.bool.def(!1),collapse:e.PropTypes.bool.def(!1)},setup:function(e,r){var n=r.emit,a=(0,t.getCurrentInstance)(),u=a.proxy,s=(0,t.inject)(o,null),c=(0,t.reactive)({groupCollapse:e.collapse,visible:!0}),p=(0,t.ref)(new Map),d=i(p),f=d.register,h=d.unregister,g=(0,t.computed)((function(){return"".concat(e.label," (").concat(v(p.value.values()).filter((function(e){return e.visible})).length,")")}));return(0,t.provide)(l,(0,t.reactive)(Object.assign(Object.assign({},(0,t.toRefs)(e)),{register:f,unregister:h,groupCollapse:(0,t.toRef)(c,"groupCollapse")}))),(0,t.onBeforeMount)((function(){null==s||s.registerGroup(a.uid,u)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregisterGroup(a.uid)})),Object.assign(Object.assign({},(0,t.toRefs)(c)),{groupLabel:g,handleToggleCollapse:function(){e.collapsible&&!e.disabled&&(c.groupCollapse=!c.groupCollapse,n("update:collapse",c.groupCollapse))}})},render:function(){var r,n,o=(0,e.classes)({"bk-option-group":!0,collapsible:this.collapsible,disabled:this.disabled}),l=(0,e.classes)({"bk-option-group-label":!0,collapsible:this.collapsible}),i=(0,e.classes)({"default-group-label-icon":!0,collapse:this.groupCollapse});return(0,t.withDirectives)((0,t.createVNode)("ul",{class:o},[(0,t.createVNode)("li",{class:l,onClick:this.handleToggleCollapse},[this.$slots.label?this.$slots.label():(0,t.createVNode)("span",{class:"default-group-label"},[this.collapsible&&(0,t.createVNode)(f.AngleUpFill,{class:i},null),(0,t.createVNode)("span",{class:"default-group-label-title"},[this.groupLabel])])]),(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-option-group-content"},[null===(n=(r=this.$slots).default)||void 0===n?void 0:n.call(r)]),[[t.vShow,!this.groupCollapse]])]),[[t.vShow,this.visible]])}});function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=c(4061),m=c(8133),b=c.n(m),w=c(4870),T=c.n(w),x=c(5537),P=c.n(x),O=c(7739),S=c.n(O);const V=(0,t.defineComponent)({name:"SelectTagInput",props:{selected:{type:Array,default:function(){return[]}},tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),placeholder:e.PropTypes.string.def(""),filterable:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),modelValue:e.PropTypes.any},emits:["update:modelValue","remove","focus","enter"],setup:function(e,r){var n=r.emit,l=(0,t.inject)(o,null),i=(0,t.toRefs)(e).modelValue,a=(0,t.ref)(i.value),u=(0,t.ref)();(0,t.watch)(i,(function(){a.value=i.value}));var s=null==l?void 0:l.handleGetLabelByValue;return{value:a,inputRef:u,handleRemoveTag:function(e){n("remove",e)},handleFocus:function(){n("focus")},focus:function(){var e;null===(e=u.value)||void 0===e||e.focus()},handleInput:function(e){n("update:modelValue",e.target.value)},handleKeydown:function(e){"Enter"===e.code&&n("enter",e.target.value,e)},handleGetLabelByValue:s}},render:function(){var e,r,n,o,l=this;return(0,t.createVNode)("div",{class:"bk-select-tag"},[null===(r=null===(e=this.$slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e),this.selected.map((function(e){var r,n;return(0,t.createVNode)(S(),{closable:!0,theme:l.tagTheme,onClose:function(){return l.handleRemoveTag(e)}},"function"==typeof(n=r=l.handleGetLabelByValue(e))||"[object Object]"===Object.prototype.toString.call(n)&&!(0,t.isVNode)(n)?r:{default:function(){return[r]}})})),(0,t.withDirectives)((0,t.createVNode)("input",{class:"bk-select-tag-input",ref:"inputRef",type:"text",placeholder:this.selected.length?"":this.placeholder,readonly:!this.filterable,"onUpdate:modelValue":function(e){return l.value=e},onFocus:this.handleFocus,onInput:this.handleInput,onKeydown:this.handleKeydown},null),[[t.vModelText,l.value]]),null===(o=null===(n=this.$slots)||void 0===n?void 0:n.suffix)||void 0===o?void 0:o.call(n)])}}),k=(0,t.defineComponent)({name:"Select",directives:{clickoutside:y.clickoutside},props:{modelValue:e.PropTypes.any,multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size().def("default"),clearable:e.PropTypes.bool.def(!0),loading:e.PropTypes.bool.def(!1),filterable:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,scrollHeight:e.PropTypes.number.def(216),showSelectAll:e.PropTypes.bool.def(!1),popoverMinWidth:e.PropTypes.number.def(0),showOnInit:e.PropTypes.bool.def(!1),multipleMode:e.PropTypes.oneOf(["default","tag"]).def("default"),tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),behavior:e.PropTypes.oneOf(["normal","simplicity"]).def("normal"),collapseTags:e.PropTypes.bool.def(!1),noDataText:e.PropTypes.string.def("无数据"),noMatchText:e.PropTypes.string.def("无匹配数据"),loadingText:e.PropTypes.string.def("加载中..."),placeholder:e.PropTypes.string.def("请选择"),selectAllText:e.PropTypes.string.def("全部"),scrollLoading:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),popoverOptions:e.PropTypes.object.def({}),customContent:e.PropTypes.bool.def(!1)},emits:["update:modelValue","change","toggle","clear","scroll-end"],setup:function(r,n){var l=n.emit,s=(0,t.toRefs)(r),c=s.modelValue,p=s.disabled,d=s.filterable,f=s.multiple,h=s.remoteMethod,g=s.loading,y=s.loadingText,m=s.noDataText,b=s.noMatchText,w=s.popoverMinWidth,T=s.showOnInit,x=s.multipleMode,P=s.allowCreate,O=s.customContent,S=(0,e.useFormItem)(),V=(0,t.ref)(),k=(0,t.ref)(),L=(0,t.ref)(),j=(0,t.ref)(new Map),C=(0,t.computed)((function(){return v(j.value.values())})),N=(0,t.ref)(new Map),E=(0,t.ref)([]),I=(0,t.ref)();(0,t.watch)(c,(function(){var e;be(),"tag"===x.value&&(null===(e=k.value)||void 0===e||e.update())}),{deep:!0});var M=(0,t.computed)((function(){return p.value||g.value})),F=(0,t.computed)((function(){return E.value.map((function(e){return me(e)}))})),A=(0,t.computed)((function(){var e=C.value.reduce((function(e,t){return t.disabled||e.push(t.value),e}),[]);return e.length<=E.value.length&&e.every((function(e){return E.value.some((function(t){return t===e}))}))})),R=(0,t.computed)((function(){return!!N.value.size})),G=(0,t.computed)((function(){return!C.value.length})),H=(0,t.computed)((function(){return C.value.length&&C.value.every((function(e){return!e.visible}))})),_=(0,t.computed)((function(){return d.value&&"function"==typeof h.value})),D=(0,t.computed)((function(){return!(fe.value||G.value||H.value)||O.value})),q=(0,t.computed)((function(){return fe.value?y.value:G.value?m.value:H.value?b.value:""})),B=i(j),K=B.register,U=B.unregister,$=i(N),z=$.register,W=$.unregister,Y=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),J=Y.isHover,Q=Y.setHover,X=Y.cancelHover,Z=function(){var e=(0,t.ref)(!1);return{isFocus:e,handleFocus:function(){e.value=!0},handleBlur:function(){e.value=!1}}}(),ee=Z.isFocus,te=Z.handleFocus,re=Z.handleBlur,ne=function(e){var r=e.popoverMinWidth,n=(0,t.ref)("auto"),o=(0,t.ref)(!1);return{isPopoverShow:o,popperWidth:n,togglePopover:function(){o.value=!o.value},onPopoverFirstUpdate:function(e){var t=e.elements.reference;n.value=Math.max(t.offsetWidth,r)},hidePopover:function(){o.value=!1},showPopover:function(){o.value=!0}}}({popoverMinWidth:w.value}),oe=ne.popperWidth,le=ne.isPopoverShow,ie=ne.onPopoverFirstUpdate,ae=ne.hidePopover,ue=ne.showPopover,se=ne.togglePopover,ce=(0,t.computed)((function(){return(d.value||P.value)&&le.value}));(0,t.watch)(le,(function(e){e?(ye(),pe()):ve.value=""}));var pe=function(){var e,t=E.value[0],r=j.value.get(t);r&&!r.disabled&&r.visible?I.value=t:I.value=null===(e=C.value.find((function(e){return!e.disabled&&e.visible})))||void 0===e?void 0:e.value},de=a(_.value?h.value:function(e){d.value&&C.value.forEach((function(t){var r;t.visible=null===(r=u(String(t.label)))||void 0===r?void 0:r.includes(u(e))}))},pe),ve=de.searchKey,fe=de.searchLoading,he=function(e){var t;e!==c.value&&(l("change",e),l("update:modelValue",e),null===(t=null==S?void 0:S.validate)||void 0===t||t.call(S,"change"))},ge=function(e){if(!M.value&&e){if(f.value){var t=E.value.findIndex((function(t){return t===e.value}));t>-1?E.value.splice(t,1):E.value.push(e.value),he(E.value)}else E.value=[e.value],he(e.value),ae();ye()}},ye=function(){var e,t;"tag"===x.value?null===(e=L.value)||void 0===e||e.focus():null===(t=V.value)||void 0===t||t.focus()},me=function(e){var t,r;return(null===(r=null===(t=j.value)||void 0===t?void 0:t.get(e))||void 0===r?void 0:r.label)||e},be=function(){Array.isArray(c.value)?E.value=v(c.value):void 0!==c.value&&(E.value=[c.value])};return(0,t.provide)(o,(0,t.reactive)({multiple:f,selected:E,activeOptionValue:I,register:K,unregister:U,registerGroup:z,unregisterGroup:W,handleOptionSelected:ge,handleGetLabelByValue:me})),(0,t.onMounted)((function(){be(),setTimeout((function(){T.value&&ue()}))})),{selected:E,isInput:ce,options:C,isDisabled:M,selectedLabel:F,isPopoverShow:le,isHover:J,popperWidth:oe,popoverRef:k,inputRef:V,selectTagInputRef:L,searchLoading:fe,isOptionsEmpty:G,isSearchEmpty:H,isFocus:ee,isShowSelectContent:D,curContentText:q,isGroup:R,searchKey:ve,setHover:Q,cancelHover:X,handleFocus:te,handleTogglePopover:function(){M.value||(se(),l("toggle",le.value))},handleClear:function(e){e.stopPropagation(),E.value=[],he(f.value?[]:""),l("clear",f.value?[]:""),ae()},onPopoverFirstUpdate:ie,hidePopover:ae,showPopover:ue,handleToggleAll:function(){A.value?E.value=[]:C.value.forEach((function(e){e.disabled||E.value.find((function(t){return t===e.value}))||E.value.push(e.value)})),he(E.value),ye()},handleOptionSelected:ge,handleClickOutside:function(){ae(),re()},handleScroll:function(e){var t=e.target;t.scrollTop+t.clientHeight===t.scrollHeight&&l("scroll-end")},handleDeleteTag:function(e){var t=E.value.findIndex((function(t){return t===e}));t>-1&&(E.value.splice(t,1),he(E.value))},handleInputChange:function(e){d.value&&(ve.value=e)},handleInputEnter:function(e,t){!P.value||!e||d.value&&C.value.find((function(t){return u(String(t.label))===u(e)}))||j.value.get(e)||(t.stopPropagation(),f.value?(E.value.push(e),he(E.value)):(E.value=[e],he(e),ae()),ve.value="")},handleKeydown:function(e){var t,r,n=C.value.filter((function(e){return!e.disabled&&e.visible})),o=n.findIndex((function(e){return e.value===I.value}));if(n.length&&-1!==o)switch(e.code){case"ArrowDown":e.preventDefault();var l=o>=n.length-1?0:o+1;I.value=null===(t=n[l])||void 0===t?void 0:t.value;break;case"ArrowUp":e.preventDefault();var i=0===o?n.length-1:o-1;I.value=null===(r=n[i])||void 0===r?void 0:r.value;break;case"Backspace":if(!f.value||!E.value.length||ve.value.length)return;E.value.pop(),he(E.value);break;case"Enter":if(le.value){var a=j.value.get(I.value);ge(a)}else le.value=!0}}}},render:function(){var r,n=this,o=(0,e.classes)((g(r={"bk-select":!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable},this.size,!0),g(r,this.behavior,!0),r)),l=Object.assign({theme:"light bk-select-popover",trigger:"manual",width:this.popperWidth,arrow:!1,placement:"bottom",isShow:this.isPopoverShow,modifiers:[{name:"offset",options:{offset:[0,4]}}],handleFirstUpdate:this.onPopoverFirstUpdate},this.popoverOptions),i=function(){return n.loading?(0,t.createVNode)(T(),{loading:!0,class:"spinner",mode:"spin",size:"mini"},null):n.clearable&&n.isHover&&n.selected.length?(0,t.createVNode)(f.Close,{class:"clear-icon",onClick:n.handleClear},null):(0,t.createVNode)(f.AngleUp,{class:"angle-up"},null)};return(0,t.withDirectives)((0,t.createVNode)("div",{class:o},[(0,t.createVNode)(P(),(0,t.mergeProps)({ref:"popoverRef"},l),{default:function(){return(0,t.createVNode)("div",{class:"bk-select-trigger",onClick:n.handleTogglePopover,onMouseenter:n.setHover,onMouseleave:n.cancelHover,onKeydown:n.handleKeydown},["tag"===n.multipleMode?(0,t.createVNode)(V,{ref:"selectTagInputRef",modelValue:n.searchKey,"onUpdate:modelValue":function(e){return n.searchKey=e},selected:n.selected,tagTheme:n.tagTheme,placeholder:n.placeholder,filterable:n.isInput,onFocus:n.handleFocus,onRemove:n.handleDeleteTag,onEnter:n.handleInputEnter},{prefix:function(){var e,t;return null===(t=(e=n.$slots).prefix)||void 0===t?void 0:t.call(e)},suffix:function(){return i()}}):(0,t.createVNode)(b(),{ref:"inputRef",type:"text",modelValue:n.isInput?n.searchKey:n.selectedLabel.join(","),placeholder:n.isInput&&n.selectedLabel.join(",")||n.placeholder,readonly:!n.isInput,disabled:n.isDisabled,behavior:n.behavior,size:n.size,onFocus:n.handleFocus,onInput:n.handleInputChange,onEnter:n.handleInputEnter},{prefix:function(){var e,t;return null===(t=(e=n.$slots).prefix)||void 0===t?void 0:t.call(e)},suffix:function(){return i()}})])},content:function(){return(0,t.createVNode)("div",null,[!n.isShowSelectContent&&(0,t.createVNode)("div",{class:"bk-select-empty"},[n.searchLoading&&(0,t.createVNode)(T(),{class:"mr5",loading:!0,mode:"spin",size:"mini"},null),n.curContentText]),(0,t.createVNode)("div",{class:"bk-select-content"},[(0,t.createVNode)("div",{class:"bk-select-dropdown",style:{maxHeight:"".concat(n.scrollHeight,"px")},onScroll:n.handleScroll},[(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-select-options"},[n.multiple&&n.showSelectAll&&(!n.searchKey||!n.filterable)&&(0,t.createVNode)("li",{class:"bk-select-option",onClick:n.handleToggleAll},[n.selectAllText]),null===(r=(e=n.$slots).default)||void 0===r?void 0:r.call(e),n.scrollLoading&&(0,t.createVNode)("li",{class:"bk-select-options-loading"},[(0,t.createVNode)(T(),{class:"spinner mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),n.loadingText])]),[[t.vShow,n.isShowSelectContent]])]),n.$slots.extension&&(0,t.createVNode)("div",{class:"bk-select-extension"},[n.$slots.extension()])])]);var e,r}})]),[[(0,t.resolveDirective)("clickoutside"),this.handleClickOutside]])}});var L=(0,e.withInstallProps)(k,{Option:s,Group:h});const j=L})(),p})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"),require("lodash"),require("../directives"),require("../input"),require("../loading"),require("../popover2"),require("../tag"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon","lodash","../directives","../input","../loading","../popover2","../tag"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon"),require("lodash"),require("../directives"),require("../input"),require("../loading"),require("../popover2"),require("../tag")):t(e["../shared"],e.vue,e["../icon"],e.lodash,e["../directives"],e["../input"],e["../loading"],e["../popover2"],e["../tag"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,l,i,a,u)=>(()=>{var s={7162:(e,t,r)=>{e.exports=r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,l=Object.create(o.prototype),i=new C(n||[]);return l._invoke=function(e,t,r){var n=p;return function(o,l){if(n===v)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw l;return j()}for(r.method=o,r.arg=l;;){var i=r.delegate;if(i){var a=S(i,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var u=c(e,t,r);if("normal"===u.type){if(n=r.done?f:d,u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=f,r.method="throw",r.arg=u.arg)}}}(e,r,i),l}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",v="executing",f="completed",h={};function g(){}function y(){}function m(){}var b={};u(b,l,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(L([])));T&&T!==r&&n.call(T,l)&&(b=T);var x=m.prototype=g.prototype=Object.create(b);function P(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,l,i,a){var u=c(e[o],e,l);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(p).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,a)}))}a(u.arg)}var o;this._invoke=function(e,n){function l(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(l,l):l()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=c(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var l=o.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function V(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function L(e){if(e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:j}}function j(){return{value:t,done:!0}}return y.prototype=m,u(x,"constructor",m),u(m,"constructor",y),y.displayName=u(m,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,a,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},P(O.prototype),u(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,l){void 0===l&&(l=Promise);var i=new O(s(t,r,n,o),l);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(x),u(x,a,"Generator"),u(x,l,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=L,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},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 r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var l=this.tryEntries.length-1;l>=0;--l){var i=this.tryEntries[l],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var l=o;break}}l&&("break"===e||"continue"===e)&&l.tryLoc<=t&&t<=l.finallyLoc&&(l=null);var i=l?l.completion:{};return i.type=e,i.arg=t,l?(this.method="next",this.next=l.finallyLoc,h):this.complete(i)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4061:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=r},8133:e=>{"use strict";e.exports=l},4870:e=>{"use strict";e.exports=i},6175:e=>{"use strict";e.exports=a},4212:t=>{"use strict";t.exports=e},7739:e=>{"use strict";e.exports=u},467:e=>{"use strict";e.exports=n},748:e=>{"use strict";e.exports=t}},c={};function p(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return s[e](r,r.exports,p),r.exports}p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var r in t)p.o(t,r)&&!p.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{"use strict";p.r(d),p.d(d,{BkOption:()=>c,BkOptionGroup:()=>h,BkSelect:()=>L,default:()=>j});var e=p(4212),t=p(748),r=p(6870),n=p(7162),o=p.n(n);Object.create,Object.create;var l=Symbol("BkSelect"),i=Symbol("BkOptionGroup");function a(e){return{register:function(t,r){if(r){if(!e.value.has(t))return e.value.set(t,r);console.warn("repeat ".concat(t),r)}},unregister:function(t){e.value.delete(t)}}}function u(e,r){var n=this,l=function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=e;return(0,t.customRef)((function(e,t){return{get:function(){return e(),o},set:function(e){clearTimeout(r),void 0===e||""===e?(o=e,t()):r=setTimeout((function(){o=e,t()}),n)}}}))}(""),i=(0,t.ref)(!1);return(0,t.watch)(l,(function(){return t=n,a=void 0,u=void 0,s=o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i.value=!0,t.next=4,e(l.value);case 4:i.value=!1,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:return t.prev=10,null==r||r(),t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[0,7,10,13]])})),new(u||(u=Promise))((function(e,r){function n(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof u?r:new u((function(e){e(r)}))).then(n,o)}l((s=s.apply(t,a||[])).next())}));var t,a,u,s})),{searchKey:l,searchLoading:i}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?String(e).trim().toLowerCase():e}const c=(0,t.defineComponent)({name:"Option",props:{value:e.PropTypes.any,label:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]),disabled:e.PropTypes.bool.def(!1)},setup:function(e){var r=(0,t.getCurrentInstance)().proxy,n=(0,t.reactive)({visible:!0}),o=(0,t.toRefs)(e),a=o.disabled,u=o.value,s=(0,t.inject)(l,null),c=(0,t.inject)(i,null),p=(0,t.computed)((function(){var e;return null===(e=null==s?void 0:s.selected)||void 0===e?void 0:e.some((function(e){return e===u.value}))})),d=(0,t.computed)((function(){return null==s?void 0:s.multiple})),v=(0,t.computed)((function(){return(null==s?void 0:s.activeOptionValue)===u.value}));return(0,t.onBeforeMount)((function(){null==s||s.register(u.value,r),null==c||c.register(u.value,r)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregister(u.value),null==c||c.unregister(u.value)})),Object.assign(Object.assign({},(0,t.toRefs)(n)),{selected:p,multiple:d,isHover:v,handleOptionClick:function(){a.value||null==s||s.handleOptionSelected(r)},handleMouseEnter:function(){s.activeOptionValue=u.value}})},render:function(){var n,o,l,i=(0,e.classes)({"is-selected":this.selected,"is-disabled":this.disabled,"is-multiple":this.multiple,"is-hover":this.isHover,"bk-select-option":!0});return(0,t.withDirectives)((0,t.createVNode)("li",{class:i,onClick:this.handleOptionClick,onMouseenter:this.handleMouseEnter},[null!==(l=null===(o=(n=this.$slots).default)||void 0===o?void 0:o.call(n))&&void 0!==l?l:(0,t.createVNode)("span",{class:"bk-select-option-item"},[this.label,this.multiple&&this.selected&&(0,t.createVNode)(r.Done,{width:22,height:22},null)])]),[[t.vShow,this.visible]])}});function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(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)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(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.")}()}const h=(0,t.defineComponent)({name:"Group",props:{label:e.PropTypes.string.def(""),disabled:e.PropTypes.bool.def(!1),collapsible:e.PropTypes.bool.def(!1),collapse:e.PropTypes.bool.def(!1)},setup:function(e,r){var n=r.emit,o=(0,t.getCurrentInstance)(),u=o.proxy,s=(0,t.inject)(l,null),c=(0,t.reactive)({groupCollapse:e.collapse,visible:!0}),p=(0,t.ref)(new Map),d=a(p),v=d.register,h=d.unregister,g=(0,t.computed)((function(){return"".concat(e.label," (").concat(f(p.value.values()).filter((function(e){return e.visible})).length,")")}));return(0,t.provide)(i,(0,t.reactive)(Object.assign(Object.assign({},(0,t.toRefs)(e)),{register:v,unregister:h,groupCollapse:(0,t.toRef)(c,"groupCollapse")}))),(0,t.onBeforeMount)((function(){null==s||s.registerGroup(o.uid,u)})),(0,t.onBeforeUnmount)((function(){null==s||s.unregisterGroup(o.uid)})),Object.assign(Object.assign({},(0,t.toRefs)(c)),{groupLabel:g,handleToggleCollapse:function(){e.collapsible&&!e.disabled&&(c.groupCollapse=!c.groupCollapse,n("update:collapse",c.groupCollapse))}})},render:function(){var n,o,l=(0,e.classes)({"bk-option-group":!0,collapsible:this.collapsible,disabled:this.disabled}),i=(0,e.classes)({"bk-option-group-label":!0,collapsible:this.collapsible}),a=(0,e.classes)({"default-group-label-icon":!0,collapse:this.groupCollapse});return(0,t.withDirectives)((0,t.createVNode)("ul",{class:l},[(0,t.createVNode)("li",{class:i,onClick:this.handleToggleCollapse},[this.$slots.label?this.$slots.label():(0,t.createVNode)("span",{class:"default-group-label"},[this.collapsible&&(0,t.createVNode)(r.AngleUpFill,{class:a},null),(0,t.createVNode)("span",{class:"default-group-label-title"},[this.groupLabel])])]),(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-option-group-content"},[null===(o=(n=this.$slots).default)||void 0===o?void 0:o.call(n)]),[[t.vShow,!this.groupCollapse]])]),[[t.vShow,this.visible]])}});function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=p(467),m=p(4061),b=p(8133),w=p.n(b),T=p(4870),x=p.n(T),P=p(6175),O=p.n(P),S=p(7739),V=p.n(S);const k=(0,t.defineComponent)({name:"SelectTagInput",props:{selected:{type:Array,default:function(){return[]}},tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),placeholder:e.PropTypes.string.def(""),filterable:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),modelValue:e.PropTypes.any},emits:["update:modelValue","remove","focus","enter"],setup:function(e,r){var n=r.emit,o=(0,t.inject)(l,null),i=(0,t.toRefs)(e).modelValue,a=(0,t.ref)(i.value),u=(0,t.ref)();(0,t.watch)(i,(function(){a.value=i.value}));var s=null==o?void 0:o.handleGetLabelByValue;return{value:a,inputRef:u,handleRemoveTag:function(e){n("remove",e)},handleFocus:function(){n("focus")},focus:function(){var e;null===(e=u.value)||void 0===e||e.focus()},handleInput:function(e){n("update:modelValue",e.target.value)},handleKeydown:function(e){"Enter"===e.code&&n("enter",e.target.value,e)},handleGetLabelByValue:s}},render:function(){var e,r,n,o,l=this;return(0,t.createVNode)("div",{class:"bk-select-tag"},[null===(r=null===(e=this.$slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e),this.selected.map((function(e){var r,n;return(0,t.createVNode)(V(),{closable:!0,theme:l.tagTheme,onClose:function(){return l.handleRemoveTag(e)}},"function"==typeof(n=r=l.handleGetLabelByValue(e))||"[object Object]"===Object.prototype.toString.call(n)&&!(0,t.isVNode)(n)?r:{default:function(){return[r]}})})),(0,t.withDirectives)((0,t.createVNode)("input",{class:"bk-select-tag-input",ref:"inputRef",type:"text",placeholder:this.selected.length?"":this.placeholder,readonly:!this.filterable,"onUpdate:modelValue":function(e){return l.value=e},onFocus:this.handleFocus,onInput:this.handleInput,onKeydown:this.handleKeydown},null),[[t.vModelText,l.value]]),null===(o=null===(n=this.$slots)||void 0===n?void 0:n.suffix)||void 0===o?void 0:o.call(n)])}}),C=(0,t.defineComponent)({name:"Select",directives:{clickoutside:m.clickoutside},props:{modelValue:e.PropTypes.any,multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size().def("default"),clearable:e.PropTypes.bool.def(!0),loading:e.PropTypes.bool.def(!1),filterable:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,scrollHeight:e.PropTypes.number.def(216),showSelectAll:e.PropTypes.bool.def(!1),popoverMinWidth:e.PropTypes.number.def(0),showOnInit:e.PropTypes.bool.def(!1),multipleMode:e.PropTypes.oneOf(["default","tag"]).def("default"),tagTheme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),behavior:e.PropTypes.oneOf(["normal","simplicity"]).def("normal"),collapseTags:e.PropTypes.bool.def(!1),noDataText:e.PropTypes.string.def("无数据"),noMatchText:e.PropTypes.string.def("无匹配数据"),loadingText:e.PropTypes.string.def("加载中..."),placeholder:e.PropTypes.string.def("请选择"),selectAllText:e.PropTypes.string.def("全部"),scrollLoading:e.PropTypes.bool.def(!1),allowCreate:e.PropTypes.bool.def(!1),popoverOptions:e.PropTypes.object.def({}),customContent:e.PropTypes.bool.def(!1)},emits:["update:modelValue","change","toggle","clear","scroll-end","focus","blur"],setup:function(r,n){var o=n.emit,i=(0,t.toRefs)(r),c=i.modelValue,p=i.disabled,d=i.filterable,v=i.multiple,h=i.remoteMethod,g=i.loading,y=i.loadingText,m=i.noDataText,b=i.noMatchText,w=i.popoverMinWidth,T=i.showOnInit,x=i.multipleMode,P=i.allowCreate,O=i.customContent,S=(0,e.useFormItem)(),V=(0,t.ref)(),k=(0,t.ref)(),C=(0,t.ref)(),L=(0,t.ref)(new Map),j=(0,t.computed)((function(){return f(L.value.values())})),N=(0,t.ref)(new Map),E=(0,t.ref)([]),I=(0,t.ref)();(0,t.watch)(c,(function(){he()}),{deep:!0});var M=(0,t.computed)((function(){return p.value||g.value})),R=(0,t.computed)((function(){return E.value.map((function(e){return fe(e)}))})),A=(0,t.computed)((function(){var e=j.value.reduce((function(e,t){return t.disabled||e.push(t.value),e}),[]);return e.length<=E.value.length&&e.every((function(e){return E.value.some((function(t){return t===e}))}))})),G=(0,t.computed)((function(){return!!N.value.size})),H=(0,t.computed)((function(){return!j.value.length})),_=(0,t.computed)((function(){return j.value.length&&j.value.every((function(e){return!e.visible}))})),q=(0,t.computed)((function(){return d.value&&"function"==typeof h.value})),F=(0,t.computed)((function(){return!(ce.value||H.value||_.value)||O.value})),D=(0,t.computed)((function(){return ce.value?y.value:H.value?m.value:_.value?b.value:""})),B=a(L),K=B.register,$=B.unregister,z=a(N),U=z.register,W=z.unregister,Y=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),J=Y.isHover,Q=Y.setHover,X=Y.cancelHover,Z=(0,t.ref)(!1),ee=function(r,n){var o=r.popoverMinWidth,l=null,i=(0,t.ref)("auto"),a=(0,t.ref)(!1),u=function(){var e;i.value=Math.max(null===(e=n.value)||void 0===e?void 0:e.offsetWidth,o)};return(0,t.onMounted)((function(){n.value&&(l=(0,e.observerResize)(n.value,u,60,!0)).start()})),(0,t.onBeforeUnmount)((function(){null==l||l.stop(),l=null})),{isPopoverShow:a,popperWidth:i,togglePopover:function(){a.value=!a.value},hidePopover:function(){a.value=!1},showPopover:function(){a.value=!0}}}({popoverMinWidth:w.value},k),te=ee.popperWidth,re=ee.isPopoverShow,ne=ee.hidePopover,oe=ee.showPopover,le=ee.togglePopover,ie=(0,t.computed)((function(){return(d.value||P.value)&&re.value}));(0,t.watch)(re,(function(e){e?(ve(),ae()):se.value=""}));var ae=function(){var e,t=E.value[0],r=L.value.get(t);r&&!r.disabled&&r.visible?I.value=t:I.value=null===(e=j.value.find((function(e){return!e.disabled&&e.visible})))||void 0===e?void 0:e.value},ue=u(q.value?h.value:function(e){d.value&&j.value.forEach((function(t){var r;t.visible=null===(r=s(String(t.label)))||void 0===r?void 0:r.includes(s(e))}))},ae),se=ue.searchKey,ce=ue.searchLoading,pe=function(e){var t;e!==c.value&&(o("change",e),o("update:modelValue",e),null===(t=null==S?void 0:S.validate)||void 0===t||t.call(S,"change"))},de=function(e){if(!M.value&&e){if(v.value){var t=E.value.findIndex((function(t){return t===e.value}));t>-1?E.value.splice(t,1):E.value.push(e.value),pe(E.value)}else E.value=[e.value],pe(e.value),ne();ve()}},ve=function(){var e,t;"tag"===x.value?null===(e=C.value)||void 0===e||e.focus():null===(t=V.value)||void 0===t||t.focus()},fe=function(e){var t,r;return(null===(r=null===(t=L.value)||void 0===t?void 0:t.get(e))||void 0===r?void 0:r.label)||e},he=function(){Array.isArray(c.value)?E.value=f(c.value):void 0!==c.value&&(E.value=[c.value])};return(0,t.provide)(l,(0,t.reactive)({multiple:v,selected:E,activeOptionValue:I,register:K,unregister:$,registerGroup:U,unregisterGroup:W,handleOptionSelected:de,handleGetLabelByValue:fe})),(0,t.onMounted)((function(){he(),setTimeout((function(){T.value&&oe()}))})),{selected:E,isInput:ie,options:j,isDisabled:M,selectedLabel:R,isPopoverShow:re,isHover:J,popperWidth:te,inputRef:V,triggerRef:k,selectTagInputRef:C,searchLoading:ce,isOptionsEmpty:H,isSearchEmpty:_,isFocus:Z,isShowSelectContent:F,curContentText:D,isGroup:G,searchKey:se,setHover:Q,cancelHover:X,handleFocus:function(e){Z.value=!0,o("focus",e)},handleTogglePopover:function(){M.value||(le(),o("toggle",re.value))},handleClear:function(e){e.stopPropagation(),E.value=[],pe(v.value?[]:""),o("clear",v.value?[]:""),ne()},hidePopover:ne,showPopover:oe,handleToggleAll:function(){A.value?E.value=[]:j.value.forEach((function(e){e.disabled||E.value.find((function(t){return t===e.value}))||E.value.push(e.value)})),pe(E.value),ve()},handleOptionSelected:de,handleClickOutside:function(e){var t,r=e.event.target;(null===(t=k.value)||void 0===t?void 0:t.contains(r))||k.value===r||(ne(),Z.value&&o("blur"),Z.value=!1)},handleScroll:function(e){var t=e.target;t.scrollTop+t.clientHeight===t.scrollHeight&&o("scroll-end")},handleDeleteTag:function(e){var t=E.value.findIndex((function(t){return t===e}));t>-1&&(E.value.splice(t,1),pe(E.value))},handleInputChange:function(e){d.value&&(se.value=e)},handleInputEnter:function(e,t){!P.value||!e||d.value&&j.value.find((function(t){return s(String(t.label))===s(e)}))||L.value.get(e)||(t.stopPropagation(),v.value?(E.value.push(e),pe(E.value)):(E.value=[e],pe(e),ne()),se.value="")},handleKeydown:function(e){var t,r,n=j.value.filter((function(e){return!e.disabled&&e.visible})),o=n.findIndex((function(e){return e.value===I.value}));if(n.length&&-1!==o)switch(e.code){case"ArrowDown":e.preventDefault();var l=o>=n.length-1?0:o+1;I.value=null===(t=n[l])||void 0===t?void 0:t.value;break;case"ArrowUp":e.preventDefault();var i=0===o?n.length-1:o-1;I.value=null===(r=n[i])||void 0===r?void 0:r.value;break;case"Backspace":if(!v.value||!E.value.length||se.value.length)return;E.value.pop(),pe(E.value);break;case"Enter":if(re.value){var a=L.value.get(I.value);de(a)}else re.value=!0}}}},render:function(){var n,o=this,l=(0,e.classes)((g(n={"bk-select":!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable},this.size,!0),g(n,this.behavior,!0),n)),i={theme:"light bk-select-popover",trigger:"manual",width:this.popperWidth,arrow:!1,placement:"bottom",isShow:this.isPopoverShow},a=(0,y.merge)(i,this.popoverOptions),u=function(){return o.loading?(0,t.createVNode)(x(),{loading:!0,class:"spinner",mode:"spin",size:"mini"},null):o.clearable&&o.isHover&&o.selected.length?(0,t.createVNode)(r.Close,{class:"clear-icon",onClick:o.handleClear},null):(0,t.createVNode)(r.AngleUp,{class:"angle-up"},null)};return(0,t.createVNode)("div",{class:l},[(0,t.createVNode)(O(),(0,t.mergeProps)(a,{onClickoutside:this.handleClickOutside}),{default:function(){return(0,t.createVNode)("div",{class:"bk-select-trigger",ref:"triggerRef",onClick:o.handleTogglePopover,onMouseenter:o.setHover,onMouseleave:o.cancelHover,onKeydown:o.handleKeydown},["tag"===o.multipleMode?(0,t.createVNode)(k,{ref:"selectTagInputRef",modelValue:o.searchKey,"onUpdate:modelValue":function(e){return o.searchKey=e},selected:o.selected,tagTheme:o.tagTheme,placeholder:o.placeholder,filterable:o.isInput,onFocus:o.handleFocus,onRemove:o.handleDeleteTag,onEnter:o.handleInputEnter},{prefix:function(){var e,t;return null===(t=(e=o.$slots).prefix)||void 0===t?void 0:t.call(e)},suffix:function(){return u()}}):(0,t.createVNode)(w(),{ref:"inputRef",type:"text",modelValue:o.isInput?o.searchKey:o.selectedLabel.join(","),placeholder:o.isInput&&o.selectedLabel.join(",")||o.placeholder,readonly:!o.isInput,disabled:o.isDisabled,behavior:o.behavior,size:o.size,onFocus:o.handleFocus,onInput:o.handleInputChange,onEnter:o.handleInputEnter},{prefix:function(){var e,t;return null===(t=(e=o.$slots).prefix)||void 0===t?void 0:t.call(e)},suffix:function(){return u()}})])},content:function(){return(0,t.createVNode)("div",{class:"bk-select-content"},[!o.isShowSelectContent&&(0,t.createVNode)("div",{class:"bk-select-empty"},[o.searchLoading&&(0,t.createVNode)(x(),{class:"mr5",loading:!0,mode:"spin",size:"mini"},null),o.curContentText]),(0,t.createVNode)("div",{class:"bk-select-content"},[(0,t.createVNode)("div",{class:"bk-select-dropdown",style:{maxHeight:"".concat(o.scrollHeight,"px")},onScroll:o.handleScroll},[(0,t.withDirectives)((0,t.createVNode)("ul",{class:"bk-select-options"},[o.multiple&&o.showSelectAll&&(!o.searchKey||!o.filterable)&&(0,t.createVNode)("li",{class:"bk-select-option",onClick:o.handleToggleAll},[o.selectAllText]),null===(r=(e=o.$slots).default)||void 0===r?void 0:r.call(e),o.scrollLoading&&(0,t.createVNode)("li",{class:"bk-select-options-loading"},[(0,t.createVNode)(x(),{class:"spinner mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),o.loadingText])]),[[t.vShow,o.isShowSelectContent]])]),o.$slots.extension&&(0,t.createVNode)("div",{class:"bk-select-extension"},[o.$slots.extension()])])]);var e,r}})])}});var L=(0,e.withInstallProps)(C,{Option:c,Group:h});const j=L})(),d})()));