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.12 to 0.0.13

LICENSE

6

dist/index.common.js

@@ -0,1 +1,7 @@

/*!
* bpui popover v0.0.13
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/
'use strict';

@@ -2,0 +8,0 @@

7

dist/index.common.min.js
/*!
* bpui popover v0.0.12
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* bpui popover v0.0.13
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/'use strict';function _interopDefault(a){return a&&"object"==typeof a&&"default"in a?a["default"]:a}var bpLibs=_interopDefault(require("@bpui/libs")),bpDialog=_interopDefault(require("@bpui/dialog")),script={components:{widget:bpDialog.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(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible(a,b){this.visibleReal!=a&&(this.visibleReal=a,a!=b&&a&&this._show(this.direction))},visibleReal(a){this.$emit("update:visible",a)},bind(a,b){this._removeEvent(b),this._bindEvent(a)}},beforeMount(){this.visibleReal=this.visible},beforeDestroy(){$("body").off("click",this._hide)},mounted(){$("body").off("click",this._hide).on("click",this._hide),this.$nextTick(()=>{this.$parent.$forceUpdate()})},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent(a){if(a){let b;b=bpLibs.dom.isVueObject(a)?a.$el:a,$(b).off("mouseover",this._onTrigger),$(b).off("mouseleave",this._onTriggerHide),$(b).off("click",this._onTrigger)}},_bindEvent(a){if(this._removeEvent(a),a){let b;if(b=bpLibs.dom.isVueObject(a)?a.$el:a,"hover"==this.trigger&&(bpLibs.device.browserIsMobile()?$(b).on("click",this._onTrigger):($(b).on("mouseover",this._onTrigger),$(b).on("mouseleave",this._onTriggerHide))),"click"==this.trigger){let a=bpLibs.device.browserIsMobile()?"click":"click";$(b).off(a,this._onTrigger).on(a,this._onTrigger)}}},_onTrigger(){this.visibleReal=!0,this._show(this.direction)},_onTriggerHide(){this.visibleReal=!1},_show:function(a){let b=this.bind;if(!this.bind)return;let c=bpLibs.dom.isVueObject(b)?b.$el:b;let d=bpLibs.dom.getElementOffset(c),e={};e.height=c.clientHeight,e.width=c.clientWidth;let f=bpLibs.dom.getViewPort(),g=bpLibs.dom.getDocumentOffset();this.offsetTop=d.top+g.top,"top"==a?(this.directionData="top",this.offsetTop-=e.height,this.offsetTop-=8):"bottom"==a?(this.directionData="bottom",this.offsetTop+=e.height):"left"==a?(this.directionData="left",this.offsetLeft=d.left+e.width):"right"==a?(this.directionData="right",this.offsetLeft=d.left+e.width):d.top+e.height/2>f.height/2?(this.directionData="top",this.offsetTop-=e.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=e.height),this.offsetTop+="px";let h="left"==a||"right"==a?parseInt(d.top+e.height/2):parseInt(d.left+e.width/2);const i=10;let j=this.$refs.main;bpLibs.dom.probeDom(200,()=>0<j.clientWidth,()=>{if("left"==a||"right"==a){let b=parseInt(h-j.clientHeight/2);b<i&&(b=i),b+j.clientHeight>f.height-i&&(b=f.height-i-j.clientHeight),this.offsetTop=b+g.top+"px",this.offsetLeft="right"==a?d.left+e.width-6:d.left-j.clientWidth-6,this.offsetLeft+=g.left,this.offsetLeft+="px",this.offsetArrowLeft=null,this.offsetArrowBottom=null,this.offsetArrowTop=h-b-6,10>this.offsetArrowTop?this.offsetArrowTop=10:this.offsetArrowTop>j.clientHeight-22&&(this.offsetArrowTop=j.clientHeight-22),this.offsetArrowTop+="px",this.offsetArrowRight=null}else{let a=parseInt(h-j.clientWidth/2);a<i&&(a=i),a+j.clientWidth>f.width-i&&(a=f.width-i-j.clientWidth),this.offsetLeft=a+"px",this.offsetArrowLeft=h-a-6,10>this.offsetArrowLeft?this.offsetArrowLeft=10:this.offsetArrowLeft>j.clientWidth-22&&(this.offsetArrowLeft=j.clientWidth-22),this.offsetArrowLeft+="px",this.offsetArrowBottom=null,this.offsetArrowTop=null,this.offsetArrowRight=null}})},_hide(){this.hide().then(()=>{})}}};function normalizeComponent(a,b,c,d,e,f,g,h,i,j){"boolean"!=typeof g&&(i=h,h=g,g=!1);const k="function"==typeof c?c.options:c;a&&a.render&&(k.render=a.render,k.staticRenderFns=a.staticRenderFns,k._compiled=!0,e&&(k.functional=!0)),d&&(k._scopeId=d);let l;if(f?(l=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,a||"undefined"==typeof __VUE_SSR_CONTEXT__||(a=__VUE_SSR_CONTEXT__),b&&b.call(this,i(a)),a&&a._registeredComponents&&a._registeredComponents.add(f)},k._ssrRegister=l):b&&(l=g?function(a){b.call(this,j(a,this.$root.$options.shadowRoot))}:function(a){b.call(this,h(a))}),l)if(k.functional){const a=k.render;k.render=function(b,c){return l.call(c),a(b,c)}}else{const a=k.beforeCreate;k.beforeCreate=a?[].concat(a,l):[l]}return c}const __vue_script__=script;var __vue_render__=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:a.visibleReal,maskClose:a.maskClose,mask:a.mask,pageClass:a.pageClass,pageStyle:a.pageStyle,preventEvent:!1},on:{"update:visible":function(b){a.visibleReal=b}}},[c("div",{ref:"main",staticClass:"bp-popover__main",style:{left:a.offsetLeft,top:a.offsetTop},attrs:{direction:a.directionData}},[a._t("default"),a._v(" "),c("div",{staticClass:"bp-popover__arrow",style:{left:a.offsetArrowLeft,top:a.offsetArrowTop,right:a.offsetArrowRight,bottom:a.offsetArrowBottom}})],2)])},__vue_staticRenderFns__=[];__vue_render__._withStripped=!0;const __vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},void 0,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0);var index={bpPopover:__vue_component__};module.exports=index;
*/
"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;$("body").off("click",this._hide).on("click",this._hide),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){this.visibleReal=!0,this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1},_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(200,(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=parseInt(s-a.clientWidth/2);r<10&&(r=10),r+a.clientWidth>c.width-10&&(r=c.width-10-a.clientWidth),o.offsetLeft=r+"px",o.offsetArrowLeft=s-r-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>a.clientWidth-22&&(o.offsetArrowLeft=a.clientWidth-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){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},C=Object.defineProperty,L={f:c?C:function(t,e,o){if(x(t),e=w(e,!0),x(o),O)try{return C(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}},R=c?function(t,e,o){return L.f(t,e,h(1,o))}:function(t,e,o){return t[e]=o,t},k=function(t,e){try{R(f,t,e)}catch(o){f[t]=e}return e},P=f["__core-js_shared__"]||k("__core-js_shared__",{}),M=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(t){return M.call(t)});var D,I,W,H,B=P.inspectSource,F=f.WeakMap,N="function"==typeof F&&/native code/.test(B(F)),V=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=V("keys"),X={},K=f.WeakMap;if(N){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)||{}},W=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 R(t,tt,e),e},I=function(t){return T(t,tt)?t[tt]:{}},W=function(t){return T(t,tt)}}var et,ot,rt={set:D,get:I,has:W,enforce:function(t){return W(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")||R(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:R(t,e,n)):c?t[e]=n:k(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||B(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=L.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==Et||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",Et=St.POLYFILL="P",$t=St,xt=E.f,Ct=Array.isArray||function(t){return"Array"==d(t)},Lt=function(t){return Object(b(t))},Rt=function(t,e,o){var r=w(e);r in t?L.f(t,r,h(0,o)):t[r]=o},kt=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Pt=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=V("wks"),Dt=f.Symbol,It=Pt?Dt:Dt&&Dt.withoutSetter||U,Wt=function(t){return T(Mt,t)||(kt&&T(Dt,t)?Mt[t]=Dt[t]:Mt[t]=It("Symbol."+t)),Mt[t]},Ht=Wt("species"),Bt=function(t,e){var o;return Ct(t)&&("function"!=typeof(o=t.constructor)||o!==Array&&!Ct(o.prototype)?m(o)&&null===(o=o[Ht])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===e?0:e)},Ft=st("navigator","userAgent")||"",Nt=f.process,Vt=Nt&&Nt.versions,qt=Vt&&Vt.v8;qt?ot=(et=qt.split("."))[0]+et[1]:Ft&&(!(et=Ft.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Ft.match(/Chrome\/(\d+)/))&&(ot=et[1]);var zt,Ut=ot&&+ot,Gt=Wt("species"),Xt=Wt("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:Ct(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]||k(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!$t(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&R(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=Lt(this),s=Bt(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&&Rt(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Rt(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},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;

@@ -0,1 +1,7 @@

/*!
* bpui popover v0.0.13
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/
import bpLibs from '@bpui/libs';

@@ -2,0 +8,0 @@ import bpDialog from '@bpui/dialog';

/*!
* bpui popover v0.0.12
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* bpui popover v0.0.13
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/import bpLibs from"@bpui/libs";import bpDialog from"@bpui/dialog";var script={components:{widget:bpDialog.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(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible(a,b){this.visibleReal!=a&&(this.visibleReal=a,a!=b&&a&&this._show(this.direction))},visibleReal(a){this.$emit("update:visible",a)},bind(a,b){this._removeEvent(b),this._bindEvent(a)}},beforeMount(){this.visibleReal=this.visible},beforeDestroy(){$("body").off("click",this._hide)},mounted(){$("body").off("click",this._hide).on("click",this._hide),this.$nextTick(()=>{this.$parent.$forceUpdate()})},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent(a){if(a){let b;b=bpLibs.dom.isVueObject(a)?a.$el:a,$(b).off("mouseover",this._onTrigger),$(b).off("mouseleave",this._onTriggerHide),$(b).off("click",this._onTrigger)}},_bindEvent(a){if(this._removeEvent(a),a){let b;if(b=bpLibs.dom.isVueObject(a)?a.$el:a,"hover"==this.trigger&&(bpLibs.device.browserIsMobile()?$(b).on("click",this._onTrigger):($(b).on("mouseover",this._onTrigger),$(b).on("mouseleave",this._onTriggerHide))),"click"==this.trigger){let a=bpLibs.device.browserIsMobile()?"click":"click";$(b).off(a,this._onTrigger).on(a,this._onTrigger)}}},_onTrigger(){this.visibleReal=!0,this._show(this.direction)},_onTriggerHide(){this.visibleReal=!1},_show:function(a){let b=this.bind;if(!this.bind)return;let c=bpLibs.dom.isVueObject(b)?b.$el:b;let d=bpLibs.dom.getElementOffset(c),e={};e.height=c.clientHeight,e.width=c.clientWidth;let f=bpLibs.dom.getViewPort(),g=bpLibs.dom.getDocumentOffset();this.offsetTop=d.top+g.top,"top"==a?(this.directionData="top",this.offsetTop-=e.height,this.offsetTop-=8):"bottom"==a?(this.directionData="bottom",this.offsetTop+=e.height):"left"==a?(this.directionData="left",this.offsetLeft=d.left+e.width):"right"==a?(this.directionData="right",this.offsetLeft=d.left+e.width):d.top+e.height/2>f.height/2?(this.directionData="top",this.offsetTop-=e.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=e.height),this.offsetTop+="px";let h="left"==a||"right"==a?parseInt(d.top+e.height/2):parseInt(d.left+e.width/2);const i=10;let j=this.$refs.main;bpLibs.dom.probeDom(200,()=>0<j.clientWidth,()=>{if("left"==a||"right"==a){let b=parseInt(h-j.clientHeight/2);b<i&&(b=i),b+j.clientHeight>f.height-i&&(b=f.height-i-j.clientHeight),this.offsetTop=b+g.top+"px",this.offsetLeft="right"==a?d.left+e.width-6:d.left-j.clientWidth-6,this.offsetLeft+=g.left,this.offsetLeft+="px",this.offsetArrowLeft=null,this.offsetArrowBottom=null,this.offsetArrowTop=h-b-6,10>this.offsetArrowTop?this.offsetArrowTop=10:this.offsetArrowTop>j.clientHeight-22&&(this.offsetArrowTop=j.clientHeight-22),this.offsetArrowTop+="px",this.offsetArrowRight=null}else{let a=parseInt(h-j.clientWidth/2);a<i&&(a=i),a+j.clientWidth>f.width-i&&(a=f.width-i-j.clientWidth),this.offsetLeft=a+"px",this.offsetArrowLeft=h-a-6,10>this.offsetArrowLeft?this.offsetArrowLeft=10:this.offsetArrowLeft>j.clientWidth-22&&(this.offsetArrowLeft=j.clientWidth-22),this.offsetArrowLeft+="px",this.offsetArrowBottom=null,this.offsetArrowTop=null,this.offsetArrowRight=null}})},_hide(){this.hide().then(()=>{})}}};function normalizeComponent(a,b,c,d,e,f,g,h,i,j){"boolean"!=typeof g&&(i=h,h=g,g=!1);const k="function"==typeof c?c.options:c;a&&a.render&&(k.render=a.render,k.staticRenderFns=a.staticRenderFns,k._compiled=!0,e&&(k.functional=!0)),d&&(k._scopeId=d);let l;if(f?(l=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,a||"undefined"==typeof __VUE_SSR_CONTEXT__||(a=__VUE_SSR_CONTEXT__),b&&b.call(this,i(a)),a&&a._registeredComponents&&a._registeredComponents.add(f)},k._ssrRegister=l):b&&(l=g?function(a){b.call(this,j(a,this.$root.$options.shadowRoot))}:function(a){b.call(this,h(a))}),l)if(k.functional){const a=k.render;k.render=function(b,c){return l.call(c),a(b,c)}}else{const a=k.beforeCreate;k.beforeCreate=a?[].concat(a,l):[l]}return c}const __vue_script__=script;var __vue_render__=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:a.visibleReal,maskClose:a.maskClose,mask:a.mask,pageClass:a.pageClass,pageStyle:a.pageStyle,preventEvent:!1},on:{"update:visible":function(b){a.visibleReal=b}}},[c("div",{ref:"main",staticClass:"bp-popover__main",style:{left:a.offsetLeft,top:a.offsetTop},attrs:{direction:a.directionData}},[a._t("default"),a._v(" "),c("div",{staticClass:"bp-popover__arrow",style:{left:a.offsetArrowLeft,top:a.offsetArrowTop,right:a.offsetArrowRight,bottom:a.offsetArrowBottom}})],2)])},__vue_staticRenderFns__=[];__vue_render__._withStripped=!0;const __vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},void 0,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0);var index={bpPopover:__vue_component__};export default index;
*/
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;$("body").off("click",this._hide).on("click",this._hide),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){this.visibleReal=!0,this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1},_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(200,(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=parseInt(s-a.clientWidth/2);r<10&&(r=10),r+a.clientWidth>c.width-10&&(r=c.width-10-a.clientWidth),o.offsetLeft=r+"px",o.offsetArrowLeft=s-r-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>a.clientWidth-22&&(o.offsetArrowLeft=a.clientWidth-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){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},C=Object.defineProperty,L={f:c?C:function(t,e,o){if(x(t),e=w(e,!0),x(o),O)try{return C(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}},R=c?function(t,e,o){return L.f(t,e,h(1,o))}:function(t,e,o){return t[e]=o,t},k=function(t,e){try{R(f,t,e)}catch(o){f[t]=e}return e},P=f["__core-js_shared__"]||k("__core-js_shared__",{}),M=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(t){return M.call(t)});var D,I,W,H,B=P.inspectSource,F=f.WeakMap,N="function"==typeof F&&/native code/.test(B(F)),V=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=V("keys"),q={},K=f.WeakMap;if(N){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)||{}},W=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 R(t,tt,e),e},I=function(t){return T(t,tt)?t[tt]:{}},W=function(t){return T(t,tt)}}var et,ot,rt={set:D,get:I,has:W,enforce:function(t){return W(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")||R(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:R(t,e,n)):c?t[e]=n:k(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||B(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=L.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==Et||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",Et=St.POLYFILL="P",$t=St,xt=E.f,Ct=Array.isArray||function(t){return"Array"==d(t)},Lt=function(t){return Object(b(t))},Rt=function(t,e,o){var r=w(e);r in t?L.f(t,r,h(0,o)):t[r]=o},kt=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Pt=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=V("wks"),Dt=f.Symbol,It=Pt?Dt:Dt&&Dt.withoutSetter||G,Wt=function(t){return T(Mt,t)||(kt&&T(Dt,t)?Mt[t]=Dt[t]:Mt[t]=It("Symbol."+t)),Mt[t]},Ht=Wt("species"),Bt=function(t,e){var o;return Ct(t)&&("function"!=typeof(o=t.constructor)||o!==Array&&!Ct(o.prototype)?m(o)&&null===(o=o[Ht])&&(o=void 0):o=void 0),new(void 0===o?Array:o)(0===e?0:e)},Ft=st("navigator","userAgent")||"",Nt=f.process,Vt=Nt&&Nt.versions,zt=Vt&&Vt.v8;zt?ot=(et=zt.split("."))[0]+et[1]:Ft&&(!(et=Ft.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Ft.match(/Chrome\/(\d+)/))&&(ot=et[1]);var Ut,Gt=ot&&+ot,Xt=Wt("species"),qt=Wt("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:Ct(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]||k(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!$t(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&R(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=Lt(this),s=Bt(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&&Rt(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Rt(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},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;

@@ -0,1 +1,7 @@

/*!
* bpui popover v0.0.13
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/
(function (global, factory) {

@@ -2,0 +8,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@bpui/libs'), require('@bpui/dialog')) :

/*!
* bpui popover v0.0.12
* Copyright (c) 2020 Copyright bp All Rights Reserved.
* bpui popover v0.0.13
* Copyright (c) 2020 Copyright bpoint.lee@live.com All Rights Reserved.
* Released under the MIT License.
*/(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b(require("@bpui/libs"),require("@bpui/dialog")):"function"==typeof define&&define.amd?define(["@bpui/libs","@bpui/dialog"],b):(a=a||self,a.bpPopover=b(a.bpLibs,a.bpDialog))})(this,function(a,b){'use strict';a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a["default"]:a,b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b["default"]:b;var c={components:{widget:b.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(){return{visibleReal:!1,directionData:"auto",offsetTop:0,offsetLeft:0,offsetArrowLeft:null,offsetArrowTop:null,offsetArrowBottom:null,offsetArrowRight:null}},watch:{visible(a,b){this.visibleReal!=a&&(this.visibleReal=a,a!=b&&a&&this._show(this.direction))},visibleReal(a){this.$emit("update:visible",a)},bind(a,b){this._removeEvent(b),this._bindEvent(a)}},beforeMount(){this.visibleReal=this.visible},beforeDestroy(){$("body").off("click",this._hide)},mounted(){$("body").off("click",this._hide).on("click",this._hide),this.$nextTick(()=>{this.$parent.$forceUpdate()})},methods:{show:function(){return this.$refs.widget.show()},hide:function(){return this.$refs.widget.hide()},_removeEvent(b){if(b){let c;c=a.dom.isVueObject(b)?b.$el:b,$(c).off("mouseover",this._onTrigger),$(c).off("mouseleave",this._onTriggerHide),$(c).off("click",this._onTrigger)}},_bindEvent(b){if(this._removeEvent(b),b){let c;if(c=a.dom.isVueObject(b)?b.$el:b,"hover"==this.trigger&&(a.device.browserIsMobile()?$(c).on("click",this._onTrigger):($(c).on("mouseover",this._onTrigger),$(c).on("mouseleave",this._onTriggerHide))),"click"==this.trigger){let b=a.device.browserIsMobile()?"click":"click";$(c).off(b,this._onTrigger).on(b,this._onTrigger)}}},_onTrigger(){this.visibleReal=!0,this._show(this.direction)},_onTriggerHide(){this.visibleReal=!1},_show:function(b){let c=this.bind;if(!this.bind)return;let d=a.dom.isVueObject(c)?c.$el:c;let e=a.dom.getElementOffset(d),f={};f.height=d.clientHeight,f.width=d.clientWidth;let g=a.dom.getViewPort(),h=a.dom.getDocumentOffset();this.offsetTop=e.top+h.top,"top"==b?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):"bottom"==b?(this.directionData="bottom",this.offsetTop+=f.height):"left"==b?(this.directionData="left",this.offsetLeft=e.left+f.width):"right"==b?(this.directionData="right",this.offsetLeft=e.left+f.width):e.top+f.height/2>g.height/2?(this.directionData="top",this.offsetTop-=f.height,this.offsetTop-=8):(this.directionData="bottom",this.offsetTop+=f.height),this.offsetTop+="px";let i="left"==b||"right"==b?parseInt(e.top+f.height/2):parseInt(e.left+f.width/2);const j=10;let k=this.$refs.main;a.dom.probeDom(200,()=>0<k.clientWidth,()=>{if("left"==b||"right"==b){let a=parseInt(i-k.clientHeight/2);a<j&&(a=j),a+k.clientHeight>g.height-j&&(a=g.height-j-k.clientHeight),this.offsetTop=a+h.top+"px",this.offsetLeft="right"==b?e.left+f.width-6:e.left-k.clientWidth-6,this.offsetLeft+=h.left,this.offsetLeft+="px",this.offsetArrowLeft=null,this.offsetArrowBottom=null,this.offsetArrowTop=i-a-6,10>this.offsetArrowTop?this.offsetArrowTop=10:this.offsetArrowTop>k.clientHeight-22&&(this.offsetArrowTop=k.clientHeight-22),this.offsetArrowTop+="px",this.offsetArrowRight=null}else{let a=parseInt(i-k.clientWidth/2);a<j&&(a=j),a+k.clientWidth>g.width-j&&(a=g.width-j-k.clientWidth),this.offsetLeft=a+"px",this.offsetArrowLeft=i-a-6,10>this.offsetArrowLeft?this.offsetArrowLeft=10:this.offsetArrowLeft>k.clientWidth-22&&(this.offsetArrowLeft=k.clientWidth-22),this.offsetArrowLeft+="px",this.offsetArrowBottom=null,this.offsetArrowTop=null,this.offsetArrowRight=null}})},_hide(){this.hide().then(()=>{})}}};var d=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("widget",{ref:"widget",staticClass:"bp-popover",attrs:{visible:a.visibleReal,maskClose:a.maskClose,mask:a.mask,pageClass:a.pageClass,pageStyle:a.pageStyle,preventEvent:!1},on:{"update:visible":function(b){a.visibleReal=b}}},[c("div",{ref:"main",staticClass:"bp-popover__main",style:{left:a.offsetLeft,top:a.offsetTop},attrs:{direction:a.directionData}},[a._t("default"),a._v(" "),c("div",{staticClass:"bp-popover__arrow",style:{left:a.offsetArrowLeft,top:a.offsetArrowTop,right:a.offsetArrowRight,bottom:a.offsetArrowBottom}})],2)])};d._withStripped=!0;const e=function(a,b,c,d,e,f,g,h,i,j){"boolean"!=typeof g&&(i=h,h=g,g=!1);const k="function"==typeof c?c.options:c;a&&a.render&&(k.render=a.render,k.staticRenderFns=a.staticRenderFns,k._compiled=!0,e&&(k.functional=!0)),d&&(k._scopeId=d);let l;if(f?(l=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,a||"undefined"==typeof __VUE_SSR_CONTEXT__||(a=__VUE_SSR_CONTEXT__),b&&b.call(this,i(a)),a&&a._registeredComponents&&a._registeredComponents.add(f)},k._ssrRegister=l):b&&(l=g?function(a){b.call(this,j(a,this.$root.$options.shadowRoot))}:function(a){b.call(this,h(a))}),l)if(k.functional){const a=k.render;k.render=function(b,c){return l.call(c),a(b,c)}}else{const a=k.beforeCreate;k.beforeCreate=a?[].concat(a,l):[l]}return c}({render:d,staticRenderFns:[]},void 0,c,void 0,!1,void 0,!1,void 0,void 0,void 0);return{bpPopover:e}});
*/
!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;$("body").off("click",this._hide).on("click",this._hide),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){this.visibleReal=!0,this._show(this.direction)},_onTriggerHide:function(t){this.visibleReal=!1},_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(200,(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=parseInt(s-a.clientWidth/2);r<10&&(r=10),r+a.clientWidth>c.width-10&&(r=c.width-10-a.clientWidth),o.offsetLeft=r+"px",o.offsetArrowLeft=s-r-6,o.offsetArrowLeft<10?o.offsetArrowLeft=10:o.offsetArrowLeft>a.clientWidth-22&&(o.offsetArrowLeft=a.clientWidth-22),o.offsetArrowLeft+="px",o.offsetArrowBottom=null,o.offsetArrowTop=null,o.offsetArrowRight=null}}))}},_hide:function(){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,C={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}},R=c?function(t,e,o){return C.f(t,e,p(1,o))}:function(t,e,o){return t[e]=o,t},k=function(t,e){try{R(f,t,e)}catch(o){f[t]=e}return e},P=f["__core-js_shared__"]||k("__core-js_shared__",{}),D=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(t){return D.call(t)});var M,I,W,H,B=P.inspectSource,F=f.WeakMap,N="function"==typeof F&&/native code/.test(B(F)),V=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=V("keys"),X={},K=f.WeakMap;if(N){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)||{}},W=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 R(t,tt,e),e},I=function(t){return T(t,tt)?t[tt]:{}},W=function(t){return T(t,tt)}}var et,ot,rt={set:M,get:I,has:W,enforce:function(t){return W(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")||R(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:R(t,e,n)):c?t[e]=n:k(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||B(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=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==Et||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",Et=St.POLYFILL="P",$t=St,xt=E.f,Lt=Array.isArray||function(t){return"Array"==d(t)},Ct=function(t){return Object(b(t))},Rt=function(t,e,o){var r=w(e);r in t?C.f(t,r,p(0,o)):t[r]=o},kt=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),Pt=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=V("wks"),Mt=f.Symbol,It=Pt?Mt:Mt&&Mt.withoutSetter||U,Wt=function(t){return T(Dt,t)||(kt&&T(Mt,t)?Dt[t]=Mt[t]:Dt[t]=It("Symbol."+t)),Dt[t]},Ht=Wt("species"),Bt=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)},Ft=st("navigator","userAgent")||"",Nt=f.process,Vt=Nt&&Nt.versions,qt=Vt&&Vt.v8;qt?ot=(et=qt.split("."))[0]+et[1]:Ft&&(!(et=Ft.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Ft.match(/Chrome\/(\d+)/))&&(ot=et[1]);var zt,Ut=ot&&+ot,Gt=Wt("species"),Xt=Wt("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]||k(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(s=xt(o,r))&&s.value:o[r],!$t(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;_t(i,n)}(t.sham||n&&n.sham)&&R(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=Bt(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&&Rt(s,c,i[o])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Rt(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},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)}}));
{
"description": "popover",
"dependencies": {
"@bpui/dialog": "^0.1.9",
"@bpui/libs": "^0.2.5"
"@bpui/dialog": "^0.1.10",
"@bpui/libs": "^0.2.6"
},

@@ -38,3 +38,3 @@ "directories": {},

"name": "@bpui/popover",
"version": "0.0.12"
"version": "0.0.13"
}

@@ -15,3 +15,2 @@ # Introduce

import '@bpui/libs/style';
import '@bpui/component-utils/style';
import '@bpui/dialog/style';

@@ -18,0 +17,0 @@ import '@bpui/popover/style';

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

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