!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4d363038-4733-4f71-b743-7593d5ceeaed",e._sentryDebugIdIdentifier="sentry-dbid-4d363038-4733-4f71-b743-7593d5ceeaed")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"14f6a097859d0d8b3d6211949e2cbf557516f71e"},(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1454:function(e,t,o){e.exports={}},1455:function(e,t,o){e.exports=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},o.p="/dist/",o(o.s=141)}({0:function(e,t,o){"use strict";function n(e,t,o,n,r,c,l,f){var d,h="function"==typeof e?e.options:e;if(t&&(h.render=t,h.staticRenderFns=o,h._compiled=!0),n&&(h.functional=!0),c&&(h._scopeId="data-v-"+c),l?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},h._ssrRegister=d):r&&(d=f?function(){r.call(this,this.$root.$options.shadowRoot)}:r),d)if(h.functional){h._injectStyles=d;var v=h.render;h.render=function(e,t){return d.call(t),v(e,t)}}else{var m=h.beforeCreate;h.beforeCreate=m?[].concat(m,d):[d]}return{exports:e,options:h}}o.d(t,"a",(function(){return n}))},141:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("span",[o("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[o("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"bit-popover bit-popper",class:[e.popperClass,e.content&&"bit-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?o("div",{staticClass:"bit-popover__title"},[e.icon?o("bit-icon",{attrs:{color:e.iconColor,size:e.iconSize}},[o(e.icon,{tag:"component"})],1):e._e(),e._v("\n "+e._s(e.title)+"\n ")],1):e._e(),o("div",{staticClass:"bit-popover__content"},[e._t("default",[e._v(e._s(e.content))])],2)])]),o("span",{ref:"wrapper",staticClass:"bit-popover__reference-wrapper"},[e._t("reference")],2)],1)};n._withStripped=!0;var r=o(6),c=o.n(r),l=o(4),f=o.n(l),d=o(2),h=o(3),v={name:"BitPopover",mixins:[c.a],components:{BitIcon:f.a},props:{icon:[Object,Function,String],iconColor:String,iconSize:Number,trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"bit-popover-"+Object(h.generateId)()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,o=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(d.addClass)(t,"bit-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),o.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(d.on)(t,"focusin",(function(){e.handleFocus();var o=t.__vue__;o&&"function"==typeof o.focus&&o.focus()})),Object(d.on)(o,"focusin",this.handleFocus),Object(d.on)(t,"focusout",this.handleBlur),Object(d.on)(o,"focusout",this.handleBlur)),Object(d.on)(t,"keydown",this.handleKeydown),Object(d.on)(t,"click",this.handleClick)),"click"===this.trigger?(Object(d.on)(t,"click",this.doToggle),Object(d.on)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(d.on)(t,"mouseenter",this.handleMouseEnter),Object(d.on)(o,"mouseenter",this.handleMouseEnter),Object(d.on)(t,"mouseleave",this.handleMouseLeave),Object(d.on)(o,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Bit Design Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(d.on)(t,"focusin",this.doShow),Object(d.on)(t,"focusout",this.doClose)):(Object(d.on)(t,"mousedown",this.doShow),Object(d.on)(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(d.addClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(d.removeClass)(this.referenceElm,"focusing")},handleBlur:function(){Object(d.removeClass)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,o=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&o&&!o.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(d.off)(e,"click",this.doToggle),Object(d.off)(e,"mouseup",this.doClose),Object(d.off)(e,"mousedown",this.doShow),Object(d.off)(e,"focusin",this.doShow),Object(d.off)(e,"focusout",this.doClose),Object(d.off)(e,"mousedown",this.doShow),Object(d.off)(e,"mouseup",this.doClose),Object(d.off)(e,"mouseleave",this.handleMouseLeave),Object(d.off)(e,"mouseenter",this.handleMouseEnter),Object(d.off)(document,"click",this.handleDocumentClick)}},m=o(0),component=Object(m.a)(v,n,[],!1,null,null,null);component.options.__file="packages/popover/src/main.vue";var main=component.exports,w=function(e,t,o){var n=t.expression?t.value:t.arg,r=o.context.$refs[n];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},_={bind:function(e,t,o){w(e,t,o)},inserted:function(e,t,o){w(e,t,o)}},y=o(8);o.n(y).a.directive("popover",_),main.install=function(e){e.directive("popover",_),e.component(main.name,main)},main.directive=_;t.default=main},2:function(e,t){e.exports=o(98)},3:function(e,t){e.exports=o(78)},4:function(e,t){e.exports=o(61)},6:function(e,t){e.exports=o(501)},8:function(e,t){e.exports=o(16)}})},1683:function(e,t,o){"use strict";o.r(t);var n=o(1),component=Object(n.a)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"}},[t("path",{attrs:{d:"M9.75 3.75h-4.5a1.5 1.5 0 00-1.5 1.5v4.5a1.5 1.5 0 001.5 1.5h4.5a1.5 1.5 0 001.5-1.5v-4.5a1.5 1.5 0 00-1.5-1.5zm0 6h-4.5v-4.5h4.5v4.5zm0 3h-4.5a1.5 1.5 0 00-1.5 1.5v4.5a1.5 1.5 0 001.5 1.5h4.5a1.5 1.5 0 001.5-1.5v-4.5a1.5 1.5 0 00-1.5-1.5zm0 6h-4.5v-4.5h4.5v4.5zm9-15h-4.5a1.5 1.5 0 00-1.5 1.5v4.5a1.5 1.5 0 001.5 1.5h4.5a1.5 1.5 0 001.5-1.5v-4.5a1.5 1.5 0 00-1.5-1.5zm0 6h-4.5v-4.5h4.5v4.5zm-6 6.75v-3a.75.75 0 111.5 0v3a.75.75 0 11-1.5 0zm7.5-1.5a.75.75 0 01-.75.75h-2.25v3.75a.75.75 0 01-.75.75h-3a.75.75 0 110-1.5h2.25V13.5a.75.75 0 111.5 0v.75h2.25a.75.75 0 01.75.75zm0 3v1.5a.75.75 0 11-1.5 0V18a.75.75 0 111.5 0z"}})])}),[],!1,null,null,null);t.default=component.exports}}]); //# sourceMappingURL=d58501a.js.map