aloha-vue 2.21.3 → 2.21.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@
7
7
  ---
8
8
  # Versions
9
9
 
10
+ ## 2.21.5
11
+
12
+ - Adjust padding-right in `ASelect` dropdown for improved spacing.
13
+
14
+ ## 2.21.4
15
+
16
+ - Fix toggle behavior in `ASelect` to prevent premature closing when interacting with HTML elements
17
+
10
18
  ## 2.21.3
11
19
 
12
20
  - Fix: ATable, Sorting for columns defect
@@ -8458,7 +8458,7 @@ h6 {
8458
8458
  overflow-x: hidden;
8459
8459
  text-overflow: ellipsis;
8460
8460
  white-space: nowrap;
8461
- padding-right: 18px;
8461
+ padding-right: 25px;
8462
8462
  }
8463
8463
 
8464
8464
  .a_select__ul_closeable {
@@ -24274,7 +24274,9 @@ function aq(e, {
24274
24274
  }
24275
24275
  ), O());
24276
24276
  }, U = () => {
24277
- i.value || (h.value = !0, I(), F());
24277
+ i.value || (h.value = !0, F(), setTimeout(() => {
24278
+ I();
24279
+ }, 100));
24278
24280
  }, G = () => {
24279
24281
  h.value ? (oe(), y()) : U();
24280
24282
  }, ne = (se) => {
@@ -130,7 +130,7 @@ function print() { __p += __j.call(arguments, '') }
130
130
  <path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>
131
131
  </svg>`,Zr={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_"},Pe={propsDefault:{attributesBtnDeselectAll:{},attributesBtnSelectAll:{},attributesFieldset:{},btnDeleteClass:"a_btn a_btn_primary",btnDeleteIcon:Kd,btnDownClass:"a_btn a_btn_outline_secondary",btnDownIcon:ja,btnGroupClass:"a_btn_group",btnUpClass:"a_btn a_btn_outline_secondary",btnUpIcon:r_,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:ja,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:{...Zr},translateData:!1}},Tw={install:(e,{propsDefault:n={}}={})=>{Pe.propsDefault={...Pe.propsDefault,...n}}};function pw(e){const n=t.toRef(e,"texts"),r=t.computed(()=>n.value.btnDeleteTitle||Zr.btnDeleteTitle),a=t.computed(()=>n.value.btnDownTitle||Zr.btnDownTitle),s=t.computed(()=>n.value.btnGroupAriaLabel||Zr.btnGroupAriaLabel),l=t.computed(()=>n.value.btnUpTitle||Zr.btnUpTitle),_=t.computed(()=>n.value.deselectAll||Zr.deselectAll),u=t.computed(()=>n.value.modelEmpty||Zr.modelEmpty),d=t.computed(()=>n.value.selectAll||Zr.selectAll),c=t.computed(()=>n.value.groupAllAriaLabel||Zr.groupAllAriaLabel);return{textBtnDeleteTitle:r,textBtnDownTitle:a,textBtnGroupAriaLabel:s,textBtnUpTitle:l,textDeselectAll:_,textGroupAllAriaLabel:c,textModelEmpty:u,textSelectAll:d}}const lT="AIsDataPrepared",oT={name:"AMultiselectOrdered",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},apiSaveId:{type:String,required:!1,default:void 0},attributesBtnDeselectAll:{type:Object,required:!1,default:()=>Pe.propsDefault.attributesBtnDeselectAll},attributesBtnSelectAll:{type:Object,required:!1,default:()=>Pe.propsDefault.attributesBtnSelectAll},attributesFieldset:{type:Object,required:!1,default:()=>Pe.propsDefault.attributesFieldset},btnDeleteClass:{type:[String,Object],required:!1,default:()=>Pe.propsDefault.btnDeleteClass},btnDeleteIcon:{type:String,required:!1,default:()=>Pe.propsDefault.btnDeleteIcon},btnDownClass:{type:[String,Object],required:!1,default:()=>Pe.propsDefault.btnDownClass},btnDownIcon:{type:String,required:!1,default:()=>Pe.propsDefault.btnDownIcon},btnGroupClass:{type:[String,Object,Array],required:!1,default:()=>Pe.propsDefault.btnGroupClass},btnUpClass:{type:[String,Object],required:!1,default:()=>Pe.propsDefault.btnUpClass},btnUpIcon:{type:String,required:!1,default:()=>Pe.propsDefault.btnUpIcon},change:{type:Function,required:!1,default:()=>{}},classFieldset:{type:[String,Object],required:!1,default:()=>Pe.propsDefault.classFieldset},data:{type:Array,required:!1,default:void 0},dataExtra:{type:Array,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},excludeRenderAttributes:{type:Array,required:!1,default:()=>[]},extra:{type:Object,required:!1,default:void 0},hasBorder:{type:Boolean,required:!1,default:()=>Pe.propsDefault.hasBorder},helpText:{type:String,required:!1},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ze("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:()=>Pe.propsDefault.isDeselectAll},isHide:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},isSelectAll:{type:Boolean,required:!1,default:()=>Pe.propsDefault.isSelectAll},keyDisabled:{type:String,required:!1,default:()=>Pe.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>Pe.propsDefault.keyGroup},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},keyId:{type:String,required:!1,default:()=>Pe.propsDefault.keyId},keyLabel:{type:String,required:!1,default:()=>Pe.propsDefault.keyLabel},keyLabelCallback:{type:Function,required:!1,default:void 0},label:{type:[String,Number],required:!1,default:void 0},labelClass:{required:!1,default:()=>Pe.propsDefault.labelClass},labelScreenReader:{type:String,required:!1,default:void 0},listItemClass:{type:[String,Object,Array],required:!1,default:()=>Pe.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:()=>Pe.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:()=>Pe.propsDefault.search},searchApi:{type:Boolean,required:!1,default:()=>Pe.propsDefault.searchApi},searchApiKey:{type:String,required:!1,default:()=>Pe.propsDefault.searchApiKey},searchInGroup:{type:Boolean,required:!1,default:()=>Pe.propsDefault.searchInGroup},searchOutside:{type:Boolean,required:!1,default:()=>Pe.propsDefault.searchOutside},searchTextInHtml:{type:Boolean,required:!1,default:()=>Pe.propsDefault.searchTextInHtml},searchTimeout:{type:Number,required:!1,default:()=>Pe.propsDefault.searchTimeout},selectButtonClass:{type:String,required:!1,default:()=>Pe.propsDefault.selectButtonClass},selectButtonClassDefault:{type:[String,Object],required:!1,default:()=>Pe.propsDefault.selectButtonClassDefault},selectCaretIcon:{type:[String,Object],required:!1,default:()=>Pe.propsDefault.selectCaretIcon},selectHasCaret:{type:Boolean,required:!1,default:()=>Pe.propsDefault.selectHasCaret},selectInBody:{type:Boolean,required:!1,default:()=>Pe.propsDefault.selectInBody},selectIsCloseByClick:{type:Boolean,required:!1,default:()=>Pe.propsDefault.selectIsCloseByClick},selectIsLabelFloat:{type:Boolean,required:!1,default:()=>Pe.propsDefault.selectIsLabelFloat},selectIsSelectionCloseable:{type:Boolean,required:!1,default:()=>Pe.propsDefault.selectIsSelectionCloseable},selectLabel:{type:[String,Number],required:!1,default:()=>Pe.propsDefault.selectLabel},selectLabelClass:{type:[String,Object],required:!1,default:()=>Pe.propsDefault.selectLabelClass},selectLabelScreenReader:{type:String,required:!1,default:void 0},selectMenuClass:{type:[String,Object],required:!1,default:()=>Pe.propsDefault.selectMenuClass},selectMenuWidthType:{type:String,required:!1,default:()=>Pe.propsDefault.selectMenuWidthType,validator:e=>["as_button","by_content"].indexOf(e)!==-1},selectPlaceholder:{type:String,required:!1,default:void 0},selectPlacement:{type:String,required:!1,default:()=>Pe.propsDefault.selectPlacement,validator:e=>hn.indexOf(e)!==-1},selectPopperContainerId:{type:String,required:!1,default:()=>Pe.propsDefault.selectPopperContainerId},slotName:{type:String,required:!1,default:()=>Pe.propsDefault.slotName},sortOrder:{type:String,required:!1,default:()=>Pe.propsDefault.sortOrder,validator:e=>["asc","desc"].indexOf(e)!==-1},sortOrderGroup:{type:String,required:!1,default:()=>Pe.propsDefault.sortOrderGroup,validator:e=>["asc","desc"].indexOf(e)!==-1},texts:{type:Object,required:!1,default:()=>Pe.propsDefault.texts},translateData:{type:Boolean,required:!1,default:()=>Pe.propsDefault.translateData},url:{type:String,required:!1,default:void 0},urlParams:{type:Object,required:!1,default:void 0}},emits:["blur","focus","onSearchOutside","open","update:modelValue","updateData"],setup(e,n){const{attributesToExcludeFromRender:r}=It(e),{componentStyleHide:a}=xt(e),{textAfterLabel:s}=ql(e),{textBtnDeleteTitle:l,textBtnDownTitle:_,textBtnGroupAriaLabel:u,textBtnUpTitle:d,textDeselectAll:c,textGroupAllAriaLabel:E,textModelEmpty:A,textSelectAll:h}=pw(e),{ariaDescribedbyLocal:T,changeModel:p,clearModel:S,errorsId:I,helpTextId:R,htmlIdLocal:O,isErrors:m,onBlur:C,onFocus:B}=Ft(e,n),{idForSelect:F}=Ew(e,{htmlIdLocal:O}),{dataFromServer:P,dataExtraLocal:M,dataKeyByKeyIdLocal:y,dataLocal:v,hasDataExtra:x}=xl(e),{loadDataFromServer:W,loadDataFromServerForSearchAPI:ee,loadingDataFromServer:Q,loadingSearchApi:se,updateUrlPropsComputed:re,urlPropsComputed:ne}=vl(e,{changeModel:p,dataExtraLocal:M,dataFromServer:P}),{loadingLocal:de}=Ul(e,{loadingDataFromServer:Q});$l(n,{dataKeyByKeyIdLocal:y,dataLocal:v});const{changeModelFromSelect:we,deleteItem:Te,modelValueFiltered:ue,onDownItem:Re,onUpItem:Le}=hw(e,{changeModel:p,dataKeyByKeyIdLocal:y}),{dataSort:Ge}=Fl(e,{data:v}),{dataExtraLocalFiltered:Ie,dataSortFiltered:Y}=Aw(e,{dataExtraLocal:M,dataSort:Ge,modelValueFiltered:ue}),{deselectAll:q,disabledDeselectAll:z,disabledSelectAll:ae,selectAll:be}=fw(e,{changeModel:p,dataExtraLocalFiltered:Ie,dataSortFiltered:Y,modelValueFiltered:ue});return t.watch(ne,re),t.provide(lT,!0),W(),ee(),{ariaDescribedbyLocal:T,attributesToExcludeFromRender:r,changeModelFromSelect:we,clearModel:S,componentStyleHide:a,dataExtraLocalFiltered:Ie,dataKeyByKeyIdLocal:y,dataLocal:v,dataSortFiltered:Y,deleteItem:Te,deselectAll:q,disabledDeselectAll:z,disabledSelectAll:ae,errorsId:I,hasDataExtra:x,helpTextId:R,htmlIdLocal:O,idForSelect:F,isErrors:m,loadingLocal:de,loadingSearchApi:se,modelValueFiltered:ue,onBlur:C,onDownItem:Re,onFocus:B,onUpItem:Le,selectAll:be,textAfterLabel:s,textBtnDeleteTitle:l,textBtnDownTitle:_,textBtnGroupAriaLabel:u,textBtnUpTitle:d,textDeselectAll:c,textGroupAllAriaLabel:E,textModelEmpty:A,textSelectAll:h}},render(){return this.isRender?this.readonly?t.h(Jt,{...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?()=>[t.h("ul",{},[this.modelValueFiltered.map(e=>t.h(_s,{key:e,alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[e]||{},slotName:this.slotName,tag:"li"},this.$slots))])]:""):t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{class:"a_form_element__parent"},[t.h("fieldset",{id:this.htmlIdLocal,tabindex:-1,class:["a_fieldset",this.classFieldset,{a_fieldset_invalid:this.isErrors,a_fieldset_no_border:!this.hasBorder}],"aria-describedby":this.ariaDescribedbyLocal,...this.attributesFieldset},[this.label||this.labelScreenReader?t.h(fe,{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}):"",t.h("div",{class:["a_fieldset__content"]},[this.modelValueFiltered.length?t.h("ul",{class:"a_list_group a_m_select_ordered__ul"},this.modelValueFiltered.map((e,n)=>t.h(uw,{id:this.htmlIdLocal,key:e,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:this.dataKeyByKeyIdLocal[e]||{},disabled:this.disabled,index:n,isLastItem:n===this.modelValueFiltered.length-1,modelValue:e,slotName:this.slotName,onDeleteItem:this.deleteItem,onUpItem:this.onUpItem,onDownItem:this.onDownItem},this.$slots))):"",this.isDeselectAll||this.isSelectAll||!this.modelValueFiltered.length?t.h("div",{class:"a_m_select_ordered__panel"},[this.modelValueFiltered.length?"":t.h(Ee,{class:"a_m_select_ordered__empty",tag:"div",html:this.textModelEmpty}),t.h(Ee,{ariaLabel:this.textGroupAllAriaLabel,role:"group",class:"a_btn_group",tag:"div"},()=>[this.isSelectAll?t.h(fe,{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?t.h(fe,{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}]}):""])]):"",t.h(Ka,{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,isDataSimpleArray:this.isDataSimpleArray,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,type:"multiselect"},this.$slots)])]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}};function Lw(e){const n=t.toRef(e,"label");return{hasLabel:t.computed(()=>!ie(n.value))}}function Sw(e){const n=t.toRef(e,"modelValue"),r=t.toRef(e,"trueValue"),a=t.toRef(e,"falseValue");return{modelValueReadonly:t.computed(()=>n.value===r.value?"_YES_":n.value===a.value?"_NO_":n.value)}}function Rw(e,{changeModel:n=()=>{}}){const r=t.toRef(e,"modelValue"),a=t.toRef(e,"trueValue"),s=t.toRef(e,"falseValue"),l=t.toRef(e,"disabled"),_=t.computed(()=>r.value===a.value),u=c=>{l.value||(setTimeout(()=>{const E=_.value?s.value:a.value;n({model:E,$event:c})}),c.stopPropagation(),c.preventDefault())};return{isChecked:_,onClick:u,onKeydown:c=>{(c.keyCode===X.enter||c.keyCode===X.space)&&u(c)}}}const Tl={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},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:()=>Ze("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(e,n){const{disabledAttribut:r}=Es(e),{attributesToExcludeFromRender:a}=It(e),{componentStyleHide:s}=xt(e),{ariaDescribedbyLocal:l,changeModel:_,errorsId:u,helpTextId:d,htmlIdLocal:c,isErrors:E,onBlur:A,onFocus:h}=Ft(e,n),{isChecked:T,onClick:p,onKeydown:S}=Rw(e,{changeModel:_}),{hasLabel:I}=Lw(e),{modelValueReadonly:R}=Sw(e);return{ariaDescribedbyLocal:l,attributesToExcludeFromRender:a,componentStyleHide:s,disabledAttribut:r,errorsId:u,hasLabel:I,helpTextId:d,htmlIdLocal:c,isChecked:T,isErrors:E,modelValueReadonly:R,onBlur:A,onClick:p,onFocus:h,onKeydown:S}},render(){return this.isRender?this.readonly?t.h(Jt,{...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"}):t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{class:["a_form_element__parent"]},[t.h("div",{class:"a_form_element"},[t.h("div",{class:["a_custom_control a_custom_checkbox",{a_custom_control_invalid:this.isErrors}]},[t.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}),t.h(fe,{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 e;return[(e=this.$slots)!=null&&e[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&&t.h("span",{class:["a_custom_control_label__text",this.labelClass]},[t.h(fe,{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?t.h("span",null,"*"):""])]})])]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}};function Iw(e,{changeModel:n=()=>{},dataKeyByKeyIdLocal:r=t.computed(()=>({}))}){const a=t.toRef(e,"disabled"),s=t.toRef(e,"isModelArray"),l=t.toRef(e,"modelValue");return{onChangeModelValue:({model:u,$event:d})=>{a.value||(s.value?!l.value||l.value.length===0?setTimeout(()=>{n({model:[u],$event:d})}):setTimeout(()=>{const c=[];j(l.value,E=>{r.value[E]||c.push(E)}),c.push(u),n({model:c,$event:d})}):setTimeout(()=>{n({model:u,$event:d})}))}}}function mw(e,{dataKeyByKeyIdLocal:n=t.computed(()=>({}))}){const r=t.toRef(e,"isModelArray"),a=t.toRef(e,"modelValue");return{modelValueItemReadonly:t.computed(()=>{var l;if(r.value){let _;return(l=a.value)!=null&&l.length&&hl.forEach(a.value,u=>{if(u in n.value)return _=n.value[u],!1}),_}return n.value[a.value]})}}const Xd={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:()=>[]},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},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:()=>Ze("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},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:e=>e>=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:e=>["asc","desc"].indexOf(e)!==-1},sortOrderGroup:{type:String,required:!1,default:void 0,validator:e=>["asc","desc"].indexOf(e)!==-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},url:{type:String,required:!1,default:void 0},urlParams:{type:Object,required:!1,default:void 0}},emits:["focusin","focusout","onSearchOutside","toggleCollapse","update:modelValue","updateData"],setup(e,n){const{attributesToExcludeFromRender:r}=It(e),{componentStyleHide:a}=xt(e),{ariaDescribedbyLocal:s,changeModel:l,errorsId:_,helpTextId:u,htmlIdLocal:d,isErrors:c,onFocusin:E,onFocusout:A,rootRef:h}=Ft(e,n),{textAfterLabel:T}=ql(e),{dataFromServer:p,dataExtraLocal:S,dataKeyByKeyIdLocal:I,dataLocal:R,hasDataExtra:O}=xl(e),{loadDataFromServer:m,loadDataFromServerForSearchAPI:C,loadingDataFromServer:B,loadingSearchApi:F,onSearchInApi:P,searchApiLocal:M,updateUrlPropsComputed:y,urlPropsComputed:v}=vl(e,{changeModel:l,dataExtraLocal:S,dataFromServer:p}),{loadingLocal:x}=Ul(e,{loadingDataFromServer:B});$l(n,{dataKeyByKeyIdLocal:I,dataLocal:R});const{dataSort:W}=Fl(e,{data:R}),{dataGrouped:ee,groupsForLever:Q,hasKeyGroup:se,keyGroupArray:re}=O_(e,{data:W}),{hasNotElementsExtraWithSearch:ne,hasNotElementsWithSearch:de,idForButtonSearchOutside:we,modelSearch:Te,modelSearchLowerCase:ue,modelSearchOutside:Re,onSearchOutside:Le,searching:Ge,searchingElements:Ie,searchingElementsExtra:Y,searchingGroups:q,searchingGroupsWithSearchInGroup:z,searchOutsideOrApi:ae,searchOutsideRef:be,updateModelSearch:ye,updateModelSearchOutside:Fe}=g_(e,n,{data:W,dataExtra:S,groupsForLever:Q,htmlIdLocal:d,hasKeyGroup:se,keyGroupArray:re,searchApiLocal:M,onSearchInApi:P}),{onChangeModelValue:Ye}=Iw(e,{changeModel:l,dataKeyByKeyIdLocal:I}),{iconCollapse:xe,initIsCollapsedLocal:$e,isCollapsedLocal:et,titleCollapse:We,toggleCollapse:at}=y_(e,n),{groupId:it}=vd(e,{htmlIdLocal:d}),{modelValueItemReadonly:ft}=mw(e,{dataKeyByKeyIdLocal:I});return t.watch(v,y),$e(),m(),C(),{ariaDescribedbyLocal:s,attributesToExcludeFromRender:r,componentStyleHide:a,dataExtraLocal:S,dataGrouped:ee,dataSort:W,errorsId:_,groupId:it,groupsForLever:Q,hasDataExtra:O,hasKeyGroup:se,hasNotElementsExtraWithSearch:ne,hasNotElementsWithSearch:de,helpTextId:u,htmlIdLocal:d,iconCollapse:xe,idForButtonSearchOutside:we,isCollapsedLocal:et,isErrors:c,loadingLocal:x,loadingSearchApi:F,modelSearch:Te,modelSearchLowerCase:ue,modelSearchOutside:Re,modelValueItemReadonly:ft,onChangeModelValue:Ye,onFocusin:E,onFocusout:A,onSearchOutside:Le,rootRef:h,searching:Ge,searchingElements:Ie,searchingElementsExtra:Y,searchingGroups:q,searchingGroupsWithSearchInGroup:z,searchOutsideOrApi:ae,searchOutsideRef:be,textAfterLabel:T,titleCollapse:We,toggleCollapse:at,updateModelSearch:ye,updateModelSearchOutside:Fe}},render(){var e,n,r;return this.isRender?this.readonly?t.h(Jt,{...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?()=>[t.h(Ko,{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):t.h("div",{ref:"rootRef",...this.$attrs,style:this.componentStyleHide,type:void 0,onFocusin:this.onFocusin,onFocusout:this.onFocusout,...this.attributesToExcludeFromRender},[t.h("div",{class:["a_form_element__parent",{a_radio_inline:this.inline}]},[t.h("div",{class:"a_form_element"},[t.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}],"aria-describedby":this.ariaDescribedbyLocal,...this.attributesFieldset},[this.label||this.labelScreenReader?t.h(fe,{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?t.h(fe,{"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}):"",t.h("div",{id:this.groupId,class:"a_fieldset__content"},[this.searchOutsideOrApi?t.h("div",{class:"a_fieldset__search"},[t.h("form",{onSubmit:this.onSearchOutside},[t.h("div",{class:"input-group"},[t.h(dn,{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}),t.h(fe,{alwaysTranslate:this.alwaysTranslate,ariaDisabled:this.loadingSearchApi,class:"a_btn a_btn_primary",disabled:this.disabled,iconLeft:ol,type:"submit"})])])]):"",this.search?t.h(dn,{alwaysTranslate:this.alwaysTranslate,class:"a_fieldset__search",label:((n=this.texts)==null?void 0:n.search)||"_A_RADIO_SEARCH_",modelValue:this.modelSearch,modelUndefined:"","onUpdate:modelValue":this.updateModelSearch}):"",this.loadingLocal?t.h(os):"",this.hasDataExtra?t.h("div",{class:"a_radio__data_extra"},[...this.dataExtraLocal.map((a,s)=>t.h(Ko,{key:a[Ce],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,idSuffix:"extra",classButtonGroupDefault:this.classButtonGroupDefault,dataItem:a,disabled:this.disabled,isButtonGroup:this.isButtonGroup,isErrors:this.isErrors,isWidthAuto:this.isWidthAuto,itemIndex:s,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?"":t.h("div",{class:"a_divider",ariaHidden:!0})]):"",t.h("div",{},this.hasKeyGroup?[t.h(Yo,{id:`${this.htmlIdLocal}_lev_0`,alwaysTranslate:this.alwaysTranslate,classButtonGroupDefault:this.classButtonGroupDefault,dataGrouped:this.dataGrouped,disabled:this.disabled,groupsForLever:this.groupsForLever,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)]:[t.h("div",{class:["a_radio_data",{a_btn_group:this.isButtonGroup},this.classDataParent]},[...this.dataSort.map((a,s)=>t.h(Ko,{key:a[Ce],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,classButtonGroupDefault:this.classButtonGroupDefault,dataItem:a,disabled:this.disabled,isButtonGroup:this.isButtonGroup,isErrors:this.isErrors,isWidthAuto:this.isWidthAuto,itemIndex:s,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))])]),!this.dataSort.length||this.hasNotElementsWithSearch?t.h(Ee,{alwaysTranslate:this.alwaysTranslate,class:"a_form__not_elements",text:((r=this.texts)==null?void 0:r.notElementsWithSearch)||"_A_RADIO_HAS_NOT_ELEMENTS_WITH_SEARCH_"}):""])])]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}};function bw(e,{changeQueryModel:n=()=>{},changeRouteModel:r=()=>{},changeTargetModel:a=()=>{},childrenForParam:s=t.computed(()=>[]),hasParam:l=t.computed(()=>!1),htmlIdLocal:_=t.computed(()=>""),routesLocal:u=t.computed(()=>[])}){const d=t.toRef(e,"helpTextParam"),c=t.toRef(e,"helpTextQuery"),E=t.toRef(e,"helpTextRoute"),A=t.toRef(e,"helpTextTarget"),h=t.toRef(e,"keyIdRoute"),T=t.toRef(e,"keyLabelCallbackRoute"),p=t.toRef(e,"keyLabelRoute"),S=t.toRef(e,"labelParam"),I=t.toRef(e,"labelQuery"),R=t.toRef(e,"labelRoute"),O=t.toRef(e,"labelTarget"),m=t.toRef(e,"modelValue"),C=t.toRef(e,"readonlyDefaultParam"),B=t.toRef(e,"readonlyDefaultQuery"),F=t.toRef(e,"readonlyDefaultRoute"),P=t.toRef(e,"readonlyDefaultTarget"),M=t.toRef(e,"required"),y=t.toRef(e,"sortOrderRoute"),v=t.toRef(e,"targets");return{dataFormChildren:t.computed(()=>{var W,ee;return[{id:"route",change:r,data:u.value,deselectable:!0,helpText:E.value,idPrefix:_.value,isLabelFloat:!1,keyId:h.value,keyLabel:p.value,keyLabelCallback:T.value,label:R.value,readonlyDefault:F.value,required:M.value,search:!0,sortOrder:y.value,type:"select"},{id:"param",children:s.value,helpText:d.value,idPrefix:_.value,isRender:l.value,label:S.value,readonlyDefault:C.value,required:M.value,type:"fieldset"},{isHide:!((W=m.value)!=null&&W.route),id:"query",change:n,heightCss:"100px",helpText:c.value,idPrefix:_.value,label:I.value,readonlyDefault:B.value,type:"json"},{isHide:!((ee=m.value)!=null&&ee.route),id:"target",change:a,data:v.value,deselectable:!0,helpText:A.value,idPrefix:_.value,isLabelFloat:!1,keyId:"id",keyLabel:"label",label:O.value,readonlyDefault:P.value,translateData:!0,type:"select"}]})}}function Ow(e,{changeModel:n=()=>{}}){const r=t.toRef(e,"modelValue");return{changeParamModel:({model:u,id:d})=>{const c=oe(r.value)||{};c.param=c.param||{},c.param[d]=u,n({model:c})},changeQueryModel:({model:u})=>{const d=oe(r.value)||{};d.query=u,n({model:d})},changeRouteModel:({model:u})=>{var d;n(u?{model:{route:u,query:(d=r.value)==null?void 0:d.query}}:{model:{}})},changeTargetModel:({model:u})=>{const d=oe(r.value)||{};d.target=u,n({model:d})}}}function yw(e,{changeParamModel:n=()=>{},htmlIdLocal:r=t.computed(()=>""),routePathKeyByKeyId:a=t.computed(()=>({}))}){const s=t.toRef(e,"modelValue"),l=t.toRef(e,"required"),_=E=>{const A=/:([a-zA-Z0-9_]+)/g,h=[];let T;for(;(T=A.exec(E))!==null;)h.push(T[1]);return h},u=t.computed(()=>{var E;return(E=s.value)!=null&&E.route?_(a.value[s.value.route]):[]}),d=t.computed(()=>u.value.length>0);return{childrenForParam:t.computed(()=>{const E=[];return j(u.value,A=>{const h={id:`param.${A}`,change:({model:T})=>n({model:T,id:A}),label:A,type:"text",idPrefix:r.value,required:l.value};E.push(h)}),E}),hasParam:d}}function gw(e){const n=t.toRef(e,"keyIdRoute"),r=t.toRef(e,"routes"),a=t.computed(()=>r.value);return{routePathKeyByKeyId:t.computed(()=>{const l={};return j(a.value,_=>{const u=_e(_,n.value);l[u]=_.path}),l}),routesLocal:a}}const _T={name:"ARouterLinkConfig",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},attributesFieldset:{type:Object,required:!1,default:()=>ut.propsDefault.attributesFieldset},change:{type:Function,required:!1,default:()=>{}},classColumn:{type:[String,Object],required:!1,default:()=>ut.propsDefault.classColumn},classColumns:{type:[String,Object],required:!1,default:()=>ut.propsDefault.classColumns},classFieldset:{type:[String,Object],required:!1,default:()=>ut.propsDefault.classFieldset},disabled:{type:Boolean,required:!1},errors:{type:[String,Array],required:!1,default:void 0},excludeRenderAttributes:{type:Array,required:!1,default:()=>ut.propsDefault.excludeRenderAttributes},extra:{type:Object,required:!1,default:()=>ut.propsDefault.extra},hasBorder:{type:Boolean,required:!1,default:()=>ut.propsDefault.hasBorder},helpText:{type:String,required:!1,default:void 0},helpTextParam:{type:String,required:!1,default:()=>ut.propsDefault.helpTextParam},helpTextQuery:{type:String,required:!1,default:()=>ut.propsDefault.helpTextQuery},helpTextRoute:{type:String,required:!1,default:()=>ut.propsDefault.helpTextRoute},helpTextTarget:{type:String,required:!1,default:()=>ut.propsDefault.helpTextTarget},htmlId:{type:String,required:!1,default:void 0},id:{type:[String,Number],required:!1,default:()=>Ze("a_router_link_config_")},idPrefix:{type:String,required:!1,default:void 0},inputAttributes:{type:Object,required:!1,default:()=>({})},isHide:{type:Boolean,required:!1},isRender:{type:Boolean,required:!1,default:!0},keyIdRoute:{type:String,required:!1,default:()=>ut.propsDefault.keyIdRoute},keyLabelCallbackRoute:{type:Function,required:!1,default:void 0},keyLabelRoute:{type:String,required:!1,default:()=>ut.propsDefault.keyLabelRoute},label:{type:[String,Number],required:!1,default:void 0},labelClass:{type:[String,Object],required:!1,default:()=>ut.propsDefault.labelClass},labelParam:{type:String,required:!1,default:()=>ut.propsDefault.labelParam},labelQuery:{type:String,required:!1,default:()=>ut.propsDefault.labelQuery},labelRoute:{type:String,required:!1,default:()=>ut.propsDefault.labelRoute},labelScreenReader:{type:[String,Number],required:!1,default:void 0},labelTarget:{type:String,required:!1,default:()=>ut.propsDefault.labelTarget},modelUndefined:{type:[String,Number,Object,Array,Boolean],required:!1,default:""},modelValue:{type:Object,required:!1,default:()=>({})},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>ut.propsDefault.readonlyDefault},readonlyDefaultParam:{type:String,required:!1,default:()=>ut.propsDefault.readonlyDefaultParam},readonlyDefaultQuery:{type:String,required:!1,default:()=>ut.propsDefault.readonlyDefaultQuery},readonlyDefaultRoute:{type:String,required:!1,default:()=>ut.propsDefault.readonlyDefaultRoute},readonlyDefaultTarget:{type:String,required:!1,default:()=>ut.propsDefault.readonlyDefaultTarget},required:{type:Boolean,required:!1,default:!1},routes:{type:Array,required:!1,default:()=>ut.propsDefault.routes},slotName:{type:String,required:!1,default:void 0},sortOrderRoute:{type:String,required:!1,default:()=>ut.propsDefault.sortOrderRoute,validator:e=>["asc","desc"].indexOf(e)!==-1},targets:{type:Array,required:!1,default:()=>ut.propsDefault.targets}},emits:["update:modelValue","focus","blur"],setup(e,n){const{changeModel:r,htmlIdLocal:a}=Ft(e,n),{changeParamModel:s,changeQueryModel:l,changeRouteModel:_,changeTargetModel:u}=Ow(e,{changeModel:r}),{routePathKeyByKeyId:d,routesLocal:c}=gw(e),{childrenForParam:E,hasParam:A}=yw(e,{changeParamModel:s,htmlIdLocal:a,routePathKeyByKeyId:d}),{dataFormChildren:h}=bw(e,{changeQueryModel:l,changeRouteModel:_,changeTargetModel:u,childrenForParam:E,hasParam:A,htmlIdLocal:a,routesLocal:c});return{dataFormChildren:h,hasParam:A,htmlIdLocal:a}},render(){return t.h(Jd,{...this.$attrs,alwaysTranslate:this.alwaysTranslate,attributesFieldset:this.attributesFieldset,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,id:this.id,idPrefix:this.idPrefix,inputAttributes:this.inputAttributes,isHide:this.isHide,isRender:this.isRender,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,modelUndefined:this.modelUndefined,modelValue:this.modelValue,readonly:this.readonly,readonlyDefault:this.readonlyDefault,required:this.required,slotName:this.slotName,children:this.dataFormChildren,"onUpdate:modelValue":this.$emit["update:modelValue"]})}};function Cw(e,{emit:n}){const r=t.toRef(e,"data"),a=t.computed(()=>r.value[Ce]);return{closeModel:({$event:l})=>{n("changeModelValue",{currentValue:a.value,$event:l,isSelected:!0})}}}function Nw(e){const n=t.toRef(e,"data");return{currentLabel:t.computed(()=>n.value[ot])}}const Jr=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
132
132
  <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"/>
133
- </svg>`,uT={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},slotName:{type:String,required:!1,default:void 0}},emits:["changeModelValue"],setup(e,n){const{currentLabel:r}=Nw(e),{closeModel:a}=Cw(e,n);return{closeModel:a,currentLabel:r}},render(){return t.h("li",{class:"a_select__ul_closeable__item"},[this.slotName&&this.$slots[this.slotName]?this.$slots[this.slotName]({item:this.data,label:this.currentLabel,inDropdown:!1}):t.h(Ee,{alwaysTranslate:this.alwaysTranslate,tag:"span",html:this.currentLabel,extra:this.data.extra}),this.hideDeleteButton?"":t.h(fe,{class:"a_btn a_btn_link a_select__ul_closeable__item__btn",disabled:this.disabled,iconLeft:Jr,prevent:!0,stop:!0,tabindex:-1,type:"button",onClick:this.closeModel})])}};function Dw(e,{htmlIdLocal:n=t.computed(()=>"")}){const r=t.toRef(e,"disabled"),a=t.computed(()=>`${n.value}_container`),s=t.computed(()=>`${n.value}_list`),l=t.computed(()=>`${n.value}_label`),_=t.computed(()=>r.value?void 0:0);return{ariaLabelledby:l,containerId:a,idForList:s,tabindex:_}}function Bw(e){const n=t.toRef(e,"disabled"),r=t.toRef(e,"exclusiveOptionValue"),a=t.toRef(e,"isExclusiveOptionEnabled"),s=t.toRef(e,"modelValue"),l=t.computed(()=>a.value?s.value&&s.value.indexOf(r.value)!==-1:!1),_=t.computed(()=>l.value||n.value),u=t.computed(()=>_.value||void 0);return{disabledAttribut:t.computed(()=>n.value||void 0),disabledLocal:_,disabledLocalAttribut:u,isExclusiveOptionSelected:l}}function Pw(e,{isMultiselect:n=t.computed(()=>!1)}){const r=t.toRef(e,"isSelectAll"),a=t.toRef(e,"isDeselectAll");return{isDividerSelectDeselectVisible:t.computed(()=>n.value&&(r.value||a.value))}}function ww(e){const n=t.toRef(e,"exclusiveOptionLabel"),r=t.toRef(e,"exclusiveOptionValue"),a=t.toRef(e,"extra"),s=t.toRef(e,"isExclusiveOptionEnabled"),l=t.toRef(e,"searchTextInHtml"),_=t.computed(()=>{if(s.value){const d=Rt({placeholder:n.value,extra:a.value}),c={[Ce]:r.value,[ot]:d};return l.value&&(c[pi]=go(d)),c}}),u=t.computed(()=>Ha([_.value],Ce));return{exclusiveOption:_,exclusiveDataKeyByKeyIdLocal:u}}function Mw(e,{dataKeyByKeyIdLocal:n=t.computed(()=>({}))}){const r=t.toRef(e,"countMultiselect"),a=t.toRef(e,"exclusiveOptionValue"),s=t.toRef(e,"modelValue"),l=t.toRef(e,"type"),_=t.computed(()=>l.value==="multiselect"),u=t.computed(()=>!_.value||!s.value||!Ae(s.value)?[]:ht(s.value,h=>n.value[h]||h===a.value)),d=t.computed(()=>_.value?u.value.length>0:!ie(s.value)),c=t.computed(()=>{var h;return((h=u.value)==null?void 0:h.length)||0}),E=t.computed(()=>c.value>r.value),A=t.computed(()=>({[ot]:"_A_SELECT_MORE_SELECTED_{{count}}_",extra:{count:c.value-r.value}}));return{isModelLengthLimitExceeded:E,isModelValue:d,isMultiselect:_,limitExceededModelData:A,modelValueLength:c,modelValueMultiselectFiltered:u}}function vw(e,{changeModel:n=()=>{},dataAll:r=t.computed(()=>[]),dataKeyByKeyIdLocal:a=t.computed(()=>({})),disabledLocal:s=t.computed(()=>!1),isMultiselect:l=t.computed(()=>!1),togglePopover:_=()=>{}}){const u=t.toRef(e,"countMultiselect"),d=t.toRef(e,"disabled"),c=t.toRef(e,"exclusiveOptionValue"),E=t.toRef(e,"isCloseByClick"),A=t.toRef(e,"isExclusiveOptionEnabled"),h=t.toRef(e,"deselectable"),T=t.toRef(e,"maxCountMultiselect"),p=t.toRef(e,"modelValue"),S=t.computed(()=>!l.value||!T.value?!1:_e(p.value,"length")>=T.value),I=t.computed(()=>De(E.value)?!l.value:E.value),R=({currentValue:P,$event:M,isSelected:y})=>{let v;if(l.value)if(v=oe(p.value)||[],y){const x=v.indexOf(P);v.splice(x,1),A.value&&P===c.value&&(v=[])}else if(A.value&&P===c.value)v=[P];else{if(S.value)return;v.push(P)}else if(y)if(h.value)v=void 0;else return;else v=P;n({model:v,$event:M,currentModel:P,item:a.value[P]}),I.value&&_()},O=P=>{const M=dA(p.value,u.value);n({model:M,$event:P})},m=()=>{if(s.value)return;const P=r.value.map(M=>M[Ce]);n({model:P})},C=P=>{const M=P.keyCode;(M===X.enter||M===X.space)&&(m(),P.preventDefault())},B=()=>{d.value||n({model:[]})};return{deleteExceededItems:O,onChangeModelValue:R,onDeselectAll:B,onKeydownDeselectAll:P=>{const M=P.keyCode;(M===X.enter||M===X.space)&&(B(),P.preventDefault())},onKeydownSelectAll:C,onSelectAll:m}}function Fw(e,{dataKeyByKeyIdLocal:n=t.computed(()=>({})),isModelLengthLimitExceeded:r,isModelValue:a=t.computed(()=>!1),isMultiselect:s,modelValueLength:l,modelValueMultiselectFiltered:_=t.computed(()=>[])}){const u=t.toRef(e,"isSelectionCloseable"),d=t.toRef(e,"keyTitle"),c=t.toRef(e,"keyTitleCallback"),E=t.toRef(e,"modelValue"),A=({item:p})=>ge(c.value)?c.value({item:p,inDropdown:!1})||"":d.value?_e(p,d.value)||"":p[ot],h=t.computed(()=>{if(!a.value)return;let p="";if(s.value)u.value||!r.value?j(_.value,(S,I)=>{const R=n.value[S]||{};p+=`${I>0?", ":""}${A({item:R})}`}):p=`${l.value} ausgewählt`;else{const S=n.value[E.value]||{};p=A({item:S})}return p});return{hasSelectedTitle:t.computed(()=>!!h.value),selectedTitle:h}}function dT({$elements:e=t.computed(()=>[]),clickOutsideCallback:n=()=>{}}){const r=t.ref("ontouchend"in document?"touchstart":"click"),a=_=>{let u=!1;j(e.value,d=>{if(d===_.target||d.contains(_.target))return u=!0,!1}),u||n()},s=()=>{document.addEventListener(r.value,a)},l=()=>{document.removeEventListener(r.value,a)};return t.onBeforeUnmount(()=>l()),{setEventClickOutside:s,destroyEventClickOutside:l}}const cT=".a_select__element_clickable:not([disabled]):not([data-hide])";function $w(e,{emit:n},{closePopup:r=()=>{},htmlIdLocal:a=t.computed(()=>""),openPopup:s=()=>{}}){const l=t.toRef(e,"disabled"),_=t.toRef(e,"menuWidthType"),u=t.ref(void 0),d=t.ref(void 0),c=t.ref(!1),E=t.ref(void 0),A=t.ref(void 0),h=t.toRef(e,"placement"),T=t.ref(void 0),p=t.computed(()=>[u.value,E.value]),S=t.computed(()=>{if(_.value==="as_button")return u.value.clientWidth}),{setEventClickOutside:I,destroyEventClickOutside:R}=dT({$elements:p,clickOutsideCallback:se}),O=({isArrowDown:re})=>{const ne=A.value.querySelectorAll(cT);if(ne.length===0)return;let de=!1;j(ne,(we,Te)=>{if(we===document.activeElement)return de=!0,re?Te<ne.length-1&&ne[Te+1].focus():Te>0&&ne[Te-1].focus(),!1}),de||ne[0].focus()},m=()=>{u.value.focus()},C=re=>{const ne=re.keyCode,de=ne===X.arrowDown;de||ne===X.arrowUp?(O({isArrowDown:de}),re.preventDefault()):ne===X.escape?(se(),m(),re.preventDefault(),re.stopPropagation()):ne===X.tab&&(se(),m())},B=()=>{d.value&&(d.value(),d.value=void 0)},F=()=>{s({id:a.value}),n("open")},P=()=>{const re=A.value.querySelector(cT);re&&re.focus()},M=()=>{T.value||(T.value=!0,document.addEventListener("keydown",C))},y=()=>{F(),setTimeout(()=>{P(),M()})},v=()=>{!d.value&&u.value&&A.value&&(d.value=rl(u.value,A.value,()=>{!u.value||!A.value||sl(u.value,A.value,{placement:h.value,middleware:[il(),al({limiter:Go()})]}).then(({x:re,y:ne})=>{if(!u.value.clientWidth){se();return}const de={left:`${re}px`,top:`${ne}px`};S.value&&(de.maxWidth=`${S.value}px`,de.minWidth=`${S.value}px`),Object.assign(A.value.style,de)})}),y())},x=()=>{l.value||(c.value=!0,I(),v())},W=()=>{c.value?(se(),m()):x()},ee=re=>{const ne=re.keyCode;ne===X.enter||ne===X.space?(W(),re.preventDefault()):!c.value&&(ne===X.arrowUp||ne===X.arrowDown)&&(x(),re.preventDefault())},Q=()=>{T.value&&(T.value=!1,document.removeEventListener("keydown",C))};function se(){c.value=!1,B(),R(),Q(),r({id:a.value})}return t.onBeforeUnmount(()=>Q()),{buttonRef:u,handleKeydown:ee,isOpen:c,menuParentRef:E,menuRef:A,togglePopover:W}}const pe={propsDefault:{buttonClass:void 0,caretIcon:ja,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,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,slotName:void 0,sortOrder:void 0,sortOrderGroup:void 0,textDeselectAll:"Alle abwählen",textSelectAll:"Alle auswählen",translateData:!1,type:"select"}},xw={install:(e,{propsDefault:n={}}={})=>{pe.propsDefault={...pe.propsDefault,...n}}},Ka={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:()=>pe.propsDefault.buttonClass},buttonClassDefault:{type:[String,Object],required:!1,default:"a_form_control a_select_toggle"},caretIcon:{type:[String,Object],required:!1,default:()=>pe.propsDefault.caretIcon},change:{type:Function,required:!1,default:()=>{}},class:{type:[String,Object],required:!1},countMultiselect:{type:Number,required:!1,default:()=>pe.propsDefault.countMultiselect},data:{type:Array,required:!1,default:void 0},dataExtra:{type:Array,required:!1,default:()=>pe.propsDefault.dataExtra},dependencies:{type:[Array,Object],required:!1,default:void 0},deselectable:{type:Boolean,required:!1,default:()=>pe.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:()=>pe.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:()=>Ze("a_ui_")},idPrefix:{type:String,required:!1,default:void 0},inBody:{type:Boolean,required:!1,default:()=>pe.propsDefault.inBody},isCloseByClick:{type:Boolean,required:!1,default:()=>pe.propsDefault.isCloseByClick},isDataSimpleArray:{type:Boolean,required:!1,default:()=>pe.propsDefault.isDataSimpleArray},isDeselectAll:{type:Boolean,required:!1,default:()=>pe.propsDefault.isDeselectAll},isExclusiveOptionEnabled:{type:Boolean,required:!1,default:!1,validator:(e,n)=>(n==null?void 0:n.type)!=="multiselect"?e===!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:()=>pe.propsDefault.isSelectAll},isSelectionCloseable:{type:Boolean,required:!1,default:()=>pe.propsDefault.isSelectionCloseable},keyDisabled:{type:String,required:!1,default:()=>pe.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>pe.propsDefault.keyGroup},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},keyId:{type:String,required:!1,default:()=>pe.propsDefault.keyId},keyLabel:{type:String,required:!1,default:()=>pe.propsDefault.keyLabel},keyLabelCallback:{type:Function,required:!1,default:void 0},keyTitle:{type:String,required:!1,default:()=>pe.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},labelScreenReader:{type:String,required:!1,default:void 0},loading:{type:Boolean,required:!1,default:!1},maxCountMultiselect:{type:Number,required:!1,default:()=>pe.propsDefault.maxCountMultiselect,validator:e=>e>0},menuWidthType:{type:String,required:!1,default:()=>pe.propsDefault.menuWidthType,validator:e=>["as_button","by_content"].indexOf(e)!==-1},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{required:!1,default:null},modelValue:{type:[String,Number,Boolean,Array],required:!1,default:()=>pe.propsDefault.modelValue},options:{type:Object,required:!1,default:()=>({})},placeholder:{type:String,required:!1,default:void 0},placement:{type:String,required:!1,default:()=>pe.propsDefault.placement,validator:e=>hn.indexOf(e)!==-1},popperContainerId:{type:String,required:!1,default:()=>pe.propsDefault.popperContainerId},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:()=>pe.propsDefault.search},searchApi:{type:Boolean,required:!1,default:()=>pe.propsDefault.searchApi},searchApiKey:{type:String,required:!1,default:()=>pe.propsDefault.searchApiKey},searchInGroup:{type:Boolean,required:!1,default:void 0},searchOutside:{type:Boolean,required:!1,default:()=>pe.propsDefault.searchOutside},searchTextInHtml:{type:Boolean,required:!1,default:()=>pe.propsDefault.searchTextInHtml},searchTimeout:{type:Number,required:!1,default:()=>pe.propsDefault.searchTimeout},selectMenuClass:{type:[String,Object],required:!1,default:void 0},slotName:{type:String,required:!1,default:()=>pe.propsDefault.slotName},sortOrder:{type:String,required:!1,default:()=>pe.propsDefault.sortOrder,validator:e=>["asc","desc"].indexOf(e)!==-1},sortOrderGroup:{type:String,required:!1,default:()=>pe.propsDefault.sortOrderGroup,validator:e=>["asc","desc"].indexOf(e)!==-1},textDeselectAll:{type:String,required:!1,default:()=>pe.propsDefault.textDeselectAll},textSelectAll:{type:String,required:!1,default:()=>pe.propsDefault.textSelectAll},translateData:{type:Boolean,required:!1,default:()=>pe.propsDefault.translateData},type:{type:String,required:!1,default:()=>pe.propsDefault.type,validator:e=>["select","multiselect"].indexOf(e)!==-1},url:{type:String,required:!1,default:void 0},urlParams:{type:Object,required:!1,default:void 0}},emits:["blur","focus","onSearchOutside","open","update:modelValue","updateData"],setup(e,n){const{attributesToExcludeFromRender:r}=It(e),{componentStyleHide:a}=xt(e),{ariaDescribedbyLocal:s,changeModel:l,clearModel:_,errorsId:u,helpTextId:d,htmlIdLocal:c,isErrors:E,onBlur:A,onFocus:h}=Ft(e,n),{closePopup:T,openPopup:p}=Jo(),{dataAll:S,dataFromServer:I,dataExtraLocal:R,dataKeyByKeyIdLocal:O,dataLocal:m,hasDataExtra:C}=xl(e),{loadDataFromServer:B,loadDataFromServerForSearchAPI:F,loadingDataFromServer:P,loadingSearchApi:M,onSearchInApi:y,searchApiLocal:v,updateUrlPropsComputed:x,urlPropsComputed:W}=vl(e,{changeModel:l,dataExtraLocal:R,dataFromServer:I}),{loadingLocal:ee}=Ul(e,{loadingDataFromServer:P}),{addPopperContainerInBody:Q,popperContainerIdSelector:se}=Bd(e);$l(n,{dataKeyByKeyIdLocal:O,dataLocal:m});const{disabledAttribut:re,disabledLocal:ne,disabledLocalAttribut:de,isExclusiveOptionSelected:we}=Bw(e),{exclusiveOption:Te,exclusiveDataKeyByKeyIdLocal:ue}=ww(e),{isModelLengthLimitExceeded:Re,isModelValue:Le,isMultiselect:Ge,limitExceededModelData:Ie,modelValueLength:Y,modelValueMultiselectFiltered:q}=Mw(e,{dataKeyByKeyIdLocal:O}),{ariaLabelledby:z,containerId:ae,idForList:be,tabindex:ye}=Dw(e,{htmlIdLocal:c}),{dataSort:Fe}=Fl(e,{data:m}),{dataGrouped:Ye,groupsForLever:xe,hasKeyGroup:$e,keyGroupArray:et}=O_(e,{data:Fe}),{hasNotElementsExclusiveWithSearch:We,hasNotElementsExtraWithSearch:at,hasNotElementsWithSearch:it,idForButtonSearchOutside:ft,modelSearch:tt,modelSearchLowerCase:Dt,modelSearchOutside:tn,onSearchOutside:Ar,searching:nn,searchingElements:jn,searchingElementsExclusive:Kn,searchingElementsExtra:Pn,searchingGroups:Mr,searchingGroupsWithSearchInGroup:hr,searchOutsideOrApi:vr,searchOutsideRef:Xn,updateModelSearch:Yn,updateModelSearchOutside:Kt}=g_(e,n,{data:Fe,dataExtra:R,exclusiveOption:Te,groupsForLever:xe,hasKeyGroup:$e,htmlIdLocal:c,keyGroupArray:et,onSearchInApi:y,searchApiLocal:v}),{buttonRef:Ln,handleKeydown:Tr,isOpen:pr,menuParentRef:Pi,menuRef:Fr,togglePopover:zn}=$w(e,n,{closePopup:T,htmlIdLocal:c,openPopup:p}),{deleteExceededItems:Za,onChangeModelValue:Zn,onDeselectAll:wi,onKeydownDeselectAll:Ja,onKeydownSelectAll:mt,onSelectAll:Jn}=vw(e,{changeModel:l,dataAll:S,dataKeyByKeyIdLocal:O,disabledLocal:ne,isMultiselect:Ge,togglePopover:zn}),{hasSelectedTitle:Qa,selectedTitle:ei}=Fw(e,{dataKeyByKeyIdLocal:O,isModelLengthLimitExceeded:Re,isModelValue:Le,isMultiselect:Ge,modelValueLength:Y,modelValueMultiselectFiltered:q}),{isDividerSelectDeselectVisible:$r}=Pw(e,{isMultiselect:Ge}),{destroyEventBusClickLabel:ti,initEventBusClickLabel:xr}=b_({htmlIdLocal:c,clickLabel:zn});return t.watch(W,x),Q({className:"a_select_container"}),xr(),B(),F(),t.onBeforeUnmount(()=>{ti(),T({id:c.value})}),{ariaDescribedbyLocal:s,ariaLabelledby:z,attributesToExcludeFromRender:r,buttonRef:Ln,clearModel:_,componentStyleHide:a,containerId:ae,dataExtraLocal:R,dataGrouped:Ye,dataKeyByKeyIdLocal:O,dataLocal:m,dataSort:Fe,deleteExceededItems:Za,disabledAttribut:re,disabledLocal:ne,disabledLocalAttribut:de,errorsId:u,exclusiveDataKeyByKeyIdLocal:ue,exclusiveOption:Te,groupsForLever:xe,handleKeydown:Tr,hasDataExtra:C,hasKeyGroup:$e,hasNotElementsExclusiveWithSearch:We,hasNotElementsExtraWithSearch:at,hasNotElementsWithSearch:it,hasSelectedTitle:Qa,helpTextId:d,htmlIdLocal:c,idForButtonSearchOutside:ft,idForList:be,isDividerSelectDeselectVisible:$r,isErrors:E,isExclusiveOptionSelected:we,isModelLengthLimitExceeded:Re,isModelValue:Le,isMultiselect:Ge,isOpen:pr,limitExceededModelData:Ie,loadingLocal:ee,loadingSearchApi:M,menuParentRef:Pi,menuRef:Fr,modelSearch:tt,modelSearchLowerCase:Dt,modelSearchOutside:tn,modelValueLength:Y,modelValueMultiselectFiltered:q,onBlur:A,onChangeModelValue:Zn,onDeselectAll:wi,onFocus:h,onKeydownDeselectAll:Ja,onKeydownSelectAll:mt,onSearchOutside:Ar,onSelectAll:Jn,popperContainerIdSelector:se,searching:nn,searchingElements:jn,searchingElementsExclusive:Kn,searchingElementsExtra:Pn,searchingGroups:Mr,searchingGroupsWithSearchInGroup:hr,searchOutsideOrApi:vr,searchOutsideRef:Xn,selectedTitle:ei,tabindex:ye,togglePopover:zn,updateModelSearch:Yn,updateModelSearchOutside:Kt}},render(){return this.isRender?this.readonly?t.h(Jt,{...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:this.type},this.isModelValue?()=>[this.isMultiselect?this.modelValueMultiselectFiltered.length?t.h("ul",{},[this.modelValueMultiselectFiltered.map(e=>t.h(_s,{key:e,alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[e]||{},slotName:this.slotName,tag:"li"},this.$slots))]):"":t.h(_s,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[this.modelValue]||{},slotName:this.slotName},this.$slots)]:""):t.h("div",{...this.$attrs,class:this.class,style:this.componentStyleHide,...this.attributesToExcludeFromRender},[t.h("div",{class:["a_form_element__parent",{a_form_element__parent_float:this.isLabelFloat,a_form_element__parent_not_empty:this.isModelValue||this.isOpen}]},[this.label&&t.h(Nt,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,isLabelFloat:this.isLabelFloat,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,loading:this.loadingLocal,required:this.required,type:this.type,isError:this.isErrors}),t.h("div",{class:"a_form_element"},[t.h("div",{id:this.containerId,ref:"ui_select",class:"a_select",role:"application"},[t.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_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.$slots.fixedPlaceholder?this.$slots.fixedPlaceholder({dataKeyByKeyId:this.dataKeyByKeyIdLocal,modelValue:this.modelValue}):this.isModelValue?this.isMultiselect?this.isSelectionCloseable?t.h("ul",{class:"a_select__ul_closeable"},[dA(this.modelValueMultiselectFiltered,this.countMultiselect).map((e,n)=>t.h(uT,{key:n,alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[e]||this.exclusiveDataKeyByKeyIdLocal[e]||{},slotName:this.slotName,disabled:this.disabled,onChangeModelValue:this.onChangeModelValue},this.$slots)),this.isModelLengthLimitExceeded&&t.h(uT,{key:this.countMultiselect,alwaysTranslate:this.alwaysTranslate,data:this.limitExceededModelData,disabled:this.disabledLocal,hideDeleteButton:!this.exceededItemsDeletable,onChangeModelValue:this.deleteExceededItems})]):t.h("span",{class:"a_select__value__label"},[this.isModelLengthLimitExceeded?t.h(Ee,{alwaysTranslate:this.alwaysTranslate,text:"_A_SELECT_SELECTED_{{count}}_",extra:{count:this.modelValueLength}}):this.modelValueMultiselectFiltered.map((e,n)=>t.h("span",{key:n},[t.h("span",null,n!==0?", ":""),t.h(_s,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[e]||{},slotName:this.slotName},this.$slots)]))]):t.h(_s,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[this.modelValue]||{},class:"a_select__value__label",slotName:this.slotName},this.$slots):t.h(Ee,{tag:"span",text:this.placeholder}),t.h(t.Teleport,{to:this.popperContainerIdSelector,disabled:!this.inBody},[t.h("div",{ref:"menuParentRef",id:this.idForList,style:this.isOpen?"":"display: none;","aria-hidden":!this.isOpen,role:"application"},[t.h("div",{ref:"menuRef",class:["a_select_menu",{a_select_menu_by_content:this.menuWidthType==="by_content"},this.selectMenuClass],role:"listbox","aria-labelledby":this.htmlIdLocal,onClick:e=>e.stopPropagation()},[this.searchOutsideOrApi&&t.h("div",{class:"a_select__search"},[t.h("form",{onSubmit:this.onSearchOutside},[t.h("div",{class:"a_select__search__group"},[t.h(dn,{alwaysTranslate:this.alwaysTranslate,label:"_A_SELECT_SEARCH_",inputClass:"a_select__element_clickable",modelValue:this.modelSearchOutside,modelUndefined:"","onUpdate:modelValue":this.updateModelSearchOutside}),t.h(fe,{alwaysTranslate:this.alwaysTranslate,ariaDisabled:this.loadingSearchApi,disabled:this.disabledLocal,class:"a_btn a_btn_primary a_select__element_clickable",type:"submit",iconLeft:ol,loadingAlign:"left"})])])]),this.search&&t.h("div",{class:"a_select__search"},[t.h(dn,{alwaysTranslate:this.alwaysTranslate,label:"_A_SELECT_SEARCH_",inputClass:"a_select__element_clickable",modelValue:this.modelSearch,modelUndefined:"","onUpdate:modelValue":this.updateModelSearch})]),(this.searchOutside||this.search)&&t.h("div",{class:"a_select__divider",ariaHidden:!0}),t.h("div",{class:"a_select_menu__child"},[this.isMultiselect&&this.isSelectAll&&t.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},[t.h("span",{class:"a_select__menu__link__icon_box"},[t.h(rt,{icon:Fd})]),t.h("span",null,this.textSelectAll)]),this.isMultiselect&&this.isDeselectAll&&t.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},[t.h("span",{class:"a_select__menu__link__icon_box"},[t.h(rt,{icon:Jr})]),t.h("span",null,this.textDeselectAll)]),this.isDividerSelectDeselectVisible&&t.h("div",{class:"a_select__divider",ariaHidden:!0}),this.loadingLocal||this.loadingSearchApi?t.h(os):"",this.isMultiselect&&this.isExclusiveOptionEnabled&&t.h("div",{},[t.h(Xo,{key:this.exclusiveOptionValue,id:this.htmlIdLocal,alwaysTranslate:!0,dataItem:this.exclusiveOption,disabled:!1,itemIndex:0,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElementsExclusive,searchingGroups:this.searchingGroups,searchTextInHtml:this.searchTextInHtml,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)]),this.hasDataExtra&&t.h("div",{},[...this.dataExtraLocal.map((e,n)=>t.h(Xo,{key:e[Ce],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:e,disabled:this.disabledLocal,searching:this.searching,searchingElements:this.searchingElementsExtra,searchTextInHtml:this.searchTextInHtml,itemIndex:this.isExclusiveOptionEnabled?n+1:n,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)),!this.hasNotElementsExtraWithSearch&&!this.hasNotElementsExclusiveWithSearch&&t.h("div",{class:"a_select__divider",ariaHidden:!0})]),t.h("div",{},this.hasKeyGroup?[t.h(Yo,{id:`${this.htmlIdLocal}_lev_0`,alwaysTranslate:this.alwaysTranslate,dataGrouped:this.dataGrouped,disabled:this.disabledLocal,groupsForLever:this.groupsForLever,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.searchingGroups,searchingGroupsWithSearchInGroup:this.searchingGroupsWithSearchInGroup,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)]:[t.h("div",{},[...this.dataSort.map((e,n)=>t.h(Xo,{key:e[Ce],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:e,disabled:this.disabledLocal,itemIndex:n,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))])]),!this.dataSort.length&&!this.hasDataExtra||this.hasNotElementsWithSearch?t.h(Ee,{alwaysTranslate:this.alwaysTranslate,class:"a_form__not_elements",text:"_A_SELECT_HAS_NOT_ELEMENTS_WITH_SEARCH_"}):""])])])]),this.hasCaret?t.h("span",{class:"a_caret"},[t.h(rt,{icon:this.caretIcon})]):""])])]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}},Uw={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 t.h("span",null,[t.h(rt,{icon:this.icon}),this.inDropdown?t.withDirectives(t.h("span",{class:"a_ml_2"}),[[vt,this.labelFiltered]]):t.h("span",{class:"a_ml_2"},this.label)])}};function qw({emit:e}){return{blur:l=>{e("blur",l)},focus:l=>{e("focus",l)},open:l=>{e("open",l)},updateModelValue:l=>{e("update:modelValue",l)}}}function Hw(e){const n=t.toRef(e,"data"),r=t.computed(()=>{const s=oe(_l.value.icons);delete s.Aloha,delete s._NoImage;const l=[];return j(s,(_,u)=>{l.push({value:u,label:u})}),l});return{iconsLocal:t.computed(()=>n.value||r.value)}}function kw(e){const n=t.toRef(e,"type");return{typeLocal:t.computed(()=>n.value==="selectIcon"?"select":n.value==="multiselectIcon"?"multiselect":n.value)}}const Yd={name:"ASelectIcon",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},buttonClass:{type:String,required:!1,default:()=>pe.propsDefault.buttonClass},buttonClassDefault:{type:[String,Object],required:!1,default:"a_form_control a_select_toggle"},caretIcon:{type:[String,Object],required:!1,default:()=>pe.propsDefault.caretIcon},change:{type:Function,required:!1,default:()=>{}},class:{type:[String,Object],required:!1},countMultiselect:{type:Number,required:!1,default:()=>pe.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:()=>pe.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:()=>pe.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:()=>Ze("a_select_icon_")},idPrefix:{type:String,required:!1,default:void 0},inBody:{type:Boolean,required:!1,default:()=>pe.propsDefault.inBody},isCloseByClick:{type:Boolean,required:!1,default:()=>pe.propsDefault.isCloseByClick},isDeselectAll:{type:Boolean,required:!1,default:()=>pe.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:()=>pe.propsDefault.isSelectAll},isSelectionCloseable:{type:Boolean,required:!1,default:()=>pe.propsDefault.isSelectionCloseable},keyDisabled:{type:String,required:!1,default:()=>pe.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>pe.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:()=>pe.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},labelScreenReader:{type:String,required:!1,default:void 0},maxCountMultiselect:{type:Number,required:!1,default:()=>pe.propsDefault.maxCountMultiselect,validator:e=>e>0},menuWidthType:{type:String,required:!1,default:()=>pe.propsDefault.menuWidthType,validator:e=>["as_button","by_content"].indexOf(e)!==-1},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{required:!1,default:null},modelValue:{type:[String,Number,Boolean,Array],required:!1,default:()=>pe.propsDefault.modelValue},options:{type:Object,required:!1,default:()=>({})},placeholder:{type:String,required:!1,default:void 0},placement:{type:String,required:!1,default:()=>pe.propsDefault.placement,validator:e=>hn.indexOf(e)!==-1},popperContainerId:{type:String,required:!1,default:()=>pe.propsDefault.popperContainerId},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:!0},searchInGroup:{type:Boolean,required:!1,default:void 0},searchTextInHtml:{type:Boolean,required:!1,default:()=>pe.propsDefault.searchTextInHtml},searchTimeout:{type:Number,required:!1,default:()=>pe.propsDefault.searchTimeout},selectMenuClass:{type:[String,Object],required:!1,default:void 0},slotName:{type:String,required:!1,default:"icon"},sortOrder:{type:String,required:!1,default:()=>pe.propsDefault.sortOrder,validator:e=>["asc","desc"].indexOf(e)!==-1},sortOrderGroup:{type:String,required:!1,default:()=>pe.propsDefault.sortOrderGroup,validator:e=>["asc","desc"].indexOf(e)!==-1},textDeselectAll:{type:String,required:!1,default:()=>pe.propsDefault.textDeselectAll},textSelectAll:{type:String,required:!1,default:()=>pe.propsDefault.textSelectAll},translateData:{type:Boolean,required:!1,default:()=>pe.propsDefault.translateData},type:{type:String,required:!1,default:()=>pe.propsDefault.type,validator:e=>["select","selectIcon","multiselect","multiselectIcon"].indexOf(e)!==-1}},emits:["blur","focus","open","update:modelValue"],setup(e,n){const{iconsLocal:r}=Hw(e),{blur:a,focus:s,open:l,updateModelValue:_}=qw(n),{typeLocal:u}=kw(e);return{blur:a,focus:s,iconsLocal:r,open:l,typeLocal:u,updateModelValue:_}},render(){return t.h(Ka,{...this.$props,type:this.typeLocal,data:this.iconsLocal,onBlur:this.blur,onFocus:this.focus,onOpen:this.open,"onUpdate:modelValue":this.updateModelValue},{icon:({item:e,label:n,labelFiltered:r,inDropdown:a})=>t.h(Uw,{icon:e.value,label:n,labelFiltered:r,inDropdown:a}),...this.$slots})}};function Ww({isModelFalse:e=t.computed(()=>!1),isModelTrue:n=t.computed(()=>!1)}){return{isChecked:t.computed(()=>{if(n.value)return!0;if(e.value)return!1})}}function Vw(e,{isModelFalse:n=t.computed(()=>!1),isModelTrue:r=t.computed(()=>!1)}){const a=t.toRef(e,"trueLabel"),s=t.toRef(e,"falseLabel"),l=t.toRef(e,"defaultLabel"),_=t.toRef(e,"readonly"),u=t.toRef(e,"readonlyDefault");return{labelValueLocal:t.computed(()=>r.value?a.value:n.value?s.value:_.value?u.value:l.value)}}function Gw(e){const n=t.toRef(e,"modelValue"),r=t.toRef(e,"trueValue"),a=t.toRef(e,"falseValue"),s=t.computed(()=>n.value===r.value||n.value==="true"),l=t.computed(()=>n.value===a.value||n.value==="false");return{isModelDefault:t.computed(()=>!s.value&&!l.value),isModelFalse:l,isModelTrue:s}}function jw(e,{changeModel:n=()=>{},isModelFalse:r=t.computed(()=>!1),isModelTrue:a=t.computed(()=>!1)}){const s=t.toRef(e,"defaultValue"),l=t.toRef(e,"disabled"),_=t.toRef(e,"falseValue"),u=t.toRef(e,"isThreeState"),d=t.toRef(e,"trueValue"),c=A=>{if(l.value)return;let h;a.value?h=_.value:u.value&&r.value?h=s.value:h=d.value,n({model:h,$event:A})};return{onInput:c,onKeydown:A=>{(A.keyCode===X.enter||A.keyCode===X.space)&&(c(A),A.stopPropagation(),A.preventDefault())}}}const zd={name:"ASwitch",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},change:{type:Function,required:!1,default:()=>{}},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},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:()=>Ze("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},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:e=>hn.indexOf(e)!==-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(e,n){const{disabledAttribut:r}=Es(e),{attributesToExcludeFromRender:a}=It(e),{componentStyleHide:s}=xt(e),{ariaDescribedbyLocal:l,changeModel:_,clearModel:u,errorsId:d,helpTextId:c,htmlIdLocal:E,isErrors:A,isModel:h,onBlur:T,onFocus:p}=Ft(e,n),{isModelDefault:S,isModelFalse:I,isModelTrue:R}=Gw(e),{labelValueLocal:O}=Vw(e,{isModelFalse:I,isModelTrue:R}),{isChecked:m}=Ww({isModelFalse:I,isModelTrue:R}),{onInput:C,onKeydown:B}=jw(e,{changeModel:_,isModelFalse:I,isModelTrue:R});return{ariaDescribedbyLocal:l,attributesToExcludeFromRender:a,clearModel:u,componentStyleHide:s,disabledAttribut:r,errorsId:d,helpTextId:c,htmlIdLocal:E,isChecked:m,isErrors:A,isModel:h,isModelDefault:S,labelValueLocal:O,onBlur:T,onFocus:p,onInput:C,onKeydown:B}},render(){return this.isRender?this.readonly?t.h(Jt,{...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"}):t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{class:["a_form_element__parent",{a_form_element__parent_not_empty:this.isModel}]},[this.label||this.labelScreenReader?t.h(Nt,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,required:this.required,isError:this.isErrors}):"",t.h("div",{class:"switch_button__wrapper"},[t.h(fe,{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:()=>[t.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}),t.h(Ee,{alwaysTranslate:this.alwaysTranslate,tag:"label",class:["switch_button__label",{switch_button__label_full:this.fullWidth}],for:this.htmlIdLocal,extra:this.extra,html:this.labelValueLocal})]})]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}},fT={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(e){const{attributesToExcludeFromRender:n}=It(e),{componentStyleHide:r}=xt(e);return{attributesToExcludeFromRender:n,componentStyleHide:r}},render(){return this.isRender?t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[this.$slots[this.slotName]?t.h("div",{class:"a_template"},this.$slots[this.slotName]({options:this.options,props:this.$props})):"",this.html?t.withDirectives(t.h("div",{class:"a_template"}),[[vt,this.html]]):""]):null}},pl=typeof Map=="function"?new Map:function(){const e=[],n=[];return{has:function(a){return e.indexOf(a)>-1},get:function(a){return n[e.indexOf(a)]},set:function(a,s){e.indexOf(a)===-1&&(e.push(a),n.push(s))},delete:function(a){const s=e.indexOf(a);s>-1&&(e.splice(s,1),n.splice(s,1))}}}();let ET=function(n){return new Event(n,{bubbles:!0})};try{new Event("test")}catch{ET=function(r){const a=document.createEvent("Event");return a.initEvent(r,!0,!1),a}}function Kw(e){if(!e||!e.nodeName||e.nodeName!=="TEXTAREA"||pl.has(e))return;let n=null,r=null,a=null;function s(){const A=window.getComputedStyle(e,null);A.resize==="vertical"?e.style.resize="none":A.resize==="both"&&(e.style.resize="horizontal"),A.boxSizing==="content-box"?n=-(parseFloat(A.paddingTop)+parseFloat(A.paddingBottom)):n=parseFloat(A.borderTopWidth)+parseFloat(A.borderBottomWidth),isNaN(n)&&(n=0),d()}function l(A){{const h=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=h}e.style.overflowY=A}function _(A){const h=[];for(;A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&h.push({node:A.parentNode,scrollTop:A.parentNode.scrollTop}),A=A.parentNode;return h}function u(){if(e.scrollHeight===0)return;const A=_(e),h=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,A.forEach(function(T){T.node.scrollTop=T.scrollTop}),h&&(document.documentElement.scrollTop=h)}function d(){u();const A=Math.round(parseFloat(e.style.height)),h=window.getComputedStyle(e,null);let T=h.boxSizing==="content-box"?Math.round(parseFloat(h.height)):e.offsetHeight;if(T<A?h.overflowY==="hidden"&&(l("scroll"),u(),T=h.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):h.overflowY!=="hidden"&&(l("hidden"),u(),T=h.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),a!==T){a=T;const p=ET("autosize:resized");try{e.dispatchEvent(p)}catch{}}}const c=function(){e.clientWidth!==r&&d()},E=(function(A){window.removeEventListener("resize",c,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",E,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(A).forEach(function(h){e.style[h]=A[h]}),pl.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",E,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",pl.set(e,{destroy:E,update:d}),s()}function Xw(e){const n=pl.get(e);n&&n.destroy()}function Yw(e){const n=pl.get(e);n&&n.update()}let Ci;typeof window>"u"||typeof window.getComputedStyle!="function"?(Ci=function(n){return n},Ci.destroy=function(e){return e},Ci.update=function(e){return e}):(Ci=function(n,r){return n&&Array.prototype.forEach.call(n.length?n:[n],function(a){return Kw(a)}),n},Ci.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Xw),e},Ci.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Yw),e});const Zd=Ci;function zw(e){const n=t.toRef(e,"isScalable"),r=t.ref(!1),a=t.ref(void 0);return{destroyAutosize:()=>{r.value&&(Zd.destroy(a.value),r.value=!1)},initAutosize:()=>{n.value&&(Zd(a.value),r.value=!0)},textareaRef:a,updateAutosize:()=>{n.value&&r.value&&setTimeout(()=>{Zd.update(a.value)})}}}function Zw(e,{changeModel:n=()=>{},updateAutosize:r=()=>{}}){const a=t.toRef(e,"disabled"),s=t.toRef(e,"modelUndefined");return{clearModel:()=>{a.value||(n({model:s.value}),r())},onInput:u=>{if(a.value)return;const d=u.target.value;n({model:d})}}}function Jw(e){const n=t.toRef(e,"resize"),r={v:"a_textarea_resize_v",h:"a_textarea_resize_h",none:"a_textarea_resize_none",auto:""};return{resizeClass:t.computed(()=>r[n.value])}}function Qw(e){const n=t.toRef(e,"isScalable"),r=t.toRef(e,"rows");return{rowsLocal:t.computed(()=>{if(r.value)return r.value;if(n.value)return 1})}}const AT={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},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:()=>Ze("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},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:e=>["v","h","none","auto"].indexOf(e)!==-1},rows:{type:[String,Number],required:!1,default:void 0}},emits:["update:modelValue","focus","blur"],setup(e,n){const{disabledAttribut:r}=Es(e),{attributesToExcludeFromRender:a}=It(e),{componentStyleHide:s}=xt(e),{ariaDescribedbyLocal:l,changeModel:_,errorsId:u,helpTextId:d,htmlIdLocal:c,isErrors:E,isModel:A,onBlur:h,onFocus:T}=Ft(e,n),{isClearButtonLocal:p}=Ml(e,{isModel:A}),{resizeClass:S}=Jw(e),{destroyAutosize:I,initAutosize:R,textareaRef:O,updateAutosize:m}=zw(e),{clearModel:C,onInput:B}=Zw(e,{changeModel:_,updateAutosize:m}),{rowsLocal:F}=Qw(e),{placeholderAttributes:P}=dl(e);return t.onMounted(()=>{R()}),t.onBeforeUnmount(()=>{I()}),{ariaDescribedbyLocal:l,attributesToExcludeFromRender:a,changeModel:_,clearModel:C,componentStyleHide:s,disabledAttribut:r,errorsId:u,helpTextId:d,htmlIdLocal:c,isClearButtonLocal:p,isErrors:E,isModel:A,onBlur:h,onFocus:T,onInput:B,placeholderAttributes:P,resizeClass:S,rowsLocal:F,textareaRef:O}},render(){return this.isRender?this.readonly?t.h(Jt,{...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"}):t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{class:["a_form_element__parent",{a_form_element__parent_float:this.isLabelFloat,a_form_element__parent_not_empty:this.isModel}]},[this.label||this.labelScreenReader?t.h(Nt,{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}):"",t.h("div",{class:["a_form_element a_form_element_textarea",{a_form_element_textarea_scalable:this.isScalable}]},[t.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?t.h("div",{class:"a_form_control__actions"},[t.h(ml,{alwaysTranslate:this.alwaysTranslate,disabled:this.disabled,class:this.clearButtonClass,onClear:this.clearModel})]):""]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}},Ll={checkbox:Nh,color:dn,currency:Jh,date:Oi,dateRange:Uh,datetime:Oi,email:dn,file:nT,integer:zr,integerNonNegative:zr,integerNonNegativeRange:El,integerPositive:zr,integerPositiveRange:El,integerRange:El,json:iT,multiselect:Ka,multiselectIcon:Yd,multiselectOrdered:oT,natural:dn,number:zr,numberRange:El,oneCheckbox:Tl,password:dn,radio:Xd,routerLinkConfig:_T,select:Ka,selectIcon:Yd,switch:zd,template:fT,text:dn,textarea:AT},Jd={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:()=>({})},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:()=>Ze("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},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelAll:{type:Object,required:!1,default:()=>({})},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{type:Object,required:!1,default:()=>({})},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},parentId:{type:Array,required:!1,default:()=>[]},slotName:{type:String,required:!1,default:void 0},useFlatErrors:{type:Boolean,required:!1,default:!0},useFlatModel:{type:Boolean,required:!1,default:!0},texts:{type:Object,required:!1,default:()=>({collapseClose:"_A_FIELDSET_COLLAPSE_CLOSE_",collapseOpen:"_A_FIELDSET_COLLAPSE_OPEN_"})}},emits:["toggleCollapse","updateData","update:modelValue"],setup(e,n){const{attributesToExcludeFromRender:r}=It(e),a=()=>({...Ll,group:Qd,fieldset:t.resolveComponent("AFieldset"),...Gt.components,...Gt.containerComponents}),{componentStyleHide:s}=xt(e),{textAfterLabel:l}=ql(e),{ariaDescribedbyLocal:_,errorsId:u,helpTextId:d,htmlIdLocal:c,isErrors:E}=Ft(e,n),{onUpdateModelLocal:A}=OP(e,n),h=({item:C,dataKeyByKeyId:B})=>{n.emit("updateData",{item:C,dataKeyByKeyId:B})},{groupId:T}=vd(e,{htmlIdLocal:c}),{iconCollapse:p,initIsCollapsedLocal:S,isCollapsedLocal:I,titleCollapse:R,toggleCollapse:O}=y_(e,n),{classColumnsReadonly:m}=yP(e);return S(),{ariaDescribedbyLocal:_,attributesToExcludeFromRender:r,classColumnsReadonly:m,componentStyleHide:s,componentTypesMapping:a,errorsId:u,groupId:T,helpTextId:d,htmlIdLocal:c,iconCollapse:p,isCollapsedLocal:I,isErrors:E,onUpdateDataLocal:h,onUpdateModelLocal:A,textAfterLabel:l,titleCollapse:R,toggleCollapse:O}},render(){if(!this.isRender)return null;const e=[this.children.map((n,r)=>{if(n.isRender!==!1){const a=gi.value[n.type];let s;ie(n.classColumn)?s=this.classColumnDefault:n.classColumn&&(s=n.classColumn);let l;n.isHide&&(l="display: none;");const _=this.componentTypesMapping()[n.type],u=this.useFlatErrors?_e(this.errorsAll,n.id):_e(this.errors,n.id);let d;a&&(d=oe(this.parentId),d.push(this.id));const c=a&&!this.useFlatModel||!a?_e(this.modelValue,n.id):this.modelValue;return t.h("div",{class:s,style:l},[t.h(_,{key:r,alwaysTranslate:this.alwaysTranslate,modelValue:c,modelAll:a?this.modelAll:void 0,modelDependencies:a?this.modelValue:void 0,errors:u,errorsAll:a?this.errorsAll:void 0,parentId:d,idPrefix:this.idPrefix,onUpdateData:({dataKeyByKeyId:E})=>this.onUpdateDataLocal({item:n,dataKeyByKeyId:E}),...n,change:({currentModel:E,id:A,item:h,model:T,props:p,fullModel:S})=>this.onUpdateModelLocal({currentModel:E,id:A,item:h,model:T,props:p,component:n,fullModel:S}),readonly:this.readonly||n.readonly,readonlyDefault:"readonlyDefault"in n&&!De(n.readonlyDefault)?n.readonlyDefault:this.readonlyDefault,disabled:this.disabled||n.disabled,classColumn:void 0,slotAppend:void 0,...this.attributesToExcludeFromRender},this.$slots),n.slotAppend&&this.$slots[n.slotAppend]?this.$slots[n.slotAppend]({item:n,itemIndex:r}):""])}}),this.slotName&&this.$slots[this.slotName]?this.$slots[this.slotName]({id:this.htmlIdLocal,props:this.$props}):""];return this.readonly?t.h(Jt,{...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):t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{class:"a_form_element__parent"},[t.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}],"aria-describedby":this.ariaDescribedbyLocal,...this.attributesFieldset},[this.label||this.labelScreenReader?t.h(fe,{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?t.h(fe,{"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}):"",t.h("div",{id:this.groupId,class:[this.classColumns,"a_fieldset__content"]},e)]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])])}},eM=["datepickerRange","dateRange"],hT={};j(eM,e=>{hT[e]=!0});const TT=hT;function tM(e){const n=t.toRef(e,"children");return{specificAttributes:t.computed(()=>{const a={};return j(n.value,s=>{const l=aT[s.type],_=TT[s.type];l&&De(s.inputWidth)&&(a[s.id]={inputWidth:"auto"}),_&&(a[s.id]={inputWidth:"inherit",inputAttributes:{style:"min-width: 181px"}})}),a})}}const Qd={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:()=>({})},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:()=>Ze("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}},emits:["blur","focus","update:modelValue","updateData"],setup(e,n){const{attributesToExcludeFromRender:r}=It(e),a=()=>({...Ll,...Gt.components,...Gt.containerComponents}),{componentStyleHide:s}=xt(e),{ariaDescribedbyLocal:l,changeModel:_,clearModel:u,errorsId:d,helpTextId:c,htmlIdLocal:E,isErrors:A}=Ft(e,n),h=t.toRef(e,"change"),T=t.toRef(e,"id"),p=t.toRef(e,"modelAll"),S=t.toRef(e,"modelValue"),I=t.toRef(e,"parentId"),R=t.toRef(e,"useFlatModel"),O=({currentModel:y,id:v,item:x,model:W,props:ee,component:Q,fullModel:se})=>{if(se){const ne=oe(se);n.emit("update:modelValue",ne),h.value({currentModel:y,id:v,item:x,fullModel:ne,model:W,props:ee}),ge(Q.change)&&Q.change({currentModel:y,id:v,item:x,fullModel:ne,model:W,props:ee});return}const re=R.value?oe(S.value||{}):oe(p.value||{});if(R.value)Vs(re,v,oe(W));else{const de=[...I.value,T.value,v].join(".");Vs(re,de,oe(W))}n.emit("update:modelValue",re),h.value({currentModel:y,id:v,item:x,fullModel:re,model:W,props:ee}),ge(Q.change)&&Q.change({currentModel:y,id:v,item:x,fullModel:re,model:W,props:ee})},m=({item:y,dataKeyByKeyId:v})=>{n.emit("updateData",{item:y,dataKeyByKeyId:v})},C=t.toRef(e,"children"),B=t.toRef(e,"idPrefix"),F=t.computed(()=>C.value[0]||{}),P=t.computed(()=>cl({id:F.value.id,idPrefix:F.value.idPrefix||B.value,htmlId:F.value.htmlId})),{specificAttributes:M}=tM(e);return{ariaDescribedbyLocal:l,attributesToExcludeFromRender:r,changeModel:_,clearModel:u,componentStyleHide:s,componentTypesMapping:a,errorsId:d,firstChild:F,helpTextId:c,htmlIdFirstChild:P,htmlIdLocal:E,isErrors:A,onUpdateDataLocal:m,onUpdateModelLocal:O,specificAttributes:M}},render(){return this.isRender?t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{id:this.htmlIdLocal,role:"group",tabindex:-1,class:[this.inputClass,{a_group_invalid:this.isErrors}],"aria-describedby":this.ariaDescribedbyLocal},[t.h("div",{class:this.classColumns},[this.firstChild.label&&t.h(Nt,{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((e,n)=>{const r=gi.value[e.type];let a;ie(e.classColumn)?a=this.classColumnDefault:e.classColumn&&(a=e.classColumn);let s;e.isHide&&(s="display: none;");const l=this.componentTypesMapping()[e.type],_=this.useFlatErrors?_e(this.errorsAll,e.id):_e(this.errors,e.id);let u;r&&(u=oe(this.parentId),u.push(this.id));const d=r&&!this.useFlatModel||!r?_e(this.modelValue,e.id):this.modelValue;return t.h("div",{class:a,style:s},[t.h(l,{key:n,alwaysTranslate:this.alwaysTranslate,modelAll:r?this.modelAll:void 0,modelValue:d,modelDependencies:r?this.modelValue:void 0,errors:_,errorsAll:r?this.errorsAll:void 0,parentId:u,idPrefix:this.idPrefix,onUpdateData:({dataKeyByKeyId:c})=>this.onUpdateDataLocal({item:e,dataKeyByKeyId:c}),...e,change:({currentModel:c,id:E,item:A,model:h,props:T})=>this.onUpdateModelLocal({currentModel:c,id:E,item:A,model:h,props:T,component:e}),disabled:this.disabled||e.disabled,...this.specificAttributes[e.id],label:n===0?void 0:e.label,slotAppend:void 0,classColumn:void 0,...this.attributesToExcludeFromRender},this.$slots),e.slotAppend&&this.$slots[e.slotAppend]?this.$slots[e.slotAppend]({item:e,itemIndex:n}):""])})])]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{class:"a_px_3",id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})]):null}},ec={fieldset:Jd,group:Qd,...Gt.containerComponents};function nM(){return{componentTypesMapping:()=>({...Ll,...ec,...Gt.components,...Gt.containerComponents})}}function rM(e){const n=t.toRef(e,"filter");return{isContainer:t.computed(()=>!!gi.value[n.value.type])}}function aM(e){const n=t.toRef(e,"filter");return{filterSpecificAttributes:t.computed(()=>{const a={},s=aT[n.value.type],l=TT[n.value.type];return s&&De(n.value.inputWidth)&&(a.inputWidth="auto"),l&&(a.inputWidth="inherit",a.inputAttributes={style:"min-width: 181px"}),a})}}function iM(e){const n=t.toRef(e,"id");return{idPrefix:t.computed(()=>`${n.value}_`)}}function sM(e,{isContainer:n=t.computed(()=>!1)}){const r=t.toRef(e,"filter"),a=t.toRef(e,"onUpdateModelFilters"),s=t.toRef(e,"unappliedModel");return{onUpdateModelFiltersLocal:_=>{if(n.value)a.value({fullModel:_});else{const u=oe(s.value);u[r.value.id]=oe(_),a.value({fullModel:u})}}}}function lM(e){const n=t.toRef(e,"filter"),r=t.toRef(e,"updateDataKeyByIdFromFilter"),a=["select","multiselect","radio","checkbox","group","fieldset"],s=({dataKeyByKeyId:_,item:u})=>{let d=n.value.id;u&&(d=u.id),r.value({filterId:d,dataKeyByKeyId:_})};return{emitForComponentsWithData:t.computed(()=>{const _={};return a.indexOf(n.value.type)!==-1&&(_.onUpdateData=s),_})}}const oM={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(e){const{attributesToExcludeFromRender:n}=It(e),{isContainer:r}=rM(e),{onUpdateModelFiltersLocal:a}=sM(e,{isContainer:r}),{emitForComponentsWithData:s}=lM(e),{idPrefix:l}=iM(e),{componentTypesMapping:_}=nM(),{filterSpecificAttributes:u}=aM(e);return{attributesToExcludeFromRender:n,componentTypesMapping:_,emitForComponentsWithData:s,filterSpecificAttributes:u,idPrefix:l,isContainer:r,onUpdateModelFiltersLocal:a}},render(){const e=this.componentTypesMapping()[this.filter.type];return t.h(e,{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 _M(e){const n=t.toRef(e,"id");return{idFilterRight:t.computed(()=>`${n.value}_filter_right`)}}const pT={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(e){const{idFilterRight:n}=_M(e);return{idFilterRight:n}},render(){return t.h("div",{id:this.idFilterRight,class:"a_filters_right"},[t.h("form",{},[this.filters.map(e=>t.h(oM,{id:this.id,class:"a_filters_right__filter_ui",excludeRenderAttributes:this.excludeRenderAttributes,filter:e,isLabelVisible:!0,onUpdateModelFilters:this.onUpdateModelFilters,unappliedModel:this.appliedModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter},this.$slots))])])}};function uM(e){const n=t.toRef(e,"closeFilterValue"),r=t.toRef(e,"disabled"),a=t.toRef(e,"filter");return{closeCurrentFilterValue:({modelValue:l})=>{r.value||n.value({filter:a.value,modelArray:l.modelArray,keyId:l.keyId})}}}function dM(e,{emit:n},{modelValuesForCurrentFilter:r=t.computed(()=>[])}){const a=t.toRef(e,"filter"),s=t.computed(()=>r.value.length>0);return{isLeastOneFilterVisible:s,updateVisibleChildFilters:({destroy:_}={})=>{n("updateVisibleChildFilters",{id:a.value.id,isVisible:_?!1:s.value})}}}function cM(e){const n=t.toRef(e,"filter"),r=t.toRef(e,"id"),a=t.computed(()=>`eventATableFilterTopOnOpen_${r.value}`);return{goToFilter:({modelValue:l}={})=>{let _=cl({id:n.value.id,idPrefix:`${r.value}_filter_top`,htmlId:n.value.htmlId});l.idSuffix&&(_+=l.idSuffix),n.value.main||Lt.$emit(a.value,_)}}}function fM({filter:e,currentModel:n}){return!(!e||e.hideFilterCenter||ie(n)||n===""||Ae(n)&&!n.length)}function EM(e){const n=t.toRef(e,"filter"),r=t.toRef(e,"model");return{hasCurrentFilter:t.computed(()=>fM({filter:n.value,currentModel:r.value}))}}function AM(e,{emit:n},{hasCurrentFilter:r=t.computed(()=>!1)}){const a=t.toRef(e,"dataKeyByKeyIdPerFilter"),s=t.toRef(e,"filter"),l=t.computed(()=>r.value&&eT.value[s.value.type]?on(a.value[s.value.id]):!1);return{isFilterLoading:l,updateLoadingChildFilters:(u,d)=>{u!==d&&n("updateLoadingChildFilters",{id:s.value.id,isLoading:l.value})}}}function hM(e,{hasCurrentFilter:n=t.computed(()=>!1)}){const r=t.toRef(e,"filter"),a=t.computed(()=>n.value?r.value.label:""),s=t.computed(()=>{if(n.value)return r.value.labelScreenReader}),l=t.computed(()=>s.value||a.value);return{filterLabel:a,filterLabelForTitle:l}}function TM(e,{filterLabel:n=t.computed(()=>""),filterLabelForTitle:r=t.computed(()=>""),hasCurrentFilter:a=t.computed(()=>!1)}){const s=t.toRef(e,"dataKeyByKeyIdPerFilter"),l=t.toRef(e,"filter"),_=t.toRef(e,"model"),{filterBoolean:u,filterDate:d}=Tn(),c=t.computed(()=>{if(l.value)return s.value[l.value.id]}),E=t.computed(()=>{var T;return(T=_.value)!=null&&T.length?ht(_.value,p=>c.value&&c.value[p]):[]}),A=({label:T,suffixTranslated:p})=>{const S=Rt({placeholder:T});return p?`${S} ${p}`:S};return{modelValuesForCurrentFilter:t.computed(()=>{var T,p,S,I,R,O,m,C,B;if(!a.value)return[];if(l.value.type==="switch"||l.value.type==="oneCheckbox")return[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:u(_.value)}];if(l.value.type==="date")return[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:d(_.value)}];if(l.value.type==="select"||l.value.type==="radio"){const F=_e(c.value,`${_.value}.${ot}`);return F?[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:F}]:[]}if(n_.value[l.value.type]||l.value.type==="radio"&&l.value.isModelArray){if(E.value.length){if(E.value.length===1){const F=(T=c.value)==null?void 0:T[E.value[0]];return[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:F==null?void 0:F[ot],item:F,modelArray:E.value}]}return[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:Rt({placeholder:"_A_FILTERS_SELECTED_{{count}}_",extra:{count:E.value.length,modelArray:E.value}}),modelArray:E.value,extra:{count:E.value.length,modelArray:E.value}}]}return[]}if(l.value.type==="dateRange"){const F=l.value.keyFrom||"from",P=l.value.keyUntil||"until",M=[];if(!ie((p=_.value)==null?void 0:p[F])&&((S=_.value)==null?void 0:S[F])!==""){const y=Rt({placeholder:l.value.labelFrom||"_A_DATEPICKER_RANGE_FROM_"});M.push({filterLabelTranslated:A({label:n.value,suffixTranslated:y}),filterLabelForTitleTranslated:A({label:r.value,suffixTranslated:y}),label:d(_.value[F]),idSuffix:"_from",keyId:F})}if(!ie((I=_.value)==null?void 0:I[P])&&((R=_.value)==null?void 0:R[P])!==""){const y=Rt({placeholder:l.value.labelUntil||"_A_DATEPICKER_RANGE_UNTIL_"});M.push({filterLabelTranslated:A({label:n.value,suffixTranslated:y}),filterLabelForTitleTranslated:A({label:r.value,suffixTranslated:y}),label:d(_.value[P]),idSuffix:"_until",keyId:P})}return M}if(jd.indexOf(l.value.type)!==-1){const F=l.value.keyMax||"max",P=l.value.keyMin||"min",M=[];if(!ie((O=_.value)==null?void 0:O[P])&&((m=_.value)==null?void 0:m[P])!==""){const y=Rt({placeholder:l.value.labelMin||"_A_INPUT_NUMBER_RANGE_LABEL_MIN_"});M.push({filterLabelTranslated:A({label:n.value,suffixTranslated:y}),filterLabelForTitleTranslated:A({label:r.value,suffixTranslated:y}),label:_.value[P],idSuffix:"_min",keyId:P})}if(!ie((C=_.value)==null?void 0:C[F])&&((B=_.value)==null?void 0:B[F])!==""){const y=Rt({placeholder:l.value.labelMax||"_A_INPUT_NUMBER_RANGE_LABEL_MAX_"});M.push({filterLabelTranslated:A({label:n.value,suffixTranslated:y}),filterLabelForTitleTranslated:A({label:r.value,suffixTranslated:y}),label:_.value[F],idSuffix:"_max",keyId:F})}return M}return[{label:_.value,filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value})}]})}}const pM=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pin-fill" viewBox="0 0 16 16">
133
+ </svg>`,uT={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},slotName:{type:String,required:!1,default:void 0}},emits:["changeModelValue"],setup(e,n){const{currentLabel:r}=Nw(e),{closeModel:a}=Cw(e,n);return{closeModel:a,currentLabel:r}},render(){return t.h("li",{class:"a_select__ul_closeable__item"},[this.slotName&&this.$slots[this.slotName]?this.$slots[this.slotName]({item:this.data,label:this.currentLabel,inDropdown:!1}):t.h(Ee,{alwaysTranslate:this.alwaysTranslate,tag:"span",html:this.currentLabel,extra:this.data.extra}),this.hideDeleteButton?"":t.h(fe,{class:"a_btn a_btn_link a_select__ul_closeable__item__btn",disabled:this.disabled,iconLeft:Jr,prevent:!0,stop:!0,tabindex:-1,type:"button",onClick:this.closeModel})])}};function Dw(e,{htmlIdLocal:n=t.computed(()=>"")}){const r=t.toRef(e,"disabled"),a=t.computed(()=>`${n.value}_container`),s=t.computed(()=>`${n.value}_list`),l=t.computed(()=>`${n.value}_label`),_=t.computed(()=>r.value?void 0:0);return{ariaLabelledby:l,containerId:a,idForList:s,tabindex:_}}function Bw(e){const n=t.toRef(e,"disabled"),r=t.toRef(e,"exclusiveOptionValue"),a=t.toRef(e,"isExclusiveOptionEnabled"),s=t.toRef(e,"modelValue"),l=t.computed(()=>a.value?s.value&&s.value.indexOf(r.value)!==-1:!1),_=t.computed(()=>l.value||n.value),u=t.computed(()=>_.value||void 0);return{disabledAttribut:t.computed(()=>n.value||void 0),disabledLocal:_,disabledLocalAttribut:u,isExclusiveOptionSelected:l}}function Pw(e,{isMultiselect:n=t.computed(()=>!1)}){const r=t.toRef(e,"isSelectAll"),a=t.toRef(e,"isDeselectAll");return{isDividerSelectDeselectVisible:t.computed(()=>n.value&&(r.value||a.value))}}function ww(e){const n=t.toRef(e,"exclusiveOptionLabel"),r=t.toRef(e,"exclusiveOptionValue"),a=t.toRef(e,"extra"),s=t.toRef(e,"isExclusiveOptionEnabled"),l=t.toRef(e,"searchTextInHtml"),_=t.computed(()=>{if(s.value){const d=Rt({placeholder:n.value,extra:a.value}),c={[Ce]:r.value,[ot]:d};return l.value&&(c[pi]=go(d)),c}}),u=t.computed(()=>Ha([_.value],Ce));return{exclusiveOption:_,exclusiveDataKeyByKeyIdLocal:u}}function Mw(e,{dataKeyByKeyIdLocal:n=t.computed(()=>({}))}){const r=t.toRef(e,"countMultiselect"),a=t.toRef(e,"exclusiveOptionValue"),s=t.toRef(e,"modelValue"),l=t.toRef(e,"type"),_=t.computed(()=>l.value==="multiselect"),u=t.computed(()=>!_.value||!s.value||!Ae(s.value)?[]:ht(s.value,h=>n.value[h]||h===a.value)),d=t.computed(()=>_.value?u.value.length>0:!ie(s.value)),c=t.computed(()=>{var h;return((h=u.value)==null?void 0:h.length)||0}),E=t.computed(()=>c.value>r.value),A=t.computed(()=>({[ot]:"_A_SELECT_MORE_SELECTED_{{count}}_",extra:{count:c.value-r.value}}));return{isModelLengthLimitExceeded:E,isModelValue:d,isMultiselect:_,limitExceededModelData:A,modelValueLength:c,modelValueMultiselectFiltered:u}}function vw(e,{changeModel:n=()=>{},dataAll:r=t.computed(()=>[]),dataKeyByKeyIdLocal:a=t.computed(()=>({})),disabledLocal:s=t.computed(()=>!1),isMultiselect:l=t.computed(()=>!1),togglePopover:_=()=>{}}){const u=t.toRef(e,"countMultiselect"),d=t.toRef(e,"disabled"),c=t.toRef(e,"exclusiveOptionValue"),E=t.toRef(e,"isCloseByClick"),A=t.toRef(e,"isExclusiveOptionEnabled"),h=t.toRef(e,"deselectable"),T=t.toRef(e,"maxCountMultiselect"),p=t.toRef(e,"modelValue"),S=t.computed(()=>!l.value||!T.value?!1:_e(p.value,"length")>=T.value),I=t.computed(()=>De(E.value)?!l.value:E.value),R=({currentValue:P,$event:M,isSelected:y})=>{let v;if(l.value)if(v=oe(p.value)||[],y){const x=v.indexOf(P);v.splice(x,1),A.value&&P===c.value&&(v=[])}else if(A.value&&P===c.value)v=[P];else{if(S.value)return;v.push(P)}else if(y)if(h.value)v=void 0;else return;else v=P;n({model:v,$event:M,currentModel:P,item:a.value[P]}),I.value&&_()},O=P=>{const M=dA(p.value,u.value);n({model:M,$event:P})},m=()=>{if(s.value)return;const P=r.value.map(M=>M[Ce]);n({model:P})},C=P=>{const M=P.keyCode;(M===X.enter||M===X.space)&&(m(),P.preventDefault())},B=()=>{d.value||n({model:[]})};return{deleteExceededItems:O,onChangeModelValue:R,onDeselectAll:B,onKeydownDeselectAll:P=>{const M=P.keyCode;(M===X.enter||M===X.space)&&(B(),P.preventDefault())},onKeydownSelectAll:C,onSelectAll:m}}function Fw(e,{dataKeyByKeyIdLocal:n=t.computed(()=>({})),isModelLengthLimitExceeded:r,isModelValue:a=t.computed(()=>!1),isMultiselect:s,modelValueLength:l,modelValueMultiselectFiltered:_=t.computed(()=>[])}){const u=t.toRef(e,"isSelectionCloseable"),d=t.toRef(e,"keyTitle"),c=t.toRef(e,"keyTitleCallback"),E=t.toRef(e,"modelValue"),A=({item:p})=>ge(c.value)?c.value({item:p,inDropdown:!1})||"":d.value?_e(p,d.value)||"":p[ot],h=t.computed(()=>{if(!a.value)return;let p="";if(s.value)u.value||!r.value?j(_.value,(S,I)=>{const R=n.value[S]||{};p+=`${I>0?", ":""}${A({item:R})}`}):p=`${l.value} ausgewählt`;else{const S=n.value[E.value]||{};p=A({item:S})}return p});return{hasSelectedTitle:t.computed(()=>!!h.value),selectedTitle:h}}function dT({$elements:e=t.computed(()=>[]),clickOutsideCallback:n=()=>{}}){const r=t.ref("ontouchend"in document?"touchstart":"click"),a=_=>{let u=!1;j(e.value,d=>{if(d===_.target||d.contains(_.target))return u=!0,!1}),u||n()},s=()=>{document.addEventListener(r.value,a)},l=()=>{document.removeEventListener(r.value,a)};return t.onBeforeUnmount(()=>l()),{setEventClickOutside:s,destroyEventClickOutside:l}}const cT=".a_select__element_clickable:not([disabled]):not([data-hide])";function $w(e,{emit:n},{closePopup:r=()=>{},htmlIdLocal:a=t.computed(()=>""),openPopup:s=()=>{}}){const l=t.toRef(e,"disabled"),_=t.toRef(e,"menuWidthType"),u=t.ref(void 0),d=t.ref(void 0),c=t.ref(!1),E=t.ref(void 0),A=t.ref(void 0),h=t.toRef(e,"placement"),T=t.ref(void 0),p=t.computed(()=>[u.value,E.value]),S=t.computed(()=>{if(_.value==="as_button")return u.value.clientWidth}),{setEventClickOutside:I,destroyEventClickOutside:R}=dT({$elements:p,clickOutsideCallback:se}),O=({isArrowDown:re})=>{const ne=A.value.querySelectorAll(cT);if(ne.length===0)return;let de=!1;j(ne,(we,Te)=>{if(we===document.activeElement)return de=!0,re?Te<ne.length-1&&ne[Te+1].focus():Te>0&&ne[Te-1].focus(),!1}),de||ne[0].focus()},m=()=>{u.value.focus()},C=re=>{const ne=re.keyCode,de=ne===X.arrowDown;de||ne===X.arrowUp?(O({isArrowDown:de}),re.preventDefault()):ne===X.escape?(se(),m(),re.preventDefault(),re.stopPropagation()):ne===X.tab&&(se(),m())},B=()=>{d.value&&(d.value(),d.value=void 0)},F=()=>{s({id:a.value}),n("open")},P=()=>{const re=A.value.querySelector(cT);re&&re.focus()},M=()=>{T.value||(T.value=!0,document.addEventListener("keydown",C))},y=()=>{F(),setTimeout(()=>{P(),M()})},v=()=>{!d.value&&u.value&&A.value&&(d.value=rl(u.value,A.value,()=>{!u.value||!A.value||sl(u.value,A.value,{placement:h.value,middleware:[il(),al({limiter:Go()})]}).then(({x:re,y:ne})=>{if(!u.value.clientWidth){se();return}const de={left:`${re}px`,top:`${ne}px`};S.value&&(de.maxWidth=`${S.value}px`,de.minWidth=`${S.value}px`),Object.assign(A.value.style,de)})}),y())},x=()=>{l.value||(c.value=!0,v(),setTimeout(()=>{I()},100))},W=()=>{c.value?(se(),m()):x()},ee=re=>{const ne=re.keyCode;ne===X.enter||ne===X.space?(W(),re.preventDefault()):!c.value&&(ne===X.arrowUp||ne===X.arrowDown)&&(x(),re.preventDefault())},Q=()=>{T.value&&(T.value=!1,document.removeEventListener("keydown",C))};function se(){c.value=!1,B(),R(),Q(),r({id:a.value})}return t.onBeforeUnmount(()=>Q()),{buttonRef:u,handleKeydown:ee,isOpen:c,menuParentRef:E,menuRef:A,togglePopover:W}}const pe={propsDefault:{buttonClass:void 0,caretIcon:ja,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,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,slotName:void 0,sortOrder:void 0,sortOrderGroup:void 0,textDeselectAll:"Alle abwählen",textSelectAll:"Alle auswählen",translateData:!1,type:"select"}},xw={install:(e,{propsDefault:n={}}={})=>{pe.propsDefault={...pe.propsDefault,...n}}},Ka={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:()=>pe.propsDefault.buttonClass},buttonClassDefault:{type:[String,Object],required:!1,default:"a_form_control a_select_toggle"},caretIcon:{type:[String,Object],required:!1,default:()=>pe.propsDefault.caretIcon},change:{type:Function,required:!1,default:()=>{}},class:{type:[String,Object],required:!1},countMultiselect:{type:Number,required:!1,default:()=>pe.propsDefault.countMultiselect},data:{type:Array,required:!1,default:void 0},dataExtra:{type:Array,required:!1,default:()=>pe.propsDefault.dataExtra},dependencies:{type:[Array,Object],required:!1,default:void 0},deselectable:{type:Boolean,required:!1,default:()=>pe.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:()=>pe.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:()=>Ze("a_ui_")},idPrefix:{type:String,required:!1,default:void 0},inBody:{type:Boolean,required:!1,default:()=>pe.propsDefault.inBody},isCloseByClick:{type:Boolean,required:!1,default:()=>pe.propsDefault.isCloseByClick},isDataSimpleArray:{type:Boolean,required:!1,default:()=>pe.propsDefault.isDataSimpleArray},isDeselectAll:{type:Boolean,required:!1,default:()=>pe.propsDefault.isDeselectAll},isExclusiveOptionEnabled:{type:Boolean,required:!1,default:!1,validator:(e,n)=>(n==null?void 0:n.type)!=="multiselect"?e===!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:()=>pe.propsDefault.isSelectAll},isSelectionCloseable:{type:Boolean,required:!1,default:()=>pe.propsDefault.isSelectionCloseable},keyDisabled:{type:String,required:!1,default:()=>pe.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>pe.propsDefault.keyGroup},keyGroupLabelCallback:{type:Function,required:!1,default:void 0},keyId:{type:String,required:!1,default:()=>pe.propsDefault.keyId},keyLabel:{type:String,required:!1,default:()=>pe.propsDefault.keyLabel},keyLabelCallback:{type:Function,required:!1,default:void 0},keyTitle:{type:String,required:!1,default:()=>pe.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},labelScreenReader:{type:String,required:!1,default:void 0},loading:{type:Boolean,required:!1,default:!1},maxCountMultiselect:{type:Number,required:!1,default:()=>pe.propsDefault.maxCountMultiselect,validator:e=>e>0},menuWidthType:{type:String,required:!1,default:()=>pe.propsDefault.menuWidthType,validator:e=>["as_button","by_content"].indexOf(e)!==-1},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{required:!1,default:null},modelValue:{type:[String,Number,Boolean,Array],required:!1,default:()=>pe.propsDefault.modelValue},options:{type:Object,required:!1,default:()=>({})},placeholder:{type:String,required:!1,default:void 0},placement:{type:String,required:!1,default:()=>pe.propsDefault.placement,validator:e=>hn.indexOf(e)!==-1},popperContainerId:{type:String,required:!1,default:()=>pe.propsDefault.popperContainerId},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:()=>pe.propsDefault.search},searchApi:{type:Boolean,required:!1,default:()=>pe.propsDefault.searchApi},searchApiKey:{type:String,required:!1,default:()=>pe.propsDefault.searchApiKey},searchInGroup:{type:Boolean,required:!1,default:void 0},searchOutside:{type:Boolean,required:!1,default:()=>pe.propsDefault.searchOutside},searchTextInHtml:{type:Boolean,required:!1,default:()=>pe.propsDefault.searchTextInHtml},searchTimeout:{type:Number,required:!1,default:()=>pe.propsDefault.searchTimeout},selectMenuClass:{type:[String,Object],required:!1,default:void 0},slotName:{type:String,required:!1,default:()=>pe.propsDefault.slotName},sortOrder:{type:String,required:!1,default:()=>pe.propsDefault.sortOrder,validator:e=>["asc","desc"].indexOf(e)!==-1},sortOrderGroup:{type:String,required:!1,default:()=>pe.propsDefault.sortOrderGroup,validator:e=>["asc","desc"].indexOf(e)!==-1},textDeselectAll:{type:String,required:!1,default:()=>pe.propsDefault.textDeselectAll},textSelectAll:{type:String,required:!1,default:()=>pe.propsDefault.textSelectAll},translateData:{type:Boolean,required:!1,default:()=>pe.propsDefault.translateData},type:{type:String,required:!1,default:()=>pe.propsDefault.type,validator:e=>["select","multiselect"].indexOf(e)!==-1},url:{type:String,required:!1,default:void 0},urlParams:{type:Object,required:!1,default:void 0}},emits:["blur","focus","onSearchOutside","open","update:modelValue","updateData"],setup(e,n){const{attributesToExcludeFromRender:r}=It(e),{componentStyleHide:a}=xt(e),{ariaDescribedbyLocal:s,changeModel:l,clearModel:_,errorsId:u,helpTextId:d,htmlIdLocal:c,isErrors:E,onBlur:A,onFocus:h}=Ft(e,n),{closePopup:T,openPopup:p}=Jo(),{dataAll:S,dataFromServer:I,dataExtraLocal:R,dataKeyByKeyIdLocal:O,dataLocal:m,hasDataExtra:C}=xl(e),{loadDataFromServer:B,loadDataFromServerForSearchAPI:F,loadingDataFromServer:P,loadingSearchApi:M,onSearchInApi:y,searchApiLocal:v,updateUrlPropsComputed:x,urlPropsComputed:W}=vl(e,{changeModel:l,dataExtraLocal:R,dataFromServer:I}),{loadingLocal:ee}=Ul(e,{loadingDataFromServer:P}),{addPopperContainerInBody:Q,popperContainerIdSelector:se}=Bd(e);$l(n,{dataKeyByKeyIdLocal:O,dataLocal:m});const{disabledAttribut:re,disabledLocal:ne,disabledLocalAttribut:de,isExclusiveOptionSelected:we}=Bw(e),{exclusiveOption:Te,exclusiveDataKeyByKeyIdLocal:ue}=ww(e),{isModelLengthLimitExceeded:Re,isModelValue:Le,isMultiselect:Ge,limitExceededModelData:Ie,modelValueLength:Y,modelValueMultiselectFiltered:q}=Mw(e,{dataKeyByKeyIdLocal:O}),{ariaLabelledby:z,containerId:ae,idForList:be,tabindex:ye}=Dw(e,{htmlIdLocal:c}),{dataSort:Fe}=Fl(e,{data:m}),{dataGrouped:Ye,groupsForLever:xe,hasKeyGroup:$e,keyGroupArray:et}=O_(e,{data:Fe}),{hasNotElementsExclusiveWithSearch:We,hasNotElementsExtraWithSearch:at,hasNotElementsWithSearch:it,idForButtonSearchOutside:ft,modelSearch:tt,modelSearchLowerCase:Dt,modelSearchOutside:tn,onSearchOutside:Ar,searching:nn,searchingElements:jn,searchingElementsExclusive:Kn,searchingElementsExtra:Pn,searchingGroups:Mr,searchingGroupsWithSearchInGroup:hr,searchOutsideOrApi:vr,searchOutsideRef:Xn,updateModelSearch:Yn,updateModelSearchOutside:Kt}=g_(e,n,{data:Fe,dataExtra:R,exclusiveOption:Te,groupsForLever:xe,hasKeyGroup:$e,htmlIdLocal:c,keyGroupArray:et,onSearchInApi:y,searchApiLocal:v}),{buttonRef:Ln,handleKeydown:Tr,isOpen:pr,menuParentRef:Pi,menuRef:Fr,togglePopover:zn}=$w(e,n,{closePopup:T,htmlIdLocal:c,openPopup:p}),{deleteExceededItems:Za,onChangeModelValue:Zn,onDeselectAll:wi,onKeydownDeselectAll:Ja,onKeydownSelectAll:mt,onSelectAll:Jn}=vw(e,{changeModel:l,dataAll:S,dataKeyByKeyIdLocal:O,disabledLocal:ne,isMultiselect:Ge,togglePopover:zn}),{hasSelectedTitle:Qa,selectedTitle:ei}=Fw(e,{dataKeyByKeyIdLocal:O,isModelLengthLimitExceeded:Re,isModelValue:Le,isMultiselect:Ge,modelValueLength:Y,modelValueMultiselectFiltered:q}),{isDividerSelectDeselectVisible:$r}=Pw(e,{isMultiselect:Ge}),{destroyEventBusClickLabel:ti,initEventBusClickLabel:xr}=b_({htmlIdLocal:c,clickLabel:zn});return t.watch(W,x),Q({className:"a_select_container"}),xr(),B(),F(),t.onBeforeUnmount(()=>{ti(),T({id:c.value})}),{ariaDescribedbyLocal:s,ariaLabelledby:z,attributesToExcludeFromRender:r,buttonRef:Ln,clearModel:_,componentStyleHide:a,containerId:ae,dataExtraLocal:R,dataGrouped:Ye,dataKeyByKeyIdLocal:O,dataLocal:m,dataSort:Fe,deleteExceededItems:Za,disabledAttribut:re,disabledLocal:ne,disabledLocalAttribut:de,errorsId:u,exclusiveDataKeyByKeyIdLocal:ue,exclusiveOption:Te,groupsForLever:xe,handleKeydown:Tr,hasDataExtra:C,hasKeyGroup:$e,hasNotElementsExclusiveWithSearch:We,hasNotElementsExtraWithSearch:at,hasNotElementsWithSearch:it,hasSelectedTitle:Qa,helpTextId:d,htmlIdLocal:c,idForButtonSearchOutside:ft,idForList:be,isDividerSelectDeselectVisible:$r,isErrors:E,isExclusiveOptionSelected:we,isModelLengthLimitExceeded:Re,isModelValue:Le,isMultiselect:Ge,isOpen:pr,limitExceededModelData:Ie,loadingLocal:ee,loadingSearchApi:M,menuParentRef:Pi,menuRef:Fr,modelSearch:tt,modelSearchLowerCase:Dt,modelSearchOutside:tn,modelValueLength:Y,modelValueMultiselectFiltered:q,onBlur:A,onChangeModelValue:Zn,onDeselectAll:wi,onFocus:h,onKeydownDeselectAll:Ja,onKeydownSelectAll:mt,onSearchOutside:Ar,onSelectAll:Jn,popperContainerIdSelector:se,searching:nn,searchingElements:jn,searchingElementsExclusive:Kn,searchingElementsExtra:Pn,searchingGroups:Mr,searchingGroupsWithSearchInGroup:hr,searchOutsideOrApi:vr,searchOutsideRef:Xn,selectedTitle:ei,tabindex:ye,togglePopover:zn,updateModelSearch:Yn,updateModelSearchOutside:Kt}},render(){return this.isRender?this.readonly?t.h(Jt,{...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:this.type},this.isModelValue?()=>[this.isMultiselect?this.modelValueMultiselectFiltered.length?t.h("ul",{},[this.modelValueMultiselectFiltered.map(e=>t.h(_s,{key:e,alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[e]||{},slotName:this.slotName,tag:"li"},this.$slots))]):"":t.h(_s,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[this.modelValue]||{},slotName:this.slotName},this.$slots)]:""):t.h("div",{...this.$attrs,class:this.class,style:this.componentStyleHide,...this.attributesToExcludeFromRender},[t.h("div",{class:["a_form_element__parent",{a_form_element__parent_float:this.isLabelFloat,a_form_element__parent_not_empty:this.isModelValue||this.isOpen}]},[this.label&&t.h(Nt,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,isLabelFloat:this.isLabelFloat,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,loading:this.loadingLocal,required:this.required,type:this.type,isError:this.isErrors}),t.h("div",{class:"a_form_element"},[t.h("div",{id:this.containerId,ref:"ui_select",class:"a_select",role:"application"},[t.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_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.$slots.fixedPlaceholder?this.$slots.fixedPlaceholder({dataKeyByKeyId:this.dataKeyByKeyIdLocal,modelValue:this.modelValue}):this.isModelValue?this.isMultiselect?this.isSelectionCloseable?t.h("ul",{class:"a_select__ul_closeable"},[dA(this.modelValueMultiselectFiltered,this.countMultiselect).map((e,n)=>t.h(uT,{key:n,alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[e]||this.exclusiveDataKeyByKeyIdLocal[e]||{},slotName:this.slotName,disabled:this.disabled,onChangeModelValue:this.onChangeModelValue},this.$slots)),this.isModelLengthLimitExceeded&&t.h(uT,{key:this.countMultiselect,alwaysTranslate:this.alwaysTranslate,data:this.limitExceededModelData,disabled:this.disabledLocal,hideDeleteButton:!this.exceededItemsDeletable,onChangeModelValue:this.deleteExceededItems})]):t.h("span",{class:"a_select__value__label"},[this.isModelLengthLimitExceeded?t.h(Ee,{alwaysTranslate:this.alwaysTranslate,text:"_A_SELECT_SELECTED_{{count}}_",extra:{count:this.modelValueLength}}):this.modelValueMultiselectFiltered.map((e,n)=>t.h("span",{key:n},[t.h("span",null,n!==0?", ":""),t.h(_s,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[e]||{},slotName:this.slotName},this.$slots)]))]):t.h(_s,{alwaysTranslate:this.alwaysTranslate,data:this.dataKeyByKeyIdLocal[this.modelValue]||{},class:"a_select__value__label",slotName:this.slotName},this.$slots):t.h(Ee,{tag:"span",text:this.placeholder}),t.h(t.Teleport,{to:this.popperContainerIdSelector,disabled:!this.inBody},[t.h("div",{ref:"menuParentRef",id:this.idForList,style:this.isOpen?"":"display: none;","aria-hidden":!this.isOpen,role:"application"},[t.h("div",{ref:"menuRef",class:["a_select_menu",{a_select_menu_by_content:this.menuWidthType==="by_content"},this.selectMenuClass],role:"listbox","aria-labelledby":this.htmlIdLocal,onClick:e=>e.stopPropagation()},[this.searchOutsideOrApi&&t.h("div",{class:"a_select__search"},[t.h("form",{onSubmit:this.onSearchOutside},[t.h("div",{class:"a_select__search__group"},[t.h(dn,{alwaysTranslate:this.alwaysTranslate,label:"_A_SELECT_SEARCH_",inputClass:"a_select__element_clickable",modelValue:this.modelSearchOutside,modelUndefined:"","onUpdate:modelValue":this.updateModelSearchOutside}),t.h(fe,{alwaysTranslate:this.alwaysTranslate,ariaDisabled:this.loadingSearchApi,disabled:this.disabledLocal,class:"a_btn a_btn_primary a_select__element_clickable",type:"submit",iconLeft:ol,loadingAlign:"left"})])])]),this.search&&t.h("div",{class:"a_select__search"},[t.h(dn,{alwaysTranslate:this.alwaysTranslate,label:"_A_SELECT_SEARCH_",inputClass:"a_select__element_clickable",modelValue:this.modelSearch,modelUndefined:"","onUpdate:modelValue":this.updateModelSearch})]),(this.searchOutside||this.search)&&t.h("div",{class:"a_select__divider",ariaHidden:!0}),t.h("div",{class:"a_select_menu__child"},[this.isMultiselect&&this.isSelectAll&&t.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},[t.h("span",{class:"a_select__menu__link__icon_box"},[t.h(rt,{icon:Fd})]),t.h("span",null,this.textSelectAll)]),this.isMultiselect&&this.isDeselectAll&&t.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},[t.h("span",{class:"a_select__menu__link__icon_box"},[t.h(rt,{icon:Jr})]),t.h("span",null,this.textDeselectAll)]),this.isDividerSelectDeselectVisible&&t.h("div",{class:"a_select__divider",ariaHidden:!0}),this.loadingLocal||this.loadingSearchApi?t.h(os):"",this.isMultiselect&&this.isExclusiveOptionEnabled&&t.h("div",{},[t.h(Xo,{key:this.exclusiveOptionValue,id:this.htmlIdLocal,alwaysTranslate:!0,dataItem:this.exclusiveOption,disabled:!1,itemIndex:0,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,searching:this.searching,searchingElements:this.searchingElementsExclusive,searchingGroups:this.searchingGroups,searchTextInHtml:this.searchTextInHtml,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)]),this.hasDataExtra&&t.h("div",{},[...this.dataExtraLocal.map((e,n)=>t.h(Xo,{key:e[Ce],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:e,disabled:this.disabledLocal,searching:this.searching,searchingElements:this.searchingElementsExtra,searchTextInHtml:this.searchTextInHtml,itemIndex:this.isExclusiveOptionEnabled?n+1:n,keyDisabled:this.keyDisabled,keyDisabledCallback:this.keyDisabledCallback,modelSearch:this.modelSearchLowerCase,modelValue:this.modelValue,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)),!this.hasNotElementsExtraWithSearch&&!this.hasNotElementsExclusiveWithSearch&&t.h("div",{class:"a_select__divider",ariaHidden:!0})]),t.h("div",{},this.hasKeyGroup?[t.h(Yo,{id:`${this.htmlIdLocal}_lev_0`,alwaysTranslate:this.alwaysTranslate,dataGrouped:this.dataGrouped,disabled:this.disabledLocal,groupsForLever:this.groupsForLever,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.searchingGroups,searchingGroupsWithSearchInGroup:this.searchingGroupsWithSearchInGroup,searchTextInHtml:this.searchTextInHtml,slotName:this.slotName,type:this.type,onChangeModelValue:this.onChangeModelValue},this.$slots)]:[t.h("div",{},[...this.dataSort.map((e,n)=>t.h(Xo,{key:e[Ce],id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,dataItem:e,disabled:this.disabledLocal,itemIndex:n,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))])]),!this.dataSort.length&&!this.hasDataExtra||this.hasNotElementsWithSearch?t.h(Ee,{alwaysTranslate:this.alwaysTranslate,class:"a_form__not_elements",text:"_A_SELECT_HAS_NOT_ELEMENTS_WITH_SEARCH_"}):""])])])]),this.hasCaret?t.h("span",{class:"a_caret"},[t.h(rt,{icon:this.caretIcon})]):""])])]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}},Uw={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 t.h("span",null,[t.h(rt,{icon:this.icon}),this.inDropdown?t.withDirectives(t.h("span",{class:"a_ml_2"}),[[vt,this.labelFiltered]]):t.h("span",{class:"a_ml_2"},this.label)])}};function qw({emit:e}){return{blur:l=>{e("blur",l)},focus:l=>{e("focus",l)},open:l=>{e("open",l)},updateModelValue:l=>{e("update:modelValue",l)}}}function Hw(e){const n=t.toRef(e,"data"),r=t.computed(()=>{const s=oe(_l.value.icons);delete s.Aloha,delete s._NoImage;const l=[];return j(s,(_,u)=>{l.push({value:u,label:u})}),l});return{iconsLocal:t.computed(()=>n.value||r.value)}}function kw(e){const n=t.toRef(e,"type");return{typeLocal:t.computed(()=>n.value==="selectIcon"?"select":n.value==="multiselectIcon"?"multiselect":n.value)}}const Yd={name:"ASelectIcon",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},buttonClass:{type:String,required:!1,default:()=>pe.propsDefault.buttonClass},buttonClassDefault:{type:[String,Object],required:!1,default:"a_form_control a_select_toggle"},caretIcon:{type:[String,Object],required:!1,default:()=>pe.propsDefault.caretIcon},change:{type:Function,required:!1,default:()=>{}},class:{type:[String,Object],required:!1},countMultiselect:{type:Number,required:!1,default:()=>pe.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:()=>pe.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:()=>pe.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:()=>Ze("a_select_icon_")},idPrefix:{type:String,required:!1,default:void 0},inBody:{type:Boolean,required:!1,default:()=>pe.propsDefault.inBody},isCloseByClick:{type:Boolean,required:!1,default:()=>pe.propsDefault.isCloseByClick},isDeselectAll:{type:Boolean,required:!1,default:()=>pe.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:()=>pe.propsDefault.isSelectAll},isSelectionCloseable:{type:Boolean,required:!1,default:()=>pe.propsDefault.isSelectionCloseable},keyDisabled:{type:String,required:!1,default:()=>pe.propsDefault.keyDisabled},keyDisabledCallback:{type:Function,required:!1,default:void 0},keyGroup:{type:[String,Number,Array],required:!1,default:()=>pe.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:()=>pe.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},labelScreenReader:{type:String,required:!1,default:void 0},maxCountMultiselect:{type:Number,required:!1,default:()=>pe.propsDefault.maxCountMultiselect,validator:e=>e>0},menuWidthType:{type:String,required:!1,default:()=>pe.propsDefault.menuWidthType,validator:e=>["as_button","by_content"].indexOf(e)!==-1},modelDependencies:{type:Object,required:!1,default:()=>({})},modelUndefined:{required:!1,default:null},modelValue:{type:[String,Number,Boolean,Array],required:!1,default:()=>pe.propsDefault.modelValue},options:{type:Object,required:!1,default:()=>({})},placeholder:{type:String,required:!1,default:void 0},placement:{type:String,required:!1,default:()=>pe.propsDefault.placement,validator:e=>hn.indexOf(e)!==-1},popperContainerId:{type:String,required:!1,default:()=>pe.propsDefault.popperContainerId},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:()=>pe.propsDefault.readonlyDefault},required:{type:Boolean,required:!1,default:!1},search:{type:Boolean,required:!1,default:!0},searchInGroup:{type:Boolean,required:!1,default:void 0},searchTextInHtml:{type:Boolean,required:!1,default:()=>pe.propsDefault.searchTextInHtml},searchTimeout:{type:Number,required:!1,default:()=>pe.propsDefault.searchTimeout},selectMenuClass:{type:[String,Object],required:!1,default:void 0},slotName:{type:String,required:!1,default:"icon"},sortOrder:{type:String,required:!1,default:()=>pe.propsDefault.sortOrder,validator:e=>["asc","desc"].indexOf(e)!==-1},sortOrderGroup:{type:String,required:!1,default:()=>pe.propsDefault.sortOrderGroup,validator:e=>["asc","desc"].indexOf(e)!==-1},textDeselectAll:{type:String,required:!1,default:()=>pe.propsDefault.textDeselectAll},textSelectAll:{type:String,required:!1,default:()=>pe.propsDefault.textSelectAll},translateData:{type:Boolean,required:!1,default:()=>pe.propsDefault.translateData},type:{type:String,required:!1,default:()=>pe.propsDefault.type,validator:e=>["select","selectIcon","multiselect","multiselectIcon"].indexOf(e)!==-1}},emits:["blur","focus","open","update:modelValue"],setup(e,n){const{iconsLocal:r}=Hw(e),{blur:a,focus:s,open:l,updateModelValue:_}=qw(n),{typeLocal:u}=kw(e);return{blur:a,focus:s,iconsLocal:r,open:l,typeLocal:u,updateModelValue:_}},render(){return t.h(Ka,{...this.$props,type:this.typeLocal,data:this.iconsLocal,onBlur:this.blur,onFocus:this.focus,onOpen:this.open,"onUpdate:modelValue":this.updateModelValue},{icon:({item:e,label:n,labelFiltered:r,inDropdown:a})=>t.h(Uw,{icon:e.value,label:n,labelFiltered:r,inDropdown:a}),...this.$slots})}};function Ww({isModelFalse:e=t.computed(()=>!1),isModelTrue:n=t.computed(()=>!1)}){return{isChecked:t.computed(()=>{if(n.value)return!0;if(e.value)return!1})}}function Vw(e,{isModelFalse:n=t.computed(()=>!1),isModelTrue:r=t.computed(()=>!1)}){const a=t.toRef(e,"trueLabel"),s=t.toRef(e,"falseLabel"),l=t.toRef(e,"defaultLabel"),_=t.toRef(e,"readonly"),u=t.toRef(e,"readonlyDefault");return{labelValueLocal:t.computed(()=>r.value?a.value:n.value?s.value:_.value?u.value:l.value)}}function Gw(e){const n=t.toRef(e,"modelValue"),r=t.toRef(e,"trueValue"),a=t.toRef(e,"falseValue"),s=t.computed(()=>n.value===r.value||n.value==="true"),l=t.computed(()=>n.value===a.value||n.value==="false");return{isModelDefault:t.computed(()=>!s.value&&!l.value),isModelFalse:l,isModelTrue:s}}function jw(e,{changeModel:n=()=>{},isModelFalse:r=t.computed(()=>!1),isModelTrue:a=t.computed(()=>!1)}){const s=t.toRef(e,"defaultValue"),l=t.toRef(e,"disabled"),_=t.toRef(e,"falseValue"),u=t.toRef(e,"isThreeState"),d=t.toRef(e,"trueValue"),c=A=>{if(l.value)return;let h;a.value?h=_.value:u.value&&r.value?h=s.value:h=d.value,n({model:h,$event:A})};return{onInput:c,onKeydown:A=>{(A.keyCode===X.enter||A.keyCode===X.space)&&(c(A),A.stopPropagation(),A.preventDefault())}}}const zd={name:"ASwitch",inheritAttrs:!1,props:{alwaysTranslate:{type:Boolean,required:!1},change:{type:Function,required:!1,default:()=>{}},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},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:()=>Ze("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},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:e=>hn.indexOf(e)!==-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(e,n){const{disabledAttribut:r}=Es(e),{attributesToExcludeFromRender:a}=It(e),{componentStyleHide:s}=xt(e),{ariaDescribedbyLocal:l,changeModel:_,clearModel:u,errorsId:d,helpTextId:c,htmlIdLocal:E,isErrors:A,isModel:h,onBlur:T,onFocus:p}=Ft(e,n),{isModelDefault:S,isModelFalse:I,isModelTrue:R}=Gw(e),{labelValueLocal:O}=Vw(e,{isModelFalse:I,isModelTrue:R}),{isChecked:m}=Ww({isModelFalse:I,isModelTrue:R}),{onInput:C,onKeydown:B}=jw(e,{changeModel:_,isModelFalse:I,isModelTrue:R});return{ariaDescribedbyLocal:l,attributesToExcludeFromRender:a,clearModel:u,componentStyleHide:s,disabledAttribut:r,errorsId:d,helpTextId:c,htmlIdLocal:E,isChecked:m,isErrors:A,isModel:h,isModelDefault:S,labelValueLocal:O,onBlur:T,onFocus:p,onInput:C,onKeydown:B}},render(){return this.isRender?this.readonly?t.h(Jt,{...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"}):t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{class:["a_form_element__parent",{a_form_element__parent_not_empty:this.isModel}]},[this.label||this.labelScreenReader?t.h(Nt,{id:this.htmlIdLocal,alwaysTranslate:this.alwaysTranslate,label:this.label,labelClass:this.labelClass,labelScreenReader:this.labelScreenReader,required:this.required,isError:this.isErrors}):"",t.h("div",{class:"switch_button__wrapper"},[t.h(fe,{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:()=>[t.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}),t.h(Ee,{alwaysTranslate:this.alwaysTranslate,tag:"label",class:["switch_button__label",{switch_button__label_full:this.fullWidth}],for:this.htmlIdLocal,extra:this.extra,html:this.labelValueLocal})]})]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}},fT={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(e){const{attributesToExcludeFromRender:n}=It(e),{componentStyleHide:r}=xt(e);return{attributesToExcludeFromRender:n,componentStyleHide:r}},render(){return this.isRender?t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[this.$slots[this.slotName]?t.h("div",{class:"a_template"},this.$slots[this.slotName]({options:this.options,props:this.$props})):"",this.html?t.withDirectives(t.h("div",{class:"a_template"}),[[vt,this.html]]):""]):null}},pl=typeof Map=="function"?new Map:function(){const e=[],n=[];return{has:function(a){return e.indexOf(a)>-1},get:function(a){return n[e.indexOf(a)]},set:function(a,s){e.indexOf(a)===-1&&(e.push(a),n.push(s))},delete:function(a){const s=e.indexOf(a);s>-1&&(e.splice(s,1),n.splice(s,1))}}}();let ET=function(n){return new Event(n,{bubbles:!0})};try{new Event("test")}catch{ET=function(r){const a=document.createEvent("Event");return a.initEvent(r,!0,!1),a}}function Kw(e){if(!e||!e.nodeName||e.nodeName!=="TEXTAREA"||pl.has(e))return;let n=null,r=null,a=null;function s(){const A=window.getComputedStyle(e,null);A.resize==="vertical"?e.style.resize="none":A.resize==="both"&&(e.style.resize="horizontal"),A.boxSizing==="content-box"?n=-(parseFloat(A.paddingTop)+parseFloat(A.paddingBottom)):n=parseFloat(A.borderTopWidth)+parseFloat(A.borderBottomWidth),isNaN(n)&&(n=0),d()}function l(A){{const h=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=h}e.style.overflowY=A}function _(A){const h=[];for(;A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&h.push({node:A.parentNode,scrollTop:A.parentNode.scrollTop}),A=A.parentNode;return h}function u(){if(e.scrollHeight===0)return;const A=_(e),h=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,A.forEach(function(T){T.node.scrollTop=T.scrollTop}),h&&(document.documentElement.scrollTop=h)}function d(){u();const A=Math.round(parseFloat(e.style.height)),h=window.getComputedStyle(e,null);let T=h.boxSizing==="content-box"?Math.round(parseFloat(h.height)):e.offsetHeight;if(T<A?h.overflowY==="hidden"&&(l("scroll"),u(),T=h.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):h.overflowY!=="hidden"&&(l("hidden"),u(),T=h.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),a!==T){a=T;const p=ET("autosize:resized");try{e.dispatchEvent(p)}catch{}}}const c=function(){e.clientWidth!==r&&d()},E=(function(A){window.removeEventListener("resize",c,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",E,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(A).forEach(function(h){e.style[h]=A[h]}),pl.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",E,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",pl.set(e,{destroy:E,update:d}),s()}function Xw(e){const n=pl.get(e);n&&n.destroy()}function Yw(e){const n=pl.get(e);n&&n.update()}let Ci;typeof window>"u"||typeof window.getComputedStyle!="function"?(Ci=function(n){return n},Ci.destroy=function(e){return e},Ci.update=function(e){return e}):(Ci=function(n,r){return n&&Array.prototype.forEach.call(n.length?n:[n],function(a){return Kw(a)}),n},Ci.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Xw),e},Ci.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Yw),e});const Zd=Ci;function zw(e){const n=t.toRef(e,"isScalable"),r=t.ref(!1),a=t.ref(void 0);return{destroyAutosize:()=>{r.value&&(Zd.destroy(a.value),r.value=!1)},initAutosize:()=>{n.value&&(Zd(a.value),r.value=!0)},textareaRef:a,updateAutosize:()=>{n.value&&r.value&&setTimeout(()=>{Zd.update(a.value)})}}}function Zw(e,{changeModel:n=()=>{},updateAutosize:r=()=>{}}){const a=t.toRef(e,"disabled"),s=t.toRef(e,"modelUndefined");return{clearModel:()=>{a.value||(n({model:s.value}),r())},onInput:u=>{if(a.value)return;const d=u.target.value;n({model:d})}}}function Jw(e){const n=t.toRef(e,"resize"),r={v:"a_textarea_resize_v",h:"a_textarea_resize_h",none:"a_textarea_resize_none",auto:""};return{resizeClass:t.computed(()=>r[n.value])}}function Qw(e){const n=t.toRef(e,"isScalable"),r=t.toRef(e,"rows");return{rowsLocal:t.computed(()=>{if(r.value)return r.value;if(n.value)return 1})}}const AT={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},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:()=>Ze("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},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:e=>["v","h","none","auto"].indexOf(e)!==-1},rows:{type:[String,Number],required:!1,default:void 0}},emits:["update:modelValue","focus","blur"],setup(e,n){const{disabledAttribut:r}=Es(e),{attributesToExcludeFromRender:a}=It(e),{componentStyleHide:s}=xt(e),{ariaDescribedbyLocal:l,changeModel:_,errorsId:u,helpTextId:d,htmlIdLocal:c,isErrors:E,isModel:A,onBlur:h,onFocus:T}=Ft(e,n),{isClearButtonLocal:p}=Ml(e,{isModel:A}),{resizeClass:S}=Jw(e),{destroyAutosize:I,initAutosize:R,textareaRef:O,updateAutosize:m}=zw(e),{clearModel:C,onInput:B}=Zw(e,{changeModel:_,updateAutosize:m}),{rowsLocal:F}=Qw(e),{placeholderAttributes:P}=dl(e);return t.onMounted(()=>{R()}),t.onBeforeUnmount(()=>{I()}),{ariaDescribedbyLocal:l,attributesToExcludeFromRender:a,changeModel:_,clearModel:C,componentStyleHide:s,disabledAttribut:r,errorsId:u,helpTextId:d,htmlIdLocal:c,isClearButtonLocal:p,isErrors:E,isModel:A,onBlur:h,onFocus:T,onInput:B,placeholderAttributes:P,resizeClass:S,rowsLocal:F,textareaRef:O}},render(){return this.isRender?this.readonly?t.h(Jt,{...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"}):t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{class:["a_form_element__parent",{a_form_element__parent_float:this.isLabelFloat,a_form_element__parent_not_empty:this.isModel}]},[this.label||this.labelScreenReader?t.h(Nt,{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}):"",t.h("div",{class:["a_form_element a_form_element_textarea",{a_form_element_textarea_scalable:this.isScalable}]},[t.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?t.h("div",{class:"a_form_control__actions"},[t.h(ml,{alwaysTranslate:this.alwaysTranslate,disabled:this.disabled,class:this.clearButtonClass,onClear:this.clearModel})]):""]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])]):null}},Ll={checkbox:Nh,color:dn,currency:Jh,date:Oi,dateRange:Uh,datetime:Oi,email:dn,file:nT,integer:zr,integerNonNegative:zr,integerNonNegativeRange:El,integerPositive:zr,integerPositiveRange:El,integerRange:El,json:iT,multiselect:Ka,multiselectIcon:Yd,multiselectOrdered:oT,natural:dn,number:zr,numberRange:El,oneCheckbox:Tl,password:dn,radio:Xd,routerLinkConfig:_T,select:Ka,selectIcon:Yd,switch:zd,template:fT,text:dn,textarea:AT},Jd={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:()=>({})},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:()=>Ze("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},labelScreenReader:{type:[String,Number],required:!1,default:void 0},modelAll:{type:Object,required:!1,default:()=>({})},modelDependencies:{type:Object,required:!1,default:()=>({})},modelValue:{type:Object,required:!1,default:()=>({})},readonly:{type:Boolean,required:!1},readonlyDefault:{type:String,required:!1,default:""},required:{type:Boolean,required:!1,default:!1},parentId:{type:Array,required:!1,default:()=>[]},slotName:{type:String,required:!1,default:void 0},useFlatErrors:{type:Boolean,required:!1,default:!0},useFlatModel:{type:Boolean,required:!1,default:!0},texts:{type:Object,required:!1,default:()=>({collapseClose:"_A_FIELDSET_COLLAPSE_CLOSE_",collapseOpen:"_A_FIELDSET_COLLAPSE_OPEN_"})}},emits:["toggleCollapse","updateData","update:modelValue"],setup(e,n){const{attributesToExcludeFromRender:r}=It(e),a=()=>({...Ll,group:Qd,fieldset:t.resolveComponent("AFieldset"),...Gt.components,...Gt.containerComponents}),{componentStyleHide:s}=xt(e),{textAfterLabel:l}=ql(e),{ariaDescribedbyLocal:_,errorsId:u,helpTextId:d,htmlIdLocal:c,isErrors:E}=Ft(e,n),{onUpdateModelLocal:A}=OP(e,n),h=({item:C,dataKeyByKeyId:B})=>{n.emit("updateData",{item:C,dataKeyByKeyId:B})},{groupId:T}=vd(e,{htmlIdLocal:c}),{iconCollapse:p,initIsCollapsedLocal:S,isCollapsedLocal:I,titleCollapse:R,toggleCollapse:O}=y_(e,n),{classColumnsReadonly:m}=yP(e);return S(),{ariaDescribedbyLocal:_,attributesToExcludeFromRender:r,classColumnsReadonly:m,componentStyleHide:s,componentTypesMapping:a,errorsId:u,groupId:T,helpTextId:d,htmlIdLocal:c,iconCollapse:p,isCollapsedLocal:I,isErrors:E,onUpdateDataLocal:h,onUpdateModelLocal:A,textAfterLabel:l,titleCollapse:R,toggleCollapse:O}},render(){if(!this.isRender)return null;const e=[this.children.map((n,r)=>{if(n.isRender!==!1){const a=gi.value[n.type];let s;ie(n.classColumn)?s=this.classColumnDefault:n.classColumn&&(s=n.classColumn);let l;n.isHide&&(l="display: none;");const _=this.componentTypesMapping()[n.type],u=this.useFlatErrors?_e(this.errorsAll,n.id):_e(this.errors,n.id);let d;a&&(d=oe(this.parentId),d.push(this.id));const c=a&&!this.useFlatModel||!a?_e(this.modelValue,n.id):this.modelValue;return t.h("div",{class:s,style:l},[t.h(_,{key:r,alwaysTranslate:this.alwaysTranslate,modelValue:c,modelAll:a?this.modelAll:void 0,modelDependencies:a?this.modelValue:void 0,errors:u,errorsAll:a?this.errorsAll:void 0,parentId:d,idPrefix:this.idPrefix,onUpdateData:({dataKeyByKeyId:E})=>this.onUpdateDataLocal({item:n,dataKeyByKeyId:E}),...n,change:({currentModel:E,id:A,item:h,model:T,props:p,fullModel:S})=>this.onUpdateModelLocal({currentModel:E,id:A,item:h,model:T,props:p,component:n,fullModel:S}),readonly:this.readonly||n.readonly,readonlyDefault:"readonlyDefault"in n&&!De(n.readonlyDefault)?n.readonlyDefault:this.readonlyDefault,disabled:this.disabled||n.disabled,classColumn:void 0,slotAppend:void 0,...this.attributesToExcludeFromRender},this.$slots),n.slotAppend&&this.$slots[n.slotAppend]?this.$slots[n.slotAppend]({item:n,itemIndex:r}):""])}}),this.slotName&&this.$slots[this.slotName]?this.$slots[this.slotName]({id:this.htmlIdLocal,props:this.$props}):""];return this.readonly?t.h(Jt,{...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):t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{class:"a_form_element__parent"},[t.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}],"aria-describedby":this.ariaDescribedbyLocal,...this.attributesFieldset},[this.label||this.labelScreenReader?t.h(fe,{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?t.h(fe,{"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}):"",t.h("div",{id:this.groupId,class:[this.classColumns,"a_fieldset__content"]},e)]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})])])}},eM=["datepickerRange","dateRange"],hT={};j(eM,e=>{hT[e]=!0});const TT=hT;function tM(e){const n=t.toRef(e,"children");return{specificAttributes:t.computed(()=>{const a={};return j(n.value,s=>{const l=aT[s.type],_=TT[s.type];l&&De(s.inputWidth)&&(a[s.id]={inputWidth:"auto"}),_&&(a[s.id]={inputWidth:"inherit",inputAttributes:{style:"min-width: 181px"}})}),a})}}const Qd={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:()=>({})},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:()=>Ze("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}},emits:["blur","focus","update:modelValue","updateData"],setup(e,n){const{attributesToExcludeFromRender:r}=It(e),a=()=>({...Ll,...Gt.components,...Gt.containerComponents}),{componentStyleHide:s}=xt(e),{ariaDescribedbyLocal:l,changeModel:_,clearModel:u,errorsId:d,helpTextId:c,htmlIdLocal:E,isErrors:A}=Ft(e,n),h=t.toRef(e,"change"),T=t.toRef(e,"id"),p=t.toRef(e,"modelAll"),S=t.toRef(e,"modelValue"),I=t.toRef(e,"parentId"),R=t.toRef(e,"useFlatModel"),O=({currentModel:y,id:v,item:x,model:W,props:ee,component:Q,fullModel:se})=>{if(se){const ne=oe(se);n.emit("update:modelValue",ne),h.value({currentModel:y,id:v,item:x,fullModel:ne,model:W,props:ee}),ge(Q.change)&&Q.change({currentModel:y,id:v,item:x,fullModel:ne,model:W,props:ee});return}const re=R.value?oe(S.value||{}):oe(p.value||{});if(R.value)Vs(re,v,oe(W));else{const de=[...I.value,T.value,v].join(".");Vs(re,de,oe(W))}n.emit("update:modelValue",re),h.value({currentModel:y,id:v,item:x,fullModel:re,model:W,props:ee}),ge(Q.change)&&Q.change({currentModel:y,id:v,item:x,fullModel:re,model:W,props:ee})},m=({item:y,dataKeyByKeyId:v})=>{n.emit("updateData",{item:y,dataKeyByKeyId:v})},C=t.toRef(e,"children"),B=t.toRef(e,"idPrefix"),F=t.computed(()=>C.value[0]||{}),P=t.computed(()=>cl({id:F.value.id,idPrefix:F.value.idPrefix||B.value,htmlId:F.value.htmlId})),{specificAttributes:M}=tM(e);return{ariaDescribedbyLocal:l,attributesToExcludeFromRender:r,changeModel:_,clearModel:u,componentStyleHide:s,componentTypesMapping:a,errorsId:d,firstChild:F,helpTextId:c,htmlIdFirstChild:P,htmlIdLocal:E,isErrors:A,onUpdateDataLocal:m,onUpdateModelLocal:O,specificAttributes:M}},render(){return this.isRender?t.h("div",{...this.$attrs,style:this.componentStyleHide,type:void 0,...this.attributesToExcludeFromRender},[t.h("div",{id:this.htmlIdLocal,role:"group",tabindex:-1,class:[this.inputClass,{a_group_invalid:this.isErrors}],"aria-describedby":this.ariaDescribedbyLocal},[t.h("div",{class:this.classColumns},[this.firstChild.label&&t.h(Nt,{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((e,n)=>{const r=gi.value[e.type];let a;ie(e.classColumn)?a=this.classColumnDefault:e.classColumn&&(a=e.classColumn);let s;e.isHide&&(s="display: none;");const l=this.componentTypesMapping()[e.type],_=this.useFlatErrors?_e(this.errorsAll,e.id):_e(this.errors,e.id);let u;r&&(u=oe(this.parentId),u.push(this.id));const d=r&&!this.useFlatModel||!r?_e(this.modelValue,e.id):this.modelValue;return t.h("div",{class:a,style:s},[t.h(l,{key:n,alwaysTranslate:this.alwaysTranslate,modelAll:r?this.modelAll:void 0,modelValue:d,modelDependencies:r?this.modelValue:void 0,errors:_,errorsAll:r?this.errorsAll:void 0,parentId:u,idPrefix:this.idPrefix,onUpdateData:({dataKeyByKeyId:c})=>this.onUpdateDataLocal({item:e,dataKeyByKeyId:c}),...e,change:({currentModel:c,id:E,item:A,model:h,props:T})=>this.onUpdateModelLocal({currentModel:c,id:E,item:A,model:h,props:T,component:e}),disabled:this.disabled||e.disabled,...this.specificAttributes[e.id],label:n===0?void 0:e.label,slotAppend:void 0,classColumn:void 0,...this.attributesToExcludeFromRender},this.$slots),e.slotAppend&&this.$slots[e.slotAppend]?this.$slots[e.slotAppend]({item:e,itemIndex:n}):""])})])]),t.h($t,{id:this.helpTextId,alwaysTranslate:this.alwaysTranslate,html:this.helpText,extra:this.extra}),this.isErrors&&t.h(Ht,{class:"a_px_3",id:this.errorsId,alwaysTranslate:this.alwaysTranslate,errors:this.errors})]):null}},ec={fieldset:Jd,group:Qd,...Gt.containerComponents};function nM(){return{componentTypesMapping:()=>({...Ll,...ec,...Gt.components,...Gt.containerComponents})}}function rM(e){const n=t.toRef(e,"filter");return{isContainer:t.computed(()=>!!gi.value[n.value.type])}}function aM(e){const n=t.toRef(e,"filter");return{filterSpecificAttributes:t.computed(()=>{const a={},s=aT[n.value.type],l=TT[n.value.type];return s&&De(n.value.inputWidth)&&(a.inputWidth="auto"),l&&(a.inputWidth="inherit",a.inputAttributes={style:"min-width: 181px"}),a})}}function iM(e){const n=t.toRef(e,"id");return{idPrefix:t.computed(()=>`${n.value}_`)}}function sM(e,{isContainer:n=t.computed(()=>!1)}){const r=t.toRef(e,"filter"),a=t.toRef(e,"onUpdateModelFilters"),s=t.toRef(e,"unappliedModel");return{onUpdateModelFiltersLocal:_=>{if(n.value)a.value({fullModel:_});else{const u=oe(s.value);u[r.value.id]=oe(_),a.value({fullModel:u})}}}}function lM(e){const n=t.toRef(e,"filter"),r=t.toRef(e,"updateDataKeyByIdFromFilter"),a=["select","multiselect","radio","checkbox","group","fieldset"],s=({dataKeyByKeyId:_,item:u})=>{let d=n.value.id;u&&(d=u.id),r.value({filterId:d,dataKeyByKeyId:_})};return{emitForComponentsWithData:t.computed(()=>{const _={};return a.indexOf(n.value.type)!==-1&&(_.onUpdateData=s),_})}}const oM={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(e){const{attributesToExcludeFromRender:n}=It(e),{isContainer:r}=rM(e),{onUpdateModelFiltersLocal:a}=sM(e,{isContainer:r}),{emitForComponentsWithData:s}=lM(e),{idPrefix:l}=iM(e),{componentTypesMapping:_}=nM(),{filterSpecificAttributes:u}=aM(e);return{attributesToExcludeFromRender:n,componentTypesMapping:_,emitForComponentsWithData:s,filterSpecificAttributes:u,idPrefix:l,isContainer:r,onUpdateModelFiltersLocal:a}},render(){const e=this.componentTypesMapping()[this.filter.type];return t.h(e,{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 _M(e){const n=t.toRef(e,"id");return{idFilterRight:t.computed(()=>`${n.value}_filter_right`)}}const pT={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(e){const{idFilterRight:n}=_M(e);return{idFilterRight:n}},render(){return t.h("div",{id:this.idFilterRight,class:"a_filters_right"},[t.h("form",{},[this.filters.map(e=>t.h(oM,{id:this.id,class:"a_filters_right__filter_ui",excludeRenderAttributes:this.excludeRenderAttributes,filter:e,isLabelVisible:!0,onUpdateModelFilters:this.onUpdateModelFilters,unappliedModel:this.appliedModel,updateDataKeyByIdFromFilter:this.updateDataKeyByIdFromFilter},this.$slots))])])}};function uM(e){const n=t.toRef(e,"closeFilterValue"),r=t.toRef(e,"disabled"),a=t.toRef(e,"filter");return{closeCurrentFilterValue:({modelValue:l})=>{r.value||n.value({filter:a.value,modelArray:l.modelArray,keyId:l.keyId})}}}function dM(e,{emit:n},{modelValuesForCurrentFilter:r=t.computed(()=>[])}){const a=t.toRef(e,"filter"),s=t.computed(()=>r.value.length>0);return{isLeastOneFilterVisible:s,updateVisibleChildFilters:({destroy:_}={})=>{n("updateVisibleChildFilters",{id:a.value.id,isVisible:_?!1:s.value})}}}function cM(e){const n=t.toRef(e,"filter"),r=t.toRef(e,"id"),a=t.computed(()=>`eventATableFilterTopOnOpen_${r.value}`);return{goToFilter:({modelValue:l}={})=>{let _=cl({id:n.value.id,idPrefix:`${r.value}_filter_top`,htmlId:n.value.htmlId});l.idSuffix&&(_+=l.idSuffix),n.value.main||Lt.$emit(a.value,_)}}}function fM({filter:e,currentModel:n}){return!(!e||e.hideFilterCenter||ie(n)||n===""||Ae(n)&&!n.length)}function EM(e){const n=t.toRef(e,"filter"),r=t.toRef(e,"model");return{hasCurrentFilter:t.computed(()=>fM({filter:n.value,currentModel:r.value}))}}function AM(e,{emit:n},{hasCurrentFilter:r=t.computed(()=>!1)}){const a=t.toRef(e,"dataKeyByKeyIdPerFilter"),s=t.toRef(e,"filter"),l=t.computed(()=>r.value&&eT.value[s.value.type]?on(a.value[s.value.id]):!1);return{isFilterLoading:l,updateLoadingChildFilters:(u,d)=>{u!==d&&n("updateLoadingChildFilters",{id:s.value.id,isLoading:l.value})}}}function hM(e,{hasCurrentFilter:n=t.computed(()=>!1)}){const r=t.toRef(e,"filter"),a=t.computed(()=>n.value?r.value.label:""),s=t.computed(()=>{if(n.value)return r.value.labelScreenReader}),l=t.computed(()=>s.value||a.value);return{filterLabel:a,filterLabelForTitle:l}}function TM(e,{filterLabel:n=t.computed(()=>""),filterLabelForTitle:r=t.computed(()=>""),hasCurrentFilter:a=t.computed(()=>!1)}){const s=t.toRef(e,"dataKeyByKeyIdPerFilter"),l=t.toRef(e,"filter"),_=t.toRef(e,"model"),{filterBoolean:u,filterDate:d}=Tn(),c=t.computed(()=>{if(l.value)return s.value[l.value.id]}),E=t.computed(()=>{var T;return(T=_.value)!=null&&T.length?ht(_.value,p=>c.value&&c.value[p]):[]}),A=({label:T,suffixTranslated:p})=>{const S=Rt({placeholder:T});return p?`${S} ${p}`:S};return{modelValuesForCurrentFilter:t.computed(()=>{var T,p,S,I,R,O,m,C,B;if(!a.value)return[];if(l.value.type==="switch"||l.value.type==="oneCheckbox")return[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:u(_.value)}];if(l.value.type==="date")return[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:d(_.value)}];if(l.value.type==="select"||l.value.type==="radio"){const F=_e(c.value,`${_.value}.${ot}`);return F?[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:F}]:[]}if(n_.value[l.value.type]||l.value.type==="radio"&&l.value.isModelArray){if(E.value.length){if(E.value.length===1){const F=(T=c.value)==null?void 0:T[E.value[0]];return[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:F==null?void 0:F[ot],item:F,modelArray:E.value}]}return[{filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value}),label:Rt({placeholder:"_A_FILTERS_SELECTED_{{count}}_",extra:{count:E.value.length,modelArray:E.value}}),modelArray:E.value,extra:{count:E.value.length,modelArray:E.value}}]}return[]}if(l.value.type==="dateRange"){const F=l.value.keyFrom||"from",P=l.value.keyUntil||"until",M=[];if(!ie((p=_.value)==null?void 0:p[F])&&((S=_.value)==null?void 0:S[F])!==""){const y=Rt({placeholder:l.value.labelFrom||"_A_DATEPICKER_RANGE_FROM_"});M.push({filterLabelTranslated:A({label:n.value,suffixTranslated:y}),filterLabelForTitleTranslated:A({label:r.value,suffixTranslated:y}),label:d(_.value[F]),idSuffix:"_from",keyId:F})}if(!ie((I=_.value)==null?void 0:I[P])&&((R=_.value)==null?void 0:R[P])!==""){const y=Rt({placeholder:l.value.labelUntil||"_A_DATEPICKER_RANGE_UNTIL_"});M.push({filterLabelTranslated:A({label:n.value,suffixTranslated:y}),filterLabelForTitleTranslated:A({label:r.value,suffixTranslated:y}),label:d(_.value[P]),idSuffix:"_until",keyId:P})}return M}if(jd.indexOf(l.value.type)!==-1){const F=l.value.keyMax||"max",P=l.value.keyMin||"min",M=[];if(!ie((O=_.value)==null?void 0:O[P])&&((m=_.value)==null?void 0:m[P])!==""){const y=Rt({placeholder:l.value.labelMin||"_A_INPUT_NUMBER_RANGE_LABEL_MIN_"});M.push({filterLabelTranslated:A({label:n.value,suffixTranslated:y}),filterLabelForTitleTranslated:A({label:r.value,suffixTranslated:y}),label:_.value[P],idSuffix:"_min",keyId:P})}if(!ie((C=_.value)==null?void 0:C[F])&&((B=_.value)==null?void 0:B[F])!==""){const y=Rt({placeholder:l.value.labelMax||"_A_INPUT_NUMBER_RANGE_LABEL_MAX_"});M.push({filterLabelTranslated:A({label:n.value,suffixTranslated:y}),filterLabelForTitleTranslated:A({label:r.value,suffixTranslated:y}),label:_.value[F],idSuffix:"_max",keyId:F})}return M}return[{label:_.value,filterLabelTranslated:A({label:n.value}),filterLabelForTitleTranslated:A({label:r.value})}]})}}const pM=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pin-fill" viewBox="0 0 16 16">
134
134
  <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"/>
135
135
  </svg>`,LM={name:"AFilterCenterItem",props:{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(e,n){const{hasCurrentFilter:r}=EM(e),{isFilterLoading:a,updateLoadingChildFilters:s}=AM(e,n,{hasCurrentFilter:r}),{filterLabel:l,filterLabelForTitle:_}=hM(e,{hasCurrentFilter:r}),{modelValuesForCurrentFilter:u}=TM(e,{filterLabel:l,filterLabelForTitle:_,hasCurrentFilter:r}),{isLeastOneFilterVisible:d,updateVisibleChildFilters:c}=dM(e,n,{modelValuesForCurrentFilter:u}),{goToFilter:E}=cM(e),{closeCurrentFilterValue:A}=uM(e);return t.watch(d,()=>{c()},{immediate:!0}),t.watch(a,(h,T)=>{s(h,T)},{immediate:!0}),t.onBeforeUnmount(()=>{c({destroy:!0})}),{closeCurrentFilterValue:A,filterLabel:l,goToFilter:E,hasCurrentFilter:r,isLeastOneFilterVisible:d,modelValuesForCurrentFilter:u}},render(){return this.hasCurrentFilter&&[this.modelValuesForCurrentFilter.map(e=>t.h("div",{role:"group",class:"a_filters_center__item a_btn_group a_btn_group_small"},[this.filter.hasNotClose&&t.h(fe,{class:"a_btn a_btn_secondary",ariaHidden:!0,tabindex:-1,iconLeft:pM,type:"text"}),t.h(fe,{class:"a_btn a_btn_secondary",title:"_A_FILTERS_HOR_GO_TO_TITLE_{{filterLabel}}_{{filterValue}}_",textScreenReader:"_A_FILTERS_HOR_GO_TO_TITLE_{{filterLabel}}_{{filterValue}}_",extra:{filterLabel:e.filterLabelForTitleTranslated,filterValue:e.label},type:"button",onClick:()=>this.goToFilter({modelValue:e})},()=>[e.filterLabelTranslated?t.h("strong",{class:"a_filters_center__item__label",ariaHidden:!0},[t.h(Ee,{tag:"span",html:e.filterLabelTranslated,textAfter:":"})]):"",this.filter.slotName&&this.$slots[this.filter.slotName]?this.$slots[this.filter.slotName]({item:e.item,label:e.label,extra:e.extra,inFilterCenter:!0}):t.h("span",{class:"a_filters_center__item__value"},e.label)]),this.filter.hasNotClose?"":t.h(fe,{class:"a_btn a_btn_secondary",disabled:this.disabled,iconLeft:Jr,title:"_A_FILTERS_HOR_CLOSE_TITLE_{{filterLabel}}_{{filterValue}}_",textScreenReader:"_A_FILTERS_HOR_CLOSE_TITLE_{{filterLabel}}_{{filterValue}}_",extra:{filterLabel:e.filterLabelForTitleTranslated,filterValue:e.label},type:"button",onClick:()=>this.closeCurrentFilterValue({modelValue:e})})]))]}};function SM(){const e=t.ref({}),n=({id:a,isLoading:s})=>{e.value[a]=s};return{isLeastOneChildFilterLoading:t.computed(()=>{let a=!1;return j(e.value,s=>{if(s)return a=!0,!1}),a}),updateLoadingChildFilters:n}}function RM(e){const n=t.toRef(e,"filtersGroup"),r=t.ref({}),a=({id:u,isVisible:d})=>{r.value[u]=d},s=t.computed(()=>{let u=!1;return j(r.value,d=>{if(d)return u=!0,!1}),u}),l=t.computed(()=>!!(n.value.alwaysVisible.length||n.value.filters.length)),_=t.computed(()=>s.value?void 0:"display: none;");return{hasFilters:l,styleHide:_,updateVisibleChildFilters:a}}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">
136
136
  <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"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
- "version": "2.21.3",
3
+ "version": "2.21.5",
4
4
  "description": "Aloha-vue is a JavaScript library that provides a wide range of accessible components and directives for Vue.js. Accessibility is of paramount importance to us, and we have designed all our components to meet accessibility compliance criteria. This library is a valuable tool for frontend developers and has already been used in three projects, including two large-scale ones",
5
5
  "keywords": [
6
6
  "accessibility compliance criteria",
@@ -167,7 +167,7 @@
167
167
  overflow-x: hidden;
168
168
  text-overflow: ellipsis;
169
169
  white-space: nowrap;
170
- padding-right: 18px;
170
+ padding-right: 25px;
171
171
  }
172
172
 
173
173
  .a_select__ul_closeable {
@@ -194,8 +194,11 @@ export default function ToggleAPI(props, {
194
194
  return;
195
195
  }
196
196
  isOpen.value = true;
197
- setEventClickOutside();
198
197
  openPopoverWithFloatingUi();
198
+ // Timeout is needed to prevent closing the select when clicking on an element that contains HTML
199
+ setTimeout(() => {
200
+ setEventClickOutside();
201
+ }, 100);
199
202
  };
200
203
 
201
204
  const togglePopover = () => {