aloha-vue 2.32.2 → 2.32.3

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 CHANGED
@@ -7,6 +7,10 @@
7
7
  ---
8
8
  # Versions
9
9
 
10
+ ## 2.32.3
11
+
12
+ - Fixed: Add null checks for `aTableRef` and `_previewRef` in `PreviewRightResizeAPI` to improve stability
13
+
10
14
  ## 2.32.2
11
15
 
12
16
  - Fixed: Add defensive checks for `getBoundingClientRect` across components to improve stability when handling DOM elements
@@ -48118,11 +48118,13 @@ function Nk(e, { emit: t }, {
48118
48118
  }, p = ({ clientWidth: U }) => {
48119
48119
  T = U, S = U / 100 * c, h();
48120
48120
  }, C = ({ clientWidthLocal: U, clientXTableParent: B, previewBoxWidth: w }) => {
48121
+ if (!_.value)
48122
+ return;
48121
48123
  const q = U - B - w;
48122
48124
  _.value.style.width = `${q}px`;
48123
48125
  }, b = ({ clientX: U = 0, previewRef: B, previewBoxWidth: w = 0 }) => {
48124
48126
  let q = w || T - U;
48125
- q < o ? q = o : q > S && (q = S), C({ clientWidthLocal: T, clientXTableParent: A, previewBoxWidth: q }), B.style.width = `${q}px`;
48127
+ q < o ? q = o : q > S && (q = S), C({ clientWidthLocal: T, clientXTableParent: A, previewBoxWidth: q }), B && (B.style.width = `${q}px`);
48126
48128
  }, I = ({ previewRef: U }) => {
48127
48129
  ue(U, "style.removeProperty") && U.style.removeProperty("width"), ue(_, "value.style.removeProperty") && _.value.style.removeProperty("width");
48128
48130
  }, m = ({ previewRef: U }) => {
@@ -201,7 +201,7 @@ function print() { __p += __j.call(arguments, '') }
201
201
  <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"/>
202
202
  </svg>`,qG={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}=vG(),{filterCurrency:E}=ht(),{buttonMultipleId:r,currentMultipleActions:s,multipleActionsFiltered:i,onCancelMultipleActions:l,onOpenModalMultipleActions:L,tableActionsFiltered:S}=FG(_,t),{isBtnMultipleActionDisabled:A,isBtnSelectAllRowsDisabled:u,multiplePanelId:d,textMultipleBtnAllRowsTranslate:c,textMultipleSelectedTranslateExtra:f,toggleBtnAllRows:C}=wG(_,t),{updateViewCurrentLocal:p,viewSlotLocal:h}=xG(_,t),{countAllRowsFormatted:I}=GG(_);return{buttonMultipleId:r,countAllRowsFormatted:I,currentMultipleActions:s,filterCurrency:E,isBtnMultipleActionDisabled:A,isBtnSelectAllRowsDisabled:u,multipleActionsFiltered:i,multiplePanelId:d,onCancelMultipleActions:l,onOpenModalMultipleActions:L,tableActionsFiltered:S,tableLabelId:n,textMultipleBtnAllRowsTranslate:c,textMultipleSelectedTranslateExtra:f,toggleBtnAllRows:C,updateViewCurrentLocal:p,viewSlotLocal:h}},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(u_,{id:this.tableLabelId,tag:"span",class:"a_table__top_panel__label__text",text:this.label,extra:this.extra}),this.showCount?e.h(S_,{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(bi,{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:Hs,buttonText:{desktop:"_A_TABLE_ACTIONS_"},hasCaret:!1,inBody:!0,placement:"bottom-end"}}),e.h(bi,{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:HG,inBody:!0,placement:"bottom-end"}}),this.isQuickSearch?e.h(ct,{label:"_A_TABLE_QUICK_SEARCH_",class:"a_table__top_panel__actions__quick_search",modelUndefined:"",modelValue:this.modelQuickSearch,iconPrepend:kc,"onUpdate:modelValue":this.updateModelQuickSearch}):"",this.hasViews?e.h(lS,{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:r=>this.$slots.viewSlot&&this.$slots.viewSlot({...r})}):"",this.useAdditionalSorting?e.h(MG,{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(u_,{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(u_,{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}):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 WG(){const _=e.ref(void 0);return{componentRef:_,setFocusToComponent:()=>{var n;(n=_.value)==null||n.focus({preventScroll:!0})}}}const kG={name:"ATablePreviewDown",props:{row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},inject:["onTogglePreview"],setup(){const{componentRef:_,setFocusToComponent:t}=WG();return e.onMounted(()=>{t()}),{componentRef:_}},render(){return e.h("div",{ref:"componentRef",class:"a_table__preview_down",tabindex:-1},[e.h(u_,{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:tE,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 XG(_){const t=e.toRef(_,"column"),n=e.toRef(_,"disabledPreview"),E=e.toRef(_,"isFooter"),r=e.inject("hasPreview"),s=e.inject("isMobile"),{columnsStyles:i}=Uf(_);return{attributesForTd:e.computed(()=>{const L={class:["a_table__td a_table__cell",{a_table__cell_click:r.value&&!E.value&&!n.value},t.value.classRowParent],style:i.value};return s.value||(L.role="cell"),L})}}function gf(_){const t=e.toRef(_,"column"),n=e.toRef(_,"row"),E=e.computed(()=>!!t.value.to),r=e.computed(()=>{if(Ee(t.value.to))return t.value.to;if(Q_(t.value.to)){const i=Q(t.value.to),l=i.params||{},L=i.query||{};if(t.value.to.nameDynamic&&!t.value.to.name){const S=o_(n.value,t.value.to.nameDynamic);S&&(i.name=S)}if(t.value.to.paramsDynamic){let S=!1;if(q(t.value.to.paramsDynamic,(A,u)=>{const d=o_(n.value,A);if(B_(d))return S=!0,!1;l[u]=d}),S)return}if(t.value.to.queryDynamic){let S=!1;if(q(t.value.to.queryDynamic,(A,u)=>{const d=o_(n.value,A);if(B_(d))return S=!0,!1;L[u]=d}),S)return}return i.params=l,i.query=L,i}});return{classForLink:e.computed(()=>"a_btn a_btn_link a_p_0 a_text_left"),isLink:E,toLocal:r}}function Yf(_){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 Pf(_){const t=e.toRef(_,"column"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),r=e.inject("columnsDefaultValue"),s=e.inject("valuesForColumnDefault"),i=e.computed(()=>n.value&&"footerDefaultValue"in t.value?t.value.footerDefaultValue:"defaultValue"in t.value?t.value.defaultValue:B_(r.value)?"":r.value),l=e.computed(()=>n.value?t.value.footerKeyLabel:t.value.keyLabel),L=e.computed(()=>n.value?t.value.footerKeyLabelSafeHtml:t.value.keyLabelSafeHtml),S=e.computed(()=>n.value?t.value.footerKeyLabelHtml:t.value.keyLabelHtml),A=e.computed(()=>{if(l.value)return o_(E.value,l.value)}),u=e.computed(()=>{if(L.value)return o_(E.value,L.value)}),d=e.computed(()=>{if(S.value)return o_(E.value,S.value)}),c=I=>{let O=!1;return q(s.value,m=>{if(I===m)return O=!0,!1}),O?i.value:I},f=e.computed(()=>c(A.value)),C=e.computed(()=>c(u.value)),p=e.computed(()=>c(d.value));return{textOrHtmlRender:e.computed(()=>{if(l.value)return e.h("span",null,f.value);if(L.value)return e.h("div",{innerHTML:C.value});if(S.value)return e.withDirectives(e.h("div"),[[$e,p.value]])})}}const Vf=`<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">
203
203
  <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"/>
204
- </svg>`,Df={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}=XG(_),{classForLink:n,isLink:E,toLocal:r}=gf(_),{hasSlot:s,slotName:i}=Yf(_),{textOrHtmlRender:l}=Pf(_);return{attributesForTd:t,classForLink:n,hasSlot:s,isLink:E,slotName:i,textOrHtmlRender:l,toLocal:r}},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(S_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:Vf,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(u_,{text:this.column.label,tag:"dt"}),e.h("dd",{},[_])]:_}},KG={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}=gf(_),{hasSlot:r,slotName:s}=Yf(_),{textOrHtmlRender:i}=Pf(_);return{classForLink:t,hasSlot:r,isLink:n,slotName:s,textOrHtmlRender:i,toLocal:E}},render(){return[e.h(u_,{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 jG(){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 zG(_){const t=e.toRef(_,"columnActionsView"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),r=e.toRef(_,"rowIndex"),s=e.inject("columnActionsOnePlusDropdownOptions"),i=e.inject("rowActions"),l=e.inject("tableId"),L=e.computed(()=>`${l.value}_action_${r.value}`),S=e.computed(()=>B_(s.value.indexFirstDropdownAction)?1:s.value.indexFirstDropdownAction),A=({rowAction:N})=>{if(N.text)return N.text;if(V_(N.textCallback))return N.textCallback({row:E.value,rowIndex:r.value,rowAction:N})},u=({rowAction:N})=>{if(N.html)return N.html;if(V_(N.htmlCallback))return N.htmlCallback({row:E.value,rowIndex:r.value,rowAction:N})},d=({rowAction:N})=>{if(N.title)return N.title;if(V_(N.titleCallback))return N.titleCallback({row:E.value,rowIndex:r.value,rowAction:N})},c=({rowAction:N})=>N.disabled?N.disabled:V_(N.disabledCallback)?N.disabledCallback({row:E.value,rowIndex:r.value,rowAction:N}):!1,f=({rowAction:N})=>N.class?N.class:V_(N.classCallback)?N.classCallback({row:E.value,rowIndex:r.value,rowAction:N}):"",C=({rowAction:N})=>{if(N.iconLeft)return N.iconLeft;if(V_(N.iconLeftCallback))return N.iconLeftCallback({row:E.value,rowIndex:r.value,rowAction:N})},p=({rowAction:N})=>{if(N.iconRight)return N.iconRight;if(V_(N.iconRightCallback))return N.iconRightCallback({row:E.value,rowIndex:r.value,rowAction:N})},h=({rowAction:N})=>{if(Ee(N.to))return N.to;if(Q_(N.to)){const D=Q(N.to),M=D.params||{},w=D.query||{};if(N.to.nameDynamic&&!N.to.name){const z=o_(E.value,N.to.nameDynamic);z&&(D.name=z)}if(N.to.paramsDynamic){let z=!1;if(q(N.to.paramsDynamic,(t_,L_)=>{const s_=o_(E.value,t_);if(B_(s_))return z=!0,!1;M[L_]=s_}),z)return}if(N.to.queryDynamic){let z=!1;if(q(N.to.queryDynamic,(t_,L_)=>{const s_=o_(E.value,t_);if(B_(s_))return z=!0,!1;w[L_]=s_}),z)return}return D.params=M,D.query=w,D}},I=({rowAction:N})=>N.href?N.href:V_(N.hrefCallback)?N.hrefCallback({row:E.value,rowIndex:r.value,rowAction:N}):!1,O=({rowAction:N})=>{if(N.extra)return N.extra;if(V_(N.extraCallback))return N.extraCallback({row:E.value,rowIndex:r.value,rowAction:N})},m=({rowAction:N})=>{if(N.textScreenReader)return N.textScreenReader;if(V_(N.textScreenReaderCallback))return N.textScreenReaderCallback({row:E.value,rowIndex:r.value,rowAction:N})},P=({rowActionIndexVisible:N})=>{if(t.value==="dropdown")return{id:L.value,ids:[L.value,l.value]};if(N<S.value){const D=`${L.value}_${N}`;return{buttonId:D,id:D,ids:[D,l.value]}}return{id:L.value,ids:[L.value,l.value]}},y=N=>{q(N,(D,M)=>{_b(M,"Callback")&&(N[M]=void 0)})},V=e.computed(()=>{const N=[];let D=0;return q(Q(i.value),M=>{if(hf({rowAction:M,row:E.value,rowIndex:r.value})){if(M.type!=="divider"){const w=A({rowAction:M});w&&(M.text=w);const z=u({rowAction:M});z&&(M.html=z);const t_=d({rowAction:M});t_?M.title=t_:w&&(M.title=w);const L_=c({rowAction:M});L_&&(M.disabled=L_);const s_=f({rowAction:M});s_&&(M.class=s_);const __=C({rowAction:M});__&&(M.iconLeft=__);const i_=p({rowAction:M});i_&&(M.iconRight=i_);const I_=O({rowAction:M});I_&&(M.extra=I_);const N_=m({rowAction:M});if(I_&&(M.textScreenReader=N_),M.type==="link"){const r_=h({rowAction:M});r_?M.to=r_:M.href=I({rowAction:M})}if(V_(M.callback)){const{buttonId:r_,id:h_,ids:p_}=P({rowActionIndexVisible:D});M.id=r_;const H_=M.callback;M.callback=()=>H_({row:E.value,rowIndex:r.value,id:h_,ids:p_,rowAction:M})}y(M),D++}N.push(M)}}),N}),$=e.computed(()=>!n.value&&V.value.length>0);return{buttonActionsId:L,isRowActionsDropdownVisible:$,rowActionsFiltered:V}}function JG(_){const t=e.toRef(_,"rowIndex");return{rowNumber:e.computed(()=>t.value+1)}}const ZG={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}},inject:["columnActionsOnePlusDropdownOptions","columnsScrollInvisible","tableId","useRem"],setup(_){const{isMobileWidth:t}=Et(),{buttonActionsId:n,isRowActionsDropdownVisible:E,rowActionsFiltered:r}=zG(_),{columnsScrollInvisibleText:s,countColumnsScrollInvisible:i,isColumnsScrollInvisibleDropdownVisible:l}=jG(),{rowNumber:L}=JG(_),{stylesThTd:S}=If();return{buttonActionsId:n,columnsScrollInvisibleText:s,countColumnsScrollInvisible:i,isColumnsScrollInvisibleDropdownVisible:l,isMobileWidth:t,isRowActionsDropdownVisible:E,rowActionsFiltered:r,rowNumber:L,stylesThTd:S}},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(Dn,{buttonClass:"a_btn a_btn_link a_text_nowrap",buttonIconLeft:Wc,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(KG,{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(Dn,{id:this.buttonActionsId,actions:this.rowActionsFiltered,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:Hs,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(bi,{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:Qn,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:B_(this.columnActionsOnePlusDropdownOptions.btnGroupClass)?"a_btn_group a_btn_group_table":this.columnActionsOnePlusDropdownOptions.btnGroupClass,hasDividerBeforeDropdown:this.columnActionsOnePlusDropdownOptions.hasDividerBeforeDropdown||!1,indexFirstDropdownAction:B_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction,indexFirstDropdownActionMobile:B_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile,minDropdownActions:B_(this.columnActionsOnePlusDropdownOptions.minDropdownActions)?1:this.columnActionsOnePlusDropdownOptions.minDropdownActions,actionsClasses:this.columnActionsOnePlusDropdownOptions.actionsClasses||["a_btn a_btn_primary a_text_truncate"]},this.$slots):""]):""])])}};function QG(_,{hasChildren:t=e.computed(()=>!1),hasPreviewLocal:n=e.computed(()=>!1),rowClassChildren:E=e.computed(()=>{}),rowClassLevelChildren:r=e.computed(()=>{}),rowClassPreview:s=e.computed(()=>{}),toggleChildren:i=()=>{}}){const l=e.toRef(_,"disabledPreview"),L=e.toRef(_,"disabledPreviewRowCallback"),S=e.toRef(_,"isFooter"),A=e.toRef(_,"isTreeCollapsible"),u=e.toRef(_,"level"),d=e.toRef(_,"row"),c=e.toRef(_,"rowClass"),f=e.toRef(_,"rowIndex"),C=e.inject("isMobile"),p=e.inject("onTogglePreview"),h=e.inject("tableId"),I=e.computed(()=>{const D=S.value?"_footer":"";return`${h.value}${D}_${f.value}`}),O=e.computed(()=>V_(c.value)?c.value({level:u.value,row:d.value,rowindex:f.value}):c.value),m=e.computed(()=>["a_table__row a_table__body__row a_table__row_hover",E.value,r.value,s.value,O.value]),P=e.computed(()=>C.value?"listitem":"row"),y=e.computed(()=>V_(L.value)?L.value({row:d.value,rowIndex:f.value}):l.value),V=D=>{lG({$event:D,tagsName:["A","BUTTON","INPUT","LABEL"],classStop:"a_table__row"})||(t.value?i():n.value&&p({row:d.value,rowIndex:f.value}))},$=D=>{D.keyCode===j.enter&&V(D)},N=e.computed(()=>(A.value&&t.value||n.value)&&!y.value?{tabindex:0,onClick:V,onKeydown:$}:{});return{disabledPreviewRow:y,eventsLocal:N,roleLocal:P,rowClassComputed:m,rowHtmlId:I}}function _0(_,{emit:t}){const n=e.toRef(_,"areAllRowsSelected"),E=e.toRef(_,"row"),r=e.toRef(_,"rowIndex"),s=e.toRef(_,"selectedRowsIndexes"),i=e.inject("currentMultipleActions"),l=e.inject("isMultipleActionsActive"),L=e.computed(()=>!!s.value[r.value]||n.value),S=e.computed(()=>{if(l.value){if(V_(o_(i.value,"isHiddenCallback")))return i.value.isHiddenCallback({row:E.value,rowIndex:r.value});if(n.value)return!0}return!1}),A=e.computed(()=>L.value?"_A_TABLE_DESELECT_THIS_ROW_":"_A_TABLE_SELECT_THIS_ROW_");return{isCheckboxDisabled:S,isRowSelected:L,labelCheckbox:A,toggleCheckbox:()=>{S.value||t("setSelectedRowsIndexes",{rowIndex:r.value})}}}function e0(_){const t=e.toRef(_,"isTree"),n=e.toRef(_,"keyChildren"),E=e.toRef(_,"level"),r=e.toRef(_,"row"),s=e.toRef(_,"rowIndex"),i=e.toRef(_,"rowsLength"),l=e.computed(()=>{if(!n.value)return[];const d=o_(r.value,n.value);return c_(d)?d:[]}),L=e.computed(()=>l.value.length>0),S=e.computed(()=>E.value+1),A=e.computed(()=>t.value?{"aria-level":E.value,"aria-posinset":s.value+1,"aria-setsize":i.value}:{}),u=e.computed(()=>{if(t.value)return`a_table__row_level a_table__row_level_${E.value}`});return{ariaTreeAttributes:A,children:l,hasChildren:L,levelForChildren:S,rowClassLevelChildren:u}}function t0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isOneOfParentsClose"),E=e.toRef(_,"isTreeCollapsible"),r=e.toRef(_,"isTreeOpened"),s=e.ref(!1),i=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})),L=e.computed(()=>!!(n.value||!s.value));return{ariaExpanded:i,initIsChildrenOpen:()=>{(!E.value||r.value)&&(s.value=!0)},isOneOfParentsCloseForChildren:L,rowClassChildren:l,toggleChildren:()=>{s.value=!s.value}}}function n0(_){const t=e.toRef(_,"allVisibleMobileColumns"),n=e.toRef(_,"countVisibleMobileColumns"),E=e.inject("isMobile"),r=e.ref(!1),s=e.computed(()=>t.value.length-n.value),i=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}}_"),L=e.computed(()=>r.value?"_A_TABLE_MOBILE_TR_CLOSE_":l.value);return{countInvisibleMobileColumns:s,isAllColumnsVisibleMobile:r,isBtnToggleAllColumnsVisible:i,textBtnToggleAllColumns:L,toggleAllColumnsVisibleMobile:({$event:A})=>{r.value=!r.value,A.stopPropagation()}}}function E0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isFooter"),E=e.toRef(_,"rowIndex"),r=e.inject("hasPreview"),s=e.inject("previewRightRowIndex"),i=e.inject("previewRightRowIndexLast"),l=e.computed(()=>!!(!t.value&&r.value&&!n.value)),L=e.computed(()=>E.value===s.value),S=e.computed(()=>!L.value&&E.value===i.value),A=e.computed(()=>de({placeholder:L.value?"_A_TABLE_ROW_PREVIEW_CLOSE_":"_A_TABLE_ROW_PREVIEW_OPEN_"})),u=e.computed(()=>l.value?{"aria-label":A.value}:{}),d=e.computed(()=>{if(l.value)return{a_table__row_preview_open:L.value,a_table__row_preview_was_open:S.value}});return{hasPreviewLocal:l,previewAttributes:u,rowClassPreview:d}}const Bf={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},rowsLength:{type:Number,required:!0},selectedRowsIndexes:{type:Object,required:!0}},emits:["setSelectedRowsIndexes"],setup(_,t){const{ariaTreeAttributes:n,children:E,hasChildren:r,levelForChildren:s,rowClassLevelChildren:i}=e0(_),{ariaExpanded:l,initIsChildrenOpen:L,isOneOfParentsCloseForChildren:S,rowClassChildren:A,toggleChildren:u}=t0(_,{hasChildren:r}),{hasPreviewLocal:d,previewAttributes:c,rowClassPreview:f}=E0(_,{hasChildren:r}),{disabledPreviewRow:C,eventsLocal:p,roleLocal:h,rowClassComputed:I,rowHtmlId:O}=QG(_,{hasChildren:r,hasPreviewLocal:d,rowClassChildren:A,rowClassLevelChildren:i,rowClassPreview:f,toggleChildren:u}),{countInvisibleMobileColumns:m,isAllColumnsVisibleMobile:P,isBtnToggleAllColumnsVisible:y,textBtnToggleAllColumns:V,toggleAllColumnsVisibleMobile:$}=n0(_),{isCheckboxDisabled:N,isRowSelected:D,labelCheckbox:M,toggleCheckbox:w}=_0(_,t);return L(),{ariaExpanded:l,ariaTreeAttributes:n,children:E,countInvisibleMobileColumns:m,disabledPreviewRow:C,eventsLocal:p,hasChildren:r,isAllColumnsVisibleMobile:P,isBtnToggleAllColumnsVisible:y,isCheckboxDisabled:N,isOneOfParentsCloseForChildren:S,isRowSelected:D,labelCheckbox:M,levelForChildren:s,previewAttributes:c,roleLocal:h,rowClassComputed:I,rowHtmlId:O,textBtnToggleAllColumns:V,toggleAllColumnsVisibleMobile:$,toggleCheckbox:w,toggleChildren:u}},inject:["columnsFilteredForRender","isActionColumnVisible","isMultipleActionsActive","isMobile"],render(){let _=[];this.isMobile&&!this.isAllColumnsVisibleMobile?q(this.allVisibleMobileColumns,(E,r)=>{if(r+1>this.countVisibleMobileColumns)return!1;_.push(e.h(Df,{key:E.id,column:E,columnIndex:r,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))}):_=this.columnsFilteredForRender.map((E,r)=>e.h(Df,{key:E.id,column:E,columnIndex:r,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,showIconChildren:!!(this.isTreeCollapsible&&this.hasChildren&&r===0)},this.$slots));const t=this.isActionColumnVisible&&e.h(ZG,{columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,disabledRowActions:this.disabledRowActions,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,rowActionsClass:this.rowActionsClass,isRowActionsStickyLocal:this.isRowActionsStickyLocal},this.$slots),n=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(S_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:Vf,type:"text"}):"",e.h("dl",{class:"a_table_mobile__dl"},_),this.$slots.rowMobileAppend?this.$slots.rowMobileAppend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):""]):_;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(Cr,{isWidthAuto:!0,modelValue:this.isRowSelected,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),n,this.isMobile?e.h("div",{class:"a_table_mobile__actions_parent"},[this.isBtnToggleAllColumnsVisible&&e.h(S_,{class:"a_btn a_btn_link a_table_mobile__columns_btn_toggle",extra:{count:this.countInvisibleMobileColumns},text:this.textBtnToggleAllColumns,type:"button",onClick:this.toggleAllColumnsVisibleMobile}),t]):t]),this.isPreviewDownOpen&&e.h(kG,{row:this.row,rowIndex:this.rowIndex},{preview:E=>this.$slots.preview?this.$slots.preview(E):void 0}),this.hasChildren?this.children.map((E,r)=>e.h(e.resolveComponent("ATableTr"),{key:E[this.keyId]||r,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:E,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:r,rowsLength:this.children.length,selectedRowsIndexes:this.selectedRowsIndexes},{get:s=>[e.h(Ni,{data:s.row,keyLabel:s.column.keyLabel,filter:s.column.filter,filterParameters:s.column.filterParameters,defaultValue:s.column.defaultValue,tag:s.column.filterTag||"div"})],...this.$slots})):""]}};function a0(_,{columnActionsWidthDefaultsRemLocal:t=e.computed(()=>({})),columnActionsWidthMinRemLocal:n=()=>{},columnActionsWidthRemLocal:E=()=>{},isMobile:r=e.computed(()=>!1),rowsLocal:s=e.ref([])}){const i=e.toRef(_,"columnActionsView"),l=e.toRef(_,"rowActions"),L=e.computed(()=>i.value==="onePlusDropdown"),S=e.computed(()=>{let f=!1;_:for(let C=0;C<s.value.length;C++){const p=s.value[C];for(let h=0;h<l.value.length;h++){const I=l.value[h];if(hf({rowAction:I,row:p,rowIndex:C})&&I.type!=="divider"){f=!0;break _}}}return f}),A=e.computed(()=>!l.value.length||!L.value?!1:S.value),u=e.computed(()=>B_(E.value)?A.value&&i.value==="onePlusDropdown"?t.value.onePlusDropdown:t.value.default:E.value),d=e.computed(()=>B_(n.value)?A.value&&i.value==="onePlusDropdown"?t.value.onePlusDropdownMin:t.value.min:n.value);return{columnActionsBtnGroupMaxWidthStyle:e.computed(()=>{const f=t.value.btnGroupMaxWidth;if(!r.value&&i.value!=="dropdown"&&!B_(f))return`max-width: ${f}px`}),columnActionsWidthLocal:u,columnActionsWidthMinLocal:d,isColumnActionWide:A}}function r0(_,{columnsScrollInvisible:t=e.ref([]),indexFirstScrollInvisibleColumn:n=e.ref(void 0),modelColumnsVisibleLocal:E=e.ref({}),modelIsTableWithoutScrollComputed:r=e.computed(()=>!1),columnsOrderedFromSimpleTable:s=e.computed(()=>[])}){const i=e.toRef(_,"columns"),l=e.toRef(_,"isActionColumnVisible"),L=e.toRef(_,"isSimpleTable"),S=e.toRef(_,"modelColumnsOrdering"),A=e.toRef(_,"multipleActions"),u=e.computed(()=>jE(i.value,"id")),d=e.computed(()=>{const I={true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]};return q(Q(i.value),O=>{const m=O.id;O.locked?(I.true.push(m),I.trueColumns.push(O),I.trueObject[m]=!0):(I.false.push(m),I.falseColumns.push(O),I.falseObject[m]=!0)}),I}),c=e.computed(()=>{if(L.value&&s.value&&s.value.length)return s.value;if(!S.value.length)return[...d.value.trueColumns,...d.value.falseColumns];const I=[],O=Q(u.value);return q(S.value,m=>{O[m]&&I.push(O[m])}),I}),f=e.computed(()=>{const I=[],O={};return q(c.value,(m,P)=>{TG({column:m,columnIndex:P,modelIsTableWithoutScroll:r.value,modelColumnsVisibleLocal:E.value,indexFirstScrollInvisibleColumn:n.value})&&(O[I.length]=P,I.push(m))}),{columns:I,columnsIndexesMapping:O}}),C=e.computed(()=>f.value.columnsIndexesMapping),p=e.computed(()=>f.value.columns),h=e.computed(()=>{let I=p.value.length;return r.value&&(I+=t.value.length),l.value&&I++,A.value.length&&I++,I});return{columnIdsGroupByLocked:d,columnsFilteredForRender:p,columnsFilteredForRenderIndexesMapping:C,columnsOrdered:c,countNotHiddenColumns:h}}function s0(_,{modelSort:t=e.ref([])}){const n=e.toRef(_,"columns"),E=e.toRef(_,"showFirstSortingSequenceNumber"),r=e.toRef(_,"sortingSequenceNumberClass"),s=e.computed(()=>le(n.value,h=>LG({column:h}))),i=e.computed(()=>Pt(s.value,(h,I)=>({...h,_index:h.prio||I}))),l=e.computed(()=>Pt(i.value,h=>(h.group&&h.group.length&&(h.group=Pt(h.group,(I,O)=>[I,O].join("%%%"))),h))),L=({groups:h,group:I,level:O,columnsOrderedFromGroups:m,firstLevelGroupObject:P})=>{const y=I?le(h,N=>ns(N,I[O-1])):h,V=Vu(y,N=>N[O]),$=Pt(V,N=>{const D={id:N[O].split("%%%")[0]};let M;return O===0?(M=D,M.columnIndexes=[]):M=P,N.length>O+1?D.children=o_(L({groups:h,group:N,level:O+1,columnsOrderedFromGroups:m,firstLevelGroupObject:M}),"recursiveGroup"):N.length===O+1&&(D.columns=le(l.value,w=>ns(w.group,N[O])),M.columnIndexes.push(...Pt(D.columns,"_index")),m.push(...D.columns)),D});return{columnsOrderedFromGroups:m,recursiveGroup:$}},S=e.computed(()=>Pt(l.value,h=>o_(h,"group",h))),A=e.computed(()=>le(S.value,h=>c_(h))),u=e.computed(()=>le(S.value,h=>!c_(h))),d=e.computed(()=>{const h=[];return L({groups:A.value,group:null,level:0,columnsOrderedFromGroups:h})}),c=e.computed(()=>xo([...d.value.columnsOrderedFromGroups,...u.value],"_index")),f=h=>e.h(NS,{ref:"th",class:"a_table__cell__child_group",column:h,columnGroupNames:Pt(h.group,I=>I.split("%%%")[0]),columnIndex:h._index,hasMultipleActions:!1,modelSort:t.value,showFirstSortingSequenceNumber:E.value,sortingSequenceNumberClass:r.value}),C=h=>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"},[h.id&&e.h(u_,{html:h.id,tag:"span","aria-hidden":!0})]),e.h("div",{class:"a_table__th_group_container"},h.children?Pt(h.children,I=>C(I)):Pt(h.columns,I=>f(I)))])]),p=e.computed(()=>{const h=xo([...d.value.recursiveGroup,...u.value],I=>I.columnIndexes?fu(I.columnIndexes):I._index);return Pt(h,I=>I.columnIndexes?C(I):f(I))});return{columnsOrderedFromSimpleTable:c,renderedGroupedColumns:p}}function o0(_,{emit:t},{checkVisibleColumns:n=()=>{},columnIdsGroupByLocked:E=e.computed(()=>({true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]})),columnsFilteredForRenderIndexesMapping:r=e.computed(()=>({}))}){const s=e.toRef(_,"columns"),i=e.toRef(_,"modelColumnsOrdering"),l=({columnIndexDraggable:A,columnIndexOver:u,reset:d,inHeader:c})=>{if(A===u&&!d)return;c&&(A=r.value[A],u=r.value[u]);let f;if(d)f=[...E.value.true,...E.value.false];else{f=Q(i.value);const C=f[A];f.splice(A,1),f.splice(u,0,C)}t("changeColumnsOrdering",{columnIndexDraggable:A,columnIndexOver:u,modelColumnsOrdering:f}),setTimeout(()=>{n()})},L=()=>{let A=[],u=!1;if(!i.value.length)A=[...E.value.true,...E.value.false];else{A=[...E.value.true];const d=Q(E.value.falseObject);q(i.value,c=>{d[c]&&(A.push(c),delete d[c])}),q(d,(c,f)=>{A.push(f)}),JSON.stringify(i.value)!==JSON.stringify(A)&&(u=!0)}return{shouldFixColumns:u,modelColumnsOrderingLocal:A}},S=()=>{const{shouldFixColumns:A,modelColumnsOrderingLocal:u}=L();A&&t("changeColumnsOrdering",{modelColumnsOrdering:u,shouldFixColumns:A})};return e.watch(s,()=>{S()},{deep:!0}),{changeColumnsOrdering:l,checkColumnsOrdering:L}}function i0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"data"),E=e.toRef(_,"isTree"),r=e.toRef(_,"keyChildren"),s=e.toRef(_,"keyCountAllRowsInData"),i=e.computed(()=>Q_(n.value)),l=e.computed(()=>c_(n.value)),L=e.computed(()=>E_(t.value)?i.value?+o_(n.value,s.value):l.value?E.value?Ku({array:n.value,keyChildren:r.value}):n.value.length:0:t.value),S=e.computed(()=>E_(t.value)?n.value.length:t.value);return{countAllRowsLocal:L,totalRowsCount:S}}function l0({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 L0(_,{emit:t},{checkColumnsOrdering:n=()=>{},checkVisibleColumns:E=()=>{},modelColumnsVisibleLocal:r=e.ref({})}){const s=e.toRef(_,"modelColumnsVisible"),i=e.toRef(_,"columns");return{initTable:()=>{const{shouldFixColumns:L,modelColumnsOrderingLocal:S}=n();let A=!1;zE(s.value)?r.value=Q(s.value):(A=!0,r.value=df(i.value),E()),t("initTable",Q({columnsOrdering:{model:S,shouldFix:L},columnsVisible:{model:r.value,shouldFix:A}}))}}}function S0(_,{emit:t},{closePreviewAll:n=()=>{},scrollToTable:E=()=>{},setFocusToTable:r=()=>{},viewCurrent:s=e.computed(()=>({}))}){const i=e.toRef(_,"isTree"),l=e.toRef(_,"offsetStart"),L=e.toRef(_,"pagination"),S=e.ref(void 0),A=e.ref(void 0),u=()=>{S.value=L.value.limitStart||10,A.value=l.value},d=e.computed(()=>{var h;return i.value?!1:(h=L.value)!=null&&h.use?s.value?s.value.usePagination||!1:!0:!1}),c=e.computed(()=>L.value.position==="top"||L.value.position==="y"),f=e.computed(()=>L.value.position==="bottom"||L.value.position==="y"||!c.value);return{changeLimit:h=>{r(),E(),S.value=h,A.value=l.value,t("changeLimit",{offset:A.value,limit:h}),n()},changeOffset:h=>{let I,O;Q_(h)?(I=h.offset,O=h.reload):(I=h,O=!0),O&&(r(),E()),A.value=I,t("changeOffset",{offset:I,limit:S.value}),O&&n()},initLocalVars:u,limit:S,offset:A,usePaginationBottom:f,usePaginationLocal:d,usePaginationTop:c}}function T0({columnsOrdered:_=e.ref([]),isMobile:t=e.ref(!1),modelColumnsVisibleLocal:n=e.ref({})}){return{allVisibleMobileColumns:e.computed(()=>t.value?le(_.value,r=>r.isRender!==!1&&n.value[r.id]!==!1):[])}}function A0(_,{emit:t},{checkVisibleColumns:n=()=>{},isMultipleActionsActive:E=e.ref(void 0),rowsLocalAll:r=e.computed(()=>[]),rowsLocalLength:s=e.computed(()=>0)}){const i=e.toRef(_,"id"),l=e.toRef(_,"multipleActions"),L=e.ref(void 0),S=e.ref({}),A=e.ref(!1),u=e.computed(()=>l.value.length>0),d=e.computed(()=>V_(o_(L.value,"isHiddenCallback"))),c=e.computed(()=>le(r.value,(V,$)=>S.value[$])),f=()=>{S.value={}},C=()=>{E.value=!1,L.value=void 0,A.value=!1,f()},p=()=>{if(window.isScrollDisabled)return;const V=Cf({tableId:i.value});Fe({selector:`#${V}`})},h=({isActive:V,action:$}={})=>{if(V){E.value=!0,L.value=$,setTimeout(()=>{n(),p()}),t("toggleMultipleActions",{isActive:V,action:$});return}E.value?C():E.value=!0,setTimeout(()=>{n(),p()}),t("toggleMultipleActions",{isActive:V,action:$})},I=e.computed(()=>zE(S.value)),O=e.computed(()=>s.value>0&&s.value===I.value),m=e.computed(()=>I.value>0);return{areAllRowsSelected:A,areAllVisibleRowsSelected:O,areSomeRowsSelected:m,closeMultipleActionsActive:C,currentMultipleActions:L,hasMultipleActions:u,selectedRows:c,selectedRowsIndexes:S,setEmptySelectedRowsIndexes:f,setSelectedRowsIndexes:({rowIndex:V,isAll:$})=>{if($){if(m.value)f();else{const N={};d.value?Xt(s.value,D=>{L.value.isHiddenCallback({row:r.value[D],rowIndex:D})||(N[D]=!0)}):Xt(s.value,D=>{N[D]=!0}),S.value=N}return}S.value[V]?delete S.value[V]:S.value[V]=!0},toggleBtnAllRows:()=>{A.value=!A.value,A.value&&f()},toggleMultipleActionsActive:h}}function u0(_,{emit:t},{aTableRef:n=e.ref({}),previewBoxWidthRemLocal:E=e.computed(()=>0),tableGrandparentRef:r=e.ref({})}){const{previewRef:s,removePreviewRef:i}=Nf(),l=200,L=50;let S,A=0,u=0,d=0;const c=()=>{var D;if(!((D=n.value)!=null&&D.getBoundingClientRect))return;u=n.value.getBoundingClientRect().left},f=({clientWidth:N})=>{A=N,S=N/100*L,c()},C=({clientWidthLocal:N,clientXTableParent:D,previewBoxWidth:M})=>{const w=N-D-M;n.value.style.width=`${w}px`},p=({clientX:N=0,previewRef:D,previewBoxWidth:M=0})=>{let w=M||A-N;w<l?w=l:w>S&&(w=S),C({clientWidthLocal:A,clientXTableParent:u,previewBoxWidth:w}),D.style.width=`${w}px`},h=({previewRef:N})=>{o_(N,"style.removeProperty")&&N.style.removeProperty("width"),o_(n,"value.style.removeProperty")&&n.value.style.removeProperty("width")},I=({previewRef:N})=>{A=document.documentElement.clientWidth,d=o_(r,"value.offsetWidth",0),c(),p({previewRef:N,previewBoxWidth:E.value})},O=({previewRef:N,isOpen:D})=>{D?I({previewRef:N}):h({previewRef:N})},m=({previewRightWidth:N})=>{t("mouseupResizePreviewRight",{previewRightWidth:N})},P=()=>{I({previewRef:s.value})},y=new ResizeObserver(ts(N=>{const D=N[0].contentRect;d!==D.width&&(d=D.width,P())},300)),V=()=>{y.observe(r.value)},$=()=>{y.unobserve(r.value)};return e.onBeforeUnmount(()=>{i(),$()}),{addEventListenerWindowResize:V,mousedownResizePreviewRight:f,mousemoveResizePreviewRight:p,mouseupResizePreviewRight:m,removeEventListenerWindowResize:$,togglePreviewResize:O}}function d0(_,t,{aTableRef:n=e.ref({}),isMobile:E=e.ref(void 0),previewBoxWidthRemLocal:r=e.computed(()=>0),rowsLocalAll:s=e.computed(()=>[]),tableGrandparentRef:i=e.ref({})}){const{isDropdownGlobalOpen:l}=rS(),{addEventListenerWindowResize:L,mousedownResizePreviewRight:S,mousemoveResizePreviewRight:A,mouseupResizePreviewRight:u,removeEventListenerWindowResize:d,togglePreviewResize:c}=u0(_,t,{aTableRef:n,previewBoxWidthRemLocal:r,tableGrandparentRef:i}),f=e.toRef(_,"keyId"),C=e.toRef(_,"preview"),p=e.toRef(_,"id"),h=t.emit,I=e.ref({}),O=e.ref(void 0),m=e.ref(void 0),P=e.computed(()=>!!C.value),y=({rowIndex:r_})=>{window.isScrollDisabled||setTimeout(()=>{const h_=`#${p.value}_${r_}`;Fe({selector:h_})})},V=()=>{window.isScrollDisabled||setTimeout(()=>{const r_=`#${ff({tableId:p.value})}`;Fe({selector:r_})})},$=e.computed(()=>C.value==="right"||E.value),N=e.computed(()=>!E_(O.value)),D=()=>{y({rowIndex:O.value}),h("togglePreview",{row:s.value[O.value],rowIndex:O.value,typeToggle:"close"}),m.value=O.value,O.value=void 0,d()},M=()=>{h("togglePreview",{row:s.value[O.value],rowIndex:O.value,typeToggle:"close"}),m.value=void 0,O.value=void 0,d()},w=e.computed(()=>C.value==="down"),z=({rowIndex:r_,row:h_})=>{const p_=Yi({row:h_,rowIndex:r_,keyId:f.value});delete I.value[p_]},t_=()=>{I.value={}},L_=()=>{M(),t_()},s_=({rowIndex:r_,row:h_}={})=>{$.value?D():w.value&&z({rowIndex:r_,row:h_})},__=({rowIndex:r_})=>{!E.value&&B_(O.value)&&L(),h("togglePreview",{row:s.value[r_],rowIndex:r_,typeToggle:"open"}),O.value=r_,m.value=void 0,V()},i_=({rowIndex:r_})=>{O.value===r_?D():__({rowIndex:r_})},I_=({rowIndex:r_,row:h_})=>{const p_=Yi({row:h_,rowIndex:r_,keyId:f.value});I.value[p_]?delete I.value[p_]:I.value[p_]=!0};return{closePreview:s_,closePreviewAll:L_,hasPreview:P,isPreviewRightOpen:N,mousedownResizePreviewRight:S,mousemoveResizePreviewRight:A,mouseupResizePreviewRight:u,onTogglePreview:({row:r_,rowIndex:h_})=>{if(!l.value){if($.value){i_({rowIndex:h_});return}w.value&&I_({row:r_,rowIndex:h_})}},previewDownRowIds:I,previewRightRowIndex:O,previewRightRowIndexLast:m,togglePreviewResize:c}}function c0(_,{dataSorted:t=e.computed(()=>[]),limit:n=e.ref(0),offset:E=e.ref(0),setEmptySelectedRowsIndexes:r=()=>{},usePaginationLocal:s=e.computed(()=>!1)}){const i=e.toRef(_,"clearSelectedRowsOnDataChange"),l=e.toRef(_,"pagination"),L=e.toRef(_,"rowsCountRenderPerTick"),S=e.ref([]),A=e.ref([]);let u=!0,d=0,c;const f=e.computed(()=>{if(n.value&&!l.value.isOutside&&s.value){const $=E.value,N=$+n.value;return t.value.slice($,N)}return t.value}),C=e.computed(()=>f.value),p=e.computed(()=>C.value.length),h=e.computed(()=>!!p.value),I=()=>{const $=d*L.value,N=$+L.value;Pt(f.value.slice($,N),D=>A.value.push(D)),d++},O=()=>{c=setInterval(()=>{d*L.value>=f.value.length?clearInterval(c):I()})},m=()=>{clearInterval(c)},P=({row:$,rowIndex:N})=>{N>A.value.length-1||(A.value[N]=$)},y=({row:$})=>{A.value.unshift($)},V=({index:$})=>{A.value.splice($,1)};return e.watch(f,$=>{SL($,S.value)||(S.value=[...$],!u&&i.value&&r(),u=!1,A.value=[],d=0,m(),L.value>0?(I(),O()):A.value=f.value)},{immediate:!0,deep:!0}),{addRow:y,deleteRow:V,hasRows:h,rowsLocal:A,rowsLocalAll:C,rowsLocalLength:p,stopRenderRows:m,updateRow:P}}function f0(_,{emit:t},{columnActionsWidthLocal:n=e.computed(()=>0),columnActionsWidthMinLocal:E=e.computed(()=>0),columnsOrdered:r=e.computed(()=>[]),columnsScrollInvisible:s=e.ref([]),columnWidthDefaultRemLocal:i=e.computed(()=>0),indexFirstScrollInvisibleColumn:l=e.ref(void 0),isMobile:L=e.ref(!1),isMultipleActionsActive:S=e.ref(void 0),modelColumnsVisibleLocal:A=e.ref({}),modelIsTableWithoutScroll:u=e.ref(!1),modelIsTableWithoutScrollComputed:d=e.computed(()=>!1)}){const c=e.toRef(_,"isActionColumnVisible"),f=e.toRef(_,"isSimpleTable"),C=e.toRef(_,"useRem"),{scalePxWithRem:p}=dr(),h=e.ref(void 0),I=e.ref(0),O=e.ref(void 0);let m=!1;const P=20,y=__=>C.value?p(__):__,V=e.computed(()=>c.value?E.value:0),$=e.computed(()=>{const __=S.value?E.value:0,i_=f.value?0:P;return __+i_}),N=({sumGrows:__=0,freeSpaceWidth:i_=0})=>{__>0?I.value=i_/__:I.value=0},D=()=>{if(E_(l.value)||r.value.length<l.value)s.value=[];else{const __=[];for(let i_=l.value;i_<r.value.length;i_++){const I_=r.value[i_];ks({column:I_,modelColumnsVisibleLocal:A.value})&&__.push(Q(I_))}s.value=__}},M=()=>{s.value=[],I.value=0,l.value=1e3,O.value=0},w=()=>{if(L.value||O.value===0){M();return}if(B_(O.value))return;const __=O.value-$.value-V.value,i_=O.value-$.value-n.value;let I_=0,N_=0,r_=0,h_=!1;if(q(r.value,f_=>{if(!ks({column:f_,modelColumnsVisibleLocal:A.value})){N_++;return}const X=+y(f_.width)||i.value;if(I_+X>__)return h_=!0,!1;I_+=X,N_++,r_+=E_(f_.grow)?1:f_.grow}),h_&&I_>i_)for(let f_=N_-1;f_>=0;f_--){N_--;const X=r.value[N_];if(!ks({column:X,modelColumnsVisibleLocal:A.value}))continue;const n_=+y(X.width)||i.value;if(I_-=n_,r_-=E_(X.grow)?1:X.grow,I_<=i_)break}let p_=0;const H_=h_?i_:__;(d.value||N_===r.value.length)&&(p_=H_-I_),l.value=N_,N({sumGrows:r_,freeSpaceWidth:p_}),D()},z=({entries:__,forceAdjust:i_})=>{const I_=__[0].contentRect;(i_||O.value>I_.width+P||O.value<I_.width-P)&&(m||(m=!0,O.value=I_.width,w(),m=!1))},t_=new ResizeObserver(ts(__=>{B_(O.value)?z({entries:__,forceAdjust:!0}):z({entries:__})},300)),L_=__=>{__?(t_.unobserve(h.value),M()):(t_.observe(h.value),u.value&&w())},s_=__=>{u.value=__,t("updateModelIsTableWithoutScroll",__),u.value&&w()};return e.onMounted(()=>{L.value||t_.observe(h.value)}),e.onBeforeUnmount(()=>{t_.unobserve(h.value)}),e.watch(r,()=>{w()}),{aTableRef:h,changeModelIsTableWithoutScroll:s_,checkVisibleColumns:w,columnsVisibleAdditionalSpaceForOneGrow:I,onWatchMobileScrollControl:L_}}function C0(_){const t=e.toRef(_,"hasMobile"),n=e.toRef(_,"isActionColumnVisible"),E=e.toRef(_,"isActionColumnVisible"),r=e.toRef(_,"isColumnsDnd"),s=e.toRef(_,"isSimpleTable"),i=e.toRef(_,"modelIsTableWithoutScrollStart"),l=e.toRef(_,"rowActions"),L=e.ref(void 0),S=()=>{L.value=i.value},{isMobileWidth:A}=Et(),u=e.computed(()=>s.value?l.value&&!!l.value.length&&n.value:E.value),d=e.computed(()=>!!(E.value&&!s.value)),c=e.computed(()=>!!(r.value&&!s.value)),f=e.computed(()=>t.value?!!A.value:!1),C=e.computed(()=>s.value?!1:L.value);return{initModelIsTableWithoutScroll:S,isActionColumnVisibleLocal:u,isActionIconVisibleLocal:d,isColumnsDndLocal:c,isMobile:f,modelIsTableWithoutScroll:L,modelIsTableWithoutScrollComputed:C}}function R0(_,{viewCurrent:t=e.computed(()=>({}))}){const n=e.toRef(_,"data"),E=e.toRef(_,"isSortingOutside"),r=e.toRef(_,"modelSort"),s=e.toRef(_,"useAdditionalSorting"),i=e.ref([]),l=e.computed(()=>s.value?t.value?t.value.useAdditionalSorting||!1:!0:!1),L=()=>{Ee(r.value)?i.value=[r.value]:c_(r.value)&&(i.value=Q(r.value))},S=e.computed(()=>{const u={models:[],directions:[]};return i.value.length&&q(i.value,d=>{let c="asc",f=d;fL(d,"-")&&(c="desc",f=d.slice(1)),u.models.push(f),u.directions.push(c)}),u}),A=e.computed(()=>i.value.length&&!E.value?TL(n.value||[],S.value.models,S.value.directions):n.value||[]);return e.watch(r,()=>{L()}),{dataSorted:A,initModelSort:L,modelSortLocal:i,useAdditionalSortingLocal:l}}function h0(_,{emit:t},{modelSortLocal:n=e.ref([]),closePreviewAll:E=()=>{}}){const r=e.toRef(_,"id"),s=e.toRef(_,"isSortingMultiColumn"),i=e.toRef(_,"sortingMultiColumnKey"),l=e.computed(()=>`${i.value}Key`),L=d=>s.value&&d[l.value],S=({sortId:d})=>{const c=n.value.indexOf(d);if(c!==-1){n.value.splice(c,1,`-${d}`);return}const f=n.value.indexOf(`-${d}`);if(f!==-1){n.value.splice(f,1);return}n.value.push(d)},A=({sortId:d})=>{if(n.value.indexOf(d)!==-1){n.value=[`-${d}`];return}if(n.value.indexOf(`-${d}`)!==-1){n.value=[];return}n.value=[d]};return{changeModelSort:({sortId:d,$event:c,modelAll:f})=>{f?n.value=f:L(c)?S({sortId:d}):A({sortId:d}),t("changeSorting",{modelSort:Q(n.value)}),pe.$emit("changeTableSorting",{modelSort:Q(n.value),tableId:r.value}),E()}}}function p0(_,{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 I0(_,{countNotHiddenColumns:t=e.computed(()=>-1),isMobile:n=e.ref(!1)}){const E=e.toRef(_,"id"),r=e.toRef(_,"isLabelVisible"),s=e.computed(()=>{const L={};return n.value||(L.role="table",L["aria-colcount"]=t.value),L}),i=e.computed(()=>n.value?"list":"rowgroup"),l=e.computed(()=>{if(r.value)return Rf({tableId:E.value})});return{tableChildRole:i,tableLabelId:l,tableRoleAttributes:s}}function O0(_,{emit:t},{modelColumnsVisibleLocal:n=e.ref({}),checkVisibleColumns:E=()=>{}}){return{changeModelColumnsVisible:s=>{n.value=s,t("update:modelColumnsVisible",Q(n.value)),E()}}}function U0(_){const t=e.toRef(_,"texts");return{emptyText:e.computed(()=>B_(t.value.empty)?"_A_TABLE_EMPTY_TEXT_":t.value.empty)}}function m0(){const _=e.ref([]),t=e.ref(void 0),n=e.ref(void 0),E=e.ref({}),r=e.ref(void 0),s=e.ref(void 0);return{columnsScrollInvisible:_,indexFirstScrollInvisibleColumn:t,isMultipleActionsActive:n,modelColumnsVisibleLocal:E,tableGrandparentRef:r,tableRef:s}}function N0(_,{emit:t},{closePreviewAll:n=()=>{}}){const E=e.toRef(_,"views"),r=e.toRef(_,"modelFilters"),s=e.toRef(_,"modelView"),i=e.computed(()=>jE(E.value,"id")),l=e.computed(()=>i.value[s.value]),L=e.computed(()=>E.value.length>1),S=()=>{if(L.value){const d=vo(E.value,["active",!0]);let c=E.value[0].id;d&&(c=d.id),t("updateView",{_modelView:c,view:i.value[c],modelFilters:r.value,init:!0})}},A=d=>{n(),t("updateView",{_modelView:d,view:i.value[d],modelFilters:r.value})},u=e.computed(()=>!l.value||l.value.type==="table");return{hasViews:L,initViewCurrent:S,isViewTableVisible:u,updateViewCurrent:A,viewCurrent:l}}function b0(_){const t=e.toRef(_,"columnActionsWidth"),n=e.toRef(_,"columnActionsWidthDefaults"),E=e.toRef(_,"columnActionsWidthMin"),r=e.toRef(_,"columnWidthDefault"),s=e.toRef(_,"previewBoxWidth"),i=e.toRef(_,"useRem"),{scalePxWithRem:l}=dr(),L=e.computed(()=>i.value?l(t.value):t.value),S=e.computed(()=>i.value?l(E.value):E.value),A=e.computed(()=>i.value?l(r.value):r.value),u=e.computed(()=>i.value?l(s.value):s.value);return{columnActionsWidthDefaultsRemLocal:e.computed(()=>i.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:S,columnActionsWidthRemLocal:L,columnWidthDefaultRemLocal:A,previewBoxWidthRemLocal:u}}const g0={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:()=>pr.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:()=>j_("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:_=>Zn(_)&&_>=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:r,columnWidthDefaultRemLocal:s,previewBoxWidthRemLocal:i}=b0(_),{initModelIsTableWithoutScroll:l,isActionColumnVisibleLocal:L,isActionIconVisibleLocal:S,isColumnsDndLocal:A,isMobile:u,modelIsTableWithoutScroll:d,modelIsTableWithoutScrollComputed:c}=C0(_),{countAllRowsLocal:f,totalRowsCount:C}=i0(_),{columnsScrollInvisible:p,indexFirstScrollInvisibleColumn:h,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,tableGrandparentRef:m,tableRef:P}=m0(),{scrollToTable:y,setFocusToTable:V}=l0({tableRef:P}),{hasViews:$,initViewCurrent:N,isViewTableVisible:D,updateViewCurrent:M,viewCurrent:w}=N0(_,t,{closePreviewAll:GE}),{dataSorted:z,initModelSort:t_,modelSortLocal:L_,useAdditionalSortingLocal:s_}=R0(_,{viewCurrent:w}),{columnsOrderedFromSimpleTable:__,renderedGroupedColumns:i_}=s0(_,{modelSort:L_}),{columnIdsGroupByLocked:I_,columnsFilteredForRender:N_,columnsFilteredForRenderIndexesMapping:r_,columnsOrdered:h_,countNotHiddenColumns:p_}=r0(_,{columnsScrollInvisible:p,indexFirstScrollInvisibleColumn:h,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:c,columnsOrderedFromSimpleTable:__}),{changeLimit:H_,changeOffset:f_,initLocalVars:X,limit:n_,offset:U_,usePaginationBottom:W,usePaginationLocal:T_,usePaginationTop:A_}=S0(_,t,{closePreviewAll:GE,scrollToTable:y,setFocusToTable:V,viewCurrent:w}),{addRow:O_,deleteRow:D_,hasRows:b_,rowsLocal:q_,rowsLocalAll:J_,rowsLocalLength:G_,stopRenderRows:ne,updateRow:Oe}=c0(_,{dataSorted:z,limit:n_,offset:U_,setEmptySelectedRowsIndexes:P_,usePaginationLocal:T_}),{columnActionsBtnGroupMaxWidthStyle:te,columnActionsWidthLocal:K_,columnActionsWidthMinLocal:oe,isColumnActionWide:Te}=a0(_,{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:r,isMobile:u,rowsLocal:q_}),{aTableRef:ce,changeModelIsTableWithoutScroll:me,checkVisibleColumns:xe,columnsVisibleAdditionalSpaceForOneGrow:je,onWatchMobileScrollControl:ze}=f0(_,t,{columnActionsWidthLocal:K_,columnActionsWidthMinLocal:oe,columnsOrdered:h_,columnsScrollInvisible:p,columnWidthDefaultRemLocal:s,indexFirstScrollInvisibleColumn:h,isMobile:u,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,modelIsTableWithoutScroll:d,modelIsTableWithoutScrollComputed:c}),{changeColumnsOrdering:Mn,checkColumnsOrdering:cn}=o0(_,t,{checkVisibleColumns:xe,columnIdsGroupByLocked:I_,columnsFilteredForRenderIndexesMapping:r_}),{isRowActionsStickyLocal:Fn}=p0(_,{isMobile:u,modelIsTableWithoutScrollComputed:c}),{areAllRowsSelected:zt,areAllVisibleRowsSelected:Jt,areSomeRowsSelected:et,closeMultipleActionsActive:It,currentMultipleActions:fn,hasMultipleActions:Cn,selectedRows:va,selectedRowsIndexes:Gn,setEmptySelectedRowsIndexes:vn,setSelectedRowsIndexes:wn,toggleBtnAllRows:Zt,toggleMultipleActionsActive:wa}=A0(_,t,{checkVisibleColumns:xe,isMultipleActionsActive:I,rowsLocalAll:J_,rowsLocalLength:G_}),{changeModelColumnsVisible:xa}=O0(_,t,{modelColumnsVisibleLocal:O,checkVisibleColumns:xe}),{closePreview:Ne,closePreviewAll:Qt,hasPreview:sa,isPreviewRightOpen:oa,onTogglePreview:xn,mousedownResizePreviewRight:ia,mousemoveResizePreviewRight:Hn,mouseupResizePreviewRight:Ha,previewDownRowIds:it,previewRightRowIndex:FE,previewRightRowIndexLast:Nr,togglePreviewResize:br}=d0(_,t,{aTableRef:ce,isMobile:u,previewBoxWidthRemLocal:i,rowsLocalAll:J_,tableGrandparentRef:m}),{tableChildRole:qa,tableLabelId:gr,tableRoleAttributes:Mt}=I0(_,{countNotHiddenColumns:p_,isMobile:u}),{allVisibleMobileColumns:Yr}=T0({columnsOrdered:h_,isMobile:u,modelColumnsVisibleLocal:O}),{changeModelSort:Pr}=h0(_,t,{modelSortLocal:L_,closePreviewAll:GE}),{initTable:Wa}=L0(_,t,{checkColumnsOrdering:cn,checkVisibleColumns:xe,modelColumnsVisibleLocal:O}),{emptyText:Vr}=U0(_);function GE(){Qt()}function P_(){vn()}return e.watch(u,G=>{ze(G),GE()}),e.watch(Te,(G,a_)=>{G!==a_&&xe()}),e.provide("changeModelIsTableWithoutScroll",me),e.provide("changeModelSort",Pr),e.provide("columnsOrdered",h_),e.provide("columnsFilteredForRender",N_),e.provide("columnsScrollInvisible",p),e.provide("columnWidthDefault",s),e.provide("columnsVisibleAdditionalSpaceForOneGrow",je),e.provide("columnActionsWidthLocal",K_),e.provide("columnActionsWidthMinLocal",oe),e.provide("currentMultipleActions",fn),e.provide("hasPreview",sa),e.provide("indexFirstScrollInvisibleColumn",h),e.provide("isActionColumnVisible",L),e.provide("isActionIconVisible",S),e.provide("isColumnsDnd",A),e.provide("isMobile",u),e.provide("isMultipleActionsActive",I),e.provide("modelIsTableWithoutScroll",c),e.provide("onTogglePreview",xn),e.provide("previewRightRowIndex",FE),e.provide("previewRightRowIndexLast",Nr),e.provide("rowsLocalAll",J_),e.provide("modelColumnsVisibleLocal",O),e.provide("changeColumnsOrdering",Mn),X(),l(),N(),Wa(),t_(),{addRow:O_,allVisibleMobileColumns:Yr,areAllRowsSelected:zt,areAllVisibleRowsSelected:Jt,areSomeRowsSelected:et,aTableRef:ce,changeLimit:H_,changeModelColumnsVisible:xa,changeOffset:f_,checkVisibleColumns:xe,closeMultipleActionsActive:It,closePreview:Ne,closePreviewAll:GE,columnActionsBtnGroupMaxWidthStyle:te,columnsFilteredForRender:N_,columnsOrdered:h_,countAllRowsLocal:f,deleteRow:D_,emptyText:Vr,hasMultipleActions:Cn,hasRows:b_,hasViews:$,isMobile:u,isMultipleActionsActive:I,isPreviewRightOpen:oa,isRowActionsStickyLocal:Fn,isViewTableVisible:D,limit:n_,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:c,modelSortLocal:L_,mousedownResizePreviewRight:ia,mousemoveResizePreviewRight:Hn,mouseupResizePreviewRight:Ha,offset:U_,onTogglePreview:xn,previewDownRowIds:it,previewRightRowIndex:FE,renderedGroupedColumns:i_,rowsLocal:q_,rowsLocalAll:J_,rowsLocalLength:G_,selectedRows:va,selectedRowsIndexes:Gn,setEmptySelectedRowsIndexes:P_,setSelectedRowsIndexes:wn,stopRenderRows:ne,tableChildRole:qa,tableGrandparentRef:m,tableLabelId:gr,tableRef:P,tableRoleAttributes:Mt,toggleBtnAllRows:Zt,toggleMultipleActionsActive:wa,togglePreviewResize:br,totalRowsCount:C,updateRow:Oe,updateViewCurrent:M,useAdditionalSortingLocal:s_,usePaginationBottom:W,usePaginationLocal:T_,usePaginationTop:A_,viewCurrent:w}},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(qG,{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?e.h(OS,{class:"a_table__pagination_top",countAllRows:this.countAllRowsLocal,disabled:this.pagination.disabled,hasRows:this.hasRows,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,maxPages:this.pagination.maxPages,offset:this.offset,rowsLength:this.rowsLocalLength,totalRowsCount:this.totalRowsCount,"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(cG,{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(OG,{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(CS,{isLoading:this.isLoadingTable},()=>[e.h("div",{class:"a_table__body",role:this.tableChildRole},{default:()=>this.rowsLocal.map((_,t)=>{const n=Yi({row:_,rowIndex:t,keyId:this.keyId});return e.h(Bf,{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,rowsLength:this.rowsLocal.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Ni,{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(u_,{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=Yi({row:_,rowIndex:t,keyId:this.keyId});return e.h(Bf,{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,rowsLength:this.rowsFooter.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Ni,{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?e.h(OS,{class:"a_table__pagination_bottom",countAllRows:this.countAllRowsLocal,disabled:this.pagination.disabled,hasRows:this.hasRows,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,maxPages:this.pagination.maxPages,offset:this.offset,rowsLength:this.rowsLocalLength,totalRowsCount:this.totalRowsCount,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isPreviewRightOpen?e.h(PG,{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 yf(_){const t=e.toRef(_,"activeTabIdLocal"),n=e.toRef(_,"index"),E=e.toRef(_,"keyId"),r=e.toRef(_,"parentId"),s=e.toRef(_,"tab"),i=e.computed(()=>E.value?o_(s.value,E.value):n.value),l=e.computed(()=>t.value===i.value),L=e.computed(()=>`${r.value}_${n.value}`);return{idForContent:e.computed(()=>`${L.value}_content`),idLocal:L,isActive:l,tabIdLocal:i}}function Y0(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyContent");return{contentLocal:e.computed(()=>{if(n.value)return o_(t.value,n.value)})}}const P0={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:r}=yf(_),{contentLocal:s}=Y0(_);return{contentLocal:s,idForContent:t,idLocal:n,isActive:E,tabIdLocal:r}},render(){let _="";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(u_,{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 V0({isDisabled:_=e.computed(()=>!1)}){return{tabindexLocal:e.computed(()=>_.value?-1:0)}}function D0(_,{emit:t},{isDisabled:n=e.computed(()=>!1),tabIdLocal:E=e.computed(()=>"")}){const r=e.toRef(_,"index"),s=e.toRef(_,"tab"),i=L=>{n.value||t("changeTab",{$event:L,tab:s.value,tabId:E.value,index:r.value})};return{changeTabLocal:i,keydownTab:L=>{(L.keyCode===j.enter||L.keyCode===j.space)&&(i(L),L.stopPropagation(),L.preventDefault())}}}function B0(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"keyDisabled"),E=e.toRef(_,"tab");return{isDisabled:e.computed(()=>{if(t.value||n.value&&o_(E.value,n.value)===!0)return!0})}}function y0(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyLabel");return{labelLocal:e.computed(()=>{if(n.value)return o_(t.value,n.value)})}}function $0(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyTitle");return{titleLocal:e.computed(()=>{if(n.value)return o_(t.value,n.value)})}}const M0={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:_=>dt.indexOf(_)!==-1}},emits:["changeTab"],setup(_,t){const{idForContent:n,idLocal:E,isActive:r,tabIdLocal:s}=yf(_),{isDisabled:i}=B0(_),{tabindexLocal:l}=V0({isDisabled:i}),{changeTabLocal:L,keydownTab:S}=D0(_,t,{isDisabled:i,tabIdLocal:s}),{labelLocal:A}=y0(_),{titleLocal:u}=$0(_);return{changeTabLocal:L,idForContent:n,idLocal:E,isActive:r,isDisabled:i,keydownTab:S,labelLocal:A,tabindexLocal:l,tabIdLocal:s,titleLocal:u}},render(){let _="";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(u_,{html:this.labelLocal,tag:"span"})),e.h("li",{class:["a_tabs__list__item",this.tab.classLi]},[e.h(S_,{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 F0(_,{emit:t}){const n=e.toRef(_,"activeTabId"),E=e.toRef(_,"data"),r=e.toRef(_,"isChangeOutside"),s=e.toRef(_,"keyActive"),i=e.toRef(_,"keyId"),l=e.ref(void 0),L=()=>{E_(n.value)||(l.value=n.value)};return{activeTabIdLocal:l,changeTab:({$event:u,tab:d,tabId:c,index:f})=>{l.value!==c&&(r.value||(l.value=c),t("change",{$event:u,tab:d,tabId:c,index:f}))},initActiveTabIdLocal:()=>{L(),E_(l.value)&&(s.value&&(q(E.value,(u,d)=>{if(o_(u,s.value))return i.value?l.value=o_(u,i.value)||d:l.value=d,!1}),!E_(l.value))||(i.value?l.value=o_(E.value,`[0].${i.value}`)||0:l.value=0))},setActiveTabIdLocal:L}}const G0={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:()=>j_("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:_=>dt.indexOf(_)!==-1}},emits:["change"],setup(_,t){const n=e.toRef(_,"activeTabId"),{activeTabIdLocal:E,changeTab:r,initActiveTabIdLocal:s,setActiveTabIdLocal:i}=F0(_,t);return s(),e.watch(n,()=>{i()}),{activeTabIdLocal:E,changeTab:r}},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(M0,{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(P0,{key:t,activeTabIdLocal:this.activeTabIdLocal,index:t,keyContent:this.keyContent,keyId:this.keyId,parentId:this.id,tab:_},this.$slots))])])}};function $f(_,t){return function(){return _.apply(t,arguments)}}const{toString:v0}=Object.prototype,{getPrototypeOf:bS}=Object,Pi=(_=>t=>{const n=v0.call(t);return _[n]||(_[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),un=_=>(_=_.toLowerCase(),t=>Pi(t)===_),Vi=_=>t=>typeof t===_,{isArray:Ir}=Array,Xs=Vi("undefined");function w0(_){return _!==null&&!Xs(_)&&_.constructor!==null&&!Xs(_.constructor)&&$t(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const Mf=un("ArrayBuffer");function x0(_){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(_):t=_&&_.buffer&&Mf(_.buffer),t}const H0=Vi("string"),$t=Vi("function"),Ff=Vi("number"),Di=_=>_!==null&&typeof _=="object",q0=_=>_===!0||_===!1,Bi=_=>{if(Pi(_)!=="object")return!1;const t=bS(_);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in _)&&!(Symbol.iterator in _)},W0=un("Date"),k0=un("File"),X0=un("Blob"),K0=un("FileList"),j0=_=>Di(_)&&$t(_.pipe),z0=_=>{let t;return _&&(typeof FormData=="function"&&_ instanceof FormData||$t(_.append)&&((t=Pi(_))==="formdata"||t==="object"&&$t(_.toString)&&_.toString()==="[object FormData]"))},J0=un("URLSearchParams"),[Z0,Q0,_v,ev]=["ReadableStream","Request","Response","Headers"].map(un),tv=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ks(_,t,{allOwnKeys:n=!1}={}){if(_===null||typeof _>"u")return;let E,r;if(typeof _!="object"&&(_=[_]),Ir(_))for(E=0,r=_.length;E<r;E++)t.call(null,_[E],E,_);else{const s=n?Object.getOwnPropertyNames(_):Object.keys(_),i=s.length;let l;for(E=0;E<i;E++)l=s[E],t.call(null,_[l],l,_)}}function Gf(_,t){t=t.toLowerCase();const n=Object.keys(_);let E=n.length,r;for(;E-- >0;)if(r=n[E],t===r.toLowerCase())return r;return null}const Ma=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vf=_=>!Xs(_)&&_!==Ma;function gS(){const{caseless:_}=vf(this)&&this||{},t={},n=(E,r)=>{const s=_&&Gf(t,r)||r;Bi(t[s])&&Bi(E)?t[s]=gS(t[s],E):Bi(E)?t[s]=gS({},E):Ir(E)?t[s]=E.slice():t[s]=E};for(let E=0,r=arguments.length;E<r;E++)arguments[E]&&Ks(arguments[E],n);return t}const nv=(_,t,n,{allOwnKeys:E}={})=>(Ks(t,(r,s)=>{n&&$t(r)?_[s]=$f(r,n):_[s]=r},{allOwnKeys:E}),_),Ev=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),av=(_,t,n,E)=>{_.prototype=Object.create(t.prototype,E),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:t.prototype}),n&&Object.assign(_.prototype,n)},rv=(_,t,n,E)=>{let r,s,i;const l={};if(t=t||{},_==null)return t;do{for(r=Object.getOwnPropertyNames(_),s=r.length;s-- >0;)i=r[s],(!E||E(i,_,t))&&!l[i]&&(t[i]=_[i],l[i]=!0);_=n!==!1&&bS(_)}while(_&&(!n||n(_,t))&&_!==Object.prototype);return t},sv=(_,t,n)=>{_=String(_),(n===void 0||n>_.length)&&(n=_.length),n-=t.length;const E=_.indexOf(t,n);return E!==-1&&E===n},ov=_=>{if(!_)return null;if(Ir(_))return _;let t=_.length;if(!Ff(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=_[t];return n},iv=(_=>t=>_&&t instanceof _)(typeof Uint8Array<"u"&&bS(Uint8Array)),lv=(_,t)=>{const E=(_&&_[Symbol.iterator]).call(_);let r;for(;(r=E.next())&&!r.done;){const s=r.value;t.call(_,s[0],s[1])}},Lv=(_,t)=>{let n;const E=[];for(;(n=_.exec(t))!==null;)E.push(n);return E},Sv=un("HTMLFormElement"),Tv=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,E,r){return E.toUpperCase()+r}),wf=(({hasOwnProperty:_})=>(t,n)=>_.call(t,n))(Object.prototype),Av=un("RegExp"),xf=(_,t)=>{const n=Object.getOwnPropertyDescriptors(_),E={};Ks(n,(r,s)=>{let i;(i=t(r,s,_))!==!1&&(E[s]=i||r)}),Object.defineProperties(_,E)},uv=_=>{xf(_,(t,n)=>{if($t(_)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const E=_[n];if($t(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+"'")})}})},dv=(_,t)=>{const n={},E=r=>{r.forEach(s=>{n[s]=!0})};return Ir(_)?E(_):E(String(_).split(t)),n},cv=()=>{},fv=(_,t)=>_!=null&&Number.isFinite(_=+_)?_:t,YS="abcdefghijklmnopqrstuvwxyz",Hf="0123456789",qf={DIGIT:Hf,ALPHA:YS,ALPHA_DIGIT:YS+YS.toUpperCase()+Hf},Cv=(_=16,t=qf.ALPHA_DIGIT)=>{let n="";const{length:E}=t;for(;_--;)n+=t[Math.random()*E|0];return n};function Rv(_){return!!(_&&$t(_.append)&&_[Symbol.toStringTag]==="FormData"&&_[Symbol.iterator])}const hv=_=>{const t=new Array(10),n=(E,r)=>{if(Di(E)){if(t.indexOf(E)>=0)return;if(!("toJSON"in E)){t[r]=E;const s=Ir(E)?[]:{};return Ks(E,(i,l)=>{const L=n(i,r+1);!Xs(L)&&(s[l]=L)}),t[r]=void 0,s}}return E};return n(_,0)},pv=un("AsyncFunction"),Iv=_=>_&&(Di(_)||$t(_))&&$t(_.then)&&$t(_.catch),Wf=((_,t)=>_?setImmediate:t?((n,E)=>(Ma.addEventListener("message",({source:r,data:s})=>{r===Ma&&s===n&&E.length&&E.shift()()},!1),r=>{E.push(r),Ma.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$t(Ma.postMessage)),Ov=typeof queueMicrotask<"u"?queueMicrotask.bind(Ma):typeof process<"u"&&process.nextTick||Wf,k={isArray:Ir,isArrayBuffer:Mf,isBuffer:w0,isFormData:z0,isArrayBufferView:x0,isString:H0,isNumber:Ff,isBoolean:q0,isObject:Di,isPlainObject:Bi,isReadableStream:Z0,isRequest:Q0,isResponse:_v,isHeaders:ev,isUndefined:Xs,isDate:W0,isFile:k0,isBlob:X0,isRegExp:Av,isFunction:$t,isStream:j0,isURLSearchParams:J0,isTypedArray:iv,isFileList:K0,forEach:Ks,merge:gS,extend:nv,trim:tv,stripBOM:Ev,inherits:av,toFlatObject:rv,kindOf:Pi,kindOfTest:un,endsWith:sv,toArray:ov,forEachEntry:lv,matchAll:Lv,isHTMLForm:Sv,hasOwnProperty:wf,hasOwnProp:wf,reduceDescriptors:xf,freezeMethods:uv,toObjectSet:dv,toCamelCase:Tv,noop:cv,toFiniteNumber:fv,findKey:Gf,global:Ma,isContextDefined:vf,ALPHABET:qf,generateString:Cv,isSpecCompliantForm:Rv,toJSONObject:hv,isAsyncFn:pv,isThenable:Iv,setImmediate:Wf,asap:Ov};function x_(_,t,n,E,r){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),r&&(this.response=r,this.status=r.status?r.status:null)}k.inherits(x_,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const kf=x_.prototype,Xf={};["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(_=>{Xf[_]={value:_}}),Object.defineProperties(x_,Xf),Object.defineProperty(kf,"isAxiosError",{value:!0}),x_.from=(_,t,n,E,r,s)=>{const i=Object.create(kf);return k.toFlatObject(_,i,function(L){return L!==Error.prototype},l=>l!=="isAxiosError"),x_.call(i,_.message,t,n,E,r),i.cause=_,i.name=_.name,s&&Object.assign(i,s),i};const Uv=null;function PS(_){return k.isPlainObject(_)||k.isArray(_)}function Kf(_){return k.endsWith(_,"[]")?_.slice(0,-2):_}function jf(_,t,n){return _?_.concat(t).map(function(r,s){return r=Kf(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function mv(_){return k.isArray(_)&&!_.some(PS)}const Nv=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function yi(_,t,n){if(!k.isObject(_))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,p){return!k.isUndefined(p[C])});const E=n.metaTokens,r=n.visitor||A,s=n.dots,i=n.indexes,L=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function S(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(!L&&k.isBlob(f))throw new x_("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?L&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function A(f,C,p){let h=f;if(f&&!p&&typeof f=="object"){if(k.endsWith(C,"{}"))C=E?C:C.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&mv(f)||(k.isFileList(f)||k.endsWith(C,"[]"))&&(h=k.toArray(f)))return C=Kf(C),h.forEach(function(O,m){!(k.isUndefined(O)||O===null)&&t.append(i===!0?jf([C],m,s):i===null?C:C+"[]",S(O))}),!1}return PS(f)?!0:(t.append(jf(p,C,s),S(f)),!1)}const u=[],d=Object.assign(Nv,{defaultVisitor:A,convertValue:S,isVisitable:PS});function c(f,C){if(!k.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+C.join("."));u.push(f),k.forEach(f,function(h,I){(!(k.isUndefined(h)||h===null)&&r.call(t,h,k.isString(I)?I.trim():I,C,d))===!0&&c(h,C?C.concat(I):[I])}),u.pop()}}if(!k.isObject(_))throw new TypeError("data must be an object");return c(_),t}function zf(_){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(E){return t[E]})}function VS(_,t){this._pairs=[],_&&yi(_,this,t)}const Jf=VS.prototype;Jf.append=function(t,n){this._pairs.push([t,n])},Jf.toString=function(t){const n=t?function(E){return t.call(this,E,zf)}:zf;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function bv(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zf(_,t,n){if(!t)return _;const E=n&&n.encode||bv;k.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let s;if(r?s=r(t,n):s=k.isURLSearchParams(t)?t.toString():new VS(t,n).toString(E),s){const i=_.indexOf("#");i!==-1&&(_=_.slice(0,i)),_+=(_.indexOf("?")===-1?"?":"&")+s}return _}class Qf{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){k.forEach(this.handlers,function(E){E!==null&&t(E)})}}const _C={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:VS,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},DS=typeof window<"u"&&typeof document<"u",BS=typeof navigator=="object"&&navigator||void 0,Yv=DS&&(!BS||["ReactNative","NativeScript","NS"].indexOf(BS.product)<0),Pv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vv=DS&&window.location.href||"http://localhost",st={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:DS,hasStandardBrowserEnv:Yv,hasStandardBrowserWebWorkerEnv:Pv,navigator:BS,origin:Vv},Symbol.toStringTag,{value:"Module"})),...gv};function Dv(_,t){return yi(_,new st.classes.URLSearchParams,Object.assign({visitor:function(n,E,r,s){return st.isNode&&k.isBuffer(n)?(this.append(E,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Bv(_){return k.matchAll(/\w+|\[(\w*)]/g,_).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yv(_){const t={},n=Object.keys(_);let E;const r=n.length;let s;for(E=0;E<r;E++)s=n[E],t[s]=_[s];return t}function eC(_){function t(n,E,r,s){let i=n[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),L=s>=n.length;return i=!i&&k.isArray(r)?r.length:i,L?(k.hasOwnProp(r,i)?r[i]=[r[i],E]:r[i]=E,!l):((!r[i]||!k.isObject(r[i]))&&(r[i]=[]),t(n,E,r[i],s)&&k.isArray(r[i])&&(r[i]=yv(r[i])),!l)}if(k.isFormData(_)&&k.isFunction(_.entries)){const n={};return k.forEachEntry(_,(E,r)=>{t(Bv(E),r,n,0)}),n}return null}function $v(_,t,n){if(k.isString(_))try{return(t||JSON.parse)(_),k.trim(_)}catch(E){if(E.name!=="SyntaxError")throw E}return(n||JSON.stringify)(_)}const js={transitional:_C,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const E=n.getContentType()||"",r=E.indexOf("application/json")>-1,s=k.isObject(t);if(s&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return r?JSON.stringify(eC(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.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 Dv(t,this.formSerializer).toString();if((l=k.isFileList(t))||E.indexOf("multipart/form-data")>-1){const L=this.env&&this.env.FormData;return yi(l?{"files[]":t}:t,L&&new L,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),$v(t)):t}],transformResponse:[function(t){const n=this.transitional||js.transitional,E=n&&n.forcedJSONParsing,r=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(E&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?x_.from(l,x_.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:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],_=>{js.headers[_]={}});const Mv=k.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"]),Fv=_=>{const t={};let n,E,r;return _&&_.split(`
204
+ </svg>`,Df={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}=XG(_),{classForLink:n,isLink:E,toLocal:r}=gf(_),{hasSlot:s,slotName:i}=Yf(_),{textOrHtmlRender:l}=Pf(_);return{attributesForTd:t,classForLink:n,hasSlot:s,isLink:E,slotName:i,textOrHtmlRender:l,toLocal:r}},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(S_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:Vf,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(u_,{text:this.column.label,tag:"dt"}),e.h("dd",{},[_])]:_}},KG={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}=gf(_),{hasSlot:r,slotName:s}=Yf(_),{textOrHtmlRender:i}=Pf(_);return{classForLink:t,hasSlot:r,isLink:n,slotName:s,textOrHtmlRender:i,toLocal:E}},render(){return[e.h(u_,{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 jG(){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 zG(_){const t=e.toRef(_,"columnActionsView"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),r=e.toRef(_,"rowIndex"),s=e.inject("columnActionsOnePlusDropdownOptions"),i=e.inject("rowActions"),l=e.inject("tableId"),L=e.computed(()=>`${l.value}_action_${r.value}`),S=e.computed(()=>B_(s.value.indexFirstDropdownAction)?1:s.value.indexFirstDropdownAction),A=({rowAction:N})=>{if(N.text)return N.text;if(V_(N.textCallback))return N.textCallback({row:E.value,rowIndex:r.value,rowAction:N})},u=({rowAction:N})=>{if(N.html)return N.html;if(V_(N.htmlCallback))return N.htmlCallback({row:E.value,rowIndex:r.value,rowAction:N})},d=({rowAction:N})=>{if(N.title)return N.title;if(V_(N.titleCallback))return N.titleCallback({row:E.value,rowIndex:r.value,rowAction:N})},c=({rowAction:N})=>N.disabled?N.disabled:V_(N.disabledCallback)?N.disabledCallback({row:E.value,rowIndex:r.value,rowAction:N}):!1,f=({rowAction:N})=>N.class?N.class:V_(N.classCallback)?N.classCallback({row:E.value,rowIndex:r.value,rowAction:N}):"",C=({rowAction:N})=>{if(N.iconLeft)return N.iconLeft;if(V_(N.iconLeftCallback))return N.iconLeftCallback({row:E.value,rowIndex:r.value,rowAction:N})},p=({rowAction:N})=>{if(N.iconRight)return N.iconRight;if(V_(N.iconRightCallback))return N.iconRightCallback({row:E.value,rowIndex:r.value,rowAction:N})},h=({rowAction:N})=>{if(Ee(N.to))return N.to;if(Q_(N.to)){const D=Q(N.to),M=D.params||{},w=D.query||{};if(N.to.nameDynamic&&!N.to.name){const z=o_(E.value,N.to.nameDynamic);z&&(D.name=z)}if(N.to.paramsDynamic){let z=!1;if(q(N.to.paramsDynamic,(t_,L_)=>{const s_=o_(E.value,t_);if(B_(s_))return z=!0,!1;M[L_]=s_}),z)return}if(N.to.queryDynamic){let z=!1;if(q(N.to.queryDynamic,(t_,L_)=>{const s_=o_(E.value,t_);if(B_(s_))return z=!0,!1;w[L_]=s_}),z)return}return D.params=M,D.query=w,D}},I=({rowAction:N})=>N.href?N.href:V_(N.hrefCallback)?N.hrefCallback({row:E.value,rowIndex:r.value,rowAction:N}):!1,O=({rowAction:N})=>{if(N.extra)return N.extra;if(V_(N.extraCallback))return N.extraCallback({row:E.value,rowIndex:r.value,rowAction:N})},m=({rowAction:N})=>{if(N.textScreenReader)return N.textScreenReader;if(V_(N.textScreenReaderCallback))return N.textScreenReaderCallback({row:E.value,rowIndex:r.value,rowAction:N})},P=({rowActionIndexVisible:N})=>{if(t.value==="dropdown")return{id:L.value,ids:[L.value,l.value]};if(N<S.value){const D=`${L.value}_${N}`;return{buttonId:D,id:D,ids:[D,l.value]}}return{id:L.value,ids:[L.value,l.value]}},y=N=>{q(N,(D,M)=>{_b(M,"Callback")&&(N[M]=void 0)})},V=e.computed(()=>{const N=[];let D=0;return q(Q(i.value),M=>{if(hf({rowAction:M,row:E.value,rowIndex:r.value})){if(M.type!=="divider"){const w=A({rowAction:M});w&&(M.text=w);const z=u({rowAction:M});z&&(M.html=z);const t_=d({rowAction:M});t_?M.title=t_:w&&(M.title=w);const L_=c({rowAction:M});L_&&(M.disabled=L_);const s_=f({rowAction:M});s_&&(M.class=s_);const __=C({rowAction:M});__&&(M.iconLeft=__);const i_=p({rowAction:M});i_&&(M.iconRight=i_);const I_=O({rowAction:M});I_&&(M.extra=I_);const N_=m({rowAction:M});if(I_&&(M.textScreenReader=N_),M.type==="link"){const r_=h({rowAction:M});r_?M.to=r_:M.href=I({rowAction:M})}if(V_(M.callback)){const{buttonId:r_,id:h_,ids:p_}=P({rowActionIndexVisible:D});M.id=r_;const H_=M.callback;M.callback=()=>H_({row:E.value,rowIndex:r.value,id:h_,ids:p_,rowAction:M})}y(M),D++}N.push(M)}}),N}),$=e.computed(()=>!n.value&&V.value.length>0);return{buttonActionsId:L,isRowActionsDropdownVisible:$,rowActionsFiltered:V}}function JG(_){const t=e.toRef(_,"rowIndex");return{rowNumber:e.computed(()=>t.value+1)}}const ZG={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}},inject:["columnActionsOnePlusDropdownOptions","columnsScrollInvisible","tableId","useRem"],setup(_){const{isMobileWidth:t}=Et(),{buttonActionsId:n,isRowActionsDropdownVisible:E,rowActionsFiltered:r}=zG(_),{columnsScrollInvisibleText:s,countColumnsScrollInvisible:i,isColumnsScrollInvisibleDropdownVisible:l}=jG(),{rowNumber:L}=JG(_),{stylesThTd:S}=If();return{buttonActionsId:n,columnsScrollInvisibleText:s,countColumnsScrollInvisible:i,isColumnsScrollInvisibleDropdownVisible:l,isMobileWidth:t,isRowActionsDropdownVisible:E,rowActionsFiltered:r,rowNumber:L,stylesThTd:S}},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(Dn,{buttonClass:"a_btn a_btn_link a_text_nowrap",buttonIconLeft:Wc,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(KG,{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(Dn,{id:this.buttonActionsId,actions:this.rowActionsFiltered,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:Hs,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(bi,{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:Qn,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:B_(this.columnActionsOnePlusDropdownOptions.btnGroupClass)?"a_btn_group a_btn_group_table":this.columnActionsOnePlusDropdownOptions.btnGroupClass,hasDividerBeforeDropdown:this.columnActionsOnePlusDropdownOptions.hasDividerBeforeDropdown||!1,indexFirstDropdownAction:B_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction,indexFirstDropdownActionMobile:B_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile,minDropdownActions:B_(this.columnActionsOnePlusDropdownOptions.minDropdownActions)?1:this.columnActionsOnePlusDropdownOptions.minDropdownActions,actionsClasses:this.columnActionsOnePlusDropdownOptions.actionsClasses||["a_btn a_btn_primary a_text_truncate"]},this.$slots):""]):""])])}};function QG(_,{hasChildren:t=e.computed(()=>!1),hasPreviewLocal:n=e.computed(()=>!1),rowClassChildren:E=e.computed(()=>{}),rowClassLevelChildren:r=e.computed(()=>{}),rowClassPreview:s=e.computed(()=>{}),toggleChildren:i=()=>{}}){const l=e.toRef(_,"disabledPreview"),L=e.toRef(_,"disabledPreviewRowCallback"),S=e.toRef(_,"isFooter"),A=e.toRef(_,"isTreeCollapsible"),u=e.toRef(_,"level"),d=e.toRef(_,"row"),c=e.toRef(_,"rowClass"),f=e.toRef(_,"rowIndex"),C=e.inject("isMobile"),p=e.inject("onTogglePreview"),h=e.inject("tableId"),I=e.computed(()=>{const D=S.value?"_footer":"";return`${h.value}${D}_${f.value}`}),O=e.computed(()=>V_(c.value)?c.value({level:u.value,row:d.value,rowindex:f.value}):c.value),m=e.computed(()=>["a_table__row a_table__body__row a_table__row_hover",E.value,r.value,s.value,O.value]),P=e.computed(()=>C.value?"listitem":"row"),y=e.computed(()=>V_(L.value)?L.value({row:d.value,rowIndex:f.value}):l.value),V=D=>{lG({$event:D,tagsName:["A","BUTTON","INPUT","LABEL"],classStop:"a_table__row"})||(t.value?i():n.value&&p({row:d.value,rowIndex:f.value}))},$=D=>{D.keyCode===j.enter&&V(D)},N=e.computed(()=>(A.value&&t.value||n.value)&&!y.value?{tabindex:0,onClick:V,onKeydown:$}:{});return{disabledPreviewRow:y,eventsLocal:N,roleLocal:P,rowClassComputed:m,rowHtmlId:I}}function _0(_,{emit:t}){const n=e.toRef(_,"areAllRowsSelected"),E=e.toRef(_,"row"),r=e.toRef(_,"rowIndex"),s=e.toRef(_,"selectedRowsIndexes"),i=e.inject("currentMultipleActions"),l=e.inject("isMultipleActionsActive"),L=e.computed(()=>!!s.value[r.value]||n.value),S=e.computed(()=>{if(l.value){if(V_(o_(i.value,"isHiddenCallback")))return i.value.isHiddenCallback({row:E.value,rowIndex:r.value});if(n.value)return!0}return!1}),A=e.computed(()=>L.value?"_A_TABLE_DESELECT_THIS_ROW_":"_A_TABLE_SELECT_THIS_ROW_");return{isCheckboxDisabled:S,isRowSelected:L,labelCheckbox:A,toggleCheckbox:()=>{S.value||t("setSelectedRowsIndexes",{rowIndex:r.value})}}}function e0(_){const t=e.toRef(_,"isTree"),n=e.toRef(_,"keyChildren"),E=e.toRef(_,"level"),r=e.toRef(_,"row"),s=e.toRef(_,"rowIndex"),i=e.toRef(_,"rowsLength"),l=e.computed(()=>{if(!n.value)return[];const d=o_(r.value,n.value);return c_(d)?d:[]}),L=e.computed(()=>l.value.length>0),S=e.computed(()=>E.value+1),A=e.computed(()=>t.value?{"aria-level":E.value,"aria-posinset":s.value+1,"aria-setsize":i.value}:{}),u=e.computed(()=>{if(t.value)return`a_table__row_level a_table__row_level_${E.value}`});return{ariaTreeAttributes:A,children:l,hasChildren:L,levelForChildren:S,rowClassLevelChildren:u}}function t0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isOneOfParentsClose"),E=e.toRef(_,"isTreeCollapsible"),r=e.toRef(_,"isTreeOpened"),s=e.ref(!1),i=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})),L=e.computed(()=>!!(n.value||!s.value));return{ariaExpanded:i,initIsChildrenOpen:()=>{(!E.value||r.value)&&(s.value=!0)},isOneOfParentsCloseForChildren:L,rowClassChildren:l,toggleChildren:()=>{s.value=!s.value}}}function n0(_){const t=e.toRef(_,"allVisibleMobileColumns"),n=e.toRef(_,"countVisibleMobileColumns"),E=e.inject("isMobile"),r=e.ref(!1),s=e.computed(()=>t.value.length-n.value),i=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}}_"),L=e.computed(()=>r.value?"_A_TABLE_MOBILE_TR_CLOSE_":l.value);return{countInvisibleMobileColumns:s,isAllColumnsVisibleMobile:r,isBtnToggleAllColumnsVisible:i,textBtnToggleAllColumns:L,toggleAllColumnsVisibleMobile:({$event:A})=>{r.value=!r.value,A.stopPropagation()}}}function E0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isFooter"),E=e.toRef(_,"rowIndex"),r=e.inject("hasPreview"),s=e.inject("previewRightRowIndex"),i=e.inject("previewRightRowIndexLast"),l=e.computed(()=>!!(!t.value&&r.value&&!n.value)),L=e.computed(()=>E.value===s.value),S=e.computed(()=>!L.value&&E.value===i.value),A=e.computed(()=>de({placeholder:L.value?"_A_TABLE_ROW_PREVIEW_CLOSE_":"_A_TABLE_ROW_PREVIEW_OPEN_"})),u=e.computed(()=>l.value?{"aria-label":A.value}:{}),d=e.computed(()=>{if(l.value)return{a_table__row_preview_open:L.value,a_table__row_preview_was_open:S.value}});return{hasPreviewLocal:l,previewAttributes:u,rowClassPreview:d}}const Bf={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},rowsLength:{type:Number,required:!0},selectedRowsIndexes:{type:Object,required:!0}},emits:["setSelectedRowsIndexes"],setup(_,t){const{ariaTreeAttributes:n,children:E,hasChildren:r,levelForChildren:s,rowClassLevelChildren:i}=e0(_),{ariaExpanded:l,initIsChildrenOpen:L,isOneOfParentsCloseForChildren:S,rowClassChildren:A,toggleChildren:u}=t0(_,{hasChildren:r}),{hasPreviewLocal:d,previewAttributes:c,rowClassPreview:f}=E0(_,{hasChildren:r}),{disabledPreviewRow:C,eventsLocal:p,roleLocal:h,rowClassComputed:I,rowHtmlId:O}=QG(_,{hasChildren:r,hasPreviewLocal:d,rowClassChildren:A,rowClassLevelChildren:i,rowClassPreview:f,toggleChildren:u}),{countInvisibleMobileColumns:m,isAllColumnsVisibleMobile:P,isBtnToggleAllColumnsVisible:y,textBtnToggleAllColumns:V,toggleAllColumnsVisibleMobile:$}=n0(_),{isCheckboxDisabled:N,isRowSelected:D,labelCheckbox:M,toggleCheckbox:w}=_0(_,t);return L(),{ariaExpanded:l,ariaTreeAttributes:n,children:E,countInvisibleMobileColumns:m,disabledPreviewRow:C,eventsLocal:p,hasChildren:r,isAllColumnsVisibleMobile:P,isBtnToggleAllColumnsVisible:y,isCheckboxDisabled:N,isOneOfParentsCloseForChildren:S,isRowSelected:D,labelCheckbox:M,levelForChildren:s,previewAttributes:c,roleLocal:h,rowClassComputed:I,rowHtmlId:O,textBtnToggleAllColumns:V,toggleAllColumnsVisibleMobile:$,toggleCheckbox:w,toggleChildren:u}},inject:["columnsFilteredForRender","isActionColumnVisible","isMultipleActionsActive","isMobile"],render(){let _=[];this.isMobile&&!this.isAllColumnsVisibleMobile?q(this.allVisibleMobileColumns,(E,r)=>{if(r+1>this.countVisibleMobileColumns)return!1;_.push(e.h(Df,{key:E.id,column:E,columnIndex:r,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))}):_=this.columnsFilteredForRender.map((E,r)=>e.h(Df,{key:E.id,column:E,columnIndex:r,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,showIconChildren:!!(this.isTreeCollapsible&&this.hasChildren&&r===0)},this.$slots));const t=this.isActionColumnVisible&&e.h(ZG,{columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,disabledRowActions:this.disabledRowActions,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,rowActionsClass:this.rowActionsClass,isRowActionsStickyLocal:this.isRowActionsStickyLocal},this.$slots),n=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(S_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:Vf,type:"text"}):"",e.h("dl",{class:"a_table_mobile__dl"},_),this.$slots.rowMobileAppend?this.$slots.rowMobileAppend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):""]):_;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(Cr,{isWidthAuto:!0,modelValue:this.isRowSelected,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),n,this.isMobile?e.h("div",{class:"a_table_mobile__actions_parent"},[this.isBtnToggleAllColumnsVisible&&e.h(S_,{class:"a_btn a_btn_link a_table_mobile__columns_btn_toggle",extra:{count:this.countInvisibleMobileColumns},text:this.textBtnToggleAllColumns,type:"button",onClick:this.toggleAllColumnsVisibleMobile}),t]):t]),this.isPreviewDownOpen&&e.h(kG,{row:this.row,rowIndex:this.rowIndex},{preview:E=>this.$slots.preview?this.$slots.preview(E):void 0}),this.hasChildren?this.children.map((E,r)=>e.h(e.resolveComponent("ATableTr"),{key:E[this.keyId]||r,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:E,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:r,rowsLength:this.children.length,selectedRowsIndexes:this.selectedRowsIndexes},{get:s=>[e.h(Ni,{data:s.row,keyLabel:s.column.keyLabel,filter:s.column.filter,filterParameters:s.column.filterParameters,defaultValue:s.column.defaultValue,tag:s.column.filterTag||"div"})],...this.$slots})):""]}};function a0(_,{columnActionsWidthDefaultsRemLocal:t=e.computed(()=>({})),columnActionsWidthMinRemLocal:n=()=>{},columnActionsWidthRemLocal:E=()=>{},isMobile:r=e.computed(()=>!1),rowsLocal:s=e.ref([])}){const i=e.toRef(_,"columnActionsView"),l=e.toRef(_,"rowActions"),L=e.computed(()=>i.value==="onePlusDropdown"),S=e.computed(()=>{let f=!1;_:for(let C=0;C<s.value.length;C++){const p=s.value[C];for(let h=0;h<l.value.length;h++){const I=l.value[h];if(hf({rowAction:I,row:p,rowIndex:C})&&I.type!=="divider"){f=!0;break _}}}return f}),A=e.computed(()=>!l.value.length||!L.value?!1:S.value),u=e.computed(()=>B_(E.value)?A.value&&i.value==="onePlusDropdown"?t.value.onePlusDropdown:t.value.default:E.value),d=e.computed(()=>B_(n.value)?A.value&&i.value==="onePlusDropdown"?t.value.onePlusDropdownMin:t.value.min:n.value);return{columnActionsBtnGroupMaxWidthStyle:e.computed(()=>{const f=t.value.btnGroupMaxWidth;if(!r.value&&i.value!=="dropdown"&&!B_(f))return`max-width: ${f}px`}),columnActionsWidthLocal:u,columnActionsWidthMinLocal:d,isColumnActionWide:A}}function r0(_,{columnsScrollInvisible:t=e.ref([]),indexFirstScrollInvisibleColumn:n=e.ref(void 0),modelColumnsVisibleLocal:E=e.ref({}),modelIsTableWithoutScrollComputed:r=e.computed(()=>!1),columnsOrderedFromSimpleTable:s=e.computed(()=>[])}){const i=e.toRef(_,"columns"),l=e.toRef(_,"isActionColumnVisible"),L=e.toRef(_,"isSimpleTable"),S=e.toRef(_,"modelColumnsOrdering"),A=e.toRef(_,"multipleActions"),u=e.computed(()=>jE(i.value,"id")),d=e.computed(()=>{const I={true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]};return q(Q(i.value),O=>{const m=O.id;O.locked?(I.true.push(m),I.trueColumns.push(O),I.trueObject[m]=!0):(I.false.push(m),I.falseColumns.push(O),I.falseObject[m]=!0)}),I}),c=e.computed(()=>{if(L.value&&s.value&&s.value.length)return s.value;if(!S.value.length)return[...d.value.trueColumns,...d.value.falseColumns];const I=[],O=Q(u.value);return q(S.value,m=>{O[m]&&I.push(O[m])}),I}),f=e.computed(()=>{const I=[],O={};return q(c.value,(m,P)=>{TG({column:m,columnIndex:P,modelIsTableWithoutScroll:r.value,modelColumnsVisibleLocal:E.value,indexFirstScrollInvisibleColumn:n.value})&&(O[I.length]=P,I.push(m))}),{columns:I,columnsIndexesMapping:O}}),C=e.computed(()=>f.value.columnsIndexesMapping),p=e.computed(()=>f.value.columns),h=e.computed(()=>{let I=p.value.length;return r.value&&(I+=t.value.length),l.value&&I++,A.value.length&&I++,I});return{columnIdsGroupByLocked:d,columnsFilteredForRender:p,columnsFilteredForRenderIndexesMapping:C,columnsOrdered:c,countNotHiddenColumns:h}}function s0(_,{modelSort:t=e.ref([])}){const n=e.toRef(_,"columns"),E=e.toRef(_,"showFirstSortingSequenceNumber"),r=e.toRef(_,"sortingSequenceNumberClass"),s=e.computed(()=>le(n.value,h=>LG({column:h}))),i=e.computed(()=>Pt(s.value,(h,I)=>({...h,_index:h.prio||I}))),l=e.computed(()=>Pt(i.value,h=>(h.group&&h.group.length&&(h.group=Pt(h.group,(I,O)=>[I,O].join("%%%"))),h))),L=({groups:h,group:I,level:O,columnsOrderedFromGroups:m,firstLevelGroupObject:P})=>{const y=I?le(h,N=>ns(N,I[O-1])):h,V=Vu(y,N=>N[O]),$=Pt(V,N=>{const D={id:N[O].split("%%%")[0]};let M;return O===0?(M=D,M.columnIndexes=[]):M=P,N.length>O+1?D.children=o_(L({groups:h,group:N,level:O+1,columnsOrderedFromGroups:m,firstLevelGroupObject:M}),"recursiveGroup"):N.length===O+1&&(D.columns=le(l.value,w=>ns(w.group,N[O])),M.columnIndexes.push(...Pt(D.columns,"_index")),m.push(...D.columns)),D});return{columnsOrderedFromGroups:m,recursiveGroup:$}},S=e.computed(()=>Pt(l.value,h=>o_(h,"group",h))),A=e.computed(()=>le(S.value,h=>c_(h))),u=e.computed(()=>le(S.value,h=>!c_(h))),d=e.computed(()=>{const h=[];return L({groups:A.value,group:null,level:0,columnsOrderedFromGroups:h})}),c=e.computed(()=>xo([...d.value.columnsOrderedFromGroups,...u.value],"_index")),f=h=>e.h(NS,{ref:"th",class:"a_table__cell__child_group",column:h,columnGroupNames:Pt(h.group,I=>I.split("%%%")[0]),columnIndex:h._index,hasMultipleActions:!1,modelSort:t.value,showFirstSortingSequenceNumber:E.value,sortingSequenceNumberClass:r.value}),C=h=>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"},[h.id&&e.h(u_,{html:h.id,tag:"span","aria-hidden":!0})]),e.h("div",{class:"a_table__th_group_container"},h.children?Pt(h.children,I=>C(I)):Pt(h.columns,I=>f(I)))])]),p=e.computed(()=>{const h=xo([...d.value.recursiveGroup,...u.value],I=>I.columnIndexes?fu(I.columnIndexes):I._index);return Pt(h,I=>I.columnIndexes?C(I):f(I))});return{columnsOrderedFromSimpleTable:c,renderedGroupedColumns:p}}function o0(_,{emit:t},{checkVisibleColumns:n=()=>{},columnIdsGroupByLocked:E=e.computed(()=>({true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]})),columnsFilteredForRenderIndexesMapping:r=e.computed(()=>({}))}){const s=e.toRef(_,"columns"),i=e.toRef(_,"modelColumnsOrdering"),l=({columnIndexDraggable:A,columnIndexOver:u,reset:d,inHeader:c})=>{if(A===u&&!d)return;c&&(A=r.value[A],u=r.value[u]);let f;if(d)f=[...E.value.true,...E.value.false];else{f=Q(i.value);const C=f[A];f.splice(A,1),f.splice(u,0,C)}t("changeColumnsOrdering",{columnIndexDraggable:A,columnIndexOver:u,modelColumnsOrdering:f}),setTimeout(()=>{n()})},L=()=>{let A=[],u=!1;if(!i.value.length)A=[...E.value.true,...E.value.false];else{A=[...E.value.true];const d=Q(E.value.falseObject);q(i.value,c=>{d[c]&&(A.push(c),delete d[c])}),q(d,(c,f)=>{A.push(f)}),JSON.stringify(i.value)!==JSON.stringify(A)&&(u=!0)}return{shouldFixColumns:u,modelColumnsOrderingLocal:A}},S=()=>{const{shouldFixColumns:A,modelColumnsOrderingLocal:u}=L();A&&t("changeColumnsOrdering",{modelColumnsOrdering:u,shouldFixColumns:A})};return e.watch(s,()=>{S()},{deep:!0}),{changeColumnsOrdering:l,checkColumnsOrdering:L}}function i0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"data"),E=e.toRef(_,"isTree"),r=e.toRef(_,"keyChildren"),s=e.toRef(_,"keyCountAllRowsInData"),i=e.computed(()=>Q_(n.value)),l=e.computed(()=>c_(n.value)),L=e.computed(()=>E_(t.value)?i.value?+o_(n.value,s.value):l.value?E.value?Ku({array:n.value,keyChildren:r.value}):n.value.length:0:t.value),S=e.computed(()=>E_(t.value)?n.value.length:t.value);return{countAllRowsLocal:L,totalRowsCount:S}}function l0({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 L0(_,{emit:t},{checkColumnsOrdering:n=()=>{},checkVisibleColumns:E=()=>{},modelColumnsVisibleLocal:r=e.ref({})}){const s=e.toRef(_,"modelColumnsVisible"),i=e.toRef(_,"columns");return{initTable:()=>{const{shouldFixColumns:L,modelColumnsOrderingLocal:S}=n();let A=!1;zE(s.value)?r.value=Q(s.value):(A=!0,r.value=df(i.value),E()),t("initTable",Q({columnsOrdering:{model:S,shouldFix:L},columnsVisible:{model:r.value,shouldFix:A}}))}}}function S0(_,{emit:t},{closePreviewAll:n=()=>{},scrollToTable:E=()=>{},setFocusToTable:r=()=>{},viewCurrent:s=e.computed(()=>({}))}){const i=e.toRef(_,"isTree"),l=e.toRef(_,"offsetStart"),L=e.toRef(_,"pagination"),S=e.ref(void 0),A=e.ref(void 0),u=()=>{S.value=L.value.limitStart||10,A.value=l.value},d=e.computed(()=>{var h;return i.value?!1:(h=L.value)!=null&&h.use?s.value?s.value.usePagination||!1:!0:!1}),c=e.computed(()=>L.value.position==="top"||L.value.position==="y"),f=e.computed(()=>L.value.position==="bottom"||L.value.position==="y"||!c.value);return{changeLimit:h=>{r(),E(),S.value=h,A.value=l.value,t("changeLimit",{offset:A.value,limit:h}),n()},changeOffset:h=>{let I,O;Q_(h)?(I=h.offset,O=h.reload):(I=h,O=!0),O&&(r(),E()),A.value=I,t("changeOffset",{offset:I,limit:S.value}),O&&n()},initLocalVars:u,limit:S,offset:A,usePaginationBottom:f,usePaginationLocal:d,usePaginationTop:c}}function T0({columnsOrdered:_=e.ref([]),isMobile:t=e.ref(!1),modelColumnsVisibleLocal:n=e.ref({})}){return{allVisibleMobileColumns:e.computed(()=>t.value?le(_.value,r=>r.isRender!==!1&&n.value[r.id]!==!1):[])}}function A0(_,{emit:t},{checkVisibleColumns:n=()=>{},isMultipleActionsActive:E=e.ref(void 0),rowsLocalAll:r=e.computed(()=>[]),rowsLocalLength:s=e.computed(()=>0)}){const i=e.toRef(_,"id"),l=e.toRef(_,"multipleActions"),L=e.ref(void 0),S=e.ref({}),A=e.ref(!1),u=e.computed(()=>l.value.length>0),d=e.computed(()=>V_(o_(L.value,"isHiddenCallback"))),c=e.computed(()=>le(r.value,(V,$)=>S.value[$])),f=()=>{S.value={}},C=()=>{E.value=!1,L.value=void 0,A.value=!1,f()},p=()=>{if(window.isScrollDisabled)return;const V=Cf({tableId:i.value});Fe({selector:`#${V}`})},h=({isActive:V,action:$}={})=>{if(V){E.value=!0,L.value=$,setTimeout(()=>{n(),p()}),t("toggleMultipleActions",{isActive:V,action:$});return}E.value?C():E.value=!0,setTimeout(()=>{n(),p()}),t("toggleMultipleActions",{isActive:V,action:$})},I=e.computed(()=>zE(S.value)),O=e.computed(()=>s.value>0&&s.value===I.value),m=e.computed(()=>I.value>0);return{areAllRowsSelected:A,areAllVisibleRowsSelected:O,areSomeRowsSelected:m,closeMultipleActionsActive:C,currentMultipleActions:L,hasMultipleActions:u,selectedRows:c,selectedRowsIndexes:S,setEmptySelectedRowsIndexes:f,setSelectedRowsIndexes:({rowIndex:V,isAll:$})=>{if($){if(m.value)f();else{const N={};d.value?Xt(s.value,D=>{L.value.isHiddenCallback({row:r.value[D],rowIndex:D})||(N[D]=!0)}):Xt(s.value,D=>{N[D]=!0}),S.value=N}return}S.value[V]?delete S.value[V]:S.value[V]=!0},toggleBtnAllRows:()=>{A.value=!A.value,A.value&&f()},toggleMultipleActionsActive:h}}function u0(_,{emit:t},{aTableRef:n=e.ref({}),previewBoxWidthRemLocal:E=e.computed(()=>0),tableGrandparentRef:r=e.ref({})}){const{previewRef:s,removePreviewRef:i}=Nf(),l=200,L=50;let S,A=0,u=0,d=0;const c=()=>{var D;if(!((D=n.value)!=null&&D.getBoundingClientRect))return;u=n.value.getBoundingClientRect().left},f=({clientWidth:N})=>{A=N,S=N/100*L,c()},C=({clientWidthLocal:N,clientXTableParent:D,previewBoxWidth:M})=>{if(!n.value)return;const w=N-D-M;n.value.style.width=`${w}px`},p=({clientX:N=0,previewRef:D,previewBoxWidth:M=0})=>{let w=M||A-N;w<l?w=l:w>S&&(w=S),C({clientWidthLocal:A,clientXTableParent:u,previewBoxWidth:w}),D&&(D.style.width=`${w}px`)},h=({previewRef:N})=>{o_(N,"style.removeProperty")&&N.style.removeProperty("width"),o_(n,"value.style.removeProperty")&&n.value.style.removeProperty("width")},I=({previewRef:N})=>{A=document.documentElement.clientWidth,d=o_(r,"value.offsetWidth",0),c(),p({previewRef:N,previewBoxWidth:E.value})},O=({previewRef:N,isOpen:D})=>{D?I({previewRef:N}):h({previewRef:N})},m=({previewRightWidth:N})=>{t("mouseupResizePreviewRight",{previewRightWidth:N})},P=()=>{I({previewRef:s.value})},y=new ResizeObserver(ts(N=>{const D=N[0].contentRect;d!==D.width&&(d=D.width,P())},300)),V=()=>{y.observe(r.value)},$=()=>{y.unobserve(r.value)};return e.onBeforeUnmount(()=>{i(),$()}),{addEventListenerWindowResize:V,mousedownResizePreviewRight:f,mousemoveResizePreviewRight:p,mouseupResizePreviewRight:m,removeEventListenerWindowResize:$,togglePreviewResize:O}}function d0(_,t,{aTableRef:n=e.ref({}),isMobile:E=e.ref(void 0),previewBoxWidthRemLocal:r=e.computed(()=>0),rowsLocalAll:s=e.computed(()=>[]),tableGrandparentRef:i=e.ref({})}){const{isDropdownGlobalOpen:l}=rS(),{addEventListenerWindowResize:L,mousedownResizePreviewRight:S,mousemoveResizePreviewRight:A,mouseupResizePreviewRight:u,removeEventListenerWindowResize:d,togglePreviewResize:c}=u0(_,t,{aTableRef:n,previewBoxWidthRemLocal:r,tableGrandparentRef:i}),f=e.toRef(_,"keyId"),C=e.toRef(_,"preview"),p=e.toRef(_,"id"),h=t.emit,I=e.ref({}),O=e.ref(void 0),m=e.ref(void 0),P=e.computed(()=>!!C.value),y=({rowIndex:r_})=>{window.isScrollDisabled||setTimeout(()=>{const h_=`#${p.value}_${r_}`;Fe({selector:h_})})},V=()=>{window.isScrollDisabled||setTimeout(()=>{const r_=`#${ff({tableId:p.value})}`;Fe({selector:r_})})},$=e.computed(()=>C.value==="right"||E.value),N=e.computed(()=>!E_(O.value)),D=()=>{y({rowIndex:O.value}),h("togglePreview",{row:s.value[O.value],rowIndex:O.value,typeToggle:"close"}),m.value=O.value,O.value=void 0,d()},M=()=>{h("togglePreview",{row:s.value[O.value],rowIndex:O.value,typeToggle:"close"}),m.value=void 0,O.value=void 0,d()},w=e.computed(()=>C.value==="down"),z=({rowIndex:r_,row:h_})=>{const p_=Yi({row:h_,rowIndex:r_,keyId:f.value});delete I.value[p_]},t_=()=>{I.value={}},L_=()=>{M(),t_()},s_=({rowIndex:r_,row:h_}={})=>{$.value?D():w.value&&z({rowIndex:r_,row:h_})},__=({rowIndex:r_})=>{!E.value&&B_(O.value)&&L(),h("togglePreview",{row:s.value[r_],rowIndex:r_,typeToggle:"open"}),O.value=r_,m.value=void 0,V()},i_=({rowIndex:r_})=>{O.value===r_?D():__({rowIndex:r_})},I_=({rowIndex:r_,row:h_})=>{const p_=Yi({row:h_,rowIndex:r_,keyId:f.value});I.value[p_]?delete I.value[p_]:I.value[p_]=!0};return{closePreview:s_,closePreviewAll:L_,hasPreview:P,isPreviewRightOpen:N,mousedownResizePreviewRight:S,mousemoveResizePreviewRight:A,mouseupResizePreviewRight:u,onTogglePreview:({row:r_,rowIndex:h_})=>{if(!l.value){if($.value){i_({rowIndex:h_});return}w.value&&I_({row:r_,rowIndex:h_})}},previewDownRowIds:I,previewRightRowIndex:O,previewRightRowIndexLast:m,togglePreviewResize:c}}function c0(_,{dataSorted:t=e.computed(()=>[]),limit:n=e.ref(0),offset:E=e.ref(0),setEmptySelectedRowsIndexes:r=()=>{},usePaginationLocal:s=e.computed(()=>!1)}){const i=e.toRef(_,"clearSelectedRowsOnDataChange"),l=e.toRef(_,"pagination"),L=e.toRef(_,"rowsCountRenderPerTick"),S=e.ref([]),A=e.ref([]);let u=!0,d=0,c;const f=e.computed(()=>{if(n.value&&!l.value.isOutside&&s.value){const $=E.value,N=$+n.value;return t.value.slice($,N)}return t.value}),C=e.computed(()=>f.value),p=e.computed(()=>C.value.length),h=e.computed(()=>!!p.value),I=()=>{const $=d*L.value,N=$+L.value;Pt(f.value.slice($,N),D=>A.value.push(D)),d++},O=()=>{c=setInterval(()=>{d*L.value>=f.value.length?clearInterval(c):I()})},m=()=>{clearInterval(c)},P=({row:$,rowIndex:N})=>{N>A.value.length-1||(A.value[N]=$)},y=({row:$})=>{A.value.unshift($)},V=({index:$})=>{A.value.splice($,1)};return e.watch(f,$=>{SL($,S.value)||(S.value=[...$],!u&&i.value&&r(),u=!1,A.value=[],d=0,m(),L.value>0?(I(),O()):A.value=f.value)},{immediate:!0,deep:!0}),{addRow:y,deleteRow:V,hasRows:h,rowsLocal:A,rowsLocalAll:C,rowsLocalLength:p,stopRenderRows:m,updateRow:P}}function f0(_,{emit:t},{columnActionsWidthLocal:n=e.computed(()=>0),columnActionsWidthMinLocal:E=e.computed(()=>0),columnsOrdered:r=e.computed(()=>[]),columnsScrollInvisible:s=e.ref([]),columnWidthDefaultRemLocal:i=e.computed(()=>0),indexFirstScrollInvisibleColumn:l=e.ref(void 0),isMobile:L=e.ref(!1),isMultipleActionsActive:S=e.ref(void 0),modelColumnsVisibleLocal:A=e.ref({}),modelIsTableWithoutScroll:u=e.ref(!1),modelIsTableWithoutScrollComputed:d=e.computed(()=>!1)}){const c=e.toRef(_,"isActionColumnVisible"),f=e.toRef(_,"isSimpleTable"),C=e.toRef(_,"useRem"),{scalePxWithRem:p}=dr(),h=e.ref(void 0),I=e.ref(0),O=e.ref(void 0);let m=!1;const P=20,y=__=>C.value?p(__):__,V=e.computed(()=>c.value?E.value:0),$=e.computed(()=>{const __=S.value?E.value:0,i_=f.value?0:P;return __+i_}),N=({sumGrows:__=0,freeSpaceWidth:i_=0})=>{__>0?I.value=i_/__:I.value=0},D=()=>{if(E_(l.value)||r.value.length<l.value)s.value=[];else{const __=[];for(let i_=l.value;i_<r.value.length;i_++){const I_=r.value[i_];ks({column:I_,modelColumnsVisibleLocal:A.value})&&__.push(Q(I_))}s.value=__}},M=()=>{s.value=[],I.value=0,l.value=1e3,O.value=0},w=()=>{if(L.value||O.value===0){M();return}if(B_(O.value))return;const __=O.value-$.value-V.value,i_=O.value-$.value-n.value;let I_=0,N_=0,r_=0,h_=!1;if(q(r.value,f_=>{if(!ks({column:f_,modelColumnsVisibleLocal:A.value})){N_++;return}const X=+y(f_.width)||i.value;if(I_+X>__)return h_=!0,!1;I_+=X,N_++,r_+=E_(f_.grow)?1:f_.grow}),h_&&I_>i_)for(let f_=N_-1;f_>=0;f_--){N_--;const X=r.value[N_];if(!ks({column:X,modelColumnsVisibleLocal:A.value}))continue;const n_=+y(X.width)||i.value;if(I_-=n_,r_-=E_(X.grow)?1:X.grow,I_<=i_)break}let p_=0;const H_=h_?i_:__;(d.value||N_===r.value.length)&&(p_=H_-I_),l.value=N_,N({sumGrows:r_,freeSpaceWidth:p_}),D()},z=({entries:__,forceAdjust:i_})=>{const I_=__[0].contentRect;(i_||O.value>I_.width+P||O.value<I_.width-P)&&(m||(m=!0,O.value=I_.width,w(),m=!1))},t_=new ResizeObserver(ts(__=>{B_(O.value)?z({entries:__,forceAdjust:!0}):z({entries:__})},300)),L_=__=>{__?(t_.unobserve(h.value),M()):(t_.observe(h.value),u.value&&w())},s_=__=>{u.value=__,t("updateModelIsTableWithoutScroll",__),u.value&&w()};return e.onMounted(()=>{L.value||t_.observe(h.value)}),e.onBeforeUnmount(()=>{t_.unobserve(h.value)}),e.watch(r,()=>{w()}),{aTableRef:h,changeModelIsTableWithoutScroll:s_,checkVisibleColumns:w,columnsVisibleAdditionalSpaceForOneGrow:I,onWatchMobileScrollControl:L_}}function C0(_){const t=e.toRef(_,"hasMobile"),n=e.toRef(_,"isActionColumnVisible"),E=e.toRef(_,"isActionColumnVisible"),r=e.toRef(_,"isColumnsDnd"),s=e.toRef(_,"isSimpleTable"),i=e.toRef(_,"modelIsTableWithoutScrollStart"),l=e.toRef(_,"rowActions"),L=e.ref(void 0),S=()=>{L.value=i.value},{isMobileWidth:A}=Et(),u=e.computed(()=>s.value?l.value&&!!l.value.length&&n.value:E.value),d=e.computed(()=>!!(E.value&&!s.value)),c=e.computed(()=>!!(r.value&&!s.value)),f=e.computed(()=>t.value?!!A.value:!1),C=e.computed(()=>s.value?!1:L.value);return{initModelIsTableWithoutScroll:S,isActionColumnVisibleLocal:u,isActionIconVisibleLocal:d,isColumnsDndLocal:c,isMobile:f,modelIsTableWithoutScroll:L,modelIsTableWithoutScrollComputed:C}}function R0(_,{viewCurrent:t=e.computed(()=>({}))}){const n=e.toRef(_,"data"),E=e.toRef(_,"isSortingOutside"),r=e.toRef(_,"modelSort"),s=e.toRef(_,"useAdditionalSorting"),i=e.ref([]),l=e.computed(()=>s.value?t.value?t.value.useAdditionalSorting||!1:!0:!1),L=()=>{Ee(r.value)?i.value=[r.value]:c_(r.value)&&(i.value=Q(r.value))},S=e.computed(()=>{const u={models:[],directions:[]};return i.value.length&&q(i.value,d=>{let c="asc",f=d;fL(d,"-")&&(c="desc",f=d.slice(1)),u.models.push(f),u.directions.push(c)}),u}),A=e.computed(()=>i.value.length&&!E.value?TL(n.value||[],S.value.models,S.value.directions):n.value||[]);return e.watch(r,()=>{L()}),{dataSorted:A,initModelSort:L,modelSortLocal:i,useAdditionalSortingLocal:l}}function h0(_,{emit:t},{modelSortLocal:n=e.ref([]),closePreviewAll:E=()=>{}}){const r=e.toRef(_,"id"),s=e.toRef(_,"isSortingMultiColumn"),i=e.toRef(_,"sortingMultiColumnKey"),l=e.computed(()=>`${i.value}Key`),L=d=>s.value&&d[l.value],S=({sortId:d})=>{const c=n.value.indexOf(d);if(c!==-1){n.value.splice(c,1,`-${d}`);return}const f=n.value.indexOf(`-${d}`);if(f!==-1){n.value.splice(f,1);return}n.value.push(d)},A=({sortId:d})=>{if(n.value.indexOf(d)!==-1){n.value=[`-${d}`];return}if(n.value.indexOf(`-${d}`)!==-1){n.value=[];return}n.value=[d]};return{changeModelSort:({sortId:d,$event:c,modelAll:f})=>{f?n.value=f:L(c)?S({sortId:d}):A({sortId:d}),t("changeSorting",{modelSort:Q(n.value)}),pe.$emit("changeTableSorting",{modelSort:Q(n.value),tableId:r.value}),E()}}}function p0(_,{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 I0(_,{countNotHiddenColumns:t=e.computed(()=>-1),isMobile:n=e.ref(!1)}){const E=e.toRef(_,"id"),r=e.toRef(_,"isLabelVisible"),s=e.computed(()=>{const L={};return n.value||(L.role="table",L["aria-colcount"]=t.value),L}),i=e.computed(()=>n.value?"list":"rowgroup"),l=e.computed(()=>{if(r.value)return Rf({tableId:E.value})});return{tableChildRole:i,tableLabelId:l,tableRoleAttributes:s}}function O0(_,{emit:t},{modelColumnsVisibleLocal:n=e.ref({}),checkVisibleColumns:E=()=>{}}){return{changeModelColumnsVisible:s=>{n.value=s,t("update:modelColumnsVisible",Q(n.value)),E()}}}function U0(_){const t=e.toRef(_,"texts");return{emptyText:e.computed(()=>B_(t.value.empty)?"_A_TABLE_EMPTY_TEXT_":t.value.empty)}}function m0(){const _=e.ref([]),t=e.ref(void 0),n=e.ref(void 0),E=e.ref({}),r=e.ref(void 0),s=e.ref(void 0);return{columnsScrollInvisible:_,indexFirstScrollInvisibleColumn:t,isMultipleActionsActive:n,modelColumnsVisibleLocal:E,tableGrandparentRef:r,tableRef:s}}function N0(_,{emit:t},{closePreviewAll:n=()=>{}}){const E=e.toRef(_,"views"),r=e.toRef(_,"modelFilters"),s=e.toRef(_,"modelView"),i=e.computed(()=>jE(E.value,"id")),l=e.computed(()=>i.value[s.value]),L=e.computed(()=>E.value.length>1),S=()=>{if(L.value){const d=vo(E.value,["active",!0]);let c=E.value[0].id;d&&(c=d.id),t("updateView",{_modelView:c,view:i.value[c],modelFilters:r.value,init:!0})}},A=d=>{n(),t("updateView",{_modelView:d,view:i.value[d],modelFilters:r.value})},u=e.computed(()=>!l.value||l.value.type==="table");return{hasViews:L,initViewCurrent:S,isViewTableVisible:u,updateViewCurrent:A,viewCurrent:l}}function b0(_){const t=e.toRef(_,"columnActionsWidth"),n=e.toRef(_,"columnActionsWidthDefaults"),E=e.toRef(_,"columnActionsWidthMin"),r=e.toRef(_,"columnWidthDefault"),s=e.toRef(_,"previewBoxWidth"),i=e.toRef(_,"useRem"),{scalePxWithRem:l}=dr(),L=e.computed(()=>i.value?l(t.value):t.value),S=e.computed(()=>i.value?l(E.value):E.value),A=e.computed(()=>i.value?l(r.value):r.value),u=e.computed(()=>i.value?l(s.value):s.value);return{columnActionsWidthDefaultsRemLocal:e.computed(()=>i.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:S,columnActionsWidthRemLocal:L,columnWidthDefaultRemLocal:A,previewBoxWidthRemLocal:u}}const g0={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:()=>pr.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:()=>j_("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:_=>Zn(_)&&_>=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:r,columnWidthDefaultRemLocal:s,previewBoxWidthRemLocal:i}=b0(_),{initModelIsTableWithoutScroll:l,isActionColumnVisibleLocal:L,isActionIconVisibleLocal:S,isColumnsDndLocal:A,isMobile:u,modelIsTableWithoutScroll:d,modelIsTableWithoutScrollComputed:c}=C0(_),{countAllRowsLocal:f,totalRowsCount:C}=i0(_),{columnsScrollInvisible:p,indexFirstScrollInvisibleColumn:h,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,tableGrandparentRef:m,tableRef:P}=m0(),{scrollToTable:y,setFocusToTable:V}=l0({tableRef:P}),{hasViews:$,initViewCurrent:N,isViewTableVisible:D,updateViewCurrent:M,viewCurrent:w}=N0(_,t,{closePreviewAll:GE}),{dataSorted:z,initModelSort:t_,modelSortLocal:L_,useAdditionalSortingLocal:s_}=R0(_,{viewCurrent:w}),{columnsOrderedFromSimpleTable:__,renderedGroupedColumns:i_}=s0(_,{modelSort:L_}),{columnIdsGroupByLocked:I_,columnsFilteredForRender:N_,columnsFilteredForRenderIndexesMapping:r_,columnsOrdered:h_,countNotHiddenColumns:p_}=r0(_,{columnsScrollInvisible:p,indexFirstScrollInvisibleColumn:h,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:c,columnsOrderedFromSimpleTable:__}),{changeLimit:H_,changeOffset:f_,initLocalVars:X,limit:n_,offset:U_,usePaginationBottom:W,usePaginationLocal:T_,usePaginationTop:A_}=S0(_,t,{closePreviewAll:GE,scrollToTable:y,setFocusToTable:V,viewCurrent:w}),{addRow:O_,deleteRow:D_,hasRows:b_,rowsLocal:q_,rowsLocalAll:J_,rowsLocalLength:G_,stopRenderRows:ne,updateRow:Oe}=c0(_,{dataSorted:z,limit:n_,offset:U_,setEmptySelectedRowsIndexes:P_,usePaginationLocal:T_}),{columnActionsBtnGroupMaxWidthStyle:te,columnActionsWidthLocal:K_,columnActionsWidthMinLocal:oe,isColumnActionWide:Te}=a0(_,{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:r,isMobile:u,rowsLocal:q_}),{aTableRef:ce,changeModelIsTableWithoutScroll:me,checkVisibleColumns:xe,columnsVisibleAdditionalSpaceForOneGrow:je,onWatchMobileScrollControl:ze}=f0(_,t,{columnActionsWidthLocal:K_,columnActionsWidthMinLocal:oe,columnsOrdered:h_,columnsScrollInvisible:p,columnWidthDefaultRemLocal:s,indexFirstScrollInvisibleColumn:h,isMobile:u,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,modelIsTableWithoutScroll:d,modelIsTableWithoutScrollComputed:c}),{changeColumnsOrdering:Mn,checkColumnsOrdering:cn}=o0(_,t,{checkVisibleColumns:xe,columnIdsGroupByLocked:I_,columnsFilteredForRenderIndexesMapping:r_}),{isRowActionsStickyLocal:Fn}=p0(_,{isMobile:u,modelIsTableWithoutScrollComputed:c}),{areAllRowsSelected:zt,areAllVisibleRowsSelected:Jt,areSomeRowsSelected:et,closeMultipleActionsActive:It,currentMultipleActions:fn,hasMultipleActions:Cn,selectedRows:va,selectedRowsIndexes:Gn,setEmptySelectedRowsIndexes:vn,setSelectedRowsIndexes:wn,toggleBtnAllRows:Zt,toggleMultipleActionsActive:wa}=A0(_,t,{checkVisibleColumns:xe,isMultipleActionsActive:I,rowsLocalAll:J_,rowsLocalLength:G_}),{changeModelColumnsVisible:xa}=O0(_,t,{modelColumnsVisibleLocal:O,checkVisibleColumns:xe}),{closePreview:Ne,closePreviewAll:Qt,hasPreview:sa,isPreviewRightOpen:oa,onTogglePreview:xn,mousedownResizePreviewRight:ia,mousemoveResizePreviewRight:Hn,mouseupResizePreviewRight:Ha,previewDownRowIds:it,previewRightRowIndex:FE,previewRightRowIndexLast:Nr,togglePreviewResize:br}=d0(_,t,{aTableRef:ce,isMobile:u,previewBoxWidthRemLocal:i,rowsLocalAll:J_,tableGrandparentRef:m}),{tableChildRole:qa,tableLabelId:gr,tableRoleAttributes:Mt}=I0(_,{countNotHiddenColumns:p_,isMobile:u}),{allVisibleMobileColumns:Yr}=T0({columnsOrdered:h_,isMobile:u,modelColumnsVisibleLocal:O}),{changeModelSort:Pr}=h0(_,t,{modelSortLocal:L_,closePreviewAll:GE}),{initTable:Wa}=L0(_,t,{checkColumnsOrdering:cn,checkVisibleColumns:xe,modelColumnsVisibleLocal:O}),{emptyText:Vr}=U0(_);function GE(){Qt()}function P_(){vn()}return e.watch(u,G=>{ze(G),GE()}),e.watch(Te,(G,a_)=>{G!==a_&&xe()}),e.provide("changeModelIsTableWithoutScroll",me),e.provide("changeModelSort",Pr),e.provide("columnsOrdered",h_),e.provide("columnsFilteredForRender",N_),e.provide("columnsScrollInvisible",p),e.provide("columnWidthDefault",s),e.provide("columnsVisibleAdditionalSpaceForOneGrow",je),e.provide("columnActionsWidthLocal",K_),e.provide("columnActionsWidthMinLocal",oe),e.provide("currentMultipleActions",fn),e.provide("hasPreview",sa),e.provide("indexFirstScrollInvisibleColumn",h),e.provide("isActionColumnVisible",L),e.provide("isActionIconVisible",S),e.provide("isColumnsDnd",A),e.provide("isMobile",u),e.provide("isMultipleActionsActive",I),e.provide("modelIsTableWithoutScroll",c),e.provide("onTogglePreview",xn),e.provide("previewRightRowIndex",FE),e.provide("previewRightRowIndexLast",Nr),e.provide("rowsLocalAll",J_),e.provide("modelColumnsVisibleLocal",O),e.provide("changeColumnsOrdering",Mn),X(),l(),N(),Wa(),t_(),{addRow:O_,allVisibleMobileColumns:Yr,areAllRowsSelected:zt,areAllVisibleRowsSelected:Jt,areSomeRowsSelected:et,aTableRef:ce,changeLimit:H_,changeModelColumnsVisible:xa,changeOffset:f_,checkVisibleColumns:xe,closeMultipleActionsActive:It,closePreview:Ne,closePreviewAll:GE,columnActionsBtnGroupMaxWidthStyle:te,columnsFilteredForRender:N_,columnsOrdered:h_,countAllRowsLocal:f,deleteRow:D_,emptyText:Vr,hasMultipleActions:Cn,hasRows:b_,hasViews:$,isMobile:u,isMultipleActionsActive:I,isPreviewRightOpen:oa,isRowActionsStickyLocal:Fn,isViewTableVisible:D,limit:n_,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:c,modelSortLocal:L_,mousedownResizePreviewRight:ia,mousemoveResizePreviewRight:Hn,mouseupResizePreviewRight:Ha,offset:U_,onTogglePreview:xn,previewDownRowIds:it,previewRightRowIndex:FE,renderedGroupedColumns:i_,rowsLocal:q_,rowsLocalAll:J_,rowsLocalLength:G_,selectedRows:va,selectedRowsIndexes:Gn,setEmptySelectedRowsIndexes:P_,setSelectedRowsIndexes:wn,stopRenderRows:ne,tableChildRole:qa,tableGrandparentRef:m,tableLabelId:gr,tableRef:P,tableRoleAttributes:Mt,toggleBtnAllRows:Zt,toggleMultipleActionsActive:wa,togglePreviewResize:br,totalRowsCount:C,updateRow:Oe,updateViewCurrent:M,useAdditionalSortingLocal:s_,usePaginationBottom:W,usePaginationLocal:T_,usePaginationTop:A_,viewCurrent:w}},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(qG,{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?e.h(OS,{class:"a_table__pagination_top",countAllRows:this.countAllRowsLocal,disabled:this.pagination.disabled,hasRows:this.hasRows,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,maxPages:this.pagination.maxPages,offset:this.offset,rowsLength:this.rowsLocalLength,totalRowsCount:this.totalRowsCount,"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(cG,{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(OG,{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(CS,{isLoading:this.isLoadingTable},()=>[e.h("div",{class:"a_table__body",role:this.tableChildRole},{default:()=>this.rowsLocal.map((_,t)=>{const n=Yi({row:_,rowIndex:t,keyId:this.keyId});return e.h(Bf,{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,rowsLength:this.rowsLocal.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Ni,{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(u_,{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=Yi({row:_,rowIndex:t,keyId:this.keyId});return e.h(Bf,{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,rowsLength:this.rowsFooter.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Ni,{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?e.h(OS,{class:"a_table__pagination_bottom",countAllRows:this.countAllRowsLocal,disabled:this.pagination.disabled,hasRows:this.hasRows,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,maxPages:this.pagination.maxPages,offset:this.offset,rowsLength:this.rowsLocalLength,totalRowsCount:this.totalRowsCount,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isPreviewRightOpen?e.h(PG,{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 yf(_){const t=e.toRef(_,"activeTabIdLocal"),n=e.toRef(_,"index"),E=e.toRef(_,"keyId"),r=e.toRef(_,"parentId"),s=e.toRef(_,"tab"),i=e.computed(()=>E.value?o_(s.value,E.value):n.value),l=e.computed(()=>t.value===i.value),L=e.computed(()=>`${r.value}_${n.value}`);return{idForContent:e.computed(()=>`${L.value}_content`),idLocal:L,isActive:l,tabIdLocal:i}}function Y0(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyContent");return{contentLocal:e.computed(()=>{if(n.value)return o_(t.value,n.value)})}}const P0={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:r}=yf(_),{contentLocal:s}=Y0(_);return{contentLocal:s,idForContent:t,idLocal:n,isActive:E,tabIdLocal:r}},render(){let _="";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(u_,{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 V0({isDisabled:_=e.computed(()=>!1)}){return{tabindexLocal:e.computed(()=>_.value?-1:0)}}function D0(_,{emit:t},{isDisabled:n=e.computed(()=>!1),tabIdLocal:E=e.computed(()=>"")}){const r=e.toRef(_,"index"),s=e.toRef(_,"tab"),i=L=>{n.value||t("changeTab",{$event:L,tab:s.value,tabId:E.value,index:r.value})};return{changeTabLocal:i,keydownTab:L=>{(L.keyCode===j.enter||L.keyCode===j.space)&&(i(L),L.stopPropagation(),L.preventDefault())}}}function B0(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"keyDisabled"),E=e.toRef(_,"tab");return{isDisabled:e.computed(()=>{if(t.value||n.value&&o_(E.value,n.value)===!0)return!0})}}function y0(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyLabel");return{labelLocal:e.computed(()=>{if(n.value)return o_(t.value,n.value)})}}function $0(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyTitle");return{titleLocal:e.computed(()=>{if(n.value)return o_(t.value,n.value)})}}const M0={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:_=>dt.indexOf(_)!==-1}},emits:["changeTab"],setup(_,t){const{idForContent:n,idLocal:E,isActive:r,tabIdLocal:s}=yf(_),{isDisabled:i}=B0(_),{tabindexLocal:l}=V0({isDisabled:i}),{changeTabLocal:L,keydownTab:S}=D0(_,t,{isDisabled:i,tabIdLocal:s}),{labelLocal:A}=y0(_),{titleLocal:u}=$0(_);return{changeTabLocal:L,idForContent:n,idLocal:E,isActive:r,isDisabled:i,keydownTab:S,labelLocal:A,tabindexLocal:l,tabIdLocal:s,titleLocal:u}},render(){let _="";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(u_,{html:this.labelLocal,tag:"span"})),e.h("li",{class:["a_tabs__list__item",this.tab.classLi]},[e.h(S_,{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 F0(_,{emit:t}){const n=e.toRef(_,"activeTabId"),E=e.toRef(_,"data"),r=e.toRef(_,"isChangeOutside"),s=e.toRef(_,"keyActive"),i=e.toRef(_,"keyId"),l=e.ref(void 0),L=()=>{E_(n.value)||(l.value=n.value)};return{activeTabIdLocal:l,changeTab:({$event:u,tab:d,tabId:c,index:f})=>{l.value!==c&&(r.value||(l.value=c),t("change",{$event:u,tab:d,tabId:c,index:f}))},initActiveTabIdLocal:()=>{L(),E_(l.value)&&(s.value&&(q(E.value,(u,d)=>{if(o_(u,s.value))return i.value?l.value=o_(u,i.value)||d:l.value=d,!1}),!E_(l.value))||(i.value?l.value=o_(E.value,`[0].${i.value}`)||0:l.value=0))},setActiveTabIdLocal:L}}const G0={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:()=>j_("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:_=>dt.indexOf(_)!==-1}},emits:["change"],setup(_,t){const n=e.toRef(_,"activeTabId"),{activeTabIdLocal:E,changeTab:r,initActiveTabIdLocal:s,setActiveTabIdLocal:i}=F0(_,t);return s(),e.watch(n,()=>{i()}),{activeTabIdLocal:E,changeTab:r}},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(M0,{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(P0,{key:t,activeTabIdLocal:this.activeTabIdLocal,index:t,keyContent:this.keyContent,keyId:this.keyId,parentId:this.id,tab:_},this.$slots))])])}};function $f(_,t){return function(){return _.apply(t,arguments)}}const{toString:v0}=Object.prototype,{getPrototypeOf:bS}=Object,Pi=(_=>t=>{const n=v0.call(t);return _[n]||(_[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),un=_=>(_=_.toLowerCase(),t=>Pi(t)===_),Vi=_=>t=>typeof t===_,{isArray:Ir}=Array,Xs=Vi("undefined");function w0(_){return _!==null&&!Xs(_)&&_.constructor!==null&&!Xs(_.constructor)&&$t(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const Mf=un("ArrayBuffer");function x0(_){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(_):t=_&&_.buffer&&Mf(_.buffer),t}const H0=Vi("string"),$t=Vi("function"),Ff=Vi("number"),Di=_=>_!==null&&typeof _=="object",q0=_=>_===!0||_===!1,Bi=_=>{if(Pi(_)!=="object")return!1;const t=bS(_);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in _)&&!(Symbol.iterator in _)},W0=un("Date"),k0=un("File"),X0=un("Blob"),K0=un("FileList"),j0=_=>Di(_)&&$t(_.pipe),z0=_=>{let t;return _&&(typeof FormData=="function"&&_ instanceof FormData||$t(_.append)&&((t=Pi(_))==="formdata"||t==="object"&&$t(_.toString)&&_.toString()==="[object FormData]"))},J0=un("URLSearchParams"),[Z0,Q0,_v,ev]=["ReadableStream","Request","Response","Headers"].map(un),tv=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ks(_,t,{allOwnKeys:n=!1}={}){if(_===null||typeof _>"u")return;let E,r;if(typeof _!="object"&&(_=[_]),Ir(_))for(E=0,r=_.length;E<r;E++)t.call(null,_[E],E,_);else{const s=n?Object.getOwnPropertyNames(_):Object.keys(_),i=s.length;let l;for(E=0;E<i;E++)l=s[E],t.call(null,_[l],l,_)}}function Gf(_,t){t=t.toLowerCase();const n=Object.keys(_);let E=n.length,r;for(;E-- >0;)if(r=n[E],t===r.toLowerCase())return r;return null}const Ma=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vf=_=>!Xs(_)&&_!==Ma;function gS(){const{caseless:_}=vf(this)&&this||{},t={},n=(E,r)=>{const s=_&&Gf(t,r)||r;Bi(t[s])&&Bi(E)?t[s]=gS(t[s],E):Bi(E)?t[s]=gS({},E):Ir(E)?t[s]=E.slice():t[s]=E};for(let E=0,r=arguments.length;E<r;E++)arguments[E]&&Ks(arguments[E],n);return t}const nv=(_,t,n,{allOwnKeys:E}={})=>(Ks(t,(r,s)=>{n&&$t(r)?_[s]=$f(r,n):_[s]=r},{allOwnKeys:E}),_),Ev=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),av=(_,t,n,E)=>{_.prototype=Object.create(t.prototype,E),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:t.prototype}),n&&Object.assign(_.prototype,n)},rv=(_,t,n,E)=>{let r,s,i;const l={};if(t=t||{},_==null)return t;do{for(r=Object.getOwnPropertyNames(_),s=r.length;s-- >0;)i=r[s],(!E||E(i,_,t))&&!l[i]&&(t[i]=_[i],l[i]=!0);_=n!==!1&&bS(_)}while(_&&(!n||n(_,t))&&_!==Object.prototype);return t},sv=(_,t,n)=>{_=String(_),(n===void 0||n>_.length)&&(n=_.length),n-=t.length;const E=_.indexOf(t,n);return E!==-1&&E===n},ov=_=>{if(!_)return null;if(Ir(_))return _;let t=_.length;if(!Ff(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=_[t];return n},iv=(_=>t=>_&&t instanceof _)(typeof Uint8Array<"u"&&bS(Uint8Array)),lv=(_,t)=>{const E=(_&&_[Symbol.iterator]).call(_);let r;for(;(r=E.next())&&!r.done;){const s=r.value;t.call(_,s[0],s[1])}},Lv=(_,t)=>{let n;const E=[];for(;(n=_.exec(t))!==null;)E.push(n);return E},Sv=un("HTMLFormElement"),Tv=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,E,r){return E.toUpperCase()+r}),wf=(({hasOwnProperty:_})=>(t,n)=>_.call(t,n))(Object.prototype),Av=un("RegExp"),xf=(_,t)=>{const n=Object.getOwnPropertyDescriptors(_),E={};Ks(n,(r,s)=>{let i;(i=t(r,s,_))!==!1&&(E[s]=i||r)}),Object.defineProperties(_,E)},uv=_=>{xf(_,(t,n)=>{if($t(_)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const E=_[n];if($t(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+"'")})}})},dv=(_,t)=>{const n={},E=r=>{r.forEach(s=>{n[s]=!0})};return Ir(_)?E(_):E(String(_).split(t)),n},cv=()=>{},fv=(_,t)=>_!=null&&Number.isFinite(_=+_)?_:t,YS="abcdefghijklmnopqrstuvwxyz",Hf="0123456789",qf={DIGIT:Hf,ALPHA:YS,ALPHA_DIGIT:YS+YS.toUpperCase()+Hf},Cv=(_=16,t=qf.ALPHA_DIGIT)=>{let n="";const{length:E}=t;for(;_--;)n+=t[Math.random()*E|0];return n};function Rv(_){return!!(_&&$t(_.append)&&_[Symbol.toStringTag]==="FormData"&&_[Symbol.iterator])}const hv=_=>{const t=new Array(10),n=(E,r)=>{if(Di(E)){if(t.indexOf(E)>=0)return;if(!("toJSON"in E)){t[r]=E;const s=Ir(E)?[]:{};return Ks(E,(i,l)=>{const L=n(i,r+1);!Xs(L)&&(s[l]=L)}),t[r]=void 0,s}}return E};return n(_,0)},pv=un("AsyncFunction"),Iv=_=>_&&(Di(_)||$t(_))&&$t(_.then)&&$t(_.catch),Wf=((_,t)=>_?setImmediate:t?((n,E)=>(Ma.addEventListener("message",({source:r,data:s})=>{r===Ma&&s===n&&E.length&&E.shift()()},!1),r=>{E.push(r),Ma.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$t(Ma.postMessage)),Ov=typeof queueMicrotask<"u"?queueMicrotask.bind(Ma):typeof process<"u"&&process.nextTick||Wf,k={isArray:Ir,isArrayBuffer:Mf,isBuffer:w0,isFormData:z0,isArrayBufferView:x0,isString:H0,isNumber:Ff,isBoolean:q0,isObject:Di,isPlainObject:Bi,isReadableStream:Z0,isRequest:Q0,isResponse:_v,isHeaders:ev,isUndefined:Xs,isDate:W0,isFile:k0,isBlob:X0,isRegExp:Av,isFunction:$t,isStream:j0,isURLSearchParams:J0,isTypedArray:iv,isFileList:K0,forEach:Ks,merge:gS,extend:nv,trim:tv,stripBOM:Ev,inherits:av,toFlatObject:rv,kindOf:Pi,kindOfTest:un,endsWith:sv,toArray:ov,forEachEntry:lv,matchAll:Lv,isHTMLForm:Sv,hasOwnProperty:wf,hasOwnProp:wf,reduceDescriptors:xf,freezeMethods:uv,toObjectSet:dv,toCamelCase:Tv,noop:cv,toFiniteNumber:fv,findKey:Gf,global:Ma,isContextDefined:vf,ALPHABET:qf,generateString:Cv,isSpecCompliantForm:Rv,toJSONObject:hv,isAsyncFn:pv,isThenable:Iv,setImmediate:Wf,asap:Ov};function x_(_,t,n,E,r){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),r&&(this.response=r,this.status=r.status?r.status:null)}k.inherits(x_,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const kf=x_.prototype,Xf={};["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(_=>{Xf[_]={value:_}}),Object.defineProperties(x_,Xf),Object.defineProperty(kf,"isAxiosError",{value:!0}),x_.from=(_,t,n,E,r,s)=>{const i=Object.create(kf);return k.toFlatObject(_,i,function(L){return L!==Error.prototype},l=>l!=="isAxiosError"),x_.call(i,_.message,t,n,E,r),i.cause=_,i.name=_.name,s&&Object.assign(i,s),i};const Uv=null;function PS(_){return k.isPlainObject(_)||k.isArray(_)}function Kf(_){return k.endsWith(_,"[]")?_.slice(0,-2):_}function jf(_,t,n){return _?_.concat(t).map(function(r,s){return r=Kf(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function mv(_){return k.isArray(_)&&!_.some(PS)}const Nv=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function yi(_,t,n){if(!k.isObject(_))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,p){return!k.isUndefined(p[C])});const E=n.metaTokens,r=n.visitor||A,s=n.dots,i=n.indexes,L=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function S(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(!L&&k.isBlob(f))throw new x_("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?L&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function A(f,C,p){let h=f;if(f&&!p&&typeof f=="object"){if(k.endsWith(C,"{}"))C=E?C:C.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&mv(f)||(k.isFileList(f)||k.endsWith(C,"[]"))&&(h=k.toArray(f)))return C=Kf(C),h.forEach(function(O,m){!(k.isUndefined(O)||O===null)&&t.append(i===!0?jf([C],m,s):i===null?C:C+"[]",S(O))}),!1}return PS(f)?!0:(t.append(jf(p,C,s),S(f)),!1)}const u=[],d=Object.assign(Nv,{defaultVisitor:A,convertValue:S,isVisitable:PS});function c(f,C){if(!k.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+C.join("."));u.push(f),k.forEach(f,function(h,I){(!(k.isUndefined(h)||h===null)&&r.call(t,h,k.isString(I)?I.trim():I,C,d))===!0&&c(h,C?C.concat(I):[I])}),u.pop()}}if(!k.isObject(_))throw new TypeError("data must be an object");return c(_),t}function zf(_){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(E){return t[E]})}function VS(_,t){this._pairs=[],_&&yi(_,this,t)}const Jf=VS.prototype;Jf.append=function(t,n){this._pairs.push([t,n])},Jf.toString=function(t){const n=t?function(E){return t.call(this,E,zf)}:zf;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function bv(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zf(_,t,n){if(!t)return _;const E=n&&n.encode||bv;k.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let s;if(r?s=r(t,n):s=k.isURLSearchParams(t)?t.toString():new VS(t,n).toString(E),s){const i=_.indexOf("#");i!==-1&&(_=_.slice(0,i)),_+=(_.indexOf("?")===-1?"?":"&")+s}return _}class Qf{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){k.forEach(this.handlers,function(E){E!==null&&t(E)})}}const _C={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:VS,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},DS=typeof window<"u"&&typeof document<"u",BS=typeof navigator=="object"&&navigator||void 0,Yv=DS&&(!BS||["ReactNative","NativeScript","NS"].indexOf(BS.product)<0),Pv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vv=DS&&window.location.href||"http://localhost",st={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:DS,hasStandardBrowserEnv:Yv,hasStandardBrowserWebWorkerEnv:Pv,navigator:BS,origin:Vv},Symbol.toStringTag,{value:"Module"})),...gv};function Dv(_,t){return yi(_,new st.classes.URLSearchParams,Object.assign({visitor:function(n,E,r,s){return st.isNode&&k.isBuffer(n)?(this.append(E,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Bv(_){return k.matchAll(/\w+|\[(\w*)]/g,_).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yv(_){const t={},n=Object.keys(_);let E;const r=n.length;let s;for(E=0;E<r;E++)s=n[E],t[s]=_[s];return t}function eC(_){function t(n,E,r,s){let i=n[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),L=s>=n.length;return i=!i&&k.isArray(r)?r.length:i,L?(k.hasOwnProp(r,i)?r[i]=[r[i],E]:r[i]=E,!l):((!r[i]||!k.isObject(r[i]))&&(r[i]=[]),t(n,E,r[i],s)&&k.isArray(r[i])&&(r[i]=yv(r[i])),!l)}if(k.isFormData(_)&&k.isFunction(_.entries)){const n={};return k.forEachEntry(_,(E,r)=>{t(Bv(E),r,n,0)}),n}return null}function $v(_,t,n){if(k.isString(_))try{return(t||JSON.parse)(_),k.trim(_)}catch(E){if(E.name!=="SyntaxError")throw E}return(n||JSON.stringify)(_)}const js={transitional:_C,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const E=n.getContentType()||"",r=E.indexOf("application/json")>-1,s=k.isObject(t);if(s&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return r?JSON.stringify(eC(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.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 Dv(t,this.formSerializer).toString();if((l=k.isFileList(t))||E.indexOf("multipart/form-data")>-1){const L=this.env&&this.env.FormData;return yi(l?{"files[]":t}:t,L&&new L,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),$v(t)):t}],transformResponse:[function(t){const n=this.transitional||js.transitional,E=n&&n.forcedJSONParsing,r=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(E&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?x_.from(l,x_.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:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],_=>{js.headers[_]={}});const Mv=k.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"]),Fv=_=>{const t={};let n,E,r;return _&&_.split(`
205
205
  `).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),E=i.substring(r+1).trim(),!(!n||t[n]&&Mv[n])&&(n==="set-cookie"?t[n]?t[n].push(E):t[n]=[E]:t[n]=t[n]?t[n]+", "+E:E)}),t},tC=Symbol("internals");function zs(_){return _&&String(_).trim().toLowerCase()}function $i(_){return _===!1||_==null?_:k.isArray(_)?_.map($i):String(_)}function Gv(_){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let E;for(;E=n.exec(_);)t[E[1]]=E[2];return t}const vv=_=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_.trim());function yS(_,t,n,E,r){if(k.isFunction(E))return E.call(this,t,n);if(r&&(t=n),!!k.isString(t)){if(k.isString(E))return t.indexOf(E)!==-1;if(k.isRegExp(E))return E.test(t)}}function wv(_){return _.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,E)=>n.toUpperCase()+E)}function xv(_,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(E=>{Object.defineProperty(_,E+n,{value:function(r,s,i){return this[E].call(this,t,r,s,i)},configurable:!0})})}let pt=class{constructor(t){t&&this.set(t)}set(t,n,E){const r=this;function s(l,L,S){const A=zs(L);if(!A)throw new Error("header name must be a non-empty string");const u=k.findKey(r,A);(!u||r[u]===void 0||S===!0||S===void 0&&r[u]!==!1)&&(r[u||L]=$i(l))}const i=(l,L)=>k.forEach(l,(S,A)=>s(S,A,L));if(k.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(k.isString(t)&&(t=t.trim())&&!vv(t))i(Fv(t),n);else if(k.isHeaders(t))for(const[l,L]of t.entries())s(L,l,E);else t!=null&&s(n,t,E);return this}get(t,n){if(t=zs(t),t){const E=k.findKey(this,t);if(E){const r=this[E];if(!n)return r;if(n===!0)return Gv(r);if(k.isFunction(n))return n.call(this,r,E);if(k.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zs(t),t){const E=k.findKey(this,t);return!!(E&&this[E]!==void 0&&(!n||yS(this,this[E],E,n)))}return!1}delete(t,n){const E=this;let r=!1;function s(i){if(i=zs(i),i){const l=k.findKey(E,i);l&&(!n||yS(E,E[l],l,n))&&(delete E[l],r=!0)}}return k.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let E=n.length,r=!1;for(;E--;){const s=n[E];(!t||yS(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,E={};return k.forEach(this,(r,s)=>{const i=k.findKey(E,s);if(i){n[i]=$i(r),delete n[s];return}const l=t?wv(s):String(s).trim();l!==s&&delete n[s],n[l]=$i(r),E[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(E,r)=>{E!=null&&E!==!1&&(n[r]=t&&k.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(`
206
206
  `)}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(r=>E.set(r)),E}static accessor(t){const E=(this[tC]=this[tC]={accessors:{}}).accessors,r=this.prototype;function s(i){const l=zs(i);E[l]||(xv(r,i),E[l]=!0)}return k.isArray(t)?t.forEach(s):s(t),this}};pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(pt.prototype,({value:_},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>_,set(E){this[n]=E}}}),k.freezeMethods(pt);function $S(_,t){const n=this||js,E=t||n,r=pt.from(E.headers);let s=E.data;return k.forEach(_,function(l){s=l.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function nC(_){return!!(_&&_.__CANCEL__)}function Or(_,t,n){x_.call(this,_??"canceled",x_.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Or,x_,{__CANCEL__:!0});function EC(_,t,n){const E=n.config.validateStatus;!n.status||!E||E(n.status)?_(n):t(new x_("Request failed with status code "+n.status,[x_.ERR_BAD_REQUEST,x_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Hv(_){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_);return t&&t[1]||""}function qv(_,t){_=_||10;const n=new Array(_),E=new Array(_);let r=0,s=0,i;return t=t!==void 0?t:1e3,function(L){const S=Date.now(),A=E[s];i||(i=S),n[r]=L,E[r]=S;let u=s,d=0;for(;u!==r;)d+=n[u++],u=u%_;if(r=(r+1)%_,r===s&&(s=(s+1)%_),S-i<t)return;const c=A&&S-A;return c?Math.round(d*1e3/c):void 0}}function Wv(_,t){let n=0,E=1e3/t,r,s;const i=(S,A=Date.now())=>{n=A,r=null,s&&(clearTimeout(s),s=null),_.apply(null,S)};return[(...S)=>{const A=Date.now(),u=A-n;u>=E?i(S,A):(r=S,s||(s=setTimeout(()=>{s=null,i(r)},E-u)))},()=>r&&i(r)]}const Mi=(_,t,n=3)=>{let E=0;const r=qv(50,250);return Wv(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,L=i-E,S=r(L),A=i<=l;E=i;const u={loaded:i,total:l,progress:l?i/l:void 0,bytes:L,rate:S||void 0,estimated:S&&l&&A?(l-i)/S:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};_(u)},n)},aC=(_,t)=>{const n=_!=null;return[E=>t[0]({lengthComputable:n,total:_,loaded:E}),t[1]]},rC=_=>(...t)=>k.asap(()=>_(...t)),kv=st.hasStandardBrowserEnv?((_,t)=>n=>(n=new URL(n,st.origin),_.protocol===n.protocol&&_.host===n.host&&(t||_.port===n.port)))(new URL(st.origin),st.navigator&&/(msie|trident)/i.test(st.navigator.userAgent)):()=>!0,Xv=st.hasStandardBrowserEnv?{write(_,t,n,E,r,s){const i=[_+"="+encodeURIComponent(t)];k.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),k.isString(E)&&i.push("path="+E),k.isString(r)&&i.push("domain="+r),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(_){const t=document.cookie.match(new RegExp("(^|;\\s*)("+_+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(_){this.write(_,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Kv(_){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_)}function jv(_,t){return t?_.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):_}function sC(_,t){return _&&!Kv(t)?jv(_,t):t}const oC=_=>_ instanceof pt?{..._}:_;function Fa(_,t){t=t||{};const n={};function E(S,A,u,d){return k.isPlainObject(S)&&k.isPlainObject(A)?k.merge.call({caseless:d},S,A):k.isPlainObject(A)?k.merge({},A):k.isArray(A)?A.slice():A}function r(S,A,u,d){if(k.isUndefined(A)){if(!k.isUndefined(S))return E(void 0,S,u,d)}else return E(S,A,u,d)}function s(S,A){if(!k.isUndefined(A))return E(void 0,A)}function i(S,A){if(k.isUndefined(A)){if(!k.isUndefined(S))return E(void 0,S)}else return E(void 0,A)}function l(S,A,u){if(u in t)return E(S,A);if(u in _)return E(void 0,S)}const L={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(S,A,u)=>r(oC(S),oC(A),u,!0)};return k.forEach(Object.keys(Object.assign({},_,t)),function(A){const u=L[A]||r,d=u(_[A],t[A],A);k.isUndefined(d)&&u!==l||(n[A]=d)}),n}const iC=_=>{const t=Fa({},_);let{data:n,withXSRFToken:E,xsrfHeaderName:r,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=pt.from(i),t.url=Zf(sC(t.baseURL,t.url),_.params,_.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let L;if(k.isFormData(n)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((L=i.getContentType())!==!1){const[S,...A]=L?L.split(";").map(u=>u.trim()).filter(Boolean):[];i.setContentType([S||"multipart/form-data",...A].join("; "))}}if(st.hasStandardBrowserEnv&&(E&&k.isFunction(E)&&(E=E(t)),E||E!==!1&&kv(t.url))){const S=r&&s&&Xv.read(s);S&&i.set(r,S)}return t},zv=typeof XMLHttpRequest<"u"&&function(_){return new Promise(function(n,E){const r=iC(_);let s=r.data;const i=pt.from(r.headers).normalize();let{responseType:l,onUploadProgress:L,onDownloadProgress:S}=r,A,u,d,c,f;function C(){c&&c(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(A),r.signal&&r.signal.removeEventListener("abort",A)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function h(){if(!p)return;const O=pt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),P={data:!l||l==="text"||l==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:O,config:_,request:p};EC(function(V){n(V),C()},function(V){E(V),C()},P),p=null}"onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){p&&(E(new x_("Request aborted",x_.ECONNABORTED,_,p)),p=null)},p.onerror=function(){E(new x_("Network Error",x_.ERR_NETWORK,_,p)),p=null},p.ontimeout=function(){let m=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const P=r.transitional||_C;r.timeoutErrorMessage&&(m=r.timeoutErrorMessage),E(new x_(m,P.clarifyTimeoutError?x_.ETIMEDOUT:x_.ECONNABORTED,_,p)),p=null},s===void 0&&i.setContentType(null),"setRequestHeader"in p&&k.forEach(i.toJSON(),function(m,P){p.setRequestHeader(P,m)}),k.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),l&&l!=="json"&&(p.responseType=r.responseType),S&&([d,f]=Mi(S,!0),p.addEventListener("progress",d)),L&&p.upload&&([u,c]=Mi(L),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(A=O=>{p&&(E(!O||O.type?new Or(null,_,p):O),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(A),r.signal&&(r.signal.aborted?A():r.signal.addEventListener("abort",A)));const I=Hv(r.url);if(I&&st.protocols.indexOf(I)===-1){E(new x_("Unsupported protocol "+I+":",x_.ERR_BAD_REQUEST,_));return}p.send(s||null)})},Jv=(_,t)=>{const{length:n}=_=_?_.filter(Boolean):[];if(t||n){let E=new AbortController,r;const s=function(S){if(!r){r=!0,l();const A=S instanceof Error?S:this.reason;E.abort(A instanceof x_?A:new Or(A instanceof Error?A.message:A))}};let i=t&&setTimeout(()=>{i=null,s(new x_(`timeout ${t} of ms exceeded`,x_.ETIMEDOUT))},t);const l=()=>{_&&(i&&clearTimeout(i),i=null,_.forEach(S=>{S.unsubscribe?S.unsubscribe(s):S.removeEventListener("abort",s)}),_=null)};_.forEach(S=>S.addEventListener("abort",s));const{signal:L}=E;return L.unsubscribe=()=>k.asap(l),L}},Zv=function*(_,t){let n=_.byteLength;if(n<t){yield _;return}let E=0,r;for(;E<n;)r=E+t,yield _.slice(E,r),E=r},Qv=async function*(_,t){for await(const n of _1(_))yield*Zv(n,t)},_1=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()}},lC=(_,t,n,E)=>{const r=Qv(_,t);let s=0,i,l=L=>{i||(i=!0,E&&E(L))};return new ReadableStream({async pull(L){try{const{done:S,value:A}=await r.next();if(S){l(),L.close();return}let u=A.byteLength;if(n){let d=s+=u;n(d)}L.enqueue(new Uint8Array(A))}catch(S){throw l(S),S}},cancel(L){return l(L),r.return()}},{highWaterMark:2})},Fi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",LC=Fi&&typeof ReadableStream=="function",e1=Fi&&(typeof TextEncoder=="function"?(_=>t=>_.encode(t))(new TextEncoder):async _=>new Uint8Array(await new Response(_).arrayBuffer())),SC=(_,...t)=>{try{return!!_(...t)}catch{return!1}},t1=LC&&SC(()=>{let _=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return _=!0,"half"}}).headers.has("Content-Type");return _&&!t}),TC=64*1024,MS=LC&&SC(()=>k.isReadableStream(new Response("").body)),Gi={stream:MS&&(_=>_.body)};Fi&&(_=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Gi[t]&&(Gi[t]=k.isFunction(_[t])?n=>n[t]():(n,E)=>{throw new x_(`Response type '${t}' is not supported`,x_.ERR_NOT_SUPPORT,E)})})})(new Response);const n1=async _=>{if(_==null)return 0;if(k.isBlob(_))return _.size;if(k.isSpecCompliantForm(_))return(await new Request(st.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(k.isArrayBufferView(_)||k.isArrayBuffer(_))return _.byteLength;if(k.isURLSearchParams(_)&&(_=_+""),k.isString(_))return(await e1(_)).byteLength},E1=async(_,t)=>{const n=k.toFiniteNumber(_.getContentLength());return n??n1(t)},FS={http:Uv,xhr:zv,fetch:Fi&&(async _=>{let{url:t,method:n,data:E,signal:r,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:L,responseType:S,headers:A,withCredentials:u="same-origin",fetchOptions:d}=iC(_);S=S?(S+"").toLowerCase():"text";let c=Jv([r,s&&s.toAbortSignal()],i),f;const C=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let p;try{if(L&&t1&&n!=="get"&&n!=="head"&&(p=await E1(A,E))!==0){let P=new Request(t,{method:"POST",body:E,duplex:"half"}),y;if(k.isFormData(E)&&(y=P.headers.get("content-type"))&&A.setContentType(y),P.body){const[V,$]=aC(p,Mi(rC(L)));E=lC(P.body,TC,V,$)}}k.isString(u)||(u=u?"include":"omit");const h="credentials"in Request.prototype;f=new Request(t,{...d,signal:c,method:n.toUpperCase(),headers:A.normalize().toJSON(),body:E,duplex:"half",credentials:h?u:void 0});let I=await fetch(f);const O=MS&&(S==="stream"||S==="response");if(MS&&(l||O&&C)){const P={};["status","statusText","headers"].forEach(N=>{P[N]=I[N]});const y=k.toFiniteNumber(I.headers.get("content-length")),[V,$]=l&&aC(y,Mi(rC(l),!0))||[];I=new Response(lC(I.body,TC,V,()=>{$&&$(),C&&C()}),P)}S=S||"text";let m=await Gi[k.findKey(Gi,S)||"text"](I,_);return!O&&C&&C(),await new Promise((P,y)=>{EC(P,y,{data:m,headers:pt.from(I.headers),status:I.status,statusText:I.statusText,config:_,request:f})})}catch(h){throw C&&C(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new x_("Network Error",x_.ERR_NETWORK,_,f),{cause:h.cause||h}):x_.from(h,h&&h.code,_,f)}})};k.forEach(FS,(_,t)=>{if(_){try{Object.defineProperty(_,"name",{value:t})}catch{}Object.defineProperty(_,"adapterName",{value:t})}});const AC=_=>`- ${_}`,a1=_=>k.isFunction(_)||_===null||_===!1,uC={getAdapter:_=>{_=k.isArray(_)?_:[_];const{length:t}=_;let n,E;const r={};for(let s=0;s<t;s++){n=_[s];let i;if(E=n,!a1(n)&&(E=FS[(i=String(n)).toLowerCase()],E===void 0))throw new x_(`Unknown adapter '${i}'`);if(E)break;r[i||"#"+s]=E}if(!E){const s=Object.entries(r).map(([l,L])=>`adapter ${l} `+(L===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
207
207
  `+s.map(AC).join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
- "version": "2.32.2",
3
+ "version": "2.32.3",
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",
@@ -42,11 +42,15 @@ export default function PreviewRightResizeAPI(props, { emit }, {
42
42
  };
43
43
 
44
44
  const setTableParentWidth = ({ clientWidthLocal, clientXTableParent, previewBoxWidth }) => {
45
+ if (!aTableRef.value) {
46
+ return;
47
+ }
48
+
45
49
  const TABLE_PARENT_WIDTH = clientWidthLocal - clientXTableParent - previewBoxWidth;
46
50
  aTableRef.value.style.width = `${ TABLE_PARENT_WIDTH }px`;
47
51
  };
48
52
 
49
- const mousemoveResizePreviewRight = ({ clientX = 0, previewRef, previewBoxWidth = 0 }) => {
53
+ const mousemoveResizePreviewRight = ({ clientX = 0, previewRef: _previewRef, previewBoxWidth = 0 }) => {
50
54
  let previewBoxWidthLocal = previewBoxWidth || clientWidthLocal - clientX;
51
55
  if (previewBoxWidthLocal < PREVIEW_BOX_MIN_WIDTH_PX) {
52
56
  previewBoxWidthLocal = PREVIEW_BOX_MIN_WIDTH_PX;
@@ -54,7 +58,9 @@ export default function PreviewRightResizeAPI(props, { emit }, {
54
58
  previewBoxWidthLocal = previewBoxMaxWidthPx;
55
59
  }
56
60
  setTableParentWidth({ clientWidthLocal, clientXTableParent, previewBoxWidth: previewBoxWidthLocal });
57
- previewRef.style.width = `${ previewBoxWidthLocal }px`;
61
+ if (_previewRef) {
62
+ _previewRef.style.width = `${ previewBoxWidthLocal }px`;
63
+ }
58
64
  };
59
65
 
60
66
  const closePreviewResize = ({ previewRef }) => {