From 8ad030b96f202156e3e05181925ff8ac06c336f2 Mon Sep 17 00:00:00 2001 From: Muhi Masri Date: Thu, 3 Nov 2022 10:01:48 -0400 Subject: [PATCH 1/2] Add data param to validattion --- package.json | 2 +- src/b-editable-table.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6deffd9..675aeb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap-vue-editable-table", - "version": "0.1.7", + "version": "0.1.8", "description": "A Bootstrap Vue editable table for editing cells using built-in Bootstrap form elements", "author": "Muhi Masri", "scripts": { diff --git a/src/b-editable-table.vue b/src/b-editable-table.vue index 1c2f48a..9cc19c1 100644 --- a/src/b-editable-table.vue +++ b/src/b-editable-table.vue @@ -308,7 +308,7 @@ export default Vue.extend({ } const validity = data.field.validate - ? data.field.validate(changedValue) + ? data.field.validate(changedValue, data) : { valid: true } const fields = this.tableMap[data.item.id].fields fields[key].validity.valid = true From 59d5e8e2a6c8ce7bd47856d0ed9ab67286252692 Mon Sep 17 00:00:00 2001 From: Muhi Masri Date: Thu, 3 Nov 2022 10:39:28 -0400 Subject: [PATCH 2/2] Update readme --- README.md | 19 +-- dist/b-editable-table.esm.js | 54 ++------- dist/b-editable-table.min.js | 2 +- dist/b-editable-table.ssr.js | 226 ++++++++++++++++------------------- package.json | 2 +- 5 files changed, 120 insertions(+), 183 deletions(-) diff --git a/README.md b/README.md index bc58391..02fcd3c 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,15 @@ BootstrapVue Editable Table provides new features to [BootstrapVue Table](https://bootstrap-vue.org/docs/components/table) that easily enable cell/row editing, input validation, and other gems while keeping existing functionalities of the original table intact! -* [Get Started](https://b-editable-table.muhimasri.com) -* **Examples on CodeSandbox**: - * [Edit Cell](https://codesandbox.io/s/bootstrap-vue-editable-table-wx012?file=/src/App.vue) - * [Edit Row](https://codesandbox.io/s/bootstrap-vue-row-editing-7w1scn?file=/src/App.vue) - * [Add, Update and Remove Rows](https://codesandbox.io/s/vue-add-remove-table-rows-chtnj?file=/src/App.vue) - * [Input Validation](https://codesandbox.io/s/vue-table-validation-pcysqz?file=/src/App.vue) - * [Load Data via Rest API](https://codesandbox.io/s/vue-table-load-data-api-cub6i) +- **Get Started**: + - [Setup](https://b-editable-table.muhimasri.com/guide/) + - [Basic Usage](https://b-editable-table.muhimasri.com/guide/basic-usage.html) + - [Playground](https://b-editable-table.muhimasri.com/) +- **Code Examples**: + - [Edit Cell](https://b-editable-table.muhimasri.com/guide/basic-usage.html) + - [Edit Row](https://b-editable-table.muhimasri.com/guide/row-editing.html) + - [Add, Update and Remove Rows](https://b-editable-table.muhimasri.com/guide/add-update-and-remove-rows.html) + - [Input Validation](https://b-editable-table.muhimasri.com/guide/input-validation.html) + - [Load Data via Rest API](https://b-editable-table.muhimasri.com/guide/load-data-via-rest-api.html) -![Demo](https://github.com/muhimasri/b-editable-table/blob/main/images/demo.gif) \ No newline at end of file +![Demo](https://github.com/muhimasri/b-editable-table/blob/main/images/demo.gif) diff --git a/dist/b-editable-table.esm.js b/dist/b-editable-table.esm.js index 0106ad2..b33f081 100644 --- a/dist/b-editable-table.esm.js +++ b/dist/b-editable-table.esm.js @@ -49,7 +49,6 @@ IS_BROWSER && 'IntersectionObserver' in WINDOW && 'IntersectionObserverEntry' in 'intersectionRatio' in WINDOW.IntersectionObserverEntry.prototype; var PROP_NAME = '$bvConfig'; -var DEFAULT_BREAKPOINT = ['xs', 'sm', 'md', 'lg', 'xl']; // --- General --- var RX_ARRAY_NOTATION = /\[(\d+)]/g; @@ -230,9 +229,6 @@ function _defineProperty$G(obj, key, value) { if (key in obj) { Object.definePro var assign = function assign() { return Object.assign.apply(Object, arguments); }; -var create = function create(proto, optionalProps) { - return Object.create(proto, optionalProps); -}; var defineProperties = function defineProperties(obj, props) { return Object.defineProperties(obj, props); }; @@ -844,18 +840,6 @@ var attemptBlur = function attemptBlur(el) { return !isActiveElement(el); }; -var memoize = function memoize(fn) { - var cache = create(null); - return function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var argsKey = JSON.stringify(args); - return cache[argsKey] = cache[argsKey] || fn.apply(null, args); - }; -}; - var VueProto = Vue.prototype; // --- Getter methods --- var getConfigValue = function getConfigValue(key) { @@ -872,26 +856,6 @@ var getComponentConfig = function getComponentConfig(key) { return propKey ? getConfigValue("".concat(key, ".").concat(propKey), defaultValue) : getConfigValue(key, {}); }; // Get all breakpoint names -var getBreakpoints = function getBreakpoints() { - return getConfigValue('breakpoints', DEFAULT_BREAKPOINT); -}; // Private method for caching breakpoint names - -var _getBreakpointsCached = memoize(function () { - return getBreakpoints(); -}); // Get all breakpoint names (cached) - - -var getBreakpointsCached = function getBreakpointsCached() { - return cloneDeep(_getBreakpointsCached()); -}; // Get breakpoints with the smallest breakpoint set as '' -// Useful for components that create breakpoint specific props - -memoize(function () { - var breakpoints = getBreakpointsCached(); - breakpoints[0] = ''; - return breakpoints; -}); // Get breakpoints with the largest breakpoint set as '' - function ownKeys$x(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread$x(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$x(Object(source), true).forEach(function (key) { _defineProperty$E(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$x(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -5947,8 +5911,6 @@ Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; Popper.placements = placements; Popper.Defaults = Defaults; -var Popper$1 = Popper; - var PLACEMENT_TOP_START = 'top-start'; var PLACEMENT_TOP_END = 'top-end'; var PLACEMENT_BOTTOM_START = 'bottom-start'; @@ -6281,7 +6243,7 @@ var dropdownMixin = Vue.extend({ if (!this.inNavbar) { - if (typeof Popper$1 === 'undefined') { + if (typeof Popper === 'undefined') { /* istanbul ignore next */ warn('Popper.js not found. Falling back to CSS positioning', NAME_DROPDOWN); } else { @@ -6315,7 +6277,7 @@ var dropdownMixin = Vue.extend({ }, createPopper: function createPopper(element) { this.destroyPopper(); - this.$_popper = new Popper$1(element, this.$refs.menu, this.getPopperConfig()); + this.$_popper = new Popper(element, this.$refs.menu, this.getPopperConfig()); }, // Ensure popper event listeners are removed cleanly destroyPopper: function destroyPopper() { @@ -9043,7 +9005,7 @@ var BVPopper = /*#__PURE__*/Vue.extend({ this.destroyPopper(); // We use `el` rather than `this.$el` just in case the original // mountpoint root element type was changed by the template - this.$_popper = new Popper$1(this.target, el, this.popperConfig); + this.$_popper = new Popper(this.target, el, this.popperConfig); }, destroyPopper: function destroyPopper() { this.$_popper && this.$_popper.destroy(); @@ -13878,7 +13840,7 @@ var script = Vue.extend({ changedValue = selectedValue ? selectedValue.value : value; } - const validity = data.field.validate ? data.field.validate(changedValue) : { + const validity = data.field.validate ? data.field.validate(changedValue, data) : { valid: true }; const fields = this.tableMap[data.item.id].fields; @@ -14373,7 +14335,7 @@ var __vue_staticRenderFns__ = []; const __vue_inject_styles__ = function (inject) { if (!inject) return; - inject("data-v-7a52295e_0", { + inject("data-v-356900af_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 @@ -14398,8 +14360,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({ staticRenderFns: __vue_staticRenderFns__ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined); -var component = __vue_component__; - // Import vue component // Default export is installable instance of component. @@ -14407,7 +14367,7 @@ var component = __vue_component__; // to be registered via Vue.use() as well as Vue.component(), var entry_esm = /*#__PURE__*/(() => { // Assign InstallableComponent type - const installable = component; // Attach install function executed by Vue.use() + const installable = __vue_component__; // Attach install function executed by Vue.use() installable.install = Vue => { Vue.component('BEditableTable', installable); @@ -14418,4 +14378,4 @@ var entry_esm = /*#__PURE__*/(() => { // also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo'; // export const RollupDemoDirective = directive; -export { entry_esm as default }; +export default entry_esm; diff --git a/dist/b-editable-table.min.js b/dist/b-editable-table.min.js index 1535e38..ec7dbc4 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 i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n]+)>)/gi,x=/\B([A-Z])/g,$=/([a-z])([A-Z])/g,E=/^[0-9]*\.?[0-9]+$/,F=/[-/\\^$*+?.()|[\]{}]/g,I=/[\s\uFEFF\xA0]+/g,M=/(\s|^)(\w)/g,_=/_/g,L=/-(\w)/g,R=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,V=/-|\s|T/,A=/%2C/g,B=/[!'()*]/g,H=/^BIcon/,N=/-u-.+/;function z(t){return z="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},z(t)}function Y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G(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&&J(t,e)}function W(t){var e=X();return function(){var n,i=Z(t);if(e){var r=Z(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return U(this,n)}}function U(t,e){return!e||"object"!==z(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 q(t){var e="function"==typeof Map?new Map:void 0;return q=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,i)}function i(){return K(t,arguments,Z(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),J(i,t)},q(t)}function K(t,e,n){return K=X()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&J(r,n.prototype),r},K.apply(null,arguments)}function X(){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 J(t,e){return J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},J(t,e)}function Z(t){return Z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Z(t)}var Q=b?g.Element:function(t){G(n,t);var e=W(n);function n(){return Y(this,n),e.apply(this,arguments)}return n}(q(Object)),tt=b?g.HTMLElement:function(t){G(n,t);var e=W(n);function n(){return Y(this,n),e.apply(this,arguments)}return n}(Q),et=b?g.SVGElement:function(t){G(n,t);var e=W(n);function n(){return Y(this,n),e.apply(this,arguments)}return n}(Q);function nt(t){return nt="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},nt(t)}b&&g.File;var it=function(t){return nt(t)},rt=function(t){return void 0===t},ot=function(t){return null===t},at=function(t){return rt(t)||ot(t)},st=function(t){return"function"===it(t)},lt=function(t){return"boolean"===it(t)},ct=function(t){return"string"===it(t)},ut=function(t){return"number"===it(t)},dt=function(t){return Array.isArray(t)},ht=function(t){return null!==t&&"object"===nt(t)},ft=function(t){return"[object Object]"===Object.prototype.toString.call(t)},pt=function(t){return t instanceof Date},bt=function(t){return t instanceof Event},mt=function(t){return"RegExp"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)};function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function yt(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:e;return dt(e)?e.reduce((function(e,n){return[].concat(It(e),[t(n,n)])}),[]):ft(e)?St(e).reduce((function(n,i){return Et(Et({},n),{},Ft({},i,t(e[i],e[i])))}),{}):n},Lt=function(t){return t},Rt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!(e=dt(e)?e.join("."):e)||!ht(t))return n;if(e in t)return t[e];var i=(e=String(e).replace(k,".$1")).split(".").filter(Lt);return 0===i.length?n:i.every((function(e){return ht(t)&&e in t&&!at(t=t[e])}))?t:ot(t)?null:n},Vt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=Rt(t,e);return at(i)?n:i},At=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},Bt=function(){return At("BOOTSTRAP_VUE_NO_WARN")||"production"===At("NODE_ENV")},Ht=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Bt()||console.warn("[BootstrapVue warn]: ".concat(e?"".concat(e," - "):"").concat(t))},Nt="BButton",zt="BCalendar",Yt="BDropdown",Gt="BFormCheckbox",Wt="BFormDatepicker",Ut="BFormInput",qt="BFormRating",Kt="BFormSelect",Xt="BFormSelectOption",Jt="BFormSelectOptionGroup",Zt="BIcon",Qt="BLink",te="BTable",ee="BTableCell",ne="BTbody",ie="BTfoot",re="BThead",oe="BTooltip",ae="change",se="click",le="close",ce="context",ue="context-changed",de="disable",he="disabled",fe="enable",pe="enabled",be="filtered",me="focusin",ve="focusout",ye="head-clicked",ge="hidden",Oe="hide",we="input",Te="mouseenter",Se="mouseleave",je="open",ke="refreshed",Pe="row-clicked",De="selected",Ce="show",xe="shown",$e="hook:beforeDestroy",Ee="hook:destroyed",Fe="bv",Ie={passive:!0,capture:!1},Me=void 0,_e=Array,Le=Boolean,Re=Date,Ve=Function,Ae=Number,Be=Object,He=RegExp,Ne=String,ze=[_e,Ve],Ye=[_e,Be],Ge=[_e,Be,Ne],We=[_e,Ne],Ue=[Le,Ne],qe=[Re,Ne],Ke=[Ae,Ne],Xe=[Ae,Be,Ne],Je=[Be,Ve],Ze=[Be,Ne],Qe="bottom-row",tn="button-content",en="custom-foot",nn="default",rn="first",on="row-details",an="table-busy",sn="table-caption",ln="table-colgroup",cn="thead-top",un="top-row",dn=function(){return Array.from.apply(Array,arguments)},hn=function(t,e){return-1!==t.indexOf(e)},fn=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},bn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseFloat(t);return isNaN(n)?e:n},mn=function(t){return t.replace(x,"-$1").toLowerCase()},vn=function(t){return(t=mn(t).replace(L,(function(t,e){return e?e.toUpperCase():""}))).charAt(0).toUpperCase()+t.slice(1)},yn=function(t){return t.replace(_," ").replace($,(function(t,e,n){return e+" "+n})).replace(M,(function(t,e,n){return e+n.toUpperCase()}))},gn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return at(t)?"":dt(t)||ft(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,e):String(t)},On=function(t){return gn(t).trim()},wn=Q.prototype,Tn=wn.matches||wn.msMatchesSelector||wn.webkitMatchesSelector,Sn=wn.closest||function(t){var e=this;do{if($n(e,t))return e;e=e.parentElement||e.parentNode}while(!ot(e)&&e.nodeType===Node.ELEMENT_NODE);return null},jn=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.msRequestAnimationFrame||g.oRequestAnimationFrame||function(t){return setTimeout(t,16)};g.MutationObserver||g.WebKitMutationObserver||g.MozMutationObserver;var kn=function(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE)},Pn=function(t,e){return gn(t).toLowerCase()===gn(e).toLowerCase()},Dn=function(t){return kn(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}()},Cn=function(t){if(!kn(t)||!t.parentNode||!Fn(O.body,t))return!1;if("none"===An(t,"display"))return!1;var e=Bn(t);return!!(e&&e.height>0&&e.width>0)},xn=function(t,e){return(kn(e)?e:O).querySelector(t)||null},$n=function(t,e){return!!kn(t)&&Tn.call(t,e)},En=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!kn(e))return null;var i=Sn.call(e,t);return n?i:i===e?null:i},Fn=function(t,e){return!(!t||!st(t.contains))&&t.contains(e)},In=function(t){return O.getElementById(/^#/.test(t)?t.slice(1):t)||null},Mn=function(t,e){return!!(e&&kn(t)&&t.classList)&&t.classList.contains(e)},_n=function(t,e,n){e&&kn(t)&&t.setAttribute(e,n)},Ln=function(t,e){e&&kn(t)&&t.removeAttribute(e)},Rn=function(t,e){return e&&kn(t)?t.getAttribute(e):null},Vn=function(t,e){return e&&kn(t)?t.hasAttribute(e):null},An=function(t,e){return e&&kn(t)&&t.style[e]||null},Bn=function(t){return kn(t)?t.getBoundingClientRect():null},Hn=function(){return g.getSelection?g.getSelection():null},Nn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t.focus(e)}catch(t){}return Dn(t)},zn=function(t){try{t.blur()}catch(t){}return!Dn(t)},Yn=function(t){var e,n,i=(e=null,Object.create(e,n));return function(){for(var e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:void 0,n=Gn.$bvConfig;return n?n.getConfigValue(t,e):_t(e)},Un=Yn((function(){return Wn("breakpoints",j)}));function qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Kn(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:Me,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,r=!0===n;return i=r?i:n,Kn(Kn(Kn({},t?{type:t}:{}),r?{required:r}:rt(e)?{}:{default:ht(e)?function(){return e}:e}),rt(i)?{}:{validator:i})},Zn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt;return(dt(t)?t.slice():St(t)).reduce((function(t,i){return t[n(i)]=e[i],t}),{})},Qn=function(t,e,n){return Kn(Kn({},_t(t)),{},{default:function(){var i=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?Wn("".concat(t,".").concat(e),n):Wn(t,{})}(n,e,t.default);return st(i)?i():i}})},ti=function(t,e){return St(t).reduce((function(n,i){return Kn(Kn({},n),{},Xn({},i,Qn(t[i],i,e)))}),{})},ei=Qn({},"","").default.name,ni=function(t){return st(t)&&t.name!==ei};function ii(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ri=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.type,r=void 0===i?Me:i,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?we:c,d=ii({},t,Jn(r,a,l)),h=n.default.extend({model:{prop:t,event:u},props:d});return{mixin:h,props:d,prop:t,event:u}},oi=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=fn(t).filter(Lt)).some((function(t){return e[t]||n[t]}))},ai=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=fn(t).filter(Lt);for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:nn,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 oi(t,e,n)},normalizeSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nn,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,r=ai(t,e,n,i);return r?fn(r):r}}}),li=function(t){return S?ht(t)?t:{capture:!!t||!1}:!!(ht(t)?t.capture:t)},ci=function(t,e,n,i){t&&t.addEventListener&&t.addEventListener(e,n,li(i))},ui=function(t,e,n,i){t&&t.removeEventListener&&t.removeEventListener(e,n,li(i))},di=function(t){for(var e=t?ci:ui,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventDefault,i=void 0===n||n,r=e.propagation,o=void 0===r||r,a=e.immediatePropagation,s=void 0!==a&&a;i&&t.preventDefault(),o&&t.stopPropagation(),s&&t.stopImmediatePropagation()},fi=function(t){return mn(t.replace(P,""))},pi=function(t,e){return[Fe,fi(t),e].join("::")},bi=function(t,e){return[Fe,e,fi(t)].join("::")};function mi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function vi(t){for(var e=1;e'),Bi=Ri("CalendarFill",''),Hi=Ri("ChevronBarLeft",''),Ni=Ri("ChevronDoubleLeft",''),zi=Ri("ChevronDown",''),Yi=Ri("ChevronLeft",''),Gi=Ri("CircleFill",''),Wi=Ri("Star",''),Ui=Ri("StarFill",''),qi=Ri("StarHalf",''),Ki=Ri("X",'');function Xi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ji(t){for(var e=1;e1?n-1:0),r=1;rt.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=t.rel;return"_blank"===e&&ot(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,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(e)return e;if(Ci(i))return null;if(ct(n))return n||o;if(ft(n)&&(n.path||n.query||n.hash)){var a=gn(n.path),s=Di(n.query),l=gn(n.hash);return l=l&&"#"!==l.charAt(0)?"#".concat(l):l,"".concat(a).concat(s).concat(l)||o}return r}({to:this.to,href:this.href},this.computedTag)},computedProps:function(){var t=this.prefetch;return this.isRouterLink?gr(gr({},Zn(gr(gr({},Tr),Sr),this)),{},{prefetch:lt(t)?t:void 0,tag:this.routerTag}):{}},computedAttrs:function(){var t=this.bvAttrs,e=this.computedHref,n=this.computedRel,i=this.disabled,r=this.target,o=this.routerTag,a=this.isRouterLink;return gr(gr(gr(gr({},t),e?{href:e}:{}),a&&!Pn(o,"a")?{}:{rel:n,target:r}),{},{tabindex:i?"-1":rt(t.tabindex)?null:t.tabindex,"aria-disabled":i?"true":null})},computedListeners:function(){return gr(gr({},this.bvListeners),{},{click:this.onClick})}},methods:{onClick:function(t){var e=arguments,n=bt(t),i=this.isRouterLink,r=this.bvListeners.click;n&&this.disabled?hi(t,{immediatePropagation:!0}):(i&&t.currentTarget.__vue__&&t.currentTarget.__vue__.$emit(se,t),fn(r).filter((function(t){return st(t)})).forEach((function(t){t.apply(void 0,mr(e))})),this.emitOnRoot(wr,t),this.emitOnRoot("clicked::link",t)),n&&!i&&"#"===this.computedHref&&hi(t,{propagation:!1})},focus:function(){Nn(this.$el)},blur:function(){zn(this.$el)}},render:function(t){var e=this.active,n=this.disabled;return t(this.computedTag,Or({class:{active:e,disabled:n},attrs:this.computedAttrs,props:this.computedProps},this.isRouterLink?"nativeOn":"on",this.computedListeners),this.normalizeSlot())}});function Pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Dr(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(C,"")},Hr=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}},Nr="gregory",zr="long",Yr="short",Gr="2-digit",Wr="numeric";function Ur(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=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return qr(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 qr(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 qr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t=to(t),e=to(e)||t,n=to(n)||t,t?tn?n:t:null},bo=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(t){return t.toLowerCase()})),mo=function(t){var e=gn(t).toLowerCase().replace(N,"").split("-"),n=e.slice(0,2).join("-"),i=e[0];return hn(bo,n)||hn(bo,i)},vo={id:Jn(Ne)},yo=n.default.extend({props:vo,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 go(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Oo(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:Nr;return t=fn(t).filter(Lt),new Intl.DateTimeFormat(t,{calendar:e}).resolvedOptions().locale}(fn(this.locale).filter(Lt),Nr)},computedDateDisabledFn:function(){var t=this.dateDisabledFn;return ni(t)?t:function(){return!1}},computedDateInfoFn:function(){var t=this.dateInfoFn;return ni(t)?t:function(){return{}}},calendarLocale:function(){var t=new Intl.DateTimeFormat(this.computedLocale,{calendar:Nr}),e=t.resolvedOptions().calendar,n=t.resolvedOptions().locale;return e!==Nr&&(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 Qr(this.calendarYear,this.calendarMonth,1,12)},calendarDaysInMonth:function(){var t=Qr(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=gn(this.direction).toLowerCase();return"rtl"===t||"ltr"!==t&&mo(this.computedLocale)},context:function(){var t=this.selectedYMD,e=this.activeYMD,n=to(t),i=to(e);return{selectedYMD:t,selectedDate:n,selectedFormatted:n?this.formatDateString(n):this.labelNoDateSelected,activeYMD:e,activeDate:i,activeFormatted:i?this.formatDateString(i):"",disabled:this.dateDisabled(i),locale:this.computedLocale,calendarLocale:this.calendarLocale,rtl:this.isRTL}},dateOutOfRange:function(){var t=this.computedMin,e=this.computedMax;return function(n){return n=to(n),t&&ne}},dateDisabled:function(){var t=this,e=this.dateOutOfRange;return function(n){n=to(n);var i=eo(n);return!(!e(n)&&!t.computedDateDisabledFn(i,n))}},formatDateString:function(){return no(this.calendarLocale,Oo(Oo({year:Wr,month:Gr,day:Gr},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:Nr}))},formatYearMonth:function(){return no(this.calendarLocale,{year:Wr,month:zr,calendar:Nr})},formatWeekdayName:function(){return no(this.calendarLocale,{weekday:zr,calendar:Nr})},formatWeekdayNameShort:function(){return no(this.calendarLocale,{weekday:this.weekdayHeaderFormat||Yr,calendar:Nr})},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&&oo(ho(this.activeDate))t},nextYearDisabled:function(){var t=this.computedMax;return this.disabled||t&&ro(uo(this.activeDate))>t},nextDecadeDisabled:function(){var t=this.computedMax;return this.disabled||t&&ro(fo(this.activeDate))>t},calendar:function(){for(var t=[],e=this.calendarFirstDay,n=e.getFullYear(),i=e.getMonth(),r=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 Fo=$o&&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()}),Eo))}};function Io(t){return t&&"[object Function]"==={}.toString.call(t)}function Mo(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function _o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function Lo(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Mo(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?t:Lo(_o(t))}function Ro(t){return t&&t.referenceNode?t.referenceNode:t}var Vo=$o&&!(!window.MSInputMethodContext||!document.documentMode),Ao=$o&&/MSIE 10/.test(navigator.userAgent);function Bo(t){return 11===t?Vo:10===t?Ao:Vo||Ao}function Ho(t){if(!t)return document.documentElement;for(var e=Bo(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Mo(n,"position")?Ho(n):n:t?t.ownerDocument.documentElement:document.documentElement}function No(t){return null!==t.parentNode?No(t.parentNode):t}function zo(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Ho(a.firstElementChild)!==a?Ho(l):l;var c=No(t);return c.host?zo(c.host,e):zo(t,No(e).host)}function Yo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||r;return o[n]}return t[n]}function Go(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Yo(e,"top"),r=Yo(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function Wo(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function Uo(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Bo(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function qo(t){var e=t.body,n=t.documentElement,i=Bo(10)&&getComputedStyle(n);return{height:Uo("Height",e,n,i),width:Uo("Width",e,n,i)}}var Ko=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Xo=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=Bo(10),r="HTML"===e.nodeName,o=ta(t),a=ta(e),s=Lo(t),l=Mo(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Qo({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,!i&&r){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(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=Go(d,e)),d}function na(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=ea(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:Yo(n),s=e?0:Yo(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o};return Qo(l)}function ia(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Mo(t,"position"))return!0;var n=_o(t);return!!n&&ia(n)}function ra(t){if(!t||!t.parentElement||Bo())return document.documentElement;for(var e=t.parentElement;e&&"none"===Mo(e,"transform");)e=e.parentElement;return e||document.documentElement}function oa(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?ra(t):zo(t,Ro(e));if("viewport"===i)o=na(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=Lo(_o(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var l=ea(s,a,r);if("HTML"!==s.nodeName||ia(a))o=l;else{var c=qo(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 aa(t){return t.width*t.height}function sa(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=oa(n,i,o,r),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 Zo({key:t},s[t],{area:aa(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function la(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?ra(e):zo(e,Ro(n));return ea(n,r,i)}function ca(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function ua(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 da(t,e,n){n=n.split("-")[0];var i=ca(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[a]=e[a]+e[l]/2-i[l]/2,r[s]=n===s?e[s]-i[c]:e[ua(s)],r}function ha(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function fa(t,e,n){var i=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 i=ha(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n));return i.forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&Io(n)&&(e.offsets.popper=Qo(e.offsets.popper),e.offsets.reference=Qo(e.offsets.reference),e=n(e,t))})),e}function pa(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=la(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=sa(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=da(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=fa(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function ba(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function ma(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=Ca.indexOf(t),i=Ca.slice(n+1).concat(Ca.slice(0,n));return e?i.reverse():i}var $a="flip",Ea="clockwise",Fa="counterclockwise";function Ia(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(ha(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,i){var r=(1===i?!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,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return t;if(0===a.indexOf("%")){return Qo("%p"===a?n:i)[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,r,e,n)}))})),c.forEach((function(t,e){t.forEach((function(n,i){Sa(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))}))})),r}var Ma={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:Jo({},l,o[l]),end:Jo({},l,o[l]+o[c]-a[c])};t.offsets.popper=Zo({},a,u[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=Sa(+n)?[+n,0]:Ia(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||Ho(t.instance.popper);t.instance.reference===n&&(n=Ho(n));var i=ma("transform"),r=t.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=oa(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=a,r[i]=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&&(i=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),Jo({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=Zo({},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,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]o(i[s])&&(t.offsets.popper[l]=o(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Pa(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=ca(i)[c];s[f]-pa[f]&&(t.offsets.popper[d]+=s[d]+p-a[f]),t.offsets.popper=Qo(t.offsets.popper);var b=s[d]+s[c]/2-p/2,m=Mo(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=i,t.offsets.arrow=(Jo(n={},d,Math.round(g)),Jo(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(ba(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=oa(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=ua(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case $a:a=[i,r];break;case Ea:a=xa(i);break;case Fa:a=xa(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],r=ua(i);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)d(u.top)||"bottom"===i&&d(c.top)d(n.right),b=d(c.top)d(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&b||"bottom"===i&&m,y=-1!==["top","bottom"].indexOf(i),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)&&(i=a[l+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=Zo({},t.offsets.popper,da(t.instance.popper,t.offsets.reference,t.placement)),t=fa(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],i=t.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),t.placement=ua(e),t.offsets.popper=Qo(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Pa(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=ha(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]:{};Ko(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Fo(this.update.bind(this)),this.options=Zo({},t.Defaults,r),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(Zo({},t.Defaults.modifiers,r.modifiers)).forEach((function(e){i.options.modifiers[e]=Zo({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Zo({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&Io(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Xo(t,[{key:"update",value:function(){return pa.call(this)}},{key:"destroy",value:function(){return va.call(this)}},{key:"enableEventListeners",value:function(){return wa.call(this)}},{key:"disableEventListeners",value:function(){return Ta.call(this)}}]),t}();La.Utils=("undefined"!=typeof window?window:global).PopperUtils,La.placements=Da,La.Defaults=_a;var Ra=La;function Va(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Aa(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(Va(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));Ot(this,t.Defaults,this.constructor.Defaults,n,{type:e}),wt(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 i=!1;this.preventDefault=function(){this.cancelable&&(i=!0)},Tt(this,"defaultPrevented",{enumerable:!0,get:function(){return i}})}var e,n,i;return e=t,i=[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}],(n=null)&&Aa(e.prototype,n),i&&Aa(e,i),t}(),Ha=n.default.extend({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(ui(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ie),t&&ci(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ie))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&ci(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ie)},beforeDestroy:function(){ui(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ie)},methods:{isClickOut:function(t){return!Fn(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}}),Na=n.default.extend({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(ui(this.focusInElement,"focusin",this._focusInHandler,Ie),t&&ci(this.focusInElement,"focusin",this._focusInHandler,Ie))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&ci(this.focusInElement,"focusin",this._focusInHandler,Ie)},beforeDestroy:function(){ui(this.focusInElement,"focusin",this._focusInHandler,Ie)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}});function za(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ya(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once(ge,this.focusToggler))},toggle:function(t){var e=t=t||{},n=e.type,i=e.keyCode;("click"===n||"keydown"===n&&-1!==[rr,or,ir].indexOf(i))&&(this.disabled?this.visible=!1:(this.$emit("toggle",t),hi(t),this.visible?this.hide(!0):this.show()))},onMousedown:function(t){hi(t,{propagation:!1})},onKeydown:function(t){var e=t.keyCode;27===e?this.onEsc(t):e===ir?this.focusNext(t,!1):e===ar&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,hi(t),this.$once(ge,this.focusToggler))},onSplitClick:function(t){this.disabled?this.visible=!1:this.$emit(se,t)},hideHandler:function(t){var e=this,n=t.target;!this.visible||Fn(this.$refs.menu,n)||Fn(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,i=t.target;!this.visible||t&&En(".dropdown form",i)||(hi(t),this.$nextTick((function(){var t=n.getItems();if(!(t.length<1)){var r=t.indexOf(i);e&&r>0?r--:!e&&r1&&void 0!==arguments[1]?arguments[1]:null;if(ft(t)){var n=Vt(t,this.valueField),i=Vt(t,this.textField);return{value:rt(n)?e||i:n,text:Br(String(rt(i)?e:i)),html:Vt(t,this.htmlField),disabled:Boolean(Vt(t,this.disabledField))}}return{value:e||t,text:Br(String(t)),disabled:!1}},normalizeOptions:function(t){var e=this;return dt(t)?t.map((function(t){return e.normalizeOption(t)})):ft(t)?(Ht('Setting prop "options" to an object is deprecated. Use the array format instead.',this.$options.name),St(t).map((function(n){return e.normalizeOption(t[n]||{},n)}))):[]}}}),es=function(t,e){for(var n=0;n-1:lr(e,t)},isRadio:function(){return!1}},watch:js({},ks,(function(t,e){lr(t,e)||this.setIndeterminate(t)})),mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{computedLocalCheckedWatcher:function(t,e){if(!lr(t,e)){this.$emit(gs,t);var n=this.$refs.input;n&&this.$emit(Ps,n.indeterminate)}},handleChange:function(t){var e=this,n=t.target,i=n.checked,r=n.indeterminate,o=this.value,a=this.uncheckedValue,s=this.computedLocalChecked;if(dt(s)){var l=es(s,o);i&&l<0?s=s.concat(o):!i&&l>-1&&(s=s.slice(0,l).concat(s.slice(l+1)))}else s=i?o:a;this.computedLocalChecked=s,this.$nextTick((function(){e.$emit(ae,s),e.isGroup&&e.bvGroup.$emit(ae,s),e.$emit(Ps,r)}))},setIndeterminate:function(t){dt(this.computedLocalChecked)&&(t=!1);var e=this.$refs.input;e&&(e.indeterminate=t,this.$emit(Ps,t))}}}),xs="__BV_hover_handler__",$s="mouseenter",Es=function(t,e,n){di(t,e,$s,n,Ie),di(t,e,"mouseleave",n,Ie)},Fs=function(t,e){var n=e.value,i=void 0===n?null:n;if(y){var r=t[xs],o=st(r),a=!(o&&r.fn===i);o&&a&&(Es(!1,t,r),delete t[xs]),st(i)&&a&&(t[xs]=function(t){var e=function(e){t(e.type===$s,e)};return e.fn=t,e}(i),Es(!0,t,t[xs]))}},Is={bind:Fs,componentUpdated:Fs,unbind:function(t){Fs(t,{value:null})}};function Ms(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _s(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(Co,{staticClass:"b-form-date-calendar w-100",props:Hs(Hs({},Zn(qs,o)),{},{hidden:!this.isVisible,value:e,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:Pt(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(As,{staticClass:"b-form-datepicker",props:Hs(Hs({},Zn(Ks,o)),{},{formattedValue:e?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":r,"text-light":r},this.menuClass],placeholder:s,rtl:this.isRTL,value:e}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:Ns({},tn,a["button-content"]||this.defaultButtonFn),ref:"control"},[h])}}),Zs=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 Qs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tl(t){for(var e=1;e2&&void 0!==arguments[2]&&arguments[2];return t=gn(t),!this.hasFormatter||this.lazyFormatter&&!n||(t=this.formatter(t,e)),t},modifyValue:function(t){return t=gn(t),this.trim&&(t=t.trim()),this.number&&(t=bn(t,t)),t},updateValue:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.lazy;if(!i||n){this.clearDebounce();var r=function(){if((t=e.modifyValue(t))!==e.vModelValue)e.vModelValue=t,e.$emit(al,t);else if(e.hasFormatter){var n=e.$refs.input;n&&t!==n.value&&(n.value=t)}},o=this.computedDebounce;o>0&&!i&&!n?this.$_inputDebounceTimer=setTimeout(r,o):r()}},onInput:function(t){if(!t.target.composing){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?hi(t,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit(we,n))}},onChange:function(t){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?hi(t,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit(ae,n))},onBlur:function(t){var e=t.target.value,n=this.formatValue(e,t,!0);!1!==n&&(this.localValue=gn(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",t)},focus:function(){this.disabled||Nn(this.$el)},blur:function(){this.disabled||zn(this.$el)}}}),cl=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 ul(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function dl(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:i&&e===n||!pn(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)])])}}),Cl=ti(xt(yl(yl(yl(yl(yl({},vo),Tl),Dt(is,["required","autofocus"])),ss),{},{color:Jn(Ne),iconClear:Jn(Ne,"x"),iconEmpty:Jn(Ne,"star"),iconFull:Jn(Ne,"star-fill"),iconHalf:Jn(Ne,"star-half"),inline:Jn(Le,!1),locale:Jn(We),noBorder:Jn(Le,!1),precision:Jn(Ke),readonly:Jn(Le,!1),showClear:Jn(Le,!1),showValue:Jn(Le,!1),showValueMax:Jn(Le,!1),stars:Jn(Ke,5,(function(t){return pn(t)>=3})),variant:Jn(Ne)})),qt),xl=n.default.extend({name:qt,components:{BIconStar:Wi,BIconStarHalf:qi,BIconStarFill:Ui,BIconX:Ki},mixins:[yo,wl,ls],props:Cl,data:function(){var t=bn(this[Sl],null),e=kl(this.stars);return{localValue:ot(t)?null:Pl(t,0,e),hasFocus:!1}},computed:{computedStars:function(){return kl(this.stars)},computedRating:function(){var t=bn(this.localValue,0),e=pn(this.precision,3);return Pl(bn(t.toFixed(e)),0,this.computedStars)},computedLocale:function(){var t=fn(this.locale).filter(Lt);return new Intl.NumberFormat(t).resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return mo(this.computedLocale)},formattedRating:function(){var t=pn(this.precision),e=this.showValueMax,n=this.computedLocale,i={notation:"standard",minimumFractionDigits:isNaN(t)?0:t,maximumFractionDigits:isNaN(t)?3:t},r=this.computedStars.toLocaleString(n),o=this.localValue;return o=ot(o)?e?"-":"":o.toLocaleString(n,i),e?"".concat(o,"/").concat(r):o}},watch:(fl={},gl(fl,Sl,(function(t,e){if(t!==e){var n=bn(t,null);this.localValue=ot(n)?null:Pl(n,0,this.computedStars)}})),gl(fl,"localValue",(function(t,e){t!==e&&t!==(this.value||0)&&this.$emit(jl,t||null)})),gl(fl,"disabled",(function(t){t&&(this.hasFocus=!1,this.blur())})),fl),methods:{focus:function(){this.disabled||Nn(this.$el)},blur:function(){this.disabled||zn(this.$el)},onKeydown:function(t){var e=t.keyCode;if(this.isInteractive&&hn([37,ir,39,ar],e)){hi(t,{propagation:!1});var n=pn(this.localValue,0),i=this.showClear?0:1,r=this.computedStars,o=this.isRTL?-1:1;37===e?this.localValue=Pl(n-o,i,r)||null:39===e?this.localValue=Pl(n+o,i,r):e===ir?this.localValue=Pl(n-1,i,r)||null:e===ar&&(this.localValue=Pl(n+1,i,r))}},onSelected:function(t){this.isInteractive&&(this.localValue=t)},onFocus:function(t){this.hasFocus=!!this.isInteractive&&"focus"===t.type},renderIcon:function(t){return this.$createElement(nr,{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(nr,{props:{icon:this.iconClear}})}},render:function(t){var e=this,n=this.disabled,i=this.readonly,r=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&&!i){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(ft(t)){var n=Vt(t,this.valueField),i=Vt(t,this.textField),r=Vt(t,this.optionsField,null);return ot(r)?{value:rt(n)?e||i:n,text:String(rt(i)?e:i),html:Vt(t,this.htmlField),disabled:Boolean(Vt(t,this.disabledField))}:{label:String(Vt(t,this.labelField)||i),options:this.normalizeOptions(r)}}return{value:e||t,text:String(t),disabled:!1}}}}),Bl=ti({disabled:Jn(Le,!1),value:Jn(Me,void 0,!0)},Xt),Hl=n.default.extend({name:Xt,functional:!0,props:Bl,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.value;return t("option",p(i,{attrs:{disabled:n.disabled},domProps:{value:o}}),r)}});function Nl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function zl(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:null;return t&&t.$options._scopeId||e};var Ql=n.default.extend({computed:{scopedStyleAttrs:function(){var t,e,n,i=Zl(this.$parent);return i?(n="",(e=i)in(t={})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t):{}}}}),tc={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},ec={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},nc={arrowPadding:Jn(Ke,6),boundary:Jn([tt,Ne],"scrollParent"),boundaryPadding:Jn(Ke,5),fallbackPlacement:Jn(We,"flip"),offset:Jn(Ke,0),placement:Jn(Ne,"top"),target:Jn([tt,et])},ic=n.default.extend({name:"BVPopper",props:nc,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var t=this,e=this.placement;return{placement:this.getAttachment(e),modifiers:{offset:{offset:this.getOffset(e)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t.popperPlacementChange(e)},onUpdate:function(e){t.popperPlacementChange(e)}}}},created:function(){var t=this;this.$_popper=null,this.localShow=!0,this.$on(Ce,(function(e){t.popperCreate(e)}));var e=function(){t.$nextTick((function(){jn((function(){t.$destroy()}))}))};this.$parent.$once(Ee,e),this.$once(ge,e)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{hide:function(){this.localShow=!1},getAttachment:function(t){return tc[String(t).toUpperCase()]||"auto"},getOffset:function(t){if(!this.offset){var e=this.$refs.arrow||xn(".arrow",this.$el),n=bn(function(t){var e=g.getComputedStyle;return e&&kn(t)?e(t):{}}(e).width,0)+bn(this.arrowPadding,0);switch(ec[String(t).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(t){this.destroyPopper(),this.$_popper=new Ra(this.target,t,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(t){this.attachment=this.getAttachment(t.placement)},renderTemplate:function(t){return t("div")}},render:function(t){var e=this,n=this.noFade;return t(Ti,{props:{appear:!0,noFade:n},on:{beforeEnter:function(t){return e.$emit(Ce,t)},afterEnter:function(t){return e.$emit(xe,t)},beforeLeave:function(t){return e.$emit(Oe,t)},afterLeave:function(t){return e.$emit(ge,t)}}},[this.localShow?this.renderTemplate(t):t()])}});function rc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function oc(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=!1;St(yc).forEach((function(i){rt(e[i])||t[i]===e[i]||(t[i]=e[i],"title"===i&&(n=!0))})),n&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var t=this.getContainer(),e=this.getTemplate(),n=this.$_tip=new e({parent:this,propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:pn(this.offset,0),arrowPadding:pn(this.arrowPadding,0),boundaryPadding:pn(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once(Ce,this.onTemplateShow),n.$once(xe,this.onTemplateShown),n.$once(Oe,this.onTemplateHide),n.$once(ge,this.onTemplateHidden),n.$once(Ee,this.destroyTemplate),n.$on(me,this.handleEvent),n.$on(ve,this.handleEvent),n.$on(Te,this.handleEvent),n.$on(Se,this.handleEvent),n.$mount(t.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(t){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var t=this,e=this.$_tip;if(e){["title","content","variant","customClass","noFade","interactive"].forEach((function(n){e[n]!==t[n]&&(e[n]=t[n])}))}},show:function(){var t=this.getTarget();if(t&&Fn(document.body,t)&&Cn(t)&&!this.dropdownOpen()&&(!at(this.title)&&""!==this.title||!at(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var e=this.buildEvent(Ce,{cancelable:!0});this.emitEvent(e),e.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getTemplateElement();if(e&&this.localShow){var n=this.buildEvent(Oe,{cancelable:!t});this.emitEvent(n),n.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){this.getTemplateElement()&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent(pe))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(he))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var t=this.$_hoverState;this.$_hoverState="","out"===t&&this.leave(null),this.emitEvent(this.buildEvent(xe))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(ge))},getTarget:function(){var t=this.target;return ct(t)?t=In(t.replace(/^#/,"")):st(t)?t=t():t&&(t=t.$el||t),kn(t)?t:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var t=this.getTarget();return t&&t.id?t.id:null},getContainer:function(){var t=!!this.container&&(this.container.$el||this.container),e=document.body,n=this.getTarget();return!1===t?En(mc,n)||e:ct(t)&&In(t.replace(/^#/,""))||e},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var t=this.getTarget();return t&&En(pc,t)},isDropdown:function(){var t=this.getTarget();return t&&Mn(t,"dropdown")},dropdownOpen:function(){var t=this.getTarget();return this.isDropdown()&&t&&xn(".dropdown-menu.show",t)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var t in this.activeTrigger)this.activeTrigger[t]=!1},addAriaDescribedby:function(){var t=this.getTarget(),e=Rn(t,"aria-describedby")||"";e=e.split(/\s+/).concat(this.computedId).join(" ").trim(),_n(t,"aria-describedby",e)},removeAriaDescribedby:function(){var t=this,e=this.getTarget(),n=Rn(e,"aria-describedby")||"";(n=n.split(/\s+/).filter((function(e){return e!==t.computedId})).join(" ").trim())?_n(e,"aria-describedby",n):Ln(e,"aria-describedby")},fixTitle:function(){var t=this.getTarget();if(Vn(t,"title")){var e=Rn(t,"title");_n(t,"title",""),e&&_n(t,vc,e)}},restoreTitle:function(){var t=this.getTarget();if(Vn(t,vc)){var e=Rn(t,vc);Ln(t,vc),e&&_n(t,"title",e)}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Ba(t,uc({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},e))},emitEvent:function(t){var e=t.type;this.emitOnRoot(pi(this.templateType,e),t),this.$emit(e,t)},listen:function(){var t=this,e=this.getTarget();e&&(this.setRootListener(!0),this.computedTriggers.forEach((function(n){"click"===n?ci(e,"click",t.handleEvent,Ie):"focus"===n?(ci(e,"focusin",t.handleEvent,Ie),ci(e,"focusout",t.handleEvent,Ie)):"blur"===n?ci(e,"focusout",t.handleEvent,Ie):"hover"===n&&(ci(e,"mouseenter",t.handleEvent,Ie),ci(e,"mouseleave",t.handleEvent,Ie))}),this))},unListen:function(){var t=this,e=this.getTarget();this.setRootListener(!1),["click","focusin","focusout","mouseenter","mouseleave"].forEach((function(n){e&&ui(e,n,t.handleEvent,Ie)}),this)},setRootListener:function(t){var e=this.$root;if(e){var n=t?"$on":"$off",i=this.templateType;e[n](bi(i,Oe),this.doHide),e[n](bi(i,Ce),this.doShow),e[n](bi(i,de),this.doDisable),e[n](bi(i,fe),this.doEnable)}},setWhileOpenListeners:function(t){this.setModalListener(t),this.setDropdownListener(t),this.visibleCheck(t),this.setOnTouchStartListener(t)},visibleCheck:function(t){var e=this;this.clearVisibilityInterval();var n=this.getTarget(),i=this.getTemplateElement();t&&(this.$_visibleInterval=setInterval((function(){!i||!e.localShow||n.parentNode&&Cn(n)||e.forceHide()}),100))},setModalListener:function(t){this.isInModal()&&this.$root[t?"$on":"$off"](bc,this.forceHide)},setOnTouchStartListener:function(t){var e=this;"ontouchstart"in document.documentElement&&dn(document.body.children).forEach((function(n){di(t,n,"mouseover",e.$_noop)}))},setDropdownListener:function(t){var e=this.getTarget();e&&this.$root&&this.isDropdown&&e.__vue__&&e.__vue__[t?"$on":"$off"](xe,this.forceHide)},handleEvent:function(t){var e=this.getTarget();if(e&&(kn(n=e)&&!n.disabled&&!Vn(n,"disabled")&&!Mn(n,"disabled"))&&this.$_enabled&&!this.dropdownOpen()){var n,i=t.type,r=this.computedTriggers;if("click"===i&&hn(r,"click"))this.click(t);else if("mouseenter"===i&&hn(r,"hover"))this.enter(t);else if("focusin"===i&&hn(r,"focus"))this.enter(t);else if("focusout"===i&&(hn(r,"focus")||hn(r,"blur"))||"mouseleave"===i&&hn(r,"hover")){var o=this.getTemplateElement(),a=t.target,s=t.relatedTarget;if(o&&Fn(o,a)&&Fn(e,s)||o&&Fn(e,a)&&Fn(o,s)||o&&Fn(o,a)&&Fn(o,s)||Fn(e,a)&&Fn(e,s))return;this.leave(t)}}},doHide:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.forceHide()},doShow:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.show()},doDisable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.disable()},doEnable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.enable()},click:function(t){this.$_enabled&&!this.dropdownOpen()&&(Nn(t.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusin"===e.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===t.$_hoverState?t.show():t.localShow||t.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusout"===e.type?"focus":"hover"]=!1,"focusout"===e.type&&hn(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===t.$_hoverState&&t.hide()}),this.computedDelay.hide):this.hide())}}});function Oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function wc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tc="disabled",Sc="update:disabled",jc="show",kc=ti((wc(hc={boundary:Jn([tt,Be,Ne],"scrollParent"),boundaryPadding:Jn(Ke,50),container:Jn([tt,Be,Ne]),customClass:Jn(Ne),delay:Jn(Xe,50)},Tc,Jn(Le,!1)),wc(hc,"fallbackPlacement",Jn(We,"flip")),wc(hc,"id",Jn(Ne)),wc(hc,"noFade",Jn(Le,!1)),wc(hc,"noninteractive",Jn(Le,!1)),wc(hc,"offset",Jn(Ke,0)),wc(hc,"placement",Jn(Ne,"top")),wc(hc,jc,Jn(Le,!1)),wc(hc,"target",Jn([tt,et,Ve,Be,Ne],void 0,!0)),wc(hc,"title",Jn(Ne)),wc(hc,"triggers",Jn(We,"hover focus")),wc(hc,"variant",Jn(Ne)),hc),oe),Pc=n.default.extend({name:oe,mixins:[si],inheritAttrs:!1,props:kc,data:function(){return{localShow:this.show,localTitle:"",localContent:""}},computed:{templateData:function(){return function(t){for(var e=1;e0}}});function Cc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function xc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $c="light",Ec="dark",Fc=ti({variant:Jn(Ne)},"BTr"),Ic=n.default.extend({name:"BTr",mixins:[fr,br,si],provide:function(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:function(){return{}}}},inheritAttrs:!1,props:Fc,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!==$c&&this.footVariant!==$c&&(this.headVariant===Ec||this.footVariant===Ec||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},Bc=function(t){return at(t)||Ac(t)>0},Hc=ti({colspan:Jn(Ke,null,Bc),rowspan:Jn(Ke,null,Bc),stackedHeading:Jn(Ne),stickyColumn:Jn(Le,!1),variant:Jn(Ne)},ee),Nc=n.default.extend({name:ee,mixins:[fr,br,si],inject:{bvTableTr:{default:function(){return{}}}},inheritAttrs:!1,props:Hc,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 Ac(this.colspan)},computedRowspan:function(){return Ac(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,i=this.computedRowspan,r="cell",o=null;return e?(r="columnheader",o=n>0?"colspan":"col"):Pn(this.tag,"th")&&(r="rowheader",o=i>0?"rowgroup":"row"),Rc(Rc({colspan:n,rowspan:i,role:r,scope:o},this.bvAttrs),{},{"data-label":this.isStackedCell&&!at(t)?gn(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 zc,Yc,Gc,Wc="busy",Uc=(zc={},Yc=Wc,Gc=Jn(Le,!1),Yc in zc?Object.defineProperty(zc,Yc,{value:Gc,enumerable:!0,configurable:!0,writable:!0}):zc[Yc]=Gc,zc),qc=n.default.extend({props:Uc,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&&(hi(t),!0)},renderBusy:function(){var t=this.tbodyTrClass,e=this.tbodyTrAttr,n=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(an)?n(Ic,{staticClass:"b-table-busy-slot",class:[st(t)?t(null,an):t],attrs:st(e)?e(null,an):e,key:"table-busy-slot"},[n(Nc,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(an)])]):null}}}),Kc={caption:Jn(Ne),captionHtml:Jn(Ne)},Xc=n.default.extend({props:Kc,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.caption,e=this.captionHtml,n=this.$createElement,i=n(),r=this.hasNormalizedSlot(sn);return(r||t||e)&&(i=n("caption",{attrs:{id:this.captionId},domProps:r?{}:Hr(e,t),key:"caption",ref:"caption"},this.normalizeSlot(sn))),i}}}),Jc=n.default.extend({methods:{renderColgroup:function(){var t=this.computedFields,e=this.$createElement,n=e();return this.hasNormalizedSlot(ln)&&(n=e("colgroup",{key:"colgroup"},[this.normalizeSlot(ln,{columns:t.length,fields:t})])),n}}}),Zc={emptyFilteredHtml:Jn(Ne),emptyFilteredText:Jn(Ne,"There are no records matching your request"),emptyHtml:Jn(Ne),emptyText:Jn(Ne,"There are no records to show"),showEmpty:Jn(Le,!1)},Qc=n.default.extend({props:Zc,methods:{renderEmpty:function(){var t=this.computedItems,e=this.$createElement,n=e();if(this.showEmpty&&(!t||0===t.length)&&(!this.computedBusy||!this.hasNormalizedSlot(an))){var i=this.computedFields,r=this.isFiltered,o=this.emptyText,a=this.emptyHtml,s=this.emptyFilteredText,l=this.emptyFilteredHtml,c=this.tbodyTrClass,u=this.tbodyTrAttr;(n=this.normalizeSlot(r?"emptyfiltered":"empty",{emptyFilteredHtml:l,emptyFilteredText:s,emptyHtml:a,emptyText:o,fields:i,items:t}))||(n=e("div",{class:["text-center","my-2"],domProps:r?Hr(l,s):Hr(a,o)})),n=e(Nc,{props:{colspan:i.length||null}},[e("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=e(Ic,{staticClass:"b-table-empty-row",class:[st(c)?c(null,"row-empty"):c],attrs:st(u)?u(null,"row-empty"):u,key:r?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}}),tu=function t(e){return at(e)?"":ht(e)&&!pt(e)?St(e).sort().map((function(n){return t(e[n])})).filter((function(t){return!!t})).join(" "):gn(e)};function eu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function nu(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:{},r=St(i).reduce((function(e,n){var r=i[n],o=r.filterByFormatted,a=st(o)?o:o?r.formatter:null;return st(a)&&(e[n]=a(t[n],n,t)),e}),kt(t)),o=St(r).filter((function(t){return!(su[t]||dt(e)&&e.length>0&&hn(e,t)||dt(n)&&n.length>0&&!hn(n,t))}));return Pt(r,o)};function uu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&Ht('Prop "filter-debounce" is deprecated. Use the debounce feature of "" instead.',te),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 ni(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,i=!1;n?lr(n,[])||lr(n,{})?i=!1:n&&(i=!0):i=!1,i&&this.$emit(be,e,e.length),this.isFiltered=i},isFiltered:function(t,e){if(!1===t&&!0===e){var n=this.localItems;this.$emit(be,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||ct(t)||mt(t)?_t(t):""},filterFnFactory:function(t,e){if(!t||!st(t)||!e||lr(e,[])||lr(e,{}))return null;return function(n){return t(n,e)}},defaultFilterFnFactory:function(t){var e=this;if(!t||!ct(t)&&!mt(t))return null;var n,i=t;if(ct(i)){var r=(n=t,n.replace(F,"\\$&")).replace(I,"\\s+");i=new RegExp(".*".concat(r,".*"),"i")}return function(t){return i.lastIndex=0,i.test((n=t,r=e.computedFilterIgnored,o=e.computedFilterIncluded,a=e.computedFieldsObj,ht(n)?tu(cu(n,r,o,a)):""));var n,r,o,a}}}}),pu=function(t,e){var n=[];if(dt(t)&&t.filter(Lt).forEach((function(t){if(ct(t))n.push({key:t,label:yn(t)});else if(ht(t)&&t.key&&ct(t.key))n.push(kt(t));else if(ht(t)&&1===St(t).length){var e=St(t)[0],i=function(t,e){var n=null;return ct(e)?n={key:t,label:e}:st(e)?n={key:t,formatter:e}:ht(e)?(n=kt(e)).key=n.key||t:!1!==e&&(n={key:t}),n}(e,t[e]);i&&n.push(i)}})),0===n.length&&dt(e)&&e.length>0){var i=e[0];St(i).forEach((function(t){su[t]||n.push({key:t,label:yn(t)})}))}var r={};return n.filter((function(t){return!r[t.key]&&(r[t.key]=!0,t.label=ct(t.label)?t.label:yn(t.key),!0)}))};function bu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function mu(t){for(var e=1;e0&&t.some(Lt)},selectableIsMultiSelect:function(){return this.isSelectable&&hn(["range","multi"],this.selectMode)},selectableTableClasses:function(){var t,e=this.isSelectable;return Eu(t={"b-table-selectable":e},"b-table-select-".concat(this.selectMode),e),Eu(t,"b-table-selecting",this.selectableHasSelection),Eu(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=dt(t)&&dt(e)&&t.length===e.length;for(var i=0;n&&i=0&&t0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?function(t,e){var n=st(e)?e:function(){return e};return Array.apply(null,{length:t}).map(n)}(t,!0):[!0])},isRowSelected:function(t){return!(!ut(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 Eu({"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](Pe,this.selectionHandler),this[e](be,this.clearSelected),this[e](ue,this.clearSelected)},selectionHandler:function(t,e,n){if(this.isSelectable&&!this.noSelectOnClick){var i=this.selectMode,r=this.selectedLastRow,o=this.selectedRows.slice(),a=!o[e];if("single"===i)o=[];else if("range"===i)if(r>-1&&n.shiftKey){for(var s=Si(r,e);s<=ji(r,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()}}}),Ru=function(t){return at(t)?"":function(t){return E.test(String(t))}(t)?bn(t,t):t};function Vu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Au(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},i=n.sortBy,r=void 0===i?null:i,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=Vt(t,r,null),p=Vt(e,r,null);return st(a)&&(f=a(f,r,t),p=a(p,r,e)),f=Ru(f),p=Ru(p),pt(f)&&pt(p)||ut(f)&&ut(p)?fp?1:0:h&&""===f&&""!==p?1:h&&""!==f&&""===p?-1:tu(f).localeCompare(tu(p),l,u)}(t,a,{sortBy:e,formatter:u,locale:i,localeOptions:l,nullLast:r})),(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:(Iu={isSortable:function(t){t?this.isSortable&&this.$on(ye,this.handleSort):this.$off(ye,this.handleSort)}},Bu(Iu,Nu,(function(t){t!==this.localSortDesc&&(this.localSortDesc=t||!1)})),Bu(Iu,Hu,(function(t){t!==this.localSortBy&&(this.localSortBy=t||"")})),Bu(Iu,"localSortDesc",(function(t,e){t!==e&&this.$emit("update:sortDesc",t)})),Bu(Iu,"localSortBy",(function(t,e){t!==e&&this.$emit("update:sortBy",t)})),Iu),created:function(){this.isSortable&&this.$on(ye,this.handleSort)},methods:{handleSort:function(t,e,n,i){var r=this;if(this.isSortable&&(!i||!this.noFooterSorting)){var o=!1,a=function(){var t=e.sortDirection||r.sortDirection;t===zu?r.localSortDesc=!1:t===Yu&&(r.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 i=e.sortable;return{"aria-sort":i&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":i?"none":null}},sortTheadThLabel:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return null;var i="";if(e.sortable)if(this.localSortBy===t)i=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{i=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var r=this.sortDirection||e.sortDirection;r===zu?i=this.labelSortAsc:r===Yu&&(i=this.labelSortDesc)}else this.noSortReset||(i=this.localSortBy?this.labelSortClear:"");return On(i)||null}}});var qu={stacked:Jn(Ue,!1)},Ku=n.default.extend({props:qu,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 Xu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ju(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,i=this.selectableTableAttrs,r=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":gn(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null};return Ju(Ju(Ju({"aria-rowcount":t&&e&&e.length>t.length?gn(e.length):null},this.bvAttrs),{},{id:this.safeId(),role:"table"},r),i)}},render:function(t){var e=this.wrapperClasses,n=this.renderCaption,i=this.renderColgroup,r=this.renderThead,o=this.renderTbody,a=this.renderTfoot,s=[];this.isTableSimple?s.push(this.normalizeSlot()):(s.push(n?n():null),s.push(i?i():null),s.push(r?r():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(Lt));return e.length>0?t("div",{class:e,style:this.wrapperStyles,key:"wrap"},[l]):l}});function ed(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function nd(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:document,e=Hn();return!!(e&&""!==e.toString().trim()&&e.containsNode&&kn(t))&&e.containsNode(t,!0)},cd=ti(Hc,"BTh"),ud=n.default.extend({name:"BTh",extends:Nc,props:cd,computed:{tag:function(){return"th"}}});function dd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function hd(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&(v=String((a-1)*s+e+1));var y=gn(Vt(t,o))||null,g=y||gn(e),O=y?this.safeId("_row_".concat(y)):null,w=this.selectableRowClasses?this.selectableRowClasses(e):{},T=this.selectableRowAttrs?this.selectableRowAttrs(e):{},S=st(l)?l(t,"row"):l,j=st(c)?c(t,"row"):c;if(p.push(u(Ic,{class:[S,w,h?"b-table-has-details":""],props:{variant:t[ou]||null},attrs:hd(hd({id:O},j),{},{tabindex:f?"0":null,"data-pk":y||null,"aria-details":b,"aria-owns":b,"aria-rowindex":v},T),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(g,"__"),ref:"item-rows",refInFor:!0},m)),h){var k={item:t,index:e,fields:i,toggleDetails:this.toggleDetailsFactory(d,t)};this.supportsSelectableRows&&(k.rowSelected=this.isRowSelected(e),k.selectRow=function(){return n.selectRow(e)},k.unselectRow=function(){return n.unselectRow(e)});var P=u(Nc,{props:{colspan:i.length},class:this.detailsTdClass},[this.normalizeSlot(on,k)]);r&&p.push(u("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(g)}));var D=st(this.tbodyTrClass)?this.tbodyTrClass(t,on):this.tbodyTrClass,C=st(this.tbodyTrAttr)?this.tbodyTrAttr(t,on):this.tbodyTrAttr;p.push(u(Ic,{staticClass:"b-table-details",class:[D],props:{variant:t[ou]||null},attrs:hd(hd({},C),{},{id:b,tabindex:"-1"}),key:"__b-table-details__".concat(g)},[P]))}else d&&(p.push(u()),r&&p.push(u()));return p}}});function vd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function yd(t){for(var e=1;e0&&n&&n.length>0?dn(e.children).filter((function(t){return hn(n,t)})):[]},getTbodyTrIndex:function(t){if(!kn(t))return-1;var e="TR"===t.tagName?t:En("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 i=this.computedItems[n];this.$emit(t,i,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&&Dn(e)&&0===e.tabIndex)if(hn([rr,or],n))hi(t),this.onTBodyRowClicked(t);else if(hn([ar,ir,36,35],n)){var i=this.getTbodyTrIndex(e);if(i>-1){hi(t);var r=this.getTbodyTrs(),o=t.shiftKey;36===n||o&&n===ar?Nn(r[0]):35===n||o&&n===ir?Nn(r[r.length-1]):n===ar&&i>0?Nn(r[i-1]):n===ir&&it.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],n=this.computedFields,i=this.isSortable,r=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=i||this.hasListener(ye),d=r?this.selectAllRows:xo,h=r?this.clearSelected:xo,f=function(n,r){var o=n.label,a=n.labelHtml,s=n.variant,l=n.stickyColumn,f=n.key,p=null;n.label.trim()||n.headerTitle||(p=yn(n.key));var b={};u&&(b.click=function(i){t.headClicked(i,n,e)},b.keydown=function(i){var r=i.keyCode;r!==rr&&r!==or||t.headClicked(i,n,e)});var m=i?t.sortTheadThAttrs(f,n,e):{},v=i?t.sortTheadThClasses(f,n,e):null,y=i?t.sortTheadThLabel(f,n,e):null,g={class:[t.fieldClasses(n),v],props:{variant:s,stickyColumn:l},style:n.thStyle||{},attrs:Rd(Rd({tabindex:u&&n.sortable?"0":null,abbr:n.headerAbbr||null,title:n.headerTitle||null,"aria-colindex":r+1,"aria-label":p},t.getThValues(null,f,n.thAttr,e?"foot":"head",{})),m),on:b,key:f},O=[Ad(f),Ad(f.toLowerCase()),Ad()];e&&(O=[Bd(f),Bd(f.toLowerCase()),Bd()].concat(Md(O)));var w={label:o,column:f,field:n,isFoot:e,selectAllRows:d,clearSelected:h},T=t.normalizeSlot(O,w)||c("div",{domProps:Hr(a,o)}),S=y?c("span",{staticClass:"sr-only"}," (".concat(y,")")):null;return c(ud,g,[T,S].filter(Lt))},p=n.map(f).filter(Lt),b=[];if(e)b.push(c(Ic,{class:this.tfootTrClass,props:{variant:at(l)?s:l}},p));else{var m={columns:n.length,fields:n,selectAllRows:d,clearSelected:h};b.push(this.normalizeSlot(cn,m)||c()),b.push(c(Ic,{class:this.theadTrClass,props:{variant:s}},p))}return c(e?Dd:Id,{class:(e?this.tfootClass:this.theadClass)||null,props:e?{footVariant:a||o||null}:{headVariant:o||null},key:e?"bv-tfoot":"bv-thead"},b)}}}),zd=n.default.extend({methods:{renderTopRow:function(){var t=this.computedFields,e=this.stacked,n=this.tbodyTrClass,i=this.tbodyTrAttr,r=this.$createElement;return this.hasNormalizedSlot(un)&&!0!==e&&""!==e?r(Ic,{staticClass:"b-table-top-row",class:[st(n)?n(null,"row-top"):n],attrs:st(i)?i(null,"row-top"):i,key:"b-top-row"},[this.normalizeSlot(un,{columns:t.length,fields:t})]):r()}}});function Yd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Gd(t){for(var e=1;e1&&l>0&&(n=(i-1)*l+n),r.tableItems[n][t]=e.value}))}o&&this.$emit("input",this.tableItems),delete this.localChanges[t||a]},handleListeners:function(t){var e={input:!0,"input-change":!0};return Object.keys(t).reduce((function(n,i){return e[i]?n:r(r({},n),{},o({},i,t[i]))}),{})},getCellValue:function(t,e){var n=this.tableMap[t.item.id],i=n&&n.fields[e.key]?n.fields[e.key].value:"";if(t.field.options){var r=t.field.options.find((function(t){return t.value===i}));i=r?r.text:i}return i},getCellData:function(t){return r(r({},t),{},{isEdit:this.tableMap[t.item.id].isEdit,id:t.item.id})},getValidity:function(t,e){return this.tableMap[t.item.id].fields[e.key].validity},showField:function(t,e,n){var i;return t.type===n&&(null===(i=this.tableMap[e.item.id])||void 0===i?void 0:i.isEdit)&&(this.selectedCell===t.key||"row"===this.editMode)&&t.editable},getFieldValue:function(t,e){var n;return null===(n=this.tableMap[e.item.id].fields[t.key])||void 0===n?void 0:n.value},enableFocus:function(t){return"cell"===this.editMode&&t},clearEditMode:function(t){if(t)this.tableMap[t].isEdit=!1;else for(var e in this.localChanges)this.tableMap[e].isEdit=!1},createTableItems:function(t){var e=this;this.tableItems=t.map((function(t){return r({},t)})),this.tableMap=t.reduce((function(t,n){return r(r({},t),{},o({},n.id,{id:n.id,isEdit:!!e.tableMap[n.id]&&e.tableMap[n.id].isEdit,fields:Object.keys(n).reduce((function(t,i){var a,s;return r(r({},t),{},o({},i,{value:n[i],validity:null!==(a=e.tableMap[n.id])&&void 0!==a&&null!==(s=a.fields[i])&&void 0!==s&&s.validity?e.tableMap[n.id].fields[i].validity:{valid:!0}}))}),{})}))}),{})}}});function Xd(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=d):e&&(d=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}const Jd="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function Zd(t){return(t,e)=>function(t,e){const n=Jd?e.media||"default":t,i=th[n]||(th[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.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))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===Qd&&(Qd=document.head||document.getElementsByTagName("head")[0]),Qd.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(n),r=i.element.childNodes;r[t]&&i.element.removeChild(r[t]),r.length?i.element.insertBefore(e,r[t]):i.element.appendChild(e)}}}(t,e)}let Qd;const th={};var eh=Xd({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,i){return{key:"cell("+e.key+")",fn:function(r){return[t.showField(e,r,"date")?n("div",{key:i},[n("b-form-datepicker",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus("date"),expression:"enableFocus('date')"}],key:i,attrs:{id:e.key+"-"+r.item.id,type:e.type,value:t.getFieldValue(e,r),state:!!t.getValidity(r,e).valid&&null},on:{input:function(n){return t.inputHandler(n,r,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,i,r)}}},"b-form-datepicker",Object.assign({},e),!1)),t._v(" "),t.getValidity(r,e).errorMessage?n("b-tooltip",{attrs:{target:e.key+"-"+r.item.id,variant:"danger",show:!t.getValidity(r,e).valid,disabled:!0}},[t._v("\n "+t._s(t.getValidity(r,e).errorMessage)+"\n ")]):t._e()],1):t.showField(e,r,"select")?n("div",{key:i},[n("b-form-select",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus(),expression:"enableFocus()"}],attrs:{id:e.key+"-"+r.item.id,value:t.getFieldValue(e,r),state:!!t.getValidity(r,e).valid&&null},on:{change:function(n){return t.inputHandler(n,r,e.key,e.options)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,i,r)}}},"b-form-select",Object.assign({},e),!1)),t._v(" "),t.getValidity(r,e).errorMessage?n("b-tooltip",{attrs:{target:e.key+"-"+r.item.id,variant:"danger",show:!t.getValidity(r,e).valid,disabled:!0}},[t._v("\n "+t._s(t.getValidity(r,e).errorMessage)+"\n ")]):t._e()],1):t.showField(e,r,"checkbox")?n("b-form-checkbox",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus("checkbox"),expression:"enableFocus('checkbox')"}],key:i,attrs:{id:e.key+"-"+r.item.id,checked:t.getFieldValue(e,r)},on:{change:function(n){return t.inputHandler(n,r,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,i,r)}}},"b-form-checkbox",Object.assign({},e),!1)):t.showField(e,r,"rating")?n("b-form-rating",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus(),expression:"enableFocus()"}],key:i,attrs:{id:e.key+"-"+r.item.id,value:t.getFieldValue(e,r)},on:{change:function(n){return t.inputHandler(n,r,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,i,r)}}},"b-form-rating",Object.assign({},e),!1)):t.showField(e,r,e.type)?n("div",{key:i},[n("b-form-input",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus(),expression:"enableFocus()"}],attrs:{id:e.key+"-"+r.item.id,type:e.type,value:t.getFieldValue(e,r),state:!!t.getValidity(r,e).valid&&null},on:{keydown:function(e){return t.handleKeydown(e,i,r)},input:function(n){return t.inputHandler(n,r,e.key)},change:function(n){return t.changeHandler(n,r,e.key)}}},"b-form-input",Object.assign({},e),!1)),t._v(" "),t.getValidity(r,e).errorMessage?n("b-tooltip",{attrs:{target:e.key+"-"+r.item.id,variant:"danger",show:!t.getValidity(r,e).valid,disabled:!0}},[t._v("\n "+t._s(t.getValidity(r,e).errorMessage)+"\n ")]):t._e()],1):n("div",{key:i,staticClass:"data-cell",on:t._d({},[t.editTrigger,function(n){return t.handleEditCell(n,r.item.id,e.key,e.editable)}])},[t.$scopedSlots["cell("+e.key+")"]?t._t("cell("+e.key+")",null,null,t.getCellData(r)):[t._v(t._s(t.getCellValue(r,e)))]],2)]}}}))],null,!0)},"b-table",Object.assign({},t.$props,t.$attrs),!1),t.handleListeners(t.$listeners)))},staticRenderFns:[]},(function(t){t&&t("data-v-7a52295e_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})}),Kd,undefined,false,undefined,!1,Zd,void 0,void 0),nh=eh,ih=function(){var t=nh;return t.install=function(e){e.component("BEditableTable",t)},t}(),rh=Object.freeze({__proto__:null,default:ih});return Object.entries(rh).forEach((function(t){var e=a(t,2),n=e[0],i=e[1];"default"!==n&&(ih[n]=i)})),ih}(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 i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n]+)>)/gi,C=/\B([A-Z])/g,x=/([a-z])([A-Z])/g,$=/^[0-9]*\.?[0-9]+$/,E=/[-/\\^$*+?.()|[\]{}]/g,F=/[\s\uFEFF\xA0]+/g,I=/(\s|^)(\w)/g,M=/_/g,_=/-(\w)/g,L=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,R=/-|\s|T/,V=/%2C/g,A=/[!'()*]/g,B=/^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,i=J(t);if(e){var r=J(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.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,i)}function i(){return q(t,arguments,J(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),X(i,t)})(t)}function q(t,e,n){return(q=K()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&X(r,n.prototype),r}).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),tt=b?g.SVGElement:function(t){Y(n,t);var e=G(n);function n(){return z(this,n),e.apply(this,arguments)}return n}(Z);function et(t){return(et="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.File;var nt=function(t){return et(t)},it=function(t){return void 0===t},rt=function(t){return null===t},ot=function(t){return it(t)||rt(t)},at=function(t){return"function"===nt(t)},st=function(t){return"boolean"===nt(t)},lt=function(t){return"string"===nt(t)},ct=function(t){return"number"===nt(t)},ut=function(t){return Array.isArray(t)},dt=function(t){return null!==t&&"object"===et(t)},ht=function(t){return"[object Object]"===Object.prototype.toString.call(t)},ft=function(t){return t instanceof Date},pt=function(t){return t instanceof Event},bt=function(t){return"RegExp"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)};function mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function vt(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:e;return ut(e)?e.reduce((function(e,n){return[].concat(Ft(e),[t(n,n)])}),[]):ht(e)?Tt(e).reduce((function(n,i){return $t($t({},n),{},Et({},i,t(e[i],e[i])))}),{}):n},_t=function(t){return t},Lt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!(e=ut(e)?e.join("."):e)||!dt(t))return n;if(e in t)return t[e];var i=(e=String(e).replace(j,".$1")).split(".").filter(_t);return 0===i.length?n:i.every((function(e){return dt(t)&&e in t&&!ot(t=t[e])}))?t:rt(t)?null:n},Rt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=Lt(t,e);return ot(i)?n:i},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))},Ht="BButton",Nt="BCalendar",zt="BDropdown",Yt="BFormCheckbox",Gt="BFormDatepicker",Wt="BFormInput",Ut="BFormRating",qt="BFormSelect",Kt="BFormSelectOption",Xt="BFormSelectOptionGroup",Jt="BIcon",Zt="BLink",Qt="BTable",te="BTableCell",ee="BTbody",ne="BTfoot",ie="BThead",re="BTooltip",oe="change",ae="click",se="close",le="context",ce="context-changed",ue="disable",de="disabled",he="enable",fe="enabled",pe="filtered",be="focusin",me="focusout",ve="head-clicked",ye="hidden",ge="hide",Oe="input",we="mouseenter",Te="mouseleave",Se="open",je="refreshed",ke="row-clicked",Pe="selected",De="show",Ce="shown",xe="hook:beforeDestroy",$e="hook:destroyed",Ee="bv",Fe={passive:!0,capture:!1},Ie=void 0,Me=Array,_e=Boolean,Le=Date,Re=Function,Ve=Number,Ae=Object,Be=RegExp,He=String,Ne=[Me,Re],ze=[Me,Ae],Ye=[Me,Ae,He],Ge=[Me,He],We=[_e,He],Ue=[Le,He],qe=[Ve,He],Ke=[Ve,Ae,He],Xe=[Ae,Re],Je=[Ae,He],Ze="bottom-row",Qe="button-content",tn="custom-foot",en="default",nn="first",rn="row-details",on="table-busy",an="table-caption",sn="table-colgroup",ln="thead-top",cn="top-row",un=function(){return Array.from.apply(Array,arguments)},dn=function(t,e){return-1!==t.indexOf(e)},hn=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},pn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseFloat(t);return isNaN(n)?e:n},bn=function(t){return t.replace(C,"-$1").toLowerCase()},mn=function(t){return(t=bn(t).replace(_,(function(t,e){return e?e.toUpperCase():""}))).charAt(0).toUpperCase()+t.slice(1)},vn=function(t){return t.replace(M," ").replace(x,(function(t,e,n){return e+" "+n})).replace(I,(function(t,e,n){return e+n.toUpperCase()}))},yn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return ot(t)?"":ut(t)||ht(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,e):String(t)},gn=function(t){return yn(t).trim()},On=Z.prototype,wn=On.matches||On.msMatchesSelector||On.webkitMatchesSelector,Tn=On.closest||function(t){var e=this;do{if(xn(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 jn=function(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE)},kn=function(t,e){return yn(t).toLowerCase()===yn(e).toLowerCase()},Pn=function(t){return jn(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(!jn(t)||!t.parentNode||!En(O.body,t))return!1;if("none"===Vn(t,"display"))return!1;var e=An(t);return!!(e&&e.height>0&&e.width>0)},Cn=function(t,e){return(jn(e)?e:O).querySelector(t)||null},xn=function(t,e){return!!jn(t)&&wn.call(t,e)},$n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!jn(e))return null;var i=Tn.call(e,t);return n?i:i===e?null:i},En=function(t,e){return!(!t||!at(t.contains))&&t.contains(e)},Fn=function(t){return O.getElementById(/^#/.test(t)?t.slice(1):t)||null},In=function(t,e){return!!(e&&jn(t)&&t.classList)&&t.classList.contains(e)},Mn=function(t,e,n){e&&jn(t)&&t.setAttribute(e,n)},_n=function(t,e){e&&jn(t)&&t.removeAttribute(e)},Ln=function(t,e){return e&&jn(t)?t.getAttribute(e):null},Rn=function(t,e){return e&&jn(t)?t.hasAttribute(e):null},Vn=function(t,e){return e&&jn(t)&&t.style[e]||null},An=function(t){return jn(t)?t.getBoundingClientRect():null},Bn=function(){return g.getSelection?g.getSelection():null},Hn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t.focus(e)}catch(t){}return Pn(t)},Nn=function(t){try{t.blur()}catch(t){}return!Pn(t)},zn=n.default.prototype,Yn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=zn.$bvConfig;return n?n.getConfigValue(t,e):Mt(e)};function Gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Wn(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:Ie,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,r=!0===n;return i=r?i:n,Wn(Wn(Wn({},t?{type:t}:{}),r?{required:r}:it(e)?{}:{default:dt(e)?function(){return e}:e}),it(i)?{}:{validator:i})},Kn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_t;return(ut(t)?t.slice():Tt(t)).reduce((function(t,i){return t[n(i)]=e[i],t}),{})},Xn=function(t,e,n){return Wn(Wn({},Mt(t)),{},{default:function(){var i=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?Yn("".concat(t,".").concat(e),n):Yn(t,{})}(n,e,t.default);return at(i)?i():i}})},Jn=function(t,e){return Tt(t).reduce((function(n,i){return Wn(Wn({},n),{},Un({},i,Xn(t[i],i,e)))}),{})},Zn=Xn({},"","").default.name,Qn=function(t){return at(t)&&t.name!==Zn};function ti(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ei=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.type,r=void 0===i?Ie:i,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?Oe:c,d=ti({},t,qn(r,a,l)),h=n.default.extend({model:{prop:t,event:u},props:d});return{mixin:h,props:d,prop:t,event:u}},ni=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=hn(t).filter(_t)).some((function(t){return e[t]||n[t]}))},ii=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=hn(t).filter(_t);for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:en,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 ni(t,e,n)},normalizeSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:en,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,r=ii(t,e,n,i);return r?hn(r):r}}}),oi=function(t){return S?dt(t)?t:{capture:!!t||!1}:!!(dt(t)?t.capture:t)},ai=function(t,e,n,i){t&&t.addEventListener&&t.addEventListener(e,n,oi(i))},si=function(t,e,n,i){t&&t.removeEventListener&&t.removeEventListener(e,n,oi(i))},li=function(t){for(var e=t?ai:si,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventDefault,i=void 0===n||n,r=e.propagation,o=void 0===r||r,a=e.immediatePropagation,s=void 0!==a&&a;i&&t.preventDefault(),o&&t.stopPropagation(),s&&t.stopImmediatePropagation()},ui=function(t){return bn(t.replace(k,""))},di=function(t,e){return[Ee,ui(t),e].join("::")},hi=function(t,e){return[Ee,e,ui(t)].join("::")};function fi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function pi(t){for(var e=1;e'),Ri=Mi("CalendarFill",''),Vi=Mi("ChevronBarLeft",''),Ai=Mi("ChevronDoubleLeft",''),Bi=Mi("ChevronDown",''),Hi=Mi("ChevronLeft",''),Ni=Mi("CircleFill",''),zi=Mi("Star",''),Yi=Mi("StarFill",''),Gi=Mi("StarHalf",''),Wi=Mi("X",'');function Ui(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function qi(t){for(var e=1;e1?n-1:0),r=1;rt.length)&&(e=t.length);for(var n=0,i=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,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(e)return e;if(ki(i))return null;if(lt(n))return n||o;if(ht(n)&&(n.path||n.query||n.hash)){var a=yn(n.path),s=ji(n.query),l=yn(n.hash);return l=l&&"#"!==l.charAt(0)?"#".concat(l):l,"".concat(a).concat(s).concat(l)||o}return r}({to:this.to,href:this.href},this.computedTag)},computedProps:function(){var t=this.prefetch;return this.isRouterLink?mr(mr({},Kn(mr(mr({},gr),Or),this)),{},{prefetch:st(t)?t:void 0,tag:this.routerTag}):{}},computedAttrs:function(){var t=this.bvAttrs,e=this.computedHref,n=this.computedRel,i=this.disabled,r=this.target,o=this.routerTag,a=this.isRouterLink;return mr(mr(mr(mr({},t),e?{href:e}:{}),a&&!kn(o,"a")?{}:{rel:n,target:r}),{},{tabindex:i?"-1":it(t.tabindex)?null:t.tabindex,"aria-disabled":i?"true":null})},computedListeners:function(){return mr(mr({},this.bvListeners),{},{click:this.onClick})}},methods:{onClick:function(t){var e=arguments,n=pt(t),i=this.isRouterLink,r=this.bvListeners.click;n&&this.disabled?ci(t,{immediatePropagation:!0}):(i&&t.currentTarget.__vue__&&t.currentTarget.__vue__.$emit(ae,t),hn(r).filter((function(t){return at(t)})).forEach((function(t){t.apply(void 0,fr(e))})),this.emitOnRoot(yr,t),this.emitOnRoot("clicked::link",t)),n&&!i&&"#"===this.computedHref&&ci(t,{propagation:!1})},focus:function(){Hn(this.$el)},blur:function(){Nn(this.$el)}},render:function(t){var e=this.active,n=this.disabled;return t(this.computedTag,vr({class:{active:e,disabled:n},attrs:this.computedAttrs,props:this.computedProps},this.isRouterLink?"nativeOn":"on",this.computedListeners),this.normalizeSlot())}});function Sr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function jr(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(D,"")},Vr=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}},Ar="gregory",Br="long",Hr="short",Nr="2-digit",zr="numeric";function Yr(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=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Gr(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 Gr(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 Gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t=Jr(t),e=Jr(e)||t,n=Jr(n)||t,t?tn?n:t:null},ho=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(t){return t.toLowerCase()})),fo=function(t){var e=yn(t).toLowerCase().replace(H,"").split("-"),n=e.slice(0,2).join("-"),i=e[0];return dn(ho,n)||dn(ho,i)},po={id:qn(He)},bo=n.default.extend({props:po,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 mo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function vo(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:Ar;return t=hn(t).filter(_t),new Intl.DateTimeFormat(t,{calendar:e}).resolvedOptions().locale}(hn(this.locale).filter(_t),Ar)},computedDateDisabledFn:function(){var t=this.dateDisabledFn;return Qn(t)?t:function(){return!1}},computedDateInfoFn:function(){var t=this.dateInfoFn;return Qn(t)?t:function(){return{}}},calendarLocale:function(){var t=new Intl.DateTimeFormat(this.computedLocale,{calendar:Ar}),e=t.resolvedOptions().calendar,n=t.resolvedOptions().locale;return e!==Ar&&(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 Xr(this.calendarYear,this.calendarMonth,1,12)},calendarDaysInMonth:function(){var t=Xr(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=yn(this.direction).toLowerCase();return"rtl"===t||"ltr"!==t&&fo(this.computedLocale)},context:function(){var t=this.selectedYMD,e=this.activeYMD,n=Jr(t),i=Jr(e);return{selectedYMD:t,selectedDate:n,selectedFormatted:n?this.formatDateString(n):this.labelNoDateSelected,activeYMD:e,activeDate:i,activeFormatted:i?this.formatDateString(i):"",disabled:this.dateDisabled(i),locale:this.computedLocale,calendarLocale:this.calendarLocale,rtl:this.isRTL}},dateOutOfRange:function(){var t=this.computedMin,e=this.computedMax;return function(n){return n=Jr(n),t&&ne}},dateDisabled:function(){var t=this,e=this.dateOutOfRange;return function(n){n=Jr(n);var i=Zr(n);return!(!e(n)&&!t.computedDateDisabledFn(i,n))}},formatDateString:function(){return Qr(this.calendarLocale,vo(vo({year:zr,month:Nr,day:Nr},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:Ar}))},formatYearMonth:function(){return Qr(this.calendarLocale,{year:zr,month:Br,calendar:Ar})},formatWeekdayName:function(){return Qr(this.calendarLocale,{weekday:Br,calendar:Ar})},formatWeekdayNameShort:function(){return Qr(this.calendarLocale,{weekday:this.weekdayHeaderFormat||Hr,calendar:Ar})},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&&no(lo(this.activeDate))t},nextYearDisabled:function(){var t=this.computedMax;return this.disabled||t&&eo(so(this.activeDate))>t},nextDecadeDisabled:function(){var t=this.computedMax;return this.disabled||t&&eo(co(this.activeDate))>t},calendar:function(){for(var t=[],e=this.calendarFirstDay,n=e.getFullYear(),i=e.getMonth(),r=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 xo=Do&&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()}),Co))}};function $o(t){return t&&"[object Function]"==={}.toString.call(t)}function Eo(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function Fo(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function Io(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Eo(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?t:Io(Fo(t))}function Mo(t){return t&&t.referenceNode?t.referenceNode:t}var _o=Do&&!(!window.MSInputMethodContext||!document.documentMode),Lo=Do&&/MSIE 10/.test(navigator.userAgent);function Ro(t){return 11===t?_o:10===t?Lo:_o||Lo}function Vo(t){if(!t)return document.documentElement;for(var e=Ro(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Eo(n,"position")?Vo(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Ao(t){return null!==t.parentNode?Ao(t.parentNode):t}function Bo(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Vo(a.firstElementChild)!==a?Vo(l):l;var c=Ao(t);return c.host?Bo(c.host,e):Bo(t,Ao(e).host)}function Ho(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||r;return o[n]}return t[n]}function No(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Ho(e,"top"),r=Ho(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function zo(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function Yo(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Ro(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function Go(t){var e=t.body,n=t.documentElement,i=Ro(10)&&getComputedStyle(n);return{height:Yo("Height",e,n,i),width:Yo("Width",e,n,i)}}var Wo=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Uo=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=Ro(10),r="HTML"===e.nodeName,o=Jo(t),a=Jo(e),s=Io(t),l=Eo(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Xo({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,!i&&r){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(i&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=No(d,e)),d}function Qo(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=Zo(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:Ho(n),s=e?0:Ho(n,"left"),l={top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o};return Xo(l)}function ta(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Eo(t,"position"))return!0;var n=Fo(t);return!!n&&ta(n)}function ea(t){if(!t||!t.parentElement||Ro())return document.documentElement;for(var e=t.parentElement;e&&"none"===Eo(e,"transform");)e=e.parentElement;return e||document.documentElement}function na(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?ea(t):Bo(t,Mo(e));if("viewport"===i)o=Qo(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=Io(Fo(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var l=Zo(s,a,r);if("HTML"!==s.nodeName||ta(a))o=l;else{var c=Go(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 ia(t){return t.width*t.height}function ra(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=na(n,i,o,r),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 Ko({key:t},s[t],{area:ia(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function oa(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?ea(e):Bo(e,Mo(n));return Zo(n,r,i)}function aa(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function sa(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 la(t,e,n){n=n.split("-")[0];var i=aa(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[a]=e[a]+e[l]/2-i[l]/2,r[s]=n===s?e[s]-i[c]:e[sa(s)],r}function ca(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function ua(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 i=ca(t,(function(t){return t[e]===n}));return t.indexOf(i)}(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&&$o(n)&&(e.offsets.popper=Xo(e.offsets.popper),e.offsets.reference=Xo(e.offsets.reference),e=n(e,t))})),e}function da(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=oa(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=ra(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=la(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=ua(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function ha(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function fa(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=ka.indexOf(t),i=ka.slice(n+1).concat(ka.slice(0,n));return e?i.reverse():i}var Da="flip",Ca="clockwise",xa="counterclockwise";function $a(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(ca(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,i){var r=(1===i?!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,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[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=i}return Xo(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,r,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){Oa(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))}))})),r}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],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:qo({},l,o[l]),end:qo({},l,o[l]+o[c]-a[c])};t.offsets.popper=Ko({},a,u[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=Oa(+n)?[+n,0]:$a(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||Vo(t.instance.popper);t.instance.reference===n&&(n=Vo(n));var i=fa("transform"),r=t.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=na(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=a,r[i]=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&&(i=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),qo({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=Ko({},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,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]o(i[s])&&(t.offsets.popper[l]=o(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Sa(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=aa(i)[c];s[f]-pa[f]&&(t.offsets.popper[d]+=s[d]+p-a[f]),t.offsets.popper=Xo(t.offsets.popper);var b=s[d]+s[c]/2-p/2,m=Eo(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=i,t.offsets.arrow=(qo(n={},d,Math.round(g)),qo(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(ha(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=na(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=sa(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Da:a=[i,r];break;case Ca:a=Pa(i);break;case xa:a=Pa(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],r=sa(i);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)d(u.top)||"bottom"===i&&d(c.top)d(n.right),b=d(c.top)d(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&b||"bottom"===i&&m,y=-1!==["top","bottom"].indexOf(i),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)&&(i=a[l+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=Ko({},t.offsets.popper,la(t.instance.popper,t.offsets.reference,t.placement)),t=ua(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],i=t.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),t.placement=sa(e),t.offsets.popper=Xo(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Sa(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=ca(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]:{};Wo(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=xo(this.update.bind(this)),this.options=Ko({},t.Defaults,r),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(Ko({},t.Defaults.modifiers,r.modifiers)).forEach((function(e){i.options.modifiers[e]=Ko({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Ko({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&$o(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Uo(t,[{key:"update",value:function(){return da.call(this)}},{key:"destroy",value:function(){return pa.call(this)}},{key:"enableEventListeners",value:function(){return ya.call(this)}},{key:"disableEventListeners",value:function(){return ga.call(this)}}]),t}();Fa.Utils=("undefined"!=typeof window?window:global).PopperUtils,Fa.placements=ja,Fa.Defaults=Ea;function Ia(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ma(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(Ia(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));gt(this,t.Defaults,this.constructor.Defaults,n,{type:e}),Ot(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 i=!1;this.preventDefault=function(){this.cancelable&&(i=!0)},wt(this,"defaultPrevented",{enumerable:!0,get:function(){return i}})}var e,n,i;return e=t,i=[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}],(n=null)&&Ma(e.prototype,n),i&&Ma(e,i),t}(),La=n.default.extend({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(si(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Fe),t&&ai(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Fe))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&ai(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Fe)},beforeDestroy:function(){si(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Fe)},methods:{isClickOut:function(t){return!En(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}}),Ra=n.default.extend({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(si(this.focusInElement,"focusin",this._focusInHandler,Fe),t&&ai(this.focusInElement,"focusin",this._focusInHandler,Fe))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&ai(this.focusInElement,"focusin",this._focusInHandler,Fe)},beforeDestroy:function(){si(this.focusInElement,"focusin",this._focusInHandler,Fe)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}});function Va(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Aa(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once(ye,this.focusToggler))},toggle:function(t){var e=t=t||{},n=e.type,i=e.keyCode;("click"===n||"keydown"===n&&-1!==[er,nr,tr].indexOf(i))&&(this.disabled?this.visible=!1:(this.$emit("toggle",t),ci(t),this.visible?this.hide(!0):this.show()))},onMousedown:function(t){ci(t,{propagation:!1})},onKeydown:function(t){var e=t.keyCode;27===e?this.onEsc(t):e===tr?this.focusNext(t,!1):e===ir&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,ci(t),this.$once(ye,this.focusToggler))},onSplitClick:function(t){this.disabled?this.visible=!1:this.$emit(ae,t)},hideHandler:function(t){var e=this,n=t.target;!this.visible||En(this.$refs.menu,n)||En(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,i=t.target;!this.visible||t&&$n(".dropdown form",i)||(ci(t),this.$nextTick((function(){var t=n.getItems();if(!(t.length<1)){var r=t.indexOf(i);e&&r>0?r--:!e&&r1&&void 0!==arguments[1]?arguments[1]:null;if(ht(t)){var n=Rt(t,this.valueField),i=Rt(t,this.textField);return{value:it(n)?e||i:n,text:Rr(String(it(i)?e:i)),html:Rt(t,this.htmlField),disabled:Boolean(Rt(t,this.disabledField))}}return{value:e||t,text:Rr(String(t)),disabled:!1}},normalizeOptions:function(t){var e=this;return ut(t)?t.map((function(t){return e.normalizeOption(t)})):ht(t)?(Bt('Setting prop "options" to an object is deprecated. Use the array format instead.',this.$options.name),Tt(t).map((function(n){return e.normalizeOption(t[n]||{},n)}))):[]}}}),Xa=function(t,e){for(var n=0;n-1:or(e,t)},isRadio:function(){return!1}},watch:gs({},Os,(function(t,e){or(t,e)||this.setIndeterminate(t)})),mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{computedLocalCheckedWatcher:function(t,e){if(!or(t,e)){this.$emit(ps,t);var n=this.$refs.input;n&&this.$emit(ws,n.indeterminate)}},handleChange:function(t){var e=this,n=t.target,i=n.checked,r=n.indeterminate,o=this.value,a=this.uncheckedValue,s=this.computedLocalChecked;if(ut(s)){var l=Xa(s,o);i&&l<0?s=s.concat(o):!i&&l>-1&&(s=s.slice(0,l).concat(s.slice(l+1)))}else s=i?o:a;this.computedLocalChecked=s,this.$nextTick((function(){e.$emit(oe,s),e.isGroup&&e.bvGroup.$emit(oe,s),e.$emit(ws,r)}))},setIndeterminate:function(t){ut(this.computedLocalChecked)&&(t=!1);var e=this.$refs.input;e&&(e.indeterminate=t,this.$emit(ws,t))}}}),js="__BV_hover_handler__",ks="mouseenter",Ps=function(t,e,n){li(t,e,ks,n,Fe),li(t,e,"mouseleave",n,Fe)},Ds=function(t,e){var n=e.value,i=void 0===n?null:n;if(y){var r=t[js],o=at(r),a=!(o&&r.fn===i);o&&a&&(Ps(!1,t,r),delete t[js]),at(i)&&a&&(t[js]=function(t){var e=function(e){t(e.type===ks,e)};return e.fn=t,e}(i),Ps(!0,t,t[js]))}},Cs={bind:Ds,componentUpdated:Ds,unbind:function(t){Ds(t,{value:null})}};function xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function $s(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(ko,{staticClass:"b-form-date-calendar w-100",props:Ls(Ls({},Kn(zs,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(Ms,{staticClass:"b-form-datepicker",props:Ls(Ls({},Kn(Ys,o)),{},{formattedValue:e?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":r,"text-light":r},this.menuClass],placeholder:s,rtl:this.isRTL,value:e}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:Rs({},Qe,a["button-content"]||this.defaultButtonFn),ref:"control"},[h])}}),Us=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 qs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ks(t){for(var e=1;e2&&void 0!==arguments[2]&&arguments[2];return t=yn(t),!this.hasFormatter||this.lazyFormatter&&!n||(t=this.formatter(t,e)),t},modifyValue:function(t){return t=yn(t),this.trim&&(t=t.trim()),this.number&&(t=pn(t,t)),t},updateValue:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.lazy;if(!i||n){this.clearDebounce();var r=function(){if((t=e.modifyValue(t))!==e.vModelValue)e.vModelValue=t,e.$emit(el,t);else if(e.hasFormatter){var n=e.$refs.input;n&&t!==n.value&&(n.value=t)}},o=this.computedDebounce;o>0&&!i&&!n?this.$_inputDebounceTimer=setTimeout(r,o):r()}},onInput:function(t){if(!t.target.composing){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?ci(t,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit(Oe,n))}},onChange:function(t){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?ci(t,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit(oe,n))},onBlur:function(t){var e=t.target.value,n=this.formatValue(e,t,!0);!1!==n&&(this.localValue=yn(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",t)},focus:function(){this.disabled||Hn(this.$el)},blur:function(){this.disabled||Nn(this.$el)}}}),rl=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 ol(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function al(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:i&&e===n||!fn(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)])])}}),Sl=Jn(Ct(fl(fl(fl(fl(fl({},po),vl),Pt(Za,["required","autofocus"])),ns),{},{color:qn(He),iconClear:qn(He,"x"),iconEmpty:qn(He,"star"),iconFull:qn(He,"star-fill"),iconHalf:qn(He,"star-half"),inline:qn(_e,!1),locale:qn(Ge),noBorder:qn(_e,!1),precision:qn(qe),readonly:qn(_e,!1),showClear:qn(_e,!1),showValue:qn(_e,!1),showValueMax:qn(_e,!1),stars:qn(qe,5,(function(t){return fn(t)>=3})),variant:qn(He)})),Ut),jl=n.default.extend({name:Ut,components:{BIconStar:zi,BIconStarHalf:Gi,BIconStarFill:Yi,BIconX:Wi},mixins:[bo,ml,is],props:Sl,data:function(){var t=pn(this[yl],null),e=Ol(this.stars);return{localValue:rt(t)?null:wl(t,0,e),hasFocus:!1}},computed:{computedStars:function(){return Ol(this.stars)},computedRating:function(){var t=pn(this.localValue,0),e=fn(this.precision,3);return wl(pn(t.toFixed(e)),0,this.computedStars)},computedLocale:function(){var t=hn(this.locale).filter(_t);return new Intl.NumberFormat(t).resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return fo(this.computedLocale)},formattedRating:function(){var t=fn(this.precision),e=this.showValueMax,n=this.computedLocale,i={notation:"standard",minimumFractionDigits:isNaN(t)?0:t,maximumFractionDigits:isNaN(t)?3:t},r=this.computedStars.toLocaleString(n),o=this.localValue;return o=rt(o)?e?"-":"":o.toLocaleString(n,i),e?"".concat(o,"/").concat(r):o}},watch:(ll={},pl(ll,yl,(function(t,e){if(t!==e){var n=pn(t,null);this.localValue=rt(n)?null:wl(n,0,this.computedStars)}})),pl(ll,"localValue",(function(t,e){t!==e&&t!==(this.value||0)&&this.$emit(gl,t||null)})),pl(ll,"disabled",(function(t){t&&(this.hasFocus=!1,this.blur())})),ll),methods:{focus:function(){this.disabled||Hn(this.$el)},blur:function(){this.disabled||Nn(this.$el)},onKeydown:function(t){var e=t.keyCode;if(this.isInteractive&&dn([37,tr,39,ir],e)){ci(t,{propagation:!1});var n=fn(this.localValue,0),i=this.showClear?0:1,r=this.computedStars,o=this.isRTL?-1:1;37===e?this.localValue=wl(n-o,i,r)||null:39===e?this.localValue=wl(n+o,i,r):e===tr?this.localValue=wl(n-1,i,r)||null:e===ir&&(this.localValue=wl(n+1,i,r))}},onSelected:function(t){this.isInteractive&&(this.localValue=t)},onFocus:function(t){this.hasFocus=!!this.isInteractive&&"focus"===t.type},renderIcon:function(t){return this.$createElement(Qi,{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(Qi,{props:{icon:this.iconClear}})}},render:function(t){var e=this,n=this.disabled,i=this.readonly,r=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&&!i){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(ht(t)){var n=Rt(t,this.valueField),i=Rt(t,this.textField),r=Rt(t,this.optionsField,null);return rt(r)?{value:it(n)?e||i:n,text:String(it(i)?e:i),html:Rt(t,this.htmlField),disabled:Boolean(Rt(t,this.disabledField))}:{label:String(Rt(t,this.labelField)||i),options:this.normalizeOptions(r)}}return{value:e||t,text:String(t),disabled:!1}}}}),_l=Jn({disabled:qn(_e,!1),value:qn(Ie,void 0,!0)},Kt),Ll=n.default.extend({name:Kt,functional:!0,props:_l,render:function(t,e){var n=e.props,i=e.data,r=e.children,o=n.value;return t("option",p(i,{attrs:{disabled:n.disabled},domProps:{value:o}}),r)}});function Rl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Vl(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:null;return t&&t.$options._scopeId||e};var ql=n.default.extend({computed:{scopedStyleAttrs:function(){var t,e,n,i=Ul(this.$parent);return i?(n="",(e=i)in(t={})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t):{}}}}),Kl={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},Xl={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},Jl={arrowPadding:qn(qe,6),boundary:qn([Q,He],"scrollParent"),boundaryPadding:qn(qe,5),fallbackPlacement:qn(Ge,"flip"),offset:qn(qe,0),placement:qn(He,"top"),target:qn([Q,tt])},Zl=n.default.extend({name:"BVPopper",props:Jl,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var t=this,e=this.placement;return{placement:this.getAttachment(e),modifiers:{offset:{offset:this.getOffset(e)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t.popperPlacementChange(e)},onUpdate:function(e){t.popperPlacementChange(e)}}}},created:function(){var t=this;this.$_popper=null,this.localShow=!0,this.$on(De,(function(e){t.popperCreate(e)}));var e=function(){t.$nextTick((function(){Sn((function(){t.$destroy()}))}))};this.$parent.$once($e,e),this.$once(ye,e)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{hide:function(){this.localShow=!1},getAttachment:function(t){return Kl[String(t).toUpperCase()]||"auto"},getOffset:function(t){if(!this.offset){var e=this.$refs.arrow||Cn(".arrow",this.$el),n=pn(function(t){var e=g.getComputedStyle;return e&&jn(t)?e(t):{}}(e).width,0)+pn(this.arrowPadding,0);switch(Xl[String(t).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(t){this.destroyPopper(),this.$_popper=new Fa(this.target,t,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(t){this.attachment=this.getAttachment(t.placement)},renderTemplate:function(t){return t("div")}},render:function(t){var e=this,n=this.noFade;return t(gi,{props:{appear:!0,noFade:n},on:{beforeEnter:function(t){return e.$emit(De,t)},afterEnter:function(t){return e.$emit(Ce,t)},beforeLeave:function(t){return e.$emit(ge,t)},afterLeave:function(t){return e.$emit(ye,t)}}},[this.localShow?this.renderTemplate(t):t()])}});function Ql(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tc(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=!1;Tt(fc).forEach((function(i){it(e[i])||t[i]===e[i]||(t[i]=e[i],"title"===i&&(n=!0))})),n&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var t=this.getContainer(),e=this.getTemplate(),n=this.$_tip=new e({parent:this,propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:fn(this.offset,0),arrowPadding:fn(this.arrowPadding,0),boundaryPadding:fn(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once(De,this.onTemplateShow),n.$once(Ce,this.onTemplateShown),n.$once(ge,this.onTemplateHide),n.$once(ye,this.onTemplateHidden),n.$once($e,this.destroyTemplate),n.$on(be,this.handleEvent),n.$on(me,this.handleEvent),n.$on(we,this.handleEvent),n.$on(Te,this.handleEvent),n.$mount(t.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(t){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var t=this,e=this.$_tip;if(e){["title","content","variant","customClass","noFade","interactive"].forEach((function(n){e[n]!==t[n]&&(e[n]=t[n])}))}},show:function(){var t=this.getTarget();if(t&&En(document.body,t)&&Dn(t)&&!this.dropdownOpen()&&(!ot(this.title)&&""!==this.title||!ot(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var e=this.buildEvent(De,{cancelable:!0});this.emitEvent(e),e.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getTemplateElement();if(e&&this.localShow){var n=this.buildEvent(ge,{cancelable:!t});this.emitEvent(n),n.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){this.getTemplateElement()&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent(fe))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(de))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var t=this.$_hoverState;this.$_hoverState="","out"===t&&this.leave(null),this.emitEvent(this.buildEvent(Ce))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(ye))},getTarget:function(){var t=this.target;return lt(t)?t=Fn(t.replace(/^#/,"")):at(t)?t=t():t&&(t=t.$el||t),jn(t)?t:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var t=this.getTarget();return t&&t.id?t.id:null},getContainer:function(){var t=!!this.container&&(this.container.$el||this.container),e=document.body,n=this.getTarget();return!1===t?$n(dc,n)||e:lt(t)&&Fn(t.replace(/^#/,""))||e},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var t=this.getTarget();return t&&$n(cc,t)},isDropdown:function(){var t=this.getTarget();return t&&In(t,"dropdown")},dropdownOpen:function(){var t=this.getTarget();return this.isDropdown()&&t&&Cn(".dropdown-menu.show",t)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var t in this.activeTrigger)this.activeTrigger[t]=!1},addAriaDescribedby:function(){var t=this.getTarget(),e=Ln(t,"aria-describedby")||"";e=e.split(/\s+/).concat(this.computedId).join(" ").trim(),Mn(t,"aria-describedby",e)},removeAriaDescribedby:function(){var t=this,e=this.getTarget(),n=Ln(e,"aria-describedby")||"";(n=n.split(/\s+/).filter((function(e){return e!==t.computedId})).join(" ").trim())?Mn(e,"aria-describedby",n):_n(e,"aria-describedby")},fixTitle:function(){var t=this.getTarget();if(Rn(t,"title")){var e=Ln(t,"title");Mn(t,"title",""),e&&Mn(t,hc,e)}},restoreTitle:function(){var t=this.getTarget();if(Rn(t,hc)){var e=Ln(t,hc);_n(t,hc),e&&Mn(t,"title",e)}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new _a(t,oc({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},e))},emitEvent:function(t){var e=t.type;this.emitOnRoot(di(this.templateType,e),t),this.$emit(e,t)},listen:function(){var t=this,e=this.getTarget();e&&(this.setRootListener(!0),this.computedTriggers.forEach((function(n){"click"===n?ai(e,"click",t.handleEvent,Fe):"focus"===n?(ai(e,"focusin",t.handleEvent,Fe),ai(e,"focusout",t.handleEvent,Fe)):"blur"===n?ai(e,"focusout",t.handleEvent,Fe):"hover"===n&&(ai(e,"mouseenter",t.handleEvent,Fe),ai(e,"mouseleave",t.handleEvent,Fe))}),this))},unListen:function(){var t=this,e=this.getTarget();this.setRootListener(!1),["click","focusin","focusout","mouseenter","mouseleave"].forEach((function(n){e&&si(e,n,t.handleEvent,Fe)}),this)},setRootListener:function(t){var e=this.$root;if(e){var n=t?"$on":"$off",i=this.templateType;e[n](hi(i,ge),this.doHide),e[n](hi(i,De),this.doShow),e[n](hi(i,ue),this.doDisable),e[n](hi(i,he),this.doEnable)}},setWhileOpenListeners:function(t){this.setModalListener(t),this.setDropdownListener(t),this.visibleCheck(t),this.setOnTouchStartListener(t)},visibleCheck:function(t){var e=this;this.clearVisibilityInterval();var n=this.getTarget(),i=this.getTemplateElement();t&&(this.$_visibleInterval=setInterval((function(){!i||!e.localShow||n.parentNode&&Dn(n)||e.forceHide()}),100))},setModalListener:function(t){this.isInModal()&&this.$root[t?"$on":"$off"](uc,this.forceHide)},setOnTouchStartListener:function(t){var e=this;"ontouchstart"in document.documentElement&&un(document.body.children).forEach((function(n){li(t,n,"mouseover",e.$_noop)}))},setDropdownListener:function(t){var e=this.getTarget();e&&this.$root&&this.isDropdown&&e.__vue__&&e.__vue__[t?"$on":"$off"](Ce,this.forceHide)},handleEvent:function(t){var e=this.getTarget();if(e&&(jn(n=e)&&!n.disabled&&!Rn(n,"disabled")&&!In(n,"disabled"))&&this.$_enabled&&!this.dropdownOpen()){var n,i=t.type,r=this.computedTriggers;if("click"===i&&dn(r,"click"))this.click(t);else if("mouseenter"===i&&dn(r,"hover"))this.enter(t);else if("focusin"===i&&dn(r,"focus"))this.enter(t);else if("focusout"===i&&(dn(r,"focus")||dn(r,"blur"))||"mouseleave"===i&&dn(r,"hover")){var o=this.getTemplateElement(),a=t.target,s=t.relatedTarget;if(o&&En(o,a)&&En(e,s)||o&&En(e,a)&&En(o,s)||o&&En(o,a)&&En(o,s)||En(e,a)&&En(e,s))return;this.leave(t)}}},doHide:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.forceHide()},doShow:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.show()},doDisable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.disable()},doEnable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.enable()},click:function(t){this.$_enabled&&!this.dropdownOpen()&&(Hn(t.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusin"===e.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===t.$_hoverState?t.show():t.localShow||t.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusout"===e.type?"focus":"hover"]=!1,"focusout"===e.type&&dn(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===t.$_hoverState&&t.hide()}),this.computedDelay.hide):this.hide())}}});function bc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function mc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vc="disabled",yc="update:disabled",gc="show",Oc=Jn((mc(sc={boundary:qn([Q,Ae,He],"scrollParent"),boundaryPadding:qn(qe,50),container:qn([Q,Ae,He]),customClass:qn(He),delay:qn(Ke,50)},vc,qn(_e,!1)),mc(sc,"fallbackPlacement",qn(Ge,"flip")),mc(sc,"id",qn(He)),mc(sc,"noFade",qn(_e,!1)),mc(sc,"noninteractive",qn(_e,!1)),mc(sc,"offset",qn(qe,0)),mc(sc,"placement",qn(He,"top")),mc(sc,gc,qn(_e,!1)),mc(sc,"target",qn([Q,tt,Re,Ae,He],void 0,!0)),mc(sc,"title",qn(He)),mc(sc,"triggers",qn(Ge,"hover focus")),mc(sc,"variant",qn(He)),sc),re),wc=n.default.extend({name:re,mixins:[ri],inheritAttrs:!1,props:Oc,data:function(){return{localShow:this.show,localTitle:"",localContent:""}},computed:{templateData:function(){return function(t){for(var e=1;e0}}});function Sc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function jc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kc="light",Pc="dark",Dc=Jn({variant:qn(He)},"BTr"),Cc=n.default.extend({name:"BTr",mixins:[ur,hr,ri],provide:function(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:function(){return{}}}},inheritAttrs:!1,props:Dc,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!==kc&&this.footVariant!==kc&&(this.headVariant===Pc||this.footVariant===Pc||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},_c=function(t){return ot(t)||Mc(t)>0},Lc=Jn({colspan:qn(qe,null,_c),rowspan:qn(qe,null,_c),stackedHeading:qn(He),stickyColumn:qn(_e,!1),variant:qn(He)},te),Rc=n.default.extend({name:te,mixins:[ur,hr,ri],inject:{bvTableTr:{default:function(){return{}}}},inheritAttrs:!1,props:Lc,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 Mc(this.colspan)},computedRowspan:function(){return Mc(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,i=this.computedRowspan,r="cell",o=null;return e?(r="columnheader",o=n>0?"colspan":"col"):kn(this.tag,"th")&&(r="rowheader",o=i>0?"rowgroup":"row"),Fc(Fc({colspan:n,rowspan:i,role:r,scope:o},this.bvAttrs),{},{"data-label":this.isStackedCell&&!ot(t)?yn(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 Vc,Ac,Bc,Hc="busy",Nc=(Vc={},Ac=Hc,Bc=qn(_e,!1),Ac in Vc?Object.defineProperty(Vc,Ac,{value:Bc,enumerable:!0,configurable:!0,writable:!0}):Vc[Ac]=Bc,Vc),zc=n.default.extend({props:Nc,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&&(ci(t),!0)},renderBusy:function(){var t=this.tbodyTrClass,e=this.tbodyTrAttr,n=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(on)?n(Cc,{staticClass:"b-table-busy-slot",class:[at(t)?t(null,on):t],attrs:at(e)?e(null,on):e,key:"table-busy-slot"},[n(Rc,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(on)])]):null}}}),Yc={caption:qn(He),captionHtml:qn(He)},Gc=n.default.extend({props:Yc,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.caption,e=this.captionHtml,n=this.$createElement,i=n(),r=this.hasNormalizedSlot(an);return(r||t||e)&&(i=n("caption",{attrs:{id:this.captionId},domProps:r?{}:Vr(e,t),key:"caption",ref:"caption"},this.normalizeSlot(an))),i}}}),Wc=n.default.extend({methods:{renderColgroup:function(){var t=this.computedFields,e=this.$createElement,n=e();return this.hasNormalizedSlot(sn)&&(n=e("colgroup",{key:"colgroup"},[this.normalizeSlot(sn,{columns:t.length,fields:t})])),n}}}),Uc={emptyFilteredHtml:qn(He),emptyFilteredText:qn(He,"There are no records matching your request"),emptyHtml:qn(He),emptyText:qn(He,"There are no records to show"),showEmpty:qn(_e,!1)},qc=n.default.extend({props:Uc,methods:{renderEmpty:function(){var t=this.computedItems,e=this.$createElement,n=e();if(this.showEmpty&&(!t||0===t.length)&&(!this.computedBusy||!this.hasNormalizedSlot(on))){var i=this.computedFields,r=this.isFiltered,o=this.emptyText,a=this.emptyHtml,s=this.emptyFilteredText,l=this.emptyFilteredHtml,c=this.tbodyTrClass,u=this.tbodyTrAttr;(n=this.normalizeSlot(r?"emptyfiltered":"empty",{emptyFilteredHtml:l,emptyFilteredText:s,emptyHtml:a,emptyText:o,fields:i,items:t}))||(n=e("div",{class:["text-center","my-2"],domProps:r?Vr(l,s):Vr(a,o)})),n=e(Rc,{props:{colspan:i.length||null}},[e("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=e(Cc,{staticClass:"b-table-empty-row",class:[at(c)?c(null,"row-empty"):c],attrs:at(u)?u(null,"row-empty"):u,key:r?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}}),Kc=function t(e){return ot(e)?"":dt(e)&&!ft(e)?Tt(e).sort().map((function(n){return t(e[n])})).filter((function(t){return!!t})).join(" "):yn(e)};function Xc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Jc(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:{},r=Tt(i).reduce((function(e,n){var r=i[n],o=r.filterByFormatted,a=at(o)?o:o?r.formatter:null;return at(a)&&(e[n]=a(t[n],n,t)),e}),jt(t)),o=Tt(r).filter((function(t){return!(nu[t]||ut(e)&&e.length>0&&dn(e,t)||ut(n)&&n.length>0&&!dn(n,t))}));return kt(r,o)};function ou(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&Bt('Prop "filter-debounce" is deprecated. Use the debounce feature of "" instead.',Qt),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 Qn(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,i=!1;n?or(n,[])||or(n,{})?i=!1:n&&(i=!0):i=!1,i&&this.$emit(pe,e,e.length),this.isFiltered=i},isFiltered:function(t,e){if(!1===t&&!0===e){var n=this.localItems;this.$emit(pe,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||lt(t)||bt(t)?Mt(t):""},filterFnFactory:function(t,e){if(!t||!at(t)||!e||or(e,[])||or(e,{}))return null;return function(n){return t(n,e)}},defaultFilterFnFactory:function(t){var e=this;if(!t||!lt(t)&&!bt(t))return null;var n,i=t;if(lt(i)){var r=(n=t,n.replace(E,"\\$&")).replace(F,"\\s+");i=new RegExp(".*".concat(r,".*"),"i")}return function(t){return i.lastIndex=0,i.test((n=t,r=e.computedFilterIgnored,o=e.computedFilterIncluded,a=e.computedFieldsObj,dt(n)?Kc(ru(n,r,o,a)):""));var n,r,o,a}}}}),cu=function(t,e){var n=[];if(ut(t)&&t.filter(_t).forEach((function(t){if(lt(t))n.push({key:t,label:vn(t)});else if(dt(t)&&t.key&<(t.key))n.push(jt(t));else if(dt(t)&&1===Tt(t).length){var e=Tt(t)[0],i=function(t,e){var n=null;return lt(e)?n={key:t,label:e}:at(e)?n={key:t,formatter:e}:dt(e)?(n=jt(e)).key=n.key||t:!1!==e&&(n={key:t}),n}(e,t[e]);i&&n.push(i)}})),0===n.length&&ut(e)&&e.length>0){var i=e[0];Tt(i).forEach((function(t){nu[t]||n.push({key:t,label:vn(t)})}))}var r={};return n.filter((function(t){return!r[t.key]&&(r[t.key]=!0,t.label=lt(t.label)?t.label:vn(t.key),!0)}))};function uu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function du(t){for(var e=1;e0&&t.some(_t)},selectableIsMultiSelect:function(){return this.isSelectable&&dn(["range","multi"],this.selectMode)},selectableTableClasses:function(){var t,e=this.isSelectable;return Pu(t={"b-table-selectable":e},"b-table-select-".concat(this.selectMode),e),Pu(t,"b-table-selecting",this.selectableHasSelection),Pu(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=ut(t)&&ut(e)&&t.length===e.length;for(var i=0;n&&i=0&&t0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?function(t,e){var n=at(e)?e:function(){return e};return Array.apply(null,{length:t}).map(n)}(t,!0):[!0])},isRowSelected:function(t){return!(!ct(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 Pu({"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](ke,this.selectionHandler),this[e](pe,this.clearSelected),this[e](ce,this.clearSelected)},selectionHandler:function(t,e,n){if(this.isSelectable&&!this.noSelectOnClick){var i=this.selectMode,r=this.selectedLastRow,o=this.selectedRows.slice(),a=!o[e];if("single"===i)o=[];else if("range"===i)if(r>-1&&n.shiftKey){for(var s=Oi(r,e);s<=wi(r,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()}}}),Fu=function(t){return ot(t)?"":function(t){return $.test(String(t))}(t)?pn(t,t):t};function Iu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Mu(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},i=n.sortBy,r=void 0===i?null:i,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=Rt(t,r,null),p=Rt(e,r,null);return at(a)&&(f=a(f,r,t),p=a(p,r,e)),f=Fu(f),p=Fu(p),ft(f)&&ft(p)||ct(f)&&ct(p)?fp?1:0:h&&""===f&&""!==p?1:h&&""!==f&&""===p?-1:Kc(f).localeCompare(Kc(p),l,u)}(t,a,{sortBy:e,formatter:u,locale:i,localeOptions:l,nullLast:r})),(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:(Cu={isSortable:function(t){t?this.isSortable&&this.$on(ve,this.handleSort):this.$off(ve,this.handleSort)}},_u(Cu,Ru,(function(t){t!==this.localSortDesc&&(this.localSortDesc=t||!1)})),_u(Cu,Lu,(function(t){t!==this.localSortBy&&(this.localSortBy=t||"")})),_u(Cu,"localSortDesc",(function(t,e){t!==e&&this.$emit("update:sortDesc",t)})),_u(Cu,"localSortBy",(function(t,e){t!==e&&this.$emit("update:sortBy",t)})),Cu),created:function(){this.isSortable&&this.$on(ve,this.handleSort)},methods:{handleSort:function(t,e,n,i){var r=this;if(this.isSortable&&(!i||!this.noFooterSorting)){var o=!1,a=function(){var t=e.sortDirection||r.sortDirection;t===Vu?r.localSortDesc=!1:t===Au&&(r.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 i=e.sortable;return{"aria-sort":i&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":i?"none":null}},sortTheadThLabel:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return null;var i="";if(e.sortable)if(this.localSortBy===t)i=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{i=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var r=this.sortDirection||e.sortDirection;r===Vu?i=this.labelSortAsc:r===Au&&(i=this.labelSortDesc)}else this.noSortReset||(i=this.localSortBy?this.labelSortClear:"");return gn(i)||null}}});var zu={stacked:qn(We,!1)},Yu=n.default.extend({props:zu,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 Gu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Wu(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,i=this.selectableTableAttrs,r=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":yn(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null};return Wu(Wu(Wu({"aria-rowcount":t&&e&&e.length>t.length?yn(e.length):null},this.bvAttrs),{},{id:this.safeId(),role:"table"},r),i)}},render:function(t){var e=this.wrapperClasses,n=this.renderCaption,i=this.renderColgroup,r=this.renderThead,o=this.renderTbody,a=this.renderTfoot,s=[];this.isTableSimple?s.push(this.normalizeSlot()):(s.push(n?n():null),s.push(i?i():null),s.push(r?r():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(_t));return e.length>0?t("div",{class:e,style:this.wrapperStyles,key:"wrap"},[l]):l}});function Xu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ju(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:document,e=Bn();return!!(e&&""!==e.toString().trim()&&e.containsNode&&jn(t))&&e.containsNode(t,!0)},rd=Jn(Lc,"BTh"),od=n.default.extend({name:"BTh",extends:Rc,props:rd,computed:{tag:function(){return"th"}}});function ad(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function sd(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&(v=String((a-1)*s+e+1));var y=yn(Rt(t,o))||null,g=y||yn(e),O=y?this.safeId("_row_".concat(y)):null,w=this.selectableRowClasses?this.selectableRowClasses(e):{},T=this.selectableRowAttrs?this.selectableRowAttrs(e):{},S=at(l)?l(t,"row"):l,j=at(c)?c(t,"row"):c;if(p.push(u(Cc,{class:[S,w,h?"b-table-has-details":""],props:{variant:t[tu]||null},attrs:sd(sd({id:O},j),{},{tabindex:f?"0":null,"data-pk":y||null,"aria-details":b,"aria-owns":b,"aria-rowindex":v},T),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(g,"__"),ref:"item-rows",refInFor:!0},m)),h){var k={item:t,index:e,fields:i,toggleDetails:this.toggleDetailsFactory(d,t)};this.supportsSelectableRows&&(k.rowSelected=this.isRowSelected(e),k.selectRow=function(){return n.selectRow(e)},k.unselectRow=function(){return n.unselectRow(e)});var P=u(Rc,{props:{colspan:i.length},class:this.detailsTdClass},[this.normalizeSlot(rn,k)]);r&&p.push(u("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(g)}));var D=at(this.tbodyTrClass)?this.tbodyTrClass(t,rn):this.tbodyTrClass,C=at(this.tbodyTrAttr)?this.tbodyTrAttr(t,rn):this.tbodyTrAttr;p.push(u(Cc,{staticClass:"b-table-details",class:[D],props:{variant:t[tu]||null},attrs:sd(sd({},C),{},{id:b,tabindex:"-1"}),key:"__b-table-details__".concat(g)},[P]))}else d&&(p.push(u()),r&&p.push(u()));return p}}});function hd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function fd(t){for(var e=1;e0&&n&&n.length>0?un(e.children).filter((function(t){return dn(n,t)})):[]},getTbodyTrIndex:function(t){if(!jn(t))return-1;var e="TR"===t.tagName?t:$n("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 i=this.computedItems[n];this.$emit(t,i,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&&Pn(e)&&0===e.tabIndex)if(dn([er,nr],n))ci(t),this.onTBodyRowClicked(t);else if(dn([ir,tr,36,35],n)){var i=this.getTbodyTrIndex(e);if(i>-1){ci(t);var r=this.getTbodyTrs(),o=t.shiftKey;36===n||o&&n===ir?Hn(r[0]):35===n||o&&n===tr?Hn(r[r.length-1]):n===ir&&i>0?Hn(r[i-1]):n===tr&&it.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],n=this.computedFields,i=this.isSortable,r=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=i||this.hasListener(ve),d=r?this.selectAllRows:Po,h=r?this.clearSelected:Po,f=function(n,r){var o=n.label,a=n.labelHtml,s=n.variant,l=n.stickyColumn,f=n.key,p=null;n.label.trim()||n.headerTitle||(p=vn(n.key));var b={};u&&(b.click=function(i){t.headClicked(i,n,e)},b.keydown=function(i){var r=i.keyCode;r!==er&&r!==nr||t.headClicked(i,n,e)});var m=i?t.sortTheadThAttrs(f,n,e):{},v=i?t.sortTheadThClasses(f,n,e):null,y=i?t.sortTheadThLabel(f,n,e):null,g={class:[t.fieldClasses(n),v],props:{variant:s,stickyColumn:l},style:n.thStyle||{},attrs:Fd(Fd({tabindex:u&&n.sortable?"0":null,abbr:n.headerAbbr||null,title:n.headerTitle||null,"aria-colindex":r+1,"aria-label":p},t.getThValues(null,f,n.thAttr,e?"foot":"head",{})),m),on:b,key:f},O=[Md(f),Md(f.toLowerCase()),Md()];e&&(O=[_d(f),_d(f.toLowerCase()),_d()].concat(xd(O)));var w={label:o,column:f,field:n,isFoot:e,selectAllRows:d,clearSelected:h},T=t.normalizeSlot(O,w)||c("div",{domProps:Vr(a,o)}),S=y?c("span",{staticClass:"sr-only"}," (".concat(y,")")):null;return c(od,g,[T,S].filter(_t))},p=n.map(f).filter(_t),b=[];if(e)b.push(c(Cc,{class:this.tfootTrClass,props:{variant:ot(l)?s:l}},p));else{var m={columns:n.length,fields:n,selectAllRows:d,clearSelected:h};b.push(this.normalizeSlot(ln,m)||c()),b.push(c(Cc,{class:this.theadTrClass,props:{variant:s}},p))}return c(e?Td:Cd,{class:(e?this.tfootClass:this.theadClass)||null,props:e?{footVariant:a||o||null}:{headVariant:o||null},key:e?"bv-tfoot":"bv-thead"},b)}}}),Vd=n.default.extend({methods:{renderTopRow:function(){var t=this.computedFields,e=this.stacked,n=this.tbodyTrClass,i=this.tbodyTrAttr,r=this.$createElement;return this.hasNormalizedSlot(cn)&&!0!==e&&""!==e?r(Cc,{staticClass:"b-table-top-row",class:[at(n)?n(null,"row-top"):n],attrs:at(i)?i(null,"row-top"):i,key:"b-top-row"},[this.normalizeSlot(cn,{columns:t.length,fields:t})]):r()}}});function Ad(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Bd(t){for(var e=1;e1&&l>0&&(n=(i-1)*l+n),r.tableItems[n][t]=e.value}))}o&&this.$emit("input",this.tableItems),delete this.localChanges[t||a]},handleListeners:function(t){var e={input:!0,"input-change":!0};return Object.keys(t).reduce((function(n,i){return e[i]?n:r(r({},n),{},o({},i,t[i]))}),{})},getCellValue:function(t,e){var n=this.tableMap[t.item.id],i=n&&n.fields[e.key]?n.fields[e.key].value:"";if(t.field.options){var r=t.field.options.find((function(t){return t.value===i}));i=r?r.text:i}return i},getCellData:function(t){return r(r({},t),{},{isEdit:this.tableMap[t.item.id].isEdit,id:t.item.id})},getValidity:function(t,e){return this.tableMap[t.item.id].fields[e.key].validity},showField:function(t,e,n){var i;return t.type===n&&(null===(i=this.tableMap[e.item.id])||void 0===i?void 0:i.isEdit)&&(this.selectedCell===t.key||"row"===this.editMode)&&t.editable},getFieldValue:function(t,e){var n;return null===(n=this.tableMap[e.item.id].fields[t.key])||void 0===n?void 0:n.value},enableFocus:function(t){return"cell"===this.editMode&&t},clearEditMode:function(t){if(t)this.tableMap[t].isEdit=!1;else for(var e in this.localChanges)this.tableMap[e].isEdit=!1},createTableItems:function(t){var e=this;this.tableItems=t.map((function(t){return r({},t)})),this.tableMap=t.reduce((function(t,n){return r(r({},t),{},o({},n.id,{id:n.id,isEdit:!!e.tableMap[n.id]&&e.tableMap[n.id].isEdit,fields:Object.keys(n).reduce((function(t,i){var a,s;return r(r({},t),{},o({},i,{value:n[i],validity:null!==(a=e.tableMap[n.id])&&void 0!==a&&null!==(s=a.fields[i])&&void 0!==s&&s.validity?e.tableMap[n.id].fields[i].validity:{valid:!0}}))}),{})}))}),{})}}});function Gd(t,e,n,i,r,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=d):e&&(d=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}const Wd="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function Ud(t){return(t,e)=>function(t,e){const n=Wd?e.media||"default":t,i=Kd[n]||(Kd[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.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))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===qd&&(qd=document.head||document.getElementsByTagName("head")[0]),qd.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const t=i.ids.size-1,e=document.createTextNode(n),r=i.element.childNodes;r[t]&&i.element.removeChild(r[t]),r.length?i.element.insertBefore(e,r[t]):i.element.appendChild(e)}}}(t,e)}let qd;const Kd={};var Xd=Gd({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,i){return{key:"cell("+e.key+")",fn:function(r){return[t.showField(e,r,"date")?n("div",{key:i},[n("b-form-datepicker",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus("date"),expression:"enableFocus('date')"}],key:i,attrs:{id:e.key+"-"+r.item.id,type:e.type,value:t.getFieldValue(e,r),state:!!t.getValidity(r,e).valid&&null},on:{input:function(n){return t.inputHandler(n,r,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,i,r)}}},"b-form-datepicker",Object.assign({},e),!1)),t._v(" "),t.getValidity(r,e).errorMessage?n("b-tooltip",{attrs:{target:e.key+"-"+r.item.id,variant:"danger",show:!t.getValidity(r,e).valid,disabled:!0}},[t._v("\n "+t._s(t.getValidity(r,e).errorMessage)+"\n ")]):t._e()],1):t.showField(e,r,"select")?n("div",{key:i},[n("b-form-select",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus(),expression:"enableFocus()"}],attrs:{id:e.key+"-"+r.item.id,value:t.getFieldValue(e,r),state:!!t.getValidity(r,e).valid&&null},on:{change:function(n){return t.inputHandler(n,r,e.key,e.options)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,i,r)}}},"b-form-select",Object.assign({},e),!1)),t._v(" "),t.getValidity(r,e).errorMessage?n("b-tooltip",{attrs:{target:e.key+"-"+r.item.id,variant:"danger",show:!t.getValidity(r,e).valid,disabled:!0}},[t._v("\n "+t._s(t.getValidity(r,e).errorMessage)+"\n ")]):t._e()],1):t.showField(e,r,"checkbox")?n("b-form-checkbox",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus("checkbox"),expression:"enableFocus('checkbox')"}],key:i,attrs:{id:e.key+"-"+r.item.id,checked:t.getFieldValue(e,r)},on:{change:function(n){return t.inputHandler(n,r,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,i,r)}}},"b-form-checkbox",Object.assign({},e),!1)):t.showField(e,r,"rating")?n("b-form-rating",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus(),expression:"enableFocus()"}],key:i,attrs:{id:e.key+"-"+r.item.id,value:t.getFieldValue(e,r)},on:{change:function(n){return t.inputHandler(n,r,e.key)}},nativeOn:{keydown:function(e){return t.handleKeydown(e,i,r)}}},"b-form-rating",Object.assign({},e),!1)):t.showField(e,r,e.type)?n("div",{key:i},[n("b-form-input",t._b({directives:[{name:"focus",rawName:"v-focus",value:t.enableFocus(),expression:"enableFocus()"}],attrs:{id:e.key+"-"+r.item.id,type:e.type,value:t.getFieldValue(e,r),state:!!t.getValidity(r,e).valid&&null},on:{keydown:function(e){return t.handleKeydown(e,i,r)},input:function(n){return t.inputHandler(n,r,e.key)},change:function(n){return t.changeHandler(n,r,e.key)}}},"b-form-input",Object.assign({},e),!1)),t._v(" "),t.getValidity(r,e).errorMessage?n("b-tooltip",{attrs:{target:e.key+"-"+r.item.id,variant:"danger",show:!t.getValidity(r,e).valid,disabled:!0}},[t._v("\n "+t._s(t.getValidity(r,e).errorMessage)+"\n ")]):t._e()],1):n("div",{key:i,staticClass:"data-cell",on:t._d({},[t.editTrigger,function(n){return t.handleEditCell(n,r.item.id,e.key,e.editable)}])},[t.$scopedSlots["cell("+e.key+")"]?t._t("cell("+e.key+")",null,null,t.getCellData(r)):[t._v(t._s(t.getCellValue(r,e)))]],2)]}}}))],null,!0)},"b-table",Object.assign({},t.$props,t.$attrs),!1),t.handleListeners(t.$listeners)))},staticRenderFns:[]},(function(t){t&&t("data-v-356900af_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})}),Yd,undefined,false,undefined,!1,Ud,void 0,void 0),Jd=function(){var t=Xd;return t.install=function(e){e.component("BEditableTable",t)},t}(),Zd=Object.freeze({__proto__:null,default:Jd});return Object.entries(Zd).forEach((function(t){var e=a(t,2),n=e[0],i=e[1];"default"!==n&&(Jd[n]=i)})),Jd}(Vue); \ No newline at end of file diff --git a/dist/b-editable-table.ssr.js b/dist/b-editable-table.ssr.js index dde0d66..5ae33d7 100644 --- a/dist/b-editable-table.ssr.js +++ b/dist/b-editable-table.ssr.js @@ -3,9 +3,14 @@ if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); + + if (enumerableOnly) { + symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + }); + } + + keys.push.apply(keys, symbols); } return keys; @@ -13,12 +18,19 @@ function _objectSpread2$1(target) { for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys$A(Object(source), !0).forEach(function (key) { - _defineProperty$H(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$A(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + var source = arguments[i] != null ? arguments[i] : {}; + + if (i % 2) { + ownKeys$A(Object(source), true).forEach(function (key) { + _defineProperty$H(target, key, source[key]); + }); + } else if (Object.getOwnPropertyDescriptors) { + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); + } else { + ownKeys$A(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } } return target; @@ -48,7 +60,7 @@ function _arrayWithHoles$1(arr) { } function _iterableToArrayLimit$1(arr, i) { - var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; + var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; @@ -138,8 +150,7 @@ IS_BROWSER && Boolean(WINDOW.PointerEvent || WINDOW.MSPointerEvent); IS_BROWSER && 'IntersectionObserver' in WINDOW && 'IntersectionObserverEntry' in WINDOW && // Edge 15 and UC Browser lack support for `isIntersecting` // but we an use `intersectionRatio > 0` instead // 'isIntersecting' in window.IntersectionObserverEntry.prototype && -'intersectionRatio' in WINDOW.IntersectionObserverEntry.prototype;var PROP_NAME = '$bvConfig'; -var DEFAULT_BREAKPOINT = ['xs', 'sm', 'md', 'lg', 'xl'];// --- General --- +'intersectionRatio' in WINDOW.IntersectionObserverEntry.prototype;var PROP_NAME = '$bvConfig';// --- General --- var RX_ARRAY_NOTATION = /\[(\d+)]/g; var RX_BV_PREFIX = /^(BV?)/; var RX_DIGITS = /^\d+$/; @@ -312,9 +323,6 @@ function _defineProperty$G(obj, key, value) { if (key in obj) { Object.definePro var assign = function assign() { return Object.assign.apply(Object, arguments); }; -var create = function create(proto, optionalProps) { - return Object.create(proto, optionalProps); -}; var defineProperties = function defineProperties(obj, props) { return Object.defineProperties(obj, props); }; @@ -900,17 +908,7 @@ var attemptBlur = function attemptBlur(el) { } catch (_unused2) {} return !isActiveElement(el); -};var memoize = function memoize(fn) { - var cache = create(null); - return function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var argsKey = JSON.stringify(args); - return cache[argsKey] = cache[argsKey] || fn.apply(null, args); - }; -};var VueProto = Vue__default["default"].prototype; // --- Getter methods --- +};var VueProto = Vue__default['default'].prototype; // --- Getter methods --- var getConfigValue = function getConfigValue(key) { var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; @@ -925,26 +923,6 @@ var getComponentConfig = function getComponentConfig(key) { // otherwise we return the full config (or an empty object if not found) return propKey ? getConfigValue("".concat(key, ".").concat(propKey), defaultValue) : getConfigValue(key, {}); }; // Get all breakpoint names - -var getBreakpoints = function getBreakpoints() { - return getConfigValue('breakpoints', DEFAULT_BREAKPOINT); -}; // Private method for caching breakpoint names - -var _getBreakpointsCached = memoize(function () { - return getBreakpoints(); -}); // Get all breakpoint names (cached) - - -var getBreakpointsCached = function getBreakpointsCached() { - return cloneDeep(_getBreakpointsCached()); -}; // Get breakpoints with the smallest breakpoint set as '' -// Useful for components that create breakpoint specific props - -memoize(function () { - var breakpoints = getBreakpointsCached(); - breakpoints[0] = ''; - return breakpoints; -}); // Get breakpoints with the largest breakpoint set as '' function ownKeys$x(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread$x(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$x(Object(source), true).forEach(function (key) { _defineProperty$E(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$x(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } @@ -1022,7 +1000,7 @@ var makeModelMixin = function makeModelMixin(prop) { var props = _defineProperty$D({}, prop, makeProp(type, defaultValue, validator)); // @vue/component - var mixin = Vue__default["default"].extend({ + var mixin = Vue__default['default'].extend({ model: { prop: prop, event: event @@ -1083,7 +1061,7 @@ var normalizeSlot = function normalizeSlot(names) { return isFunction$1(slot) ? slot(scope) : slot; -};var normalizeSlotMixin = Vue__default["default"].extend({ +};var normalizeSlotMixin = Vue__default['default'].extend({ methods: { // Returns `true` if the either a `$scopedSlot` or `$slot` exists with the specified name // `name` can be a string name or an array of names @@ -1216,7 +1194,7 @@ var props$Q = { }; // --- Main component --- // @vue/component -var BVTransition = /*#__PURE__*/Vue__default["default"].extend({ +var BVTransition = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TRANSITION, functional: true, props: props$Q, @@ -1408,7 +1386,7 @@ var props$P = { // Shared private base component to reduce bundle/runtime size // @vue/component -var BVIconBase = /*#__PURE__*/Vue__default["default"].extend({ +var BVIconBase = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_ICON_BASE, functional: true, props: props$P, @@ -1505,7 +1483,7 @@ var makeIcon = function makeIcon(name, content) { var iconNameClass = "bi-".concat(kebabName); var iconTitle = kebabName.replace(/-/g, ' '); var svgContent = trim(content || ''); - return /*#__PURE__*/Vue__default["default"].extend({ + return /*#__PURE__*/Vue__default['default'].extend({ name: iconName, functional: true, props: omit(props$P, ['content']), @@ -1569,7 +1547,7 @@ var props$O = makePropsConfigurable(sortKeys(_objectSpread$u(_objectSpread$u({}, // Requires the requested icon component to be installed // @vue/component -var BIcon = /*#__PURE__*/Vue__default["default"].extend({ +var BIcon = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_ICON, functional: true, props: props$O, @@ -1694,13 +1672,13 @@ var makePropWatcher = function makePropWatcher(propName) { }; }; var makePropCacheMixin = function makePropCacheMixin(propName, proxyPropName) { - return Vue__default["default"].extend({ + return Vue__default['default'].extend({ data: function data() { return _defineProperty$y({}, proxyPropName, cloneDeep(this[propName])); }, watch: _defineProperty$y({}, propName, makePropWatcher(proxyPropName)) }); -};var attrsMixin = makePropCacheMixin('$attrs', 'bvAttrs');var listenOnRootMixin = Vue__default["default"].extend({ +};var attrsMixin = makePropCacheMixin('$attrs', 'bvAttrs');var listenOnRootMixin = Vue__default['default'].extend({ methods: { /** * Safely register event listeners on the root Vue node @@ -1822,7 +1800,7 @@ var props$N = makePropsConfigurable(sortKeys(_objectSpread$t(_objectSpread$t(_ob })), NAME_LINK); // --- Main component --- // @vue/component -var BLink = /*#__PURE__*/Vue__default["default"].extend({ +var BLink = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_LINK, // Mixin order is important! mixins: [attrsMixin, listenersMixin, listenOnRootMixin, normalizeSlotMixin], @@ -2063,7 +2041,7 @@ var computeAttrs = function computeAttrs(props, data) { // @vue/component -var BButton = /*#__PURE__*/Vue__default["default"].extend({ +var BButton = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_BUTTON, functional: true, props: props$M, @@ -2311,7 +2289,7 @@ var props$L = { }; // --- Mixin --- // @vue/component -var idMixin = Vue__default["default"].extend({ +var idMixin = Vue__default['default'].extend({ props: props$L, data: function data() { return { @@ -2447,7 +2425,7 @@ var props$K = makePropsConfigurable(sortKeys(_objectSpread$r(_objectSpread$r(_ob })), NAME_CALENDAR); // --- Main component --- // @vue/component -var BCalendar = Vue__default["default"].extend({ +var BCalendar = Vue__default['default'].extend({ name: NAME_CALENDAR, // Mixin order is important! mixins: [attrsMixin, idMixin, modelMixin$5, normalizeSlotMixin], @@ -5945,9 +5923,7 @@ var Popper = function () { Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; Popper.placements = placements; -Popper.Defaults = Defaults; - -var Popper$1 = Popper;var PLACEMENT_TOP_START = 'top-start'; +Popper.Defaults = Defaults;var PLACEMENT_TOP_START = 'top-start'; var PLACEMENT_TOP_END = 'top-end'; var PLACEMENT_BOTTOM_START = 'bottom-start'; var PLACEMENT_BOTTOM_END = 'bottom-end'; @@ -6019,7 +5995,7 @@ var BvEvent = /*#__PURE__*/function () { }]); return BvEvent; -}();var clickOutMixin = Vue__default["default"].extend({ +}();var clickOutMixin = Vue__default['default'].extend({ data: function data() { return { listenForClickOut: false @@ -6067,7 +6043,7 @@ var BvEvent = /*#__PURE__*/function () { } } } -});var focusInMixin = Vue__default["default"].extend({ +});var focusInMixin = Vue__default['default'].extend({ data: function data() { return { listenForFocusIn: false @@ -6149,7 +6125,7 @@ var props$J = makePropsConfigurable(sortKeys(_objectSpread$q(_objectSpread$q({}, })), NAME_DROPDOWN); // --- Mixin --- // @vue/component -var dropdownMixin = Vue__default["default"].extend({ +var dropdownMixin = Vue__default['default'].extend({ mixins: [idMixin, listenOnRootMixin, clickOutMixin, focusInMixin], provide: function provide() { return { @@ -6271,7 +6247,7 @@ var dropdownMixin = Vue__default["default"].extend({ if (!this.inNavbar) { - if (typeof Popper$1 === 'undefined') { + if (typeof Popper === 'undefined') { /* istanbul ignore next */ warn('Popper.js not found. Falling back to CSS positioning', NAME_DROPDOWN); } else { @@ -6305,7 +6281,7 @@ var dropdownMixin = Vue__default["default"].extend({ }, createPopper: function createPopper(element) { this.destroyPopper(); - this.$_popper = new Popper$1(element, this.$refs.menu, this.getPopperConfig()); + this.$_popper = new Popper(element, this.$refs.menu, this.getPopperConfig()); }, // Ensure popper event listeners are removed cleanly destroyPopper: function destroyPopper() { @@ -6571,7 +6547,7 @@ var props$I = makePropsConfigurable({ }, 'formOptionControls'); // --- Mixin --- // @vue/component -var formOptionsMixin = Vue__default["default"].extend({ +var formOptionsMixin = Vue__default['default'].extend({ props: props$I, computed: { formOptions: function formOptions() { @@ -6644,7 +6620,7 @@ var props$H = makePropsConfigurable({ }, 'formControls'); // --- Mixin --- // @vue/component -var formControlMixin = Vue__default["default"].extend({ +var formControlMixin = Vue__default['default'].extend({ props: props$H, mounted: function mounted() { this.handleAutofocus(); @@ -6678,7 +6654,7 @@ var formControlMixin = Vue__default["default"].extend({ }, 'formControls'); // --- Mixin --- // @vue/component -var formCustomMixin = Vue__default["default"].extend({ +var formCustomMixin = Vue__default['default'].extend({ props: props$G, computed: { custom: function custom() { @@ -6690,7 +6666,7 @@ var formCustomMixin = Vue__default["default"].extend({ }, 'formControls'); // --- Mixin --- // @vue/component -var formSizeMixin = Vue__default["default"].extend({ +var formSizeMixin = Vue__default['default'].extend({ props: props$F, computed: { sizeFormClass: function sizeFormClass() { @@ -6712,7 +6688,7 @@ var props$E = makePropsConfigurable({ }, 'formState'); // --- Mixin --- // @vue/component -var formStateMixin = Vue__default["default"].extend({ +var formStateMixin = Vue__default['default'].extend({ props: props$E, computed: { computedState: function computedState() { @@ -6761,7 +6737,7 @@ var props$D = makePropsConfigurable(sortKeys(_objectSpread$p(_objectSpread$p(_ob })), 'formRadioCheckControls'); // --- Mixin --- // @vue/component -var formRadioCheckMixin = Vue__default["default"].extend({ +var formRadioCheckMixin = Vue__default['default'].extend({ mixins: [attrsMixin, idMixin, modelMixin$4, normalizeSlotMixin, formControlMixin, formSizeMixin, formStateMixin, formCustomMixin], inheritAttrs: false, props: props$D, @@ -7014,7 +6990,7 @@ var MODEL_EVENT_NAME_INDETERMINATE = MODEL_EVENT_NAME_PREFIX + MODEL_PROP_NAME_I var props$C = makePropsConfigurable(sortKeys(_objectSpread$o(_objectSpread$o({}, props$D), {}, (_objectSpread2 = {}, _defineProperty$s(_objectSpread2, MODEL_PROP_NAME_INDETERMINATE, makeProp(PROP_TYPE_BOOLEAN, false)), _defineProperty$s(_objectSpread2, "switch", makeProp(PROP_TYPE_BOOLEAN, false)), _defineProperty$s(_objectSpread2, "uncheckedValue", makeProp(PROP_TYPE_ANY, false)), _defineProperty$s(_objectSpread2, "value", makeProp(PROP_TYPE_ANY, true)), _objectSpread2))), NAME_FORM_CHECKBOX); // --- Main component --- // @vue/component -var BFormCheckbox = /*#__PURE__*/Vue__default["default"].extend({ +var BFormCheckbox = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_FORM_CHECKBOX, mixins: [formRadioCheckMixin], inject: { @@ -7187,7 +7163,7 @@ var props$B = sortKeys(_objectSpread$n(_objectSpread$n(_objectSpread$n(_objectSp })); // --- Main component --- // @vue/component -var BVFormBtnLabelControl = /*#__PURE__*/Vue__default["default"].extend({ +var BVFormBtnLabelControl = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_FORM_BUTTON_LABEL_CONTROL, directives: { 'b-hover': VBHover @@ -7424,7 +7400,7 @@ var props$A = makePropsConfigurable(sortKeys(_objectSpread$m(_objectSpread$m(_ob })), NAME_FORM_DATEPICKER); // --- Main component --- // @vue/component -var BFormDatepicker = /*#__PURE__*/Vue__default["default"].extend({ +var BFormDatepicker = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_FORM_DATEPICKER, mixins: [idMixin, modelMixin$3], props: props$A, @@ -7671,7 +7647,7 @@ var BFormDatepicker = /*#__PURE__*/Vue__default["default"].extend({ ref: 'control' }, [$calendar]); } -});var formSelectionMixin = Vue__default["default"].extend({ +});var formSelectionMixin = Vue__default['default'].extend({ computed: { selectionStart: { // Expose selectionStart for formatters, etc @@ -7774,7 +7750,7 @@ var props$z = makePropsConfigurable(sortKeys(_objectSpread$l(_objectSpread$l({}, })), 'formTextControls'); // --- Mixin --- // @vue/component -var formTextMixin = Vue__default["default"].extend({ +var formTextMixin = Vue__default['default'].extend({ mixins: [modelMixin$2], props: props$z, data: function data() { @@ -7987,7 +7963,7 @@ var formTextMixin = Vue__default["default"].extend({ } } } -});var formValidityMixin = Vue__default["default"].extend({ +});var formValidityMixin = Vue__default['default'].extend({ computed: { validity: { // Expose validity property @@ -8064,7 +8040,7 @@ var props$y = makePropsConfigurable(sortKeys(_objectSpread$k(_objectSpread$k(_ob })), NAME_FORM_INPUT); // --- Main component --- // @vue/component -var BFormInput = /*#__PURE__*/Vue__default["default"].extend({ +var BFormInput = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_FORM_INPUT, // Mixin order is important! mixins: [listenersMixin, idMixin, formControlMixin, formSizeMixin, formStateMixin, formTextMixin, formSelectionMixin, formValidityMixin], @@ -8204,7 +8180,7 @@ var clampValue = function clampValue(value, min, max) { // @vue/component -var BVFormRatingStar = Vue__default["default"].extend({ +var BVFormRatingStar = Vue__default['default'].extend({ name: NAME_FORM_RATING_STAR, mixins: [normalizeSlotMixin], props: { @@ -8288,7 +8264,7 @@ var props$x = makePropsConfigurable(sortKeys(_objectSpread$j(_objectSpread$j(_ob })), NAME_FORM_RATING); // --- Main component --- // @vue/component -var BFormRating = /*#__PURE__*/Vue__default["default"].extend({ +var BFormRating = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_FORM_RATING, components: { BIconStar: BIconStar, @@ -8565,7 +8541,7 @@ var props$v = makePropsConfigurable(sortKeys(_objectSpread$i(_objectSpread$i({}, })), 'formOptions'); // --- Mixin --- // @vue/component -var optionsMixin = Vue__default["default"].extend({ +var optionsMixin = Vue__default['default'].extend({ mixins: [formOptionsMixin], props: props$v, methods: { @@ -8609,7 +8585,7 @@ var optionsMixin = Vue__default["default"].extend({ }, NAME_FORM_SELECT_OPTION); // --- Main component --- // @vue/component -var BFormSelectOption = /*#__PURE__*/Vue__default["default"].extend({ +var BFormSelectOption = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_FORM_SELECT_OPTION, functional: true, props: props$u, @@ -8640,7 +8616,7 @@ var props$t = makePropsConfigurable(sortKeys(_objectSpread$h(_objectSpread$h({}, })), NAME_FORM_SELECT_OPTION_GROUP); // --- Main component --- // @vue/component -var BFormSelectOptionGroup = /*#__PURE__*/Vue__default["default"].extend({ +var BFormSelectOptionGroup = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_FORM_SELECT_OPTION_GROUP, mixins: [normalizeSlotMixin, formOptionsMixin], props: props$t, @@ -8681,7 +8657,7 @@ var props$s = makePropsConfigurable(sortKeys(_objectSpread$g(_objectSpread$g(_ob })), NAME_FORM_SELECT); // --- Main component --- // @vue/component -var BFormSelect = /*#__PURE__*/Vue__default["default"].extend({ +var BFormSelect = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_FORM_SELECT, mixins: [idMixin, mixin, formControlMixin, formSizeMixin, formStateMixin, formCustomMixin, optionsMixin, normalizeSlotMixin], props: props$s, @@ -8788,7 +8764,7 @@ var getScopeId = function getScopeId(vm) { return vm ? vm.$options._scopeId || defaultValue : defaultValue; };function _defineProperty$j(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -var scopedStyleMixin = Vue__default["default"].extend({ +var scopedStyleMixin = Vue__default['default'].extend({ computed: { scopedStyleAttrs: function scopedStyleAttrs() { var scopeId = getScopeId(this.$parent); @@ -8845,7 +8821,7 @@ var props$r = { }; // --- Main component --- // @vue/component -var BVPopper = /*#__PURE__*/Vue__default["default"].extend({ +var BVPopper = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_POPPER, props: props$r, data: function data() { @@ -8985,7 +8961,7 @@ var BVPopper = /*#__PURE__*/Vue__default["default"].extend({ this.destroyPopper(); // We use `el` rather than `this.$el` just in case the original // mountpoint root element type was changed by the template - this.$_popper = new Popper$1(this.target, el, this.popperConfig); + this.$_popper = new Popper(this.target, el, this.popperConfig); }, destroyPopper: function destroyPopper() { this.$_popper && this.$_popper.destroy(); @@ -9047,7 +9023,7 @@ var props$q = { }; // --- Main component --- // @vue/component -var BVTooltipTemplate = /*#__PURE__*/Vue__default["default"].extend({ +var BVTooltipTemplate = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TOOLTIP_TEMPLATE, extends: BVPopper, mixins: [scopedStyleMixin], @@ -9206,7 +9182,7 @@ var templateData = { }; // --- Main component --- // @vue/component -var BVTooltip = /*#__PURE__*/Vue__default["default"].extend({ +var BVTooltip = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TOOLTIP_HELPER, mixins: [listenOnRootMixin], data: function data() { @@ -10141,7 +10117,7 @@ var props$p = makePropsConfigurable((_makePropsConfigurabl = { }, _defineProperty$g(_makePropsConfigurabl, MODEL_PROP_NAME_ENABLED, makeProp(PROP_TYPE_BOOLEAN, false)), _defineProperty$g(_makePropsConfigurabl, "fallbackPlacement", makeProp(PROP_TYPE_ARRAY_STRING, 'flip')), _defineProperty$g(_makePropsConfigurabl, "id", makeProp(PROP_TYPE_STRING)), _defineProperty$g(_makePropsConfigurabl, "noFade", makeProp(PROP_TYPE_BOOLEAN, false)), _defineProperty$g(_makePropsConfigurabl, "noninteractive", makeProp(PROP_TYPE_BOOLEAN, false)), _defineProperty$g(_makePropsConfigurabl, "offset", makeProp(PROP_TYPE_NUMBER_STRING, 0)), _defineProperty$g(_makePropsConfigurabl, "placement", makeProp(PROP_TYPE_STRING, 'top')), _defineProperty$g(_makePropsConfigurabl, MODEL_PROP_NAME_SHOW, makeProp(PROP_TYPE_BOOLEAN, false)), _defineProperty$g(_makePropsConfigurabl, "target", makeProp([HTMLElement, SVGElement, PROP_TYPE_FUNCTION, PROP_TYPE_OBJECT, PROP_TYPE_STRING], undefined, true)), _defineProperty$g(_makePropsConfigurabl, "title", makeProp(PROP_TYPE_STRING)), _defineProperty$g(_makePropsConfigurabl, "triggers", makeProp(PROP_TYPE_ARRAY_STRING, 'hover focus')), _defineProperty$g(_makePropsConfigurabl, "variant", makeProp(PROP_TYPE_STRING)), _makePropsConfigurabl), NAME_TOOLTIP); // --- Main component --- // @vue/component -var BTooltip = /*#__PURE__*/Vue__default["default"].extend({ +var BTooltip = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TOOLTIP, mixins: [normalizeSlotMixin], inheritAttrs: false, @@ -10365,7 +10341,7 @@ var BTooltip = /*#__PURE__*/Vue__default["default"].extend({ } });// Mixin to determine if an event listener has been registered -var hasListenerMixin = Vue__default["default"].extend({ +var hasListenerMixin = Vue__default['default'].extend({ methods: { hasListener: function hasListener(name) { // Only includes listeners registered via `v-on:name` @@ -10396,7 +10372,7 @@ var props$o = makePropsConfigurable({ // to the child elements, so this can be converted to a functional component // @vue/component -var BTr = /*#__PURE__*/Vue__default["default"].extend({ +var BTr = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TR, mixins: [attrsMixin, listenersMixin, normalizeSlotMixin], provide: function provide() { @@ -10491,7 +10467,7 @@ var BTr = /*#__PURE__*/Vue__default["default"].extend({ });var props$n = {}; // --- Mixin --- // @vue/component -var bottomRowMixin = Vue__default["default"].extend({ +var bottomRowMixin = Vue__default['default'].extend({ props: props$n, methods: { renderBottomRow: function renderBottomRow() { @@ -10552,7 +10528,7 @@ var props$m = makePropsConfigurable({ // to the child elements, so this can be converted to a functional component // @vue/component -var BTd = /*#__PURE__*/Vue__default["default"].extend({ +var BTd = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TABLE_CELL, // Mixin order is important! mixins: [attrsMixin, listenersMixin, normalizeSlotMixin], @@ -10700,7 +10676,7 @@ var MODEL_EVENT_NAME_BUSY = MODEL_EVENT_NAME_PREFIX + MODEL_PROP_NAME_BUSY; // - var props$l = _defineProperty$d({}, MODEL_PROP_NAME_BUSY, makeProp(PROP_TYPE_BOOLEAN, false)); // --- Mixin --- // @vue/component -var busyMixin = Vue__default["default"].extend({ +var busyMixin = Vue__default['default'].extend({ props: props$l, data: function data() { return { @@ -10766,7 +10742,7 @@ var busyMixin = Vue__default["default"].extend({ }; // --- Mixin --- // @vue/component -var captionMixin = Vue__default["default"].extend({ +var captionMixin = Vue__default['default'].extend({ props: props$k, computed: { captionId: function captionId() { @@ -10798,7 +10774,7 @@ var captionMixin = Vue__default["default"].extend({ });var props$j = {}; // --- Mixin --- // @vue/component -var colgroupMixin = Vue__default["default"].extend({ +var colgroupMixin = Vue__default['default'].extend({ methods: { renderColgroup: function renderColgroup() { var fields = this.computedFields; @@ -10826,7 +10802,7 @@ var colgroupMixin = Vue__default["default"].extend({ }; // --- Mixin --- // @vue/component -var emptyMixin = Vue__default["default"].extend({ +var emptyMixin = Vue__default['default'].extend({ props: props$i, methods: { renderEmpty: function renderEmpty() { @@ -10993,7 +10969,7 @@ var props$h = { }; // --- Mixin --- // @vue/component -var filteringMixin = Vue__default["default"].extend({ +var filteringMixin = Vue__default['default'].extend({ props: props$h, data: function data() { return { @@ -11328,7 +11304,7 @@ var props$g = sortKeys(_objectSpread$9(_objectSpread$9({}, modelProps), {}, _def }, MODEL_PROP_NAME, makeProp(PROP_TYPE_ARRAY, [])))); // --- Mixin --- // @vue/component -var itemsMixin = Vue__default["default"].extend({ +var itemsMixin = Vue__default['default'].extend({ mixins: [modelMixin], props: props$g, data: function data() { @@ -11429,7 +11405,7 @@ var itemsMixin = Vue__default["default"].extend({ }; // --- Mixin --- // @vue/component -var paginationMixin = Vue__default["default"].extend({ +var paginationMixin = Vue__default['default'].extend({ props: props$f, computed: { localPaging: function localPaging() { @@ -11464,7 +11440,7 @@ var props$e = { }; // --- Mixin --- // @vue/component -var providerMixin = Vue__default["default"].extend({ +var providerMixin = Vue__default['default'].extend({ mixins: [listenOnRootMixin], props: props$e, computed: { @@ -11641,7 +11617,7 @@ var props$d = { }; // --- Mixin --- // @vue/component -var selectableMixin = Vue__default["default"].extend({ +var selectableMixin = Vue__default['default'].extend({ props: props$d, data: function data() { return { @@ -11961,7 +11937,7 @@ var props$c = (_props = { })), _defineProperty$9(_props, "sortIconLeft", makeProp(PROP_TYPE_BOOLEAN, false)), _defineProperty$9(_props, "sortNullLast", makeProp(PROP_TYPE_BOOLEAN, false)), _props); // --- Mixin --- // @vue/component -var sortingMixin = Vue__default["default"].extend({ +var sortingMixin = Vue__default['default'].extend({ props: props$c, data: function data() { return { @@ -12190,7 +12166,7 @@ var props$b = { }; // --- Mixin --- // @vue/component -var stackedMixin = Vue__default["default"].extend({ +var stackedMixin = Vue__default['default'].extend({ props: props$b, computed: { isStacked: function isStacked() { @@ -12235,7 +12211,7 @@ var props$a = { }; // --- Mixin --- // @vue/component -var tableRendererMixin = Vue__default["default"].extend({ +var tableRendererMixin = Vue__default['default'].extend({ mixins: [attrsMixin], provide: function provide() { return { @@ -12365,7 +12341,7 @@ var props$9 = makePropsConfigurable({ // to the child elements, so this can be converted to a functional component // @vue/component -var BTbody = /*#__PURE__*/Vue__default["default"].extend({ +var BTbody = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TBODY, mixins: [attrsMixin, listenersMixin, normalizeSlotMixin], provide: function provide() { @@ -12504,7 +12480,7 @@ var textSelectionActive = function textSelectionActive() { // to the child elements, so this can be converted to a functional component // @vue/component -var BTh = /*#__PURE__*/Vue__default["default"].extend({ +var BTh = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TH, extends: BTd, props: props$8, @@ -12538,7 +12514,7 @@ var props$7 = { }; // --- Mixin --- // @vue/component -var tbodyRowMixin = Vue__default["default"].extend({ +var tbodyRowMixin = Vue__default['default'].extend({ props: props$7, methods: { // Methods for computing classes, attributes and styles for table cells @@ -12874,7 +12850,7 @@ var props$6 = sortKeys(_objectSpread$4(_objectSpread$4(_objectSpread$4({}, props })); // --- Mixin --- // @vue/component -var tbodyMixin = Vue__default["default"].extend({ +var tbodyMixin = Vue__default['default'].extend({ mixins: [tbodyRowMixin], props: props$6, beforeDestroy: function beforeDestroy() { @@ -13090,7 +13066,7 @@ var props$5 = makePropsConfigurable({ // to the child elements, so this can be converted to a functional component // @vue/component -var BTfoot = /*#__PURE__*/Vue__default["default"].extend({ +var BTfoot = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TFOOT, mixins: [attrsMixin, listenersMixin, normalizeSlotMixin], provide: function provide() { @@ -13171,7 +13147,7 @@ var BTfoot = /*#__PURE__*/Vue__default["default"].extend({ }; // --- Mixin --- // @vue/component -var tfootMixin = Vue__default["default"].extend({ +var tfootMixin = Vue__default['default'].extend({ props: props$4, methods: { renderTFootCustom: function renderTFootCustom() { @@ -13214,7 +13190,7 @@ var props$3 = makePropsConfigurable({ // to the child elements, so this can be converted to a functional component // @vue/component -var BThead = /*#__PURE__*/Vue__default["default"].extend({ +var BThead = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_THEAD, mixins: [attrsMixin, listenersMixin, normalizeSlotMixin], provide: function provide() { @@ -13322,7 +13298,7 @@ var props$2 = { }; // --- Mixin --- // @vue/component -var theadMixin = Vue__default["default"].extend({ +var theadMixin = Vue__default['default'].extend({ props: props$2, methods: { fieldClasses: function fieldClasses(field) { @@ -13498,7 +13474,7 @@ var theadMixin = Vue__default["default"].extend({ });var props$1 = {}; // --- Mixin --- // @vue/component -var topRowMixin = Vue__default["default"].extend({ +var topRowMixin = Vue__default['default'].extend({ methods: { renderTopRow: function renderTopRow() { var fields = this.computedFields, @@ -13532,7 +13508,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope var props = makePropsConfigurable(sortKeys(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, props$L), props$n), props$l), props$k), props$j), props$i), props$h), props$g), props$f), props$e), props$d), props$c), props$b), props$a), props$6), props$4), props$2), props$1)), NAME_TABLE); // --- Main component --- // @vue/component -var BTable = /*#__PURE__*/Vue__default["default"].extend({ +var BTable = /*#__PURE__*/Vue__default['default'].extend({ name: NAME_TABLE, // Order of mixins is important! // They are merged from first to last, followed by this component @@ -13542,7 +13518,7 @@ var BTable = /*#__PURE__*/Vue__default["default"].extend({ stackedMixin, filteringMixin, sortingMixin, paginationMixin, captionMixin, colgroupMixin, selectableMixin, emptyMixin, topRowMixin, bottomRowMixin, busyMixin, providerMixin], props: props // Render function is provided by `tableRendererMixin` -});var script = Vue__default["default"].extend({ +});var script = Vue__default['default'].extend({ name: 'BEditableTable', components: { BTable: BTable, @@ -13733,7 +13709,7 @@ var BTable = /*#__PURE__*/Vue__default["default"].extend({ changedValue = selectedValue ? selectedValue.value : value; } - var validity = data.field.validate ? data.field.validate(changedValue) : { + var validity = data.field.validate ? data.field.validate(changedValue, data) : { valid: true }; var fields = this.tableMap[data.item.id].fields; @@ -14204,7 +14180,7 @@ var __vue_staticRenderFns__ = []; var __vue_inject_styles__ = function __vue_inject_styles__(inject) { if (!inject) return; - inject("data-v-7a52295e_0", { + inject("data-v-356900af_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 @@ -14216,7 +14192,7 @@ var __vue_inject_styles__ = function __vue_inject_styles__(inject) { var __vue_scope_id__ = undefined; /* module identifier */ -var __vue_module_identifier__ = "data-v-7a52295e"; +var __vue_module_identifier__ = "data-v-356900af"; /* functional template */ var __vue_is_functional_template__ = false; @@ -14225,16 +14201,14 @@ var __vue_is_functional_template__ = false; var __vue_component__ = /*#__PURE__*/normalizeComponent({ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ -}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, createInjectorSSR, undefined); - -var component$1 = __vue_component__;// Import vue component +}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, createInjectorSSR, undefined);// Import vue component // Default export is installable instance of component. // IIFE injects install function into component, allowing component // to be registered via Vue.use() as well as Vue.component(), var component = /*#__PURE__*/(function () { // Assign InstallableComponent type - var installable = component$1; // Attach install function executed by Vue.use() + var installable = __vue_component__; // Attach install function executed by Vue.use() installable.install = function (Vue) { Vue.component('BEditableTable', installable); @@ -14244,7 +14218,7 @@ var component = /*#__PURE__*/(function () { })(); // It's possible to expose named exports when writing components that can // also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo'; // export const RollupDemoDirective = directive; -var namedExports=/*#__PURE__*/Object.freeze({__proto__:null,'default':component});// only expose one global var, with named exports exposed as properties of +var namedExports=/*#__PURE__*/Object.freeze({__proto__:null,'default': component});// only expose one global var, with named exports exposed as properties of // that global var (eg. plugin.namedExport) Object.entries(namedExports).forEach(function (_ref) { diff --git a/package.json b/package.json index 675aeb7..1caa00f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap-vue-editable-table", - "version": "0.1.8", + "version": "0.1.9", "description": "A Bootstrap Vue editable table for editing cells using built-in Bootstrap form elements", "author": "Muhi Masri", "scripts": {