admins-components 3.1.4 → 3.1.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.
@@ -1,4 +1,4 @@
1
- "use strict";var UDt=Object.defineProperty;var WDt=(l,f,_)=>f in l?UDt(l,f,{enumerable:!0,configurable:!0,writable:!0,value:_}):l[f]=_;var Q0=(l,f,_)=>WDt(l,typeof f!="symbol"?f+"":f,_);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("vue"),HDt={class:"form-check"},GDt=["checked","id"],YDt=["for"],eV=P.defineComponent({__name:"CheckBox",props:{id:{},label:{},checked:{type:Boolean}},emits:["changed"],setup(l){return(f,_)=>(P.openBlock(),P.createElementBlock("div",HDt,[P.createElementVNode("input",{class:"form-check-input",type:"checkbox",checked:f.checked,value:"",id:f.id,onChange:_[0]||(_[0]=h=>f.$emit("changed",{id:f.id,checked:h.target.checked}))},null,40,GDt),P.createElementVNode("label",{class:"form-check-label",for:f.id},P.toDisplayString(f.label),9,YDt)]))}}),XDt={class:"cbl-childrend-container"},QDt=P.defineComponent({__name:"CheckBoxList",props:{items:{},callback:{type:Function}},setup(l){return(f,_)=>{const h=P.resolveComponent("CheckBoxList",!0);return P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.items,x=>(P.openBlock(),P.createElementBlock("div",{key:x.id,class:"cbl-container"},[P.createVNode(eV,{id:x.id,label:x.label,checked:x.checked,onChanged:_[0]||(_[0]=A=>f.callback(A.id,A.checked))},null,8,["id","label","checked"]),P.createElementVNode("div",XDt,[x.childrend?(P.openBlock(),P.createBlock(h,{key:0,items:x.childrend,callback:f.callback},null,8,["items","callback"])):P.createCommentVNode("",!0)])]))),128)}}}),RM=(l,f)=>{const _=l.__vccOpts||l;for(const[h,x]of f)_[h]=x;return _},RVe=RM(QDt,[["__scopeId","data-v-ae2832c5"]]),ZDt=["id"],KDt=["disabled"],e6t={class:"dd-label"},t6t=["id"],r6t={class:"dd-item-list"},n6t=["id","onClick"],uV=P.defineComponent({__name:"DropDown",props:{id:{},label:{},selected:{},options:{},opentop:{type:Boolean},disableFilter:{type:Boolean},storeselected:{type:Boolean},filterevent:{type:Boolean},disabled:{type:Boolean}},emits:["selected","filtered"],setup(l,{emit:f}){const _=l;P.watch(_.options,()=>{_.filterevent&&(Ge.value=_.options.value)}),P.watch(()=>_.selected,()=>{X()}),P.watch(()=>_.label,()=>{X()});const h=f,x=vr=>{_.storeselected||(F.value=vr.label),h("selected",vr)},A="törlés",F=P.ref(""),J=P.ref(null);P.watch(()=>J.value,()=>{J.value&&document.getElementById(J.value.id).scrollIntoView()});const X=()=>{if(_.options.value){const vr=_.options.value.find(Bt=>Bt.id==_.selected);vr?F.value=vr.label:(pe(""),F.value=_.label)}},ee=vr=>{const Bt=()=>J?Ge.value.indexOf(J.value,0):-1,mr=document.getElementById(`${_.id}-clear-btn`);if(mr==vr.target&&vr.key=="ArrowDown"){bt.value.focus(),J.value=Ge.value[0];return}if(bt.value&&bt.value==vr.target){if(vr.key=="ArrowUp"){const Ut=Bt();if(Ut<1){mr&&mr.focus();return}J.value=Ge.value[Ut-1];return}if(vr.key=="ArrowDown"){const Ut=Bt();if(Ut>=Ge.value.length-1)return;J.value=Ge.value[Ut+1];return}if(vr.key=="Enter"){if(!J.value)return;x(J.value),rt.value=="block"&&(rt.value="none");return}}},B=()=>{rt.value=="block"&&(rt.value="none")},le=()=>{rt.value=="block"&&(rt.value="none")};P.onMounted(()=>{_.label&&(F.value=_.label),X(),se="",document.addEventListener("click",B),window.addEventListener("scrolled",le),Tt(),document.addEventListener("keydown",ee)}),P.onUnmounted(()=>{document.removeEventListener("keydown",ee),document.removeEventListener("click",B),window.removeEventListener("scrolled",le)});let se="";const pe=vr=>{se=vr,_.filterevent?h("filtered",vr):vr==""?Ge.value=_.options.value:Ge.value=_.options.value.filter(Bt=>Bt.label.toLowerCase().includes(vr.toLowerCase()))},Ge=P.ref([]),Qe=()=>{x({label:_.label,id:""}),pe("")},tt=()=>{if(rt.value=="block"){rt.value="none";return}setTimeout(()=>{rt.value="block"},10),setTimeout(Tt,20)},Tt=()=>{const vr=dt.value,Bt=yt.value;_.opentop?Bt.style.top=vr.getBoundingClientRect().y-Bt.offsetHeight+"px":(Bt.style.top=vr.getBoundingClientRect().y+vr.offsetHeight+"px",vr.getBoundingClientRect().y-Bt.getBoundingClientRect().y!=-vr.offsetHeight&&(Bt.style.top=parseInt(Bt.style.top.substring(0,Bt.style.top.length-2))+(vr.getBoundingClientRect().y-Bt.getBoundingClientRect().y)+vr.offsetHeight+"px")),bt.value&&bt.value.focus()},dt=P.ref(null),yt=P.ref(null),rt=P.ref("none"),bt=P.ref(null);return(vr,Bt)=>(P.openBlock(),P.createElementBlock("div",{id:vr.id,class:"dd-flex"},[P.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:dt,class:"btn btn-outline-secondary dd-toggle dd-flex",type:"button",disabled:vr.disabled,onClick:Bt[0]||(Bt[0]=()=>{pe(P.unref(se)),tt()})},[P.createElementVNode("div",e6t,P.toDisplayString(F.value),1)],8,KDt),P.createElementVNode("div",{class:"dd-menu",style:P.normalizeStyle({display:rt.value}),ref_key:"DropDownMenu",ref:yt},[F.value!=_.label?(P.openBlock(),P.createElementBlock("button",{key:0,id:`${vr.id}-clear-btn`,type:"button",class:"btn btn-outline-secondary dd-button",onClick:Bt[1]||(Bt[1]=mr=>Qe())},P.toDisplayString(A),8,t6t)):P.createCommentVNode("",!0),vr.disableFilter?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("input",{key:1,ref_key:"ddSearch",ref:bt,type:"text ",class:"form-control",placeholder:"keresés",onInput:Bt[2]||(Bt[2]=mr=>pe(mr.target.value)),onClick:Bt[3]||(Bt[3]=mr=>mr.stopPropagation())},null,544)),P.createElementVNode("div",r6t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(Ge.value,mr=>(P.openBlock(),P.createElementBlock("div",{id:mr.id,key:mr.id,class:P.normalizeClass(["dd-item",{"dd-item-preselected":mr==J.value}]),onClick:Ut=>x(mr)},[mr.icon?(P.openBlock(),P.createElementBlock("i",{key:0,class:P.normalizeClass([mr.icon,"dd-item__icon"])},null,2)):P.createCommentVNode("",!0),P.createTextVNode(P.toDisplayString(mr.label),1)],10,n6t))),128))])],4)],8,ZDt))}}),i6t=["id"],a6t=["disabled"],s6t={class:"ddc-row"},o6t={class:"ddc-label"},c6t={class:"dd-item-list"},l6t=["onClick"],u6t={class:"ddc-item"},f6t={class:"ddc-label"},_6t="törlés",MTe=P.defineComponent({__name:"DropDownCallBack",props:{id:{},default:{},selected:{},enabled:{type:Boolean},options:{}},setup(l){const f=l,_=B=>{B==f.default&&h.value.callback(""),h.value=B,h.value.callback(h.value.value)},h=P.ref(f.default),x=()=>{if(f.selected&&f.options.value){const B=f.options.value.find(le=>le.value==f.selected);B&&(h.value=B)}};P.onMounted(()=>{x(),document.addEventListener("click",function(){ee.value=="block"&&(ee.value="none")})});const A=()=>{setTimeout(()=>{ee.value="block"},10),setTimeout(()=>{X.value=F.value.offsetHeight},20)},F=P.ref(null),J=P.ref(null),X=P.ref(0),ee=P.ref("none");return(B,le)=>(P.openBlock(),P.createElementBlock("div",{class:"ddc-flex",id:B.id},[P.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:F,class:"btn btn-outline-secondary ddc-button",type:"button",disabled:!B.enabled,onClick:le[0]||(le[0]=se=>A())},[P.createElementVNode("span",s6t,[P.createElementVNode("i",{class:P.normalizeClass([h.value.icon,"ddc-icon"])},null,2),P.createElementVNode("span",o6t,P.toDisplayString(h.value.label),1)])],8,a6t),P.createElementVNode("div",{class:"ddc-menu",style:P.normalizeStyle({display:ee.value,"margin-top":X.value+"px"}),ref_key:"DropDownMenu",ref:J},[h.value!=f.default?(P.openBlock(),P.createElementBlock("button",{key:0,type:"button",class:"btn btn-outline-secondary ddc-button",onClick:le[1]||(le[1]=se=>_(f.default))},P.toDisplayString(_6t))):P.createCommentVNode("",!0),P.createElementVNode("div",c6t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(B.options.value,se=>(P.openBlock(),P.createElementBlock("div",{key:se.label,class:"ddc-item",onClick:pe=>_(se)},[P.createElementVNode("span",u6t,[P.createElementVNode("i",{class:P.normalizeClass([se.icon,"ddc-icon"])},null,2),P.createElementVNode("span",f6t,P.toDisplayString(se.label),1)])],8,l6t))),128))])],4)],8,i6t))}}),p6t=["id"],d6t={key:0,class:"ddm-label"},m6t={key:1,class:"ddm-label"},g6t=["onClick"],Nne=P.defineComponent({__name:"DropDownMenu",props:{label:{},icon:{},options:{},item:{},id:{},right:{type:Boolean}},setup(l){const f=l;P.onMounted(()=>{document.addEventListener("click",function(){_.value&&(_.value=!1)})});const _=P.ref(!1),h=()=>{setTimeout(()=>{_.value=!0},10),setTimeout(x,20)},x=()=>{const X=A.value,ee=F.value;ee.style.top=X.getBoundingClientRect().y+X.offsetHeight+"px",X.getBoundingClientRect().y-ee.getBoundingClientRect().y!=-X.offsetHeight&&(ee.style.top=parseInt(ee.style.top.substring(0,ee.style.top.length-2))+(X.getBoundingClientRect().y-ee.getBoundingClientRect().y)+X.offsetHeight+"px"),ee.style.left=X.getBoundingClientRect().x-(f.right?100:0)+"px"},A=P.ref(null),F=P.ref(null),J=P.ref(0);return(X,ee)=>(P.openBlock(),P.createElementBlock("div",{class:"d-flex",id:X.id},[P.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:A,class:"btn btn-outline-secondary",type:"button",onClick:ee[0]||(ee[0]=B=>h())},[X.label?(P.openBlock(),P.createElementBlock("span",d6t,P.toDisplayString(X.label),1)):P.createCommentVNode("",!0),X.icon?(P.openBlock(),P.createElementBlock("span",m6t,[P.createElementVNode("i",{class:P.normalizeClass(X.icon)},null,2)])):P.createCommentVNode("",!0)],512),_.value?(P.openBlock(),P.createElementBlock("div",{key:0,class:"ddm-menu",ref_key:"DropDownMenu",ref:F,style:P.normalizeStyle({"margin-top":J.value+"px"})},[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(X.options,B=>(P.openBlock(),P.createElementBlock("div",{key:B.icon,class:"ddm-item",onClick:le=>B.command(X.item)},[P.createElementVNode("i",{class:P.normalizeClass(B.icon)},null,2),P.createTextVNode(P.toDisplayString(B.label),1)],8,g6t))),128))],4)):P.createCommentVNode("",!0)],8,p6t))}}),h6t={class:"fltrc-container"},v6t={class:"fltrc-container"},y6t=["placeholder","value"],b6t={key:1,class:"d-flex flex-row input-group align-items-center"},S6t=["value"],T6t=["value"],LTe=P.defineComponent({__name:"FilterCompact",props:{items:{}},setup(l){const f=l,_=P.ref(0),h=P.ref(0),x=P.computed(()=>f.items[_.value].filter),A=B=>{let le=f.items[h.value];le.filter.filtered(le.filter.key,""),_.value=B,h.value=B,ee.value+=1},F=P.ref(void 0);P.onMounted(()=>{let B=[];for(let le=0;le<f.items.length;le++)B.push({icon:f.items[le].icon,label:f.items[le].label,command:()=>A(le)});F.value=B});const J=P.ref({}),X=P.ref(void 0),ee=P.ref(0);return(B,le)=>(P.openBlock(),P.createElementBlock("div",h6t,[F.value?(P.openBlock(),P.createBlock(Nne,{key:0,id:"ddm",icon:B.items[_.value].icon,item:B.items[_.value],label:"",options:F.value},null,8,["icon","item","options"])):P.createCommentVNode("",!0),P.createElementVNode("div",v6t,[x.value.type=="text"?(P.openBlock(),P.createElementBlock("input",{key:0,type:"text",class:"form-control",placeholder:x.value.placeholder,value:x.value.defaultv??"",onInput:le[0]||(le[0]=se=>{x.value.filtered(x.value.key,se.target.value),x.value.defaultv=se.target.value})},null,40,y6t)):P.createCommentVNode("",!0),x.value.type=="date"?(P.openBlock(),P.createElementBlock("div",b6t,[P.createElementVNode("input",{type:"date",class:"form-control",value:x.value.defFrom??"",onInput:le[1]||(le[1]=se=>{J.value.from=se.target.value==""?null:se.target.value,x.value.defFrom=se.target.value==""?null:se.target.value,x.value.filtered(x.value.key,J.value)})},null,40,S6t),le[5]||(le[5]=P.createElementVNode("span",{class:"input-group-text"},"-",-1)),P.createElementVNode("input",{type:"date",class:"form-control",value:x.value.defTil??"",onInput:le[2]||(le[2]=se=>{J.value.until=se.target.value==""?null:se.target.value,x.value.defTil=se.target.value==""?null:se.target.value,x.value.filtered(x.value.key,J.value)})},null,40,T6t)])):P.createCommentVNode("",!0),x.value.type=="dropdown"?(P.openBlock(),P.createBlock(uV,{key:ee.value,selected:X.value,options:x.value.options,filterevent:x.value.filterevent,onFiltered:le[3]||(le[3]=se=>{x.value.onfiltered&&x.value.onfiltered(se)}),id:x.value.key,label:x.value.label,onSelected:le[4]||(le[4]=se=>x.value.filtered(x.value.key,se.id))},null,8,["selected","options","filterevent","id","label"])):P.createCommentVNode("",!0)])]))}});function jVe(l){return P.getCurrentScope()?(P.onScopeDispose(l),!0):!1}function uSe(){const l=new Set,f=A=>{l.delete(A)};return{on:A=>{l.add(A);const F=()=>f(A);return jVe(F),{off:F}},off:f,trigger:(...A)=>Promise.all(Array.from(l).map(F=>F(...A))),clear:()=>{l.clear()}}}const BVe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const x6t=()=>{};function fSe(...l){if(l.length!==1)return P.toRef(...l);const f=l[0];return typeof f=="function"?P.readonly(P.customRef(()=>({get:f,set:x6t}))):P.ref(f)}function hze(l,f=!1,_="Timeout"){return new Promise((h,x)=>{setTimeout(f?()=>x(_):h,l)})}function k6t(l,...f){return f.some(_=>_ in l)}function QSe(l,f=!1){function _(le,{flush:se="sync",deep:pe=!1,timeout:Ge,throwOnTimeout:Qe}={}){let tt=null;const dt=[new Promise(yt=>{tt=P.watch(l,rt=>{le(rt)!==f&&(tt?tt():P.nextTick(()=>tt==null?void 0:tt()),yt(rt))},{flush:se,deep:pe,immediate:!0})})];return Ge!=null&&dt.push(hze(Ge,Qe).then(()=>P.toValue(l)).finally(()=>tt==null?void 0:tt())),Promise.race(dt)}function h(le,se){if(!P.isRef(le))return _(rt=>rt===le,se);const{flush:pe="sync",deep:Ge=!1,timeout:Qe,throwOnTimeout:tt}=se??{};let Tt=null;const yt=[new Promise(rt=>{Tt=P.watch([l,le],([bt,vr])=>{f!==(bt===vr)&&(Tt?Tt():P.nextTick(()=>Tt==null?void 0:Tt()),rt(bt))},{flush:pe,deep:Ge,immediate:!0})})];return Qe!=null&&yt.push(hze(Qe,tt).then(()=>P.toValue(l)).finally(()=>(Tt==null||Tt(),P.toValue(l)))),Promise.race(yt)}function x(le){return _(se=>!!se,le)}function A(le){return h(null,le)}function F(le){return h(void 0,le)}function J(le){return _(Number.isNaN,le)}function X(le,se){return _(pe=>{const Ge=Array.from(pe);return Ge.includes(le)||Ge.includes(P.toValue(le))},se)}function ee(le){return B(1,le)}function B(le=1,se){let pe=-1;return _(()=>(pe+=1,pe>=le),se)}return Array.isArray(P.toValue(l))?{toMatch:_,toContains:X,changed:ee,changedTimes:B,get not(){return QSe(l,!f)}}:{toMatch:_,toBe:h,toBeTruthy:x,toBeNull:A,toBeNaN:J,toBeUndefined:F,changed:ee,changedTimes:B,get not(){return QSe(l,!f)}}}function C6t(l){return QSe(l)}function E6t(l,f,_={}){const{immediate:h=!0,immediateCallback:x=!1}=_,A=P.shallowRef(!1);let F;function J(){F&&(clearTimeout(F),F=void 0)}function X(){A.value=!1,J()}function ee(...B){x&&l(),J(),A.value=!0,F=setTimeout(()=>{A.value=!1,F=void 0,l(...B)},P.toValue(f))}return h&&(A.value=!0,BVe&&ee()),jVe(X),{isPending:P.shallowReadonly(A),start:ee,stop:X}}const w6t=BVe?window:void 0,D6t={json:"application/json",text:"text/plain"};function une(l){return l&&k6t(l,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const A6t=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function P6t(l){return A6t.test(l)}function Vq(l){return typeof Headers<"u"&&l instanceof Headers?Object.fromEntries(l.entries()):l}function cM(l,...f){return l==="overwrite"?async _=>{let h;for(let x=f.length-1;x>=0;x--)if(f[x]!=null){h=f[x];break}return h?{..._,...await h(_)}:_}:async _=>{for(const h of f)h&&(_={..._,...await h(_)});return _}}function N6t(l={}){const f=l.combination||"chain",_=l.options||{},h=l.fetchOptions||{};function x(A,...F){const J=P.computed(()=>{const B=P.toValue(l.baseUrl),le=P.toValue(A);return B&&!P6t(le)?O6t(B,le):le});let X=_,ee=h;return F.length>0&&(une(F[0])?X={...X,...F[0],beforeFetch:cM(f,_.beforeFetch,F[0].beforeFetch),afterFetch:cM(f,_.afterFetch,F[0].afterFetch),onFetchError:cM(f,_.onFetchError,F[0].onFetchError)}:ee={...ee,...F[0],headers:{...Vq(ee.headers)||{},...Vq(F[0].headers)||{}}}),F.length>1&&une(F[1])&&(X={...X,...F[1],beforeFetch:cM(f,_.beforeFetch,F[1].beforeFetch),afterFetch:cM(f,_.afterFetch,F[1].afterFetch),onFetchError:cM(f,_.onFetchError,F[1].onFetchError)}),I6t(J,ee,X)}return x}function I6t(l,...f){var _,h;const x=typeof AbortController=="function";let A={},F={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const J={method:"GET",type:"text",payload:void 0};f.length>0&&(une(f[0])?F={...F,...f[0]}:A=f[0]),f.length>1&&une(f[1])&&(F={...F,...f[1]});const{fetch:X=(h=(_=w6t)==null?void 0:_.fetch)!=null?h:globalThis==null?void 0:globalThis.fetch,initialData:ee,timeout:B}=F,le=uSe(),se=uSe(),pe=uSe(),Ge=P.shallowRef(!1),Qe=P.shallowRef(!1),tt=P.shallowRef(!1),Tt=P.shallowRef(null),dt=P.shallowRef(null),yt=P.shallowRef(null),rt=P.shallowRef(ee||null),bt=P.computed(()=>x&&Qe.value);let vr,Bt;const mr=hn=>{x&&(vr==null||vr.abort(hn),vr=new AbortController,vr.signal.onabort=()=>tt.value=!0,A={...A,signal:vr.signal})},Ut=hn=>{Qe.value=hn,Ge.value=!hn};B&&(Bt=E6t(mr,B,{immediate:!1}));let fn=0;const pn=async(hn=!1)=>{var nn,un;mr(),Ut(!0),yt.value=null,Tt.value=null,tt.value=!1,fn+=1;const qi=fn,Oi={method:J.method,headers:{}},ua=P.toValue(J.payload);if(ua){const hi=Vq(Oi.headers),Fi=Object.getPrototypeOf(ua);!J.payloadType&&ua&&(Fi===Object.prototype||Array.isArray(Fi))&&!(ua instanceof FormData)&&(J.payloadType="json"),J.payloadType&&(hi["Content-Type"]=(nn=D6t[J.payloadType])!=null?nn:J.payloadType),Oi.body=J.payloadType==="json"?JSON.stringify(ua):ua}let ts=!1;const Rn={url:P.toValue(l),options:{...Oi,...A},cancel:()=>{ts=!0}};if(F.beforeFetch&&Object.assign(Rn,await F.beforeFetch(Rn)),ts||!X)return Ut(!1),Promise.resolve(null);let _i=null;return Bt&&Bt.start(),X(Rn.url,{...Oi,...Rn.options,headers:{...Vq(Oi.headers),...Vq((un=Rn.options)==null?void 0:un.headers)}}).then(async hi=>{if(dt.value=hi,Tt.value=hi.status,_i=await hi.clone()[J.type](),!hi.ok)throw rt.value=ee||null,new Error(hi.statusText);return F.afterFetch&&({data:_i}=await F.afterFetch({data:_i,response:hi,context:Rn,execute:pn})),rt.value=_i,le.trigger(hi),hi}).catch(async hi=>{let Fi=hi.message||hi.name;if(F.onFetchError&&({error:Fi,data:_i}=await F.onFetchError({data:_i,error:hi,response:dt.value,context:Rn,execute:pn})),yt.value=Fi,F.updateDataOnError&&(rt.value=_i),se.trigger(hi),hn)throw hi;return null}).finally(()=>{qi===fn&&Ut(!1),Bt&&Bt.stop(),pe.trigger(null)})},sr=fSe(F.refetch);P.watch([sr,fSe(l)],([hn])=>hn&&pn(),{deep:!0});const Ai={isFinished:P.readonly(Ge),isFetching:P.readonly(Qe),statusCode:Tt,response:dt,error:yt,data:rt,canAbort:bt,aborted:tt,abort:mr,execute:pn,onFetchResponse:le.on,onFetchError:se.on,onFetchFinally:pe.on,get:ii("GET"),put:ii("PUT"),post:ii("POST"),delete:ii("DELETE"),patch:ii("PATCH"),head:ii("HEAD"),options:ii("OPTIONS"),json:Qn("json"),text:Qn("text"),blob:Qn("blob"),arrayBuffer:Qn("arrayBuffer"),formData:Qn("formData")};function ii(hn){return(nn,un)=>{if(!Qe.value)return J.method=hn,J.payload=nn,J.payloadType=un,P.isRef(J.payload)&&P.watch([sr,fSe(J.payload)],([qi])=>qi&&pn(),{deep:!0}),{...Ai,then(qi,Oi){return Dt().then(qi,Oi)}}}}function Dt(){return new Promise((hn,nn)=>{C6t(Ge).toBe(!0).then(()=>hn(Ai)).catch(nn)})}function Qn(hn){return()=>{if(!Qe.value)return J.type=hn,{...Ai,then(nn,un){return Dt().then(nn,un)}}}}return F.immediate&&Promise.resolve().then(()=>pn()),{...Ai,then(hn,nn){return Dt().then(hn,nn)}}}function O6t(l,f){return!l.endsWith("/")&&!f.startsWith("/")?`${l}/${f}`:l.endsWith("/")&&f.startsWith("/")?`${l.slice(0,-1)}${f}`:`${l}${f}`}class Ine{constructor(f,_){Q0(this,"title");Q0(this,"message");this.title=f,this.message=_}}var qP=(l=>(l[l.GET=0]="GET",l[l.GET_TEXT=1]="GET_TEXT",l[l.POST=2]="POST",l[l.POST_TEXT=3]="POST_TEXT",l[l.PUT=4]="PUT",l[l.PUT_TEXT=5]="PUT_TEXT",l[l.PATCH=6]="PATCH",l[l.DELETE=7]="DELETE",l))(qP||{});class TM{constructor(f,_,h,x,A="application/json",F){Q0(this,"fetchMethode");Q0(this,"isIpInUrl",f=>/(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/.test(f));this.relativeUrl=_,this.method=h,this.fetchMethode=N6t({baseUrl:f,fetchOptions:{credentials:f.indexOf("localhost")!=-1||this.isIpInUrl(f)?"omit":"include"},options:{immediate:!1,beforeFetch:J=>{A&&(J.options.headers={"Content-Type":A}),F&&(J.options.headers={...J.options.headers,...F})},onFetchError:J=>{let X="Ismeretlen eredetű hiba!",ee=!J.response;return J.response&&(J.response.ok||(ee=!0,X=x.get(J.response.status),X||(X=`${qP[h]} for Call: ${_} with Status: ${J.response.status} has no registered errorMessages!`,console.error(X)))),ee&&window.dispatchEvent(new CustomEvent("fetch-error",{detail:new Ine("Hiba a szerver elérése közben...",X)})),J},afterFetch:J=>J}})}}function xM(l,f,_,h){const x={};return x.payload=P.ref(f),x.routeParams=P.ref(_),x.queryParams=P.ref(h),x.isFetching=P.ref(!1),x.data=P.ref(),x.execute=()=>{x.fetch&&x.fetch.canAbort.value&&x.fetch.abort();const A=`${F6t(l.relativeUrl,x.routeParams.value,x.queryParams.value)}`,F=l.fetchMethode(A);let J;const X=F.isFetching;function ee(){B()&&x.successCallback?x.successCallback(x.data.value):!B()&&x.errorCallback&&(console.log(x.fetch.error.value),x.errorCallback(new Ine(x.fetch.error.value))),x.finallyCallback&&x.finallyCallback()}function B(){return x.fetch.statusCode&&x.fetch.statusCode.value>=200&&x.fetch.statusCode.value<=299}switch(l.method){case 0:J=F.get().json().data;break;case 1:J=F.get().text().data;break;case 4:J=F.put(x.payload).json().data;break;case 5:J=F.put(x.payload).text().data;break;case 3:J=F.post(x.payload).text().data;break;case 2:J=F.post(x.payload).json().data;break;case 6:J=F.patch(x.payload).json().data;break;case 7:J=F.delete(x.payload).json().data;break;default:throw new Error(`Method: ${l.method} is not implemented!`)}P.watch(J,le=>{x.data.value=le}),P.watch(X,le=>{x.isFetching.value=le,le||ee()}),x.fetch=F,F.execute()},x}function F6t(l,f,_){let h=l;return h||(h=""),h.slice(-1)==="/"&&(h=h.substring(0,h.length-1)),f&&Object.keys(f).forEach(x=>{if(h.indexOf(`{${x}}`)===-1)throw window.dispatchEvent(new CustomEvent("fetch-error",{detail:new Ine("Hiba!",`RouteParams: ${x} not found in url: ${h}! Contact the developers!`)})),new Error(`RouteParams: ${x} not found in url: ${h}! Contact the developers!`);const A=f[x];h=h.replace(`{${x}}`,A)}),_&&(h.indexOf("?")===-1&&(h+="?"),Object.keys(_).forEach(x=>{const A=_[x];h+=`${x}=${A}`})),h}const M6t=l=>{if(l=="NaN-NaN-NaN"||!l)return null;const f=new Date(Date.parse(l));return`${f.getFullYear()}-${(f.getMonth()+1).toString().padStart(2,"0")}-${f.getDate().toString().padStart(2,"0")}`},L6t=l=>{if(!l)return"-";const f=new Date(Date.parse(l));return`${f.getFullYear()}-${(f.getMonth()+1).toString().padStart(2,"0")}-${f.getDate().toString().padStart(2,"0")} ${f.getHours()}:${f.getMinutes()}`},R6t=l=>{if(!l)return"-";const f=new Date(Date.parse(l));return`${f.getFullYear()}-${(f.getMonth()+1).toString().padStart(2,"0")}-${f.getDate().toString().padStart(2,"0")} ${f.getHours()}:${f.getMinutes()}`},j6t=l=>{if(!l)return"-";const f=new Date(Date.parse(l));return`${f.getFullYear()}-${(f.getMonth()+1).toString().padStart(2,"0")}-${f.getDate().toString().padStart(2,"0")}`},B6t=l=>{const f=new Date(Date.parse(l)),_=f.getUTCFullYear(),h=String(f.getUTCMonth()+1).padStart(2,"0"),x=String(f.getUTCDate()).padStart(2,"0"),A=String(f.getUTCHours()).padStart(2,"0"),F=String(f.getUTCMinutes()).padStart(2,"0"),J=String(f.getUTCSeconds()).padStart(2,"0");return`${_}-${h}-${x}T${A}:${F}:${J}Z`},$6t=l=>{const f=new Date(Date.parse(l)),_=f.getUTCFullYear(),h=String(f.getUTCMonth()+1).padStart(2,"0"),x=String(f.getUTCDate()).padStart(2,"0");return`${_}-${h}-${x}`},J6t=l=>{const f=new Date(Date.parse(l)),_=f.getFullYear(),h=String(f.getMonth()+1).padStart(2,"0"),x=String(f.getDate()).padStart(2,"0");return`${_}-${h}-${x}`},$Ve=l=>{if(!l)return null;const f=new Date(l);if(isNaN(f))return null;const _=f.getFullYear(),h=String(f.getMonth()+1).padStart(2,"0"),x=String(f.getDate()).padStart(2,"0"),A=String(f.getHours()).padStart(2,"0"),F=String(f.getMinutes()).padStart(2,"0");return`${_}-${h}-${x} ${A}:${F}`},tV=l=>{if(!l)return null;const f=new Date(l);if(isNaN(f))return null;const _=f.getFullYear(),h=String(f.getMonth()+1).padStart(2,"0"),x=String(f.getDate()).padStart(2,"0");return`${_}-${h}-${x}`},fne=(l,f=!1)=>{if(!l)return null;const _=new Date(l);if(isNaN(_))return null;if(f)return tV(_)+"T00:00:00.000Z";const h=_.getUTCFullYear(),x=String(_.getUTCMonth()+1).padStart(2,"0"),A=String(_.getUTCDate()).padStart(2,"0"),F=String(_.getUTCHours()).padStart(2,"0"),J=String(_.getUTCMinutes()).padStart(2,"0"),X=String(_.getUTCSeconds()).padStart(2,"0");return`${h}-${x}-${A}T${F}:${J}:${X}.000Z`};function z6t(l){return new JVe(l)}class JVe{constructor(f){Q0(this,"getPostsConfig");Q0(this,"getImagesConfig");Q0(this,"sites");this.apiurl=f,this.getPostsConfig=xM(new TM(this.apiurl,"/admin/Widgets/{name}",qP.GET,new Map([[400,"Search Posts Widget konfiguráció lekérése ismeretlen hiba!"],[500,"Search Posts Widget konfiguráció lekérése ismeretlen hiba!"]])),void 0,{name:""},void 0),this.getImagesConfig=xM(new TM(this.apiurl,"/admin/Widgets/{name}",qP.GET,new Map([[400,"Widget konfiguráció lekérése ismeretlen hiba!"],[500,"Widget konfiguráció lekérése ismeretlen hiba!"]])),void 0,{name:""},void 0),this.sites=xM(new TM(this.apiurl,"/admin/sites",qP.GET,new Map([[400,"Site lekérése ismeretlen hiba!"],[500,"Site lekérése ismeretlen hiba!"]])),void 0,void 0,void 0)}}const q6t=(l,f=500)=>{let _;return()=>{clearTimeout(_),_=setTimeout(()=>{l()},f)}};function V6t(l){return new zVe(l)}class zVe{constructor(f){Q0(this,"baseUrl");Q0(this,"searchPosts");Q0(this,"partnersDetailsByIds");this.articleEditorBackendUrl=f,this.baseUrl=this.articleEditorBackendUrl,this.searchPosts=xM(new TM(this.baseUrl,"admin/Posts/searchPosts",qP.POST,new Map([[400,"Cikkek lekérdezése ismeretlen hiba!"],[500,"Cikkek lekérdezése ismeretlen hiba!"]])),{},void 0,void 0),this.partnersDetailsByIds=xM(new TM(this.baseUrl,"api/Partners/detailsByIds",qP.POST,new Map([[400,"BrandChannelek lekérdezése ismeretlen hiba!"],[500,"BrandChannelek lekérdezése ismeretlen hiba!"]])),{},void 0,void 0)}}const U6t={class:"d-flex flex-column w-100 gap-2"},W6t={class:"d-flex flex-row justify-content-between p-2"},H6t={key:0,class:"d-flex flex-column gap-2"},G6t={class:"d-flex flex-row justify-content-between"},Y6t={class:"d-flex flex-row justify-content-between"},X6t=["onClick"],Q6t={key:0,class:"d-flex flex-row gap-3"},Z6t={class:"d-flex flex-column w-100"},K6t=["disabled","value"],eAt=["disabled","value"],tAt={class:"d-flex gap-2"},rAt={key:1,class:"d-flex justify-content-around flex-wrap gap-4 p-2"},nAt=["onClick"],iAt={key:2,class:"d-flex justify-content-around flex-wrap gap-4 p-2 cc-years"},aAt=["onClick"],RTe=P.defineComponent({__name:"CalendarComponent",props:{init:{},dateOnly:{type:Boolean}},emits:["changed"],setup(l,{emit:f}){const _=l,h=f,x=P.ref([]),A=P.ref(["H","K","Sz","Cs","P","Sz","V"]),F=P.ref(["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"]),J=P.ref([2025]),X=P.ref(""),ee=P.ref(2025),B=P.ref({local:null,utc:null}),le=P.ref(new Date),se=P.ref("00"),pe=P.ref("00"),Ge=P.ref(!1),Qe=P.ref("calendar");P.onMounted(()=>{tt(_.init?_.init:null),Tt(_.init?_.init:new Date)});const tt=yt=>{if(yt){if(yt.setSeconds(0),_.dateOnly){const rt=new Date(yt);rt.setHours(0),rt.setMinutes(0),rt.setSeconds(0),B.value.local=rt,se.value="00",pe.value="00",B.value.utc=fne(rt,!0)}else B.value.local=new Date(yt),se.value=yt.getHours().toString().padStart(2,"0"),pe.value=yt.getMinutes().toString().padStart(2,"0"),B.value.utc=fne(yt);Ge.value=!0}else se.value="00",pe.value="00",B.value={local:null,utc:null},Ge.value=!1},Tt=yt=>{let rt=new Date(yt);rt.setSeconds(0),le.value=new Date(rt),X.value=F.value[rt.getMonth()],ee.value=rt.getFullYear(),J.value=Array.from({length:60},(sr,Ai)=>rt.getFullYear()-29+Ai);const bt=rt.getMonth();rt.setDate(1);const vr=[{days:[]}];let Bt=vr[0],mr=1;const Ut=sr=>sr.getDay()==0?6:sr.getDay()-1;let fn=Ut(rt);for(let sr=0;sr<fn;sr++)Bt.days.push({label:"",isCurrent:!1,isSelected:!1,isWeekend:!1,isBlank:!0,number:sr});const pn=new Date;for(;rt.getMonth()===bt;)fn=Ut(rt),fn==0&&(Bt={days:[]},vr.push(Bt)),Bt.days.push({label:mr.toString(),isCurrent:rt.getFullYear()==pn.getFullYear()&&rt.getMonth()==pn.getMonth()&&rt.getDate()==pn.getDate(),isSelected:B.value.local?B.value.local.getFullYear()==rt.getFullYear()&&B.value.local.getMonth()==rt.getMonth()&&B.value.local.getDate()==rt.getDate():!1,isWeekend:fn==5||fn==6,isBlank:!1,number:mr}),mr++,rt.setDate(rt.getDate()+1);for(fn=Ut(rt);fn!=6;)Bt.days.push({label:mr.toString(),isCurrent:!1,isSelected:!1,isWeekend:!1,isBlank:!0,number:0}),rt.setDate(rt.getDate()+1),fn=Ut(rt);x.value=vr},dt=()=>{let yt=new Date;yt.setHours(0),yt.setMinutes(0),yt.setSeconds(0),tt(null),Tt(yt),h("changed",B.value)};return(yt,rt)=>(P.openBlock(),P.createElementBlock("div",U6t,[P.createElementVNode("div",W6t,[P.createElementVNode("div",{class:"cc-btn",onClick:rt[0]||(rt[0]=()=>{let bt=new Date(le.value);bt.setMonth(le.value.getMonth()-1),Tt(bt)})}," < "),P.createElementVNode("div",{class:"cc-btn",onClick:rt[1]||(rt[1]=bt=>Qe.value="years")},P.toDisplayString(ee.value),1),P.createElementVNode("div",{class:"cc-btn",onClick:rt[2]||(rt[2]=bt=>Qe.value="months")},P.toDisplayString(X.value),1),P.createElementVNode("div",{class:"cc-btn",onClick:rt[3]||(rt[3]=()=>{let bt=new Date(le.value);bt.setMonth(le.value.getMonth()+1),Tt(bt)})}," > ")]),Qe.value=="calendar"?(P.openBlock(),P.createElementBlock("div",H6t,[P.createElementVNode("div",G6t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(A.value,bt=>(P.openBlock(),P.createElementBlock("div",null,P.toDisplayString(bt),1))),256))]),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(x.value,bt=>(P.openBlock(),P.createElementBlock("div",Y6t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(bt.days,vr=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(["d-flex flex-row justify-content-center cc-day",{"cc-day-weekend":vr.isWeekend,"cc-day-blank":vr.isBlank,"cc-day-current":vr.isCurrent,"cc-day-selected":vr.isSelected}]),onClick:()=>{let Bt=new Date(le.value.getFullYear(),le.value.getMonth(),vr.number,Number.parseInt(se.value),Number.parseInt(pe.value));tt(Bt),Tt(Bt)}},P.toDisplayString(vr.label),11,X6t))),256))]))),256)),yt.dateOnly?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",Q6t,[P.createElementVNode("div",null,P.toDisplayString(se.value)+":"+P.toDisplayString(pe.value),1),P.createElementVNode("div",Z6t,[P.createElementVNode("input",{type:"range",id:"slider",min:"0",max:"23",disabled:!Ge.value,value:se.value,onInput:rt[4]||(rt[4]=bt=>{B.value.local.setHours(bt.target.value),tt(B.value.local)})},null,40,K6t),P.createElementVNode("input",{type:"range",id:"slider",min:"0",max:"59",disabled:!Ge.value,value:pe.value,onInput:rt[5]||(rt[5]=bt=>{B.value.local.setMinutes(bt.target.value),tt(B.value.local)})},null,40,eAt)])])),P.createElementVNode("div",tAt,[P.createElementVNode("button",{type:"button",class:"btn btn-outline-secondary w-100",onClick:dt},"Töröl"),P.createElementVNode("button",{type:"button",class:"btn btn-primary w-100",onClick:rt[6]||(rt[6]=bt=>h("changed",B.value))},"Beállít")])])):P.createCommentVNode("",!0),Qe.value=="months"?(P.openBlock(),P.createElementBlock("div",rAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(F.value,(bt,vr)=>(P.openBlock(),P.createElementBlock("div",{class:"cc-btn-light",onClick:Bt=>{let mr=new Date(le.value);mr.setMonth(vr),Tt(mr),Qe.value="calendar",Bt.stopPropagation()}},P.toDisplayString(bt),9,nAt))),256))])):P.createCommentVNode("",!0),Qe.value=="years"?(P.openBlock(),P.createElementBlock("div",iAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(J.value,bt=>(P.openBlock(),P.createElementBlock("div",{class:"cc-btn-light",onClick:vr=>{let Bt=new Date(le.value);Bt.setFullYear(bt),Tt(Bt),Qe.value="calendar",vr.stopPropagation()}},P.toDisplayString(bt),9,aAt))),256))])):P.createCommentVNode("",!0)]))}}),sAt={class:"d-flex flex-column flex-md-row gap-2"},oAt={class:"d-flex flex-row gap-2 w-100"},cAt={class:"vf-input-group"},lAt={key:0,class:"vf-floating-wrapper"},uAt={class:"vf-floating-label vf-floating-label-visible vf-floating-label-success"},fAt=["value","placeholder"],ZSe=P.defineComponent({__name:"DateTimePicker",props:{placeholder:{},initial:{},dateOnly:{type:Boolean}},emits:["changed","calendar"],setup(l,{emit:f}){const _=l,h=f,x=P.ref(null),A=P.ref(null),F=P.ref(""),J=P.ref(null),X=P.ref(null),ee=P.ref(null),B=Qe=>{X.value&&!X.value.contains(Qe.target)&&(se.value=!1)};P.onMounted(()=>{_.initial&&(x.value=_.initial.local,A.value=_.initial.utc,le()),document.addEventListener("click",B)}),P.onUnmounted(()=>{document.removeEventListener("click",B)});const le=()=>{const Qe=_.dateOnly?tV(x.value):$Ve(x.value);F.value=Qe??""},se=P.ref(!1),pe=Qe=>{se.value?se.value=!1:(se.value=!0,P.nextTick(()=>{const tt=X.value,Tt=J.value,dt=ee.value,yt=Tt.getBoundingClientRect();tt.style.left=yt.left+yt.width+dt.getBoundingClientRect().width-tt.getBoundingClientRect().width+15+"px",tt.style.top=yt.top+yt.height+"px"})),Qe&&Qe.stopPropagation()},Ge=Qe=>{const tt=new Date(Date.parse(Qe)),Tt=fne(tt,_.dateOnly);if(!Tt){A.value=null,P.nextTick(()=>A.value="");return}A.value=Tt,x.value=tt,le(),h("changed",{local:x.value,utc:A.value})};return P.watch(se,()=>{h("calendar",se.value)}),(Qe,tt)=>(P.openBlock(),P.createElementBlock("div",sAt,[P.createElementVNode("div",oAt,[P.createElementVNode("div",cAt,[A.value?(P.openBlock(),P.createElementBlock("div",lAt,[P.createElementVNode("span",uAt,P.toDisplayString(Qe.placeholder),1)])):P.createCommentVNode("",!0),P.createElementVNode("input",{type:"text",id:"dateTimeInputText",ref_key:"dateTimeInputTextRef",ref:J,class:"vf-input-field",value:F.value,onChange:tt[0]||(tt[0]=Tt=>Ge(Tt.target.value)),placeholder:Qe.placeholder},null,40,fAt)]),P.createElementVNode("div",{ref_key:"iconBtn",ref:ee,class:"dateTime-picker__iconbtn",onClick:pe},tt[2]||(tt[2]=[P.createElementVNode("i",{class:"fa-regular fa-calendar"},null,-1)]),512)]),se.value?(P.openBlock(),P.createElementBlock("div",{key:0,ref_key:"calendarRef",ref:X,class:"dateTime-picker__popup"},[P.createVNode(RTe,{init:x.value,dateOnly:Qe.dateOnly,onChanged:tt[1]||(tt[1]=Tt=>{x.value=Tt.local,A.value=Tt.utc,pe(null),le(),h("changed",{local:x.value,utc:A.value})})},null,8,["init","dateOnly"])],512)):P.createCommentVNode("",!0)]))}}),_At=["id"],pAt=["id"],dAt={class:"dtrp-label"},mAt=["id"],gAt="Törlés",hAt="Beállítás",vAt=P.defineComponent({__name:"DateRangePicker",props:{id:{},label:{}},emits:["changed"],setup(l,{emit:f}){const _=l,h=f,x=P.ref(!1),A=async()=>{x.value=!x.value,x.value&&await J()},F=P.reactive({top:"0px",left:"0px",zIndex:1e3}),J=async()=>{await P.nextTick();const rt=document.getElementById(`${_.id}-btn`).getBoundingClientRect(),bt=document.getElementById(`${_.id}-popup`);if(!bt)return;const vr=bt.getBoundingClientRect(),Bt=window.innerWidth;F.top=rt.top+rt.height+"px",rt.left<Bt/3?F.left=rt.left+"px":rt.left>2*Bt/3?F.left=rt.left+rt.width-vr.width+"px":F.left=rt.right-rt.width/2-vr.width/2+"px"},X=P.reactive({utc:null,local:null}),ee=P.reactive({utc:null,local:null}),B=P.ref(""),le=async()=>{X.local||ee.local?B.value=`'${tV(X.local)??""}'-'${tV(ee.local)??""}'`:B.value=_.label,await J()},se=yt=>{const rt=document.getElementById(`${_.id}-popup`);rt&&!rt.contains(yt.target)&&(x.value=!1)};let pe=!1;P.onMounted(()=>{le()}),P.onUnmounted(()=>{pe&&window.removeEventListener("click",se)});const Ge=()=>{X.utc=null,X.local=null,ee.local=null,ee.utc=null,le(),x.value=!1,h("changed",{fromUtc:X.utc,toUtc:ee.utc})},Qe=()=>{le(),x.value=!1,h("changed",{fromUtc:X.utc,toUtc:ee.utc})},tt=()=>{pe||setTimeout(()=>{window.addEventListener("click",se),pe=!0},100)},Tt=()=>{pe&&setTimeout(()=>{window.removeEventListener("click",se),pe=!1},100)},dt=yt=>{yt?Tt():tt()};return P.watch(x,()=>{x.value?tt():Tt()}),(yt,rt)=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[P.createElementVNode("div",{id:yt.id,class:"dtrp-flex"},[P.createElementVNode("button",{id:yt.id+"-btn",class:"btn btn-outline-secondary dtrp-flex dtrp-button",type:"button",onClick:A},[P.createElementVNode("div",dAt,P.toDisplayString(B.value),1)],8,pAt)],8,_At),x.value?(P.openBlock(),P.createElementBlock("div",{key:0,id:yt.id+"-popup",class:"dtrp-popup d-flex flex-column gap-2",style:P.normalizeStyle(F)},[P.createVNode(ZSe,{placeholder:"Ettől",id:yt.id+"-from",onChanged:rt[0]||(rt[0]=bt=>{X.local=bt.local,X.utc=bt.utc}),dateOnly:!0,initial:X,onCalendar:dt},null,8,["id","initial"]),P.createVNode(ZSe,{placeholder:"Eddig",id:yt.id+"-to",onChanged:rt[1]||(rt[1]=bt=>{ee.local=bt.local,ee.utc=bt.utc}),dateOnly:!0,initial:ee,onCalendar:dt},null,8,["id","initial"]),P.createElementVNode("div",{class:"d-flex w-100 gap-2"},[P.createElementVNode("button",{class:"btn btn-outline-secondary w-50",onClick:Ge},P.toDisplayString(gAt)),P.createElementVNode("button",{class:"btn btn-outline-primary w-50",onClick:Qe},P.toDisplayString(hAt))])],12,mAt)):P.createCommentVNode("",!0)],64))}}),yAt={class:"fltrctrl-container"},bAt=["placeholder","value"],SAt={key:1,class:"d-flex flex-row input-group align-items-center"};class TAt{constructor(f,_,h){Q0(this,"type");this.key=f,this.placeholder=_,this.filtered=h,this.type="text"}}class xAt{constructor(f,_,h,x,A,F){Q0(this,"type");this.key=f,this.label=_,this.options=h,this.filterevent=x,this.onfiltered=A,this.filtered=F,this.type="dropdown"}}class kAt{constructor(f,_,h,x,A){Q0(this,"type");this.key=f,this.label=_,this.filtered=h,this.defFrom=x,this.defTil=A,this.type="date"}}const _Se=P.ref({}),jTe=P.defineComponent({__name:"FilterControl",props:{item:{}},setup(l){const f=l;P.onMounted(()=>{var h;if(f.item.type=="dropdown"){const x=f.item;_.value=(h=x.options.value.find(A=>A.id==f.item.defaultv))==null?void 0:h.id}});const _=P.ref(void 0);return(h,x)=>(P.openBlock(),P.createElementBlock("div",yAt,[h.item.type=="text"?(P.openBlock(),P.createElementBlock("input",{key:0,type:"text",class:"form-control",placeholder:h.item.placeholder,value:h.item.defaultv??"",onInput:x[0]||(x[0]=A=>h.item.filtered(h.item.key,A.target.value))},null,40,bAt)):P.createCommentVNode("",!0),h.item.type=="date"?(P.openBlock(),P.createElementBlock("div",SAt,[P.createVNode(vAt,{id:h.item.key+"-dtrp",label:h.item.label,onChanged:x[1]||(x[1]=A=>{_Se.value.from=A.fromUtc,_Se.value.until=A.toUtc,h.item.filtered(h.item.key,_Se.value)})},null,8,["id","label"])])):P.createCommentVNode("",!0),h.item.type=="dropdown"?(P.openBlock(),P.createBlock(uV,{key:2,selected:_.value,options:P.ref(h.item.options),filterevent:h.item.filterevent,onFiltered:x[2]||(x[2]=A=>{h.item.onfiltered&&h.item.onfiltered(A)}),id:h.item.key,label:h.item.label,onSelected:x[3]||(x[3]=A=>h.item.filtered(h.item.key,A.id))},null,8,["selected","options","filterevent","id","label"])):P.createCommentVNode("",!0)]))}}),CAt=["title"],I8=P.defineComponent({__name:"IconButton",props:{icon:{},active:{type:Boolean},big:{type:Boolean},title:{}},emits:["click"],setup(l,{emit:f}){const _=l,h=P.computed(()=>`${_.icon} ${_.big?"ib-button-big":""}`),x=f;return(A,F)=>(P.openBlock(),P.createElementBlock("div",{onClick:F[0]||(F[0]=J=>x("click")),class:"ib-container"},[P.createElementVNode("div",{class:P.normalizeClass(["ib-button",{"ib-button-active":A.active}]),title:A.title},[P.createElementVNode("i",{class:P.normalizeClass(h.value)},null,2)],10,CAt)]))}}),EAt={class:"pc-container"},wAt=["value","max"],BTe=P.defineComponent({__name:"PaginatorControl",props:{settings:{}},emits:["pagesize","page"],setup(l,{emit:f}){const _=l,h=f,x=()=>{let ee=P.ref([]);return _.settings.value.sizes.forEach(B=>ee.value.push({label:B.toString(),id:B.toString()})),ee},A=P.ref(1);P.watch(()=>_.settings.value,()=>{A.value=1});const F=P.computed(()=>Math.floor(_.settings.value.total/_.settings.value.pagesize)+1),J=()=>{A.value>1&&(A.value-=1,h("page",A.value))},X=()=>{A.value<F.value&&(A.value+=1,h("page",A.value))};return(ee,B)=>(P.openBlock(),P.createElementBlock("div",EAt,[P.createElementVNode("button",{class:"btn btn-outline-secondary",onClick:J},"<"),P.createElementVNode("input",{class:"form-control pc-input",type:"number",value:A.value,min:"1",max:F.value,onChange:B[0]||(B[0]=le=>ee.$emit("page",le.target.value))},null,40,wAt),P.createTextVNode("/"+P.toDisplayString(F.value)+" ",1),P.createElementVNode("button",{class:"btn btn-outline-secondary",onClick:X},">"),P.createVNode(uV,{opentop:!0,class:"pc-dropdown",id:"pagecount",label:"10",selected:ee.settings.value.pagesize.toString(),options:x(),onSelected:B[1]||(B[1]=le=>{A.value=1,ee.$emit("pagesize",parseInt(le.id))})},null,8,["selected","options"])]))}}),DAt={class:"form-check"},AAt=["name","id","checked"],PAt=["for"],$Te=P.defineComponent({__name:"RadioButton",props:{group:{},label:{},id:{},selected:{type:Boolean}},emits:["selected"],setup(l){return(f,_)=>(P.openBlock(),P.createElementBlock("div",DAt,[P.createElementVNode("input",{class:"form-check-input",type:"radio",name:f.group,id:f.id,checked:f.selected,onChange:_[0]||(_[0]=h=>f.$emit("selected",f.id))},null,40,AAt),P.createElementVNode("label",{class:"form-check-label",for:f.id},P.toDisplayString(f.label),9,PAt)]))}}),NAt={class:"d-flex flex-column gap-2 justify-content-around"},qVe=P.defineComponent({__name:"RadioButtonGroup",props:{group:{},items:{}},emits:["selected"],setup(l){return(f,_)=>(P.openBlock(),P.createElementBlock("div",NAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.items,h=>(P.openBlock(),P.createBlock($Te,{key:h.id,id:h.id,label:h.label,group:f.group,selected:h.selected,onSelected:_[0]||(_[0]=x=>f.$emit("selected",x))},null,8,["id","label","group","selected"]))),128))]))}}),IAt={key:0,class:"spinner-border",role:"status"},JTe=P.defineComponent({__name:"SpinningProgress",props:{loading:{type:Boolean}},setup(l){return(f,_)=>f.loading?(P.openBlock(),P.createElementBlock("div",IAt,_[0]||(_[0]=[P.createElementVNode("span",{class:"visually-hidden"},"Loading...",-1)]))):P.createCommentVNode("",!0)}}),OAt={key:0,class:"t2l-table-view t2l-table-header-label"},FAt={key:0,class:"t2l-select"},MAt={key:1,class:"t2l-cell"},LAt={class:"t2l-table-view t2l-table-header-filter"},RAt={key:0,class:"t2l-select"},jAt={key:1,class:"t2l-cell"},BAt={class:"t2l-table-view t2l-rows"},$At={key:0,class:"t2l-select"},JAt=["id","onChange"],zAt=["innerHTML"],qAt={key:1,class:"t2l-cell t2l-actions"},VAt=["title","disabled","onClick"],UAt={class:"t2l-card-view t2l-card-filters"},WAt={class:"t2l-card-filter-order"},HAt={class:"t2l-card-filter-search"},GAt={class:"t2l-card-view t2l-rows"},YAt={key:0,class:"t2l-card-select"},XAt=["id","onChange"],QAt={key:0,class:"t2l-property"},ZAt={class:"t2l-label"},KAt=["innerHTML"],e4t={class:"d-flex align-items-center"},t4t={key:2,class:"d-flex justify-content-center t2l-footer"},VVe=P.defineComponent({__name:"TableToList",props:{items:{},config:{}},emits:["pagesize","page"],setup(l){const f=l,_=P.computed(()=>f.config.columns.filter(ee=>ee.visible!=!1)),h=P.computed(()=>f.config.columns.filter(ee=>ee.visible!=!1&&ee.filter)),x=P.computed(()=>_.value.filter(ee=>ee.sort&&ee.sort.active&&ee.sort.active.value)),A=P.computed(()=>Math.ceil(_.value.length/f.config.smColCount)),F=(ee,B)=>{var le=ee-1+(B-1)*A.value;return le<_.value.length?_.value[le]:null},J=(ee,B)=>ee.converter?ee.converter(B[ee.property],B):B[ee.property],X=ee=>{if(ee.sort&&ee.sort.active){let B=!ee.sort.active.value;f.config.columns.forEach(le=>{le.sort&&le.sort.active&&(le.sort.active.value=!1)}),ee.sort.active.value=B,ee.sort.callback(B?ee.property:"")}};return(ee,B)=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[ee.config.compact?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",OAt,[ee.config.selectableId?(P.openBlock(),P.createElementBlock("span",FAt)):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(_.value,le=>{var se,pe;return P.openBlock(),P.createElementBlock("span",{class:"t2l-cell gap-2",key:le.property},[le.sort?(P.openBlock(),P.createBlock(I8,{key:0,icon:le.sort.icon,onClick:Ge=>X(le),active:(pe=(se=le.sort)==null?void 0:se.active)==null?void 0:pe.value},null,8,["icon","onClick","active"])):P.createCommentVNode("",!0),P.createTextVNode(" "+P.toDisplayString(le.label),1)])}),128)),ee.config.actionHeader?(P.openBlock(),P.createElementBlock("span",MAt,P.toDisplayString(ee.config.actionHeader),1)):P.createCommentVNode("",!0)])),P.createElementVNode("div",LAt,[ee.config.selectableId?(P.openBlock(),P.createElementBlock("span",RAt)):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(_.value,le=>(P.openBlock(),P.createElementBlock("span",{class:"t2l-cell",key:le.label},[le.filter?(P.openBlock(),P.createBlock(jTe,{key:0,item:le.filter},null,8,["item"])):P.createCommentVNode("",!0)]))),128)),ee.config.actionHeader?(P.openBlock(),P.createElementBlock("span",jAt)):P.createCommentVNode("",!0)]),P.createElementVNode("div",BAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(ee.items,le=>(P.openBlock(),P.createElementBlock("div",{key:le,class:"t2l-row"},[ee.config.selectableId?(P.openBlock(),P.createElementBlock("div",$At,[P.createElementVNode("input",{class:"form-check-input",type:"checkbox",id:le[ee.config.selectableId],onChange:se=>le.selected=!le.selected},null,40,JAt)])):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(_.value,se=>(P.openBlock(),P.createElementBlock("div",{class:"t2l-cell",key:se.property,innerHTML:J(se,le)},null,8,zAt))),128)),ee.config.actions?(P.openBlock(),P.createElementBlock("div",qAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(ee.config.actions,se=>(P.openBlock(),P.createElementBlock("button",{key:se,type:"button",class:"btn btn-outline-secondary",title:se.label,disabled:!se.enabled(le),onClick:pe=>se.command(le)},[P.createElementVNode("i",{class:P.normalizeClass(se.icon)},null,2)],8,VAt))),128))])):P.createCommentVNode("",!0)]))),128))]),P.createElementVNode("div",UAt,[P.createElementVNode("div",WAt,[P.createVNode(MTe,{id:"card-filter-order",default:{icon:"fa-solid fa-chevron-down",label:"rendezés"},selected:x.value.length>0?x.value[0].property:"",enabled:ee.config.sortEnabled,options:P.ref(_.value.filter(le=>le.sort).map(le=>({icon:le.sort.icon,label:le.sort.label,value:le.property,callback:le.sort.callback})))},null,8,["selected","enabled","options"])]),P.createElementVNode("div",HAt,[P.createVNode(LTe,{items:h.value.map(le=>({filter:le.filter,icon:le.filterIcon,label:le.label}))},null,8,["items"])])]),P.createElementVNode("div",GAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(ee.items,(le,se)=>(P.openBlock(),P.createElementBlock("div",{class:"t2l-row",key:se},[ee.config.selectableId?(P.openBlock(),P.createElementBlock("div",YAt,[P.createElementVNode("input",{class:"form-check-input",type:"checkbox",id:le[ee.config.selectableId],onChange:pe=>le.selected=!le.selected},null,40,XAt)])):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(ee.config.smColCount,pe=>(P.openBlock(),P.createElementBlock("div",{class:"t2l-card-col",key:pe},[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(A.value,Ge=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:Ge},[F(Ge,pe)?(P.openBlock(),P.createElementBlock("div",QAt,[P.createElementVNode("span",ZAt,P.toDisplayString(F(Ge,pe).label),1),P.createElementVNode("div",{innerHTML:J(F(Ge,pe),le)},null,8,KAt)])):P.createCommentVNode("",!0)],64))),128))]))),128)),P.createElementVNode("div",e4t,[f.config.actions?(P.openBlock(),P.createBlock(Nne,{key:0,item:le,options:f.config.actions,label:"...",id:se.toString(),right:!0},null,8,["item","options","id"])):P.createCommentVNode("",!0)])]))),128))]),ee.config.paginatorSettings?(P.openBlock(),P.createBlock(BTe,{key:1,settings:ee.config.paginatorSettings,onPagesize:B[0]||(B[0]=le=>ee.$emit("pagesize",le)),onPage:B[1]||(B[1]=le=>ee.$emit("page",le))},null,8,["settings"])):P.createCommentVNode("",!0),ee.config.paginatorSettings?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",t4t," Elemek: "+P.toDisplayString(f.items.length),1))],64))}}),r4t={class:"d-flex flex flex-row"},n4t={key:1,class:"d-flex flex-column gap-2 options-body flex-grow-1"},i4t={class:"d-flex flex-grow-1 flex-column"},a4t={class:"d-flex flex-row"},s4t={class:"d-flex align-items-end"},o4t=["disabled"],UVe=P.defineComponent({__name:"TableToListOptions",props:{colCount:{},options:{},config:{}},emits:["save"],setup(l,{emit:f}){const _=l,h=P.ref([]);P.onMounted(()=>{h.value=_.options,B()});const x=P.computed(()=>_.colCount!=0?Math.ceil(_.options.length/_.colCount):0),A=(le,se)=>{var pe=_.options[(le-1)*x.value+se-1];return pe},F=()=>{J("save",h.value)},J=f,X=P.ref(!1),ee=P.ref(!0),B=()=>{ee.value=h.value.filter(le=>le.checked).length<=1};return(le,se)=>(P.openBlock(),P.createElementBlock("div",r4t,[X.value?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",{key:0,class:"d-flex flex-row align-items-center gap-2 options-header justify-content-start",onClick:se[0]||(se[0]=pe=>X.value=!X.value)},se[3]||(se[3]=[P.createElementVNode("i",{class:"fa-solid fa-cog"},null,-1),P.createElementVNode("div",{class:"options-header-label"},"beállítások",-1)]))),X.value?(P.openBlock(),P.createElementBlock("div",n4t,[se[5]||(se[5]=P.createElementVNode("div",{class:"options-header-label"},"Táblázat tulajdonságai",-1)),P.createElementVNode("div",i4t,[P.createVNode(eV,{id:"compact",label:"Kompakt",checked:!!le.config.compact,onChanged:se[1]||(se[1]=pe=>le.config.compact=pe.checked)},null,8,["checked"])]),se[6]||(se[6]=P.createElementVNode("div",{class:"options-header-label"},"Látható oszlopok",-1)),P.createElementVNode("div",a4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(le.colCount,pe=>(P.openBlock(),P.createElementBlock("div",{class:"d-flex flex-grow-1 flex-column",key:pe},[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(x.value,Ge=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:Ge},[A(pe,Ge)?(P.openBlock(),P.createBlock(eV,{key:0,id:A(pe,Ge).property,label:A(pe,Ge).label,checked:A(pe,Ge).checked,onChanged:se[2]||(se[2]=Qe=>{h.value.find(tt=>tt.property==Qe.id).checked=Qe.checked,B()})},null,8,["id","label","checked"])):P.createCommentVNode("",!0)],64))),128))]))),128)),P.createElementVNode("div",s4t,[P.createElementVNode("button",{class:"btn btn-outline-secondary",type:"button",onClick:F,disabled:ee.value},se[4]||(se[4]=[P.createElementVNode("i",{class:"fa-solid fa-save"},null,-1)]),8,o4t)])])])):P.createCommentVNode("",!0)]))}}),c4t={class:"tlb-container d-flex flex-column flex-grow-1"},l4t={class:"d-flex flex-row tlb-item"},u4t={class:"d-flex flex-column flex-grow-1 flex-sm-row justify-content-between tlb-item"},f4t=["id"],_4t={key:0,class:"d-flex id"},p4t={class:"d-flex flex-row align-items-center tlb-children-container"},WVe=P.defineComponent({__name:"TextListBox",props:{items:{}},emits:["deleted"],setup(l){return(f,_)=>{const h=P.resolveComponent("TextListBox",!0);return P.openBlock(),P.createElementBlock("div",c4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.items,x=>(P.openBlock(),P.createElementBlock("div",{class:"d-flex flex-column",key:x.id},[P.createElementVNode("div",l4t,[P.createElementVNode("div",u4t,[P.createElementVNode("div",{class:"d-flex flex-grow-1",id:x.id},P.toDisplayString(x.label),9,f4t),x.showId?(P.openBlock(),P.createElementBlock("div",_4t,P.toDisplayString(x.id),1)):P.createCommentVNode("",!0)]),x.hideDelete?P.createCommentVNode("",!0):(P.openBlock(),P.createBlock(I8,{key:0,icon:"fa-solid fa-trash",onClick:A=>f.$emit("deleted",x.id)},null,8,["onClick"]))]),P.createElementVNode("div",p4t,[x.childrend?(P.openBlock(),P.createBlock(h,{key:0,items:x.childrend,showId:x.showId,hideDelete:x.hideDelete},null,8,["items","showId","hideDelete"])):P.createCommentVNode("",!0)])]))),128))])}}}),d4t={key:0,class:"toast-container position-fixed bottom-0 start-50 translate-middle-x p-4 toast-zindex"},m4t={class:"toast-header"},g4t={class:"me-auto"},h4t={class:"text-body-secondary"},v4t=["onClick"],y4t=["innerHTML"],vze=500,zTe=P.defineComponent({__name:"ToastComponent",props:{defaultDisplayDuration:{}},setup(l,{expose:f}){const _=l,h=P.ref([]);return f({addToast:A=>{A.displayDuration||(A.displayDuration=_.defaultDisplayDuration),A.id=new Date,h.value.filter(function(F){return F.id!==A.id}),h.value.push(A)}}),setInterval(()=>{h.value=h.value.map(A=>(A.displayDuration-=vze,A)),h.value=h.value.filter(A=>A.displayDuration>0)},vze),(A,F)=>h.value.length>0?(P.openBlock(),P.createElementBlock("div",d4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(h.value,J=>(P.openBlock(),P.createElementBlock("div",{key:J.message,class:P.normalizeClass(["toast d-block",{"toast-info":J.type==="info","toast-success":J.type==="success","toast-warning":J.type==="warning","toast-error":J.type==="error"}]),role:"alert","aria-live":"assertive","aria-atomic":"true"},[P.createElementVNode("div",m4t,[P.createElementVNode("strong",g4t,P.toDisplayString(J.title),1),P.createElementVNode("small",h4t,P.toDisplayString(J.id.toLocaleTimeString()),1),P.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close",onClick:X=>h.value=h.value.filter(ee=>ee.id!==J.id)},null,8,v4t)]),P.createElementVNode("div",{class:"toast-body",innerHTML:J.message},null,8,y4t)],2))),128))])):P.createCommentVNode("",!0)}}),HVe=P.defineComponent({__name:"ToastWrapper",setup(l){const f=P.ref(),_=[{id:"toast-notification-message",handler:h=>{let x=h.detail;f.value.addToast({title:x.title,message:x.message,type:x.severity,displayDuration:x.displayDuration?x.displayDuration:5e3})}},{id:"fetch-error",handler:h=>{let x=h.detail;f.value.addToast({title:x.title,message:x.message,type:"error",displayDuration:1e4})}}];return P.onMounted(()=>{_.forEach(h=>window.addEventListener(h.id,h.handler))}),P.onUnmounted(()=>{_.forEach(h=>window.removeEventListener(h.id,h.handler))}),(h,x)=>(P.openBlock(),P.createBlock(zTe,{ref_key:"toast",ref:f,defaultDisplayDuration:5e3},null,512))}}),Qk=class Qk{};Q0(Qk,"getId",(f,_)=>`${f}_${_}`),Q0(Qk,"saveOptions",(f,_,h,x)=>{localStorage.setItem(Qk.getId(f,_),JSON.stringify({ttlcos:x,ttlc:{compact:h.compact}})),window.location.reload()}),Q0(Qk,"cleanOptions",(f,_)=>{for(let h=0;h<localStorage.length;h++)localStorage.key(h).includes(f)&&localStorage.key(h)!=Qk.getId(f,_)&&localStorage.removeItem(localStorage.key(h))}),Q0(Qk,"loadOptions",(f,_,h,x,A)=>{Qk.cleanOptions(f,_);const F=Qk.getId(f,_);if(localStorage.getItem(F))try{const J=JSON.parse(localStorage.getItem(F));A.value=J.ttlcos,A.value.forEach(X=>x.columns.find(ee=>ee.property==X.property).visible=X.checked),x.compact=J.ttlc.compact}catch{localStorage.removeItem(F),Qk.loadOptions(f,_,h,x,A)}else h||(h=[]),A.value=x.columns.map(J=>(J.visible=h.indexOf(J.property)==-1,{label:J.label,property:J.property,checked:J.visible}))});let KSe=Qk;const b4t={class:"d-flex flex-row flex-wrap align-items-center gap-3"},S4t=["onClick","title"],T4t={class:"hdr-title d-flex align-items-center"},x4t=["onClick","title"],k4t={class:"d-flex flex-grow-1 justify-content-end gap-3"},C4t=["onClick","title"],GVe=P.defineComponent({__name:"HeaderComponent",props:{title:{},isFetching:{type:Boolean},buttons:{}},setup(l){return(f,_)=>(P.openBlock(),P.createElementBlock("div",b4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.buttons,h=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[h.align=="pretitle"&&h.type=="iconButton"?(P.openBlock(),P.createBlock(I8,{key:0,big:!0,icon:h.icon,onClick:h.callBack,title:h.title},null,8,["icon","onClick","title"])):P.createCommentVNode("",!0),h.align=="pretitle"&&h.type=="button"?(P.openBlock(),P.createElementBlock("button",{key:1,type:"button",class:"btn btn-outline-secondary",onClick:h.callBack,title:h.title},P.toDisplayString(h.title),9,S4t)):P.createCommentVNode("",!0)],64))),256)),P.createElementVNode("div",T4t,P.toDisplayString(f.title),1),P.createVNode(JTe,{loading:f.isFetching},null,8,["loading"]),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.buttons,h=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[h.align=="left"&&h.type=="iconButton"?(P.openBlock(),P.createBlock(I8,{key:0,big:!0,icon:h.icon,onClick:h.callBack,title:h.title},null,8,["icon","onClick","title"])):P.createCommentVNode("",!0),h.align=="left"&&h.type=="button"?(P.openBlock(),P.createElementBlock("button",{key:1,type:"button",class:"btn btn-outline-secondary",onClick:h.callBack,title:h.title},P.toDisplayString(h.title),9,x4t)):P.createCommentVNode("",!0)],64))),256)),P.createElementVNode("div",k4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.buttons,h=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[h.align=="right"&&h.type=="iconButton"?(P.openBlock(),P.createBlock(I8,{key:0,big:!0,icon:h.icon,onClick:h.callBack,title:h.title},null,8,["icon","onClick","title"])):P.createCommentVNode("",!0),h.align=="right"&&h.type=="button"?(P.openBlock(),P.createElementBlock("button",{key:1,type:"button",class:"btn btn-outline-secondary",onClick:h.callBack,title:h.title},P.toDisplayString(h.title),9,C4t)):P.createCommentVNode("",!0)],64))),256))])]))}});function YVe(l,f){return function(){return l.apply(f,arguments)}}const{toString:E4t}=Object.prototype,{getPrototypeOf:qTe}=Object,{iterator:One,toStringTag:XVe}=Symbol,Fne=(l=>f=>{const _=E4t.call(f);return l[_]||(l[_]=_.slice(8,-1).toLowerCase())})(Object.create(null)),sC=l=>(l=l.toLowerCase(),f=>Fne(f)===l),Mne=l=>f=>typeof f===l,{isArray:jM}=Array,PM=Mne("undefined");function fV(l){return l!==null&&!PM(l)&&l.constructor!==null&&!PM(l.constructor)&&_2(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const QVe=sC("ArrayBuffer");function w4t(l){let f;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?f=ArrayBuffer.isView(l):f=l&&l.buffer&&QVe(l.buffer),f}const D4t=Mne("string"),_2=Mne("function"),ZVe=Mne("number"),_V=l=>l!==null&&typeof l=="object",A4t=l=>l===!0||l===!1,Gre=l=>{if(Fne(l)!=="object")return!1;const f=qTe(l);return(f===null||f===Object.prototype||Object.getPrototypeOf(f)===null)&&!(XVe in l)&&!(One in l)},P4t=l=>{if(!_V(l)||fV(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},N4t=sC("Date"),I4t=sC("File"),O4t=sC("Blob"),F4t=sC("FileList"),M4t=l=>_V(l)&&_2(l.pipe),L4t=l=>{let f;return l&&(typeof FormData=="function"&&l instanceof FormData||_2(l.append)&&((f=Fne(l))==="formdata"||f==="object"&&_2(l.toString)&&l.toString()==="[object FormData]"))},R4t=sC("URLSearchParams"),[j4t,B4t,$4t,J4t]=["ReadableStream","Request","Response","Headers"].map(sC),z4t=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pV(l,f,{allOwnKeys:_=!1}={}){if(l===null||typeof l>"u")return;let h,x;if(typeof l!="object"&&(l=[l]),jM(l))for(h=0,x=l.length;h<x;h++)f.call(null,l[h],h,l);else{if(fV(l))return;const A=_?Object.getOwnPropertyNames(l):Object.keys(l),F=A.length;let J;for(h=0;h<F;h++)J=A[h],f.call(null,l[J],J,l)}}function KVe(l,f){if(fV(l))return null;f=f.toLowerCase();const _=Object.keys(l);let h=_.length,x;for(;h-- >0;)if(x=_[h],f===x.toLowerCase())return x;return null}const P8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eUe=l=>!PM(l)&&l!==P8;function eTe(){const{caseless:l,skipUndefined:f}=eUe(this)&&this||{},_={},h=(x,A)=>{const F=l&&KVe(_,A)||A;Gre(_[F])&&Gre(x)?_[F]=eTe(_[F],x):Gre(x)?_[F]=eTe({},x):jM(x)?_[F]=x.slice():(!f||!PM(x))&&(_[F]=x)};for(let x=0,A=arguments.length;x<A;x++)arguments[x]&&pV(arguments[x],h);return _}const q4t=(l,f,_,{allOwnKeys:h}={})=>(pV(f,(x,A)=>{_&&_2(x)?l[A]=YVe(x,_):l[A]=x},{allOwnKeys:h}),l),V4t=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),U4t=(l,f,_,h)=>{l.prototype=Object.create(f.prototype,h),l.prototype.constructor=l,Object.defineProperty(l,"super",{value:f.prototype}),_&&Object.assign(l.prototype,_)},W4t=(l,f,_,h)=>{let x,A,F;const J={};if(f=f||{},l==null)return f;do{for(x=Object.getOwnPropertyNames(l),A=x.length;A-- >0;)F=x[A],(!h||h(F,l,f))&&!J[F]&&(f[F]=l[F],J[F]=!0);l=_!==!1&&qTe(l)}while(l&&(!_||_(l,f))&&l!==Object.prototype);return f},H4t=(l,f,_)=>{l=String(l),(_===void 0||_>l.length)&&(_=l.length),_-=f.length;const h=l.indexOf(f,_);return h!==-1&&h===_},G4t=l=>{if(!l)return null;if(jM(l))return l;let f=l.length;if(!ZVe(f))return null;const _=new Array(f);for(;f-- >0;)_[f]=l[f];return _},Y4t=(l=>f=>l&&f instanceof l)(typeof Uint8Array<"u"&&qTe(Uint8Array)),X4t=(l,f)=>{const h=(l&&l[One]).call(l);let x;for(;(x=h.next())&&!x.done;){const A=x.value;f.call(l,A[0],A[1])}},Q4t=(l,f)=>{let _;const h=[];for(;(_=l.exec(f))!==null;)h.push(_);return h},Z4t=sC("HTMLFormElement"),K4t=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(_,h,x){return h.toUpperCase()+x}),yze=(({hasOwnProperty:l})=>(f,_)=>l.call(f,_))(Object.prototype),ePt=sC("RegExp"),tUe=(l,f)=>{const _=Object.getOwnPropertyDescriptors(l),h={};pV(_,(x,A)=>{let F;(F=f(x,A,l))!==!1&&(h[A]=F||x)}),Object.defineProperties(l,h)},tPt=l=>{tUe(l,(f,_)=>{if(_2(l)&&["arguments","caller","callee"].indexOf(_)!==-1)return!1;const h=l[_];if(_2(h)){if(f.enumerable=!1,"writable"in f){f.writable=!1;return}f.set||(f.set=()=>{throw Error("Can not rewrite read-only method '"+_+"'")})}})},rPt=(l,f)=>{const _={},h=x=>{x.forEach(A=>{_[A]=!0})};return jM(l)?h(l):h(String(l).split(f)),_},nPt=()=>{},iPt=(l,f)=>l!=null&&Number.isFinite(l=+l)?l:f;function aPt(l){return!!(l&&_2(l.append)&&l[XVe]==="FormData"&&l[One])}const sPt=l=>{const f=new Array(10),_=(h,x)=>{if(_V(h)){if(f.indexOf(h)>=0)return;if(fV(h))return h;if(!("toJSON"in h)){f[x]=h;const A=jM(h)?[]:{};return pV(h,(F,J)=>{const X=_(F,x+1);!PM(X)&&(A[J]=X)}),f[x]=void 0,A}}return h};return _(l,0)},oPt=sC("AsyncFunction"),cPt=l=>l&&(_V(l)||_2(l))&&_2(l.then)&&_2(l.catch),rUe=((l,f)=>l?setImmediate:f?((_,h)=>(P8.addEventListener("message",({source:x,data:A})=>{x===P8&&A===_&&h.length&&h.shift()()},!1),x=>{h.push(x),P8.postMessage(_,"*")}))(`axios@${Math.random()}`,[]):_=>setTimeout(_))(typeof setImmediate=="function",_2(P8.postMessage)),lPt=typeof queueMicrotask<"u"?queueMicrotask.bind(P8):typeof process<"u"&&process.nextTick||rUe,uPt=l=>l!=null&&_2(l[One]),ki={isArray:jM,isArrayBuffer:QVe,isBuffer:fV,isFormData:L4t,isArrayBufferView:w4t,isString:D4t,isNumber:ZVe,isBoolean:A4t,isObject:_V,isPlainObject:Gre,isEmptyObject:P4t,isReadableStream:j4t,isRequest:B4t,isResponse:$4t,isHeaders:J4t,isUndefined:PM,isDate:N4t,isFile:I4t,isBlob:O4t,isRegExp:ePt,isFunction:_2,isStream:M4t,isURLSearchParams:R4t,isTypedArray:Y4t,isFileList:F4t,forEach:pV,merge:eTe,extend:q4t,trim:z4t,stripBOM:V4t,inherits:U4t,toFlatObject:W4t,kindOf:Fne,kindOfTest:sC,endsWith:H4t,toArray:G4t,forEachEntry:X4t,matchAll:Q4t,isHTMLForm:Z4t,hasOwnProperty:yze,hasOwnProp:yze,reduceDescriptors:tUe,freezeMethods:tPt,toObjectSet:rPt,toCamelCase:K4t,noop:nPt,toFiniteNumber:iPt,findKey:KVe,global:P8,isContextDefined:eUe,isSpecCompliantForm:aPt,toJSONObject:sPt,isAsyncFn:oPt,isThenable:cPt,setImmediate:rUe,asap:lPt,isIterable:uPt};function ru(l,f,_,h,x){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=l,this.name="AxiosError",f&&(this.code=f),_&&(this.config=_),h&&(this.request=h),x&&(this.response=x,this.status=x.status?x.status:null)}ki.inherits(ru,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ki.toJSONObject(this.config),code:this.code,status:this.status}}});const nUe=ru.prototype,iUe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(l=>{iUe[l]={value:l}});Object.defineProperties(ru,iUe);Object.defineProperty(nUe,"isAxiosError",{value:!0});ru.from=(l,f,_,h,x,A)=>{const F=Object.create(nUe);ki.toFlatObject(l,F,function(B){return B!==Error.prototype},ee=>ee!=="isAxiosError");const J=l&&l.message?l.message:"Error",X=f==null&&l?l.code:f;return ru.call(F,J,X,_,h,x),l&&F.cause==null&&Object.defineProperty(F,"cause",{value:l,configurable:!0}),F.name=l&&l.name||"Error",A&&Object.assign(F,A),F};const fPt=null;function tTe(l){return ki.isPlainObject(l)||ki.isArray(l)}function aUe(l){return ki.endsWith(l,"[]")?l.slice(0,-2):l}function bze(l,f,_){return l?l.concat(f).map(function(x,A){return x=aUe(x),!_&&A?"["+x+"]":x}).join(_?".":""):f}function _Pt(l){return ki.isArray(l)&&!l.some(tTe)}const pPt=ki.toFlatObject(ki,{},null,function(f){return/^is[A-Z]/.test(f)});function Lne(l,f,_){if(!ki.isObject(l))throw new TypeError("target must be an object");f=f||new FormData,_=ki.toFlatObject(_,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Qe,tt){return!ki.isUndefined(tt[Qe])});const h=_.metaTokens,x=_.visitor||B,A=_.dots,F=_.indexes,X=(_.Blob||typeof Blob<"u"&&Blob)&&ki.isSpecCompliantForm(f);if(!ki.isFunction(x))throw new TypeError("visitor must be a function");function ee(Ge){if(Ge===null)return"";if(ki.isDate(Ge))return Ge.toISOString();if(ki.isBoolean(Ge))return Ge.toString();if(!X&&ki.isBlob(Ge))throw new ru("Blob is not supported. Use a Buffer instead.");return ki.isArrayBuffer(Ge)||ki.isTypedArray(Ge)?X&&typeof Blob=="function"?new Blob([Ge]):Buffer.from(Ge):Ge}function B(Ge,Qe,tt){let Tt=Ge;if(Ge&&!tt&&typeof Ge=="object"){if(ki.endsWith(Qe,"{}"))Qe=h?Qe:Qe.slice(0,-2),Ge=JSON.stringify(Ge);else if(ki.isArray(Ge)&&_Pt(Ge)||(ki.isFileList(Ge)||ki.endsWith(Qe,"[]"))&&(Tt=ki.toArray(Ge)))return Qe=aUe(Qe),Tt.forEach(function(yt,rt){!(ki.isUndefined(yt)||yt===null)&&f.append(F===!0?bze([Qe],rt,A):F===null?Qe:Qe+"[]",ee(yt))}),!1}return tTe(Ge)?!0:(f.append(bze(tt,Qe,A),ee(Ge)),!1)}const le=[],se=Object.assign(pPt,{defaultVisitor:B,convertValue:ee,isVisitable:tTe});function pe(Ge,Qe){if(!ki.isUndefined(Ge)){if(le.indexOf(Ge)!==-1)throw Error("Circular reference detected in "+Qe.join("."));le.push(Ge),ki.forEach(Ge,function(Tt,dt){(!(ki.isUndefined(Tt)||Tt===null)&&x.call(f,Tt,ki.isString(dt)?dt.trim():dt,Qe,se))===!0&&pe(Tt,Qe?Qe.concat(dt):[dt])}),le.pop()}}if(!ki.isObject(l))throw new TypeError("data must be an object");return pe(l),f}function Sze(l){const f={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(l).replace(/[!'()~]|%20|%00/g,function(h){return f[h]})}function VTe(l,f){this._pairs=[],l&&Lne(l,this,f)}const sUe=VTe.prototype;sUe.append=function(f,_){this._pairs.push([f,_])};sUe.toString=function(f){const _=f?function(h){return f.call(this,h,Sze)}:Sze;return this._pairs.map(function(x){return _(x[0])+"="+_(x[1])},"").join("&")};function dPt(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function oUe(l,f,_){if(!f)return l;const h=_&&_.encode||dPt;ki.isFunction(_)&&(_={serialize:_});const x=_&&_.serialize;let A;if(x?A=x(f,_):A=ki.isURLSearchParams(f)?f.toString():new VTe(f,_).toString(h),A){const F=l.indexOf("#");F!==-1&&(l=l.slice(0,F)),l+=(l.indexOf("?")===-1?"?":"&")+A}return l}class Tze{constructor(){this.handlers=[]}use(f,_,h){return this.handlers.push({fulfilled:f,rejected:_,synchronous:h?h.synchronous:!1,runWhen:h?h.runWhen:null}),this.handlers.length-1}eject(f){this.handlers[f]&&(this.handlers[f]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(f){ki.forEach(this.handlers,function(h){h!==null&&f(h)})}}const cUe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mPt=typeof URLSearchParams<"u"?URLSearchParams:VTe,gPt=typeof FormData<"u"?FormData:null,hPt=typeof Blob<"u"?Blob:null,vPt={isBrowser:!0,classes:{URLSearchParams:mPt,FormData:gPt,Blob:hPt},protocols:["http","https","file","blob","url","data"]},UTe=typeof window<"u"&&typeof document<"u",rTe=typeof navigator=="object"&&navigator||void 0,yPt=UTe&&(!rTe||["ReactNative","NativeScript","NS"].indexOf(rTe.product)<0),bPt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SPt=UTe&&window.location.href||"http://localhost",TPt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:UTe,hasStandardBrowserEnv:yPt,hasStandardBrowserWebWorkerEnv:bPt,navigator:rTe,origin:SPt},Symbol.toStringTag,{value:"Module"})),jy={...TPt,...vPt};function xPt(l,f){return Lne(l,new jy.classes.URLSearchParams,{visitor:function(_,h,x,A){return jy.isNode&&ki.isBuffer(_)?(this.append(h,_.toString("base64")),!1):A.defaultVisitor.apply(this,arguments)},...f})}function kPt(l){return ki.matchAll(/\w+|\[(\w*)]/g,l).map(f=>f[0]==="[]"?"":f[1]||f[0])}function CPt(l){const f={},_=Object.keys(l);let h;const x=_.length;let A;for(h=0;h<x;h++)A=_[h],f[A]=l[A];return f}function lUe(l){function f(_,h,x,A){let F=_[A++];if(F==="__proto__")return!0;const J=Number.isFinite(+F),X=A>=_.length;return F=!F&&ki.isArray(x)?x.length:F,X?(ki.hasOwnProp(x,F)?x[F]=[x[F],h]:x[F]=h,!J):((!x[F]||!ki.isObject(x[F]))&&(x[F]=[]),f(_,h,x[F],A)&&ki.isArray(x[F])&&(x[F]=CPt(x[F])),!J)}if(ki.isFormData(l)&&ki.isFunction(l.entries)){const _={};return ki.forEachEntry(l,(h,x)=>{f(kPt(h),x,_,0)}),_}return null}function EPt(l,f,_){if(ki.isString(l))try{return(f||JSON.parse)(l),ki.trim(l)}catch(h){if(h.name!=="SyntaxError")throw h}return(_||JSON.stringify)(l)}const dV={transitional:cUe,adapter:["xhr","http","fetch"],transformRequest:[function(f,_){const h=_.getContentType()||"",x=h.indexOf("application/json")>-1,A=ki.isObject(f);if(A&&ki.isHTMLForm(f)&&(f=new FormData(f)),ki.isFormData(f))return x?JSON.stringify(lUe(f)):f;if(ki.isArrayBuffer(f)||ki.isBuffer(f)||ki.isStream(f)||ki.isFile(f)||ki.isBlob(f)||ki.isReadableStream(f))return f;if(ki.isArrayBufferView(f))return f.buffer;if(ki.isURLSearchParams(f))return _.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),f.toString();let J;if(A){if(h.indexOf("application/x-www-form-urlencoded")>-1)return xPt(f,this.formSerializer).toString();if((J=ki.isFileList(f))||h.indexOf("multipart/form-data")>-1){const X=this.env&&this.env.FormData;return Lne(J?{"files[]":f}:f,X&&new X,this.formSerializer)}}return A||x?(_.setContentType("application/json",!1),EPt(f)):f}],transformResponse:[function(f){const _=this.transitional||dV.transitional,h=_&&_.forcedJSONParsing,x=this.responseType==="json";if(ki.isResponse(f)||ki.isReadableStream(f))return f;if(f&&ki.isString(f)&&(h&&!this.responseType||x)){const F=!(_&&_.silentJSONParsing)&&x;try{return JSON.parse(f,this.parseReviver)}catch(J){if(F)throw J.name==="SyntaxError"?ru.from(J,ru.ERR_BAD_RESPONSE,this,null,this.response):J}}return f}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jy.classes.FormData,Blob:jy.classes.Blob},validateStatus:function(f){return f>=200&&f<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ki.forEach(["delete","get","head","post","put","patch"],l=>{dV.headers[l]={}});const wPt=ki.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),DPt=l=>{const f={};let _,h,x;return l&&l.split(`
1
+ "use strict";var UDt=Object.defineProperty;var WDt=(l,f,_)=>f in l?UDt(l,f,{enumerable:!0,configurable:!0,writable:!0,value:_}):l[f]=_;var Q0=(l,f,_)=>WDt(l,typeof f!="symbol"?f+"":f,_);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("vue"),HDt={class:"form-check"},GDt=["checked","id"],YDt=["for"],eV=P.defineComponent({__name:"CheckBox",props:{id:{},label:{},checked:{type:Boolean}},emits:["changed"],setup(l){return(f,_)=>(P.openBlock(),P.createElementBlock("div",HDt,[P.createElementVNode("input",{class:"form-check-input",type:"checkbox",checked:f.checked,value:"",id:f.id,onChange:_[0]||(_[0]=h=>f.$emit("changed",{id:f.id,checked:h.target.checked}))},null,40,GDt),P.createElementVNode("label",{class:"form-check-label",for:f.id},P.toDisplayString(f.label),9,YDt)]))}}),XDt={class:"cbl-childrend-container"},QDt=P.defineComponent({__name:"CheckBoxList",props:{items:{},callback:{type:Function}},setup(l){return(f,_)=>{const h=P.resolveComponent("CheckBoxList",!0);return P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.items,x=>(P.openBlock(),P.createElementBlock("div",{key:x.id,class:"cbl-container"},[P.createVNode(eV,{id:x.id,label:x.label,checked:x.checked,onChanged:_[0]||(_[0]=A=>f.callback(A.id,A.checked))},null,8,["id","label","checked"]),P.createElementVNode("div",XDt,[x.childrend?(P.openBlock(),P.createBlock(h,{key:0,items:x.childrend,callback:f.callback},null,8,["items","callback"])):P.createCommentVNode("",!0)])]))),128)}}}),RM=(l,f)=>{const _=l.__vccOpts||l;for(const[h,x]of f)_[h]=x;return _},RVe=RM(QDt,[["__scopeId","data-v-ae2832c5"]]),ZDt=["id"],KDt=["disabled"],e6t={class:"dd-label"},t6t=["id"],r6t={class:"dd-item-list"},n6t=["id","onClick"],uV=P.defineComponent({__name:"DropDown",props:{id:{},label:{},selected:{},options:{},opentop:{type:Boolean},disableFilter:{type:Boolean},storeselected:{type:Boolean},filterevent:{type:Boolean},disabled:{type:Boolean}},emits:["selected","filtered"],setup(l,{emit:f}){const _=l;P.watch(_.options,()=>{_.filterevent&&(Ge.value=_.options.value)}),P.watch(()=>_.selected,()=>{X()}),P.watch(()=>_.label,()=>{X()});const h=f,x=vr=>{_.storeselected||(F.value=vr.label),h("selected",vr)},A="törlés",F=P.ref(""),J=P.ref(null);P.watch(()=>J.value,()=>{J.value&&document.getElementById(J.value.id).scrollIntoView()});const X=()=>{if(_.options.value){const vr=_.options.value.find(Bt=>Bt.id==_.selected);vr?F.value=vr.label:(pe(""),F.value=_.label)}},ee=vr=>{const Bt=()=>J?Ge.value.indexOf(J.value,0):-1,mr=document.getElementById(`${_.id}-clear-btn`);if(mr==vr.target&&vr.key=="ArrowDown"){bt.value.focus(),J.value=Ge.value[0];return}if(bt.value&&bt.value==vr.target){if(vr.key=="ArrowUp"){const Ut=Bt();if(Ut<1){mr&&mr.focus();return}J.value=Ge.value[Ut-1];return}if(vr.key=="ArrowDown"){const Ut=Bt();if(Ut>=Ge.value.length-1)return;J.value=Ge.value[Ut+1];return}if(vr.key=="Enter"){if(!J.value)return;x(J.value),rt.value=="block"&&(rt.value="none");return}}},B=()=>{rt.value=="block"&&(rt.value="none")},le=()=>{rt.value=="block"&&(rt.value="none")};P.onMounted(()=>{_.label&&(F.value=_.label),X(),se="",document.addEventListener("click",B),window.addEventListener("scrolled",le),Tt(),document.addEventListener("keydown",ee)}),P.onUnmounted(()=>{document.removeEventListener("keydown",ee),document.removeEventListener("click",B),window.removeEventListener("scrolled",le)});let se="";const pe=vr=>{se=vr,_.filterevent?h("filtered",vr):vr==""?Ge.value=_.options.value:Ge.value=_.options.value.filter(Bt=>Bt.label.toLowerCase().includes(vr.toLowerCase()))},Ge=P.ref([]),Qe=()=>{x({label:_.label,id:""}),pe("")},tt=()=>{if(rt.value=="block"){rt.value="none";return}setTimeout(()=>{rt.value="block"},10),setTimeout(Tt,20)},Tt=()=>{const vr=dt.value,Bt=yt.value;_.opentop?Bt.style.top=vr.getBoundingClientRect().y-Bt.offsetHeight+"px":(Bt.style.top=vr.getBoundingClientRect().y+vr.offsetHeight+"px",vr.getBoundingClientRect().y-Bt.getBoundingClientRect().y!=-vr.offsetHeight&&(Bt.style.top=parseInt(Bt.style.top.substring(0,Bt.style.top.length-2))+(vr.getBoundingClientRect().y-Bt.getBoundingClientRect().y)+vr.offsetHeight+"px")),bt.value&&bt.value.focus()},dt=P.ref(null),yt=P.ref(null),rt=P.ref("none"),bt=P.ref(null);return(vr,Bt)=>(P.openBlock(),P.createElementBlock("div",{id:vr.id,class:"dd-flex"},[P.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:dt,class:"btn btn-outline-secondary dd-toggle dd-flex",type:"button",disabled:vr.disabled,onClick:Bt[0]||(Bt[0]=()=>{pe(P.unref(se)),tt()})},[P.createElementVNode("div",e6t,P.toDisplayString(F.value),1)],8,KDt),P.createElementVNode("div",{class:"dd-menu",style:P.normalizeStyle({display:rt.value}),ref_key:"DropDownMenu",ref:yt},[F.value!=_.label?(P.openBlock(),P.createElementBlock("button",{key:0,id:`${vr.id}-clear-btn`,type:"button",class:"btn btn-outline-secondary dd-button",onClick:Bt[1]||(Bt[1]=mr=>Qe())},P.toDisplayString(A),8,t6t)):P.createCommentVNode("",!0),vr.disableFilter?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("input",{key:1,ref_key:"ddSearch",ref:bt,type:"text ",class:"form-control",placeholder:"keresés",onInput:Bt[2]||(Bt[2]=mr=>pe(mr.target.value)),onClick:Bt[3]||(Bt[3]=mr=>mr.stopPropagation())},null,544)),P.createElementVNode("div",r6t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(Ge.value,mr=>(P.openBlock(),P.createElementBlock("div",{id:mr.id,key:mr.id,class:P.normalizeClass(["dd-item",{"dd-item-preselected":mr==J.value}]),onClick:Ut=>x(mr)},[mr.icon?(P.openBlock(),P.createElementBlock("i",{key:0,class:P.normalizeClass([mr.icon,"dd-item__icon"])},null,2)):P.createCommentVNode("",!0),P.createTextVNode(P.toDisplayString(mr.label),1)],10,n6t))),128))])],4)],8,ZDt))}}),i6t=["id"],a6t=["disabled"],s6t={class:"ddc-row"},o6t={class:"ddc-label"},c6t={class:"dd-item-list"},l6t=["onClick"],u6t={class:"ddc-item"},f6t={class:"ddc-label"},_6t="törlés",MTe=P.defineComponent({__name:"DropDownCallBack",props:{id:{},default:{},selected:{},enabled:{type:Boolean},options:{}},setup(l){const f=l,_=B=>{B==f.default&&h.value.callback(""),h.value=B,h.value.callback(h.value.value)},h=P.ref(f.default),x=()=>{if(f.selected&&f.options.value){const B=f.options.value.find(le=>le.value==f.selected);B&&(h.value=B)}};P.onMounted(()=>{x(),document.addEventListener("click",function(){ee.value=="block"&&(ee.value="none")})});const A=()=>{setTimeout(()=>{ee.value="block"},10),setTimeout(()=>{X.value=F.value.offsetHeight},20)},F=P.ref(null),J=P.ref(null),X=P.ref(0),ee=P.ref("none");return(B,le)=>(P.openBlock(),P.createElementBlock("div",{class:"ddc-flex",id:B.id},[P.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:F,class:"btn btn-outline-secondary ddc-button",type:"button",disabled:!B.enabled,onClick:le[0]||(le[0]=se=>A())},[P.createElementVNode("span",s6t,[P.createElementVNode("i",{class:P.normalizeClass([h.value.icon,"ddc-icon"])},null,2),P.createElementVNode("span",o6t,P.toDisplayString(h.value.label),1)])],8,a6t),P.createElementVNode("div",{class:"ddc-menu",style:P.normalizeStyle({display:ee.value,"margin-top":X.value+"px"}),ref_key:"DropDownMenu",ref:J},[h.value!=f.default?(P.openBlock(),P.createElementBlock("button",{key:0,type:"button",class:"btn btn-outline-secondary ddc-button",onClick:le[1]||(le[1]=se=>_(f.default))},P.toDisplayString(_6t))):P.createCommentVNode("",!0),P.createElementVNode("div",c6t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(B.options.value,se=>(P.openBlock(),P.createElementBlock("div",{key:se.label,class:"ddc-item",onClick:pe=>_(se)},[P.createElementVNode("span",u6t,[P.createElementVNode("i",{class:P.normalizeClass([se.icon,"ddc-icon"])},null,2),P.createElementVNode("span",f6t,P.toDisplayString(se.label),1)])],8,l6t))),128))])],4)],8,i6t))}}),p6t=["id"],d6t={key:0,class:"ddm-label"},m6t={key:1,class:"ddm-label"},g6t=["onClick"],Nne=P.defineComponent({__name:"DropDownMenu",props:{label:{},icon:{},options:{},item:{},id:{},right:{type:Boolean}},setup(l){const f=l;P.onMounted(()=>{document.addEventListener("click",function(){_.value&&(_.value=!1)})});const _=P.ref(!1),h=()=>{setTimeout(()=>{_.value=!0},10),setTimeout(x,20)},x=()=>{const X=A.value,ee=F.value;ee.style.top=X.getBoundingClientRect().y+X.offsetHeight+"px",X.getBoundingClientRect().y-ee.getBoundingClientRect().y!=-X.offsetHeight&&(ee.style.top=parseInt(ee.style.top.substring(0,ee.style.top.length-2))+(X.getBoundingClientRect().y-ee.getBoundingClientRect().y)+X.offsetHeight+"px"),ee.style.left=X.getBoundingClientRect().x-(f.right?100:0)+"px"},A=P.ref(null),F=P.ref(null),J=P.ref(0);return(X,ee)=>(P.openBlock(),P.createElementBlock("div",{class:"d-flex",id:X.id},[P.createElementVNode("button",{ref_key:"DropDownTriggerButton",ref:A,class:"btn btn-outline-secondary",type:"button",onClick:ee[0]||(ee[0]=B=>h())},[X.label?(P.openBlock(),P.createElementBlock("span",d6t,P.toDisplayString(X.label),1)):P.createCommentVNode("",!0),X.icon?(P.openBlock(),P.createElementBlock("span",m6t,[P.createElementVNode("i",{class:P.normalizeClass(X.icon)},null,2)])):P.createCommentVNode("",!0)],512),_.value?(P.openBlock(),P.createElementBlock("div",{key:0,class:"ddm-menu",ref_key:"DropDownMenu",ref:F,style:P.normalizeStyle({"margin-top":J.value+"px"})},[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(X.options,B=>(P.openBlock(),P.createElementBlock("div",{key:B.icon,class:"ddm-item",onClick:le=>B.command(X.item)},[P.createElementVNode("i",{class:P.normalizeClass(B.icon)},null,2),P.createTextVNode(P.toDisplayString(B.label),1)],8,g6t))),128))],4)):P.createCommentVNode("",!0)],8,p6t))}}),h6t={class:"fltrc-container"},v6t={class:"fltrc-container"},y6t=["placeholder","value"],b6t={key:1,class:"d-flex flex-row input-group align-items-center"},S6t=["value"],T6t=["value"],LTe=P.defineComponent({__name:"FilterCompact",props:{items:{}},setup(l){const f=l,_=P.ref(0),h=P.ref(0),x=P.computed(()=>f.items[_.value].filter),A=B=>{let le=f.items[h.value];le.filter.filtered(le.filter.key,""),_.value=B,h.value=B,ee.value+=1},F=P.ref(void 0);P.onMounted(()=>{let B=[];for(let le=0;le<f.items.length;le++)B.push({icon:f.items[le].icon,label:f.items[le].label,command:()=>A(le)});F.value=B});const J=P.ref({}),X=P.ref(void 0),ee=P.ref(0);return(B,le)=>(P.openBlock(),P.createElementBlock("div",h6t,[F.value?(P.openBlock(),P.createBlock(Nne,{key:0,id:"ddm",icon:B.items[_.value].icon,item:B.items[_.value],label:"",options:F.value},null,8,["icon","item","options"])):P.createCommentVNode("",!0),P.createElementVNode("div",v6t,[x.value.type=="text"?(P.openBlock(),P.createElementBlock("input",{key:0,type:"text",class:"form-control",placeholder:x.value.placeholder,value:x.value.defaultv??"",onInput:le[0]||(le[0]=se=>{x.value.filtered(x.value.key,se.target.value),x.value.defaultv=se.target.value})},null,40,y6t)):P.createCommentVNode("",!0),x.value.type=="date"?(P.openBlock(),P.createElementBlock("div",b6t,[P.createElementVNode("input",{type:"date",class:"form-control",value:x.value.defFrom??"",onInput:le[1]||(le[1]=se=>{J.value.from=se.target.value==""?null:se.target.value,x.value.defFrom=se.target.value==""?null:se.target.value,x.value.filtered(x.value.key,J.value)})},null,40,S6t),le[5]||(le[5]=P.createElementVNode("span",{class:"input-group-text"},"-",-1)),P.createElementVNode("input",{type:"date",class:"form-control",value:x.value.defTil??"",onInput:le[2]||(le[2]=se=>{J.value.until=se.target.value==""?null:se.target.value,x.value.defTil=se.target.value==""?null:se.target.value,x.value.filtered(x.value.key,J.value)})},null,40,T6t)])):P.createCommentVNode("",!0),x.value.type=="dropdown"?(P.openBlock(),P.createBlock(uV,{key:ee.value,selected:X.value,options:x.value.options,filterevent:x.value.filterevent,onFiltered:le[3]||(le[3]=se=>{x.value.onfiltered&&x.value.onfiltered(se)}),id:x.value.key,label:x.value.label,onSelected:le[4]||(le[4]=se=>x.value.filtered(x.value.key,se.id))},null,8,["selected","options","filterevent","id","label"])):P.createCommentVNode("",!0)])]))}});function jVe(l){return P.getCurrentScope()?(P.onScopeDispose(l),!0):!1}function uSe(){const l=new Set,f=A=>{l.delete(A)};return{on:A=>{l.add(A);const F=()=>f(A);return jVe(F),{off:F}},off:f,trigger:(...A)=>Promise.all(Array.from(l).map(F=>F(...A))),clear:()=>{l.clear()}}}const BVe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const x6t=()=>{};function fSe(...l){if(l.length!==1)return P.toRef(...l);const f=l[0];return typeof f=="function"?P.readonly(P.customRef(()=>({get:f,set:x6t}))):P.ref(f)}function hze(l,f=!1,_="Timeout"){return new Promise((h,x)=>{setTimeout(f?()=>x(_):h,l)})}function k6t(l,...f){return f.some(_=>_ in l)}function QSe(l,f=!1){function _(le,{flush:se="sync",deep:pe=!1,timeout:Ge,throwOnTimeout:Qe}={}){let tt=null;const dt=[new Promise(yt=>{tt=P.watch(l,rt=>{le(rt)!==f&&(tt?tt():P.nextTick(()=>tt==null?void 0:tt()),yt(rt))},{flush:se,deep:pe,immediate:!0})})];return Ge!=null&&dt.push(hze(Ge,Qe).then(()=>P.toValue(l)).finally(()=>tt==null?void 0:tt())),Promise.race(dt)}function h(le,se){if(!P.isRef(le))return _(rt=>rt===le,se);const{flush:pe="sync",deep:Ge=!1,timeout:Qe,throwOnTimeout:tt}=se??{};let Tt=null;const yt=[new Promise(rt=>{Tt=P.watch([l,le],([bt,vr])=>{f!==(bt===vr)&&(Tt?Tt():P.nextTick(()=>Tt==null?void 0:Tt()),rt(bt))},{flush:pe,deep:Ge,immediate:!0})})];return Qe!=null&&yt.push(hze(Qe,tt).then(()=>P.toValue(l)).finally(()=>(Tt==null||Tt(),P.toValue(l)))),Promise.race(yt)}function x(le){return _(se=>!!se,le)}function A(le){return h(null,le)}function F(le){return h(void 0,le)}function J(le){return _(Number.isNaN,le)}function X(le,se){return _(pe=>{const Ge=Array.from(pe);return Ge.includes(le)||Ge.includes(P.toValue(le))},se)}function ee(le){return B(1,le)}function B(le=1,se){let pe=-1;return _(()=>(pe+=1,pe>=le),se)}return Array.isArray(P.toValue(l))?{toMatch:_,toContains:X,changed:ee,changedTimes:B,get not(){return QSe(l,!f)}}:{toMatch:_,toBe:h,toBeTruthy:x,toBeNull:A,toBeNaN:J,toBeUndefined:F,changed:ee,changedTimes:B,get not(){return QSe(l,!f)}}}function C6t(l){return QSe(l)}function E6t(l,f,_={}){const{immediate:h=!0,immediateCallback:x=!1}=_,A=P.shallowRef(!1);let F;function J(){F&&(clearTimeout(F),F=void 0)}function X(){A.value=!1,J()}function ee(...B){x&&l(),J(),A.value=!0,F=setTimeout(()=>{A.value=!1,F=void 0,l(...B)},P.toValue(f))}return h&&(A.value=!0,BVe&&ee()),jVe(X),{isPending:P.shallowReadonly(A),start:ee,stop:X}}const w6t=BVe?window:void 0,D6t={json:"application/json",text:"text/plain"};function une(l){return l&&k6t(l,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const A6t=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function P6t(l){return A6t.test(l)}function Vq(l){return typeof Headers<"u"&&l instanceof Headers?Object.fromEntries(l.entries()):l}function cM(l,...f){return l==="overwrite"?async _=>{let h;for(let x=f.length-1;x>=0;x--)if(f[x]!=null){h=f[x];break}return h?{..._,...await h(_)}:_}:async _=>{for(const h of f)h&&(_={..._,...await h(_)});return _}}function N6t(l={}){const f=l.combination||"chain",_=l.options||{},h=l.fetchOptions||{};function x(A,...F){const J=P.computed(()=>{const B=P.toValue(l.baseUrl),le=P.toValue(A);return B&&!P6t(le)?O6t(B,le):le});let X=_,ee=h;return F.length>0&&(une(F[0])?X={...X,...F[0],beforeFetch:cM(f,_.beforeFetch,F[0].beforeFetch),afterFetch:cM(f,_.afterFetch,F[0].afterFetch),onFetchError:cM(f,_.onFetchError,F[0].onFetchError)}:ee={...ee,...F[0],headers:{...Vq(ee.headers)||{},...Vq(F[0].headers)||{}}}),F.length>1&&une(F[1])&&(X={...X,...F[1],beforeFetch:cM(f,_.beforeFetch,F[1].beforeFetch),afterFetch:cM(f,_.afterFetch,F[1].afterFetch),onFetchError:cM(f,_.onFetchError,F[1].onFetchError)}),I6t(J,ee,X)}return x}function I6t(l,...f){var _,h;const x=typeof AbortController=="function";let A={},F={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const J={method:"GET",type:"text",payload:void 0};f.length>0&&(une(f[0])?F={...F,...f[0]}:A=f[0]),f.length>1&&une(f[1])&&(F={...F,...f[1]});const{fetch:X=(h=(_=w6t)==null?void 0:_.fetch)!=null?h:globalThis==null?void 0:globalThis.fetch,initialData:ee,timeout:B}=F,le=uSe(),se=uSe(),pe=uSe(),Ge=P.shallowRef(!1),Qe=P.shallowRef(!1),tt=P.shallowRef(!1),Tt=P.shallowRef(null),dt=P.shallowRef(null),yt=P.shallowRef(null),rt=P.shallowRef(ee||null),bt=P.computed(()=>x&&Qe.value);let vr,Bt;const mr=hn=>{x&&(vr==null||vr.abort(hn),vr=new AbortController,vr.signal.onabort=()=>tt.value=!0,A={...A,signal:vr.signal})},Ut=hn=>{Qe.value=hn,Ge.value=!hn};B&&(Bt=E6t(mr,B,{immediate:!1}));let fn=0;const pn=async(hn=!1)=>{var nn,un;mr(),Ut(!0),yt.value=null,Tt.value=null,tt.value=!1,fn+=1;const qi=fn,Oi={method:J.method,headers:{}},ua=P.toValue(J.payload);if(ua){const hi=Vq(Oi.headers),Fi=Object.getPrototypeOf(ua);!J.payloadType&&ua&&(Fi===Object.prototype||Array.isArray(Fi))&&!(ua instanceof FormData)&&(J.payloadType="json"),J.payloadType&&(hi["Content-Type"]=(nn=D6t[J.payloadType])!=null?nn:J.payloadType),Oi.body=J.payloadType==="json"?JSON.stringify(ua):ua}let ts=!1;const Rn={url:P.toValue(l),options:{...Oi,...A},cancel:()=>{ts=!0}};if(F.beforeFetch&&Object.assign(Rn,await F.beforeFetch(Rn)),ts||!X)return Ut(!1),Promise.resolve(null);let _i=null;return Bt&&Bt.start(),X(Rn.url,{...Oi,...Rn.options,headers:{...Vq(Oi.headers),...Vq((un=Rn.options)==null?void 0:un.headers)}}).then(async hi=>{if(dt.value=hi,Tt.value=hi.status,_i=await hi.clone()[J.type](),!hi.ok)throw rt.value=ee||null,new Error(hi.statusText);return F.afterFetch&&({data:_i}=await F.afterFetch({data:_i,response:hi,context:Rn,execute:pn})),rt.value=_i,le.trigger(hi),hi}).catch(async hi=>{let Fi=hi.message||hi.name;if(F.onFetchError&&({error:Fi,data:_i}=await F.onFetchError({data:_i,error:hi,response:dt.value,context:Rn,execute:pn})),yt.value=Fi,F.updateDataOnError&&(rt.value=_i),se.trigger(hi),hn)throw hi;return null}).finally(()=>{qi===fn&&Ut(!1),Bt&&Bt.stop(),pe.trigger(null)})},sr=fSe(F.refetch);P.watch([sr,fSe(l)],([hn])=>hn&&pn(),{deep:!0});const Ai={isFinished:P.readonly(Ge),isFetching:P.readonly(Qe),statusCode:Tt,response:dt,error:yt,data:rt,canAbort:bt,aborted:tt,abort:mr,execute:pn,onFetchResponse:le.on,onFetchError:se.on,onFetchFinally:pe.on,get:ii("GET"),put:ii("PUT"),post:ii("POST"),delete:ii("DELETE"),patch:ii("PATCH"),head:ii("HEAD"),options:ii("OPTIONS"),json:Qn("json"),text:Qn("text"),blob:Qn("blob"),arrayBuffer:Qn("arrayBuffer"),formData:Qn("formData")};function ii(hn){return(nn,un)=>{if(!Qe.value)return J.method=hn,J.payload=nn,J.payloadType=un,P.isRef(J.payload)&&P.watch([sr,fSe(J.payload)],([qi])=>qi&&pn(),{deep:!0}),{...Ai,then(qi,Oi){return Dt().then(qi,Oi)}}}}function Dt(){return new Promise((hn,nn)=>{C6t(Ge).toBe(!0).then(()=>hn(Ai)).catch(nn)})}function Qn(hn){return()=>{if(!Qe.value)return J.type=hn,{...Ai,then(nn,un){return Dt().then(nn,un)}}}}return F.immediate&&Promise.resolve().then(()=>pn()),{...Ai,then(hn,nn){return Dt().then(hn,nn)}}}function O6t(l,f){return!l.endsWith("/")&&!f.startsWith("/")?`${l}/${f}`:l.endsWith("/")&&f.startsWith("/")?`${l.slice(0,-1)}${f}`:`${l}${f}`}class Ine{constructor(f,_){Q0(this,"title");Q0(this,"message");this.title=f,this.message=_}}var qP=(l=>(l[l.GET=0]="GET",l[l.GET_TEXT=1]="GET_TEXT",l[l.POST=2]="POST",l[l.POST_TEXT=3]="POST_TEXT",l[l.PUT=4]="PUT",l[l.PUT_TEXT=5]="PUT_TEXT",l[l.PATCH=6]="PATCH",l[l.DELETE=7]="DELETE",l))(qP||{});class TM{constructor(f,_,h,x,A="application/json",F){Q0(this,"fetchMethode");Q0(this,"isIpInUrl",f=>/(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/.test(f));this.relativeUrl=_,this.method=h,this.fetchMethode=N6t({baseUrl:f,fetchOptions:{credentials:f.indexOf("localhost")!=-1||this.isIpInUrl(f)?"omit":"include"},options:{immediate:!1,beforeFetch:J=>{A&&(J.options.headers={"Content-Type":A}),F&&(J.options.headers={...J.options.headers,...F})},onFetchError:J=>{let X="Ismeretlen eredetű hiba!",ee=!J.response;return J.response&&(J.response.ok||(ee=!0,X=x.get(J.response.status),X||(X=`${qP[h]} for Call: ${_} with Status: ${J.response.status} has no registered errorMessages!`,console.error(X)))),ee&&window.dispatchEvent(new CustomEvent("fetch-error",{detail:new Ine("Hiba a szerver elérése közben...",X)})),J},afterFetch:J=>J}})}}function xM(l,f,_,h){const x={};return x.payload=P.ref(f),x.routeParams=P.ref(_),x.queryParams=P.ref(h),x.isFetching=P.ref(!1),x.data=P.ref(),x.execute=()=>{x.fetch&&x.fetch.canAbort.value&&x.fetch.abort();const A=`${F6t(l.relativeUrl,x.routeParams.value,x.queryParams.value)}`,F=l.fetchMethode(A);let J;const X=F.isFetching;function ee(){B()&&x.successCallback?x.successCallback(x.data.value):!B()&&x.errorCallback&&(console.log(x.fetch.error.value),x.errorCallback(new Ine(x.fetch.error.value))),x.finallyCallback&&x.finallyCallback()}function B(){return x.fetch.statusCode&&x.fetch.statusCode.value>=200&&x.fetch.statusCode.value<=299}switch(l.method){case 0:J=F.get().json().data;break;case 1:J=F.get().text().data;break;case 4:J=F.put(x.payload).json().data;break;case 5:J=F.put(x.payload).text().data;break;case 3:J=F.post(x.payload).text().data;break;case 2:J=F.post(x.payload).json().data;break;case 6:J=F.patch(x.payload).json().data;break;case 7:J=F.delete(x.payload).json().data;break;default:throw new Error(`Method: ${l.method} is not implemented!`)}P.watch(J,le=>{x.data.value=le}),P.watch(X,le=>{x.isFetching.value=le,le||ee()}),x.fetch=F,F.execute()},x}function F6t(l,f,_){let h=l;return h||(h=""),h.slice(-1)==="/"&&(h=h.substring(0,h.length-1)),f&&Object.keys(f).forEach(x=>{if(h.indexOf(`{${x}}`)===-1)throw window.dispatchEvent(new CustomEvent("fetch-error",{detail:new Ine("Hiba!",`RouteParams: ${x} not found in url: ${h}! Contact the developers!`)})),new Error(`RouteParams: ${x} not found in url: ${h}! Contact the developers!`);const A=f[x];h=h.replace(`{${x}}`,A)}),_&&(h.indexOf("?")===-1&&(h+="?"),Object.keys(_).forEach(x=>{const A=_[x];h+=`${x}=${A}`})),h}const M6t=l=>{if(l=="NaN-NaN-NaN"||!l)return null;const f=new Date(Date.parse(l));return`${f.getFullYear()}-${(f.getMonth()+1).toString().padStart(2,"0")}-${f.getDate().toString().padStart(2,"0")}`},L6t=l=>{if(!l)return"-";const f=new Date(Date.parse(l));return`${f.getFullYear()}-${(f.getMonth()+1).toString().padStart(2,"0")}-${f.getDate().toString().padStart(2,"0")} ${f.getHours()}:${f.getMinutes()}`},R6t=l=>{if(!l)return"-";const f=new Date(Date.parse(l));return`${f.getFullYear()}-${(f.getMonth()+1).toString().padStart(2,"0")}-${f.getDate().toString().padStart(2,"0")} ${f.getHours()}:${f.getMinutes()}`},j6t=l=>{if(!l)return"-";const f=new Date(Date.parse(l));return`${f.getFullYear()}-${(f.getMonth()+1).toString().padStart(2,"0")}-${f.getDate().toString().padStart(2,"0")}`},B6t=l=>{const f=new Date(Date.parse(l)),_=f.getUTCFullYear(),h=String(f.getUTCMonth()+1).padStart(2,"0"),x=String(f.getUTCDate()).padStart(2,"0"),A=String(f.getUTCHours()).padStart(2,"0"),F=String(f.getUTCMinutes()).padStart(2,"0"),J=String(f.getUTCSeconds()).padStart(2,"0");return`${_}-${h}-${x}T${A}:${F}:${J}Z`},$6t=l=>{const f=new Date(Date.parse(l)),_=f.getUTCFullYear(),h=String(f.getUTCMonth()+1).padStart(2,"0"),x=String(f.getUTCDate()).padStart(2,"0");return`${_}-${h}-${x}`},J6t=l=>{const f=new Date(Date.parse(l)),_=f.getFullYear(),h=String(f.getMonth()+1).padStart(2,"0"),x=String(f.getDate()).padStart(2,"0");return`${_}-${h}-${x}`},$Ve=l=>{if(!l)return null;const f=new Date(l);if(isNaN(f))return null;const _=f.getFullYear(),h=String(f.getMonth()+1).padStart(2,"0"),x=String(f.getDate()).padStart(2,"0"),A=String(f.getHours()).padStart(2,"0"),F=String(f.getMinutes()).padStart(2,"0");return`${_}-${h}-${x} ${A}:${F}`},tV=l=>{if(!l)return null;const f=new Date(l);if(isNaN(f))return null;const _=f.getFullYear(),h=String(f.getMonth()+1).padStart(2,"0"),x=String(f.getDate()).padStart(2,"0");return`${_}-${h}-${x}`},fne=(l,f=!1)=>{if(!l)return null;const _=new Date(l);if(isNaN(_))return null;if(f)return tV(_)+"T00:00:00.000Z";const h=_.getUTCFullYear(),x=String(_.getUTCMonth()+1).padStart(2,"0"),A=String(_.getUTCDate()).padStart(2,"0"),F=String(_.getUTCHours()).padStart(2,"0"),J=String(_.getUTCMinutes()).padStart(2,"0"),X=String(_.getUTCSeconds()).padStart(2,"0");return`${h}-${x}-${A}T${F}:${J}:${X}.000Z`};function z6t(l){return new JVe(l)}class JVe{constructor(f){Q0(this,"getPostsConfig");Q0(this,"getImagesConfig");Q0(this,"sites");this.apiurl=f,this.getPostsConfig=xM(new TM(this.apiurl,"/admin/Widgets/{name}",qP.GET,new Map([[400,"Search Posts Widget konfiguráció lekérése ismeretlen hiba!"],[500,"Search Posts Widget konfiguráció lekérése ismeretlen hiba!"]])),void 0,{name:""},void 0),this.getImagesConfig=xM(new TM(this.apiurl,"/admin/Widgets/{name}",qP.GET,new Map([[400,"Widget konfiguráció lekérése ismeretlen hiba!"],[500,"Widget konfiguráció lekérése ismeretlen hiba!"]])),void 0,{name:""},void 0),this.sites=xM(new TM(this.apiurl,"/admin/sites",qP.GET,new Map([[400,"Site lekérése ismeretlen hiba!"],[500,"Site lekérése ismeretlen hiba!"]])),void 0,void 0,void 0)}}const q6t=(l,f=500)=>{let _;return()=>{clearTimeout(_),_=setTimeout(()=>{l()},f)}};function V6t(l){return new zVe(l)}class zVe{constructor(f){Q0(this,"baseUrl");Q0(this,"searchPosts");Q0(this,"partnersDetailsByIds");this.articleEditorBackendUrl=f,this.baseUrl=this.articleEditorBackendUrl,this.searchPosts=xM(new TM(this.baseUrl,"admin/Posts/searchPosts",qP.POST,new Map([[400,"Cikkek lekérdezése ismeretlen hiba!"],[500,"Cikkek lekérdezése ismeretlen hiba!"]])),{},void 0,void 0),this.partnersDetailsByIds=xM(new TM(this.baseUrl,"api/Partners/detailsByIds",qP.POST,new Map([[400,"BrandChannelek lekérdezése ismeretlen hiba!"],[500,"BrandChannelek lekérdezése ismeretlen hiba!"]])),{},void 0,void 0)}}const U6t={class:"d-flex flex-column w-100 gap-2"},W6t={class:"d-flex flex-row justify-content-between p-2"},H6t={key:0,class:"d-flex flex-column gap-2"},G6t={class:"d-flex flex-row justify-content-between"},Y6t={class:"d-flex flex-row justify-content-between"},X6t=["onClick"],Q6t={key:0,class:"d-flex flex-row gap-3"},Z6t={class:"d-flex flex-column w-100"},K6t=["disabled","value"],eAt=["disabled","value"],tAt={class:"d-flex gap-2"},rAt={key:1,class:"d-flex justify-content-around flex-wrap gap-4 p-2"},nAt=["onClick"],iAt={key:2,class:"d-flex justify-content-around flex-wrap gap-4 p-2 cc-years"},aAt=["onClick"],RTe=P.defineComponent({__name:"CalendarComponent",props:{init:{},dateOnly:{type:Boolean}},emits:["changed"],setup(l,{emit:f}){const _=l,h=f,x=P.ref([]),A=P.ref(["H","K","Sz","Cs","P","Sz","V"]),F=P.ref(["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"]),J=P.ref([2025]),X=P.ref(""),ee=P.ref(2025),B=P.ref({local:null,utc:null}),le=P.ref(new Date),se=P.ref("00"),pe=P.ref("00"),Ge=P.ref(!1),Qe=P.ref("calendar");P.onMounted(()=>{tt(_.init?_.init:null),Tt(_.init?_.init:new Date)});const tt=yt=>{if(yt){if(yt.setSeconds(0),_.dateOnly){const rt=new Date(yt);rt.setHours(0),rt.setMinutes(0),rt.setSeconds(0),B.value.local=rt,se.value="00",pe.value="00",B.value.utc=fne(rt,!0)}else B.value.local=new Date(yt),se.value=yt.getHours().toString().padStart(2,"0"),pe.value=yt.getMinutes().toString().padStart(2,"0"),B.value.utc=fne(yt);Ge.value=!0}else se.value="00",pe.value="00",B.value={local:null,utc:null},Ge.value=!1},Tt=yt=>{let rt=new Date(yt);rt.setSeconds(0),le.value=new Date(rt),X.value=F.value[rt.getMonth()],ee.value=rt.getFullYear(),J.value=Array.from({length:60},(sr,Ai)=>rt.getFullYear()-29+Ai);const bt=rt.getMonth();rt.setDate(1);const vr=[{days:[]}];let Bt=vr[0],mr=1;const Ut=sr=>sr.getDay()==0?6:sr.getDay()-1;let fn=Ut(rt);for(let sr=0;sr<fn;sr++)Bt.days.push({label:"",isCurrent:!1,isSelected:!1,isWeekend:!1,isBlank:!0,number:sr});const pn=new Date;for(;rt.getMonth()===bt;)fn=Ut(rt),fn==0&&(Bt={days:[]},vr.push(Bt)),Bt.days.push({label:mr.toString(),isCurrent:rt.getFullYear()==pn.getFullYear()&&rt.getMonth()==pn.getMonth()&&rt.getDate()==pn.getDate(),isSelected:B.value.local?B.value.local.getFullYear()==rt.getFullYear()&&B.value.local.getMonth()==rt.getMonth()&&B.value.local.getDate()==rt.getDate():!1,isWeekend:fn==5||fn==6,isBlank:!1,number:mr}),mr++,rt.setDate(rt.getDate()+1);for(fn=Ut(rt);fn!=6;)Bt.days.push({label:mr.toString(),isCurrent:!1,isSelected:!1,isWeekend:!1,isBlank:!0,number:0}),rt.setDate(rt.getDate()+1),fn=Ut(rt);x.value=vr},dt=()=>{let yt=new Date;yt.setHours(0),yt.setMinutes(0),yt.setSeconds(0),tt(null),Tt(yt),h("changed",B.value)};return(yt,rt)=>(P.openBlock(),P.createElementBlock("div",U6t,[P.createElementVNode("div",W6t,[P.createElementVNode("div",{class:"cc-btn",onClick:rt[0]||(rt[0]=()=>{let bt=new Date(le.value);bt.setMonth(le.value.getMonth()-1),Tt(bt)})}," < "),P.createElementVNode("div",{class:"cc-btn",onClick:rt[1]||(rt[1]=bt=>Qe.value="years")},P.toDisplayString(ee.value),1),P.createElementVNode("div",{class:"cc-btn",onClick:rt[2]||(rt[2]=bt=>Qe.value="months")},P.toDisplayString(X.value),1),P.createElementVNode("div",{class:"cc-btn",onClick:rt[3]||(rt[3]=()=>{let bt=new Date(le.value);bt.setMonth(le.value.getMonth()+1),Tt(bt)})}," > ")]),Qe.value=="calendar"?(P.openBlock(),P.createElementBlock("div",H6t,[P.createElementVNode("div",G6t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(A.value,bt=>(P.openBlock(),P.createElementBlock("div",null,P.toDisplayString(bt),1))),256))]),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(x.value,bt=>(P.openBlock(),P.createElementBlock("div",Y6t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(bt.days,vr=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(["d-flex flex-row justify-content-center cc-day",{"cc-day-weekend":vr.isWeekend,"cc-day-blank":vr.isBlank,"cc-day-current":vr.isCurrent,"cc-day-selected":vr.isSelected}]),onClick:()=>{let Bt=new Date(le.value.getFullYear(),le.value.getMonth(),vr.number,Number.parseInt(se.value),Number.parseInt(pe.value));tt(Bt),Tt(Bt)}},P.toDisplayString(vr.label),11,X6t))),256))]))),256)),yt.dateOnly?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",Q6t,[P.createElementVNode("div",null,P.toDisplayString(se.value)+":"+P.toDisplayString(pe.value),1),P.createElementVNode("div",Z6t,[P.createElementVNode("input",{type:"range",id:"slider",min:"0",max:"23",disabled:!Ge.value,value:se.value,onInput:rt[4]||(rt[4]=bt=>{B.value.local.setHours(bt.target.value),tt(B.value.local)})},null,40,K6t),P.createElementVNode("input",{type:"range",id:"slider",min:"0",max:"59",disabled:!Ge.value,value:pe.value,onInput:rt[5]||(rt[5]=bt=>{B.value.local.setMinutes(bt.target.value),tt(B.value.local)})},null,40,eAt)])])),P.createElementVNode("div",tAt,[P.createElementVNode("button",{type:"button",class:"btn btn-outline-secondary w-100",onClick:dt},"Töröl"),P.createElementVNode("button",{type:"button",class:"btn btn-primary w-100",onClick:rt[6]||(rt[6]=bt=>h("changed",B.value))},"Beállít")])])):P.createCommentVNode("",!0),Qe.value=="months"?(P.openBlock(),P.createElementBlock("div",rAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(F.value,(bt,vr)=>(P.openBlock(),P.createElementBlock("div",{class:"cc-btn-light",onClick:Bt=>{let mr=new Date(le.value);mr.setMonth(vr),Tt(mr),Qe.value="calendar",Bt.stopPropagation()}},P.toDisplayString(bt),9,nAt))),256))])):P.createCommentVNode("",!0),Qe.value=="years"?(P.openBlock(),P.createElementBlock("div",iAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(J.value,bt=>(P.openBlock(),P.createElementBlock("div",{class:"cc-btn-light",onClick:vr=>{let Bt=new Date(le.value);Bt.setFullYear(bt),Tt(Bt),Qe.value="calendar",vr.stopPropagation()}},P.toDisplayString(bt),9,aAt))),256))])):P.createCommentVNode("",!0)]))}}),sAt={class:"d-flex flex-column flex-md-row gap-2"},oAt={class:"d-flex flex-row gap-2 w-100"},cAt={class:"vf-input-group"},lAt={key:0,class:"vf-floating-wrapper"},uAt={class:"vf-floating-label vf-floating-label-visible vf-floating-label-success"},fAt=["value","placeholder"],ZSe=P.defineComponent({__name:"DateTimePicker",props:{placeholder:{},initial:{},dateOnly:{type:Boolean}},emits:["changed","calendar"],setup(l,{emit:f}){const _=l,h=f,x=P.ref(null),A=P.ref(null),F=P.ref(""),J=P.ref(null),X=P.ref(null),ee=P.ref(null),B=Qe=>{X.value&&!X.value.contains(Qe.target)&&(se.value=!1)};P.onMounted(()=>{_.initial&&(x.value=_.initial.local,A.value=_.initial.utc,le()),document.addEventListener("click",B)}),P.onUnmounted(()=>{document.removeEventListener("click",B)});const le=()=>{const Qe=_.dateOnly?tV(x.value):$Ve(x.value);F.value=Qe??""},se=P.ref(!1),pe=Qe=>{se.value?se.value=!1:(se.value=!0,P.nextTick(()=>{const tt=X.value,Tt=J.value,dt=ee.value,yt=Tt.getBoundingClientRect();tt.style.left=yt.left+yt.width+dt.getBoundingClientRect().width-tt.getBoundingClientRect().width+15+"px",tt.style.top=yt.top+yt.height+"px"})),Qe&&Qe.stopPropagation()},Ge=Qe=>{const tt=new Date(Date.parse(Qe)),Tt=fne(tt,_.dateOnly);if(!Tt){A.value=null,P.nextTick(()=>A.value="");return}A.value=Tt,x.value=tt,le(),h("changed",{local:x.value,utc:A.value})};return P.watch(se,()=>{h("calendar",se.value)}),(Qe,tt)=>(P.openBlock(),P.createElementBlock("div",sAt,[P.createElementVNode("div",oAt,[P.createElementVNode("div",cAt,[A.value?(P.openBlock(),P.createElementBlock("div",lAt,[P.createElementVNode("span",uAt,P.toDisplayString(Qe.placeholder),1)])):P.createCommentVNode("",!0),P.createElementVNode("input",{type:"text",id:"dateTimeInputText",ref_key:"dateTimeInputTextRef",ref:J,class:"vf-input-field",value:F.value,onChange:tt[0]||(tt[0]=Tt=>Ge(Tt.target.value)),placeholder:Qe.placeholder},null,40,fAt)]),P.createElementVNode("div",{ref_key:"iconBtn",ref:ee,class:"dateTime-picker__iconbtn",onClick:pe},tt[2]||(tt[2]=[P.createElementVNode("i",{class:"fa-regular fa-calendar"},null,-1)]),512)]),se.value?(P.openBlock(),P.createElementBlock("div",{key:0,ref_key:"calendarRef",ref:X,class:"dateTime-picker__popup"},[P.createVNode(RTe,{init:x.value,dateOnly:Qe.dateOnly,onChanged:tt[1]||(tt[1]=Tt=>{x.value=Tt.local,A.value=Tt.utc,pe(null),le(),h("changed",{local:x.value,utc:A.value})})},null,8,["init","dateOnly"])],512)):P.createCommentVNode("",!0)]))}}),_At=["id"],pAt=["id"],dAt={class:"dtrp-label"},mAt=["id"],gAt="Törlés",hAt="Beállítás",vAt=P.defineComponent({__name:"DateRangePicker",props:{id:{},label:{}},emits:["changed"],setup(l,{emit:f}){const _=l,h=f,x=P.ref(!1),A=async()=>{x.value=!x.value,x.value&&await J()},F=P.reactive({top:"0px",left:"0px",zIndex:1e3}),J=async()=>{await P.nextTick();const rt=document.getElementById(`${_.id}-btn`).getBoundingClientRect(),bt=document.getElementById(`${_.id}-popup`);if(!bt)return;const vr=bt.getBoundingClientRect(),Bt=window.innerWidth;F.top=rt.top+rt.height+"px",rt.left<Bt/3?F.left=rt.left+"px":rt.left>2*Bt/3?F.left=rt.left+rt.width-vr.width+"px":F.left=rt.right-rt.width/2-vr.width/2+"px"},X=P.reactive({utc:null,local:null}),ee=P.reactive({utc:null,local:null}),B=P.ref(""),le=async()=>{X.local||ee.local?B.value=`'${tV(X.local)??""}'-'${tV(ee.local)??""}'`:B.value=_.label,await J()},se=yt=>{const rt=document.getElementById(`${_.id}-popup`);rt&&!rt.contains(yt.target)&&(x.value=!1)};let pe=!1;P.onMounted(()=>{le()}),P.onUnmounted(()=>{pe&&window.removeEventListener("click",se)});const Ge=()=>{X.utc=null,X.local=null,ee.local=null,ee.utc=null,le(),x.value=!1,h("changed",{fromUtc:X.utc,toUtc:ee.utc})},Qe=()=>{le(),x.value=!1,h("changed",{fromUtc:X.utc,toUtc:ee.utc})},tt=()=>{pe||setTimeout(()=>{window.addEventListener("click",se),pe=!0},100)},Tt=()=>{pe&&setTimeout(()=>{window.removeEventListener("click",se),pe=!1},100)},dt=yt=>{yt?Tt():tt()};return P.watch(x,()=>{x.value?tt():Tt()}),(yt,rt)=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[P.createElementVNode("div",{id:yt.id,class:"dtrp-flex"},[P.createElementVNode("button",{id:yt.id+"-btn",class:"btn btn-outline-secondary dtrp-flex dtrp-button",type:"button",onClick:A},[P.createElementVNode("div",dAt,P.toDisplayString(B.value),1)],8,pAt)],8,_At),x.value?(P.openBlock(),P.createElementBlock("div",{key:0,id:yt.id+"-popup",class:"dtrp-popup d-flex flex-column gap-2",style:P.normalizeStyle(F)},[P.createVNode(ZSe,{placeholder:"Ettől",id:yt.id+"-from",onChanged:rt[0]||(rt[0]=bt=>{X.local=bt.local,X.utc=bt.utc}),dateOnly:!0,initial:X,onCalendar:dt},null,8,["id","initial"]),P.createVNode(ZSe,{placeholder:"Eddig",id:yt.id+"-to",onChanged:rt[1]||(rt[1]=bt=>{ee.local=bt.local,ee.utc=bt.utc}),dateOnly:!0,initial:ee,onCalendar:dt},null,8,["id","initial"]),P.createElementVNode("div",{class:"d-flex w-100 gap-2"},[P.createElementVNode("button",{class:"btn btn-outline-secondary w-50",onClick:Ge},P.toDisplayString(gAt)),P.createElementVNode("button",{class:"btn btn-outline-primary w-50",onClick:Qe},P.toDisplayString(hAt))])],12,mAt)):P.createCommentVNode("",!0)],64))}}),yAt={class:"fltrctrl-container"},bAt=["placeholder","value"],SAt={key:1,class:"d-flex flex-row input-group align-items-center"};class TAt{constructor(f,_,h){Q0(this,"type");this.key=f,this.placeholder=_,this.filtered=h,this.type="text"}}class xAt{constructor(f,_,h,x,A,F){Q0(this,"type");this.key=f,this.label=_,this.options=h,this.filterevent=x,this.onfiltered=A,this.filtered=F,this.type="dropdown"}}class kAt{constructor(f,_,h,x,A){Q0(this,"type");this.key=f,this.label=_,this.filtered=h,this.defFrom=x,this.defTil=A,this.type="date"}}const _Se=P.ref({}),jTe=P.defineComponent({__name:"FilterControl",props:{item:{}},setup(l){const f=l;P.onMounted(()=>{var h;if(f.item.type=="dropdown"){const x=f.item;_.value=(h=x.options.value.find(A=>A.id==f.item.defaultv))==null?void 0:h.id}});const _=P.ref(void 0);return(h,x)=>(P.openBlock(),P.createElementBlock("div",yAt,[h.item.type=="text"?(P.openBlock(),P.createElementBlock("input",{key:0,type:"text",class:"form-control",placeholder:h.item.placeholder,value:h.item.defaultv??"",onInput:x[0]||(x[0]=A=>h.item.filtered(h.item.key,A.target.value))},null,40,bAt)):P.createCommentVNode("",!0),h.item.type=="date"?(P.openBlock(),P.createElementBlock("div",SAt,[P.createVNode(vAt,{id:h.item.key+"-dtrp",label:h.item.label,onChanged:x[1]||(x[1]=A=>{_Se.value.from=A.fromUtc,_Se.value.until=A.toUtc,h.item.filtered(h.item.key,_Se.value)})},null,8,["id","label"])])):P.createCommentVNode("",!0),h.item.type=="dropdown"?(P.openBlock(),P.createBlock(uV,{key:2,selected:_.value,options:P.ref(h.item.options),filterevent:h.item.filterevent,onFiltered:x[2]||(x[2]=A=>{h.item.onfiltered&&h.item.onfiltered(A)}),id:h.item.key,label:h.item.label,onSelected:x[3]||(x[3]=A=>h.item.filtered(h.item.key,A.id))},null,8,["selected","options","filterevent","id","label"])):P.createCommentVNode("",!0)]))}}),CAt=["title"],I8=P.defineComponent({__name:"IconButton",props:{icon:{},active:{type:Boolean},big:{type:Boolean},title:{}},emits:["click"],setup(l,{emit:f}){const _=l,h=P.computed(()=>`${_.icon} ${_.big?"ib-button-big":""}`),x=f;return(A,F)=>(P.openBlock(),P.createElementBlock("div",{onClick:F[0]||(F[0]=J=>x("click")),class:"ib-container"},[P.createElementVNode("div",{class:P.normalizeClass(["ib-button",{"ib-button-active":A.active}]),title:A.title},[P.createElementVNode("i",{class:P.normalizeClass(h.value)},null,2)],10,CAt)]))}}),EAt={class:"pc-container"},wAt=["value","max"],BTe=P.defineComponent({__name:"PaginatorControl",props:{settings:{}},emits:["pagesize","page"],setup(l,{emit:f}){const _=l,h=f,x=()=>{let ee=P.ref([]);return _.settings.value.sizes.forEach(B=>ee.value.push({label:B.toString(),id:B.toString()})),ee},A=P.ref(1);P.watch(()=>_.settings.value,()=>{A.value=1});const F=P.computed(()=>Math.floor(_.settings.value.total/_.settings.value.pagesize)+1),J=()=>{A.value>1&&(A.value-=1,h("page",A.value))},X=()=>{A.value<F.value&&(A.value+=1,h("page",A.value))};return(ee,B)=>(P.openBlock(),P.createElementBlock("div",EAt,[P.createElementVNode("button",{class:"btn btn-outline-secondary",onClick:J},"<"),P.createElementVNode("input",{class:"form-control pc-input",type:"number",value:A.value,min:"1",max:F.value,onChange:B[0]||(B[0]=le=>ee.$emit("page",le.target.value))},null,40,wAt),P.createTextVNode("/"+P.toDisplayString(F.value)+" ",1),P.createElementVNode("button",{class:"btn btn-outline-secondary",onClick:X},">"),P.createVNode(uV,{opentop:!0,class:"pc-dropdown",id:"pagecount",label:"10",selected:ee.settings.value.pagesize.toString(),options:x(),onSelected:B[1]||(B[1]=le=>{A.value=1,ee.$emit("pagesize",parseInt(le.id))})},null,8,["selected","options"])]))}}),DAt={class:"form-check"},AAt=["name","id","checked"],PAt=["for"],$Te=P.defineComponent({__name:"RadioButton",props:{group:{},label:{},id:{},selected:{type:Boolean}},emits:["selected"],setup(l){return(f,_)=>(P.openBlock(),P.createElementBlock("div",DAt,[P.createElementVNode("input",{class:"form-check-input",type:"radio",name:f.group,id:f.id,checked:f.selected,onChange:_[0]||(_[0]=h=>f.$emit("selected",f.id))},null,40,AAt),P.createElementVNode("label",{class:"form-check-label",for:f.id},P.toDisplayString(f.label),9,PAt)]))}}),NAt={class:"d-flex flex-column gap-2 justify-content-around"},qVe=P.defineComponent({__name:"RadioButtonGroup",props:{group:{},items:{}},emits:["selected"],setup(l){return(f,_)=>(P.openBlock(),P.createElementBlock("div",NAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.items,h=>(P.openBlock(),P.createBlock($Te,{key:h.id,id:h.id,label:h.label,group:f.group,selected:h.selected,onSelected:_[0]||(_[0]=x=>f.$emit("selected",x))},null,8,["id","label","group","selected"]))),128))]))}}),IAt={key:0,class:"spinner-border",role:"status"},JTe=P.defineComponent({__name:"SpinningProgress",props:{loading:{type:Boolean}},setup(l){return(f,_)=>f.loading?(P.openBlock(),P.createElementBlock("div",IAt,_[0]||(_[0]=[P.createElementVNode("span",{class:"visually-hidden"},"Loading...",-1)]))):P.createCommentVNode("",!0)}}),OAt={key:0,class:"t2l-table-view t2l-table-header-label"},FAt={key:0,class:"t2l-select"},MAt={key:1,class:"t2l-cell"},LAt={class:"t2l-table-view t2l-table-header-filter"},RAt={key:0,class:"t2l-select"},jAt={key:1,class:"t2l-cell"},BAt={class:"t2l-table-view t2l-rows"},$At={key:0,class:"t2l-select"},JAt=["id","onChange"],zAt=["innerHTML"],qAt={key:1,class:"t2l-cell t2l-actions"},VAt=["title","disabled","onClick"],UAt={class:"t2l-card-view t2l-card-filters"},WAt={class:"t2l-card-filter-order"},HAt={class:"t2l-card-filter-search"},GAt={class:"t2l-card-view t2l-rows"},YAt={key:0,class:"t2l-card-select"},XAt=["id","onChange"],QAt={key:0,class:"t2l-property"},ZAt={class:"t2l-label"},KAt=["innerHTML"],e4t={class:"d-flex align-items-center"},t4t={key:2,class:"d-flex justify-content-center t2l-footer"},VVe=P.defineComponent({__name:"TableToList",props:{items:{},config:{}},emits:["pagesize","page"],setup(l){const f=l,_=P.computed(()=>f.config.columns.filter(ee=>ee.visible!=!1)),h=P.computed(()=>f.config.columns.filter(ee=>ee.visible!=!1&&ee.filter)),x=P.computed(()=>_.value.filter(ee=>ee.sort&&ee.sort.active&&ee.sort.active.value)),A=P.computed(()=>Math.ceil(_.value.length/f.config.smColCount)),F=(ee,B)=>{var le=ee-1+(B-1)*A.value;return le<_.value.length?_.value[le]:null},J=(ee,B)=>ee.converter?ee.converter(B[ee.property],B):B[ee.property],X=ee=>{if(ee.sort&&ee.sort.active){let B=!ee.sort.active.value;f.config.columns.forEach(le=>{le.sort&&le.sort.active&&(le.sort.active.value=!1)}),ee.sort.active.value=B,ee.sort.callback(B?ee.property:"")}};return(ee,B)=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[ee.config.compact?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",OAt,[ee.config.selectableId?(P.openBlock(),P.createElementBlock("span",FAt)):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(_.value,le=>{var se,pe;return P.openBlock(),P.createElementBlock("span",{class:"t2l-cell gap-2",key:le.property},[le.sort?(P.openBlock(),P.createBlock(I8,{key:0,icon:le.sort.icon,onClick:Ge=>X(le),active:(pe=(se=le.sort)==null?void 0:se.active)==null?void 0:pe.value},null,8,["icon","onClick","active"])):P.createCommentVNode("",!0),P.createTextVNode(" "+P.toDisplayString(le.label),1)])}),128)),ee.config.actionHeader?(P.openBlock(),P.createElementBlock("span",MAt,P.toDisplayString(ee.config.actionHeader),1)):P.createCommentVNode("",!0)])),P.createElementVNode("div",LAt,[ee.config.selectableId?(P.openBlock(),P.createElementBlock("span",RAt)):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(_.value,le=>(P.openBlock(),P.createElementBlock("span",{class:"t2l-cell",key:le.label},[le.filter?(P.openBlock(),P.createBlock(jTe,{key:0,item:le.filter},null,8,["item"])):P.createCommentVNode("",!0)]))),128)),ee.config.actionHeader?(P.openBlock(),P.createElementBlock("span",jAt)):P.createCommentVNode("",!0)]),P.createElementVNode("div",BAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(ee.items,le=>(P.openBlock(),P.createElementBlock("div",{key:le,class:"t2l-row"},[ee.config.selectableId?(P.openBlock(),P.createElementBlock("div",$At,[P.createElementVNode("input",{class:"form-check-input",type:"checkbox",id:le[ee.config.selectableId],onChange:se=>le.selected=!le.selected},null,40,JAt)])):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(_.value,se=>(P.openBlock(),P.createElementBlock("div",{class:"t2l-cell",key:se.property,innerHTML:J(se,le)},null,8,zAt))),128)),ee.config.actions?(P.openBlock(),P.createElementBlock("div",qAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(ee.config.actions,se=>(P.openBlock(),P.createElementBlock("button",{key:se,type:"button",class:"btn btn-outline-secondary",title:se.label,disabled:!se.enabled(le),onClick:pe=>se.command(le)},[P.createElementVNode("i",{class:P.normalizeClass(se.icon)},null,2)],8,VAt))),128))])):P.createCommentVNode("",!0)]))),128))]),P.createElementVNode("div",UAt,[P.createElementVNode("div",WAt,[P.createVNode(MTe,{id:"card-filter-order",default:{icon:"fa-solid fa-chevron-down",label:"rendezés"},selected:x.value.length>0?x.value[0].property:"",enabled:ee.config.sortEnabled,options:P.ref(_.value.filter(le=>le.sort).map(le=>({icon:le.sort.icon,label:le.sort.label,value:le.property,callback:le.sort.callback})))},null,8,["selected","enabled","options"])]),P.createElementVNode("div",HAt,[P.createVNode(LTe,{items:h.value.map(le=>({filter:le.filter,icon:le.filterIcon,label:le.label}))},null,8,["items"])])]),P.createElementVNode("div",GAt,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(ee.items,(le,se)=>(P.openBlock(),P.createElementBlock("div",{class:"t2l-row",key:se},[ee.config.selectableId?(P.openBlock(),P.createElementBlock("div",YAt,[P.createElementVNode("input",{class:"form-check-input",type:"checkbox",id:le[ee.config.selectableId],onChange:pe=>le.selected=!le.selected},null,40,XAt)])):P.createCommentVNode("",!0),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(ee.config.smColCount,pe=>(P.openBlock(),P.createElementBlock("div",{class:"t2l-card-col",key:pe},[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(A.value,Ge=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:Ge},[F(Ge,pe)?(P.openBlock(),P.createElementBlock("div",QAt,[P.createElementVNode("span",ZAt,P.toDisplayString(F(Ge,pe).label),1),P.createElementVNode("div",{innerHTML:J(F(Ge,pe),le)},null,8,KAt)])):P.createCommentVNode("",!0)],64))),128))]))),128)),P.createElementVNode("div",e4t,[f.config.actions?(P.openBlock(),P.createBlock(Nne,{key:0,item:le,options:f.config.actions,label:"...",id:se.toString(),right:!0},null,8,["item","options","id"])):P.createCommentVNode("",!0)])]))),128))]),ee.config.paginatorSettings?(P.openBlock(),P.createBlock(BTe,{key:1,settings:ee.config.paginatorSettings,onPagesize:B[0]||(B[0]=le=>ee.$emit("pagesize",le)),onPage:B[1]||(B[1]=le=>ee.$emit("page",le))},null,8,["settings"])):P.createCommentVNode("",!0),ee.config.paginatorSettings?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",t4t," Elemek: "+P.toDisplayString(f.items.length),1))],64))}}),r4t={class:"d-flex flex flex-row"},n4t={key:1,class:"d-flex flex-column gap-2 options-body flex-grow-1"},i4t={class:"d-flex flex-grow-1 flex-column"},a4t={class:"d-flex flex-row"},s4t={class:"d-flex align-items-end"},o4t=["disabled"],UVe=P.defineComponent({__name:"TableToListOptions",props:{colCount:{},options:{},config:{}},emits:["save"],setup(l,{emit:f}){const _=l,h=P.ref([]);P.onMounted(()=>{h.value=_.options,B()});const x=P.computed(()=>_.colCount!=0?Math.ceil(_.options.length/_.colCount):0),A=(le,se)=>{var pe=_.options[(le-1)*x.value+se-1];return pe},F=()=>{J("save",h.value)},J=f,X=P.ref(!1),ee=P.ref(!0),B=()=>{ee.value=h.value.filter(le=>le.checked).length<=1};return(le,se)=>(P.openBlock(),P.createElementBlock("div",r4t,[X.value?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",{key:0,class:"d-flex flex-row align-items-center gap-2 options-header justify-content-start",onClick:se[0]||(se[0]=pe=>X.value=!X.value)},se[3]||(se[3]=[P.createElementVNode("i",{class:"fa-solid fa-cog"},null,-1),P.createElementVNode("div",{class:"options-header-label"},"beállítások",-1)]))),X.value?(P.openBlock(),P.createElementBlock("div",n4t,[se[5]||(se[5]=P.createElementVNode("div",{class:"options-header-label"},"Táblázat tulajdonságai",-1)),P.createElementVNode("div",i4t,[P.createVNode(eV,{id:"compact",label:"Kompakt",checked:!!le.config.compact,onChanged:se[1]||(se[1]=pe=>le.config.compact=pe.checked)},null,8,["checked"])]),se[6]||(se[6]=P.createElementVNode("div",{class:"options-header-label"},"Látható oszlopok",-1)),P.createElementVNode("div",a4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(le.colCount,pe=>(P.openBlock(),P.createElementBlock("div",{class:"d-flex flex-grow-1 flex-column",key:pe},[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(x.value,Ge=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:Ge},[A(pe,Ge)?(P.openBlock(),P.createBlock(eV,{key:0,id:A(pe,Ge).property,label:A(pe,Ge).label,checked:A(pe,Ge).checked,onChanged:se[2]||(se[2]=Qe=>{h.value.find(tt=>tt.property==Qe.id).checked=Qe.checked,B()})},null,8,["id","label","checked"])):P.createCommentVNode("",!0)],64))),128))]))),128)),P.createElementVNode("div",s4t,[P.createElementVNode("button",{class:"btn btn-outline-secondary",type:"button",onClick:F,disabled:ee.value},se[4]||(se[4]=[P.createElementVNode("i",{class:"fa-solid fa-save"},null,-1)]),8,o4t)])])])):P.createCommentVNode("",!0)]))}}),c4t={class:"tlb-container d-flex flex-column flex-grow-1"},l4t={class:"d-flex flex-row tlb-item"},u4t={class:"d-flex flex-column flex-grow-1 flex-sm-row justify-content-between tlb-item"},f4t=["id"],_4t={key:0,class:"d-flex id"},p4t={class:"d-flex flex-row align-items-center tlb-children-container"},WVe=P.defineComponent({__name:"TextListBox",props:{items:{}},emits:["deleted"],setup(l){return(f,_)=>{const h=P.resolveComponent("TextListBox",!0);return P.openBlock(),P.createElementBlock("div",c4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.items,x=>(P.openBlock(),P.createElementBlock("div",{class:"d-flex flex-column",key:x.id},[P.createElementVNode("div",l4t,[P.createElementVNode("div",u4t,[P.createElementVNode("div",{class:"d-flex flex-grow-1",id:x.id},P.toDisplayString(x.label),9,f4t),x.showId?(P.openBlock(),P.createElementBlock("div",_4t,P.toDisplayString(x.id),1)):P.createCommentVNode("",!0)]),x.hideDelete?P.createCommentVNode("",!0):(P.openBlock(),P.createBlock(I8,{key:0,icon:"fa-solid fa-trash",onClick:A=>f.$emit("deleted",x.id)},null,8,["onClick"]))]),P.createElementVNode("div",p4t,[x.childrend?(P.openBlock(),P.createBlock(h,{key:0,items:x.childrend,showId:x.showId,hideDelete:x.hideDelete},null,8,["items","showId","hideDelete"])):P.createCommentVNode("",!0)])]))),128))])}}}),d4t={key:0,class:"toast-container position-fixed bottom-0 start-50 translate-middle-x p-4 toast-zindex"},m4t={class:"toast-header"},g4t={class:"me-auto"},h4t={class:"text-body-secondary"},v4t=["onClick"],y4t=["innerHTML"],vze=500,zTe=P.defineComponent({__name:"ToastComponent",props:{defaultDisplayDuration:{}},setup(l,{expose:f}){const _=l,h=P.ref([]);return f({addToast:A=>{A.displayDuration||(A.displayDuration=_.defaultDisplayDuration),A.id=new Date,h.value.filter(function(F){return F.id!==A.id}),h.value.push(A)}}),setInterval(()=>{h.value=h.value.map(A=>(A.displayDuration-=vze,A)),h.value=h.value.filter(A=>A.displayDuration>0)},vze),(A,F)=>h.value.length>0?(P.openBlock(),P.createElementBlock("div",d4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(h.value,J=>(P.openBlock(),P.createElementBlock("div",{key:J.message,class:P.normalizeClass(["toast d-block",{"toast-info":J.type==="info","toast-success":J.type==="success","toast-warning":J.type==="warning","toast-error":J.type==="error"}]),role:"alert","aria-live":"assertive","aria-atomic":"true"},[P.createElementVNode("div",m4t,[P.createElementVNode("strong",g4t,P.toDisplayString(J.title),1),P.createElementVNode("small",h4t,P.toDisplayString(J.id.toLocaleTimeString()),1),P.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close",onClick:X=>h.value=h.value.filter(ee=>ee.id!==J.id)},null,8,v4t)]),P.createElementVNode("div",{class:"toast-body",innerHTML:J.message},null,8,y4t)],2))),128))])):P.createCommentVNode("",!0)}}),HVe=P.defineComponent({__name:"ToastWrapper",setup(l){const f=P.ref(),_=[{id:"toast-notification-message",handler:h=>{let x=h.detail;f.value.addToast({title:x.title,message:x.message,type:x.severity,displayDuration:x.displayDuration?x.displayDuration:5e3})}},{id:"fetch-error",handler:h=>{let x=h.detail;f.value.addToast({title:x.title,message:x.message,type:"error",displayDuration:1e4})}}];return P.onMounted(()=>{_.forEach(h=>window.addEventListener(h.id,h.handler))}),P.onUnmounted(()=>{_.forEach(h=>window.removeEventListener(h.id,h.handler))}),(h,x)=>(P.openBlock(),P.createBlock(zTe,{ref_key:"toast",ref:f,defaultDisplayDuration:5e3},null,512))}}),Qk=class Qk{};Q0(Qk,"getId",(f,_)=>`${f}_${_}`),Q0(Qk,"saveOptions",(f,_,h,x)=>{localStorage.setItem(Qk.getId(f,_),JSON.stringify({ttlcos:x,ttlc:{compact:h.compact}})),window.location.reload()}),Q0(Qk,"cleanOptions",(f,_)=>{for(let h=0;h<localStorage.length;h++)localStorage.key(h).includes(f)&&localStorage.key(h)!=Qk.getId(f,_)&&localStorage.removeItem(localStorage.key(h))}),Q0(Qk,"loadOptions",(f,_,h,x,A)=>{Qk.cleanOptions(f,_);const F=Qk.getId(f,_);if(localStorage.getItem(F))try{const J=JSON.parse(localStorage.getItem(F));A.value=J.ttlcos,A.value.forEach(X=>x.columns.find(ee=>ee.property==X.property).visible=X.checked),x.compact=J.ttlc.compact}catch{localStorage.removeItem(F),Qk.loadOptions(f,_,h,x,A)}else h||(h=[]),A.value=x.columns.map(J=>(J.visible=h.indexOf(J.property)==-1,{label:J.label,property:J.property,checked:J.visible}))});let KSe=Qk;const b4t={class:"hdr-container d-flex flex-row flex-wrap align-items-center gap-3"},S4t=["onClick","title"],T4t={class:"hdr-title d-flex align-items-center"},x4t=["onClick","title"],k4t={class:"d-flex flex-grow-1 justify-content-end gap-3"},C4t=["onClick","title"],GVe=P.defineComponent({__name:"HeaderComponent",props:{title:{},isFetching:{type:Boolean},buttons:{}},setup(l){return(f,_)=>(P.openBlock(),P.createElementBlock("div",b4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.buttons,h=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[h.align=="pretitle"&&h.type=="iconButton"?(P.openBlock(),P.createBlock(I8,{key:0,big:!0,icon:h.icon,onClick:h.callBack,title:h.title},null,8,["icon","onClick","title"])):P.createCommentVNode("",!0),h.align=="pretitle"&&h.type=="button"?(P.openBlock(),P.createElementBlock("button",{key:1,type:"button",class:"btn btn-outline-secondary",onClick:h.callBack,title:h.title},P.toDisplayString(h.title),9,S4t)):P.createCommentVNode("",!0)],64))),256)),P.createElementVNode("div",T4t,P.toDisplayString(f.title),1),P.createVNode(JTe,{loading:f.isFetching},null,8,["loading"]),(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.buttons,h=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[h.align=="left"&&h.type=="iconButton"?(P.openBlock(),P.createBlock(I8,{key:0,big:!0,icon:h.icon,onClick:h.callBack,title:h.title},null,8,["icon","onClick","title"])):P.createCommentVNode("",!0),h.align=="left"&&h.type=="button"?(P.openBlock(),P.createElementBlock("button",{key:1,type:"button",class:"btn btn-outline-secondary",onClick:h.callBack,title:h.title},P.toDisplayString(h.title),9,x4t)):P.createCommentVNode("",!0)],64))),256)),P.createElementVNode("div",k4t,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(f.buttons,h=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[h.align=="right"&&h.type=="iconButton"?(P.openBlock(),P.createBlock(I8,{key:0,big:!0,icon:h.icon,onClick:h.callBack,title:h.title},null,8,["icon","onClick","title"])):P.createCommentVNode("",!0),h.align=="right"&&h.type=="button"?(P.openBlock(),P.createElementBlock("button",{key:1,type:"button",class:"btn btn-outline-secondary",onClick:h.callBack,title:h.title},P.toDisplayString(h.title),9,C4t)):P.createCommentVNode("",!0)],64))),256))])]))}});function YVe(l,f){return function(){return l.apply(f,arguments)}}const{toString:E4t}=Object.prototype,{getPrototypeOf:qTe}=Object,{iterator:One,toStringTag:XVe}=Symbol,Fne=(l=>f=>{const _=E4t.call(f);return l[_]||(l[_]=_.slice(8,-1).toLowerCase())})(Object.create(null)),sC=l=>(l=l.toLowerCase(),f=>Fne(f)===l),Mne=l=>f=>typeof f===l,{isArray:jM}=Array,PM=Mne("undefined");function fV(l){return l!==null&&!PM(l)&&l.constructor!==null&&!PM(l.constructor)&&_2(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const QVe=sC("ArrayBuffer");function w4t(l){let f;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?f=ArrayBuffer.isView(l):f=l&&l.buffer&&QVe(l.buffer),f}const D4t=Mne("string"),_2=Mne("function"),ZVe=Mne("number"),_V=l=>l!==null&&typeof l=="object",A4t=l=>l===!0||l===!1,Gre=l=>{if(Fne(l)!=="object")return!1;const f=qTe(l);return(f===null||f===Object.prototype||Object.getPrototypeOf(f)===null)&&!(XVe in l)&&!(One in l)},P4t=l=>{if(!_V(l)||fV(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},N4t=sC("Date"),I4t=sC("File"),O4t=sC("Blob"),F4t=sC("FileList"),M4t=l=>_V(l)&&_2(l.pipe),L4t=l=>{let f;return l&&(typeof FormData=="function"&&l instanceof FormData||_2(l.append)&&((f=Fne(l))==="formdata"||f==="object"&&_2(l.toString)&&l.toString()==="[object FormData]"))},R4t=sC("URLSearchParams"),[j4t,B4t,$4t,J4t]=["ReadableStream","Request","Response","Headers"].map(sC),z4t=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pV(l,f,{allOwnKeys:_=!1}={}){if(l===null||typeof l>"u")return;let h,x;if(typeof l!="object"&&(l=[l]),jM(l))for(h=0,x=l.length;h<x;h++)f.call(null,l[h],h,l);else{if(fV(l))return;const A=_?Object.getOwnPropertyNames(l):Object.keys(l),F=A.length;let J;for(h=0;h<F;h++)J=A[h],f.call(null,l[J],J,l)}}function KVe(l,f){if(fV(l))return null;f=f.toLowerCase();const _=Object.keys(l);let h=_.length,x;for(;h-- >0;)if(x=_[h],f===x.toLowerCase())return x;return null}const P8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eUe=l=>!PM(l)&&l!==P8;function eTe(){const{caseless:l,skipUndefined:f}=eUe(this)&&this||{},_={},h=(x,A)=>{const F=l&&KVe(_,A)||A;Gre(_[F])&&Gre(x)?_[F]=eTe(_[F],x):Gre(x)?_[F]=eTe({},x):jM(x)?_[F]=x.slice():(!f||!PM(x))&&(_[F]=x)};for(let x=0,A=arguments.length;x<A;x++)arguments[x]&&pV(arguments[x],h);return _}const q4t=(l,f,_,{allOwnKeys:h}={})=>(pV(f,(x,A)=>{_&&_2(x)?l[A]=YVe(x,_):l[A]=x},{allOwnKeys:h}),l),V4t=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),U4t=(l,f,_,h)=>{l.prototype=Object.create(f.prototype,h),l.prototype.constructor=l,Object.defineProperty(l,"super",{value:f.prototype}),_&&Object.assign(l.prototype,_)},W4t=(l,f,_,h)=>{let x,A,F;const J={};if(f=f||{},l==null)return f;do{for(x=Object.getOwnPropertyNames(l),A=x.length;A-- >0;)F=x[A],(!h||h(F,l,f))&&!J[F]&&(f[F]=l[F],J[F]=!0);l=_!==!1&&qTe(l)}while(l&&(!_||_(l,f))&&l!==Object.prototype);return f},H4t=(l,f,_)=>{l=String(l),(_===void 0||_>l.length)&&(_=l.length),_-=f.length;const h=l.indexOf(f,_);return h!==-1&&h===_},G4t=l=>{if(!l)return null;if(jM(l))return l;let f=l.length;if(!ZVe(f))return null;const _=new Array(f);for(;f-- >0;)_[f]=l[f];return _},Y4t=(l=>f=>l&&f instanceof l)(typeof Uint8Array<"u"&&qTe(Uint8Array)),X4t=(l,f)=>{const h=(l&&l[One]).call(l);let x;for(;(x=h.next())&&!x.done;){const A=x.value;f.call(l,A[0],A[1])}},Q4t=(l,f)=>{let _;const h=[];for(;(_=l.exec(f))!==null;)h.push(_);return h},Z4t=sC("HTMLFormElement"),K4t=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(_,h,x){return h.toUpperCase()+x}),yze=(({hasOwnProperty:l})=>(f,_)=>l.call(f,_))(Object.prototype),ePt=sC("RegExp"),tUe=(l,f)=>{const _=Object.getOwnPropertyDescriptors(l),h={};pV(_,(x,A)=>{let F;(F=f(x,A,l))!==!1&&(h[A]=F||x)}),Object.defineProperties(l,h)},tPt=l=>{tUe(l,(f,_)=>{if(_2(l)&&["arguments","caller","callee"].indexOf(_)!==-1)return!1;const h=l[_];if(_2(h)){if(f.enumerable=!1,"writable"in f){f.writable=!1;return}f.set||(f.set=()=>{throw Error("Can not rewrite read-only method '"+_+"'")})}})},rPt=(l,f)=>{const _={},h=x=>{x.forEach(A=>{_[A]=!0})};return jM(l)?h(l):h(String(l).split(f)),_},nPt=()=>{},iPt=(l,f)=>l!=null&&Number.isFinite(l=+l)?l:f;function aPt(l){return!!(l&&_2(l.append)&&l[XVe]==="FormData"&&l[One])}const sPt=l=>{const f=new Array(10),_=(h,x)=>{if(_V(h)){if(f.indexOf(h)>=0)return;if(fV(h))return h;if(!("toJSON"in h)){f[x]=h;const A=jM(h)?[]:{};return pV(h,(F,J)=>{const X=_(F,x+1);!PM(X)&&(A[J]=X)}),f[x]=void 0,A}}return h};return _(l,0)},oPt=sC("AsyncFunction"),cPt=l=>l&&(_V(l)||_2(l))&&_2(l.then)&&_2(l.catch),rUe=((l,f)=>l?setImmediate:f?((_,h)=>(P8.addEventListener("message",({source:x,data:A})=>{x===P8&&A===_&&h.length&&h.shift()()},!1),x=>{h.push(x),P8.postMessage(_,"*")}))(`axios@${Math.random()}`,[]):_=>setTimeout(_))(typeof setImmediate=="function",_2(P8.postMessage)),lPt=typeof queueMicrotask<"u"?queueMicrotask.bind(P8):typeof process<"u"&&process.nextTick||rUe,uPt=l=>l!=null&&_2(l[One]),ki={isArray:jM,isArrayBuffer:QVe,isBuffer:fV,isFormData:L4t,isArrayBufferView:w4t,isString:D4t,isNumber:ZVe,isBoolean:A4t,isObject:_V,isPlainObject:Gre,isEmptyObject:P4t,isReadableStream:j4t,isRequest:B4t,isResponse:$4t,isHeaders:J4t,isUndefined:PM,isDate:N4t,isFile:I4t,isBlob:O4t,isRegExp:ePt,isFunction:_2,isStream:M4t,isURLSearchParams:R4t,isTypedArray:Y4t,isFileList:F4t,forEach:pV,merge:eTe,extend:q4t,trim:z4t,stripBOM:V4t,inherits:U4t,toFlatObject:W4t,kindOf:Fne,kindOfTest:sC,endsWith:H4t,toArray:G4t,forEachEntry:X4t,matchAll:Q4t,isHTMLForm:Z4t,hasOwnProperty:yze,hasOwnProp:yze,reduceDescriptors:tUe,freezeMethods:tPt,toObjectSet:rPt,toCamelCase:K4t,noop:nPt,toFiniteNumber:iPt,findKey:KVe,global:P8,isContextDefined:eUe,isSpecCompliantForm:aPt,toJSONObject:sPt,isAsyncFn:oPt,isThenable:cPt,setImmediate:rUe,asap:lPt,isIterable:uPt};function ru(l,f,_,h,x){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=l,this.name="AxiosError",f&&(this.code=f),_&&(this.config=_),h&&(this.request=h),x&&(this.response=x,this.status=x.status?x.status:null)}ki.inherits(ru,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ki.toJSONObject(this.config),code:this.code,status:this.status}}});const nUe=ru.prototype,iUe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(l=>{iUe[l]={value:l}});Object.defineProperties(ru,iUe);Object.defineProperty(nUe,"isAxiosError",{value:!0});ru.from=(l,f,_,h,x,A)=>{const F=Object.create(nUe);ki.toFlatObject(l,F,function(B){return B!==Error.prototype},ee=>ee!=="isAxiosError");const J=l&&l.message?l.message:"Error",X=f==null&&l?l.code:f;return ru.call(F,J,X,_,h,x),l&&F.cause==null&&Object.defineProperty(F,"cause",{value:l,configurable:!0}),F.name=l&&l.name||"Error",A&&Object.assign(F,A),F};const fPt=null;function tTe(l){return ki.isPlainObject(l)||ki.isArray(l)}function aUe(l){return ki.endsWith(l,"[]")?l.slice(0,-2):l}function bze(l,f,_){return l?l.concat(f).map(function(x,A){return x=aUe(x),!_&&A?"["+x+"]":x}).join(_?".":""):f}function _Pt(l){return ki.isArray(l)&&!l.some(tTe)}const pPt=ki.toFlatObject(ki,{},null,function(f){return/^is[A-Z]/.test(f)});function Lne(l,f,_){if(!ki.isObject(l))throw new TypeError("target must be an object");f=f||new FormData,_=ki.toFlatObject(_,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Qe,tt){return!ki.isUndefined(tt[Qe])});const h=_.metaTokens,x=_.visitor||B,A=_.dots,F=_.indexes,X=(_.Blob||typeof Blob<"u"&&Blob)&&ki.isSpecCompliantForm(f);if(!ki.isFunction(x))throw new TypeError("visitor must be a function");function ee(Ge){if(Ge===null)return"";if(ki.isDate(Ge))return Ge.toISOString();if(ki.isBoolean(Ge))return Ge.toString();if(!X&&ki.isBlob(Ge))throw new ru("Blob is not supported. Use a Buffer instead.");return ki.isArrayBuffer(Ge)||ki.isTypedArray(Ge)?X&&typeof Blob=="function"?new Blob([Ge]):Buffer.from(Ge):Ge}function B(Ge,Qe,tt){let Tt=Ge;if(Ge&&!tt&&typeof Ge=="object"){if(ki.endsWith(Qe,"{}"))Qe=h?Qe:Qe.slice(0,-2),Ge=JSON.stringify(Ge);else if(ki.isArray(Ge)&&_Pt(Ge)||(ki.isFileList(Ge)||ki.endsWith(Qe,"[]"))&&(Tt=ki.toArray(Ge)))return Qe=aUe(Qe),Tt.forEach(function(yt,rt){!(ki.isUndefined(yt)||yt===null)&&f.append(F===!0?bze([Qe],rt,A):F===null?Qe:Qe+"[]",ee(yt))}),!1}return tTe(Ge)?!0:(f.append(bze(tt,Qe,A),ee(Ge)),!1)}const le=[],se=Object.assign(pPt,{defaultVisitor:B,convertValue:ee,isVisitable:tTe});function pe(Ge,Qe){if(!ki.isUndefined(Ge)){if(le.indexOf(Ge)!==-1)throw Error("Circular reference detected in "+Qe.join("."));le.push(Ge),ki.forEach(Ge,function(Tt,dt){(!(ki.isUndefined(Tt)||Tt===null)&&x.call(f,Tt,ki.isString(dt)?dt.trim():dt,Qe,se))===!0&&pe(Tt,Qe?Qe.concat(dt):[dt])}),le.pop()}}if(!ki.isObject(l))throw new TypeError("data must be an object");return pe(l),f}function Sze(l){const f={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(l).replace(/[!'()~]|%20|%00/g,function(h){return f[h]})}function VTe(l,f){this._pairs=[],l&&Lne(l,this,f)}const sUe=VTe.prototype;sUe.append=function(f,_){this._pairs.push([f,_])};sUe.toString=function(f){const _=f?function(h){return f.call(this,h,Sze)}:Sze;return this._pairs.map(function(x){return _(x[0])+"="+_(x[1])},"").join("&")};function dPt(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function oUe(l,f,_){if(!f)return l;const h=_&&_.encode||dPt;ki.isFunction(_)&&(_={serialize:_});const x=_&&_.serialize;let A;if(x?A=x(f,_):A=ki.isURLSearchParams(f)?f.toString():new VTe(f,_).toString(h),A){const F=l.indexOf("#");F!==-1&&(l=l.slice(0,F)),l+=(l.indexOf("?")===-1?"?":"&")+A}return l}class Tze{constructor(){this.handlers=[]}use(f,_,h){return this.handlers.push({fulfilled:f,rejected:_,synchronous:h?h.synchronous:!1,runWhen:h?h.runWhen:null}),this.handlers.length-1}eject(f){this.handlers[f]&&(this.handlers[f]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(f){ki.forEach(this.handlers,function(h){h!==null&&f(h)})}}const cUe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mPt=typeof URLSearchParams<"u"?URLSearchParams:VTe,gPt=typeof FormData<"u"?FormData:null,hPt=typeof Blob<"u"?Blob:null,vPt={isBrowser:!0,classes:{URLSearchParams:mPt,FormData:gPt,Blob:hPt},protocols:["http","https","file","blob","url","data"]},UTe=typeof window<"u"&&typeof document<"u",rTe=typeof navigator=="object"&&navigator||void 0,yPt=UTe&&(!rTe||["ReactNative","NativeScript","NS"].indexOf(rTe.product)<0),bPt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SPt=UTe&&window.location.href||"http://localhost",TPt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:UTe,hasStandardBrowserEnv:yPt,hasStandardBrowserWebWorkerEnv:bPt,navigator:rTe,origin:SPt},Symbol.toStringTag,{value:"Module"})),jy={...TPt,...vPt};function xPt(l,f){return Lne(l,new jy.classes.URLSearchParams,{visitor:function(_,h,x,A){return jy.isNode&&ki.isBuffer(_)?(this.append(h,_.toString("base64")),!1):A.defaultVisitor.apply(this,arguments)},...f})}function kPt(l){return ki.matchAll(/\w+|\[(\w*)]/g,l).map(f=>f[0]==="[]"?"":f[1]||f[0])}function CPt(l){const f={},_=Object.keys(l);let h;const x=_.length;let A;for(h=0;h<x;h++)A=_[h],f[A]=l[A];return f}function lUe(l){function f(_,h,x,A){let F=_[A++];if(F==="__proto__")return!0;const J=Number.isFinite(+F),X=A>=_.length;return F=!F&&ki.isArray(x)?x.length:F,X?(ki.hasOwnProp(x,F)?x[F]=[x[F],h]:x[F]=h,!J):((!x[F]||!ki.isObject(x[F]))&&(x[F]=[]),f(_,h,x[F],A)&&ki.isArray(x[F])&&(x[F]=CPt(x[F])),!J)}if(ki.isFormData(l)&&ki.isFunction(l.entries)){const _={};return ki.forEachEntry(l,(h,x)=>{f(kPt(h),x,_,0)}),_}return null}function EPt(l,f,_){if(ki.isString(l))try{return(f||JSON.parse)(l),ki.trim(l)}catch(h){if(h.name!=="SyntaxError")throw h}return(_||JSON.stringify)(l)}const dV={transitional:cUe,adapter:["xhr","http","fetch"],transformRequest:[function(f,_){const h=_.getContentType()||"",x=h.indexOf("application/json")>-1,A=ki.isObject(f);if(A&&ki.isHTMLForm(f)&&(f=new FormData(f)),ki.isFormData(f))return x?JSON.stringify(lUe(f)):f;if(ki.isArrayBuffer(f)||ki.isBuffer(f)||ki.isStream(f)||ki.isFile(f)||ki.isBlob(f)||ki.isReadableStream(f))return f;if(ki.isArrayBufferView(f))return f.buffer;if(ki.isURLSearchParams(f))return _.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),f.toString();let J;if(A){if(h.indexOf("application/x-www-form-urlencoded")>-1)return xPt(f,this.formSerializer).toString();if((J=ki.isFileList(f))||h.indexOf("multipart/form-data")>-1){const X=this.env&&this.env.FormData;return Lne(J?{"files[]":f}:f,X&&new X,this.formSerializer)}}return A||x?(_.setContentType("application/json",!1),EPt(f)):f}],transformResponse:[function(f){const _=this.transitional||dV.transitional,h=_&&_.forcedJSONParsing,x=this.responseType==="json";if(ki.isResponse(f)||ki.isReadableStream(f))return f;if(f&&ki.isString(f)&&(h&&!this.responseType||x)){const F=!(_&&_.silentJSONParsing)&&x;try{return JSON.parse(f,this.parseReviver)}catch(J){if(F)throw J.name==="SyntaxError"?ru.from(J,ru.ERR_BAD_RESPONSE,this,null,this.response):J}}return f}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jy.classes.FormData,Blob:jy.classes.Blob},validateStatus:function(f){return f>=200&&f<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ki.forEach(["delete","get","head","post","put","patch"],l=>{dV.headers[l]={}});const wPt=ki.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),DPt=l=>{const f={};let _,h,x;return l&&l.split(`
2
2
  `).forEach(function(F){x=F.indexOf(":"),_=F.substring(0,x).trim().toLowerCase(),h=F.substring(x+1).trim(),!(!_||f[_]&&wPt[_])&&(_==="set-cookie"?f[_]?f[_].push(h):f[_]=[h]:f[_]=f[_]?f[_]+", "+h:h)}),f},xze=Symbol("internals");function Eq(l){return l&&String(l).trim().toLowerCase()}function Yre(l){return l===!1||l==null?l:ki.isArray(l)?l.map(Yre):String(l)}function APt(l){const f=Object.create(null),_=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let h;for(;h=_.exec(l);)f[h[1]]=h[2];return f}const PPt=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function pSe(l,f,_,h,x){if(ki.isFunction(h))return h.call(this,f,_);if(x&&(f=_),!!ki.isString(f)){if(ki.isString(h))return f.indexOf(h)!==-1;if(ki.isRegExp(h))return h.test(f)}}function NPt(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(f,_,h)=>_.toUpperCase()+h)}function IPt(l,f){const _=ki.toCamelCase(" "+f);["get","set","has"].forEach(h=>{Object.defineProperty(l,h+_,{value:function(x,A,F){return this[h].call(this,f,x,A,F)},configurable:!0})})}let p2=class{constructor(f){f&&this.set(f)}set(f,_,h){const x=this;function A(J,X,ee){const B=Eq(X);if(!B)throw new Error("header name must be a non-empty string");const le=ki.findKey(x,B);(!le||x[le]===void 0||ee===!0||ee===void 0&&x[le]!==!1)&&(x[le||X]=Yre(J))}const F=(J,X)=>ki.forEach(J,(ee,B)=>A(ee,B,X));if(ki.isPlainObject(f)||f instanceof this.constructor)F(f,_);else if(ki.isString(f)&&(f=f.trim())&&!PPt(f))F(DPt(f),_);else if(ki.isObject(f)&&ki.isIterable(f)){let J={},X,ee;for(const B of f){if(!ki.isArray(B))throw TypeError("Object iterator must return a key-value pair");J[ee=B[0]]=(X=J[ee])?ki.isArray(X)?[...X,B[1]]:[X,B[1]]:B[1]}F(J,_)}else f!=null&&A(_,f,h);return this}get(f,_){if(f=Eq(f),f){const h=ki.findKey(this,f);if(h){const x=this[h];if(!_)return x;if(_===!0)return APt(x);if(ki.isFunction(_))return _.call(this,x,h);if(ki.isRegExp(_))return _.exec(x);throw new TypeError("parser must be boolean|regexp|function")}}}has(f,_){if(f=Eq(f),f){const h=ki.findKey(this,f);return!!(h&&this[h]!==void 0&&(!_||pSe(this,this[h],h,_)))}return!1}delete(f,_){const h=this;let x=!1;function A(F){if(F=Eq(F),F){const J=ki.findKey(h,F);J&&(!_||pSe(h,h[J],J,_))&&(delete h[J],x=!0)}}return ki.isArray(f)?f.forEach(A):A(f),x}clear(f){const _=Object.keys(this);let h=_.length,x=!1;for(;h--;){const A=_[h];(!f||pSe(this,this[A],A,f,!0))&&(delete this[A],x=!0)}return x}normalize(f){const _=this,h={};return ki.forEach(this,(x,A)=>{const F=ki.findKey(h,A);if(F){_[F]=Yre(x),delete _[A];return}const J=f?NPt(A):String(A).trim();J!==A&&delete _[A],_[J]=Yre(x),h[J]=!0}),this}concat(...f){return this.constructor.concat(this,...f)}toJSON(f){const _=Object.create(null);return ki.forEach(this,(h,x)=>{h!=null&&h!==!1&&(_[x]=f&&ki.isArray(h)?h.join(", "):h)}),_}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([f,_])=>f+": "+_).join(`
3
3
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(f){return f instanceof this?f:new this(f)}static concat(f,..._){const h=new this(f);return _.forEach(x=>h.set(x)),h}static accessor(f){const h=(this[xze]=this[xze]={accessors:{}}).accessors,x=this.prototype;function A(F){const J=Eq(F);h[J]||(IPt(x,F),h[J]=!0)}return ki.isArray(f)?f.forEach(A):A(f),this}};p2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ki.reduceDescriptors(p2.prototype,({value:l},f)=>{let _=f[0].toUpperCase()+f.slice(1);return{get:()=>l,set(h){this[_]=h}}});ki.freezeMethods(p2);function dSe(l,f){const _=this||dV,h=f||_,x=p2.from(h.headers);let A=h.data;return ki.forEach(l,function(J){A=J.call(_,A,x.normalize(),f?f.status:void 0)}),x.normalize(),A}function uUe(l){return!!(l&&l.__CANCEL__)}function BM(l,f,_){ru.call(this,l??"canceled",ru.ERR_CANCELED,f,_),this.name="CanceledError"}ki.inherits(BM,ru,{__CANCEL__:!0});function fUe(l,f,_){const h=_.config.validateStatus;!_.status||!h||h(_.status)?l(_):f(new ru("Request failed with status code "+_.status,[ru.ERR_BAD_REQUEST,ru.ERR_BAD_RESPONSE][Math.floor(_.status/100)-4],_.config,_.request,_))}function OPt(l){const f=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l);return f&&f[1]||""}function FPt(l,f){l=l||10;const _=new Array(l),h=new Array(l);let x=0,A=0,F;return f=f!==void 0?f:1e3,function(X){const ee=Date.now(),B=h[A];F||(F=ee),_[x]=X,h[x]=ee;let le=A,se=0;for(;le!==x;)se+=_[le++],le=le%l;if(x=(x+1)%l,x===A&&(A=(A+1)%l),ee-F<f)return;const pe=B&&ee-B;return pe?Math.round(se*1e3/pe):void 0}}function MPt(l,f){let _=0,h=1e3/f,x,A;const F=(ee,B=Date.now())=>{_=B,x=null,A&&(clearTimeout(A),A=null),l(...ee)};return[(...ee)=>{const B=Date.now(),le=B-_;le>=h?F(ee,B):(x=ee,A||(A=setTimeout(()=>{A=null,F(x)},h-le)))},()=>x&&F(x)]}const _ne=(l,f,_=3)=>{let h=0;const x=FPt(50,250);return MPt(A=>{const F=A.loaded,J=A.lengthComputable?A.total:void 0,X=F-h,ee=x(X),B=F<=J;h=F;const le={loaded:F,total:J,progress:J?F/J:void 0,bytes:X,rate:ee||void 0,estimated:ee&&J&&B?(J-F)/ee:void 0,event:A,lengthComputable:J!=null,[f?"download":"upload"]:!0};l(le)},_)},kze=(l,f)=>{const _=l!=null;return[h=>f[0]({lengthComputable:_,total:l,loaded:h}),f[1]]},Cze=l=>(...f)=>ki.asap(()=>l(...f)),LPt=jy.hasStandardBrowserEnv?((l,f)=>_=>(_=new URL(_,jy.origin),l.protocol===_.protocol&&l.host===_.host&&(f||l.port===_.port)))(new URL(jy.origin),jy.navigator&&/(msie|trident)/i.test(jy.navigator.userAgent)):()=>!0,RPt=jy.hasStandardBrowserEnv?{write(l,f,_,h,x,A){const F=[l+"="+encodeURIComponent(f)];ki.isNumber(_)&&F.push("expires="+new Date(_).toGMTString()),ki.isString(h)&&F.push("path="+h),ki.isString(x)&&F.push("domain="+x),A===!0&&F.push("secure"),document.cookie=F.join("; ")},read(l){const f=document.cookie.match(new RegExp("(^|;\\s*)("+l+")=([^;]*)"));return f?decodeURIComponent(f[3]):null},remove(l){this.write(l,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jPt(l){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function BPt(l,f){return f?l.replace(/\/?\/$/,"")+"/"+f.replace(/^\/+/,""):l}function _Ue(l,f,_){let h=!jPt(f);return l&&(h||_==!1)?BPt(l,f):f}const Eze=l=>l instanceof p2?{...l}:l;function L8(l,f){f=f||{};const _={};function h(ee,B,le,se){return ki.isPlainObject(ee)&&ki.isPlainObject(B)?ki.merge.call({caseless:se},ee,B):ki.isPlainObject(B)?ki.merge({},B):ki.isArray(B)?B.slice():B}function x(ee,B,le,se){if(ki.isUndefined(B)){if(!ki.isUndefined(ee))return h(void 0,ee,le,se)}else return h(ee,B,le,se)}function A(ee,B){if(!ki.isUndefined(B))return h(void 0,B)}function F(ee,B){if(ki.isUndefined(B)){if(!ki.isUndefined(ee))return h(void 0,ee)}else return h(void 0,B)}function J(ee,B,le){if(le in f)return h(ee,B);if(le in l)return h(void 0,ee)}const X={url:A,method:A,data:A,baseURL:F,transformRequest:F,transformResponse:F,paramsSerializer:F,timeout:F,timeoutMessage:F,withCredentials:F,withXSRFToken:F,adapter:F,responseType:F,xsrfCookieName:F,xsrfHeaderName:F,onUploadProgress:F,onDownloadProgress:F,decompress:F,maxContentLength:F,maxBodyLength:F,beforeRedirect:F,transport:F,httpAgent:F,httpsAgent:F,cancelToken:F,socketPath:F,responseEncoding:F,validateStatus:J,headers:(ee,B,le)=>x(Eze(ee),Eze(B),le,!0)};return ki.forEach(Object.keys({...l,...f}),function(B){const le=X[B]||x,se=le(l[B],f[B],B);ki.isUndefined(se)&&le!==J||(_[B]=se)}),_}const pUe=l=>{const f=L8({},l);let{data:_,withXSRFToken:h,xsrfHeaderName:x,xsrfCookieName:A,headers:F,auth:J}=f;if(f.headers=F=p2.from(F),f.url=oUe(_Ue(f.baseURL,f.url,f.allowAbsoluteUrls),l.params,l.paramsSerializer),J&&F.set("Authorization","Basic "+btoa((J.username||"")+":"+(J.password?unescape(encodeURIComponent(J.password)):""))),ki.isFormData(_)){if(jy.hasStandardBrowserEnv||jy.hasStandardBrowserWebWorkerEnv)F.setContentType(void 0);else if(ki.isFunction(_.getHeaders)){const X=_.getHeaders(),ee=["content-type","content-length"];Object.entries(X).forEach(([B,le])=>{ee.includes(B.toLowerCase())&&F.set(B,le)})}}if(jy.hasStandardBrowserEnv&&(h&&ki.isFunction(h)&&(h=h(f)),h||h!==!1&&LPt(f.url))){const X=x&&A&&RPt.read(A);X&&F.set(x,X)}return f},$Pt=typeof XMLHttpRequest<"u",JPt=$Pt&&function(l){return new Promise(function(_,h){const x=pUe(l);let A=x.data;const F=p2.from(x.headers).normalize();let{responseType:J,onUploadProgress:X,onDownloadProgress:ee}=x,B,le,se,pe,Ge;function Qe(){pe&&pe(),Ge&&Ge(),x.cancelToken&&x.cancelToken.unsubscribe(B),x.signal&&x.signal.removeEventListener("abort",B)}let tt=new XMLHttpRequest;tt.open(x.method.toUpperCase(),x.url,!0),tt.timeout=x.timeout;function Tt(){if(!tt)return;const yt=p2.from("getAllResponseHeaders"in tt&&tt.getAllResponseHeaders()),bt={data:!J||J==="text"||J==="json"?tt.responseText:tt.response,status:tt.status,statusText:tt.statusText,headers:yt,config:l,request:tt};fUe(function(Bt){_(Bt),Qe()},function(Bt){h(Bt),Qe()},bt),tt=null}"onloadend"in tt?tt.onloadend=Tt:tt.onreadystatechange=function(){!tt||tt.readyState!==4||tt.status===0&&!(tt.responseURL&&tt.responseURL.indexOf("file:")===0)||setTimeout(Tt)},tt.onabort=function(){tt&&(h(new ru("Request aborted",ru.ECONNABORTED,l,tt)),tt=null)},tt.onerror=function(rt){const bt=rt&&rt.message?rt.message:"Network Error",vr=new ru(bt,ru.ERR_NETWORK,l,tt);vr.event=rt||null,h(vr),tt=null},tt.ontimeout=function(){let rt=x.timeout?"timeout of "+x.timeout+"ms exceeded":"timeout exceeded";const bt=x.transitional||cUe;x.timeoutErrorMessage&&(rt=x.timeoutErrorMessage),h(new ru(rt,bt.clarifyTimeoutError?ru.ETIMEDOUT:ru.ECONNABORTED,l,tt)),tt=null},A===void 0&&F.setContentType(null),"setRequestHeader"in tt&&ki.forEach(F.toJSON(),function(rt,bt){tt.setRequestHeader(bt,rt)}),ki.isUndefined(x.withCredentials)||(tt.withCredentials=!!x.withCredentials),J&&J!=="json"&&(tt.responseType=x.responseType),ee&&([se,Ge]=_ne(ee,!0),tt.addEventListener("progress",se)),X&&tt.upload&&([le,pe]=_ne(X),tt.upload.addEventListener("progress",le),tt.upload.addEventListener("loadend",pe)),(x.cancelToken||x.signal)&&(B=yt=>{tt&&(h(!yt||yt.type?new BM(null,l,tt):yt),tt.abort(),tt=null)},x.cancelToken&&x.cancelToken.subscribe(B),x.signal&&(x.signal.aborted?B():x.signal.addEventListener("abort",B)));const dt=OPt(x.url);if(dt&&jy.protocols.indexOf(dt)===-1){h(new ru("Unsupported protocol "+dt+":",ru.ERR_BAD_REQUEST,l));return}tt.send(A||null)})},zPt=(l,f)=>{const{length:_}=l=l?l.filter(Boolean):[];if(f||_){let h=new AbortController,x;const A=function(ee){if(!x){x=!0,J();const B=ee instanceof Error?ee:this.reason;h.abort(B instanceof ru?B:new BM(B instanceof Error?B.message:B))}};let F=f&&setTimeout(()=>{F=null,A(new ru(`timeout ${f} of ms exceeded`,ru.ETIMEDOUT))},f);const J=()=>{l&&(F&&clearTimeout(F),F=null,l.forEach(ee=>{ee.unsubscribe?ee.unsubscribe(A):ee.removeEventListener("abort",A)}),l=null)};l.forEach(ee=>ee.addEventListener("abort",A));const{signal:X}=h;return X.unsubscribe=()=>ki.asap(J),X}},qPt=function*(l,f){let _=l.byteLength;if(_<f){yield l;return}let h=0,x;for(;h<_;)x=h+f,yield l.slice(h,x),h=x},VPt=async function*(l,f){for await(const _ of UPt(l))yield*qPt(_,f)},UPt=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const f=l.getReader();try{for(;;){const{done:_,value:h}=await f.read();if(_)break;yield h}}finally{await f.cancel()}},wze=(l,f,_,h)=>{const x=VPt(l,f);let A=0,F,J=X=>{F||(F=!0,h&&h(X))};return new ReadableStream({async pull(X){try{const{done:ee,value:B}=await x.next();if(ee){J(),X.close();return}let le=B.byteLength;if(_){let se=A+=le;_(se)}X.enqueue(new Uint8Array(B))}catch(ee){throw J(ee),ee}},cancel(X){return J(X),x.return()}},{highWaterMark:2})},Dze=64*1024,{isFunction:Ore}=ki,WPt=(({Request:l,Response:f})=>({Request:l,Response:f}))(ki.global),{ReadableStream:Aze,TextEncoder:Pze}=ki.global,Nze=(l,...f)=>{try{return!!l(...f)}catch{return!1}},HPt=l=>{l=ki.merge.call({skipUndefined:!0},WPt,l);const{fetch:f,Request:_,Response:h}=l,x=f?Ore(f):typeof fetch=="function",A=Ore(_),F=Ore(h);if(!x)return!1;const J=x&&Ore(Aze),X=x&&(typeof Pze=="function"?(Ge=>Qe=>Ge.encode(Qe))(new Pze):async Ge=>new Uint8Array(await new _(Ge).arrayBuffer())),ee=A&&J&&Nze(()=>{let Ge=!1;const Qe=new _(jy.origin,{body:new Aze,method:"POST",get duplex(){return Ge=!0,"half"}}).headers.has("Content-Type");return Ge&&!Qe}),B=F&&J&&Nze(()=>ki.isReadableStream(new h("").body)),le={stream:B&&(Ge=>Ge.body)};x&&["text","arrayBuffer","blob","formData","stream"].forEach(Ge=>{!le[Ge]&&(le[Ge]=(Qe,tt)=>{let Tt=Qe&&Qe[Ge];if(Tt)return Tt.call(Qe);throw new ru(`Response type '${Ge}' is not supported`,ru.ERR_NOT_SUPPORT,tt)})});const se=async Ge=>{if(Ge==null)return 0;if(ki.isBlob(Ge))return Ge.size;if(ki.isSpecCompliantForm(Ge))return(await new _(jy.origin,{method:"POST",body:Ge}).arrayBuffer()).byteLength;if(ki.isArrayBufferView(Ge)||ki.isArrayBuffer(Ge))return Ge.byteLength;if(ki.isURLSearchParams(Ge)&&(Ge=Ge+""),ki.isString(Ge))return(await X(Ge)).byteLength},pe=async(Ge,Qe)=>{const tt=ki.toFiniteNumber(Ge.getContentLength());return tt??se(Qe)};return async Ge=>{let{url:Qe,method:tt,data:Tt,signal:dt,cancelToken:yt,timeout:rt,onDownloadProgress:bt,onUploadProgress:vr,responseType:Bt,headers:mr,withCredentials:Ut="same-origin",fetchOptions:fn}=pUe(Ge),pn=f||fetch;Bt=Bt?(Bt+"").toLowerCase():"text";let sr=zPt([dt,yt&&yt.toAbortSignal()],rt),Ai=null;const ii=sr&&sr.unsubscribe&&(()=>{sr.unsubscribe()});let Dt;try{if(vr&&ee&&tt!=="get"&&tt!=="head"&&(Dt=await pe(mr,Tt))!==0){let Oi=new _(Qe,{method:"POST",body:Tt,duplex:"half"}),ua;if(ki.isFormData(Tt)&&(ua=Oi.headers.get("content-type"))&&mr.setContentType(ua),Oi.body){const[ts,Rn]=kze(Dt,_ne(Cze(vr)));Tt=wze(Oi.body,Dze,ts,Rn)}}ki.isString(Ut)||(Ut=Ut?"include":"omit");const Qn=A&&"credentials"in _.prototype,hn={...fn,signal:sr,method:tt.toUpperCase(),headers:mr.normalize().toJSON(),body:Tt,duplex:"half",credentials:Qn?Ut:void 0};Ai=A&&new _(Qe,hn);let nn=await(A?pn(Ai,fn):pn(Qe,hn));const un=B&&(Bt==="stream"||Bt==="response");if(B&&(bt||un&&ii)){const Oi={};["status","statusText","headers"].forEach(_i=>{Oi[_i]=nn[_i]});const ua=ki.toFiniteNumber(nn.headers.get("content-length")),[ts,Rn]=bt&&kze(ua,_ne(Cze(bt),!0))||[];nn=new h(wze(nn.body,Dze,ts,()=>{Rn&&Rn(),ii&&ii()}),Oi)}Bt=Bt||"text";let qi=await le[ki.findKey(le,Bt)||"text"](nn,Ge);return!un&&ii&&ii(),await new Promise((Oi,ua)=>{fUe(Oi,ua,{data:qi,headers:p2.from(nn.headers),status:nn.status,statusText:nn.statusText,config:Ge,request:Ai})})}catch(Qn){throw ii&&ii(),Qn&&Qn.name==="TypeError"&&/Load failed|fetch/i.test(Qn.message)?Object.assign(new ru("Network Error",ru.ERR_NETWORK,Ge,Ai),{cause:Qn.cause||Qn}):ru.from(Qn,Qn&&Qn.code,Ge,Ai)}}},GPt=new Map,dUe=l=>{let f=l?l.env:{};const{fetch:_,Request:h,Response:x}=f,A=[h,x,_];let F=A.length,J=F,X,ee,B=GPt;for(;J--;)X=A[J],ee=B.get(X),ee===void 0&&B.set(X,ee=J?new Map:HPt(f)),B=ee;return ee};dUe();const nTe={http:fPt,xhr:JPt,fetch:{get:dUe}};ki.forEach(nTe,(l,f)=>{if(l){try{Object.defineProperty(l,"name",{value:f})}catch{}Object.defineProperty(l,"adapterName",{value:f})}});const Ize=l=>`- ${l}`,YPt=l=>ki.isFunction(l)||l===null||l===!1,mUe={getAdapter:(l,f)=>{l=ki.isArray(l)?l:[l];const{length:_}=l;let h,x;const A={};for(let F=0;F<_;F++){h=l[F];let J;if(x=h,!YPt(h)&&(x=nTe[(J=String(h)).toLowerCase()],x===void 0))throw new ru(`Unknown adapter '${J}'`);if(x&&(ki.isFunction(x)||(x=x.get(f))))break;A[J||"#"+F]=x}if(!x){const F=Object.entries(A).map(([X,ee])=>`adapter ${X} `+(ee===!1?"is not supported by the environment":"is not available in the build"));let J=_?F.length>1?`since :
4
4
  `+F.map(Ize).join(`
@@ -2113,7 +2113,7 @@ _v(dC, "getId", (f, _) => `${f}_${_}`), _v(dC, "saveOptions", (f, _, h, x) => {
2113
2113
  }));
2114
2114
  });
2115
2115
  let Yze = dC;
2116
- const ePt = { class: "d-flex flex-row flex-wrap align-items-center gap-3" }, tPt = ["onClick", "title"], rPt = { class: "hdr-title d-flex align-items-center" }, nPt = ["onClick", "title"], iPt = { class: "d-flex flex-grow-1 justify-content-end gap-3" }, aPt = ["onClick", "title"], sPt = /* @__PURE__ */ ch({
2116
+ const ePt = { class: "hdr-container d-flex flex-row flex-wrap align-items-center gap-3" }, tPt = ["onClick", "title"], rPt = { class: "hdr-title d-flex align-items-center" }, nPt = ["onClick", "title"], iPt = { class: "d-flex flex-grow-1 justify-content-end gap-3" }, aPt = ["onClick", "title"], sPt = /* @__PURE__ */ ch({
2117
2117
  __name: "HeaderComponent",
2118
2118
  props: {
2119
2119
  title: {},