New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bpui/popover

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bpui/popover - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

16

dist/index.common.js
/*!
* bpui popover v0.0.14
* bpui popover v0.0.15
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.

@@ -217,2 +217,3 @@ * Released under the MIT License.

this.offsetTop = parseInt(this.offsetTop);
this.offsetTop += 'px';

@@ -243,9 +244,10 @@

this.offsetTop = mainOffset + docOffset.top + 'px';
this.offsetTop = parseInt(mainOffset + docOffset.top) + 'px';
this.offsetLeft = directionData == 'right'? offset.left+port.width-6: offset.left-main.clientWidth-6;
this.offsetLeft += docOffset.left;
this.offsetLeft = parseInt(this.offsetLeft);
this.offsetLeft += 'px';
this.offsetArrowLeft = null;
this.offsetArrowBottom = null;
this.offsetArrowTop = arrowOffset - mainOffset - 6;
this.offsetArrowTop = parseInt(arrowOffset - mainOffset - 6);
if (this.offsetArrowTop < 10) {

@@ -255,3 +257,3 @@ this.offsetArrowTop = 10;

else if (this.offsetArrowTop > main.clientHeight-22) {
this.offsetArrowTop = main.clientHeight-22;
this.offsetArrowTop = parseInt(main.clientHeight-22);
}

@@ -262,3 +264,3 @@ this.offsetArrowTop += 'px';

else {
let cw = main.clientWidth||50;
let cw = parseInt(main.clientWidth||50);

@@ -273,4 +275,4 @@ let mainOffset = parseInt(arrowOffset - cw/2);

this.offsetLeft = mainOffset + 'px';
this.offsetArrowLeft = arrowOffset - mainOffset - 6;
this.offsetLeft = parseInt(mainOffset) + 'px';
this.offsetArrowLeft = parseInt(arrowOffset - mainOffset) - 6;
if (this.offsetArrowLeft < 10) {

@@ -277,0 +279,0 @@ this.offsetArrowLeft = 10;

/*!
* bpui popover v0.0.14
* bpui popover v0.0.15
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var e=t(require("@bpui/libs")),o={components:{widget:t(require("@bpui/dialog")).bpWidget},props:{visible:Boolean,mask:{default:!1,type:Boolean},maskClose:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object,direction:{default:"auto",type:String},trigger:{type:String},bind:{}},data:function(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible:function(t,e){this.visibleReal!=t&&(this.visibleReal=t,t!=e&&t&&this._show(this.direction))},visibleReal:function(t){this.$emit("update:visible",t)},bind:function(t,e){this._removeEvent(e),this._bindEvent(t)}},beforeMount:function(){this.visibleReal=this.visible},beforeDestroy:function(){$("body").off("click",this._hide)},mounted:function(){var t=this;this.$nextTick((function(){t.$parent.$forceUpdate()}))},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent:function(t){var o;t&&(o=e.dom.isVueObject(t)?t.$el:t,$(o).off("mouseover",this._onTrigger),$(o).off("mouseleave",this._onTriggerHide),$(o).off("click",this._onTrigger))},_bindEvent:function(t){var o;if((this._removeEvent(t),t)&&(o=e.dom.isVueObject(t)?t.$el:t,"hover"==this.trigger&&(e.device.browserIsMobile()?$(o).on("click",this._onTrigger):($(o).on("mouseover",this._onTrigger),$(o).on("mouseleave",this._onTriggerHide))),"click"==this.trigger)){var r=(e.device.browserIsMobile(),"click");$(o).off(r,this._onTrigger).on(r,this._onTrigger)}},_onTrigger:function(t){var e=this;this.visibleReal=!0,setTimeout((function(){$("body").off("click",e._hide).on("click",e._hide)}),10),this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1,$("body").off("click",this._hide)},_show:function(t){var o=this,r=this.bind;if(this.bind){var n;n=e.dom.isVueObject(r)?r.$el:r;var i=e.dom.getElementOffset(n),f={};f.height=n.clientHeight,f.width=n.clientWidth;var s,c=e.dom.getViewPort(),u=e.dom.getDocumentOffset();this.offsetTop=i.top+u.top,"top"==t?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):"bottom"==t?(this.directionData="bottom",this.offsetTop+=f.height):"left"==t?(this.directionData="left",this.offsetLeft=i.left+f.width):"right"==t?(this.directionData="right",this.offsetLeft=i.left+f.width):i.top+f.height/2>c.height/2?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=f.height),this.offsetTop+="px",s="left"==t||"right"==t?parseInt(i.top+f.height/2):parseInt(i.left+f.width/2);var a=this.$refs.main;e.dom.probeDom(400,(function(){return a.clientWidth>0}),(function(){if("left"==t||"right"==t){var e=parseInt(s-a.clientHeight/2);e<10&&(e=10),e+a.clientHeight>c.height-10&&(e=c.height-10-a.clientHeight),o.offsetTop=e+u.top+"px",o.offsetLeft="right"==t?i.left+f.width-6:i.left-a.clientWidth-6,o.offsetLeft+=u.left,o.offsetLeft+="px",o.offsetArrowLeft=null,o.offsetArrowBottom=null,o.offsetArrowTop=s-e-6,o.offsetArrowTop<10?o.offsetArrowTop=10:o.offsetArrowTop>a.clientHeight-22&&(o.offsetArrowTop=a.clientHeight-22),o.offsetArrowTop+="px",o.offsetArrowRight=null}else{var r=a.clientWidth||50,n=parseInt(s-r/2);n<10&&(n=10),n+r>c.width-10&&(n=c.width-10-r),o.offsetLeft=n+"px",o.offsetArrowLeft=s-n-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>r-22&&(o.offsetArrowLeft=r-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){$("body").off("click",this._hide),this.hide().then((function(t){}))}}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},f=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:u},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,d=function(t){return p.call(t).slice(8,-1)},g="".split,v=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!m(t))return t;var o,r;if(e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;if("function"==typeof(o=t.valueOf)&&!m(r=o.call(t)))return r;if(!e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,T=function(t,e){return _.call(t,e)},S=f.document,A=m(S)&&m(S.createElement),O=!c&&!s((function(){return 7!=Object.defineProperty((t="div",A?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),j=Object.getOwnPropertyDescriptor,E={f:c?j:function(t,e){if(t=y(t),e=w(e,!0),O)try{return j(t,e)}catch(t){}if(T(t,e))return h(!l.f.call(t,e),t[e])}},x=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},k=Object.defineProperty,C={f:c?k:function(t,e,o){if(x(t),e=w(e,!0),x(o),O)try{return k(t,e,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},L=c?function(t,e,o){return C.f(t,e,h(1,o))}:function(t,e,o){return t[e]=o,t},R=function(t,e){try{L(f,t,e)}catch(o){f[t]=e}return e},P=f["__core-js_shared__"]||R("__core-js_shared__",{}),M=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(t){return M.call(t)});var D,I,B,H,F=P.inspectSource,N=f.WeakMap,V="function"==typeof N&&/native code/.test(F(N)),W=n((function(t){(t.exports=function(t,e){return P[t]||(P[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,z=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++q+z).toString(36)},G=W("keys"),X={},K=f.WeakMap;if(V){var Y=new K,J=Y.get,Q=Y.has,Z=Y.set;D=function(t,e){return Z.call(Y,t,e),e},I=function(t){return J.call(Y,t)||{}},B=function(t){return Q.call(Y,t)}}else{var tt=G[H="state"]||(G[H]=U(H));X[tt]=!0,D=function(t,e){return L(t,tt,e),e},I=function(t){return T(t,tt)?t[tt]:{}},B=function(t){return T(t,tt)}}var et,ot,rt={set:D,get:I,has:B,enforce:function(t){return B(t)?I(t):D(t,{})},getterFor:function(t){return function(e){var o;if(!m(e)||(o=I(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}},nt=n((function(t){var e=rt.get,o=rt.enforce,r=String(String).split("String");(t.exports=function(t,e,n,i){var s=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||T(n,"name")||L(n,"name",e),o(n).source=r.join("string"==typeof e?e:"")),t!==f?(s?!u&&t[e]&&(c=!0):delete t[e],c?t[e]=n:L(t,e,n)):c?t[e]=n:R(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),it=f,ft=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?ft(it[t])||ft(f[t]):it[t]&&it[t][e]||f[t]&&f[t][e]},ct=Math.ceil,ut=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ut:ct)(t)},lt=Math.min,ht=function(t){return t>0?lt(at(t),9007199254740991):0},pt=Math.max,dt=Math.min,gt=function(t){return function(e,o,r){var n,i=y(e),f=ht(i.length),s=function(t,e){var o=at(t);return o<0?pt(o+e,0):dt(o,e)}(r,f);if(t&&o!=o){for(;f>s;)if((n=i[s++])!=n)return!0}else for(;f>s;s++)if((t||s in i)&&i[s]===o)return t||s||0;return!t&&-1}},vt={includes:gt(!0),indexOf:gt(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var o,r=y(t),n=0,i=[];for(o in r)!T(X,o)&&T(r,o)&&i.push(o);for(;e.length>n;)T(r,o=e[n++])&&(~vt(i,o)||i.push(o));return i}(t,bt)}},mt={f:Object.getOwnPropertySymbols},wt=st("Reflect","ownKeys")||function(t){var e=yt.f(x(t)),o=mt.f;return o?e.concat(o(t)):e},_t=function(t,e){for(var o=wt(e),r=C.f,n=E.f,i=0;i<o.length;i++){var f=o[i];T(t,f)||r(t,f,n(e,f))}},Tt=/#|\.prototype\./,St=function(t,e){var o=Ot[At(t)];return o==jt||o!=$t&&("function"==typeof e?s(e):!!e)},At=St.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Ot=St.data={},$t=St.NATIVE="N",jt=St.POLYFILL="P",Et=St,xt=E.f,kt=Array.isArray||function(t){return"Array"==d(t)},Ct=function(t){return Object(b(t))},Lt=function(t,e,o){var r=w(e);r in t?C.f(t,r,h(0,o)):t[r]=o},Rt=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Pt=Rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=W("wks"),Dt=f.Symbol,It=Pt?Dt:Dt&&Dt.withoutSetter||U,Bt=function(t){return T(Mt,t)||(Rt&&T(Dt,t)?Mt[t]=Dt[t]:Mt[t]=It("Symbol."+t)),Mt[t]},Ht=Bt("species"),Ft=function(t,e){var o;return kt(t)&&("function"!=typeof(o=t.constructor)||o!==Array&&!kt(o.prototype)?m(o)&&null===(o=o[Ht])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===e?0:e)},Nt=st("navigator","userAgent")||"",Vt=f.process,Wt=Vt&&Vt.versions,qt=Wt&&Wt.v8;qt?ot=(et=qt.split("."))[0]+et[1]:Nt&&(!(et=Nt.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Nt.match(/Chrome\/(\d+)/))&&(ot=et[1]);var zt,Ut=ot&&+ot,Gt=Bt("species"),Xt=Bt("isConcatSpreadable"),Kt=Ut>=51||!s((function(){var t=[];return t[Xt]=!1,t.concat()[0]!==t})),Yt=(zt="concat",Ut>=51||!s((function(){var t=[];return(t.constructor={})[Gt]=function(){return{foo:1}},1!==t[zt](Boolean).foo}))),Jt=function(t){if(!m(t))return!1;var e=t[Xt];return void 0!==e?!!e:kt(t)};!function(t,e){var o,r,n,i,s,c=t.target,u=t.global,a=t.stat;if(o=u?f:a?f[c]||R(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!Et(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&L(i,"sham",!0),nt(o,r,i,t)}}({target:"Array",proto:!0,forced:!Kt||!Yt},{concat:function(t){var e,o,r,n,i,f=Ct(this),s=Ft(f,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?f:arguments[e],Jt(i)){if(c+(n=ht(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(o=0;o<n;o++,c++)o in i&&Lt(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Lt(s,c++,i)}return s.length=c,s}});const Qt=o;var Zt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!1,hideBodyScroll:!1},on:{"update:visible":function(e){t.visibleReal=e}}},[o("div",{ref:"main",staticClass:"bp-popover__main",style:{left:t.offsetLeft,top:t.offsetTop},attrs:{direction:t.directionData}},[t._t("default"),t._v(" "),o("div",{staticClass:"bp-popover__arrow",style:{left:t.offsetArrowLeft,top:t.offsetArrowTop,right:t.offsetArrowRight,bottom:t.offsetArrowBottom}})],2)])};Zt._withStripped=!0;var te={bpPopover:function(t,e,o,r,n,i,f,s,c,u){"boolean"!=typeof f&&(c=s,s=f,f=!1);var a,l="function"==typeof o?o.options:o;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,n&&(l.functional=!0)),r&&(l._scopeId=r),i?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=a):e&&(a=f?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),a)if(l.functional){var h=l.render;l.render=function(t,e){return a.call(e),h(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,a):[a]}return o}({render:Zt,staticRenderFns:[]},void 0,Qt,void 0,!1,void 0,!1,void 0,void 0,void 0)};module.exports=te;
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var e=t(require("@bpui/libs")),o={components:{widget:t(require("@bpui/dialog")).bpWidget},props:{visible:Boolean,mask:{default:!1,type:Boolean},maskClose:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object,direction:{default:"auto",type:String},trigger:{type:String},bind:{}},data:function(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible:function(t,e){this.visibleReal!=t&&(this.visibleReal=t,t!=e&&t&&this._show(this.direction))},visibleReal:function(t){this.$emit("update:visible",t)},bind:function(t,e){this._removeEvent(e),this._bindEvent(t)}},beforeMount:function(){this.visibleReal=this.visible},beforeDestroy:function(){$("body").off("click",this._hide)},mounted:function(){var t=this;this.$nextTick((function(){t.$parent.$forceUpdate()}))},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent:function(t){var o;t&&(o=e.dom.isVueObject(t)?t.$el:t,$(o).off("mouseover",this._onTrigger),$(o).off("mouseleave",this._onTriggerHide),$(o).off("click",this._onTrigger))},_bindEvent:function(t){var o;if((this._removeEvent(t),t)&&(o=e.dom.isVueObject(t)?t.$el:t,"hover"==this.trigger&&(e.device.browserIsMobile()?$(o).on("click",this._onTrigger):($(o).on("mouseover",this._onTrigger),$(o).on("mouseleave",this._onTriggerHide))),"click"==this.trigger)){var r=(e.device.browserIsMobile(),"click");$(o).off(r,this._onTrigger).on(r,this._onTrigger)}},_onTrigger:function(t){var e=this;this.visibleReal=!0,setTimeout((function(){$("body").off("click",e._hide).on("click",e._hide)}),10),this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1,$("body").off("click",this._hide)},_show:function(t){var o=this,r=this.bind;if(this.bind){var n;n=e.dom.isVueObject(r)?r.$el:r;var i=e.dom.getElementOffset(n),f={};f.height=n.clientHeight,f.width=n.clientWidth;var s,c=e.dom.getViewPort(),u=e.dom.getDocumentOffset();this.offsetTop=i.top+u.top,"top"==t?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):"bottom"==t?(this.directionData="bottom",this.offsetTop+=f.height):"left"==t?(this.directionData="left",this.offsetLeft=i.left+f.width):"right"==t?(this.directionData="right",this.offsetLeft=i.left+f.width):i.top+f.height/2>c.height/2?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=f.height),this.offsetTop=parseInt(this.offsetTop),this.offsetTop+="px",s="left"==t||"right"==t?parseInt(i.top+f.height/2):parseInt(i.left+f.width/2);var a=this.$refs.main;e.dom.probeDom(400,(function(){return a.clientWidth>0}),(function(){if("left"==t||"right"==t){var e=parseInt(s-a.clientHeight/2);e<10&&(e=10),e+a.clientHeight>c.height-10&&(e=c.height-10-a.clientHeight),o.offsetTop=parseInt(e+u.top)+"px",o.offsetLeft="right"==t?i.left+f.width-6:i.left-a.clientWidth-6,o.offsetLeft+=u.left,o.offsetLeft=parseInt(o.offsetLeft),o.offsetLeft+="px",o.offsetArrowLeft=null,o.offsetArrowBottom=null,o.offsetArrowTop=parseInt(s-e-6),o.offsetArrowTop<10?o.offsetArrowTop=10:o.offsetArrowTop>a.clientHeight-22&&(o.offsetArrowTop=parseInt(a.clientHeight-22)),o.offsetArrowTop+="px",o.offsetArrowRight=null}else{var r=parseInt(a.clientWidth||50),n=parseInt(s-r/2);n<10&&(n=10),n+r>c.width-10&&(n=c.width-10-r),o.offsetLeft=parseInt(n)+"px",o.offsetArrowLeft=parseInt(s-n)-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>r-22&&(o.offsetArrowLeft=r-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){$("body").off("click",this._hide),this.hide().then((function(t){}))}}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},f=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:u},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,d=function(t){return p.call(t).slice(8,-1)},g="".split,v=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!m(t))return t;var o,r;if(e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;if("function"==typeof(o=t.valueOf)&&!m(r=o.call(t)))return r;if(!e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,T=function(t,e){return _.call(t,e)},S=f.document,A=m(S)&&m(S.createElement),O=!c&&!s((function(){return 7!=Object.defineProperty((t="div",A?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),j=Object.getOwnPropertyDescriptor,E={f:c?j:function(t,e){if(t=y(t),e=w(e,!0),O)try{return j(t,e)}catch(t){}if(T(t,e))return h(!l.f.call(t,e),t[e])}},x=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},L=Object.defineProperty,k={f:c?L:function(t,e,o){if(x(t),e=w(e,!0),x(o),O)try{return L(t,e,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},C=c?function(t,e,o){return k.f(t,e,h(1,o))}:function(t,e,o){return t[e]=o,t},I=function(t,e){try{C(f,t,e)}catch(o){f[t]=e}return e},R=f["__core-js_shared__"]||I("__core-js_shared__",{}),P=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return P.call(t)});var M,D,B,H,F=R.inspectSource,N=f.WeakMap,V="function"==typeof N&&/native code/.test(F(N)),W=n((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,z=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++q+z).toString(36)},G=W("keys"),X={},K=f.WeakMap;if(V){var Y=new K,J=Y.get,Q=Y.has,Z=Y.set;M=function(t,e){return Z.call(Y,t,e),e},D=function(t){return J.call(Y,t)||{}},B=function(t){return Q.call(Y,t)}}else{var tt=G[H="state"]||(G[H]=U(H));X[tt]=!0,M=function(t,e){return C(t,tt,e),e},D=function(t){return T(t,tt)?t[tt]:{}},B=function(t){return T(t,tt)}}var et,ot,rt={set:M,get:D,has:B,enforce:function(t){return B(t)?D(t):M(t,{})},getterFor:function(t){return function(e){var o;if(!m(e)||(o=D(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}},nt=n((function(t){var e=rt.get,o=rt.enforce,r=String(String).split("String");(t.exports=function(t,e,n,i){var s=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||T(n,"name")||C(n,"name",e),o(n).source=r.join("string"==typeof e?e:"")),t!==f?(s?!u&&t[e]&&(c=!0):delete t[e],c?t[e]=n:C(t,e,n)):c?t[e]=n:I(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),it=f,ft=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?ft(it[t])||ft(f[t]):it[t]&&it[t][e]||f[t]&&f[t][e]},ct=Math.ceil,ut=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ut:ct)(t)},lt=Math.min,ht=function(t){return t>0?lt(at(t),9007199254740991):0},pt=Math.max,dt=Math.min,gt=function(t){return function(e,o,r){var n,i=y(e),f=ht(i.length),s=function(t,e){var o=at(t);return o<0?pt(o+e,0):dt(o,e)}(r,f);if(t&&o!=o){for(;f>s;)if((n=i[s++])!=n)return!0}else for(;f>s;s++)if((t||s in i)&&i[s]===o)return t||s||0;return!t&&-1}},vt={includes:gt(!0),indexOf:gt(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var o,r=y(t),n=0,i=[];for(o in r)!T(X,o)&&T(r,o)&&i.push(o);for(;e.length>n;)T(r,o=e[n++])&&(~vt(i,o)||i.push(o));return i}(t,bt)}},mt={f:Object.getOwnPropertySymbols},wt=st("Reflect","ownKeys")||function(t){var e=yt.f(x(t)),o=mt.f;return o?e.concat(o(t)):e},_t=function(t,e){for(var o=wt(e),r=k.f,n=E.f,i=0;i<o.length;i++){var f=o[i];T(t,f)||r(t,f,n(e,f))}},Tt=/#|\.prototype\./,St=function(t,e){var o=Ot[At(t)];return o==jt||o!=$t&&("function"==typeof e?s(e):!!e)},At=St.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Ot=St.data={},$t=St.NATIVE="N",jt=St.POLYFILL="P",Et=St,xt=E.f,Lt=Array.isArray||function(t){return"Array"==d(t)},kt=function(t){return Object(b(t))},Ct=function(t,e,o){var r=w(e);r in t?k.f(t,r,h(0,o)):t[r]=o},It=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Rt=It&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Pt=W("wks"),Mt=f.Symbol,Dt=Rt?Mt:Mt&&Mt.withoutSetter||U,Bt=function(t){return T(Pt,t)||(It&&T(Mt,t)?Pt[t]=Mt[t]:Pt[t]=Dt("Symbol."+t)),Pt[t]},Ht=Bt("species"),Ft=function(t,e){var o;return Lt(t)&&("function"!=typeof(o=t.constructor)||o!==Array&&!Lt(o.prototype)?m(o)&&null===(o=o[Ht])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===e?0:e)},Nt=st("navigator","userAgent")||"",Vt=f.process,Wt=Vt&&Vt.versions,qt=Wt&&Wt.v8;qt?ot=(et=qt.split("."))[0]+et[1]:Nt&&(!(et=Nt.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Nt.match(/Chrome\/(\d+)/))&&(ot=et[1]);var zt,Ut=ot&&+ot,Gt=Bt("species"),Xt=Bt("isConcatSpreadable"),Kt=Ut>=51||!s((function(){var t=[];return t[Xt]=!1,t.concat()[0]!==t})),Yt=(zt="concat",Ut>=51||!s((function(){var t=[];return(t.constructor={})[Gt]=function(){return{foo:1}},1!==t[zt](Boolean).foo}))),Jt=function(t){if(!m(t))return!1;var e=t[Xt];return void 0!==e?!!e:Lt(t)};!function(t,e){var o,r,n,i,s,c=t.target,u=t.global,a=t.stat;if(o=u?f:a?f[c]||I(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!Et(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&C(i,"sham",!0),nt(o,r,i,t)}}({target:"Array",proto:!0,forced:!Kt||!Yt},{concat:function(t){var e,o,r,n,i,f=kt(this),s=Ft(f,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?f:arguments[e],Jt(i)){if(c+(n=ht(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(o=0;o<n;o++,c++)o in i&&Ct(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ct(s,c++,i)}return s.length=c,s}});const Qt=o;var Zt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!1,hideBodyScroll:!1},on:{"update:visible":function(e){t.visibleReal=e}}},[o("div",{ref:"main",staticClass:"bp-popover__main",style:{left:t.offsetLeft,top:t.offsetTop},attrs:{direction:t.directionData}},[t._t("default"),t._v(" "),o("div",{staticClass:"bp-popover__arrow",style:{left:t.offsetArrowLeft,top:t.offsetArrowTop,right:t.offsetArrowRight,bottom:t.offsetArrowBottom}})],2)])};Zt._withStripped=!0;var te={bpPopover:function(t,e,o,r,n,i,f,s,c,u){"boolean"!=typeof f&&(c=s,s=f,f=!1);var a,l="function"==typeof o?o.options:o;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,n&&(l.functional=!0)),r&&(l._scopeId=r),i?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=a):e&&(a=f?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),a)if(l.functional){var h=l.render;l.render=function(t,e){return a.call(e),h(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,a):[a]}return o}({render:Zt,staticRenderFns:[]},void 0,Qt,void 0,!1,void 0,!1,void 0,void 0,void 0)};module.exports=te;
/*!
* bpui popover v0.0.14
* bpui popover v0.0.15
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.

@@ -213,2 +213,3 @@ * Released under the MIT License.

this.offsetTop = parseInt(this.offsetTop);
this.offsetTop += 'px';

@@ -239,9 +240,10 @@

this.offsetTop = mainOffset + docOffset.top + 'px';
this.offsetTop = parseInt(mainOffset + docOffset.top) + 'px';
this.offsetLeft = directionData == 'right'? offset.left+port.width-6: offset.left-main.clientWidth-6;
this.offsetLeft += docOffset.left;
this.offsetLeft = parseInt(this.offsetLeft);
this.offsetLeft += 'px';
this.offsetArrowLeft = null;
this.offsetArrowBottom = null;
this.offsetArrowTop = arrowOffset - mainOffset - 6;
this.offsetArrowTop = parseInt(arrowOffset - mainOffset - 6);
if (this.offsetArrowTop < 10) {

@@ -251,3 +253,3 @@ this.offsetArrowTop = 10;

else if (this.offsetArrowTop > main.clientHeight-22) {
this.offsetArrowTop = main.clientHeight-22;
this.offsetArrowTop = parseInt(main.clientHeight-22);
}

@@ -258,3 +260,3 @@ this.offsetArrowTop += 'px';

else {
let cw = main.clientWidth||50;
let cw = parseInt(main.clientWidth||50);

@@ -269,4 +271,4 @@ let mainOffset = parseInt(arrowOffset - cw/2);

this.offsetLeft = mainOffset + 'px';
this.offsetArrowLeft = arrowOffset - mainOffset - 6;
this.offsetLeft = parseInt(mainOffset) + 'px';
this.offsetArrowLeft = parseInt(arrowOffset - mainOffset) - 6;
if (this.offsetArrowLeft < 10) {

@@ -273,0 +275,0 @@ this.offsetArrowLeft = 10;

/*!
* bpui popover v0.0.14
* bpui popover v0.0.15
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/
import t from"@bpui/libs";import e from"@bpui/dialog";var o={components:{widget:e.bpWidget},props:{visible:Boolean,mask:{default:!1,type:Boolean},maskClose:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object,direction:{default:"auto",type:String},trigger:{type:String},bind:{}},data:function(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible:function(t,e){this.visibleReal!=t&&(this.visibleReal=t,t!=e&&t&&this._show(this.direction))},visibleReal:function(t){this.$emit("update:visible",t)},bind:function(t,e){this._removeEvent(e),this._bindEvent(t)}},beforeMount:function(){this.visibleReal=this.visible},beforeDestroy:function(){$("body").off("click",this._hide)},mounted:function(){var t=this;this.$nextTick((function(){t.$parent.$forceUpdate()}))},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent:function(e){var o;e&&(o=t.dom.isVueObject(e)?e.$el:e,$(o).off("mouseover",this._onTrigger),$(o).off("mouseleave",this._onTriggerHide),$(o).off("click",this._onTrigger))},_bindEvent:function(e){var o;if((this._removeEvent(e),e)&&(o=t.dom.isVueObject(e)?e.$el:e,"hover"==this.trigger&&(t.device.browserIsMobile()?$(o).on("click",this._onTrigger):($(o).on("mouseover",this._onTrigger),$(o).on("mouseleave",this._onTriggerHide))),"click"==this.trigger)){var r=(t.device.browserIsMobile(),"click");$(o).off(r,this._onTrigger).on(r,this._onTrigger)}},_onTrigger:function(t){var e=this;this.visibleReal=!0,setTimeout((function(){$("body").off("click",e._hide).on("click",e._hide)}),10),this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1,$("body").off("click",this._hide)},_show:function(e){var o=this,r=this.bind;if(this.bind){var n;n=t.dom.isVueObject(r)?r.$el:r;var i=t.dom.getElementOffset(n),f={};f.height=n.clientHeight,f.width=n.clientWidth;var s,c=t.dom.getViewPort(),u=t.dom.getDocumentOffset();this.offsetTop=i.top+u.top,"top"==e?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):"bottom"==e?(this.directionData="bottom",this.offsetTop+=f.height):"left"==e?(this.directionData="left",this.offsetLeft=i.left+f.width):"right"==e?(this.directionData="right",this.offsetLeft=i.left+f.width):i.top+f.height/2>c.height/2?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=f.height),this.offsetTop+="px",s="left"==e||"right"==e?parseInt(i.top+f.height/2):parseInt(i.left+f.width/2);var a=this.$refs.main;t.dom.probeDom(400,(function(){return a.clientWidth>0}),(function(){if("left"==e||"right"==e){var t=parseInt(s-a.clientHeight/2);t<10&&(t=10),t+a.clientHeight>c.height-10&&(t=c.height-10-a.clientHeight),o.offsetTop=t+u.top+"px",o.offsetLeft="right"==e?i.left+f.width-6:i.left-a.clientWidth-6,o.offsetLeft+=u.left,o.offsetLeft+="px",o.offsetArrowLeft=null,o.offsetArrowBottom=null,o.offsetArrowTop=s-t-6,o.offsetArrowTop<10?o.offsetArrowTop=10:o.offsetArrowTop>a.clientHeight-22&&(o.offsetArrowTop=a.clientHeight-22),o.offsetArrowTop+="px",o.offsetArrowRight=null}else{var r=a.clientWidth||50,n=parseInt(s-r/2);n<10&&(n=10),n+r>c.width-10&&(n=c.width-10-r),o.offsetLeft=n+"px",o.offsetArrowLeft=s-n-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>r-22&&(o.offsetArrowLeft=r-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){$("body").off("click",this._hide),this.hide().then((function(t){}))}}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},f=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:u},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,d=function(t){return p.call(t).slice(8,-1)},g="".split,v=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!m(t))return t;var o,r;if(e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;if("function"==typeof(o=t.valueOf)&&!m(r=o.call(t)))return r;if(!e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,T=function(t,e){return _.call(t,e)},S=f.document,A=m(S)&&m(S.createElement),O=!c&&!s((function(){return 7!=Object.defineProperty((t="div",A?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),j=Object.getOwnPropertyDescriptor,E={f:c?j:function(t,e){if(t=y(t),e=w(e,!0),O)try{return j(t,e)}catch(t){}if(T(t,e))return h(!l.f.call(t,e),t[e])}},x=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},k=Object.defineProperty,C={f:c?k:function(t,e,o){if(x(t),e=w(e,!0),x(o),O)try{return k(t,e,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},L=c?function(t,e,o){return C.f(t,e,h(1,o))}:function(t,e,o){return t[e]=o,t},R=function(t,e){try{L(f,t,e)}catch(o){f[t]=e}return e},P=f["__core-js_shared__"]||R("__core-js_shared__",{}),M=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(t){return M.call(t)});var D,I,B,H,F=P.inspectSource,N=f.WeakMap,V="function"==typeof N&&/native code/.test(F(N)),W=n((function(t){(t.exports=function(t,e){return P[t]||(P[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),z=0,U=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++z+U).toString(36)},X=W("keys"),q={},K=f.WeakMap;if(V){var Y=new K,J=Y.get,Q=Y.has,Z=Y.set;D=function(t,e){return Z.call(Y,t,e),e},I=function(t){return J.call(Y,t)||{}},B=function(t){return Q.call(Y,t)}}else{var tt=X[H="state"]||(X[H]=G(H));q[tt]=!0,D=function(t,e){return L(t,tt,e),e},I=function(t){return T(t,tt)?t[tt]:{}},B=function(t){return T(t,tt)}}var et,ot,rt={set:D,get:I,has:B,enforce:function(t){return B(t)?I(t):D(t,{})},getterFor:function(t){return function(e){var o;if(!m(e)||(o=I(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}},nt=n((function(t){var e=rt.get,o=rt.enforce,r=String(String).split("String");(t.exports=function(t,e,n,i){var s=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||T(n,"name")||L(n,"name",e),o(n).source=r.join("string"==typeof e?e:"")),t!==f?(s?!u&&t[e]&&(c=!0):delete t[e],c?t[e]=n:L(t,e,n)):c?t[e]=n:R(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),it=f,ft=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?ft(it[t])||ft(f[t]):it[t]&&it[t][e]||f[t]&&f[t][e]},ct=Math.ceil,ut=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ut:ct)(t)},lt=Math.min,ht=function(t){return t>0?lt(at(t),9007199254740991):0},pt=Math.max,dt=Math.min,gt=function(t){return function(e,o,r){var n,i=y(e),f=ht(i.length),s=function(t,e){var o=at(t);return o<0?pt(o+e,0):dt(o,e)}(r,f);if(t&&o!=o){for(;f>s;)if((n=i[s++])!=n)return!0}else for(;f>s;s++)if((t||s in i)&&i[s]===o)return t||s||0;return!t&&-1}},vt={includes:gt(!0),indexOf:gt(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var o,r=y(t),n=0,i=[];for(o in r)!T(q,o)&&T(r,o)&&i.push(o);for(;e.length>n;)T(r,o=e[n++])&&(~vt(i,o)||i.push(o));return i}(t,bt)}},mt={f:Object.getOwnPropertySymbols},wt=st("Reflect","ownKeys")||function(t){var e=yt.f(x(t)),o=mt.f;return o?e.concat(o(t)):e},_t=function(t,e){for(var o=wt(e),r=C.f,n=E.f,i=0;i<o.length;i++){var f=o[i];T(t,f)||r(t,f,n(e,f))}},Tt=/#|\.prototype\./,St=function(t,e){var o=Ot[At(t)];return o==jt||o!=$t&&("function"==typeof e?s(e):!!e)},At=St.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Ot=St.data={},$t=St.NATIVE="N",jt=St.POLYFILL="P",Et=St,xt=E.f,kt=Array.isArray||function(t){return"Array"==d(t)},Ct=function(t){return Object(b(t))},Lt=function(t,e,o){var r=w(e);r in t?C.f(t,r,h(0,o)):t[r]=o},Rt=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Pt=Rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=W("wks"),Dt=f.Symbol,It=Pt?Dt:Dt&&Dt.withoutSetter||G,Bt=function(t){return T(Mt,t)||(Rt&&T(Dt,t)?Mt[t]=Dt[t]:Mt[t]=It("Symbol."+t)),Mt[t]},Ht=Bt("species"),Ft=function(t,e){var o;return kt(t)&&("function"!=typeof(o=t.constructor)||o!==Array&&!kt(o.prototype)?m(o)&&null===(o=o[Ht])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===e?0:e)},Nt=st("navigator","userAgent")||"",Vt=f.process,Wt=Vt&&Vt.versions,zt=Wt&&Wt.v8;zt?ot=(et=zt.split("."))[0]+et[1]:Nt&&(!(et=Nt.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Nt.match(/Chrome\/(\d+)/))&&(ot=et[1]);var Ut,Gt=ot&&+ot,Xt=Bt("species"),qt=Bt("isConcatSpreadable"),Kt=Gt>=51||!s((function(){var t=[];return t[qt]=!1,t.concat()[0]!==t})),Yt=(Ut="concat",Gt>=51||!s((function(){var t=[];return(t.constructor={})[Xt]=function(){return{foo:1}},1!==t[Ut](Boolean).foo}))),Jt=function(t){if(!m(t))return!1;var e=t[qt];return void 0!==e?!!e:kt(t)};!function(t,e){var o,r,n,i,s,c=t.target,u=t.global,a=t.stat;if(o=u?f:a?f[c]||R(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!Et(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&L(i,"sham",!0),nt(o,r,i,t)}}({target:"Array",proto:!0,forced:!Kt||!Yt},{concat:function(t){var e,o,r,n,i,f=Ct(this),s=Ft(f,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?f:arguments[e],Jt(i)){if(c+(n=ht(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(o=0;o<n;o++,c++)o in i&&Lt(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Lt(s,c++,i)}return s.length=c,s}});const Qt=o;var Zt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!1,hideBodyScroll:!1},on:{"update:visible":function(e){t.visibleReal=e}}},[o("div",{ref:"main",staticClass:"bp-popover__main",style:{left:t.offsetLeft,top:t.offsetTop},attrs:{direction:t.directionData}},[t._t("default"),t._v(" "),o("div",{staticClass:"bp-popover__arrow",style:{left:t.offsetArrowLeft,top:t.offsetArrowTop,right:t.offsetArrowRight,bottom:t.offsetArrowBottom}})],2)])};Zt._withStripped=!0;var te={bpPopover:function(t,e,o,r,n,i,f,s,c,u){"boolean"!=typeof f&&(c=s,s=f,f=!1);var a,l="function"==typeof o?o.options:o;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,n&&(l.functional=!0)),r&&(l._scopeId=r),i?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=a):e&&(a=f?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),a)if(l.functional){var h=l.render;l.render=function(t,e){return a.call(e),h(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,a):[a]}return o}({render:Zt,staticRenderFns:[]},void 0,Qt,void 0,!1,void 0,!1,void 0,void 0,void 0)};export default te;
import t from"@bpui/libs";import e from"@bpui/dialog";var o={components:{widget:e.bpWidget},props:{visible:Boolean,mask:{default:!1,type:Boolean},maskClose:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object,direction:{default:"auto",type:String},trigger:{type:String},bind:{}},data:function(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible:function(t,e){this.visibleReal!=t&&(this.visibleReal=t,t!=e&&t&&this._show(this.direction))},visibleReal:function(t){this.$emit("update:visible",t)},bind:function(t,e){this._removeEvent(e),this._bindEvent(t)}},beforeMount:function(){this.visibleReal=this.visible},beforeDestroy:function(){$("body").off("click",this._hide)},mounted:function(){var t=this;this.$nextTick((function(){t.$parent.$forceUpdate()}))},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent:function(e){var o;e&&(o=t.dom.isVueObject(e)?e.$el:e,$(o).off("mouseover",this._onTrigger),$(o).off("mouseleave",this._onTriggerHide),$(o).off("click",this._onTrigger))},_bindEvent:function(e){var o;if((this._removeEvent(e),e)&&(o=t.dom.isVueObject(e)?e.$el:e,"hover"==this.trigger&&(t.device.browserIsMobile()?$(o).on("click",this._onTrigger):($(o).on("mouseover",this._onTrigger),$(o).on("mouseleave",this._onTriggerHide))),"click"==this.trigger)){var r=(t.device.browserIsMobile(),"click");$(o).off(r,this._onTrigger).on(r,this._onTrigger)}},_onTrigger:function(t){var e=this;this.visibleReal=!0,setTimeout((function(){$("body").off("click",e._hide).on("click",e._hide)}),10),this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1,$("body").off("click",this._hide)},_show:function(e){var o=this,r=this.bind;if(this.bind){var n;n=t.dom.isVueObject(r)?r.$el:r;var i=t.dom.getElementOffset(n),f={};f.height=n.clientHeight,f.width=n.clientWidth;var s,c=t.dom.getViewPort(),a=t.dom.getDocumentOffset();this.offsetTop=i.top+a.top,"top"==e?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):"bottom"==e?(this.directionData="bottom",this.offsetTop+=f.height):"left"==e?(this.directionData="left",this.offsetLeft=i.left+f.width):"right"==e?(this.directionData="right",this.offsetLeft=i.left+f.width):i.top+f.height/2>c.height/2?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=f.height),this.offsetTop=parseInt(this.offsetTop),this.offsetTop+="px",s="left"==e||"right"==e?parseInt(i.top+f.height/2):parseInt(i.left+f.width/2);var u=this.$refs.main;t.dom.probeDom(400,(function(){return u.clientWidth>0}),(function(){if("left"==e||"right"==e){var t=parseInt(s-u.clientHeight/2);t<10&&(t=10),t+u.clientHeight>c.height-10&&(t=c.height-10-u.clientHeight),o.offsetTop=parseInt(t+a.top)+"px",o.offsetLeft="right"==e?i.left+f.width-6:i.left-u.clientWidth-6,o.offsetLeft+=a.left,o.offsetLeft=parseInt(o.offsetLeft),o.offsetLeft+="px",o.offsetArrowLeft=null,o.offsetArrowBottom=null,o.offsetArrowTop=parseInt(s-t-6),o.offsetArrowTop<10?o.offsetArrowTop=10:o.offsetArrowTop>u.clientHeight-22&&(o.offsetArrowTop=parseInt(u.clientHeight-22)),o.offsetArrowTop+="px",o.offsetArrowRight=null}else{var r=parseInt(u.clientWidth||50),n=parseInt(s-r/2);n<10&&(n=10),n+r>c.width-10&&(n=c.width-10-r),o.offsetLeft=parseInt(n)+"px",o.offsetArrowLeft=parseInt(s-n)-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>r-22&&(o.offsetArrowLeft=r-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){$("body").off("click",this._hide),this.hide().then((function(t){}))}}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},f=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,l={f:u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},p={}.toString,d=function(t){return p.call(t).slice(8,-1)},g="".split,v=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!m(t))return t;var o,r;if(e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;if("function"==typeof(o=t.valueOf)&&!m(r=o.call(t)))return r;if(!e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,T=function(t,e){return _.call(t,e)},S=f.document,A=m(S)&&m(S.createElement),O=!c&&!s((function(){return 7!=Object.defineProperty((t="div",A?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),j=Object.getOwnPropertyDescriptor,E={f:c?j:function(t,e){if(t=y(t),e=w(e,!0),O)try{return j(t,e)}catch(t){}if(T(t,e))return h(!l.f.call(t,e),t[e])}},x=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},L=Object.defineProperty,k={f:c?L:function(t,e,o){if(x(t),e=w(e,!0),x(o),O)try{return L(t,e,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},C=c?function(t,e,o){return k.f(t,e,h(1,o))}:function(t,e,o){return t[e]=o,t},I=function(t,e){try{C(f,t,e)}catch(o){f[t]=e}return e},R=f["__core-js_shared__"]||I("__core-js_shared__",{}),P=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return P.call(t)});var M,D,B,H,F=R.inspectSource,N=f.WeakMap,V="function"==typeof N&&/native code/.test(F(N)),W=n((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),z=0,U=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++z+U).toString(36)},X=W("keys"),q={},K=f.WeakMap;if(V){var Y=new K,J=Y.get,Q=Y.has,Z=Y.set;M=function(t,e){return Z.call(Y,t,e),e},D=function(t){return J.call(Y,t)||{}},B=function(t){return Q.call(Y,t)}}else{var tt=X[H="state"]||(X[H]=G(H));q[tt]=!0,M=function(t,e){return C(t,tt,e),e},D=function(t){return T(t,tt)?t[tt]:{}},B=function(t){return T(t,tt)}}var et,ot,rt={set:M,get:D,has:B,enforce:function(t){return B(t)?D(t):M(t,{})},getterFor:function(t){return function(e){var o;if(!m(e)||(o=D(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}},nt=n((function(t){var e=rt.get,o=rt.enforce,r=String(String).split("String");(t.exports=function(t,e,n,i){var s=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,a=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||T(n,"name")||C(n,"name",e),o(n).source=r.join("string"==typeof e?e:"")),t!==f?(s?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=n:C(t,e,n)):c?t[e]=n:I(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),it=f,ft=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?ft(it[t])||ft(f[t]):it[t]&&it[t][e]||f[t]&&f[t][e]},ct=Math.ceil,at=Math.floor,ut=function(t){return isNaN(t=+t)?0:(t>0?at:ct)(t)},lt=Math.min,ht=function(t){return t>0?lt(ut(t),9007199254740991):0},pt=Math.max,dt=Math.min,gt=function(t){return function(e,o,r){var n,i=y(e),f=ht(i.length),s=function(t,e){var o=ut(t);return o<0?pt(o+e,0):dt(o,e)}(r,f);if(t&&o!=o){for(;f>s;)if((n=i[s++])!=n)return!0}else for(;f>s;s++)if((t||s in i)&&i[s]===o)return t||s||0;return!t&&-1}},vt={includes:gt(!0),indexOf:gt(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var o,r=y(t),n=0,i=[];for(o in r)!T(q,o)&&T(r,o)&&i.push(o);for(;e.length>n;)T(r,o=e[n++])&&(~vt(i,o)||i.push(o));return i}(t,bt)}},mt={f:Object.getOwnPropertySymbols},wt=st("Reflect","ownKeys")||function(t){var e=yt.f(x(t)),o=mt.f;return o?e.concat(o(t)):e},_t=function(t,e){for(var o=wt(e),r=k.f,n=E.f,i=0;i<o.length;i++){var f=o[i];T(t,f)||r(t,f,n(e,f))}},Tt=/#|\.prototype\./,St=function(t,e){var o=Ot[At(t)];return o==jt||o!=$t&&("function"==typeof e?s(e):!!e)},At=St.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Ot=St.data={},$t=St.NATIVE="N",jt=St.POLYFILL="P",Et=St,xt=E.f,Lt=Array.isArray||function(t){return"Array"==d(t)},kt=function(t){return Object(b(t))},Ct=function(t,e,o){var r=w(e);r in t?k.f(t,r,h(0,o)):t[r]=o},It=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Rt=It&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Pt=W("wks"),Mt=f.Symbol,Dt=Rt?Mt:Mt&&Mt.withoutSetter||G,Bt=function(t){return T(Pt,t)||(It&&T(Mt,t)?Pt[t]=Mt[t]:Pt[t]=Dt("Symbol."+t)),Pt[t]},Ht=Bt("species"),Ft=function(t,e){var o;return Lt(t)&&("function"!=typeof(o=t.constructor)||o!==Array&&!Lt(o.prototype)?m(o)&&null===(o=o[Ht])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===e?0:e)},Nt=st("navigator","userAgent")||"",Vt=f.process,Wt=Vt&&Vt.versions,zt=Wt&&Wt.v8;zt?ot=(et=zt.split("."))[0]+et[1]:Nt&&(!(et=Nt.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Nt.match(/Chrome\/(\d+)/))&&(ot=et[1]);var Ut,Gt=ot&&+ot,Xt=Bt("species"),qt=Bt("isConcatSpreadable"),Kt=Gt>=51||!s((function(){var t=[];return t[qt]=!1,t.concat()[0]!==t})),Yt=(Ut="concat",Gt>=51||!s((function(){var t=[];return(t.constructor={})[Xt]=function(){return{foo:1}},1!==t[Ut](Boolean).foo}))),Jt=function(t){if(!m(t))return!1;var e=t[qt];return void 0!==e?!!e:Lt(t)};!function(t,e){var o,r,n,i,s,c=t.target,a=t.global,u=t.stat;if(o=a?f:u?f[c]||I(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!Et(a?r:c+(u?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&C(i,"sham",!0),nt(o,r,i,t)}}({target:"Array",proto:!0,forced:!Kt||!Yt},{concat:function(t){var e,o,r,n,i,f=kt(this),s=Ft(f,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?f:arguments[e],Jt(i)){if(c+(n=ht(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(o=0;o<n;o++,c++)o in i&&Ct(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ct(s,c++,i)}return s.length=c,s}});const Qt=o;var Zt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!1,hideBodyScroll:!1},on:{"update:visible":function(e){t.visibleReal=e}}},[o("div",{ref:"main",staticClass:"bp-popover__main",style:{left:t.offsetLeft,top:t.offsetTop},attrs:{direction:t.directionData}},[t._t("default"),t._v(" "),o("div",{staticClass:"bp-popover__arrow",style:{left:t.offsetArrowLeft,top:t.offsetArrowTop,right:t.offsetArrowRight,bottom:t.offsetArrowBottom}})],2)])};Zt._withStripped=!0;var te={bpPopover:function(t,e,o,r,n,i,f,s,c,a){"boolean"!=typeof f&&(c=s,s=f,f=!1);var u,l="function"==typeof o?o.options:o;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,n&&(l.functional=!0)),r&&(l._scopeId=r),i?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=u):e&&(u=f?function(t){e.call(this,a(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(l.functional){var h=l.render;l.render=function(t,e){return u.call(e),h(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,u):[u]}return o}({render:Zt,staticRenderFns:[]},void 0,Qt,void 0,!1,void 0,!1,void 0,void 0,void 0)};export default te;
/*!
* bpui popover v0.0.14
* bpui popover v0.0.15
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.

@@ -219,2 +219,3 @@ * Released under the MIT License.

this.offsetTop = parseInt(this.offsetTop);
this.offsetTop += 'px';

@@ -245,9 +246,10 @@

this.offsetTop = mainOffset + docOffset.top + 'px';
this.offsetTop = parseInt(mainOffset + docOffset.top) + 'px';
this.offsetLeft = directionData == 'right'? offset.left+port.width-6: offset.left-main.clientWidth-6;
this.offsetLeft += docOffset.left;
this.offsetLeft = parseInt(this.offsetLeft);
this.offsetLeft += 'px';
this.offsetArrowLeft = null;
this.offsetArrowBottom = null;
this.offsetArrowTop = arrowOffset - mainOffset - 6;
this.offsetArrowTop = parseInt(arrowOffset - mainOffset - 6);
if (this.offsetArrowTop < 10) {

@@ -257,3 +259,3 @@ this.offsetArrowTop = 10;

else if (this.offsetArrowTop > main.clientHeight-22) {
this.offsetArrowTop = main.clientHeight-22;
this.offsetArrowTop = parseInt(main.clientHeight-22);
}

@@ -264,3 +266,3 @@ this.offsetArrowTop += 'px';

else {
let cw = main.clientWidth||50;
let cw = parseInt(main.clientWidth||50);

@@ -275,4 +277,4 @@ let mainOffset = parseInt(arrowOffset - cw/2);

this.offsetLeft = mainOffset + 'px';
this.offsetArrowLeft = arrowOffset - mainOffset - 6;
this.offsetLeft = parseInt(mainOffset) + 'px';
this.offsetArrowLeft = parseInt(arrowOffset - mainOffset) - 6;
if (this.offsetArrowLeft < 10) {

@@ -279,0 +281,0 @@ this.offsetArrowLeft = 10;

/*!
* bpui popover v0.0.14
* bpui popover v0.0.15
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@bpui/libs"),require("@bpui/dialog")):"function"==typeof define&&define.amd?define(["@bpui/libs","@bpui/dialog"],e):(t=t||self).bpPopover=e(t.bpLibs,t.bpDialog)}(this,(function(t,e){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var o={components:{widget:(e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e).bpWidget},props:{visible:Boolean,mask:{default:!1,type:Boolean},maskClose:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object,direction:{default:"auto",type:String},trigger:{type:String},bind:{}},data:function(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible:function(t,e){this.visibleReal!=t&&(this.visibleReal=t,t!=e&&t&&this._show(this.direction))},visibleReal:function(t){this.$emit("update:visible",t)},bind:function(t,e){this._removeEvent(e),this._bindEvent(t)}},beforeMount:function(){this.visibleReal=this.visible},beforeDestroy:function(){$("body").off("click",this._hide)},mounted:function(){var t=this;this.$nextTick((function(){t.$parent.$forceUpdate()}))},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent:function(e){var o;e&&(o=t.dom.isVueObject(e)?e.$el:e,$(o).off("mouseover",this._onTrigger),$(o).off("mouseleave",this._onTriggerHide),$(o).off("click",this._onTrigger))},_bindEvent:function(e){var o;if((this._removeEvent(e),e)&&(o=t.dom.isVueObject(e)?e.$el:e,"hover"==this.trigger&&(t.device.browserIsMobile()?$(o).on("click",this._onTrigger):($(o).on("mouseover",this._onTrigger),$(o).on("mouseleave",this._onTriggerHide))),"click"==this.trigger)){var r=(t.device.browserIsMobile(),"click");$(o).off(r,this._onTrigger).on(r,this._onTrigger)}},_onTrigger:function(t){var e=this;this.visibleReal=!0,setTimeout((function(){$("body").off("click",e._hide).on("click",e._hide)}),10),this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1,$("body").off("click",this._hide)},_show:function(e){var o=this,r=this.bind;if(this.bind){var n;n=t.dom.isVueObject(r)?r.$el:r;var i=t.dom.getElementOffset(n),f={};f.height=n.clientHeight,f.width=n.clientWidth;var s,c=t.dom.getViewPort(),u=t.dom.getDocumentOffset();this.offsetTop=i.top+u.top,"top"==e?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):"bottom"==e?(this.directionData="bottom",this.offsetTop+=f.height):"left"==e?(this.directionData="left",this.offsetLeft=i.left+f.width):"right"==e?(this.directionData="right",this.offsetLeft=i.left+f.width):i.top+f.height/2>c.height/2?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=f.height),this.offsetTop+="px",s="left"==e||"right"==e?parseInt(i.top+f.height/2):parseInt(i.left+f.width/2);var a=this.$refs.main;t.dom.probeDom(400,(function(){return a.clientWidth>0}),(function(){if("left"==e||"right"==e){var t=parseInt(s-a.clientHeight/2);t<10&&(t=10),t+a.clientHeight>c.height-10&&(t=c.height-10-a.clientHeight),o.offsetTop=t+u.top+"px",o.offsetLeft="right"==e?i.left+f.width-6:i.left-a.clientWidth-6,o.offsetLeft+=u.left,o.offsetLeft+="px",o.offsetArrowLeft=null,o.offsetArrowBottom=null,o.offsetArrowTop=s-t-6,o.offsetArrowTop<10?o.offsetArrowTop=10:o.offsetArrowTop>a.clientHeight-22&&(o.offsetArrowTop=a.clientHeight-22),o.offsetArrowTop+="px",o.offsetArrowRight=null}else{var r=a.clientWidth||50,n=parseInt(s-r/2);n<10&&(n=10),n+r>c.width-10&&(n=c.width-10-r),o.offsetLeft=n+"px",o.offsetArrowLeft=s-n-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>r-22&&(o.offsetArrowLeft=r-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){$("body").off("click",this._hide),this.hide().then((function(t){}))}}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},f=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:u},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h={}.toString,d=function(t){return h.call(t).slice(8,-1)},g="".split,v=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!m(t))return t;var o,r;if(e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;if("function"==typeof(o=t.valueOf)&&!m(r=o.call(t)))return r;if(!e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,T=function(t,e){return _.call(t,e)},S=f.document,A=m(S)&&m(S.createElement),O=!c&&!s((function(){return 7!=Object.defineProperty((t="div",A?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),j=Object.getOwnPropertyDescriptor,E={f:c?j:function(t,e){if(t=y(t),e=w(e,!0),O)try{return j(t,e)}catch(t){}if(T(t,e))return p(!l.f.call(t,e),t[e])}},x=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},L=Object.defineProperty,k={f:c?L:function(t,e,o){if(x(t),e=w(e,!0),x(o),O)try{return L(t,e,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},C=c?function(t,e,o){return k.f(t,e,p(1,o))}:function(t,e,o){return t[e]=o,t},R=function(t,e){try{C(f,t,e)}catch(o){f[t]=e}return e},P=f["__core-js_shared__"]||R("__core-js_shared__",{}),D=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(t){return D.call(t)});var M,I,B,H,F=P.inspectSource,N=f.WeakMap,V="function"==typeof N&&/native code/.test(F(N)),W=n((function(t){(t.exports=function(t,e){return P[t]||(P[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,z=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++q+z).toString(36)},G=W("keys"),X={},K=f.WeakMap;if(V){var Y=new K,J=Y.get,Q=Y.has,Z=Y.set;M=function(t,e){return Z.call(Y,t,e),e},I=function(t){return J.call(Y,t)||{}},B=function(t){return Q.call(Y,t)}}else{var tt=G[H="state"]||(G[H]=U(H));X[tt]=!0,M=function(t,e){return C(t,tt,e),e},I=function(t){return T(t,tt)?t[tt]:{}},B=function(t){return T(t,tt)}}var et,ot,rt={set:M,get:I,has:B,enforce:function(t){return B(t)?I(t):M(t,{})},getterFor:function(t){return function(e){var o;if(!m(e)||(o=I(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}},nt=n((function(t){var e=rt.get,o=rt.enforce,r=String(String).split("String");(t.exports=function(t,e,n,i){var s=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||T(n,"name")||C(n,"name",e),o(n).source=r.join("string"==typeof e?e:"")),t!==f?(s?!u&&t[e]&&(c=!0):delete t[e],c?t[e]=n:C(t,e,n)):c?t[e]=n:R(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),it=f,ft=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?ft(it[t])||ft(f[t]):it[t]&&it[t][e]||f[t]&&f[t][e]},ct=Math.ceil,ut=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ut:ct)(t)},lt=Math.min,pt=function(t){return t>0?lt(at(t),9007199254740991):0},ht=Math.max,dt=Math.min,gt=function(t){return function(e,o,r){var n,i=y(e),f=pt(i.length),s=function(t,e){var o=at(t);return o<0?ht(o+e,0):dt(o,e)}(r,f);if(t&&o!=o){for(;f>s;)if((n=i[s++])!=n)return!0}else for(;f>s;s++)if((t||s in i)&&i[s]===o)return t||s||0;return!t&&-1}},vt={includes:gt(!0),indexOf:gt(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var o,r=y(t),n=0,i=[];for(o in r)!T(X,o)&&T(r,o)&&i.push(o);for(;e.length>n;)T(r,o=e[n++])&&(~vt(i,o)||i.push(o));return i}(t,bt)}},mt={f:Object.getOwnPropertySymbols},wt=st("Reflect","ownKeys")||function(t){var e=yt.f(x(t)),o=mt.f;return o?e.concat(o(t)):e},_t=function(t,e){for(var o=wt(e),r=k.f,n=E.f,i=0;i<o.length;i++){var f=o[i];T(t,f)||r(t,f,n(e,f))}},Tt=/#|\.prototype\./,St=function(t,e){var o=Ot[At(t)];return o==$t||o!=jt&&("function"==typeof e?s(e):!!e)},At=St.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Ot=St.data={},jt=St.NATIVE="N",$t=St.POLYFILL="P",Et=St,xt=E.f,Lt=Array.isArray||function(t){return"Array"==d(t)},kt=function(t){return Object(b(t))},Ct=function(t,e,o){var r=w(e);r in t?k.f(t,r,p(0,o)):t[r]=o},Rt=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Pt=Rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=W("wks"),Mt=f.Symbol,It=Pt?Mt:Mt&&Mt.withoutSetter||U,Bt=function(t){return T(Dt,t)||(Rt&&T(Mt,t)?Dt[t]=Mt[t]:Dt[t]=It("Symbol."+t)),Dt[t]},Ht=Bt("species"),Ft=function(t,e){var o;return Lt(t)&&("function"!=typeof(o=t.constructor)||o!==Array&&!Lt(o.prototype)?m(o)&&null===(o=o[Ht])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===e?0:e)},Nt=st("navigator","userAgent")||"",Vt=f.process,Wt=Vt&&Vt.versions,qt=Wt&&Wt.v8;qt?ot=(et=qt.split("."))[0]+et[1]:Nt&&(!(et=Nt.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Nt.match(/Chrome\/(\d+)/))&&(ot=et[1]);var zt,Ut=ot&&+ot,Gt=Bt("species"),Xt=Bt("isConcatSpreadable"),Kt=Ut>=51||!s((function(){var t=[];return t[Xt]=!1,t.concat()[0]!==t})),Yt=(zt="concat",Ut>=51||!s((function(){var t=[];return(t.constructor={})[Gt]=function(){return{foo:1}},1!==t[zt](Boolean).foo}))),Jt=function(t){if(!m(t))return!1;var e=t[Xt];return void 0!==e?!!e:Lt(t)};!function(t,e){var o,r,n,i,s,c=t.target,u=t.global,a=t.stat;if(o=u?f:a?f[c]||R(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!Et(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&C(i,"sham",!0),nt(o,r,i,t)}}({target:"Array",proto:!0,forced:!Kt||!Yt},{concat:function(t){var e,o,r,n,i,f=kt(this),s=Ft(f,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?f:arguments[e],Jt(i)){if(c+(n=pt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(o=0;o<n;o++,c++)o in i&&Ct(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ct(s,c++,i)}return s.length=c,s}});const Qt=o;var Zt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!1,hideBodyScroll:!1},on:{"update:visible":function(e){t.visibleReal=e}}},[o("div",{ref:"main",staticClass:"bp-popover__main",style:{left:t.offsetLeft,top:t.offsetTop},attrs:{direction:t.directionData}},[t._t("default"),t._v(" "),o("div",{staticClass:"bp-popover__arrow",style:{left:t.offsetArrowLeft,top:t.offsetArrowTop,right:t.offsetArrowRight,bottom:t.offsetArrowBottom}})],2)])};Zt._withStripped=!0;return{bpPopover:function(t,e,o,r,n,i,f,s,c,u){"boolean"!=typeof f&&(c=s,s=f,f=!1);var a,l="function"==typeof o?o.options:o;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,n&&(l.functional=!0)),r&&(l._scopeId=r),i?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=a):e&&(a=f?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),a)if(l.functional){var p=l.render;l.render=function(t,e){return a.call(e),p(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,a):[a]}return o}({render:Zt,staticRenderFns:[]},void 0,Qt,void 0,!1,void 0,!1,void 0,void 0,void 0)}}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@bpui/libs"),require("@bpui/dialog")):"function"==typeof define&&define.amd?define(["@bpui/libs","@bpui/dialog"],e):(t=t||self).bpPopover=e(t.bpLibs,t.bpDialog)}(this,(function(t,e){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var o={components:{widget:(e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e).bpWidget},props:{visible:Boolean,mask:{default:!1,type:Boolean},maskClose:{default:!0,type:Boolean},pageClass:String|Array,pageStyle:String|Array|Object,direction:{default:"auto",type:String},trigger:{type:String},bind:{}},data:function(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible:function(t,e){this.visibleReal!=t&&(this.visibleReal=t,t!=e&&t&&this._show(this.direction))},visibleReal:function(t){this.$emit("update:visible",t)},bind:function(t,e){this._removeEvent(e),this._bindEvent(t)}},beforeMount:function(){this.visibleReal=this.visible},beforeDestroy:function(){$("body").off("click",this._hide)},mounted:function(){var t=this;this.$nextTick((function(){t.$parent.$forceUpdate()}))},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent:function(e){var o;e&&(o=t.dom.isVueObject(e)?e.$el:e,$(o).off("mouseover",this._onTrigger),$(o).off("mouseleave",this._onTriggerHide),$(o).off("click",this._onTrigger))},_bindEvent:function(e){var o;if((this._removeEvent(e),e)&&(o=t.dom.isVueObject(e)?e.$el:e,"hover"==this.trigger&&(t.device.browserIsMobile()?$(o).on("click",this._onTrigger):($(o).on("mouseover",this._onTrigger),$(o).on("mouseleave",this._onTriggerHide))),"click"==this.trigger)){var r=(t.device.browserIsMobile(),"click");$(o).off(r,this._onTrigger).on(r,this._onTrigger)}},_onTrigger:function(t){var e=this;this.visibleReal=!0,setTimeout((function(){$("body").off("click",e._hide).on("click",e._hide)}),10),this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1,$("body").off("click",this._hide)},_show:function(e){var o=this,r=this.bind;if(this.bind){var n;n=t.dom.isVueObject(r)?r.$el:r;var i=t.dom.getElementOffset(n),f={};f.height=n.clientHeight,f.width=n.clientWidth;var s,c=t.dom.getViewPort(),u=t.dom.getDocumentOffset();this.offsetTop=i.top+u.top,"top"==e?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):"bottom"==e?(this.directionData="bottom",this.offsetTop+=f.height):"left"==e?(this.directionData="left",this.offsetLeft=i.left+f.width):"right"==e?(this.directionData="right",this.offsetLeft=i.left+f.width):i.top+f.height/2>c.height/2?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=f.height),this.offsetTop=parseInt(this.offsetTop),this.offsetTop+="px",s="left"==e||"right"==e?parseInt(i.top+f.height/2):parseInt(i.left+f.width/2);var a=this.$refs.main;t.dom.probeDom(400,(function(){return a.clientWidth>0}),(function(){if("left"==e||"right"==e){var t=parseInt(s-a.clientHeight/2);t<10&&(t=10),t+a.clientHeight>c.height-10&&(t=c.height-10-a.clientHeight),o.offsetTop=parseInt(t+u.top)+"px",o.offsetLeft="right"==e?i.left+f.width-6:i.left-a.clientWidth-6,o.offsetLeft+=u.left,o.offsetLeft=parseInt(o.offsetLeft),o.offsetLeft+="px",o.offsetArrowLeft=null,o.offsetArrowBottom=null,o.offsetArrowTop=parseInt(s-t-6),o.offsetArrowTop<10?o.offsetArrowTop=10:o.offsetArrowTop>a.clientHeight-22&&(o.offsetArrowTop=parseInt(a.clientHeight-22)),o.offsetArrowTop+="px",o.offsetArrowRight=null}else{var r=parseInt(a.clientWidth||50),n=parseInt(s-r/2);n<10&&(n=10),n+r>c.width-10&&(n=c.width-10-r),o.offsetLeft=parseInt(n)+"px",o.offsetArrowLeft=parseInt(s-n)-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>r-22&&(o.offsetArrowLeft=r-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){$("body").off("click",this._hide),this.hide().then((function(t){}))}}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},f=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r&&r)||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:u},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h={}.toString,d=function(t){return h.call(t).slice(8,-1)},g="".split,v=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(b(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,e){if(!m(t))return t;var o,r;if(e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;if("function"==typeof(o=t.valueOf)&&!m(r=o.call(t)))return r;if(!e&&"function"==typeof(o=t.toString)&&!m(r=o.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,T=function(t,e){return _.call(t,e)},S=f.document,A=m(S)&&m(S.createElement),O=!c&&!s((function(){return 7!=Object.defineProperty((t="div",A?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),j=Object.getOwnPropertyDescriptor,E={f:c?j:function(t,e){if(t=y(t),e=w(e,!0),O)try{return j(t,e)}catch(t){}if(T(t,e))return p(!l.f.call(t,e),t[e])}},x=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},L=Object.defineProperty,k={f:c?L:function(t,e,o){if(x(t),e=w(e,!0),x(o),O)try{return L(t,e,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},C=c?function(t,e,o){return k.f(t,e,p(1,o))}:function(t,e,o){return t[e]=o,t},I=function(t,e){try{C(f,t,e)}catch(o){f[t]=e}return e},R=f["__core-js_shared__"]||I("__core-js_shared__",{}),P=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return P.call(t)});var D,M,B,H,F=R.inspectSource,N=f.WeakMap,V="function"==typeof N&&/native code/.test(F(N)),W=n((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),q=0,z=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++q+z).toString(36)},G=W("keys"),X={},K=f.WeakMap;if(V){var Y=new K,J=Y.get,Q=Y.has,Z=Y.set;D=function(t,e){return Z.call(Y,t,e),e},M=function(t){return J.call(Y,t)||{}},B=function(t){return Q.call(Y,t)}}else{var tt=G[H="state"]||(G[H]=U(H));X[tt]=!0,D=function(t,e){return C(t,tt,e),e},M=function(t){return T(t,tt)?t[tt]:{}},B=function(t){return T(t,tt)}}var et,ot,rt={set:D,get:M,has:B,enforce:function(t){return B(t)?M(t):D(t,{})},getterFor:function(t){return function(e){var o;if(!m(e)||(o=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}},nt=n((function(t){var e=rt.get,o=rt.enforce,r=String(String).split("String");(t.exports=function(t,e,n,i){var s=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||T(n,"name")||C(n,"name",e),o(n).source=r.join("string"==typeof e?e:"")),t!==f?(s?!u&&t[e]&&(c=!0):delete t[e],c?t[e]=n:C(t,e,n)):c?t[e]=n:I(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),it=f,ft=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?ft(it[t])||ft(f[t]):it[t]&&it[t][e]||f[t]&&f[t][e]},ct=Math.ceil,ut=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ut:ct)(t)},lt=Math.min,pt=function(t){return t>0?lt(at(t),9007199254740991):0},ht=Math.max,dt=Math.min,gt=function(t){return function(e,o,r){var n,i=y(e),f=pt(i.length),s=function(t,e){var o=at(t);return o<0?ht(o+e,0):dt(o,e)}(r,f);if(t&&o!=o){for(;f>s;)if((n=i[s++])!=n)return!0}else for(;f>s;s++)if((t||s in i)&&i[s]===o)return t||s||0;return!t&&-1}},vt={includes:gt(!0),indexOf:gt(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var o,r=y(t),n=0,i=[];for(o in r)!T(X,o)&&T(r,o)&&i.push(o);for(;e.length>n;)T(r,o=e[n++])&&(~vt(i,o)||i.push(o));return i}(t,bt)}},mt={f:Object.getOwnPropertySymbols},wt=st("Reflect","ownKeys")||function(t){var e=yt.f(x(t)),o=mt.f;return o?e.concat(o(t)):e},_t=function(t,e){for(var o=wt(e),r=k.f,n=E.f,i=0;i<o.length;i++){var f=o[i];T(t,f)||r(t,f,n(e,f))}},Tt=/#|\.prototype\./,St=function(t,e){var o=Ot[At(t)];return o==$t||o!=jt&&("function"==typeof e?s(e):!!e)},At=St.normalize=function(t){return String(t).replace(Tt,".").toLowerCase()},Ot=St.data={},jt=St.NATIVE="N",$t=St.POLYFILL="P",Et=St,xt=E.f,Lt=Array.isArray||function(t){return"Array"==d(t)},kt=function(t){return Object(b(t))},Ct=function(t,e,o){var r=w(e);r in t?k.f(t,r,p(0,o)):t[r]=o},It=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Rt=It&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Pt=W("wks"),Dt=f.Symbol,Mt=Rt?Dt:Dt&&Dt.withoutSetter||U,Bt=function(t){return T(Pt,t)||(It&&T(Dt,t)?Pt[t]=Dt[t]:Pt[t]=Mt("Symbol."+t)),Pt[t]},Ht=Bt("species"),Ft=function(t,e){var o;return Lt(t)&&("function"!=typeof(o=t.constructor)||o!==Array&&!Lt(o.prototype)?m(o)&&null===(o=o[Ht])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===e?0:e)},Nt=st("navigator","userAgent")||"",Vt=f.process,Wt=Vt&&Vt.versions,qt=Wt&&Wt.v8;qt?ot=(et=qt.split("."))[0]+et[1]:Nt&&(!(et=Nt.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Nt.match(/Chrome\/(\d+)/))&&(ot=et[1]);var zt,Ut=ot&&+ot,Gt=Bt("species"),Xt=Bt("isConcatSpreadable"),Kt=Ut>=51||!s((function(){var t=[];return t[Xt]=!1,t.concat()[0]!==t})),Yt=(zt="concat",Ut>=51||!s((function(){var t=[];return(t.constructor={})[Gt]=function(){return{foo:1}},1!==t[zt](Boolean).foo}))),Jt=function(t){if(!m(t))return!1;var e=t[Xt];return void 0!==e?!!e:Lt(t)};!function(t,e){var o,r,n,i,s,c=t.target,u=t.global,a=t.stat;if(o=u?f:a?f[c]||I(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!Et(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&C(i,"sham",!0),nt(o,r,i,t)}}({target:"Array",proto:!0,forced:!Kt||!Yt},{concat:function(t){var e,o,r,n,i,f=kt(this),s=Ft(f,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?f:arguments[e],Jt(i)){if(c+(n=pt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(o=0;o<n;o++,c++)o in i&&Ct(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ct(s,c++,i)}return s.length=c,s}});const Qt=o;var Zt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:t.visibleReal,maskClose:t.maskClose,mask:t.mask,pageClass:t.pageClass,pageStyle:t.pageStyle,preventEvent:!1,hideBodyScroll:!1},on:{"update:visible":function(e){t.visibleReal=e}}},[o("div",{ref:"main",staticClass:"bp-popover__main",style:{left:t.offsetLeft,top:t.offsetTop},attrs:{direction:t.directionData}},[t._t("default"),t._v(" "),o("div",{staticClass:"bp-popover__arrow",style:{left:t.offsetArrowLeft,top:t.offsetArrowTop,right:t.offsetArrowRight,bottom:t.offsetArrowBottom}})],2)])};Zt._withStripped=!0;return{bpPopover:function(t,e,o,r,n,i,f,s,c,u){"boolean"!=typeof f&&(c=s,s=f,f=!1);var a,l="function"==typeof o?o.options:o;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,n&&(l.functional=!0)),r&&(l._scopeId=r),i?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=a):e&&(a=f?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),a)if(l.functional){var p=l.render;l.render=function(t,e){return a.call(e),p(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,a):[a]}return o}({render:Zt,staticRenderFns:[]},void 0,Qt,void 0,!1,void 0,!1,void 0,void 0,void 0)}}));

@@ -38,3 +38,3 @@ {

"name": "@bpui/popover",
"version": "0.0.14"
"version": "0.0.15"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc