@avakhula/ui 0.0.313 → 0.0.316

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1523,7 +1523,7 @@ function Gl(t, n, e, r, o, i) {
1523
1523
  ]))
1524
1524
  ], 64);
1525
1525
  }
1526
- const o1 = /* @__PURE__ */ Ae(Ul, [["render", Gl], ["__scopeId", "data-v-0003ab78"]]);
1526
+ const o1 = /* @__PURE__ */ Ae(Ul, [["render", Gl], ["__scopeId", "data-v-a8effd76"]]);
1527
1527
  function Lo(t) {
1528
1528
  return "#" + t.toLowerCase().replace(/ /g, "-");
1529
1529
  }
@@ -3483,10 +3483,7 @@ const su = {
3483
3483
  }
3484
3484
  },
3485
3485
  modelValue: {
3486
- type: [Number, String, Array],
3487
- default() {
3488
- return [];
3489
- }
3486
+ type: [Number, String, Array]
3490
3487
  },
3491
3488
  value: {
3492
3489
  type: [Number, String, Array],
@@ -3609,7 +3606,7 @@ const su = {
3609
3606
  deep: !0
3610
3607
  },
3611
3608
  val(t) {
3612
- this.watchClearValue && (!t || Array.isArray(t) && !t.length) && this.setPreparedValues(this.actualOptions).then(() => {
3609
+ console.log(t), this.watchClearValue && (!t || Array.isArray(t) && !t.length) && this.setPreparedValues(this.actualOptions).then(() => {
3613
3610
  const n = Object.keys(this.selected);
3614
3611
  this.$globalEvents.$emit("select-" + this.filterId + ":update", {
3615
3612
  values: n,
@@ -1,4 +1,4 @@
1
- (function(pe,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(pe=typeof globalThis<"u"?globalThis:pe||self,i(pe.MyLib={},pe.Vue))})(this,function(pe,i){"use strict";const jh="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},Uo={name:"IbIcon",props:{name:{type:String,required:!0},classes:{type:String,default:""},styles:{type:[String,Object],default:""}},mounted(){const t=setInterval(()=>{var n,e;(e=(n=this.$refs.icon)==null?void 0:n.shadowRoot)!=null&&e.querySelector("title")&&(this.$refs.icon.shadowRoot.querySelector("title").innerHTML="",clearInterval(t))},1e3)}},Ko=["name"];function Go(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ion-icon",{style:i.normalizeStyle(e.styles),name:e.name,class:i.normalizeClass(e.classes+" ib-icon icon-"+e.name),ref:"icon"},null,14,Ko)}const Le=_e(Uo,[["render",Go]]);function ht(){return"_"+Math.random().toString(36).substr(2,9)}const yi={methods:{enter(t){const n=getComputedStyle(t).width;t.style.width=n,t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";const e=getComputedStyle(t).height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=e})},afterEnter(t){t.style.height="auto"},leave(t){const n=getComputedStyle(t).height;t.style.height=n,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=0})}}},Vh="",Yo={name:"IbAccordion",mixins:[yi],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:ht()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Le}},Wo=["id","aria-controls","aria-expanded"],Zo=["id","aria-labelledby"],Jo={class:"accordion-content-wrapper"};function Xo(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-accordion",{active:a.isActive}])},[i.createElementVNode("button",{class:"accordion-title",id:"accordion"+a.uuid,"aria-controls":"accordion-section-"+a.uuid,"aria-expanded":a.isActive,type:"button",onClick:n[0]||(n[0]=i.withModifiers((...s)=>r.onClick&&r.onClick(...s),["prevent"]))},[i.renderSlot(t.$slots,"title",{},void 0,!0),i.createVNode(d,{class:"chevron-icon",name:"chevron-down-outline"})],8,Wo),i.createVNode(i.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+a.uuid,"aria-labelledby":"accordion"+a.uuid},[i.createElementVNode("div",Jo,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Zo),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Qo=_e(Yo,[["render",Xo],["__scopeId","data-v-8ece19c1"]]),Rt={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Dn(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const qh="",ea={name:"IbButton",props:{kind:{type:String,default:Rt.primary},disabled:{type:Boolean,required:!1,default:!1},preventDefault:{type:Boolean,default:null},confirmMessage:{type:String,default:""},block:{type:Boolean,default:!1},href:{type:String,default:""},linkMethod:{type:String,default:"get"},disableAfterClick:{type:Boolean,default:!1},postOptions:{type:Object,default:()=>({})}},data(){return{isDisabled:this.disabled}},watch:{disabled(t){this.isDisabled=t}},methods:{onMouseenter(t){this.$emit("mouseenter",t)},onMouseleave(t){this.$emit("mouseleave",t)},onClick(t){if((this.preventDefault||this.isDisabled)&&t.preventDefault(),this.confirmMessage.length>0&&!confirm(this.confirmMessage)){t.preventDefault();return}!this.isDisabled&&this.href.length&&!this.preventDefault&&this.linkMethod.toUpperCase()!=="GET"&&(t.preventDefault(),this.$refs.form.submit()),this.isDisabled||this.$emit("click",t),this.disableAfterClick&&!this.disabled&&(this.isDisabled=!0)}},computed:{classes(){const t=["ib-button"];return t.push(`ib-btn-${this.kind}`),this.isDisabled&&t.push("ib-btn-disabled"),this.block&&t.push("ib-btn-block"),this.href.length&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=Dn({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},ta=["method","action"],na=["value"],ra=["value"],ia=["name","value"];function oa(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),i.mergeProps({onClick:n[0]||(n[0]=d=>r.onClick(d)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave},r.attrs),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"icon"),i.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?i.withDirectives((i.openBlock(),i.createElementBlock("form",{key:0,ref:"form",method:r.formMethod,action:e.href},[i.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,na),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,ra),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys(e.postOptions),(d,s)=>(i.openBlock(),i.createElementBlock("input",{key:s,type:"hidden",name:d,value:e.postOptions[d]},null,8,ia))),128))],8,ta)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const vi=_e(ea,[["render",oa]]),hr={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"},Fh="",aa={name:"IbPopover",props:{position:{type:String,default:hr.topCenter},alwaysVisible:{type:Boolean,default:!1}},data(){return{parentNode:null,isVisible:!!this.alwaysVisible}},mounted(){this.$nextTick(()=>{this.parentNode=this.$el.parentNode,this.parentNode&&(getComputedStyle(this.parentNode).position!=="absolute"&&(this.parentNode.style.position="relative"),this.alwaysVisible||(this.parentNode.addEventListener("focus",this.showPopover,!0),this.parentNode.addEventListener("blur",this.hidePopover,!0),this.parentNode.addEventListener("mouseover",this.showPopover,!0),this.parentNode.addEventListener("mouseleave",this.hidePopover,!0)))})},methods:{showPopover(){this.isVisible=!0},hidePopover(){this.isVisible=!1}},computed:{classes(){const t=["ib-popover"];return t.push(`ib-${this.position}`),this.isVisible&&t.push("active"),t}},beforeUnmount(){!this.alwaysVisible&&this.parentNode&&(this.parentNode.removeEventListener("focus",this.showPopover,!0),this.parentNode.removeEventListener("blur",this.hidePopover,!0),this.parentNode.removeEventListener("mouseover",this.showPopover,!0),this.parentNode.removeEventListener("mouseleave",this.hidePopover,!0))}};function la(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[i.vShow,a.isVisible]])]),_:3})}const bi=_e(aa,[["render",la],["__scopeId","data-v-4e7c6f62"]]),Hh="",sa={name:"IbTooltip",props:{position:{type:String},title:{type:String},text:{type:String},alwaysVisible:{type:Boolean,default:!1}},computed:{classList(){const t=["ib-tooltip"];return this.title&&t.push("ib-tooltip-large"),t}},components:{IbPopover:bi}},da={key:0};function ca(t,n,e,o,a,r){const d=i.resolveComponent("ib-popover");return i.openBlock(),i.createBlock(d,{position:e.position,"always-visible":e.alwaysVisible,class:i.normalizeClass(r.classList)},{default:i.withCtx(()=>[e.title?(i.openBlock(),i.createElementBlock("b",da,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const jt=_e(sa,[["render",ca],["__scopeId","data-v-796ac7bb"]]),_i={[Rt.primary]:Rt.primary,[Rt.tertiary]:Rt.tertiary,[Rt.ghost]:Rt.ghost,white:"white"},$i={xs:"xs",s:"s",m:"m"},zh="",ua={name:"IbIconButton",props:{kind:{type:String,default:_i.primary,validator:t=>Object.keys(_i).includes(t)},size:{type:String,default:$i.s,validator:t=>Object.keys($i).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},methods:{onClick(t){this.$emit("click",t)}},computed:{classes(){const t=["ib-icon-button"];return t.push(`ib-icon-btn-${this.kind}`),t.push(`ib-icon-btn-${this.size}`),this.rounded&&t.push("ib-icon-btn-rounded"),this.disabled&&t.push("ib-icon-btn-disabled"),t},attrs(){const t=Dn({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:vi,IbTooltip:jt},inheritAttrs:!1};function fa(t,n,e,o,a,r){const d=i.resolveComponent("ib-tooltip"),s=i.resolveComponent("ib-button");return i.openBlock(),i.createBlock(s,i.mergeProps({onClick:r.onClick},r.attrs,{href:e.href,kind:e.kind,disabled:e.disabled,"prevent-default":e.preventDefault}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default"),e.helpText.length?(i.openBlock(),i.createBlock(d,{key:0,text:e.helpText},null,8,["text"])):i.createCommentVNode("",!0)]),_:3},16,["onClick","href","kind","disabled","prevent-default"])}const ut=_e(ua,[["render",fa]]),In={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},Uh="",ha={name:"IbAlert",props:{type:{type:String,default:In.alert,validator:t=>Object.keys(In).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""}},mounted(){this.checkHeight(),this.$refs.content&&(this.contentObserver=new ResizeObserver(()=>{this.checkHeight()}),this.contentObserver.observe(this.$refs.content)),window.addEventListener("resize",()=>this.checkHeight())},data(){return{contentObserver:null}},methods:{close(){this.$emit("close")},checkHeight(){var e;if(!this.$refs.content)return;const t=getComputedStyle(this.$refs.content),n=(e=this.$refs.content)==null?void 0:e.parentElement.offsetWidth;!n||!t||(parseInt(t.width)<=n&&this.$refs.content.classList.remove("large"),parseInt(t.height)>37&&this.showIcon&&(this.title.length?this.$refs.content.classList.add("large"):this.$refs.content.classList.add("medium")))}},computed:{classes(){const t=["ib-alert"];return t.push(`ib-alert-${this.type}`),this.title.length&&t.push("has-title"),this.showIcon&&t.push("has-icon"),this.showCloseButton&&t.push("has-close-button"),this.$slots.link&&t.push("has-link"),t},iconName(){return this.type===In.info?"information-circle-outline":this.type===In.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Le,IbIconButton:ut}},pa={ref:"content",class:"content"},ma={class:"content-head"},ga={key:1,class:"ib-alert-title"},ya={class:"text-content"},va={class:"link"};function ba(t,n,e,o,a,r){var f;const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",{role:"alert",class:i.normalizeClass(r.classes)},[i.createElementVNode("div",pa,[i.createElementVNode("span",ma,[e.showIcon?(i.openBlock(),i.createBlock(d,{key:0,class:"ib-alert-icon",name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),(f=e.title)!=null&&f.length?(i.openBlock(),i.createElementBlock("b",ga,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",ya,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",va,[i.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:r.close},{default:i.withCtx(()=>[i.createVNode(d,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0)],2)}const It=_e(ha,[["render",ba],["__scopeId","data-v-dec06c47"]]),_a={M:"m",L:"l"},Kh="",$a={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:_a.M}},computed:{classList(){return["avatar",`avatar-size-${this.size}`]},validateName(){var t,n;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((n=this.lastName)==null?void 0:n.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Le}},wa=["src","alt"];function ka(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(i.openBlock(),i.createElementBlock("img",{key:0,class:i.normalizeClass(r.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,wa)):e.src&&e.userAvatar?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["user-avatar",r.classList]),style:i.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):r.validateName?(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass([r.classList,"default-avatar"])},i.toDisplayString(r.initials),3)):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["empty-avatar",r.classList])},[i.createVNode(d,{name:"camera-outline"})],2))}const Ca=_e($a,[["render",ka],["__scopeId","data-v-8ba12d0f"]]),Gh="",Oa={name:"IbBadge",props:{content:{type:[String,Number],default:""}},computed:{classes(){const t=["ib-badge"];return this.content.toString().length&&t.push("ib-badge-large"),t},normalizeContent(){return this.content>99?"99+":this.content}}};function Ea(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const Sa=_e(Oa,[["render",Ea],["__scopeId","data-v-328df75a"]]),Yh="",Ta={name:"IbButtonGroup"},Na={class:"ib-button-group"};function xa(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Na,[i.renderSlot(t.$slots,"default")])}const Aa=_e(Ta,[["render",xa]]),Zt={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},Wh="",Da={props:{status:{type:String,default:Zt.neutral,validator:t=>Object.keys(Zt).includes(t)},showIcon:{type:Boolean,default:!1}},computed:{classes(){const t=["ib-tag-pill"];return t.push(`ib-tag-pill-${this.status}`),t},iconName(){switch(this.status){case Zt.success:return"checkmark-outline";case Zt.neutral:return"time-outline";case Zt.info:return"information-circle-outline";case Zt.error:return"close-outline";default:return""}}},components:{IbIcon:Le}};function Ia(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[e.showIcon&&r.iconName.length?(i.openBlock(),i.createBlock(d,{key:0,name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),i.createElementVNode("span",null,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const Ma=_e(Da,[["render",Ia],["__scopeId","data-v-3604890c"]]),Pa={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"},Zh="",Jh="",Ba={name:"IbTooltip",props:{position:{type:String,default:Pa.topCenter},title:{type:String},isOpen:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this.parentNode=this.$el.parentNode,getComputedStyle(this.parentNode).position!=="absolute"&&(this.parentNode.style.position="relative")})},data(){return{isOpenedState:this.isOpen}},methods:{open(){this.isOpenedState=!0,this.$emit("open")},close(){this.isOpenedState=!1,this.$emit("close")}},computed:{classes(){const t=["ib-toggle-tip"];return t.push(`ib-${this.position}`),t}},watch:{isOpen(t){t?this.open():this.close()}},components:{IbIconButton:ut,IbIcon:Le}},La={class:"ib-toggle-tip-head"},Ra={class:"ib-toggle-tip-content"},ja={class:"ib-toggle-tip-button-set"};function Va(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",La,[i.createElementVNode("p",null,i.toDisplayString(e.title),1),i.createVNode(s,{class:"close-button",kind:"ghost",onClick:i.withModifiers(r.close,["prevent"])},{default:i.withCtx(()=>[i.createVNode(d,{name:"close-outline"})]),_:1},8,["onClick"])]),i.createElementVNode("div",Ra,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",ja,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const wi=_e(Ba,[["render",Va],["__scopeId","data-v-9e7c679e"]]),pr=27,ki=32,qa=13,Ci=9,Fa=38,Ha=37,za=39,Oi=40,Ua="click",{performance:Mn}=window,Ka=typeof(Mn==null?void 0:Mn.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>Mn.now():()=>Date.now(),an=new Map;let ln=!1;const Ei=t=>{an.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},Ga=()=>{ln||(document.addEventListener("click",Ei,{capture:!0}),ln=!0)},Ya=()=>{ln&&(document.removeEventListener("click",Ei),ln=!1)},Pn={created:(t,{value:n,arg:e="click"})=>{if(typeof n!="function")throw new Error(`[OutsideDirective] Value must be a function; got ${typeof n}!`);if(e!=="click")throw new Error(`[OutsideDirective] Cannot bind ${e} events; only click events are currently supported!`);an.has(t)||(ln||Ga(),an.set(t,{bindTimeStamp:Ka(),callback:n}))},beforeUnmount:t=>{an.delete(t),an.size===0&&Ya()}},sn={left:"left",right:"right",center:"center"},Bn={top:"top",bottom:"bottom"},e1="",t1="",Wa={name:"IbDropdown",directives:{Outside:Pn},props:{vertical:{type:String,default:Bn.bottom},horizontal:{type:String,default:sn.left},triggerClass:{default:""},isOpened:{type:Boolean,default:!1},showCloseIcon:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerType:{type:String,default:Ua},destroyOnHide:{type:Boolean,default:!1}},watch:{isOpened(t){t?this.open():this.close()}},mounted(){this.$globalEvents.$on("dropdown:open",t=>{this.$el.contains(t.$el)||this.close()}),document.addEventListener("focus",this.closeOnEventOutside,!0),document.addEventListener("keyup",this.onKeyupDocument)},data(){return{isOpenedState:this.isOpened,timeout:null}},methods:{onKeydown(t){(t.keyCode===qa||t.keyCode===ki)&&(t.preventDefault(),this.toggle()),t.keyCode===Oi&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===pr&&(t.preventDefault(),this.close())},toggle(){this.isOpenedState?this.close():this.open()},open(){this.disabled||(this.isOpenedState=!0,this.$emit("open"),this.$globalEvents.$emit("dropdown:open",this))},close(){if(this.isOpenedState){if(this.disabled)return;this.isOpenedState=!1,this.$emit("close")}},debouncedOpen(){this.timeout=setTimeout(()=>{this.open()},300)},debouncedClose(){this.close(),clearTimeout(this.timeout)},closeOnClickIfRequired(){this.closeOnClick&&this.close()},closeOnEventOutside(t){this.$el.contains(t.target)||this.close()}},computed:{classes(){const t=this.vertical===Bn.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===sn.left?" dropdown-left":this.horizontal===sn.right?" dropdown-right":" dropdown-center",e=this.isOpenedState?" active":"";return t+n+e},triggerClasses(){let t=this.isOpenedState?"active":"";return this.disabled&&(t+=" dropdown-trigger-disabled"),this.triggerClass+t},hasTrigger(){return!!this.$slots.trigger}},beforeUnmount(){document.removeEventListener("focus",this.closeOnEventOutside,!0),document.removeEventListener("keypress",this.onKeydownDocument)}},Za={class:"ib-dropdown"},Ja={class:"footer-slot"};function Xa(t,n,e,o,a,r){const d=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",Za,[r.hasTrigger&&e.triggerType==="click"?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),ref:"dropdown",onKeydown:n[0]||(n[0]=(...s)=>r.onKeydown&&r.onKeydown(...s)),onClick:n[1]||(n[1]=i.withModifiers((...s)=>r.toggle&&r.toggle(...s),["prevent","stop"]))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),r.hasTrigger&&e.triggerType==="hover"?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),onMouseenter:n[2]||(n[2]=(...s)=>r.debouncedOpen&&r.debouncedOpen(...s)),onMouseleave:n[3]||(n[3]=(...s)=>r.debouncedClose&&r.debouncedClose(...s))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),!e.destroyOnHide||a.isOpenedState?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:2,ref:"body",class:i.normalizeClass("ib-dropdown-menu "+r.classes)},[i.createElementVNode("div",{class:"dropdown-body",onClick:n[5]||(n[5]=(...s)=>r.closeOnClickIfRequired&&r.closeOnClickIfRequired(...s))},[i.renderSlot(t.$slots,"body",{isOpenedState:a.isOpenedState},void 0,!0),e.showCloseIcon?(i.openBlock(),i.createElementBlock("span",{key:0,class:"close",onClick:n[4]||(n[4]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"close",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Ja,[i.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[i.vShow,a.isOpenedState]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"before",onClick:n[6]||(n[6]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[d,r.close]])}const Ln=_e(Wa,[["render",Xa],["__scopeId","data-v-dfb4a39a"]]),n1="",Qa={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===Oi){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const d=document.activeElement,s=d.querySelector(`.${this.rootClass}`);let f=d.nextElementSibling?d.nextElementSibling:(n=d.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(s&&window.getComputedStyle(s).display!=="none"){s.querySelector('a, button, input, [tabindex="0"]').focus();return}if(f){f.focus();return}const h=(o=(e=d.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];h&&h.nodeName!=="#text"&&h.focus()}if(t.keyCode===Fa){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const d=document.activeElement,s=d.previousElementSibling?d.previousElementSibling:(a=d.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!s){d.closest(`.${this.rootClass}`).parentNode.focus();return}if(s&&s.nodeName!=="#text"){const f=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(f&&window.getComputedStyle(f).display!=="none"){const h=Array.from(f.childNodes).filter(p=>p.nodeName!=="#text");(r=h[h.length-1])==null||r.childNodes[0].focus();return}s.focus()}}}}};function el(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...d)=>r.onKeydown&&r.onKeydown(...d))},[i.renderSlot(t.$slots,"default")],34)}const mr=_e(Qa,[["render",el]]),r1="",tl={props:{vertical:{type:String,default:Bn.bottom},horizontal:{type:String,default:sn.left},isOpened:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{proxyEvents(t){this.$emit(t.event,...t.args)}},data(){return{list:this.$refs.list}},computed:{hasTrigger(){return!!this.$slots.trigger}},components:{IbDropdown:Ln,IbList:mr}},nl={class:"dropdown-list-wrapper"};function rl(t,n,e,o,a,r){const d=i.resolveComponent("ib-list"),s=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",nl,[i.createVNode(s,i.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:r.proxyEvents}),i.createSlots({body:i.withCtx(({isOpened:f})=>[i.createVNode(d,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:f})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:f})=>[i.renderSlot(t.$slots,"trigger",{isOpened:f})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const Rn=_e(tl,[["render",rl]]),i1="",il={props:{checked:{type:Boolean,default:!1},href:{type:String}},computed:{attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),t}}},ol={class:"dropdown-item-wrapper"};function al(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",ol,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href?"a":"div"),i.mergeProps({class:e.checked?"active":""},r.attrs,{tabindex:"0"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{ref:"slot"})]),_:3},16,["class"]))])}const gr=_e(il,[["render",al]]),ll={common:"common",danger:"danger"},o1="",sl={name:"IbSplitButton",props:{id:{type:String,default:()=>ht()},kind:{type:String,default:ll.common},disabled:{type:Boolean,default:!1},saveSelected:{type:Boolean,default:!1}},mounted(){var t;if(this.childList=Array.from(this.$refs.list.children),(t=this.childList)==null||t.forEach((n,e)=>{n.addEventListener("click",()=>{this.childList[this.activeElemIdx].classList.remove("active"),this.saveSelected&&(this.activeElemIdx=e,localStorage.setItem(`split-button-${this.id}`,e))})}),this.saveSelected){const n=localStorage.getItem(`split-button-${this.id}`);n&&(this.activeElemIdx=n)}this.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:Le,IbDropdownList:Rn},methods:{setActiveItem(){this.mainButtonAttrs=this.$slots.default()[this.activeElemIdx].props,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}}},dl=["disabled"],cl=["disabled"],ul=["disabled"],fl={ref:"list"};function hl(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[a.isLink?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...f)=>r.onClickLink&&r.onClickLink(...f))}),i.toDisplayString(a.content),17,cl)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,dl)),i.createVNode(s,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(d,{name:"chevron-down-outline"})],8,ul)]),body:i.withCtx(()=>[i.createElementVNode("div",fl,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const pl=_e(sl,[["render",hl]]),a1="",ml={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function gl(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),i.mergeProps(r.attrs,{class:"ib-dropdown-item"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const yl=_e(ml,[["render",gl],["__scopeId","data-v-4cf00feb"]]),Ot={S:"s",M:"m",L:"l",XL:"xl"},l1="",vl={name:"IbModal",directives:{Outside:Pn},emits:{open:null,close:null},props:{active:{type:Boolean,default:!1},classList:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{type:String,default:Ot.S}},watch:{active(t){this.isActive=t}},mounted(){var n,e,o,a;const t=(e=(n=this.$refs)==null?void 0:n.modal)==null?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea");(o=t[0])==null||o.addEventListener("keydown",r=>{r.keyCode===Ci&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===Ci&&!r.shiftKey&&(r.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)},data(){return{isActive:this.active}},methods:{showModal(t){t?this.open():this.close()},onTriggerBlur(){var t,n;(n=(t=this.$refs.modal)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus()},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;this.isActive=!1,(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var n;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").focus()},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===pr&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{bodyStyles(){const t={};return this.size===Ot.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Ot.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Ot.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Ot.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Ot.S&&t.push("modal-body-s"),this.size===Ot.M&&t.push("modal-body-m"),this.size===Ot.L&&t.push("modal-body-l"),this.size===Ot.XL&&t.push("modal-body-xl"),t},hasTrigger(){return!!this.$slots.trigger},hasHeader(){return!!this.$slots.header},hasFooter(){return!!this.$slots.footer}},components:{IbIconButton:ut,IbIcon:Le},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},bl={key:1,class:"modal-header"},_l={key:2,class:"modal-footer"};function $l(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),f=i.resolveDirective("outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[r.hasTrigger?(i.openBlock(),i.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...h)=>r.onTriggerBlur&&r.onTriggerBlur(...h)),onClick:n[1]||(n[1]=(...h)=>r.open&&r.open(...h))},[i.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["modal",e.classList]),ref:"modal"},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.bodyClassList),style:i.normalizeStyle(r.bodyStyles)},[e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(d,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",bl,[i.renderSlot(t.$slots,"header",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["modal-content",{"without-title":!r.hasHeader}])},[i.renderSlot(t.$slots,"body",{showModal:r.showModal},void 0,!0)],2),r.hasFooter?(i.openBlock(),i.createElementBlock("div",_l,[i.renderSlot(t.$slots,"footer",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0)],6)),[[f,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const wl=_e(vl,[["render",$l],["__scopeId","data-v-0003ab78"]]);function Si(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const s1="",kl={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return Si(t)},selectTab(t){this.selectedTabByDropdown=t,this.$emit("select-tab",t)},setDisabledTab(){return this.tabs.tabs.every(t=>t.disabled)}},computed:{isActive(){for(let t of this.tabs.tabs)if(t.id===this.selectedTab)return!0;return!1}},components:{IbDropdownList:Rn,IbDropdownItem:gr,IbIcon:Le}},Cl={class:"wrapper-tab-link dropdown-tab"},Ol=["tabindex"];function El(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),f=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Cl,[i.createVNode(f,{disabled:a.isDisabledDropdown,"close-on-click":!0},{trigger:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(["tab-link",{active:a.selectedTabByDropdown===e.selectedTab||r.isActive,disabled:a.isDisabledDropdown}]),tabindex:a.isDisabledDropdown?-1:0},[i.createTextVNode(i.toDisplayString(e.tabs.name)+" ",1),i.createVNode(d,{name:"chevron-down"})],10,Ol)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(h,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:h.id===e.selectedTab,href:r.createHref(h.id),tabindex:h.disabled?-1:0,class:i.normalizeClass([{disabled:h.disabled},"dropdown-tab-item"]),target:"_self",onClick:u=>r.selectTab(h.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const Ti=_e(kl,[["render",El]]),d1="",Sl={name:"IbTabs",props:{selectedTabId:{type:String,default:""}},data(){return{tabs:[],selectedTab:this.selectTabId}},watch:{selectedTabId(t){this.selectTab(t)}},created(){const t=[];this.$slots.default().forEach(n=>n.type===Symbol.for("v-fgt")?t.push(...n.children):t.push(n)),t.forEach(n=>{if(!n.props.name)this.tabs.push(n.props);else{const e=this.tabs.findIndex(o=>o.name===n.props.name);if(e!==-1)this.tabs[e].tabs.push(n.props);else{const o={name:n.props.name,tabs:[n.props]};this.tabs.push(o)}}});for(let n of this.tabs)if(!n.disabled)if(n.tabs){for(let e of n.tabs)if(!e.disabled){this.selectTab(e.id);return}}else{this.selectTab(n.id);return}},methods:{createHref(t){return Si(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:Ti},emits:["changeTab"]},Tl={class:"tabs"},Nl={class:"tabs-list"},xl={key:0,class:"wrapper-tab-link"},Al=["href","tabindex","onClick"],Dl={class:"tabs-content",ref:"tabHandler"};function Il(t,n,e,o,a,r){const d=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Tl,[i.createElementVNode("ul",Nl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,f)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:f},[s.name?(i.openBlock(),i.createBlock(d,{key:1,"selected-tab":a.selectedTab,tabs:s,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",xl,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===s.id,disabled:s.disabled}]),href:r.createHref(s.id),tabindex:s.disabled?-1:0,onClick:h=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,Al)]))]))),128))]),i.createElementVNode("div",Dl,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const Ml=_e(Sl,[["render",Il],["__scopeId","data-v-47d103be"]]),Pl={name:"IbTab",props:{title:{type:String,required:!0},id:{type:String,required:!0},disabled:{type:Boolean,default:!1},initialized:{type:Boolean,default:!1},name:{type:String,default:null}},computed:{isTabActive(){return this.$parent.selectedTab===this.id}}};function Bl(t,n,e,o,a,r){return i.withDirectives((i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default")],512)),[[i.vShow,r.isTabActive]])}const Ll=_e(Pl,[["render",Bl]]),Rl={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},jl={TYPE_ASC:"asc",TYPE_DESC:"desc"};class Ni{constructor(){this.tooltipInstance=null,this.tooltipContainer=null,this.uuid=null}getTooltipInstance(){return this.getTooltipInstance}getTooltipContainer(){return this.tooltipContainer}getId(){return this.uuid}generateUID(){this.uuid="tooltip_"+ht()}createTooltip(n,e,o){var r;if(!((r=e.text)!=null&&r.length))return;this.generateUID();const a=`
1
+ (function(pe,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(pe=typeof globalThis<"u"?globalThis:pe||self,i(pe.MyLib={},pe.Vue))})(this,function(pe,i){"use strict";const jh="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},Uo={name:"IbIcon",props:{name:{type:String,required:!0},classes:{type:String,default:""},styles:{type:[String,Object],default:""}},mounted(){const t=setInterval(()=>{var n,e;(e=(n=this.$refs.icon)==null?void 0:n.shadowRoot)!=null&&e.querySelector("title")&&(this.$refs.icon.shadowRoot.querySelector("title").innerHTML="",clearInterval(t))},1e3)}},Ko=["name"];function Go(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ion-icon",{style:i.normalizeStyle(e.styles),name:e.name,class:i.normalizeClass(e.classes+" ib-icon icon-"+e.name),ref:"icon"},null,14,Ko)}const Le=_e(Uo,[["render",Go]]);function ht(){return"_"+Math.random().toString(36).substr(2,9)}const yi={methods:{enter(t){const n=getComputedStyle(t).width;t.style.width=n,t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";const e=getComputedStyle(t).height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=e})},afterEnter(t){t.style.height="auto"},leave(t){const n=getComputedStyle(t).height;t.style.height=n,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=0})}}},Vh="",Yo={name:"IbAccordion",mixins:[yi],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:ht()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Le}},Wo=["id","aria-controls","aria-expanded"],Zo=["id","aria-labelledby"],Jo={class:"accordion-content-wrapper"};function Xo(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-accordion",{active:a.isActive}])},[i.createElementVNode("button",{class:"accordion-title",id:"accordion"+a.uuid,"aria-controls":"accordion-section-"+a.uuid,"aria-expanded":a.isActive,type:"button",onClick:n[0]||(n[0]=i.withModifiers((...s)=>r.onClick&&r.onClick(...s),["prevent"]))},[i.renderSlot(t.$slots,"title",{},void 0,!0),i.createVNode(d,{class:"chevron-icon",name:"chevron-down-outline"})],8,Wo),i.createVNode(i.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+a.uuid,"aria-labelledby":"accordion"+a.uuid},[i.createElementVNode("div",Jo,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Zo),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Qo=_e(Yo,[["render",Xo],["__scopeId","data-v-8ece19c1"]]),Rt={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Dn(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const qh="",ea={name:"IbButton",props:{kind:{type:String,default:Rt.primary},disabled:{type:Boolean,required:!1,default:!1},preventDefault:{type:Boolean,default:null},confirmMessage:{type:String,default:""},block:{type:Boolean,default:!1},href:{type:String,default:""},linkMethod:{type:String,default:"get"},disableAfterClick:{type:Boolean,default:!1},postOptions:{type:Object,default:()=>({})}},data(){return{isDisabled:this.disabled}},watch:{disabled(t){this.isDisabled=t}},methods:{onMouseenter(t){this.$emit("mouseenter",t)},onMouseleave(t){this.$emit("mouseleave",t)},onClick(t){if((this.preventDefault||this.isDisabled)&&t.preventDefault(),this.confirmMessage.length>0&&!confirm(this.confirmMessage)){t.preventDefault();return}!this.isDisabled&&this.href.length&&!this.preventDefault&&this.linkMethod.toUpperCase()!=="GET"&&(t.preventDefault(),this.$refs.form.submit()),this.isDisabled||this.$emit("click",t),this.disableAfterClick&&!this.disabled&&(this.isDisabled=!0)}},computed:{classes(){const t=["ib-button"];return t.push(`ib-btn-${this.kind}`),this.isDisabled&&t.push("ib-btn-disabled"),this.block&&t.push("ib-btn-block"),this.href.length&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=Dn({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},ta=["method","action"],na=["value"],ra=["value"],ia=["name","value"];function oa(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),i.mergeProps({onClick:n[0]||(n[0]=d=>r.onClick(d)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave},r.attrs),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"icon"),i.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?i.withDirectives((i.openBlock(),i.createElementBlock("form",{key:0,ref:"form",method:r.formMethod,action:e.href},[i.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,na),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,ra),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys(e.postOptions),(d,s)=>(i.openBlock(),i.createElementBlock("input",{key:s,type:"hidden",name:d,value:e.postOptions[d]},null,8,ia))),128))],8,ta)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const vi=_e(ea,[["render",oa]]),hr={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"},Fh="",aa={name:"IbPopover",props:{position:{type:String,default:hr.topCenter},alwaysVisible:{type:Boolean,default:!1}},data(){return{parentNode:null,isVisible:!!this.alwaysVisible}},mounted(){this.$nextTick(()=>{this.parentNode=this.$el.parentNode,this.parentNode&&(getComputedStyle(this.parentNode).position!=="absolute"&&(this.parentNode.style.position="relative"),this.alwaysVisible||(this.parentNode.addEventListener("focus",this.showPopover,!0),this.parentNode.addEventListener("blur",this.hidePopover,!0),this.parentNode.addEventListener("mouseover",this.showPopover,!0),this.parentNode.addEventListener("mouseleave",this.hidePopover,!0)))})},methods:{showPopover(){this.isVisible=!0},hidePopover(){this.isVisible=!1}},computed:{classes(){const t=["ib-popover"];return t.push(`ib-${this.position}`),this.isVisible&&t.push("active"),t}},beforeUnmount(){!this.alwaysVisible&&this.parentNode&&(this.parentNode.removeEventListener("focus",this.showPopover,!0),this.parentNode.removeEventListener("blur",this.hidePopover,!0),this.parentNode.removeEventListener("mouseover",this.showPopover,!0),this.parentNode.removeEventListener("mouseleave",this.hidePopover,!0))}};function la(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[i.vShow,a.isVisible]])]),_:3})}const bi=_e(aa,[["render",la],["__scopeId","data-v-4e7c6f62"]]),Hh="",sa={name:"IbTooltip",props:{position:{type:String},title:{type:String},text:{type:String},alwaysVisible:{type:Boolean,default:!1}},computed:{classList(){const t=["ib-tooltip"];return this.title&&t.push("ib-tooltip-large"),t}},components:{IbPopover:bi}},da={key:0};function ca(t,n,e,o,a,r){const d=i.resolveComponent("ib-popover");return i.openBlock(),i.createBlock(d,{position:e.position,"always-visible":e.alwaysVisible,class:i.normalizeClass(r.classList)},{default:i.withCtx(()=>[e.title?(i.openBlock(),i.createElementBlock("b",da,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const jt=_e(sa,[["render",ca],["__scopeId","data-v-796ac7bb"]]),_i={[Rt.primary]:Rt.primary,[Rt.tertiary]:Rt.tertiary,[Rt.ghost]:Rt.ghost,white:"white"},$i={xs:"xs",s:"s",m:"m"},zh="",ua={name:"IbIconButton",props:{kind:{type:String,default:_i.primary,validator:t=>Object.keys(_i).includes(t)},size:{type:String,default:$i.s,validator:t=>Object.keys($i).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},methods:{onClick(t){this.$emit("click",t)}},computed:{classes(){const t=["ib-icon-button"];return t.push(`ib-icon-btn-${this.kind}`),t.push(`ib-icon-btn-${this.size}`),this.rounded&&t.push("ib-icon-btn-rounded"),this.disabled&&t.push("ib-icon-btn-disabled"),t},attrs(){const t=Dn({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:vi,IbTooltip:jt},inheritAttrs:!1};function fa(t,n,e,o,a,r){const d=i.resolveComponent("ib-tooltip"),s=i.resolveComponent("ib-button");return i.openBlock(),i.createBlock(s,i.mergeProps({onClick:r.onClick},r.attrs,{href:e.href,kind:e.kind,disabled:e.disabled,"prevent-default":e.preventDefault}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default"),e.helpText.length?(i.openBlock(),i.createBlock(d,{key:0,text:e.helpText},null,8,["text"])):i.createCommentVNode("",!0)]),_:3},16,["onClick","href","kind","disabled","prevent-default"])}const ut=_e(ua,[["render",fa]]),In={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},Uh="",ha={name:"IbAlert",props:{type:{type:String,default:In.alert,validator:t=>Object.keys(In).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""}},mounted(){this.checkHeight(),this.$refs.content&&(this.contentObserver=new ResizeObserver(()=>{this.checkHeight()}),this.contentObserver.observe(this.$refs.content)),window.addEventListener("resize",()=>this.checkHeight())},data(){return{contentObserver:null}},methods:{close(){this.$emit("close")},checkHeight(){var e;if(!this.$refs.content)return;const t=getComputedStyle(this.$refs.content),n=(e=this.$refs.content)==null?void 0:e.parentElement.offsetWidth;!n||!t||(parseInt(t.width)<=n&&this.$refs.content.classList.remove("large"),parseInt(t.height)>37&&this.showIcon&&(this.title.length?this.$refs.content.classList.add("large"):this.$refs.content.classList.add("medium")))}},computed:{classes(){const t=["ib-alert"];return t.push(`ib-alert-${this.type}`),this.title.length&&t.push("has-title"),this.showIcon&&t.push("has-icon"),this.showCloseButton&&t.push("has-close-button"),this.$slots.link&&t.push("has-link"),t},iconName(){return this.type===In.info?"information-circle-outline":this.type===In.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Le,IbIconButton:ut}},pa={ref:"content",class:"content"},ma={class:"content-head"},ga={key:1,class:"ib-alert-title"},ya={class:"text-content"},va={class:"link"};function ba(t,n,e,o,a,r){var f;const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",{role:"alert",class:i.normalizeClass(r.classes)},[i.createElementVNode("div",pa,[i.createElementVNode("span",ma,[e.showIcon?(i.openBlock(),i.createBlock(d,{key:0,class:"ib-alert-icon",name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),(f=e.title)!=null&&f.length?(i.openBlock(),i.createElementBlock("b",ga,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",ya,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",va,[i.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:r.close},{default:i.withCtx(()=>[i.createVNode(d,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0)],2)}const It=_e(ha,[["render",ba],["__scopeId","data-v-dec06c47"]]),_a={M:"m",L:"l"},Kh="",$a={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:_a.M}},computed:{classList(){return["avatar",`avatar-size-${this.size}`]},validateName(){var t,n;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((n=this.lastName)==null?void 0:n.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Le}},wa=["src","alt"];function ka(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(i.openBlock(),i.createElementBlock("img",{key:0,class:i.normalizeClass(r.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,wa)):e.src&&e.userAvatar?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["user-avatar",r.classList]),style:i.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):r.validateName?(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass([r.classList,"default-avatar"])},i.toDisplayString(r.initials),3)):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["empty-avatar",r.classList])},[i.createVNode(d,{name:"camera-outline"})],2))}const Ca=_e($a,[["render",ka],["__scopeId","data-v-8ba12d0f"]]),Gh="",Oa={name:"IbBadge",props:{content:{type:[String,Number],default:""}},computed:{classes(){const t=["ib-badge"];return this.content.toString().length&&t.push("ib-badge-large"),t},normalizeContent(){return this.content>99?"99+":this.content}}};function Ea(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const Sa=_e(Oa,[["render",Ea],["__scopeId","data-v-328df75a"]]),Yh="",Ta={name:"IbButtonGroup"},Na={class:"ib-button-group"};function xa(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Na,[i.renderSlot(t.$slots,"default")])}const Aa=_e(Ta,[["render",xa]]),Zt={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},Wh="",Da={props:{status:{type:String,default:Zt.neutral,validator:t=>Object.keys(Zt).includes(t)},showIcon:{type:Boolean,default:!1}},computed:{classes(){const t=["ib-tag-pill"];return t.push(`ib-tag-pill-${this.status}`),t},iconName(){switch(this.status){case Zt.success:return"checkmark-outline";case Zt.neutral:return"time-outline";case Zt.info:return"information-circle-outline";case Zt.error:return"close-outline";default:return""}}},components:{IbIcon:Le}};function Ia(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[e.showIcon&&r.iconName.length?(i.openBlock(),i.createBlock(d,{key:0,name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),i.createElementVNode("span",null,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],2)}const Ma=_e(Da,[["render",Ia],["__scopeId","data-v-3604890c"]]),Pa={topLeft:"top-left",topCenter:"top-center",topRight:"top-right",rightTop:"right-top",rightCenter:"right-center",rightBottom:"right-bottom",bottomLeft:"bottom-left",bottomCenter:"bottom-center",bottomRight:"bottom-right",leftTop:"left-top",leftCenter:"left-center",leftBottom:"left-bottom"},Zh="",Jh="",Ba={name:"IbTooltip",props:{position:{type:String,default:Pa.topCenter},title:{type:String},isOpen:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this.parentNode=this.$el.parentNode,getComputedStyle(this.parentNode).position!=="absolute"&&(this.parentNode.style.position="relative")})},data(){return{isOpenedState:this.isOpen}},methods:{open(){this.isOpenedState=!0,this.$emit("open")},close(){this.isOpenedState=!1,this.$emit("close")}},computed:{classes(){const t=["ib-toggle-tip"];return t.push(`ib-${this.position}`),t}},watch:{isOpen(t){t?this.open():this.close()}},components:{IbIconButton:ut,IbIcon:Le}},La={class:"ib-toggle-tip-head"},Ra={class:"ib-toggle-tip-content"},ja={class:"ib-toggle-tip-button-set"};function Va(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",La,[i.createElementVNode("p",null,i.toDisplayString(e.title),1),i.createVNode(s,{class:"close-button",kind:"ghost",onClick:i.withModifiers(r.close,["prevent"])},{default:i.withCtx(()=>[i.createVNode(d,{name:"close-outline"})]),_:1},8,["onClick"])]),i.createElementVNode("div",Ra,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",ja,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const wi=_e(Ba,[["render",Va],["__scopeId","data-v-9e7c679e"]]),pr=27,ki=32,qa=13,Ci=9,Fa=38,Ha=37,za=39,Oi=40,Ua="click",{performance:Mn}=window,Ka=typeof(Mn==null?void 0:Mn.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>Mn.now():()=>Date.now(),an=new Map;let ln=!1;const Ei=t=>{an.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},Ga=()=>{ln||(document.addEventListener("click",Ei,{capture:!0}),ln=!0)},Ya=()=>{ln&&(document.removeEventListener("click",Ei),ln=!1)},Pn={created:(t,{value:n,arg:e="click"})=>{if(typeof n!="function")throw new Error(`[OutsideDirective] Value must be a function; got ${typeof n}!`);if(e!=="click")throw new Error(`[OutsideDirective] Cannot bind ${e} events; only click events are currently supported!`);an.has(t)||(ln||Ga(),an.set(t,{bindTimeStamp:Ka(),callback:n}))},beforeUnmount:t=>{an.delete(t),an.size===0&&Ya()}},sn={left:"left",right:"right",center:"center"},Bn={top:"top",bottom:"bottom"},e1="",t1="",Wa={name:"IbDropdown",directives:{Outside:Pn},props:{vertical:{type:String,default:Bn.bottom},horizontal:{type:String,default:sn.left},triggerClass:{default:""},isOpened:{type:Boolean,default:!1},showCloseIcon:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},triggerType:{type:String,default:Ua},destroyOnHide:{type:Boolean,default:!1}},watch:{isOpened(t){t?this.open():this.close()}},mounted(){this.$globalEvents.$on("dropdown:open",t=>{this.$el.contains(t.$el)||this.close()}),document.addEventListener("focus",this.closeOnEventOutside,!0),document.addEventListener("keyup",this.onKeyupDocument)},data(){return{isOpenedState:this.isOpened,timeout:null}},methods:{onKeydown(t){(t.keyCode===qa||t.keyCode===ki)&&(t.preventDefault(),this.toggle()),t.keyCode===Oi&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===pr&&(t.preventDefault(),this.close())},toggle(){this.isOpenedState?this.close():this.open()},open(){this.disabled||(this.isOpenedState=!0,this.$emit("open"),this.$globalEvents.$emit("dropdown:open",this))},close(){if(this.isOpenedState){if(this.disabled)return;this.isOpenedState=!1,this.$emit("close")}},debouncedOpen(){this.timeout=setTimeout(()=>{this.open()},300)},debouncedClose(){this.close(),clearTimeout(this.timeout)},closeOnClickIfRequired(){this.closeOnClick&&this.close()},closeOnEventOutside(t){this.$el.contains(t.target)||this.close()}},computed:{classes(){const t=this.vertical===Bn.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===sn.left?" dropdown-left":this.horizontal===sn.right?" dropdown-right":" dropdown-center",e=this.isOpenedState?" active":"";return t+n+e},triggerClasses(){let t=this.isOpenedState?"active":"";return this.disabled&&(t+=" dropdown-trigger-disabled"),this.triggerClass+t},hasTrigger(){return!!this.$slots.trigger}},beforeUnmount(){document.removeEventListener("focus",this.closeOnEventOutside,!0),document.removeEventListener("keypress",this.onKeydownDocument)}},Za={class:"ib-dropdown"},Ja={class:"footer-slot"};function Xa(t,n,e,o,a,r){const d=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",Za,[r.hasTrigger&&e.triggerType==="click"?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),ref:"dropdown",onKeydown:n[0]||(n[0]=(...s)=>r.onKeydown&&r.onKeydown(...s)),onClick:n[1]||(n[1]=i.withModifiers((...s)=>r.toggle&&r.toggle(...s),["prevent","stop"]))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),r.hasTrigger&&e.triggerType==="hover"?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),onMouseenter:n[2]||(n[2]=(...s)=>r.debouncedOpen&&r.debouncedOpen(...s)),onMouseleave:n[3]||(n[3]=(...s)=>r.debouncedClose&&r.debouncedClose(...s))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),!e.destroyOnHide||a.isOpenedState?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:2,ref:"body",class:i.normalizeClass("ib-dropdown-menu "+r.classes)},[i.createElementVNode("div",{class:"dropdown-body",onClick:n[5]||(n[5]=(...s)=>r.closeOnClickIfRequired&&r.closeOnClickIfRequired(...s))},[i.renderSlot(t.$slots,"body",{isOpenedState:a.isOpenedState},void 0,!0),e.showCloseIcon?(i.openBlock(),i.createElementBlock("span",{key:0,class:"close",onClick:n[4]||(n[4]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"close",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Ja,[i.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[i.vShow,a.isOpenedState]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"before",onClick:n[6]||(n[6]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[d,r.close]])}const Ln=_e(Wa,[["render",Xa],["__scopeId","data-v-dfb4a39a"]]),n1="",Qa={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===Oi){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const d=document.activeElement,s=d.querySelector(`.${this.rootClass}`);let f=d.nextElementSibling?d.nextElementSibling:(n=d.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(s&&window.getComputedStyle(s).display!=="none"){s.querySelector('a, button, input, [tabindex="0"]').focus();return}if(f){f.focus();return}const h=(o=(e=d.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];h&&h.nodeName!=="#text"&&h.focus()}if(t.keyCode===Fa){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const d=document.activeElement,s=d.previousElementSibling?d.previousElementSibling:(a=d.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!s){d.closest(`.${this.rootClass}`).parentNode.focus();return}if(s&&s.nodeName!=="#text"){const f=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(f&&window.getComputedStyle(f).display!=="none"){const h=Array.from(f.childNodes).filter(p=>p.nodeName!=="#text");(r=h[h.length-1])==null||r.childNodes[0].focus();return}s.focus()}}}}};function el(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...d)=>r.onKeydown&&r.onKeydown(...d))},[i.renderSlot(t.$slots,"default")],34)}const mr=_e(Qa,[["render",el]]),r1="",tl={props:{vertical:{type:String,default:Bn.bottom},horizontal:{type:String,default:sn.left},isOpened:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{proxyEvents(t){this.$emit(t.event,...t.args)}},data(){return{list:this.$refs.list}},computed:{hasTrigger(){return!!this.$slots.trigger}},components:{IbDropdown:Ln,IbList:mr}},nl={class:"dropdown-list-wrapper"};function rl(t,n,e,o,a,r){const d=i.resolveComponent("ib-list"),s=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",nl,[i.createVNode(s,i.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:r.proxyEvents}),i.createSlots({body:i.withCtx(({isOpened:f})=>[i.createVNode(d,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:f})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:f})=>[i.renderSlot(t.$slots,"trigger",{isOpened:f})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const Rn=_e(tl,[["render",rl]]),i1="",il={props:{checked:{type:Boolean,default:!1},href:{type:String}},computed:{attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),t}}},ol={class:"dropdown-item-wrapper"};function al(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",ol,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href?"a":"div"),i.mergeProps({class:e.checked?"active":""},r.attrs,{tabindex:"0"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{ref:"slot"})]),_:3},16,["class"]))])}const gr=_e(il,[["render",al]]),ll={common:"common",danger:"danger"},o1="",sl={name:"IbSplitButton",props:{id:{type:String,default:()=>ht()},kind:{type:String,default:ll.common},disabled:{type:Boolean,default:!1},saveSelected:{type:Boolean,default:!1}},mounted(){var t;if(this.childList=Array.from(this.$refs.list.children),(t=this.childList)==null||t.forEach((n,e)=>{n.addEventListener("click",()=>{this.childList[this.activeElemIdx].classList.remove("active"),this.saveSelected&&(this.activeElemIdx=e,localStorage.setItem(`split-button-${this.id}`,e))})}),this.saveSelected){const n=localStorage.getItem(`split-button-${this.id}`);n&&(this.activeElemIdx=n)}this.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:Le,IbDropdownList:Rn},methods:{setActiveItem(){this.mainButtonAttrs=this.$slots.default()[this.activeElemIdx].props,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}}},dl=["disabled"],cl=["disabled"],ul=["disabled"],fl={ref:"list"};function hl(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[a.isLink?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...f)=>r.onClickLink&&r.onClickLink(...f))}),i.toDisplayString(a.content),17,cl)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,dl)),i.createVNode(s,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(d,{name:"chevron-down-outline"})],8,ul)]),body:i.withCtx(()=>[i.createElementVNode("div",fl,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const pl=_e(sl,[["render",hl]]),a1="",ml={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function gl(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),i.mergeProps(r.attrs,{class:"ib-dropdown-item"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const yl=_e(ml,[["render",gl],["__scopeId","data-v-4cf00feb"]]),Ot={S:"s",M:"m",L:"l",XL:"xl"},l1="",vl={name:"IbModal",directives:{Outside:Pn},emits:{open:null,close:null},props:{active:{type:Boolean,default:!1},classList:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},size:{type:String,default:Ot.S}},watch:{active(t){this.isActive=t}},mounted(){var n,e,o,a;const t=(e=(n=this.$refs)==null?void 0:n.modal)==null?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea");(o=t[0])==null||o.addEventListener("keydown",r=>{r.keyCode===Ci&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===Ci&&!r.shiftKey&&(r.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)},data(){return{isActive:this.active}},methods:{showModal(t){t?this.open():this.close()},onTriggerBlur(){var t,n;(n=(t=this.$refs.modal)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus()},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;this.isActive=!1,(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var n;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").focus()},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===pr&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{bodyStyles(){const t={};return this.size===Ot.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Ot.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Ot.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Ot.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Ot.S&&t.push("modal-body-s"),this.size===Ot.M&&t.push("modal-body-m"),this.size===Ot.L&&t.push("modal-body-l"),this.size===Ot.XL&&t.push("modal-body-xl"),t},hasTrigger(){return!!this.$slots.trigger},hasHeader(){return!!this.$slots.header},hasFooter(){return!!this.$slots.footer}},components:{IbIconButton:ut,IbIcon:Le},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},bl={key:1,class:"modal-header"},_l={key:2,class:"modal-footer"};function $l(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),f=i.resolveDirective("outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[r.hasTrigger?(i.openBlock(),i.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...h)=>r.onTriggerBlur&&r.onTriggerBlur(...h)),onClick:n[1]||(n[1]=(...h)=>r.open&&r.open(...h))},[i.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["modal",e.classList]),ref:"modal"},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.bodyClassList),style:i.normalizeStyle(r.bodyStyles)},[e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(d,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",bl,[i.renderSlot(t.$slots,"header",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["modal-content",{"without-title":!r.hasHeader}])},[i.renderSlot(t.$slots,"body",{showModal:r.showModal},void 0,!0)],2),r.hasFooter?(i.openBlock(),i.createElementBlock("div",_l,[i.renderSlot(t.$slots,"footer",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0)],6)),[[f,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const wl=_e(vl,[["render",$l],["__scopeId","data-v-a8effd76"]]);function Si(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const s1="",kl={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return Si(t)},selectTab(t){this.selectedTabByDropdown=t,this.$emit("select-tab",t)},setDisabledTab(){return this.tabs.tabs.every(t=>t.disabled)}},computed:{isActive(){for(let t of this.tabs.tabs)if(t.id===this.selectedTab)return!0;return!1}},components:{IbDropdownList:Rn,IbDropdownItem:gr,IbIcon:Le}},Cl={class:"wrapper-tab-link dropdown-tab"},Ol=["tabindex"];function El(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),f=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Cl,[i.createVNode(f,{disabled:a.isDisabledDropdown,"close-on-click":!0},{trigger:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(["tab-link",{active:a.selectedTabByDropdown===e.selectedTab||r.isActive,disabled:a.isDisabledDropdown}]),tabindex:a.isDisabledDropdown?-1:0},[i.createTextVNode(i.toDisplayString(e.tabs.name)+" ",1),i.createVNode(d,{name:"chevron-down"})],10,Ol)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(h,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:h.id===e.selectedTab,href:r.createHref(h.id),tabindex:h.disabled?-1:0,class:i.normalizeClass([{disabled:h.disabled},"dropdown-tab-item"]),target:"_self",onClick:u=>r.selectTab(h.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const Ti=_e(kl,[["render",El]]),d1="",Sl={name:"IbTabs",props:{selectedTabId:{type:String,default:""}},data(){return{tabs:[],selectedTab:this.selectTabId}},watch:{selectedTabId(t){this.selectTab(t)}},created(){const t=[];this.$slots.default().forEach(n=>n.type===Symbol.for("v-fgt")?t.push(...n.children):t.push(n)),t.forEach(n=>{if(!n.props.name)this.tabs.push(n.props);else{const e=this.tabs.findIndex(o=>o.name===n.props.name);if(e!==-1)this.tabs[e].tabs.push(n.props);else{const o={name:n.props.name,tabs:[n.props]};this.tabs.push(o)}}});for(let n of this.tabs)if(!n.disabled)if(n.tabs){for(let e of n.tabs)if(!e.disabled){this.selectTab(e.id);return}}else{this.selectTab(n.id);return}},methods:{createHref(t){return Si(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:Ti},emits:["changeTab"]},Tl={class:"tabs"},Nl={class:"tabs-list"},xl={key:0,class:"wrapper-tab-link"},Al=["href","tabindex","onClick"],Dl={class:"tabs-content",ref:"tabHandler"};function Il(t,n,e,o,a,r){const d=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Tl,[i.createElementVNode("ul",Nl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,f)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:f},[s.name?(i.openBlock(),i.createBlock(d,{key:1,"selected-tab":a.selectedTab,tabs:s,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",xl,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===s.id,disabled:s.disabled}]),href:r.createHref(s.id),tabindex:s.disabled?-1:0,onClick:h=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,Al)]))]))),128))]),i.createElementVNode("div",Dl,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const Ml=_e(Sl,[["render",Il],["__scopeId","data-v-47d103be"]]),Pl={name:"IbTab",props:{title:{type:String,required:!0},id:{type:String,required:!0},disabled:{type:Boolean,default:!1},initialized:{type:Boolean,default:!1},name:{type:String,default:null}},computed:{isTabActive(){return this.$parent.selectedTab===this.id}}};function Bl(t,n,e,o,a,r){return i.withDirectives((i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default")],512)),[[i.vShow,r.isTabActive]])}const Ll=_e(Pl,[["render",Bl]]),Rl={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},jl={TYPE_ASC:"asc",TYPE_DESC:"desc"};class Ni{constructor(){this.tooltipInstance=null,this.tooltipContainer=null,this.uuid=null}getTooltipInstance(){return this.getTooltipInstance}getTooltipContainer(){return this.tooltipContainer}getId(){return this.uuid}generateUID(){this.uuid="tooltip_"+ht()}createTooltip(n,e,o){var r;if(!((r=e.text)!=null&&r.length))return;this.generateUID();const a=`
2
2
  position: absolute;
3
3
  top: 0px;
4
4
  left: 0px;
@@ -23,7 +23,7 @@
23
23
  * https://markjs.io/
24
24
  * Copyright (c) 2014–2018, Julian Kühnel
25
25
  * Released under the MIT license https://git.io/vwTVl
26
- *****************************************************/(function(t,n){(function(e,o){t.exports=o()})(qe,function(){class e{constructor(r,d=!0,s=[],f=5e3){this.ctx=r,this.iframes=d,this.exclude=s,this.iframesTimeout=f}static matches(r,d){const s=typeof d=="string"?[d]:d,f=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(f){let h=!1;return s.every(p=>!f.call(r,p)||(h=!0,!1)),h}return!1}getContexts(){let r=[];return(this.ctx!==void 0&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx=="string"?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(d=>{const s=r.filter(f=>f.contains(d)).length>0;r.indexOf(d)!==-1||s||r.push(d)}),r}getIframeContents(r,d,s=()=>{}){let f;try{const h=r.contentWindow;if(f=h.document,!h||!f)throw new Error("iframe inaccessible")}catch{s()}f&&d(f)}isIframeBlank(r){const d="about:blank",s=r.getAttribute("src").trim();return r.contentWindow.location.href===d&&s!==d&&s}observeIframeLoad(r,d,s){let f=!1,h=null;const p=()=>{if(!f){f=!0,clearTimeout(h);try{this.isIframeBlank(r)||(r.removeEventListener("load",p),this.getIframeContents(r,d,s))}catch{s()}}};r.addEventListener("load",p),h=setTimeout(p,this.iframesTimeout)}onIframeReady(r,d,s){try{r.contentWindow.document.readyState==="complete"?this.isIframeBlank(r)?this.observeIframeLoad(r,d,s):this.getIframeContents(r,d,s):this.observeIframeLoad(r,d,s)}catch{s()}}waitForIframes(r,d){let s=0;this.forEachIframe(r,()=>!0,f=>{s++,this.waitForIframes(f.querySelector("html"),()=>{--s||d()})},f=>{f||d()})}forEachIframe(r,d,s,f=()=>{}){let h=r.querySelectorAll("iframe"),p=h.length,u=0;h=Array.prototype.slice.call(h);const l=()=>{--p<=0&&f(u)};p||l(),h.forEach(c=>{e.matches(c,this.exclude)?l():this.onIframeReady(c,_=>{d(c)&&(u++,s(_)),l()},l)})}createIterator(r,d,s){return document.createNodeIterator(r,d,s,!1)}createInstanceOnIframe(r){return new e(r.querySelector("html"),this.iframes)}compareNodeIframe(r,d,s){const f=r.compareDocumentPosition(s),h=Node.DOCUMENT_POSITION_PRECEDING;return!!(f&h&&(d===null||d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(r){const d=r.previousNode();return{prevNode:d,node:(d===null||r.nextNode())&&r.nextNode()}}checkIframeFilter(r,d,s,f){let h=!1,p=!1;return f.forEach((u,l)=>{u.val===s&&(h=l,p=u.handled)}),this.compareNodeIframe(r,d,s)?(h!==!1||p?h===!1||p||(f[h].handled=!0):f.push({val:s,handled:!0}),!0):(h===!1&&f.push({val:s,handled:!1}),!1)}handleOpenIframes(r,d,s,f){r.forEach(h=>{h.handled||this.getIframeContents(h.val,p=>{this.createInstanceOnIframe(p).forEachNode(d,s,f)})})}iterateThroughNodes(r,d,s,f,h){const p=this.createIterator(d,r,f);let u,l,c=[],_=[],v=()=>({prevNode:l,node:u}=this.getIteratorNode(p),u);for(;v();)this.iframes&&this.forEachIframe(d,b=>this.checkIframeFilter(u,l,b,c),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),f)}),_.push(u);_.forEach(b=>{s(b)}),this.iframes&&this.handleOpenIframes(c,r,s,f),h()}forEachNode(r,d,s,f=()=>{}){const h=this.getContexts();let p=h.length;p||f(),h.forEach(u=>{const l=()=>{this.iterateThroughNodes(r,u,d,s,()=>{--p<=0&&f()})};this.iframes?this.waitForIframes(u,l):l()})}}class o{constructor(r){this.ctx=r,this.ie=!1;const d=window.navigator.userAgent;(d.indexOf("MSIE")>-1||d.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(r){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},r)}get opt(){return this._opt}get iterator(){return new e(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(r,d="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[d]=="function"&&s[d](`mark.js: ${r}`)}escapeStr(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(r){return this.opt.wildcards!=="disabled"&&(r=this.setupWildcardsRegExp(r)),r=this.escapeStr(r),Object.keys(this.opt.synonyms).length&&(r=this.createSynonymsRegExp(r)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),this.opt.diacritics&&(r=this.createDiacriticsRegExp(r)),r=this.createMergedBlanksRegExp(r),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.createJoinersRegExp(r)),this.opt.wildcards!=="disabled"&&(r=this.createWildcardsRegExp(r)),r=this.createAccuracyRegExp(r)}createSynonymsRegExp(r){const d=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",f=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let h in d)if(d.hasOwnProperty(h)){const p=d[h],u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);u!==""&&l!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(u)}|${this.escapeStr(l)})`,`gm${s}`),f+`(${this.processSynomyms(u)}|${this.processSynomyms(l)})`+f))}return r}processSynomyms(r){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),r}setupWildcardsRegExp(r){return(r=r.replace(/(?:\\)*\?/g,d=>d.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,d=>d.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(r){let d=this.opt.wildcards==="withSpaces";return r.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(r){return r.replace(/[^(|)\\]/g,(d,s,f)=>{let h=f.charAt(s+1);return/[(|)\\]/.test(h)||h===""?d:d+"\0"})}createJoinersRegExp(r){let d=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&d.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?r.split(/\u0000+/).join(`[${d.join("")}]*`):r}createDiacriticsRegExp(r){const d=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let f=[];return r.split("").forEach(h=>{s.every(p=>{if(p.indexOf(h)!==-1){if(f.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${d}`),`[${p}]`),f.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,f=typeof s=="string"?s:s.value,h=typeof s=="string"?[]:s.limiters,p="";switch(h.forEach(u=>{p+=`|${this.escapeStr(u)}`}),f){case"partially":default:return`()(${r})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(d))}]*${r}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${r})(?=$|\\s${p})`}}getSeparatedKeywords(r){let d=[];return r.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(f=>{f.trim()&&d.indexOf(f)===-1&&d.push(f)}):s.trim()&&d.indexOf(s)===-1&&d.push(s)}),{keywords:d.sort((s,f)=>f.length-s.length),length:d.length}}isNumeric(r){return Number(parseFloat(r))==r}checkRanges(r){if(!Array.isArray(r)||Object.prototype.toString.call(r[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(r),[];const d=[];let s=0;return r.sort((f,h)=>f.start-h.start).forEach(f=>{let{start:h,end:p,valid:u}=this.callNoMatchOnInvalidRanges(f,s);u&&(f.start=h,f.length=p-h,d.push(f),s=p)}),d}callNoMatchOnInvalidRanges(r,d){let s,f,h=!1;return r&&r.start!==void 0?(f=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&f-d>0&&f-s>0?h=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(r)}`),this.opt.noMatch(r))):(this.log(`Ignoring invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)),{start:s,end:f,valid:h}}checkWhitespaceRanges(r,d,s){let f,h=!0,p=s.length,u=d-p,l=parseInt(r.start,10)-u;return(f=(l=l>p?p:l)+parseInt(r.length,10))>p&&(f=p,this.log(`End range automatically set to the max value of ${p}`)),l<0||f-l<0||l>p||f>p?(h=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(l,f).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:l,end:f,valid:h}}getTextNodes(r){let d="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,f=>{s.push({start:d.length,end:(d+=f.textContent).length,node:f})},f=>this.matchesExclude(f.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{r({value:d,nodes:s})})}matchesExclude(r){return e.matches(r,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(r,d,s){const f=this.opt.element?this.opt.element:"mark",h=r.splitText(d),p=h.splitText(s-d);let u=document.createElement(f);return u.setAttribute("data-markjs","true"),this.opt.className&&u.setAttribute("class",this.opt.className),u.textContent=h.textContent,h.parentNode.replaceChild(u,h),p}wrapRangeInMappedTextNode(r,d,s,f,h){r.nodes.every((p,u)=>{const l=r.nodes[u+1];if(l===void 0||l.start>d){if(!f(p.node))return!1;const c=d-p.start,_=(s>p.end?p.end:s)-p.start,v=r.value.substr(0,p.start),b=r.value.substr(_+p.start);if(p.node=this.wrapRangeInTextNode(p.node,c,_),r.value=v+b,r.nodes.forEach((g,y)=>{y>=u&&(r.nodes[y].start>0&&y!==u&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),s-=_,h(p.node.previousSibling,p.start),!(s>p.end))return!1;d=p.end}return!0})}wrapMatches(r,d,s,f,h){const p=d===0?0:d+1;this.getTextNodes(u=>{u.nodes.forEach(l=>{let c;for(l=l.node;(c=r.exec(l.textContent))!==null&&c[p]!=="";){if(!s(c[p],l))continue;let _=c.index;if(p!==0)for(let v=1;v<p;v++)_+=c[v].length;l=this.wrapRangeInTextNode(l,_,_+c[p].length),f(l.previousSibling),r.lastIndex=0}}),h()})}wrapMatchesAcrossElements(r,d,s,f,h){const p=d===0?0:d+1;this.getTextNodes(u=>{let l;for(;(l=r.exec(u.value))!==null&&l[p]!=="";){let c=l.index;if(p!==0)for(let v=1;v<p;v++)c+=l[v].length;const _=c+l[p].length;this.wrapRangeInMappedTextNode(u,c,_,v=>s(l[p],v),(v,b)=>{r.lastIndex=b,f(v)})}h()})}wrapRangeFromIndex(r,d,s,f){this.getTextNodes(h=>{const p=h.value.length;r.forEach((u,l)=>{let{start:c,end:_,valid:v}=this.checkWhitespaceRanges(u,p,h.value);v&&this.wrapRangeInMappedTextNode(h,c,_,b=>d(b,u,h.value.substring(c,_),l),b=>{s(b,u)})}),f()})}unwrapMatches(r){const d=r.parentNode;let s=document.createDocumentFragment();for(;r.firstChild;)s.appendChild(r.removeChild(r.firstChild));d.replaceChild(s,r),this.ie?this.normalizeTextNode(d):d.normalize()}normalizeTextNode(r){if(r){if(r.nodeType===3)for(;r.nextSibling&&r.nextSibling.nodeType===3;)r.nodeValue+=r.nextSibling.nodeValue,r.parentNode.removeChild(r.nextSibling);else this.normalizeTextNode(r.firstChild);this.normalizeTextNode(r.nextSibling)}}markRegExp(r,d){this.opt=d,this.log(`Searching with expression "${r}"`);let s=0,f="wrapMatches";const h=p=>{s++,this.opt.each(p)};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),this[f](r,this.opt.ignoreGroups,(p,u)=>this.opt.filter(u,p,s),h,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,d){this.opt=d;let s=0,f="wrapMatches";const{keywords:h,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),u=this.opt.caseSensitive?"":"i",l=c=>{let _=new RegExp(this.createRegExp(c),`gm${u}`),v=0;this.log(`Searching with expression "${_}"`),this[f](_,1,(b,g)=>this.opt.filter(g,c,s,v),b=>{v++,s++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(c),h[p-1]===c?this.opt.done(s):l(h[h.indexOf(c)+1])})};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),p===0?this.opt.done(s):l(h[0])}markRanges(r,d){this.opt=d;let s=0,f=this.checkRanges(r);f&&f.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(f)),this.wrapRangeFromIndex(f,(h,p,u,l)=>this.opt.filter(h,p,u,l),(h,p)=>{s++,this.opt.each(h,p)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(r){this.opt=r;let d=this.opt.element?this.opt.element:"*";d+="[data-markjs]",this.opt.className&&(d+=`.${this.opt.className}`),this.log(`Removal selector "${d}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const f=e.matches(s,d),h=this.matchesExclude(s);return!f||h?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const r=new o(a);return this.mark=(d,s)=>(r.mark(d,s),this),this.markRegExp=(d,s)=>(r.markRegExp(d,s),this),this.markRanges=(d,s)=>(r.markRanges(d,s),this),this.unmark=d=>(r.unmark(d),this),this}})})(Mi);var Ls=Mi.exports;const Rs=jn(Ls),y1="";function Pi(t){return JSON.parse(JSON.stringify(t))}const js={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],props:{classList:[String,Array],placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},menuSize:{type:[String,Number]},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return ht()}},options:{default(){return[]}},modelValue:{type:[Number,String,Array],default(){return[]}},value:{type:[Number,String,Array],default(){return[]}},maxSelectedNames:{type:Number,default:2},isMultiple:{type:Boolean,default:!0},parentAutoCheck:{type:Boolean,default:!0},strings:{type:Object,default(){return{}}},onlyEndNodes:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!0},htmlOptionTitle:{type:Boolean,default:!1},isBookmarkable:{type:Boolean,default:!1},initBookmarks:{type:Array,default:()=>[]},showInputs:{type:Boolean,default(t){return t.isMultiple}},dependency:{type:String},filterId:{type:String,default(){return ht()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},emptyMessage:{type:String,default:""},errorMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabetSort:{type:Boolean,default:!1}},emits:["close","input","blur","search","resize","submit","clearValue","update:modelValue"],watch:{value(t){this.val=t,(!Array.isArray(t)||t.join(",")!==Object.keys(this.selected).join(","))&&this.setPreparedValues(this.actualOptions,!1)},modelValue:{handler(t){this.val=t,this.actualOptions=[],this.setPreparedValues()},deep:!0},val(t){this.watchClearValue&&(!t||Array.isArray(t)&&!t.length)&&this.setPreparedValues(this.actualOptions).then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},options:{handler(t){this.initialOptions=Pi(t)},deep:!0},initialOptions(t){let n=!0;if(typeof t=="function")n=!1;else{const e=[],o=t;Array.prototype.forEach.call(o,a=>{a.id!==void 0&&e.push(a.id)}),n=JSON.stringify(e)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=e}(this.isInitialized&&!n||this.isWatching)&&this.setPreparedValues().then(()=>{const e=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:e,filter:this.filterId})})},dependency(t,n){this.$nextTick(()=>{this.registerDependency(n)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new Rs(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){var t,n,e,o,a,r,d,s;return this.defaultFilter=f=>{this.marker.unmark();const h=this.filterString.toLowerCase().trim();this.filterFunc.call(this,f,h),h&&this.marker.mark(h)},{initialOptions:Pi(this.options),val:this.modelValue?this.modelValue:this.value,size:{left:this.initialSize&&this.initialSize.left||0,right:this.initialSize&&this.initialSize.right||0},resizingProp:null,isInitialized:!1,optionsIdsWatch:[],isLoading:!1,actualName:this.isMultiple?this.name+"[]":this.name,filterString:"",actualOptions:[],actualBookmarkedOptions:{},selected:[],isOpen:!1,vertical:"bottom",allOptionsIsChecked:!0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,focusedOptionId:"",actualStrings:{searchPlaceholder:lang(this.searchPlaceholderText.length?this.searchPlaceholderText:"search_placeholder",(t=this.LANG_COMPONENTS)==null?void 0:t.COMPONENT_SELECT),emptyTitle:lang("empty_title",(n=this.LANG_COMPONENTS)==null?void 0:n.COMPONENT_SELECT),selectAllOptions:lang("all_options",(e=this.LANG_COMPONENTS)==null?void 0:e.COMPONENT_SELECT),allSelected:lang("all_selected",(o=this.LANG_COMPONENTS)==null?void 0:o.COMPONENT_SELECT),loading:lang("loading",(a=this.LANG_COMPONENTS)==null?void 0:a.COMPONENT_SELECT)+"...",selectedCount:lang("selected_count",(r=this.LANG_COMPONENTS)==null?void 0:r.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(d=this.LANG_COMPONENTS)==null?void 0:d.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT),...this.strings},dependencyValue:null}},methods:{onBlur(){setTimeout(()=>{this.isOpen||this.$emit("blur")},200)},inputKeyupDown(){this.focusOnFirstOptions()},comboboxKeyupDown(){if(this.showSearch){this.$refs.search.focus();return}this.focusOnFirstOptions()},focus(){this.$refs.combobox.focus()},focusOnFirstOptions(){this.$refs.list.$el.querySelector("[tabindex]:not(hidden)").focus()},startResizing(t){this.resizingProp=t},endResizing(){this.resizingProp&&(this.resizingProp=null,this.$emit("resize",this.size))},onResize(t){switch(this.resizingProp){case"left":this.size.left=Math.max(this.size.left-t.movementX,0);break;case"right":this.size.right=Math.max(this.size.right+t.movementX,0);break}},registerDependency(t){this.dependency?(this.$globalEvents.$on("select-"+this.dependency+":update",n=>{this.clear(),this.dependencyValue=n,this.dependencyValue&&this.dependencyValue.values&&(!Array.isArray(this.dependencyValue.values)||this.dependencyValue.values.length)&&this.setPreparedValues()}),this.isLoading=!1):(this.$globalEvents.$off("select-"+t+":update"),this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})}))},filter(t,n){this.filterString=t,this.$emit("search",{search:this.filterString}),this.defaultFilter(n)},setPreparedValues(t){let n=t||this.initialOptions;return this.alphabetSort&&(n=n.sort((e,o)=>e.title.toLowerCase().localeCompare(o.title.toLowerCase()))),this.prepare(n).then(([e,o])=>{this.actualOptions=e,this.allOptionsIsChecked=this.checkIfOptionsChecked(e),this.isInitialized=!0,this.selected=o,this.setBookmarkedOptions(e)})},clear(){this.setPreparedValues(),this.allOptionsIsChecked=!1,this.selected=[],this.isMultiple?(this.$emit("update:modelValue",null),this.$emit("input",null),this.$emit("clear-value",null)):(this.$emit("update:modelValue",[]),this.$emit("input",[]),this.$emit("clear-value",[])),this.setPreparedValues()},clearValue(){this.clear(),this.setPreparedValues()},prepare(t){return new Promise(n=>{const e={},o=[];let a=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),a=a.then(t)):a=a.then(()=>t),a.then(r=>(this.isLoading=!1,r.forEach(d=>{d.initiallyVisible=typeof d.visible>"u"?!0:d.visible,d.visible=d.initiallyVisible,d.readonly=!!d.readonly,d.isDisabled=!1,d.checked=this.isMultiple?this.val!==null&&this.val.findIndex(s=>d.id==s)>-1:this.val!==null&&this.val==d.id,d.checked&&(!this.onlyEndNodes||!d.children)&&(e[d.id]=d),d.children&&(this.hasTreeChildren=!0,d.isChildrenVisible=!1),o.push(new Promise(s=>{d.children?this.prepare(d.children).then(([f,h])=>{d.children=f,Object.assign(e,h),s(d)}):s(d)}))}),Promise.all(o).then(d=>{n([d,e])}))).catch(r=>{throw this.isLoading=!1,r})})},filterFunc(t,n){let e=0;return t.forEach(o=>{let a=o.initiallyVisible&&o.title&&o.title.toString().toLowerCase().includes(n)&&!this.actualBookmarkedOptions[o.id];if(o.children&&o.children.length){let r=this.filterFunc(o.children,n);e+=r,r&&(o.isChildrenVisible=!!n||!!Object.keys(this.actualBookmarkedOptions).length,o.isDisabled=r<o.children.length&&!this.isBookmarkable),a?r||(a=!1):a=!!r}o.visible=a,a&&e++}),e},submit(){this.change();const t=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":submit",{values:t,filter:this.filterId}),this.$emit("submit")},change(){const t=Object.keys(this.selected);this.isMultiple?(this.$emit("update:modelValue",t),this.$emit("input",t)):(this.$emit("update:modelValue",t[0]),this.$emit("input",t[0])),this.$globalEvents.$emit("select-"+this.filterId+":update",{values:t,filter:this.filterId}),this.$refs.dropdown.close()},checkIfOptionsChecked(t){return t.every(n=>n.checked||n.readonly)},registerCheck(t,n,e){if(n)if(t.checked=!0,this.isMultiple)this.onlyEndNodes&&t.children&&t.children.length||(this.selected[t.id]=t,this.$emit("update:modelValue",Object.keys(this.selected)),this.$emit("input",Object.keys(this.selected)));else{const o=Object.keys(this.selected)[0];o&&(this.selected[o].checked=!1),this.selected={[t.id]:t},this.change()}else delete this.selected[t.id],t.checked=!1,this.$emit("update:modelValue",Object.keys(this.selected)),this.$emit("input",Object.keys(this.selected));this.toggleDuplicateOptions(this.actualOptions,t.id,n),e&&(this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions))},toggleDuplicateOptions(t,n,e){for(let o of t)o.id===n&&(o.checked=e),o.children&&this.toggleDuplicateOptions(o.children,n,e)},manageAll(){this.allOptionsIsChecked=!this.allOptionsIsChecked,this.traverseTree(this.actualOptions,t=>{t.readonly||this.registerCheck(t,this.allOptionsIsChecked,!1)})},traverseTree(t,n){t.forEach(e=>{n(e),e.children&&e.children.length&&this.traverseTree(e.children,n)})},getArrayOptions(t){let n=[];for(let e of t)n.push(e),e.children&&(n=n.concat(this.getArrayOptions(e.children)));return n},toggleBookmark(t){this.actualBookmarkedOptions[t.id]?delete this.actualBookmarkedOptions[t.id]:this.actualBookmarkedOptions[t.id]=t,this.$emit("toggle-bookmarked-option",t.id),this.filter(this.filterString,this.actualOptions)},setBookmarkedOptions(t){t.forEach(n=>{n.children&&n.children.length?this.setBookmarkedOptions(n.children):this.initBookmarks.includes(n.id)&&(this.actualBookmarkedOptions[n.id]=n)}),this.filter(this.filterString,t)},onClose(){this.isOpen=!1,this.filter("",this.actualOptions),this.isMultiple?this.$emit("close",Object.keys(this.selected)):this.$emit("close",Object.keys(this.selected)[0]),this.$emit("blur"),this.vertical="bottom"},onOpen(){const t=document.documentElement.scrollHeight;this.isOpen=!0,this.$nextTick(()=>{document.documentElement.scrollHeight>t&&(this.vertical="top")})}},computed:{hasTrigger(){return!!this.$slots.trigger},hasTriggerContent(){return!!this.$slots.triggerContent},hasEmptyMessage(){return!!this.$slots.emptyMessage},treeDropPos(){return this.menuSize?{width:this.menuSize+"px",maxWidth:this.menuSize+"px",minWidth:this.menuSize+"px"}:{width:"auto",position:"absolute",left:-this.size.left+"px",right:-this.size.right+"px"}},hasHierarchy(){return this.actualOptions.some(t=>t.children)},selectedKeys(){return Object.keys(this.selected).filter(t=>{if(!this.onlyEndNodes||!this.selected[t].children)return!0})},selectStatus(){return this.staticPlaceholder?this.placeholder:this.isLoading?this.actualStrings.loading:this.selectedKeys.length?this.selectedKeys.length<this.maxSelectedNames?this.selectedKeys.map(t=>this.selected[t].title).join(","):this.selectedKeys.length<this.optionsCount?this.actualStrings.selectedCount.replace("{selected}",this.selectedKeys.length).replace("{all}",this.optionsCount):this.actualStrings.allSelected:this.emptyMessage},isEmpty(){return Array.isArray(this.value)?!this.value.length:!this.value},requiredDependencyNotFilled(){return this.dependency&&(!this.dependencyValue||!this.dependencyValue.values||!this.dependencyValue.values.length)},showSearch(){return this.useSearch||this.optionsCount>10},arrayOfOptions(){return this.getArrayOptions(this.actualOptions)},optionsCount(){let t=[];for(let n of this.arrayOfOptions)(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&t.push(n.id);return t.length},visibleOptionsCount(){let t=[];return this.traverseTree(this.actualOptions,n=>{(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&n.visible&&t.push(n.id)}),t.length+(this.isBookmarkable?Object.keys(this.actualBookmarkedOptions).length:0)}},components:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln,IbInput:br,List:mr,"select-option":Bs},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},Vs={key:0,class:"tree-select-empty"},qs={key:1,class:"tree-select-default-empty tree-select-empty"};function Fs(t,n,e,o,a,r){const d=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list"),u=i.resolveComponent("ib-input"),l=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.errorMessage?(i.openBlock(),i.createBlock(d,{key:0,class:"tree-select-error"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["tree-select",{...e.classList,"tree-select-custom-trigger-content":r.hasTriggerContent}])},[i.createVNode(l,{disabled:a.isLoading,"is-resizable":e.isResizable,vertical:a.vertical,ref:"dropdown",onClose:r.onClose,onOpen:r.onOpen},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle(r.treeDropPos)},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[6]||(n[6]=c=>r.startResizing("left"))},null,32)):i.createCommentVNode("",!0),e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[7]||(n[7]=c=>r.startResizing("right"))},null,32)):i.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(i.openBlock(),i.createBlock(p,{key:2,class:i.normalizeClass({"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualBookmarkedOptions,c=>(i.openBlock(),i.createBlock(h,{key:"bookmark"+c.id,option:c,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]))),128))]),_:1},8,["class"])):i.createCommentVNode("",!0),r.showSearch?(i.openBlock(),i.createBlock(u,{key:3,class:"tree-search",ref:"search","show-icon":!0,value:a.filterString,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[8]||(n[8]=c=>r.filter(c,a.actualOptions)),onKeyup:i.withKeys(r.inputKeyupDown,["down"])},null,8,["value","aria-label","placeholder","onKeyup"])):i.createCommentVNode("",!0),i.createVNode(p,{ref:"list",role:"listbox",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!r.visibleOptionsCount&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",Vs,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",qs,i.toDisplayString(a.actualStrings.emptyTitle),1)):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",{class:"tree-select-empty"},i.toDisplayString(a.actualStrings.requiredDependencyNotFilled),513),[[i.vShow,r.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&a.actualOptions.length>0?(i.openBlock(),i.createBlock(h,{key:2,option:{title:t.lang("none","select"),id:null,checked:r.isEmpty},name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","name","parent-auto-check","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","show-input"])):i.createCommentVNode("",!0),r.requiredDependencyNotFilled?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[e.allOptions&&e.isMultiple&&r.visibleOptionsCount&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(h,{key:0,option:{title:a.actualStrings.selectAllOptions,id:"!all!",initiallyVisible:!0,visible:!0,isDisabled:r.visibleOptionsCount<r.optionsCount,checked:a.allOptionsIsChecked,isIndeterminate:!!Object.keys(a.selected).length},"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!1,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs,onCheck:r.manageAll,onOnFocus:n[9]||(n[9]=c=>a.focusedOptionId=c)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","onCheck"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,c=>i.renderSlot(t.$slots,a.actualName,{key:e.name+c.value,option:c,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(h,{option:c,"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,onOnFocus:n[10]||(n[10]=_=>a.focusedOptionId=_)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","onCheck","onToggleBookmark"]),[[i.vShow,c.visible]])])),128))],64))]),_:3},8,["class"])],6)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(()=>[i.renderSlot(t.$slots,"trigger",{selectedCount:r.selectedKeys.length})]),key:"0"}:{name:"trigger",fn:i.withCtx(({isOpened:c})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":c,"has-clear-button":e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox",onClick:n[2]||(n[2]=i.withModifiers(()=>{},["prevent"])),onBlur:n[3]||(n[3]=(..._)=>r.onBlur&&r.onBlur(..._)),onKeyup:[n[4]||(n[4]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["down"])),n[5]||(n[5]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[r.hasTriggerContent?i.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:r.selectedKeys.length}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.htmlOptionTitle?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass({placeholder:!r.selectStatus}),innerHTML:r.selectStatus||e.placeholder},null,10,["innerHTML"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass({placeholder:!r.selectStatus})},i.toDisplayString(r.selectStatus||e.placeholder),3))],64)),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(f,{key:2,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),onKeypress:n[0]||(n[0]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:n[1]||(n[1]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:i.withKeys(i.withModifiers(r.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(s,{name:c?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])],42,["aria-label","aria-activedescendant"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","onClose","onOpen"])],2)],64)}const Bi=_e(js,[["render",Fs]]),v1="",Hs={name:"IbLimitSelector",props:{labelSelect:{type:String,required:!0},value:{type:Number},options:{type:Array,default:()=>[10,25,50,100]}},watch(t){this.selected=t},data(){return{selected:this.value}},methods:{selectItem(t){this.selected=t,this.onChange(t)},onChange(t){Number.isInteger(+t)&&this.$emit("select",+t)}},computed:{prepareOptions(){return this.options.map(t=>({id:t,title:t}))}},components:{IbLabel:dn,IbSelect:Bi}},zs={class:"report-limit-selector"};function Us(t,n,e,o,a,r){const d=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",zs,[i.createVNode(d,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(s,{classList:"report-limit-selector-select",value:e.value,options:r.prepareOptions,"is-multiple":!1,"show-clear-button":!1,onInput:r.selectItem},null,8,["value","options","onInput"])])}const Li=_e(Hs,[["render",Us]]),b1="",Ks={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitValue(){this.currentPage=1}},methods:{changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},components:{IbIconButton:ut,IbIcon:Le,IbInput:br,IbLabel:dn,IbLimitSelector:Li,IbTooltip:jt}},Gs={class:"report-controls"},Ys={class:"repot-pagination"},Ws={class:"pagination-input"},Zs={class:"row-count"},Js={class:"pagination-wrapper"},Xs=["onClick"];function Qs(t,n,e,o,a,r){const d=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),f=i.resolveComponent("ib-input"),h=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Gs,[i.createVNode(d,{onSelect:r.changeLimit,value:a.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),i.createElementVNode("div",Ys,[e.showPaginationInput?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelInput),1)]),_:1}),i.createElementVNode("div",Ws,[i.createVNode(f,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Zs,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(u,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=l=>r.onSelect(a.currentPage-1))},{default:i.withCtx(()=>[i.createVNode(h,{name:"chevron-back-outline"}),e.tooltipTextPrev?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextPrev},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"]),i.createElementVNode("ul",Js,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(l,c)=>i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:c,class:i.normalizeClass(["pagination-item",{active:c+1===a.currentPage,"dots-left":a.indexSpaceLeft===c+1,"dots-right":a.indexSpaceRight===c+1}]),onClick:_=>r.onSelect(c+1)},[i.createElementVNode("button",null,i.toDisplayString(c+1),1)],10,Xs)),[[i.vShow,r.showItem(c+1)]])),128))]),i.createVNode(u,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===r.countPagePagination,onClick:n[1]||(n[1]=l=>r.onSelect(a.currentPage+1))},{default:i.withCtx(()=>[i.createVNode(h,{name:"chevron-forward-outline"}),e.tooltipTextNext?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextNext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const ed=_e(Ks,[["render",Qs]]),cn={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},_1="",td={props:{states:{type:String,default:cn.PROGRESS},progress:{type:[String,Number],default:0},ariaLabel:{type:String,required:!0}},computed:{classes(){const t=["ib-progress-bar"];return t.push(`progress-bar-${this.states}`),t},iconName(){return this.states===cn.SUCCESS?"checkmark-circle":this.states===cn.FAILED||this.states===cn.CANCELING||this.states===cn.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Ri=t=>(i.pushScopeId("data-v-a0217859"),t=t(),i.popScopeId(),t),nd={class:"ib-progress-bar-wrapper"},rd=["aria-label","aria-valuenow"],id=[Ri(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],od=Ri(()=>i.createElementVNode("div",null,null,-1));function ad(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",nd,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",role:"meter","aria-label":e.ariaLabel,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:i.normalizeStyle({width:e.progress+"%"})},id,12,rd),od],2),i.withDirectives(i.createVNode(d,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const ld=_e(td,[["render",ad],["__scopeId","data-v-a0217859"]]),sd={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
26
+ *****************************************************/(function(t,n){(function(e,o){t.exports=o()})(qe,function(){class e{constructor(r,d=!0,s=[],f=5e3){this.ctx=r,this.iframes=d,this.exclude=s,this.iframesTimeout=f}static matches(r,d){const s=typeof d=="string"?[d]:d,f=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(f){let h=!1;return s.every(p=>!f.call(r,p)||(h=!0,!1)),h}return!1}getContexts(){let r=[];return(this.ctx!==void 0&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx=="string"?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(d=>{const s=r.filter(f=>f.contains(d)).length>0;r.indexOf(d)!==-1||s||r.push(d)}),r}getIframeContents(r,d,s=()=>{}){let f;try{const h=r.contentWindow;if(f=h.document,!h||!f)throw new Error("iframe inaccessible")}catch{s()}f&&d(f)}isIframeBlank(r){const d="about:blank",s=r.getAttribute("src").trim();return r.contentWindow.location.href===d&&s!==d&&s}observeIframeLoad(r,d,s){let f=!1,h=null;const p=()=>{if(!f){f=!0,clearTimeout(h);try{this.isIframeBlank(r)||(r.removeEventListener("load",p),this.getIframeContents(r,d,s))}catch{s()}}};r.addEventListener("load",p),h=setTimeout(p,this.iframesTimeout)}onIframeReady(r,d,s){try{r.contentWindow.document.readyState==="complete"?this.isIframeBlank(r)?this.observeIframeLoad(r,d,s):this.getIframeContents(r,d,s):this.observeIframeLoad(r,d,s)}catch{s()}}waitForIframes(r,d){let s=0;this.forEachIframe(r,()=>!0,f=>{s++,this.waitForIframes(f.querySelector("html"),()=>{--s||d()})},f=>{f||d()})}forEachIframe(r,d,s,f=()=>{}){let h=r.querySelectorAll("iframe"),p=h.length,u=0;h=Array.prototype.slice.call(h);const l=()=>{--p<=0&&f(u)};p||l(),h.forEach(c=>{e.matches(c,this.exclude)?l():this.onIframeReady(c,_=>{d(c)&&(u++,s(_)),l()},l)})}createIterator(r,d,s){return document.createNodeIterator(r,d,s,!1)}createInstanceOnIframe(r){return new e(r.querySelector("html"),this.iframes)}compareNodeIframe(r,d,s){const f=r.compareDocumentPosition(s),h=Node.DOCUMENT_POSITION_PRECEDING;return!!(f&h&&(d===null||d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(r){const d=r.previousNode();return{prevNode:d,node:(d===null||r.nextNode())&&r.nextNode()}}checkIframeFilter(r,d,s,f){let h=!1,p=!1;return f.forEach((u,l)=>{u.val===s&&(h=l,p=u.handled)}),this.compareNodeIframe(r,d,s)?(h!==!1||p?h===!1||p||(f[h].handled=!0):f.push({val:s,handled:!0}),!0):(h===!1&&f.push({val:s,handled:!1}),!1)}handleOpenIframes(r,d,s,f){r.forEach(h=>{h.handled||this.getIframeContents(h.val,p=>{this.createInstanceOnIframe(p).forEachNode(d,s,f)})})}iterateThroughNodes(r,d,s,f,h){const p=this.createIterator(d,r,f);let u,l,c=[],_=[],v=()=>({prevNode:l,node:u}=this.getIteratorNode(p),u);for(;v();)this.iframes&&this.forEachIframe(d,b=>this.checkIframeFilter(u,l,b,c),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),f)}),_.push(u);_.forEach(b=>{s(b)}),this.iframes&&this.handleOpenIframes(c,r,s,f),h()}forEachNode(r,d,s,f=()=>{}){const h=this.getContexts();let p=h.length;p||f(),h.forEach(u=>{const l=()=>{this.iterateThroughNodes(r,u,d,s,()=>{--p<=0&&f()})};this.iframes?this.waitForIframes(u,l):l()})}}class o{constructor(r){this.ctx=r,this.ie=!1;const d=window.navigator.userAgent;(d.indexOf("MSIE")>-1||d.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(r){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},r)}get opt(){return this._opt}get iterator(){return new e(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(r,d="debug"){const s=this.opt.log;this.opt.debug&&typeof s=="object"&&typeof s[d]=="function"&&s[d](`mark.js: ${r}`)}escapeStr(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(r){return this.opt.wildcards!=="disabled"&&(r=this.setupWildcardsRegExp(r)),r=this.escapeStr(r),Object.keys(this.opt.synonyms).length&&(r=this.createSynonymsRegExp(r)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),this.opt.diacritics&&(r=this.createDiacriticsRegExp(r)),r=this.createMergedBlanksRegExp(r),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.createJoinersRegExp(r)),this.opt.wildcards!=="disabled"&&(r=this.createWildcardsRegExp(r)),r=this.createAccuracyRegExp(r)}createSynonymsRegExp(r){const d=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",f=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let h in d)if(d.hasOwnProperty(h)){const p=d[h],u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);u!==""&&l!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(u)}|${this.escapeStr(l)})`,`gm${s}`),f+`(${this.processSynomyms(u)}|${this.processSynomyms(l)})`+f))}return r}processSynomyms(r){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),r}setupWildcardsRegExp(r){return(r=r.replace(/(?:\\)*\?/g,d=>d.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,d=>d.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(r){let d=this.opt.wildcards==="withSpaces";return r.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(r){return r.replace(/[^(|)\\]/g,(d,s,f)=>{let h=f.charAt(s+1);return/[(|)\\]/.test(h)||h===""?d:d+"\0"})}createJoinersRegExp(r){let d=[];const s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&d.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?r.split(/\u0000+/).join(`[${d.join("")}]*`):r}createDiacriticsRegExp(r){const d=this.opt.caseSensitive?"":"i",s=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let f=[];return r.split("").forEach(h=>{s.every(p=>{if(p.indexOf(h)!==-1){if(f.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${d}`),`[${p}]`),f.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let s=this.opt.accuracy,f=typeof s=="string"?s:s.value,h=typeof s=="string"?[]:s.limiters,p="";switch(h.forEach(u=>{p+=`|${this.escapeStr(u)}`}),f){case"partially":default:return`()(${r})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(d))}]*${r}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${r})(?=$|\\s${p})`}}getSeparatedKeywords(r){let d=[];return r.forEach(s=>{this.opt.separateWordSearch?s.split(" ").forEach(f=>{f.trim()&&d.indexOf(f)===-1&&d.push(f)}):s.trim()&&d.indexOf(s)===-1&&d.push(s)}),{keywords:d.sort((s,f)=>f.length-s.length),length:d.length}}isNumeric(r){return Number(parseFloat(r))==r}checkRanges(r){if(!Array.isArray(r)||Object.prototype.toString.call(r[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(r),[];const d=[];let s=0;return r.sort((f,h)=>f.start-h.start).forEach(f=>{let{start:h,end:p,valid:u}=this.callNoMatchOnInvalidRanges(f,s);u&&(f.start=h,f.length=p-h,d.push(f),s=p)}),d}callNoMatchOnInvalidRanges(r,d){let s,f,h=!1;return r&&r.start!==void 0?(f=(s=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&f-d>0&&f-s>0?h=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(r)}`),this.opt.noMatch(r))):(this.log(`Ignoring invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)),{start:s,end:f,valid:h}}checkWhitespaceRanges(r,d,s){let f,h=!0,p=s.length,u=d-p,l=parseInt(r.start,10)-u;return(f=(l=l>p?p:l)+parseInt(r.length,10))>p&&(f=p,this.log(`End range automatically set to the max value of ${p}`)),l<0||f-l<0||l>p||f>p?(h=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):s.substring(l,f).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:l,end:f,valid:h}}getTextNodes(r){let d="",s=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,f=>{s.push({start:d.length,end:(d+=f.textContent).length,node:f})},f=>this.matchesExclude(f.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{r({value:d,nodes:s})})}matchesExclude(r){return e.matches(r,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(r,d,s){const f=this.opt.element?this.opt.element:"mark",h=r.splitText(d),p=h.splitText(s-d);let u=document.createElement(f);return u.setAttribute("data-markjs","true"),this.opt.className&&u.setAttribute("class",this.opt.className),u.textContent=h.textContent,h.parentNode.replaceChild(u,h),p}wrapRangeInMappedTextNode(r,d,s,f,h){r.nodes.every((p,u)=>{const l=r.nodes[u+1];if(l===void 0||l.start>d){if(!f(p.node))return!1;const c=d-p.start,_=(s>p.end?p.end:s)-p.start,v=r.value.substr(0,p.start),b=r.value.substr(_+p.start);if(p.node=this.wrapRangeInTextNode(p.node,c,_),r.value=v+b,r.nodes.forEach((g,y)=>{y>=u&&(r.nodes[y].start>0&&y!==u&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),s-=_,h(p.node.previousSibling,p.start),!(s>p.end))return!1;d=p.end}return!0})}wrapMatches(r,d,s,f,h){const p=d===0?0:d+1;this.getTextNodes(u=>{u.nodes.forEach(l=>{let c;for(l=l.node;(c=r.exec(l.textContent))!==null&&c[p]!=="";){if(!s(c[p],l))continue;let _=c.index;if(p!==0)for(let v=1;v<p;v++)_+=c[v].length;l=this.wrapRangeInTextNode(l,_,_+c[p].length),f(l.previousSibling),r.lastIndex=0}}),h()})}wrapMatchesAcrossElements(r,d,s,f,h){const p=d===0?0:d+1;this.getTextNodes(u=>{let l;for(;(l=r.exec(u.value))!==null&&l[p]!=="";){let c=l.index;if(p!==0)for(let v=1;v<p;v++)c+=l[v].length;const _=c+l[p].length;this.wrapRangeInMappedTextNode(u,c,_,v=>s(l[p],v),(v,b)=>{r.lastIndex=b,f(v)})}h()})}wrapRangeFromIndex(r,d,s,f){this.getTextNodes(h=>{const p=h.value.length;r.forEach((u,l)=>{let{start:c,end:_,valid:v}=this.checkWhitespaceRanges(u,p,h.value);v&&this.wrapRangeInMappedTextNode(h,c,_,b=>d(b,u,h.value.substring(c,_),l),b=>{s(b,u)})}),f()})}unwrapMatches(r){const d=r.parentNode;let s=document.createDocumentFragment();for(;r.firstChild;)s.appendChild(r.removeChild(r.firstChild));d.replaceChild(s,r),this.ie?this.normalizeTextNode(d):d.normalize()}normalizeTextNode(r){if(r){if(r.nodeType===3)for(;r.nextSibling&&r.nextSibling.nodeType===3;)r.nodeValue+=r.nextSibling.nodeValue,r.parentNode.removeChild(r.nextSibling);else this.normalizeTextNode(r.firstChild);this.normalizeTextNode(r.nextSibling)}}markRegExp(r,d){this.opt=d,this.log(`Searching with expression "${r}"`);let s=0,f="wrapMatches";const h=p=>{s++,this.opt.each(p)};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),this[f](r,this.opt.ignoreGroups,(p,u)=>this.opt.filter(u,p,s),h,()=>{s===0&&this.opt.noMatch(r),this.opt.done(s)})}mark(r,d){this.opt=d;let s=0,f="wrapMatches";const{keywords:h,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),u=this.opt.caseSensitive?"":"i",l=c=>{let _=new RegExp(this.createRegExp(c),`gm${u}`),v=0;this.log(`Searching with expression "${_}"`),this[f](_,1,(b,g)=>this.opt.filter(g,c,s,v),b=>{v++,s++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(c),h[p-1]===c?this.opt.done(s):l(h[h.indexOf(c)+1])})};this.opt.acrossElements&&(f="wrapMatchesAcrossElements"),p===0?this.opt.done(s):l(h[0])}markRanges(r,d){this.opt=d;let s=0,f=this.checkRanges(r);f&&f.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(f)),this.wrapRangeFromIndex(f,(h,p,u,l)=>this.opt.filter(h,p,u,l),(h,p)=>{s++,this.opt.each(h,p)},()=>{this.opt.done(s)})):this.opt.done(s)}unmark(r){this.opt=r;let d=this.opt.element?this.opt.element:"*";d+="[data-markjs]",this.opt.className&&(d+=`.${this.opt.className}`),this.log(`Removal selector "${d}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,s=>{this.unwrapMatches(s)},s=>{const f=e.matches(s,d),h=this.matchesExclude(s);return!f||h?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const r=new o(a);return this.mark=(d,s)=>(r.mark(d,s),this),this.markRegExp=(d,s)=>(r.markRegExp(d,s),this),this.markRanges=(d,s)=>(r.markRanges(d,s),this),this.unmark=d=>(r.unmark(d),this),this}})})(Mi);var Ls=Mi.exports;const Rs=jn(Ls),y1="";function Pi(t){return JSON.parse(JSON.stringify(t))}const js={name:"IbTreeSelect",inject:["LANG_COMPONENTS"],props:{classList:[String,Array],placeholder:{type:String,default:""},searchPlaceholderText:{type:String,default:""},clearButtonMessage:{type:String,default:""},showClearButton:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!1},menuSize:{type:[String,Number]},initialSize:{left:0,right:0},ariaLabel:{type:String,default:""},name:String,id:{type:String,default(){return ht()}},options:{default(){return[]}},modelValue:{type:[Number,String,Array]},value:{type:[Number,String,Array],default(){return[]}},maxSelectedNames:{type:Number,default:2},isMultiple:{type:Boolean,default:!0},parentAutoCheck:{type:Boolean,default:!0},strings:{type:Object,default(){return{}}},onlyEndNodes:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!0},htmlOptionTitle:{type:Boolean,default:!1},isBookmarkable:{type:Boolean,default:!1},initBookmarks:{type:Array,default:()=>[]},showInputs:{type:Boolean,default(t){return t.isMultiple}},dependency:{type:String},filterId:{type:String,default(){return ht()}},staticPlaceholder:{type:Boolean,default:!1},useSearch:{type:Boolean,default:!1},isWatching:{type:Boolean,default:!1},emptyMessage:{type:String,default:""},errorMessage:{type:String,default:""},allOptions:{type:Boolean,default:!0},watchClearValue:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},alphabetSort:{type:Boolean,default:!1}},emits:["close","input","blur","search","resize","submit","clearValue","update:modelValue"],watch:{value(t){this.val=t,(!Array.isArray(t)||t.join(",")!==Object.keys(this.selected).join(","))&&this.setPreparedValues(this.actualOptions,!1)},modelValue:{handler(t){this.val=t,this.actualOptions=[],this.setPreparedValues()},deep:!0},val(t){console.log(t),this.watchClearValue&&(!t||Array.isArray(t)&&!t.length)&&this.setPreparedValues(this.actualOptions).then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},options:{handler(t){this.initialOptions=Pi(t)},deep:!0},initialOptions(t){let n=!0;if(typeof t=="function")n=!1;else{const e=[],o=t;Array.prototype.forEach.call(o,a=>{a.id!==void 0&&e.push(a.id)}),n=JSON.stringify(e)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=e}(this.isInitialized&&!n||this.isWatching)&&this.setPreparedValues().then(()=>{const e=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:e,filter:this.filterId})})},dependency(t,n){this.$nextTick(()=>{this.registerDependency(n)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new Rs(this.$refs.list.$el),this.registerDependency(),this.$globalEvents.$on("select:refresh",()=>{this.setPreparedValues()}),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.endResizing)},data(){var t,n,e,o,a,r,d,s;return this.defaultFilter=f=>{this.marker.unmark();const h=this.filterString.toLowerCase().trim();this.filterFunc.call(this,f,h),h&&this.marker.mark(h)},{initialOptions:Pi(this.options),val:this.modelValue?this.modelValue:this.value,size:{left:this.initialSize&&this.initialSize.left||0,right:this.initialSize&&this.initialSize.right||0},resizingProp:null,isInitialized:!1,optionsIdsWatch:[],isLoading:!1,actualName:this.isMultiple?this.name+"[]":this.name,filterString:"",actualOptions:[],actualBookmarkedOptions:{},selected:[],isOpen:!1,vertical:"bottom",allOptionsIsChecked:!0,hasTreeChildren:!1,uid:`f${(~~(Math.random()*1e8)).toString(16)}`,focusedOptionId:"",actualStrings:{searchPlaceholder:lang(this.searchPlaceholderText.length?this.searchPlaceholderText:"search_placeholder",(t=this.LANG_COMPONENTS)==null?void 0:t.COMPONENT_SELECT),emptyTitle:lang("empty_title",(n=this.LANG_COMPONENTS)==null?void 0:n.COMPONENT_SELECT),selectAllOptions:lang("all_options",(e=this.LANG_COMPONENTS)==null?void 0:e.COMPONENT_SELECT),allSelected:lang("all_selected",(o=this.LANG_COMPONENTS)==null?void 0:o.COMPONENT_SELECT),loading:lang("loading",(a=this.LANG_COMPONENTS)==null?void 0:a.COMPONENT_SELECT)+"...",selectedCount:lang("selected_count",(r=this.LANG_COMPONENTS)==null?void 0:r.COMPONENT_SELECT),buttonTitle:this.buttonTitle||lang("button_title",(d=this.LANG_COMPONENTS)==null?void 0:d.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT),...this.strings},dependencyValue:null}},methods:{onBlur(){setTimeout(()=>{this.isOpen||this.$emit("blur")},200)},inputKeyupDown(){this.focusOnFirstOptions()},comboboxKeyupDown(){if(this.showSearch){this.$refs.search.focus();return}this.focusOnFirstOptions()},focus(){this.$refs.combobox.focus()},focusOnFirstOptions(){this.$refs.list.$el.querySelector("[tabindex]:not(hidden)").focus()},startResizing(t){this.resizingProp=t},endResizing(){this.resizingProp&&(this.resizingProp=null,this.$emit("resize",this.size))},onResize(t){switch(this.resizingProp){case"left":this.size.left=Math.max(this.size.left-t.movementX,0);break;case"right":this.size.right=Math.max(this.size.right+t.movementX,0);break}},registerDependency(t){this.dependency?(this.$globalEvents.$on("select-"+this.dependency+":update",n=>{this.clear(),this.dependencyValue=n,this.dependencyValue&&this.dependencyValue.values&&(!Array.isArray(this.dependencyValue.values)||this.dependencyValue.values.length)&&this.setPreparedValues()}),this.isLoading=!1):(this.$globalEvents.$off("select-"+t+":update"),this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})}))},filter(t,n){this.filterString=t,this.$emit("search",{search:this.filterString}),this.defaultFilter(n)},setPreparedValues(t){let n=t||this.initialOptions;return this.alphabetSort&&(n=n.sort((e,o)=>e.title.toLowerCase().localeCompare(o.title.toLowerCase()))),this.prepare(n).then(([e,o])=>{this.actualOptions=e,this.allOptionsIsChecked=this.checkIfOptionsChecked(e),this.isInitialized=!0,this.selected=o,this.setBookmarkedOptions(e)})},clear(){this.setPreparedValues(),this.allOptionsIsChecked=!1,this.selected=[],this.isMultiple?(this.$emit("update:modelValue",null),this.$emit("input",null),this.$emit("clear-value",null)):(this.$emit("update:modelValue",[]),this.$emit("input",[]),this.$emit("clear-value",[])),this.setPreparedValues()},clearValue(){this.clear(),this.setPreparedValues()},prepare(t){return new Promise(n=>{const e={},o=[];let a=Promise.resolve();typeof t=="function"?(this.isLoading=!0,this.dependency&&(t=t.bind(null,this.dependencyValue)),a=a.then(t)):a=a.then(()=>t),a.then(r=>(this.isLoading=!1,r.forEach(d=>{d.initiallyVisible=typeof d.visible>"u"?!0:d.visible,d.visible=d.initiallyVisible,d.readonly=!!d.readonly,d.isDisabled=!1,d.checked=this.isMultiple?this.val!==null&&this.val.findIndex(s=>d.id==s)>-1:this.val!==null&&this.val==d.id,d.checked&&(!this.onlyEndNodes||!d.children)&&(e[d.id]=d),d.children&&(this.hasTreeChildren=!0,d.isChildrenVisible=!1),o.push(new Promise(s=>{d.children?this.prepare(d.children).then(([f,h])=>{d.children=f,Object.assign(e,h),s(d)}):s(d)}))}),Promise.all(o).then(d=>{n([d,e])}))).catch(r=>{throw this.isLoading=!1,r})})},filterFunc(t,n){let e=0;return t.forEach(o=>{let a=o.initiallyVisible&&o.title&&o.title.toString().toLowerCase().includes(n)&&!this.actualBookmarkedOptions[o.id];if(o.children&&o.children.length){let r=this.filterFunc(o.children,n);e+=r,r&&(o.isChildrenVisible=!!n||!!Object.keys(this.actualBookmarkedOptions).length,o.isDisabled=r<o.children.length&&!this.isBookmarkable),a?r||(a=!1):a=!!r}o.visible=a,a&&e++}),e},submit(){this.change();const t=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":submit",{values:t,filter:this.filterId}),this.$emit("submit")},change(){const t=Object.keys(this.selected);this.isMultiple?(this.$emit("update:modelValue",t),this.$emit("input",t)):(this.$emit("update:modelValue",t[0]),this.$emit("input",t[0])),this.$globalEvents.$emit("select-"+this.filterId+":update",{values:t,filter:this.filterId}),this.$refs.dropdown.close()},checkIfOptionsChecked(t){return t.every(n=>n.checked||n.readonly)},registerCheck(t,n,e){if(n)if(t.checked=!0,this.isMultiple)this.onlyEndNodes&&t.children&&t.children.length||(this.selected[t.id]=t,this.$emit("update:modelValue",Object.keys(this.selected)),this.$emit("input",Object.keys(this.selected)));else{const o=Object.keys(this.selected)[0];o&&(this.selected[o].checked=!1),this.selected={[t.id]:t},this.change()}else delete this.selected[t.id],t.checked=!1,this.$emit("update:modelValue",Object.keys(this.selected)),this.$emit("input",Object.keys(this.selected));this.toggleDuplicateOptions(this.actualOptions,t.id,n),e&&(this.allOptionsIsChecked=this.checkIfOptionsChecked(this.actualOptions))},toggleDuplicateOptions(t,n,e){for(let o of t)o.id===n&&(o.checked=e),o.children&&this.toggleDuplicateOptions(o.children,n,e)},manageAll(){this.allOptionsIsChecked=!this.allOptionsIsChecked,this.traverseTree(this.actualOptions,t=>{t.readonly||this.registerCheck(t,this.allOptionsIsChecked,!1)})},traverseTree(t,n){t.forEach(e=>{n(e),e.children&&e.children.length&&this.traverseTree(e.children,n)})},getArrayOptions(t){let n=[];for(let e of t)n.push(e),e.children&&(n=n.concat(this.getArrayOptions(e.children)));return n},toggleBookmark(t){this.actualBookmarkedOptions[t.id]?delete this.actualBookmarkedOptions[t.id]:this.actualBookmarkedOptions[t.id]=t,this.$emit("toggle-bookmarked-option",t.id),this.filter(this.filterString,this.actualOptions)},setBookmarkedOptions(t){t.forEach(n=>{n.children&&n.children.length?this.setBookmarkedOptions(n.children):this.initBookmarks.includes(n.id)&&(this.actualBookmarkedOptions[n.id]=n)}),this.filter(this.filterString,t)},onClose(){this.isOpen=!1,this.filter("",this.actualOptions),this.isMultiple?this.$emit("close",Object.keys(this.selected)):this.$emit("close",Object.keys(this.selected)[0]),this.$emit("blur"),this.vertical="bottom"},onOpen(){const t=document.documentElement.scrollHeight;this.isOpen=!0,this.$nextTick(()=>{document.documentElement.scrollHeight>t&&(this.vertical="top")})}},computed:{hasTrigger(){return!!this.$slots.trigger},hasTriggerContent(){return!!this.$slots.triggerContent},hasEmptyMessage(){return!!this.$slots.emptyMessage},treeDropPos(){return this.menuSize?{width:this.menuSize+"px",maxWidth:this.menuSize+"px",minWidth:this.menuSize+"px"}:{width:"auto",position:"absolute",left:-this.size.left+"px",right:-this.size.right+"px"}},hasHierarchy(){return this.actualOptions.some(t=>t.children)},selectedKeys(){return Object.keys(this.selected).filter(t=>{if(!this.onlyEndNodes||!this.selected[t].children)return!0})},selectStatus(){return this.staticPlaceholder?this.placeholder:this.isLoading?this.actualStrings.loading:this.selectedKeys.length?this.selectedKeys.length<this.maxSelectedNames?this.selectedKeys.map(t=>this.selected[t].title).join(","):this.selectedKeys.length<this.optionsCount?this.actualStrings.selectedCount.replace("{selected}",this.selectedKeys.length).replace("{all}",this.optionsCount):this.actualStrings.allSelected:this.emptyMessage},isEmpty(){return Array.isArray(this.value)?!this.value.length:!this.value},requiredDependencyNotFilled(){return this.dependency&&(!this.dependencyValue||!this.dependencyValue.values||!this.dependencyValue.values.length)},showSearch(){return this.useSearch||this.optionsCount>10},arrayOfOptions(){return this.getArrayOptions(this.actualOptions)},optionsCount(){let t=[];for(let n of this.arrayOfOptions)(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&t.push(n.id);return t.length},visibleOptionsCount(){let t=[];return this.traverseTree(this.actualOptions,n=>{(!this.onlyEndNodes||!n.children)&&!t.includes(n.id)&&n.visible&&t.push(n.id)}),t.length+(this.isBookmarkable?Object.keys(this.actualBookmarkedOptions).length:0)}},components:{IbAlert:It,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln,IbInput:br,List:mr,"select-option":Bs},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},Vs={key:0,class:"tree-select-empty"},qs={key:1,class:"tree-select-default-empty tree-select-empty"};function Fs(t,n,e,o,a,r){const d=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),f=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list"),u=i.resolveComponent("ib-input"),l=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.errorMessage?(i.openBlock(),i.createBlock(d,{key:0,class:"tree-select-error"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["tree-select",{...e.classList,"tree-select-custom-trigger-content":r.hasTriggerContent}])},[i.createVNode(l,{disabled:a.isLoading,"is-resizable":e.isResizable,vertical:a.vertical,ref:"dropdown",onClose:r.onClose,onOpen:r.onOpen},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle(r.treeDropPos)},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[6]||(n[6]=c=>r.startResizing("left"))},null,32)):i.createCommentVNode("",!0),e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:1,class:"ib-dropdown-resizer ib-dropdown-resizer-right",onMousedown:n[7]||(n[7]=c=>r.startResizing("right"))},null,32)):i.createCommentVNode("",!0),Object.keys(a.actualBookmarkedOptions).length>0?(i.openBlock(),i.createBlock(p,{key:2,class:i.normalizeClass({"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualBookmarkedOptions,c=>(i.openBlock(),i.createBlock(h,{key:"bookmark"+c.id,option:c,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!0,"is-bookmarked":!0,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs},null,8,["option","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","html-title","show-input"]))),128))]),_:1},8,["class"])):i.createCommentVNode("",!0),r.showSearch?(i.openBlock(),i.createBlock(u,{key:3,class:"tree-search",ref:"search","show-icon":!0,value:a.filterString,"aria-label":e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,placeholder:e.searchPlaceholderText?e.searchPlaceholderText:a.actualStrings.searchPlaceholder,onInput:n[8]||(n[8]=c=>r.filter(c,a.actualOptions)),onKeyup:i.withKeys(r.inputKeyupDown,["down"])},null,8,["value","aria-label","placeholder","onKeyup"])):i.createCommentVNode("",!0),i.createVNode(p,{ref:"list",role:"listbox",class:i.normalizeClass({"tree-select-list":!0,"has-hierarchy":r.hasHierarchy})},{default:i.withCtx(()=>[!r.requiredDependencyNotFilled&&!r.visibleOptionsCount&&r.hasEmptyMessage?(i.openBlock(),i.createElementBlock("div",Vs,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",qs,i.toDisplayString(a.actualStrings.emptyTitle),1)):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",{class:"tree-select-empty"},i.toDisplayString(a.actualStrings.requiredDependencyNotFilled),513),[[i.vShow,r.requiredDependencyNotFilled]]),!e.isMultiple&&!e.isRequired&&a.actualOptions.length>0?(i.openBlock(),i.createBlock(h,{key:2,option:{title:t.lang("none","select"),id:null,checked:r.isEmpty},name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs},null,8,["option","name","parent-auto-check","is-multiple","onCheck","onToggleBookmark","uid","only-end-nodes","show-input"])):i.createCommentVNode("",!0),r.requiredDependencyNotFilled?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[e.allOptions&&e.isMultiple&&r.visibleOptionsCount&&!r.requiredDependencyNotFilled?(i.openBlock(),i.createBlock(h,{key:0,option:{title:a.actualStrings.selectAllOptions,id:"!all!",initiallyVisible:!0,visible:!0,isDisabled:r.visibleOptionsCount<r.optionsCount,checked:a.allOptionsIsChecked,isIndeterminate:!!Object.keys(a.selected).length},"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":!1,"is-multiple":e.isMultiple,"is-bookmarkable":!1,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"show-input":e.showInputs,onCheck:r.manageAll,onOnFocus:n[9]||(n[9]=c=>a.focusedOptionId=c)},null,8,["option","is-toggle","name","is-multiple","uid","only-end-nodes","show-input","onCheck"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.actualOptions,c=>i.renderSlot(t.$slots,a.actualName,{key:e.name+c.value,option:c,parentAutoCheck:e.parentAutoCheck,isMultiple:e.isMultiple,uid:a.uid,onlyEndNodes:e.onlyEndNodes,htmlTitle:e.htmlOptionTitle,showInput:e.showInputs},()=>[i.withDirectives(i.createVNode(h,{option:c,"is-toggle":e.isToggle,name:a.actualName,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"is-bookmarkable":e.isBookmarkable,uid:a.uid,"only-end-nodes":e.onlyEndNodes,"html-title":e.htmlOptionTitle,"show-input":e.showInputs,onCheck:r.registerCheck,onToggleBookmark:r.toggleBookmark,onOnFocus:n[10]||(n[10]=_=>a.focusedOptionId=_)},null,8,["option","is-toggle","name","parent-auto-check","is-multiple","is-bookmarkable","uid","only-end-nodes","html-title","show-input","onCheck","onToggleBookmark"]),[[i.vShow,c.visible]])])),128))],64))]),_:3},8,["class"])],6)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(()=>[i.renderSlot(t.$slots,"trigger",{selectedCount:r.selectedKeys.length})]),key:"0"}:{name:"trigger",fn:i.withCtx(({isOpened:c})=>[i.createElementVNode("div",{role:"combobox",tabindex:"0",class:i.normalizeClass(["tree-choice",{"tree-choice-opened":c,"has-clear-button":e.showClearButton,"tree-choice-error":e.errorMessage}]),ref:"combobox",onClick:n[2]||(n[2]=i.withModifiers(()=>{},["prevent"])),onBlur:n[3]||(n[3]=(..._)=>r.onBlur&&r.onBlur(..._)),onKeyup:[n[4]||(n[4]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["down"])),n[5]||(n[5]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[r.hasTriggerContent?i.renderSlot(t.$slots,"triggerContent",{key:0,selectedCount:r.selectedKeys.length}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.htmlOptionTitle?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass({placeholder:!r.selectStatus}),innerHTML:r.selectStatus||e.placeholder},null,10,["innerHTML"])):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass({placeholder:!r.selectStatus})},i.toDisplayString(r.selectStatus||e.placeholder),3))],64)),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(f,{key:2,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),onKeypress:n[0]||(n[0]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeydown:n[1]||(n[1]=i.withKeys(i.withModifiers(()=>{},["stop","prevent"]),["enter"])),onKeyup:i.withKeys(i.withModifiers(r.clearValue,["prevent"]),["enter"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick","onKeyup","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(s,{name:c?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])],42,["aria-label","aria-activedescendant"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","onClose","onOpen"])],2)],64)}const Bi=_e(js,[["render",Fs]]),v1="",Hs={name:"IbLimitSelector",props:{labelSelect:{type:String,required:!0},value:{type:Number},options:{type:Array,default:()=>[10,25,50,100]}},watch(t){this.selected=t},data(){return{selected:this.value}},methods:{selectItem(t){this.selected=t,this.onChange(t)},onChange(t){Number.isInteger(+t)&&this.$emit("select",+t)}},computed:{prepareOptions(){return this.options.map(t=>({id:t,title:t}))}},components:{IbLabel:dn,IbSelect:Bi}},zs={class:"report-limit-selector"};function Us(t,n,e,o,a,r){const d=i.resolveComponent("ib-label"),s=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",zs,[i.createVNode(d,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(s,{classList:"report-limit-selector-select",value:e.value,options:r.prepareOptions,"is-multiple":!1,"show-clear-button":!1,onInput:r.selectItem},null,8,["value","options","onInput"])])}const Li=_e(Hs,[["render",Us]]),b1="",Ks={name:"IbPagination",props:{tooltipTextPrev:{type:String},tooltipTextNext:{type:String},labelInput:{type:String},labelSelect:{type:String,required:!0},countRows:{type:Number,required:!0},pageCount:{type:Number,default:null},current:{type:Number,default:1},limitSelector:{type:Number,default:10},showPaginationInput:{type:Boolean,default:!0}},data(){return{currentPage:this.current,indexSpaceLeft:null,indexSpaceRight:null,limitValue:this.limitSelector}},watch:{current(t){this.onSelect(t)},limitValue(){this.currentPage=1}},methods:{changeLimit(t){Number.isInteger(t)&&(this.limitValue=t,this.$emit("set-limit",t))},onInput(t){if(t<1){this.onSelect(1);return}if(t>this.countPagePagination){this.onSelect(this.countPagePagination);return}this.onSelect(Number(t))},onSelect(t){Number.isInteger(t)&&(this.currentPage=t,this.$emit("select",t))},showItem(t){if(this.countPagePagination<=5)return this.indexSpaceLeft=null,this.indexSpaceRight=null,!0;if(t===1||t===this.countPagePagination)return!0;if(this.countPagePagination>=7){if(this.currentPage<=3&&t<=5)return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=null,!0;if(this.currentPage>=this.countPagePagination-2&&t>=this.countPagePagination-4)return this.indexSpaceLeft=null,this.indexSpaceRight=1,!0;if(3<this.currentPage<this.countPagePagination-3&&(t===this.currentPage+1||t===this.currentPage-1||t===this.currentPage))return this.indexSpaceLeft=this.countPagePagination,this.indexSpaceRight=1,!0}else return!0;return!1}},computed:{setCountOfRows(){return this.currentPage===1||this.countPagePagination===1?"1 - "+(this.countPagePagination>1?this.limitValue:this.countRows):this.countPagePagination===this.currentPage?(this.currentPage-1)*this.limitValue+" - "+this.countRows:(this.currentPage-1)*this.limitValue+1+" - "+this.currentPage*this.limitValue},countPagePagination(){return Math.ceil(this.countRows/this.limitValue)}},components:{IbIconButton:ut,IbIcon:Le,IbInput:br,IbLabel:dn,IbLimitSelector:Li,IbTooltip:jt}},Gs={class:"report-controls"},Ys={class:"repot-pagination"},Ws={class:"pagination-input"},Zs={class:"row-count"},Js={class:"pagination-wrapper"},Xs=["onClick"];function Qs(t,n,e,o,a,r){const d=i.resolveComponent("ib-limit-selector"),s=i.resolveComponent("ib-label"),f=i.resolveComponent("ib-input"),h=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Gs,[i.createVNode(d,{onSelect:r.changeLimit,value:a.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),i.createElementVNode("div",Ys,[e.showPaginationInput?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelInput),1)]),_:1}),i.createElementVNode("div",Ws,[i.createVNode(f,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Zs,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(u,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=l=>r.onSelect(a.currentPage-1))},{default:i.withCtx(()=>[i.createVNode(h,{name:"chevron-back-outline"}),e.tooltipTextPrev?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextPrev},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"]),i.createElementVNode("ul",Js,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(l,c)=>i.withDirectives((i.openBlock(),i.createElementBlock("li",{key:c,class:i.normalizeClass(["pagination-item",{active:c+1===a.currentPage,"dots-left":a.indexSpaceLeft===c+1,"dots-right":a.indexSpaceRight===c+1}]),onClick:_=>r.onSelect(c+1)},[i.createElementVNode("button",null,i.toDisplayString(c+1),1)],10,Xs)),[[i.vShow,r.showItem(c+1)]])),128))]),i.createVNode(u,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===r.countPagePagination,onClick:n[1]||(n[1]=l=>r.onSelect(a.currentPage+1))},{default:i.withCtx(()=>[i.createVNode(h,{name:"chevron-forward-outline"}),e.tooltipTextNext?(i.openBlock(),i.createBlock(p,{key:0,text:e.tooltipTextNext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1},8,["disabled"])])])}const ed=_e(Ks,[["render",Qs]]),cn={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},_1="",td={props:{states:{type:String,default:cn.PROGRESS},progress:{type:[String,Number],default:0},ariaLabel:{type:String,required:!0}},computed:{classes(){const t=["ib-progress-bar"];return t.push(`progress-bar-${this.states}`),t},iconName(){return this.states===cn.SUCCESS?"checkmark-circle":this.states===cn.FAILED||this.states===cn.CANCELING||this.states===cn.CANCELED?"close-circle":""}},components:{IbIcon:Le}},Ri=t=>(i.pushScopeId("data-v-a0217859"),t=t(),i.popScopeId(),t),nd={class:"ib-progress-bar-wrapper"},rd=["aria-label","aria-valuenow"],id=[Ri(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],od=Ri(()=>i.createElementVNode("div",null,null,-1));function ad(t,n,e,o,a,r){const d=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",nd,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",role:"meter","aria-label":e.ariaLabel,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:i.normalizeStyle({width:e.progress+"%"})},id,12,rd),od],2),i.withDirectives(i.createVNode(d,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const ld=_e(td,[["render",ad],["__scopeId","data-v-a0217859"]]),sd={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
27
27
  <circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
28
28
  </svg>
29
29
  `,success:`