buefy
Version:
Lightweight UI components for Vue.js (v3) based on Bulma
2 lines • 335 kB
JavaScript
/*! Buefy v3.0.7 | MIT License | github.com/buefy/buefy */
import{Fragment as e,Comment as t,Text as i,Static as s,inject as a,defineComponent as n,h as o,resolveComponent as l,openBlock as r,createElementBlock as d,normalizeClass as u,renderSlot as c,createTextVNode as h,toDisplayString as p,createCommentVNode as m,createBlock as f,withCtx as g,createVNode as b,renderList as v,createElementVNode as y,resolveDynamicComponent as k,mergeProps as w,withDirectives as S,vModelDynamic as C,vModelText as D,withKeys as x,withModifiers as M,Transition as B,normalizeStyle as $,vShow as V,normalizeProps as T,guardReactiveProps as P,vModelCheckbox as A,resolveDirective as O,createSlots as I,vModelSelect as F,toHandlers as L,createApp as N,vModelRadio as E,toHandlerKey as R,camelize as z,toRaw as H}from"vue";var j=Object.defineProperty,U=Math.pow,_=(e,t,i)=>((e,t,i)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,t+"",i);const W=["red","green","blue","alpha"],Y={transparent:"#00000000",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"};class K extends Error{constructor(){super("ColorTypeError: type must be hex(a), rgb(a) or hsl(a)")}}class q{constructor(...e){if(_(this,"$channels"),e.length>0)return q.parse(...e);this.$channels=new Uint8Array(W.length)}get red(){return this.$channels[0]}set red(e){Number.isNaN(e/1)||(this.$channels[0]=Math.min(255,Math.max(0,e)))}get green(){return this.$channels[1]}set green(e){Number.isNaN(e/1)||(this.$channels[1]=Math.min(255,Math.max(0,e)))}get blue(){return this.$channels[2]}set blue(e){Number.isNaN(e/1)||(this.$channels[2]=Math.min(255,Math.max(0,e)))}get alpha(){return this.$channels[3]}set alpha(e){Number.isNaN(e/1)||(this.$channels[3]=Math.min(255,Math.max(0,e)))}get hue(){return this.getHue()}set hue(e){Number.isNaN(e/1)||this.setHue(e)}get saturation(){return this.getSaturation()}set saturation(e){Number.isNaN(e/1)||this.setSaturation(e)}get lightness(){return this.getLightness()}set lightness(e){Number.isNaN(e/1)||this.setLightness(e)}getHue(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[s,a]=[Math.min(e,t,i),Math.max(e,t,i)],n=a-s;let o=0;if(0===n)return o;for(o=e===a?(t-i)/n%6:t===a?(i-e)/n+2:(e-t)/n+4,o*=60;o!==-1/0&&o<0;)o+=360;return Math.round(o%360)}setHue(e){const t=q.fromHSL(e,this.saturation,this.lightness,this.alpha/255);for(let e=0;e<this.$channels.length;e++)this.$channels[e]=Number(t.$channels[e])}getSaturation(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[s,a]=[Math.min(e,t,i),Math.max(e,t,i)],n=a-s;return 0!==n?Math.round(n/(1-Math.abs(2*this.lightness-1))*100)/100:0}setSaturation(e){const t=q.fromHSL(this.hue,e,this.lightness,this.alpha/255);W.forEach(((e,i)=>this.$channels[i]=t.$channels[i]))}getLightness(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[s,a]=[Math.min(e,t,i),Math.max(e,t,i)];return Math.round((a+s)/2*100)/100}setLightness(e){const t=q.fromHSL(this.hue,this.lightness,e,this.alpha/255);W.forEach(((e,i)=>this.$channels[i]=t.$channels[i]))}clone(){const e=new q;return W.forEach(((t,i)=>e.$channels[i]=this.$channels[i])),e}toString(e="hex"){switch(String(e).toLowerCase()){case"hex":return"#"+W.slice(0,3).map((e=>this[e].toString(16).padStart(2,"0"))).join("");case"hexa":return"#"+W.map((e=>this[e].toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round(this.alpha/2.55)/100})`;case"hsl":return`hsl(${Math.round(this.hue)}deg, ${Math.round(100*this.saturation)}%, ${Math.round(100*this.lightness)}%)`;case"hsla":return`hsla(${Math.round(this.hue)}deg, ${Math.round(100*this.saturation)}%, ${Math.round(100*this.lightness)}%, ${Math.round(this.alpha/2.55)/100})`;default:throw new K}}get[Symbol.toStringTag](){return this.toString("hex")}static parse(...e){if("object"==typeof e[0])return q.parseObject(e[0]);if(e.every((e=>!Number.isNaN(e/1)))){const t=new q;if(e.length>3)t.red=e[0],t.green=e[1],t.blue=e[2],e[3]&&(t.alpha=e[3]);else if(1===e.length){const t=Number(e[0]);return q.parseIndex(t,t>U(2,24)?3:4)}}else if("string"==typeof e[0]){let t=null;if("string"==typeof Y[e[0].toLowerCase()])return q.parseHex(Y[e[0].toLowerCase()]);if(null!==(t=e[0].match(/^(#|&h|0x)?(([a-f0-9]{3,4}){1,2})$/i)))return q.parseHex(t[2]);if(null!==(t=e[0].match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(\s*,\s*(\d*\.?\d+))?\s*\)$/i))){const e=[t[1],t[2],t[3],void 0!==t[5]?t[5]:1];return q.fromRGB(...e.map((e=>Number(e))))}if(e[0].match(/^(h(sl|wb)a?|lab|color|cmyk)\(/i))throw new Error("Color expression not implemented yet")}throw new Error("Invalid color expression")}static parseObject(e){const t=new q;return null===e||"object"!=typeof e?t:q.isColor(e)?e.clone():(W.forEach((i=>{Number.isNaN(e[i])||(t[i]=e[i])})),t)}static parseHex(e){if("string"!=typeof e)throw new Error("Hex expression must be a string");if(3!==(e=e.trim().replace(/^(0x|&h|#)/i,"")).length&&4!==e.length||(e=e.split("").map((e=>e.repeat(2))).join("")),6!==e.length&&8!==e.length)throw new Error("Incorrect Hex expression length");const t=e.split(/(..)/).filter((e=>e)).map((e=>Number.parseInt(e,16)));return"number"==typeof t[3]&&(t[3]/=255),q.fromRGB(...t)}static parseIndex(e,t=3){const i=new q;for(let s=0;s<4;s++)i[W[s]]=e>>8*(t-s)&&255;return i}static fromRGB(e,t,i,s=1){if([e,t,i,s].some((e=>Number.isNaN(e/1))))throw new Error("Invalid arguments");s*=255;const a=new q;return[e,t,i,s].forEach(((e,t)=>{a[W[t]]=e})),a}static fromHSL(e,t,i,s=1){if([e,t,i,s].some((e=>Number.isNaN(e))))throw new Error("Invalid arguments");for(;e<0&&e!==-1/0;)e+=360;e%=360,t=Math.max(0,Math.min(1,t)),i=Math.max(0,Math.min(1,i)),s=Math.max(0,Math.min(1,s));const a=(1-Math.abs(2*i-1))*t,n=a*(1-Math.abs(e/60%2-1)),o=i-a/2,[l,r,d]=e<60?[a,n,0]:e<120?[n,a,0]:e<180?[0,a,n]:e<240?[0,n,a]:e<300?[n,0,a]:[a,0,n];return q.fromRGB(255*(l+o),255*(r+o),255*(d+o),s)}static isColor(e){return e instanceof q}}const X=["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"];let G={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultTooltipCloseDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultDatetimeFormatter:null,defaultDatetimeParser:null,defaultDatetimeCreator:null,defaultClockpickerHoursLabel:null,defaultClockpickerMinutesLabel:null,defaultColorFormatter:null,defaultColorParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultTimepickerMobileModal:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultCompatFallthrough:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null,iconAliases:null};const Z=e=>{G=e};var Q=Object.defineProperty,J=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ie=(e,t,i)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,se=(e,t)=>{for(var i in t||(t={}))ee.call(t,i)&&ie(e,i,t[i]);if(J)for(var i of J(t))te.call(t,i)&&ie(e,i,t[i]);return e};const ae=Math.sign||function(e){return e<0?-1:e>0?1:0};function ne(e,t){return(e&t)===t}function oe(e,t){return(e%t+t)%t}function le(e,t,i){return Math.max(t,Math.min(i,e))}function re(e,t){return t.split(".").reduce(((e,t)=>e?e[t]:null),e)}function de(e,t,i){if(!e)return-1;if(!i||"function"!=typeof i)return e.indexOf(t);for(let s=0;s<e.length;s++)if(i(e[s],t))return s;return-1}const ue=e=>"object"==typeof e&&!Array.isArray(e),ce=(e,t,i=!1)=>{if(i||!Object.assign){const s=i=>ue(t[i])&&null!==e&&Object.prototype.hasOwnProperty.call(e,i)&&ue(e[i]),a=Object.getOwnPropertyNames(t).map((a=>({[a]:s(a)?ce(e[a],t[a]||{},i):t[a]}))).reduce(((e,t)=>se(se({},e),t)),{});return se(se({},e),a)}return Object.assign(e,t)},he=ce,pe={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return pe.Android()||pe.BlackBerry()||pe.iOS()||pe.Opera()||pe.Windows()}};function me(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function fe(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}function ge(e){return null!=e&&null!=e.$&&null!=e.$.vnode}function be(e){return e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):e}function ve(e){return e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function ye(e,t){return JSON.parse(JSON.stringify(e)).sort((i=t,(e,t)=>i.map((i=>{const{field:s,order:a,customSort:n}=i;if("function"==typeof n)return n(e,t,"desc"!==a);{const i=re(e,s),n=re(t,s),o=i>n?1:i<n?-1:0;return"desc"===a?-o:o}})).reduce(((e,t)=>e||t),0)));var i}function ke(e){let t;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event"),t.initEvent(e,!0,!0)),t}function we(e){return void 0===e?null:isNaN(+e)?`${e}`:e+"px"}function Se(e,t="long"){const i=[];for(let e=0;e<12;e++)i.push(new Date(2e3,e,15));const s=new Intl.DateTimeFormat(e,{month:t});return i.map((e=>s.format(e)))}function Ce(e,t="narrow"){const i=[];for(let e=0;e<7;e++){const t=new Date(2e3,0,e+1);i[t.getDay()]=t}const s=new Intl.DateTimeFormat(e,{weekday:t});return i.map((e=>s.format(e)))}function De(e,t){const i=t.match(e),s=e.toString().match(/<(.+?)>/g);if(null==s)throw new RangeError("pattern must contain at least one group");return s.map((e=>e.match(/<(.+)>/)[1])).reduce(((e,t,s)=>(i&&i.length>s?e[t]=i[s+1]:e[t]=null,e)),{})}function xe(){return new Promise((e=>{const t=new Image;t.onerror=()=>e(!1),t.onload=()=>e(1===t.width),t.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((()=>!1))}function Me(e){return null!=e.$root&&"shadowRoot"in e.$root.$options}const Be=e=>void 0!==e,$e=e=>null==e;function Ve(t){return t.type===e}function Te(e){return e.type!==t&&e.type!==i&&e.type!==s}function Pe(e){if(!e)return;const{component:t}=e;return t?t.exposed&&t.exposeProxy||t.proxy:void 0}function Ae(e,t){const{_context:i}=e,{_context:s}=t;s.config=i.config,s.mixins=i.mixins,s.components=i.components,s.directives=i.directives,s.provides=i.provides,s.optionsCache=i.optionsCache,s.propsCache=i.propsCache,s.emitsCache=i.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}const Oe=(e,t)=>{const{type:i,target:s}=t;let a=0,n=0;if(null!=s&&s!==e.target){const t=e.target.getBoundingClientRect(),i=s.getBoundingClientRect();a=i.left-t.left,n=i.top-t.top}const o=e.touches[0]||e.changedTouches[0];return new DragEvent(i,{dataTransfer:new DataTransfer,bubbles:!0,screenX:o.screenX,screenY:o.screenY,clientX:o.clientX+a,clientY:o.clientY+n,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey})},Ie=Symbol("Buefy Config Component");function Fe(){return a(Ie)}var Le={getOptions:()=>G,setOptions(e){Z(he(G,e,!0))}},Ne=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ze=n({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>G.defaultCompatFallthrough}},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)Ee.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&Ne)for(var s of Ne(e))t.indexOf(s)<0&&Re.call(e,s)&&(i[s]=e[s]);return i})(e,["style","class","id"])}return this.$attrs}}}),He=n({name:"BFieldBody",inject:{parent:{from:"BField",default:null}},props:{message:{type:[String,Array]},type:{type:[String,Object]}},render(){let s=!0,a="function"==typeof this.$slots.default?this.$slots.default():this.$slots.default;return null!=a&&1===a.length&&a[0].type===e&&(a=a[0].children),o("div",{class:"field-body"},{default:()=>null!=a&&a.map((e=>{if(e.type===t||e.type===i)return e;let a;s&&(a=this.message,s=!1);const n=this.parent;return o(n?n.$.type:l("b-field"),{type:this.type,message:a},(()=>e))}))})}});const je=n({name:"BField",components:{BFieldBody:He},provide(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:{type:[String,Object],default:void 0},label:String,labelFor:String,message:{type:[String,Array,Object],default:void 0},grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:()=>G.defaultFieldLabelPosition}},data(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,numberInputClasses:[],_isField:!0}},computed:{rootClasses(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition(){if(void 0===this.position)return;const e=this.position.split("-");if(e.length<1)return;const t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0},formattedMessage(){const e=this.parent;if(e&&e.hasInnerField)return"";if("string"==typeof this.newMessage)return[this.newMessage];const t=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((e=>{if("string"==typeof e)t.push(e);else for(const i in e)e[i]&&t.push(i)}));else for(const e in this.newMessage)this.newMessage[e]&&t.push(e);return t.filter((e=>!!e))},hasLabel(){return this.label||this.$slots.label},hasMessage(){const e=this.parent;return(!e||!e.hasInnerField)&&this.newMessage||this.$slots.message}},watch:{type(e){this.newType=e},message(e){JSON.stringify(e)!==JSON.stringify(this.newMessage)&&(this.newMessage=e)},newMessage(e){const t=this.parent;t&&t.hasInnerField&&(t.type||(t.newType=this.newType),t.message||(t.newMessage=e))}},methods:{fieldType(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons(){let e=0;return this.$slots.default&&(e=this.$slots.default().reduce(((e,t)=>Te(t)?e+1:e),0)),e>1&&this.addons&&!this.horizontal},wrapNumberinput({controlsPosition:e,size:t}){const i=["has-numberinput"];e&&i.push(`has-numberinput-${e}`),t&&i.push(`has-numberinput-${t}`),this.numberInputClasses=i}},mounted(){if(this.horizontal){this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal")}}});var Ue=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};const _e=["for"],We=["for"],Ye={key:3,class:"field-body"};var Ke=Ue(je,[["render",function(t,i,s,a,n,o){const y=l("b-field-body"),k=l("b-field");return r(),d("div",{class:u(["field",t.rootClasses])},[t.horizontal?(r(),d("div",{key:0,class:u(["field-label",[t.customClass,t.fieldLabelSize]])},[t.hasLabel?(r(),d("label",{key:0,for:t.labelFor,class:u([t.customClass,"label"])},[t.$slots.label?c(t.$slots,"label",{key:0}):(r(),d(e,{key:1},[h(p(t.label),1)],64))],10,_e)):m("v-if",!0)],2)):(r(),d(e,{key:1},[t.hasLabel?(r(),d("label",{key:0,for:t.labelFor,class:u([t.customClass,"label"])},[t.$slots.label?c(t.$slots,"label",{key:0}):(r(),d(e,{key:1},[h(p(t.label),1)],64))],10,We)):m("v-if",!0)],64)),t.horizontal?(r(),f(y,{key:2,message:t.newMessage?t.formattedMessage:"",type:t.newType},{default:g((()=>[c(t.$slots,"default")])),_:3},8,["message","type"])):t.hasInnerField?(r(),d("div",Ye,[b(k,{addons:!1,type:t.type,class:u(t.innerFieldClasses)},{default:g((()=>[c(t.$slots,"default")])),_:3},8,["type","class"])])):c(t.$slots,"default",{key:4}),t.hasMessage&&!t.horizontal?(r(),d("p",{key:5,class:u(["help",t.newType])},[t.$slots.message?c(t.$slots,"message",{key:0,messages:t.formattedMessage}):(r(!0),d(e,{key:1},v(t.formattedMessage,((i,s)=>(r(),d(e,null,[h(p(i)+" ",1),s+1<t.formattedMessage.length?(r(),d("br",{key:s})):m("v-if",!0)],64)))),256))],2)):m("v-if",!0)],2)}]]);const qe=n({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>G.defaultUseHtml5Validation},validationMessage:String,locale:{type:[String,Array],default:()=>G.defaultLocale},statusIcon:{type:Boolean,default:()=>G.defaultStatusIcon}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||G.defaultIconPack,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}}),Xe={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},Ge=()=>{const e=G&&G.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var Ze=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(e,t,i)=>t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,it=(e,t)=>{for(var i in t||(t={}))Je.call(t,i)&&tt(e,i,t[i]);if(Qe)for(var i of Qe(t))et.call(t,i)&&tt(e,i,t[i]);return e};const st={checkboxOn:{type:"svg",viewBox:"0 0 1 1",path:"M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"},checkboxIndeterminate:{type:"svg",viewBox:"0 0 1 1",path:"M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"},chevronLeft:{type:"svg",path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},chevronRight:{type:"svg",path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},chevronDown:{type:"svg",path:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},chevronUp:{type:"svg",path:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},menuDown:{type:"svg",path:"M7,10L12,15L17,10H7Z"},menuUp:{type:"svg",path:"M7,14L12,9L17,14H7Z"},check:{type:"svg",path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},alertCircle:{type:"svg",path:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},alert:{type:"svg",path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"},information:{type:"svg",path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},close:{type:"svg",path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},closeCircle:{type:"svg",path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},eye:{type:"svg",path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},eyeOff:{type:"svg",path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}};function at(){return G.iconAliases?it(it({},st),G.iconAliases):st}function nt(e){return at()[e]}var ot=n({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!1,default:void 0},alias:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{resolvedAlias(){var e;return this.alias&&null!=(e=nt(this.alias))?e:null},isSvgAlias(){var e;return"svg"===(null==(e=this.resolvedAlias)?void 0:e.type)},isComponentAlias(){var e;return"component"===(null==(e=this.resolvedAlias)?void 0:e.type)},resolvedAliasSvg(){return this.resolvedAlias},resolvedAliasComponent(){return this.resolvedAlias},iconConfig(){return(()=>{let e={mdi:Xe,fa:Ge(),fas:Ge(),far:Ge(),fad:Ge(),fab:Ge(),fal:Ge(),"fa-solid":Ge(),"fa-regular":Ge(),"fa-light":Ge(),"fa-thin":Ge(),"fa-duotone":Ge(),"fa-brands":Ge()};return G&&G.customIconPacks&&(e=he(e,G.customIconPacks,!0)),e})()[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){var e;return`${this.iconPrefix}${this.getEquivalentIconOf(null!=(e=this.icon)?e:"")}`},newPack(){return this.pack||G.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||G.defaultIconComponent}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}});const lt=["viewBox"],rt=["d"];var dt=Ue(ot,[["render",function(e,t,i,s,a,n){return r(),d("span",{class:u(["icon",[e.newType,e.size]])},[e.isSvgAlias?(r(),d("svg",{key:0,viewBox:e.resolvedAliasSvg.viewBox||"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:u(e.customClass),"aria-hidden":"true"},[y("path",{fill:"currentColor",d:e.resolvedAliasSvg.path},null,8,rt)],10,lt)):e.isComponentAlias?(r(),f(k(e.resolvedAliasComponent.component),{key:1,icon:e.resolvedAliasComponent.icon,class:u(e.customClass)},null,8,["icon","class"])):e.useIconComponent?(r(),f(k(e.useIconComponent),{key:3,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:u([e.customClass])},null,8,["icon","size","class"])):(r(),d("i",{key:2,class:u([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),ut=n({name:"BInput",components:{BIcon:dt},mixins:[ze,qe],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>G.defaultInputHasCounter},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||G.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const ct=["type","autocomplete","maxlength"],ht=["maxlength"],pt=["type","autocomplete","maxlength"],mt=["maxlength"];var ft=Ue(ut,[["render",function(t,i,s,a,n,o){const c=l("b-icon");return r(),d("div",w({class:["control",t.rootClasses]},t.rootAttrs),[t.lazy?(r(),d(e,{key:0},["textarea"!==t.type?S((r(),d("input",w({key:0,ref:"input",class:["input",[t.inputClasses,t.customClass]],type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength,"onUpdate:modelValue":i[0]||(i[0]=e=>t.computedValue=e)},t.fallthroughAttrs,{onInput:i[1]||(i[1]=(...e)=>t.onInput&&t.onInput(...e)),onChange:i[2]||(i[2]=(...e)=>t.onChange&&t.onChange(...e)),onBlur:i[3]||(i[3]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:i[4]||(i[4]=(...e)=>t.onFocus&&t.onFocus(...e))}),null,16,ct)),[[C,t.computedValue,void 0,{lazy:!0}]]):S((r(),d("textarea",w({key:1,ref:"textarea",class:["textarea",[t.inputClasses,t.customClass]],maxlength:t.maxlength,"onUpdate:modelValue":i[5]||(i[5]=e=>t.computedValue=e)},t.fallthroughAttrs,{onInput:i[6]||(i[6]=(...e)=>t.onInput&&t.onInput(...e)),onChange:i[7]||(i[7]=(...e)=>t.onChange&&t.onChange(...e)),onBlur:i[8]||(i[8]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:i[9]||(i[9]=(...e)=>t.onFocus&&t.onFocus(...e))}),null,16,ht)),[[D,t.computedValue,void 0,{lazy:!0}]])],64)):(r(),d(e,{key:1},["textarea"!==t.type?S((r(),d("input",w({key:0,ref:"input",class:["input",[t.inputClasses,t.customClass]],type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength,"onUpdate:modelValue":i[10]||(i[10]=e=>t.computedValue=e)},t.fallthroughAttrs,{onInput:i[11]||(i[11]=(...e)=>t.onInput&&t.onInput(...e)),onChange:i[12]||(i[12]=(...e)=>t.onChange&&t.onChange(...e)),onBlur:i[13]||(i[13]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:i[14]||(i[14]=(...e)=>t.onFocus&&t.onFocus(...e))}),null,16,pt)),[[C,t.computedValue]]):S((r(),d("textarea",w({key:1,ref:"textarea",class:["textarea",[t.inputClasses,t.customClass]],maxlength:t.maxlength,"onUpdate:modelValue":i[15]||(i[15]=e=>t.computedValue=e)},t.fallthroughAttrs,{onInput:i[16]||(i[16]=(...e)=>t.onInput&&t.onInput(...e)),onChange:i[17]||(i[17]=(...e)=>t.onChange&&t.onChange(...e)),onBlur:i[18]||(i[18]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:i[19]||(i[19]=(...e)=>t.onFocus&&t.onFocus(...e))}),null,16,mt)),[[D,t.computedValue]])],64)),t.icon?(r(),f(c,{key:2,class:u(["is-left",{"is-clickable":t.iconClickable}]),icon:t.icon,pack:t.iconPack,size:t.iconSize,onClick:i[20]||(i[20]=e=>t.iconClick("icon-click",e))},null,8,["class","icon","pack","size"])):m("v-if",!0),!t.loading&&t.hasIconRight&&t.rightIcon?(r(),f(c,{key:3,class:u(["is-right",{"is-clickable":t.passwordReveal||t.iconRightClickable}]),icon:t.rightIcon,pack:t.iconPack,size:t.iconSize,type:t.rightIconType,both:"",onClick:t.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):m("v-if",!0),t.maxlength&&t.hasCounter&&"number"!==t.type?(r(),d("small",{key:4,class:u(["help counter",{"is-invisible":!t.isFocused}])},p(t.valueLength)+" / "+p(t.maxlength),3)):m("v-if",!0)],16)}]]),gt=n({name:"BAutocomplete",components:{BInput:ft},mixins:[ze,qe],props:{modelValue:[Number,String,null],data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:{type:Function},checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:()=>["Tab","Enter"]},selectableHeader:Boolean,selectableFooter:Boolean,autocomplete:String},emits:{active:e=>!0,blur:e=>!0,focus:e=>!0,"icon-click":e=>!0,"icon-right-click":e=>!0,"infinite-scroll":()=>!0,select:(e,t)=>!0,"select-footer":e=>!0,"select-header":e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.modelValue,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0,timeOutID:void 0}},computed:{computedData(){const{groupField:e,groupOptions:t}=this;if(e){if(t){const i=[];return this.data.forEach((s=>{const a=re(s,e),n=re(s,t);i.push({group:a,items:n})})),i}{const t={};this.data.forEach((i=>{const s=re(i,e);t[s]||(t[s]=[]),t[s].push(i)}));const i=[];return Object.keys(t).forEach((e=>{i.push({group:e,items:t[e]})})),i}}return[{items:this.data}]},isEmpty(){return!this.computedData||!this.computedData.some((e=>e.items&&e.items.length))},whiteList(){var e;this.computedData;const t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),null!=this.$refs.dropdown){const e=this.$refs.dropdown.querySelectorAll("*");for(const i of e)t.push(i)}if((null==(e=this.$parent)?void 0:e.$data)._isTaginput){t.push(this.$parent.$el);const e=this.$parent.$el.querySelectorAll("*");for(const i of e)t.push(i)}return t},hasDefaultSlot(){return!!this.$slots.default},hasGroupSlot(){return!!this.$slots.group},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return!!this.clearable||this.iconRightClickable},contentStyle(){return{maxHeight:we(this.maxHeight)||void 0}}},watch:{isActive(e){"auto"===this.dropdownPosition&&(e?this.calcDropdownInViewportVertical():this.timeOutID=setTimeout((()=>{this.calcDropdownInViewportVertical()}),100)),this.$nextTick((()=>{this.$emit("active",e)}))},checkInfiniteScroll(e){if(!this.$refs.dropdown)return;const t=this.$refs.dropdown.querySelector(".dropdown-content");t&&(!0!==e?t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll):t.addEventListener("scroll",this.checkIfReachedTheEndOfScroll))},newValue(e){this.$emit("update:modelValue",e);const t=this.getValue(this.selected);null!=t&&t!==e&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&""===e||(this.isActive=""!==e&&null!=e)},modelValue(e){this.newValue=e},keepFirst(e){this.ariaAutocomplete=e?"both":"list"},data(){if(this.keepFirst)this.$nextTick((()=>{this.isActive?this.selectFirstOption(this.computedData):this.setHovered(null)}));else if(this.hovered){const e=this.getValue(this.hovered);this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]).some((t=>this.getValue(t)===e))||this.setHovered(null)}},appendToBody(e,t){e&&!t?this.isActive&&this.$refs.dropdown&&!this.$data._bodyEl&&(this.$data._bodyEl=fe(this.$refs.dropdown),this.updateAppendToBody()):!e&&t&&this.$data._bodyEl&&(me(this.$data._bodyEl),this.$data._bodyEl=void 0)}},methods:{setHovered(e){void 0!==e&&(this.hovered=e)},setSelected(e,t=!0,i){void 0!==e&&(this.selected=e,this.$emit("select",this.selected,i),null!==this.selected&&(this.clearOnSelect?this.newValue="":this.newValue=this.getValue(this.selected),this.setHovered(null)),t&&this.$nextTick((()=>{this.isActive=!1})),this.checkValidity())},selectFirstOption(e){this.$nextTick((()=>{const t=e.filter((e=>e.items&&e.items.length));if(t.length){const e=t[0].items[0];this.setHovered(e)}else this.setHovered(null)}))},findHoveredIndex(e){if(null===this.hovered||void 0===this.hovered)return-1;const t=e.indexOf(this.hovered);if(-1!==t)return t;const i=this.getValue(this.hovered);return null==i?-1:e.findIndex((e=>null==e?null==i:this.getValue(e)===i))},keydown(e){const{key:t}=e;if("Enter"===t&&e.preventDefault(),"Escape"!==t&&"Tab"!==t||(this.isActive=!1),this.confirmKeys.indexOf(t)>=0){","===t&&e.preventDefault();const i=!this.keepOpen||"Tab"===t;if(null===this.hovered)return void this.checkIfHeaderOrFooterSelected(e,null,i);this.setSelected(this.hovered,i,e)}},selectHeaderOrFoterByClick(e,t){this.checkIfHeaderOrFooterSelected(e,{origin:t})},checkIfHeaderOrFooterSelected(e,t,i=!0){this.selectableHeader&&(this.headerHovered||t&&"header"===t.origin)&&(this.$emit("select-header",e),this.headerHovered=!1,t&&this.setHovered(null),i&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||t&&"footer"===t.origin)&&(this.$emit("select-footer",e),this.footerHovered=!1,t&&this.setHovered(null),i&&(this.isActive=!1))},clickedOutside(e){const t=Me(this)?e.composedPath()[0]:e.target;!this.hasFocus&&this.whiteList.indexOf(t)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue(e){if(null!==e)return void 0!==this.customFormatter?this.customFormatter(e):"object"==typeof e?re(e,this.field):e},checkIfReachedTheEndOfScroll(){const e=this.$refs.dropdown.querySelector(".dropdown-content"),t=this.hasFooterSlot?e.querySelectorAll("div.dropdown-footer")[0].clientHeight:0;e.clientHeight!==e.scrollHeight&&e.scrollTop+e.parentElement.clientHeight+t>=e.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick((()=>{var e;if(null==this.$refs.dropdown)return;const t=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=t.top>=0&&t.bottom<=((null==window?void 0:window.innerHeight)||(null==(e=null==document?void 0:document.documentElement)?void 0:e.clientHeight)),this.appendToBody&&this.updateAppendToBody()}))},keyArrows(e){const t="down"===e?1:-1;if(this.isActive){const e=this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]);let i;this.hasHeaderSlot&&this.selectableHeader&&e.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&e.push(void 0),i=this.headerHovered?0+t:this.footerHovered?e.length-1+t:this.findHoveredIndex(e)+t,i=i>e.length-1?e.length-1:i,i=i<0?0:i,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(void 0!==e[i]?e[i]:null),this.hasFooterSlot&&this.selectableFooter&&i===e.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&0===i&&(this.headerHovered=!0);const s=this.$refs.dropdown.querySelector(".dropdown-content");let a="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(a+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(a+=",div.dropdown-footer");const n=s.querySelectorAll(a)[i];if(!n)return;const o=s.scrollTop,l=s.scrollTop+s.clientHeight-n.clientHeight;n.offsetTop<o?s.scrollTop=n.offsetTop:n.offsetTop>=l&&(s.scrollTop=n.offsetTop-s.clientHeight+n.clientHeight)}else this.isActive=!0},focused(e){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(){const e=this.getValue(this.selected);null!=e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(e){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",e)},checkValidity(){this.useHtml5Validation&&this.$nextTick((()=>{this.checkHtml5Validity()}))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$parent.$data._isTaginput?this.$parent.$el:this.$refs.input.$el;if(e&&t){this.$data._bodyEl||(this.$data._bodyEl=fe(e));const i=this.$data._bodyEl;i.classList.forEach((e=>i.classList.remove(e))),i.classList.add("autocomplete"),i.classList.add("control"),this.expanded&&i.classList.add("is-expanded");const s=t.getBoundingClientRect();let a=s.top+window.scrollY;const n=s.left+window.scrollX;this.isOpenedTop?a-=e.clientHeight:a+=t.clientHeight,this.style={position:"absolute",top:`${a}px`,left:`${n}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.addEventListener("scroll",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").addEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&(this.$data._bodyEl=fe(this.$refs.dropdown),this.updateAppendToBody())},beforeUnmount(){if("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.removeEventListener("scroll",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&this.$data._bodyEl&&me(this.$data._bodyEl),clearTimeout(this.timeOutID)}});const bt={key:1,class:"has-text-weight-bold"},vt=["onClick"],yt={key:1},kt={key:1,class:"dropdown-item is-disabled"};var wt=Ue(gt,[["render",function(t,i,s,a,n,o){const h=l("b-input");return r(),d("div",w({class:["autocomplete control",{"is-expanded":t.expanded}]},t.rootAttrs),[b(h,w({modelValue:t.newValue,"onUpdate:modelValue":i[0]||(i[0]=e=>t.newValue=e),ref:"input",type:t.type,size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":t.ariaAutocomplete},t.fallthroughAttrs,{"onUpdate:modelValue":t.onInput,onFocus:t.focused,onBlur:t.onBlur,onKeydown:[t.keydown,i[1]||(i[1]=x(M((e=>t.keyArrows("up")),["prevent"]),["up"])),i[2]||(i[2]=x(M((e=>t.keyArrows("down")),["prevent"]),["down"]))],onIconRightClick:t.rightIconClick,onIconClick:i[3]||(i[3]=e=>t.$emit("icon-click",e))}),null,16,["modelValue","type","size","loading","rounded","icon","icon-right","icon-right-clickable","icon-pack","maxlength","autocomplete","aria-autocomplete","onUpdate:modelValue","onFocus","onBlur","onKeydown","onIconRightClick"]),b(B,{name:"fade",persisted:""},{default:g((()=>[S(y("div",{class:u(["dropdown dropdown-menu",{"is-opened-top":t.isOpenedTop&&!t.appendToBody}]),style:$(t.style),ref:"dropdown"},[S(y("div",{class:"dropdown-content",style:$(t.contentStyle)},[t.hasHeaderSlot?(r(),d("div",{key:0,class:u(["dropdown-item dropdown-header",{"is-hovered":t.headerHovered}]),role:"button",tabindex:"0",onClick:i[4]||(i[4]=e=>t.selectHeaderOrFoterByClick(e,"header"))},[c(t.$slots,"header")],2)):m("v-if",!0),(r(!0),d(e,null,v(t.computedData,((i,s)=>(r(),d(e,null,[i.group?(r(),d("div",{key:s+"group",class:"dropdown-item"},[t.hasGroupSlot?c(t.$slots,"group",{key:0,group:i.group,index:s}):(r(),d("span",bt,p(i.group),1))])):m("v-if",!0),(r(!0),d(e,null,v(i.items,((e,i)=>(r(),d("a",{key:s+":"+i,class:u(["dropdown-item",{"is-hovered":e===t.hovered}]),role:"button",tabindex:"0",onClick:M((i=>t.setSelected(e,!t.keepOpen,i)),["stop"])},[t.hasDefaultSlot?c(t.$slots,"default",{key:0,option:e,index:i}):(r(),d("span",yt,p(t.getValue(e)),1))],10,vt)))),128))],64)))),256)),t.isEmpty&&t.hasEmptySlot?(r(),d("div",kt,[c(t.$slots,"empty")])):m("v-if",!0),t.hasFooterSlot?(r(),d("div",{key:2,class:u(["dropdown-item dropdown-footer",{"is-hovered":t.footerHovered}]),role:"button",tabindex:"0",onClick:i[5]||(i[5]=e=>t.selectHeaderOrFoterByClick(e,"footer"))},[c(t.$slots,"footer")],2)):m("v-if",!0)],4),[[V,t.isActive]])],6),[[V,t.isActive&&(!t.isEmpty||t.hasEmptySlot||t.hasHeaderSlot||t.hasFooterSlot)]])])),_:3})],16)}]]);const St=(e,t,i)=>{const s=i||t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)},Ct=(e,t,i,s)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=i,e.provide(s,i)},Dt={install(e){St(e,wt)}};var xt=Ue(n({name:"BBreadcrumb",props:{align:{type:String,default:()=>G.defaultBreadcrumbAlign},separator:{type:String,default:()=>G.defaultBreadcrumbSeparator},size:{type:String,default:()=>G.defaultBreadcrumbSize}},computed:{breadcrumbClasses(){return["breadcrumb",this.align,this.separator,this.size]}}}),[["render",function(e,t,i,s,a,n){return r(),d("nav",{class:u(e.breadcrumbClasses)},[y("ul",null,[c(e.$slots,"default")])],2)}]]);var Mt=Ue(n({name:"BBreadcrumbItem",mixins:[ze],props:{tag:{type:[String,Object],default:()=>G.defaultBreadcrumbTag},active:Boolean}}),[["render",function(e,t,i,s,a,n){return r(),d("li",w({class:{"is-active":e.active}},e.rootAttrs),[(r(),f(k(e.tag),T(P(e.fallthroughAttrs)),{default:g((()=>[c(e.$slots,"default")])),_:3},16))],16)}]]);const Bt={install(e){St(e,xt),St(e,Mt)}},$t=["button","submit","reset"];var Vt=n({name:"BButton",components:{BIcon:dt},inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>G.defaultButtonRounded},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:e=>$t.indexOf(e)>=0},tag:{type:[String,Object],default:"button",validator:e=>"object"==typeof e||G.defaultLinkTags.indexOf(e)>=0}},computed:{computedTag(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}});const Tt={key:1},Pt={key:2};var At=Ue(Vt,[["render",function(e,t,i,s,a,n){const o=l("b-icon");return r(),f(k(e.computedTag),w({class:"button"},e.$attrs,{type:"string"==typeof e.computedTag&&["button","input"].includes(e.computedTag)?e.nativeType:void 0,class:[e.size,e.type,{"is-rounded":e.rounded,"is-loading":e.loading,"is-outlined":e.outlined,"is-fullwidth":e.expanded,"is-inverted":e.inverted,"is-focused":e.focused,"is-active":e.active,"is-hovered":e.hovered,"is-selected":e.selected}]}),{default:g((()=>[e.iconLeft?(r(),f(o,{key:0,pack:e.iconPack,icon:e.iconLeft,