UNPKG

@europeana/portal

Version:
2 lines 49.1 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{1017:function(t,e,r){"use strict";r.d(e,"b",(function(){return F})),r.d(e,"a",(function(){return x}));var o=r(6),l=(r(55),r(8)),c=r(9),n=r(1),h=r(7),d=r(50),O=r(59),f=r(64),j=r(26),object=r(4),y=r(0),m=r(33),v=r(23),w=r(690),S=(t,e)=>{var r=[];if(Object(h.a)(t)&&t.filter(m.a).forEach((t=>{if(Object(h.m)(t))r.push({key:t,label:Object(v.f)(t)});else if(Object(h.i)(t)&&t.key&&Object(h.m)(t.key))r.push(Object(object.b)(t));else if(Object(h.i)(t)&&1===Object(object.h)(t).length){var e=Object(object.h)(t)[0],o=((t,e)=>{var r=null;return Object(h.m)(e)?r={key:t,label:e}:Object(h.e)(e)?r={key:t,formatter:e}:Object(h.i)(e)?(r=Object(object.b)(e)).key=r.key||t:!1!==e&&(r={key:t}),r})(e,t[e]);o&&r.push(o)}})),0===r.length&&Object(h.a)(e)&&e.length>0){var o=e[0];Object(object.h)(o).forEach((t=>{w.e[t]||r.push({key:t,label:Object(v.f)(t)})}))}var l={};return r.filter((t=>!l[t.key]&&(l[t.key]=!0,t.label=Object(h.m)(t.label)?t.label:Object(v.f)(t.key),!0)))};function T(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function k(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?T(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):T(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var{mixin:P,props:C,prop:R,event:D}=Object(f.a)("value",{type:n.b,defaultValue:[]}),F=Object(object.m)(k(k({},C),{},{fields:Object(y.c)(n.b,null),items:Object(y.c)(n.b,[]),primaryKey:Object(y.c)(n.q),[R]:Object(y.c)(n.b,[])})),x=l.default.extend({mixins:[P],props:F,data(){var{items:t}=this;return{localItems:Object(h.a)(t)?t.slice():[]}},computed:{computedFields(){return S(this.fields,this.localItems)},computedFieldsObj(){var{$parent:t}=this;return this.computedFields.reduce(((e,r)=>{if(e[r.key]=Object(object.b)(r),r.formatter){var o=r.formatter;Object(h.m)(o)&&Object(h.e)(t[o])?o=t[o]:Object(h.e)(o)||(o=void 0),e[r.key].formatter=o}return e}),{})},computedItems(){return(this.paginatedItems||this.sortedItems||this.filteredItems||this.localItems||[]).slice()},context(){return{filter:this.localFilter,sortBy:this.localSortBy,sortDesc:this.localSortDesc,perPage:Object(O.b)(Object(j.b)(this.perPage,0),0),currentPage:Object(O.b)(Object(j.b)(this.currentPage,0),1),apiUrl:this.apiUrl}}},watch:{items(t){this.localItems=Object(h.a)(t)?t.slice():[]},computedItems(t,e){Object(d.a)(t,e)||this.$emit(D,t)},context(t,e){Object(d.a)(t,e)||this.$emit(c.h,t)}},mounted(){this.$emit(D,this.computedItems)},methods:{getFieldFormatter(t){var e=this.computedFieldsObj[t];return e?e.formatter:void 0}}})},1018:function(t,e,r){"use strict";r.d(e,"a",(function(){return V})),r.d(e,"b",(function(){return $}));var o=r(6),l=r(8),c=r(9),n=r(53),h=r(1),d=r(19),O=r(3),f=r(10),object=r(4),j=r(0),y=r(985),m=r(813),v=r(814),w=(r(21),r(22),r(15)),S=r(112),T=r(7),k=r(23),P=r(673),td=r(689),th=r(815),C=r(690);function R(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function D(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?R(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):R(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var F={detailsTdClass:Object(j.c)(h.e),tbodyTrAttr:Object(j.c)(h.n),tbodyTrClass:Object(j.c)([...h.e,h.j])},x=l.default.extend({props:F,methods:{getTdValues(t,e,r,o){var{$parent:l}=this;if(r){var c=Object(S.a)(t,e,"");return Object(T.e)(r)?r(c,e,t):Object(T.m)(r)&&Object(T.e)(l[r])?l[r](c,e,t):r}return o},getThValues(t,e,r,o,l){var{$parent:c}=this;if(r){var n=Object(S.a)(t,e,"");return Object(T.e)(r)?r(n,e,t,o):Object(T.m)(r)&&Object(T.e)(c[r])?c[r](n,e,t,o):r}return l},getFormattedValue(t,e){var{key:r}=e,o=this.getFieldFormatter(r),l=Object(S.a)(t,r,null);return Object(T.e)(o)&&(l=o(l,r,t)),Object(T.o)(l)?"":l},toggleDetailsFactory(t,e){return()=>{t&&this.$set(e,C.d,!e[C.d])}},rowHovered(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent(c.J,t)},rowUnhovered(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent(c.M,t)},renderTbodyRowCell(t,e,r,o){var{isStacked:l}=this,{key:c,label:label,isRowHeader:n}=t,h=this.$createElement,d=this.hasNormalizedSlot(w.z),O=this.getFormattedValue(r,t),f=!l&&(this.isResponsive||this.stickyHeader)&&t.stickyColumn,j=f?n?th.a:td.a:n?"th":"td",y=r[C.b]&&r[C.b][c]?r[C.b][c]:t.variant||null,data={class:[t.class?t.class:"",this.getTdValues(r,c,t.tdClass,"")],props:{},attrs:D({"aria-colindex":String(e+1)},n?this.getThValues(r,c,t.thAttr,"row",{}):this.getTdValues(r,c,t.tdAttr,{})),key:"row-".concat(o,"-cell-").concat(e,"-").concat(c)};f?data.props={stackedHeading:l?label:null,stickyColumn:!0,variant:y}:(data.attrs["data-label"]=l&&!Object(T.o)(label)?Object(k.g)(label):null,data.attrs.role=n?"rowheader":"cell",data.attrs.scope=n?"row":null,y&&data.class.push("".concat(this.dark?"bg":"table","-").concat(y)));var m={item:r,index:o,field:t,unformatted:Object(S.a)(r,c,""),value:O,toggleDetails:this.toggleDetailsFactory(d,r),detailsShowing:Boolean(r[C.d])};this.supportsSelectableRows&&(m.rowSelected=this.isRowSelected(o),m.selectRow=()=>this.selectRow(o),m.unselectRow=()=>this.unselectRow(o));var v=this.$_bodyFieldSlotNameCache[c],P=v?this.normalizeSlot(v,m):Object(k.g)(O);return this.isStacked&&(P=[h("div",[P])]),h(j,data,[P])},renderTbodyRow(t,e){var{computedFields:r,striped:o,primaryKey:l,currentPage:n,perPage:h,tbodyTrClass:d,tbodyTrAttr:O}=this,f=this.$createElement,j=this.hasNormalizedSlot(w.z),y=t[C.d]&&j,m=this.$listeners[c.G]||this.hasSelectableRowClick,v=[],R=y?this.safeId("_details_".concat(e,"_")):null,F=r.map(((r,o)=>this.renderTbodyRowCell(r,o,t,e))),x=null;n&&h&&h>0&&(x=String((n-1)*h+e+1));var I=Object(k.g)(Object(S.a)(t,l))||null,E=I||Object(k.g)(e),A=I?this.safeId("_row_".concat(I)):null,V=this.selectableRowClasses?this.selectableRowClasses(e):{},$=this.selectableRowAttrs?this.selectableRowAttrs(e):{},B=Object(T.e)(d)?d(t,"row"):d,H=Object(T.e)(O)?O(t,"row"):O;if(v.push(f(P.a,{class:[B,V,y?"b-table-has-details":""],props:{variant:t[C.c]||null},attrs:D(D({id:A},H),{},{tabindex:m?"0":null,"data-pk":I||null,"aria-details":R,"aria-owns":R,"aria-rowindex":x},$),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(E,"__"),ref:"item-rows",refInFor:!0},F)),y){var z={item:t,index:e,fields:r,toggleDetails:this.toggleDetailsFactory(j,t)};this.supportsSelectableRows&&(z.rowSelected=this.isRowSelected(e),z.selectRow=()=>this.selectRow(e),z.unselectRow=()=>this.unselectRow(e));var _=f(td.a,{props:{colspan:r.length},class:this.detailsTdClass},[this.normalizeSlot(w.z,z)]);o&&v.push(f("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(E)}));var L=Object(T.e)(this.tbodyTrClass)?this.tbodyTrClass(t,w.z):this.tbodyTrClass,G=Object(T.e)(this.tbodyTrAttr)?this.tbodyTrAttr(t,w.z):this.tbodyTrAttr;v.push(f(P.a,{staticClass:"b-table-details",class:[L],props:{variant:t[C.c]||null},attrs:D(D({},G),{},{id:R,tabindex:"-1"}),key:"__b-table-details__".concat(E)},[_]))}else j&&(v.push(f()),o&&v.push(f()));return v}}});function I(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function E(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?I(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):I(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var A=t=>"cell(".concat(t||"",")"),V=Object(object.m)(E(E(E({},y.b),F),{},{tbodyClass:Object(j.c)(h.e)})),$=l.default.extend({mixins:[x],props:V,beforeDestroy(){this.$_bodyFieldSlotNameCache=null},methods:{getTbodyTrs(){var{$refs:t}=this,tbody=t.tbody?t.tbody.$el||t.tbody:null,e=(t["item-rows"]||[]).map((tr=>tr.$el||tr));return tbody&&tbody.children&&tbody.children.length>0&&e&&e.length>0?Object(d.d)(tbody.children).filter((tr=>Object(d.a)(e,tr))):[]},getTbodyTrIndex(t){if(!Object(O.s)(t))return-1;var tr="TR"===t.tagName?t:Object(O.e)("tr",t,!0);return tr?this.getTbodyTrs().indexOf(tr):-1},emitTbodyRowEvent(t,e){if(t&&this.hasListener(t)&&e&&e.target){var r=this.getTbodyTrIndex(e.target);if(r>-1){var o=this.computedItems[r];this.$emit(t,o,r,e)}}},tbodyRowEvtStopped(t){return this.stopIfBusy&&this.stopIfBusy(t)},onTbodyRowKeydown(t){var{target:e,keyCode:r}=t;if(!this.tbodyRowEvtStopped(t)&&"TR"===e.tagName&&Object(O.q)(e)&&0===e.tabIndex)if(Object(d.a)([n.e,n.j],r))Object(f.f)(t),this.onTBodyRowClicked(t);else if(Object(d.a)([n.k,n.c,n.g,n.d],r)){var o=this.getTbodyTrIndex(e);if(o>-1){Object(f.f)(t);var l=this.getTbodyTrs(),c=t.shiftKey;r===n.g||c&&r===n.k?Object(O.d)(l[0]):r===n.d||c&&r===n.c?Object(O.d)(l[l.length-1]):r===n.k&&o>0?Object(O.d)(l[o-1]):r===n.c&&o<l.length-1&&Object(O.d)(l[o+1])}}},onTBodyRowClicked(t){this.tbodyRowEvtStopped(t)||Object(m.a)(t)||Object(v.a)(this.$el)||this.emitTbodyRowEvent(c.G,t)},onTbodyRowMiddleMouseRowClicked(t){this.tbodyRowEvtStopped(t)||2!==t.which||this.emitTbodyRowEvent(c.K,t)},onTbodyRowContextmenu(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent(c.H,t)},onTbodyRowDblClicked(t){this.tbodyRowEvtStopped(t)||Object(m.a)(t)||this.emitTbodyRowEvent(c.I,t)},renderTbody(){var{computedItems:t,renderBusy:e,renderTopRow:r,renderEmpty:o,renderBottomRow:l}=this,n=this.$createElement,h=this.hasListener(c.G)||this.hasSelectableRowClick,d=[],O=e?e():null;if(O)d.push(O);else{var f={},m=A();m=this.hasNormalizedSlot(m)?m:null,this.computedFields.forEach((t=>{var{key:e}=t,r=A(e),o=A(e.toLowerCase());f[e]=this.hasNormalizedSlot(r)?r:this.hasNormalizedSlot(o)?o:m})),this.$_bodyFieldSlotNameCache=f,d.push(r?r():n()),t.forEach(((t,e)=>{d.push(this.renderTbodyRow(t,e))})),d.push(o?o():n()),d.push(l?l():n())}var v={auxclick:this.onTbodyRowMiddleMouseRowClicked,contextmenu:this.onTbodyRowContextmenu,dblclick:this.onTbodyRowDblClicked};return h&&(v.click=this.onTBodyRowClicked,v.keydown=this.onTbodyRowKeydown),n(y.a,{class:this.tbodyClass||null,props:Object(j.e)(y.b,this.$props),on:v,ref:"tbody"},d)}}})},1054:function(t,e,r){"use strict";r.d(e,"a",(function(){return Ft}));var o=r(6),l=r(8),c=r(2),object=r(4),n=r(0),h=r(67),d=r(989),O=r(25),f=r(29),j=r(15),y=r(7),tr=r(673),m={},v=l.default.extend({props:m,methods:{renderBottomRow(){var{computedFields:t,stacked:e,tbodyTrClass:r,tbodyTrAttr:o}=this,l=this.$createElement;return this.hasNormalizedSlot(j.c)&&!0!==e&&""!==e?l(tr.a,{staticClass:"b-table-bottom-row",class:[Object(y.e)(r)?r(null,"row-bottom"):r],attrs:Object(y.e)(o)?o(null,"row-bottom"):o,key:"b-bottom-row"},this.normalizeSlot(j.c,{columns:t.length,fields:t})):l()}}}),w=r(9),S=r(1),T=r(10),td=r(689),k="busy",P=w.X+k,C={[k]:Object(n.c)(S.g,!1)},R=l.default.extend({props:C,data:()=>({localBusy:!1}),computed:{computedBusy(){return this.busy||this.localBusy}},watch:{localBusy(t,e){t!==e&&this.$emit(P,t)}},methods:{stopIfBusy(t){return!!this.computedBusy&&(Object(T.f)(t),!0)},renderBusy(){var{tbodyTrClass:t,tbodyTrAttr:e}=this,r=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(j.A)?r(tr.a,{staticClass:"b-table-busy-slot",class:[Object(y.e)(t)?t(null,j.A):t],attrs:Object(y.e)(e)?e(null,j.A):e,key:"table-busy-slot"},[r(td.a,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(j.A)])]):null}}}),D=r(981),F=r(982),html=r(34),x={emptyFilteredHtml:Object(n.c)(S.q),emptyFilteredText:Object(n.c)(S.q,"There are no records matching your request"),emptyHtml:Object(n.c)(S.q),emptyText:Object(n.c)(S.q,"There are no records to show"),showEmpty:Object(n.c)(S.g,!1)},I=l.default.extend({props:x,methods:{renderEmpty(){var{computedItems:t}=this,e=this.$createElement,r=e();if(this.showEmpty&&(!t||0===t.length)&&(!this.computedBusy||!this.hasNormalizedSlot(j.A))){var{computedFields:o,isFiltered:l,emptyText:c,emptyHtml:n,emptyFilteredText:h,emptyFilteredHtml:d,tbodyTrClass:O,tbodyTrAttr:f}=this;(r=this.normalizeSlot(l?j.j:j.i,{emptyFilteredHtml:d,emptyFilteredText:h,emptyHtml:n,emptyText:c,fields:o,items:t}))||(r=e("div",{class:["text-center","my-2"],domProps:l?Object(html.a)(d,h):Object(html.a)(n,c)})),r=e(td.a,{props:{colspan:o.length||null}},[e("div",{attrs:{role:"alert","aria-live":"polite"}},[r])]),r=e(tr.a,{staticClass:"b-table-empty-row",class:[Object(y.e)(O)?O(null,"row-empty"):O],attrs:Object(y.e)(f)?f(null,"row-empty"):f,key:l?"b-empty-filtered-row":"b-empty-row"},[r])}return r}}}),E=(r(21),r(22),r(14),r(28),r(80),r(41),r(727),r(30)),A=r(19),V=r(74),$=r(33),B=r(50),H=r(26),z=r(23),_=r(47),L=(r(253),t=>Object(y.o)(t)?"":Object(y.i)(t)&&!Object(y.c)(t)?Object(object.h)(t).sort().map((e=>L(t[e]))).filter((t=>!!t)).join(" "):Object(z.g)(t)),G=(r(55),r(690)),N=function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=Object(object.h)(o).reduce(((e,r)=>{var l=o[r],{filterByFormatted:c}=l,n=Object(y.e)(c)?c:c?l.formatter:null;return Object(y.e)(n)&&(e[r]=n(t[r],r,t)),e}),Object(object.b)(t)),c=Object(object.h)(l).filter((t=>!(G.e[t]||Object(y.a)(e)&&e.length>0&&Object(A.a)(e,t)||Object(y.a)(r)&&r.length>0&&!Object(A.a)(r,t))));return Object(object.k)(l,c)},M={filter:Object(n.c)([...S.e,S.p]),filterDebounce:Object(n.c)(S.l,0,(t=>E.d.test(String(t)))),filterFunction:Object(n.c)(S.j),filterIgnoredFields:Object(n.c)(S.b,[]),filterIncludedFields:Object(n.c)(S.b,[])},U=l.default.extend({props:M,data(){return{isFiltered:!1,localFilter:this.filterSanitize(this.filter)}},computed:{computedFilterIgnored(){return Object(A.b)(this.filterIgnoredFields||[]).filter($.a)},computedFilterIncluded(){return Object(A.b)(this.filterIncludedFields||[]).filter($.a)},computedFilterDebounce(){var t=Object(H.b)(this.filterDebounce,0);return t>0&&Object(_.a)('Prop "filter-debounce" is deprecated. Use the debounce feature of "<b-form-input>" instead.',c.tb),t},localFiltering(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck(){var{filteredItems:t,localItems:e,localFilter:r}=this;return{filteredItems:t,localItems:e,localFilter:r}},localFilterFn(){var{filterFunction:t}=this;return Object(n.b)(t)?t:null},filteredItems(){var{localItems:t,localFilter:e}=this,r=this.localFiltering?this.filterFnFactory(this.localFilterFn,e)||this.defaultFilterFnFactory(e):null;return r&&t.length>0?t.filter(r):t}},watch:{computedFilterDebounce(t){!t&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler(t){var e=this.computedFilterDebounce;this.clearFilterTimer(),e&&e>0?this.$_filterTimer=setTimeout((()=>{this.localFilter=this.filterSanitize(t)}),e):this.localFilter=this.filterSanitize(t)}},filteredCheck(t){var{filteredItems:e,localFilter:r}=t,o=!1;r?Object(B.a)(r,[])||Object(B.a)(r,{})?o=!1:r&&(o=!0):o=!1,o&&this.$emit(w.p,e,e.length),this.isFiltered=o},isFiltered(t,e){if(!1===t&&!0===e){var{localItems:r}=this;this.$emit(w.p,r,r.length)}}},created(){this.$_filterTimer=null,this.$nextTick((()=>{this.isFiltered=Boolean(this.localFilter)}))},beforeDestroy(){this.clearFilterTimer()},methods:{clearFilterTimer(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize(t){return!this.localFiltering||this.localFilterFn||Object(y.m)(t)||Object(y.l)(t)?Object(V.a)(t):""},filterFnFactory(t,e){if(!t||!Object(y.e)(t)||!e||Object(B.a)(e,[])||Object(B.a)(e,{}))return null;return r=>t(r,e)},defaultFilterFnFactory(t){if(!t||!Object(y.m)(t)&&!Object(y.l)(t))return null;var e=t;if(Object(y.m)(e)){var pattern=Object(z.a)(t).replace(E.p,"\\s+");e=new RegExp(".*".concat(pattern,".*"),"i")}return t=>{return e.lastIndex=0,e.test((r=t,o=this.computedFilterIgnored,l=this.computedFilterIncluded,c=this.computedFieldsObj,Object(y.i)(r)?L(N(r,o,l,c)):""));var r,o,l,c}}}}),K=r(1017),J=r(59),X={currentPage:Object(n.c)(S.l,1),perPage:Object(n.c)(S.l,0)},Q=l.default.extend({props:X,computed:{localPaging(){return!this.hasProvider||!!this.noProviderPaging},paginatedItems(){var t=this.sortedItems||this.filteredItems||this.localItems||[],e=Object(J.b)(Object(H.b)(this.currentPage,1),1),r=Object(J.b)(Object(H.b)(this.perPage,0),0);return this.localPaging&&r&&(t=t.slice((e-1)*r,e*r)),t}}}),W=r(56),Y=Object(T.e)(c.tb,w.E),Z=Object(T.d)(c.tb,w.D),tt={apiUrl:Object(n.c)(S.q),items:Object(n.c)(S.c,[]),noProviderFiltering:Object(n.c)(S.g,!1),noProviderPaging:Object(n.c)(S.g,!1),noProviderSorting:Object(n.c)(S.g,!1)},et=l.default.extend({mixins:[W.a],props:tt,computed:{hasProvider(){return Object(y.e)(this.items)},providerTriggerContext(){var t={apiUrl:this.apiUrl,filter:null,sortBy:null,sortDesc:null,perPage:null,currentPage:null};return this.noProviderFiltering||(t.filter=this.localFilter),this.noProviderSorting||(t.sortBy=this.localSortBy,t.sortDesc=this.localSortDesc),this.noProviderPaging||(t.perPage=this.perPage,t.currentPage=this.currentPage),Object(object.b)(t)}},watch:{items(t){(this.hasProvider||Object(y.e)(t))&&this.$nextTick(this._providerUpdate)},providerTriggerContext(t,e){Object(B.a)(t,e)||this.$nextTick(this._providerUpdate)}},mounted(){!this.hasProvider||this.localItems&&0!==this.localItems.length||this._providerUpdate(),this.listenOnRoot(Z,(t=>{t!==this.id&&t!==this||this.refresh()}))},methods:{refresh(){var{items:t,refresh:e}=this;this.$off(w.E,e),this.computedBusy?this.localBusy&&this.hasProvider&&this.$on(w.E,e):(this.clearSelected(),this.hasProvider?this.$nextTick(this._providerUpdate):this.localItems=Object(y.a)(t)?t.slice():[])},_providerSetLocal(t){this.localItems=Object(y.a)(t)?t.slice():[],this.localBusy=!1,this.$emit(w.E),this.id&&this.emitOnRoot(Y,this.id)},_providerUpdate(){this.hasProvider&&(this.computedBusy?this.$nextTick(this.refresh):(this.localBusy=!0,this.$nextTick((()=>{try{var data=this.items(this.context,this._providerSetLocal);Object(y.k)(data)?data.then((t=>{this._providerSetLocal(t)})):Object(y.a)(data)?this._providerSetLocal(data):2!==this.items.length&&(Object(_.a)("Provider function didn't request callback and did not return a promise or data.",c.tb),this.localBusy=!1)}catch(t){Object(_.a)("Provider function error [".concat(t.name,"] ").concat(t.message,"."),c.tb),this.localBusy=!1,this.$off(w.E,this.refresh)}}))))}}}),st=["range","multi","single"],it={noSelectOnClick:Object(n.c)(S.g,!1),selectMode:Object(n.c)(S.q,"multi",(t=>Object(A.a)(st,t))),selectable:Object(n.c)(S.g,!1),selectedVariant:Object(n.c)(S.q,"active")},ot=l.default.extend({props:it,data:()=>({selectedRows:[],selectedLastRow:-1}),computed:{isSelectable(){return this.selectable&&this.selectMode},hasSelectableRowClick(){return this.isSelectable&&!this.noSelectOnClick},supportsSelectableRows:()=>!0,selectableHasSelection(){var{selectedRows:t}=this;return this.isSelectable&&t&&t.length>0&&t.some($.a)},selectableIsMultiSelect(){return this.isSelectable&&Object(A.a)(["range","multi"],this.selectMode)},selectableTableClasses(){var{isSelectable:t}=this;return{"b-table-selectable":t,["b-table-select-".concat(this.selectMode)]:t,"b-table-selecting":this.selectableHasSelection,"b-table-selectable-no-click":t&&!this.hasSelectableRowClick}},selectableTableAttrs(){return{"aria-multiselectable":this.isSelectable?this.selectableIsMultiSelect?"true":"false":null}}},watch:{computedItems(t,e){var r=!1;if(this.isSelectable&&this.selectedRows.length>0){r=Object(y.a)(t)&&Object(y.a)(e)&&t.length===e.length;for(var i=0;r&&i<t.length;i++)r=Object(B.a)(N(t[i]),N(e[i]))}r||this.clearSelected()},selectable(t){this.clearSelected(),this.setSelectionHandlers(t)},selectMode(){this.clearSelected()},hasSelectableRowClick(t){this.clearSelected(),this.setSelectionHandlers(!t)},selectedRows(t,e){if(this.isSelectable&&!Object(B.a)(t,e)){var r=[];t.forEach(((t,e)=>{t&&r.push(this.computedItems[e])})),this.$emit(w.L,r)}}},beforeMount(){this.isSelectable&&this.setSelectionHandlers(!0)},methods:{selectRow(t){if(this.isSelectable&&Object(y.g)(t)&&t>=0&&t<this.computedItems.length&&!this.isRowSelected(t)){var e=this.selectableIsMultiSelect?this.selectedRows.slice():[];e[t]=!0,this.selectedLastClicked=-1,this.selectedRows=e}},unselectRow(t){if(this.isSelectable&&Object(y.g)(t)&&this.isRowSelected(t)){var e=this.selectedRows.slice();e[t]=!1,this.selectedLastClicked=-1,this.selectedRows=e}},selectAllRows(){var t=this.computedItems.length;this.isSelectable&&t>0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?Object(A.c)(t,!0):[!0])},isRowSelected(t){return!(!Object(y.g)(t)||!this.selectedRows[t])},clearSelected(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses(t){if(this.isSelectable&&this.isRowSelected(t)){var e=this.selectedVariant;return{"b-table-row-selected":!0,["".concat(this.dark?"bg":"table","-").concat(e)]:e}}return{}},selectableRowAttrs(t){return{"aria-selected":this.isSelectable?this.isRowSelected(t)?"true":"false":null}},setSelectionHandlers(t){var e=t&&!this.noSelectOnClick?"$on":"$off";this[e](w.G,this.selectionHandler),this[e](w.p,this.clearSelected),this[e](w.h,this.clearSelected)},selectionHandler(t,e,r){if(this.isSelectable&&!this.noSelectOnClick){var{selectMode:o,selectedLastRow:l}=this,c=this.selectedRows.slice(),n=!c[e];if("single"===o)c=[];else if("range"===o)if(l>-1&&r.shiftKey){for(var h=Object(J.c)(l,e);h<=Object(J.b)(l,e);h++)c[h]=!0;n=!0}else r.ctrlKey||r.metaKey||(c=[],n=!0),this.selectedLastRow=n?e:-1;c[e]=n,this.selectedRows=c}else this.clearSelected()}}}),at=r(749),lt=r(112),ct=t=>Object(y.o)(t)?"":Object(y.h)(t)?Object(H.a)(t,t):t;function nt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function bt(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?nt(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):nt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var ht="sortBy",ut=w.X+ht,pt="sortDesc",Ot=w.X+pt,ft="asc",jt="desc",yt=[ft,jt,"last"],mt={labelSortAsc:Object(n.c)(S.q,"Click to sort Ascending"),labelSortClear:Object(n.c)(S.q,"Click to clear sorting"),labelSortDesc:Object(n.c)(S.q,"Click to sort Descending"),noFooterSorting:Object(n.c)(S.g,!1),noLocalSorting:Object(n.c)(S.g,!1),noSortReset:Object(n.c)(S.g,!1),[ht]:Object(n.c)(S.q),sortCompare:Object(n.c)(S.j),sortCompareLocale:Object(n.c)(S.f),sortCompareOptions:Object(n.c)(S.m,{numeric:!0}),[pt]:Object(n.c)(S.g,!1),sortDirection:Object(n.c)(S.q,ft,(t=>Object(A.a)(yt,t))),sortIconLeft:Object(n.c)(S.g,!1),sortNullLast:Object(n.c)(S.g,!1)},vt=l.default.extend({props:mt,data(){return{localSortBy:this.sortBy||"",localSortDesc:this.sortDesc||!1}},computed:{localSorting(){return this.hasProvider?!!this.noProviderSorting:!this.noLocalSorting},isSortable(){return this.computedFields.some((t=>t.sortable))},sortedItems(){var{localSortBy:t,localSortDesc:e,sortCompareLocale:r,sortNullLast:o,sortCompare:l,localSorting:c}=this,n=(this.filteredItems||this.localItems||[]).slice(),h=bt(bt({},this.sortCompareOptions),{},{usage:"sort"});if(t&&c){var d=(this.computedFieldsObj[t]||{}).sortByFormatted,O=Object(y.e)(d)?d:d?this.getFieldFormatter(t):void 0;return Object(at.a)(n,((a,b)=>{var c=null;return Object(y.e)(l)&&(c=l(a,b,t,e,O,h,r)),(Object(y.o)(c)||!1===c)&&(c=function(a,b){var{sortBy:t=null,formatter:e=null,locale:r,localeOptions:o={},nullLast:l=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=Object(lt.a)(a,t,null),n=Object(lt.a)(b,t,null);return Object(y.e)(e)&&(c=e(c,t,a),n=e(n,t,b)),c=ct(c),n=ct(n),Object(y.c)(c)&&Object(y.c)(n)||Object(y.g)(c)&&Object(y.g)(n)?c<n?-1:c>n?1:0:l&&""===c&&""!==n?1:l&&""!==c&&""===n?-1:L(c).localeCompare(L(n),r,o)}(a,b,{sortBy:t,formatter:O,locale:r,localeOptions:h,nullLast:o})),(c||0)*(e?-1:1)}))}return n}},watch:{isSortable(t){t?this.isSortable&&this.$on(w.t,this.handleSort):this.$off(w.t,this.handleSort)},[pt](t){t!==this.localSortDesc&&(this.localSortDesc=t||!1)},[ht](t){t!==this.localSortBy&&(this.localSortBy=t||"")},localSortDesc(t,e){t!==e&&this.$emit(Ot,t)},localSortBy(t,e){t!==e&&this.$emit(ut,t)}},created(){this.isSortable&&this.$on(w.t,this.handleSort)},methods:{handleSort(t,e,r,o){if(this.isSortable&&(!o||!this.noFooterSorting)){var l=!1,c=()=>{var t=e.sortDirection||this.sortDirection;t===ft?this.localSortDesc=!1:t===jt&&(this.localSortDesc=!0)};if(e.sortable){var n=!this.localSorting&&e.sortKey?e.sortKey:t;this.localSortBy===n?this.localSortDesc=!this.localSortDesc:(this.localSortBy=n,c()),l=!0}else this.localSortBy&&!this.noSortReset&&(this.localSortBy="",c(),l=!0);l&&this.$emit(w.P,this.context)}},sortTheadThClasses(t,e,r){return{"b-table-sort-icon-left":e.sortable&&this.sortIconLeft&&!(r&&this.noFooterSorting)}},sortTheadThAttrs(t,e,r){if(!this.isSortable||r&&this.noFooterSorting)return{};var o=e.sortable;return{"aria-sort":o&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":o?"none":null}},sortTheadThLabel(t,e,r){if(!this.isSortable||r&&this.noFooterSorting)return null;var o="";if(e.sortable)if(this.localSortBy===t)o=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{o=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var l=this.sortDirection||e.sortDirection;l===ft?o=this.labelSortAsc:l===jt&&(o=this.labelSortDesc)}else this.noSortReset||(o=this.localSortBy?this.labelSortClear:"");return Object(z.h)(o)||null}}}),gt=r(983),wt=r(984),St=r(1018),Tt=r(986),kt=r(987),Pt=l.default.extend({methods:{renderTopRow(){var{computedFields:t,stacked:e,tbodyTrClass:r,tbodyTrAttr:o}=this,l=this.$createElement;return this.hasNormalizedSlot(j.J)&&!0!==e&&""!==e?l(tr.a,{staticClass:"b-table-top-row",class:[Object(y.e)(r)?r(null,"row-top"):r],attrs:Object(y.e)(o)?o(null,"row-top"):o,key:"b-top-row"},[this.normalizeSlot(j.J,{columns:t.length,fields:t})]):l()}}});function Ct(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function Rt(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Ct(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Ct(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Dt=Object(n.d)(Object(object.m)(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt(Rt({},O.b),m),C),D.b),F.b),x),M),K.b),X),tt),it),mt),gt.a),wt.a),St.a),Tt.a),kt.a),{})),c.tb),Ft=l.default.extend({name:c.tb,mixins:[h.a,d.a,O.a,f.a,K.a,wt.b,gt.b,kt.b,Tt.b,St.b,gt.b,U,vt,Q,D.a,F.a,ot,I,Pt,v,R,et],props:Dt})},673:function(t,e,r){"use strict";r.d(e,"a",(function(){return w}));var o=r(6),l=r(8),c=r(2),n=r(1),h=r(0),d=r(67),O=r(120),f=r(29);function j(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var y="light",m="dark",v=Object(h.d)({variant:Object(h.c)(n.q)},c.Hb),w=l.default.extend({name:c.Hb,mixins:[d.a,O.a,f.a],provide(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:()=>({})}},inheritAttrs:!1,props:v,computed:{inTbody(){return this.bvTableRowGroup.isTbody},inThead(){return this.bvTableRowGroup.isThead},inTfoot(){return this.bvTableRowGroup.isTfoot},isDark(){return this.bvTableRowGroup.isDark},isStacked(){return this.bvTableRowGroup.isStacked},isResponsive(){return this.bvTableRowGroup.isResponsive},isStickyHeader(){return this.bvTableRowGroup.isStickyHeader},hasStickyHeader(){return!this.isStacked&&this.bvTableRowGroup.hasStickyHeader},tableVariant(){return this.bvTableRowGroup.tableVariant},headVariant(){return this.inThead?this.bvTableRowGroup.headVariant:null},footVariant(){return this.inTfoot?this.bvTableRowGroup.footVariant:null},isRowDark(){return this.headVariant!==y&&this.footVariant!==y&&(this.headVariant===m||this.footVariant===m||this.isDark)},trClasses(){var{variant:t}=this;return[t?"".concat(this.isRowDark?"bg":"table","-").concat(t):null]},trAttrs(){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?j(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):j(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({role:"row"},this.bvAttrs)}},render(t){return t("tr",{class:this.trClasses,attrs:this.trAttrs,on:this.bvListeners},this.normalizeSlot())}})},689:function(t,e,r){"use strict";r.d(e,"b",(function(){return P})),r.d(e,"a",(function(){return C}));var o=r(6),l=r(8),c=r(2),n=r(1),h=r(3),d=r(7),O=r(26),f=r(0),j=r(23),y=r(67),m=r(120),v=r(29);function w(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function S(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?w(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):w(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var T=t=>(t=Object(O.b)(t,0))>0?t:null,k=t=>Object(d.o)(t)||T(t)>0,P=Object(f.d)({colspan:Object(f.c)(n.l,null,k),rowspan:Object(f.c)(n.l,null,k),stackedHeading:Object(f.c)(n.q),stickyColumn:Object(f.c)(n.g,!1),variant:Object(f.c)(n.q)},c.ub),C=l.default.extend({name:c.ub,mixins:[y.a,m.a,v.a],inject:{bvTableTr:{default:()=>({})}},inheritAttrs:!1,props:P,computed:{tag:()=>"td",inTbody(){return this.bvTableTr.inTbody},inThead(){return this.bvTableTr.inThead},inTfoot(){return this.bvTableTr.inTfoot},isDark(){return this.bvTableTr.isDark},isStacked(){return this.bvTableTr.isStacked},isStackedCell(){return this.inTbody&&this.isStacked},isResponsive(){return this.bvTableTr.isResponsive},isStickyHeader(){return this.bvTableTr.isStickyHeader},hasStickyHeader(){return this.bvTableTr.hasStickyHeader},isStickyColumn(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant(){return this.bvTableTr.variant},headVariant(){return this.bvTableTr.headVariant},footVariant(){return this.bvTableTr.footVariant},tableVariant(){return this.bvTableTr.tableVariant},computedColspan(){return T(this.colspan)},computedRowspan(){return T(this.rowspan)},cellClasses(){var{variant:t,headVariant:e,isStickyColumn:r}=this;return(!t&&this.isStickyHeader&&!e||!t&&r&&this.inTfoot&&!this.footVariant||!t&&r&&this.inThead&&!e||!t&&r&&this.inTbody)&&(t=this.rowVariant||this.tableVariant||"b-table-default"),[t?"".concat(this.isDark?"bg":"table","-").concat(t):null,r?"b-table-sticky-column":null]},cellAttrs(){var{stackedHeading:t}=this,e=this.inThead||this.inTfoot,r=this.computedColspan,o=this.computedRowspan,l="cell",c=null;return e?(l="columnheader",c=r>0?"colspan":"col"):Object(h.t)(this.tag,"th")&&(l="rowheader",c=o>0?"rowgroup":"row"),S(S({colspan:r,rowspan:o,role:l,scope:c},this.bvAttrs),{},{"data-label":this.isStackedCell&&!Object(d.o)(t)?Object(j.g)(t):null})}},render(t){var e=[this.normalizeSlot()];return t(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?t("div",[e]):e])}})},690:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return h})),r.d(e,"d",(function(){return d})),r.d(e,"e",(function(){return O})),r.d(e,"a",(function(){return f}));var o=r(6);r(55);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function c(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var n="_cellVariants",h="_rowVariant",d="_showDetails",O=[n,h,d].reduce(((t,e)=>c(c({},t),{},{[e]:!0})),{}),f=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(",")},727:function(t,e,r){"use strict";var o=r(69),l=r(358),c=r(108),n=r(119),h=r(88).f;o&&!("lastIndex"in[])&&(h(Array.prototype,"lastIndex",{configurable:!0,get:function(){var t=c(this),e=n(t);return 0==e?0:e-1}}),l("lastIndex"))},748:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=()=>{}},749:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r(253);var o=(t,e)=>t.map(((a,t)=>[t,a])).sort(function(a,b){return this(a[1],b[1])||a[0]-b[0]}.bind(e)).map((t=>t[1]))},813:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var o=r(3),l=r(690),c=["TD","TH","TR"],n=t=>{if(!t||!t.target)return!1;var e=t.target;if(e.disabled||-1!==c.indexOf(e.tagName))return!1;if(Object(o.e)(".dropdown-menu",e))return!0;var label="LABEL"===e.tagName?e:Object(o.e)("label",e);if(label){var r=Object(o.h)(label,"for"),input=r?Object(o.j)(r):Object(o.C)("input, select, textarea",label);if(input&&!input.disabled)return!0}return Object(o.v)(e,l.a)}},814:function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));r(107),r(41);var o=r(3),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=Object(o.l)();return!!(e&&""!==e.toString().trim()&&e.containsNode&&Object(o.s)(t))&&e.containsNode(t,!0)}},815:function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var o=r(8),l=r(2),c=r(0),n=r(689),h=Object(c.d)(n.b,l.zb),d=o.default.extend({name:l.zb,extends:n.a,props:h,computed:{tag:()=>"th"}})},816:function(t,e,r){"use strict";r.d(e,"a",(function(){return v}));var o=r(6),l=r(8),c=r(2),n=r(1),h=r(0),d=r(67),O=r(120),f=r(29);function j(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function y(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?j(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):j(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var m=Object(h.d)({footVariant:Object(h.c)(n.q)},c.yb),v=l.default.extend({name:c.yb,mixins:[d.a,O.a,f.a],provide(){return{bvTableRowGroup:this}},inject:{bvTable:{default:()=>({})}},inheritAttrs:!1,props:m,computed:{isTfoot:()=>!0,isDark(){return this.bvTable.dark},isStacked(){return this.bvTable.isStacked},isResponsive(){return this.bvTable.isResponsive},isStickyHeader:()=>!1,hasStickyHeader(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant(){return this.bvTable.tableVariant},tfootClasses(){return[this.footVariant?"thead-".concat(this.footVariant):null]},tfootAttrs(){return y(y({},this.bvAttrs),{},{role:"rowgroup"})}},render(t){return t("tfoot",{class:this.tfootClasses,attrs:this.tfootAttrs,on:this.bvListeners},this.normalizeSlot())}})},981:function(t,e,r){"use strict";r.d(e,"b",(function(){return d})),r.d(e,"a",(function(){return O}));var o=r(8),l=r(1),c=r(15),n=r(34),h=r(0),d={caption:Object(h.c)(l.q),captionHtml:Object(h.c)(l.q)},O=o.default.extend({props:d,computed:{captionId(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption(){var{caption:caption,captionHtml:t}=this,e=this.$createElement,r=e(),o=this.hasNormalizedSlot(c.B);return(o||caption||t)&&(r=e("caption",{attrs:{id:this.captionId},domProps:o?{}:Object(n.a)(t,caption),key:"caption",ref:"caption"},this.normalizeSlot(c.B))),r}}})},982:function(t,e,r){"use strict";r.d(e,"b",(function(){return c})),r.d(e,"a",(function(){return n}));var o=r(8),l=r(15),c={},n=o.default.extend({methods:{renderColgroup(){var{computedFields:t}=this,e=this.$createElement,r=e();return this.hasNormalizedSlot(l.C)&&(r=e("colgroup",{key:"colgroup"},[this.normalizeSlot(l.C,{columns:t.length,fields:t})])),r}}})},983:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return h}));var o=r(8),l=r(1),c=r(0),n={stacked:Object(c.c)(l.i,!1)},h=o.default.extend({props:n,computed:{isStacked(){var{stacked:t}=this;return""===t||t},isStackedAlways(){return!0===this.isStacked},stackedTableClasses(){var{isStackedAlways:t}=this;return{"b-table-stacked":t,["b-table-stacked-".concat(this.stacked)]:!t&&this.isStacked}}}})},984:function(t,e,r){"use strict";r.d(e,"a",(function(){return m})),r.d(e,"b",(function(){return v}));var o=r(6),l=r(8),c=r(1),n=r(33),h=r(7),d=r(0),O=r(23),f=r(67);function j(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function y(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?j(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):j(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var m={bordered:Object(d.c)(c.g,!1),borderless:Object(d.c)(c.g,!1),captionTop:Object(d.c)(c.g,!1),dark:Object(d.c)(c.g,!1),fixed:Object(d.c)(c.g,!1),hover:Object(d.c)(c.g,!1),noBorderCollapse:Object(d.c)(c.g,!1),outlined:Object(d.c)(c.g,!1),responsive:Object(d.c)(c.i,!1),small:Object(d.c)(c.g,!1),stickyHeader:Object(d.c)(c.i,!1),striped:Object(d.c)(c.g,!1),tableClass:Object(d.c)(c.e),tableVariant:Object(d.c)(c.q)},v=l.default.extend({mixins:[f.a],provide(){return{bvTable:this}},inheritAttrs:!1,props:m,computed:{isResponsive(){var{responsive:t}=this;return""===t||t},isStickyHeader(){var{stickyHeader:t}=this;return t=""===t||t,!this.isStacked&&t},wrapperClasses(){var{isResponsive:t}=this;return[this.isStickyHeader?"b-table-sticky-header":"",!0===t?"table-responsive":t?"table-responsive-".concat(this.responsive):""].filter(n.a)},wrapperStyles(){var{isStickyHeader:t}=this;return t&&!Object(h.b)(t)?{maxHeight:t}:{}},tableClasses(){var{hover:t,tableVariant:e}=this;return t=this.isTableSimple?t:t&&this.computedItems.length>0&&!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(){var{computedItems:t,filteredItems:e,computedFields:r,selectableTableAttrs:o}=this,l=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":Object(O.g)(r.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null};return y(y(y({"aria-rowcount":t&&e&&e.length>t.length?Object(O.g)(e.length):null},this.bvAttrs),{},{id:this.safeId(),role:"table"},l),o)}},render(t){var{wrapperClasses:e,renderCaption:r,renderColgroup:o,renderThead:l,renderTbody:c,renderTfoot:h}=this,d=[];this.isTableSimple?d.push(this.normalizeSlot()):(d.push(r?r():null),d.push(o?o():null),d.push(l?l():null),d.push(c?c():null),d.push(h?h():null));var O=t("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},d.filter(n.a));return e.length>0?t("div",{class:e,style:this.wrapperStyles,key:"wrap"},[O]):O}})},985:function(t,e,r){"use strict";r.d(e,"b",(function(){return m})),r.d(e,"a",(function(){return v}));var o=r(6),l=r(8),c=r(2),n=r(1),h=r(0),d=r(67),O=r(120),f=r(29);function j(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function y(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?j(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):j(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var m=Object(h.d)({tbodyTransitionHandlers:Object(h.c)(n.m),tbodyTransitionProps:Object(h.c)(n.m)},c.xb),v=l.default.extend({name:c.xb,mixins:[d.a,O.a,f.a],provide(){return{bvTableRowGroup:this}},inject:{bvTable:{default:()=>({})}},inheritAttrs:!1,props:m,computed:{isTbody:()=>!0,isDark(){return this.bvTable.dark},isStacked(){return this.bvTable.isStacked},isResponsive(){return this.bvTable.isResponsive},isStickyHeader:()=>!1,hasStickyHeader(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant(){return this.bvTable.tableVariant},isTransitionGroup(){return this.tbodyTransitionProps||this.tbodyTransitionHandlers},tbodyAttrs(){return y({role:"rowgroup"},this.bvAttrs)},tbodyProps(){var{tbodyTransitionProps:t}=this;return t?y(y({},t),{},{tag:"tbody"}):{}}},render(t){var data={props:this.tbodyProps,attrs:this.tbodyAttrs};return this.isTransitionGroup?(data.on=this.tbodyTransitionHandlers||{},data.nativeOn=this.bvListeners):data.on=this.bvListeners,t(this.isTransitionGroup?"transition-group":"tbody",data,this.normalizeSlot())}})},986:function(t,e,r){"use strict";r.d(e,"a",(function(){return d})),r.d(e,"b",(function(){return O}));var o=r(8),l=r(1),c=r(15),n=r(0),h=r(816),d={footClone:Object(n.c)(l.g,!1),footRowVariant:Object(n.c)(l.q),footVariant:Object(n.c)(l.q),tfootClass:Object(n.c)(l.e),tfootTrClass:Object(n.c)(l.e)},O=o.default.extend({props:d,methods:{renderTFootCustom(){var t=this.$createElement;return this.hasNormalizedSlot(c.e)?t(h.a,{class:this.tfootClass||null,props:{footVariant:this.footVariant||this.headVariant||null},key:"bv-tfoot-custom"},this.normalizeSlot(c.e,{items:this.computedItems.slice(),fields:this.computedFields.slice(),columns:this.computedFields.length})):t()},renderTfoot(){return this.footClone?this.renderThead(!0):this.renderTFootCustom()}}})},987:function(t,e,r){"use strict";r.d(e,"a",(function(){return E})),r.d(e,"b",(function(){return A}));var o=r(6),l=(r(107),r(21),r(22),r(8)),c=r(9),n=r(53),h=r(1),d=r(15),O=r(10),f=r(34),j=r(33),y=r(7),m=r(748),v=r(0),w=r(23),S=r(988),T=r(816),k=r(673),P=r(815),C=r(813),R=r(814);function D(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function F(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?D(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):D(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var x=t=>"head(".concat(t||"",")"),I=t=>"foot(".concat(t||"",")"),E={headRowVariant:Object(v.c)(h.q),headVariant:Object(v.c)(h.q),theadClass:Object(v.c)(h.e),theadTrClass:Object(v.c)(h.e)},A=l.default.extend({props:E,methods:{fieldClasses:t=>[t.class?t.class:"",t.thClass?t.thClass:""],headClicked(t,e,r){this.stopIfBusy&&this.stopIfBusy(t)||Object(C.a)(t)||Object(R.a)(this.$el)||(Object(O.f)(t),this.$emit(c.t,e.key,e,t,r))},renderThead(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{computedFields:e,isSortable:r,isSelectable:o,headVariant:l,footVariant:h,headRowVariant:O,footRowVariant:v}=this,C=this.$createElement;if(this.isStackedAlways||0===e.length)return C();var R=r||this.hasListener(c.t),D=o?this.selectAllRows:m.a,E=o?this.clearSelected:m.a,A=e.map(((e,o)=>{var{label:label,labelHtml:l,variant:c,stickyColumn:h,key:d}=e,O=null;e.label.trim()||e.headerTitle||(O=Object(w.f)(e.key));var y={};R&&(y.click=r=>{this.headClicked(r,e,t)},y.keydown=r=>{var o=r.keyCode;o!==n.e&&o!==n.j||this.headClicked(r,e,t)});var m=r?this.sortTheadThAttrs(d,e,t):{},v=r?this.sortTheadThClasses(d,e,t):null,S=r?this.sortTheadThLabel(d,e,t):null,data={class:[this.fieldClasses(e),v],props:{variant:c,stickyColumn:h},style:e.thStyle||{},attrs:F(F({tabindex:R&&e.sortable?"0":null,abbr:e.headerAbbr||null,title:e.headerTitle||null,"aria-colindex":o+1,"aria-label":O},this.getThValues(null,d,e.thAttr,t?"foot":"head",{})),m),on:y,key:d},T=[x(d),x(d.toLowerCase()),x()];t&&(T=[I(d),I(d.toLowerCase()),I(),...T]);var k={label:label,column:d,field:e,isFoot:t,selectAllRows:D,clearSelected:E},A=this.normalizeSlot(T,k)||C("div",{domProps:Object(f.a)(l,label)}),V=S?C("span",{staticClass:"sr-only"}," (".concat(S,")")):null;return C(P.a,data,[A,V].filter(j.a))})).filter(j.a),V=[];if(t)V.push(C(k.a,{class:this.tfootTrClass,props:{variant:Object(y.o)(v)?O:v}},A));else{var $={columns:e.length,fields:e,selectAllRows:D,clearSelected:E};V.push(this.normalizeSlot(d.G,$)||C()),V.push(C(k.a,{class:this.theadTrClass,props:{variant:O}},A))}return C(t?T.a:S.a,{class:(t?this.tfootClass:this.theadClass)||null,props:t?{footVariant:h||l||null}:{headVariant:l||null},key:t?"bv-tfoot":"bv-thead"},V)}}})},988:function(t,e,r){"use strict";r.d(e,"a",(function(){return m}));var o=r(6),l=r(8),c=r(2),n=r(1),h=r(0),d=r(67),O=r(120),f=r(29);function j(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var y=Object(h.d)({headVariant:Object(h.c)(n.q)},c.Ab),m=l.default.extend({name:c.Ab,mixins:[d.a,O.a,f.a],provide(){return{bvTableRowGroup:this}},inject:{bvTable:{default:()=>({})}},inheritAttrs:!1,props:y,computed:{isThead:()=>!0,isDark(){return this.bvTable.dark},isStacked(){return this.bvTable.isStacked},isResponsive(){return this.bvTable.isResponsive},isStickyHeader(){return!this.isStacked&&this.bvTable.stickyHeader},hasStickyHeader(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant(){return this.bvTable.tableVariant},theadClasses(){return[this.headVariant?"thead-".concat(this.headVariant):null]},theadAttrs(){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?j(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):j(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({role:"rowgroup"},this.bvAttrs)}},render(t){return t("thead",{class:this.theadClasses,attrs:this.theadAttrs,on:this.bvListeners},this.normalizeSlot())}})},989:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var o=r(8),l=r(7),c=o.default.extend({methods:{hasListener(t){var e=this.$listeners||{},r=this._events||{};return!Object(l.n)(e[t])||Object(l.a)(r[t])&&r[t].length>0}}})}}]); //# sourceMappingURL=f98beb9.modern.js.map