buefy 3.0.2 → 3.0.3

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 (202) hide show
  1. package/dist/buefy.d.ts +19 -4
  2. package/dist/buefy.esm.js +40 -11
  3. package/dist/buefy.esm.min.js +2 -2
  4. package/dist/buefy.js +45 -9
  5. package/dist/buefy.min.js +2 -2
  6. package/dist/cjs/autocomplete.js +1 -1
  7. package/dist/cjs/breadcrumb.js +1 -1
  8. package/dist/cjs/button.js +1 -1
  9. package/dist/cjs/carousel.js +1 -1
  10. package/dist/cjs/checkbox.js +1 -1
  11. package/dist/cjs/clockpicker.js +1 -1
  12. package/dist/cjs/collapse.js +1 -1
  13. package/dist/cjs/colorpicker.js +2 -2
  14. package/dist/cjs/config.js +7 -1
  15. package/dist/cjs/datepicker.js +1 -1
  16. package/dist/cjs/datetimepicker.js +1 -1
  17. package/dist/cjs/dialog.js +7 -2
  18. package/dist/cjs/dropdown.js +1 -1
  19. package/dist/cjs/field.js +1 -1
  20. package/dist/cjs/icon.js +1 -1
  21. package/dist/cjs/image.js +1 -1
  22. package/dist/cjs/{index-DiQy3SCb.js → index-SLOXD6k3.js} +1 -1
  23. package/dist/cjs/index.js +10 -3
  24. package/dist/cjs/input.js +1 -1
  25. package/dist/cjs/loading.js +7 -2
  26. package/dist/cjs/menu.js +1 -1
  27. package/dist/cjs/message.js +1 -1
  28. package/dist/cjs/modal.js +7 -2
  29. package/dist/cjs/navbar.js +1 -1
  30. package/dist/cjs/notification.js +7 -2
  31. package/dist/cjs/numberinput.js +1 -1
  32. package/dist/cjs/pagination.js +1 -1
  33. package/dist/cjs/{plugins-DbyYGVpp.js → plugins-BWKpXmCr.js} +2 -1
  34. package/dist/cjs/progress.js +1 -1
  35. package/dist/cjs/radio.js +1 -1
  36. package/dist/cjs/rate.js +1 -1
  37. package/dist/cjs/select.js +1 -1
  38. package/dist/cjs/sidebar.js +1 -1
  39. package/dist/cjs/skeleton.js +1 -1
  40. package/dist/cjs/slider.js +1 -1
  41. package/dist/cjs/snackbar.js +7 -2
  42. package/dist/cjs/steps.js +1 -1
  43. package/dist/cjs/switch.js +1 -1
  44. package/dist/cjs/table.js +1 -1
  45. package/dist/cjs/tabs.js +1 -1
  46. package/dist/cjs/tag.js +1 -1
  47. package/dist/cjs/taginput.js +1 -1
  48. package/dist/cjs/timepicker.js +1 -1
  49. package/dist/cjs/toast.js +7 -2
  50. package/dist/cjs/tooltip.js +1 -1
  51. package/dist/cjs/upload.js +1 -1
  52. package/dist/components/autocomplete/index.js +1 -1
  53. package/dist/components/autocomplete/index.min.js +1 -1
  54. package/dist/components/breadcrumb/index.js +1 -1
  55. package/dist/components/breadcrumb/index.min.js +1 -1
  56. package/dist/components/button/index.js +1 -1
  57. package/dist/components/button/index.min.js +1 -1
  58. package/dist/components/carousel/index.js +1 -1
  59. package/dist/components/carousel/index.min.js +1 -1
  60. package/dist/components/checkbox/index.js +1 -1
  61. package/dist/components/checkbox/index.min.js +1 -1
  62. package/dist/components/clockpicker/index.js +1 -1
  63. package/dist/components/clockpicker/index.min.js +1 -1
  64. package/dist/components/collapse/index.js +1 -1
  65. package/dist/components/collapse/index.min.js +1 -1
  66. package/dist/components/colorpicker/index.js +1 -1
  67. package/dist/components/colorpicker/index.min.js +1 -1
  68. package/dist/components/datepicker/index.js +1 -1
  69. package/dist/components/datepicker/index.min.js +1 -1
  70. package/dist/components/datetimepicker/index.js +1 -1
  71. package/dist/components/datetimepicker/index.min.js +1 -1
  72. package/dist/components/dialog/index.js +9 -3
  73. package/dist/components/dialog/index.min.js +2 -2
  74. package/dist/components/dropdown/index.js +1 -1
  75. package/dist/components/dropdown/index.min.js +1 -1
  76. package/dist/components/field/index.js +1 -1
  77. package/dist/components/field/index.min.js +1 -1
  78. package/dist/components/icon/index.js +1 -1
  79. package/dist/components/icon/index.min.js +1 -1
  80. package/dist/components/image/index.js +1 -1
  81. package/dist/components/image/index.min.js +1 -1
  82. package/dist/components/input/index.js +1 -1
  83. package/dist/components/input/index.min.js +1 -1
  84. package/dist/components/loading/index.js +9 -3
  85. package/dist/components/loading/index.min.js +2 -2
  86. package/dist/components/menu/index.js +1 -1
  87. package/dist/components/menu/index.min.js +1 -1
  88. package/dist/components/message/index.js +1 -1
  89. package/dist/components/message/index.min.js +1 -1
  90. package/dist/components/modal/index.js +9 -3
  91. package/dist/components/modal/index.min.js +2 -2
  92. package/dist/components/navbar/index.js +1 -1
  93. package/dist/components/navbar/index.min.js +1 -1
  94. package/dist/components/notification/index.js +9 -3
  95. package/dist/components/notification/index.min.js +2 -2
  96. package/dist/components/numberinput/index.js +1 -1
  97. package/dist/components/numberinput/index.min.js +1 -1
  98. package/dist/components/pagination/index.js +1 -1
  99. package/dist/components/pagination/index.min.js +1 -1
  100. package/dist/components/progress/index.js +1 -1
  101. package/dist/components/progress/index.min.js +1 -1
  102. package/dist/components/radio/index.js +1 -1
  103. package/dist/components/radio/index.min.js +1 -1
  104. package/dist/components/rate/index.js +1 -1
  105. package/dist/components/rate/index.min.js +1 -1
  106. package/dist/components/select/index.js +1 -1
  107. package/dist/components/select/index.min.js +1 -1
  108. package/dist/components/sidebar/index.js +1 -1
  109. package/dist/components/sidebar/index.min.js +1 -1
  110. package/dist/components/skeleton/index.js +1 -1
  111. package/dist/components/skeleton/index.min.js +1 -1
  112. package/dist/components/slider/index.js +1 -1
  113. package/dist/components/slider/index.min.js +1 -1
  114. package/dist/components/snackbar/index.js +9 -3
  115. package/dist/components/snackbar/index.min.js +2 -2
  116. package/dist/components/steps/index.js +1 -1
  117. package/dist/components/steps/index.min.js +1 -1
  118. package/dist/components/switch/index.js +1 -1
  119. package/dist/components/switch/index.min.js +1 -1
  120. package/dist/components/table/index.js +1 -1
  121. package/dist/components/table/index.min.js +1 -1
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/tabs/index.min.js +1 -1
  124. package/dist/components/tag/index.js +1 -1
  125. package/dist/components/tag/index.min.js +1 -1
  126. package/dist/components/taginput/index.js +1 -1
  127. package/dist/components/taginput/index.min.js +1 -1
  128. package/dist/components/timepicker/index.js +1 -1
  129. package/dist/components/timepicker/index.min.js +1 -1
  130. package/dist/components/toast/index.js +9 -3
  131. package/dist/components/toast/index.min.js +2 -2
  132. package/dist/components/tooltip/index.js +1 -1
  133. package/dist/components/tooltip/index.min.js +1 -1
  134. package/dist/components/upload/index.js +1 -1
  135. package/dist/components/upload/index.min.js +1 -1
  136. package/dist/css/buefy.css +4 -5
  137. package/dist/css/buefy.css.map +1 -1
  138. package/dist/css/buefy.min.css +1 -1
  139. package/dist/css/versions/buefy-no-reset.css +4 -5
  140. package/dist/css/versions/buefy-no-reset.css.map +1 -1
  141. package/dist/css/versions/buefy-no-reset.min.css +1 -1
  142. package/dist/css/versions/buefy-standalone.css +4 -5
  143. package/dist/css/versions/buefy-standalone.css.map +1 -1
  144. package/dist/css/versions/buefy-standalone.min.css +1 -1
  145. package/dist/esm/autocomplete.js +1 -1
  146. package/dist/esm/breadcrumb.js +1 -1
  147. package/dist/esm/button.js +1 -1
  148. package/dist/esm/carousel.js +1 -1
  149. package/dist/esm/checkbox.js +1 -1
  150. package/dist/esm/clockpicker.js +1 -1
  151. package/dist/esm/collapse.js +1 -1
  152. package/dist/esm/colorpicker.js +2 -2
  153. package/dist/esm/config.js +6 -2
  154. package/dist/esm/datepicker.js +1 -1
  155. package/dist/esm/datetimepicker.js +1 -1
  156. package/dist/esm/dialog.js +8 -4
  157. package/dist/esm/dropdown.js +1 -1
  158. package/dist/esm/field.js +1 -1
  159. package/dist/esm/icon.js +1 -1
  160. package/dist/esm/image.js +1 -1
  161. package/dist/esm/{index-CQegEsxK.js → index-BE58-KfV.js} +1 -1
  162. package/dist/esm/index.js +12 -11
  163. package/dist/esm/input.js +1 -1
  164. package/dist/esm/loading.js +8 -4
  165. package/dist/esm/menu.js +1 -1
  166. package/dist/esm/message.js +1 -1
  167. package/dist/esm/modal.js +8 -4
  168. package/dist/esm/navbar.js +1 -1
  169. package/dist/esm/notification.js +8 -4
  170. package/dist/esm/numberinput.js +1 -1
  171. package/dist/esm/pagination.js +1 -1
  172. package/dist/esm/{plugins-B172kuKE.js → plugins-1tLsuIZF.js} +2 -1
  173. package/dist/esm/progress.js +1 -1
  174. package/dist/esm/radio.js +1 -1
  175. package/dist/esm/rate.js +1 -1
  176. package/dist/esm/select.js +1 -1
  177. package/dist/esm/sidebar.js +1 -1
  178. package/dist/esm/skeleton.js +1 -1
  179. package/dist/esm/slider.js +1 -1
  180. package/dist/esm/snackbar.js +8 -4
  181. package/dist/esm/steps.js +1 -1
  182. package/dist/esm/switch.js +1 -1
  183. package/dist/esm/table.js +1 -1
  184. package/dist/esm/tabs.js +1 -1
  185. package/dist/esm/tag.js +1 -1
  186. package/dist/esm/taginput.js +1 -1
  187. package/dist/esm/timepicker.js +1 -1
  188. package/dist/esm/toast.js +8 -4
  189. package/dist/esm/tooltip.js +1 -1
  190. package/dist/esm/upload.js +1 -1
  191. package/package.json +2 -3
  192. package/src/components/dialog/index.ts +9 -3
  193. package/src/components/loading/index.ts +9 -3
  194. package/src/components/modal/index.ts +9 -3
  195. package/src/components/notification/index.ts +9 -3
  196. package/src/components/snackbar/index.ts +9 -3
  197. package/src/components/toast/index.ts +9 -3
  198. package/src/index.ts +9 -9
  199. package/src/scss/buefy.scss +0 -1
  200. package/src/scss/components/_dropdown.scss +6 -6
  201. package/src/utils/ConfigComponent.ts +13 -1
  202. package/src/utils/plugins.ts +3 -2
package/dist/cjs/toast.js CHANGED
@@ -7,7 +7,7 @@ var config = require('./config-DR826Ki2.js');
7
7
  var NoticeMixin = require('./NoticeMixin--3RjH43z.js');
8
8
  var _pluginVue_exportHelper = require('./_plugin-vue_export-helper-Die8u8yB.js');
9
9
  var helpers = require('./helpers.js');
10
- var plugins = require('./plugins-DbyYGVpp.js');
10
+ var plugins = require('./plugins-BWKpXmCr.js');
11
11
 
12
12
  const Toast$1 = vue.defineComponent({
13
13
  name: "BToast",
@@ -151,12 +151,17 @@ class ToastProgrammatic {
151
151
  return vueInstance.mount(container);
152
152
  }
153
153
  }
154
+ const toastInjectionKey = Symbol("Buefy Toast");
155
+ function useToast() {
156
+ return vue.inject(toastInjectionKey);
157
+ }
154
158
  const Plugin = {
155
159
  install(Vue) {
156
- plugins.registerComponentProgrammatic(Vue, "toast", new ToastProgrammatic(Vue));
160
+ plugins.registerComponentProgrammatic(Vue, "toast", new ToastProgrammatic(Vue), toastInjectionKey);
157
161
  }
158
162
  };
159
163
 
160
164
  exports.BToast = Toast;
161
165
  exports.ToastProgrammatic = ToastProgrammatic;
162
166
  exports.default = Plugin;
167
+ exports.useToast = useToast;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var Tooltip = require('./Tooltip-Cgighv0j.js');
6
- var plugins = require('./plugins-DbyYGVpp.js');
6
+ var plugins = require('./plugins-BWKpXmCr.js');
7
7
  require('vue');
8
8
  require('./config-DR826Ki2.js');
9
9
  require('./helpers.js');
@@ -7,7 +7,7 @@ var CompatFallthroughMixin = require('./CompatFallthroughMixin-hhK0Gkhr.js');
7
7
  var FormElementMixin = require('./FormElementMixin-DavX4iOv.js');
8
8
  var ssr = require('./ssr-DVRFTu_P.js');
9
9
  var _pluginVue_exportHelper = require('./_plugin-vue_export-helper-Die8u8yB.js');
10
- var plugins = require('./plugins-DbyYGVpp.js');
10
+ var plugins = require('./plugins-BWKpXmCr.js');
11
11
  require('./config-DR826Ki2.js');
12
12
 
13
13
  const Upload$1 = vue.defineComponent({
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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 v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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).Autocomplete={},e.Vue)}(this,(function(e,t){"use strict";function o(e,t){return t.split(".").reduce(((e,t)=>e?e[t]:null),e)}function i(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function s(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const o=document.createElement("div");return t.appendChild(o),o.appendChild(e),document.body.appendChild(t),t}let n,l="mdi",r=null,a="on",c=!0,d=!0,h=!0,u=!0;var p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>d}},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:o,id:i}=e;return((e,t)=>{var o={};for(var i in e)m.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&p)for(var i of p(e))t.indexOf(i)<0&&f.call(e,i)&&(o[i]=e[i]);return o})(e,["style","class","id"])}return this.$attrs}}}),y=(e,t)=>{const o=e.__vccOpts||e;for(const[e,i]of t)o[e]=i;return o};const w=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>h},validationMessage:String,locale:{type:[String,Array],default:()=>n},statusIcon:{type:Boolean,default:()=>u}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||l,_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)}}}),k={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},v=()=>{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 V=y(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:k,fa:v(),fas:v(),far:v(),fad:v(),fab:v(),fal:v(),"fa-solid":v(),"fa-regular":v(),"fa-light":v(),"fa-thin":v(),"fa-duotone":v(),"fa-brands":v()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||l},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||r}},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,o,i,s,n,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)}]]),B=t.defineComponent({name:"BInput",components:{BIcon:V},mixins:[g,w],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>c},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||a,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 C=["type","autocomplete","maxlength"],S=["maxlength"],$=["type","autocomplete","maxlength"],b=["maxlength"];var x=y(B,[["render",function(e,o,i,s,n,l){const r=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":o[0]||(o[0]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[1]||(o[1]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[2]||(o[2]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[3]||(o[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[4]||(o[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,C)),[[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":o[5]||(o[5]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[6]||(o[6]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[7]||(o[7]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[8]||(o[8]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[9]||(o[9]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,S)),[[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":o[10]||(o[10]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[11]||(o[11]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[12]||(o[12]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[13]||(o[13]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[14]||(o[14]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,$)),[[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":o[15]||(o[15]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[16]||(o[16]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[17]||(o[17]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[18]||(o[18]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[19]||(o[19]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,b)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(r,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:o[20]||(o[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(r,{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)}]]),I=t.defineComponent({name:"BAutocomplete",components:{BInput:x},mixins:[g,w],props:{modelValue:[Number,String,null],data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:{type:Function},checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:()=>["Tab","Enter"]},selectableHeader:Boolean,selectableFooter:Boolean,autocomplete:String},emits:{active:e=>!0,blur:e=>!0,focus:e=>!0,"icon-click":e=>!0,"icon-right-click":e=>!0,"infinite-scroll":()=>!0,select:(e,t)=>!0,"select-footer":e=>!0,"select-header":e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.modelValue,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0,timeOutID:void 0}},computed:{computedData(){const{groupField:e,groupOptions:t}=this;if(e){if(t){const i=[];return this.data.forEach((s=>{const n=o(s,e),l=o(s,t);i.push({group:n,items:l})})),i}{const t={};this.data.forEach((i=>{const s=o(i,e);t[s]||(t[s]=[]),t[s].push(i)}));const i=[];return Object.keys(t).forEach((e=>{i.push({group:e,items:t[e]})})),i}}return[{items:this.data}]},isEmpty(){return!this.computedData||!this.computedData.some((e=>e.items&&e.items.length))},whiteList(){var e;this.computedData;const t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),null!=this.$refs.dropdown){const e=this.$refs.dropdown.querySelectorAll("*");for(const o of e)t.push(o)}if((null==(e=this.$parent)?void 0:e.$data)._isTaginput){t.push(this.$parent.$el);const e=this.$parent.$el.querySelectorAll("*");for(const o of e)t.push(o)}return t},hasDefaultSlot(){return!!this.$slots.default},hasGroupSlot(){return!!this.$slots.group},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return!!this.clearable||this.iconRightClickable},contentStyle(){return{maxHeight:(e=this.maxHeight,(void 0===e?null:isNaN(+e)?`${e}`:e+"px")||void 0)};var e}},watch:{isActive(e){"auto"===this.dropdownPosition&&(e?this.calcDropdownInViewportVertical():this.timeOutID=setTimeout((()=>{this.calcDropdownInViewportVertical()}),100)),this.$nextTick((()=>{this.$emit("active",e)}))},checkInfiniteScroll(e){if(!this.$refs.dropdown)return;const t=this.$refs.dropdown.querySelector(".dropdown-content");t&&(!0!==e?t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll):t.addEventListener("scroll",this.checkIfReachedTheEndOfScroll))},newValue(e){this.$emit("update:modelValue",e);const t=this.getValue(this.selected);null!=t&&t!==e&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&""===e||(this.isActive=""!==e&&null!=e)},modelValue(e){this.newValue=e},keepFirst(e){this.ariaAutocomplete=e?"both":"list"},data(){if(this.keepFirst)this.$nextTick((()=>{this.isActive?this.selectFirstOption(this.computedData):this.setHovered(null)}));else if(this.hovered){const e=this.getValue(this.hovered);this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]).some((t=>this.getValue(t)===e))||this.setHovered(null)}},appendToBody(e,t){e&&!t?this.isActive&&this.$refs.dropdown&&!this.$data._bodyEl&&(this.$data._bodyEl=s(this.$refs.dropdown),this.updateAppendToBody()):!e&&t&&this.$data._bodyEl&&(i(this.$data._bodyEl),this.$data._bodyEl=void 0)}},methods:{setHovered(e){void 0!==e&&(this.hovered=e)},setSelected(e,t=!0,o){void 0!==e&&(this.selected=e,this.$emit("select",this.selected,o),null!==this.selected&&(this.clearOnSelect?this.newValue="":this.newValue=this.getValue(this.selected),this.setHovered(null)),t&&this.$nextTick((()=>{this.isActive=!1})),this.checkValidity())},selectFirstOption(e){this.$nextTick((()=>{const t=e.filter((e=>e.items&&e.items.length));if(t.length){const e=t[0].items[0];this.setHovered(e)}else this.setHovered(null)}))},findHoveredIndex(e){if(null===this.hovered||void 0===this.hovered)return-1;const t=e.indexOf(this.hovered);if(-1!==t)return t;const o=this.getValue(this.hovered);return null==o?-1:e.findIndex((e=>null==e?null==o:this.getValue(e)===o))},keydown(e){const{key:t}=e;if("Enter"===t&&e.preventDefault(),"Escape"!==t&&"Tab"!==t||(this.isActive=!1),this.confirmKeys.indexOf(t)>=0){","===t&&e.preventDefault();const o=!this.keepOpen||"Tab"===t;if(null===this.hovered)return void this.checkIfHeaderOrFooterSelected(e,null,o);this.setSelected(this.hovered,o,e)}},selectHeaderOrFoterByClick(e,t){this.checkIfHeaderOrFooterSelected(e,{origin:t})},checkIfHeaderOrFooterSelected(e,t,o=!0){this.selectableHeader&&(this.headerHovered||t&&"header"===t.origin)&&(this.$emit("select-header",e),this.headerHovered=!1,t&&this.setHovered(null),o&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||t&&"footer"===t.origin)&&(this.$emit("select-footer",e),this.footerHovered=!1,t&&this.setHovered(null),o&&(this.isActive=!1))},clickedOutside(e){const t=null!=(o=this).$root&&"shadowRoot"in o.$root.$options?e.composedPath()[0]:e.target;var o;!this.hasFocus&&this.whiteList.indexOf(t)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue(e){if(null!==e)return void 0!==this.customFormatter?this.customFormatter(e):"object"==typeof e?o(e,this.field):e},checkIfReachedTheEndOfScroll(){const e=this.$refs.dropdown.querySelector(".dropdown-content"),t=this.hasFooterSlot?e.querySelectorAll("div.dropdown-footer")[0].clientHeight:0;e.clientHeight!==e.scrollHeight&&e.scrollTop+e.parentElement.clientHeight+t>=e.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick((()=>{var e;if(null==this.$refs.dropdown)return;const t=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=t.top>=0&&t.bottom<=((null==window?void 0:window.innerHeight)||(null==(e=null==document?void 0:document.documentElement)?void 0:e.clientHeight)),this.appendToBody&&this.updateAppendToBody()}))},keyArrows(e){const t="down"===e?1:-1;if(this.isActive){const e=this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]);let o;this.hasHeaderSlot&&this.selectableHeader&&e.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&e.push(void 0),o=this.headerHovered?0+t:this.footerHovered?e.length-1+t:this.findHoveredIndex(e)+t,o=o>e.length-1?e.length-1:o,o=o<0?0:o,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(void 0!==e[o]?e[o]:null),this.hasFooterSlot&&this.selectableFooter&&o===e.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&0===o&&(this.headerHovered=!0);const i=this.$refs.dropdown.querySelector(".dropdown-content");let s="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(s+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(s+=",div.dropdown-footer");const n=i.querySelectorAll(s)[o];if(!n)return;const l=i.scrollTop,r=i.scrollTop+i.clientHeight-n.clientHeight;n.offsetTop<l?i.scrollTop=n.offsetTop:n.offsetTop>=r&&(i.scrollTop=n.offsetTop-i.clientHeight+n.clientHeight)}else this.isActive=!0},focused(e){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(){const e=this.getValue(this.selected);null!=e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(e){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",e)},checkValidity(){this.useHtml5Validation&&this.$nextTick((()=>{this.checkHtml5Validity()}))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$parent.$data._isTaginput?this.$parent.$el:this.$refs.input.$el;if(e&&t){this.$data._bodyEl||(this.$data._bodyEl=s(e));const o=this.$data._bodyEl;o.classList.forEach((e=>o.classList.remove(e))),o.classList.add("autocomplete"),o.classList.add("control"),this.expanded&&o.classList.add("is-expanded");const i=t.getBoundingClientRect();let n=i.top+window.scrollY;const l=i.left+window.scrollX;this.isOpenedTop?n-=e.clientHeight:n+=t.clientHeight,this.style={position:"absolute",top:`${n}px`,left:`${l}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.addEventListener("scroll",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").addEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&(this.$data._bodyEl=s(this.$refs.dropdown),this.updateAppendToBody())},beforeUnmount(){if("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.removeEventListener("scroll",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&this.$data._bodyEl&&i(this.$data._bodyEl),clearTimeout(this.timeOutID)}});const F={key:1,class:"has-text-weight-bold"},E=["onClick"],T={key:1},H={key:1,class:"dropdown-item is-disabled"};var z=y(I,[["render",function(e,o,i,s,n,l){const r=t.resolveComponent("b-input");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["autocomplete control",{"is-expanded":e.expanded}]},e.rootAttrs),[t.createVNode(r,t.mergeProps({modelValue:e.newValue,"onUpdate:modelValue":o[0]||(o[0]=t=>e.newValue=t),ref:"input",type:e.type,size:e.size,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-right":e.newIconRight,"icon-right-clickable":e.newIconRightClickable,"icon-pack":e.iconPack,maxlength:e.maxlength,autocomplete:e.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":e.ariaAutocomplete},e.fallthroughAttrs,{"onUpdate:modelValue":e.onInput,onFocus:e.focused,onBlur:e.onBlur,onKeydown:[e.keydown,o[1]||(o[1]=t.withKeys(t.withModifiers((t=>e.keyArrows("up")),["prevent"]),["up"])),o[2]||(o[2]=t.withKeys(t.withModifiers((t=>e.keyArrows("down")),["prevent"]),["down"]))],onIconRightClick:e.rightIconClick,onIconClick:o[3]||(o[3]=t=>e.$emit("icon-click",t))}),null,16,["modelValue","type","size","loading","rounded","icon","icon-right","icon-right-clickable","icon-pack","maxlength","autocomplete","aria-autocomplete","onUpdate:modelValue","onFocus","onBlur","onKeydown","onIconRightClick"]),t.createVNode(t.Transition,{name:"fade",persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["dropdown dropdown-menu",{"is-opened-top":e.isOpenedTop&&!e.appendToBody}]),style:t.normalizeStyle(e.style),ref:"dropdown"},[t.withDirectives(t.createElementVNode("div",{class:"dropdown-content",style:t.normalizeStyle(e.contentStyle)},[e.hasHeaderSlot?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["dropdown-item dropdown-header",{"is-hovered":e.headerHovered}]),role:"button",tabindex:"0",onClick:o[4]||(o[4]=t=>e.selectHeaderOrFoterByClick(t,"header"))},[t.renderSlot(e.$slots,"header")],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedData,((o,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[o.group?(t.openBlock(),t.createElementBlock("div",{key:i+"group",class:"dropdown-item"},[e.hasGroupSlot?t.renderSlot(e.$slots,"group",{key:0,group:o.group,index:i}):(t.openBlock(),t.createElementBlock("span",F,t.toDisplayString(o.group),1))])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.items,((o,s)=>(t.openBlock(),t.createElementBlock("a",{key:i+":"+s,class:t.normalizeClass(["dropdown-item",{"is-hovered":o===e.hovered}]),role:"button",tabindex:"0",onClick:t.withModifiers((t=>e.setSelected(o,!e.keepOpen,t)),["stop"])},[e.hasDefaultSlot?t.renderSlot(e.$slots,"default",{key:0,option:o,index:s}):(t.openBlock(),t.createElementBlock("span",T,t.toDisplayString(e.getValue(o)),1))],10,E)))),128))],64)))),256)),e.isEmpty&&e.hasEmptySlot?(t.openBlock(),t.createElementBlock("div",H,[t.renderSlot(e.$slots,"empty")])):t.createCommentVNode("v-if",!0),e.hasFooterSlot?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["dropdown-item dropdown-footer",{"is-hovered":e.footerHovered}]),role:"button",tabindex:"0",onClick:o[5]||(o[5]=t=>e.selectHeaderOrFoterByClick(t,"footer"))},[t.renderSlot(e.$slots,"footer")],2)):t.createCommentVNode("v-if",!0)],4),[[t.vShow,e.isActive]])],6),[[t.vShow,e.isActive&&(!e.isEmpty||e.hasEmptySlot||e.hasHeaderSlot||e.hasFooterSlot)]])])),_:3})],16)}]]);const O={install(e){((e,t)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)})(e,z)}};e.BAutocomplete=z,e.default=O,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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 v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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).Breadcrumb={},e.Vue)}(this,(function(e,t){"use strict";let r=!0,o="a",n="is-left",s="",a="is-medium";var l=(e,t)=>{const r=e.__vccOpts||e;for(const[e,o]of t)r[e]=o;return r};var i=l(t.defineComponent({name:"BBreadcrumb",props:{align:{type:String,default:()=>n},separator:{type:String,default:()=>s},size:{type:String,default:()=>a}},computed:{breadcrumbClasses(){return["breadcrumb",this.align,this.separator,this.size]}}}),[["render",function(e,r,o,n,s,a){return t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(e.breadcrumbClasses)},[t.createElementVNode("ul",null,[t.renderSlot(e.$slots,"default")])],2)}]]),c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,d=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>r}},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:r,id:o}=e;return((e,t)=>{var r={};for(var o in e)u.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&c)for(var o of c(e))t.indexOf(o)<0&&p.call(e,o)&&(r[o]=e[o]);return r})(e,["style","class","id"])}return this.$attrs}}});var f=l(t.defineComponent({name:"BBreadcrumbItem",mixins:[d],props:{tag:{type:[String,Object],default:()=>o},active:Boolean}}),[["render",function(e,r,o,n,s,a){return t.openBlock(),t.createElementBlock("li",t.mergeProps({class:{"is-active":e.active}},e.rootAttrs),[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.normalizeProps(t.guardReactiveProps(e.fallthroughAttrs)),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16))],16)}]]);const m=(e,t,r)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)},h={install(e){m(e,i),m(e,f)}};e.BBreadcrumb=i,e.BBreadcrumbItem=f,e.default=h,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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 v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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).Button={},e.Vue)}(this,(function(e,n){"use strict";let t={defaultIconPack:"mdi",defaultIconComponent:null,defaultButtonRounded:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};const i={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},o=()=>{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 s=(e,n)=>{const t=e.__vccOpts||e;for(const[e,i]of n)t[e]=i;return t};var c=s(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:i,fa:o(),fas:o(),far:o(),fad:o(),fab:o(),fal:o(),"fa-solid":o(),"fa-regular":o(),"fa-light":o(),"fa-thin":o(),"fa-duotone":o(),"fa-brands":o()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||t.defaultIconPack},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.defaultIconComponent}},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,t,i,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 l=["button","submit","reset"];var a=n.defineComponent({name:"BButton",components:{BIcon:c},inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>t.defaultButtonRounded},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:e=>l.indexOf(e)>=0},tag:{type:[String,Object],default:"button",validator:e=>"object"==typeof e||t.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 r={key:1},u={key:2};var d=s(a,[["render",function(e,t,i,o,s,c){const l=n.resolveComponent("b-icon");return n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.computedTag),n.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:n.withCtx((()=>[e.iconLeft?(n.openBlock(),n.createBlock(l,{key:0,pack:e.iconPack,icon:e.iconLeft,size:e.iconSize},null,8,["pack","icon","size"])):n.createCommentVNode("v-if",!0),e.label?(n.openBlock(),n.createElementBlock("span",r,n.toDisplayString(e.label),1)):e.$slots.default?(n.openBlock(),n.createElementBlock("span",u,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("v-if",!0),e.iconRight?(n.openBlock(),n.createBlock(l,{key:3,pack:e.iconPack,icon:e.iconRight,size:e.iconSize},null,8,["pack","icon","size"])):n.createCommentVNode("v-if",!0)])),_:3},16,["type","class"])}]]);const f={install(e){((e,n)=>{const t=n.name;if(null==t)throw new Error("Buefy.registerComponent: missing component name");e.component(t,n)})(e,d)}};e.BButton=d,e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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 v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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).Carousel={},e.Vue)}(this,(function(e,t){"use strict";let i="mdi",s=null,r="chevron-left",o="chevron-right",n=3500,a=null,l=!0,c=!0,h=null;const d=Math.sign||function(e){return e<0?-1:e>0?1:0};function u(e,t){return(e&t)===t}function p(e,t){return(e%t+t)%t}function m(e,t,i){return Math.max(t,Math.min(i,e))}const f={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},g=()=>{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 v=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};var y=v(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:f,fa:g(),fas:g(),far:g(),fad:g(),fab:g(),fal:g(),"fa-solid":g(),"fa-regular":g(),"fa-light":g(),"fa-thin":g(),"fa-duotone":g(),"fa-brands":g()}[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 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,s,r,o,n){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)}]]),w=Object.defineProperty,b=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,S=(e,t,i)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var I=t.defineComponent({name:"BCarousel",components:{BIcon:y},mixins:[((e,t)=>{const i={provide(){return{["b"+e]:this}}};return u(t,1)&&(i.data=function(){return((e,t)=>{for(var i in t||(t={}))C.call(t,i)&&S(e,i,t[i]);if(b)for(var i of b(t))k.call(t,i)&&S(e,i,t[i]);return e})({childItems:[]},u(t,3)?{nextIndex:0}:{})},i.methods={_registerItem(e){u(t,3)&&(e.dynamicIndex=this.nextIndex,++this.nextIndex),this.childItems.push(e)},_unregisterItem(e){this.childItems=this.childItems.filter((t=>t.uniqueValue!==e.uniqueValue))}},u(t,3)&&(i.computed={sortedItems(){return this.childItems.slice().sort(((e,t)=>e.index-t.index))}})),i})("carousel",3)],props:{modelValue:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:()=>r},iconNext:{type:String,default:()=>o},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},emits:{change:e=>!0,click:()=>!0,"update:modelValue":e=>!0},data(){return{transition:"next",activeChild:this.modelValue||0,isPause:!1,dragX:!1,timer:void 0}},computed:{indicatorClasses(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev(){return this.repeat||0!==this.activeChild},hasNext(){return this.repeat||this.activeChild<this.childItems.length-1},activeChildIndex(){const e=this.sortedItems[this.activeChild];return null!=e?e.index:void 0}},watch:{modelValue(e){this.changeActive(e)},sortedItems(e){this.activeChild>=e.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay(e){e?this.startTimer():this.pauseTimer()},repeat(e){e&&this.startTimer()}},methods:{startTimer(){this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((()=>{!this.repeat&&this.activeChild>=this.childItems.length-1?this.pauseTimer():this.next()}),this.interval||n))},pauseTimer(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=void 0)},restartTimer(){this.pauseTimer(),this.startTimer()},checkPause(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive(e,t=0){this.activeChild===e||isNaN(e)||(t=t||e-this.activeChild,e=this.repeat?p(e,this.childItems.length):m(e,0,this.childItems.length-1),this.transition=t>0?"prev":"next",this.activeChild=e,e!==this.modelValue&&this.$emit("update:modelValue",e),this.restartTimer(),this.$emit("change",e))},modeChange(e,t){if(this.indicatorMode===e)return this.changeActive(t)},prev(){this.changeActive(this.activeChild-1,-1)},next(){this.changeActive(this.activeChild+1,1)},dragStart(e){if(!this.hasDrag||!e.target.draggable)return;const t=e.touches;this.dragX=t?e.changedTouches[0].pageX:e.pageX,t?this.pauseTimer():e.preventDefault()},dragEnd(e){if(!1===this.dragX)return;const t=e.touches,i=(t?e.changedTouches[0].pageX:e.pageX)-this.dragX;Math.abs(i)>30?i<0?this.next():this.prev():(e.target.click(),this.sortedItems[this.activeChild].$emit("click"),this.$emit("click")),t&&this.startTimer(),this.dragX=!1}},mounted(){this.startTimer()},beforeUnmount(){this.pauseTimer()}});const z=["value","max"],x={key:1,class:"carousel-pause"},B=["onMouseover","onClick"];var E=v(I,[["render",function(e,i,s,r,o,n){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel",{"is-overlay":e.overlay}]),onMouseenter:i[4]||(i[4]=(...t)=>e.checkPause&&e.checkPause(...t)),onMouseleave:i[5]||(i[5]=(...t)=>e.startTimer&&e.startTimer(...t))},[e.progress?(t.openBlock(),t.createElementBlock("progress",{key:0,class:t.normalizeClass(["progress",e.progressType]),value:e.activeChild,max:e.childItems.length-1},t.toDisplayString(e.childItems.length-1),11,z)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:"carousel-items",onMousedown:i[0]||(i[0]=(...t)=>e.dragStart&&e.dragStart(...t)),onMouseup:i[1]||(i[1]=(...t)=>e.dragEnd&&e.dragEnd(...t)),onTouchstart:i[2]||(i[2]=t.withModifiers(((...t)=>e.dragStart&&e.dragStart(...t)),["stop"])),onTouchend:i[3]||(i[3]=t.withModifiers(((...t)=>e.dragEnd&&e.dragEnd(...t)),["stop"]))},[t.renderSlot(e.$slots,"default"),e.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["carousel-arrow",{"is-hovered":e.arrowHover}])},[t.withDirectives(t.createVNode(a,{class:"has-icons-left",onClick:e.prev,pack:e.iconPack,icon:e.iconPrev,size:e.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasPrev]]),t.withDirectives(t.createVNode(a,{class:"has-icons-right",onClick:e.next,pack:e.iconPack,icon:e.iconNext,size:e.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasNext]])],2)):t.createCommentVNode("v-if",!0)],32),e.autoplay&&e.pauseHover&&e.pauseInfo&&e.isPause?(t.openBlock(),t.createElementBlock("div",x,[t.createElementVNode("span",{class:t.normalizeClass(["tag",e.pauseInfoType])},t.toDisplayString(e.pauseText),3)])):t.createCommentVNode("v-if",!0),e.withCarouselList&&!e.indicator?t.renderSlot(e.$slots,"list",{key:2,active:e.activeChild,switch:e.changeActive}):t.createCommentVNode("v-if",!0),e.indicator?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(["carousel-indicator",e.indicatorClasses])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortedItems,((i,s)=>(t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["indicator-item",{"is-active":i.isActive}]),onMouseover:t=>e.modeChange("hover",s),onClick:t=>e.modeChange("click",s),key:i.uniqueValue},[t.renderSlot(e.$slots,"indicators",{i:s},(()=>[t.createElementVNode("span",{class:t.normalizeClass(["indicator-style",e.indicatorStyle])},null,2)]))],42,B)))),128))],2)):t.createCommentVNode("v-if",!0),e.overlay?t.renderSlot(e.$slots,"overlay",{key:4}):t.createCommentVNode("v-if",!0)],34)}]]),P=Object.defineProperty,T=Object.defineProperties,V=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,A=(e,t,i)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,L=(e,t)=>{for(var i in t||(t={}))$.call(t,i)&&A(e,i,t[i]);if(N)for(var i of N(t))O.call(t,i)&&A(e,i,t[i]);return e},W=(e,t)=>T(e,V(t));var M=t.defineComponent({name:"BCarouselItem",mixins:[((e,t)=>{const i={inject:{parent:{from:"b"+e,default:""}},props:{value:{type:String,default:null}},computed:{uniqueValue(){return null!=this.value?this.value:this.$.uid}},created(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!u(t,2))throw new Error("You should wrap "+this.$options.name+" in a "+e)},beforeUnmount(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return u(t,1)&&(i.props=W(L({},i.props),{order:{type:Number,required:!1}}),i.data=()=>({dynamicIndex:void 0}),i.computed=W(L({},i.computed),{index(){return null!=this.order?this.order:this.dynamicIndex}})),i})("carousel",1)],data:()=>({transitionName:null}),computed:{transition(){return"fade"===this.parent.animated?"fade":this.parent.transition?"slide-"+this.parent.transition:void 0},isActive(){return this.parent.activeChildIndex===this.index}}});const j={class:"carousel-item"};var F=v(M,[["render",function(e,i,s,r,o,n){return t.openBlock(),t.createBlock(t.Transition,{name:e.transition,persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",j,[t.renderSlot(e.$slots,"default")],512),[[t.vShow,e.isActive]])])),_:3},8,["name"])}]]),X=Object.defineProperty,D=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,R=(e,t,i)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;const H=["square","1by1","5by4","4by3","3by2","5by3","16by9","b2y1","3by1","4by5","3by4","2by3","3by5","9by16","1by2","1by3"];function U(e){return-1!==H.indexOf(e)}var Q=t.defineComponent({name:"BImage",props:{src:String,alt:String,srcFallback:String,webpFallback:{type:String,default:()=>a},lazy:{type:Boolean,default:()=>l},responsive:{type:Boolean,default:()=>c},ratio:{type:String,default:()=>h},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&&U(this.ratio)&&(e[`is-${this.ratio}`]=!0),e},figureStyles(){if(this.hasRatio&&!U(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={}))_.call(t,i)&&R(e,i,t[i]);if(D)for(var i of D(t))q.call(t,i)&&R(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 G={key:0},J=["srcset","src","alt","width","sizes","loading"],K=["src","alt"],Y={key:1};var Z=v(Q,[["render",function(e,i,s,r,o,n){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",G,[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,J)):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,K)])):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)}]]),ee=Object.defineProperty,te=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,re=(e,t,i)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,oe=(e,t)=>{for(var i in t||(t={}))ie.call(t,i)&&re(e,i,t[i]);if(te)for(var i of te(t))se.call(t,i)&&re(e,i,t[i]);return e},ne=t.defineComponent({name:"BCarouselList",components:{BIcon:y,BImage:Z},props:{data:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},scrollValue:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:()=>r},iconNext:{type:String,default:()=>o},breakpoints:{type:Object,default:()=>({})}},emits:{switch:e=>!0,"update:modelValue":e=>!0,"updated:scroll":e=>!0},data(){return{activeItem:this.modelValue,scrollIndex:this.asIndicator?this.scrollValue:this.modelValue,delta:0,dragX:!1,hold:0,windowWidth:0,touch:!1,observer:null,refresh_:0}},computed:{dragging(){return!1!==this.dragX},listClass(){return[{"has-grayscale":this.settings.hasGrayscale,"has-opacity":this.settings.hasOpacity,"is-dragging":this.dragging}]},itemStyle(){return`width: ${this.itemWidth}px;`},translation(){return-m(this.delta+this.scrollIndex*this.itemWidth,0,(this.data.length-this.settings.itemsToShow)*this.itemWidth)},total(){return this.data.length-this.settings.itemsToShow},hasPrev(){return this.settings.repeat||this.scrollIndex>0},hasNext(){return this.settings.repeat||this.scrollIndex<this.total},breakpointKeys(){return Object.keys(this.breakpoints).sort(((e,t)=>+t-+e))},settings(){const e=this.breakpointKeys.filter((e=>this.windowWidth>=+e))[0];return e?oe(oe({},this.$props),this.breakpoints[+e]):this.$props},itemWidth(){if(this.windowWidth){this.refresh_;return this.$el.getBoundingClientRect().width/this.settings.itemsToShow}return 0}},watch:{modelValue(e){this.switchTo(this.asIndicator?e-(this.itemsToShow-3)/2:e),this.activeItem!==e&&(this.activeItem=m(e,0,this.data.length-1))},scrollValue(e){this.switchTo(e)}},methods:{resized(){this.windowWidth=window.innerWidth},switchTo(e){e===this.scrollIndex||isNaN(e)||(this.settings.repeat&&(e=p(e,this.total+1)),e=m(e,0,this.total),this.scrollIndex=e,this.asIndicator||this.modelValue===e?this.scrollIndex!==e&&this.$emit("updated:scroll",e):this.$emit("update:modelValue",e))},next(){this.switchTo(this.scrollIndex+this.settings.itemsToList)},prev(){this.switchTo(this.scrollIndex-this.settings.itemsToList)},checkAsIndicator(e,t){if(!this.asIndicator)return;const i=t.changedTouches?t.changedTouches[0].clientX:t.clientX;this.hold-Date.now()>2e3||Math.abs(+this.dragX-i)>10||(this.dragX=!1,this.hold=0,t.preventDefault(),this.activeItem=e,this.$emit("switch",e))},dragStart(e){this.dragging||!this.settings.hasDrag||0!==e.button&&"touchstart"!==e.type||(this.hold=Date.now(),this.touch=!!e.touches,this.dragX=this.touch?e.touches[0].clientX:e.clientX,window.addEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.addEventListener(this.touch?"touchend":"mouseup",this.dragEnd))},dragMove(e){if(!this.dragging)return;const t=e.touches?(e.changedTouches[0]||e.touches[0]).clientX:e.clientX;this.delta=+this.dragX-t,e.touches||e.preventDefault()},dragEnd(){if(this.dragging||this.hold){if(this.hold){const e=d(this.delta),t=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.scrollIndex+e*t)}this.delta=0,this.dragX=!1,window.removeEventListener(this.touch?"touchmove":"mousemove",this.dragMove),window.removeEventListener(this.touch?"touchend":"mouseup",this.dragEnd)}},refresh(){this.$nextTick((()=>{this.refresh_++}))}},mounted(){if("undefined"!=typeof window&&(window.ResizeObserver&&(this.observer=new ResizeObserver(this.refresh),this.observer.observe(this.$el)),window.addEventListener("resize",this.resized),document.addEventListener("animationend",this.refresh),document.addEventListener("transitionend",this.refresh),document.addEventListener("transitionstart",this.refresh),this.resized()),this.$attrs.config)throw new Error("The config prop was removed, you need to use v-bind instead")},beforeUnmount(){"undefined"!=typeof window&&(window.ResizeObserver&&this.observer.disconnect(),window.removeEventListener("resize",this.resized),document.removeEventListener("animationend",this.refresh),document.removeEventListener("transitionend",this.refresh),document.removeEventListener("transitionstart",this.refresh),this.dragEnd())}});const ae=["onMouseup","onTouchend"];var le=v(ne,[["render",function(e,i,s,r,o,n){const a=t.resolveComponent("b-image"),l=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel-list",{"has-shadow":e.scrollIndex>0}]),onMousedown:i[0]||(i[0]=t.withModifiers(((...t)=>e.dragStart&&e.dragStart(...t)),["prevent"])),onTouchstart:i[1]||(i[1]=(...t)=>e.dragStart&&e.dragStart(...t))},[t.createElementVNode("div",{class:t.normalizeClass(["carousel-slides",e.listClass]),style:t.normalizeStyle("transform:translateX("+e.translation+"px)")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,((i,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["carousel-slide",{"is-active":e.asIndicator?e.activeItem===s:e.scrollIndex===s}]),onMouseup:t=>e.checkAsIndicator(s,t),onTouchend:t=>e.checkAsIndicator(s,t),key:s,style:t.normalizeStyle(e.itemStyle)},[t.renderSlot(e.$slots,"item",t.mergeProps({index:s,active:e.activeItem,scroll:e.scrollIndex},i,{list:i}),(()=>[t.createVNode(a,t.mergeProps({src:i.image},i),null,16,["src"])]))],46,ae)))),128))],6),e.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["carousel-arrow",{"is-hovered":e.settings.arrowHover}])},[t.withDirectives(t.createVNode(l,{class:"has-icons-left",onClick:t.withModifiers(e.prev,["prevent"]),pack:e.settings.iconPack,icon:e.settings.iconPrev,size:e.settings.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasPrev]]),t.withDirectives(t.createVNode(l,{class:"has-icons-right",onClick:t.withModifiers(e.next,["prevent"]),pack:e.settings.iconPack,icon:e.settings.iconNext,size:e.settings.iconSize,both:""},null,8,["onClick","pack","icon","size"]),[[t.vShow,e.hasNext]])],2)):t.createCommentVNode("v-if",!0)],34)}]]);const ce=(e,t,i)=>{const s=t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)},he={install(e){ce(e,E),ce(e,F),ce(e,le)}};e.BCarousel=E,e.BCarouselItem=F,e.BCarouselList=le,e.default=he,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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 v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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).Checkbox={},e.Vue)}(this,(function(e,t){"use strict";var n=t.defineComponent({props:{modelValue:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},emits:{"update:modelValue":e=>!0},data(){return{newValue:this.modelValue}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},disabledOrUndefined(){return this.disabled||void 0},requiredOrUndefined(){return this.required||void 0}},watch:{modelValue(e){this.newValue=e}},methods:{focus(){this.$refs.input.focus()}}}),a=t.defineComponent({name:"BCheckbox",mixins:[n],props:{indeterminate:Boolean,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},autocomplete:{type:String,default:"on"},inputId:{type:String,default:""}}}),i=(e,t)=>{const n=e.__vccOpts||e;for(const[e,a]of t)n[e]=a;return n};const l=["disabled"],o=["id",".indeterminate","autocomplete","disabled","required","name","value","true-value","false-value","aria-labelledby"],d=["id"];var r=i(a,[["render",function(e,n,a,i,r,s){return t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(["b-checkbox checkbox",[e.size,{"is-disabled":e.disabled}]]),ref:"label",disabled:e.disabledOrUndefined,onClick:n[2]||(n[2]=(...t)=>e.focus&&e.focus(...t)),onKeydown:[n[3]||(n[3]=t.withKeys(t.withModifiers((t=>e.$refs.label.click()),["prevent"]),["enter"])),n[4]||(n[4]=t.withKeys(t.withModifiers((t=>e.$refs.label.click()),["prevent"]),["space"]))]},[t.createCommentVNode(" Checkbox needs to listen for a space event instead of a just a\n click and enter event so that that using the keyboard spacebar will also\n trigger the checkbox change in the b-table "),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=t=>e.computedValue=t),id:e.inputId,".indeterminate":e.indeterminate,type:"checkbox",ref:"input",onClick:n[1]||(n[1]=t.withModifiers((()=>{}),["stop"])),autocomplete:e.autocomplete,disabled:e.disabledOrUndefined,required:e.requiredOrUndefined,name:e.name,value:e.nativeValue,"true-value":e.trueValue,"false-value":e.falseValue,"aria-labelledby":e.ariaLabelledby},null,40,o),[[t.vModelCheckbox,e.computedValue]]),t.createElementVNode("span",{class:t.normalizeClass(["check",e.type])},null,2),t.createElementVNode("span",{id:e.ariaLabelledby,class:"control-label"},[t.renderSlot(e.$slots,"default")],8,d)],42,l)}]]),s=t.defineComponent({name:"BCheckboxButton",mixins:[n],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:()=>({isFocused:!1}),computed:{checked(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}});const u=["disabled"],c=["disabled","required","name","value"];var b=i(s,[["render",function(e,n,a,i,l,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["control",{"is-expanded":e.expanded}])},[t.createElementVNode("label",{class:t.normalizeClass(["b-checkbox checkbox button",[e.checked?e.type:null,e.size,{"is-disabled":e.disabled,"is-focused":e.isFocused}]]),ref:"label",disabled:e.disabledOrUndefined,onClick:n[4]||(n[4]=(...t)=>e.focus&&e.focus(...t)),onKeydown:n[5]||(n[5]=t.withKeys(t.withModifiers((t=>e.$refs.label.click()),["prevent"]),["enter"]))},[t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=t=>e.computedValue=t),type:"checkbox",ref:"input",onClick:n[1]||(n[1]=t.withModifiers((()=>{}),["stop"])),disabled:e.disabledOrUndefined,required:e.requiredOrUndefined,name:e.name,value:e.nativeValue,onFocus:n[2]||(n[2]=t=>e.isFocused=!0),onBlur:n[3]||(n[3]=t=>e.isFocused=!1)},null,40,c),[[t.vModelCheckbox,e.computedValue]])],42,u)],2)}]]);const p=(e,t,n)=>{const a=t.name;if(null==a)throw new Error("Buefy.registerComponent: missing component name");e.component(a,t)},f={install(e){p(e,r),p(e,b)}};e.BCheckbox=r,e.BCheckboxButton=b,e.default=f,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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 v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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).Clockpicker={},e.Vue)}(this,(function(e,t){"use strict";let i,n="mdi",s=null,o="on",l=!0,r=!0,a=!0,c=!0,u=!0,d=!0,h=!0,m=!0;var p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,y=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>c}},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&&p)for(var n of p(e))t.indexOf(n)<0&&f.call(e,n)&&(i[n]=e[n]);return i})(e,["style","class","id"])}return this.$attrs}}});const S={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 S.Android()||S.BlackBerry()||S.iOS()||S.Opera()||S.Windows()}};var v=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};const b=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>u},validationMessage:String,locale:{type:[String,Array],default:()=>i},statusIcon:{type:Boolean,default:()=>m}},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)}}}),k=(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 C;const w={beforeMount:(e,{value:t=!0})=>{if(t){let t=k(e),i=k(e,!0);t&&t.length>0&&(C=n=>{t=k(e),i=k(e,!0);const s=t[0],o=t[t.length-1];n.target===s&&n.shiftKey&&"Tab"===n.key?(n.preventDefault(),o.focus()):(n.target===o||Array.from(i).indexOf(n.target)>=0)&&!n.shiftKey&&"Tab"===n.key&&(n.preventDefault(),s.focus())},e.addEventListener("keydown",C))}},unmounted:e=>{e.removeEventListener("keydown",C)}},M=["escape","outside"],V=Symbol("bdropdown");var x=t.defineComponent({name:"BDropdown",directives:{trapFocus:w},provide(){return{[V]: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:()=>d},ariaRole:{type:String,validator:e=>["menu","list","dialog"].indexOf(e)>-1,default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:()=>h},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?M:[]: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 n=this.$data._bodyEl.children[0];if(n.classList.forEach((e=>n.classList.remove(e))),n.classList.add("dropdown"),n.classList.add("dropdown-menu-animation"),this.rootClasses.forEach((e=>{if(e&&"object"==typeof e)for(const t in e)e[t]&&n.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 o=s.top+window.scrollY,l=s.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?o+=i.clientHeight:o-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(l-=t.clientWidth-i.clientWidth),this.style={position:"absolute",top:`${o}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)}});const T=["tabindex"],B=["aria-hidden"],H=["aria-hidden"],F=["role","aria-modal"];var P=v(x,[["render",function(e,i,n,s,o,l){const r=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,T)),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,B)),[[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,F)],12,H)),[[t.vShow,!e.disabled&&(e.isActive||e.isHoverable)||e.inline],[r,e.trapFocus]])])),_:3},8,["name"])],34)}]]);const D={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},I=()=>{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 N=v(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:D,fa:I(),fas:I(),far:I(),fad:I(),fab:I(),fal:I(),"fa-solid":I(),"fa-regular":I(),"fa-light":I(),"fa-thin":I(),"fa-duotone":I(),"fa-brands":I()}[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)}]]),$=t.defineComponent({name:"BInput",components:{BIcon:N},mixins:[y,b],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>a},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 E=["type","autocomplete","maxlength"],A=["maxlength"],z=["type","autocomplete","maxlength"],O=["maxlength"];var R=v($,[["render",function(e,i,n,s,o,l){const r=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,E)),[[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,A)),[[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,z)),[[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,O)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(r,{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(r,{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 L="AM",U="PM",_="24",j="12",q=(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 n=function(e,t){const i=t.match(e),n=e.toString().match(/<(.+?)>/g);if(null==n)throw new RangeError("pattern must contain at least one group");return n.map((e=>e.match(/<(.+)>/)[1])).reduce(((e,t,n)=>(i&&i.length>n?e[t]=i[n+1]:e[t]=null,e)),{})}(t.dtf.formatToParts(i).map((e=>"literal"===e.type?e.value.replace(/ /g,"\\s?"):"dayPeriod"===e.type?`((?!=<${e.type}>)(${t.amString}|${t.pmString}|${L}|${U}|${L.toLowerCase()}|${U.toLowerCase()})?)`:`((?!=<${e.type}>)\\d+)`)).join(""),e);if(n.hour=n.hour?parseInt(n.hour+"",10):null,n.minute=n.minute?parseInt(n.minute+"",10):null,n.second=n.second?parseInt(n.second+"",10):null,n.hour&&n.hour>=0&&n.hour<24&&n.minute&&n.minute>=0&&n.minute<59){const e=n.dayPeriod;return e&&(e.toLowerCase()===t.pmString.toLowerCase()||e.toLowerCase()===U.toLowerCase())&&n.hour<12&&(n.hour+=12),i.setHours(n.hour),i.setMinutes(n.minute),i.setSeconds(n.second||0),i}}let n=!1;if(t.hourFormat===j){const i=e.split(" ");e=i[0],n=i[1]===t.amString||i[1]===L}const s=e.split(":");let o=parseInt(s[0],10);const l=parseInt(s[1],10),r=t.enableSeconds?parseInt(s[2],10):0;return isNaN(o)||o<0||o>23||t.hourFormat===j&&(o<1||o>12)||isNaN(l)||l<0||l>59?null:(i.setSeconds(r),i.setMinutes(l),t.hourFormat===j&&(n&&12===o?o=0:n||12===o||(o+=12)),i.setHours(o),new Date(i.getTime()))}return null};var W=t.defineComponent({mixins:[y,b],props:{modelValue:[Date,null],inline:Boolean,minTime:[Date,null],maxTime:[Date,null],placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:e=>e===_||e===j},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)=>q(e,t)},mobileNative:{type:Boolean,default:()=>l},mobileModal:{type:Boolean,default:()=>r},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:L,PM:U,HOUR_FORMAT_24:_,HOUR_FORMAT_12:j}},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?j:_)},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 L},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 U},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,n=t;this.isHourFormat24||(t=i+1,n=t,this.meridienSelected===this.amString?12===t&&(t=0):this.meridienSelected===this.pmString&&12!==t&&(t+=12)),e.push({label:this.formatNumber(n),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&&S.any()},isHourFormat24(){return this.newHourFormat===_},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,n){if(null!=e&&null!=t&&(!this.isHourFormat24&&null!==n||this.isHourFormat24)){let n=null;this.computedValue&&!isNaN(this.computedValue.valueOf())?n=new Date(this.computedValue):(n=this.timeCreator(),n.setMilliseconds(0)),n.setHours(e),n.setMinutes(t),n.setSeconds(i),isNaN(n.getTime())||(this.computedValue=new Date(n.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(),n=this.minutes.every((t=>this.isMinuteDisabledForHour(e,t.value)));t=e<i||n}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 n=this.minTime.getHours(),s=this.minTime.getMinutes();i=e===n&&t<s}if(this.maxTime&&!i){const n=this.maxTime.getHours(),s=this.maxTime.getMinutes();i=e===n&&t>s}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(),n=this.minTime.getMinutes(),s=this.minTime.getSeconds();t=this.hoursSelected===i&&this.minutesSelected===n&&e<s}if(this.maxTime&&!t){const i=this.maxTime.getHours(),n=this.maxTime.getMinutes(),s=this.maxTime.getSeconds();t=this.hoursSelected===i&&this.minutesSelected===n&&e>s}}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(),n=t.getSeconds();return this.formatNumber(e,!0)+":"+this.formatNumber(i,!0)+":"+this.formatNumber(n,!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)}});var K=t.defineComponent({name:"BClockpickerFace",props:{pickerSize:Number,min:Number,max:Number,double:Boolean,value:Number,faceNumbers:Array,disabledValues:Function},emits:{change:e=>!0,input:e=>!0},data(){return{isDragging:!1,inputValue:this.value,prevAngle:720}},computed:{count(){return this.max-this.min+1},countPerRing(){return this.double?this.count/2:this.count},radius(){return this.pickerSize/2},outerRadius(){return this.radius-5-20},innerRadius(){return Math.max(.6*this.outerRadius,this.outerRadius-5-40)},degreesPerUnit(){return 360/this.countPerRing},degrees(){return this.degreesPerUnit*Math.PI/180},handRotateAngle(){let e=this.prevAngle;for(;e<0;)e+=360;const t=this.calcHandAngle(this.displayedValue),i=this.shortestDistanceDegrees(e,t);return this.prevAngle+i},handScale(){return this.calcHandScale(this.displayedValue)},handStyle(){return{transform:`rotate(${this.handRotateAngle}deg) scaleY(${this.handScale})`,transition:".3s cubic-bezier(.25,.8,.50,1)"}},displayedValue(){return null==this.inputValue?this.min:this.inputValue}},watch:{value(e){e!==this.inputValue&&(this.prevAngle=this.handRotateAngle),this.inputValue=e}},methods:{isDisabled(e){return this.disabledValues&&this.disabledValues(e)},euclidean(e,t){const i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)},shortestDistanceDegrees(e,t){const i=(t-e)%360,n=180-Math.abs(Math.abs(i)-180);return(i+360)%360<180?1*n:-1*n},coordToAngle(e,t){const i=2*Math.atan2(t.y-e.y-this.euclidean(e,t),t.x-e.x);return Math.abs(180*i/Math.PI)},getNumberTranslate(e){const{x:t,y:i}=this.getNumberCoords(e);return`translate(${t}px, ${i}px)`},getNumberCoords(e){const t=this.isInnerRing(e)?this.innerRadius:this.outerRadius;return{x:Math.round(t*Math.sin((e-this.min)*this.degrees)),y:Math.round(-t*Math.cos((e-this.min)*this.degrees))}},getFaceNumberClasses(e){return{active:e.value===this.displayedValue,disabled:this.isDisabled(e.value)}},isInnerRing(e){return this.double&&e-this.min>=this.countPerRing},calcHandAngle(e){let t=this.degreesPerUnit*(e-this.min);return this.isInnerRing(e)&&(t-=360),t},calcHandScale(e){return this.isInnerRing(e)?this.innerRadius/this.outerRadius:1},onMouseDown(e){e.preventDefault(),this.isDragging=!0,this.onDragMove(e)},onMouseUp(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove(e){if(e.preventDefault(),!this.isDragging&&"click"!==e.type)return;const{width:t,top:i,left:n}=this.$refs.clock.getBoundingClientRect(),{clientX:s,clientY:o}="touches"in e?e.touches[0]:e,l={x:t/2,y:-t/2},r={x:s-n,y:i-o},a=Math.round(this.coordToAngle(l,r)+360)%360,c=this.double&&this.euclidean(l,r)<(this.outerRadius+this.innerRadius)/2-16;let u=Math.round(a/this.degreesPerUnit)+this.min+(c?this.countPerRing:0);a>=360-this.degreesPerUnit/2&&(u=c?this.max:this.min),this.update(u)},update(e){this.inputValue===e||this.isDisabled(e)||(this.prevAngle=this.handRotateAngle,this.inputValue=e,this.$emit("input",e))}}});const Y={class:"b-clockpicker-face-outer-ring",ref:"clock"};var X=v(K,[["render",function(e,i,n,s,o,l){return t.openBlock(),t.createElementBlock("div",{class:"b-clockpicker-face",onMousedown:i[0]||(i[0]=(...t)=>e.onMouseDown&&e.onMouseDown(...t)),onMouseup:i[1]||(i[1]=(...t)=>e.onMouseUp&&e.onMouseUp(...t)),onMousemove:i[2]||(i[2]=(...t)=>e.onDragMove&&e.onDragMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>e.onMouseDown&&e.onMouseDown(...t)),onTouchend:i[4]||(i[4]=(...t)=>e.onMouseUp&&e.onMouseUp(...t)),onTouchmove:i[5]||(i[5]=(...t)=>e.onDragMove&&e.onDragMove(...t))},[t.createElementVNode("div",Y,[t.createElementVNode("div",{class:"b-clockpicker-face-hand",style:t.normalizeStyle(e.handStyle)},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.faceNumbers,((i,n)=>(t.openBlock(),t.createElementBlock("span",{key:n,class:t.normalizeClass(["b-clockpicker-face-number",e.getFaceNumberClasses(i)]),style:t.normalizeStyle({transform:e.getNumberTranslate(i.value)})},[t.createElementVNode("span",null,t.toDisplayString(i.label),1)],6)))),128))],512)],32)}]]);var G=t.defineComponent({name:"BClockpicker",components:{BClockpickerFace:X,BInput:R,BDropdown:P},mixins:[W],props:{pickerSize:{type:Number,default:290},incrementMinutes:{type:Number,default:5},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:()=>"Hours"},minutesLabel:{type:String,default:()=>"Min"}},data:()=>({isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}),computed:{hoursDisplay(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);let e=this.hoursSelected;return this.meridienSelected===this.pmString&&(e-=12),0===e&&(e=12),e},minutesDisplay(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.pmString?12:0},maxFaceValue(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.amString?23:11:59},faceSize(){return this.pickerSize-24},faceDisabledValues(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput(e){this.isSelectingHour?(this.hoursSelected=e,this.onHoursChange(e)):(this.minutesSelected=e,this.onMinutesChange(e))},onClockChange(){this.isSelectingHour?this.isSelectingHour=!this.isSelectingHour:this.toggle(!1)},toggle(e){if(this.$refs.dropdown){const t=this.$refs.dropdown;t.isActive=null!=e?e:!t.isActive,t.isActive&&(this.isSelectingHour=!0)}},onMeridienClick(e){this.meridienSelected!==e&&(this.meridienSelected=e,this.onMeridienChange(e))},onInputClick(e){this.$refs.dropdown.isActive&&e.stopPropagation()}}});const J=["disabled"],Q={key:0,class:"card-header"},Z={class:"b-clockpicker-header card-header-title"},ee={class:"b-clockpicker-time"},te={key:0,class:"b-clockpicker-period"},ie={class:"card-content"},ne={key:0,class:"b-clockpicker-time"},se={key:1,class:"b-clockpicker-period"},oe={key:1,class:"b-clockpicker-footer card-footer"};var le=v(G,[["render",function(e,i,n,s,o,l){const r=t.resolveComponent("b-input"),a=t.resolveComponent("b-clockpicker-face"),c=t.resolveComponent("b-dropdown");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["b-clockpicker control",[e.size,e.type,{"is-expanded":e.expanded}]]},e.rootAttrs),[!e.isMobile||e.inline?(t.openBlock(),t.createBlock(c,{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.createElementVNode("div",{class:"card",disabled:e.disabledOrUndefined,custom:""},[e.inline?(t.openBlock(),t.createElementBlock("header",Q,[t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.isSelectingHour}]),onClick:i[3]||(i[3]=t=>e.isSelectingHour=!0)},t.toDisplayString(e.hoursDisplay),3),t.createElementVNode("span",null,t.toDisplayString(e.hourLiteral),1),t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:!e.isSelectingHour}]),onClick:i[4]||(i[4]=t=>e.isSelectingHour=!1)},t.toDisplayString(e.minutesDisplay),3)]),e.isHourFormat24?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",te,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.amString||e.meridienSelected===e.AM}]),onClick:i[5]||(i[5]=t=>e.onMeridienClick(e.amString))},t.toDisplayString(e.amString),3),t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.pmString||e.meridienSelected===e.PM}]),onClick:i[6]||(i[6]=t=>e.onMeridienClick(e.pmString))},t.toDisplayString(e.pmString),3)]))])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",ie,[t.createElementVNode("div",{class:"b-clockpicker-body",style:t.normalizeStyle({width:e.faceSize+"px",height:e.faceSize+"px"})},[e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",ne,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.isSelectingHour}]),onClick:i[7]||(i[7]=t=>e.isSelectingHour=!0)},t.toDisplayString(e.hoursLabel),3),t.createElementVNode("span",{class:t.normalizeClass(["b-clockpicker-btn",{active:!e.isSelectingHour}]),onClick:i[8]||(i[8]=t=>e.isSelectingHour=!1)},t.toDisplayString(e.minutesLabel),3)])),e.isHourFormat24||e.inline?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",se,[t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.amString||e.meridienSelected===e.AM}]),onClick:i[9]||(i[9]=t=>e.onMeridienClick(e.amString))},t.toDisplayString(e.amString),3),t.createElementVNode("div",{class:t.normalizeClass(["b-clockpicker-btn",{active:e.meridienSelected===e.pmString||e.meridienSelected===e.PM}]),onClick:i[10]||(i[10]=t=>e.onMeridienClick(e.pmString))},t.toDisplayString(e.pmString),3)])),t.createVNode(a,{ref:"clockpickerFace","picker-size":e.faceSize,min:e.minFaceValue,max:e.maxFaceValue,"face-numbers":e.isSelectingHour?e.hours:e.minutes,"disabled-values":e.faceDisabledValues,double:e.isSelectingHour&&e.isHourFormat24,value:e.isSelectingHour?e.hoursSelected??void 0:e.minutesSelected??void 0,onInput:e.onClockInput,onChange:e.onClockChange},null,8,["picker-size","min","max","face-numbers","disabled-values","double","value","onInput","onChange"])],4)]),void 0!==e.$slots.default&&e.$slots.default([]).length?(t.openBlock(),t.createElementBlock("footer",oe,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("v-if",!0)],8,J)])),_:2},[e.inline?void 0:{name:"trigger",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"trigger",{},(()=>[t.createVNode(r,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,rounded:e.rounded},e.fallthroughAttrs,{"use-html5-validation":e.useHtml5Validation,onClick:e.onInputClick,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,onBlur:i[2]||(i[2]=t=>e.checkHtml5Validity())}),null,16,["model-value","placeholder","size","icon","icon-pack","loading","disabled","readonly","rounded","use-html5-validation","onClick","onFocus"])]))])),key:"0"}]),1032,["position","disabled","inline","mobile-modal","append-to-body","onActiveChange"])):(t.openBlock(),t.createBlock(r,t.mergeProps({key:1,ref:"input",type:"time",autocomplete:"off","model-value":e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,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,onClick:i[11]||(i[11]=t.withModifiers((t=>e.toggle(!0)),["stop"])),onKeyup:i[12]||(i[12]=t.withKeys((t=>e.toggle(!0)),["enter"])),onChange:e.onChangeNativePicker,onFocus:e.handleOnFocus,onBlur:i[13]||(i[13]=t=>e.onBlur()&&e.checkHtml5Validity())}),null,16,["model-value","placeholder","size","icon","icon-pack","loading","max","min","disabled","use-html5-validation","onChange","onFocus"]))],16)}]]);const re={install(e){((e,t)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)})(e,le)}};e.BClockpicker=le,e.default=re,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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 v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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).Collapse={},e.Vue)}(this,(function(e,t){"use strict";const i=["is-top","is-bottom"];var s=t.defineComponent({name:"BCollapse",props:{modelValue:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:e=>i.indexOf(e)>-1}},emits:{close:()=>!0,open:()=>!0,"update:modelValue":e=>!0},data(){return{isOpen:this.modelValue}},watch:{modelValue(e){this.isOpen=e}},methods:{toggle(){this.isOpen=!this.isOpen,this.$emit("update:modelValue",this.isOpen),this.isOpen?this.$emit("open"):this.$emit("close")}},render(){const e=t.h("div",{class:"collapse-trigger",onClick:this.toggle},this.$slots.trigger?this.$slots.trigger({open:this.isOpen}):void 0),i=t.withDirectives(t.h(t.Transition,{name:this.animation},(()=>[t.h("div",{class:"collapse-content",id:this.ariaId},this.$slots)])),[[t.vShow,this.isOpen]]);return t.h("div",{class:"collapse"},"is-top"===this.position?[e,i]:[i,e])}});const o={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.BCollapse=s,e.default=o,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */
1
+ /*! Buefy v3.0.3 | 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) :