aloha-vue 2.73.0 → 2.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/aloha-vue.es.js +55 -50
- package/dist/aloha-vue.umd.js +2 -2
- package/package.json +1 -1
- package/src/ATable/ATable.js +7 -6
- package/src/ATable/ATableHeader/ATableHeader.js +1 -1
- package/src/ATable/ATableHeaderTh/ATableHeaderTh.js +12 -7
- package/src/ATable/__tests__/ATable.HeaderSlot.test.js +97 -0
- package/src/ATable/compositionAPI/ColumnsGroupedAPI.js +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
---
|
|
8
8
|
# Versions
|
|
9
9
|
|
|
10
|
+
## 2.74.0
|
|
11
|
+
|
|
12
|
+
- Feature: Add header slot support in `ATable` for customizable column headers.
|
|
13
|
+
|
|
10
14
|
## 2.73.0
|
|
11
15
|
|
|
12
16
|
- Feature: Add `classColumn` support in `AFieldset` to apply custom classes directly to child components without a wrapper element, improving layout customization options.
|
package/dist/aloha-vue.es.js
CHANGED
|
@@ -51012,7 +51012,10 @@ const rc = {
|
|
|
51012
51012
|
textScreenReader: this.column.textScreenReader || void 0,
|
|
51013
51013
|
...this.attributesForButtonSort
|
|
51014
51014
|
}, () => [
|
|
51015
|
-
this.column.
|
|
51015
|
+
this.column.headerSlot && this.$slots[this.column.headerSlot] ? this.$slots[this.column.headerSlot]({
|
|
51016
|
+
column: this.column,
|
|
51017
|
+
columnIndex: this.columnIndex
|
|
51018
|
+
}) : this.column.label && c(Ce, {
|
|
51016
51019
|
html: this.column.label,
|
|
51017
51020
|
tag: "span",
|
|
51018
51021
|
extra: this.column.extra,
|
|
@@ -51187,7 +51190,7 @@ const rc = {
|
|
|
51187
51190
|
onDragenterParent: this.dragenter,
|
|
51188
51191
|
onDragleaveParent: this.dragleave,
|
|
51189
51192
|
onDragendParent: this.dragend
|
|
51190
|
-
})),
|
|
51193
|
+
}, this.$slots)),
|
|
51191
51194
|
this.isActionColumnVisible && c(ac, {
|
|
51192
51195
|
disabledOptions: this.disabledOptions,
|
|
51193
51196
|
isRowActionsStickyLocal: this.isRowActionsStickyLocal
|
|
@@ -53674,52 +53677,53 @@ function q2(e, {
|
|
|
53674
53677
|
};
|
|
53675
53678
|
}
|
|
53676
53679
|
function k2(e, {
|
|
53677
|
-
modelSort: t = N([])
|
|
53680
|
+
modelSort: t = N([]),
|
|
53681
|
+
slots: _ = {}
|
|
53678
53682
|
}) {
|
|
53679
|
-
const
|
|
53680
|
-
...
|
|
53681
|
-
_index:
|
|
53682
|
-
}))),
|
|
53683
|
-
|
|
53684
|
-
|
|
53685
|
-
].join("%%%"))),
|
|
53686
|
-
const
|
|
53687
|
-
const
|
|
53688
|
-
id:
|
|
53683
|
+
const n = u(e, "columns"), a = u(e, "showFirstSortingSequenceNumber"), s = u(e, "sortingSequenceNumberClass"), i = E(() => Rt(n.value, (b) => zk({ column: b }))), o = E(() => v_(i.value, (b, m) => ({
|
|
53684
|
+
...b,
|
|
53685
|
+
_index: b.prio || m
|
|
53686
|
+
}))), d = E(() => v_(o.value, (b) => (b.group && b.group.length && (b.group = v_(b.group, (m, g) => [
|
|
53687
|
+
m,
|
|
53688
|
+
g
|
|
53689
|
+
].join("%%%"))), b))), A = ({ groups: b, group: m, level: g, columnsOrderedFromGroups: D, firstLevelGroupObject: V }) => {
|
|
53690
|
+
const B = m ? Rt(b, (y) => sl(y, m[g - 1])) : b, w = Zo(B, (y) => y[g]), P = v_(w, (y) => {
|
|
53691
|
+
const M = {
|
|
53692
|
+
id: y[g].split("%%%")[0]
|
|
53689
53693
|
};
|
|
53690
|
-
let
|
|
53691
|
-
return
|
|
53692
|
-
|
|
53693
|
-
groups:
|
|
53694
|
-
group:
|
|
53695
|
-
level:
|
|
53696
|
-
columnsOrderedFromGroups:
|
|
53697
|
-
firstLevelGroupObject:
|
|
53694
|
+
let F;
|
|
53695
|
+
return g === 0 ? (F = M, F.columnIndexes = []) : F = V, y.length > g + 1 ? M.children = re(
|
|
53696
|
+
A({
|
|
53697
|
+
groups: b,
|
|
53698
|
+
group: y,
|
|
53699
|
+
level: g + 1,
|
|
53700
|
+
columnsOrderedFromGroups: D,
|
|
53701
|
+
firstLevelGroupObject: F
|
|
53698
53702
|
}),
|
|
53699
53703
|
"recursiveGroup"
|
|
53700
|
-
) :
|
|
53704
|
+
) : y.length === g + 1 && (M.columns = Rt(d.value, (K) => sl(K.group, y[g])), F.columnIndexes.push(...v_(M.columns, "_index")), D.push(...M.columns)), M;
|
|
53701
53705
|
});
|
|
53702
53706
|
return {
|
|
53703
|
-
columnsOrderedFromGroups:
|
|
53704
|
-
recursiveGroup:
|
|
53707
|
+
columnsOrderedFromGroups: D,
|
|
53708
|
+
recursiveGroup: P
|
|
53705
53709
|
};
|
|
53706
|
-
},
|
|
53707
|
-
const
|
|
53708
|
-
return
|
|
53709
|
-
}),
|
|
53710
|
-
...
|
|
53711
|
-
...
|
|
53712
|
-
], "_index")),
|
|
53710
|
+
}, T = E(() => v_(d.value, (b) => re(b, "group", b))), S = E(() => Rt(T.value, (b) => ge(b))), f = E(() => Rt(T.value, (b) => !ge(b))), C = E(() => {
|
|
53711
|
+
const b = [];
|
|
53712
|
+
return A({ groups: S.value, group: null, level: 0, columnsOrderedFromGroups: b });
|
|
53713
|
+
}), h = E(() => il([
|
|
53714
|
+
...C.value.columnsOrderedFromGroups,
|
|
53715
|
+
...f.value
|
|
53716
|
+
], "_index")), R = (b) => c(rc, {
|
|
53713
53717
|
ref: "th",
|
|
53714
53718
|
class: "a_table__cell__child_group",
|
|
53715
|
-
column:
|
|
53716
|
-
columnGroupNames: v_(
|
|
53717
|
-
columnIndex:
|
|
53719
|
+
column: b,
|
|
53720
|
+
columnGroupNames: v_(b.group, (m) => m.split("%%%")[0]),
|
|
53721
|
+
columnIndex: b._index,
|
|
53718
53722
|
hasMultipleActions: !1,
|
|
53719
53723
|
modelSort: t.value,
|
|
53720
|
-
showFirstSortingSequenceNumber:
|
|
53721
|
-
sortingSequenceNumberClass:
|
|
53722
|
-
}),
|
|
53724
|
+
showFirstSortingSequenceNumber: a.value,
|
|
53725
|
+
sortingSequenceNumberClass: s.value
|
|
53726
|
+
}, _), p = (b) => c("div", {
|
|
53723
53727
|
class: "a_table__th_group"
|
|
53724
53728
|
}, [
|
|
53725
53729
|
c("div", {
|
|
@@ -53728,26 +53732,26 @@ function k2(e, {
|
|
|
53728
53732
|
c("div", {
|
|
53729
53733
|
class: "a_table__cell_group a_text_center"
|
|
53730
53734
|
}, [
|
|
53731
|
-
|
|
53732
|
-
html:
|
|
53735
|
+
b.id && c(Ce, {
|
|
53736
|
+
html: b.id,
|
|
53733
53737
|
tag: "span",
|
|
53734
53738
|
"aria-hidden": !0
|
|
53735
53739
|
})
|
|
53736
53740
|
]),
|
|
53737
53741
|
c("div", {
|
|
53738
53742
|
class: "a_table__th_group_container"
|
|
53739
|
-
},
|
|
53743
|
+
}, b.children ? v_(b.children, (m) => p(m)) : v_(b.columns, (m) => R(m)))
|
|
53740
53744
|
])
|
|
53741
|
-
]),
|
|
53742
|
-
const
|
|
53743
|
-
...
|
|
53744
|
-
...
|
|
53745
|
-
], (
|
|
53746
|
-
return v_(
|
|
53745
|
+
]), O = E(() => {
|
|
53746
|
+
const b = il([
|
|
53747
|
+
...C.value.recursiveGroup,
|
|
53748
|
+
...f.value
|
|
53749
|
+
], (m) => m.columnIndexes ? Rh(m.columnIndexes) : m._index);
|
|
53750
|
+
return v_(b, (m) => m.columnIndexes ? p(m) : R(m));
|
|
53747
53751
|
});
|
|
53748
53752
|
return {
|
|
53749
|
-
columnsOrderedFromSimpleTable:
|
|
53750
|
-
renderedGroupedColumns:
|
|
53753
|
+
columnsOrderedFromSimpleTable: h,
|
|
53754
|
+
renderedGroupedColumns: O
|
|
53751
53755
|
};
|
|
53752
53756
|
}
|
|
53753
53757
|
function W2(e, { emit: t }, {
|
|
@@ -54999,7 +55003,8 @@ const BEt = {
|
|
|
54999
55003
|
columnsOrderedFromSimpleTable: j,
|
|
55000
55004
|
renderedGroupedColumns: k
|
|
55001
55005
|
} = k2(e, {
|
|
55002
|
-
modelSort: q
|
|
55006
|
+
modelSort: q,
|
|
55007
|
+
slots: t.slots
|
|
55003
55008
|
}), {
|
|
55004
55009
|
columnIdsGroupByLocked: z,
|
|
55005
55010
|
columnsFilteredForRender: le,
|
|
@@ -55357,7 +55362,7 @@ const BEt = {
|
|
|
55357
55362
|
showFirstSortingSequenceNumber: this.showFirstSortingSequenceNumber,
|
|
55358
55363
|
sortingSequenceNumberClass: this.sortingSequenceNumberClass,
|
|
55359
55364
|
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes
|
|
55360
|
-
}),
|
|
55365
|
+
}, this.$slots),
|
|
55361
55366
|
c("div", {
|
|
55362
55367
|
class: "a_table__loading"
|
|
55363
55368
|
}, [
|
package/dist/aloha-vue.umd.js
CHANGED
|
@@ -193,7 +193,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
193
193
|
<path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/>
|
|
194
194
|
</svg>`,_0=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-up-fill" viewBox="0 0 16 16">
|
|
195
195
|
<path d="m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z"/>
|
|
196
|
-
</svg>`,Zr=e.ref({propsDefault:{borderType:"bordered"},config:{isHtmlTitleSort:!1}}),e0={install:(_,{propsDefault:t={},config:n={}}={})=>{Zr.value.propsDefault={...Zr.value.propsDefault,...t},Zr.value.config={...Zr.value.config,...n}}};function t0(_){const t=e.toRef(_,"column"),n=e.toRef(_,"columnIndex"),E=e.toRef(_,"disabledSort"),a=e.toRef(_,"isSortingMultiColumn"),s=e.toRef(_,"modelSort"),o=e.toRef(_,"showFirstSortingSequenceNumber"),l=e.inject("changeModelSort"),A=e.inject("tableId"),T=e.computed(()=>t.value.sortId),L=e.computed(()=>!!T.value),S=e.computed(()=>s.value.indexOf(T.value)),c=e.computed(()=>s.value.indexOf(`-${T.value}`)),f=e.computed(()=>S.value!==-1),d=e.computed(()=>c.value!==-1),R=e.computed(()=>L.value&&(f.value||d.value)),C=e.computed(()=>{if(L.value){let Y="none";return f.value?Y="ascending":d.value&&(Y="descending"),{"aria-sort":Y}}return{}}),I=e.computed(()=>e.h(_e,{icon:_0,class:"a_table__th__sort__icon a_table__th__sort__icon_up"})),O=e.computed(()=>e.h(_e,{icon:Qw,class:"a_table__th__sort__icon a_table__th__sort__icon_down"})),p=e.computed(()=>{const Y=[];return L.value&&(d.value||Y.push(I.value),f.value||Y.push(O.value)),Y}),U=({$event:Y})=>{E.value||l({$event:Y,sortId:T.value})},D=e.computed(()=>`${A.value}_th_${n.value}_screen_reader`),V=e.computed(()=>{var Y;return L.value?{type:"button",disabled:E.value,isTitleHtml:((Y=Zr.value.config)==null?void 0:Y.isHtmlTitleSort)||!1,"aria-describedby":D.value,onClick:U}:{tag:"span"}}),B=e.computed(()=>{if(!(!a.value&&!R.value)&&!(s.value.length<=1&&!o.value)){if(S.value!==-1)return S.value+1;if(c.value!==-1)return c.value+1}}),y=e.computed(()=>{const Y=[];return L.value&&(Y.push("_A_TABLE_SORT_TITLE_"),a.value&&Y.push("_A_TABLE_SORT_TITLE_MULTI_COLUMN_")),Y});return{ariaSort:C,attributesForButtonSort:V,columnTextScreenReaderId:D,iconsSortable:p,isSortable:L,isSorting:R,sequenceNumberSort:B,titlesSort:y}}const zT={name:"ATableHeaderTh",props:{column:{type:Object,required:!0},columnGroupNames:{type:Array,required:!1,default:void 0},columnIndex:{type:Number,required:!0},columnIndexDraggable:{type:Number,required:!1,default:-1},disabledSort:{type:Boolean,required:!1},hasMultipleActions:{type:Boolean,required:!0},isSortingMultiColumn:{type:Boolean,required:!1},modelSort:{type:Array,required:!1},showFirstSortingSequenceNumber:{type:Boolean,required:!1},sortingSequenceNumberClass:{type:[String,Object],required:!1}},emits:["dragendParent","dragstartParent","dragenterParent","dragleaveParent"],inject:["changeModelSort","isColumnsDnd","isLoadingOptions","isLoadingTable"],setup(_,t){const{columnsStyles:n}=TR(_),{attributesForRoot:E,isLocked:a,root:s}=tR(_,t,{classOverString:"a_table__th_over",inDropdown:!1}),{ariaSort:o,attributesForButtonSort:l,columnTextScreenReaderId:A,iconsSortable:T,isSortable:L,isSorting:S,sequenceNumberSort:c,titlesSort:f}=t0(_),{attributesForTh:d,titlesLocal:R}=Jw(_,{ariaSort:o,attributesForRoot:E,columnsStyles:n,isLocked:a,isSorting:S,titlesSort:f});return{attributesForButtonSort:l,attributesForTh:d,columnTextScreenReaderId:A,columnsStyles:n,iconsSortable:T,isSortable:L,root:s,sequenceNumberSort:c,titlesLocal:R,titlesSort:f}},render(){return e.h("div",this.attributesForTh,[e.h("div",{class:["a_table__cell__child"]},[this.columnGroupNames&&e.h(f_,{html:this.columnGroupNames,tag:"span",class:"a_sr_only"}),e.h(f_,{id:this.columnTextScreenReaderId,text:this.titlesLocal,tag:"span",class:"a_sr_only",ariaHidden:!0}),e.h(le,{class:["a_table__th__btn",this.column.class,this.column.classHeader,{"a_btn a_btn_link a_table__th__btn_sort":this.isSortable,a_table__th__btn_sequence:this.sequenceNumberSort}],iconLeft:this.column.icon,iconClass:"a_table__th__icon",extra:this.column.extra,title:this.titlesLocal,textScreenReader:this.column.textScreenReader||void 0,...this.attributesForButtonSort},()=>[this.column.label&&e.h(f_,{html:this.column.label,tag:"span",extra:this.column.extra,class:"a_table__th__text aloha_element__ml_0",ariaHidden:!!this.column.textScreenReader}),this.isSortable&&e.h("span",{class:"a_table__th__sort__box aloha_element__ml_0"},[this.sequenceNumberSort&&e.h("span",{class:["a_table__th__sort__sequence_num",this.sortingSequenceNumberClass]},this.sequenceNumberSort),e.h("span",{class:"a_table__th__sort__icons"},[...this.iconsSortable])])])])])}},n0={name:"ATableHeader",components:{ATableHeaderTh:zT,ATableHeaderThAction:jT},props:{areAllRowsSelected:{type:Boolean,required:!0},areAllVisibleRowsSelected:{type:Boolean,required:!0},areSomeRowsSelected:{type:Boolean,required:!0},disabledOptions:{type:Boolean,required:!1},disabledSort:{type:Boolean,required:!1},hasMultipleActions:{type:Boolean,required:!0},isRowActionsStickyLocal:{type:Boolean,required:!0},isSortingMultiColumn:{type:Boolean,required:!1},modelSort:{type:Array,required:!0},rowsLocalLength:{type:Number,required:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1},sortingSequenceNumberClass:{type:[String,Object],required:!1}},emits:["setSelectedRowsIndexes"],inject:["changeColumnsOrdering","columnsFilteredForRender","isActionColumnVisible","isMobile","isMultipleActionsActive"],setup(_,t){const{columnIndexDraggable:n,dragstart:E,dragenter:a,dragleave:s,dragend:o,drop:l,isDragstart:A,root:T}=iR({classOver:"a_table__th_over",classOverRight:"a_table__th_over_right",classOverParent:"a_table__th",inHeader:!0}),{isCheckboxDisabled:L,isCheckboxIndeterminate:S,labelCheckbox:c,modelValueCheckboxLocal:f,toggleCheckbox:d}=AR(_,t);return{columnIndexDraggable:n,dragend:o,dragenter:a,dragleave:s,dragstart:E,drop:l,isCheckboxDisabled:L,isCheckboxIndeterminate:S,isDragstart:A,labelCheckbox:c,modelValueCheckboxLocal:f,root:T,toggleCheckbox:d}},render(){return this.isMobile?null:e.h("div",{ref:"root",role:"rowgroup",class:["a_table__head",{a_table__head_dragstart:this.isDragstart}]},[e.h("div",{class:"a_table__row a_table__head__row",role:"row",onDrop:this.drop},[this.isMultipleActionsActive&&e.h("div",{role:"columnheader",class:"a_table__th a_table__cell a_table__cell_checkbox",style:"width: 50px; min-width: 50px; max-width: 50px;","aria-colindex":1},[e.h(kr,{isWidthAuto:!0,modelValue:this.modelValueCheckboxLocal,indeterminate:this.isCheckboxIndeterminate,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),this.columnsFilteredForRender.map((_,t)=>e.h(zT,{ref:"th",column:_,columnIndex:t,columnIndexDraggable:this.columnIndexDraggable,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSort,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onDragstartParent:this.dragstart,onDragenterParent:this.dragenter,onDragleaveParent:this.dragleave,onDragendParent:this.dragend})),this.isActionColumnVisible&&e.h(jT,{disabledOptions:this.disabledOptions,isRowActionsStickyLocal:this.isRowActionsStickyLocal})])])}};function E0(_,{emit:t},{nextAvailableRowIndex:n,previousAvailableRowIndex:E,rowNumber:a=e.computed(()=>0)}){const s=e.toRef(_,"countAllRows"),o=e.toRef(_,"limitPagination"),l=e.toRef(_,"offsetPagination"),A=e.toRef(_,"rowIndex"),T=e.toRef(_,"usePagination"),L=e.computed(()=>a.value<=1||t_(E.value)),S=e.computed(()=>a.value>=s.value||t_(n.value));return{disabledBtnArrowLeft:L,disabledBtnArrowRight:S,toNextRow:()=>{S.value||(T.value?(A.value+1)%o.value===0?(t("update:offset",{offset:l.value+o.value,reload:!1}),t("togglePreview",{rowIndex:0})):t("togglePreview",{rowIndex:n.value}):t("togglePreview",{rowIndex:n.value}))},toPreviousRow:()=>{L.value||(T.value?(A.value+1)%o.value===1?(t("update:offset",{offset:l.value-o.value,reload:!1}),t("togglePreview",{rowIndex:o.value-1})):t("togglePreview",{rowIndex:E.value}):t("togglePreview",{rowIndex:E.value}))}}}function a0(){const _=e.inject("tableId");return{idLocal:e.computed(()=>aR({tableId:_.value}))}}function r0({emit:_},{previewRef:t=e.ref(void 0)}){return{mousedown:({clientWidth:s})=>{_("mousedownResizePreviewRight",{clientWidth:s})},mousemove:({clientX:s})=>{_("mousemoveResizePreviewRight",{clientX:s,previewRef:t.value})},mouseup:()=>{_("mouseupResizePreviewRight",{previewRightWidth:n_(t,"value.offsetWidth")})}}}const LR=e.ref(void 0);function SR(){return{previewRef:LR,removePreviewRef:()=>{LR.value=void 0}}}function s0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"disabledPreviewRowCallback"),E=e.toRef(_,"offsetPagination"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"rows"),o=e.toRef(_,"usePagination"),{filterCurrency:l}=Gt(),A=e.computed(()=>o.value?(E.value||0)+a.value+1:a.value+1),T=e.computed(()=>s.value[a.value]),L=e.computed(()=>{let d=null;if(!U_(n.value))d=a.value===s.value.length-1?null:a.value++;else for(let R=a.value+1;R<s.value.length;R++){const C=s.value[R];if(!n.value({row:C,rowIndex:R})){d=R;break}}return d}),S=e.computed(()=>{let d=null;if(!U_(n.value))d=a.value===0?null:a.value--;else for(let R=a.value-1;R>=0;R--){const C=s.value[R];if(!n.value({row:C,rowIndex:R})){d=R;break}}return d}),c=e.computed(()=>l(t.value,{suffix:"",digits:0})),f=e.computed(()=>l(A.value,{suffix:"",digits:0}));return{countAllRowsFormatted:c,currentRow:T,nextAvailableRowIndex:L,previousAvailableRowIndex:S,rowNumber:A,rowNumberFormatted:f}}const o0=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16">
|
|
196
|
+
</svg>`,Zr=e.ref({propsDefault:{borderType:"bordered"},config:{isHtmlTitleSort:!1}}),e0={install:(_,{propsDefault:t={},config:n={}}={})=>{Zr.value.propsDefault={...Zr.value.propsDefault,...t},Zr.value.config={...Zr.value.config,...n}}};function t0(_){const t=e.toRef(_,"column"),n=e.toRef(_,"columnIndex"),E=e.toRef(_,"disabledSort"),a=e.toRef(_,"isSortingMultiColumn"),s=e.toRef(_,"modelSort"),o=e.toRef(_,"showFirstSortingSequenceNumber"),l=e.inject("changeModelSort"),A=e.inject("tableId"),T=e.computed(()=>t.value.sortId),L=e.computed(()=>!!T.value),S=e.computed(()=>s.value.indexOf(T.value)),c=e.computed(()=>s.value.indexOf(`-${T.value}`)),f=e.computed(()=>S.value!==-1),d=e.computed(()=>c.value!==-1),R=e.computed(()=>L.value&&(f.value||d.value)),C=e.computed(()=>{if(L.value){let Y="none";return f.value?Y="ascending":d.value&&(Y="descending"),{"aria-sort":Y}}return{}}),I=e.computed(()=>e.h(_e,{icon:_0,class:"a_table__th__sort__icon a_table__th__sort__icon_up"})),O=e.computed(()=>e.h(_e,{icon:Qw,class:"a_table__th__sort__icon a_table__th__sort__icon_down"})),p=e.computed(()=>{const Y=[];return L.value&&(d.value||Y.push(I.value),f.value||Y.push(O.value)),Y}),U=({$event:Y})=>{E.value||l({$event:Y,sortId:T.value})},D=e.computed(()=>`${A.value}_th_${n.value}_screen_reader`),V=e.computed(()=>{var Y;return L.value?{type:"button",disabled:E.value,isTitleHtml:((Y=Zr.value.config)==null?void 0:Y.isHtmlTitleSort)||!1,"aria-describedby":D.value,onClick:U}:{tag:"span"}}),B=e.computed(()=>{if(!(!a.value&&!R.value)&&!(s.value.length<=1&&!o.value)){if(S.value!==-1)return S.value+1;if(c.value!==-1)return c.value+1}}),y=e.computed(()=>{const Y=[];return L.value&&(Y.push("_A_TABLE_SORT_TITLE_"),a.value&&Y.push("_A_TABLE_SORT_TITLE_MULTI_COLUMN_")),Y});return{ariaSort:C,attributesForButtonSort:V,columnTextScreenReaderId:D,iconsSortable:p,isSortable:L,isSorting:R,sequenceNumberSort:B,titlesSort:y}}const zT={name:"ATableHeaderTh",props:{column:{type:Object,required:!0},columnGroupNames:{type:Array,required:!1,default:void 0},columnIndex:{type:Number,required:!0},columnIndexDraggable:{type:Number,required:!1,default:-1},disabledSort:{type:Boolean,required:!1},hasMultipleActions:{type:Boolean,required:!0},isSortingMultiColumn:{type:Boolean,required:!1},modelSort:{type:Array,required:!1},showFirstSortingSequenceNumber:{type:Boolean,required:!1},sortingSequenceNumberClass:{type:[String,Object],required:!1}},emits:["dragendParent","dragstartParent","dragenterParent","dragleaveParent"],inject:["changeModelSort","isColumnsDnd","isLoadingOptions","isLoadingTable"],setup(_,t){const{columnsStyles:n}=TR(_),{attributesForRoot:E,isLocked:a,root:s}=tR(_,t,{classOverString:"a_table__th_over",inDropdown:!1}),{ariaSort:o,attributesForButtonSort:l,columnTextScreenReaderId:A,iconsSortable:T,isSortable:L,isSorting:S,sequenceNumberSort:c,titlesSort:f}=t0(_),{attributesForTh:d,titlesLocal:R}=Jw(_,{ariaSort:o,attributesForRoot:E,columnsStyles:n,isLocked:a,isSorting:S,titlesSort:f});return{attributesForButtonSort:l,attributesForTh:d,columnTextScreenReaderId:A,columnsStyles:n,iconsSortable:T,isSortable:L,root:s,sequenceNumberSort:c,titlesLocal:R,titlesSort:f}},render(){return e.h("div",this.attributesForTh,[e.h("div",{class:["a_table__cell__child"]},[this.columnGroupNames&&e.h(f_,{html:this.columnGroupNames,tag:"span",class:"a_sr_only"}),e.h(f_,{id:this.columnTextScreenReaderId,text:this.titlesLocal,tag:"span",class:"a_sr_only",ariaHidden:!0}),e.h(le,{class:["a_table__th__btn",this.column.class,this.column.classHeader,{"a_btn a_btn_link a_table__th__btn_sort":this.isSortable,a_table__th__btn_sequence:this.sequenceNumberSort}],iconLeft:this.column.icon,iconClass:"a_table__th__icon",extra:this.column.extra,title:this.titlesLocal,textScreenReader:this.column.textScreenReader||void 0,...this.attributesForButtonSort},()=>[this.column.headerSlot&&this.$slots[this.column.headerSlot]?this.$slots[this.column.headerSlot]({column:this.column,columnIndex:this.columnIndex}):this.column.label&&e.h(f_,{html:this.column.label,tag:"span",extra:this.column.extra,class:"a_table__th__text aloha_element__ml_0",ariaHidden:!!this.column.textScreenReader}),this.isSortable&&e.h("span",{class:"a_table__th__sort__box aloha_element__ml_0"},[this.sequenceNumberSort&&e.h("span",{class:["a_table__th__sort__sequence_num",this.sortingSequenceNumberClass]},this.sequenceNumberSort),e.h("span",{class:"a_table__th__sort__icons"},[...this.iconsSortable])])])])])}},n0={name:"ATableHeader",components:{ATableHeaderTh:zT,ATableHeaderThAction:jT},props:{areAllRowsSelected:{type:Boolean,required:!0},areAllVisibleRowsSelected:{type:Boolean,required:!0},areSomeRowsSelected:{type:Boolean,required:!0},disabledOptions:{type:Boolean,required:!1},disabledSort:{type:Boolean,required:!1},hasMultipleActions:{type:Boolean,required:!0},isRowActionsStickyLocal:{type:Boolean,required:!0},isSortingMultiColumn:{type:Boolean,required:!1},modelSort:{type:Array,required:!0},rowsLocalLength:{type:Number,required:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1},sortingSequenceNumberClass:{type:[String,Object],required:!1}},emits:["setSelectedRowsIndexes"],inject:["changeColumnsOrdering","columnsFilteredForRender","isActionColumnVisible","isMobile","isMultipleActionsActive"],setup(_,t){const{columnIndexDraggable:n,dragstart:E,dragenter:a,dragleave:s,dragend:o,drop:l,isDragstart:A,root:T}=iR({classOver:"a_table__th_over",classOverRight:"a_table__th_over_right",classOverParent:"a_table__th",inHeader:!0}),{isCheckboxDisabled:L,isCheckboxIndeterminate:S,labelCheckbox:c,modelValueCheckboxLocal:f,toggleCheckbox:d}=AR(_,t);return{columnIndexDraggable:n,dragend:o,dragenter:a,dragleave:s,dragstart:E,drop:l,isCheckboxDisabled:L,isCheckboxIndeterminate:S,isDragstart:A,labelCheckbox:c,modelValueCheckboxLocal:f,root:T,toggleCheckbox:d}},render(){return this.isMobile?null:e.h("div",{ref:"root",role:"rowgroup",class:["a_table__head",{a_table__head_dragstart:this.isDragstart}]},[e.h("div",{class:"a_table__row a_table__head__row",role:"row",onDrop:this.drop},[this.isMultipleActionsActive&&e.h("div",{role:"columnheader",class:"a_table__th a_table__cell a_table__cell_checkbox",style:"width: 50px; min-width: 50px; max-width: 50px;","aria-colindex":1},[e.h(kr,{isWidthAuto:!0,modelValue:this.modelValueCheckboxLocal,indeterminate:this.isCheckboxIndeterminate,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),this.columnsFilteredForRender.map((_,t)=>e.h(zT,{ref:"th",column:_,columnIndex:t,columnIndexDraggable:this.columnIndexDraggable,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSort,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onDragstartParent:this.dragstart,onDragenterParent:this.dragenter,onDragleaveParent:this.dragleave,onDragendParent:this.dragend},this.$slots)),this.isActionColumnVisible&&e.h(jT,{disabledOptions:this.disabledOptions,isRowActionsStickyLocal:this.isRowActionsStickyLocal})])])}};function E0(_,{emit:t},{nextAvailableRowIndex:n,previousAvailableRowIndex:E,rowNumber:a=e.computed(()=>0)}){const s=e.toRef(_,"countAllRows"),o=e.toRef(_,"limitPagination"),l=e.toRef(_,"offsetPagination"),A=e.toRef(_,"rowIndex"),T=e.toRef(_,"usePagination"),L=e.computed(()=>a.value<=1||t_(E.value)),S=e.computed(()=>a.value>=s.value||t_(n.value));return{disabledBtnArrowLeft:L,disabledBtnArrowRight:S,toNextRow:()=>{S.value||(T.value?(A.value+1)%o.value===0?(t("update:offset",{offset:l.value+o.value,reload:!1}),t("togglePreview",{rowIndex:0})):t("togglePreview",{rowIndex:n.value}):t("togglePreview",{rowIndex:n.value}))},toPreviousRow:()=>{L.value||(T.value?(A.value+1)%o.value===1?(t("update:offset",{offset:l.value-o.value,reload:!1}),t("togglePreview",{rowIndex:o.value-1})):t("togglePreview",{rowIndex:E.value}):t("togglePreview",{rowIndex:E.value}))}}}function a0(){const _=e.inject("tableId");return{idLocal:e.computed(()=>aR({tableId:_.value}))}}function r0({emit:_},{previewRef:t=e.ref(void 0)}){return{mousedown:({clientWidth:s})=>{_("mousedownResizePreviewRight",{clientWidth:s})},mousemove:({clientX:s})=>{_("mousemoveResizePreviewRight",{clientX:s,previewRef:t.value})},mouseup:()=>{_("mouseupResizePreviewRight",{previewRightWidth:n_(t,"value.offsetWidth")})}}}const LR=e.ref(void 0);function SR(){return{previewRef:LR,removePreviewRef:()=>{LR.value=void 0}}}function s0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"disabledPreviewRowCallback"),E=e.toRef(_,"offsetPagination"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"rows"),o=e.toRef(_,"usePagination"),{filterCurrency:l}=Gt(),A=e.computed(()=>o.value?(E.value||0)+a.value+1:a.value+1),T=e.computed(()=>s.value[a.value]),L=e.computed(()=>{let d=null;if(!U_(n.value))d=a.value===s.value.length-1?null:a.value++;else for(let R=a.value+1;R<s.value.length;R++){const C=s.value[R];if(!n.value({row:C,rowIndex:R})){d=R;break}}return d}),S=e.computed(()=>{let d=null;if(!U_(n.value))d=a.value===0?null:a.value--;else for(let R=a.value-1;R>=0;R--){const C=s.value[R];if(!n.value({row:C,rowIndex:R})){d=R;break}}return d}),c=e.computed(()=>l(t.value,{suffix:"",digits:0})),f=e.computed(()=>l(A.value,{suffix:"",digits:0}));return{countAllRowsFormatted:c,currentRow:T,nextAvailableRowIndex:L,previousAvailableRowIndex:S,rowNumber:A,rowNumberFormatted:f}}const o0=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16">
|
|
197
197
|
<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>
|
|
198
198
|
</svg>`,i0=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16">
|
|
199
199
|
<path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8"/>
|
|
@@ -203,7 +203,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
203
203
|
<path d="M7 2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zM2 1a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm0 8a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2zm.854-3.646a.5.5 0 0 1-.708 0l-1-1a.5.5 0 1 1 .708-.708l.646.647 1.646-1.647a.5.5 0 1 1 .708.708zm0 8a.5.5 0 0 1-.708 0l-1-1a.5.5 0 0 1 .708-.708l.646.647 1.646-1.647a.5.5 0 0 1 .708.708zM7 10.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 8a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5"/>
|
|
204
204
|
</svg>`,O0={name:"ATableTopPanel",props:{additionalSortingColumns:{type:Array,required:!1,default:()=>[]},areAllRowsSelected:{type:Boolean,required:!0},areSomeRowsSelected:{type:Boolean,required:!0},closeMultipleActionsActive:{type:Function,required:!0},countAllRows:{type:Number,required:!0},disabledActions:{type:Boolean,required:!0},disabledMultipleActions:{type:Boolean,required:!0},disabledSort:{type:Boolean,required:!1},disabledViews:{type:Boolean,required:!0},extra:{type:Object,required:!1,default:void 0},hasViews:{type:Boolean,required:!0},isLabelVisible:{type:Boolean,required:!1},isLoadingMultipleActions:{type:Boolean,required:!1},isQuickSearch:{type:Boolean,required:!1},isSortingMultiColumn:{type:Boolean,required:!1,default:!1},label:{type:[String,Number],required:!1,default:""},labelClass:{type:[String,Object],required:!1,default:void 0},labelTag:{type:String,required:!0},modelQuickSearch:{type:String,required:!0},modelSort:{type:Array,required:!1},modelView:{type:String,required:!1,default:void 0},multipleActions:{type:Array,required:!0},selectedRows:{type:Array,required:!0},showCount:{type:Boolean,required:!1,default:!0},tableActions:{type:Array,required:!0},tableActionsIndexFirstDropdownAction:{type:Number,required:!1,default:-1},tableActionsIndexFirstDropdownActionMobile:{type:Number,required:!1,default:0},useAdditionalSorting:{type:Boolean,required:!1,default:!0},useViewSlot:{type:Boolean,required:!1},viewCurrent:{type:Object,required:!1,default:void 0},views:{type:Array,required:!0}},emits:["toggleBtnAllRows","toggleMultipleActionsActive","updateModelQuickSearch","updateViewCurrent"],inject:["isMultipleActionsActive","rowsLocalAll","tableId"],setup(_,t){const{tableLabelId:n}=R0(),{filterCurrency:E}=Gt(),{buttonMultipleId:a,currentMultipleActions:s,multipleActionsFiltered:o,onCancelMultipleActions:l,onOpenModalMultipleActions:A,tableActionsFiltered:T}=d0(_,t),{isBtnMultipleActionDisabled:L,isBtnSelectAllRowsDisabled:S,multiplePanelId:c,textMultipleBtnAllRowsTranslate:f,textMultipleSelectedTranslateExtra:d,toggleBtnAllRows:R}=C0(_,t),{updateViewCurrentLocal:C,viewSlotLocal:I}=h0(_,t),{countAllRowsFormatted:O}=f0(_);return{buttonMultipleId:a,countAllRowsFormatted:O,currentMultipleActions:s,filterCurrency:E,isBtnMultipleActionDisabled:L,isBtnSelectAllRowsDisabled:S,multipleActionsFiltered:o,multiplePanelId:c,onCancelMultipleActions:l,onOpenModalMultipleActions:A,tableActionsFiltered:T,tableLabelId:n,textMultipleBtnAllRowsTranslate:f,textMultipleSelectedTranslateExtra:d,toggleBtnAllRows:R,updateViewCurrentLocal:C,viewSlotLocal:I}},methods:{updateModelQuickSearch(_){this.$emit("updateModelQuickSearch",_)}},render(){var _,t,n,E;return[e.h("div",{class:"a_table__top_panel"},[this.isLabelVisible?this.$slots.tableLabel?this.$slots.tableLabel({countAllRows:this.countAllRows,tableLabelId:this.tableLabelId}):e.h(this.labelTag,{class:["a_table__top_panel__label",this.labelClass]},[e.h(f_,{id:this.tableLabelId,tag:"span",class:"a_table__top_panel__label__text",text:this.label,extra:this.extra}),this.showCount?e.h(O_,{class:"a_table__top_panel__label__count",extra:{count:this.countAllRows},tag:"span",text:this.countAllRowsFormatted,textAriaHidden:!0,textScreenReader:"_A_TABLE_ALL_ROWS_{{count}}_",title:"_A_TABLE_ALL_ROWS_{{count}}_",type:"text"}):""]):"",e.h("div",{class:"a_table__top_panel__actions"},[this.$slots.tableActionsPrepend?this.$slots.tableActionsPrepend({isMultipleActionsActive:this.isMultipleActionsActive,modelView:this.modelView}):"",e.h(ji,{actions:this.tableActionsFiltered,actionsClasses:[],disabled:this.isMultipleActionsActive||this.disabledActions,indexFirstDropdownAction:this.tableActionsIndexFirstDropdownAction,indexFirstDropdownActionMobile:this.tableActionsIndexFirstDropdownActionMobile,minDropdownActions:0,dropdownAttributes:{buttonClass:"a_btn a_btn_secondary a_table__action",buttonIconLeft:co,buttonText:{desktop:"_A_TABLE_ACTIONS_"},hasCaret:!1,inBody:!0,placement:"bottom-end"}}),e.h(ji,{actions:this.multipleActionsFiltered,actionsClasses:[],disabled:this.isMultipleActionsActive||this.disabledMultipleActions,indexFirstDropdownAction:0,indexFirstDropdownActionMobile:0,minDropdownActions:0,dropdownAttributes:{id:this.buttonMultipleId,buttonClass:"a_btn a_btn_secondary a_table__action",buttonText:{desktop:"_A_TABLE_MULTIPLE_ACTIONS_"},buttonIconLeft:I0,inBody:!0,placement:"bottom-end"}}),this.isQuickSearch?e.h(Bt,{label:"_A_TABLE_QUICK_SEARCH_",class:"a_table__top_panel__actions__quick_search",modelUndefined:"",modelValue:this.modelQuickSearch,iconPrepend:Df,"onUpdate:modelValue":this.updateModelQuickSearch}):"",this.hasViews?e.h(YT,{modelValue:this.modelView,class:"a_d_inline_block",isButtonGroup:!0,disabled:this.disabledViews,slotName:this.viewSlotLocal,data:this.views,keyId:"id",keyLabel:"label",hasBorder:!1,classFieldset:"a_p_0","onUpdate:modelValue":this.updateViewCurrentLocal},{viewSlot:a=>this.$slots.viewSlot&&this.$slots.viewSlot({...a})}):"",this.useAdditionalSorting?e.h(c0,{additionalSortingColumns:this.additionalSortingColumns,disabledSort:this.disabledSort,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSort}):"",this.$slots.tableActionsAppend?this.$slots.tableActionsAppend({isMultipleActionsActive:this.isMultipleActionsActive,modelView:this.modelView}):""])]),this.isMultipleActionsActive&&this.currentMultipleActions?e.h("div",{id:this.multiplePanelId,class:"a_table__multiple_panel"},[e.h("div",{class:"a_table__multiple_panel__header"},[e.h(f_,{class:"a_table__multiple_panel__header__text",tag:"strong",text:"_A_TABLE_MULTIPLE_ACTIONS_"}),e.h("div",{class:"a_table__multiple_panel__items"},[e.h(f_,{class:"a_table__multiple_panel__items__selected",tag:"span",text:"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_{{countSelectedRowsFiltered}}_{{countAllRowsFiltered}}_",extra:this.textMultipleSelectedTranslateExtra}),((_=this.currentMultipleActions)==null?void 0:_.isAllRowsSelected)&&e.h(le,{class:"a_btn a_btn_secondary a_table__multiple_panel__btn_all_rows",type:"button",text:this.textMultipleBtnAllRowsTranslate,extra:this.textMultipleSelectedTranslateExtra,disabled:this.isBtnSelectAllRowsDisabled||this.disabledMultipleActions,loading:this.isLoadingMultipleActions,onClick:this.toggleBtnAllRows})])]),e.h("div",{class:"a_table__multiple_panel__actions"},[(t=this.currentMultipleActions)!=null&&t.slot&&this.$slots.multipleActionActiveSlot?this.$slots.multipleActionActiveSlot({disabled:this.isBtnMultipleActionDisabled||this.isLoadingMultipleActions||this.disabledMultipleActions,loading:this.isLoadingMultipleActions,text:(n=this.currentMultipleActions)==null?void 0:n.text,action:this.currentMultipleActions,onClick:this.onOpenModalMultipleActions,close:this.closeMultipleActionsActive,rows:this.selectedRows,rowsVisible:this.rowsLocalAll,id:this.buttonMultipleId,areAllRowsSelected:this.areAllRowsSelected,countAllRows:this.countAllRows}):e.h(le,{class:"a_btn a_btn_primary a_table__action",type:"button",disabled:this.isBtnMultipleActionDisabled||this.isLoadingMultipleActions||this.disabledMultipleActions,text:(E=this.currentMultipleActions)==null?void 0:E.text,loading:this.isLoadingMultipleActions,loadingAlign:"left",onClick:this.onOpenModalMultipleActions}),e.h(le,{class:"a_btn a_btn_secondary a_table__action",type:"button",text:"_A_TABLE_MULTIPLE_CANCEL_",onClick:this.onCancelMultipleActions})])]):""]}};function p0(){const _=e.ref(void 0);return{componentRef:_,setFocusToComponent:()=>{var n;(n=_.value)==null||n.focus({preventScroll:!0})}}}const U0={name:"ATablePreviewDown",props:{row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},inject:["onTogglePreview"],setup(){const{componentRef:_,setFocusToComponent:t}=p0();return e.onMounted(()=>{t()}),{componentRef:_}},render(){return e.h("div",{ref:"componentRef",class:"a_table__preview_down",tabindex:-1},[e.h(f_,{class:"a_sr_only",text:"_A_TABLE_PREVIEW_DOWN_ARIA_LABEL_"}),this.$slots.preview&&this.$slots.preview({row:this.row,rowIndex:this.rowIndex}),e.h(le,{class:"a_btn a_btn_transparent_dark a_table__preview_down__btn_close",iconLeft:Mn,iconClass:"a_table__preview_down__btn_close__icon",title:"_A_TABLE_PREVIEW_DOWN_CLOSE_",textScreenReader:"_A_TABLE_PREVIEW_DOWN_CLOSE_",onClick:()=>this.onTogglePreview({row:this.row,rowIndex:this.rowIndex})})])}};function N0(_){const t=e.toRef(_,"column"),n=e.toRef(_,"disabledPreview"),E=e.toRef(_,"isFooter"),a=e.inject("hasPreview"),s=e.inject("isMobile"),{columnsStyles:o}=TR(_);return{attributesForTd:e.computed(()=>{const A={class:["a_table__td a_table__cell",{a_table__cell_click:a.value&&!E.value&&!n.value},t.value.classRowParent],style:o.value};return s.value||(A.role="cell"),A})}}function cR(_){const t=e.toRef(_,"column"),n=e.toRef(_,"row"),E=e.computed(()=>!!t.value.to),a=e.computed(()=>{if(ue(t.value.to))return t.value.to;if(J_(t.value.to)){const o=e_(t.value.to),l=o.params||{},A=o.query||{};if(t.value.to.nameDynamic&&!t.value.to.name){const T=n_(n.value,t.value.to.nameDynamic);T&&(o.name=T)}if(t.value.to.paramsDynamic){let T=!1;if(j(t.value.to.paramsDynamic,(L,S)=>{const c=n_(n.value,L);if(w_(c))return T=!0,!1;l[S]=c}),T)return}if(t.value.to.queryDynamic){let T=!1;if(j(t.value.to.queryDynamic,(L,S)=>{const c=n_(n.value,L);if(w_(c))return T=!0,!1;A[S]=c}),T)return}return o.params=l,o.query=A,o}});return{classForLink:e.computed(()=>"a_btn a_btn_link a_p_0 a_text_left"),isLink:E,toLocal:a}}function dR(_){const t=e.toRef(_,"column"),n=e.toRef(_,"isFooter"),E=e.computed(()=>n.value?t.value.footerSlot:t.value.slot);return{hasSlot:e.computed(()=>!!E.value),slotName:E}}function fR(_){const t=e.toRef(_,"column"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.inject("columnsDefaultValue"),s=e.inject("valuesForColumnDefault"),o=e.computed(()=>n.value&&"footerDefaultValue"in t.value?t.value.footerDefaultValue:"defaultValue"in t.value?t.value.defaultValue:w_(a.value)?"":a.value),l=e.computed(()=>n.value?t.value.footerKeyLabel:t.value.keyLabel),A=e.computed(()=>n.value?t.value.footerKeyLabelSafeHtml:t.value.keyLabelSafeHtml),T=e.computed(()=>n.value?t.value.footerKeyLabelHtml:t.value.keyLabelHtml),L=e.computed(()=>{if(l.value)return n_(E.value,l.value)}),S=e.computed(()=>{if(A.value)return n_(E.value,A.value)}),c=e.computed(()=>{if(T.value)return n_(E.value,T.value)}),f=O=>{let p=!1;return j(s.value,U=>{if(O===U)return p=!0,!1}),p?o.value:O},d=e.computed(()=>f(L.value)),R=e.computed(()=>f(S.value)),C=e.computed(()=>f(c.value));return{textOrHtmlRender:e.computed(()=>{if(l.value)return e.h("span",null,d.value);if(A.value)return e.h("div",{innerHTML:R.value});if(T.value)return e.withDirectives(e.h("div"),[[et,C.value]])})}}const RR=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-right-fill" viewBox="0 0 16 16">
|
|
205
205
|
<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/>
|
|
206
|
-
</svg>`,CR={name:"ATableTd",props:{column:{type:Object,required:!0},columnIndex:{type:Number,required:!0},disabledPreview:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},level:{type:Number,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},showIconChildren:{type:Boolean,required:!1}},inject:["isMobile","rowsLocalAll"],setup(_){const{attributesForTd:t}=N0(_),{classForLink:n,isLink:E,toLocal:a}=cR(_),{hasSlot:s,slotName:o}=dR(_),{textOrHtmlRender:l}=fR(_);return{attributesForTd:t,classForLink:n,hasSlot:s,isLink:E,slotName:o,textOrHtmlRender:l,toLocal:a}},render(){const _=e.h("div",this.attributesForTd,[e.h("div",{class:["a_table__cell__child",this.column.class,this.column.classRow]},[this.showIconChildren?e.h(O_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:RR,type:"text"}):"",this.hasSlot&&this.$slots[this.slotName]?this.$slots[this.slotName]({column:this.column,columnIndex:this.columnIndex,level:this.level,row:this.row,rowIndex:this.rowIndex,rows:this.rowsLocalAll}):this.isLink&&this.toLocal?e.h(e.resolveComponent("RouterLink"),{class:[this.column.class,this.classForLink,this.column.classRow],to:this.toLocal},()=>[this.textOrHtmlRender]):this.textOrHtmlRender])]);return this.isMobile?[e.h(f_,{html:this.column.label,tag:"dt"}),e.h("dd",{},[_])]:_}},D0={name:"ATableListItem",inject:["rowsLocalAll"],props:{column:{type:Object,required:!0},columnIndex:{type:Number,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},isFooter:{type:Boolean,required:!1}},setup(_){const{classForLink:t,isLink:n,toLocal:E}=cR(_),{hasSlot:a,slotName:s}=dR(_),{textOrHtmlRender:o}=fR(_);return{classForLink:t,hasSlot:a,isLink:n,slotName:s,textOrHtmlRender:o,toLocal:E}},render(){return[e.h(f_,{text:this.column.label,tag:"dt"}),e.h("dd",null,this.hasSlot&&this.$slots[this.slotName]?this.$slots[this.slotName]({column:this.column,columnIndex:this.columnIndex,row:this.row,rowIndex:this.rowIndex,rows:this.rowsLocalAll}):this.isLink&&this.toLocal?[e.h(e.resolveComponent("RouterLink"),{class:[this.column.class,this.classForLink,this.column.classRow],to:this.toLocal},()=>[this.textOrHtmlRender])]:[this.textOrHtmlRender])]}};function m0(){const _=e.inject("columnsScrollInvisible"),t=e.inject("modelIsTableWithoutScroll"),n=e.computed(()=>_.value.length),E=e.computed(()=>t.value?n.value>0:!1);return{columnsScrollInvisibleText:e.computed(()=>n.value===1?"_A_TABLE_DROPDOWN_HIDE_FIELD_TEXT_":"_A_TABLE_DROPDOWN_HIDE_FIELDS_TEXT_{{count}}_"),countColumnsScrollInvisible:n,isColumnsScrollInvisibleDropdownVisible:E}}function P0(_){const t=e.toRef(_,"columnActionsView"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"rowIndexPath"),o=e.inject("columnActionsOnePlusDropdownOptions"),l=e.inject("rowActions"),A=e.inject("tableId"),T=e.computed(()=>{const b=s.value||a.value;return`${A.value}_action_${b}`}),L=e.computed(()=>w_(o.value.indexFirstDropdownAction)?1:o.value.indexFirstDropdownAction),S=({rowAction:b})=>{if(b.text)return b.text;if(U_(b.textCallback))return b.textCallback({row:E.value,rowIndex:a.value,rowAction:b})},c=({rowAction:b})=>{if(b.html)return b.html;if(U_(b.htmlCallback))return b.htmlCallback({row:E.value,rowIndex:a.value,rowAction:b})},f=({rowAction:b})=>{if(b.title)return b.title;if(U_(b.titleCallback))return b.titleCallback({row:E.value,rowIndex:a.value,rowAction:b})},d=({rowAction:b})=>b.disabled?b.disabled:U_(b.disabledCallback)?b.disabledCallback({row:E.value,rowIndex:a.value,rowAction:b}):!1,R=({rowAction:b})=>b.class?b.class:U_(b.classCallback)?b.classCallback({row:E.value,rowIndex:a.value,rowAction:b}):"",C=({rowAction:b})=>{if(b.iconLeft)return b.iconLeft;if(U_(b.iconLeftCallback))return b.iconLeftCallback({row:E.value,rowIndex:a.value,rowAction:b})},I=({rowAction:b})=>{if(b.iconRight)return b.iconRight;if(U_(b.iconRightCallback))return b.iconRightCallback({row:E.value,rowIndex:a.value,rowAction:b})},O=({rowAction:b})=>{if(ue(b.to))return b.to;if(J_(b.to)){const $=e_(b.to),M=$.params||{},W=$.query||{};if(b.to.nameDynamic&&!b.to.name){const H=n_(E.value,b.to.nameDynamic);H&&($.name=H)}if(b.to.paramsDynamic){let H=!1;if(j(b.to.paramsDynamic,(w,K)=>{const x=n_(E.value,w);if(w_(x))return H=!0,!1;M[K]=x}),H)return}if(b.to.queryDynamic){let H=!1;if(j(b.to.queryDynamic,(w,K)=>{const x=n_(E.value,w);if(w_(x))return H=!0,!1;W[K]=x}),H)return}return $.params=M,$.query=W,$}},p=({rowAction:b})=>b.href?b.href:U_(b.hrefCallback)?b.hrefCallback({row:E.value,rowIndex:a.value,rowAction:b}):!1,U=({rowAction:b})=>{if(b.extra)return b.extra;if(U_(b.extraCallback))return b.extraCallback({row:E.value,rowIndex:a.value,rowAction:b})},D=({rowAction:b})=>{if(b.textScreenReader)return b.textScreenReader;if(U_(b.textScreenReaderCallback))return b.textScreenReaderCallback({row:E.value,rowIndex:a.value,rowAction:b})},V=({rowActionIndexVisible:b})=>{if(t.value==="dropdown")return{id:T.value,ids:[T.value,A.value]};if(b<L.value){const $=`${T.value}_${b}`;return{buttonId:$,id:$,ids:[$,A.value]}}return{id:T.value,ids:[T.value,A.value]}},B=b=>{j(b,($,M)=>{eP(M,"Callback")&&(b[M]=void 0)})},y=e.computed(()=>{const b=[];let $=0;return j(e_(l.value),M=>{if(oR({rowAction:M,row:E.value,rowIndex:a.value})){if(M.type!=="divider"){const W=S({rowAction:M});W&&(M.text=W);const H=c({rowAction:M});H&&(M.html=H);const w=f({rowAction:M});w?M.title=w:W&&(M.title=W);const K=d({rowAction:M});K&&(M.disabled=K);const x=R({rowAction:M});x&&(M.class=x);const X=C({rowAction:M});X&&(M.iconLeft=X);const r_=I({rowAction:M});r_&&(M.iconRight=r_);const h_=U({rowAction:M});h_&&(M.extra=h_);const l_=D({rowAction:M});if(h_&&(M.textScreenReader=l_),M.type==="link"){const N_=O({rowAction:M});N_?M.to=N_:M.href=p({rowAction:M})}if(U_(M.callback)){const{buttonId:N_,id:L_,ids:G_}=V({rowActionIndexVisible:$});M.id=N_;const m_=M.callback;M.callback=()=>m_({row:E.value,rowIndex:a.value,id:L_,ids:G_,rowAction:M})}B(M),$++}b.push(M)}}),b}),Y=e.computed(()=>!n.value&&y.value.length>0);return{buttonActionsId:T,isRowActionsDropdownVisible:Y,rowActionsFiltered:y}}function b0(_){const t=e.toRef(_,"rowIndex");return{rowNumber:e.computed(()=>t.value+1)}}const Y0={name:"ATableTdAction",props:{columnActionsBtnGroupMaxWidthStyle:{type:String,required:!1,default:void 0},columnActionsView:{type:String,required:!0},disabledRowActions:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},isRowActionsStickyLocal:{type:Boolean,required:!0},row:{type:Object,required:!0},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowIndex:{type:Number,required:!0},rowIndexPath:{type:String,required:!1,default:void 0}},inject:["columnActionsOnePlusDropdownOptions","columnsScrollInvisible","tableId","useRem"],setup(_){const{isMobileWidth:t}=Dt(),{buttonActionsId:n,isRowActionsDropdownVisible:E,rowActionsFiltered:a}=P0(_),{columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:l}=m0(),{rowNumber:A}=b0(_),{stylesThTd:T}=lR();return{buttonActionsId:n,columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:l,isMobileWidth:t,isRowActionsDropdownVisible:E,rowActionsFiltered:a,rowNumber:A,stylesThTd:T}},render(){return e.h("div",{role:"cell",class:["a_table__td a_table__cell a_table__cell_action",{a_table__cell_action_sticky:this.isRowActionsStickyLocal}],...this.stylesThTd},[e.h("div",{class:["a_table__cell__child",this.rowActionsClass]},[this.isColumnsScrollInvisibleDropdownVisible&&e.h(nE,{buttonClass:"a_btn a_btn_link a_text_nowrap",buttonIconLeft:Nf,buttonIconClass:"a_table__cell_action__additional_icon",buttonTitle:"_A_TABLE_DROPDOWN_HIDE_FIELDS_TITLE_{{count}}_",buttonTextScreenReader:"_A_TABLE_DROPDOWN_HIDE_FIELDS_TITLE_{{count}}_",buttonText:this.columnsScrollInvisibleText,buttonTextClass:"a_table__cell_action__additional_text",buttonTextAriaHidden:!0,extra:{count:this.countColumnsScrollInvisible},dropdownClass:"a_p_0 a_overflow_x_hidden a_table__extra_dropdown",dropdownTag:"div",hasCaret:!1,floatingFlip:{use:!0,fallbackPlacements:["top-end","left"]},inBody:!0,placement:"bottom-end",menuWidth:600,isCloseByClickInside:!1,useRem:this.useRem},{dropdown:()=>[e.h("dl",{class:"a_list_dl a_list_dl_dt_right"},[this.columnsScrollInvisible.map((_,t)=>e.h(D0,{column:_,columnIndex:t,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))])]}),this.isRowActionsDropdownVisible||this.$slots.rowActions?e.h("div",{class:"a_table__cell_action__group"},[this.$slots.rowActions?this.$slots.rowActions({tableId:this.tableId,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):"",this.isRowActionsDropdownVisible?this.columnActionsView==="dropdown"||this.isMobileWidth&&this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile===0?e.h(nE,{id:this.buttonActionsId,actions:this.rowActionsFiltered,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:co,buttonTextScreenReader:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",buttonTitle:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",disabled:this.disabledRowActions,extra:{rowNumber:this.rowNumber},hasCaret:!1,inBody:!0,placement:"bottom-end",useRem:this.useRem},this.$slots):e.h(ji,{class:"a_d_inline_block",style:this.columnActionsBtnGroupMaxWidthStyle,actions:this.rowActionsFiltered,dropdownAttributes:{id:this.buttonActionsId,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:yn,buttonTextScreenReader:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",buttonTitle:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",extra:{rowNumber:this.rowNumber},hasCaret:!1,inBody:!0,placement:"bottom-end"},disabled:this.disabledRowActions,btnGroupClass:w_(this.columnActionsOnePlusDropdownOptions.btnGroupClass)?"a_btn_group a_btn_group_table":this.columnActionsOnePlusDropdownOptions.btnGroupClass,hasDividerBeforeDropdown:this.columnActionsOnePlusDropdownOptions.hasDividerBeforeDropdown||!1,indexFirstDropdownAction:w_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction,indexFirstDropdownActionMobile:w_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile,minDropdownActions:w_(this.columnActionsOnePlusDropdownOptions.minDropdownActions)?1:this.columnActionsOnePlusDropdownOptions.minDropdownActions,actionsClasses:this.columnActionsOnePlusDropdownOptions.actionsClasses||["a_btn a_btn_primary a_text_truncate"]},this.$slots):""]):""])])}};function g0(_,{hasChildren:t=e.computed(()=>!1),hasPreviewLocal:n=e.computed(()=>!1),rowClassChildren:E=e.computed(()=>{}),rowClassLevelChildren:a=e.computed(()=>{}),rowClassPreview:s=e.computed(()=>{}),toggleChildren:o=()=>{}}){const l=e.toRef(_,"disabledPreview"),A=e.toRef(_,"disabledPreviewRowCallback"),T=e.toRef(_,"isFooter"),L=e.toRef(_,"isTreeCollapsible"),S=e.toRef(_,"level"),c=e.toRef(_,"row"),f=e.toRef(_,"rowClass"),d=e.toRef(_,"rowIndex"),R=e.toRef(_,"rowIndexPath"),C=e.inject("isMobile"),I=e.inject("onTogglePreview"),O=e.inject("tableId"),p=e.computed(()=>{const $=T.value?"_footer":"",M=R.value||d.value;return`${O.value}${$}_${M}`}),U=e.computed(()=>U_(f.value)?f.value({level:S.value,row:c.value,rowindex:d.value}):f.value),D=e.computed(()=>["a_table__row a_table__body__row a_table__row_hover",E.value,a.value,s.value,U.value]),V=e.computed(()=>C.value?"listitem":"row"),B=e.computed(()=>U_(A.value)?A.value({row:c.value,rowIndex:d.value}):l.value),y=$=>{xw({$event:$,tagsName:["A","BUTTON","INPUT","LABEL"],classStop:"a_table__row"})||(t.value?o():n.value&&I({row:c.value,rowIndex:d.value}))},Y=$=>{$.keyCode===E_.enter&&y($)},b=e.computed(()=>(L.value&&t.value||n.value)&&!B.value?{tabindex:0,onClick:y,onKeydown:Y}:{});return{disabledPreviewRow:B,eventsLocal:b,roleLocal:V,rowClassComputed:D,rowHtmlId:p}}function B0(_,{emit:t}){const n=e.toRef(_,"areAllRowsSelected"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"selectedRowsIndexes"),o=e.inject("currentMultipleActions"),l=e.inject("isMultipleActionsActive"),A=e.computed(()=>!!s.value[a.value]||n.value),T=e.computed(()=>{if(l.value){if(U_(n_(o.value,"isHiddenCallback")))return o.value.isHiddenCallback({row:E.value,rowIndex:a.value});if(n.value)return!0}return!1}),L=e.computed(()=>A.value?"_A_TABLE_DESELECT_THIS_ROW_":"_A_TABLE_SELECT_THIS_ROW_");return{isCheckboxDisabled:T,isRowSelected:A,labelCheckbox:L,toggleCheckbox:()=>{T.value||t("setSelectedRowsIndexes",{rowIndex:a.value})}}}function $0(_){const t=e.toRef(_,"isTree"),n=e.toRef(_,"keyChildren"),E=e.toRef(_,"level"),a=e.toRef(_,"row"),s=e.toRef(_,"rowIndex"),o=e.toRef(_,"rowsLength"),l=e.computed(()=>{if(!n.value)return[];const c=n_(a.value,n.value);return p_(c)?c:[]}),A=e.computed(()=>l.value.length>0),T=e.computed(()=>E.value+1),L=e.computed(()=>t.value?{"aria-level":E.value,"aria-posinset":s.value+1,"aria-setsize":o.value}:{}),S=e.computed(()=>{if(t.value)return`a_table__row_level a_table__row_level_${E.value}`});return{ariaTreeAttributes:L,children:l,hasChildren:A,levelForChildren:T,rowClassLevelChildren:S}}function V0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isOneOfParentsClose"),E=e.toRef(_,"isTreeCollapsible"),a=e.toRef(_,"isTreeOpened"),s=e.ref(!1),o=e.computed(()=>{if(t.value)return s.value}),l=e.computed(()=>({a_table__row_has_children:t.value,a_table__row_hide:n.value,a_table__row_level_open:t.value&&s.value})),A=e.computed(()=>!!(n.value||!s.value));return{ariaExpanded:o,initIsChildrenOpen:()=>{(!E.value||a.value)&&(s.value=!0)},isOneOfParentsCloseForChildren:A,rowClassChildren:l,toggleChildren:()=>{s.value=!s.value}}}function y0(_){const t=e.toRef(_,"allVisibleMobileColumns"),n=e.toRef(_,"countVisibleMobileColumns"),E=e.inject("isMobile"),a=e.ref(!1),s=e.computed(()=>t.value.length-n.value),o=e.computed(()=>E.value&&t.value.length>n.value),l=e.computed(()=>s.value===1?"_A_TABLE_MOBILE_TR_PLUS_FIELD_":"_A_TABLE_MOBILE_TR_PLUS_FIELDS_{{count}}_"),A=e.computed(()=>a.value?"_A_TABLE_MOBILE_TR_CLOSE_":l.value);return{countInvisibleMobileColumns:s,isAllColumnsVisibleMobile:a,isBtnToggleAllColumnsVisible:o,textBtnToggleAllColumns:A,toggleAllColumnsVisibleMobile:({$event:L})=>{a.value=!a.value,L.stopPropagation()}}}function M0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isFooter"),E=e.toRef(_,"rowIndex"),a=e.inject("hasPreview"),s=e.inject("previewRightRowIndex"),o=e.inject("previewRightRowIndexLast"),l=e.computed(()=>!!(!t.value&&a.value&&!n.value)),A=e.computed(()=>E.value===s.value),T=e.computed(()=>!A.value&&E.value===o.value),L=e.computed(()=>u_({placeholder:A.value?"_A_TABLE_ROW_PREVIEW_CLOSE_":"_A_TABLE_ROW_PREVIEW_OPEN_"})),S=e.computed(()=>l.value?{"aria-label":L.value}:{}),c=e.computed(()=>{if(l.value)return{a_table__row_preview_open:A.value,a_table__row_preview_was_open:T.value}});return{hasPreviewLocal:l,previewAttributes:S,rowClassPreview:c}}const hR={name:"ATableTr",props:{allVisibleMobileColumns:{type:Array,required:!0},areAllRowsSelected:{type:Boolean,required:!0},columnActionsBtnGroupMaxWidthStyle:{type:String,required:!1,default:void 0},columnActionsView:{type:String,required:!0},countVisibleMobileColumns:{type:Number,required:!0},disabledPreview:{type:Boolean,required:!1},disabledPreviewRowCallback:{type:Function,required:!1},disabledRowActions:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},isOneOfParentsClose:{type:Boolean,required:!1},isPreviewDownOpen:{type:Boolean,required:!1},isRowActionsStickyLocal:{type:Boolean,required:!0},isTree:{type:Boolean,required:!1},isTreeCollapsible:{type:Boolean,required:!1,default:!0},isTreeOpened:{type:Boolean,required:!1},keyChildren:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:"id"},level:{type:Number,required:!0},row:{type:Object,required:!0},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowClass:{type:[String,Object,Function],required:!1,default:void 0},rowIndex:{type:Number,required:!0},rowIndexPath:{type:String,required:!1,default:void 0},rowsLength:{type:Number,required:!0},selectedRowsIndexes:{type:Object,required:!0}},emits:["setSelectedRowsIndexes"],setup(_,t){const{ariaTreeAttributes:n,children:E,hasChildren:a,levelForChildren:s,rowClassLevelChildren:o}=$0(_),{ariaExpanded:l,initIsChildrenOpen:A,isOneOfParentsCloseForChildren:T,rowClassChildren:L,toggleChildren:S}=V0(_,{hasChildren:a}),{hasPreviewLocal:c,previewAttributes:f,rowClassPreview:d}=M0(_,{hasChildren:a}),{disabledPreviewRow:R,eventsLocal:C,roleLocal:I,rowClassComputed:O,rowHtmlId:p}=g0(_,{hasChildren:a,hasPreviewLocal:c,rowClassChildren:L,rowClassLevelChildren:o,rowClassPreview:d,toggleChildren:S}),{countInvisibleMobileColumns:U,isAllColumnsVisibleMobile:D,isBtnToggleAllColumnsVisible:V,textBtnToggleAllColumns:B,toggleAllColumnsVisibleMobile:y}=y0(_),{isCheckboxDisabled:Y,isRowSelected:b,labelCheckbox:$,toggleCheckbox:M}=B0(_,t);return A(),{ariaExpanded:l,ariaTreeAttributes:n,children:E,countInvisibleMobileColumns:U,disabledPreviewRow:R,eventsLocal:C,hasChildren:a,isAllColumnsVisibleMobile:D,isBtnToggleAllColumnsVisible:V,isCheckboxDisabled:Y,isOneOfParentsCloseForChildren:T,isRowSelected:b,labelCheckbox:$,levelForChildren:s,previewAttributes:f,roleLocal:I,rowClassComputed:O,rowHtmlId:p,textBtnToggleAllColumns:B,toggleAllColumnsVisibleMobile:y,toggleCheckbox:M,toggleChildren:S}},inject:["columnsFilteredForRender","isActionColumnVisible","isMultipleActionsActive","isMobile"],render(){const _=this.rowIndexPath||`${this.rowIndex}`;let t=[];this.isMobile&&!this.isAllColumnsVisibleMobile?j(this.allVisibleMobileColumns,(a,s)=>{if(s+1>this.countVisibleMobileColumns)return!1;t.push(e.h(CR,{key:a.id,column:a,columnIndex:s,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))}):t=this.columnsFilteredForRender.map((a,s)=>e.h(CR,{key:a.id,column:a,columnIndex:s,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,showIconChildren:!!(this.isTreeCollapsible&&this.hasChildren&&s===0)},this.$slots));const n=this.isActionColumnVisible&&e.h(Y0,{columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,disabledRowActions:this.disabledRowActions,row:this.row,rowIndex:this.rowIndex,rowIndexPath:_,isFooter:this.isFooter,rowActionsClass:this.rowActionsClass,isRowActionsStickyLocal:this.isRowActionsStickyLocal},this.$slots),E=this.isMobile?e.h("div",{class:"a_table_mobile__dl__wrapper"},[this.$slots.rowMobilePrepend?this.$slots.rowMobilePrepend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):"",this.isTreeCollapsible&&this.hasChildren?e.h(O_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:RR,type:"text"}):"",e.h("dl",{class:"a_table_mobile__dl"},t),this.$slots.rowMobileAppend?this.$slots.rowMobileAppend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):""]):t;return[e.h("div",{id:this.rowHtmlId,role:this.roleLocal,class:this.rowClassComputed,"aria-expanded":this.ariaExpanded,...this.previewAttributes,...this.ariaTreeAttributes,...this.eventsLocal},[this.isMultipleActionsActive&&e.h("div",{class:"a_table__td a_table__cell a_table__cell_checkbox",style:"width: 50px; min-width: 50px; max-width: 50px;"},[!this.isFooter&&e.h(kr,{isWidthAuto:!0,modelValue:this.isRowSelected,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),E,this.isMobile?e.h("div",{class:"a_table_mobile__actions_parent"},[this.isBtnToggleAllColumnsVisible&&e.h(O_,{class:"a_btn a_btn_link a_table_mobile__columns_btn_toggle",extra:{count:this.countInvisibleMobileColumns},text:this.textBtnToggleAllColumns,type:"button",onClick:this.toggleAllColumnsVisibleMobile}),n]):n]),this.isPreviewDownOpen&&e.h(U0,{row:this.row,rowIndex:this.rowIndex},{preview:a=>this.$slots.preview?this.$slots.preview(a):void 0}),this.hasChildren?this.children.map((a,s)=>e.h(e.resolveComponent("ATableTr"),{key:a[this.keyId]||s,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreviewRow,disabledRowActions:this.disabledRowActions,isFooter:this.isFooter,isOneOfParentsClose:this.isOneOfParentsCloseForChildren,isPreviewDownOpen:!1,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:this.levelForChildren,row:a,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:s,rowIndexPath:`${_}_${s}`,rowsLength:this.children.length,selectedRowsIndexes:this.selectedRowsIndexes},{get:o=>[e.h(Xi,{data:o.row,keyLabel:o.column.keyLabel,filter:o.column.filter,filterParameters:o.column.filterParameters,defaultValue:o.column.defaultValue,tag:o.column.filterTag||"div"})],...this.$slots})):""]}};function F0(_,{columnActionsWidthDefaultsRemLocal:t=e.computed(()=>({})),columnActionsWidthMinRemLocal:n=()=>{},columnActionsWidthRemLocal:E=()=>{},isMobile:a=e.computed(()=>!1),rowsLocal:s=e.ref([])}){const o=e.toRef(_,"columnActionsView"),l=e.toRef(_,"rowActions"),A=e.computed(()=>o.value==="onePlusDropdown"),T=e.computed(()=>{let d=!1;_:for(let R=0;R<s.value.length;R++){const C=s.value[R];for(let I=0;I<l.value.length;I++){const O=l.value[I];if(oR({rowAction:O,row:C,rowIndex:R})&&O.type!=="divider"){d=!0;break _}}}return d}),L=e.computed(()=>!l.value.length||!A.value?!1:T.value),S=e.computed(()=>w_(E.value)?L.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdown:t.value.default:E.value),c=e.computed(()=>w_(n.value)?L.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdownMin:t.value.min:n.value);return{columnActionsBtnGroupMaxWidthStyle:e.computed(()=>{const d=t.value.btnGroupMaxWidth;if(!a.value&&o.value!=="dropdown"&&!w_(d))return`max-width: ${d}px`}),columnActionsWidthLocal:S,columnActionsWidthMinLocal:c,isColumnActionWide:L}}function G0(_,{columnsScrollInvisible:t=e.ref([]),indexFirstScrollInvisibleColumn:n=e.ref(void 0),modelColumnsVisibleLocal:E=e.ref({}),modelIsTableWithoutScrollComputed:a=e.computed(()=>!1),columnsOrderedFromSimpleTable:s=e.computed(()=>[])}){const o=e.toRef(_,"columns"),l=e.toRef(_,"isActionColumnVisible"),A=e.toRef(_,"isSimpleTable"),T=e.toRef(_,"modelColumnsOrdering"),L=e.toRef(_,"multipleActions"),S=e.computed(()=>Ra(o.value,"id")),c=e.computed(()=>{const O={true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]};return j(e_(o.value),p=>{const U=p.id;p.locked?(O.true.push(U),O.trueColumns.push(p),O.trueObject[U]=!0):(O.false.push(U),O.falseColumns.push(p),O.falseObject[U]=!0)}),O}),f=e.computed(()=>{if(A.value&&s.value&&s.value.length)return s.value;if(!T.value.length)return[...c.value.trueColumns,...c.value.falseColumns];const O=[],p=e_(S.value);return j(T.value,U=>{p[U]&&O.push(p[U])}),O}),d=e.computed(()=>{const O=[],p={};return j(f.value,(U,D)=>{kw({column:U,columnIndex:D,modelIsTableWithoutScroll:a.value,modelColumnsVisibleLocal:E.value,indexFirstScrollInvisibleColumn:n.value})&&(p[O.length]=D,O.push(U))}),{columns:O,columnsIndexesMapping:p}}),R=e.computed(()=>d.value.columnsIndexesMapping),C=e.computed(()=>d.value.columns),I=e.computed(()=>{let O=C.value.length;return a.value&&(O+=t.value.length),l.value&&O++,L.value.length&&O++,O});return{columnIdsGroupByLocked:c,columnsFilteredForRender:C,columnsFilteredForRenderIndexesMapping:R,columnsOrdered:f,countNotHiddenColumns:I}}function v0(_,{modelSort:t=e.ref([])}){const n=e.toRef(_,"columns"),E=e.toRef(_,"showFirstSortingSequenceNumber"),a=e.toRef(_,"sortingSequenceNumberClass"),s=e.computed(()=>ce(n.value,I=>qw({column:I}))),o=e.computed(()=>Ct(s.value,(I,O)=>({...I,_index:I.prio||O}))),l=e.computed(()=>Ct(o.value,I=>(I.group&&I.group.length&&(I.group=Ct(I.group,(O,p)=>[O,p].join("%%%"))),I))),A=({groups:I,group:O,level:p,columnsOrderedFromGroups:U,firstLevelGroupObject:D})=>{const V=O?ce(I,Y=>bs(Y,O[p-1])):I,B=di(V,Y=>Y[p]),y=Ct(B,Y=>{const b={id:Y[p].split("%%%")[0]};let $;return p===0?($=b,$.columnIndexes=[]):$=D,Y.length>p+1?b.children=n_(A({groups:I,group:Y,level:p+1,columnsOrderedFromGroups:U,firstLevelGroupObject:$}),"recursiveGroup"):Y.length===p+1&&(b.columns=ce(l.value,M=>bs(M.group,Y[p])),$.columnIndexes.push(...Ct(b.columns,"_index")),U.push(...b.columns)),b});return{columnsOrderedFromGroups:U,recursiveGroup:y}},T=e.computed(()=>Ct(l.value,I=>n_(I,"group",I))),L=e.computed(()=>ce(T.value,I=>p_(I))),S=e.computed(()=>ce(T.value,I=>!p_(I))),c=e.computed(()=>{const I=[];return A({groups:L.value,group:null,level:0,columnsOrderedFromGroups:I})}),f=e.computed(()=>Vr([...c.value.columnsOrderedFromGroups,...S.value],"_index")),d=I=>e.h(zT,{ref:"th",class:"a_table__cell__child_group",column:I,columnGroupNames:Ct(I.group,O=>O.split("%%%")[0]),columnIndex:I._index,hasMultipleActions:!1,modelSort:t.value,showFirstSortingSequenceNumber:E.value,sortingSequenceNumberClass:a.value}),R=I=>e.h("div",{class:"a_table__th_group"},[e.h("div",{class:"a_table__th_child_group"},[e.h("div",{class:"a_table__cell_group a_text_center"},[I.id&&e.h(f_,{html:I.id,tag:"span","aria-hidden":!0})]),e.h("div",{class:"a_table__th_group_container"},I.children?Ct(I.children,O=>R(O)):Ct(I.columns,O=>d(O)))])]),C=e.computed(()=>{const I=Vr([...c.value.recursiveGroup,...S.value],O=>O.columnIndexes?Hu(O.columnIndexes):O._index);return Ct(I,O=>O.columnIndexes?R(O):d(O))});return{columnsOrderedFromSimpleTable:f,renderedGroupedColumns:C}}function w0(_,{emit:t},{checkVisibleColumns:n=()=>{},columnIdsGroupByLocked:E=e.computed(()=>({true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]})),columnsFilteredForRenderIndexesMapping:a=e.computed(()=>({}))}){const s=e.toRef(_,"columns"),o=e.toRef(_,"modelColumnsOrdering"),l=({columnIndexDraggable:L,columnIndexOver:S,reset:c,inHeader:f})=>{if(L===S&&!c)return;f&&(L=a.value[L],S=a.value[S]);let d;if(c)d=[...E.value.true,...E.value.false];else{d=e_(o.value);const R=d[L];d.splice(L,1),d.splice(S,0,R)}t("changeColumnsOrdering",{columnIndexDraggable:L,columnIndexOver:S,modelColumnsOrdering:d}),setTimeout(()=>{n()})},A=()=>{let L=[],S=!1;if(!o.value.length)L=[...E.value.true,...E.value.false];else{L=[...E.value.true];const c=e_(E.value.falseObject);j(o.value,f=>{c[f]&&(L.push(f),delete c[f])}),j(c,(f,d)=>{L.push(d)}),JSON.stringify(o.value)!==JSON.stringify(L)&&(S=!0)}return{shouldFixColumns:S,modelColumnsOrderingLocal:L}},T=()=>{const{shouldFixColumns:L,modelColumnsOrderingLocal:S}=A();L&&t("changeColumnsOrdering",{modelColumnsOrdering:S,shouldFixColumns:L})};return e.watch(s,()=>{T()},{deep:!0}),{changeColumnsOrdering:l,checkColumnsOrdering:A}}function H0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"data"),E=e.toRef(_,"isTree"),a=e.toRef(_,"keyChildren"),s=e.toRef(_,"keyCountAllRowsInData"),o=e.computed(()=>J_(n.value)),l=e.computed(()=>p_(n.value));return{countAllRowsLocal:e.computed(()=>t_(t.value)?o.value?+n_(n.value,s.value):l.value?E.value?dc({array:n.value,keyChildren:a.value}):n.value.length:n.value.length||0:t.value)}}function x0({tableRef:_=e.ref(void 0)}){return{scrollToTable:()=>{var E;if(_.value&&((E=_.value)!=null&&E.getBoundingClientRect)){let s=_.value.getBoundingClientRect().top+window.scrollY-window.innerHeight/2;s<0&&(s=0),document.documentElement.scrollTop=s}},setFocusToTable:()=>{_.value&&(_.value.setAttribute("tabindex","-1"),_.value.focus(),_.value.removeAttribute("tabindex"))}}}function q0(_,{emit:t},{checkColumnsOrdering:n=()=>{},checkVisibleColumns:E=()=>{},modelColumnsVisibleLocal:a=e.ref({})}){const s=e.toRef(_,"modelColumnsVisible"),o=e.toRef(_,"columns");return{initTable:()=>{const{shouldFixColumns:A,modelColumnsOrderingLocal:T}=n();let L=!1;Ca(s.value)?a.value=e_(s.value):(L=!0,a.value=nR(o.value),E()),t("initTable",e_({columnsOrdering:{model:T,shouldFix:A},columnsVisible:{model:a.value,shouldFix:L}}))}}}function W0(_,{emit:t},{closePreviewAll:n=()=>{},scrollToTable:E=()=>{},setFocusToTable:a=()=>{},viewCurrent:s=e.computed(()=>({}))}){const o=e.toRef(_,"isTree"),l=e.toRef(_,"offsetStart"),A=e.toRef(_,"pagination"),T=e.ref(void 0),L=e.ref(void 0),S=()=>{T.value=A.value.limitStart||10,L.value=l.value},c=e.computed(()=>{var I;return o.value?!1:(I=A.value)!=null&&I.use?s.value?s.value.usePagination||!1:!0:!1}),f=e.computed(()=>A.value.position==="top"||A.value.position==="y"),d=e.computed(()=>A.value.position==="bottom"||A.value.position==="y"||!f.value);return{changeLimit:I=>{a(),E(),T.value=I,L.value=l.value,t("changeLimit",{offset:L.value,limit:I}),n()},changeOffset:I=>{let O,p;J_(I)?(O=I.offset,p=I.reload):(O=I,p=!0),p&&(a(),E()),L.value=O,t("changeOffset",{offset:O,limit:T.value}),p&&n()},initLocalVars:S,limit:T,offset:L,usePaginationBottom:d,usePaginationLocal:c,usePaginationTop:f}}function k0({columnsOrdered:_=e.ref([]),isMobile:t=e.ref(!1),modelColumnsVisibleLocal:n=e.ref({})}){return{allVisibleMobileColumns:e.computed(()=>t.value?ce(_.value,a=>a.isRender!==!1&&n.value[a.id]!==!1):[])}}function K0(_,{emit:t},{checkVisibleColumns:n=()=>{},isMultipleActionsActive:E=e.ref(void 0),rowsLocalAll:a=e.computed(()=>[]),rowsLocalLength:s=e.computed(()=>0)}){const o=e.toRef(_,"id"),l=e.toRef(_,"multipleActions"),A=e.ref(void 0),T=e.ref({}),L=e.ref(!1),S=e.computed(()=>l.value.length>0),c=e.computed(()=>U_(n_(A.value,"isHiddenCallback"))),f=e.computed(()=>ce(a.value,(B,y)=>T.value[y])),d=()=>{T.value={}},R=()=>{E.value=!1,A.value=void 0,L.value=!1,d()},C=()=>{if(window.isScrollDisabled)return;const B=rR({tableId:o.value});Ce({selector:`#${B}`})},I=({isActive:B,action:y}={})=>{if(B){E.value=!0,A.value=y,setTimeout(()=>{n(),C()}),t("toggleMultipleActions",{isActive:B,action:y});return}E.value?R():E.value=!0,setTimeout(()=>{n(),C()}),t("toggleMultipleActions",{isActive:B,action:y})},O=e.computed(()=>Ca(T.value)),p=e.computed(()=>s.value>0&&s.value===O.value),U=e.computed(()=>O.value>0);return{areAllRowsSelected:L,areAllVisibleRowsSelected:p,areSomeRowsSelected:U,closeMultipleActionsActive:R,currentMultipleActions:A,hasMultipleActions:S,selectedRows:f,selectedRowsIndexes:T,setEmptySelectedRowsIndexes:d,setSelectedRowsIndexes:({rowIndex:B,isAll:y})=>{if(y){if(U.value)d();else{const Y={};c.value?Rn(s.value,b=>{A.value.isHiddenCallback({row:a.value[b],rowIndex:b})||(Y[b]=!0)}):Rn(s.value,b=>{Y[b]=!0}),T.value=Y}return}T.value[B]?delete T.value[B]:T.value[B]=!0},toggleBtnAllRows:()=>{L.value=!L.value,L.value&&d()},toggleMultipleActionsActive:I}}function X0(_,{emit:t},{aTableRef:n=e.ref({}),previewBoxWidthRemLocal:E=e.computed(()=>0),tableGrandparentRef:a=e.ref({})}){const{previewRef:s,removePreviewRef:o}=SR(),l=200,A=50;let T,L=0,S=0,c=0;const f=()=>{var b;if(!((b=n.value)!=null&&b.getBoundingClientRect))return;S=n.value.getBoundingClientRect().left},d=({clientWidth:Y})=>{L=Y,T=Y/100*A,f()},R=({clientWidthLocal:Y,clientXTableParent:b,previewBoxWidth:$})=>{if(!n.value)return;const M=Y-b-$;n.value.style.width=`${M}px`},C=({clientX:Y=0,previewRef:b,previewBoxWidth:$=0})=>{let M=$||L-Y;M<l?M=l:M>T&&(M=T),R({clientWidthLocal:L,clientXTableParent:S,previewBoxWidth:M}),b&&(b.style.width=`${M}px`)},I=({previewRef:Y})=>{n_(Y,"style.removeProperty")&&Y.style.removeProperty("width"),n_(n,"value.style.removeProperty")&&n.value.style.removeProperty("width")},O=({previewRef:Y})=>{L=document.documentElement.clientWidth,c=n_(a,"value.offsetWidth",0),f(),C({previewRef:Y,previewBoxWidth:E.value})},p=({previewRef:Y,isOpen:b})=>{b?O({previewRef:Y}):I({previewRef:Y})},U=({previewRightWidth:Y})=>{t("mouseupResizePreviewRight",{previewRightWidth:Y})},D=()=>{O({previewRef:s.value})},V=new ResizeObserver(gr(Y=>{const b=Y[0].contentRect;c!==b.width&&(c=b.width,D())},300)),B=()=>{V.observe(a.value)},y=()=>{V.unobserve(a.value)};return e.onBeforeUnmount(()=>{o(),y()}),{addEventListenerWindowResize:B,mousedownResizePreviewRight:d,mousemoveResizePreviewRight:C,mouseupResizePreviewRight:U,removeEventListenerWindowResize:y,togglePreviewResize:p}}function j0(_,t,{aTableRef:n=e.ref({}),isMobile:E=e.ref(void 0),previewBoxWidthRemLocal:a=e.computed(()=>0),rowsLocalAll:s=e.computed(()=>[]),tableGrandparentRef:o=e.ref({})}){const{isDropdownGlobalOpen:l}=NT(),{addEventListenerWindowResize:A,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:L,mouseupResizePreviewRight:S,removeEventListenerWindowResize:c,togglePreviewResize:f}=X0(_,t,{aTableRef:n,previewBoxWidthRemLocal:a,tableGrandparentRef:o}),d=e.toRef(_,"keyId"),R=e.toRef(_,"preview"),C=e.toRef(_,"id"),I=t.emit,O=e.ref({}),p=e.ref(void 0),U=e.ref(void 0),D=e.computed(()=>!!R.value),V=({rowIndex:l_})=>{window.isScrollDisabled||setTimeout(()=>{const N_=`#${C.value}_${l_}`;Ce({selector:N_})})},B=()=>{window.isScrollDisabled||setTimeout(()=>{const l_=`#${aR({tableId:C.value})}`;Ce({selector:l_})})},y=e.computed(()=>R.value==="right"||E.value),Y=e.computed(()=>!t_(p.value)),b=()=>{V({rowIndex:p.value}),I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),U.value=p.value,p.value=void 0,c()},$=()=>{I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),U.value=void 0,p.value=void 0,c()},M=e.computed(()=>R.value==="down"),W=({rowIndex:l_,row:N_})=>{const L_=Zi({row:N_,rowIndex:l_,keyId:d.value});delete O.value[L_]},H=()=>{O.value={}},w=()=>{$(),H()},K=({rowIndex:l_,row:N_}={})=>{y.value?b():M.value&&W({rowIndex:l_,row:N_})},x=({rowIndex:l_})=>{!E.value&&w_(p.value)&&A(),I("togglePreview",{row:s.value[l_],rowIndex:l_,typeToggle:"open"}),p.value=l_,U.value=void 0,B()},X=({rowIndex:l_})=>{p.value===l_?b():x({rowIndex:l_})},r_=({rowIndex:l_,row:N_})=>{const L_=Zi({row:N_,rowIndex:l_,keyId:d.value});O.value[L_]?delete O.value[L_]:O.value[L_]=!0};return{closePreview:K,closePreviewAll:w,hasPreview:D,isPreviewRightOpen:Y,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:L,mouseupResizePreviewRight:S,onTogglePreview:({row:l_,rowIndex:N_})=>{if(!l.value){if(y.value){X({rowIndex:N_});return}M.value&&r_({row:l_,rowIndex:N_})}},previewDownRowIds:O,previewRightRowIndex:p,previewRightRowIndexLast:U,togglePreviewResize:f}}function z0(_,{dataSorted:t=e.computed(()=>[]),limit:n=e.ref(0),offset:E=e.ref(0),setEmptySelectedRowsIndexes:a=()=>{},usePaginationLocal:s=e.computed(()=>!1)}){const o=e.toRef(_,"clearSelectedRowsOnDataChange"),l=e.toRef(_,"pagination"),A=e.toRef(_,"rowsCountRenderPerTick"),T=e.ref([]),L=e.ref([]);let S=!0,c=0,f;const d=e.computed(()=>{if(n.value&&!l.value.isOutside&&s.value){const y=E.value,Y=y+n.value;return t.value.slice(y,Y)}return t.value}),R=e.computed(()=>d.value),C=e.computed(()=>R.value.length),I=e.computed(()=>!!C.value),O=()=>{const y=c*A.value,Y=y+A.value;Ct(d.value.slice(y,Y),b=>L.value.push(b)),c++},p=()=>{f=setInterval(()=>{c*A.value>=d.value.length?clearInterval(f):O()})},U=()=>{clearInterval(f)},D=({row:y,rowIndex:Y})=>{Y>L.value.length-1||(L.value[Y]=y)},V=({row:y})=>{L.value.unshift(y)},B=({index:y})=>{L.value.splice(y,1)};return e.watch(d,y=>{Br(y,T.value)||(T.value=[...y],!S&&o.value&&a(),S=!1,L.value=[],c=0,U(),A.value>0?(O(),p()):L.value=d.value)},{immediate:!0,deep:!0}),{addRow:V,deleteRow:B,hasRows:I,rowsLocal:L,rowsLocalAll:R,rowsLocalLength:C,stopRenderRows:U,updateRow:D}}function J0(_,{emit:t},{columnActionsWidthLocal:n=e.computed(()=>0),columnActionsWidthMinLocal:E=e.computed(()=>0),columnsOrdered:a=e.computed(()=>[]),columnsScrollInvisible:s=e.ref([]),columnWidthDefaultRemLocal:o=e.computed(()=>0),indexFirstScrollInvisibleColumn:l=e.ref(void 0),isMobile:A=e.ref(!1),isMultipleActionsActive:T=e.ref(void 0),modelColumnsVisibleLocal:L=e.ref({}),modelIsTableWithoutScroll:S=e.ref(!1),modelIsTableWithoutScrollComputed:c=e.computed(()=>!1)}){const f=e.toRef(_,"isActionColumnVisible"),d=e.toRef(_,"isSimpleTable"),R=e.toRef(_,"useRem"),{scalePxWithRem:C}=or(),I=e.ref(void 0),O=e.ref(0),p=e.ref(void 0);let U=!1;const D=20,V=x=>R.value?C(x):x,B=e.computed(()=>f.value?E.value:0),y=e.computed(()=>{const x=T.value?E.value:0,X=d.value?0:D;return x+X}),Y=({sumGrows:x=0,freeSpaceWidth:X=0})=>{x>0?O.value=X/x:O.value=0},b=()=>{if(t_(l.value)||a.value.length<l.value)s.value=[];else{const x=[];for(let X=l.value;X<a.value.length;X++){const r_=a.value[X];Co({column:r_,modelColumnsVisibleLocal:L.value})&&x.push(e_(r_))}s.value=x}},$=()=>{s.value=[],O.value=0,l.value=1e3,p.value=0},M=()=>{if(A.value||p.value===0){$();return}if(w_(p.value))return;const x=p.value-y.value-B.value,X=p.value-y.value-n.value;let r_=0,h_=0,l_=0,N_=!1;if(j(a.value,m_=>{if(!Co({column:m_,modelColumnsVisibleLocal:L.value})){h_++;return}const Q=+V(m_.width)||o.value;if(r_+Q>x)return N_=!0,!1;r_+=Q,h_++,l_+=t_(m_.grow)?1:m_.grow}),N_&&r_>X)for(let m_=h_-1;m_>=0;m_--){h_--;const Q=a.value[h_];if(!Co({column:Q,modelColumnsVisibleLocal:L.value}))continue;const R_=+V(Q.width)||o.value;if(r_-=R_,l_-=t_(Q.grow)?1:Q.grow,r_<=X)break}let L_=0;const G_=N_?X:x;(c.value||h_===a.value.length)&&(L_=G_-r_),l.value=h_,Y({sumGrows:l_,freeSpaceWidth:L_}),b()},W=({entries:x,forceAdjust:X})=>{const r_=x[0].contentRect;(X||p.value>r_.width+D||p.value<r_.width-D)&&(U||(U=!0,p.value=r_.width,M(),U=!1))},H=new ResizeObserver(gr(x=>{w_(p.value)?W({entries:x,forceAdjust:!0}):W({entries:x})},300)),w=x=>{x?(H.unobserve(I.value),$()):(H.observe(I.value),S.value&&M())},K=x=>{S.value=x,t("updateModelIsTableWithoutScroll",x),S.value&&M()};return e.onMounted(()=>{A.value||H.observe(I.value)}),e.onBeforeUnmount(()=>{H.unobserve(I.value)}),e.watch(a,()=>{M()}),{aTableRef:I,changeModelIsTableWithoutScroll:K,checkVisibleColumns:M,columnsVisibleAdditionalSpaceForOneGrow:O,onWatchMobileScrollControl:w}}function Z0(_){const t=e.toRef(_,"hasMobile"),n=e.toRef(_,"isActionColumnVisible"),E=e.toRef(_,"isActionIconVisible"),a=e.toRef(_,"isColumnsDnd"),s=e.toRef(_,"isSimpleTable"),o=e.toRef(_,"modelIsTableWithoutScrollStart"),l=e.toRef(_,"rowActions"),A=e.ref(void 0),T=()=>{A.value=o.value},{isMobileWidth:L}=Dt(),S=e.computed(()=>s.value?l.value&&!!l.value.length&&n.value:n.value),c=e.computed(()=>!!(E.value&&!s.value)),f=e.computed(()=>!!(a.value&&!s.value)),d=e.computed(()=>t.value?!!L.value:!1),R=e.computed(()=>s.value?!1:A.value);return{initModelIsTableWithoutScroll:T,isActionColumnVisibleLocal:S,isActionIconVisibleLocal:c,isColumnsDndLocal:f,isMobile:d,modelIsTableWithoutScroll:A,modelIsTableWithoutScrollComputed:R}}function Q0(_,{viewCurrent:t=e.computed(()=>({}))}){const n=e.toRef(_,"data"),E=e.toRef(_,"isSortingOutside"),a=e.toRef(_,"modelSort"),s=e.toRef(_,"useAdditionalSorting"),o=e.ref([]),l=e.computed(()=>s.value?t.value?t.value.useAdditionalSorting||!1:!0:!1),A=()=>{ue(a.value)?o.value=[a.value]:p_(a.value)&&(o.value=e_(a.value))},T=e.computed(()=>{const S={models:[],directions:[]};return o.value.length&&j(o.value,c=>{let f="asc",d=c;GA(c,"-")&&(f="desc",d=c.slice(1)),S.models.push(d),S.directions.push(f)}),S}),L=e.computed(()=>o.value.length&&!E.value?Fs(n.value||[],T.value.models,T.value.directions):n.value||[]);return e.watch(a,()=>{A()}),{dataSorted:L,initModelSort:A,modelSortLocal:o,useAdditionalSortingLocal:l}}function _1(_,{emit:t},{modelSortLocal:n=e.ref([]),closePreviewAll:E=()=>{}}){const a=e.toRef(_,"id"),s=e.toRef(_,"isSortingMultiColumn"),o=e.toRef(_,"sortingMultiColumnKey"),l=e.computed(()=>`${o.value}Key`),A=c=>s.value&&c[l.value],T=({sortId:c})=>{const f=n.value.indexOf(c);if(f!==-1){n.value.splice(f,1,`-${c}`);return}const d=n.value.indexOf(`-${c}`);if(d!==-1){n.value.splice(d,1);return}n.value.push(c)},L=({sortId:c})=>{if(n.value.indexOf(c)!==-1){n.value=[`-${c}`];return}if(n.value.indexOf(`-${c}`)!==-1){n.value=[];return}n.value=[c]};return{changeModelSort:({sortId:c,$event:f,modelAll:d})=>{d?n.value=d:A(f)?T({sortId:c}):L({sortId:c}),t("changeSorting",{modelSort:e_(n.value)}),Ve.$emit("changeTableSorting",{modelSort:e_(n.value),tableId:a.value}),E()}}}function e1(_,{isMobile:t=e.ref(void 0),modelIsTableWithoutScrollComputed:n=e.computed(()=>{})}){const E=e.toRef(_,"rowActionsSticky");return{isRowActionsStickyLocal:e.computed(()=>!!(!t.value&&E.value&&!n.value))}}function t1(_,{countNotHiddenColumns:t=e.computed(()=>-1),isMobile:n=e.ref(!1)}){const E=e.toRef(_,"id"),a=e.toRef(_,"isLabelVisible"),s=e.computed(()=>{const A={};return n.value||(A.role="table",A["aria-colcount"]=t.value),A}),o=e.computed(()=>n.value?"list":"rowgroup"),l=e.computed(()=>{if(a.value)return sR({tableId:E.value})});return{tableChildRole:o,tableLabelId:l,tableRoleAttributes:s}}function n1(_,{emit:t},{modelColumnsVisibleLocal:n=e.ref({}),checkVisibleColumns:E=()=>{}}){return{changeModelColumnsVisible:s=>{n.value=s,t("update:modelColumnsVisible",e_(n.value)),E()}}}function E1(_){const t=e.toRef(_,"texts");return{emptyText:e.computed(()=>w_(t.value.empty)?"_A_TABLE_EMPTY_TEXT_":t.value.empty)}}function a1(){const _=e.ref([]),t=e.ref(void 0),n=e.ref(void 0),E=e.ref({}),a=e.ref(void 0),s=e.ref(void 0);return{columnsScrollInvisible:_,indexFirstScrollInvisibleColumn:t,isMultipleActionsActive:n,modelColumnsVisibleLocal:E,tableGrandparentRef:a,tableRef:s}}function r1(_,{emit:t},{closePreviewAll:n=()=>{}}){const E=e.toRef(_,"views"),a=e.toRef(_,"modelFilters"),s=e.toRef(_,"modelView"),o=e.computed(()=>Ra(E.value,"id")),l=e.computed(()=>o.value[s.value]),A=e.computed(()=>E.value.length>1),T=()=>{if(A.value){const c=_r(E.value,["active",!0]);let f=E.value[0].id;c&&(f=c.id),t("updateView",{_modelView:f,view:o.value[f],modelFilters:a.value,init:!0})}},L=c=>{n(),t("updateView",{_modelView:c,view:o.value[c],modelFilters:a.value})},S=e.computed(()=>!l.value||l.value.type==="table");return{hasViews:A,initViewCurrent:T,isViewTableVisible:S,updateViewCurrent:L,viewCurrent:l}}function s1(_){const t=e.toRef(_,"columnActionsWidth"),n=e.toRef(_,"columnActionsWidthDefaults"),E=e.toRef(_,"columnActionsWidthMin"),a=e.toRef(_,"columnWidthDefault"),s=e.toRef(_,"previewBoxWidth"),o=e.toRef(_,"useRem"),{scalePxWithRem:l}=or(),A=e.computed(()=>o.value?l(t.value):t.value),T=e.computed(()=>o.value?l(E.value):E.value),L=e.computed(()=>o.value?l(a.value):a.value),S=e.computed(()=>o.value?l(s.value):s.value);return{columnActionsWidthDefaultsRemLocal:e.computed(()=>o.value?{default:l(n.value.default||170),min:l(n.value.min||50),onePlusDropdown:l(n.value.onePlusDropdown||320),onePlusDropdownMin:l(n.value.onePlusDropdownMin||200),btnGroupMaxWidth:l(n.value.btnGroupMaxWidth||180)}:n.value),columnActionsWidthMinRemLocal:T,columnActionsWidthRemLocal:A,columnWidthDefaultRemLocal:L,previewBoxWidthRemLocal:S}}function o1(_,{isMobile:t=e.computed(()=>!1)}){const n=e.toRef(_,"pagination");return{paginationModes:e.computed(()=>{var a,s,o,l;return t.value?((s=(a=n.value)==null?void 0:a.modes)==null?void 0:s.mobile)||{perPage:{mode:"select",position:0,showTextCountFromTo:!1},pagination:{mode:"short",position:1}}:((l=(o=n.value)==null?void 0:o.modes)==null?void 0:l.desktop)||{perPage:{mode:"group",position:0,showTextCountFromTo:!0},pagination:{mode:"normal",position:1}}})}}const i1={name:"ATable",props:{additionalSortingColumns:{type:Array,required:!1,default:()=>[]},clearSelectedRowsOnDataChange:{type:Boolean,required:!1,default:!0},columnActionsOnePlusDropdownOptions:{type:Object,required:!1,default:()=>({actionsClasses:["a_btn a_btn_primary a_text_truncate"],btnGroupClass:"a_btn_group a_btn_group_table",hasDividerBeforeDropdown:!1,indexFirstDropdownAction:1,indexFirstDropdownActionMobile:1,minDropdownActions:1})},columnActionsView:{type:String,required:!1,default:"dropdown",validator:_=>["onePlusDropdown","onePlusDropdownEmptyPlace","dropdown"].indexOf(_)!==-1},columnActionsWidth:{type:Number,required:!1,default:void 0},columnActionsWidthDefaults:{type:Object,required:!1,default:()=>({default:170,min:50,onePlusDropdown:320,onePlusDropdownMin:200,btnGroupMaxWidth:180})},columnActionsWidthMin:{type:Number,required:!1,default:void 0},columns:{type:Array,required:!0},columnsDefaultValue:{type:[String,Number],required:!1,default:""},columnWidthDefault:{type:Number,required:!1,default:250},countAllRows:{type:Number,required:!1,default:void 0},countVisibleMobileColumns:{type:Number,required:!1,default:4,validator:_=>_>0},borderType:{type:String,required:!1,default:()=>Zr.value.propsDefault.borderType,validator:_=>["bordered","innerBordered"].indexOf(_)!==-1},data:{type:[Array,Object,Promise],required:!1},disabledActions:{type:Boolean,required:!1},disabledMultipleActions:{type:Boolean,required:!1},disabledOptions:{type:Boolean,required:!1},disabledPreview:{type:Boolean,required:!1},disabledPreviewRowCallback:{type:Function,required:!1},disabledRowActions:{type:Boolean,required:!1},disabledSort:{type:Boolean,required:!1},disabledViews:{type:Boolean,required:!1},extra:{type:Object,required:!1,default:void 0},hasMobile:{type:Boolean,required:!1,default:!0},hasScrollClass:{type:Boolean,required:!1,default:!0},id:{type:String,required:!1,default:()=>Ee("a_table")},isActionColumnVisible:{type:Boolean,required:!1,default:!1},isActionIconVisible:{type:Boolean,required:!1,default:!0},isColumnsDnd:{type:Boolean,required:!1,default:!1},isLabelVisible:{type:Boolean,required:!1,default:!0},isLoadingMultipleActions:{type:Boolean,required:!1},isLoadingOptions:{type:Boolean,required:!1},isLoadingTable:{type:Boolean,required:!1},isQuickSearch:{type:Boolean,required:!1},isSimpleTable:{type:Boolean,required:!1,default:!1},isSortingMultiColumn:{type:Boolean,required:!1,default:!1},isSortingOutside:{type:Boolean,required:!1},isTree:{type:Boolean,required:!1},isTreeCollapsible:{type:Boolean,required:!1,default:!0},isTreeOpened:{type:Boolean,required:!1},keyCountAllRowsInData:{type:String,required:!1,default:"count"},keyId:{type:String,required:!1,default:void 0},keyChildren:{type:String,required:!1,default:"children"},label:{type:[String,Number],required:!1,default:""},labelClass:{type:[String,Object],required:!1,default:void 0},labelTag:{type:String,required:!1,default:"h2"},modelColumnsOrdering:{type:Array,required:!1,default:()=>[]},modelColumnsVisible:{type:Object,required:!1,default:()=>({})},modelIsTableWithoutScrollStart:{type:Boolean,required:!1,default:!1},modelQuickSearch:{type:String,required:!1,default:""},modelSort:{type:[String,Array],required:!1,default:()=>[]},modelView:{type:[String,Number],required:!1,default:void 0},multipleActions:{type:Array,required:!1,default:()=>[]},offsetStart:{type:Number,required:!1,default:0},pagination:{type:Object,required:!1,default:()=>({use:!1,maxPages:5,limitsPerPage:[],limitStart:10,disabled:!1,isOutside:!1,outside:!1,position:"bottom",modes:{desktop:{pagination:{mode:"normal",position:0},perPage:{mode:"inline",position:1}},mobile:{pagination:{mode:"loadMore"}}}})},preview:{type:String,required:!1,default:void 0,validator:_=>["right","down"].indexOf(_)!==-1},previewBoxWidth:{type:Number,required:!1,default:300},previewStyles:{type:[String,Object],required:!1,default:void 0},rowActions:{type:Array,required:!1,default:()=>[]},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowActionsSticky:{type:Boolean,required:!1,default:!0},rowClass:{type:[String,Object,Function],required:!1,default:void 0},rowsCountRenderPerTick:{type:Number,required:!1,default:25,validator:_=>fn(_)&&_>=0},rowsFooter:{type:Array,required:!1,default:()=>[]},showCount:{type:Boolean,required:!1,default:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1,default:!1},sortingMultiColumnKey:{type:String,required:!1,default:"shift",validator:_=>["shift","ctrl","alt"].indexOf(_)!==-1},sortingSequenceNumberClass:{type:[String,Object],required:!1,default:"a_badge"},tableActions:{type:Array,required:!1,default:()=>[]},tableActionsIndexFirstDropdownAction:{type:Number,required:!1,default:-1},tableActionsIndexFirstDropdownActionMobile:{type:Number,required:!1,default:0},texts:{type:Object,required:!1,default:()=>({empty:"_A_TABLE_EMPTY_TEXT_"})},useAdditionalSorting:{type:Boolean,required:!1,default:!0},useViewSlot:{type:Boolean,required:!1},useRem:{type:Boolean,required:!1,default:!0},valuesForColumnDefault:{type:Array,required:!1,default:()=>[null,void 0,""]},views:{type:Array,required:!1,default:()=>[]}},emits:["changeColumnsOrdering","changeColumnsVisible","changeLimit","changeOffset","changeSorting","mouseupResizePreviewRight","initTable","togglePreview","toggleMultipleActions","update:modelColumnsOrder","update:modelColumnsVisible","update:modelQuickSearch","updateModelIsTableWithoutScroll","updateView"],provide(){return{changeModelColumnsVisible:this.changeModelColumnsVisible,columnActionsOnePlusDropdownOptions:e.computed(()=>this.columnActionsOnePlusDropdownOptions),columns:e.computed(()=>this.columns),columnsDefaultValue:e.computed(()=>this.columnsDefaultValue),isLoadingOptions:e.computed(()=>this.isLoadingOptions),isLoadingTable:e.computed(()=>this.isLoadingTable),keyId:e.computed(()=>this.keyId),rowActions:e.computed(()=>this.rowActions),tableId:e.computed(()=>this.id),valuesForColumnDefault:e.computed(()=>this.valuesForColumnDefault),useRem:e.computed(()=>this.useRem)}},setup(_,t){const{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,columnWidthDefaultRemLocal:s,previewBoxWidthRemLocal:o}=s1(_),{initModelIsTableWithoutScroll:l,isActionColumnVisibleLocal:A,isActionIconVisibleLocal:T,isColumnsDndLocal:L,isMobile:S,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:f}=Z0(_),{countAllRowsLocal:d}=H0(_),{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:C,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,tableGrandparentRef:p,tableRef:U}=a1(),{scrollToTable:D,setFocusToTable:V}=x0({tableRef:U}),{hasViews:B,initViewCurrent:y,isViewTableVisible:Y,updateViewCurrent:b,viewCurrent:$}=r1(_,t,{closePreviewAll:Un}),{dataSorted:M,initModelSort:W,modelSortLocal:H,useAdditionalSortingLocal:w}=Q0(_,{viewCurrent:$}),{columnsOrderedFromSimpleTable:K,renderedGroupedColumns:x}=v0(_,{modelSort:H}),{columnIdsGroupByLocked:X,columnsFilteredForRender:r_,columnsFilteredForRenderIndexesMapping:h_,columnsOrdered:l_,countNotHiddenColumns:N_}=G0(_,{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:C,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:f,columnsOrderedFromSimpleTable:K}),{changeLimit:L_,changeOffset:G_,initLocalVars:m_,limit:Q,offset:R_,usePaginationBottom:o_,usePaginationLocal:b_,usePaginationTop:k_}=W0(_,t,{closePreviewAll:Un,scrollToTable:D,setFocusToTable:V,viewCurrent:$}),{addRow:ae,deleteRow:d_,hasRows:V_,rowsLocal:v_,rowsLocalAll:z,rowsLocalLength:T_,stopRenderRows:i_,updateRow:I_}=z0(_,{dataSorted:M,limit:Q,offset:R_,setEmptySelectedRowsIndexes:Ma,usePaginationLocal:b_}),{columnActionsBtnGroupMaxWidthStyle:D_,columnActionsWidthLocal:B_,columnActionsWidthMinLocal:F_,isColumnActionWide:K_}=F0(_,{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,isMobile:S,rowsLocal:v_}),{aTableRef:j_,changeModelIsTableWithoutScroll:Le,checkVisibleColumns:Ae,columnsVisibleAdditionalSpaceForOneGrow:De,onWatchMobileScrollControl:Q_}=J0(_,t,{columnActionsWidthLocal:B_,columnActionsWidthMinLocal:F_,columnsOrdered:l_,columnsScrollInvisible:R,columnWidthDefaultRemLocal:s,indexFirstScrollInvisibleColumn:C,isMobile:S,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:f}),{changeColumnsOrdering:oe,checkColumnsOrdering:fe}=w0(_,t,{checkVisibleColumns:Ae,columnIdsGroupByLocked:X,columnsFilteredForRenderIndexesMapping:h_}),{isRowActionsStickyLocal:me}=e1(_,{isMobile:S,modelIsTableWithoutScrollComputed:f}),{areAllRowsSelected:ge,areAllVisibleRowsSelected:st,areSomeRowsSelected:Fe,closeMultipleActionsActive:ot,currentMultipleActions:we,hasMultipleActions:nt,selectedRows:Be,selectedRowsIndexes:it,setEmptySelectedRowsIndexes:en,setSelectedRowsIndexes:$t,toggleBtnAllRows:Ot,toggleMultipleActionsActive:xt}=K0(_,t,{checkVisibleColumns:Ae,isMultipleActionsActive:I,rowsLocalAll:z,rowsLocalLength:T_}),{changeModelColumnsVisible:qt}=n1(_,t,{modelColumnsVisibleLocal:O,checkVisibleColumns:Ae}),{closePreview:cr,closePreviewAll:pn,hasPreview:he,isPreviewRightOpen:lt,onTogglePreview:tn,mousedownResizePreviewRight:nn,mousemoveResizePreviewRight:ra,mouseupResizePreviewRight:oE,previewDownRowIds:Ya,previewRightRowIndex:iE,previewRightRowIndexLast:dt,togglePreviewResize:En}=j0(_,t,{aTableRef:j_,isMobile:S,previewBoxWidthRemLocal:o,rowsLocalAll:z,tableGrandparentRef:p}),{tableChildRole:ga,tableLabelId:Ba,tableRoleAttributes:sa}=t1(_,{countNotHiddenColumns:N_,isMobile:S}),{allVisibleMobileColumns:$a}=k0({columnsOrdered:l_,isMobile:S,modelColumnsVisibleLocal:O}),{changeModelSort:Vt}=_1(_,t,{modelSortLocal:H,closePreviewAll:Un}),{paginationModes:Va}=o1(_,{isMobile:S}),{initTable:oa}=q0(_,t,{checkColumnsOrdering:fe,checkVisibleColumns:Ae,modelColumnsVisibleLocal:O}),{emptyText:ya}=E1(_);function Un(){pn()}function Ma(){en()}return e.watch(S,$_=>{Q_($_),Un()}),e.watch(K_,($_,v)=>{$_!==v&&Ae()}),e.provide("changeModelIsTableWithoutScroll",Le),e.provide("changeModelSort",Vt),e.provide("columnsOrdered",l_),e.provide("columnsFilteredForRender",r_),e.provide("columnsScrollInvisible",R),e.provide("columnWidthDefault",s),e.provide("columnsVisibleAdditionalSpaceForOneGrow",De),e.provide("columnActionsWidthLocal",B_),e.provide("columnActionsWidthMinLocal",F_),e.provide("currentMultipleActions",we),e.provide("hasPreview",he),e.provide("indexFirstScrollInvisibleColumn",C),e.provide("isActionColumnVisible",A),e.provide("isActionIconVisible",T),e.provide("isColumnsDnd",L),e.provide("isMobile",S),e.provide("isMultipleActionsActive",I),e.provide("modelIsTableWithoutScroll",f),e.provide("onTogglePreview",tn),e.provide("previewRightRowIndex",iE),e.provide("previewRightRowIndexLast",dt),e.provide("rowsLocalAll",z),e.provide("modelColumnsVisibleLocal",O),e.provide("changeColumnsOrdering",oe),m_(),l(),y(),oa(),W(),{addRow:ae,allVisibleMobileColumns:$a,areAllRowsSelected:ge,areAllVisibleRowsSelected:st,areSomeRowsSelected:Fe,aTableRef:j_,changeLimit:L_,changeModelColumnsVisible:qt,changeOffset:G_,checkVisibleColumns:Ae,closeMultipleActionsActive:ot,closePreview:cr,closePreviewAll:Un,columnActionsBtnGroupMaxWidthStyle:D_,columnsFilteredForRender:r_,columnsOrdered:l_,countAllRowsLocal:d,deleteRow:d_,emptyText:ya,hasMultipleActions:nt,hasRows:V_,hasViews:B,isMobile:S,isMultipleActionsActive:I,isPreviewRightOpen:lt,isRowActionsStickyLocal:me,isViewTableVisible:Y,limit:Q,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:f,modelSortLocal:H,mousedownResizePreviewRight:nn,mousemoveResizePreviewRight:ra,mouseupResizePreviewRight:oE,offset:R_,onTogglePreview:tn,paginationModes:Va,previewDownRowIds:Ya,previewRightRowIndex:iE,renderedGroupedColumns:x,rowsLocal:v_,rowsLocalAll:z,rowsLocalLength:T_,selectedRows:Be,selectedRowsIndexes:it,setEmptySelectedRowsIndexes:Ma,setSelectedRowsIndexes:$t,stopRenderRows:i_,tableChildRole:ga,tableGrandparentRef:p,tableLabelId:Ba,tableRef:U,tableRoleAttributes:sa,toggleBtnAllRows:Ot,toggleMultipleActionsActive:xt,togglePreviewResize:En,updateRow:I_,updateViewCurrent:b,useAdditionalSortingLocal:w,usePaginationBottom:o_,usePaginationLocal:b_,usePaginationTop:k_,viewCurrent:$}},data(){return{resolved:void 0,error:void 0}},computed:{hasRowsFooter(){return this.rowsFooter.length>0}},methods:{updateModelQuickSearch(_){this.$emit("update:modelQuickSearch",_)}},render(){return e.h("div",{ref:"tableGrandparentRef",class:["a_table__grandparent",{a_table_mobile:this.isMobile,a_table__grandparent_without_scroll:!this.hasScrollClass}]},[this.$slots.tablePrepend&&this.$slots.tablePrepend({id:this.id}),e.h("div",{ref:"aTableRef",class:["a_table__parent",{a_table__parent_scrollable:this.hasScrollClass&&!this.modelIsTableWithoutScrollComputed}]},[e.h(O0,{additionalSortingColumns:this.additionalSortingColumns,areAllRowsSelected:this.areAllRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,closeMultipleActionsActive:this.closeMultipleActionsActive,countAllRows:this.countAllRowsLocal,disabledActions:this.disabledActions,disabledMultipleActions:this.disabledMultipleActions,disabledSort:this.disabledSort,disabledViews:this.disabledViews,extra:this.extra,hasViews:this.hasViews,isLabelVisible:this.isLabelVisible,isLoadingMultipleActions:this.isLoadingMultipleActions,isQuickSearch:this.isQuickSearch,isSortingMultiColumn:this.isSortingMultiColumn,label:this.label,labelClass:this.labelClass,labelTag:this.labelTag,modelQuickSearch:this.modelQuickSearch,modelSort:this.modelSortLocal,modelView:this.modelView,multipleActions:this.multipleActions,selectedRows:this.selectedRows,showCount:this.showCount,tableActions:this.tableActions,tableActionsIndexFirstDropdownAction:this.tableActionsIndexFirstDropdownAction,tableActionsIndexFirstDropdownActionMobile:this.tableActionsIndexFirstDropdownActionMobile,useAdditionalSorting:this.useAdditionalSortingLocal,useViewSlot:this.useViewSlot,viewCurrent:this.viewCurrent,views:this.views,onUpdateViewCurrent:this.updateViewCurrent,onUpdateModelQuickSearch:this.updateModelQuickSearch,onToggleMultipleActionsActive:this.toggleMultipleActionsActive,onToggleBtnAllRows:this.toggleBtnAllRows},this.$slots),this.$slots.topPanelAppend?this.$slots.topPanelAppend():"",this.usePaginationLocal&&this.usePaginationTop&&this.hasRows?e.h(kT,{class:"a_table__pagination_top",disabled:this.pagination.disabled,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,modes:this.paginationModes,maxPages:this.pagination.maxPages,offset:this.offset,rowsLength:this.rowsLocalLength,totalCount:this.countAllRowsLocal,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isViewTableVisible&&e.h("div",{ref:"tableRef","aria-labelledby":this.isLabelVisible?this.tableLabelId:void 0,class:["a_table",{a_table_simple:this.isSimpleTable,a_table_bordered:this.borderType==="bordered",a_table_inner_bordered:this.borderType==="innerBordered"}],...this.tableRoleAttributes},[this.isSimpleTable?e.h(zw,{areAllRowsSelected:this.areAllRowsSelected,areAllVisibleRowsSelected:this.areAllVisibleRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,disabledOptions:this.disabledOptions,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSortLocal,rowsLocalLength:this.rowsLocalLength,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes,columnsForRender:this.renderedGroupedColumns}):e.h(n0,{areAllRowsSelected:this.areAllRowsSelected,areAllVisibleRowsSelected:this.areAllVisibleRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,disabledOptions:this.disabledOptions,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSortLocal,rowsLocalLength:this.rowsLocalLength,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes}),e.h("div",{class:"a_table__loading"},[e.h(wT,{isLoading:this.isLoadingTable},()=>[e.h("div",{class:"a_table__body",role:this.tableChildRole},{default:()=>this.rowsLocal.map((_,t)=>{const n=Zi({row:_,rowIndex:t,keyId:this.keyId});return e.h(hR,{key:n,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreview,disabledPreviewRowCallback:this.disabledPreviewRowCallback,disabledRowActions:this.disabledRowActions,isFooter:!1,isPreviewDownOpen:this.previewDownRowIds[n],isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:1,row:_,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:t,rowIndexPath:`${t}`,rowsLength:this.rowsLocal.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Xi,{data:E.row,keyLabel:E.column.keyLabel,filter:E.column.filter,filterParameters:E.column.filterParameters,defaultValue:E.column.defaultValue,tag:E.column.filterTag||"div"})],...this.$slots})})}),this.isViewTableVisible&&!this.hasRows&&e.h(f_,{class:"a_table__empty_text",text:this.emptyText}),this.hasRowsFooter&&e.h("div",{class:"a_table__footer",role:this.tableChildRole},this.rowsFooter.map((_,t)=>{const n=Zi({row:_,rowIndex:t,keyId:this.keyId});return e.h(hR,{key:n,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreview,disabledPreviewRowCallback:this.disabledPreviewRowCallback,disabledRowActions:this.disabledRowActions,isFooter:!0,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:1,row:_,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:t,rowIndexPath:`${t}`,rowsLength:this.rowsFooter.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Xi,{data:E.row,keyLabel:E.column.footerPath,filter:E.column.footerFilter,filterParameters:E.column.footerFilterParameters,defaultValue:E.column.footerDefaultValue})],...this.$slots})}))])])]),!this.isViewTableVisible&&this.viewCurrent&&this.$slots[this.viewCurrent.type]&&this.$slots[this.viewCurrent.type]({isLoading:this.isLoadingTable,rows:this.rowsLocalAll}),this.usePaginationLocal&&this.usePaginationBottom&&this.hasRows?e.h(kT,{class:"a_table__pagination_bottom",disabled:this.pagination.disabled,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,maxPages:this.pagination.maxPages,modes:this.paginationModes,offset:this.offset,rowsLength:this.rowsLocalLength,totalCount:this.countAllRowsLocal,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isPreviewRightOpen?e.h(l0,{countAllRows:this.countAllRowsLocal,isMobile:this.isMobile,isLoadingTable:this.isLoadingTable,limitPagination:this.limit,offsetPagination:this.offset,previewStyles:this.previewStyles,rowIndex:this.previewRightRowIndex,rows:this.rowsLocalAll,disabledPreviewRowCallback:this.disabledPreviewRowCallback,usePagination:!!this.usePaginationLocal,onClosePreview:this.closePreview,onMousedownResizePreviewRight:this.mousedownResizePreviewRight,onMousemoveResizePreviewRight:this.mousemoveResizePreviewRight,onMouseupResizePreviewRight:this.mouseupResizePreviewRight,onTogglePreview:this.onTogglePreview,onTogglePreviewResize:this.togglePreviewResize,"onUpdate:offset":this.changeOffset},this.$slots):""])])}};function IR(_){const t=e.toRef(_,"activeTabIdLocal"),n=e.toRef(_,"index"),E=e.toRef(_,"keyId"),a=e.toRef(_,"parentId"),s=e.toRef(_,"tab"),o=e.computed(()=>E.value?n_(s.value,E.value):n.value),l=e.computed(()=>t.value===o.value),A=e.computed(()=>`${a.value}_${n.value}`);return{idForContent:e.computed(()=>`${A.value}_content`),idLocal:A,isActive:l,tabIdLocal:o}}function l1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyContent");return{contentLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}const A1={name:"ATabsContent",props:{activeTabIdLocal:{type:[String,Number],required:!0},index:{type:Number,required:!0},keyContent:{type:String,required:!1,default:"content"},keyId:{type:String,required:!1,default:void 0},parentId:{type:String,required:!0},tab:{type:Object,required:!0}},setup(_){const{idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}=IR(_),{contentLocal:s}=l1(_);return{contentLocal:s,idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}},render(){let _=null;return this.tab.slotContent&&this.$slots[this.tab.slotContent]?_=this.$slots[this.tab.slotContent]({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.$slots.content?_=this.$slots.content({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.contentLocal&&(_=e.h(f_,{html:this.contentLocal})),e.h("div",{id:this.idForContent,"aria-labelledby":this.idLocal,class:["a_tabs__content",{a_tabs__content_show:this.isActive}],role:"tabpanel"},[_])}};function T1({isDisabled:_=e.computed(()=>!1)}){return{tabindexLocal:e.computed(()=>_.value?-1:0)}}function L1(_,{emit:t},{isDisabled:n=e.computed(()=>!1),tabIdLocal:E=e.computed(()=>"")}){const a=e.toRef(_,"index"),s=e.toRef(_,"tab"),o=A=>{n.value||t("changeTab",{$event:A,tab:s.value,tabId:E.value,index:a.value})};return{changeTabLocal:o,keydownTab:A=>{(A.keyCode===E_.enter||A.keyCode===E_.space)&&(o(A),A.stopPropagation(),A.preventDefault())}}}function S1(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"keyDisabled"),E=e.toRef(_,"tab");return{isDisabled:e.computed(()=>{if(t.value||n.value&&n_(E.value,n.value)===!0)return!0})}}function u1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyLabel");return{labelLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}function c1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyTitle");return{titleLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}const d1={name:"ATabsTab",props:{activeTabIdLocal:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1},index:{type:Number,required:!0},isTitleHtml:{type:Boolean,required:!1,default:void 0},keyDisabled:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:"label"},keyTitle:{type:String,required:!1,default:"title"},parentId:{type:String,required:!0},tab:{type:Object,required:!0},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1}},emits:["changeTab"],setup(_,t){const{idForContent:n,idLocal:E,isActive:a,tabIdLocal:s}=IR(_),{isDisabled:o}=S1(_),{tabindexLocal:l}=T1({isDisabled:o}),{changeTabLocal:A,keydownTab:T}=L1(_,t,{isDisabled:o,tabIdLocal:s}),{labelLocal:L}=u1(_),{titleLocal:S}=c1(_);return{changeTabLocal:A,idForContent:n,idLocal:E,isActive:a,isDisabled:o,keydownTab:T,labelLocal:L,tabindexLocal:l,tabIdLocal:s,titleLocal:S}},render(){let _=null;return this.tab.slotTab&&this.$slots[this.tab.slotTab]?_=this.$slots[this.tab.slotTab]({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.$slots.tab?_=this.$slots.tab({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.labelLocal&&(_=e.h(f_,{html:this.labelLocal,tag:"span"})),e.h("li",{class:["a_tabs__list__item",this.tab.classLi]},[e.h(O_,{id:this.idLocal,"aria-controls":this.idForContent,ariaDisabled:this.isDisabled,ariaSelected:this.isActive,class:["a_tabs__list__link",this.tab.class,{a_tabs__list__link_active:this.isActive,a_tabs__list__link_disabled:this.isDisabled}],classDefault:"",isTitleHtml:this.isTitleHtml,role:"tab",tabindex:this.tabindexLocal,tag:"a",titlePlacement:this.titlePlacement,type:"button",title:this.titleLocal,onClick:this.changeTabLocal,onKeydown:this.keydownTab},()=>[_])])}};function f1(_,{emit:t}){const n=e.toRef(_,"activeTabId"),E=e.toRef(_,"data"),a=e.toRef(_,"isChangeOutside"),s=e.toRef(_,"keyActive"),o=e.toRef(_,"keyId"),l=e.ref(void 0),A=()=>{t_(n.value)||(l.value=n.value)};return{activeTabIdLocal:l,changeTab:({$event:S,tab:c,tabId:f,index:d})=>{l.value!==f&&(a.value||(l.value=f),t("change",{$event:S,tab:c,tabId:f,index:d}))},initActiveTabIdLocal:()=>{A(),t_(l.value)&&(s.value&&(j(E.value,(S,c)=>{if(n_(S,s.value))return o.value?l.value=n_(S,o.value)||c:l.value=c,!1}),!t_(l.value))||(o.value?l.value=n_(E.value,`[0].${o.value}`)||0:l.value=0))},setActiveTabIdLocal:A}}const R1={name:"ATabs",props:{activeTabId:{type:[String,Number],required:!1,default:void 0},data:{type:Array,required:!0},disabled:{type:Boolean,required:!1,default:void 0},id:{type:String,required:!1,default:()=>Ee("a_tabs_")},isBoxed:{type:Boolean,required:!1,default:void 0},isChangeOutside:{type:Boolean,required:!1,default:void 0},isTitleHtml:{type:Boolean,required:!1,default:void 0},isVertical:{type:Boolean,required:!1,default:void 0},keyActive:{type:String,required:!1,default:"active"},keyContent:{type:String,required:!1,default:"content"},keyDisabled:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:"label"},keyTitle:{type:String,required:!1,default:"title"},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1}},emits:["change"],setup(_,t){const n=e.toRef(_,"activeTabId"),{activeTabIdLocal:E,changeTab:a,initActiveTabIdLocal:s,setActiveTabIdLocal:o}=f1(_,t);return s(),e.watch(n,()=>{o()}),{activeTabIdLocal:E,changeTab:a}},render(){return e.h("div",{id:this.id,class:["a_tabs",{a_tabs_boxed:this.isBoxed,a_tabs_vertical:this.isVertical}]},[e.h("div",{class:"a_tabs__box"},[e.h("ul",{class:"a_tabs__list",role:"tablist"},[this.data.map((_,t)=>e.h(d1,{key:t,activeTabIdLocal:this.activeTabIdLocal,disabled:this.disabled,index:t,isTitleHtml:this.isTitleHtml,keyDisabled:this.keyDisabled,keyId:this.keyId,keyLabel:this.keyLabel,keyTitle:this.keyTitle,parentId:this.id,tab:_,titlePlacement:this.titlePlacement,onChangeTab:this.changeTab},this.$slots))])]),e.h("div",{class:"a_tabs__contents"},[this.data.map((_,t)=>e.h(A1,{key:t,activeTabIdLocal:this.activeTabIdLocal,index:t,keyContent:this.keyContent,keyId:this.keyId,parentId:this.id,tab:_},this.$slots))])])}};function OR(_,t){return function(){return _.apply(t,arguments)}}const{toString:C1}=Object.prototype,{getPrototypeOf:JT}=Object,{iterator:Qi,toStringTag:pR}=Symbol,_l=(_=>t=>{const n=C1.call(t);return _[n]||(_[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wn=_=>(_=_.toLowerCase(),t=>_l(t)===_),el=_=>t=>typeof t===_,{isArray:Qr}=Array,_s=el("undefined");function ho(_){return _!==null&&!_s(_)&&_.constructor!==null&&!_s(_.constructor)&&vt(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const UR=wn("ArrayBuffer");function h1(_){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(_):t=_&&_.buffer&&UR(_.buffer),t}const I1=el("string"),vt=el("function"),NR=el("number"),Io=_=>_!==null&&typeof _=="object",O1=_=>_===!0||_===!1,tl=_=>{if(_l(_)!=="object")return!1;const t=JT(_);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pR in _)&&!(Qi in _)},p1=_=>{if(!Io(_)||ho(_))return!1;try{return Object.keys(_).length===0&&Object.getPrototypeOf(_)===Object.prototype}catch{return!1}},U1=wn("Date"),N1=wn("File"),D1=wn("Blob"),m1=wn("FileList"),P1=_=>Io(_)&&vt(_.pipe),b1=_=>{let t;return _&&(typeof FormData=="function"&&_ instanceof FormData||vt(_.append)&&((t=_l(_))==="formdata"||t==="object"&&vt(_.toString)&&_.toString()==="[object FormData]"))},Y1=wn("URLSearchParams"),[g1,B1,$1,V1]=["ReadableStream","Request","Response","Headers"].map(wn),y1=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oo(_,t,{allOwnKeys:n=!1}={}){if(_===null||typeof _>"u")return;let E,a;if(typeof _!="object"&&(_=[_]),Qr(_))for(E=0,a=_.length;E<a;E++)t.call(null,_[E],E,_);else{if(ho(_))return;const s=n?Object.getOwnPropertyNames(_):Object.keys(_),o=s.length;let l;for(E=0;E<o;E++)l=s[E],t.call(null,_[l],l,_)}}function DR(_,t){if(ho(_))return null;t=t.toLowerCase();const n=Object.keys(_);let E=n.length,a;for(;E-- >0;)if(a=n[E],t===a.toLowerCase())return a;return null}const Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mR=_=>!_s(_)&&_!==Tr;function ZT(){const{caseless:_,skipUndefined:t}=mR(this)&&this||{},n={},E=(a,s)=>{const o=_&&DR(n,s)||s;tl(n[o])&&tl(a)?n[o]=ZT(n[o],a):tl(a)?n[o]=ZT({},a):Qr(a)?n[o]=a.slice():(!t||!_s(a))&&(n[o]=a)};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&Oo(arguments[a],E);return n}const M1=(_,t,n,{allOwnKeys:E}={})=>(Oo(t,(a,s)=>{n&&vt(a)?_[s]=OR(a,n):_[s]=a},{allOwnKeys:E}),_),F1=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),G1=(_,t,n,E)=>{_.prototype=Object.create(t.prototype,E),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:t.prototype}),n&&Object.assign(_.prototype,n)},v1=(_,t,n,E)=>{let a,s,o;const l={};if(t=t||{},_==null)return t;do{for(a=Object.getOwnPropertyNames(_),s=a.length;s-- >0;)o=a[s],(!E||E(o,_,t))&&!l[o]&&(t[o]=_[o],l[o]=!0);_=n!==!1&&JT(_)}while(_&&(!n||n(_,t))&&_!==Object.prototype);return t},w1=(_,t,n)=>{_=String(_),(n===void 0||n>_.length)&&(n=_.length),n-=t.length;const E=_.indexOf(t,n);return E!==-1&&E===n},H1=_=>{if(!_)return null;if(Qr(_))return _;let t=_.length;if(!NR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=_[t];return n},x1=(_=>t=>_&&t instanceof _)(typeof Uint8Array<"u"&&JT(Uint8Array)),q1=(_,t)=>{const E=(_&&_[Qi]).call(_);let a;for(;(a=E.next())&&!a.done;){const s=a.value;t.call(_,s[0],s[1])}},W1=(_,t)=>{let n;const E=[];for(;(n=_.exec(t))!==null;)E.push(n);return E},k1=wn("HTMLFormElement"),K1=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,E,a){return E.toUpperCase()+a}),PR=(({hasOwnProperty:_})=>(t,n)=>_.call(t,n))(Object.prototype),X1=wn("RegExp"),bR=(_,t)=>{const n=Object.getOwnPropertyDescriptors(_),E={};Oo(n,(a,s)=>{let o;(o=t(a,s,_))!==!1&&(E[s]=o||a)}),Object.defineProperties(_,E)},j1=_=>{bR(_,(t,n)=>{if(vt(_)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const E=_[n];if(vt(E)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},z1=(_,t)=>{const n={},E=a=>{a.forEach(s=>{n[s]=!0})};return Qr(_)?E(_):E(String(_).split(t)),n},J1=()=>{},Z1=(_,t)=>_!=null&&Number.isFinite(_=+_)?_:t;function Q1(_){return!!(_&&vt(_.append)&&_[pR]==="FormData"&&_[Qi])}const _H=_=>{const t=new Array(10),n=(E,a)=>{if(Io(E)){if(t.indexOf(E)>=0)return;if(ho(E))return E;if(!("toJSON"in E)){t[a]=E;const s=Qr(E)?[]:{};return Oo(E,(o,l)=>{const A=n(o,a+1);!_s(A)&&(s[l]=A)}),t[a]=void 0,s}}return E};return n(_,0)},eH=wn("AsyncFunction"),tH=_=>_&&(Io(_)||vt(_))&&vt(_.then)&&vt(_.catch),YR=((_,t)=>_?setImmediate:t?((n,E)=>(Tr.addEventListener("message",({source:a,data:s})=>{a===Tr&&s===n&&E.length&&E.shift()()},!1),a=>{E.push(a),Tr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(Tr.postMessage)),nH=typeof queueMicrotask<"u"?queueMicrotask.bind(Tr):typeof process<"u"&&process.nextTick||YR,J={isArray:Qr,isArrayBuffer:UR,isBuffer:ho,isFormData:b1,isArrayBufferView:h1,isString:I1,isNumber:NR,isBoolean:O1,isObject:Io,isPlainObject:tl,isEmptyObject:p1,isReadableStream:g1,isRequest:B1,isResponse:$1,isHeaders:V1,isUndefined:_s,isDate:U1,isFile:N1,isBlob:D1,isRegExp:X1,isFunction:vt,isStream:P1,isURLSearchParams:Y1,isTypedArray:x1,isFileList:m1,forEach:Oo,merge:ZT,extend:M1,trim:y1,stripBOM:F1,inherits:G1,toFlatObject:v1,kindOf:_l,kindOfTest:wn,endsWith:w1,toArray:H1,forEachEntry:q1,matchAll:W1,isHTMLForm:k1,hasOwnProperty:PR,hasOwnProp:PR,reduceDescriptors:bR,freezeMethods:j1,toObjectSet:z1,toCamelCase:K1,noop:J1,toFiniteNumber:Z1,findKey:DR,global:Tr,isContextDefined:mR,isSpecCompliantForm:Q1,toJSONObject:_H,isAsyncFn:eH,isThenable:tH,setImmediate:YR,asap:nH,isIterable:_=>_!=null&&vt(_[Qi])};function Z_(_,t,n,E,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),E&&(this.request=E),a&&(this.response=a,this.status=a.status?a.status:null)}J.inherits(Z_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const gR=Z_.prototype,BR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(_=>{BR[_]={value:_}}),Object.defineProperties(Z_,BR),Object.defineProperty(gR,"isAxiosError",{value:!0}),Z_.from=(_,t,n,E,a,s)=>{const o=Object.create(gR);J.toFlatObject(_,o,function(L){return L!==Error.prototype},T=>T!=="isAxiosError");const l=_&&_.message?_.message:"Error",A=t==null&&_?_.code:t;return Z_.call(o,l,A,n,E,a),_&&o.cause==null&&Object.defineProperty(o,"cause",{value:_,configurable:!0}),o.name=_&&_.name||"Error",s&&Object.assign(o,s),o};const EH=null;function QT(_){return J.isPlainObject(_)||J.isArray(_)}function $R(_){return J.endsWith(_,"[]")?_.slice(0,-2):_}function VR(_,t,n){return _?_.concat(t).map(function(a,s){return a=$R(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function aH(_){return J.isArray(_)&&!_.some(QT)}const rH=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function nl(_,t,n){if(!J.isObject(_))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,C){return!J.isUndefined(C[R])});const E=n.metaTokens,a=n.visitor||L,s=n.dots,o=n.indexes,A=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function T(d){if(d===null)return"";if(J.isDate(d))return d.toISOString();if(J.isBoolean(d))return d.toString();if(!A&&J.isBlob(d))throw new Z_("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(d)||J.isTypedArray(d)?A&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function L(d,R,C){let I=d;if(d&&!C&&typeof d=="object"){if(J.endsWith(R,"{}"))R=E?R:R.slice(0,-2),d=JSON.stringify(d);else if(J.isArray(d)&&aH(d)||(J.isFileList(d)||J.endsWith(R,"[]"))&&(I=J.toArray(d)))return R=$R(R),I.forEach(function(p,U){!(J.isUndefined(p)||p===null)&&t.append(o===!0?VR([R],U,s):o===null?R:R+"[]",T(p))}),!1}return QT(d)?!0:(t.append(VR(C,R,s),T(d)),!1)}const S=[],c=Object.assign(rH,{defaultVisitor:L,convertValue:T,isVisitable:QT});function f(d,R){if(!J.isUndefined(d)){if(S.indexOf(d)!==-1)throw Error("Circular reference detected in "+R.join("."));S.push(d),J.forEach(d,function(I,O){(!(J.isUndefined(I)||I===null)&&a.call(t,I,J.isString(O)?O.trim():O,R,c))===!0&&f(I,R?R.concat(O):[O])}),S.pop()}}if(!J.isObject(_))throw new TypeError("data must be an object");return f(_),t}function yR(_){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(E){return t[E]})}function _L(_,t){this._pairs=[],_&&nl(_,this,t)}const MR=_L.prototype;MR.append=function(t,n){this._pairs.push([t,n])},MR.toString=function(t){const n=t?function(E){return t.call(this,E,yR)}:yR;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function sH(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function FR(_,t,n){if(!t)return _;const E=n&&n.encode||sH;J.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=J.isURLSearchParams(t)?t.toString():new _L(t,n).toString(E),s){const o=_.indexOf("#");o!==-1&&(_=_.slice(0,o)),_+=(_.indexOf("?")===-1?"?":"&")+s}return _}class GR{constructor(){this.handlers=[]}use(t,n,E){return this.handlers.push({fulfilled:t,rejected:n,synchronous:E?E.synchronous:!1,runWhen:E?E.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(E){E!==null&&t(E)})}}const vR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oH={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:_L,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},eL=typeof window<"u"&&typeof document<"u",tL=typeof navigator=="object"&&navigator||void 0,iH=eL&&(!tL||["ReactNative","NativeScript","NS"].indexOf(tL.product)<0),lH=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",AH=eL&&window.location.href||"http://localhost",ht={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eL,hasStandardBrowserEnv:iH,hasStandardBrowserWebWorkerEnv:lH,navigator:tL,origin:AH},Symbol.toStringTag,{value:"Module"})),...oH};function TH(_,t){return nl(_,new ht.classes.URLSearchParams,{visitor:function(n,E,a,s){return ht.isNode&&J.isBuffer(n)?(this.append(E,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function LH(_){return J.matchAll(/\w+|\[(\w*)]/g,_).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SH(_){const t={},n=Object.keys(_);let E;const a=n.length;let s;for(E=0;E<a;E++)s=n[E],t[s]=_[s];return t}function wR(_){function t(n,E,a,s){let o=n[s++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),A=s>=n.length;return o=!o&&J.isArray(a)?a.length:o,A?(J.hasOwnProp(a,o)?a[o]=[a[o],E]:a[o]=E,!l):((!a[o]||!J.isObject(a[o]))&&(a[o]=[]),t(n,E,a[o],s)&&J.isArray(a[o])&&(a[o]=SH(a[o])),!l)}if(J.isFormData(_)&&J.isFunction(_.entries)){const n={};return J.forEachEntry(_,(E,a)=>{t(LH(E),a,n,0)}),n}return null}function uH(_,t,n){if(J.isString(_))try{return(t||JSON.parse)(_),J.trim(_)}catch(E){if(E.name!=="SyntaxError")throw E}return(n||JSON.stringify)(_)}const po={transitional:vR,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const E=n.getContentType()||"",a=E.indexOf("application/json")>-1,s=J.isObject(t);if(s&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(wR(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(E.indexOf("application/x-www-form-urlencoded")>-1)return TH(t,this.formSerializer).toString();if((l=J.isFileList(t))||E.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return nl(l?{"files[]":t}:t,A&&new A,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),uH(t)):t}],transformResponse:[function(t){const n=this.transitional||po.transitional,E=n&&n.forcedJSONParsing,a=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(E&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?Z_.from(l,Z_.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],_=>{po.headers[_]={}});const cH=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dH=_=>{const t={};let n,E,a;return _&&_.split(`
|
|
206
|
+
</svg>`,CR={name:"ATableTd",props:{column:{type:Object,required:!0},columnIndex:{type:Number,required:!0},disabledPreview:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},level:{type:Number,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},showIconChildren:{type:Boolean,required:!1}},inject:["isMobile","rowsLocalAll"],setup(_){const{attributesForTd:t}=N0(_),{classForLink:n,isLink:E,toLocal:a}=cR(_),{hasSlot:s,slotName:o}=dR(_),{textOrHtmlRender:l}=fR(_);return{attributesForTd:t,classForLink:n,hasSlot:s,isLink:E,slotName:o,textOrHtmlRender:l,toLocal:a}},render(){const _=e.h("div",this.attributesForTd,[e.h("div",{class:["a_table__cell__child",this.column.class,this.column.classRow]},[this.showIconChildren?e.h(O_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:RR,type:"text"}):"",this.hasSlot&&this.$slots[this.slotName]?this.$slots[this.slotName]({column:this.column,columnIndex:this.columnIndex,level:this.level,row:this.row,rowIndex:this.rowIndex,rows:this.rowsLocalAll}):this.isLink&&this.toLocal?e.h(e.resolveComponent("RouterLink"),{class:[this.column.class,this.classForLink,this.column.classRow],to:this.toLocal},()=>[this.textOrHtmlRender]):this.textOrHtmlRender])]);return this.isMobile?[e.h(f_,{html:this.column.label,tag:"dt"}),e.h("dd",{},[_])]:_}},D0={name:"ATableListItem",inject:["rowsLocalAll"],props:{column:{type:Object,required:!0},columnIndex:{type:Number,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},isFooter:{type:Boolean,required:!1}},setup(_){const{classForLink:t,isLink:n,toLocal:E}=cR(_),{hasSlot:a,slotName:s}=dR(_),{textOrHtmlRender:o}=fR(_);return{classForLink:t,hasSlot:a,isLink:n,slotName:s,textOrHtmlRender:o,toLocal:E}},render(){return[e.h(f_,{text:this.column.label,tag:"dt"}),e.h("dd",null,this.hasSlot&&this.$slots[this.slotName]?this.$slots[this.slotName]({column:this.column,columnIndex:this.columnIndex,row:this.row,rowIndex:this.rowIndex,rows:this.rowsLocalAll}):this.isLink&&this.toLocal?[e.h(e.resolveComponent("RouterLink"),{class:[this.column.class,this.classForLink,this.column.classRow],to:this.toLocal},()=>[this.textOrHtmlRender])]:[this.textOrHtmlRender])]}};function m0(){const _=e.inject("columnsScrollInvisible"),t=e.inject("modelIsTableWithoutScroll"),n=e.computed(()=>_.value.length),E=e.computed(()=>t.value?n.value>0:!1);return{columnsScrollInvisibleText:e.computed(()=>n.value===1?"_A_TABLE_DROPDOWN_HIDE_FIELD_TEXT_":"_A_TABLE_DROPDOWN_HIDE_FIELDS_TEXT_{{count}}_"),countColumnsScrollInvisible:n,isColumnsScrollInvisibleDropdownVisible:E}}function P0(_){const t=e.toRef(_,"columnActionsView"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"rowIndexPath"),o=e.inject("columnActionsOnePlusDropdownOptions"),l=e.inject("rowActions"),A=e.inject("tableId"),T=e.computed(()=>{const b=s.value||a.value;return`${A.value}_action_${b}`}),L=e.computed(()=>w_(o.value.indexFirstDropdownAction)?1:o.value.indexFirstDropdownAction),S=({rowAction:b})=>{if(b.text)return b.text;if(U_(b.textCallback))return b.textCallback({row:E.value,rowIndex:a.value,rowAction:b})},c=({rowAction:b})=>{if(b.html)return b.html;if(U_(b.htmlCallback))return b.htmlCallback({row:E.value,rowIndex:a.value,rowAction:b})},f=({rowAction:b})=>{if(b.title)return b.title;if(U_(b.titleCallback))return b.titleCallback({row:E.value,rowIndex:a.value,rowAction:b})},d=({rowAction:b})=>b.disabled?b.disabled:U_(b.disabledCallback)?b.disabledCallback({row:E.value,rowIndex:a.value,rowAction:b}):!1,R=({rowAction:b})=>b.class?b.class:U_(b.classCallback)?b.classCallback({row:E.value,rowIndex:a.value,rowAction:b}):"",C=({rowAction:b})=>{if(b.iconLeft)return b.iconLeft;if(U_(b.iconLeftCallback))return b.iconLeftCallback({row:E.value,rowIndex:a.value,rowAction:b})},I=({rowAction:b})=>{if(b.iconRight)return b.iconRight;if(U_(b.iconRightCallback))return b.iconRightCallback({row:E.value,rowIndex:a.value,rowAction:b})},O=({rowAction:b})=>{if(ue(b.to))return b.to;if(J_(b.to)){const $=e_(b.to),M=$.params||{},W=$.query||{};if(b.to.nameDynamic&&!b.to.name){const H=n_(E.value,b.to.nameDynamic);H&&($.name=H)}if(b.to.paramsDynamic){let H=!1;if(j(b.to.paramsDynamic,(w,K)=>{const x=n_(E.value,w);if(w_(x))return H=!0,!1;M[K]=x}),H)return}if(b.to.queryDynamic){let H=!1;if(j(b.to.queryDynamic,(w,K)=>{const x=n_(E.value,w);if(w_(x))return H=!0,!1;W[K]=x}),H)return}return $.params=M,$.query=W,$}},p=({rowAction:b})=>b.href?b.href:U_(b.hrefCallback)?b.hrefCallback({row:E.value,rowIndex:a.value,rowAction:b}):!1,U=({rowAction:b})=>{if(b.extra)return b.extra;if(U_(b.extraCallback))return b.extraCallback({row:E.value,rowIndex:a.value,rowAction:b})},D=({rowAction:b})=>{if(b.textScreenReader)return b.textScreenReader;if(U_(b.textScreenReaderCallback))return b.textScreenReaderCallback({row:E.value,rowIndex:a.value,rowAction:b})},V=({rowActionIndexVisible:b})=>{if(t.value==="dropdown")return{id:T.value,ids:[T.value,A.value]};if(b<L.value){const $=`${T.value}_${b}`;return{buttonId:$,id:$,ids:[$,A.value]}}return{id:T.value,ids:[T.value,A.value]}},B=b=>{j(b,($,M)=>{eP(M,"Callback")&&(b[M]=void 0)})},y=e.computed(()=>{const b=[];let $=0;return j(e_(l.value),M=>{if(oR({rowAction:M,row:E.value,rowIndex:a.value})){if(M.type!=="divider"){const W=S({rowAction:M});W&&(M.text=W);const H=c({rowAction:M});H&&(M.html=H);const w=f({rowAction:M});w?M.title=w:W&&(M.title=W);const K=d({rowAction:M});K&&(M.disabled=K);const x=R({rowAction:M});x&&(M.class=x);const X=C({rowAction:M});X&&(M.iconLeft=X);const r_=I({rowAction:M});r_&&(M.iconRight=r_);const h_=U({rowAction:M});h_&&(M.extra=h_);const l_=D({rowAction:M});if(h_&&(M.textScreenReader=l_),M.type==="link"){const N_=O({rowAction:M});N_?M.to=N_:M.href=p({rowAction:M})}if(U_(M.callback)){const{buttonId:N_,id:L_,ids:G_}=V({rowActionIndexVisible:$});M.id=N_;const m_=M.callback;M.callback=()=>m_({row:E.value,rowIndex:a.value,id:L_,ids:G_,rowAction:M})}B(M),$++}b.push(M)}}),b}),Y=e.computed(()=>!n.value&&y.value.length>0);return{buttonActionsId:T,isRowActionsDropdownVisible:Y,rowActionsFiltered:y}}function b0(_){const t=e.toRef(_,"rowIndex");return{rowNumber:e.computed(()=>t.value+1)}}const Y0={name:"ATableTdAction",props:{columnActionsBtnGroupMaxWidthStyle:{type:String,required:!1,default:void 0},columnActionsView:{type:String,required:!0},disabledRowActions:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},isRowActionsStickyLocal:{type:Boolean,required:!0},row:{type:Object,required:!0},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowIndex:{type:Number,required:!0},rowIndexPath:{type:String,required:!1,default:void 0}},inject:["columnActionsOnePlusDropdownOptions","columnsScrollInvisible","tableId","useRem"],setup(_){const{isMobileWidth:t}=Dt(),{buttonActionsId:n,isRowActionsDropdownVisible:E,rowActionsFiltered:a}=P0(_),{columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:l}=m0(),{rowNumber:A}=b0(_),{stylesThTd:T}=lR();return{buttonActionsId:n,columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:l,isMobileWidth:t,isRowActionsDropdownVisible:E,rowActionsFiltered:a,rowNumber:A,stylesThTd:T}},render(){return e.h("div",{role:"cell",class:["a_table__td a_table__cell a_table__cell_action",{a_table__cell_action_sticky:this.isRowActionsStickyLocal}],...this.stylesThTd},[e.h("div",{class:["a_table__cell__child",this.rowActionsClass]},[this.isColumnsScrollInvisibleDropdownVisible&&e.h(nE,{buttonClass:"a_btn a_btn_link a_text_nowrap",buttonIconLeft:Nf,buttonIconClass:"a_table__cell_action__additional_icon",buttonTitle:"_A_TABLE_DROPDOWN_HIDE_FIELDS_TITLE_{{count}}_",buttonTextScreenReader:"_A_TABLE_DROPDOWN_HIDE_FIELDS_TITLE_{{count}}_",buttonText:this.columnsScrollInvisibleText,buttonTextClass:"a_table__cell_action__additional_text",buttonTextAriaHidden:!0,extra:{count:this.countColumnsScrollInvisible},dropdownClass:"a_p_0 a_overflow_x_hidden a_table__extra_dropdown",dropdownTag:"div",hasCaret:!1,floatingFlip:{use:!0,fallbackPlacements:["top-end","left"]},inBody:!0,placement:"bottom-end",menuWidth:600,isCloseByClickInside:!1,useRem:this.useRem},{dropdown:()=>[e.h("dl",{class:"a_list_dl a_list_dl_dt_right"},[this.columnsScrollInvisible.map((_,t)=>e.h(D0,{column:_,columnIndex:t,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))])]}),this.isRowActionsDropdownVisible||this.$slots.rowActions?e.h("div",{class:"a_table__cell_action__group"},[this.$slots.rowActions?this.$slots.rowActions({tableId:this.tableId,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):"",this.isRowActionsDropdownVisible?this.columnActionsView==="dropdown"||this.isMobileWidth&&this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile===0?e.h(nE,{id:this.buttonActionsId,actions:this.rowActionsFiltered,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:co,buttonTextScreenReader:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",buttonTitle:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",disabled:this.disabledRowActions,extra:{rowNumber:this.rowNumber},hasCaret:!1,inBody:!0,placement:"bottom-end",useRem:this.useRem},this.$slots):e.h(ji,{class:"a_d_inline_block",style:this.columnActionsBtnGroupMaxWidthStyle,actions:this.rowActionsFiltered,dropdownAttributes:{id:this.buttonActionsId,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:yn,buttonTextScreenReader:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",buttonTitle:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",extra:{rowNumber:this.rowNumber},hasCaret:!1,inBody:!0,placement:"bottom-end"},disabled:this.disabledRowActions,btnGroupClass:w_(this.columnActionsOnePlusDropdownOptions.btnGroupClass)?"a_btn_group a_btn_group_table":this.columnActionsOnePlusDropdownOptions.btnGroupClass,hasDividerBeforeDropdown:this.columnActionsOnePlusDropdownOptions.hasDividerBeforeDropdown||!1,indexFirstDropdownAction:w_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction,indexFirstDropdownActionMobile:w_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile,minDropdownActions:w_(this.columnActionsOnePlusDropdownOptions.minDropdownActions)?1:this.columnActionsOnePlusDropdownOptions.minDropdownActions,actionsClasses:this.columnActionsOnePlusDropdownOptions.actionsClasses||["a_btn a_btn_primary a_text_truncate"]},this.$slots):""]):""])])}};function g0(_,{hasChildren:t=e.computed(()=>!1),hasPreviewLocal:n=e.computed(()=>!1),rowClassChildren:E=e.computed(()=>{}),rowClassLevelChildren:a=e.computed(()=>{}),rowClassPreview:s=e.computed(()=>{}),toggleChildren:o=()=>{}}){const l=e.toRef(_,"disabledPreview"),A=e.toRef(_,"disabledPreviewRowCallback"),T=e.toRef(_,"isFooter"),L=e.toRef(_,"isTreeCollapsible"),S=e.toRef(_,"level"),c=e.toRef(_,"row"),f=e.toRef(_,"rowClass"),d=e.toRef(_,"rowIndex"),R=e.toRef(_,"rowIndexPath"),C=e.inject("isMobile"),I=e.inject("onTogglePreview"),O=e.inject("tableId"),p=e.computed(()=>{const $=T.value?"_footer":"",M=R.value||d.value;return`${O.value}${$}_${M}`}),U=e.computed(()=>U_(f.value)?f.value({level:S.value,row:c.value,rowindex:d.value}):f.value),D=e.computed(()=>["a_table__row a_table__body__row a_table__row_hover",E.value,a.value,s.value,U.value]),V=e.computed(()=>C.value?"listitem":"row"),B=e.computed(()=>U_(A.value)?A.value({row:c.value,rowIndex:d.value}):l.value),y=$=>{xw({$event:$,tagsName:["A","BUTTON","INPUT","LABEL"],classStop:"a_table__row"})||(t.value?o():n.value&&I({row:c.value,rowIndex:d.value}))},Y=$=>{$.keyCode===E_.enter&&y($)},b=e.computed(()=>(L.value&&t.value||n.value)&&!B.value?{tabindex:0,onClick:y,onKeydown:Y}:{});return{disabledPreviewRow:B,eventsLocal:b,roleLocal:V,rowClassComputed:D,rowHtmlId:p}}function B0(_,{emit:t}){const n=e.toRef(_,"areAllRowsSelected"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"selectedRowsIndexes"),o=e.inject("currentMultipleActions"),l=e.inject("isMultipleActionsActive"),A=e.computed(()=>!!s.value[a.value]||n.value),T=e.computed(()=>{if(l.value){if(U_(n_(o.value,"isHiddenCallback")))return o.value.isHiddenCallback({row:E.value,rowIndex:a.value});if(n.value)return!0}return!1}),L=e.computed(()=>A.value?"_A_TABLE_DESELECT_THIS_ROW_":"_A_TABLE_SELECT_THIS_ROW_");return{isCheckboxDisabled:T,isRowSelected:A,labelCheckbox:L,toggleCheckbox:()=>{T.value||t("setSelectedRowsIndexes",{rowIndex:a.value})}}}function $0(_){const t=e.toRef(_,"isTree"),n=e.toRef(_,"keyChildren"),E=e.toRef(_,"level"),a=e.toRef(_,"row"),s=e.toRef(_,"rowIndex"),o=e.toRef(_,"rowsLength"),l=e.computed(()=>{if(!n.value)return[];const c=n_(a.value,n.value);return p_(c)?c:[]}),A=e.computed(()=>l.value.length>0),T=e.computed(()=>E.value+1),L=e.computed(()=>t.value?{"aria-level":E.value,"aria-posinset":s.value+1,"aria-setsize":o.value}:{}),S=e.computed(()=>{if(t.value)return`a_table__row_level a_table__row_level_${E.value}`});return{ariaTreeAttributes:L,children:l,hasChildren:A,levelForChildren:T,rowClassLevelChildren:S}}function V0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isOneOfParentsClose"),E=e.toRef(_,"isTreeCollapsible"),a=e.toRef(_,"isTreeOpened"),s=e.ref(!1),o=e.computed(()=>{if(t.value)return s.value}),l=e.computed(()=>({a_table__row_has_children:t.value,a_table__row_hide:n.value,a_table__row_level_open:t.value&&s.value})),A=e.computed(()=>!!(n.value||!s.value));return{ariaExpanded:o,initIsChildrenOpen:()=>{(!E.value||a.value)&&(s.value=!0)},isOneOfParentsCloseForChildren:A,rowClassChildren:l,toggleChildren:()=>{s.value=!s.value}}}function y0(_){const t=e.toRef(_,"allVisibleMobileColumns"),n=e.toRef(_,"countVisibleMobileColumns"),E=e.inject("isMobile"),a=e.ref(!1),s=e.computed(()=>t.value.length-n.value),o=e.computed(()=>E.value&&t.value.length>n.value),l=e.computed(()=>s.value===1?"_A_TABLE_MOBILE_TR_PLUS_FIELD_":"_A_TABLE_MOBILE_TR_PLUS_FIELDS_{{count}}_"),A=e.computed(()=>a.value?"_A_TABLE_MOBILE_TR_CLOSE_":l.value);return{countInvisibleMobileColumns:s,isAllColumnsVisibleMobile:a,isBtnToggleAllColumnsVisible:o,textBtnToggleAllColumns:A,toggleAllColumnsVisibleMobile:({$event:L})=>{a.value=!a.value,L.stopPropagation()}}}function M0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isFooter"),E=e.toRef(_,"rowIndex"),a=e.inject("hasPreview"),s=e.inject("previewRightRowIndex"),o=e.inject("previewRightRowIndexLast"),l=e.computed(()=>!!(!t.value&&a.value&&!n.value)),A=e.computed(()=>E.value===s.value),T=e.computed(()=>!A.value&&E.value===o.value),L=e.computed(()=>u_({placeholder:A.value?"_A_TABLE_ROW_PREVIEW_CLOSE_":"_A_TABLE_ROW_PREVIEW_OPEN_"})),S=e.computed(()=>l.value?{"aria-label":L.value}:{}),c=e.computed(()=>{if(l.value)return{a_table__row_preview_open:A.value,a_table__row_preview_was_open:T.value}});return{hasPreviewLocal:l,previewAttributes:S,rowClassPreview:c}}const hR={name:"ATableTr",props:{allVisibleMobileColumns:{type:Array,required:!0},areAllRowsSelected:{type:Boolean,required:!0},columnActionsBtnGroupMaxWidthStyle:{type:String,required:!1,default:void 0},columnActionsView:{type:String,required:!0},countVisibleMobileColumns:{type:Number,required:!0},disabledPreview:{type:Boolean,required:!1},disabledPreviewRowCallback:{type:Function,required:!1},disabledRowActions:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},isOneOfParentsClose:{type:Boolean,required:!1},isPreviewDownOpen:{type:Boolean,required:!1},isRowActionsStickyLocal:{type:Boolean,required:!0},isTree:{type:Boolean,required:!1},isTreeCollapsible:{type:Boolean,required:!1,default:!0},isTreeOpened:{type:Boolean,required:!1},keyChildren:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:"id"},level:{type:Number,required:!0},row:{type:Object,required:!0},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowClass:{type:[String,Object,Function],required:!1,default:void 0},rowIndex:{type:Number,required:!0},rowIndexPath:{type:String,required:!1,default:void 0},rowsLength:{type:Number,required:!0},selectedRowsIndexes:{type:Object,required:!0}},emits:["setSelectedRowsIndexes"],setup(_,t){const{ariaTreeAttributes:n,children:E,hasChildren:a,levelForChildren:s,rowClassLevelChildren:o}=$0(_),{ariaExpanded:l,initIsChildrenOpen:A,isOneOfParentsCloseForChildren:T,rowClassChildren:L,toggleChildren:S}=V0(_,{hasChildren:a}),{hasPreviewLocal:c,previewAttributes:f,rowClassPreview:d}=M0(_,{hasChildren:a}),{disabledPreviewRow:R,eventsLocal:C,roleLocal:I,rowClassComputed:O,rowHtmlId:p}=g0(_,{hasChildren:a,hasPreviewLocal:c,rowClassChildren:L,rowClassLevelChildren:o,rowClassPreview:d,toggleChildren:S}),{countInvisibleMobileColumns:U,isAllColumnsVisibleMobile:D,isBtnToggleAllColumnsVisible:V,textBtnToggleAllColumns:B,toggleAllColumnsVisibleMobile:y}=y0(_),{isCheckboxDisabled:Y,isRowSelected:b,labelCheckbox:$,toggleCheckbox:M}=B0(_,t);return A(),{ariaExpanded:l,ariaTreeAttributes:n,children:E,countInvisibleMobileColumns:U,disabledPreviewRow:R,eventsLocal:C,hasChildren:a,isAllColumnsVisibleMobile:D,isBtnToggleAllColumnsVisible:V,isCheckboxDisabled:Y,isOneOfParentsCloseForChildren:T,isRowSelected:b,labelCheckbox:$,levelForChildren:s,previewAttributes:f,roleLocal:I,rowClassComputed:O,rowHtmlId:p,textBtnToggleAllColumns:B,toggleAllColumnsVisibleMobile:y,toggleCheckbox:M,toggleChildren:S}},inject:["columnsFilteredForRender","isActionColumnVisible","isMultipleActionsActive","isMobile"],render(){const _=this.rowIndexPath||`${this.rowIndex}`;let t=[];this.isMobile&&!this.isAllColumnsVisibleMobile?j(this.allVisibleMobileColumns,(a,s)=>{if(s+1>this.countVisibleMobileColumns)return!1;t.push(e.h(CR,{key:a.id,column:a,columnIndex:s,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))}):t=this.columnsFilteredForRender.map((a,s)=>e.h(CR,{key:a.id,column:a,columnIndex:s,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,showIconChildren:!!(this.isTreeCollapsible&&this.hasChildren&&s===0)},this.$slots));const n=this.isActionColumnVisible&&e.h(Y0,{columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,disabledRowActions:this.disabledRowActions,row:this.row,rowIndex:this.rowIndex,rowIndexPath:_,isFooter:this.isFooter,rowActionsClass:this.rowActionsClass,isRowActionsStickyLocal:this.isRowActionsStickyLocal},this.$slots),E=this.isMobile?e.h("div",{class:"a_table_mobile__dl__wrapper"},[this.$slots.rowMobilePrepend?this.$slots.rowMobilePrepend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):"",this.isTreeCollapsible&&this.hasChildren?e.h(O_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:RR,type:"text"}):"",e.h("dl",{class:"a_table_mobile__dl"},t),this.$slots.rowMobileAppend?this.$slots.rowMobileAppend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):""]):t;return[e.h("div",{id:this.rowHtmlId,role:this.roleLocal,class:this.rowClassComputed,"aria-expanded":this.ariaExpanded,...this.previewAttributes,...this.ariaTreeAttributes,...this.eventsLocal},[this.isMultipleActionsActive&&e.h("div",{class:"a_table__td a_table__cell a_table__cell_checkbox",style:"width: 50px; min-width: 50px; max-width: 50px;"},[!this.isFooter&&e.h(kr,{isWidthAuto:!0,modelValue:this.isRowSelected,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),E,this.isMobile?e.h("div",{class:"a_table_mobile__actions_parent"},[this.isBtnToggleAllColumnsVisible&&e.h(O_,{class:"a_btn a_btn_link a_table_mobile__columns_btn_toggle",extra:{count:this.countInvisibleMobileColumns},text:this.textBtnToggleAllColumns,type:"button",onClick:this.toggleAllColumnsVisibleMobile}),n]):n]),this.isPreviewDownOpen&&e.h(U0,{row:this.row,rowIndex:this.rowIndex},{preview:a=>this.$slots.preview?this.$slots.preview(a):void 0}),this.hasChildren?this.children.map((a,s)=>e.h(e.resolveComponent("ATableTr"),{key:a[this.keyId]||s,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreviewRow,disabledRowActions:this.disabledRowActions,isFooter:this.isFooter,isOneOfParentsClose:this.isOneOfParentsCloseForChildren,isPreviewDownOpen:!1,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:this.levelForChildren,row:a,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:s,rowIndexPath:`${_}_${s}`,rowsLength:this.children.length,selectedRowsIndexes:this.selectedRowsIndexes},{get:o=>[e.h(Xi,{data:o.row,keyLabel:o.column.keyLabel,filter:o.column.filter,filterParameters:o.column.filterParameters,defaultValue:o.column.defaultValue,tag:o.column.filterTag||"div"})],...this.$slots})):""]}};function F0(_,{columnActionsWidthDefaultsRemLocal:t=e.computed(()=>({})),columnActionsWidthMinRemLocal:n=()=>{},columnActionsWidthRemLocal:E=()=>{},isMobile:a=e.computed(()=>!1),rowsLocal:s=e.ref([])}){const o=e.toRef(_,"columnActionsView"),l=e.toRef(_,"rowActions"),A=e.computed(()=>o.value==="onePlusDropdown"),T=e.computed(()=>{let d=!1;_:for(let R=0;R<s.value.length;R++){const C=s.value[R];for(let I=0;I<l.value.length;I++){const O=l.value[I];if(oR({rowAction:O,row:C,rowIndex:R})&&O.type!=="divider"){d=!0;break _}}}return d}),L=e.computed(()=>!l.value.length||!A.value?!1:T.value),S=e.computed(()=>w_(E.value)?L.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdown:t.value.default:E.value),c=e.computed(()=>w_(n.value)?L.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdownMin:t.value.min:n.value);return{columnActionsBtnGroupMaxWidthStyle:e.computed(()=>{const d=t.value.btnGroupMaxWidth;if(!a.value&&o.value!=="dropdown"&&!w_(d))return`max-width: ${d}px`}),columnActionsWidthLocal:S,columnActionsWidthMinLocal:c,isColumnActionWide:L}}function G0(_,{columnsScrollInvisible:t=e.ref([]),indexFirstScrollInvisibleColumn:n=e.ref(void 0),modelColumnsVisibleLocal:E=e.ref({}),modelIsTableWithoutScrollComputed:a=e.computed(()=>!1),columnsOrderedFromSimpleTable:s=e.computed(()=>[])}){const o=e.toRef(_,"columns"),l=e.toRef(_,"isActionColumnVisible"),A=e.toRef(_,"isSimpleTable"),T=e.toRef(_,"modelColumnsOrdering"),L=e.toRef(_,"multipleActions"),S=e.computed(()=>Ra(o.value,"id")),c=e.computed(()=>{const O={true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]};return j(e_(o.value),p=>{const U=p.id;p.locked?(O.true.push(U),O.trueColumns.push(p),O.trueObject[U]=!0):(O.false.push(U),O.falseColumns.push(p),O.falseObject[U]=!0)}),O}),f=e.computed(()=>{if(A.value&&s.value&&s.value.length)return s.value;if(!T.value.length)return[...c.value.trueColumns,...c.value.falseColumns];const O=[],p=e_(S.value);return j(T.value,U=>{p[U]&&O.push(p[U])}),O}),d=e.computed(()=>{const O=[],p={};return j(f.value,(U,D)=>{kw({column:U,columnIndex:D,modelIsTableWithoutScroll:a.value,modelColumnsVisibleLocal:E.value,indexFirstScrollInvisibleColumn:n.value})&&(p[O.length]=D,O.push(U))}),{columns:O,columnsIndexesMapping:p}}),R=e.computed(()=>d.value.columnsIndexesMapping),C=e.computed(()=>d.value.columns),I=e.computed(()=>{let O=C.value.length;return a.value&&(O+=t.value.length),l.value&&O++,L.value.length&&O++,O});return{columnIdsGroupByLocked:c,columnsFilteredForRender:C,columnsFilteredForRenderIndexesMapping:R,columnsOrdered:f,countNotHiddenColumns:I}}function v0(_,{modelSort:t=e.ref([]),slots:n={}}){const E=e.toRef(_,"columns"),a=e.toRef(_,"showFirstSortingSequenceNumber"),s=e.toRef(_,"sortingSequenceNumberClass"),o=e.computed(()=>ce(E.value,O=>qw({column:O}))),l=e.computed(()=>Ct(o.value,(O,p)=>({...O,_index:O.prio||p}))),A=e.computed(()=>Ct(l.value,O=>(O.group&&O.group.length&&(O.group=Ct(O.group,(p,U)=>[p,U].join("%%%"))),O))),T=({groups:O,group:p,level:U,columnsOrderedFromGroups:D,firstLevelGroupObject:V})=>{const B=p?ce(O,b=>bs(b,p[U-1])):O,y=di(B,b=>b[U]),Y=Ct(y,b=>{const $={id:b[U].split("%%%")[0]};let M;return U===0?(M=$,M.columnIndexes=[]):M=V,b.length>U+1?$.children=n_(T({groups:O,group:b,level:U+1,columnsOrderedFromGroups:D,firstLevelGroupObject:M}),"recursiveGroup"):b.length===U+1&&($.columns=ce(A.value,W=>bs(W.group,b[U])),M.columnIndexes.push(...Ct($.columns,"_index")),D.push(...$.columns)),$});return{columnsOrderedFromGroups:D,recursiveGroup:Y}},L=e.computed(()=>Ct(A.value,O=>n_(O,"group",O))),S=e.computed(()=>ce(L.value,O=>p_(O))),c=e.computed(()=>ce(L.value,O=>!p_(O))),f=e.computed(()=>{const O=[];return T({groups:S.value,group:null,level:0,columnsOrderedFromGroups:O})}),d=e.computed(()=>Vr([...f.value.columnsOrderedFromGroups,...c.value],"_index")),R=O=>e.h(zT,{ref:"th",class:"a_table__cell__child_group",column:O,columnGroupNames:Ct(O.group,p=>p.split("%%%")[0]),columnIndex:O._index,hasMultipleActions:!1,modelSort:t.value,showFirstSortingSequenceNumber:a.value,sortingSequenceNumberClass:s.value},n),C=O=>e.h("div",{class:"a_table__th_group"},[e.h("div",{class:"a_table__th_child_group"},[e.h("div",{class:"a_table__cell_group a_text_center"},[O.id&&e.h(f_,{html:O.id,tag:"span","aria-hidden":!0})]),e.h("div",{class:"a_table__th_group_container"},O.children?Ct(O.children,p=>C(p)):Ct(O.columns,p=>R(p)))])]),I=e.computed(()=>{const O=Vr([...f.value.recursiveGroup,...c.value],p=>p.columnIndexes?Hu(p.columnIndexes):p._index);return Ct(O,p=>p.columnIndexes?C(p):R(p))});return{columnsOrderedFromSimpleTable:d,renderedGroupedColumns:I}}function w0(_,{emit:t},{checkVisibleColumns:n=()=>{},columnIdsGroupByLocked:E=e.computed(()=>({true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]})),columnsFilteredForRenderIndexesMapping:a=e.computed(()=>({}))}){const s=e.toRef(_,"columns"),o=e.toRef(_,"modelColumnsOrdering"),l=({columnIndexDraggable:L,columnIndexOver:S,reset:c,inHeader:f})=>{if(L===S&&!c)return;f&&(L=a.value[L],S=a.value[S]);let d;if(c)d=[...E.value.true,...E.value.false];else{d=e_(o.value);const R=d[L];d.splice(L,1),d.splice(S,0,R)}t("changeColumnsOrdering",{columnIndexDraggable:L,columnIndexOver:S,modelColumnsOrdering:d}),setTimeout(()=>{n()})},A=()=>{let L=[],S=!1;if(!o.value.length)L=[...E.value.true,...E.value.false];else{L=[...E.value.true];const c=e_(E.value.falseObject);j(o.value,f=>{c[f]&&(L.push(f),delete c[f])}),j(c,(f,d)=>{L.push(d)}),JSON.stringify(o.value)!==JSON.stringify(L)&&(S=!0)}return{shouldFixColumns:S,modelColumnsOrderingLocal:L}},T=()=>{const{shouldFixColumns:L,modelColumnsOrderingLocal:S}=A();L&&t("changeColumnsOrdering",{modelColumnsOrdering:S,shouldFixColumns:L})};return e.watch(s,()=>{T()},{deep:!0}),{changeColumnsOrdering:l,checkColumnsOrdering:A}}function H0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"data"),E=e.toRef(_,"isTree"),a=e.toRef(_,"keyChildren"),s=e.toRef(_,"keyCountAllRowsInData"),o=e.computed(()=>J_(n.value)),l=e.computed(()=>p_(n.value));return{countAllRowsLocal:e.computed(()=>t_(t.value)?o.value?+n_(n.value,s.value):l.value?E.value?dc({array:n.value,keyChildren:a.value}):n.value.length:n.value.length||0:t.value)}}function x0({tableRef:_=e.ref(void 0)}){return{scrollToTable:()=>{var E;if(_.value&&((E=_.value)!=null&&E.getBoundingClientRect)){let s=_.value.getBoundingClientRect().top+window.scrollY-window.innerHeight/2;s<0&&(s=0),document.documentElement.scrollTop=s}},setFocusToTable:()=>{_.value&&(_.value.setAttribute("tabindex","-1"),_.value.focus(),_.value.removeAttribute("tabindex"))}}}function q0(_,{emit:t},{checkColumnsOrdering:n=()=>{},checkVisibleColumns:E=()=>{},modelColumnsVisibleLocal:a=e.ref({})}){const s=e.toRef(_,"modelColumnsVisible"),o=e.toRef(_,"columns");return{initTable:()=>{const{shouldFixColumns:A,modelColumnsOrderingLocal:T}=n();let L=!1;Ca(s.value)?a.value=e_(s.value):(L=!0,a.value=nR(o.value),E()),t("initTable",e_({columnsOrdering:{model:T,shouldFix:A},columnsVisible:{model:a.value,shouldFix:L}}))}}}function W0(_,{emit:t},{closePreviewAll:n=()=>{},scrollToTable:E=()=>{},setFocusToTable:a=()=>{},viewCurrent:s=e.computed(()=>({}))}){const o=e.toRef(_,"isTree"),l=e.toRef(_,"offsetStart"),A=e.toRef(_,"pagination"),T=e.ref(void 0),L=e.ref(void 0),S=()=>{T.value=A.value.limitStart||10,L.value=l.value},c=e.computed(()=>{var I;return o.value?!1:(I=A.value)!=null&&I.use?s.value?s.value.usePagination||!1:!0:!1}),f=e.computed(()=>A.value.position==="top"||A.value.position==="y"),d=e.computed(()=>A.value.position==="bottom"||A.value.position==="y"||!f.value);return{changeLimit:I=>{a(),E(),T.value=I,L.value=l.value,t("changeLimit",{offset:L.value,limit:I}),n()},changeOffset:I=>{let O,p;J_(I)?(O=I.offset,p=I.reload):(O=I,p=!0),p&&(a(),E()),L.value=O,t("changeOffset",{offset:O,limit:T.value}),p&&n()},initLocalVars:S,limit:T,offset:L,usePaginationBottom:d,usePaginationLocal:c,usePaginationTop:f}}function k0({columnsOrdered:_=e.ref([]),isMobile:t=e.ref(!1),modelColumnsVisibleLocal:n=e.ref({})}){return{allVisibleMobileColumns:e.computed(()=>t.value?ce(_.value,a=>a.isRender!==!1&&n.value[a.id]!==!1):[])}}function K0(_,{emit:t},{checkVisibleColumns:n=()=>{},isMultipleActionsActive:E=e.ref(void 0),rowsLocalAll:a=e.computed(()=>[]),rowsLocalLength:s=e.computed(()=>0)}){const o=e.toRef(_,"id"),l=e.toRef(_,"multipleActions"),A=e.ref(void 0),T=e.ref({}),L=e.ref(!1),S=e.computed(()=>l.value.length>0),c=e.computed(()=>U_(n_(A.value,"isHiddenCallback"))),f=e.computed(()=>ce(a.value,(B,y)=>T.value[y])),d=()=>{T.value={}},R=()=>{E.value=!1,A.value=void 0,L.value=!1,d()},C=()=>{if(window.isScrollDisabled)return;const B=rR({tableId:o.value});Ce({selector:`#${B}`})},I=({isActive:B,action:y}={})=>{if(B){E.value=!0,A.value=y,setTimeout(()=>{n(),C()}),t("toggleMultipleActions",{isActive:B,action:y});return}E.value?R():E.value=!0,setTimeout(()=>{n(),C()}),t("toggleMultipleActions",{isActive:B,action:y})},O=e.computed(()=>Ca(T.value)),p=e.computed(()=>s.value>0&&s.value===O.value),U=e.computed(()=>O.value>0);return{areAllRowsSelected:L,areAllVisibleRowsSelected:p,areSomeRowsSelected:U,closeMultipleActionsActive:R,currentMultipleActions:A,hasMultipleActions:S,selectedRows:f,selectedRowsIndexes:T,setEmptySelectedRowsIndexes:d,setSelectedRowsIndexes:({rowIndex:B,isAll:y})=>{if(y){if(U.value)d();else{const Y={};c.value?Rn(s.value,b=>{A.value.isHiddenCallback({row:a.value[b],rowIndex:b})||(Y[b]=!0)}):Rn(s.value,b=>{Y[b]=!0}),T.value=Y}return}T.value[B]?delete T.value[B]:T.value[B]=!0},toggleBtnAllRows:()=>{L.value=!L.value,L.value&&d()},toggleMultipleActionsActive:I}}function X0(_,{emit:t},{aTableRef:n=e.ref({}),previewBoxWidthRemLocal:E=e.computed(()=>0),tableGrandparentRef:a=e.ref({})}){const{previewRef:s,removePreviewRef:o}=SR(),l=200,A=50;let T,L=0,S=0,c=0;const f=()=>{var b;if(!((b=n.value)!=null&&b.getBoundingClientRect))return;S=n.value.getBoundingClientRect().left},d=({clientWidth:Y})=>{L=Y,T=Y/100*A,f()},R=({clientWidthLocal:Y,clientXTableParent:b,previewBoxWidth:$})=>{if(!n.value)return;const M=Y-b-$;n.value.style.width=`${M}px`},C=({clientX:Y=0,previewRef:b,previewBoxWidth:$=0})=>{let M=$||L-Y;M<l?M=l:M>T&&(M=T),R({clientWidthLocal:L,clientXTableParent:S,previewBoxWidth:M}),b&&(b.style.width=`${M}px`)},I=({previewRef:Y})=>{n_(Y,"style.removeProperty")&&Y.style.removeProperty("width"),n_(n,"value.style.removeProperty")&&n.value.style.removeProperty("width")},O=({previewRef:Y})=>{L=document.documentElement.clientWidth,c=n_(a,"value.offsetWidth",0),f(),C({previewRef:Y,previewBoxWidth:E.value})},p=({previewRef:Y,isOpen:b})=>{b?O({previewRef:Y}):I({previewRef:Y})},U=({previewRightWidth:Y})=>{t("mouseupResizePreviewRight",{previewRightWidth:Y})},D=()=>{O({previewRef:s.value})},V=new ResizeObserver(gr(Y=>{const b=Y[0].contentRect;c!==b.width&&(c=b.width,D())},300)),B=()=>{V.observe(a.value)},y=()=>{V.unobserve(a.value)};return e.onBeforeUnmount(()=>{o(),y()}),{addEventListenerWindowResize:B,mousedownResizePreviewRight:d,mousemoveResizePreviewRight:C,mouseupResizePreviewRight:U,removeEventListenerWindowResize:y,togglePreviewResize:p}}function j0(_,t,{aTableRef:n=e.ref({}),isMobile:E=e.ref(void 0),previewBoxWidthRemLocal:a=e.computed(()=>0),rowsLocalAll:s=e.computed(()=>[]),tableGrandparentRef:o=e.ref({})}){const{isDropdownGlobalOpen:l}=NT(),{addEventListenerWindowResize:A,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:L,mouseupResizePreviewRight:S,removeEventListenerWindowResize:c,togglePreviewResize:f}=X0(_,t,{aTableRef:n,previewBoxWidthRemLocal:a,tableGrandparentRef:o}),d=e.toRef(_,"keyId"),R=e.toRef(_,"preview"),C=e.toRef(_,"id"),I=t.emit,O=e.ref({}),p=e.ref(void 0),U=e.ref(void 0),D=e.computed(()=>!!R.value),V=({rowIndex:l_})=>{window.isScrollDisabled||setTimeout(()=>{const N_=`#${C.value}_${l_}`;Ce({selector:N_})})},B=()=>{window.isScrollDisabled||setTimeout(()=>{const l_=`#${aR({tableId:C.value})}`;Ce({selector:l_})})},y=e.computed(()=>R.value==="right"||E.value),Y=e.computed(()=>!t_(p.value)),b=()=>{V({rowIndex:p.value}),I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),U.value=p.value,p.value=void 0,c()},$=()=>{I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),U.value=void 0,p.value=void 0,c()},M=e.computed(()=>R.value==="down"),W=({rowIndex:l_,row:N_})=>{const L_=Zi({row:N_,rowIndex:l_,keyId:d.value});delete O.value[L_]},H=()=>{O.value={}},w=()=>{$(),H()},K=({rowIndex:l_,row:N_}={})=>{y.value?b():M.value&&W({rowIndex:l_,row:N_})},x=({rowIndex:l_})=>{!E.value&&w_(p.value)&&A(),I("togglePreview",{row:s.value[l_],rowIndex:l_,typeToggle:"open"}),p.value=l_,U.value=void 0,B()},X=({rowIndex:l_})=>{p.value===l_?b():x({rowIndex:l_})},r_=({rowIndex:l_,row:N_})=>{const L_=Zi({row:N_,rowIndex:l_,keyId:d.value});O.value[L_]?delete O.value[L_]:O.value[L_]=!0};return{closePreview:K,closePreviewAll:w,hasPreview:D,isPreviewRightOpen:Y,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:L,mouseupResizePreviewRight:S,onTogglePreview:({row:l_,rowIndex:N_})=>{if(!l.value){if(y.value){X({rowIndex:N_});return}M.value&&r_({row:l_,rowIndex:N_})}},previewDownRowIds:O,previewRightRowIndex:p,previewRightRowIndexLast:U,togglePreviewResize:f}}function z0(_,{dataSorted:t=e.computed(()=>[]),limit:n=e.ref(0),offset:E=e.ref(0),setEmptySelectedRowsIndexes:a=()=>{},usePaginationLocal:s=e.computed(()=>!1)}){const o=e.toRef(_,"clearSelectedRowsOnDataChange"),l=e.toRef(_,"pagination"),A=e.toRef(_,"rowsCountRenderPerTick"),T=e.ref([]),L=e.ref([]);let S=!0,c=0,f;const d=e.computed(()=>{if(n.value&&!l.value.isOutside&&s.value){const y=E.value,Y=y+n.value;return t.value.slice(y,Y)}return t.value}),R=e.computed(()=>d.value),C=e.computed(()=>R.value.length),I=e.computed(()=>!!C.value),O=()=>{const y=c*A.value,Y=y+A.value;Ct(d.value.slice(y,Y),b=>L.value.push(b)),c++},p=()=>{f=setInterval(()=>{c*A.value>=d.value.length?clearInterval(f):O()})},U=()=>{clearInterval(f)},D=({row:y,rowIndex:Y})=>{Y>L.value.length-1||(L.value[Y]=y)},V=({row:y})=>{L.value.unshift(y)},B=({index:y})=>{L.value.splice(y,1)};return e.watch(d,y=>{Br(y,T.value)||(T.value=[...y],!S&&o.value&&a(),S=!1,L.value=[],c=0,U(),A.value>0?(O(),p()):L.value=d.value)},{immediate:!0,deep:!0}),{addRow:V,deleteRow:B,hasRows:I,rowsLocal:L,rowsLocalAll:R,rowsLocalLength:C,stopRenderRows:U,updateRow:D}}function J0(_,{emit:t},{columnActionsWidthLocal:n=e.computed(()=>0),columnActionsWidthMinLocal:E=e.computed(()=>0),columnsOrdered:a=e.computed(()=>[]),columnsScrollInvisible:s=e.ref([]),columnWidthDefaultRemLocal:o=e.computed(()=>0),indexFirstScrollInvisibleColumn:l=e.ref(void 0),isMobile:A=e.ref(!1),isMultipleActionsActive:T=e.ref(void 0),modelColumnsVisibleLocal:L=e.ref({}),modelIsTableWithoutScroll:S=e.ref(!1),modelIsTableWithoutScrollComputed:c=e.computed(()=>!1)}){const f=e.toRef(_,"isActionColumnVisible"),d=e.toRef(_,"isSimpleTable"),R=e.toRef(_,"useRem"),{scalePxWithRem:C}=or(),I=e.ref(void 0),O=e.ref(0),p=e.ref(void 0);let U=!1;const D=20,V=x=>R.value?C(x):x,B=e.computed(()=>f.value?E.value:0),y=e.computed(()=>{const x=T.value?E.value:0,X=d.value?0:D;return x+X}),Y=({sumGrows:x=0,freeSpaceWidth:X=0})=>{x>0?O.value=X/x:O.value=0},b=()=>{if(t_(l.value)||a.value.length<l.value)s.value=[];else{const x=[];for(let X=l.value;X<a.value.length;X++){const r_=a.value[X];Co({column:r_,modelColumnsVisibleLocal:L.value})&&x.push(e_(r_))}s.value=x}},$=()=>{s.value=[],O.value=0,l.value=1e3,p.value=0},M=()=>{if(A.value||p.value===0){$();return}if(w_(p.value))return;const x=p.value-y.value-B.value,X=p.value-y.value-n.value;let r_=0,h_=0,l_=0,N_=!1;if(j(a.value,m_=>{if(!Co({column:m_,modelColumnsVisibleLocal:L.value})){h_++;return}const Q=+V(m_.width)||o.value;if(r_+Q>x)return N_=!0,!1;r_+=Q,h_++,l_+=t_(m_.grow)?1:m_.grow}),N_&&r_>X)for(let m_=h_-1;m_>=0;m_--){h_--;const Q=a.value[h_];if(!Co({column:Q,modelColumnsVisibleLocal:L.value}))continue;const R_=+V(Q.width)||o.value;if(r_-=R_,l_-=t_(Q.grow)?1:Q.grow,r_<=X)break}let L_=0;const G_=N_?X:x;(c.value||h_===a.value.length)&&(L_=G_-r_),l.value=h_,Y({sumGrows:l_,freeSpaceWidth:L_}),b()},W=({entries:x,forceAdjust:X})=>{const r_=x[0].contentRect;(X||p.value>r_.width+D||p.value<r_.width-D)&&(U||(U=!0,p.value=r_.width,M(),U=!1))},H=new ResizeObserver(gr(x=>{w_(p.value)?W({entries:x,forceAdjust:!0}):W({entries:x})},300)),w=x=>{x?(H.unobserve(I.value),$()):(H.observe(I.value),S.value&&M())},K=x=>{S.value=x,t("updateModelIsTableWithoutScroll",x),S.value&&M()};return e.onMounted(()=>{A.value||H.observe(I.value)}),e.onBeforeUnmount(()=>{H.unobserve(I.value)}),e.watch(a,()=>{M()}),{aTableRef:I,changeModelIsTableWithoutScroll:K,checkVisibleColumns:M,columnsVisibleAdditionalSpaceForOneGrow:O,onWatchMobileScrollControl:w}}function Z0(_){const t=e.toRef(_,"hasMobile"),n=e.toRef(_,"isActionColumnVisible"),E=e.toRef(_,"isActionIconVisible"),a=e.toRef(_,"isColumnsDnd"),s=e.toRef(_,"isSimpleTable"),o=e.toRef(_,"modelIsTableWithoutScrollStart"),l=e.toRef(_,"rowActions"),A=e.ref(void 0),T=()=>{A.value=o.value},{isMobileWidth:L}=Dt(),S=e.computed(()=>s.value?l.value&&!!l.value.length&&n.value:n.value),c=e.computed(()=>!!(E.value&&!s.value)),f=e.computed(()=>!!(a.value&&!s.value)),d=e.computed(()=>t.value?!!L.value:!1),R=e.computed(()=>s.value?!1:A.value);return{initModelIsTableWithoutScroll:T,isActionColumnVisibleLocal:S,isActionIconVisibleLocal:c,isColumnsDndLocal:f,isMobile:d,modelIsTableWithoutScroll:A,modelIsTableWithoutScrollComputed:R}}function Q0(_,{viewCurrent:t=e.computed(()=>({}))}){const n=e.toRef(_,"data"),E=e.toRef(_,"isSortingOutside"),a=e.toRef(_,"modelSort"),s=e.toRef(_,"useAdditionalSorting"),o=e.ref([]),l=e.computed(()=>s.value?t.value?t.value.useAdditionalSorting||!1:!0:!1),A=()=>{ue(a.value)?o.value=[a.value]:p_(a.value)&&(o.value=e_(a.value))},T=e.computed(()=>{const S={models:[],directions:[]};return o.value.length&&j(o.value,c=>{let f="asc",d=c;GA(c,"-")&&(f="desc",d=c.slice(1)),S.models.push(d),S.directions.push(f)}),S}),L=e.computed(()=>o.value.length&&!E.value?Fs(n.value||[],T.value.models,T.value.directions):n.value||[]);return e.watch(a,()=>{A()}),{dataSorted:L,initModelSort:A,modelSortLocal:o,useAdditionalSortingLocal:l}}function _1(_,{emit:t},{modelSortLocal:n=e.ref([]),closePreviewAll:E=()=>{}}){const a=e.toRef(_,"id"),s=e.toRef(_,"isSortingMultiColumn"),o=e.toRef(_,"sortingMultiColumnKey"),l=e.computed(()=>`${o.value}Key`),A=c=>s.value&&c[l.value],T=({sortId:c})=>{const f=n.value.indexOf(c);if(f!==-1){n.value.splice(f,1,`-${c}`);return}const d=n.value.indexOf(`-${c}`);if(d!==-1){n.value.splice(d,1);return}n.value.push(c)},L=({sortId:c})=>{if(n.value.indexOf(c)!==-1){n.value=[`-${c}`];return}if(n.value.indexOf(`-${c}`)!==-1){n.value=[];return}n.value=[c]};return{changeModelSort:({sortId:c,$event:f,modelAll:d})=>{d?n.value=d:A(f)?T({sortId:c}):L({sortId:c}),t("changeSorting",{modelSort:e_(n.value)}),Ve.$emit("changeTableSorting",{modelSort:e_(n.value),tableId:a.value}),E()}}}function e1(_,{isMobile:t=e.ref(void 0),modelIsTableWithoutScrollComputed:n=e.computed(()=>{})}){const E=e.toRef(_,"rowActionsSticky");return{isRowActionsStickyLocal:e.computed(()=>!!(!t.value&&E.value&&!n.value))}}function t1(_,{countNotHiddenColumns:t=e.computed(()=>-1),isMobile:n=e.ref(!1)}){const E=e.toRef(_,"id"),a=e.toRef(_,"isLabelVisible"),s=e.computed(()=>{const A={};return n.value||(A.role="table",A["aria-colcount"]=t.value),A}),o=e.computed(()=>n.value?"list":"rowgroup"),l=e.computed(()=>{if(a.value)return sR({tableId:E.value})});return{tableChildRole:o,tableLabelId:l,tableRoleAttributes:s}}function n1(_,{emit:t},{modelColumnsVisibleLocal:n=e.ref({}),checkVisibleColumns:E=()=>{}}){return{changeModelColumnsVisible:s=>{n.value=s,t("update:modelColumnsVisible",e_(n.value)),E()}}}function E1(_){const t=e.toRef(_,"texts");return{emptyText:e.computed(()=>w_(t.value.empty)?"_A_TABLE_EMPTY_TEXT_":t.value.empty)}}function a1(){const _=e.ref([]),t=e.ref(void 0),n=e.ref(void 0),E=e.ref({}),a=e.ref(void 0),s=e.ref(void 0);return{columnsScrollInvisible:_,indexFirstScrollInvisibleColumn:t,isMultipleActionsActive:n,modelColumnsVisibleLocal:E,tableGrandparentRef:a,tableRef:s}}function r1(_,{emit:t},{closePreviewAll:n=()=>{}}){const E=e.toRef(_,"views"),a=e.toRef(_,"modelFilters"),s=e.toRef(_,"modelView"),o=e.computed(()=>Ra(E.value,"id")),l=e.computed(()=>o.value[s.value]),A=e.computed(()=>E.value.length>1),T=()=>{if(A.value){const c=_r(E.value,["active",!0]);let f=E.value[0].id;c&&(f=c.id),t("updateView",{_modelView:f,view:o.value[f],modelFilters:a.value,init:!0})}},L=c=>{n(),t("updateView",{_modelView:c,view:o.value[c],modelFilters:a.value})},S=e.computed(()=>!l.value||l.value.type==="table");return{hasViews:A,initViewCurrent:T,isViewTableVisible:S,updateViewCurrent:L,viewCurrent:l}}function s1(_){const t=e.toRef(_,"columnActionsWidth"),n=e.toRef(_,"columnActionsWidthDefaults"),E=e.toRef(_,"columnActionsWidthMin"),a=e.toRef(_,"columnWidthDefault"),s=e.toRef(_,"previewBoxWidth"),o=e.toRef(_,"useRem"),{scalePxWithRem:l}=or(),A=e.computed(()=>o.value?l(t.value):t.value),T=e.computed(()=>o.value?l(E.value):E.value),L=e.computed(()=>o.value?l(a.value):a.value),S=e.computed(()=>o.value?l(s.value):s.value);return{columnActionsWidthDefaultsRemLocal:e.computed(()=>o.value?{default:l(n.value.default||170),min:l(n.value.min||50),onePlusDropdown:l(n.value.onePlusDropdown||320),onePlusDropdownMin:l(n.value.onePlusDropdownMin||200),btnGroupMaxWidth:l(n.value.btnGroupMaxWidth||180)}:n.value),columnActionsWidthMinRemLocal:T,columnActionsWidthRemLocal:A,columnWidthDefaultRemLocal:L,previewBoxWidthRemLocal:S}}function o1(_,{isMobile:t=e.computed(()=>!1)}){const n=e.toRef(_,"pagination");return{paginationModes:e.computed(()=>{var a,s,o,l;return t.value?((s=(a=n.value)==null?void 0:a.modes)==null?void 0:s.mobile)||{perPage:{mode:"select",position:0,showTextCountFromTo:!1},pagination:{mode:"short",position:1}}:((l=(o=n.value)==null?void 0:o.modes)==null?void 0:l.desktop)||{perPage:{mode:"group",position:0,showTextCountFromTo:!0},pagination:{mode:"normal",position:1}}})}}const i1={name:"ATable",props:{additionalSortingColumns:{type:Array,required:!1,default:()=>[]},clearSelectedRowsOnDataChange:{type:Boolean,required:!1,default:!0},columnActionsOnePlusDropdownOptions:{type:Object,required:!1,default:()=>({actionsClasses:["a_btn a_btn_primary a_text_truncate"],btnGroupClass:"a_btn_group a_btn_group_table",hasDividerBeforeDropdown:!1,indexFirstDropdownAction:1,indexFirstDropdownActionMobile:1,minDropdownActions:1})},columnActionsView:{type:String,required:!1,default:"dropdown",validator:_=>["onePlusDropdown","onePlusDropdownEmptyPlace","dropdown"].indexOf(_)!==-1},columnActionsWidth:{type:Number,required:!1,default:void 0},columnActionsWidthDefaults:{type:Object,required:!1,default:()=>({default:170,min:50,onePlusDropdown:320,onePlusDropdownMin:200,btnGroupMaxWidth:180})},columnActionsWidthMin:{type:Number,required:!1,default:void 0},columns:{type:Array,required:!0},columnsDefaultValue:{type:[String,Number],required:!1,default:""},columnWidthDefault:{type:Number,required:!1,default:250},countAllRows:{type:Number,required:!1,default:void 0},countVisibleMobileColumns:{type:Number,required:!1,default:4,validator:_=>_>0},borderType:{type:String,required:!1,default:()=>Zr.value.propsDefault.borderType,validator:_=>["bordered","innerBordered"].indexOf(_)!==-1},data:{type:[Array,Object,Promise],required:!1},disabledActions:{type:Boolean,required:!1},disabledMultipleActions:{type:Boolean,required:!1},disabledOptions:{type:Boolean,required:!1},disabledPreview:{type:Boolean,required:!1},disabledPreviewRowCallback:{type:Function,required:!1},disabledRowActions:{type:Boolean,required:!1},disabledSort:{type:Boolean,required:!1},disabledViews:{type:Boolean,required:!1},extra:{type:Object,required:!1,default:void 0},hasMobile:{type:Boolean,required:!1,default:!0},hasScrollClass:{type:Boolean,required:!1,default:!0},id:{type:String,required:!1,default:()=>Ee("a_table")},isActionColumnVisible:{type:Boolean,required:!1,default:!1},isActionIconVisible:{type:Boolean,required:!1,default:!0},isColumnsDnd:{type:Boolean,required:!1,default:!1},isLabelVisible:{type:Boolean,required:!1,default:!0},isLoadingMultipleActions:{type:Boolean,required:!1},isLoadingOptions:{type:Boolean,required:!1},isLoadingTable:{type:Boolean,required:!1},isQuickSearch:{type:Boolean,required:!1},isSimpleTable:{type:Boolean,required:!1,default:!1},isSortingMultiColumn:{type:Boolean,required:!1,default:!1},isSortingOutside:{type:Boolean,required:!1},isTree:{type:Boolean,required:!1},isTreeCollapsible:{type:Boolean,required:!1,default:!0},isTreeOpened:{type:Boolean,required:!1},keyCountAllRowsInData:{type:String,required:!1,default:"count"},keyId:{type:String,required:!1,default:void 0},keyChildren:{type:String,required:!1,default:"children"},label:{type:[String,Number],required:!1,default:""},labelClass:{type:[String,Object],required:!1,default:void 0},labelTag:{type:String,required:!1,default:"h2"},modelColumnsOrdering:{type:Array,required:!1,default:()=>[]},modelColumnsVisible:{type:Object,required:!1,default:()=>({})},modelIsTableWithoutScrollStart:{type:Boolean,required:!1,default:!1},modelQuickSearch:{type:String,required:!1,default:""},modelSort:{type:[String,Array],required:!1,default:()=>[]},modelView:{type:[String,Number],required:!1,default:void 0},multipleActions:{type:Array,required:!1,default:()=>[]},offsetStart:{type:Number,required:!1,default:0},pagination:{type:Object,required:!1,default:()=>({use:!1,maxPages:5,limitsPerPage:[],limitStart:10,disabled:!1,isOutside:!1,outside:!1,position:"bottom",modes:{desktop:{pagination:{mode:"normal",position:0},perPage:{mode:"inline",position:1}},mobile:{pagination:{mode:"loadMore"}}}})},preview:{type:String,required:!1,default:void 0,validator:_=>["right","down"].indexOf(_)!==-1},previewBoxWidth:{type:Number,required:!1,default:300},previewStyles:{type:[String,Object],required:!1,default:void 0},rowActions:{type:Array,required:!1,default:()=>[]},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowActionsSticky:{type:Boolean,required:!1,default:!0},rowClass:{type:[String,Object,Function],required:!1,default:void 0},rowsCountRenderPerTick:{type:Number,required:!1,default:25,validator:_=>fn(_)&&_>=0},rowsFooter:{type:Array,required:!1,default:()=>[]},showCount:{type:Boolean,required:!1,default:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1,default:!1},sortingMultiColumnKey:{type:String,required:!1,default:"shift",validator:_=>["shift","ctrl","alt"].indexOf(_)!==-1},sortingSequenceNumberClass:{type:[String,Object],required:!1,default:"a_badge"},tableActions:{type:Array,required:!1,default:()=>[]},tableActionsIndexFirstDropdownAction:{type:Number,required:!1,default:-1},tableActionsIndexFirstDropdownActionMobile:{type:Number,required:!1,default:0},texts:{type:Object,required:!1,default:()=>({empty:"_A_TABLE_EMPTY_TEXT_"})},useAdditionalSorting:{type:Boolean,required:!1,default:!0},useViewSlot:{type:Boolean,required:!1},useRem:{type:Boolean,required:!1,default:!0},valuesForColumnDefault:{type:Array,required:!1,default:()=>[null,void 0,""]},views:{type:Array,required:!1,default:()=>[]}},emits:["changeColumnsOrdering","changeColumnsVisible","changeLimit","changeOffset","changeSorting","mouseupResizePreviewRight","initTable","togglePreview","toggleMultipleActions","update:modelColumnsOrder","update:modelColumnsVisible","update:modelQuickSearch","updateModelIsTableWithoutScroll","updateView"],provide(){return{changeModelColumnsVisible:this.changeModelColumnsVisible,columnActionsOnePlusDropdownOptions:e.computed(()=>this.columnActionsOnePlusDropdownOptions),columns:e.computed(()=>this.columns),columnsDefaultValue:e.computed(()=>this.columnsDefaultValue),isLoadingOptions:e.computed(()=>this.isLoadingOptions),isLoadingTable:e.computed(()=>this.isLoadingTable),keyId:e.computed(()=>this.keyId),rowActions:e.computed(()=>this.rowActions),tableId:e.computed(()=>this.id),valuesForColumnDefault:e.computed(()=>this.valuesForColumnDefault),useRem:e.computed(()=>this.useRem)}},setup(_,t){const{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,columnWidthDefaultRemLocal:s,previewBoxWidthRemLocal:o}=s1(_),{initModelIsTableWithoutScroll:l,isActionColumnVisibleLocal:A,isActionIconVisibleLocal:T,isColumnsDndLocal:L,isMobile:S,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:f}=Z0(_),{countAllRowsLocal:d}=H0(_),{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:C,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,tableGrandparentRef:p,tableRef:U}=a1(),{scrollToTable:D,setFocusToTable:V}=x0({tableRef:U}),{hasViews:B,initViewCurrent:y,isViewTableVisible:Y,updateViewCurrent:b,viewCurrent:$}=r1(_,t,{closePreviewAll:Un}),{dataSorted:M,initModelSort:W,modelSortLocal:H,useAdditionalSortingLocal:w}=Q0(_,{viewCurrent:$}),{columnsOrderedFromSimpleTable:K,renderedGroupedColumns:x}=v0(_,{modelSort:H,slots:t.slots}),{columnIdsGroupByLocked:X,columnsFilteredForRender:r_,columnsFilteredForRenderIndexesMapping:h_,columnsOrdered:l_,countNotHiddenColumns:N_}=G0(_,{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:C,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:f,columnsOrderedFromSimpleTable:K}),{changeLimit:L_,changeOffset:G_,initLocalVars:m_,limit:Q,offset:R_,usePaginationBottom:o_,usePaginationLocal:b_,usePaginationTop:k_}=W0(_,t,{closePreviewAll:Un,scrollToTable:D,setFocusToTable:V,viewCurrent:$}),{addRow:ae,deleteRow:d_,hasRows:V_,rowsLocal:v_,rowsLocalAll:z,rowsLocalLength:T_,stopRenderRows:i_,updateRow:I_}=z0(_,{dataSorted:M,limit:Q,offset:R_,setEmptySelectedRowsIndexes:Ma,usePaginationLocal:b_}),{columnActionsBtnGroupMaxWidthStyle:D_,columnActionsWidthLocal:B_,columnActionsWidthMinLocal:F_,isColumnActionWide:K_}=F0(_,{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,isMobile:S,rowsLocal:v_}),{aTableRef:j_,changeModelIsTableWithoutScroll:Le,checkVisibleColumns:Ae,columnsVisibleAdditionalSpaceForOneGrow:De,onWatchMobileScrollControl:Q_}=J0(_,t,{columnActionsWidthLocal:B_,columnActionsWidthMinLocal:F_,columnsOrdered:l_,columnsScrollInvisible:R,columnWidthDefaultRemLocal:s,indexFirstScrollInvisibleColumn:C,isMobile:S,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:f}),{changeColumnsOrdering:oe,checkColumnsOrdering:fe}=w0(_,t,{checkVisibleColumns:Ae,columnIdsGroupByLocked:X,columnsFilteredForRenderIndexesMapping:h_}),{isRowActionsStickyLocal:me}=e1(_,{isMobile:S,modelIsTableWithoutScrollComputed:f}),{areAllRowsSelected:ge,areAllVisibleRowsSelected:st,areSomeRowsSelected:Fe,closeMultipleActionsActive:ot,currentMultipleActions:we,hasMultipleActions:nt,selectedRows:Be,selectedRowsIndexes:it,setEmptySelectedRowsIndexes:en,setSelectedRowsIndexes:$t,toggleBtnAllRows:Ot,toggleMultipleActionsActive:xt}=K0(_,t,{checkVisibleColumns:Ae,isMultipleActionsActive:I,rowsLocalAll:z,rowsLocalLength:T_}),{changeModelColumnsVisible:qt}=n1(_,t,{modelColumnsVisibleLocal:O,checkVisibleColumns:Ae}),{closePreview:cr,closePreviewAll:pn,hasPreview:he,isPreviewRightOpen:lt,onTogglePreview:tn,mousedownResizePreviewRight:nn,mousemoveResizePreviewRight:ra,mouseupResizePreviewRight:oE,previewDownRowIds:Ya,previewRightRowIndex:iE,previewRightRowIndexLast:dt,togglePreviewResize:En}=j0(_,t,{aTableRef:j_,isMobile:S,previewBoxWidthRemLocal:o,rowsLocalAll:z,tableGrandparentRef:p}),{tableChildRole:ga,tableLabelId:Ba,tableRoleAttributes:sa}=t1(_,{countNotHiddenColumns:N_,isMobile:S}),{allVisibleMobileColumns:$a}=k0({columnsOrdered:l_,isMobile:S,modelColumnsVisibleLocal:O}),{changeModelSort:Vt}=_1(_,t,{modelSortLocal:H,closePreviewAll:Un}),{paginationModes:Va}=o1(_,{isMobile:S}),{initTable:oa}=q0(_,t,{checkColumnsOrdering:fe,checkVisibleColumns:Ae,modelColumnsVisibleLocal:O}),{emptyText:ya}=E1(_);function Un(){pn()}function Ma(){en()}return e.watch(S,$_=>{Q_($_),Un()}),e.watch(K_,($_,v)=>{$_!==v&&Ae()}),e.provide("changeModelIsTableWithoutScroll",Le),e.provide("changeModelSort",Vt),e.provide("columnsOrdered",l_),e.provide("columnsFilteredForRender",r_),e.provide("columnsScrollInvisible",R),e.provide("columnWidthDefault",s),e.provide("columnsVisibleAdditionalSpaceForOneGrow",De),e.provide("columnActionsWidthLocal",B_),e.provide("columnActionsWidthMinLocal",F_),e.provide("currentMultipleActions",we),e.provide("hasPreview",he),e.provide("indexFirstScrollInvisibleColumn",C),e.provide("isActionColumnVisible",A),e.provide("isActionIconVisible",T),e.provide("isColumnsDnd",L),e.provide("isMobile",S),e.provide("isMultipleActionsActive",I),e.provide("modelIsTableWithoutScroll",f),e.provide("onTogglePreview",tn),e.provide("previewRightRowIndex",iE),e.provide("previewRightRowIndexLast",dt),e.provide("rowsLocalAll",z),e.provide("modelColumnsVisibleLocal",O),e.provide("changeColumnsOrdering",oe),m_(),l(),y(),oa(),W(),{addRow:ae,allVisibleMobileColumns:$a,areAllRowsSelected:ge,areAllVisibleRowsSelected:st,areSomeRowsSelected:Fe,aTableRef:j_,changeLimit:L_,changeModelColumnsVisible:qt,changeOffset:G_,checkVisibleColumns:Ae,closeMultipleActionsActive:ot,closePreview:cr,closePreviewAll:Un,columnActionsBtnGroupMaxWidthStyle:D_,columnsFilteredForRender:r_,columnsOrdered:l_,countAllRowsLocal:d,deleteRow:d_,emptyText:ya,hasMultipleActions:nt,hasRows:V_,hasViews:B,isMobile:S,isMultipleActionsActive:I,isPreviewRightOpen:lt,isRowActionsStickyLocal:me,isViewTableVisible:Y,limit:Q,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:f,modelSortLocal:H,mousedownResizePreviewRight:nn,mousemoveResizePreviewRight:ra,mouseupResizePreviewRight:oE,offset:R_,onTogglePreview:tn,paginationModes:Va,previewDownRowIds:Ya,previewRightRowIndex:iE,renderedGroupedColumns:x,rowsLocal:v_,rowsLocalAll:z,rowsLocalLength:T_,selectedRows:Be,selectedRowsIndexes:it,setEmptySelectedRowsIndexes:Ma,setSelectedRowsIndexes:$t,stopRenderRows:i_,tableChildRole:ga,tableGrandparentRef:p,tableLabelId:Ba,tableRef:U,tableRoleAttributes:sa,toggleBtnAllRows:Ot,toggleMultipleActionsActive:xt,togglePreviewResize:En,updateRow:I_,updateViewCurrent:b,useAdditionalSortingLocal:w,usePaginationBottom:o_,usePaginationLocal:b_,usePaginationTop:k_,viewCurrent:$}},data(){return{resolved:void 0,error:void 0}},computed:{hasRowsFooter(){return this.rowsFooter.length>0}},methods:{updateModelQuickSearch(_){this.$emit("update:modelQuickSearch",_)}},render(){return e.h("div",{ref:"tableGrandparentRef",class:["a_table__grandparent",{a_table_mobile:this.isMobile,a_table__grandparent_without_scroll:!this.hasScrollClass}]},[this.$slots.tablePrepend&&this.$slots.tablePrepend({id:this.id}),e.h("div",{ref:"aTableRef",class:["a_table__parent",{a_table__parent_scrollable:this.hasScrollClass&&!this.modelIsTableWithoutScrollComputed}]},[e.h(O0,{additionalSortingColumns:this.additionalSortingColumns,areAllRowsSelected:this.areAllRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,closeMultipleActionsActive:this.closeMultipleActionsActive,countAllRows:this.countAllRowsLocal,disabledActions:this.disabledActions,disabledMultipleActions:this.disabledMultipleActions,disabledSort:this.disabledSort,disabledViews:this.disabledViews,extra:this.extra,hasViews:this.hasViews,isLabelVisible:this.isLabelVisible,isLoadingMultipleActions:this.isLoadingMultipleActions,isQuickSearch:this.isQuickSearch,isSortingMultiColumn:this.isSortingMultiColumn,label:this.label,labelClass:this.labelClass,labelTag:this.labelTag,modelQuickSearch:this.modelQuickSearch,modelSort:this.modelSortLocal,modelView:this.modelView,multipleActions:this.multipleActions,selectedRows:this.selectedRows,showCount:this.showCount,tableActions:this.tableActions,tableActionsIndexFirstDropdownAction:this.tableActionsIndexFirstDropdownAction,tableActionsIndexFirstDropdownActionMobile:this.tableActionsIndexFirstDropdownActionMobile,useAdditionalSorting:this.useAdditionalSortingLocal,useViewSlot:this.useViewSlot,viewCurrent:this.viewCurrent,views:this.views,onUpdateViewCurrent:this.updateViewCurrent,onUpdateModelQuickSearch:this.updateModelQuickSearch,onToggleMultipleActionsActive:this.toggleMultipleActionsActive,onToggleBtnAllRows:this.toggleBtnAllRows},this.$slots),this.$slots.topPanelAppend?this.$slots.topPanelAppend():"",this.usePaginationLocal&&this.usePaginationTop&&this.hasRows?e.h(kT,{class:"a_table__pagination_top",disabled:this.pagination.disabled,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,modes:this.paginationModes,maxPages:this.pagination.maxPages,offset:this.offset,rowsLength:this.rowsLocalLength,totalCount:this.countAllRowsLocal,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isViewTableVisible&&e.h("div",{ref:"tableRef","aria-labelledby":this.isLabelVisible?this.tableLabelId:void 0,class:["a_table",{a_table_simple:this.isSimpleTable,a_table_bordered:this.borderType==="bordered",a_table_inner_bordered:this.borderType==="innerBordered"}],...this.tableRoleAttributes},[this.isSimpleTable?e.h(zw,{areAllRowsSelected:this.areAllRowsSelected,areAllVisibleRowsSelected:this.areAllVisibleRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,disabledOptions:this.disabledOptions,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSortLocal,rowsLocalLength:this.rowsLocalLength,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes,columnsForRender:this.renderedGroupedColumns}):e.h(n0,{areAllRowsSelected:this.areAllRowsSelected,areAllVisibleRowsSelected:this.areAllVisibleRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,disabledOptions:this.disabledOptions,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSortLocal,rowsLocalLength:this.rowsLocalLength,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},this.$slots),e.h("div",{class:"a_table__loading"},[e.h(wT,{isLoading:this.isLoadingTable},()=>[e.h("div",{class:"a_table__body",role:this.tableChildRole},{default:()=>this.rowsLocal.map((_,t)=>{const n=Zi({row:_,rowIndex:t,keyId:this.keyId});return e.h(hR,{key:n,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreview,disabledPreviewRowCallback:this.disabledPreviewRowCallback,disabledRowActions:this.disabledRowActions,isFooter:!1,isPreviewDownOpen:this.previewDownRowIds[n],isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:1,row:_,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:t,rowIndexPath:`${t}`,rowsLength:this.rowsLocal.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Xi,{data:E.row,keyLabel:E.column.keyLabel,filter:E.column.filter,filterParameters:E.column.filterParameters,defaultValue:E.column.defaultValue,tag:E.column.filterTag||"div"})],...this.$slots})})}),this.isViewTableVisible&&!this.hasRows&&e.h(f_,{class:"a_table__empty_text",text:this.emptyText}),this.hasRowsFooter&&e.h("div",{class:"a_table__footer",role:this.tableChildRole},this.rowsFooter.map((_,t)=>{const n=Zi({row:_,rowIndex:t,keyId:this.keyId});return e.h(hR,{key:n,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreview,disabledPreviewRowCallback:this.disabledPreviewRowCallback,disabledRowActions:this.disabledRowActions,isFooter:!0,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:1,row:_,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:t,rowIndexPath:`${t}`,rowsLength:this.rowsFooter.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Xi,{data:E.row,keyLabel:E.column.footerPath,filter:E.column.footerFilter,filterParameters:E.column.footerFilterParameters,defaultValue:E.column.footerDefaultValue})],...this.$slots})}))])])]),!this.isViewTableVisible&&this.viewCurrent&&this.$slots[this.viewCurrent.type]&&this.$slots[this.viewCurrent.type]({isLoading:this.isLoadingTable,rows:this.rowsLocalAll}),this.usePaginationLocal&&this.usePaginationBottom&&this.hasRows?e.h(kT,{class:"a_table__pagination_bottom",disabled:this.pagination.disabled,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,maxPages:this.pagination.maxPages,modes:this.paginationModes,offset:this.offset,rowsLength:this.rowsLocalLength,totalCount:this.countAllRowsLocal,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isPreviewRightOpen?e.h(l0,{countAllRows:this.countAllRowsLocal,isMobile:this.isMobile,isLoadingTable:this.isLoadingTable,limitPagination:this.limit,offsetPagination:this.offset,previewStyles:this.previewStyles,rowIndex:this.previewRightRowIndex,rows:this.rowsLocalAll,disabledPreviewRowCallback:this.disabledPreviewRowCallback,usePagination:!!this.usePaginationLocal,onClosePreview:this.closePreview,onMousedownResizePreviewRight:this.mousedownResizePreviewRight,onMousemoveResizePreviewRight:this.mousemoveResizePreviewRight,onMouseupResizePreviewRight:this.mouseupResizePreviewRight,onTogglePreview:this.onTogglePreview,onTogglePreviewResize:this.togglePreviewResize,"onUpdate:offset":this.changeOffset},this.$slots):""])])}};function IR(_){const t=e.toRef(_,"activeTabIdLocal"),n=e.toRef(_,"index"),E=e.toRef(_,"keyId"),a=e.toRef(_,"parentId"),s=e.toRef(_,"tab"),o=e.computed(()=>E.value?n_(s.value,E.value):n.value),l=e.computed(()=>t.value===o.value),A=e.computed(()=>`${a.value}_${n.value}`);return{idForContent:e.computed(()=>`${A.value}_content`),idLocal:A,isActive:l,tabIdLocal:o}}function l1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyContent");return{contentLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}const A1={name:"ATabsContent",props:{activeTabIdLocal:{type:[String,Number],required:!0},index:{type:Number,required:!0},keyContent:{type:String,required:!1,default:"content"},keyId:{type:String,required:!1,default:void 0},parentId:{type:String,required:!0},tab:{type:Object,required:!0}},setup(_){const{idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}=IR(_),{contentLocal:s}=l1(_);return{contentLocal:s,idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}},render(){let _=null;return this.tab.slotContent&&this.$slots[this.tab.slotContent]?_=this.$slots[this.tab.slotContent]({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.$slots.content?_=this.$slots.content({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.contentLocal&&(_=e.h(f_,{html:this.contentLocal})),e.h("div",{id:this.idForContent,"aria-labelledby":this.idLocal,class:["a_tabs__content",{a_tabs__content_show:this.isActive}],role:"tabpanel"},[_])}};function T1({isDisabled:_=e.computed(()=>!1)}){return{tabindexLocal:e.computed(()=>_.value?-1:0)}}function L1(_,{emit:t},{isDisabled:n=e.computed(()=>!1),tabIdLocal:E=e.computed(()=>"")}){const a=e.toRef(_,"index"),s=e.toRef(_,"tab"),o=A=>{n.value||t("changeTab",{$event:A,tab:s.value,tabId:E.value,index:a.value})};return{changeTabLocal:o,keydownTab:A=>{(A.keyCode===E_.enter||A.keyCode===E_.space)&&(o(A),A.stopPropagation(),A.preventDefault())}}}function S1(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"keyDisabled"),E=e.toRef(_,"tab");return{isDisabled:e.computed(()=>{if(t.value||n.value&&n_(E.value,n.value)===!0)return!0})}}function u1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyLabel");return{labelLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}function c1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyTitle");return{titleLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}const d1={name:"ATabsTab",props:{activeTabIdLocal:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1},index:{type:Number,required:!0},isTitleHtml:{type:Boolean,required:!1,default:void 0},keyDisabled:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:"label"},keyTitle:{type:String,required:!1,default:"title"},parentId:{type:String,required:!0},tab:{type:Object,required:!0},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1}},emits:["changeTab"],setup(_,t){const{idForContent:n,idLocal:E,isActive:a,tabIdLocal:s}=IR(_),{isDisabled:o}=S1(_),{tabindexLocal:l}=T1({isDisabled:o}),{changeTabLocal:A,keydownTab:T}=L1(_,t,{isDisabled:o,tabIdLocal:s}),{labelLocal:L}=u1(_),{titleLocal:S}=c1(_);return{changeTabLocal:A,idForContent:n,idLocal:E,isActive:a,isDisabled:o,keydownTab:T,labelLocal:L,tabindexLocal:l,tabIdLocal:s,titleLocal:S}},render(){let _=null;return this.tab.slotTab&&this.$slots[this.tab.slotTab]?_=this.$slots[this.tab.slotTab]({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.$slots.tab?_=this.$slots.tab({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.labelLocal&&(_=e.h(f_,{html:this.labelLocal,tag:"span"})),e.h("li",{class:["a_tabs__list__item",this.tab.classLi]},[e.h(O_,{id:this.idLocal,"aria-controls":this.idForContent,ariaDisabled:this.isDisabled,ariaSelected:this.isActive,class:["a_tabs__list__link",this.tab.class,{a_tabs__list__link_active:this.isActive,a_tabs__list__link_disabled:this.isDisabled}],classDefault:"",isTitleHtml:this.isTitleHtml,role:"tab",tabindex:this.tabindexLocal,tag:"a",titlePlacement:this.titlePlacement,type:"button",title:this.titleLocal,onClick:this.changeTabLocal,onKeydown:this.keydownTab},()=>[_])])}};function f1(_,{emit:t}){const n=e.toRef(_,"activeTabId"),E=e.toRef(_,"data"),a=e.toRef(_,"isChangeOutside"),s=e.toRef(_,"keyActive"),o=e.toRef(_,"keyId"),l=e.ref(void 0),A=()=>{t_(n.value)||(l.value=n.value)};return{activeTabIdLocal:l,changeTab:({$event:S,tab:c,tabId:f,index:d})=>{l.value!==f&&(a.value||(l.value=f),t("change",{$event:S,tab:c,tabId:f,index:d}))},initActiveTabIdLocal:()=>{A(),t_(l.value)&&(s.value&&(j(E.value,(S,c)=>{if(n_(S,s.value))return o.value?l.value=n_(S,o.value)||c:l.value=c,!1}),!t_(l.value))||(o.value?l.value=n_(E.value,`[0].${o.value}`)||0:l.value=0))},setActiveTabIdLocal:A}}const R1={name:"ATabs",props:{activeTabId:{type:[String,Number],required:!1,default:void 0},data:{type:Array,required:!0},disabled:{type:Boolean,required:!1,default:void 0},id:{type:String,required:!1,default:()=>Ee("a_tabs_")},isBoxed:{type:Boolean,required:!1,default:void 0},isChangeOutside:{type:Boolean,required:!1,default:void 0},isTitleHtml:{type:Boolean,required:!1,default:void 0},isVertical:{type:Boolean,required:!1,default:void 0},keyActive:{type:String,required:!1,default:"active"},keyContent:{type:String,required:!1,default:"content"},keyDisabled:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:"label"},keyTitle:{type:String,required:!1,default:"title"},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1}},emits:["change"],setup(_,t){const n=e.toRef(_,"activeTabId"),{activeTabIdLocal:E,changeTab:a,initActiveTabIdLocal:s,setActiveTabIdLocal:o}=f1(_,t);return s(),e.watch(n,()=>{o()}),{activeTabIdLocal:E,changeTab:a}},render(){return e.h("div",{id:this.id,class:["a_tabs",{a_tabs_boxed:this.isBoxed,a_tabs_vertical:this.isVertical}]},[e.h("div",{class:"a_tabs__box"},[e.h("ul",{class:"a_tabs__list",role:"tablist"},[this.data.map((_,t)=>e.h(d1,{key:t,activeTabIdLocal:this.activeTabIdLocal,disabled:this.disabled,index:t,isTitleHtml:this.isTitleHtml,keyDisabled:this.keyDisabled,keyId:this.keyId,keyLabel:this.keyLabel,keyTitle:this.keyTitle,parentId:this.id,tab:_,titlePlacement:this.titlePlacement,onChangeTab:this.changeTab},this.$slots))])]),e.h("div",{class:"a_tabs__contents"},[this.data.map((_,t)=>e.h(A1,{key:t,activeTabIdLocal:this.activeTabIdLocal,index:t,keyContent:this.keyContent,keyId:this.keyId,parentId:this.id,tab:_},this.$slots))])])}};function OR(_,t){return function(){return _.apply(t,arguments)}}const{toString:C1}=Object.prototype,{getPrototypeOf:JT}=Object,{iterator:Qi,toStringTag:pR}=Symbol,_l=(_=>t=>{const n=C1.call(t);return _[n]||(_[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wn=_=>(_=_.toLowerCase(),t=>_l(t)===_),el=_=>t=>typeof t===_,{isArray:Qr}=Array,_s=el("undefined");function ho(_){return _!==null&&!_s(_)&&_.constructor!==null&&!_s(_.constructor)&&vt(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const UR=wn("ArrayBuffer");function h1(_){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(_):t=_&&_.buffer&&UR(_.buffer),t}const I1=el("string"),vt=el("function"),NR=el("number"),Io=_=>_!==null&&typeof _=="object",O1=_=>_===!0||_===!1,tl=_=>{if(_l(_)!=="object")return!1;const t=JT(_);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pR in _)&&!(Qi in _)},p1=_=>{if(!Io(_)||ho(_))return!1;try{return Object.keys(_).length===0&&Object.getPrototypeOf(_)===Object.prototype}catch{return!1}},U1=wn("Date"),N1=wn("File"),D1=wn("Blob"),m1=wn("FileList"),P1=_=>Io(_)&&vt(_.pipe),b1=_=>{let t;return _&&(typeof FormData=="function"&&_ instanceof FormData||vt(_.append)&&((t=_l(_))==="formdata"||t==="object"&&vt(_.toString)&&_.toString()==="[object FormData]"))},Y1=wn("URLSearchParams"),[g1,B1,$1,V1]=["ReadableStream","Request","Response","Headers"].map(wn),y1=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oo(_,t,{allOwnKeys:n=!1}={}){if(_===null||typeof _>"u")return;let E,a;if(typeof _!="object"&&(_=[_]),Qr(_))for(E=0,a=_.length;E<a;E++)t.call(null,_[E],E,_);else{if(ho(_))return;const s=n?Object.getOwnPropertyNames(_):Object.keys(_),o=s.length;let l;for(E=0;E<o;E++)l=s[E],t.call(null,_[l],l,_)}}function DR(_,t){if(ho(_))return null;t=t.toLowerCase();const n=Object.keys(_);let E=n.length,a;for(;E-- >0;)if(a=n[E],t===a.toLowerCase())return a;return null}const Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mR=_=>!_s(_)&&_!==Tr;function ZT(){const{caseless:_,skipUndefined:t}=mR(this)&&this||{},n={},E=(a,s)=>{const o=_&&DR(n,s)||s;tl(n[o])&&tl(a)?n[o]=ZT(n[o],a):tl(a)?n[o]=ZT({},a):Qr(a)?n[o]=a.slice():(!t||!_s(a))&&(n[o]=a)};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&Oo(arguments[a],E);return n}const M1=(_,t,n,{allOwnKeys:E}={})=>(Oo(t,(a,s)=>{n&&vt(a)?_[s]=OR(a,n):_[s]=a},{allOwnKeys:E}),_),F1=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),G1=(_,t,n,E)=>{_.prototype=Object.create(t.prototype,E),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:t.prototype}),n&&Object.assign(_.prototype,n)},v1=(_,t,n,E)=>{let a,s,o;const l={};if(t=t||{},_==null)return t;do{for(a=Object.getOwnPropertyNames(_),s=a.length;s-- >0;)o=a[s],(!E||E(o,_,t))&&!l[o]&&(t[o]=_[o],l[o]=!0);_=n!==!1&&JT(_)}while(_&&(!n||n(_,t))&&_!==Object.prototype);return t},w1=(_,t,n)=>{_=String(_),(n===void 0||n>_.length)&&(n=_.length),n-=t.length;const E=_.indexOf(t,n);return E!==-1&&E===n},H1=_=>{if(!_)return null;if(Qr(_))return _;let t=_.length;if(!NR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=_[t];return n},x1=(_=>t=>_&&t instanceof _)(typeof Uint8Array<"u"&&JT(Uint8Array)),q1=(_,t)=>{const E=(_&&_[Qi]).call(_);let a;for(;(a=E.next())&&!a.done;){const s=a.value;t.call(_,s[0],s[1])}},W1=(_,t)=>{let n;const E=[];for(;(n=_.exec(t))!==null;)E.push(n);return E},k1=wn("HTMLFormElement"),K1=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,E,a){return E.toUpperCase()+a}),PR=(({hasOwnProperty:_})=>(t,n)=>_.call(t,n))(Object.prototype),X1=wn("RegExp"),bR=(_,t)=>{const n=Object.getOwnPropertyDescriptors(_),E={};Oo(n,(a,s)=>{let o;(o=t(a,s,_))!==!1&&(E[s]=o||a)}),Object.defineProperties(_,E)},j1=_=>{bR(_,(t,n)=>{if(vt(_)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const E=_[n];if(vt(E)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},z1=(_,t)=>{const n={},E=a=>{a.forEach(s=>{n[s]=!0})};return Qr(_)?E(_):E(String(_).split(t)),n},J1=()=>{},Z1=(_,t)=>_!=null&&Number.isFinite(_=+_)?_:t;function Q1(_){return!!(_&&vt(_.append)&&_[pR]==="FormData"&&_[Qi])}const _H=_=>{const t=new Array(10),n=(E,a)=>{if(Io(E)){if(t.indexOf(E)>=0)return;if(ho(E))return E;if(!("toJSON"in E)){t[a]=E;const s=Qr(E)?[]:{};return Oo(E,(o,l)=>{const A=n(o,a+1);!_s(A)&&(s[l]=A)}),t[a]=void 0,s}}return E};return n(_,0)},eH=wn("AsyncFunction"),tH=_=>_&&(Io(_)||vt(_))&&vt(_.then)&&vt(_.catch),YR=((_,t)=>_?setImmediate:t?((n,E)=>(Tr.addEventListener("message",({source:a,data:s})=>{a===Tr&&s===n&&E.length&&E.shift()()},!1),a=>{E.push(a),Tr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(Tr.postMessage)),nH=typeof queueMicrotask<"u"?queueMicrotask.bind(Tr):typeof process<"u"&&process.nextTick||YR,J={isArray:Qr,isArrayBuffer:UR,isBuffer:ho,isFormData:b1,isArrayBufferView:h1,isString:I1,isNumber:NR,isBoolean:O1,isObject:Io,isPlainObject:tl,isEmptyObject:p1,isReadableStream:g1,isRequest:B1,isResponse:$1,isHeaders:V1,isUndefined:_s,isDate:U1,isFile:N1,isBlob:D1,isRegExp:X1,isFunction:vt,isStream:P1,isURLSearchParams:Y1,isTypedArray:x1,isFileList:m1,forEach:Oo,merge:ZT,extend:M1,trim:y1,stripBOM:F1,inherits:G1,toFlatObject:v1,kindOf:_l,kindOfTest:wn,endsWith:w1,toArray:H1,forEachEntry:q1,matchAll:W1,isHTMLForm:k1,hasOwnProperty:PR,hasOwnProp:PR,reduceDescriptors:bR,freezeMethods:j1,toObjectSet:z1,toCamelCase:K1,noop:J1,toFiniteNumber:Z1,findKey:DR,global:Tr,isContextDefined:mR,isSpecCompliantForm:Q1,toJSONObject:_H,isAsyncFn:eH,isThenable:tH,setImmediate:YR,asap:nH,isIterable:_=>_!=null&&vt(_[Qi])};function Z_(_,t,n,E,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),E&&(this.request=E),a&&(this.response=a,this.status=a.status?a.status:null)}J.inherits(Z_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const gR=Z_.prototype,BR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(_=>{BR[_]={value:_}}),Object.defineProperties(Z_,BR),Object.defineProperty(gR,"isAxiosError",{value:!0}),Z_.from=(_,t,n,E,a,s)=>{const o=Object.create(gR);J.toFlatObject(_,o,function(L){return L!==Error.prototype},T=>T!=="isAxiosError");const l=_&&_.message?_.message:"Error",A=t==null&&_?_.code:t;return Z_.call(o,l,A,n,E,a),_&&o.cause==null&&Object.defineProperty(o,"cause",{value:_,configurable:!0}),o.name=_&&_.name||"Error",s&&Object.assign(o,s),o};const EH=null;function QT(_){return J.isPlainObject(_)||J.isArray(_)}function $R(_){return J.endsWith(_,"[]")?_.slice(0,-2):_}function VR(_,t,n){return _?_.concat(t).map(function(a,s){return a=$R(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function aH(_){return J.isArray(_)&&!_.some(QT)}const rH=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function nl(_,t,n){if(!J.isObject(_))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,C){return!J.isUndefined(C[R])});const E=n.metaTokens,a=n.visitor||L,s=n.dots,o=n.indexes,A=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function T(d){if(d===null)return"";if(J.isDate(d))return d.toISOString();if(J.isBoolean(d))return d.toString();if(!A&&J.isBlob(d))throw new Z_("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(d)||J.isTypedArray(d)?A&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function L(d,R,C){let I=d;if(d&&!C&&typeof d=="object"){if(J.endsWith(R,"{}"))R=E?R:R.slice(0,-2),d=JSON.stringify(d);else if(J.isArray(d)&&aH(d)||(J.isFileList(d)||J.endsWith(R,"[]"))&&(I=J.toArray(d)))return R=$R(R),I.forEach(function(p,U){!(J.isUndefined(p)||p===null)&&t.append(o===!0?VR([R],U,s):o===null?R:R+"[]",T(p))}),!1}return QT(d)?!0:(t.append(VR(C,R,s),T(d)),!1)}const S=[],c=Object.assign(rH,{defaultVisitor:L,convertValue:T,isVisitable:QT});function f(d,R){if(!J.isUndefined(d)){if(S.indexOf(d)!==-1)throw Error("Circular reference detected in "+R.join("."));S.push(d),J.forEach(d,function(I,O){(!(J.isUndefined(I)||I===null)&&a.call(t,I,J.isString(O)?O.trim():O,R,c))===!0&&f(I,R?R.concat(O):[O])}),S.pop()}}if(!J.isObject(_))throw new TypeError("data must be an object");return f(_),t}function yR(_){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(E){return t[E]})}function _L(_,t){this._pairs=[],_&&nl(_,this,t)}const MR=_L.prototype;MR.append=function(t,n){this._pairs.push([t,n])},MR.toString=function(t){const n=t?function(E){return t.call(this,E,yR)}:yR;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function sH(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function FR(_,t,n){if(!t)return _;const E=n&&n.encode||sH;J.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=J.isURLSearchParams(t)?t.toString():new _L(t,n).toString(E),s){const o=_.indexOf("#");o!==-1&&(_=_.slice(0,o)),_+=(_.indexOf("?")===-1?"?":"&")+s}return _}class GR{constructor(){this.handlers=[]}use(t,n,E){return this.handlers.push({fulfilled:t,rejected:n,synchronous:E?E.synchronous:!1,runWhen:E?E.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(E){E!==null&&t(E)})}}const vR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oH={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:_L,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},eL=typeof window<"u"&&typeof document<"u",tL=typeof navigator=="object"&&navigator||void 0,iH=eL&&(!tL||["ReactNative","NativeScript","NS"].indexOf(tL.product)<0),lH=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",AH=eL&&window.location.href||"http://localhost",ht={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eL,hasStandardBrowserEnv:iH,hasStandardBrowserWebWorkerEnv:lH,navigator:tL,origin:AH},Symbol.toStringTag,{value:"Module"})),...oH};function TH(_,t){return nl(_,new ht.classes.URLSearchParams,{visitor:function(n,E,a,s){return ht.isNode&&J.isBuffer(n)?(this.append(E,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function LH(_){return J.matchAll(/\w+|\[(\w*)]/g,_).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SH(_){const t={},n=Object.keys(_);let E;const a=n.length;let s;for(E=0;E<a;E++)s=n[E],t[s]=_[s];return t}function wR(_){function t(n,E,a,s){let o=n[s++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),A=s>=n.length;return o=!o&&J.isArray(a)?a.length:o,A?(J.hasOwnProp(a,o)?a[o]=[a[o],E]:a[o]=E,!l):((!a[o]||!J.isObject(a[o]))&&(a[o]=[]),t(n,E,a[o],s)&&J.isArray(a[o])&&(a[o]=SH(a[o])),!l)}if(J.isFormData(_)&&J.isFunction(_.entries)){const n={};return J.forEachEntry(_,(E,a)=>{t(LH(E),a,n,0)}),n}return null}function uH(_,t,n){if(J.isString(_))try{return(t||JSON.parse)(_),J.trim(_)}catch(E){if(E.name!=="SyntaxError")throw E}return(n||JSON.stringify)(_)}const po={transitional:vR,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const E=n.getContentType()||"",a=E.indexOf("application/json")>-1,s=J.isObject(t);if(s&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(wR(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(E.indexOf("application/x-www-form-urlencoded")>-1)return TH(t,this.formSerializer).toString();if((l=J.isFileList(t))||E.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return nl(l?{"files[]":t}:t,A&&new A,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),uH(t)):t}],transformResponse:[function(t){const n=this.transitional||po.transitional,E=n&&n.forcedJSONParsing,a=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(E&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?Z_.from(l,Z_.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],_=>{po.headers[_]={}});const cH=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dH=_=>{const t={};let n,E,a;return _&&_.split(`
|
|
207
207
|
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),E=o.substring(a+1).trim(),!(!n||t[n]&&cH[n])&&(n==="set-cookie"?t[n]?t[n].push(E):t[n]=[E]:t[n]=t[n]?t[n]+", "+E:E)}),t},HR=Symbol("internals");function Uo(_){return _&&String(_).trim().toLowerCase()}function El(_){return _===!1||_==null?_:J.isArray(_)?_.map(El):String(_)}function fH(_){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let E;for(;E=n.exec(_);)t[E[1]]=E[2];return t}const RH=_=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_.trim());function nL(_,t,n,E,a){if(J.isFunction(E))return E.call(this,t,n);if(a&&(t=n),!!J.isString(t)){if(J.isString(E))return t.indexOf(E)!==-1;if(J.isRegExp(E))return E.test(t)}}function CH(_){return _.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,E)=>n.toUpperCase()+E)}function hH(_,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(E=>{Object.defineProperty(_,E+n,{value:function(a,s,o){return this[E].call(this,t,a,s,o)},configurable:!0})})}let wt=class{constructor(t){t&&this.set(t)}set(t,n,E){const a=this;function s(l,A,T){const L=Uo(A);if(!L)throw new Error("header name must be a non-empty string");const S=J.findKey(a,L);(!S||a[S]===void 0||T===!0||T===void 0&&a[S]!==!1)&&(a[S||A]=El(l))}const o=(l,A)=>J.forEach(l,(T,L)=>s(T,L,A));if(J.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(J.isString(t)&&(t=t.trim())&&!RH(t))o(dH(t),n);else if(J.isObject(t)&&J.isIterable(t)){let l={},A,T;for(const L of t){if(!J.isArray(L))throw TypeError("Object iterator must return a key-value pair");l[T=L[0]]=(A=l[T])?J.isArray(A)?[...A,L[1]]:[A,L[1]]:L[1]}o(l,n)}else t!=null&&s(n,t,E);return this}get(t,n){if(t=Uo(t),t){const E=J.findKey(this,t);if(E){const a=this[E];if(!n)return a;if(n===!0)return fH(a);if(J.isFunction(n))return n.call(this,a,E);if(J.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Uo(t),t){const E=J.findKey(this,t);return!!(E&&this[E]!==void 0&&(!n||nL(this,this[E],E,n)))}return!1}delete(t,n){const E=this;let a=!1;function s(o){if(o=Uo(o),o){const l=J.findKey(E,o);l&&(!n||nL(E,E[l],l,n))&&(delete E[l],a=!0)}}return J.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let E=n.length,a=!1;for(;E--;){const s=n[E];(!t||nL(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,E={};return J.forEach(this,(a,s)=>{const o=J.findKey(E,s);if(o){n[o]=El(a),delete n[s];return}const l=t?CH(s):String(s).trim();l!==s&&delete n[s],n[l]=El(a),E[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(E,a)=>{E!=null&&E!==!1&&(n[a]=t&&J.isArray(E)?E.join(", "):E)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
208
208
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const E=new this(t);return n.forEach(a=>E.set(a)),E}static accessor(t){const E=(this[HR]=this[HR]={accessors:{}}).accessors,a=this.prototype;function s(o){const l=Uo(o);E[l]||(hH(a,o),E[l]=!0)}return J.isArray(t)?t.forEach(s):s(t),this}};wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(wt.prototype,({value:_},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>_,set(E){this[n]=E}}}),J.freezeMethods(wt);function EL(_,t){const n=this||po,E=t||n,a=wt.from(E.headers);let s=E.data;return J.forEach(_,function(l){s=l.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function xR(_){return!!(_&&_.__CANCEL__)}function es(_,t,n){Z_.call(this,_??"canceled",Z_.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(es,Z_,{__CANCEL__:!0});function qR(_,t,n){const E=n.config.validateStatus;!n.status||!E||E(n.status)?_(n):t(new Z_("Request failed with status code "+n.status,[Z_.ERR_BAD_REQUEST,Z_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function IH(_){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_);return t&&t[1]||""}function OH(_,t){_=_||10;const n=new Array(_),E=new Array(_);let a=0,s=0,o;return t=t!==void 0?t:1e3,function(A){const T=Date.now(),L=E[s];o||(o=T),n[a]=A,E[a]=T;let S=s,c=0;for(;S!==a;)c+=n[S++],S=S%_;if(a=(a+1)%_,a===s&&(s=(s+1)%_),T-o<t)return;const f=L&&T-L;return f?Math.round(c*1e3/f):void 0}}function pH(_,t){let n=0,E=1e3/t,a,s;const o=(T,L=Date.now())=>{n=L,a=null,s&&(clearTimeout(s),s=null),_(...T)};return[(...T)=>{const L=Date.now(),S=L-n;S>=E?o(T,L):(a=T,s||(s=setTimeout(()=>{s=null,o(a)},E-S)))},()=>a&&o(a)]}const al=(_,t,n=3)=>{let E=0;const a=OH(50,250);return pH(s=>{const o=s.loaded,l=s.lengthComputable?s.total:void 0,A=o-E,T=a(A),L=o<=l;E=o;const S={loaded:o,total:l,progress:l?o/l:void 0,bytes:A,rate:T||void 0,estimated:T&&l&&L?(l-o)/T:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};_(S)},n)},WR=(_,t)=>{const n=_!=null;return[E=>t[0]({lengthComputable:n,total:_,loaded:E}),t[1]]},kR=_=>(...t)=>J.asap(()=>_(...t)),UH=ht.hasStandardBrowserEnv?((_,t)=>n=>(n=new URL(n,ht.origin),_.protocol===n.protocol&&_.host===n.host&&(t||_.port===n.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,NH=ht.hasStandardBrowserEnv?{write(_,t,n,E,a,s,o){if(typeof document>"u")return;const l=[`${_}=${encodeURIComponent(t)}`];J.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),J.isString(E)&&l.push(`path=${E}`),J.isString(a)&&l.push(`domain=${a}`),s===!0&&l.push("secure"),J.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(_){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+_+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(_){this.write(_,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function DH(_){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_)}function mH(_,t){return t?_.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):_}function KR(_,t,n){let E=!DH(t);return _&&(E||n==!1)?mH(_,t):t}const XR=_=>_ instanceof wt?{..._}:_;function Lr(_,t){t=t||{};const n={};function E(T,L,S,c){return J.isPlainObject(T)&&J.isPlainObject(L)?J.merge.call({caseless:c},T,L):J.isPlainObject(L)?J.merge({},L):J.isArray(L)?L.slice():L}function a(T,L,S,c){if(J.isUndefined(L)){if(!J.isUndefined(T))return E(void 0,T,S,c)}else return E(T,L,S,c)}function s(T,L){if(!J.isUndefined(L))return E(void 0,L)}function o(T,L){if(J.isUndefined(L)){if(!J.isUndefined(T))return E(void 0,T)}else return E(void 0,L)}function l(T,L,S){if(S in t)return E(T,L);if(S in _)return E(void 0,T)}const A={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(T,L,S)=>a(XR(T),XR(L),S,!0)};return J.forEach(Object.keys({..._,...t}),function(L){const S=A[L]||a,c=S(_[L],t[L],L);J.isUndefined(c)&&S!==l||(n[L]=c)}),n}const jR=_=>{const t=Lr({},_);let{data:n,withXSRFToken:E,xsrfHeaderName:a,xsrfCookieName:s,headers:o,auth:l}=t;if(t.headers=o=wt.from(o),t.url=FR(KR(t.baseURL,t.url,t.allowAbsoluteUrls),_.params,_.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),J.isFormData(n)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const A=n.getHeaders(),T=["content-type","content-length"];Object.entries(A).forEach(([L,S])=>{T.includes(L.toLowerCase())&&o.set(L,S)})}}if(ht.hasStandardBrowserEnv&&(E&&J.isFunction(E)&&(E=E(t)),E||E!==!1&&UH(t.url))){const A=a&&s&&NH.read(s);A&&o.set(a,A)}return t},PH=typeof XMLHttpRequest<"u"&&function(_){return new Promise(function(n,E){const a=jR(_);let s=a.data;const o=wt.from(a.headers).normalize();let{responseType:l,onUploadProgress:A,onDownloadProgress:T}=a,L,S,c,f,d;function R(){f&&f(),d&&d(),a.cancelToken&&a.cancelToken.unsubscribe(L),a.signal&&a.signal.removeEventListener("abort",L)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function I(){if(!C)return;const p=wt.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),D={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:p,config:_,request:C};qR(function(B){n(B),R()},function(B){E(B),R()},D),C=null}"onloadend"in C?C.onloadend=I:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(I)},C.onabort=function(){C&&(E(new Z_("Request aborted",Z_.ECONNABORTED,_,C)),C=null)},C.onerror=function(U){const D=U&&U.message?U.message:"Network Error",V=new Z_(D,Z_.ERR_NETWORK,_,C);V.event=U||null,E(V),C=null},C.ontimeout=function(){let U=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const D=a.transitional||vR;a.timeoutErrorMessage&&(U=a.timeoutErrorMessage),E(new Z_(U,D.clarifyTimeoutError?Z_.ETIMEDOUT:Z_.ECONNABORTED,_,C)),C=null},s===void 0&&o.setContentType(null),"setRequestHeader"in C&&J.forEach(o.toJSON(),function(U,D){C.setRequestHeader(D,U)}),J.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),l&&l!=="json"&&(C.responseType=a.responseType),T&&([c,d]=al(T,!0),C.addEventListener("progress",c)),A&&C.upload&&([S,f]=al(A),C.upload.addEventListener("progress",S),C.upload.addEventListener("loadend",f)),(a.cancelToken||a.signal)&&(L=p=>{C&&(E(!p||p.type?new es(null,_,C):p),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(L),a.signal&&(a.signal.aborted?L():a.signal.addEventListener("abort",L)));const O=IH(a.url);if(O&&ht.protocols.indexOf(O)===-1){E(new Z_("Unsupported protocol "+O+":",Z_.ERR_BAD_REQUEST,_));return}C.send(s||null)})},bH=(_,t)=>{const{length:n}=_=_?_.filter(Boolean):[];if(t||n){let E=new AbortController,a;const s=function(T){if(!a){a=!0,l();const L=T instanceof Error?T:this.reason;E.abort(L instanceof Z_?L:new es(L instanceof Error?L.message:L))}};let o=t&&setTimeout(()=>{o=null,s(new Z_(`timeout ${t} of ms exceeded`,Z_.ETIMEDOUT))},t);const l=()=>{_&&(o&&clearTimeout(o),o=null,_.forEach(T=>{T.unsubscribe?T.unsubscribe(s):T.removeEventListener("abort",s)}),_=null)};_.forEach(T=>T.addEventListener("abort",s));const{signal:A}=E;return A.unsubscribe=()=>J.asap(l),A}},YH=function*(_,t){let n=_.byteLength;if(n<t){yield _;return}let E=0,a;for(;E<n;)a=E+t,yield _.slice(E,a),E=a},gH=async function*(_,t){for await(const n of BH(_))yield*YH(n,t)},BH=async function*(_){if(_[Symbol.asyncIterator]){yield*_;return}const t=_.getReader();try{for(;;){const{done:n,value:E}=await t.read();if(n)break;yield E}}finally{await t.cancel()}},zR=(_,t,n,E)=>{const a=gH(_,t);let s=0,o,l=A=>{o||(o=!0,E&&E(A))};return new ReadableStream({async pull(A){try{const{done:T,value:L}=await a.next();if(T){l(),A.close();return}let S=L.byteLength;if(n){let c=s+=S;n(c)}A.enqueue(new Uint8Array(L))}catch(T){throw l(T),T}},cancel(A){return l(A),a.return()}},{highWaterMark:2})},JR=64*1024,{isFunction:rl}=J,$H=(({Request:_,Response:t})=>({Request:_,Response:t}))(J.global),{ReadableStream:ZR,TextEncoder:QR}=J.global,_C=(_,...t)=>{try{return!!_(...t)}catch{return!1}},VH=_=>{_=J.merge.call({skipUndefined:!0},$H,_);const{fetch:t,Request:n,Response:E}=_,a=t?rl(t):typeof fetch=="function",s=rl(n),o=rl(E);if(!a)return!1;const l=a&&rl(ZR),A=a&&(typeof QR=="function"?(d=>R=>d.encode(R))(new QR):async d=>new Uint8Array(await new n(d).arrayBuffer())),T=s&&l&&_C(()=>{let d=!1;const R=new n(ht.origin,{body:new ZR,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!R}),L=o&&l&&_C(()=>J.isReadableStream(new E("").body)),S={stream:L&&(d=>d.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!S[d]&&(S[d]=(R,C)=>{let I=R&&R[d];if(I)return I.call(R);throw new Z_(`Response type '${d}' is not supported`,Z_.ERR_NOT_SUPPORT,C)})});const c=async d=>{if(d==null)return 0;if(J.isBlob(d))return d.size;if(J.isSpecCompliantForm(d))return(await new n(ht.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(J.isArrayBufferView(d)||J.isArrayBuffer(d))return d.byteLength;if(J.isURLSearchParams(d)&&(d=d+""),J.isString(d))return(await A(d)).byteLength},f=async(d,R)=>{const C=J.toFiniteNumber(d.getContentLength());return C??c(R)};return async d=>{let{url:R,method:C,data:I,signal:O,cancelToken:p,timeout:U,onDownloadProgress:D,onUploadProgress:V,responseType:B,headers:y,withCredentials:Y="same-origin",fetchOptions:b}=jR(d),$=t||fetch;B=B?(B+"").toLowerCase():"text";let M=bH([O,p&&p.toAbortSignal()],U),W=null;const H=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let w;try{if(V&&T&&C!=="get"&&C!=="head"&&(w=await f(y,I))!==0){let l_=new n(R,{method:"POST",body:I,duplex:"half"}),N_;if(J.isFormData(I)&&(N_=l_.headers.get("content-type"))&&y.setContentType(N_),l_.body){const[L_,G_]=WR(w,al(kR(V)));I=zR(l_.body,JR,L_,G_)}}J.isString(Y)||(Y=Y?"include":"omit");const K=s&&"credentials"in n.prototype,x={...b,signal:M,method:C.toUpperCase(),headers:y.normalize().toJSON(),body:I,duplex:"half",credentials:K?Y:void 0};W=s&&new n(R,x);let X=await(s?$(W,b):$(R,x));const r_=L&&(B==="stream"||B==="response");if(L&&(D||r_&&H)){const l_={};["status","statusText","headers"].forEach(m_=>{l_[m_]=X[m_]});const N_=J.toFiniteNumber(X.headers.get("content-length")),[L_,G_]=D&&WR(N_,al(kR(D),!0))||[];X=new E(zR(X.body,JR,L_,()=>{G_&&G_(),H&&H()}),l_)}B=B||"text";let h_=await S[J.findKey(S,B)||"text"](X,d);return!r_&&H&&H(),await new Promise((l_,N_)=>{qR(l_,N_,{data:h_,headers:wt.from(X.headers),status:X.status,statusText:X.statusText,config:d,request:W})})}catch(K){throw H&&H(),K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new Z_("Network Error",Z_.ERR_NETWORK,d,W),{cause:K.cause||K}):Z_.from(K,K&&K.code,d,W)}}},yH=new Map,eC=_=>{let t=_&&_.env||{};const{fetch:n,Request:E,Response:a}=t,s=[E,a,n];let o=s.length,l=o,A,T,L=yH;for(;l--;)A=s[l],T=L.get(A),T===void 0&&L.set(A,T=l?new Map:VH(t)),L=T;return T};eC();const aL={http:EH,xhr:PH,fetch:{get:eC}};J.forEach(aL,(_,t)=>{if(_){try{Object.defineProperty(_,"name",{value:t})}catch{}Object.defineProperty(_,"adapterName",{value:t})}});const tC=_=>`- ${_}`,MH=_=>J.isFunction(_)||_===null||_===!1;function FH(_,t){_=J.isArray(_)?_:[_];const{length:n}=_;let E,a;const s={};for(let o=0;o<n;o++){E=_[o];let l;if(a=E,!MH(E)&&(a=aL[(l=String(E)).toLowerCase()],a===void 0))throw new Z_(`Unknown adapter '${l}'`);if(a&&(J.isFunction(a)||(a=a.get(t))))break;s[l||"#"+o]=a}if(!a){const o=Object.entries(s).map(([A,T])=>`adapter ${A} `+(T===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
|
|
209
209
|
`+o.map(tC).join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aloha-vue",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.74.0",
|
|
4
4
|
"description": "Aloha-vue is a JavaScript library that provides a wide range of accessible components and directives for Vue.js. Accessibility is of paramount importance to us, and we have designed all our components to meet accessibility compliance criteria. This library is a valuable tool for frontend developers and has already been used in three projects, including two large-scale ones",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility compliance criteria",
|
package/src/ATable/ATable.js
CHANGED
|
@@ -567,9 +567,10 @@ export default {
|
|
|
567
567
|
const {
|
|
568
568
|
columnsOrderedFromSimpleTable,
|
|
569
569
|
renderedGroupedColumns,
|
|
570
|
-
} = ColumnsGroupedAPI(props, {
|
|
571
|
-
modelSort: modelSortLocal,
|
|
572
|
-
|
|
570
|
+
} = ColumnsGroupedAPI(props, {
|
|
571
|
+
modelSort: modelSortLocal,
|
|
572
|
+
slots: context.slots,
|
|
573
|
+
});
|
|
573
574
|
|
|
574
575
|
const {
|
|
575
576
|
columnIdsGroupByLocked,
|
|
@@ -995,7 +996,7 @@ export default {
|
|
|
995
996
|
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
996
997
|
columnsForRender: this.renderedGroupedColumns,
|
|
997
998
|
}) :
|
|
998
|
-
h(ATableHeader, {
|
|
999
|
+
h(ATableHeader, {
|
|
999
1000
|
areAllRowsSelected: this.areAllRowsSelected,
|
|
1000
1001
|
areAllVisibleRowsSelected: this.areAllVisibleRowsSelected,
|
|
1001
1002
|
areSomeRowsSelected: this.areSomeRowsSelected,
|
|
@@ -1008,8 +1009,8 @@ export default {
|
|
|
1008
1009
|
rowsLocalLength: this.rowsLocalLength,
|
|
1009
1010
|
showFirstSortingSequenceNumber: this.showFirstSortingSequenceNumber,
|
|
1010
1011
|
sortingSequenceNumberClass: this.sortingSequenceNumberClass,
|
|
1011
|
-
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
1012
|
-
}),
|
|
1012
|
+
onSetSelectedRowsIndexes: this.setSelectedRowsIndexes,
|
|
1013
|
+
}, this.$slots),
|
|
1013
1014
|
h("div", {
|
|
1014
1015
|
class: "a_table__loading",
|
|
1015
1016
|
}, [
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
165
165
|
onDragenterParent: this.dragenter,
|
|
166
166
|
onDragleaveParent: this.dragleave,
|
|
167
167
|
onDragendParent: this.dragend,
|
|
168
|
-
});
|
|
168
|
+
}, this.$slots);
|
|
169
169
|
}),
|
|
170
170
|
this.isActionColumnVisible && h(ATableHeaderThAction, {
|
|
171
171
|
disabledOptions: this.disabledOptions,
|
|
@@ -154,13 +154,18 @@ export default {
|
|
|
154
154
|
textScreenReader: this.column.textScreenReader || undefined,
|
|
155
155
|
...this.attributesForButtonSort,
|
|
156
156
|
}, () => [
|
|
157
|
-
this.column.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
(this.column.headerSlot && this.$slots[this.column.headerSlot]) ?
|
|
158
|
+
this.$slots[this.column.headerSlot]({
|
|
159
|
+
column: this.column,
|
|
160
|
+
columnIndex: this.columnIndex,
|
|
161
|
+
}) :
|
|
162
|
+
this.column.label && h(ATranslation, {
|
|
163
|
+
html: this.column.label,
|
|
164
|
+
tag: "span",
|
|
165
|
+
extra: this.column.extra,
|
|
166
|
+
class: "a_table__th__text aloha_element__ml_0",
|
|
167
|
+
ariaHidden: !!this.column.textScreenReader,
|
|
168
|
+
}),
|
|
164
169
|
this.isSortable && h("span", {
|
|
165
170
|
class: "a_table__th__sort__box aloha_element__ml_0",
|
|
166
171
|
}, [
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {
|
|
2
|
+
h,
|
|
3
|
+
ref,
|
|
4
|
+
} from "vue";
|
|
5
|
+
import {
|
|
6
|
+
describe,
|
|
7
|
+
expect,
|
|
8
|
+
it,
|
|
9
|
+
jest,
|
|
10
|
+
} from "@jest/globals";
|
|
11
|
+
import {
|
|
12
|
+
mount,
|
|
13
|
+
} from "@vue/test-utils";
|
|
14
|
+
|
|
15
|
+
import ATableHeaderTh from "../ATableHeaderTh/ATableHeaderTh";
|
|
16
|
+
|
|
17
|
+
jest.mock("../../AButton/AButton", () => ({
|
|
18
|
+
name: "AButton",
|
|
19
|
+
render() {
|
|
20
|
+
return jest.requireActual("vue").h("span", this.$slots.default?.());
|
|
21
|
+
},
|
|
22
|
+
}));
|
|
23
|
+
jest.mock("aloha-svg/dist/js/bootstrap/CaretDownFill", () => "");
|
|
24
|
+
jest.mock("aloha-svg/dist/js/bootstrap/CaretUpFill", () => "");
|
|
25
|
+
|
|
26
|
+
const ATranslationStub = {
|
|
27
|
+
name: "ATranslation",
|
|
28
|
+
props: {
|
|
29
|
+
html: {
|
|
30
|
+
type: [String, Number, Object, Array],
|
|
31
|
+
default: undefined,
|
|
32
|
+
},
|
|
33
|
+
text: {
|
|
34
|
+
type: [String, Number, Object, Array],
|
|
35
|
+
default: undefined,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
render() {
|
|
39
|
+
return h("span", this.html || this.text);
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const mountHeader = ({ column, slots }) => mount(ATableHeaderTh, {
|
|
44
|
+
props: {
|
|
45
|
+
column,
|
|
46
|
+
columnIndex: 2,
|
|
47
|
+
hasMultipleActions: false,
|
|
48
|
+
},
|
|
49
|
+
slots,
|
|
50
|
+
global: {
|
|
51
|
+
provide: {
|
|
52
|
+
changeModelSort: () => {},
|
|
53
|
+
columnWidthDefault: ref(250),
|
|
54
|
+
isColumnsDnd: ref(false),
|
|
55
|
+
isLoadingOptions: ref(false),
|
|
56
|
+
isLoadingTable: ref(false),
|
|
57
|
+
tableId: ref("table"),
|
|
58
|
+
useRem: ref(false),
|
|
59
|
+
},
|
|
60
|
+
stubs: {
|
|
61
|
+
ATranslation: ATranslationStub,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
describe("ATable header slot", () => {
|
|
67
|
+
it("renders the configured header slot instead of the label", () => {
|
|
68
|
+
const wrapper = mountHeader({
|
|
69
|
+
column: {
|
|
70
|
+
id: "name",
|
|
71
|
+
label: "Name label",
|
|
72
|
+
headerSlot: "nameHeader",
|
|
73
|
+
},
|
|
74
|
+
slots: {
|
|
75
|
+
nameHeader: ({ column, columnIndex }) => h(
|
|
76
|
+
"strong",
|
|
77
|
+
{ class: "custom-header" },
|
|
78
|
+
`${ column.id }-${ columnIndex }`,
|
|
79
|
+
),
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
expect(wrapper.find(".custom-header").text()).toBe("name-2");
|
|
84
|
+
expect(wrapper.text()).not.toContain("Name label");
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it("renders the label when the configured header slot is not provided", () => {
|
|
88
|
+
const wrapper = mountHeader({
|
|
89
|
+
column: {
|
|
90
|
+
label: "Name label",
|
|
91
|
+
headerSlot: "nameHeader",
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
expect(wrapper.text()).toContain("Name label");
|
|
96
|
+
});
|
|
97
|
+
});
|
|
@@ -24,9 +24,10 @@ import {
|
|
|
24
24
|
uniqBy,
|
|
25
25
|
} from "lodash-es";
|
|
26
26
|
|
|
27
|
-
export default function ColumnsGroupedAPI(props, {
|
|
28
|
-
modelSort = ref([]),
|
|
29
|
-
|
|
27
|
+
export default function ColumnsGroupedAPI(props, {
|
|
28
|
+
modelSort = ref([]),
|
|
29
|
+
slots = {},
|
|
30
|
+
}) {
|
|
30
31
|
const columns = toRef(props, "columns");
|
|
31
32
|
const showFirstSortingSequenceNumber = toRef(props, "showFirstSortingSequenceNumber");
|
|
32
33
|
const sortingSequenceNumberClass = toRef(props, "sortingSequenceNumberClass");
|
|
@@ -133,7 +134,7 @@ export default function ColumnsGroupedAPI(props, {
|
|
|
133
134
|
});
|
|
134
135
|
|
|
135
136
|
const getColumnsForRender = col => {
|
|
136
|
-
return h(ATableHeaderTh, {
|
|
137
|
+
return h(ATableHeaderTh, {
|
|
137
138
|
ref: "th",
|
|
138
139
|
class: "a_table__cell__child_group",
|
|
139
140
|
column: col,
|
|
@@ -142,8 +143,8 @@ export default function ColumnsGroupedAPI(props, {
|
|
|
142
143
|
hasMultipleActions: false,
|
|
143
144
|
modelSort: modelSort.value,
|
|
144
145
|
showFirstSortingSequenceNumber: showFirstSortingSequenceNumber.value,
|
|
145
|
-
sortingSequenceNumberClass: sortingSequenceNumberClass.value,
|
|
146
|
-
});
|
|
146
|
+
sortingSequenceNumberClass: sortingSequenceNumberClass.value,
|
|
147
|
+
}, slots);
|
|
147
148
|
};
|
|
148
149
|
const getRecursiveGroupForRender = group => {
|
|
149
150
|
return h("div", {
|