buefy 3.0.4 → 3.0.6
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.
- package/dist/buefy.d.ts +257 -136
- package/dist/buefy.esm.js +212 -48
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +212 -46
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/{Autocomplete-DEUs3z7g.js → Autocomplete-b0JUESTO.js} +3 -3
- package/dist/cjs/{Button-Cq7yqI8p.js → Button-Dw6VG6n7.js} +2 -2
- package/dist/cjs/{Checkbox-GPzAMQqM.js → Checkbox-cujzPKDl.js} +31 -3
- package/dist/cjs/{CompatFallthroughMixin-hhK0Gkhr.js → CompatFallthroughMixin-DI5L88ey.js} +1 -1
- package/dist/cjs/{Datepicker-B-9ReBe6.js → Datepicker-DVB975q3.js} +9 -9
- package/dist/cjs/{Dropdown-DtpKU9qf.js → Dropdown-CFh_lLvm.js} +2 -1
- package/dist/cjs/{DropdownItem-IMOKyRGV.js → DropdownItem-D2Ky1QIH.js} +1 -1
- package/dist/cjs/{Field-19ZCJFF8.js → Field-Dy73xhhY.js} +1 -1
- package/dist/cjs/{FormElementMixin-DavX4iOv.js → FormElementMixin-17PQ7TPR.js} +1 -1
- package/dist/cjs/{Icon-lsDKE2wQ.js → Icon-DrFLI3Zg.js} +48 -6
- package/dist/cjs/{Image-CocPwU3n.js → Image-D4AGl_2Z.js} +1 -1
- package/dist/cjs/{Input-BcloGeZ3.js → Input-z4Vlmbj8.js} +4 -4
- package/dist/cjs/{Modal-D1aZUehE.js → Modal-CVyLPawO.js} +1 -1
- package/dist/cjs/{NoticeMixin--3RjH43z.js → NoticeMixin-BlwAiMRV.js} +1 -1
- package/dist/cjs/{Pagination-D1MVdiLp.js → Pagination-54NHaQvi.js} +2 -2
- package/dist/cjs/{Progress-DT9Qc8Id.js → Progress-BlXLJ3zb.js} +1 -1
- package/dist/cjs/{Select-DayPKwCY.js → Select-DRXaEjlP.js} +3 -3
- package/dist/cjs/{TabbedChildMixin-B3JUUwcf.js → TabbedChildMixin-BFHsIyg6.js} +1 -1
- package/dist/cjs/{Tag-BprnwJJ1.js → Tag-BdL2uH8x.js} +1 -1
- package/dist/cjs/{Timepicker-CDZ3V-2J.js → Timepicker-ujQPxzDF.js} +6 -6
- package/dist/cjs/{TimepickerMixin-C9WVvcUL.js → TimepickerMixin-C9OA8jWF.js} +3 -3
- package/dist/cjs/{Tooltip-Cgighv0j.js → Tooltip-j_3eF7QD.js} +1 -1
- package/dist/cjs/autocomplete.js +7 -6
- package/dist/cjs/breadcrumb.js +2 -2
- package/dist/cjs/button.js +4 -3
- package/dist/cjs/carousel.js +5 -4
- package/dist/cjs/checkbox.js +3 -1
- package/dist/cjs/clockpicker.js +8 -7
- package/dist/cjs/colorpicker.js +12 -11
- package/dist/cjs/{config-DR826Ki2.js → config-CXSF5Vky.js} +2 -1
- package/dist/cjs/config.js +1 -1
- package/dist/cjs/datepicker.js +11 -10
- package/dist/cjs/datetimepicker.js +13 -12
- package/dist/cjs/dialog.js +5 -4
- package/dist/cjs/dropdown.js +3 -3
- package/dist/cjs/field.js +2 -2
- package/dist/cjs/icon.js +5 -2
- package/dist/cjs/iconAliases-DoayKo0q.js +100 -0
- package/dist/cjs/image.js +2 -2
- package/dist/cjs/{index-SLOXD6k3.js → index-N35FRTpu.js} +9 -9
- package/dist/cjs/index.js +27 -24
- package/dist/cjs/input.js +6 -5
- package/dist/cjs/menu.js +4 -3
- package/dist/cjs/message.js +4 -3
- package/dist/cjs/modal.js +2 -2
- package/dist/cjs/navbar.js +2 -2
- package/dist/cjs/notification.js +5 -4
- package/dist/cjs/numberinput.js +6 -5
- package/dist/cjs/pagination.js +4 -3
- package/dist/cjs/progress.js +2 -2
- package/dist/cjs/rate.js +3 -2
- package/dist/cjs/select.js +6 -5
- package/dist/cjs/sidebar.js +1 -1
- package/dist/cjs/slider.js +3 -3
- package/dist/cjs/snackbar.js +2 -2
- package/dist/cjs/steps.js +4 -3
- package/dist/cjs/switch.js +1 -1
- package/dist/cjs/table.js +9 -8
- package/dist/cjs/tabs.js +4 -3
- package/dist/cjs/tag.js +4 -3
- package/dist/cjs/taginput.js +8 -7
- package/dist/cjs/timepicker.js +12 -11
- package/dist/cjs/toast.js +2 -2
- package/dist/cjs/tooltip.js +2 -2
- package/dist/cjs/upload.js +3 -3
- package/dist/components/autocomplete/index.js +122 -6
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +122 -6
- package/dist/components/button/index.min.js +2 -2
- package/dist/components/carousel/index.js +123 -7
- package/dist/components/carousel/index.min.js +2 -2
- package/dist/components/checkbox/index.js +106 -4
- package/dist/components/checkbox/index.min.js +2 -2
- package/dist/components/clockpicker/index.js +127 -10
- package/dist/components/clockpicker/index.min.js +2 -2
- package/dist/components/collapse/index.js +1 -1
- package/dist/components/collapse/index.min.js +1 -1
- package/dist/components/colorpicker/index.js +128 -11
- package/dist/components/colorpicker/index.min.js +2 -2
- package/dist/components/datepicker/index.js +135 -18
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +127 -10
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +122 -6
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +2 -1
- package/dist/components/dropdown/index.min.js +2 -2
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.min.js +1 -1
- package/dist/components/icon/index.js +124 -6
- package/dist/components/icon/index.min.js +2 -2
- package/dist/components/image/index.js +1 -1
- package/dist/components/image/index.min.js +1 -1
- package/dist/components/input/index.js +122 -6
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +124 -8
- package/dist/components/menu/index.min.js +2 -2
- package/dist/components/message/index.js +122 -6
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/index.min.js +1 -1
- package/dist/components/navbar/index.js +1 -1
- package/dist/components/navbar/index.min.js +1 -1
- package/dist/components/notification/index.js +122 -6
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +122 -6
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +122 -6
- package/dist/components/pagination/index.min.js +2 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.min.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +122 -6
- package/dist/components/rate/index.min.js +2 -2
- package/dist/components/select/index.js +122 -6
- package/dist/components/select/index.min.js +2 -2
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/index.min.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.min.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.min.js +1 -1
- package/dist/components/snackbar/index.js +1 -1
- package/dist/components/snackbar/index.min.js +1 -1
- package/dist/components/steps/index.js +122 -6
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +156 -13
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +122 -6
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +122 -6
- package/dist/components/tag/index.min.js +2 -2
- package/dist/components/taginput/index.js +122 -6
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +135 -18
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.min.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.min.js +1 -1
- package/dist/components/upload/index.js +1 -1
- package/dist/components/upload/index.min.js +1 -1
- package/dist/css/buefy.css +21 -38
- package/dist/css/buefy.css.map +1 -1
- package/dist/css/buefy.min.css +1 -1
- package/dist/css/versions/buefy-no-reset.css +21 -38
- package/dist/css/versions/buefy-no-reset.css.map +1 -1
- package/dist/css/versions/buefy-no-reset.min.css +1 -1
- package/dist/css/versions/buefy-standalone.css +21 -38
- package/dist/css/versions/buefy-standalone.css.map +1 -1
- package/dist/css/versions/buefy-standalone.min.css +1 -1
- package/dist/esm/{Autocomplete-CZ8DmXsB.js → Autocomplete-BsBIH0Mj.js} +4 -4
- package/dist/esm/{Button-DyUYShTZ.js → Button-BTP__-p5.js} +3 -3
- package/dist/esm/{Checkbox-KUMz0sfA.js → Checkbox-C6pO3IzG.js} +32 -4
- package/dist/esm/{CompatFallthroughMixin-C8LPuwDr.js → CompatFallthroughMixin-LfFRwwlz.js} +1 -1
- package/dist/esm/{Datepicker-Bl8Wfdkn.js → Datepicker-CrVKrZBF.js} +10 -10
- package/dist/esm/{Dropdown-CGTYVyoL.js → Dropdown-GHauDDcD.js} +3 -2
- package/dist/esm/{DropdownItem-Cn3nM0A3.js → DropdownItem-By3tSZk2.js} +2 -2
- package/dist/esm/{Field-B7bX_uUg.js → Field-CU8ZBgMh.js} +2 -2
- package/dist/esm/{FormElementMixin-Dd_wkBN5.js → FormElementMixin-CKI7b4I4.js} +1 -1
- package/dist/esm/{Icon-DPyGDeRK.js → Icon-pQAdaqZb.js} +49 -7
- package/dist/esm/{Image-DhX-4hlV.js → Image-COmzg-EK.js} +2 -2
- package/dist/esm/{Input-C4L520az.js → Input-CErQ1Jyw.js} +5 -5
- package/dist/esm/{Loading-tuQoo6TU.js → Loading-BSqhV1Gi.js} +1 -1
- package/dist/esm/{Modal-EiR_KNGZ.js → Modal-C13NJijf.js} +2 -2
- package/dist/esm/{NoticeMixin-ByNlva3T.js → NoticeMixin-TQEF1Kx6.js} +1 -1
- package/dist/esm/{Pagination-B-LAJQay.js → Pagination-DvgzxH87.js} +3 -3
- package/dist/esm/{Progress-BPGTVZgr.js → Progress-AeKn1Ttq.js} +2 -2
- package/dist/esm/{Select-bl4qUzij.js → Select-CbkuxvSQ.js} +4 -4
- package/dist/esm/{TabbedChildMixin-C4i6WP9j.js → TabbedChildMixin-Bdu5A4iY.js} +1 -1
- package/dist/esm/{Tag-jS5Bcj6N.js → Tag-Dx_-Tavp.js} +2 -2
- package/dist/esm/{Timepicker-DnkqnOBT.js → Timepicker-0ojuPkqd.js} +7 -7
- package/dist/esm/{TimepickerMixin-Bikh6_Fg.js → TimepickerMixin-oNahYGFZ.js} +3 -3
- package/dist/esm/{Tooltip-CtDSXAqa.js → Tooltip-BnzQFdnQ.js} +2 -2
- package/dist/esm/autocomplete.js +7 -6
- package/dist/esm/breadcrumb.js +3 -3
- package/dist/esm/button.js +4 -3
- package/dist/esm/carousel.js +6 -5
- package/dist/esm/checkbox.js +4 -2
- package/dist/esm/clockpicker.js +9 -8
- package/dist/esm/colorpicker.js +12 -11
- package/dist/esm/{config-CKuo-p6e.js → config-f4Dyy8TN.js} +2 -1
- package/dist/esm/config.js +1 -1
- package/dist/esm/datepicker.js +11 -10
- package/dist/esm/datetimepicker.js +14 -13
- package/dist/esm/dialog.js +6 -5
- package/dist/esm/dropdown.js +3 -3
- package/dist/esm/field.js +2 -2
- package/dist/esm/icon.js +3 -2
- package/dist/esm/iconAliases-B-CydxNj.js +97 -0
- package/dist/esm/image.js +2 -2
- package/dist/esm/{index-BE58-KfV.js → index-BYVep8cv.js} +11 -11
- package/dist/esm/index.js +27 -26
- package/dist/esm/input.js +6 -5
- package/dist/esm/loading.js +1 -1
- package/dist/esm/menu.js +5 -4
- package/dist/esm/message.js +5 -4
- package/dist/esm/modal.js +2 -2
- package/dist/esm/navbar.js +3 -3
- package/dist/esm/notification.js +6 -5
- package/dist/esm/numberinput.js +7 -6
- package/dist/esm/pagination.js +4 -3
- package/dist/esm/progress.js +3 -3
- package/dist/esm/radio.js +1 -1
- package/dist/esm/rate.js +4 -3
- package/dist/esm/select.js +6 -5
- package/dist/esm/sidebar.js +2 -2
- package/dist/esm/slider.js +4 -4
- package/dist/esm/snackbar.js +3 -3
- package/dist/esm/steps.js +5 -4
- package/dist/esm/switch.js +2 -2
- package/dist/esm/table.js +11 -10
- package/dist/esm/tabs.js +5 -4
- package/dist/esm/tag.js +5 -4
- package/dist/esm/taginput.js +9 -8
- package/dist/esm/timepicker.js +12 -11
- package/dist/esm/toast.js +3 -3
- package/dist/esm/tooltip.js +2 -2
- package/dist/esm/upload.js +4 -4
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +2 -2
- package/src/components/carousel/CarouselList.vue +1 -1
- package/src/components/carousel/__snapshots__/CarouselList.spec.ts.snap +1 -1
- package/src/components/checkbox/Checkbox.spec.ts +66 -2
- package/src/components/checkbox/Checkbox.vue +25 -1
- package/src/components/checkbox/__snapshots__/Checkbox.spec.ts.snap +1 -1
- package/src/components/datepicker/__snapshots__/Datepicker.spec.ts.snap +2 -2
- package/src/components/dropdown/Dropdown.spec.ts +15 -0
- package/src/components/dropdown/Dropdown.vue +5 -0
- package/src/components/icon/Icon.spec.ts +67 -0
- package/src/components/icon/Icon.vue +40 -5
- package/src/components/icon/__snapshots__/Icon.spec.ts.snap +1 -1
- package/src/components/icon/index.ts +10 -0
- package/src/components/table/__snapshots__/TableMobileSort.spec.ts.snap +1 -1
- package/src/scss/components/_checkbox.scss +13 -16
- package/src/utils/config.ts +104 -2
- package/src/utils/iconAliases.ts +86 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
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
|
+
/*! Buefy v3.0.6 | 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 l(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function n(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:l,order:n,customSort:a}=i;if("function"==typeof a)return a(e,t,"desc"!==n);{const i=o(e,l),a=o(t,l),s=i>a?1:i<a?-1:0;return"desc"===n?-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 l=0,n=0;if(null!=i&&i!==e.target){const t=e.target.getBoundingClientRect(),o=i.getBoundingClientRect();l=o.left-t.left,n=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+l,clientY:a.clientY+n,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey})};function d(e,t,o){let i;return function(...o){const l=this;clearTimeout(i),i=setTimeout((function(){i=void 0,e.apply(l,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}}}),k=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()}}});const b={checkboxOn:{type:"svg",viewBox:"0 0 1 1",path:"M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"},checkboxIndeterminate:{type:"svg",viewBox:"0 0 1 1",path:"M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"},chevronLeft:{type:"svg",path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"},chevronRight:{type:"svg",path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},chevronDown:{type:"svg",path:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},chevronUp:{type:"svg",path:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},menuDown:{type:"svg",path:"M7,10L12,15L17,10H7Z"},menuUp:{type:"svg",path:"M7,14L12,9L17,14H7Z"},check:{type:"svg",path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},alertCircle:{type:"svg",path:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},alert:{type:"svg",path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"},information:{type:"svg",path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},close:{type:"svg",path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},closeCircle:{type:"svg",path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"},eye:{type:"svg",path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"},eyeOff:{type:"svg",path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}};function C(e){return b[e]}var y=t.defineComponent({name:"BCheckbox",mixins:[k],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:""}},computed:{isChecked(){const e=this.computedValue;return Array.isArray(e)?e.includes(this.nativeValue):e===this.trueValue},checkmarkAlias(){return C(this.indeterminate?"checkboxIndeterminate":"checkboxOn")}}}),v=(e,t)=>{const o=e.__vccOpts||e;for(const[e,i]of t)o[e]=i;return o};const w=["disabled"],S=["id",".indeterminate","autocomplete","disabled","required","name","value","true-value","false-value","aria-labelledby"],B=["viewBox"],D=["d"],V=["id"];var P=v(y,[["render",function(e,o,i,l,n,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,S),[[t.vModelCheckbox,e.computedValue]]),t.createElementVNode("span",{class:t.normalizeClass(["check",e.type])},[e.isChecked||e.indeterminate?(t.openBlock(),t.createElementBlock("svg",{key:0,viewBox:e.checkmarkAlias.viewBox||"0 0 1 1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:e.checkmarkAlias.path},null,8,D)],8,B)):t.createCommentVNode("v-if",!0)],2),t.createElementVNode("span",{id:e.ariaLabelledby,class:"control-label"},[t.renderSlot(e.$slots,"default")],8,V)],42,w)}]]);const x={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},I=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var E=t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!1,default:void 0},alias:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{resolvedAlias(){var e;return this.alias&&null!=(e=C(this.alias))?e:null},isSvgAlias(){var e;return"svg"===(null==(e=this.resolvedAlias)?void 0:e.type)},isComponentAlias(){var e;return"component"===(null==(e=this.resolvedAlias)?void 0:e.type)},resolvedAliasSvg(){return this.resolvedAlias},resolvedAliasComponent(){return this.resolvedAlias},iconConfig(){return{mdi:x,fa:I(),fas:I(),far:I(),fad:I(),fab:I(),fal:I(),"fa-solid":I(),"fa-regular":I(),"fa-light":I(),"fa-thin":I(),"fa-duotone":I(),"fa-brands":I()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){var e;return`${this.iconPrefix}${this.getEquivalentIconOf(null!=(e=this.icon)?e:"")}`},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}}});const R=["viewBox"],L=["d"];var N=v(E,[["render",function(e,o,i,l,n,a){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.isSvgAlias?(t.openBlock(),t.createElementBlock("svg",{key:0,viewBox:e.resolvedAliasSvg.viewBox||"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass(e.customClass),"aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:e.resolvedAliasSvg.path},null,8,L)],10,R)):e.isComponentAlias?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.resolvedAliasComponent.component),{key:1,icon:e.resolvedAliasComponent.icon,class:t.normalizeClass(e.customClass)},null,8,["icon","class"])):e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:3,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]);const $=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 A=t.defineComponent({name:"BInput",components:{BIcon:N},mixins:[f,$],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 M=["type","autocomplete","maxlength"],T=["maxlength"],z=["type","autocomplete","maxlength"],F=["maxlength"];var O=v(A,[["render",function(e,o,i,l,n,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,M)),[[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,T)),[[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,z)),[[t.vModelDynamic,e.computedValue]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":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,F)),[[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 K="undefined"==typeof window?Object:window.HTMLElement,H=t.defineComponent({name:"BLoading",props:{modelValue:Boolean,programmatic:Boolean,container:[Object,Function,K],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((()=>{l(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)}}),U=t.createElementVNode("div",{class:"loading-icon"},null,-1);var j=v(H,[["render",function(e,o,i,l,n,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",{},(()=>[U]))],2)),[[t.vShow,e.isActive]]):t.createCommentVNode("v-if",!0)])),_:3},8,["name"])}]]),_=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)}}),Z=t.defineComponent({name:"BSelect",components:{BIcon:N},mixins:[f,$],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 q=["multiple","size"],W={key:0,value:null,disabled:"",hidden:""};var Y=v(Z,[["render",function(e,o,i,l,n,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",W,t.toDisplayString(e.placeholder),1)):t.createCommentVNode("v-if",!0)],64)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default")],16,q),[[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)}]]),X=t.defineComponent({name:"BTableMobileSort",components:{BSelect:Y,BIcon:N},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 J={class:"field table-mobile-sort"},G={class:"field has-addons"},Q=["value"],ee=["value"],te={class:"control"};var oe=v(X,[["render",function(e,o,i,l,n,a){const s=t.resolveComponent("b-select"),r=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",J,[t.createElementVNode("div",G,[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,ee)))),128))])),_:1},8,["modelValue"])),t.createElementVNode("div",te,[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 ie=v(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,l,n,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"])}]]),le=t.defineComponent({name:"BPagination",components:{BIcon:N,BPaginationButton:ie},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 ne={class:"control pagination-input"},ae=["value","size","maxlength"],se={key:4,class:"info"},re={key:5,class:"pagination-list"},ce={key:0},ue={key:1},de=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],he={key:2},pe=[t.createElementVNode("span",{class:"pagination-ellipsis"},"…",-1)],me={key:3};var ge=v(le,[["render",function(e,o,i,l,n,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",ne,[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,ae)):t.createCommentVNode("v-if",!0)]),e.simple?(t.openBlock(),t.createElementBlock("small",se,[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",re,[t.createCommentVNode("First"),e.hasFirst?(t.openBlock(),t.createElementBlock("li",ce,[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",ue,[...de])):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",he,[...pe])):t.createCommentVNode("v-if",!0),e.hasLast?(t.openBlock(),t.createElementBlock("li",me,[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)}]]),fe=t.defineComponent({name:"BTablePagination",components:{BPagination:ge},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 ke={class:"top level"},be={class:"level-left"},Ce={class:"level-right"},ye={key:0,class:"level-item"};var ve=v(fe,[["render",function(e,o,i,l,n,a){const s=t.resolveComponent("b-pagination");return t.openBlock(),t.createElementBlock("div",ke,[t.createElementVNode("div",be,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("div",Ce,[e.paginated?(t.openBlock(),t.createElementBlock("div",ye,[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)])])}]]),we=Object.defineProperty,Se=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,xe=(e,t,o)=>t in e?we(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ie=(e,t)=>{for(var o in t||(t={}))Ve.call(t,o)&&xe(e,o,t[o]);if(De)for(var o of De(t))Pe.call(t,o)&&xe(e,o,t[o]);return e};function Ee(e,i){return l=Ie(Ie({},{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),n={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}},Se(l,Be(n));var l,n}const Re={thAttrs:()=>({}),tdAttrs:()=>({}),getRootClasses:()=>[],getRootStyle:()=>{},$slots:{}};var Le=t.defineComponent({name:"BTable",components:{BCheckbox:P,BIcon:N,BInput:O,BLoading:j,BSlotComponent:_,BTableMobileSort:oe,BTablePagination:ve},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=>Ee(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=Re,this.newData=this.data},sortBy(e,t,i,l){let n=[];return n=i&&"function"==typeof i?[...e].sort(((e,t)=>i(e,t,l))):[...e].sort(((e,i)=>{let n=o(e,t),a=o(i,t);return"boolean"==typeof n&&"boolean"==typeof a?l?+n-+a:+a-+n:!c(a)&&c(n)?l?1:-1:!c(n)&&c(a)?l?-1:1:n===a?0:(n="string"==typeof n?n.toUpperCase():n,a="string"==typeof a?a.toUpperCase():a,l?n>a?1:-1:n>a?-1:1)})),n},sortMultiColumn(e){if(this.currentSortColumn=Re,!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),l=!this.isRowChecked(e);i.forEach((e=>{this.removeCheckedRow(e),l&&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(n(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)!==Re)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,l=e+window.scrollX-o.width/2;this.$refs.draggedCell.style.top=`calc(${i}px)`,this.$refs.draggedCell.style.left=`calc(${l}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&&l(this.$data._draggedCellEl)}});const Ne=["tabindex"],$e={key:1},Ae={key:0,width:"40px"},Me=["onClick","draggable","onDragstart","onDragend","onDrop","onDragover","onDragleave"],Te={key:0,class:"multi-sort-icons"},ze=["onClick"],Fe={key:0,class:"is-subheading"},Oe={key:0,width:"40px"},Ke={key:1},He={key:2},Ue={key:1},je={key:0,width:"40px"},_e={key:1},Ze={key:2},qe=["onClick","onDblclick","onMouseenter","onMouseleave","onContextmenu","draggable","onDragstart","onDragend","onDrop","onDragover","onDragleave","onTouchstart"],We={key:0,class:"chevron-cell"},Ye=["onClick"],Xe={key:0,class:"detail"},Je=["colspan"],Ge={class:"detail-container"},Qe={key:0,class:"is-empty"},et=["colspan"],tt={key:2},ot={class:"table-footer"},it=["colspan"],lt=["innerHTML"];var nt=v(Le,[["render",function(e,o,i,l,n,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",$e,[t.createElementVNode("tr",null,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",Ae)):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,l)=>(t.openBlock(),t.createElementBlock("th",t.mergeProps({key:i.newKey+":"+l+"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,l),onDragend:t=>e.handleColumnDragEnd(t,i,l),onDrop:t=>e.handleColumnDrop(t,i,l),onDragover:t=>e.handleColumnDragOver(t,i,l),onDragleave:t=>e.handleColumnDragLeave(t,i,l),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:l}},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",Te,[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,ze)])):(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,Me)))),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",Fe,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",Oe)):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",Ke)):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",He)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0),e.hasSearchablenewColumns?(t.openBlock(),t.createElementBlock("tr",Ue,[e.showDetailRowIcon?(t.openBlock(),t.createElementBlock("th",je)):t.createCommentVNode("v-if",!0),e.checkable&&"left"===e.checkboxPosition?(t.openBlock(),t.createElementBlock("th",_e)):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",Ze)):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,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.customRowKey?i[e.customRowKey]:l},[t.createElementVNode("tr",{class:t.normalizeClass([e.rowClass(i,l),{"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,l),onDragend:t=>e.handleDragEnd(t,i,l),onDrop:t=>e.handleDrop(t,i,l),onDragover:t=>e.handleDragOver(t,i,l),onDragleave:t=>e.handleDragLeave(t,i,l),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",We,[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,Ye)):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,l,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,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.newKey+":"+l+":"+n},[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:l,colindex:n,toggleDetails:e.toggleDetails,isActiveDetailRow:e.isActiveDetailRow},onClick:t=>e.$emit("cellclick",i,o,l,n)}),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,l,t)),["prevent","stop"])},null,8,["model-value","type","disabled","onClick"])],2)):t.createCommentVNode("v-if",!0)],42,qe),t.createVNode(t.Transition,{name:e.detailTransition},{default:t.withCtx((()=>[e.isActiveDetailRow(i)?(t.openBlock(),t.createElementBlock("tr",Xe,[t.createElementVNode("td",{colspan:e.columnCount},[t.createElementVNode("div",Ge,[t.renderSlot(e.$slots,"detail",{row:i,index:l})])],8,Je)])):t.createCommentVNode("v-if",!0)])),_:2},1032,["name"]),e.isActiveCustomDetailRow(i)?t.renderSlot(e.$slots,"detail",{key:0,row:i,index:l}):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,et)]))]),void 0!==e.$slots.footer?(t.openBlock(),t.createElementBlock("tfoot",tt,[t.createElementVNode("tr",ot,[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,it))])])):t.createCommentVNode("v-if",!0)],42,Ne),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,lt),[[t.vShow,e.mayBeTouchDragging&&(e.isDraggingRow||e.isDraggingColumn)]]),t.createCommentVNode(" eslint-enable vue/no-v-html ")],16)}]]),at=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 st=(e,t,o)=>{const i=t.name;if(null==i)throw new Error("Buefy.registerComponent: missing component name");e.component(i,t)},rt={install(e){st(e,nt),st(e,at)}};e.BTable=nt,e.BTableColumn=at,e.default=rt,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v3.0.
|
|
1
|
+
/*! Buefy v3.0.6 | 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) :
|
|
@@ -71,6 +71,81 @@
|
|
|
71
71
|
return icons;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
+
const defaultIconAliases = {
|
|
75
|
+
checkboxOn: {
|
|
76
|
+
type: "svg",
|
|
77
|
+
viewBox: "0 0 1 1",
|
|
78
|
+
path: "M 0.04038059,0.6267767 0.14644661,0.52071068 0.42928932,0.80355339 0.3232233,0.90961941 z M 0.21715729,0.80355339 0.85355339,0.16715729 0.95961941,0.2732233 0.3232233,0.90961941 z"
|
|
79
|
+
},
|
|
80
|
+
checkboxIndeterminate: {
|
|
81
|
+
type: "svg",
|
|
82
|
+
viewBox: "0 0 1 1",
|
|
83
|
+
path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
|
|
84
|
+
},
|
|
85
|
+
chevronLeft: {
|
|
86
|
+
type: "svg",
|
|
87
|
+
path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
|
|
88
|
+
},
|
|
89
|
+
chevronRight: {
|
|
90
|
+
type: "svg",
|
|
91
|
+
path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
|
|
92
|
+
},
|
|
93
|
+
chevronDown: {
|
|
94
|
+
type: "svg",
|
|
95
|
+
path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
|
|
96
|
+
},
|
|
97
|
+
chevronUp: {
|
|
98
|
+
type: "svg",
|
|
99
|
+
path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
|
|
100
|
+
},
|
|
101
|
+
menuDown: {
|
|
102
|
+
type: "svg",
|
|
103
|
+
path: "M7,10L12,15L17,10H7Z"
|
|
104
|
+
},
|
|
105
|
+
menuUp: {
|
|
106
|
+
type: "svg",
|
|
107
|
+
path: "M7,14L12,9L17,14H7Z"
|
|
108
|
+
},
|
|
109
|
+
check: {
|
|
110
|
+
type: "svg",
|
|
111
|
+
path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
|
|
112
|
+
},
|
|
113
|
+
alertCircle: {
|
|
114
|
+
type: "svg",
|
|
115
|
+
path: "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
116
|
+
},
|
|
117
|
+
alert: {
|
|
118
|
+
type: "svg",
|
|
119
|
+
path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
120
|
+
},
|
|
121
|
+
information: {
|
|
122
|
+
type: "svg",
|
|
123
|
+
path: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"
|
|
124
|
+
},
|
|
125
|
+
close: {
|
|
126
|
+
type: "svg",
|
|
127
|
+
path: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
|
|
128
|
+
},
|
|
129
|
+
closeCircle: {
|
|
130
|
+
type: "svg",
|
|
131
|
+
path: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"
|
|
132
|
+
},
|
|
133
|
+
eye: {
|
|
134
|
+
type: "svg",
|
|
135
|
+
path: "M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
136
|
+
},
|
|
137
|
+
eyeOff: {
|
|
138
|
+
type: "svg",
|
|
139
|
+
path: "M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.18 16.38,18.6L16.81,19L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
function getIconAliases() {
|
|
143
|
+
return defaultIconAliases;
|
|
144
|
+
}
|
|
145
|
+
function resolveAlias(name) {
|
|
146
|
+
return getIconAliases()[name];
|
|
147
|
+
}
|
|
148
|
+
|
|
74
149
|
var _sfc_main$2 = vue.defineComponent({
|
|
75
150
|
name: "BIcon",
|
|
76
151
|
props: {
|
|
@@ -79,8 +154,11 @@
|
|
|
79
154
|
pack: String,
|
|
80
155
|
icon: {
|
|
81
156
|
type: String,
|
|
82
|
-
required:
|
|
157
|
+
required: false,
|
|
158
|
+
default: void 0
|
|
83
159
|
},
|
|
160
|
+
/** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
|
|
161
|
+
alias: String,
|
|
84
162
|
size: String,
|
|
85
163
|
customSize: String,
|
|
86
164
|
customClass: String,
|
|
@@ -88,6 +166,26 @@
|
|
|
88
166
|
// This is used internally to show both MDI and FA icon
|
|
89
167
|
},
|
|
90
168
|
computed: {
|
|
169
|
+
resolvedAlias() {
|
|
170
|
+
var _a;
|
|
171
|
+
if (!this.alias) return null;
|
|
172
|
+
return (_a = resolveAlias(this.alias)) != null ? _a : null;
|
|
173
|
+
},
|
|
174
|
+
isSvgAlias() {
|
|
175
|
+
var _a;
|
|
176
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
|
|
177
|
+
},
|
|
178
|
+
isComponentAlias() {
|
|
179
|
+
var _a;
|
|
180
|
+
return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
|
|
181
|
+
},
|
|
182
|
+
// Typed accessors used in the template
|
|
183
|
+
resolvedAliasSvg() {
|
|
184
|
+
return this.resolvedAlias;
|
|
185
|
+
},
|
|
186
|
+
resolvedAliasComponent() {
|
|
187
|
+
return this.resolvedAlias;
|
|
188
|
+
},
|
|
91
189
|
iconConfig() {
|
|
92
190
|
const allIcons = getIcons();
|
|
93
191
|
return allIcons[this.newPack];
|
|
@@ -104,7 +202,8 @@
|
|
|
104
202
|
* internal icons are always MDI.
|
|
105
203
|
*/
|
|
106
204
|
newIcon() {
|
|
107
|
-
|
|
205
|
+
var _a;
|
|
206
|
+
return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
|
|
108
207
|
},
|
|
109
208
|
newPack() {
|
|
110
209
|
return this.pack || config.defaultIconPack;
|
|
@@ -171,6 +270,8 @@
|
|
|
171
270
|
return target;
|
|
172
271
|
};
|
|
173
272
|
|
|
273
|
+
const _hoisted_1$1 = ["viewBox"];
|
|
274
|
+
const _hoisted_2$1 = ["d"];
|
|
174
275
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
175
276
|
return vue.openBlock(), vue.createElementBlock(
|
|
176
277
|
"span",
|
|
@@ -178,17 +279,32 @@
|
|
|
178
279
|
class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
|
|
179
280
|
},
|
|
180
281
|
[
|
|
181
|
-
|
|
282
|
+
_ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
283
|
+
key: 0,
|
|
284
|
+
viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
|
|
285
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
286
|
+
class: vue.normalizeClass(_ctx.customClass),
|
|
287
|
+
"aria-hidden": "true"
|
|
288
|
+
}, [
|
|
289
|
+
vue.createElementVNode("path", {
|
|
290
|
+
fill: "currentColor",
|
|
291
|
+
d: _ctx.resolvedAliasSvg.path
|
|
292
|
+
}, null, 8, _hoisted_2$1)
|
|
293
|
+
], 10, _hoisted_1$1)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
|
|
294
|
+
key: 1,
|
|
295
|
+
icon: _ctx.resolvedAliasComponent.icon,
|
|
296
|
+
class: vue.normalizeClass(_ctx.customClass)
|
|
297
|
+
}, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
|
|
182
298
|
"i",
|
|
183
299
|
{
|
|
184
|
-
key:
|
|
300
|
+
key: 2,
|
|
185
301
|
class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
|
|
186
302
|
},
|
|
187
303
|
null,
|
|
188
304
|
2
|
|
189
305
|
/* CLASS */
|
|
190
306
|
)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
|
|
191
|
-
key:
|
|
307
|
+
key: 3,
|
|
192
308
|
icon: [_ctx.newPack, _ctx.newIcon],
|
|
193
309
|
size: _ctx.newCustomSize,
|
|
194
310
|
class: vue.normalizeClass([_ctx.customClass])
|