buefy 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +21 -11
  2. package/dist/buefy.css +1 -10
  3. package/dist/buefy.d.ts +11 -18
  4. package/dist/buefy.esm.js +137 -33
  5. package/dist/buefy.esm.min.js +2 -2
  6. package/dist/buefy.js +137 -33
  7. package/dist/buefy.min.css +1 -1
  8. package/dist/buefy.min.js +2 -2
  9. package/dist/cjs/{Autocomplete-bK5HLaUH.js → Autocomplete-BMmOsPiK.js} +120 -27
  10. package/dist/cjs/autocomplete.js +1 -1
  11. package/dist/cjs/clockpicker.js +16 -5
  12. package/dist/cjs/index.js +1 -1
  13. package/dist/cjs/taginput.js +1 -1
  14. package/dist/components/autocomplete/index.js +121 -28
  15. package/dist/components/autocomplete/index.min.js +2 -2
  16. package/dist/components/breadcrumb/index.js +1 -1
  17. package/dist/components/breadcrumb/index.min.js +1 -1
  18. package/dist/components/button/index.js +1 -1
  19. package/dist/components/button/index.min.js +1 -1
  20. package/dist/components/carousel/index.js +1 -1
  21. package/dist/components/carousel/index.min.js +1 -1
  22. package/dist/components/checkbox/index.js +1 -1
  23. package/dist/components/checkbox/index.min.js +1 -1
  24. package/dist/components/clockpicker/index.js +17 -6
  25. package/dist/components/clockpicker/index.min.js +2 -2
  26. package/dist/components/collapse/index.js +1 -1
  27. package/dist/components/collapse/index.min.js +1 -1
  28. package/dist/components/colorpicker/index.js +1 -1
  29. package/dist/components/colorpicker/index.min.js +1 -1
  30. package/dist/components/datepicker/index.js +1 -1
  31. package/dist/components/datepicker/index.min.js +1 -1
  32. package/dist/components/datetimepicker/index.js +1 -1
  33. package/dist/components/datetimepicker/index.min.js +1 -1
  34. package/dist/components/dialog/index.js +1 -1
  35. package/dist/components/dialog/index.min.js +1 -1
  36. package/dist/components/dropdown/index.js +1 -1
  37. package/dist/components/dropdown/index.min.js +1 -1
  38. package/dist/components/field/index.js +1 -1
  39. package/dist/components/field/index.min.js +1 -1
  40. package/dist/components/icon/index.js +1 -1
  41. package/dist/components/icon/index.min.js +1 -1
  42. package/dist/components/image/index.js +1 -1
  43. package/dist/components/image/index.min.js +1 -1
  44. package/dist/components/input/index.js +1 -1
  45. package/dist/components/input/index.min.js +1 -1
  46. package/dist/components/loading/index.js +1 -1
  47. package/dist/components/loading/index.min.js +1 -1
  48. package/dist/components/menu/index.js +1 -1
  49. package/dist/components/menu/index.min.js +1 -1
  50. package/dist/components/message/index.js +1 -1
  51. package/dist/components/message/index.min.js +1 -1
  52. package/dist/components/modal/index.js +1 -1
  53. package/dist/components/modal/index.min.js +1 -1
  54. package/dist/components/navbar/index.js +1 -1
  55. package/dist/components/navbar/index.min.js +1 -1
  56. package/dist/components/notification/index.js +1 -1
  57. package/dist/components/notification/index.min.js +1 -1
  58. package/dist/components/numberinput/index.js +1 -1
  59. package/dist/components/numberinput/index.min.js +1 -1
  60. package/dist/components/pagination/index.js +1 -1
  61. package/dist/components/pagination/index.min.js +1 -1
  62. package/dist/components/progress/index.js +1 -1
  63. package/dist/components/progress/index.min.js +1 -1
  64. package/dist/components/radio/index.js +1 -1
  65. package/dist/components/radio/index.min.js +1 -1
  66. package/dist/components/rate/index.js +1 -1
  67. package/dist/components/rate/index.min.js +1 -1
  68. package/dist/components/select/index.js +1 -1
  69. package/dist/components/select/index.min.js +1 -1
  70. package/dist/components/sidebar/index.js +1 -1
  71. package/dist/components/sidebar/index.min.js +1 -1
  72. package/dist/components/skeleton/index.js +1 -1
  73. package/dist/components/skeleton/index.min.js +1 -1
  74. package/dist/components/slider/index.js +1 -1
  75. package/dist/components/slider/index.min.js +1 -1
  76. package/dist/components/snackbar/index.js +1 -1
  77. package/dist/components/snackbar/index.min.js +1 -1
  78. package/dist/components/steps/index.js +1 -1
  79. package/dist/components/steps/index.min.js +1 -1
  80. package/dist/components/switch/index.js +1 -1
  81. package/dist/components/switch/index.min.js +1 -1
  82. package/dist/components/table/index.js +1 -1
  83. package/dist/components/table/index.min.js +1 -1
  84. package/dist/components/tabs/index.js +1 -1
  85. package/dist/components/tabs/index.min.js +1 -1
  86. package/dist/components/tag/index.js +1 -1
  87. package/dist/components/tag/index.min.js +1 -1
  88. package/dist/components/taginput/index.js +121 -28
  89. package/dist/components/taginput/index.min.js +2 -2
  90. package/dist/components/timepicker/index.js +1 -1
  91. package/dist/components/timepicker/index.min.js +1 -1
  92. package/dist/components/toast/index.js +1 -1
  93. package/dist/components/toast/index.min.js +1 -1
  94. package/dist/components/tooltip/index.js +1 -1
  95. package/dist/components/tooltip/index.min.js +1 -1
  96. package/dist/components/upload/index.js +1 -1
  97. package/dist/components/upload/index.min.js +1 -1
  98. package/dist/esm/{Autocomplete-DyPAHhWD.js → Autocomplete-CjbTh9D8.js} +120 -27
  99. package/dist/esm/autocomplete.js +1 -1
  100. package/dist/esm/clockpicker.js +16 -5
  101. package/dist/esm/index.js +1 -1
  102. package/dist/esm/taginput.js +1 -1
  103. package/package.json +6 -3
  104. package/src/components/autocomplete/Autocomplete.spec.ts +349 -11
  105. package/src/components/autocomplete/Autocomplete.vue +232 -64
  106. package/src/components/clockpicker/Clockpicker.vue +18 -5
  107. package/src/components/snackbar/index.ts +1 -1
  108. package/src/scss/components/_upload.scss +0 -11
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Datetimepicker={},e.Vue)}(this,(function(e,t){"use strict";let i,s="mdi",a=null,n="chevron-left",o="chevron-right",l="on",r=null,d=null,c=null,u=!0,h=!0,m=!0,p=!0,f=!0,g=!0,y=!0,b=null,k=[-100,10],D=!0,v=!1,w=!1,B=!1,S=!0,C=!0,V=!0;const M={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 M.Android()||M.BlackBerry()||M.iOS()||M.Opera()||M.Windows()}};function F(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)),{})}const x=e=>void 0!==e;var N=t.defineComponent({name:"BFieldBody",inject:{parent:{from:"BField",default:null}},props:{message:{type:[String,Array]},type:{type:[String,Object]}},render(){let e=!0,i="function"==typeof this.$slots.default?this.$slots.default():this.$slots.default;return null!=i&&1===i.length&&i[0].type===t.Fragment&&(i=i[0].children),t.h("div",{class:"field-body"},{default:()=>null!=i&&i.map((i=>{if(i.type===t.Comment||i.type===t.Text)return i;let s;e&&(s=this.message,e=!1);const a=this.parent;return t.h(a?a.$.type:t.resolveComponent("b-field"),{type:this.type,message:s},(()=>i))}))})}});const T=t.defineComponent({name:"BField",components:{BFieldBody:N},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:()=>b}},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,i)=>{return(s=i).type!==t.Comment&&s.type!==t.Text&&s.type!==t.Static?e+1:e;var s}),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 O=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};const E=["for"],$=["for"],A={key:3,class:"field-body"};var P=O(T,[["render",function(e,i,s,a,n,o){const l=t.resolveComponent("b-field-body"),r=t.resolveComponent("b-field");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["field",e.rootClasses])},[e.horizontal?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["field-label",[e.customClass,e.fieldLabelSize]])},[e.hasLabel?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.labelFor,class:t.normalizeClass([e.customClass,"label"])},[e.$slots.label?t.renderSlot(e.$slots,"label",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],10,E)):t.createCommentVNode("v-if",!0)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.hasLabel?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.labelFor,class:t.normalizeClass([e.customClass,"label"])},[e.$slots.label?t.renderSlot(e.$slots,"label",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],10,$)):t.createCommentVNode("v-if",!0)],64)),e.horizontal?(t.openBlock(),t.createBlock(l,{key:2,message:e.newMessage?e.formattedMessage:"",type:e.newType},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["message","type"])):e.hasInnerField?(t.openBlock(),t.createElementBlock("div",A,[t.createVNode(r,{addons:!1,type:e.type,class:t.normalizeClass(e.innerFieldClasses)},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["type","class"])])):t.renderSlot(e.$slots,"default",{key:4}),e.hasMessage&&!e.horizontal?(t.openBlock(),t.createElementBlock("p",{key:5,class:t.normalizeClass(["help",e.newType])},[e.$slots.message?t.renderSlot(e.$slots,"message",{key:0,messages:e.formattedMessage}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.formattedMessage,((i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createTextVNode(t.toDisplayString(i)+" ",1),s+1<e.formattedMessage.length?(t.openBlock(),t.createElementBlock("br",{key:s})):t.createCommentVNode("v-if",!0)],64)))),256))],2)):t.createCommentVNode("v-if",!0)],2)}]]);const z=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>g},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>V}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||s,_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)}}}),I={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},Y=()=>{const e="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 H=O(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:I,fa:Y(),fas:Y(),far:Y(),fad:Y(),fab:Y(),fal:Y(),"fa-solid":Y(),"fa-regular":Y(),"fa-light":Y(),"fa-thin":Y(),"fa-duotone":Y(),"fa-brands":Y()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||s},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||a}},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}}}),[["render",function(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),R=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,j=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>f}},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)L.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&R)for(var s of R(e))t.indexOf(s)<0&&W.call(e,s)&&(i[s]=e[s]);return i})(e,["style","class","id"])}return this.$attrs}}}),U=t.defineComponent({name:"BInput",components:{BIcon:H},mixins:[j,z],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>p},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||l,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 _=["type","autocomplete","maxlength"],K=["maxlength"],q=["type","autocomplete","maxlength"],J=["maxlength"];var X=O(U,[["render",function(e,i,s,a,n,o){const l=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",e.rootClasses]},e.rootAttrs),[e.lazy?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[1]||(i[1]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[2]||(i[2]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[3]||(i[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[4]||(i[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,_)),[[t.vModelDynamic,e.computedValue,void 0,{lazy:!0}]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[5]||(i[5]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[6]||(i[6]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[7]||(i[7]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[8]||(i[8]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[9]||(i[9]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,K)),[[t.vModelText,e.computedValue,void 0,{lazy:!0}]])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[10]||(i[10]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[11]||(i[11]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[12]||(i[12]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[13]||(i[13]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[14]||(i[14]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,q)),[[t.vModelDynamic,e.computedValue]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[15]||(i[15]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[16]||(i[16]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[17]||(i[17]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[18]||(i[18]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[19]||(i[19]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,J)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(l,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:i[20]||(i[20]=t=>e.iconClick("icon-click",t))},null,8,["class","icon","pack","size"])):t.createCommentVNode("v-if",!0),!e.loading&&e.hasIconRight&&e.rightIcon?(t.openBlock(),t.createBlock(l,{key:3,class:t.normalizeClass(["is-right",{"is-clickable":e.passwordReveal||e.iconRightClickable}]),icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:"",onClick:e.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&e.hasCounter&&"number"!==e.type?(t.openBlock(),t.createElementBlock("small",{key:4,class:t.normalizeClass(["help counter",{"is-invisible":!e.isFocused}])},t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],16)}]]);const G=(e,t=!1)=>e?t?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null;let Q;const Z={beforeMount:(e,{value:t=!0})=>{if(t){let t=G(e),i=G(e,!0);t&&t.length>0&&(Q=s=>{t=G(e),i=G(e,!0);const a=t[0],n=t[t.length-1];s.target===a&&s.shiftKey&&"Tab"===s.key?(s.preventDefault(),n.focus()):(s.target===n||Array.from(i).indexOf(s.target)>=0)&&!s.shiftKey&&"Tab"===s.key&&(s.preventDefault(),a.focus())},e.addEventListener("keydown",Q))}},unmounted:e=>{e.removeEventListener("keydown",Q)}},ee=["escape","outside"],te=Symbol("bdropdown");var ie=t.defineComponent({name:"BDropdown",directives:{trapFocus:Z},provide(){return{[te]:this}},props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:e=>["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1},triggers:{type:Array,default:()=>["click"]},mobileModal:{type:Boolean,default:()=>y},ariaRole:{type:String,validator:e=>["menu","list","dialog"].indexOf(e)>-1,default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:()=>C},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean,triggerTabindex:{type:Number,default:0}},emits:{"active-change":e=>!0,change:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,style:{},isActive:!1,isHoverable:!1,maybeTap:!1,isTouchEnabled:!1,_bodyEl:void 0,timeOutID:void 0,timeOutID2:void 0}},computed:{rootClasses(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded,"is-touch-enabled":this.isTouchEnabled}]},isMobileModal(){return this.mobileModal&&!this.inline},cancelOptions(){return"boolean"==typeof this.canClose?this.canClose?ee:[]:this.canClose},contentStyle(){var e,t;return{maxHeight:this.scrollable&&null!=(t=this.maxHeight,e=void 0===t?null:isNaN(+t)?`${t}`:t+"px")?e:void 0,overflow:this.scrollable?"auto":void 0}},hoverable(){return this.triggers.indexOf("hover")>=0}},watch:{modelValue(e){this.selected=e},isActive(e){this.$emit("active-change",e),e||(this.timeOutID=setTimeout((()=>{this.isActive||(this.isTouchEnabled=!1)}),250)),this.handleScroll(),this.appendToBody&&this.$nextTick((()=>{this.updateAppendToBody()}))},isHoverable(e){this.hoverable&&this.$emit("active-change",e)}},methods:{handleScroll(){"undefined"!=typeof window&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem(e){if(this.multiple){if(this.selected){const t=this.selected;-1===t.indexOf(e)?this.selected=[...t,e]:this.selected=t.filter((t=>t!==e))}else this.selected=[e];this.$emit("change",this.selected)}else this.selected!==e&&(this.selected=e,this.$emit("change",this.selected));this.$emit("update:modelValue",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(null!=this.$refs.dropdownMenu){const t=this.$refs.dropdownMenu.querySelectorAll("*");for(const i of t)if(e===i)return!0}if(null!=this.$refs.trigger){const t=this.$refs.trigger.querySelectorAll("*");for(const i of t)if(e===i)return!0}return!1},clickedOutside(e){if(this.cancelOptions.indexOf("outside")<0)return;if(this.inline)return;const t=null!=(i=this).$root&&"shadowRoot"in i.$root.$options?e.composedPath()[0]:e.target;var i;this.isInWhiteList(t)||(this.isActive=!1)},keyPress({key:e}){if(this.isActive&&("Escape"===e||"Esc"===e)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick(){-1===this.triggers.indexOf("hover")&&(this.triggers.indexOf("click")<0||this.toggle())},onContextMenu(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover(){this.triggers.indexOf("hover")<0||this.isTouchEnabled||(this.isHoverable=!0)},onTouchStart(){this.maybeTap=!0},onTouchMove(){this.maybeTap=!1},onTouchEnd(e){-1!==this.triggers.indexOf("hover")&&this.maybeTap&&(e.preventDefault(),this.maybeTap=!1,this.isTouchEnabled=!0,this.toggle())},onFocus(){this.triggers.indexOf("focus")<0||this.toggle()},toggle(){this.disabled||(this.isActive?this.isActive=!this.isActive:this.timeOutID2=setTimeout((()=>{const e=!this.isActive;this.isActive=e})))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$refs.dropdownMenu,i=this.$refs.trigger;if(t&&i){const s=this.$data._bodyEl.children[0];if(s.classList.forEach((e=>s.classList.remove(e))),s.classList.add("dropdown"),s.classList.add("dropdown-menu-animation"),this.rootClasses.forEach((e=>{if(e&&"object"==typeof e)for(const t in e)e[t]&&s.classList.add(t)})),this.appendToBodyCopyParent){const e=this.$refs.dropdown.parentNode,t=this.$data._bodyEl;t.classList.forEach((e=>t.classList.remove(e))),e.classList.forEach((e=>{t.classList.add(e)}))}const a=i.getBoundingClientRect();let n=a.top+window.scrollY,o=a.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?n+=i.clientHeight:n-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(o-=t.clientWidth-i.clientWidth),this.style={position:"absolute",top:`${n}px`,left:`${o}px`,zIndex:"99",width:this.expanded?`${e.offsetWidth}px`:void 0}}}},mounted(){this.appendToBody&&(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.dropdownMenu),this.updateAppendToBody())},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)),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),clearTimeout(this.timeOutID),clearTimeout(this.timeOutID2)}});const se=["tabindex"],ae=["aria-hidden"],ne=["aria-hidden"],oe=["role","aria-modal"];var le=O(ie,[["render",function(e,i,s,a,n,o){const l=t.resolveDirective("trap-focus");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown dropdown-menu-animation",e.rootClasses]),ref:"dropdown",onMouseleave:i[7]||(i[7]=t=>e.isHoverable=!1)},[e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",{key:0,tabindex:e.disabled?void 0:e.triggerTabindex,ref:"trigger",class:"dropdown-trigger",onClick:i[0]||(i[0]=(...t)=>e.onClick&&e.onClick(...t)),onContextmenu:i[1]||(i[1]=t.withModifiers(((...t)=>e.onContextMenu&&e.onContextMenu(...t)),["prevent"])),onMouseenter:i[2]||(i[2]=(...t)=>e.onHover&&e.onHover(...t)),onFocusCapture:i[3]||(i[3]=(...t)=>e.onFocus&&e.onFocus(...t)),onTouchstart:i[4]||(i[4]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:i[5]||(i[5]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:i[6]||(i[6]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),"aria-haspopup":"true"},[t.renderSlot(e.$slots,"trigger",{active:e.isActive})],40,se)),t.createVNode(t.Transition,{name:e.animation},{default:t.withCtx((()=>[e.isMobileModal?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"background","aria-hidden":!e.isActive},null,8,ae)),[[t.vShow,e.isActive]]):t.createCommentVNode("v-if",!0)])),_:1},8,["name"]),t.createVNode(t.Transition,{name:e.animation,persisted:""},{default:t.withCtx((()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"dropdownMenu",class:"dropdown-menu",style:t.normalizeStyle(e.style),"aria-hidden":!e.isActive},[t.createElementVNode("div",{class:"dropdown-content",role:e.ariaRole,"aria-modal":!e.inline,style:t.normalizeStyle(e.contentStyle)},[t.renderSlot(e.$slots,"default")],12,oe)],12,ne)),[[t.vShow,!e.disabled&&(e.isActive||e.isHoverable)||e.inline],[l,e.trapFocus]])])),_:3},8,["name"])],34)}]]),re=t.defineComponent({name:"BDropdownItem",inject:{parent:{from:te,default:void 0}},props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},emits:{click:()=>!0},computed:{anchorClasses(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:void 0},isClickable(){return!(this.parent.disabled||this.separator||this.disabled||this.custom)},isActive(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable(){return!this.hasLink&&this.focusable}},methods:{selectItem(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}});const de={key:0,class:"dropdown-divider"},ce=["role","tabindex"],ue=["role","tabindex"];var he=O(re,[["render",function(e,i,s,a,n,o){return e.separator?(t.openBlock(),t.createElementBlock("hr",de)):e.custom||e.hasLink?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.itemClasses),onClick:i[1]||(i[1]=(...t)=>e.selectItem&&e.selectItem(...t)),role:e.ariaRoleItem,tabindex:e.isFocusable?0:void 0},[t.renderSlot(e.$slots,"default")],10,ue)):(t.openBlock(),t.createElementBlock("a",{key:1,class:t.normalizeClass(["dropdown-item",e.anchorClasses]),onClick:i[0]||(i[0]=(...t)=>e.selectItem&&e.selectItem(...t)),role:e.ariaRoleItem,tabindex:e.isFocusable?0:void 0},[t.renderSlot(e.$slots,"default")],10,ce))}]]),me=t.defineComponent({name:"BSelect",components:{BIcon:H},mixins:[j,z],props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function,Date,null],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},emits:{blur:e=>!0,focus:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,_elementRef:"select"}},computed:{computedValue:{get(){return this.selected},set(e){this.selected=e,this.$emit("update:modelValue",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{modelValue(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}});const pe=["multiple","size"],fe={key:0,value:null,disabled:"",hidden:""};var ge=O(me,[["render",function(e,i,s,a,n,o){const l=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",{"is-expanded":e.expanded,"has-icons-left":e.icon}]},e.rootAttrs),[t.createElementVNode("span",{class:t.normalizeClass(["select",e.spanClasses])},[t.withDirectives(t.createElementVNode("select",t.mergeProps({"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t),ref:"select",multiple:e.multiple,size:e.nativeSize},e.fallthroughAttrs,{onBlur:i[1]||(i[1]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[2]||(i[2]=t=>e.$emit("focus",t))}),[e.placeholder?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[null==e.computedValue?(t.openBlock(),t.createElementBlock("option",fe,t.toDisplayString(e.placeholder),1)):t.createCommentVNode("v-if",!0)],64)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],16,pe),[[t.vModelSelect,e.computedValue]])],2),e.icon?(t.openBlock(),t.createBlock(l,{key:0,class:"is-left",icon:e.icon,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])):t.createCommentVNode("v-if",!0)],16)}]]),ye=t.defineComponent({name:"BDatepickerTableRow",inject:{$datepicker:{name:"$datepicker",default:!1}},props:{selectedDate:{type:[Date,Array]},hoveredDateRange:Array,day:{type:Number},week:{type:Array,required:!0},month:{type:Number,required:!0},minDate:[Date,null],maxDate:[Date,null],disabled:Boolean,unselectableDates:[Array,Function,null],unselectableDaysOfWeek:[Array,null],selectableDates:[Array,Function,null],events:Array,indicators:String,dateCreator:Function,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:Boolean,weekNumberClickable:Boolean,range:Boolean,multiple:Boolean,rulesForFirstWeek:Number,firstDayOfWeek:[Number,null]},emits:{"change-focus":e=>!0,rangeHoverEndDate:e=>!0,select:e=>!0},watch:{day(e){const t=`day-${this.month}-${e}`;this.$nextTick((()=>{let e;e=Array.isArray(this.$refs[t])?this.$refs[t][0]:this.$refs[t],e&&e.focus()}))}},methods:{firstWeekOffset(e,t,i){const s=7+t-i;return-((7+new Date(e,0,s).getDay()-t)%7)+s-1},daysInYear(e){return this.isLeapYear(e)?366:365},isLeapYear:e=>e%4==0&&e%100!=0||e%400==0,getSetDayOfYear:e=>Math.round((+e-+new Date(e.getFullYear(),0,1))/864e5)+1,weeksInYear(e,t,i){const s=this.firstWeekOffset(e,t,i),a=this.firstWeekOffset(e+1,t,i);return(this.daysInYear(e)-s+a)/7},getWeekNumber(e){const t=this.firstDayOfWeek,i=this.rulesForFirstWeek,s=this.firstWeekOffset(e.getFullYear(),t,i),a=Math.floor((this.getSetDayOfYear(e)-s-1)/7)+1;let n,o;return a<1?(o=e.getFullYear()-1,n=a+this.weeksInYear(o,t,i)):a>this.weeksInYear(e.getFullYear(),t,i)?(n=a-this.weeksInYear(e.getFullYear(),t,i),o=e.getFullYear()+1):(o=e.getFullYear(),n=a),{week:n,year:o}},clickWeekNumber(e){this.weekNumberClickable&&this.$datepicker.$emit("week-number-click",e.week,e.year)},selectableDate(e){const t=[];if(this.minDate&&t.push(e>=this.minDate),this.maxDate&&t.push(e<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&t.push(e.getMonth()===this.month),this.selectableDates)if("function"==typeof this.selectableDates){if(this.selectableDates(e))return!0;t.push(!1)}else for(let i=0;i<this.selectableDates.length;i++){const s=this.selectableDates[i];if(e.getDate()===s.getDate()&&e.getFullYear()===s.getFullYear()&&e.getMonth()===s.getMonth())return!0;t.push(!1)}if(this.unselectableDates)if("function"==typeof this.unselectableDates)t.push(!this.unselectableDates(e));else for(let i=0;i<this.unselectableDates.length;i++){const s=this.unselectableDates[i];t.push(e.getDate()!==s.getDate()||e.getFullYear()!==s.getFullYear()||e.getMonth()!==s.getMonth())}if(this.unselectableDaysOfWeek)for(let i=0;i<this.unselectableDaysOfWeek.length;i++){const s=this.unselectableDaysOfWeek[i];t.push(e.getDay()!==s)}return t.indexOf(!1)<0},emitChosenDate(e){this.disabled||this.selectableDate(e)&&this.$emit("select",e)},eventsDateMatch(e){if(!this.events||!this.events.length)return!1;const t=[];for(let i=0;i<this.events.length;i++)this.events[i].date.getDay()===e.getDay()&&t.push(this.events[i]);return!!t.length&&t},classObject(e){function t(e,t,i){return!(!e||!t||i)&&(Array.isArray(t)?t.some((t=>e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())):e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())}function i(e,t,i){return!(!Array.isArray(t)||i)&&(e>t[0]&&e<t[1])}return{"is-selected":t(e,this.selectedDate)||i(e,this.selectedDate,this.multiple),"is-first-selected":t(e,Array.isArray(this.selectedDate)?this.selectedDate[0]:void 0,this.multiple),"is-within-selected":i(e,this.selectedDate,this.multiple),"is-last-selected":t(e,Array.isArray(this.selectedDate)?this.selectedDate[1]:void 0,this.multiple),"is-within-hovered-range":this.hoveredDateRange&&2===this.hoveredDateRange.length&&(t(e,this.hoveredDateRange)||i(e,this.hoveredDateRange)),"is-first-hovered":t(e,Array.isArray(this.hoveredDateRange)?this.hoveredDateRange[0]:void 0),"is-within-hovered":i(e,this.hoveredDateRange),"is-last-hovered":t(e,Array.isArray(this.hoveredDateRange)?this.hoveredDateRange[1]:void 0),"is-today":t(e,this.dateCreator()),"is-selectable":this.selectableDate(e)&&!this.disabled,"is-unselectable":!this.selectableDate(e)||this.disabled,"is-invisible":!this.nearbyMonthDays&&e.getMonth()!==this.month,"is-nearby":this.nearbySelectableMonthDays&&e.getMonth()!==this.month,"has-event":this.eventsDateMatch(e),[this.indicators]:this.eventsDateMatch(e)}},setRangeHoverEndDate(e){this.range&&this.$emit("rangeHoverEndDate",e)},manageKeydown(e,t){const{key:i}=e;let s=!0;switch(i){case"Tab":s=!1;break;case" ":case"Space":case"Spacebar":case"Enter":this.emitChosenDate(t);break;case"ArrowLeft":case"Left":this.changeFocus(t,-1);break;case"ArrowRight":case"Right":this.changeFocus(t,1);break;case"ArrowUp":case"Up":this.changeFocus(t,-7);break;case"ArrowDown":case"Down":this.changeFocus(t,7)}s&&e.preventDefault()},changeFocus(e,t){const i=new Date(e.getTime());for(i.setDate(e.getDate()+t);(!this.minDate||i>this.minDate)&&(!this.maxDate||i<this.maxDate)&&!this.selectableDate(i);)i.setDate(i.getDate()+Math.sign(t));this.setRangeHoverEndDate(i),this.$emit("change-focus",i)}}});const be={class:"datepicker-row"},ke=["disabled","onClick","onMouseenter","onKeydown","tabindex"],De={key:0,class:"events"},ve={key:0,class:"events"};var we=O(ye,[["render",function(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" eslint-disable max-len "),t.createElementVNode("div",be,[e.showWeekNumber?(t.openBlock(),t.createElementBlock("a",{key:0,class:t.normalizeClass(["datepicker-cell is-week-number",{"is-clickable":e.weekNumberClickable}]),onClick:i[0]||(i[0]=t.withModifiers((t=>e.clickWeekNumber(e.getWeekNumber(e.week[6]))),["prevent"]))},[t.createElementVNode("span",null,t.toDisplayString(e.getWeekNumber(e.week[6]).week),1)],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.week,((i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[e.selectableDate(i)&&!e.disabled?(t.openBlock(),t.createElementBlock("a",{key:0,ref_for:!0,ref:`day-${i.getMonth()}-${i.getDate()}`,class:t.normalizeClass([e.classObject(i),"datepicker-cell"]),role:"button",href:"#",disabled:e.disabled||void 0,onClick:t.withModifiers((t=>e.emitChosenDate(i)),["prevent"]),onMouseenter:t=>e.setRangeHoverEndDate(i),onKeydown:t=>e.manageKeydown(t,i),tabindex:e.day===i.getDate()&&e.month===i.getMonth()?void 0:-1},[t.createElementVNode("span",null,t.toDisplayString(i.getDate()),1),e.eventsDateMatch(i)?(t.openBlock(),t.createElementBlock("div",De,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsDateMatch(i),((e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["event",e.type]),key:i},null,2)))),128))])):t.createCommentVNode("v-if",!0)],42,ke)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([e.classObject(i),"datepicker-cell"])},[t.createElementVNode("span",null,t.toDisplayString(i.getDate()),1),e.eventsDateMatch(i)?(t.openBlock(),t.createElementBlock("div",ve,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsDateMatch(i),((e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["event",e.type]),key:i},null,2)))),128))])):t.createCommentVNode("v-if",!0)],2))],64)))),128))]),t.createCommentVNode(" eslint-enable max-len ")],2112)}]]),Be=t.defineComponent({name:"BDatepickerTable",components:{BDatepickerTableRow:we},props:{modelValue:{type:[Date,Array,null]},dayNames:[Array,null],monthNames:[Array,null],firstDayOfWeek:[Number,null],events:Array,indicators:String,minDate:[Date,null],maxDate:[Date,null],focused:Object,disabled:Boolean,dateCreator:Function,unselectableDates:[Array,Function,null],unselectableDaysOfWeek:[Array,null],selectableDates:[Array,Function,null],nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:Boolean,weekNumberClickable:Boolean,rulesForFirstWeek:Number,range:Boolean,multiple:Boolean},emits:{"range-end":e=>!0,"range-start":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},data:()=>({selectedBeginDate:void 0,selectedEndDate:void 0,hoveredEndDate:void 0}),computed:{multipleSelectedDates:{get(){return this.multiple&&this.modelValue?this.modelValue:[]},set(e){this.$emit("update:modelValue",e)}},visibleDayNames(){const e=[];let t=this.firstDayOfWeek;for(;e.length<this.dayNames.length;){const i=this.dayNames[t%this.dayNames.length];e.push(i),t++}return this.showWeekNumber&&e.unshift(""),e},hasEvents(){return this.events&&this.events.length},eventsInThisMonth(){if(!this.events)return[];const e=[];for(let t=0;t<this.events.length;t++){let i=this.events[t];Object.prototype.hasOwnProperty.call(i,"date")||(i={date:i,type:"is-primary"}),Object.prototype.hasOwnProperty.call(i,"type")||(i.type="is-primary"),i.date.getMonth()===this.focused.month&&i.date.getFullYear()===this.focused.year&&e.push(i)}return e},weeksInThisMonth(){this.validateFocusedDay();const e=this.focused.month,t=this.focused.year,i=[];let s=1;for(;i.length<6;){const a=this.weekBuilder(s,e,t);i.push(a),s+=7}return i},hoveredDateRange(){var e,t;return this.range&&isNaN(null!=(t=null==(e=this.selectedEndDate)?void 0:e.valueOf())?t:NaN)?this.hoveredEndDate<this.selectedBeginDate?[this.hoveredEndDate,this.selectedBeginDate].filter(x):[this.selectedBeginDate,this.hoveredEndDate].filter(x):[]},disabledOrUndefined(){return this.disabled||void 0}},methods:{updateSelectedDate(e){this.range||this.multiple?this.range?this.handleSelectRangeDate(e):this.multiple&&this.handleSelectMultipleDates(e):this.$emit("update:modelValue",e)},handleSelectRangeDate(e){this.selectedBeginDate&&this.selectedEndDate?(this.selectedBeginDate=e,this.selectedEndDate=void 0,this.$emit("range-start",e)):this.selectedBeginDate&&!this.selectedEndDate?(this.selectedBeginDate>e?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=e):this.selectedEndDate=e,this.$emit("range-end",e),this.$emit("update:modelValue",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=e,this.$emit("range-start",e))},handleSelectMultipleDates(e){this.multipleSelectedDates.filter((t=>t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())).length?this.multipleSelectedDates=this.multipleSelectedDates.filter((t=>t.getDate()!==e.getDate()||t.getFullYear()!==e.getFullYear()||t.getMonth()!==e.getMonth())):this.multipleSelectedDates=[...this.multipleSelectedDates,e]},weekBuilder(e,t,i){const s=new Date(i,t),a=[],n=new Date(i,t,e).getDay(),o=n>=this.firstDayOfWeek?n-this.firstDayOfWeek:7-this.firstDayOfWeek+n;let l=1;for(let t=0;t<o;t++)a.unshift(new Date(s.getFullYear(),s.getMonth(),e-l)),l++;a.push(new Date(i,t,e));let r=1;for(;a.length<7;)a.push(new Date(i,t,e+r)),r++;return a},validateFocusedDay(){const e=new Date(this.focused.year,this.focused.month,this.focused.day);if(this.selectableDate(e))return;let t=0;const i=new Date(this.focused.year,this.focused.month+1,0).getDate();let s=null;for(;!s&&++t<i;){const i=new Date(this.focused.year,this.focused.month,t);if(this.selectableDate(i)){s=e;const t={day:i.getDate(),month:i.getMonth(),year:i.getFullYear()};this.$emit("update:focused",t)}}},selectableDate(e){const t=[];if(this.minDate&&t.push(e>=this.minDate),this.maxDate&&t.push(e<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&t.push(e.getMonth()===this.focused.month),this.selectableDates)if("function"==typeof this.selectableDates){if(this.selectableDates(e))return!0;t.push(!1)}else for(let i=0;i<this.selectableDates.length;i++){const s=this.selectableDates[i];if(e.getDate()===s.getDate()&&e.getFullYear()===s.getFullYear()&&e.getMonth()===s.getMonth())return!0;t.push(!1)}if(this.unselectableDates)if("function"==typeof this.unselectableDates)t.push(!this.unselectableDates(e));else for(let i=0;i<this.unselectableDates.length;i++){const s=this.unselectableDates[i];t.push(e.getDate()!==s.getDate()||e.getFullYear()!==s.getFullYear()||e.getMonth()!==s.getMonth())}if(this.unselectableDaysOfWeek)for(let i=0;i<this.unselectableDaysOfWeek.length;i++){const s=this.unselectableDaysOfWeek[i];t.push(e.getDay()!==s)}return t.indexOf(!1)<0},eventsInThisWeek(e){return this.eventsInThisMonth.filter((t=>{const i=new Date(Date.parse(t.date+""));i.setHours(0,0,0,0);const s=i.getTime();return e.some((e=>e.getTime()===s))}))},setRangeHoverEndDate(e){this.hoveredEndDate=e},changeFocus(e){const t={day:e.getDate(),month:e.getMonth(),year:e.getFullYear()};this.$emit("update:focused",t)}}});const Se={class:"datepicker-table"},Ce={class:"datepicker-header"};var Ve=O(Be,[["render",function(e,i,s,a,n,o){const l=t.resolveComponent("b-datepicker-table-row");return t.openBlock(),t.createElementBlock("section",Se,[t.createElementVNode("header",Ce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleDayNames,((e,i)=>(t.openBlock(),t.createElementBlock("div",{key:i,class:"datepicker-cell"},[t.createElementVNode("span",null,t.toDisplayString(e),1)])))),128))]),t.createElementVNode("div",{class:t.normalizeClass(["datepicker-body",{"has-events":e.hasEvents}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeksInThisMonth,((i,s)=>(t.openBlock(),t.createBlock(l,{key:s,"selected-date":e.modelValue??void 0,day:e.focused.day,week:i,month:e.focused.month,"min-date":e.minDate,"max-date":e.maxDate,disabled:e.disabledOrUndefined,"unselectable-dates":e.unselectableDates,"unselectable-days-of-week":e.unselectableDaysOfWeek,"selectable-dates":e.selectableDates,events:e.eventsInThisWeek(i),indicators:e.indicators,"date-creator":e.dateCreator,"nearby-month-days":e.nearbyMonthDays,"nearby-selectable-month-days":e.nearbySelectableMonthDays,"show-week-number":e.showWeekNumber,"week-number-clickable":e.weekNumberClickable,"first-day-of-week":e.firstDayOfWeek,"rules-for-first-week":e.rulesForFirstWeek,range:e.range,"hovered-date-range":e.hoveredDateRange,onSelect:e.updateSelectedDate,onRangeHoverEndDate:e.setRangeHoverEndDate,multiple:e.multiple,onChangeFocus:e.changeFocus},null,8,["selected-date","day","week","month","min-date","max-date","disabled","unselectable-dates","unselectable-days-of-week","selectable-dates","events","indicators","date-creator","nearby-month-days","nearby-selectable-month-days","show-week-number","week-number-clickable","first-day-of-week","rules-for-first-week","range","hovered-date-range","onSelect","onRangeHoverEndDate","multiple","onChangeFocus"])))),128))],2)])}]]),Me=t.defineComponent({name:"BDatepickerMonth",props:{modelValue:{type:[Date,Array,null]},monthNames:[Array,null],events:Array,indicators:String,minDate:[Date,null],maxDate:[Date,null],focused:Object,disabled:Boolean,dateCreator:Function,unselectableDates:[Array,Function,null],unselectableDaysOfWeek:[Array,null],selectableDates:[Array,Function,null],range:Boolean,multiple:Boolean},emits:{"change-focus":e=>!0,"range-end":e=>!0,"range-start":e=>!0,"update:modelValue":e=>!0},data(){return{selectedBeginDate:void 0,selectedEndDate:void 0,hoveredEndDate:void 0,multipleSelectedDates:this.multiple&&this.modelValue?this.modelValue:[]}},computed:{hasEvents(){return this.events&&this.events.length},eventsInThisYear(){if(!this.events)return[];const e=[];for(let t=0;t<this.events.length;t++){let i=this.events[t];Object.prototype.hasOwnProperty.call(i,"date")||(i={date:i,type:"is-primary"}),Object.prototype.hasOwnProperty.call(i,"type")||(i.type="is-primary"),i.date.getFullYear()===this.focused.year&&e.push(i)}return e},monthDates(){const e=this.focused.year,t=[];for(let i=0;i<12;i++){const s=new Date(e,i,1);s.setHours(0,0,0,0),t.push(s)}return t},focusedMonth(){return this.focused.month},hoveredDateRange(){var e,t;return this.range&&isNaN(null!=(t=null==(e=this.selectedEndDate)?void 0:e.valueOf())?t:NaN)?this.hoveredEndDate<this.selectedBeginDate?[this.hoveredEndDate,this.selectedBeginDate].filter(x):[this.selectedBeginDate,this.hoveredEndDate].filter(x):[]},disabledOrUndefined(){return this.disabled||void 0}},watch:{focusedMonth(e){const t=`month-${e}`;this.$nextTick((()=>{let e;e=Array.isArray(this.$refs[t])?this.$refs[t][0]:this.$refs[t],e&&e.focus()}))}},methods:{selectMultipleDates(e){this.multipleSelectedDates.filter((t=>t.getDate()===e.getDate()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth())).length?this.multipleSelectedDates=this.multipleSelectedDates.filter((t=>t.getDate()!==e.getDate()||t.getFullYear()!==e.getFullYear()||t.getMonth()!==e.getMonth())):this.multipleSelectedDates.push(e),this.$emit("update:modelValue",this.multipleSelectedDates)},selectableDate(e){const t=[];if(this.minDate&&t.push(e>=this.minDate),this.maxDate&&t.push(e<=this.maxDate),t.push(e.getFullYear()===this.focused.year),this.selectableDates)if("function"==typeof this.selectableDates){if(this.selectableDates(e))return!0;t.push(!1)}else for(let i=0;i<this.selectableDates.length;i++){const s=this.selectableDates[i];if(e.getFullYear()===s.getFullYear()&&e.getMonth()===s.getMonth())return!0;t.push(!1)}if(this.unselectableDates)if("function"==typeof this.unselectableDates)t.push(!this.unselectableDates(e));else for(let i=0;i<this.unselectableDates.length;i++){const s=this.unselectableDates[i];t.push(e.getFullYear()!==s.getFullYear()||e.getMonth()!==s.getMonth())}if(this.unselectableDaysOfWeek)for(let i=0;i<this.unselectableDaysOfWeek.length;i++){const s=this.unselectableDaysOfWeek[i];t.push(e.getDay()!==s)}return t.indexOf(!1)<0},eventsDateMatch(e){if(!this.eventsInThisYear.length)return!1;const t=[];for(let i=0;i<this.eventsInThisYear.length;i++)this.eventsInThisYear[i].date.getMonth()===e.getMonth()&&t.push(this.events[i]);return!!t.length&&t},classObject(e){function t(e,t,i){return!(!e||!t||i)&&(Array.isArray(t)?t.some((t=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())):e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())}function i(e,t,i){return!(!Array.isArray(t)||i)&&(e>t[0]&&e<t[1])}return{"is-selected":t(e,this.modelValue,this.multiple)||i(e,this.modelValue,this.multiple)||(s=e,a=this.multipleSelectedDates,n=this.multiple,!(!Array.isArray(a)||!n)&&a.some((e=>s.getDate()===e.getDate()&&s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()))),"is-first-selected":t(e,Array.isArray(this.modelValue)?this.modelValue[0]:void 0,this.multiple),"is-within-selected":i(e,this.modelValue,this.multiple),"is-last-selected":t(e,Array.isArray(this.modelValue)?this.modelValue[1]:void 0,this.multiple),"is-within-hovered-range":this.hoveredDateRange&&2===this.hoveredDateRange.length&&(t(e,this.hoveredDateRange)||i(e,this.hoveredDateRange)),"is-first-hovered":t(e,Array.isArray(this.hoveredDateRange)?this.hoveredDateRange[0]:void 0),"is-within-hovered":i(e,this.hoveredDateRange),"is-last-hovered":t(e,Array.isArray(this.hoveredDateRange)?this.hoveredDateRange[1]:void 0),"is-today":t(e,this.dateCreator()),"is-selectable":this.selectableDate(e)&&!this.disabled,"is-unselectable":!this.selectableDate(e)||this.disabled};var s,a,n},manageKeydown({key:e},t){switch(e){case" ":case"Space":case"Spacebar":case"Enter":this.updateSelectedDate(t);break;case"ArrowLeft":case"Left":this.changeFocus(t,-1);break;case"ArrowRight":case"Right":this.changeFocus(t,1);break;case"ArrowUp":case"Up":this.changeFocus(t,-3);break;case"ArrowDown":case"Down":this.changeFocus(t,3)}},updateSelectedDate(e){this.range||this.multiple?this.range?this.handleSelectRangeDate(e):this.multiple&&this.selectMultipleDates(e):this.emitChosenDate(e)},emitChosenDate(e){this.disabled||(this.multiple?this.selectMultipleDates(e):this.selectableDate(e)&&this.$emit("update:modelValue",e))},handleSelectRangeDate(e){this.disabled||(this.selectedBeginDate&&this.selectedEndDate?(this.selectedBeginDate=e,this.selectedEndDate=void 0,this.$emit("range-start",e)):this.selectedBeginDate&&!this.selectedEndDate?(this.selectedBeginDate>e?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=e):this.selectedEndDate=e,this.$emit("range-end",e),this.$emit("update:modelValue",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=e,this.$emit("range-start",e)))},setRangeHoverEndDate(e){this.range&&(this.hoveredEndDate=e)},changeFocus(e,t){const i=e;i.setMonth(e.getMonth()+t),this.$emit("change-focus",i)}}});const Fe={class:"datepicker-table"},xe={class:"datepicker-months"},Ne=["disabled","onClick","onMouseenter","onKeydown","tabindex"],Te={key:0,class:"events"};var Oe=O(Me,[["render",function(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock("section",Fe,[t.createElementVNode("div",{class:t.normalizeClass(["datepicker-body",{"has-events":e.hasEvents}])},[t.createElementVNode("div",xe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.monthDates,((i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[e.selectableDate(i)&&!e.disabled?(t.openBlock(),t.createElementBlock("a",{key:0,ref_for:!0,ref:`month-${i.getMonth()}`,class:t.normalizeClass([[e.classObject(i),{"has-event":e.eventsDateMatch(i)},e.indicators],"datepicker-cell"]),role:"button",href:"#",disabled:e.disabledOrUndefined,onClick:t.withModifiers((t=>e.updateSelectedDate(i)),["prevent"]),onMouseenter:t=>e.setRangeHoverEndDate(i),onKeydown:t.withModifiers((t=>e.manageKeydown(t,i)),["prevent"]),tabindex:e.focused.month===i.getMonth()?void 0:-1},[t.createTextVNode(t.toDisplayString(e.monthNames[i.getMonth()])+" ",1),e.eventsDateMatch(i)?(t.openBlock(),t.createElementBlock("div",Te,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsDateMatch(i),((e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["event",e.type]),key:i},null,2)))),128))])):t.createCommentVNode("v-if",!0)],42,Ne)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([e.classObject(i),"datepicker-cell"])},t.toDisplayString(e.monthNames[i.getMonth()]),3))],64)))),128))])],2)])}]]);var Ee=t.defineComponent({name:"BDatepicker",components:{BDatepickerTable:Ve,BDatepickerMonth:Oe,BInput:X,BField:P,BSelect:ge,BIcon:H,BDropdown:le,BDropdownItem:he},mixins:[j,z],provide(){return{$datepicker:this}},props:{modelValue:{type:[Date,Array,null]},dayNames:{type:[Array,null],default:()=>{if(Array.isArray(r))return r}},monthNames:{type:[Array,null],default:()=>{if(Array.isArray(d))return d}},firstDayOfWeek:{type:Number,default:()=>0},inline:Boolean,minDate:[Date,null],maxDate:[Date,null],focusedDate:Date,placeholder:String,editable:Boolean,disabled:Boolean,horizontalTimePicker:Boolean,unselectableDates:[Array,Function],unselectableDaysOfWeek:{type:[Array,null],default:()=>c},selectableDates:[Array,Function],dateFormatter:{type:Function,default:(e,t)=>((e,t)=>{const i=(Array.isArray(e)?e:[e]).map((e=>{const i=new Date(e.getFullYear(),e.getMonth(),e.getDate(),12);return t.isTypeMonth?t.dtfMonth.format(i):t.dtf.format(i)}));return t.multiple?i.join(", "):i.join(" - ")})(e,t)},dateParser:{type:Function,default:(e,t)=>((e,t)=>{if(t.dtf.formatToParts&&"function"==typeof t.dtf.formatToParts){const i=F((t.isTypeMonth?t.dtfMonth:t.dtf).formatToParts(new Date(2e3,11,25)).map((e=>"literal"===e.type?e.value:`((?!=<${e.type}>)\\d+)`)).join(""),e);if(i.year&&4===i.year.length&&i.month&&+i.month<=12){if(t.isTypeMonth)return new Date(+i.year,+i.month-1);if(i.day&&+i.day<=31)return new Date(+i.year,+i.month-1,+i.day,12)}}if(!t.isTypeMonth)return new Date(Date.parse(e));if(e){const t=e.split("/"),i=4===t[0].length?t[0]:t[1],s=2===t[0].length?t[0]:t[1];if(i&&s)return new Date(parseInt(i,10),parseInt(s,10)-1,1,0,0,0,0)}return null})(e,t)},dateCreator:{type:Function,default:()=>new Date},mobileNative:{type:Boolean,default:()=>u},position:String,iconRight:String,iconRightClickable:Boolean,events:Array,indicators:{type:String,default:"dots"},openOnFocus:Boolean,iconPrev:{type:String,default:()=>n},iconNext:{type:String,default:()=>o},yearsRange:{type:Array,default:()=>k},type:{type:String,validator:e=>["month"].indexOf(e)>=0},nearbyMonthDays:{type:Boolean,default:()=>D},nearbySelectableMonthDays:{type:Boolean,default:()=>v},showWeekNumber:{type:Boolean,default:()=>w},weekNumberClickable:{type:Boolean,default:()=>B},rulesForFirstWeek:{type:Number,default:()=>4},range:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},mobileModal:{type:Boolean,default:()=>S},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:()=>C},appendToBody:Boolean,ariaNextLabel:String,ariaPreviousLabel:String},emits:{"active-change":e=>!0,"change-month":e=>!0,"change-year":e=>!0,"icon-right-click":e=>!0,"range-end":e=>!0,"range-start":e=>!0,"update:modelValue":e=>!0,"week-number-click":(e,t)=>!0},data(){const e=(Array.isArray(this.modelValue)?this.modelValue[0]:this.modelValue)||this.focusedDate||this.dateCreator();return!this.modelValue&&this.maxDate&&this.maxDate.getFullYear()<e.getFullYear()&&e.setFullYear(this.maxDate.getFullYear()),{dateSelected:this.modelValue,focusedDateData:{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()},_elementRef:"input",_isDatepicker:!0}},computed:{computedValue:{get(){return this.dateSelected},set(e){this.updateInternalState(e),this.multiple||this.togglePicker(!1),this.$emit("update:modelValue",e),this.useHtml5Validation&&this.$nextTick((()=>{this.checkHtml5Validity()}))}},formattedValue(){return this.formatValue(this.computedValue)},localeOptions(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric"}).resolvedOptions()},dtf(){return new Intl.DateTimeFormat(this.locale)},dtfMonth(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"2-digit"})},newMonthNames(){return Array.isArray(this.monthNames)?this.monthNames:function(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)))}(this.locale)},newDayNames(){return Array.isArray(this.dayNames)?this.dayNames:function(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)))}(this.locale)},listOfMonths(){let e=0,t=12;return this.minDate&&this.focusedDateData.year===this.minDate.getFullYear()&&(e=this.minDate.getMonth()),this.maxDate&&this.focusedDateData.year===this.maxDate.getFullYear()&&(t=this.maxDate.getMonth()),this.newMonthNames.map(((i,s)=>({name:i,index:s,disabled:s<e||s>t})))},listOfYears(){let e=this.focusedDateData.year+this.yearsRange[1];this.maxDate&&this.maxDate.getFullYear()<e&&(e=Math.max(this.maxDate.getFullYear(),this.focusedDateData.year));let t=this.focusedDateData.year+this.yearsRange[0];this.minDate&&this.minDate.getFullYear()>t&&(t=Math.min(this.minDate.getFullYear(),this.focusedDateData.year));const i=[];for(let s=t;s<=e;s++)i.push(s);return i.reverse()},showPrev(){if(!this.minDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year<=this.minDate.getFullYear();return new Date(this.focusedDateData.year,this.focusedDateData.month)<=new Date(this.minDate.getFullYear(),this.minDate.getMonth())},showNext(){if(!this.maxDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year>=this.maxDate.getFullYear();return new Date(this.focusedDateData.year,this.focusedDateData.month)>=new Date(this.maxDate.getFullYear(),this.maxDate.getMonth())},isMobile(){return this.mobileNative&&M.any()},isTypeMonth(){return"month"===this.type},ariaRole(){return this.inline?void 0:"dialog"},disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue(e){this.updateInternalState(e),this.multiple||this.togglePicker(!1)},focusedDate(e){e&&(this.focusedDateData={day:e.getDate(),month:e.getMonth(),year:e.getFullYear()})},"focusedDateData.month"(e){this.$emit("change-month",e)},"focusedDateData.year"(e){this.$emit("change-year",e)}},methods:{onChange(e){const t=this.dateParser(e,this);!t||isNaN(t.valueOf())&&(!Array.isArray(t)||2!==t.length||isNaN(t[0])||isNaN(t[1]))?(this.computedValue=null,this.$refs.input&&(this.$refs.input.newValue=this.computedValue)):this.computedValue=t},formatValue(e){if(Array.isArray(e)){return Array.isArray(e)&&e.every((e=>{var t;return!isNaN(null!=(t=null==e?void 0:e.valueOf())?t:NaN)}))?this.dateFormatter([...e],this):null}return e&&!isNaN(e.valueOf())?this.dateFormatter(e,this):null},prev(){this.disabled||(this.isTypeMonth?this.focusedDateData.year-=1:this.focusedDateData.month>0?this.focusedDateData.month-=1:(this.focusedDateData.month=11,this.focusedDateData.year-=1))},next(){this.disabled||(this.isTypeMonth?this.focusedDateData.year+=1:this.focusedDateData.month<11?this.focusedDateData.month+=1:(this.focusedDateData.month=0,this.focusedDateData.year+=1))},formatNative(e){return this.isTypeMonth?this.formatYYYYMM(e):this.formatYYYYMMDD(e)},formatYYYYMMDD(e){const t=new Date(e);if(e&&!isNaN(t.valueOf())){const e=t.getFullYear(),i=t.getMonth()+1,s=t.getDate();return e+"-"+(i<10?"0":"")+i+"-"+(s<10?"0":"")+s}return""},formatYYYYMM(e){const t=new Date(e);if(e&&!isNaN(t.valueOf())){const e=t.getFullYear(),i=t.getMonth()+1;return e+"-"+(i<10?"0":"")+i}return""},onChangeNativePicker(e){const t=e.target.value,i=t?t.split("-"):[];if(3===i.length){const e=parseInt(i[0],10),t=parseInt(i[1])-1,s=parseInt(i[2]);this.computedValue=new Date(e,t,s)}else this.computedValue=null},updateInternalState(e){if(this.dateSelected===e)return;const t=Array.isArray(e),i=t?e.length?e[e.length-1]:this.dateCreator():e||this.dateCreator();(!t||this.dateSelected&&e.length>this.dateSelected.length)&&(this.focusedDateData={day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}),this.dateSelected=e},togglePicker(e){if(this.$refs.dropdown){const t="boolean"==typeof e?e:!this.$refs.dropdown.isActive;(t||this.closeOnClick)&&(this.$refs.dropdown.isActive=t)}},handleOnFocus(e){this.onFocus(e),this.openOnFocus&&this.togglePicker(!0)},toggle(){if(this.mobileNative&&this.isMobile){const e=this.$refs.input.$refs.input;return e.focus(),void e.click()}this.$refs.dropdown.toggle()},onInputClick(e){this.$refs.dropdown.isActive&&e.stopPropagation()},keyPress({key:e}){this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.togglePicker(!1)},onActiveChange(e){e||this.onBlur(),this.$emit("active-change",e)},changeFocus(e){this.focusedDateData={day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeUnmount(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}});const $e={class:"datepicker-header"},Ae=["disabled","aria-label"],Pe=["disabled","aria-label"],ze={class:"pagination-list"},Ie=["value","disabled"],Ye=["value"],He={key:1};var Re=O(Ee,[["render",function(e,i,s,a,n,o){const l=t.resolveComponent("b-input"),r=t.resolveComponent("b-icon"),d=t.resolveComponent("b-select"),c=t.resolveComponent("b-field"),u=t.resolveComponent("b-datepicker-table"),h=t.resolveComponent("b-datepicker-month"),m=t.resolveComponent("b-dropdown-item"),p=t.resolveComponent("b-dropdown");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["datepicker control",[e.size,{"is-expanded":e.expanded}]]},e.rootAttrs),[!e.isMobile||e.inline?(t.openBlock(),t.createBlock(p,{key:0,ref:"dropdown",position:e.position,disabled:e.disabledOrUndefined,inline:e.inline,"mobile-modal":e.mobileModal,"trap-focus":e.trapFocus,"aria-role":e.ariaRole,"append-to-body":e.appendToBody,"append-to-body-copy-parent":"",onActiveChange:e.onActiveChange,"trigger-tabindex":-1},t.createSlots({default:t.withCtx((()=>[t.createVNode(m,{disabled:e.disabledOrUndefined,focusable:e.focusable,custom:"",class:t.normalizeClass({"dropdown-horizontal-timepicker":e.horizontalTimePicker})},{default:t.withCtx((()=>[t.createElementVNode("div",null,[t.createElementVNode("header",$e,[void 0!==e.$slots.header&&e.$slots.header([]).length?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["pagination field is-centered",e.size])},[t.withDirectives(t.createElementVNode("a",{class:"pagination-previous",role:"button",href:"#",disabled:e.disabledOrUndefined,"aria-label":e.ariaPreviousLabel,onClick:i[3]||(i[3]=t.withModifiers(((...t)=>e.prev&&e.prev(...t)),["prevent"])),onKeydown:[i[4]||(i[4]=t.withKeys(t.withModifiers(((...t)=>e.prev&&e.prev(...t)),["prevent"]),["enter"])),i[5]||(i[5]=t.withKeys(t.withModifiers(((...t)=>e.prev&&e.prev(...t)),["prevent"]),["space"]))]},[t.createVNode(r,{icon:e.iconPrev,pack:e.iconPack,both:"",type:"is-primary is-clickable"},null,8,["icon","pack"])],40,Ae),[[t.vShow,!e.showPrev&&!e.disabled]]),t.withDirectives(t.createElementVNode("a",{class:"pagination-next",role:"button",href:"#",disabled:e.disabledOrUndefined,"aria-label":e.ariaNextLabel,onClick:i[6]||(i[6]=t.withModifiers(((...t)=>e.next&&e.next(...t)),["prevent"])),onKeydown:[i[7]||(i[7]=t.withKeys(t.withModifiers(((...t)=>e.next&&e.next(...t)),["prevent"]),["enter"])),i[8]||(i[8]=t.withKeys(t.withModifiers(((...t)=>e.next&&e.next(...t)),["prevent"]),["space"]))]},[t.createVNode(r,{icon:e.iconNext,pack:e.iconPack,both:"",type:"is-primary is-clickable"},null,8,["icon","pack"])],40,Pe),[[t.vShow,!e.showNext&&!e.disabled]]),t.createElementVNode("div",ze,[t.createVNode(c,null,{default:t.withCtx((()=>[e.isTypeMonth?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(d,{key:0,modelValue:e.focusedDateData.month,"onUpdate:modelValue":i[9]||(i[9]=t=>e.focusedDateData.month=t),disabled:e.disabledOrUndefined,size:e.size},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.listOfMonths,(e=>(t.openBlock(),t.createElementBlock("option",{value:e.index,key:e.name,disabled:e.disabled||void 0},t.toDisplayString(e.name),9,Ie)))),128))])),_:1},8,["modelValue","disabled","size"])),t.createVNode(d,{modelValue:e.focusedDateData.year,"onUpdate:modelValue":i[10]||(i[10]=t=>e.focusedDateData.year=t),disabled:e.disabledOrUndefined,size:e.size},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.listOfYears,(e=>(t.openBlock(),t.createElementBlock("option",{value:e,key:e},t.toDisplayString(e),9,Ye)))),128))])),_:1},8,["modelValue","disabled","size"])])),_:1})])],2))]),e.isTypeMonth?(t.openBlock(),t.createElementBlock("div",He,[t.createVNode(h,{modelValue:e.computedValue,"onUpdate:modelValue":i[16]||(i[16]=t=>e.computedValue=t),"month-names":e.newMonthNames,"min-date":e.minDate,"max-date":e.maxDate,focused:e.focusedDateData,disabled:e.disabledOrUndefined,"unselectable-dates":e.unselectableDates,"unselectable-days-of-week":e.unselectableDaysOfWeek,"selectable-dates":e.selectableDates,events:e.events,indicators:e.indicators,"date-creator":e.dateCreator,range:e.range,multiple:e.multiple,onRangeStart:i[17]||(i[17]=t=>e.$emit("range-start",t)),onRangeEnd:i[18]||(i[18]=t=>e.$emit("range-end",t)),onClose:i[19]||(i[19]=t=>e.togglePicker(!1)),onChangeFocus:e.changeFocus,"onUpdate:focused":i[20]||(i[20]=t=>e.focusedDateData=t)},null,8,["modelValue","month-names","min-date","max-date","focused","disabled","unselectable-dates","unselectable-days-of-week","selectable-dates","events","indicators","date-creator","range","multiple","onChangeFocus"])])):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["datepicker-content",{"content-horizontal-timepicker":e.horizontalTimePicker}])},[t.createVNode(u,{modelValue:e.computedValue,"onUpdate:modelValue":i[11]||(i[11]=t=>e.computedValue=t),"day-names":e.newDayNames,"month-names":e.newMonthNames,"first-day-of-week":e.firstDayOfWeek,"rules-for-first-week":e.rulesForFirstWeek,"min-date":e.minDate,"max-date":e.maxDate,focused:e.focusedDateData,disabled:e.disabledOrUndefined,"unselectable-dates":e.unselectableDates,"unselectable-days-of-week":e.unselectableDaysOfWeek,"selectable-dates":e.selectableDates,events:e.events,indicators:e.indicators,"date-creator":e.dateCreator,"type-month":e.isTypeMonth,"nearby-month-days":e.nearbyMonthDays,"nearby-selectable-month-days":e.nearbySelectableMonthDays,"show-week-number":e.showWeekNumber,"week-number-clickable":e.weekNumberClickable,range:e.range,multiple:e.multiple,onRangeStart:i[12]||(i[12]=t=>e.$emit("range-start",t)),onRangeEnd:i[13]||(i[13]=t=>e.$emit("range-end",t)),onClose:i[14]||(i[14]=t=>e.togglePicker(!1)),"onUpdate:focused":i[15]||(i[15]=t=>e.focusedDateData=t)},null,8,["modelValue","day-names","month-names","first-day-of-week","rules-for-first-week","min-date","max-date","focused","disabled","unselectable-dates","unselectable-days-of-week","selectable-dates","events","indicators","date-creator","type-month","nearby-month-days","nearby-selectable-month-days","show-week-number","week-number-clickable","range","multiple"])],2))]),void 0!==e.$slots.default&&e.$slots.default([]).length?(t.openBlock(),t.createElementBlock("footer",{key:0,class:t.normalizeClass(["datepicker-footer",{"footer-horizontal-timepicker":e.horizontalTimePicker}])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("v-if",!0)])),_:3},8,["disabled","focusable","class"])])),_:2},[e.inline?void 0:{name:"trigger",fn:t.withCtx((s=>[t.renderSlot(e.$slots,"trigger",t.normalizeProps(t.guardReactiveProps(s)),(()=>[t.createVNode(l,t.mergeProps({ref:"input",autocomplete:"off","model-value":e.formattedValue,placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-right":e.iconRight,"icon-right-clickable":e.iconRightClickable,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,disabled:e.disabledOrUndefined,readonly:!e.editable},e.fallthroughAttrs,{"use-html5-validation":!1,onClick:e.onInputClick,onIconRightClick:i[0]||(i[0]=t=>e.$emit("icon-right-click",t)),onKeyup:i[1]||(i[1]=t.withKeys((t=>e.togglePicker(!0)),["enter"])),onChange:i[2]||(i[2]=t=>e.onChange(t.target.value)),onFocus:e.handleOnFocus}),null,16,["model-value","placeholder","size","icon","icon-right","icon-right-clickable","icon-pack","rounded","loading","disabled","readonly","onClick","onFocus"])]))])),key:"0"}]),1032,["position","disabled","inline","mobile-modal","trap-focus","aria-role","append-to-body","onActiveChange"])):(t.openBlock(),t.createBlock(l,t.mergeProps({key:1,ref:"input",type:e.isTypeMonth?"month":"date",autocomplete:"off","model-value":e.formatNative(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatNative(e.maxDate),min:e.formatNative(e.minDate),disabled:e.disabledOrUndefined,readonly:!1},e.fallthroughAttrs,{"use-html5-validation":!1,onChange:e.onChangeNativePicker,onFocus:e.onFocus,onBlur:e.onBlur}),null,16,["type","model-value","placeholder","size","icon","icon-pack","rounded","loading","max","min","disabled","onChange","onFocus","onBlur"]))],16)}]]);const Le="AM",We="PM",je="24",Ue="12";var _e=t.defineComponent({mixins:[j,z],props:{modelValue:[Date,null],inline:Boolean,minTime:[Date,null],maxTime:[Date,null],placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:e=>e===je||e===Ue},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:(e,t)=>((e,t)=>t.dtf.format(e))(e,t)},timeParser:{type:Function,default:(e,t)=>((e,t)=>{if(e){let i=null;if(t.computedValue&&!isNaN(t.computedValue.valueOf())?i=new Date(t.computedValue):(i=t.timeCreator(),i.setMilliseconds(0)),t.dtf.formatToParts&&"function"==typeof t.dtf.formatToParts){const s=F(t.dtf.formatToParts(i).map((e=>"literal"===e.type?e.value.replace(/ /g,"\\s?"):"dayPeriod"===e.type?`((?!=<${e.type}>)(${t.amString}|${t.pmString}|${Le}|${We}|${Le.toLowerCase()}|${We.toLowerCase()})?)`:`((?!=<${e.type}>)\\d+)`)).join(""),e);if(s.hour=s.hour?parseInt(s.hour+"",10):null,s.minute=s.minute?parseInt(s.minute+"",10):null,s.second=s.second?parseInt(s.second+"",10):null,s.hour&&s.hour>=0&&s.hour<24&&s.minute&&s.minute>=0&&s.minute<59){const e=s.dayPeriod;return e&&(e.toLowerCase()===t.pmString.toLowerCase()||e.toLowerCase()===We.toLowerCase())&&s.hour<12&&(s.hour+=12),i.setHours(s.hour),i.setMinutes(s.minute),i.setSeconds(s.second||0),i}}let s=!1;if(t.hourFormat===Ue){const i=e.split(" ");e=i[0],s=i[1]===t.amString||i[1]===Le}const a=e.split(":");let n=parseInt(a[0],10);const o=parseInt(a[1],10),l=t.enableSeconds?parseInt(a[2],10):0;return isNaN(n)||n<0||n>23||t.hourFormat===Ue&&(n<1||n>12)||isNaN(o)||o<0||o>59?null:(i.setSeconds(l),i.setMinutes(o),t.hourFormat===Ue&&(s&&12===n?n=0:s||12===n||(n+=12)),i.setHours(n),new Date(i.getTime()))}return null})(e,t)},mobileNative:{type:Boolean,default:()=>h},mobileModal:{type:Boolean,default:()=>m},timeCreator:{type:Function,default:()=>new Date},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0},data(){return{dateSelected:this.modelValue,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:Le,PM:We,HOUR_FORMAT_24:je,HOUR_FORMAT_12:Ue}},computed:{computedValue:{get(){return this.dateSelected},set(e){this.dateSelected=e,this.$emit("update:modelValue",this.dateSelected)}},localeOptions(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24?"h23":"h12"})},newHourFormat(){return this.hourFormat||(this.localeOptions.hour12?Ue:je)},sampleTime(){const e=this.timeCreator();return e.setHours(10),e.setSeconds(0),e.setMinutes(0),e.setMilliseconds(0),e},hourLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"hour"===t[i-1].type));if(i)return i.value}return":"},minuteLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"minute"===t[i-1].type));if(i)return i.value}return":"},secondLiteral(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find(((e,i)=>i>0&&"second"===t[i-1].type));if(i)return i.value}},amString(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime;e.setHours(10);const t=this.dtf.formatToParts(e).find((e=>"dayPeriod"===e.type));if(t)return t.value}return Le},pmString(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const e=this.sampleTime;e.setHours(20);const t=this.dtf.formatToParts(e).find((e=>"dayPeriod"===e.type));if(t)return t.value}return We},hours(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");const e=[],t=this.isHourFormat24?24:12;for(let i=0;i<t;i+=this.incrementHours){let t=i,s=t;this.isHourFormat24||(t=i+1,s=t,this.meridienSelected===this.amString?12===t&&(t=0):this.meridienSelected===this.pmString&&12!==t&&(t+=12)),e.push({label:this.formatNumber(s),value:t})}return e},minutes(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");const e=[];for(let t=0;t<60;t+=this.incrementMinutes)e.push({label:this.formatNumber(t,!0),value:t});return e},seconds(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");const e=[];for(let t=0;t<60;t+=this.incrementSeconds)e.push({label:this.formatNumber(t,!0),value:t});return e},meridiens(){return[this.amString,this.pmString]},isMobile(){return this.mobileNative&&M.any()},isHourFormat24(){return this.newHourFormat===je},disabledOrUndefined(){return this.disabled||void 0}},watch:{hourFormat(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?this.pmString:this.amString)},locale(){this.modelValue||(this.meridienSelected=this.amString)},modelValue:{handler(e){this.updateInternalState(e),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange(e){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(e===this.pmString?this.hoursSelected+=12:e===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,e)},onHoursChange(e){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(`${e}`,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange(e){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(`${e}`,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange(e){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(`${e}`,10),this.meridienSelected)},updateDateSelected(e,t,i,s){if(null!=e&&null!=t&&(!this.isHourFormat24&&null!==s||this.isHourFormat24)){let s=null;this.computedValue&&!isNaN(this.computedValue.valueOf())?s=new Date(this.computedValue):(s=this.timeCreator(),s.setMilliseconds(0)),s.setHours(e),s.setMinutes(t),s.setSeconds(i),isNaN(s.getTime())||(this.computedValue=new Date(s.getTime()))}},updateInternalState(e){e?(this.hoursSelected=e.getHours(),this.minutesSelected=e.getMinutes(),this.secondsSelected=e.getSeconds(),this.meridienSelected=e.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=e},isHourDisabled(e){let t=!1;if(this.minTime){const i=this.minTime.getHours(),s=this.minutes.every((t=>this.isMinuteDisabledForHour(e,t.value)));t=e<i||s}if(this.maxTime&&!t){const i=this.maxTime.getHours();t=e>i}if(this.unselectableTimes&&!t){t=this.unselectableTimes.filter((t=>this.enableSeconds&&null!==this.secondsSelected?t.getHours()===e&&t.getMinutes()===this.minutesSelected&&t.getSeconds()===this.secondsSelected:null!==this.minutesSelected&&(t.getHours()===e&&t.getMinutes()===this.minutesSelected))).length>0||this.minutes.every((t=>this.unselectableTimes.filter((i=>i.getHours()===e&&i.getMinutes()===t.value)).length>0))}return t},isMinuteDisabledForHour(e,t){let i=!1;if(this.minTime){const s=this.minTime.getHours(),a=this.minTime.getMinutes();i=e===s&&t<a}if(this.maxTime&&!i){const s=this.maxTime.getHours(),a=this.maxTime.getMinutes();i=e===s&&t>a}return i},isMinuteDisabled(e){let t=!1;if(null!==this.hoursSelected&&(t=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,e),this.unselectableTimes&&!t)){t=this.unselectableTimes.filter((t=>this.enableSeconds&&null!==this.secondsSelected?t.getHours()===this.hoursSelected&&t.getMinutes()===e&&t.getSeconds()===this.secondsSelected:t.getHours()===this.hoursSelected&&t.getMinutes()===e)).length>0}return t},isSecondDisabled(e){let t=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))t=!0;else{if(this.minTime){const i=this.minTime.getHours(),s=this.minTime.getMinutes(),a=this.minTime.getSeconds();t=this.hoursSelected===i&&this.minutesSelected===s&&e<a}if(this.maxTime&&!t){const i=this.maxTime.getHours(),s=this.maxTime.getMinutes(),a=this.maxTime.getSeconds();t=this.hoursSelected===i&&this.minutesSelected===s&&e>a}}if(this.unselectableTimes&&!t){t=this.unselectableTimes.filter((t=>t.getHours()===this.hoursSelected&&t.getMinutes()===this.minutesSelected&&t.getSeconds()===e)).length>0}}return t},onChange(e){const t=this.timeParser(e,this);this.updateInternalState(t),t&&!isNaN(t.valueOf())?this.computedValue=t:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle(e){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof e?e:!this.$refs.dropdown.isActive)},close(){this.toggle(!1)},handleOnFocus(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS(e){const t=new Date(e);if(e&&!isNaN(t.valueOf())){const e=t.getHours(),i=t.getMinutes(),s=t.getSeconds();return this.formatNumber(e,!0)+":"+this.formatNumber(i,!0)+":"+this.formatNumber(s,!0)}return""},onChangeNativePicker(e){const t=e.target.value;if(t){let e=null;this.computedValue&&!isNaN(this.computedValue.valueOf())?e=new Date(this.computedValue):(e=new Date,e.setMilliseconds(0));const i=t.split(":");e.setHours(parseInt(i[0],10)),e.setMinutes(parseInt(i[1],10)),e.setSeconds(i[2]?parseInt(i[2],10):0),this.computedValue=new Date(e.getTime())}else this.computedValue=null},formatNumber(e,t){return this.isHourFormat24||t?this.pad(e):`${e}`},pad:e=>(e<10?"0":"")+e,formatValue(e){return e&&!isNaN(e.valueOf())?this.timeFormatter(e,this):null},keyPress({key:e}){this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===e||"Esc"===e)&&this.toggle(!1)},onActiveChange(e){e||this.onBlur()}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeUnmounted(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}}),Ke=t.defineComponent({name:"BTimepicker",components:{BInput:X,BField:P,BSelect:ge,BDropdown:le,BDropdownItem:he},mixins:[_e],data:()=>({_isTimepicker:!0}),computed:{nativeStep(){return this.enableSeconds?"1":void 0}}});const qe=["value","disabled"],Je={class:"control is-colon"},Xe=["value","disabled"],Ge={class:"control is-colon"},Qe=["value","disabled"],Ze={class:"control is-colon"},et=["value"],tt={key:0,class:"timepicker-footer"};var it=O(Ke,[["render",function(e,i,s,a,n,o){const l=t.resolveComponent("b-input"),r=t.resolveComponent("b-select"),d=t.resolveComponent("b-field"),c=t.resolveComponent("b-dropdown-item"),u=t.resolveComponent("b-dropdown");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["timepicker control",[e.size,{"is-expanded":e.expanded}]]},e.rootAttrs),[!e.isMobile||e.inline?(t.openBlock(),t.createBlock(u,{key:0,ref:"dropdown",position:e.position,disabled:e.disabledOrUndefined,inline:e.inline,"mobile-modal":e.mobileModal,"append-to-body":e.appendToBody,"append-to-body-copy-parent":"",onActiveChange:e.onActiveChange},t.createSlots({default:t.withCtx((()=>[t.createVNode(c,{disabled:e.disabledOrUndefined,focusable:e.focusable,custom:""},{default:t.withCtx((()=>[t.createVNode(d,{grouped:"",position:"is-centered"},{default:t.withCtx((()=>[t.createVNode(r,{modelValue:e.hoursSelected,"onUpdate:modelValue":i[2]||(i[2]=t=>e.hoursSelected=t),onChange:i[3]||(i[3]=t=>e.onHoursChange(t.target.value)),disabled:e.disabledOrUndefined,placeholder:"00"},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.hours,(i=>(t.openBlock(),t.createElementBlock("option",{value:i.value,key:i.value,disabled:e.isHourDisabled(i.value)||void 0},t.toDisplayString(i.label),9,qe)))),128))])),_:1},8,["modelValue","disabled"]),t.createElementVNode("span",Je,t.toDisplayString(e.hourLiteral),1),t.createVNode(r,{modelValue:e.minutesSelected,"onUpdate:modelValue":i[4]||(i[4]=t=>e.minutesSelected=t),onChange:i[5]||(i[5]=t=>e.onMinutesChange(t.target.value)),disabled:e.disabledOrUndefined,placeholder:"00"},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.minutes,(i=>(t.openBlock(),t.createElementBlock("option",{value:i.value,key:i.value,disabled:e.isMinuteDisabled(i.value)||void 0},t.toDisplayString(i.label),9,Xe)))),128))])),_:1},8,["modelValue","disabled"]),e.enableSeconds?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",Ge,t.toDisplayString(e.minuteLiteral),1),t.createVNode(r,{modelValue:e.secondsSelected,"onUpdate:modelValue":i[6]||(i[6]=t=>e.secondsSelected=t),onChange:i[7]||(i[7]=t=>e.onSecondsChange(t.target.value)),disabled:e.disabledOrUndefined,placeholder:"00"},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.seconds,(i=>(t.openBlock(),t.createElementBlock("option",{value:i.value,key:i.value,disabled:e.isSecondDisabled(i.value)||void 0},t.toDisplayString(i.label),9,Qe)))),128))])),_:1},8,["modelValue","disabled"]),t.createElementVNode("span",Ze,t.toDisplayString(e.secondLiteral),1)],64)):t.createCommentVNode("v-if",!0),e.isHourFormat24?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createBlock(r,{key:1,modelValue:e.meridienSelected,"onUpdate:modelValue":i[8]||(i[8]=t=>e.meridienSelected=t),onChange:i[9]||(i[9]=t=>e.onMeridienChange(t.target.value)),disabled:e.disabledOrUndefined},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.meridiens,(e=>(t.openBlock(),t.createElementBlock("option",{value:e,key:e},t.toDisplayString(e),9,et)))),128))])),_:1},8,["modelValue","disabled"]))])),_:1}),void 0!==e.$slots.default?(t.openBlock(),t.createElementBlock("footer",tt,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0)])),_:3},8,["disabled","focusable"])])),_:2},[e.inline?void 0:{name:"trigger",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"trigger",{},(()=>[t.createVNode(l,t.mergeProps({ref:"input",autocomplete:"off","model-value":e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabledOrUndefined,readonly:!e.editable||void 0,rounded:e.rounded},e.fallthroughAttrs,{"use-html5-validation":e.useHtml5Validation,onKeyup:i[0]||(i[0]=t.withKeys((t=>e.toggle(!0)),["enter"])),onChange:i[1]||(i[1]=t=>e.onChange(t.target.value)),onFocus:e.handleOnFocus}),null,16,["model-value","placeholder","size","icon","icon-pack","loading","disabled","readonly","rounded","use-html5-validation","onFocus"])]))])),key:"0"}]),1032,["position","disabled","inline","mobile-modal","append-to-body","onActiveChange"])):(t.openBlock(),t.createBlock(l,t.mergeProps({key:1,ref:"input",type:"time",step:e.nativeStep,autocomplete:"off","model-value":e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabledOrUndefined,readonly:!1},e.fallthroughAttrs,{"use-html5-validation":e.useHtml5Validation,onChange:i[10]||(i[10]=t=>e.onChange(t.target.value)),onFocus:e.handleOnFocus,onBlur:i[11]||(i[11]=t=>e.onBlur()&&e.checkHtml5Validity())}),null,16,["step","model-value","placeholder","size","icon","icon-pack","rounded","loading","max","min","disabled","use-html5-validation","onFocus"]))],16)}]]);var st=t.defineComponent({name:"BDatetimepicker",components:{BDatepicker:Re,BInput:X,BTimepicker:it},mixins:[z],inheritAttrs:!1,props:{modelValue:{type:[Date,null]},editable:{type:Boolean,default:!1},placeholder:String,horizontalTimePicker:Boolean,disabled:Boolean,firstDayOfWeek:{type:Number,default:()=>0},rulesForFirstWeek:{type:Number,default:()=>4},icon:String,iconRight:String,iconRightClickable:Boolean,iconPack:String,inline:Boolean,openOnFocus:Boolean,position:String,mobileNative:{type:Boolean,default:!0},minDatetime:Date,maxDatetime:Date,nearbyMonthDays:{type:Boolean,default:D},datetimeFormatter:{type:Function},datetimeParser:{type:Function},datetimeCreator:{type:Function,default:e=>e},datepicker:Object,timepicker:Object,tzOffset:{type:Number,default:0},focusable:{type:Boolean,default:!0},appendToBody:Boolean},emits:{"active-change":e=>!0,"change-month":e=>!0,"change-year":e=>!0,"icon-right-click":()=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.adjustValue(this.modelValue)}},computed:{computedValue:{get(){return this.newValue},set(e){if(e){let t=new Date(e.getTime());this.newValue?e.getDate()===this.newValue.getDate()&&e.getMonth()===this.newValue.getMonth()&&e.getFullYear()===this.newValue.getFullYear()||0!==e.getHours()||0!==e.getMinutes()||0!==e.getSeconds()||t.setHours(this.newValue.getHours(),this.newValue.getMinutes(),this.newValue.getSeconds(),0):t=this.datetimeCreator(e),this.minDatetime&&t<this.adjustValue(this.minDatetime)?t=this.adjustValue(this.minDatetime):this.maxDatetime&&t>this.adjustValue(this.maxDatetime)&&(t=this.adjustValue(this.maxDatetime)),this.newValue=new Date(t.getTime())}else this.newValue=this.adjustValue(e);const t=this.adjustValue(this.newValue,!0);this.$emit("update:modelValue",t)}},localeOptions(){return new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:this.enableSeconds()?"numeric":void 0}).resolvedOptions()},dtf(){return new Intl.DateTimeFormat(this.locale,{year:this.localeOptions.year||"numeric",month:this.localeOptions.month||"numeric",day:this.localeOptions.day||"numeric",hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds()?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24()?"h23":"h12"})},isMobileNative(){return this.mobileNative&&0===this.tzOffset},isMobile(){return this.isMobileNative&&M.any()},minDate(){if(!this.minDatetime)return this.datepicker?this.adjustValue(this.datepicker.minDate):null;const e=this.adjustValue(this.minDatetime);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)},maxDate(){if(!this.maxDatetime)return this.datepicker?this.adjustValue(this.datepicker.maxDate):null;const e=this.adjustValue(this.maxDatetime);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)},minTime(){if(!this.minDatetime||null===this.newValue||void 0===this.newValue)return this.timepicker?this.adjustValue(this.timepicker.minTime):null;const e=this.adjustValue(this.minDatetime);return e.getFullYear()===this.newValue.getFullYear()&&e.getMonth()===this.newValue.getMonth()&&e.getDate()===this.newValue.getDate()?e:void 0},maxTime(){if(!this.maxDatetime||null===this.newValue||void 0===this.newValue)return this.timepicker?this.adjustValue(this.timepicker.maxTime):null;const e=this.adjustValue(this.maxDatetime);return e.getFullYear()===this.newValue.getFullYear()&&e.getMonth()===this.newValue.getMonth()&&e.getDate()===this.newValue.getDate()?e:void 0},datepickerSize(){return this.datepicker&&this.datepicker.size?this.datepicker.size:this.size},timepickerSize(){return this.timepicker&&this.timepicker.size?this.timepicker.size:this.size},timepickerDisabled(){return this.timepicker&&this.timepicker.disabled?this.timepicker.disabled:this.disabled},disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue(){this.newValue=this.adjustValue(this.modelValue)},tzOffset(){this.newValue=this.adjustValue(this.modelValue)}},methods:{enableSeconds(){return!!this.$refs.timepicker&&this.$refs.timepicker.enableSeconds},isHourFormat24(){return this.$refs.timepicker?this.$refs.timepicker.isHourFormat24:!this.localeOptions.hour12},adjustValue(e,t=!1){return e?t?new Date(e.getTime()-6e4*this.tzOffset):new Date(e.getTime()+6e4*this.tzOffset):e},defaultDatetimeParser(e){if("function"==typeof this.datetimeParser)return this.datetimeParser(e);if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){const t=["AM","PM","AM".toLowerCase(),"PM".toLowerCase()];this.$refs.timepicker&&(t.push(this.$refs.timepicker.amString),t.push(this.$refs.timepicker.pmString));const i=this.dtf.formatToParts(new Date),s=F(i.map(((e,s)=>"literal"===e.type?s+1<i.length&&"hour"===i[s+1].type?"[^\\d]+":e.value.replace(/ /g,"\\s?"):"dayPeriod"===e.type?`((?!=<${e.type}>)(${t.join("|")})?)`:`((?!=<${e.type}>)\\d+)`)).join(""),e);if(s.year&&4===s.year.length&&s.month&&+s.month<=12&&s.day&&+s.day<=31&&s.hour&&+s.hour>=0&&+s.hour<24&&s.minute&&+s.minute>=0&&+s.minute<=59){return new Date(+s.year,+s.month-1,+s.day,+s.hour,+s.minute,+(s.second||0))}}return new Date(Date.parse(e))},defaultDatetimeFormatter(e){return"function"==typeof this.datetimeFormatter?this.datetimeFormatter(e):this.dtf.format(e)},onChangeNativePicker(e){const t=e.target.value,i=t?t.split(/\D/):[];if(i.length>=5){const e=parseInt(i[0],10),t=parseInt(i[1],10)-1,s=parseInt(i[2],10),a=parseInt(i[3],10),n=parseInt(i[4],10);this.computedValue=new Date(e,t,s,a,n)}else this.computedValue=null},onActiveChange(e){this.$emit("active-change",e)},formatNative(e){const t=new Date(e);if(e&&!isNaN(t.valueOf())){const e=t.getFullYear(),i=t.getMonth()+1,s=t.getDate(),a=t.getHours(),n=t.getMinutes(),o=t.getSeconds();return e+"-"+(i<10?"0":"")+i+"-"+(s<10?"0":"")+s+"T"+(a<10?"0":"")+a+":"+(n<10?"0":"")+n+":"+(o<10?"0":"")+o}return""},toggle(){this.$refs.datepicker.toggle()}},mounted(){this.isMobile&&!this.inline||this.newValue&&this.$refs.datepicker.$forceUpdate()}});const at={class:"level is-mobile"},nt={key:0,class:"level-item has-text-centered"},ot={class:"level-item has-text-centered"},lt={key:1,class:"level-item has-text-centered"};var rt=O(st,[["render",function(e,i,s,a,n,o){const l=t.resolveComponent("b-timepicker"),r=t.resolveComponent("b-datepicker"),d=t.resolveComponent("b-input");return!e.isMobile||e.inline?(t.openBlock(),t.createBlock(r,t.mergeProps({key:0,ref:"datepicker",modelValue:e.computedValue,"onUpdate:modelValue":i[1]||(i[1]=t=>e.computedValue=t)},e.datepicker,{rounded:e.rounded,"open-on-focus":e.openOnFocus,position:e.position,loading:e.loading,inline:e.inline,editable:e.editable,expanded:e.expanded,"close-on-click":!1,"first-day-of-week":e.firstDayOfWeek,"rules-for-first-week":e.rulesForFirstWeek,"date-formatter":e.defaultDatetimeFormatter,"date-parser":e.defaultDatetimeParser,"min-date":e.minDate,"max-date":e.maxDate,"nearby-month-days":e.nearbyMonthDays,icon:e.icon,"icon-right":e.iconRight,"icon-right-clickable":e.iconRightClickable,"icon-pack":e.iconPack,size:e.datepickerSize,placeholder:e.placeholder,"horizontal-time-picker":e.horizontalTimePicker,range:!1,disabled:e.disabledOrUndefined,"mobile-native":e.isMobileNative,locale:e.locale,focusable:e.focusable,"append-to-body":e.appendToBody,onFocus:e.onFocus,onBlur:e.onBlur,onActiveChange:e.onActiveChange,onIconRightClick:i[2]||(i[2]=t=>e.$emit("icon-right-click")),onChangeMonth:i[3]||(i[3]=t=>e.$emit("change-month",t)),onChangeYear:i[4]||(i[4]=t=>e.$emit("change-year",t))}),{default:t.withCtx((()=>[t.createElementVNode("nav",at,[void 0!==e.$slots.left?(t.openBlock(),t.createElementBlock("div",nt,[t.renderSlot(e.$slots,"left")])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",ot,[t.createVNode(l,t.mergeProps({ref:"timepicker"},e.timepicker,{modelValue:e.computedValue,"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t),inline:"",editable:e.editable,"min-time":e.minTime,"max-time":e.maxTime,size:e.timepickerSize,disabled:e.timepickerDisabled||void 0,focusable:e.focusable,"mobile-native":e.isMobileNative,locale:e.locale}),null,16,["modelValue","editable","min-time","max-time","size","disabled","focusable","mobile-native","locale"])]),void 0!==e.$slots.right?(t.openBlock(),t.createElementBlock("div",lt,[t.renderSlot(e.$slots,"right")])):t.createCommentVNode("v-if",!0)])])),_:3},16,["modelValue","rounded","open-on-focus","position","loading","inline","editable","expanded","first-day-of-week","rules-for-first-week","date-formatter","date-parser","min-date","max-date","nearby-month-days","icon","icon-right","icon-right-clickable","icon-pack","size","placeholder","horizontal-time-picker","disabled","mobile-native","locale","focusable","append-to-body","onFocus","onBlur","onActiveChange"])):(t.openBlock(),t.createBlock(d,t.mergeProps({key:1,ref:"input",type:"datetime-local",autocomplete:"off","model-value":e.formatNative(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatNative(e.maxDate),min:e.formatNative(e.minDate),disabled:e.disabledOrUndefined,readonly:!1},e.$attrs,{"use-html5-validation":e.useHtml5Validation,onChange:e.onChangeNativePicker,onFocus:e.onFocus,onBlur:e.onBlur}),null,16,["model-value","placeholder","size","icon","icon-pack","rounded","loading","max","min","disabled","use-html5-validation","onChange","onFocus","onBlur"]))}]]);const dt={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,rt)}};e.BDatetimepicker=rt,e.default=dt,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Dialog={},e.Vue)}(this,(function(e,t){"use strict";const n=(e,t=!1)=>e?t?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null;let o;const i={beforeMount:(e,{value:t=!0})=>{if(t){let t=n(e),i=n(e,!0);t&&t.length>0&&(o=o=>{t=n(e),i=n(e,!0);const a=t[0],l=t[t.length-1];o.target===a&&o.shiftKey&&"Tab"===o.key?(o.preventDefault(),l.focus()):(o.target===l||Array.from(i).indexOf(o.target)>=0)&&!o.shiftKey&&"Tab"===o.key&&(o.preventDefault(),a.focus())},e.addEventListener("keydown",o))}},unmounted:e=>{e.removeEventListener("keydown",o)}};let a={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultModalCanCancel:["escape","x","outside","button"],defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};function l(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function s(e){if(!e)return;const{component:t}=e;return t?t.exposed&&t.exposeProxy||t.proxy:void 0}const c={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},r=()=>{const e="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 d=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n};var u=d(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:c,fa:r(),fas:r(),far:r(),fad:r(),fab:r(),fal:r(),"fa-solid":r(),"fa-regular":r(),"fa-light":r(),"fa-thin":r(),"fa-duotone":r(),"fa-brands":r()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||a.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||a.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}}}),[["render",function(e,n,o,i,a,l){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const m=["clip","keep"],p=["dialog","alertdialog"],f=t.defineComponent({name:"BModal",directives:{trapFocus:i},props:{modelValue:Boolean,component:[Object,Function,String],content:{type:[String,Object,Array]},programmatic:Boolean,props:Object,events:{type:Object,default:()=>({})},width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:()=>a.defaultModalCanCancel},cancelCallback:{type:Function,default:()=>{}},scroll:{type:String,default:()=>"clip",validator:e=>m.indexOf(e)>=0},fullScreen:Boolean,trapFocus:{type:Boolean,default:()=>a.defaultTrapFocus},autoFocus:{type:Boolean,default:()=>a.defaultAutoFocus},customClass:String,customContentClass:[String,Array,Object],ariaRole:{type:String,validator:e=>p.indexOf(e)>=0},ariaModal:Boolean,ariaLabel:{type:String,validator:e=>Boolean(e)},closeButtonAriaLabel:String,destroyOnHide:{type:Boolean,default:!0},renderOnMounted:{type:Boolean,default:!1}},emits:{"after-enter":()=>!0,"after-leave":()=>!0,cancel:e=>!0,close:()=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue||!1,savedScrollTop:null,newWidth:"number"==typeof this.width?this.width+"px":this.width,animating:!this.modelValue,destroyed:!(this.modelValue||this.renderOnMounted)}},computed:{cancelOptions(){return"boolean"==typeof this.canCancel?this.canCancel?a.defaultModalCanCancel:[]:this.canCancel},showX(){return this.cancelOptions.indexOf("x")>=0},customStyle(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{modelValue(e){this.isActive=e},isActive(e){e&&(this.destroyed=!1),this.handleScroll(),this.$nextTick((()=>{e&&this.$el&&this.$el.focus&&this.autoFocus&&this.$el.focus()}))}},methods:{handleScroll(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top=`-${this.savedScrollTop}px`:(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top="",this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel(e){this.cancelOptions.indexOf(e)<0||(this.$emit("cancel",e),this.cancelCallback.apply(null,[e]),this.close())},close(){this.$emit("close"),this.$emit("update:modelValue",!1),this.programmatic&&(this.isActive=!1,setTimeout((()=>{l(this.$el)}),150))},keyPress({key:e}){!this.isActive||"Escape"!==e&&"Esc"!==e||this.cancel("escape")},afterEnter(){this.animating=!1,this.$emit("after-enter")},beforeLeave(){this.animating=!0},afterLeave(){this.destroyOnHide&&(this.destroyed=!0),this.$emit("after-leave")}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},mounted(){this.programmatic?(document.body.appendChild(this.$el),this.isActive=!0):this.isActive&&this.handleScroll()},beforeUnmount(){if("undefined"!=typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");const e=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=e,document.body.style.top=""}}}),h=["role","aria-label","aria-modal"],g=["innerHTML"],y=["aria-label"];var v=d(f,[["render",function(e,n,o,i,a,l){const s=t.resolveDirective("trap-focus");return t.openBlock(),t.createBlock(t.Transition,{name:e.animation,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:t.withCtx((()=>[e.destroyed?t.createCommentVNode("v-if",!0):t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["modal is-active",[{"is-full-screen":e.fullScreen},e.customClass]]),tabindex:"-1",role:e.ariaRole,"aria-label":e.ariaLabel,"aria-modal":e.ariaModal||void 0},[t.createElementVNode("div",{class:"modal-background",onClick:n[0]||(n[0]=t=>e.cancel("outside"))}),t.createElementVNode("div",{class:t.normalizeClass(["animation-content",[{"modal-content":!e.hasModalCard},e.customContentClass]]),style:t.normalizeStyle(e.customStyle)},[e.component?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component),t.mergeProps({key:0},e.props,t.toHandlers(e.events),{"can-cancel":e.canCancel,onClose:e.close}),null,16,["can-cancel","onClose"])):e.content?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),t.createElementVNode("div",{innerHTML:e.content},null,8,g)],64)):t.renderSlot(e.$slots,"default",{key:2,canCancel:e.canCancel,close:e.close}),e.showX?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:3,type:"button",class:"modal-close is-large","aria-label":e.closeButtonAriaLabel,onClick:n[1]||(n[1]=t=>e.cancel("x"))},null,8,y)),[[t.vShow,!e.animating]]):t.createCommentVNode("v-if",!0)],6)],10,h)),[[t.vShow,e.isActive],[s,e.trapFocus]])])),_:3},8,["name","onAfterEnter","onBeforeLeave","onAfterLeave"])}]]);const C=["button","submit","reset"];var b=t.defineComponent({name:"BButton",components:{BIcon:u},inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>a.defaultButtonRounded},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:e=>C.indexOf(e)>=0},tag:{type:[String,Object],default:"button",validator:e=>"object"==typeof e||a.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 k={key:1},B={key:2};var S=d(b,[["render",function(e,n,o,i,a,l){const s=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.computedTag),t.mergeProps({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:t.withCtx((()=>[e.iconLeft?(t.openBlock(),t.createBlock(s,{key:0,pack:e.iconPack,icon:e.iconLeft,size:e.iconSize},null,8,["pack","icon","size"])):t.createCommentVNode("v-if",!0),e.label?(t.openBlock(),t.createElementBlock("span",k,t.toDisplayString(e.label),1)):e.$slots.default?(t.openBlock(),t.createElementBlock("span",B,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0),e.iconRight?(t.openBlock(),t.createBlock(s,{key:3,pack:e.iconPack,icon:e.iconRight,size:e.iconSize},null,8,["pack","icon","size"])):t.createCommentVNode("v-if",!0)])),_:3},16,["type","class"])}]]),x=Object.defineProperty,w=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,T=(e,t,n)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const V=t.defineComponent({name:"BDialog",components:{BIcon:u,BButton:S},directives:{trapFocus:i},extends:v,props:{title:String,message:[String,Array],icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:()=>"OK"},cancelText:{type:String,default:()=>"Cancel"},hasInput:Boolean,inputAttrs:{type:Object,default:()=>({})},confirmCallback:{type:Function,default:()=>{}},closeOnConfirm:{type:Boolean,default:!0},container:{type:String,default:()=>a.defaultContainerElement},focusOn:{type:String,default:"confirm"}},emits:{confirm:(e,t)=>!0},data(){return{prompt:this.hasInput&&this.inputAttrs.value||"",isActive:!1,validationMessage:"",isCompositing:!1,isLoading:!1}},computed:{safeInputAttrs(){const e=((e,t)=>{for(var n in t||(t={}))E.call(t,n)&&T(e,n,t[n]);if(w)for(var n of w(t))O.call(t,n)&&T(e,n,t[n]);return e})({},this.inputAttrs);return delete e.value,void 0===e.required&&(e.required=!0),e},dialogClass(){return[this.size,{"has-custom-container":null!==this.container}]},iconByType(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm(){const e=this.$refs.input;if(null!=e){if(this.isCompositing)return;if(!e.checkValidity())return this.validationMessage=e.validationMessage,void this.$nextTick((()=>e.select()))}this.$emit("confirm",this.prompt,this),this.confirmCallback(this.prompt,this),this.closeOnConfirm&&this.close()},close(){this.isActive=!1,this.isLoading=!1,setTimeout((()=>{l(this.$el)}),150)},startLoading(){this.isLoading=!0},cancelLoading(){this.isLoading=!1}},beforeMount(){"undefined"!=typeof window&&this.$nextTick((()=>{(document.querySelector(this.container)||document.body).appendChild(this.$el)}))},mounted(){this.isActive=!0,this.$nextTick((()=>{this.hasInput?this.$refs.input.focus():"cancel"===this.focusOn&&this.showCancel?this.$refs.cancelButton.$el.focus():this.$refs.confirmButton.$el.focus()}))}}),L=["role","aria-modal"],z={class:"modal-card animation-content"},N={key:0,class:"modal-card-head"},A={class:"modal-card-title"},P={class:"media"},$={key:0,class:"media-left"},I={class:"media-content"},_=["innerHTML"],M={key:0,class:"field"},j={class:"control"},D={class:"help is-danger"},F={class:"modal-card-foot"};var q=d(V,[["render",function(e,n,o,i,a,l){const s=t.resolveComponent("b-icon"),c=t.resolveComponent("b-button"),r=t.resolveDirective("trap-focus");return t.openBlock(),t.createBlock(t.Transition,{name:e.animation},{default:t.withCtx((()=>[e.isActive?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["dialog modal is-active",e.dialogClass]),role:e.ariaRole,"aria-modal":e.ariaModal},[t.createElementVNode("div",{class:"modal-background",onClick:n[0]||(n[0]=t=>e.cancel("outside"))}),t.createElementVNode("div",z,[e.title?(t.openBlock(),t.createElementBlock("header",N,[t.createElementVNode("p",A,t.toDisplayString(e.title),1)])):t.createCommentVNode("v-if",!0),t.createElementVNode("section",{class:t.normalizeClass(["modal-card-body",{"is-titleless":!e.title,"is-flex":e.hasIcon}])},[t.createElementVNode("div",P,[e.hasIcon&&(e.icon||e.iconByType)?(t.openBlock(),t.createElementBlock("div",$,[t.createVNode(s,{icon:e.icon?e.icon:e.iconByType,pack:e.iconPack,type:e.type,both:!e.icon,size:"is-large"},null,8,["icon","pack","type","both"])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",I,[t.createElementVNode("p",null,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),t.createElementVNode("div",{innerHTML:e.message},null,8,_)],64))]),e.hasInput?(t.openBlock(),t.createElementBlock("div",M,[t.createElementVNode("div",j,[t.withDirectives(t.createElementVNode("input",t.mergeProps({"onUpdate:modelValue":n[1]||(n[1]=t=>e.prompt=t),class:["input",{"is-danger":e.validationMessage}],ref:"input"},e.safeInputAttrs,{onCompositionstart:n[2]||(n[2]=t=>e.isCompositing=!0),onCompositionend:n[3]||(n[3]=t=>e.isCompositing=!1),onKeydown:n[4]||(n[4]=t.withKeys(((...t)=>e.confirm&&e.confirm(...t)),["enter"]))}),null,16),[[t.vModelDynamic,e.prompt]])]),t.createElementVNode("p",D,t.toDisplayString(e.validationMessage),1)])):t.createCommentVNode("v-if",!0)])])],2),t.createElementVNode("footer",F,[e.showCancel?(t.openBlock(),t.createBlock(c,{key:0,ref:"cancelButton",disabled:e.isLoading,onClick:n[5]||(n[5]=t=>e.cancel("button"))},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)])),_:1},8,["disabled"])):t.createCommentVNode("v-if",!0),t.createVNode(c,{type:e.type,ref:"confirmButton",loading:e.isLoading,onClick:e.confirm},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)])),_:1},8,["type","loading","onClick"])])])],10,L)),[[r,e.trapFocus]]):t.createCommentVNode("v-if",!0)])),_:3},8,["name"])}]]);var R=Object.defineProperty,H=Object.defineProperties,K=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,X=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&X(e,n,t[n]);if(U)for(var n of U(t))Y.call(t,n)&&X(e,n,t[n]);return e};function J(e,n){let o;return Array.isArray(e.message)&&(o=e.message,delete e.message),function(){const i=document.createElement("div"),a=t.createApp({data:()=>({dialogVNode:null}),methods:{close(){const e=s(this.dialogVNode);e&&e.close()},startLoading(){const e=s(this.dialogVNode);e&&e.startLoading()},cancelLoading(){const e=s(this.dialogVNode);e&&e.cancelLoading()}},render(){var n;return this.dialogVNode=t.h(q,(n=G({},e),H(n,K({onConfirm:e=>{},onCancel:e=>{a.unmount()},confirmCallback:(t,n)=>{null!=e.onConfirm&&e.onConfirm(t,n)},cancelCallback:t=>{null!=e.onCancel&&e.onCancel(t)}}))),o?{default:()=>o}:void 0),this.dialogVNode}});return n&&function(e,t){const{_context:n}=e,{_context:o}=t;o.config=n.config,o.mixins=n.mixins,o.components=n.components,o.directives=n.directives,o.provides=n.provides,o.optionsCache=n.optionsCache,o.propsCache=n.propsCache,o.emitsCache=n.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}(n,a),a.mount(i)}()}class Q{constructor(e){var t;X(this,"app"+"",t),this.app=e}alert(e){let t;return t="string"==typeof e?{message:e}:e,t=G({canCancel:!1},t),J(t,this.app)}confirm(e){return J(e,this.app)}prompt(e){return J(G({hasInput:!0},e),this.app)}}const Z={install(e){((e,t)=>{const n=t.name;if(null==n)throw new Error("Buefy.registerComponent: missing component name");e.component(n,t)})(e,q),((e,t,n)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=n})(e,"dialog",new Q(e))}};e.BDialog=q,e.DialogProgrammatic=Q,e.default=Z,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Dropdown={},e.Vue)}(this,(function(e,t){"use strict";const i=(e,t=!1)=>e?t?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null;let o;const s={beforeMount:(e,{value:t=!0})=>{if(t){let t=i(e),s=i(e,!0);t&&t.length>0&&(o=o=>{t=i(e),s=i(e,!0);const n=t[0],l=t[t.length-1];o.target===n&&o.shiftKey&&"Tab"===o.key?(o.preventDefault(),l.focus()):(o.target===l||Array.from(s).indexOf(o.target)>=0)&&!o.shiftKey&&"Tab"===o.key&&(o.preventDefault(),n.focus())},e.addEventListener("keydown",o))}},unmounted:e=>{e.removeEventListener("keydown",o)}};let n=!0,l=!0;const a=["escape","outside"],d=Symbol("bdropdown");var r=t.defineComponent({name:"BDropdown",directives:{trapFocus:s},provide(){return{[d]:this}},props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:e=>["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1},triggers:{type:Array,default:()=>["click"]},mobileModal:{type:Boolean,default:()=>n},ariaRole:{type:String,validator:e=>["menu","list","dialog"].indexOf(e)>-1,default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:()=>l},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean,triggerTabindex:{type:Number,default:0}},emits:{"active-change":e=>!0,change:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,style:{},isActive:!1,isHoverable:!1,maybeTap:!1,isTouchEnabled:!1,_bodyEl:void 0,timeOutID:void 0,timeOutID2:void 0}},computed:{rootClasses(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded,"is-touch-enabled":this.isTouchEnabled}]},isMobileModal(){return this.mobileModal&&!this.inline},cancelOptions(){return"boolean"==typeof this.canClose?this.canClose?a:[]:this.canClose},contentStyle(){var e,t;return{maxHeight:this.scrollable&&null!=(t=this.maxHeight,e=void 0===t?null:isNaN(+t)?`${t}`:t+"px")?e:void 0,overflow:this.scrollable?"auto":void 0}},hoverable(){return this.triggers.indexOf("hover")>=0}},watch:{modelValue(e){this.selected=e},isActive(e){this.$emit("active-change",e),e||(this.timeOutID=setTimeout((()=>{this.isActive||(this.isTouchEnabled=!1)}),250)),this.handleScroll(),this.appendToBody&&this.$nextTick((()=>{this.updateAppendToBody()}))},isHoverable(e){this.hoverable&&this.$emit("active-change",e)}},methods:{handleScroll(){"undefined"!=typeof window&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem(e){if(this.multiple){if(this.selected){const t=this.selected;-1===t.indexOf(e)?this.selected=[...t,e]:this.selected=t.filter((t=>t!==e))}else this.selected=[e];this.$emit("change",this.selected)}else this.selected!==e&&(this.selected=e,this.$emit("change",this.selected));this.$emit("update:modelValue",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(null!=this.$refs.dropdownMenu){const t=this.$refs.dropdownMenu.querySelectorAll("*");for(const i of t)if(e===i)return!0}if(null!=this.$refs.trigger){const t=this.$refs.trigger.querySelectorAll("*");for(const i of t)if(e===i)return!0}return!1},clickedOutside(e){if(this.cancelOptions.indexOf("outside")<0)return;if(this.inline)return;const t=null!=(i=this).$root&&"shadowRoot"in i.$root.$options?e.composedPath()[0]:e.target;var i;this.isInWhiteList(t)||(this.isActive=!1)},keyPress({key:e}){if(this.isActive&&("Escape"===e||"Esc"===e)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick(){-1===this.triggers.indexOf("hover")&&(this.triggers.indexOf("click")<0||this.toggle())},onContextMenu(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover(){this.triggers.indexOf("hover")<0||this.isTouchEnabled||(this.isHoverable=!0)},onTouchStart(){this.maybeTap=!0},onTouchMove(){this.maybeTap=!1},onTouchEnd(e){-1!==this.triggers.indexOf("hover")&&this.maybeTap&&(e.preventDefault(),this.maybeTap=!1,this.isTouchEnabled=!0,this.toggle())},onFocus(){this.triggers.indexOf("focus")<0||this.toggle()},toggle(){this.disabled||(this.isActive?this.isActive=!this.isActive:this.timeOutID2=setTimeout((()=>{const e=!this.isActive;this.isActive=e})))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$refs.dropdownMenu,i=this.$refs.trigger;if(t&&i){const o=this.$data._bodyEl.children[0];if(o.classList.forEach((e=>o.classList.remove(e))),o.classList.add("dropdown"),o.classList.add("dropdown-menu-animation"),this.rootClasses.forEach((e=>{if(e&&"object"==typeof e)for(const t in e)e[t]&&o.classList.add(t)})),this.appendToBodyCopyParent){const e=this.$refs.dropdown.parentNode,t=this.$data._bodyEl;t.classList.forEach((e=>t.classList.remove(e))),e.classList.forEach((e=>{t.classList.add(e)}))}const s=i.getBoundingClientRect();let n=s.top+window.scrollY,l=s.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?n+=i.clientHeight:n-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(l-=t.clientWidth-i.clientWidth),this.style={position:"absolute",top:`${n}px`,left:`${l}px`,zIndex:"99",width:this.expanded?`${e.offsetWidth}px`:void 0}}}},mounted(){this.appendToBody&&(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.dropdownMenu),this.updateAppendToBody())},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)),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),clearTimeout(this.timeOutID),clearTimeout(this.timeOutID2)}}),c=(e,t)=>{const i=e.__vccOpts||e;for(const[e,o]of t)i[e]=o;return i};const h=["tabindex"],u=["aria-hidden"],p=["aria-hidden"],m=["role","aria-modal"];var f=c(r,[["render",function(e,i,o,s,n,l){const a=t.resolveDirective("trap-focus");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["dropdown dropdown-menu-animation",e.rootClasses]),ref:"dropdown",onMouseleave:i[7]||(i[7]=t=>e.isHoverable=!1)},[e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",{key:0,tabindex:e.disabled?void 0:e.triggerTabindex,ref:"trigger",class:"dropdown-trigger",onClick:i[0]||(i[0]=(...t)=>e.onClick&&e.onClick(...t)),onContextmenu:i[1]||(i[1]=t.withModifiers(((...t)=>e.onContextMenu&&e.onContextMenu(...t)),["prevent"])),onMouseenter:i[2]||(i[2]=(...t)=>e.onHover&&e.onHover(...t)),onFocusCapture:i[3]||(i[3]=(...t)=>e.onFocus&&e.onFocus(...t)),onTouchstart:i[4]||(i[4]=(...t)=>e.onTouchStart&&e.onTouchStart(...t)),onTouchmove:i[5]||(i[5]=(...t)=>e.onTouchMove&&e.onTouchMove(...t)),onTouchend:i[6]||(i[6]=(...t)=>e.onTouchEnd&&e.onTouchEnd(...t)),"aria-haspopup":"true"},[t.renderSlot(e.$slots,"trigger",{active:e.isActive})],40,h)),t.createVNode(t.Transition,{name:e.animation},{default:t.withCtx((()=>[e.isMobileModal?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"background","aria-hidden":!e.isActive},null,8,u)),[[t.vShow,e.isActive]]):t.createCommentVNode("v-if",!0)])),_:1},8,["name"]),t.createVNode(t.Transition,{name:e.animation,persisted:""},{default:t.withCtx((()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"dropdownMenu",class:"dropdown-menu",style:t.normalizeStyle(e.style),"aria-hidden":!e.isActive},[t.createElementVNode("div",{class:"dropdown-content",role:e.ariaRole,"aria-modal":!e.inline,style:t.normalizeStyle(e.contentStyle)},[t.renderSlot(e.$slots,"default")],12,m)],12,p)),[[t.vShow,!e.disabled&&(e.isActive||e.isHoverable)||e.inline],[a,e.trapFocus]])])),_:3},8,["name"])],34)}]]),v=t.defineComponent({name:"BDropdownItem",inject:{parent:{from:d,default:void 0}},props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},emits:{click:()=>!0},computed:{anchorClasses(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:void 0},isClickable(){return!(this.parent.disabled||this.separator||this.disabled||this.custom)},isActive(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable(){return!this.hasLink&&this.focusable}},methods:{selectItem(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}});const b={key:0,class:"dropdown-divider"},y=["role","tabindex"],g=["role","tabindex"];var k=c(v,[["render",function(e,i,o,s,n,l){return e.separator?(t.openBlock(),t.createElementBlock("hr",b)):e.custom||e.hasLink?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.itemClasses),onClick:i[1]||(i[1]=(...t)=>e.selectItem&&e.selectItem(...t)),role:e.ariaRoleItem,tabindex:e.isFocusable?0:void 0},[t.renderSlot(e.$slots,"default")],10,g)):(t.openBlock(),t.createElementBlock("a",{key:1,class:t.normalizeClass(["dropdown-item",e.anchorClasses]),onClick:i[0]||(i[0]=(...t)=>e.selectItem&&e.selectItem(...t)),role:e.ariaRoleItem,tabindex:e.isFocusable?0:void 0},[t.renderSlot(e.$slots,"default")],10,y))}]]);const x=(e,t,i)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)},w={install(e){x(e,f),x(e,k)}};e.BDropdown=f,e.BDropdownItem=k,e.default=w,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Field={},e.Vue)}(this,(function(e,t){"use strict";let s=null;var n=t.defineComponent({name:"BFieldBody",inject:{parent:{from:"BField",default:null}},props:{message:{type:[String,Array]},type:{type:[String,Object]}},render(){let e=!0,s="function"==typeof this.$slots.default?this.$slots.default():this.$slots.default;return null!=s&&1===s.length&&s[0].type===t.Fragment&&(s=s[0].children),t.h("div",{class:"field-body"},{default:()=>null!=s&&s.map((s=>{if(s.type===t.Comment||s.type===t.Text)return s;let n;e&&(n=this.message,e=!1);const l=this.parent;return t.h(l?l.$.type:t.resolveComponent("b-field"),{type:this.type,message:n},(()=>s))}))})}});const l=t.defineComponent({name:"BField",components:{BFieldBody:n},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:()=>s}},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 s in e)e[s]&&t.push(s)}));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,s)=>{return(n=s).type!==t.Comment&&n.type!==t.Text&&n.type!==t.Static?e+1:e;var n}),0)),e>1&&this.addons&&!this.horizontal},wrapNumberinput({controlsPosition:e,size:t}){const s=["has-numberinput"];e&&s.push(`has-numberinput-${e}`),t&&s.push(`has-numberinput-${t}`),this.numberInputClasses=s}},mounted(){if(this.horizontal){this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal")}}});const o=["for"],i=["for"],a={key:3,class:"field-body"};var r=((e,t)=>{const s=e.__vccOpts||e;for(const[e,n]of t)s[e]=n;return s})(l,[["render",function(e,s,n,l,r,d){const p=t.resolveComponent("b-field-body"),h=t.resolveComponent("b-field");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["field",e.rootClasses])},[e.horizontal?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["field-label",[e.customClass,e.fieldLabelSize]])},[e.hasLabel?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.labelFor,class:t.normalizeClass([e.customClass,"label"])},[e.$slots.label?t.renderSlot(e.$slots,"label",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],10,o)):t.createCommentVNode("v-if",!0)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.hasLabel?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.labelFor,class:t.normalizeClass([e.customClass,"label"])},[e.$slots.label?t.renderSlot(e.$slots,"label",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],10,i)):t.createCommentVNode("v-if",!0)],64)),e.horizontal?(t.openBlock(),t.createBlock(p,{key:2,message:e.newMessage?e.formattedMessage:"",type:e.newType},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["message","type"])):e.hasInnerField?(t.openBlock(),t.createElementBlock("div",a,[t.createVNode(h,{addons:!1,type:e.type,class:t.normalizeClass(e.innerFieldClasses)},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["type","class"])])):t.renderSlot(e.$slots,"default",{key:4}),e.hasMessage&&!e.horizontal?(t.openBlock(),t.createElementBlock("p",{key:5,class:t.normalizeClass(["help",e.newType])},[e.$slots.message?t.renderSlot(e.$slots,"message",{key:0,messages:e.formattedMessage}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.formattedMessage,((s,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createTextVNode(t.toDisplayString(s)+" ",1),n+1<e.formattedMessage.length?(t.openBlock(),t.createElementBlock("br",{key:n})):t.createCommentVNode("v-if",!0)],64)))),256))],2)):t.createCommentVNode("v-if",!0)],2)}]]);const d={install(e){((e,t)=>{const s=t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)})(e,r)}};e.BField=r,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).Icon={},e.Vue)}(this,(function(e,n){"use strict";let i="mdi",t=null;const o={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},s=()=>{const e="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 c=((e,n)=>{const i=e.__vccOpts||e;for(const[e,t]of n)i[e]=t;return i})(n.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:o,fa:s(),fas:s(),far:s(),fad:s(),fab:s(),fal:s(),"fa-solid":s(),"fa-regular":s(),"fa-light":s(),"fa-thin":s(),"fa-duotone":s(),"fa-brands":s()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||i},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const n in this.type)if(this.type[n]){e=n.split("-");break}if(e.length<=1)return;const[,...n]=e;return`has-text-${n.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||t}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const n=this.iconConfig;return n&&n.internalIcons&&n.internalIcons[e]?n.internalIcons[e]:e}}}),[["render",function(e,i,t,o,s,c){return n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:n.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const r={install(e){((e,n)=>{const i=n.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,n)})(e,c)}};e.BIcon=c,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Image={},e.Vue)}(this,(function(e,t){"use strict";let i=null,s=!0,r=!0,o=null;var a=Object.defineProperty,n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,h=(e,t,i)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;const d=["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"];function p(e){return-1!==d.indexOf(e)}var u=t.defineComponent({name:"BImage",props:{src:String,alt:String,srcFallback:String,webpFallback:{type:String,default:()=>i},lazy:{type:Boolean,default:()=>s},responsive:{type:Boolean,default:()=>r},ratio:{type:String,default:()=>o},placeholder:String,srcset:String,srcsetSizes:Array,srcsetFormatter:{type:Function,default:(e,t,i)=>i.formatSrcset(e,t)},rounded:{type:Boolean,default:!1},captionFirst:{type:Boolean,default:!1},customClass:String},emits:{load:(e,t)=>!0,error:(e,t)=>!0},data:()=>({clientWidth:0,webpSupportVerified:!1,webpSupported:!1,useNativeLazy:!1,observer:null,inViewPort:!1,loaded:!1,failed:!1}),computed:{ratioPattern:()=>/([0-9]+)by([0-9]+)/,hasRatio(){return null!=this.ratio&&this.ratioPattern.test(this.ratio)},figureClasses(){const e={image:this.responsive};return this.hasRatio&&p(this.ratio)&&(e[`is-${this.ratio}`]=!0),e},figureStyles(){if(this.hasRatio&&!p(this.ratio)){const e=this.ratioPattern.exec(this.ratio);return{paddingTop:+e[2]/+e[1]*100+"%"}}},imgClasses(){return((e,t)=>{for(var i in t||(t={}))l.call(t,i)&&h(e,i,t[i]);if(n)for(var i of n(t))c.call(t,i)&&h(e,i,t[i]);return e})({"is-rounded":this.rounded,"has-ratio":this.hasRatio},this.customClass?{[this.customClass]:!!this.customClass}:{})},srcExt(){return this.getExt(this.src)},isWepb(){return"webp"===this.srcExt},computedSrc(){let e=this.src;return this.failed&&this.srcFallback&&(e=this.srcFallback),!this.webpSupported&&this.isWepb&&this.webpFallback?this.webpFallback.startsWith(".")?e.replace(/\.webp/gi,`${this.webpFallback}`):this.webpFallback:e},computedWidth(){if(this.responsive&&this.clientWidth>0)return this.clientWidth},computedNativeLazy(){if(this.lazy&&this.useNativeLazy)return"lazy"},isDisplayed(){return(this.webpSupportVerified||!this.isWepb)&&(!this.lazy||this.useNativeLazy||this.inViewPort)},placeholderExt(){if(this.placeholder)return this.getExt(this.placeholder)},isPlaceholderWepb(){return!!this.placeholder&&"webp"===this.placeholderExt},computedPlaceholder(){return!this.webpSupported&&this.isPlaceholderWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.placeholder.replace(/\.webp/gi,`${this.webpFallback}`):this.placeholder},isPlaceholderDisplayed(){return!this.loaded&&(this.$slots.placeholder||this.placeholder&&(this.webpSupportVerified||!this.isPlaceholderWepb))},computedSrcset(){return this.srcset?!this.webpSupported&&this.isWepb&&this.webpFallback&&this.webpFallback.startsWith(".")?this.srcset.replace(/\.webp/gi,`${this.webpFallback}`):this.srcset:this.srcsetSizes&&Array.isArray(this.srcsetSizes)&&this.srcsetSizes.length>0?this.srcsetSizes.map((e=>`${this.srcsetFormatter(this.computedSrc,e,this)} ${e}w`)).join(","):void 0},computedSizes(){if(this.computedSrcset&&this.computedWidth)return`${this.computedWidth}px`},isCaptionFirst(){return this.$slots.caption&&this.captionFirst},isCaptionLast(){return this.$slots.caption&&!this.captionFirst}},methods:{getExt(e,t=!0){if(e){return(t?e.split("?")[0]:e).split(".").pop()}return""},setWidth(){this.clientWidth=this.$el.clientWidth},formatSrcset(e,t){const i=this.getExt(e,!1);return`${e.split(".").slice(0,-1).join(".")}-${t}.${i}`},onLoad(e){this.loaded=!0,this.emitSrc(e,(t=>this.$emit("load",e,t)))},onError(e){this.emitSrc(e,(t=>this.$emit("error",e,t))),this.failed||(this.failed=!0)},emitSrc(e,t){const i=e.target;t(i.currentSrc||i.src||this.computedSrc)}},created(){if(this.isWepb&&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)).then((e=>{this.webpSupportVerified=!0,this.webpSupported=e})),this.lazy){const e="undefined"!=typeof window&&"HTMLImageElement"in window&&"loading"in HTMLImageElement.prototype,t="undefined"!=typeof window&&"IntersectionObserver"in window;!e&&t?this.observer=new IntersectionObserver((e=>{const{target:t,isIntersecting:i}=e[0];i&&!this.inViewPort&&(this.inViewPort=!0,this.observer.unobserve(t))})):this.useNativeLazy=!0}},mounted(){this.lazy&&this.observer&&this.observer.observe(this.$el),this.setWidth(),"undefined"!=typeof window&&window.addEventListener("resize",this.setWidth)},beforeUnmount(){this.observer&&this.observer.disconnect(),"undefined"!=typeof window&&window.removeEventListener("resize",this.setWidth)}});const b={key:0},m=["srcset","src","alt","width","sizes","loading"],f=["src","alt"],y={key:1};var w=((e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i})(u,[["render",function(e,i,s,r,o,a){return t.openBlock(),t.createElementBlock("figure",{class:t.normalizeClass(["b-image-wrapper",e.figureClasses]),style:t.normalizeStyle(e.figureStyles)},[e.isCaptionFirst?(t.openBlock(),t.createElementBlock("figcaption",b,[t.renderSlot(e.$slots,"caption")])):t.createCommentVNode("v-if",!0),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[e.isDisplayed?(t.openBlock(),t.createElementBlock("img",{key:0,srcset:e.computedSrcset,src:e.computedSrc,alt:e.alt,class:t.normalizeClass(e.imgClasses),width:e.computedWidth,sizes:e.computedSizes,loading:e.computedNativeLazy,onLoad:i[0]||(i[0]=(...t)=>e.onLoad&&e.onLoad(...t)),onError:i[1]||(i[1]=(...t)=>e.onError&&e.onError(...t))},null,42,m)):t.createCommentVNode("v-if",!0)])),_:1}),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[e.isPlaceholderDisplayed?t.renderSlot(e.$slots,"placeholder",{key:0},(()=>[t.createElementVNode("img",{src:e.computedPlaceholder,alt:e.alt,class:t.normalizeClass([e.imgClasses,"placeholder"])},null,10,f)])):t.createCommentVNode("v-if",!0)])),_:3}),e.isCaptionLast?(t.openBlock(),t.createElementBlock("figcaption",y,[t.renderSlot(e.$slots,"caption")])):t.createCommentVNode("v-if",!0)],6)}]]);const g={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,w)}};e.BImage=w,e.default=g,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Input={},e.Vue)}(this,(function(e,t){"use strict";let i,n="mdi",s=null,o="on",l=!0,a=!0,r=!0,c=!0;const u={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},h=()=>{const e="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 p=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};var d=p(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:u,fa:h(),fas:h(),far:h(),fad:h(),fab:h(),fal:h(),"fa-solid":h(),"fa-regular":h(),"fa-light":h(),"fa-thin":h(),"fa-duotone":h(),"fa-brands":h()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||n},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||s}},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}}}),[["render",function(e,i,n,s,o,l){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),m=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,y=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:n}=e;return((e,t)=>{var i={};for(var n in e)g.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&m)for(var n of m(e))t.indexOf(n)<0&&f.call(e,n)&&(i[n]=e[n]);return i})(e,["style","class","id"])}return this.$attrs}}});const k=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>r},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>c}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||n,_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)}}});var C=t.defineComponent({name:"BInput",components:{BIcon:d},mixins:[y,k],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>l},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||o,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 w=["type","autocomplete","maxlength"],B=["maxlength"],x=["type","autocomplete","maxlength"],V=["maxlength"];var v=p(C,[["render",function(e,i,n,s,o,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",e.rootClasses]},e.rootAttrs),[e.lazy?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[0]||(i[0]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[1]||(i[1]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[2]||(i[2]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[3]||(i[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[4]||(i[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,w)),[[t.vModelDynamic,e.computedValue,void 0,{lazy:!0}]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[5]||(i[5]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[6]||(i[6]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[7]||(i[7]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[8]||(i[8]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[9]||(i[9]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,B)),[[t.vModelText,e.computedValue,void 0,{lazy:!0}]])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":i[10]||(i[10]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[11]||(i[11]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[12]||(i[12]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[13]||(i[13]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[14]||(i[14]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,x)),[[t.vModelDynamic,e.computedValue]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":i[15]||(i[15]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:i[16]||(i[16]=(...t)=>e.onInput&&e.onInput(...t)),onChange:i[17]||(i[17]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:i[18]||(i[18]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:i[19]||(i[19]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,V)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:i[20]||(i[20]=t=>e.iconClick("icon-click",t))},null,8,["class","icon","pack","size"])):t.createCommentVNode("v-if",!0),!e.loading&&e.hasIconRight&&e.rightIcon?(t.openBlock(),t.createBlock(a,{key:3,class:t.normalizeClass(["is-right",{"is-clickable":e.passwordReveal||e.iconRightClickable}]),icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:"",onClick:e.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&e.hasCounter&&"number"!==e.type?(t.openBlock(),t.createElementBlock("small",{key:4,class:t.normalizeClass(["help counter",{"is-invisible":!e.isFocused}])},t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],16)}]]);const I={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,v)}};e.BInput=v,e.default=I,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Loading={},e.Vue)}(this,(function(e,t){"use strict";const o="undefined"==typeof window?Object:window.HTMLElement,n=t.defineComponent({name:"BLoading",props:{modelValue:Boolean,programmatic:Boolean,container:[Object,Function,o],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}}},emits:{close:()=>!0,"update:is-full-page":e=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue||!1,displayInFullPage:this.isFullPage}},watch:{modelValue(e){this.isActive=e},isFullPage(e){this.displayInFullPage=e}},methods:{cancel(){this.canCancel&&this.isActive&&this.close()},close(...e){this.onCancel.apply(null,e),this.$emit("close"),this.$emit("update:modelValue",!1),this.programmatic&&(this.isActive=!1,setTimeout((()=>{var e;void 0!==(e=this.$el).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}),150))},keyPress({key:e}){"Escape"!==e&&"Esc"!==e||this.cancel()}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},mounted(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el),this.isActive=!0)},beforeUnmount(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}});var i=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o};const a=t.createElementVNode("div",{class:"loading-icon"},null,-1);var s=i(n,[["render",function(e,o,n,i,s,l){return t.openBlock(),t.createBlock(t.Transition,{name:e.animation},{default:t.withCtx((()=>[e.isActive?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["loading-overlay is-active",{"is-full-page":e.displayInFullPage}])},[t.createElementVNode("div",{class:"loading-background",onClick:o[0]||(o[0]=(...t)=>e.cancel&&e.cancel(...t))}),t.renderSlot(e.$slots,"default",{},(()=>[a]))],2)),[[t.vShow,e.isActive]]):t.createCommentVNode("v-if",!0)])),_:3},8,["name"])}]]);var l=Object.defineProperty,r=Object.defineProperties,c=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,m=(e,t,o)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class f{constructor(e){var t;m(this,"app"+"",t),this.app=e}open(e){const o=e,n=document.createElement("div"),i=t.createApp({data:()=>({loadingVNode:null}),methods:{close(){const e=function(e){if(!e)return;const{component:t}=e;return t?t.exposed&&t.exposeProxy||t.proxy:void 0}(this.loadingVNode);e&&e.close()}},render(){var e;return this.loadingVNode=t.h(s,(e=((e,t)=>{for(var o in t||(t={}))p.call(t,o)&&m(e,o,t[o]);if(d)for(var o of d(t))u.call(t,o)&&m(e,o,t[o]);return e})({},o),r(e,c({programmatic:!0,onClose(...e){o.onClose&&o.onClose(...e),setTimeout((()=>{i.unmount()}),150)}})))),this.loadingVNode}});return this.app&&function(e,t){const{_context:o}=e,{_context:n}=t;n.config=o.config,n.mixins=o.mixins,n.components=o.components,n.directives=o.directives,n.provides=o.provides,n.optionsCache=o.optionsCache,n.propsCache=o.propsCache,n.emitsCache=o.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}(this.app,i),i.mount(n)}}const h={install(e){((e,t)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)})(e,s),((e,t,o)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=o})(e,"loading",new f(e))}};e.BLoading=s,e.LoadingProgrammatic=f,e.default=h,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Menu={},e.Vue)}(this,(function(e,t){"use strict";var n=t.defineComponent({provide(){return{BMenuItemContainer:this}},data:()=>({menuItems:[]}),methods:{appendMenuItem(e){this.menuItems.push(e)},removeMenuItem(e){const t=this.menuItems.indexOf(e);-1!==t&&this.menuItems.splice(t,1)}}}),i=t.defineComponent({name:"BMenu",mixins:[n],props:{accordion:{type:Boolean,default:!0},activable:{type:Boolean,default:!0}},data:()=>({_isMenu:!0})}),o=(e,t)=>{const n=e.__vccOpts||e;for(const[e,i]of t)n[e]=i;return n};const a={class:"menu"};var l=o(i,[["render",function(e,n,i,o,l,s){return t.openBlock(),t.createElementBlock("div",a,[t.renderSlot(e.$slots,"default")])}]]);let s={defaultIconPack:"mdi",defaultIconComponent:null,defaultCompatFallthrough:!0,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};const r={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},c=()=>{const e="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 u=o(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:r,fa:c(),fas:c(),far:c(),fad:c(),fab:c(),fal:c(),"fa-solid":c(),"fa-regular":c(),"fa-light":c(),"fa-thin":c(),"fa-duotone":c(),"fa-brands":c()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||s.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||s.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}}}),[["render",function(e,n,i,o,a,l){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),d=t.defineComponent({name:"BMenuList",components:{BIcon:u},props:{label:String,icon:String,iconPack:String,ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}}});const p={key:0,class:"menu-label"},m=["role"];var f=o(d,[["render",function(e,n,i,o,a,l){const s=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.label||e.$slots.label?(t.openBlock(),t.createElementBlock("p",p,[e.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.icon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(s,{icon:e.icon,pack:e.iconPack,size:e.size},null,8,["icon","pack","size"]),t.createElementVNode("span",null,t.toDisplayString(e.label),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],64)):t.renderSlot(e.$slots,"label",{key:1})])):t.createCommentVNode("v-if",!0),t.createElementVNode("ul",{class:"menu-list",role:"menu"===e.ariaRole?e.ariaRole:void 0},[t.renderSlot(e.$slots,"default")],8,m)],64)}]]),h=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,y=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>s.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:n,id:i}=e;return((e,t)=>{var n={};for(var i in e)g.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&h)for(var i of h(e))t.indexOf(i)<0&&k.call(e,i)&&(n[i]=e[i]);return n})(e,["style","class","id"])}return this.$attrs}}}),B=t.defineComponent({name:"BMenuItem",components:{BIcon:u},mixins:[y,n],inject:{parent:{from:"BMenuItemContainer",default:null}},props:{label:String,modelValue:Boolean,expanded:Boolean,disabled:Boolean,iconPack:String,icon:String,animation:{type:String,default:"slide"},tag:{type:[String,Object],default:"a",validator:e=>"object"==typeof e||s.defaultLinkTags.indexOf(e)>=0},ariaRole:{type:String,default:""},size:{type:String,default:"is-small"}},emits:{"update:modelValue":e=>!0,"update:expanded":e=>!0},data(){return{newActive:this.modelValue,newExpanded:this.expanded}},computed:{ariaRoleMenu(){return"menuitem"===this.ariaRole?this.ariaRole:void 0}},watch:{modelValue(e){this.newActive=e},expanded(e){this.newExpanded=e}},methods:{onClick(){if(this.disabled)return;const e=this.getMenu();this.reset(this.parent,e),this.newExpanded=this.$props.expanded||!this.newExpanded,this.$emit("update:expanded",this.newExpanded),e&&e.activable&&(this.newActive=!0,this.$emit("update:modelValue",this.newActive))},reset(e,t){null!=e&&e.menuItems.forEach((n=>{n!==this&&(this.reset(n,t),(!e.$data._isMenu||e.$data._isMenu&&e.accordion)&&(n.newExpanded=!1,n.$emit("update:expanded",n.newExpanded)),t&&t.activable&&(n.newActive=!1,n.$emit("update:modelValue",n.newActive)))}))},getMenu(){let e=this.parent;for(;e&&!e.$data._isMenu;)e=e.parent;return e}},mounted(){this.parent&&this.parent.appendMenuItem(this)},beforeUnmount(){this.parent&&this.parent.removeMenuItem(this)}});const C=["role"],v={key:1};var x=o(B,[["render",function(e,n,i,o,a,l){const s=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("li",t.mergeProps({role:e.ariaRoleMenu},e.rootAttrs),[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.mergeProps(e.fallthroughAttrs,{class:{"is-active":e.newActive,"is-expanded":e.newExpanded,"is-disabled":e.disabled,"icon-text":e.icon},onClick:n[0]||(n[0]=t=>e.onClick())}),{default:t.withCtx((()=>[e.icon?(t.openBlock(),t.createBlock(s,{key:0,icon:e.icon,pack:e.iconPack,size:e.size},null,8,["icon","pack","size"])):t.createCommentVNode("v-if",!0),e.label?(t.openBlock(),t.createElementBlock("span",v,t.toDisplayString(e.label),1)):t.renderSlot(e.$slots,"label",{key:2,expanded:e.newExpanded,active:e.newActive})])),_:3},16,["class"])),t.createCommentVNode(" sub menu items "),e.$slots.default?(t.openBlock(),t.createBlock(t.Transition,{key:0,name:e.animation,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("ul",null,[t.renderSlot(e.$slots,"default")],512),[[t.vShow,e.newExpanded]])])),_:3},8,["name"])):t.createCommentVNode("v-if",!0)],16,C)}]]);const w=(e,t,n)=>{const i=n||t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)},b={install(e){w(e,l),w(e,f,"BMenuList"),w(e,x)}};e.BMenu=l,e.BMenuItem=x,e.BMenuList=f,e.default=b,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
@@ -1,2 +1,2 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  !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).Message={},e.Vue)}(this,(function(e,t){"use strict";var i=t.defineComponent({props:{modelValue:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3},progressBar:{type:Boolean,default:!1}},emits:{click:()=>!0,close:()=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue,remainingTime:this.duration/1e3,newIconSize:this.iconSize||this.size||"is-large",timer:void 0}},computed:{computedIcon(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},watch:{modelValue(e){this.isActive=e},isActive(e){e?(this.setAutoClose(),this.setDurationProgress()):this.timer&&clearTimeout(this.timer)}},methods:{close(){this.isActive=!1,this.resetDurationProgress(),this.$emit("close"),this.$emit("update:modelValue",!1)},click(){this.$emit("click")},setAutoClose(){this.autoClose&&(this.timer=setTimeout((()=>{this.isActive&&this.close()}),this.duration))},setDurationProgress(){(this.progressBar||this.autoClose)&&(this.$buefy.globalNoticeInterval=setInterval((()=>{0!==this.remainingTime?this.remainingTime-=1:this.resetDurationProgress()}),1e3))},resetDurationProgress(){setTimeout((()=>{this.remainingTime=this.duration/1e3,clearInterval(this.$buefy.globalNoticeInterval)}),100)}},mounted(){this.setAutoClose()}});let s,n="mdi",o=null;const r={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},a=()=>{const e="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 l=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};var c=l(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:r,fa:a(),fas:a(),far:a(),fad:a(),fab:a(),fal:a(),"fa-solid":a(),"fa-regular":a(),"fa-light":a(),"fa-thin":a(),"fa-duotone":a(),"fa-brands":a()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||n},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||o}},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}}}),[["render",function(e,i,s,n,o,r){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const u=Symbol("bprogress"),m=t.defineComponent({name:"BProgress",provide(){return{[u]:this}},props:{type:{type:[String,Object],default:"is-darkgrey"},size:{type:String},rounded:{type:Boolean,default:!0},value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>["raw","percent"].indexOf(e)>=0},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1},locale:{type:[String,Array],default:()=>s,validator:e=>Array.isArray(e)?e.every((e=>"string"==typeof e)):"string"==typeof e}},computed:{isIndeterminate(){return void 0===this.value||null===this.value},newType(){return[this.size,this.type,{"is-more-than-half":this.value&&this.value>this.max/2}]},newValue(){return this.calculateValue(this.value)},isNative(){return void 0===this.$slots.bar},wrapperClasses(){return{"is-not-native":!this.isNative,[void 0===this.size?"":this.size]:"string"==typeof this.size&&!this.isNative}}},watch:{isIndeterminate(e){this.$nextTick((()=>{this.$refs.progress&&(e?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",this.value.toString()))}))}},methods:{calculateValue(e){if(null==e||isNaN(e))return;const t=this.keepTrailingZeroes?this.precision:0,i=this.precision;return"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:i}).format(e/this.max):new Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:i}).format(e)}}}),p=["max","value"],d={key:2,class:"progress-value"};var f=l(m,[["render",function(e,i,s,n,o,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["progress-wrapper",[e.wrapperClasses,{"is-squared":!e.rounded}]])},[e.isNative?(t.openBlock(),t.createElementBlock("progress",{key:0,ref:"progress",class:t.normalizeClass(["progress",[e.newType,{"is-squared":!e.rounded}]]),max:e.max,value:e.value},t.toDisplayString(e.newValue),11,p)):t.renderSlot(e.$slots,"bar",{key:1}),e.isNative&&e.showValue?(t.openBlock(),t.createElementBlock("p",d,[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.newValue),1)]))])):t.createCommentVNode("v-if",!0)],2)}]]);const h=t.defineComponent({name:"BMessage",components:{BIcon:c,BProgress:f},mixins:[i],props:{ariaCloseLabel:String}}),g={key:0,class:"message-header"},y={key:0},v={key:1},k=["aria-label"],C={key:1,class:"message-body"},B={class:"media"},z={key:0,class:"media-left"},w={class:"media-content"};var S=l(h,[["render",function(e,i,s,n,o,r){const a=t.resolveComponent("b-icon"),l=t.resolveComponent("b-progress");return t.openBlock(),t.createBlock(t.Transition,{name:"fade",persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("article",{class:t.normalizeClass(["message",[e.type,e.size]])},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",g,[e.$slots.header?(t.openBlock(),t.createElementBlock("div",y,[t.renderSlot(e.$slots,"header")])):e.title?(t.openBlock(),t.createElementBlock("p",v,t.toDisplayString(e.title),1)):t.createCommentVNode("v-if",!0),e.closable?(t.openBlock(),t.createElementBlock("button",{key:2,type:"button",class:"delete",onClick:i[0]||(i[0]=(...t)=>e.close&&e.close(...t)),"aria-label":e.ariaCloseLabel},null,8,k)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("section",C,[t.createElementVNode("div",B,[e.computedIcon&&e.hasIcon?(t.openBlock(),t.createElementBlock("div",z,[t.createVNode(a,{icon:e.computedIcon,pack:e.iconPack,class:t.normalizeClass(e.type),both:"",size:e.newIconSize},null,8,["icon","pack","class","size"])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",w,[t.renderSlot(e.$slots,"default")])])])):t.createCommentVNode("v-if",!0),e.progressBar?(t.openBlock(),t.createBlock(l,{key:2,class:"auto-close-progress",value:e.remainingTime-1,max:e.duration/1e3-1,type:e.type,rounded:!1},null,8,["value","max","type"])):t.createCommentVNode("v-if",!0)],2),[[t.vShow,e.isActive]])])),_:3})}]]);const b={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,S)}};e.BMessage=S,e.default=b,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v1.0.1 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v1.0.2 | MIT License | github.com/buefy/buefy */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :