From f917d3d83972e8c6d85c3d6da5caa04e229f90be Mon Sep 17 00:00:00 2001 From: Muhi Masri Date: Sat, 15 Jan 2022 18:52:54 -0500 Subject: [PATCH 1/2] Enable row editing --- README.md | 8 ++++++++ src/b-editable-table.vue | 22 +++++++++++++++------- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 54e2ce8..fe31a8e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + # BootstrapVue Editable Table BootstrapVue Editable Table is a Vue table component that enables cell editing and inherits/supports all other features from [BootstrapVue Table](https://bootstrap-vue.org/docs/components/table). @@ -19,6 +20,7 @@ If you'd like to contribute, please read this [introductory article](https://muh [Custom Styling](#custom-styling)
[Keyboard Keys](#keyboard-keys)
[Events](#events)
+[Edit Properties](#edit-properties)
[Custom Cell](#custom-cell)
[Add and Remove Rows](#add-and-remove-rows)
[Load Data via REST API](#load-data-via-rest-api)
@@ -386,6 +388,12 @@ table.editable-table td { |--|--|--| | input-change                     |`value` - Current cell value
`data` - Row data (the same object returned by Bootstrap)| Emitted when any cell input changes +## Edit Properties: +|Event |Arguments | Description | +|--|--|--| +| editMode |`cell` - Edit one cell (default behavior)
`row` - Edit all the cells of a row at once| Change edit mode +| editTrigger|`click` - Edit on mouse click (default behavior)
`dblclick` - Edit on mouse double click| Change edit trigger + ## Custom Cell To customize a none editable cell, you can use Bootstraps' scoped slots. diff --git a/src/b-editable-table.vue b/src/b-editable-table.vue index f57fd5b..05a568d 100644 --- a/src/b-editable-table.vue +++ b/src/b-editable-table.vue @@ -17,7 +17,7 @@ v-if=" field.type === 'date' && tableItems[data.index].isEdit && - selectedCell === field.key && + (selectedCell === field.key || editMode === 'row') && field.editable " :key="index" @@ -32,7 +32,7 @@ v-else-if=" field.type === 'select' && tableItems[data.index].isEdit && - selectedCell === field.key && + (selectedCell === field.key || editMode === 'row') && field.editable " :key="index" @@ -46,7 +46,7 @@ v-else-if=" field.type === 'checkbox' && tableItems[data.index].isEdit && - selectedCell === field.key && + (selectedCell === field.key || editMode === 'row') && field.editable " :key="index" @@ -61,7 +61,7 @@ field.type === 'rating' && field.type && tableItems[data.index].isEdit && - selectedCell === field.key && + (selectedCell === field.key || editMode === 'row') && field.editable " :key="index" @@ -76,7 +76,7 @@ v-else-if=" field.type && tableItems[data.index].isEdit && - selectedCell === field.key && + (selectedCell === field.key || editMode === 'row') && field.editable " :key="index" @@ -85,7 +85,7 @@ >
@@ -125,6 +125,14 @@ export default Vue.extend({ fields: Array, items: Array, value: Array, + editMode: { + type: String, + default: 'cell' + }, + editTrigger: { + type: String, + default: 'click' + } }, directives: { focus: { @@ -182,7 +190,7 @@ export default Vue.extend({ this.selectedCell = name; }, handleKeydown(e: any, index: number, data: any) { - if (e.code === "Tab") { + if (e.code === "Tab" && this.editMode === 'cell') { e.preventDefault(); let fieldIndex = this.fields.length - 1 === index ? 0 : index + 1; let rowIndex = From 532368d8d9f3580dae9713f780af6b08e5f10f2d Mon Sep 17 00:00:00 2001 From: Muhi Masri Date: Sat, 15 Jan 2022 18:54:05 -0500 Subject: [PATCH 2/2] New version --- dist/b-editable-table.esm.js | 32 +++++++++++++++++++------------- dist/b-editable-table.min.js | 2 +- dist/b-editable-table.ssr.js | 34 ++++++++++++++++++++-------------- package.json | 2 +- 4 files changed, 41 insertions(+), 29 deletions(-) diff --git a/dist/b-editable-table.esm.js b/dist/b-editable-table.esm.js index f0b40e6..a317509 100644 --- a/dist/b-editable-table.esm.js +++ b/dist/b-editable-table.esm.js @@ -11929,7 +11929,15 @@ var script = Vue.extend({ props: { fields: Array, items: Array, - value: Array + value: Array, + editMode: { + type: String, + default: 'cell' + }, + editTrigger: { + type: String, + default: 'click' + } }, directives: { focus: { @@ -11997,7 +12005,7 @@ var script = Vue.extend({ }, handleKeydown(e, index, data) { - if (e.code === "Tab") { + if (e.code === "Tab" && this.editMode === 'cell') { e.preventDefault(); let fieldIndex = this.fields.length - 1 === index ? 0 : index + 1; let rowIndex = this.fields.length - 1 === index ? data.index + 1 : data.index; @@ -12249,7 +12257,7 @@ var __vue_render__ = function () { return { key: "cell(" + field.key + ")", fn: function (data) { - return [field.type === 'date' && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-datepicker', _vm._b({ + return [field.type === 'date' && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-datepicker', _vm._b({ directives: [{ name: "focus", rawName: "v-focus", @@ -12271,7 +12279,7 @@ var __vue_render__ = function () { return _vm.handleKeydown($event, index, data); } } - }, 'b-form-datepicker', Object.assign({}, field), false)) : field.type === 'select' && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-select', _vm._b({ + }, 'b-form-datepicker', Object.assign({}, field), false)) : field.type === 'select' && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-select', _vm._b({ directives: [{ name: "focus", rawName: "v-focus" @@ -12290,7 +12298,7 @@ var __vue_render__ = function () { return _vm.handleKeydown($event, index, data); } } - }, 'b-form-select', Object.assign({}, field), false)) : field.type === 'checkbox' && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-checkbox', _vm._b({ + }, 'b-form-select', Object.assign({}, field), false)) : field.type === 'checkbox' && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-checkbox', _vm._b({ directives: [{ name: "focus", rawName: "v-focus", @@ -12311,7 +12319,7 @@ var __vue_render__ = function () { return _vm.handleKeydown($event, index, data); } } - }, 'b-form-checkbox', Object.assign({}, field), false)) : field.type === 'rating' && field.type && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-rating', _vm._b({ + }, 'b-form-checkbox', Object.assign({}, field), false)) : field.type === 'rating' && field.type && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-rating', _vm._b({ directives: [{ name: "focus", rawName: "v-focus" @@ -12329,7 +12337,7 @@ var __vue_render__ = function () { return _vm.inputHandler(value, data, field.key); } } - }, 'b-form-rating', Object.assign({}, field), false)) : field.type && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-input', _vm._b({ + }, 'b-form-rating', Object.assign({}, field), false)) : field.type && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-input', _vm._b({ directives: [{ name: "focus", rawName: "v-focus" @@ -12350,11 +12358,9 @@ var __vue_render__ = function () { }, 'b-form-input', Object.assign({}, field), false)) : _c('div', { key: index, staticClass: "data-cell", - on: { - "click": function ($event) { - return _vm.handleEditCell($event, data.index, field.key); - } - } + on: _vm._d({}, [_vm.editTrigger, function ($event) { + return _vm.handleEditCell($event, data.index, field.key); + }]) }, [_vm.$scopedSlots["cell(" + field.key + ")"] ? _vm._t("cell(" + field.key + ")", null, null, data) : [_vm._v(_vm._s(_vm.getValue(data, field)))]], 2)]; } }; @@ -12367,7 +12373,7 @@ var __vue_staticRenderFns__ = []; const __vue_inject_styles__ = function (inject) { if (!inject) return; - inject("data-v-87d2cda4_0", { + inject("data-v-43311d3a_0", { source: "table.b-table{width:unset}table.b-table td{padding:0}.data-cell{display:flex;width:100%;height:100%}", map: undefined, media: undefined diff --git a/dist/b-editable-table.min.js b/dist/b-editable-table.min.js index cd31ca0..ca84791 100644 --- a/dist/b-editable-table.min.js +++ b/dist/b-editable-table.min.js @@ -1 +1 @@ -var BEditableTable=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n]+)>)/gi,C=/\B([A-Z])/g,x=/([a-z])([A-Z])/g,F=/^[0-9]*\.?[0-9]+$/,E=/[-/\\^$*+?.()|[\]{}]/g,I=/[\s\uFEFF\xA0]+/g,$=/(\s|^)(\w)/g,R=/_/g,M=/-(\w)/g,L=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,V=/-|\s|T/,A=/%2C/g,B=/[!'()*]/g,_=/^BIcon/,H=/-u-.+/;function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&X(t,e)}function G(t){var e=K();return function(){var n,r=J(t);if(e){var i=J(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==N(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(t){var e="function"==typeof Map?new Map:void 0;return(U=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return q(t,arguments,J(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),X(r,t)})(t)}function q(t,e,n){return(q=K()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&X(i,n.prototype),i}).apply(null,arguments)}function K(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function X(t,e){return(X=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function J(t){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Z=b?g.Element:function(t){Y(n,t);var e=G(n);function n(){return z(this,n),e.apply(this,arguments)}return n}(U(Object)),Q=b?g.HTMLElement:function(t){Y(n,t);var e=G(n);function n(){return z(this,n),e.apply(this,arguments)}return n}(Z);function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}b&&g.SVGElement,b&&g.File;var et=function(t){return tt(t)},nt=function(t){return void 0===t},rt=function(t){return null===t},it=function(t){return nt(t)||rt(t)},ot=function(t){return"function"===et(t)},at=function(t){return"boolean"===et(t)},st=function(t){return"string"===et(t)},lt=function(t){return"number"===et(t)},ct=function(t){return Array.isArray(t)},ut=function(t){return null!==t&&"object"===tt(t)},dt=function(t){return"[object Object]"===Object.prototype.toString.call(t)},ht=function(t){return t instanceof Date},ft=function(t){return t instanceof Event},pt=function(t){return"RegExp"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)};function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mt(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:e;return ct(e)?e.reduce((function(e,n){return[].concat(Et(e),[t(n,n)])}),[]):dt(e)?wt(e).reduce((function(n,r){return xt(xt({},n),{},Ft({},r,t(e[r],e[r])))}),{}):n},Rt=function(t){return t},Mt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!(e=ct(e)?e.join("."):e)||!ut(t))return n;if(e in t)return t[e];var r=(e=String(e).replace(k,".$1")).split(".").filter(Rt);return 0===r.length?n:r.every((function(e){return ut(t)&&e in t&&!it(t=t[e])}))?t:rt(t)?null:n},Lt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Mt(t,e);return it(r)?n:r},Vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="undefined"!=typeof process&&process&&process.env||{};return t?n[t]||e:n},At=function(){return Vt("BOOTSTRAP_VUE_NO_WARN")||"production"===Vt("NODE_ENV")},Bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;At()||console.warn("[BootstrapVue warn]: ".concat(e?"".concat(e," - "):"").concat(t))},_t="BButton",Ht="BCalendar",Nt="BDropdown",zt="BFormCheckbox",Yt="BFormDatepicker",Gt="BFormInput",Wt="BFormRating",Ut="BFormSelect",qt="BFormSelectOption",Kt="BFormSelectOptionGroup",Xt="BIcon",Jt="BLink",Zt="BTable",Qt="BTableCell",te="BTbody",ee="BTfoot",ne="BThead",re="change",ie="click",oe="context",ae="context-changed",se="filtered",le="head-clicked",ce="hidden",ue="input",de="refreshed",he="row-clicked",fe="selected",pe="shown",be="hook:beforeDestroy",me="bv",ve={passive:!0,capture:!1},ye=void 0,ge=Array,Oe=Boolean,we=Date,Se=Function,je=Number,ke=Object,De=RegExp,Pe=String,Te=[ge,Se],Ce=[ge,ke],xe=[ge,ke,Pe],Fe=[ge,Pe],Ee=[Oe,Pe],Ie=[we,Pe],$e=[je,Pe],Re=[ke,Se],Me=[ke,Pe],Le="bottom-row",Ve="button-content",Ae="custom-foot",Be="default",_e="first",He="row-details",Ne="table-busy",ze="table-caption",Ye="table-colgroup",Ge="thead-top",We="top-row",Ue=function(){return Array.from.apply(Array,arguments)},qe=function(t,e){return-1!==t.indexOf(e)},Ke=function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseInt(t,10);return isNaN(n)?e:n},Je=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseFloat(t);return isNaN(n)?e:n},Ze=function(t){return t.replace(C,"-$1").toLowerCase()},Qe=function(t){return(t=Ze(t).replace(M,(function(t,e){return e?e.toUpperCase():""}))).charAt(0).toUpperCase()+t.slice(1)},tn=function(t){return t.replace(R," ").replace(x,(function(t,e,n){return e+" "+n})).replace($,(function(t,e,n){return e+n.toUpperCase()}))},en=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return it(t)?"":ct(t)||dt(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,e):String(t)},nn=function(t){return en(t).trim()},rn=Z.prototype,on=rn.matches||rn.msMatchesSelector||rn.webkitMatchesSelector,an=rn.closest||function(t){var e=this;do{if(fn(e,t))return e;e=e.parentElement||e.parentNode}while(!rt(e)&&e.nodeType===Node.ELEMENT_NODE);return null},sn=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.msRequestAnimationFrame||g.oRequestAnimationFrame||function(t){return setTimeout(t,16)};g.MutationObserver||g.WebKitMutationObserver||g.MozMutationObserver;var ln=function(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE)},cn=function(t,e){return en(t).toLowerCase()===en(e).toLowerCase()},un=function(t){return ln(t)&&t===function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=O.activeElement;return e&&!t.some((function(t){return t===e}))?e:null}()},dn=function(t){if(!ln(t)||!t.parentNode||!bn(O.body,t))return!1;if("none"===mn(t,"display"))return!1;var e=vn(t);return!!(e&&e.height>0&&e.width>0)},hn=function(t,e){return(ln(e)?e:O).querySelector(t)||null},fn=function(t,e){return!!ln(t)&&on.call(t,e)},pn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!ln(e))return null;var r=an.call(e,t);return n?r:r===e?null:r},bn=function(t,e){return!(!t||!ot(t.contains))&&t.contains(e)},mn=function(t,e){return e&&ln(t)&&t.style[e]||null},vn=function(t){return ln(t)?t.getBoundingClientRect():null},yn=function(){return g.getSelection?g.getSelection():null},gn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t.focus(e)}catch(t){}return un(t)},On=function(t){try{t.blur()}catch(t){}return!un(t)},wn=n.default.prototype,Sn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=wn.$bvConfig;return n?n.getConfigValue(t,e):$t(e)};function jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kn(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:ye,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=!0===n;return r=i?r:n,kn(kn(kn({},t?{type:t}:{}),i?{required:i}:nt(e)?{}:{default:ut(e)?function(){return e}:e}),nt(r)?{}:{validator:r})},Tn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rt;return(ct(t)?t.slice():wt(t)).reduce((function(t,r){return t[n(r)]=e[r],t}),{})},Cn=function(t,e,n){return kn(kn({},$t(t)),{},{default:function(){var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return e?Sn("".concat(t,".").concat(e),n):Sn(t,{})}(n,e,t.default);return ot(r)?r():r}})},xn=function(t,e){return wt(t).reduce((function(n,r){return kn(kn({},n),{},Dn({},r,Cn(t[r],r,e)))}),{})},Fn=Cn({},"","").default.name,En=function(t){return ot(t)&&t.name!==Fn};function In(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.type,i=void 0===r?ye:r,o=e.defaultValue,a=void 0===o?void 0:o,s=e.validator,l=void 0===s?void 0:s,c=e.event,u=void 0===c?ue:c,d=In({},t,Pn(i,a,l)),h=n.default.extend({model:{prop:t,event:u},props:d});return{mixin:h,props:d,prop:t,event:u}},Rn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(t=Ke(t).filter(Rt)).some((function(t){return e[t]||n[t]}))},Mn=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=Ke(t).filter(Rt);for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:Be,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$scopedSlots,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$slots;return Rn(t,e,n)},normalizeSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,i=Mn(t,e,n,r);return i?Ke(i):i}}}),Vn=function(t){return j?ut(t)?t:{capture:!!t||!1}:!!(ut(t)?t.capture:t)},An=function(t,e,n,r){t&&t.addEventListener&&t.addEventListener(e,n,Vn(r))},Bn=function(t,e,n,r){t&&t.removeEventListener&&t.removeEventListener(e,n,Vn(r))},_n=function(t){for(var e=t?An:Bn,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventDefault,r=void 0===n||n,i=e.propagation,o=void 0===i||i,a=e.immediatePropagation,s=void 0!==a&&a;r&&t.preventDefault(),o&&t.stopPropagation(),s&&t.stopImmediatePropagation()},Nn=function(t){return Ze(t.replace(D,""))},zn=function(t,e){return[me,Nn(t),e].join("::")},Yn=Math.min,Gn=Math.max,Wn=function(t){return"%"+t.charCodeAt(0).toString(16)},Un=function(t){return encodeURIComponent(en(t)).replace(B,Wn).replace(A,",")},qn=function(t){if(!dt(t))return"";var e=wt(t).map((function(e){var n=t[e];return nt(n)?"":rt(n)?Un(e):ct(n)?n.reduce((function(t,n){return rt(n)?t.push(Un(e)):nt(n)||t.push(Un(e)+"="+Un(n)),t}),[]).join("&"):Un(e)+"="+Un(n)})).filter((function(t){return t.length>0})).join("&");return e?"?".concat(e):""},Kn=function(t){return!(!t||cn(t,"a"))};function Xn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jn={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},Zn={width:null,height:null,focusable:null,role:null,"aria-label":null},Qn={animation:Pn(Pe),content:Pn(Pe),flipH:Pn(Oe,!1),flipV:Pn(Oe,!1),fontScale:Pn($e,1),rotate:Pn($e,0),scale:Pn($e,1),shiftH:Pn($e,0),shiftV:Pn($e,0),stacked:Pn(Oe,!1),title:Pn(Pe),variant:Pn(Pe)},tr=n.default.extend({name:"BIconBase",functional:!0,props:Qn,render:function(t,e){var n,r=e.data,i=e.props,o=e.children,a=i.animation,s=i.content,l=i.flipH,c=i.flipV,u=i.stacked,d=i.title,h=i.variant,f=Gn(Je(i.fontScale,1),0)||1,b=Gn(Je(i.scale,1),0)||1,m=Je(i.rotate,0),v=Je(i.shiftH,0),y=Je(i.shiftV,0),g=l||c||1!==b,O=g||m,w=v||y,S=!it(s),j=t("g",{attrs:{transform:[O?"translate(8 8)":null,g?"scale(".concat((l?-1:1)*b," ").concat((c?-1:1)*b,")"):null,m?"rotate(".concat(m,")"):null,O?"translate(-8 -8)":null].filter(Rt).join(" ")||null},domProps:S?{innerHTML:s||""}:{}},o);w&&(j=t("g",{attrs:{transform:"translate(".concat(16*v/16," ").concat(-16*y/16,")")}},[j])),u&&(j=t("g",[j]));var k=[d?t("title",d):null,j].filter(Rt);return t("svg",p({staticClass:"b-icon bi",class:(n={},Xn(n,"text-".concat(h),h),Xn(n,"b-icon-animation-".concat(a),a),n),attrs:Jn,style:u?{}:{fontSize:1===f?null:"".concat(100*f,"%")}},r,u?{attrs:Zn}:{},{attrs:{xmlns:u?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),k)}});function er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nr(t){for(var e=1;e'),sr=ir("CalendarFill",''),lr=ir("ChevronBarLeft",''),cr=ir("ChevronDoubleLeft",''),ur=ir("ChevronDown",''),dr=ir("ChevronLeft",''),hr=ir("CircleFill",''),fr=ir("Star",''),pr=ir("StarFill",''),br=ir("StarHalf",''),mr=ir("X",'');function vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yr(t){for(var e=1;e1?n-1:0),i=1;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=t.rel;return"_blank"===e&&rt(n)?"noopener":n||null}({target:this.target,rel:this.rel})},computedHref:function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.href,n=t.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(e)return e;if(Kn(r))return null;if(st(n))return n||o;if(dt(n)&&(n.path||n.query||n.hash)){var a=en(n.path),s=qn(n.query),l=en(n.hash);return l=l&&"#"!==l.charAt(0)?"#".concat(l):l,"".concat(a).concat(s).concat(l)||o}return i}({to:this.to,href:this.href},this.computedTag)},computedProps:function(){var t=this.prefetch;return this.isRouterLink?_r(_r({},Tn(_r(_r({},zr),Yr),this)),{},{prefetch:at(t)?t:void 0,tag:this.routerTag}):{}},computedAttrs:function(){var t=this.bvAttrs,e=this.computedHref,n=this.computedRel,r=this.disabled,i=this.target,o=this.routerTag,a=this.isRouterLink;return _r(_r(_r(_r({},t),e?{href:e}:{}),a&&!cn(o,"a")?{}:{rel:n,target:i}),{},{tabindex:r?"-1":nt(t.tabindex)?null:t.tabindex,"aria-disabled":r?"true":null})},computedListeners:function(){return _r(_r({},this.bvListeners),{},{click:this.onClick})}},methods:{onClick:function(t){var e=arguments,n=ft(t),r=this.isRouterLink,i=this.bvListeners.click;n&&this.disabled?Hn(t,{immediatePropagation:!0}):(r&&t.currentTarget.__vue__&&t.currentTarget.__vue__.$emit(ie,t),Ke(i).filter((function(t){return ot(t)})).forEach((function(t){t.apply(void 0,Vr(e))})),this.emitOnRoot(Nr,t),this.emitOnRoot("clicked::link",t)),n&&!r&&"#"===this.computedHref&&Hn(t,{propagation:!1})},focus:function(){gn(this.$el)},blur:function(){On(this.$el)}},render:function(t){var e=this.active,n=this.disabled;return t(this.computedTag,Hr({class:{active:e,disabled:n},attrs:this.computedAttrs,props:this.computedProps},this.isRouterLink?"nativeOn":"on",this.computedListeners),this.normalizeSlot())}});function Ur(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qr(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(T,"")},li=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}},ci="gregory",ui="long",di="short",hi="2-digit",fi="numeric";function pi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return bi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t=wi(t),e=wi(e)||t,n=wi(n)||t,t?tn?n:t:null},Mi=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(t){return t.toLowerCase()})),Li=function(t){var e=en(t).toLowerCase().replace(H,"").split("-"),n=e.slice(0,2).join("-"),r=e[0];return qe(Mi,n)||qe(Mi,r)},Vi={id:Pn(Pe)},Ai=n.default.extend({props:Vi,data:function(){return{localId_:null}},computed:{safeId:function(){var t=this.id||this.localId_;return function(e){return t?(e=String(e||"").replace(/\s+/g,"_"))?t+"_"+e:t:null}}},mounted:function(){var t=this;this.$nextTick((function(){t.localId_="__BVID__".concat(t._uid)}))}});function Bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _i(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:ci;return t=Ke(t).filter(Rt),new Intl.DateTimeFormat(t,{calendar:e}).resolvedOptions().locale}(Ke(this.locale).filter(Rt),ci)},computedDateDisabledFn:function(){var t=this.dateDisabledFn;return En(t)?t:function(){return!1}},computedDateInfoFn:function(){var t=this.dateInfoFn;return En(t)?t:function(){return{}}},calendarLocale:function(){var t=new Intl.DateTimeFormat(this.computedLocale,{calendar:ci}),e=t.resolvedOptions().calendar,n=t.resolvedOptions().locale;return e!==ci&&(n=n.replace(/-u-.+$/i,"").concat("-u-ca-gregory")),n},calendarYear:function(){return this.activeDate.getFullYear()},calendarMonth:function(){return this.activeDate.getMonth()},calendarFirstDay:function(){return Oi(this.calendarYear,this.calendarMonth,1,12)},calendarDaysInMonth:function(){var t=Oi(this.calendarFirstDay);return t.setMonth(t.getMonth()+1,0),t.getDate()},computedVariant:function(){return"btn-".concat(this.selectedVariant||"primary")},computedTodayVariant:function(){return"btn-outline-".concat(this.todayVariant||this.selectedVariant||"primary")},computedNavButtonVariant:function(){return"btn-outline-".concat(this.navButtonVariant||"primary")},isRTL:function(){var t=en(this.direction).toLowerCase();return"rtl"===t||"ltr"!==t&&Li(this.computedLocale)},context:function(){var t=this.selectedYMD,e=this.activeYMD,n=wi(t),r=wi(e);return{selectedYMD:t,selectedDate:n,selectedFormatted:n?this.formatDateString(n):this.labelNoDateSelected,activeYMD:e,activeDate:r,activeFormatted:r?this.formatDateString(r):"",disabled:this.dateDisabled(r),locale:this.computedLocale,calendarLocale:this.calendarLocale,rtl:this.isRTL}},dateOutOfRange:function(){var t=this.computedMin,e=this.computedMax;return function(n){return n=wi(n),t&&ne}},dateDisabled:function(){var t=this,e=this.dateOutOfRange;return function(n){n=wi(n);var r=Si(n);return!(!e(n)&&!t.computedDateDisabledFn(r,n))}},formatDateString:function(){return ji(this.calendarLocale,_i(_i({year:fi,month:hi,day:hi},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:ci}))},formatYearMonth:function(){return ji(this.calendarLocale,{year:fi,month:ui,calendar:ci})},formatWeekdayName:function(){return ji(this.calendarLocale,{weekday:ui,calendar:ci})},formatWeekdayNameShort:function(){return ji(this.calendarLocale,{weekday:this.weekdayHeaderFormat||di,calendar:ci})},formatDay:function(){var t=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(e){return t.format(e.getDate())}},prevDecadeDisabled:function(){var t=this.computedMin;return this.disabled||t&&Pi(Ii(this.activeDate))t},nextYearDisabled:function(){var t=this.computedMax;return this.disabled||t&&Di(Ei(this.activeDate))>t},nextDecadeDisabled:function(){var t=this.computedMax;return this.disabled||t&&Di($i(this.activeDate))>t},calendar:function(){for(var t=[],e=this.calendarFirstDay,n=e.getFullYear(),r=e.getMonth(),i=this.calendarDaysInMonth,o=e.getDay(),a=0-((this.computedWeekStarts>o?7:0)-this.computedWeekStarts)-o,s=0;s<6&&a=0)return 1;return 0}();var Zi=Xi&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),Ji))}};function Qi(t){return t&&"[object Function]"==={}.toString.call(t)}function to(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function eo(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function no(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=to(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:no(eo(t))}function ro(t){return t&&t.referenceNode?t.referenceNode:t}var io=Xi&&!(!window.MSInputMethodContext||!document.documentMode),oo=Xi&&/MSIE 10/.test(navigator.userAgent);function ao(t){return 11===t?io:10===t?oo:io||oo}function so(t){if(!t)return document.documentElement;for(var e=ao(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===to(n,"position")?so(n):n:t?t.ownerDocument.documentElement:document.documentElement}function lo(t){return null!==t.parentNode?lo(t.parentNode):t}function co(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&so(a.firstElementChild)!==a?so(l):l;var c=lo(t);return c.host?co(c.host,e):co(t,lo(e).host)}function uo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function ho(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=uo(e,"top"),i=uo(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function fo(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function po(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],ao(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function bo(t){var e=t.body,n=t.documentElement,r=ao(10)&&getComputedStyle(n);return{height:po("Height",e,n,r),width:po("Width",e,n,r)}}var mo=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},vo=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=ao(10),i="HTML"===e.nodeName,o=wo(t),a=wo(e),s=no(t),l=to(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Oo({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=ho(d,e)),d}function jo(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=So(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:uo(n),s=e?0:uo(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return Oo(l)}function ko(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===to(t,"position"))return!0;var n=eo(t);return!!n&&ko(n)}function Do(t){if(!t||!t.parentElement||ao())return document.documentElement;for(var e=t.parentElement;e&&"none"===to(e,"transform");)e=e.parentElement;return e||document.documentElement}function Po(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Do(t):co(t,ro(e));if("viewport"===r)o=jo(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=no(eo(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===r?t.ownerDocument.documentElement:r;var l=So(s,a,i);if("HTML"!==s.nodeName||ko(a))o=l;else{var c=bo(t.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function To(t){return t.width*t.height}function Co(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=Po(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return go({key:t},s[t],{area:To(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function xo(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?Do(e):co(e,ro(n));return So(n,i,r)}function Fo(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function Eo(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Io(t,e,n){n=n.split("-")[0];var r=Fo(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=e[a]+e[l]/2-r[l]/2,i[s]=n===s?e[s]-r[c]:e[Eo(s)],i}function $o(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Ro(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=$o(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&Qi(n)&&(e.offsets.popper=Oo(e.offsets.popper),e.offsets.reference=Oo(e.offsets.reference),e=n(e,t))})),e}function Mo(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=xo(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Co(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Io(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Ro(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Lo(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function Vo(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Ko.indexOf(t),r=Ko.slice(n+1).concat(Ko.slice(0,n));return e?r.reverse():r}var Jo="flip",Zo="clockwise",Qo="counterclockwise";function ta(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf($o(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return Oo(s)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,r){Yo(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}var ea={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:yo({},l,o[l]),end:yo({},l,o[l]+o[c]-a[c])};t.offsets.popper=go({},a,u[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=Yo(+n)?[+n,0]:ta(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||so(t.instance.popper);t.instance.reference===n&&(n=so(n));var r=Vo("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=Po(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=l;var c=e.priority,u=t.offsets.popper,d={primary:function(t){var n=u[t];return u[t]l[t]&&!e.escapeWithReference&&(r=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),yo({},n,r)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=go({},u,d[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]o(r[s])&&(t.offsets.popper[l]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Uo(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Fo(r)[c];s[f]-pa[f]&&(t.offsets.popper[d]+=s[d]+p-a[f]),t.offsets.popper=Oo(t.offsets.popper);var b=s[d]+s[c]/2-p/2,m=to(t.instance.popper),v=parseFloat(m["margin"+u]),y=parseFloat(m["border"+u+"Width"]),g=b-t.offsets.popper[d]-v-y;return g=Math.max(Math.min(a[c]-p,g),0),t.arrowElement=r,t.offsets.arrow=(yo(n={},d,Math.round(g)),yo(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Lo(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Po(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=Eo(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Jo:a=[r,i];break;case Zo:a=Xo(r);break;case Qo:a=Xo(r,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return t;r=t.placement.split("-")[0],i=Eo(r);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,h="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)d(u.top)||"bottom"===r&&d(c.top)d(n.right),b=d(c.top)d(n.bottom),v="left"===r&&f||"right"===r&&p||"top"===r&&b||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),g=!!e.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&b||!y&&"end"===o&&m),O=!!e.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&m||!y&&"end"===o&&b),w=g||O;(h||v||w)&&(t.flipped=!0,(h||v)&&(r=a[l+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=go({},t.offsets.popper,Io(t.instance.popper,t.offsets.reference,t.placement)),t=Ro(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=Eo(e),t.offsets.popper=Oo(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Uo(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=$o(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};mo(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Zi(this.update.bind(this)),this.options=go({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(go({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){r.options.modifiers[e]=go({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return go({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&Qi(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return vo(t,[{key:"update",value:function(){return Mo.call(this)}},{key:"destroy",value:function(){return Ao.call(this)}},{key:"enableEventListeners",value:function(){return No.call(this)}},{key:"disableEventListeners",value:function(){return zo.call(this)}}]),t}();na.Utils=("undefined"!=typeof window?window:global).PopperUtils,na.placements=qo,na.Defaults=ea;function ra(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ia(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(ra(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));yt(this,t.Defaults,this.constructor.Defaults,n,{type:e}),gt(this,{type:{enumerable:!0,configurable:!1,writable:!1},cancelable:{enumerable:!0,configurable:!1,writable:!1},nativeEvent:{enumerable:!0,configurable:!1,writable:!1},target:{enumerable:!0,configurable:!1,writable:!1},relatedTarget:{enumerable:!0,configurable:!1,writable:!1},vueTarget:{enumerable:!0,configurable:!1,writable:!1},componentId:{enumerable:!0,configurable:!1,writable:!1}});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},Ot(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}var e,n,r;return e=t,r=[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}],(n=null)&&ia(e.prototype,n),r&&ia(e,r),t}(),aa=n.default.extend({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(Bn(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ve),t&&An(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ve))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&An(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ve)},beforeDestroy:function(){Bn(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ve)},methods:{isClickOut:function(t){return!bn(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}}),sa=n.default.extend({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(Bn(this.focusInElement,"focusin",this._focusInHandler,ve),t&&An(this.focusInElement,"focusin",this._focusInHandler,ve))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&An(this.focusInElement,"focusin",this._focusInHandler,ve)},beforeDestroy:function(){Bn(this.focusInElement,"focusin",this._focusInHandler,ve)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}});function la(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ca(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once(ce,this.focusToggler))},toggle:function(t){var e=t=t||{},n=e.type,r=e.keyCode;("click"===n||"keydown"===n&&-1!==[Dr,Pr,kr].indexOf(r))&&(this.disabled?this.visible=!1:(this.$emit("toggle",t),Hn(t),this.visible?this.hide(!0):this.show()))},onMousedown:function(t){Hn(t,{propagation:!1})},onKeydown:function(t){var e=t.keyCode;27===e?this.onEsc(t):e===kr?this.focusNext(t,!1):e===Tr&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,Hn(t),this.$once(ce,this.focusToggler))},onSplitClick:function(t){this.disabled?this.visible=!1:this.$emit(ie,t)},hideHandler:function(t){var e=this,n=t.target;!this.visible||bn(this.$refs.menu,n)||bn(this.toggler,n)||(this.clearHideTimeout(),this.$_hideTimeout=setTimeout((function(){return e.hide()}),this.inNavbar?300:0))},clickOutHandler:function(t){this.hideHandler(t)},focusInHandler:function(t){this.hideHandler(t)},focusNext:function(t,e){var n=this,r=t.target;!this.visible||t&&pn(".dropdown form",r)||(Hn(t),this.$nextTick((function(){var t=n.getItems();if(!(t.length<1)){var i=t.indexOf(r);e&&i>0?i--:!e&&i1&&void 0!==arguments[1]?arguments[1]:null;if(dt(t)){var n=Lt(t,this.valueField),r=Lt(t,this.textField);return{value:nt(n)?e||r:n,text:si(String(nt(r)?e:r)),html:Lt(t,this.htmlField),disabled:Boolean(Lt(t,this.disabledField))}}return{value:e||t,text:si(String(t)),disabled:!1}},normalizeOptions:function(t){var e=this;return ct(t)?t.map((function(t){return e.normalizeOption(t)})):dt(t)?(Bt('Setting prop "options" to an object is deprecated. Use the array format instead.',this.$options.name),wt(t).map((function(n){return e.normalizeOption(t[n]||{},n)}))):[]}}}),Oa=function(t,e){for(var n=0;n-1:xr(e,t)},isRadio:function(){return!1}},watch:za({},Ya,(function(t,e){xr(t,e)||this.setIndeterminate(t)})),mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{computedLocalCheckedWatcher:function(t,e){if(!xr(t,e)){this.$emit(Aa,t);var n=this.$refs.input;n&&this.$emit(Ga,n.indeterminate)}},handleChange:function(t){var e=this,n=t.target,r=n.checked,i=n.indeterminate,o=this.value,a=this.uncheckedValue,s=this.computedLocalChecked;if(ct(s)){var l=Oa(s,o);r&&l<0?s=s.concat(o):!r&&l>-1&&(s=s.slice(0,l).concat(s.slice(l+1)))}else s=r?o:a;this.computedLocalChecked=s,this.$nextTick((function(){e.$emit(re,s),e.isGroup&&e.bvGroup.$emit(re,s),e.$emit(Ga,i)}))},setIndeterminate:function(t){ct(this.computedLocalChecked)&&(t=!1);var e=this.$refs.input;e&&(e.indeterminate=t,this.$emit(Ga,t))}}}),qa="__BV_hover_handler__",Ka="mouseenter",Xa=function(t,e,n){_n(t,e,Ka,n,ve),_n(t,e,"mouseleave",n,ve)},Ja=function(t,e){var n=e.value,r=void 0===n?null:n;if(y){var i=t[qa],o=ot(i),a=!(o&&i.fn===r);o&&a&&(Xa(!1,t,i),delete t[qa]),ot(r)&&a&&(t[qa]=function(t){var e=function(e){t(e.type===Ka,e)};return e.fn=t,e}(r),Xa(!0,t,t[qa]))}},Za={bind:Ja,componentUpdated:Ja,unbind:function(t){Ja(t,{value:null})}};function Qa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ts(t){for(var e=1;e0&&(l=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":l.length>1,"justify-content-end":l.length<2}},l)]);var h=t(qi,{staticClass:"b-form-date-calendar w-100",props:as(as({},Tn(fs,o)),{},{hidden:!this.isVisible,value:e,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:kt(a,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"]),key:"calendar",ref:"calendar"},l);return t(is,{staticClass:"b-form-datepicker",props:as(as({},Tn(ps,o)),{},{formattedValue:e?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":i,"text-light":i},this.menuClass],placeholder:s,rtl:this.isRTL,value:e}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:ss({},Ve,a["button-content"]||this.defaultButtonFn),ref:"control"},[h])}}),vs=n.default.extend({computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(t){this.$refs.input.selectionStart=t}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(t){this.$refs.input.selectionEnd=t}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(t){this.$refs.input.selectionDirection=t}}},methods:{select:function(){var t;(t=this.$refs.input).select.apply(t,arguments)},setSelectionRange:function(){var t;(t=this.$refs.input).setSelectionRange.apply(t,arguments)},setRangeText:function(){var t;(t=this.$refs.input).setRangeText.apply(t,arguments)}}});function ys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gs(t){for(var e=1;e2&&void 0!==arguments[2]&&arguments[2];return t=en(t),!this.hasFormatter||this.lazyFormatter&&!n||(t=this.formatter(t,e)),t},modifyValue:function(t){return t=en(t),this.trim&&(t=t.trim()),this.number&&(t=Je(t,t)),t},updateValue:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.lazy;if(!r||n){this.clearDebounce();var i=function(){if((t=e.modifyValue(t))!==e.vModelValue)e.vModelValue=t,e.$emit(Ds,t);else if(e.hasFormatter){var n=e.$refs.input;n&&t!==n.value&&(n.value=t)}},o=this.computedDebounce;o>0&&!r&&!n?this.$_inputDebounceTimer=setTimeout(i,o):i()}},onInput:function(t){if(!t.target.composing){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Hn(t,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit(ue,n))}},onChange:function(t){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Hn(t,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit(re,n))},onBlur:function(t){var e=t.target.value,n=this.formatValue(e,t,!0);!1!==n&&(this.localValue=en(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",t)},focus:function(){this.disabled||gn(this.$el)},blur:function(){this.disabled||On(this.$el)}}}),Cs=n.default.extend({computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var t;return(t=this.$refs.input).setCustomValidity.apply(t,arguments)},checkValidity:function(){var t;return(t=this.$refs.input).checkValidity.apply(t,arguments)},reportValidity:function(){var t;return(t=this.$refs.input).reportValidity.apply(t,arguments)}}});function xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fs(t){for(var e=1;e=n?"full":e>=n-.5?"half":"empty",u={variant:o,disabled:a,readonly:s};return t("span",{staticClass:"b-rating-star",class:{focused:r&&e===n||!Xe(e)&&n===l,"b-rating-star-empty":"empty"===c,"b-rating-star-half":"half"===c,"b-rating-star-full":"full"===c},attrs:{tabindex:a||s?null:"-1"},on:{click:this.onClick}},[t("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(c,u)])])}}),Us=xn(Tt(Vs(Vs(Vs(Vs(Vs({},Vi),Hs),Dt(Sa,["required","autofocus"])),Pa),{},{color:Pn(Pe),iconClear:Pn(Pe,"x"),iconEmpty:Pn(Pe,"star"),iconFull:Pn(Pe,"star-fill"),iconHalf:Pn(Pe,"star-half"),inline:Pn(Oe,!1),locale:Pn(Fe),noBorder:Pn(Oe,!1),precision:Pn($e),readonly:Pn(Oe,!1),showClear:Pn(Oe,!1),showValue:Pn(Oe,!1),showValueMax:Pn(Oe,!1),stars:Pn($e,5,(function(t){return Xe(t)>=3})),variant:Pn(Pe)})),Wt),qs=n.default.extend({name:Wt,components:{BIconStar:fr,BIconStarHalf:br,BIconStarFill:pr,BIconX:mr},mixins:[Ai,_s,Ta],props:Us,data:function(){var t=Je(this[Ns],null),e=Ys(this.stars);return{localValue:rt(t)?null:Gs(t,0,e),hasFocus:!1}},computed:{computedStars:function(){return Ys(this.stars)},computedRating:function(){var t=Je(this.localValue,0),e=Xe(this.precision,3);return Gs(Je(t.toFixed(e)),0,this.computedStars)},computedLocale:function(){var t=Ke(this.locale).filter(Rt);return new Intl.NumberFormat(t).resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return Li(this.computedLocale)},formattedRating:function(){var t=Xe(this.precision),e=this.showValueMax,n=this.computedLocale,r={notation:"standard",minimumFractionDigits:isNaN(t)?0:t,maximumFractionDigits:isNaN(t)?3:t},i=this.computedStars.toLocaleString(n),o=this.localValue;return o=rt(o)?e?"-":"":o.toLocaleString(n,r),e?"".concat(o,"/").concat(i):o}},watch:(Is={},As(Is,Ns,(function(t,e){if(t!==e){var n=Je(t,null);this.localValue=rt(n)?null:Gs(n,0,this.computedStars)}})),As(Is,"localValue",(function(t,e){t!==e&&t!==(this.value||0)&&this.$emit(zs,t||null)})),As(Is,"disabled",(function(t){t&&(this.hasFocus=!1,this.blur())})),Is),methods:{focus:function(){this.disabled||gn(this.$el)},blur:function(){this.disabled||On(this.$el)},onKeydown:function(t){var e=t.keyCode;if(this.isInteractive&&qe([37,kr,39,Tr],e)){Hn(t,{propagation:!1});var n=Xe(this.localValue,0),r=this.showClear?0:1,i=this.computedStars,o=this.isRTL?-1:1;37===e?this.localValue=Gs(n-o,r,i)||null:39===e?this.localValue=Gs(n+o,r,i):e===kr?this.localValue=Gs(n-1,r,i)||null:e===Tr&&(this.localValue=Gs(n+1,r,i))}},onSelected:function(t){this.isInteractive&&(this.localValue=t)},onFocus:function(t){this.hasFocus=!!this.isInteractive&&"focus"===t.type},renderIcon:function(t){return this.$createElement(jr,{props:{icon:t,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(jr,{props:{icon:this.iconClear}})}},render:function(t){var e=this,n=this.disabled,r=this.readonly,i=this.name,o=this.form,a=this.inline,s=this.variant,l=this.color,c=this.noBorder,u=this.hasFocus,d=this.computedRating,h=this.computedStars,f=this.formattedRating,p=this.showClear,b=this.isRTL,m=this.isInteractive,v=this.$scopedSlots,y=[];if(p&&!n&&!r){var g=t("span",{staticClass:"b-rating-icon"},[(v["icon-clear"]||this.iconClearFn)()]);y.push(t("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:u&&0===d},attrs:{tabindex:m?"-1":null},on:{click:function(){return e.onSelected(null)}},key:"clear"},[g]))}for(var O=0;O1&&void 0!==arguments[1]?arguments[1]:null;if(dt(t)){var n=Lt(t,this.valueField),r=Lt(t,this.textField),i=Lt(t,this.optionsField,null);return rt(i)?{value:nt(n)?e||r:n,text:String(nt(r)?e:r),html:Lt(t,this.htmlField),disabled:Boolean(Lt(t,this.disabledField))}:{label:String(Lt(t,this.labelField)||r),options:this.normalizeOptions(i)}}return{value:e||t,text:String(t),disabled:!1}}}}),ol=xn({disabled:Pn(Oe,!1),value:Pn(ye,void 0,!0)},qt),al=n.default.extend({name:qt,functional:!0,props:ol,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.value;return t("option",p(r,{attrs:{disabled:n.disabled},domProps:{value:o}}),i)}});function sl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ll(t){for(var e=1;e0}}});function yl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ol="light",wl="dark",Sl=xn({variant:Pn(Pe)},"BTr"),jl=n.default.extend({name:"BTr",mixins:[Rr,Lr,Ln],provide:function(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:function(){return{}}}},inheritAttrs:!1,props:Sl,computed:{inTbody:function(){return this.bvTableRowGroup.isTbody},inThead:function(){return this.bvTableRowGroup.isThead},inTfoot:function(){return this.bvTableRowGroup.isTfoot},isDark:function(){return this.bvTableRowGroup.isDark},isStacked:function(){return this.bvTableRowGroup.isStacked},isResponsive:function(){return this.bvTableRowGroup.isResponsive},isStickyHeader:function(){return this.bvTableRowGroup.isStickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTableRowGroup.hasStickyHeader},tableVariant:function(){return this.bvTableRowGroup.tableVariant},headVariant:function(){return this.inThead?this.bvTableRowGroup.headVariant:null},footVariant:function(){return this.inTfoot?this.bvTableRowGroup.footVariant:null},isRowDark:function(){return this.headVariant!==Ol&&this.footVariant!==Ol&&(this.headVariant===wl||this.footVariant===wl||this.isDark)},trClasses:function(){var t=this.variant;return[t?"".concat(this.isRowDark?"bg":"table","-").concat(t):null]},trAttrs:function(){return function(t){for(var e=1;e0?t:null},Fl=function(t){return it(t)||xl(t)>0},El=xn({colspan:Pn($e,null,Fl),rowspan:Pn($e,null,Fl),stackedHeading:Pn(Pe),stickyColumn:Pn(Oe,!1),variant:Pn(Pe)},Qt),Il=n.default.extend({name:Qt,mixins:[Rr,Lr,Ln],inject:{bvTableTr:{default:function(){return{}}}},inheritAttrs:!1,props:El,computed:{tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return xl(this.colspan)},computedRowspan:function(){return xl(this.rowspan)},cellClasses:function(){var t=this.variant,e=this.headVariant,n=this.isStickyColumn;return(!t&&this.isStickyHeader&&!e||!t&&n&&this.inTfoot&&!this.footVariant||!t&&n&&this.inThead&&!e||!t&&n&&this.inTbody)&&(t=this.rowVariant||this.tableVariant||"b-table-default"),[t?"".concat(this.isDark?"bg":"table","-").concat(t):null,n?"b-table-sticky-column":null]},cellAttrs:function(){var t=this.stackedHeading,e=this.inThead||this.inTfoot,n=this.computedColspan,r=this.computedRowspan,i="cell",o=null;return e?(i="columnheader",o=n>0?"colspan":"col"):cn(this.tag,"th")&&(i="rowheader",o=r>0?"rowgroup":"row"),Tl(Tl({colspan:n,rowspan:r,role:i,scope:o},this.bvAttrs),{},{"data-label":this.isStackedCell&&!it(t)?en(t):null})}},render:function(t){var e=[this.normalizeSlot()];return t(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?t("div",[e]):e])}});var $l,Rl,Ml,Ll="busy",Vl=($l={},Rl=Ll,Ml=Pn(Oe,!1),Rl in $l?Object.defineProperty($l,Rl,{value:Ml,enumerable:!0,configurable:!0,writable:!0}):$l[Rl]=Ml,$l),Al=n.default.extend({props:Vl,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this.busy||this.localBusy}},watch:{localBusy:function(t,e){t!==e&&this.$emit("update:busy",t)}},methods:{stopIfBusy:function(t){return!!this.computedBusy&&(Hn(t),!0)},renderBusy:function(){var t=this.tbodyTrClass,e=this.tbodyTrAttr,n=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(Ne)?n(jl,{staticClass:"b-table-busy-slot",class:[ot(t)?t(null,Ne):t],attrs:ot(e)?e(null,Ne):e,key:"table-busy-slot"},[n(Il,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(Ne)])]):null}}}),Bl={caption:Pn(Pe),captionHtml:Pn(Pe)},_l=n.default.extend({props:Bl,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.caption,e=this.captionHtml,n=this.$createElement,r=n(),i=this.hasNormalizedSlot(ze);return(i||t||e)&&(r=n("caption",{attrs:{id:this.captionId},domProps:i?{}:li(e,t),key:"caption",ref:"caption"},this.normalizeSlot(ze))),r}}}),Hl=n.default.extend({methods:{renderColgroup:function(){var t=this.computedFields,e=this.$createElement,n=e();return this.hasNormalizedSlot(Ye)&&(n=e("colgroup",{key:"colgroup"},[this.normalizeSlot(Ye,{columns:t.length,fields:t})])),n}}}),Nl={emptyFilteredHtml:Pn(Pe),emptyFilteredText:Pn(Pe,"There are no records matching your request"),emptyHtml:Pn(Pe),emptyText:Pn(Pe,"There are no records to show"),showEmpty:Pn(Oe,!1)},zl=n.default.extend({props:Nl,methods:{renderEmpty:function(){var t=this.computedItems,e=this.$createElement,n=e();if(this.showEmpty&&(!t||0===t.length)&&(!this.computedBusy||!this.hasNormalizedSlot(Ne))){var r=this.computedFields,i=this.isFiltered,o=this.emptyText,a=this.emptyHtml,s=this.emptyFilteredText,l=this.emptyFilteredHtml,c=this.tbodyTrClass,u=this.tbodyTrAttr;(n=this.normalizeSlot(i?"emptyfiltered":"empty",{emptyFilteredHtml:l,emptyFilteredText:s,emptyHtml:a,emptyText:o,fields:r,items:t}))||(n=e("div",{class:["text-center","my-2"],domProps:i?li(l,s):li(a,o)})),n=e(Il,{props:{colspan:r.length||null}},[e("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=e(jl,{staticClass:"b-table-empty-row",class:[ot(c)?c(null,"row-empty"):c],attrs:ot(u)?u(null,"row-empty"):u,key:i?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}}),Yl=function t(e){return it(e)?"":ut(e)&&!ht(e)?wt(e).sort().map((function(n){return t(e[n])})).filter((function(t){return!!t})).join(" "):en(e)};function Gl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wl(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:{},i=wt(r).reduce((function(e,n){var i=r[n],o=i.filterByFormatted,a=ot(o)?o:o?i.formatter:null;return ot(a)&&(e[n]=a(t[n],n,t)),e}),jt(t)),o=wt(i).filter((function(t){return!(Jl[t]||ct(e)&&e.length>0&&qe(e,t)||ct(n)&&n.length>0&&!qe(n,t))}));return kt(i,o)};function tc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&Bt('Prop "filter-debounce" is deprecated. Use the debounce feature of "" instead.',Zt),t},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){return{filteredItems:this.filteredItems,localItems:this.localItems,localFilter:this.localFilter}},localFilterFn:function(){var t=this.filterFunction;return En(t)?t:null},filteredItems:function(){var t=this.localItems,e=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,e)||this.defaultFilterFnFactory(e):null;return n&&t.length>0?t.filter(n):t}},watch:{computedFilterDebounce:function(t){!t&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(t){var e=this,n=this.computedFilterDebounce;this.clearFilterTimer(),n&&n>0?this.$_filterTimer=setTimeout((function(){e.localFilter=e.filterSanitize(t)}),n):this.localFilter=this.filterSanitize(t)}},filteredCheck:function(t){var e=t.filteredItems,n=t.localFilter,r=!1;n?xr(n,[])||xr(n,{})?r=!1:n&&(r=!0):r=!1,r&&this.$emit(se,e,e.length),this.isFiltered=r},isFiltered:function(t,e){if(!1===t&&!0===e){var n=this.localItems;this.$emit(se,n,n.length)}}},created:function(){var t=this;this.$_filterTimer=null,this.$nextTick((function(){t.isFiltered=Boolean(t.localFilter)}))},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(t){return!this.localFiltering||this.localFilterFn||st(t)||pt(t)?$t(t):""},filterFnFactory:function(t,e){if(!t||!ot(t)||!e||xr(e,[])||xr(e,{}))return null;return function(n){return t(n,e)}},defaultFilterFnFactory:function(t){var e=this;if(!t||!st(t)&&!pt(t))return null;var n,r=t;if(st(r)){var i=(n=t,n.replace(E,"\\$&")).replace(I,"\\s+");r=new RegExp(".*".concat(i,".*"),"i")}return function(t){return r.lastIndex=0,r.test((n=t,i=e.computedFilterIgnored,o=e.computedFilterIncluded,a=e.computedFieldsObj,ut(n)?Yl(Ql(n,i,o,a)):""));var n,i,o,a}}}}),ic=function(t,e){var n=[];if(ct(t)&&t.filter(Rt).forEach((function(t){if(st(t))n.push({key:t,label:tn(t)});else if(ut(t)&&t.key&&st(t.key))n.push(jt(t));else if(ut(t)&&1===wt(t).length){var e=wt(t)[0],r=function(t,e){var n=null;return st(e)?n={key:t,label:e}:ot(e)?n={key:t,formatter:e}:ut(e)?(n=jt(e)).key=n.key||t:!1!==e&&(n={key:t}),n}(e,t[e]);r&&n.push(r)}})),0===n.length&&ct(e)&&e.length>0){var r=e[0];wt(r).forEach((function(t){Jl[t]||n.push({key:t,label:tn(t)})}))}var i={};return n.filter((function(t){return!i[t.key]&&(i[t.key]=!0,t.label=st(t.label)?t.label:tn(t.key),!0)}))};function oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e0&&t.some(Rt)},selectableIsMultiSelect:function(){return this.isSelectable&&qe(["range","multi"],this.selectMode)},selectableTableClasses:function(){var t,e=this.isSelectable;return wc(t={"b-table-selectable":e},"b-table-select-".concat(this.selectMode),e),wc(t,"b-table-selecting",this.selectableHasSelection),wc(t,"b-table-selectable-no-click",e&&!this.hasSelectableRowClick),t},selectableTableAttrs:function(){return{"aria-multiselectable":this.isSelectable?this.selectableIsMultiSelect?"true":"false":null}}},watch:{computedItems:function(t,e){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=ct(t)&&ct(e)&&t.length===e.length;for(var r=0;n&&r=0&&t0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?function(t,e){var n=ot(e)?e:function(){return e};return Array.apply(null,{length:t}).map(n)}(t,!0):[!0])},isRowSelected:function(t){return!(!lt(t)||!this.selectedRows[t])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(t){if(this.isSelectable&&this.isRowSelected(t)){var e=this.selectedVariant;return wc({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(e),e)}return{}},selectableRowAttrs:function(t){return{"aria-selected":this.isSelectable?this.isRowSelected(t)?"true":"false":null}},setSelectionHandlers:function(t){var e=t&&!this.noSelectOnClick?"$on":"$off";this[e](he,this.selectionHandler),this[e](se,this.clearSelected),this[e](ae,this.clearSelected)},selectionHandler:function(t,e,n){if(this.isSelectable&&!this.noSelectOnClick){var r=this.selectMode,i=this.selectedLastRow,o=this.selectedRows.slice(),a=!o[e];if("single"===r)o=[];else if("range"===r)if(i>-1&&n.shiftKey){for(var s=Yn(i,e);s<=Gn(i,e);s++)o[s]=!0;a=!0}else n.ctrlKey||n.metaKey||(o=[],a=!0),this.selectedLastRow=a?e:-1;o[e]=a,this.selectedRows=o}else this.clearSelected()}}}),Tc=function(t){return it(t)?"":function(t){return F.test(String(t))}(t)?Je(t,t):t};function Cc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xc(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=n.sortBy,i=void 0===r?null:r,o=n.formatter,a=void 0===o?null:o,s=n.locale,l=void 0===s?void 0:s,c=n.localeOptions,u=void 0===c?{}:c,d=n.nullLast,h=void 0!==d&&d,f=Lt(t,i,null),p=Lt(e,i,null);return ot(a)&&(f=a(f,i,t),p=a(p,i,e)),f=Tc(f),p=Tc(p),ht(f)&&ht(p)||lt(f)&<(p)?fp?1:0:h&&""===f&&""!==p?1:h&&""!==f&&""===p?-1:Yl(f).localeCompare(Yl(p),l,u)}(t,a,{sortBy:e,formatter:u,locale:r,localeOptions:l,nullLast:i})),(s||0)*(n?-1:1)},s.map((function(t,e){return[e,t]})).sort(function(t,e){return this(t[1],e[1])||t[0]-e[0]}.bind(t)).map((function(t){return t[1]}))}return s}},watch:(jc={isSortable:function(t){t?this.isSortable&&this.$on(le,this.handleSort):this.$off(le,this.handleSort)}},Fc(jc,Ic,(function(t){t!==this.localSortDesc&&(this.localSortDesc=t||!1)})),Fc(jc,Ec,(function(t){t!==this.localSortBy&&(this.localSortBy=t||"")})),Fc(jc,"localSortDesc",(function(t,e){t!==e&&this.$emit("update:sortDesc",t)})),Fc(jc,"localSortBy",(function(t,e){t!==e&&this.$emit("update:sortBy",t)})),jc),created:function(){this.isSortable&&this.$on(le,this.handleSort)},methods:{handleSort:function(t,e,n,r){var i=this;if(this.isSortable&&(!r||!this.noFooterSorting)){var o=!1,a=function(){var t=e.sortDirection||i.sortDirection;t===$c?i.localSortDesc=!1:t===Rc&&(i.localSortDesc=!0)};if(e.sortable){var s=!this.localSorting&&e.sortKey?e.sortKey:t;this.localSortBy===s?this.localSortDesc=!this.localSortDesc:(this.localSortBy=s,a()),o=!0}else this.localSortBy&&!this.noSortReset&&(this.localSortBy="",a(),o=!0);o&&this.$emit("sort-changed",this.context)}},sortTheadThClasses:function(t,e,n){return{"b-table-sort-icon-left":e.sortable&&this.sortIconLeft&&!(n&&this.noFooterSorting)}},sortTheadThAttrs:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return{};var r=e.sortable;return{"aria-sort":r&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":r?"none":null}},sortTheadThLabel:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return null;var r="";if(e.sortable)if(this.localSortBy===t)r=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{r=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var i=this.sortDirection||e.sortDirection;i===$c?r=this.labelSortAsc:i===Rc&&(r=this.labelSortDesc)}else this.noSortReset||(r=this.localSortBy?this.labelSortClear:"");return nn(r)||null}}});var Ac={stacked:Pn(Ee,!1)},Bc=n.default.extend({props:Ac,computed:{isStacked:function(){var t=this.stacked;return""===t||t},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){var t=this.isStackedAlways;return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({"b-table-stacked":t},"b-table-stacked-".concat(this.stacked),!t&&this.isStacked)}}});function _c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hc(t){for(var e=1;e0&&!this.computedBusy,[this.tableClass,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},e?"".concat(this.dark?"bg":"table","-").concat(e):"",this.stackedTableClasses,this.selectableTableClasses]},tableAttrs:function(){var t=this.computedItems,e=this.filteredItems,n=this.computedFields,r=this.selectableTableAttrs,i=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":en(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null};return Hc(Hc(Hc({"aria-rowcount":t&&e&&e.length>t.length?en(e.length):null},this.bvAttrs),{},{id:this.safeId(),role:"table"},i),r)}},render:function(t){var e=this.wrapperClasses,n=this.renderCaption,r=this.renderColgroup,i=this.renderThead,o=this.renderTbody,a=this.renderTfoot,s=[];this.isTableSimple?s.push(this.normalizeSlot()):(s.push(n?n():null),s.push(r?r():null),s.push(i?i():null),s.push(o?o():null),s.push(a?a():null));var l=t("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},s.filter(Rt));return e.length>0?t("div",{class:e,style:this.wrapperStyles,key:"wrap"},[l]):l}});function Gc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wc(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:document,e=yn();return!!(e&&""!==e.toString().trim()&&e.containsNode&&ln(t))&&e.containsNode(t,!0)},Qc=xn(El,"BTh"),tu=n.default.extend({name:"BTh",extends:Il,props:Qc,computed:{tag:function(){return"th"}}});function eu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nu(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(v=String((a-1)*s+e+1));var y=en(Lt(t,o))||null,g=y||en(e),O=y?this.safeId("_row_".concat(y)):null,w=this.selectableRowClasses?this.selectableRowClasses(e):{},S=this.selectableRowAttrs?this.selectableRowAttrs(e):{},j=ot(l)?l(t,"row"):l,k=ot(c)?c(t,"row"):c;if(p.push(u(jl,{class:[j,w,h?"b-table-has-details":""],props:{variant:t[Kl]||null},attrs:nu(nu({id:O},k),{},{tabindex:f?"0":null,"data-pk":y||null,"aria-details":b,"aria-owns":b,"aria-rowindex":v},S),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(g,"__"),ref:"item-rows",refInFor:!0},m)),h){var D={item:t,index:e,fields:r,toggleDetails:this.toggleDetailsFactory(d,t)};this.supportsSelectableRows&&(D.rowSelected=this.isRowSelected(e),D.selectRow=function(){return n.selectRow(e)},D.unselectRow=function(){return n.unselectRow(e)});var P=u(Il,{props:{colspan:r.length},class:this.detailsTdClass},[this.normalizeSlot(He,D)]);i&&p.push(u("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(g)}));var T=ot(this.tbodyTrClass)?this.tbodyTrClass(t,He):this.tbodyTrClass,C=ot(this.tbodyTrAttr)?this.tbodyTrAttr(t,He):this.tbodyTrAttr;p.push(u(jl,{staticClass:"b-table-details",class:[T],props:{variant:t[Kl]||null},attrs:nu(nu({},C),{},{id:b,tabindex:"-1"}),key:"__b-table-details__".concat(g)},[P]))}else d&&(p.push(u()),i&&p.push(u()));return p}}});function su(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lu(t){for(var e=1;e0&&n&&n.length>0?Ue(e.children).filter((function(t){return qe(n,t)})):[]},getTbodyTrIndex:function(t){if(!ln(t))return-1;var e="TR"===t.tagName?t:pn("tr",t,!0);return e?this.getTbodyTrs().indexOf(e):-1},emitTbodyRowEvent:function(t,e){if(t&&this.hasListener(t)&&e&&e.target){var n=this.getTbodyTrIndex(e.target);if(n>-1){var r=this.computedItems[n];this.$emit(t,r,n,e)}}},tbodyRowEvtStopped:function(t){return this.stopIfBusy&&this.stopIfBusy(t)},onTbodyRowKeydown:function(t){var e=t.target,n=t.keyCode;if(!this.tbodyRowEvtStopped(t)&&"TR"===e.tagName&&un(e)&&0===e.tabIndex)if(qe([Dr,Pr],n))Hn(t),this.onTBodyRowClicked(t);else if(qe([Tr,kr,36,35],n)){var r=this.getTbodyTrIndex(e);if(r>-1){Hn(t);var i=this.getTbodyTrs(),o=t.shiftKey;36===n||o&&n===Tr?gn(i[0]):35===n||o&&n===kr?gn(i[i.length-1]):n===Tr&&r>0?gn(i[r-1]):n===kr&&rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],n=this.computedFields,r=this.isSortable,i=this.isSelectable,o=this.headVariant,a=this.footVariant,s=this.headRowVariant,l=this.footRowVariant,c=this.$createElement;if(this.isStackedAlways||0===n.length)return c();var u=r||this.hasListener(le),d=i?this.selectAllRows:Ki,h=i?this.clearSelected:Ki,f=function(n,i){var o=n.label,a=n.labelHtml,s=n.variant,l=n.stickyColumn,f=n.key,p=null;n.label.trim()||n.headerTitle||(p=tn(n.key));var b={};u&&(b.click=function(r){t.headClicked(r,n,e)},b.keydown=function(r){var i=r.keyCode;i!==Dr&&i!==Pr||t.headClicked(r,n,e)});var m=r?t.sortTheadThAttrs(f,n,e):{},v=r?t.sortTheadThClasses(f,n,e):null,y=r?t.sortTheadThLabel(f,n,e):null,g={class:[t.fieldClasses(n),v],props:{variant:s,stickyColumn:l},style:n.thStyle||{},attrs:Tu(Tu({tabindex:u&&n.sortable?"0":null,abbr:n.headerAbbr||null,title:n.headerTitle||null,"aria-colindex":i+1,"aria-label":p},t.getThValues(null,f,n.thAttr,e?"foot":"head",{})),m),on:b,key:f},O=[xu(f),xu(f.toLowerCase()),xu()];e&&(O=[Fu(f),Fu(f.toLowerCase()),Fu()].concat(ku(O)));var w={label:o,column:f,field:n,isFoot:e,selectAllRows:d,clearSelected:h},S=t.normalizeSlot(O,w)||c("div",{domProps:li(a,o)}),j=y?c("span",{staticClass:"sr-only"}," (".concat(y,")")):null;return c(tu,g,[S,j].filter(Rt))},p=n.map(f).filter(Rt),b=[];if(e)b.push(c(jl,{class:this.tfootTrClass,props:{variant:it(l)?s:l}},p));else{var m={columns:n.length,fields:n,selectAllRows:d,clearSelected:h};b.push(this.normalizeSlot(Ge,m)||c()),b.push(c(jl,{class:this.theadTrClass,props:{variant:s}},p))}return c(e?vu:ju,{class:(e?this.tfootClass:this.theadClass)||null,props:e?{footVariant:a||o||null}:{headVariant:o||null},key:e?"bv-tfoot":"bv-thead"},b)}}}),$u=n.default.extend({methods:{renderTopRow:function(){var t=this.computedFields,e=this.stacked,n=this.tbodyTrClass,r=this.tbodyTrAttr,i=this.$createElement;return this.hasNormalizedSlot(We)&&!0!==e&&""!==e?i(jl,{staticClass:"b-table-top-row",class:[ot(n)?n(null,"row-top"):n],attrs:ot(r)?r(null,"row-top"):r,key:"b-top-row"},[this.normalizeSlot(We,{columns:t.length,fields:t})]):i()}}});function Ru(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mu(t){for(var e=1;efunction(t,e){const n=Hu?e.media||"default":t,r=Yu[n]||(Yu[n]={ids:new Set,styles:[]});if(!r.ids.has(t)){r.ids.add(t);let n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",e.media&&r.element.setAttribute("media",e.media),void 0===zu&&(zu=document.head||document.getElementsByTagName("head")[0]),zu.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(n),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{const t=r.ids.size-1,e=document.createTextNode(n),i=r.element.childNodes;i[t]&&r.element.removeChild(i[t]),i.length?r.element.insertBefore(e,i[t]):r.element.appendChild(e)}}}(t,e)}let zu;const Yu={};var Gu=_u({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-table",t._g(t._b({directives:[{name:"click-outside",rawName:"v-click-outside",value:t.handleClickOut,expression:"handleClickOut"}],attrs:{items:t.tableItems},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,n){return{key:n,fn:function(e){return[t._t(n,null,null,e)]}}})),t._l(t.fields,(function(e,r){return{key:"cell("+e.key+")",fn:function(i){return["date"===e.type&&t.tableItems[i.index].isEdit&&t.selectedCell===e.key&&e.editable?n("b-form-datepicker",t._b({directives:[{name:"focus",rawName:"v-focus",value:"date",expression:"'date'"}],key:r,attrs:{type:e.type,value:t.tableItems[i.index][e.key]},on:{input:function(n){return t.inputHandler(n,i,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,r,i)}}},"b-form-datepicker",Object.assign({},e),!1)):"select"===e.type&&t.tableItems[i.index].isEdit&&t.selectedCell===e.key&&e.editable?n("b-form-select",t._b({directives:[{name:"focus",rawName:"v-focus"}],key:r,attrs:{value:t.tableItems[i.index][e.key]},on:{change:function(n){return t.inputHandler(n,i,e.key,e.options)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,r,i)}}},"b-form-select",Object.assign({},e),!1)):"checkbox"===e.type&&t.tableItems[i.index].isEdit&&t.selectedCell===e.key&&e.editable?n("b-form-checkbox",t._b({directives:[{name:"focus",rawName:"v-focus",value:"checkbox",expression:"'checkbox'"}],key:r,attrs:{checked:t.tableItems[i.index][e.key]},on:{change:function(n){return t.inputHandler(n,i,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,r,i)}}},"b-form-checkbox",Object.assign({},e),!1)):"rating"===e.type&&e.type&&t.tableItems[i.index].isEdit&&t.selectedCell===e.key&&e.editable?n("b-form-rating",t._b({directives:[{name:"focus",rawName:"v-focus"}],key:r,attrs:{type:e.type,value:t.tableItems[i.index][e.key]},on:{keydown:function(e){return t.handleKeydown(e,r,i)},change:function(n){return t.inputHandler(n,i,e.key)}}},"b-form-rating",Object.assign({},e),!1)):e.type&&t.tableItems[i.index].isEdit&&t.selectedCell===e.key&&e.editable?n("b-form-input",t._b({directives:[{name:"focus",rawName:"v-focus"}],key:r,attrs:{type:e.type,value:t.tableItems[i.index][e.key]},on:{keydown:function(e){return t.handleKeydown(e,r,i)},input:function(n){return t.inputHandler(n,i,e.key)}}},"b-form-input",Object.assign({},e),!1)):n("div",{key:r,staticClass:"data-cell",on:{click:function(n){return t.handleEditCell(n,i.index,e.key)}}},[t.$scopedSlots["cell("+e.key+")"]?t._t("cell("+e.key+")",null,null,i):[t._v(t._s(t.getValue(i,e)))]],2)]}}}))],null,!0)},"b-table",Object.assign({},t.$props,t.$attrs),!1),t.handleListeners(t.$listeners)))},staticRenderFns:[]},(function(t){t&&t("data-v-87d2cda4_0",{source:"table.b-table{width:unset}table.b-table td{padding:0}.data-cell{display:flex;width:100%;height:100%}",map:void 0,media:void 0})}),Bu,undefined,false,undefined,!1,Nu,void 0,void 0),Wu=function(){var t=Gu;return t.install=function(e){e.component("BEditableTable",t)},t}(),Uu=Object.freeze({__proto__:null,default:Wu});return Object.entries(Uu).forEach((function(t){var e=a(t,2),n=e[0],r=e[1];"default"!==n&&(Wu[n]=r)})),Wu}(Vue); \ No newline at end of file +var BEditableTable=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n]+)>)/gi,C=/\B([A-Z])/g,x=/([a-z])([A-Z])/g,F=/^[0-9]*\.?[0-9]+$/,E=/[-/\\^$*+?.()|[\]{}]/g,I=/[\s\uFEFF\xA0]+/g,$=/(\s|^)(\w)/g,R=/_/g,M=/-(\w)/g,L=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,V=/-|\s|T/,A=/%2C/g,B=/[!'()*]/g,_=/^BIcon/,H=/-u-.+/;function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&X(t,e)}function G(t){var e=K();return function(){var n,r=J(t);if(e){var i=J(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==N(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(t){var e="function"==typeof Map?new Map:void 0;return(U=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return q(t,arguments,J(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),X(r,t)})(t)}function q(t,e,n){return(q=K()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&X(i,n.prototype),i}).apply(null,arguments)}function K(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function X(t,e){return(X=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function J(t){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Z=b?g.Element:function(t){Y(n,t);var e=G(n);function n(){return z(this,n),e.apply(this,arguments)}return n}(U(Object)),Q=b?g.HTMLElement:function(t){Y(n,t);var e=G(n);function n(){return z(this,n),e.apply(this,arguments)}return n}(Z);function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}b&&g.SVGElement,b&&g.File;var et=function(t){return tt(t)},nt=function(t){return void 0===t},rt=function(t){return null===t},it=function(t){return nt(t)||rt(t)},ot=function(t){return"function"===et(t)},at=function(t){return"boolean"===et(t)},st=function(t){return"string"===et(t)},lt=function(t){return"number"===et(t)},ct=function(t){return Array.isArray(t)},ut=function(t){return null!==t&&"object"===tt(t)},dt=function(t){return"[object Object]"===Object.prototype.toString.call(t)},ht=function(t){return t instanceof Date},ft=function(t){return t instanceof Event},pt=function(t){return"RegExp"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)};function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mt(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:e;return ct(e)?e.reduce((function(e,n){return[].concat(Et(e),[t(n,n)])}),[]):dt(e)?wt(e).reduce((function(n,r){return xt(xt({},n),{},Ft({},r,t(e[r],e[r])))}),{}):n},Rt=function(t){return t},Mt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!(e=ct(e)?e.join("."):e)||!ut(t))return n;if(e in t)return t[e];var r=(e=String(e).replace(k,".$1")).split(".").filter(Rt);return 0===r.length?n:r.every((function(e){return ut(t)&&e in t&&!it(t=t[e])}))?t:rt(t)?null:n},Lt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Mt(t,e);return it(r)?n:r},Vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="undefined"!=typeof process&&process&&process.env||{};return t?n[t]||e:n},At=function(){return Vt("BOOTSTRAP_VUE_NO_WARN")||"production"===Vt("NODE_ENV")},Bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;At()||console.warn("[BootstrapVue warn]: ".concat(e?"".concat(e," - "):"").concat(t))},_t="BButton",Ht="BCalendar",Nt="BDropdown",zt="BFormCheckbox",Yt="BFormDatepicker",Gt="BFormInput",Wt="BFormRating",Ut="BFormSelect",qt="BFormSelectOption",Kt="BFormSelectOptionGroup",Xt="BIcon",Jt="BLink",Zt="BTable",Qt="BTableCell",te="BTbody",ee="BTfoot",ne="BThead",re="change",ie="click",oe="context",ae="context-changed",se="filtered",le="head-clicked",ce="hidden",ue="input",de="refreshed",he="row-clicked",fe="selected",pe="shown",be="hook:beforeDestroy",me="bv",ve={passive:!0,capture:!1},ye=void 0,ge=Array,Oe=Boolean,we=Date,Se=Function,je=Number,ke=Object,De=RegExp,Pe=String,Te=[ge,Se],Ce=[ge,ke],xe=[ge,ke,Pe],Fe=[ge,Pe],Ee=[Oe,Pe],Ie=[we,Pe],$e=[je,Pe],Re=[ke,Se],Me=[ke,Pe],Le="bottom-row",Ve="button-content",Ae="custom-foot",Be="default",_e="first",He="row-details",Ne="table-busy",ze="table-caption",Ye="table-colgroup",Ge="thead-top",We="top-row",Ue=function(){return Array.from.apply(Array,arguments)},qe=function(t,e){return-1!==t.indexOf(e)},Ke=function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseInt(t,10);return isNaN(n)?e:n},Je=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseFloat(t);return isNaN(n)?e:n},Ze=function(t){return t.replace(C,"-$1").toLowerCase()},Qe=function(t){return(t=Ze(t).replace(M,(function(t,e){return e?e.toUpperCase():""}))).charAt(0).toUpperCase()+t.slice(1)},tn=function(t){return t.replace(R," ").replace(x,(function(t,e,n){return e+" "+n})).replace($,(function(t,e,n){return e+n.toUpperCase()}))},en=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return it(t)?"":ct(t)||dt(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,e):String(t)},nn=function(t){return en(t).trim()},rn=Z.prototype,on=rn.matches||rn.msMatchesSelector||rn.webkitMatchesSelector,an=rn.closest||function(t){var e=this;do{if(fn(e,t))return e;e=e.parentElement||e.parentNode}while(!rt(e)&&e.nodeType===Node.ELEMENT_NODE);return null},sn=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.msRequestAnimationFrame||g.oRequestAnimationFrame||function(t){return setTimeout(t,16)};g.MutationObserver||g.WebKitMutationObserver||g.MozMutationObserver;var ln=function(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE)},cn=function(t,e){return en(t).toLowerCase()===en(e).toLowerCase()},un=function(t){return ln(t)&&t===function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=O.activeElement;return e&&!t.some((function(t){return t===e}))?e:null}()},dn=function(t){if(!ln(t)||!t.parentNode||!bn(O.body,t))return!1;if("none"===mn(t,"display"))return!1;var e=vn(t);return!!(e&&e.height>0&&e.width>0)},hn=function(t,e){return(ln(e)?e:O).querySelector(t)||null},fn=function(t,e){return!!ln(t)&&on.call(t,e)},pn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!ln(e))return null;var r=an.call(e,t);return n?r:r===e?null:r},bn=function(t,e){return!(!t||!ot(t.contains))&&t.contains(e)},mn=function(t,e){return e&&ln(t)&&t.style[e]||null},vn=function(t){return ln(t)?t.getBoundingClientRect():null},yn=function(){return g.getSelection?g.getSelection():null},gn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t.focus(e)}catch(t){}return un(t)},On=function(t){try{t.blur()}catch(t){}return!un(t)},wn=n.default.prototype,Sn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=wn.$bvConfig;return n?n.getConfigValue(t,e):$t(e)};function jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kn(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:ye,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=!0===n;return r=i?r:n,kn(kn(kn({},t?{type:t}:{}),i?{required:i}:nt(e)?{}:{default:ut(e)?function(){return e}:e}),nt(r)?{}:{validator:r})},Tn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rt;return(ct(t)?t.slice():wt(t)).reduce((function(t,r){return t[n(r)]=e[r],t}),{})},Cn=function(t,e,n){return kn(kn({},$t(t)),{},{default:function(){var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return e?Sn("".concat(t,".").concat(e),n):Sn(t,{})}(n,e,t.default);return ot(r)?r():r}})},xn=function(t,e){return wt(t).reduce((function(n,r){return kn(kn({},n),{},Dn({},r,Cn(t[r],r,e)))}),{})},Fn=Cn({},"","").default.name,En=function(t){return ot(t)&&t.name!==Fn};function In(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.type,i=void 0===r?ye:r,o=e.defaultValue,a=void 0===o?void 0:o,s=e.validator,l=void 0===s?void 0:s,c=e.event,u=void 0===c?ue:c,d=In({},t,Pn(i,a,l)),h=n.default.extend({model:{prop:t,event:u},props:d});return{mixin:h,props:d,prop:t,event:u}},Rn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(t=Ke(t).filter(Rt)).some((function(t){return e[t]||n[t]}))},Mn=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=Ke(t).filter(Rt);for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:Be,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$scopedSlots,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$slots;return Rn(t,e,n)},normalizeSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,i=Mn(t,e,n,r);return i?Ke(i):i}}}),Vn=function(t){return j?ut(t)?t:{capture:!!t||!1}:!!(ut(t)?t.capture:t)},An=function(t,e,n,r){t&&t.addEventListener&&t.addEventListener(e,n,Vn(r))},Bn=function(t,e,n,r){t&&t.removeEventListener&&t.removeEventListener(e,n,Vn(r))},_n=function(t){for(var e=t?An:Bn,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventDefault,r=void 0===n||n,i=e.propagation,o=void 0===i||i,a=e.immediatePropagation,s=void 0!==a&&a;r&&t.preventDefault(),o&&t.stopPropagation(),s&&t.stopImmediatePropagation()},Nn=function(t){return Ze(t.replace(D,""))},zn=function(t,e){return[me,Nn(t),e].join("::")},Yn=Math.min,Gn=Math.max,Wn=function(t){return"%"+t.charCodeAt(0).toString(16)},Un=function(t){return encodeURIComponent(en(t)).replace(B,Wn).replace(A,",")},qn=function(t){if(!dt(t))return"";var e=wt(t).map((function(e){var n=t[e];return nt(n)?"":rt(n)?Un(e):ct(n)?n.reduce((function(t,n){return rt(n)?t.push(Un(e)):nt(n)||t.push(Un(e)+"="+Un(n)),t}),[]).join("&"):Un(e)+"="+Un(n)})).filter((function(t){return t.length>0})).join("&");return e?"?".concat(e):""},Kn=function(t){return!(!t||cn(t,"a"))};function Xn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jn={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},Zn={width:null,height:null,focusable:null,role:null,"aria-label":null},Qn={animation:Pn(Pe),content:Pn(Pe),flipH:Pn(Oe,!1),flipV:Pn(Oe,!1),fontScale:Pn($e,1),rotate:Pn($e,0),scale:Pn($e,1),shiftH:Pn($e,0),shiftV:Pn($e,0),stacked:Pn(Oe,!1),title:Pn(Pe),variant:Pn(Pe)},tr=n.default.extend({name:"BIconBase",functional:!0,props:Qn,render:function(t,e){var n,r=e.data,i=e.props,o=e.children,a=i.animation,s=i.content,l=i.flipH,c=i.flipV,u=i.stacked,d=i.title,h=i.variant,f=Gn(Je(i.fontScale,1),0)||1,b=Gn(Je(i.scale,1),0)||1,m=Je(i.rotate,0),v=Je(i.shiftH,0),y=Je(i.shiftV,0),g=l||c||1!==b,O=g||m,w=v||y,S=!it(s),j=t("g",{attrs:{transform:[O?"translate(8 8)":null,g?"scale(".concat((l?-1:1)*b," ").concat((c?-1:1)*b,")"):null,m?"rotate(".concat(m,")"):null,O?"translate(-8 -8)":null].filter(Rt).join(" ")||null},domProps:S?{innerHTML:s||""}:{}},o);w&&(j=t("g",{attrs:{transform:"translate(".concat(16*v/16," ").concat(-16*y/16,")")}},[j])),u&&(j=t("g",[j]));var k=[d?t("title",d):null,j].filter(Rt);return t("svg",p({staticClass:"b-icon bi",class:(n={},Xn(n,"text-".concat(h),h),Xn(n,"b-icon-animation-".concat(a),a),n),attrs:Jn,style:u?{}:{fontSize:1===f?null:"".concat(100*f,"%")}},r,u?{attrs:Zn}:{},{attrs:{xmlns:u?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),k)}});function er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nr(t){for(var e=1;e'),sr=ir("CalendarFill",''),lr=ir("ChevronBarLeft",''),cr=ir("ChevronDoubleLeft",''),ur=ir("ChevronDown",''),dr=ir("ChevronLeft",''),hr=ir("CircleFill",''),fr=ir("Star",''),pr=ir("StarFill",''),br=ir("StarHalf",''),mr=ir("X",'');function vr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yr(t){for(var e=1;e1?n-1:0),i=1;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=t.rel;return"_blank"===e&&rt(n)?"noopener":n||null}({target:this.target,rel:this.rel})},computedHref:function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.href,n=t.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(e)return e;if(Kn(r))return null;if(st(n))return n||o;if(dt(n)&&(n.path||n.query||n.hash)){var a=en(n.path),s=qn(n.query),l=en(n.hash);return l=l&&"#"!==l.charAt(0)?"#".concat(l):l,"".concat(a).concat(s).concat(l)||o}return i}({to:this.to,href:this.href},this.computedTag)},computedProps:function(){var t=this.prefetch;return this.isRouterLink?_r(_r({},Tn(_r(_r({},zr),Yr),this)),{},{prefetch:at(t)?t:void 0,tag:this.routerTag}):{}},computedAttrs:function(){var t=this.bvAttrs,e=this.computedHref,n=this.computedRel,r=this.disabled,i=this.target,o=this.routerTag,a=this.isRouterLink;return _r(_r(_r(_r({},t),e?{href:e}:{}),a&&!cn(o,"a")?{}:{rel:n,target:i}),{},{tabindex:r?"-1":nt(t.tabindex)?null:t.tabindex,"aria-disabled":r?"true":null})},computedListeners:function(){return _r(_r({},this.bvListeners),{},{click:this.onClick})}},methods:{onClick:function(t){var e=arguments,n=ft(t),r=this.isRouterLink,i=this.bvListeners.click;n&&this.disabled?Hn(t,{immediatePropagation:!0}):(r&&t.currentTarget.__vue__&&t.currentTarget.__vue__.$emit(ie,t),Ke(i).filter((function(t){return ot(t)})).forEach((function(t){t.apply(void 0,Vr(e))})),this.emitOnRoot(Nr,t),this.emitOnRoot("clicked::link",t)),n&&!r&&"#"===this.computedHref&&Hn(t,{propagation:!1})},focus:function(){gn(this.$el)},blur:function(){On(this.$el)}},render:function(t){var e=this.active,n=this.disabled;return t(this.computedTag,Hr({class:{active:e,disabled:n},attrs:this.computedAttrs,props:this.computedProps},this.isRouterLink?"nativeOn":"on",this.computedListeners),this.normalizeSlot())}});function Ur(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qr(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(T,"")},li=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}},ci="gregory",ui="long",di="short",hi="2-digit",fi="numeric";function pi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return bi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t=wi(t),e=wi(e)||t,n=wi(n)||t,t?tn?n:t:null},Mi=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(t){return t.toLowerCase()})),Li=function(t){var e=en(t).toLowerCase().replace(H,"").split("-"),n=e.slice(0,2).join("-"),r=e[0];return qe(Mi,n)||qe(Mi,r)},Vi={id:Pn(Pe)},Ai=n.default.extend({props:Vi,data:function(){return{localId_:null}},computed:{safeId:function(){var t=this.id||this.localId_;return function(e){return t?(e=String(e||"").replace(/\s+/g,"_"))?t+"_"+e:t:null}}},mounted:function(){var t=this;this.$nextTick((function(){t.localId_="__BVID__".concat(t._uid)}))}});function Bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _i(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:ci;return t=Ke(t).filter(Rt),new Intl.DateTimeFormat(t,{calendar:e}).resolvedOptions().locale}(Ke(this.locale).filter(Rt),ci)},computedDateDisabledFn:function(){var t=this.dateDisabledFn;return En(t)?t:function(){return!1}},computedDateInfoFn:function(){var t=this.dateInfoFn;return En(t)?t:function(){return{}}},calendarLocale:function(){var t=new Intl.DateTimeFormat(this.computedLocale,{calendar:ci}),e=t.resolvedOptions().calendar,n=t.resolvedOptions().locale;return e!==ci&&(n=n.replace(/-u-.+$/i,"").concat("-u-ca-gregory")),n},calendarYear:function(){return this.activeDate.getFullYear()},calendarMonth:function(){return this.activeDate.getMonth()},calendarFirstDay:function(){return Oi(this.calendarYear,this.calendarMonth,1,12)},calendarDaysInMonth:function(){var t=Oi(this.calendarFirstDay);return t.setMonth(t.getMonth()+1,0),t.getDate()},computedVariant:function(){return"btn-".concat(this.selectedVariant||"primary")},computedTodayVariant:function(){return"btn-outline-".concat(this.todayVariant||this.selectedVariant||"primary")},computedNavButtonVariant:function(){return"btn-outline-".concat(this.navButtonVariant||"primary")},isRTL:function(){var t=en(this.direction).toLowerCase();return"rtl"===t||"ltr"!==t&&Li(this.computedLocale)},context:function(){var t=this.selectedYMD,e=this.activeYMD,n=wi(t),r=wi(e);return{selectedYMD:t,selectedDate:n,selectedFormatted:n?this.formatDateString(n):this.labelNoDateSelected,activeYMD:e,activeDate:r,activeFormatted:r?this.formatDateString(r):"",disabled:this.dateDisabled(r),locale:this.computedLocale,calendarLocale:this.calendarLocale,rtl:this.isRTL}},dateOutOfRange:function(){var t=this.computedMin,e=this.computedMax;return function(n){return n=wi(n),t&&ne}},dateDisabled:function(){var t=this,e=this.dateOutOfRange;return function(n){n=wi(n);var r=Si(n);return!(!e(n)&&!t.computedDateDisabledFn(r,n))}},formatDateString:function(){return ji(this.calendarLocale,_i(_i({year:fi,month:hi,day:hi},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:ci}))},formatYearMonth:function(){return ji(this.calendarLocale,{year:fi,month:ui,calendar:ci})},formatWeekdayName:function(){return ji(this.calendarLocale,{weekday:ui,calendar:ci})},formatWeekdayNameShort:function(){return ji(this.calendarLocale,{weekday:this.weekdayHeaderFormat||di,calendar:ci})},formatDay:function(){var t=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(e){return t.format(e.getDate())}},prevDecadeDisabled:function(){var t=this.computedMin;return this.disabled||t&&Pi(Ii(this.activeDate))t},nextYearDisabled:function(){var t=this.computedMax;return this.disabled||t&&Di(Ei(this.activeDate))>t},nextDecadeDisabled:function(){var t=this.computedMax;return this.disabled||t&&Di($i(this.activeDate))>t},calendar:function(){for(var t=[],e=this.calendarFirstDay,n=e.getFullYear(),r=e.getMonth(),i=this.calendarDaysInMonth,o=e.getDay(),a=0-((this.computedWeekStarts>o?7:0)-this.computedWeekStarts)-o,s=0;s<6&&a=0)return 1;return 0}();var Zi=Xi&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),Ji))}};function Qi(t){return t&&"[object Function]"==={}.toString.call(t)}function to(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function eo(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function no(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=to(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:no(eo(t))}function ro(t){return t&&t.referenceNode?t.referenceNode:t}var io=Xi&&!(!window.MSInputMethodContext||!document.documentMode),oo=Xi&&/MSIE 10/.test(navigator.userAgent);function ao(t){return 11===t?io:10===t?oo:io||oo}function so(t){if(!t)return document.documentElement;for(var e=ao(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===to(n,"position")?so(n):n:t?t.ownerDocument.documentElement:document.documentElement}function lo(t){return null!==t.parentNode?lo(t.parentNode):t}function co(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&so(a.firstElementChild)!==a?so(l):l;var c=lo(t);return c.host?co(c.host,e):co(t,lo(e).host)}function uo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function ho(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=uo(e,"top"),i=uo(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function fo(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function po(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],ao(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function bo(t){var e=t.body,n=t.documentElement,r=ao(10)&&getComputedStyle(n);return{height:po("Height",e,n,r),width:po("Width",e,n,r)}}var mo=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},vo=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=ao(10),i="HTML"===e.nodeName,o=wo(t),a=wo(e),s=no(t),l=to(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Oo({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=ho(d,e)),d}function jo(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=So(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:uo(n),s=e?0:uo(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return Oo(l)}function ko(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===to(t,"position"))return!0;var n=eo(t);return!!n&&ko(n)}function Do(t){if(!t||!t.parentElement||ao())return document.documentElement;for(var e=t.parentElement;e&&"none"===to(e,"transform");)e=e.parentElement;return e||document.documentElement}function Po(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Do(t):co(t,ro(e));if("viewport"===r)o=jo(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=no(eo(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===r?t.ownerDocument.documentElement:r;var l=So(s,a,i);if("HTML"!==s.nodeName||ko(a))o=l;else{var c=bo(t.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function To(t){return t.width*t.height}function Co(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=Po(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return go({key:t},s[t],{area:To(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function xo(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?Do(e):co(e,ro(n));return So(n,i,r)}function Fo(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function Eo(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Io(t,e,n){n=n.split("-")[0];var r=Fo(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=e[a]+e[l]/2-r[l]/2,i[s]=n===s?e[s]-r[c]:e[Eo(s)],i}function $o(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Ro(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=$o(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&Qi(n)&&(e.offsets.popper=Oo(e.offsets.popper),e.offsets.reference=Oo(e.offsets.reference),e=n(e,t))})),e}function Mo(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=xo(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Co(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Io(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Ro(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Lo(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function Vo(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Ko.indexOf(t),r=Ko.slice(n+1).concat(Ko.slice(0,n));return e?r.reverse():r}var Jo="flip",Zo="clockwise",Qo="counterclockwise";function ta(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf($o(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return Oo(s)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,r){Yo(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}var ea={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:yo({},l,o[l]),end:yo({},l,o[l]+o[c]-a[c])};t.offsets.popper=go({},a,u[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=Yo(+n)?[+n,0]:ta(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||so(t.instance.popper);t.instance.reference===n&&(n=so(n));var r=Vo("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=Po(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=l;var c=e.priority,u=t.offsets.popper,d={primary:function(t){var n=u[t];return u[t]l[t]&&!e.escapeWithReference&&(r=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),yo({},n,r)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=go({},u,d[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]o(r[s])&&(t.offsets.popper[l]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Uo(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Fo(r)[c];s[f]-pa[f]&&(t.offsets.popper[d]+=s[d]+p-a[f]),t.offsets.popper=Oo(t.offsets.popper);var b=s[d]+s[c]/2-p/2,m=to(t.instance.popper),v=parseFloat(m["margin"+u]),y=parseFloat(m["border"+u+"Width"]),g=b-t.offsets.popper[d]-v-y;return g=Math.max(Math.min(a[c]-p,g),0),t.arrowElement=r,t.offsets.arrow=(yo(n={},d,Math.round(g)),yo(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Lo(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Po(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=Eo(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Jo:a=[r,i];break;case Zo:a=Xo(r);break;case Qo:a=Xo(r,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return t;r=t.placement.split("-")[0],i=Eo(r);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,h="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)d(u.top)||"bottom"===r&&d(c.top)d(n.right),b=d(c.top)d(n.bottom),v="left"===r&&f||"right"===r&&p||"top"===r&&b||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),g=!!e.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&b||!y&&"end"===o&&m),O=!!e.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&m||!y&&"end"===o&&b),w=g||O;(h||v||w)&&(t.flipped=!0,(h||v)&&(r=a[l+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=go({},t.offsets.popper,Io(t.instance.popper,t.offsets.reference,t.placement)),t=Ro(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=Eo(e),t.offsets.popper=Oo(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Uo(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=$o(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};mo(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Zi(this.update.bind(this)),this.options=go({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(go({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){r.options.modifiers[e]=go({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return go({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&Qi(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return vo(t,[{key:"update",value:function(){return Mo.call(this)}},{key:"destroy",value:function(){return Ao.call(this)}},{key:"enableEventListeners",value:function(){return No.call(this)}},{key:"disableEventListeners",value:function(){return zo.call(this)}}]),t}();na.Utils=("undefined"!=typeof window?window:global).PopperUtils,na.placements=qo,na.Defaults=ea;function ra(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ia(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(ra(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));yt(this,t.Defaults,this.constructor.Defaults,n,{type:e}),gt(this,{type:{enumerable:!0,configurable:!1,writable:!1},cancelable:{enumerable:!0,configurable:!1,writable:!1},nativeEvent:{enumerable:!0,configurable:!1,writable:!1},target:{enumerable:!0,configurable:!1,writable:!1},relatedTarget:{enumerable:!0,configurable:!1,writable:!1},vueTarget:{enumerable:!0,configurable:!1,writable:!1},componentId:{enumerable:!0,configurable:!1,writable:!1}});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},Ot(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}var e,n,r;return e=t,r=[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}],(n=null)&&ia(e.prototype,n),r&&ia(e,r),t}(),aa=n.default.extend({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(Bn(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ve),t&&An(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ve))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&An(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ve)},beforeDestroy:function(){Bn(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ve)},methods:{isClickOut:function(t){return!bn(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}}),sa=n.default.extend({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(Bn(this.focusInElement,"focusin",this._focusInHandler,ve),t&&An(this.focusInElement,"focusin",this._focusInHandler,ve))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&An(this.focusInElement,"focusin",this._focusInHandler,ve)},beforeDestroy:function(){Bn(this.focusInElement,"focusin",this._focusInHandler,ve)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}});function la(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ca(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once(ce,this.focusToggler))},toggle:function(t){var e=t=t||{},n=e.type,r=e.keyCode;("click"===n||"keydown"===n&&-1!==[Dr,Pr,kr].indexOf(r))&&(this.disabled?this.visible=!1:(this.$emit("toggle",t),Hn(t),this.visible?this.hide(!0):this.show()))},onMousedown:function(t){Hn(t,{propagation:!1})},onKeydown:function(t){var e=t.keyCode;27===e?this.onEsc(t):e===kr?this.focusNext(t,!1):e===Tr&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,Hn(t),this.$once(ce,this.focusToggler))},onSplitClick:function(t){this.disabled?this.visible=!1:this.$emit(ie,t)},hideHandler:function(t){var e=this,n=t.target;!this.visible||bn(this.$refs.menu,n)||bn(this.toggler,n)||(this.clearHideTimeout(),this.$_hideTimeout=setTimeout((function(){return e.hide()}),this.inNavbar?300:0))},clickOutHandler:function(t){this.hideHandler(t)},focusInHandler:function(t){this.hideHandler(t)},focusNext:function(t,e){var n=this,r=t.target;!this.visible||t&&pn(".dropdown form",r)||(Hn(t),this.$nextTick((function(){var t=n.getItems();if(!(t.length<1)){var i=t.indexOf(r);e&&i>0?i--:!e&&i1&&void 0!==arguments[1]?arguments[1]:null;if(dt(t)){var n=Lt(t,this.valueField),r=Lt(t,this.textField);return{value:nt(n)?e||r:n,text:si(String(nt(r)?e:r)),html:Lt(t,this.htmlField),disabled:Boolean(Lt(t,this.disabledField))}}return{value:e||t,text:si(String(t)),disabled:!1}},normalizeOptions:function(t){var e=this;return ct(t)?t.map((function(t){return e.normalizeOption(t)})):dt(t)?(Bt('Setting prop "options" to an object is deprecated. Use the array format instead.',this.$options.name),wt(t).map((function(n){return e.normalizeOption(t[n]||{},n)}))):[]}}}),Oa=function(t,e){for(var n=0;n-1:xr(e,t)},isRadio:function(){return!1}},watch:za({},Ya,(function(t,e){xr(t,e)||this.setIndeterminate(t)})),mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{computedLocalCheckedWatcher:function(t,e){if(!xr(t,e)){this.$emit(Aa,t);var n=this.$refs.input;n&&this.$emit(Ga,n.indeterminate)}},handleChange:function(t){var e=this,n=t.target,r=n.checked,i=n.indeterminate,o=this.value,a=this.uncheckedValue,s=this.computedLocalChecked;if(ct(s)){var l=Oa(s,o);r&&l<0?s=s.concat(o):!r&&l>-1&&(s=s.slice(0,l).concat(s.slice(l+1)))}else s=r?o:a;this.computedLocalChecked=s,this.$nextTick((function(){e.$emit(re,s),e.isGroup&&e.bvGroup.$emit(re,s),e.$emit(Ga,i)}))},setIndeterminate:function(t){ct(this.computedLocalChecked)&&(t=!1);var e=this.$refs.input;e&&(e.indeterminate=t,this.$emit(Ga,t))}}}),qa="__BV_hover_handler__",Ka="mouseenter",Xa=function(t,e,n){_n(t,e,Ka,n,ve),_n(t,e,"mouseleave",n,ve)},Ja=function(t,e){var n=e.value,r=void 0===n?null:n;if(y){var i=t[qa],o=ot(i),a=!(o&&i.fn===r);o&&a&&(Xa(!1,t,i),delete t[qa]),ot(r)&&a&&(t[qa]=function(t){var e=function(e){t(e.type===Ka,e)};return e.fn=t,e}(r),Xa(!0,t,t[qa]))}},Za={bind:Ja,componentUpdated:Ja,unbind:function(t){Ja(t,{value:null})}};function Qa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ts(t){for(var e=1;e0&&(l=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":l.length>1,"justify-content-end":l.length<2}},l)]);var h=t(qi,{staticClass:"b-form-date-calendar w-100",props:as(as({},Tn(fs,o)),{},{hidden:!this.isVisible,value:e,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:kt(a,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"]),key:"calendar",ref:"calendar"},l);return t(is,{staticClass:"b-form-datepicker",props:as(as({},Tn(ps,o)),{},{formattedValue:e?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":i,"text-light":i},this.menuClass],placeholder:s,rtl:this.isRTL,value:e}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:ss({},Ve,a["button-content"]||this.defaultButtonFn),ref:"control"},[h])}}),vs=n.default.extend({computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(t){this.$refs.input.selectionStart=t}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(t){this.$refs.input.selectionEnd=t}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(t){this.$refs.input.selectionDirection=t}}},methods:{select:function(){var t;(t=this.$refs.input).select.apply(t,arguments)},setSelectionRange:function(){var t;(t=this.$refs.input).setSelectionRange.apply(t,arguments)},setRangeText:function(){var t;(t=this.$refs.input).setRangeText.apply(t,arguments)}}});function ys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gs(t){for(var e=1;e2&&void 0!==arguments[2]&&arguments[2];return t=en(t),!this.hasFormatter||this.lazyFormatter&&!n||(t=this.formatter(t,e)),t},modifyValue:function(t){return t=en(t),this.trim&&(t=t.trim()),this.number&&(t=Je(t,t)),t},updateValue:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.lazy;if(!r||n){this.clearDebounce();var i=function(){if((t=e.modifyValue(t))!==e.vModelValue)e.vModelValue=t,e.$emit(Ds,t);else if(e.hasFormatter){var n=e.$refs.input;n&&t!==n.value&&(n.value=t)}},o=this.computedDebounce;o>0&&!r&&!n?this.$_inputDebounceTimer=setTimeout(i,o):i()}},onInput:function(t){if(!t.target.composing){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Hn(t,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit(ue,n))}},onChange:function(t){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Hn(t,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit(re,n))},onBlur:function(t){var e=t.target.value,n=this.formatValue(e,t,!0);!1!==n&&(this.localValue=en(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",t)},focus:function(){this.disabled||gn(this.$el)},blur:function(){this.disabled||On(this.$el)}}}),Cs=n.default.extend({computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var t;return(t=this.$refs.input).setCustomValidity.apply(t,arguments)},checkValidity:function(){var t;return(t=this.$refs.input).checkValidity.apply(t,arguments)},reportValidity:function(){var t;return(t=this.$refs.input).reportValidity.apply(t,arguments)}}});function xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fs(t){for(var e=1;e=n?"full":e>=n-.5?"half":"empty",u={variant:o,disabled:a,readonly:s};return t("span",{staticClass:"b-rating-star",class:{focused:r&&e===n||!Xe(e)&&n===l,"b-rating-star-empty":"empty"===c,"b-rating-star-half":"half"===c,"b-rating-star-full":"full"===c},attrs:{tabindex:a||s?null:"-1"},on:{click:this.onClick}},[t("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(c,u)])])}}),Us=xn(Tt(Vs(Vs(Vs(Vs(Vs({},Vi),Hs),Dt(Sa,["required","autofocus"])),Pa),{},{color:Pn(Pe),iconClear:Pn(Pe,"x"),iconEmpty:Pn(Pe,"star"),iconFull:Pn(Pe,"star-fill"),iconHalf:Pn(Pe,"star-half"),inline:Pn(Oe,!1),locale:Pn(Fe),noBorder:Pn(Oe,!1),precision:Pn($e),readonly:Pn(Oe,!1),showClear:Pn(Oe,!1),showValue:Pn(Oe,!1),showValueMax:Pn(Oe,!1),stars:Pn($e,5,(function(t){return Xe(t)>=3})),variant:Pn(Pe)})),Wt),qs=n.default.extend({name:Wt,components:{BIconStar:fr,BIconStarHalf:br,BIconStarFill:pr,BIconX:mr},mixins:[Ai,_s,Ta],props:Us,data:function(){var t=Je(this[Ns],null),e=Ys(this.stars);return{localValue:rt(t)?null:Gs(t,0,e),hasFocus:!1}},computed:{computedStars:function(){return Ys(this.stars)},computedRating:function(){var t=Je(this.localValue,0),e=Xe(this.precision,3);return Gs(Je(t.toFixed(e)),0,this.computedStars)},computedLocale:function(){var t=Ke(this.locale).filter(Rt);return new Intl.NumberFormat(t).resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return Li(this.computedLocale)},formattedRating:function(){var t=Xe(this.precision),e=this.showValueMax,n=this.computedLocale,r={notation:"standard",minimumFractionDigits:isNaN(t)?0:t,maximumFractionDigits:isNaN(t)?3:t},i=this.computedStars.toLocaleString(n),o=this.localValue;return o=rt(o)?e?"-":"":o.toLocaleString(n,r),e?"".concat(o,"/").concat(i):o}},watch:(Is={},As(Is,Ns,(function(t,e){if(t!==e){var n=Je(t,null);this.localValue=rt(n)?null:Gs(n,0,this.computedStars)}})),As(Is,"localValue",(function(t,e){t!==e&&t!==(this.value||0)&&this.$emit(zs,t||null)})),As(Is,"disabled",(function(t){t&&(this.hasFocus=!1,this.blur())})),Is),methods:{focus:function(){this.disabled||gn(this.$el)},blur:function(){this.disabled||On(this.$el)},onKeydown:function(t){var e=t.keyCode;if(this.isInteractive&&qe([37,kr,39,Tr],e)){Hn(t,{propagation:!1});var n=Xe(this.localValue,0),r=this.showClear?0:1,i=this.computedStars,o=this.isRTL?-1:1;37===e?this.localValue=Gs(n-o,r,i)||null:39===e?this.localValue=Gs(n+o,r,i):e===kr?this.localValue=Gs(n-1,r,i)||null:e===Tr&&(this.localValue=Gs(n+1,r,i))}},onSelected:function(t){this.isInteractive&&(this.localValue=t)},onFocus:function(t){this.hasFocus=!!this.isInteractive&&"focus"===t.type},renderIcon:function(t){return this.$createElement(jr,{props:{icon:t,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(jr,{props:{icon:this.iconClear}})}},render:function(t){var e=this,n=this.disabled,r=this.readonly,i=this.name,o=this.form,a=this.inline,s=this.variant,l=this.color,c=this.noBorder,u=this.hasFocus,d=this.computedRating,h=this.computedStars,f=this.formattedRating,p=this.showClear,b=this.isRTL,m=this.isInteractive,v=this.$scopedSlots,y=[];if(p&&!n&&!r){var g=t("span",{staticClass:"b-rating-icon"},[(v["icon-clear"]||this.iconClearFn)()]);y.push(t("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:u&&0===d},attrs:{tabindex:m?"-1":null},on:{click:function(){return e.onSelected(null)}},key:"clear"},[g]))}for(var O=0;O1&&void 0!==arguments[1]?arguments[1]:null;if(dt(t)){var n=Lt(t,this.valueField),r=Lt(t,this.textField),i=Lt(t,this.optionsField,null);return rt(i)?{value:nt(n)?e||r:n,text:String(nt(r)?e:r),html:Lt(t,this.htmlField),disabled:Boolean(Lt(t,this.disabledField))}:{label:String(Lt(t,this.labelField)||r),options:this.normalizeOptions(i)}}return{value:e||t,text:String(t),disabled:!1}}}}),ol=xn({disabled:Pn(Oe,!1),value:Pn(ye,void 0,!0)},qt),al=n.default.extend({name:qt,functional:!0,props:ol,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.value;return t("option",p(r,{attrs:{disabled:n.disabled},domProps:{value:o}}),i)}});function sl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ll(t){for(var e=1;e0}}});function yl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ol="light",wl="dark",Sl=xn({variant:Pn(Pe)},"BTr"),jl=n.default.extend({name:"BTr",mixins:[Rr,Lr,Ln],provide:function(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:function(){return{}}}},inheritAttrs:!1,props:Sl,computed:{inTbody:function(){return this.bvTableRowGroup.isTbody},inThead:function(){return this.bvTableRowGroup.isThead},inTfoot:function(){return this.bvTableRowGroup.isTfoot},isDark:function(){return this.bvTableRowGroup.isDark},isStacked:function(){return this.bvTableRowGroup.isStacked},isResponsive:function(){return this.bvTableRowGroup.isResponsive},isStickyHeader:function(){return this.bvTableRowGroup.isStickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTableRowGroup.hasStickyHeader},tableVariant:function(){return this.bvTableRowGroup.tableVariant},headVariant:function(){return this.inThead?this.bvTableRowGroup.headVariant:null},footVariant:function(){return this.inTfoot?this.bvTableRowGroup.footVariant:null},isRowDark:function(){return this.headVariant!==Ol&&this.footVariant!==Ol&&(this.headVariant===wl||this.footVariant===wl||this.isDark)},trClasses:function(){var t=this.variant;return[t?"".concat(this.isRowDark?"bg":"table","-").concat(t):null]},trAttrs:function(){return function(t){for(var e=1;e0?t:null},Fl=function(t){return it(t)||xl(t)>0},El=xn({colspan:Pn($e,null,Fl),rowspan:Pn($e,null,Fl),stackedHeading:Pn(Pe),stickyColumn:Pn(Oe,!1),variant:Pn(Pe)},Qt),Il=n.default.extend({name:Qt,mixins:[Rr,Lr,Ln],inject:{bvTableTr:{default:function(){return{}}}},inheritAttrs:!1,props:El,computed:{tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return xl(this.colspan)},computedRowspan:function(){return xl(this.rowspan)},cellClasses:function(){var t=this.variant,e=this.headVariant,n=this.isStickyColumn;return(!t&&this.isStickyHeader&&!e||!t&&n&&this.inTfoot&&!this.footVariant||!t&&n&&this.inThead&&!e||!t&&n&&this.inTbody)&&(t=this.rowVariant||this.tableVariant||"b-table-default"),[t?"".concat(this.isDark?"bg":"table","-").concat(t):null,n?"b-table-sticky-column":null]},cellAttrs:function(){var t=this.stackedHeading,e=this.inThead||this.inTfoot,n=this.computedColspan,r=this.computedRowspan,i="cell",o=null;return e?(i="columnheader",o=n>0?"colspan":"col"):cn(this.tag,"th")&&(i="rowheader",o=r>0?"rowgroup":"row"),Tl(Tl({colspan:n,rowspan:r,role:i,scope:o},this.bvAttrs),{},{"data-label":this.isStackedCell&&!it(t)?en(t):null})}},render:function(t){var e=[this.normalizeSlot()];return t(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?t("div",[e]):e])}});var $l,Rl,Ml,Ll="busy",Vl=($l={},Rl=Ll,Ml=Pn(Oe,!1),Rl in $l?Object.defineProperty($l,Rl,{value:Ml,enumerable:!0,configurable:!0,writable:!0}):$l[Rl]=Ml,$l),Al=n.default.extend({props:Vl,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this.busy||this.localBusy}},watch:{localBusy:function(t,e){t!==e&&this.$emit("update:busy",t)}},methods:{stopIfBusy:function(t){return!!this.computedBusy&&(Hn(t),!0)},renderBusy:function(){var t=this.tbodyTrClass,e=this.tbodyTrAttr,n=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(Ne)?n(jl,{staticClass:"b-table-busy-slot",class:[ot(t)?t(null,Ne):t],attrs:ot(e)?e(null,Ne):e,key:"table-busy-slot"},[n(Il,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(Ne)])]):null}}}),Bl={caption:Pn(Pe),captionHtml:Pn(Pe)},_l=n.default.extend({props:Bl,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.caption,e=this.captionHtml,n=this.$createElement,r=n(),i=this.hasNormalizedSlot(ze);return(i||t||e)&&(r=n("caption",{attrs:{id:this.captionId},domProps:i?{}:li(e,t),key:"caption",ref:"caption"},this.normalizeSlot(ze))),r}}}),Hl=n.default.extend({methods:{renderColgroup:function(){var t=this.computedFields,e=this.$createElement,n=e();return this.hasNormalizedSlot(Ye)&&(n=e("colgroup",{key:"colgroup"},[this.normalizeSlot(Ye,{columns:t.length,fields:t})])),n}}}),Nl={emptyFilteredHtml:Pn(Pe),emptyFilteredText:Pn(Pe,"There are no records matching your request"),emptyHtml:Pn(Pe),emptyText:Pn(Pe,"There are no records to show"),showEmpty:Pn(Oe,!1)},zl=n.default.extend({props:Nl,methods:{renderEmpty:function(){var t=this.computedItems,e=this.$createElement,n=e();if(this.showEmpty&&(!t||0===t.length)&&(!this.computedBusy||!this.hasNormalizedSlot(Ne))){var r=this.computedFields,i=this.isFiltered,o=this.emptyText,a=this.emptyHtml,s=this.emptyFilteredText,l=this.emptyFilteredHtml,c=this.tbodyTrClass,u=this.tbodyTrAttr;(n=this.normalizeSlot(i?"emptyfiltered":"empty",{emptyFilteredHtml:l,emptyFilteredText:s,emptyHtml:a,emptyText:o,fields:r,items:t}))||(n=e("div",{class:["text-center","my-2"],domProps:i?li(l,s):li(a,o)})),n=e(Il,{props:{colspan:r.length||null}},[e("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=e(jl,{staticClass:"b-table-empty-row",class:[ot(c)?c(null,"row-empty"):c],attrs:ot(u)?u(null,"row-empty"):u,key:i?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}}),Yl=function t(e){return it(e)?"":ut(e)&&!ht(e)?wt(e).sort().map((function(n){return t(e[n])})).filter((function(t){return!!t})).join(" "):en(e)};function Gl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wl(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:{},i=wt(r).reduce((function(e,n){var i=r[n],o=i.filterByFormatted,a=ot(o)?o:o?i.formatter:null;return ot(a)&&(e[n]=a(t[n],n,t)),e}),jt(t)),o=wt(i).filter((function(t){return!(Jl[t]||ct(e)&&e.length>0&&qe(e,t)||ct(n)&&n.length>0&&!qe(n,t))}));return kt(i,o)};function tc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&Bt('Prop "filter-debounce" is deprecated. Use the debounce feature of "" instead.',Zt),t},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){return{filteredItems:this.filteredItems,localItems:this.localItems,localFilter:this.localFilter}},localFilterFn:function(){var t=this.filterFunction;return En(t)?t:null},filteredItems:function(){var t=this.localItems,e=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,e)||this.defaultFilterFnFactory(e):null;return n&&t.length>0?t.filter(n):t}},watch:{computedFilterDebounce:function(t){!t&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(t){var e=this,n=this.computedFilterDebounce;this.clearFilterTimer(),n&&n>0?this.$_filterTimer=setTimeout((function(){e.localFilter=e.filterSanitize(t)}),n):this.localFilter=this.filterSanitize(t)}},filteredCheck:function(t){var e=t.filteredItems,n=t.localFilter,r=!1;n?xr(n,[])||xr(n,{})?r=!1:n&&(r=!0):r=!1,r&&this.$emit(se,e,e.length),this.isFiltered=r},isFiltered:function(t,e){if(!1===t&&!0===e){var n=this.localItems;this.$emit(se,n,n.length)}}},created:function(){var t=this;this.$_filterTimer=null,this.$nextTick((function(){t.isFiltered=Boolean(t.localFilter)}))},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(t){return!this.localFiltering||this.localFilterFn||st(t)||pt(t)?$t(t):""},filterFnFactory:function(t,e){if(!t||!ot(t)||!e||xr(e,[])||xr(e,{}))return null;return function(n){return t(n,e)}},defaultFilterFnFactory:function(t){var e=this;if(!t||!st(t)&&!pt(t))return null;var n,r=t;if(st(r)){var i=(n=t,n.replace(E,"\\$&")).replace(I,"\\s+");r=new RegExp(".*".concat(i,".*"),"i")}return function(t){return r.lastIndex=0,r.test((n=t,i=e.computedFilterIgnored,o=e.computedFilterIncluded,a=e.computedFieldsObj,ut(n)?Yl(Ql(n,i,o,a)):""));var n,i,o,a}}}}),ic=function(t,e){var n=[];if(ct(t)&&t.filter(Rt).forEach((function(t){if(st(t))n.push({key:t,label:tn(t)});else if(ut(t)&&t.key&&st(t.key))n.push(jt(t));else if(ut(t)&&1===wt(t).length){var e=wt(t)[0],r=function(t,e){var n=null;return st(e)?n={key:t,label:e}:ot(e)?n={key:t,formatter:e}:ut(e)?(n=jt(e)).key=n.key||t:!1!==e&&(n={key:t}),n}(e,t[e]);r&&n.push(r)}})),0===n.length&&ct(e)&&e.length>0){var r=e[0];wt(r).forEach((function(t){Jl[t]||n.push({key:t,label:tn(t)})}))}var i={};return n.filter((function(t){return!i[t.key]&&(i[t.key]=!0,t.label=st(t.label)?t.label:tn(t.key),!0)}))};function oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e0&&t.some(Rt)},selectableIsMultiSelect:function(){return this.isSelectable&&qe(["range","multi"],this.selectMode)},selectableTableClasses:function(){var t,e=this.isSelectable;return wc(t={"b-table-selectable":e},"b-table-select-".concat(this.selectMode),e),wc(t,"b-table-selecting",this.selectableHasSelection),wc(t,"b-table-selectable-no-click",e&&!this.hasSelectableRowClick),t},selectableTableAttrs:function(){return{"aria-multiselectable":this.isSelectable?this.selectableIsMultiSelect?"true":"false":null}}},watch:{computedItems:function(t,e){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=ct(t)&&ct(e)&&t.length===e.length;for(var r=0;n&&r=0&&t0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?function(t,e){var n=ot(e)?e:function(){return e};return Array.apply(null,{length:t}).map(n)}(t,!0):[!0])},isRowSelected:function(t){return!(!lt(t)||!this.selectedRows[t])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(t){if(this.isSelectable&&this.isRowSelected(t)){var e=this.selectedVariant;return wc({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(e),e)}return{}},selectableRowAttrs:function(t){return{"aria-selected":this.isSelectable?this.isRowSelected(t)?"true":"false":null}},setSelectionHandlers:function(t){var e=t&&!this.noSelectOnClick?"$on":"$off";this[e](he,this.selectionHandler),this[e](se,this.clearSelected),this[e](ae,this.clearSelected)},selectionHandler:function(t,e,n){if(this.isSelectable&&!this.noSelectOnClick){var r=this.selectMode,i=this.selectedLastRow,o=this.selectedRows.slice(),a=!o[e];if("single"===r)o=[];else if("range"===r)if(i>-1&&n.shiftKey){for(var s=Yn(i,e);s<=Gn(i,e);s++)o[s]=!0;a=!0}else n.ctrlKey||n.metaKey||(o=[],a=!0),this.selectedLastRow=a?e:-1;o[e]=a,this.selectedRows=o}else this.clearSelected()}}}),Tc=function(t){return it(t)?"":function(t){return F.test(String(t))}(t)?Je(t,t):t};function Cc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xc(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=n.sortBy,i=void 0===r?null:r,o=n.formatter,a=void 0===o?null:o,s=n.locale,l=void 0===s?void 0:s,c=n.localeOptions,u=void 0===c?{}:c,d=n.nullLast,h=void 0!==d&&d,f=Lt(t,i,null),p=Lt(e,i,null);return ot(a)&&(f=a(f,i,t),p=a(p,i,e)),f=Tc(f),p=Tc(p),ht(f)&&ht(p)||lt(f)&<(p)?fp?1:0:h&&""===f&&""!==p?1:h&&""!==f&&""===p?-1:Yl(f).localeCompare(Yl(p),l,u)}(t,a,{sortBy:e,formatter:u,locale:r,localeOptions:l,nullLast:i})),(s||0)*(n?-1:1)},s.map((function(t,e){return[e,t]})).sort(function(t,e){return this(t[1],e[1])||t[0]-e[0]}.bind(t)).map((function(t){return t[1]}))}return s}},watch:(jc={isSortable:function(t){t?this.isSortable&&this.$on(le,this.handleSort):this.$off(le,this.handleSort)}},Fc(jc,Ic,(function(t){t!==this.localSortDesc&&(this.localSortDesc=t||!1)})),Fc(jc,Ec,(function(t){t!==this.localSortBy&&(this.localSortBy=t||"")})),Fc(jc,"localSortDesc",(function(t,e){t!==e&&this.$emit("update:sortDesc",t)})),Fc(jc,"localSortBy",(function(t,e){t!==e&&this.$emit("update:sortBy",t)})),jc),created:function(){this.isSortable&&this.$on(le,this.handleSort)},methods:{handleSort:function(t,e,n,r){var i=this;if(this.isSortable&&(!r||!this.noFooterSorting)){var o=!1,a=function(){var t=e.sortDirection||i.sortDirection;t===$c?i.localSortDesc=!1:t===Rc&&(i.localSortDesc=!0)};if(e.sortable){var s=!this.localSorting&&e.sortKey?e.sortKey:t;this.localSortBy===s?this.localSortDesc=!this.localSortDesc:(this.localSortBy=s,a()),o=!0}else this.localSortBy&&!this.noSortReset&&(this.localSortBy="",a(),o=!0);o&&this.$emit("sort-changed",this.context)}},sortTheadThClasses:function(t,e,n){return{"b-table-sort-icon-left":e.sortable&&this.sortIconLeft&&!(n&&this.noFooterSorting)}},sortTheadThAttrs:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return{};var r=e.sortable;return{"aria-sort":r&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":r?"none":null}},sortTheadThLabel:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return null;var r="";if(e.sortable)if(this.localSortBy===t)r=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{r=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var i=this.sortDirection||e.sortDirection;i===$c?r=this.labelSortAsc:i===Rc&&(r=this.labelSortDesc)}else this.noSortReset||(r=this.localSortBy?this.labelSortClear:"");return nn(r)||null}}});var Ac={stacked:Pn(Ee,!1)},Bc=n.default.extend({props:Ac,computed:{isStacked:function(){var t=this.stacked;return""===t||t},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){var t=this.isStackedAlways;return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({"b-table-stacked":t},"b-table-stacked-".concat(this.stacked),!t&&this.isStacked)}}});function _c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hc(t){for(var e=1;e0&&!this.computedBusy,[this.tableClass,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},e?"".concat(this.dark?"bg":"table","-").concat(e):"",this.stackedTableClasses,this.selectableTableClasses]},tableAttrs:function(){var t=this.computedItems,e=this.filteredItems,n=this.computedFields,r=this.selectableTableAttrs,i=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":en(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null};return Hc(Hc(Hc({"aria-rowcount":t&&e&&e.length>t.length?en(e.length):null},this.bvAttrs),{},{id:this.safeId(),role:"table"},i),r)}},render:function(t){var e=this.wrapperClasses,n=this.renderCaption,r=this.renderColgroup,i=this.renderThead,o=this.renderTbody,a=this.renderTfoot,s=[];this.isTableSimple?s.push(this.normalizeSlot()):(s.push(n?n():null),s.push(r?r():null),s.push(i?i():null),s.push(o?o():null),s.push(a?a():null));var l=t("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},s.filter(Rt));return e.length>0?t("div",{class:e,style:this.wrapperStyles,key:"wrap"},[l]):l}});function Gc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wc(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:document,e=yn();return!!(e&&""!==e.toString().trim()&&e.containsNode&&ln(t))&&e.containsNode(t,!0)},Qc=xn(El,"BTh"),tu=n.default.extend({name:"BTh",extends:Il,props:Qc,computed:{tag:function(){return"th"}}});function eu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nu(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(v=String((a-1)*s+e+1));var y=en(Lt(t,o))||null,g=y||en(e),O=y?this.safeId("_row_".concat(y)):null,w=this.selectableRowClasses?this.selectableRowClasses(e):{},S=this.selectableRowAttrs?this.selectableRowAttrs(e):{},j=ot(l)?l(t,"row"):l,k=ot(c)?c(t,"row"):c;if(p.push(u(jl,{class:[j,w,h?"b-table-has-details":""],props:{variant:t[Kl]||null},attrs:nu(nu({id:O},k),{},{tabindex:f?"0":null,"data-pk":y||null,"aria-details":b,"aria-owns":b,"aria-rowindex":v},S),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(g,"__"),ref:"item-rows",refInFor:!0},m)),h){var D={item:t,index:e,fields:r,toggleDetails:this.toggleDetailsFactory(d,t)};this.supportsSelectableRows&&(D.rowSelected=this.isRowSelected(e),D.selectRow=function(){return n.selectRow(e)},D.unselectRow=function(){return n.unselectRow(e)});var P=u(Il,{props:{colspan:r.length},class:this.detailsTdClass},[this.normalizeSlot(He,D)]);i&&p.push(u("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(g)}));var T=ot(this.tbodyTrClass)?this.tbodyTrClass(t,He):this.tbodyTrClass,C=ot(this.tbodyTrAttr)?this.tbodyTrAttr(t,He):this.tbodyTrAttr;p.push(u(jl,{staticClass:"b-table-details",class:[T],props:{variant:t[Kl]||null},attrs:nu(nu({},C),{},{id:b,tabindex:"-1"}),key:"__b-table-details__".concat(g)},[P]))}else d&&(p.push(u()),i&&p.push(u()));return p}}});function su(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lu(t){for(var e=1;e0&&n&&n.length>0?Ue(e.children).filter((function(t){return qe(n,t)})):[]},getTbodyTrIndex:function(t){if(!ln(t))return-1;var e="TR"===t.tagName?t:pn("tr",t,!0);return e?this.getTbodyTrs().indexOf(e):-1},emitTbodyRowEvent:function(t,e){if(t&&this.hasListener(t)&&e&&e.target){var n=this.getTbodyTrIndex(e.target);if(n>-1){var r=this.computedItems[n];this.$emit(t,r,n,e)}}},tbodyRowEvtStopped:function(t){return this.stopIfBusy&&this.stopIfBusy(t)},onTbodyRowKeydown:function(t){var e=t.target,n=t.keyCode;if(!this.tbodyRowEvtStopped(t)&&"TR"===e.tagName&&un(e)&&0===e.tabIndex)if(qe([Dr,Pr],n))Hn(t),this.onTBodyRowClicked(t);else if(qe([Tr,kr,36,35],n)){var r=this.getTbodyTrIndex(e);if(r>-1){Hn(t);var i=this.getTbodyTrs(),o=t.shiftKey;36===n||o&&n===Tr?gn(i[0]):35===n||o&&n===kr?gn(i[i.length-1]):n===Tr&&r>0?gn(i[r-1]):n===kr&&rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],n=this.computedFields,r=this.isSortable,i=this.isSelectable,o=this.headVariant,a=this.footVariant,s=this.headRowVariant,l=this.footRowVariant,c=this.$createElement;if(this.isStackedAlways||0===n.length)return c();var u=r||this.hasListener(le),d=i?this.selectAllRows:Ki,h=i?this.clearSelected:Ki,f=function(n,i){var o=n.label,a=n.labelHtml,s=n.variant,l=n.stickyColumn,f=n.key,p=null;n.label.trim()||n.headerTitle||(p=tn(n.key));var b={};u&&(b.click=function(r){t.headClicked(r,n,e)},b.keydown=function(r){var i=r.keyCode;i!==Dr&&i!==Pr||t.headClicked(r,n,e)});var m=r?t.sortTheadThAttrs(f,n,e):{},v=r?t.sortTheadThClasses(f,n,e):null,y=r?t.sortTheadThLabel(f,n,e):null,g={class:[t.fieldClasses(n),v],props:{variant:s,stickyColumn:l},style:n.thStyle||{},attrs:Tu(Tu({tabindex:u&&n.sortable?"0":null,abbr:n.headerAbbr||null,title:n.headerTitle||null,"aria-colindex":i+1,"aria-label":p},t.getThValues(null,f,n.thAttr,e?"foot":"head",{})),m),on:b,key:f},O=[xu(f),xu(f.toLowerCase()),xu()];e&&(O=[Fu(f),Fu(f.toLowerCase()),Fu()].concat(ku(O)));var w={label:o,column:f,field:n,isFoot:e,selectAllRows:d,clearSelected:h},S=t.normalizeSlot(O,w)||c("div",{domProps:li(a,o)}),j=y?c("span",{staticClass:"sr-only"}," (".concat(y,")")):null;return c(tu,g,[S,j].filter(Rt))},p=n.map(f).filter(Rt),b=[];if(e)b.push(c(jl,{class:this.tfootTrClass,props:{variant:it(l)?s:l}},p));else{var m={columns:n.length,fields:n,selectAllRows:d,clearSelected:h};b.push(this.normalizeSlot(Ge,m)||c()),b.push(c(jl,{class:this.theadTrClass,props:{variant:s}},p))}return c(e?vu:ju,{class:(e?this.tfootClass:this.theadClass)||null,props:e?{footVariant:a||o||null}:{headVariant:o||null},key:e?"bv-tfoot":"bv-thead"},b)}}}),$u=n.default.extend({methods:{renderTopRow:function(){var t=this.computedFields,e=this.stacked,n=this.tbodyTrClass,r=this.tbodyTrAttr,i=this.$createElement;return this.hasNormalizedSlot(We)&&!0!==e&&""!==e?i(jl,{staticClass:"b-table-top-row",class:[ot(n)?n(null,"row-top"):n],attrs:ot(r)?r(null,"row-top"):r,key:"b-top-row"},[this.normalizeSlot(We,{columns:t.length,fields:t})]):i()}}});function Ru(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mu(t){for(var e=1;efunction(t,e){const n=Hu?e.media||"default":t,r=Yu[n]||(Yu[n]={ids:new Set,styles:[]});if(!r.ids.has(t)){r.ids.add(t);let n=e.source;if(e.map&&(n+="\n/*# sourceURL="+e.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",e.media&&r.element.setAttribute("media",e.media),void 0===zu&&(zu=document.head||document.getElementsByTagName("head")[0]),zu.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(n),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{const t=r.ids.size-1,e=document.createTextNode(n),i=r.element.childNodes;i[t]&&r.element.removeChild(i[t]),i.length?r.element.insertBefore(e,i[t]):r.element.appendChild(e)}}}(t,e)}let zu;const Yu={};var Gu=_u({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-table",t._g(t._b({directives:[{name:"click-outside",rawName:"v-click-outside",value:t.handleClickOut,expression:"handleClickOut"}],attrs:{items:t.tableItems},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,n){return{key:n,fn:function(e){return[t._t(n,null,null,e)]}}})),t._l(t.fields,(function(e,r){return{key:"cell("+e.key+")",fn:function(i){return["date"===e.type&&t.tableItems[i.index].isEdit&&(t.selectedCell===e.key||"row"===t.editMode)&&e.editable?n("b-form-datepicker",t._b({directives:[{name:"focus",rawName:"v-focus",value:"date",expression:"'date'"}],key:r,attrs:{type:e.type,value:t.tableItems[i.index][e.key]},on:{input:function(n){return t.inputHandler(n,i,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,r,i)}}},"b-form-datepicker",Object.assign({},e),!1)):"select"===e.type&&t.tableItems[i.index].isEdit&&(t.selectedCell===e.key||"row"===t.editMode)&&e.editable?n("b-form-select",t._b({directives:[{name:"focus",rawName:"v-focus"}],key:r,attrs:{value:t.tableItems[i.index][e.key]},on:{change:function(n){return t.inputHandler(n,i,e.key,e.options)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,r,i)}}},"b-form-select",Object.assign({},e),!1)):"checkbox"===e.type&&t.tableItems[i.index].isEdit&&(t.selectedCell===e.key||"row"===t.editMode)&&e.editable?n("b-form-checkbox",t._b({directives:[{name:"focus",rawName:"v-focus",value:"checkbox",expression:"'checkbox'"}],key:r,attrs:{checked:t.tableItems[i.index][e.key]},on:{change:function(n){return t.inputHandler(n,i,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,r,i)}}},"b-form-checkbox",Object.assign({},e),!1)):"rating"===e.type&&e.type&&t.tableItems[i.index].isEdit&&(t.selectedCell===e.key||"row"===t.editMode)&&e.editable?n("b-form-rating",t._b({directives:[{name:"focus",rawName:"v-focus"}],key:r,attrs:{type:e.type,value:t.tableItems[i.index][e.key]},on:{keydown:function(e){return t.handleKeydown(e,r,i)},change:function(n){return t.inputHandler(n,i,e.key)}}},"b-form-rating",Object.assign({},e),!1)):e.type&&t.tableItems[i.index].isEdit&&(t.selectedCell===e.key||"row"===t.editMode)&&e.editable?n("b-form-input",t._b({directives:[{name:"focus",rawName:"v-focus"}],key:r,attrs:{type:e.type,value:t.tableItems[i.index][e.key]},on:{keydown:function(e){return t.handleKeydown(e,r,i)},input:function(n){return t.inputHandler(n,i,e.key)}}},"b-form-input",Object.assign({},e),!1)):n("div",{key:r,staticClass:"data-cell",on:t._d({},[t.editTrigger,function(n){return t.handleEditCell(n,i.index,e.key)}])},[t.$scopedSlots["cell("+e.key+")"]?t._t("cell("+e.key+")",null,null,i):[t._v(t._s(t.getValue(i,e)))]],2)]}}}))],null,!0)},"b-table",Object.assign({},t.$props,t.$attrs),!1),t.handleListeners(t.$listeners)))},staticRenderFns:[]},(function(t){t&&t("data-v-43311d3a_0",{source:"table.b-table{width:unset}table.b-table td{padding:0}.data-cell{display:flex;width:100%;height:100%}",map:void 0,media:void 0})}),Bu,undefined,false,undefined,!1,Nu,void 0,void 0),Wu=function(){var t=Gu;return t.install=function(e){e.component("BEditableTable",t)},t}(),Uu=Object.freeze({__proto__:null,default:Wu});return Object.entries(Uu).forEach((function(t){var e=a(t,2),n=e[0],r=e[1];"default"!==n&&(Wu[n]=r)})),Wu}(Vue); \ No newline at end of file diff --git a/dist/b-editable-table.ssr.js b/dist/b-editable-table.ssr.js index 17c6be1..c2bebad 100644 --- a/dist/b-editable-table.ssr.js +++ b/dist/b-editable-table.ssr.js @@ -11821,7 +11821,15 @@ var BTable = /*#__PURE__*/Vue__default['default'].extend({ props: { fields: Array, items: Array, - value: Array + value: Array, + editMode: { + type: String, + default: 'cell' + }, + editTrigger: { + type: String, + default: 'click' + } }, directives: { focus: { @@ -11888,7 +11896,7 @@ var BTable = /*#__PURE__*/Vue__default['default'].extend({ this.selectedCell = name; }, handleKeydown: function handleKeydown(e, index, data) { - if (e.code === "Tab") { + if (e.code === "Tab" && this.editMode === 'cell') { e.preventDefault(); var fieldIndex = this.fields.length - 1 === index ? 0 : index + 1; var rowIndex = this.fields.length - 1 === index ? data.index + 1 : data.index; @@ -12126,7 +12134,7 @@ var __vue_render__ = function __vue_render__() { return { key: "cell(" + field.key + ")", fn: function fn(data) { - return [field.type === 'date' && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-datepicker', _vm._b({ + return [field.type === 'date' && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-datepicker', _vm._b({ directives: [{ name: "focus", rawName: "v-focus", @@ -12148,7 +12156,7 @@ var __vue_render__ = function __vue_render__() { return _vm.handleKeydown($event, index, data); } } - }, 'b-form-datepicker', Object.assign({}, field), false)) : field.type === 'select' && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-select', _vm._b({ + }, 'b-form-datepicker', Object.assign({}, field), false)) : field.type === 'select' && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-select', _vm._b({ directives: [{ name: "focus", rawName: "v-focus" @@ -12167,7 +12175,7 @@ var __vue_render__ = function __vue_render__() { return _vm.handleKeydown($event, index, data); } } - }, 'b-form-select', Object.assign({}, field), false)) : field.type === 'checkbox' && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-checkbox', _vm._b({ + }, 'b-form-select', Object.assign({}, field), false)) : field.type === 'checkbox' && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-checkbox', _vm._b({ directives: [{ name: "focus", rawName: "v-focus", @@ -12188,7 +12196,7 @@ var __vue_render__ = function __vue_render__() { return _vm.handleKeydown($event, index, data); } } - }, 'b-form-checkbox', Object.assign({}, field), false)) : field.type === 'rating' && field.type && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-rating', _vm._b({ + }, 'b-form-checkbox', Object.assign({}, field), false)) : field.type === 'rating' && field.type && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-rating', _vm._b({ directives: [{ name: "focus", rawName: "v-focus" @@ -12206,7 +12214,7 @@ var __vue_render__ = function __vue_render__() { return _vm.inputHandler(value, data, field.key); } } - }, 'b-form-rating', Object.assign({}, field), false)) : field.type && _vm.tableItems[data.index].isEdit && _vm.selectedCell === field.key && field.editable ? _c('b-form-input', _vm._b({ + }, 'b-form-rating', Object.assign({}, field), false)) : field.type && _vm.tableItems[data.index].isEdit && (_vm.selectedCell === field.key || _vm.editMode === 'row') && field.editable ? _c('b-form-input', _vm._b({ directives: [{ name: "focus", rawName: "v-focus" @@ -12227,11 +12235,9 @@ var __vue_render__ = function __vue_render__() { }, 'b-form-input', Object.assign({}, field), false)) : _c('div', { key: index, staticClass: "data-cell", - on: { - "click": function click($event) { - return _vm.handleEditCell($event, data.index, field.key); - } - } + on: _vm._d({}, [_vm.editTrigger, function ($event) { + return _vm.handleEditCell($event, data.index, field.key); + }]) }, [_vm.$scopedSlots["cell(" + field.key + ")"] ? _vm._t("cell(" + field.key + ")", null, null, data) : [_vm._v(_vm._s(_vm.getValue(data, field)))]], 2)]; } }; @@ -12244,7 +12250,7 @@ var __vue_staticRenderFns__ = []; var __vue_inject_styles__ = function __vue_inject_styles__(inject) { if (!inject) return; - inject("data-v-87d2cda4_0", { + inject("data-v-43311d3a_0", { source: "table.b-table{width:unset}table.b-table td{padding:0}.data-cell{display:flex;width:100%;height:100%}", map: undefined, media: undefined @@ -12256,7 +12262,7 @@ var __vue_inject_styles__ = function __vue_inject_styles__(inject) { var __vue_scope_id__ = undefined; /* module identifier */ -var __vue_module_identifier__ = "data-v-87d2cda4"; +var __vue_module_identifier__ = "data-v-43311d3a"; /* functional template */ var __vue_is_functional_template__ = false; diff --git a/package.json b/package.json index e178d3a..7096c59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap-vue-editable-table", - "version": "0.1.2-beta.1", + "version": "0.1.2-beta.2", "description": "A Bootstrap Vue editable table for editing cells using built-in Bootstrap form elements", "repository": { "type": "git",