UNPKG

bootstrap-vue

Version:

Bootstrap 4 Components for Vue.js 2

1 lines 215 kB
import Popper from"popper.js";import startCase from"lodash.startcase";if(!Array.from){Array.from=function(){var toStr=Object.prototype.toString;var isCallable=function isCallable(fn){return typeof fn==="function"||toStr.call(fn)==="[object Function]"};var toInteger=function toInteger(value){var number=Number(value);if(isNaN(number)){return 0}if(number===0||!isFinite(number)){return number}return(number>0?1:-1)*Math.floor(Math.abs(number))};var maxSafeInteger=Math.pow(2,53)-1;var toLength=function toLength(value){return Math.min(Math.max(toInteger(value),0),maxSafeInteger)};return function from(arrayLike){var C=this;var items=Object(arrayLike);if(arrayLike==null){throw new TypeError("Array.from requires an array-like object - not null or undefined")}var mapFn=arguments.length>1?arguments[1]:void undefined;var T=void 0;if(typeof mapFn!=="undefined"){if(!isCallable(mapFn)){throw new TypeError("Array.from: when provided, the second argument must be a function")}if(arguments.length>2){T=arguments[2]}}var len=toLength(items.length);var A=isCallable(C)?Object(new C(len)):new Array(len);var k=0;var kValue=void 0;while(k<len){kValue=items[k];if(mapFn){A[k]=typeof T==="undefined"?mapFn(kValue,k):mapFn.call(T,kValue,k)}else{A[k]=kValue}k+=1}A.length=len;return A}}()}if(!Array.prototype.find){Object.defineProperty(Array.prototype,"find",{value:function value(predicate){if(this==null){throw new TypeError('"this" is null or not defined')}var o=Object(this);var len=o.length>>>0;if(typeof predicate!=="function"){throw new TypeError("predicate must be a function")}var thisArg=arguments[1];var k=0;while(k<len){var kValue=o[k];if(predicate.call(thisArg,kValue,k,o)){return kValue}k++}return undefined}})}if(!Array.isArray){Array.isArray=function(arg){return Object.prototype.toString.call(arg)==="[object Array]"}}var from=Array.from;var isArray=Array.isArray;var arrayIncludes=function arrayIncludes(array,value){return array.indexOf(value)!==-1};function concat(){return Array.prototype.concat.apply([],arguments)}if(typeof Object.assign!="function"){Object.assign=function(target,varArgs){if(target==null){throw new TypeError("Cannot convert undefined or null to object")}var to=Object(target);for(var index=1;index<arguments.length;index++){var nextSource=arguments[index];if(nextSource!=null){for(var nextKey in nextSource){if(Object.prototype.hasOwnProperty.call(nextSource,nextKey)){to[nextKey]=nextSource[nextKey]}}}}return to}}if(!Object.is){Object.is=function(x,y){if(x===y){return x!==0||1/x===1/y}else{return x!==x&&y!==y}}}var assign=Object.assign;var keys=Object.keys;var defineProperties=Object.defineProperties;var defineProperty=Object.defineProperty;var create=Object.create;function readonlyDescriptor(){return{enumerable:true,configurable:false,writable:false}}var isElement=function isElement(el){return el&&el.nodeType===Node.ELEMENT_NODE};var isVisible=function isVisible(el){return isElement(el)&&document.body.contains(el)&&el.getBoundingClientRect().height>0&&el.getBoundingClientRect().width>0};var isDisabled=function isDisabled(el){return!isElement(el)||el.disabled||el.classList.contains("disabled")||Boolean(el.getAttribute("disabled"))};var reflow=function reflow(el){return isElement(el)&&el.offsetHeight};var selectAll=function selectAll(selector,root){if(!isElement(root)){root=document}return from(root.querySelectorAll(selector))};var select=function select(selector,root){if(!isElement(root)){root=document}return root.querySelector(selector)||null};var matches=function matches(el,selector){if(!isElement(el)){return false}var proto=Element.prototype;var Matches=proto.matches||proto.matchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector||proto.webkitMatchesSelector||function(sel){var element=this;var m=selectAll(sel,element.document||element.ownerDocument);var i=m.length;while(--i>=0&&m.item(i)!==element){}return i>-1};return Matches.call(el,selector)};var closest=function closest(selector,root){if(!isElement(root)){return null}var Closest=Element.prototype.closest||function(sel){var element=this;if(!document.documentElement.contains(element)){return null}do{if(matches(element,sel)){return element}element=element.parentElement}while(element!==null);return null};var el=Closest.call(root,selector);return el===root?null:el};var getById=function getById(id){return document.getElementById(/^#/.test(id)?id.slice(1):id)||null};var addClass=function addClass(el,className){if(className&&isElement(el)){el.classList.add(className)}};var removeClass=function removeClass(el,className){if(className&&isElement(el)){el.classList.remove(className)}};var hasClass=function hasClass(el,className){if(className&&isElement(el)){return el.classList.contains(className)}return false};var setAttr=function setAttr(el,attr,value){if(attr&&isElement(el)){el.setAttribute(attr,value)}};var removeAttr=function removeAttr(el,attr){if(attr&&isElement(el)){el.removeAttribute(attr)}};var getAttr=function getAttr(el,attr){if(attr&&isElement(el)){return el.getAttribute(attr)}return null};var hasAttr=function hasAttr(el,attr){if(attr&&isElement(el)){return el.hasAttribute(attr)}return null};var getBCR=function getBCR(el){return isElement(el)?el.getBoundingClientRect():null};var getCS=function getCS(el){return isElement(el)?window.getComputedStyle(el):{}};var offset=function offset(el){if(isElement(el)){if(!el.getClientRects().length){return{top:0,left:0}}var bcr=getBCR(el);var win=el.ownerDocument.defaultView;return{top:bcr.top+win.pageYOffset,left:bcr.left+win.pageXOffset}}};var position=function position(el){if(!isElement(el)){return}var parentOffset={top:0,left:0};var offsetSelf=void 0;var offsetParent=void 0;if(getCS(el).position==="fixed"){offsetSelf=getBCR(el)}else{offsetSelf=offset(el);var doc=el.ownerDocument;offsetParent=el.offsetParent||doc.documentElement;while(offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&getCS(offsetParent).position==="static"){offsetParent=offsetParent.parentNode}if(offsetParent&&offsetParent!==el&&offsetParent.nodeType===Node.ELEMENT_NODE){parentOffset=offset(offsetParent);parentOffset.top+=parseFloat(getCS(offsetParent).borderTopWidth);parentOffset.left+=parseFloat(getCS(offsetParent).borderLeftWidth)}}return{top:offsetSelf.top-parentOffset.top-parseFloat(getCS(el).marginTop),left:offsetSelf.left-parentOffset.left-parseFloat(getCS(el).marginLeft)}};var eventOn=function eventOn(el,evtName,handler){if(el&&el.addEventListener){el.addEventListener(evtName,handler)}};var eventOff=function eventOff(el,evtName,handler){if(el&&el.removeEventListener){el.removeEventListener(evtName,handler)}};function identity(x){return x}var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};var asyncGenerator=function(){function AwaitValue(value){this.value=value}function AsyncGenerator(gen){var front,back;function send(key,arg){return new Promise(function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};if(back){back=back.next=request}else{front=back=request;resume(key,arg)}})}function resume(key,arg){try{var result=gen[key](arg);var value=result.value;if(value instanceof AwaitValue){Promise.resolve(value.value).then(function(arg){resume("next",arg)},function(arg){resume("throw",arg)})}else{settle(result.done?"return":"normal",result.value)}}catch(err){settle("throw",err)}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:true});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:false});break}front=front.next;if(front){resume(front.key,front.arg)}else{back=null}}this._invoke=send;if(typeof gen.return!=="function"){this.return=undefined}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this}}AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg)};AsyncGenerator.prototype.throw=function(arg){return this._invoke("throw",arg)};AsyncGenerator.prototype.return=function(arg){return this._invoke("return",arg)};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments))}},await:function(value){return new AwaitValue(value)}}}();var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}};var createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var defineProperty$1=function(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj};var inherits=function(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass};var possibleConstructorReturn=function(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self};var toConsumableArray=function(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}else{return Array.from(arr)}};function copyProps(props){var transformFn=arguments.length>1&&arguments[1]!==undefined?arguments[1]:identity;if(isArray(props)){return props.map(transformFn)}var copied={};for(var prop in props){if(props.hasOwnProperty(prop)){if((typeof prop==="undefined"?"undefined":_typeof(prop))==="object"){copied[transformFn(prop)]=assign({},props[prop])}else{copied[transformFn(prop)]=props[prop]}}}return copied}function lowerFirst(str){if(typeof str!=="string"){str=String(str)}return str.charAt(0).toLowerCase()+str.slice(1)}function isObject(obj){return obj!==null&&(typeof obj==="undefined"?"undefined":_typeof(obj))==="object"}function looseEqual(a,b){if(a===b)return true;var isObjectA=isObject(a);var isObjectB=isObject(b);if(isObjectA&&isObjectB){try{var isArrayA=isArray(a);var isArrayB=isArray(b);if(isArrayA&&isArrayB){return a.length===b.length&&a.every(function(e,i){return looseEqual(e,b[i])})}else if(!isArrayA&&!isArrayB){var keysA=keys(a);var keysB=keys(b);return keysA.length===keysB.length&&keysA.every(function(key){return looseEqual(a[key],b[key])})}else{return false}}catch(e){return false}}else if(!isObjectA&&!isObjectB){return String(a)===String(b)}else{return false}}"use strict";function concat$1(){return Array.prototype.concat.apply([],arguments)}function mergeData(){for(var e=__assign({},arguments[0]),a=1;a<arguments.length;a++){for(var s=0,t=keys$1(arguments[a]);s<t.length;s++){var c=t[s];if(void 0!==e[c])switch(c){case"class":case"style":case"directives":e[c]=concat$1(e[c],arguments[a][c]);break;case"staticClass":e[c]&&(e[c]=e[c].trim()+" "),e[c]+=arguments[a][c].trim();break;case"on":case"nativeOn":for(var r=0,o=keys$1(arguments[a][c]);r<o.length;r++){var n=o[r];e[c][n]?e[c][n]=concat$1(arguments[a][c][n],e[c][n]):e[c][n]=arguments[a][c][n]}break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":e[c]=__assign({},e[c],arguments[a][c]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:e[c]=arguments[a][c]}else e[c]=arguments[a][c]}}return e}var __assign=Object.assign||function(e){for(var a,s=1,t=arguments.length;s<t;s++){a=arguments[s];for(var c in a){Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c])}}return e};var keys$1=Object.keys;var lib_common=mergeData;function memoize(fn){var cache=create(null);return function memoizedFn(){var args=JSON.stringify(arguments);return cache[args]=cache[args]||fn.apply(null,arguments)}}function observeDOM(el,callback,opts){var MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;var eventListenerSupported=window.addEventListener;el=el?el.$el||el:null;if(!isElement(el)){return null}var obs=null;if(MutationObserver){obs=new MutationObserver(function(mutations){var changed=false;for(var i=0;i<mutations.length&&!changed;i++){var mutation=mutations[i];var type=mutation.type;var target=mutation.target;if(type==="characterData"&&target.nodeType===Node.TEXT_NODE){changed=true}else if(type==="attributes"){changed=true}else if(type==="childList"&&(mutation.addedNodes.length>0||mutation.removedNodes.length>0)){changed=true}}if(changed){callback()}});obs.observe(el,assign({childList:true,subtree:true},opts))}else if(eventListenerSupported){el.addEventListener("DOMNodeInserted",callback,false);el.addEventListener("DOMNodeRemoved",callback,false)}return obs}function pluckProps(keysToPluck,objToPluck){var transformFn=arguments.length>2&&arguments[2]!==undefined?arguments[2]:identity;return(isArray(keysToPluck)?keysToPluck.slice():keys(keysToPluck)).reduce(function(memo,prop){return memo[transformFn(prop)]=objToPluck[prop],memo},{})}function upperFirst(str){if(typeof str!=="string"){str=String(str)}return str.charAt(0).toUpperCase()+str.slice(1)}function prefixPropName(prefix,value){return prefix+upperFirst(value)}function registerComponent(Vue,name,def){Vue._bootstrap_vue_components_=Vue._bootstrap_vue_components_||{};var loaded=Vue._bootstrap_vue_components_[name];if(!loaded&&def&&name){Vue._bootstrap_vue_components_[name]=true;Vue.component(name,def)}return loaded}function registerComponents(Vue,components){for(var component in components){registerComponent(Vue,component,components[component])}}function registerDirective(Vue,name,def){Vue._bootstrap_vue_directives_=Vue._bootstrap_vue_directives_||{};var loaded=Vue._bootstrap_vue_directives_[name];if(!loaded&&def&&name){Vue._bootstrap_vue_directives_[name]=true;Vue.directive(name,def)}return loaded}function registerDirectives(Vue,directives){for(var directive in directives){registerDirective(Vue,directive,directives[directive])}}function vueUse(VuePlugin){if(typeof window!=="undefined"&&window.Vue){window.Vue.use(VuePlugin)}}function suffixPropName(suffix,str){return str+(suffix?upperFirst(suffix):"")}function unPrefixPropName(prefix,value){return lowerFirst(value.replace(prefix,""))}function warn(message){console.warn("[Bootstrap-Vue warn]: "+message)}var props={disabled:{type:Boolean,default:false},ariaLabel:{type:String,default:"Close"},textVariant:{type:String,default:null}};var bBtnClose={functional:true,props:props,render:function render(h,_ref){var props=_ref.props,data=_ref.data,listeners=_ref.listeners,children=_ref.children;var componentData={staticClass:"close",class:defineProperty$1({},"text-"+props.textVariant,props.textVariant),attrs:{type:"button",disabled:props.disabled,"aria-label":props.ariaLabel?String(props.ariaLabel):null},on:{click:function click(e){if(props.disabled&&e instanceof Event){e.stopPropagation();e.preventDefault()}}}};if(!children.length){componentData.domProps={innerHTML:"×"}}return h("button",lib_common(data,componentData),children)}};var bAlert$1={render:function render(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm.localShow?_c("div",{class:_vm.classObject,attrs:{role:"alert","aria-live":"polite","aria-atomic":"true"}},[_vm.dismissible?_c("b-btn-close",{attrs:{"aria-label":_vm.dismissLabel},on:{click:_vm.dismiss}},[_vm._t("dismiss")],2):_vm._e(),_vm._v(" "),_vm._t("default")],2):_vm._e()},staticRenderFns:[],components:{bBtnClose:bBtnClose},model:{prop:"show",event:"input"},data:function data(){return{countDownTimerId:null,dismissed:false}},computed:{classObject:function classObject(){return["alert",this.alertVariant,this.dismissible?"alert-dismissible":""]},alertVariant:function alertVariant(){var variant=this.variant;return"alert-"+variant},localShow:function localShow(){return!this.dismissed&&(this.countDownTimerId||this.show)}},props:{variant:{type:String,default:"info"},dismissible:{type:Boolean,default:false},dismissLabel:{type:String,default:"Close"},show:{type:[Boolean,Number],default:false}},watch:{show:function show(){this.showChanged()}},mounted:function mounted(){this.showChanged()},destroyed:function destroyed(){this.clearCounter()},methods:{dismiss:function dismiss(){this.clearCounter();this.dismissed=true;this.$emit("dismissed");this.$emit("input",false);if(typeof this.show==="number"){this.$emit("dismiss-count-down",0);this.$emit("input",0)}else{this.$emit("input",false)}},clearCounter:function clearCounter(){if(this.countDownTimerId){clearInterval(this.countDownTimerId);this.countDownTimerId=null}},showChanged:function showChanged(){var _this=this;this.clearCounter();this.dismissed=false;if(this.show===true||this.show===false||this.show===null||this.show===0){return}var dismissCountDown=this.show;this.countDownTimerId=setInterval(function(){if(dismissCountDown<1){_this.dismiss();return}dismissCountDown--;_this.$emit("dismiss-count-down",dismissCountDown);_this.$emit("input",dismissCountDown)},1e3)}}};var components$1={bAlert:bAlert$1};var VuePlugin$2={install:function install(Vue){registerComponents(Vue,components$1)}};vueUse(VuePlugin$2);function propsFactory(){return{href:{type:String,default:null},rel:{type:String,default:null},target:{type:String,default:"_self"},active:{type:Boolean,default:false},activeClass:{type:String,default:"active"},append:{type:Boolean,default:false},disabled:{type:Boolean,default:false},event:{type:[String,Array],default:"click"},exact:{type:Boolean,default:false},exactActiveClass:{type:String,default:"active"},replace:{type:Boolean,default:false},routerTag:{type:String,default:"a"},to:{type:[String,Object],default:null}}}var props$2=propsFactory();function pickLinkProps(propsToPick){var freshLinkProps=propsFactory();propsToPick=concat(propsToPick);return keys(freshLinkProps).reduce(function(memo,prop){if(arrayIncludes(propsToPick,prop)){memo[prop]=freshLinkProps[prop]}return memo},{})}function computeTag(props,parent){return Boolean(parent.$router)&&props.to&&!props.disabled?"router-link":"a"}function computeHref(_ref,tag){var disabled=_ref.disabled,href=_ref.href,to=_ref.to;if(tag==="router-link")return void 0;if(href)return href;if(to){if(typeof to==="string")return to;if((typeof to==="undefined"?"undefined":_typeof(to))==="object"&&typeof to.path==="string")return to.path}return"#"}function computeRel(_ref2){var target=_ref2.target,rel=_ref2.rel;if(target==="_blank"&&rel===null){return"noopener"}return rel||null}function clickHandlerFactory(_ref3){var disabled=_ref3.disabled,tag=_ref3.tag,href=_ref3.href,suppliedHandler=_ref3.suppliedHandler,parent=_ref3.parent;var isRouterLink=tag==="router-link";return function onClick(e){if(disabled&&e instanceof Event){e.stopPropagation();e.stopImmediatePropagation()}else{parent.$root.$emit("clicked::link",e);if(isRouterLink&&e.target.__vue__){e.target.__vue__.$emit("click",e)}if(typeof suppliedHandler==="function"){suppliedHandler.apply(undefined,arguments)}}if(!isRouterLink&&href==="#"||disabled){e.preventDefault()}}}var bLink={functional:true,props:propsFactory(),render:function render(h,_ref4){var props=_ref4.props,data=_ref4.data,parent=_ref4.parent,children=_ref4.children;var tag=computeTag(props,parent),rel=computeRel(props),href=computeHref(props,tag),eventType=tag==="router-link"?"nativeOn":"on",suppliedHandler=(data[eventType]||{}).click,handlers={click:clickHandlerFactory({tag:tag,href:href,disabled:props.disabled,suppliedHandler:suppliedHandler,parent:parent})};var componentData=lib_common(data,{class:[props.active?props.exact?props.exactActiveClass:props.activeClass:null,{disabled:props.disabled}],attrs:{rel:rel,href:href,target:props.target,"aria-disabled":tag==="a"&&props.disabled?"true":null},props:assign(props,{tag:props.routerTag})});if(!componentData.attrs.href){delete componentData.attrs.href}componentData[eventType]=assign(componentData[eventType]||{},handlers);return h(tag,componentData,children)}};var linkProps=propsFactory();delete linkProps.href.default;delete linkProps.to.default;var props$1=assign(linkProps,{tag:{type:String,default:"span"},variant:{type:String,default:"secondary"},pill:{type:Boolean,default:false}});var bBadge={functional:true,props:props$1,render:function render(h,_ref){var props=_ref.props,data=_ref.data,children=_ref.children;var tag=!props.href&&!props.to?props.tag:bLink;var componentData={staticClass:"badge",class:[!props.variant?"badge-secondary":"badge-"+props.variant,{"badge-pill":Boolean(props.pill),active:props.active,disabled:props.disabled}],props:pluckProps(linkProps,props)};return h(tag,lib_common(data,componentData),children)}};var components$2={bBadge:bBadge};var VuePlugin$4={install:function install(Vue){registerComponents(Vue,components$2)}};vueUse(VuePlugin$4);var props$5=assign(propsFactory(),{text:{type:String,default:null},active:{type:Boolean,default:false},href:{type:String,default:"#"},ariaCurrent:{type:String,default:"location"}});var BreadcrumbLink={functional:true,props:props$5,render:function render(h,_ref){var suppliedProps=_ref.props,data=_ref.data,children=_ref.children;var tag=suppliedProps.active?"span":bLink;var componentData={props:pluckProps(props$5,suppliedProps),domProps:{innerHTML:suppliedProps.text}};if(suppliedProps.active){componentData.attrs={"aria-current":suppliedProps.ariaCurrent}}else{componentData.attrs={href:suppliedProps.href}}return h(tag,lib_common(data,componentData),children)}};var props$4=assign({},props$5,{text:{type:String,default:null},href:{type:String,default:null}});var BreadcrumbItem={functional:true,props:props$4,render:function render(h,_ref){var props$$1=_ref.props,data=_ref.data,children=_ref.children;return h("li",lib_common(data,{staticClass:"breadcrumb-item",class:{active:props$$1.active},attrs:{role:"presentation"}}),[h(BreadcrumbLink,{props:props$$1},children)])}};var props$3={items:{type:Array,default:null}};var bBreadcrumb={functional:true,props:props$3,render:function render(h,_ref){var props=_ref.props,data=_ref.data,children=_ref.children;var childNodes=children;if(isArray(props.items)){var activeDefined=false;childNodes=props.items.map(function(item,idx){if((typeof item==="undefined"?"undefined":_typeof(item))!=="object"){item={text:item}}var active=item.active;if(active){activeDefined=true}if(!active&&!activeDefined){active=idx+1===props.items.length}return h(BreadcrumbItem,{props:assign({},item,{active:active})})})}return h("ol",lib_common(data,{staticClass:"breadcrumb"}),childNodes)}};var components$3={bBreadcrumb:bBreadcrumb,bBreadcrumbItem:BreadcrumbItem,bBreadcrumbLink:BreadcrumbLink};var VuePlugin$6={install:function install(Vue){registerComponents(Vue,components$3)}};vueUse(VuePlugin$6);var btnProps={block:{type:Boolean,default:false},disabled:{type:Boolean,default:false},size:{type:String,default:null,validator:function validator(size){return arrayIncludes(["sm","","lg"],size)}},variant:{type:String,default:null},type:{type:String,default:"button"},pressed:{type:Boolean,default:null}};var linkProps$1=propsFactory();delete linkProps$1.href.default;delete linkProps$1.to.default;var linkPropKeys=keys(linkProps$1);var props$6=assign(linkProps$1,btnProps);function handleFocus(evt){if(evt.type==="focusin"){addClass(evt.target,"focus")}else if(evt.type==="focusout"){removeClass(evt.target,"focus")}}var bBtn={functional:true,props:props$6,render:function render(h,_ref){var _ref2;var props=_ref.props,data=_ref.data,listeners=_ref.listeners,children=_ref.children;var isLink=Boolean(props.href||props.to);var isToggle=typeof props.pressed==="boolean";var on={click:function click(e){if(props.disabled&&e instanceof Event){e.stopPropagation();e.preventDefault()}else if(isToggle){concat(listeners["update:pressed"]).forEach(function(fn){if(typeof fn==="function"){fn(!props.pressed)}})}}};if(isToggle){on.focusin=handleFocus;on.focusout=handleFocus}var componentData={staticClass:"btn",class:[props.variant?"btn-"+props.variant:"btn-secondary",(_ref2={},defineProperty$1(_ref2,"btn-"+props.size,Boolean(props.size)),defineProperty$1(_ref2,"btn-block",props.block),defineProperty$1(_ref2,"disabled",props.disabled),defineProperty$1(_ref2,"active",props.pressed),_ref2)],props:isLink?pluckProps(linkPropKeys,props):null,attrs:{type:isLink?null:props.type,disabled:isLink?null:props.disabled,"data-toggle":isToggle?"button":null,"aria-pressed":isToggle?String(props.pressed):null,tabindex:props.disabled&&isLink?"-1":data.attrs?data.attrs["tabindex"]:null},on:on};return h(isLink?bLink:"button",lib_common(data,componentData),children)}};var components$4={bButton:bBtn,bBtn:bBtn,bButtonClose:bBtnClose,bBtnClose:bBtnClose};var VuePlugin$8={install:function install(Vue){registerComponents(Vue,components$4)}};vueUse(VuePlugin$8);var props$7={vertical:{type:Boolean,default:false},size:{type:String,default:null,validator:function validator(size){return arrayIncludes(["sm","","lg"],size)}},tag:{type:String,default:"div"},ariaRole:{type:String,default:"group"}};var bButtonGroup={functional:true,props:props$7,render:function render(h,_ref){var props=_ref.props,data=_ref.data,children=_ref.children;return h(props.tag,lib_common(data,{class:defineProperty$1({"btn-group":!props.vertical,"btn-group-vertical":props.vertical},"btn-group-"+props.size,Boolean(props.size)),attrs:{role:props.ariaRole}}),children)}};var components$5={bButtonGroup:bButtonGroup,bBtnGroup:bButtonGroup};var VuePlugin$10={install:function install(Vue){registerComponents(Vue,components$5)}};vueUse(VuePlugin$10);var ITEM_SELECTOR=[".btn:not(.disabled):not([disabled])",".form-control:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])",'input[type="checkbox"]:not(.disabled)','input[type="radio"]:not(.disabled)'].join(",");var bButtonToolbar$1={render:function render(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{class:_vm.classObject,attrs:{role:"toolbar",tabindex:_vm.keyNav?"0":null},on:{focusin:function focusin($event){if($event.target!==$event.currentTarget){return null}_vm.focusFirst($event)},keydown:[function($event){if(!("button"in $event)&&_vm._k($event.keyCode,"left",37)){return null}if("button"in $event&&$event.button!==0){return null}_vm.focusNext($event,true)},function($event){if(!("button"in $event)&&_vm._k($event.keyCode,"up",38)){return null}_vm.focusNext($event,true)},function($event){if(!("button"in $event)&&_vm._k($event.keyCode,"right",39)){return null}if("button"in $event&&$event.button!==2){return null}_vm.focusNext($event,false)},function($event){if(!("button"in $event)&&_vm._k($event.keyCode,"down",40)){return null}_vm.focusNext($event,false)},function($event){if(!("button"in $event)&&_vm._k($event.keyCode,"left",37)){return null}if(!$event.shiftKey){return null}if("button"in $event&&$event.button!==0){return null}_vm.focusFirst($event)},function($event){if(!("button"in $event)&&_vm._k($event.keyCode,"up",38)){return null}if(!$event.shiftKey){return null}_vm.focusFirst($event)},function($event){if(!("button"in $event)&&_vm._k($event.keyCode,"right",39)){return null}if(!$event.shiftKey){return null}if("button"in $event&&$event.button!==2){return null}_vm.focusLast($event)},function($event){if(!("button"in $event)&&_vm._k($event.keyCode,"down",40)){return null}if(!$event.shiftKey){return null}_vm.focusLast($event)}]}},[_vm._t("default")],2)},staticRenderFns:[],computed:{classObject:function classObject(){return["btn-toolbar",this.justify&&!this.vertical?"justify-content-between":""]}},props:{justify:{type:Boolean,default:false},keyNav:{type:Boolean,default:false}},methods:{setItemFocus:function setItemFocus(item){this.$nextTick(function(){item.focus()})},focusNext:function focusNext(e,prev){if(!this.keyNav){return}e.preventDefault();e.stopPropagation();var items=this.getItems();if(items.length<1){return}var index=items.indexOf(e.target);if(prev&&index>0){index--}else if(!prev&&index<items.length-1){index++}if(index<0){index=0}this.setItemFocus(items[index])},focusFirst:function focusFirst(e){if(!this.keyNav){return}e.preventDefault();e.stopPropagation();var items=this.getItems();if(items.length>0){this.setItemFocus(items[0])}},focusLast:function focusLast(e){if(!this.keyNav){return}e.preventDefault();e.stopPropagation();var items=this.getItems();if(items.length>0){this.setItemFocus([items.length-1])}},getItems:function getItems(){var items=selectAll(ITEM_SELECTOR,this.$el);items.forEach(function(item){item.tabIndex=-1});return items.filter(function(el){return isVisible(el)})}},mounted:function mounted(){if(this.keyNav){this.getItems()}}};var components$6={bButtonToolbar:bButtonToolbar$1,bBtnToolbar:bButtonToolbar$1};var VuePlugin$12={install:function install(Vue){registerComponents(Vue,components$6)}};vueUse(VuePlugin$12);var props$9={id:{type:String,default:null},tag:{type:String,default:"div"}};var InputGroupAddon={functional:true,props:props$9,render:function render(h,_ref){var props=_ref.props,data=_ref.data,children=_ref.children;return h(props.tag,lib_common(data,{staticClass:"input-group-addon",attrs:{id:props.id}}),children)}};var props$8={id:{type:String,default:null},size:{type:String,default:null},left:{type:String,default:null},right:{type:String,default:null},tag:{type:String,default:"div"}};var bInputGroup={functional:true,props:props$8,render:function render(h,_ref){var props=_ref.props,data=_ref.data,slots=_ref.slots;var childNodes=[];if(slots().left){childNodes.push(slots().left)}else if(props.left){childNodes.push(h(InputGroupAddon,{domProps:{innerHTML:props.left}}))}childNodes.push(slots().default);if(slots().right){childNodes.push(slots().right)}else if(props.left){childNodes.push(h(InputGroupAddon,{domProps:{innerHTML:props.right}}))}return h(props.tag,lib_common(data,{staticClass:"input-group",class:defineProperty$1({},"input-group-"+props.size,Boolean(props.size)),attrs:{id:props.id||null,role:"group"}}),childNodes)}};var props$10={id:{type:String,default:null},tag:{type:String,default:"div"}};var bInputGroupButton={functional:true,props:props$10,render:function render(h,_ref){var props=_ref.props,data=_ref.data,children=_ref.children;return h(props.tag,lib_common(data,{staticClass:"input-group-btn",attrs:{id:props.id}}),children)}};var components$7={bInputGroup:bInputGroup,bInputGroupAddon:InputGroupAddon,bInputGroupButton:bInputGroupButton,bInputGroupBtn:bInputGroupButton};var VuePlugin$14={install:function install(Vue){registerComponents(Vue,components$7)}};vueUse(VuePlugin$14);var cardMixin={props:{tag:{type:String,default:"div"},bgVariant:{type:String,default:null},borderVariant:{type:String,default:null},textVariant:{type:String,default:null}}};var clickoutMixin={mounted:function mounted(){if(typeof document!=="undefined"){document.documentElement.addEventListener("click",this._clickOutListener)}},destroyed:function destroyed(){if(typeof document!=="undefined"){document.removeEventListener("click",this._clickOutListener)}},methods:{_clickOutListener:function _clickOutListener(e){if(!this.$el.contains(e.target)){if(this.clickOutListener){this.clickOutListener()}}}}};var BVRL="__BV_root_listeners__";var listenOnRootMixin={methods:{listenOnRoot:function listenOnRoot(event,callback){if(!this[BVRL]||!isArray(this[BVRL])){this[BVRL]=[]}this[BVRL].push({event:event,callback:callback});this.$root.$on(event,callback);return this},emitOnRoot:function emitOnRoot(event){var _$root;for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}(_$root=this.$root).$emit.apply(_$root,[event].concat(toConsumableArray(args)));return this}},destroyed:function destroyed(){if(this[BVRL]&&isArray(this[BVRL])){while(this[BVRL].length>0){var _BVRL$shift=this[BVRL].shift(),event=_BVRL$shift.event,callback=_BVRL$shift.callback;this.$root.$off(event,callback)}}}};function filterVisible(els){return(els||[]).filter(isVisible)}var ITEM_SELECTOR$1=".dropdown-item:not(.disabled):not([disabled])";var AttachmentMap={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"};var dropdownMixin={mixins:[clickoutMixin,listenOnRootMixin],props:{disabled:{type:Boolean,default:false},text:{type:String,default:""},dropup:{type:Boolean,default:false},right:{type:Boolean,default:false},offset:{type:[Number,String],default:0},noFlip:{type:Boolean,default:false},popperOpts:{type:Object,default:function _default(){}}},data:function data(){return{visible:false,_popper:null,inNavbar:null}},created:function created(){var _this=this;var listener=function listener(el){if(el!==_this){_this.visible=false}};this.listenOnRoot("bv::dropdown::shown",listener);this.listenOnRoot("clicked::link",listener);this.listenOnRoot("bv::link::clicked",listener)},watch:{visible:function visible(state,old){if(state===old){return}if(state){this.showMenu()}else{this.hideMenu()}},disabled:function disabled(state,old){if(state!==old&&state&&this.visible){this.visible=false}}},computed:{toggler:function toggler(){return this.$refs.toggle.$el||this.$refs.toggle}},destroyed:function destroyed(){if(this._popper){this._popper.destroy()}this._popper=null;this.setTouchStart(false)},methods:{showMenu:function showMenu(){if(this.disabled){return}this.$emit("show");this.emitOnRoot("bv::dropdown::shown",this);if(typeof Popper==="function"){if(this.inNavbar===null&&this.isNav){this.inNavbar=Boolean(closest(".navbar",this.$el))}var element=this.dropup&&this.right||this.split||this.inNavbar?this.$el:this.$refs.toggle;element=element.$el||element;this._popper=new Popper(element,this.$refs.menu,this.getPopperConfig())}this.setTouchStart(true);this.$emit("shown");this.$nextTick(this.focusFirstItem)},hideMenu:function hideMenu(){this.$emit("hide");if(this._popper){this._popper.destroy()}this._popper=null;this.setTouchStart(false);this.emitOnRoot("bv::dropdown::hidden",this);this.$emit("hidden")},getPopperConfig:function getPopperConfig(){var placement=AttachmentMap.BOTTOM;if(this.dropup&&this.right){placement=AttachmentMap.TOPEND}else if(this.dropup){placement=AttachmentMap.TOP}else if(this.right){placement=AttachmentMap.BOTTOMEND}var popperConfig={placement:placement,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip},applyStyle:{enabled:!this.inNavbar}}};return assign(popperConfig,this.popperOpts||{})},setTouchStart:function setTouchStart(on){var _this2=this;if("ontouchstart"in document.documentElement){var children=from(document.body.children);children.forEach(function(el){if(on){eventOn("mouseover",_this2._noop)}else{eventOff("mouseover",_this2._noop)}})}},_noop:function _noop(){},clickOutListener:function clickOutListener(){this.visible=false},click:function click(e){if(this.disabled){this.visible=false;return}this.$emit("click",e)},toggle:function toggle(){if(this.disabled){this.visible=false;return}this.visible=!this.visible},show:function show(){if(this.disabled){return}this.visible=true},hide:function hide(){if(this.disabled){return}this.visible=false},onTab:function onTab(){if(this.visible){this.visible=false}},onEsc:function onEsc(e){if(this.visible){this.visible=false;e.preventDefault();e.stopPropagation();this.$nextTick(this.focusToggler)}},onFocusOut:function onFocusOut(evt){if(this.$refs.menu.contains(evt.relatedTarget)){return}this.visible=false},onMouseOver:function onMouseOver(evt){var item=evt.target;if(item.classList.contains("dropdown-item")&&!item.disabled&&!item.classList.contains("disabled")&&item.focus){item.focus()}},focusNext:function focusNext(e,up){var _this3=this;if(!this.visible){return}e.preventDefault();e.stopPropagation();this.$nextTick(function(){var items=_this3.getItems();if(items.length<1){return}var index=items.indexOf(e.target);if(up&&index>0){index--}else if(!up&&index<items.length-1){index++}if(index<0){index=0}_this3.focusItem(index,items)})},focusItem:function focusItem(idx,items){var el=items.find(function(el,i){return i===idx});if(el&&getAttr(el,"tabindex")!=="-1"){el.focus()}},getItems:function getItems(){return filterVisible(selectAll(ITEM_SELECTOR$1,this.$refs.menu))},getFirstItem:function getFirstItem(){var item=this.getItems()[0];return item||null},focusFirstItem:function focusFirstItem(){var item=this.getFirstItem();if(item){this.focusItem(0,[item])}},focusToggler:function focusToggler(){var toggler=this.toggler;if(toggler&&toggler.focus){toggler.focus()}}}};var formMixin={props:{name:{type:String},id:{type:String},disabled:{type:Boolean},required:{type:Boolean,default:false}}};var formCustomMixin={computed:{custom:function custom(){return!this.plain}},props:{plain:{type:Boolean,default:false}}};function isObject$1(obj){return obj&&{}.toString.call(obj)==="[object Object]"}var formOptionsMixin={props:{options:{type:[Array,Object],default:function _default(){return[]}},valueField:{type:String,default:"value"},textField:{type:String,default:"text"},disabledField:{type:String,default:"disabled"}},computed:{formOptions:function formOptions(){var options=this.options||[];var valueField=this.valueField||"value";var textField=this.textField||"text";var disabledField=this.disabledField||"disabled";if(isArray(options)){return options.map(function(option){if(isObject$1(option)){return{value:option[valueField],text:String(option[textField]),disabled:option[disabledField]||false}}return{text:String(option),value:option,disabled:false}})}else if(isObject$1(options)){return keys(options).map(function(key){var option=options[key]||{};if(isObject$1(option)){var value=option[valueField];var text=option[textField];return{text:typeof text==="undefined"?key:String(text),value:typeof value==="undefined"?key:value,disabled:option[disabledField]||false}}return{text:String(option),value:key,disabled:false}})}return[]}}};var formRadioCheckMixin={data:function data(){return{localChecked:this.checked,hasFocus:false}},model:{prop:"checked",event:"input"},props:{value:{},checked:{},buttonVariant:{type:String,default:null}},computed:{computedLocalChecked:{get:function get(){if(this.is_Child){return this.$parent.localChecked}else{return this.localChecked}},set:function set(val){if(this.is_Child){this.$parent.localChecked=val}else{this.localChecked=val}}},is_Child:function is_Child(){return Boolean(this.$parent&&this.$parent.is_RadioCheckGroup)},is_Disabled:function is_Disabled(){return Boolean(this.is_Child?this.$parent.disabled||this.disabled:this.disabled)},is_Required:function is_Required(){return Boolean(this.is_Child?this.$parent.required:this.required)},is_Plain:function is_Plain(){return Boolean(this.is_Child?this.$parent.plain:this.plain)},is_Custom:function is_Custom(){return!this.is_Plain},get_Size:function get_Size(){return this.is_Child?this.$parent.size:this.size},get_State:function get_State(){if(typeof this.state==="boolean"){return this.state}else if(this.state==="valid"){return true}else if(this.state==="invalid"){return false}else if(this.is_Childp&&typeof this.$parent.get_State==="boolean"){return this.$parent.get_State}return null},get_StateClass:function get_StateClass(){return typeof this.get_State==="boolean"?this.get_State?"is-valid":"is-invalid":""},is_Stacked:function is_Stacked(){return Boolean(this.is_Child&&this.$parent.stacked)},is_Inline:function is_Inline(){return!this.is_Stacked},is_ButtonMode:function is_ButtonMode(){return Boolean(this.is_Child&&this.$parent.buttons)},get_ButtonVariant:function get_ButtonVariant(){return this.buttonVariant||(this.is_Child?this.$parent.buttonVariant:null)||"secondary"},get_Name:function get_Name(){return(this.is_Child?this.$parent.name||this.$parent.safeId():this.name)||null},buttonClasses:function buttonClasses(){return["btn","btn-"+this.get_ButtonVariant,Boolean(this.get_Size)?"btn-"+this.get_Size:"",this.is_Disabled?"disabled":"",this.is_Checked?"active":"",this.hasFocus?"focus":"",this.is_Stacked?"mb-0":""]}},methods:{handleFocus:function handleFocus(evt){if(this.is_ButtonMode&&evt.target){if(evt.type==="focus"){this.hasFocus=true}else if(evt.type==="blur"){this.hasFocus=false}}}}};var formSizeMixin={props:{size:{type:String,default:null}},computed:{sizeFormClass:function sizeFormClass(){return[this.size?"form-control-"+this.size:null]},sizeBtnClass:function sizeBtnClass(){return[this.size?"btn-"+this.size:null]}}};var formStateMixin={props:{state:{type:[Boolean,String],default:null}},computed:{computedState:function computedState(){var state=this.state;if(state===true||state==="valid"){return true}else if(state===false||state==="invalid"){return false}return null},stateClass:function stateClass(){var state=this.computedState;if(state===true){return"is-valid"}else if(state===false){return"is-invalid"}return null}}};var idMixin={props:{id:{typ:String,default:null}},data:function data(){return{localId_:null}},mounted:function mounted(){if(!this.$isServer&&!this.id&&this._uid){this.localId_="__BVID__"+this._uid+"_"}},methods:{safeId:function safeId(){var suffix=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var id=this.id||this.localId_||null;if(!id){return null}suffix=String(suffix).replace(/\s+/g,"_");return Boolean(suffix)?id+"_"+suffix:id}}};var range=function(length){return Array.apply(null,{length:length})};function makePageArray(startNum,numPages){return range(numPages).map(function(value,index){return{number:index+startNum,className:null}})}var ELLIPSIS_THRESHOLD=3;var props$12={disabled:{type:Boolean,default:false},value:{type:Number,default:1},limit:{type:Number,default:5},size:{type:String,default:"md"},align:{type:String,default:"left"},hideGotoEndButtons:{type:Boolean,default:false},ariaLabel:{type:String,default:"Pagination"},labelFirstPage:{type:String,default:"Goto first page"},firstText:{type:String,default:"&laquo;"},labelPrevPage:{type:String,default:"Goto previous page"},prevText:{type:String,default:"&lsaquo;"},labelNextPage:{type:String,default:"Goto next page"},nextText:{type:String,default:"&rsaquo;"},labelLastPage:{type:String,default:"Goto last page"},lastText:{type:String,default:"&raquo;"},labelPage:{type:String,default:"Goto page"},hideEllipsis:{type:Boolean,default:false},ellipsisText:{type:String,default:"&hellip;"}};var paginationMixin={data:function data(){return{showFirstDots:false,showLastDots:false,currentPage:this.value}},props:props$12,watch:{currentPage:function currentPage(newPage,oldPage){if(newPage!==oldPage){this.$emit("input",newPage)}},value:function value(newValue,oldValue){if(newValue!==oldValue){this.currentPage=newValue}}},computed:{btnSize:function btnSize(){return this.size?"pagination-"+this.size:""},alignment:function alignment(){if(this.align==="center"){return"justify-content-center"}else if(this.align==="end"||this.align==="right"){return"justify-content-end"}return""},pageList:function pageList(){if(this.currentPage>this.numberOfPages){this.currentPage=this.numberOfPages}else if(this.currentPage<1){this.currentPage=1}this.showFirstDots=false;this.showLastDots=false;var numLinks=this.limit;var startNum=1;if(this.numberOfPages<=this.limit){numLinks=this.numberOfPages}else if(this.currentPage<this.limit-1&&this.limit>ELLIPSIS_THRESHOLD){if(!this.hideEllipsis){numLinks=this.limit-1;this.showLastDots=true}}else if(this.numberOfPages-this.currentPage+2<this.limit&&this.limit>ELLIPSIS_THRESHOLD){if(!this.hideEllipsis){this.showFirstDots=true;numLinks=this.limit-1}startNum=this.numberOfPages-numLinks+1}else{if(this.limit>ELLIPSIS_THRESHOLD&&!this.hideEllipsis){this.showFirstDots=true;this.showLastDots=true;numLinks=this.limit-2}startNum=this.currentPage-Math.floor(numLinks/2)}if(startNum<1){startNum=1}else if(startNum>this.numberOfPages-numLinks){startNum=this.numberOfPages-numLinks+1}var pages=makePageArray(startNum,numLinks);if(pages.length>3){var idx=this.currentPage-startNum;if(idx===0){for(var i=3;i<pages.length;i++){pages[i].className="d-none d-sm-flex"}}else if(idx===pages.length-1){for(var _i=0;_i<pages.length-3;_i++){pages[_i].className="d-none d-sm-flex"}}else{for(var _i2=0;_i2<idx-1;_i2++){pages[_i2].className="d-none d-sm-flex"}for(var _i3=pages.length-1;_i3>idx+1;_i3--){pages[_i3].className="d-none d-sm-flex"}}}return pages}},methods:{isActive:function isActive(pagenum){return pagenum===this.currentPage},pageItemClasses:function pageItemClasses(page){return["page-item",this.disabled?"disabled":"",this.isActive(page.number)?"active":"",page.className]},pageLinkClasses:function pageLinkClasses(page){return["page-link",this.disabled?"disabled":"",this.isActive(page.number)?"active":""]},getButtons:function getButtons(){return selectAll("a.page-link",this.$el).filter(function(btn){return isVisible(btn)})},setBtnFocus:function setBtnFocus(btn){this.$nextTick(function(){btn.focus()})},focusCurrent:function focusCurrent(){var _this=this;var btn=this.getButtons().find(function(el){return parseInt(getAttr(el,"aria-posinset"),10)===_this.currentPage});if(btn&&btn.focus){this.setBtnFocus(btn)}else{this.focusFirst()}},focusFirst:function focusFirst(){var btn=this.getButtons().find(function(el){return!isDisabled(el)});if(btn&&btn.focus&&btn!==document.activeElement){this.setBtnFocus(btn)}},focusLast:function focusLast(){var btn=this.getButtons().reverse().find(function(el){return!isDisabled(el)});if(btn&&btn.focus&&btn!==document.activeElement){this.setBtnFocus(btn)}},focusPrev:function focusPrev(){var buttons=this.getButtons();var idx=buttons.indexOf(document.activeElement);if(idx>0&&!isDisabled(buttons[idx-1])&&buttons[idx-1].focus){this.setBtnFocus(buttons[idx-1])}},focusNext:function focusNext(){var buttons=this.getButtons();var idx=buttons.indexOf(document.activeElement);var cnt=buttons.length-1;if(idx<cnt&&!isDisabled(buttons[idx+1])&&buttons[idx+1].focus){this.setBtnFocus(buttons[idx+1])}}}};var PLACEMENTS={top:"top",topleft:"topleft",topright:"topright",right:"right",righttop:"righttop",rightbottom:"rightbottom",bottom:"bottom",bottomleft:"bottomleft",bottomright:"bottomright",left:"left",lefttop:"lefttop",leftbottom:"leftbottom",auto:"auto"};var OBSERVER_CONFIG={subtree:true,childList:true,characterData:true,attributes:true,attributeFilter:["class","style"]};var toolpopMixin={props:{target:{type:[String,Object]},delay:{type:[Number,Object,String],default:0},offset:{type:[Number,String],default:0},noFade:{type:Boolean,default:false},container:{type:String,default:null}},created:function created(){this._toolpop=null;this._obs_title=null;this._obs_content=null},mounted:function mounted(){var _this=this;this.$nextTick(function(){if(_this.createToolpop()){_this.$on("close",_this.onClose);_this.setObservers(true)}})},updated:function updated(){if(this._toolpop){this._toolpop.updateConfig(this.getConfig())}},activated:function activated(){this.setObservers(true)},deactivated:function deactivated(){if(this._toolpop){this.setObservers(false);this._toolpop.hide()}},beforeDestroy:function beforeDestroy(){this.$off("close",this.onClose);this.setObservers(false);if(this._toolpop){this._toolpop.destroy();this._toolpop=null}this.bringItBack()},computed:{baseConfig:function baseConfig(){var cont=this.container;var delay=_typeof(this.delay)==="object"?this.delay:parseInt(this.delay,10)||0;return{title:(this.title||"").trim()||"",content:(this.content||"").trim()||"",placement:PLACEMENTS[this.placement]||"auto",container:cont?/^#/.test(cont)?cont:"#"+cont:false,delay:delay||0,offset:this.offset||0,animation:!Boolean(this.noFade),trigger:isArray(this.triggers)?this.triggers.join(" "):this.triggers,callbacks:{show:this.onShow,shown:this.onShown,hide:this.onHide,hidden:this.onHidden}}}},methods:{getConfig:function getConfig(){var cfg=assign({},this.baseConfig);if(this.$refs.title&&this.$refs.title.innerHTML.trim()){cfg.title=this.$refs.title;cfg.html=true}if(this.$refs.content&&this.$refs.content.innerHTML.trim()){cfg.content=this.$refs.content;cfg.html=true}return cfg},onClose:function onClose(callback){if(this._toolpop){this._toolpop.hide(callback)}else if(typeof callback==="function"){callback()}},updatePosition:function updatePosition(){if(this._toolpop){this._toolpop.update()}},getTarget:function getTarget(){var target=this.target;if(typeof target==="string"){return getById(target)}else if((typeof target==="undefined"?"undefined":_typeof(target))==="object"&&isElement(target.$el)){return target.$el}else if((typeof target==="undefined"?"undefined":_typeof(target))==="object"&&isElement(target)){return target}return null},onShow:function onShow(evt){this.$emit("show",evt)},onShown:function onShown(evt){this.setObservers(true);this.$emit("shown",evt)},onHide:function onHide(evt){this.$emit("hide",evt)},onHidden:function onHidden(evt){this.setObservers(false);this.bringItBack();this.$emit("hidden",evt)},bringItBack:function bringItBack(){if(this.$el&&this.$refs.title){this.$el.appendChild(this.$refs.title)}if(this.$el&&this.$refs.content){this.$el.appendChild(this.$refs.content)}},setObservers:function setObservers(on){if(on){if(this.$refs.title){this._obs_title=observeDOM(this.$refs.title,this.updatePosition.bind(this),OBSERVER_CONFIG)}if(this.$refs.content){this._obs_content=observeDOM(this.$refs.content,this.updatePosition.bind(this),OBSERVER_CONFIG)}}else{if(this._obs_title){this._obs_title.disconnect();this._obs_title=null}if(this._obs_content){this._obs_content.disconnect();this._obs_content=null}}}}};var props$13=assign({},copyProps(cardMixin.props,prefixPropName.bind(null,"body")),{bodyClass:{