buefy
Version:
Lightweight UI components for Vue.js (v3) based on Bulma
3 lines (2 loc) • 20.8 kB
JavaScript
/*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Slider={},e.Vue)}(this,(function(e,t){"use strict";let i,s="is-primary",o=null,n=null,a=!0;function r(e,t,i){return Math.max(t,Math.min(i,e))}const l=["is-auto","is-top","is-bottom","is-left","is-right"];var d=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};var h=d(t.defineComponent({name:"BTooltip",props:{active:{type:Boolean,default:!0},type:{type:String,default:()=>s},label:String,delay:{type:Number,default:()=>o},closeDelay:{type:Number,default:()=>n},position:{type:String,default:"is-auto",validator:e=>l.indexOf(e)>-1},triggers:{type:Array,default:()=>["hover"]},always:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},appendToBody:Boolean,animated:{type:Boolean,default:!0},animation:{type:String,default:"fade"},contentClass:String,autoClose:{type:[Array,Boolean],default:!0}},emits:{close:()=>!0,open:()=>!0},data:()=>({isActive:!1,triggerStyle:{},timer:void 0,_bodyEl:void 0,resizeObserver:void 0,resizeListener:void 0,timeOutID:void 0,controller:void 0,dynamicPosition:void 0}),computed:{rootClasses(){return["b-tooltip",this.type,this.dynamicPosition,this.size,{"is-square":this.square,"is-always":this.always,"is-multiline":this.multilined,"is-dashed":this.dashed}]},newAnimation(){return this.animated?this.animation:void 0}},watch:{isActive(){this.isActive?this.$emit("open"):this.$emit("close"),this.appendToBody&&this.updateAppendToBody()}},methods:{computePosition(){if("is-auto"!==this.position)return this.position;const e=this.$refs.trigger.getBoundingClientRect(),t=e.top,i=window.innerHeight-e.bottom,s=e.left,o=window.innerWidth-e.right,n=Math.min(t,i,s,o);return n===t?"is-bottom":n===i?"is-top":n===s?"is-right":"is-left"},updateAppendToBody(){const e=this.$refs.tooltip,t=this.$refs.trigger;if(e&&t){const e=this.$data._bodyEl.children[0];e.classList.forEach((t=>e.classList.remove(t))),this.rootClasses.forEach((t=>{if("object"==typeof t){const i=t;for(const t in i)i[t]&&e.classList.add(t)}else e.classList.add(t)}));const i=t.getBoundingClientRect(),s=i.top+window.scrollY,o=i.left+window.scrollX;switch(e.style.position="absolute",this.dynamicPosition=this.computePosition(),this.dynamicPosition){case"is-top":e.style.width=`${t.clientWidth}px`,e.style.height="0px",e.style.top="0px",e.style.left="0px";break;case"is-bottom":e.style.width=`${t.clientWidth}px`,e.style.height="0px",e.style.top=`${t.clientHeight}px`,e.style.left="0px";break;case"is-left":e.style.width="0px",e.style.height=`${t.clientHeight}px`,e.style.top="0px",e.style.left="0px";break;case"is-right":e.style.width="0px",e.style.height=`${t.clientHeight}px`,e.style.top="0px",e.style.left=`${t.clientWidth}px`}const n=this.$data._bodyEl;n.style.position="absolute",n.style.top=`${s}px`,n.style.left=`${o}px`,n.style.width="0px",n.style.zIndex=this.isActive||this.always?"99":"-1",this.triggerStyle={zIndex:this.isActive||this.always?"100":void 0}}},onClick(){this.triggers.indexOf("click")<0||this.$nextTick((()=>{this.timeOutID=setTimeout((()=>this.open()))}))},onHover(){this.triggers.indexOf("hover")<0||this.open()},onContextMenu(e){this.triggers.indexOf("contextmenu")<0||(e.preventDefault(),this.open())},onFocus(){this.triggers.indexOf("focus")<0||this.open()},open(){this.dynamicPosition=this.computePosition(),this.delay?this.timer=setTimeout((()=>{this.isActive=!0,this.timer=void 0}),this.delay):this.isActive=!0},close(){"boolean"==typeof this.autoClose&&(this.autoClose&&this.timer&&clearTimeout(this.timer),this.closeDelay?this.timer=setTimeout((()=>{this.isActive=!this.autoClose,this.timer=void 0}),this.closeDelay):this.isActive=!this.autoClose)},clickedOutside(e){if(this.isActive&&Array.isArray(this.autoClose)){if(this.autoClose.includes("outside")&&!this.isInWhiteList(e.target))return void(this.isActive=!1);this.autoClose.includes("inside")&&this.isInWhiteList(e.target)&&(this.isActive=!1)}},keyPress({key:e}){!this.isActive||"Escape"!==e&&"Esc"!==e||Array.isArray(this.autoClose)&&this.autoClose.indexOf("escape")>=0&&(this.isActive=!1)},isInWhiteList(e){if(e===this.$refs.content)return!0;if(null!=this.$refs.content){const t=this.$refs.content.querySelectorAll("*");for(const i of t)if(e===i)return!0}return!1}},mounted(){if(this.appendToBody&&"undefined"!=typeof window){this.controller=new window.AbortController,this.$data._bodyEl=function(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}(this.$refs.content),this.updateAppendToBody();const e=this.$el.closest(".animation-content");if(null!=e){const t=()=>{this.updateAppendToBody(),e.removeEventListener("transitionend",t)};e.addEventListener("transitionend",t,{signal:this.controller.signal})}this.resizeListener=()=>this.updateAppendToBody(),window.addEventListener("resize",this.resizeListener),this.resizeObserver=new ResizeObserver(this.resizeListener),null!=this.$el.parentNode&&this.$el.parentNode.nodeType===Node.ELEMENT_NODE&&this.resizeObserver.observe(this.$el.parentNode)}this.always&&(this.dynamicPosition=this.computePosition())},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeUnmount(){var e;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),null!=this.resizeListener&&window.removeEventListener("resize",this.resizeListener),null!=this.resizeObserver&&this.resizeObserver.disconnect(),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),null!=this.controller&&this.controller.abort(),clearTimeout(this.timer),clearTimeout(this.timeOutID)}}),[["render",function(e,i,s,o,n,a){return t.openBlock(),t.createElementBlock("div",{ref:"tooltip",class:t.normalizeClass(e.rootClasses)},[t.createVNode(t.Transition,{name:e.newAnimation,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref:"content",class:t.normalizeClass(["tooltip-content",e.contentClass])},[e.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.label),1)],64)):e.$slots.content?t.renderSlot(e.$slots,"content",{key:1}):t.createCommentVNode("v-if",!0)],2),[[t.vShow,e.active&&(e.isActive||e.always)]])])),_:3},8,["name"]),t.createElementVNode("div",{ref:"trigger",class:"tooltip-trigger",style:t.normalizeStyle(e.triggerStyle),onClick:i[0]||(i[0]=(...t)=>e.onClick&&e.onClick(...t)),onContextmenu:i[1]||(i[1]=(...t)=>e.onContextMenu&&e.onContextMenu(...t)),onMouseenter:i[2]||(i[2]=(...t)=>e.onHover&&e.onHover(...t)),onFocusCapture:i[3]||(i[3]=(...t)=>e.onFocus&&e.onFocus(...t)),onBlurCapture:i[4]||(i[4]=(...t)=>e.close&&e.close(...t)),onMouseleave:i[5]||(i[5]=(...t)=>e.close&&e.close(...t))},[t.renderSlot(e.$slots,"default",{ref:"slot"})],36)],2)}]]),u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,p=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>a}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class:i,id:s}=e;return((e,t)=>{var i={};for(var s in e)c.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&u)for(var s of u(e))t.indexOf(s)<0&&m.call(e,s)&&(i[s]=e[s]);return i})(e,["style","class","id"])}return this.$attrs}}});const y=["raw","percent"];var g=t.defineComponent({name:"BSliderThumb",components:{BTooltip:h},mixins:[p],props:{modelValue:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},indicator:{type:Boolean,default:!1},customFormatter:Function,format:{type:String,default:"raw",validator:e=>y.indexOf(e)>=0},locale:{type:[String,Array],default:()=>i},tooltipAlways:{type:Boolean,default:!1}},emits:{dragend:()=>!0,dragstart:()=>!0,"update:modelValue":e=>!0},data(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.modelValue}},computed:{parent(){return this.$parent},disabled(){return this.parent.disabled},max(){return this.parent.max},min(){return this.parent.min},step(){return this.parent.step},precision(){return this.parent.precision},currentPosition(){return(this.modelValue-this.min)/(this.max-this.min)*100+"%"},wrapperStyle(){return{left:this.currentPosition}},formattedValue(){return void 0!==this.customFormatter?this.customFormatter(this.modelValue):"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent"}).format((this.modelValue-this.min)/(this.max-this.min)):new Intl.NumberFormat(this.locale).format(this.modelValue)}},methods:{onFocus(){this.isFocused=!0},onBlur(){this.isFocused=!1},onButtonDown(e){this.disabled||(e.preventDefault(),this.onDragStart(e),"undefined"!=typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown(){this.disabled||this.modelValue===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.parent.emitValue("change"))},onRightKeyDown(){this.disabled||this.modelValue===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.parent.emitValue("change"))},onHomeKeyDown(){this.disabled||this.modelValue===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.parent.emitValue("change"))},onEndKeyDown(){this.disabled||this.modelValue===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.parent.emitValue("change"))},onDragStart(e){this.dragging=!0,this.$emit("dragstart"),this.startX="touchstart"===e.type?e.touches[0].clientX:e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging(e){if(this.dragging){const t=(("touchmove"===e.type?e.touches[0].clientX:e.clientX)-this.startX)/this.parent.sliderSize()*100;this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd(){this.dragging=!1,this.$emit("dragend"),this.modelValue!==this.oldValue&&this.parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!=typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition(e){if(null===e||isNaN(e))return;e<0?e=0:e>100&&(e=100);const t=100/((this.max-this.min)/this.step);let i=Math.round(e/t)*t/100*(this.max-this.min)+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("update:modelValue",i),this.dragging||i===this.oldValue||(this.oldValue=i)}},beforeUnmount(){document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd)}});const f=["tabindex"],v={key:0};var w=d(g,[["render",function(e,i,s,o,n,a){const r=t.resolveComponent("b-tooltip");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["b-slider-thumb-wrapper",{"is-dragging":e.dragging,"has-indicator":e.indicator}],style:e.wrapperStyle},e.rootAttrs),[t.createVNode(r,{label:e.formattedValue,type:e.type,always:e.dragging||e.isFocused||e.tooltipAlways,active:!e.disabled&&e.tooltip},{default:t.withCtx((()=>[t.createElementVNode("div",t.mergeProps({class:"b-slider-thumb",tabindex:e.disabled?void 0:0},e.fallthroughAttrs,{onMousedown:i[0]||(i[0]=(...t)=>e.onButtonDown&&e.onButtonDown(...t)),onTouchstart:i[1]||(i[1]=(...t)=>e.onButtonDown&&e.onButtonDown(...t)),onFocus:i[2]||(i[2]=(...t)=>e.onFocus&&e.onFocus(...t)),onBlur:i[3]||(i[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onKeydown:[i[4]||(i[4]=t.withKeys(t.withModifiers(((...t)=>e.onLeftKeyDown&&e.onLeftKeyDown(...t)),["prevent"]),["left"])),i[5]||(i[5]=t.withKeys(t.withModifiers(((...t)=>e.onRightKeyDown&&e.onRightKeyDown(...t)),["prevent"]),["right"])),i[6]||(i[6]=t.withKeys(t.withModifiers(((...t)=>e.onLeftKeyDown&&e.onLeftKeyDown(...t)),["prevent"]),["down"])),i[7]||(i[7]=t.withKeys(t.withModifiers(((...t)=>e.onRightKeyDown&&e.onRightKeyDown(...t)),["prevent"]),["up"])),i[8]||(i[8]=t.withKeys(t.withModifiers(((...t)=>e.onHomeKeyDown&&e.onHomeKeyDown(...t)),["prevent"]),["home"])),i[9]||(i[9]=t.withKeys(t.withModifiers(((...t)=>e.onEndKeyDown&&e.onEndKeyDown(...t)),["prevent"]),["end"]))]}),[e.indicator?(t.openBlock(),t.createElementBlock("span",v,t.toDisplayString(e.formattedValue),1)):t.createCommentVNode("v-if",!0)],16,f)])),_:1},8,["label","type","always","active"])],16)}]]),b=t.defineComponent({name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{parent(){return this.$parent},position(){const e=(this.value-this.parent.min)/(this.parent.max-this.parent.min)*100;return e>=0&&e<=100?e:0},hidden(){return this.value===this.parent.min||this.value===this.parent.max}},methods:{getTickStyle:e=>({left:e+"%"})},created(){if(!this.parent.$data._isSlider)throw new Error("You should wrap bSliderTick on a bSlider")}});const x={key:0,class:"b-slider-tick-label"};var k=d(b,[["render",function(e,i,s,o,n,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["b-slider-tick",{"is-tick-hidden":e.hidden}]),style:t.normalizeStyle(e.getTickStyle(e.position))},[e.$slots.default?(t.openBlock(),t.createElementBlock("span",x,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0)],6)}]]),V=t.defineComponent({name:"BSlider",components:{BSliderThumb:w,BSliderTick:k},props:{modelValue:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1},indicator:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>y.indexOf(e)>=0},locale:{type:[String,Array],default:()=>i},tooltipAlways:{type:Boolean,default:!1}},emits:{change:e=>!0,dragend:()=>!0,dragging:e=>!0,dragstart:()=>!0,"update:modelValue":e=>!0},data:()=>({value1:void 0,value2:void 0,internal:{value1:void 0,value2:void 0},dragging:!1,isRange:!1,isThumbReversed:!1,isTrackClickDisabled:!1,_isSlider:!0,timeOutID:void 0}),computed:{newTooltipType(){return this.tooltipType?this.tooltipType:this.type},tickValues(){if(!this.ticks||this.min>this.max||0===this.step)return[];const e=[];for(let t=this.min+this.step;t<this.max;t+=this.step)e.push(t);return e},minValue(){return Math.min(this.value1,this.value2)},maxValue(){return Math.max(this.value1,this.value2)},barSize(){return this.isRange?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.value1-this.min)/(this.max-this.min)+"%"},barStart(){return this.isRange?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision(){const e=[this.min,this.max,this.step].map((e=>{const t=(""+e).split(".")[1];return t?t.length:0}));return Math.max(...e)},barStyle(){return{width:this.barSize,left:this.barStart}},rootClasses(){return{"is-rounded":this.rounded,"is-dragging":this.dragging,"is-disabled":this.disabled,"slider-focus":this.biggerSliderFocus}}},watch:{modelValue(e){this.setValues(e)},internal({value1:e,value2:t}){this.value1=e,this.value2=t},value1(e){this.internal.value1!==e&&this.onInternalValueUpdate()},value2(e){this.internal.value2!==e&&this.onInternalValueUpdate()},min(){this.setValues(this.modelValue)},max(){this.setValues(this.modelValue)}},methods:{setValues(e){if(!(this.min>this.max))if(Array.isArray(e)){this.isRange=!0;const t="number"!=typeof e[0]||isNaN(e[0])?this.min:r(e[0],this.min,this.max),i="number"!=typeof e[1]||isNaN(e[1])?this.max:r(e[1],this.min,this.max);this.internal={value1:this.isThumbReversed?i:t,value2:this.isThumbReversed?t:i}}else this.isRange=!1,this.internal={value1:isNaN(e)?this.min:r(e,this.min,this.max),value2:void 0}},onInternalValueUpdate(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("update:modelValue"),this.dragging&&this.emitValue("dragging")},sliderSize(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick(e){if(this.disabled||this.isTrackClickDisabled)return;const t=this.$refs.slider.getBoundingClientRect().left,i=(e.clientX-t)/this.sliderSize()*100,s=this.min+i*(this.max-this.min)/100,o=Math.abs(s-this.value1);if(this.isRange){const e=Math.abs(s-this.value2);if(o<=e){if(o<this.step/2)return;this.$refs.button1.setPosition(i)}else{if(e<this.step/2)return;this.$refs.button2.setPosition(i)}}else{if(o<this.step/2)return;this.$refs.button1.setPosition(i)}this.emitValue("change")},onDragStart(){this.dragging=!0,this.$emit("dragstart")},onDragEnd(){this.isTrackClickDisabled=!0,this.timeOutID=setTimeout((()=>{this.isTrackClickDisabled=!1}),0),this.dragging=!1,this.$emit("dragend"),this.lazy&&this.emitValue("update:modelValue")},emitValue(e){const t=this.isRange?[this.minValue,this.maxValue]:this.value1;switch(e){case"change":case"dragging":case"update:modelValue":this.$emit(e,t)}}},created(){this.isThumbReversed=!1,this.isTrackClickDisabled=!1,this.setValues(this.modelValue)},beforeUnmount(){clearTimeout(this.timeOutID)}});const D={class:"b-slider-track",ref:"slider"};var B=d(V,[["render",function(e,i,s,o,n,a){const r=t.resolveComponent("b-slider-tick"),l=t.resolveComponent("b-slider-thumb");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["b-slider",[e.size,e.type,e.rootClasses]]),onClick:i[2]||(i[2]=(...t)=>e.onSliderClick&&e.onSliderClick(...t))},[t.createElementVNode("div",D,[t.createElementVNode("div",{class:"b-slider-fill",style:t.normalizeStyle(e.barStyle)},null,4),e.ticks?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.tickValues,((e,i)=>(t.openBlock(),t.createBlock(r,{key:i,value:e},null,8,["value"])))),128)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default"),t.createVNode(l,{"tooltip-always":e.tooltipAlways,modelValue:e.value1,"onUpdate:modelValue":i[0]||(i[0]=t=>e.value1=t),type:e.newTooltipType,tooltip:e.tooltip,"custom-formatter":e.customFormatter,indicator:e.indicator,format:e.format,locale:e.locale,ref:"button1",role:"slider","aria-valuenow":e.value1,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":"horizontal","aria-label":Array.isArray(e.ariaLabel)?e.ariaLabel[0]:e.ariaLabel,"aria-disabled":e.disabled||void 0,onDragstart:e.onDragStart,onDragend:e.onDragEnd},null,8,["tooltip-always","modelValue","type","tooltip","custom-formatter","indicator","format","locale","aria-valuenow","aria-valuemin","aria-valuemax","aria-label","aria-disabled","onDragstart","onDragend"]),e.isRange?(t.openBlock(),t.createBlock(l,{key:1,"tooltip-always":e.tooltipAlways,modelValue:e.value2,"onUpdate:modelValue":i[1]||(i[1]=t=>e.value2=t),type:e.newTooltipType,tooltip:e.tooltip,"custom-formatter":e.customFormatter,indicator:e.indicator,format:e.format,locale:e.locale,ref:"button2",role:"slider","aria-valuenow":e.value2,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":"horizontal","aria-label":Array.isArray(e.ariaLabel)?e.ariaLabel[1]:"","aria-disabled":e.disabled||void 0,onDragstart:e.onDragStart,onDragend:e.onDragEnd},null,8,["tooltip-always","modelValue","type","tooltip","custom-formatter","indicator","format","locale","aria-valuenow","aria-valuemin","aria-valuemax","aria-label","aria-disabled","onDragstart","onDragend"])):t.createCommentVNode("v-if",!0)],512)],2)}]]);const E=(e,t,i)=>{const s=t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)},C={install(e){E(e,B),E(e,k)}};e.BSlider=B,e.BSliderTick=k,e.default=C,Object.defineProperty(e,"__esModule",{value:!0})}));