buefy 3.0.1 → 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 (209) hide show
  1. package/README.md +2 -2
  2. package/dist/buefy.d.ts +20 -5
  3. package/dist/buefy.esm.js +49 -19
  4. package/dist/buefy.esm.min.js +2 -2
  5. package/dist/buefy.js +54 -17
  6. package/dist/buefy.min.js +2 -2
  7. package/dist/cjs/autocomplete.js +1 -1
  8. package/dist/cjs/breadcrumb.js +1 -1
  9. package/dist/cjs/button.js +1 -1
  10. package/dist/cjs/carousel.js +1 -1
  11. package/dist/cjs/checkbox.js +1 -1
  12. package/dist/cjs/clockpicker.js +1 -1
  13. package/dist/cjs/collapse.js +1 -1
  14. package/dist/cjs/colorpicker.js +2 -2
  15. package/dist/cjs/config.js +7 -1
  16. package/dist/cjs/datepicker.js +1 -1
  17. package/dist/cjs/datetimepicker.js +1 -1
  18. package/dist/cjs/dialog.js +7 -2
  19. package/dist/cjs/dropdown.js +1 -1
  20. package/dist/cjs/field.js +1 -1
  21. package/dist/cjs/icon.js +1 -1
  22. package/dist/cjs/image.js +1 -1
  23. package/dist/cjs/{index-DiQy3SCb.js → index-SLOXD6k3.js} +1 -1
  24. package/dist/cjs/index.js +10 -3
  25. package/dist/cjs/input.js +1 -1
  26. package/dist/cjs/loading.js +7 -2
  27. package/dist/cjs/menu.js +1 -1
  28. package/dist/cjs/message.js +1 -1
  29. package/dist/cjs/modal.js +7 -2
  30. package/dist/cjs/navbar.js +1 -1
  31. package/dist/cjs/notification.js +7 -2
  32. package/dist/cjs/numberinput.js +1 -1
  33. package/dist/cjs/pagination.js +1 -1
  34. package/dist/cjs/{plugins-DbyYGVpp.js → plugins-BWKpXmCr.js} +2 -1
  35. package/dist/cjs/progress.js +1 -1
  36. package/dist/cjs/radio.js +1 -1
  37. package/dist/cjs/rate.js +1 -1
  38. package/dist/cjs/select.js +1 -1
  39. package/dist/cjs/sidebar.js +1 -1
  40. package/dist/cjs/skeleton.js +1 -1
  41. package/dist/cjs/slider.js +1 -1
  42. package/dist/cjs/snackbar.js +7 -2
  43. package/dist/cjs/steps.js +1 -1
  44. package/dist/cjs/switch.js +1 -1
  45. package/dist/cjs/table.js +10 -9
  46. package/dist/cjs/tabs.js +1 -1
  47. package/dist/cjs/tag.js +1 -1
  48. package/dist/cjs/taginput.js +1 -1
  49. package/dist/cjs/timepicker.js +1 -1
  50. package/dist/cjs/toast.js +7 -2
  51. package/dist/cjs/tooltip.js +1 -1
  52. package/dist/cjs/upload.js +1 -1
  53. package/dist/components/autocomplete/index.js +1 -1
  54. package/dist/components/autocomplete/index.min.js +1 -1
  55. package/dist/components/breadcrumb/index.js +1 -1
  56. package/dist/components/breadcrumb/index.min.js +1 -1
  57. package/dist/components/button/index.js +1 -1
  58. package/dist/components/button/index.min.js +1 -1
  59. package/dist/components/carousel/index.js +1 -1
  60. package/dist/components/carousel/index.min.js +1 -1
  61. package/dist/components/checkbox/index.js +1 -1
  62. package/dist/components/checkbox/index.min.js +1 -1
  63. package/dist/components/clockpicker/index.js +1 -1
  64. package/dist/components/clockpicker/index.min.js +1 -1
  65. package/dist/components/collapse/index.js +1 -1
  66. package/dist/components/collapse/index.min.js +1 -1
  67. package/dist/components/colorpicker/index.js +1 -1
  68. package/dist/components/colorpicker/index.min.js +1 -1
  69. package/dist/components/datepicker/index.js +1 -1
  70. package/dist/components/datepicker/index.min.js +1 -1
  71. package/dist/components/datetimepicker/index.js +1 -1
  72. package/dist/components/datetimepicker/index.min.js +1 -1
  73. package/dist/components/dialog/index.js +9 -3
  74. package/dist/components/dialog/index.min.js +2 -2
  75. package/dist/components/dropdown/index.js +1 -1
  76. package/dist/components/dropdown/index.min.js +1 -1
  77. package/dist/components/field/index.js +1 -1
  78. package/dist/components/field/index.min.js +1 -1
  79. package/dist/components/icon/index.js +1 -1
  80. package/dist/components/icon/index.min.js +1 -1
  81. package/dist/components/image/index.js +1 -1
  82. package/dist/components/image/index.min.js +1 -1
  83. package/dist/components/input/index.js +1 -1
  84. package/dist/components/input/index.min.js +1 -1
  85. package/dist/components/loading/index.js +9 -3
  86. package/dist/components/loading/index.min.js +2 -2
  87. package/dist/components/menu/index.js +1 -1
  88. package/dist/components/menu/index.min.js +1 -1
  89. package/dist/components/message/index.js +1 -1
  90. package/dist/components/message/index.min.js +1 -1
  91. package/dist/components/modal/index.js +9 -3
  92. package/dist/components/modal/index.min.js +2 -2
  93. package/dist/components/navbar/index.js +1 -1
  94. package/dist/components/navbar/index.min.js +1 -1
  95. package/dist/components/notification/index.js +9 -3
  96. package/dist/components/notification/index.min.js +2 -2
  97. package/dist/components/numberinput/index.js +1 -1
  98. package/dist/components/numberinput/index.min.js +1 -1
  99. package/dist/components/pagination/index.js +1 -1
  100. package/dist/components/pagination/index.min.js +1 -1
  101. package/dist/components/progress/index.js +1 -1
  102. package/dist/components/progress/index.min.js +1 -1
  103. package/dist/components/radio/index.js +1 -1
  104. package/dist/components/radio/index.min.js +1 -1
  105. package/dist/components/rate/index.js +1 -1
  106. package/dist/components/rate/index.min.js +1 -1
  107. package/dist/components/select/index.js +1 -1
  108. package/dist/components/select/index.min.js +1 -1
  109. package/dist/components/sidebar/index.js +1 -1
  110. package/dist/components/sidebar/index.min.js +1 -1
  111. package/dist/components/skeleton/index.js +1 -1
  112. package/dist/components/skeleton/index.min.js +1 -1
  113. package/dist/components/slider/index.js +1 -1
  114. package/dist/components/slider/index.min.js +1 -1
  115. package/dist/components/snackbar/index.js +9 -3
  116. package/dist/components/snackbar/index.min.js +2 -2
  117. package/dist/components/steps/index.js +1 -1
  118. package/dist/components/steps/index.min.js +1 -1
  119. package/dist/components/switch/index.js +1 -1
  120. package/dist/components/switch/index.min.js +1 -1
  121. package/dist/components/table/index.js +10 -9
  122. package/dist/components/table/index.min.js +2 -2
  123. package/dist/components/tabs/index.js +1 -1
  124. package/dist/components/tabs/index.min.js +1 -1
  125. package/dist/components/tag/index.js +1 -1
  126. package/dist/components/tag/index.min.js +1 -1
  127. package/dist/components/taginput/index.js +1 -1
  128. package/dist/components/taginput/index.min.js +1 -1
  129. package/dist/components/timepicker/index.js +1 -1
  130. package/dist/components/timepicker/index.min.js +1 -1
  131. package/dist/components/toast/index.js +9 -3
  132. package/dist/components/toast/index.min.js +2 -2
  133. package/dist/components/tooltip/index.js +1 -1
  134. package/dist/components/tooltip/index.min.js +1 -1
  135. package/dist/components/upload/index.js +1 -1
  136. package/dist/components/upload/index.min.js +1 -1
  137. package/dist/{buefy.css → css/buefy.css} +4 -4
  138. package/dist/css/buefy.css.map +1 -0
  139. package/dist/css/buefy.min.css +1 -0
  140. package/dist/css/versions/buefy-no-reset.css +25930 -0
  141. package/dist/css/versions/buefy-no-reset.css.map +1 -0
  142. package/dist/css/versions/buefy-no-reset.min.css +1 -0
  143. package/dist/css/versions/buefy-standalone.css +5874 -0
  144. package/dist/css/versions/buefy-standalone.css.map +1 -0
  145. package/dist/css/versions/buefy-standalone.min.css +1 -0
  146. package/dist/esm/autocomplete.js +1 -1
  147. package/dist/esm/breadcrumb.js +1 -1
  148. package/dist/esm/button.js +1 -1
  149. package/dist/esm/carousel.js +1 -1
  150. package/dist/esm/checkbox.js +1 -1
  151. package/dist/esm/clockpicker.js +1 -1
  152. package/dist/esm/collapse.js +1 -1
  153. package/dist/esm/colorpicker.js +2 -2
  154. package/dist/esm/config.js +6 -2
  155. package/dist/esm/datepicker.js +1 -1
  156. package/dist/esm/datetimepicker.js +1 -1
  157. package/dist/esm/dialog.js +8 -4
  158. package/dist/esm/dropdown.js +1 -1
  159. package/dist/esm/field.js +1 -1
  160. package/dist/esm/icon.js +1 -1
  161. package/dist/esm/image.js +1 -1
  162. package/dist/esm/{index-CQegEsxK.js → index-BE58-KfV.js} +1 -1
  163. package/dist/esm/index.js +12 -11
  164. package/dist/esm/input.js +1 -1
  165. package/dist/esm/loading.js +8 -4
  166. package/dist/esm/menu.js +1 -1
  167. package/dist/esm/message.js +1 -1
  168. package/dist/esm/modal.js +8 -4
  169. package/dist/esm/navbar.js +1 -1
  170. package/dist/esm/notification.js +8 -4
  171. package/dist/esm/numberinput.js +1 -1
  172. package/dist/esm/pagination.js +1 -1
  173. package/dist/esm/{plugins-B172kuKE.js → plugins-1tLsuIZF.js} +2 -1
  174. package/dist/esm/progress.js +1 -1
  175. package/dist/esm/radio.js +1 -1
  176. package/dist/esm/rate.js +1 -1
  177. package/dist/esm/select.js +1 -1
  178. package/dist/esm/sidebar.js +1 -1
  179. package/dist/esm/skeleton.js +1 -1
  180. package/dist/esm/slider.js +1 -1
  181. package/dist/esm/snackbar.js +8 -4
  182. package/dist/esm/steps.js +1 -1
  183. package/dist/esm/switch.js +1 -1
  184. package/dist/esm/table.js +11 -10
  185. package/dist/esm/tabs.js +1 -1
  186. package/dist/esm/tag.js +1 -1
  187. package/dist/esm/taginput.js +1 -1
  188. package/dist/esm/timepicker.js +1 -1
  189. package/dist/esm/toast.js +8 -4
  190. package/dist/esm/tooltip.js +1 -1
  191. package/dist/esm/upload.js +1 -1
  192. package/package.json +6 -3
  193. package/src/components/dialog/index.ts +9 -3
  194. package/src/components/loading/index.ts +9 -3
  195. package/src/components/modal/index.ts +9 -3
  196. package/src/components/notification/index.ts +9 -3
  197. package/src/components/snackbar/index.ts +9 -3
  198. package/src/components/table/Table.vue +18 -12
  199. package/src/components/toast/index.ts +9 -3
  200. package/src/index.ts +9 -9
  201. package/src/scss/buefy.scss +0 -1
  202. package/src/scss/components/_dropdown.scss +6 -6
  203. package/src/scss/{buefy-build.scss → versions/buefy-bulma-bundle.scss} +1 -1
  204. package/src/scss/versions/buefy-no-reset.scss +16 -0
  205. package/src/utils/ConfigComponent.ts +13 -1
  206. package/src/utils/plugins.ts +3 -2
  207. package/src/utils/vue-augmentation.ts +1 -1
  208. package/dist/buefy.css.map +0 -1
  209. package/dist/buefy.min.css +0 -1
@@ -1,2 +1,2 @@
1
- /*! Buefy v3.0.1 | MIT License | github.com/buefy/buefy */
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).Table={},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,t,o){if(!e)return-1;if(!o||"function"!=typeof o)return e.indexOf(t);for(let i=0;i<e.length;i++)if(o(e[i],t))return i;return-1}function n(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function l(e){return e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):e}function a(e){return e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function s(e,t){return JSON.parse(JSON.stringify(e)).sort((i=t,(e,t)=>i.map((i=>{const{field:n,order:l,customSort:a}=i;if("function"==typeof a)return a(e,t,"desc"!==l);{const i=o(e,n),a=o(t,n),s=i>a?1:i<a?-1:0;return"desc"===l?-s:s}})).reduce(((e,t)=>e||t),0)));var i}function r(e){return void 0===e?null:isNaN(+e)?`${e}`:e+"px"}const c=e=>null==e;const u=(e,t)=>{const{type:o,target:i}=t;let n=0,l=0;if(null!=i&&i!==e.target){const t=e.target.getBoundingClientRect(),o=i.getBoundingClientRect();n=o.left-t.left,l=o.top-t.top}const a=e.touches[0]||e.changedTouches[0];return new DragEvent(o,{dataTransfer:new DataTransfer,bubbles:!0,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX+n,clientY:a.clientY+l,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey})};function d(e,t,o){let i;return function(...o){const n=this;clearTimeout(i),i=setTimeout((function(){i=void 0,e.apply(n,o)}),t)}}let h={defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultInputAutocomplete:"on",defaultInputHasCounter:!0,defaultCompatFallthrough:!0,defaultUseHtml5Validation:!0,defaultStatusIcon:!0,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};var p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,f=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>h.defaultCompatFallthrough}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class: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&&g.call(e,i)&&(o[i]=e[i]);return o})(e,["style","class","id"])}return this.$attrs}}}),b=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()}}}),k=t.defineComponent({name:"BCheckbox",mixins:[b],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:""}}}),C=(e,t)=>{const o=e.__vccOpts||e;for(const[e,i]of t)o[e]=i;return o};const y=["disabled"],v=["id",".indeterminate","autocomplete","disabled","required","name","value","true-value","false-value","aria-labelledby"],w=["id"];var S=C(k,[["render",function(e,o,i,n,l,a){return t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(["b-checkbox checkbox",[e.size,{"is-disabled":e.disabled}]]),ref:"label",disabled:e.disabledOrUndefined,onClick:o[2]||(o[2]=(...t)=>e.focus&&e.focus(...t)),onKeydown:[o[3]||(o[3]=t.withKeys(t.withModifiers((t=>e.$refs.label.click()),["prevent"]),["enter"])),o[4]||(o[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":o[0]||(o[0]=t=>e.computedValue=t),id:e.inputId,".indeterminate":e.indeterminate,type:"checkbox",ref:"input",onClick:o[1]||(o[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,v),[[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,w)],42,y)}]]);const B={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},D=()=>{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=C(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:B,fa:D(),fas:D(),far:D(),fad:D(),fab:D(),fal:D(),"fa-solid":D(),"fa-regular":D(),"fa-light":D(),"fa-thin":D(),"fa-duotone":D(),"fa-brands":D()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||h.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||h.defaultIconComponent}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,o,i,n,l,a){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const P=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>h.defaultUseHtml5Validation},validationMessage:String,locale:{type:[String,Array],default:()=>h.defaultLocale},statusIcon:{type:Boolean,default:()=>h.defaultStatusIcon}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||h.defaultIconPack,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}});var x=t.defineComponent({name:"BInput",components:{BIcon:V},mixins:[f,P],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>h.defaultInputHasCounter},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||h.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const I=["type","autocomplete","maxlength"],R=["maxlength"],E=["type","autocomplete","maxlength"],N=["maxlength"];var $=C(x,[["render",function(e,o,i,n,l,a){const s=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,I)),[[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,R)),[[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,E)),[[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,N)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(s,{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(s,{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 T="undefined"==typeof window?Object:window.HTMLElement,M=t.defineComponent({name:"BLoading",props:{modelValue:Boolean,programmatic:Boolean,container:[Object,Function,T],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}}},emits:{close:()=>!0,"update:is-full-page":e=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue||!1,displayInFullPage:this.isFullPage}},watch:{modelValue(e){this.isActive=e},isFullPage(e){this.displayInFullPage=e}},methods:{cancel(){this.canCancel&&this.isActive&&this.close()},close(...e){this.onCancel.apply(null,e),this.$emit("close"),this.$emit("update:modelValue",!1),this.programmatic&&(this.isActive=!1,setTimeout((()=>{n(this.$el)}),150))},keyPress({key:e}){"Escape"!==e&&"Esc"!==e||this.cancel()}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},mounted(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el),this.isActive=!0)},beforeUnmount(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}}),A=t.createElementVNode("div",{class:"loading-icon"},null,-1);var F=C(M,[["render",function(e,o,i,n,l,a){return t.openBlock(),t.createBlock(t.Transition,{name:e.animation},{default:t.withCtx((()=>[e.isActive?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["loading-overlay is-active",{"is-full-page":e.displayInFullPage}])},[t.createElementVNode("div",{class:"loading-background",onClick:o[0]||(o[0]=(...t)=>e.cancel&&e.cancel(...t))}),t.renderSlot(e.$slots,"default",{},(()=>[A]))],2)),[[t.vShow,e.isActive]]):t.createCommentVNode("v-if",!0)])),_:3},8,["name"])}]]),z=t.defineComponent({name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:[String,Object],default:"div"}},methods:{refresh(){this.$forceUpdate()}},render(){return t.h(this.tag,{},this.component.$slots?this.scoped?this.component.$slots[this.name](this.props):this.component.$slots[this.name]():void 0)}}),L=t.defineComponent({name:"BSelect",components:{BIcon:V},mixins:[f,P],props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function,Date,null],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},emits:{blur:e=>!0,focus:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,_elementRef:"select"}},computed:{computedValue:{get(){return this.selected},set(e){this.selected=e,this.$emit("update:modelValue",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{modelValue(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}});const O=["multiple","size"],K={key:0,value:null,disabled:"",hidden:""};var U=C(L,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",{"is-expanded":e.expanded,"has-icons-left":e.icon}]},e.rootAttrs),[t.createElementVNode("span",{class:t.normalizeClass(["select",e.spanClasses])},[t.withDirectives(t.createElementVNode("select",t.mergeProps({"onUpdate:modelValue":o[0]||(o[0]=t=>e.computedValue=t),ref:"select",multiple:e.multiple,size:e.nativeSize},e.fallthroughAttrs,{onBlur:o[1]||(o[1]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[2]||(o[2]=t=>e.$emit("focus",t))}),[e.placeholder?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[null==e.computedValue?(t.openBlock(),t.createElementBlock("option",K,t.toDisplayString(e.placeholder),1)):t.createCommentVNode("v-if",!0)],64)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],16,O),[[t.vModelSelect,e.computedValue]])],2),e.icon?(t.openBlock(),t.createBlock(s,{key:0,class:"is-left",icon:e.icon,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])):t.createCommentVNode("v-if",!0)],16)}]]),j=t.defineComponent({name:"BTableMobileSort",components:{BSelect:U,BIcon:V},props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},emits:{removePriority:e=>!0,sort:(e,t)=>!0},data(){return{sortMultipleSelect:null,sortMultipleSelectIndex:-1,mobileSort:this.currentSortColumn,mobileSortIndex:this.columns?this.columns.indexOf(this.currentSortColumn):-1,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder(){return!this.columns||!this.columns.some((e=>e===this.mobileSort))},sortableColumns(){return this.columns&&this.columns.filter((e=>e.sortable))}},watch:{sortMultipleSelect(e){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",e,this.defaultEvent)},sortMultipleSelectIndex(e){this.sortMultipleSelect=-1!==e?this.columns[e]:null},mobileSort(e){this.currentSortColumn!==e&&this.$emit("sort",e,this.defaultEvent)},mobileSortIndex(e){-1!==e&&(this.mobileSort=this.columns[e])},currentSortColumn(e){this.mobileSort=e,this.mobileSortIndex=this.columns?this.columns.indexOf(e):-1},columns(e){this.sortMultiple?this.sortMultipleSelectIndex=e.indexOf(this.sortMultipleSelect):this.mobileSortIndex=e.indexOf(this.mobileSort)}},methods:{removePriority(){this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;const e=this.sortMultipleData.filter((e=>e.field!==this.sortMultipleSelect.field)).map((e=>e.field));this.sortMultipleSelectIndex=this.columns.findIndex((t=>e.includes(t.field)))},getSortingObjectOfColumn(e){return this.sortMultipleData.filter((t=>t.field===e.field))[0]},columnIsDesc(e){const t=e&&this.getSortingObjectOfColumn(e);return!t||!(!t.order||"desc"!==t.order)},getLabel(e){const t=this.getSortingObjectOfColumn(e);return t?e.label+"("+(this.sortMultipleData.indexOf(t)+1)+")":e.label},sort(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}});const _={class:"field table-mobile-sort"},H={class:"field has-addons"},q=["value"],W=["value"],Y={class:"control"};var X=C(j,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-select"),r=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",_,[t.createElementVNode("div",H,[e.sortMultiple?(t.openBlock(),t.createBlock(s,{key:0,modelValue:e.sortMultipleSelectIndex,"onUpdate:modelValue":o[0]||(o[0]=t=>e.sortMultipleSelectIndex=t),expanded:""},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortableColumns,((o,i)=>(t.openBlock(),t.createElementBlock("option",{key:i,value:i},[t.createTextVNode(t.toDisplayString(e.getLabel(o))+" ",1),e.getSortingObjectOfColumn(o)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.columnIsDesc(o)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" ↓ ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" ↑ ")],64))],64)):t.createCommentVNode("v-if",!0)],8,q)))),128))])),_:1},8,["modelValue"])):(t.openBlock(),t.createBlock(s,{key:1,modelValue:e.mobileSortIndex,"onUpdate:modelValue":o[1]||(o[1]=t=>e.mobileSortIndex=t),expanded:""},{default:t.withCtx((()=>[e.placeholder?t.withDirectives((t.openBlock(),t.createElementBlock("option",{key:0,value:{},selected:"",disabled:"",hidden:""},t.toDisplayString(e.placeholder),513)),[[t.vShow,e.showPlaceholder]]):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortableColumns,((e,o)=>(t.openBlock(),t.createElementBlock("option",{key:o,value:o},t.toDisplayString(e.label),9,W)))),128))])),_:1},8,["modelValue"])),t.createElementVNode("div",Y,[e.sortMultiple&&e.sortMultipleData.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("button",{class:"button is-primary",onClick:o[2]||(o[2]=(...t)=>e.sort&&e.sort(...t))},[t.createVNode(r,{class:t.normalizeClass({"is-desc":e.columnIsDesc(e.sortMultipleSelect)}),icon:e.sortIcon,pack:e.iconPack,size:e.sortIconSize,both:""},null,8,["class","icon","pack","size"])]),t.createElementVNode("button",{class:"button is-primary",onClick:o[3]||(o[3]=(...t)=>e.removePriority&&e.removePriority(...t))},[t.createVNode(r,{icon:"delete",size:e.sortIconSize,both:""},null,8,["size"])])],64)):e.sortMultiple?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("button",{key:1,class:"button is-primary",onClick:o[4]||(o[4]=(...t)=>e.sort&&e.sort(...t))},[t.withDirectives(t.createVNode(r,{class:t.normalizeClass({"is-desc":!e.isAsc}),icon:e.sortIcon,pack:e.iconPack,size:e.sortIconSize,both:""},null,8,["class","icon","pack","size"]),[[t.vShow,e.currentSortColumn===e.mobileSort]])]))])])])}]]);var J=C(t.defineComponent({name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:[String,Object],default:"a",validator:e=>"object"==typeof e||h.defaultLinkTags.indexOf(e)>=0},disabled:{type:Boolean,default:!1}},computed:{href(){return"a"===this.tag?"#":void 0},isDisabled(){return this.disabled||this.page.disabled},disabledOrUndefined(){return this.isDisabled||void 0}}}),[["render",function(e,o,i,n,l,a){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.mergeProps({role:"button",href:e.href,disabled:e.disabledOrUndefined,class:["pagination-link",{"is-current":e.page.isCurrent,[e.page.class]:!0}]},e.$attrs,{onClick:t.withModifiers(e.page.click,["prevent"]),"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent||void 0}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.page.number),1)]))])),_:3},16,["href","disabled","class","onClick","aria-label","aria-current"])}]]),G=t.defineComponent({name:"BPagination",components:{BIcon:V,BPaginationButton:J},props:{total:[Number,String],perPage:{type:[Number,String],default:20},modelValue:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:()=>h.defaultIconPrev},iconNext:{type:String,default:()=>h.defaultIconNext},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:{type:Boolean,default:!1},pageInputPosition:String,debouncePageInput:[Number,String]},data(){return{inputValue:this.modelValue,debounceHandlePageInput:void 0}},emits:{change:e=>!0,"update:modelValue":e=>!0},computed:{rootClasses(){return[this.order,this.size,this.pageInputPosition,{"is-simple":this.simple,"is-rounded":this.rounded,"has-input":this.pageInput}]},beforeCurrent(){return parseInt(this.rangeBefore+"")},afterCurrent(){return parseInt(this.rangeAfter+"")},pageCount(){return Math.ceil(+this.total/+this.perPage)},firstItem(){const e=+this.modelValue*+this.perPage-+this.perPage+1;return e>=0?e:0},hasPrev(){return+this.modelValue>1},hasFirst(){return+this.modelValue>=2+this.beforeCurrent},hasFirstEllipsis(){return+this.modelValue>=this.beforeCurrent+4},hasLast(){return+this.modelValue<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis(){return+this.modelValue<this.pageCount-(2+this.afterCurrent)},hasNext(){return+this.modelValue<this.pageCount},pagesInRange(){if(this.simple)return;let e=Math.max(1,+this.modelValue-this.beforeCurrent);e-1==2&&e--;let t=Math.min(+this.modelValue+this.afterCurrent,this.pageCount);this.pageCount-t===2&&t++;const o=[];for(let i=e;i<=t;i++)o.push(this.getPage(i));return o}},watch:{pageCount(e){this.modelValue>e&&this.last()},modelValue(e){this.inputValue=e},debouncePageInput:{handler(e){this.debounceHandlePageInput=d(this.handleOnInputPageChange,e)},immediate:!0}},methods:{prev(e){this.changePage(+this.modelValue-1,e)},next(e){this.changePage(+this.modelValue+1,e)},first(e){this.changePage(1,e)},last(e){this.changePage(this.pageCount,e)},changePage(e,t){this.modelValue===e||e<1||e>this.pageCount||(this.$emit("update:modelValue",e),this.$emit("change",e),t&&t.target&&this.$nextTick((()=>t.target.focus())))},getPage(e,t={}){return{number:e,isCurrent:this.modelValue===e,click:t=>this.changePage(e,t),input:(e,t)=>this.changePage(+t,e),disabled:t.disabled||!1,class:t.class||"","aria-label":t["aria-label"]||this.getAriaPageLabel(e,this.modelValue===e)}},getAriaPageLabel(e,t){return!this.ariaPageLabel||t&&this.ariaCurrentLabel?this.ariaPageLabel&&t&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+e+".":null:this.ariaPageLabel+" "+e+"."},handleOnInputPageChange(e){this.getPage(+this.inputValue).input(e,this.inputValue)},handleOnInputDebounce(e){this.debouncePageInput?this.debounceHandlePageInput(e):this.handleOnInputPageChange(e)},handleOnKeyPress(e){const t=e.which||e.keyCode;return t>=48&&t<=57||e.preventDefault()},handleAllowableInputPageRange(e){const t=e.target;+t.value>0&&+t.value<=this.pageCount?this.handleOnInputValue(e):(this.inputValue=1,this.inputValue="")},handleOnInputValue(e){const t=+e.target.value;this.inputValue=t,Number.isInteger(this.inputValue)?this.handleOnInputDebounce(e):this.inputValue=this.modelValue}}});const Q={class:"control pagination-input"},Z=["value","size","maxlength"],ee={key:4,class:"info"},te={key:5,class:"pagination-list"},oe={key:0},ie={key:1},ne=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],le={key:2},ae=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],se={key:3};var re=C(G,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-icon"),r=t.resolveComponent("BPaginationButton");return t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(["pagination",e.rootClasses])},[e.$slots.previous?t.renderSlot(e.$slots,"previous",{key:0,page:e.getPage(+e.modelValue-1,{disabled:!e.hasPrev,class:"pagination-previous","aria-label":e.ariaPreviousLabel})},(()=>[t.createVNode(s,{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])):(t.openBlock(),t.createBlock(r,{key:1,class:"pagination-previous",disabled:!e.hasPrev,page:e.getPage(+e.modelValue-1),"aria-label":e.ariaPreviousLabel},{default:t.withCtx((()=>[t.createVNode(s,{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])),_:1},8,["disabled","page","aria-label"])),e.$slots.next?t.renderSlot(e.$slots,"next",{key:2,page:e.getPage(+e.modelValue+1,{disabled:!e.hasNext,class:"pagination-next","aria-label":e.ariaNextLabel})},(()=>[t.createVNode(s,{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])):(t.openBlock(),t.createBlock(r,{key:3,class:"pagination-next",disabled:!e.hasNext,page:e.getPage(+e.modelValue+1),"aria-label":e.ariaNextLabel},{default:t.withCtx((()=>[t.createVNode(s,{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])),_:1},8,["disabled","page","aria-label"])),t.createElementVNode("div",Q,[e.pageInput?(t.openBlock(),t.createElementBlock("input",{key:0,class:"input",value:e.inputValue,onInput:o[0]||(o[0]=(...t)=>e.handleAllowableInputPageRange&&e.handleAllowableInputPageRange(...t)),onKeypress:o[1]||(o[1]=(...t)=>e.handleOnKeyPress&&e.handleOnKeyPress(...t)),size:e.pageCount.toString().length,maxlength:e.pageCount.toString().length},null,40,Z)):t.createCommentVNode("v-if",!0)]),e.simple?(t.openBlock(),t.createElementBlock("small",ee,[1==e.perPage?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.firstItem)+" / "+t.toDisplayString(e.total),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.firstItem)+"-"+t.toDisplayString(Math.min(+e.modelValue*+e.perPage,+e.total))+" / "+t.toDisplayString(e.total),1)],64))])):(t.openBlock(),t.createElementBlock("ul",te,[t.createCommentVNode("First"),e.hasFirst?(t.openBlock(),t.createElementBlock("li",oe,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:e.getPage(1)}):(t.openBlock(),t.createBlock(r,{key:1,page:e.getPage(1)},null,8,["page"]))])):t.createCommentVNode("v-if",!0),e.hasFirstEllipsis?(t.openBlock(),t.createElementBlock("li",ie,[...ne])):t.createCommentVNode("v-if",!0),t.createCommentVNode("Pages"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pagesInRange,(o=>(t.openBlock(),t.createElementBlock("li",{key:o.number},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:o}):(t.openBlock(),t.createBlock(r,{key:1,page:o},null,8,["page"]))])))),128)),t.createCommentVNode("Last"),e.hasLastEllipsis?(t.openBlock(),t.createElementBlock("li",le,[...ae])):t.createCommentVNode("v-if",!0),e.hasLast?(t.openBlock(),t.createElementBlock("li",se,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:e.getPage(e.pageCount)}):(t.openBlock(),t.createBlock(r,{key:1,page:e.getPage(e.pageCount)},null,8,["page"]))])):t.createCommentVNode("v-if",!0)]))],2)}]]),ce=t.defineComponent({name:"BTablePagination",components:{BPagination:re},props:{paginated:Boolean,total:[Number,String],perPage:[Number,String],currentPage:[Number,String],paginationSimple:Boolean,paginationSize:String,rounded:Boolean,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:Boolean,paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},emits:{"page-change":e=>!0,"update:currentPage":e=>!0},data(){return{newCurrentPage:this.currentPage}},watch:{currentPage(e){this.newCurrentPage=e}},methods:{pageChanged(e){this.newCurrentPage=e>0?e:1,this.$emit("update:currentPage",this.newCurrentPage),this.$emit("page-change",this.newCurrentPage)}}});const ue={class:"top level"},de={class:"level-left"},he={class:"level-right"},pe={key:0,class:"level-item"};var me=C(ce,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-pagination");return t.openBlock(),t.createElementBlock("div",ue,[t.createElementVNode("div",de,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("div",he,[e.paginated?(t.openBlock(),t.createElementBlock("div",pe,[t.createVNode(s,{"icon-pack":e.iconPack,total:e.total,"per-page":e.perPage,simple:e.paginationSimple,size:e.paginationSize,"model-value":e.newCurrentPage,rounded:e.rounded,onChange:e.pageChanged,"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,"page-input":e.pageInput,order:e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput},null,8,["icon-pack","total","per-page","simple","size","model-value","rounded","onChange","aria-next-label","aria-previous-label","aria-page-label","aria-current-label","page-input","order","page-input-position","debounce-page-input"])])):t.createCommentVNode("v-if",!0)])])}]]),ge=Object.defineProperty,fe=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ve=(e,t,o)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,we=(e,t)=>{for(var o in t||(t={}))Ce.call(t,o)&&ve(e,o,t[o]);if(ke)for(var o of ke(t))ye.call(t,o)&&ve(e,o,t[o]);return e};function Se(e,i){return n=we(we({},{label:void 0,customKey:void 0,field:void 0,meta:void 0,width:void 0,numeric:void 0,centered:void 0,searchable:void 0,sortable:void 0,visible:!0,subheading:void 0,customSort:void 0,customSearch:void 0,sticky:void 0,headerSelectable:void 0,headerClass:void 0,thAttrs:()=>({}),tdAttrs:()=>({})}),i),l={newKey:i.customKey||i.label,_isTableColumn:!0,get thClasses(){const e=this.thAttrs(this),t=[this.headerClass,{"is-sortable":this.sortable,"is-sticky":this.sticky,"is-unselectable":this.isHeaderUnSelectable}];return e&&e.class&&t.push(e.class),t},get thStyle(){const e=this.thAttrs(this),t=[this.style];return e&&e.style&&t.push(e.style),t},get thWrapStyle(){return this.style},get style(){var e;return{width:null!=(e=r(this.width))?e:void 0}},getRootClasses(e){const t=this.tdAttrs(e,this),o=[this.rootClasses];return t&&t.class&&o.push(t.class),o},getRootStyle(e){const t=this.tdAttrs(e,this),o=[];return t&&t.style&&o.push(t.style),o},$slots:{default:e=>[t.h("span",{innerHTML:o(e.row,i.field)})]},get rootClasses(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]},get isHeaderUnSelectable(){return!this.headerSelectable&&!!this.sortable}},fe(n,be(l));var n,l}const Be={thAttrs:()=>({}),tdAttrs:()=>({}),getRootClasses:()=>[],getRootStyle:()=>{},$slots:{}};var De=t.defineComponent({name:"BTable",components:{BCheckbox:S,BIcon:V,BInput:$,BLoading:F,BSlotComponent:z,BTableMobileSort:X,BTablePagination:me},mixins:[f],provide(){return{$table:this}},props:{data:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxType:{type:String,default:"is-primary"},checkboxPosition:{type:String,default:"left",validator:e=>["left","right"].indexOf(e)>=0},stickyCheckbox:{type:Boolean,default:!1},selected:Object,isRowSelectable:{type:Function,default:()=>!0},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:()=>!0},checkedRows:{type:Array,default:()=>[]},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:()=>[]},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},detailIcon:{type:String,default:"chevron-right"},paginationPosition:{type:String,default:"bottom",validator:e=>["bottom","top","both"].indexOf(e)>=0},paginationRounded:Boolean,backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:()=>""},openedDetailed:{type:Array,default:()=>[]},hasDetailedVisible:{type:Function,default:()=>!0},detailKey:{type:String,default:""},detailTransition:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},draggableColumn:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean,showHeader:{type:Boolean,default:!0},debounceSearch:Number,caption:String,showCaption:{type:Boolean,default:!0},pageInput:{type:Boolean,default:!1},paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},emits:{cellclick:(e,t,o,i)=>!0,check:(e,t)=>!0,"check-all":e=>!0,click:e=>!0,columndragend:e=>!0,columndragleave:e=>!0,columndragover:e=>!0,columndragstart:e=>!0,columndrop:e=>!0,contextmenu:(e,t)=>!0,dblclick:e=>!0,"details-close":e=>!0,"details-open":e=>!0,dragend:e=>!0,dragleave:e=>!0,dragover:e=>!0,dragstart:e=>!0,drop:e=>!0,"filters-change":e=>!0,"page-change":e=>!0,select:(e,t)=>!0,sort:(e,t,o)=>!0,"sorting-priority-removed":e=>!0,"update:checkedRows":e=>!0,"update:currentPage":e=>!0,"update:openedDetailed":e=>!0,"update:selected":e=>!0},data(){return{sortMultipleDataLocal:[],getValueByPath:o,visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:[...this.checkedRows],lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},defaultSlots:[],firstTimeSort:!0,isDraggingRow:!1,isDraggingColumn:!1,debouncedHandleFiltersChange:void 0,_selectedRow:null,mayBeTouchDragging:!1,touchDragoverTarget:null,_draggedCellEl:void 0,draggedCellContent:""}},computed:{sortMultipleDataComputed(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable}},tableStyle(){return{height:r(this.height)}},touchDraggedCellClasses(){return{"has-mobile-cards":this.mobileCards}},visibleData(){if(!this.paginated)return this.newData;const e=this.newCurrentPage,t=+this.perPage;if(this.newData.length<=t)return this.newData;{const o=(e-1)*t,i=parseInt(o+"",10)+parseInt(t+"",10);return this.newData.slice(o,i)}},visibleColumns(){return this.newColumns?this.newColumns.filter((e=>e.visible||void 0===e.visible)):this.newColumns},isAllChecked(){const e=this.visibleData.filter((e=>this.isRowCheckable(e)));if(0===e.length)return!1;return!e.some((e=>i(this.newCheckedRows,e,this.customIsChecked)<0))},isAllUncheckable(){return 0===this.visibleData.filter((e=>this.isRowCheckable(e))).length},hasSortablenewColumns(){return this.newColumns.some((e=>e.sortable))},hasSearchablenewColumns(){return this.newColumns.some((e=>e.searchable))},hasCustomSubheadings(){return!(!this.$slots||!this.$slots.subheading)||this.newColumns.some((e=>e.subheading||e.$slots.subheading))},columnCount(){let e=this.visibleColumns.length;return e+=this.checkable?1:0,e+=this.detailed&&this.showDetailIcon?1:0,e},showDetailRowIcon(){return this.detailed&&this.showDetailIcon},isScrollable(){return!!this.scrollable||!!this.newColumns&&this.newColumns.some((e=>e.sticky))},newColumns(){return this.columns&&this.columns.length?this.columns.map((e=>Se(0,e))):this.defaultSlots},canDragRow(){return this.draggable&&!this.isDraggingColumn},canDragColumn(){return this.draggableColumn&&!this.isDraggingRow}},watch:{data(e){this.newData=e,this.backendFiltering||(this.newData=e.filter((e=>this.isRowFiltered(e)))),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=this.newData.length)},total(e){this.backendPagination&&(this.newDataTotal=e)},currentPage(e){this.newCurrentPage=e},newCurrentPage(e){this.$emit("update:currentPage",e)},checkedRows(e){this.newCheckedRows=[...e]},debounceSearch:{handler(e){this.debouncedHandleFiltersChange=d(this.handleFiltersChange,e)},immediate:!0},filters:{handler(e){this.debounceSearch?this.debouncedHandleFiltersChange(e):this.handleFiltersChange(e)},deep:!0},openedDetailed(e){this.visibleDetailRows=e}},methods:{onFiltersEvent(e){this.$emit(`filters-event-${this.filtersEvent}`,{event:e,filters:this.filters})},handleFiltersChange(e){this.backendFiltering?this.$emit("filters-change",e):(this.newData=this.data.filter((e=>this.isRowFiltered(e))),this.backendPagination||(this.newDataTotal=this.newData.length),this.backendSorting||(this.sortMultiple&&this.sortMultipleDataLocal&&this.sortMultipleDataLocal.length>0?this.doSortMultiColumn():Object.keys(this.currentSortColumn).length>0&&this.doSortSingleColumn(this.currentSortColumn)))},findIndexOfSortData(e){const t=this.sortMultipleDataComputed.filter((t=>t.field===e.field))[0];return this.sortMultipleDataComputed.indexOf(t)+1},removeSortingPriority(e){this.backendSorting?this.$emit("sorting-priority-removed",e.field):(this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter((t=>t.field!==e.field)),0===this.sortMultipleDataLocal.length?this.resetMultiSorting():this.newData=s(this.newData,this.sortMultipleDataLocal))},resetMultiSorting(){this.sortMultipleDataLocal=[],this.currentSortColumn=Be,this.newData=this.data},sortBy(e,t,i,n){let l=[];return l=i&&"function"==typeof i?[...e].sort(((e,t)=>i(e,t,n))):[...e].sort(((e,i)=>{let l=o(e,t),a=o(i,t);return"boolean"==typeof l&&"boolean"==typeof a?n?+l-+a:+a-+l:!c(a)&&c(l)?n?1:-1:!c(l)&&c(a)?n?-1:1:l===a?0:(l="string"==typeof l?l.toUpperCase():l,a="string"==typeof a?a.toUpperCase():a,n?l>a?1:-1:l>a?-1:1)})),l},sortMultiColumn(e){if(this.currentSortColumn=Be,!this.backendSorting){const t=this.sortMultipleDataLocal.filter((t=>t.field===e.field))[0];t?t.order="desc"===t.order?"asc":"desc":this.sortMultipleDataLocal.push({field:e.field,order:this.isAsc?"asc":"desc",customSort:e.customSort}),this.doSortMultiColumn()}},doSortMultiColumn(){this.newData=s(this.newData,this.sortMultipleDataLocal)},sort(e,o=!1,i=null){e&&e.sortable&&(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&i[this.sortMultipleKey]||!this.sortMultipleKey)?o?this.doSortMultiColumn():this.sortMultiColumn(e):(this.sortMultiple&&(this.sortMultipleDataLocal=[]),o||(this.isAsc=t.toRaw(e)===t.toRaw(this.currentSortColumn)?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",e.field,this.isAsc?"asc":"desc",i),this.backendSorting||this.doSortSingleColumn(e),this.currentSortColumn=e))},doSortSingleColumn(e){this.newData=this.sortBy(this.newData,e.field,e.customSort,this.isAsc)},isRowSelected(e,t){return!!t&&(this.customRowKey?e[this.customRowKey]===t[this.customRowKey]:e===t)},isRowChecked(e){return i(this.newCheckedRows,e,this.customIsChecked)>=0},removeCheckedRow(e){const t=i(this.newCheckedRows,e,this.customIsChecked);t>=0&&this.newCheckedRows.splice(t,1)},checkAll(){const e=this.isAllChecked;this.visibleData.forEach((t=>{this.isRowCheckable(t)&&this.removeCheckedRow(t),e||this.isRowCheckable(t)&&this.newCheckedRows.push(t)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow(e,t,o){if(!this.isRowCheckable(e))return;const i=this.lastCheckedRowIndex;this.lastCheckedRowIndex=t,o.shiftKey&&null!==i&&t!==i?this.shiftCheckRow(e,t,i):this.isRowChecked(e)?this.removeCheckedRow(e):this.newCheckedRows.push(e),this.$emit("check",this.newCheckedRows,e),this.$emit("update:checkedRows",this.newCheckedRows)},shiftCheckRow(e,t,o){const i=this.visibleData.slice(Math.min(t,o),Math.max(t,o)+1),n=!this.isRowChecked(e);i.forEach((e=>{this.removeCheckedRow(e),n&&this.isRowCheckable(e)&&this.newCheckedRows.push(e)}))},selectRow(e){this.$emit("click",e),this._selectedRow=e,this.selected!==e&&this.isRowSelectable(e)&&(this.$emit("select",e,this.selected),this.$emit("update:selected",e))},toggleDetails(e){this.isVisibleDetailRow(e)?(this.closeDetailRow(e),this.$emit("details-close",e)):(this.openDetailRow(e),this.$emit("details-open",e)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow(e){const t=this.handleDetailKey(e);this.visibleDetailRows.push(t)},closeDetailRow(e){const t=this.handleDetailKey(e),o=this.visibleDetailRows.indexOf(t);o>=0&&this.visibleDetailRows.splice(o,1)},isVisibleDetailRow(e){const t=this.handleDetailKey(e);return this.visibleDetailRows.indexOf(t)>=0},isActiveDetailRow(e){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(e)},isActiveCustomDetailRow(e){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(e)},isRowFiltered(e){for(const t in this.filters){if(!this.filters[t])continue;const o=this.filters[t],i=this.newColumns.filter((e=>e.field===t))[0];if(i&&i.customSearch&&"function"==typeof i.customSearch){if(!i.customSearch(e,o))return!1}else{const i=this.getValueByPath(e,t);if(null==i)return!1;if(Number.isInteger(i)){if(i!==Number(o))return!1}else{const e=new RegExp(l(o+""),"i");if(Array.isArray(i)){if(!i.some((t=>e.test(a(t))||e.test(t))))return!1}else if(!e.test(a(i))&&!e.test(i))return!1}}}return!0},handleDetailKey(e){const t=this.detailKey;return t.length&&e?e[t]:e},checkPredefinedDetailedRows(){if(this.openedDetailed.length>0&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&t.toRaw(this.currentSortColumn)!==Be)for(let e=0;e<this.newColumns.length;e++)if(this.newColumns[e].field===this.currentSortColumn.field){this.currentSortColumn=this.newColumns[e];break}},hasCustomFooterSlot(){var e;const o=this.$slots.footer();if(o.length>1)return!0;if(o[0].type===t.Fragment)return!0;const i=null==(e=o[0].el)?void 0:e.tag;return"th"===i||"td"===i},hasBottomLeftSlot(){return void 0!==this.$slots["bottom-left"]},pressedArrow(e){if(!this.visibleData.length)return;let t=this.visibleData.indexOf(this.selected)+e;t=t<0?0:t>this.visibleData.length-1?this.visibleData.length-1:t;const o=this.visibleData[t];if(this.isRowSelectable(o))this.selectRow(o);else{let o=null;if(e>0)for(let e=t;e<this.visibleData.length&&null===o;e++)this.isRowSelectable(this.visibleData[e])&&(o=e);else for(let e=t;e>=0&&null===o;e--)this.isRowSelectable(this.visibleData[e])&&(o=e);o>=0&&this.selectRow(this.visibleData[o])}},focus(){this.focusable&&this.$el.querySelector("table").focus()},initSort(){if(this.sortMultiple&&this.sortMultipleData)this.sortMultipleData.forEach((e=>{this.sortMultiColumn(e)}));else{if(!this.defaultSort)return;let e="",t=this.defaultSortDirection;Array.isArray(this.defaultSort)?(e=this.defaultSort[0],this.defaultSort[1]&&(t=this.defaultSort[1])):e=this.defaultSort;const o=this.newColumns.filter((t=>t.field===e))[0];o&&(this.isAsc="desc"!==t.toLowerCase(),this.sort(o,!0))}},handleDragStart(e,t,o){this.canDragRow&&(this.isDraggingRow=!0,this.$emit("dragstart",{event:e,row:t,index:o}))},handleDragEnd(e,t,o){this.canDragRow&&(this.isDraggingRow=!1,this.$emit("dragend",{event:e,row:t,index:o}))},handleDrop(e,t,o){this.canDragRow&&this.$emit("drop",{event:e,row:t,index:o})},handleDragOver(e,t,o){this.canDragRow&&this.$emit("dragover",{event:e,row:t,index:o})},handleDragLeave(e,t,o){this.canDragRow&&this.$emit("dragleave",{event:e,row:t,index:o})},emitEventForRow(e,t,o){return this.$attrs[`on${e}`]?this.$emit(e,o,t):null},handleColumnDragStart(e,t,o){this.canDragColumn&&(this.isDraggingColumn=!0,this.$emit("columndragstart",{event:e,column:t,index:o}))},handleColumnDragEnd(e,t,o){this.canDragColumn&&(this.isDraggingColumn=!1,this.$emit("columndragend",{event:e,column:t,index:o}))},handleColumnDrop(e,t,o){this.canDragColumn&&this.$emit("columndrop",{event:e,column:t,index:o})},handleColumnDragOver(e,t,o){this.canDragColumn&&this.$emit("columndragover",{event:e,column:t,index:o})},handleColumnDragLeave(e,t,o){this.canDragColumn&&this.$emit("columndragleave",{event:e,column:t,index:o})},handleTouchStart(e,t){this.canDragRow&&(this.isDraggingColumn||this._selectedRow===t&&(e.preventDefault(),this.mayBeTouchDragging=!0))},handleTouchMove(e){if(!this.canDragRow)return;if(!this.mayBeTouchDragging)return;if(!this.isDraggingRow){const t=e.target,o=t.closest("tr");this.draggedCellContent=o?`<table class="table"><tr>${o.innerHTML}</tr></table>`:t.innerHTML,this.$refs.draggedCell.style.width=o?`${o.offsetWidth}px`:`${t.offsetWidth}px`,t.dispatchEvent(u(e,{type:"dragstart"}))}const t=e.touches[0],o=document.elementFromPoint(t.clientX,t.clientY);null!=o?o!==this.touchDragoverTarget&&(null!=this.touchDragoverTarget&&this.touchDragoverTarget.dispatchEvent(u(e,{type:"dragleave",target:this.touchDragoverTarget})),this.touchDragoverTarget=o,o.dispatchEvent(u(e,{type:"dragover",target:o}))):null!=this.touchDragoverTarget&&(this.touchDragoverTarget.dispatchEvent(u(e,{type:"dragleave",target:this.touchDragoverTarget})),this.touchDragoverTarget=null),this.updateDraggedCell(t)},handleTouchEnd(e){if(this.canDragRow){if(this.isDraggingRow){const t=e.changedTouches[0],o=document.elementFromPoint(t.clientX,t.clientY);null!=o&&o.dispatchEvent(u(e,{type:"drop",target:o})),e.target.dispatchEvent(u(e,{type:"dragend"})),this._selectedRow=null}this.mayBeTouchDragging=!1}},handleColumnTouchStart(e){this.canDragColumn&&(this.isDraggingRow||(e.preventDefault(),this.mayBeTouchDragging=!0))},handleColumnTouchMove(e){if(!this.canDragColumn)return;if(!this.mayBeTouchDragging)return;if(!this.isDraggingColumn){const t=e.target;this.draggedCellContent=t.innerHTML,this.$refs.draggedCell.style.width=`${t.offsetWidth}px`,t.dispatchEvent(u(e,{type:"dragstart"}))}const t=e.touches[0],o=document.elementFromPoint(t.clientX,t.clientY);null!=o?o!==this.touchDragoverTarget&&(null!=this.touchDragoverTarget&&this.touchDragoverTarget.dispatchEvent(u(e,{type:"dragleave",target:this.touchDragoverTarget})),this.touchDragoverTarget=o,o.dispatchEvent(u(e,{type:"dragover",target:o}))):null!=this.touchDragoverTarget&&(this.touchDragoverTarget.dispatchEvent(u(e,{type:"dragleave",target:this.touchDragoverTarget})),this.touchDragoverTarget=null),this.updateDraggedCell(t)},handleColumnTouchEnd(e){if(this.canDragColumn){if(this.isDraggingColumn){const t=e.changedTouches[0],o=document.elementFromPoint(t.clientX,t.clientY);null!=o&&o.dispatchEvent(u(e,{type:"drop",target:o})),e.target.dispatchEvent(u(e,{type:"dragend"}))}this.mayBeTouchDragging=!1}},updateDraggedCell({clientX:e,clientY:t}){const o=this.$refs.draggedCell.getBoundingClientRect(),i=t+window.scrollY-o.height/2,n=e+window.scrollX-o.width/2;this.$refs.draggedCell.style.top=`calc(${i}px)`,this.$refs.draggedCell.style.left=`calc(${n}px)`},_registerTableColumn(e){e._isTableColumn&&this.defaultSlots.push(e)},_unregisterTableColumn(e){const t=this.defaultSlots.indexOf(e);-1!==t&&this.defaultSlots.splice(t,1)}},mounted(){this.checkPredefinedDetailedRows(),this.checkSort();const e=e=>{e&&null==this.$data._draggedCellEl&&(this.$data._draggedCellEl=function(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}(this.$refs.draggedCell))};this.$watch("draggable",e,{immediate:!0}),this.$watch("draggableColumn",e,{immediate:!0})},beforeUnmount(){this.$data._draggedCellEl&&n(this.$data._draggedCellEl)}});const Ve=["tabindex"],Pe={key:1},xe={key:0,width:"40px"},Ie=["onClick","draggable","onDragstart","onDragend","onDrop","onDragover","onDragleave"],Re={key:0,class:"multi-sort-icons"},Ee=["onClick"],Ne={key:0,class:"is-subheading"},$e={key:0,width:"40px"},Te={key:1},Me={key:2},Ae={key:1},Fe={key:0,width:"40px"},ze={key:1},Le={key:2},Oe=["onClick","onDblclick","onMouseenter","onMouseleave","onContextmenu","draggable","onDragstart","onDragend","onDrop","onDragover","onDragleave","onTouchstart"],Ke={key:0,class:"chevron-cell"},Ue=["onClick"],je={key:0,class:"detail"},_e=["colspan"],He={class:"detail-container"},qe={key:0,class:"is-empty"},We=["colspan"],Ye={key:2},Xe={class:"table-footer"},Je=["colspan"],Ge=["innerHTML"];var Qe=C(De,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-table-mobile-sort"),r=t.resolveComponent("b-table-pagination"),c=t.resolveComponent("b-checkbox"),u=t.resolveComponent("b-slot-component"),d=t.resolveComponent("b-icon"),h=t.resolveComponent("b-input"),p=t.resolveComponent("b-loading");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"b-table"},e.rootAttrs),[t.renderSlot(e.$slots,"default"),e.mobileCards&&e.hasSortablenewColumns?(t.openBlock(),t.createBlock(s,{key:0,"current-sort-column":e.currentSortColumn,"sort-multiple":e.sortMultiple,"sort-multiple-data":e.sortMultipleDataComputed,"is-asc":e.isAsc,columns:e.newColumns,placeholder:e.mobileSortPlaceholder,"icon-pack":e.iconPack,"sort-icon":e.sortIcon,"sort-icon-size":e.sortIconSize,onSort:o[0]||(o[0]=(t,o)=>e.sort(t,null,o)),onRemovePriority:o[1]||(o[1]=t=>e.removeSortingPriority(t))},null,8,["current-sort-column","sort-multiple","sort-multiple-data","is-asc","columns","placeholder","icon-pack","sort-icon","sort-icon-size"])):t.createCommentVNode("v-if",!0),!e.paginated||"top"!==e.paginationPosition&&"both"!==e.paginationPosition?t.createCommentVNode("v-if",!0):t.renderSlot(e.$slots,"pagination",{key:1},(()=>[t.createVNode(r,t.mergeProps(e.fallthroughAttrs,{"per-page":e.perPage,paginated:e.paginated,rounded:e.paginationRounded,"icon-pack":e.iconPack,total:e.newDataTotal,"current-page":e.newCurrentPage,"onUpdate:currentPage":o[2]||(o[2]=t=>e.newCurrentPage=t),"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,onPageChange:o[3]||(o[3]=t=>e.$emit("page-change",t)),"page-input":e.pageInput,"pagination-order":e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"top-left")])),_:3},16,["per-page","paginated","rounded","icon-pack","total","current-page","aria-next-label","aria-previous-label","aria-page-label","aria-current-label","page-input","pagination-order","page-input-position","debounce-page-input"])])),t.createElementVNode("div",{class:t.normalizeClass(["table-wrapper",e.tableWrapperClasses]),style:t.normalizeStyle(e.tableStyle)},[t.createElementVNode("table",{class:t.normalizeClass(["table",e.tableClasses]),tabindex:e.focusable?0:void 0,onKeydown:[o[9]||(o[9]=t.withKeys(t.withModifiers((t=>e.pressedArrow(-1)),["self","prevent"]),["up"])),o[10]||(o[10]=t.withKeys(t.withModifiers((t=>e.pressedArrow(1)),["self","prevent"]),["down"]))]},[e.caption?t.withDirectives((t.openBlock(),t.createElementBlock("caption",{key:0},t.toDisplayString(e.caption),513)),[[t.vShow,e.showCaption]]):t.createCommentVNode("v-if",!0),e.newColumns.length&&e.showHeader?(t.openBlock(),t.createElementBlock("thead",Pe,[t.createElementVNode("tr",null,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",xe)):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",{key:1,class:t.normalizeClass(["checkbox-cell",{"is-sticky":e.stickyCheckbox}])},[e.headerCheckable?t.renderSlot(e.$slots,"check-all",{key:0,isAllChecked:e.isAllChecked,isAllUncheckable:e.isAllUncheckable,checkAll:e.checkAll},(()=>[t.createVNode(c,{autocomplete:"off","model-value":e.isAllChecked,type:e.checkboxType,disabled:e.isAllUncheckable,onChange:e.checkAll},null,8,["model-value","type","disabled","onChange"])])):t.createCommentVNode("v-if",!0)],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleColumns,((i,n)=>(t.openBlock(),t.createElementBlock("th",t.mergeProps({key:i.newKey+":"+n+"header"},i.thAttrs(i),{class:[i.thClasses,{"is-current-sort":!e.sortMultiple&&e.currentSortColumn===i}],style:i.thStyle,onClick:t.withModifiers((t=>e.sort(i,null,t)),["stop"]),draggable:e.canDragColumn,onDragstart:t=>e.handleColumnDragStart(t,i,n),onDragend:t=>e.handleColumnDragEnd(t,i,n),onDrop:t=>e.handleColumnDrop(t,i,n),onDragover:t=>e.handleColumnDragOver(t,i,n),onDragleave:t=>e.handleColumnDragLeave(t,i,n),onTouchstart:o[4]||(o[4]=t=>e.handleColumnTouchStart(t)),onTouchmove:o[5]||(o[5]=t=>e.handleColumnTouchMove(t)),onTouchend:o[6]||(o[6]=t=>e.handleColumnTouchEnd(t))}),[t.createElementVNode("div",{class:t.normalizeClass(["th-wrap is-relative",{"is-numeric":i.numeric,"is-centered":i.centered}]),style:t.normalizeStyle(i.thWrapStyle)},[i.$slots.header?(t.openBlock(),t.createBlock(u,{key:0,component:i,scoped:"",name:"header",tag:"span",props:{column:i,index:n}},null,8,["component","props"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(i.label)+" ",1),e.sortMultiple&&e.sortMultipleDataComputed&&e.sortMultipleDataComputed.length>0&&e.sortMultipleDataComputed.filter((e=>e.field===i.field)).length>0?(t.openBlock(),t.createElementBlock("span",Re,[t.createVNode(d,{icon:e.sortIcon,pack:e.iconPack,both:"",size:e.sortIconSize,class:t.normalizeClass({"is-desc":"desc"===e.sortMultipleDataComputed.filter((e=>e.field===i.field))[0].order})},null,8,["icon","pack","size","class"]),t.createTextVNode(" "+t.toDisplayString(e.findIndexOfSortData(i))+" ",1),t.createElementVNode("button",{class:"delete is-small multi-sort-cancel-icon",type:"button",onClick:t.withModifiers((t=>e.removeSortingPriority(i)),["stop"])},null,8,Ee)])):(t.openBlock(),t.createBlock(d,{key:1,icon:e.sortIcon,pack:e.iconPack,both:"",size:e.sortIconSize,class:t.normalizeClass(["sort-icon",{"is-desc":!e.isAsc,"is-invisible":e.currentSortColumn!==i}])},null,8,["icon","pack","size","class"]))],64))],6)],16,Ie)))),128)),e.checkable&&"right"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",{key:2,class:t.normalizeClass(["checkbox-cell",{"is-sticky":e.stickyCheckbox}])},[e.headerCheckable?t.renderSlot(e.$slots,"check-all",{key:0,isAllChecked:e.isAllChecked,isAllUncheckable:e.isAllUncheckable,checkAll:e.checkAll},(()=>[t.createVNode(c,{autocomplete:"off","model-value":e.isAllChecked,type:e.checkboxType,disabled:e.isAllUncheckable,onChange:e.checkAll},null,8,["model-value","type","disabled","onChange"])])):t.createCommentVNode("v-if",!0)],2)):t.createCommentVNode("v-if",!0)]),e.hasCustomSubheadings?(t.openBlock(),t.createElementBlock("tr",Ne,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",$e)):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",Te)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleColumns,((e,o)=>(t.openBlock(),t.createElementBlock("th",{key:e.newKey+":"+o+"subheading",style:t.normalizeStyle(e.style)},[t.createElementVNode("div",{class:t.normalizeClass(["th-wrap",{"is-numeric":e.numeric,"is-centered":e.centered}]),style:t.normalizeStyle(e.thWrapStyle)},[e.$slots.subheading?(t.openBlock(),t.createBlock(u,{key:0,component:e,scoped:"",name:"subheading",tag:"span",props:{column:e,index:o}},null,8,["component","props"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.subheading),1)],64))],6)],4)))),128)),e.checkable&&"right"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",Me)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.hasSearchablenewColumns?(t.openBlock(),t.createElementBlock("tr",Ae,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",Fe)):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",ze)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleColumns,((o,i)=>(t.openBlock(),t.createElementBlock("th",t.mergeProps({key:o.newKey+":"+i+"searchable"},o.thAttrs(o),{style:o.thStyle,class:{"is-sticky":o.sticky}}),[t.createElementVNode("div",{class:"th-wrap",style:t.normalizeStyle(o.thWrapStyle)},[o.searchable?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.$slots.searchable?(t.openBlock(),t.createBlock(u,{key:0,component:o,scoped:!0,name:"searchable",tag:"span",props:{column:o,filters:e.filters}},null,8,["component","props"])):(t.openBlock(),t.createBlock(h,t.mergeProps({key:1,[t.toHandlerKey(e.filtersEvent)]:e.onFiltersEvent},{modelValue:e.filters[o.field],"onUpdate:modelValue":t=>e.filters[o.field]=t,type:o.numeric?"number":"text"}),null,16,["modelValue","onUpdate:modelValue","type"]))],64)):t.createCommentVNode("v-if",!0)],4)],16)))),128)),e.checkable&&"right"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",Le)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,((i,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.customRowKey?i[e.customRowKey]:n},[t.createElementVNode("tr",{class:t.normalizeClass([e.rowClass(i,n),{"is-selected":e.isRowSelected(i,e.selected),"is-checked":e.isRowChecked(i)}]),onClick:t=>e.selectRow(i),onDblclick:t=>e.$emit("dblclick",i),onMouseenter:t=>e.emitEventForRow("mouseenter",t,i),onMouseleave:t=>e.emitEventForRow("mouseleave",t,i),onContextmenu:t=>e.$emit("contextmenu",i,t),draggable:e.canDragRow,onDragstart:t=>e.handleDragStart(t,i,n),onDragend:t=>e.handleDragEnd(t,i,n),onDrop:t=>e.handleDrop(t,i,n),onDragover:t=>e.handleDragOver(t,i,n),onDragleave:t=>e.handleDragLeave(t,i,n),onTouchstart:t=>e.handleTouchStart(t,i),onTouchmove:o[7]||(o[7]=t=>e.handleTouchMove(t)),onTouchend:o[8]||(o[8]=t=>e.handleTouchEnd(t))},[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("td",Ke,[e.hasDetailedVisible(i)?(t.openBlock(),t.createElementBlock("a",{key:0,role:"button",onClick:t.withModifiers((t=>e.toggleDetails(i)),["stop"])},[t.createVNode(d,{icon:e.detailIcon,pack:e.iconPack,both:"",class:t.normalizeClass({"is-expanded":e.isVisibleDetailRow(i)})},null,8,["icon","pack","class"])],8,Ue)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("td",{key:1,class:t.normalizeClass(["checkbox-cell",{"is-sticky":e.stickyCheckbox}])},[t.createVNode(c,{autocomplete:"off","model-value":e.isRowChecked(i),type:e.checkboxType,disabled:!e.isRowCheckable(i),onClick:t.withModifiers((t=>e.checkRow(i,n,t)),["prevent","stop"])},null,8,["model-value","type","disabled","onClick"])],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleColumns,((o,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.newKey+":"+n+":"+l},[o.$slots.default?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,component:o},o.tdAttrs(i,o),{scoped:"",name:"default",tag:"td",class:o.getRootClasses(i),style:o.getRootStyle(i),"data-label":o.label,props:{row:i,column:o,index:n,colindex:l,toggleDetails:e.toggleDetails,isActiveDetailRow:e.isActiveDetailRow},onClick:t=>e.$emit("cellclick",i,o,n,l)}),null,16,["component","class","style","data-label","props","onClick"])):t.createCommentVNode("v-if",!0)],64)))),128)),e.checkable&&"right"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(["checkbox-cell",{"is-sticky":e.stickyCheckbox}])},[t.createVNode(c,{autocomplete:"off","model-value":e.isRowChecked(i),type:e.checkboxType,disabled:!e.isRowCheckable(i),onClick:t.withModifiers((t=>e.checkRow(i,n,t)),["prevent","stop"])},null,8,["model-value","type","disabled","onClick"])],2)):t.createCommentVNode("v-if",!0)],42,Oe),t.createVNode(t.Transition,{name:e.detailTransition},{default:t.withCtx((()=>[e.isActiveDetailRow(i)?(t.openBlock(),t.createElementBlock("tr",je,[t.createElementVNode("td",{colspan:e.columnCount},[t.createElementVNode("div",He,[t.renderSlot(e.$slots,"detail",{row:i,index:n})])],8,_e)])):t.createCommentVNode("v-if",!0)])),_:2},1032,["name"]),e.isActiveCustomDetailRow(i)?t.renderSlot(e.$slots,"detail",{key:0,row:i,index:n}):t.createCommentVNode("v-if",!0)],64)))),128)),e.visibleData.length?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("tr",qe,[t.createElementVNode("td",{colspan:e.columnCount},[t.renderSlot(e.$slots,"empty")],8,We)]))]),void 0!==e.$slots.footer?(t.openBlock(),t.createElementBlock("tfoot",Ye,[t.createElementVNode("tr",Xe,[e.hasCustomFooterSlot()?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock("th",{key:1,colspan:e.columnCount},[t.renderSlot(e.$slots,"footer")],8,Je))])])):t.createCommentVNode("v-if",!0)],42,Ve),e.loading?t.renderSlot(e.$slots,"loading",{key:0},(()=>[t.createVNode(p,{"is-full-page":!1,"model-value":e.loading},null,8,["model-value"])])):t.createCommentVNode("v-if",!0)],6),e.checkable&&e.hasBottomLeftSlot()||e.paginated&&("bottom"===e.paginationPosition||"both"===e.paginationPosition)?t.renderSlot(e.$slots,"pagination",{key:2},(()=>[t.createVNode(r,t.mergeProps(e.fallthroughAttrs,{"per-page":e.perPage,paginated:e.paginated,rounded:e.paginationRounded,"icon-pack":e.iconPack,total:e.newDataTotal,"current-page":e.newCurrentPage,"onUpdate:currentPage":o[11]||(o[11]=t=>e.newCurrentPage=t),"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,onPageChange:o[12]||(o[12]=t=>e.$emit("page-change",t)),"page-input":e.pageInput,"pagination-order":e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"bottom-left")])),_:3},16,["per-page","paginated","rounded","icon-pack","total","current-page","aria-next-label","aria-previous-label","aria-page-label","aria-current-label","page-input","pagination-order","page-input-position","debounce-page-input"])])):t.createCommentVNode("v-if",!0),t.createCommentVNode(" eslint-disable vue/no-v-html "),t.withDirectives(t.createElementVNode("div",{ref:"draggedCell",class:t.normalizeClass(["touch-dragged-cell",e.touchDraggedCellClasses]),innerHTML:e.draggedCellContent},null,10,Ge),[[t.vShow,e.mayBeTouchDragging&&(e.isDraggingRow||e.isDraggingColumn)]]),t.createCommentVNode(" eslint-enable vue/no-v-html ")],16)}]]),Ze=t.defineComponent({name:"BTableColumn",inject:{$table:{name:"$table",default:!1}},props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,customSearch:Function,sticky:Boolean,headerSelectable:Boolean,headerClass:String,cellClass:String,thAttrs:{type:Function,default:()=>({})},tdAttrs:{type:Function,default:()=>({})}},data(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{thClasses(){const e=this.thAttrs(this),t=[this.headerClass,{"is-sortable":this.sortable,"is-sticky":this.sticky,"is-unselectable":this.isHeaderUnSelectable}];return e&&e.class&&t.push(e.class),t},thStyle(){const e=this.thAttrs(this),t=[this.style];return e&&e.style&&t.push(e.style),t},thWrapStyle(){const e=r(this.width);return null==e||e.trim().endsWith("%")?{}:{width:e}},rootClasses(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]},style(){var e;return{width:null!=(e=r(this.width))?e:void 0}},hasDefaultSlot(){return!!this.$slots.default},isHeaderUnSelectable(){return!this.headerSelectable&&this.sortable}},methods:{getRootClasses(e){const t=this.tdAttrs(e,this),o=[this.rootClasses];return t&&t.class&&o.push(t.class),o},getRootStyle(e){const t=this.tdAttrs(e,this),o=[];return t&&t.style&&o.push(t.style),o}},created(){if(!this.$table)throw new Error("You should wrap bTableColumn on a bTable");this.$table._registerTableColumn(this)},beforeUnmount(){this.$table._unregisterTableColumn(this)},render:()=>null});const et=(e,t,o)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)},tt={install(e){et(e,Qe),et(e,Ze)}};e.BTable=Qe,e.BTableColumn=Ze,e.default=tt,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ /*! Buefy v3.0.3 | MIT License | github.com/buefy/buefy */
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).Table={},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,t,o){if(!e)return-1;if(!o||"function"!=typeof o)return e.indexOf(t);for(let i=0;i<e.length;i++)if(o(e[i],t))return i;return-1}function n(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function l(e){return e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):e}function a(e){return e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function s(e,t){return JSON.parse(JSON.stringify(e)).sort((i=t,(e,t)=>i.map((i=>{const{field:n,order:l,customSort:a}=i;if("function"==typeof a)return a(e,t,"desc"!==l);{const i=o(e,n),a=o(t,n),s=i>a?1:i<a?-1:0;return"desc"===l?-s:s}})).reduce(((e,t)=>e||t),0)));var i}function r(e){return void 0===e?null:isNaN(+e)?`${e}`:e+"px"}const c=e=>null==e;const u=(e,t)=>{const{type:o,target:i}=t;let n=0,l=0;if(null!=i&&i!==e.target){const t=e.target.getBoundingClientRect(),o=i.getBoundingClientRect();n=o.left-t.left,l=o.top-t.top}const a=e.touches[0]||e.changedTouches[0];return new DragEvent(o,{dataTransfer:new DataTransfer,bubbles:!0,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX+n,clientY:a.clientY+l,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey})};function d(e,t,o){let i;return function(...o){const n=this;clearTimeout(i),i=setTimeout((function(){i=void 0,e.apply(n,o)}),t)}}let h={defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultInputAutocomplete:"on",defaultInputHasCounter:!0,defaultCompatFallthrough:!0,defaultUseHtml5Validation:!0,defaultStatusIcon:!0,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"]};var p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,f=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>h.defaultCompatFallthrough}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class: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&&g.call(e,i)&&(o[i]=e[i]);return o})(e,["style","class","id"])}return this.$attrs}}}),b=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()}}}),k=t.defineComponent({name:"BCheckbox",mixins:[b],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:""}}}),C=(e,t)=>{const o=e.__vccOpts||e;for(const[e,i]of t)o[e]=i;return o};const y=["disabled"],v=["id",".indeterminate","autocomplete","disabled","required","name","value","true-value","false-value","aria-labelledby"],w=["id"];var S=C(k,[["render",function(e,o,i,n,l,a){return t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(["b-checkbox checkbox",[e.size,{"is-disabled":e.disabled}]]),ref:"label",disabled:e.disabledOrUndefined,onClick:o[2]||(o[2]=(...t)=>e.focus&&e.focus(...t)),onKeydown:[o[3]||(o[3]=t.withKeys(t.withModifiers((t=>e.$refs.label.click()),["prevent"]),["enter"])),o[4]||(o[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":o[0]||(o[0]=t=>e.computedValue=t),id:e.inputId,".indeterminate":e.indeterminate,type:"checkbox",ref:"input",onClick:o[1]||(o[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,v),[[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,w)],42,y)}]]);const B={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},D=()=>{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=C(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:B,fa:D(),fas:D(),far:D(),fad:D(),fab:D(),fal:D(),"fa-solid":D(),"fa-regular":D(),"fa-light":D(),"fa-thin":D(),"fa-duotone":D(),"fa-brands":D()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||h.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||h.defaultIconComponent}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,o,i,n,l,a){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const P=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>h.defaultUseHtml5Validation},validationMessage:String,locale:{type:[String,Array],default:()=>h.defaultLocale},statusIcon:{type:Boolean,default:()=>h.defaultStatusIcon}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||h.defaultIconPack,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}});var x=t.defineComponent({name:"BInput",components:{BIcon:V},mixins:[f,P],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>h.defaultInputHasCounter},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||h.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const I=["type","autocomplete","maxlength"],R=["maxlength"],E=["type","autocomplete","maxlength"],N=["maxlength"];var $=C(x,[["render",function(e,o,i,n,l,a){const s=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,I)),[[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,R)),[[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,E)),[[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,N)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(s,{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(s,{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 T="undefined"==typeof window?Object:window.HTMLElement,M=t.defineComponent({name:"BLoading",props:{modelValue:Boolean,programmatic:Boolean,container:[Object,Function,T],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}}},emits:{close:()=>!0,"update:is-full-page":e=>!0,"update:modelValue":e=>!0},data(){return{isActive:this.modelValue||!1,displayInFullPage:this.isFullPage}},watch:{modelValue(e){this.isActive=e},isFullPage(e){this.displayInFullPage=e}},methods:{cancel(){this.canCancel&&this.isActive&&this.close()},close(...e){this.onCancel.apply(null,e),this.$emit("close"),this.$emit("update:modelValue",!1),this.programmatic&&(this.isActive=!1,setTimeout((()=>{n(this.$el)}),150))},keyPress({key:e}){"Escape"!==e&&"Esc"!==e||this.cancel()}},created(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},mounted(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el),this.isActive=!0)},beforeUnmount(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}}),A=t.createElementVNode("div",{class:"loading-icon"},null,-1);var z=C(M,[["render",function(e,o,i,n,l,a){return t.openBlock(),t.createBlock(t.Transition,{name:e.animation},{default:t.withCtx((()=>[e.isActive?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["loading-overlay is-active",{"is-full-page":e.displayInFullPage}])},[t.createElementVNode("div",{class:"loading-background",onClick:o[0]||(o[0]=(...t)=>e.cancel&&e.cancel(...t))}),t.renderSlot(e.$slots,"default",{},(()=>[A]))],2)),[[t.vShow,e.isActive]]):t.createCommentVNode("v-if",!0)])),_:3},8,["name"])}]]),F=t.defineComponent({name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:[String,Object],default:"div"}},methods:{refresh(){this.$forceUpdate()}},render(){return t.h(this.tag,{},this.component.$slots?this.scoped?this.component.$slots[this.name](this.props):this.component.$slots[this.name]():void 0)}}),L=t.defineComponent({name:"BSelect",components:{BIcon:V},mixins:[f,P],props:{modelValue:{type:[String,Number,Boolean,Object,Array,Function,Date,null],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},emits:{blur:e=>!0,focus:e=>!0,"update:modelValue":e=>!0},data(){return{selected:this.modelValue,_elementRef:"select"}},computed:{computedValue:{get(){return this.selected},set(e){this.selected=e,this.$emit("update:modelValue",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{modelValue(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}});const O=["multiple","size"],K={key:0,value:null,disabled:"",hidden:""};var U=C(L,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",{"is-expanded":e.expanded,"has-icons-left":e.icon}]},e.rootAttrs),[t.createElementVNode("span",{class:t.normalizeClass(["select",e.spanClasses])},[t.withDirectives(t.createElementVNode("select",t.mergeProps({"onUpdate:modelValue":o[0]||(o[0]=t=>e.computedValue=t),ref:"select",multiple:e.multiple,size:e.nativeSize},e.fallthroughAttrs,{onBlur:o[1]||(o[1]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[2]||(o[2]=t=>e.$emit("focus",t))}),[e.placeholder?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[null==e.computedValue?(t.openBlock(),t.createElementBlock("option",K,t.toDisplayString(e.placeholder),1)):t.createCommentVNode("v-if",!0)],64)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],16,O),[[t.vModelSelect,e.computedValue]])],2),e.icon?(t.openBlock(),t.createBlock(s,{key:0,class:"is-left",icon:e.icon,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size"])):t.createCommentVNode("v-if",!0)],16)}]]),j=t.defineComponent({name:"BTableMobileSort",components:{BSelect:U,BIcon:V},props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},emits:{removePriority:e=>!0,sort:(e,t)=>!0},data(){return{sortMultipleSelect:null,sortMultipleSelectIndex:-1,mobileSort:this.currentSortColumn,mobileSortIndex:this.columns?this.columns.indexOf(this.currentSortColumn):-1,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder(){return!this.columns||!this.columns.some((e=>e===this.mobileSort))},sortableColumns(){return this.columns&&this.columns.filter((e=>e.sortable))}},watch:{sortMultipleSelect(e){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",e,this.defaultEvent)},sortMultipleSelectIndex(e){this.sortMultipleSelect=-1!==e?this.columns[e]:null},mobileSort(e){this.currentSortColumn!==e&&this.$emit("sort",e,this.defaultEvent)},mobileSortIndex(e){-1!==e&&(this.mobileSort=this.columns[e])},currentSortColumn(e){this.mobileSort=e,this.mobileSortIndex=this.columns?this.columns.indexOf(e):-1},columns(e){this.sortMultiple?this.sortMultipleSelectIndex=e.indexOf(this.sortMultipleSelect):this.mobileSortIndex=e.indexOf(this.mobileSort)}},methods:{removePriority(){this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;const e=this.sortMultipleData.filter((e=>e.field!==this.sortMultipleSelect.field)).map((e=>e.field));this.sortMultipleSelectIndex=this.columns.findIndex((t=>e.includes(t.field)))},getSortingObjectOfColumn(e){return this.sortMultipleData.filter((t=>t.field===e.field))[0]},columnIsDesc(e){const t=e&&this.getSortingObjectOfColumn(e);return!t||!(!t.order||"desc"!==t.order)},getLabel(e){const t=this.getSortingObjectOfColumn(e);return t?e.label+"("+(this.sortMultipleData.indexOf(t)+1)+")":e.label},sort(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}});const H={class:"field table-mobile-sort"},_={class:"field has-addons"},q=["value"],W=["value"],Y={class:"control"};var X=C(j,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-select"),r=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",H,[t.createElementVNode("div",_,[e.sortMultiple?(t.openBlock(),t.createBlock(s,{key:0,modelValue:e.sortMultipleSelectIndex,"onUpdate:modelValue":o[0]||(o[0]=t=>e.sortMultipleSelectIndex=t),expanded:""},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortableColumns,((o,i)=>(t.openBlock(),t.createElementBlock("option",{key:i,value:i},[t.createTextVNode(t.toDisplayString(e.getLabel(o))+" ",1),e.getSortingObjectOfColumn(o)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.columnIsDesc(o)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" ↓ ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" ↑ ")],64))],64)):t.createCommentVNode("v-if",!0)],8,q)))),128))])),_:1},8,["modelValue"])):(t.openBlock(),t.createBlock(s,{key:1,modelValue:e.mobileSortIndex,"onUpdate:modelValue":o[1]||(o[1]=t=>e.mobileSortIndex=t),expanded:""},{default:t.withCtx((()=>[e.placeholder?t.withDirectives((t.openBlock(),t.createElementBlock("option",{key:0,value:{},selected:"",disabled:"",hidden:""},t.toDisplayString(e.placeholder),513)),[[t.vShow,e.showPlaceholder]]):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortableColumns,((e,o)=>(t.openBlock(),t.createElementBlock("option",{key:o,value:o},t.toDisplayString(e.label),9,W)))),128))])),_:1},8,["modelValue"])),t.createElementVNode("div",Y,[e.sortMultiple&&e.sortMultipleData.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("button",{class:"button is-primary",onClick:o[2]||(o[2]=(...t)=>e.sort&&e.sort(...t))},[t.createVNode(r,{class:t.normalizeClass({"is-desc":e.columnIsDesc(e.sortMultipleSelect)}),icon:e.sortIcon,pack:e.iconPack,size:e.sortIconSize,both:""},null,8,["class","icon","pack","size"])]),t.createElementVNode("button",{class:"button is-primary",onClick:o[3]||(o[3]=(...t)=>e.removePriority&&e.removePriority(...t))},[t.createVNode(r,{icon:"delete",size:e.sortIconSize,both:""},null,8,["size"])])],64)):e.sortMultiple?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("button",{key:1,class:"button is-primary",onClick:o[4]||(o[4]=(...t)=>e.sort&&e.sort(...t))},[t.withDirectives(t.createVNode(r,{class:t.normalizeClass({"is-desc":!e.isAsc}),icon:e.sortIcon,pack:e.iconPack,size:e.sortIconSize,both:""},null,8,["class","icon","pack","size"]),[[t.vShow,e.currentSortColumn===e.mobileSort]])]))])])])}]]);var J=C(t.defineComponent({name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:[String,Object],default:"a",validator:e=>"object"==typeof e||h.defaultLinkTags.indexOf(e)>=0},disabled:{type:Boolean,default:!1}},computed:{href(){return"a"===this.tag?"#":void 0},isDisabled(){return this.disabled||this.page.disabled},disabledOrUndefined(){return this.isDisabled||void 0}}}),[["render",function(e,o,i,n,l,a){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),t.mergeProps({role:"button",href:e.href,disabled:e.disabledOrUndefined,class:["pagination-link",{"is-current":e.page.isCurrent,[e.page.class]:!0}]},e.$attrs,{onClick:t.withModifiers(e.page.click,["prevent"]),"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent||void 0}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.page.number),1)]))])),_:3},16,["href","disabled","class","onClick","aria-label","aria-current"])}]]),G=t.defineComponent({name:"BPagination",components:{BIcon:V,BPaginationButton:J},props:{total:[Number,String],perPage:{type:[Number,String],default:20},modelValue:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:()=>h.defaultIconPrev},iconNext:{type:String,default:()=>h.defaultIconNext},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:{type:Boolean,default:!1},pageInputPosition:String,debouncePageInput:[Number,String]},data(){return{inputValue:this.modelValue,debounceHandlePageInput:void 0}},emits:{change:e=>!0,"update:modelValue":e=>!0},computed:{rootClasses(){return[this.order,this.size,this.pageInputPosition,{"is-simple":this.simple,"is-rounded":this.rounded,"has-input":this.pageInput}]},beforeCurrent(){return parseInt(this.rangeBefore+"")},afterCurrent(){return parseInt(this.rangeAfter+"")},pageCount(){return Math.ceil(+this.total/+this.perPage)},firstItem(){const e=+this.modelValue*+this.perPage-+this.perPage+1;return e>=0?e:0},hasPrev(){return+this.modelValue>1},hasFirst(){return+this.modelValue>=2+this.beforeCurrent},hasFirstEllipsis(){return+this.modelValue>=this.beforeCurrent+4},hasLast(){return+this.modelValue<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis(){return+this.modelValue<this.pageCount-(2+this.afterCurrent)},hasNext(){return+this.modelValue<this.pageCount},pagesInRange(){if(this.simple)return;let e=Math.max(1,+this.modelValue-this.beforeCurrent);e-1==2&&e--;let t=Math.min(+this.modelValue+this.afterCurrent,this.pageCount);this.pageCount-t===2&&t++;const o=[];for(let i=e;i<=t;i++)o.push(this.getPage(i));return o}},watch:{pageCount(e){this.modelValue>e&&this.last()},modelValue(e){this.inputValue=e},debouncePageInput:{handler(e){this.debounceHandlePageInput=d(this.handleOnInputPageChange,e)},immediate:!0}},methods:{prev(e){this.changePage(+this.modelValue-1,e)},next(e){this.changePage(+this.modelValue+1,e)},first(e){this.changePage(1,e)},last(e){this.changePage(this.pageCount,e)},changePage(e,t){this.modelValue===e||e<1||e>this.pageCount||(this.$emit("update:modelValue",e),this.$emit("change",e),t&&t.target&&this.$nextTick((()=>t.target.focus())))},getPage(e,t={}){return{number:e,isCurrent:this.modelValue===e,click:t=>this.changePage(e,t),input:(e,t)=>this.changePage(+t,e),disabled:t.disabled||!1,class:t.class||"","aria-label":t["aria-label"]||this.getAriaPageLabel(e,this.modelValue===e)}},getAriaPageLabel(e,t){return!this.ariaPageLabel||t&&this.ariaCurrentLabel?this.ariaPageLabel&&t&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+e+".":null:this.ariaPageLabel+" "+e+"."},handleOnInputPageChange(e){this.getPage(+this.inputValue).input(e,this.inputValue)},handleOnInputDebounce(e){this.debouncePageInput?this.debounceHandlePageInput(e):this.handleOnInputPageChange(e)},handleOnKeyPress(e){const t=e.which||e.keyCode;return t>=48&&t<=57||e.preventDefault()},handleAllowableInputPageRange(e){const t=e.target;+t.value>0&&+t.value<=this.pageCount?this.handleOnInputValue(e):(this.inputValue=1,this.inputValue="")},handleOnInputValue(e){const t=+e.target.value;this.inputValue=t,Number.isInteger(this.inputValue)?this.handleOnInputDebounce(e):this.inputValue=this.modelValue}}});const Q={class:"control pagination-input"},Z=["value","size","maxlength"],ee={key:4,class:"info"},te={key:5,class:"pagination-list"},oe={key:0},ie={key:1},ne=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],le={key:2},ae=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],se={key:3};var re=C(G,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-icon"),r=t.resolveComponent("BPaginationButton");return t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(["pagination",e.rootClasses])},[e.$slots.previous?t.renderSlot(e.$slots,"previous",{key:0,page:e.getPage(+e.modelValue-1,{disabled:!e.hasPrev,class:"pagination-previous","aria-label":e.ariaPreviousLabel})},(()=>[t.createVNode(s,{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])):(t.openBlock(),t.createBlock(r,{key:1,class:"pagination-previous",disabled:!e.hasPrev,page:e.getPage(+e.modelValue-1),"aria-label":e.ariaPreviousLabel},{default:t.withCtx((()=>[t.createVNode(s,{icon:e.iconPrev,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])),_:1},8,["disabled","page","aria-label"])),e.$slots.next?t.renderSlot(e.$slots,"next",{key:2,page:e.getPage(+e.modelValue+1,{disabled:!e.hasNext,class:"pagination-next","aria-label":e.ariaNextLabel})},(()=>[t.createVNode(s,{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])):(t.openBlock(),t.createBlock(r,{key:3,class:"pagination-next",disabled:!e.hasNext,page:e.getPage(+e.modelValue+1),"aria-label":e.ariaNextLabel},{default:t.withCtx((()=>[t.createVNode(s,{icon:e.iconNext,pack:e.iconPack,both:"","aria-hidden":"true"},null,8,["icon","pack"])])),_:1},8,["disabled","page","aria-label"])),t.createElementVNode("div",Q,[e.pageInput?(t.openBlock(),t.createElementBlock("input",{key:0,class:"input",value:e.inputValue,onInput:o[0]||(o[0]=(...t)=>e.handleAllowableInputPageRange&&e.handleAllowableInputPageRange(...t)),onKeypress:o[1]||(o[1]=(...t)=>e.handleOnKeyPress&&e.handleOnKeyPress(...t)),size:e.pageCount.toString().length,maxlength:e.pageCount.toString().length},null,40,Z)):t.createCommentVNode("v-if",!0)]),e.simple?(t.openBlock(),t.createElementBlock("small",ee,[1==e.perPage?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.firstItem)+" / "+t.toDisplayString(e.total),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.firstItem)+"-"+t.toDisplayString(Math.min(+e.modelValue*+e.perPage,+e.total))+" / "+t.toDisplayString(e.total),1)],64))])):(t.openBlock(),t.createElementBlock("ul",te,[t.createCommentVNode("First"),e.hasFirst?(t.openBlock(),t.createElementBlock("li",oe,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:e.getPage(1)}):(t.openBlock(),t.createBlock(r,{key:1,page:e.getPage(1)},null,8,["page"]))])):t.createCommentVNode("v-if",!0),e.hasFirstEllipsis?(t.openBlock(),t.createElementBlock("li",ie,[...ne])):t.createCommentVNode("v-if",!0),t.createCommentVNode("Pages"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pagesInRange,(o=>(t.openBlock(),t.createElementBlock("li",{key:o.number},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:o}):(t.openBlock(),t.createBlock(r,{key:1,page:o},null,8,["page"]))])))),128)),t.createCommentVNode("Last"),e.hasLastEllipsis?(t.openBlock(),t.createElementBlock("li",le,[...ae])):t.createCommentVNode("v-if",!0),e.hasLast?(t.openBlock(),t.createElementBlock("li",se,[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0,page:e.getPage(e.pageCount)}):(t.openBlock(),t.createBlock(r,{key:1,page:e.getPage(e.pageCount)},null,8,["page"]))])):t.createCommentVNode("v-if",!0)]))],2)}]]),ce=t.defineComponent({name:"BTablePagination",components:{BPagination:re},props:{paginated:Boolean,total:[Number,String],perPage:[Number,String],currentPage:[Number,String],paginationSimple:Boolean,paginationSize:String,rounded:Boolean,iconPack:String,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,pageInput:Boolean,paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},emits:{"page-change":e=>!0,"update:currentPage":e=>!0},data(){return{newCurrentPage:this.currentPage}},watch:{currentPage(e){this.newCurrentPage=e}},methods:{pageChanged(e){this.newCurrentPage=e>0?e:1,this.$emit("update:currentPage",this.newCurrentPage),this.$emit("page-change",this.newCurrentPage)}}});const ue={class:"top level"},de={class:"level-left"},he={class:"level-right"},pe={key:0,class:"level-item"};var me=C(ce,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-pagination");return t.openBlock(),t.createElementBlock("div",ue,[t.createElementVNode("div",de,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("div",he,[e.paginated?(t.openBlock(),t.createElementBlock("div",pe,[t.createVNode(s,{"icon-pack":e.iconPack,total:e.total,"per-page":e.perPage,simple:e.paginationSimple,size:e.paginationSize,"model-value":e.newCurrentPage,rounded:e.rounded,onChange:e.pageChanged,"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,"page-input":e.pageInput,order:e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput},null,8,["icon-pack","total","per-page","simple","size","model-value","rounded","onChange","aria-next-label","aria-previous-label","aria-page-label","aria-current-label","page-input","order","page-input-position","debounce-page-input"])])):t.createCommentVNode("v-if",!0)])])}]]),ge=Object.defineProperty,fe=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ve=(e,t,o)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,we=(e,t)=>{for(var o in t||(t={}))Ce.call(t,o)&&ve(e,o,t[o]);if(ke)for(var o of ke(t))ye.call(t,o)&&ve(e,o,t[o]);return e};function Se(e,i){return n=we(we({},{label:void 0,customKey:void 0,field:void 0,meta:void 0,width:void 0,numeric:void 0,centered:void 0,searchable:void 0,sortable:void 0,visible:!0,subheading:void 0,customSort:void 0,customSearch:void 0,sticky:void 0,headerSelectable:void 0,headerClass:void 0,thAttrs:()=>({}),tdAttrs:()=>({})}),i),l={newKey:i.customKey||i.label,_isTableColumn:!0,get thClasses(){const e=this.thAttrs(this),t=[this.headerClass,{"is-sortable":this.sortable,"is-sticky":this.sticky,"is-unselectable":this.isHeaderUnSelectable}];return e&&e.class&&t.push(e.class),t},get thStyle(){const e=this.thAttrs(this),t=[this.style];return e&&e.style&&t.push(e.style),t},get thWrapStyle(){return this.style},get style(){var e;return{width:null!=(e=r(this.width))?e:void 0}},getRootClasses(e){const t=this.tdAttrs(e,this),o=[this.rootClasses];return t&&t.class&&o.push(t.class),o},getRootStyle(e){const t=this.tdAttrs(e,this),o=[];return t&&t.style&&o.push(t.style),o},$slots:{default:e=>[t.h("span",{innerHTML:o(e.row,i.field)})]},get rootClasses(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]},get isHeaderUnSelectable(){return!this.headerSelectable&&!!this.sortable}},fe(n,be(l));var n,l}const Be={thAttrs:()=>({}),tdAttrs:()=>({}),getRootClasses:()=>[],getRootStyle:()=>{},$slots:{}};var De=t.defineComponent({name:"BTable",components:{BCheckbox:S,BIcon:V,BInput:$,BLoading:z,BSlotComponent:F,BTableMobileSort:X,BTablePagination:me},mixins:[f],provide(){return{$table:this}},props:{data:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxType:{type:String,default:"is-primary"},checkboxPosition:{type:String,default:"left",validator:e=>["left","right"].indexOf(e)>=0},stickyCheckbox:{type:Boolean,default:!1},selected:Object,isRowSelectable:{type:Function,default:()=>!0},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:()=>!0},checkedRows:{type:Array,default:()=>[]},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:()=>[]},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},detailIcon:{type:String,default:"chevron-right"},paginationPosition:{type:String,default:"bottom",validator:e=>["bottom","top","both"].indexOf(e)>=0},paginationRounded:Boolean,backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:()=>""},openedDetailed:{type:Array,default:()=>[]},hasDetailedVisible:{type:Function,default:()=>!0},detailKey:{type:String,default:""},detailTransition:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},draggableColumn:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean,showHeader:{type:Boolean,default:!0},debounceSearch:Number,caption:String,showCaption:{type:Boolean,default:!0},pageInput:{type:Boolean,default:!1},paginationOrder:String,pageInputPosition:String,debouncePageInput:[Number,String]},emits:{cellclick:(e,t,o,i)=>!0,check:(e,t)=>!0,"check-all":e=>!0,click:e=>!0,columndragend:e=>!0,columndragleave:e=>!0,columndragover:e=>!0,columndragstart:e=>!0,columndrop:e=>!0,contextmenu:(e,t)=>!0,dblclick:e=>!0,"details-close":e=>!0,"details-open":e=>!0,dragend:e=>!0,dragleave:e=>!0,dragover:e=>!0,dragstart:e=>!0,drop:e=>!0,"filters-change":e=>!0,"page-change":e=>!0,select:(e,t)=>!0,sort:(e,t,o)=>!0,"sorting-priority-removed":e=>!0,"update:checkedRows":e=>!0,"update:currentPage":e=>!0,"update:openedDetailed":e=>!0,"update:selected":e=>!0},data(){return{sortMultipleDataLocal:[],getValueByPath:o,visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:[...this.checkedRows],lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},defaultSlots:[],firstTimeSort:!0,isDraggingRow:!1,isDraggingColumn:!1,debouncedHandleFiltersChange:void 0,_selectedRow:null,mayBeTouchDragging:!1,touchDragoverTarget:null,_draggedCellEl:void 0,draggedCellContent:""}},computed:{sortMultipleDataComputed(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable}},tableStyle(){return{height:r(this.height)}},touchDraggedCellClasses(){return{"has-mobile-cards":this.mobileCards}},visibleData(){if(!this.paginated)return this.newData;const e=this.newCurrentPage,t=+this.perPage;if(this.newData.length<=t)return this.newData;{const o=(e-1)*t,i=parseInt(o+"",10)+parseInt(t+"",10);return this.newData.slice(o,i)}},visibleColumns(){return this.newColumns?this.newColumns.filter((e=>e.visible||void 0===e.visible)):this.newColumns},isAllChecked(){const e=this.visibleData.filter((e=>this.isRowCheckable(e)));if(0===e.length)return!1;return!e.some((e=>i(this.newCheckedRows,e,this.customIsChecked)<0))},isAllUncheckable(){return 0===this.visibleData.filter((e=>this.isRowCheckable(e))).length},hasSortablenewColumns(){return this.newColumns.some((e=>e.sortable))},hasSearchablenewColumns(){return this.newColumns.some((e=>e.searchable))},hasCustomSubheadings(){return!(!this.$slots||!this.$slots.subheading)||this.newColumns.some((e=>e.subheading||e.$slots.subheading))},columnCount(){let e=this.visibleColumns.length;return e+=this.checkable?1:0,e+=this.detailed&&this.showDetailIcon?1:0,e},showDetailRowIcon(){return this.detailed&&this.showDetailIcon},isScrollable(){return!!this.scrollable||!!this.newColumns&&this.newColumns.some((e=>e.sticky))},newColumns(){return this.columns&&this.columns.length?this.columns.map((e=>Se(0,e))):this.defaultSlots},canDragRow(){return this.draggable&&!this.isDraggingColumn},canDragColumn(){return this.draggableColumn&&!this.isDraggingRow}},watch:{data(e){this.newData=e,this.backendFiltering||(this.newData=e.filter((e=>this.isRowFiltered(e)))),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=this.newData.length)},total(e){this.backendPagination&&(this.newDataTotal=e)},currentPage(e){this.newCurrentPage=e},newCurrentPage(e){this.$emit("update:currentPage",e)},checkedRows(e){this.newCheckedRows=[...e]},debounceSearch:{handler(e){this.debouncedHandleFiltersChange=d(this.handleFiltersChange,e)},immediate:!0},filters:{handler(e){this.debounceSearch?this.debouncedHandleFiltersChange(e):this.handleFiltersChange(e)},deep:!0},openedDetailed(e){this.visibleDetailRows=e}},methods:{onFiltersEvent(e){this.$emit(`filters-event-${this.filtersEvent}`,{event:e,filters:this.filters})},handleFiltersChange(e){this.backendFiltering?this.$emit("filters-change",e):(this.newData=this.data.filter((e=>this.isRowFiltered(e))),this.backendPagination||(this.newDataTotal=this.newData.length),this.backendSorting||(this.sortMultiple&&this.sortMultipleDataLocal&&this.sortMultipleDataLocal.length>0?this.doSortMultiColumn():Object.keys(this.currentSortColumn).length>0&&this.doSortSingleColumn(this.currentSortColumn)))},findIndexOfSortData(e){const t=this.sortMultipleDataComputed.filter((t=>t.field===e.field))[0];return this.sortMultipleDataComputed.indexOf(t)+1},removeSortingPriority(e){this.backendSorting?this.$emit("sorting-priority-removed",e.field):(this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter((t=>t.field!==e.field)),0===this.sortMultipleDataLocal.length?this.resetMultiSorting():this.newData=s(this.newData,this.sortMultipleDataLocal))},resetMultiSorting(){this.sortMultipleDataLocal=[],this.currentSortColumn=Be,this.newData=this.data},sortBy(e,t,i,n){let l=[];return l=i&&"function"==typeof i?[...e].sort(((e,t)=>i(e,t,n))):[...e].sort(((e,i)=>{let l=o(e,t),a=o(i,t);return"boolean"==typeof l&&"boolean"==typeof a?n?+l-+a:+a-+l:!c(a)&&c(l)?n?1:-1:!c(l)&&c(a)?n?-1:1:l===a?0:(l="string"==typeof l?l.toUpperCase():l,a="string"==typeof a?a.toUpperCase():a,n?l>a?1:-1:l>a?-1:1)})),l},sortMultiColumn(e){if(this.currentSortColumn=Be,!this.backendSorting){const t=this.sortMultipleDataLocal.filter((t=>t.field===e.field))[0];t?t.order="desc"===t.order?"asc":"desc":this.sortMultipleDataLocal.push({field:e.field,order:this.isAsc?"asc":"desc",customSort:e.customSort}),this.doSortMultiColumn()}},doSortMultiColumn(){this.newData=s(this.newData,this.sortMultipleDataLocal)},sort(e,o=!1,i=null){e&&e.sortable&&(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&i[this.sortMultipleKey]||!this.sortMultipleKey)?o?this.doSortMultiColumn():this.sortMultiColumn(e):(this.sortMultiple&&(this.sortMultipleDataLocal=[]),o||(this.isAsc=t.toRaw(e)===t.toRaw(this.currentSortColumn)?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",e.field,this.isAsc?"asc":"desc",i),this.backendSorting||this.doSortSingleColumn(e),this.currentSortColumn=e))},doSortSingleColumn(e){this.newData=this.sortBy(this.newData,e.field,e.customSort,this.isAsc)},isRowSelected(e,t){return!!t&&(this.customRowKey?e[this.customRowKey]===t[this.customRowKey]:e===t)},isRowChecked(e){return i(this.newCheckedRows,e,this.customIsChecked)>=0},removeCheckedRow(e){const t=i(this.newCheckedRows,e,this.customIsChecked);t>=0&&this.newCheckedRows.splice(t,1)},checkAll(){const e=this.isAllChecked;this.visibleData.forEach((t=>{this.isRowCheckable(t)&&this.removeCheckedRow(t),e||this.isRowCheckable(t)&&this.newCheckedRows.push(t)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow(e,t,o){if(!this.isRowCheckable(e))return;const i=this.lastCheckedRowIndex;this.lastCheckedRowIndex=t,o.shiftKey&&null!==i&&t!==i?this.shiftCheckRow(e,t,i):this.isRowChecked(e)?this.removeCheckedRow(e):this.newCheckedRows.push(e),this.$emit("check",this.newCheckedRows,e),this.$emit("update:checkedRows",this.newCheckedRows)},shiftCheckRow(e,t,o){const i=this.visibleData.slice(Math.min(t,o),Math.max(t,o)+1),n=!this.isRowChecked(e);i.forEach((e=>{this.removeCheckedRow(e),n&&this.isRowCheckable(e)&&this.newCheckedRows.push(e)}))},selectRow(e){this.$emit("click",e),this._selectedRow=e,this.selected!==e&&this.isRowSelectable(e)&&(this.$emit("select",e,this.selected),this.$emit("update:selected",e))},toggleDetails(e){this.isVisibleDetailRow(e)?(this.closeDetailRow(e),this.$emit("details-close",e)):(this.openDetailRow(e),this.$emit("details-open",e)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow(e){const t=this.handleDetailKey(e);this.visibleDetailRows.push(t)},closeDetailRow(e){const t=this.handleDetailKey(e),o=this.visibleDetailRows.indexOf(t);o>=0&&this.visibleDetailRows.splice(o,1)},isVisibleDetailRow(e){const t=this.handleDetailKey(e);return this.visibleDetailRows.indexOf(t)>=0},isActiveDetailRow(e){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(e)},isActiveCustomDetailRow(e){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(e)},isRowFiltered(e){for(const t in this.filters){if(!this.filters[t])continue;const o=this.filters[t],i=this.newColumns.filter((e=>e.field===t))[0];if(i&&i.customSearch&&"function"==typeof i.customSearch){if(!i.customSearch(e,o))return!1}else{const i=this.getValueByPath(e,t);if(null==i)return!1;if(Number.isInteger(i)){if(i!==Number(o))return!1}else{const e=new RegExp(l(o+""),"i");if(Array.isArray(i)){if(!i.some((t=>e.test(a(t))||e.test(t))))return!1}else if(!e.test(a(i))&&!e.test(i))return!1}}}return!0},handleDetailKey(e){const t=this.detailKey;return t.length&&e?e[t]:e},checkPredefinedDetailedRows(){if(this.openedDetailed.length>0&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&t.toRaw(this.currentSortColumn)!==Be)for(let e=0;e<this.newColumns.length;e++)if(this.newColumns[e].field===this.currentSortColumn.field){this.currentSortColumn=this.newColumns[e];break}},hasCustomFooterSlot(){var e;const o=this.$slots.footer();if(o.length>1)return!0;if(o[0].type===t.Fragment)return!0;const i=null==(e=o[0].el)?void 0:e.tag;return"th"===i||"td"===i},hasBottomLeftSlot(){return void 0!==this.$slots["bottom-left"]},pressedArrow(e){if(!this.visibleData.length)return;let t=this.visibleData.indexOf(this.selected)+e;t=t<0?0:t>this.visibleData.length-1?this.visibleData.length-1:t;const o=this.visibleData[t];if(this.isRowSelectable(o))this.selectRow(o);else{let o=null;if(e>0)for(let e=t;e<this.visibleData.length&&null===o;e++)this.isRowSelectable(this.visibleData[e])&&(o=e);else for(let e=t;e>=0&&null===o;e--)this.isRowSelectable(this.visibleData[e])&&(o=e);o>=0&&this.selectRow(this.visibleData[o])}},focus(){this.focusable&&this.$el.querySelector("table").focus()},initSort(){if(this.sortMultiple&&this.sortMultipleData)this.sortMultipleData.forEach((e=>{this.sortMultiColumn(e)}));else{if(!this.defaultSort)return;let e="",t=this.defaultSortDirection;Array.isArray(this.defaultSort)?(e=this.defaultSort[0],this.defaultSort[1]&&(t=this.defaultSort[1])):e=this.defaultSort;const o=this.newColumns.filter((t=>t.field===e))[0];o&&(this.isAsc="desc"!==t.toLowerCase(),this.sort(o,!0))}},handleDragStart(e,t,o){this.canDragRow&&(this.isDraggingRow=!0,this.$emit("dragstart",{event:e,row:t,index:o}))},handleDragEnd(e,t,o){this.canDragRow&&(this.isDraggingRow=!1,this.$emit("dragend",{event:e,row:t,index:o}))},handleDrop(e,t,o){this.canDragRow&&this.$emit("drop",{event:e,row:t,index:o})},handleDragOver(e,t,o){this.canDragRow&&this.$emit("dragover",{event:e,row:t,index:o})},handleDragLeave(e,t,o){this.canDragRow&&this.$emit("dragleave",{event:e,row:t,index:o})},emitEventForRow(e,o,i){return null!=(this.$attrs[t.toHandlerKey(e)]||this.$attrs[t.toHandlerKey(t.camelize(e))])?this.$emit(e,i,o):null},handleColumnDragStart(e,t,o){this.canDragColumn&&(this.isDraggingColumn=!0,this.$emit("columndragstart",{event:e,column:t,index:o}))},handleColumnDragEnd(e,t,o){this.canDragColumn&&(this.isDraggingColumn=!1,this.$emit("columndragend",{event:e,column:t,index:o}))},handleColumnDrop(e,t,o){this.canDragColumn&&this.$emit("columndrop",{event:e,column:t,index:o})},handleColumnDragOver(e,t,o){this.canDragColumn&&this.$emit("columndragover",{event:e,column:t,index:o})},handleColumnDragLeave(e,t,o){this.canDragColumn&&this.$emit("columndragleave",{event:e,column:t,index:o})},handleTouchStart(e,t){this.canDragRow&&(this.isDraggingColumn||this._selectedRow===t&&(e.preventDefault(),this.mayBeTouchDragging=!0))},handleTouchMove(e){if(!this.canDragRow)return;if(!this.mayBeTouchDragging)return;if(!this.isDraggingRow){const t=e.target,o=t.closest("tr");this.draggedCellContent=o?`<table class="table"><tr>${o.innerHTML}</tr></table>`:t.innerHTML,this.$refs.draggedCell.style.width=o?`${o.offsetWidth}px`:`${t.offsetWidth}px`,t.dispatchEvent(u(e,{type:"dragstart"}))}const t=e.touches[0],o=document.elementFromPoint(t.clientX,t.clientY);null!=o?o!==this.touchDragoverTarget&&(null!=this.touchDragoverTarget&&this.touchDragoverTarget.dispatchEvent(u(e,{type:"dragleave",target:this.touchDragoverTarget})),this.touchDragoverTarget=o,o.dispatchEvent(u(e,{type:"dragover",target:o}))):null!=this.touchDragoverTarget&&(this.touchDragoverTarget.dispatchEvent(u(e,{type:"dragleave",target:this.touchDragoverTarget})),this.touchDragoverTarget=null),this.updateDraggedCell(t)},handleTouchEnd(e){if(this.canDragRow){if(this.isDraggingRow){const t=e.changedTouches[0],o=document.elementFromPoint(t.clientX,t.clientY);null!=o&&o.dispatchEvent(u(e,{type:"drop",target:o})),e.target.dispatchEvent(u(e,{type:"dragend"})),this._selectedRow=null}this.mayBeTouchDragging=!1}},handleColumnTouchStart(e){this.canDragColumn&&(this.isDraggingRow||(e.preventDefault(),this.mayBeTouchDragging=!0))},handleColumnTouchMove(e){if(!this.canDragColumn)return;if(!this.mayBeTouchDragging)return;if(!this.isDraggingColumn){const t=e.target;this.draggedCellContent=t.innerHTML,this.$refs.draggedCell.style.width=`${t.offsetWidth}px`,t.dispatchEvent(u(e,{type:"dragstart"}))}const t=e.touches[0],o=document.elementFromPoint(t.clientX,t.clientY);null!=o?o!==this.touchDragoverTarget&&(null!=this.touchDragoverTarget&&this.touchDragoverTarget.dispatchEvent(u(e,{type:"dragleave",target:this.touchDragoverTarget})),this.touchDragoverTarget=o,o.dispatchEvent(u(e,{type:"dragover",target:o}))):null!=this.touchDragoverTarget&&(this.touchDragoverTarget.dispatchEvent(u(e,{type:"dragleave",target:this.touchDragoverTarget})),this.touchDragoverTarget=null),this.updateDraggedCell(t)},handleColumnTouchEnd(e){if(this.canDragColumn){if(this.isDraggingColumn){const t=e.changedTouches[0],o=document.elementFromPoint(t.clientX,t.clientY);null!=o&&o.dispatchEvent(u(e,{type:"drop",target:o})),e.target.dispatchEvent(u(e,{type:"dragend"}))}this.mayBeTouchDragging=!1}},updateDraggedCell({clientX:e,clientY:t}){const o=this.$refs.draggedCell.getBoundingClientRect(),i=t+window.scrollY-o.height/2,n=e+window.scrollX-o.width/2;this.$refs.draggedCell.style.top=`calc(${i}px)`,this.$refs.draggedCell.style.left=`calc(${n}px)`},_registerTableColumn(e){e._isTableColumn&&this.defaultSlots.push(e)},_unregisterTableColumn(e){const t=this.defaultSlots.indexOf(e);-1!==t&&this.defaultSlots.splice(t,1)}},mounted(){this.checkPredefinedDetailedRows(),this.checkSort();const e=e=>{e&&null==this.$data._draggedCellEl&&(this.$data._draggedCellEl=function(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}(this.$refs.draggedCell))};this.$watch("draggable",e,{immediate:!0}),this.$watch("draggableColumn",e,{immediate:!0})},beforeUnmount(){this.$data._draggedCellEl&&n(this.$data._draggedCellEl)}});const Ve=["tabindex"],Pe={key:1},xe={key:0,width:"40px"},Ie=["onClick","draggable","onDragstart","onDragend","onDrop","onDragover","onDragleave"],Re={key:0,class:"multi-sort-icons"},Ee=["onClick"],Ne={key:0,class:"is-subheading"},$e={key:0,width:"40px"},Te={key:1},Me={key:2},Ae={key:1},ze={key:0,width:"40px"},Fe={key:1},Le={key:2},Oe=["onClick","onDblclick","onMouseenter","onMouseleave","onContextmenu","draggable","onDragstart","onDragend","onDrop","onDragover","onDragleave","onTouchstart"],Ke={key:0,class:"chevron-cell"},Ue=["onClick"],je={key:0,class:"detail"},He=["colspan"],_e={class:"detail-container"},qe={key:0,class:"is-empty"},We=["colspan"],Ye={key:2},Xe={class:"table-footer"},Je=["colspan"],Ge=["innerHTML"];var Qe=C(De,[["render",function(e,o,i,n,l,a){const s=t.resolveComponent("b-table-mobile-sort"),r=t.resolveComponent("b-table-pagination"),c=t.resolveComponent("b-checkbox"),u=t.resolveComponent("b-slot-component"),d=t.resolveComponent("b-icon"),h=t.resolveComponent("b-input"),p=t.resolveComponent("b-loading");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"b-table"},e.rootAttrs),[t.renderSlot(e.$slots,"default"),e.mobileCards&&e.hasSortablenewColumns?(t.openBlock(),t.createBlock(s,{key:0,"current-sort-column":e.currentSortColumn,"sort-multiple":e.sortMultiple,"sort-multiple-data":e.sortMultipleDataComputed,"is-asc":e.isAsc,columns:e.newColumns,placeholder:e.mobileSortPlaceholder,"icon-pack":e.iconPack,"sort-icon":e.sortIcon,"sort-icon-size":e.sortIconSize,onSort:o[0]||(o[0]=(t,o)=>e.sort(t,null,o)),onRemovePriority:o[1]||(o[1]=t=>e.removeSortingPriority(t))},null,8,["current-sort-column","sort-multiple","sort-multiple-data","is-asc","columns","placeholder","icon-pack","sort-icon","sort-icon-size"])):t.createCommentVNode("v-if",!0),!e.paginated||"top"!==e.paginationPosition&&"both"!==e.paginationPosition?t.createCommentVNode("v-if",!0):t.renderSlot(e.$slots,"pagination",{key:1},(()=>[t.createVNode(r,t.mergeProps(e.fallthroughAttrs,{"per-page":e.perPage,paginated:e.paginated,rounded:e.paginationRounded,"icon-pack":e.iconPack,total:e.newDataTotal,"current-page":e.newCurrentPage,"onUpdate:currentPage":o[2]||(o[2]=t=>e.newCurrentPage=t),"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,onPageChange:o[3]||(o[3]=t=>e.$emit("page-change",t)),"page-input":e.pageInput,"pagination-order":e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"top-left")])),_:3},16,["per-page","paginated","rounded","icon-pack","total","current-page","aria-next-label","aria-previous-label","aria-page-label","aria-current-label","page-input","pagination-order","page-input-position","debounce-page-input"])])),t.createElementVNode("div",{class:t.normalizeClass(["table-wrapper",e.tableWrapperClasses]),style:t.normalizeStyle(e.tableStyle)},[t.createElementVNode("table",{class:t.normalizeClass(["table",e.tableClasses]),tabindex:e.focusable?0:void 0,onKeydown:[o[9]||(o[9]=t.withKeys(t.withModifiers((t=>e.pressedArrow(-1)),["self","prevent"]),["up"])),o[10]||(o[10]=t.withKeys(t.withModifiers((t=>e.pressedArrow(1)),["self","prevent"]),["down"]))]},[e.caption?t.withDirectives((t.openBlock(),t.createElementBlock("caption",{key:0},t.toDisplayString(e.caption),513)),[[t.vShow,e.showCaption]]):t.createCommentVNode("v-if",!0),e.newColumns.length&&e.showHeader?(t.openBlock(),t.createElementBlock("thead",Pe,[t.createElementVNode("tr",null,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",xe)):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",{key:1,class:t.normalizeClass(["checkbox-cell",{"is-sticky":e.stickyCheckbox}])},[e.headerCheckable?t.renderSlot(e.$slots,"check-all",{key:0,isAllChecked:e.isAllChecked,isAllUncheckable:e.isAllUncheckable,checkAll:e.checkAll},(()=>[t.createVNode(c,{autocomplete:"off","model-value":e.isAllChecked,type:e.checkboxType,disabled:e.isAllUncheckable,onChange:e.checkAll},null,8,["model-value","type","disabled","onChange"])])):t.createCommentVNode("v-if",!0)],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleColumns,((i,n)=>(t.openBlock(),t.createElementBlock("th",t.mergeProps({key:i.newKey+":"+n+"header"},i.thAttrs(i),{class:[i.thClasses,{"is-current-sort":!e.sortMultiple&&e.currentSortColumn===i}],style:i.thStyle,onClick:t.withModifiers((t=>e.sort(i,null,t)),["stop"]),draggable:e.canDragColumn,onDragstart:t=>e.handleColumnDragStart(t,i,n),onDragend:t=>e.handleColumnDragEnd(t,i,n),onDrop:t=>e.handleColumnDrop(t,i,n),onDragover:t=>e.handleColumnDragOver(t,i,n),onDragleave:t=>e.handleColumnDragLeave(t,i,n),onTouchstart:o[4]||(o[4]=t=>e.handleColumnTouchStart(t)),onTouchmove:o[5]||(o[5]=t=>e.handleColumnTouchMove(t)),onTouchend:o[6]||(o[6]=t=>e.handleColumnTouchEnd(t))}),[t.createElementVNode("div",{class:t.normalizeClass(["th-wrap is-relative",{"is-numeric":i.numeric,"is-centered":i.centered}]),style:t.normalizeStyle(i.thWrapStyle)},[i.$slots.header?(t.openBlock(),t.createBlock(u,{key:0,component:i,scoped:"",name:"header",tag:"span",props:{column:i,index:n}},null,8,["component","props"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(i.label)+" ",1),e.sortMultiple&&e.sortMultipleDataComputed&&e.sortMultipleDataComputed.length>0&&e.sortMultipleDataComputed.filter((e=>e.field===i.field)).length>0?(t.openBlock(),t.createElementBlock("span",Re,[t.createVNode(d,{icon:e.sortIcon,pack:e.iconPack,both:"",size:e.sortIconSize,class:t.normalizeClass({"is-desc":"desc"===e.sortMultipleDataComputed.filter((e=>e.field===i.field))[0].order})},null,8,["icon","pack","size","class"]),t.createTextVNode(" "+t.toDisplayString(e.findIndexOfSortData(i))+" ",1),t.createElementVNode("button",{class:"delete is-small multi-sort-cancel-icon",type:"button",onClick:t.withModifiers((t=>e.removeSortingPriority(i)),["stop"])},null,8,Ee)])):(t.openBlock(),t.createBlock(d,{key:1,icon:e.sortIcon,pack:e.iconPack,both:"",size:e.sortIconSize,class:t.normalizeClass(["sort-icon",{"is-desc":!e.isAsc,"is-invisible":e.currentSortColumn!==i}])},null,8,["icon","pack","size","class"]))],64))],6)],16,Ie)))),128)),e.checkable&&"right"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",{key:2,class:t.normalizeClass(["checkbox-cell",{"is-sticky":e.stickyCheckbox}])},[e.headerCheckable?t.renderSlot(e.$slots,"check-all",{key:0,isAllChecked:e.isAllChecked,isAllUncheckable:e.isAllUncheckable,checkAll:e.checkAll},(()=>[t.createVNode(c,{autocomplete:"off","model-value":e.isAllChecked,type:e.checkboxType,disabled:e.isAllUncheckable,onChange:e.checkAll},null,8,["model-value","type","disabled","onChange"])])):t.createCommentVNode("v-if",!0)],2)):t.createCommentVNode("v-if",!0)]),e.hasCustomSubheadings?(t.openBlock(),t.createElementBlock("tr",Ne,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",$e)):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",Te)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleColumns,((e,o)=>(t.openBlock(),t.createElementBlock("th",{key:e.newKey+":"+o+"subheading",style:t.normalizeStyle(e.style)},[t.createElementVNode("div",{class:t.normalizeClass(["th-wrap",{"is-numeric":e.numeric,"is-centered":e.centered}]),style:t.normalizeStyle(e.thWrapStyle)},[e.$slots.subheading?(t.openBlock(),t.createBlock(u,{key:0,component:e,scoped:"",name:"subheading",tag:"span",props:{column:e,index:o}},null,8,["component","props"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.subheading),1)],64))],6)],4)))),128)),e.checkable&&"right"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",Me)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.hasSearchablenewColumns?(t.openBlock(),t.createElementBlock("tr",Ae,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",ze)):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",Fe)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleColumns,((o,i)=>(t.openBlock(),t.createElementBlock("th",t.mergeProps({key:o.newKey+":"+i+"searchable"},o.thAttrs(o),{style:o.thStyle,class:{"is-sticky":o.sticky}}),[t.createElementVNode("div",{class:"th-wrap",style:t.normalizeStyle(o.thWrapStyle)},[o.searchable?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.$slots.searchable?(t.openBlock(),t.createBlock(u,{key:0,component:o,scoped:!0,name:"searchable",tag:"span",props:{column:o,filters:e.filters}},null,8,["component","props"])):(t.openBlock(),t.createBlock(h,t.mergeProps({key:1,[t.toHandlerKey(e.filtersEvent)]:e.onFiltersEvent},{modelValue:e.filters[o.field],"onUpdate:modelValue":t=>e.filters[o.field]=t,type:o.numeric?"number":"text"}),null,16,["modelValue","onUpdate:modelValue","type"]))],64)):t.createCommentVNode("v-if",!0)],4)],16)))),128)),e.checkable&&"right"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",Le)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,((i,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.customRowKey?i[e.customRowKey]:n},[t.createElementVNode("tr",{class:t.normalizeClass([e.rowClass(i,n),{"is-selected":e.isRowSelected(i,e.selected),"is-checked":e.isRowChecked(i)}]),onClick:t=>e.selectRow(i),onDblclick:t=>e.$emit("dblclick",i),onMouseenter:t=>e.emitEventForRow("mouseenter",t,i),onMouseleave:t=>e.emitEventForRow("mouseleave",t,i),onContextmenu:t=>e.$emit("contextmenu",i,t),draggable:e.canDragRow,onDragstart:t=>e.handleDragStart(t,i,n),onDragend:t=>e.handleDragEnd(t,i,n),onDrop:t=>e.handleDrop(t,i,n),onDragover:t=>e.handleDragOver(t,i,n),onDragleave:t=>e.handleDragLeave(t,i,n),onTouchstart:t=>e.handleTouchStart(t,i),onTouchmove:o[7]||(o[7]=t=>e.handleTouchMove(t)),onTouchend:o[8]||(o[8]=t=>e.handleTouchEnd(t))},[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("td",Ke,[e.hasDetailedVisible(i)?(t.openBlock(),t.createElementBlock("a",{key:0,role:"button",onClick:t.withModifiers((t=>e.toggleDetails(i)),["stop"])},[t.createVNode(d,{icon:e.detailIcon,pack:e.iconPack,both:"",class:t.normalizeClass({"is-expanded":e.isVisibleDetailRow(i)})},null,8,["icon","pack","class"])],8,Ue)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("td",{key:1,class:t.normalizeClass(["checkbox-cell",{"is-sticky":e.stickyCheckbox}])},[t.createVNode(c,{autocomplete:"off","model-value":e.isRowChecked(i),type:e.checkboxType,disabled:!e.isRowCheckable(i),onClick:t.withModifiers((t=>e.checkRow(i,n,t)),["prevent","stop"])},null,8,["model-value","type","disabled","onClick"])],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleColumns,((o,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.newKey+":"+n+":"+l},[o.$slots.default?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,component:o},o.tdAttrs(i,o),{scoped:"",name:"default",tag:"td",class:o.getRootClasses(i),style:o.getRootStyle(i),"data-label":o.label,props:{row:i,column:o,index:n,colindex:l,toggleDetails:e.toggleDetails,isActiveDetailRow:e.isActiveDetailRow},onClick:t=>e.$emit("cellclick",i,o,n,l)}),null,16,["component","class","style","data-label","props","onClick"])):t.createCommentVNode("v-if",!0)],64)))),128)),e.checkable&&"right"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(["checkbox-cell",{"is-sticky":e.stickyCheckbox}])},[t.createVNode(c,{autocomplete:"off","model-value":e.isRowChecked(i),type:e.checkboxType,disabled:!e.isRowCheckable(i),onClick:t.withModifiers((t=>e.checkRow(i,n,t)),["prevent","stop"])},null,8,["model-value","type","disabled","onClick"])],2)):t.createCommentVNode("v-if",!0)],42,Oe),t.createVNode(t.Transition,{name:e.detailTransition},{default:t.withCtx((()=>[e.isActiveDetailRow(i)?(t.openBlock(),t.createElementBlock("tr",je,[t.createElementVNode("td",{colspan:e.columnCount},[t.createElementVNode("div",_e,[t.renderSlot(e.$slots,"detail",{row:i,index:n})])],8,He)])):t.createCommentVNode("v-if",!0)])),_:2},1032,["name"]),e.isActiveCustomDetailRow(i)?t.renderSlot(e.$slots,"detail",{key:0,row:i,index:n}):t.createCommentVNode("v-if",!0)],64)))),128)),e.visibleData.length?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("tr",qe,[t.createElementVNode("td",{colspan:e.columnCount},[t.renderSlot(e.$slots,"empty")],8,We)]))]),void 0!==e.$slots.footer?(t.openBlock(),t.createElementBlock("tfoot",Ye,[t.createElementVNode("tr",Xe,[e.hasCustomFooterSlot()?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock("th",{key:1,colspan:e.columnCount},[t.renderSlot(e.$slots,"footer")],8,Je))])])):t.createCommentVNode("v-if",!0)],42,Ve),e.loading?t.renderSlot(e.$slots,"loading",{key:0},(()=>[t.createVNode(p,{"is-full-page":!1,"model-value":e.loading},null,8,["model-value"])])):t.createCommentVNode("v-if",!0)],6),e.checkable&&e.hasBottomLeftSlot()||e.paginated&&("bottom"===e.paginationPosition||"both"===e.paginationPosition)?t.renderSlot(e.$slots,"pagination",{key:2},(()=>[t.createVNode(r,t.mergeProps(e.fallthroughAttrs,{"per-page":e.perPage,paginated:e.paginated,rounded:e.paginationRounded,"icon-pack":e.iconPack,total:e.newDataTotal,"current-page":e.newCurrentPage,"onUpdate:currentPage":o[11]||(o[11]=t=>e.newCurrentPage=t),"aria-next-label":e.ariaNextLabel,"aria-previous-label":e.ariaPreviousLabel,"aria-page-label":e.ariaPageLabel,"aria-current-label":e.ariaCurrentLabel,onPageChange:o[12]||(o[12]=t=>e.$emit("page-change",t)),"page-input":e.pageInput,"pagination-order":e.paginationOrder,"page-input-position":e.pageInputPosition,"debounce-page-input":e.debouncePageInput}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"bottom-left")])),_:3},16,["per-page","paginated","rounded","icon-pack","total","current-page","aria-next-label","aria-previous-label","aria-page-label","aria-current-label","page-input","pagination-order","page-input-position","debounce-page-input"])])):t.createCommentVNode("v-if",!0),t.createCommentVNode(" eslint-disable vue/no-v-html "),t.withDirectives(t.createElementVNode("div",{ref:"draggedCell",class:t.normalizeClass(["touch-dragged-cell",e.touchDraggedCellClasses]),innerHTML:e.draggedCellContent},null,10,Ge),[[t.vShow,e.mayBeTouchDragging&&(e.isDraggingRow||e.isDraggingColumn)]]),t.createCommentVNode(" eslint-enable vue/no-v-html ")],16)}]]),Ze=t.defineComponent({name:"BTableColumn",inject:{$table:{name:"$table",default:!1}},props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,customSearch:Function,sticky:Boolean,headerSelectable:Boolean,headerClass:String,cellClass:String,thAttrs:{type:Function,default:()=>({})},tdAttrs:{type:Function,default:()=>({})}},data(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{thClasses(){const e=this.thAttrs(this),t=[this.headerClass,{"is-sortable":this.sortable,"is-sticky":this.sticky,"is-unselectable":this.isHeaderUnSelectable}];return e&&e.class&&t.push(e.class),t},thStyle(){const e=this.thAttrs(this),t=[this.style];return e&&e.style&&t.push(e.style),t},thWrapStyle(){const e=r(this.width);return null==e||e.trim().endsWith("%")?{}:{width:e}},rootClasses(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]},style(){var e;return{width:null!=(e=r(this.width))?e:void 0}},hasDefaultSlot(){return!!this.$slots.default},isHeaderUnSelectable(){return!this.headerSelectable&&this.sortable}},methods:{getRootClasses(e){const t=this.tdAttrs(e,this),o=[this.rootClasses];return t&&t.class&&o.push(t.class),o},getRootStyle(e){const t=this.tdAttrs(e,this),o=[];return t&&t.style&&o.push(t.style),o}},created(){if(!this.$table)throw new Error("You should wrap bTableColumn on a bTable");this.$table._registerTableColumn(this)},beforeUnmount(){this.$table._unregisterTableColumn(this)},render:()=>null});const et=(e,t,o)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)},tt={install(e){et(e,Qe),et(e,Ze)}};e.BTable=Qe,e.BTableColumn=Ze,e.default=tt,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.1 | 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.1 | 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).Tabs={},e.Vue)}(this,(function(e,t){"use strict";let i="mdi",n=null,s=!1,o=!0,a=null;function l(e,t){return(e&t)===t}function r(e,t,i){return Math.max(t,Math.min(i,e))}const c={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},u=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var d=(e,t)=>{const i=e.__vccOpts||e;for(const[e,n]of t)i[e]=n;return i};var h=d(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:c,fa:u(),fas:u(),far:u(),fad:u(),fab:u(),fal:u(),"fa-solid":u(),"fa-regular":u(),"fa-light":u(),"fa-thin":u(),"fa-duotone":u(),"fa-brands":u()}[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||n}},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,a){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),m=t.defineComponent({name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:[String,Object],default:"div"}},methods:{refresh(){this.$forceUpdate()}},render(){return t.h(this.tag,{},this.component.$slots?this.scoped?this.component.$slots[this.name](this.props):this.component.$slots[this.name]():void 0)}}),p=Object.defineProperty,f=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,g=(e,t,i)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var y,I=(e,t)=>{const i={provide(){return{["b"+e]:this}}};return l(t,1)&&(i.data=function(){return((e,t)=>{for(var i in t||(t={}))v.call(t,i)&&g(e,i,t[i]);if(f)for(var i of f(t))b.call(t,i)&&g(e,i,t[i]);return e})({childItems:[]},l(t,3)?{nextIndex:0}:{})},i.methods={_registerItem(e){l(t,3)&&(e.dynamicIndex=this.nextIndex,++this.nextIndex),this.childItems.push(e)},_unregisterItem(e){this.childItems=this.childItems.filter((t=>t.uniqueValue!==e.uniqueValue))}},l(t,3)&&(i.computed={sortedItems(){return this.childItems.slice().sort(((e,t)=>e.index-t.index))}})),i},x=t.defineComponent({name:"BTabs",components:{BIcon:h,BSlotComponent:m},mixins:[(y="tab",t.defineComponent({components:{BIcon:h,BSlotComponent:m},mixins:[I(y,3)],props:{modelValue:{type:[String,Number,null],default:void 0},size:String,animated:{type:Boolean,default:!0},animation:String,animateInitially:Boolean,vertical:{type:Boolean,default:!1},position:String,destroyOnHide:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0},data(){return{activeId:this.modelValue,defaultSlots:[],contentHeight:0,isTransitioning:!1}},computed:{activeItem(){const e=this.childItems;return void 0===this.activeId?this.items[0]:null===this.activeId?null:e.find((e=>e.uniqueValue===this.activeId))},items(){return this.sortedItems}},watch:{modelValue(e){"number"==typeof e?(e=r(e,0,this.items.length-1),this.activeId=this.items[e].uniqueValue):this.activeId=e},activeId(e,t){const i=null!=t?this.childItems.find((e=>e.uniqueValue===t)):null;i&&this.activeItem&&(i.deactivate(this.activeItem.index),this.activeItem.activate(i.index)),(e=this.activeItem?"number"==typeof this.modelValue?this.items.indexOf(this.activeItem):this.activeItem.uniqueValue:void 0)!==this.modelValue&&this.$emit("update:modelValue",e)}},methods:{childClick(e){this.activeId=e.uniqueValue},getNextItemIdx(e,t=!1){let i=null;for(let n=0;n<this.items.length;n++){const s=this.items[n];if(e<s.index&&s.visible&&(!t||t&&!s.disabled)){i=s.index;break}}return i},getPrevItemIdx(e,t=!1){let i=null;for(let n=this.items.length-1;n>=0;n--){const s=this.items[n];if(s.index<e&&s.visible&&(!t||t&&!s.disabled)){i=s.index;break}}return i}},mounted(){if("number"==typeof this.modelValue){const e=r(this.modelValue,0,this.items.length-1);this.activeId=this.items[e].uniqueValue}else this.activeId=this.modelValue}}))],props:{expanded:{type:Boolean,default:()=>s},type:{type:[String,Object],default:()=>a},animated:{type:Boolean,default:()=>o},multiline:Boolean},data:()=>({currentFocus:null}),computed:{mainClasses(){return{"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline,[this.position]:this.position&&this.vertical}},navClasses(){return[this.type,this.size,{[this.position]:this.position&&!this.vertical,"is-fullwidth":this.expanded,"is-toggle":"is-toggle-rounded"===this.type}]}},methods:{giveFocusToTab(e){Array.isArray(e)&&null==(e=e[0])||(e.$el&&e.$el.focus?e.$el.focus():e.focus&&e.focus())},manageTablistKeydown(e){const{key:t}=e;switch(t){case this.vertical?"ArrowUp":"ArrowLeft":case this.vertical?"Up":"Left":{let t=this.getPrevItemIdx(this.currentFocus,!0);null===t&&(t=this.getPrevItemIdx(1/0,!0));const i=this.items.find((e=>e.index===t));i&&this.$refs[`tabLink${t}`]&&!i.disabled&&this.giveFocusToTab(this.$refs[`tabLink${t}`]),e.preventDefault();break}case this.vertical?"ArrowDown":"ArrowRight":case this.vertical?"Down":"Right":{let t=this.getNextItemIdx(this.currentFocus,!0);null===t&&(t=this.getNextItemIdx(-1,!0));const i=this.items.find((e=>e.index===t));i&&this.$refs[`tabLink${t}`]&&!i.disabled&&this.giveFocusToTab(this.$refs[`tabLink${t}`]),e.preventDefault();break}}},manageTabKeydown(e,t){const{key:i}=e;switch(i){case" ":case"Space":case"Spacebar":case"Enter":this.childClick(t),e.preventDefault()}}}});const C=["aria-orientation"],k=["aria-controls","aria-selected"],w=["id","tabindex","onFocus","onClick","onKeydown"];var B=d(x,[["render",function(e,i,n,s,o,a){const l=t.resolveComponent("b-slot-component"),r=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["b-tabs",e.mainClasses])},[t.createElementVNode("nav",{class:t.normalizeClass(["tabs",e.navClasses]),onKeydown:i[0]||(i[0]=(...t)=>e.manageTablistKeydown&&e.manageTablistKeydown(...t))},[t.renderSlot(e.$slots,"start"),t.createElementVNode("ul",{"aria-orientation":e.vertical?"vertical":"horizontal",role:"tablist"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(i=>t.withDirectives((t.openBlock(),t.createElementBlock("li",{key:i.uniqueValue,class:t.normalizeClass([i.headerClass,{"is-active":i.isActive,"is-disabled":i.disabled}]),role:"tab","aria-controls":`${i.uniqueValue}-content`,"aria-selected":`${i.isActive}`},[i.$slots.header?(t.openBlock(),t.createBlock(l,{key:0,ref_for:!0,ref:`tabLink${i.index}`,component:i,name:"header",tag:"a",id:`${i.uniqueValue}-label`,tabindex:i.isActive?0:-1,onFocus:t=>e.currentFocus=i.index,onClick:t=>e.childClick(i),onKeydown:t=>e.manageTabKeydown(t,i)},null,8,["component","id","tabindex","onFocus","onClick","onKeydown"])):(t.openBlock(),t.createElementBlock("a",{key:1,ref_for:!0,ref:`tabLink${i.index}`,id:`${i.uniqueValue}-label`,tabindex:i.isActive?0:-1,onFocus:t=>e.currentFocus=i.index,onClick:t=>e.childClick(i),onKeydown:t=>e.manageTabKeydown(t,i)},[i.icon?(t.openBlock(),t.createBlock(r,{key:0,icon:i.icon,pack:i.iconPack,size:e.size},null,8,["icon","pack","size"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",null,t.toDisplayString(i.label),1)],40,w))],10,k)),[[t.vShow,i.visible]]))),128))],8,C),t.renderSlot(e.$slots,"end")],34),t.createElementVNode("section",{class:t.normalizeClass(["tab-content",{"is-transitioning":e.isTransitioning}])},[t.renderSlot(e.$slots,"default")],2)],2)}]]),S=Object.defineProperty,z=Object.defineProperties,$=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,T=(e,t,i)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,q=(e,t)=>{for(var i in t||(t={}))O.call(t,i)&&T(e,i,t[i]);if(V)for(var i of V(t))P.call(t,i)&&T(e,i,t[i]);return e},j=(e,t)=>z(e,$(t));var E,A=(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(!l(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 l(t,1)&&(i.props=j(q({},i.props),{order:{type:Number,required:!1}}),i.data=()=>({dynamicIndex:void 0}),i.computed=j(q({},i.computed),{index(){return null!=this.order?this.order:this.dynamicIndex}})),i},N=t.defineComponent({name:"BTabItem",mixins:[(E="tab",t.defineComponent({mixins:[A(E,1)],props:{label:String,icon:String,iconPack:String,visible:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:null}},data:()=>({transitionName:null,elementClass:"item",elementRole:null}),computed:{isActive(){return this.parent.activeItem===this}},methods:{activate(e){this.transitionName=this.index<e?this.parent.vertical?"slide-down":"slide-next":this.parent.vertical?"slide-up":"slide-prev"},deactivate(e){this.transitionName=e<this.index?this.parent.vertical?"slide-down":"slide-next":this.parent.vertical?"slide-up":"slide-prev"}},render(){var e;if(this.parent.destroyOnHide&&(!this.isActive||!this.visible))return;const i=t.withDirectives(t.h("div",{class:this.elementClass,role:this.elementRole,id:`${this.uniqueValue}-content`,"aria-labelledby":this.elementRole?`${this.uniqueValue}-label`:null,tabindex:this.isActive?0:-1},this.$slots),[[t.vShow,this.isActive&&this.visible]]);return this.parent.animated?t.h(t.Transition,{name:null!=(e=this.parent.animation||this.transitionName)?e:void 0,appear:!0===this.parent.animateInitially||void 0,onBeforeEnter:()=>{this.parent.isTransitioning=!0},onAfterEnter:()=>{this.parent.isTransitioning=!1}},{default:()=>i}):i}}))],props:{disabled:Boolean},data:()=>({elementClass:"tab-item",elementRole:"tabpanel"})});const F=(e,t,i)=>{const n=t.name;if(null==n)throw new Error("Buefy.registerComponent: missing component name");e.component(n,t)},_={install(e){F(e,B),F(e,N)}};e.BTabItem=N,e.BTabs=B,e.default=_,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.1 | 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.1 | 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).Tag={},e.Vue)}(this,(function(e,n){"use strict";let o="mdi",i=null;const t={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},s=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var l=(e,n)=>{const o=e.__vccOpts||e;for(const[e,i]of n)o[e]=i;return o};var c=l(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:t,fa:s(),fas:s(),far:s(),fad:s(),fab:s(),fal:s(),"fa-solid":s(),"fa-regular":s(),"fa-light":s(),"fa-thin":s(),"fa-duotone":s(),"fa-brands":s()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||o},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||i}},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,o,i,t,s,l){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)}]]),a=n.defineComponent({name:"BTag",components:{BIcon:c},props:{attached:Boolean,closable:Boolean,type:[String,Object],size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String,icon:String,iconType:String,iconPack:String,closeType:String,closeIcon:String,closeIconPack:String,closeIconType:String},emits:{click:e=>!0,close:e=>!0},computed:{disabledOrUndefined(){return this.disabled||void 0}},methods:{close(e){this.disabled||this.$emit("close",e)},click(e){this.disabled||this.$emit("click",e)}}});const r={key:0,class:"tags has-addons inline-tags"},d=["aria-label","tabindex","disabled"],p=["aria-label","disabled","tabindex"];var u=l(a,[["render",function(e,o,i,t,s,l){const c=n.resolveComponent("b-icon");return e.attached&&e.closable?(n.openBlock(),n.createElementBlock("div",r,[n.createElementVNode("span",{class:n.normalizeClass(["tag",[e.type,e.size,{"is-rounded":e.rounded}]])},[e.icon?(n.openBlock(),n.createBlock(c,{key:0,icon:e.icon,size:e.size,type:e.iconType,pack:e.iconPack},null,8,["icon","size","type","pack"])):n.createCommentVNode("v-if",!0),n.createElementVNode("span",{class:n.normalizeClass({"has-ellipsis":e.ellipsis}),onClick:o[0]||(o[0]=(...n)=>e.click&&e.click(...n))},[n.renderSlot(e.$slots,"default")],2)],2),n.createElementVNode("a",{class:n.normalizeClass(["tag",[e.size,e.closeType,{"is-rounded":e.rounded},e.closeIcon?"has-delete-icon":"is-delete"]]),role:"button","aria-label":e.ariaCloseLabel,tabindex:e.tabstop?0:void 0,disabled:e.disabledOrUndefined,onClick:o[1]||(o[1]=(...n)=>e.close&&e.close(...n)),onKeyup:o[2]||(o[2]=n.withKeys(n.withModifiers(((...n)=>e.close&&e.close(...n)),["prevent"]),["delete"]))},[e.closeIcon?(n.openBlock(),n.createBlock(c,{key:0,"custom-class":"",icon:e.closeIcon,size:e.size,type:e.closeIconType,pack:e.closeIconPack},null,8,["icon","size","type","pack"])):n.createCommentVNode("v-if",!0)],42,d)])):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(["tag",[e.type,e.size,{"is-rounded":e.rounded}]])},[e.icon?(n.openBlock(),n.createBlock(c,{key:0,icon:e.icon,size:e.size,type:e.iconType,pack:e.iconPack},null,8,["icon","size","type","pack"])):n.createCommentVNode("v-if",!0),n.createElementVNode("span",{class:n.normalizeClass({"has-ellipsis":e.ellipsis}),onClick:o[3]||(o[3]=(...n)=>e.click&&e.click(...n))},[n.renderSlot(e.$slots,"default")],2),e.closable?(n.openBlock(),n.createElementBlock("a",{key:1,role:"button","aria-label":e.ariaCloseLabel,class:n.normalizeClass(["delete is-small",e.closeType]),disabled:e.disabledOrUndefined,tabindex:e.tabstop?0:void 0,onClick:o[4]||(o[4]=(...n)=>e.close&&e.close(...n)),onKeyup:o[5]||(o[5]=n.withKeys(n.withModifiers(((...n)=>e.close&&e.close(...n)),["prevent"]),["delete"]))},null,42,p)):n.createCommentVNode("v-if",!0)],2))}]]);var f=l(n.defineComponent({name:"BTaglist",props:{attached:Boolean}}),[["render",function(e,o,i,t,s,l){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["tags",{"has-addons":e.attached}])},[n.renderSlot(e.$slots,"default")],2)}]]);const m=(e,n,o)=>{const i=n.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,n)},h={install(e){m(e,u),m(e,f)}};e.BTag=u,e.BTaglist=f,e.default=h,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.1 | 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.1 | 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).Taginput={},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",a=null,r="on",c=!0,d=!0,h=!0,p=!0,u=!0;const m={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 f=(e,t)=>{const o=e.__vccOpts||e;for(const[e,i]of t)o[e]=i;return o};var y=f(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:m,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||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||a}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,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)}]]),k=t.defineComponent({name:"BTag",components:{BIcon:y},props:{attached:Boolean,closable:Boolean,type:[String,Object],size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String,icon:String,iconType:String,iconPack:String,closeType:String,closeIcon:String,closeIconPack:String,closeIconType:String},emits:{click:e=>!0,close:e=>!0},computed:{disabledOrUndefined(){return this.disabled||void 0}},methods:{close(e){this.disabled||this.$emit("close",e)},click(e){this.disabled||this.$emit("click",e)}}});const v={key:0,class:"tags has-addons inline-tags"},w=["aria-label","tabindex","disabled"],B=["aria-label","disabled","tabindex"];var b=f(k,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-icon");return e.attached&&e.closable?(t.openBlock(),t.createElementBlock("div",v,[t.createElementVNode("span",{class:t.normalizeClass(["tag",[e.type,e.size,{"is-rounded":e.rounded}]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,size:e.size,type:e.iconType,pack:e.iconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",{class:t.normalizeClass({"has-ellipsis":e.ellipsis}),onClick:o[0]||(o[0]=(...t)=>e.click&&e.click(...t))},[t.renderSlot(e.$slots,"default")],2)],2),t.createElementVNode("a",{class:t.normalizeClass(["tag",[e.size,e.closeType,{"is-rounded":e.rounded},e.closeIcon?"has-delete-icon":"is-delete"]]),role:"button","aria-label":e.ariaCloseLabel,tabindex:e.tabstop?0:void 0,disabled:e.disabledOrUndefined,onClick:o[1]||(o[1]=(...t)=>e.close&&e.close(...t)),onKeyup:o[2]||(o[2]=t.withKeys(t.withModifiers(((...t)=>e.close&&e.close(...t)),["prevent"]),["delete"]))},[e.closeIcon?(t.openBlock(),t.createBlock(a,{key:0,"custom-class":"",icon:e.closeIcon,size:e.size,type:e.closeIconType,pack:e.closeIconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0)],42,w)])):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["tag",[e.type,e.size,{"is-rounded":e.rounded}]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,size:e.size,type:e.iconType,pack:e.iconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",{class:t.normalizeClass({"has-ellipsis":e.ellipsis}),onClick:o[3]||(o[3]=(...t)=>e.click&&e.click(...t))},[t.renderSlot(e.$slots,"default")],2),e.closable?(t.openBlock(),t.createElementBlock("a",{key:1,role:"button","aria-label":e.ariaCloseLabel,class:t.normalizeClass(["delete is-small",e.closeType]),disabled:e.disabledOrUndefined,tabindex:e.tabstop?0:void 0,onClick:o[4]||(o[4]=(...t)=>e.close&&e.close(...t)),onKeyup:o[5]||(o[5]=t.withKeys(t.withModifiers(((...t)=>e.close&&e.close(...t)),["prevent"]),["delete"]))},null,42,B)):t.createCommentVNode("v-if",!0)],2))}]]),C=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,x=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)S.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&C)for(var i of C(e))t.indexOf(i)<0&&V.call(e,i)&&(o[i]=e[i]);return o})(e,["style","class","id"])}return this.$attrs}}});const $=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>p},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)}}});var T=t.defineComponent({name:"BInput",components:{BIcon:y},mixins:[x,$],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||r,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 I=["type","autocomplete","maxlength"],F=["maxlength"],E=["type","autocomplete","maxlength"],z=["maxlength"];var O=f(T,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",e.rootClasses]},e.rootAttrs),[e.lazy?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":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,I)),[[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,F)),[[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,E)),[[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,z)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick: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(a,{key:3,class:t.normalizeClass(["is-right",{"is-clickable":e.passwordReveal||e.iconRightClickable}]),icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:"",onClick:e.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&e.hasCounter&&"number"!==e.type?(t.openBlock(),t.createElementBlock("small",{key:4,class:t.normalizeClass(["help counter",{"is-invisible":!e.isFocused}])},t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],16)}]]),A=t.defineComponent({name:"BAutocomplete",components:{BInput:O},mixins:[x,$],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,a=i.scrollTop+i.clientHeight-n.clientHeight;n.offsetTop<l?i.scrollTop=n.offsetTop:n.offsetTop>=a&&(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 H={key:1,class:"has-text-weight-bold"},P=["onClick"],D={key:1},R={key:1,class:"dropdown-item is-disabled"};var N=f(A,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-input");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["autocomplete control",{"is-expanded":e.expanded}]},e.rootAttrs),[t.createVNode(a,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",H,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",D,t.toDisplayString(e.getValue(o)),1))],10,P)))),128))],64)))),256)),e.isEmpty&&e.hasEmptySlot?(t.openBlock(),t.createElementBlock("div",R,[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)}]]),L=t.defineComponent({name:"BTaginput",components:{BAutocomplete:N,BTag:b},mixins:[x,$],props:{modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},type:String,closeType:String,attached:{type:Boolean,default:!1},maxtags:Number,hasCounter:{type:Boolean,default:()=>h},field:{type:String,default:"value"},autocomplete:Boolean,groupField:String,groupOptions:String,nativeAutocomplete:String,openOnFocus:Boolean,keepOpen:{type:Boolean,default:!0},keepFirst:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},ariaCloseLabel:String,confirmKeys:{type:Array,default:()=>[",","Tab","Enter"]},removeOnKeys:{type:Array,default:()=>["Backspace"]},allowNew:Boolean,onPasteSeparators:{type:Array,default:()=>[","]},beforeAdding:{type:Function,default:()=>!0},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},createTag:{type:Function,default:e=>e},appendToBody:Boolean},emits:{add:e=>!0,"infinite-scroll":()=>!0,remove:e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{tags:Array.isArray(this.modelValue)?this.modelValue.slice(0):this.modelValue||[],newTag:"",isComposing:!1,_elementRef:"autocomplete",_isTaginput:!0,requestID:null}},computed:{rootClasses(){return{"is-expanded":this.expanded}},containerClasses(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength(){return this.newTag.trim().length},hasDefaultSlot(){return!!this.$slots.default},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},hasInput(){return null==this.maxtags||1===this.maxtags||this.tagsLength<this.maxtags},tagsLength(){return this.tags.length},separatorsAsRegExp(){const e=this.onPasteSeparators;return e.length?new RegExp(e.map((e=>e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):null)).join("|"),"g"):null},disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue(e){this.tags=Array.isArray(e)?e.slice(0):e||[]},hasInput(){this.hasInput||this.onBlur()}},methods:{addTag(e){const t=e||this.newTag.trim();if(t){if(!this.autocomplete){const e=this.separatorsAsRegExp;if(e&&t.match(e))return void t.split(e).map((e=>e.trim())).filter((e=>0!==e.length)).map(this.addTag)}(!!this.allowDuplicates||-1===this.tags.indexOf(t))&&this.beforeAdding(t)&&(1===this.maxtags&&(this.tags=[]),this.tags.push(this.createTag(t)),this.$emit("update:modelValue",this.tags),this.$emit("add",t)),this.requestID=requestAnimationFrame((()=>{this.newTag="",this.$emit("typing","")}))}},getNormalizedTagText(e){return"object"==typeof e&&(e=o(e,this.field)),`${e}`},customOnBlur(e){this.autocomplete||this.addTag(),this.onBlur(e)},onSelect(e){e&&(this.addTag(e),this.$nextTick((()=>{this.newTag=""})))},removeTag(e,t){const o=this.tags.splice(e,1)[0];return this.$emit("update:modelValue",this.tags),this.$emit("remove",o),t&&t.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete&&this.$refs.autocomplete.focus(),o},removeLastTag(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown(e){const{key:t}=e;if(-1===this.removeOnKeys.indexOf(t)||this.newTag.length||this.removeLastTag(),(!this.autocomplete||this.allowNew)&&this.confirmKeys.indexOf(t)>=0){if("Tab"!==t&&e.preventDefault(),"Enter"===t&&this.isComposing)return;this.addTag()}},onTyping(e){this.$emit("typing","number"==typeof e?e:null==e?void 0:e.trim())},emitInfiniteScroll(){this.$emit("infinite-scroll")}},beforeUnmount(){cancelAnimationFrame(this.requestID)}});const _=["disabled"],q={key:0,class:"help counter"};var M=f(L,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-tag"),r=t.resolveComponent("b-autocomplete");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["taginput control",e.rootClasses]},e.rootAttrs),[t.createElementVNode("div",{class:t.normalizeClass(["taginput-container input",[e.statusType,e.size,e.containerClasses]]),disabled:e.disabledOrUndefined,onClick:o[3]||(o[3]=t=>e.hasInput&&e.focus())},[t.renderSlot(e.$slots,"selected",{tags:e.tags},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tags,((o,i)=>(t.openBlock(),t.createBlock(a,{key:e.getNormalizedTagText(o)+i,type:e.type,"close-type":e.closeType,size:e.size,rounded:e.rounded,attached:e.attached,tabstop:!1,disabled:e.disabledOrUndefined,ellipsis:e.ellipsis,closable:e.closable,"aria-close-label":e.ariaCloseLabel,title:e.ellipsis&&e.getNormalizedTagText(o),onClose:t=>e.removeTag(i,t)},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"tag",{tag:o},(()=>[t.createTextVNode(t.toDisplayString(e.getNormalizedTagText(o)),1)]))])),_:2},1032,["type","close-type","size","rounded","attached","disabled","ellipsis","closable","aria-close-label","title","onClose"])))),128))])),e.hasInput?(t.openBlock(),t.createBlock(r,t.mergeProps({key:0,ref:"autocomplete",modelValue:e.newTag,"onUpdate:modelValue":o[0]||(o[0]=t=>e.newTag=t)},e.fallthroughAttrs,{data:e.data,field:e.field,icon:e.icon,"icon-pack":e.iconPack,maxlength:e.maxlength,"has-counter":!1,size:e.size,disabled:e.disabledOrUndefined,loading:e.loading,autocomplete:e.nativeAutocomplete,"open-on-focus":e.openOnFocus,"keep-open":e.keepOpen,"keep-first":e.keepFirst,"group-field":e.groupField,"group-options":e.groupOptions,"use-html5-validation":e.useHtml5Validation,"check-infinite-scroll":e.checkInfiniteScroll,"append-to-body":e.appendToBody,"confirm-keys":e.confirmKeys,onTyping:e.onTyping,onFocus:e.onFocus,onBlur:e.customOnBlur,onKeydown:e.keydown,onCompositionstart:o[1]||(o[1]=t=>e.isComposing=!0),onCompositionend:o[2]||(o[2]=t=>e.isComposing=!1),onSelect:e.onSelect,onInfiniteScroll:e.emitInfiniteScroll}),t.createSlots({_:2},[e.hasHeaderSlot?{name:"header",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"header")])),key:"0"}:void 0,e.hasDefaultSlot?{name:"default",fn:t.withCtx((o=>[t.renderSlot(e.$slots,"default",{option:o.option,index:o.index})])),key:"1"}:void 0,e.hasEmptySlot?{name:"empty",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"empty")])),key:"2"}:void 0,e.hasFooterSlot?{name:"footer",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"footer")])),key:"3"}:void 0]),1040,["modelValue","data","field","icon","icon-pack","maxlength","size","disabled","loading","autocomplete","open-on-focus","keep-open","keep-first","group-field","group-options","use-html5-validation","check-infinite-scroll","append-to-body","confirm-keys","onTyping","onFocus","onBlur","onKeydown","onSelect","onInfiniteScroll"])):t.createCommentVNode("v-if",!0)],10,_),e.hasCounter&&(e.maxtags||e.maxlength)?(t.openBlock(),t.createElementBlock("small",q,[e.maxlength&&e.valueLength>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),1)],64)):e.maxtags?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.tagsLength)+" / "+t.toDisplayString(e.maxtags),1)],64)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0)],16)}]]);const K={install(e){((e,t)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)})(e,M)}};e.BTaginput=M,e.default=K,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.1 | 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) :