aloha-vue 2.41.2 → 2.41.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.41.3
11
+
12
+ - Fix `isActionIconVisible` initialization in `SimpleTableAPI` to correctly reference its prop.
13
+
10
14
  ## 2.41.2
11
15
 
12
16
  - Revert to `dompurify` from `isomorphic-dompurify` for simplicity and update related imports and usage in `utils.js`.
@@ -49881,7 +49881,7 @@ function Nk(e, { emit: t }, {
49881
49881
  };
49882
49882
  }
49883
49883
  function Uk(e) {
49884
- const t = u(e, "hasMobile"), _ = u(e, "isActionColumnVisible"), n = u(e, "isActionColumnVisible"), a = u(e, "isColumnsDnd"), s = u(e, "isSimpleTable"), l = u(e, "modelIsTableWithoutScrollStart"), o = u(e, "rowActions"), c = y(void 0), S = () => {
49884
+ const t = u(e, "hasMobile"), _ = u(e, "isActionColumnVisible"), n = u(e, "isActionIconVisible"), a = u(e, "isColumnsDnd"), s = u(e, "isSimpleTable"), l = u(e, "modelIsTableWithoutScrollStart"), o = u(e, "rowActions"), c = y(void 0), S = () => {
49885
49885
  c.value = l.value;
49886
49886
  }, {
49887
49887
  isMobileWidth: A
@@ -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>`,q0={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}=v0(),{filterCurrency:E}=mt(),{buttonMultipleId:a,currentMultipleActions:s,multipleActionsFiltered:o,onCancelMultipleActions:i,onOpenModalMultipleActions:A,tableActionsFiltered:T}=F0(_,t),{isBtnMultipleActionDisabled:S,isBtnSelectAllRowsDisabled:u,multiplePanelId:c,textMultipleBtnAllRowsTranslate:d,textMultipleSelectedTranslateExtra:f,toggleBtnAllRows:C}=w0(_,t),{updateViewCurrentLocal:R,viewSlotLocal:I}=x0(_,t),{countAllRowsFormatted:O}=G0(_);return{buttonMultipleId:a,countAllRowsFormatted:O,currentMultipleActions:s,filterCurrency:E,isBtnMultipleActionDisabled:S,isBtnSelectAllRowsDisabled:u,multipleActionsFiltered:o,multiplePanelId:c,onCancelMultipleActions:i,onOpenModalMultipleActions:A,tableActionsFiltered:T,tableLabelId:n,textMultipleBtnAllRowsTranslate:d,textMultipleSelectedTranslateExtra:f,toggleBtnAllRows:C,updateViewCurrentLocal:R,viewSlotLocal:I}},methods:{updateModelQuickSearch(_){this.$emit("updateModelQuickSearch",_)}},render(){var _,t,n,E;return[e.h("div",{class:"a_table__top_panel"},[this.isLabelVisible?this.$slots.tableLabel?this.$slots.tableLabel({countAllRows:this.countAllRows,tableLabelId:this.tableLabelId}):e.h(this.labelTag,{class:["a_table__top_panel__label",this.labelClass]},[e.h(d_,{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(Bl,{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:Js,buttonText:{desktop:"_A_TABLE_ACTIONS_"},hasCaret:!1,inBody:!0,placement:"bottom-end"}}),e.h(Bl,{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:H0,inBody:!0,placement:"bottom-end"}}),this.isQuickSearch?e.h(Ot,{label:"_A_TABLE_QUICK_SEARCH_",class:"a_table__top_panel__actions__quick_search",modelUndefined:"",modelValue:this.modelQuickSearch,iconPrepend:af,"onUpdate:modelValue":this.updateModelQuickSearch}):"",this.hasViews?e.h(IT,{modelValue:this.modelView,class:"a_d_inline_block",isButtonGroup:!0,disabled:this.disabledViews,slotName:this.viewSlotLocal,data:this.views,keyId:"id",keyLabel:"label",hasBorder:!1,classFieldset:"a_p_0","onUpdate:modelValue":this.updateViewCurrentLocal},{viewSlot:a=>this.$slots.viewSlot&&this.$slots.viewSlot({...a})}):"",this.useAdditionalSorting?e.h(M0,{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(d_,{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(d_,{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(Te,{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(Te,{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(Te,{class:"a_btn a_btn_secondary a_table__action",type:"button",text:"_A_TABLE_MULTIPLE_CANCEL_",onClick:this.onCancelMultipleActions})])]):""]}};function W0(){const _=e.ref(void 0);return{componentRef:_,setFocusToComponent:()=>{var n;(n=_.value)==null||n.focus({preventScroll:!0})}}}const k0={name:"ATablePreviewDown",props:{row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},inject:["onTogglePreview"],setup(){const{componentRef:_,setFocusToComponent:t}=W0();return e.onMounted(()=>{t()}),{componentRef:_}},render(){return e.h("div",{ref:"componentRef",class:"a_table__preview_down",tabindex:-1},[e.h(d_,{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(Te,{class:"a_btn a_btn_transparent_dark a_table__preview_down__btn_close",iconLeft:Vn,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 K0(_){const t=e.toRef(_,"column"),n=e.toRef(_,"disabledPreview"),E=e.toRef(_,"isFooter"),a=e.inject("hasPreview"),s=e.inject("isMobile"),{columnsStyles:o}=Ff(_);return{attributesForTd:e.computed(()=>{const A={class:["a_table__td a_table__cell",{a_table__cell_click:a.value&&!E.value&&!n.value},t.value.classRowParent],style:o.value};return s.value||(A.role="cell"),A})}}function xf(_){const t=e.toRef(_,"column"),n=e.toRef(_,"row"),E=e.computed(()=>!!t.value.to),a=e.computed(()=>{if(re(t.value.to))return t.value.to;if(te(t.value.to)){const o=E_(t.value.to),i=o.params||{},A=o.query||{};if(t.value.to.nameDynamic&&!t.value.to.name){const T=l_(n.value,t.value.to.nameDynamic);T&&(o.name=T)}if(t.value.to.paramsDynamic){let T=!1;if(q(t.value.to.paramsDynamic,(S,u)=>{const c=l_(n.value,S);if(B_(c))return T=!0,!1;i[u]=c}),T)return}if(t.value.to.queryDynamic){let T=!1;if(q(t.value.to.queryDynamic,(S,u)=>{const c=l_(n.value,S);if(B_(c))return T=!0,!1;A[u]=c}),T)return}return o.params=i,o.query=A,o}});return{classForLink:e.computed(()=>"a_btn a_btn_link a_p_0 a_text_left"),isLink:E,toLocal:a}}function Hf(_){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 qf(_){const t=e.toRef(_,"column"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.inject("columnsDefaultValue"),s=e.inject("valuesForColumnDefault"),o=e.computed(()=>n.value&&"footerDefaultValue"in t.value?t.value.footerDefaultValue:"defaultValue"in t.value?t.value.defaultValue:B_(a.value)?"":a.value),i=e.computed(()=>n.value?t.value.footerKeyLabel:t.value.keyLabel),A=e.computed(()=>n.value?t.value.footerKeyLabelSafeHtml:t.value.keyLabelSafeHtml),T=e.computed(()=>n.value?t.value.footerKeyLabelHtml:t.value.keyLabelHtml),S=e.computed(()=>{if(i.value)return l_(E.value,i.value)}),u=e.computed(()=>{if(A.value)return l_(E.value,A.value)}),c=e.computed(()=>{if(T.value)return l_(E.value,T.value)}),d=O=>{let p=!1;return q(s.value,N=>{if(O===N)return p=!0,!1}),p?o.value:O},f=e.computed(()=>d(S.value)),C=e.computed(()=>d(u.value)),R=e.computed(()=>d(c.value));return{textOrHtmlRender:e.computed(()=>{if(i.value)return e.h("span",null,f.value);if(A.value)return e.h("div",{innerHTML:C.value});if(T.value)return e.withDirectives(e.h("div"),[[ke,R.value]])})}}const Wf=`<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>`,kf={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}=K0(_),{classForLink:n,isLink:E,toLocal:a}=xf(_),{hasSlot:s,slotName:o}=Hf(_),{textOrHtmlRender:i}=qf(_);return{attributesForTd:t,classForLink:n,hasSlot:s,isLink:E,slotName:o,textOrHtmlRender:i,toLocal:a}},render(){const _=e.h("div",this.attributesForTd,[e.h("div",{class:["a_table__cell__child",this.column.class,this.column.classRow]},[this.showIconChildren?e.h(S_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:Wf,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(d_,{html:this.column.label,tag:"dt"}),e.h("dd",{},[_])]:_}},X0={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}=xf(_),{hasSlot:a,slotName:s}=Hf(_),{textOrHtmlRender:o}=qf(_);return{classForLink:t,hasSlot:a,isLink:n,slotName:s,textOrHtmlRender:o,toLocal:E}},render(){return[e.h(d_,{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 j0(){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 z0(_){const t=e.toRef(_,"columnActionsView"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.inject("columnActionsOnePlusDropdownOptions"),o=e.inject("rowActions"),i=e.inject("tableId"),A=e.computed(()=>`${i.value}_action_${a.value}`),T=e.computed(()=>B_(s.value.indexFirstDropdownAction)?1:s.value.indexFirstDropdownAction),S=({rowAction:m})=>{if(m.text)return m.text;if(b_(m.textCallback))return m.textCallback({row:E.value,rowIndex:a.value,rowAction:m})},u=({rowAction:m})=>{if(m.html)return m.html;if(b_(m.htmlCallback))return m.htmlCallback({row:E.value,rowIndex:a.value,rowAction:m})},c=({rowAction:m})=>{if(m.title)return m.title;if(b_(m.titleCallback))return m.titleCallback({row:E.value,rowIndex:a.value,rowAction:m})},d=({rowAction:m})=>m.disabled?m.disabled:b_(m.disabledCallback)?m.disabledCallback({row:E.value,rowIndex:a.value,rowAction:m}):!1,f=({rowAction:m})=>m.class?m.class:b_(m.classCallback)?m.classCallback({row:E.value,rowIndex:a.value,rowAction:m}):"",C=({rowAction:m})=>{if(m.iconLeft)return m.iconLeft;if(b_(m.iconLeftCallback))return m.iconLeftCallback({row:E.value,rowIndex:a.value,rowAction:m})},R=({rowAction:m})=>{if(m.iconRight)return m.iconRight;if(b_(m.iconRightCallback))return m.iconRightCallback({row:E.value,rowIndex:a.value,rowAction:m})},I=({rowAction:m})=>{if(re(m.to))return m.to;if(te(m.to)){const V=E_(m.to),B=V.params||{},v=V.query||{};if(m.to.nameDynamic&&!m.to.name){const J=l_(E.value,m.to.nameDynamic);J&&(V.name=J)}if(m.to.paramsDynamic){let J=!1;if(q(m.to.paramsDynamic,(X,Z)=>{const Q=l_(E.value,X);if(B_(Q))return J=!0,!1;B[Z]=Q}),J)return}if(m.to.queryDynamic){let J=!1;if(q(m.to.queryDynamic,(X,Z)=>{const Q=l_(E.value,X);if(B_(Q))return J=!0,!1;v[Z]=Q}),J)return}return V.params=B,V.query=v,V}},O=({rowAction:m})=>m.href?m.href:b_(m.hrefCallback)?m.hrefCallback({row:E.value,rowIndex:a.value,rowAction:m}):!1,p=({rowAction:m})=>{if(m.extra)return m.extra;if(b_(m.extraCallback))return m.extraCallback({row:E.value,rowIndex:a.value,rowAction:m})},N=({rowAction:m})=>{if(m.textScreenReader)return m.textScreenReader;if(b_(m.textScreenReaderCallback))return m.textScreenReaderCallback({row:E.value,rowIndex:a.value,rowAction:m})},P=({rowActionIndexVisible:m})=>{if(t.value==="dropdown")return{id:A.value,ids:[A.value,i.value]};if(m<T.value){const V=`${A.value}_${m}`;return{buttonId:V,id:V,ids:[V,i.value]}}return{id:A.value,ids:[A.value,i.value]}},$=m=>{q(m,(V,B)=>{TD(B,"Callback")&&(m[B]=void 0)})},g=e.computed(()=>{const m=[];let V=0;return q(E_(o.value),B=>{if(Vf({rowAction:B,row:E.value,rowIndex:a.value})){if(B.type!=="divider"){const v=S({rowAction:B});v&&(B.text=v);const J=u({rowAction:B});J&&(B.html=J);const X=c({rowAction:B});X?B.title=X:v&&(B.title=v);const Z=d({rowAction:B});Z&&(B.disabled=Z);const Q=f({rowAction:B});Q&&(B.class=Q);const H=C({rowAction:B});H&&(B.iconLeft=H);const j=R({rowAction:B});j&&(B.iconRight=j);const L_=p({rowAction:B});L_&&(B.extra=L_);const p_=N({rowAction:B});if(L_&&(B.textScreenReader=p_),B.type==="link"){const i_=I({rowAction:B});i_?B.to=i_:B.href=O({rowAction:B})}if(b_(B.callback)){const{buttonId:i_,id:R_,ids:N_}=P({rowActionIndexVisible:V});B.id=i_;const H_=B.callback;B.callback=()=>H_({row:E.value,rowIndex:a.value,id:R_,ids:N_,rowAction:B})}$(B),V++}m.push(B)}}),m}),M=e.computed(()=>!n.value&&g.value.length>0);return{buttonActionsId:A,isRowActionsDropdownVisible:M,rowActionsFiltered:g}}function J0(_){const t=e.toRef(_,"rowIndex");return{rowNumber:e.computed(()=>t.value+1)}}const Z0={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}=Tt(),{buttonActionsId:n,isRowActionsDropdownVisible:E,rowActionsFiltered:a}=z0(_),{columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:i}=j0(),{rowNumber:A}=J0(_),{stylesThTd:T}=yf();return{buttonActionsId:n,columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:i,isMobileWidth:t,isRowActionsDropdownVisible:E,rowActionsFiltered:a,rowNumber:A,stylesThTd:T}},render(){return e.h("div",{role:"cell",class:["a_table__td a_table__cell a_table__cell_action",{a_table__cell_action_sticky:this.isRowActionsStickyLocal}],...this.stylesThTd},[e.h("div",{class:["a_table__cell__child",this.rowActionsClass]},[this.isColumnsScrollInvisibleDropdownVisible&&e.h(wn,{buttonClass:"a_btn a_btn_link a_text_nowrap",buttonIconLeft:Ef,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(X0,{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(wn,{id:this.buttonActionsId,actions:this.rowActionsFiltered,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:Js,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(Bl,{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:aE,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 Q0(_,{hasChildren:t=e.computed(()=>!1),hasPreviewLocal:n=e.computed(()=>!1),rowClassChildren:E=e.computed(()=>{}),rowClassLevelChildren:a=e.computed(()=>{}),rowClassPreview:s=e.computed(()=>{}),toggleChildren:o=()=>{}}){const i=e.toRef(_,"disabledPreview"),A=e.toRef(_,"disabledPreviewRowCallback"),T=e.toRef(_,"isFooter"),S=e.toRef(_,"isTreeCollapsible"),u=e.toRef(_,"level"),c=e.toRef(_,"row"),d=e.toRef(_,"rowClass"),f=e.toRef(_,"rowIndex"),C=e.inject("isMobile"),R=e.inject("onTogglePreview"),I=e.inject("tableId"),O=e.computed(()=>{const V=T.value?"_footer":"";return`${I.value}${V}_${f.value}`}),p=e.computed(()=>b_(d.value)?d.value({level:u.value,row:c.value,rowindex:f.value}):d.value),N=e.computed(()=>["a_table__row a_table__body__row a_table__row_hover",E.value,a.value,s.value,p.value]),P=e.computed(()=>C.value?"listitem":"row"),$=e.computed(()=>b_(A.value)?A.value({row:c.value,rowIndex:f.value}):i.value),g=V=>{i0({$event:V,tagsName:["A","BUTTON","INPUT","LABEL"],classStop:"a_table__row"})||(t.value?o():n.value&&R({row:c.value,rowIndex:f.value}))},M=V=>{V.keyCode===e_.enter&&g(V)},m=e.computed(()=>(S.value&&t.value||n.value)&&!$.value?{tabindex:0,onClick:g,onKeydown:M}:{});return{disabledPreviewRow:$,eventsLocal:m,roleLocal:P,rowClassComputed:N,rowHtmlId:O}}function _v(_,{emit:t}){const n=e.toRef(_,"areAllRowsSelected"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"selectedRowsIndexes"),o=e.inject("currentMultipleActions"),i=e.inject("isMultipleActionsActive"),A=e.computed(()=>!!s.value[a.value]||n.value),T=e.computed(()=>{if(i.value){if(b_(l_(o.value,"isHiddenCallback")))return o.value.isHiddenCallback({row:E.value,rowIndex:a.value});if(n.value)return!0}return!1}),S=e.computed(()=>A.value?"_A_TABLE_DESELECT_THIS_ROW_":"_A_TABLE_SELECT_THIS_ROW_");return{isCheckboxDisabled:T,isRowSelected:A,labelCheckbox:S,toggleCheckbox:()=>{T.value||t("setSelectedRowsIndexes",{rowIndex:a.value})}}}function ev(_){const t=e.toRef(_,"isTree"),n=e.toRef(_,"keyChildren"),E=e.toRef(_,"level"),a=e.toRef(_,"row"),s=e.toRef(_,"rowIndex"),o=e.toRef(_,"rowsLength"),i=e.computed(()=>{if(!n.value)return[];const c=l_(a.value,n.value);return f_(c)?c:[]}),A=e.computed(()=>i.value.length>0),T=e.computed(()=>E.value+1),S=e.computed(()=>t.value?{"aria-level":E.value,"aria-posinset":s.value+1,"aria-setsize":o.value}:{}),u=e.computed(()=>{if(t.value)return`a_table__row_level a_table__row_level_${E.value}`});return{ariaTreeAttributes:S,children:i,hasChildren:A,levelForChildren:T,rowClassLevelChildren:u}}function tv(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isOneOfParentsClose"),E=e.toRef(_,"isTreeCollapsible"),a=e.toRef(_,"isTreeOpened"),s=e.ref(!1),o=e.computed(()=>{if(t.value)return s.value}),i=e.computed(()=>({a_table__row_has_children:t.value,a_table__row_hide:n.value,a_table__row_level_open:t.value&&s.value})),A=e.computed(()=>!!(n.value||!s.value));return{ariaExpanded:o,initIsChildrenOpen:()=>{(!E.value||a.value)&&(s.value=!0)},isOneOfParentsCloseForChildren:A,rowClassChildren:i,toggleChildren:()=>{s.value=!s.value}}}function nv(_){const t=e.toRef(_,"allVisibleMobileColumns"),n=e.toRef(_,"countVisibleMobileColumns"),E=e.inject("isMobile"),a=e.ref(!1),s=e.computed(()=>t.value.length-n.value),o=e.computed(()=>E.value&&t.value.length>n.value),i=e.computed(()=>s.value===1?"_A_TABLE_MOBILE_TR_PLUS_FIELD_":"_A_TABLE_MOBILE_TR_PLUS_FIELDS_{{count}}_"),A=e.computed(()=>a.value?"_A_TABLE_MOBILE_TR_CLOSE_":i.value);return{countInvisibleMobileColumns:s,isAllColumnsVisibleMobile:a,isBtnToggleAllColumnsVisible:o,textBtnToggleAllColumns:A,toggleAllColumnsVisibleMobile:({$event:S})=>{a.value=!a.value,S.stopPropagation()}}}function Ev(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isFooter"),E=e.toRef(_,"rowIndex"),a=e.inject("hasPreview"),s=e.inject("previewRightRowIndex"),o=e.inject("previewRightRowIndexLast"),i=e.computed(()=>!!(!t.value&&a.value&&!n.value)),A=e.computed(()=>E.value===s.value),T=e.computed(()=>!A.value&&E.value===o.value),S=e.computed(()=>c_({placeholder:A.value?"_A_TABLE_ROW_PREVIEW_CLOSE_":"_A_TABLE_ROW_PREVIEW_OPEN_"})),u=e.computed(()=>i.value?{"aria-label":S.value}:{}),c=e.computed(()=>{if(i.value)return{a_table__row_preview_open:A.value,a_table__row_preview_was_open:T.value}});return{hasPreviewLocal:i,previewAttributes:u,rowClassPreview:c}}const Kf={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:a,levelForChildren:s,rowClassLevelChildren:o}=ev(_),{ariaExpanded:i,initIsChildrenOpen:A,isOneOfParentsCloseForChildren:T,rowClassChildren:S,toggleChildren:u}=tv(_,{hasChildren:a}),{hasPreviewLocal:c,previewAttributes:d,rowClassPreview:f}=Ev(_,{hasChildren:a}),{disabledPreviewRow:C,eventsLocal:R,roleLocal:I,rowClassComputed:O,rowHtmlId:p}=Q0(_,{hasChildren:a,hasPreviewLocal:c,rowClassChildren:S,rowClassLevelChildren:o,rowClassPreview:f,toggleChildren:u}),{countInvisibleMobileColumns:N,isAllColumnsVisibleMobile:P,isBtnToggleAllColumnsVisible:$,textBtnToggleAllColumns:g,toggleAllColumnsVisibleMobile:M}=nv(_),{isCheckboxDisabled:m,isRowSelected:V,labelCheckbox:B,toggleCheckbox:v}=_v(_,t);return A(),{ariaExpanded:i,ariaTreeAttributes:n,children:E,countInvisibleMobileColumns:N,disabledPreviewRow:C,eventsLocal:R,hasChildren:a,isAllColumnsVisibleMobile:P,isBtnToggleAllColumnsVisible:$,isCheckboxDisabled:m,isOneOfParentsCloseForChildren:T,isRowSelected:V,labelCheckbox:B,levelForChildren:s,previewAttributes:d,roleLocal:I,rowClassComputed:O,rowHtmlId:p,textBtnToggleAllColumns:g,toggleAllColumnsVisibleMobile:M,toggleCheckbox:v,toggleChildren:u}},inject:["columnsFilteredForRender","isActionColumnVisible","isMultipleActionsActive","isMobile"],render(){let _=[];this.isMobile&&!this.isAllColumnsVisibleMobile?q(this.allVisibleMobileColumns,(E,a)=>{if(a+1>this.countVisibleMobileColumns)return!1;_.push(e.h(kf,{key:E.id,column:E,columnIndex:a,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))}):_=this.columnsFilteredForRender.map((E,a)=>e.h(kf,{key:E.id,column:E,columnIndex:a,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,showIconChildren:!!(this.isTreeCollapsible&&this.hasChildren&&a===0)},this.$slots));const t=this.isActionColumnVisible&&e.h(Z0,{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:Wf,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(mr,{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(k0,{row:this.row,rowIndex:this.rowIndex},{preview:E=>this.$slots.preview?this.$slots.preview(E):void 0}),this.hasChildren?this.children.map((E,a)=>e.h(e.resolveComponent("ATableTr"),{key:E[this.keyId]||a,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:a,rowsLength:this.children.length,selectedRowsIndexes:this.selectedRowsIndexes},{get:s=>[e.h(Vl,{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 av(_,{columnActionsWidthDefaultsRemLocal:t=e.computed(()=>({})),columnActionsWidthMinRemLocal:n=()=>{},columnActionsWidthRemLocal:E=()=>{},isMobile:a=e.computed(()=>!1),rowsLocal:s=e.ref([])}){const o=e.toRef(_,"columnActionsView"),i=e.toRef(_,"rowActions"),A=e.computed(()=>o.value==="onePlusDropdown"),T=e.computed(()=>{let f=!1;_:for(let C=0;C<s.value.length;C++){const R=s.value[C];for(let I=0;I<i.value.length;I++){const O=i.value[I];if(Vf({rowAction:O,row:R,rowIndex:C})&&O.type!=="divider"){f=!0;break _}}}return f}),S=e.computed(()=>!i.value.length||!A.value?!1:T.value),u=e.computed(()=>B_(E.value)?S.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdown:t.value.default:E.value),c=e.computed(()=>B_(n.value)?S.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdownMin:t.value.min:n.value);return{columnActionsBtnGroupMaxWidthStyle:e.computed(()=>{const f=t.value.btnGroupMaxWidth;if(!a.value&&o.value!=="dropdown"&&!B_(f))return`max-width: ${f}px`}),columnActionsWidthLocal:u,columnActionsWidthMinLocal:c,isColumnActionWide:S}}function rv(_,{columnsScrollInvisible:t=e.ref([]),indexFirstScrollInvisibleColumn:n=e.ref(void 0),modelColumnsVisibleLocal:E=e.ref({}),modelIsTableWithoutScrollComputed:a=e.computed(()=>!1),columnsOrderedFromSimpleTable:s=e.computed(()=>[])}){const o=e.toRef(_,"columns"),i=e.toRef(_,"isActionColumnVisible"),A=e.toRef(_,"isSimpleTable"),T=e.toRef(_,"modelColumnsOrdering"),S=e.toRef(_,"multipleActions"),u=e.computed(()=>oa(o.value,"id")),c=e.computed(()=>{const O={true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]};return q(E_(o.value),p=>{const N=p.id;p.locked?(O.true.push(N),O.trueColumns.push(p),O.trueObject[N]=!0):(O.false.push(N),O.falseColumns.push(p),O.falseObject[N]=!0)}),O}),d=e.computed(()=>{if(A.value&&s.value&&s.value.length)return s.value;if(!T.value.length)return[...c.value.trueColumns,...c.value.falseColumns];const O=[],p=E_(u.value);return q(T.value,N=>{p[N]&&O.push(p[N])}),O}),f=e.computed(()=>{const O=[],p={};return q(d.value,(N,P)=>{S0({column:N,columnIndex:P,modelIsTableWithoutScroll:a.value,modelColumnsVisibleLocal:E.value,indexFirstScrollInvisibleColumn:n.value})&&(p[O.length]=P,O.push(N))}),{columns:O,columnsIndexesMapping:p}}),C=e.computed(()=>f.value.columnsIndexesMapping),R=e.computed(()=>f.value.columns),I=e.computed(()=>{let O=R.value.length;return a.value&&(O+=t.value.length),i.value&&O++,S.value.length&&O++,O});return{columnIdsGroupByLocked:c,columnsFilteredForRender:R,columnsFilteredForRenderIndexesMapping:C,columnsOrdered:d,countNotHiddenColumns:I}}function sv(_,{modelSort:t=e.ref([])}){const n=e.toRef(_,"columns"),E=e.toRef(_,"showFirstSortingSequenceNumber"),a=e.toRef(_,"sortingSequenceNumberClass"),s=e.computed(()=>Ae(n.value,I=>A0({column:I}))),o=e.computed(()=>Ft(s.value,(I,O)=>({...I,_index:I.prio||O}))),i=e.computed(()=>Ft(o.value,I=>(I.group&&I.group.length&&(I.group=Ft(I.group,(O,p)=>[O,p].join("%%%"))),I))),A=({groups:I,group:O,level:p,columnsOrderedFromGroups:N,firstLevelGroupObject:P})=>{const $=O?Ae(I,m=>As(m,O[p-1])):I,g=bA($,m=>m[p]),M=Ft(g,m=>{const V={id:m[p].split("%%%")[0]};let B;return p===0?(B=V,B.columnIndexes=[]):B=P,m.length>p+1?V.children=l_(A({groups:I,group:m,level:p+1,columnsOrderedFromGroups:N,firstLevelGroupObject:B}),"recursiveGroup"):m.length===p+1&&(V.columns=Ae(i.value,v=>As(v.group,m[p])),B.columnIndexes.push(...Ft(V.columns,"_index")),N.push(...V.columns)),V});return{columnsOrderedFromGroups:N,recursiveGroup:M}},T=e.computed(()=>Ft(i.value,I=>l_(I,"group",I))),S=e.computed(()=>Ae(T.value,I=>f_(I))),u=e.computed(()=>Ae(T.value,I=>!f_(I))),c=e.computed(()=>{const I=[];return A({groups:S.value,group:null,level:0,columnsOrderedFromGroups:I})}),d=e.computed(()=>Ls([...c.value.columnsOrderedFromGroups,...u.value],"_index")),f=I=>e.h(GT,{ref:"th",class:"a_table__cell__child_group",column:I,columnGroupNames:Ft(I.group,O=>O.split("%%%")[0]),columnIndex:I._index,hasMultipleActions:!1,modelSort:t.value,showFirstSortingSequenceNumber:E.value,sortingSequenceNumberClass:a.value}),C=I=>e.h("div",{class:"a_table__th_group"},[e.h("div",{class:"a_table__th_child_group"},[e.h("div",{class:"a_table__cell_group a_text_center"},[I.id&&e.h(d_,{html:I.id,tag:"span","aria-hidden":!0})]),e.h("div",{class:"a_table__th_group_container"},I.children?Ft(I.children,O=>C(O)):Ft(I.columns,O=>f(O)))])]),R=e.computed(()=>{const I=Ls([...c.value.recursiveGroup,...u.value],O=>O.columnIndexes?Yu(O.columnIndexes):O._index);return Ft(I,O=>O.columnIndexes?C(O):f(O))});return{columnsOrderedFromSimpleTable:d,renderedGroupedColumns:R}}function ov(_,{emit:t},{checkVisibleColumns:n=()=>{},columnIdsGroupByLocked:E=e.computed(()=>({true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]})),columnsFilteredForRenderIndexesMapping:a=e.computed(()=>({}))}){const s=e.toRef(_,"columns"),o=e.toRef(_,"modelColumnsOrdering"),i=({columnIndexDraggable:S,columnIndexOver:u,reset:c,inHeader:d})=>{if(S===u&&!c)return;d&&(S=a.value[S],u=a.value[u]);let f;if(c)f=[...E.value.true,...E.value.false];else{f=E_(o.value);const C=f[S];f.splice(S,1),f.splice(u,0,C)}t("changeColumnsOrdering",{columnIndexDraggable:S,columnIndexOver:u,modelColumnsOrdering:f}),setTimeout(()=>{n()})},A=()=>{let S=[],u=!1;if(!o.value.length)S=[...E.value.true,...E.value.false];else{S=[...E.value.true];const c=E_(E.value.falseObject);q(o.value,d=>{c[d]&&(S.push(d),delete c[d])}),q(c,(d,f)=>{S.push(f)}),JSON.stringify(o.value)!==JSON.stringify(S)&&(u=!0)}return{shouldFixColumns:u,modelColumnsOrderingLocal:S}},T=()=>{const{shouldFixColumns:S,modelColumnsOrderingLocal:u}=A();S&&t("changeColumnsOrdering",{modelColumnsOrdering:u,shouldFixColumns:S})};return e.watch(s,()=>{T()},{deep:!0}),{changeColumnsOrdering:i,checkColumnsOrdering:A}}function lv(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"data"),E=e.toRef(_,"isTree"),a=e.toRef(_,"keyChildren"),s=e.toRef(_,"keyCountAllRowsInData"),o=e.computed(()=>te(n.value)),i=e.computed(()=>f_(n.value)),A=e.computed(()=>s_(t.value)?o.value?+l_(n.value,s.value):i.value?E.value?nc({array:n.value,keyChildren:a.value}):n.value.length:0:t.value),T=e.computed(()=>s_(t.value)?n.value.length:t.value);return{countAllRowsLocal:A,totalRowsCount:T}}function iv({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 Av(_,{emit:t},{checkColumnsOrdering:n=()=>{},checkVisibleColumns:E=()=>{},modelColumnsVisibleLocal:a=e.ref({})}){const s=e.toRef(_,"modelColumnsVisible"),o=e.toRef(_,"columns");return{initTable:()=>{const{shouldFixColumns:A,modelColumnsOrderingLocal:T}=n();let S=!1;la(s.value)?a.value=E_(s.value):(S=!0,a.value=Pf(o.value),E()),t("initTable",E_({columnsOrdering:{model:T,shouldFix:A},columnsVisible:{model:a.value,shouldFix:S}}))}}}function Tv(_,{emit:t},{closePreviewAll:n=()=>{},scrollToTable:E=()=>{},setFocusToTable:a=()=>{},viewCurrent:s=e.computed(()=>({}))}){const o=e.toRef(_,"isTree"),i=e.toRef(_,"offsetStart"),A=e.toRef(_,"pagination"),T=e.ref(void 0),S=e.ref(void 0),u=()=>{T.value=A.value.limitStart||10,S.value=i.value},c=e.computed(()=>{var I;return o.value?!1:(I=A.value)!=null&&I.use?s.value?s.value.usePagination||!1:!0:!1}),d=e.computed(()=>A.value.position==="top"||A.value.position==="y"),f=e.computed(()=>A.value.position==="bottom"||A.value.position==="y"||!d.value);return{changeLimit:I=>{a(),E(),T.value=I,S.value=i.value,t("changeLimit",{offset:S.value,limit:I}),n()},changeOffset:I=>{let O,p;te(I)?(O=I.offset,p=I.reload):(O=I,p=!0),p&&(a(),E()),S.value=O,t("changeOffset",{offset:O,limit:T.value}),p&&n()},initLocalVars:u,limit:T,offset:S,usePaginationBottom:f,usePaginationLocal:c,usePaginationTop:d}}function Sv({columnsOrdered:_=e.ref([]),isMobile:t=e.ref(!1),modelColumnsVisibleLocal:n=e.ref({})}){return{allVisibleMobileColumns:e.computed(()=>t.value?Ae(_.value,a=>a.isRender!==!1&&n.value[a.id]!==!1):[])}}function Lv(_,{emit:t},{checkVisibleColumns:n=()=>{},isMultipleActionsActive:E=e.ref(void 0),rowsLocalAll:a=e.computed(()=>[]),rowsLocalLength:s=e.computed(()=>0)}){const o=e.toRef(_,"id"),i=e.toRef(_,"multipleActions"),A=e.ref(void 0),T=e.ref({}),S=e.ref(!1),u=e.computed(()=>i.value.length>0),c=e.computed(()=>b_(l_(A.value,"isHiddenCallback"))),d=e.computed(()=>Ae(a.value,(g,M)=>T.value[M])),f=()=>{T.value={}},C=()=>{E.value=!1,A.value=void 0,S.value=!1,f()},R=()=>{if(window.isScrollDisabled)return;const g=gf({tableId:o.value});Ce({selector:`#${g}`})},I=({isActive:g,action:M}={})=>{if(g){E.value=!0,A.value=M,setTimeout(()=>{n(),R()}),t("toggleMultipleActions",{isActive:g,action:M});return}E.value?C():E.value=!0,setTimeout(()=>{n(),R()}),t("toggleMultipleActions",{isActive:g,action:M})},O=e.computed(()=>la(T.value)),p=e.computed(()=>s.value>0&&s.value===O.value),N=e.computed(()=>O.value>0);return{areAllRowsSelected:S,areAllVisibleRowsSelected:p,areSomeRowsSelected:N,closeMultipleActionsActive:C,currentMultipleActions:A,hasMultipleActions:u,selectedRows:d,selectedRowsIndexes:T,setEmptySelectedRowsIndexes:f,setSelectedRowsIndexes:({rowIndex:g,isAll:M})=>{if(M){if(N.value)f();else{const m={};c.value?tn(s.value,V=>{A.value.isHiddenCallback({row:a.value[V],rowIndex:V})||(m[V]=!0)}):tn(s.value,V=>{m[V]=!0}),T.value=m}return}T.value[g]?delete T.value[g]:T.value[g]=!0},toggleBtnAllRows:()=>{S.value=!S.value,S.value&&f()},toggleMultipleActionsActive:I}}function uv(_,{emit:t},{aTableRef:n=e.ref({}),previewBoxWidthRemLocal:E=e.computed(()=>0),tableGrandparentRef:a=e.ref({})}){const{previewRef:s,removePreviewRef:o}=vf(),i=200,A=50;let T,S=0,u=0,c=0;const d=()=>{var V;if(!((V=n.value)!=null&&V.getBoundingClientRect))return;u=n.value.getBoundingClientRect().left},f=({clientWidth:m})=>{S=m,T=m/100*A,d()},C=({clientWidthLocal:m,clientXTableParent:V,previewBoxWidth:B})=>{if(!n.value)return;const v=m-V-B;n.value.style.width=`${v}px`},R=({clientX:m=0,previewRef:V,previewBoxWidth:B=0})=>{let v=B||S-m;v<i?v=i:v>T&&(v=T),C({clientWidthLocal:S,clientXTableParent:u,previewBoxWidth:v}),V&&(V.style.width=`${v}px`)},I=({previewRef:m})=>{l_(m,"style.removeProperty")&&m.style.removeProperty("width"),l_(n,"value.style.removeProperty")&&n.value.style.removeProperty("width")},O=({previewRef:m})=>{S=document.documentElement.clientWidth,c=l_(a,"value.offsetWidth",0),d(),R({previewRef:m,previewBoxWidth:E.value})},p=({previewRef:m,isOpen:V})=>{V?O({previewRef:m}):I({previewRef:m})},N=({previewRightWidth:m})=>{t("mouseupResizePreviewRight",{previewRightWidth:m})},P=()=>{O({previewRef:s.value})},$=new ResizeObserver(is(m=>{const V=m[0].contentRect;c!==V.width&&(c=V.width,P())},300)),g=()=>{$.observe(a.value)},M=()=>{$.unobserve(a.value)};return e.onBeforeUnmount(()=>{o(),M()}),{addEventListenerWindowResize:g,mousedownResizePreviewRight:f,mousemoveResizePreviewRight:R,mouseupResizePreviewRight:N,removeEventListenerWindowResize:M,togglePreviewResize:p}}function cv(_,t,{aTableRef:n=e.ref({}),isMobile:E=e.ref(void 0),previewBoxWidthRemLocal:a=e.computed(()=>0),rowsLocalAll:s=e.computed(()=>[]),tableGrandparentRef:o=e.ref({})}){const{isDropdownGlobalOpen:i}=fT(),{addEventListenerWindowResize:A,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:S,mouseupResizePreviewRight:u,removeEventListenerWindowResize:c,togglePreviewResize:d}=uv(_,t,{aTableRef:n,previewBoxWidthRemLocal:a,tableGrandparentRef:o}),f=e.toRef(_,"keyId"),C=e.toRef(_,"preview"),R=e.toRef(_,"id"),I=t.emit,O=e.ref({}),p=e.ref(void 0),N=e.ref(void 0),P=e.computed(()=>!!C.value),$=({rowIndex:i_})=>{window.isScrollDisabled||setTimeout(()=>{const R_=`#${R.value}_${i_}`;Ce({selector:R_})})},g=()=>{window.isScrollDisabled||setTimeout(()=>{const i_=`#${bf({tableId:R.value})}`;Ce({selector:i_})})},M=e.computed(()=>C.value==="right"||E.value),m=e.computed(()=>!s_(p.value)),V=()=>{$({rowIndex:p.value}),I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),N.value=p.value,p.value=void 0,c()},B=()=>{I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),N.value=void 0,p.value=void 0,c()},v=e.computed(()=>C.value==="down"),J=({rowIndex:i_,row:R_})=>{const N_=Ml({row:R_,rowIndex:i_,keyId:f.value});delete O.value[N_]},X=()=>{O.value={}},Z=()=>{B(),X()},Q=({rowIndex:i_,row:R_}={})=>{M.value?V():v.value&&J({rowIndex:i_,row:R_})},H=({rowIndex:i_})=>{!E.value&&B_(p.value)&&A(),I("togglePreview",{row:s.value[i_],rowIndex:i_,typeToggle:"open"}),p.value=i_,N.value=void 0,g()},j=({rowIndex:i_})=>{p.value===i_?V():H({rowIndex:i_})},L_=({rowIndex:i_,row:R_})=>{const N_=Ml({row:R_,rowIndex:i_,keyId:f.value});O.value[N_]?delete O.value[N_]:O.value[N_]=!0};return{closePreview:Q,closePreviewAll:Z,hasPreview:P,isPreviewRightOpen:m,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:S,mouseupResizePreviewRight:u,onTogglePreview:({row:i_,rowIndex:R_})=>{if(!i.value){if(M.value){j({rowIndex:R_});return}v.value&&L_({row:i_,rowIndex:R_})}},previewDownRowIds:O,previewRightRowIndex:p,previewRightRowIndexLast:N,togglePreviewResize:d}}function dv(_,{dataSorted:t=e.computed(()=>[]),limit:n=e.ref(0),offset:E=e.ref(0),setEmptySelectedRowsIndexes:a=()=>{},usePaginationLocal:s=e.computed(()=>!1)}){const o=e.toRef(_,"clearSelectedRowsOnDataChange"),i=e.toRef(_,"pagination"),A=e.toRef(_,"rowsCountRenderPerTick"),T=e.ref([]),S=e.ref([]);let u=!0,c=0,d;const f=e.computed(()=>{if(n.value&&!i.value.isOutside&&s.value){const M=E.value,m=M+n.value;return t.value.slice(M,m)}return t.value}),C=e.computed(()=>f.value),R=e.computed(()=>C.value.length),I=e.computed(()=>!!R.value),O=()=>{const M=c*A.value,m=M+A.value;Ft(f.value.slice(M,m),V=>S.value.push(V)),c++},p=()=>{d=setInterval(()=>{c*A.value>=f.value.length?clearInterval(d):O()})},N=()=>{clearInterval(d)},P=({row:M,rowIndex:m})=>{m>S.value.length-1||(S.value[m]=M)},$=({row:M})=>{S.value.unshift(M)},g=({index:M})=>{S.value.splice(M,1)};return e.watch(f,M=>{IA(M,T.value)||(T.value=[...M],!u&&o.value&&a(),u=!1,S.value=[],c=0,N(),A.value>0?(O(),p()):S.value=f.value)},{immediate:!0,deep:!0}),{addRow:$,deleteRow:g,hasRows:I,rowsLocal:S,rowsLocalAll:C,rowsLocalLength:R,stopRenderRows:N,updateRow:P}}function fv(_,{emit:t},{columnActionsWidthLocal:n=e.computed(()=>0),columnActionsWidthMinLocal:E=e.computed(()=>0),columnsOrdered:a=e.computed(()=>[]),columnsScrollInvisible:s=e.ref([]),columnWidthDefaultRemLocal:o=e.computed(()=>0),indexFirstScrollInvisibleColumn:i=e.ref(void 0),isMobile:A=e.ref(!1),isMultipleActionsActive:T=e.ref(void 0),modelColumnsVisibleLocal:S=e.ref({}),modelIsTableWithoutScroll:u=e.ref(!1),modelIsTableWithoutScrollComputed:c=e.computed(()=>!1)}){const d=e.toRef(_,"isActionColumnVisible"),f=e.toRef(_,"isSimpleTable"),C=e.toRef(_,"useRem"),{scalePxWithRem:R}=Ur(),I=e.ref(void 0),O=e.ref(0),p=e.ref(void 0);let N=!1;const P=20,$=H=>C.value?R(H):H,g=e.computed(()=>d.value?E.value:0),M=e.computed(()=>{const H=T.value?E.value:0,j=f.value?0:P;return H+j}),m=({sumGrows:H=0,freeSpaceWidth:j=0})=>{H>0?O.value=j/H:O.value=0},V=()=>{if(s_(i.value)||a.value.length<i.value)s.value=[];else{const H=[];for(let j=i.value;j<a.value.length;j++){const L_=a.value[j];_o({column:L_,modelColumnsVisibleLocal:S.value})&&H.push(E_(L_))}s.value=H}},B=()=>{s.value=[],O.value=0,i.value=1e3,p.value=0},v=()=>{if(A.value||p.value===0){B();return}if(B_(p.value))return;const H=p.value-M.value-g.value,j=p.value-M.value-n.value;let L_=0,p_=0,i_=0,R_=!1;if(q(a.value,I_=>{if(!_o({column:I_,modelColumnsVisibleLocal:S.value})){p_++;return}const z=+$(I_.width)||o.value;if(L_+z>H)return R_=!0,!1;L_+=z,p_++,i_+=s_(I_.grow)?1:I_.grow}),R_&&L_>j)for(let I_=p_-1;I_>=0;I_--){p_--;const z=a.value[p_];if(!_o({column:z,modelColumnsVisibleLocal:S.value}))continue;const a_=+$(z.width)||o.value;if(L_-=a_,i_-=s_(z.grow)?1:z.grow,L_<=j)break}let N_=0;const H_=R_?j:H;(c.value||p_===a.value.length)&&(N_=H_-L_),i.value=p_,m({sumGrows:i_,freeSpaceWidth:N_}),V()},J=({entries:H,forceAdjust:j})=>{const L_=H[0].contentRect;(j||p.value>L_.width+P||p.value<L_.width-P)&&(N||(N=!0,p.value=L_.width,v(),N=!1))},X=new ResizeObserver(is(H=>{B_(p.value)?J({entries:H,forceAdjust:!0}):J({entries:H})},300)),Z=H=>{H?(X.unobserve(I.value),B()):(X.observe(I.value),u.value&&v())},Q=H=>{u.value=H,t("updateModelIsTableWithoutScroll",H),u.value&&v()};return e.onMounted(()=>{A.value||X.observe(I.value)}),e.onBeforeUnmount(()=>{X.unobserve(I.value)}),e.watch(a,()=>{v()}),{aTableRef:I,changeModelIsTableWithoutScroll:Q,checkVisibleColumns:v,columnsVisibleAdditionalSpaceForOneGrow:O,onWatchMobileScrollControl:Z}}function Cv(_){const t=e.toRef(_,"hasMobile"),n=e.toRef(_,"isActionColumnVisible"),E=e.toRef(_,"isActionColumnVisible"),a=e.toRef(_,"isColumnsDnd"),s=e.toRef(_,"isSimpleTable"),o=e.toRef(_,"modelIsTableWithoutScrollStart"),i=e.toRef(_,"rowActions"),A=e.ref(void 0),T=()=>{A.value=o.value},{isMobileWidth:S}=Tt(),u=e.computed(()=>s.value?i.value&&!!i.value.length&&n.value:E.value),c=e.computed(()=>!!(E.value&&!s.value)),d=e.computed(()=>!!(a.value&&!s.value)),f=e.computed(()=>t.value?!!S.value:!1),C=e.computed(()=>s.value?!1:A.value);return{initModelIsTableWithoutScroll:T,isActionColumnVisibleLocal:u,isActionIconVisibleLocal:c,isColumnsDndLocal:d,isMobile:f,modelIsTableWithoutScroll:A,modelIsTableWithoutScrollComputed:C}}function Rv(_,{viewCurrent:t=e.computed(()=>({}))}){const n=e.toRef(_,"data"),E=e.toRef(_,"isSortingOutside"),a=e.toRef(_,"modelSort"),s=e.toRef(_,"useAdditionalSorting"),o=e.ref([]),i=e.computed(()=>s.value?t.value?t.value.useAdditionalSorting||!1:!0:!1),A=()=>{re(a.value)?o.value=[a.value]:f_(a.value)&&(o.value=E_(a.value))},T=e.computed(()=>{const u={models:[],directions:[]};return o.value.length&&q(o.value,c=>{let d="asc",f=c;DA(c,"-")&&(d="desc",f=c.slice(1)),u.models.push(f),u.directions.push(d)}),u}),S=e.computed(()=>o.value.length&&!E.value?OA(n.value||[],T.value.models,T.value.directions):n.value||[]);return e.watch(a,()=>{A()}),{dataSorted:S,initModelSort:A,modelSortLocal:o,useAdditionalSortingLocal:i}}function hv(_,{emit:t},{modelSortLocal:n=e.ref([]),closePreviewAll:E=()=>{}}){const a=e.toRef(_,"id"),s=e.toRef(_,"isSortingMultiColumn"),o=e.toRef(_,"sortingMultiColumnKey"),i=e.computed(()=>`${o.value}Key`),A=c=>s.value&&c[i.value],T=({sortId:c})=>{const d=n.value.indexOf(c);if(d!==-1){n.value.splice(d,1,`-${c}`);return}const f=n.value.indexOf(`-${c}`);if(f!==-1){n.value.splice(f,1);return}n.value.push(c)},S=({sortId:c})=>{if(n.value.indexOf(c)!==-1){n.value=[`-${c}`];return}if(n.value.indexOf(`-${c}`)!==-1){n.value=[];return}n.value=[c]};return{changeModelSort:({sortId:c,$event:d,modelAll:f})=>{f?n.value=f:A(d)?T({sortId:c}):S({sortId:c}),t("changeSorting",{modelSort:E_(n.value)}),pe.$emit("changeTableSorting",{modelSort:E_(n.value),tableId:a.value}),E()}}}function Iv(_,{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 Ov(_,{countNotHiddenColumns:t=e.computed(()=>-1),isMobile:n=e.ref(!1)}){const E=e.toRef(_,"id"),a=e.toRef(_,"isLabelVisible"),s=e.computed(()=>{const A={};return n.value||(A.role="table",A["aria-colcount"]=t.value),A}),o=e.computed(()=>n.value?"list":"rowgroup"),i=e.computed(()=>{if(a.value)return $f({tableId:E.value})});return{tableChildRole:o,tableLabelId:i,tableRoleAttributes:s}}function pv(_,{emit:t},{modelColumnsVisibleLocal:n=e.ref({}),checkVisibleColumns:E=()=>{}}){return{changeModelColumnsVisible:s=>{n.value=s,t("update:modelColumnsVisible",E_(n.value)),E()}}}function Uv(_){const t=e.toRef(_,"texts");return{emptyText:e.computed(()=>B_(t.value.empty)?"_A_TABLE_EMPTY_TEXT_":t.value.empty)}}function Nv(){const _=e.ref([]),t=e.ref(void 0),n=e.ref(void 0),E=e.ref({}),a=e.ref(void 0),s=e.ref(void 0);return{columnsScrollInvisible:_,indexFirstScrollInvisibleColumn:t,isMultipleActionsActive:n,modelColumnsVisibleLocal:E,tableGrandparentRef:a,tableRef:s}}function mv(_,{emit:t},{closePreviewAll:n=()=>{}}){const E=e.toRef(_,"views"),a=e.toRef(_,"modelFilters"),s=e.toRef(_,"modelView"),o=e.computed(()=>oa(E.value,"id")),i=e.computed(()=>o.value[s.value]),A=e.computed(()=>E.value.length>1),T=()=>{if(A.value){const c=ko(E.value,["active",!0]);let d=E.value[0].id;c&&(d=c.id),t("updateView",{_modelView:d,view:o.value[d],modelFilters:a.value,init:!0})}},S=c=>{n(),t("updateView",{_modelView:c,view:o.value[c],modelFilters:a.value})},u=e.computed(()=>!i.value||i.value.type==="table");return{hasViews:A,initViewCurrent:T,isViewTableVisible:u,updateViewCurrent:S,viewCurrent:i}}function Dv(_){const t=e.toRef(_,"columnActionsWidth"),n=e.toRef(_,"columnActionsWidthDefaults"),E=e.toRef(_,"columnActionsWidthMin"),a=e.toRef(_,"columnWidthDefault"),s=e.toRef(_,"previewBoxWidth"),o=e.toRef(_,"useRem"),{scalePxWithRem:i}=Ur(),A=e.computed(()=>o.value?i(t.value):t.value),T=e.computed(()=>o.value?i(E.value):E.value),S=e.computed(()=>o.value?i(a.value):a.value),u=e.computed(()=>o.value?i(s.value):s.value);return{columnActionsWidthDefaultsRemLocal:e.computed(()=>o.value?{default:i(n.value.default||170),min:i(n.value.min||50),onePlusDropdown:i(n.value.onePlusDropdown||320),onePlusDropdownMin:i(n.value.onePlusDropdownMin||200),btnGroupMaxWidth:i(n.value.btnGroupMaxWidth||180)}:n.value),columnActionsWidthMinRemLocal:T,columnActionsWidthRemLocal:A,columnWidthDefaultRemLocal:S,previewBoxWidthRemLocal:u}}const Pv={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:()=>br.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:_=>tE(_)&&_>=0},rowsFooter:{type:Array,required:!1,default:()=>[]},showCount:{type:Boolean,required:!1,default:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1,default:!1},sortingMultiColumnKey:{type:String,required:!1,default:"shift",validator:_=>["shift","ctrl","alt"].indexOf(_)!==-1},sortingSequenceNumberClass:{type:[String,Object],required:!1,default:"a_badge"},tableActions:{type:Array,required:!1,default:()=>[]},tableActionsIndexFirstDropdownAction:{type:Number,required:!1,default:-1},tableActionsIndexFirstDropdownActionMobile:{type:Number,required:!1,default:0},texts:{type:Object,required:!1,default:()=>({empty:"_A_TABLE_EMPTY_TEXT_"})},useAdditionalSorting:{type:Boolean,required:!1,default:!0},useViewSlot:{type:Boolean,required:!1},useRem:{type:Boolean,required:!1,default:!0},valuesForColumnDefault:{type:Array,required:!1,default:()=>[null,void 0,""]},views:{type:Array,required:!1,default:()=>[]}},emits:["changeColumnsOrdering","changeColumnsVisible","changeLimit","changeOffset","changeSorting","mouseupResizePreviewRight","initTable","togglePreview","toggleMultipleActions","update:modelColumnsOrder","update:modelColumnsVisible","update:modelQuickSearch","updateModelIsTableWithoutScroll","updateView"],provide(){return{changeModelColumnsVisible:this.changeModelColumnsVisible,columnActionsOnePlusDropdownOptions:e.computed(()=>this.columnActionsOnePlusDropdownOptions),columns:e.computed(()=>this.columns),columnsDefaultValue:e.computed(()=>this.columnsDefaultValue),isLoadingOptions:e.computed(()=>this.isLoadingOptions),isLoadingTable:e.computed(()=>this.isLoadingTable),keyId:e.computed(()=>this.keyId),rowActions:e.computed(()=>this.rowActions),tableId:e.computed(()=>this.id),valuesForColumnDefault:e.computed(()=>this.valuesForColumnDefault),useRem:e.computed(()=>this.useRem)}},setup(_,t){const{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,columnWidthDefaultRemLocal:s,previewBoxWidthRemLocal:o}=Dv(_),{initModelIsTableWithoutScroll:i,isActionColumnVisibleLocal:A,isActionIconVisibleLocal:T,isColumnsDndLocal:S,isMobile:u,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:d}=Cv(_),{countAllRowsLocal:f,totalRowsCount:C}=lv(_),{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:I,isMultipleActionsActive:O,modelColumnsVisibleLocal:p,tableGrandparentRef:N,tableRef:P}=Nv(),{scrollToTable:$,setFocusToTable:g}=iv({tableRef:P}),{hasViews:M,initViewCurrent:m,isViewTableVisible:V,updateViewCurrent:B,viewCurrent:v}=mv(_,t,{closePreviewAll:Xn}),{dataSorted:J,initModelSort:X,modelSortLocal:Z,useAdditionalSortingLocal:Q}=Rv(_,{viewCurrent:v}),{columnsOrderedFromSimpleTable:H,renderedGroupedColumns:j}=sv(_,{modelSort:Z}),{columnIdsGroupByLocked:L_,columnsFilteredForRender:p_,columnsFilteredForRenderIndexesMapping:i_,columnsOrdered:R_,countNotHiddenColumns:N_}=rv(_,{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:I,modelColumnsVisibleLocal:p,modelIsTableWithoutScrollComputed:d,columnsOrderedFromSimpleTable:H}),{changeLimit:H_,changeOffset:I_,initLocalVars:z,limit:a_,offset:m_,usePaginationBottom:k,usePaginationLocal:A_,usePaginationTop:u_}=Tv(_,t,{closePreviewAll:Xn,scrollToTable:$,setFocusToTable:g,viewCurrent:v}),{addRow:P_,deleteRow:$_,hasRows:O_,rowsLocal:y_,rowsLocalAll:k_,rowsLocalLength:w_,stopRenderRows:Z_,updateRow:ue}=dv(_,{dataSorted:J,limit:a_,offset:m_,setEmptySelectedRowsIndexes:Gr,usePaginationLocal:A_}),{columnActionsBtnGroupMaxWidthStyle:Q_,columnActionsWidthLocal:X_,columnActionsWidthMinLocal:ae,isColumnActionWide:Ne}=av(_,{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,isMobile:u,rowsLocal:y_}),{aTableRef:Pe,changeModelIsTableWithoutScroll:Ye,checkVisibleColumns:be,columnsVisibleAdditionalSpaceForOneGrow:ge,onWatchMobileScrollControl:Re}=fv(_,t,{columnActionsWidthLocal:X_,columnActionsWidthMinLocal:ae,columnsOrdered:R_,columnsScrollInvisible:R,columnWidthDefaultRemLocal:s,indexFirstScrollInvisibleColumn:I,isMobile:u,isMultipleActionsActive:O,modelColumnsVisibleLocal:p,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:d}),{changeColumnsOrdering:ye,checkColumnsOrdering:Xe}=ov(_,t,{checkVisibleColumns:be,columnIdsGroupByLocked:L_,columnsFilteredForRenderIndexesMapping:i_}),{isRowActionsStickyLocal:Ze}=Iv(_,{isMobile:u,modelIsTableWithoutScrollComputed:d}),{areAllRowsSelected:rt,areAllVisibleRowsSelected:Pt,areSomeRowsSelected:rn,closeMultipleActionsActive:st,currentMultipleActions:Yt,hasMultipleActions:pn,selectedRows:kE,selectedRowsIndexes:Ja,setEmptySelectedRowsIndexes:kn,setSelectedRowsIndexes:Un,toggleBtnAllRows:Ra,toggleMultipleActionsActive:Ht}=Lv(_,t,{checkVisibleColumns:be,isMultipleActionsActive:O,rowsLocalAll:k_,rowsLocalLength:w_}),{changeModelColumnsVisible:Za}=pv(_,t,{modelColumnsVisibleLocal:p,checkVisibleColumns:be}),{closePreview:Qa,closePreviewAll:me,hasPreview:qt,isPreviewRightOpen:_r,onTogglePreview:KE,mousedownResizePreviewRight:XE,mousemoveResizePreviewRight:Kn,mouseupResizePreviewRight:ha,previewDownRowIds:jE,previewRightRowIndex:ot,previewRightRowIndexLast:Nn,togglePreviewResize:Vr}=cv(_,t,{aTableRef:Pe,isMobile:u,previewBoxWidthRemLocal:o,rowsLocalAll:k_,tableGrandparentRef:N}),{tableChildRole:Br,tableLabelId:er,tableRoleAttributes:yr}=Ov(_,{countNotHiddenColumns:N_,isMobile:u}),{allVisibleMobileColumns:Wt}=Sv({columnsOrdered:R_,isMobile:u,modelColumnsVisibleLocal:p}),{changeModelSort:Mr}=hv(_,t,{modelSortLocal:Z,closePreviewAll:Xn}),{initTable:tr}=Av(_,t,{checkColumnsOrdering:Xe,checkVisibleColumns:be,modelColumnsVisibleLocal:p}),{emptyText:Fr}=Uv(_);function Xn(){me()}function Gr(){kn()}return e.watch(u,Y_=>{Re(Y_),Xn()}),e.watch(Ne,(Y_,G)=>{Y_!==G&&be()}),e.provide("changeModelIsTableWithoutScroll",Ye),e.provide("changeModelSort",Mr),e.provide("columnsOrdered",R_),e.provide("columnsFilteredForRender",p_),e.provide("columnsScrollInvisible",R),e.provide("columnWidthDefault",s),e.provide("columnsVisibleAdditionalSpaceForOneGrow",ge),e.provide("columnActionsWidthLocal",X_),e.provide("columnActionsWidthMinLocal",ae),e.provide("currentMultipleActions",Yt),e.provide("hasPreview",qt),e.provide("indexFirstScrollInvisibleColumn",I),e.provide("isActionColumnVisible",A),e.provide("isActionIconVisible",T),e.provide("isColumnsDnd",S),e.provide("isMobile",u),e.provide("isMultipleActionsActive",O),e.provide("modelIsTableWithoutScroll",d),e.provide("onTogglePreview",KE),e.provide("previewRightRowIndex",ot),e.provide("previewRightRowIndexLast",Nn),e.provide("rowsLocalAll",k_),e.provide("modelColumnsVisibleLocal",p),e.provide("changeColumnsOrdering",ye),z(),i(),m(),tr(),X(),{addRow:P_,allVisibleMobileColumns:Wt,areAllRowsSelected:rt,areAllVisibleRowsSelected:Pt,areSomeRowsSelected:rn,aTableRef:Pe,changeLimit:H_,changeModelColumnsVisible:Za,changeOffset:I_,checkVisibleColumns:be,closeMultipleActionsActive:st,closePreview:Qa,closePreviewAll:Xn,columnActionsBtnGroupMaxWidthStyle:Q_,columnsFilteredForRender:p_,columnsOrdered:R_,countAllRowsLocal:f,deleteRow:$_,emptyText:Fr,hasMultipleActions:pn,hasRows:O_,hasViews:M,isMobile:u,isMultipleActionsActive:O,isPreviewRightOpen:_r,isRowActionsStickyLocal:Ze,isViewTableVisible:V,limit:a_,modelColumnsVisibleLocal:p,modelIsTableWithoutScrollComputed:d,modelSortLocal:Z,mousedownResizePreviewRight:XE,mousemoveResizePreviewRight:Kn,mouseupResizePreviewRight:ha,offset:m_,onTogglePreview:KE,previewDownRowIds:jE,previewRightRowIndex:ot,renderedGroupedColumns:j,rowsLocal:y_,rowsLocalAll:k_,rowsLocalLength:w_,selectedRows:kE,selectedRowsIndexes:Ja,setEmptySelectedRowsIndexes:Gr,setSelectedRowsIndexes:Un,stopRenderRows:Z_,tableChildRole:Br,tableGrandparentRef:N,tableLabelId:er,tableRef:P,tableRoleAttributes:yr,toggleBtnAllRows:Ra,toggleMultipleActionsActive:Ht,togglePreviewResize:Vr,totalRowsCount:C,updateRow:ue,updateViewCurrent:B,useAdditionalSortingLocal:Q,usePaginationBottom:k,usePaginationLocal:A_,usePaginationTop:u_,viewCurrent:v}},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(q0,{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(yT,{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(d0,{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(p0,{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(bT,{isLoading:this.isLoadingTable},()=>[e.h("div",{class:"a_table__body",role:this.tableChildRole},{default:()=>this.rowsLocal.map((_,t)=>{const n=Ml({row:_,rowIndex:t,keyId:this.keyId});return e.h(Kf,{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(Vl,{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(d_,{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=Ml({row:_,rowIndex:t,keyId:this.keyId});return e.h(Kf,{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(Vl,{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(yT,{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(b0,{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 Xf(_){const t=e.toRef(_,"activeTabIdLocal"),n=e.toRef(_,"index"),E=e.toRef(_,"keyId"),a=e.toRef(_,"parentId"),s=e.toRef(_,"tab"),o=e.computed(()=>E.value?l_(s.value,E.value):n.value),i=e.computed(()=>t.value===o.value),A=e.computed(()=>`${a.value}_${n.value}`);return{idForContent:e.computed(()=>`${A.value}_content`),idLocal:A,isActive:i,tabIdLocal:o}}function Yv(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyContent");return{contentLocal:e.computed(()=>{if(n.value)return l_(t.value,n.value)})}}const bv={name:"ATabsContent",props:{activeTabIdLocal:{type:[String,Number],required:!0},index:{type:Number,required:!0},keyContent:{type:String,required:!1,default:"content"},keyId:{type:String,required:!1,default:void 0},parentId:{type:String,required:!0},tab:{type:Object,required:!0}},setup(_){const{idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}=Xf(_),{contentLocal:s}=Yv(_);return{contentLocal:s,idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}},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(d_,{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 gv({isDisabled:_=e.computed(()=>!1)}){return{tabindexLocal:e.computed(()=>_.value?-1:0)}}function $v(_,{emit:t},{isDisabled:n=e.computed(()=>!1),tabIdLocal:E=e.computed(()=>"")}){const a=e.toRef(_,"index"),s=e.toRef(_,"tab"),o=A=>{n.value||t("changeTab",{$event:A,tab:s.value,tabId:E.value,index:a.value})};return{changeTabLocal:o,keydownTab:A=>{(A.keyCode===e_.enter||A.keyCode===e_.space)&&(o(A),A.stopPropagation(),A.preventDefault())}}}function Vv(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"keyDisabled"),E=e.toRef(_,"tab");return{isDisabled:e.computed(()=>{if(t.value||n.value&&l_(E.value,n.value)===!0)return!0})}}function Bv(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyLabel");return{labelLocal:e.computed(()=>{if(n.value)return l_(t.value,n.value)})}}function yv(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyTitle");return{titleLocal:e.computed(()=>{if(n.value)return l_(t.value,n.value)})}}const Mv={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:_=>It.indexOf(_)!==-1}},emits:["changeTab"],setup(_,t){const{idForContent:n,idLocal:E,isActive:a,tabIdLocal:s}=Xf(_),{isDisabled:o}=Vv(_),{tabindexLocal:i}=gv({isDisabled:o}),{changeTabLocal:A,keydownTab:T}=$v(_,t,{isDisabled:o,tabIdLocal:s}),{labelLocal:S}=Bv(_),{titleLocal:u}=yv(_);return{changeTabLocal:A,idForContent:n,idLocal:E,isActive:a,isDisabled:o,keydownTab:T,labelLocal:S,tabindexLocal:i,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(d_,{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 Fv(_,{emit:t}){const n=e.toRef(_,"activeTabId"),E=e.toRef(_,"data"),a=e.toRef(_,"isChangeOutside"),s=e.toRef(_,"keyActive"),o=e.toRef(_,"keyId"),i=e.ref(void 0),A=()=>{s_(n.value)||(i.value=n.value)};return{activeTabIdLocal:i,changeTab:({$event:u,tab:c,tabId:d,index:f})=>{i.value!==d&&(a.value||(i.value=d),t("change",{$event:u,tab:c,tabId:d,index:f}))},initActiveTabIdLocal:()=>{A(),s_(i.value)&&(s.value&&(q(E.value,(u,c)=>{if(l_(u,s.value))return o.value?i.value=l_(u,o.value)||c:i.value=c,!1}),!s_(i.value))||(o.value?i.value=l_(E.value,`[0].${o.value}`)||0:i.value=0))},setActiveTabIdLocal:A}}const Gv={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:_=>It.indexOf(_)!==-1}},emits:["change"],setup(_,t){const n=e.toRef(_,"activeTabId"),{activeTabIdLocal:E,changeTab:a,initActiveTabIdLocal:s,setActiveTabIdLocal:o}=Fv(_,t);return s(),e.watch(n,()=>{o()}),{activeTabIdLocal:E,changeTab:a}},render(){return e.h("div",{id:this.id,class:["a_tabs",{a_tabs_boxed:this.isBoxed,a_tabs_vertical:this.isVertical}]},[e.h("div",{class:"a_tabs__box"},[e.h("ul",{class:"a_tabs__list",role:"tablist"},[this.data.map((_,t)=>e.h(Mv,{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(bv,{key:t,activeTabIdLocal:this.activeTabIdLocal,index:t,keyContent:this.keyContent,keyId:this.keyId,parentId:this.id,tab:_},this.$slots))])])}};function jf(_,t){return function(){return _.apply(t,arguments)}}const{toString:vv}=Object.prototype,{getPrototypeOf:vT}=Object,Fl=(_=>t=>{const n=vv.call(t);return _[n]||(_[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),In=_=>(_=_.toLowerCase(),t=>Fl(t)===_),Gl=_=>t=>typeof t===_,{isArray:gr}=Array,eo=Gl("undefined");function wv(_){return _!==null&&!eo(_)&&_.constructor!==null&&!eo(_.constructor)&&xt(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const zf=In("ArrayBuffer");function xv(_){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(_):t=_&&_.buffer&&zf(_.buffer),t}const Hv=Gl("string"),xt=Gl("function"),Jf=Gl("number"),vl=_=>_!==null&&typeof _=="object",qv=_=>_===!0||_===!1,wl=_=>{if(Fl(_)!=="object")return!1;const t=vT(_);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in _)&&!(Symbol.iterator in _)},Wv=In("Date"),kv=In("File"),Kv=In("Blob"),Xv=In("FileList"),jv=_=>vl(_)&&xt(_.pipe),zv=_=>{let t;return _&&(typeof FormData=="function"&&_ instanceof FormData||xt(_.append)&&((t=Fl(_))==="formdata"||t==="object"&&xt(_.toString)&&_.toString()==="[object FormData]"))},Jv=In("URLSearchParams"),[Zv,Qv,_1,e1]=["ReadableStream","Request","Response","Headers"].map(In),t1=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function to(_,t,{allOwnKeys:n=!1}={}){if(_===null||typeof _>"u")return;let E,a;if(typeof _!="object"&&(_=[_]),gr(_))for(E=0,a=_.length;E<a;E++)t.call(null,_[E],E,_);else{const s=n?Object.getOwnPropertyNames(_):Object.keys(_),o=s.length;let i;for(E=0;E<o;E++)i=s[E],t.call(null,_[i],i,_)}}function Zf(_,t){t=t.toLowerCase();const n=Object.keys(_);let E=n.length,a;for(;E-- >0;)if(a=n[E],t===a.toLowerCase())return a;return null}const Ka=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qf=_=>!eo(_)&&_!==Ka;function wT(){const{caseless:_}=Qf(this)&&this||{},t={},n=(E,a)=>{const s=_&&Zf(t,a)||a;wl(t[s])&&wl(E)?t[s]=wT(t[s],E):wl(E)?t[s]=wT({},E):gr(E)?t[s]=E.slice():t[s]=E};for(let E=0,a=arguments.length;E<a;E++)arguments[E]&&to(arguments[E],n);return t}const n1=(_,t,n,{allOwnKeys:E}={})=>(to(t,(a,s)=>{n&&xt(a)?_[s]=jf(a,n):_[s]=a},{allOwnKeys:E}),_),E1=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),a1=(_,t,n,E)=>{_.prototype=Object.create(t.prototype,E),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:t.prototype}),n&&Object.assign(_.prototype,n)},r1=(_,t,n,E)=>{let a,s,o;const i={};if(t=t||{},_==null)return t;do{for(a=Object.getOwnPropertyNames(_),s=a.length;s-- >0;)o=a[s],(!E||E(o,_,t))&&!i[o]&&(t[o]=_[o],i[o]=!0);_=n!==!1&&vT(_)}while(_&&(!n||n(_,t))&&_!==Object.prototype);return t},s1=(_,t,n)=>{_=String(_),(n===void 0||n>_.length)&&(n=_.length),n-=t.length;const E=_.indexOf(t,n);return E!==-1&&E===n},o1=_=>{if(!_)return null;if(gr(_))return _;let t=_.length;if(!Jf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=_[t];return n},l1=(_=>t=>_&&t instanceof _)(typeof Uint8Array<"u"&&vT(Uint8Array)),i1=(_,t)=>{const E=(_&&_[Symbol.iterator]).call(_);let a;for(;(a=E.next())&&!a.done;){const s=a.value;t.call(_,s[0],s[1])}},A1=(_,t)=>{let n;const E=[];for(;(n=_.exec(t))!==null;)E.push(n);return E},T1=In("HTMLFormElement"),S1=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,E,a){return E.toUpperCase()+a}),_C=(({hasOwnProperty:_})=>(t,n)=>_.call(t,n))(Object.prototype),L1=In("RegExp"),eC=(_,t)=>{const n=Object.getOwnPropertyDescriptors(_),E={};to(n,(a,s)=>{let o;(o=t(a,s,_))!==!1&&(E[s]=o||a)}),Object.defineProperties(_,E)},u1=_=>{eC(_,(t,n)=>{if(xt(_)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const E=_[n];if(xt(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+"'")})}})},c1=(_,t)=>{const n={},E=a=>{a.forEach(s=>{n[s]=!0})};return gr(_)?E(_):E(String(_).split(t)),n},d1=()=>{},f1=(_,t)=>_!=null&&Number.isFinite(_=+_)?_:t,xT="abcdefghijklmnopqrstuvwxyz",tC="0123456789",nC={DIGIT:tC,ALPHA:xT,ALPHA_DIGIT:xT+xT.toUpperCase()+tC},C1=(_=16,t=nC.ALPHA_DIGIT)=>{let n="";const{length:E}=t;for(;_--;)n+=t[Math.random()*E|0];return n};function R1(_){return!!(_&&xt(_.append)&&_[Symbol.toStringTag]==="FormData"&&_[Symbol.iterator])}const h1=_=>{const t=new Array(10),n=(E,a)=>{if(vl(E)){if(t.indexOf(E)>=0)return;if(!("toJSON"in E)){t[a]=E;const s=gr(E)?[]:{};return to(E,(o,i)=>{const A=n(o,a+1);!eo(A)&&(s[i]=A)}),t[a]=void 0,s}}return E};return n(_,0)},I1=In("AsyncFunction"),O1=_=>_&&(vl(_)||xt(_))&&xt(_.then)&&xt(_.catch),EC=((_,t)=>_?setImmediate:t?((n,E)=>(Ka.addEventListener("message",({source:a,data:s})=>{a===Ka&&s===n&&E.length&&E.shift()()},!1),a=>{E.push(a),Ka.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xt(Ka.postMessage)),p1=typeof queueMicrotask<"u"?queueMicrotask.bind(Ka):typeof process<"u"&&process.nextTick||EC,K={isArray:gr,isArrayBuffer:zf,isBuffer:wv,isFormData:zv,isArrayBufferView:xv,isString:Hv,isNumber:Jf,isBoolean:qv,isObject:vl,isPlainObject:wl,isReadableStream:Zv,isRequest:Qv,isResponse:_1,isHeaders:e1,isUndefined:eo,isDate:Wv,isFile:kv,isBlob:Kv,isRegExp:L1,isFunction:xt,isStream:jv,isURLSearchParams:Jv,isTypedArray:l1,isFileList:Xv,forEach:to,merge:wT,extend:n1,trim:t1,stripBOM:E1,inherits:a1,toFlatObject:r1,kindOf:Fl,kindOfTest:In,endsWith:s1,toArray:o1,forEachEntry:i1,matchAll:A1,isHTMLForm:T1,hasOwnProperty:_C,hasOwnProp:_C,reduceDescriptors:eC,freezeMethods:u1,toObjectSet:c1,toCamelCase:S1,noop:d1,toFiniteNumber:f1,findKey:Zf,global:Ka,isContextDefined:Qf,ALPHABET:nC,generateString:C1,isSpecCompliantForm:R1,toJSONObject:h1,isAsyncFn:I1,isThenable:O1,setImmediate:EC,asap:p1};function W_(_,t,n,E,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),E&&(this.request=E),a&&(this.response=a,this.status=a.status?a.status:null)}K.inherits(W_,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 aC=W_.prototype,rC={};["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(_=>{rC[_]={value:_}}),Object.defineProperties(W_,rC),Object.defineProperty(aC,"isAxiosError",{value:!0}),W_.from=(_,t,n,E,a,s)=>{const o=Object.create(aC);return K.toFlatObject(_,o,function(A){return A!==Error.prototype},i=>i!=="isAxiosError"),W_.call(o,_.message,t,n,E,a),o.cause=_,o.name=_.name,s&&Object.assign(o,s),o};const U1=null;function HT(_){return K.isPlainObject(_)||K.isArray(_)}function sC(_){return K.endsWith(_,"[]")?_.slice(0,-2):_}function oC(_,t,n){return _?_.concat(t).map(function(a,s){return a=sC(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function N1(_){return K.isArray(_)&&!_.some(HT)}const m1=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function xl(_,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,R){return!K.isUndefined(R[C])});const E=n.metaTokens,a=n.visitor||S,s=n.dots,o=n.indexes,A=(n.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(a))throw new TypeError("visitor must be a function");function T(f){if(f===null)return"";if(K.isDate(f))return f.toISOString();if(!A&&K.isBlob(f))throw new W_("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(f)||K.isTypedArray(f)?A&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function S(f,C,R){let I=f;if(f&&!R&&typeof f=="object"){if(K.endsWith(C,"{}"))C=E?C:C.slice(0,-2),f=JSON.stringify(f);else if(K.isArray(f)&&N1(f)||(K.isFileList(f)||K.endsWith(C,"[]"))&&(I=K.toArray(f)))return C=sC(C),I.forEach(function(p,N){!(K.isUndefined(p)||p===null)&&t.append(o===!0?oC([C],N,s):o===null?C:C+"[]",T(p))}),!1}return HT(f)?!0:(t.append(oC(R,C,s),T(f)),!1)}const u=[],c=Object.assign(m1,{defaultVisitor:S,convertValue:T,isVisitable:HT});function d(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(I,O){(!(K.isUndefined(I)||I===null)&&a.call(t,I,K.isString(O)?O.trim():O,C,c))===!0&&d(I,C?C.concat(O):[O])}),u.pop()}}if(!K.isObject(_))throw new TypeError("data must be an object");return d(_),t}function lC(_){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(E){return t[E]})}function qT(_,t){this._pairs=[],_&&xl(_,this,t)}const iC=qT.prototype;iC.append=function(t,n){this._pairs.push([t,n])},iC.toString=function(t){const n=t?function(E){return t.call(this,E,lC)}:lC;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function D1(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AC(_,t,n){if(!t)return _;const E=n&&n.encode||D1;K.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=K.isURLSearchParams(t)?t.toString():new qT(t,n).toString(E),s){const o=_.indexOf("#");o!==-1&&(_=_.slice(0,o)),_+=(_.indexOf("?")===-1?"?":"&")+s}return _}class TC{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 SC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:qT,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},WT=typeof window<"u"&&typeof document<"u",kT=typeof navigator=="object"&&navigator||void 0,Y1=WT&&(!kT||["ReactNative","NativeScript","NS"].indexOf(kT.product)<0),b1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g1=WT&&window.location.href||"http://localhost",St={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:WT,hasStandardBrowserEnv:Y1,hasStandardBrowserWebWorkerEnv:b1,navigator:kT,origin:g1},Symbol.toStringTag,{value:"Module"})),...P1};function $1(_,t){return xl(_,new St.classes.URLSearchParams,Object.assign({visitor:function(n,E,a,s){return St.isNode&&K.isBuffer(n)?(this.append(E,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function V1(_){return K.matchAll(/\w+|\[(\w*)]/g,_).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B1(_){const t={},n=Object.keys(_);let E;const a=n.length;let s;for(E=0;E<a;E++)s=n[E],t[s]=_[s];return t}function LC(_){function t(n,E,a,s){let o=n[s++];if(o==="__proto__")return!0;const i=Number.isFinite(+o),A=s>=n.length;return o=!o&&K.isArray(a)?a.length:o,A?(K.hasOwnProp(a,o)?a[o]=[a[o],E]:a[o]=E,!i):((!a[o]||!K.isObject(a[o]))&&(a[o]=[]),t(n,E,a[o],s)&&K.isArray(a[o])&&(a[o]=B1(a[o])),!i)}if(K.isFormData(_)&&K.isFunction(_.entries)){const n={};return K.forEachEntry(_,(E,a)=>{t(V1(E),a,n,0)}),n}return null}function y1(_,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 no={transitional:SC,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const E=n.getContentType()||"",a=E.indexOf("application/json")>-1,s=K.isObject(t);if(s&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return a?JSON.stringify(LC(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 i;if(s){if(E.indexOf("application/x-www-form-urlencoded")>-1)return $1(t,this.formSerializer).toString();if((i=K.isFileList(t))||E.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return xl(i?{"files[]":t}:t,A&&new A,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),y1(t)):t}],transformResponse:[function(t){const n=this.transitional||no.transitional,E=n&&n.forcedJSONParsing,a=this.responseType==="json";if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(E&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?W_.from(i,W_.ERR_BAD_RESPONSE,this,null,this.response):i}}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"],_=>{no.headers[_]={}});const M1=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"]),F1=_=>{const t={};let n,E,a;return _&&_.split(`
204
+ </svg>`,kf={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}=K0(_),{classForLink:n,isLink:E,toLocal:a}=xf(_),{hasSlot:s,slotName:o}=Hf(_),{textOrHtmlRender:i}=qf(_);return{attributesForTd:t,classForLink:n,hasSlot:s,isLink:E,slotName:o,textOrHtmlRender:i,toLocal:a}},render(){const _=e.h("div",this.attributesForTd,[e.h("div",{class:["a_table__cell__child",this.column.class,this.column.classRow]},[this.showIconChildren?e.h(S_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:Wf,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(d_,{html:this.column.label,tag:"dt"}),e.h("dd",{},[_])]:_}},X0={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}=xf(_),{hasSlot:a,slotName:s}=Hf(_),{textOrHtmlRender:o}=qf(_);return{classForLink:t,hasSlot:a,isLink:n,slotName:s,textOrHtmlRender:o,toLocal:E}},render(){return[e.h(d_,{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 j0(){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 z0(_){const t=e.toRef(_,"columnActionsView"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.inject("columnActionsOnePlusDropdownOptions"),o=e.inject("rowActions"),i=e.inject("tableId"),A=e.computed(()=>`${i.value}_action_${a.value}`),T=e.computed(()=>B_(s.value.indexFirstDropdownAction)?1:s.value.indexFirstDropdownAction),S=({rowAction:m})=>{if(m.text)return m.text;if(b_(m.textCallback))return m.textCallback({row:E.value,rowIndex:a.value,rowAction:m})},u=({rowAction:m})=>{if(m.html)return m.html;if(b_(m.htmlCallback))return m.htmlCallback({row:E.value,rowIndex:a.value,rowAction:m})},c=({rowAction:m})=>{if(m.title)return m.title;if(b_(m.titleCallback))return m.titleCallback({row:E.value,rowIndex:a.value,rowAction:m})},d=({rowAction:m})=>m.disabled?m.disabled:b_(m.disabledCallback)?m.disabledCallback({row:E.value,rowIndex:a.value,rowAction:m}):!1,f=({rowAction:m})=>m.class?m.class:b_(m.classCallback)?m.classCallback({row:E.value,rowIndex:a.value,rowAction:m}):"",C=({rowAction:m})=>{if(m.iconLeft)return m.iconLeft;if(b_(m.iconLeftCallback))return m.iconLeftCallback({row:E.value,rowIndex:a.value,rowAction:m})},R=({rowAction:m})=>{if(m.iconRight)return m.iconRight;if(b_(m.iconRightCallback))return m.iconRightCallback({row:E.value,rowIndex:a.value,rowAction:m})},I=({rowAction:m})=>{if(re(m.to))return m.to;if(te(m.to)){const V=E_(m.to),B=V.params||{},v=V.query||{};if(m.to.nameDynamic&&!m.to.name){const J=l_(E.value,m.to.nameDynamic);J&&(V.name=J)}if(m.to.paramsDynamic){let J=!1;if(q(m.to.paramsDynamic,(X,Z)=>{const Q=l_(E.value,X);if(B_(Q))return J=!0,!1;B[Z]=Q}),J)return}if(m.to.queryDynamic){let J=!1;if(q(m.to.queryDynamic,(X,Z)=>{const Q=l_(E.value,X);if(B_(Q))return J=!0,!1;v[Z]=Q}),J)return}return V.params=B,V.query=v,V}},O=({rowAction:m})=>m.href?m.href:b_(m.hrefCallback)?m.hrefCallback({row:E.value,rowIndex:a.value,rowAction:m}):!1,p=({rowAction:m})=>{if(m.extra)return m.extra;if(b_(m.extraCallback))return m.extraCallback({row:E.value,rowIndex:a.value,rowAction:m})},N=({rowAction:m})=>{if(m.textScreenReader)return m.textScreenReader;if(b_(m.textScreenReaderCallback))return m.textScreenReaderCallback({row:E.value,rowIndex:a.value,rowAction:m})},P=({rowActionIndexVisible:m})=>{if(t.value==="dropdown")return{id:A.value,ids:[A.value,i.value]};if(m<T.value){const V=`${A.value}_${m}`;return{buttonId:V,id:V,ids:[V,i.value]}}return{id:A.value,ids:[A.value,i.value]}},$=m=>{q(m,(V,B)=>{TD(B,"Callback")&&(m[B]=void 0)})},g=e.computed(()=>{const m=[];let V=0;return q(E_(o.value),B=>{if(Vf({rowAction:B,row:E.value,rowIndex:a.value})){if(B.type!=="divider"){const v=S({rowAction:B});v&&(B.text=v);const J=u({rowAction:B});J&&(B.html=J);const X=c({rowAction:B});X?B.title=X:v&&(B.title=v);const Z=d({rowAction:B});Z&&(B.disabled=Z);const Q=f({rowAction:B});Q&&(B.class=Q);const H=C({rowAction:B});H&&(B.iconLeft=H);const j=R({rowAction:B});j&&(B.iconRight=j);const L_=p({rowAction:B});L_&&(B.extra=L_);const p_=N({rowAction:B});if(L_&&(B.textScreenReader=p_),B.type==="link"){const i_=I({rowAction:B});i_?B.to=i_:B.href=O({rowAction:B})}if(b_(B.callback)){const{buttonId:i_,id:R_,ids:N_}=P({rowActionIndexVisible:V});B.id=i_;const H_=B.callback;B.callback=()=>H_({row:E.value,rowIndex:a.value,id:R_,ids:N_,rowAction:B})}$(B),V++}m.push(B)}}),m}),M=e.computed(()=>!n.value&&g.value.length>0);return{buttonActionsId:A,isRowActionsDropdownVisible:M,rowActionsFiltered:g}}function J0(_){const t=e.toRef(_,"rowIndex");return{rowNumber:e.computed(()=>t.value+1)}}const Z0={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}=Tt(),{buttonActionsId:n,isRowActionsDropdownVisible:E,rowActionsFiltered:a}=z0(_),{columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:i}=j0(),{rowNumber:A}=J0(_),{stylesThTd:T}=yf();return{buttonActionsId:n,columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:i,isMobileWidth:t,isRowActionsDropdownVisible:E,rowActionsFiltered:a,rowNumber:A,stylesThTd:T}},render(){return e.h("div",{role:"cell",class:["a_table__td a_table__cell a_table__cell_action",{a_table__cell_action_sticky:this.isRowActionsStickyLocal}],...this.stylesThTd},[e.h("div",{class:["a_table__cell__child",this.rowActionsClass]},[this.isColumnsScrollInvisibleDropdownVisible&&e.h(wn,{buttonClass:"a_btn a_btn_link a_text_nowrap",buttonIconLeft:Ef,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(X0,{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(wn,{id:this.buttonActionsId,actions:this.rowActionsFiltered,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:Js,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(Bl,{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:aE,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 Q0(_,{hasChildren:t=e.computed(()=>!1),hasPreviewLocal:n=e.computed(()=>!1),rowClassChildren:E=e.computed(()=>{}),rowClassLevelChildren:a=e.computed(()=>{}),rowClassPreview:s=e.computed(()=>{}),toggleChildren:o=()=>{}}){const i=e.toRef(_,"disabledPreview"),A=e.toRef(_,"disabledPreviewRowCallback"),T=e.toRef(_,"isFooter"),S=e.toRef(_,"isTreeCollapsible"),u=e.toRef(_,"level"),c=e.toRef(_,"row"),d=e.toRef(_,"rowClass"),f=e.toRef(_,"rowIndex"),C=e.inject("isMobile"),R=e.inject("onTogglePreview"),I=e.inject("tableId"),O=e.computed(()=>{const V=T.value?"_footer":"";return`${I.value}${V}_${f.value}`}),p=e.computed(()=>b_(d.value)?d.value({level:u.value,row:c.value,rowindex:f.value}):d.value),N=e.computed(()=>["a_table__row a_table__body__row a_table__row_hover",E.value,a.value,s.value,p.value]),P=e.computed(()=>C.value?"listitem":"row"),$=e.computed(()=>b_(A.value)?A.value({row:c.value,rowIndex:f.value}):i.value),g=V=>{i0({$event:V,tagsName:["A","BUTTON","INPUT","LABEL"],classStop:"a_table__row"})||(t.value?o():n.value&&R({row:c.value,rowIndex:f.value}))},M=V=>{V.keyCode===e_.enter&&g(V)},m=e.computed(()=>(S.value&&t.value||n.value)&&!$.value?{tabindex:0,onClick:g,onKeydown:M}:{});return{disabledPreviewRow:$,eventsLocal:m,roleLocal:P,rowClassComputed:N,rowHtmlId:O}}function _v(_,{emit:t}){const n=e.toRef(_,"areAllRowsSelected"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"selectedRowsIndexes"),o=e.inject("currentMultipleActions"),i=e.inject("isMultipleActionsActive"),A=e.computed(()=>!!s.value[a.value]||n.value),T=e.computed(()=>{if(i.value){if(b_(l_(o.value,"isHiddenCallback")))return o.value.isHiddenCallback({row:E.value,rowIndex:a.value});if(n.value)return!0}return!1}),S=e.computed(()=>A.value?"_A_TABLE_DESELECT_THIS_ROW_":"_A_TABLE_SELECT_THIS_ROW_");return{isCheckboxDisabled:T,isRowSelected:A,labelCheckbox:S,toggleCheckbox:()=>{T.value||t("setSelectedRowsIndexes",{rowIndex:a.value})}}}function ev(_){const t=e.toRef(_,"isTree"),n=e.toRef(_,"keyChildren"),E=e.toRef(_,"level"),a=e.toRef(_,"row"),s=e.toRef(_,"rowIndex"),o=e.toRef(_,"rowsLength"),i=e.computed(()=>{if(!n.value)return[];const c=l_(a.value,n.value);return f_(c)?c:[]}),A=e.computed(()=>i.value.length>0),T=e.computed(()=>E.value+1),S=e.computed(()=>t.value?{"aria-level":E.value,"aria-posinset":s.value+1,"aria-setsize":o.value}:{}),u=e.computed(()=>{if(t.value)return`a_table__row_level a_table__row_level_${E.value}`});return{ariaTreeAttributes:S,children:i,hasChildren:A,levelForChildren:T,rowClassLevelChildren:u}}function tv(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isOneOfParentsClose"),E=e.toRef(_,"isTreeCollapsible"),a=e.toRef(_,"isTreeOpened"),s=e.ref(!1),o=e.computed(()=>{if(t.value)return s.value}),i=e.computed(()=>({a_table__row_has_children:t.value,a_table__row_hide:n.value,a_table__row_level_open:t.value&&s.value})),A=e.computed(()=>!!(n.value||!s.value));return{ariaExpanded:o,initIsChildrenOpen:()=>{(!E.value||a.value)&&(s.value=!0)},isOneOfParentsCloseForChildren:A,rowClassChildren:i,toggleChildren:()=>{s.value=!s.value}}}function nv(_){const t=e.toRef(_,"allVisibleMobileColumns"),n=e.toRef(_,"countVisibleMobileColumns"),E=e.inject("isMobile"),a=e.ref(!1),s=e.computed(()=>t.value.length-n.value),o=e.computed(()=>E.value&&t.value.length>n.value),i=e.computed(()=>s.value===1?"_A_TABLE_MOBILE_TR_PLUS_FIELD_":"_A_TABLE_MOBILE_TR_PLUS_FIELDS_{{count}}_"),A=e.computed(()=>a.value?"_A_TABLE_MOBILE_TR_CLOSE_":i.value);return{countInvisibleMobileColumns:s,isAllColumnsVisibleMobile:a,isBtnToggleAllColumnsVisible:o,textBtnToggleAllColumns:A,toggleAllColumnsVisibleMobile:({$event:S})=>{a.value=!a.value,S.stopPropagation()}}}function Ev(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isFooter"),E=e.toRef(_,"rowIndex"),a=e.inject("hasPreview"),s=e.inject("previewRightRowIndex"),o=e.inject("previewRightRowIndexLast"),i=e.computed(()=>!!(!t.value&&a.value&&!n.value)),A=e.computed(()=>E.value===s.value),T=e.computed(()=>!A.value&&E.value===o.value),S=e.computed(()=>c_({placeholder:A.value?"_A_TABLE_ROW_PREVIEW_CLOSE_":"_A_TABLE_ROW_PREVIEW_OPEN_"})),u=e.computed(()=>i.value?{"aria-label":S.value}:{}),c=e.computed(()=>{if(i.value)return{a_table__row_preview_open:A.value,a_table__row_preview_was_open:T.value}});return{hasPreviewLocal:i,previewAttributes:u,rowClassPreview:c}}const Kf={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:a,levelForChildren:s,rowClassLevelChildren:o}=ev(_),{ariaExpanded:i,initIsChildrenOpen:A,isOneOfParentsCloseForChildren:T,rowClassChildren:S,toggleChildren:u}=tv(_,{hasChildren:a}),{hasPreviewLocal:c,previewAttributes:d,rowClassPreview:f}=Ev(_,{hasChildren:a}),{disabledPreviewRow:C,eventsLocal:R,roleLocal:I,rowClassComputed:O,rowHtmlId:p}=Q0(_,{hasChildren:a,hasPreviewLocal:c,rowClassChildren:S,rowClassLevelChildren:o,rowClassPreview:f,toggleChildren:u}),{countInvisibleMobileColumns:N,isAllColumnsVisibleMobile:P,isBtnToggleAllColumnsVisible:$,textBtnToggleAllColumns:g,toggleAllColumnsVisibleMobile:M}=nv(_),{isCheckboxDisabled:m,isRowSelected:V,labelCheckbox:B,toggleCheckbox:v}=_v(_,t);return A(),{ariaExpanded:i,ariaTreeAttributes:n,children:E,countInvisibleMobileColumns:N,disabledPreviewRow:C,eventsLocal:R,hasChildren:a,isAllColumnsVisibleMobile:P,isBtnToggleAllColumnsVisible:$,isCheckboxDisabled:m,isOneOfParentsCloseForChildren:T,isRowSelected:V,labelCheckbox:B,levelForChildren:s,previewAttributes:d,roleLocal:I,rowClassComputed:O,rowHtmlId:p,textBtnToggleAllColumns:g,toggleAllColumnsVisibleMobile:M,toggleCheckbox:v,toggleChildren:u}},inject:["columnsFilteredForRender","isActionColumnVisible","isMultipleActionsActive","isMobile"],render(){let _=[];this.isMobile&&!this.isAllColumnsVisibleMobile?q(this.allVisibleMobileColumns,(E,a)=>{if(a+1>this.countVisibleMobileColumns)return!1;_.push(e.h(kf,{key:E.id,column:E,columnIndex:a,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))}):_=this.columnsFilteredForRender.map((E,a)=>e.h(kf,{key:E.id,column:E,columnIndex:a,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,showIconChildren:!!(this.isTreeCollapsible&&this.hasChildren&&a===0)},this.$slots));const t=this.isActionColumnVisible&&e.h(Z0,{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:Wf,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(mr,{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(k0,{row:this.row,rowIndex:this.rowIndex},{preview:E=>this.$slots.preview?this.$slots.preview(E):void 0}),this.hasChildren?this.children.map((E,a)=>e.h(e.resolveComponent("ATableTr"),{key:E[this.keyId]||a,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:a,rowsLength:this.children.length,selectedRowsIndexes:this.selectedRowsIndexes},{get:s=>[e.h(Vl,{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 av(_,{columnActionsWidthDefaultsRemLocal:t=e.computed(()=>({})),columnActionsWidthMinRemLocal:n=()=>{},columnActionsWidthRemLocal:E=()=>{},isMobile:a=e.computed(()=>!1),rowsLocal:s=e.ref([])}){const o=e.toRef(_,"columnActionsView"),i=e.toRef(_,"rowActions"),A=e.computed(()=>o.value==="onePlusDropdown"),T=e.computed(()=>{let f=!1;_:for(let C=0;C<s.value.length;C++){const R=s.value[C];for(let I=0;I<i.value.length;I++){const O=i.value[I];if(Vf({rowAction:O,row:R,rowIndex:C})&&O.type!=="divider"){f=!0;break _}}}return f}),S=e.computed(()=>!i.value.length||!A.value?!1:T.value),u=e.computed(()=>B_(E.value)?S.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdown:t.value.default:E.value),c=e.computed(()=>B_(n.value)?S.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdownMin:t.value.min:n.value);return{columnActionsBtnGroupMaxWidthStyle:e.computed(()=>{const f=t.value.btnGroupMaxWidth;if(!a.value&&o.value!=="dropdown"&&!B_(f))return`max-width: ${f}px`}),columnActionsWidthLocal:u,columnActionsWidthMinLocal:c,isColumnActionWide:S}}function rv(_,{columnsScrollInvisible:t=e.ref([]),indexFirstScrollInvisibleColumn:n=e.ref(void 0),modelColumnsVisibleLocal:E=e.ref({}),modelIsTableWithoutScrollComputed:a=e.computed(()=>!1),columnsOrderedFromSimpleTable:s=e.computed(()=>[])}){const o=e.toRef(_,"columns"),i=e.toRef(_,"isActionColumnVisible"),A=e.toRef(_,"isSimpleTable"),T=e.toRef(_,"modelColumnsOrdering"),S=e.toRef(_,"multipleActions"),u=e.computed(()=>oa(o.value,"id")),c=e.computed(()=>{const O={true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]};return q(E_(o.value),p=>{const N=p.id;p.locked?(O.true.push(N),O.trueColumns.push(p),O.trueObject[N]=!0):(O.false.push(N),O.falseColumns.push(p),O.falseObject[N]=!0)}),O}),d=e.computed(()=>{if(A.value&&s.value&&s.value.length)return s.value;if(!T.value.length)return[...c.value.trueColumns,...c.value.falseColumns];const O=[],p=E_(u.value);return q(T.value,N=>{p[N]&&O.push(p[N])}),O}),f=e.computed(()=>{const O=[],p={};return q(d.value,(N,P)=>{S0({column:N,columnIndex:P,modelIsTableWithoutScroll:a.value,modelColumnsVisibleLocal:E.value,indexFirstScrollInvisibleColumn:n.value})&&(p[O.length]=P,O.push(N))}),{columns:O,columnsIndexesMapping:p}}),C=e.computed(()=>f.value.columnsIndexesMapping),R=e.computed(()=>f.value.columns),I=e.computed(()=>{let O=R.value.length;return a.value&&(O+=t.value.length),i.value&&O++,S.value.length&&O++,O});return{columnIdsGroupByLocked:c,columnsFilteredForRender:R,columnsFilteredForRenderIndexesMapping:C,columnsOrdered:d,countNotHiddenColumns:I}}function sv(_,{modelSort:t=e.ref([])}){const n=e.toRef(_,"columns"),E=e.toRef(_,"showFirstSortingSequenceNumber"),a=e.toRef(_,"sortingSequenceNumberClass"),s=e.computed(()=>Ae(n.value,I=>A0({column:I}))),o=e.computed(()=>Ft(s.value,(I,O)=>({...I,_index:I.prio||O}))),i=e.computed(()=>Ft(o.value,I=>(I.group&&I.group.length&&(I.group=Ft(I.group,(O,p)=>[O,p].join("%%%"))),I))),A=({groups:I,group:O,level:p,columnsOrderedFromGroups:N,firstLevelGroupObject:P})=>{const $=O?Ae(I,m=>As(m,O[p-1])):I,g=bA($,m=>m[p]),M=Ft(g,m=>{const V={id:m[p].split("%%%")[0]};let B;return p===0?(B=V,B.columnIndexes=[]):B=P,m.length>p+1?V.children=l_(A({groups:I,group:m,level:p+1,columnsOrderedFromGroups:N,firstLevelGroupObject:B}),"recursiveGroup"):m.length===p+1&&(V.columns=Ae(i.value,v=>As(v.group,m[p])),B.columnIndexes.push(...Ft(V.columns,"_index")),N.push(...V.columns)),V});return{columnsOrderedFromGroups:N,recursiveGroup:M}},T=e.computed(()=>Ft(i.value,I=>l_(I,"group",I))),S=e.computed(()=>Ae(T.value,I=>f_(I))),u=e.computed(()=>Ae(T.value,I=>!f_(I))),c=e.computed(()=>{const I=[];return A({groups:S.value,group:null,level:0,columnsOrderedFromGroups:I})}),d=e.computed(()=>Ls([...c.value.columnsOrderedFromGroups,...u.value],"_index")),f=I=>e.h(GT,{ref:"th",class:"a_table__cell__child_group",column:I,columnGroupNames:Ft(I.group,O=>O.split("%%%")[0]),columnIndex:I._index,hasMultipleActions:!1,modelSort:t.value,showFirstSortingSequenceNumber:E.value,sortingSequenceNumberClass:a.value}),C=I=>e.h("div",{class:"a_table__th_group"},[e.h("div",{class:"a_table__th_child_group"},[e.h("div",{class:"a_table__cell_group a_text_center"},[I.id&&e.h(d_,{html:I.id,tag:"span","aria-hidden":!0})]),e.h("div",{class:"a_table__th_group_container"},I.children?Ft(I.children,O=>C(O)):Ft(I.columns,O=>f(O)))])]),R=e.computed(()=>{const I=Ls([...c.value.recursiveGroup,...u.value],O=>O.columnIndexes?Yu(O.columnIndexes):O._index);return Ft(I,O=>O.columnIndexes?C(O):f(O))});return{columnsOrderedFromSimpleTable:d,renderedGroupedColumns:R}}function ov(_,{emit:t},{checkVisibleColumns:n=()=>{},columnIdsGroupByLocked:E=e.computed(()=>({true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]})),columnsFilteredForRenderIndexesMapping:a=e.computed(()=>({}))}){const s=e.toRef(_,"columns"),o=e.toRef(_,"modelColumnsOrdering"),i=({columnIndexDraggable:S,columnIndexOver:u,reset:c,inHeader:d})=>{if(S===u&&!c)return;d&&(S=a.value[S],u=a.value[u]);let f;if(c)f=[...E.value.true,...E.value.false];else{f=E_(o.value);const C=f[S];f.splice(S,1),f.splice(u,0,C)}t("changeColumnsOrdering",{columnIndexDraggable:S,columnIndexOver:u,modelColumnsOrdering:f}),setTimeout(()=>{n()})},A=()=>{let S=[],u=!1;if(!o.value.length)S=[...E.value.true,...E.value.false];else{S=[...E.value.true];const c=E_(E.value.falseObject);q(o.value,d=>{c[d]&&(S.push(d),delete c[d])}),q(c,(d,f)=>{S.push(f)}),JSON.stringify(o.value)!==JSON.stringify(S)&&(u=!0)}return{shouldFixColumns:u,modelColumnsOrderingLocal:S}},T=()=>{const{shouldFixColumns:S,modelColumnsOrderingLocal:u}=A();S&&t("changeColumnsOrdering",{modelColumnsOrdering:u,shouldFixColumns:S})};return e.watch(s,()=>{T()},{deep:!0}),{changeColumnsOrdering:i,checkColumnsOrdering:A}}function lv(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"data"),E=e.toRef(_,"isTree"),a=e.toRef(_,"keyChildren"),s=e.toRef(_,"keyCountAllRowsInData"),o=e.computed(()=>te(n.value)),i=e.computed(()=>f_(n.value)),A=e.computed(()=>s_(t.value)?o.value?+l_(n.value,s.value):i.value?E.value?nc({array:n.value,keyChildren:a.value}):n.value.length:0:t.value),T=e.computed(()=>s_(t.value)?n.value.length:t.value);return{countAllRowsLocal:A,totalRowsCount:T}}function iv({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 Av(_,{emit:t},{checkColumnsOrdering:n=()=>{},checkVisibleColumns:E=()=>{},modelColumnsVisibleLocal:a=e.ref({})}){const s=e.toRef(_,"modelColumnsVisible"),o=e.toRef(_,"columns");return{initTable:()=>{const{shouldFixColumns:A,modelColumnsOrderingLocal:T}=n();let S=!1;la(s.value)?a.value=E_(s.value):(S=!0,a.value=Pf(o.value),E()),t("initTable",E_({columnsOrdering:{model:T,shouldFix:A},columnsVisible:{model:a.value,shouldFix:S}}))}}}function Tv(_,{emit:t},{closePreviewAll:n=()=>{},scrollToTable:E=()=>{},setFocusToTable:a=()=>{},viewCurrent:s=e.computed(()=>({}))}){const o=e.toRef(_,"isTree"),i=e.toRef(_,"offsetStart"),A=e.toRef(_,"pagination"),T=e.ref(void 0),S=e.ref(void 0),u=()=>{T.value=A.value.limitStart||10,S.value=i.value},c=e.computed(()=>{var I;return o.value?!1:(I=A.value)!=null&&I.use?s.value?s.value.usePagination||!1:!0:!1}),d=e.computed(()=>A.value.position==="top"||A.value.position==="y"),f=e.computed(()=>A.value.position==="bottom"||A.value.position==="y"||!d.value);return{changeLimit:I=>{a(),E(),T.value=I,S.value=i.value,t("changeLimit",{offset:S.value,limit:I}),n()},changeOffset:I=>{let O,p;te(I)?(O=I.offset,p=I.reload):(O=I,p=!0),p&&(a(),E()),S.value=O,t("changeOffset",{offset:O,limit:T.value}),p&&n()},initLocalVars:u,limit:T,offset:S,usePaginationBottom:f,usePaginationLocal:c,usePaginationTop:d}}function Sv({columnsOrdered:_=e.ref([]),isMobile:t=e.ref(!1),modelColumnsVisibleLocal:n=e.ref({})}){return{allVisibleMobileColumns:e.computed(()=>t.value?Ae(_.value,a=>a.isRender!==!1&&n.value[a.id]!==!1):[])}}function Lv(_,{emit:t},{checkVisibleColumns:n=()=>{},isMultipleActionsActive:E=e.ref(void 0),rowsLocalAll:a=e.computed(()=>[]),rowsLocalLength:s=e.computed(()=>0)}){const o=e.toRef(_,"id"),i=e.toRef(_,"multipleActions"),A=e.ref(void 0),T=e.ref({}),S=e.ref(!1),u=e.computed(()=>i.value.length>0),c=e.computed(()=>b_(l_(A.value,"isHiddenCallback"))),d=e.computed(()=>Ae(a.value,(g,M)=>T.value[M])),f=()=>{T.value={}},C=()=>{E.value=!1,A.value=void 0,S.value=!1,f()},R=()=>{if(window.isScrollDisabled)return;const g=gf({tableId:o.value});Ce({selector:`#${g}`})},I=({isActive:g,action:M}={})=>{if(g){E.value=!0,A.value=M,setTimeout(()=>{n(),R()}),t("toggleMultipleActions",{isActive:g,action:M});return}E.value?C():E.value=!0,setTimeout(()=>{n(),R()}),t("toggleMultipleActions",{isActive:g,action:M})},O=e.computed(()=>la(T.value)),p=e.computed(()=>s.value>0&&s.value===O.value),N=e.computed(()=>O.value>0);return{areAllRowsSelected:S,areAllVisibleRowsSelected:p,areSomeRowsSelected:N,closeMultipleActionsActive:C,currentMultipleActions:A,hasMultipleActions:u,selectedRows:d,selectedRowsIndexes:T,setEmptySelectedRowsIndexes:f,setSelectedRowsIndexes:({rowIndex:g,isAll:M})=>{if(M){if(N.value)f();else{const m={};c.value?tn(s.value,V=>{A.value.isHiddenCallback({row:a.value[V],rowIndex:V})||(m[V]=!0)}):tn(s.value,V=>{m[V]=!0}),T.value=m}return}T.value[g]?delete T.value[g]:T.value[g]=!0},toggleBtnAllRows:()=>{S.value=!S.value,S.value&&f()},toggleMultipleActionsActive:I}}function uv(_,{emit:t},{aTableRef:n=e.ref({}),previewBoxWidthRemLocal:E=e.computed(()=>0),tableGrandparentRef:a=e.ref({})}){const{previewRef:s,removePreviewRef:o}=vf(),i=200,A=50;let T,S=0,u=0,c=0;const d=()=>{var V;if(!((V=n.value)!=null&&V.getBoundingClientRect))return;u=n.value.getBoundingClientRect().left},f=({clientWidth:m})=>{S=m,T=m/100*A,d()},C=({clientWidthLocal:m,clientXTableParent:V,previewBoxWidth:B})=>{if(!n.value)return;const v=m-V-B;n.value.style.width=`${v}px`},R=({clientX:m=0,previewRef:V,previewBoxWidth:B=0})=>{let v=B||S-m;v<i?v=i:v>T&&(v=T),C({clientWidthLocal:S,clientXTableParent:u,previewBoxWidth:v}),V&&(V.style.width=`${v}px`)},I=({previewRef:m})=>{l_(m,"style.removeProperty")&&m.style.removeProperty("width"),l_(n,"value.style.removeProperty")&&n.value.style.removeProperty("width")},O=({previewRef:m})=>{S=document.documentElement.clientWidth,c=l_(a,"value.offsetWidth",0),d(),R({previewRef:m,previewBoxWidth:E.value})},p=({previewRef:m,isOpen:V})=>{V?O({previewRef:m}):I({previewRef:m})},N=({previewRightWidth:m})=>{t("mouseupResizePreviewRight",{previewRightWidth:m})},P=()=>{O({previewRef:s.value})},$=new ResizeObserver(is(m=>{const V=m[0].contentRect;c!==V.width&&(c=V.width,P())},300)),g=()=>{$.observe(a.value)},M=()=>{$.unobserve(a.value)};return e.onBeforeUnmount(()=>{o(),M()}),{addEventListenerWindowResize:g,mousedownResizePreviewRight:f,mousemoveResizePreviewRight:R,mouseupResizePreviewRight:N,removeEventListenerWindowResize:M,togglePreviewResize:p}}function cv(_,t,{aTableRef:n=e.ref({}),isMobile:E=e.ref(void 0),previewBoxWidthRemLocal:a=e.computed(()=>0),rowsLocalAll:s=e.computed(()=>[]),tableGrandparentRef:o=e.ref({})}){const{isDropdownGlobalOpen:i}=fT(),{addEventListenerWindowResize:A,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:S,mouseupResizePreviewRight:u,removeEventListenerWindowResize:c,togglePreviewResize:d}=uv(_,t,{aTableRef:n,previewBoxWidthRemLocal:a,tableGrandparentRef:o}),f=e.toRef(_,"keyId"),C=e.toRef(_,"preview"),R=e.toRef(_,"id"),I=t.emit,O=e.ref({}),p=e.ref(void 0),N=e.ref(void 0),P=e.computed(()=>!!C.value),$=({rowIndex:i_})=>{window.isScrollDisabled||setTimeout(()=>{const R_=`#${R.value}_${i_}`;Ce({selector:R_})})},g=()=>{window.isScrollDisabled||setTimeout(()=>{const i_=`#${bf({tableId:R.value})}`;Ce({selector:i_})})},M=e.computed(()=>C.value==="right"||E.value),m=e.computed(()=>!s_(p.value)),V=()=>{$({rowIndex:p.value}),I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),N.value=p.value,p.value=void 0,c()},B=()=>{I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),N.value=void 0,p.value=void 0,c()},v=e.computed(()=>C.value==="down"),J=({rowIndex:i_,row:R_})=>{const N_=Ml({row:R_,rowIndex:i_,keyId:f.value});delete O.value[N_]},X=()=>{O.value={}},Z=()=>{B(),X()},Q=({rowIndex:i_,row:R_}={})=>{M.value?V():v.value&&J({rowIndex:i_,row:R_})},H=({rowIndex:i_})=>{!E.value&&B_(p.value)&&A(),I("togglePreview",{row:s.value[i_],rowIndex:i_,typeToggle:"open"}),p.value=i_,N.value=void 0,g()},j=({rowIndex:i_})=>{p.value===i_?V():H({rowIndex:i_})},L_=({rowIndex:i_,row:R_})=>{const N_=Ml({row:R_,rowIndex:i_,keyId:f.value});O.value[N_]?delete O.value[N_]:O.value[N_]=!0};return{closePreview:Q,closePreviewAll:Z,hasPreview:P,isPreviewRightOpen:m,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:S,mouseupResizePreviewRight:u,onTogglePreview:({row:i_,rowIndex:R_})=>{if(!i.value){if(M.value){j({rowIndex:R_});return}v.value&&L_({row:i_,rowIndex:R_})}},previewDownRowIds:O,previewRightRowIndex:p,previewRightRowIndexLast:N,togglePreviewResize:d}}function dv(_,{dataSorted:t=e.computed(()=>[]),limit:n=e.ref(0),offset:E=e.ref(0),setEmptySelectedRowsIndexes:a=()=>{},usePaginationLocal:s=e.computed(()=>!1)}){const o=e.toRef(_,"clearSelectedRowsOnDataChange"),i=e.toRef(_,"pagination"),A=e.toRef(_,"rowsCountRenderPerTick"),T=e.ref([]),S=e.ref([]);let u=!0,c=0,d;const f=e.computed(()=>{if(n.value&&!i.value.isOutside&&s.value){const M=E.value,m=M+n.value;return t.value.slice(M,m)}return t.value}),C=e.computed(()=>f.value),R=e.computed(()=>C.value.length),I=e.computed(()=>!!R.value),O=()=>{const M=c*A.value,m=M+A.value;Ft(f.value.slice(M,m),V=>S.value.push(V)),c++},p=()=>{d=setInterval(()=>{c*A.value>=f.value.length?clearInterval(d):O()})},N=()=>{clearInterval(d)},P=({row:M,rowIndex:m})=>{m>S.value.length-1||(S.value[m]=M)},$=({row:M})=>{S.value.unshift(M)},g=({index:M})=>{S.value.splice(M,1)};return e.watch(f,M=>{IA(M,T.value)||(T.value=[...M],!u&&o.value&&a(),u=!1,S.value=[],c=0,N(),A.value>0?(O(),p()):S.value=f.value)},{immediate:!0,deep:!0}),{addRow:$,deleteRow:g,hasRows:I,rowsLocal:S,rowsLocalAll:C,rowsLocalLength:R,stopRenderRows:N,updateRow:P}}function fv(_,{emit:t},{columnActionsWidthLocal:n=e.computed(()=>0),columnActionsWidthMinLocal:E=e.computed(()=>0),columnsOrdered:a=e.computed(()=>[]),columnsScrollInvisible:s=e.ref([]),columnWidthDefaultRemLocal:o=e.computed(()=>0),indexFirstScrollInvisibleColumn:i=e.ref(void 0),isMobile:A=e.ref(!1),isMultipleActionsActive:T=e.ref(void 0),modelColumnsVisibleLocal:S=e.ref({}),modelIsTableWithoutScroll:u=e.ref(!1),modelIsTableWithoutScrollComputed:c=e.computed(()=>!1)}){const d=e.toRef(_,"isActionColumnVisible"),f=e.toRef(_,"isSimpleTable"),C=e.toRef(_,"useRem"),{scalePxWithRem:R}=Ur(),I=e.ref(void 0),O=e.ref(0),p=e.ref(void 0);let N=!1;const P=20,$=H=>C.value?R(H):H,g=e.computed(()=>d.value?E.value:0),M=e.computed(()=>{const H=T.value?E.value:0,j=f.value?0:P;return H+j}),m=({sumGrows:H=0,freeSpaceWidth:j=0})=>{H>0?O.value=j/H:O.value=0},V=()=>{if(s_(i.value)||a.value.length<i.value)s.value=[];else{const H=[];for(let j=i.value;j<a.value.length;j++){const L_=a.value[j];_o({column:L_,modelColumnsVisibleLocal:S.value})&&H.push(E_(L_))}s.value=H}},B=()=>{s.value=[],O.value=0,i.value=1e3,p.value=0},v=()=>{if(A.value||p.value===0){B();return}if(B_(p.value))return;const H=p.value-M.value-g.value,j=p.value-M.value-n.value;let L_=0,p_=0,i_=0,R_=!1;if(q(a.value,I_=>{if(!_o({column:I_,modelColumnsVisibleLocal:S.value})){p_++;return}const z=+$(I_.width)||o.value;if(L_+z>H)return R_=!0,!1;L_+=z,p_++,i_+=s_(I_.grow)?1:I_.grow}),R_&&L_>j)for(let I_=p_-1;I_>=0;I_--){p_--;const z=a.value[p_];if(!_o({column:z,modelColumnsVisibleLocal:S.value}))continue;const a_=+$(z.width)||o.value;if(L_-=a_,i_-=s_(z.grow)?1:z.grow,L_<=j)break}let N_=0;const H_=R_?j:H;(c.value||p_===a.value.length)&&(N_=H_-L_),i.value=p_,m({sumGrows:i_,freeSpaceWidth:N_}),V()},J=({entries:H,forceAdjust:j})=>{const L_=H[0].contentRect;(j||p.value>L_.width+P||p.value<L_.width-P)&&(N||(N=!0,p.value=L_.width,v(),N=!1))},X=new ResizeObserver(is(H=>{B_(p.value)?J({entries:H,forceAdjust:!0}):J({entries:H})},300)),Z=H=>{H?(X.unobserve(I.value),B()):(X.observe(I.value),u.value&&v())},Q=H=>{u.value=H,t("updateModelIsTableWithoutScroll",H),u.value&&v()};return e.onMounted(()=>{A.value||X.observe(I.value)}),e.onBeforeUnmount(()=>{X.unobserve(I.value)}),e.watch(a,()=>{v()}),{aTableRef:I,changeModelIsTableWithoutScroll:Q,checkVisibleColumns:v,columnsVisibleAdditionalSpaceForOneGrow:O,onWatchMobileScrollControl:Z}}function Cv(_){const t=e.toRef(_,"hasMobile"),n=e.toRef(_,"isActionColumnVisible"),E=e.toRef(_,"isActionIconVisible"),a=e.toRef(_,"isColumnsDnd"),s=e.toRef(_,"isSimpleTable"),o=e.toRef(_,"modelIsTableWithoutScrollStart"),i=e.toRef(_,"rowActions"),A=e.ref(void 0),T=()=>{A.value=o.value},{isMobileWidth:S}=Tt(),u=e.computed(()=>s.value?i.value&&!!i.value.length&&n.value:E.value),c=e.computed(()=>!!(E.value&&!s.value)),d=e.computed(()=>!!(a.value&&!s.value)),f=e.computed(()=>t.value?!!S.value:!1),C=e.computed(()=>s.value?!1:A.value);return{initModelIsTableWithoutScroll:T,isActionColumnVisibleLocal:u,isActionIconVisibleLocal:c,isColumnsDndLocal:d,isMobile:f,modelIsTableWithoutScroll:A,modelIsTableWithoutScrollComputed:C}}function Rv(_,{viewCurrent:t=e.computed(()=>({}))}){const n=e.toRef(_,"data"),E=e.toRef(_,"isSortingOutside"),a=e.toRef(_,"modelSort"),s=e.toRef(_,"useAdditionalSorting"),o=e.ref([]),i=e.computed(()=>s.value?t.value?t.value.useAdditionalSorting||!1:!0:!1),A=()=>{re(a.value)?o.value=[a.value]:f_(a.value)&&(o.value=E_(a.value))},T=e.computed(()=>{const u={models:[],directions:[]};return o.value.length&&q(o.value,c=>{let d="asc",f=c;DA(c,"-")&&(d="desc",f=c.slice(1)),u.models.push(f),u.directions.push(d)}),u}),S=e.computed(()=>o.value.length&&!E.value?OA(n.value||[],T.value.models,T.value.directions):n.value||[]);return e.watch(a,()=>{A()}),{dataSorted:S,initModelSort:A,modelSortLocal:o,useAdditionalSortingLocal:i}}function hv(_,{emit:t},{modelSortLocal:n=e.ref([]),closePreviewAll:E=()=>{}}){const a=e.toRef(_,"id"),s=e.toRef(_,"isSortingMultiColumn"),o=e.toRef(_,"sortingMultiColumnKey"),i=e.computed(()=>`${o.value}Key`),A=c=>s.value&&c[i.value],T=({sortId:c})=>{const d=n.value.indexOf(c);if(d!==-1){n.value.splice(d,1,`-${c}`);return}const f=n.value.indexOf(`-${c}`);if(f!==-1){n.value.splice(f,1);return}n.value.push(c)},S=({sortId:c})=>{if(n.value.indexOf(c)!==-1){n.value=[`-${c}`];return}if(n.value.indexOf(`-${c}`)!==-1){n.value=[];return}n.value=[c]};return{changeModelSort:({sortId:c,$event:d,modelAll:f})=>{f?n.value=f:A(d)?T({sortId:c}):S({sortId:c}),t("changeSorting",{modelSort:E_(n.value)}),pe.$emit("changeTableSorting",{modelSort:E_(n.value),tableId:a.value}),E()}}}function Iv(_,{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 Ov(_,{countNotHiddenColumns:t=e.computed(()=>-1),isMobile:n=e.ref(!1)}){const E=e.toRef(_,"id"),a=e.toRef(_,"isLabelVisible"),s=e.computed(()=>{const A={};return n.value||(A.role="table",A["aria-colcount"]=t.value),A}),o=e.computed(()=>n.value?"list":"rowgroup"),i=e.computed(()=>{if(a.value)return $f({tableId:E.value})});return{tableChildRole:o,tableLabelId:i,tableRoleAttributes:s}}function pv(_,{emit:t},{modelColumnsVisibleLocal:n=e.ref({}),checkVisibleColumns:E=()=>{}}){return{changeModelColumnsVisible:s=>{n.value=s,t("update:modelColumnsVisible",E_(n.value)),E()}}}function Uv(_){const t=e.toRef(_,"texts");return{emptyText:e.computed(()=>B_(t.value.empty)?"_A_TABLE_EMPTY_TEXT_":t.value.empty)}}function Nv(){const _=e.ref([]),t=e.ref(void 0),n=e.ref(void 0),E=e.ref({}),a=e.ref(void 0),s=e.ref(void 0);return{columnsScrollInvisible:_,indexFirstScrollInvisibleColumn:t,isMultipleActionsActive:n,modelColumnsVisibleLocal:E,tableGrandparentRef:a,tableRef:s}}function mv(_,{emit:t},{closePreviewAll:n=()=>{}}){const E=e.toRef(_,"views"),a=e.toRef(_,"modelFilters"),s=e.toRef(_,"modelView"),o=e.computed(()=>oa(E.value,"id")),i=e.computed(()=>o.value[s.value]),A=e.computed(()=>E.value.length>1),T=()=>{if(A.value){const c=ko(E.value,["active",!0]);let d=E.value[0].id;c&&(d=c.id),t("updateView",{_modelView:d,view:o.value[d],modelFilters:a.value,init:!0})}},S=c=>{n(),t("updateView",{_modelView:c,view:o.value[c],modelFilters:a.value})},u=e.computed(()=>!i.value||i.value.type==="table");return{hasViews:A,initViewCurrent:T,isViewTableVisible:u,updateViewCurrent:S,viewCurrent:i}}function Dv(_){const t=e.toRef(_,"columnActionsWidth"),n=e.toRef(_,"columnActionsWidthDefaults"),E=e.toRef(_,"columnActionsWidthMin"),a=e.toRef(_,"columnWidthDefault"),s=e.toRef(_,"previewBoxWidth"),o=e.toRef(_,"useRem"),{scalePxWithRem:i}=Ur(),A=e.computed(()=>o.value?i(t.value):t.value),T=e.computed(()=>o.value?i(E.value):E.value),S=e.computed(()=>o.value?i(a.value):a.value),u=e.computed(()=>o.value?i(s.value):s.value);return{columnActionsWidthDefaultsRemLocal:e.computed(()=>o.value?{default:i(n.value.default||170),min:i(n.value.min||50),onePlusDropdown:i(n.value.onePlusDropdown||320),onePlusDropdownMin:i(n.value.onePlusDropdownMin||200),btnGroupMaxWidth:i(n.value.btnGroupMaxWidth||180)}:n.value),columnActionsWidthMinRemLocal:T,columnActionsWidthRemLocal:A,columnWidthDefaultRemLocal:S,previewBoxWidthRemLocal:u}}const Pv={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:()=>br.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:_=>tE(_)&&_>=0},rowsFooter:{type:Array,required:!1,default:()=>[]},showCount:{type:Boolean,required:!1,default:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1,default:!1},sortingMultiColumnKey:{type:String,required:!1,default:"shift",validator:_=>["shift","ctrl","alt"].indexOf(_)!==-1},sortingSequenceNumberClass:{type:[String,Object],required:!1,default:"a_badge"},tableActions:{type:Array,required:!1,default:()=>[]},tableActionsIndexFirstDropdownAction:{type:Number,required:!1,default:-1},tableActionsIndexFirstDropdownActionMobile:{type:Number,required:!1,default:0},texts:{type:Object,required:!1,default:()=>({empty:"_A_TABLE_EMPTY_TEXT_"})},useAdditionalSorting:{type:Boolean,required:!1,default:!0},useViewSlot:{type:Boolean,required:!1},useRem:{type:Boolean,required:!1,default:!0},valuesForColumnDefault:{type:Array,required:!1,default:()=>[null,void 0,""]},views:{type:Array,required:!1,default:()=>[]}},emits:["changeColumnsOrdering","changeColumnsVisible","changeLimit","changeOffset","changeSorting","mouseupResizePreviewRight","initTable","togglePreview","toggleMultipleActions","update:modelColumnsOrder","update:modelColumnsVisible","update:modelQuickSearch","updateModelIsTableWithoutScroll","updateView"],provide(){return{changeModelColumnsVisible:this.changeModelColumnsVisible,columnActionsOnePlusDropdownOptions:e.computed(()=>this.columnActionsOnePlusDropdownOptions),columns:e.computed(()=>this.columns),columnsDefaultValue:e.computed(()=>this.columnsDefaultValue),isLoadingOptions:e.computed(()=>this.isLoadingOptions),isLoadingTable:e.computed(()=>this.isLoadingTable),keyId:e.computed(()=>this.keyId),rowActions:e.computed(()=>this.rowActions),tableId:e.computed(()=>this.id),valuesForColumnDefault:e.computed(()=>this.valuesForColumnDefault),useRem:e.computed(()=>this.useRem)}},setup(_,t){const{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,columnWidthDefaultRemLocal:s,previewBoxWidthRemLocal:o}=Dv(_),{initModelIsTableWithoutScroll:i,isActionColumnVisibleLocal:A,isActionIconVisibleLocal:T,isColumnsDndLocal:S,isMobile:u,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:d}=Cv(_),{countAllRowsLocal:f,totalRowsCount:C}=lv(_),{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:I,isMultipleActionsActive:O,modelColumnsVisibleLocal:p,tableGrandparentRef:N,tableRef:P}=Nv(),{scrollToTable:$,setFocusToTable:g}=iv({tableRef:P}),{hasViews:M,initViewCurrent:m,isViewTableVisible:V,updateViewCurrent:B,viewCurrent:v}=mv(_,t,{closePreviewAll:Xn}),{dataSorted:J,initModelSort:X,modelSortLocal:Z,useAdditionalSortingLocal:Q}=Rv(_,{viewCurrent:v}),{columnsOrderedFromSimpleTable:H,renderedGroupedColumns:j}=sv(_,{modelSort:Z}),{columnIdsGroupByLocked:L_,columnsFilteredForRender:p_,columnsFilteredForRenderIndexesMapping:i_,columnsOrdered:R_,countNotHiddenColumns:N_}=rv(_,{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:I,modelColumnsVisibleLocal:p,modelIsTableWithoutScrollComputed:d,columnsOrderedFromSimpleTable:H}),{changeLimit:H_,changeOffset:I_,initLocalVars:z,limit:a_,offset:m_,usePaginationBottom:k,usePaginationLocal:A_,usePaginationTop:u_}=Tv(_,t,{closePreviewAll:Xn,scrollToTable:$,setFocusToTable:g,viewCurrent:v}),{addRow:P_,deleteRow:$_,hasRows:O_,rowsLocal:y_,rowsLocalAll:k_,rowsLocalLength:w_,stopRenderRows:Z_,updateRow:ue}=dv(_,{dataSorted:J,limit:a_,offset:m_,setEmptySelectedRowsIndexes:Gr,usePaginationLocal:A_}),{columnActionsBtnGroupMaxWidthStyle:Q_,columnActionsWidthLocal:X_,columnActionsWidthMinLocal:ae,isColumnActionWide:Ne}=av(_,{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,isMobile:u,rowsLocal:y_}),{aTableRef:Pe,changeModelIsTableWithoutScroll:Ye,checkVisibleColumns:be,columnsVisibleAdditionalSpaceForOneGrow:ge,onWatchMobileScrollControl:Re}=fv(_,t,{columnActionsWidthLocal:X_,columnActionsWidthMinLocal:ae,columnsOrdered:R_,columnsScrollInvisible:R,columnWidthDefaultRemLocal:s,indexFirstScrollInvisibleColumn:I,isMobile:u,isMultipleActionsActive:O,modelColumnsVisibleLocal:p,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:d}),{changeColumnsOrdering:ye,checkColumnsOrdering:Xe}=ov(_,t,{checkVisibleColumns:be,columnIdsGroupByLocked:L_,columnsFilteredForRenderIndexesMapping:i_}),{isRowActionsStickyLocal:Ze}=Iv(_,{isMobile:u,modelIsTableWithoutScrollComputed:d}),{areAllRowsSelected:rt,areAllVisibleRowsSelected:Pt,areSomeRowsSelected:rn,closeMultipleActionsActive:st,currentMultipleActions:Yt,hasMultipleActions:pn,selectedRows:kE,selectedRowsIndexes:Ja,setEmptySelectedRowsIndexes:kn,setSelectedRowsIndexes:Un,toggleBtnAllRows:Ra,toggleMultipleActionsActive:Ht}=Lv(_,t,{checkVisibleColumns:be,isMultipleActionsActive:O,rowsLocalAll:k_,rowsLocalLength:w_}),{changeModelColumnsVisible:Za}=pv(_,t,{modelColumnsVisibleLocal:p,checkVisibleColumns:be}),{closePreview:Qa,closePreviewAll:me,hasPreview:qt,isPreviewRightOpen:_r,onTogglePreview:KE,mousedownResizePreviewRight:XE,mousemoveResizePreviewRight:Kn,mouseupResizePreviewRight:ha,previewDownRowIds:jE,previewRightRowIndex:ot,previewRightRowIndexLast:Nn,togglePreviewResize:Vr}=cv(_,t,{aTableRef:Pe,isMobile:u,previewBoxWidthRemLocal:o,rowsLocalAll:k_,tableGrandparentRef:N}),{tableChildRole:Br,tableLabelId:er,tableRoleAttributes:yr}=Ov(_,{countNotHiddenColumns:N_,isMobile:u}),{allVisibleMobileColumns:Wt}=Sv({columnsOrdered:R_,isMobile:u,modelColumnsVisibleLocal:p}),{changeModelSort:Mr}=hv(_,t,{modelSortLocal:Z,closePreviewAll:Xn}),{initTable:tr}=Av(_,t,{checkColumnsOrdering:Xe,checkVisibleColumns:be,modelColumnsVisibleLocal:p}),{emptyText:Fr}=Uv(_);function Xn(){me()}function Gr(){kn()}return e.watch(u,Y_=>{Re(Y_),Xn()}),e.watch(Ne,(Y_,G)=>{Y_!==G&&be()}),e.provide("changeModelIsTableWithoutScroll",Ye),e.provide("changeModelSort",Mr),e.provide("columnsOrdered",R_),e.provide("columnsFilteredForRender",p_),e.provide("columnsScrollInvisible",R),e.provide("columnWidthDefault",s),e.provide("columnsVisibleAdditionalSpaceForOneGrow",ge),e.provide("columnActionsWidthLocal",X_),e.provide("columnActionsWidthMinLocal",ae),e.provide("currentMultipleActions",Yt),e.provide("hasPreview",qt),e.provide("indexFirstScrollInvisibleColumn",I),e.provide("isActionColumnVisible",A),e.provide("isActionIconVisible",T),e.provide("isColumnsDnd",S),e.provide("isMobile",u),e.provide("isMultipleActionsActive",O),e.provide("modelIsTableWithoutScroll",d),e.provide("onTogglePreview",KE),e.provide("previewRightRowIndex",ot),e.provide("previewRightRowIndexLast",Nn),e.provide("rowsLocalAll",k_),e.provide("modelColumnsVisibleLocal",p),e.provide("changeColumnsOrdering",ye),z(),i(),m(),tr(),X(),{addRow:P_,allVisibleMobileColumns:Wt,areAllRowsSelected:rt,areAllVisibleRowsSelected:Pt,areSomeRowsSelected:rn,aTableRef:Pe,changeLimit:H_,changeModelColumnsVisible:Za,changeOffset:I_,checkVisibleColumns:be,closeMultipleActionsActive:st,closePreview:Qa,closePreviewAll:Xn,columnActionsBtnGroupMaxWidthStyle:Q_,columnsFilteredForRender:p_,columnsOrdered:R_,countAllRowsLocal:f,deleteRow:$_,emptyText:Fr,hasMultipleActions:pn,hasRows:O_,hasViews:M,isMobile:u,isMultipleActionsActive:O,isPreviewRightOpen:_r,isRowActionsStickyLocal:Ze,isViewTableVisible:V,limit:a_,modelColumnsVisibleLocal:p,modelIsTableWithoutScrollComputed:d,modelSortLocal:Z,mousedownResizePreviewRight:XE,mousemoveResizePreviewRight:Kn,mouseupResizePreviewRight:ha,offset:m_,onTogglePreview:KE,previewDownRowIds:jE,previewRightRowIndex:ot,renderedGroupedColumns:j,rowsLocal:y_,rowsLocalAll:k_,rowsLocalLength:w_,selectedRows:kE,selectedRowsIndexes:Ja,setEmptySelectedRowsIndexes:Gr,setSelectedRowsIndexes:Un,stopRenderRows:Z_,tableChildRole:Br,tableGrandparentRef:N,tableLabelId:er,tableRef:P,tableRoleAttributes:yr,toggleBtnAllRows:Ra,toggleMultipleActionsActive:Ht,togglePreviewResize:Vr,totalRowsCount:C,updateRow:ue,updateViewCurrent:B,useAdditionalSortingLocal:Q,usePaginationBottom:k,usePaginationLocal:A_,usePaginationTop:u_,viewCurrent:v}},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(q0,{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(yT,{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(d0,{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(p0,{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(bT,{isLoading:this.isLoadingTable},()=>[e.h("div",{class:"a_table__body",role:this.tableChildRole},{default:()=>this.rowsLocal.map((_,t)=>{const n=Ml({row:_,rowIndex:t,keyId:this.keyId});return e.h(Kf,{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(Vl,{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(d_,{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=Ml({row:_,rowIndex:t,keyId:this.keyId});return e.h(Kf,{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(Vl,{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(yT,{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(b0,{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 Xf(_){const t=e.toRef(_,"activeTabIdLocal"),n=e.toRef(_,"index"),E=e.toRef(_,"keyId"),a=e.toRef(_,"parentId"),s=e.toRef(_,"tab"),o=e.computed(()=>E.value?l_(s.value,E.value):n.value),i=e.computed(()=>t.value===o.value),A=e.computed(()=>`${a.value}_${n.value}`);return{idForContent:e.computed(()=>`${A.value}_content`),idLocal:A,isActive:i,tabIdLocal:o}}function Yv(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyContent");return{contentLocal:e.computed(()=>{if(n.value)return l_(t.value,n.value)})}}const bv={name:"ATabsContent",props:{activeTabIdLocal:{type:[String,Number],required:!0},index:{type:Number,required:!0},keyContent:{type:String,required:!1,default:"content"},keyId:{type:String,required:!1,default:void 0},parentId:{type:String,required:!0},tab:{type:Object,required:!0}},setup(_){const{idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}=Xf(_),{contentLocal:s}=Yv(_);return{contentLocal:s,idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}},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(d_,{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 gv({isDisabled:_=e.computed(()=>!1)}){return{tabindexLocal:e.computed(()=>_.value?-1:0)}}function $v(_,{emit:t},{isDisabled:n=e.computed(()=>!1),tabIdLocal:E=e.computed(()=>"")}){const a=e.toRef(_,"index"),s=e.toRef(_,"tab"),o=A=>{n.value||t("changeTab",{$event:A,tab:s.value,tabId:E.value,index:a.value})};return{changeTabLocal:o,keydownTab:A=>{(A.keyCode===e_.enter||A.keyCode===e_.space)&&(o(A),A.stopPropagation(),A.preventDefault())}}}function Vv(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"keyDisabled"),E=e.toRef(_,"tab");return{isDisabled:e.computed(()=>{if(t.value||n.value&&l_(E.value,n.value)===!0)return!0})}}function Bv(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyLabel");return{labelLocal:e.computed(()=>{if(n.value)return l_(t.value,n.value)})}}function yv(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyTitle");return{titleLocal:e.computed(()=>{if(n.value)return l_(t.value,n.value)})}}const Mv={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:_=>It.indexOf(_)!==-1}},emits:["changeTab"],setup(_,t){const{idForContent:n,idLocal:E,isActive:a,tabIdLocal:s}=Xf(_),{isDisabled:o}=Vv(_),{tabindexLocal:i}=gv({isDisabled:o}),{changeTabLocal:A,keydownTab:T}=$v(_,t,{isDisabled:o,tabIdLocal:s}),{labelLocal:S}=Bv(_),{titleLocal:u}=yv(_);return{changeTabLocal:A,idForContent:n,idLocal:E,isActive:a,isDisabled:o,keydownTab:T,labelLocal:S,tabindexLocal:i,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(d_,{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 Fv(_,{emit:t}){const n=e.toRef(_,"activeTabId"),E=e.toRef(_,"data"),a=e.toRef(_,"isChangeOutside"),s=e.toRef(_,"keyActive"),o=e.toRef(_,"keyId"),i=e.ref(void 0),A=()=>{s_(n.value)||(i.value=n.value)};return{activeTabIdLocal:i,changeTab:({$event:u,tab:c,tabId:d,index:f})=>{i.value!==d&&(a.value||(i.value=d),t("change",{$event:u,tab:c,tabId:d,index:f}))},initActiveTabIdLocal:()=>{A(),s_(i.value)&&(s.value&&(q(E.value,(u,c)=>{if(l_(u,s.value))return o.value?i.value=l_(u,o.value)||c:i.value=c,!1}),!s_(i.value))||(o.value?i.value=l_(E.value,`[0].${o.value}`)||0:i.value=0))},setActiveTabIdLocal:A}}const Gv={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:_=>It.indexOf(_)!==-1}},emits:["change"],setup(_,t){const n=e.toRef(_,"activeTabId"),{activeTabIdLocal:E,changeTab:a,initActiveTabIdLocal:s,setActiveTabIdLocal:o}=Fv(_,t);return s(),e.watch(n,()=>{o()}),{activeTabIdLocal:E,changeTab:a}},render(){return e.h("div",{id:this.id,class:["a_tabs",{a_tabs_boxed:this.isBoxed,a_tabs_vertical:this.isVertical}]},[e.h("div",{class:"a_tabs__box"},[e.h("ul",{class:"a_tabs__list",role:"tablist"},[this.data.map((_,t)=>e.h(Mv,{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(bv,{key:t,activeTabIdLocal:this.activeTabIdLocal,index:t,keyContent:this.keyContent,keyId:this.keyId,parentId:this.id,tab:_},this.$slots))])])}};function jf(_,t){return function(){return _.apply(t,arguments)}}const{toString:vv}=Object.prototype,{getPrototypeOf:vT}=Object,Fl=(_=>t=>{const n=vv.call(t);return _[n]||(_[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),In=_=>(_=_.toLowerCase(),t=>Fl(t)===_),Gl=_=>t=>typeof t===_,{isArray:gr}=Array,eo=Gl("undefined");function wv(_){return _!==null&&!eo(_)&&_.constructor!==null&&!eo(_.constructor)&&xt(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const zf=In("ArrayBuffer");function xv(_){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(_):t=_&&_.buffer&&zf(_.buffer),t}const Hv=Gl("string"),xt=Gl("function"),Jf=Gl("number"),vl=_=>_!==null&&typeof _=="object",qv=_=>_===!0||_===!1,wl=_=>{if(Fl(_)!=="object")return!1;const t=vT(_);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in _)&&!(Symbol.iterator in _)},Wv=In("Date"),kv=In("File"),Kv=In("Blob"),Xv=In("FileList"),jv=_=>vl(_)&&xt(_.pipe),zv=_=>{let t;return _&&(typeof FormData=="function"&&_ instanceof FormData||xt(_.append)&&((t=Fl(_))==="formdata"||t==="object"&&xt(_.toString)&&_.toString()==="[object FormData]"))},Jv=In("URLSearchParams"),[Zv,Qv,_1,e1]=["ReadableStream","Request","Response","Headers"].map(In),t1=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function to(_,t,{allOwnKeys:n=!1}={}){if(_===null||typeof _>"u")return;let E,a;if(typeof _!="object"&&(_=[_]),gr(_))for(E=0,a=_.length;E<a;E++)t.call(null,_[E],E,_);else{const s=n?Object.getOwnPropertyNames(_):Object.keys(_),o=s.length;let i;for(E=0;E<o;E++)i=s[E],t.call(null,_[i],i,_)}}function Zf(_,t){t=t.toLowerCase();const n=Object.keys(_);let E=n.length,a;for(;E-- >0;)if(a=n[E],t===a.toLowerCase())return a;return null}const Ka=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qf=_=>!eo(_)&&_!==Ka;function wT(){const{caseless:_}=Qf(this)&&this||{},t={},n=(E,a)=>{const s=_&&Zf(t,a)||a;wl(t[s])&&wl(E)?t[s]=wT(t[s],E):wl(E)?t[s]=wT({},E):gr(E)?t[s]=E.slice():t[s]=E};for(let E=0,a=arguments.length;E<a;E++)arguments[E]&&to(arguments[E],n);return t}const n1=(_,t,n,{allOwnKeys:E}={})=>(to(t,(a,s)=>{n&&xt(a)?_[s]=jf(a,n):_[s]=a},{allOwnKeys:E}),_),E1=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),a1=(_,t,n,E)=>{_.prototype=Object.create(t.prototype,E),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:t.prototype}),n&&Object.assign(_.prototype,n)},r1=(_,t,n,E)=>{let a,s,o;const i={};if(t=t||{},_==null)return t;do{for(a=Object.getOwnPropertyNames(_),s=a.length;s-- >0;)o=a[s],(!E||E(o,_,t))&&!i[o]&&(t[o]=_[o],i[o]=!0);_=n!==!1&&vT(_)}while(_&&(!n||n(_,t))&&_!==Object.prototype);return t},s1=(_,t,n)=>{_=String(_),(n===void 0||n>_.length)&&(n=_.length),n-=t.length;const E=_.indexOf(t,n);return E!==-1&&E===n},o1=_=>{if(!_)return null;if(gr(_))return _;let t=_.length;if(!Jf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=_[t];return n},l1=(_=>t=>_&&t instanceof _)(typeof Uint8Array<"u"&&vT(Uint8Array)),i1=(_,t)=>{const E=(_&&_[Symbol.iterator]).call(_);let a;for(;(a=E.next())&&!a.done;){const s=a.value;t.call(_,s[0],s[1])}},A1=(_,t)=>{let n;const E=[];for(;(n=_.exec(t))!==null;)E.push(n);return E},T1=In("HTMLFormElement"),S1=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,E,a){return E.toUpperCase()+a}),_C=(({hasOwnProperty:_})=>(t,n)=>_.call(t,n))(Object.prototype),L1=In("RegExp"),eC=(_,t)=>{const n=Object.getOwnPropertyDescriptors(_),E={};to(n,(a,s)=>{let o;(o=t(a,s,_))!==!1&&(E[s]=o||a)}),Object.defineProperties(_,E)},u1=_=>{eC(_,(t,n)=>{if(xt(_)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const E=_[n];if(xt(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+"'")})}})},c1=(_,t)=>{const n={},E=a=>{a.forEach(s=>{n[s]=!0})};return gr(_)?E(_):E(String(_).split(t)),n},d1=()=>{},f1=(_,t)=>_!=null&&Number.isFinite(_=+_)?_:t,xT="abcdefghijklmnopqrstuvwxyz",tC="0123456789",nC={DIGIT:tC,ALPHA:xT,ALPHA_DIGIT:xT+xT.toUpperCase()+tC},C1=(_=16,t=nC.ALPHA_DIGIT)=>{let n="";const{length:E}=t;for(;_--;)n+=t[Math.random()*E|0];return n};function R1(_){return!!(_&&xt(_.append)&&_[Symbol.toStringTag]==="FormData"&&_[Symbol.iterator])}const h1=_=>{const t=new Array(10),n=(E,a)=>{if(vl(E)){if(t.indexOf(E)>=0)return;if(!("toJSON"in E)){t[a]=E;const s=gr(E)?[]:{};return to(E,(o,i)=>{const A=n(o,a+1);!eo(A)&&(s[i]=A)}),t[a]=void 0,s}}return E};return n(_,0)},I1=In("AsyncFunction"),O1=_=>_&&(vl(_)||xt(_))&&xt(_.then)&&xt(_.catch),EC=((_,t)=>_?setImmediate:t?((n,E)=>(Ka.addEventListener("message",({source:a,data:s})=>{a===Ka&&s===n&&E.length&&E.shift()()},!1),a=>{E.push(a),Ka.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xt(Ka.postMessage)),p1=typeof queueMicrotask<"u"?queueMicrotask.bind(Ka):typeof process<"u"&&process.nextTick||EC,K={isArray:gr,isArrayBuffer:zf,isBuffer:wv,isFormData:zv,isArrayBufferView:xv,isString:Hv,isNumber:Jf,isBoolean:qv,isObject:vl,isPlainObject:wl,isReadableStream:Zv,isRequest:Qv,isResponse:_1,isHeaders:e1,isUndefined:eo,isDate:Wv,isFile:kv,isBlob:Kv,isRegExp:L1,isFunction:xt,isStream:jv,isURLSearchParams:Jv,isTypedArray:l1,isFileList:Xv,forEach:to,merge:wT,extend:n1,trim:t1,stripBOM:E1,inherits:a1,toFlatObject:r1,kindOf:Fl,kindOfTest:In,endsWith:s1,toArray:o1,forEachEntry:i1,matchAll:A1,isHTMLForm:T1,hasOwnProperty:_C,hasOwnProp:_C,reduceDescriptors:eC,freezeMethods:u1,toObjectSet:c1,toCamelCase:S1,noop:d1,toFiniteNumber:f1,findKey:Zf,global:Ka,isContextDefined:Qf,ALPHABET:nC,generateString:C1,isSpecCompliantForm:R1,toJSONObject:h1,isAsyncFn:I1,isThenable:O1,setImmediate:EC,asap:p1};function W_(_,t,n,E,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),E&&(this.request=E),a&&(this.response=a,this.status=a.status?a.status:null)}K.inherits(W_,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 aC=W_.prototype,rC={};["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(_=>{rC[_]={value:_}}),Object.defineProperties(W_,rC),Object.defineProperty(aC,"isAxiosError",{value:!0}),W_.from=(_,t,n,E,a,s)=>{const o=Object.create(aC);return K.toFlatObject(_,o,function(A){return A!==Error.prototype},i=>i!=="isAxiosError"),W_.call(o,_.message,t,n,E,a),o.cause=_,o.name=_.name,s&&Object.assign(o,s),o};const U1=null;function HT(_){return K.isPlainObject(_)||K.isArray(_)}function sC(_){return K.endsWith(_,"[]")?_.slice(0,-2):_}function oC(_,t,n){return _?_.concat(t).map(function(a,s){return a=sC(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function N1(_){return K.isArray(_)&&!_.some(HT)}const m1=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function xl(_,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,R){return!K.isUndefined(R[C])});const E=n.metaTokens,a=n.visitor||S,s=n.dots,o=n.indexes,A=(n.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(a))throw new TypeError("visitor must be a function");function T(f){if(f===null)return"";if(K.isDate(f))return f.toISOString();if(!A&&K.isBlob(f))throw new W_("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(f)||K.isTypedArray(f)?A&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function S(f,C,R){let I=f;if(f&&!R&&typeof f=="object"){if(K.endsWith(C,"{}"))C=E?C:C.slice(0,-2),f=JSON.stringify(f);else if(K.isArray(f)&&N1(f)||(K.isFileList(f)||K.endsWith(C,"[]"))&&(I=K.toArray(f)))return C=sC(C),I.forEach(function(p,N){!(K.isUndefined(p)||p===null)&&t.append(o===!0?oC([C],N,s):o===null?C:C+"[]",T(p))}),!1}return HT(f)?!0:(t.append(oC(R,C,s),T(f)),!1)}const u=[],c=Object.assign(m1,{defaultVisitor:S,convertValue:T,isVisitable:HT});function d(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(I,O){(!(K.isUndefined(I)||I===null)&&a.call(t,I,K.isString(O)?O.trim():O,C,c))===!0&&d(I,C?C.concat(O):[O])}),u.pop()}}if(!K.isObject(_))throw new TypeError("data must be an object");return d(_),t}function lC(_){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(E){return t[E]})}function qT(_,t){this._pairs=[],_&&xl(_,this,t)}const iC=qT.prototype;iC.append=function(t,n){this._pairs.push([t,n])},iC.toString=function(t){const n=t?function(E){return t.call(this,E,lC)}:lC;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function D1(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AC(_,t,n){if(!t)return _;const E=n&&n.encode||D1;K.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=K.isURLSearchParams(t)?t.toString():new qT(t,n).toString(E),s){const o=_.indexOf("#");o!==-1&&(_=_.slice(0,o)),_+=(_.indexOf("?")===-1?"?":"&")+s}return _}class TC{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 SC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:qT,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},WT=typeof window<"u"&&typeof document<"u",kT=typeof navigator=="object"&&navigator||void 0,Y1=WT&&(!kT||["ReactNative","NativeScript","NS"].indexOf(kT.product)<0),b1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g1=WT&&window.location.href||"http://localhost",St={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:WT,hasStandardBrowserEnv:Y1,hasStandardBrowserWebWorkerEnv:b1,navigator:kT,origin:g1},Symbol.toStringTag,{value:"Module"})),...P1};function $1(_,t){return xl(_,new St.classes.URLSearchParams,Object.assign({visitor:function(n,E,a,s){return St.isNode&&K.isBuffer(n)?(this.append(E,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function V1(_){return K.matchAll(/\w+|\[(\w*)]/g,_).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B1(_){const t={},n=Object.keys(_);let E;const a=n.length;let s;for(E=0;E<a;E++)s=n[E],t[s]=_[s];return t}function LC(_){function t(n,E,a,s){let o=n[s++];if(o==="__proto__")return!0;const i=Number.isFinite(+o),A=s>=n.length;return o=!o&&K.isArray(a)?a.length:o,A?(K.hasOwnProp(a,o)?a[o]=[a[o],E]:a[o]=E,!i):((!a[o]||!K.isObject(a[o]))&&(a[o]=[]),t(n,E,a[o],s)&&K.isArray(a[o])&&(a[o]=B1(a[o])),!i)}if(K.isFormData(_)&&K.isFunction(_.entries)){const n={};return K.forEachEntry(_,(E,a)=>{t(V1(E),a,n,0)}),n}return null}function y1(_,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 no={transitional:SC,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const E=n.getContentType()||"",a=E.indexOf("application/json")>-1,s=K.isObject(t);if(s&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return a?JSON.stringify(LC(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 i;if(s){if(E.indexOf("application/x-www-form-urlencoded")>-1)return $1(t,this.formSerializer).toString();if((i=K.isFileList(t))||E.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return xl(i?{"files[]":t}:t,A&&new A,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),y1(t)):t}],transformResponse:[function(t){const n=this.transitional||no.transitional,E=n&&n.forcedJSONParsing,a=this.responseType==="json";if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(E&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?W_.from(i,W_.ERR_BAD_RESPONSE,this,null,this.response):i}}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"],_=>{no.headers[_]={}});const M1=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"]),F1=_=>{const t={};let n,E,a;return _&&_.split(`
205
205
  `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),E=o.substring(a+1).trim(),!(!n||t[n]&&M1[n])&&(n==="set-cookie"?t[n]?t[n].push(E):t[n]=[E]:t[n]=t[n]?t[n]+", "+E:E)}),t},uC=Symbol("internals");function Eo(_){return _&&String(_).trim().toLowerCase()}function Hl(_){return _===!1||_==null?_:K.isArray(_)?_.map(Hl):String(_)}function G1(_){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let E;for(;E=n.exec(_);)t[E[1]]=E[2];return t}const v1=_=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_.trim());function KT(_,t,n,E,a){if(K.isFunction(E))return E.call(this,t,n);if(a&&(t=n),!!K.isString(t)){if(K.isString(E))return t.indexOf(E)!==-1;if(K.isRegExp(E))return E.test(t)}}function w1(_){return _.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,E)=>n.toUpperCase()+E)}function x1(_,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach(E=>{Object.defineProperty(_,E+n,{value:function(a,s,o){return this[E].call(this,t,a,s,o)},configurable:!0})})}let Dt=class{constructor(t){t&&this.set(t)}set(t,n,E){const a=this;function s(i,A,T){const S=Eo(A);if(!S)throw new Error("header name must be a non-empty string");const u=K.findKey(a,S);(!u||a[u]===void 0||T===!0||T===void 0&&a[u]!==!1)&&(a[u||A]=Hl(i))}const o=(i,A)=>K.forEach(i,(T,S)=>s(T,S,A));if(K.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(K.isString(t)&&(t=t.trim())&&!v1(t))o(F1(t),n);else if(K.isHeaders(t))for(const[i,A]of t.entries())s(A,i,E);else t!=null&&s(n,t,E);return this}get(t,n){if(t=Eo(t),t){const E=K.findKey(this,t);if(E){const a=this[E];if(!n)return a;if(n===!0)return G1(a);if(K.isFunction(n))return n.call(this,a,E);if(K.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Eo(t),t){const E=K.findKey(this,t);return!!(E&&this[E]!==void 0&&(!n||KT(this,this[E],E,n)))}return!1}delete(t,n){const E=this;let a=!1;function s(o){if(o=Eo(o),o){const i=K.findKey(E,o);i&&(!n||KT(E,E[i],i,n))&&(delete E[i],a=!0)}}return K.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let E=n.length,a=!1;for(;E--;){const s=n[E];(!t||KT(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,E={};return K.forEach(this,(a,s)=>{const o=K.findKey(E,s);if(o){n[o]=Hl(a),delete n[s];return}const i=t?w1(s):String(s).trim();i!==s&&delete n[s],n[i]=Hl(a),E[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return K.forEach(this,(E,a)=>{E!=null&&E!==!1&&(n[a]=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(a=>E.set(a)),E}static accessor(t){const E=(this[uC]=this[uC]={accessors:{}}).accessors,a=this.prototype;function s(o){const i=Eo(o);E[i]||(x1(a,o),E[i]=!0)}return K.isArray(t)?t.forEach(s):s(t),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(Dt.prototype,({value:_},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>_,set(E){this[n]=E}}}),K.freezeMethods(Dt);function XT(_,t){const n=this||no,E=t||n,a=Dt.from(E.headers);let s=E.data;return K.forEach(_,function(i){s=i.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function cC(_){return!!(_&&_.__CANCEL__)}function $r(_,t,n){W_.call(this,_??"canceled",W_.ERR_CANCELED,t,n),this.name="CanceledError"}K.inherits($r,W_,{__CANCEL__:!0});function dC(_,t,n){const E=n.config.validateStatus;!n.status||!E||E(n.status)?_(n):t(new W_("Request failed with status code "+n.status,[W_.ERR_BAD_REQUEST,W_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function H1(_){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_);return t&&t[1]||""}function q1(_,t){_=_||10;const n=new Array(_),E=new Array(_);let a=0,s=0,o;return t=t!==void 0?t:1e3,function(A){const T=Date.now(),S=E[s];o||(o=T),n[a]=A,E[a]=T;let u=s,c=0;for(;u!==a;)c+=n[u++],u=u%_;if(a=(a+1)%_,a===s&&(s=(s+1)%_),T-o<t)return;const d=S&&T-S;return d?Math.round(c*1e3/d):void 0}}function W1(_,t){let n=0,E=1e3/t,a,s;const o=(T,S=Date.now())=>{n=S,a=null,s&&(clearTimeout(s),s=null),_.apply(null,T)};return[(...T)=>{const S=Date.now(),u=S-n;u>=E?o(T,S):(a=T,s||(s=setTimeout(()=>{s=null,o(a)},E-u)))},()=>a&&o(a)]}const ql=(_,t,n=3)=>{let E=0;const a=q1(50,250);return W1(s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,A=o-E,T=a(A),S=o<=i;E=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:A,rate:T||void 0,estimated:T&&i&&S?(i-o)/T:void 0,event:s,lengthComputable:i!=null,[t?"download":"upload"]:!0};_(u)},n)},fC=(_,t)=>{const n=_!=null;return[E=>t[0]({lengthComputable:n,total:_,loaded:E}),t[1]]},CC=_=>(...t)=>K.asap(()=>_(...t)),k1=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,K1=St.hasStandardBrowserEnv?{write(_,t,n,E,a,s){const o=[_+"="+encodeURIComponent(t)];K.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),K.isString(E)&&o.push("path="+E),K.isString(a)&&o.push("domain="+a),s===!0&&o.push("secure"),document.cookie=o.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 X1(_){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_)}function j1(_,t){return t?_.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):_}function RC(_,t){return _&&!X1(t)?j1(_,t):t}const hC=_=>_ instanceof Dt?{..._}:_;function Xa(_,t){t=t||{};const n={};function E(T,S,u,c){return K.isPlainObject(T)&&K.isPlainObject(S)?K.merge.call({caseless:c},T,S):K.isPlainObject(S)?K.merge({},S):K.isArray(S)?S.slice():S}function a(T,S,u,c){if(K.isUndefined(S)){if(!K.isUndefined(T))return E(void 0,T,u,c)}else return E(T,S,u,c)}function s(T,S){if(!K.isUndefined(S))return E(void 0,S)}function o(T,S){if(K.isUndefined(S)){if(!K.isUndefined(T))return E(void 0,T)}else return E(void 0,S)}function i(T,S,u){if(u in t)return E(T,S);if(u in _)return E(void 0,T)}const A={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:i,headers:(T,S,u)=>a(hC(T),hC(S),u,!0)};return K.forEach(Object.keys(Object.assign({},_,t)),function(S){const u=A[S]||a,c=u(_[S],t[S],S);K.isUndefined(c)&&u!==i||(n[S]=c)}),n}const IC=_=>{const t=Xa({},_);let{data:n,withXSRFToken:E,xsrfHeaderName:a,xsrfCookieName:s,headers:o,auth:i}=t;t.headers=o=Dt.from(o),t.url=AC(RC(t.baseURL,t.url),_.params,_.paramsSerializer),i&&o.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let A;if(K.isFormData(n)){if(St.hasStandardBrowserEnv||St.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((A=o.getContentType())!==!1){const[T,...S]=A?A.split(";").map(u=>u.trim()).filter(Boolean):[];o.setContentType([T||"multipart/form-data",...S].join("; "))}}if(St.hasStandardBrowserEnv&&(E&&K.isFunction(E)&&(E=E(t)),E||E!==!1&&k1(t.url))){const T=a&&s&&K1.read(s);T&&o.set(a,T)}return t},z1=typeof XMLHttpRequest<"u"&&function(_){return new Promise(function(n,E){const a=IC(_);let s=a.data;const o=Dt.from(a.headers).normalize();let{responseType:i,onUploadProgress:A,onDownloadProgress:T}=a,S,u,c,d,f;function C(){d&&d(),f&&f(),a.cancelToken&&a.cancelToken.unsubscribe(S),a.signal&&a.signal.removeEventListener("abort",S)}let R=new XMLHttpRequest;R.open(a.method.toUpperCase(),a.url,!0),R.timeout=a.timeout;function I(){if(!R)return;const p=Dt.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),P={data:!i||i==="text"||i==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:p,config:_,request:R};dC(function(g){n(g),C()},function(g){E(g),C()},P),R=null}"onloadend"in R?R.onloadend=I:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(I)},R.onabort=function(){R&&(E(new W_("Request aborted",W_.ECONNABORTED,_,R)),R=null)},R.onerror=function(){E(new W_("Network Error",W_.ERR_NETWORK,_,R)),R=null},R.ontimeout=function(){let N=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const P=a.transitional||SC;a.timeoutErrorMessage&&(N=a.timeoutErrorMessage),E(new W_(N,P.clarifyTimeoutError?W_.ETIMEDOUT:W_.ECONNABORTED,_,R)),R=null},s===void 0&&o.setContentType(null),"setRequestHeader"in R&&K.forEach(o.toJSON(),function(N,P){R.setRequestHeader(P,N)}),K.isUndefined(a.withCredentials)||(R.withCredentials=!!a.withCredentials),i&&i!=="json"&&(R.responseType=a.responseType),T&&([c,f]=ql(T,!0),R.addEventListener("progress",c)),A&&R.upload&&([u,d]=ql(A),R.upload.addEventListener("progress",u),R.upload.addEventListener("loadend",d)),(a.cancelToken||a.signal)&&(S=p=>{R&&(E(!p||p.type?new $r(null,_,R):p),R.abort(),R=null)},a.cancelToken&&a.cancelToken.subscribe(S),a.signal&&(a.signal.aborted?S():a.signal.addEventListener("abort",S)));const O=H1(a.url);if(O&&St.protocols.indexOf(O)===-1){E(new W_("Unsupported protocol "+O+":",W_.ERR_BAD_REQUEST,_));return}R.send(s||null)})},J1=(_,t)=>{const{length:n}=_=_?_.filter(Boolean):[];if(t||n){let E=new AbortController,a;const s=function(T){if(!a){a=!0,i();const S=T instanceof Error?T:this.reason;E.abort(S instanceof W_?S:new $r(S instanceof Error?S.message:S))}};let o=t&&setTimeout(()=>{o=null,s(new W_(`timeout ${t} of ms exceeded`,W_.ETIMEDOUT))},t);const i=()=>{_&&(o&&clearTimeout(o),o=null,_.forEach(T=>{T.unsubscribe?T.unsubscribe(s):T.removeEventListener("abort",s)}),_=null)};_.forEach(T=>T.addEventListener("abort",s));const{signal:A}=E;return A.unsubscribe=()=>K.asap(i),A}},Z1=function*(_,t){let n=_.byteLength;if(n<t){yield _;return}let E=0,a;for(;E<n;)a=E+t,yield _.slice(E,a),E=a},Q1=async function*(_,t){for await(const n of _w(_))yield*Z1(n,t)},_w=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()}},OC=(_,t,n,E)=>{const a=Q1(_,t);let s=0,o,i=A=>{o||(o=!0,E&&E(A))};return new ReadableStream({async pull(A){try{const{done:T,value:S}=await a.next();if(T){i(),A.close();return}let u=S.byteLength;if(n){let c=s+=u;n(c)}A.enqueue(new Uint8Array(S))}catch(T){throw i(T),T}},cancel(A){return i(A),a.return()}},{highWaterMark:2})},Wl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pC=Wl&&typeof ReadableStream=="function",ew=Wl&&(typeof TextEncoder=="function"?(_=>t=>_.encode(t))(new TextEncoder):async _=>new Uint8Array(await new Response(_).arrayBuffer())),UC=(_,...t)=>{try{return!!_(...t)}catch{return!1}},tw=pC&&UC(()=>{let _=!1;const t=new Request(St.origin,{body:new ReadableStream,method:"POST",get duplex(){return _=!0,"half"}}).headers.has("Content-Type");return _&&!t}),NC=64*1024,jT=pC&&UC(()=>K.isReadableStream(new Response("").body)),kl={stream:jT&&(_=>_.body)};Wl&&(_=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!kl[t]&&(kl[t]=K.isFunction(_[t])?n=>n[t]():(n,E)=>{throw new W_(`Response type '${t}' is not supported`,W_.ERR_NOT_SUPPORT,E)})})})(new Response);const nw=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 ew(_)).byteLength},Ew=async(_,t)=>{const n=K.toFiniteNumber(_.getContentLength());return n??nw(t)},zT={http:U1,xhr:z1,fetch:Wl&&(async _=>{let{url:t,method:n,data:E,signal:a,cancelToken:s,timeout:o,onDownloadProgress:i,onUploadProgress:A,responseType:T,headers:S,withCredentials:u="same-origin",fetchOptions:c}=IC(_);T=T?(T+"").toLowerCase():"text";let d=J1([a,s&&s.toAbortSignal()],o),f;const C=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let R;try{if(A&&tw&&n!=="get"&&n!=="head"&&(R=await Ew(S,E))!==0){let P=new Request(t,{method:"POST",body:E,duplex:"half"}),$;if(K.isFormData(E)&&($=P.headers.get("content-type"))&&S.setContentType($),P.body){const[g,M]=fC(R,ql(CC(A)));E=OC(P.body,NC,g,M)}}K.isString(u)||(u=u?"include":"omit");const I="credentials"in Request.prototype;f=new Request(t,{...c,signal:d,method:n.toUpperCase(),headers:S.normalize().toJSON(),body:E,duplex:"half",credentials:I?u:void 0});let O=await fetch(f);const p=jT&&(T==="stream"||T==="response");if(jT&&(i||p&&C)){const P={};["status","statusText","headers"].forEach(m=>{P[m]=O[m]});const $=K.toFiniteNumber(O.headers.get("content-length")),[g,M]=i&&fC($,ql(CC(i),!0))||[];O=new Response(OC(O.body,NC,g,()=>{M&&M(),C&&C()}),P)}T=T||"text";let N=await kl[K.findKey(kl,T)||"text"](O,_);return!p&&C&&C(),await new Promise((P,$)=>{dC(P,$,{data:N,headers:Dt.from(O.headers),status:O.status,statusText:O.statusText,config:_,request:f})})}catch(I){throw C&&C(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new W_("Network Error",W_.ERR_NETWORK,_,f),{cause:I.cause||I}):W_.from(I,I&&I.code,_,f)}})};K.forEach(zT,(_,t)=>{if(_){try{Object.defineProperty(_,"name",{value:t})}catch{}Object.defineProperty(_,"adapterName",{value:t})}});const mC=_=>`- ${_}`,aw=_=>K.isFunction(_)||_===null||_===!1,DC={getAdapter:_=>{_=K.isArray(_)?_:[_];const{length:t}=_;let n,E;const a={};for(let s=0;s<t;s++){n=_[s];let o;if(E=n,!aw(n)&&(E=zT[(o=String(n)).toLowerCase()],E===void 0))throw new W_(`Unknown adapter '${o}'`);if(E)break;a[o||"#"+s]=E}if(!E){const s=Object.entries(a).map(([i,A])=>`adapter ${i} `+(A===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
207
207
  `+s.map(mC).join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
- "version": "2.41.2",
3
+ "version": "2.41.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",
@@ -9,7 +9,7 @@ import AMobileAPI from "../../compositionAPI/AMobileAPI";
9
9
  export default function SimpleTableAPI(props) {
10
10
  const hasMobile = toRef(props, "hasMobile");
11
11
  const isActionColumnVisible = toRef(props, "isActionColumnVisible");
12
- const isActionIconVisible = toRef(props, "isActionColumnVisible");
12
+ const isActionIconVisible = toRef(props, "isActionIconVisible");
13
13
  const isColumnsDnd = toRef(props, "isColumnsDnd");
14
14
  const isSimpleTable = toRef(props, "isSimpleTable");
15
15
  const modelIsTableWithoutScrollStart = toRef(props, "modelIsTableWithoutScrollStart");