aloha-vue 2.72.0 → 2.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/aloha-vue.es.js +7355 -7353
- package/dist/aloha-vue.umd.js +4 -4
- package/package.json +1 -1
- package/src/ATable/ATable.js +7 -6
- package/src/ATable/ATableHeader/ATableHeader.js +1 -1
- package/src/ATable/ATableHeaderTh/ATableHeaderTh.js +12 -7
- package/src/ATable/__tests__/ATable.HeaderSlot.test.js +97 -0
- package/src/ATable/compositionAPI/ColumnsGroupedAPI.js +7 -6
- package/src/ui/AFieldset/AFieldset.js +4 -8
- package/src/ui/AFieldset/__tests__/AFieldset.ClassColumn.test.js +114 -0
- package/src/ui/AForm/AForm.js +15 -15
- package/src/ui/AGroup/AGroup.js +1 -1
package/dist/aloha-vue.umd.js
CHANGED
|
@@ -136,7 +136,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
136
136
|
<path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/>
|
|
137
137
|
</svg>`,ef={name:"AJson",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},change:{type:Function,required:!1,default:()=>{}},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},heightCss:{type:String,required:!1,default:"400px;"},helpText:{type:String,required:!1},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_json_")},idPrefix:{type:String,required:!1,default:void 0},inputAttributes:{type:Object,required:!1,default:()=>({})},inputClass:{type:[String,Object],required:!1,default:void 0},isHide:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{type:[String,Number,Object,Array,Boolean],required:!1,default:void 0},modelValue:{type:[String,Number,Object,Array,Boolean],required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:void 0}},emits:["blur","focus","update:modelValue"],setup(_,t){const{disabledAttribut:n}=ur(_),{attributesToExcludeFromRender:E}=Ye(_),{componentStyleHide:a}=Je(_),{ariaDescribedbyLocal:s,changeModel:o,errorsId:l,helpTextId:A,htmlIdLocal:T,isErrors:L,isModel:S,labelDescriptionId:c,onBlur:f,onFocus:d}=je(_,t),{styleHeight:R,styleMaxHeight:C}=fV(_),{clearModel:I,formatJson:O,initialValue:p,initInitialValue:U,jsonString:D,jsonStringInput:V,JSONtoString:B,onInput:y,parseError:Y,resetModel:b}=RV(_,{changeModel:o}),{modelValueReadonly:$}=CV(_);return U(),B(),{ariaDescribedbyLocal:s,attributesToExcludeFromRender:E,changeModel:o,clearModel:I,componentStyleHide:a,disabledAttribut:n,errorsId:l,formatJson:O,helpTextId:A,htmlIdLocal:T,initialValue:p,initInitialValue:U,isErrors:L,isModel:S,jsonString:D,jsonStringInput:V,JSONtoString:B,labelDescriptionId:c,modelValueReadonly:$,onBlur:f,onFocus:d,onInput:y,parseError:Y,resetModel:b,styleHeight:R,styleMaxHeight:C}},render(){return this.isRender?this.readonly?e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,modelValue:this.modelValueReadonly,readonlyDefault:this.readonlyDefault,required:this.required,style:this.componentStyleHide,type:"json",valueClass:"a_code_content",valueTag:"pre"}):e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{class:["a_form_element__parent",{a_form_element__parent_not_empty:this.isModel}]},[this.label||this.labelScreenReader?e.h(qe,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,extra:this.extra,isError:this.isErrors,isLabelFloat:!1,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,required:this.required}):"",e.h(ut,{id:this.labelDescriptionId,alwaysTranslate:this.alwaysTranslate,html:this.labelDescription,extra:this.extra}),e.h("div",{class:"a_columns a_columns_count_12"},[e.h("div",{class:"a_column a_column_6 a_column_12_touch"},[e.h("div",{class:"a_d_flex a_justify_content_between"},[e.h(qe,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,extra:this.extra,idSuffix:"_input",isError:this.isErrors,isLabelFloat:!1,label:"_A_JSON_INPUT_"}),e.h("div",{class:"a_btn_group",role:"group"},[e.h(O_,{class:["a_btn",{a_btn_transparent_info:!this.parseError,a_btn_transparent_dark:this.parseError}],disabled:!!this.parseError,iconLeft:IV,textScreenReader:"_A_JSON_FORMAT_INPUT_",title:"_A_JSON_FORMAT_INPUT_",type:"button",onClick:this.formatJson}),e.h(O_,{class:"a_btn a_btn_transparent_warning",iconLeft:hV,textScreenReader:"_A_JSON_RESET_INPUT_",title:"_A_JSON_RESET_INPUT_",type:"button",onClick:this.JSONtoString}),e.h(O_,{class:"a_btn a_btn_transparent_danger",iconLeft:oo,textScreenReader:"_A_JSON_DISCARD_ALL_CHANGES_",title:"_A_JSON_DISCARD_ALL_CHANGES_",type:"button",onClick:this.resetModel})])]),e.h("div",{class:"a_form_element a_form_element_textarea"},[e.h("textarea",{ref:"textareaRef",id:this.htmlIdLocal,style:this.styleHeight,value:this.jsonStringInput,"aria-describedby":this.ariaDescribedbyLocal,ariaInvalid:this.isErrors,ariaRequired:this.required,autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:["a_form_control a_json__textarea",this.inputClass,{a_form_control_invalid:this.isErrors}],disabled:this.disabledAttribut,spellcheck:"false",...this.inputAttributes,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur})]),this.parseError?e.h(f_,{alwaysTranslate:this.alwaysTranslate,class:"a_form_element__invalid_text",html:"_A_JSON_ERROR_HTML_{{error}}_",extra:{error:this.parseError}}):""]),e.h("div",{class:"a_column a_column_6 a_column_12_touch"},[e.h(f_,{tag:"div",text:"_A_JSON_CURRENT_VALUE_"}),e.withDirectives(e.h("div",{class:"a_json__code",style:this.styleMaxHeight}),[[et,this.jsonString]])])]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])]):null}},Wr={name:"ASelectLabelElement",props:{alwaysTranslate:{type:Boolean,required:!1},data:{type:Object,required:!0},labelNotFound:{type:String,required:!1,default:void 0},showNotFound:{type:Boolean,required:!1,default:!1},slotName:{type:String,required:!1,default:void 0},tag:{type:String,required:!1,default:"span"}},setup(_){const t=e.toRef(_,"data"),n=e.toRef(_,"labelNotFound"),E=e.toRef(_,"showNotFound");return{currentLabel:e.computed(()=>te in t.value?t.value[te]:E.value?u_({placeholder:n.value}):"")}},render(){return e.h(this.tag,{class:{a_select__label_invalid:this.data.__invalidEntry__}},[this.slotName&&this.$slots[this.slotName]?this.$slots[this.slotName]({item:this.data,label:this.currentLabel,inDropdown:!1}):e.withDirectives(e.h("span"),[[et,this.currentLabel]])])}};function OV(_){const t=e.toRef(_,"btnGroupAriaLabel"),n=e.toRef(_,"id"),E=e.toRef(_,"index"),a=({id:S,index:c})=>`${S}_${c}_up`,s=({id:S,index:c})=>`${S}_${c}_down`,o=e.computed(()=>`${n.value}_${E.value}_label`),l=e.computed(()=>`${n.value}_${E.value}_delete`),A=e.computed(()=>a({id:n.value,index:E.value})),T=e.computed(()=>s({id:n.value,index:E.value}));return{ariaLabelAttributes:e.computed(()=>Ui({attr:"aria-label",value:t.value,translation:u_({placeholder:t.value})})),getIdBtnDown:s,getIdBtnUp:a,idBtnDelete:l,idBtnDown:T,idBtnUp:A,idSelectLabel:o}}function pV(_,{emit:t},{getIdBtnDown:n=()=>{},getIdBtnUp:E=()=>{}}){const a=e.toRef(_,"id"),s=e.toRef(_,"index"),o=e.toRef(_,"isLastItem"),l=e.toRef(_,"modelValue"),A=e.computed(()=>s.value===0);return{deleteItem:()=>{t("deleteItem",{modelValue:l.value})},isFirstItem:A,onDownItem:()=>{o.value||t("downItem",{index:s.value,idForFocus:n({id:a.value,index:s.value+1})})},onUpItem:()=>{A.value||t("upItem",{index:s.value,idForFocus:E({id:a.value,index:s.value-1})})}}}const tf={name:"AMultiselectOrderedItem",props:{alwaysTranslate:{type:Boolean,required:!1},btnDeleteClass:{type:[String,Object],required:!1,default:void 0},btnDeleteIcon:{type:String,required:!1,default:void 0},btnDeleteTitle:{type:String,required:!1,default:void 0},btnDownClass:{type:[String,Object],required:!1,default:void 0},btnDownIcon:{type:String,required:!1,default:void 0},btnDownTitle:{type:String,required:!1,default:void 0},btnGroupAriaLabel:{type:String,required:!1,default:void 0},btnGroupClass:{type:[String,Object,Array],required:!1,default:void 0},btnUpClass:{type:[String,Object],required:!1,default:void 0},btnUpIcon:{type:String,required:!1,default:void 0},btnUpTitle:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!0},listItemClass:{type:[String,Object,Array],required:!1,default:void 0},data:{type:Object,required:!0},index:{type:Number,required:!0},isLastItem:{type:Boolean,required:!0},modelValue:{type:null,required:!0},slotName:{type:String,required:!1,default:void 0}},emits:["deleteItem","downItem","upItem"],setup(_,t){const{ariaLabelAttributes:n,getIdBtnDown:E,getIdBtnUp:a,idBtnDelete:s,idBtnDown:o,idBtnUp:l,idSelectLabel:A}=OV(_),{deleteItem:T,isFirstItem:L,onDownItem:S,onUpItem:c}=pV(_,t,{getIdBtnDown:E,getIdBtnUp:a});return{ariaLabelAttributes:n,deleteItem:T,idBtnDelete:s,idBtnDown:o,idBtnUp:l,idSelectLabel:A,isFirstItem:L,onDownItem:S,onUpItem:c}},render(){return e.h("li",{class:[this.listItemClass,{a_m_select_ordered__item_invalid:this.data.__invalidEntry__}]},[e.h(Wr,{id:this.idSelectLabel,alwaysTranslate:this.alwaysTranslate,data:this.data,slotName:this.slotName},this.$slots),e.h("div",{class:this.btnGroupClass,role:"group","aria-describedBy":this.idSelectLabel,...this.ariaLabelAttributes},[e.h(O_,{id:this.idBtnUp,ariaDisabled:this.disabled||this.isFirstItem,class:[this.btnUpClass,{disabled:this.disabled||this.isFirstItem}],iconLeft:this.btnUpIcon,textScreenReader:this.btnUpTitle,title:this.btnUpTitle,type:"button",onClick:this.onUpItem}),e.h(O_,{id:this.idBtnDown,ariaDisabled:this.disabled||this.isLastItem,class:[this.btnDownClass,{disabled:this.disabled||this.isLastItem}],iconLeft:this.btnDownIcon,textScreenReader:this.btnDownTitle,title:this.btnDownTitle,type:"button",onClick:this.onDownItem}),e.h(O_,{id:this.idBtnDelete,ariaDisabled:this.disabled,class:[this.btnDeleteClass,{disabled:this.disabled}],iconLeft:this.btnDeleteIcon,textScreenReader:this.btnDeleteTitle,title:this.btnDeleteTitle,type:"button",onClick:this.deleteItem})])])}};function UV(_,{changeModel:t=()=>{},dataExtraLocalFiltered:n=e.computed(()=>[]),dataSortFiltered:E=e.computed(()=>[]),modelValueFiltered:a=e.computed(()=>[])}){const s=e.toRef(_,"disabled"),o=e.toRef(_,"modelValue"),l=e.computed(()=>s.value||a.value.length===0),A=e.computed(()=>s.value||n.value.length===0&&E.value.length===0),T=()=>{if(A.value)return;const c=e_(o.value);Ua.forEach(n.value,f=>{c.push(f[C_])}),Ua.forEach(E.value,f=>{c.push(f[C_])}),t({model:c})},L=e.computed(()=>{const c={};return Ua.forEach(a.value,f=>{c[f]=!0}),c});return{deselectAll:()=>{if(l.value)return;const c=ce(o.value,f=>!L.value[f]);t({model:c})},disabledDeselectAll:l,disabledSelectAll:A,selectAll:T}}function NV(_,{htmlIdLocal:t=e.computed(()=>"")}){return{idForSelect:e.computed(()=>`${t.value}_select`)}}function DV(_,{dataExtraLocal:t=e.computed(()=>[]),dataSort:n=e.computed(()=>[]),modelValueFiltered:E=e.computed(()=>[])}){const a=e.computed(()=>E.value.length?ce(n.value,o=>!E.value.includes(o[C_])):n.value);return{dataExtraLocalFiltered:e.computed(()=>E.value.length?ce(t.value,o=>!E.value.includes(o[C_])):t.value),dataSortFiltered:a}}function mV(_,{changeModel:t=()=>{},dataKeyByKeyIdLocal:n=e.computed(()=>({}))}){const E=e.toRef(_,"modelValue"),a=e.computed(()=>!p_(E.value)||!E.value.length?[]:ce(E.value,T=>n.value[T]));return{changeModelFromSelect:({model:T})=>{if(p_(T)&&T.length){const L=e_(E.value);L.push(...T),t({model:L})}},deleteItem:({modelValue:T})=>{const L=dn(E.value,c=>c===T),S=e_(E.value);S.splice(L,1),t({model:S})},modelValueFiltered:a,onDownItem:async({index:T,idForFocus:L})=>{const S=T+1,c=a.value[T],f=a.value[S],d=dn(E.value,I=>I===c),R=dn(E.value,I=>I===f),C=e_(E.value);[C[d],C[R]]=[C[R],C[d]],t({model:C}),await e.nextTick(),Ce({selector:`#${L}`})},onUpItem:async({index:T,idForFocus:L})=>{const S=T-1,c=a.value[T],f=a.value[S],d=dn(E.value,I=>I===c),R=dn(E.value,I=>I===f),C=e_(E.value);[C[d],C[R]]=[C[R],C[d]],t({model:C}),await e.nextTick(),Ce({selector:`#${L}`})}}}const hE={btnDeleteTitle:"_A_MULTISELECT_ORDERED_BTN_DELETE_",btnDownTitle:"_A_MULTISELECT_ORDERED_BTN_DOWN_",btnGroupAriaLabel:"_A_MULTISELECT_ORDERED_BTN_GROUP_ARIA_LABEL_",btnUpTitle:"_A_MULTISELECT_ORDERED_BTN_UP_",deselectAll:"_A_MULTISELECT_ORDERED_DESELECT_ALL_",groupAllAriaLabel:"_A_MULTISELECT_ORDERED_GROUP_ALL_",modelEmpty:"_A_MULTISELECT_ORDERED_MODEL_EMPTY_",selectAll:"_A_MULTISELECT_ORDERED_SELECT_ALL_"},H_={propsDefault:{attributesBtnDeselectAll:{},attributesBtnSelectAll:{},attributesFieldset:{},btnDeleteClass:"a_btn a_btn_primary",btnDeleteIcon:oo,btnDownClass:"a_btn a_btn_outline_secondary",btnDownIcon:yn,btnGroupClass:"a_btn_group",btnUpClass:"a_btn a_btn_outline_secondary",btnUpIcon:tr,classFieldset:void 0,hasBorder:!0,isDeselectAll:!1,isSelectAll:!1,keyDisabled:void 0,keyGroup:void 0,keyId:"value",keyLabel:"label",labelClass:void 0,listItemClass:"a_list_group__item",readonlyDefault:"",search:!1,searchApi:!1,searchApiKey:void 0,searchInGroup:!1,searchOutside:!1,searchTextInHtml:!1,searchTimeout:0,selectButtonClass:void 0,selectButtonClassDefault:"a_form_control a_select_toggle",selectCaretIcon:yn,selectHasCaret:!0,selectInBody:!0,selectIsCloseByClick:!1,selectIsLabelFloat:!0,selectIsSelectionCloseable:!0,selectLabel:"_A_MULTISELECT_ORDERED_LABEL_SELECT_",selectLabelClass:void 0,selectMenuClass:void 0,selectMenuWidthType:"as_button",selectPlacement:"bottom-end",selectPopperContainerId:"a_select_container",slotName:void 0,sortOrder:"asc",sortOrderGroup:"asc",texts:{...hE},translateData:!1,translateGroup:!1}},PV={install:(_,{propsDefault:t={}}={})=>{H_.propsDefault={...H_.propsDefault,...t}}};function bV(_){const t=e.toRef(_,"texts"),n=e.computed(()=>t.value.btnDeleteTitle||hE.btnDeleteTitle),E=e.computed(()=>t.value.btnDownTitle||hE.btnDownTitle),a=e.computed(()=>t.value.btnGroupAriaLabel||hE.btnGroupAriaLabel),s=e.computed(()=>t.value.btnUpTitle||hE.btnUpTitle),o=e.computed(()=>t.value.deselectAll||hE.deselectAll),l=e.computed(()=>t.value.modelEmpty||hE.modelEmpty),A=e.computed(()=>t.value.selectAll||hE.selectAll),T=e.computed(()=>t.value.groupAllAriaLabel||hE.groupAllAriaLabel);return{textBtnDeleteTitle:n,textBtnDownTitle:E,textBtnGroupAriaLabel:a,textBtnUpTitle:s,textDeselectAll:o,textGroupAllAriaLabel:T,textModelEmpty:l,textSelectAll:A}}const nf="AIsDataPrepared",Ef={name:"AMultiselectOrdered",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},apiSaveId:{type:String,required:!1,default:void 0},attributesBtnDeselectAll:{type:Object,required:!1,default:()=>H_.propsDefault.attributesBtnDeselectAll},attributesBtnSelectAll:{type:Object,required:!1,default:()=>H_.propsDefault.attributesBtnSelectAll},attributesFieldset:{type:Object,required:!1,default:()=>H_.propsDefault.attributesFieldset},btnDeleteClass:{type:[String,Object],required:!1,default:()=>H_.propsDefault.btnDeleteClass},btnDeleteIcon:{type:String,required:!1,default:()=>H_.propsDefault.btnDeleteIcon},btnDownClass:{type:[String,Object],required:!1,default:()=>H_.propsDefault.btnDownClass},btnDownIcon:{type:String,required:!1,default:()=>H_.propsDefault.btnDownIcon},btnGroupClass:{type:[String,Object,Array],required:!1,default:()=>H_.propsDefault.btnGroupClass},btnUpClass:{type:[String,Object],required:!1,default:()=>H_.propsDefault.btnUpClass},btnUpIcon:{type:String,required:!1,default:()=>H_.propsDefault.btnUpIcon},change:{type:Function,required:!1,default:()=>{}},classFieldset:{type:[String,Object],required:!1,default:()=>H_.propsDefault.classFieldset},data:{type:Array,required:!1,default:void 0},dataExtra:{type:Array,required:!1,default:()=>[]},mergeData:{type:Boolean,required:!1,default:!1},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},hasBorder:{type:Boolean,required:!1,default:()=>H_.propsDefault.hasBorder},helpText:{type:String,required:!1},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_m_select_ordered_")},idPrefix:{type:String,required:!1,default:void 0},isDataSimpleArray:{type:Boolean,required:!1,default:void 0},isDeselectAll:{type:Boolean,required:!1,default:()=>H_.propsDefault.isDeselectAll},isHide:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},isSelectAll:{type:Boolean,required:!1,default:()=>H_.propsDefault.isSelectAll},keyDisabled:{type:String,required:!1,default:()=>H_.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>H_.propsDefault.keyGroup},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},keyId:{type:String,required:!1,default:()=>H_.propsDefault.keyId},keyLabel:{type:String,required:!1,default:()=>H_.propsDefault.keyLabel},keyLabelCallback:{type:Function,required:!1,default:void 0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{required:!1,default:()=>H_.propsDefault.labelClass},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:String,required:!1,default:void 0},labelTitle:{type:[String,Number],required:!1,default:void 0},listItemClass:{type:[String,Object,Array],required:!1,default:()=>H_.propsDefault.listItemClass},loading:{type:Boolean,required:!1,default:!1},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{type:Array,required:!1,default:()=>[]},options:{type:Object,required:!1,default:()=>({})},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>H_.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:()=>H_.propsDefault.search},searchApi:{type:Boolean,required:!1,default:()=>H_.propsDefault.searchApi},searchApiKey:{type:String,required:!1,default:()=>H_.propsDefault.searchApiKey},searchInGroup:{type:Boolean,required:!1,default:()=>H_.propsDefault.searchInGroup},searchOutside:{type:Boolean,required:!1,default:()=>H_.propsDefault.searchOutside},searchTextInHtml:{type:Boolean,required:!1,default:()=>H_.propsDefault.searchTextInHtml},searchTimeout:{type:Number,required:!1,default:()=>H_.propsDefault.searchTimeout},selectButtonClass:{type:String,required:!1,default:()=>H_.propsDefault.selectButtonClass},selectButtonClassDefault:{type:[String,Object],required:!1,default:()=>H_.propsDefault.selectButtonClassDefault},selectCaretIcon:{type:[String,Object],required:!1,default:()=>H_.propsDefault.selectCaretIcon},selectHasCaret:{type:Boolean,required:!1,default:()=>H_.propsDefault.selectHasCaret},selectInBody:{type:Boolean,required:!1,default:()=>H_.propsDefault.selectInBody},selectIsCloseByClick:{type:Boolean,required:!1,default:()=>H_.propsDefault.selectIsCloseByClick},selectIsLabelFloat:{type:Boolean,required:!1,default:()=>H_.propsDefault.selectIsLabelFloat},selectIsSelectionCloseable:{type:Boolean,required:!1,default:()=>H_.propsDefault.selectIsSelectionCloseable},selectLabel:{type:[String,Number],required:!1,default:()=>H_.propsDefault.selectLabel},selectLabelClass:{type:[String,Object],required:!1,default:()=>H_.propsDefault.selectLabelClass},selectLabelScreenReader:{type:String,required:!1,default:void 0},selectMenuClass:{type:[String,Object],required:!1,default:()=>H_.propsDefault.selectMenuClass},selectMenuWidthType:{type:String,required:!1,default:()=>H_.propsDefault.selectMenuWidthType,validator:_=>["as_button","by_content"].indexOf(_)!==-1},selectPlaceholder:{type:String,required:!1,default:void 0},selectPlacement:{type:String,required:!1,default:()=>H_.propsDefault.selectPlacement,validator:_=>Yt.indexOf(_)!==-1},selectPopperContainerId:{type:String,required:!1,default:()=>H_.propsDefault.selectPopperContainerId},slotName:{type:String,required:!1,default:()=>H_.propsDefault.slotName},sortOrder:{type:String,required:!1,default:()=>H_.propsDefault.sortOrder,validator:_=>["asc","desc"].indexOf(_)!==-1},sortOrderGroup:{type:String,required:!1,default:()=>H_.propsDefault.sortOrderGroup,validator:_=>["asc","desc"].indexOf(_)!==-1},texts:{type:Object,required:!1,default:()=>H_.propsDefault.texts},translateData:{type:Boolean,required:!1,default:()=>H_.propsDefault.translateData},translateGroup:{type:Boolean,required:!1,default:()=>H_.propsDefault.translateGroup},url:{type:String,required:!1,default:void 0},urlRetrieve:{type:String,required:!1,default:void 0},urlParams:{type:Object,required:!1,default:void 0},urlRetrieveParams:{type:Object,required:!1,default:void 0}},emits:["blur","focus","onSearchOutside","open","update:modelValue","updateData"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),{componentStyleHide:E}=Je(_),{textAfterLabel:a}=go(_),{textBtnDeleteTitle:s,textBtnDownTitle:o,textBtnGroupAriaLabel:l,textBtnUpTitle:A,textDeselectAll:T,textGroupAllAriaLabel:L,textModelEmpty:S,textSelectAll:c}=bV(_),{ariaDescribedbyLocal:f,changeModel:d,clearModel:R,errorsId:C,helpTextId:I,htmlIdLocal:O,isErrors:p,labelDescriptionId:U,onBlur:D,onFocus:V}=je(_,t),{idForSelect:B}=NV(_,{htmlIdLocal:O}),{dataFromRetrieve:y,dataFromServer:Y,dataExtraLocal:b,dataKeyByKeyIdLocal:$,dataLocal:M,hasDataExtra:W}=bo(_),{loadDataFromServer:H,loadDataFromServerForRetrieve:w,loadDataFromServerForSearchAPI:K,loadingDataFromServer:x,loadingSearchApi:X,updateUrlPropsComputed:r_,urlPropsComputed:h_}=Do(_,{changeModel:d,dataExtraLocal:b,dataFromRetrieve:y,dataFromServer:Y}),{loadingLocal:l_}=Yo(_,{loadingDataFromServer:x});Po(t,{dataKeyByKeyIdLocal:$,dataLocal:M});const{changeModelFromSelect:N_,deleteItem:L_,modelValueFiltered:G_,onDownItem:m_,onUpItem:Q}=mV(_,{changeModel:d,dataKeyByKeyIdLocal:$}),{dataSort:R_}=mo(_,{data:M}),{dataExtraLocalFiltered:o_,dataSortFiltered:b_}=DV(_,{dataExtraLocal:b,dataSort:R_,modelValueFiltered:G_}),k_=e.computed(()=>G_.value.map((i_,I_)=>{const D_=$.value[i_]||{};return{data:D_,index:I_,isInvalid:!!D_.__invalidEntry__,modelValue:i_}})),ae=e.computed(()=>k_.value.filter(i_=>!i_.isInvalid)),d_=e.computed(()=>k_.value.filter(i_=>i_.isInvalid)),{deselectAll:V_,disabledDeselectAll:v_,disabledSelectAll:z,selectAll:T_}=UV(_,{changeModel:d,dataExtraLocalFiltered:o_,dataSortFiltered:b_,modelValueFiltered:G_});return e.watch(h_,r_),e.provide(nf,!0),H(),K(),(!_.url||_.searchApi)&&w(),{ariaDescribedbyLocal:f,attributesToExcludeFromRender:n,changeModelFromSelect:N_,clearModel:R,componentStyleHide:E,dataExtraLocalFiltered:o_,dataKeyByKeyIdLocal:$,dataLocal:M,dataSortFiltered:b_,deleteItem:L_,deselectAll:V_,disabledDeselectAll:v_,disabledSelectAll:z,errorsId:C,hasDataExtra:W,helpTextId:I,htmlIdLocal:O,idForSelect:B,invalidOrderedItems:d_,isErrors:p,labelDescriptionId:U,loadingLocal:l_,loadingSearchApi:X,modelValueFiltered:G_,onBlur:D,onDownItem:m_,onFocus:V,onUpItem:Q,selectAll:T_,textAfterLabel:a,textBtnDeleteTitle:s,textBtnDownTitle:o,textBtnGroupAriaLabel:l,textBtnUpTitle:A,textDeselectAll:T,textGroupAllAriaLabel:L,textModelEmpty:S,textSelectAll:c,validOrderedItems:ae}},render(){return this.isRender?this.readonly?e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,modelValue:void 0,readonlyDefault:this.readonlyDefault,required:this.required,style:this.componentStyleHide,type:"multiselectOrdered"},this.modelValueFiltered.length?()=>[e.h("ul",{},[this.modelValueFiltered.map(_=>e.h(Wr,{key:_,alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[_]||{},slotName:this.slotName,tag:"li"},this.$slots))])]:""):e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{class:"a_form_element__parent"},[e.h("fieldset",{id:this.htmlIdLocal,tabindex:-1,class:["a_fieldset",this.classFieldset,{a_fieldset_invalid:this.isErrors,a_fieldset_no_border:!this.hasBorder,a_fieldset_with_legend:this.label}],"aria-describedby":this.ariaDescribedbyLocal,...this.attributesFieldset},[this.label||this.labelScreenReader?e.h(O_,{type:"text",alwaysTranslate:this.alwaysTranslate,tag:"legend",class:["a_legend",{a_legend_invalid:this.isErrors},this.labelClass],extra:this.extra,html:this.label,title:this.labelTitle||this.label,textScreenReader:this.labelScreenReader,textAfter:this.textAfterLabel}):"",e.h(ut,{id:this.labelDescriptionId,alwaysTranslate:this.alwaysTranslate,html:this.labelDescription,extra:this.extra,isLabelFloat:!1}),e.h("div",{class:["a_fieldset__content"]},[this.validOrderedItems.length?e.h("ul",{class:"a_list_group a_m_select_ordered__ul"},this.validOrderedItems.map(_=>e.h(tf,{id:this.htmlIdLocal,key:`${_.modelValue}_${_.index}`,alwaysTranslate:this.alwaysTranslate,btnDeleteClass:this.btnDeleteClass,btnDeleteIcon:this.btnDeleteIcon,btnDeleteTitle:this.textBtnDeleteTitle,btnDownClass:this.btnDownClass,btnDownIcon:this.btnDownIcon,btnDownTitle:this.textBtnDownTitle,btnGroupAriaLabel:this.textBtnGroupAriaLabel,btnGroupClass:this.btnGroupClass,btnUpClass:this.btnUpClass,btnUpIcon:this.btnUpIcon,btnUpTitle:this.textBtnUpTitle,listItemClass:this.listItemClass,data:_.data,disabled:this.disabled,index:_.index,isLastItem:_.index===this.modelValueFiltered.length-1,modelValue:_.modelValue,slotName:this.slotName,onDeleteItem:this.deleteItem,onUpItem:this.onUpItem,onDownItem:this.onDownItem},this.$slots))):"",this.invalidOrderedItems.length?e.h("div",{class:"a_m_select_ordered__invalid_entries"},[this.validOrderedItems.length?e.h("div",{class:"a_divider",ariaHidden:!0}):"",e.h(f_,{alwaysTranslate:this.alwaysTranslate,class:"text-muted",tag:"strong",text:"_A_MULTISELECT_ORDERED_GROUP_INVALID_ENTRIES_"}),e.h("ul",{class:"a_list_group a_m_select_ordered__ul text-muted"},this.invalidOrderedItems.map(_=>e.h(tf,{id:this.htmlIdLocal,key:`${_.modelValue}_${_.index}_invalid`,alwaysTranslate:this.alwaysTranslate,btnDeleteClass:this.btnDeleteClass,btnDeleteIcon:this.btnDeleteIcon,btnDeleteTitle:this.textBtnDeleteTitle,btnDownClass:this.btnDownClass,btnDownIcon:this.btnDownIcon,btnDownTitle:this.textBtnDownTitle,btnGroupAriaLabel:this.textBtnGroupAriaLabel,btnGroupClass:this.btnGroupClass,btnUpClass:this.btnUpClass,btnUpIcon:this.btnUpIcon,btnUpTitle:this.textBtnUpTitle,listItemClass:this.listItemClass,data:_.data,disabled:this.disabled,index:_.index,isLastItem:_.index===this.modelValueFiltered.length-1,modelValue:_.modelValue,slotName:this.slotName,onDeleteItem:this.deleteItem,onUpItem:this.onUpItem,onDownItem:this.onDownItem},this.$slots)))]):"",this.isDeselectAll||this.isSelectAll||!this.modelValueFiltered.length?e.h("div",{class:"a_m_select_ordered__panel"},[this.modelValueFiltered.length?"":e.h(f_,{class:"a_m_select_ordered__empty",tag:"div",html:this.textModelEmpty}),e.h(f_,{ariaLabel:this.textGroupAllAriaLabel,role:"group",class:"a_btn_group",tag:"div"},()=>[this.isSelectAll?e.h(O_,{ariaDisabled:this.disabledSelectAll,type:"button",text:this.textSelectAll,onClick:this.selectAll,...this.attributesBtnSelectAll,class:[this.attributesBtnDeselectAll.class||"a_btn a_btn_outline_secondary",{disabled:this.disabledSelectAll}]}):"",this.isDeselectAll?e.h(O_,{ariaDisabled:this.disabledDeselectAll,type:"button",text:this.textDeselectAll,onClick:this.deselectAll,...this.attributesBtnDeselectAll,class:[this.attributesBtnDeselectAll.class||"a_btn a_btn_outline_secondary",{disabled:this.disabledDeselectAll}]}):""])]):"",e.h(EE,{alwaysTranslate:this.alwaysTranslate,buttonClass:this.selectButtonClass,buttonClassDefault:this.selectButtonClassDefault,caretIcon:this.selectCaretIcon,change:this.changeModelFromSelect,data:this.dataSortFiltered,dataExtra:this.dataExtraLocalFiltered,disabled:this.disabled,extra:this.extra,hasCaret:this.selectHasCaret,id:this.idForSelect,inBody:this.selectInBody,isCloseByClick:this.selectIsCloseByClick,isLabelFloat:this.selectIsLabelFloat,isSelectionCloseable:this.selectIsSelectionCloseable,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,keyGroup:this.keyGroup,keyGroupLabelCallback:this.keyGroupLabelCallback,keyId:this.keyId,keyLabel:this.keyLabel,keyLabelCallback:this.keyLabelCallback,label:this.selectLabel,labelClass:this.selectLabelClass,labelScreenReader:this.selectLabelScreenReader,loading:this.loading,menuWidthType:this.selectMenuWidthType,options:this.options,placeholder:this.selectPlaceholder,placement:this.selectPlacement,popperContainerId:this.selectPopperContainerId,search:this.search,searchInGroup:this.searchInGroup,searchTimeout:this.searchTimeout,searchTextInHtml:this.searchTextInHtml,selectMenuClass:this.selectMenuClass,slotName:this.slotName,translateGroup:this.translateGroup,type:"multiselect"},this.$slots)])]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])]):null}};function YV(_){const t=e.toRef(_,"label");return{hasLabel:e.computed(()=>!t_(t.value))}}function gV(_){const t=e.toRef(_,"modelValue"),n=e.toRef(_,"trueValue"),E=e.toRef(_,"falseValue");return{modelValueReadonly:e.computed(()=>t.value===n.value?"_YES_":t.value===E.value?"_NO_":t.value)}}function BV(_,{changeModel:t=()=>{}}){const n=e.toRef(_,"modelValue"),E=e.toRef(_,"trueValue"),a=e.toRef(_,"falseValue"),s=e.toRef(_,"disabled"),o=e.computed(()=>n.value===E.value),l=T=>{s.value||(setTimeout(()=>{const L=o.value?a.value:E.value;t({model:L,$event:T})}),T.stopPropagation(),T.preventDefault())};return{isChecked:o,onClick:l,onKeydown:T=>{(T.keyCode===E_.enter||T.keyCode===E_.space)&&l(T)}}}const kr={name:"AOneCheckbox",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},change:{type:Function,required:!1,default:()=>{}},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},falseValue:{type:[Boolean,String,Number],required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_one_checkbox_")},idPrefix:{type:String,required:!1,default:void 0},indeterminate:{type:Boolean,required:!1},inputAttributes:{type:Object,required:!1,default:()=>({})},inputClass:{type:[String,Object],required:!1,default:void 0},isHide:{type:Boolean,required:!1},isLabelTitle:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},isWidthAuto:{type:Boolean,required:!1},label:{type:[String,Number],required:!1,default:void 0},labelAttributes:{type:Object,required:!1,default:()=>({})},labelClass:{type:[String,Object],required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{type:[String,Number,Object,Array,Boolean],required:!1,default:void 0},modelValue:{type:[Boolean,String,Number],required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},slotName:{type:String,required:!1,default:void 0},trueValue:{type:[Boolean,String,Number],required:!1,default:!0}},emits:["update:modelValue","focus","blur"],setup(_,t){const{disabledAttribut:n}=ur(_),{attributesToExcludeFromRender:E}=Ye(_),{componentStyleHide:a}=Je(_),{ariaDescribedbyLocal:s,changeModel:o,errorsId:l,helpTextId:A,htmlIdLocal:T,isErrors:L,onBlur:S,onFocus:c}=je(_,t),{isChecked:f,onClick:d,onKeydown:R}=BV(_,{changeModel:o}),{hasLabel:C}=YV(_),{modelValueReadonly:I}=gV(_);return{ariaDescribedbyLocal:s,attributesToExcludeFromRender:E,componentStyleHide:a,disabledAttribut:n,errorsId:l,hasLabel:C,helpTextId:A,htmlIdLocal:T,isChecked:f,isErrors:L,modelValueReadonly:I,onBlur:S,onClick:d,onFocus:c,onKeydown:R}},render(){return this.isRender?this.readonly?e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,modelValue:this.modelValueReadonly,readonlyDefault:this.readonlyDefault,required:this.required,style:this.componentStyleHide,type:"oneCheckbox"}):e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{class:["a_form_element__parent"]},[e.h("div",{class:"a_form_element"},[e.h("div",{class:["a_custom_control a_custom_checkbox",{a_custom_control_invalid:this.isErrors}]},[e.h("input",{id:this.htmlIdLocal,value:this.modelValue,type:"checkbox",checked:this.isChecked,class:"a_custom_control_input",disabled:this.disabledAttribut,ariaRequired:this.required,ariaInvalid:this.isErrors,"aria-describedby":this.ariaDescribedbyLocal,indeterminate:this.indeterminate,...this.inputAttributes,onClick:this.onClick,onKeydown:this.onKeydown,onFocus:this.onFocus,onBlur:this.onBlur}),e.h(O_,{alwaysTranslate:this.alwaysTranslate,class:["a_custom_control_label",{a_custom_control_label_width_auto:this.isWidthAuto}],extra:this.extra,for:this.htmlIdLocal,tag:"label",title:this.isLabelTitle?this.label:void 0,type:"text",...this.labelAttributes},()=>{var _;return[(_=this.$slots)!=null&&_[this.slotName]?this.$slots[this.slotName]({id:this.htmlIdLocal,labelClass:["a_custom_control_label__text",this.labelClass],label:this.label,labelScreenReader:this.labelScreenReader,props:this.$props,required:this.required}):this.hasLabel&&e.h("span",{class:["a_custom_control_label__text",this.labelClass]},[e.h(O_,{alwaysTranslate:this.alwaysTranslate,extra:this.extra,html:this.label,textScreenReader:this.labelScreenReader,tag:"span",title:this.isLabelTitle?this.label:void 0,type:"text"}),this.required?e.h("span",null,"*"):""])]})])]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])]):null}};function $V(_,{changeModel:t=()=>{},dataKeyByKeyIdLocal:n=e.computed(()=>({}))}){const E=e.toRef(_,"disabled"),a=e.toRef(_,"isModelArray"),s=e.toRef(_,"modelValue");return{onChangeModelValue:({model:l,$event:A})=>{E.value||(a.value?!s.value||s.value.length===0?setTimeout(()=>{t({model:[l],$event:A})}):setTimeout(()=>{const T=[];j(s.value,L=>{n.value[L]||T.push(L)}),T.push(l),t({model:T,$event:A})}):setTimeout(()=>{t({model:l,$event:A})}))}}}function VV(_,{dataKeyByKeyIdLocal:t=e.computed(()=>({}))}){const n=e.toRef(_,"isModelArray"),E=e.toRef(_,"modelValue");return{modelValueItemReadonly:e.computed(()=>{var s;if(n.value){let o;return(s=E.value)!=null&&s.length&&Ua.forEach(E.value,l=>{if(l in t.value)return o=t.value[l],!1}),o}return t.value[E.value]})}}const YT={name:"ARadio",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1,default:void 0},apiSaveId:{type:String,required:!1,default:void 0},attributesFieldset:{type:Object,required:!1,default:()=>({})},change:{type:Function,required:!1,default:()=>{}},classButtonGroupDefault:{type:[String,Object,Array],required:!1,default:"a_btn a_btn_outline_primary"},classDataParent:{type:[String,Object],required:!1,default:void 0},classFieldset:{type:[String,Object],required:!1,default:void 0},collapsible:{type:Boolean,required:!1,default:void 0},data:{type:Array,required:!1,default:void 0},dataExtra:{type:Array,required:!1,default:()=>[]},mergeData:{type:Boolean,required:!1,default:!1},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},errors:{type:[String,Array],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},hasBorder:{type:Boolean,required:!1,default:!0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_radio_")},idPrefix:{type:String,required:!1,default:void 0},inline:{type:Boolean,required:!1,default:void 0},isButtonGroup:{type:Boolean,required:!1,default:void 0},isCollapsed:{type:Boolean,required:!1,default:void 0},isDataSimpleArray:{type:Boolean,required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isModelArray:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},isWidthAuto:{type:Boolean,required:!1,default:void 0},keyDisabled:{type:String,required:!1,default:void 0},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:void 0},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},keyId:{type:String,required:!1,default:"value"},keyLabel:{type:String,required:!1,default:"label"},keyLabelCallback:{type:Function,required:!1,default:void 0},keyTitle:{type:String,required:!1,default:void 0},keyTitleCallback:{type:Function,required:!1,default:void 0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},loading:{type:Boolean,required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{type:[String,Number,Object,Array,Boolean],required:!1,default:null},modelValue:{type:[String,Number,Boolean,Array],required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:void 0},search:{type:Boolean,required:!1,default:void 0},searchApi:{type:Boolean,required:!1,default:void 0},searchApiKey:{type:String,required:!1,default:void 0},searchInGroup:{type:Boolean,required:!1,default:void 0},searchOutside:{type:Boolean,required:!1,default:void 0},searchTextInHtml:{type:Boolean,required:!1},searchTimeout:{type:Number,required:!1,default:0,validator:_=>_>=0},slotAppendName:{type:String,required:!1,default:void 0},slotName:{type:String,required:!1,default:void 0},sortOrder:{type:String,required:!1,default:void 0,validator:_=>["asc","desc"].indexOf(_)!==-1},sortOrderGroup:{type:String,required:!1,default:void 0,validator:_=>["asc","desc"].indexOf(_)!==-1},texts:{type:Object,required:!1,default:()=>({collapseClose:"_A_FIELDSET_COLLAPSE_CLOSE_",collapseOpen:"_A_FIELDSET_COLLAPSE_OPEN_",notElementsWithSearch:"_A_RADIO_HAS_NOT_ELEMENTS_WITH_SEARCH_",search:"_A_RADIO_SEARCH_"})},translateData:{type:Boolean,required:!1,default:void 0},translateGroup:{type:Boolean,required:!1,default:!1},url:{type:String,required:!1,default:void 0},urlRetrieve:{type:String,required:!1,default:void 0},urlParams:{type:Object,required:!1,default:void 0},urlRetrieveParams:{type:Object,required:!1,default:void 0}},emits:["focusin","focusout","onSearchOutside","toggleCollapse","update:modelValue","updateData"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),{componentStyleHide:E}=Je(_),{ariaDescribedbyLocal:a,changeModel:s,errorsId:o,helpTextId:l,htmlIdLocal:A,isErrors:T,labelDescriptionId:L,onFocusin:S,onFocusout:c,rootRef:f}=je(_,t),{textAfterLabel:d}=go(_),{dataFromRetrieve:R,dataFromServer:C,dataExtraLocal:I,dataKeyByKeyIdLocal:O,dataLocal:p,hasDataExtra:U}=bo(_),{loadDataFromServer:D,loadDataFromServerForRetrieve:V,loadDataFromServerForSearchAPI:B,loadingDataFromServer:y,loadingSearchApi:Y,onSearchInApi:b,searchApiLocal:$,updateUrlPropsComputed:M,urlPropsComputed:W}=Do(_,{changeModel:s,dataExtraLocal:I,dataFromRetrieve:R,dataFromServer:C}),{loadingLocal:H}=Yo(_,{loadingDataFromServer:y});Po(t,{dataKeyByKeyIdLocal:O,dataLocal:p});const{dataSort:w}=mo(_,{data:p}),{dataGrouped:K,groupsForLever:x,hasKeyGroup:X,keyGroupArray:r_}=Ht(_,{data:w}),{dataGrouped:h_,groupsForLever:l_}=Ht(_,{data:I}),N_=e.computed(()=>w.value.filter(me=>!me.__invalidEntry__)),L_=e.computed(()=>w.value.filter(me=>me.__invalidEntry__)),{dataGrouped:G_,groupsForLever:m_}=Ht(_,{data:N_}),{hasNotElementsExtraWithSearch:Q,hasNotElementsWithSearch:R_,idForButtonSearchOutside:o_,modelSearch:b_,modelSearchLowerCase:k_,modelSearchOutside:ae,onSearchOutside:d_,searching:V_,searchingElements:v_,searchingElementsExtra:z,searchingGroups:T_,searchingGroupsWithSearchInGroup:i_,searchOutsideOrApi:I_,searchOutsideRef:D_,updateModelSearch:B_,updateModelSearchOutside:F_}=ul(_,t,{data:w,dataExtra:I,groupsForLever:x,groupsForLeverExtra:l_,htmlIdLocal:A,hasKeyGroup:X,keyGroupArray:r_,searchApiLocal:$,onSearchInApi:b}),{onChangeModelValue:K_}=$V(_,{changeModel:s,dataKeyByKeyIdLocal:O}),{iconCollapse:j_,initIsCollapsedLocal:Le,isCollapsedLocal:Ae,titleCollapse:De,toggleCollapse:Q_}=Ll(_,t),{groupId:oe}=dT(_,{htmlIdLocal:A}),{modelValueItemReadonly:fe}=VV(_,{dataKeyByKeyIdLocal:O});return e.watch(W,M),Le(),D(),B(),(!_.url||_.searchApi)&&V(),{ariaDescribedbyLocal:a,attributesToExcludeFromRender:n,componentStyleHide:E,dataExtraLocal:I,dataExtraGrouped:h_,dataGrouped:K,dataGroupedValid:G_,dataSort:w,errorsId:o,groupId:oe,groupsForLever:x,groupsForLeverExtra:l_,groupsForLeverValid:m_,hasDataExtra:U,hasKeyGroup:X,hasNotElementsExtraWithSearch:Q,hasNotElementsWithSearch:R_,helpTextId:l,htmlIdLocal:A,iconCollapse:j_,idForButtonSearchOutside:o_,invalidDataSort:L_,isCollapsedLocal:Ae,isErrors:T,labelDescriptionId:L,loadingLocal:H,loadingSearchApi:Y,modelSearch:b_,modelSearchLowerCase:k_,modelSearchOutside:ae,modelValueItemReadonly:fe,onChangeModelValue:K_,onFocusin:S,onFocusout:c,onSearchOutside:d_,rootRef:f,searching:V_,searchingElements:v_,searchingElementsExtra:z,searchingGroups:T_,searchingGroupsWithSearchInGroup:i_,searchOutsideOrApi:I_,searchOutsideRef:D_,textAfterLabel:d,titleCollapse:De,toggleCollapse:Q_,updateModelSearch:B_,updateModelSearchOutside:F_,validDataSort:N_}},render(){var E,a,s;if(!this.isRender)return null;if(this.readonly)return e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,modelValue:void 0,readonlyDefault:this.readonlyDefault,required:this.required,style:this.componentStyleHide,type:"radio"},this.modelValueItemReadonly?()=>[e.h(Qs,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:this.modelValueItemReadonly,itemIndex:-1,modelValue:this.modelValue,readonly:!0,slotAppendName:this.slotAppendName,slotName:this.slotName},this.$slots)]:void 0);const _=this.invalidDataSort.length>0,t=!!(this.validDataSort.length||this.hasDataExtra),n=()=>_?e.h("div",{class:"a_radio__invalid_entries"},[t?e.h("div",{class:"a_divider",ariaHidden:!0}):"",e.h(f_,{alwaysTranslate:this.alwaysTranslate,class:"text-muted",tag:"strong",text:"_A_RADIO_GROUP_INVALID_ENTRIES_"}),e.h("div",{class:["a_radio_data",{a_btn_group:this.isButtonGroup},this.classDataParent,"text-muted"]},[...this.invalidDataSort.map((o,l)=>e.h(Qs,{key:o[C_],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,classButtonGroupDefault:this.classButtonGroupDefault,dataItem:o,disabled:this.disabled,isButtonGroup:this.isButtonGroup,isErrors:this.isErrors,isWidthAuto:this.isWidthAuto,itemIndex:this.validDataSort.length+l,keyDisabled:this.keyDisabled,keyTitle:this.keyTitle,keyTitleCallback:this.keyTitleCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElements,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,slotAppendName:this.slotAppendName,onChangeModelValue:this.onChangeModelValue},this.$slots))])]):null;return e.h("div",{ref:"rootRef",...this.$attrs,style:this.componentStyleHide,type:void 0,onFocusin:this.onFocusin,onFocusout:this.onFocusout,...this.attributesToExcludeFromRender},[e.h("div",{class:["a_form_element__parent",{a_radio_inline:this.inline}]},[e.h("div",{class:"a_form_element"},[e.h("fieldset",{id:this.htmlIdLocal,tabindex:-1,class:["a_fieldset",this.classFieldset,{a_fieldset_no_border:!this.hasBorder,a_fieldset_invalid:this.isErrors,a_fieldset_collapsed:this.isCollapsedLocal,a_fieldset_collapsible:this.collapsible,a_fieldset_with_legend:this.label}],"aria-describedby":this.ariaDescribedbyLocal,...this.attributesFieldset},[this.label||this.labelScreenReader?e.h(O_,{type:"text",alwaysTranslate:this.alwaysTranslate,tag:"legend",class:["a_legend",{a_legend_invalid:this.isErrors},this.labelClass],extra:this.extra,html:this.label,textScreenReader:this.labelScreenReader,textAfter:this.textAfterLabel}):"",this.collapsible?e.h(O_,{"aria-controls":this.groupId,"aria-expanded":!this.isCollapsedLocal,alwaysTranslate:this.alwaysTranslate,class:"a_fieldset__btn_collapse a_btn a_btn_transparent_secondary",iconLeft:this.iconCollapse,title:this.titleCollapse,textScreenReader:this.titleCollapse,type:"button",onClick:this.toggleCollapse}):"",e.h("div",{id:this.groupId,class:"a_fieldset__content"},[e.h(ut,{id:this.labelDescriptionId,alwaysTranslate:this.alwaysTranslate,html:this.labelDescription,extra:this.extra}),this.searchOutsideOrApi?e.h("div",{class:"a_fieldset__search"},[e.h("form",{onSubmit:this.onSearchOutside},[e.h("div",{class:"input-group"},[e.h(Bt,{alwaysTranslate:this.alwaysTranslate,label:((E=this.texts)==null?void 0:E.search)||"_A_RADIO_SEARCH_",inputClass:"a_select__element_clickable",modelValue:this.modelSearchOutside,modelUndefined:"","onUpdate:modelValue":this.updateModelSearchOutside}),e.h(O_,{alwaysTranslate:this.alwaysTranslate,ariaDisabled:this.loadingSearchApi,class:"a_btn a_btn_primary",disabled:this.disabled,iconLeft:Zs,type:"submit"})])])]):"",this.search?e.h(Bt,{alwaysTranslate:this.alwaysTranslate,class:"a_fieldset__search",label:((a=this.texts)==null?void 0:a.search)||"_A_RADIO_SEARCH_",modelValue:this.modelSearch,modelUndefined:"","onUpdate:modelValue":this.updateModelSearch}):"",this.loadingLocal?e.h(qr):"",this.hasDataExtra?e.h("div",{class:"a_radio__data_extra"},[...this.hasKeyGroup?[e.h(Oa,{id:`${this.htmlIdLocal}_extra_lev_0`,alwaysTranslate:this.alwaysTranslate,classButtonGroupDefault:this.classButtonGroupDefault,dataGrouped:this.dataExtraGrouped,disabled:this.disabled,groupsForLever:this.groupsForLeverExtra,isButtonGroup:this.isButtonGroup,isErrors:this.isErrors,isWidthAuto:this.isWidthAuto,keyDisabled:this.keyDisabled,keyTitle:this.keyTitle,keyTitleCallback:this.keyTitleCallback,levelIndex:0,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElementsExtra,searchingGroups:this.searchingGroups,searchingGroupsWithSearchInGroup:this.searchingGroupsWithSearchInGroup,searchTextInHtml:this.searchTextInHtml,slotAppendName:this.slotAppendName,slotName:this.slotName,type:"radio",onChangeModelValue:this.onChangeModelValue},this.$slots)]:this.dataExtraLocal.map((o,l)=>e.h(Qs,{key:o[C_],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,idSuffix:"extra",classButtonGroupDefault:this.classButtonGroupDefault,dataItem:o,disabled:this.disabled,isButtonGroup:this.isButtonGroup,isErrors:this.isErrors,isWidthAuto:this.isWidthAuto,itemIndex:l,keyDisabled:this.keyDisabled,keyTitle:this.keyTitle,keyTitleCallback:this.keyTitleCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElementsExtra,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,slotAppendName:this.slotAppendName,onChangeModelValue:this.onChangeModelValue},this.$slots)),this.hasNotElementsExtraWithSearch?"":e.h("div",{class:"a_divider",ariaHidden:!0})]):"",e.h("div",{},this.hasKeyGroup?[e.h(Oa,{id:`${this.htmlIdLocal}_lev_0`,alwaysTranslate:this.alwaysTranslate,classButtonGroupDefault:this.classButtonGroupDefault,dataGrouped:this.dataGroupedValid,disabled:this.disabled,groupsForLever:this.groupsForLeverValid,isButtonGroup:this.isButtonGroup,isErrors:this.isErrors,isWidthAuto:this.isWidthAuto,keyDisabled:this.keyDisabled,keyTitle:this.keyTitle,keyTitleCallback:this.keyTitleCallback,levelIndex:0,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElements,searchingGroups:this.searchingGroups,searchingGroupsWithSearchInGroup:this.searchingGroupsWithSearchInGroup,searchTextInHtml:this.searchTextInHtml,slotAppendName:this.slotAppendName,slotName:this.slotName,type:"radio",onChangeModelValue:this.onChangeModelValue},this.$slots)]:[e.h("div",{class:["a_radio_data",{a_btn_group:this.isButtonGroup},this.classDataParent]},[...this.validDataSort.map((o,l)=>e.h(Qs,{key:o[C_],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,classButtonGroupDefault:this.classButtonGroupDefault,dataItem:o,disabled:this.disabled,isButtonGroup:this.isButtonGroup,isErrors:this.isErrors,isWidthAuto:this.isWidthAuto,itemIndex:l,keyDisabled:this.keyDisabled,keyTitle:this.keyTitle,keyTitleCallback:this.keyTitleCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElements,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,slotAppendName:this.slotAppendName,onChangeModelValue:this.onChangeModelValue},this.$slots))])]),n(),!this.dataSort.length||this.hasNotElementsWithSearch?e.h(f_,{alwaysTranslate:this.alwaysTranslate,class:"a_form__not_elements",text:((s=this.texts)==null?void 0:s.notElementsWithSearch)||"_A_RADIO_HAS_NOT_ELEMENTS_WITH_SEARCH_"}):""])])]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])])}};function yV(_,{changeQueryModel:t=()=>{},changeRouteModel:n=()=>{},changeTargetModel:E=()=>{},childrenForParam:a=e.computed(()=>[]),hasParam:s=e.computed(()=>!1),htmlIdLocal:o=e.computed(()=>""),routesLocal:l=e.computed(()=>[])}){const A=e.toRef(_,"attributesRoute"),T=e.toRef(_,"helpTextParam"),L=e.toRef(_,"helpTextQuery"),S=e.toRef(_,"helpTextRoute"),c=e.toRef(_,"helpTextTarget"),f=e.toRef(_,"keyIdRoute"),d=e.toRef(_,"keyLabelCallbackRoute"),R=e.toRef(_,"keyLabelRoute"),C=e.toRef(_,"labelParam"),I=e.toRef(_,"labelQuery"),O=e.toRef(_,"labelRoute"),p=e.toRef(_,"labelTarget"),U=e.toRef(_,"modelValue"),D=e.toRef(_,"readonlyDefaultParam"),V=e.toRef(_,"readonlyDefaultQuery"),B=e.toRef(_,"readonlyDefaultRoute"),y=e.toRef(_,"readonlyDefaultTarget"),Y=e.toRef(_,"required"),b=e.toRef(_,"sortOrderRoute"),$=e.toRef(_,"targets");return{dataFormChildren:e.computed(()=>{var W,H;return[{id:"route",change:n,data:l.value,deselectable:!0,helpText:S.value,idPrefix:o.value,isLabelFloat:!1,keyId:f.value,keyLabel:R.value,keyLabelCallback:d.value,label:O.value,readonlyDefault:B.value,required:Y.value,search:!0,sortOrder:b.value,type:"select",...A.value},{id:"param",children:a.value,helpText:T.value,idPrefix:o.value,isRender:s.value,label:C.value,readonlyDefault:D.value,required:Y.value,type:"fieldset"},{isHide:!((W=U.value)!=null&&W.route),id:"query",change:t,heightCss:"100px",helpText:L.value,idPrefix:o.value,label:I.value,readonlyDefault:V.value,type:"json"},{isHide:!((H=U.value)!=null&&H.route),id:"target",change:E,data:$.value,deselectable:!0,helpText:c.value,idPrefix:o.value,isLabelFloat:!1,keyId:"id",keyLabel:"label",label:p.value,readonlyDefault:y.value,translateData:!0,type:"select"}]})}}function MV(_,{emit:t}){const n=e.toRef(_,"change"),E=e.toRef(_,"id"),a=e.toRef(_,"modelValue"),s=e.toRef(_,"type"),o=e.computed(()=>{if(a.value)return a.value;if(s.value==="routerLinkConfig")return{}}),l=({model:f,item:d})=>{t("update:modelValue",f),n.value({currentModel:f,id:E.value,item:d,model:f,props:e.toRefs(_)})};return{changeParamModel:({model:f,id:d})=>{const R=e_(a.value)||{};R.param=R.param||{},R.param[d]=f,l({model:R})},changeQueryModel:({model:f})=>{const d=e_(a.value)||{};d.query=f,l({model:d})},changeRouteModel:({model:f})=>{var d;l(f?{model:{route:f,query:(d=a.value)==null?void 0:d.query}}:{model:{}})},changeRouteModelSelect:({currentModel:f,model:d,item:R})=>{t("update:modelValue",d),n.value({currentModel:f,id:E.value,item:R,model:d,props:e.toRefs(_)})},changeTargetModel:({model:f})=>{const d=e_(a.value)||{};d.target=f,l({model:d})},modelLocal:o}}function FV(_,{changeParamModel:t=()=>{},htmlIdLocal:n=e.computed(()=>""),routePathKeyByKeyId:E=e.computed(()=>({}))}){const a=e.toRef(_,"modelValue"),s=e.toRef(_,"required"),o=L=>{const S=/:([a-zA-Z0-9_]+)/g,c=[];let f;for(;(f=S.exec(L))!==null;)c.push(f[1]);return c},l=e.computed(()=>{var L;return(L=a.value)!=null&&L.route?o(E.value[a.value.route]):[]}),A=e.computed(()=>l.value.length>0);return{childrenForParam:e.computed(()=>{const L=[];return j(l.value,S=>{const c={id:`param.${S}`,change:({model:f})=>t({model:f,id:S}),label:S,type:"text",idPrefix:n.value,required:s.value};L.push(c)}),L}),hasParam:A}}function GV(_){const t=e.toRef(_,"filterRoutes"),n=e.toRef(_,"keyIdRoute"),E=e.toRef(_,"routes"),a=e.toRef(_,"type"),s=e.computed(()=>t.value?t.value({routes:E.value}):E.value),o=e.computed(()=>{if(a.value==="selectRoute")return"select";if(a.value==="multiselectRoute")return"multiselect"});return{routePathKeyByKeyId:e.computed(()=>{const A={};return j(s.value,T=>{const L=n_(T,n.value);A[L]=T.path}),A}),routesLocal:s,routeType:o}}const Wi={name:"ARouterLinkConfig",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},attributesFieldset:{type:Object,required:!1,default:()=>pe.propsDefault.attributesFieldset},attributesRoute:{type:Object,required:!1,default:()=>({})},change:{type:Function,required:!1,default:()=>{}},classColumn:{type:[String,Object],required:!1,default:()=>pe.propsDefault.classColumn},classColumns:{type:[String,Object],required:!1,default:()=>pe.propsDefault.classColumns},classFieldset:{type:[String,Object],required:!1,default:()=>pe.propsDefault.classFieldset},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>pe.propsDefault.excludeRenderAttributes},extra:{type:Object,required:!1,default:()=>pe.propsDefault.extra},filterRoutes:{type:Function,required:!1,default:void 0},hasBorder:{type:Boolean,required:!1,default:()=>pe.propsDefault.hasBorder},helpText:{type:String,required:!1,default:void 0},helpTextParam:{type:String,required:!1,default:()=>pe.propsDefault.helpTextParam},helpTextQuery:{type:String,required:!1,default:()=>pe.propsDefault.helpTextQuery},helpTextRoute:{type:String,required:!1,default:()=>pe.propsDefault.helpTextRoute},helpTextTarget:{type:String,required:!1,default:()=>pe.propsDefault.helpTextTarget},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_router_link_config_")},idPrefix:{type:String,required:!1,default:void 0},isHide:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},keyIdRoute:{type:String,required:!1,default:()=>pe.propsDefault.keyIdRoute},keyLabelCallbackRoute:{type:Function,required:!1,default:void 0},keyLabelRoute:{type:String,required:!1,default:()=>pe.propsDefault.keyLabelRoute},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:()=>pe.propsDefault.labelClass},labelDescription:{type:String,required:!1,default:void 0},labelParam:{type:String,required:!1,default:()=>pe.propsDefault.labelParam},labelQuery:{type:String,required:!1,default:()=>pe.propsDefault.labelQuery},labelRoute:{type:String,required:!1,default:()=>pe.propsDefault.labelRoute},labelScreenReader:{type:[String,Number],required:!1,default:void 0},labelTarget:{type:String,required:!1,default:()=>pe.propsDefault.labelTarget},modelUndefined:{type:[String,Number,Object,Array,Boolean],required:!1,default:""},modelValue:{type:[String,Array,Object],required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefault},readonlyDefaultParam:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefaultParam},readonlyDefaultQuery:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefaultQuery},readonlyDefaultRoute:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefaultRoute},readonlyDefaultTarget:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefaultTarget},required:{type:Boolean,required:!1,default:!1},routes:{type:Array,required:!1,default:()=>pe.propsDefault.routes},slotName:{type:String,required:!1,default:void 0},sortOrderRoute:{type:String,required:!1,default:()=>pe.propsDefault.sortOrderRoute,validator:_=>["asc","desc"].indexOf(_)!==-1},targets:{type:Array,required:!1,default:()=>pe.propsDefault.targets},type:{type:String,required:!1,default:"routerLinkConfig",validator:_=>["routerLinkConfig","selectRoute","multiselectRoute"].indexOf(_)!==-1}},emits:["update:modelValue","focus","blur"],setup(_,t){const{htmlIdLocal:n}=je(_,t),{changeModel:E,changeParamModel:a,changeQueryModel:s,changeRouteModel:o,changeRouteModelSelect:l,changeTargetModel:A,modelLocal:T}=MV(_,t),{routePathKeyByKeyId:L,routesLocal:S,routeType:c}=GV(_),{childrenForParam:f,hasParam:d}=FV(_,{changeParamModel:a,htmlIdLocal:n,routePathKeyByKeyId:L}),{dataFormChildren:R}=yV(_,{changeQueryModel:s,changeRouteModel:o,changeTargetModel:A,childrenForParam:f,hasParam:d,htmlIdLocal:n,routesLocal:S});return{changeModel:E,changeRouteModelSelect:l,dataFormChildren:R,hasParam:d,htmlIdLocal:n,modelLocal:T,routesLocal:S,routeType:c}},render(){if(this.type==="routerLinkConfig")return e.h(Ar,{...this.$attrs,id:this.id,alwaysTranslate:this.alwaysTranslate,attributesFieldset:this.attributesFieldset,change:this.changeModel,children:this.dataFormChildren,classColumn:this.classColumn,classColumns:this.classColumns,classFieldset:this.classFieldset,disabled:this.disabled,errors:this.errors,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,hasBorder:this.hasBorder,helpText:this.helpText,htmlId:this.htmlId,idPrefix:this.idPrefix,isHide:this.isHide,isRender:this.isRender,label:this.label,labelClass:this.labelClass,labelDescription:this.labelDescription,labelScreenReader:this.labelScreenReader,modelUndefined:this.modelUndefined,modelValue:this.modelLocal,readonly:this.readonly,readonlyDefault:this.readonlyDefault,required:this.required,slotName:this.slotName},this.$slots);if(this.type==="selectRoute"||this.type==="multiselectRoute")return e.h(EE,{...this.$attrs,id:this.id,alwaysTranslate:this.alwaysTranslate,change:this.changeRouteModelSelect,data:this.routesLocal,disabled:this.disabled,errors:this.errors,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,htmlId:this.htmlId,idPrefix:this.idPrefix,isHide:this.isHide,isRender:this.isRender,keyId:this.keyIdRoute,keyLabel:this.keyLabelRoute,keyLabelCallback:this.keyLabelCallbackRoute,label:this.label,labelClass:this.labelClass,labelDescription:this.labelDescription,labelScreenReader:this.labelScreenReader,modelUndefined:this.modelUndefined,modelValue:this.modelLocal,readonly:this.readonly,readonlyDefault:this.readonlyDefault,required:this.required,search:!0,sortOrder:this.sortOrderRoute,type:this.routeType,...this.attributesRoute},this.$slots)}};function vV(_,{emit:t}){const n=e.toRef(_,"data"),E=e.computed(()=>n.value[C_]);return{closeModel:({$event:s})=>{t("changeModelValue",{currentValue:E.value,$event:s,isSelected:!0})}}}function wV(_){const t=e.toRef(_,"alwaysTranslate"),n=e.toRef(_,"data"),E=e.toRef(_,"keyGroup"),a=e.toRef(_,"keyGroupLabelCallback"),s=e.toRef(_,"mode"),o=e.toRef(_,"translateGroup");return{groupLabel:e.computed(()=>{if(!s.value==="one_per_group"||!E.value)return;const A=n_(n.value,E.value);if(!A)return;let T=A;return a.value&&(T=a.value({item:n.value,inDropdown:!1,group:A})),o.value&>(T)?u_({placeholder:T,alwaysTranslate:t.value}):T})}}function HV(_){const t=e.toRef(_,"data"),n=e.toRef(_,"labelNotFound"),E=e.toRef(_,"showNotFound");return{currentLabel:e.computed(()=>te in t.value?t.value[te]:E.value?u_({placeholder:n.value}):"")}}const af={name:"ASelectValueCloseable",props:{alwaysTranslate:{type:Boolean,required:!1},data:{type:Object,required:!0},disabled:{type:Boolean,required:!1},hideDeleteButton:{type:Boolean,required:!1,default:!1},keyGroup:{type:[String,Number,Array],required:!1,default:void 0},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},labelNotFound:{type:String,required:!1,default:void 0},mode:{type:String,default:"default",validator:_=>["default","one_per_group"].includes(_)},showNotFound:{type:Boolean,required:!1,default:!1},slotName:{type:String,required:!1,default:void 0},translateGroup:{type:Boolean,required:!1,default:!1}},emits:["changeModelValue"],setup(_,t){const{currentLabel:n}=HV(_),{closeModel:E}=vV(_,t),{groupLabel:a}=wV(_);return{closeModel:E,currentLabel:n,groupLabel:a}},render(){return e.h("li",{class:["a_select__ul_closeable__item",{a_select__ul_closeable__item_invalid:this.data.__invalidEntry__}]},[this.slotName&&this.$slots[this.slotName]?this.$slots[this.slotName]({item:this.data,label:this.currentLabel,inDropdown:!1}):e.h("span",[this.groupLabel?e.h(f_,{alwaysTranslate:this.alwaysTranslate,tag:"span",html:this.groupLabel,extra:this.data.extra,textAfter:": "}):"",e.h(f_,{alwaysTranslate:this.alwaysTranslate,tag:"span",html:this.currentLabel,extra:this.data.extra})]),!this.hideDeleteButton&&!this.disabled?e.h(O_,{class:"a_btn a_btn_link a_select__ul_closeable__item__btn",disabled:this.disabled,iconLeft:Mn,prevent:!0,stop:!0,tabindex:-1,type:"button",onClick:this.closeModel}):""])}};function xV(_,{htmlIdLocal:t=e.computed(()=>"")}){const n=e.toRef(_,"disabled"),E=e.computed(()=>`${t.value}_container`),a=e.computed(()=>`${t.value}_list`),s=e.computed(()=>`${t.value}_label`),o=e.computed(()=>n.value?void 0:0);return{ariaLabelledby:s,containerId:E,idForList:a,tabindex:o}}function qV(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"exclusiveOptionValue"),E=e.toRef(_,"isExclusiveOptionEnabled"),a=e.toRef(_,"modelValue"),s=e.computed(()=>E.value?a.value&&a.value.indexOf(n.value)!==-1:!1),o=e.computed(()=>s.value||t.value),l=e.computed(()=>o.value||void 0);return{disabledAttribut:e.computed(()=>t.value||void 0),disabledLocal:o,disabledLocalAttribut:l,isExclusiveOptionSelected:s}}function WV(_,{isMultiselect:t=e.computed(()=>!1)}){const n=e.toRef(_,"isSelectAll"),E=e.toRef(_,"isDeselectAll");return{isDividerSelectDeselectVisible:e.computed(()=>t.value&&(n.value||E.value))}}function kV(_){const t=e.toRef(_,"exclusiveOptionLabel"),n=e.toRef(_,"exclusiveOptionValue"),E=e.toRef(_,"extra"),a=e.toRef(_,"isExclusiveOptionEnabled"),s=e.toRef(_,"searchTextInHtml"),o=e.computed(()=>{if(a.value){const A=u_({placeholder:t.value,extra:E.value}),T={[C_]:n.value,[te]:A};return s.value&&(T[er]=hi(A)),T}}),l=e.computed(()=>Ra([o.value],C_));return{exclusiveOption:o,exclusiveDataKeyByKeyIdLocal:l}}function KV(_){const t=e.toRef(_,"mode");return{isModeOnePerGroup:e.computed(()=>t.value==="one_per_group")}}function XV(_,{dataKeyByKeyIdLocal:t=e.computed(()=>({}))}){const n=e.toRef(_,"countMultiselect"),E=e.toRef(_,"exclusiveOptionValue"),a=e.toRef(_,"modelValue"),s=e.toRef(_,"showNotFound"),o=e.toRef(_,"type"),l=e.computed(()=>o.value==="multiselect"),A=e.computed(()=>!l.value||!a.value||!p_(a.value)?[]:ce(a.value,f=>f in t.value||f===E.value?!0:s.value)),T=e.computed(()=>l.value?A.value.length>0:!t_(a.value)),L=e.computed(()=>{var f;return((f=A.value)==null?void 0:f.length)||0}),S=e.computed(()=>L.value>n.value),c=e.computed(()=>({[te]:"_A_SELECT_MORE_SELECTED_{{count}}_",extra:{count:L.value-n.value}}));return{isModelLengthLimitExceeded:S,isModelValue:T,isMultiselect:l,limitExceededModelData:c,modelValueLength:L,modelValueMultiselectFiltered:A}}function jV(_,{changeModel:t=()=>{},dataAll:n=e.computed(()=>[]),dataGrouped:E=e.computed(()=>({})),dataKeyByKeyIdLocal:a=e.computed(()=>({})),disabledLocal:s=e.computed(()=>!1),isModeOnePerGroup:o=e.computed(()=>!1),isMultiselect:l=e.computed(()=>!1),togglePopover:A=()=>{}}){const T=e.toRef(_,"countMultiselect"),L=e.toRef(_,"deselectable"),S=e.toRef(_,"disabled"),c=e.toRef(_,"exclusiveOptionValue"),f=e.toRef(_,"isCloseByClick"),d=e.toRef(_,"isExclusiveOptionEnabled"),R=e.toRef(_,"keyGroup"),C=e.toRef(_,"maxCountMultiselect"),I=e.toRef(_,"modelValue"),O=e.computed(()=>!l.value||!C.value?!1:n_(I.value,"length")>=C.value),p=e.computed(()=>w_(f.value)?!l.value:f.value),U=({modelValueLocal:$,currentValue:M,dataItem:W})=>{var K;const H=n_(W,R.value),w=((K=E.value)==null?void 0:K[H])||[];return j(w,x=>{const X=x[C_],r_=$.indexOf(X);r_!==-1&&$.splice(r_,1)}),$.push(M),$},D=({currentValue:$,$event:M,isSelected:W,dataItem:H})=>{let w;if(l.value)if(w=e_(I.value)||[],W){const K=w.indexOf($);w.splice(K,1),d.value&&$===c.value&&(w=[])}else if(d.value&&$===c.value)w=[$];else if(o.value){if(w=U({modelValueLocal:w,currentValue:$,dataItem:H}),C.value&&w.length>C.value)return}else{if(O.value)return;w.push($)}else if(W)if(L.value)w=void 0;else return;else w=$;t({model:w,$event:M,currentModel:$,item:a.value[$]}),p.value&&A()},V=$=>{const M=_c(I.value,T.value);t({model:M,$event:$})},B=()=>{if(s.value)return;const $=n.value.map(M=>M[C_]);t({model:$})},y=$=>{const M=$.keyCode;(M===E_.enter||M===E_.space)&&(B(),$.preventDefault())},Y=()=>{S.value||t({model:[]})};return{deleteExceededItems:V,onChangeModelValue:D,onDeselectAll:Y,onKeydownDeselectAll:$=>{const M=$.keyCode;(M===E_.enter||M===E_.space)&&(Y(),$.preventDefault())},onKeydownSelectAll:y,onSelectAll:B}}function zV(_,{data:t=e.computed(()=>[]),dataExtra:n=e.computed(()=>[]),exclusiveOption:E=e.computed(()=>{})}){const a=e.toRef(_,"modelValue"),s=e.toRef(_,"showSelectedFirst"),o=e.toRef(_,"type"),l=e.computed(()=>!s.value||t_(a.value)?[]:o.value==="multiselect"?p_(a.value)?[...new Set(a.value)]:[]:[a.value]),A=e.computed(()=>new Set(l.value)),T=e.computed(()=>{const d=new Set;return[E.value,...n.value,...t.value].filter(R=>!R||!A.value.has(R[C_])||d.has(R[C_])?!1:(d.add(R[C_]),!0))}),L=d=>!s.value||!A.value.size?d:d.filter(R=>!A.value.has(R[C_])),S=e.computed(()=>L(t.value)),c=e.computed(()=>L(n.value)),f=e.computed(()=>{if(!E.value||!A.value.has(E.value[C_]))return E.value});return{dataExtraWithoutSelected:c,dataSelected:T,dataWithoutSelected:S,exclusiveOptionWithoutSelected:f}}function JV(_,{dataKeyByKeyIdLocal:t=e.computed(()=>({})),isModelLengthLimitExceeded:n,isModelValue:E=e.computed(()=>!1),isModeOnePerGroup:a=e.computed(()=>!1),isMultiselect:s,modelValueLength:o,modelValueMultiselectFiltered:l=e.computed(()=>[])}){const A=e.toRef(_,"alwaysTranslate"),T=e.toRef(_,"isSelectionCloseable"),L=e.toRef(_,"keyGroup"),S=e.toRef(_,"keyGroupLabelCallback"),c=e.toRef(_,"keyTitle"),f=e.toRef(_,"keyTitleCallback"),d=e.toRef(_,"modelValue"),R=e.toRef(_,"translateGroup"),C=({item:p,_isModeOnePerGroup:U})=>{if(U_(f.value))return f.value({item:p,inDropdown:!1})||"";if(c.value)return n_(p,c.value)||"";if(U){const D=n_(p,L.value);if(D){let V=D;return U_(S.value)&&(V=S.value({item:p,inDropdown:!1,group:D})),R.value&>(V)&&(V=u_({placeholder:V,alwaysTranslate:A.value})),`${V}: ${p[te]}`}}return p[te]},I=e.computed(()=>{if(!E.value)return;let p="";if(s.value)T.value||!n.value?j(l.value,(U,D)=>{const V=t.value[U]||{};p+=`${D>0?", ":""}${C({item:V,_isModeOnePerGroup:a.value})}`}):p=`${o.value} ausgewählt`;else{const U=t.value[d.value]||{};p=C({item:U})}return p});return{hasSelectedTitle:e.computed(()=>!!I.value),selectedTitle:I}}function io({dataSelected:_=e.computed(()=>[]),keyGroupArray:t=e.computed(()=>[]),searching:n=e.computed(()=>!1),searchingElements:E=e.computed(()=>({})),searchingElementsExclusive:a=e.computed(()=>({})),searchingElementsExtra:s=e.computed(()=>({})),searchingGroupsWithSearchInGroup:o=e.computed(()=>({}))}={}){const l=e.computed(()=>({...E.value,...s.value,...a.value})),A=e.computed(()=>n.value?_.value.filter(L=>{if(l.value[L[C_]])return!0;let S="";return t.value.some(c=>{let f=n_(L,c);return(t_(f)||f==="")&&(f="_not_grouped"),S+=`${S?"_":""}${f}`,o.value[S]})}):_.value),T=e.computed(()=>{if(!n.value)return{};const L={};return A.value.forEach(S=>{let c="";t.value.forEach(f=>{let d=n_(S,f);(t_(d)||d==="")&&(d="_not_grouped"),c+=`${c?"_":""}${d}`,L[c]=!0})}),L});return{dataSelectedVisible:A,searchingElementsSelected:l,searchingGroupsVisible:T}}function rf({$elements:_=e.computed(()=>[]),clickOutsideCallback:t=()=>{}}){const n=e.ref("ontouchend"in document?"touchstart":"click"),E=o=>{let l=!1;j(_.value,A=>{if(A===o.target||A.contains(o.target))return l=!0,!1}),l||t()},a=()=>{document.addEventListener(n.value,E)},s=()=>{document.removeEventListener(n.value,E)};return e.onBeforeUnmount(()=>s()),{setEventClickOutside:a,destroyEventClickOutside:s}}const sf=".a_select__element_clickable:not([disabled]):not([data-hide])";function ZV(_,{emit:t},{closePopup:n=()=>{},htmlIdLocal:E=e.computed(()=>""),openPopup:a=()=>{}}){const s=e.toRef(_,"disabled"),o=e.toRef(_,"menuWidthType"),l=e.ref(void 0),A=e.ref(void 0),T=e.ref(!1),L=e.ref(void 0),S=e.ref(void 0),c=e.toRef(_,"placement"),f=e.ref(void 0),d=e.computed(()=>[l.value,L.value]),R=e.computed(()=>{if(o.value==="as_button")return l.value.clientWidth}),{setEventClickOutside:C,destroyEventClickOutside:I}=rf({$elements:d,clickOutsideCallback:w}),O=({isArrowDown:K})=>{const x=S.value.querySelectorAll(sf);if(x.length===0)return;let X=!1;j(x,(r_,h_)=>{if(r_===document.activeElement)return X=!0,K?h_<x.length-1&&x[h_+1].focus():h_>0&&x[h_-1].focus(),!1}),X||x[0].focus()},p=()=>{l.value.focus()},U=K=>{const x=K.keyCode,X=x===E_.arrowDown;X||x===E_.arrowUp?(O({isArrowDown:X}),K.preventDefault()):x===E_.escape?(w(),p(),K.preventDefault(),K.stopPropagation()):x===E_.tab&&(w(),p())},D=()=>{A.value&&(A.value(),A.value=void 0)},V=()=>{a({id:E.value}),t("open")},B=()=>{const K=S.value.querySelector(sf);K&&K.focus()},y=()=>{f.value||(f.value=!0,document.addEventListener("keydown",U))},Y=()=>{V(),setTimeout(()=>{B(),y()})},b=()=>{!A.value&&l.value&&S.value&&(A.value=ks(l.value,S.value,()=>{!l.value||!S.value||js(l.value,S.value,{placement:c.value,middleware:[Xs(),Ks({limiter:Vi()})]}).then(({x:K,y:x})=>{if(!l.value.clientWidth){w();return}const X={left:`${K}px`,top:`${x}px`};R.value&&(X.maxWidth=`${R.value}px`,X.minWidth=`${R.value}px`),Object.assign(S.value.style,X)})}),Y())},$=()=>{s.value||(T.value=!0,b(),setTimeout(()=>{C()},100))},M=()=>{T.value?(w(),p()):$()},W=K=>{const x=K.keyCode;x===E_.enter||x===E_.space?(M(),K.preventDefault()):!T.value&&(x===E_.arrowUp||x===E_.arrowDown)&&($(),K.preventDefault())},H=()=>{f.value&&(f.value=!1,document.removeEventListener("keydown",U))};function w(){T.value=!1,D(),I(),H(),n({id:E.value})}return e.onBeforeUnmount(()=>H()),{buttonRef:l,handleKeydown:W,isOpen:T,menuParentRef:L,menuRef:S,togglePopover:M}}const c_={propsDefault:{buttonClass:void 0,caretIcon:yn,class:void 0,classMenuSearch:"a_select_menu_with_search",countMultiselect:4,dataExtra:[],exceededItemsDeletable:!0,inBody:!0,isCloseByClick:void 0,isDataSimpleArray:!1,deselectable:!0,isDeselectAll:!1,isSelectAll:!1,isSelectionCloseable:!0,keyDisabled:void 0,keyGroup:void 0,keyId:"value",keyLabel:"label",keyTitle:void 0,labelNotFound:"_A_SELECT_LABEL_NOT_FOUND_",maxCountMultiselect:void 0,menuWidthType:"as_button",modelValue:void 0,placement:"bottom-end",popperContainerId:"a_select_container",readonlyDefault:"",search:!1,searchApi:!1,searchApiKey:void 0,searchOutside:!1,searchTextInHtml:!1,searchTimeout:0,showNotFound:!0,showSelectedFirst:!1,slotName:void 0,sortOrder:void 0,sortOrderGroup:void 0,textDeselectAll:"_A_SELECT_DESELECT_ALL_",textSelectAll:"_A_SELECT_SELECT_ALL_",translateData:!1,translateGroup:!1,type:"select"}},QV={install:(_,{propsDefault:t={}}={})=>{c_.propsDefault={...c_.propsDefault,...t}}},EE={name:"ASelect",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},apiSaveId:{type:String,required:!1,default:void 0},autocomplete:{type:String,required:!1,default:void 0},buttonClass:{type:String,required:!1,default:()=>c_.propsDefault.buttonClass},buttonClassDefault:{type:[String,Object],required:!1,default:"a_form_control a_select_toggle"},caretIcon:{type:[String,Object],required:!1,default:()=>c_.propsDefault.caretIcon},change:{type:Function,required:!1,default:()=>{}},class:{type:[String,Object],required:!1,default:()=>c_.propsDefault.class},classMenuSearch:{type:[String,Object],required:!1,default:()=>c_.propsDefault.classMenuSearch},countMultiselect:{type:Number,required:!1,default:()=>c_.propsDefault.countMultiselect},data:{type:Array,required:!1,default:void 0},dataExtra:{type:Array,required:!1,default:()=>c_.propsDefault.dataExtra},mergeData:{type:Boolean,required:!1,default:!1},dependencies:{type:[Array,Object],required:!1,default:void 0},deselectable:{type:Boolean,required:!1,default:()=>c_.propsDefault.deselectable},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},errorsAll:{type:Object,required:!1,default:()=>({})},errorsClass:{type:[String,Object],required:!1,default:void 0},errorIcon:{type:[String,Object],required:!1,default:void 0},exceededItemsDeletable:{type:Boolean,required:!1,default:()=>c_.propsDefault.exceededItemsDeletable},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},exclusiveOptionLabel:{type:String,required:!1,default:"_A_SELECT_EXCLUSIVE_"},exclusiveOptionValue:{type:[String,Number,Boolean],required:!1,default:"_exclusive_"},extra:{type:Object,required:!1,default:void 0},hasCaret:{type:Boolean,required:!1,default:!0},helpText:{type:String,required:!1},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_ui_")},idPrefix:{type:String,required:!1,default:void 0},inBody:{type:Boolean,required:!1,default:()=>c_.propsDefault.inBody},isCloseByClick:{type:Boolean,required:!1,default:()=>c_.propsDefault.isCloseByClick},isDataSimpleArray:{type:Boolean,required:!1,default:()=>c_.propsDefault.isDataSimpleArray},isDeselectAll:{type:Boolean,required:!1,default:()=>c_.propsDefault.isDeselectAll},isExclusiveOptionEnabled:{type:Boolean,required:!1,default:!1,validator:(_,t)=>(t==null?void 0:t.type)!=="multiselect"?_===!1:!0},isHide:{type:Boolean,required:!1},isLabelFloat:{type:Boolean,required:!1,default:!0},isRender:{type:Boolean,required:!1,default:!0},isSelectAll:{type:Boolean,required:!1,default:()=>c_.propsDefault.isSelectAll},isSelectionCloseable:{type:Boolean,required:!1,default:()=>c_.propsDefault.isSelectionCloseable},keyDisabled:{type:String,required:!1,default:()=>c_.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>c_.propsDefault.keyGroup},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},keyId:{type:String,required:!1,default:()=>c_.propsDefault.keyId},keyLabel:{type:String,required:!1,default:()=>c_.propsDefault.keyLabel},keyLabelCallback:{type:Function,required:!1,default:void 0},keyTitle:{type:String,required:!1,default:()=>c_.propsDefault.keyTitle},keyTitleCallback:{type:Function,required:!1,default:void 0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:String,required:!1,default:void 0},labelNotFound:{type:String,required:!1,default:()=>c_.propsDefault.labelNotFound},loading:{type:Boolean,required:!1,default:!1},maxCountMultiselect:{type:Number,required:!1,default:()=>c_.propsDefault.maxCountMultiselect,validator:_=>_>0},menuWidthType:{type:String,required:!1,default:()=>c_.propsDefault.menuWidthType,validator:_=>["as_button","by_content"].indexOf(_)!==-1},mode:{type:String,default:"default",validator:_=>["default","one_per_group"].includes(_)},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{required:!1,default:null},modelValue:{type:[String,Number,Boolean,Array],required:!1,default:()=>c_.propsDefault.modelValue},options:{type:Object,required:!1,default:()=>({})},placeholder:{type:String,required:!1,default:void 0},placement:{type:String,required:!1,default:()=>c_.propsDefault.placement,validator:_=>Yt.indexOf(_)!==-1},popperContainerId:{type:String,required:!1,default:()=>c_.propsDefault.popperContainerId},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>c_.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:()=>c_.propsDefault.search},searchApi:{type:Boolean,required:!1,default:()=>c_.propsDefault.searchApi},searchApiKey:{type:String,required:!1,default:()=>c_.propsDefault.searchApiKey},searchInGroup:{type:Boolean,required:!1,default:void 0},searchOutside:{type:Boolean,required:!1,default:()=>c_.propsDefault.searchOutside},searchTextInHtml:{type:Boolean,required:!1,default:()=>c_.propsDefault.searchTextInHtml},searchTimeout:{type:Number,required:!1,default:()=>c_.propsDefault.searchTimeout},selectMenuClass:{type:[String,Object],required:!1,default:void 0},showNotFound:{type:Boolean,required:!1,default:()=>c_.propsDefault.showNotFound},showSelectedFirst:{type:Boolean,required:!1,default:()=>c_.propsDefault.showSelectedFirst},slotName:{type:String,required:!1,default:()=>c_.propsDefault.slotName},sortOrder:{type:String,required:!1,default:()=>c_.propsDefault.sortOrder,validator:_=>["asc","desc"].indexOf(_)!==-1},sortOrderGroup:{type:String,required:!1,default:()=>c_.propsDefault.sortOrderGroup,validator:_=>["asc","desc"].indexOf(_)!==-1},textDeselectAll:{type:String,required:!1,default:()=>c_.propsDefault.textDeselectAll},textSelectAll:{type:String,required:!1,default:()=>c_.propsDefault.textSelectAll},translateData:{type:Boolean,required:!1,default:()=>c_.propsDefault.translateData},translateGroup:{type:Boolean,required:!1,default:()=>c_.propsDefault.translateGroup},type:{type:String,required:!1,default:()=>c_.propsDefault.type,validator:_=>["select","multiselect"].indexOf(_)!==-1},url:{type:String,required:!1,default:void 0},urlRetrieve:{type:String,required:!1,default:void 0},urlParams:{type:Object,required:!1,default:void 0},urlRetrieveParams:{type:Object,required:!1,default:void 0}},emits:["blur","focus","onSearchOutside","open","update:modelValue","updateData"],setup(_,t){const n=e.ref(!1),E=e.toRef(_,"errorIcon"),{attributesToExcludeFromRender:a}=Ye(_),{componentStyleHide:s}=Je(_),{ariaDescribedbyLocal:o,changeModel:l,clearModel:A,errorsId:T,helpTextId:L,htmlIdLocal:S,isErrors:c,labelDescriptionId:f,onBlur:d,onFocus:R}=je(_,t),C=e.computed(()=>!!(c.value&&E.value)),{isModeOnePerGroup:I}=KV(_),{closePopup:O,openPopup:p}=Gi(),{dataAll:U,dataFromRetrieve:D,dataFromServer:V,dataExtraLocal:B,dataKeyByKeyIdLocal:y,dataLocal:Y,hasDataExtra:b}=bo(_),{loadDataFromServer:$,loadDataFromServerForRetrieve:M,loadDataFromServerForSearchAPI:W,loadingDataFromServer:H,loadingSearchApi:w,onSearchInApi:K,searchApiLocal:x,updateUrlPropsComputed:X,urlPropsComputed:r_}=Do(_,{changeModel:l,dataExtraLocal:B,dataFromRetrieve:D,dataFromServer:V}),{loadingLocal:h_}=Yo(_,{loadingDataFromServer:H}),{addPopperContainerInBody:l_,popperContainerIdSelector:N_}=LT(_);Po(t,{dataKeyByKeyIdLocal:y,dataLocal:Y});const{disabledAttribut:L_,disabledLocal:G_,disabledLocalAttribut:m_,isExclusiveOptionSelected:Q}=qV(_),{exclusiveOption:R_,exclusiveDataKeyByKeyIdLocal:o_}=kV(_),{isModelLengthLimitExceeded:b_,isModelValue:k_,isMultiselect:ae,limitExceededModelData:d_,modelValueLength:V_,modelValueMultiselectFiltered:v_}=XV(_,{dataKeyByKeyIdLocal:y}),{ariaLabelledby:z,containerId:T_,idForList:i_,tabindex:I_}=xV(_,{htmlIdLocal:S}),{dataSort:D_}=mo(_,{data:Y}),{dataExtraWithoutSelected:B_,dataSelected:F_,dataWithoutSelected:K_,exclusiveOptionWithoutSelected:j_}=zV(_,{data:D_,dataExtra:B,exclusiveOption:R_}),{dataGrouped:Le,groupsForLever:Ae,hasKeyGroup:De,keyGroupArray:Q_}=Ht(_,{data:K_}),{dataGrouped:oe,groupsForLever:fe}=Ht(_,{data:B_}),{groupsForLever:me}=Ht(_,{data:D_}),{groupsForLever:ge}=Ht(_,{data:B}),{dataGrouped:st}=Ht(_,{data:U}),Fe=e.computed(()=>K_.value.filter(Bo=>!Bo.__invalidEntry__)),ot=e.computed(()=>K_.value.filter(Bo=>Bo.__invalidEntry__)),{dataGrouped:we,groupsForLever:nt}=Ht(_,{data:Fe}),{hasNotElementsExclusiveWithSearch:Be,hasNotElementsExtraWithSearch:it,hasNotElementsWithSearch:en,idForButtonSearchOutside:$t,modelSearch:Ot,modelSearchLowerCase:xt,modelSearchOutside:qt,onSearchOutside:cr,searching:pn,searchingElements:he,searchingElementsExclusive:lt,searchingElementsExtra:tn,searchingGroupsWithSearchInGroup:nn,searchOutsideOrApi:ra,searchOutsideRef:oE,updateModelSearch:Ya,updateModelSearchOutside:iE}=ul(_,t,{data:D_,dataExtra:B,exclusiveOption:R_,groupsForLever:me,groupsForLeverExtra:ge,hasKeyGroup:De,htmlIdLocal:S,keyGroupArray:Q_,onSearchInApi:K,searchApiLocal:x}),{dataSelectedVisible:dt,searchingElementsSelected:En,searchingGroupsVisible:ga}=io({dataSelected:F_,keyGroupArray:Q_,searching:pn,searchingElements:he,searchingElementsExclusive:lt,searchingElementsExtra:tn,searchingGroupsWithSearchInGroup:nn}),Ba=e.computed(()=>[...B_.value,...K_.value,j_.value].filter(Boolean)),{dataSelectedVisible:sa}=io({dataSelected:Ba,keyGroupArray:Q_,searching:pn,searchingElements:he,searchingElementsExclusive:lt,searchingElementsExtra:tn,searchingGroupsWithSearchInGroup:nn}),{dataSelectedVisible:$a}=io({dataSelected:K_,keyGroupArray:Q_,searching:pn,searchingElements:he,searchingElementsExclusive:lt,searchingElementsExtra:tn,searchingGroupsWithSearchInGroup:nn}),{searchingGroupsVisible:Vt}=io({dataSelected:B_,keyGroupArray:Q_,searching:pn,searchingElements:he,searchingElementsExclusive:lt,searchingElementsExtra:tn,searchingGroupsWithSearchInGroup:nn}),{searchingGroupsVisible:Va}=io({dataSelected:Fe,keyGroupArray:Q_,searching:pn,searchingElements:he,searchingElementsExclusive:lt,searchingElementsExtra:tn,searchingGroupsWithSearchInGroup:nn}),{dataGrouped:oa,groupsForLever:ya}=Ht(_,{data:dt}),{buttonRef:Un,handleKeydown:Ma,isOpen:$_,menuParentRef:v,menuRef:S_,togglePopover:Y_}=ZV(_,t,{closePopup:O,htmlIdLocal:S,openPopup:p}),{deleteExceededItems:Ne,onChangeModelValue:He,onDeselectAll:Ge,onKeydownDeselectAll:At,onKeydownSelectAll:an,onSelectAll:xn}=jV(_,{changeModel:l,dataAll:U,dataGrouped:st,dataKeyByKeyIdLocal:y,disabledLocal:G_,isMultiselect:ae,isModeOnePerGroup:I,togglePopover:Y_}),{hasSelectedTitle:Fa,selectedTitle:ke}=JV(_,{dataKeyByKeyIdLocal:y,isModelLengthLimitExceeded:b_,isModelValue:k_,isModeOnePerGroup:I,isMultiselect:ae,modelValueLength:V_,modelValueMultiselectFiltered:v_}),{isDividerSelectDeselectVisible:ts}=WV(_,{isMultiselect:ae}),{destroyEventBusClickLabel:ns,initEventBusClickLabel:lL}=Tl({htmlIdLocal:S,clickLabel:Y_});return e.watch(r_,X),lL(),$(),W(),(!_.url||_.searchApi)&&M(),e.onMounted(()=>{n.value=!0,l_({className:"a_select_container"})}),e.onBeforeUnmount(()=>{ns(),O({id:S.value})}),{ariaDescribedbyLocal:o,ariaLabelledby:z,attributesToExcludeFromRender:a,buttonRef:Un,clearModel:A,componentStyleHide:s,containerId:T_,dataExtraLocal:B,dataExtraGrouped:oe,dataGrouped:Le,dataSelected:F_,dataSelectedGrouped:oa,dataSelectedVisible:dt,dataWithoutSelected:K_,dataWithoutSelectedVisible:$a,dataOptionsWithoutSelectedVisible:sa,dataGroupedValid:we,dataKeyByKeyIdLocal:y,dataLocal:Y,dataSort:D_,deleteExceededItems:Ne,disabledAttribut:L_,disabledLocal:G_,disabledLocalAttribut:m_,errorsId:T,hasErrorIcon:C,exclusiveDataKeyByKeyIdLocal:o_,exclusiveOption:R_,exclusiveOptionWithoutSelected:j_,groupsForLever:Ae,groupsForLeverExtra:fe,groupsForLeverSelected:ya,groupsForLeverValid:nt,handleKeydown:Ma,hasDataExtra:b,dataExtraWithoutSelected:B_,hasKeyGroup:De,invalidDataSort:ot,hasNotElementsExclusiveWithSearch:Be,hasNotElementsExtraWithSearch:it,hasNotElementsWithSearch:en,hasSelectedTitle:Fa,helpTextId:L,htmlIdLocal:S,idForButtonSearchOutside:$t,idForList:i_,isDividerSelectDeselectVisible:ts,isErrors:c,isExclusiveOptionSelected:Q,isModelLengthLimitExceeded:b_,isModelValue:k_,isModeOnePerGroup:I,isMounted:n,isMultiselect:ae,isOpen:$_,labelDescriptionId:f,limitExceededModelData:d_,loadingLocal:h_,loadingSearchApi:w,menuParentRef:v,menuRef:S_,modelSearch:Ot,modelSearchLowerCase:xt,modelSearchOutside:qt,modelValueLength:V_,modelValueMultiselectFiltered:v_,onBlur:d,onChangeModelValue:He,onDeselectAll:Ge,onFocus:R,onKeydownDeselectAll:At,onKeydownSelectAll:an,onSearchOutside:cr,onSelectAll:xn,popperContainerIdSelector:N_,searching:pn,searchingElements:he,searchingElementsExclusive:lt,searchingElementsExtra:tn,searchingElementsSelected:En,searchingGroupsExtraWithoutSelected:Vt,searchingGroupsSelected:ga,searchingGroupsValidWithoutSelected:Va,searchingGroupsWithSearchInGroup:nn,searchOutsideOrApi:ra,searchOutsideRef:oE,selectedTitle:ke,tabindex:I_,togglePopover:Y_,updateModelSearch:Ya,updateModelSearchOutside:iE,validDataSort:Fe}},render(){if(!this.isRender||!this.isMounted)return null;if(this.readonly)return e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,class:this.class,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,modelValue:void 0,readonlyDefault:this.readonlyDefault,required:this.required,style:this.componentStyleHide,type:this.type},this.isModelValue?()=>[this.isMultiselect?this.modelValueMultiselectFiltered.length?e.h("ul",{},[this.modelValueMultiselectFiltered.map(E=>e.h(Wr,{key:E,alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[E]||{},labelNotFound:this.labelNotFound,showNotFound:this.showNotFound,slotName:this.slotName,tag:"li"},this.$slots))]):"":e.h(Wr,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[this.modelValue]||{},labelNotFound:this.labelNotFound,showNotFound:this.showNotFound,slotName:this.slotName},this.$slots)]:"");const _=this.invalidDataSort.length>0,t=!!(this.validDataSort.length||this.exclusiveOptionWithoutSelected&&!this.dataExtraWithoutSelected.length),n=()=>_?e.h("div",{class:"a_select__invalid_entries"},[t&&e.h("div",{class:"a_select__divider",ariaHidden:!0}),e.h(f_,{alwaysTranslate:this.alwaysTranslate,class:"text-muted",tag:"strong",text:"_A_SELECT_GROUP_INVALID_ENTRIES_"}),e.h("div",{class:"text-muted"},[...this.invalidDataSort.map((E,a)=>e.h(xr,{key:E[C_],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:E,disabled:this.disabledLocal,itemIndex:this.validDataSort.length+a,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElements,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots))])]):null;return e.h("div",{...this.$attrs,class:this.class,style:this.componentStyleHide,...this.attributesToExcludeFromRender},[e.h("div",{class:["a_form_element__parent",{a_form_element__parent_float_has_error_icon:this.hasErrorIcon,a_select__parent_has_error_icon:this.hasErrorIcon,a_form_element__parent_float:this.isLabelFloat,a_form_element__parent_not_empty:this.isModelValue||this.isOpen}]},[this.label&&e.h(qe,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,extra:this.extra,isLabelFloat:this.isLabelFloat,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,loading:this.loadingLocal,required:this.required,type:this.type,isError:this.isErrors}),e.h(ut,{id:this.labelDescriptionId,alwaysTranslate:this.alwaysTranslate,html:this.labelDescription,extra:this.extra,isLabelFloat:this.isLabelFloat}),e.h("div",{class:"a_form_element"},[e.h("div",{id:this.containerId,ref:"ui_select",class:"a_select",role:"application"},[e.h("div",{ref:"buttonRef",id:this.htmlIdLocal,autocomplete:this.autocomplete,class:[this.buttonClassDefault,this.buttonClass,{disabled:this.disabled,a_select_toggle_closeable:this.isMultiselect&&this.isSelectionCloseable&&this.isModelValue,a_select_toggle_has_error_icon:this.hasErrorIcon,a_form_control_invalid:this.isErrors}],"aria-labelledby":this.ariaLabelledby,role:"combobox",tabindex:this.tabindex,"aria-haspopup":"listbox",ariaExpanded:this.isOpen,ariaRequired:this.required,ariaDisabled:this.disabledLocal,ariaInvalid:this.isErrors,"aria-describedby":this.ariaDescribedbyLocal,title:this.hasSelectedTitle?this.selectedTitle:void 0,onClick:this.togglePopover,onKeydown:this.handleKeydown,onFocus:this.onFocus,onBlur:this.onBlur},[this.hasErrorIcon?e.h(_e,{icon:this.errorIcon,class:"a_input__icon_error a_select__error_icon"}):"",this.$slots.fixedPlaceholder?this.$slots.fixedPlaceholder({dataKeyByKeyId:this.dataKeyByKeyIdLocal,modelValue:this.modelValue}):this.isModelValue?this.isMultiselect?this.isSelectionCloseable?e.h("ul",{class:"a_select__ul_closeable"},[_c(this.modelValueMultiselectFiltered,this.countMultiselect).map((E,a)=>e.h(af,{key:a,alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[E]||this.exclusiveDataKeyByKeyIdLocal[E]||{},disabled:this.disabled,keyGroup:this.keyGroup,keyGroupLabelCallback:this.keyGroupLabelCallback,labelNotFound:this.labelNotFound,showNotFound:this.showNotFound,mode:this.mode,slotName:this.slotName,translateGroup:this.translateGroup,onChangeModelValue:this.onChangeModelValue},this.$slots)),this.isModelLengthLimitExceeded&&e.h(af,{key:this.countMultiselect,alwaysTranslate:this.alwaysTranslate,data:this.limitExceededModelData,disabled:this.disabledLocal,keyGroup:this.keyGroup,keyGroupLabelCallback:this.keyGroupLabelCallback,mode:this.mode,hideDeleteButton:!this.exceededItemsDeletable,translateGroup:this.translateGroup,onChangeModelValue:this.deleteExceededItems})]):e.h("span",{class:"a_select__value__label"},[this.isModelLengthLimitExceeded?e.h(f_,{alwaysTranslate:this.alwaysTranslate,text:"_A_SELECT_SELECTED_{{count}}_",extra:{count:this.modelValueLength}}):this.modelValueMultiselectFiltered.map((E,a)=>e.h("span",{key:a},[e.h("span",null,a!==0?", ":""),e.h(Wr,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[E]||{},labelNotFound:this.labelNotFound,showNotFound:this.showNotFound,slotName:this.slotName},this.$slots)]))]):e.h(Wr,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[this.modelValue]||{},class:"a_select__value__label",labelNotFound:this.labelNotFound,showNotFound:this.showNotFound,slotName:this.slotName},this.$slots):e.h(f_,{tag:"span",text:this.placeholder}),e.h(e.Teleport,{to:this.popperContainerIdSelector,disabled:!this.inBody},[e.h("div",{ref:"menuParentRef",id:this.idForList,style:this.isOpen?"":"display: none;","aria-hidden":!this.isOpen,role:"application"},[e.h("div",{ref:"menuRef",class:["a_select_menu",{a_select_menu_by_content:this.menuWidthType==="by_content"},this.selectMenuClass,this.search||this.searchOutsideOrApi?this.classMenuSearch:void 0],role:"listbox","aria-labelledby":this.htmlIdLocal,onClick:E=>E.stopPropagation()},[this.searchOutsideOrApi&&e.h("div",{class:"a_select__search"},[e.h("form",{onSubmit:this.onSearchOutside},[e.h("div",{class:"a_select__search__group"},[e.h(Bt,{alwaysTranslate:this.alwaysTranslate,label:"_A_SELECT_SEARCH_",inputClass:"a_select__element_clickable",modelValue:this.modelSearchOutside,modelUndefined:"","onUpdate:modelValue":this.updateModelSearchOutside}),e.h(O_,{alwaysTranslate:this.alwaysTranslate,ariaDisabled:this.loadingSearchApi,disabled:this.disabledLocal,class:"a_btn a_btn_primary a_select__element_clickable",type:"submit",iconLeft:Zs,loadingAlign:"left"})])])]),this.search&&e.h("div",{class:"a_select__search"},[e.h(Bt,{alwaysTranslate:this.alwaysTranslate,label:"_A_SELECT_SEARCH_",inputClass:"a_select__element_clickable",modelValue:this.modelSearch,modelUndefined:"","onUpdate:modelValue":this.updateModelSearch})]),(this.searchOutsideOrApi||this.search)&&e.h("div",{class:"a_select__divider",ariaHidden:!0}),e.h("div",{class:"a_select_menu__child"},[this.isMultiselect&&this.isSelectAll&&e.h("div",{class:["a_select__menu__link a_select__menu__link_selected a_select__element_clickable",{a_select__menu__link_disabled:this.disabledLocal}],disabled:this.disabledLocalAttribut,role:"option",tabindex:"-1",onClick:this.onSelectAll,onKeydown:this.onKeydownSelectAll},[e.h("span",{class:"a_select__menu__link__icon_box"},[e.h(_e,{icon:fT})]),e.h(f_,{html:this.textSelectAll,tag:"span"})]),this.isMultiselect&&this.isDeselectAll&&e.h("div",{class:["a_select__menu__link a_select__menu__link_selected a_select__element_clickable",{a_select__menu__link_disabled:this.disabled}],disabled:this.disabledAttribut,role:"option",tabindex:"-1",onClick:this.onDeselectAll,onKeydown:this.onKeydownDeselectAll},[e.h("span",{class:"a_select__menu__link__icon_box"},[e.h(_e,{icon:Mn})]),e.h(f_,{html:this.textDeselectAll,tag:"span"})]),this.isDividerSelectDeselectVisible&&e.h("div",{class:"a_select__divider",ariaHidden:!0}),!!this.dataSelectedVisible.length&&e.h("div",{class:"a_select__selected_first"},[...this.hasKeyGroup?[e.h(Oa,{id:`${this.htmlIdLocal}_selected_lev_0`,alwaysTranslate:this.alwaysTranslate,dataGrouped:this.dataSelectedGrouped,disabled:this.disabled,groupsForLever:this.groupsForLeverSelected,isErrors:this.isErrors,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,levelIndex:0,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElementsSelected,searchingGroups:this.searchingGroupsSelected,searchingGroupsWithSearchInGroup:this.searchingGroupsWithSearchInGroup,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)]:this.dataSelectedVisible.map((E,a)=>e.h(xr,{key:E[C_],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:E,disabled:this.disabled,itemIndex:a,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElementsSelected,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots))]),!!this.dataSelectedVisible.length&&!!this.dataOptionsWithoutSelectedVisible.length&&e.h("div",{class:"a_select__divider",ariaHidden:!0}),this.loadingLocal||this.loadingSearchApi?e.h(qr):"",this.isMultiselect&&this.exclusiveOptionWithoutSelected&&e.h("div",{},[e.h(xr,{key:this.exclusiveOptionValue,id:this.htmlIdLocal,alwaysTranslate:!0,dataItem:this.exclusiveOptionWithoutSelected,disabled:!1,itemIndex:0,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElementsExclusive,searchTextInHtml:this.searchTextInHtml,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)]),!!this.dataExtraWithoutSelected.length&&e.h("div",{},[...this.hasKeyGroup?[e.h(Oa,{id:`${this.htmlIdLocal}_extra_lev_0`,alwaysTranslate:this.alwaysTranslate,dataGrouped:this.dataExtraGrouped,disabled:this.disabledLocal,groupsForLever:this.groupsForLeverExtra,isErrors:this.isErrors,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,levelIndex:0,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElementsExtra,searchingGroups:this.searchingGroupsExtraWithoutSelected,searchingGroupsWithSearchInGroup:this.searchingGroupsWithSearchInGroup,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)]:this.dataExtraWithoutSelected.map((E,a)=>e.h(xr,{key:E[C_],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:E,disabled:this.disabledLocal,searching:this.searching,searchingElements:this.searchingElementsExtra,searchTextInHtml:this.searchTextInHtml,itemIndex:this.isExclusiveOptionEnabled?a+1:a,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)),!!this.dataWithoutSelectedVisible.length&&!this.hasNotElementsExtraWithSearch&&!this.hasNotElementsExclusiveWithSearch&&e.h("div",{class:"a_select__divider",ariaHidden:!0})]),e.h("div",{},this.hasKeyGroup?[e.h(Oa,{id:`${this.htmlIdLocal}_lev_0`,alwaysTranslate:this.alwaysTranslate,dataGrouped:this.dataGroupedValid,disabled:this.disabledLocal,groupsForLever:this.groupsForLeverValid,isErrors:this.isErrors,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,levelIndex:0,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElements,searchingGroups:this.searchingGroupsValidWithoutSelected,searchingGroupsWithSearchInGroup:this.searchingGroupsWithSearchInGroup,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)]:[e.h("div",{},[...this.validDataSort.map((E,a)=>e.h(xr,{key:E[C_],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:E,disabled:this.disabledLocal,itemIndex:a,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElements,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots))])]),n(),!this.dataWithoutSelected.length&&!this.dataExtraWithoutSelected.length&&!this.exclusiveOptionWithoutSelected&&!this.dataSelected.length||this.hasNotElementsWithSearch?e.h(f_,{alwaysTranslate:this.alwaysTranslate,class:"a_form__not_elements",text:"_A_SELECT_HAS_NOT_ELEMENTS_WITH_SEARCH_"}):""])])])]),this.hasCaret?e.h("span",{class:"a_caret"},[e.h(_e,{icon:this.caretIcon})]):""])])]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])])}},_y={name:"ASelectIconSlot",inheritAttrs:!1,props:{inDropdown:{type:Boolean,required:!0},icon:{type:String,required:!0},label:{type:String,required:!1,default:void 0},labelFiltered:{type:String,required:!1,default:void 0}},render(){return e.h("span",null,[e.h(_e,{icon:this.icon}),this.inDropdown?e.withDirectives(e.h("span",{class:"a_ml_2"}),[[et,this.labelFiltered]]):e.h("span",{class:"a_ml_2"},this.label)])}};function ey({emit:_}){return{blur:s=>{_("blur",s)},focus:s=>{_("focus",s)},open:s=>{_("open",s)},updateModelValue:s=>{_("update:modelValue",s)}}}function ty(_){const t=e.toRef(_,"data"),n=e.computed(()=>{const a=e_(hs.value.icons);delete a.Aloha,delete a._NoImage;const s=[];return j(a,(o,l)=>{s.push({value:l,label:l})}),s});return{iconsLocal:e.computed(()=>t.value||n.value)}}function ny(_){const t=e.toRef(_,"type");return{typeLocal:e.computed(()=>t.value==="selectIcon"?"select":t.value==="multiselectIcon"?"multiselect":t.value)}}const gT={name:"ASelectIcon",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},buttonClass:{type:String,required:!1,default:()=>c_.propsDefault.buttonClass},buttonClassDefault:{type:[String,Object],required:!1,default:"a_form_control a_select_toggle"},caretIcon:{type:[String,Object],required:!1,default:()=>c_.propsDefault.caretIcon},change:{type:Function,required:!1,default:()=>{}},class:{type:[String,Object],required:!1},countMultiselect:{type:Number,required:!1,default:()=>c_.propsDefault.countMultiselect},data:{type:Array,required:!1,default:void 0},dependencies:{type:[Array,Object],required:!1,default:void 0},deselectable:{type:Boolean,required:!1,default:()=>c_.propsDefault.deselectable},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},errorsAll:{type:Object,required:!1,default:()=>({})},exceededItemsDeletable:{type:Boolean,required:!1,default:()=>c_.propsDefault.exceededItemsDeletable},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},hasCaret:{type:Boolean,required:!1,default:!0},helpText:{type:String,required:!1},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_select_icon_")},idPrefix:{type:String,required:!1,default:void 0},inBody:{type:Boolean,required:!1,default:()=>c_.propsDefault.inBody},isCloseByClick:{type:Boolean,required:!1,default:()=>c_.propsDefault.isCloseByClick},isDeselectAll:{type:Boolean,required:!1,default:()=>c_.propsDefault.isDeselectAll},isHide:{type:Boolean,required:!1},isLabelFloat:{type:Boolean,required:!1,default:!0},isRender:{type:Boolean,required:!1,default:!0},isSelectAll:{type:Boolean,required:!1,default:()=>c_.propsDefault.isSelectAll},isSelectionCloseable:{type:Boolean,required:!1,default:()=>c_.propsDefault.isSelectionCloseable},keyDisabled:{type:String,required:!1,default:()=>c_.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>c_.propsDefault.keyGroup},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},keyId:{type:String,required:!1,default:"value"},keyLabel:{type:String,required:!1,default:"label"},keyLabelCallback:{type:Function,required:!1,default:void 0},keyTitle:{type:String,required:!1,default:()=>c_.propsDefault.keyTitle},keyTitleCallback:{type:Function,required:!1,default:void 0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:String,required:!1,default:void 0},maxCountMultiselect:{type:Number,required:!1,default:()=>c_.propsDefault.maxCountMultiselect,validator:_=>_>0},menuWidthType:{type:String,required:!1,default:()=>c_.propsDefault.menuWidthType,validator:_=>["as_button","by_content"].indexOf(_)!==-1},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{required:!1,default:null},modelValue:{type:[String,Array],required:!1,default:()=>c_.propsDefault.modelValue},options:{type:Object,required:!1,default:()=>({})},placeholder:{type:String,required:!1,default:void 0},placement:{type:String,required:!1,default:()=>c_.propsDefault.placement,validator:_=>Yt.indexOf(_)!==-1},popperContainerId:{type:String,required:!1,default:()=>c_.propsDefault.popperContainerId},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>c_.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:!0},searchTextInHtml:{type:Boolean,required:!1,default:()=>c_.propsDefault.searchTextInHtml},searchTimeout:{type:Number,required:!1,default:()=>c_.propsDefault.searchTimeout},selectMenuClass:{type:[String,Object],required:!1,default:void 0},slotName:{type:String,required:!1,default:"icon"},sortOrder:{type:String,required:!1,default:()=>c_.propsDefault.sortOrder,validator:_=>["asc","desc"].indexOf(_)!==-1},textDeselectAll:{type:String,required:!1,default:()=>c_.propsDefault.textDeselectAll},textSelectAll:{type:String,required:!1,default:()=>c_.propsDefault.textSelectAll},translateGroup:{type:Boolean,required:!1,default:()=>c_.propsDefault.translateGroup},type:{type:String,required:!1,default:()=>c_.propsDefault.type,validator:_=>["select","selectIcon","multiselect","multiselectIcon"].indexOf(_)!==-1}},emits:["blur","focus","open","update:modelValue"],setup(_,t){const{iconsLocal:n}=ty(_),{blur:E,focus:a,open:s,updateModelValue:o}=ey(t),{typeLocal:l}=ny(_);return{blur:E,focus:a,iconsLocal:n,open:s,typeLocal:l,updateModelValue:o}},render(){return e.h(EE,{...this.$props,type:this.typeLocal,data:this.iconsLocal,onBlur:this.blur,onFocus:this.focus,onOpen:this.open,"onUpdate:modelValue":this.updateModelValue},{icon:({item:_,label:t,labelFiltered:n,inDropdown:E})=>e.h(_y,{icon:_.value,label:t,labelFiltered:n,inDropdown:E}),...this.$slots})}},Kr={propsDefault:{},cssClasses:[{label:"_A_SELECT_STYLES_VALUE_D_INLINE_",value:"a_d_inline",group:"display",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_",value:"a_d_inline_mobile",group:"display",subGroup:"mobile",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_",value:"a_d_inline_tablet",group:"display",subGroup:"tablet",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_",value:"a_d_inline_touch",group:"display",subGroup:"touch",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_",value:"a_d_inline_desktop",group:"display",subGroup:"desktop",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_",value:"a_d_inline_widescreen",group:"display",subGroup:"widescreen",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_",value:"a_d_inline_fullhd",group:"display",subGroup:"fullhd",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_",value:"a_d_inline_large",group:"display",subGroup:"large",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_BLOCK_",value:"a_d_inline_block",group:"display",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_BLOCK_",value:"a_d_inline_block_mobile",group:"display",subGroup:"mobile",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_BLOCK_",value:"a_d_inline_block_tablet",group:"display",subGroup:"tablet",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_BLOCK_",value:"a_d_inline_block_touch",group:"display",subGroup:"touch",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_BLOCK_",value:"a_d_inline_block_desktop",group:"display",subGroup:"desktop",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_BLOCK_",value:"a_d_inline_block_widescreen",group:"display",subGroup:"widescreen",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_BLOCK_",value:"a_d_inline_block_fullhd",group:"display",subGroup:"fullhd",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_BLOCK_",value:"a_d_inline_block_large",group:"display",subGroup:"large",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_D_BLOCK_",value:"a_d_block",group:"display",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_"},{label:"_A_SELECT_STYLES_VALUE_D_BLOCK_",value:"a_d_block_mobile",group:"display",subGroup:"mobile",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_D_BLOCK_",value:"a_d_block_tablet",group:"display",subGroup:"tablet",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_D_BLOCK_",value:"a_d_block_touch",group:"display",subGroup:"touch",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_D_BLOCK_",value:"a_d_block_desktop",group:"display",subGroup:"desktop",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_D_BLOCK_",value:"a_d_block_widescreen",group:"display",subGroup:"widescreen",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_D_BLOCK_",value:"a_d_block_fullhd",group:"display",subGroup:"fullhd",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_D_BLOCK_",value:"a_d_block_large",group:"display",subGroup:"large",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_D_FLEX_",value:"a_d_flex",group:"display",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_"},{label:"_A_SELECT_STYLES_VALUE_D_FLEX_",value:"a_d_flex_mobile",group:"display",subGroup:"mobile",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_D_FLEX_",value:"a_d_flex_tablet",group:"display",subGroup:"tablet",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_D_FLEX_",value:"a_d_flex_touch",group:"display",subGroup:"touch",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_D_FLEX_",value:"a_d_flex_desktop",group:"display",subGroup:"desktop",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_D_FLEX_",value:"a_d_flex_widescreen",group:"display",subGroup:"widescreen",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_D_FLEX_",value:"a_d_flex_fullhd",group:"display",subGroup:"fullhd",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_D_FLEX_",value:"a_d_flex_large",group:"display",subGroup:"large",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_FLEX_",value:"a_d_inline_flex",group:"display",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_FLEX_",value:"a_d_inline_flex_mobile",group:"display",subGroup:"mobile",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_FLEX_",value:"a_d_inline_flex_tablet",group:"display",subGroup:"tablet",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_FLEX_",value:"a_d_inline_flex_touch",group:"display",subGroup:"touch",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_FLEX_",value:"a_d_inline_flex_desktop",group:"display",subGroup:"desktop",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_FLEX_",value:"a_d_inline_flex_widescreen",group:"display",subGroup:"widescreen",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_FLEX_",value:"a_d_inline_flex_fullhd",group:"display",subGroup:"fullhd",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_D_INLINE_FLEX_",value:"a_d_inline_flex_large",group:"display",subGroup:"large",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_D_NONE_",value:"a_d_none",group:"display",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_"},{label:"_A_SELECT_STYLES_VALUE_D_NONE_",value:"a_d_none_mobile",group:"display",subGroup:"mobile",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_D_NONE_",value:"a_d_none_tablet",group:"display",subGroup:"tablet",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_D_NONE_",value:"a_d_none_touch",group:"display",subGroup:"touch",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_D_NONE_",value:"a_d_none_desktop",group:"display",subGroup:"desktop",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_D_NONE_",value:"a_d_none_widescreen",group:"display",subGroup:"widescreen",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_D_NONE_",value:"a_d_none_fullhd",group:"display",subGroup:"fullhd",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_D_NONE_",value:"a_d_none_large",group:"display",subGroup:"large",groupName:"_A_SELECT_STYLES_GROUP_DISPLAY_",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_FLEX_ROW_",value:"a_flex_row",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"flex_direction",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FLEX_DIRECTION_"},{label:"_A_SELECT_STYLES_VALUE_FLEX_COLUMN_",value:"a_flex_column",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"flex_direction",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FLEX_DIRECTION_"},{label:"_A_SELECT_STYLES_VALUE_FLEX_ROW_REVERSE_",value:"a_flex_row_reverse",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"flex_direction",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FLEX_DIRECTION_"},{label:"_A_SELECT_STYLES_VALUE_FLEX_COLUMN_REVERSE_",value:"a_flex_column_reverse",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"flex_direction",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FLEX_DIRECTION_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_CONTENT_START_",value:"a_justify_content_start",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_CONTENT_END_",value:"a_justify_content_end",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_CONTENT_CENTER_",value:"a_justify_content_center",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_CONTENT_BETWEEN_",value:"a_justify_content_between",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_CONTENT_AROUND_",value:"a_justify_content_around",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_CONTENT_EVENLY_",value:"a_justify_content_evenly",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_ITEMS_START_",value:"a_align_items_start",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_items",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_ITEMS_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_ITEMS_END_",value:"a_align_items_end",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_items",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_ITEMS_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_ITEMS_CENTER_",value:"a_align_items_center",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_items",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_ITEMS_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_ITEMS_BASELINE_",value:"a_align_items_baseline",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_items",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_ITEMS_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_ITEMS_STRETCH_",value:"a_align_items_stretch",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_items",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_ITEMS_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_SELF_AUTO_",value:"a_align_self_auto",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_SELF_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_SELF_START_",value:"a_align_self_start",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_SELF_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_SELF_END_",value:"a_align_self_end",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_SELF_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_SELF_CENTER_",value:"a_align_self_center",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_SELF_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_SELF_BASELINE_",value:"a_align_self_baseline",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_SELF_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_SELF_STRETCH_",value:"a_align_self_stretch",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_SELF_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_SELF_AUTO_",value:"a_justify_self_auto",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_SELF_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_SELF_START_",value:"a_justify_self_start",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_SELF_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_SELF_END_",value:"a_justify_self_end",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_SELF_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_SELF_CENTER_",value:"a_justify_self_center",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_SELF_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_SELF_BASELINE_",value:"a_justify_self_baseline",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_SELF_"},{label:"_A_SELECT_STYLES_VALUE_JUSTIFY_SELF_STRETCH_",value:"a_justify_self_stretch",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"justify_self",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_JUSTIFY_SELF_"},{label:"_A_SELECT_STYLES_VALUE_FLEX_WRAP_",value:"a_flex_wrap",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"flex_wrap",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FLEX_WRAP_"},{label:"_A_SELECT_STYLES_VALUE_FLEX_NOWRAP_",value:"a_flex_nowrap",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"flex_wrap",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FLEX_WRAP_"},{label:"_A_SELECT_STYLES_VALUE_FLEX_WRAP_REVERSE_",value:"a_flex_wrap_reverse",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"flex_wrap",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FLEX_WRAP_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_CONTENT_START_",value:"a_align_content_start",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_CONTENT_END_",value:"a_align_content_end",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_CONTENT_CENTER_",value:"a_align_content_center",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_CONTENT_BETWEEN_",value:"a_align_content_between",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_CONTENT_AROUND_",value:"a_align_content_around",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_ALIGN_CONTENT_STRETCH_",value:"a_align_content_stretch",group:"flex",groupName:"_A_SELECT_STYLES_GROUP_FLEX_",subGroup:"align_content",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_ALIGN_CONTENT_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LEFT_",value:"a_text_left",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LEFT_",value:"a_text_left_mobile",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"mobile",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LEFT_",value:"a_text_left_tablet",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"tablet",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LEFT_",value:"a_text_left_touch",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"touch",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LEFT_",value:"a_text_left_desktop",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"desktop",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LEFT_",value:"a_text_left_widescreen",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"widescreen",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LEFT_",value:"a_text_left_fullhd",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"fullhd",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LEFT_",value:"a_text_left_large",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"large",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CENTER_",value:"a_text_center",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CENTER_",value:"a_text_center_mobile",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"mobile",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CENTER_",value:"a_text_center_tablet",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"tablet",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CENTER_",value:"a_text_center_touch",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"touch",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CENTER_",value:"a_text_center_desktop",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"desktop",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CENTER_",value:"a_text_center_widescreen",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"widescreen",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CENTER_",value:"a_text_center_fullhd",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"fullhd",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CENTER_",value:"a_text_center_large",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"large",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_RIGHT_",value:"a_text_right",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_RIGHT_",value:"a_text_right_mobile",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"mobile",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_RIGHT_",value:"a_text_right_tablet",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"tablet",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_RIGHT_",value:"a_text_right_touch",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"touch",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_RIGHT_",value:"a_text_right_desktop",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"desktop",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_RIGHT_",value:"a_text_right_widescreen",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"widescreen",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_RIGHT_",value:"a_text_right_fullhd",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"fullhd",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_RIGHT_",value:"a_text_right_large",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"large",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_JUSTIFY_",value:"a_text_justify",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_JUSTIFY_",value:"a_text_justify_mobile",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"mobile",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_MOBILE_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_JUSTIFY_",value:"a_text_justify_tablet",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"tablet",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TABLET_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_JUSTIFY_",value:"a_text_justify_touch",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"touch",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TOUCH_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_JUSTIFY_",value:"a_text_justify_desktop",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"desktop",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_DESKTOP_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_JUSTIFY_",value:"a_text_justify_widescreen",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"widescreen",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_WIDESCREEN_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_JUSTIFY_",value:"a_text_justify_fullhd",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"fullhd",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_FULLHD_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_JUSTIFY_",value:"a_text_justify_large",group:"text_align",groupName:"_A_SELECT_STYLES_GROUP_TEXT_ALIGN_",subGroup:"large",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_LARGE_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_WRAP_",value:"a_text_wrap",group:"text_wrapping",groupName:"_A_SELECT_STYLES_GROUP_TEXT_WRAPPING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_NOWRAP_",value:"a_text_nowrap",group:"text_wrapping",groupName:"_A_SELECT_STYLES_GROUP_TEXT_WRAPPING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_BREAK_",value:"a_text_break",group:"text_wrapping",groupName:"_A_SELECT_STYLES_GROUP_TEXT_WRAPPING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_WRAP_HYPHENS_",value:"a_text_wrap_hyphens",group:"text_wrapping",groupName:"_A_SELECT_STYLES_GROUP_TEXT_WRAPPING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_TRUNCATE_",value:"a_text_truncate",group:"text_wrapping",groupName:"_A_SELECT_STYLES_GROUP_TEXT_WRAPPING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CLAMP_",value:"a_text_clamp",group:"line_limiting",groupName:"_A_SELECT_STYLES_GROUP_LINE_LIMITING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CLAMP_2_",value:"a_text_clamp a_text_clamp_2",group:"line_limiting",groupName:"_A_SELECT_STYLES_GROUP_LINE_LIMITING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CLAMP_3_",value:"a_text_clamp a_text_clamp_3",group:"line_limiting",groupName:"_A_SELECT_STYLES_GROUP_LINE_LIMITING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CLAMP_4_",value:"a_text_clamp a_text_clamp_4",group:"line_limiting",groupName:"_A_SELECT_STYLES_GROUP_LINE_LIMITING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CLAMP_5_",value:"a_text_clamp a_text_clamp_5",group:"line_limiting",groupName:"_A_SELECT_STYLES_GROUP_LINE_LIMITING_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LOWERCASE_",value:"a_text_lowercase",group:"text_transform",groupName:"_A_SELECT_STYLES_GROUP_TEXT_TRANSFORM_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_UPPERCASE_",value:"a_text_uppercase",group:"text_transform",groupName:"_A_SELECT_STYLES_GROUP_TEXT_TRANSFORM_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_CAPITALIZE_",value:"a_text_capitalize",group:"text_transform",groupName:"_A_SELECT_STYLES_GROUP_TEXT_TRANSFORM_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_UNDERLINE_",value:"a_text_underline",group:"text_transform",groupName:"_A_SELECT_STYLES_GROUP_TEXT_TRANSFORM_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LINE_THROUGH_",value:"a_text_line_through",group:"text_transform",groupName:"_A_SELECT_STYLES_GROUP_TEXT_TRANSFORM_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_DECORATION_NONE_",value:"a_text_decoration_none",group:"text_transform",groupName:"_A_SELECT_STYLES_GROUP_TEXT_TRANSFORM_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_BOLD_",value:"a_text_bold",group:"font_weight",groupName:"_A_SELECT_STYLES_GROUP_FONT_WEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_BOLDER_",value:"a_text_bolder",group:"font_weight",groupName:"_A_SELECT_STYLES_GROUP_FONT_WEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_SEMIBOLD_",value:"a_text_semibold",group:"font_weight",groupName:"_A_SELECT_STYLES_GROUP_FONT_WEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LIGHT_",value:"a_text_light",group:"font_weight",groupName:"_A_SELECT_STYLES_GROUP_FONT_WEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_LIGHTER_",value:"a_text_lighter",group:"font_weight",groupName:"_A_SELECT_STYLES_GROUP_FONT_WEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_ITALIC_",value:"a_text_italic",group:"font_weight",groupName:"_A_SELECT_STYLES_GROUP_FONT_WEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_TEXT_NORMAL_",value:"a_text_normal",group:"font_weight",groupName:"_A_SELECT_STYLES_GROUP_FONT_WEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_LINE_HEIGHT_1_",value:"a_line_height_1",group:"line_height",groupName:"_A_SELECT_STYLES_GROUP_LINE_HEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_LINE_HEIGHT_SMALL_",value:"a_line_height_small",group:"line_height",groupName:"_A_SELECT_STYLES_GROUP_LINE_HEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_LINE_HEIGHT_BASE_",value:"a_line_height_base",group:"line_height",groupName:"_A_SELECT_STYLES_GROUP_LINE_HEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_LINE_HEIGHT_LARGE_",value:"a_line_height_large",group:"line_height",groupName:"_A_SELECT_STYLES_GROUP_LINE_HEIGHT_"},{label:"_A_SELECT_STYLES_VALUE_FS_1_",value:"a_fs_1",group:"font_size",groupName:"_A_SELECT_STYLES_GROUP_FONT_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_FS_2_",value:"a_fs_2",group:"font_size",groupName:"_A_SELECT_STYLES_GROUP_FONT_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_FS_3_",value:"a_fs_3",group:"font_size",groupName:"_A_SELECT_STYLES_GROUP_FONT_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_FS_4_",value:"a_fs_4",group:"font_size",groupName:"_A_SELECT_STYLES_GROUP_FONT_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_FS_5_",value:"a_fs_5",group:"font_size",groupName:"_A_SELECT_STYLES_GROUP_FONT_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_FS_6_",value:"a_fs_6",group:"font_size",groupName:"_A_SELECT_STYLES_GROUP_FONT_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_FS_7_",value:"a_fs_7",group:"font_size",groupName:"_A_SELECT_STYLES_GROUP_FONT_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_M_1_",value:"a_m_1",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MT_1_",value:"a_mt_1",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MR_1_",value:"a_mr_1",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MB_1_",value:"a_mb_1",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_ML_1_",value:"a_ml_1",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MX_1_",value:"a_mx_1",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MY_1_",value:"a_my_1",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_M_2_",value:"a_m_2",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MT_2_",value:"a_mt_2",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MR_2_",value:"a_mr_2",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MB_2_",value:"a_mb_2",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_ML_2_",value:"a_ml_2",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MX_2_",value:"a_mx_2",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MY_2_",value:"a_my_2",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_M_3_",value:"a_m_3",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MT_3_",value:"a_mt_3",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MR_3_",value:"a_mr_3",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MB_3_",value:"a_mb_3",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_ML_3_",value:"a_ml_3",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MX_3_",value:"a_mx_3",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MY_3_",value:"a_my_3",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_M_4_",value:"a_m_4",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MT_4_",value:"a_mt_4",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MR_4_",value:"a_mr_4",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MB_4_",value:"a_mb_4",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_ML_4_",value:"a_ml_4",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MX_4_",value:"a_mx_4",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MY_4_",value:"a_my_4",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_M_5_",value:"a_m_5",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MT_5_",value:"a_mt_5",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MR_5_",value:"a_mr_5",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MB_5_",value:"a_mb_5",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_ML_5_",value:"a_ml_5",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MX_5_",value:"a_mx_5",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MY_5_",value:"a_my_5",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_M_6_",value:"a_m_6",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MT_6_",value:"a_mt_6",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MR_6_",value:"a_mr_6",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MB_6_",value:"a_mb_6",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_ML_6_",value:"a_ml_6",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MX_6_",value:"a_mx_6",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MY_6_",value:"a_my_6",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_M_AUTO_",value:"a_m_auto",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MT_AUTO_",value:"a_mt_auto",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MR_AUTO_",value:"a_mr_auto",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MB_AUTO_",value:"a_mb_auto",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_ML_AUTO_",value:"a_ml_auto",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MX_AUTO_",value:"a_mx_auto",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MY_AUTO_",value:"a_my_auto",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_M_0_",value:"a_m_0",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MT_0_",value:"a_mt_0",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MR_0_",value:"a_mr_0",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MB_0_",value:"a_mb_0",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_ML_0_",value:"a_ml_0",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MX_0_",value:"a_mx_0",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_MY_0_",value:"a_my_0",group:"margin",groupName:"_A_SELECT_STYLES_GROUP_MARGIN_"},{label:"_A_SELECT_STYLES_VALUE_P_1_",value:"a_p_1",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PT_1_",value:"a_pt_1",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PR_1_",value:"a_pr_1",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PB_1_",value:"a_pb_1",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PL_1_",value:"a_pl_1",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PX_1_",value:"a_px_1",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PY_1_",value:"a_py_1",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_P_2_",value:"a_p_2",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PT_2_",value:"a_pt_2",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PR_2_",value:"a_pr_2",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PB_2_",value:"a_pb_2",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PL_2_",value:"a_pl_2",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PX_2_",value:"a_px_2",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PY_2_",value:"a_py_2",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_P_3_",value:"a_p_3",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PT_3_",value:"a_pt_3",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PR_3_",value:"a_pr_3",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PB_3_",value:"a_pb_3",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PL_3_",value:"a_pl_3",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PX_3_",value:"a_px_3",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PY_3_",value:"a_py_3",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_P_4_",value:"a_p_4",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PT_4_",value:"a_pt_4",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PR_4_",value:"a_pr_4",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PB_4_",value:"a_pb_4",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PL_4_",value:"a_pl_4",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PX_4_",value:"a_px_4",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PY_4_",value:"a_py_4",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_P_5_",value:"a_p_5",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PT_5_",value:"a_pt_5",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PR_5_",value:"a_pr_5",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PB_5_",value:"a_pb_5",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PL_5_",value:"a_pl_5",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PX_5_",value:"a_px_5",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PY_5_",value:"a_py_5",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_P_6_",value:"a_p_6",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PT_6_",value:"a_pt_6",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PR_6_",value:"a_pr_6",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PB_6_",value:"a_pb_6",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PL_6_",value:"a_pl_6",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PX_6_",value:"a_px_6",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PY_6_",value:"a_py_6",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_P_AUTO_",value:"a_p_auto",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PT_AUTO_",value:"a_pt_auto",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PR_AUTO_",value:"a_pr_auto",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PB_AUTO_",value:"a_pb_auto",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PL_AUTO_",value:"a_pl_auto",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PX_AUTO_",value:"a_px_auto",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PY_AUTO_",value:"a_py_auto",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_P_0_",value:"a_p_0",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PT_0_",value:"a_pt_0",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PR_0_",value:"a_pr_0",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PB_0_",value:"a_pb_0",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PL_0_",value:"a_pl_0",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PX_0_",value:"a_px_0",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_PY_0_",value:"a_py_0",group:"padding",groupName:"_A_SELECT_STYLES_GROUP_PADDING_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_PRIMARY_",value:"a_color_primary",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_SECONDARY_",value:"a_color_secondary",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_TERTIARY_",value:"a_color_tertiary",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_TEXT_",value:"a_color_text",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_INFO_",value:"a_color_info",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_SUCCESS_",value:"a_color_success",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_WARNING_",value:"a_color_warning",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_DANGER_",value:"a_color_danger",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_LINK_",value:"a_color_link",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_WHITE_",value:"a_color_white",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_BLACK_",value:"a_color_black",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_100_",value:"a_color_gray_100",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_200_",value:"a_color_gray_200",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_300_",value:"a_color_gray_300",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_400_",value:"a_color_gray_400",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_500_",value:"a_color_gray_500",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_600_",value:"a_color_gray_600",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_700_",value:"a_color_gray_700",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_800_",value:"a_color_gray_800",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_GRAY_900_",value:"a_color_gray_900",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_COLOR_TRANSPARENT_",value:"a_color_transparent",group:"color",groupName:"_A_SELECT_STYLES_GROUP_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_PRIMARY_",value:"a_bg_primary",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_SECONDARY_",value:"a_bg_secondary",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_TERTIARY_",value:"a_bg_tertiary",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_TEXT_",value:"a_bg_text",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_INFO_",value:"a_bg_info",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_SUCCESS_",value:"a_bg_success",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_WARNING_",value:"a_bg_warning",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_DANGER_",value:"a_bg_danger",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_LINK_",value:"a_bg_link",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_WHITE_",value:"a_bg_white",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_BLACK_",value:"a_bg_black",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_100_",value:"a_bg_gray_100",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_200_",value:"a_bg_gray_200",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_300_",value:"a_bg_gray_300",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_400_",value:"a_bg_gray_400",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_500_",value:"a_bg_gray_500",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_600_",value:"a_bg_gray_600",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_700_",value:"a_bg_gray_700",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_800_",value:"a_bg_gray_800",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_GRAY_900_",value:"a_bg_gray_900",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BG_TRANSPARENT_",value:"a_bg_transparent",group:"background_color",groupName:"_A_SELECT_STYLES_GROUP_BACKGROUND_COLOR_"},{label:"_A_SELECT_STYLES_VALUE_BTN_PRIMARY_",value:"a_btn a_btn_primary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_SECONDARY_",value:"a_btn a_btn_secondary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_TERTIARY_",value:"a_btn a_btn_tertiary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_SUCCESS_",value:"a_btn a_btn_success",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_INFO_",value:"a_btn a_btn_info",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_WARNING_",value:"a_btn a_btn_warning",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_DANGER_",value:"a_btn a_btn_danger",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_LIGHT_",value:"a_btn a_btn_light",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_DARK_",value:"a_btn a_btn_dark",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_LINK_",value:"a_btn a_btn_link",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"basic",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_BASIC_"},{label:"_A_SELECT_STYLES_VALUE_BTN_PRIMARY_",value:"a_btn a_btn_outline_primary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_SECONDARY_",value:"a_btn a_btn_outline_secondary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_TERTIARY_",value:"a_btn a_btn_outline_tertiary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_SUCCESS_",value:"a_btn a_btn_outline_success",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_INFO_",value:"a_btn a_btn_outline_info",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_WARNING_",value:"a_btn a_btn_outline_warning",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_DANGER_",value:"a_btn a_btn_outline_danger",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_LIGHT_",value:"a_btn a_btn_outline_light",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_DARK_",value:"a_btn a_btn_outline_dark",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"outline",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_OUTLINE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_PRIMARY_",value:"a_btn a_btn_transparent_primary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_SECONDARY_",value:"a_btn a_btn_transparent_secondary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_TERTIARY_",value:"a_btn a_btn_transparent_tertiary",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_SUCCESS_",value:"a_btn a_btn_transparent_success",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_INFO_",value:"a_btn a_btn_transparent_info",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_WARNING_",value:"a_btn a_btn_transparent_warning",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_DANGER_",value:"a_btn a_btn_transparent_danger",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_LIGHT_",value:"a_btn a_btn_transparent_light",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_DARK_",value:"a_btn a_btn_transparent_dark",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"transparent",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_TRANSPARENT_"},{label:"_A_SELECT_STYLES_VALUE_BTN_LARGE_",value:"a_btn a_btn_large",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"size",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_BTN_SMALL_",value:"a_btn a_btn_small",group:"button",groupName:"_A_SELECT_STYLES_GROUP_BUTTON_",subGroup:"size",subGroupName:"_A_SELECT_STYLES_SUB_GROUP_SIZE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_PRIMARY_",value:"a_badge a_badge_primary",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_SECONDARY_",value:"a_badge a_badge_secondary",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_TERTIARY_",value:"a_badge a_badge_tertiary",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_SUCCESS_",value:"a_badge a_badge_success",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_INFO_",value:"a_badge a_badge_info",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_WARNING_",value:"a_badge a_badge_warning",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_DANGER_",value:"a_badge a_badge_danger",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_LIGHT_",value:"a_badge a_badge_light",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_BADGE_DARK_",value:"a_badge a_badge_dark",group:"badge",groupName:"_A_SELECT_STYLES_GROUP_BADGE_"},{label:"_A_SELECT_STYLES_VALUE_PILL_ROUNDED_",value:"a_pill_rounded",group:"border",groupName:"_A_SELECT_STYLES_GROUP_BORDER_"}]},Ey={install:(_,{propsDefault:t={},cssClasses:n=[]}={})=>{Kr.propsDefault={...Kr.propsDefault,...t},Kr.cssClasses=[...Kr.cssClasses,...n]}};function ay(_){const t=e.toRef(_,"data"),n=e.toRef(_,"dataExtended"),E=e.toRef(_,"filterGroups");return{dataLocal:e.computed(()=>{if(t.value)return[...t.value,...n.value];const s=[...Kr.cssClasses,...n.value];return E.value?p_(E.value)?ce(s,o=>bs(E.value,o.group)):J_(E.value)?ce(s,o=>{const l=o.group,A=o.subGroup;if(l in E.value)return E.value[l]===!0?!0:p_(E.value[l])?bs(E.value[l],A):!1}):[]:s})}}function ry({emit:_}){return{blur:s=>{_("blur",s)},focus:s=>{_("focus",s)},open:s=>{_("open",s)},updateModelValue:s=>{_("update:modelValue",s)}}}function sy(){return{keyLabelCallback:({item:t})=>`${u_({placeholder:t.label})} (<code>${t.value}</code>)`}}function oy(_){const t=e.toRef(_,"type");return{typeLocal:e.computed(()=>t.value==="selectStyle"?"select":t.value==="multiselectStyle"?"multiselect":t.value)}}const BT={name:"ASelectStyle",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},buttonClass:{type:String,required:!1,default:()=>c_.propsDefault.buttonClass},buttonClassDefault:{type:[String,Object],required:!1,default:"a_form_control a_select_toggle"},caretIcon:{type:[String,Object],required:!1,default:()=>c_.propsDefault.caretIcon},change:{type:Function,required:!1,default:()=>{}},class:{type:[String,Object],required:!1},countMultiselect:{type:Number,required:!1,default:()=>c_.propsDefault.countMultiselect},data:{type:Array,required:!1,default:void 0},dataExtended:{type:Array,required:!1,default:()=>[]},dependencies:{type:[Array,Object],required:!1,default:void 0},deselectable:{type:Boolean,required:!1,default:()=>c_.propsDefault.deselectable},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},errorsAll:{type:Object,required:!1,default:()=>({})},exceededItemsDeletable:{type:Boolean,required:!1,default:()=>c_.propsDefault.exceededItemsDeletable},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},filterGroups:{type:[Array,Object],required:!1,default:void 0},hasCaret:{type:Boolean,required:!1,default:!0},helpText:{type:String,required:!1},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_select_styles_")},idPrefix:{type:String,required:!1,default:void 0},inBody:{type:Boolean,required:!1,default:()=>c_.propsDefault.inBody},isCloseByClick:{type:Boolean,required:!1,default:()=>c_.propsDefault.isCloseByClick},isDeselectAll:{type:Boolean,required:!1,default:()=>c_.propsDefault.isDeselectAll},isHide:{type:Boolean,required:!1},isLabelFloat:{type:Boolean,required:!1,default:!0},isRender:{type:Boolean,required:!1,default:!0},isSelectAll:{type:Boolean,required:!1,default:()=>c_.propsDefault.isSelectAll},isSelectionCloseable:{type:Boolean,required:!1,default:()=>c_.propsDefault.isSelectionCloseable},keyDisabled:{type:String,required:!1,default:()=>c_.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>["groupName","subGroupName"]},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},keyId:{type:String,required:!1,default:"value"},keyLabel:{type:String,required:!1,default:"label"},keyLabelCallback:{type:Function,required:!1,default:void 0},keyTitleCallback:{type:Function,required:!1,default:({item:_})=>u_({placeholder:_.label})},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:String,required:!1,default:void 0},maxCountMultiselect:{type:Number,required:!1,default:()=>c_.propsDefault.maxCountMultiselect,validator:_=>_>0},menuWidthType:{type:String,required:!1,default:()=>c_.propsDefault.menuWidthType,validator:_=>["as_button","by_content"].indexOf(_)!==-1},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{type:[String,Array],required:!1,default:()=>c_.propsDefault.modelValue},options:{type:Object,required:!1,default:()=>({})},placeholder:{type:String,required:!1,default:void 0},placement:{type:String,required:!1,default:()=>c_.propsDefault.placement,validator:_=>Yt.indexOf(_)!==-1},popperContainerId:{type:String,required:!1,default:()=>c_.propsDefault.popperContainerId},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>c_.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:!0},searchTimeout:{type:Number,required:!1,default:()=>c_.propsDefault.searchTimeout},selectMenuClass:{type:[String,Object],required:!1,default:void 0},slotName:{type:String,required:!1,default:void 0},sortOrder:{type:String,required:!1,default:()=>"asc",validator:_=>["asc","desc"].indexOf(_)!==-1},sortOrderGroup:{type:String,required:!1,default:"asc",validator:_=>["asc","desc"].indexOf(_)!==-1},textDeselectAll:{type:String,required:!1,default:()=>c_.propsDefault.textDeselectAll},textSelectAll:{type:String,required:!1,default:()=>c_.propsDefault.textSelectAll},translateGroup:{type:Boolean,required:!1,default:()=>c_.propsDefault.translateGroup},type:{type:String,required:!1,default:()=>c_.propsDefault.type,validator:_=>["select","selectStyle","multiselect","multiselectStyle"].indexOf(_)!==-1}},emits:["blur","focus","open","update:modelValue"],setup(_,t){const{blur:n,focus:E,open:a,updateModelValue:s}=ry(t),{typeLocal:o}=oy(_),{dataLocal:l}=ay(_),{keyLabelCallback:A}=sy();return{blur:n,dataLocal:l,focus:E,keyLabelCallback:A,open:a,typeLocal:o,updateModelValue:s}},render(){return e.h(EE,{...this.$props,keyLabelCallback:this.keyLabelCallback,translateData:!0,type:this.typeLocal,data:this.dataLocal,searchInGroup:!1,searchTextInHtml:!0,onBlur:this.blur,onFocus:this.focus,onOpen:this.open,"onUpdate:modelValue":this.updateModelValue,filterGroups:void 0,dataExtended:void 0},this.$slots)}};function iy({isModelFalse:_=e.computed(()=>!1),isModelTrue:t=e.computed(()=>!1)}){return{isChecked:e.computed(()=>{if(t.value)return!0;if(_.value)return!1})}}function ly(_,{isModelFalse:t=e.computed(()=>!1),isModelTrue:n=e.computed(()=>!1)}){const E=e.toRef(_,"trueLabel"),a=e.toRef(_,"falseLabel"),s=e.toRef(_,"defaultLabel"),o=e.toRef(_,"readonly"),l=e.toRef(_,"readonlyDefault");return{labelValueLocal:e.computed(()=>n.value?E.value:t.value?a.value:o.value?l.value:s.value)}}function Ay(_){const t=e.toRef(_,"modelValue"),n=e.toRef(_,"trueValue"),E=e.toRef(_,"falseValue"),a=e.computed(()=>t.value===n.value||t.value==="true"),s=e.computed(()=>t.value===E.value||t.value==="false");return{isModelDefault:e.computed(()=>!a.value&&!s.value),isModelFalse:s,isModelTrue:a}}function Ty(_,{changeModel:t=()=>{},isModelFalse:n=e.computed(()=>!1),isModelTrue:E=e.computed(()=>!1)}){const a=e.toRef(_,"defaultValue"),s=e.toRef(_,"disabled"),o=e.toRef(_,"falseValue"),l=e.toRef(_,"isThreeState"),A=e.toRef(_,"trueValue"),T=S=>{if(s.value)return;let c;E.value?c=o.value:l.value&&n.value?c=a.value:c=A.value,t({model:c,$event:S})};return{onInput:T,onKeydown:S=>{(S.keyCode===E_.enter||S.keyCode===E_.space)&&(T(S),S.stopPropagation(),S.preventDefault())}}}const $T={name:"ASwitch",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},change:{type:Function,required:!1,default:()=>{}},default:{type:[Boolean,String,Number],required:!1,default:void 0},defaultLabel:{type:String,required:!1,default:"_A_SWITCH_DEFAULT_LABEL_"},defaultValue:{type:[Boolean,String,Number],required:!1,default:void 0},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},errorIcon:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},falseLabel:{type:String,required:!1,default:"_A_SWITCH_FALSE_LABEL_"},falseValue:{type:[Boolean,String,Number],required:!1,default:!1},fullWidth:{type:Boolean,required:!1},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_switch_")},idPrefix:{type:String,required:!1,default:void 0},inputAttributes:{type:Object,required:!1,default:()=>({})},inputClass:{type:[String,Object],required:!1,default:void 0},isHide:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},isThreeState:{type:Boolean,required:!1,default:!1},isTitleHtml:{type:Boolean,required:!1,default:void 0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{type:[String,Number,Object,Array,Boolean],required:!1,default:void 0},modelValue:{type:[Boolean,String,Number],required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},title:{type:[String,Number,Object,Array],required:!1,default:void 0},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1},trueLabel:{type:String,required:!1,default:"_A_SWITCH_TRUE_LABEL_"},trueValue:{type:[Boolean,String,Number],required:!1,default:!0}},emits:["blur","focus","update:modelValue"],setup(_,t){const n=e.toRef(_,"errorIcon"),{disabledAttribut:E}=ur(_),{attributesToExcludeFromRender:a}=Ye(_),{componentStyleHide:s}=Je(_),{ariaDescribedbyLocal:o,changeModel:l,clearModel:A,errorsId:T,helpTextId:L,htmlIdLocal:S,initDefaultModel:c,isErrors:f,isModel:d,labelDescriptionId:R,onBlur:C,onFocus:I}=je(_,t),{isModelDefault:O,isModelFalse:p,isModelTrue:U}=Ay(_),{labelValueLocal:D}=ly(_,{isModelFalse:p,isModelTrue:U}),{isChecked:V}=iy({isModelFalse:p,isModelTrue:U}),{onInput:B,onKeydown:y}=Ty(_,{changeModel:l,isModelFalse:p,isModelTrue:U});c();const Y=e.computed(()=>!!(f.value&&n.value));return{ariaDescribedbyLocal:o,attributesToExcludeFromRender:a,clearModel:A,componentStyleHide:s,disabledAttribut:E,errorsId:T,hasErrorIcon:Y,helpTextId:L,htmlIdLocal:S,isChecked:V,isErrors:f,isModel:d,isModelDefault:O,labelDescriptionId:R,labelValueLocal:D,onBlur:C,onFocus:I,onInput:B,onKeydown:y}},render(){return this.isRender?this.readonly?e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,modelValue:this.labelValueLocal,required:this.required,style:this.componentStyleHide,type:"switch"}):e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{class:["a_form_element__parent",{a_form_element__parent_not_empty:this.isModel}]},[this.label||this.labelScreenReader?e.h(qe,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,extra:this.extra,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,required:this.required,isError:this.isErrors}):"",e.h(ut,{id:this.labelDescriptionId,alwaysTranslate:this.alwaysTranslate,html:this.labelDescription,extra:this.extra}),e.h("div",{class:["switch_button__wrapper",{switch_button__wrapper_has_error_icon:this.hasErrorIcon}]},[this.hasErrorIcon&&e.h(_e,{icon:this.errorIcon,class:"a_input__icon_error switch_button__error_icon"}),e.h(O_,{class:["switch_button",{switch_button_undefined:this.isModelDefault,switch_button_invalid:this.isErrors,switch_button_auto:!this.fullWidth}],classDefault:"",isTitleHtml:this.isTitleHtml,tag:"div",title:this.title,titlePlacement:this.titlePlacement,type:"text"},{default:()=>[e.h("input",{id:this.htmlIdLocal,"aria-describedby":this.ariaDescribedbyLocal,ariaInvalid:this.isErrors,ariaRequired:this.required,checked:this.isChecked,class:["switch_button__input",this.inputClass],disabled:this.disabledAttribut,type:"checkbox",...this.inputAttributes,onClick:this.onInput,onKeydown:this.onKeydown,onFocus:this.onFocus,onBlur:this.onBlur}),e.h(f_,{alwaysTranslate:this.alwaysTranslate,tag:"label",class:["switch_button__label",{switch_button__label_full:this.fullWidth}],for:this.htmlIdLocal,extra:this.extra,html:this.labelValueLocal})]})]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])]):null}},of={name:"ATemplate",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},change:{type:Function,required:!1,default:()=>{}},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1},html:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:void 0},idPrefix:{type:String,required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelValue:{required:!1},options:{type:[String,Number,Object,Array,Boolean],required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},slotName:{type:String,required:!1,default:void 0}},setup(_){const{attributesToExcludeFromRender:t}=Ye(_),{componentStyleHide:n}=Je(_);return{attributesToExcludeFromRender:t,componentStyleHide:n}},render(){return this.isRender?e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[this.$slots[this.slotName]?e.h("div",{class:"a_template"},this.$slots[this.slotName]({options:this.options,props:this.$props})):"",this.html?e.withDirectives(e.h("div",{class:"a_template"}),[[et,this.html]]):""]):null}},lo=typeof Map=="function"?new Map:function(){const _=[],t=[];return{has:function(E){return _.indexOf(E)>-1},get:function(E){return t[_.indexOf(E)]},set:function(E,a){_.indexOf(E)===-1&&(_.push(E),t.push(a))},delete:function(E){const a=_.indexOf(E);a>-1&&(_.splice(a,1),t.splice(a,1))}}}(),Ly=function(t){if(Nt())return new Event(t,{bubbles:!0})};function Sy(_){if(!Nt()||!_||!_.nodeName||_.nodeName!=="TEXTAREA"||lo.has(_))return;let t=null,n=null,E=null;function a(){const S=window.getComputedStyle(_,null);S.resize==="vertical"?_.style.resize="none":S.resize==="both"&&(_.style.resize="horizontal"),S.boxSizing==="content-box"?t=-(parseFloat(S.paddingTop)+parseFloat(S.paddingBottom)):t=parseFloat(S.borderTopWidth)+parseFloat(S.borderBottomWidth),isNaN(t)&&(t=0),A()}function s(S){{const c=_.style.width;_.style.width="0px",_.offsetWidth,_.style.width=c}_.style.overflowY=S}function o(S){const c=[];for(;S&&S.parentNode&&S.parentNode instanceof Element;)S.parentNode.scrollTop&&c.push({node:S.parentNode,scrollTop:S.parentNode.scrollTop}),S=S.parentNode;return c}function l(){if(_.scrollHeight===0)return;const S=o(_),c=document.documentElement&&document.documentElement.scrollTop;_.style.height="",_.style.height=_.scrollHeight+t+"px",n=_.clientWidth,S.forEach(function(f){f.node.scrollTop=f.scrollTop}),c&&(document.documentElement.scrollTop=c)}function A(){l();const S=Math.round(parseFloat(_.style.height)),c=window.getComputedStyle(_,null);let f=c.boxSizing==="content-box"?Math.round(parseFloat(c.height)):_.offsetHeight;if(f<S?c.overflowY==="hidden"&&(s("scroll"),l(),f=c.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(_,null).height)):_.offsetHeight):c.overflowY!=="hidden"&&(s("hidden"),l(),f=c.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(_,null).height)):_.offsetHeight),E!==f){E=f;const d=Ly("autosize:resized");try{_.dispatchEvent(d)}catch{}}}const T=function(){_.clientWidth!==n&&A()},L=(function(S){window.removeEventListener("resize",T,!1),_.removeEventListener("input",A,!1),_.removeEventListener("keyup",A,!1),_.removeEventListener("autosize:destroy",L,!1),_.removeEventListener("autosize:update",A,!1),Object.keys(S).forEach(function(c){_.style[c]=S[c]}),lo.delete(_)}).bind(_,{height:_.style.height,resize:_.style.resize,overflowY:_.style.overflowY,overflowX:_.style.overflowX,wordWrap:_.style.wordWrap});_.addEventListener("autosize:destroy",L,!1),"onpropertychange"in _&&"oninput"in _&&_.addEventListener("keyup",A,!1),window.addEventListener("resize",T,!1),_.addEventListener("input",A,!1),_.addEventListener("autosize:update",A,!1),_.style.overflowX="hidden",_.style.wordWrap="break-word",lo.set(_,{destroy:L,update:A}),a()}function uy(_){const t=lo.get(_);t&&t.destroy()}function cy(_){const t=lo.get(_);t&&t.update()}let lr;Nt()?(lr=function(t,n){return t&&Array.prototype.forEach.call(t.length?t:[t],function(E){return Sy(E)}),t},lr.destroy=function(_){return _&&Array.prototype.forEach.call(_.length?_:[_],uy),_},lr.update=function(_){return _&&Array.prototype.forEach.call(_.length?_:[_],cy),_}):(lr=function(t){return t},lr.destroy=function(_){return _},lr.update=function(_){return _});const VT=lr;function dy(_){const t=e.toRef(_,"isScalable"),n=e.ref(!1),E=e.ref(void 0);return{destroyAutosize:()=>{n.value&&(VT.destroy(E.value),n.value=!1)},initAutosize:()=>{t.value&&(VT(E.value),n.value=!0)},textareaRef:E,updateAutosize:()=>{t.value&&n.value&&setTimeout(()=>{VT.update(E.value)})}}}function fy(_,{changeModel:t=()=>{},updateAutosize:n=()=>{}}){const E=e.toRef(_,"disabled"),a=e.toRef(_,"modelUndefined");return{clearModel:()=>{E.value||(t({model:a.value}),n())},onInput:l=>{if(E.value)return;const A=l.target.value;t({model:A})}}}function Ry(_){const t=e.toRef(_,"resize"),n={v:"a_textarea_resize_v",h:"a_textarea_resize_h",none:"a_textarea_resize_none",auto:""};return{resizeClass:e.computed(()=>n[t.value])}}function Cy(_){const t=e.toRef(_,"isScalable"),n=e.toRef(_,"rows");return{rowsLocal:e.computed(()=>{if(n.value)return n.value;if(t.value)return 1})}}const lf={name:"ATextarea",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},autocomplete:{type:String,required:!1,default:void 0},change:{type:Function,required:!1,default:()=>{}},clearButtonClass:{type:[String,Object],required:!1,default:void 0},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},errorIcon:{type:[String,Object],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_textarea_")},idPrefix:{type:String,required:!1,default:void 0},inputAttributes:{type:Object,required:!1,default:()=>({})},inputClass:{type:[String,Object],required:!1,default:void 0},isClearButton:{type:Boolean,required:!1,default:!0},isHide:{type:Boolean,required:!1},isLabelFloat:{type:Boolean,required:!1,default:!0},isRender:{type:Boolean,required:!1,default:!0},isScalable:{type:Boolean,required:!1},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},maxlength:{type:[String,Number],required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{type:[String,Number,Object,Array,Boolean],required:!1,default:""},modelValue:{type:[String,Number],required:!1},placeholder:{type:[String,Number,Object],required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},resize:{type:String,required:!1,default:"v",validator:_=>["v","h","none","auto"].indexOf(_)!==-1},rows:{type:[String,Number],required:!1,default:void 0}},emits:["update:modelValue","focus","blur"],setup(_,t){const{disabledAttribut:n}=ur(_),{attributesToExcludeFromRender:E}=Ye(_),{componentStyleHide:a}=Je(_),{ariaDescribedbyLocal:s,changeModel:o,errorsId:l,helpTextId:A,htmlIdLocal:T,isErrors:L,isModel:S,labelDescriptionId:c,onBlur:f,onFocus:d}=je(_,t),{isClearButtonLocal:R}=No(_,{isModel:S}),{resizeClass:C}=Ry(_),{destroyAutosize:I,initAutosize:O,textareaRef:p,updateAutosize:U}=dy(_),{clearModel:D,onInput:V}=fy(_,{changeModel:o,updateAutosize:U}),{rowsLocal:B}=Cy(_),{placeholderAttributes:y}=no(_),Y=e.computed(()=>!!(L.value&&_.errorIcon));return e.onMounted(()=>{O()}),e.onBeforeUnmount(()=>{I()}),{ariaDescribedbyLocal:s,attributesToExcludeFromRender:E,changeModel:o,clearModel:D,componentStyleHide:a,disabledAttribut:n,errorsId:l,hasErrorIcon:Y,helpTextId:A,htmlIdLocal:T,isClearButtonLocal:R,isErrors:L,isModel:S,labelDescriptionId:c,onBlur:f,onFocus:d,onInput:V,placeholderAttributes:y,resizeClass:C,rowsLocal:B,textareaRef:p}},render(){return this.isRender?this.readonly?e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,modelValue:this.modelValue,readonlyDefault:this.readonlyDefault,required:this.required,style:this.componentStyleHide,type:"textarea",valueClass:"a_code_content",valueTag:"div"}):e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{class:["a_form_element__parent",{a_form_element__parent_float:this.isLabelFloat,a_form_element__parent_float_has_error_icon:this.hasErrorIcon,a_form_element__parent_not_empty:this.isModel}]},[this.label||this.labelScreenReader?e.h(qe,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,extra:this.extra,isError:this.isErrors,isLabelFloat:this.isLabelFloat,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,required:this.required}):"",e.h(ut,{id:this.labelDescriptionId,alwaysTranslate:this.alwaysTranslate,html:this.labelDescription,extra:this.extra,isLabelFloat:this.isLabelFloat}),e.h("div",{class:["a_form_element a_form_element_textarea",{a_form_element_textarea_scalable:this.isScalable}]},[this.hasErrorIcon?e.h(_e,{icon:this.errorIcon,class:"a_input__icon_error"}):"",e.h("textarea",{ref:"textareaRef",id:this.htmlIdLocal,autocomplete:this.autocomplete,value:this.modelValue,rows:this.rowsLocal,class:["a_form_control a_textarea",this.inputClass,{a_textarea_scalable:this.isScalable,a_form_element_with_one_btn:this.isClearButton,a_form_control_invalid:this.isErrors},this.resizeClass],disabled:this.disabledAttribut,ariaRequired:this.required,ariaInvalid:this.isErrors,"aria-describedby":this.ariaDescribedbyLocal,maxlength:this.maxlength,...this.placeholderAttributes,...this.inputAttributes,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),this.isClearButtonLocal?e.h("div",{class:"a_form_control__actions"},[e.h(Lo,{alwaysTranslate:this.alwaysTranslate,disabled:this.disabled,class:this.clearButtonClass,onClear:this.clearModel})]):""]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])]):null}};function hy(_,{model:t=e.ref({}),updateModel:n=()=>{}}){const E=e.toRef(_,"children"),a=e.toRef(_,"typedBaseId"),s=e.toRef(_,"typedChildren"),o=e.computed(()=>!(_t(s.value)||!a.value)),l=e.computed(()=>n_(t.value,a.value)),A=e.computed(()=>{var S;return l.value&&((S=s.value[l.value])!=null&&S.length)?s.value[l.value]:[]}),T=e.computed(()=>o.value?[...E.value,...A.value]:E.value);return{changeDataForm:({fullModel:S,id:c}={})=>{if(c===a.value){const f=e_(S)||{};j(A.value,d=>{nc(f,d.id)}),n(f)}else n(S)},dataForm:T}}function Iy(_,{dataForm:t=e.computed(()=>[]),model:n=e.ref({})}){const E=e.computed(()=>zd({elements:e_(t.value)}));return{isAnyRequiredElementEmpty:e.computed(()=>Jd({elements:E.value,model:n.value}))}}function Oy(_){const t=e.toRef(_,"errors"),n=e.ref(void 0),E=e.computed(()=>({...t.value||{},...n.value||{}}));return{deleteErrorsLocal:()=>{n.value=void 0},errorsComputed:E,errorsLocal:n}}function py(_){const t=e.toRef(_,"currentModel"),n=e.toRef(_,"isCreate"),E=e.ref({});return{initModel:()=>{n.value||(E.value=e_(t.value))},model:E,updateModel:o=>{E.value=e_(o)}}}function Uy(_,{deleteErrorsLocal:t=()=>{},errorsLocal:n=e.ref(void 0),isAnyRequiredElementEmpty:E=e.computed(()=>!1),model:a=e.ref({})}){const s=e.toRef(_,"close"),o=e.toRef(_,"currentIndex"),l=e.toRef(_,"isCreate"),A=e.toRef(_,"keyId"),T=e.toRef(_,"mode"),L=e.toRef(_,"modelAll"),S=e.toRef(_,"uniqueChildrenIds"),c=e.computed(()=>T.value==="json"?A.value&&!S.value.includes(A.value)?[...S.value,A.value]:[...S.value,C_]:S.value),f=e.computed(()=>{if(l.value)return L.value;const I=e_(L.value);return I.splice(o.value,1),I}),d=I=>{const O=n_(a.value,I);return ci(f.value,p=>n_(p,I)===O)},R=()=>{let I=!0;const O={};return c.value.length?(j(c.value,p=>{d(p)&&(I=!1,O[p]=["_A_VALIDATED_JSON_MODAL_CREATE_ERROR_ID_UNIQUE_"])}),{errors:O,isValid:I}):{isValid:I}};return{save:()=>{if(E.value)return;t();const{isValid:I,errors:O}=R();if(!I){n.value=O;return}s.value({model:a.value})}}}function Ny(_){const t=e.toRef(_,"isCreate"),n=e.computed(()=>t.value?"_A_VALIDATED_JSON_MODAL_CREATE_HEADER_{{elementLabel}}_":"_A_VALIDATED_JSON_MODAL_UPDATE_HEADER_{{elementLabel}}_"),E=e.computed(()=>t.value?"_A_VALIDATED_JSON_MODAL_CREATE_BTN_SAVE_{{elementLabel}}_":"_A_VALIDATED_JSON_MODAL_UPDATE_BTN_SAVE_{{elementLabel}}_");return{headerText:n,saveButtonText:E}}const yT={name:"AValidatedJsonModalCreateOrUpdate",props:{close:{type:Function,required:!0},children:{type:Array,required:!0},currentIndex:{type:Number,required:!1,default:void 0},currentModel:{type:Object,required:!1,default:void 0},elementLabelTranslated:{type:String,required:!1,default:void 0},errors:{type:[Array,Object],required:!1,default:void 0},isCreate:{type:Boolean,required:!0},keyId:{type:String,required:!1,default:void 0},mode:{type:String,required:!0,validator:_=>["list","json"].includes(_)},modelAll:{type:Array,required:!0},selectorCloseIds:{type:String,required:!1,default:void 0},typedBaseId:{type:String,required:!1,default:void 0},typedChildren:{type:Object,required:!1,default:()=>({})},uniqueChildrenIds:{type:Array,required:!1,default:()=>[]}},setup(_){const{headerText:t,saveButtonText:n}=Ny(_),{initModel:E,model:a,updateModel:s}=py(_),{changeDataForm:o,dataForm:l}=hy(_,{model:a,updateModel:s}),{isAnyRequiredElementEmpty:A}=Iy(_,{dataForm:l,model:a}),{deleteErrorsLocal:T,errorsComputed:L,errorsLocal:S}=Oy(_),{save:c}=Uy(_,{deleteErrorsLocal:T,errorsLocal:S,isAnyRequiredElementEmpty:A,model:a});return E(),{changeDataForm:o,dataForm:l,errorsComputed:L,headerText:t,isAnyRequiredElementEmpty:A,model:a,save:c,saveButtonText:n}},render(){return e.h(WT,{close:this.close,dataForm:this.dataForm,disabledSave:this.isAnyRequiredElementEmpty,headerText:this.headerText,extra:{elementLabel:this.elementLabelTranslated},errors:this.errorsComputed,modelValue:this.model,save:this.save,saveButtonText:this.saveButtonText,selectorCloseIds:this.selectorCloseIds,size:"large",onChange:this.changeDataForm})}};function Dy(_,{emit:t}){const n=e.toRef(_,"elementLabel"),E=e.toRef(_,"mode"),a=e.toRef(_,"modelIndex"),s=e.toRef(_,"modelItem"),o=e.toRef(_,"parentHtmlId"),{closeConfirm:l,openConfirm:A}=jr(),T=e.computed(()=>`${o.value}_btn_delete_${a.value}`),L=()=>{E.value==="list"?t("delete",{index:a.value}):t("delete",{key:s.value[C_]}),l()};return{btnDeleteId:T,openDeleteConfirm:()=>{A({headerText:"_A_VALIDATED_JSON_CONFIRM_DELETE_HEADER_{{elementLabel}}_",bodyHtml:"_A_VALIDATED_JSON_CONFIRM_DELETE_BODY_",extra:{elementLabel:n.value},saveButtonText:"_A_VALIDATED_JSON_CONFIRM_DELETE_BTN_",save:L,close:()=>{e.nextTick().then(()=>{Ce({selector:`#${T.value}`})})}})}}}function my(_){const t=e.toRef(_,"modelIndex"),n=e.toRef(_,"parentHtmlId"),E=e.ref(!1),a=e.computed(()=>`${n.value}_btn_toggle_details_${t.value}`),s=e.computed(()=>E.value?"_A_VALIDATED_JSON_BTN_DETAILS_HIDE_":"_A_VALIDATED_JSON_BTN_DETAILS_SHOW_"),o=e.computed(()=>E.value?mT:PT),l=e.computed(()=>`${n.value}_details_${t.value}`);return{btnToggleDetailsId:a,detailsId:l,iconBtnToggleDetails:o,isDetailsVisible:E,titleBtnToggleDetails:s,toggleDetails:()=>{E.value=!E.value,E.value&&e.nextTick().then(()=>{Ce({selector:`#${l.value}`})})}}}function Py(_){const t=e.toRef(_,"parentHtmlId"),n=e.toRef(_,"modelIndex"),E=e.toRef(_,"mode"),a=e.toRef(_,"modelItem");return{idLocal:e.computed(()=>E.value==="list"?`${t.value}_${n.value}`:`${t.value}_${a.value[C_]}`)}}function by(_){const t=e.toRef(_,"elementLabel"),n=e.toRef(_,"elementTemplate"),E=e.toRef(_,"hidePosition"),a=e.toRef(_,"mode"),s=e.toRef(_,"modelIndex"),o=e.toRef(_,"modelItem"),l=e.toRef(_,"parentId"),{setErrorLabel:A}=xd();return{label:e.computed(()=>{let L=u_({placeholder:n.value,extra:{elementLabel:t.value,...o.value}});E.value||(L=`${s.value+1}. ${L}`);const S=a.value==="list"?s.value:o.value[C_];return A({label:L,id:S,parentId:l.value}),L})}}function Yy(_,{emit:t}){const n=e.toRef(_,"deactivateOrdering"),E=e.toRef(_,"hidePosition"),a=e.toRef(_,"isLast"),s=e.toRef(_,"modelIndex"),o=e.toRef(_,"parentHtmlId"),l=e.computed(()=>`${o.value}_btn_move_up_${s.value}`),A=e.computed(()=>`${o.value}_btn_move_down_${s.value}`),T=e.computed(()=>!n.value&&!E.value),L=e.computed(()=>s.value===0),S=e.computed(()=>a.value);return{btnMoveDownId:A,btnMoveUpId:l,canMove:T,disabledMoveDown:S,disabledMoveUp:L,moveDown:()=>{t("move",{action:"down",index:s.value})},moveUp:()=>{t("move",{action:"up",index:s.value})}}}function gy(_,{emit:t}){const n=e.toRef(_,"keyId"),E=e.toRef(_,"mode"),a=e.toRef(_,"modelIndex"),s=e.toRef(_,"modelItem"),o=e.toRef(_,"parentHtmlId"),l=e.ref(!1);return{btnOpenModalUpdateId:e.computed(()=>`${o.value}_btn_open_modal_update_${a.value}`),closeModalUpdate:({model:S}={})=>{if(l.value=!1,S)if(E.value==="list")t("update",{index:a.value,model:S});else{const c=s.value[n.value||C_],f=S[n.value||C_];t("update",{model:S,key:f,oldKey:c})}},isModalUpdateVisible:l,openModalUpdate:()=>{l.value=!0}}}const Af=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pencil-fill" viewBox="0 0 16 16">
|
|
138
138
|
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.5.5 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11z"/>
|
|
139
|
-
</svg>`,Tf={name:"AValidatedJsonItem",props:{children:{type:Array,required:!0},deactivateOrdering:{type:Boolean,required:!1},deactivatePreview:{type:Boolean,required:!1},elementLabel:{type:String,required:!0},elementTemplate:{type:String,required:!1,default:"{{ elementLabel }}"},errors:{type:[Array,Object],required:!1,default:void 0},hidePosition:{type:Boolean,required:!1},isLast:{type:Boolean,required:!1},keyId:{type:String,required:!1,default:void 0},mode:{type:String,required:!0,validator:_=>["list","json"].includes(_)},modelAll:{type:Array,required:!0},modelIndex:{type:Number,required:!0},modelItem:{type:Object,required:!0},parentHtmlId:{type:String,required:!0},parentId:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:void 0},typedBaseId:{type:String,required:!1,default:void 0},typedChildren:{type:Object,required:!1,default:()=>({})},uniqueChildrenIds:{type:Array,required:!1,default:()=>[]},useFlatModel:{type:Boolean,required:!1,default:!1}},emits:["delete","move","update"],setup(_,t){const{idLocal:n}=Py(_),{label:E}=by(_),{btnMoveDownId:a,btnMoveUpId:s,canMove:o,disabledMoveDown:l,disabledMoveUp:A,moveDown:T,moveUp:L}=Yy(_,t),{btnDeleteId:S,openDeleteConfirm:c}=Dy(_,t),{btnOpenModalUpdateId:f,closeModalUpdate:d,isModalUpdateVisible:R,openModalUpdate:C}=gy(_,t),{btnToggleDetailsId:I,detailsId:O,iconBtnToggleDetails:p,isDetailsVisible:U,titleBtnToggleDetails:D,toggleDetails:V}=my(_);return{btnDeleteId:S,btnMoveDownId:a,btnMoveUpId:s,btnOpenModalUpdateId:f,btnToggleDetailsId:I,canMove:o,closeModalUpdate:d,detailsId:O,disabledMoveDown:l,disabledMoveUp:A,iconBtnToggleDetails:p,idLocal:n,isDetailsVisible:U,isModalUpdateVisible:R,label:E,moveDown:T,moveUp:L,openDeleteConfirm:c,openModalUpdate:C,titleBtnToggleDetails:D,toggleDetails:V}},render(){return e.h("li",{id:this.idLocal,class:"a_list_group__item"},[e.h("div",{class:"a_d_flex a_justify_content_between a_align_items_center"},[this.deactivatePreview?"":e.h(O_,{id:this.btnToggleDetailsId,class:"a_btn a_btn_secondary a_mr_4 test_toggle_details",iconLeft:this.iconBtnToggleDetails,title:this.titleBtnToggleDetails,textScreenReader:this.titleBtnToggleDetails,type:"button",onClick:this.toggleDetails}),e.h("strong",{class:["a_validated_json_list__item__label",{a_validated_json_list__item__label_error:this.errors}]},this.label),this.readonly?"":e.h("div",{class:"a_btn_group a_ml_4",role:"group"},[this.canMove?e.h(O_,{id:this.btnMoveUpId,ariaDisabled:this.disabledMoveUp,class:"a_btn a_btn_secondary test_move_up",iconLeft:tr,title:"_A_VALIDATED_JSON_MOVE_UP_",textScreenReader:"_A_VALIDATED_JSON_MOVE_UP_",type:"button",onClick:this.moveUp}):"",this.canMove?e.h(O_,{id:this.btnMoveDownId,ariaDisabled:this.disabledMoveDown,class:"a_btn a_btn_secondary test_move_down",iconLeft:yn,title:"_A_VALIDATED_JSON_MOVE_DOWN_",textScreenReader:"_A_VALIDATED_JSON_MOVE_DOWN_",type:"button",onClick:this.moveDown}):"",e.h(O_,{id:this.btnOpenModalUpdateId,class:"a_btn a_btn_secondary test_edit",iconLeft:Af,title:"_A_VALIDATED_JSON_ELEMENT_UPDATE_",textScreenReader:"_A_VALIDATED_JSON_ELEMENT_UPDATE_",type:"button",onClick:this.openModalUpdate}),e.h(O_,{id:this.btnDeleteId,class:"a_btn a_btn_danger test_remove",iconLeft:oo,title:"_A_VALIDATED_JSON_ELEMENT_REMOVE_",textScreenReader:"_A_VALIDATED_JSON_ELEMENT_REMOVE_",type:"button",onClick:this.openDeleteConfirm})])]),this.isDetailsVisible?e.h("div",{class:"a_ml_6 a_mt_2 a_px_4"},[e.h(Ar,{children:this.children,idPrefix:this.parentHtmlId,modelValue:this.modelItem,readonly:!0,skipOwnIdInModelPath:!0,slotNamePrepend:"singlePrepend",useFlatModel:this.useFlatModel},this.$slots)]):"",this.isModalUpdateVisible?e.h(yT,{children:this.children,close:this.closeModalUpdate,currentIndex:this.modelIndex,currentModel:this.modelItem,elementLabelTranslated:this.elementLabel,errors:this.errors,isCreate:!1,keyId:this.keyId,mode:this.mode,modelAll:this.modelAll,selectorCloseIds:this.btnOpenModalUpdateId,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds}):""])}};function By(_,{htmlIdLocal:t=e.computed(()=>{})}){return{btnIdAdd:e.computed(()=>`${t.value}_btn_add`)}}function $y(_){const t=e.toRef(_,"children"),n=e.toRef(_,"keyId"),E=e.toRef(_,"mode"),a=e.toRef(_,"readonly"),s=e.toRef(_,"showReadonlyChildren"),o=e.computed(()=>({id:C_,type:"text",required:!0,label:"_A_VALIDATED_JSON_ID_LABEL_",helpText:"_A_VALIDATED_JSON_ID_HELP_TEXT_"})),l=T=>T.reduce((L,S)=>(S.readonly||(p_(S.children)&&S.children.length&&(S.children=l(S.children)),L.push(S)),L),[]);return{childrenFiltered:e.computed(()=>{if(a.value||s.value)return E.value==="json"&&!n.value?[o.value,...t.value]:t.value;const T=l(e_(t.value));return E.value==="json"&&!n.value?[o.value,...T]:T})}}function Vy({emit:_}){return{blur:a=>{_("blur",a)},focus:a=>{_("focus",a)},open:a=>{_("open",a)}}}function yy(_,{emit:t},{htmlIdLocal:n=e.computed(()=>{})}){const E=e.toRef(_,"change"),a=e.toRef(_,"id"),s=e.toRef(_,"keyId"),o=e.toRef(_,"modelValue"),l=e.toRef(_,"sortId"),A=e.ref(!1),T=e.computed(()=>J_(o.value)?o.value:{}),L=e.computed(()=>{const C=[];return j(e_(T.value),(I,O)=>{I[C_]=O,C.push(I)}),l.value?Vr(C,[l.value]):C}),S=e.computed(()=>_t(T.value));return{closeModalCreateJsonMode:({model:C}={})=>{if(C){const I=e_(T.value),O=C[s.value||C_];I[O]=C,t("update:modelValue",e_(I)),E.value({currentModel:I,model:I,id:a.value})}A.value=!1},deleteJsonMode:({key:C})=>{const I=e_(T.value);delete I[C],t("update:modelValue",e_(I)),E.value({currentModel:I,model:I,id:a.value}),e.nextTick().then(()=>{Ce({selector:`#${n.value}`})})},isModelJsonModeEmpty:S,isModalCreateJsonModeVisible:A,modelJsonMode:T,modelJsonModeSorted:L,openModalCreateJsonMode:()=>{A.value=!0},updateJsonMode:({model:C,key:I,oldKey:O})=>{const p=e_(T.value);delete p[O],p[I]=C,t("update:modelValue",e_(p)),E.value({currentModel:p,model:p,id:a.value})}}}function My(_,{emit:t},{htmlIdLocal:n=e.computed(()=>{})}){const E=e.toRef(_,"change"),a=e.toRef(_,"id"),s=e.toRef(_,"modelValue"),o=e.ref(!1),l=e.computed(()=>p_(s.value)?s.value:[]),A=()=>{o.value=!0},T=({model:R}={})=>{if(R){const C=e_(l.value);C.push(R),t("update:modelValue",e_(C)),E.value({currentModel:C,model:C,id:a.value})}o.value=!1},L=({index:R})=>{if(R===0)return;const C=e_(l.value),I=C[R];C.splice(R,1),C.splice(R-1,0,I),t("update:modelValue",e_(C)),E.value({currentModel:C,model:C,id:a.value}),e.nextTick().then(()=>{const O=`#${n.value}_btn_move_up_${R-1}`;Ce({selector:O})})},S=({index:R})=>{if(R>=l.value.length-1)return;const C=e_(l.value),I=C[R];C.splice(R,1),C.splice(R+1,0,I),t("update:modelValue",e_(C)),E.value({currentModel:C,model:C,id:a.value}),e.nextTick().then(()=>{const O=`#${n.value}_btn_move_down_${R+1}`;Ce({selector:O})})};return{closeModalCreateListMode:T,deleteListMode:({index:R})=>{const C=e_(l.value);C.splice(R,1),t("update:modelValue",e_(C)),E.value({currentModel:C,model:C,id:a.value}),e.nextTick().then(()=>{Ce({selector:`#${n.value}`})})},isModalCreateListModeVisible:o,modelListMode:l,moveListMode:({action:R,index:C})=>{R==="up"?L({index:C}):S({index:C})},openModalCreateListMode:A,updateListMode:({index:R,model:C})=>{const I=e_(l.value);I.splice(R,1,C),t("update:modelValue",e_(I)),E.value({currentModel:I,model:I,id:a.value})}}}function Fy(_,{emit:t}){const n=e.toRef(_,"modelValue"),E=e.toRef(_,"change"),a=e.toRef(_,"id"),s=({value:l})=>t_(l)?void 0:l;return{onChange:({currentModel:l,id:A,model:T,fullModel:L})=>{const S=s({value:e_(l||T)});S!==n.value&&(t("update:modelValue",L),E.value({currentModel:S,model:S,id:A?`${a.value}.${A}`:a.value,$event:null}))},checkUndefinedValue:s}}function Gy(_,{childrenFiltered:t=e.computed(()=>[]),htmlIdLocal:n=e.computed(()=>{}),onChange:E=()=>{}}){const a=e.toRef(_,"mode"),s=e.toRef(_,"modelValue"),o=e.toRef(_,"modeOptions"),l=e.toRef(_,"readonly"),A=e.toRef(_,"required"),T=e.toRef(_,"typedBaseId"),L=e.toRef(_,"typedChildren"),S=e.ref(void 0),c=e.computed(()=>{var D;return((D=o.value)==null?void 0:D.labelCheckbox)||"_A_VALIDATED_JSON_SINGLE_LABEL_CHECKBOX_"}),f=e.computed(()=>!(_t(L.value)||!T.value)),d=e.computed(()=>n_(s.value,T.value)),R=e.computed(()=>{var D;return d.value&&((D=L.value[d.value])!=null&&D.length)?L.value[d.value]:[]}),C=({model:D})=>{S.value=D,D||E({currentModel:void 0,model:void 0,fullModel:void 0})},I=e.computed(()=>!!(t_(S.value)&&Ca(s.value)>0||A.value||S.value)),O=e.computed(()=>({class:"a_column a_column_12",modelValue:I.value,type:"oneCheckbox",falseValue:!1,id:`${n.value}_show_form_checkbox`,label:c.value,change:C})),p=e.computed(()=>I.value?f.value?[...t.value,...R.value]:t.value:[]);return{initSingleModeModelCheckbox:()=>{a.value==="single"&&!l.value&&Ca(s.value)===0&&(S.value=o.value.optionalSingleDefault)},singleModeChildren:p,singleModeDataFormCheckbox:O}}function vy(_){const t=e.toRef(_,"elementLabel");return{elementLabelTranslated:e.computed(()=>u_({placeholder:t.value||"_A_VALIDATED_JSON_ELEMENTS_"}))}}const Lf={name:"AValidatedJson",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1,default:void 0},change:{type:Function,required:!1,default:()=>{}},children:{type:Array,required:!1,default:()=>[]},disabled:{type:Boolean,required:!1,default:void 0},deactivateOrdering:{type:Boolean,required:!1},deactivatePreview:{type:Boolean,required:!1},hidePosition:{type:Boolean,required:!1},elementLabel:{type:String,required:!1,default:"_A_VALIDATED_JSON_ELEMENTS_"},elementTemplate:{type:String,required:!1,default:"{{ elementLabel }}"},errors:{type:[String,Array,Object],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},sortId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_validated_json_")},idPrefix:{type:String,required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},mode:{type:String,required:!1,default:void 0,validator:_=>["list","json","single"].includes(_)},modeOptions:{type:Object,required:!1,default:()=>({})},modelAll:{type:Object,required:!1,default:void 0},modelValue:{type:[String,Number,Boolean,Object,Array],required:!1,default:void 0},options:{type:Object,required:!1,default:()=>({})},readonly:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1,default:!1},showReadonlyChildren:{type:Boolean,required:!1,default:!1},typedBaseId:{type:String,required:!1,default:void 0},typedChildren:{type:Object,required:!1,default:()=>({})},uniqueChildrenIds:{type:Array,required:!1,default:()=>[]},useFlatErrors:{type:Boolean,required:!1,default:!1},useFlatModel:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),{componentStyleHide:E}=Je(_),{ariaDescribedbyLocal:a,errorsId:s,helpTextId:o,htmlIdLocal:l,isErrors:A}=je(_,t),{onChange:T,checkUndefinedValue:L}=Fy(_,t),{elementLabelTranslated:S}=vy(_),{btnIdAdd:c}=By(_,{htmlIdLocal:l}),{blur:f,focus:d,open:R}=Vy(t),{childrenFiltered:C}=$y(_),{initSingleModeModelCheckbox:I,singleModeChildren:O,singleModeDataFormCheckbox:p}=Gy(_,{childrenFiltered:C,htmlIdLocal:l,onChange:T}),{closeModalCreateListMode:U,deleteListMode:D,isModalCreateListModeVisible:V,moveListMode:B,modelListMode:y,openModalCreateListMode:Y,updateListMode:b}=My(_,t,{htmlIdLocal:l}),{closeModalCreateJsonMode:$,deleteJsonMode:M,isModelJsonModeEmpty:W,isModalCreateJsonModeVisible:H,modelJsonMode:w,modelJsonModeSorted:K,openModalCreateJsonMode:x,updateJsonMode:X}=yy(_,t,{htmlIdLocal:l});return I(),{childrenFiltered:C,blur:f,focus:d,deleteListMode:D,updateListMode:b,open:R,closeModalCreateListMode:U,isModalCreateListModeVisible:V,modelListMode:y,modelJsonModeSorted:K,btnIdAdd:c,elementLabelTranslated:S,singleModeChildren:O,singleModeDataFormCheckbox:p,moveListMode:B,openModalCreateListMode:Y,ariaDescribedbyLocal:a,attributesToExcludeFromRender:n,checkUndefinedValue:L,componentStyleHide:E,errorsId:s,helpTextId:o,htmlIdLocal:l,isErrors:A,closeModalCreateJsonMode:$,deleteJsonMode:M,isModelJsonModeEmpty:W,isModalCreateJsonModeVisible:H,modelJsonMode:w,openModalCreateJsonMode:x,updateJsonMode:X,onChange:T}},render(){if(!this.isRender)return null;if(this.mode==="single")return e.h(Ar,{...this.$attrs,alwaysTranslate:this.alwaysTranslate,children:this.singleModeChildren,disabled:this.disabled,errors:this.errors,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,htmlId:this.htmlId,id:this.id,idPrefix:this.htmlIdLocal,isHide:this.isHide,isRender:this.isRender,label:this.label,labelClass:this.labelClass,labelDescription:this.labelDescription,labelScreenReader:this.labelScreenReader,modelAll:this.modelAll,modelValue:this.modelValue,readonly:this.readonly,required:this.required,skipOwnIdInModelPath:!0,slotNamePrepend:`singlePrepend_${this.id}`,useFlatErrors:this.useFlatErrors,useFlatModel:this.useFlatModel,change:this.onChange},{[`singlePrepend_${this.id}`]:this.required?void 0:()=>e.h(kr,this.singleModeDataFormCheckbox),...this.$slots});if(this.mode==="list")return e.h(Ar,{...this.$attrs,id:this.htmlIdLocal,class:["a_validated_json a_validated_json_list",this.$attrs.class],errors:this.errors?"_A_VALIDATED_JSON_ERROR_FIELDSET_":void 0,extra:this.extra,helpText:this.helpText,isHide:this.isHide,isRender:this.isRender,label:this.label,labelClass:this.labelClass,labelDescription:this.labelDescription,labelScreenReader:this.labelScreenReader,required:this.required,slotName:`slotAppend_${this.id}`},{[`slotAppend_${this.id}`]:()=>e.h("div",{class:"a_column a_column_12"},[e.h("ul",{class:"a_list_group"},[this.modelListMode.length>0?this.modelListMode.map((_,t)=>{var n;return e.h(Tf,{key:t,children:this.childrenFiltered,deactivateOrdering:this.deactivateOrdering,deactivatePreview:this.deactivatePreview,elementLabel:this.elementLabelTranslated,elementTemplate:this.elementTemplate,errors:(n=this.errors)==null?void 0:n[t],hidePosition:this.hidePosition,isLast:t===this.modelListMode.length-1,mode:this.mode,modelAll:this.modelListMode,modelIndex:t,modelItem:_,parentHtmlId:this.htmlIdLocal,parentId:this.id,readonly:this.readonly,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds,useFlatModel:this.useFlatModel,onDelete:this.deleteListMode,onMove:this.moveListMode,onUpdate:this.updateListMode})}):e.h(f_,{class:"a_list_group__item",tag:"li",text:"_A_VALIDATED_JSON_NO_ELEMENTS_"}),this.readonly?"":e.h("li",{class:"a_list_group__item"},[e.h(O_,{id:this.btnIdAdd,class:"a_btn a_btn_secondary test_add a_width_100",disabled:this.disabled,extra:{elementLabel:this.elementLabelTranslated},iconLeft:ao,text:"_A_VALIDATED_JSON_NO_ELEMENTS_ADD_ELEMENT_{{elementLabel}}_",type:"button",onClick:this.openModalCreateListMode})])]),this.isErrors&&e.h(ze,{id:this.errorsId,errors:this.errors,errorsClass:this.errorsClass}),this.isModalCreateListModeVisible?e.h(yT,{children:this.childrenFiltered,close:this.closeModalCreateListMode,elementLabelTranslated:this.elementLabelTranslated,isCreate:!0,mode:"list",modelAll:this.modelListMode,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds}):""])});if(this.mode==="json")return e.h(Ar,{...this.$attrs,id:this.htmlIdLocal,class:["a_validated_json a_validated_json_json",this.$attrs.class],extra:this.extra,errors:this.errors?"_A_VALIDATED_JSON_ERROR_FIELDSET_":void 0,helpText:this.helpText,isHide:this.isHide,isRender:this.isRender,label:this.label,labelClass:this.labelClass,labelDescription:this.labelDescription,labelScreenReader:this.labelScreenReader,required:this.required,slotName:"slotAppend"},{slotAppend:()=>e.h("div",{class:"a_column a_column_12"},[e.h("ul",{class:"a_list_group"},[this.isModelJsonModeEmpty?e.h(f_,{class:"a_list_group__item",tag:"li",text:"_A_VALIDATED_JSON_NO_ELEMENTS_"}):this.modelJsonModeSorted.map((_,t)=>{var n;return e.h(Tf,{key:t,children:this.childrenFiltered,deactivateOrdering:!0,deactivatePreview:this.deactivatePreview,elementLabel:this.elementLabelTranslated,elementTemplate:this.elementTemplate,errors:(n=this.errors)==null?void 0:n[_[C_]],hidePosition:this.hidePosition,keyId:this.keyId,mode:this.mode,modelAll:this.modelJsonModeSorted,modelIndex:t,modelItem:_,parentHtmlId:this.htmlIdLocal,parentId:this.id,readonly:this.readonly,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds,useFlatModel:this.useFlatModel,onDelete:this.deleteJsonMode,onUpdate:this.updateJsonMode})}),this.readonly?"":e.h("li",{class:"a_list_group__item"},[e.h(O_,{id:this.btnIdAdd,class:"a_btn a_btn_secondary test_add a_width_100",disabled:this.disabled,extra:{elementLabel:this.elementLabelTranslated},iconLeft:ao,text:"_A_VALIDATED_JSON_NO_ELEMENTS_ADD_ELEMENT_{{elementLabel}}_",type:"button",onClick:this.openModalCreateJsonMode})])]),this.isErrors&&e.h(ze,{id:this.errorsId,errors:this.errors,errorsClass:this.errorsClass}),this.isModalCreateJsonModeVisible?e.h(yT,{children:this.childrenFiltered,close:this.closeModalCreateJsonMode,elementLabelTranslated:this.elementLabelTranslated,isCreate:!0,keyId:this.keyId,mode:"json",modelAll:this.modelJsonModeSorted,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds}):""])})}},Ao={checkbox:pd,color:Bt,currency:kd,date:ir,dateRange:Gd,datetime:ir,email:Bt,file:Zd,integer:CE,integerNonNegative:CE,integerNonNegativeRange:so,integerPositive:CE,integerPositiveRange:so,integerRange:so,json:ef,multiselect:EE,multiselectIcon:gT,multiselectStyle:BT,multiselectOrdered:Ef,multiselectRoute:Wi,natural:Bt,number:CE,numberRange:so,oneCheckbox:kr,password:Bt,radio:YT,routerLinkConfig:Wi,select:EE,selectIcon:gT,selectStyle:BT,selectRoute:Wi,switch:$T,template:of,text:Bt,textarea:lf,validatedJson:Lf},Ar={name:"AFieldset",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1,default:void 0},attributesFieldset:{type:Object,required:!1,default:()=>({})},change:{type:Function,required:!1,default:()=>{}},children:{type:Array,required:!1,default:()=>[]},classColumnDefault:{type:[String,Object],required:!1,default:"a_column a_column_12"},classColumns:{type:[String,Object],required:!1,default:"a_columns a_columns_count_12"},classFieldset:{type:[String,Object],required:!1,default:void 0},collapsible:{type:Boolean,required:!1,default:void 0},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},errors:{type:[String,Array,Object],required:!1,default:void 0},errorsAll:{type:Object,required:!1,default:()=>({})},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},hasBorder:{type:Boolean,required:!1,default:!0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_fieldset_")},idPrefix:{type:String,required:!1,default:void 0},isCollapsed:{type:Boolean,required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},labelTitle:{type:[String,Number],required:!1,default:void 0},modelAll:{type:Object,required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{type:Object,required:!1,default:()=>({})},parentId:{type:Array,required:!1,default:()=>[]},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},skipOwnIdInModelPath:{type:Boolean,required:!1,default:!1},slotName:{type:String,required:!1,default:void 0},slotNamePrepend:{type:String,required:!1,default:void 0},texts:{type:Object,required:!1,default:()=>({collapseClose:"_A_FIELDSET_COLLAPSE_CLOSE_",collapseOpen:"_A_FIELDSET_COLLAPSE_OPEN_"})},useFlatErrors:{type:Boolean,required:!1,default:!0},useFlatModel:{type:Boolean,required:!1,default:!0},useHtmlIdAsKey:{type:Boolean,required:!1,default:!1}},emits:["toggleCollapse","updateData","update:modelValue"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),E=()=>({...Ao,group:MT,fieldset:e.resolveComponent("AFieldset"),...St.components,...St.containerComponents}),{componentStyleHide:a}=Je(_),{textAfterLabel:s}=go(_),{ariaDescribedbyLocal:o,errorsId:l,helpTextId:A,htmlIdLocal:T,isErrors:L,labelDescriptionId:S}=je(_,t),{onUpdateModelLocal:c}=G$(_,t),f=({item:D,dataKeyByKeyId:V})=>{t.emit("updateData",{item:D,dataKeyByKeyId:V})},{groupId:d}=dT(_,{htmlIdLocal:T}),{iconCollapse:R,initIsCollapsedLocal:C,isCollapsedLocal:I,titleCollapse:O,toggleCollapse:p}=Ll(_,t),{classColumnsReadonly:U}=v$(_);return C(),{ariaDescribedbyLocal:o,attributesToExcludeFromRender:n,classColumnsReadonly:U,componentStyleHide:a,componentTypesMapping:E,errorsId:l,groupId:d,helpTextId:A,htmlIdLocal:T,iconCollapse:R,isCollapsedLocal:I,isErrors:L,labelDescriptionId:S,onUpdateDataLocal:f,onUpdateModelLocal:c,textAfterLabel:s,titleCollapse:O,toggleCollapse:p}},render(){if(!this.isRender)return null;const _=[e.h(ut,{id:this.labelDescriptionId,alwaysTranslate:this.alwaysTranslate,html:this.labelDescription,extra:this.extra}),this.slotNamePrepend&&this.$slots[this.slotNamePrepend]?this.$slots[this.slotNamePrepend]({id:this.htmlIdLocal,props:this.$props}):"",this.children.map((t,n)=>{if(t.isRender!==!1){const E=Da.value[t.type];let a;t_(t.classColumn)?a=this.classColumnDefault:t.classColumn&&(a=t.classColumn);let s;t.isHide&&(s="display: none;");const o=this.componentTypesMapping()[t.type],l=this.useFlatErrors?n_(this.errorsAll,t.id):n_(this.errors,t.id);let A;E&&(A=e_(this.parentId),this.skipOwnIdInModelPath||A.push(this.id));const T=E&&!this.useFlatModel||!E?n_(this.modelValue,t.id):this.modelValue;let L=n;return this.useHtmlIdAsKey&&(L=RE({id:t.id,idPrefix:t.idPrefix||this.idPrefix,htmlId:t.htmlId})),e.h("div",{key:L,class:a,style:s},[e.h(o,{alwaysTranslate:this.alwaysTranslate,modelValue:T,modelAll:E?this.modelAll:void 0,modelDependencies:E?this.modelValue:void 0,errors:l,errorsAll:E?this.errorsAll:void 0,parentId:A,idPrefix:this.idPrefix,onUpdateData:({dataKeyByKeyId:S})=>this.onUpdateDataLocal({item:t,dataKeyByKeyId:S}),...t,change:({currentModel:S,id:c,item:f,model:d,props:R,fullModel:C})=>this.onUpdateModelLocal({currentModel:S,id:c,item:f,model:d,props:R,component:t,fullModel:C}),readonly:this.readonly||t.readonly,readonlyDefault:"readonlyDefault"in t&&!w_(t.readonlyDefault)?t.readonlyDefault:this.readonlyDefault,disabled:this.disabled||t.disabled,classColumn:void 0,slotAppend:void 0,...this.attributesToExcludeFromRender},this.$slots),t.slotAppend&&this.$slots[t.slotAppend]?this.$slots[t.slotAppend]({item:t,itemIndex:n}):""])}}),this.slotName&&this.$slots[this.slotName]?this.$slots[this.slotName]({id:this.htmlIdLocal,props:this.$props}):""];return this.readonly?e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,collapsible:this.collapsible,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,isCollapsed:this.isCollapsed,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,required:this.required,style:this.componentStyleHide,type:"fieldset",valueParentClass:this.classColumnsReadonly},()=>_):e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{class:"a_form_element__parent"},[e.h("fieldset",{id:this.htmlIdLocal,tabindex:-1,class:["a_fieldset",this.classFieldset,{a_fieldset_invalid:this.isErrors,a_fieldset_no_border:!this.hasBorder,a_fieldset_collapsed:this.isCollapsedLocal,a_fieldset_collapsible:this.collapsible,a_fieldset_with_legend:this.label}],"aria-describedby":this.ariaDescribedbyLocal,...this.attributesFieldset},[this.label||this.labelScreenReader?e.h(O_,{type:"text",alwaysTranslate:this.alwaysTranslate,tag:"legend",class:["a_legend",{a_legend_invalid:this.isErrors},this.labelClass],extra:this.extra,html:this.label,title:this.labelTitle||this.label,textScreenReader:this.labelScreenReader,textAfter:this.textAfterLabel}):"",this.collapsible?e.h(O_,{"aria-controls":this.groupId,"aria-expanded":!this.isCollapsedLocal,alwaysTranslate:this.alwaysTranslate,class:"a_fieldset__btn_collapse a_btn a_btn_transparent_secondary",iconLeft:this.iconCollapse,title:this.titleCollapse,textScreenReader:this.titleCollapse,type:"button",onClick:this.toggleCollapse}):"",e.h("div",{id:this.groupId,class:[this.classColumns,"a_fieldset__content"]},_)]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])])}},wy=["datepickerRange","dateRange"],Sf={};j(wy,_=>{Sf[_]=!0});const uf=Sf;function Hy(_){const t=e.toRef(_,"children");return{specificAttributes:e.computed(()=>{const E={};return j(t.value,a=>{const s=_f[a.type],o=uf[a.type];s&&w_(a.inputWidth)&&(E[a.id]={inputWidth:"auto"}),o&&(E[a.id]={inputWidth:"inherit",inputAttributes:{style:"min-width: 181px"}})}),E})}}const MT={name:"AGroup",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1,default:void 0},change:{type:Function,required:!1,default:()=>{}},children:{type:Array,required:!1,default:()=>[]},classColumnDefault:{type:[String,Object],required:!1,default:"a_column a_column_6 a_column_12_touch"},classColumns:{type:[String,Object],required:!1,default:"a_columns a_columns_count_12 a_columns_gap_2"},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},errors:{type:[String,Array,Object],required:!1,default:void 0},errorsAll:{type:Object,required:!1,default:()=>({})},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_group_")},idPrefix:{type:String,required:!1,default:void 0},inputClass:{type:[String,Object],required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelAll:{type:Object,required:!1,default:()=>({})},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{type:[String,Number,Array,Object,Boolean],required:!1,default:void 0},parentId:{type:Array,required:!1,default:()=>[]},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},useFlatErrors:{type:Boolean,required:!1,default:!0},useFlatModel:{type:Boolean,required:!1,default:!0},useHtmlIdAsKey:{type:Boolean,required:!1,default:!1}},emits:["blur","focus","update:modelValue","updateData"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),E=()=>({...Ao,...St.components,...St.containerComponents}),{componentStyleHide:a}=Je(_),{ariaDescribedbyLocal:s,changeModel:o,clearModel:l,errorsId:A,helpTextId:T,htmlIdLocal:L,isErrors:S}=je(_,t),c=e.toRef(_,"change"),f=e.toRef(_,"id"),d=e.toRef(_,"modelAll"),R=e.toRef(_,"modelValue"),C=e.toRef(_,"parentId"),I=e.toRef(_,"useFlatModel"),O=({currentModel:Y,id:b,item:$,model:M,props:W,component:H,fullModel:w})=>{if(w){const x=e_(w);t.emit("update:modelValue",x),c.value({currentModel:Y,id:b,item:$,fullModel:x,model:M,props:W}),U_(H.change)&&H.change({currentModel:Y,id:b,item:$,fullModel:x,model:M,props:W});return}const K=I.value?e_(R.value||{}):e_(d.value||{});if(I.value)$r(K,b,e_(M));else{const X=[...C.value,f.value,b].join(".");$r(K,X,e_(M))}t.emit("update:modelValue",K),c.value({currentModel:Y,id:b,item:$,fullModel:K,model:M,props:W}),U_(H.change)&&H.change({currentModel:Y,id:b,item:$,fullModel:K,model:M,props:W})},p=({item:Y,dataKeyByKeyId:b})=>{t.emit("updateData",{item:Y,dataKeyByKeyId:b})},U=e.toRef(_,"children"),D=e.toRef(_,"idPrefix"),V=e.computed(()=>U.value[0]||{}),B=e.computed(()=>RE({id:V.value.id,idPrefix:V.value.idPrefix||D.value,htmlId:V.value.htmlId})),{specificAttributes:y}=Hy(_);return{ariaDescribedbyLocal:s,attributesToExcludeFromRender:n,changeModel:o,clearModel:l,componentStyleHide:a,componentTypesMapping:E,errorsId:A,firstChild:V,helpTextId:T,htmlIdFirstChild:B,htmlIdLocal:L,isErrors:S,onUpdateDataLocal:p,onUpdateModelLocal:O,specificAttributes:y}},render(){return this.isRender?e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{id:this.htmlIdLocal,role:"group",tabindex:-1,class:[this.inputClass,{a_group_invalid:this.isErrors}],"aria-describedby":this.ariaDescribedbyLocal},[e.h("div",{class:this.classColumns},[this.firstChild.label&&e.h(qe,{id:this.htmlIdFirstChild,alwaysTranslate:this.alwaysTranslate,extra:this.extra,isError:!!this.errorsAll[this.firstChild.id],isLabelFloat:!1,label:this.label||this.firstChild.label,labelClass:this.labelClass||this.firstChild.labelClass||this.classColumnDefault,labelScreenReader:this.labelScreenReader||this.firstChild.labelScreenReader,required:this.required||this.firstChild.required,type:this.firstChild.type}),this.children.map((_,t)=>{const n=Da.value[_.type];let E;t_(_.classColumn)?E=this.classColumnDefault:_.classColumn&&(E=_.classColumn);let a;_.isHide&&(a="display: none;");const s=this.componentTypesMapping()[_.type],o=this.useFlatErrors?n_(this.errorsAll,_.id):n_(this.errors,_.id);let l;n&&(l=e_(this.parentId),l.push(this.id));const A=n&&!this.useFlatModel||!n?n_(this.modelValue,_.id):this.modelValue;let T=t;return this.useHtmlIdAsKey&&(T=RE({id:_.id,idPrefix:_.idPrefix||this.idPrefix,htmlId:_.htmlId})),e.h("div",{key:T,class:E,style:a},[e.h(s,{alwaysTranslate:this.alwaysTranslate,modelAll:n?this.modelAll:void 0,modelValue:A,modelDependencies:n?this.modelValue:void 0,errors:o,errorsAll:n?this.errorsAll:void 0,parentId:l,idPrefix:this.idPrefix,onUpdateData:({dataKeyByKeyId:L})=>this.onUpdateDataLocal({item:_,dataKeyByKeyId:L}),..._,change:({currentModel:L,id:S,item:c,model:f,props:d})=>this.onUpdateModelLocal({currentModel:L,id:S,item:c,model:f,props:d,component:_}),disabled:this.disabled||_.disabled,...this.specificAttributes[_.id],label:t===0?void 0:_.label,slotAppend:void 0,classColumn:void 0,...this.attributesToExcludeFromRender},this.$slots),_.slotAppend&&this.$slots[_.slotAppend]?this.$slots[_.slotAppend]({item:_,itemIndex:t}):""])})])]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{class:"a_px_3",id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})]):null}},FT={fieldset:Ar,group:MT,...St.containerComponents};function xy(){return{componentTypesMapping:()=>({...Ao,...FT,...St.components,...St.containerComponents})}}function qy(_){const t=e.toRef(_,"filter");return{isContainer:e.computed(()=>!!Da.value[t.value.type])}}function Wy(_){const t=e.toRef(_,"filter");return{filterSpecificAttributes:e.computed(()=>{const E={},a=_f[t.value.type],s=uf[t.value.type];return a&&w_(t.value.inputWidth)&&(E.inputWidth="auto"),s&&(E.inputWidth="inherit",E.inputAttributes={style:"min-width: 181px"}),E})}}function ky(_){const t=e.toRef(_,"id");return{idPrefix:e.computed(()=>`${t.value}_`)}}function Ky(_,{isContainer:t=e.computed(()=>!1)}){const n=e.toRef(_,"filter"),E=e.toRef(_,"onUpdateModelFilters"),a=e.toRef(_,"unappliedModel");return{onUpdateModelFiltersLocal:o=>{if(t.value)E.value({fullModel:o});else{const l=e_(a.value);l[n.value.id]=e_(o),E.value({fullModel:l})}}}}function Xy(_){const t=e.toRef(_,"filter"),n=e.toRef(_,"updateDataKeyByIdFromFilter"),E=["select","multiselect","radio","checkbox","group","fieldset"],a=({dataKeyByKeyId:o,item:l})=>{let A=t.value.id;l&&(A=l.id),n.value({filterId:A,dataKeyByKeyId:o})};return{emitForComponentsWithData:e.computed(()=>{const o={};return E.indexOf(t.value.type)!==-1&&(o.onUpdateData=a),o})}}const jy={name:"AFiltersHorizontalFilterUi",props:{excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filter:{type:Object,required:!1,default:void 0},id:{type:String,required:!0},isLabelVisible:{type:Boolean,required:!0},onUpdateModelFilters:{type:Function,required:!0},unappliedModel:{type:Object,required:!0},updateDataKeyByIdFromFilter:{type:Function,required:!0}},setup(_){const{attributesToExcludeFromRender:t}=Ye(_),{isContainer:n}=qy(_),{onUpdateModelFiltersLocal:E}=Ky(_,{isContainer:n}),{emitForComponentsWithData:a}=Xy(_),{idPrefix:s}=ky(_),{componentTypesMapping:o}=xy(),{filterSpecificAttributes:l}=Wy(_);return{attributesToExcludeFromRender:t,componentTypesMapping:o,emitForComponentsWithData:a,filterSpecificAttributes:l,idPrefix:s,isContainer:n,onUpdateModelFiltersLocal:E}},render(){const _=this.componentTypesMapping()[this.filter.type];return e.h(_,{idPrefix:this.idPrefix,modelValue:this.isContainer?this.unappliedModel:this.unappliedModel[this.filter.id],"onUpdate:modelValue":this.onUpdateModelFiltersLocal,excludeRenderAttributes:this.excludeRenderAttributes,...this.filter,...this.filterSpecificAttributes,label:this.isLabelVisible?this.filter.label:void 0,...this.emitForComponentsWithData,...this.attributesToExcludeFromRender},this.$slots)}};function zy(_){const t=e.toRef(_,"id");return{idFilterRight:e.computed(()=>`${t.value}_filter_right`)}}const cf={name:"AFilersRight",props:{appliedModel:{type:Object,required:!0},disabled:{type:Boolean,required:!1},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filters:{type:Array,required:!1,default:()=>[]},filtersKeyById:{type:Object,required:!0},id:{type:String,required:!0},onUpdateModelFilters:{type:Function,required:!0},updateDataKeyByIdFromFilter:{type:Function,required:!0}},emits:["startSearch"],setup(_){const{idFilterRight:t}=zy(_);return{idFilterRight:t}},render(){return e.h("div",{id:this.idFilterRight,class:"a_filters_right"},[e.h("form",{},[this.filters.map(_=>e.h(jy,{id:this.id,class:"a_filters_right__filter_ui",excludeRenderAttributes:this.excludeRenderAttributes,filter:_,isLabelVisible:!0,onUpdateModelFilters:this.onUpdateModelFilters,unappliedModel:this.appliedModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter},this.$slots))])])}};function Jy(_){const t=e.toRef(_,"closeFilterValue"),n=e.toRef(_,"disabled"),E=e.toRef(_,"filter");return{closeCurrentFilterValue:({modelValue:s})=>{n.value||t.value({filter:E.value,modelArray:s.modelArray,keyId:s.keyId})}}}function Zy(_,{emit:t},{modelValuesForCurrentFilter:n=e.computed(()=>[])}){const E=e.toRef(_,"filter"),a=e.computed(()=>n.value.length>0);return{isLeastOneFilterVisible:a,updateVisibleChildFilters:({destroy:o}={})=>{t("updateVisibleChildFilters",{id:E.value.id,isVisible:o?!1:a.value})}}}function Qy(_){const t=e.toRef(_,"filter"),n=e.toRef(_,"id"),E=e.computed(()=>`eventATableFilterTopOnOpen_${n.value}`);return{goToFilter:({modelValue:s}={})=>{let o=RE({id:t.value.id,idPrefix:`${n.value}_filter_top`,htmlId:t.value.htmlId});s.idSuffix&&(o+=s.idSuffix),t.value.main||Ve.$emit(E.value,o)}}}function _M({filter:_,currentModel:t}){return!(!_||_.hideFilterCenter||t_(t)||t===""||p_(t)&&!t.length)}function eM(_){const t=e.toRef(_,"filter"),n=e.toRef(_,"model");return{hasCurrentFilter:e.computed(()=>_M({filter:t.value,currentModel:n.value}))}}function tM(_,{emit:t},{hasCurrentFilter:n=e.computed(()=>!1)}){const E=e.toRef(_,"dataKeyByKeyIdPerFilter"),a=e.toRef(_,"filter"),s=e.computed(()=>n.value&&Kd.value[a.value.type]?_t(E.value[a.value.id]):!1);return{isFilterLoading:s,updateLoadingChildFilters:(l,A)=>{l!==A&&t("updateLoadingChildFilters",{id:a.value.id,isLoading:s.value})}}}function nM(_,{hasCurrentFilter:t=e.computed(()=>!1)}){const n=e.toRef(_,"filter"),E=e.computed(()=>t.value?n.value.label:""),a=e.computed(()=>{if(t.value)return n.value.labelScreenReader}),s=e.computed(()=>a.value||E.value);return{filterLabel:E,filterLabelForTitle:s}}function EM(_,{filterLabel:t=e.computed(()=>""),filterLabelForTitle:n=e.computed(()=>""),hasCurrentFilter:E=e.computed(()=>!1)}){const a=e.toRef(_,"dataKeyByKeyIdPerFilter"),s=e.toRef(_,"filter"),o=e.toRef(_,"model"),{filterBoolean:l,filterDate:A}=Gt(),T=e.computed(()=>{if(s.value)return a.value[s.value.id]}),L=e.computed(()=>{var f;return(f=o.value)!=null&&f.length?ce(o.value,d=>T.value&&T.value[d]):[]}),S=({label:f,suffixTranslated:d})=>{const R=u_({placeholder:f});return d?`${R} ${d}`:R};return{modelValuesForCurrentFilter:e.computed(()=>{var f,d,R,C,I,O,p,U,D;if(!E.value)return[];if(s.value.type==="switch"||s.value.type==="oneCheckbox")return[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:l(o.value)}];if(s.value.type==="date")return[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:A(o.value)}];if(s.value.type==="select"||s.value.type==="radio"){const V=n_(T.value,`${o.value}.${te}`);return V?[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:V}]:[]}if(ro.value[s.value.type]||s.value.type==="radio"&&s.value.isModelArray){if(L.value.length){if(L.value.length===1){const V=(f=T.value)==null?void 0:f[L.value[0]];let B=V==null?void 0:V[te];if(s.value.mode==="one_per_group"&&s.value.keyGroup){const y=n_(V,s.value.keyGroup);U_(s.value.keyGroupCallback)?B=`${s.value.keyGroupCallback({item:V,inDropdown:!1,group:y})} "${B}"`:B=`${y} "${B}"`}return[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:B,item:V,modelArray:L.value}]}return[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:u_({placeholder:"_A_FILTERS_SELECTED_{{count}}_",extra:{count:L.value.length,modelArray:L.value}}),modelArray:L.value,extra:{count:L.value.length,modelArray:L.value}}]}return[]}if(s.value.type==="dateRange"){const V=s.value.keyFrom||"from",B=s.value.keyUntil||"until",y=[];if(!t_((d=o.value)==null?void 0:d[V])&&((R=o.value)==null?void 0:R[V])!==""){const Y=u_({placeholder:s.value.labelFrom||"_A_DATEPICKER_RANGE_FROM_"});y.push({filterLabelTranslated:S({label:t.value,suffixTranslated:Y}),filterLabelForTitleTranslated:S({label:n.value,suffixTranslated:Y}),label:A(o.value[V]),idSuffix:"_from",keyId:V})}if(!t_((C=o.value)==null?void 0:C[B])&&((I=o.value)==null?void 0:I[B])!==""){const Y=u_({placeholder:s.value.labelUntil||"_A_DATEPICKER_RANGE_UNTIL_"});y.push({filterLabelTranslated:S({label:t.value,suffixTranslated:Y}),filterLabelForTitleTranslated:S({label:n.value,suffixTranslated:Y}),label:A(o.value[B]),idSuffix:"_until",keyId:B})}return y}if(bT.indexOf(s.value.type)!==-1){const V=s.value.keyMax||"max",B=s.value.keyMin||"min",y=[];if(!t_((O=o.value)==null?void 0:O[B])&&((p=o.value)==null?void 0:p[B])!==""){const Y=u_({placeholder:s.value.labelMin||"_A_INPUT_NUMBER_RANGE_LABEL_MIN_"});y.push({filterLabelTranslated:S({label:t.value,suffixTranslated:Y}),filterLabelForTitleTranslated:S({label:n.value,suffixTranslated:Y}),label:o.value[B],idSuffix:"_min",keyId:B})}if(!t_((U=o.value)==null?void 0:U[V])&&((D=o.value)==null?void 0:D[V])!==""){const Y=u_({placeholder:s.value.labelMax||"_A_INPUT_NUMBER_RANGE_LABEL_MAX_"});y.push({filterLabelTranslated:S({label:t.value,suffixTranslated:Y}),filterLabelForTitleTranslated:S({label:n.value,suffixTranslated:Y}),label:o.value[V],idSuffix:"_max",keyId:V})}return y}return[{label:o.value,filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value})}]})}}const aM=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pin-fill" viewBox="0 0 16 16">
|
|
139
|
+
</svg>`,Tf={name:"AValidatedJsonItem",props:{children:{type:Array,required:!0},deactivateOrdering:{type:Boolean,required:!1},deactivatePreview:{type:Boolean,required:!1},elementLabel:{type:String,required:!0},elementTemplate:{type:String,required:!1,default:"{{ elementLabel }}"},errors:{type:[Array,Object],required:!1,default:void 0},hidePosition:{type:Boolean,required:!1},isLast:{type:Boolean,required:!1},keyId:{type:String,required:!1,default:void 0},mode:{type:String,required:!0,validator:_=>["list","json"].includes(_)},modelAll:{type:Array,required:!0},modelIndex:{type:Number,required:!0},modelItem:{type:Object,required:!0},parentHtmlId:{type:String,required:!0},parentId:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:void 0},typedBaseId:{type:String,required:!1,default:void 0},typedChildren:{type:Object,required:!1,default:()=>({})},uniqueChildrenIds:{type:Array,required:!1,default:()=>[]},useFlatModel:{type:Boolean,required:!1,default:!1}},emits:["delete","move","update"],setup(_,t){const{idLocal:n}=Py(_),{label:E}=by(_),{btnMoveDownId:a,btnMoveUpId:s,canMove:o,disabledMoveDown:l,disabledMoveUp:A,moveDown:T,moveUp:L}=Yy(_,t),{btnDeleteId:S,openDeleteConfirm:c}=Dy(_,t),{btnOpenModalUpdateId:f,closeModalUpdate:d,isModalUpdateVisible:R,openModalUpdate:C}=gy(_,t),{btnToggleDetailsId:I,detailsId:O,iconBtnToggleDetails:p,isDetailsVisible:U,titleBtnToggleDetails:D,toggleDetails:V}=my(_);return{btnDeleteId:S,btnMoveDownId:a,btnMoveUpId:s,btnOpenModalUpdateId:f,btnToggleDetailsId:I,canMove:o,closeModalUpdate:d,detailsId:O,disabledMoveDown:l,disabledMoveUp:A,iconBtnToggleDetails:p,idLocal:n,isDetailsVisible:U,isModalUpdateVisible:R,label:E,moveDown:T,moveUp:L,openDeleteConfirm:c,openModalUpdate:C,titleBtnToggleDetails:D,toggleDetails:V}},render(){return e.h("li",{id:this.idLocal,class:"a_list_group__item"},[e.h("div",{class:"a_d_flex a_justify_content_between a_align_items_center"},[this.deactivatePreview?"":e.h(O_,{id:this.btnToggleDetailsId,class:"a_btn a_btn_secondary a_mr_4 test_toggle_details",iconLeft:this.iconBtnToggleDetails,title:this.titleBtnToggleDetails,textScreenReader:this.titleBtnToggleDetails,type:"button",onClick:this.toggleDetails}),e.h("strong",{class:["a_validated_json_list__item__label",{a_validated_json_list__item__label_error:this.errors}]},this.label),this.readonly?"":e.h("div",{class:"a_btn_group a_ml_4",role:"group"},[this.canMove?e.h(O_,{id:this.btnMoveUpId,ariaDisabled:this.disabledMoveUp,class:"a_btn a_btn_secondary test_move_up",iconLeft:tr,title:"_A_VALIDATED_JSON_MOVE_UP_",textScreenReader:"_A_VALIDATED_JSON_MOVE_UP_",type:"button",onClick:this.moveUp}):"",this.canMove?e.h(O_,{id:this.btnMoveDownId,ariaDisabled:this.disabledMoveDown,class:"a_btn a_btn_secondary test_move_down",iconLeft:yn,title:"_A_VALIDATED_JSON_MOVE_DOWN_",textScreenReader:"_A_VALIDATED_JSON_MOVE_DOWN_",type:"button",onClick:this.moveDown}):"",e.h(O_,{id:this.btnOpenModalUpdateId,class:"a_btn a_btn_secondary test_edit",iconLeft:Af,title:"_A_VALIDATED_JSON_ELEMENT_UPDATE_",textScreenReader:"_A_VALIDATED_JSON_ELEMENT_UPDATE_",type:"button",onClick:this.openModalUpdate}),e.h(O_,{id:this.btnDeleteId,class:"a_btn a_btn_danger test_remove",iconLeft:oo,title:"_A_VALIDATED_JSON_ELEMENT_REMOVE_",textScreenReader:"_A_VALIDATED_JSON_ELEMENT_REMOVE_",type:"button",onClick:this.openDeleteConfirm})])]),this.isDetailsVisible?e.h("div",{class:"a_ml_6 a_mt_2 a_px_4"},[e.h(Ar,{children:this.children,idPrefix:this.parentHtmlId,modelValue:this.modelItem,readonly:!0,skipOwnIdInModelPath:!0,slotNamePrepend:"singlePrepend",useFlatModel:this.useFlatModel},this.$slots)]):"",this.isModalUpdateVisible?e.h(yT,{children:this.children,close:this.closeModalUpdate,currentIndex:this.modelIndex,currentModel:this.modelItem,elementLabelTranslated:this.elementLabel,errors:this.errors,isCreate:!1,keyId:this.keyId,mode:this.mode,modelAll:this.modelAll,selectorCloseIds:this.btnOpenModalUpdateId,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds}):""])}};function By(_,{htmlIdLocal:t=e.computed(()=>{})}){return{btnIdAdd:e.computed(()=>`${t.value}_btn_add`)}}function $y(_){const t=e.toRef(_,"children"),n=e.toRef(_,"keyId"),E=e.toRef(_,"mode"),a=e.toRef(_,"readonly"),s=e.toRef(_,"showReadonlyChildren"),o=e.computed(()=>({id:C_,type:"text",required:!0,label:"_A_VALIDATED_JSON_ID_LABEL_",helpText:"_A_VALIDATED_JSON_ID_HELP_TEXT_"})),l=T=>T.reduce((L,S)=>(S.readonly||(p_(S.children)&&S.children.length&&(S.children=l(S.children)),L.push(S)),L),[]);return{childrenFiltered:e.computed(()=>{if(a.value||s.value)return E.value==="json"&&!n.value?[o.value,...t.value]:t.value;const T=l(e_(t.value));return E.value==="json"&&!n.value?[o.value,...T]:T})}}function Vy({emit:_}){return{blur:a=>{_("blur",a)},focus:a=>{_("focus",a)},open:a=>{_("open",a)}}}function yy(_,{emit:t},{htmlIdLocal:n=e.computed(()=>{})}){const E=e.toRef(_,"change"),a=e.toRef(_,"id"),s=e.toRef(_,"keyId"),o=e.toRef(_,"modelValue"),l=e.toRef(_,"sortId"),A=e.ref(!1),T=e.computed(()=>J_(o.value)?o.value:{}),L=e.computed(()=>{const C=[];return j(e_(T.value),(I,O)=>{I[C_]=O,C.push(I)}),l.value?Vr(C,[l.value]):C}),S=e.computed(()=>_t(T.value));return{closeModalCreateJsonMode:({model:C}={})=>{if(C){const I=e_(T.value),O=C[s.value||C_];I[O]=C,t("update:modelValue",e_(I)),E.value({currentModel:I,model:I,id:a.value})}A.value=!1},deleteJsonMode:({key:C})=>{const I=e_(T.value);delete I[C],t("update:modelValue",e_(I)),E.value({currentModel:I,model:I,id:a.value}),e.nextTick().then(()=>{Ce({selector:`#${n.value}`})})},isModelJsonModeEmpty:S,isModalCreateJsonModeVisible:A,modelJsonMode:T,modelJsonModeSorted:L,openModalCreateJsonMode:()=>{A.value=!0},updateJsonMode:({model:C,key:I,oldKey:O})=>{const p=e_(T.value);delete p[O],p[I]=C,t("update:modelValue",e_(p)),E.value({currentModel:p,model:p,id:a.value})}}}function My(_,{emit:t},{htmlIdLocal:n=e.computed(()=>{})}){const E=e.toRef(_,"change"),a=e.toRef(_,"id"),s=e.toRef(_,"modelValue"),o=e.ref(!1),l=e.computed(()=>p_(s.value)?s.value:[]),A=()=>{o.value=!0},T=({model:R}={})=>{if(R){const C=e_(l.value);C.push(R),t("update:modelValue",e_(C)),E.value({currentModel:C,model:C,id:a.value})}o.value=!1},L=({index:R})=>{if(R===0)return;const C=e_(l.value),I=C[R];C.splice(R,1),C.splice(R-1,0,I),t("update:modelValue",e_(C)),E.value({currentModel:C,model:C,id:a.value}),e.nextTick().then(()=>{const O=`#${n.value}_btn_move_up_${R-1}`;Ce({selector:O})})},S=({index:R})=>{if(R>=l.value.length-1)return;const C=e_(l.value),I=C[R];C.splice(R,1),C.splice(R+1,0,I),t("update:modelValue",e_(C)),E.value({currentModel:C,model:C,id:a.value}),e.nextTick().then(()=>{const O=`#${n.value}_btn_move_down_${R+1}`;Ce({selector:O})})};return{closeModalCreateListMode:T,deleteListMode:({index:R})=>{const C=e_(l.value);C.splice(R,1),t("update:modelValue",e_(C)),E.value({currentModel:C,model:C,id:a.value}),e.nextTick().then(()=>{Ce({selector:`#${n.value}`})})},isModalCreateListModeVisible:o,modelListMode:l,moveListMode:({action:R,index:C})=>{R==="up"?L({index:C}):S({index:C})},openModalCreateListMode:A,updateListMode:({index:R,model:C})=>{const I=e_(l.value);I.splice(R,1,C),t("update:modelValue",e_(I)),E.value({currentModel:I,model:I,id:a.value})}}}function Fy(_,{emit:t}){const n=e.toRef(_,"modelValue"),E=e.toRef(_,"change"),a=e.toRef(_,"id"),s=({value:l})=>t_(l)?void 0:l;return{onChange:({currentModel:l,id:A,model:T,fullModel:L})=>{const S=s({value:e_(l||T)});S!==n.value&&(t("update:modelValue",L),E.value({currentModel:S,model:S,id:A?`${a.value}.${A}`:a.value,$event:null}))},checkUndefinedValue:s}}function Gy(_,{childrenFiltered:t=e.computed(()=>[]),htmlIdLocal:n=e.computed(()=>{}),onChange:E=()=>{}}){const a=e.toRef(_,"mode"),s=e.toRef(_,"modelValue"),o=e.toRef(_,"modeOptions"),l=e.toRef(_,"readonly"),A=e.toRef(_,"required"),T=e.toRef(_,"typedBaseId"),L=e.toRef(_,"typedChildren"),S=e.ref(void 0),c=e.computed(()=>{var D;return((D=o.value)==null?void 0:D.labelCheckbox)||"_A_VALIDATED_JSON_SINGLE_LABEL_CHECKBOX_"}),f=e.computed(()=>!(_t(L.value)||!T.value)),d=e.computed(()=>n_(s.value,T.value)),R=e.computed(()=>{var D;return d.value&&((D=L.value[d.value])!=null&&D.length)?L.value[d.value]:[]}),C=({model:D})=>{S.value=D,D||E({currentModel:void 0,model:void 0,fullModel:void 0})},I=e.computed(()=>!!(t_(S.value)&&Ca(s.value)>0||A.value||S.value)),O=e.computed(()=>({class:"a_column a_column_12",modelValue:I.value,type:"oneCheckbox",falseValue:!1,id:`${n.value}_show_form_checkbox`,label:c.value,change:C})),p=e.computed(()=>I.value?f.value?[...t.value,...R.value]:t.value:[]);return{initSingleModeModelCheckbox:()=>{a.value==="single"&&!l.value&&Ca(s.value)===0&&(S.value=o.value.optionalSingleDefault)},singleModeChildren:p,singleModeDataFormCheckbox:O}}function vy(_){const t=e.toRef(_,"elementLabel");return{elementLabelTranslated:e.computed(()=>u_({placeholder:t.value||"_A_VALIDATED_JSON_ELEMENTS_"}))}}const Lf={name:"AValidatedJson",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1,default:void 0},change:{type:Function,required:!1,default:()=>{}},children:{type:Array,required:!1,default:()=>[]},disabled:{type:Boolean,required:!1,default:void 0},deactivateOrdering:{type:Boolean,required:!1},deactivatePreview:{type:Boolean,required:!1},hidePosition:{type:Boolean,required:!1},elementLabel:{type:String,required:!1,default:"_A_VALIDATED_JSON_ELEMENTS_"},elementTemplate:{type:String,required:!1,default:"{{ elementLabel }}"},errors:{type:[String,Array,Object],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},sortId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_validated_json_")},idPrefix:{type:String,required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},mode:{type:String,required:!1,default:void 0,validator:_=>["list","json","single"].includes(_)},modeOptions:{type:Object,required:!1,default:()=>({})},modelAll:{type:Object,required:!1,default:void 0},modelValue:{type:[String,Number,Boolean,Object,Array],required:!1,default:void 0},options:{type:Object,required:!1,default:()=>({})},readonly:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1,default:!1},showReadonlyChildren:{type:Boolean,required:!1,default:!1},typedBaseId:{type:String,required:!1,default:void 0},typedChildren:{type:Object,required:!1,default:()=>({})},uniqueChildrenIds:{type:Array,required:!1,default:()=>[]},useFlatErrors:{type:Boolean,required:!1,default:!1},useFlatModel:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),{componentStyleHide:E}=Je(_),{ariaDescribedbyLocal:a,errorsId:s,helpTextId:o,htmlIdLocal:l,isErrors:A}=je(_,t),{onChange:T,checkUndefinedValue:L}=Fy(_,t),{elementLabelTranslated:S}=vy(_),{btnIdAdd:c}=By(_,{htmlIdLocal:l}),{blur:f,focus:d,open:R}=Vy(t),{childrenFiltered:C}=$y(_),{initSingleModeModelCheckbox:I,singleModeChildren:O,singleModeDataFormCheckbox:p}=Gy(_,{childrenFiltered:C,htmlIdLocal:l,onChange:T}),{closeModalCreateListMode:U,deleteListMode:D,isModalCreateListModeVisible:V,moveListMode:B,modelListMode:y,openModalCreateListMode:Y,updateListMode:b}=My(_,t,{htmlIdLocal:l}),{closeModalCreateJsonMode:$,deleteJsonMode:M,isModelJsonModeEmpty:W,isModalCreateJsonModeVisible:H,modelJsonMode:w,modelJsonModeSorted:K,openModalCreateJsonMode:x,updateJsonMode:X}=yy(_,t,{htmlIdLocal:l});return I(),{childrenFiltered:C,blur:f,focus:d,deleteListMode:D,updateListMode:b,open:R,closeModalCreateListMode:U,isModalCreateListModeVisible:V,modelListMode:y,modelJsonModeSorted:K,btnIdAdd:c,elementLabelTranslated:S,singleModeChildren:O,singleModeDataFormCheckbox:p,moveListMode:B,openModalCreateListMode:Y,ariaDescribedbyLocal:a,attributesToExcludeFromRender:n,checkUndefinedValue:L,componentStyleHide:E,errorsId:s,helpTextId:o,htmlIdLocal:l,isErrors:A,closeModalCreateJsonMode:$,deleteJsonMode:M,isModelJsonModeEmpty:W,isModalCreateJsonModeVisible:H,modelJsonMode:w,openModalCreateJsonMode:x,updateJsonMode:X,onChange:T}},render(){if(!this.isRender)return null;if(this.mode==="single")return e.h(Ar,{...this.$attrs,alwaysTranslate:this.alwaysTranslate,children:this.singleModeChildren,disabled:this.disabled,errors:this.errors,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,htmlId:this.htmlId,id:this.id,idPrefix:this.htmlIdLocal,isHide:this.isHide,isRender:this.isRender,label:this.label,labelClass:this.labelClass,labelDescription:this.labelDescription,labelScreenReader:this.labelScreenReader,modelAll:this.modelAll,modelValue:this.modelValue,readonly:this.readonly,required:this.required,skipOwnIdInModelPath:!0,slotNamePrepend:`singlePrepend_${this.id}`,useFlatErrors:this.useFlatErrors,useFlatModel:this.useFlatModel,change:this.onChange},{[`singlePrepend_${this.id}`]:this.required?void 0:()=>e.h(kr,this.singleModeDataFormCheckbox),...this.$slots});if(this.mode==="list")return e.h(Ar,{...this.$attrs,id:this.htmlIdLocal,class:["a_validated_json a_validated_json_list",this.$attrs.class],errors:this.errors?"_A_VALIDATED_JSON_ERROR_FIELDSET_":void 0,extra:this.extra,helpText:this.helpText,isHide:this.isHide,isRender:this.isRender,label:this.label,labelClass:this.labelClass,labelDescription:this.labelDescription,labelScreenReader:this.labelScreenReader,required:this.required,slotName:`slotAppend_${this.id}`},{[`slotAppend_${this.id}`]:()=>e.h("div",{class:"a_column a_column_12"},[e.h("ul",{class:"a_list_group"},[this.modelListMode.length>0?this.modelListMode.map((_,t)=>{var n;return e.h(Tf,{key:t,children:this.childrenFiltered,deactivateOrdering:this.deactivateOrdering,deactivatePreview:this.deactivatePreview,elementLabel:this.elementLabelTranslated,elementTemplate:this.elementTemplate,errors:(n=this.errors)==null?void 0:n[t],hidePosition:this.hidePosition,isLast:t===this.modelListMode.length-1,mode:this.mode,modelAll:this.modelListMode,modelIndex:t,modelItem:_,parentHtmlId:this.htmlIdLocal,parentId:this.id,readonly:this.readonly,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds,useFlatModel:this.useFlatModel,onDelete:this.deleteListMode,onMove:this.moveListMode,onUpdate:this.updateListMode})}):e.h(f_,{class:"a_list_group__item",tag:"li",text:"_A_VALIDATED_JSON_NO_ELEMENTS_"}),this.readonly?"":e.h("li",{class:"a_list_group__item"},[e.h(O_,{id:this.btnIdAdd,class:"a_btn a_btn_secondary test_add a_width_100",disabled:this.disabled,extra:{elementLabel:this.elementLabelTranslated},iconLeft:ao,text:"_A_VALIDATED_JSON_NO_ELEMENTS_ADD_ELEMENT_{{elementLabel}}_",type:"button",onClick:this.openModalCreateListMode})])]),this.isErrors&&e.h(ze,{id:this.errorsId,errors:this.errors,errorsClass:this.errorsClass}),this.isModalCreateListModeVisible?e.h(yT,{children:this.childrenFiltered,close:this.closeModalCreateListMode,elementLabelTranslated:this.elementLabelTranslated,isCreate:!0,mode:"list",modelAll:this.modelListMode,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds}):""])});if(this.mode==="json")return e.h(Ar,{...this.$attrs,id:this.htmlIdLocal,class:["a_validated_json a_validated_json_json",this.$attrs.class],extra:this.extra,errors:this.errors?"_A_VALIDATED_JSON_ERROR_FIELDSET_":void 0,helpText:this.helpText,isHide:this.isHide,isRender:this.isRender,label:this.label,labelClass:this.labelClass,labelDescription:this.labelDescription,labelScreenReader:this.labelScreenReader,required:this.required,slotName:"slotAppend"},{slotAppend:()=>e.h("div",{class:"a_column a_column_12"},[e.h("ul",{class:"a_list_group"},[this.isModelJsonModeEmpty?e.h(f_,{class:"a_list_group__item",tag:"li",text:"_A_VALIDATED_JSON_NO_ELEMENTS_"}):this.modelJsonModeSorted.map((_,t)=>{var n;return e.h(Tf,{key:t,children:this.childrenFiltered,deactivateOrdering:!0,deactivatePreview:this.deactivatePreview,elementLabel:this.elementLabelTranslated,elementTemplate:this.elementTemplate,errors:(n=this.errors)==null?void 0:n[_[C_]],hidePosition:this.hidePosition,keyId:this.keyId,mode:this.mode,modelAll:this.modelJsonModeSorted,modelIndex:t,modelItem:_,parentHtmlId:this.htmlIdLocal,parentId:this.id,readonly:this.readonly,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds,useFlatModel:this.useFlatModel,onDelete:this.deleteJsonMode,onUpdate:this.updateJsonMode})}),this.readonly?"":e.h("li",{class:"a_list_group__item"},[e.h(O_,{id:this.btnIdAdd,class:"a_btn a_btn_secondary test_add a_width_100",disabled:this.disabled,extra:{elementLabel:this.elementLabelTranslated},iconLeft:ao,text:"_A_VALIDATED_JSON_NO_ELEMENTS_ADD_ELEMENT_{{elementLabel}}_",type:"button",onClick:this.openModalCreateJsonMode})])]),this.isErrors&&e.h(ze,{id:this.errorsId,errors:this.errors,errorsClass:this.errorsClass}),this.isModalCreateJsonModeVisible?e.h(yT,{children:this.childrenFiltered,close:this.closeModalCreateJsonMode,elementLabelTranslated:this.elementLabelTranslated,isCreate:!0,keyId:this.keyId,mode:"json",modelAll:this.modelJsonModeSorted,typedBaseId:this.typedBaseId,typedChildren:this.typedChildren,uniqueChildrenIds:this.uniqueChildrenIds}):""])})}},Ao={checkbox:pd,color:Bt,currency:kd,date:ir,dateRange:Gd,datetime:ir,email:Bt,file:Zd,integer:CE,integerNonNegative:CE,integerNonNegativeRange:so,integerPositive:CE,integerPositiveRange:so,integerRange:so,json:ef,multiselect:EE,multiselectIcon:gT,multiselectStyle:BT,multiselectOrdered:Ef,multiselectRoute:Wi,natural:Bt,number:CE,numberRange:so,oneCheckbox:kr,password:Bt,radio:YT,routerLinkConfig:Wi,select:EE,selectIcon:gT,selectStyle:BT,selectRoute:Wi,switch:$T,template:of,text:Bt,textarea:lf,validatedJson:Lf},Ar={name:"AFieldset",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1,default:void 0},attributesFieldset:{type:Object,required:!1,default:()=>({})},change:{type:Function,required:!1,default:()=>{}},children:{type:Array,required:!1,default:()=>[]},classColumnDefault:{type:[String,Object],required:!1,default:"a_column a_column_12"},classColumns:{type:[String,Object],required:!1,default:"a_columns a_columns_count_12"},classFieldset:{type:[String,Object],required:!1,default:void 0},collapsible:{type:Boolean,required:!1,default:void 0},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},errors:{type:[String,Array,Object],required:!1,default:void 0},errorsAll:{type:Object,required:!1,default:()=>({})},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},hasBorder:{type:Boolean,required:!1,default:!0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_fieldset_")},idPrefix:{type:String,required:!1,default:void 0},isCollapsed:{type:Boolean,required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},labelTitle:{type:[String,Number],required:!1,default:void 0},modelAll:{type:Object,required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{type:Object,required:!1,default:()=>({})},parentId:{type:Array,required:!1,default:()=>[]},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},skipOwnIdInModelPath:{type:Boolean,required:!1,default:!1},slotName:{type:String,required:!1,default:void 0},slotNamePrepend:{type:String,required:!1,default:void 0},texts:{type:Object,required:!1,default:()=>({collapseClose:"_A_FIELDSET_COLLAPSE_CLOSE_",collapseOpen:"_A_FIELDSET_COLLAPSE_OPEN_"})},useFlatErrors:{type:Boolean,required:!1,default:!0},useFlatModel:{type:Boolean,required:!1,default:!0},useHtmlIdAsKey:{type:Boolean,required:!1,default:!1}},emits:["toggleCollapse","updateData","update:modelValue"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),E=()=>({...Ao,group:MT,fieldset:e.resolveComponent("AFieldset"),...St.components,...St.containerComponents}),{componentStyleHide:a}=Je(_),{textAfterLabel:s}=go(_),{ariaDescribedbyLocal:o,errorsId:l,helpTextId:A,htmlIdLocal:T,isErrors:L,labelDescriptionId:S}=je(_,t),{onUpdateModelLocal:c}=G$(_,t),f=({item:D,dataKeyByKeyId:V})=>{t.emit("updateData",{item:D,dataKeyByKeyId:V})},{groupId:d}=dT(_,{htmlIdLocal:T}),{iconCollapse:R,initIsCollapsedLocal:C,isCollapsedLocal:I,titleCollapse:O,toggleCollapse:p}=Ll(_,t),{classColumnsReadonly:U}=v$(_);return C(),{ariaDescribedbyLocal:o,attributesToExcludeFromRender:n,classColumnsReadonly:U,componentStyleHide:a,componentTypesMapping:E,errorsId:l,groupId:d,helpTextId:A,htmlIdLocal:T,iconCollapse:R,isCollapsedLocal:I,isErrors:L,labelDescriptionId:S,onUpdateDataLocal:f,onUpdateModelLocal:c,textAfterLabel:s,titleCollapse:O,toggleCollapse:p}},render(){if(!this.isRender)return null;const _=[e.h(ut,{id:this.labelDescriptionId,alwaysTranslate:this.alwaysTranslate,html:this.labelDescription,extra:this.extra}),this.slotNamePrepend&&this.$slots[this.slotNamePrepend]?this.$slots[this.slotNamePrepend]({id:this.htmlIdLocal,props:this.$props}):"",this.children.map((t,n)=>{if(t.isRender!==!1){const E=Da.value[t.type];let a;t_(t.classColumn)?a=this.classColumnDefault:t.classColumn&&(a=t.classColumn);const s=this.componentTypesMapping()[t.type],o=this.useFlatErrors?n_(this.errorsAll,t.id):n_(this.errors,t.id);let l;E&&(l=e_(this.parentId),this.skipOwnIdInModelPath||l.push(this.id));const A=E&&!this.useFlatModel||!E?n_(this.modelValue,t.id):this.modelValue;let T=n;return this.useHtmlIdAsKey&&(T=RE({id:t.id,idPrefix:t.idPrefix||this.idPrefix,htmlId:t.htmlId})),e.h(e.Fragment,{key:T},[e.h(s,{alwaysTranslate:this.alwaysTranslate,modelValue:A,modelAll:E?this.modelAll:void 0,modelDependencies:this.modelValue,errors:o,errorsAll:E?this.errorsAll:void 0,parentId:l,idPrefix:this.idPrefix,onUpdateData:({dataKeyByKeyId:L})=>this.onUpdateDataLocal({item:t,dataKeyByKeyId:L}),class:a,...t,change:({currentModel:L,id:S,item:c,model:f,props:d,fullModel:R})=>this.onUpdateModelLocal({currentModel:L,id:S,item:c,model:f,props:d,component:t,fullModel:R}),readonly:this.readonly||t.readonly,readonlyDefault:"readonlyDefault"in t&&!w_(t.readonlyDefault)?t.readonlyDefault:this.readonlyDefault,disabled:this.disabled||t.disabled,classColumn:void 0,slotAppend:void 0,...this.attributesToExcludeFromRender},this.$slots),t.slotAppend&&this.$slots[t.slotAppend]?this.$slots[t.slotAppend]({item:t,itemIndex:n}):""])}}),this.slotName&&this.$slots[this.slotName]?this.$slots[this.slotName]({id:this.htmlIdLocal,props:this.$props}):""];return this.readonly?e.h(ct,{...this.$attrs,id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,collapsible:this.collapsible,excludeRenderAttributes:this.excludeRenderAttributes,extra:this.extra,helpText:this.helpText,isCollapsed:this.isCollapsed,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,required:this.required,style:this.componentStyleHide,type:"fieldset",valueParentClass:this.classColumnsReadonly},()=>_):e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{class:"a_form_element__parent"},[e.h("fieldset",{id:this.htmlIdLocal,tabindex:-1,class:["a_fieldset",this.classFieldset,{a_fieldset_invalid:this.isErrors,a_fieldset_no_border:!this.hasBorder,a_fieldset_collapsed:this.isCollapsedLocal,a_fieldset_collapsible:this.collapsible,a_fieldset_with_legend:this.label}],"aria-describedby":this.ariaDescribedbyLocal,...this.attributesFieldset},[this.label||this.labelScreenReader?e.h(O_,{type:"text",alwaysTranslate:this.alwaysTranslate,tag:"legend",class:["a_legend",{a_legend_invalid:this.isErrors},this.labelClass],extra:this.extra,html:this.label,title:this.labelTitle||this.label,textScreenReader:this.labelScreenReader,textAfter:this.textAfterLabel}):"",this.collapsible?e.h(O_,{"aria-controls":this.groupId,"aria-expanded":!this.isCollapsedLocal,alwaysTranslate:this.alwaysTranslate,class:"a_fieldset__btn_collapse a_btn a_btn_transparent_secondary",iconLeft:this.iconCollapse,title:this.titleCollapse,textScreenReader:this.titleCollapse,type:"button",onClick:this.toggleCollapse}):"",e.h("div",{id:this.groupId,class:[this.classColumns,"a_fieldset__content"]},_)]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})])])}},wy=["datepickerRange","dateRange"],Sf={};j(wy,_=>{Sf[_]=!0});const uf=Sf;function Hy(_){const t=e.toRef(_,"children");return{specificAttributes:e.computed(()=>{const E={};return j(t.value,a=>{const s=_f[a.type],o=uf[a.type];s&&w_(a.inputWidth)&&(E[a.id]={inputWidth:"auto"}),o&&(E[a.id]={inputWidth:"inherit",inputAttributes:{style:"min-width: 181px"}})}),E})}}const MT={name:"AGroup",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1,default:void 0},change:{type:Function,required:!1,default:()=>{}},children:{type:Array,required:!1,default:()=>[]},classColumnDefault:{type:[String,Object],required:!1,default:"a_column a_column_6 a_column_12_touch"},classColumns:{type:[String,Object],required:!1,default:"a_columns a_columns_count_12 a_columns_gap_2"},dependencies:{type:[Array,Object],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},errors:{type:[String,Array,Object],required:!1,default:void 0},errorsAll:{type:Object,required:!1,default:()=>({})},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ee("a_group_")},idPrefix:{type:String,required:!1,default:void 0},inputClass:{type:[String,Object],required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelAll:{type:Object,required:!1,default:()=>({})},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{type:[String,Number,Array,Object,Boolean],required:!1,default:void 0},parentId:{type:Array,required:!1,default:()=>[]},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},useFlatErrors:{type:Boolean,required:!1,default:!0},useFlatModel:{type:Boolean,required:!1,default:!0},useHtmlIdAsKey:{type:Boolean,required:!1,default:!1}},emits:["blur","focus","update:modelValue","updateData"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),E=()=>({...Ao,...St.components,...St.containerComponents}),{componentStyleHide:a}=Je(_),{ariaDescribedbyLocal:s,changeModel:o,clearModel:l,errorsId:A,helpTextId:T,htmlIdLocal:L,isErrors:S}=je(_,t),c=e.toRef(_,"change"),f=e.toRef(_,"id"),d=e.toRef(_,"modelAll"),R=e.toRef(_,"modelValue"),C=e.toRef(_,"parentId"),I=e.toRef(_,"useFlatModel"),O=({currentModel:Y,id:b,item:$,model:M,props:W,component:H,fullModel:w})=>{if(w){const x=e_(w);t.emit("update:modelValue",x),c.value({currentModel:Y,id:b,item:$,fullModel:x,model:M,props:W}),U_(H.change)&&H.change({currentModel:Y,id:b,item:$,fullModel:x,model:M,props:W});return}const K=I.value?e_(R.value||{}):e_(d.value||{});if(I.value)$r(K,b,e_(M));else{const X=[...C.value,f.value,b].join(".");$r(K,X,e_(M))}t.emit("update:modelValue",K),c.value({currentModel:Y,id:b,item:$,fullModel:K,model:M,props:W}),U_(H.change)&&H.change({currentModel:Y,id:b,item:$,fullModel:K,model:M,props:W})},p=({item:Y,dataKeyByKeyId:b})=>{t.emit("updateData",{item:Y,dataKeyByKeyId:b})},U=e.toRef(_,"children"),D=e.toRef(_,"idPrefix"),V=e.computed(()=>U.value[0]||{}),B=e.computed(()=>RE({id:V.value.id,idPrefix:V.value.idPrefix||D.value,htmlId:V.value.htmlId})),{specificAttributes:y}=Hy(_);return{ariaDescribedbyLocal:s,attributesToExcludeFromRender:n,changeModel:o,clearModel:l,componentStyleHide:a,componentTypesMapping:E,errorsId:A,firstChild:V,helpTextId:T,htmlIdFirstChild:B,htmlIdLocal:L,isErrors:S,onUpdateDataLocal:p,onUpdateModelLocal:O,specificAttributes:y}},render(){return this.isRender?e.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[e.h("div",{id:this.htmlIdLocal,role:"group",tabindex:-1,class:[this.inputClass,{a_group_invalid:this.isErrors}],"aria-describedby":this.ariaDescribedbyLocal},[e.h("div",{class:this.classColumns},[this.firstChild.label&&e.h(qe,{id:this.htmlIdFirstChild,alwaysTranslate:this.alwaysTranslate,extra:this.extra,isError:!!this.errorsAll[this.firstChild.id],isLabelFloat:!1,label:this.label||this.firstChild.label,labelClass:this.labelClass||this.firstChild.labelClass||this.classColumnDefault,labelScreenReader:this.labelScreenReader||this.firstChild.labelScreenReader,required:this.required||this.firstChild.required,type:this.firstChild.type}),this.children.map((_,t)=>{const n=Da.value[_.type];let E;t_(_.classColumn)?E=this.classColumnDefault:_.classColumn&&(E=_.classColumn);let a;_.isHide&&(a="display: none;");const s=this.componentTypesMapping()[_.type],o=this.useFlatErrors?n_(this.errorsAll,_.id):n_(this.errors,_.id);let l;n&&(l=e_(this.parentId),l.push(this.id));const A=n&&!this.useFlatModel||!n?n_(this.modelValue,_.id):this.modelValue;let T=t;return this.useHtmlIdAsKey&&(T=RE({id:_.id,idPrefix:_.idPrefix||this.idPrefix,htmlId:_.htmlId})),e.h("div",{key:T,class:E,style:a},[e.h(s,{alwaysTranslate:this.alwaysTranslate,modelAll:n?this.modelAll:void 0,modelValue:A,modelDependencies:this.modelValue,errors:o,errorsAll:n?this.errorsAll:void 0,parentId:l,idPrefix:this.idPrefix,onUpdateData:({dataKeyByKeyId:L})=>this.onUpdateDataLocal({item:_,dataKeyByKeyId:L}),..._,change:({currentModel:L,id:S,item:c,model:f,props:d})=>this.onUpdateModelLocal({currentModel:L,id:S,item:c,model:f,props:d,component:_}),disabled:this.disabled||_.disabled,...this.specificAttributes[_.id],label:t===0?void 0:_.label,slotAppend:void 0,classColumn:void 0,...this.attributesToExcludeFromRender},this.$slots),_.slotAppend&&this.$slots[_.slotAppend]?this.$slots[_.slotAppend]({item:_,itemIndex:t}):""])})])]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&e.h(ze,{class:"a_px_3",id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors,errorsClass:this.errorsClass})]):null}},FT={fieldset:Ar,group:MT,...St.containerComponents};function xy(){return{componentTypesMapping:()=>({...Ao,...FT,...St.components,...St.containerComponents})}}function qy(_){const t=e.toRef(_,"filter");return{isContainer:e.computed(()=>!!Da.value[t.value.type])}}function Wy(_){const t=e.toRef(_,"filter");return{filterSpecificAttributes:e.computed(()=>{const E={},a=_f[t.value.type],s=uf[t.value.type];return a&&w_(t.value.inputWidth)&&(E.inputWidth="auto"),s&&(E.inputWidth="inherit",E.inputAttributes={style:"min-width: 181px"}),E})}}function ky(_){const t=e.toRef(_,"id");return{idPrefix:e.computed(()=>`${t.value}_`)}}function Ky(_,{isContainer:t=e.computed(()=>!1)}){const n=e.toRef(_,"filter"),E=e.toRef(_,"onUpdateModelFilters"),a=e.toRef(_,"unappliedModel");return{onUpdateModelFiltersLocal:o=>{if(t.value)E.value({fullModel:o});else{const l=e_(a.value);l[n.value.id]=e_(o),E.value({fullModel:l})}}}}function Xy(_){const t=e.toRef(_,"filter"),n=e.toRef(_,"updateDataKeyByIdFromFilter"),E=["select","multiselect","radio","checkbox","group","fieldset"],a=({dataKeyByKeyId:o,item:l})=>{let A=t.value.id;l&&(A=l.id),n.value({filterId:A,dataKeyByKeyId:o})};return{emitForComponentsWithData:e.computed(()=>{const o={};return E.indexOf(t.value.type)!==-1&&(o.onUpdateData=a),o})}}const jy={name:"AFiltersHorizontalFilterUi",props:{excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filter:{type:Object,required:!1,default:void 0},id:{type:String,required:!0},isLabelVisible:{type:Boolean,required:!0},onUpdateModelFilters:{type:Function,required:!0},unappliedModel:{type:Object,required:!0},updateDataKeyByIdFromFilter:{type:Function,required:!0}},setup(_){const{attributesToExcludeFromRender:t}=Ye(_),{isContainer:n}=qy(_),{onUpdateModelFiltersLocal:E}=Ky(_,{isContainer:n}),{emitForComponentsWithData:a}=Xy(_),{idPrefix:s}=ky(_),{componentTypesMapping:o}=xy(),{filterSpecificAttributes:l}=Wy(_);return{attributesToExcludeFromRender:t,componentTypesMapping:o,emitForComponentsWithData:a,filterSpecificAttributes:l,idPrefix:s,isContainer:n,onUpdateModelFiltersLocal:E}},render(){const _=this.componentTypesMapping()[this.filter.type];return e.h(_,{idPrefix:this.idPrefix,modelValue:this.isContainer?this.unappliedModel:this.unappliedModel[this.filter.id],"onUpdate:modelValue":this.onUpdateModelFiltersLocal,excludeRenderAttributes:this.excludeRenderAttributes,...this.filter,...this.filterSpecificAttributes,label:this.isLabelVisible?this.filter.label:void 0,...this.emitForComponentsWithData,...this.attributesToExcludeFromRender},this.$slots)}};function zy(_){const t=e.toRef(_,"id");return{idFilterRight:e.computed(()=>`${t.value}_filter_right`)}}const cf={name:"AFilersRight",props:{appliedModel:{type:Object,required:!0},disabled:{type:Boolean,required:!1},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filters:{type:Array,required:!1,default:()=>[]},filtersKeyById:{type:Object,required:!0},id:{type:String,required:!0},onUpdateModelFilters:{type:Function,required:!0},updateDataKeyByIdFromFilter:{type:Function,required:!0}},emits:["startSearch"],setup(_){const{idFilterRight:t}=zy(_);return{idFilterRight:t}},render(){return e.h("div",{id:this.idFilterRight,class:"a_filters_right"},[e.h("form",{},[this.filters.map(_=>e.h(jy,{id:this.id,class:"a_filters_right__filter_ui",excludeRenderAttributes:this.excludeRenderAttributes,filter:_,isLabelVisible:!0,onUpdateModelFilters:this.onUpdateModelFilters,unappliedModel:this.appliedModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter},this.$slots))])])}};function Jy(_){const t=e.toRef(_,"closeFilterValue"),n=e.toRef(_,"disabled"),E=e.toRef(_,"filter");return{closeCurrentFilterValue:({modelValue:s})=>{n.value||t.value({filter:E.value,modelArray:s.modelArray,keyId:s.keyId})}}}function Zy(_,{emit:t},{modelValuesForCurrentFilter:n=e.computed(()=>[])}){const E=e.toRef(_,"filter"),a=e.computed(()=>n.value.length>0);return{isLeastOneFilterVisible:a,updateVisibleChildFilters:({destroy:o}={})=>{t("updateVisibleChildFilters",{id:E.value.id,isVisible:o?!1:a.value})}}}function Qy(_){const t=e.toRef(_,"filter"),n=e.toRef(_,"id"),E=e.computed(()=>`eventATableFilterTopOnOpen_${n.value}`);return{goToFilter:({modelValue:s}={})=>{let o=RE({id:t.value.id,idPrefix:`${n.value}_filter_top`,htmlId:t.value.htmlId});s.idSuffix&&(o+=s.idSuffix),t.value.main||Ve.$emit(E.value,o)}}}function _M({filter:_,currentModel:t}){return!(!_||_.hideFilterCenter||t_(t)||t===""||p_(t)&&!t.length)}function eM(_){const t=e.toRef(_,"filter"),n=e.toRef(_,"model");return{hasCurrentFilter:e.computed(()=>_M({filter:t.value,currentModel:n.value}))}}function tM(_,{emit:t},{hasCurrentFilter:n=e.computed(()=>!1)}){const E=e.toRef(_,"dataKeyByKeyIdPerFilter"),a=e.toRef(_,"filter"),s=e.computed(()=>n.value&&Kd.value[a.value.type]?_t(E.value[a.value.id]):!1);return{isFilterLoading:s,updateLoadingChildFilters:(l,A)=>{l!==A&&t("updateLoadingChildFilters",{id:a.value.id,isLoading:s.value})}}}function nM(_,{hasCurrentFilter:t=e.computed(()=>!1)}){const n=e.toRef(_,"filter"),E=e.computed(()=>t.value?n.value.label:""),a=e.computed(()=>{if(t.value)return n.value.labelScreenReader}),s=e.computed(()=>a.value||E.value);return{filterLabel:E,filterLabelForTitle:s}}function EM(_,{filterLabel:t=e.computed(()=>""),filterLabelForTitle:n=e.computed(()=>""),hasCurrentFilter:E=e.computed(()=>!1)}){const a=e.toRef(_,"dataKeyByKeyIdPerFilter"),s=e.toRef(_,"filter"),o=e.toRef(_,"model"),{filterBoolean:l,filterDate:A}=Gt(),T=e.computed(()=>{if(s.value)return a.value[s.value.id]}),L=e.computed(()=>{var f;return(f=o.value)!=null&&f.length?ce(o.value,d=>T.value&&T.value[d]):[]}),S=({label:f,suffixTranslated:d})=>{const R=u_({placeholder:f});return d?`${R} ${d}`:R};return{modelValuesForCurrentFilter:e.computed(()=>{var f,d,R,C,I,O,p,U,D;if(!E.value)return[];if(s.value.type==="switch"||s.value.type==="oneCheckbox")return[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:l(o.value)}];if(s.value.type==="date")return[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:A(o.value)}];if(s.value.type==="select"||s.value.type==="radio"){const V=n_(T.value,`${o.value}.${te}`);return V?[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:V}]:[]}if(ro.value[s.value.type]||s.value.type==="radio"&&s.value.isModelArray){if(L.value.length){if(L.value.length===1){const V=(f=T.value)==null?void 0:f[L.value[0]];let B=V==null?void 0:V[te];if(s.value.mode==="one_per_group"&&s.value.keyGroup){const y=n_(V,s.value.keyGroup);U_(s.value.keyGroupCallback)?B=`${s.value.keyGroupCallback({item:V,inDropdown:!1,group:y})} "${B}"`:B=`${y} "${B}"`}return[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:B,item:V,modelArray:L.value}]}return[{filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value}),label:u_({placeholder:"_A_FILTERS_SELECTED_{{count}}_",extra:{count:L.value.length,modelArray:L.value}}),modelArray:L.value,extra:{count:L.value.length,modelArray:L.value}}]}return[]}if(s.value.type==="dateRange"){const V=s.value.keyFrom||"from",B=s.value.keyUntil||"until",y=[];if(!t_((d=o.value)==null?void 0:d[V])&&((R=o.value)==null?void 0:R[V])!==""){const Y=u_({placeholder:s.value.labelFrom||"_A_DATEPICKER_RANGE_FROM_"});y.push({filterLabelTranslated:S({label:t.value,suffixTranslated:Y}),filterLabelForTitleTranslated:S({label:n.value,suffixTranslated:Y}),label:A(o.value[V]),idSuffix:"_from",keyId:V})}if(!t_((C=o.value)==null?void 0:C[B])&&((I=o.value)==null?void 0:I[B])!==""){const Y=u_({placeholder:s.value.labelUntil||"_A_DATEPICKER_RANGE_UNTIL_"});y.push({filterLabelTranslated:S({label:t.value,suffixTranslated:Y}),filterLabelForTitleTranslated:S({label:n.value,suffixTranslated:Y}),label:A(o.value[B]),idSuffix:"_until",keyId:B})}return y}if(bT.indexOf(s.value.type)!==-1){const V=s.value.keyMax||"max",B=s.value.keyMin||"min",y=[];if(!t_((O=o.value)==null?void 0:O[B])&&((p=o.value)==null?void 0:p[B])!==""){const Y=u_({placeholder:s.value.labelMin||"_A_INPUT_NUMBER_RANGE_LABEL_MIN_"});y.push({filterLabelTranslated:S({label:t.value,suffixTranslated:Y}),filterLabelForTitleTranslated:S({label:n.value,suffixTranslated:Y}),label:o.value[B],idSuffix:"_min",keyId:B})}if(!t_((U=o.value)==null?void 0:U[V])&&((D=o.value)==null?void 0:D[V])!==""){const Y=u_({placeholder:s.value.labelMax||"_A_INPUT_NUMBER_RANGE_LABEL_MAX_"});y.push({filterLabelTranslated:S({label:t.value,suffixTranslated:Y}),filterLabelForTitleTranslated:S({label:n.value,suffixTranslated:Y}),label:o.value[V],idSuffix:"_max",keyId:V})}return y}return[{label:o.value,filterLabelTranslated:S({label:t.value}),filterLabelForTitleTranslated:S({label:n.value})}]})}}const aM=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pin-fill" viewBox="0 0 16 16">
|
|
140
140
|
<path d="M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A6 6 0 0 1 5 6.708V2.277a3 3 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354"/>
|
|
141
141
|
</svg>`,rM={name:"AFilterCenterItem",props:{btnCloseClass:{type:[String,Object],required:!1,default:"a_btn a_btn_secondary"},btnGoToClass:{type:[String,Object],required:!1,default:"a_btn a_btn_secondary"},btnNotCloseClass:{type:[String,Object],required:!1,default:"a_btn a_btn_secondary"},closeFilterValue:{type:Function,required:!0},dataKeyByKeyIdPerFilter:{type:Object,required:!0},disabled:{type:Boolean,required:!1},filter:{type:Object,required:!1,default:void 0},id:{type:String,required:!0},model:{type:[String,Number,Object,Array,Boolean],required:!1,default:void 0}},emits:["updateVisibleChildFilters","updateLoadingChildFilters"],setup(_,t){const{hasCurrentFilter:n}=eM(_),{isFilterLoading:E,updateLoadingChildFilters:a}=tM(_,t,{hasCurrentFilter:n}),{filterLabel:s,filterLabelForTitle:o}=nM(_,{hasCurrentFilter:n}),{modelValuesForCurrentFilter:l}=EM(_,{filterLabel:s,filterLabelForTitle:o,hasCurrentFilter:n}),{isLeastOneFilterVisible:A,updateVisibleChildFilters:T}=Zy(_,t,{modelValuesForCurrentFilter:l}),{goToFilter:L}=Qy(_),{closeCurrentFilterValue:S}=Jy(_);return e.watch(A,()=>{T()},{immediate:!0}),e.watch(E,(c,f)=>{a(c,f)},{immediate:!0}),e.onBeforeUnmount(()=>{T({destroy:!0})}),{closeCurrentFilterValue:S,filterLabel:s,goToFilter:L,hasCurrentFilter:n,isLeastOneFilterVisible:A,modelValuesForCurrentFilter:l}},render(){return this.hasCurrentFilter&&[this.modelValuesForCurrentFilter.map(_=>e.h("div",{role:"group",class:"a_filters_center__item a_btn_group a_btn_group_small"},[this.filter.hasNotClose&&e.h(O_,{class:this.btnNotCloseClass,ariaHidden:!0,tabindex:-1,iconLeft:aM,type:"text"}),e.h(O_,{class:this.btnGoToClass,title:"_A_FILTERS_HOR_GO_TO_TITLE_{{filterLabel}}_{{filterValue}}_",textScreenReader:"_A_FILTERS_HOR_GO_TO_TITLE_{{filterLabel}}_{{filterValue}}_",extra:{filterLabel:_.filterLabelForTitleTranslated,filterValue:_.label},type:"button",onClick:()=>this.goToFilter({modelValue:_})},()=>[_.filterLabelTranslated?e.h("strong",{class:"a_filters_center__item__label",ariaHidden:!0},[e.h(f_,{tag:"span",html:_.filterLabelTranslated,textAfter:":"})]):"",this.filter.slotName&&this.$slots[this.filter.slotName]?this.$slots[this.filter.slotName]({item:_.item,label:_.label,extra:_.extra,inFilterCenter:!0}):e.h("span",{class:"a_filters_center__item__value"},_.label)]),this.filter.hasNotClose?"":e.h(O_,{class:this.btnCloseClass,disabled:this.disabled,iconLeft:Mn,title:"_A_FILTERS_HOR_CLOSE_TITLE_{{filterLabel}}_{{filterValue}}_",textScreenReader:"_A_FILTERS_HOR_CLOSE_TITLE_{{filterLabel}}_{{filterValue}}_",extra:{filterLabel:_.filterLabelForTitleTranslated,filterValue:_.label},type:"button",onClick:()=>this.closeCurrentFilterValue({modelValue:_})})]))]}};function sM(){const _=e.ref({}),t=({id:E,isLoading:a})=>{_.value[E]=a};return{isLeastOneChildFilterLoading:e.computed(()=>{let E=!1;return j(_.value,a=>{if(a)return E=!0,!1}),E}),updateLoadingChildFilters:t}}function oM(_){const t=e.toRef(_,"filtersGroup"),n=e.ref({}),E=({id:l,isVisible:A})=>{n.value[l]=A},a=e.computed(()=>{let l=!1;return j(n.value,A=>{if(A)return l=!0,!1}),l}),s=e.computed(()=>!!(t.value.alwaysVisible.length||t.value.filters.length)),o=e.computed(()=>a.value?void 0:"display: none;");return{hasFilters:s,styleHide:o,updateVisibleChildFilters:E}}const iM=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-clockwise" viewBox="0 0 16 16">
|
|
142
142
|
<path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"/>
|
|
@@ -151,7 +151,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
151
151
|
</svg>`,Df=`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 1024 1024">
|
|
152
152
|
<path d="M761.37 637.327l256.642 256.642q5.988 6.844 5.988 15.399t-5.988 15.399l-93.246 93.246q-6.844 5.988-15.399 5.988t-15.399-5.988l-256.642-256.642q-101.802 66.727-223.278 66.727-171.095 0-292.572-121.477t-121.477-292.572 121.477-292.572 292.572-121.477 292.572 121.477 121.477 292.572q0 121.477-66.727 223.278zM130.887 414.049q0 116.344 82.981 199.325t200.181 82.981 199.753-82.553 82.553-199.753-82.553-199.753-199.753-82.553-200.181 82.981-82.981 199.325z"></path>
|
|
153
153
|
</svg>
|
|
154
|
-
`,mf={name:"AFiltersHorizontal",props:{canSave:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filtersGroup:{type:Object,required:!0,default:()=>({alwaysVisible:[],filters:[]})},filtersKeyById:{type:Object,required:!0},filtersSaved:{type:Array,required:!0},filtersVisible:{type:Array,required:!0},id:{type:String,required:!0},mainModel:{type:Object,required:!1},onUpdateModelFilters:{type:Function,required:!0},unappliedModel:{type:Object,required:!0},updateDataKeyByIdFromFilter:{type:Function,required:!0},updateFiltersSaved:{type:Function,required:!0}},emits:["startSearch","toggleFiltersVisible"],setup(_,t){const{dataForForm:n}=CM(_),{closeDropdown:E,dropdownRef:a,isDropdownVisible:s,openDropdown:o}=uM(_),{idFilterTop:l}=hM(_),{onSearch:A}=IM(_,t,{closeDropdown:E}),{destroyEventBus:T,initEventBus:L,initEventName:S}=cM(_,{openDropdown:o}),{addFiltersVisible:c,deleteFiltersVisible:f,filtersHidden:d,hasFiltersHiddenDefault:R}=dM(_,t),{buttonSaveComponentId:C,changeModelFiltersSaved:I,closeModalSave:O,filtersSavedLocal:p,initModelFiltersSaved:U,isModalSaveVisible:D,isModelFilterSavedNew:V,modelFiltersSaved:B,openModalSave:y,selectorCloseIds:Y}=fM(_,{openDropdown:o}),{buttonDeleteId:b,isConfirmHidden:$,openDeleteConfirm:M,textScreenreaderButtonDeleteFiltersSaved:W,titleButtonDeleteFiltersSaved:H}=RM(_,{changeModelFiltersSaved:I,idFilterTop:l,isModelFilterSavedNew:V,modelFiltersSaved:B});return S(),U(),L(),e.onBeforeUnmount(()=>{T()}),{addFiltersVisible:c,buttonDeleteId:b,buttonSaveComponentId:C,changeModelFiltersSaved:I,closeDropdown:E,closeModalSave:O,dataForForm:n,deleteFiltersVisible:f,dropdownRef:a,filtersHidden:d,filtersSavedLocal:p,hasFiltersHiddenDefault:R,idFilterTop:l,initModelFiltersSaved:U,isConfirmHidden:$,isDropdownVisible:s,isModalSaveVisible:D,isModelFilterSavedNew:V,modelFiltersSaved:B,onSearch:A,openDeleteConfirm:M,openModalSave:y,selectorCloseIds:Y,textScreenreaderButtonDeleteFiltersSaved:W,titleButtonDeleteFiltersSaved:H}},render(){return this.isDropdownVisible?[e.h(nE,{ref:"dropdownRef",buttonIconLeft:OM,buttonText:"Filter",buttonClass:"a_btn a_btn_primary a_btn_small a_filter_horizontal__btn_dropdown",dropdownTag:"div",dropdownClass:"a_filter_horizontal__wrapper",dropdownRenderDefault:!0,isCloseByClickInside:!1,hasCaret:!1,inBody:!0,lockArrowsNavigation:!1,lockTabNavigation:!1,useEscape:!this.isModalSaveVisible&&this.isConfirmHidden},{...this.$slots,dropdown:()=>e.h("div",{class:"a_filter_horizontal"},[e.h("div",{class:"a_filter_horizontal__header__wrapper"},[e.h("div",{class:"a_filter_horizontal__header"},[e.h("div",{class:"a_filter_horizontal__header__texts"},[e.h(f_,{class:"a_filter_horizontal__header__texts__filter",tag:"span",text:"_A_FILTERS_HOR_FILTER_HEADER_"}),this.isModelFilterSavedNew?e.h(f_,{class:"a_filter_horizontal__header__texts__new",tag:"em",text:this.modelFiltersSaved}):e.h("span",{},this.modelFiltersSaved)]),this.canSave?e.h(EE,{modelValue:this.modelFiltersSaved,change:this.changeModelFiltersSaved,class:"a_filters_top__save_select",data:this.filtersSavedLocal,deselectable:!1,keyId:"label",keyLabel:"label",keyGroup:"group",label:"_A_FILTERS_SAVE_SELECT_",menuWidthType:"by_content",search:!0,translateData:!0,type:"select"}):""])]),e.h("div",{class:"a_filter_horizontal__body__wrapper"},[e.h("div",{class:"a_filter_horizontal__body"},[e.h(zr,{idPrefix:this.idFilterTop,class:"a_filter_horizontal__body__form",classColumnDefault:"",classColumns:"",data:this.dataForForm,excludeRenderAttributes:this.excludeRenderAttributes,modelValue:this.unappliedModel,showErrors:!1,onChange:this.onUpdateModelFilters},{...this.$slots,groupAppend:({item:_})=>e.h(O_,{type:"button",class:"a_btn a_btn_primary a_ml_2",title:"_A_FILTERS_TOP_CLOSE_",textScreenReader:"_A_FILTERS_TOP_CLOSE_",iconLeft:Mn,stop:!0,onClick:()=>this.deleteFiltersVisible({filter:_})}),formDataAppend:()=>e.h("div",{class:"a_filter_horizontal__add_filter__wrapper"},[e.h(EE,{buttonClassDefault:"a_btn a_btn_primary a_filter_horizontal__add_filter",change:this.addFiltersVisible,data:this.filtersHidden,hasCaret:!1,disabled:!this.filtersHidden.length,isLabelFloat:!1,keyGroup:"group",keyId:"id",keyLabel:"label",label:"_A_FILTERS_ADD_FILTER_",labelClass:"a_sr_only",menuWidthType:"by_content",sortOrderGroup:"asc",placement:"bottom-start",search:!0,translateData:!0,type:"select"},{fixedPlaceholder:()=>[e.h(f_,{tag:"span",ariaHidden:!0,class:"a_position_absolute_all",title:"_A_FILTERS_ADD_FILTER_"}),e.h(_e,{icon:Nf})]})]),formAppend:()=>this.canSave?e.h("div",{class:"a_filter_horizontal__save_actions"},[e.h(O_,{id:this.buttonSaveComponentId,class:"a_btn a_btn_primary",iconLeft:Uf,type:"button",text:"_A_FILTERS_SAVE_FILTER_SAVED_BTN_TEXT_",onClick:this.openModalSave}),e.h(O_,{id:this.buttonDeleteId,ariaDisabled:this.isModelFilterSavedNew,class:"a_btn a_btn_secondary",iconLeft:oo,text:{desktop:"_A_FILTERS_DELETE_FILTER_SAVED_BTN_TEXT_"},textAriaHidden:!0,textScreenReader:this.textScreenreaderButtonDeleteFiltersSaved,title:this.titleButtonDeleteFiltersSaved,type:"button",onClick:this.openDeleteConfirm})]):""})]),e.h("div",{class:"a_filter_horizontal__footer"},[e.h("div",{class:"a_filter_horizontal__footer__actions"},[e.h(O_,{type:"button",class:"a_btn a_btn_primary a_text_nowrap a_filter_horizontal__footer__actions__btn_search",iconLeft:Df,text:"_A_FILTERS_START_SEARCH_",disabled:this.disabled,onClick:this.onSearch}),e.h(O_,{type:"button",class:"a_btn a_btn_secondary a_text_nowrap a_filter_horizontal__footer__actions__btn_close",text:"_A_FILTERS_HOR_CLOSE_DROPDOWN_",onClick:this.closeDropdown})])])])])}),this.isModalSaveVisible?e.h(SM,{changeModelFiltersSaved:this.changeModelFiltersSaved,filtersSaved:this.filtersSaved,isModelFilterSavedNew:this.isModelFilterSavedNew,modelFiltersSaved:this.modelFiltersSaved,selectorCloseIds:this.selectorCloseIds,updateFiltersSaved:this.updateFiltersSaved,onClose:this.closeModalSave}):""]:null}};function pM(_){const t=e.toRef(_,"id");return{idFilterTop:e.computed(()=>`${t.value}_filter_main`)}}function UM(_){const t=e.toRef(_,"filterMain"),n=e.computed(()=>!!t.value),E=e.computed(()=>n.value?[t.value]:[]);return{hasFilterMain:n,dataMainFilter:E}}function NM(_,{emit:t}){const n=e.toRef(_,"disabled");return{onSearch:()=>{n.value||t("startSearch")}}}const DM={name:"AFiltersMain",props:{disabled:{type:Boolean,required:!1},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filterMain:{type:Object,required:!1},id:{type:String,required:!0},mainModel:{type:Object,required:!1},updateDataKeyByIdFromFilter:{type:Function,required:!0},updateMainModel:{type:Function,required:!0}},emits:["startSearch"],setup(_,t){const{hasFilterMain:n,dataMainFilter:E}=UM(_),{idFilterTop:a}=pM(_),{onSearch:s}=NM(_,t);return{hasFilterMain:n,dataMainFilter:E,idFilterTop:a,onSearch:s}},render(){return this.hasFilterMain?e.h("div",{id:this.idFilterTop,class:"a_filters_top"},[e.h(zr,{idPrefix:this.idFilterTop,class:"a_filters_top__form",classColumns:"a_filters_top__main_wrapper",classColumnDefault:"a_filters_top__main",data:this.dataMainFilter,excludeRenderAttributes:this.excludeRenderAttributes,modelValue:this.mainModel,showErrors:!1,onChange:this.updateMainModel},{formDataAppend:()=>e.h(le,{class:"a_btn a_btn_primary a_text_nowrap a_filters_top__search",iconLeft:Zs,type:"submit",text:{desktop:"_A_FILTERS_START_SEARCH_"},textScreenReader:{mobile:"_A_FILTERS_START_SEARCH_"},prevent:!0,stop:!0,disabled:this.disabled,onClick:this.onSearch})})]):null}};function mM(_,{emit:t},{filtersHorizontalRef:n=e.ref(void 0),filtersVisibleAll:E=e.computed(()=>[]),onUpdateModelFilters:a=()=>{}}){const s=e.toRef(_,"appliedModel"),o=e.toRef(_,"unappliedModel"),l=()=>{var S;(S=n.value)==null||S.initModelFiltersSaved()},A=({filter:S,keyId:c,modelArray:f,appliedModelLocal:d,unappliedModelLocal:R})=>{const C=S.id;return ro.value[S.type]?(d[C]&&d[C].length&&(f?d[C]=ce(d[C],I=>f.indexOf(I)===-1):d[C]=[]),R[C]&&R[C].length&&(f?R[C]=ce(R[C],I=>f.indexOf(I)===-1):R[C]=[])):qi.value[S.type]&&c?(J_(R==null?void 0:R[C])&&(R[C][c]=void 0),J_(d==null?void 0:d[C])&&(d[C][c]=void 0)):(R[C]=void 0,d[C]=void 0),{appliedModelLocal:d,unappliedModelLocal:R}};return{closeAllFilters:()=>{let S=e_(s.value),c=e_(o.value);j(E.value,f=>{const d=A({filter:f,appliedModelLocal:S,unappliedModelLocal:c});S=d.appliedModelLocal,c=d.unappliedModelLocal}),l(),t("update:unappliedModel",c),t("update:appliedModel",S),setTimeout(()=>{a({fullModel:s.value})})},closeFilterValue:({filter:S,keyId:c,modelArray:f})=>{const d=e_(s.value),R=e_(o.value),{appliedModelLocal:C,unappliedModelLocal:I}=A({filter:S,keyId:c,modelArray:f,appliedModelLocal:d,unappliedModelLocal:R});t("update:unappliedModel",I),t("update:appliedModel",C),setTimeout(()=>{a({fullModel:s.value})})}}}function PM(){const _=e.ref({});return{dataKeyByKeyIdPerFilter:_,updateDataKeyByIdFromFilter:({dataKeyByKeyId:n,filterId:E})=>{_.value[E]=e_(n)}}}function bM(_){const t=e.toRef(_,"excludeRenderAttributes"),n=["alwaysVisible"];return{excludeRenderAttributesComputed:e.computed(()=>lb(n,t.value))}}function YM({filter:_={},modelObj:t={}}){var E;const n=_.id;return n in t?ro.value[_.type]?!!((E=t[n])!=null&&E.length):qi.value[_.type]?!!(t[n]&&!_t(t[n])):!0:!1}function gM(_,{emit:t}){const n=e.toRef(_,"filters"),E=e.toRef(_,"filterMain"),a=e.toRef(_,"unappliedModel"),s=e.ref({}),o=e.ref(void 0),l=e.ref([]),A=e.computed(()=>!!(n.value.length||E.value)),T=e.computed(()=>{const I={};return j(e_(n.value),O=>{I[O.id]=O,Da.value[O.type]&&O.children&&O.children.length&&j(O.children,p=>{I[p.id]=p})}),I}),L=e.computed(()=>{const I={alwaysVisible:[],filters:[]};return j(e_(n.value),O=>{O.alwaysVisible?I.alwaysVisible.push(O):I.filters.push(O)}),I}),S=e.computed(()=>{const I=[];return j(l.value,O=>{T.value[O]&&I.push(T.value[O])}),I}),c=e.computed(()=>{const I=[];I.push(...n.value);const O=[];return j(I,p=>{O.push(p),Da.value[p.type]&&p.children&&p.children.length&&j(p.children,U=>{O.push(U)})}),O}),f=()=>{const I=[];j(L.value.filters,O=>{YM({filter:O,modelObj:a.value})&&I.push(O.id)}),l.value=I};return{filtersDataKeyById:s,filtersGroup:L,filtersHorizontalRef:o,filtersKeyById:T,filtersVisible:S,filtersVisibleAll:c,filtersVisibleIds:l,hasFilters:A,onUpdateModelFilters:({fullModel:I,isUpdateFiltersVisible:O})=>{t("update:unappliedModel",I),O&&setTimeout(()=>{f()})},setFiltersVisibleIds:f,updateAppliedModel:({fullModel:I})=>{t("update:appliedModel",I)},updateMainModel:({fullModel:I})=>{t("update:mainModel",I)}}}function BM(_){const t=e.toRef(_,"filtersSaved"),n=e.toRef(_,"unappliedModel"),E=e.toRef(_,"updateFiltersSaved"),a=e.ref([]);return{filtersSavedLocal:a,initFiltersSaved:()=>{a.value=t.value||[]},updateFiltersSavedLocal:({action:l="",label:A=""})=>{if(l==="create")a.value.push({label:A,data:e_(n.value)});else{const T=dn(a.value,["label",A]);T!==-1&&(l==="delete"?a.value.splice(T,1):l==="update"&&a.value.splice(T,1,{label:A,data:e_(n.value)}))}U_(E.value)&&E.value({action:l,label:A,model:n.value,filtersSaved:a.value})}}}function $M(_,{emit:t},{onUpdateModelFilters:n=()=>{}}){const E=e.toRef(_,"appliedModel"),a=e.toRef(_,"unappliedModel");return{startSearch:()=>{t("update:appliedModel",a.value),setTimeout(()=>{n({fullModel:E.value})})}}}function VM(_,{dataKeyByKeyIdPerFilter:t=e.ref({}),filtersVisibleIds:n=e.ref([]),onUpdateModelFilters:E=()=>{}}){const a=e.toRef(_,"unappliedModel");return{toggleFiltersVisible:({isAdd:o=!0,filterId:l,filter:A})=>{var T,L;if(o)n.value.push(l);else{const S=n.value.indexOf(l);S!==-1&&n.value.splice(S,1);const c=e_(a.value);if(A&&A.modelId){const f=(T=t.value)==null?void 0:T[l];(L=c==null?void 0:c[A.modelId])!=null&&L.length&&f?c[A.modelId]=ce(c[A.modelId],d=>!f[d]):c[l]=void 0}else c[l]=void 0;E({fullModel:c})}}}}const aE=e.ref({propsDefault:{filterCenterBtnCloseAllClass:"a_btn a_btn_link a_btn_small",filterCenterBtnCloseClass:"a_btn a_btn_secondary",filterCenterBtnGoToClass:"a_btn a_btn_secondary",filterCenterBtnNotCloseClass:"a_btn a_btn_secondary"},config:{isHtmlTitleSort:!1,headerTopGroups:[{props:{},children:[{component:"filterMain",props:{}},{component:"buttonSearch",props:{}},{component:"buttonToggle",props:{}}]},{props:{},children:[{component:"selectFiltersSaved",props:{}},{component:"buttonSaveTop",props:{}},{component:"buttonDeleteFiltersSaved",props:{}}]}],headerBottomGroups:[{props:{},children:[{component:"addFilterSelect",props:{}},{component:"buttonSearch",props:{}}]}]}});e.computed(()=>{const _={};return j(aE.value.config.headerTopGroups,t=>{j(t.children,n=>{_[n.component]=n.props})}),j(aE.value.config.headerBottomGroups,t=>{j(t.children,n=>{_[n.component]=n.props})}),_});const yM={install:(_,{propsDefault:t={},config:n={}}={})=>{aE.value.propsDefault={...aE.value.propsDefault,...t},aE.value.config={...aE.value.config,...n}}},MM={name:"AFilters",props:{appliedModel:{type:Object,required:!1,default:()=>({})},canSave:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filterCenterBtnCloseAllClass:{type:[String,Object],required:!1,default:()=>aE.value.propsDefault.filterCenterBtnCloseAllClass},filterCenterBtnCloseClass:{type:[String,Object],required:!1,default:()=>aE.value.propsDefault.filterCenterBtnCloseClass},filterCenterBtnGoToClass:{type:[String,Object],required:!1,default:()=>aE.value.propsDefault.filterCenterBtnGoToClass},filterCenterBtnNotCloseClass:{type:[String,Object],required:!1,default:()=>aE.value.propsDefault.filterCenterBtnNotCloseClass},filterMain:{type:Object,required:!1},filters:{type:Array,required:!1,default:()=>[]},filtersSaved:{type:Array,required:!1,default:()=>[]},id:{type:String,required:!1,default:()=>Ee("a_filters_")},mainModel:{type:Object,required:!1},unappliedModel:{type:Object,required:!1,default:()=>({})},updateFiltersSaved:{type:Function,required:!1,default:void 0},view:{type:String,required:!1,default:"top",validator:_=>["top","right"].indexOf(_)!==-1},viewRightTeleportSelector:{type:String,required:!1,default:void 0}},emits:["startSearch","update:appliedModel","update:mainModel","update:unappliedModel"],setup(_,t){const n=e.toRef(_,"filtersSaved"),{filtersDataKeyById:E,filtersGroup:a,filtersHorizontalRef:s,filtersKeyById:o,filtersVisible:l,filtersVisibleAll:A,filtersVisibleIds:T,hasFilters:L,onUpdateModelFilters:S,setFiltersVisibleIds:c,updateAppliedModel:f,updateMainModel:d}=gM(_,t),{closeAllFilters:R,closeFilterValue:C}=mM(_,t,{filtersHorizontalRef:s,filtersVisibleAll:A,onUpdateModelFilters:S}),{dataKeyByKeyIdPerFilter:I,updateDataKeyByIdFromFilter:O}=PM(),{toggleFiltersVisible:p}=VM(_,{dataKeyByKeyIdPerFilter:I,filtersVisibleIds:T,onUpdateModelFilters:S}),{startSearch:U}=$M(_,t,{onUpdateModelFilters:S}),{filtersSavedLocal:D,initFiltersSaved:V,updateFiltersSavedLocal:B}=BM(_),{excludeRenderAttributesComputed:y}=bM(_);return e.watch(n,()=>{V()},{deep:!0}),c(),V(),{closeAllFilters:R,closeFilterValue:C,dataKeyByKeyIdPerFilter:I,excludeRenderAttributesComputed:y,filtersDataKeyById:E,filtersGroup:a,filtersHorizontalRef:s,filtersKeyById:o,filtersSavedLocal:D,filtersVisible:l,filtersVisibleAll:A,filtersVisibleIds:T,hasFilters:L,onUpdateModelFilters:S,setFiltersVisibleIds:c,startSearch:U,toggleFiltersVisible:p,updateAppliedModel:f,updateDataKeyByIdFromFilter:O,updateFiltersSavedLocal:B,updateMainModel:d}},render(){if(this.hasFilters)return e.h("div",[this.view==="top"&&e.h(DM,{id:this.id,disabled:this.disabled,excludeRenderAttributes:this.excludeRenderAttributesComputed,filterMain:this.filterMain,mainModel:this.mainModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter,updateMainModel:this.updateMainModel,onStartSearch:this.startSearch},this.$slots),this.view==="right"&&e.h(e.Teleport,{to:this.viewRightTeleportSelector,disabled:!this.viewRightTeleportSelector},[e.h(cf,{id:this.id,disabled:this.disabled,excludeRenderAttributes:this.excludeRenderAttributesComputed,filters:this.filters,filtersKeyById:this.filtersKeyById,appliedModel:this.appliedModel,onUpdateModelFilters:this.updateAppliedModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter,onStartSearch:this.startSearch},this.$slots)]),e.h(df,{id:this.id,appliedModel:this.appliedModel,btnCloseClass:this.filterCenterBtnCloseClass,btnGoToClass:this.filterCenterBtnGoToClass,btnNotCloseClass:this.filterCenterBtnNotCloseClass,btnCloseAllClass:this.filterCenterBtnCloseAllClass,closeAllFilters:this.closeAllFilters,closeFilterValue:this.closeFilterValue,dataKeyByKeyIdPerFilter:this.dataKeyByKeyIdPerFilter,disabled:this.disabled,filtersGroup:this.filtersGroup,filtersKeyById:this.filtersKeyById,filtersVisibleAll:this.filtersVisibleAll},{filtersHorizontal:()=>this.view==="top"?e.h(mf,{ref:"filtersHorizontalRef",id:this.id,canSave:this.canSave,disabled:this.disabled,excludeRenderAttributes:this.excludeRenderAttributesComputed,filtersGroup:this.filtersGroup,filtersKeyById:this.filtersKeyById,filtersSaved:this.filtersSavedLocal,filtersVisible:this.filtersVisible,onUpdateModelFilters:this.onUpdateModelFilters,unappliedModel:this.unappliedModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter,updateFiltersSaved:this.updateFiltersSavedLocal,onStartSearch:this.startSearch,onToggleFiltersVisible:this.toggleFiltersVisible},this.$slots):"",...this.$slots})])}},vT={name:"ARequired",props:{alwaysTranslate:{type:Boolean,required:!1},text:{type:String,required:!1,default:"_A_REQUIRED_TEXT_"}},render(){return e.h(f_,{alwaysTranslate:this.alwaysTranslate,class:"a_required",html:this.text})}};function FM(_){const t=e.toRef(_,"isHide");return{styleFormHide:e.computed(()=>t.value?"display: none;":"")}}function GM(_,{emit:t}){const n=e.toRef(_,"modelValue"),E=e.computed(()=>n.value||{});return{modelValueLocal:E,onUpdateModelLocal:({currentModel:s,id:o,item:l,model:A,props:T,component:L,fullModel:S})=>{if(S){const f=e_(S);t("update:modelValue",f),t("change",{currentModel:s,id:o,item:l,fullModel:f,model:A,props:T}),U_(L.change)&&L.change({currentModel:s,id:o,item:l,fullModel:f,model:A,props:T});return}const c=e_(E.value);$r(c,o,e_(A)),t("update:modelValue",c),t("change",{currentModel:s,id:o,item:l,fullModel:c,model:A,props:T}),U_(L.change)&&L.change({currentModel:s,id:o,item:l,fullModel:c,model:A,props:T})}}}function vM(_){const t=e.toRef(_,"data"),n=e.toRef(_,"isRequired"),E=e.toRef(_,"readonly");return{isRequiredLocal:e.computed(()=>{if(E.value)return!1;if(n.value)return!0;let s=!1;return j(t.value,o=>{if(o.required)return s=!0,!1}),s})}}const zr={name:"AForm",props:{alwaysTranslate:{type:Boolean,required:!1},classColumns:{type:[String,Object],required:!1,default:"a_columns a_columns_count_12 a_columns_gap_2"},classColumnDefault:{type:[String,Object],required:!1,default:"a_column a_column_12"},data:{type:Array,required:!0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},errors:{type:Object,required:!1,default:()=>({})},idPrefix:{type:String,required:!1,default:void 0},isHide:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},isRequired:{type:Boolean,required:!1},modelValue:{type:Object,required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},showErrors:{type:Boolean,required:!1,default:!0},showRequiredText:{type:Boolean,required:!1,default:!0},tag:{type:String,required:!1,default:"form"},textRequired:{type:String,required:!1,default:void 0},textErrorHeader:{type:String,required:!1,default:void 0},useFlatErrors:{type:Boolean,required:!1,default:!0},useFlatModel:{type:Boolean,required:!1,default:!0},useHtmlIdAsKey:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue","change"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),{modelValueLocal:E,onUpdateModelLocal:a}=GM(_,t),{styleFormHide:s}=FM(_),{isRequiredLocal:o}=vM(_);return{attributesToExcludeFromRender:n,componentTypesMapping:()=>({...Ao,...FT,...St.components,...St.containerComponents}),isRequiredLocal:o,modelValueLocal:E,onUpdateModelLocal:a,styleFormHide:s}},render(){return this.isRender?e.h(this.tag,{class:"a_form",style:this.styleFormHide},[this.$slots.formPrepend?this.$slots.formPrepend():"",this.showRequiredText&&this.isRequiredLocal?e.h(vT,{text:this.textRequired}):"",this.$slots.formPrependAfterRequired?this.$slots.formPrependAfterRequired():"",this.showErrors?e.h(DT,{alwaysTranslate:this.alwaysTranslate,errors:this.errors,closable:!1,optionsList:this.data,idPrefix:this.idPrefix,textErrorHeader:this.textErrorHeader,useFlatErrors:this.useFlatErrors}):"",e.h("div",{class:this.classColumns},[this.$slots.formDataPrepend?this.$slots.formDataPrepend():"",...this.data.map((_,t)=>{const n=Da.value[_.type];let E;t_(_.classColumn)?E=this.classColumnDefault:_.classColumn&&(E=_.classColumn);const a=this.componentTypesMapping()[_.type],s=n&&!this.useFlatModel||!n?n_(this.modelValueLocal,_.id):this.modelValueLocal;let o=t;return this.useHtmlIdAsKey&&(o=RE({id:_.id,idPrefix:_.idPrefix||this.idPrefix,htmlId:_.htmlId})),e.h(a,{key:o,alwaysTranslate:this.alwaysTranslate,modelValue:s,modelAll:n?this.modelValueLocal:void 0,modelDependencies:n?this.modelValueLocal:void 0,class:E,errors:this.errors[_.id],errorsAll:n?this.errors:void 0,useFlatErrors:n?this.useFlatErrors:void 0,useFlatModel:n?this.useFlatModel:void 0,idPrefix:this.idPrefix,excludeRenderAttributes:this.excludeRenderAttributes,..._,change:({currentModel:l,id:A,item:T,model:L,props:S,fullModel:c})=>this.onUpdateModelLocal({currentModel:l,id:A,item:T,model:L,props:S,component:_,fullModel:c}),readonly:this.readonly||_.readonly,readonlyDefault:"readonlyDefault"in _&&!w_(_.readonlyDefault)?_.readonlyDefault:this.readonlyDefault,classColumn:void 0,...this.attributesToExcludeFromRender},this.$slots)}),this.$slots.formDataAppend?this.$slots.formDataAppend():""]),this.$slots.formAppend?this.$slots.formAppend():""]):null}},Pf={name:"AFormElement",props:{alwaysTranslate:{type:Boolean,required:!1},change:{type:Function,required:!1,default:()=>{}},disabled:{type:Boolean,required:!1,default:void 0},errorIcon:{type:[String,Object],required:!1,default:void 0},errors:{type:[String,Array],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:void 0},idPrefix:{type:String,required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{required:!1,default:void 0},options:{type:Object,required:!1,default:()=>({})},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},type:{type:String,required:!0}},emits:["update:modelValue"],setup(_,{emit:t,slots:n}){const E=e.toRef(_,"options"),a=e.toRef(_,"type"),s=()=>({...Ao,...FT,...St.components,...St.containerComponents});return()=>{const o=s()[a.value];return e.h(o,{..._,...E.value,"onUpdate:modelValue":l=>t("update:modelValue",l)},n)}}};function wM({emit:_}){return{clearLocal:({$event:n})=>{n.stopPropagation(),n.preventDefault(),_("clear",n)}}}const Lo={name:"AFormElementBtnClear",props:{alwaysTranslate:{type:Boolean,required:!1},class:{type:[String,Object],required:!1,default:"a_btn a_btn_transparent_dark a_btn_small"},icon:{type:String,required:!1,default:Mn},disabled:{type:Boolean,required:!1},title:{type:String,required:!1,default:"_A_FORM_ELEMENT_REMOVE_FIELD_CONTENT_"},textScreenReader:{type:String,required:!1,default:"_A_FORM_ELEMENT_REMOVE_FIELD_CONTENT_"},tabindex:{type:Number,required:!1,default:-1},iconClass:{type:String,required:!1,default:"a_form_element__btn_close__icon"}},emits:["clear"],setup(_,t){const{clearLocal:n}=wM(t);return{clearLocal:n}},render(){if(!this.disabled)return e.h(O_,{class:["a_form_control__actions__btn",this.class],disabled:this.disabled,iconClass:this.iconClass,iconLeft:this.icon,onClick:this.clearLocal,tabindex:this.tabindex,textScreenReader:this.textScreenReader,title:this.title,type:"button"})}},ut={name:"AFormLabelDescription",props:{alwaysTranslate:{type:Boolean,required:!1},extra:{type:Object,required:!1,default:void 0},html:{type:[String,Number],required:!1},id:{type:String,required:!0},isLabelFloat:{type:Boolean,required:!1}},render(){return!this.isLabelFloat&&this.html?e.h(f_,{id:this.id,alwaysTranslate:this.alwaysTranslate,class:"a_form_element__label_description",html:this.html,extra:this.extra}):""}};function HM(_){const t=e.toRef(_,"id"),n=e.toRef(_,"helpText"),E=e.toRef(_,"label"),a=e.toRef(_,"labelScreenReader"),s=e.inject("isRangeProvide",!1),o=e.computed(()=>`${t.value}_label`),l=e.computed(()=>`${t.value}_help_text`),A=e.computed(()=>`${t.value}_value`),T=e.computed(()=>{if(!s.value&&(E.value||a.value))return o.value}),L=e.computed(()=>{if(!s.value)return!t_(n.value)&&n.value!==""?`${A.value} ${l.value}`:`${A.value}`}),S=e.computed(()=>{if(!s.value)return"group"});return{ariaDescribedby:L,ariaLabelledby:T,helpTextId:l,isRangeProvide:s,labelId:o,role:S,valueId:A}}function xM(_){const t=e.toRef(_,"modelValue"),n=e.toRef(_,"readonlyDefault");return{modelValueReadonly:e.computed(()=>t_(t.value)||t.value===""?n.value:t.value)}}const ct={name:"AFormReadonly",props:{alwaysTranslate:{type:Boolean,required:!1},collapsible:{type:Boolean,required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},id:{type:String,required:!0},isCollapsed:{type:Boolean,required:!1,default:void 0},isRange:{type:Boolean,required:!1,default:void 0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelValue:{type:[String,Number,Object,Array,Boolean],required:!1,default:void 0},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:void 0},valueClass:{type:[String,Object],required:!1,default:void 0},valueParentClass:{type:[String,Object],required:!1,default:void 0},valueTag:{type:String,required:!1,default:"span"}},setup(_){const t=e.toRef(_,"isRange"),{attributesToExcludeFromRender:n}=Ye(_),{ariaDescribedby:E,ariaLabelledby:a,helpTextId:s,labelId:o,role:l,valueId:A}=HM(_),{modelValueReadonly:T}=xM(_);return e.provide("isRangeProvide",t),{ariaDescribedby:E,ariaLabelledby:a,attributesToExcludeFromRender:n,helpTextId:s,labelId:o,modelValueReadonly:T,role:l,valueId:A}},render(){return e.h("div",{"aria-labelledby":this.ariaLabelledby,"aria-describedby":this.ariaDescribedby,class:"a_form_element_readonly",role:this.role,...this.attributesToExcludeFromRender},[this.label||this.labelScreenReader?e.h(qe,{id:this.id,alwaysTranslate:this.alwaysTranslate,extra:this.extra,isLabelFloat:!1,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,readonly:!0,required:!1,tag:"div",type:this.type}):"",e.h("div",{id:this.valueId,class:["a_form_element_readonly_value",this.valueParentClass]},[this.$slots.default?this.$slots.default():e.h(f_,{class:this.valueClass,extra:this.extra,html:this.modelValueReadonly,tag:this.valueTag})]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra})])}},Xi={name:"AGet",props:{keyLabel:{type:[String,Array],required:!0,info:"Weg zu Informationen. Z.B.('a[0].b.c', 'vertrag.antrag_obj.pk', ['vertrag', aloha, 'pk'])"},data:{type:[String,Number,Boolean,Array,Object,Date,Function,Symbol],required:!1,default:void 0,info:"Haupt-Objekt oder -Array, wo man sucht"},tag:{type:String,required:!1,default:"span",info:"Semantisch-relevanter HTML-Tag.(span, div, ...)"},defaultValue:{type:[String,Number,Boolean,Array,Object,Date,Function,Symbol],required:!1,default:void 0,info:"Standardwert, wenn Lodash-Funktion 'get' undefined zurückschickt"},filter:{type:String,required:!1,default:void 0},filterParameters:{type:[Object,String,Number,Boolean],required:!1,default:()=>{}},replacedWithDefault:{type:[String,Number,Boolean,Array,Object,Date,Function,Symbol],required:!1,default:void 0,info:"Wenn das Wert, das Lodash-Funktion 'get' zurückschickt, === this.replacedWithDefault, dann this.defaultValue"}},setup(){return Gt()},computed:{valueLocal(){let _=n_(this.data,this.keyLabelLocal);if(t_(_)&&(_=this.defaultValue),this.isValueEqualsWithValueThenDefaultValue(_))return this.defaultValue;if(this.filter){const t=`filter${eu(this.filter)}`;if(U_(this[t]))return this[t](_,this.filterParameters);console.warn(`filter "${t}" ist not defined`)}return _},keyLabelLocal(){return p_(this.keyLabel)?this.keyLabel.join("."):this.keyLabel}},methods:{isValueEqualsWithValueThenDefaultValue(_){if(w_(this.replacedWithDefault))return!1;let t=!1;return p_(this.replacedWithDefault)?j(this.replacedWithDefault,n=>{if(n===_)return t=!0,!1}):this.replacedWithDefault===_&&(t=!0),t}},render(){return e.withDirectives(e.h(this.tag),[[et,this.valueLocal]])}},So={name:"ALink",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},ariaLabel:{type:[String,Number,Object],required:!1,default:void 0},attributes:{type:Object,required:!1,default:()=>({})},class:{type:[String,Object],required:!1,default:void 0},classDefault:{type:String,required:!1,default:"aloha_element"},classDefaultHidden:{type:String,required:!1,default:"aloha_element__hidden"},classDisabled:{type:String,required:!1,default:"disabled"},disabled:{type:Boolean,required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},extraData:{type:[String,Number,Boolean,Array,Object,Date,Function,Symbol,null,void 0],required:!1,default:void 0},href:{type:String,required:!1,default:void 0},html:{type:[String,Number,Object,Array],required:!1,default:void 0},htmlScreenReader:{type:[String,Number,Object,Array],required:!1,default:void 0},iconAttributes:{type:Object,required:!1,default:()=>({})},iconClass:{type:[String,Object],required:!1,default:void 0},iconLeft:{type:[String,Object],required:!1,default:void 0},iconRight:{type:[String,Object],required:!1,default:void 0},iconTag:{type:String,required:!1,default:void 0},id:{type:String,required:!1,default:()=>Ee("a_link_")},isTitleHtml:{type:Boolean,required:!1,default:void 0},loading:{type:Boolean,required:!1,default:!1},loadingAlign:{type:String,required:!1,default:"right",validator:_=>["right","left"].indexOf(_)!==-1},loadingClass:{type:[String,Object],required:!1,default:"a_spinner_small"},preventKeyboardRepeat:{type:Boolean,required:!1,default:!1},safeHtml:{type:[String,Number,Object,Array],required:!1,default:void 0},safeHtmlScreenReader:{type:[String,Number,Object,Array],required:!1,default:void 0},stop:{type:Boolean,required:!1,default:void 0},target:{type:String,required:!1,default:void 0},text:{type:[String,Number,Object,Array],required:!1,default:void 0},textAfter:{type:[String,Number,Object],required:!1,default:void 0},textAriaHidden:{type:Boolean,required:!1,default:void 0},textBefore:{type:[String,Number,Object],required:!1,default:void 0},textClass:{type:String,required:!1,default:void 0},textScreenReader:{type:[String,Number,Object,Array],required:!1,default:void 0},textTag:{type:String,required:!1,default:"span"},title:{type:[String,Number,Object,Array],required:!1,default:void 0},titleAttributes:{type:Object,required:!1,default:()=>({})},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1},titleZIndex:{type:[Number,String],required:!1,default:"auto",validator:_=>ue(_)?_==="auto":fn(_)},to:{type:[Object,String],required:!1,default:void 0}},emits:["click"],setup(_,t){const{clickEmit:n}=Cc(_,t);return{clickEmit:n}},render(){return e.h(O_,{...this.$attrs,...this.$props,type:"link",onClick:this.clickEmit},this.$slots)}};function qM(_){const t=e.toRef(_,"isLast"),n=e.toRef(_,"hasDropdownActions"),E=e.toRef(_,"hasDividerBeforeDropdown"),a=e.computed(()=>t.value&&n.value),s=e.computed(()=>a.value&&!E.value);return{isDropdownActionsAfterGroup:e.computed(()=>a.value&&E.value),isDropdownActionsInGroup:s}}const WM={name:"AGroupButtonDropdownItem",props:{actionsClasses:{type:Array,required:!0},actionsIds:{type:Array,required:!0},actionsDropdown:{type:Array,required:!0},btnGroupClass:{type:[String,Array,Object],required:!1,default:"a_btn_group"},data:{type:Object,required:!0},disabled:{type:Boolean,required:!1},dropdownAttributes:{type:Object,required:!0},hasDividerBeforeDropdown:{type:Boolean,required:!0},hasDropdownActions:{type:Boolean,required:!0},isLast:{type:Boolean,required:!0}},setup(_){const{isDropdownActionsAfterGroup:t,isDropdownActionsInGroup:n}=qM(_);return{isDropdownActionsAfterGroup:t,isDropdownActionsInGroup:n}},render(){return[!!this.data.children.length&&e.h("div",{class:this.btnGroupClass},[...this.data.children.map(_=>{let t=_.classButton?_.classButton:this.actionsClasses[_.actionNotDividerIndex];_.classExtra&&(t=to({class1:t,class2:_.classExtra}));const n=_.id?_.id:this.actionsIds[_.actionNotDividerIndex],E=this.disabled||_.disabled;if(_.type==="button")return e.h(le,{..._,id:n,class:t,classButton:void 0,classExtra:void 0,disabled:E,onClick:_.callback,callback:void 0,actionNotDividerIndex:void 0,isHidden:void 0,isConfirm:void 0,callbackLocal:void 0});if(_.type==="link")return e.h(So,{..._,id:n,classButton:void 0,classExtra:void 0,disabled:E,class:t,actionNotDividerIndex:void 0,isHidden:void 0,type:void 0,isConfirm:void 0,callbackLocal:void 0});if(_.type==="template"&&_.slotName&&this.$slots[_.slotName])return this.$slots[_.slotName]({id:n,class:t,action:_})}),this.isDropdownActionsInGroup&&e.h(nE,{isHideWithoutActionAndSlot:!0,actions:this.actionsDropdown,disabled:this.disabled,...this.dropdownAttributes},this.$slots)]),this.isDropdownActionsAfterGroup&&e.h(nE,{isHideWithoutActionAndSlot:!0,actions:this.actionsDropdown,disabled:this.disabled,...this.dropdownAttributes},this.$slots)]}};function kM(_){const t=e.toRef(_,"actions"),n=e.toRef(_,"indexFirstDropdownAction"),E=e.toRef(_,"indexFirstDropdownActionMobile"),a=e.toRef(_,"minDropdownActions"),{isMobileWidth:s}=Dt(),o=e.computed(()=>Hd({actions:t.value})),l=e.computed(()=>{const f=e_(o.value);return j(f,d=>{d.classButton=to({class1:d.classButton,class2:d.class}),d.class=to({class1:d.classDropdown,class2:d.class}),delete d.classDropdown,d.classExtra&&(d.class=to({class1:d.classExtra,class2:d.class}))}),f}),A=e.computed(()=>s.value?E.value:n.value),T=({actions:f=[],minCountActions:d=0})=>{let R=0;return j(f,C=>{if(R>=d)return!1;C.type!=="divider"&&R++}),R>=d},L=e.computed(()=>{const f=e_(l.value),d={buttons:[],dropdown:[]};let R=0,C=!0;return j(f,(I,O)=>{if(R===A.value){const p=f.slice(O,f.length);if(T({actions:p,minCountActions:a.value}))return d.dropdown=f.splice(O,f.length),A.value===0&&d.buttons.push({type:"group",children:[]}),!1}I.type!=="divider"?(I.actionNotDividerIndex=R,R++,C?d.buttons.push({type:"group",children:[I]}):tE(d.buttons).children.push(I),C=!1):C=!0}),d}),S=e.computed(()=>L.value.dropdown.length>0),c=e.computed(()=>l.value.length>0);return{actionsAllWithClassesFiltered:l,actionsGrouped:L,hasActionsAllFiltered:c,hasDropdownActions:S}}const ma=e.ref({propsDefault:{actionsClasses:["a_btn a_btn_primary","a_btn a_btn_secondary"],dropdownAttributes:{},hasDividerBeforeDropdown:!0,indexFirstDropdownAction:1,indexFirstDropdownActionMobile:0,minDropdownActions:2,useActionClass:!0,useDropdownActionClass:!1}}),KM={install:(_,{propsDefault:t={}}={})=>{ma.value.propsDefault={...ma.value.propsDefault,...t}}},ji={name:"AGroupButtonDropdown",props:{actions:{type:Array,required:!1,default:()=>[]},actionsClasses:{type:Array,required:!1,default:()=>ma.value.propsDefault.actionsClasses},actionsIds:{type:Array,required:!1,default:()=>[]},btnGroupClass:{type:[String,Array,Object],required:!1,default:"a_btn_group"},disabled:{type:Boolean,required:!1},dropdownAttributes:{type:Object,required:!1,default:()=>ma.value.propsDefault.dropdownAttributes},hasDividerBeforeDropdown:{type:Boolean,required:!1,default:()=>ma.value.propsDefault.hasDividerBeforeDropdown},indexFirstDropdownAction:{type:Number,required:!1,default:()=>ma.value.propsDefault.indexFirstDropdownAction,validator:_=>_>=-1},indexFirstDropdownActionMobile:{type:Number,required:!1,default:()=>ma.value.propsDefault.indexFirstDropdownActionMobile,validator:_=>_>=-1},minDropdownActions:{type:Number,required:!1,default:()=>ma.value.propsDefault.minDropdownActions},innerFlagHasActions:{type:Boolean,required:!1}},emits:["update:innerFlagHasActions"],setup(_,{emit:t}){const{actionsAllWithClassesFiltered:n,actionsGrouped:E,hasActionsAllFiltered:a,hasDropdownActions:s}=kM(_);return e.watch(a,o=>{t("update:innerFlagHasActions",o)},{immediate:!0}),{actionsAllWithClassesFiltered:n,actionsGrouped:E,hasActionsAllFiltered:a,hasDropdownActions:s}},render(){if(this.hasActionsAllFiltered)return e.h("div",{class:"aloha_group_btn_dropdown"},[...this.actionsGrouped.buttons.map((_,t)=>e.h(WM,{btnGroupClass:this.btnGroupClass,data:_,disabled:this.disabled,actionsDropdown:this.actionsGrouped.dropdown,hasDropdownActions:this.hasDropdownActions,dropdownAttributes:this.dropdownAttributes,actionsClasses:this.actionsClasses,actionsIds:this.actionsIds,isLast:t===this.actionsGrouped.buttons.length-1,hasDividerBeforeDropdown:this.hasDividerBeforeDropdown},this.$slots))])}};function XM(_){const t=e.toRef(_,"callback"),n=e.toRef(_,"disabled"),E=e.toRef(_,"rootMargin"),a=e.toRef(_,"threshold");let s={};const o=e.ref(void 0);let l;const A=()=>{s={rootMargin:E.value,threshold:a.value}},T=()=>{l=new IntersectionObserver(c=>{const[f]=c;f.isIntersecting&&t.value()},s)},L=()=>{n.value||l.observe(o.value)},S=()=>{l&&l.disconnect()};return e.watch(n,c=>{c===!0?L():S()}),{disconnectObserver:S,sentinelRef:o,setIntersectionObserver:T,setObserverOptions:A,startObserver:L}}const jM={name:"AInfiniteScroll",props:{callback:{type:Function,required:!0},disabled:{type:Boolean,required:!1},rootMargin:{type:String,required:!1,default:"300px"},sentinelTag:{type:String,required:!1,default:"span"},tag:{type:String,required:!1,default:"div"},threshold:{type:[Number,Array],required:!1,default:.5}},setup(_){const{disconnectObserver:t,sentinelRef:n,setIntersectionObserver:E,setObserverOptions:a,startObserver:s}=XM(_);return e.onMounted(()=>{a(),E(),s()}),e.onBeforeUnmount(()=>{t()}),{sentinelRef:n}},render(){return e.h(this.tag,{},[this.$slots.default?this.$slots.default():null,e.h(this.sentinelTag,{ref:"sentinelRef",style:"height: 1px; display: block;",ariaHidden:!0})])}};function zM(_){const t=e.toRef(_,"textCopy"),n=e.ref(void 0),{addNotification:E}=To();return{copyText:async()=>{var o;let s="";if(t.value?s=t.value:(o=n.value)!=null&&o.$el&&j(n.value.$el.children,l=>{l.classList.contains("a_sr_only")||(s+=l.textContent)}),s)try{await navigator.clipboard.writeText(s),E({text:"_A_LINK_COPY_COPIED_TO_CLIPBOARD_"})}catch(l){console.error(l)}},linkRef:n}}const JM=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
|
|
154
|
+
`,mf={name:"AFiltersHorizontal",props:{canSave:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filtersGroup:{type:Object,required:!0,default:()=>({alwaysVisible:[],filters:[]})},filtersKeyById:{type:Object,required:!0},filtersSaved:{type:Array,required:!0},filtersVisible:{type:Array,required:!0},id:{type:String,required:!0},mainModel:{type:Object,required:!1},onUpdateModelFilters:{type:Function,required:!0},unappliedModel:{type:Object,required:!0},updateDataKeyByIdFromFilter:{type:Function,required:!0},updateFiltersSaved:{type:Function,required:!0}},emits:["startSearch","toggleFiltersVisible"],setup(_,t){const{dataForForm:n}=CM(_),{closeDropdown:E,dropdownRef:a,isDropdownVisible:s,openDropdown:o}=uM(_),{idFilterTop:l}=hM(_),{onSearch:A}=IM(_,t,{closeDropdown:E}),{destroyEventBus:T,initEventBus:L,initEventName:S}=cM(_,{openDropdown:o}),{addFiltersVisible:c,deleteFiltersVisible:f,filtersHidden:d,hasFiltersHiddenDefault:R}=dM(_,t),{buttonSaveComponentId:C,changeModelFiltersSaved:I,closeModalSave:O,filtersSavedLocal:p,initModelFiltersSaved:U,isModalSaveVisible:D,isModelFilterSavedNew:V,modelFiltersSaved:B,openModalSave:y,selectorCloseIds:Y}=fM(_,{openDropdown:o}),{buttonDeleteId:b,isConfirmHidden:$,openDeleteConfirm:M,textScreenreaderButtonDeleteFiltersSaved:W,titleButtonDeleteFiltersSaved:H}=RM(_,{changeModelFiltersSaved:I,idFilterTop:l,isModelFilterSavedNew:V,modelFiltersSaved:B});return S(),U(),L(),e.onBeforeUnmount(()=>{T()}),{addFiltersVisible:c,buttonDeleteId:b,buttonSaveComponentId:C,changeModelFiltersSaved:I,closeDropdown:E,closeModalSave:O,dataForForm:n,deleteFiltersVisible:f,dropdownRef:a,filtersHidden:d,filtersSavedLocal:p,hasFiltersHiddenDefault:R,idFilterTop:l,initModelFiltersSaved:U,isConfirmHidden:$,isDropdownVisible:s,isModalSaveVisible:D,isModelFilterSavedNew:V,modelFiltersSaved:B,onSearch:A,openDeleteConfirm:M,openModalSave:y,selectorCloseIds:Y,textScreenreaderButtonDeleteFiltersSaved:W,titleButtonDeleteFiltersSaved:H}},render(){return this.isDropdownVisible?[e.h(nE,{ref:"dropdownRef",buttonIconLeft:OM,buttonText:"Filter",buttonClass:"a_btn a_btn_primary a_btn_small a_filter_horizontal__btn_dropdown",dropdownTag:"div",dropdownClass:"a_filter_horizontal__wrapper",dropdownRenderDefault:!0,isCloseByClickInside:!1,hasCaret:!1,inBody:!0,lockArrowsNavigation:!1,lockTabNavigation:!1,useEscape:!this.isModalSaveVisible&&this.isConfirmHidden},{...this.$slots,dropdown:()=>e.h("div",{class:"a_filter_horizontal"},[e.h("div",{class:"a_filter_horizontal__header__wrapper"},[e.h("div",{class:"a_filter_horizontal__header"},[e.h("div",{class:"a_filter_horizontal__header__texts"},[e.h(f_,{class:"a_filter_horizontal__header__texts__filter",tag:"span",text:"_A_FILTERS_HOR_FILTER_HEADER_"}),this.isModelFilterSavedNew?e.h(f_,{class:"a_filter_horizontal__header__texts__new",tag:"em",text:this.modelFiltersSaved}):e.h("span",{},this.modelFiltersSaved)]),this.canSave?e.h(EE,{modelValue:this.modelFiltersSaved,change:this.changeModelFiltersSaved,class:"a_filters_top__save_select",data:this.filtersSavedLocal,deselectable:!1,keyId:"label",keyLabel:"label",keyGroup:"group",label:"_A_FILTERS_SAVE_SELECT_",menuWidthType:"by_content",search:!0,translateData:!0,type:"select"}):""])]),e.h("div",{class:"a_filter_horizontal__body__wrapper"},[e.h("div",{class:"a_filter_horizontal__body"},[e.h(zr,{idPrefix:this.idFilterTop,class:"a_filter_horizontal__body__form",classColumnDefault:"",classColumns:"",data:this.dataForForm,excludeRenderAttributes:this.excludeRenderAttributes,modelValue:this.unappliedModel,showErrors:!1,onChange:this.onUpdateModelFilters},{...this.$slots,groupAppend:({item:_})=>e.h(O_,{type:"button",class:"a_btn a_btn_primary a_ml_2",title:"_A_FILTERS_TOP_CLOSE_",textScreenReader:"_A_FILTERS_TOP_CLOSE_",iconLeft:Mn,stop:!0,onClick:()=>this.deleteFiltersVisible({filter:_})}),formDataAppend:()=>e.h("div",{class:"a_filter_horizontal__add_filter__wrapper"},[e.h(EE,{buttonClassDefault:"a_btn a_btn_primary a_filter_horizontal__add_filter",change:this.addFiltersVisible,data:this.filtersHidden,hasCaret:!1,disabled:!this.filtersHidden.length,isLabelFloat:!1,keyGroup:"group",keyId:"id",keyLabel:"label",label:"_A_FILTERS_ADD_FILTER_",labelClass:"a_sr_only",menuWidthType:"by_content",sortOrderGroup:"asc",placement:"bottom-start",search:!0,translateData:!0,type:"select"},{fixedPlaceholder:()=>[e.h(f_,{tag:"span",ariaHidden:!0,class:"a_position_absolute_all",title:"_A_FILTERS_ADD_FILTER_"}),e.h(_e,{icon:Nf})]})]),formAppend:()=>this.canSave?e.h("div",{class:"a_filter_horizontal__save_actions"},[e.h(O_,{id:this.buttonSaveComponentId,class:"a_btn a_btn_primary",iconLeft:Uf,type:"button",text:"_A_FILTERS_SAVE_FILTER_SAVED_BTN_TEXT_",onClick:this.openModalSave}),e.h(O_,{id:this.buttonDeleteId,ariaDisabled:this.isModelFilterSavedNew,class:"a_btn a_btn_secondary",iconLeft:oo,text:{desktop:"_A_FILTERS_DELETE_FILTER_SAVED_BTN_TEXT_"},textAriaHidden:!0,textScreenReader:this.textScreenreaderButtonDeleteFiltersSaved,title:this.titleButtonDeleteFiltersSaved,type:"button",onClick:this.openDeleteConfirm})]):""})]),e.h("div",{class:"a_filter_horizontal__footer"},[e.h("div",{class:"a_filter_horizontal__footer__actions"},[e.h(O_,{type:"button",class:"a_btn a_btn_primary a_text_nowrap a_filter_horizontal__footer__actions__btn_search",iconLeft:Df,text:"_A_FILTERS_START_SEARCH_",disabled:this.disabled,onClick:this.onSearch}),e.h(O_,{type:"button",class:"a_btn a_btn_secondary a_text_nowrap a_filter_horizontal__footer__actions__btn_close",text:"_A_FILTERS_HOR_CLOSE_DROPDOWN_",onClick:this.closeDropdown})])])])])}),this.isModalSaveVisible?e.h(SM,{changeModelFiltersSaved:this.changeModelFiltersSaved,filtersSaved:this.filtersSaved,isModelFilterSavedNew:this.isModelFilterSavedNew,modelFiltersSaved:this.modelFiltersSaved,selectorCloseIds:this.selectorCloseIds,updateFiltersSaved:this.updateFiltersSaved,onClose:this.closeModalSave}):""]:null}};function pM(_){const t=e.toRef(_,"id");return{idFilterTop:e.computed(()=>`${t.value}_filter_main`)}}function UM(_){const t=e.toRef(_,"filterMain"),n=e.computed(()=>!!t.value),E=e.computed(()=>n.value?[t.value]:[]);return{hasFilterMain:n,dataMainFilter:E}}function NM(_,{emit:t}){const n=e.toRef(_,"disabled");return{onSearch:()=>{n.value||t("startSearch")}}}const DM={name:"AFiltersMain",props:{disabled:{type:Boolean,required:!1},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filterMain:{type:Object,required:!1},id:{type:String,required:!0},mainModel:{type:Object,required:!1},updateDataKeyByIdFromFilter:{type:Function,required:!0},updateMainModel:{type:Function,required:!0}},emits:["startSearch"],setup(_,t){const{hasFilterMain:n,dataMainFilter:E}=UM(_),{idFilterTop:a}=pM(_),{onSearch:s}=NM(_,t);return{hasFilterMain:n,dataMainFilter:E,idFilterTop:a,onSearch:s}},render(){return this.hasFilterMain?e.h("div",{id:this.idFilterTop,class:"a_filters_top"},[e.h(zr,{idPrefix:this.idFilterTop,class:"a_filters_top__form",classColumns:"a_filters_top__main_wrapper",classColumnDefault:"a_filters_top__main",data:this.dataMainFilter,excludeRenderAttributes:this.excludeRenderAttributes,modelValue:this.mainModel,showErrors:!1,onChange:this.updateMainModel},{formDataAppend:()=>e.h(le,{class:"a_btn a_btn_primary a_text_nowrap a_filters_top__search",iconLeft:Zs,type:"submit",text:{desktop:"_A_FILTERS_START_SEARCH_"},textScreenReader:{mobile:"_A_FILTERS_START_SEARCH_"},prevent:!0,stop:!0,disabled:this.disabled,onClick:this.onSearch})})]):null}};function mM(_,{emit:t},{filtersHorizontalRef:n=e.ref(void 0),filtersVisibleAll:E=e.computed(()=>[]),onUpdateModelFilters:a=()=>{}}){const s=e.toRef(_,"appliedModel"),o=e.toRef(_,"unappliedModel"),l=()=>{var S;(S=n.value)==null||S.initModelFiltersSaved()},A=({filter:S,keyId:c,modelArray:f,appliedModelLocal:d,unappliedModelLocal:R})=>{const C=S.id;return ro.value[S.type]?(d[C]&&d[C].length&&(f?d[C]=ce(d[C],I=>f.indexOf(I)===-1):d[C]=[]),R[C]&&R[C].length&&(f?R[C]=ce(R[C],I=>f.indexOf(I)===-1):R[C]=[])):qi.value[S.type]&&c?(J_(R==null?void 0:R[C])&&(R[C][c]=void 0),J_(d==null?void 0:d[C])&&(d[C][c]=void 0)):(R[C]=void 0,d[C]=void 0),{appliedModelLocal:d,unappliedModelLocal:R}};return{closeAllFilters:()=>{let S=e_(s.value),c=e_(o.value);j(E.value,f=>{const d=A({filter:f,appliedModelLocal:S,unappliedModelLocal:c});S=d.appliedModelLocal,c=d.unappliedModelLocal}),l(),t("update:unappliedModel",c),t("update:appliedModel",S),setTimeout(()=>{a({fullModel:s.value})})},closeFilterValue:({filter:S,keyId:c,modelArray:f})=>{const d=e_(s.value),R=e_(o.value),{appliedModelLocal:C,unappliedModelLocal:I}=A({filter:S,keyId:c,modelArray:f,appliedModelLocal:d,unappliedModelLocal:R});t("update:unappliedModel",I),t("update:appliedModel",C),setTimeout(()=>{a({fullModel:s.value})})}}}function PM(){const _=e.ref({});return{dataKeyByKeyIdPerFilter:_,updateDataKeyByIdFromFilter:({dataKeyByKeyId:n,filterId:E})=>{_.value[E]=e_(n)}}}function bM(_){const t=e.toRef(_,"excludeRenderAttributes"),n=["alwaysVisible"];return{excludeRenderAttributesComputed:e.computed(()=>lb(n,t.value))}}function YM({filter:_={},modelObj:t={}}){var E;const n=_.id;return n in t?ro.value[_.type]?!!((E=t[n])!=null&&E.length):qi.value[_.type]?!!(t[n]&&!_t(t[n])):!0:!1}function gM(_,{emit:t}){const n=e.toRef(_,"filters"),E=e.toRef(_,"filterMain"),a=e.toRef(_,"unappliedModel"),s=e.ref({}),o=e.ref(void 0),l=e.ref([]),A=e.computed(()=>!!(n.value.length||E.value)),T=e.computed(()=>{const I={};return j(e_(n.value),O=>{I[O.id]=O,Da.value[O.type]&&O.children&&O.children.length&&j(O.children,p=>{I[p.id]=p})}),I}),L=e.computed(()=>{const I={alwaysVisible:[],filters:[]};return j(e_(n.value),O=>{O.alwaysVisible?I.alwaysVisible.push(O):I.filters.push(O)}),I}),S=e.computed(()=>{const I=[];return j(l.value,O=>{T.value[O]&&I.push(T.value[O])}),I}),c=e.computed(()=>{const I=[];I.push(...n.value);const O=[];return j(I,p=>{O.push(p),Da.value[p.type]&&p.children&&p.children.length&&j(p.children,U=>{O.push(U)})}),O}),f=()=>{const I=[];j(L.value.filters,O=>{YM({filter:O,modelObj:a.value})&&I.push(O.id)}),l.value=I};return{filtersDataKeyById:s,filtersGroup:L,filtersHorizontalRef:o,filtersKeyById:T,filtersVisible:S,filtersVisibleAll:c,filtersVisibleIds:l,hasFilters:A,onUpdateModelFilters:({fullModel:I,isUpdateFiltersVisible:O})=>{t("update:unappliedModel",I),O&&setTimeout(()=>{f()})},setFiltersVisibleIds:f,updateAppliedModel:({fullModel:I})=>{t("update:appliedModel",I)},updateMainModel:({fullModel:I})=>{t("update:mainModel",I)}}}function BM(_){const t=e.toRef(_,"filtersSaved"),n=e.toRef(_,"unappliedModel"),E=e.toRef(_,"updateFiltersSaved"),a=e.ref([]);return{filtersSavedLocal:a,initFiltersSaved:()=>{a.value=t.value||[]},updateFiltersSavedLocal:({action:l="",label:A=""})=>{if(l==="create")a.value.push({label:A,data:e_(n.value)});else{const T=dn(a.value,["label",A]);T!==-1&&(l==="delete"?a.value.splice(T,1):l==="update"&&a.value.splice(T,1,{label:A,data:e_(n.value)}))}U_(E.value)&&E.value({action:l,label:A,model:n.value,filtersSaved:a.value})}}}function $M(_,{emit:t},{onUpdateModelFilters:n=()=>{}}){const E=e.toRef(_,"appliedModel"),a=e.toRef(_,"unappliedModel");return{startSearch:()=>{t("update:appliedModel",a.value),setTimeout(()=>{n({fullModel:E.value})})}}}function VM(_,{dataKeyByKeyIdPerFilter:t=e.ref({}),filtersVisibleIds:n=e.ref([]),onUpdateModelFilters:E=()=>{}}){const a=e.toRef(_,"unappliedModel");return{toggleFiltersVisible:({isAdd:o=!0,filterId:l,filter:A})=>{var T,L;if(o)n.value.push(l);else{const S=n.value.indexOf(l);S!==-1&&n.value.splice(S,1);const c=e_(a.value);if(A&&A.modelId){const f=(T=t.value)==null?void 0:T[l];(L=c==null?void 0:c[A.modelId])!=null&&L.length&&f?c[A.modelId]=ce(c[A.modelId],d=>!f[d]):c[l]=void 0}else c[l]=void 0;E({fullModel:c})}}}}const aE=e.ref({propsDefault:{filterCenterBtnCloseAllClass:"a_btn a_btn_link a_btn_small",filterCenterBtnCloseClass:"a_btn a_btn_secondary",filterCenterBtnGoToClass:"a_btn a_btn_secondary",filterCenterBtnNotCloseClass:"a_btn a_btn_secondary"},config:{isHtmlTitleSort:!1,headerTopGroups:[{props:{},children:[{component:"filterMain",props:{}},{component:"buttonSearch",props:{}},{component:"buttonToggle",props:{}}]},{props:{},children:[{component:"selectFiltersSaved",props:{}},{component:"buttonSaveTop",props:{}},{component:"buttonDeleteFiltersSaved",props:{}}]}],headerBottomGroups:[{props:{},children:[{component:"addFilterSelect",props:{}},{component:"buttonSearch",props:{}}]}]}});e.computed(()=>{const _={};return j(aE.value.config.headerTopGroups,t=>{j(t.children,n=>{_[n.component]=n.props})}),j(aE.value.config.headerBottomGroups,t=>{j(t.children,n=>{_[n.component]=n.props})}),_});const yM={install:(_,{propsDefault:t={},config:n={}}={})=>{aE.value.propsDefault={...aE.value.propsDefault,...t},aE.value.config={...aE.value.config,...n}}},MM={name:"AFilters",props:{appliedModel:{type:Object,required:!1,default:()=>({})},canSave:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},filterCenterBtnCloseAllClass:{type:[String,Object],required:!1,default:()=>aE.value.propsDefault.filterCenterBtnCloseAllClass},filterCenterBtnCloseClass:{type:[String,Object],required:!1,default:()=>aE.value.propsDefault.filterCenterBtnCloseClass},filterCenterBtnGoToClass:{type:[String,Object],required:!1,default:()=>aE.value.propsDefault.filterCenterBtnGoToClass},filterCenterBtnNotCloseClass:{type:[String,Object],required:!1,default:()=>aE.value.propsDefault.filterCenterBtnNotCloseClass},filterMain:{type:Object,required:!1},filters:{type:Array,required:!1,default:()=>[]},filtersSaved:{type:Array,required:!1,default:()=>[]},id:{type:String,required:!1,default:()=>Ee("a_filters_")},mainModel:{type:Object,required:!1},unappliedModel:{type:Object,required:!1,default:()=>({})},updateFiltersSaved:{type:Function,required:!1,default:void 0},view:{type:String,required:!1,default:"top",validator:_=>["top","right"].indexOf(_)!==-1},viewRightTeleportSelector:{type:String,required:!1,default:void 0}},emits:["startSearch","update:appliedModel","update:mainModel","update:unappliedModel"],setup(_,t){const n=e.toRef(_,"filtersSaved"),{filtersDataKeyById:E,filtersGroup:a,filtersHorizontalRef:s,filtersKeyById:o,filtersVisible:l,filtersVisibleAll:A,filtersVisibleIds:T,hasFilters:L,onUpdateModelFilters:S,setFiltersVisibleIds:c,updateAppliedModel:f,updateMainModel:d}=gM(_,t),{closeAllFilters:R,closeFilterValue:C}=mM(_,t,{filtersHorizontalRef:s,filtersVisibleAll:A,onUpdateModelFilters:S}),{dataKeyByKeyIdPerFilter:I,updateDataKeyByIdFromFilter:O}=PM(),{toggleFiltersVisible:p}=VM(_,{dataKeyByKeyIdPerFilter:I,filtersVisibleIds:T,onUpdateModelFilters:S}),{startSearch:U}=$M(_,t,{onUpdateModelFilters:S}),{filtersSavedLocal:D,initFiltersSaved:V,updateFiltersSavedLocal:B}=BM(_),{excludeRenderAttributesComputed:y}=bM(_);return e.watch(n,()=>{V()},{deep:!0}),c(),V(),{closeAllFilters:R,closeFilterValue:C,dataKeyByKeyIdPerFilter:I,excludeRenderAttributesComputed:y,filtersDataKeyById:E,filtersGroup:a,filtersHorizontalRef:s,filtersKeyById:o,filtersSavedLocal:D,filtersVisible:l,filtersVisibleAll:A,filtersVisibleIds:T,hasFilters:L,onUpdateModelFilters:S,setFiltersVisibleIds:c,startSearch:U,toggleFiltersVisible:p,updateAppliedModel:f,updateDataKeyByIdFromFilter:O,updateFiltersSavedLocal:B,updateMainModel:d}},render(){if(this.hasFilters)return e.h("div",[this.view==="top"&&e.h(DM,{id:this.id,disabled:this.disabled,excludeRenderAttributes:this.excludeRenderAttributesComputed,filterMain:this.filterMain,mainModel:this.mainModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter,updateMainModel:this.updateMainModel,onStartSearch:this.startSearch},this.$slots),this.view==="right"&&e.h(e.Teleport,{to:this.viewRightTeleportSelector,disabled:!this.viewRightTeleportSelector},[e.h(cf,{id:this.id,disabled:this.disabled,excludeRenderAttributes:this.excludeRenderAttributesComputed,filters:this.filters,filtersKeyById:this.filtersKeyById,appliedModel:this.appliedModel,onUpdateModelFilters:this.updateAppliedModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter,onStartSearch:this.startSearch},this.$slots)]),e.h(df,{id:this.id,appliedModel:this.appliedModel,btnCloseClass:this.filterCenterBtnCloseClass,btnGoToClass:this.filterCenterBtnGoToClass,btnNotCloseClass:this.filterCenterBtnNotCloseClass,btnCloseAllClass:this.filterCenterBtnCloseAllClass,closeAllFilters:this.closeAllFilters,closeFilterValue:this.closeFilterValue,dataKeyByKeyIdPerFilter:this.dataKeyByKeyIdPerFilter,disabled:this.disabled,filtersGroup:this.filtersGroup,filtersKeyById:this.filtersKeyById,filtersVisibleAll:this.filtersVisibleAll},{filtersHorizontal:()=>this.view==="top"?e.h(mf,{ref:"filtersHorizontalRef",id:this.id,canSave:this.canSave,disabled:this.disabled,excludeRenderAttributes:this.excludeRenderAttributesComputed,filtersGroup:this.filtersGroup,filtersKeyById:this.filtersKeyById,filtersSaved:this.filtersSavedLocal,filtersVisible:this.filtersVisible,onUpdateModelFilters:this.onUpdateModelFilters,unappliedModel:this.unappliedModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter,updateFiltersSaved:this.updateFiltersSavedLocal,onStartSearch:this.startSearch,onToggleFiltersVisible:this.toggleFiltersVisible},this.$slots):"",...this.$slots})])}},vT={name:"ARequired",props:{alwaysTranslate:{type:Boolean,required:!1},text:{type:String,required:!1,default:"_A_REQUIRED_TEXT_"}},render(){return e.h(f_,{alwaysTranslate:this.alwaysTranslate,class:"a_required",html:this.text})}};function FM(_){const t=e.toRef(_,"isHide");return{styleFormHide:e.computed(()=>t.value?"display: none;":"")}}function GM(_,{emit:t}){const n=e.toRef(_,"modelValue"),E=e.computed(()=>n.value||{});return{modelValueLocal:E,onUpdateModelLocal:({currentModel:s,id:o,item:l,model:A,props:T,component:L,fullModel:S})=>{if(S){const f=e_(S);t("update:modelValue",f),t("change",{currentModel:s,id:o,item:l,fullModel:f,model:A,props:T}),U_(L.change)&&L.change({currentModel:s,id:o,item:l,fullModel:f,model:A,props:T});return}const c=e_(E.value);$r(c,o,e_(A)),t("update:modelValue",c),t("change",{currentModel:s,id:o,item:l,fullModel:c,model:A,props:T}),U_(L.change)&&L.change({currentModel:s,id:o,item:l,fullModel:c,model:A,props:T})}}}function vM(_){const t=e.toRef(_,"data"),n=e.toRef(_,"isRequired"),E=e.toRef(_,"readonly");return{isRequiredLocal:e.computed(()=>{if(E.value)return!1;if(n.value)return!0;let s=!1;return j(t.value,o=>{if(o.required)return s=!0,!1}),s})}}const zr={name:"AForm",props:{alwaysTranslate:{type:Boolean,required:!1},classColumns:{type:[String,Object],required:!1,default:"a_columns a_columns_count_12 a_columns_gap_2"},classColumnDefault:{type:[String,Object],required:!1,default:"a_column a_column_12"},data:{type:Array,required:!0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},errors:{type:Object,required:!1,default:()=>({})},idPrefix:{type:String,required:!1,default:void 0},isHide:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},isRequired:{type:Boolean,required:!1},modelValue:{type:Object,required:!1,default:void 0},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},showErrors:{type:Boolean,required:!1,default:!0},showRequiredText:{type:Boolean,required:!1,default:!0},tag:{type:String,required:!1,default:"form"},textRequired:{type:String,required:!1,default:void 0},textErrorHeader:{type:String,required:!1,default:void 0},useFlatErrors:{type:Boolean,required:!1,default:!0},useFlatModel:{type:Boolean,required:!1,default:!0},useHtmlIdAsKey:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue","change"],setup(_,t){const{attributesToExcludeFromRender:n}=Ye(_),{modelValueLocal:E,onUpdateModelLocal:a}=GM(_,t),{styleFormHide:s}=FM(_),{isRequiredLocal:o}=vM(_);return{attributesToExcludeFromRender:n,componentTypesMapping:()=>({...Ao,...FT,...St.components,...St.containerComponents}),isRequiredLocal:o,modelValueLocal:E,onUpdateModelLocal:a,styleFormHide:s}},render(){return this.isRender?e.h(this.tag,{class:"a_form",style:this.styleFormHide},[this.$slots.formPrepend?this.$slots.formPrepend():"",this.showRequiredText&&this.isRequiredLocal?e.h(vT,{text:this.textRequired}):"",this.$slots.formPrependAfterRequired?this.$slots.formPrependAfterRequired():"",this.showErrors?e.h(DT,{alwaysTranslate:this.alwaysTranslate,errors:this.errors,closable:!1,optionsList:this.data,idPrefix:this.idPrefix,textErrorHeader:this.textErrorHeader,useFlatErrors:this.useFlatErrors}):"",e.h("div",{class:this.classColumns},[this.$slots.formDataPrepend?this.$slots.formDataPrepend():"",...this.data.map((_,t)=>{const n=Da.value[_.type];let E;t_(_.classColumn)?E=this.classColumnDefault:_.classColumn&&(E=_.classColumn);const a=this.componentTypesMapping()[_.type],s=n&&!this.useFlatModel||!n?n_(this.modelValueLocal,_.id):this.modelValueLocal;let o=t;return this.useHtmlIdAsKey&&(o=RE({id:_.id,idPrefix:_.idPrefix||this.idPrefix,htmlId:_.htmlId})),e.h(a,{key:o,alwaysTranslate:this.alwaysTranslate,modelValue:s,modelAll:n?this.modelValueLocal:void 0,modelDependencies:this.modelValueLocal,class:E,errors:this.errors[_.id],errorsAll:n?this.errors:void 0,useFlatErrors:n?this.useFlatErrors:void 0,useFlatModel:n?this.useFlatModel:void 0,idPrefix:this.idPrefix,excludeRenderAttributes:this.excludeRenderAttributes,..._,change:({currentModel:l,id:A,item:T,model:L,props:S,fullModel:c})=>this.onUpdateModelLocal({currentModel:l,id:A,item:T,model:L,props:S,component:_,fullModel:c}),readonly:this.readonly||_.readonly,readonlyDefault:"readonlyDefault"in _&&!w_(_.readonlyDefault)?_.readonlyDefault:this.readonlyDefault,classColumn:void 0,...this.attributesToExcludeFromRender},this.$slots)}),this.$slots.formDataAppend?this.$slots.formDataAppend():""]),this.$slots.formAppend?this.$slots.formAppend():""]):null}},Pf={name:"AFormElement",props:{alwaysTranslate:{type:Boolean,required:!1},change:{type:Function,required:!1,default:()=>{}},disabled:{type:Boolean,required:!1,default:void 0},errorIcon:{type:[String,Object],required:!1,default:void 0},errors:{type:[String,Array],required:!1,default:void 0},errorsClass:{type:[String,Object],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:void 0},idPrefix:{type:String,required:!1,default:void 0},isHide:{type:Boolean,required:!1,default:void 0},isRender:{type:Boolean,required:!1,default:!0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{required:!1,default:void 0},options:{type:Object,required:!1,default:()=>({})},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},type:{type:String,required:!0}},emits:["update:modelValue"],setup(_,{emit:t,slots:n}){const E=e.toRef(_,"options"),a=e.toRef(_,"type"),s=()=>({...Ao,...FT,...St.components,...St.containerComponents});return()=>{const o=s()[a.value];return e.h(o,{..._,...E.value,"onUpdate:modelValue":l=>t("update:modelValue",l)},n)}}};function wM({emit:_}){return{clearLocal:({$event:n})=>{n.stopPropagation(),n.preventDefault(),_("clear",n)}}}const Lo={name:"AFormElementBtnClear",props:{alwaysTranslate:{type:Boolean,required:!1},class:{type:[String,Object],required:!1,default:"a_btn a_btn_transparent_dark a_btn_small"},icon:{type:String,required:!1,default:Mn},disabled:{type:Boolean,required:!1},title:{type:String,required:!1,default:"_A_FORM_ELEMENT_REMOVE_FIELD_CONTENT_"},textScreenReader:{type:String,required:!1,default:"_A_FORM_ELEMENT_REMOVE_FIELD_CONTENT_"},tabindex:{type:Number,required:!1,default:-1},iconClass:{type:String,required:!1,default:"a_form_element__btn_close__icon"}},emits:["clear"],setup(_,t){const{clearLocal:n}=wM(t);return{clearLocal:n}},render(){if(!this.disabled)return e.h(O_,{class:["a_form_control__actions__btn",this.class],disabled:this.disabled,iconClass:this.iconClass,iconLeft:this.icon,onClick:this.clearLocal,tabindex:this.tabindex,textScreenReader:this.textScreenReader,title:this.title,type:"button"})}},ut={name:"AFormLabelDescription",props:{alwaysTranslate:{type:Boolean,required:!1},extra:{type:Object,required:!1,default:void 0},html:{type:[String,Number],required:!1},id:{type:String,required:!0},isLabelFloat:{type:Boolean,required:!1}},render(){return!this.isLabelFloat&&this.html?e.h(f_,{id:this.id,alwaysTranslate:this.alwaysTranslate,class:"a_form_element__label_description",html:this.html,extra:this.extra}):""}};function HM(_){const t=e.toRef(_,"id"),n=e.toRef(_,"helpText"),E=e.toRef(_,"label"),a=e.toRef(_,"labelScreenReader"),s=e.inject("isRangeProvide",!1),o=e.computed(()=>`${t.value}_label`),l=e.computed(()=>`${t.value}_help_text`),A=e.computed(()=>`${t.value}_value`),T=e.computed(()=>{if(!s.value&&(E.value||a.value))return o.value}),L=e.computed(()=>{if(!s.value)return!t_(n.value)&&n.value!==""?`${A.value} ${l.value}`:`${A.value}`}),S=e.computed(()=>{if(!s.value)return"group"});return{ariaDescribedby:L,ariaLabelledby:T,helpTextId:l,isRangeProvide:s,labelId:o,role:S,valueId:A}}function xM(_){const t=e.toRef(_,"modelValue"),n=e.toRef(_,"readonlyDefault");return{modelValueReadonly:e.computed(()=>t_(t.value)||t.value===""?n.value:t.value)}}const ct={name:"AFormReadonly",props:{alwaysTranslate:{type:Boolean,required:!1},collapsible:{type:Boolean,required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},helpText:{type:String,required:!1,default:void 0},id:{type:String,required:!0},isCollapsed:{type:Boolean,required:!1,default:void 0},isRange:{type:Boolean,required:!1,default:void 0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:void 0},labelDescription:{type:String,required:!1,default:void 0},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelValue:{type:[String,Number,Object,Array,Boolean],required:!1,default:void 0},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:void 0},valueClass:{type:[String,Object],required:!1,default:void 0},valueParentClass:{type:[String,Object],required:!1,default:void 0},valueTag:{type:String,required:!1,default:"span"}},setup(_){const t=e.toRef(_,"isRange"),{attributesToExcludeFromRender:n}=Ye(_),{ariaDescribedby:E,ariaLabelledby:a,helpTextId:s,labelId:o,role:l,valueId:A}=HM(_),{modelValueReadonly:T}=xM(_);return e.provide("isRangeProvide",t),{ariaDescribedby:E,ariaLabelledby:a,attributesToExcludeFromRender:n,helpTextId:s,labelId:o,modelValueReadonly:T,role:l,valueId:A}},render(){return e.h("div",{"aria-labelledby":this.ariaLabelledby,"aria-describedby":this.ariaDescribedby,class:"a_form_element_readonly",role:this.role,...this.attributesToExcludeFromRender},[this.label||this.labelScreenReader?e.h(qe,{id:this.id,alwaysTranslate:this.alwaysTranslate,extra:this.extra,isLabelFloat:!1,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,readonly:!0,required:!1,tag:"div",type:this.type}):"",e.h("div",{id:this.valueId,class:["a_form_element_readonly_value",this.valueParentClass]},[this.$slots.default?this.$slots.default():e.h(f_,{class:this.valueClass,extra:this.extra,html:this.modelValueReadonly,tag:this.valueTag})]),e.h(tt,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra})])}},Xi={name:"AGet",props:{keyLabel:{type:[String,Array],required:!0,info:"Weg zu Informationen. Z.B.('a[0].b.c', 'vertrag.antrag_obj.pk', ['vertrag', aloha, 'pk'])"},data:{type:[String,Number,Boolean,Array,Object,Date,Function,Symbol],required:!1,default:void 0,info:"Haupt-Objekt oder -Array, wo man sucht"},tag:{type:String,required:!1,default:"span",info:"Semantisch-relevanter HTML-Tag.(span, div, ...)"},defaultValue:{type:[String,Number,Boolean,Array,Object,Date,Function,Symbol],required:!1,default:void 0,info:"Standardwert, wenn Lodash-Funktion 'get' undefined zurückschickt"},filter:{type:String,required:!1,default:void 0},filterParameters:{type:[Object,String,Number,Boolean],required:!1,default:()=>{}},replacedWithDefault:{type:[String,Number,Boolean,Array,Object,Date,Function,Symbol],required:!1,default:void 0,info:"Wenn das Wert, das Lodash-Funktion 'get' zurückschickt, === this.replacedWithDefault, dann this.defaultValue"}},setup(){return Gt()},computed:{valueLocal(){let _=n_(this.data,this.keyLabelLocal);if(t_(_)&&(_=this.defaultValue),this.isValueEqualsWithValueThenDefaultValue(_))return this.defaultValue;if(this.filter){const t=`filter${eu(this.filter)}`;if(U_(this[t]))return this[t](_,this.filterParameters);console.warn(`filter "${t}" ist not defined`)}return _},keyLabelLocal(){return p_(this.keyLabel)?this.keyLabel.join("."):this.keyLabel}},methods:{isValueEqualsWithValueThenDefaultValue(_){if(w_(this.replacedWithDefault))return!1;let t=!1;return p_(this.replacedWithDefault)?j(this.replacedWithDefault,n=>{if(n===_)return t=!0,!1}):this.replacedWithDefault===_&&(t=!0),t}},render(){return e.withDirectives(e.h(this.tag),[[et,this.valueLocal]])}},So={name:"ALink",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},ariaLabel:{type:[String,Number,Object],required:!1,default:void 0},attributes:{type:Object,required:!1,default:()=>({})},class:{type:[String,Object],required:!1,default:void 0},classDefault:{type:String,required:!1,default:"aloha_element"},classDefaultHidden:{type:String,required:!1,default:"aloha_element__hidden"},classDisabled:{type:String,required:!1,default:"disabled"},disabled:{type:Boolean,required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},extraData:{type:[String,Number,Boolean,Array,Object,Date,Function,Symbol,null,void 0],required:!1,default:void 0},href:{type:String,required:!1,default:void 0},html:{type:[String,Number,Object,Array],required:!1,default:void 0},htmlScreenReader:{type:[String,Number,Object,Array],required:!1,default:void 0},iconAttributes:{type:Object,required:!1,default:()=>({})},iconClass:{type:[String,Object],required:!1,default:void 0},iconLeft:{type:[String,Object],required:!1,default:void 0},iconRight:{type:[String,Object],required:!1,default:void 0},iconTag:{type:String,required:!1,default:void 0},id:{type:String,required:!1,default:()=>Ee("a_link_")},isTitleHtml:{type:Boolean,required:!1,default:void 0},loading:{type:Boolean,required:!1,default:!1},loadingAlign:{type:String,required:!1,default:"right",validator:_=>["right","left"].indexOf(_)!==-1},loadingClass:{type:[String,Object],required:!1,default:"a_spinner_small"},preventKeyboardRepeat:{type:Boolean,required:!1,default:!1},safeHtml:{type:[String,Number,Object,Array],required:!1,default:void 0},safeHtmlScreenReader:{type:[String,Number,Object,Array],required:!1,default:void 0},stop:{type:Boolean,required:!1,default:void 0},target:{type:String,required:!1,default:void 0},text:{type:[String,Number,Object,Array],required:!1,default:void 0},textAfter:{type:[String,Number,Object],required:!1,default:void 0},textAriaHidden:{type:Boolean,required:!1,default:void 0},textBefore:{type:[String,Number,Object],required:!1,default:void 0},textClass:{type:String,required:!1,default:void 0},textScreenReader:{type:[String,Number,Object,Array],required:!1,default:void 0},textTag:{type:String,required:!1,default:"span"},title:{type:[String,Number,Object,Array],required:!1,default:void 0},titleAttributes:{type:Object,required:!1,default:()=>({})},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1},titleZIndex:{type:[Number,String],required:!1,default:"auto",validator:_=>ue(_)?_==="auto":fn(_)},to:{type:[Object,String],required:!1,default:void 0}},emits:["click"],setup(_,t){const{clickEmit:n}=Cc(_,t);return{clickEmit:n}},render(){return e.h(O_,{...this.$attrs,...this.$props,type:"link",onClick:this.clickEmit},this.$slots)}};function qM(_){const t=e.toRef(_,"isLast"),n=e.toRef(_,"hasDropdownActions"),E=e.toRef(_,"hasDividerBeforeDropdown"),a=e.computed(()=>t.value&&n.value),s=e.computed(()=>a.value&&!E.value);return{isDropdownActionsAfterGroup:e.computed(()=>a.value&&E.value),isDropdownActionsInGroup:s}}const WM={name:"AGroupButtonDropdownItem",props:{actionsClasses:{type:Array,required:!0},actionsIds:{type:Array,required:!0},actionsDropdown:{type:Array,required:!0},btnGroupClass:{type:[String,Array,Object],required:!1,default:"a_btn_group"},data:{type:Object,required:!0},disabled:{type:Boolean,required:!1},dropdownAttributes:{type:Object,required:!0},hasDividerBeforeDropdown:{type:Boolean,required:!0},hasDropdownActions:{type:Boolean,required:!0},isLast:{type:Boolean,required:!0}},setup(_){const{isDropdownActionsAfterGroup:t,isDropdownActionsInGroup:n}=qM(_);return{isDropdownActionsAfterGroup:t,isDropdownActionsInGroup:n}},render(){return[!!this.data.children.length&&e.h("div",{class:this.btnGroupClass},[...this.data.children.map(_=>{let t=_.classButton?_.classButton:this.actionsClasses[_.actionNotDividerIndex];_.classExtra&&(t=to({class1:t,class2:_.classExtra}));const n=_.id?_.id:this.actionsIds[_.actionNotDividerIndex],E=this.disabled||_.disabled;if(_.type==="button")return e.h(le,{..._,id:n,class:t,classButton:void 0,classExtra:void 0,disabled:E,onClick:_.callback,callback:void 0,actionNotDividerIndex:void 0,isHidden:void 0,isConfirm:void 0,callbackLocal:void 0});if(_.type==="link")return e.h(So,{..._,id:n,classButton:void 0,classExtra:void 0,disabled:E,class:t,actionNotDividerIndex:void 0,isHidden:void 0,type:void 0,isConfirm:void 0,callbackLocal:void 0});if(_.type==="template"&&_.slotName&&this.$slots[_.slotName])return this.$slots[_.slotName]({id:n,class:t,action:_})}),this.isDropdownActionsInGroup&&e.h(nE,{isHideWithoutActionAndSlot:!0,actions:this.actionsDropdown,disabled:this.disabled,...this.dropdownAttributes},this.$slots)]),this.isDropdownActionsAfterGroup&&e.h(nE,{isHideWithoutActionAndSlot:!0,actions:this.actionsDropdown,disabled:this.disabled,...this.dropdownAttributes},this.$slots)]}};function kM(_){const t=e.toRef(_,"actions"),n=e.toRef(_,"indexFirstDropdownAction"),E=e.toRef(_,"indexFirstDropdownActionMobile"),a=e.toRef(_,"minDropdownActions"),{isMobileWidth:s}=Dt(),o=e.computed(()=>Hd({actions:t.value})),l=e.computed(()=>{const f=e_(o.value);return j(f,d=>{d.classButton=to({class1:d.classButton,class2:d.class}),d.class=to({class1:d.classDropdown,class2:d.class}),delete d.classDropdown,d.classExtra&&(d.class=to({class1:d.classExtra,class2:d.class}))}),f}),A=e.computed(()=>s.value?E.value:n.value),T=({actions:f=[],minCountActions:d=0})=>{let R=0;return j(f,C=>{if(R>=d)return!1;C.type!=="divider"&&R++}),R>=d},L=e.computed(()=>{const f=e_(l.value),d={buttons:[],dropdown:[]};let R=0,C=!0;return j(f,(I,O)=>{if(R===A.value){const p=f.slice(O,f.length);if(T({actions:p,minCountActions:a.value}))return d.dropdown=f.splice(O,f.length),A.value===0&&d.buttons.push({type:"group",children:[]}),!1}I.type!=="divider"?(I.actionNotDividerIndex=R,R++,C?d.buttons.push({type:"group",children:[I]}):tE(d.buttons).children.push(I),C=!1):C=!0}),d}),S=e.computed(()=>L.value.dropdown.length>0),c=e.computed(()=>l.value.length>0);return{actionsAllWithClassesFiltered:l,actionsGrouped:L,hasActionsAllFiltered:c,hasDropdownActions:S}}const ma=e.ref({propsDefault:{actionsClasses:["a_btn a_btn_primary","a_btn a_btn_secondary"],dropdownAttributes:{},hasDividerBeforeDropdown:!0,indexFirstDropdownAction:1,indexFirstDropdownActionMobile:0,minDropdownActions:2,useActionClass:!0,useDropdownActionClass:!1}}),KM={install:(_,{propsDefault:t={}}={})=>{ma.value.propsDefault={...ma.value.propsDefault,...t}}},ji={name:"AGroupButtonDropdown",props:{actions:{type:Array,required:!1,default:()=>[]},actionsClasses:{type:Array,required:!1,default:()=>ma.value.propsDefault.actionsClasses},actionsIds:{type:Array,required:!1,default:()=>[]},btnGroupClass:{type:[String,Array,Object],required:!1,default:"a_btn_group"},disabled:{type:Boolean,required:!1},dropdownAttributes:{type:Object,required:!1,default:()=>ma.value.propsDefault.dropdownAttributes},hasDividerBeforeDropdown:{type:Boolean,required:!1,default:()=>ma.value.propsDefault.hasDividerBeforeDropdown},indexFirstDropdownAction:{type:Number,required:!1,default:()=>ma.value.propsDefault.indexFirstDropdownAction,validator:_=>_>=-1},indexFirstDropdownActionMobile:{type:Number,required:!1,default:()=>ma.value.propsDefault.indexFirstDropdownActionMobile,validator:_=>_>=-1},minDropdownActions:{type:Number,required:!1,default:()=>ma.value.propsDefault.minDropdownActions},innerFlagHasActions:{type:Boolean,required:!1}},emits:["update:innerFlagHasActions"],setup(_,{emit:t}){const{actionsAllWithClassesFiltered:n,actionsGrouped:E,hasActionsAllFiltered:a,hasDropdownActions:s}=kM(_);return e.watch(a,o=>{t("update:innerFlagHasActions",o)},{immediate:!0}),{actionsAllWithClassesFiltered:n,actionsGrouped:E,hasActionsAllFiltered:a,hasDropdownActions:s}},render(){if(this.hasActionsAllFiltered)return e.h("div",{class:"aloha_group_btn_dropdown"},[...this.actionsGrouped.buttons.map((_,t)=>e.h(WM,{btnGroupClass:this.btnGroupClass,data:_,disabled:this.disabled,actionsDropdown:this.actionsGrouped.dropdown,hasDropdownActions:this.hasDropdownActions,dropdownAttributes:this.dropdownAttributes,actionsClasses:this.actionsClasses,actionsIds:this.actionsIds,isLast:t===this.actionsGrouped.buttons.length-1,hasDividerBeforeDropdown:this.hasDividerBeforeDropdown},this.$slots))])}};function XM(_){const t=e.toRef(_,"callback"),n=e.toRef(_,"disabled"),E=e.toRef(_,"rootMargin"),a=e.toRef(_,"threshold");let s={};const o=e.ref(void 0);let l;const A=()=>{s={rootMargin:E.value,threshold:a.value}},T=()=>{l=new IntersectionObserver(c=>{const[f]=c;f.isIntersecting&&t.value()},s)},L=()=>{n.value||l.observe(o.value)},S=()=>{l&&l.disconnect()};return e.watch(n,c=>{c===!0?L():S()}),{disconnectObserver:S,sentinelRef:o,setIntersectionObserver:T,setObserverOptions:A,startObserver:L}}const jM={name:"AInfiniteScroll",props:{callback:{type:Function,required:!0},disabled:{type:Boolean,required:!1},rootMargin:{type:String,required:!1,default:"300px"},sentinelTag:{type:String,required:!1,default:"span"},tag:{type:String,required:!1,default:"div"},threshold:{type:[Number,Array],required:!1,default:.5}},setup(_){const{disconnectObserver:t,sentinelRef:n,setIntersectionObserver:E,setObserverOptions:a,startObserver:s}=XM(_);return e.onMounted(()=>{a(),E(),s()}),e.onBeforeUnmount(()=>{t()}),{sentinelRef:n}},render(){return e.h(this.tag,{},[this.$slots.default?this.$slots.default():null,e.h(this.sentinelTag,{ref:"sentinelRef",style:"height: 1px; display: block;",ariaHidden:!0})])}};function zM(_){const t=e.toRef(_,"textCopy"),n=e.ref(void 0),{addNotification:E}=To();return{copyText:async()=>{var o;let s="";if(t.value?s=t.value:(o=n.value)!=null&&o.$el&&j(n.value.$el.children,l=>{l.classList.contains("a_sr_only")||(s+=l.textContent)}),s)try{await navigator.clipboard.writeText(s),E({text:"_A_LINK_COPY_COPIED_TO_CLIPBOARD_"})}catch(l){console.error(l)}},linkRef:n}}const JM=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
|
|
155
155
|
<path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"/>
|
|
156
156
|
</svg>`,ZM={name:"ALinkCopy",props:{alwaysTranslate:{type:Boolean,required:!1},buttonOptions:{type:Object,required:!1,default:()=>({})},buttonPosition:{type:String,required:!1,default:"right",validator:_=>["right","left"].indexOf(_)!==-1},class:{type:[String,Object],required:!1,default:void 0},classDefault:{type:String,required:!1,default:"a_btn_group"},disabled:{type:Boolean,required:!1},linkOptions:{type:Object,required:!1,default:()=>({})},textCopy:{type:String,required:!1,default:void 0}},setup(){const{copyText:_,linkRef:t}=zM();return{copyText:_,linkRef:t}},render(){var t,n;const _=e.h(le,{alwaysTranslate:this.alwaysTranslate,class:"a_btn a_btn_secondary",disabled:this.disabled,iconLeft:JM,textScreenReader:"_A_LINK_COPY_BTN_TITLE_",title:"_A_LINK_COPY_BTN_TITLE_",onClick:this.copyText,...this.buttonOptions},(t=this.$slots)==null?void 0:t.button);return e.h("div",{class:[this.classDefault,this.class],role:"group"},[this.buttonPosition==="left"&&_,e.h(So,{ref:"linkRef",alwaysTranslate:this.alwaysTranslate,disabled:this.disabled,...this.linkOptions},(n=this.$slots)==null?void 0:n.link),this.buttonPosition==="right"&&_])}};function QM(_){const t=e.toRef(_,"isDataSimpleArray"),n=e.toRef(_,"item"),E=e.toRef(_,"keyChildren"),a=e.computed(()=>zt(n.value)),s=e.computed(()=>{var l;return t.value?(l=n.value)==null?void 0:l[1]:!E.value||!a.value?[]:n_(n.value,E.value)||[]}),o=e.computed(()=>p_(s.value)&&s.value.length>0);return{children:s,hasChildren:o}}function _F(_){const t=e.toRef(_,"isDataSimpleArray"),n=e.toRef(_,"item"),E=e.toRef(_,"itemIndex"),a=e.toRef(_,"keyLabel"),s=e.toRef(_,"keyLabelCallback");return{label:e.computed(()=>{var l;return t.value?p_(n.value)?((l=n.value)==null?void 0:l[0])||"":n.value:U_(s.value)?s.value({item:n.value,itemIndex:E.value}):a.value?n_(n.value,a.value):n.value})}}const eF={name:"AListItem",props:{classItem:{type:[String,Object,Array],required:!1,default:void 0},classMain:{type:[String,Object,Array],required:!1,default:void 0},item:{type:[Object,String,Number,Array],required:!0},itemIndex:{type:Number,required:!0},isDataSimpleArray:{type:Boolean,required:!1,default:!1},keyChildren:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:void 0},keyLabelCallback:{type:Function,required:!1,default:void 0},labelTag:{type:String,required:!0},listItemTag:{type:String,required:!1,default:"li"},separator:{type:String,required:!1,default:void 0},separatorHtml:{type:String,required:!1,default:void 0},tag:{type:String,required:!0}},setup(_){const{children:t,hasChildren:n}=QM(_),{label:E}=_F(_);return{children:t,hasChildren:n,label:E}},render(){return e.h(this.listItemTag,{class:this.classItem},[this.$slots.listItem?this.$slots.listItem({item:this.item,itemIndex:this.itemIndex}):e.withDirectives(e.h(this.labelTag),[[et,this.label]]),this.separator?e.h("span",{},this.separator):"",this.hasChildren?e.h(bf,{classItem:this.classItem,classMain:this.classMain,data:this.children,isDataSimpleArray:this.isDataSimpleArray,keyChildren:this.keyChildren,keyId:this.keyId,keyLabel:this.keyLabel,keyLabelCallback:this.keyLabelCallback,labelTag:this.labelTag,listItemTag:this.listItemTag,separator:this.separator,separatorHtml:this.separatorHtml,tag:this.tag},this.$slots):"",this.separatorHtml?e.withDirectives(e.h("div"),[[et,this.separatorHtml]]):""])}};function tF(_){const t=e.toRef(_,"data"),n=e.toRef(_,"isDataSimpleArray"),E=e.toRef(_,"keyChildren"),a=e.toRef(_,"keyLabel"),s=e.toRef(_,"keyLabelCallback"),o=e.toRef(_,"separator");return{plainText:e.computed(()=>zs(t.value,{isHtml:!1,keyLabel:a.value,keyLabelCallback:s.value,keyChildren:E.value,isSimpleArray:n.value,separator:o.value}))}}function nF(_){const t=e.toRef(_,"tag"),n=e.toRef(_,"isHtml");return{tagLocal:e.computed(()=>!n.value&&(t.value==="ul"||t.value==="ol")?"span":t.value)}}const bf={name:"AList",props:{classItem:{type:[String,Object,Array],required:!1,default:void 0},classMain:{type:[String,Object,Array],required:!1,default:void 0},data:{type:Array,required:!1,default:()=>[]},isDataSimpleArray:{type:Boolean,required:!1,default:!1},isHtml:{type:Boolean,required:!1,default:!0},keyChildren:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:void 0},keyLabelCallback:{type:Function,required:!1,default:void 0},labelTag:{type:String,required:!1,default:"span"},listItemTag:{type:String,required:!1,default:"li"},separator:{type:String,required:!1,default:void 0},separatorHtml:{type:String,required:!1,default:void 0},tag:{type:String,required:!1,default:"ul"}},setup(_){const{tagLocal:t}=nF(_),{plainText:n}=tF(_);return{plainText:n,tagLocal:t}},render(){return this.isHtml?e.h(this.tag,{class:this.classMain},[this.data.map((_,t)=>{const n=this.keyId?n_(_,this.keyId):t;return e.h(eF,{key:n,classItem:this.classItem,classMain:this.classMain,isDataSimpleArray:this.isDataSimpleArray,item:_,itemIndex:t,keyChildren:this.keyChildren,keyId:this.keyId,keyLabel:this.keyLabel,keyLabelCallback:this.keyLabelCallback,labelTag:this.labelTag,listItemTag:this.listItemTag,separator:this.separator,separatorHtml:this.separatorHtml,tag:this.tag},this.$slots)})]):e.h(this.tagLocal,null,this.plainText)}};function EF(_){const t=e.toRef(_,"size");return{classSize:e.computed(()=>{if(t.value)return`a_spinner_size_${t.value}`})}}const Jr={name:"ASpinner",props:{alwaysTranslate:{type:Boolean,required:!1},ariaLabel:{type:[String,Number,Object],required:!1,default:()=>_n.value.propsDefault.ariaLabel},extra:{type:Object,required:!1,default:()=>_n.value.propsDefault.extra},safeHtml:{type:String,required:!1,default:()=>_n.value.propsDefault.safeHtml},size:{type:[String,Number],required:!1,default:()=>_n.value.propsDefault.size,validator:_=>["1","2","3","4","5","6","7"].indexOf(`${_}`)!==-1},tag:{type:String,required:!1,default:()=>_n.value.propsDefault.tag}},setup(_){const{ariaLabelAttributes:t}=tT(_),{classSize:n}=EF(_);return{ariaLabelAttributes:t,classSize:n}},render(){return e.h(this.tag,{class:[_n.value.propsDefault.class,this.classSize],role:"status",innerHTML:this.safeHtml,...this.ariaLabelAttributes})}},Pa=e.ref({propsDefault:{align:"center",extra:void 0,size:6,tag:"div",text:"_A_LOADING_LOADING_",textAlign:"right"}}),aF={install:(_,{propsDefault:t={}}={})=>{Pa.value.propsDefault={...Pa.value.propsDefault,...t}}},wT={name:"ALoading",inheritAttrs:!1,props:{align:{type:String,required:!1,default:()=>Pa.value.propsDefault.align,validator:_=>["left","center","right"].indexOf(_)!==-1},alwaysTranslate:{type:Boolean,required:!1},extra:{type:Object,required:!1,default:()=>Pa.value.propsDefault.extra},isLoading:{type:Boolean,required:!1,default:void 0},size:{type:[String,Number],required:!1,default:()=>Pa.value.propsDefault.size,validator:_=>["1","2","3","4","5","6","7"].indexOf(`${_}`)!==-1},spinnerClass:{type:[String,Object],required:!1,default:void 0},spinnerSafeHtml:{type:String,required:!1,default:()=>_n.value.propsDefault.safeHtml},spinnerTag:{type:String,required:!1,default:()=>_n.value.propsDefault.tag},tag:{type:String,required:!1,default:()=>Pa.value.propsDefault.tag},text:{type:String,required:!1,default:()=>Pa.value.propsDefault.text},textAlign:{type:String,required:!1,default:()=>Pa.value.propsDefault.textAlign,validator:_=>["left","right"].indexOf(_)!==-1}},setup(_){const{classAlign:t,classForBox:n,classTextSize:E}=Ud(_);return{classAlign:t,classForBox:n,classTextSize:E}},render(){const _=this.textAlign==="left",t=e.h(f_,{alwaysTranslate:this.alwaysTranslate,tag:"span",class:["a_cloak__text",_?"a_cloak__text_left":"a_cloak__text_right",this.classTextSize],text:this.text,extra:this.extra});return[this.$slots.default&&this.$slots.default(),this.isLoading&&e.h(this.tag,{...this.$attrs,role:"status",tabindex:-1,class:["a_loading",this.classAlign]},[e.h("div",{class:["a_cloak__box",this.classForBox]},[_?t:"",e.h(Jr,{alwaysTranslate:this.alwaysTranslate,class:["a_cloak__spinner",this.spinnerClass],"aria-hidden":"true",safeHtml:this.spinnerSafeHtml,size:this.size,tag:this.spinnerTag}),_?"":t])])]}};function Yf(_){const t=e.toRef(_,"selectorClose"),n=e.toRef(_,"selectorCloseIds"),E=e.computed(()=>{const o=[];return n.value&&(ue(n.value)?o.push(`#${n.value}`):p_(n.value)&&j(n.value,l=>{o.push(`#${l}`)})),t.value&&(ue(t.value)?o.push(t.value):p_(t.value)&&o.push(...t.value)),o}),a=({selector:o})=>{const l=document.querySelector(o);return l?(l.focus(),!0):!1};return{setFocusByDestroy:()=>{if(!E.value.length)return;const o=e_(E.value);setTimeout(()=>{j(o,l=>{if(a({selector:l}))return!1})},300)}}}const uo=e.ref({});function HT(_){const t=e.toRef(_,"buttonToggleProps"),n=e.toRef(_,"canChangeBodyClass"),E=e.toRef(_,"menuId"),{setFocusByDestroy:a}=Yf(_),s=()=>{n.value&&(document.body.classList.add("a_menu__wrapper_open"),document.body.classList.remove("a_menu__wrapper_close")),uo.value[E.value]=!0},o=()=>{n.value&&(document.body.classList.add("a_menu__wrapper_close"),document.body.classList.remove("a_menu__wrapper_open")),uo.value[E.value]=!1},l=()=>{n.value&&(document.body.classList.remove("a_menu__wrapper_close"),document.body.classList.remove("a_menu__wrapper_open"))},A=({isOpen:c}={})=>{w_(c)?uo.value[E.value]?o():s():c?s():o()},T=e.computed(()=>uo.value[E.value]),L=()=>{A(),setTimeout(()=>{var c;if(T.value){const f=((c=t.value)==null?void 0:c.id)||`${E.value}__btn_toggle`,d=document.querySelector(`#${f}`);d&&d.focus()}else a()})};return{btnToggleTitle:e.computed(()=>uo.value[E.value]?"_A_MENU_2_BTN_CLOSE_":"_A_MENU_2_BTN_OPEN_"),closeMenu:o,isMenuOpen:T,removeBodyClasses:l,toggleMenu:A,toggleMenuObButton:L}}const gf={name:"AMenuButtonToggle",props:{buttonToggleProps:{type:Object,required:!1,default:()=>({})},canChangeBodyClass:{type:Boolean,required:!1,default:!0},class:{type:[String,Object],required:!1,default:"a_btn a_btn_secondary"},insideMenu:{type:Boolean,required:!1},menuId:{type:String,required:!0},onlyMobile:{type:Boolean,required:!1,default:!1},selectorClose:{type:[String,Array],required:!1,default:void 0},selectorCloseIds:{type:[String,Array],required:!1,default:void 0}},setup(_){const{btnToggleTitle:t,isMenuOpen:n,toggleMenuObButton:E}=HT(_);return{btnToggleTitle:t,isMenuOpen:n,toggleMenuObButton:E}},render(){return e.h(le,{id:`${this.menuId}__btn_toggle`,class:["a_menu__btn_toggle",this.class,{a_menu__btn_toggle_open:this.isMenuOpen,a_menu__btn_toggle_close:!this.isMenuOpen,a_menu__btn_toggle_inside_menu:this.insideMenu,a_menu__btn_toggle_outside_menu:!this.insideMenu,a_menu__btn_toggle_only_mobile:this.onlyMobile}],type:"button",title:this.btnToggleTitle,textScreenReader:this.btnToggleTitle,onClick:this.toggleMenuObButton,...this.buttonToggleProps},()=>[e.h("span",{ariaHidden:!0,class:"a_menu__btn_toggle__bar a_menu__btn_toggle__bar_1 aloha_element__ml_0"}),e.h("span",{ariaHidden:!0,class:"a_menu__btn_toggle__bar a_menu__btn_toggle__bar_2 aloha_element__ml_0"}),e.h("span",{ariaHidden:!0,class:"a_menu__btn_toggle__bar a_menu__btn_toggle__bar_3 aloha_element__ml_0"})])}};function rF(){const _=e.inject("togglePanel"),t=({parentId:E})=>{_({parentId:E})};return{goBack:t,goBackKeydown:({$event:E,parentId:a})=>{(E.keyCode===E_.enter||E.keyCode===E_.space)&&(t({parentId:a}),E.stopPropagation(),E.preventDefault())}}}function sF(_){const t=e.toRef(_,"dataKeyById"),n=e.toRef(_,"panelParentsOpen");return{breadcrumbsItems:e.computed(()=>{if(!n.value.length)return[];const a=[];let s="_A_MENU_2_MAIN_MENU_";return j(n.value,(o,l)=>{a.push({isFirst:l===0,label:s,panelParentId:o}),s=n_(t.value,`${o}.${te}`)}),a.push({panelParentId:void 0,label:s}),a})}}function oF({breadcrumbsItems:_=e.computed(()=>[]),breadcrumbsTruncatedOffset:t=e.ref(0)}){const n=e.ref([]),E=e.ref([]),a=e.ref(0),s=e.ref(void 0),o=e.ref(!1),l=e.ref(0),A=e.ref([]),T=()=>{if(s.value<0){o.value=!0;return}E.value.unshift(_.value[s.value]),s.value--},L=()=>{n.value=_.value.slice(0,s.value+1),o.value=!0},S=()=>{if(E.value.length<=1||l.value+t.value<=a.value){L();return}E.value.splice(0,1),s.value++,l.value-=tE(A.value),A.value.pop(),S()};return{breadcrumbsItemsDropdown:n,breadcrumbsItemsTruncated:E,isRenderedAll:o,renderItem:d=>{const R=d.offsetWidth;l.value+=R,A.value.push(R),l.value>=a.value?S():T()},renderParent:d=>{s.value=_.value.length-1,T(),a.value=d.offsetWidth}}}const co=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-three-dots" viewBox="0 0 16 16">
|
|
157
157
|
<path d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/>
|
|
@@ -193,7 +193,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
193
193
|
<path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/>
|
|
194
194
|
</svg>`,_0=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-up-fill" viewBox="0 0 16 16">
|
|
195
195
|
<path d="m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z"/>
|
|
196
|
-
</svg>`,Zr=e.ref({propsDefault:{borderType:"bordered"},config:{isHtmlTitleSort:!1}}),e0={install:(_,{propsDefault:t={},config:n={}}={})=>{Zr.value.propsDefault={...Zr.value.propsDefault,...t},Zr.value.config={...Zr.value.config,...n}}};function t0(_){const t=e.toRef(_,"column"),n=e.toRef(_,"columnIndex"),E=e.toRef(_,"disabledSort"),a=e.toRef(_,"isSortingMultiColumn"),s=e.toRef(_,"modelSort"),o=e.toRef(_,"showFirstSortingSequenceNumber"),l=e.inject("changeModelSort"),A=e.inject("tableId"),T=e.computed(()=>t.value.sortId),L=e.computed(()=>!!T.value),S=e.computed(()=>s.value.indexOf(T.value)),c=e.computed(()=>s.value.indexOf(`-${T.value}`)),f=e.computed(()=>S.value!==-1),d=e.computed(()=>c.value!==-1),R=e.computed(()=>L.value&&(f.value||d.value)),C=e.computed(()=>{if(L.value){let Y="none";return f.value?Y="ascending":d.value&&(Y="descending"),{"aria-sort":Y}}return{}}),I=e.computed(()=>e.h(_e,{icon:_0,class:"a_table__th__sort__icon a_table__th__sort__icon_up"})),O=e.computed(()=>e.h(_e,{icon:Qw,class:"a_table__th__sort__icon a_table__th__sort__icon_down"})),p=e.computed(()=>{const Y=[];return L.value&&(d.value||Y.push(I.value),f.value||Y.push(O.value)),Y}),U=({$event:Y})=>{E.value||l({$event:Y,sortId:T.value})},D=e.computed(()=>`${A.value}_th_${n.value}_screen_reader`),V=e.computed(()=>{var Y;return L.value?{type:"button",disabled:E.value,isTitleHtml:((Y=Zr.value.config)==null?void 0:Y.isHtmlTitleSort)||!1,"aria-describedby":D.value,onClick:U}:{tag:"span"}}),B=e.computed(()=>{if(!(!a.value&&!R.value)&&!(s.value.length<=1&&!o.value)){if(S.value!==-1)return S.value+1;if(c.value!==-1)return c.value+1}}),y=e.computed(()=>{const Y=[];return L.value&&(Y.push("_A_TABLE_SORT_TITLE_"),a.value&&Y.push("_A_TABLE_SORT_TITLE_MULTI_COLUMN_")),Y});return{ariaSort:C,attributesForButtonSort:V,columnTextScreenReaderId:D,iconsSortable:p,isSortable:L,isSorting:R,sequenceNumberSort:B,titlesSort:y}}const zT={name:"ATableHeaderTh",props:{column:{type:Object,required:!0},columnGroupNames:{type:Array,required:!1,default:void 0},columnIndex:{type:Number,required:!0},columnIndexDraggable:{type:Number,required:!1,default:-1},disabledSort:{type:Boolean,required:!1},hasMultipleActions:{type:Boolean,required:!0},isSortingMultiColumn:{type:Boolean,required:!1},modelSort:{type:Array,required:!1},showFirstSortingSequenceNumber:{type:Boolean,required:!1},sortingSequenceNumberClass:{type:[String,Object],required:!1}},emits:["dragendParent","dragstartParent","dragenterParent","dragleaveParent"],inject:["changeModelSort","isColumnsDnd","isLoadingOptions","isLoadingTable"],setup(_,t){const{columnsStyles:n}=TR(_),{attributesForRoot:E,isLocked:a,root:s}=tR(_,t,{classOverString:"a_table__th_over",inDropdown:!1}),{ariaSort:o,attributesForButtonSort:l,columnTextScreenReaderId:A,iconsSortable:T,isSortable:L,isSorting:S,sequenceNumberSort:c,titlesSort:f}=t0(_),{attributesForTh:d,titlesLocal:R}=Jw(_,{ariaSort:o,attributesForRoot:E,columnsStyles:n,isLocked:a,isSorting:S,titlesSort:f});return{attributesForButtonSort:l,attributesForTh:d,columnTextScreenReaderId:A,columnsStyles:n,iconsSortable:T,isSortable:L,root:s,sequenceNumberSort:c,titlesLocal:R,titlesSort:f}},render(){return e.h("div",this.attributesForTh,[e.h("div",{class:["a_table__cell__child"]},[this.columnGroupNames&&e.h(f_,{html:this.columnGroupNames,tag:"span",class:"a_sr_only"}),e.h(f_,{id:this.columnTextScreenReaderId,text:this.titlesLocal,tag:"span",class:"a_sr_only",ariaHidden:!0}),e.h(le,{class:["a_table__th__btn",this.column.class,this.column.classHeader,{"a_btn a_btn_link a_table__th__btn_sort":this.isSortable,a_table__th__btn_sequence:this.sequenceNumberSort}],iconLeft:this.column.icon,iconClass:"a_table__th__icon",extra:this.column.extra,title:this.titlesLocal,textScreenReader:this.column.textScreenReader||void 0,...this.attributesForButtonSort},()=>[this.column.label&&e.h(f_,{html:this.column.label,tag:"span",extra:this.column.extra,class:"a_table__th__text aloha_element__ml_0",ariaHidden:!!this.column.textScreenReader}),this.isSortable&&e.h("span",{class:"a_table__th__sort__box aloha_element__ml_0"},[this.sequenceNumberSort&&e.h("span",{class:["a_table__th__sort__sequence_num",this.sortingSequenceNumberClass]},this.sequenceNumberSort),e.h("span",{class:"a_table__th__sort__icons"},[...this.iconsSortable])])])])])}},n0={name:"ATableHeader",components:{ATableHeaderTh:zT,ATableHeaderThAction:jT},props:{areAllRowsSelected:{type:Boolean,required:!0},areAllVisibleRowsSelected:{type:Boolean,required:!0},areSomeRowsSelected:{type:Boolean,required:!0},disabledOptions:{type:Boolean,required:!1},disabledSort:{type:Boolean,required:!1},hasMultipleActions:{type:Boolean,required:!0},isRowActionsStickyLocal:{type:Boolean,required:!0},isSortingMultiColumn:{type:Boolean,required:!1},modelSort:{type:Array,required:!0},rowsLocalLength:{type:Number,required:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1},sortingSequenceNumberClass:{type:[String,Object],required:!1}},emits:["setSelectedRowsIndexes"],inject:["changeColumnsOrdering","columnsFilteredForRender","isActionColumnVisible","isMobile","isMultipleActionsActive"],setup(_,t){const{columnIndexDraggable:n,dragstart:E,dragenter:a,dragleave:s,dragend:o,drop:l,isDragstart:A,root:T}=iR({classOver:"a_table__th_over",classOverRight:"a_table__th_over_right",classOverParent:"a_table__th",inHeader:!0}),{isCheckboxDisabled:L,isCheckboxIndeterminate:S,labelCheckbox:c,modelValueCheckboxLocal:f,toggleCheckbox:d}=AR(_,t);return{columnIndexDraggable:n,dragend:o,dragenter:a,dragleave:s,dragstart:E,drop:l,isCheckboxDisabled:L,isCheckboxIndeterminate:S,isDragstart:A,labelCheckbox:c,modelValueCheckboxLocal:f,root:T,toggleCheckbox:d}},render(){return this.isMobile?null:e.h("div",{ref:"root",role:"rowgroup",class:["a_table__head",{a_table__head_dragstart:this.isDragstart}]},[e.h("div",{class:"a_table__row a_table__head__row",role:"row",onDrop:this.drop},[this.isMultipleActionsActive&&e.h("div",{role:"columnheader",class:"a_table__th a_table__cell a_table__cell_checkbox",style:"width: 50px; min-width: 50px; max-width: 50px;","aria-colindex":1},[e.h(kr,{isWidthAuto:!0,modelValue:this.modelValueCheckboxLocal,indeterminate:this.isCheckboxIndeterminate,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),this.columnsFilteredForRender.map((_,t)=>e.h(zT,{ref:"th",column:_,columnIndex:t,columnIndexDraggable:this.columnIndexDraggable,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSort,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onDragstartParent:this.dragstart,onDragenterParent:this.dragenter,onDragleaveParent:this.dragleave,onDragendParent:this.dragend})),this.isActionColumnVisible&&e.h(jT,{disabledOptions:this.disabledOptions,isRowActionsStickyLocal:this.isRowActionsStickyLocal})])])}};function E0(_,{emit:t},{nextAvailableRowIndex:n,previousAvailableRowIndex:E,rowNumber:a=e.computed(()=>0)}){const s=e.toRef(_,"countAllRows"),o=e.toRef(_,"limitPagination"),l=e.toRef(_,"offsetPagination"),A=e.toRef(_,"rowIndex"),T=e.toRef(_,"usePagination"),L=e.computed(()=>a.value<=1||t_(E.value)),S=e.computed(()=>a.value>=s.value||t_(n.value));return{disabledBtnArrowLeft:L,disabledBtnArrowRight:S,toNextRow:()=>{S.value||(T.value?(A.value+1)%o.value===0?(t("update:offset",{offset:l.value+o.value,reload:!1}),t("togglePreview",{rowIndex:0})):t("togglePreview",{rowIndex:n.value}):t("togglePreview",{rowIndex:n.value}))},toPreviousRow:()=>{L.value||(T.value?(A.value+1)%o.value===1?(t("update:offset",{offset:l.value-o.value,reload:!1}),t("togglePreview",{rowIndex:o.value-1})):t("togglePreview",{rowIndex:E.value}):t("togglePreview",{rowIndex:E.value}))}}}function a0(){const _=e.inject("tableId");return{idLocal:e.computed(()=>aR({tableId:_.value}))}}function r0({emit:_},{previewRef:t=e.ref(void 0)}){return{mousedown:({clientWidth:s})=>{_("mousedownResizePreviewRight",{clientWidth:s})},mousemove:({clientX:s})=>{_("mousemoveResizePreviewRight",{clientX:s,previewRef:t.value})},mouseup:()=>{_("mouseupResizePreviewRight",{previewRightWidth:n_(t,"value.offsetWidth")})}}}const LR=e.ref(void 0);function SR(){return{previewRef:LR,removePreviewRef:()=>{LR.value=void 0}}}function s0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"disabledPreviewRowCallback"),E=e.toRef(_,"offsetPagination"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"rows"),o=e.toRef(_,"usePagination"),{filterCurrency:l}=Gt(),A=e.computed(()=>o.value?(E.value||0)+a.value+1:a.value+1),T=e.computed(()=>s.value[a.value]),L=e.computed(()=>{let d=null;if(!U_(n.value))d=a.value===s.value.length-1?null:a.value++;else for(let R=a.value+1;R<s.value.length;R++){const C=s.value[R];if(!n.value({row:C,rowIndex:R})){d=R;break}}return d}),S=e.computed(()=>{let d=null;if(!U_(n.value))d=a.value===0?null:a.value--;else for(let R=a.value-1;R>=0;R--){const C=s.value[R];if(!n.value({row:C,rowIndex:R})){d=R;break}}return d}),c=e.computed(()=>l(t.value,{suffix:"",digits:0})),f=e.computed(()=>l(A.value,{suffix:"",digits:0}));return{countAllRowsFormatted:c,currentRow:T,nextAvailableRowIndex:L,previousAvailableRowIndex:S,rowNumber:A,rowNumberFormatted:f}}const o0=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16">
|
|
196
|
+
</svg>`,Zr=e.ref({propsDefault:{borderType:"bordered"},config:{isHtmlTitleSort:!1}}),e0={install:(_,{propsDefault:t={},config:n={}}={})=>{Zr.value.propsDefault={...Zr.value.propsDefault,...t},Zr.value.config={...Zr.value.config,...n}}};function t0(_){const t=e.toRef(_,"column"),n=e.toRef(_,"columnIndex"),E=e.toRef(_,"disabledSort"),a=e.toRef(_,"isSortingMultiColumn"),s=e.toRef(_,"modelSort"),o=e.toRef(_,"showFirstSortingSequenceNumber"),l=e.inject("changeModelSort"),A=e.inject("tableId"),T=e.computed(()=>t.value.sortId),L=e.computed(()=>!!T.value),S=e.computed(()=>s.value.indexOf(T.value)),c=e.computed(()=>s.value.indexOf(`-${T.value}`)),f=e.computed(()=>S.value!==-1),d=e.computed(()=>c.value!==-1),R=e.computed(()=>L.value&&(f.value||d.value)),C=e.computed(()=>{if(L.value){let Y="none";return f.value?Y="ascending":d.value&&(Y="descending"),{"aria-sort":Y}}return{}}),I=e.computed(()=>e.h(_e,{icon:_0,class:"a_table__th__sort__icon a_table__th__sort__icon_up"})),O=e.computed(()=>e.h(_e,{icon:Qw,class:"a_table__th__sort__icon a_table__th__sort__icon_down"})),p=e.computed(()=>{const Y=[];return L.value&&(d.value||Y.push(I.value),f.value||Y.push(O.value)),Y}),U=({$event:Y})=>{E.value||l({$event:Y,sortId:T.value})},D=e.computed(()=>`${A.value}_th_${n.value}_screen_reader`),V=e.computed(()=>{var Y;return L.value?{type:"button",disabled:E.value,isTitleHtml:((Y=Zr.value.config)==null?void 0:Y.isHtmlTitleSort)||!1,"aria-describedby":D.value,onClick:U}:{tag:"span"}}),B=e.computed(()=>{if(!(!a.value&&!R.value)&&!(s.value.length<=1&&!o.value)){if(S.value!==-1)return S.value+1;if(c.value!==-1)return c.value+1}}),y=e.computed(()=>{const Y=[];return L.value&&(Y.push("_A_TABLE_SORT_TITLE_"),a.value&&Y.push("_A_TABLE_SORT_TITLE_MULTI_COLUMN_")),Y});return{ariaSort:C,attributesForButtonSort:V,columnTextScreenReaderId:D,iconsSortable:p,isSortable:L,isSorting:R,sequenceNumberSort:B,titlesSort:y}}const zT={name:"ATableHeaderTh",props:{column:{type:Object,required:!0},columnGroupNames:{type:Array,required:!1,default:void 0},columnIndex:{type:Number,required:!0},columnIndexDraggable:{type:Number,required:!1,default:-1},disabledSort:{type:Boolean,required:!1},hasMultipleActions:{type:Boolean,required:!0},isSortingMultiColumn:{type:Boolean,required:!1},modelSort:{type:Array,required:!1},showFirstSortingSequenceNumber:{type:Boolean,required:!1},sortingSequenceNumberClass:{type:[String,Object],required:!1}},emits:["dragendParent","dragstartParent","dragenterParent","dragleaveParent"],inject:["changeModelSort","isColumnsDnd","isLoadingOptions","isLoadingTable"],setup(_,t){const{columnsStyles:n}=TR(_),{attributesForRoot:E,isLocked:a,root:s}=tR(_,t,{classOverString:"a_table__th_over",inDropdown:!1}),{ariaSort:o,attributesForButtonSort:l,columnTextScreenReaderId:A,iconsSortable:T,isSortable:L,isSorting:S,sequenceNumberSort:c,titlesSort:f}=t0(_),{attributesForTh:d,titlesLocal:R}=Jw(_,{ariaSort:o,attributesForRoot:E,columnsStyles:n,isLocked:a,isSorting:S,titlesSort:f});return{attributesForButtonSort:l,attributesForTh:d,columnTextScreenReaderId:A,columnsStyles:n,iconsSortable:T,isSortable:L,root:s,sequenceNumberSort:c,titlesLocal:R,titlesSort:f}},render(){return e.h("div",this.attributesForTh,[e.h("div",{class:["a_table__cell__child"]},[this.columnGroupNames&&e.h(f_,{html:this.columnGroupNames,tag:"span",class:"a_sr_only"}),e.h(f_,{id:this.columnTextScreenReaderId,text:this.titlesLocal,tag:"span",class:"a_sr_only",ariaHidden:!0}),e.h(le,{class:["a_table__th__btn",this.column.class,this.column.classHeader,{"a_btn a_btn_link a_table__th__btn_sort":this.isSortable,a_table__th__btn_sequence:this.sequenceNumberSort}],iconLeft:this.column.icon,iconClass:"a_table__th__icon",extra:this.column.extra,title:this.titlesLocal,textScreenReader:this.column.textScreenReader||void 0,...this.attributesForButtonSort},()=>[this.column.headerSlot&&this.$slots[this.column.headerSlot]?this.$slots[this.column.headerSlot]({column:this.column,columnIndex:this.columnIndex}):this.column.label&&e.h(f_,{html:this.column.label,tag:"span",extra:this.column.extra,class:"a_table__th__text aloha_element__ml_0",ariaHidden:!!this.column.textScreenReader}),this.isSortable&&e.h("span",{class:"a_table__th__sort__box aloha_element__ml_0"},[this.sequenceNumberSort&&e.h("span",{class:["a_table__th__sort__sequence_num",this.sortingSequenceNumberClass]},this.sequenceNumberSort),e.h("span",{class:"a_table__th__sort__icons"},[...this.iconsSortable])])])])])}},n0={name:"ATableHeader",components:{ATableHeaderTh:zT,ATableHeaderThAction:jT},props:{areAllRowsSelected:{type:Boolean,required:!0},areAllVisibleRowsSelected:{type:Boolean,required:!0},areSomeRowsSelected:{type:Boolean,required:!0},disabledOptions:{type:Boolean,required:!1},disabledSort:{type:Boolean,required:!1},hasMultipleActions:{type:Boolean,required:!0},isRowActionsStickyLocal:{type:Boolean,required:!0},isSortingMultiColumn:{type:Boolean,required:!1},modelSort:{type:Array,required:!0},rowsLocalLength:{type:Number,required:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1},sortingSequenceNumberClass:{type:[String,Object],required:!1}},emits:["setSelectedRowsIndexes"],inject:["changeColumnsOrdering","columnsFilteredForRender","isActionColumnVisible","isMobile","isMultipleActionsActive"],setup(_,t){const{columnIndexDraggable:n,dragstart:E,dragenter:a,dragleave:s,dragend:o,drop:l,isDragstart:A,root:T}=iR({classOver:"a_table__th_over",classOverRight:"a_table__th_over_right",classOverParent:"a_table__th",inHeader:!0}),{isCheckboxDisabled:L,isCheckboxIndeterminate:S,labelCheckbox:c,modelValueCheckboxLocal:f,toggleCheckbox:d}=AR(_,t);return{columnIndexDraggable:n,dragend:o,dragenter:a,dragleave:s,dragstart:E,drop:l,isCheckboxDisabled:L,isCheckboxIndeterminate:S,isDragstart:A,labelCheckbox:c,modelValueCheckboxLocal:f,root:T,toggleCheckbox:d}},render(){return this.isMobile?null:e.h("div",{ref:"root",role:"rowgroup",class:["a_table__head",{a_table__head_dragstart:this.isDragstart}]},[e.h("div",{class:"a_table__row a_table__head__row",role:"row",onDrop:this.drop},[this.isMultipleActionsActive&&e.h("div",{role:"columnheader",class:"a_table__th a_table__cell a_table__cell_checkbox",style:"width: 50px; min-width: 50px; max-width: 50px;","aria-colindex":1},[e.h(kr,{isWidthAuto:!0,modelValue:this.modelValueCheckboxLocal,indeterminate:this.isCheckboxIndeterminate,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),this.columnsFilteredForRender.map((_,t)=>e.h(zT,{ref:"th",column:_,columnIndex:t,columnIndexDraggable:this.columnIndexDraggable,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSort,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onDragstartParent:this.dragstart,onDragenterParent:this.dragenter,onDragleaveParent:this.dragleave,onDragendParent:this.dragend},this.$slots)),this.isActionColumnVisible&&e.h(jT,{disabledOptions:this.disabledOptions,isRowActionsStickyLocal:this.isRowActionsStickyLocal})])])}};function E0(_,{emit:t},{nextAvailableRowIndex:n,previousAvailableRowIndex:E,rowNumber:a=e.computed(()=>0)}){const s=e.toRef(_,"countAllRows"),o=e.toRef(_,"limitPagination"),l=e.toRef(_,"offsetPagination"),A=e.toRef(_,"rowIndex"),T=e.toRef(_,"usePagination"),L=e.computed(()=>a.value<=1||t_(E.value)),S=e.computed(()=>a.value>=s.value||t_(n.value));return{disabledBtnArrowLeft:L,disabledBtnArrowRight:S,toNextRow:()=>{S.value||(T.value?(A.value+1)%o.value===0?(t("update:offset",{offset:l.value+o.value,reload:!1}),t("togglePreview",{rowIndex:0})):t("togglePreview",{rowIndex:n.value}):t("togglePreview",{rowIndex:n.value}))},toPreviousRow:()=>{L.value||(T.value?(A.value+1)%o.value===1?(t("update:offset",{offset:l.value-o.value,reload:!1}),t("togglePreview",{rowIndex:o.value-1})):t("togglePreview",{rowIndex:E.value}):t("togglePreview",{rowIndex:E.value}))}}}function a0(){const _=e.inject("tableId");return{idLocal:e.computed(()=>aR({tableId:_.value}))}}function r0({emit:_},{previewRef:t=e.ref(void 0)}){return{mousedown:({clientWidth:s})=>{_("mousedownResizePreviewRight",{clientWidth:s})},mousemove:({clientX:s})=>{_("mousemoveResizePreviewRight",{clientX:s,previewRef:t.value})},mouseup:()=>{_("mouseupResizePreviewRight",{previewRightWidth:n_(t,"value.offsetWidth")})}}}const LR=e.ref(void 0);function SR(){return{previewRef:LR,removePreviewRef:()=>{LR.value=void 0}}}function s0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"disabledPreviewRowCallback"),E=e.toRef(_,"offsetPagination"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"rows"),o=e.toRef(_,"usePagination"),{filterCurrency:l}=Gt(),A=e.computed(()=>o.value?(E.value||0)+a.value+1:a.value+1),T=e.computed(()=>s.value[a.value]),L=e.computed(()=>{let d=null;if(!U_(n.value))d=a.value===s.value.length-1?null:a.value++;else for(let R=a.value+1;R<s.value.length;R++){const C=s.value[R];if(!n.value({row:C,rowIndex:R})){d=R;break}}return d}),S=e.computed(()=>{let d=null;if(!U_(n.value))d=a.value===0?null:a.value--;else for(let R=a.value-1;R>=0;R--){const C=s.value[R];if(!n.value({row:C,rowIndex:R})){d=R;break}}return d}),c=e.computed(()=>l(t.value,{suffix:"",digits:0})),f=e.computed(()=>l(A.value,{suffix:"",digits:0}));return{countAllRowsFormatted:c,currentRow:T,nextAvailableRowIndex:L,previousAvailableRowIndex:S,rowNumber:A,rowNumberFormatted:f}}const o0=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16">
|
|
197
197
|
<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>
|
|
198
198
|
</svg>`,i0=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16">
|
|
199
199
|
<path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8"/>
|
|
@@ -203,7 +203,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
203
203
|
<path d="M7 2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zM2 1a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm0 8a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2zm.854-3.646a.5.5 0 0 1-.708 0l-1-1a.5.5 0 1 1 .708-.708l.646.647 1.646-1.647a.5.5 0 1 1 .708.708zm0 8a.5.5 0 0 1-.708 0l-1-1a.5.5 0 0 1 .708-.708l.646.647 1.646-1.647a.5.5 0 0 1 .708.708zM7 10.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 8a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5"/>
|
|
204
204
|
</svg>`,O0={name:"ATableTopPanel",props:{additionalSortingColumns:{type:Array,required:!1,default:()=>[]},areAllRowsSelected:{type:Boolean,required:!0},areSomeRowsSelected:{type:Boolean,required:!0},closeMultipleActionsActive:{type:Function,required:!0},countAllRows:{type:Number,required:!0},disabledActions:{type:Boolean,required:!0},disabledMultipleActions:{type:Boolean,required:!0},disabledSort:{type:Boolean,required:!1},disabledViews:{type:Boolean,required:!0},extra:{type:Object,required:!1,default:void 0},hasViews:{type:Boolean,required:!0},isLabelVisible:{type:Boolean,required:!1},isLoadingMultipleActions:{type:Boolean,required:!1},isQuickSearch:{type:Boolean,required:!1},isSortingMultiColumn:{type:Boolean,required:!1,default:!1},label:{type:[String,Number],required:!1,default:""},labelClass:{type:[String,Object],required:!1,default:void 0},labelTag:{type:String,required:!0},modelQuickSearch:{type:String,required:!0},modelSort:{type:Array,required:!1},modelView:{type:String,required:!1,default:void 0},multipleActions:{type:Array,required:!0},selectedRows:{type:Array,required:!0},showCount:{type:Boolean,required:!1,default:!0},tableActions:{type:Array,required:!0},tableActionsIndexFirstDropdownAction:{type:Number,required:!1,default:-1},tableActionsIndexFirstDropdownActionMobile:{type:Number,required:!1,default:0},useAdditionalSorting:{type:Boolean,required:!1,default:!0},useViewSlot:{type:Boolean,required:!1},viewCurrent:{type:Object,required:!1,default:void 0},views:{type:Array,required:!0}},emits:["toggleBtnAllRows","toggleMultipleActionsActive","updateModelQuickSearch","updateViewCurrent"],inject:["isMultipleActionsActive","rowsLocalAll","tableId"],setup(_,t){const{tableLabelId:n}=R0(),{filterCurrency:E}=Gt(),{buttonMultipleId:a,currentMultipleActions:s,multipleActionsFiltered:o,onCancelMultipleActions:l,onOpenModalMultipleActions:A,tableActionsFiltered:T}=d0(_,t),{isBtnMultipleActionDisabled:L,isBtnSelectAllRowsDisabled:S,multiplePanelId:c,textMultipleBtnAllRowsTranslate:f,textMultipleSelectedTranslateExtra:d,toggleBtnAllRows:R}=C0(_,t),{updateViewCurrentLocal:C,viewSlotLocal:I}=h0(_,t),{countAllRowsFormatted:O}=f0(_);return{buttonMultipleId:a,countAllRowsFormatted:O,currentMultipleActions:s,filterCurrency:E,isBtnMultipleActionDisabled:L,isBtnSelectAllRowsDisabled:S,multipleActionsFiltered:o,multiplePanelId:c,onCancelMultipleActions:l,onOpenModalMultipleActions:A,tableActionsFiltered:T,tableLabelId:n,textMultipleBtnAllRowsTranslate:f,textMultipleSelectedTranslateExtra:d,toggleBtnAllRows:R,updateViewCurrentLocal:C,viewSlotLocal:I}},methods:{updateModelQuickSearch(_){this.$emit("updateModelQuickSearch",_)}},render(){var _,t,n,E;return[e.h("div",{class:"a_table__top_panel"},[this.isLabelVisible?this.$slots.tableLabel?this.$slots.tableLabel({countAllRows:this.countAllRows,tableLabelId:this.tableLabelId}):e.h(this.labelTag,{class:["a_table__top_panel__label",this.labelClass]},[e.h(f_,{id:this.tableLabelId,tag:"span",class:"a_table__top_panel__label__text",text:this.label,extra:this.extra}),this.showCount?e.h(O_,{class:"a_table__top_panel__label__count",extra:{count:this.countAllRows},tag:"span",text:this.countAllRowsFormatted,textAriaHidden:!0,textScreenReader:"_A_TABLE_ALL_ROWS_{{count}}_",title:"_A_TABLE_ALL_ROWS_{{count}}_",type:"text"}):""]):"",e.h("div",{class:"a_table__top_panel__actions"},[this.$slots.tableActionsPrepend?this.$slots.tableActionsPrepend({isMultipleActionsActive:this.isMultipleActionsActive,modelView:this.modelView}):"",e.h(ji,{actions:this.tableActionsFiltered,actionsClasses:[],disabled:this.isMultipleActionsActive||this.disabledActions,indexFirstDropdownAction:this.tableActionsIndexFirstDropdownAction,indexFirstDropdownActionMobile:this.tableActionsIndexFirstDropdownActionMobile,minDropdownActions:0,dropdownAttributes:{buttonClass:"a_btn a_btn_secondary a_table__action",buttonIconLeft:co,buttonText:{desktop:"_A_TABLE_ACTIONS_"},hasCaret:!1,inBody:!0,placement:"bottom-end"}}),e.h(ji,{actions:this.multipleActionsFiltered,actionsClasses:[],disabled:this.isMultipleActionsActive||this.disabledMultipleActions,indexFirstDropdownAction:0,indexFirstDropdownActionMobile:0,minDropdownActions:0,dropdownAttributes:{id:this.buttonMultipleId,buttonClass:"a_btn a_btn_secondary a_table__action",buttonText:{desktop:"_A_TABLE_MULTIPLE_ACTIONS_"},buttonIconLeft:I0,inBody:!0,placement:"bottom-end"}}),this.isQuickSearch?e.h(Bt,{label:"_A_TABLE_QUICK_SEARCH_",class:"a_table__top_panel__actions__quick_search",modelUndefined:"",modelValue:this.modelQuickSearch,iconPrepend:Df,"onUpdate:modelValue":this.updateModelQuickSearch}):"",this.hasViews?e.h(YT,{modelValue:this.modelView,class:"a_d_inline_block",isButtonGroup:!0,disabled:this.disabledViews,slotName:this.viewSlotLocal,data:this.views,keyId:"id",keyLabel:"label",hasBorder:!1,classFieldset:"a_p_0","onUpdate:modelValue":this.updateViewCurrentLocal},{viewSlot:a=>this.$slots.viewSlot&&this.$slots.viewSlot({...a})}):"",this.useAdditionalSorting?e.h(c0,{additionalSortingColumns:this.additionalSortingColumns,disabledSort:this.disabledSort,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSort}):"",this.$slots.tableActionsAppend?this.$slots.tableActionsAppend({isMultipleActionsActive:this.isMultipleActionsActive,modelView:this.modelView}):""])]),this.isMultipleActionsActive&&this.currentMultipleActions?e.h("div",{id:this.multiplePanelId,class:"a_table__multiple_panel"},[e.h("div",{class:"a_table__multiple_panel__header"},[e.h(f_,{class:"a_table__multiple_panel__header__text",tag:"strong",text:"_A_TABLE_MULTIPLE_ACTIONS_"}),e.h("div",{class:"a_table__multiple_panel__items"},[e.h(f_,{class:"a_table__multiple_panel__items__selected",tag:"span",text:"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_{{countSelectedRowsFiltered}}_{{countAllRowsFiltered}}_",extra:this.textMultipleSelectedTranslateExtra}),((_=this.currentMultipleActions)==null?void 0:_.isAllRowsSelected)&&e.h(le,{class:"a_btn a_btn_secondary a_table__multiple_panel__btn_all_rows",type:"button",text:this.textMultipleBtnAllRowsTranslate,extra:this.textMultipleSelectedTranslateExtra,disabled:this.isBtnSelectAllRowsDisabled||this.disabledMultipleActions,loading:this.isLoadingMultipleActions,onClick:this.toggleBtnAllRows})])]),e.h("div",{class:"a_table__multiple_panel__actions"},[(t=this.currentMultipleActions)!=null&&t.slot&&this.$slots.multipleActionActiveSlot?this.$slots.multipleActionActiveSlot({disabled:this.isBtnMultipleActionDisabled||this.isLoadingMultipleActions||this.disabledMultipleActions,loading:this.isLoadingMultipleActions,text:(n=this.currentMultipleActions)==null?void 0:n.text,action:this.currentMultipleActions,onClick:this.onOpenModalMultipleActions,close:this.closeMultipleActionsActive,rows:this.selectedRows,rowsVisible:this.rowsLocalAll,id:this.buttonMultipleId,areAllRowsSelected:this.areAllRowsSelected,countAllRows:this.countAllRows}):e.h(le,{class:"a_btn a_btn_primary a_table__action",type:"button",disabled:this.isBtnMultipleActionDisabled||this.isLoadingMultipleActions||this.disabledMultipleActions,text:(E=this.currentMultipleActions)==null?void 0:E.text,loading:this.isLoadingMultipleActions,loadingAlign:"left",onClick:this.onOpenModalMultipleActions}),e.h(le,{class:"a_btn a_btn_secondary a_table__action",type:"button",text:"_A_TABLE_MULTIPLE_CANCEL_",onClick:this.onCancelMultipleActions})])]):""]}};function p0(){const _=e.ref(void 0);return{componentRef:_,setFocusToComponent:()=>{var n;(n=_.value)==null||n.focus({preventScroll:!0})}}}const U0={name:"ATablePreviewDown",props:{row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},inject:["onTogglePreview"],setup(){const{componentRef:_,setFocusToComponent:t}=p0();return e.onMounted(()=>{t()}),{componentRef:_}},render(){return e.h("div",{ref:"componentRef",class:"a_table__preview_down",tabindex:-1},[e.h(f_,{class:"a_sr_only",text:"_A_TABLE_PREVIEW_DOWN_ARIA_LABEL_"}),this.$slots.preview&&this.$slots.preview({row:this.row,rowIndex:this.rowIndex}),e.h(le,{class:"a_btn a_btn_transparent_dark a_table__preview_down__btn_close",iconLeft:Mn,iconClass:"a_table__preview_down__btn_close__icon",title:"_A_TABLE_PREVIEW_DOWN_CLOSE_",textScreenReader:"_A_TABLE_PREVIEW_DOWN_CLOSE_",onClick:()=>this.onTogglePreview({row:this.row,rowIndex:this.rowIndex})})])}};function N0(_){const t=e.toRef(_,"column"),n=e.toRef(_,"disabledPreview"),E=e.toRef(_,"isFooter"),a=e.inject("hasPreview"),s=e.inject("isMobile"),{columnsStyles:o}=TR(_);return{attributesForTd:e.computed(()=>{const A={class:["a_table__td a_table__cell",{a_table__cell_click:a.value&&!E.value&&!n.value},t.value.classRowParent],style:o.value};return s.value||(A.role="cell"),A})}}function cR(_){const t=e.toRef(_,"column"),n=e.toRef(_,"row"),E=e.computed(()=>!!t.value.to),a=e.computed(()=>{if(ue(t.value.to))return t.value.to;if(J_(t.value.to)){const o=e_(t.value.to),l=o.params||{},A=o.query||{};if(t.value.to.nameDynamic&&!t.value.to.name){const T=n_(n.value,t.value.to.nameDynamic);T&&(o.name=T)}if(t.value.to.paramsDynamic){let T=!1;if(j(t.value.to.paramsDynamic,(L,S)=>{const c=n_(n.value,L);if(w_(c))return T=!0,!1;l[S]=c}),T)return}if(t.value.to.queryDynamic){let T=!1;if(j(t.value.to.queryDynamic,(L,S)=>{const c=n_(n.value,L);if(w_(c))return T=!0,!1;A[S]=c}),T)return}return o.params=l,o.query=A,o}});return{classForLink:e.computed(()=>"a_btn a_btn_link a_p_0 a_text_left"),isLink:E,toLocal:a}}function dR(_){const t=e.toRef(_,"column"),n=e.toRef(_,"isFooter"),E=e.computed(()=>n.value?t.value.footerSlot:t.value.slot);return{hasSlot:e.computed(()=>!!E.value),slotName:E}}function fR(_){const t=e.toRef(_,"column"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.inject("columnsDefaultValue"),s=e.inject("valuesForColumnDefault"),o=e.computed(()=>n.value&&"footerDefaultValue"in t.value?t.value.footerDefaultValue:"defaultValue"in t.value?t.value.defaultValue:w_(a.value)?"":a.value),l=e.computed(()=>n.value?t.value.footerKeyLabel:t.value.keyLabel),A=e.computed(()=>n.value?t.value.footerKeyLabelSafeHtml:t.value.keyLabelSafeHtml),T=e.computed(()=>n.value?t.value.footerKeyLabelHtml:t.value.keyLabelHtml),L=e.computed(()=>{if(l.value)return n_(E.value,l.value)}),S=e.computed(()=>{if(A.value)return n_(E.value,A.value)}),c=e.computed(()=>{if(T.value)return n_(E.value,T.value)}),f=O=>{let p=!1;return j(s.value,U=>{if(O===U)return p=!0,!1}),p?o.value:O},d=e.computed(()=>f(L.value)),R=e.computed(()=>f(S.value)),C=e.computed(()=>f(c.value));return{textOrHtmlRender:e.computed(()=>{if(l.value)return e.h("span",null,d.value);if(A.value)return e.h("div",{innerHTML:R.value});if(T.value)return e.withDirectives(e.h("div"),[[et,C.value]])})}}const RR=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-right-fill" viewBox="0 0 16 16">
|
|
205
205
|
<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/>
|
|
206
|
-
</svg>`,CR={name:"ATableTd",props:{column:{type:Object,required:!0},columnIndex:{type:Number,required:!0},disabledPreview:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},level:{type:Number,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},showIconChildren:{type:Boolean,required:!1}},inject:["isMobile","rowsLocalAll"],setup(_){const{attributesForTd:t}=N0(_),{classForLink:n,isLink:E,toLocal:a}=cR(_),{hasSlot:s,slotName:o}=dR(_),{textOrHtmlRender:l}=fR(_);return{attributesForTd:t,classForLink:n,hasSlot:s,isLink:E,slotName:o,textOrHtmlRender:l,toLocal:a}},render(){const _=e.h("div",this.attributesForTd,[e.h("div",{class:["a_table__cell__child",this.column.class,this.column.classRow]},[this.showIconChildren?e.h(O_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:RR,type:"text"}):"",this.hasSlot&&this.$slots[this.slotName]?this.$slots[this.slotName]({column:this.column,columnIndex:this.columnIndex,level:this.level,row:this.row,rowIndex:this.rowIndex,rows:this.rowsLocalAll}):this.isLink&&this.toLocal?e.h(e.resolveComponent("RouterLink"),{class:[this.column.class,this.classForLink,this.column.classRow],to:this.toLocal},()=>[this.textOrHtmlRender]):this.textOrHtmlRender])]);return this.isMobile?[e.h(f_,{html:this.column.label,tag:"dt"}),e.h("dd",{},[_])]:_}},D0={name:"ATableListItem",inject:["rowsLocalAll"],props:{column:{type:Object,required:!0},columnIndex:{type:Number,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},isFooter:{type:Boolean,required:!1}},setup(_){const{classForLink:t,isLink:n,toLocal:E}=cR(_),{hasSlot:a,slotName:s}=dR(_),{textOrHtmlRender:o}=fR(_);return{classForLink:t,hasSlot:a,isLink:n,slotName:s,textOrHtmlRender:o,toLocal:E}},render(){return[e.h(f_,{text:this.column.label,tag:"dt"}),e.h("dd",null,this.hasSlot&&this.$slots[this.slotName]?this.$slots[this.slotName]({column:this.column,columnIndex:this.columnIndex,row:this.row,rowIndex:this.rowIndex,rows:this.rowsLocalAll}):this.isLink&&this.toLocal?[e.h(e.resolveComponent("RouterLink"),{class:[this.column.class,this.classForLink,this.column.classRow],to:this.toLocal},()=>[this.textOrHtmlRender])]:[this.textOrHtmlRender])]}};function m0(){const _=e.inject("columnsScrollInvisible"),t=e.inject("modelIsTableWithoutScroll"),n=e.computed(()=>_.value.length),E=e.computed(()=>t.value?n.value>0:!1);return{columnsScrollInvisibleText:e.computed(()=>n.value===1?"_A_TABLE_DROPDOWN_HIDE_FIELD_TEXT_":"_A_TABLE_DROPDOWN_HIDE_FIELDS_TEXT_{{count}}_"),countColumnsScrollInvisible:n,isColumnsScrollInvisibleDropdownVisible:E}}function P0(_){const t=e.toRef(_,"columnActionsView"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"rowIndexPath"),o=e.inject("columnActionsOnePlusDropdownOptions"),l=e.inject("rowActions"),A=e.inject("tableId"),T=e.computed(()=>{const b=s.value||a.value;return`${A.value}_action_${b}`}),L=e.computed(()=>w_(o.value.indexFirstDropdownAction)?1:o.value.indexFirstDropdownAction),S=({rowAction:b})=>{if(b.text)return b.text;if(U_(b.textCallback))return b.textCallback({row:E.value,rowIndex:a.value,rowAction:b})},c=({rowAction:b})=>{if(b.html)return b.html;if(U_(b.htmlCallback))return b.htmlCallback({row:E.value,rowIndex:a.value,rowAction:b})},f=({rowAction:b})=>{if(b.title)return b.title;if(U_(b.titleCallback))return b.titleCallback({row:E.value,rowIndex:a.value,rowAction:b})},d=({rowAction:b})=>b.disabled?b.disabled:U_(b.disabledCallback)?b.disabledCallback({row:E.value,rowIndex:a.value,rowAction:b}):!1,R=({rowAction:b})=>b.class?b.class:U_(b.classCallback)?b.classCallback({row:E.value,rowIndex:a.value,rowAction:b}):"",C=({rowAction:b})=>{if(b.iconLeft)return b.iconLeft;if(U_(b.iconLeftCallback))return b.iconLeftCallback({row:E.value,rowIndex:a.value,rowAction:b})},I=({rowAction:b})=>{if(b.iconRight)return b.iconRight;if(U_(b.iconRightCallback))return b.iconRightCallback({row:E.value,rowIndex:a.value,rowAction:b})},O=({rowAction:b})=>{if(ue(b.to))return b.to;if(J_(b.to)){const $=e_(b.to),M=$.params||{},W=$.query||{};if(b.to.nameDynamic&&!b.to.name){const H=n_(E.value,b.to.nameDynamic);H&&($.name=H)}if(b.to.paramsDynamic){let H=!1;if(j(b.to.paramsDynamic,(w,K)=>{const x=n_(E.value,w);if(w_(x))return H=!0,!1;M[K]=x}),H)return}if(b.to.queryDynamic){let H=!1;if(j(b.to.queryDynamic,(w,K)=>{const x=n_(E.value,w);if(w_(x))return H=!0,!1;W[K]=x}),H)return}return $.params=M,$.query=W,$}},p=({rowAction:b})=>b.href?b.href:U_(b.hrefCallback)?b.hrefCallback({row:E.value,rowIndex:a.value,rowAction:b}):!1,U=({rowAction:b})=>{if(b.extra)return b.extra;if(U_(b.extraCallback))return b.extraCallback({row:E.value,rowIndex:a.value,rowAction:b})},D=({rowAction:b})=>{if(b.textScreenReader)return b.textScreenReader;if(U_(b.textScreenReaderCallback))return b.textScreenReaderCallback({row:E.value,rowIndex:a.value,rowAction:b})},V=({rowActionIndexVisible:b})=>{if(t.value==="dropdown")return{id:T.value,ids:[T.value,A.value]};if(b<L.value){const $=`${T.value}_${b}`;return{buttonId:$,id:$,ids:[$,A.value]}}return{id:T.value,ids:[T.value,A.value]}},B=b=>{j(b,($,M)=>{eP(M,"Callback")&&(b[M]=void 0)})},y=e.computed(()=>{const b=[];let $=0;return j(e_(l.value),M=>{if(oR({rowAction:M,row:E.value,rowIndex:a.value})){if(M.type!=="divider"){const W=S({rowAction:M});W&&(M.text=W);const H=c({rowAction:M});H&&(M.html=H);const w=f({rowAction:M});w?M.title=w:W&&(M.title=W);const K=d({rowAction:M});K&&(M.disabled=K);const x=R({rowAction:M});x&&(M.class=x);const X=C({rowAction:M});X&&(M.iconLeft=X);const r_=I({rowAction:M});r_&&(M.iconRight=r_);const h_=U({rowAction:M});h_&&(M.extra=h_);const l_=D({rowAction:M});if(h_&&(M.textScreenReader=l_),M.type==="link"){const N_=O({rowAction:M});N_?M.to=N_:M.href=p({rowAction:M})}if(U_(M.callback)){const{buttonId:N_,id:L_,ids:G_}=V({rowActionIndexVisible:$});M.id=N_;const m_=M.callback;M.callback=()=>m_({row:E.value,rowIndex:a.value,id:L_,ids:G_,rowAction:M})}B(M),$++}b.push(M)}}),b}),Y=e.computed(()=>!n.value&&y.value.length>0);return{buttonActionsId:T,isRowActionsDropdownVisible:Y,rowActionsFiltered:y}}function b0(_){const t=e.toRef(_,"rowIndex");return{rowNumber:e.computed(()=>t.value+1)}}const Y0={name:"ATableTdAction",props:{columnActionsBtnGroupMaxWidthStyle:{type:String,required:!1,default:void 0},columnActionsView:{type:String,required:!0},disabledRowActions:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},isRowActionsStickyLocal:{type:Boolean,required:!0},row:{type:Object,required:!0},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowIndex:{type:Number,required:!0},rowIndexPath:{type:String,required:!1,default:void 0}},inject:["columnActionsOnePlusDropdownOptions","columnsScrollInvisible","tableId","useRem"],setup(_){const{isMobileWidth:t}=Dt(),{buttonActionsId:n,isRowActionsDropdownVisible:E,rowActionsFiltered:a}=P0(_),{columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:l}=m0(),{rowNumber:A}=b0(_),{stylesThTd:T}=lR();return{buttonActionsId:n,columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:l,isMobileWidth:t,isRowActionsDropdownVisible:E,rowActionsFiltered:a,rowNumber:A,stylesThTd:T}},render(){return e.h("div",{role:"cell",class:["a_table__td a_table__cell a_table__cell_action",{a_table__cell_action_sticky:this.isRowActionsStickyLocal}],...this.stylesThTd},[e.h("div",{class:["a_table__cell__child",this.rowActionsClass]},[this.isColumnsScrollInvisibleDropdownVisible&&e.h(nE,{buttonClass:"a_btn a_btn_link a_text_nowrap",buttonIconLeft:Nf,buttonIconClass:"a_table__cell_action__additional_icon",buttonTitle:"_A_TABLE_DROPDOWN_HIDE_FIELDS_TITLE_{{count}}_",buttonTextScreenReader:"_A_TABLE_DROPDOWN_HIDE_FIELDS_TITLE_{{count}}_",buttonText:this.columnsScrollInvisibleText,buttonTextClass:"a_table__cell_action__additional_text",buttonTextAriaHidden:!0,extra:{count:this.countColumnsScrollInvisible},dropdownClass:"a_p_0 a_overflow_x_hidden a_table__extra_dropdown",dropdownTag:"div",hasCaret:!1,floatingFlip:{use:!0,fallbackPlacements:["top-end","left"]},inBody:!0,placement:"bottom-end",menuWidth:600,isCloseByClickInside:!1,useRem:this.useRem},{dropdown:()=>[e.h("dl",{class:"a_list_dl a_list_dl_dt_right"},[this.columnsScrollInvisible.map((_,t)=>e.h(D0,{column:_,columnIndex:t,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))])]}),this.isRowActionsDropdownVisible||this.$slots.rowActions?e.h("div",{class:"a_table__cell_action__group"},[this.$slots.rowActions?this.$slots.rowActions({tableId:this.tableId,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):"",this.isRowActionsDropdownVisible?this.columnActionsView==="dropdown"||this.isMobileWidth&&this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile===0?e.h(nE,{id:this.buttonActionsId,actions:this.rowActionsFiltered,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:co,buttonTextScreenReader:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",buttonTitle:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",disabled:this.disabledRowActions,extra:{rowNumber:this.rowNumber},hasCaret:!1,inBody:!0,placement:"bottom-end",useRem:this.useRem},this.$slots):e.h(ji,{class:"a_d_inline_block",style:this.columnActionsBtnGroupMaxWidthStyle,actions:this.rowActionsFiltered,dropdownAttributes:{id:this.buttonActionsId,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:yn,buttonTextScreenReader:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",buttonTitle:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",extra:{rowNumber:this.rowNumber},hasCaret:!1,inBody:!0,placement:"bottom-end"},disabled:this.disabledRowActions,btnGroupClass:w_(this.columnActionsOnePlusDropdownOptions.btnGroupClass)?"a_btn_group a_btn_group_table":this.columnActionsOnePlusDropdownOptions.btnGroupClass,hasDividerBeforeDropdown:this.columnActionsOnePlusDropdownOptions.hasDividerBeforeDropdown||!1,indexFirstDropdownAction:w_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction,indexFirstDropdownActionMobile:w_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile,minDropdownActions:w_(this.columnActionsOnePlusDropdownOptions.minDropdownActions)?1:this.columnActionsOnePlusDropdownOptions.minDropdownActions,actionsClasses:this.columnActionsOnePlusDropdownOptions.actionsClasses||["a_btn a_btn_primary a_text_truncate"]},this.$slots):""]):""])])}};function g0(_,{hasChildren:t=e.computed(()=>!1),hasPreviewLocal:n=e.computed(()=>!1),rowClassChildren:E=e.computed(()=>{}),rowClassLevelChildren:a=e.computed(()=>{}),rowClassPreview:s=e.computed(()=>{}),toggleChildren:o=()=>{}}){const l=e.toRef(_,"disabledPreview"),A=e.toRef(_,"disabledPreviewRowCallback"),T=e.toRef(_,"isFooter"),L=e.toRef(_,"isTreeCollapsible"),S=e.toRef(_,"level"),c=e.toRef(_,"row"),f=e.toRef(_,"rowClass"),d=e.toRef(_,"rowIndex"),R=e.toRef(_,"rowIndexPath"),C=e.inject("isMobile"),I=e.inject("onTogglePreview"),O=e.inject("tableId"),p=e.computed(()=>{const $=T.value?"_footer":"",M=R.value||d.value;return`${O.value}${$}_${M}`}),U=e.computed(()=>U_(f.value)?f.value({level:S.value,row:c.value,rowindex:d.value}):f.value),D=e.computed(()=>["a_table__row a_table__body__row a_table__row_hover",E.value,a.value,s.value,U.value]),V=e.computed(()=>C.value?"listitem":"row"),B=e.computed(()=>U_(A.value)?A.value({row:c.value,rowIndex:d.value}):l.value),y=$=>{xw({$event:$,tagsName:["A","BUTTON","INPUT","LABEL"],classStop:"a_table__row"})||(t.value?o():n.value&&I({row:c.value,rowIndex:d.value}))},Y=$=>{$.keyCode===E_.enter&&y($)},b=e.computed(()=>(L.value&&t.value||n.value)&&!B.value?{tabindex:0,onClick:y,onKeydown:Y}:{});return{disabledPreviewRow:B,eventsLocal:b,roleLocal:V,rowClassComputed:D,rowHtmlId:p}}function B0(_,{emit:t}){const n=e.toRef(_,"areAllRowsSelected"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"selectedRowsIndexes"),o=e.inject("currentMultipleActions"),l=e.inject("isMultipleActionsActive"),A=e.computed(()=>!!s.value[a.value]||n.value),T=e.computed(()=>{if(l.value){if(U_(n_(o.value,"isHiddenCallback")))return o.value.isHiddenCallback({row:E.value,rowIndex:a.value});if(n.value)return!0}return!1}),L=e.computed(()=>A.value?"_A_TABLE_DESELECT_THIS_ROW_":"_A_TABLE_SELECT_THIS_ROW_");return{isCheckboxDisabled:T,isRowSelected:A,labelCheckbox:L,toggleCheckbox:()=>{T.value||t("setSelectedRowsIndexes",{rowIndex:a.value})}}}function $0(_){const t=e.toRef(_,"isTree"),n=e.toRef(_,"keyChildren"),E=e.toRef(_,"level"),a=e.toRef(_,"row"),s=e.toRef(_,"rowIndex"),o=e.toRef(_,"rowsLength"),l=e.computed(()=>{if(!n.value)return[];const c=n_(a.value,n.value);return p_(c)?c:[]}),A=e.computed(()=>l.value.length>0),T=e.computed(()=>E.value+1),L=e.computed(()=>t.value?{"aria-level":E.value,"aria-posinset":s.value+1,"aria-setsize":o.value}:{}),S=e.computed(()=>{if(t.value)return`a_table__row_level a_table__row_level_${E.value}`});return{ariaTreeAttributes:L,children:l,hasChildren:A,levelForChildren:T,rowClassLevelChildren:S}}function V0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isOneOfParentsClose"),E=e.toRef(_,"isTreeCollapsible"),a=e.toRef(_,"isTreeOpened"),s=e.ref(!1),o=e.computed(()=>{if(t.value)return s.value}),l=e.computed(()=>({a_table__row_has_children:t.value,a_table__row_hide:n.value,a_table__row_level_open:t.value&&s.value})),A=e.computed(()=>!!(n.value||!s.value));return{ariaExpanded:o,initIsChildrenOpen:()=>{(!E.value||a.value)&&(s.value=!0)},isOneOfParentsCloseForChildren:A,rowClassChildren:l,toggleChildren:()=>{s.value=!s.value}}}function y0(_){const t=e.toRef(_,"allVisibleMobileColumns"),n=e.toRef(_,"countVisibleMobileColumns"),E=e.inject("isMobile"),a=e.ref(!1),s=e.computed(()=>t.value.length-n.value),o=e.computed(()=>E.value&&t.value.length>n.value),l=e.computed(()=>s.value===1?"_A_TABLE_MOBILE_TR_PLUS_FIELD_":"_A_TABLE_MOBILE_TR_PLUS_FIELDS_{{count}}_"),A=e.computed(()=>a.value?"_A_TABLE_MOBILE_TR_CLOSE_":l.value);return{countInvisibleMobileColumns:s,isAllColumnsVisibleMobile:a,isBtnToggleAllColumnsVisible:o,textBtnToggleAllColumns:A,toggleAllColumnsVisibleMobile:({$event:L})=>{a.value=!a.value,L.stopPropagation()}}}function M0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isFooter"),E=e.toRef(_,"rowIndex"),a=e.inject("hasPreview"),s=e.inject("previewRightRowIndex"),o=e.inject("previewRightRowIndexLast"),l=e.computed(()=>!!(!t.value&&a.value&&!n.value)),A=e.computed(()=>E.value===s.value),T=e.computed(()=>!A.value&&E.value===o.value),L=e.computed(()=>u_({placeholder:A.value?"_A_TABLE_ROW_PREVIEW_CLOSE_":"_A_TABLE_ROW_PREVIEW_OPEN_"})),S=e.computed(()=>l.value?{"aria-label":L.value}:{}),c=e.computed(()=>{if(l.value)return{a_table__row_preview_open:A.value,a_table__row_preview_was_open:T.value}});return{hasPreviewLocal:l,previewAttributes:S,rowClassPreview:c}}const hR={name:"ATableTr",props:{allVisibleMobileColumns:{type:Array,required:!0},areAllRowsSelected:{type:Boolean,required:!0},columnActionsBtnGroupMaxWidthStyle:{type:String,required:!1,default:void 0},columnActionsView:{type:String,required:!0},countVisibleMobileColumns:{type:Number,required:!0},disabledPreview:{type:Boolean,required:!1},disabledPreviewRowCallback:{type:Function,required:!1},disabledRowActions:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},isOneOfParentsClose:{type:Boolean,required:!1},isPreviewDownOpen:{type:Boolean,required:!1},isRowActionsStickyLocal:{type:Boolean,required:!0},isTree:{type:Boolean,required:!1},isTreeCollapsible:{type:Boolean,required:!1,default:!0},isTreeOpened:{type:Boolean,required:!1},keyChildren:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:"id"},level:{type:Number,required:!0},row:{type:Object,required:!0},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowClass:{type:[String,Object,Function],required:!1,default:void 0},rowIndex:{type:Number,required:!0},rowIndexPath:{type:String,required:!1,default:void 0},rowsLength:{type:Number,required:!0},selectedRowsIndexes:{type:Object,required:!0}},emits:["setSelectedRowsIndexes"],setup(_,t){const{ariaTreeAttributes:n,children:E,hasChildren:a,levelForChildren:s,rowClassLevelChildren:o}=$0(_),{ariaExpanded:l,initIsChildrenOpen:A,isOneOfParentsCloseForChildren:T,rowClassChildren:L,toggleChildren:S}=V0(_,{hasChildren:a}),{hasPreviewLocal:c,previewAttributes:f,rowClassPreview:d}=M0(_,{hasChildren:a}),{disabledPreviewRow:R,eventsLocal:C,roleLocal:I,rowClassComputed:O,rowHtmlId:p}=g0(_,{hasChildren:a,hasPreviewLocal:c,rowClassChildren:L,rowClassLevelChildren:o,rowClassPreview:d,toggleChildren:S}),{countInvisibleMobileColumns:U,isAllColumnsVisibleMobile:D,isBtnToggleAllColumnsVisible:V,textBtnToggleAllColumns:B,toggleAllColumnsVisibleMobile:y}=y0(_),{isCheckboxDisabled:Y,isRowSelected:b,labelCheckbox:$,toggleCheckbox:M}=B0(_,t);return A(),{ariaExpanded:l,ariaTreeAttributes:n,children:E,countInvisibleMobileColumns:U,disabledPreviewRow:R,eventsLocal:C,hasChildren:a,isAllColumnsVisibleMobile:D,isBtnToggleAllColumnsVisible:V,isCheckboxDisabled:Y,isOneOfParentsCloseForChildren:T,isRowSelected:b,labelCheckbox:$,levelForChildren:s,previewAttributes:f,roleLocal:I,rowClassComputed:O,rowHtmlId:p,textBtnToggleAllColumns:B,toggleAllColumnsVisibleMobile:y,toggleCheckbox:M,toggleChildren:S}},inject:["columnsFilteredForRender","isActionColumnVisible","isMultipleActionsActive","isMobile"],render(){const _=this.rowIndexPath||`${this.rowIndex}`;let t=[];this.isMobile&&!this.isAllColumnsVisibleMobile?j(this.allVisibleMobileColumns,(a,s)=>{if(s+1>this.countVisibleMobileColumns)return!1;t.push(e.h(CR,{key:a.id,column:a,columnIndex:s,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))}):t=this.columnsFilteredForRender.map((a,s)=>e.h(CR,{key:a.id,column:a,columnIndex:s,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,showIconChildren:!!(this.isTreeCollapsible&&this.hasChildren&&s===0)},this.$slots));const n=this.isActionColumnVisible&&e.h(Y0,{columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,disabledRowActions:this.disabledRowActions,row:this.row,rowIndex:this.rowIndex,rowIndexPath:_,isFooter:this.isFooter,rowActionsClass:this.rowActionsClass,isRowActionsStickyLocal:this.isRowActionsStickyLocal},this.$slots),E=this.isMobile?e.h("div",{class:"a_table_mobile__dl__wrapper"},[this.$slots.rowMobilePrepend?this.$slots.rowMobilePrepend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):"",this.isTreeCollapsible&&this.hasChildren?e.h(O_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:RR,type:"text"}):"",e.h("dl",{class:"a_table_mobile__dl"},t),this.$slots.rowMobileAppend?this.$slots.rowMobileAppend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):""]):t;return[e.h("div",{id:this.rowHtmlId,role:this.roleLocal,class:this.rowClassComputed,"aria-expanded":this.ariaExpanded,...this.previewAttributes,...this.ariaTreeAttributes,...this.eventsLocal},[this.isMultipleActionsActive&&e.h("div",{class:"a_table__td a_table__cell a_table__cell_checkbox",style:"width: 50px; min-width: 50px; max-width: 50px;"},[!this.isFooter&&e.h(kr,{isWidthAuto:!0,modelValue:this.isRowSelected,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),E,this.isMobile?e.h("div",{class:"a_table_mobile__actions_parent"},[this.isBtnToggleAllColumnsVisible&&e.h(O_,{class:"a_btn a_btn_link a_table_mobile__columns_btn_toggle",extra:{count:this.countInvisibleMobileColumns},text:this.textBtnToggleAllColumns,type:"button",onClick:this.toggleAllColumnsVisibleMobile}),n]):n]),this.isPreviewDownOpen&&e.h(U0,{row:this.row,rowIndex:this.rowIndex},{preview:a=>this.$slots.preview?this.$slots.preview(a):void 0}),this.hasChildren?this.children.map((a,s)=>e.h(e.resolveComponent("ATableTr"),{key:a[this.keyId]||s,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreviewRow,disabledRowActions:this.disabledRowActions,isFooter:this.isFooter,isOneOfParentsClose:this.isOneOfParentsCloseForChildren,isPreviewDownOpen:!1,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:this.levelForChildren,row:a,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:s,rowIndexPath:`${_}_${s}`,rowsLength:this.children.length,selectedRowsIndexes:this.selectedRowsIndexes},{get:o=>[e.h(Xi,{data:o.row,keyLabel:o.column.keyLabel,filter:o.column.filter,filterParameters:o.column.filterParameters,defaultValue:o.column.defaultValue,tag:o.column.filterTag||"div"})],...this.$slots})):""]}};function F0(_,{columnActionsWidthDefaultsRemLocal:t=e.computed(()=>({})),columnActionsWidthMinRemLocal:n=()=>{},columnActionsWidthRemLocal:E=()=>{},isMobile:a=e.computed(()=>!1),rowsLocal:s=e.ref([])}){const o=e.toRef(_,"columnActionsView"),l=e.toRef(_,"rowActions"),A=e.computed(()=>o.value==="onePlusDropdown"),T=e.computed(()=>{let d=!1;_:for(let R=0;R<s.value.length;R++){const C=s.value[R];for(let I=0;I<l.value.length;I++){const O=l.value[I];if(oR({rowAction:O,row:C,rowIndex:R})&&O.type!=="divider"){d=!0;break _}}}return d}),L=e.computed(()=>!l.value.length||!A.value?!1:T.value),S=e.computed(()=>w_(E.value)?L.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdown:t.value.default:E.value),c=e.computed(()=>w_(n.value)?L.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdownMin:t.value.min:n.value);return{columnActionsBtnGroupMaxWidthStyle:e.computed(()=>{const d=t.value.btnGroupMaxWidth;if(!a.value&&o.value!=="dropdown"&&!w_(d))return`max-width: ${d}px`}),columnActionsWidthLocal:S,columnActionsWidthMinLocal:c,isColumnActionWide:L}}function G0(_,{columnsScrollInvisible:t=e.ref([]),indexFirstScrollInvisibleColumn:n=e.ref(void 0),modelColumnsVisibleLocal:E=e.ref({}),modelIsTableWithoutScrollComputed:a=e.computed(()=>!1),columnsOrderedFromSimpleTable:s=e.computed(()=>[])}){const o=e.toRef(_,"columns"),l=e.toRef(_,"isActionColumnVisible"),A=e.toRef(_,"isSimpleTable"),T=e.toRef(_,"modelColumnsOrdering"),L=e.toRef(_,"multipleActions"),S=e.computed(()=>Ra(o.value,"id")),c=e.computed(()=>{const O={true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]};return j(e_(o.value),p=>{const U=p.id;p.locked?(O.true.push(U),O.trueColumns.push(p),O.trueObject[U]=!0):(O.false.push(U),O.falseColumns.push(p),O.falseObject[U]=!0)}),O}),f=e.computed(()=>{if(A.value&&s.value&&s.value.length)return s.value;if(!T.value.length)return[...c.value.trueColumns,...c.value.falseColumns];const O=[],p=e_(S.value);return j(T.value,U=>{p[U]&&O.push(p[U])}),O}),d=e.computed(()=>{const O=[],p={};return j(f.value,(U,D)=>{kw({column:U,columnIndex:D,modelIsTableWithoutScroll:a.value,modelColumnsVisibleLocal:E.value,indexFirstScrollInvisibleColumn:n.value})&&(p[O.length]=D,O.push(U))}),{columns:O,columnsIndexesMapping:p}}),R=e.computed(()=>d.value.columnsIndexesMapping),C=e.computed(()=>d.value.columns),I=e.computed(()=>{let O=C.value.length;return a.value&&(O+=t.value.length),l.value&&O++,L.value.length&&O++,O});return{columnIdsGroupByLocked:c,columnsFilteredForRender:C,columnsFilteredForRenderIndexesMapping:R,columnsOrdered:f,countNotHiddenColumns:I}}function v0(_,{modelSort:t=e.ref([])}){const n=e.toRef(_,"columns"),E=e.toRef(_,"showFirstSortingSequenceNumber"),a=e.toRef(_,"sortingSequenceNumberClass"),s=e.computed(()=>ce(n.value,I=>qw({column:I}))),o=e.computed(()=>Ct(s.value,(I,O)=>({...I,_index:I.prio||O}))),l=e.computed(()=>Ct(o.value,I=>(I.group&&I.group.length&&(I.group=Ct(I.group,(O,p)=>[O,p].join("%%%"))),I))),A=({groups:I,group:O,level:p,columnsOrderedFromGroups:U,firstLevelGroupObject:D})=>{const V=O?ce(I,Y=>bs(Y,O[p-1])):I,B=di(V,Y=>Y[p]),y=Ct(B,Y=>{const b={id:Y[p].split("%%%")[0]};let $;return p===0?($=b,$.columnIndexes=[]):$=D,Y.length>p+1?b.children=n_(A({groups:I,group:Y,level:p+1,columnsOrderedFromGroups:U,firstLevelGroupObject:$}),"recursiveGroup"):Y.length===p+1&&(b.columns=ce(l.value,M=>bs(M.group,Y[p])),$.columnIndexes.push(...Ct(b.columns,"_index")),U.push(...b.columns)),b});return{columnsOrderedFromGroups:U,recursiveGroup:y}},T=e.computed(()=>Ct(l.value,I=>n_(I,"group",I))),L=e.computed(()=>ce(T.value,I=>p_(I))),S=e.computed(()=>ce(T.value,I=>!p_(I))),c=e.computed(()=>{const I=[];return A({groups:L.value,group:null,level:0,columnsOrderedFromGroups:I})}),f=e.computed(()=>Vr([...c.value.columnsOrderedFromGroups,...S.value],"_index")),d=I=>e.h(zT,{ref:"th",class:"a_table__cell__child_group",column:I,columnGroupNames:Ct(I.group,O=>O.split("%%%")[0]),columnIndex:I._index,hasMultipleActions:!1,modelSort:t.value,showFirstSortingSequenceNumber:E.value,sortingSequenceNumberClass:a.value}),R=I=>e.h("div",{class:"a_table__th_group"},[e.h("div",{class:"a_table__th_child_group"},[e.h("div",{class:"a_table__cell_group a_text_center"},[I.id&&e.h(f_,{html:I.id,tag:"span","aria-hidden":!0})]),e.h("div",{class:"a_table__th_group_container"},I.children?Ct(I.children,O=>R(O)):Ct(I.columns,O=>d(O)))])]),C=e.computed(()=>{const I=Vr([...c.value.recursiveGroup,...S.value],O=>O.columnIndexes?Hu(O.columnIndexes):O._index);return Ct(I,O=>O.columnIndexes?R(O):d(O))});return{columnsOrderedFromSimpleTable:f,renderedGroupedColumns:C}}function w0(_,{emit:t},{checkVisibleColumns:n=()=>{},columnIdsGroupByLocked:E=e.computed(()=>({true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]})),columnsFilteredForRenderIndexesMapping:a=e.computed(()=>({}))}){const s=e.toRef(_,"columns"),o=e.toRef(_,"modelColumnsOrdering"),l=({columnIndexDraggable:L,columnIndexOver:S,reset:c,inHeader:f})=>{if(L===S&&!c)return;f&&(L=a.value[L],S=a.value[S]);let d;if(c)d=[...E.value.true,...E.value.false];else{d=e_(o.value);const R=d[L];d.splice(L,1),d.splice(S,0,R)}t("changeColumnsOrdering",{columnIndexDraggable:L,columnIndexOver:S,modelColumnsOrdering:d}),setTimeout(()=>{n()})},A=()=>{let L=[],S=!1;if(!o.value.length)L=[...E.value.true,...E.value.false];else{L=[...E.value.true];const c=e_(E.value.falseObject);j(o.value,f=>{c[f]&&(L.push(f),delete c[f])}),j(c,(f,d)=>{L.push(d)}),JSON.stringify(o.value)!==JSON.stringify(L)&&(S=!0)}return{shouldFixColumns:S,modelColumnsOrderingLocal:L}},T=()=>{const{shouldFixColumns:L,modelColumnsOrderingLocal:S}=A();L&&t("changeColumnsOrdering",{modelColumnsOrdering:S,shouldFixColumns:L})};return e.watch(s,()=>{T()},{deep:!0}),{changeColumnsOrdering:l,checkColumnsOrdering:A}}function H0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"data"),E=e.toRef(_,"isTree"),a=e.toRef(_,"keyChildren"),s=e.toRef(_,"keyCountAllRowsInData"),o=e.computed(()=>J_(n.value)),l=e.computed(()=>p_(n.value));return{countAllRowsLocal:e.computed(()=>t_(t.value)?o.value?+n_(n.value,s.value):l.value?E.value?dc({array:n.value,keyChildren:a.value}):n.value.length:n.value.length||0:t.value)}}function x0({tableRef:_=e.ref(void 0)}){return{scrollToTable:()=>{var E;if(_.value&&((E=_.value)!=null&&E.getBoundingClientRect)){let s=_.value.getBoundingClientRect().top+window.scrollY-window.innerHeight/2;s<0&&(s=0),document.documentElement.scrollTop=s}},setFocusToTable:()=>{_.value&&(_.value.setAttribute("tabindex","-1"),_.value.focus(),_.value.removeAttribute("tabindex"))}}}function q0(_,{emit:t},{checkColumnsOrdering:n=()=>{},checkVisibleColumns:E=()=>{},modelColumnsVisibleLocal:a=e.ref({})}){const s=e.toRef(_,"modelColumnsVisible"),o=e.toRef(_,"columns");return{initTable:()=>{const{shouldFixColumns:A,modelColumnsOrderingLocal:T}=n();let L=!1;Ca(s.value)?a.value=e_(s.value):(L=!0,a.value=nR(o.value),E()),t("initTable",e_({columnsOrdering:{model:T,shouldFix:A},columnsVisible:{model:a.value,shouldFix:L}}))}}}function W0(_,{emit:t},{closePreviewAll:n=()=>{},scrollToTable:E=()=>{},setFocusToTable:a=()=>{},viewCurrent:s=e.computed(()=>({}))}){const o=e.toRef(_,"isTree"),l=e.toRef(_,"offsetStart"),A=e.toRef(_,"pagination"),T=e.ref(void 0),L=e.ref(void 0),S=()=>{T.value=A.value.limitStart||10,L.value=l.value},c=e.computed(()=>{var I;return o.value?!1:(I=A.value)!=null&&I.use?s.value?s.value.usePagination||!1:!0:!1}),f=e.computed(()=>A.value.position==="top"||A.value.position==="y"),d=e.computed(()=>A.value.position==="bottom"||A.value.position==="y"||!f.value);return{changeLimit:I=>{a(),E(),T.value=I,L.value=l.value,t("changeLimit",{offset:L.value,limit:I}),n()},changeOffset:I=>{let O,p;J_(I)?(O=I.offset,p=I.reload):(O=I,p=!0),p&&(a(),E()),L.value=O,t("changeOffset",{offset:O,limit:T.value}),p&&n()},initLocalVars:S,limit:T,offset:L,usePaginationBottom:d,usePaginationLocal:c,usePaginationTop:f}}function k0({columnsOrdered:_=e.ref([]),isMobile:t=e.ref(!1),modelColumnsVisibleLocal:n=e.ref({})}){return{allVisibleMobileColumns:e.computed(()=>t.value?ce(_.value,a=>a.isRender!==!1&&n.value[a.id]!==!1):[])}}function K0(_,{emit:t},{checkVisibleColumns:n=()=>{},isMultipleActionsActive:E=e.ref(void 0),rowsLocalAll:a=e.computed(()=>[]),rowsLocalLength:s=e.computed(()=>0)}){const o=e.toRef(_,"id"),l=e.toRef(_,"multipleActions"),A=e.ref(void 0),T=e.ref({}),L=e.ref(!1),S=e.computed(()=>l.value.length>0),c=e.computed(()=>U_(n_(A.value,"isHiddenCallback"))),f=e.computed(()=>ce(a.value,(B,y)=>T.value[y])),d=()=>{T.value={}},R=()=>{E.value=!1,A.value=void 0,L.value=!1,d()},C=()=>{if(window.isScrollDisabled)return;const B=rR({tableId:o.value});Ce({selector:`#${B}`})},I=({isActive:B,action:y}={})=>{if(B){E.value=!0,A.value=y,setTimeout(()=>{n(),C()}),t("toggleMultipleActions",{isActive:B,action:y});return}E.value?R():E.value=!0,setTimeout(()=>{n(),C()}),t("toggleMultipleActions",{isActive:B,action:y})},O=e.computed(()=>Ca(T.value)),p=e.computed(()=>s.value>0&&s.value===O.value),U=e.computed(()=>O.value>0);return{areAllRowsSelected:L,areAllVisibleRowsSelected:p,areSomeRowsSelected:U,closeMultipleActionsActive:R,currentMultipleActions:A,hasMultipleActions:S,selectedRows:f,selectedRowsIndexes:T,setEmptySelectedRowsIndexes:d,setSelectedRowsIndexes:({rowIndex:B,isAll:y})=>{if(y){if(U.value)d();else{const Y={};c.value?Rn(s.value,b=>{A.value.isHiddenCallback({row:a.value[b],rowIndex:b})||(Y[b]=!0)}):Rn(s.value,b=>{Y[b]=!0}),T.value=Y}return}T.value[B]?delete T.value[B]:T.value[B]=!0},toggleBtnAllRows:()=>{L.value=!L.value,L.value&&d()},toggleMultipleActionsActive:I}}function X0(_,{emit:t},{aTableRef:n=e.ref({}),previewBoxWidthRemLocal:E=e.computed(()=>0),tableGrandparentRef:a=e.ref({})}){const{previewRef:s,removePreviewRef:o}=SR(),l=200,A=50;let T,L=0,S=0,c=0;const f=()=>{var b;if(!((b=n.value)!=null&&b.getBoundingClientRect))return;S=n.value.getBoundingClientRect().left},d=({clientWidth:Y})=>{L=Y,T=Y/100*A,f()},R=({clientWidthLocal:Y,clientXTableParent:b,previewBoxWidth:$})=>{if(!n.value)return;const M=Y-b-$;n.value.style.width=`${M}px`},C=({clientX:Y=0,previewRef:b,previewBoxWidth:$=0})=>{let M=$||L-Y;M<l?M=l:M>T&&(M=T),R({clientWidthLocal:L,clientXTableParent:S,previewBoxWidth:M}),b&&(b.style.width=`${M}px`)},I=({previewRef:Y})=>{n_(Y,"style.removeProperty")&&Y.style.removeProperty("width"),n_(n,"value.style.removeProperty")&&n.value.style.removeProperty("width")},O=({previewRef:Y})=>{L=document.documentElement.clientWidth,c=n_(a,"value.offsetWidth",0),f(),C({previewRef:Y,previewBoxWidth:E.value})},p=({previewRef:Y,isOpen:b})=>{b?O({previewRef:Y}):I({previewRef:Y})},U=({previewRightWidth:Y})=>{t("mouseupResizePreviewRight",{previewRightWidth:Y})},D=()=>{O({previewRef:s.value})},V=new ResizeObserver(gr(Y=>{const b=Y[0].contentRect;c!==b.width&&(c=b.width,D())},300)),B=()=>{V.observe(a.value)},y=()=>{V.unobserve(a.value)};return e.onBeforeUnmount(()=>{o(),y()}),{addEventListenerWindowResize:B,mousedownResizePreviewRight:d,mousemoveResizePreviewRight:C,mouseupResizePreviewRight:U,removeEventListenerWindowResize:y,togglePreviewResize:p}}function j0(_,t,{aTableRef:n=e.ref({}),isMobile:E=e.ref(void 0),previewBoxWidthRemLocal:a=e.computed(()=>0),rowsLocalAll:s=e.computed(()=>[]),tableGrandparentRef:o=e.ref({})}){const{isDropdownGlobalOpen:l}=NT(),{addEventListenerWindowResize:A,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:L,mouseupResizePreviewRight:S,removeEventListenerWindowResize:c,togglePreviewResize:f}=X0(_,t,{aTableRef:n,previewBoxWidthRemLocal:a,tableGrandparentRef:o}),d=e.toRef(_,"keyId"),R=e.toRef(_,"preview"),C=e.toRef(_,"id"),I=t.emit,O=e.ref({}),p=e.ref(void 0),U=e.ref(void 0),D=e.computed(()=>!!R.value),V=({rowIndex:l_})=>{window.isScrollDisabled||setTimeout(()=>{const N_=`#${C.value}_${l_}`;Ce({selector:N_})})},B=()=>{window.isScrollDisabled||setTimeout(()=>{const l_=`#${aR({tableId:C.value})}`;Ce({selector:l_})})},y=e.computed(()=>R.value==="right"||E.value),Y=e.computed(()=>!t_(p.value)),b=()=>{V({rowIndex:p.value}),I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),U.value=p.value,p.value=void 0,c()},$=()=>{I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),U.value=void 0,p.value=void 0,c()},M=e.computed(()=>R.value==="down"),W=({rowIndex:l_,row:N_})=>{const L_=Zi({row:N_,rowIndex:l_,keyId:d.value});delete O.value[L_]},H=()=>{O.value={}},w=()=>{$(),H()},K=({rowIndex:l_,row:N_}={})=>{y.value?b():M.value&&W({rowIndex:l_,row:N_})},x=({rowIndex:l_})=>{!E.value&&w_(p.value)&&A(),I("togglePreview",{row:s.value[l_],rowIndex:l_,typeToggle:"open"}),p.value=l_,U.value=void 0,B()},X=({rowIndex:l_})=>{p.value===l_?b():x({rowIndex:l_})},r_=({rowIndex:l_,row:N_})=>{const L_=Zi({row:N_,rowIndex:l_,keyId:d.value});O.value[L_]?delete O.value[L_]:O.value[L_]=!0};return{closePreview:K,closePreviewAll:w,hasPreview:D,isPreviewRightOpen:Y,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:L,mouseupResizePreviewRight:S,onTogglePreview:({row:l_,rowIndex:N_})=>{if(!l.value){if(y.value){X({rowIndex:N_});return}M.value&&r_({row:l_,rowIndex:N_})}},previewDownRowIds:O,previewRightRowIndex:p,previewRightRowIndexLast:U,togglePreviewResize:f}}function z0(_,{dataSorted:t=e.computed(()=>[]),limit:n=e.ref(0),offset:E=e.ref(0),setEmptySelectedRowsIndexes:a=()=>{},usePaginationLocal:s=e.computed(()=>!1)}){const o=e.toRef(_,"clearSelectedRowsOnDataChange"),l=e.toRef(_,"pagination"),A=e.toRef(_,"rowsCountRenderPerTick"),T=e.ref([]),L=e.ref([]);let S=!0,c=0,f;const d=e.computed(()=>{if(n.value&&!l.value.isOutside&&s.value){const y=E.value,Y=y+n.value;return t.value.slice(y,Y)}return t.value}),R=e.computed(()=>d.value),C=e.computed(()=>R.value.length),I=e.computed(()=>!!C.value),O=()=>{const y=c*A.value,Y=y+A.value;Ct(d.value.slice(y,Y),b=>L.value.push(b)),c++},p=()=>{f=setInterval(()=>{c*A.value>=d.value.length?clearInterval(f):O()})},U=()=>{clearInterval(f)},D=({row:y,rowIndex:Y})=>{Y>L.value.length-1||(L.value[Y]=y)},V=({row:y})=>{L.value.unshift(y)},B=({index:y})=>{L.value.splice(y,1)};return e.watch(d,y=>{Br(y,T.value)||(T.value=[...y],!S&&o.value&&a(),S=!1,L.value=[],c=0,U(),A.value>0?(O(),p()):L.value=d.value)},{immediate:!0,deep:!0}),{addRow:V,deleteRow:B,hasRows:I,rowsLocal:L,rowsLocalAll:R,rowsLocalLength:C,stopRenderRows:U,updateRow:D}}function J0(_,{emit:t},{columnActionsWidthLocal:n=e.computed(()=>0),columnActionsWidthMinLocal:E=e.computed(()=>0),columnsOrdered:a=e.computed(()=>[]),columnsScrollInvisible:s=e.ref([]),columnWidthDefaultRemLocal:o=e.computed(()=>0),indexFirstScrollInvisibleColumn:l=e.ref(void 0),isMobile:A=e.ref(!1),isMultipleActionsActive:T=e.ref(void 0),modelColumnsVisibleLocal:L=e.ref({}),modelIsTableWithoutScroll:S=e.ref(!1),modelIsTableWithoutScrollComputed:c=e.computed(()=>!1)}){const f=e.toRef(_,"isActionColumnVisible"),d=e.toRef(_,"isSimpleTable"),R=e.toRef(_,"useRem"),{scalePxWithRem:C}=or(),I=e.ref(void 0),O=e.ref(0),p=e.ref(void 0);let U=!1;const D=20,V=x=>R.value?C(x):x,B=e.computed(()=>f.value?E.value:0),y=e.computed(()=>{const x=T.value?E.value:0,X=d.value?0:D;return x+X}),Y=({sumGrows:x=0,freeSpaceWidth:X=0})=>{x>0?O.value=X/x:O.value=0},b=()=>{if(t_(l.value)||a.value.length<l.value)s.value=[];else{const x=[];for(let X=l.value;X<a.value.length;X++){const r_=a.value[X];Co({column:r_,modelColumnsVisibleLocal:L.value})&&x.push(e_(r_))}s.value=x}},$=()=>{s.value=[],O.value=0,l.value=1e3,p.value=0},M=()=>{if(A.value||p.value===0){$();return}if(w_(p.value))return;const x=p.value-y.value-B.value,X=p.value-y.value-n.value;let r_=0,h_=0,l_=0,N_=!1;if(j(a.value,m_=>{if(!Co({column:m_,modelColumnsVisibleLocal:L.value})){h_++;return}const Q=+V(m_.width)||o.value;if(r_+Q>x)return N_=!0,!1;r_+=Q,h_++,l_+=t_(m_.grow)?1:m_.grow}),N_&&r_>X)for(let m_=h_-1;m_>=0;m_--){h_--;const Q=a.value[h_];if(!Co({column:Q,modelColumnsVisibleLocal:L.value}))continue;const R_=+V(Q.width)||o.value;if(r_-=R_,l_-=t_(Q.grow)?1:Q.grow,r_<=X)break}let L_=0;const G_=N_?X:x;(c.value||h_===a.value.length)&&(L_=G_-r_),l.value=h_,Y({sumGrows:l_,freeSpaceWidth:L_}),b()},W=({entries:x,forceAdjust:X})=>{const r_=x[0].contentRect;(X||p.value>r_.width+D||p.value<r_.width-D)&&(U||(U=!0,p.value=r_.width,M(),U=!1))},H=new ResizeObserver(gr(x=>{w_(p.value)?W({entries:x,forceAdjust:!0}):W({entries:x})},300)),w=x=>{x?(H.unobserve(I.value),$()):(H.observe(I.value),S.value&&M())},K=x=>{S.value=x,t("updateModelIsTableWithoutScroll",x),S.value&&M()};return e.onMounted(()=>{A.value||H.observe(I.value)}),e.onBeforeUnmount(()=>{H.unobserve(I.value)}),e.watch(a,()=>{M()}),{aTableRef:I,changeModelIsTableWithoutScroll:K,checkVisibleColumns:M,columnsVisibleAdditionalSpaceForOneGrow:O,onWatchMobileScrollControl:w}}function Z0(_){const t=e.toRef(_,"hasMobile"),n=e.toRef(_,"isActionColumnVisible"),E=e.toRef(_,"isActionIconVisible"),a=e.toRef(_,"isColumnsDnd"),s=e.toRef(_,"isSimpleTable"),o=e.toRef(_,"modelIsTableWithoutScrollStart"),l=e.toRef(_,"rowActions"),A=e.ref(void 0),T=()=>{A.value=o.value},{isMobileWidth:L}=Dt(),S=e.computed(()=>s.value?l.value&&!!l.value.length&&n.value:n.value),c=e.computed(()=>!!(E.value&&!s.value)),f=e.computed(()=>!!(a.value&&!s.value)),d=e.computed(()=>t.value?!!L.value:!1),R=e.computed(()=>s.value?!1:A.value);return{initModelIsTableWithoutScroll:T,isActionColumnVisibleLocal:S,isActionIconVisibleLocal:c,isColumnsDndLocal:f,isMobile:d,modelIsTableWithoutScroll:A,modelIsTableWithoutScrollComputed:R}}function Q0(_,{viewCurrent:t=e.computed(()=>({}))}){const n=e.toRef(_,"data"),E=e.toRef(_,"isSortingOutside"),a=e.toRef(_,"modelSort"),s=e.toRef(_,"useAdditionalSorting"),o=e.ref([]),l=e.computed(()=>s.value?t.value?t.value.useAdditionalSorting||!1:!0:!1),A=()=>{ue(a.value)?o.value=[a.value]:p_(a.value)&&(o.value=e_(a.value))},T=e.computed(()=>{const S={models:[],directions:[]};return o.value.length&&j(o.value,c=>{let f="asc",d=c;GA(c,"-")&&(f="desc",d=c.slice(1)),S.models.push(d),S.directions.push(f)}),S}),L=e.computed(()=>o.value.length&&!E.value?Fs(n.value||[],T.value.models,T.value.directions):n.value||[]);return e.watch(a,()=>{A()}),{dataSorted:L,initModelSort:A,modelSortLocal:o,useAdditionalSortingLocal:l}}function _1(_,{emit:t},{modelSortLocal:n=e.ref([]),closePreviewAll:E=()=>{}}){const a=e.toRef(_,"id"),s=e.toRef(_,"isSortingMultiColumn"),o=e.toRef(_,"sortingMultiColumnKey"),l=e.computed(()=>`${o.value}Key`),A=c=>s.value&&c[l.value],T=({sortId:c})=>{const f=n.value.indexOf(c);if(f!==-1){n.value.splice(f,1,`-${c}`);return}const d=n.value.indexOf(`-${c}`);if(d!==-1){n.value.splice(d,1);return}n.value.push(c)},L=({sortId:c})=>{if(n.value.indexOf(c)!==-1){n.value=[`-${c}`];return}if(n.value.indexOf(`-${c}`)!==-1){n.value=[];return}n.value=[c]};return{changeModelSort:({sortId:c,$event:f,modelAll:d})=>{d?n.value=d:A(f)?T({sortId:c}):L({sortId:c}),t("changeSorting",{modelSort:e_(n.value)}),Ve.$emit("changeTableSorting",{modelSort:e_(n.value),tableId:a.value}),E()}}}function e1(_,{isMobile:t=e.ref(void 0),modelIsTableWithoutScrollComputed:n=e.computed(()=>{})}){const E=e.toRef(_,"rowActionsSticky");return{isRowActionsStickyLocal:e.computed(()=>!!(!t.value&&E.value&&!n.value))}}function t1(_,{countNotHiddenColumns:t=e.computed(()=>-1),isMobile:n=e.ref(!1)}){const E=e.toRef(_,"id"),a=e.toRef(_,"isLabelVisible"),s=e.computed(()=>{const A={};return n.value||(A.role="table",A["aria-colcount"]=t.value),A}),o=e.computed(()=>n.value?"list":"rowgroup"),l=e.computed(()=>{if(a.value)return sR({tableId:E.value})});return{tableChildRole:o,tableLabelId:l,tableRoleAttributes:s}}function n1(_,{emit:t},{modelColumnsVisibleLocal:n=e.ref({}),checkVisibleColumns:E=()=>{}}){return{changeModelColumnsVisible:s=>{n.value=s,t("update:modelColumnsVisible",e_(n.value)),E()}}}function E1(_){const t=e.toRef(_,"texts");return{emptyText:e.computed(()=>w_(t.value.empty)?"_A_TABLE_EMPTY_TEXT_":t.value.empty)}}function a1(){const _=e.ref([]),t=e.ref(void 0),n=e.ref(void 0),E=e.ref({}),a=e.ref(void 0),s=e.ref(void 0);return{columnsScrollInvisible:_,indexFirstScrollInvisibleColumn:t,isMultipleActionsActive:n,modelColumnsVisibleLocal:E,tableGrandparentRef:a,tableRef:s}}function r1(_,{emit:t},{closePreviewAll:n=()=>{}}){const E=e.toRef(_,"views"),a=e.toRef(_,"modelFilters"),s=e.toRef(_,"modelView"),o=e.computed(()=>Ra(E.value,"id")),l=e.computed(()=>o.value[s.value]),A=e.computed(()=>E.value.length>1),T=()=>{if(A.value){const c=_r(E.value,["active",!0]);let f=E.value[0].id;c&&(f=c.id),t("updateView",{_modelView:f,view:o.value[f],modelFilters:a.value,init:!0})}},L=c=>{n(),t("updateView",{_modelView:c,view:o.value[c],modelFilters:a.value})},S=e.computed(()=>!l.value||l.value.type==="table");return{hasViews:A,initViewCurrent:T,isViewTableVisible:S,updateViewCurrent:L,viewCurrent:l}}function s1(_){const t=e.toRef(_,"columnActionsWidth"),n=e.toRef(_,"columnActionsWidthDefaults"),E=e.toRef(_,"columnActionsWidthMin"),a=e.toRef(_,"columnWidthDefault"),s=e.toRef(_,"previewBoxWidth"),o=e.toRef(_,"useRem"),{scalePxWithRem:l}=or(),A=e.computed(()=>o.value?l(t.value):t.value),T=e.computed(()=>o.value?l(E.value):E.value),L=e.computed(()=>o.value?l(a.value):a.value),S=e.computed(()=>o.value?l(s.value):s.value);return{columnActionsWidthDefaultsRemLocal:e.computed(()=>o.value?{default:l(n.value.default||170),min:l(n.value.min||50),onePlusDropdown:l(n.value.onePlusDropdown||320),onePlusDropdownMin:l(n.value.onePlusDropdownMin||200),btnGroupMaxWidth:l(n.value.btnGroupMaxWidth||180)}:n.value),columnActionsWidthMinRemLocal:T,columnActionsWidthRemLocal:A,columnWidthDefaultRemLocal:L,previewBoxWidthRemLocal:S}}function o1(_,{isMobile:t=e.computed(()=>!1)}){const n=e.toRef(_,"pagination");return{paginationModes:e.computed(()=>{var a,s,o,l;return t.value?((s=(a=n.value)==null?void 0:a.modes)==null?void 0:s.mobile)||{perPage:{mode:"select",position:0,showTextCountFromTo:!1},pagination:{mode:"short",position:1}}:((l=(o=n.value)==null?void 0:o.modes)==null?void 0:l.desktop)||{perPage:{mode:"group",position:0,showTextCountFromTo:!0},pagination:{mode:"normal",position:1}}})}}const i1={name:"ATable",props:{additionalSortingColumns:{type:Array,required:!1,default:()=>[]},clearSelectedRowsOnDataChange:{type:Boolean,required:!1,default:!0},columnActionsOnePlusDropdownOptions:{type:Object,required:!1,default:()=>({actionsClasses:["a_btn a_btn_primary a_text_truncate"],btnGroupClass:"a_btn_group a_btn_group_table",hasDividerBeforeDropdown:!1,indexFirstDropdownAction:1,indexFirstDropdownActionMobile:1,minDropdownActions:1})},columnActionsView:{type:String,required:!1,default:"dropdown",validator:_=>["onePlusDropdown","onePlusDropdownEmptyPlace","dropdown"].indexOf(_)!==-1},columnActionsWidth:{type:Number,required:!1,default:void 0},columnActionsWidthDefaults:{type:Object,required:!1,default:()=>({default:170,min:50,onePlusDropdown:320,onePlusDropdownMin:200,btnGroupMaxWidth:180})},columnActionsWidthMin:{type:Number,required:!1,default:void 0},columns:{type:Array,required:!0},columnsDefaultValue:{type:[String,Number],required:!1,default:""},columnWidthDefault:{type:Number,required:!1,default:250},countAllRows:{type:Number,required:!1,default:void 0},countVisibleMobileColumns:{type:Number,required:!1,default:4,validator:_=>_>0},borderType:{type:String,required:!1,default:()=>Zr.value.propsDefault.borderType,validator:_=>["bordered","innerBordered"].indexOf(_)!==-1},data:{type:[Array,Object,Promise],required:!1},disabledActions:{type:Boolean,required:!1},disabledMultipleActions:{type:Boolean,required:!1},disabledOptions:{type:Boolean,required:!1},disabledPreview:{type:Boolean,required:!1},disabledPreviewRowCallback:{type:Function,required:!1},disabledRowActions:{type:Boolean,required:!1},disabledSort:{type:Boolean,required:!1},disabledViews:{type:Boolean,required:!1},extra:{type:Object,required:!1,default:void 0},hasMobile:{type:Boolean,required:!1,default:!0},hasScrollClass:{type:Boolean,required:!1,default:!0},id:{type:String,required:!1,default:()=>Ee("a_table")},isActionColumnVisible:{type:Boolean,required:!1,default:!1},isActionIconVisible:{type:Boolean,required:!1,default:!0},isColumnsDnd:{type:Boolean,required:!1,default:!1},isLabelVisible:{type:Boolean,required:!1,default:!0},isLoadingMultipleActions:{type:Boolean,required:!1},isLoadingOptions:{type:Boolean,required:!1},isLoadingTable:{type:Boolean,required:!1},isQuickSearch:{type:Boolean,required:!1},isSimpleTable:{type:Boolean,required:!1,default:!1},isSortingMultiColumn:{type:Boolean,required:!1,default:!1},isSortingOutside:{type:Boolean,required:!1},isTree:{type:Boolean,required:!1},isTreeCollapsible:{type:Boolean,required:!1,default:!0},isTreeOpened:{type:Boolean,required:!1},keyCountAllRowsInData:{type:String,required:!1,default:"count"},keyId:{type:String,required:!1,default:void 0},keyChildren:{type:String,required:!1,default:"children"},label:{type:[String,Number],required:!1,default:""},labelClass:{type:[String,Object],required:!1,default:void 0},labelTag:{type:String,required:!1,default:"h2"},modelColumnsOrdering:{type:Array,required:!1,default:()=>[]},modelColumnsVisible:{type:Object,required:!1,default:()=>({})},modelIsTableWithoutScrollStart:{type:Boolean,required:!1,default:!1},modelQuickSearch:{type:String,required:!1,default:""},modelSort:{type:[String,Array],required:!1,default:()=>[]},modelView:{type:[String,Number],required:!1,default:void 0},multipleActions:{type:Array,required:!1,default:()=>[]},offsetStart:{type:Number,required:!1,default:0},pagination:{type:Object,required:!1,default:()=>({use:!1,maxPages:5,limitsPerPage:[],limitStart:10,disabled:!1,isOutside:!1,outside:!1,position:"bottom",modes:{desktop:{pagination:{mode:"normal",position:0},perPage:{mode:"inline",position:1}},mobile:{pagination:{mode:"loadMore"}}}})},preview:{type:String,required:!1,default:void 0,validator:_=>["right","down"].indexOf(_)!==-1},previewBoxWidth:{type:Number,required:!1,default:300},previewStyles:{type:[String,Object],required:!1,default:void 0},rowActions:{type:Array,required:!1,default:()=>[]},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowActionsSticky:{type:Boolean,required:!1,default:!0},rowClass:{type:[String,Object,Function],required:!1,default:void 0},rowsCountRenderPerTick:{type:Number,required:!1,default:25,validator:_=>fn(_)&&_>=0},rowsFooter:{type:Array,required:!1,default:()=>[]},showCount:{type:Boolean,required:!1,default:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1,default:!1},sortingMultiColumnKey:{type:String,required:!1,default:"shift",validator:_=>["shift","ctrl","alt"].indexOf(_)!==-1},sortingSequenceNumberClass:{type:[String,Object],required:!1,default:"a_badge"},tableActions:{type:Array,required:!1,default:()=>[]},tableActionsIndexFirstDropdownAction:{type:Number,required:!1,default:-1},tableActionsIndexFirstDropdownActionMobile:{type:Number,required:!1,default:0},texts:{type:Object,required:!1,default:()=>({empty:"_A_TABLE_EMPTY_TEXT_"})},useAdditionalSorting:{type:Boolean,required:!1,default:!0},useViewSlot:{type:Boolean,required:!1},useRem:{type:Boolean,required:!1,default:!0},valuesForColumnDefault:{type:Array,required:!1,default:()=>[null,void 0,""]},views:{type:Array,required:!1,default:()=>[]}},emits:["changeColumnsOrdering","changeColumnsVisible","changeLimit","changeOffset","changeSorting","mouseupResizePreviewRight","initTable","togglePreview","toggleMultipleActions","update:modelColumnsOrder","update:modelColumnsVisible","update:modelQuickSearch","updateModelIsTableWithoutScroll","updateView"],provide(){return{changeModelColumnsVisible:this.changeModelColumnsVisible,columnActionsOnePlusDropdownOptions:e.computed(()=>this.columnActionsOnePlusDropdownOptions),columns:e.computed(()=>this.columns),columnsDefaultValue:e.computed(()=>this.columnsDefaultValue),isLoadingOptions:e.computed(()=>this.isLoadingOptions),isLoadingTable:e.computed(()=>this.isLoadingTable),keyId:e.computed(()=>this.keyId),rowActions:e.computed(()=>this.rowActions),tableId:e.computed(()=>this.id),valuesForColumnDefault:e.computed(()=>this.valuesForColumnDefault),useRem:e.computed(()=>this.useRem)}},setup(_,t){const{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,columnWidthDefaultRemLocal:s,previewBoxWidthRemLocal:o}=s1(_),{initModelIsTableWithoutScroll:l,isActionColumnVisibleLocal:A,isActionIconVisibleLocal:T,isColumnsDndLocal:L,isMobile:S,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:f}=Z0(_),{countAllRowsLocal:d}=H0(_),{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:C,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,tableGrandparentRef:p,tableRef:U}=a1(),{scrollToTable:D,setFocusToTable:V}=x0({tableRef:U}),{hasViews:B,initViewCurrent:y,isViewTableVisible:Y,updateViewCurrent:b,viewCurrent:$}=r1(_,t,{closePreviewAll:Un}),{dataSorted:M,initModelSort:W,modelSortLocal:H,useAdditionalSortingLocal:w}=Q0(_,{viewCurrent:$}),{columnsOrderedFromSimpleTable:K,renderedGroupedColumns:x}=v0(_,{modelSort:H}),{columnIdsGroupByLocked:X,columnsFilteredForRender:r_,columnsFilteredForRenderIndexesMapping:h_,columnsOrdered:l_,countNotHiddenColumns:N_}=G0(_,{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:C,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:f,columnsOrderedFromSimpleTable:K}),{changeLimit:L_,changeOffset:G_,initLocalVars:m_,limit:Q,offset:R_,usePaginationBottom:o_,usePaginationLocal:b_,usePaginationTop:k_}=W0(_,t,{closePreviewAll:Un,scrollToTable:D,setFocusToTable:V,viewCurrent:$}),{addRow:ae,deleteRow:d_,hasRows:V_,rowsLocal:v_,rowsLocalAll:z,rowsLocalLength:T_,stopRenderRows:i_,updateRow:I_}=z0(_,{dataSorted:M,limit:Q,offset:R_,setEmptySelectedRowsIndexes:Ma,usePaginationLocal:b_}),{columnActionsBtnGroupMaxWidthStyle:D_,columnActionsWidthLocal:B_,columnActionsWidthMinLocal:F_,isColumnActionWide:K_}=F0(_,{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,isMobile:S,rowsLocal:v_}),{aTableRef:j_,changeModelIsTableWithoutScroll:Le,checkVisibleColumns:Ae,columnsVisibleAdditionalSpaceForOneGrow:De,onWatchMobileScrollControl:Q_}=J0(_,t,{columnActionsWidthLocal:B_,columnActionsWidthMinLocal:F_,columnsOrdered:l_,columnsScrollInvisible:R,columnWidthDefaultRemLocal:s,indexFirstScrollInvisibleColumn:C,isMobile:S,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:f}),{changeColumnsOrdering:oe,checkColumnsOrdering:fe}=w0(_,t,{checkVisibleColumns:Ae,columnIdsGroupByLocked:X,columnsFilteredForRenderIndexesMapping:h_}),{isRowActionsStickyLocal:me}=e1(_,{isMobile:S,modelIsTableWithoutScrollComputed:f}),{areAllRowsSelected:ge,areAllVisibleRowsSelected:st,areSomeRowsSelected:Fe,closeMultipleActionsActive:ot,currentMultipleActions:we,hasMultipleActions:nt,selectedRows:Be,selectedRowsIndexes:it,setEmptySelectedRowsIndexes:en,setSelectedRowsIndexes:$t,toggleBtnAllRows:Ot,toggleMultipleActionsActive:xt}=K0(_,t,{checkVisibleColumns:Ae,isMultipleActionsActive:I,rowsLocalAll:z,rowsLocalLength:T_}),{changeModelColumnsVisible:qt}=n1(_,t,{modelColumnsVisibleLocal:O,checkVisibleColumns:Ae}),{closePreview:cr,closePreviewAll:pn,hasPreview:he,isPreviewRightOpen:lt,onTogglePreview:tn,mousedownResizePreviewRight:nn,mousemoveResizePreviewRight:ra,mouseupResizePreviewRight:oE,previewDownRowIds:Ya,previewRightRowIndex:iE,previewRightRowIndexLast:dt,togglePreviewResize:En}=j0(_,t,{aTableRef:j_,isMobile:S,previewBoxWidthRemLocal:o,rowsLocalAll:z,tableGrandparentRef:p}),{tableChildRole:ga,tableLabelId:Ba,tableRoleAttributes:sa}=t1(_,{countNotHiddenColumns:N_,isMobile:S}),{allVisibleMobileColumns:$a}=k0({columnsOrdered:l_,isMobile:S,modelColumnsVisibleLocal:O}),{changeModelSort:Vt}=_1(_,t,{modelSortLocal:H,closePreviewAll:Un}),{paginationModes:Va}=o1(_,{isMobile:S}),{initTable:oa}=q0(_,t,{checkColumnsOrdering:fe,checkVisibleColumns:Ae,modelColumnsVisibleLocal:O}),{emptyText:ya}=E1(_);function Un(){pn()}function Ma(){en()}return e.watch(S,$_=>{Q_($_),Un()}),e.watch(K_,($_,v)=>{$_!==v&&Ae()}),e.provide("changeModelIsTableWithoutScroll",Le),e.provide("changeModelSort",Vt),e.provide("columnsOrdered",l_),e.provide("columnsFilteredForRender",r_),e.provide("columnsScrollInvisible",R),e.provide("columnWidthDefault",s),e.provide("columnsVisibleAdditionalSpaceForOneGrow",De),e.provide("columnActionsWidthLocal",B_),e.provide("columnActionsWidthMinLocal",F_),e.provide("currentMultipleActions",we),e.provide("hasPreview",he),e.provide("indexFirstScrollInvisibleColumn",C),e.provide("isActionColumnVisible",A),e.provide("isActionIconVisible",T),e.provide("isColumnsDnd",L),e.provide("isMobile",S),e.provide("isMultipleActionsActive",I),e.provide("modelIsTableWithoutScroll",f),e.provide("onTogglePreview",tn),e.provide("previewRightRowIndex",iE),e.provide("previewRightRowIndexLast",dt),e.provide("rowsLocalAll",z),e.provide("modelColumnsVisibleLocal",O),e.provide("changeColumnsOrdering",oe),m_(),l(),y(),oa(),W(),{addRow:ae,allVisibleMobileColumns:$a,areAllRowsSelected:ge,areAllVisibleRowsSelected:st,areSomeRowsSelected:Fe,aTableRef:j_,changeLimit:L_,changeModelColumnsVisible:qt,changeOffset:G_,checkVisibleColumns:Ae,closeMultipleActionsActive:ot,closePreview:cr,closePreviewAll:Un,columnActionsBtnGroupMaxWidthStyle:D_,columnsFilteredForRender:r_,columnsOrdered:l_,countAllRowsLocal:d,deleteRow:d_,emptyText:ya,hasMultipleActions:nt,hasRows:V_,hasViews:B,isMobile:S,isMultipleActionsActive:I,isPreviewRightOpen:lt,isRowActionsStickyLocal:me,isViewTableVisible:Y,limit:Q,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:f,modelSortLocal:H,mousedownResizePreviewRight:nn,mousemoveResizePreviewRight:ra,mouseupResizePreviewRight:oE,offset:R_,onTogglePreview:tn,paginationModes:Va,previewDownRowIds:Ya,previewRightRowIndex:iE,renderedGroupedColumns:x,rowsLocal:v_,rowsLocalAll:z,rowsLocalLength:T_,selectedRows:Be,selectedRowsIndexes:it,setEmptySelectedRowsIndexes:Ma,setSelectedRowsIndexes:$t,stopRenderRows:i_,tableChildRole:ga,tableGrandparentRef:p,tableLabelId:Ba,tableRef:U,tableRoleAttributes:sa,toggleBtnAllRows:Ot,toggleMultipleActionsActive:xt,togglePreviewResize:En,updateRow:I_,updateViewCurrent:b,useAdditionalSortingLocal:w,usePaginationBottom:o_,usePaginationLocal:b_,usePaginationTop:k_,viewCurrent:$}},data(){return{resolved:void 0,error:void 0}},computed:{hasRowsFooter(){return this.rowsFooter.length>0}},methods:{updateModelQuickSearch(_){this.$emit("update:modelQuickSearch",_)}},render(){return e.h("div",{ref:"tableGrandparentRef",class:["a_table__grandparent",{a_table_mobile:this.isMobile,a_table__grandparent_without_scroll:!this.hasScrollClass}]},[this.$slots.tablePrepend&&this.$slots.tablePrepend({id:this.id}),e.h("div",{ref:"aTableRef",class:["a_table__parent",{a_table__parent_scrollable:this.hasScrollClass&&!this.modelIsTableWithoutScrollComputed}]},[e.h(O0,{additionalSortingColumns:this.additionalSortingColumns,areAllRowsSelected:this.areAllRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,closeMultipleActionsActive:this.closeMultipleActionsActive,countAllRows:this.countAllRowsLocal,disabledActions:this.disabledActions,disabledMultipleActions:this.disabledMultipleActions,disabledSort:this.disabledSort,disabledViews:this.disabledViews,extra:this.extra,hasViews:this.hasViews,isLabelVisible:this.isLabelVisible,isLoadingMultipleActions:this.isLoadingMultipleActions,isQuickSearch:this.isQuickSearch,isSortingMultiColumn:this.isSortingMultiColumn,label:this.label,labelClass:this.labelClass,labelTag:this.labelTag,modelQuickSearch:this.modelQuickSearch,modelSort:this.modelSortLocal,modelView:this.modelView,multipleActions:this.multipleActions,selectedRows:this.selectedRows,showCount:this.showCount,tableActions:this.tableActions,tableActionsIndexFirstDropdownAction:this.tableActionsIndexFirstDropdownAction,tableActionsIndexFirstDropdownActionMobile:this.tableActionsIndexFirstDropdownActionMobile,useAdditionalSorting:this.useAdditionalSortingLocal,useViewSlot:this.useViewSlot,viewCurrent:this.viewCurrent,views:this.views,onUpdateViewCurrent:this.updateViewCurrent,onUpdateModelQuickSearch:this.updateModelQuickSearch,onToggleMultipleActionsActive:this.toggleMultipleActionsActive,onToggleBtnAllRows:this.toggleBtnAllRows},this.$slots),this.$slots.topPanelAppend?this.$slots.topPanelAppend():"",this.usePaginationLocal&&this.usePaginationTop&&this.hasRows?e.h(kT,{class:"a_table__pagination_top",disabled:this.pagination.disabled,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,modes:this.paginationModes,maxPages:this.pagination.maxPages,offset:this.offset,rowsLength:this.rowsLocalLength,totalCount:this.countAllRowsLocal,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isViewTableVisible&&e.h("div",{ref:"tableRef","aria-labelledby":this.isLabelVisible?this.tableLabelId:void 0,class:["a_table",{a_table_simple:this.isSimpleTable,a_table_bordered:this.borderType==="bordered",a_table_inner_bordered:this.borderType==="innerBordered"}],...this.tableRoleAttributes},[this.isSimpleTable?e.h(zw,{areAllRowsSelected:this.areAllRowsSelected,areAllVisibleRowsSelected:this.areAllVisibleRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,disabledOptions:this.disabledOptions,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSortLocal,rowsLocalLength:this.rowsLocalLength,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes,columnsForRender:this.renderedGroupedColumns}):e.h(n0,{areAllRowsSelected:this.areAllRowsSelected,areAllVisibleRowsSelected:this.areAllVisibleRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,disabledOptions:this.disabledOptions,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSortLocal,rowsLocalLength:this.rowsLocalLength,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes}),e.h("div",{class:"a_table__loading"},[e.h(wT,{isLoading:this.isLoadingTable},()=>[e.h("div",{class:"a_table__body",role:this.tableChildRole},{default:()=>this.rowsLocal.map((_,t)=>{const n=Zi({row:_,rowIndex:t,keyId:this.keyId});return e.h(hR,{key:n,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreview,disabledPreviewRowCallback:this.disabledPreviewRowCallback,disabledRowActions:this.disabledRowActions,isFooter:!1,isPreviewDownOpen:this.previewDownRowIds[n],isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:1,row:_,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:t,rowIndexPath:`${t}`,rowsLength:this.rowsLocal.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Xi,{data:E.row,keyLabel:E.column.keyLabel,filter:E.column.filter,filterParameters:E.column.filterParameters,defaultValue:E.column.defaultValue,tag:E.column.filterTag||"div"})],...this.$slots})})}),this.isViewTableVisible&&!this.hasRows&&e.h(f_,{class:"a_table__empty_text",text:this.emptyText}),this.hasRowsFooter&&e.h("div",{class:"a_table__footer",role:this.tableChildRole},this.rowsFooter.map((_,t)=>{const n=Zi({row:_,rowIndex:t,keyId:this.keyId});return e.h(hR,{key:n,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreview,disabledPreviewRowCallback:this.disabledPreviewRowCallback,disabledRowActions:this.disabledRowActions,isFooter:!0,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:1,row:_,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:t,rowIndexPath:`${t}`,rowsLength:this.rowsFooter.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Xi,{data:E.row,keyLabel:E.column.footerPath,filter:E.column.footerFilter,filterParameters:E.column.footerFilterParameters,defaultValue:E.column.footerDefaultValue})],...this.$slots})}))])])]),!this.isViewTableVisible&&this.viewCurrent&&this.$slots[this.viewCurrent.type]&&this.$slots[this.viewCurrent.type]({isLoading:this.isLoadingTable,rows:this.rowsLocalAll}),this.usePaginationLocal&&this.usePaginationBottom&&this.hasRows?e.h(kT,{class:"a_table__pagination_bottom",disabled:this.pagination.disabled,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,maxPages:this.pagination.maxPages,modes:this.paginationModes,offset:this.offset,rowsLength:this.rowsLocalLength,totalCount:this.countAllRowsLocal,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isPreviewRightOpen?e.h(l0,{countAllRows:this.countAllRowsLocal,isMobile:this.isMobile,isLoadingTable:this.isLoadingTable,limitPagination:this.limit,offsetPagination:this.offset,previewStyles:this.previewStyles,rowIndex:this.previewRightRowIndex,rows:this.rowsLocalAll,disabledPreviewRowCallback:this.disabledPreviewRowCallback,usePagination:!!this.usePaginationLocal,onClosePreview:this.closePreview,onMousedownResizePreviewRight:this.mousedownResizePreviewRight,onMousemoveResizePreviewRight:this.mousemoveResizePreviewRight,onMouseupResizePreviewRight:this.mouseupResizePreviewRight,onTogglePreview:this.onTogglePreview,onTogglePreviewResize:this.togglePreviewResize,"onUpdate:offset":this.changeOffset},this.$slots):""])])}};function IR(_){const t=e.toRef(_,"activeTabIdLocal"),n=e.toRef(_,"index"),E=e.toRef(_,"keyId"),a=e.toRef(_,"parentId"),s=e.toRef(_,"tab"),o=e.computed(()=>E.value?n_(s.value,E.value):n.value),l=e.computed(()=>t.value===o.value),A=e.computed(()=>`${a.value}_${n.value}`);return{idForContent:e.computed(()=>`${A.value}_content`),idLocal:A,isActive:l,tabIdLocal:o}}function l1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyContent");return{contentLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}const A1={name:"ATabsContent",props:{activeTabIdLocal:{type:[String,Number],required:!0},index:{type:Number,required:!0},keyContent:{type:String,required:!1,default:"content"},keyId:{type:String,required:!1,default:void 0},parentId:{type:String,required:!0},tab:{type:Object,required:!0}},setup(_){const{idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}=IR(_),{contentLocal:s}=l1(_);return{contentLocal:s,idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}},render(){let _=null;return this.tab.slotContent&&this.$slots[this.tab.slotContent]?_=this.$slots[this.tab.slotContent]({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.$slots.content?_=this.$slots.content({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.contentLocal&&(_=e.h(f_,{html:this.contentLocal})),e.h("div",{id:this.idForContent,"aria-labelledby":this.idLocal,class:["a_tabs__content",{a_tabs__content_show:this.isActive}],role:"tabpanel"},[_])}};function T1({isDisabled:_=e.computed(()=>!1)}){return{tabindexLocal:e.computed(()=>_.value?-1:0)}}function L1(_,{emit:t},{isDisabled:n=e.computed(()=>!1),tabIdLocal:E=e.computed(()=>"")}){const a=e.toRef(_,"index"),s=e.toRef(_,"tab"),o=A=>{n.value||t("changeTab",{$event:A,tab:s.value,tabId:E.value,index:a.value})};return{changeTabLocal:o,keydownTab:A=>{(A.keyCode===E_.enter||A.keyCode===E_.space)&&(o(A),A.stopPropagation(),A.preventDefault())}}}function S1(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"keyDisabled"),E=e.toRef(_,"tab");return{isDisabled:e.computed(()=>{if(t.value||n.value&&n_(E.value,n.value)===!0)return!0})}}function u1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyLabel");return{labelLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}function c1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyTitle");return{titleLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}const d1={name:"ATabsTab",props:{activeTabIdLocal:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1},index:{type:Number,required:!0},isTitleHtml:{type:Boolean,required:!1,default:void 0},keyDisabled:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:"label"},keyTitle:{type:String,required:!1,default:"title"},parentId:{type:String,required:!0},tab:{type:Object,required:!0},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1}},emits:["changeTab"],setup(_,t){const{idForContent:n,idLocal:E,isActive:a,tabIdLocal:s}=IR(_),{isDisabled:o}=S1(_),{tabindexLocal:l}=T1({isDisabled:o}),{changeTabLocal:A,keydownTab:T}=L1(_,t,{isDisabled:o,tabIdLocal:s}),{labelLocal:L}=u1(_),{titleLocal:S}=c1(_);return{changeTabLocal:A,idForContent:n,idLocal:E,isActive:a,isDisabled:o,keydownTab:T,labelLocal:L,tabindexLocal:l,tabIdLocal:s,titleLocal:S}},render(){let _=null;return this.tab.slotTab&&this.$slots[this.tab.slotTab]?_=this.$slots[this.tab.slotTab]({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.$slots.tab?_=this.$slots.tab({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.labelLocal&&(_=e.h(f_,{html:this.labelLocal,tag:"span"})),e.h("li",{class:["a_tabs__list__item",this.tab.classLi]},[e.h(O_,{id:this.idLocal,"aria-controls":this.idForContent,ariaDisabled:this.isDisabled,ariaSelected:this.isActive,class:["a_tabs__list__link",this.tab.class,{a_tabs__list__link_active:this.isActive,a_tabs__list__link_disabled:this.isDisabled}],classDefault:"",isTitleHtml:this.isTitleHtml,role:"tab",tabindex:this.tabindexLocal,tag:"a",titlePlacement:this.titlePlacement,type:"button",title:this.titleLocal,onClick:this.changeTabLocal,onKeydown:this.keydownTab},()=>[_])])}};function f1(_,{emit:t}){const n=e.toRef(_,"activeTabId"),E=e.toRef(_,"data"),a=e.toRef(_,"isChangeOutside"),s=e.toRef(_,"keyActive"),o=e.toRef(_,"keyId"),l=e.ref(void 0),A=()=>{t_(n.value)||(l.value=n.value)};return{activeTabIdLocal:l,changeTab:({$event:S,tab:c,tabId:f,index:d})=>{l.value!==f&&(a.value||(l.value=f),t("change",{$event:S,tab:c,tabId:f,index:d}))},initActiveTabIdLocal:()=>{A(),t_(l.value)&&(s.value&&(j(E.value,(S,c)=>{if(n_(S,s.value))return o.value?l.value=n_(S,o.value)||c:l.value=c,!1}),!t_(l.value))||(o.value?l.value=n_(E.value,`[0].${o.value}`)||0:l.value=0))},setActiveTabIdLocal:A}}const R1={name:"ATabs",props:{activeTabId:{type:[String,Number],required:!1,default:void 0},data:{type:Array,required:!0},disabled:{type:Boolean,required:!1,default:void 0},id:{type:String,required:!1,default:()=>Ee("a_tabs_")},isBoxed:{type:Boolean,required:!1,default:void 0},isChangeOutside:{type:Boolean,required:!1,default:void 0},isTitleHtml:{type:Boolean,required:!1,default:void 0},isVertical:{type:Boolean,required:!1,default:void 0},keyActive:{type:String,required:!1,default:"active"},keyContent:{type:String,required:!1,default:"content"},keyDisabled:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:"label"},keyTitle:{type:String,required:!1,default:"title"},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1}},emits:["change"],setup(_,t){const n=e.toRef(_,"activeTabId"),{activeTabIdLocal:E,changeTab:a,initActiveTabIdLocal:s,setActiveTabIdLocal:o}=f1(_,t);return s(),e.watch(n,()=>{o()}),{activeTabIdLocal:E,changeTab:a}},render(){return e.h("div",{id:this.id,class:["a_tabs",{a_tabs_boxed:this.isBoxed,a_tabs_vertical:this.isVertical}]},[e.h("div",{class:"a_tabs__box"},[e.h("ul",{class:"a_tabs__list",role:"tablist"},[this.data.map((_,t)=>e.h(d1,{key:t,activeTabIdLocal:this.activeTabIdLocal,disabled:this.disabled,index:t,isTitleHtml:this.isTitleHtml,keyDisabled:this.keyDisabled,keyId:this.keyId,keyLabel:this.keyLabel,keyTitle:this.keyTitle,parentId:this.id,tab:_,titlePlacement:this.titlePlacement,onChangeTab:this.changeTab},this.$slots))])]),e.h("div",{class:"a_tabs__contents"},[this.data.map((_,t)=>e.h(A1,{key:t,activeTabIdLocal:this.activeTabIdLocal,index:t,keyContent:this.keyContent,keyId:this.keyId,parentId:this.id,tab:_},this.$slots))])])}};function OR(_,t){return function(){return _.apply(t,arguments)}}const{toString:C1}=Object.prototype,{getPrototypeOf:JT}=Object,{iterator:Qi,toStringTag:pR}=Symbol,_l=(_=>t=>{const n=C1.call(t);return _[n]||(_[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wn=_=>(_=_.toLowerCase(),t=>_l(t)===_),el=_=>t=>typeof t===_,{isArray:Qr}=Array,_s=el("undefined");function ho(_){return _!==null&&!_s(_)&&_.constructor!==null&&!_s(_.constructor)&&vt(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const UR=wn("ArrayBuffer");function h1(_){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(_):t=_&&_.buffer&&UR(_.buffer),t}const I1=el("string"),vt=el("function"),NR=el("number"),Io=_=>_!==null&&typeof _=="object",O1=_=>_===!0||_===!1,tl=_=>{if(_l(_)!=="object")return!1;const t=JT(_);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pR in _)&&!(Qi in _)},p1=_=>{if(!Io(_)||ho(_))return!1;try{return Object.keys(_).length===0&&Object.getPrototypeOf(_)===Object.prototype}catch{return!1}},U1=wn("Date"),N1=wn("File"),D1=wn("Blob"),m1=wn("FileList"),P1=_=>Io(_)&&vt(_.pipe),b1=_=>{let t;return _&&(typeof FormData=="function"&&_ instanceof FormData||vt(_.append)&&((t=_l(_))==="formdata"||t==="object"&&vt(_.toString)&&_.toString()==="[object FormData]"))},Y1=wn("URLSearchParams"),[g1,B1,$1,V1]=["ReadableStream","Request","Response","Headers"].map(wn),y1=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oo(_,t,{allOwnKeys:n=!1}={}){if(_===null||typeof _>"u")return;let E,a;if(typeof _!="object"&&(_=[_]),Qr(_))for(E=0,a=_.length;E<a;E++)t.call(null,_[E],E,_);else{if(ho(_))return;const s=n?Object.getOwnPropertyNames(_):Object.keys(_),o=s.length;let l;for(E=0;E<o;E++)l=s[E],t.call(null,_[l],l,_)}}function DR(_,t){if(ho(_))return null;t=t.toLowerCase();const n=Object.keys(_);let E=n.length,a;for(;E-- >0;)if(a=n[E],t===a.toLowerCase())return a;return null}const Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mR=_=>!_s(_)&&_!==Tr;function ZT(){const{caseless:_,skipUndefined:t}=mR(this)&&this||{},n={},E=(a,s)=>{const o=_&&DR(n,s)||s;tl(n[o])&&tl(a)?n[o]=ZT(n[o],a):tl(a)?n[o]=ZT({},a):Qr(a)?n[o]=a.slice():(!t||!_s(a))&&(n[o]=a)};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&Oo(arguments[a],E);return n}const M1=(_,t,n,{allOwnKeys:E}={})=>(Oo(t,(a,s)=>{n&&vt(a)?_[s]=OR(a,n):_[s]=a},{allOwnKeys:E}),_),F1=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),G1=(_,t,n,E)=>{_.prototype=Object.create(t.prototype,E),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:t.prototype}),n&&Object.assign(_.prototype,n)},v1=(_,t,n,E)=>{let a,s,o;const l={};if(t=t||{},_==null)return t;do{for(a=Object.getOwnPropertyNames(_),s=a.length;s-- >0;)o=a[s],(!E||E(o,_,t))&&!l[o]&&(t[o]=_[o],l[o]=!0);_=n!==!1&&JT(_)}while(_&&(!n||n(_,t))&&_!==Object.prototype);return t},w1=(_,t,n)=>{_=String(_),(n===void 0||n>_.length)&&(n=_.length),n-=t.length;const E=_.indexOf(t,n);return E!==-1&&E===n},H1=_=>{if(!_)return null;if(Qr(_))return _;let t=_.length;if(!NR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=_[t];return n},x1=(_=>t=>_&&t instanceof _)(typeof Uint8Array<"u"&&JT(Uint8Array)),q1=(_,t)=>{const E=(_&&_[Qi]).call(_);let a;for(;(a=E.next())&&!a.done;){const s=a.value;t.call(_,s[0],s[1])}},W1=(_,t)=>{let n;const E=[];for(;(n=_.exec(t))!==null;)E.push(n);return E},k1=wn("HTMLFormElement"),K1=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,E,a){return E.toUpperCase()+a}),PR=(({hasOwnProperty:_})=>(t,n)=>_.call(t,n))(Object.prototype),X1=wn("RegExp"),bR=(_,t)=>{const n=Object.getOwnPropertyDescriptors(_),E={};Oo(n,(a,s)=>{let o;(o=t(a,s,_))!==!1&&(E[s]=o||a)}),Object.defineProperties(_,E)},j1=_=>{bR(_,(t,n)=>{if(vt(_)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const E=_[n];if(vt(E)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},z1=(_,t)=>{const n={},E=a=>{a.forEach(s=>{n[s]=!0})};return Qr(_)?E(_):E(String(_).split(t)),n},J1=()=>{},Z1=(_,t)=>_!=null&&Number.isFinite(_=+_)?_:t;function Q1(_){return!!(_&&vt(_.append)&&_[pR]==="FormData"&&_[Qi])}const _H=_=>{const t=new Array(10),n=(E,a)=>{if(Io(E)){if(t.indexOf(E)>=0)return;if(ho(E))return E;if(!("toJSON"in E)){t[a]=E;const s=Qr(E)?[]:{};return Oo(E,(o,l)=>{const A=n(o,a+1);!_s(A)&&(s[l]=A)}),t[a]=void 0,s}}return E};return n(_,0)},eH=wn("AsyncFunction"),tH=_=>_&&(Io(_)||vt(_))&&vt(_.then)&&vt(_.catch),YR=((_,t)=>_?setImmediate:t?((n,E)=>(Tr.addEventListener("message",({source:a,data:s})=>{a===Tr&&s===n&&E.length&&E.shift()()},!1),a=>{E.push(a),Tr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(Tr.postMessage)),nH=typeof queueMicrotask<"u"?queueMicrotask.bind(Tr):typeof process<"u"&&process.nextTick||YR,J={isArray:Qr,isArrayBuffer:UR,isBuffer:ho,isFormData:b1,isArrayBufferView:h1,isString:I1,isNumber:NR,isBoolean:O1,isObject:Io,isPlainObject:tl,isEmptyObject:p1,isReadableStream:g1,isRequest:B1,isResponse:$1,isHeaders:V1,isUndefined:_s,isDate:U1,isFile:N1,isBlob:D1,isRegExp:X1,isFunction:vt,isStream:P1,isURLSearchParams:Y1,isTypedArray:x1,isFileList:m1,forEach:Oo,merge:ZT,extend:M1,trim:y1,stripBOM:F1,inherits:G1,toFlatObject:v1,kindOf:_l,kindOfTest:wn,endsWith:w1,toArray:H1,forEachEntry:q1,matchAll:W1,isHTMLForm:k1,hasOwnProperty:PR,hasOwnProp:PR,reduceDescriptors:bR,freezeMethods:j1,toObjectSet:z1,toCamelCase:K1,noop:J1,toFiniteNumber:Z1,findKey:DR,global:Tr,isContextDefined:mR,isSpecCompliantForm:Q1,toJSONObject:_H,isAsyncFn:eH,isThenable:tH,setImmediate:YR,asap:nH,isIterable:_=>_!=null&&vt(_[Qi])};function Z_(_,t,n,E,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),E&&(this.request=E),a&&(this.response=a,this.status=a.status?a.status:null)}J.inherits(Z_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const gR=Z_.prototype,BR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(_=>{BR[_]={value:_}}),Object.defineProperties(Z_,BR),Object.defineProperty(gR,"isAxiosError",{value:!0}),Z_.from=(_,t,n,E,a,s)=>{const o=Object.create(gR);J.toFlatObject(_,o,function(L){return L!==Error.prototype},T=>T!=="isAxiosError");const l=_&&_.message?_.message:"Error",A=t==null&&_?_.code:t;return Z_.call(o,l,A,n,E,a),_&&o.cause==null&&Object.defineProperty(o,"cause",{value:_,configurable:!0}),o.name=_&&_.name||"Error",s&&Object.assign(o,s),o};const EH=null;function QT(_){return J.isPlainObject(_)||J.isArray(_)}function $R(_){return J.endsWith(_,"[]")?_.slice(0,-2):_}function VR(_,t,n){return _?_.concat(t).map(function(a,s){return a=$R(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function aH(_){return J.isArray(_)&&!_.some(QT)}const rH=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function nl(_,t,n){if(!J.isObject(_))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,C){return!J.isUndefined(C[R])});const E=n.metaTokens,a=n.visitor||L,s=n.dots,o=n.indexes,A=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function T(d){if(d===null)return"";if(J.isDate(d))return d.toISOString();if(J.isBoolean(d))return d.toString();if(!A&&J.isBlob(d))throw new Z_("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(d)||J.isTypedArray(d)?A&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function L(d,R,C){let I=d;if(d&&!C&&typeof d=="object"){if(J.endsWith(R,"{}"))R=E?R:R.slice(0,-2),d=JSON.stringify(d);else if(J.isArray(d)&&aH(d)||(J.isFileList(d)||J.endsWith(R,"[]"))&&(I=J.toArray(d)))return R=$R(R),I.forEach(function(p,U){!(J.isUndefined(p)||p===null)&&t.append(o===!0?VR([R],U,s):o===null?R:R+"[]",T(p))}),!1}return QT(d)?!0:(t.append(VR(C,R,s),T(d)),!1)}const S=[],c=Object.assign(rH,{defaultVisitor:L,convertValue:T,isVisitable:QT});function f(d,R){if(!J.isUndefined(d)){if(S.indexOf(d)!==-1)throw Error("Circular reference detected in "+R.join("."));S.push(d),J.forEach(d,function(I,O){(!(J.isUndefined(I)||I===null)&&a.call(t,I,J.isString(O)?O.trim():O,R,c))===!0&&f(I,R?R.concat(O):[O])}),S.pop()}}if(!J.isObject(_))throw new TypeError("data must be an object");return f(_),t}function yR(_){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(E){return t[E]})}function _L(_,t){this._pairs=[],_&&nl(_,this,t)}const MR=_L.prototype;MR.append=function(t,n){this._pairs.push([t,n])},MR.toString=function(t){const n=t?function(E){return t.call(this,E,yR)}:yR;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function sH(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function FR(_,t,n){if(!t)return _;const E=n&&n.encode||sH;J.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=J.isURLSearchParams(t)?t.toString():new _L(t,n).toString(E),s){const o=_.indexOf("#");o!==-1&&(_=_.slice(0,o)),_+=(_.indexOf("?")===-1?"?":"&")+s}return _}class GR{constructor(){this.handlers=[]}use(t,n,E){return this.handlers.push({fulfilled:t,rejected:n,synchronous:E?E.synchronous:!1,runWhen:E?E.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(E){E!==null&&t(E)})}}const vR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oH={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:_L,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},eL=typeof window<"u"&&typeof document<"u",tL=typeof navigator=="object"&&navigator||void 0,iH=eL&&(!tL||["ReactNative","NativeScript","NS"].indexOf(tL.product)<0),lH=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",AH=eL&&window.location.href||"http://localhost",ht={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eL,hasStandardBrowserEnv:iH,hasStandardBrowserWebWorkerEnv:lH,navigator:tL,origin:AH},Symbol.toStringTag,{value:"Module"})),...oH};function TH(_,t){return nl(_,new ht.classes.URLSearchParams,{visitor:function(n,E,a,s){return ht.isNode&&J.isBuffer(n)?(this.append(E,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function LH(_){return J.matchAll(/\w+|\[(\w*)]/g,_).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SH(_){const t={},n=Object.keys(_);let E;const a=n.length;let s;for(E=0;E<a;E++)s=n[E],t[s]=_[s];return t}function wR(_){function t(n,E,a,s){let o=n[s++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),A=s>=n.length;return o=!o&&J.isArray(a)?a.length:o,A?(J.hasOwnProp(a,o)?a[o]=[a[o],E]:a[o]=E,!l):((!a[o]||!J.isObject(a[o]))&&(a[o]=[]),t(n,E,a[o],s)&&J.isArray(a[o])&&(a[o]=SH(a[o])),!l)}if(J.isFormData(_)&&J.isFunction(_.entries)){const n={};return J.forEachEntry(_,(E,a)=>{t(LH(E),a,n,0)}),n}return null}function uH(_,t,n){if(J.isString(_))try{return(t||JSON.parse)(_),J.trim(_)}catch(E){if(E.name!=="SyntaxError")throw E}return(n||JSON.stringify)(_)}const po={transitional:vR,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const E=n.getContentType()||"",a=E.indexOf("application/json")>-1,s=J.isObject(t);if(s&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(wR(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(E.indexOf("application/x-www-form-urlencoded")>-1)return TH(t,this.formSerializer).toString();if((l=J.isFileList(t))||E.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return nl(l?{"files[]":t}:t,A&&new A,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),uH(t)):t}],transformResponse:[function(t){const n=this.transitional||po.transitional,E=n&&n.forcedJSONParsing,a=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(E&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?Z_.from(l,Z_.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],_=>{po.headers[_]={}});const cH=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dH=_=>{const t={};let n,E,a;return _&&_.split(`
|
|
206
|
+
</svg>`,CR={name:"ATableTd",props:{column:{type:Object,required:!0},columnIndex:{type:Number,required:!0},disabledPreview:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},level:{type:Number,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},showIconChildren:{type:Boolean,required:!1}},inject:["isMobile","rowsLocalAll"],setup(_){const{attributesForTd:t}=N0(_),{classForLink:n,isLink:E,toLocal:a}=cR(_),{hasSlot:s,slotName:o}=dR(_),{textOrHtmlRender:l}=fR(_);return{attributesForTd:t,classForLink:n,hasSlot:s,isLink:E,slotName:o,textOrHtmlRender:l,toLocal:a}},render(){const _=e.h("div",this.attributesForTd,[e.h("div",{class:["a_table__cell__child",this.column.class,this.column.classRow]},[this.showIconChildren?e.h(O_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:RR,type:"text"}):"",this.hasSlot&&this.$slots[this.slotName]?this.$slots[this.slotName]({column:this.column,columnIndex:this.columnIndex,level:this.level,row:this.row,rowIndex:this.rowIndex,rows:this.rowsLocalAll}):this.isLink&&this.toLocal?e.h(e.resolveComponent("RouterLink"),{class:[this.column.class,this.classForLink,this.column.classRow],to:this.toLocal},()=>[this.textOrHtmlRender]):this.textOrHtmlRender])]);return this.isMobile?[e.h(f_,{html:this.column.label,tag:"dt"}),e.h("dd",{},[_])]:_}},D0={name:"ATableListItem",inject:["rowsLocalAll"],props:{column:{type:Object,required:!0},columnIndex:{type:Number,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},isFooter:{type:Boolean,required:!1}},setup(_){const{classForLink:t,isLink:n,toLocal:E}=cR(_),{hasSlot:a,slotName:s}=dR(_),{textOrHtmlRender:o}=fR(_);return{classForLink:t,hasSlot:a,isLink:n,slotName:s,textOrHtmlRender:o,toLocal:E}},render(){return[e.h(f_,{text:this.column.label,tag:"dt"}),e.h("dd",null,this.hasSlot&&this.$slots[this.slotName]?this.$slots[this.slotName]({column:this.column,columnIndex:this.columnIndex,row:this.row,rowIndex:this.rowIndex,rows:this.rowsLocalAll}):this.isLink&&this.toLocal?[e.h(e.resolveComponent("RouterLink"),{class:[this.column.class,this.classForLink,this.column.classRow],to:this.toLocal},()=>[this.textOrHtmlRender])]:[this.textOrHtmlRender])]}};function m0(){const _=e.inject("columnsScrollInvisible"),t=e.inject("modelIsTableWithoutScroll"),n=e.computed(()=>_.value.length),E=e.computed(()=>t.value?n.value>0:!1);return{columnsScrollInvisibleText:e.computed(()=>n.value===1?"_A_TABLE_DROPDOWN_HIDE_FIELD_TEXT_":"_A_TABLE_DROPDOWN_HIDE_FIELDS_TEXT_{{count}}_"),countColumnsScrollInvisible:n,isColumnsScrollInvisibleDropdownVisible:E}}function P0(_){const t=e.toRef(_,"columnActionsView"),n=e.toRef(_,"isFooter"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"rowIndexPath"),o=e.inject("columnActionsOnePlusDropdownOptions"),l=e.inject("rowActions"),A=e.inject("tableId"),T=e.computed(()=>{const b=s.value||a.value;return`${A.value}_action_${b}`}),L=e.computed(()=>w_(o.value.indexFirstDropdownAction)?1:o.value.indexFirstDropdownAction),S=({rowAction:b})=>{if(b.text)return b.text;if(U_(b.textCallback))return b.textCallback({row:E.value,rowIndex:a.value,rowAction:b})},c=({rowAction:b})=>{if(b.html)return b.html;if(U_(b.htmlCallback))return b.htmlCallback({row:E.value,rowIndex:a.value,rowAction:b})},f=({rowAction:b})=>{if(b.title)return b.title;if(U_(b.titleCallback))return b.titleCallback({row:E.value,rowIndex:a.value,rowAction:b})},d=({rowAction:b})=>b.disabled?b.disabled:U_(b.disabledCallback)?b.disabledCallback({row:E.value,rowIndex:a.value,rowAction:b}):!1,R=({rowAction:b})=>b.class?b.class:U_(b.classCallback)?b.classCallback({row:E.value,rowIndex:a.value,rowAction:b}):"",C=({rowAction:b})=>{if(b.iconLeft)return b.iconLeft;if(U_(b.iconLeftCallback))return b.iconLeftCallback({row:E.value,rowIndex:a.value,rowAction:b})},I=({rowAction:b})=>{if(b.iconRight)return b.iconRight;if(U_(b.iconRightCallback))return b.iconRightCallback({row:E.value,rowIndex:a.value,rowAction:b})},O=({rowAction:b})=>{if(ue(b.to))return b.to;if(J_(b.to)){const $=e_(b.to),M=$.params||{},W=$.query||{};if(b.to.nameDynamic&&!b.to.name){const H=n_(E.value,b.to.nameDynamic);H&&($.name=H)}if(b.to.paramsDynamic){let H=!1;if(j(b.to.paramsDynamic,(w,K)=>{const x=n_(E.value,w);if(w_(x))return H=!0,!1;M[K]=x}),H)return}if(b.to.queryDynamic){let H=!1;if(j(b.to.queryDynamic,(w,K)=>{const x=n_(E.value,w);if(w_(x))return H=!0,!1;W[K]=x}),H)return}return $.params=M,$.query=W,$}},p=({rowAction:b})=>b.href?b.href:U_(b.hrefCallback)?b.hrefCallback({row:E.value,rowIndex:a.value,rowAction:b}):!1,U=({rowAction:b})=>{if(b.extra)return b.extra;if(U_(b.extraCallback))return b.extraCallback({row:E.value,rowIndex:a.value,rowAction:b})},D=({rowAction:b})=>{if(b.textScreenReader)return b.textScreenReader;if(U_(b.textScreenReaderCallback))return b.textScreenReaderCallback({row:E.value,rowIndex:a.value,rowAction:b})},V=({rowActionIndexVisible:b})=>{if(t.value==="dropdown")return{id:T.value,ids:[T.value,A.value]};if(b<L.value){const $=`${T.value}_${b}`;return{buttonId:$,id:$,ids:[$,A.value]}}return{id:T.value,ids:[T.value,A.value]}},B=b=>{j(b,($,M)=>{eP(M,"Callback")&&(b[M]=void 0)})},y=e.computed(()=>{const b=[];let $=0;return j(e_(l.value),M=>{if(oR({rowAction:M,row:E.value,rowIndex:a.value})){if(M.type!=="divider"){const W=S({rowAction:M});W&&(M.text=W);const H=c({rowAction:M});H&&(M.html=H);const w=f({rowAction:M});w?M.title=w:W&&(M.title=W);const K=d({rowAction:M});K&&(M.disabled=K);const x=R({rowAction:M});x&&(M.class=x);const X=C({rowAction:M});X&&(M.iconLeft=X);const r_=I({rowAction:M});r_&&(M.iconRight=r_);const h_=U({rowAction:M});h_&&(M.extra=h_);const l_=D({rowAction:M});if(h_&&(M.textScreenReader=l_),M.type==="link"){const N_=O({rowAction:M});N_?M.to=N_:M.href=p({rowAction:M})}if(U_(M.callback)){const{buttonId:N_,id:L_,ids:G_}=V({rowActionIndexVisible:$});M.id=N_;const m_=M.callback;M.callback=()=>m_({row:E.value,rowIndex:a.value,id:L_,ids:G_,rowAction:M})}B(M),$++}b.push(M)}}),b}),Y=e.computed(()=>!n.value&&y.value.length>0);return{buttonActionsId:T,isRowActionsDropdownVisible:Y,rowActionsFiltered:y}}function b0(_){const t=e.toRef(_,"rowIndex");return{rowNumber:e.computed(()=>t.value+1)}}const Y0={name:"ATableTdAction",props:{columnActionsBtnGroupMaxWidthStyle:{type:String,required:!1,default:void 0},columnActionsView:{type:String,required:!0},disabledRowActions:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},isRowActionsStickyLocal:{type:Boolean,required:!0},row:{type:Object,required:!0},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowIndex:{type:Number,required:!0},rowIndexPath:{type:String,required:!1,default:void 0}},inject:["columnActionsOnePlusDropdownOptions","columnsScrollInvisible","tableId","useRem"],setup(_){const{isMobileWidth:t}=Dt(),{buttonActionsId:n,isRowActionsDropdownVisible:E,rowActionsFiltered:a}=P0(_),{columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:l}=m0(),{rowNumber:A}=b0(_),{stylesThTd:T}=lR();return{buttonActionsId:n,columnsScrollInvisibleText:s,countColumnsScrollInvisible:o,isColumnsScrollInvisibleDropdownVisible:l,isMobileWidth:t,isRowActionsDropdownVisible:E,rowActionsFiltered:a,rowNumber:A,stylesThTd:T}},render(){return e.h("div",{role:"cell",class:["a_table__td a_table__cell a_table__cell_action",{a_table__cell_action_sticky:this.isRowActionsStickyLocal}],...this.stylesThTd},[e.h("div",{class:["a_table__cell__child",this.rowActionsClass]},[this.isColumnsScrollInvisibleDropdownVisible&&e.h(nE,{buttonClass:"a_btn a_btn_link a_text_nowrap",buttonIconLeft:Nf,buttonIconClass:"a_table__cell_action__additional_icon",buttonTitle:"_A_TABLE_DROPDOWN_HIDE_FIELDS_TITLE_{{count}}_",buttonTextScreenReader:"_A_TABLE_DROPDOWN_HIDE_FIELDS_TITLE_{{count}}_",buttonText:this.columnsScrollInvisibleText,buttonTextClass:"a_table__cell_action__additional_text",buttonTextAriaHidden:!0,extra:{count:this.countColumnsScrollInvisible},dropdownClass:"a_p_0 a_overflow_x_hidden a_table__extra_dropdown",dropdownTag:"div",hasCaret:!1,floatingFlip:{use:!0,fallbackPlacements:["top-end","left"]},inBody:!0,placement:"bottom-end",menuWidth:600,isCloseByClickInside:!1,useRem:this.useRem},{dropdown:()=>[e.h("dl",{class:"a_list_dl a_list_dl_dt_right"},[this.columnsScrollInvisible.map((_,t)=>e.h(D0,{column:_,columnIndex:t,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))])]}),this.isRowActionsDropdownVisible||this.$slots.rowActions?e.h("div",{class:"a_table__cell_action__group"},[this.$slots.rowActions?this.$slots.rowActions({tableId:this.tableId,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):"",this.isRowActionsDropdownVisible?this.columnActionsView==="dropdown"||this.isMobileWidth&&this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile===0?e.h(nE,{id:this.buttonActionsId,actions:this.rowActionsFiltered,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:co,buttonTextScreenReader:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",buttonTitle:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",disabled:this.disabledRowActions,extra:{rowNumber:this.rowNumber},hasCaret:!1,inBody:!0,placement:"bottom-end",useRem:this.useRem},this.$slots):e.h(ji,{class:"a_d_inline_block",style:this.columnActionsBtnGroupMaxWidthStyle,actions:this.rowActionsFiltered,dropdownAttributes:{id:this.buttonActionsId,buttonClass:"a_btn a_btn_secondary a_table__cell_action__btn",buttonIconLeft:yn,buttonTextScreenReader:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",buttonTitle:"_A_TABLE_DROPDOWN_ACTIONS_TITLE_{{rowNumber}}_",extra:{rowNumber:this.rowNumber},hasCaret:!1,inBody:!0,placement:"bottom-end"},disabled:this.disabledRowActions,btnGroupClass:w_(this.columnActionsOnePlusDropdownOptions.btnGroupClass)?"a_btn_group a_btn_group_table":this.columnActionsOnePlusDropdownOptions.btnGroupClass,hasDividerBeforeDropdown:this.columnActionsOnePlusDropdownOptions.hasDividerBeforeDropdown||!1,indexFirstDropdownAction:w_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownAction,indexFirstDropdownActionMobile:w_(this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile)?1:this.columnActionsOnePlusDropdownOptions.indexFirstDropdownActionMobile,minDropdownActions:w_(this.columnActionsOnePlusDropdownOptions.minDropdownActions)?1:this.columnActionsOnePlusDropdownOptions.minDropdownActions,actionsClasses:this.columnActionsOnePlusDropdownOptions.actionsClasses||["a_btn a_btn_primary a_text_truncate"]},this.$slots):""]):""])])}};function g0(_,{hasChildren:t=e.computed(()=>!1),hasPreviewLocal:n=e.computed(()=>!1),rowClassChildren:E=e.computed(()=>{}),rowClassLevelChildren:a=e.computed(()=>{}),rowClassPreview:s=e.computed(()=>{}),toggleChildren:o=()=>{}}){const l=e.toRef(_,"disabledPreview"),A=e.toRef(_,"disabledPreviewRowCallback"),T=e.toRef(_,"isFooter"),L=e.toRef(_,"isTreeCollapsible"),S=e.toRef(_,"level"),c=e.toRef(_,"row"),f=e.toRef(_,"rowClass"),d=e.toRef(_,"rowIndex"),R=e.toRef(_,"rowIndexPath"),C=e.inject("isMobile"),I=e.inject("onTogglePreview"),O=e.inject("tableId"),p=e.computed(()=>{const $=T.value?"_footer":"",M=R.value||d.value;return`${O.value}${$}_${M}`}),U=e.computed(()=>U_(f.value)?f.value({level:S.value,row:c.value,rowindex:d.value}):f.value),D=e.computed(()=>["a_table__row a_table__body__row a_table__row_hover",E.value,a.value,s.value,U.value]),V=e.computed(()=>C.value?"listitem":"row"),B=e.computed(()=>U_(A.value)?A.value({row:c.value,rowIndex:d.value}):l.value),y=$=>{xw({$event:$,tagsName:["A","BUTTON","INPUT","LABEL"],classStop:"a_table__row"})||(t.value?o():n.value&&I({row:c.value,rowIndex:d.value}))},Y=$=>{$.keyCode===E_.enter&&y($)},b=e.computed(()=>(L.value&&t.value||n.value)&&!B.value?{tabindex:0,onClick:y,onKeydown:Y}:{});return{disabledPreviewRow:B,eventsLocal:b,roleLocal:V,rowClassComputed:D,rowHtmlId:p}}function B0(_,{emit:t}){const n=e.toRef(_,"areAllRowsSelected"),E=e.toRef(_,"row"),a=e.toRef(_,"rowIndex"),s=e.toRef(_,"selectedRowsIndexes"),o=e.inject("currentMultipleActions"),l=e.inject("isMultipleActionsActive"),A=e.computed(()=>!!s.value[a.value]||n.value),T=e.computed(()=>{if(l.value){if(U_(n_(o.value,"isHiddenCallback")))return o.value.isHiddenCallback({row:E.value,rowIndex:a.value});if(n.value)return!0}return!1}),L=e.computed(()=>A.value?"_A_TABLE_DESELECT_THIS_ROW_":"_A_TABLE_SELECT_THIS_ROW_");return{isCheckboxDisabled:T,isRowSelected:A,labelCheckbox:L,toggleCheckbox:()=>{T.value||t("setSelectedRowsIndexes",{rowIndex:a.value})}}}function $0(_){const t=e.toRef(_,"isTree"),n=e.toRef(_,"keyChildren"),E=e.toRef(_,"level"),a=e.toRef(_,"row"),s=e.toRef(_,"rowIndex"),o=e.toRef(_,"rowsLength"),l=e.computed(()=>{if(!n.value)return[];const c=n_(a.value,n.value);return p_(c)?c:[]}),A=e.computed(()=>l.value.length>0),T=e.computed(()=>E.value+1),L=e.computed(()=>t.value?{"aria-level":E.value,"aria-posinset":s.value+1,"aria-setsize":o.value}:{}),S=e.computed(()=>{if(t.value)return`a_table__row_level a_table__row_level_${E.value}`});return{ariaTreeAttributes:L,children:l,hasChildren:A,levelForChildren:T,rowClassLevelChildren:S}}function V0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isOneOfParentsClose"),E=e.toRef(_,"isTreeCollapsible"),a=e.toRef(_,"isTreeOpened"),s=e.ref(!1),o=e.computed(()=>{if(t.value)return s.value}),l=e.computed(()=>({a_table__row_has_children:t.value,a_table__row_hide:n.value,a_table__row_level_open:t.value&&s.value})),A=e.computed(()=>!!(n.value||!s.value));return{ariaExpanded:o,initIsChildrenOpen:()=>{(!E.value||a.value)&&(s.value=!0)},isOneOfParentsCloseForChildren:A,rowClassChildren:l,toggleChildren:()=>{s.value=!s.value}}}function y0(_){const t=e.toRef(_,"allVisibleMobileColumns"),n=e.toRef(_,"countVisibleMobileColumns"),E=e.inject("isMobile"),a=e.ref(!1),s=e.computed(()=>t.value.length-n.value),o=e.computed(()=>E.value&&t.value.length>n.value),l=e.computed(()=>s.value===1?"_A_TABLE_MOBILE_TR_PLUS_FIELD_":"_A_TABLE_MOBILE_TR_PLUS_FIELDS_{{count}}_"),A=e.computed(()=>a.value?"_A_TABLE_MOBILE_TR_CLOSE_":l.value);return{countInvisibleMobileColumns:s,isAllColumnsVisibleMobile:a,isBtnToggleAllColumnsVisible:o,textBtnToggleAllColumns:A,toggleAllColumnsVisibleMobile:({$event:L})=>{a.value=!a.value,L.stopPropagation()}}}function M0(_,{hasChildren:t=e.computed(()=>!1)}){const n=e.toRef(_,"isFooter"),E=e.toRef(_,"rowIndex"),a=e.inject("hasPreview"),s=e.inject("previewRightRowIndex"),o=e.inject("previewRightRowIndexLast"),l=e.computed(()=>!!(!t.value&&a.value&&!n.value)),A=e.computed(()=>E.value===s.value),T=e.computed(()=>!A.value&&E.value===o.value),L=e.computed(()=>u_({placeholder:A.value?"_A_TABLE_ROW_PREVIEW_CLOSE_":"_A_TABLE_ROW_PREVIEW_OPEN_"})),S=e.computed(()=>l.value?{"aria-label":L.value}:{}),c=e.computed(()=>{if(l.value)return{a_table__row_preview_open:A.value,a_table__row_preview_was_open:T.value}});return{hasPreviewLocal:l,previewAttributes:S,rowClassPreview:c}}const hR={name:"ATableTr",props:{allVisibleMobileColumns:{type:Array,required:!0},areAllRowsSelected:{type:Boolean,required:!0},columnActionsBtnGroupMaxWidthStyle:{type:String,required:!1,default:void 0},columnActionsView:{type:String,required:!0},countVisibleMobileColumns:{type:Number,required:!0},disabledPreview:{type:Boolean,required:!1},disabledPreviewRowCallback:{type:Function,required:!1},disabledRowActions:{type:Boolean,required:!1},isFooter:{type:Boolean,required:!1},isOneOfParentsClose:{type:Boolean,required:!1},isPreviewDownOpen:{type:Boolean,required:!1},isRowActionsStickyLocal:{type:Boolean,required:!0},isTree:{type:Boolean,required:!1},isTreeCollapsible:{type:Boolean,required:!1,default:!0},isTreeOpened:{type:Boolean,required:!1},keyChildren:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:"id"},level:{type:Number,required:!0},row:{type:Object,required:!0},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowClass:{type:[String,Object,Function],required:!1,default:void 0},rowIndex:{type:Number,required:!0},rowIndexPath:{type:String,required:!1,default:void 0},rowsLength:{type:Number,required:!0},selectedRowsIndexes:{type:Object,required:!0}},emits:["setSelectedRowsIndexes"],setup(_,t){const{ariaTreeAttributes:n,children:E,hasChildren:a,levelForChildren:s,rowClassLevelChildren:o}=$0(_),{ariaExpanded:l,initIsChildrenOpen:A,isOneOfParentsCloseForChildren:T,rowClassChildren:L,toggleChildren:S}=V0(_,{hasChildren:a}),{hasPreviewLocal:c,previewAttributes:f,rowClassPreview:d}=M0(_,{hasChildren:a}),{disabledPreviewRow:R,eventsLocal:C,roleLocal:I,rowClassComputed:O,rowHtmlId:p}=g0(_,{hasChildren:a,hasPreviewLocal:c,rowClassChildren:L,rowClassLevelChildren:o,rowClassPreview:d,toggleChildren:S}),{countInvisibleMobileColumns:U,isAllColumnsVisibleMobile:D,isBtnToggleAllColumnsVisible:V,textBtnToggleAllColumns:B,toggleAllColumnsVisibleMobile:y}=y0(_),{isCheckboxDisabled:Y,isRowSelected:b,labelCheckbox:$,toggleCheckbox:M}=B0(_,t);return A(),{ariaExpanded:l,ariaTreeAttributes:n,children:E,countInvisibleMobileColumns:U,disabledPreviewRow:R,eventsLocal:C,hasChildren:a,isAllColumnsVisibleMobile:D,isBtnToggleAllColumnsVisible:V,isCheckboxDisabled:Y,isOneOfParentsCloseForChildren:T,isRowSelected:b,labelCheckbox:$,levelForChildren:s,previewAttributes:f,roleLocal:I,rowClassComputed:O,rowHtmlId:p,textBtnToggleAllColumns:B,toggleAllColumnsVisibleMobile:y,toggleCheckbox:M,toggleChildren:S}},inject:["columnsFilteredForRender","isActionColumnVisible","isMultipleActionsActive","isMobile"],render(){const _=this.rowIndexPath||`${this.rowIndex}`;let t=[];this.isMobile&&!this.isAllColumnsVisibleMobile?j(this.allVisibleMobileColumns,(a,s)=>{if(s+1>this.countVisibleMobileColumns)return!1;t.push(e.h(CR,{key:a.id,column:a,columnIndex:s,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter},this.$slots))}):t=this.columnsFilteredForRender.map((a,s)=>e.h(CR,{key:a.id,column:a,columnIndex:s,disabledPreview:this.disabledPreviewRow,level:this.level,row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter,showIconChildren:!!(this.isTreeCollapsible&&this.hasChildren&&s===0)},this.$slots));const n=this.isActionColumnVisible&&e.h(Y0,{columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,disabledRowActions:this.disabledRowActions,row:this.row,rowIndex:this.rowIndex,rowIndexPath:_,isFooter:this.isFooter,rowActionsClass:this.rowActionsClass,isRowActionsStickyLocal:this.isRowActionsStickyLocal},this.$slots),E=this.isMobile?e.h("div",{class:"a_table_mobile__dl__wrapper"},[this.$slots.rowMobilePrepend?this.$slots.rowMobilePrepend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):"",this.isTreeCollapsible&&this.hasChildren?e.h(O_,{"aria-hidden":!0,class:"a_table__row_level__icon",classDefault:"",iconLeft:RR,type:"text"}):"",e.h("dl",{class:"a_table_mobile__dl"},t),this.$slots.rowMobileAppend?this.$slots.rowMobileAppend({row:this.row,rowIndex:this.rowIndex,isFooter:this.isFooter}):""]):t;return[e.h("div",{id:this.rowHtmlId,role:this.roleLocal,class:this.rowClassComputed,"aria-expanded":this.ariaExpanded,...this.previewAttributes,...this.ariaTreeAttributes,...this.eventsLocal},[this.isMultipleActionsActive&&e.h("div",{class:"a_table__td a_table__cell a_table__cell_checkbox",style:"width: 50px; min-width: 50px; max-width: 50px;"},[!this.isFooter&&e.h(kr,{isWidthAuto:!0,modelValue:this.isRowSelected,disabled:this.isCheckboxDisabled,label:this.labelCheckbox,labelClass:"a_sr_only",isLabelTitle:!0,"onUpdate:modelValue":this.toggleCheckbox})]),E,this.isMobile?e.h("div",{class:"a_table_mobile__actions_parent"},[this.isBtnToggleAllColumnsVisible&&e.h(O_,{class:"a_btn a_btn_link a_table_mobile__columns_btn_toggle",extra:{count:this.countInvisibleMobileColumns},text:this.textBtnToggleAllColumns,type:"button",onClick:this.toggleAllColumnsVisibleMobile}),n]):n]),this.isPreviewDownOpen&&e.h(U0,{row:this.row,rowIndex:this.rowIndex},{preview:a=>this.$slots.preview?this.$slots.preview(a):void 0}),this.hasChildren?this.children.map((a,s)=>e.h(e.resolveComponent("ATableTr"),{key:a[this.keyId]||s,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreviewRow,disabledRowActions:this.disabledRowActions,isFooter:this.isFooter,isOneOfParentsClose:this.isOneOfParentsCloseForChildren,isPreviewDownOpen:!1,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:this.levelForChildren,row:a,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:s,rowIndexPath:`${_}_${s}`,rowsLength:this.children.length,selectedRowsIndexes:this.selectedRowsIndexes},{get:o=>[e.h(Xi,{data:o.row,keyLabel:o.column.keyLabel,filter:o.column.filter,filterParameters:o.column.filterParameters,defaultValue:o.column.defaultValue,tag:o.column.filterTag||"div"})],...this.$slots})):""]}};function F0(_,{columnActionsWidthDefaultsRemLocal:t=e.computed(()=>({})),columnActionsWidthMinRemLocal:n=()=>{},columnActionsWidthRemLocal:E=()=>{},isMobile:a=e.computed(()=>!1),rowsLocal:s=e.ref([])}){const o=e.toRef(_,"columnActionsView"),l=e.toRef(_,"rowActions"),A=e.computed(()=>o.value==="onePlusDropdown"),T=e.computed(()=>{let d=!1;_:for(let R=0;R<s.value.length;R++){const C=s.value[R];for(let I=0;I<l.value.length;I++){const O=l.value[I];if(oR({rowAction:O,row:C,rowIndex:R})&&O.type!=="divider"){d=!0;break _}}}return d}),L=e.computed(()=>!l.value.length||!A.value?!1:T.value),S=e.computed(()=>w_(E.value)?L.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdown:t.value.default:E.value),c=e.computed(()=>w_(n.value)?L.value&&o.value==="onePlusDropdown"?t.value.onePlusDropdownMin:t.value.min:n.value);return{columnActionsBtnGroupMaxWidthStyle:e.computed(()=>{const d=t.value.btnGroupMaxWidth;if(!a.value&&o.value!=="dropdown"&&!w_(d))return`max-width: ${d}px`}),columnActionsWidthLocal:S,columnActionsWidthMinLocal:c,isColumnActionWide:L}}function G0(_,{columnsScrollInvisible:t=e.ref([]),indexFirstScrollInvisibleColumn:n=e.ref(void 0),modelColumnsVisibleLocal:E=e.ref({}),modelIsTableWithoutScrollComputed:a=e.computed(()=>!1),columnsOrderedFromSimpleTable:s=e.computed(()=>[])}){const o=e.toRef(_,"columns"),l=e.toRef(_,"isActionColumnVisible"),A=e.toRef(_,"isSimpleTable"),T=e.toRef(_,"modelColumnsOrdering"),L=e.toRef(_,"multipleActions"),S=e.computed(()=>Ra(o.value,"id")),c=e.computed(()=>{const O={true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]};return j(e_(o.value),p=>{const U=p.id;p.locked?(O.true.push(U),O.trueColumns.push(p),O.trueObject[U]=!0):(O.false.push(U),O.falseColumns.push(p),O.falseObject[U]=!0)}),O}),f=e.computed(()=>{if(A.value&&s.value&&s.value.length)return s.value;if(!T.value.length)return[...c.value.trueColumns,...c.value.falseColumns];const O=[],p=e_(S.value);return j(T.value,U=>{p[U]&&O.push(p[U])}),O}),d=e.computed(()=>{const O=[],p={};return j(f.value,(U,D)=>{kw({column:U,columnIndex:D,modelIsTableWithoutScroll:a.value,modelColumnsVisibleLocal:E.value,indexFirstScrollInvisibleColumn:n.value})&&(p[O.length]=D,O.push(U))}),{columns:O,columnsIndexesMapping:p}}),R=e.computed(()=>d.value.columnsIndexesMapping),C=e.computed(()=>d.value.columns),I=e.computed(()=>{let O=C.value.length;return a.value&&(O+=t.value.length),l.value&&O++,L.value.length&&O++,O});return{columnIdsGroupByLocked:c,columnsFilteredForRender:C,columnsFilteredForRenderIndexesMapping:R,columnsOrdered:f,countNotHiddenColumns:I}}function v0(_,{modelSort:t=e.ref([]),slots:n={}}){const E=e.toRef(_,"columns"),a=e.toRef(_,"showFirstSortingSequenceNumber"),s=e.toRef(_,"sortingSequenceNumberClass"),o=e.computed(()=>ce(E.value,O=>qw({column:O}))),l=e.computed(()=>Ct(o.value,(O,p)=>({...O,_index:O.prio||p}))),A=e.computed(()=>Ct(l.value,O=>(O.group&&O.group.length&&(O.group=Ct(O.group,(p,U)=>[p,U].join("%%%"))),O))),T=({groups:O,group:p,level:U,columnsOrderedFromGroups:D,firstLevelGroupObject:V})=>{const B=p?ce(O,b=>bs(b,p[U-1])):O,y=di(B,b=>b[U]),Y=Ct(y,b=>{const $={id:b[U].split("%%%")[0]};let M;return U===0?(M=$,M.columnIndexes=[]):M=V,b.length>U+1?$.children=n_(T({groups:O,group:b,level:U+1,columnsOrderedFromGroups:D,firstLevelGroupObject:M}),"recursiveGroup"):b.length===U+1&&($.columns=ce(A.value,W=>bs(W.group,b[U])),M.columnIndexes.push(...Ct($.columns,"_index")),D.push(...$.columns)),$});return{columnsOrderedFromGroups:D,recursiveGroup:Y}},L=e.computed(()=>Ct(A.value,O=>n_(O,"group",O))),S=e.computed(()=>ce(L.value,O=>p_(O))),c=e.computed(()=>ce(L.value,O=>!p_(O))),f=e.computed(()=>{const O=[];return T({groups:S.value,group:null,level:0,columnsOrderedFromGroups:O})}),d=e.computed(()=>Vr([...f.value.columnsOrderedFromGroups,...c.value],"_index")),R=O=>e.h(zT,{ref:"th",class:"a_table__cell__child_group",column:O,columnGroupNames:Ct(O.group,p=>p.split("%%%")[0]),columnIndex:O._index,hasMultipleActions:!1,modelSort:t.value,showFirstSortingSequenceNumber:a.value,sortingSequenceNumberClass:s.value},n),C=O=>e.h("div",{class:"a_table__th_group"},[e.h("div",{class:"a_table__th_child_group"},[e.h("div",{class:"a_table__cell_group a_text_center"},[O.id&&e.h(f_,{html:O.id,tag:"span","aria-hidden":!0})]),e.h("div",{class:"a_table__th_group_container"},O.children?Ct(O.children,p=>C(p)):Ct(O.columns,p=>R(p)))])]),I=e.computed(()=>{const O=Vr([...f.value.recursiveGroup,...c.value],p=>p.columnIndexes?Hu(p.columnIndexes):p._index);return Ct(O,p=>p.columnIndexes?C(p):R(p))});return{columnsOrderedFromSimpleTable:d,renderedGroupedColumns:I}}function w0(_,{emit:t},{checkVisibleColumns:n=()=>{},columnIdsGroupByLocked:E=e.computed(()=>({true:[],false:[],trueObject:{},falseObject:{},trueColumns:[],falseColumns:[]})),columnsFilteredForRenderIndexesMapping:a=e.computed(()=>({}))}){const s=e.toRef(_,"columns"),o=e.toRef(_,"modelColumnsOrdering"),l=({columnIndexDraggable:L,columnIndexOver:S,reset:c,inHeader:f})=>{if(L===S&&!c)return;f&&(L=a.value[L],S=a.value[S]);let d;if(c)d=[...E.value.true,...E.value.false];else{d=e_(o.value);const R=d[L];d.splice(L,1),d.splice(S,0,R)}t("changeColumnsOrdering",{columnIndexDraggable:L,columnIndexOver:S,modelColumnsOrdering:d}),setTimeout(()=>{n()})},A=()=>{let L=[],S=!1;if(!o.value.length)L=[...E.value.true,...E.value.false];else{L=[...E.value.true];const c=e_(E.value.falseObject);j(o.value,f=>{c[f]&&(L.push(f),delete c[f])}),j(c,(f,d)=>{L.push(d)}),JSON.stringify(o.value)!==JSON.stringify(L)&&(S=!0)}return{shouldFixColumns:S,modelColumnsOrderingLocal:L}},T=()=>{const{shouldFixColumns:L,modelColumnsOrderingLocal:S}=A();L&&t("changeColumnsOrdering",{modelColumnsOrdering:S,shouldFixColumns:L})};return e.watch(s,()=>{T()},{deep:!0}),{changeColumnsOrdering:l,checkColumnsOrdering:A}}function H0(_){const t=e.toRef(_,"countAllRows"),n=e.toRef(_,"data"),E=e.toRef(_,"isTree"),a=e.toRef(_,"keyChildren"),s=e.toRef(_,"keyCountAllRowsInData"),o=e.computed(()=>J_(n.value)),l=e.computed(()=>p_(n.value));return{countAllRowsLocal:e.computed(()=>t_(t.value)?o.value?+n_(n.value,s.value):l.value?E.value?dc({array:n.value,keyChildren:a.value}):n.value.length:n.value.length||0:t.value)}}function x0({tableRef:_=e.ref(void 0)}){return{scrollToTable:()=>{var E;if(_.value&&((E=_.value)!=null&&E.getBoundingClientRect)){let s=_.value.getBoundingClientRect().top+window.scrollY-window.innerHeight/2;s<0&&(s=0),document.documentElement.scrollTop=s}},setFocusToTable:()=>{_.value&&(_.value.setAttribute("tabindex","-1"),_.value.focus(),_.value.removeAttribute("tabindex"))}}}function q0(_,{emit:t},{checkColumnsOrdering:n=()=>{},checkVisibleColumns:E=()=>{},modelColumnsVisibleLocal:a=e.ref({})}){const s=e.toRef(_,"modelColumnsVisible"),o=e.toRef(_,"columns");return{initTable:()=>{const{shouldFixColumns:A,modelColumnsOrderingLocal:T}=n();let L=!1;Ca(s.value)?a.value=e_(s.value):(L=!0,a.value=nR(o.value),E()),t("initTable",e_({columnsOrdering:{model:T,shouldFix:A},columnsVisible:{model:a.value,shouldFix:L}}))}}}function W0(_,{emit:t},{closePreviewAll:n=()=>{},scrollToTable:E=()=>{},setFocusToTable:a=()=>{},viewCurrent:s=e.computed(()=>({}))}){const o=e.toRef(_,"isTree"),l=e.toRef(_,"offsetStart"),A=e.toRef(_,"pagination"),T=e.ref(void 0),L=e.ref(void 0),S=()=>{T.value=A.value.limitStart||10,L.value=l.value},c=e.computed(()=>{var I;return o.value?!1:(I=A.value)!=null&&I.use?s.value?s.value.usePagination||!1:!0:!1}),f=e.computed(()=>A.value.position==="top"||A.value.position==="y"),d=e.computed(()=>A.value.position==="bottom"||A.value.position==="y"||!f.value);return{changeLimit:I=>{a(),E(),T.value=I,L.value=l.value,t("changeLimit",{offset:L.value,limit:I}),n()},changeOffset:I=>{let O,p;J_(I)?(O=I.offset,p=I.reload):(O=I,p=!0),p&&(a(),E()),L.value=O,t("changeOffset",{offset:O,limit:T.value}),p&&n()},initLocalVars:S,limit:T,offset:L,usePaginationBottom:d,usePaginationLocal:c,usePaginationTop:f}}function k0({columnsOrdered:_=e.ref([]),isMobile:t=e.ref(!1),modelColumnsVisibleLocal:n=e.ref({})}){return{allVisibleMobileColumns:e.computed(()=>t.value?ce(_.value,a=>a.isRender!==!1&&n.value[a.id]!==!1):[])}}function K0(_,{emit:t},{checkVisibleColumns:n=()=>{},isMultipleActionsActive:E=e.ref(void 0),rowsLocalAll:a=e.computed(()=>[]),rowsLocalLength:s=e.computed(()=>0)}){const o=e.toRef(_,"id"),l=e.toRef(_,"multipleActions"),A=e.ref(void 0),T=e.ref({}),L=e.ref(!1),S=e.computed(()=>l.value.length>0),c=e.computed(()=>U_(n_(A.value,"isHiddenCallback"))),f=e.computed(()=>ce(a.value,(B,y)=>T.value[y])),d=()=>{T.value={}},R=()=>{E.value=!1,A.value=void 0,L.value=!1,d()},C=()=>{if(window.isScrollDisabled)return;const B=rR({tableId:o.value});Ce({selector:`#${B}`})},I=({isActive:B,action:y}={})=>{if(B){E.value=!0,A.value=y,setTimeout(()=>{n(),C()}),t("toggleMultipleActions",{isActive:B,action:y});return}E.value?R():E.value=!0,setTimeout(()=>{n(),C()}),t("toggleMultipleActions",{isActive:B,action:y})},O=e.computed(()=>Ca(T.value)),p=e.computed(()=>s.value>0&&s.value===O.value),U=e.computed(()=>O.value>0);return{areAllRowsSelected:L,areAllVisibleRowsSelected:p,areSomeRowsSelected:U,closeMultipleActionsActive:R,currentMultipleActions:A,hasMultipleActions:S,selectedRows:f,selectedRowsIndexes:T,setEmptySelectedRowsIndexes:d,setSelectedRowsIndexes:({rowIndex:B,isAll:y})=>{if(y){if(U.value)d();else{const Y={};c.value?Rn(s.value,b=>{A.value.isHiddenCallback({row:a.value[b],rowIndex:b})||(Y[b]=!0)}):Rn(s.value,b=>{Y[b]=!0}),T.value=Y}return}T.value[B]?delete T.value[B]:T.value[B]=!0},toggleBtnAllRows:()=>{L.value=!L.value,L.value&&d()},toggleMultipleActionsActive:I}}function X0(_,{emit:t},{aTableRef:n=e.ref({}),previewBoxWidthRemLocal:E=e.computed(()=>0),tableGrandparentRef:a=e.ref({})}){const{previewRef:s,removePreviewRef:o}=SR(),l=200,A=50;let T,L=0,S=0,c=0;const f=()=>{var b;if(!((b=n.value)!=null&&b.getBoundingClientRect))return;S=n.value.getBoundingClientRect().left},d=({clientWidth:Y})=>{L=Y,T=Y/100*A,f()},R=({clientWidthLocal:Y,clientXTableParent:b,previewBoxWidth:$})=>{if(!n.value)return;const M=Y-b-$;n.value.style.width=`${M}px`},C=({clientX:Y=0,previewRef:b,previewBoxWidth:$=0})=>{let M=$||L-Y;M<l?M=l:M>T&&(M=T),R({clientWidthLocal:L,clientXTableParent:S,previewBoxWidth:M}),b&&(b.style.width=`${M}px`)},I=({previewRef:Y})=>{n_(Y,"style.removeProperty")&&Y.style.removeProperty("width"),n_(n,"value.style.removeProperty")&&n.value.style.removeProperty("width")},O=({previewRef:Y})=>{L=document.documentElement.clientWidth,c=n_(a,"value.offsetWidth",0),f(),C({previewRef:Y,previewBoxWidth:E.value})},p=({previewRef:Y,isOpen:b})=>{b?O({previewRef:Y}):I({previewRef:Y})},U=({previewRightWidth:Y})=>{t("mouseupResizePreviewRight",{previewRightWidth:Y})},D=()=>{O({previewRef:s.value})},V=new ResizeObserver(gr(Y=>{const b=Y[0].contentRect;c!==b.width&&(c=b.width,D())},300)),B=()=>{V.observe(a.value)},y=()=>{V.unobserve(a.value)};return e.onBeforeUnmount(()=>{o(),y()}),{addEventListenerWindowResize:B,mousedownResizePreviewRight:d,mousemoveResizePreviewRight:C,mouseupResizePreviewRight:U,removeEventListenerWindowResize:y,togglePreviewResize:p}}function j0(_,t,{aTableRef:n=e.ref({}),isMobile:E=e.ref(void 0),previewBoxWidthRemLocal:a=e.computed(()=>0),rowsLocalAll:s=e.computed(()=>[]),tableGrandparentRef:o=e.ref({})}){const{isDropdownGlobalOpen:l}=NT(),{addEventListenerWindowResize:A,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:L,mouseupResizePreviewRight:S,removeEventListenerWindowResize:c,togglePreviewResize:f}=X0(_,t,{aTableRef:n,previewBoxWidthRemLocal:a,tableGrandparentRef:o}),d=e.toRef(_,"keyId"),R=e.toRef(_,"preview"),C=e.toRef(_,"id"),I=t.emit,O=e.ref({}),p=e.ref(void 0),U=e.ref(void 0),D=e.computed(()=>!!R.value),V=({rowIndex:l_})=>{window.isScrollDisabled||setTimeout(()=>{const N_=`#${C.value}_${l_}`;Ce({selector:N_})})},B=()=>{window.isScrollDisabled||setTimeout(()=>{const l_=`#${aR({tableId:C.value})}`;Ce({selector:l_})})},y=e.computed(()=>R.value==="right"||E.value),Y=e.computed(()=>!t_(p.value)),b=()=>{V({rowIndex:p.value}),I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),U.value=p.value,p.value=void 0,c()},$=()=>{I("togglePreview",{row:s.value[p.value],rowIndex:p.value,typeToggle:"close"}),U.value=void 0,p.value=void 0,c()},M=e.computed(()=>R.value==="down"),W=({rowIndex:l_,row:N_})=>{const L_=Zi({row:N_,rowIndex:l_,keyId:d.value});delete O.value[L_]},H=()=>{O.value={}},w=()=>{$(),H()},K=({rowIndex:l_,row:N_}={})=>{y.value?b():M.value&&W({rowIndex:l_,row:N_})},x=({rowIndex:l_})=>{!E.value&&w_(p.value)&&A(),I("togglePreview",{row:s.value[l_],rowIndex:l_,typeToggle:"open"}),p.value=l_,U.value=void 0,B()},X=({rowIndex:l_})=>{p.value===l_?b():x({rowIndex:l_})},r_=({rowIndex:l_,row:N_})=>{const L_=Zi({row:N_,rowIndex:l_,keyId:d.value});O.value[L_]?delete O.value[L_]:O.value[L_]=!0};return{closePreview:K,closePreviewAll:w,hasPreview:D,isPreviewRightOpen:Y,mousedownResizePreviewRight:T,mousemoveResizePreviewRight:L,mouseupResizePreviewRight:S,onTogglePreview:({row:l_,rowIndex:N_})=>{if(!l.value){if(y.value){X({rowIndex:N_});return}M.value&&r_({row:l_,rowIndex:N_})}},previewDownRowIds:O,previewRightRowIndex:p,previewRightRowIndexLast:U,togglePreviewResize:f}}function z0(_,{dataSorted:t=e.computed(()=>[]),limit:n=e.ref(0),offset:E=e.ref(0),setEmptySelectedRowsIndexes:a=()=>{},usePaginationLocal:s=e.computed(()=>!1)}){const o=e.toRef(_,"clearSelectedRowsOnDataChange"),l=e.toRef(_,"pagination"),A=e.toRef(_,"rowsCountRenderPerTick"),T=e.ref([]),L=e.ref([]);let S=!0,c=0,f;const d=e.computed(()=>{if(n.value&&!l.value.isOutside&&s.value){const y=E.value,Y=y+n.value;return t.value.slice(y,Y)}return t.value}),R=e.computed(()=>d.value),C=e.computed(()=>R.value.length),I=e.computed(()=>!!C.value),O=()=>{const y=c*A.value,Y=y+A.value;Ct(d.value.slice(y,Y),b=>L.value.push(b)),c++},p=()=>{f=setInterval(()=>{c*A.value>=d.value.length?clearInterval(f):O()})},U=()=>{clearInterval(f)},D=({row:y,rowIndex:Y})=>{Y>L.value.length-1||(L.value[Y]=y)},V=({row:y})=>{L.value.unshift(y)},B=({index:y})=>{L.value.splice(y,1)};return e.watch(d,y=>{Br(y,T.value)||(T.value=[...y],!S&&o.value&&a(),S=!1,L.value=[],c=0,U(),A.value>0?(O(),p()):L.value=d.value)},{immediate:!0,deep:!0}),{addRow:V,deleteRow:B,hasRows:I,rowsLocal:L,rowsLocalAll:R,rowsLocalLength:C,stopRenderRows:U,updateRow:D}}function J0(_,{emit:t},{columnActionsWidthLocal:n=e.computed(()=>0),columnActionsWidthMinLocal:E=e.computed(()=>0),columnsOrdered:a=e.computed(()=>[]),columnsScrollInvisible:s=e.ref([]),columnWidthDefaultRemLocal:o=e.computed(()=>0),indexFirstScrollInvisibleColumn:l=e.ref(void 0),isMobile:A=e.ref(!1),isMultipleActionsActive:T=e.ref(void 0),modelColumnsVisibleLocal:L=e.ref({}),modelIsTableWithoutScroll:S=e.ref(!1),modelIsTableWithoutScrollComputed:c=e.computed(()=>!1)}){const f=e.toRef(_,"isActionColumnVisible"),d=e.toRef(_,"isSimpleTable"),R=e.toRef(_,"useRem"),{scalePxWithRem:C}=or(),I=e.ref(void 0),O=e.ref(0),p=e.ref(void 0);let U=!1;const D=20,V=x=>R.value?C(x):x,B=e.computed(()=>f.value?E.value:0),y=e.computed(()=>{const x=T.value?E.value:0,X=d.value?0:D;return x+X}),Y=({sumGrows:x=0,freeSpaceWidth:X=0})=>{x>0?O.value=X/x:O.value=0},b=()=>{if(t_(l.value)||a.value.length<l.value)s.value=[];else{const x=[];for(let X=l.value;X<a.value.length;X++){const r_=a.value[X];Co({column:r_,modelColumnsVisibleLocal:L.value})&&x.push(e_(r_))}s.value=x}},$=()=>{s.value=[],O.value=0,l.value=1e3,p.value=0},M=()=>{if(A.value||p.value===0){$();return}if(w_(p.value))return;const x=p.value-y.value-B.value,X=p.value-y.value-n.value;let r_=0,h_=0,l_=0,N_=!1;if(j(a.value,m_=>{if(!Co({column:m_,modelColumnsVisibleLocal:L.value})){h_++;return}const Q=+V(m_.width)||o.value;if(r_+Q>x)return N_=!0,!1;r_+=Q,h_++,l_+=t_(m_.grow)?1:m_.grow}),N_&&r_>X)for(let m_=h_-1;m_>=0;m_--){h_--;const Q=a.value[h_];if(!Co({column:Q,modelColumnsVisibleLocal:L.value}))continue;const R_=+V(Q.width)||o.value;if(r_-=R_,l_-=t_(Q.grow)?1:Q.grow,r_<=X)break}let L_=0;const G_=N_?X:x;(c.value||h_===a.value.length)&&(L_=G_-r_),l.value=h_,Y({sumGrows:l_,freeSpaceWidth:L_}),b()},W=({entries:x,forceAdjust:X})=>{const r_=x[0].contentRect;(X||p.value>r_.width+D||p.value<r_.width-D)&&(U||(U=!0,p.value=r_.width,M(),U=!1))},H=new ResizeObserver(gr(x=>{w_(p.value)?W({entries:x,forceAdjust:!0}):W({entries:x})},300)),w=x=>{x?(H.unobserve(I.value),$()):(H.observe(I.value),S.value&&M())},K=x=>{S.value=x,t("updateModelIsTableWithoutScroll",x),S.value&&M()};return e.onMounted(()=>{A.value||H.observe(I.value)}),e.onBeforeUnmount(()=>{H.unobserve(I.value)}),e.watch(a,()=>{M()}),{aTableRef:I,changeModelIsTableWithoutScroll:K,checkVisibleColumns:M,columnsVisibleAdditionalSpaceForOneGrow:O,onWatchMobileScrollControl:w}}function Z0(_){const t=e.toRef(_,"hasMobile"),n=e.toRef(_,"isActionColumnVisible"),E=e.toRef(_,"isActionIconVisible"),a=e.toRef(_,"isColumnsDnd"),s=e.toRef(_,"isSimpleTable"),o=e.toRef(_,"modelIsTableWithoutScrollStart"),l=e.toRef(_,"rowActions"),A=e.ref(void 0),T=()=>{A.value=o.value},{isMobileWidth:L}=Dt(),S=e.computed(()=>s.value?l.value&&!!l.value.length&&n.value:n.value),c=e.computed(()=>!!(E.value&&!s.value)),f=e.computed(()=>!!(a.value&&!s.value)),d=e.computed(()=>t.value?!!L.value:!1),R=e.computed(()=>s.value?!1:A.value);return{initModelIsTableWithoutScroll:T,isActionColumnVisibleLocal:S,isActionIconVisibleLocal:c,isColumnsDndLocal:f,isMobile:d,modelIsTableWithoutScroll:A,modelIsTableWithoutScrollComputed:R}}function Q0(_,{viewCurrent:t=e.computed(()=>({}))}){const n=e.toRef(_,"data"),E=e.toRef(_,"isSortingOutside"),a=e.toRef(_,"modelSort"),s=e.toRef(_,"useAdditionalSorting"),o=e.ref([]),l=e.computed(()=>s.value?t.value?t.value.useAdditionalSorting||!1:!0:!1),A=()=>{ue(a.value)?o.value=[a.value]:p_(a.value)&&(o.value=e_(a.value))},T=e.computed(()=>{const S={models:[],directions:[]};return o.value.length&&j(o.value,c=>{let f="asc",d=c;GA(c,"-")&&(f="desc",d=c.slice(1)),S.models.push(d),S.directions.push(f)}),S}),L=e.computed(()=>o.value.length&&!E.value?Fs(n.value||[],T.value.models,T.value.directions):n.value||[]);return e.watch(a,()=>{A()}),{dataSorted:L,initModelSort:A,modelSortLocal:o,useAdditionalSortingLocal:l}}function _1(_,{emit:t},{modelSortLocal:n=e.ref([]),closePreviewAll:E=()=>{}}){const a=e.toRef(_,"id"),s=e.toRef(_,"isSortingMultiColumn"),o=e.toRef(_,"sortingMultiColumnKey"),l=e.computed(()=>`${o.value}Key`),A=c=>s.value&&c[l.value],T=({sortId:c})=>{const f=n.value.indexOf(c);if(f!==-1){n.value.splice(f,1,`-${c}`);return}const d=n.value.indexOf(`-${c}`);if(d!==-1){n.value.splice(d,1);return}n.value.push(c)},L=({sortId:c})=>{if(n.value.indexOf(c)!==-1){n.value=[`-${c}`];return}if(n.value.indexOf(`-${c}`)!==-1){n.value=[];return}n.value=[c]};return{changeModelSort:({sortId:c,$event:f,modelAll:d})=>{d?n.value=d:A(f)?T({sortId:c}):L({sortId:c}),t("changeSorting",{modelSort:e_(n.value)}),Ve.$emit("changeTableSorting",{modelSort:e_(n.value),tableId:a.value}),E()}}}function e1(_,{isMobile:t=e.ref(void 0),modelIsTableWithoutScrollComputed:n=e.computed(()=>{})}){const E=e.toRef(_,"rowActionsSticky");return{isRowActionsStickyLocal:e.computed(()=>!!(!t.value&&E.value&&!n.value))}}function t1(_,{countNotHiddenColumns:t=e.computed(()=>-1),isMobile:n=e.ref(!1)}){const E=e.toRef(_,"id"),a=e.toRef(_,"isLabelVisible"),s=e.computed(()=>{const A={};return n.value||(A.role="table",A["aria-colcount"]=t.value),A}),o=e.computed(()=>n.value?"list":"rowgroup"),l=e.computed(()=>{if(a.value)return sR({tableId:E.value})});return{tableChildRole:o,tableLabelId:l,tableRoleAttributes:s}}function n1(_,{emit:t},{modelColumnsVisibleLocal:n=e.ref({}),checkVisibleColumns:E=()=>{}}){return{changeModelColumnsVisible:s=>{n.value=s,t("update:modelColumnsVisible",e_(n.value)),E()}}}function E1(_){const t=e.toRef(_,"texts");return{emptyText:e.computed(()=>w_(t.value.empty)?"_A_TABLE_EMPTY_TEXT_":t.value.empty)}}function a1(){const _=e.ref([]),t=e.ref(void 0),n=e.ref(void 0),E=e.ref({}),a=e.ref(void 0),s=e.ref(void 0);return{columnsScrollInvisible:_,indexFirstScrollInvisibleColumn:t,isMultipleActionsActive:n,modelColumnsVisibleLocal:E,tableGrandparentRef:a,tableRef:s}}function r1(_,{emit:t},{closePreviewAll:n=()=>{}}){const E=e.toRef(_,"views"),a=e.toRef(_,"modelFilters"),s=e.toRef(_,"modelView"),o=e.computed(()=>Ra(E.value,"id")),l=e.computed(()=>o.value[s.value]),A=e.computed(()=>E.value.length>1),T=()=>{if(A.value){const c=_r(E.value,["active",!0]);let f=E.value[0].id;c&&(f=c.id),t("updateView",{_modelView:f,view:o.value[f],modelFilters:a.value,init:!0})}},L=c=>{n(),t("updateView",{_modelView:c,view:o.value[c],modelFilters:a.value})},S=e.computed(()=>!l.value||l.value.type==="table");return{hasViews:A,initViewCurrent:T,isViewTableVisible:S,updateViewCurrent:L,viewCurrent:l}}function s1(_){const t=e.toRef(_,"columnActionsWidth"),n=e.toRef(_,"columnActionsWidthDefaults"),E=e.toRef(_,"columnActionsWidthMin"),a=e.toRef(_,"columnWidthDefault"),s=e.toRef(_,"previewBoxWidth"),o=e.toRef(_,"useRem"),{scalePxWithRem:l}=or(),A=e.computed(()=>o.value?l(t.value):t.value),T=e.computed(()=>o.value?l(E.value):E.value),L=e.computed(()=>o.value?l(a.value):a.value),S=e.computed(()=>o.value?l(s.value):s.value);return{columnActionsWidthDefaultsRemLocal:e.computed(()=>o.value?{default:l(n.value.default||170),min:l(n.value.min||50),onePlusDropdown:l(n.value.onePlusDropdown||320),onePlusDropdownMin:l(n.value.onePlusDropdownMin||200),btnGroupMaxWidth:l(n.value.btnGroupMaxWidth||180)}:n.value),columnActionsWidthMinRemLocal:T,columnActionsWidthRemLocal:A,columnWidthDefaultRemLocal:L,previewBoxWidthRemLocal:S}}function o1(_,{isMobile:t=e.computed(()=>!1)}){const n=e.toRef(_,"pagination");return{paginationModes:e.computed(()=>{var a,s,o,l;return t.value?((s=(a=n.value)==null?void 0:a.modes)==null?void 0:s.mobile)||{perPage:{mode:"select",position:0,showTextCountFromTo:!1},pagination:{mode:"short",position:1}}:((l=(o=n.value)==null?void 0:o.modes)==null?void 0:l.desktop)||{perPage:{mode:"group",position:0,showTextCountFromTo:!0},pagination:{mode:"normal",position:1}}})}}const i1={name:"ATable",props:{additionalSortingColumns:{type:Array,required:!1,default:()=>[]},clearSelectedRowsOnDataChange:{type:Boolean,required:!1,default:!0},columnActionsOnePlusDropdownOptions:{type:Object,required:!1,default:()=>({actionsClasses:["a_btn a_btn_primary a_text_truncate"],btnGroupClass:"a_btn_group a_btn_group_table",hasDividerBeforeDropdown:!1,indexFirstDropdownAction:1,indexFirstDropdownActionMobile:1,minDropdownActions:1})},columnActionsView:{type:String,required:!1,default:"dropdown",validator:_=>["onePlusDropdown","onePlusDropdownEmptyPlace","dropdown"].indexOf(_)!==-1},columnActionsWidth:{type:Number,required:!1,default:void 0},columnActionsWidthDefaults:{type:Object,required:!1,default:()=>({default:170,min:50,onePlusDropdown:320,onePlusDropdownMin:200,btnGroupMaxWidth:180})},columnActionsWidthMin:{type:Number,required:!1,default:void 0},columns:{type:Array,required:!0},columnsDefaultValue:{type:[String,Number],required:!1,default:""},columnWidthDefault:{type:Number,required:!1,default:250},countAllRows:{type:Number,required:!1,default:void 0},countVisibleMobileColumns:{type:Number,required:!1,default:4,validator:_=>_>0},borderType:{type:String,required:!1,default:()=>Zr.value.propsDefault.borderType,validator:_=>["bordered","innerBordered"].indexOf(_)!==-1},data:{type:[Array,Object,Promise],required:!1},disabledActions:{type:Boolean,required:!1},disabledMultipleActions:{type:Boolean,required:!1},disabledOptions:{type:Boolean,required:!1},disabledPreview:{type:Boolean,required:!1},disabledPreviewRowCallback:{type:Function,required:!1},disabledRowActions:{type:Boolean,required:!1},disabledSort:{type:Boolean,required:!1},disabledViews:{type:Boolean,required:!1},extra:{type:Object,required:!1,default:void 0},hasMobile:{type:Boolean,required:!1,default:!0},hasScrollClass:{type:Boolean,required:!1,default:!0},id:{type:String,required:!1,default:()=>Ee("a_table")},isActionColumnVisible:{type:Boolean,required:!1,default:!1},isActionIconVisible:{type:Boolean,required:!1,default:!0},isColumnsDnd:{type:Boolean,required:!1,default:!1},isLabelVisible:{type:Boolean,required:!1,default:!0},isLoadingMultipleActions:{type:Boolean,required:!1},isLoadingOptions:{type:Boolean,required:!1},isLoadingTable:{type:Boolean,required:!1},isQuickSearch:{type:Boolean,required:!1},isSimpleTable:{type:Boolean,required:!1,default:!1},isSortingMultiColumn:{type:Boolean,required:!1,default:!1},isSortingOutside:{type:Boolean,required:!1},isTree:{type:Boolean,required:!1},isTreeCollapsible:{type:Boolean,required:!1,default:!0},isTreeOpened:{type:Boolean,required:!1},keyCountAllRowsInData:{type:String,required:!1,default:"count"},keyId:{type:String,required:!1,default:void 0},keyChildren:{type:String,required:!1,default:"children"},label:{type:[String,Number],required:!1,default:""},labelClass:{type:[String,Object],required:!1,default:void 0},labelTag:{type:String,required:!1,default:"h2"},modelColumnsOrdering:{type:Array,required:!1,default:()=>[]},modelColumnsVisible:{type:Object,required:!1,default:()=>({})},modelIsTableWithoutScrollStart:{type:Boolean,required:!1,default:!1},modelQuickSearch:{type:String,required:!1,default:""},modelSort:{type:[String,Array],required:!1,default:()=>[]},modelView:{type:[String,Number],required:!1,default:void 0},multipleActions:{type:Array,required:!1,default:()=>[]},offsetStart:{type:Number,required:!1,default:0},pagination:{type:Object,required:!1,default:()=>({use:!1,maxPages:5,limitsPerPage:[],limitStart:10,disabled:!1,isOutside:!1,outside:!1,position:"bottom",modes:{desktop:{pagination:{mode:"normal",position:0},perPage:{mode:"inline",position:1}},mobile:{pagination:{mode:"loadMore"}}}})},preview:{type:String,required:!1,default:void 0,validator:_=>["right","down"].indexOf(_)!==-1},previewBoxWidth:{type:Number,required:!1,default:300},previewStyles:{type:[String,Object],required:!1,default:void 0},rowActions:{type:Array,required:!1,default:()=>[]},rowActionsClass:{type:[String,Object],required:!1,default:void 0},rowActionsSticky:{type:Boolean,required:!1,default:!0},rowClass:{type:[String,Object,Function],required:!1,default:void 0},rowsCountRenderPerTick:{type:Number,required:!1,default:25,validator:_=>fn(_)&&_>=0},rowsFooter:{type:Array,required:!1,default:()=>[]},showCount:{type:Boolean,required:!1,default:!0},showFirstSortingSequenceNumber:{type:Boolean,required:!1,default:!1},sortingMultiColumnKey:{type:String,required:!1,default:"shift",validator:_=>["shift","ctrl","alt"].indexOf(_)!==-1},sortingSequenceNumberClass:{type:[String,Object],required:!1,default:"a_badge"},tableActions:{type:Array,required:!1,default:()=>[]},tableActionsIndexFirstDropdownAction:{type:Number,required:!1,default:-1},tableActionsIndexFirstDropdownActionMobile:{type:Number,required:!1,default:0},texts:{type:Object,required:!1,default:()=>({empty:"_A_TABLE_EMPTY_TEXT_"})},useAdditionalSorting:{type:Boolean,required:!1,default:!0},useViewSlot:{type:Boolean,required:!1},useRem:{type:Boolean,required:!1,default:!0},valuesForColumnDefault:{type:Array,required:!1,default:()=>[null,void 0,""]},views:{type:Array,required:!1,default:()=>[]}},emits:["changeColumnsOrdering","changeColumnsVisible","changeLimit","changeOffset","changeSorting","mouseupResizePreviewRight","initTable","togglePreview","toggleMultipleActions","update:modelColumnsOrder","update:modelColumnsVisible","update:modelQuickSearch","updateModelIsTableWithoutScroll","updateView"],provide(){return{changeModelColumnsVisible:this.changeModelColumnsVisible,columnActionsOnePlusDropdownOptions:e.computed(()=>this.columnActionsOnePlusDropdownOptions),columns:e.computed(()=>this.columns),columnsDefaultValue:e.computed(()=>this.columnsDefaultValue),isLoadingOptions:e.computed(()=>this.isLoadingOptions),isLoadingTable:e.computed(()=>this.isLoadingTable),keyId:e.computed(()=>this.keyId),rowActions:e.computed(()=>this.rowActions),tableId:e.computed(()=>this.id),valuesForColumnDefault:e.computed(()=>this.valuesForColumnDefault),useRem:e.computed(()=>this.useRem)}},setup(_,t){const{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,columnWidthDefaultRemLocal:s,previewBoxWidthRemLocal:o}=s1(_),{initModelIsTableWithoutScroll:l,isActionColumnVisibleLocal:A,isActionIconVisibleLocal:T,isColumnsDndLocal:L,isMobile:S,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:f}=Z0(_),{countAllRowsLocal:d}=H0(_),{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:C,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,tableGrandparentRef:p,tableRef:U}=a1(),{scrollToTable:D,setFocusToTable:V}=x0({tableRef:U}),{hasViews:B,initViewCurrent:y,isViewTableVisible:Y,updateViewCurrent:b,viewCurrent:$}=r1(_,t,{closePreviewAll:Un}),{dataSorted:M,initModelSort:W,modelSortLocal:H,useAdditionalSortingLocal:w}=Q0(_,{viewCurrent:$}),{columnsOrderedFromSimpleTable:K,renderedGroupedColumns:x}=v0(_,{modelSort:H,slots:t.slots}),{columnIdsGroupByLocked:X,columnsFilteredForRender:r_,columnsFilteredForRenderIndexesMapping:h_,columnsOrdered:l_,countNotHiddenColumns:N_}=G0(_,{columnsScrollInvisible:R,indexFirstScrollInvisibleColumn:C,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:f,columnsOrderedFromSimpleTable:K}),{changeLimit:L_,changeOffset:G_,initLocalVars:m_,limit:Q,offset:R_,usePaginationBottom:o_,usePaginationLocal:b_,usePaginationTop:k_}=W0(_,t,{closePreviewAll:Un,scrollToTable:D,setFocusToTable:V,viewCurrent:$}),{addRow:ae,deleteRow:d_,hasRows:V_,rowsLocal:v_,rowsLocalAll:z,rowsLocalLength:T_,stopRenderRows:i_,updateRow:I_}=z0(_,{dataSorted:M,limit:Q,offset:R_,setEmptySelectedRowsIndexes:Ma,usePaginationLocal:b_}),{columnActionsBtnGroupMaxWidthStyle:D_,columnActionsWidthLocal:B_,columnActionsWidthMinLocal:F_,isColumnActionWide:K_}=F0(_,{columnActionsWidthDefaultsRemLocal:n,columnActionsWidthMinRemLocal:E,columnActionsWidthRemLocal:a,isMobile:S,rowsLocal:v_}),{aTableRef:j_,changeModelIsTableWithoutScroll:Le,checkVisibleColumns:Ae,columnsVisibleAdditionalSpaceForOneGrow:De,onWatchMobileScrollControl:Q_}=J0(_,t,{columnActionsWidthLocal:B_,columnActionsWidthMinLocal:F_,columnsOrdered:l_,columnsScrollInvisible:R,columnWidthDefaultRemLocal:s,indexFirstScrollInvisibleColumn:C,isMobile:S,isMultipleActionsActive:I,modelColumnsVisibleLocal:O,modelIsTableWithoutScroll:c,modelIsTableWithoutScrollComputed:f}),{changeColumnsOrdering:oe,checkColumnsOrdering:fe}=w0(_,t,{checkVisibleColumns:Ae,columnIdsGroupByLocked:X,columnsFilteredForRenderIndexesMapping:h_}),{isRowActionsStickyLocal:me}=e1(_,{isMobile:S,modelIsTableWithoutScrollComputed:f}),{areAllRowsSelected:ge,areAllVisibleRowsSelected:st,areSomeRowsSelected:Fe,closeMultipleActionsActive:ot,currentMultipleActions:we,hasMultipleActions:nt,selectedRows:Be,selectedRowsIndexes:it,setEmptySelectedRowsIndexes:en,setSelectedRowsIndexes:$t,toggleBtnAllRows:Ot,toggleMultipleActionsActive:xt}=K0(_,t,{checkVisibleColumns:Ae,isMultipleActionsActive:I,rowsLocalAll:z,rowsLocalLength:T_}),{changeModelColumnsVisible:qt}=n1(_,t,{modelColumnsVisibleLocal:O,checkVisibleColumns:Ae}),{closePreview:cr,closePreviewAll:pn,hasPreview:he,isPreviewRightOpen:lt,onTogglePreview:tn,mousedownResizePreviewRight:nn,mousemoveResizePreviewRight:ra,mouseupResizePreviewRight:oE,previewDownRowIds:Ya,previewRightRowIndex:iE,previewRightRowIndexLast:dt,togglePreviewResize:En}=j0(_,t,{aTableRef:j_,isMobile:S,previewBoxWidthRemLocal:o,rowsLocalAll:z,tableGrandparentRef:p}),{tableChildRole:ga,tableLabelId:Ba,tableRoleAttributes:sa}=t1(_,{countNotHiddenColumns:N_,isMobile:S}),{allVisibleMobileColumns:$a}=k0({columnsOrdered:l_,isMobile:S,modelColumnsVisibleLocal:O}),{changeModelSort:Vt}=_1(_,t,{modelSortLocal:H,closePreviewAll:Un}),{paginationModes:Va}=o1(_,{isMobile:S}),{initTable:oa}=q0(_,t,{checkColumnsOrdering:fe,checkVisibleColumns:Ae,modelColumnsVisibleLocal:O}),{emptyText:ya}=E1(_);function Un(){pn()}function Ma(){en()}return e.watch(S,$_=>{Q_($_),Un()}),e.watch(K_,($_,v)=>{$_!==v&&Ae()}),e.provide("changeModelIsTableWithoutScroll",Le),e.provide("changeModelSort",Vt),e.provide("columnsOrdered",l_),e.provide("columnsFilteredForRender",r_),e.provide("columnsScrollInvisible",R),e.provide("columnWidthDefault",s),e.provide("columnsVisibleAdditionalSpaceForOneGrow",De),e.provide("columnActionsWidthLocal",B_),e.provide("columnActionsWidthMinLocal",F_),e.provide("currentMultipleActions",we),e.provide("hasPreview",he),e.provide("indexFirstScrollInvisibleColumn",C),e.provide("isActionColumnVisible",A),e.provide("isActionIconVisible",T),e.provide("isColumnsDnd",L),e.provide("isMobile",S),e.provide("isMultipleActionsActive",I),e.provide("modelIsTableWithoutScroll",f),e.provide("onTogglePreview",tn),e.provide("previewRightRowIndex",iE),e.provide("previewRightRowIndexLast",dt),e.provide("rowsLocalAll",z),e.provide("modelColumnsVisibleLocal",O),e.provide("changeColumnsOrdering",oe),m_(),l(),y(),oa(),W(),{addRow:ae,allVisibleMobileColumns:$a,areAllRowsSelected:ge,areAllVisibleRowsSelected:st,areSomeRowsSelected:Fe,aTableRef:j_,changeLimit:L_,changeModelColumnsVisible:qt,changeOffset:G_,checkVisibleColumns:Ae,closeMultipleActionsActive:ot,closePreview:cr,closePreviewAll:Un,columnActionsBtnGroupMaxWidthStyle:D_,columnsFilteredForRender:r_,columnsOrdered:l_,countAllRowsLocal:d,deleteRow:d_,emptyText:ya,hasMultipleActions:nt,hasRows:V_,hasViews:B,isMobile:S,isMultipleActionsActive:I,isPreviewRightOpen:lt,isRowActionsStickyLocal:me,isViewTableVisible:Y,limit:Q,modelColumnsVisibleLocal:O,modelIsTableWithoutScrollComputed:f,modelSortLocal:H,mousedownResizePreviewRight:nn,mousemoveResizePreviewRight:ra,mouseupResizePreviewRight:oE,offset:R_,onTogglePreview:tn,paginationModes:Va,previewDownRowIds:Ya,previewRightRowIndex:iE,renderedGroupedColumns:x,rowsLocal:v_,rowsLocalAll:z,rowsLocalLength:T_,selectedRows:Be,selectedRowsIndexes:it,setEmptySelectedRowsIndexes:Ma,setSelectedRowsIndexes:$t,stopRenderRows:i_,tableChildRole:ga,tableGrandparentRef:p,tableLabelId:Ba,tableRef:U,tableRoleAttributes:sa,toggleBtnAllRows:Ot,toggleMultipleActionsActive:xt,togglePreviewResize:En,updateRow:I_,updateViewCurrent:b,useAdditionalSortingLocal:w,usePaginationBottom:o_,usePaginationLocal:b_,usePaginationTop:k_,viewCurrent:$}},data(){return{resolved:void 0,error:void 0}},computed:{hasRowsFooter(){return this.rowsFooter.length>0}},methods:{updateModelQuickSearch(_){this.$emit("update:modelQuickSearch",_)}},render(){return e.h("div",{ref:"tableGrandparentRef",class:["a_table__grandparent",{a_table_mobile:this.isMobile,a_table__grandparent_without_scroll:!this.hasScrollClass}]},[this.$slots.tablePrepend&&this.$slots.tablePrepend({id:this.id}),e.h("div",{ref:"aTableRef",class:["a_table__parent",{a_table__parent_scrollable:this.hasScrollClass&&!this.modelIsTableWithoutScrollComputed}]},[e.h(O0,{additionalSortingColumns:this.additionalSortingColumns,areAllRowsSelected:this.areAllRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,closeMultipleActionsActive:this.closeMultipleActionsActive,countAllRows:this.countAllRowsLocal,disabledActions:this.disabledActions,disabledMultipleActions:this.disabledMultipleActions,disabledSort:this.disabledSort,disabledViews:this.disabledViews,extra:this.extra,hasViews:this.hasViews,isLabelVisible:this.isLabelVisible,isLoadingMultipleActions:this.isLoadingMultipleActions,isQuickSearch:this.isQuickSearch,isSortingMultiColumn:this.isSortingMultiColumn,label:this.label,labelClass:this.labelClass,labelTag:this.labelTag,modelQuickSearch:this.modelQuickSearch,modelSort:this.modelSortLocal,modelView:this.modelView,multipleActions:this.multipleActions,selectedRows:this.selectedRows,showCount:this.showCount,tableActions:this.tableActions,tableActionsIndexFirstDropdownAction:this.tableActionsIndexFirstDropdownAction,tableActionsIndexFirstDropdownActionMobile:this.tableActionsIndexFirstDropdownActionMobile,useAdditionalSorting:this.useAdditionalSortingLocal,useViewSlot:this.useViewSlot,viewCurrent:this.viewCurrent,views:this.views,onUpdateViewCurrent:this.updateViewCurrent,onUpdateModelQuickSearch:this.updateModelQuickSearch,onToggleMultipleActionsActive:this.toggleMultipleActionsActive,onToggleBtnAllRows:this.toggleBtnAllRows},this.$slots),this.$slots.topPanelAppend?this.$slots.topPanelAppend():"",this.usePaginationLocal&&this.usePaginationTop&&this.hasRows?e.h(kT,{class:"a_table__pagination_top",disabled:this.pagination.disabled,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,modes:this.paginationModes,maxPages:this.pagination.maxPages,offset:this.offset,rowsLength:this.rowsLocalLength,totalCount:this.countAllRowsLocal,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isViewTableVisible&&e.h("div",{ref:"tableRef","aria-labelledby":this.isLabelVisible?this.tableLabelId:void 0,class:["a_table",{a_table_simple:this.isSimpleTable,a_table_bordered:this.borderType==="bordered",a_table_inner_bordered:this.borderType==="innerBordered"}],...this.tableRoleAttributes},[this.isSimpleTable?e.h(zw,{areAllRowsSelected:this.areAllRowsSelected,areAllVisibleRowsSelected:this.areAllVisibleRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,disabledOptions:this.disabledOptions,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSortLocal,rowsLocalLength:this.rowsLocalLength,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes,columnsForRender:this.renderedGroupedColumns}):e.h(n0,{areAllRowsSelected:this.areAllRowsSelected,areAllVisibleRowsSelected:this.areAllVisibleRowsSelected,areSomeRowsSelected:this.areSomeRowsSelected,disabledOptions:this.disabledOptions,disabledSort:this.disabledSort,hasMultipleActions:this.hasMultipleActions,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isSortingMultiColumn:this.isSortingMultiColumn,modelSort:this.modelSortLocal,rowsLocalLength:this.rowsLocalLength,showFirstSortingSequenceNumber:this.showFirstSortingSequenceNumber,sortingSequenceNumberClass:this.sortingSequenceNumberClass,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},this.$slots),e.h("div",{class:"a_table__loading"},[e.h(wT,{isLoading:this.isLoadingTable},()=>[e.h("div",{class:"a_table__body",role:this.tableChildRole},{default:()=>this.rowsLocal.map((_,t)=>{const n=Zi({row:_,rowIndex:t,keyId:this.keyId});return e.h(hR,{key:n,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreview,disabledPreviewRowCallback:this.disabledPreviewRowCallback,disabledRowActions:this.disabledRowActions,isFooter:!1,isPreviewDownOpen:this.previewDownRowIds[n],isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:1,row:_,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:t,rowIndexPath:`${t}`,rowsLength:this.rowsLocal.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Xi,{data:E.row,keyLabel:E.column.keyLabel,filter:E.column.filter,filterParameters:E.column.filterParameters,defaultValue:E.column.defaultValue,tag:E.column.filterTag||"div"})],...this.$slots})})}),this.isViewTableVisible&&!this.hasRows&&e.h(f_,{class:"a_table__empty_text",text:this.emptyText}),this.hasRowsFooter&&e.h("div",{class:"a_table__footer",role:this.tableChildRole},this.rowsFooter.map((_,t)=>{const n=Zi({row:_,rowIndex:t,keyId:this.keyId});return e.h(hR,{key:n,allVisibleMobileColumns:this.allVisibleMobileColumns,areAllRowsSelected:this.areAllRowsSelected,columnActionsBtnGroupMaxWidthStyle:this.columnActionsBtnGroupMaxWidthStyle,columnActionsView:this.columnActionsView,countVisibleMobileColumns:this.countVisibleMobileColumns,disabledPreview:this.disabledPreview,disabledPreviewRowCallback:this.disabledPreviewRowCallback,disabledRowActions:this.disabledRowActions,isFooter:!0,isRowActionsStickyLocal:this.isRowActionsStickyLocal,isTree:this.isTree,isTreeCollapsible:this.isTreeCollapsible,isTreeOpened:this.isTreeOpened,keyChildren:this.keyChildren,keyId:this.keyId,level:1,row:_,rowActionsClass:this.rowActionsClass,rowClass:this.rowClass,rowIndex:t,rowIndexPath:`${t}`,rowsLength:this.rowsFooter.length,selectedRowsIndexes:this.selectedRowsIndexes,onSetSelectedRowsIndexes:this.setSelectedRowsIndexes},{get:E=>[e.h(Xi,{data:E.row,keyLabel:E.column.footerPath,filter:E.column.footerFilter,filterParameters:E.column.footerFilterParameters,defaultValue:E.column.footerDefaultValue})],...this.$slots})}))])])]),!this.isViewTableVisible&&this.viewCurrent&&this.$slots[this.viewCurrent.type]&&this.$slots[this.viewCurrent.type]({isLoading:this.isLoadingTable,rows:this.rowsLocalAll}),this.usePaginationLocal&&this.usePaginationBottom&&this.hasRows?e.h(kT,{class:"a_table__pagination_bottom",disabled:this.pagination.disabled,limit:this.limit,limitsPerPage:this.pagination.limitsPerPage,maxPages:this.pagination.maxPages,modes:this.paginationModes,offset:this.offset,rowsLength:this.rowsLocalLength,totalCount:this.countAllRowsLocal,"onUpdate:limit":this.changeLimit,"onUpdate:offset":this.changeOffset}):"",this.isPreviewRightOpen?e.h(l0,{countAllRows:this.countAllRowsLocal,isMobile:this.isMobile,isLoadingTable:this.isLoadingTable,limitPagination:this.limit,offsetPagination:this.offset,previewStyles:this.previewStyles,rowIndex:this.previewRightRowIndex,rows:this.rowsLocalAll,disabledPreviewRowCallback:this.disabledPreviewRowCallback,usePagination:!!this.usePaginationLocal,onClosePreview:this.closePreview,onMousedownResizePreviewRight:this.mousedownResizePreviewRight,onMousemoveResizePreviewRight:this.mousemoveResizePreviewRight,onMouseupResizePreviewRight:this.mouseupResizePreviewRight,onTogglePreview:this.onTogglePreview,onTogglePreviewResize:this.togglePreviewResize,"onUpdate:offset":this.changeOffset},this.$slots):""])])}};function IR(_){const t=e.toRef(_,"activeTabIdLocal"),n=e.toRef(_,"index"),E=e.toRef(_,"keyId"),a=e.toRef(_,"parentId"),s=e.toRef(_,"tab"),o=e.computed(()=>E.value?n_(s.value,E.value):n.value),l=e.computed(()=>t.value===o.value),A=e.computed(()=>`${a.value}_${n.value}`);return{idForContent:e.computed(()=>`${A.value}_content`),idLocal:A,isActive:l,tabIdLocal:o}}function l1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyContent");return{contentLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}const A1={name:"ATabsContent",props:{activeTabIdLocal:{type:[String,Number],required:!0},index:{type:Number,required:!0},keyContent:{type:String,required:!1,default:"content"},keyId:{type:String,required:!1,default:void 0},parentId:{type:String,required:!0},tab:{type:Object,required:!0}},setup(_){const{idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}=IR(_),{contentLocal:s}=l1(_);return{contentLocal:s,idForContent:t,idLocal:n,isActive:E,tabIdLocal:a}},render(){let _=null;return this.tab.slotContent&&this.$slots[this.tab.slotContent]?_=this.$slots[this.tab.slotContent]({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.$slots.content?_=this.$slots.content({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.contentLocal&&(_=e.h(f_,{html:this.contentLocal})),e.h("div",{id:this.idForContent,"aria-labelledby":this.idLocal,class:["a_tabs__content",{a_tabs__content_show:this.isActive}],role:"tabpanel"},[_])}};function T1({isDisabled:_=e.computed(()=>!1)}){return{tabindexLocal:e.computed(()=>_.value?-1:0)}}function L1(_,{emit:t},{isDisabled:n=e.computed(()=>!1),tabIdLocal:E=e.computed(()=>"")}){const a=e.toRef(_,"index"),s=e.toRef(_,"tab"),o=A=>{n.value||t("changeTab",{$event:A,tab:s.value,tabId:E.value,index:a.value})};return{changeTabLocal:o,keydownTab:A=>{(A.keyCode===E_.enter||A.keyCode===E_.space)&&(o(A),A.stopPropagation(),A.preventDefault())}}}function S1(_){const t=e.toRef(_,"disabled"),n=e.toRef(_,"keyDisabled"),E=e.toRef(_,"tab");return{isDisabled:e.computed(()=>{if(t.value||n.value&&n_(E.value,n.value)===!0)return!0})}}function u1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyLabel");return{labelLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}function c1(_){const t=e.toRef(_,"tab"),n=e.toRef(_,"keyTitle");return{titleLocal:e.computed(()=>{if(n.value)return n_(t.value,n.value)})}}const d1={name:"ATabsTab",props:{activeTabIdLocal:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1},index:{type:Number,required:!0},isTitleHtml:{type:Boolean,required:!1,default:void 0},keyDisabled:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:"label"},keyTitle:{type:String,required:!1,default:"title"},parentId:{type:String,required:!0},tab:{type:Object,required:!0},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1}},emits:["changeTab"],setup(_,t){const{idForContent:n,idLocal:E,isActive:a,tabIdLocal:s}=IR(_),{isDisabled:o}=S1(_),{tabindexLocal:l}=T1({isDisabled:o}),{changeTabLocal:A,keydownTab:T}=L1(_,t,{isDisabled:o,tabIdLocal:s}),{labelLocal:L}=u1(_),{titleLocal:S}=c1(_);return{changeTabLocal:A,idForContent:n,idLocal:E,isActive:a,isDisabled:o,keydownTab:T,labelLocal:L,tabindexLocal:l,tabIdLocal:s,titleLocal:S}},render(){let _=null;return this.tab.slotTab&&this.$slots[this.tab.slotTab]?_=this.$slots[this.tab.slotTab]({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.$slots.tab?_=this.$slots.tab({activeTabId:this.activeTabIdLocal,contentId:this.idForContent,index:this.index,isActive:this.isActive,parentId:this.parentId,tab:this.tab,tabId:this.tabIdLocal}):this.labelLocal&&(_=e.h(f_,{html:this.labelLocal,tag:"span"})),e.h("li",{class:["a_tabs__list__item",this.tab.classLi]},[e.h(O_,{id:this.idLocal,"aria-controls":this.idForContent,ariaDisabled:this.isDisabled,ariaSelected:this.isActive,class:["a_tabs__list__link",this.tab.class,{a_tabs__list__link_active:this.isActive,a_tabs__list__link_disabled:this.isDisabled}],classDefault:"",isTitleHtml:this.isTitleHtml,role:"tab",tabindex:this.tabindexLocal,tag:"a",titlePlacement:this.titlePlacement,type:"button",title:this.titleLocal,onClick:this.changeTabLocal,onKeydown:this.keydownTab},()=>[_])])}};function f1(_,{emit:t}){const n=e.toRef(_,"activeTabId"),E=e.toRef(_,"data"),a=e.toRef(_,"isChangeOutside"),s=e.toRef(_,"keyActive"),o=e.toRef(_,"keyId"),l=e.ref(void 0),A=()=>{t_(n.value)||(l.value=n.value)};return{activeTabIdLocal:l,changeTab:({$event:S,tab:c,tabId:f,index:d})=>{l.value!==f&&(a.value||(l.value=f),t("change",{$event:S,tab:c,tabId:f,index:d}))},initActiveTabIdLocal:()=>{A(),t_(l.value)&&(s.value&&(j(E.value,(S,c)=>{if(n_(S,s.value))return o.value?l.value=n_(S,o.value)||c:l.value=c,!1}),!t_(l.value))||(o.value?l.value=n_(E.value,`[0].${o.value}`)||0:l.value=0))},setActiveTabIdLocal:A}}const R1={name:"ATabs",props:{activeTabId:{type:[String,Number],required:!1,default:void 0},data:{type:Array,required:!0},disabled:{type:Boolean,required:!1,default:void 0},id:{type:String,required:!1,default:()=>Ee("a_tabs_")},isBoxed:{type:Boolean,required:!1,default:void 0},isChangeOutside:{type:Boolean,required:!1,default:void 0},isTitleHtml:{type:Boolean,required:!1,default:void 0},isVertical:{type:Boolean,required:!1,default:void 0},keyActive:{type:String,required:!1,default:"active"},keyContent:{type:String,required:!1,default:"content"},keyDisabled:{type:String,required:!1,default:void 0},keyId:{type:String,required:!1,default:void 0},keyLabel:{type:String,required:!1,default:"label"},keyTitle:{type:String,required:!1,default:"title"},titlePlacement:{type:String,required:!1,default:"top",validator:_=>Yt.indexOf(_)!==-1}},emits:["change"],setup(_,t){const n=e.toRef(_,"activeTabId"),{activeTabIdLocal:E,changeTab:a,initActiveTabIdLocal:s,setActiveTabIdLocal:o}=f1(_,t);return s(),e.watch(n,()=>{o()}),{activeTabIdLocal:E,changeTab:a}},render(){return e.h("div",{id:this.id,class:["a_tabs",{a_tabs_boxed:this.isBoxed,a_tabs_vertical:this.isVertical}]},[e.h("div",{class:"a_tabs__box"},[e.h("ul",{class:"a_tabs__list",role:"tablist"},[this.data.map((_,t)=>e.h(d1,{key:t,activeTabIdLocal:this.activeTabIdLocal,disabled:this.disabled,index:t,isTitleHtml:this.isTitleHtml,keyDisabled:this.keyDisabled,keyId:this.keyId,keyLabel:this.keyLabel,keyTitle:this.keyTitle,parentId:this.id,tab:_,titlePlacement:this.titlePlacement,onChangeTab:this.changeTab},this.$slots))])]),e.h("div",{class:"a_tabs__contents"},[this.data.map((_,t)=>e.h(A1,{key:t,activeTabIdLocal:this.activeTabIdLocal,index:t,keyContent:this.keyContent,keyId:this.keyId,parentId:this.id,tab:_},this.$slots))])])}};function OR(_,t){return function(){return _.apply(t,arguments)}}const{toString:C1}=Object.prototype,{getPrototypeOf:JT}=Object,{iterator:Qi,toStringTag:pR}=Symbol,_l=(_=>t=>{const n=C1.call(t);return _[n]||(_[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wn=_=>(_=_.toLowerCase(),t=>_l(t)===_),el=_=>t=>typeof t===_,{isArray:Qr}=Array,_s=el("undefined");function ho(_){return _!==null&&!_s(_)&&_.constructor!==null&&!_s(_.constructor)&&vt(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const UR=wn("ArrayBuffer");function h1(_){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(_):t=_&&_.buffer&&UR(_.buffer),t}const I1=el("string"),vt=el("function"),NR=el("number"),Io=_=>_!==null&&typeof _=="object",O1=_=>_===!0||_===!1,tl=_=>{if(_l(_)!=="object")return!1;const t=JT(_);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pR in _)&&!(Qi in _)},p1=_=>{if(!Io(_)||ho(_))return!1;try{return Object.keys(_).length===0&&Object.getPrototypeOf(_)===Object.prototype}catch{return!1}},U1=wn("Date"),N1=wn("File"),D1=wn("Blob"),m1=wn("FileList"),P1=_=>Io(_)&&vt(_.pipe),b1=_=>{let t;return _&&(typeof FormData=="function"&&_ instanceof FormData||vt(_.append)&&((t=_l(_))==="formdata"||t==="object"&&vt(_.toString)&&_.toString()==="[object FormData]"))},Y1=wn("URLSearchParams"),[g1,B1,$1,V1]=["ReadableStream","Request","Response","Headers"].map(wn),y1=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oo(_,t,{allOwnKeys:n=!1}={}){if(_===null||typeof _>"u")return;let E,a;if(typeof _!="object"&&(_=[_]),Qr(_))for(E=0,a=_.length;E<a;E++)t.call(null,_[E],E,_);else{if(ho(_))return;const s=n?Object.getOwnPropertyNames(_):Object.keys(_),o=s.length;let l;for(E=0;E<o;E++)l=s[E],t.call(null,_[l],l,_)}}function DR(_,t){if(ho(_))return null;t=t.toLowerCase();const n=Object.keys(_);let E=n.length,a;for(;E-- >0;)if(a=n[E],t===a.toLowerCase())return a;return null}const Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mR=_=>!_s(_)&&_!==Tr;function ZT(){const{caseless:_,skipUndefined:t}=mR(this)&&this||{},n={},E=(a,s)=>{const o=_&&DR(n,s)||s;tl(n[o])&&tl(a)?n[o]=ZT(n[o],a):tl(a)?n[o]=ZT({},a):Qr(a)?n[o]=a.slice():(!t||!_s(a))&&(n[o]=a)};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&Oo(arguments[a],E);return n}const M1=(_,t,n,{allOwnKeys:E}={})=>(Oo(t,(a,s)=>{n&&vt(a)?_[s]=OR(a,n):_[s]=a},{allOwnKeys:E}),_),F1=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),G1=(_,t,n,E)=>{_.prototype=Object.create(t.prototype,E),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:t.prototype}),n&&Object.assign(_.prototype,n)},v1=(_,t,n,E)=>{let a,s,o;const l={};if(t=t||{},_==null)return t;do{for(a=Object.getOwnPropertyNames(_),s=a.length;s-- >0;)o=a[s],(!E||E(o,_,t))&&!l[o]&&(t[o]=_[o],l[o]=!0);_=n!==!1&&JT(_)}while(_&&(!n||n(_,t))&&_!==Object.prototype);return t},w1=(_,t,n)=>{_=String(_),(n===void 0||n>_.length)&&(n=_.length),n-=t.length;const E=_.indexOf(t,n);return E!==-1&&E===n},H1=_=>{if(!_)return null;if(Qr(_))return _;let t=_.length;if(!NR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=_[t];return n},x1=(_=>t=>_&&t instanceof _)(typeof Uint8Array<"u"&&JT(Uint8Array)),q1=(_,t)=>{const E=(_&&_[Qi]).call(_);let a;for(;(a=E.next())&&!a.done;){const s=a.value;t.call(_,s[0],s[1])}},W1=(_,t)=>{let n;const E=[];for(;(n=_.exec(t))!==null;)E.push(n);return E},k1=wn("HTMLFormElement"),K1=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,E,a){return E.toUpperCase()+a}),PR=(({hasOwnProperty:_})=>(t,n)=>_.call(t,n))(Object.prototype),X1=wn("RegExp"),bR=(_,t)=>{const n=Object.getOwnPropertyDescriptors(_),E={};Oo(n,(a,s)=>{let o;(o=t(a,s,_))!==!1&&(E[s]=o||a)}),Object.defineProperties(_,E)},j1=_=>{bR(_,(t,n)=>{if(vt(_)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const E=_[n];if(vt(E)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},z1=(_,t)=>{const n={},E=a=>{a.forEach(s=>{n[s]=!0})};return Qr(_)?E(_):E(String(_).split(t)),n},J1=()=>{},Z1=(_,t)=>_!=null&&Number.isFinite(_=+_)?_:t;function Q1(_){return!!(_&&vt(_.append)&&_[pR]==="FormData"&&_[Qi])}const _H=_=>{const t=new Array(10),n=(E,a)=>{if(Io(E)){if(t.indexOf(E)>=0)return;if(ho(E))return E;if(!("toJSON"in E)){t[a]=E;const s=Qr(E)?[]:{};return Oo(E,(o,l)=>{const A=n(o,a+1);!_s(A)&&(s[l]=A)}),t[a]=void 0,s}}return E};return n(_,0)},eH=wn("AsyncFunction"),tH=_=>_&&(Io(_)||vt(_))&&vt(_.then)&&vt(_.catch),YR=((_,t)=>_?setImmediate:t?((n,E)=>(Tr.addEventListener("message",({source:a,data:s})=>{a===Tr&&s===n&&E.length&&E.shift()()},!1),a=>{E.push(a),Tr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(Tr.postMessage)),nH=typeof queueMicrotask<"u"?queueMicrotask.bind(Tr):typeof process<"u"&&process.nextTick||YR,J={isArray:Qr,isArrayBuffer:UR,isBuffer:ho,isFormData:b1,isArrayBufferView:h1,isString:I1,isNumber:NR,isBoolean:O1,isObject:Io,isPlainObject:tl,isEmptyObject:p1,isReadableStream:g1,isRequest:B1,isResponse:$1,isHeaders:V1,isUndefined:_s,isDate:U1,isFile:N1,isBlob:D1,isRegExp:X1,isFunction:vt,isStream:P1,isURLSearchParams:Y1,isTypedArray:x1,isFileList:m1,forEach:Oo,merge:ZT,extend:M1,trim:y1,stripBOM:F1,inherits:G1,toFlatObject:v1,kindOf:_l,kindOfTest:wn,endsWith:w1,toArray:H1,forEachEntry:q1,matchAll:W1,isHTMLForm:k1,hasOwnProperty:PR,hasOwnProp:PR,reduceDescriptors:bR,freezeMethods:j1,toObjectSet:z1,toCamelCase:K1,noop:J1,toFiniteNumber:Z1,findKey:DR,global:Tr,isContextDefined:mR,isSpecCompliantForm:Q1,toJSONObject:_H,isAsyncFn:eH,isThenable:tH,setImmediate:YR,asap:nH,isIterable:_=>_!=null&&vt(_[Qi])};function Z_(_,t,n,E,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),E&&(this.request=E),a&&(this.response=a,this.status=a.status?a.status:null)}J.inherits(Z_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const gR=Z_.prototype,BR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(_=>{BR[_]={value:_}}),Object.defineProperties(Z_,BR),Object.defineProperty(gR,"isAxiosError",{value:!0}),Z_.from=(_,t,n,E,a,s)=>{const o=Object.create(gR);J.toFlatObject(_,o,function(L){return L!==Error.prototype},T=>T!=="isAxiosError");const l=_&&_.message?_.message:"Error",A=t==null&&_?_.code:t;return Z_.call(o,l,A,n,E,a),_&&o.cause==null&&Object.defineProperty(o,"cause",{value:_,configurable:!0}),o.name=_&&_.name||"Error",s&&Object.assign(o,s),o};const EH=null;function QT(_){return J.isPlainObject(_)||J.isArray(_)}function $R(_){return J.endsWith(_,"[]")?_.slice(0,-2):_}function VR(_,t,n){return _?_.concat(t).map(function(a,s){return a=$R(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function aH(_){return J.isArray(_)&&!_.some(QT)}const rH=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function nl(_,t,n){if(!J.isObject(_))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,C){return!J.isUndefined(C[R])});const E=n.metaTokens,a=n.visitor||L,s=n.dots,o=n.indexes,A=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function T(d){if(d===null)return"";if(J.isDate(d))return d.toISOString();if(J.isBoolean(d))return d.toString();if(!A&&J.isBlob(d))throw new Z_("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(d)||J.isTypedArray(d)?A&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function L(d,R,C){let I=d;if(d&&!C&&typeof d=="object"){if(J.endsWith(R,"{}"))R=E?R:R.slice(0,-2),d=JSON.stringify(d);else if(J.isArray(d)&&aH(d)||(J.isFileList(d)||J.endsWith(R,"[]"))&&(I=J.toArray(d)))return R=$R(R),I.forEach(function(p,U){!(J.isUndefined(p)||p===null)&&t.append(o===!0?VR([R],U,s):o===null?R:R+"[]",T(p))}),!1}return QT(d)?!0:(t.append(VR(C,R,s),T(d)),!1)}const S=[],c=Object.assign(rH,{defaultVisitor:L,convertValue:T,isVisitable:QT});function f(d,R){if(!J.isUndefined(d)){if(S.indexOf(d)!==-1)throw Error("Circular reference detected in "+R.join("."));S.push(d),J.forEach(d,function(I,O){(!(J.isUndefined(I)||I===null)&&a.call(t,I,J.isString(O)?O.trim():O,R,c))===!0&&f(I,R?R.concat(O):[O])}),S.pop()}}if(!J.isObject(_))throw new TypeError("data must be an object");return f(_),t}function yR(_){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(E){return t[E]})}function _L(_,t){this._pairs=[],_&&nl(_,this,t)}const MR=_L.prototype;MR.append=function(t,n){this._pairs.push([t,n])},MR.toString=function(t){const n=t?function(E){return t.call(this,E,yR)}:yR;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function sH(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function FR(_,t,n){if(!t)return _;const E=n&&n.encode||sH;J.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=J.isURLSearchParams(t)?t.toString():new _L(t,n).toString(E),s){const o=_.indexOf("#");o!==-1&&(_=_.slice(0,o)),_+=(_.indexOf("?")===-1?"?":"&")+s}return _}class GR{constructor(){this.handlers=[]}use(t,n,E){return this.handlers.push({fulfilled:t,rejected:n,synchronous:E?E.synchronous:!1,runWhen:E?E.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(E){E!==null&&t(E)})}}const vR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oH={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:_L,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},eL=typeof window<"u"&&typeof document<"u",tL=typeof navigator=="object"&&navigator||void 0,iH=eL&&(!tL||["ReactNative","NativeScript","NS"].indexOf(tL.product)<0),lH=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",AH=eL&&window.location.href||"http://localhost",ht={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eL,hasStandardBrowserEnv:iH,hasStandardBrowserWebWorkerEnv:lH,navigator:tL,origin:AH},Symbol.toStringTag,{value:"Module"})),...oH};function TH(_,t){return nl(_,new ht.classes.URLSearchParams,{visitor:function(n,E,a,s){return ht.isNode&&J.isBuffer(n)?(this.append(E,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function LH(_){return J.matchAll(/\w+|\[(\w*)]/g,_).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SH(_){const t={},n=Object.keys(_);let E;const a=n.length;let s;for(E=0;E<a;E++)s=n[E],t[s]=_[s];return t}function wR(_){function t(n,E,a,s){let o=n[s++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),A=s>=n.length;return o=!o&&J.isArray(a)?a.length:o,A?(J.hasOwnProp(a,o)?a[o]=[a[o],E]:a[o]=E,!l):((!a[o]||!J.isObject(a[o]))&&(a[o]=[]),t(n,E,a[o],s)&&J.isArray(a[o])&&(a[o]=SH(a[o])),!l)}if(J.isFormData(_)&&J.isFunction(_.entries)){const n={};return J.forEachEntry(_,(E,a)=>{t(LH(E),a,n,0)}),n}return null}function uH(_,t,n){if(J.isString(_))try{return(t||JSON.parse)(_),J.trim(_)}catch(E){if(E.name!=="SyntaxError")throw E}return(n||JSON.stringify)(_)}const po={transitional:vR,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const E=n.getContentType()||"",a=E.indexOf("application/json")>-1,s=J.isObject(t);if(s&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(wR(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(E.indexOf("application/x-www-form-urlencoded")>-1)return TH(t,this.formSerializer).toString();if((l=J.isFileList(t))||E.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return nl(l?{"files[]":t}:t,A&&new A,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),uH(t)):t}],transformResponse:[function(t){const n=this.transitional||po.transitional,E=n&&n.forcedJSONParsing,a=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(E&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?Z_.from(l,Z_.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],_=>{po.headers[_]={}});const cH=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dH=_=>{const t={};let n,E,a;return _&&_.split(`
|
|
207
207
|
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),E=o.substring(a+1).trim(),!(!n||t[n]&&cH[n])&&(n==="set-cookie"?t[n]?t[n].push(E):t[n]=[E]:t[n]=t[n]?t[n]+", "+E:E)}),t},HR=Symbol("internals");function Uo(_){return _&&String(_).trim().toLowerCase()}function El(_){return _===!1||_==null?_:J.isArray(_)?_.map(El):String(_)}function fH(_){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let E;for(;E=n.exec(_);)t[E[1]]=E[2];return t}const RH=_=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_.trim());function nL(_,t,n,E,a){if(J.isFunction(E))return E.call(this,t,n);if(a&&(t=n),!!J.isString(t)){if(J.isString(E))return t.indexOf(E)!==-1;if(J.isRegExp(E))return E.test(t)}}function CH(_){return _.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,E)=>n.toUpperCase()+E)}function hH(_,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(E=>{Object.defineProperty(_,E+n,{value:function(a,s,o){return this[E].call(this,t,a,s,o)},configurable:!0})})}let wt=class{constructor(t){t&&this.set(t)}set(t,n,E){const a=this;function s(l,A,T){const L=Uo(A);if(!L)throw new Error("header name must be a non-empty string");const S=J.findKey(a,L);(!S||a[S]===void 0||T===!0||T===void 0&&a[S]!==!1)&&(a[S||A]=El(l))}const o=(l,A)=>J.forEach(l,(T,L)=>s(T,L,A));if(J.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(J.isString(t)&&(t=t.trim())&&!RH(t))o(dH(t),n);else if(J.isObject(t)&&J.isIterable(t)){let l={},A,T;for(const L of t){if(!J.isArray(L))throw TypeError("Object iterator must return a key-value pair");l[T=L[0]]=(A=l[T])?J.isArray(A)?[...A,L[1]]:[A,L[1]]:L[1]}o(l,n)}else t!=null&&s(n,t,E);return this}get(t,n){if(t=Uo(t),t){const E=J.findKey(this,t);if(E){const a=this[E];if(!n)return a;if(n===!0)return fH(a);if(J.isFunction(n))return n.call(this,a,E);if(J.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Uo(t),t){const E=J.findKey(this,t);return!!(E&&this[E]!==void 0&&(!n||nL(this,this[E],E,n)))}return!1}delete(t,n){const E=this;let a=!1;function s(o){if(o=Uo(o),o){const l=J.findKey(E,o);l&&(!n||nL(E,E[l],l,n))&&(delete E[l],a=!0)}}return J.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let E=n.length,a=!1;for(;E--;){const s=n[E];(!t||nL(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,E={};return J.forEach(this,(a,s)=>{const o=J.findKey(E,s);if(o){n[o]=El(a),delete n[s];return}const l=t?CH(s):String(s).trim();l!==s&&delete n[s],n[l]=El(a),E[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(E,a)=>{E!=null&&E!==!1&&(n[a]=t&&J.isArray(E)?E.join(", "):E)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
208
208
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const E=new this(t);return n.forEach(a=>E.set(a)),E}static accessor(t){const E=(this[HR]=this[HR]={accessors:{}}).accessors,a=this.prototype;function s(o){const l=Uo(o);E[l]||(hH(a,o),E[l]=!0)}return J.isArray(t)?t.forEach(s):s(t),this}};wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(wt.prototype,({value:_},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>_,set(E){this[n]=E}}}),J.freezeMethods(wt);function EL(_,t){const n=this||po,E=t||n,a=wt.from(E.headers);let s=E.data;return J.forEach(_,function(l){s=l.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function xR(_){return!!(_&&_.__CANCEL__)}function es(_,t,n){Z_.call(this,_??"canceled",Z_.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(es,Z_,{__CANCEL__:!0});function qR(_,t,n){const E=n.config.validateStatus;!n.status||!E||E(n.status)?_(n):t(new Z_("Request failed with status code "+n.status,[Z_.ERR_BAD_REQUEST,Z_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function IH(_){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_);return t&&t[1]||""}function OH(_,t){_=_||10;const n=new Array(_),E=new Array(_);let a=0,s=0,o;return t=t!==void 0?t:1e3,function(A){const T=Date.now(),L=E[s];o||(o=T),n[a]=A,E[a]=T;let S=s,c=0;for(;S!==a;)c+=n[S++],S=S%_;if(a=(a+1)%_,a===s&&(s=(s+1)%_),T-o<t)return;const f=L&&T-L;return f?Math.round(c*1e3/f):void 0}}function pH(_,t){let n=0,E=1e3/t,a,s;const o=(T,L=Date.now())=>{n=L,a=null,s&&(clearTimeout(s),s=null),_(...T)};return[(...T)=>{const L=Date.now(),S=L-n;S>=E?o(T,L):(a=T,s||(s=setTimeout(()=>{s=null,o(a)},E-S)))},()=>a&&o(a)]}const al=(_,t,n=3)=>{let E=0;const a=OH(50,250);return pH(s=>{const o=s.loaded,l=s.lengthComputable?s.total:void 0,A=o-E,T=a(A),L=o<=l;E=o;const S={loaded:o,total:l,progress:l?o/l:void 0,bytes:A,rate:T||void 0,estimated:T&&l&&L?(l-o)/T:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};_(S)},n)},WR=(_,t)=>{const n=_!=null;return[E=>t[0]({lengthComputable:n,total:_,loaded:E}),t[1]]},kR=_=>(...t)=>J.asap(()=>_(...t)),UH=ht.hasStandardBrowserEnv?((_,t)=>n=>(n=new URL(n,ht.origin),_.protocol===n.protocol&&_.host===n.host&&(t||_.port===n.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,NH=ht.hasStandardBrowserEnv?{write(_,t,n,E,a,s,o){if(typeof document>"u")return;const l=[`${_}=${encodeURIComponent(t)}`];J.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),J.isString(E)&&l.push(`path=${E}`),J.isString(a)&&l.push(`domain=${a}`),s===!0&&l.push("secure"),J.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(_){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+_+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(_){this.write(_,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function DH(_){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_)}function mH(_,t){return t?_.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):_}function KR(_,t,n){let E=!DH(t);return _&&(E||n==!1)?mH(_,t):t}const XR=_=>_ instanceof wt?{..._}:_;function Lr(_,t){t=t||{};const n={};function E(T,L,S,c){return J.isPlainObject(T)&&J.isPlainObject(L)?J.merge.call({caseless:c},T,L):J.isPlainObject(L)?J.merge({},L):J.isArray(L)?L.slice():L}function a(T,L,S,c){if(J.isUndefined(L)){if(!J.isUndefined(T))return E(void 0,T,S,c)}else return E(T,L,S,c)}function s(T,L){if(!J.isUndefined(L))return E(void 0,L)}function o(T,L){if(J.isUndefined(L)){if(!J.isUndefined(T))return E(void 0,T)}else return E(void 0,L)}function l(T,L,S){if(S in t)return E(T,L);if(S in _)return E(void 0,T)}const A={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(T,L,S)=>a(XR(T),XR(L),S,!0)};return J.forEach(Object.keys({..._,...t}),function(L){const S=A[L]||a,c=S(_[L],t[L],L);J.isUndefined(c)&&S!==l||(n[L]=c)}),n}const jR=_=>{const t=Lr({},_);let{data:n,withXSRFToken:E,xsrfHeaderName:a,xsrfCookieName:s,headers:o,auth:l}=t;if(t.headers=o=wt.from(o),t.url=FR(KR(t.baseURL,t.url,t.allowAbsoluteUrls),_.params,_.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),J.isFormData(n)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const A=n.getHeaders(),T=["content-type","content-length"];Object.entries(A).forEach(([L,S])=>{T.includes(L.toLowerCase())&&o.set(L,S)})}}if(ht.hasStandardBrowserEnv&&(E&&J.isFunction(E)&&(E=E(t)),E||E!==!1&&UH(t.url))){const A=a&&s&&NH.read(s);A&&o.set(a,A)}return t},PH=typeof XMLHttpRequest<"u"&&function(_){return new Promise(function(n,E){const a=jR(_);let s=a.data;const o=wt.from(a.headers).normalize();let{responseType:l,onUploadProgress:A,onDownloadProgress:T}=a,L,S,c,f,d;function R(){f&&f(),d&&d(),a.cancelToken&&a.cancelToken.unsubscribe(L),a.signal&&a.signal.removeEventListener("abort",L)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function I(){if(!C)return;const p=wt.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),D={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:p,config:_,request:C};qR(function(B){n(B),R()},function(B){E(B),R()},D),C=null}"onloadend"in C?C.onloadend=I:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(I)},C.onabort=function(){C&&(E(new Z_("Request aborted",Z_.ECONNABORTED,_,C)),C=null)},C.onerror=function(U){const D=U&&U.message?U.message:"Network Error",V=new Z_(D,Z_.ERR_NETWORK,_,C);V.event=U||null,E(V),C=null},C.ontimeout=function(){let U=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const D=a.transitional||vR;a.timeoutErrorMessage&&(U=a.timeoutErrorMessage),E(new Z_(U,D.clarifyTimeoutError?Z_.ETIMEDOUT:Z_.ECONNABORTED,_,C)),C=null},s===void 0&&o.setContentType(null),"setRequestHeader"in C&&J.forEach(o.toJSON(),function(U,D){C.setRequestHeader(D,U)}),J.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),l&&l!=="json"&&(C.responseType=a.responseType),T&&([c,d]=al(T,!0),C.addEventListener("progress",c)),A&&C.upload&&([S,f]=al(A),C.upload.addEventListener("progress",S),C.upload.addEventListener("loadend",f)),(a.cancelToken||a.signal)&&(L=p=>{C&&(E(!p||p.type?new es(null,_,C):p),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(L),a.signal&&(a.signal.aborted?L():a.signal.addEventListener("abort",L)));const O=IH(a.url);if(O&&ht.protocols.indexOf(O)===-1){E(new Z_("Unsupported protocol "+O+":",Z_.ERR_BAD_REQUEST,_));return}C.send(s||null)})},bH=(_,t)=>{const{length:n}=_=_?_.filter(Boolean):[];if(t||n){let E=new AbortController,a;const s=function(T){if(!a){a=!0,l();const L=T instanceof Error?T:this.reason;E.abort(L instanceof Z_?L:new es(L instanceof Error?L.message:L))}};let o=t&&setTimeout(()=>{o=null,s(new Z_(`timeout ${t} of ms exceeded`,Z_.ETIMEDOUT))},t);const l=()=>{_&&(o&&clearTimeout(o),o=null,_.forEach(T=>{T.unsubscribe?T.unsubscribe(s):T.removeEventListener("abort",s)}),_=null)};_.forEach(T=>T.addEventListener("abort",s));const{signal:A}=E;return A.unsubscribe=()=>J.asap(l),A}},YH=function*(_,t){let n=_.byteLength;if(n<t){yield _;return}let E=0,a;for(;E<n;)a=E+t,yield _.slice(E,a),E=a},gH=async function*(_,t){for await(const n of BH(_))yield*YH(n,t)},BH=async function*(_){if(_[Symbol.asyncIterator]){yield*_;return}const t=_.getReader();try{for(;;){const{done:n,value:E}=await t.read();if(n)break;yield E}}finally{await t.cancel()}},zR=(_,t,n,E)=>{const a=gH(_,t);let s=0,o,l=A=>{o||(o=!0,E&&E(A))};return new ReadableStream({async pull(A){try{const{done:T,value:L}=await a.next();if(T){l(),A.close();return}let S=L.byteLength;if(n){let c=s+=S;n(c)}A.enqueue(new Uint8Array(L))}catch(T){throw l(T),T}},cancel(A){return l(A),a.return()}},{highWaterMark:2})},JR=64*1024,{isFunction:rl}=J,$H=(({Request:_,Response:t})=>({Request:_,Response:t}))(J.global),{ReadableStream:ZR,TextEncoder:QR}=J.global,_C=(_,...t)=>{try{return!!_(...t)}catch{return!1}},VH=_=>{_=J.merge.call({skipUndefined:!0},$H,_);const{fetch:t,Request:n,Response:E}=_,a=t?rl(t):typeof fetch=="function",s=rl(n),o=rl(E);if(!a)return!1;const l=a&&rl(ZR),A=a&&(typeof QR=="function"?(d=>R=>d.encode(R))(new QR):async d=>new Uint8Array(await new n(d).arrayBuffer())),T=s&&l&&_C(()=>{let d=!1;const R=new n(ht.origin,{body:new ZR,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!R}),L=o&&l&&_C(()=>J.isReadableStream(new E("").body)),S={stream:L&&(d=>d.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!S[d]&&(S[d]=(R,C)=>{let I=R&&R[d];if(I)return I.call(R);throw new Z_(`Response type '${d}' is not supported`,Z_.ERR_NOT_SUPPORT,C)})});const c=async d=>{if(d==null)return 0;if(J.isBlob(d))return d.size;if(J.isSpecCompliantForm(d))return(await new n(ht.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(J.isArrayBufferView(d)||J.isArrayBuffer(d))return d.byteLength;if(J.isURLSearchParams(d)&&(d=d+""),J.isString(d))return(await A(d)).byteLength},f=async(d,R)=>{const C=J.toFiniteNumber(d.getContentLength());return C??c(R)};return async d=>{let{url:R,method:C,data:I,signal:O,cancelToken:p,timeout:U,onDownloadProgress:D,onUploadProgress:V,responseType:B,headers:y,withCredentials:Y="same-origin",fetchOptions:b}=jR(d),$=t||fetch;B=B?(B+"").toLowerCase():"text";let M=bH([O,p&&p.toAbortSignal()],U),W=null;const H=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let w;try{if(V&&T&&C!=="get"&&C!=="head"&&(w=await f(y,I))!==0){let l_=new n(R,{method:"POST",body:I,duplex:"half"}),N_;if(J.isFormData(I)&&(N_=l_.headers.get("content-type"))&&y.setContentType(N_),l_.body){const[L_,G_]=WR(w,al(kR(V)));I=zR(l_.body,JR,L_,G_)}}J.isString(Y)||(Y=Y?"include":"omit");const K=s&&"credentials"in n.prototype,x={...b,signal:M,method:C.toUpperCase(),headers:y.normalize().toJSON(),body:I,duplex:"half",credentials:K?Y:void 0};W=s&&new n(R,x);let X=await(s?$(W,b):$(R,x));const r_=L&&(B==="stream"||B==="response");if(L&&(D||r_&&H)){const l_={};["status","statusText","headers"].forEach(m_=>{l_[m_]=X[m_]});const N_=J.toFiniteNumber(X.headers.get("content-length")),[L_,G_]=D&&WR(N_,al(kR(D),!0))||[];X=new E(zR(X.body,JR,L_,()=>{G_&&G_(),H&&H()}),l_)}B=B||"text";let h_=await S[J.findKey(S,B)||"text"](X,d);return!r_&&H&&H(),await new Promise((l_,N_)=>{qR(l_,N_,{data:h_,headers:wt.from(X.headers),status:X.status,statusText:X.statusText,config:d,request:W})})}catch(K){throw H&&H(),K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new Z_("Network Error",Z_.ERR_NETWORK,d,W),{cause:K.cause||K}):Z_.from(K,K&&K.code,d,W)}}},yH=new Map,eC=_=>{let t=_&&_.env||{};const{fetch:n,Request:E,Response:a}=t,s=[E,a,n];let o=s.length,l=o,A,T,L=yH;for(;l--;)A=s[l],T=L.get(A),T===void 0&&L.set(A,T=l?new Map:VH(t)),L=T;return T};eC();const aL={http:EH,xhr:PH,fetch:{get:eC}};J.forEach(aL,(_,t)=>{if(_){try{Object.defineProperty(_,"name",{value:t})}catch{}Object.defineProperty(_,"adapterName",{value:t})}});const tC=_=>`- ${_}`,MH=_=>J.isFunction(_)||_===null||_===!1;function FH(_,t){_=J.isArray(_)?_:[_];const{length:n}=_;let E,a;const s={};for(let o=0;o<n;o++){E=_[o];let l;if(a=E,!MH(E)&&(a=aL[(l=String(E)).toLowerCase()],a===void 0))throw new Z_(`Unknown adapter '${l}'`);if(a&&(J.isFunction(a)||(a=a.get(t))))break;s[l||"#"+o]=a}if(!a){const o=Object.entries(s).map(([A,T])=>`adapter ${A} `+(T===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
|
|
209
209
|
`+o.map(tC).join(`
|