@avakhula/ui 0.0.210 → 0.0.212
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
|
@@ -2330,7 +2330,7 @@ const Ss = {
|
|
|
2330
2330
|
},
|
|
2331
2331
|
attrs() {
|
|
2332
2332
|
const t = { ...kr({ ...this.$attrs }) };
|
|
2333
|
-
return t.class =
|
|
2333
|
+
return delete t.class, t.class = this.classes, t;
|
|
2334
2334
|
}
|
|
2335
2335
|
},
|
|
2336
2336
|
components: {
|
|
@@ -2352,6 +2352,7 @@ function Ls(t, n, e, i, o, r) {
|
|
|
2352
2352
|
const l = ce("ib-icon");
|
|
2353
2353
|
return G(), ne("div", {
|
|
2354
2354
|
role: "checkbox",
|
|
2355
|
+
class: ve(this.$attrs.class),
|
|
2355
2356
|
"aria-checked": !!o.checked
|
|
2356
2357
|
}, [
|
|
2357
2358
|
ae("label", Et(r.attrs, {
|
|
@@ -2395,7 +2396,7 @@ function Ls(t, n, e, i, o, r) {
|
|
|
2395
2396
|
])) : he("", !0)
|
|
2396
2397
|
])
|
|
2397
2398
|
], 16, Ts)
|
|
2398
|
-
],
|
|
2399
|
+
], 10, xs);
|
|
2399
2400
|
}
|
|
2400
2401
|
const Lo = /* @__PURE__ */ Ae(Ss, [["render", Ls]]);
|
|
2401
2402
|
const Rs = {
|
|
@@ -3881,7 +3882,6 @@ function au(t, n, e, i, o, r) {
|
|
|
3881
3882
|
"tree-choice-error": e.errorMessage
|
|
3882
3883
|
}]),
|
|
3883
3884
|
ref: "combobox",
|
|
3884
|
-
"aria-labelledby": "",
|
|
3885
3885
|
onClick: n[0] || (n[0] = vt(() => {
|
|
3886
3886
|
}, ["prevent"])),
|
|
3887
3887
|
onBlur: n[1] || (n[1] = (...b) => r.onBlur && r.onBlur(...b)),
|
|
@@ -3900,7 +3900,7 @@ function au(t, n, e, i, o, r) {
|
|
|
3900
3900
|
key: 1,
|
|
3901
3901
|
class: ve({ placeholder: !r.selectStatus })
|
|
3902
3902
|
}, we(r.selectStatus || e.placeholder), 3))
|
|
3903
|
-
], 42, ["aria-
|
|
3903
|
+
], 42, ["aria-label", "aria-activedescendant"]),
|
|
3904
3904
|
e.showClearButton ? qe((G(), $e(d, {
|
|
3905
3905
|
key: 0,
|
|
3906
3906
|
kind: "ghost",
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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 Bh="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},qo={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)}},Fo=["name"];function Ho(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,Fo)}const Le=_e(qo,[["render",Ho]]);function ht(){return"_"+Math.random().toString(36).substr(2,9)}const mi={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})}}},Lh="",zo={name:"IbAccordion",mixins:[mi],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}},Uo=["id","aria-controls","aria-expanded"],Ko=["id","aria-labelledby"];function Go(t,n,e,o,a,r){const s=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,onClick:n[0]||(n[0]=(...l)=>r.onClick&&r.onClick(...l))},[i.renderSlot(t.$slots,"title",{},void 0,!0),i.createVNode(s,{class:"chevron-icon",name:"chevron-down-outline"})],8,Uo),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.renderSlot(t.$slots,"content",{},void 0,!0)],8,Ko),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Yo=_e(zo,[["render",Go],["__scopeId","data-v-d8d4f4c2"]]),jt={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 Rh="",Wo={name:"IbButton",props:{kind:{type:String,default:jt.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})};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(){return document.head.querySelector('meta[name="csrf-token"]').content}},inheritAttrs:!1},Zo=["method","action"],Jo=["value"],Xo=["value"],Qo=["name","value"];function ea(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]=s=>r.onClick(s)),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,Jo),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,Xo),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys(e.postOptions),(s,l)=>(i.openBlock(),i.createElementBlock("input",{key:l,type:"hidden",name:s,value:e.postOptions[s]},null,8,Qo))),128))],8,Zo)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const gi=_e(Wo,[["render",ea]]),ta={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"},jh="",na={name:"IbPopover",props:{position:{type:String,default:ta.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 ra(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 yi=_e(na,[["render",ra],["__scopeId","data-v-4e7c6f62"]]),Vh="",ia={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:yi}},oa={key:0};function aa(t,n,e,o,a,r){const s=i.resolveComponent("ib-popover");return i.openBlock(),i.createBlock(s,{position:e.position,"always-visible":e.alwaysVisible,class:i.normalizeClass(r.classList)},{default:i.withCtx(()=>[e.title?(i.openBlock(),i.createElementBlock("b",oa,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const Ot=_e(ia,[["render",aa],["__scopeId","data-v-d59abad7"]]),vi={[jt.primary]:jt.primary,[jt.tertiary]:jt.tertiary,[jt.ghost]:jt.ghost,white:"white"},bi={xs:"xs",s:"s",m:"m"},qh="",la={name:"IbIconButton",props:{kind:{type:String,default:vi.primary,validator:t=>Object.keys(vi).includes(t)},size:{type:String,default:bi.s,validator:t=>Object.keys(bi).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})};return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:gi,IbTooltip:Ot},inheritAttrs:!1};function sa(t,n,e,o,a,r){const s=i.resolveComponent("ib-tooltip"),l=i.resolveComponent("ib-button");return i.openBlock(),i.createBlock(l,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(s,{key:0,text:e.helpText},null,8,["text"])):i.createCommentVNode("",!0)]),_:3},16,["onClick","href","kind","disabled","prevent-default"])}const ut=_e(la,[["render",sa]]),In={alert:"alert",warning:"warning",info:"info",success:"success"},Fh="",da={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}},ca={ref:"content",class:"content"},ua={class:"content-head"},fa={key:1,class:"ib-alert-title"},ha={class:"text-content"},pa={class:"link"};function ma(t,n,e,o,a,r){var u;const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",{role:"alert",class:i.normalizeClass(r.classes)},[i.createElementVNode("div",ca,[i.createElementVNode("span",ua,[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"ib-alert-icon",name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),(u=e.title)!=null&&u.length?(i.openBlock(),i.createElementBlock("b",fa,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",ha,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",pa,[i.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(i.openBlock(),i.createBlock(l,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:r.close},{default:i.withCtx(()=>[i.createVNode(s,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0)],2)}const Mt=_e(da,[["render",ma],["__scopeId","data-v-dec06c47"]]),ga={M:"m",L:"l"},Hh="",ya={name:"IbAvatar",props:{name:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:ga.M}},computed:{classList(){return["avatar",`avatar-size-${this.size}`]},validateName(){var t;return((t=this.name)==null?void 0:t.trim().split(" ").length)<2},initials(){const t=this.name.split(" ");return t.length===1?(t[0][0]+t[0][1]).toUpperCase():(t[0][0]+t[1][0]).toUpperCase()}},components:{IbIcon:Le}},va=["src","alt"];function ba(t,n,e,o,a,r){const s=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.name},null,10,va)):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:2,class:i.normalizeClass(["empty-avatar",r.classList])},[i.createVNode(s,{name:"camera-outline"})],2)):(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass([r.classList,"default-avatar"])},i.toDisplayString(r.initials),3))}const _a=_e(ya,[["render",ba],["__scopeId","data-v-39ebf93c"]]),zh="",$a={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 wa(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const ka=_e($a,[["render",wa],["__scopeId","data-v-328df75a"]]),Uh="",Ca={name:"IbButtonGroup"},Oa={class:"ib-button-group"};function Ea(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Oa,[i.renderSlot(t.$slots,"default")])}const Sa=_e(Ca,[["render",Ea]]),Wt={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},Kh="",Na={props:{status:{type:String,default:Wt.neutral,validator:t=>Object.keys(Wt).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 Wt.success:return"checkmark-outline";case Wt.neutral:return"time-outline";case Wt.info:return"information-circle-outline";case Wt.error:return"close-outline";default:return""}}},components:{IbIcon:Le}};function xa(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[e.showIcon&&r.iconName.length?(i.openBlock(),i.createBlock(s,{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 Ta=_e(Na,[["render",xa],["__scopeId","data-v-3604890c"]]),Aa={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"},Gh="",Yh="",Da={name:"IbTooltip",props:{position:{type:String,default:Aa.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}},Ia={class:"ib-toggle-tip-head"},Ma={class:"ib-toggle-tip-content"},Pa={class:"ib-toggle-tip-button-set"};function Ba(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=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",Ia,[i.createElementVNode("p",null,i.toDisplayString(e.title),1),i.createVNode(l,{class:"close-button",kind:"ghost",onClick:i.withModifiers(r.close,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick"])]),i.createElementVNode("div",Ma,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",Pa,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const La=_e(Da,[["render",Ba],["__scopeId","data-v-9e7c679e"]]),hr=27,_i=32,Ra=13,$i=9,ja=38,Va=37,qa=39,wi=40,Fa="click",{performance:Mn}=window,Ha=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 ki=t=>{an.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},za=()=>{ln||(document.addEventListener("click",ki,{capture:!0}),ln=!0)},Ua=()=>{ln&&(document.removeEventListener("click",ki),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||za(),an.set(t,{bindTimeStamp:Ha(),callback:n}))},beforeUnmount:t=>{an.delete(t),an.size===0&&Ua()}},sn={left:"left",right:"right",center:"center"},Bn={top:"top",bottom:"bottom"},Jh="",Xh="",Ka={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:Fa},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===Ra||t.keyCode===_i)&&(t.preventDefault(),this.toggle()),t.keyCode===wi&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===hr&&(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)}},Ga={class:"ib-dropdown"},Ya={class:"footer-slot"};function Wa(t,n,e,o,a,r){const s=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",Ga,[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]=(...l)=>r.onKeydown&&r.onKeydown(...l)),onClick:n[1]||(n[1]=i.withModifiers((...l)=>r.toggle&&r.toggle(...l),["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]=(...l)=>r.debouncedOpen&&r.debouncedOpen(...l)),onMouseleave:n[3]||(n[3]=(...l)=>r.debouncedClose&&r.debouncedClose(...l))},[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]=(...l)=>r.closeOnClickIfRequired&&r.closeOnClickIfRequired(...l))},[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]=(...l)=>r.close&&r.close(...l))},[i.renderSlot(t.$slots,"close",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Ya,[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]=(...l)=>r.close&&r.close(...l))},[i.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[s,r.close]])}const Ln=_e(Ka,[["render",Wa],["__scopeId","data-v-dfb4a39a"]]),Qh="",Za={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===wi){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const s=document.activeElement,l=s.querySelector(`.${this.rootClass}`);let u=s.nextElementSibling?s.nextElementSibling:(n=s.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(l&&window.getComputedStyle(l).display!=="none"){l.querySelector('a, button, input, [tabindex="0"]').focus();return}if(u){u.focus();return}const h=(o=(e=s.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===ja){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const s=document.activeElement,l=s.previousElementSibling?s.previousElementSibling:(a=s.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!l){s.closest(`.${this.rootClass}`).parentNode.focus();return}if(l&&l.nodeName!=="#text"){const u=l==null?void 0:l.querySelector(`.${this.rootClass}`);if(u&&window.getComputedStyle(u).display!=="none"){const h=Array.from(u.childNodes).filter(p=>p.nodeName!=="#text");(r=h[h.length-1])==null||r.childNodes[0].focus();return}l.focus()}}}}};function Ja(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...s)=>r.onKeydown&&r.onKeydown(...s))},[i.renderSlot(t.$slots,"default")],34)}const pr=_e(Za,[["render",Ja]]),e1="",Xa={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:pr}},Qa={class:"dropdown-list-wrapper"};function el(t,n,e,o,a,r){const s=i.resolveComponent("ib-list"),l=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",Qa,[i.createVNode(l,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:u})=>[i.createVNode(s,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:u})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:u})=>[i.renderSlot(t.$slots,"trigger",{isOpened:u})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const Rn=_e(Xa,[["render",el]]),t1="",tl={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}}},nl={class:"dropdown-item-wrapper"};function rl(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",nl,[(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 mr=_e(tl,[["render",rl]]),il={common:"common",danger:"danger"},n1="",ol={name:"IbSplitButton",props:{id:{type:String,default:()=>ht()},kind:{type:String,default:il.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}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}}},al=["disabled"],ll=["disabled"],sl=["disabled"],dl={ref:"list"};function cl(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=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,disabled:e.disabled,class:["split-button-main",{disabled:e.disabled}]},a.mainButtonAttrs),i.toDisplayString(a.content),17,ll)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,al)),i.createVNode(l,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(s,{name:"chevron-down-outline"})],8,sl)]),body:i.withCtx(()=>[i.createElementVNode("div",dl,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const ul=_e(ol,[["render",cl]]),r1="",fl={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function hl(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 pl=_e(fl,[["render",hl],["__scopeId","data-v-4cf00feb"]]),Et={S:"s",M:"m",L:"l",XL:"xl"},i1="",ml={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:Et.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===$i&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===$i&&!r.shiftKey&&(r.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown)},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")},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===hr&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{bodyStyles(){const t={};return this.size===Et.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Et.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Et.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Et.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Et.S&&t.push("modal-body-s"),this.size===Et.M&&t.push("modal-body-m"),this.size===Et.L&&t.push("modal-body-l"),this.size===Et.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)}},gl={key:1,class:"modal-header"},yl={key:2,class:"modal-footer"};function vl(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-icon-button"),u=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(l,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",gl,[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",yl,[i.renderSlot(t.$slots,"footer",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0)],6)),[[u,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const bl=_e(ml,[["render",vl],["__scopeId","data-v-bebb1bd1"]]);function Ci(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const o1="",_l={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return Ci(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:mr,IbIcon:Le}},$l={class:"wrapper-tab-link dropdown-tab"},wl=["tabindex"];function kl(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-dropdown-item"),u=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",$l,[i.createVNode(u,{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(s,{name:"chevron-down"})],10,wl)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(h,p)=>(i.openBlock(),i.createBlock(l,{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:f=>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 Oi=_e(_l,[["render",kl]]),a1="",Cl={name:"IbTabs",data(){return{tabs:[],selectedTab:""}},created(){this.$slots.default().forEach(t=>{if(!t.props.name)this.tabs.push(t.props);else{const n=this.tabs.findIndex(e=>e.name===t.props.name);if(n!==-1)this.tabs[n].tabs.push(t.props);else{const e={name:t.props.name,tabs:[t.props]};this.tabs.push(e)}}});for(let t of this.tabs)if(!t.disabled)if(t.tabs){for(let n of t.tabs)if(!n.disabled){this.selectTab(n.id);return}}else{this.selectTab(t.id);return}},methods:{createHref(t){return Ci(t)},selectTab(t){this.selectedTab=t}},components:{IbTabDropdown:Oi}},Ol={class:"tabs"},El={class:"tabs-list"},Sl={key:0,class:"wrapper-tab-link"},Nl=["href","tabindex","onClick"],xl={class:"tabs-content",ref:"tabHandler"};function Tl(t,n,e,o,a,r){const s=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Ol,[i.createElementVNode("ul",El,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(l,u)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:u},[l.name?(i.openBlock(),i.createBlock(s,{key:1,"selected-tab":a.selectedTab,tabs:l,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",Sl,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===l.id,disabled:l.disabled}]),href:r.createHref(l.id),tabindex:l.disabled?-1:0,onClick:h=>r.selectTab(l.id),target:"_self"},i.toDisplayString(l.title),11,Nl)]))]))),128))]),i.createElementVNode("div",xl,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const Al=_e(Cl,[["render",Tl],["__scopeId","data-v-d30d6f39"]]),Dl={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 Il(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 Ml=_e(Dl,[["render",Il]]),Pl={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},Bl={TYPE_ASC:"asc",TYPE_DESC:"desc"},l1="",Ll={name:"IbSorting",props:{tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconSorting:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{sortingTypes:Bl,sortingTypesView:Pl,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null}},components:{IbIcon:Le,IbIconButton:ut,IbTooltip:Ot}},Rl={class:"sorting-wrapper"},jl={class:"sorting-label",type:"button"},Vl=["name"],ql=["aria-label"];function Fl(t,n,e,o,a,r){const s=i.resolveComponent("ib-tooltip"),l=i.resolveComponent("ib-icon-button"),u=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",Rl,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("button",jl,[i.createTextVNode(i.toDisplayString(e.title)+" ",1),e.tooltipText?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipText,position:e.tooltipPosition},null,8,["text","position"])):i.createCommentVNode("",!0)]),i.createVNode(l,{kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,Vl),e.tooltipIconSorting?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipIconSorting,position:e.tooltipPosition},null,8,["text","position"])):i.createCommentVNode("",!0)]),_:1},8,["onClick"])],2)):(i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button","aria-label":e.sort,onClick:n[0]||(n[0]=(...h)=>r.clickHandler&&r.clickHandler(...h))},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(u,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0),e.tooltipText?(i.openBlock(),i.createBlock(s,{key:1,text:e.tooltipText,position:e.tooltipPosition},null,8,["text","position"])):i.createCommentVNode("",!0)],10,ql))])}const Hl=_e(Ll,[["render",Fl],["__scopeId","data-v-e5442137"]]),s1="",zl={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ut,IbDropdownItem:mr,IbDropdownList:Rn,IbTooltip:Ot}},Ul={"aria-label":"breadcrumb"},Kl={class:"breadcrumb"},Gl=["href"],Yl={key:1},Wl=["href"];function Zl(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",Ul,[i.createElementVNode("ul",Kl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",d===r.last?"active":""]),"aria-current":"page",key:d},[d!==r.last&&d>e.items.length-4||d===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:f.url},i.toDisplayString(f.title),9,Gl)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",Yl,i.toDisplayString(f.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&d===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(u,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(l,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(c,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:c.url},i.toDisplayString(c.title),9,Wl)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),d!==r.last&&d>e.items.length-5||d===0?(i.openBlock(),i.createBlock(s,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const Jl=_e(zl,[["render",Zl],["__scopeId","data-v-5ef772a9"]]),d1="",Xl={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:ut,IbIcon:Le,IbTooltip:Ot}},Ql=["for"],es={key:0,class:"required"};function ts(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",es,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(u,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(s,{name:"information-circle-outline"}),i.createVNode(l,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,Ql)}const dn=_e(Xl,[["render",ts],["__scopeId","data-v-3e867259"]]),gr={text:"text",password:"password",email:"email",number:"number"},c1="",ns={name:"IbInput",props:{type:{type:String,default:gr.text,validator:t=>Object.keys(gr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return ht()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:Bn.bottom},settingsHorizontalPosition:{type:String,default:sn.right},readonly:{type:Boolean,default:!1}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue)},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Dn({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===gr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:Mt,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln},inheritAttrs:!1},rs=["aria-invalid","readonly","disabled","id"],is={class:"settings-wrapper"};function os(t,n,e,o,a,r){var p,f;const s=i.resolveComponent("ib-alert"),l=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(s,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(l,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=d=>a.actualValue=d),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=d=>r.onInput(d)),onBlur:n[2]||(n[2]=d=>r.onBlur(d)),onFocus:n[3]||(n[3]=d=>r.onFocus(d))}),null,16,rs),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(u,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(u,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(l,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(f=a.actualValue)==null?void 0:f.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(u,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(l,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",is,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const yr=_e(ns,[["render",os],["__scopeId","data-v-c89161ac"]]),u1="",as={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return ht()}},value:{default:1},modelValue:{type:Boolean},isChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(){this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked)}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Dn({...this.$attrs})};return t.class=[this.classes,t.class],t}},components:{IbIcon:Le},inheritAttrs:!1},ls=["aria-checked"],ss=["for","tabindex"],ds=["name","id","value","checked","disabled","required"],cs={class:"ib-checkbox-body"},us={key:0,class:"required"},fs={class:"ib-checkbox-input"},hs={key:1,class:"ib-checkbox-label"},ps={key:0,class:"required"};function ms(t,n,e,o,a,r){var l;const s=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox","aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onKeypress:n[1]||(n[1]=i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]))}),[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,checked:a.checked,disabled:e.disabled,required:e.required,onClick:n[0]||(n[0]=(...u)=>r.onChange&&r.onChange(...u))},null,8,ds),i.createElementVNode("div",cs,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",us,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",fs,[i.withDirectives(i.createVNode(s,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(s,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((l=e.label)!=null&&l.length)?(i.openBlock(),i.createElementBlock("span",hs,[e.required?(i.openBlock(),i.createElementBlock("span",ps,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,ss)],8,ls)}const vr=_e(as,[["render",ms]]),f1="",gs={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>ht()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.checked=!this.checked,this.$emit("input",this.checked)}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:Ot}},ys=["aria-checked","tabindex"],vs={class:"toggle-wrapper",ref:"wrapper"},bs={class:"toggle",ref:"toggle"},_s=["name","checked","id","disabled"],$s=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),ws={key:0,class:"toggle-label"};function ks(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]),["enter"]))]},[i.createElementVNode("div",vs,[i.createElementVNode("div",bs,[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...u)=>r.onChange&&r.onChange(...u)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,_s),$s,i.createVNode(s,{class:"checked-icon",name:"checkmark"}),i.createVNode(s,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",ws,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(l,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,ys)}const Ei=_e(gs,[["render",ks]]);function Si(t){return t.scrollHeight>t.clientHeight}const h1="",Cs={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{Si(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===_i&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===qa&&(this.option.isChildrenVisible=!0),t.keyCode===Va&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o}},computed:{component(){return this.isMultiple&&this.isToggle?Ei:vr},isChecked(){if(this.option.checked)return!0;if(this.option.isIndeterminate)return null;if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return!0},hasChildren(){return this.option.children&&this.option.children.length},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:pr,IbIconButton:ut,IbTooltip:Ot}},Os=["aria-selected","aria-label","id"],Es={key:0,class:"option-label"},Ss={key:1,class:"option-label"},Ns=["innerHTML"],xs=["innerHTML"],Ts={key:2,class:"option-label"};function As(t,n,e,o,a,r){const s=i.resolveComponent("ib-tooltip"),l=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list");return i.openBlock(),i.createElementBlock("li",null,[i.createElementVNode("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked,"tree-select-option-margin":r.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":r.isChecked,"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...f)=>r.onKeydown&&r.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>t.$emit("onFocus",`option-${r.id}`))},[a.showTooltip?(i.openBlock(),i.createBlock(s,{key:0,text:e.option.title},null,8,["text"])):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(u,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(l,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked,disabled:e.option.isDisabled,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",Ss,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Es,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(l,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,xs)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,Ns))],64)):(i.openBlock(),i.createElementBlock("span",Ts,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(p,{key:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,f=>i.withDirectives((i.openBlock(),i.createBlock(h,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=d=>t.$emit("toggle-bookmark",d)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,f.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Os)])}const Ds=_e(Cs,[["render",As]]);var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ni={exports:{}};/*!***************************************************
|
|
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 Bh="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},qo={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)}},Fo=["name"];function Ho(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,Fo)}const Le=_e(qo,[["render",Ho]]);function ht(){return"_"+Math.random().toString(36).substr(2,9)}const mi={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})}}},Lh="",zo={name:"IbAccordion",mixins:[mi],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}},Uo=["id","aria-controls","aria-expanded"],Ko=["id","aria-labelledby"];function Go(t,n,e,o,a,r){const s=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,onClick:n[0]||(n[0]=(...l)=>r.onClick&&r.onClick(...l))},[i.renderSlot(t.$slots,"title",{},void 0,!0),i.createVNode(s,{class:"chevron-icon",name:"chevron-down-outline"})],8,Uo),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.renderSlot(t.$slots,"content",{},void 0,!0)],8,Ko),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Yo=_e(zo,[["render",Go],["__scopeId","data-v-d8d4f4c2"]]),jt={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 Rh="",Wo={name:"IbButton",props:{kind:{type:String,default:jt.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})};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(){return document.head.querySelector('meta[name="csrf-token"]').content}},inheritAttrs:!1},Zo=["method","action"],Jo=["value"],Xo=["value"],Qo=["name","value"];function ea(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]=s=>r.onClick(s)),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,Jo),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,Xo),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys(e.postOptions),(s,l)=>(i.openBlock(),i.createElementBlock("input",{key:l,type:"hidden",name:s,value:e.postOptions[s]},null,8,Qo))),128))],8,Zo)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const gi=_e(Wo,[["render",ea]]),ta={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"},jh="",na={name:"IbPopover",props:{position:{type:String,default:ta.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 ra(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 yi=_e(na,[["render",ra],["__scopeId","data-v-4e7c6f62"]]),Vh="",ia={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:yi}},oa={key:0};function aa(t,n,e,o,a,r){const s=i.resolveComponent("ib-popover");return i.openBlock(),i.createBlock(s,{position:e.position,"always-visible":e.alwaysVisible,class:i.normalizeClass(r.classList)},{default:i.withCtx(()=>[e.title?(i.openBlock(),i.createElementBlock("b",oa,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const Ot=_e(ia,[["render",aa],["__scopeId","data-v-d59abad7"]]),vi={[jt.primary]:jt.primary,[jt.tertiary]:jt.tertiary,[jt.ghost]:jt.ghost,white:"white"},bi={xs:"xs",s:"s",m:"m"},qh="",la={name:"IbIconButton",props:{kind:{type:String,default:vi.primary,validator:t=>Object.keys(vi).includes(t)},size:{type:String,default:bi.s,validator:t=>Object.keys(bi).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})};return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:gi,IbTooltip:Ot},inheritAttrs:!1};function sa(t,n,e,o,a,r){const s=i.resolveComponent("ib-tooltip"),l=i.resolveComponent("ib-button");return i.openBlock(),i.createBlock(l,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(s,{key:0,text:e.helpText},null,8,["text"])):i.createCommentVNode("",!0)]),_:3},16,["onClick","href","kind","disabled","prevent-default"])}const ut=_e(la,[["render",sa]]),In={alert:"alert",warning:"warning",info:"info",success:"success"},Fh="",da={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}},ca={ref:"content",class:"content"},ua={class:"content-head"},fa={key:1,class:"ib-alert-title"},ha={class:"text-content"},pa={class:"link"};function ma(t,n,e,o,a,r){var u;const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",{role:"alert",class:i.normalizeClass(r.classes)},[i.createElementVNode("div",ca,[i.createElementVNode("span",ua,[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"ib-alert-icon",name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),(u=e.title)!=null&&u.length?(i.openBlock(),i.createElementBlock("b",fa,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",ha,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",pa,[i.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(i.openBlock(),i.createBlock(l,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:r.close},{default:i.withCtx(()=>[i.createVNode(s,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0)],2)}const Mt=_e(da,[["render",ma],["__scopeId","data-v-dec06c47"]]),ga={M:"m",L:"l"},Hh="",ya={name:"IbAvatar",props:{name:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:ga.M}},computed:{classList(){return["avatar",`avatar-size-${this.size}`]},validateName(){var t;return((t=this.name)==null?void 0:t.trim().split(" ").length)<2},initials(){const t=this.name.split(" ");return t.length===1?(t[0][0]+t[0][1]).toUpperCase():(t[0][0]+t[1][0]).toUpperCase()}},components:{IbIcon:Le}},va=["src","alt"];function ba(t,n,e,o,a,r){const s=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.name},null,10,va)):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:2,class:i.normalizeClass(["empty-avatar",r.classList])},[i.createVNode(s,{name:"camera-outline"})],2)):(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass([r.classList,"default-avatar"])},i.toDisplayString(r.initials),3))}const _a=_e(ya,[["render",ba],["__scopeId","data-v-39ebf93c"]]),zh="",$a={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 wa(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const ka=_e($a,[["render",wa],["__scopeId","data-v-328df75a"]]),Uh="",Ca={name:"IbButtonGroup"},Oa={class:"ib-button-group"};function Ea(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Oa,[i.renderSlot(t.$slots,"default")])}const Sa=_e(Ca,[["render",Ea]]),Wt={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},Kh="",Na={props:{status:{type:String,default:Wt.neutral,validator:t=>Object.keys(Wt).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 Wt.success:return"checkmark-outline";case Wt.neutral:return"time-outline";case Wt.info:return"information-circle-outline";case Wt.error:return"close-outline";default:return""}}},components:{IbIcon:Le}};function xa(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[e.showIcon&&r.iconName.length?(i.openBlock(),i.createBlock(s,{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 Ta=_e(Na,[["render",xa],["__scopeId","data-v-3604890c"]]),Aa={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"},Gh="",Yh="",Da={name:"IbTooltip",props:{position:{type:String,default:Aa.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}},Ia={class:"ib-toggle-tip-head"},Ma={class:"ib-toggle-tip-content"},Pa={class:"ib-toggle-tip-button-set"};function Ba(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=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",Ia,[i.createElementVNode("p",null,i.toDisplayString(e.title),1),i.createVNode(l,{class:"close-button",kind:"ghost",onClick:i.withModifiers(r.close,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick"])]),i.createElementVNode("div",Ma,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",Pa,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const La=_e(Da,[["render",Ba],["__scopeId","data-v-9e7c679e"]]),hr=27,_i=32,Ra=13,$i=9,ja=38,Va=37,qa=39,wi=40,Fa="click",{performance:Mn}=window,Ha=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 ki=t=>{an.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},za=()=>{ln||(document.addEventListener("click",ki,{capture:!0}),ln=!0)},Ua=()=>{ln&&(document.removeEventListener("click",ki),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||za(),an.set(t,{bindTimeStamp:Ha(),callback:n}))},beforeUnmount:t=>{an.delete(t),an.size===0&&Ua()}},sn={left:"left",right:"right",center:"center"},Bn={top:"top",bottom:"bottom"},Jh="",Xh="",Ka={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:Fa},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===Ra||t.keyCode===_i)&&(t.preventDefault(),this.toggle()),t.keyCode===wi&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===hr&&(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)}},Ga={class:"ib-dropdown"},Ya={class:"footer-slot"};function Wa(t,n,e,o,a,r){const s=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",Ga,[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]=(...l)=>r.onKeydown&&r.onKeydown(...l)),onClick:n[1]||(n[1]=i.withModifiers((...l)=>r.toggle&&r.toggle(...l),["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]=(...l)=>r.debouncedOpen&&r.debouncedOpen(...l)),onMouseleave:n[3]||(n[3]=(...l)=>r.debouncedClose&&r.debouncedClose(...l))},[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]=(...l)=>r.closeOnClickIfRequired&&r.closeOnClickIfRequired(...l))},[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]=(...l)=>r.close&&r.close(...l))},[i.renderSlot(t.$slots,"close",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Ya,[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]=(...l)=>r.close&&r.close(...l))},[i.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[s,r.close]])}const Ln=_e(Ka,[["render",Wa],["__scopeId","data-v-dfb4a39a"]]),Qh="",Za={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===wi){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const s=document.activeElement,l=s.querySelector(`.${this.rootClass}`);let u=s.nextElementSibling?s.nextElementSibling:(n=s.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(l&&window.getComputedStyle(l).display!=="none"){l.querySelector('a, button, input, [tabindex="0"]').focus();return}if(u){u.focus();return}const h=(o=(e=s.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===ja){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const s=document.activeElement,l=s.previousElementSibling?s.previousElementSibling:(a=s.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!l){s.closest(`.${this.rootClass}`).parentNode.focus();return}if(l&&l.nodeName!=="#text"){const u=l==null?void 0:l.querySelector(`.${this.rootClass}`);if(u&&window.getComputedStyle(u).display!=="none"){const h=Array.from(u.childNodes).filter(p=>p.nodeName!=="#text");(r=h[h.length-1])==null||r.childNodes[0].focus();return}l.focus()}}}}};function Ja(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...s)=>r.onKeydown&&r.onKeydown(...s))},[i.renderSlot(t.$slots,"default")],34)}const pr=_e(Za,[["render",Ja]]),e1="",Xa={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:pr}},Qa={class:"dropdown-list-wrapper"};function el(t,n,e,o,a,r){const s=i.resolveComponent("ib-list"),l=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",Qa,[i.createVNode(l,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:u})=>[i.createVNode(s,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:u})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:u})=>[i.renderSlot(t.$slots,"trigger",{isOpened:u})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const Rn=_e(Xa,[["render",el]]),t1="",tl={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}}},nl={class:"dropdown-item-wrapper"};function rl(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",nl,[(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 mr=_e(tl,[["render",rl]]),il={common:"common",danger:"danger"},n1="",ol={name:"IbSplitButton",props:{id:{type:String,default:()=>ht()},kind:{type:String,default:il.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}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}}},al=["disabled"],ll=["disabled"],sl=["disabled"],dl={ref:"list"};function cl(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=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,disabled:e.disabled,class:["split-button-main",{disabled:e.disabled}]},a.mainButtonAttrs),i.toDisplayString(a.content),17,ll)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,al)),i.createVNode(l,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(s,{name:"chevron-down-outline"})],8,sl)]),body:i.withCtx(()=>[i.createElementVNode("div",dl,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const ul=_e(ol,[["render",cl]]),r1="",fl={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function hl(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 pl=_e(fl,[["render",hl],["__scopeId","data-v-4cf00feb"]]),Et={S:"s",M:"m",L:"l",XL:"xl"},i1="",ml={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:Et.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===$i&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===$i&&!r.shiftKey&&(r.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown)},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")},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===hr&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{bodyStyles(){const t={};return this.size===Et.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Et.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Et.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Et.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Et.S&&t.push("modal-body-s"),this.size===Et.M&&t.push("modal-body-m"),this.size===Et.L&&t.push("modal-body-l"),this.size===Et.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)}},gl={key:1,class:"modal-header"},yl={key:2,class:"modal-footer"};function vl(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-icon-button"),u=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(l,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",gl,[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",yl,[i.renderSlot(t.$slots,"footer",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0)],6)),[[u,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const bl=_e(ml,[["render",vl],["__scopeId","data-v-bebb1bd1"]]);function Ci(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const o1="",_l={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return Ci(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:mr,IbIcon:Le}},$l={class:"wrapper-tab-link dropdown-tab"},wl=["tabindex"];function kl(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-dropdown-item"),u=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",$l,[i.createVNode(u,{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(s,{name:"chevron-down"})],10,wl)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(h,p)=>(i.openBlock(),i.createBlock(l,{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:f=>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 Oi=_e(_l,[["render",kl]]),a1="",Cl={name:"IbTabs",data(){return{tabs:[],selectedTab:""}},created(){this.$slots.default().forEach(t=>{if(!t.props.name)this.tabs.push(t.props);else{const n=this.tabs.findIndex(e=>e.name===t.props.name);if(n!==-1)this.tabs[n].tabs.push(t.props);else{const e={name:t.props.name,tabs:[t.props]};this.tabs.push(e)}}});for(let t of this.tabs)if(!t.disabled)if(t.tabs){for(let n of t.tabs)if(!n.disabled){this.selectTab(n.id);return}}else{this.selectTab(t.id);return}},methods:{createHref(t){return Ci(t)},selectTab(t){this.selectedTab=t}},components:{IbTabDropdown:Oi}},Ol={class:"tabs"},El={class:"tabs-list"},Sl={key:0,class:"wrapper-tab-link"},Nl=["href","tabindex","onClick"],xl={class:"tabs-content",ref:"tabHandler"};function Tl(t,n,e,o,a,r){const s=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Ol,[i.createElementVNode("ul",El,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(l,u)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:u},[l.name?(i.openBlock(),i.createBlock(s,{key:1,"selected-tab":a.selectedTab,tabs:l,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",Sl,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===l.id,disabled:l.disabled}]),href:r.createHref(l.id),tabindex:l.disabled?-1:0,onClick:h=>r.selectTab(l.id),target:"_self"},i.toDisplayString(l.title),11,Nl)]))]))),128))]),i.createElementVNode("div",xl,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const Al=_e(Cl,[["render",Tl],["__scopeId","data-v-d30d6f39"]]),Dl={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 Il(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 Ml=_e(Dl,[["render",Il]]),Pl={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},Bl={TYPE_ASC:"asc",TYPE_DESC:"desc"},l1="",Ll={name:"IbSorting",props:{tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconSorting:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{sortingTypes:Bl,sortingTypesView:Pl,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null}},components:{IbIcon:Le,IbIconButton:ut,IbTooltip:Ot}},Rl={class:"sorting-wrapper"},jl={class:"sorting-label",type:"button"},Vl=["name"],ql=["aria-label"];function Fl(t,n,e,o,a,r){const s=i.resolveComponent("ib-tooltip"),l=i.resolveComponent("ib-icon-button"),u=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",Rl,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("button",jl,[i.createTextVNode(i.toDisplayString(e.title)+" ",1),e.tooltipText?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipText,position:e.tooltipPosition},null,8,["text","position"])):i.createCommentVNode("",!0)]),i.createVNode(l,{kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,Vl),e.tooltipIconSorting?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipIconSorting,position:e.tooltipPosition},null,8,["text","position"])):i.createCommentVNode("",!0)]),_:1},8,["onClick"])],2)):(i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button","aria-label":e.sort,onClick:n[0]||(n[0]=(...h)=>r.clickHandler&&r.clickHandler(...h))},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(u,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0),e.tooltipText?(i.openBlock(),i.createBlock(s,{key:1,text:e.tooltipText,position:e.tooltipPosition},null,8,["text","position"])):i.createCommentVNode("",!0)],10,ql))])}const Hl=_e(Ll,[["render",Fl],["__scopeId","data-v-e5442137"]]),s1="",zl={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ut,IbDropdownItem:mr,IbDropdownList:Rn,IbTooltip:Ot}},Ul={"aria-label":"breadcrumb"},Kl={class:"breadcrumb"},Gl=["href"],Yl={key:1},Wl=["href"];function Zl(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",Ul,[i.createElementVNode("ul",Kl,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",d===r.last?"active":""]),"aria-current":"page",key:d},[d!==r.last&&d>e.items.length-4||d===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:f.url},i.toDisplayString(f.title),9,Gl)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",Yl,i.toDisplayString(f.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&d===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(u,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(l,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(c,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:c.url},i.toDisplayString(c.title),9,Wl)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),d!==r.last&&d>e.items.length-5||d===0?(i.openBlock(),i.createBlock(s,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const Jl=_e(zl,[["render",Zl],["__scopeId","data-v-5ef772a9"]]),d1="",Xl={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:ut,IbIcon:Le,IbTooltip:Ot}},Ql=["for"],es={key:0,class:"required"};function ts(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-tooltip"),u=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",es,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(u,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(s,{name:"information-circle-outline"}),i.createVNode(l,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,Ql)}const dn=_e(Xl,[["render",ts],["__scopeId","data-v-3e867259"]]),gr={text:"text",password:"password",email:"email",number:"number"},c1="",ns={name:"IbInput",props:{type:{type:String,default:gr.text,validator:t=>Object.keys(gr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return ht()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:Bn.bottom},settingsHorizontalPosition:{type:String,default:sn.right},readonly:{type:Boolean,default:!1}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue)},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Dn({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===gr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:Mt,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln},inheritAttrs:!1},rs=["aria-invalid","readonly","disabled","id"],is={class:"settings-wrapper"};function os(t,n,e,o,a,r){var p,f;const s=i.resolveComponent("ib-alert"),l=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(s,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(l,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=d=>a.actualValue=d),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=d=>r.onInput(d)),onBlur:n[2]||(n[2]=d=>r.onBlur(d)),onFocus:n[3]||(n[3]=d=>r.onFocus(d))}),null,16,rs),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(u,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(u,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(l,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(f=a.actualValue)==null?void 0:f.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(u,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(l,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",is,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const yr=_e(ns,[["render",os],["__scopeId","data-v-c89161ac"]]),u1="",as={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return ht()}},value:{default:1},modelValue:{type:Boolean},isChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(){this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked)}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Dn({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},ls=["aria-checked"],ss=["for","tabindex"],ds=["name","id","value","checked","disabled","required"],cs={class:"ib-checkbox-body"},us={key:0,class:"required"},fs={class:"ib-checkbox-input"},hs={key:1,class:"ib-checkbox-label"},ps={key:0,class:"required"};function ms(t,n,e,o,a,r){var l;const s=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox",class:i.normalizeClass(this.$attrs.class),"aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onKeypress:n[1]||(n[1]=i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]))}),[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,checked:a.checked,disabled:e.disabled,required:e.required,onClick:n[0]||(n[0]=(...u)=>r.onChange&&r.onChange(...u))},null,8,ds),i.createElementVNode("div",cs,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",us,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",fs,[i.withDirectives(i.createVNode(s,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(s,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((l=e.label)!=null&&l.length)?(i.openBlock(),i.createElementBlock("span",hs,[e.required?(i.openBlock(),i.createElementBlock("span",ps,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,ss)],10,ls)}const vr=_e(as,[["render",ms]]),f1="",gs={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>ht()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.checked=!this.checked,this.$emit("input",this.checked)}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:Ot}},ys=["aria-checked","tabindex"],vs={class:"toggle-wrapper",ref:"wrapper"},bs={class:"toggle",ref:"toggle"},_s=["name","checked","id","disabled"],$s=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),ws={key:0,class:"toggle-label"};function ks(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon"),l=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...u)=>r.onChange&&r.onChange(...u),["prevent"]),["enter"]))]},[i.createElementVNode("div",vs,[i.createElementVNode("div",bs,[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...u)=>r.onChange&&r.onChange(...u)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,_s),$s,i.createVNode(s,{class:"checked-icon",name:"checkmark"}),i.createVNode(s,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",ws,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(l,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,ys)}const Ei=_e(gs,[["render",ks]]);function Si(t){return t.scrollHeight>t.clientHeight}const h1="",Cs={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{Si(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===_i&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===qa&&(this.option.isChildrenVisible=!0),t.keyCode===Va&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o}},computed:{component(){return this.isMultiple&&this.isToggle?Ei:vr},isChecked(){if(this.option.checked)return!0;if(this.option.isIndeterminate)return null;if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return!0},hasChildren(){return this.option.children&&this.option.children.length},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:pr,IbIconButton:ut,IbTooltip:Ot}},Os=["aria-selected","aria-label","id"],Es={key:0,class:"option-label"},Ss={key:1,class:"option-label"},Ns=["innerHTML"],xs=["innerHTML"],Ts={key:2,class:"option-label"};function As(t,n,e,o,a,r){const s=i.resolveComponent("ib-tooltip"),l=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list");return i.openBlock(),i.createElementBlock("li",null,[i.createElementVNode("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked,"tree-select-option-margin":r.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":r.isChecked,"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...f)=>r.onKeydown&&r.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>t.$emit("onFocus",`option-${r.id}`))},[a.showTooltip?(i.openBlock(),i.createBlock(s,{key:0,text:e.option.title},null,8,["text"])):i.createCommentVNode("",!0),i.withDirectives(i.createVNode(u,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(l,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked,disabled:e.option.isDisabled,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",Ss,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Es,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(l,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,xs)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,Ns))],64)):(i.openBlock(),i.createElementBlock("span",Ts,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(p,{key:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,f=>i.withDirectives((i.openBlock(),i.createBlock(h,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=d=>t.$emit("toggle-bookmark",d)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,f.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Os)])}const Ds=_e(Cs,[["render",As]]);var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ni={exports:{}};/*!***************************************************
|
|
2
2
|
* mark.js v8.11.1
|
|
3
3
|
* https://markjs.io/
|
|
4
4
|
* Copyright (c) 2014–2018, Julian Kühnel
|
|
5
5
|
* Released under the MIT license https://git.io/vwTVl
|
|
6
|
-
*****************************************************/(function(t,n){(function(e,o){t.exports=o()})(qe,function(){class e{constructor(r,s=!0,l=[],u=5e3){this.ctx=r,this.iframes=s,this.exclude=l,this.iframesTimeout=u}static matches(r,s){const l=typeof s=="string"?[s]:s,u=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(u){let h=!1;return l.every(p=>!u.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(s=>{const l=r.filter(u=>u.contains(s)).length>0;r.indexOf(s)!==-1||l||r.push(s)}),r}getIframeContents(r,s,l=()=>{}){let u;try{const h=r.contentWindow;if(u=h.document,!h||!u)throw new Error("iframe inaccessible")}catch{l()}u&&s(u)}isIframeBlank(r){const s="about:blank",l=r.getAttribute("src").trim();return r.contentWindow.location.href===s&&l!==s&&l}observeIframeLoad(r,s,l){let u=!1,h=null;const p=()=>{if(!u){u=!0,clearTimeout(h);try{this.isIframeBlank(r)||(r.removeEventListener("load",p),this.getIframeContents(r,s,l))}catch{l()}}};r.addEventListener("load",p),h=setTimeout(p,this.iframesTimeout)}onIframeReady(r,s,l){try{r.contentWindow.document.readyState==="complete"?this.isIframeBlank(r)?this.observeIframeLoad(r,s,l):this.getIframeContents(r,s,l):this.observeIframeLoad(r,s,l)}catch{l()}}waitForIframes(r,s){let l=0;this.forEachIframe(r,()=>!0,u=>{l++,this.waitForIframes(u.querySelector("html"),()=>{--l||s()})},u=>{u||s()})}forEachIframe(r,s,l,u=()=>{}){let h=r.querySelectorAll("iframe"),p=h.length,f=0;h=Array.prototype.slice.call(h);const d=()=>{--p<=0&&u(f)};p||d(),h.forEach(c=>{e.matches(c,this.exclude)?d():this.onIframeReady(c,_=>{s(c)&&(f++,l(_)),d()},d)})}createIterator(r,s,l){return document.createNodeIterator(r,s,l,!1)}createInstanceOnIframe(r){return new e(r.querySelector("html"),this.iframes)}compareNodeIframe(r,s,l){const u=r.compareDocumentPosition(l),h=Node.DOCUMENT_POSITION_PRECEDING;return!!(u&h&&(s===null||s.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(r){const s=r.previousNode();return{prevNode:s,node:(s===null||r.nextNode())&&r.nextNode()}}checkIframeFilter(r,s,l,u){let h=!1,p=!1;return u.forEach((f,d)=>{f.val===l&&(h=d,p=f.handled)}),this.compareNodeIframe(r,s,l)?(h!==!1||p?h===!1||p||(u[h].handled=!0):u.push({val:l,handled:!0}),!0):(h===!1&&u.push({val:l,handled:!1}),!1)}handleOpenIframes(r,s,l,u){r.forEach(h=>{h.handled||this.getIframeContents(h.val,p=>{this.createInstanceOnIframe(p).forEachNode(s,l,u)})})}iterateThroughNodes(r,s,l,u,h){const p=this.createIterator(s,r,u);let f,d,c=[],_=[],v=()=>({prevNode:d,node:f}=this.getIteratorNode(p),f);for(;v();)this.iframes&&this.forEachIframe(s,b=>this.checkIframeFilter(f,d,b,c),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),u)}),_.push(f);_.forEach(b=>{l(b)}),this.iframes&&this.handleOpenIframes(c,r,l,u),h()}forEachNode(r,s,l,u=()=>{}){const h=this.getContexts();let p=h.length;p||u(),h.forEach(f=>{const d=()=>{this.iterateThroughNodes(r,f,s,l,()=>{--p<=0&&u()})};this.iframes?this.waitForIframes(f,d):d()})}}class o{constructor(r){this.ctx=r,this.ie=!1;const s=window.navigator.userAgent;(s.indexOf("MSIE")>-1||s.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,s="debug"){const l=this.opt.log;this.opt.debug&&typeof l=="object"&&typeof l[s]=="function"&&l[s](`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 s=this.opt.synonyms,l=this.opt.caseSensitive?"":"i",u=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let h in s)if(s.hasOwnProperty(h)){const p=s[h],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);f!==""&&d!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(f)}|${this.escapeStr(d)})`,`gm${l}`),u+`(${this.processSynomyms(f)}|${this.processSynomyms(d)})`+u))}return r}processSynomyms(r){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),r}setupWildcardsRegExp(r){return(r=r.replace(/(?:\\)*\?/g,s=>s.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,s=>s.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(r){let s=this.opt.wildcards==="withSpaces";return r.replace(/\u0001/g,s?"[\\S\\s]?":"\\S?").replace(/\u0002/g,s?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(r){return r.replace(/[^(|)\\]/g,(s,l,u)=>{let h=u.charAt(l+1);return/[(|)\\]/.test(h)||h===""?s:s+"\0"})}createJoinersRegExp(r){let s=[];const l=this.opt.ignorePunctuation;return Array.isArray(l)&&l.length&&s.push(this.escapeStr(l.join(""))),this.opt.ignoreJoiners&&s.push("\\u00ad\\u200b\\u200c\\u200d"),s.length?r.split(/\u0000+/).join(`[${s.join("")}]*`):r}createDiacriticsRegExp(r){const s=this.opt.caseSensitive?"":"i",l=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 u=[];return r.split("").forEach(h=>{l.every(p=>{if(p.indexOf(h)!==-1){if(u.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${s}`),`[${p}]`),u.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const s="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let l=this.opt.accuracy,u=typeof l=="string"?l:l.value,h=typeof l=="string"?[]:l.limiters,p="";switch(h.forEach(f=>{p+=`|${this.escapeStr(f)}`}),u){case"partially":default:return`()(${r})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(s))}]*${r}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${r})(?=$|\\s${p})`}}getSeparatedKeywords(r){let s=[];return r.forEach(l=>{this.opt.separateWordSearch?l.split(" ").forEach(u=>{u.trim()&&s.indexOf(u)===-1&&s.push(u)}):l.trim()&&s.indexOf(l)===-1&&s.push(l)}),{keywords:s.sort((l,u)=>u.length-l.length),length:s.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 s=[];let l=0;return r.sort((u,h)=>u.start-h.start).forEach(u=>{let{start:h,end:p,valid:f}=this.callNoMatchOnInvalidRanges(u,l);f&&(u.start=h,u.length=p-h,s.push(u),l=p)}),s}callNoMatchOnInvalidRanges(r,s){let l,u,h=!1;return r&&r.start!==void 0?(u=(l=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&u-s>0&&u-l>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:l,end:u,valid:h}}checkWhitespaceRanges(r,s,l){let u,h=!0,p=l.length,f=s-p,d=parseInt(r.start,10)-f;return(u=(d=d>p?p:d)+parseInt(r.length,10))>p&&(u=p,this.log(`End range automatically set to the max value of ${p}`)),d<0||u-d<0||d>p||u>p?(h=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):l.substring(d,u).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:d,end:u,valid:h}}getTextNodes(r){let s="",l=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,u=>{l.push({start:s.length,end:(s+=u.textContent).length,node:u})},u=>this.matchesExclude(u.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{r({value:s,nodes:l})})}matchesExclude(r){return e.matches(r,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(r,s,l){const u=this.opt.element?this.opt.element:"mark",h=r.splitText(s),p=h.splitText(l-s);let f=document.createElement(u);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=h.textContent,h.parentNode.replaceChild(f,h),p}wrapRangeInMappedTextNode(r,s,l,u,h){r.nodes.every((p,f)=>{const d=r.nodes[f+1];if(d===void 0||d.start>s){if(!u(p.node))return!1;const c=s-p.start,_=(l>p.end?p.end:l)-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>=f&&(r.nodes[y].start>0&&y!==f&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),l-=_,h(p.node.previousSibling,p.start),!(l>p.end))return!1;s=p.end}return!0})}wrapMatches(r,s,l,u,h){const p=s===0?0:s+1;this.getTextNodes(f=>{f.nodes.forEach(d=>{let c;for(d=d.node;(c=r.exec(d.textContent))!==null&&c[p]!=="";){if(!l(c[p],d))continue;let _=c.index;if(p!==0)for(let v=1;v<p;v++)_+=c[v].length;d=this.wrapRangeInTextNode(d,_,_+c[p].length),u(d.previousSibling),r.lastIndex=0}}),h()})}wrapMatchesAcrossElements(r,s,l,u,h){const p=s===0?0:s+1;this.getTextNodes(f=>{let d;for(;(d=r.exec(f.value))!==null&&d[p]!=="";){let c=d.index;if(p!==0)for(let v=1;v<p;v++)c+=d[v].length;const _=c+d[p].length;this.wrapRangeInMappedTextNode(f,c,_,v=>l(d[p],v),(v,b)=>{r.lastIndex=b,u(v)})}h()})}wrapRangeFromIndex(r,s,l,u){this.getTextNodes(h=>{const p=h.value.length;r.forEach((f,d)=>{let{start:c,end:_,valid:v}=this.checkWhitespaceRanges(f,p,h.value);v&&this.wrapRangeInMappedTextNode(h,c,_,b=>s(b,f,h.value.substring(c,_),d),b=>{l(b,f)})}),u()})}unwrapMatches(r){const s=r.parentNode;let l=document.createDocumentFragment();for(;r.firstChild;)l.appendChild(r.removeChild(r.firstChild));s.replaceChild(l,r),this.ie?this.normalizeTextNode(s):s.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,s){this.opt=s,this.log(`Searching with expression "${r}"`);let l=0,u="wrapMatches";const h=p=>{l++,this.opt.each(p)};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),this[u](r,this.opt.ignoreGroups,(p,f)=>this.opt.filter(f,p,l),h,()=>{l===0&&this.opt.noMatch(r),this.opt.done(l)})}mark(r,s){this.opt=s;let l=0,u="wrapMatches";const{keywords:h,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),f=this.opt.caseSensitive?"":"i",d=c=>{let _=new RegExp(this.createRegExp(c),`gm${f}`),v=0;this.log(`Searching with expression "${_}"`),this[u](_,1,(b,g)=>this.opt.filter(g,c,l,v),b=>{v++,l++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(c),h[p-1]===c?this.opt.done(l):d(h[h.indexOf(c)+1])})};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),p===0?this.opt.done(l):d(h[0])}markRanges(r,s){this.opt=s;let l=0,u=this.checkRanges(r);u&&u.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(u)),this.wrapRangeFromIndex(u,(h,p,f,d)=>this.opt.filter(h,p,f,d),(h,p)=>{l++,this.opt.each(h,p)},()=>{this.opt.done(l)})):this.opt.done(l)}unmark(r){this.opt=r;let s=this.opt.element?this.opt.element:"*";s+="[data-markjs]",this.opt.className&&(s+=`.${this.opt.className}`),this.log(`Removal selector "${s}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,l=>{this.unwrapMatches(l)},l=>{const u=e.matches(l,s),h=this.matchesExclude(l);return!u||h?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const r=new o(a);return this.mark=(s,l)=>(r.mark(s,l),this),this.markRegExp=(s,l)=>(r.markRegExp(s,l),this),this.markRanges=(s,l)=>(r.markRanges(s,l),this),this.unmark=s=>(r.unmark(s),this),this}})})(Ni);var Is=Ni.exports;const Ms=jn(Is),p1="",Ps={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},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},vertical:{type:String},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","update:modelValue"],watch:{value(t){this.val=t,this.setPreparedValues()},modelValue(t){this.val=t,this.actualOptions=[],this.setPreparedValues()},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(){let t=!0;if(typeof this.options=="function")t=!1;else{const n=[],e=this.options;Array.prototype.forEach.call(e,o=>{o.id!==void 0&&n.push(o.id)}),t=JSON.stringify(n)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=n}(this.isInitialized&&!t||this.isWatching)&&this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},dependency(t,n){this.$nextTick(()=>{this.registerDependency(n)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new Ms(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,s,l;return this.defaultFilter=u=>{this.marker.unmark();const h=this.filterString.toLowerCase().trim();this.filterFunc.call(this,u,h),h&&this.marker.mark(h)},{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,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",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(l=this.LANG_COMPONENTS)==null?void 0:l.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.options;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.actualOptions=[],this.allOptionsIsChecked=!1,this.selected=[],this.$emit("update:modelValue",null)},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(s=>{s.initiallyVisible=typeof s.visible>"u"?!0:s.visible,s.visible=s.initiallyVisible,s.isDisabled=!1,s.checked=this.isMultiple?this.val!==null&&this.val.findIndex(l=>s.id==l)>-1:this.val!==null&&this.val==s.id,s.checked&&(!this.onlyEndNodes||!s.children)&&(e[s.id]=s),s.children&&(this.hasTreeChildren=!0,s.isChildrenVisible=!1),o.push(new Promise(l=>{s.children?this.prepare(s.children).then(([u,h])=>{s.children=u,Object.assign(e,h),l(s)}):l(s)}))}),Promise.all(o).then(s=>{n([s,e])}))).catch(r=>{throw this.isLoading=!1,r})})},filterFunc(t,n){t.forEach(e=>{let o=e.initiallyVisible&&e.title.toString().toLowerCase().includes(n)&&!this.actualBookmarkedOptions[e.id];if(e.children&&e.children.length){let a=this.filterFunc(e.children,n);a&&(e.isChildrenVisible=!!n||!!Object.keys(this.actualBookmarkedOptions).length,e.isDisabled=a<e.children.length&&!this.isBookmarkable),o?a||(o=!1):o=!!a}e.visible=o})},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)},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=>{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")}},computed:{hasTrigger(){return!!this.$slots.trigger},hasEmptyMessage(){return!!this.$slots.emptyMessage},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:Mt,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln,IbInput:yr,List:pr,"select-option":Ds},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},Bs={key:0,class:"tree-select-empty"},Ls={key:1,class:"tree-select-default-empty tree-select-empty"};function Rs(t,n,e,o,a,r){const s=i.resolveComponent("ib-alert"),l=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list"),f=i.resolveComponent("ib-input"),d=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.errorMessage?(i.openBlock(),i.createBlock(s,{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])},[i.createVNode(d,{disabled:a.isLoading,"is-resizable":e.isResizable,vertical:e.vertical,ref:"dropdown",onClose:r.onClose,onOpen:n[9]||(n[9]=c=>a.isOpen=!0)},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle({width:"auto",position:"absolute",left:-a.size.left+"px",right:-a.size.right+"px"})},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[4]||(n[4]=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[5]||(n[5]=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(f,{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[6]||(n[6]=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",Bs,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",Ls,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[7]||(n[7]=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[8]||(n[8]=_=>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","aria-labelledby":"",onClick:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"])),onBlur:n[1]||(n[1]=(..._)=>r.onBlur&&r.onBlur(..._)),onKeyup:[n[2]||(n[2]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["down"])),n[3]||(n[3]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[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))],42,["aria-labelledby","aria-label","aria-activedescendant"]),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(u,{key:0,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(l,{name:c?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","onClose"])],2)],64)}const xi=_e(Ps,[["render",Rs]]),m1="",js={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:xi}},Vs={class:"report-limit-selector"};function qs(t,n,e,o,a,r){const s=i.resolveComponent("ib-label"),l=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",Vs,[i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(l,{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 Ti=_e(js,[["render",qs]]),g1="",Fs={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:yr,IbLabel:dn,IbLimitSelector:Ti,IbTooltip:Ot}},Hs={class:"report-controls"},zs={class:"repot-pagination"},Us={class:"pagination-input"},Ks={class:"row-count"},Gs={class:"pagination-wrapper"},Ys=["onClick"];function Ws(t,n,e,o,a,r){const s=i.resolveComponent("ib-limit-selector"),l=i.resolveComponent("ib-label"),u=i.resolveComponent("ib-input"),h=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Hs,[i.createVNode(s,{onSelect:r.changeLimit,value:a.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),i.createElementVNode("div",zs,[e.showPaginationInput?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(l,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelInput),1)]),_:1}),i.createElementVNode("div",Us,[i.createVNode(u,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Ks,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=d=>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",Gs,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(d,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,Ys)),[[i.vShow,r.showItem(c+1)]])),128))]),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===r.countPagePagination,onClick:n[1]||(n[1]=d=>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 Zs=_e(Fs,[["render",Ws]]),cn={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},y1="",Js={props:{states:{type:String,default:cn.PROGRESS},progress:{type:[String,Number],default: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}},Ai=t=>(i.pushScopeId("data-v-b64f2af0"),t=t(),i.popScopeId(),t),Xs={class:"ib-progress-bar-wrapper"},Qs=["aria-valuenow"],ed=[Ai(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],td=Ai(()=>i.createElementVNode("div",null,null,-1));function nd(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",Xs,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",role:"meter","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:i.normalizeStyle({width:e.progress+"%"})},ed,12,Qs),td],2),i.withDirectives(i.createVNode(s,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const rd=_e(Js,[["render",nd],["__scopeId","data-v-b64f2af0"]]),id={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
+
*****************************************************/(function(t,n){(function(e,o){t.exports=o()})(qe,function(){class e{constructor(r,s=!0,l=[],u=5e3){this.ctx=r,this.iframes=s,this.exclude=l,this.iframesTimeout=u}static matches(r,s){const l=typeof s=="string"?[s]:s,u=r.matches||r.matchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector;if(u){let h=!1;return l.every(p=>!u.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(s=>{const l=r.filter(u=>u.contains(s)).length>0;r.indexOf(s)!==-1||l||r.push(s)}),r}getIframeContents(r,s,l=()=>{}){let u;try{const h=r.contentWindow;if(u=h.document,!h||!u)throw new Error("iframe inaccessible")}catch{l()}u&&s(u)}isIframeBlank(r){const s="about:blank",l=r.getAttribute("src").trim();return r.contentWindow.location.href===s&&l!==s&&l}observeIframeLoad(r,s,l){let u=!1,h=null;const p=()=>{if(!u){u=!0,clearTimeout(h);try{this.isIframeBlank(r)||(r.removeEventListener("load",p),this.getIframeContents(r,s,l))}catch{l()}}};r.addEventListener("load",p),h=setTimeout(p,this.iframesTimeout)}onIframeReady(r,s,l){try{r.contentWindow.document.readyState==="complete"?this.isIframeBlank(r)?this.observeIframeLoad(r,s,l):this.getIframeContents(r,s,l):this.observeIframeLoad(r,s,l)}catch{l()}}waitForIframes(r,s){let l=0;this.forEachIframe(r,()=>!0,u=>{l++,this.waitForIframes(u.querySelector("html"),()=>{--l||s()})},u=>{u||s()})}forEachIframe(r,s,l,u=()=>{}){let h=r.querySelectorAll("iframe"),p=h.length,f=0;h=Array.prototype.slice.call(h);const d=()=>{--p<=0&&u(f)};p||d(),h.forEach(c=>{e.matches(c,this.exclude)?d():this.onIframeReady(c,_=>{s(c)&&(f++,l(_)),d()},d)})}createIterator(r,s,l){return document.createNodeIterator(r,s,l,!1)}createInstanceOnIframe(r){return new e(r.querySelector("html"),this.iframes)}compareNodeIframe(r,s,l){const u=r.compareDocumentPosition(l),h=Node.DOCUMENT_POSITION_PRECEDING;return!!(u&h&&(s===null||s.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING))}getIteratorNode(r){const s=r.previousNode();return{prevNode:s,node:(s===null||r.nextNode())&&r.nextNode()}}checkIframeFilter(r,s,l,u){let h=!1,p=!1;return u.forEach((f,d)=>{f.val===l&&(h=d,p=f.handled)}),this.compareNodeIframe(r,s,l)?(h!==!1||p?h===!1||p||(u[h].handled=!0):u.push({val:l,handled:!0}),!0):(h===!1&&u.push({val:l,handled:!1}),!1)}handleOpenIframes(r,s,l,u){r.forEach(h=>{h.handled||this.getIframeContents(h.val,p=>{this.createInstanceOnIframe(p).forEachNode(s,l,u)})})}iterateThroughNodes(r,s,l,u,h){const p=this.createIterator(s,r,u);let f,d,c=[],_=[],v=()=>({prevNode:d,node:f}=this.getIteratorNode(p),f);for(;v();)this.iframes&&this.forEachIframe(s,b=>this.checkIframeFilter(f,d,b,c),b=>{this.createInstanceOnIframe(b).forEachNode(r,g=>_.push(g),u)}),_.push(f);_.forEach(b=>{l(b)}),this.iframes&&this.handleOpenIframes(c,r,l,u),h()}forEachNode(r,s,l,u=()=>{}){const h=this.getContexts();let p=h.length;p||u(),h.forEach(f=>{const d=()=>{this.iterateThroughNodes(r,f,s,l,()=>{--p<=0&&u()})};this.iframes?this.waitForIframes(f,d):d()})}}class o{constructor(r){this.ctx=r,this.ie=!1;const s=window.navigator.userAgent;(s.indexOf("MSIE")>-1||s.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,s="debug"){const l=this.opt.log;this.opt.debug&&typeof l=="object"&&typeof l[s]=="function"&&l[s](`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 s=this.opt.synonyms,l=this.opt.caseSensitive?"":"i",u=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let h in s)if(s.hasOwnProperty(h)){const p=s[h],f=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);f!==""&&d!==""&&(r=r.replace(new RegExp(`(${this.escapeStr(f)}|${this.escapeStr(d)})`,`gm${l}`),u+`(${this.processSynomyms(f)}|${this.processSynomyms(d)})`+u))}return r}processSynomyms(r){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(r=this.setupIgnoreJoinersRegExp(r)),r}setupWildcardsRegExp(r){return(r=r.replace(/(?:\\)*\?/g,s=>s.charAt(0)==="\\"?"?":"")).replace(/(?:\\)*\*/g,s=>s.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(r){let s=this.opt.wildcards==="withSpaces";return r.replace(/\u0001/g,s?"[\\S\\s]?":"\\S?").replace(/\u0002/g,s?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(r){return r.replace(/[^(|)\\]/g,(s,l,u)=>{let h=u.charAt(l+1);return/[(|)\\]/.test(h)||h===""?s:s+"\0"})}createJoinersRegExp(r){let s=[];const l=this.opt.ignorePunctuation;return Array.isArray(l)&&l.length&&s.push(this.escapeStr(l.join(""))),this.opt.ignoreJoiners&&s.push("\\u00ad\\u200b\\u200c\\u200d"),s.length?r.split(/\u0000+/).join(`[${s.join("")}]*`):r}createDiacriticsRegExp(r){const s=this.opt.caseSensitive?"":"i",l=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 u=[];return r.split("").forEach(h=>{l.every(p=>{if(p.indexOf(h)!==-1){if(u.indexOf(p)>-1)return!1;r=r.replace(new RegExp(`[${p}]`,`gm${s}`),`[${p}]`),u.push(p)}return!0})}),r}createMergedBlanksRegExp(r){return r.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(r){const s="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let l=this.opt.accuracy,u=typeof l=="string"?l:l.value,h=typeof l=="string"?[]:l.limiters,p="";switch(h.forEach(f=>{p+=`|${this.escapeStr(f)}`}),u){case"partially":default:return`()(${r})`;case"complementary":return`()([^${p="\\s"+(p||this.escapeStr(s))}]*${r}[^${p}]*)`;case"exactly":return`(^|\\s${p})(${r})(?=$|\\s${p})`}}getSeparatedKeywords(r){let s=[];return r.forEach(l=>{this.opt.separateWordSearch?l.split(" ").forEach(u=>{u.trim()&&s.indexOf(u)===-1&&s.push(u)}):l.trim()&&s.indexOf(l)===-1&&s.push(l)}),{keywords:s.sort((l,u)=>u.length-l.length),length:s.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 s=[];let l=0;return r.sort((u,h)=>u.start-h.start).forEach(u=>{let{start:h,end:p,valid:f}=this.callNoMatchOnInvalidRanges(u,l);f&&(u.start=h,u.length=p-h,s.push(u),l=p)}),s}callNoMatchOnInvalidRanges(r,s){let l,u,h=!1;return r&&r.start!==void 0?(u=(l=parseInt(r.start,10))+parseInt(r.length,10),this.isNumeric(r.start)&&this.isNumeric(r.length)&&u-s>0&&u-l>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:l,end:u,valid:h}}checkWhitespaceRanges(r,s,l){let u,h=!0,p=l.length,f=s-p,d=parseInt(r.start,10)-f;return(u=(d=d>p?p:d)+parseInt(r.length,10))>p&&(u=p,this.log(`End range automatically set to the max value of ${p}`)),d<0||u-d<0||d>p||u>p?(h=!1,this.log(`Invalid range: ${JSON.stringify(r)}`),this.opt.noMatch(r)):l.substring(d,u).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(r)),this.opt.noMatch(r)),{start:d,end:u,valid:h}}getTextNodes(r){let s="",l=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,u=>{l.push({start:s.length,end:(s+=u.textContent).length,node:u})},u=>this.matchesExclude(u.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{r({value:s,nodes:l})})}matchesExclude(r){return e.matches(r,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(r,s,l){const u=this.opt.element?this.opt.element:"mark",h=r.splitText(s),p=h.splitText(l-s);let f=document.createElement(u);return f.setAttribute("data-markjs","true"),this.opt.className&&f.setAttribute("class",this.opt.className),f.textContent=h.textContent,h.parentNode.replaceChild(f,h),p}wrapRangeInMappedTextNode(r,s,l,u,h){r.nodes.every((p,f)=>{const d=r.nodes[f+1];if(d===void 0||d.start>s){if(!u(p.node))return!1;const c=s-p.start,_=(l>p.end?p.end:l)-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>=f&&(r.nodes[y].start>0&&y!==f&&(r.nodes[y].start-=_),r.nodes[y].end-=_)}),l-=_,h(p.node.previousSibling,p.start),!(l>p.end))return!1;s=p.end}return!0})}wrapMatches(r,s,l,u,h){const p=s===0?0:s+1;this.getTextNodes(f=>{f.nodes.forEach(d=>{let c;for(d=d.node;(c=r.exec(d.textContent))!==null&&c[p]!=="";){if(!l(c[p],d))continue;let _=c.index;if(p!==0)for(let v=1;v<p;v++)_+=c[v].length;d=this.wrapRangeInTextNode(d,_,_+c[p].length),u(d.previousSibling),r.lastIndex=0}}),h()})}wrapMatchesAcrossElements(r,s,l,u,h){const p=s===0?0:s+1;this.getTextNodes(f=>{let d;for(;(d=r.exec(f.value))!==null&&d[p]!=="";){let c=d.index;if(p!==0)for(let v=1;v<p;v++)c+=d[v].length;const _=c+d[p].length;this.wrapRangeInMappedTextNode(f,c,_,v=>l(d[p],v),(v,b)=>{r.lastIndex=b,u(v)})}h()})}wrapRangeFromIndex(r,s,l,u){this.getTextNodes(h=>{const p=h.value.length;r.forEach((f,d)=>{let{start:c,end:_,valid:v}=this.checkWhitespaceRanges(f,p,h.value);v&&this.wrapRangeInMappedTextNode(h,c,_,b=>s(b,f,h.value.substring(c,_),d),b=>{l(b,f)})}),u()})}unwrapMatches(r){const s=r.parentNode;let l=document.createDocumentFragment();for(;r.firstChild;)l.appendChild(r.removeChild(r.firstChild));s.replaceChild(l,r),this.ie?this.normalizeTextNode(s):s.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,s){this.opt=s,this.log(`Searching with expression "${r}"`);let l=0,u="wrapMatches";const h=p=>{l++,this.opt.each(p)};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),this[u](r,this.opt.ignoreGroups,(p,f)=>this.opt.filter(f,p,l),h,()=>{l===0&&this.opt.noMatch(r),this.opt.done(l)})}mark(r,s){this.opt=s;let l=0,u="wrapMatches";const{keywords:h,length:p}=this.getSeparatedKeywords(typeof r=="string"?[r]:r),f=this.opt.caseSensitive?"":"i",d=c=>{let _=new RegExp(this.createRegExp(c),`gm${f}`),v=0;this.log(`Searching with expression "${_}"`),this[u](_,1,(b,g)=>this.opt.filter(g,c,l,v),b=>{v++,l++,this.opt.each(b)},()=>{v===0&&this.opt.noMatch(c),h[p-1]===c?this.opt.done(l):d(h[h.indexOf(c)+1])})};this.opt.acrossElements&&(u="wrapMatchesAcrossElements"),p===0?this.opt.done(l):d(h[0])}markRanges(r,s){this.opt=s;let l=0,u=this.checkRanges(r);u&&u.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(u)),this.wrapRangeFromIndex(u,(h,p,f,d)=>this.opt.filter(h,p,f,d),(h,p)=>{l++,this.opt.each(h,p)},()=>{this.opt.done(l)})):this.opt.done(l)}unmark(r){this.opt=r;let s=this.opt.element?this.opt.element:"*";s+="[data-markjs]",this.opt.className&&(s+=`.${this.opt.className}`),this.log(`Removal selector "${s}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,l=>{this.unwrapMatches(l)},l=>{const u=e.matches(l,s),h=this.matchesExclude(l);return!u||h?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}return function(a){const r=new o(a);return this.mark=(s,l)=>(r.mark(s,l),this),this.markRegExp=(s,l)=>(r.markRegExp(s,l),this),this.markRanges=(s,l)=>(r.markRanges(s,l),this),this.unmark=s=>(r.unmark(s),this),this}})})(Ni);var Is=Ni.exports;const Ms=jn(Is),p1="",Ps={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},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},vertical:{type:String},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","update:modelValue"],watch:{value(t){this.val=t,this.setPreparedValues()},modelValue(t){this.val=t,this.actualOptions=[],this.setPreparedValues()},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(){let t=!0;if(typeof this.options=="function")t=!1;else{const n=[],e=this.options;Array.prototype.forEach.call(e,o=>{o.id!==void 0&&n.push(o.id)}),t=JSON.stringify(n)===JSON.stringify(this.optionsIdsWatch),this.optionsIdsWatch=n}(this.isInitialized&&!t||this.isWatching)&&this.setPreparedValues().then(()=>{const n=Object.keys(this.selected);this.$globalEvents.$emit("select-"+this.filterId+":update",{values:n,filter:this.filterId})})},dependency(t,n){this.$nextTick(()=>{this.registerDependency(n)})},initBookmarks(){this.actualBookmarkedOptions={},this.setBookmarkedOptions(this.actualOptions)}},mounted(){this.marker=new Ms(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,s,l;return this.defaultFilter=u=>{this.marker.unmark();const h=this.filterString.toLowerCase().trim();this.filterFunc.call(this,u,h),h&&this.marker.mark(h)},{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,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",(s=this.LANG_COMPONENTS)==null?void 0:s.COMPONENT_SELECT),requiredDependencyNotFilled:this.requiredDependencyNotFilled||lang("required_dependency_are_not_filled",(l=this.LANG_COMPONENTS)==null?void 0:l.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.options;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.actualOptions=[],this.allOptionsIsChecked=!1,this.selected=[],this.$emit("update:modelValue",null)},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(s=>{s.initiallyVisible=typeof s.visible>"u"?!0:s.visible,s.visible=s.initiallyVisible,s.isDisabled=!1,s.checked=this.isMultiple?this.val!==null&&this.val.findIndex(l=>s.id==l)>-1:this.val!==null&&this.val==s.id,s.checked&&(!this.onlyEndNodes||!s.children)&&(e[s.id]=s),s.children&&(this.hasTreeChildren=!0,s.isChildrenVisible=!1),o.push(new Promise(l=>{s.children?this.prepare(s.children).then(([u,h])=>{s.children=u,Object.assign(e,h),l(s)}):l(s)}))}),Promise.all(o).then(s=>{n([s,e])}))).catch(r=>{throw this.isLoading=!1,r})})},filterFunc(t,n){t.forEach(e=>{let o=e.initiallyVisible&&e.title.toString().toLowerCase().includes(n)&&!this.actualBookmarkedOptions[e.id];if(e.children&&e.children.length){let a=this.filterFunc(e.children,n);a&&(e.isChildrenVisible=!!n||!!Object.keys(this.actualBookmarkedOptions).length,e.isDisabled=a<e.children.length&&!this.isBookmarkable),o?a||(o=!1):o=!!a}e.visible=o})},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)},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=>{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")}},computed:{hasTrigger(){return!!this.$slots.trigger},hasEmptyMessage(){return!!this.$slots.emptyMessage},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:Mt,IbIconButton:ut,IbIcon:Le,IbDropdown:Ln,IbInput:yr,List:pr,"select-option":Ds},beforeUnmount(){document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.endResizing)}},Bs={key:0,class:"tree-select-empty"},Ls={key:1,class:"tree-select-default-empty tree-select-empty"};function Rs(t,n,e,o,a,r){const s=i.resolveComponent("ib-alert"),l=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("select-option"),p=i.resolveComponent("list"),f=i.resolveComponent("ib-input"),d=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.errorMessage?(i.openBlock(),i.createBlock(s,{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])},[i.createVNode(d,{disabled:a.isLoading,"is-resizable":e.isResizable,vertical:e.vertical,ref:"dropdown",onClose:r.onClose,onOpen:n[9]||(n[9]=c=>a.isOpen=!0)},i.createSlots({body:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["tree-drop",{"not-tree-child":!a.hasTreeChildren}]),style:i.normalizeStyle({width:"auto",position:"absolute",left:-a.size.left+"px",right:-a.size.right+"px"})},[e.isResizable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"ib-dropdown-resizer ib-dropdown-resizer-left",onMousedown:n[4]||(n[4]=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[5]||(n[5]=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(f,{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[6]||(n[6]=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",Bs,[i.renderSlot(t.$slots,"emptyMessage")])):!r.requiredDependencyNotFilled&&!r.visibleOptionsCount?(i.openBlock(),i.createElementBlock("div",Ls,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[7]||(n[7]=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[8]||(n[8]=_=>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[0]||(n[0]=i.withModifiers(()=>{},["prevent"])),onBlur:n[1]||(n[1]=(..._)=>r.onBlur&&r.onBlur(..._)),onKeyup:[n[2]||(n[2]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["down"])),n[3]||(n[3]=i.withKeys((..._)=>r.comboboxKeyupDown&&r.comboboxKeyupDown(..._),["up"]))],"aria-label":e.ariaLabel,"aria-activedescendant":a.focusedOptionId},[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))],42,["aria-label","aria-activedescendant"]),e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(u,{key:0,kind:"ghost",class:"button-clear",onClick:i.withModifiers(r.clearValue,["prevent"]),"help-text":e.clearButtonMessage},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick","help-text"])),[[i.vShow,Object.keys(a.selected).length]]):i.createCommentVNode("",!0),i.createVNode(l,{name:c?"chevron-up-outline":"chevron-down-outline",classes:"tree-select-caret"},null,8,["name"])]),key:"1"}]),1032,["disabled","is-resizable","vertical","onClose"])],2)],64)}const xi=_e(Ps,[["render",Rs]]),m1="",js={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:xi}},Vs={class:"report-limit-selector"};function qs(t,n,e,o,a,r){const s=i.resolveComponent("ib-label"),l=i.resolveComponent("ib-select");return i.openBlock(),i.createElementBlock("div",Vs,[i.createVNode(s,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelSelect),1)]),_:1}),i.createVNode(l,{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 Ti=_e(js,[["render",qs]]),g1="",Fs={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:yr,IbLabel:dn,IbLimitSelector:Ti,IbTooltip:Ot}},Hs={class:"report-controls"},zs={class:"repot-pagination"},Us={class:"pagination-input"},Ks={class:"row-count"},Gs={class:"pagination-wrapper"},Ys=["onClick"];function Ws(t,n,e,o,a,r){const s=i.resolveComponent("ib-limit-selector"),l=i.resolveComponent("ib-label"),u=i.resolveComponent("ib-input"),h=i.resolveComponent("ib-icon"),p=i.resolveComponent("ib-tooltip"),f=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",Hs,[i.createVNode(s,{onSelect:r.changeLimit,value:a.limitValue,"label-select":e.labelSelect},null,8,["onSelect","value","label-select"]),i.createElementVNode("div",zs,[e.showPaginationInput?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(l,null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.labelInput),1)]),_:1}),i.createElementVNode("div",Us,[i.createVNode(u,{type:"number",debounce:500,onInput:r.onInput},null,8,["onInput"])])],64)):i.createCommentVNode("",!0),i.createElementVNode("div",Ks,i.toDisplayString(r.setCountOfRows+" of "+e.countRows),1),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-prev",disabled:a.currentPage===1,onClick:n[0]||(n[0]=d=>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",Gs,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.countPagePagination,(d,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,Ys)),[[i.vShow,r.showItem(c+1)]])),128))]),i.createVNode(f,{kind:"tertiary",size:"m",class:"toggle-children button-next",disabled:a.currentPage===r.countPagePagination,onClick:n[1]||(n[1]=d=>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 Zs=_e(Fs,[["render",Ws]]),cn={PROGRESS:"progress",SUCCESS:"success",FAILED:"failed",CANCELING:"canceling",CANCELED:"canceled"},y1="",Js={props:{states:{type:String,default:cn.PROGRESS},progress:{type:[String,Number],default: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}},Ai=t=>(i.pushScopeId("data-v-b64f2af0"),t=t(),i.popScopeId(),t),Xs={class:"ib-progress-bar-wrapper"},Qs=["aria-valuenow"],ed=[Ai(()=>i.createElementVNode("div",{class:"gradient"},null,-1))],td=Ai(()=>i.createElementVNode("div",null,null,-1));function nd(t,n,e,o,a,r){const s=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",Xs,[i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",{class:"progress",role:"meter","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress,style:i.normalizeStyle({width:e.progress+"%"})},ed,12,Qs),td],2),i.withDirectives(i.createVNode(s,{class:"status-icon",name:r.iconName},null,8,["name"]),[[i.vShow,r.iconName.length]])])}const rd=_e(Js,[["render",nd],["__scopeId","data-v-b64f2af0"]]),id={new:`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
7
|
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
|
|
8
8
|
</svg>
|
|
9
9
|
`,success:`
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div role="checkbox" :aria-checked="checked ? true : false">
|
|
2
|
+
<div role="checkbox" :class="this.$attrs.class" :aria-checked="checked ? true : false">
|
|
3
3
|
<label
|
|
4
4
|
v-bind="attrs"
|
|
5
5
|
:for="id"
|
|
@@ -132,8 +132,8 @@ export default {
|
|
|
132
132
|
},
|
|
133
133
|
attrs() {
|
|
134
134
|
const attrsList = { ...removeEvents({ ...this.$attrs }) };
|
|
135
|
-
|
|
136
|
-
attrsList.class =
|
|
135
|
+
delete attrsList.class;
|
|
136
|
+
attrsList.class = this.classes;
|
|
137
137
|
|
|
138
138
|
return attrsList;
|
|
139
139
|
},
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
tabindex="0"
|
|
23
23
|
class="tree-choice"
|
|
24
24
|
ref="combobox"
|
|
25
|
-
aria-labelledby=""
|
|
26
25
|
@click.prevent
|
|
27
26
|
@blur="onBlur"
|
|
28
27
|
@keyup.down="comboboxKeyupDown"
|
|
29
28
|
@keyup.up="comboboxKeyupDown"
|
|
30
|
-
:aria-labelledby="id"
|
|
31
29
|
:aria-label="ariaLabel"
|
|
32
30
|
:aria-activedescendant="focusedOptionId"
|
|
33
31
|
:class="{
|