buefy 3.0.5 → 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.
Files changed (241) hide show
  1. package/dist/buefy.d.ts +63 -3
  2. package/dist/buefy.esm.js +209 -46
  3. package/dist/buefy.esm.min.js +2 -2
  4. package/dist/buefy.js +209 -44
  5. package/dist/buefy.min.js +2 -2
  6. package/dist/cjs/{Autocomplete-DEUs3z7g.js → Autocomplete-b0JUESTO.js} +3 -3
  7. package/dist/cjs/{Button-Cq7yqI8p.js → Button-Dw6VG6n7.js} +2 -2
  8. package/dist/cjs/{Checkbox-GPzAMQqM.js → Checkbox-cujzPKDl.js} +31 -3
  9. package/dist/cjs/{CompatFallthroughMixin-hhK0Gkhr.js → CompatFallthroughMixin-DI5L88ey.js} +1 -1
  10. package/dist/cjs/{Datepicker-DhsJpauU.js → Datepicker-DVB975q3.js} +9 -9
  11. package/dist/cjs/{Dropdown-BAXMPUCZ.js → Dropdown-CFh_lLvm.js} +1 -1
  12. package/dist/cjs/{DropdownItem-BOAAPdrW.js → DropdownItem-D2Ky1QIH.js} +1 -1
  13. package/dist/cjs/{Field-19ZCJFF8.js → Field-Dy73xhhY.js} +1 -1
  14. package/dist/cjs/{FormElementMixin-DavX4iOv.js → FormElementMixin-17PQ7TPR.js} +1 -1
  15. package/dist/cjs/{Icon-lsDKE2wQ.js → Icon-DrFLI3Zg.js} +48 -6
  16. package/dist/cjs/{Image-CocPwU3n.js → Image-D4AGl_2Z.js} +1 -1
  17. package/dist/cjs/{Input-BcloGeZ3.js → Input-z4Vlmbj8.js} +4 -4
  18. package/dist/cjs/{Modal-D1aZUehE.js → Modal-CVyLPawO.js} +1 -1
  19. package/dist/cjs/{NoticeMixin--3RjH43z.js → NoticeMixin-BlwAiMRV.js} +1 -1
  20. package/dist/cjs/{Pagination-D1MVdiLp.js → Pagination-54NHaQvi.js} +2 -2
  21. package/dist/cjs/{Progress-DT9Qc8Id.js → Progress-BlXLJ3zb.js} +1 -1
  22. package/dist/cjs/{Select-DayPKwCY.js → Select-DRXaEjlP.js} +3 -3
  23. package/dist/cjs/{TabbedChildMixin-B3JUUwcf.js → TabbedChildMixin-BFHsIyg6.js} +1 -1
  24. package/dist/cjs/{Tag-BprnwJJ1.js → Tag-BdL2uH8x.js} +1 -1
  25. package/dist/cjs/{Timepicker-DDYkLeNV.js → Timepicker-ujQPxzDF.js} +6 -6
  26. package/dist/cjs/{TimepickerMixin-C9WVvcUL.js → TimepickerMixin-C9OA8jWF.js} +3 -3
  27. package/dist/cjs/{Tooltip-Cgighv0j.js → Tooltip-j_3eF7QD.js} +1 -1
  28. package/dist/cjs/autocomplete.js +7 -6
  29. package/dist/cjs/breadcrumb.js +2 -2
  30. package/dist/cjs/button.js +4 -3
  31. package/dist/cjs/carousel.js +4 -3
  32. package/dist/cjs/checkbox.js +3 -1
  33. package/dist/cjs/clockpicker.js +8 -7
  34. package/dist/cjs/colorpicker.js +12 -11
  35. package/dist/cjs/{config-DR826Ki2.js → config-CXSF5Vky.js} +2 -1
  36. package/dist/cjs/config.js +1 -1
  37. package/dist/cjs/datepicker.js +11 -10
  38. package/dist/cjs/datetimepicker.js +13 -12
  39. package/dist/cjs/dialog.js +5 -4
  40. package/dist/cjs/dropdown.js +3 -3
  41. package/dist/cjs/field.js +2 -2
  42. package/dist/cjs/icon.js +5 -2
  43. package/dist/cjs/iconAliases-DoayKo0q.js +100 -0
  44. package/dist/cjs/image.js +2 -2
  45. package/dist/cjs/{index-BkFyTNWp.js → index-N35FRTpu.js} +8 -8
  46. package/dist/cjs/index.js +27 -24
  47. package/dist/cjs/input.js +6 -5
  48. package/dist/cjs/menu.js +4 -3
  49. package/dist/cjs/message.js +4 -3
  50. package/dist/cjs/modal.js +2 -2
  51. package/dist/cjs/navbar.js +2 -2
  52. package/dist/cjs/notification.js +5 -4
  53. package/dist/cjs/numberinput.js +6 -5
  54. package/dist/cjs/pagination.js +4 -3
  55. package/dist/cjs/progress.js +2 -2
  56. package/dist/cjs/rate.js +3 -2
  57. package/dist/cjs/select.js +6 -5
  58. package/dist/cjs/sidebar.js +1 -1
  59. package/dist/cjs/slider.js +3 -3
  60. package/dist/cjs/snackbar.js +2 -2
  61. package/dist/cjs/steps.js +4 -3
  62. package/dist/cjs/switch.js +1 -1
  63. package/dist/cjs/table.js +9 -8
  64. package/dist/cjs/tabs.js +4 -3
  65. package/dist/cjs/tag.js +4 -3
  66. package/dist/cjs/taginput.js +8 -7
  67. package/dist/cjs/timepicker.js +12 -11
  68. package/dist/cjs/toast.js +2 -2
  69. package/dist/cjs/tooltip.js +2 -2
  70. package/dist/cjs/upload.js +3 -3
  71. package/dist/components/autocomplete/index.js +122 -6
  72. package/dist/components/autocomplete/index.min.js +2 -2
  73. package/dist/components/breadcrumb/index.js +1 -1
  74. package/dist/components/breadcrumb/index.min.js +1 -1
  75. package/dist/components/button/index.js +122 -6
  76. package/dist/components/button/index.min.js +2 -2
  77. package/dist/components/carousel/index.js +122 -6
  78. package/dist/components/carousel/index.min.js +2 -2
  79. package/dist/components/checkbox/index.js +106 -4
  80. package/dist/components/checkbox/index.min.js +2 -2
  81. package/dist/components/clockpicker/index.js +126 -10
  82. package/dist/components/clockpicker/index.min.js +2 -2
  83. package/dist/components/collapse/index.js +1 -1
  84. package/dist/components/collapse/index.min.js +1 -1
  85. package/dist/components/colorpicker/index.js +126 -10
  86. package/dist/components/colorpicker/index.min.js +2 -2
  87. package/dist/components/datepicker/index.js +134 -18
  88. package/dist/components/datepicker/index.min.js +2 -2
  89. package/dist/components/datetimepicker/index.js +126 -10
  90. package/dist/components/datetimepicker/index.min.js +2 -2
  91. package/dist/components/dialog/index.js +122 -6
  92. package/dist/components/dialog/index.min.js +2 -2
  93. package/dist/components/dropdown/index.js +1 -1
  94. package/dist/components/dropdown/index.min.js +1 -1
  95. package/dist/components/field/index.js +1 -1
  96. package/dist/components/field/index.min.js +1 -1
  97. package/dist/components/icon/index.js +124 -6
  98. package/dist/components/icon/index.min.js +2 -2
  99. package/dist/components/image/index.js +1 -1
  100. package/dist/components/image/index.min.js +1 -1
  101. package/dist/components/input/index.js +122 -6
  102. package/dist/components/input/index.min.js +2 -2
  103. package/dist/components/loading/index.js +1 -1
  104. package/dist/components/loading/index.min.js +1 -1
  105. package/dist/components/menu/index.js +124 -8
  106. package/dist/components/menu/index.min.js +2 -2
  107. package/dist/components/message/index.js +122 -6
  108. package/dist/components/message/index.min.js +2 -2
  109. package/dist/components/modal/index.js +1 -1
  110. package/dist/components/modal/index.min.js +1 -1
  111. package/dist/components/navbar/index.js +1 -1
  112. package/dist/components/navbar/index.min.js +1 -1
  113. package/dist/components/notification/index.js +122 -6
  114. package/dist/components/notification/index.min.js +2 -2
  115. package/dist/components/numberinput/index.js +122 -6
  116. package/dist/components/numberinput/index.min.js +2 -2
  117. package/dist/components/pagination/index.js +122 -6
  118. package/dist/components/pagination/index.min.js +2 -2
  119. package/dist/components/progress/index.js +1 -1
  120. package/dist/components/progress/index.min.js +1 -1
  121. package/dist/components/radio/index.js +1 -1
  122. package/dist/components/radio/index.min.js +1 -1
  123. package/dist/components/rate/index.js +122 -6
  124. package/dist/components/rate/index.min.js +2 -2
  125. package/dist/components/select/index.js +122 -6
  126. package/dist/components/select/index.min.js +2 -2
  127. package/dist/components/sidebar/index.js +1 -1
  128. package/dist/components/sidebar/index.min.js +1 -1
  129. package/dist/components/skeleton/index.js +1 -1
  130. package/dist/components/skeleton/index.min.js +1 -1
  131. package/dist/components/slider/index.js +1 -1
  132. package/dist/components/slider/index.min.js +1 -1
  133. package/dist/components/snackbar/index.js +1 -1
  134. package/dist/components/snackbar/index.min.js +1 -1
  135. package/dist/components/steps/index.js +122 -6
  136. package/dist/components/steps/index.min.js +2 -2
  137. package/dist/components/switch/index.js +1 -1
  138. package/dist/components/switch/index.min.js +1 -1
  139. package/dist/components/table/index.js +156 -13
  140. package/dist/components/table/index.min.js +2 -2
  141. package/dist/components/tabs/index.js +122 -6
  142. package/dist/components/tabs/index.min.js +2 -2
  143. package/dist/components/tag/index.js +122 -6
  144. package/dist/components/tag/index.min.js +2 -2
  145. package/dist/components/taginput/index.js +122 -6
  146. package/dist/components/taginput/index.min.js +2 -2
  147. package/dist/components/timepicker/index.js +134 -18
  148. package/dist/components/timepicker/index.min.js +2 -2
  149. package/dist/components/toast/index.js +1 -1
  150. package/dist/components/toast/index.min.js +1 -1
  151. package/dist/components/tooltip/index.js +1 -1
  152. package/dist/components/tooltip/index.min.js +1 -1
  153. package/dist/components/upload/index.js +1 -1
  154. package/dist/components/upload/index.min.js +1 -1
  155. package/dist/css/buefy.css +21 -38
  156. package/dist/css/buefy.css.map +1 -1
  157. package/dist/css/buefy.min.css +1 -1
  158. package/dist/css/versions/buefy-no-reset.css +21 -38
  159. package/dist/css/versions/buefy-no-reset.css.map +1 -1
  160. package/dist/css/versions/buefy-no-reset.min.css +1 -1
  161. package/dist/css/versions/buefy-standalone.css +21 -38
  162. package/dist/css/versions/buefy-standalone.css.map +1 -1
  163. package/dist/css/versions/buefy-standalone.min.css +1 -1
  164. package/dist/esm/{Autocomplete-HsHD-6pc.js → Autocomplete-BsBIH0Mj.js} +3 -3
  165. package/dist/esm/{Button-Bvib75up.js → Button-BTP__-p5.js} +2 -2
  166. package/dist/esm/{Checkbox-u861Rije.js → Checkbox-C6pO3IzG.js} +31 -3
  167. package/dist/esm/{CompatFallthroughMixin-C8LPuwDr.js → CompatFallthroughMixin-LfFRwwlz.js} +1 -1
  168. package/dist/esm/{Datepicker-BZ5ORu0F.js → Datepicker-CrVKrZBF.js} +9 -9
  169. package/dist/esm/{Dropdown-BLadix4L.js → Dropdown-GHauDDcD.js} +1 -1
  170. package/dist/esm/{DropdownItem-Crhb4RQp.js → DropdownItem-By3tSZk2.js} +1 -1
  171. package/dist/esm/{Field-DZCOQuRO.js → Field-CU8ZBgMh.js} +1 -1
  172. package/dist/esm/{FormElementMixin-Dd_wkBN5.js → FormElementMixin-CKI7b4I4.js} +1 -1
  173. package/dist/esm/{Icon-iqPKMem5.js → Icon-pQAdaqZb.js} +49 -7
  174. package/dist/esm/{Image-By9o7ryD.js → Image-COmzg-EK.js} +1 -1
  175. package/dist/esm/{Input-JL4LWKyL.js → Input-CErQ1Jyw.js} +4 -4
  176. package/dist/esm/{Modal-BF2kchNd.js → Modal-C13NJijf.js} +1 -1
  177. package/dist/esm/{NoticeMixin-ByNlva3T.js → NoticeMixin-TQEF1Kx6.js} +1 -1
  178. package/dist/esm/{Pagination-BWFVCGiz.js → Pagination-DvgzxH87.js} +2 -2
  179. package/dist/esm/{Progress-BxT2PFEw.js → Progress-AeKn1Ttq.js} +1 -1
  180. package/dist/esm/{Select-dYTVc9W4.js → Select-CbkuxvSQ.js} +3 -3
  181. package/dist/esm/{TabbedChildMixin-BsuDQmWE.js → TabbedChildMixin-Bdu5A4iY.js} +1 -1
  182. package/dist/esm/{Tag-BFgiw0Ac.js → Tag-Dx_-Tavp.js} +1 -1
  183. package/dist/esm/{Timepicker-CYqyLHE9.js → Timepicker-0ojuPkqd.js} +6 -6
  184. package/dist/esm/{TimepickerMixin-Bikh6_Fg.js → TimepickerMixin-oNahYGFZ.js} +3 -3
  185. package/dist/esm/{Tooltip-Ds5fe3ZP.js → Tooltip-BnzQFdnQ.js} +1 -1
  186. package/dist/esm/autocomplete.js +7 -6
  187. package/dist/esm/breadcrumb.js +2 -2
  188. package/dist/esm/button.js +4 -3
  189. package/dist/esm/carousel.js +4 -3
  190. package/dist/esm/checkbox.js +3 -1
  191. package/dist/esm/clockpicker.js +8 -7
  192. package/dist/esm/colorpicker.js +12 -11
  193. package/dist/esm/{config-CKuo-p6e.js → config-f4Dyy8TN.js} +2 -1
  194. package/dist/esm/config.js +1 -1
  195. package/dist/esm/datepicker.js +11 -10
  196. package/dist/esm/datetimepicker.js +13 -12
  197. package/dist/esm/dialog.js +5 -4
  198. package/dist/esm/dropdown.js +3 -3
  199. package/dist/esm/field.js +2 -2
  200. package/dist/esm/icon.js +3 -2
  201. package/dist/esm/iconAliases-B-CydxNj.js +97 -0
  202. package/dist/esm/image.js +2 -2
  203. package/dist/esm/{index-mnzTDKh9.js → index-BYVep8cv.js} +8 -8
  204. package/dist/esm/index.js +26 -25
  205. package/dist/esm/input.js +6 -5
  206. package/dist/esm/menu.js +4 -3
  207. package/dist/esm/message.js +4 -3
  208. package/dist/esm/modal.js +2 -2
  209. package/dist/esm/navbar.js +2 -2
  210. package/dist/esm/notification.js +5 -4
  211. package/dist/esm/numberinput.js +6 -5
  212. package/dist/esm/pagination.js +4 -3
  213. package/dist/esm/progress.js +2 -2
  214. package/dist/esm/rate.js +3 -2
  215. package/dist/esm/select.js +6 -5
  216. package/dist/esm/sidebar.js +1 -1
  217. package/dist/esm/slider.js +3 -3
  218. package/dist/esm/snackbar.js +2 -2
  219. package/dist/esm/steps.js +4 -3
  220. package/dist/esm/switch.js +1 -1
  221. package/dist/esm/table.js +9 -8
  222. package/dist/esm/tabs.js +4 -3
  223. package/dist/esm/tag.js +4 -3
  224. package/dist/esm/taginput.js +8 -7
  225. package/dist/esm/timepicker.js +12 -11
  226. package/dist/esm/toast.js +2 -2
  227. package/dist/esm/tooltip.js +2 -2
  228. package/dist/esm/upload.js +3 -3
  229. package/package.json +1 -1
  230. package/src/components/checkbox/Checkbox.spec.ts +56 -26
  231. package/src/components/checkbox/Checkbox.vue +25 -1
  232. package/src/components/checkbox/__snapshots__/Checkbox.spec.ts.snap +1 -1
  233. package/src/components/datepicker/__snapshots__/Datepicker.spec.ts.snap +2 -2
  234. package/src/components/icon/Icon.spec.ts +67 -0
  235. package/src/components/icon/Icon.vue +40 -5
  236. package/src/components/icon/__snapshots__/Icon.spec.ts.snap +1 -1
  237. package/src/components/icon/index.ts +10 -0
  238. package/src/components/table/__snapshots__/TableMobileSort.spec.ts.snap +1 -1
  239. package/src/scss/components/_checkbox.scss +13 -15
  240. package/src/utils/config.ts +104 -2
  241. package/src/utils/iconAliases.ts +86 -0
@@ -1,2 +1,2 @@
1
- /*! Buefy v3.0.5 | 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).Taginput={},e.Vue)}(this,(function(e,t){"use strict";function o(e,t){return t.split(".").reduce(((e,t)=>e?e[t]:null),e)}function i(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function s(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const o=document.createElement("div");return t.appendChild(o),o.appendChild(e),document.body.appendChild(t),t}let n,l="mdi",a=null,r="on",c=!0,d=!0,h=!0,p=!0,u=!0;const m={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},g=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var f=(e,t)=>{const o=e.__vccOpts||e;for(const[e,i]of t)o[e]=i;return o};var y=f(t.defineComponent({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return{mdi:m,fa:g(),fas:g(),far:g(),fad:g(),fab:g(),fal:g(),"fa-solid":g(),"fa-regular":g(),"fa-light":g(),"fa-thin":g(),"fa-duotone":g(),"fa-brands":g()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||l},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||a}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,o,i,s,n,l){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["icon",[e.newType,e.size]])},[e.useIconComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:t.normalizeClass([e.customClass])},null,8,["icon","size","class"])):(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),k=t.defineComponent({name:"BTag",components:{BIcon:y},props:{attached:Boolean,closable:Boolean,type:[String,Object],size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String,icon:String,iconType:String,iconPack:String,closeType:String,closeIcon:String,closeIconPack:String,closeIconType:String},emits:{click:e=>!0,close:e=>!0},computed:{disabledOrUndefined(){return this.disabled||void 0}},methods:{close(e){this.disabled||this.$emit("close",e)},click(e){this.disabled||this.$emit("click",e)}}});const v={key:0,class:"tags has-addons inline-tags"},w=["aria-label","tabindex","disabled"],B=["aria-label","disabled","tabindex"];var b=f(k,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-icon");return e.attached&&e.closable?(t.openBlock(),t.createElementBlock("div",v,[t.createElementVNode("span",{class:t.normalizeClass(["tag",[e.type,e.size,{"is-rounded":e.rounded}]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,size:e.size,type:e.iconType,pack:e.iconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",{class:t.normalizeClass({"has-ellipsis":e.ellipsis}),onClick:o[0]||(o[0]=(...t)=>e.click&&e.click(...t))},[t.renderSlot(e.$slots,"default")],2)],2),t.createElementVNode("a",{class:t.normalizeClass(["tag",[e.size,e.closeType,{"is-rounded":e.rounded},e.closeIcon?"has-delete-icon":"is-delete"]]),role:"button","aria-label":e.ariaCloseLabel,tabindex:e.tabstop?0:void 0,disabled:e.disabledOrUndefined,onClick:o[1]||(o[1]=(...t)=>e.close&&e.close(...t)),onKeyup:o[2]||(o[2]=t.withKeys(t.withModifiers(((...t)=>e.close&&e.close(...t)),["prevent"]),["delete"]))},[e.closeIcon?(t.openBlock(),t.createBlock(a,{key:0,"custom-class":"",icon:e.closeIcon,size:e.size,type:e.closeIconType,pack:e.closeIconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0)],42,w)])):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["tag",[e.type,e.size,{"is-rounded":e.rounded}]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,size:e.size,type:e.iconType,pack:e.iconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",{class:t.normalizeClass({"has-ellipsis":e.ellipsis}),onClick:o[3]||(o[3]=(...t)=>e.click&&e.click(...t))},[t.renderSlot(e.$slots,"default")],2),e.closable?(t.openBlock(),t.createElementBlock("a",{key:1,role:"button","aria-label":e.ariaCloseLabel,class:t.normalizeClass(["delete is-small",e.closeType]),disabled:e.disabledOrUndefined,tabindex:e.tabstop?0:void 0,onClick:o[4]||(o[4]=(...t)=>e.close&&e.close(...t)),onKeyup:o[5]||(o[5]=t.withKeys(t.withModifiers(((...t)=>e.close&&e.close(...t)),["prevent"]),["delete"]))},null,42,B)):t.createCommentVNode("v-if",!0)],2))}]]),C=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,x=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>d}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class:o,id:i}=e;return((e,t)=>{var o={};for(var i in e)S.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&C)for(var i of C(e))t.indexOf(i)<0&&V.call(e,i)&&(o[i]=e[i]);return o})(e,["style","class","id"])}return this.$attrs}}});const $=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>p},validationMessage:String,locale:{type:[String,Array],default:()=>n},statusIcon:{type:Boolean,default:()=>u}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||l,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}});var T=t.defineComponent({name:"BInput",components:{BIcon:y},mixins:[x,$],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>c},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||r,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const I=["type","autocomplete","maxlength"],F=["maxlength"],E=["type","autocomplete","maxlength"],z=["maxlength"];var O=f(T,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",e.rootClasses]},e.rootAttrs),[e.lazy?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":o[0]||(o[0]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[1]||(o[1]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[2]||(o[2]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[3]||(o[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[4]||(o[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,I)),[[t.vModelDynamic,e.computedValue,void 0,{lazy:!0}]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":o[5]||(o[5]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[6]||(o[6]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[7]||(o[7]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[8]||(o[8]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[9]||(o[9]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,F)),[[t.vModelText,e.computedValue,void 0,{lazy:!0}]])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":o[10]||(o[10]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[11]||(o[11]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[12]||(o[12]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[13]||(o[13]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[14]||(o[14]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,E)),[[t.vModelDynamic,e.computedValue]]):t.withDirectives((t.openBlock(),t.createElementBlock("textarea",t.mergeProps({key:1,ref:"textarea",class:["textarea",[e.inputClasses,e.customClass]],maxlength:e.maxlength,"onUpdate:modelValue":o[15]||(o[15]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[16]||(o[16]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[17]||(o[17]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[18]||(o[18]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[19]||(o[19]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,z)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:o[20]||(o[20]=t=>e.iconClick("icon-click",t))},null,8,["class","icon","pack","size"])):t.createCommentVNode("v-if",!0),!e.loading&&e.hasIconRight&&e.rightIcon?(t.openBlock(),t.createBlock(a,{key:3,class:t.normalizeClass(["is-right",{"is-clickable":e.passwordReveal||e.iconRightClickable}]),icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:"",onClick:e.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&e.hasCounter&&"number"!==e.type?(t.openBlock(),t.createElementBlock("small",{key:4,class:t.normalizeClass(["help counter",{"is-invisible":!e.isFocused}])},t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],16)}]]),A=t.defineComponent({name:"BAutocomplete",components:{BInput:O},mixins:[x,$],props:{modelValue:[Number,String,null],data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:{type:Function},checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:()=>["Tab","Enter"]},selectableHeader:Boolean,selectableFooter:Boolean,autocomplete:String},emits:{active:e=>!0,blur:e=>!0,focus:e=>!0,"icon-click":e=>!0,"icon-right-click":e=>!0,"infinite-scroll":()=>!0,select:(e,t)=>!0,"select-footer":e=>!0,"select-header":e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.modelValue,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0,timeOutID:void 0}},computed:{computedData(){const{groupField:e,groupOptions:t}=this;if(e){if(t){const i=[];return this.data.forEach((s=>{const n=o(s,e),l=o(s,t);i.push({group:n,items:l})})),i}{const t={};this.data.forEach((i=>{const s=o(i,e);t[s]||(t[s]=[]),t[s].push(i)}));const i=[];return Object.keys(t).forEach((e=>{i.push({group:e,items:t[e]})})),i}}return[{items:this.data}]},isEmpty(){return!this.computedData||!this.computedData.some((e=>e.items&&e.items.length))},whiteList(){var e;this.computedData;const t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),null!=this.$refs.dropdown){const e=this.$refs.dropdown.querySelectorAll("*");for(const o of e)t.push(o)}if((null==(e=this.$parent)?void 0:e.$data)._isTaginput){t.push(this.$parent.$el);const e=this.$parent.$el.querySelectorAll("*");for(const o of e)t.push(o)}return t},hasDefaultSlot(){return!!this.$slots.default},hasGroupSlot(){return!!this.$slots.group},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return!!this.clearable||this.iconRightClickable},contentStyle(){return{maxHeight:(e=this.maxHeight,(void 0===e?null:isNaN(+e)?`${e}`:e+"px")||void 0)};var e}},watch:{isActive(e){"auto"===this.dropdownPosition&&(e?this.calcDropdownInViewportVertical():this.timeOutID=setTimeout((()=>{this.calcDropdownInViewportVertical()}),100)),this.$nextTick((()=>{this.$emit("active",e)}))},checkInfiniteScroll(e){if(!this.$refs.dropdown)return;const t=this.$refs.dropdown.querySelector(".dropdown-content");t&&(!0!==e?t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll):t.addEventListener("scroll",this.checkIfReachedTheEndOfScroll))},newValue(e){this.$emit("update:modelValue",e);const t=this.getValue(this.selected);null!=t&&t!==e&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&""===e||(this.isActive=""!==e&&null!=e)},modelValue(e){this.newValue=e},keepFirst(e){this.ariaAutocomplete=e?"both":"list"},data(){if(this.keepFirst)this.$nextTick((()=>{this.isActive?this.selectFirstOption(this.computedData):this.setHovered(null)}));else if(this.hovered){const e=this.getValue(this.hovered);this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]).some((t=>this.getValue(t)===e))||this.setHovered(null)}},appendToBody(e,t){e&&!t?this.isActive&&this.$refs.dropdown&&!this.$data._bodyEl&&(this.$data._bodyEl=s(this.$refs.dropdown),this.updateAppendToBody()):!e&&t&&this.$data._bodyEl&&(i(this.$data._bodyEl),this.$data._bodyEl=void 0)}},methods:{setHovered(e){void 0!==e&&(this.hovered=e)},setSelected(e,t=!0,o){void 0!==e&&(this.selected=e,this.$emit("select",this.selected,o),null!==this.selected&&(this.clearOnSelect?this.newValue="":this.newValue=this.getValue(this.selected),this.setHovered(null)),t&&this.$nextTick((()=>{this.isActive=!1})),this.checkValidity())},selectFirstOption(e){this.$nextTick((()=>{const t=e.filter((e=>e.items&&e.items.length));if(t.length){const e=t[0].items[0];this.setHovered(e)}else this.setHovered(null)}))},findHoveredIndex(e){if(null===this.hovered||void 0===this.hovered)return-1;const t=e.indexOf(this.hovered);if(-1!==t)return t;const o=this.getValue(this.hovered);return null==o?-1:e.findIndex((e=>null==e?null==o:this.getValue(e)===o))},keydown(e){const{key:t}=e;if("Enter"===t&&e.preventDefault(),"Escape"!==t&&"Tab"!==t||(this.isActive=!1),this.confirmKeys.indexOf(t)>=0){","===t&&e.preventDefault();const o=!this.keepOpen||"Tab"===t;if(null===this.hovered)return void this.checkIfHeaderOrFooterSelected(e,null,o);this.setSelected(this.hovered,o,e)}},selectHeaderOrFoterByClick(e,t){this.checkIfHeaderOrFooterSelected(e,{origin:t})},checkIfHeaderOrFooterSelected(e,t,o=!0){this.selectableHeader&&(this.headerHovered||t&&"header"===t.origin)&&(this.$emit("select-header",e),this.headerHovered=!1,t&&this.setHovered(null),o&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||t&&"footer"===t.origin)&&(this.$emit("select-footer",e),this.footerHovered=!1,t&&this.setHovered(null),o&&(this.isActive=!1))},clickedOutside(e){const t=null!=(o=this).$root&&"shadowRoot"in o.$root.$options?e.composedPath()[0]:e.target;var o;!this.hasFocus&&this.whiteList.indexOf(t)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue(e){if(null!==e)return void 0!==this.customFormatter?this.customFormatter(e):"object"==typeof e?o(e,this.field):e},checkIfReachedTheEndOfScroll(){const e=this.$refs.dropdown.querySelector(".dropdown-content"),t=this.hasFooterSlot?e.querySelectorAll("div.dropdown-footer")[0].clientHeight:0;e.clientHeight!==e.scrollHeight&&e.scrollTop+e.parentElement.clientHeight+t>=e.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick((()=>{var e;if(null==this.$refs.dropdown)return;const t=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=t.top>=0&&t.bottom<=((null==window?void 0:window.innerHeight)||(null==(e=null==document?void 0:document.documentElement)?void 0:e.clientHeight)),this.appendToBody&&this.updateAppendToBody()}))},keyArrows(e){const t="down"===e?1:-1;if(this.isActive){const e=this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]);let o;this.hasHeaderSlot&&this.selectableHeader&&e.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&e.push(void 0),o=this.headerHovered?0+t:this.footerHovered?e.length-1+t:this.findHoveredIndex(e)+t,o=o>e.length-1?e.length-1:o,o=o<0?0:o,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(void 0!==e[o]?e[o]:null),this.hasFooterSlot&&this.selectableFooter&&o===e.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&0===o&&(this.headerHovered=!0);const i=this.$refs.dropdown.querySelector(".dropdown-content");let s="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(s+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(s+=",div.dropdown-footer");const n=i.querySelectorAll(s)[o];if(!n)return;const l=i.scrollTop,a=i.scrollTop+i.clientHeight-n.clientHeight;n.offsetTop<l?i.scrollTop=n.offsetTop:n.offsetTop>=a&&(i.scrollTop=n.offsetTop-i.clientHeight+n.clientHeight)}else this.isActive=!0},focused(e){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(){const e=this.getValue(this.selected);null!=e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(e){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",e)},checkValidity(){this.useHtml5Validation&&this.$nextTick((()=>{this.checkHtml5Validity()}))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$parent.$data._isTaginput?this.$parent.$el:this.$refs.input.$el;if(e&&t){this.$data._bodyEl||(this.$data._bodyEl=s(e));const o=this.$data._bodyEl;o.classList.forEach((e=>o.classList.remove(e))),o.classList.add("autocomplete"),o.classList.add("control"),this.expanded&&o.classList.add("is-expanded");const i=t.getBoundingClientRect();let n=i.top+window.scrollY;const l=i.left+window.scrollX;this.isOpenedTop?n-=e.clientHeight:n+=t.clientHeight,this.style={position:"absolute",top:`${n}px`,left:`${l}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.addEventListener("scroll",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").addEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&(this.$data._bodyEl=s(this.$refs.dropdown),this.updateAppendToBody())},beforeUnmount(){if("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.removeEventListener("scroll",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&this.$data._bodyEl&&i(this.$data._bodyEl),clearTimeout(this.timeOutID)}});const H={key:1,class:"has-text-weight-bold"},P=["onClick"],D={key:1},R={key:1,class:"dropdown-item is-disabled"};var N=f(A,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-input");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["autocomplete control",{"is-expanded":e.expanded}]},e.rootAttrs),[t.createVNode(a,t.mergeProps({modelValue:e.newValue,"onUpdate:modelValue":o[0]||(o[0]=t=>e.newValue=t),ref:"input",type:e.type,size:e.size,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-right":e.newIconRight,"icon-right-clickable":e.newIconRightClickable,"icon-pack":e.iconPack,maxlength:e.maxlength,autocomplete:e.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":e.ariaAutocomplete},e.fallthroughAttrs,{"onUpdate:modelValue":e.onInput,onFocus:e.focused,onBlur:e.onBlur,onKeydown:[e.keydown,o[1]||(o[1]=t.withKeys(t.withModifiers((t=>e.keyArrows("up")),["prevent"]),["up"])),o[2]||(o[2]=t.withKeys(t.withModifiers((t=>e.keyArrows("down")),["prevent"]),["down"]))],onIconRightClick:e.rightIconClick,onIconClick:o[3]||(o[3]=t=>e.$emit("icon-click",t))}),null,16,["modelValue","type","size","loading","rounded","icon","icon-right","icon-right-clickable","icon-pack","maxlength","autocomplete","aria-autocomplete","onUpdate:modelValue","onFocus","onBlur","onKeydown","onIconRightClick"]),t.createVNode(t.Transition,{name:"fade",persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["dropdown dropdown-menu",{"is-opened-top":e.isOpenedTop&&!e.appendToBody}]),style:t.normalizeStyle(e.style),ref:"dropdown"},[t.withDirectives(t.createElementVNode("div",{class:"dropdown-content",style:t.normalizeStyle(e.contentStyle)},[e.hasHeaderSlot?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["dropdown-item dropdown-header",{"is-hovered":e.headerHovered}]),role:"button",tabindex:"0",onClick:o[4]||(o[4]=t=>e.selectHeaderOrFoterByClick(t,"header"))},[t.renderSlot(e.$slots,"header")],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedData,((o,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[o.group?(t.openBlock(),t.createElementBlock("div",{key:i+"group",class:"dropdown-item"},[e.hasGroupSlot?t.renderSlot(e.$slots,"group",{key:0,group:o.group,index:i}):(t.openBlock(),t.createElementBlock("span",H,t.toDisplayString(o.group),1))])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.items,((o,s)=>(t.openBlock(),t.createElementBlock("a",{key:i+":"+s,class:t.normalizeClass(["dropdown-item",{"is-hovered":o===e.hovered}]),role:"button",tabindex:"0",onClick:t.withModifiers((t=>e.setSelected(o,!e.keepOpen,t)),["stop"])},[e.hasDefaultSlot?t.renderSlot(e.$slots,"default",{key:0,option:o,index:s}):(t.openBlock(),t.createElementBlock("span",D,t.toDisplayString(e.getValue(o)),1))],10,P)))),128))],64)))),256)),e.isEmpty&&e.hasEmptySlot?(t.openBlock(),t.createElementBlock("div",R,[t.renderSlot(e.$slots,"empty")])):t.createCommentVNode("v-if",!0),e.hasFooterSlot?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["dropdown-item dropdown-footer",{"is-hovered":e.footerHovered}]),role:"button",tabindex:"0",onClick:o[5]||(o[5]=t=>e.selectHeaderOrFoterByClick(t,"footer"))},[t.renderSlot(e.$slots,"footer")],2)):t.createCommentVNode("v-if",!0)],4),[[t.vShow,e.isActive]])],6),[[t.vShow,e.isActive&&(!e.isEmpty||e.hasEmptySlot||e.hasHeaderSlot||e.hasFooterSlot)]])])),_:3})],16)}]]),L=t.defineComponent({name:"BTaginput",components:{BAutocomplete:N,BTag:b},mixins:[x,$],props:{modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},type:String,closeType:String,attached:{type:Boolean,default:!1},maxtags:Number,hasCounter:{type:Boolean,default:()=>h},field:{type:String,default:"value"},autocomplete:Boolean,groupField:String,groupOptions:String,nativeAutocomplete:String,openOnFocus:Boolean,keepOpen:{type:Boolean,default:!0},keepFirst:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},ariaCloseLabel:String,confirmKeys:{type:Array,default:()=>[",","Tab","Enter"]},removeOnKeys:{type:Array,default:()=>["Backspace"]},allowNew:Boolean,onPasteSeparators:{type:Array,default:()=>[","]},beforeAdding:{type:Function,default:()=>!0},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},createTag:{type:Function,default:e=>e},appendToBody:Boolean},emits:{add:e=>!0,"infinite-scroll":()=>!0,remove:e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{tags:Array.isArray(this.modelValue)?this.modelValue.slice(0):this.modelValue||[],newTag:"",isComposing:!1,_elementRef:"autocomplete",_isTaginput:!0,requestID:null}},computed:{rootClasses(){return{"is-expanded":this.expanded}},containerClasses(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength(){return this.newTag.trim().length},hasDefaultSlot(){return!!this.$slots.default},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},hasInput(){return null==this.maxtags||1===this.maxtags||this.tagsLength<this.maxtags},tagsLength(){return this.tags.length},separatorsAsRegExp(){const e=this.onPasteSeparators;return e.length?new RegExp(e.map((e=>e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):null)).join("|"),"g"):null},disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue(e){this.tags=Array.isArray(e)?e.slice(0):e||[]},hasInput(){this.hasInput||this.onBlur()}},methods:{addTag(e){const t=e||this.newTag.trim();if(t){if(!this.autocomplete){const e=this.separatorsAsRegExp;if(e&&t.match(e))return void t.split(e).map((e=>e.trim())).filter((e=>0!==e.length)).map(this.addTag)}(!!this.allowDuplicates||-1===this.tags.indexOf(t))&&this.beforeAdding(t)&&(1===this.maxtags&&(this.tags=[]),this.tags.push(this.createTag(t)),this.$emit("update:modelValue",this.tags),this.$emit("add",t)),this.requestID=requestAnimationFrame((()=>{this.newTag="",this.$emit("typing","")}))}},getNormalizedTagText(e){return"object"==typeof e&&(e=o(e,this.field)),`${e}`},customOnBlur(e){this.autocomplete||this.addTag(),this.onBlur(e)},onSelect(e){e&&(this.addTag(e),this.$nextTick((()=>{this.newTag=""})))},removeTag(e,t){const o=this.tags.splice(e,1)[0];return this.$emit("update:modelValue",this.tags),this.$emit("remove",o),t&&t.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete&&this.$refs.autocomplete.focus(),o},removeLastTag(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown(e){const{key:t}=e;if(-1===this.removeOnKeys.indexOf(t)||this.newTag.length||this.removeLastTag(),(!this.autocomplete||this.allowNew)&&this.confirmKeys.indexOf(t)>=0){if("Tab"!==t&&e.preventDefault(),"Enter"===t&&this.isComposing)return;this.addTag()}},onTyping(e){this.$emit("typing","number"==typeof e?e:null==e?void 0:e.trim())},emitInfiniteScroll(){this.$emit("infinite-scroll")}},beforeUnmount(){cancelAnimationFrame(this.requestID)}});const _=["disabled"],q={key:0,class:"help counter"};var M=f(L,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-tag"),r=t.resolveComponent("b-autocomplete");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["taginput control",e.rootClasses]},e.rootAttrs),[t.createElementVNode("div",{class:t.normalizeClass(["taginput-container input",[e.statusType,e.size,e.containerClasses]]),disabled:e.disabledOrUndefined,onClick:o[3]||(o[3]=t=>e.hasInput&&e.focus())},[t.renderSlot(e.$slots,"selected",{tags:e.tags},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tags,((o,i)=>(t.openBlock(),t.createBlock(a,{key:e.getNormalizedTagText(o)+i,type:e.type,"close-type":e.closeType,size:e.size,rounded:e.rounded,attached:e.attached,tabstop:!1,disabled:e.disabledOrUndefined,ellipsis:e.ellipsis,closable:e.closable,"aria-close-label":e.ariaCloseLabel,title:e.ellipsis&&e.getNormalizedTagText(o),onClose:t=>e.removeTag(i,t)},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"tag",{tag:o},(()=>[t.createTextVNode(t.toDisplayString(e.getNormalizedTagText(o)),1)]))])),_:2},1032,["type","close-type","size","rounded","attached","disabled","ellipsis","closable","aria-close-label","title","onClose"])))),128))])),e.hasInput?(t.openBlock(),t.createBlock(r,t.mergeProps({key:0,ref:"autocomplete",modelValue:e.newTag,"onUpdate:modelValue":o[0]||(o[0]=t=>e.newTag=t)},e.fallthroughAttrs,{data:e.data,field:e.field,icon:e.icon,"icon-pack":e.iconPack,maxlength:e.maxlength,"has-counter":!1,size:e.size,disabled:e.disabledOrUndefined,loading:e.loading,autocomplete:e.nativeAutocomplete,"open-on-focus":e.openOnFocus,"keep-open":e.keepOpen,"keep-first":e.keepFirst,"group-field":e.groupField,"group-options":e.groupOptions,"use-html5-validation":e.useHtml5Validation,"check-infinite-scroll":e.checkInfiniteScroll,"append-to-body":e.appendToBody,"confirm-keys":e.confirmKeys,onTyping:e.onTyping,onFocus:e.onFocus,onBlur:e.customOnBlur,onKeydown:e.keydown,onCompositionstart:o[1]||(o[1]=t=>e.isComposing=!0),onCompositionend:o[2]||(o[2]=t=>e.isComposing=!1),onSelect:e.onSelect,onInfiniteScroll:e.emitInfiniteScroll}),t.createSlots({_:2},[e.hasHeaderSlot?{name:"header",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"header")])),key:"0"}:void 0,e.hasDefaultSlot?{name:"default",fn:t.withCtx((o=>[t.renderSlot(e.$slots,"default",{option:o.option,index:o.index})])),key:"1"}:void 0,e.hasEmptySlot?{name:"empty",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"empty")])),key:"2"}:void 0,e.hasFooterSlot?{name:"footer",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"footer")])),key:"3"}:void 0]),1040,["modelValue","data","field","icon","icon-pack","maxlength","size","disabled","loading","autocomplete","open-on-focus","keep-open","keep-first","group-field","group-options","use-html5-validation","check-infinite-scroll","append-to-body","confirm-keys","onTyping","onFocus","onBlur","onKeydown","onSelect","onInfiniteScroll"])):t.createCommentVNode("v-if",!0)],10,_),e.hasCounter&&(e.maxtags||e.maxlength)?(t.openBlock(),t.createElementBlock("small",q,[e.maxlength&&e.valueLength>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),1)],64)):e.maxtags?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.tagsLength)+" / "+t.toDisplayString(e.maxtags),1)],64)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0)],16)}]]);const K={install(e){((e,t)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)})(e,M)}};e.BTaginput=M,e.default=K,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ /*! 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).Taginput={},e.Vue)}(this,(function(e,t){"use strict";function o(e,t){return t.split(".").reduce(((e,t)=>e?e[t]:null),e)}function i(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function s(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const o=document.createElement("div");return t.appendChild(o),o.appendChild(e),document.body.appendChild(t),t}let n,l="mdi",a=null,r="on",c=!0,d=!0,h=!0,p=!0,u=!0;const m={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},g=()=>{const e="fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},f={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 y(e){return f[e]}var k=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=y(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:m,fa:g(),fas:g(),far:g(),fad:g(),fab:g(),fal:g(),"fa-solid":g(),"fa-regular":g(),"fa-light":g(),"fa-thin":g(),"fa-duotone":g(),"fa-brands":g()}[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){var e;return`${this.iconPrefix}${this.getEquivalentIconOf(null!=(e=this.icon)?e:"")}`},newPack(){return this.pack||l},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||a}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),v=(e,t)=>{const o=e.__vccOpts||e;for(const[e,i]of t)o[e]=i;return o};const w=["viewBox"],C=["d"];var B=v(k,[["render",function(e,o,i,s,n,l){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,C)],10,w)):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)}]]),b=t.defineComponent({name:"BTag",components:{BIcon:B},props:{attached:Boolean,closable:Boolean,type:[String,Object],size:String,rounded:Boolean,disabled:Boolean,ellipsis:Boolean,tabstop:{type:Boolean,default:!0},ariaCloseLabel:String,icon:String,iconType:String,iconPack:String,closeType:String,closeIcon:String,closeIconPack:String,closeIconType:String},emits:{click:e=>!0,close:e=>!0},computed:{disabledOrUndefined(){return this.disabled||void 0}},methods:{close(e){this.disabled||this.$emit("close",e)},click(e){this.disabled||this.$emit("click",e)}}});const S={key:0,class:"tags has-addons inline-tags"},V=["aria-label","tabindex","disabled"],x=["aria-label","disabled","tabindex"];var $=v(b,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-icon");return e.attached&&e.closable?(t.openBlock(),t.createElementBlock("div",S,[t.createElementVNode("span",{class:t.normalizeClass(["tag",[e.type,e.size,{"is-rounded":e.rounded}]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,size:e.size,type:e.iconType,pack:e.iconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",{class:t.normalizeClass({"has-ellipsis":e.ellipsis}),onClick:o[0]||(o[0]=(...t)=>e.click&&e.click(...t))},[t.renderSlot(e.$slots,"default")],2)],2),t.createElementVNode("a",{class:t.normalizeClass(["tag",[e.size,e.closeType,{"is-rounded":e.rounded},e.closeIcon?"has-delete-icon":"is-delete"]]),role:"button","aria-label":e.ariaCloseLabel,tabindex:e.tabstop?0:void 0,disabled:e.disabledOrUndefined,onClick:o[1]||(o[1]=(...t)=>e.close&&e.close(...t)),onKeyup:o[2]||(o[2]=t.withKeys(t.withModifiers(((...t)=>e.close&&e.close(...t)),["prevent"]),["delete"]))},[e.closeIcon?(t.openBlock(),t.createBlock(a,{key:0,"custom-class":"",icon:e.closeIcon,size:e.size,type:e.closeIconType,pack:e.closeIconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0)],42,V)])):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(["tag",[e.type,e.size,{"is-rounded":e.rounded}]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,size:e.size,type:e.iconType,pack:e.iconPack},null,8,["icon","size","type","pack"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",{class:t.normalizeClass({"has-ellipsis":e.ellipsis}),onClick:o[3]||(o[3]=(...t)=>e.click&&e.click(...t))},[t.renderSlot(e.$slots,"default")],2),e.closable?(t.openBlock(),t.createElementBlock("a",{key:1,role:"button","aria-label":e.ariaCloseLabel,class:t.normalizeClass(["delete is-small",e.closeType]),disabled:e.disabledOrUndefined,tabindex:e.tabstop?0:void 0,onClick:o[4]||(o[4]=(...t)=>e.close&&e.close(...t)),onKeyup:o[5]||(o[5]=t.withKeys(t.withModifiers(((...t)=>e.close&&e.close(...t)),["prevent"]),["delete"]))},null,42,x)):t.createCommentVNode("v-if",!0)],2))}]]),T=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,A=t.defineComponent({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>d}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class:o,id:i}=e;return((e,t)=>{var o={};for(var i in e)I.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&T)for(var i of T(e))t.indexOf(i)<0&&L.call(e,i)&&(o[i]=e[i]);return o})(e,["style","class","id"])}return this.$attrs}}});const F=t.defineComponent({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>p},validationMessage:String,locale:{type:[String,Array],default:()=>n},statusIcon:{type:Boolean,default:()=>u}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||l,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}});var E=t.defineComponent({name:"BInput",components:{BIcon:B},mixins:[A,F],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>c},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||r,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const z=["type","autocomplete","maxlength"],H=["maxlength"],O=["type","autocomplete","maxlength"],P=["maxlength"];var D=v(E,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-icon");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["control",e.rootClasses]},e.rootAttrs),[e.lazy?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["textarea"!==e.type?t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input",class:["input",[e.inputClasses,e.customClass]],type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength,"onUpdate:modelValue":o[0]||(o[0]=t=>e.computedValue=t)},e.fallthroughAttrs,{onInput:o[1]||(o[1]=(...t)=>e.onInput&&e.onInput(...t)),onChange:o[2]||(o[2]=(...t)=>e.onChange&&e.onChange(...t)),onBlur:o[3]||(o[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:o[4]||(o[4]=(...t)=>e.onFocus&&e.onFocus(...t))}),null,16,z)),[[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,H)),[[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,O)),[[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,P)),[[t.vModelText,e.computedValue]])],64)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass(["is-left",{"is-clickable":e.iconClickable}]),icon:e.icon,pack:e.iconPack,size:e.iconSize,onClick:o[20]||(o[20]=t=>e.iconClick("icon-click",t))},null,8,["class","icon","pack","size"])):t.createCommentVNode("v-if",!0),!e.loading&&e.hasIconRight&&e.rightIcon?(t.openBlock(),t.createBlock(a,{key:3,class:t.normalizeClass(["is-right",{"is-clickable":e.passwordReveal||e.iconRightClickable}]),icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:"",onClick:e.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):t.createCommentVNode("v-if",!0),e.maxlength&&e.hasCounter&&"number"!==e.type?(t.openBlock(),t.createElementBlock("small",{key:4,class:t.normalizeClass(["help counter",{"is-invisible":!e.isFocused}])},t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("v-if",!0)],16)}]]),M=t.defineComponent({name:"BAutocomplete",components:{BInput:D},mixins:[A,F],props:{modelValue:[Number,String,null],data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:{type:Function},checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:()=>["Tab","Enter"]},selectableHeader:Boolean,selectableFooter:Boolean,autocomplete:String},emits:{active:e=>!0,blur:e=>!0,focus:e=>!0,"icon-click":e=>!0,"icon-right-click":e=>!0,"infinite-scroll":()=>!0,select:(e,t)=>!0,"select-footer":e=>!0,"select-header":e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.modelValue,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0,timeOutID:void 0}},computed:{computedData(){const{groupField:e,groupOptions:t}=this;if(e){if(t){const i=[];return this.data.forEach((s=>{const n=o(s,e),l=o(s,t);i.push({group:n,items:l})})),i}{const t={};this.data.forEach((i=>{const s=o(i,e);t[s]||(t[s]=[]),t[s].push(i)}));const i=[];return Object.keys(t).forEach((e=>{i.push({group:e,items:t[e]})})),i}}return[{items:this.data}]},isEmpty(){return!this.computedData||!this.computedData.some((e=>e.items&&e.items.length))},whiteList(){var e;this.computedData;const t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),null!=this.$refs.dropdown){const e=this.$refs.dropdown.querySelectorAll("*");for(const o of e)t.push(o)}if((null==(e=this.$parent)?void 0:e.$data)._isTaginput){t.push(this.$parent.$el);const e=this.$parent.$el.querySelectorAll("*");for(const o of e)t.push(o)}return t},hasDefaultSlot(){return!!this.$slots.default},hasGroupSlot(){return!!this.$slots.group},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return!!this.clearable||this.iconRightClickable},contentStyle(){return{maxHeight:(e=this.maxHeight,(void 0===e?null:isNaN(+e)?`${e}`:e+"px")||void 0)};var e}},watch:{isActive(e){"auto"===this.dropdownPosition&&(e?this.calcDropdownInViewportVertical():this.timeOutID=setTimeout((()=>{this.calcDropdownInViewportVertical()}),100)),this.$nextTick((()=>{this.$emit("active",e)}))},checkInfiniteScroll(e){if(!this.$refs.dropdown)return;const t=this.$refs.dropdown.querySelector(".dropdown-content");t&&(!0!==e?t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll):t.addEventListener("scroll",this.checkIfReachedTheEndOfScroll))},newValue(e){this.$emit("update:modelValue",e);const t=this.getValue(this.selected);null!=t&&t!==e&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&""===e||(this.isActive=""!==e&&null!=e)},modelValue(e){this.newValue=e},keepFirst(e){this.ariaAutocomplete=e?"both":"list"},data(){if(this.keepFirst)this.$nextTick((()=>{this.isActive?this.selectFirstOption(this.computedData):this.setHovered(null)}));else if(this.hovered){const e=this.getValue(this.hovered);this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]).some((t=>this.getValue(t)===e))||this.setHovered(null)}},appendToBody(e,t){e&&!t?this.isActive&&this.$refs.dropdown&&!this.$data._bodyEl&&(this.$data._bodyEl=s(this.$refs.dropdown),this.updateAppendToBody()):!e&&t&&this.$data._bodyEl&&(i(this.$data._bodyEl),this.$data._bodyEl=void 0)}},methods:{setHovered(e){void 0!==e&&(this.hovered=e)},setSelected(e,t=!0,o){void 0!==e&&(this.selected=e,this.$emit("select",this.selected,o),null!==this.selected&&(this.clearOnSelect?this.newValue="":this.newValue=this.getValue(this.selected),this.setHovered(null)),t&&this.$nextTick((()=>{this.isActive=!1})),this.checkValidity())},selectFirstOption(e){this.$nextTick((()=>{const t=e.filter((e=>e.items&&e.items.length));if(t.length){const e=t[0].items[0];this.setHovered(e)}else this.setHovered(null)}))},findHoveredIndex(e){if(null===this.hovered||void 0===this.hovered)return-1;const t=e.indexOf(this.hovered);if(-1!==t)return t;const o=this.getValue(this.hovered);return null==o?-1:e.findIndex((e=>null==e?null==o:this.getValue(e)===o))},keydown(e){const{key:t}=e;if("Enter"===t&&e.preventDefault(),"Escape"!==t&&"Tab"!==t||(this.isActive=!1),this.confirmKeys.indexOf(t)>=0){","===t&&e.preventDefault();const o=!this.keepOpen||"Tab"===t;if(null===this.hovered)return void this.checkIfHeaderOrFooterSelected(e,null,o);this.setSelected(this.hovered,o,e)}},selectHeaderOrFoterByClick(e,t){this.checkIfHeaderOrFooterSelected(e,{origin:t})},checkIfHeaderOrFooterSelected(e,t,o=!0){this.selectableHeader&&(this.headerHovered||t&&"header"===t.origin)&&(this.$emit("select-header",e),this.headerHovered=!1,t&&this.setHovered(null),o&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||t&&"footer"===t.origin)&&(this.$emit("select-footer",e),this.footerHovered=!1,t&&this.setHovered(null),o&&(this.isActive=!1))},clickedOutside(e){const t=null!=(o=this).$root&&"shadowRoot"in o.$root.$options?e.composedPath()[0]:e.target;var o;!this.hasFocus&&this.whiteList.indexOf(t)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue(e){if(null!==e)return void 0!==this.customFormatter?this.customFormatter(e):"object"==typeof e?o(e,this.field):e},checkIfReachedTheEndOfScroll(){const e=this.$refs.dropdown.querySelector(".dropdown-content"),t=this.hasFooterSlot?e.querySelectorAll("div.dropdown-footer")[0].clientHeight:0;e.clientHeight!==e.scrollHeight&&e.scrollTop+e.parentElement.clientHeight+t>=e.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick((()=>{var e;if(null==this.$refs.dropdown)return;const t=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=t.top>=0&&t.bottom<=((null==window?void 0:window.innerHeight)||(null==(e=null==document?void 0:document.documentElement)?void 0:e.clientHeight)),this.appendToBody&&this.updateAppendToBody()}))},keyArrows(e){const t="down"===e?1:-1;if(this.isActive){const e=this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]);let o;this.hasHeaderSlot&&this.selectableHeader&&e.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&e.push(void 0),o=this.headerHovered?0+t:this.footerHovered?e.length-1+t:this.findHoveredIndex(e)+t,o=o>e.length-1?e.length-1:o,o=o<0?0:o,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(void 0!==e[o]?e[o]:null),this.hasFooterSlot&&this.selectableFooter&&o===e.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&0===o&&(this.headerHovered=!0);const i=this.$refs.dropdown.querySelector(".dropdown-content");let s="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(s+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(s+=",div.dropdown-footer");const n=i.querySelectorAll(s)[o];if(!n)return;const l=i.scrollTop,a=i.scrollTop+i.clientHeight-n.clientHeight;n.offsetTop<l?i.scrollTop=n.offsetTop:n.offsetTop>=a&&(i.scrollTop=n.offsetTop-i.clientHeight+n.clientHeight)}else this.isActive=!0},focused(e){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(){const e=this.getValue(this.selected);null!=e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(e){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",e)},checkValidity(){this.useHtml5Validation&&this.$nextTick((()=>{this.checkHtml5Validity()}))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$parent.$data._isTaginput?this.$parent.$el:this.$refs.input.$el;if(e&&t){this.$data._bodyEl||(this.$data._bodyEl=s(e));const o=this.$data._bodyEl;o.classList.forEach((e=>o.classList.remove(e))),o.classList.add("autocomplete"),o.classList.add("control"),this.expanded&&o.classList.add("is-expanded");const i=t.getBoundingClientRect();let n=i.top+window.scrollY;const l=i.left+window.scrollX;this.isOpenedTop?n-=e.clientHeight:n+=t.clientHeight,this.style={position:"absolute",top:`${n}px`,left:`${l}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.addEventListener("scroll",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").addEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&(this.$data._bodyEl=s(this.$refs.dropdown),this.updateAppendToBody())},beforeUnmount(){if("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.removeEventListener("scroll",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&this.$data._bodyEl&&i(this.$data._bodyEl),clearTimeout(this.timeOutID)}});const R={key:1,class:"has-text-weight-bold"},N=["onClick"],_={key:1},q={key:1,class:"dropdown-item is-disabled"};var U=v(M,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-input");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["autocomplete control",{"is-expanded":e.expanded}]},e.rootAttrs),[t.createVNode(a,t.mergeProps({modelValue:e.newValue,"onUpdate:modelValue":o[0]||(o[0]=t=>e.newValue=t),ref:"input",type:e.type,size:e.size,loading:e.loading,rounded:e.rounded,icon:e.icon,"icon-right":e.newIconRight,"icon-right-clickable":e.newIconRightClickable,"icon-pack":e.iconPack,maxlength:e.maxlength,autocomplete:e.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":e.ariaAutocomplete},e.fallthroughAttrs,{"onUpdate:modelValue":e.onInput,onFocus:e.focused,onBlur:e.onBlur,onKeydown:[e.keydown,o[1]||(o[1]=t.withKeys(t.withModifiers((t=>e.keyArrows("up")),["prevent"]),["up"])),o[2]||(o[2]=t.withKeys(t.withModifiers((t=>e.keyArrows("down")),["prevent"]),["down"]))],onIconRightClick:e.rightIconClick,onIconClick:o[3]||(o[3]=t=>e.$emit("icon-click",t))}),null,16,["modelValue","type","size","loading","rounded","icon","icon-right","icon-right-clickable","icon-pack","maxlength","autocomplete","aria-autocomplete","onUpdate:modelValue","onFocus","onBlur","onKeydown","onIconRightClick"]),t.createVNode(t.Transition,{name:"fade",persisted:""},{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["dropdown dropdown-menu",{"is-opened-top":e.isOpenedTop&&!e.appendToBody}]),style:t.normalizeStyle(e.style),ref:"dropdown"},[t.withDirectives(t.createElementVNode("div",{class:"dropdown-content",style:t.normalizeStyle(e.contentStyle)},[e.hasHeaderSlot?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["dropdown-item dropdown-header",{"is-hovered":e.headerHovered}]),role:"button",tabindex:"0",onClick:o[4]||(o[4]=t=>e.selectHeaderOrFoterByClick(t,"header"))},[t.renderSlot(e.$slots,"header")],2)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedData,((o,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[o.group?(t.openBlock(),t.createElementBlock("div",{key:i+"group",class:"dropdown-item"},[e.hasGroupSlot?t.renderSlot(e.$slots,"group",{key:0,group:o.group,index:i}):(t.openBlock(),t.createElementBlock("span",R,t.toDisplayString(o.group),1))])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.items,((o,s)=>(t.openBlock(),t.createElementBlock("a",{key:i+":"+s,class:t.normalizeClass(["dropdown-item",{"is-hovered":o===e.hovered}]),role:"button",tabindex:"0",onClick:t.withModifiers((t=>e.setSelected(o,!e.keepOpen,t)),["stop"])},[e.hasDefaultSlot?t.renderSlot(e.$slots,"default",{key:0,option:o,index:s}):(t.openBlock(),t.createElementBlock("span",_,t.toDisplayString(e.getValue(o)),1))],10,N)))),128))],64)))),256)),e.isEmpty&&e.hasEmptySlot?(t.openBlock(),t.createElementBlock("div",q,[t.renderSlot(e.$slots,"empty")])):t.createCommentVNode("v-if",!0),e.hasFooterSlot?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["dropdown-item dropdown-footer",{"is-hovered":e.footerHovered}]),role:"button",tabindex:"0",onClick:o[5]||(o[5]=t=>e.selectHeaderOrFoterByClick(t,"footer"))},[t.renderSlot(e.$slots,"footer")],2)):t.createCommentVNode("v-if",!0)],4),[[t.vShow,e.isActive]])],6),[[t.vShow,e.isActive&&(!e.isEmpty||e.hasEmptySlot||e.hasHeaderSlot||e.hasFooterSlot)]])])),_:3})],16)}]]),K=t.defineComponent({name:"BTaginput",components:{BAutocomplete:U,BTag:$},mixins:[A,F],props:{modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},type:String,closeType:String,attached:{type:Boolean,default:!1},maxtags:Number,hasCounter:{type:Boolean,default:()=>h},field:{type:String,default:"value"},autocomplete:Boolean,groupField:String,groupOptions:String,nativeAutocomplete:String,openOnFocus:Boolean,keepOpen:{type:Boolean,default:!0},keepFirst:Boolean,disabled:Boolean,ellipsis:Boolean,closable:{type:Boolean,default:!0},ariaCloseLabel:String,confirmKeys:{type:Array,default:()=>[",","Tab","Enter"]},removeOnKeys:{type:Array,default:()=>["Backspace"]},allowNew:Boolean,onPasteSeparators:{type:Array,default:()=>[","]},beforeAdding:{type:Function,default:()=>!0},allowDuplicates:{type:Boolean,default:!1},checkInfiniteScroll:{type:Boolean,default:!1},createTag:{type:Function,default:e=>e},appendToBody:Boolean},emits:{add:e=>!0,"infinite-scroll":()=>!0,remove:e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{tags:Array.isArray(this.modelValue)?this.modelValue.slice(0):this.modelValue||[],newTag:"",isComposing:!1,_elementRef:"autocomplete",_isTaginput:!0,requestID:null}},computed:{rootClasses(){return{"is-expanded":this.expanded}},containerClasses(){return{"is-focused":this.isFocused,"is-focusable":this.hasInput}},valueLength(){return this.newTag.trim().length},hasDefaultSlot(){return!!this.$slots.default},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},hasInput(){return null==this.maxtags||1===this.maxtags||this.tagsLength<this.maxtags},tagsLength(){return this.tags.length},separatorsAsRegExp(){const e=this.onPasteSeparators;return e.length?new RegExp(e.map((e=>e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):null)).join("|"),"g"):null},disabledOrUndefined(){return this.disabled||void 0}},watch:{modelValue(e){this.tags=Array.isArray(e)?e.slice(0):e||[]},hasInput(){this.hasInput||this.onBlur()}},methods:{addTag(e){const t=e||this.newTag.trim();if(t){if(!this.autocomplete){const e=this.separatorsAsRegExp;if(e&&t.match(e))return void t.split(e).map((e=>e.trim())).filter((e=>0!==e.length)).map(this.addTag)}(!!this.allowDuplicates||-1===this.tags.indexOf(t))&&this.beforeAdding(t)&&(1===this.maxtags&&(this.tags=[]),this.tags.push(this.createTag(t)),this.$emit("update:modelValue",this.tags),this.$emit("add",t)),this.requestID=requestAnimationFrame((()=>{this.newTag="",this.$emit("typing","")}))}},getNormalizedTagText(e){return"object"==typeof e&&(e=o(e,this.field)),`${e}`},customOnBlur(e){this.autocomplete||this.addTag(),this.onBlur(e)},onSelect(e){e&&(this.addTag(e),this.$nextTick((()=>{this.newTag=""})))},removeTag(e,t){const o=this.tags.splice(e,1)[0];return this.$emit("update:modelValue",this.tags),this.$emit("remove",o),t&&t.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete&&this.$refs.autocomplete.focus(),o},removeLastTag(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown(e){const{key:t}=e;if(-1===this.removeOnKeys.indexOf(t)||this.newTag.length||this.removeLastTag(),(!this.autocomplete||this.allowNew)&&this.confirmKeys.indexOf(t)>=0){if("Tab"!==t&&e.preventDefault(),"Enter"===t&&this.isComposing)return;this.addTag()}},onTyping(e){this.$emit("typing","number"==typeof e?e:null==e?void 0:e.trim())},emitInfiniteScroll(){this.$emit("infinite-scroll")}},beforeUnmount(){cancelAnimationFrame(this.requestID)}});const Z=["disabled"],j={key:0,class:"help counter"};var W=v(K,[["render",function(e,o,i,s,n,l){const a=t.resolveComponent("b-tag"),r=t.resolveComponent("b-autocomplete");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:["taginput control",e.rootClasses]},e.rootAttrs),[t.createElementVNode("div",{class:t.normalizeClass(["taginput-container input",[e.statusType,e.size,e.containerClasses]]),disabled:e.disabledOrUndefined,onClick:o[3]||(o[3]=t=>e.hasInput&&e.focus())},[t.renderSlot(e.$slots,"selected",{tags:e.tags},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tags,((o,i)=>(t.openBlock(),t.createBlock(a,{key:e.getNormalizedTagText(o)+i,type:e.type,"close-type":e.closeType,size:e.size,rounded:e.rounded,attached:e.attached,tabstop:!1,disabled:e.disabledOrUndefined,ellipsis:e.ellipsis,closable:e.closable,"aria-close-label":e.ariaCloseLabel,title:e.ellipsis&&e.getNormalizedTagText(o),onClose:t=>e.removeTag(i,t)},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"tag",{tag:o},(()=>[t.createTextVNode(t.toDisplayString(e.getNormalizedTagText(o)),1)]))])),_:2},1032,["type","close-type","size","rounded","attached","disabled","ellipsis","closable","aria-close-label","title","onClose"])))),128))])),e.hasInput?(t.openBlock(),t.createBlock(r,t.mergeProps({key:0,ref:"autocomplete",modelValue:e.newTag,"onUpdate:modelValue":o[0]||(o[0]=t=>e.newTag=t)},e.fallthroughAttrs,{data:e.data,field:e.field,icon:e.icon,"icon-pack":e.iconPack,maxlength:e.maxlength,"has-counter":!1,size:e.size,disabled:e.disabledOrUndefined,loading:e.loading,autocomplete:e.nativeAutocomplete,"open-on-focus":e.openOnFocus,"keep-open":e.keepOpen,"keep-first":e.keepFirst,"group-field":e.groupField,"group-options":e.groupOptions,"use-html5-validation":e.useHtml5Validation,"check-infinite-scroll":e.checkInfiniteScroll,"append-to-body":e.appendToBody,"confirm-keys":e.confirmKeys,onTyping:e.onTyping,onFocus:e.onFocus,onBlur:e.customOnBlur,onKeydown:e.keydown,onCompositionstart:o[1]||(o[1]=t=>e.isComposing=!0),onCompositionend:o[2]||(o[2]=t=>e.isComposing=!1),onSelect:e.onSelect,onInfiniteScroll:e.emitInfiniteScroll}),t.createSlots({_:2},[e.hasHeaderSlot?{name:"header",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"header")])),key:"0"}:void 0,e.hasDefaultSlot?{name:"default",fn:t.withCtx((o=>[t.renderSlot(e.$slots,"default",{option:o.option,index:o.index})])),key:"1"}:void 0,e.hasEmptySlot?{name:"empty",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"empty")])),key:"2"}:void 0,e.hasFooterSlot?{name:"footer",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"footer")])),key:"3"}:void 0]),1040,["modelValue","data","field","icon","icon-pack","maxlength","size","disabled","loading","autocomplete","open-on-focus","keep-open","keep-first","group-field","group-options","use-html5-validation","check-infinite-scroll","append-to-body","confirm-keys","onTyping","onFocus","onBlur","onKeydown","onSelect","onInfiniteScroll"])):t.createCommentVNode("v-if",!0)],10,Z),e.hasCounter&&(e.maxtags||e.maxlength)?(t.openBlock(),t.createElementBlock("small",j,[e.maxlength&&e.valueLength>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.valueLength)+" / "+t.toDisplayString(e.maxlength),1)],64)):e.maxtags?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.tagsLength)+" / "+t.toDisplayString(e.maxtags),1)],64)):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0)],16)}]]);const G={install(e){((e,t)=>{const o=t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)})(e,W)}};e.BTaginput=W,e.default=G,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- /*! Buefy v3.0.5 | MIT License | github.com/buefy/buefy */
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) :
@@ -397,8 +397,8 @@
397
397
  return target;
398
398
  };
399
399
 
400
- const _hoisted_1$5 = ["for"];
401
- const _hoisted_2$5 = ["for"];
400
+ const _hoisted_1$6 = ["for"];
401
+ const _hoisted_2$6 = ["for"];
402
402
  const _hoisted_3$4 = {
403
403
  key: 3,
404
404
  class: "field-body"
@@ -437,7 +437,7 @@
437
437
  64
438
438
  /* STABLE_FRAGMENT */
439
439
  ))
440
- ], 10, _hoisted_1$5)) : vue.createCommentVNode("v-if", true)
440
+ ], 10, _hoisted_1$6)) : vue.createCommentVNode("v-if", true)
441
441
  ],
442
442
  2
443
443
  /* CLASS */
@@ -463,7 +463,7 @@
463
463
  64
464
464
  /* STABLE_FRAGMENT */
465
465
  ))
466
- ], 10, _hoisted_2$5)) : vue.createCommentVNode("v-if", true)
466
+ ], 10, _hoisted_2$6)) : vue.createCommentVNode("v-if", true)
467
467
  ],
468
468
  64
469
469
  /* STABLE_FRAGMENT */
@@ -1132,8 +1132,8 @@
1132
1132
  }
1133
1133
  });
1134
1134
 
1135
- const _hoisted_1$4 = ["tabindex"];
1136
- const _hoisted_2$4 = ["aria-hidden"];
1135
+ const _hoisted_1$5 = ["tabindex"];
1136
+ const _hoisted_2$5 = ["aria-hidden"];
1137
1137
  const _hoisted_3$3 = ["aria-hidden"];
1138
1138
  const _hoisted_4$2 = ["role", "aria-modal"];
1139
1139
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1161,14 +1161,14 @@
1161
1161
  "aria-haspopup": "true"
1162
1162
  }, [
1163
1163
  vue.renderSlot(_ctx.$slots, "trigger", { active: _ctx.isActive })
1164
- ], 40, _hoisted_1$4)) : vue.createCommentVNode("v-if", true),
1164
+ ], 40, _hoisted_1$5)) : vue.createCommentVNode("v-if", true),
1165
1165
  vue.createVNode(vue.Transition, { name: _ctx.animation }, {
1166
1166
  default: vue.withCtx(() => [
1167
1167
  _ctx.isMobileModal ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
1168
1168
  key: 0,
1169
1169
  class: "background",
1170
1170
  "aria-hidden": !_ctx.isActive
1171
- }, null, 8, _hoisted_2$4)), [
1171
+ }, null, 8, _hoisted_2$5)), [
1172
1172
  [vue.vShow, _ctx.isActive]
1173
1173
  ]) : vue.createCommentVNode("v-if", true)
1174
1174
  ]),
@@ -1285,14 +1285,14 @@
1285
1285
  }
1286
1286
  });
1287
1287
 
1288
- const _hoisted_1$3 = {
1288
+ const _hoisted_1$4 = {
1289
1289
  key: 0,
1290
1290
  class: "dropdown-divider"
1291
1291
  };
1292
- const _hoisted_2$3 = ["role", "tabindex"];
1292
+ const _hoisted_2$4 = ["role", "tabindex"];
1293
1293
  const _hoisted_3$2 = ["role", "tabindex"];
1294
1294
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
1295
- return _ctx.separator ? (vue.openBlock(), vue.createElementBlock("hr", _hoisted_1$3)) : !_ctx.custom && !_ctx.hasLink ? (vue.openBlock(), vue.createElementBlock("a", {
1295
+ return _ctx.separator ? (vue.openBlock(), vue.createElementBlock("hr", _hoisted_1$4)) : !_ctx.custom && !_ctx.hasLink ? (vue.openBlock(), vue.createElementBlock("a", {
1296
1296
  key: 1,
1297
1297
  class: vue.normalizeClass(["dropdown-item", _ctx.anchorClasses]),
1298
1298
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.selectItem && _ctx.selectItem(...args)),
@@ -1300,7 +1300,7 @@
1300
1300
  tabindex: _ctx.isFocusable ? 0 : void 0
1301
1301
  }, [
1302
1302
  vue.renderSlot(_ctx.$slots, "default")
1303
- ], 10, _hoisted_2$3)) : (vue.openBlock(), vue.createElementBlock("div", {
1303
+ ], 10, _hoisted_2$4)) : (vue.openBlock(), vue.createElementBlock("div", {
1304
1304
  key: 2,
1305
1305
  class: vue.normalizeClass(_ctx.itemClasses),
1306
1306
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.selectItem && _ctx.selectItem(...args)),
@@ -1372,6 +1372,81 @@
1372
1372
  return icons;
1373
1373
  };
1374
1374
 
1375
+ const defaultIconAliases = {
1376
+ checkboxOn: {
1377
+ type: "svg",
1378
+ viewBox: "0 0 1 1",
1379
+ 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"
1380
+ },
1381
+ checkboxIndeterminate: {
1382
+ type: "svg",
1383
+ viewBox: "0 0 1 1",
1384
+ path: "M 0.15,0.4 L 0.85,0.4 L 0.85,0.6 L 0.15,0.6 Z"
1385
+ },
1386
+ chevronLeft: {
1387
+ type: "svg",
1388
+ path: "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"
1389
+ },
1390
+ chevronRight: {
1391
+ type: "svg",
1392
+ path: "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
1393
+ },
1394
+ chevronDown: {
1395
+ type: "svg",
1396
+ path: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
1397
+ },
1398
+ chevronUp: {
1399
+ type: "svg",
1400
+ path: "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"
1401
+ },
1402
+ menuDown: {
1403
+ type: "svg",
1404
+ path: "M7,10L12,15L17,10H7Z"
1405
+ },
1406
+ menuUp: {
1407
+ type: "svg",
1408
+ path: "M7,14L12,9L17,14H7Z"
1409
+ },
1410
+ check: {
1411
+ type: "svg",
1412
+ path: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
1413
+ },
1414
+ alertCircle: {
1415
+ type: "svg",
1416
+ 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"
1417
+ },
1418
+ alert: {
1419
+ type: "svg",
1420
+ path: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
1421
+ },
1422
+ information: {
1423
+ type: "svg",
1424
+ 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"
1425
+ },
1426
+ close: {
1427
+ type: "svg",
1428
+ 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"
1429
+ },
1430
+ closeCircle: {
1431
+ type: "svg",
1432
+ 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"
1433
+ },
1434
+ eye: {
1435
+ type: "svg",
1436
+ 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"
1437
+ },
1438
+ eyeOff: {
1439
+ type: "svg",
1440
+ 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"
1441
+ }
1442
+ };
1443
+ function getIconAliases() {
1444
+ return defaultIconAliases;
1445
+ }
1446
+ function resolveAlias(name) {
1447
+ return getIconAliases()[name];
1448
+ }
1449
+
1375
1450
  var _sfc_main$3 = vue.defineComponent({
1376
1451
  name: "BIcon",
1377
1452
  props: {
@@ -1380,8 +1455,11 @@
1380
1455
  pack: String,
1381
1456
  icon: {
1382
1457
  type: String,
1383
- required: true
1458
+ required: false,
1459
+ default: void 0
1384
1460
  },
1461
+ /** Key into IconAliases (e.g. "chevronLeft"). Takes precedence over icon/pack. */
1462
+ alias: String,
1385
1463
  size: String,
1386
1464
  customSize: String,
1387
1465
  customClass: String,
@@ -1389,6 +1467,26 @@
1389
1467
  // This is used internally to show both MDI and FA icon
1390
1468
  },
1391
1469
  computed: {
1470
+ resolvedAlias() {
1471
+ var _a;
1472
+ if (!this.alias) return null;
1473
+ return (_a = resolveAlias(this.alias)) != null ? _a : null;
1474
+ },
1475
+ isSvgAlias() {
1476
+ var _a;
1477
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "svg";
1478
+ },
1479
+ isComponentAlias() {
1480
+ var _a;
1481
+ return ((_a = this.resolvedAlias) == null ? void 0 : _a.type) === "component";
1482
+ },
1483
+ // Typed accessors used in the template
1484
+ resolvedAliasSvg() {
1485
+ return this.resolvedAlias;
1486
+ },
1487
+ resolvedAliasComponent() {
1488
+ return this.resolvedAlias;
1489
+ },
1392
1490
  iconConfig() {
1393
1491
  const allIcons = getIcons();
1394
1492
  return allIcons[this.newPack];
@@ -1405,7 +1503,8 @@
1405
1503
  * internal icons are always MDI.
1406
1504
  */
1407
1505
  newIcon() {
1408
- return `${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`;
1506
+ var _a;
1507
+ return `${this.iconPrefix}${this.getEquivalentIconOf((_a = this.icon) != null ? _a : "")}`;
1409
1508
  },
1410
1509
  newPack() {
1411
1510
  return this.pack || config.defaultIconPack;
@@ -1464,6 +1563,8 @@
1464
1563
  }
1465
1564
  });
1466
1565
 
1566
+ const _hoisted_1$3 = ["viewBox"];
1567
+ const _hoisted_2$3 = ["d"];
1467
1568
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
1468
1569
  return vue.openBlock(), vue.createElementBlock(
1469
1570
  "span",
@@ -1471,17 +1572,32 @@
1471
1572
  class: vue.normalizeClass(["icon", [_ctx.newType, _ctx.size]])
1472
1573
  },
1473
1574
  [
1474
- !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
1575
+ _ctx.isSvgAlias ? (vue.openBlock(), vue.createElementBlock("svg", {
1576
+ key: 0,
1577
+ viewBox: _ctx.resolvedAliasSvg.viewBox || "0 0 24 24",
1578
+ xmlns: "http://www.w3.org/2000/svg",
1579
+ class: vue.normalizeClass(_ctx.customClass),
1580
+ "aria-hidden": "true"
1581
+ }, [
1582
+ vue.createElementVNode("path", {
1583
+ fill: "currentColor",
1584
+ d: _ctx.resolvedAliasSvg.path
1585
+ }, null, 8, _hoisted_2$3)
1586
+ ], 10, _hoisted_1$3)) : _ctx.isComponentAlias ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resolvedAliasComponent.component), {
1587
+ key: 1,
1588
+ icon: _ctx.resolvedAliasComponent.icon,
1589
+ class: vue.normalizeClass(_ctx.customClass)
1590
+ }, null, 8, ["icon", "class"])) : !_ctx.useIconComponent ? (vue.openBlock(), vue.createElementBlock(
1475
1591
  "i",
1476
1592
  {
1477
- key: 0,
1593
+ key: 2,
1478
1594
  class: vue.normalizeClass([_ctx.newPack, _ctx.newIcon, _ctx.newCustomSize, _ctx.customClass])
1479
1595
  },
1480
1596
  null,
1481
1597
  2
1482
1598
  /* CLASS */
1483
1599
  )) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.useIconComponent), {
1484
- key: 1,
1600
+ key: 3,
1485
1601
  icon: [_ctx.newPack, _ctx.newIcon],
1486
1602
  size: _ctx.newCustomSize,
1487
1603
  class: vue.normalizeClass([_ctx.customClass])