@avakhula/ui 0.0.505-alpha-spa.1 → 0.0.505-alpha-spa.3

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
@@ -220,7 +220,7 @@ const Al = {
220
220
  },
221
221
  classes() {
222
222
  const t = ["ib-button"];
223
- 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;
223
+ return t.push(`ib-btn-${this.kind}`), this.isDisabled && t.push("ib-btn-disabled"), this.block && t.push("ib-btn-block"), (this.href.length || this.to) && t.push("ib-btn-link"), this.hasIcon && t.push("ib-btn-has-icon"), t;
224
224
  },
225
225
  attrs() {
226
226
  const t = zr({ ...this.$attrs }, ["onClick"]);
@@ -1963,7 +1963,7 @@ const yu = {
1963
1963
  methods: {
1964
1964
  setActiveItem() {
1965
1965
  const t = this.$slots.default()[this.activeElemIdx].props;
1966
- delete t.disabled, this.mainButtonAttrs = t, console.log(this.mainButtonAttrs, "href" in this.mainButtonAttrs), this.mainButtonAttrs && "href" in this.mainButtonAttrs ? this.isLink = !0 : this.isLink = !1, this.mainButtonAttrs && "to" in this.mainButtonAttrs ? this.isRouterLink = !0 : this.isRouterLink = !1, this.childList[this.activeElemIdx].classList.add("active"), this.content = this.childList[this.activeElemIdx].textContent;
1966
+ delete t.disabled, this.mainButtonAttrs = t, this.mainButtonAttrs && "href" in this.mainButtonAttrs ? this.isLink = !0 : this.isLink = !1, this.mainButtonAttrs && "to" in this.mainButtonAttrs ? this.isRouterLink = !0 : this.isRouterLink = !1, this.childList[this.activeElemIdx].classList.add("active"), this.content = this.childList[this.activeElemIdx].textContent;
1967
1967
  },
1968
1968
  onClickLink(t) {
1969
1969
  if (this.disabled) {
@@ -1,4 +1,4 @@
1
- (function(pe,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(pe=typeof globalThis<"u"?globalThis:pe||self,i(pe.MyLib={},pe.Vue))})(this,function(pe,i){"use strict";const j0="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},Va={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)}},qa=["name"];function Fa(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,qa)}const Be=_e(Va,[["render",Fa]]);function gt(){return"_"+Math.random().toString(36).substr(2,9)}const Fi={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})}}},V0="",Ha={name:"IbAccordion",mixins:[Fi],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:gt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Be}},za=["id","aria-controls","aria-expanded"],Ua=["id","aria-labelledby"],Ka={class:"accordion-content-wrapper"};function Ga(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-accordion",{active:a.isActive}])},[i.createElementVNode("button",{class:"accordion-title",id:"accordion"+a.uuid,"aria-controls":"accordion-section-"+a.uuid,"aria-expanded":a.isActive,type:"button",onClick:n[0]||(n[0]=i.withModifiers((...s)=>r.onClick&&r.onClick(...s),["prevent"]))},[i.renderSlot(t.$slots,"title",{},void 0,!0),i.createVNode(l,{class:"chevron-icon",name:"chevron-down-outline"})],8,za),i.createVNode(i.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+a.uuid,"aria-labelledby":"accordion"+a.uuid},[i.createElementVNode("div",Ka,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Ua),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Wa=_e(Ha,[["render",Ga],["__scopeId","data-v-8ece19c1"]]),Kt={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Ir(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const q0="",Ya={name:"IbButton",props:{kind:{type:String,default:Kt.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:""},to:{type:[String,Object]},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:{component(){return this.href.length?"a":this.to?"router-link":"button"},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=Ir({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},Za=["method","action"],Ja=["value"],Xa=["value"],Qa=["name","value"];function el(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps(r.attrs,{onClick:n[0]||(n[0]=l=>r.onClick(l)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave}),{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,Ja),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,Xa),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys(e.postOptions),(l,s)=>(i.openBlock(),i.createElementBlock("input",{key:s,type:"hidden",name:l,value:e.postOptions[l]},null,8,Qa))),128))],8,Za)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const Hi=_e(Ya,[["render",el]]),tl=["top","right","bottom","left"],zi=["start","end"],Ui=tl.reduce((t,n)=>t.concat(n,n+"-"+zi[0],n+"-"+zi[1]),[]),Ki=Math.min,yn=Math.max,Yn=Math.round,jt=t=>({x:t,y:t}),nl={left:"right",right:"left",bottom:"top",top:"bottom"},rl={start:"end",end:"start"};function Gi(t,n){return typeof t=="function"?t(n):t}function Zn(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function il(t){return t==="x"?"y":"x"}function Wi(t){return t==="y"?"height":"width"}function Yi(t){return["top","bottom"].includes(Zn(t))?"y":"x"}function Zi(t){return il(Yi(t))}function ol(t,n,e){e===void 0&&(e=!1);const o=Gt(t),a=Zi(t),r=Wi(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(l=Ji(l)),[l,Ji(l)]}function al(t){return t.replace(/start|end/g,n=>rl[n])}function Ji(t){return t.replace(/left|right|bottom|top/g,n=>nl[n])}function ll(t){return{top:0,right:0,bottom:0,left:0,...t}}function sl(t){return typeof t!="number"?ll(t):{top:t,right:t,bottom:t,left:t}}function Jn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Xi(t,n,e){let{reference:o,floating:a}=t;const r=Yi(n),l=Zi(n),s=Wi(l),u=Zn(n),c=r==="y",p=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,d=o[s]/2-a[s]/2;let h;switch(u){case"top":h={x:p,y:o.y-a.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-a.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Gt(n)){case"start":h[l]-=d*(e&&c?-1:1);break;case"end":h[l]+=d*(e&&c?-1:1);break}return h}const dl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(n));let c=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=Xi(c,o,u),d=o,h={},b=0;for(let m=0;m<s.length;m++){const{name:_,fn:y}=s[m],{x:g,y:w,data:v,reset:k}=await y({x:p,y:f,initialPlacement:o,placement:d,strategy:a,middlewareData:h,rects:c,platform:l,elements:{reference:t,floating:n}});p=g??p,f=w??f,h={...h,[_]:{...h[_],...v}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(d=k.placement),k.rects&&(c=k.rects===!0?await l.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:f}=Xi(c,d,u)),m=-1)}return{x:p,y:f,placement:d,strategy:a,middlewareData:h}};async function cl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Gi(n,t),b=sl(h),_=s[d?f==="floating"?"reference":"floating":f],y=Jn(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(_)))==null||e?_:_.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:u})),g=f==="floating"?{...l.floating,x:o,y:a}:l.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),v=await(r.isElement==null?void 0:r.isElement(w))?await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Jn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:u}):g);return{top:(y.top-k.top+b.top)/v.y,bottom:(k.bottom-y.bottom+b.bottom)/v.y,left:(y.left-k.left+b.left)/v.x,right:(k.right-y.right+b.right)/v.x}}function ul(t,n,e){return(t?[...e.filter(a=>Gt(a)===t),...e.filter(a=>Gt(a)!==t)]:e.filter(a=>Zn(a)===a)).filter(a=>t?Gt(a)===t||(n?al(a)!==a:!1):!0)}const fl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var e,o,a;const{rects:r,middlewareData:l,placement:s,platform:u,elements:c}=n,{crossAxis:p=!1,alignment:f,allowedPlacements:d=Ui,autoAlignment:h=!0,...b}=Gi(t,n),m=f!==void 0||d===Ui?ul(f||null,h,d):d,_=await cl(n,b),y=((e=l.autoPlacement)==null?void 0:e.index)||0,g=m[y];if(g==null)return{};const w=ol(g,r,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==g)return{reset:{placement:m[0]}};const v=[_[Zn(g)],_[w[0]],_[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:g,overflows:v}],T=m[y+1];if(T)return{data:{index:y+1,overflows:k},reset:{placement:T}};const S=k.map(E=>{const C=Gt(E.placement);return[E.placement,C&&p?E.overflows.slice(0,2).reduce((O,N)=>O+N,0):E.overflows[0],E.overflows]}).sort((E,C)=>E[1]-C[1]),B=((a=S.filter(E=>E[2].slice(0,Gt(E[0])?2:3).every(C=>C<=0))[0])==null?void 0:a[0])||S[0][0];return B!==s?{data:{index:y+1,overflows:k},reset:{placement:B}}:{}}}};function Vt(t){return Qi(t)?(t.nodeName||"").toLowerCase():"#document"}function dt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function qt(t){var n;return(n=(Qi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Qi(t){return t instanceof Node||t instanceof dt(t).Node}function Tt(t){return t instanceof Element||t instanceof dt(t).Element}function _t(t){return t instanceof HTMLElement||t instanceof dt(t).HTMLElement}function eo(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dt(t).ShadowRoot}function vn(t){const{overflow:n,overflowX:e,overflowY:o,display:a}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(a)}function hl(t){return["table","td","th"].includes(Vt(t))}function Pr(t){const n=Mr(),e=ht(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!n&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!n&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function pl(t){let n=rn(t);for(;_t(n)&&!Xn(n);){if(Pr(n))return n;n=rn(n)}return null}function Mr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xn(t){return["html","body","#document"].includes(Vt(t))}function ht(t){return dt(t).getComputedStyle(t)}function Qn(t){return Tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rn(t){if(Vt(t)==="html")return t;const n=t.assignedSlot||t.parentNode||eo(t)&&t.host||qt(t);return eo(n)?n.host:n}function to(t){const n=rn(t);return Xn(n)?t.ownerDocument?t.ownerDocument.body:t.body:_t(n)&&vn(n)?n:to(n)}function Br(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=to(t),r=a===((o=t.ownerDocument)==null?void 0:o.body),l=dt(a);return r?n.concat(l,l.visualViewport||[],vn(a)?a:[],l.frameElement&&e?Br(l.frameElement):[]):n.concat(a,Br(a,[],e))}function no(t){const n=ht(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=_t(t),r=a?t.offsetWidth:e,l=a?t.offsetHeight:o,s=Yn(e)!==r||Yn(o)!==l;return s&&(e=r,o=l),{width:e,height:o,$:s}}function ro(t){return Tt(t)?t:t.contextElement}function on(t){const n=ro(t);if(!_t(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:r}=no(n);let l=(r?Yn(e.width):e.width)/o,s=(r?Yn(e.height):e.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const ml=jt(0);function io(t){const n=dt(t);return!Mr()||!n.visualViewport?ml:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function gl(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==dt(t)?!1:n}function bn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),r=ro(t);let l=jt(1);n&&(o?Tt(o)&&(l=on(o)):l=on(t));const s=gl(r,e,o)?io(r):jt(0);let u=(a.left+s.x)/l.x,c=(a.top+s.y)/l.y,p=a.width/l.x,f=a.height/l.y;if(r){const d=dt(r),h=o&&Tt(o)?dt(o):o;let b=d,m=b.frameElement;for(;m&&o&&h!==b;){const _=on(m),y=m.getBoundingClientRect(),g=ht(m),w=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*_.x,v=y.top+(m.clientTop+parseFloat(g.paddingTop))*_.y;u*=_.x,c*=_.y,p*=_.x,f*=_.y,u+=w,c+=v,b=dt(m),m=b.frameElement}}return Jn({width:p,height:f,x:u,y:c})}const yl=[":popover-open",":modal"];function oo(t){return yl.some(n=>{try{return t.matches(n)}catch{return!1}})}function vl(t){let{elements:n,rect:e,offsetParent:o,strategy:a}=t;const r=a==="fixed",l=qt(o),s=n?oo(n.floating):!1;if(o===l||s&&r)return e;let u={scrollLeft:0,scrollTop:0},c=jt(1);const p=jt(0),f=_t(o);if((f||!f&&!r)&&((Vt(o)!=="body"||vn(l))&&(u=Qn(o)),_t(o))){const d=bn(o);c=on(o),p.x=d.x+o.clientLeft,p.y=d.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-u.scrollLeft*c.x+p.x,y:e.y*c.y-u.scrollTop*c.y+p.y}}function bl(t){return Array.from(t.getClientRects())}function ao(t){return bn(qt(t)).left+Qn(t).scrollLeft}function _l(t){const n=qt(t),e=Qn(t),o=t.ownerDocument.body,a=yn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),r=yn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+ao(t);const s=-e.scrollTop;return ht(o).direction==="rtl"&&(l+=yn(n.clientWidth,o.clientWidth)-a),{width:a,height:r,x:l,y:s}}function $l(t,n){const e=dt(t),o=qt(t),a=e.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,u=0;if(a){r=a.width,l=a.height;const c=Mr();(!c||c&&n==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:r,height:l,x:s,y:u}}function wl(t,n){const e=bn(t,!0,n==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,r=_t(t)?on(t):jt(1),l=t.clientWidth*r.x,s=t.clientHeight*r.y,u=a*r.x,c=o*r.y;return{width:l,height:s,x:u,y:c}}function lo(t,n,e){let o;if(n==="viewport")o=$l(t,e);else if(n==="document")o=_l(qt(t));else if(Tt(n))o=wl(n,e);else{const a=io(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Jn(o)}function so(t,n){const e=rn(t);return e===n||!Tt(e)||Xn(e)?!1:ht(e).position==="fixed"||so(e,n)}function kl(t,n){const e=n.get(t);if(e)return e;let o=Br(t,[],!1).filter(s=>Tt(s)&&Vt(s)!=="body"),a=null;const r=ht(t).position==="fixed";let l=r?rn(t):t;for(;Tt(l)&&!Xn(l);){const s=ht(l),u=Pr(l);!u&&s.position==="fixed"&&(a=null),(r?!u&&!a:!u&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||vn(l)&&!u&&so(t,l))?o=o.filter(p=>p!==l):a=s,l=rn(l)}return n.set(t,o),o}function Cl(t){let{element:n,boundary:e,rootBoundary:o,strategy:a}=t;const l=[...e==="clippingAncestors"?kl(n,this._c):[].concat(e),o],s=l[0],u=l.reduce((c,p)=>{const f=lo(n,p,a);return c.top=yn(f.top,c.top),c.right=Ki(f.right,c.right),c.bottom=Ki(f.bottom,c.bottom),c.left=yn(f.left,c.left),c},lo(n,s,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ol(t){const{width:n,height:e}=no(t);return{width:n,height:e}}function El(t,n,e){const o=_t(n),a=qt(n),r=e==="fixed",l=bn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const u=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||vn(a))&&(s=Qn(n)),o){const f=bn(n,!0,r,n);u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}else a&&(u.x=ao(a));const c=l.left+s.scrollLeft-u.x,p=l.top+s.scrollTop-u.y;return{x:c,y:p,width:l.width,height:l.height}}function co(t,n){return!_t(t)||ht(t).position==="fixed"?null:n?n(t):t.offsetParent}function uo(t,n){const e=dt(t);if(!_t(t)||oo(t))return e;let o=co(t,n);for(;o&&hl(o)&&ht(o).position==="static";)o=co(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&ht(o).position==="static"&&!Pr(o))?e:o||pl(t)||e}const Sl=async function(t){const n=this.getOffsetParent||uo,e=this.getDimensions;return{reference:El(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,...await e(t.floating)}}};function xl(t){return ht(t).direction==="rtl"}const Tl={convertOffsetParentRelativeRectToViewportRelativeRect:vl,getDocumentElement:qt,getClippingRect:Cl,getOffsetParent:uo,getElementRects:Sl,getClientRects:bl,getDimensions:Ol,getScale:on,isElement:Tt,isRTL:xl},Nl=fl,Al=(t,n,e)=>{const o=new Map,a={platform:Tl,...e},r={...a.platform,_c:o};return dl(t,n,{...a,platform:r})},F0="",Dl={name:"IbPopover",props:{position:{type:[String,Array],default:"top"},alwaysVisible:{type:Boolean,default:!1}},data(){return{parentNode:null,isVisible:!!this.alwaysVisible,activePosition:null}},mounted(){this.$nextTick(()=>{var t,n,e,o;this.parentNode=this.$el.parentNode,this.alwaysVisible||((t=this.parentNode)==null||t.addEventListener("focus",this.showPopover,!0),(n=this.parentNode)==null||n.addEventListener("blur",this.hidePopover,!0),(e=this.parentNode)==null||e.addEventListener("mouseover",this.showPopover),(o=this.parentNode)==null||o.addEventListener("mouseleave",this.hidePopover))})},methods:{showPopover(){this.isVisible||(this.isVisible=!0,Al(this.parentNode,this.$refs.popover,{middleware:[Nl({allowedPlacements:this.position})]}).then(({x:t,y:n,placement:e})=>{this.activePosition=e,Object.assign(this.$refs.popover.style,{left:`${t}px`,top:`${n}px`})}))},hidePopover(){this.isVisible=!1}},computed:{classes(){const t=["ib-popover"];return t.push(`ib-${this.activePosition}`),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 Il(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"popover",class:i.normalizeClass(r.classes)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[i.vShow,a.isVisible]])]),_:3})}const fo=_e(Dl,[["render",Il],["__scopeId","data-v-9313d095"]]),H0="",Pl={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:fo}},Ml={key:0};function Bl(t,n,e,o,a,r){const l=i.resolveComponent("ib-popover");return i.openBlock(),i.createBlock(l,{position:e.position,"always-visible":e.alwaysVisible,class:i.normalizeClass(r.classList)},{default:i.withCtx(()=>[e.title?(i.openBlock(),i.createElementBlock("b",Ml,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const an=_e(Pl,[["render",Bl],["__scopeId","data-v-6fb94ac5"]]),ho={[Kt.primary]:Kt.primary,[Kt.tertiary]:Kt.tertiary,[Kt.ghost]:Kt.ghost,white:"white"},po={xs:"xs",s:"s",m:"m"},z0="",Ll={name:"IbIconButton",props:{kind:{type:String,default:ho.primary,validator:t=>Object.keys(ho).includes(t)},size:{type:String,default:po.s,validator:t=>Object.keys(po).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},to:{type:[String,Object],default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},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={...this.$attrs};return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:Hi,IbTooltip:an},inheritAttrs:!1};function Rl(t,n,e,o,a,r){const l=i.resolveComponent("ib-tooltip"),s=i.resolveComponent("ib-button");return i.openBlock(),i.createBlock(s,i.mergeProps(r.attrs,{href:e.href,to:e.to,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(l,{key:0,text:e.helpText},null,8,["text"])):i.createCommentVNode("",!0)]),_:3},16,["href","to","kind","disabled","prevent-default"])}const ct=_e(Ll,[["render",Rl]]),er={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},U0="",jl={name:"IbAlert",props:{type:{type:String,default:er.alert,validator:t=>Object.keys(er).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""},additionalTitleText:{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===er.info?"information-circle-outline":this.type===er.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Be,IbIconButton:ct}},Vl={ref:"content",class:"content"},ql={class:"content-head"},Fl={key:1,class:"ib-alert-title"},Hl={class:"text-content"},zl={class:"link"};function Ul(t,n,e,o,a,r){var u;const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",{role:"alert",class:i.normalizeClass(r.classes)},[i.createElementVNode("div",Vl,[i.createElementVNode("span",ql,[e.showIcon?(i.openBlock(),i.createBlock(l,{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",Fl,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"title",{},void 0,!0)]),i.createElementVNode("span",Hl,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",zl,[i.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:r.close},{default:i.withCtx(()=>[i.createVNode(l,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0)],2)}const Ft=_e(jl,[["render",Ul],["__scopeId","data-v-8437bad2"]]),Kl={M:"m",L:"l",XL:"xl"},Gl={SQUARE:"square",CIRCLE:"circle"},K0="",Wl={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Kl.M},type:{type:String,default:Gl.CIRCLE}},computed:{classList(){return["avatar",`avatar-size-${this.size}`,`avatar-type-${this.type}`]},validateName(){var t,n;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((n=this.lastName)==null?void 0:n.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Be}},Yl=["src","alt"];function Zl(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(i.openBlock(),i.createElementBlock("img",{key:0,class:i.normalizeClass(r.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,Yl)):e.src&&e.userAvatar?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["user-avatar",r.classList]),style:i.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):r.validateName?(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass([r.classList,"default-avatar"])},i.toDisplayString(r.initials),3)):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["empty-avatar",r.classList])},[i.createVNode(l,{name:"camera-outline"})],2))}const Jl=_e(Wl,[["render",Zl],["__scopeId","data-v-63abd28e"]]),G0="",Xl={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 Ql(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const es=_e(Xl,[["render",Ql],["__scopeId","data-v-328df75a"]]),W0="",ts={name:"IbButtonGroup"},ns={class:"ib-button-group"};function rs(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",ns,[i.renderSlot(t.$slots,"default")])}const is=_e(ts,[["render",rs]]),ln={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},Y0="",os={props:{status:{type:String,default:ln.neutral,validator:t=>Object.keys(ln).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 ln.success:return"checkmark-outline";case ln.neutral:return"time-outline";case ln.info:return"information-circle-outline";case ln.error:return"close-outline";default:return""}}},components:{IbIcon:Be}};function as(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[e.showIcon&&r.iconName.length?(i.openBlock(),i.createBlock(l,{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 ls=_e(os,[["render",as],["__scopeId","data-v-3604890c"]]),ss={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"},Z0="",J0="",ds={name:"IbTooltip",props:{position:{type:String,default:ss.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:ct,IbIcon:Be}},cs={class:"ib-toggle-tip-head"},us={class:"ib-toggle-tip-content"},fs={class:"ib-toggle-tip-button-set"};function hs(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",cs,[i.createElementVNode("p",null,i.toDisplayString(e.title),1),i.createVNode(s,{class:"close-button",kind:"ghost",onClick:i.withModifiers(r.close,["prevent"])},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick"])]),i.createElementVNode("div",us,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",fs,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const mo=_e(ds,[["render",hs],["__scopeId","data-v-9e7c679e"]]),Lr=27,go=32,ps=13,yo=9,ms=38,gs=37,ys=39,vo=40,vs="click",{performance:tr}=window,bs=typeof(tr==null?void 0:tr.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>tr.now():()=>Date.now(),_n=new Map;let $n=!1;const bo=t=>{_n.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},_s=()=>{$n||(document.addEventListener("click",bo,{capture:!0}),$n=!0)},$s=()=>{$n&&(document.removeEventListener("click",bo),$n=!1)},nr={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!`);_n.has(t)||($n||_s(),_n.set(t,{bindTimeStamp:bs(),callback:n}))},beforeUnmount:t=>{_n.delete(t),_n.size===0&&$s()}},wn={left:"left",right:"right",center:"center"},rr={top:"top",bottom:"bottom"},ep="",tp="",ws={name:"IbDropdown",directives:{Outside:nr},props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:wn.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:vs},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===ps||t.keyCode===go)&&(t.preventDefault(),this.toggle()),t.keyCode===vo&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===Lr&&(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===rr.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===wn.left?" dropdown-left":this.horizontal===wn.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)}},ks={class:"ib-dropdown"},Cs={class:"footer-slot"};function Os(t,n,e,o,a,r){const l=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",ks,[r.hasTrigger&&e.triggerType==="click"?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),ref:"dropdown",onKeydown:n[0]||(n[0]=(...s)=>r.onKeydown&&r.onKeydown(...s)),onClick:n[1]||(n[1]=i.withModifiers((...s)=>r.toggle&&r.toggle(...s),["prevent","stop"]))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),r.hasTrigger&&e.triggerType==="hover"?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),onMouseenter:n[2]||(n[2]=(...s)=>r.debouncedOpen&&r.debouncedOpen(...s)),onMouseleave:n[3]||(n[3]=(...s)=>r.debouncedClose&&r.debouncedClose(...s))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),!e.destroyOnHide||a.isOpenedState?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:2,ref:"body",class:i.normalizeClass("ib-dropdown-menu "+r.classes)},[i.createElementVNode("div",{class:"dropdown-body",onClick:n[5]||(n[5]=(...s)=>r.closeOnClickIfRequired&&r.closeOnClickIfRequired(...s))},[i.renderSlot(t.$slots,"body",{isOpenedState:a.isOpenedState},void 0,!0),e.showCloseIcon?(i.openBlock(),i.createElementBlock("span",{key:0,class:"close",onClick:n[4]||(n[4]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"close",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Cs,[i.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[i.vShow,a.isOpenedState]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"before",onClick:n[6]||(n[6]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[l,r.close]])}const ir=_e(ws,[["render",Os],["__scopeId","data-v-dfb4a39a"]]),np="",Es={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===vo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.querySelector(`.${this.rootClass}`);let u=l.nextElementSibling?l.nextElementSibling:(n=l.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(s&&window.getComputedStyle(s).display!=="none"){s.querySelector('a, button, input, [tabindex="0"]').focus();return}if(u){u.focus();return}const c=(o=(e=l.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];c&&c.nodeName!=="#text"&&c.focus()}if(t.keyCode===ms){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.previousElementSibling?l.previousElementSibling:(a=l.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!s){l.closest(`.${this.rootClass}`).parentNode.focus();return}if(s&&s.nodeName!=="#text"){const u=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(u&&window.getComputedStyle(u).display!=="none"){const c=Array.from(u.childNodes).filter(p=>p.nodeName!=="#text");(r=c[c.length-1])==null||r.childNodes[0].focus();return}s.focus()}}}}};function Ss(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...l)=>r.onKeydown&&r.onKeydown(...l))},[i.renderSlot(t.$slots,"default")],34)}const Rr=_e(Es,[["render",Ss]]),rp="",xs={props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:wn.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:ir,IbList:Rr}},Ts={class:"dropdown-list-wrapper"};function Ns(t,n,e,o,a,r){const l=i.resolveComponent("ib-list"),s=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",Ts,[i.createVNode(s,i.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:r.proxyEvents}),i.createSlots({body:i.withCtx(({isOpened:u})=>[i.createVNode(l,{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 or=_e(xs,[["render",Ns]]),ip="",As={props:{checked:{type:Boolean,default:!1},href:{type:String},to:{type:[String,Object]}},computed:{component(){return this.href?"a":this.to?"router-link":"div"},attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),this.to&&(t.to=this.to),t}}},Ds={class:"dropdown-item-wrapper"},Is={class:"dropdown-item-icon"};function Ps(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",Ds,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps({class:e.checked?"active":""},r.attrs,{tabindex:"0"}),{default:i.withCtx(()=>[i.createElementVNode("p",null,[i.createElementVNode("div",Is,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),i.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const jr=_e(As,[["render",Ps],["__scopeId","data-v-65b53eff"]]),Ms={common:"common",danger:"danger"},op="",Bs={name:"IbSplitButton",props:{id:{type:String,default:()=>gt()},kind:{type:String,default:Ms.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.$nextTick(()=>{this.setActiveItem()})},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,isRouterLink:!1,childList:[]}},components:{IbIcon:Be,IbDropdownList:or},methods:{setActiveItem(){const t=this.$slots.default()[this.activeElemIdx].props;delete t.disabled,this.mainButtonAttrs=t,console.log(this.mainButtonAttrs,"href"in this.mainButtonAttrs),this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.mainButtonAttrs&&"to"in this.mainButtonAttrs?this.isRouterLink=!0:this.isRouterLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}}},Ls=["disabled"],Rs=["disabled"],js=["disabled"],Vs={ref:"list"};function qs(t,n,e,o,a,r){const l=i.resolveComponent("router-link"),s=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[a.isRouterLink?(i.openBlock(),i.createBlock(l,i.mergeProps({key:0,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled,to:a.mainButtonAttrs.to},a.mainButtonAttrs,{onClick:r.onClickLink}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.content),1)]),_:1},16,["class","disabled","to","onClick"])):a.isLink?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...c)=>r.onClickLink&&r.onClickLink(...c))}),i.toDisplayString(a.content),17,Ls)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:2,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Rs)),i.createVNode(u,{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,js)]),body:i.withCtx(()=>[i.createElementVNode("div",Vs,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const Fs=_e(Bs,[["render",qs]]),ap="",Hs={props:{href:{type:String,default:""},to:{type:[String,Object]}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},component(){return this.href.length?"a":this.to?"router-link":"button"}}};function zs(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps(r.attrs,{class:"ib-dropdown-item"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const Us=_e(Hs,[["render",zs],["__scopeId","data-v-9a68b340"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},lp="",Ks={name:"IbModal",directives:{Outside:nr},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:Nt.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===yo&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===yo&&!r.shiftKey&&(r.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)},data(){return{isActive:this.active}},methods:{showModal(t){t?this.open():this.close()},onTriggerBlur(t){var n,e,o;!((n=this.$refs.modal)!=null&&n.contains(t.relatedTarget))&&this.isActive&&((o=(e=this.$refs.modal)==null?void 0:e.querySelector("a, button, [tabindex]"))==null||o.focus())},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var n,e;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&!((e=this.$refs.modal)!=null&&e.contains(t.relatedTarget))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").focus()},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===Lr&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{bodyStyles(){const t={};return this.size===Nt.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Nt.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Nt.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Nt.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Nt.S&&t.push("modal-body-s"),this.size===Nt.M&&t.push("modal-body-m"),this.size===Nt.L&&t.push("modal-body-l"),this.size===Nt.XL&&t.push("modal-body-xl"),t},hasTrigger(){return!!this.$slots.trigger},hasHeader(){return!!this.$slots.header},hasFooter(){return!!this.$slots.footer}},components:{IbIconButton:ct,IbIcon:Be},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},Gs={key:1,class:"modal-header"},Ws={key:2,class:"modal-footer"};function Ys(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=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]=(...c)=>r.onTriggerBlur&&r.onTriggerBlur(...c)),onClick:n[1]||(n[1]=(...c)=>r.open&&r.open(...c))},[i.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["modal",e.classList]),ref:"modal"},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.bodyClassList),style:i.normalizeStyle(r.bodyStyles)},[e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",Gs,[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",Ws,[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 Zs=_e(Ks,[["render",Ys],["__scopeId","data-v-ad9343ef"]]);function _o(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const sp="",Js={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return _o(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:or,IbDropdownItem:jr,IbIcon:Be}},Xs={class:"wrapper-tab-link dropdown-tab"},Qs=["tabindex"];function ed(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),u=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Xs,[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(l,{name:"chevron-down"})],10,Qs)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(c,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:c.id===e.selectedTab,href:r.createHref(c.id),tabindex:c.disabled?-1:0,class:i.normalizeClass([{disabled:c.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>r.selectTab(c.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const $o=_e(Js,[["render",ed]]),dp="",td={name:"IbTabs",props:{selectedTabId:{type:String,default:""}},data(){return{tabs:[],selectedTab:this.selectTabId}},watch:{selectedTabId(t){this.selectTab(t)}},created(){const t=[];this.$slots.default().forEach(n=>n.type===Symbol.for("v-fgt")?t.push(...n.children):t.push(n)),t.forEach(n=>{if(!n.props.name)this.tabs.push(n.props);else{const e=this.tabs.findIndex(o=>o.name===n.props.name);if(e!==-1)this.tabs[e].tabs.push(n.props);else{const o={name:n.props.name,tabs:[n.props]};this.tabs.push(o)}}});for(let n of this.tabs)if(!n.disabled)if(n.tabs){for(let e of n.tabs)if(!e.disabled){this.selectTab(e.id);return}}else{this.selectTab(n.id);return}},methods:{createHref(t){return _o(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:$o},emits:["changeTab"]},nd={class:"tabs"},rd={class:"tabs-list"},id={key:0,class:"wrapper-tab-link"},od=["href","tabindex","onClick"],ad={class:"tabs-content",ref:"tabHandler"};function ld(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",nd,[i.createElementVNode("ul",rd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,u)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:u},[s.name?(i.openBlock(),i.createBlock(l,{key:1,"selected-tab":a.selectedTab,tabs:s,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",id,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===s.id,disabled:s.disabled}]),href:r.createHref(s.id),tabindex:s.disabled?-1:0,onClick:c=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,od)]))]))),128))]),i.createElementVNode("div",ad,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const sd=_e(td,[["render",ld],["__scopeId","data-v-47d103be"]]),dd={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 cd(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 ud=_e(dd,[["render",cd]]),fd={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},hd={TYPE_ASC:"asc",TYPE_DESC:"desc"},wo={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"};class ko{constructor(){this.tooltipInstance=null,this.tooltipContainer=null,this.uuid=null}getTooltipInstance(){return this.getTooltipInstance}getTooltipContainer(){return this.tooltipContainer}getId(){return this.uuid}generateUID(){this.uuid="tooltip_"+gt()}createTooltip(n,e,o){var r;if(!((r=e.text)!=null&&r.length))return;this.generateUID();const a=`
1
+ (function(pe,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(pe=typeof globalThis<"u"?globalThis:pe||self,i(pe.MyLib={},pe.Vue))})(this,function(pe,i){"use strict";const j0="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},Va={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)}},qa=["name"];function Fa(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,qa)}const Be=_e(Va,[["render",Fa]]);function gt(){return"_"+Math.random().toString(36).substr(2,9)}const Fi={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})}}},V0="",Ha={name:"IbAccordion",mixins:[Fi],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:gt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Be}},za=["id","aria-controls","aria-expanded"],Ua=["id","aria-labelledby"],Ka={class:"accordion-content-wrapper"};function Ga(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ib-accordion",{active:a.isActive}])},[i.createElementVNode("button",{class:"accordion-title",id:"accordion"+a.uuid,"aria-controls":"accordion-section-"+a.uuid,"aria-expanded":a.isActive,type:"button",onClick:n[0]||(n[0]=i.withModifiers((...s)=>r.onClick&&r.onClick(...s),["prevent"]))},[i.renderSlot(t.$slots,"title",{},void 0,!0),i.createVNode(l,{class:"chevron-icon",name:"chevron-down-outline"})],8,za),i.createVNode(i.Transition,{name:"expand",onEnter:t.enter,onAfterEnter:t.afterEnter,onLeave:t.leave},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{role:"region",class:"accordion-content",id:"accordion-section-"+a.uuid,"aria-labelledby":"accordion"+a.uuid},[i.createElementVNode("div",Ka,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Ua),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Wa=_e(Ha,[["render",Ga],["__scopeId","data-v-8ece19c1"]]),Kt={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Ir(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const q0="",Ya={name:"IbButton",props:{kind:{type:String,default:Kt.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:""},to:{type:[String,Object]},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:{component(){return this.href.length?"a":this.to?"router-link":"button"},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||this.to)&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=Ir({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},Za=["method","action"],Ja=["value"],Xa=["value"],Qa=["name","value"];function el(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps(r.attrs,{onClick:n[0]||(n[0]=l=>r.onClick(l)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave}),{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,Ja),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,Xa),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys(e.postOptions),(l,s)=>(i.openBlock(),i.createElementBlock("input",{key:s,type:"hidden",name:l,value:e.postOptions[l]},null,8,Qa))),128))],8,Za)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const Hi=_e(Ya,[["render",el]]),tl=["top","right","bottom","left"],zi=["start","end"],Ui=tl.reduce((t,n)=>t.concat(n,n+"-"+zi[0],n+"-"+zi[1]),[]),Ki=Math.min,yn=Math.max,Yn=Math.round,jt=t=>({x:t,y:t}),nl={left:"right",right:"left",bottom:"top",top:"bottom"},rl={start:"end",end:"start"};function Gi(t,n){return typeof t=="function"?t(n):t}function Zn(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function il(t){return t==="x"?"y":"x"}function Wi(t){return t==="y"?"height":"width"}function Yi(t){return["top","bottom"].includes(Zn(t))?"y":"x"}function Zi(t){return il(Yi(t))}function ol(t,n,e){e===void 0&&(e=!1);const o=Gt(t),a=Zi(t),r=Wi(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(l=Ji(l)),[l,Ji(l)]}function al(t){return t.replace(/start|end/g,n=>rl[n])}function Ji(t){return t.replace(/left|right|bottom|top/g,n=>nl[n])}function ll(t){return{top:0,right:0,bottom:0,left:0,...t}}function sl(t){return typeof t!="number"?ll(t):{top:t,right:t,bottom:t,left:t}}function Jn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Xi(t,n,e){let{reference:o,floating:a}=t;const r=Yi(n),l=Zi(n),s=Wi(l),u=Zn(n),c=r==="y",p=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,d=o[s]/2-a[s]/2;let h;switch(u){case"top":h={x:p,y:o.y-a.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-a.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Gt(n)){case"start":h[l]-=d*(e&&c?-1:1);break;case"end":h[l]+=d*(e&&c?-1:1);break}return h}const dl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(n));let c=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=Xi(c,o,u),d=o,h={},b=0;for(let m=0;m<s.length;m++){const{name:_,fn:y}=s[m],{x:g,y:w,data:v,reset:k}=await y({x:p,y:f,initialPlacement:o,placement:d,strategy:a,middlewareData:h,rects:c,platform:l,elements:{reference:t,floating:n}});p=g??p,f=w??f,h={...h,[_]:{...h[_],...v}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(d=k.placement),k.rects&&(c=k.rects===!0?await l.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:f}=Xi(c,d,u)),m=-1)}return{x:p,y:f,placement:d,strategy:a,middlewareData:h}};async function cl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Gi(n,t),b=sl(h),_=s[d?f==="floating"?"reference":"floating":f],y=Jn(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(_)))==null||e?_:_.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:u})),g=f==="floating"?{...l.floating,x:o,y:a}:l.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),v=await(r.isElement==null?void 0:r.isElement(w))?await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Jn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:u}):g);return{top:(y.top-k.top+b.top)/v.y,bottom:(k.bottom-y.bottom+b.bottom)/v.y,left:(y.left-k.left+b.left)/v.x,right:(k.right-y.right+b.right)/v.x}}function ul(t,n,e){return(t?[...e.filter(a=>Gt(a)===t),...e.filter(a=>Gt(a)!==t)]:e.filter(a=>Zn(a)===a)).filter(a=>t?Gt(a)===t||(n?al(a)!==a:!1):!0)}const fl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var e,o,a;const{rects:r,middlewareData:l,placement:s,platform:u,elements:c}=n,{crossAxis:p=!1,alignment:f,allowedPlacements:d=Ui,autoAlignment:h=!0,...b}=Gi(t,n),m=f!==void 0||d===Ui?ul(f||null,h,d):d,_=await cl(n,b),y=((e=l.autoPlacement)==null?void 0:e.index)||0,g=m[y];if(g==null)return{};const w=ol(g,r,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==g)return{reset:{placement:m[0]}};const v=[_[Zn(g)],_[w[0]],_[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:g,overflows:v}],T=m[y+1];if(T)return{data:{index:y+1,overflows:k},reset:{placement:T}};const S=k.map(E=>{const C=Gt(E.placement);return[E.placement,C&&p?E.overflows.slice(0,2).reduce((O,N)=>O+N,0):E.overflows[0],E.overflows]}).sort((E,C)=>E[1]-C[1]),B=((a=S.filter(E=>E[2].slice(0,Gt(E[0])?2:3).every(C=>C<=0))[0])==null?void 0:a[0])||S[0][0];return B!==s?{data:{index:y+1,overflows:k},reset:{placement:B}}:{}}}};function Vt(t){return Qi(t)?(t.nodeName||"").toLowerCase():"#document"}function dt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function qt(t){var n;return(n=(Qi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Qi(t){return t instanceof Node||t instanceof dt(t).Node}function Tt(t){return t instanceof Element||t instanceof dt(t).Element}function _t(t){return t instanceof HTMLElement||t instanceof dt(t).HTMLElement}function eo(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dt(t).ShadowRoot}function vn(t){const{overflow:n,overflowX:e,overflowY:o,display:a}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(a)}function hl(t){return["table","td","th"].includes(Vt(t))}function Pr(t){const n=Mr(),e=ht(t);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!n&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!n&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function pl(t){let n=rn(t);for(;_t(n)&&!Xn(n);){if(Pr(n))return n;n=rn(n)}return null}function Mr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xn(t){return["html","body","#document"].includes(Vt(t))}function ht(t){return dt(t).getComputedStyle(t)}function Qn(t){return Tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rn(t){if(Vt(t)==="html")return t;const n=t.assignedSlot||t.parentNode||eo(t)&&t.host||qt(t);return eo(n)?n.host:n}function to(t){const n=rn(t);return Xn(n)?t.ownerDocument?t.ownerDocument.body:t.body:_t(n)&&vn(n)?n:to(n)}function Br(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=to(t),r=a===((o=t.ownerDocument)==null?void 0:o.body),l=dt(a);return r?n.concat(l,l.visualViewport||[],vn(a)?a:[],l.frameElement&&e?Br(l.frameElement):[]):n.concat(a,Br(a,[],e))}function no(t){const n=ht(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=_t(t),r=a?t.offsetWidth:e,l=a?t.offsetHeight:o,s=Yn(e)!==r||Yn(o)!==l;return s&&(e=r,o=l),{width:e,height:o,$:s}}function ro(t){return Tt(t)?t:t.contextElement}function on(t){const n=ro(t);if(!_t(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:r}=no(n);let l=(r?Yn(e.width):e.width)/o,s=(r?Yn(e.height):e.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const ml=jt(0);function io(t){const n=dt(t);return!Mr()||!n.visualViewport?ml:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function gl(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==dt(t)?!1:n}function bn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),r=ro(t);let l=jt(1);n&&(o?Tt(o)&&(l=on(o)):l=on(t));const s=gl(r,e,o)?io(r):jt(0);let u=(a.left+s.x)/l.x,c=(a.top+s.y)/l.y,p=a.width/l.x,f=a.height/l.y;if(r){const d=dt(r),h=o&&Tt(o)?dt(o):o;let b=d,m=b.frameElement;for(;m&&o&&h!==b;){const _=on(m),y=m.getBoundingClientRect(),g=ht(m),w=y.left+(m.clientLeft+parseFloat(g.paddingLeft))*_.x,v=y.top+(m.clientTop+parseFloat(g.paddingTop))*_.y;u*=_.x,c*=_.y,p*=_.x,f*=_.y,u+=w,c+=v,b=dt(m),m=b.frameElement}}return Jn({width:p,height:f,x:u,y:c})}const yl=[":popover-open",":modal"];function oo(t){return yl.some(n=>{try{return t.matches(n)}catch{return!1}})}function vl(t){let{elements:n,rect:e,offsetParent:o,strategy:a}=t;const r=a==="fixed",l=qt(o),s=n?oo(n.floating):!1;if(o===l||s&&r)return e;let u={scrollLeft:0,scrollTop:0},c=jt(1);const p=jt(0),f=_t(o);if((f||!f&&!r)&&((Vt(o)!=="body"||vn(l))&&(u=Qn(o)),_t(o))){const d=bn(o);c=on(o),p.x=d.x+o.clientLeft,p.y=d.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-u.scrollLeft*c.x+p.x,y:e.y*c.y-u.scrollTop*c.y+p.y}}function bl(t){return Array.from(t.getClientRects())}function ao(t){return bn(qt(t)).left+Qn(t).scrollLeft}function _l(t){const n=qt(t),e=Qn(t),o=t.ownerDocument.body,a=yn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),r=yn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+ao(t);const s=-e.scrollTop;return ht(o).direction==="rtl"&&(l+=yn(n.clientWidth,o.clientWidth)-a),{width:a,height:r,x:l,y:s}}function $l(t,n){const e=dt(t),o=qt(t),a=e.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,u=0;if(a){r=a.width,l=a.height;const c=Mr();(!c||c&&n==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:r,height:l,x:s,y:u}}function wl(t,n){const e=bn(t,!0,n==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,r=_t(t)?on(t):jt(1),l=t.clientWidth*r.x,s=t.clientHeight*r.y,u=a*r.x,c=o*r.y;return{width:l,height:s,x:u,y:c}}function lo(t,n,e){let o;if(n==="viewport")o=$l(t,e);else if(n==="document")o=_l(qt(t));else if(Tt(n))o=wl(n,e);else{const a=io(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Jn(o)}function so(t,n){const e=rn(t);return e===n||!Tt(e)||Xn(e)?!1:ht(e).position==="fixed"||so(e,n)}function kl(t,n){const e=n.get(t);if(e)return e;let o=Br(t,[],!1).filter(s=>Tt(s)&&Vt(s)!=="body"),a=null;const r=ht(t).position==="fixed";let l=r?rn(t):t;for(;Tt(l)&&!Xn(l);){const s=ht(l),u=Pr(l);!u&&s.position==="fixed"&&(a=null),(r?!u&&!a:!u&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||vn(l)&&!u&&so(t,l))?o=o.filter(p=>p!==l):a=s,l=rn(l)}return n.set(t,o),o}function Cl(t){let{element:n,boundary:e,rootBoundary:o,strategy:a}=t;const l=[...e==="clippingAncestors"?kl(n,this._c):[].concat(e),o],s=l[0],u=l.reduce((c,p)=>{const f=lo(n,p,a);return c.top=yn(f.top,c.top),c.right=Ki(f.right,c.right),c.bottom=Ki(f.bottom,c.bottom),c.left=yn(f.left,c.left),c},lo(n,s,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ol(t){const{width:n,height:e}=no(t);return{width:n,height:e}}function El(t,n,e){const o=_t(n),a=qt(n),r=e==="fixed",l=bn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const u=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||vn(a))&&(s=Qn(n)),o){const f=bn(n,!0,r,n);u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}else a&&(u.x=ao(a));const c=l.left+s.scrollLeft-u.x,p=l.top+s.scrollTop-u.y;return{x:c,y:p,width:l.width,height:l.height}}function co(t,n){return!_t(t)||ht(t).position==="fixed"?null:n?n(t):t.offsetParent}function uo(t,n){const e=dt(t);if(!_t(t)||oo(t))return e;let o=co(t,n);for(;o&&hl(o)&&ht(o).position==="static";)o=co(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&ht(o).position==="static"&&!Pr(o))?e:o||pl(t)||e}const Sl=async function(t){const n=this.getOffsetParent||uo,e=this.getDimensions;return{reference:El(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,...await e(t.floating)}}};function xl(t){return ht(t).direction==="rtl"}const Tl={convertOffsetParentRelativeRectToViewportRelativeRect:vl,getDocumentElement:qt,getClippingRect:Cl,getOffsetParent:uo,getElementRects:Sl,getClientRects:bl,getDimensions:Ol,getScale:on,isElement:Tt,isRTL:xl},Nl=fl,Al=(t,n,e)=>{const o=new Map,a={platform:Tl,...e},r={...a.platform,_c:o};return dl(t,n,{...a,platform:r})},F0="",Dl={name:"IbPopover",props:{position:{type:[String,Array],default:"top"},alwaysVisible:{type:Boolean,default:!1}},data(){return{parentNode:null,isVisible:!!this.alwaysVisible,activePosition:null}},mounted(){this.$nextTick(()=>{var t,n,e,o;this.parentNode=this.$el.parentNode,this.alwaysVisible||((t=this.parentNode)==null||t.addEventListener("focus",this.showPopover,!0),(n=this.parentNode)==null||n.addEventListener("blur",this.hidePopover,!0),(e=this.parentNode)==null||e.addEventListener("mouseover",this.showPopover),(o=this.parentNode)==null||o.addEventListener("mouseleave",this.hidePopover))})},methods:{showPopover(){this.isVisible||(this.isVisible=!0,Al(this.parentNode,this.$refs.popover,{middleware:[Nl({allowedPlacements:this.position})]}).then(({x:t,y:n,placement:e})=>{this.activePosition=e,Object.assign(this.$refs.popover.style,{left:`${t}px`,top:`${n}px`})}))},hidePopover(){this.isVisible=!1}},computed:{classes(){const t=["ib-popover"];return t.push(`ib-${this.activePosition}`),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 Il(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{ref:"popover",class:i.normalizeClass(r.classes)},[i.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[i.vShow,a.isVisible]])]),_:3})}const fo=_e(Dl,[["render",Il],["__scopeId","data-v-9313d095"]]),H0="",Pl={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:fo}},Ml={key:0};function Bl(t,n,e,o,a,r){const l=i.resolveComponent("ib-popover");return i.openBlock(),i.createBlock(l,{position:e.position,"always-visible":e.alwaysVisible,class:i.normalizeClass(r.classList)},{default:i.withCtx(()=>[e.title?(i.openBlock(),i.createElementBlock("b",Ml,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.createElementVNode("p",null,i.toDisplayString(e.text),1)]),_:1},8,["position","always-visible","class"])}const an=_e(Pl,[["render",Bl],["__scopeId","data-v-6fb94ac5"]]),ho={[Kt.primary]:Kt.primary,[Kt.tertiary]:Kt.tertiary,[Kt.ghost]:Kt.ghost,white:"white"},po={xs:"xs",s:"s",m:"m"},z0="",Ll={name:"IbIconButton",props:{kind:{type:String,default:ho.primary,validator:t=>Object.keys(ho).includes(t)},size:{type:String,default:po.s,validator:t=>Object.keys(po).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},to:{type:[String,Object],default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},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={...this.$attrs};return t.class=[...this.classes,t.class],this.disabledFocus&&(t.tabindex="-1"),t}},components:{IbButton:Hi,IbTooltip:an},inheritAttrs:!1};function Rl(t,n,e,o,a,r){const l=i.resolveComponent("ib-tooltip"),s=i.resolveComponent("ib-button");return i.openBlock(),i.createBlock(s,i.mergeProps(r.attrs,{href:e.href,to:e.to,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(l,{key:0,text:e.helpText},null,8,["text"])):i.createCommentVNode("",!0)]),_:3},16,["href","to","kind","disabled","prevent-default"])}const ct=_e(Ll,[["render",Rl]]),er={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},U0="",jl={name:"IbAlert",props:{type:{type:String,default:er.alert,validator:t=>Object.keys(er).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""},additionalTitleText:{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===er.info?"information-circle-outline":this.type===er.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Be,IbIconButton:ct}},Vl={ref:"content",class:"content"},ql={class:"content-head"},Fl={key:1,class:"ib-alert-title"},Hl={class:"text-content"},zl={class:"link"};function Ul(t,n,e,o,a,r){var u;const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("div",{role:"alert",class:i.normalizeClass(r.classes)},[i.createElementVNode("div",Vl,[i.createElementVNode("span",ql,[e.showIcon?(i.openBlock(),i.createBlock(l,{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",Fl,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"title",{},void 0,!0)]),i.createElementVNode("span",Hl,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",zl,[i.renderSlot(t.$slots,"link",{},void 0,!0)])],512),e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"close-button",kind:"ghost","prevent-default":!0,onClick:r.close},{default:i.withCtx(()=>[i.createVNode(l,{class:"close-button-icon",name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0)],2)}const Ft=_e(jl,[["render",Ul],["__scopeId","data-v-8437bad2"]]),Kl={M:"m",L:"l",XL:"xl"},Gl={SQUARE:"square",CIRCLE:"circle"},K0="",Wl={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Kl.M},type:{type:String,default:Gl.CIRCLE}},computed:{classList(){return["avatar",`avatar-size-${this.size}`,`avatar-type-${this.type}`]},validateName(){var t,n;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((n=this.lastName)==null?void 0:n.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Be}},Yl=["src","alt"];function Zl(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return e.src&&!e.userAvatar?(i.openBlock(),i.createElementBlock("img",{key:0,class:i.normalizeClass(r.classList),src:e.src,alt:e.firstName+""+e.lastName},null,10,Yl)):e.src&&e.userAvatar?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["user-avatar",r.classList]),style:i.normalizeStyle({backgroundImage:"url("+e.src+")"})},null,6)):r.validateName?(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass([r.classList,"default-avatar"])},i.toDisplayString(r.initials),3)):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["empty-avatar",r.classList])},[i.createVNode(l,{name:"camera-outline"})],2))}const Jl=_e(Wl,[["render",Zl],["__scopeId","data-v-63abd28e"]]),G0="",Xl={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 Ql(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const es=_e(Xl,[["render",Ql],["__scopeId","data-v-328df75a"]]),W0="",ts={name:"IbButtonGroup"},ns={class:"ib-button-group"};function rs(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",ns,[i.renderSlot(t.$slots,"default")])}const is=_e(ts,[["render",rs]]),ln={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},Y0="",os={props:{status:{type:String,default:ln.neutral,validator:t=>Object.keys(ln).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 ln.success:return"checkmark-outline";case ln.neutral:return"time-outline";case ln.info:return"information-circle-outline";case ln.error:return"close-outline";default:return""}}},components:{IbIcon:Be}};function as(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[e.showIcon&&r.iconName.length?(i.openBlock(),i.createBlock(l,{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 ls=_e(os,[["render",as],["__scopeId","data-v-3604890c"]]),ss={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"},Z0="",J0="",ds={name:"IbTooltip",props:{position:{type:String,default:ss.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:ct,IbIcon:Be}},cs={class:"ib-toggle-tip-head"},us={class:"ib-toggle-tip-content"},fs={class:"ib-toggle-tip-button-set"};function hs(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createBlock(i.Transition,null,{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(r.classes)},[i.createElementVNode("div",cs,[i.createElementVNode("p",null,i.toDisplayString(e.title),1),i.createVNode(s,{class:"close-button",kind:"ghost",onClick:i.withModifiers(r.close,["prevent"])},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick"])]),i.createElementVNode("div",us,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",fs,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const mo=_e(ds,[["render",hs],["__scopeId","data-v-9e7c679e"]]),Lr=27,go=32,ps=13,yo=9,ms=38,gs=37,ys=39,vo=40,vs="click",{performance:tr}=window,bs=typeof(tr==null?void 0:tr.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>tr.now():()=>Date.now(),_n=new Map;let $n=!1;const bo=t=>{_n.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},_s=()=>{$n||(document.addEventListener("click",bo,{capture:!0}),$n=!0)},$s=()=>{$n&&(document.removeEventListener("click",bo),$n=!1)},nr={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!`);_n.has(t)||($n||_s(),_n.set(t,{bindTimeStamp:bs(),callback:n}))},beforeUnmount:t=>{_n.delete(t),_n.size===0&&$s()}},wn={left:"left",right:"right",center:"center"},rr={top:"top",bottom:"bottom"},ep="",tp="",ws={name:"IbDropdown",directives:{Outside:nr},props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:wn.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:vs},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===ps||t.keyCode===go)&&(t.preventDefault(),this.toggle()),t.keyCode===vo&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===Lr&&(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===rr.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===wn.left?" dropdown-left":this.horizontal===wn.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)}},ks={class:"ib-dropdown"},Cs={class:"footer-slot"};function Os(t,n,e,o,a,r){const l=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",ks,[r.hasTrigger&&e.triggerType==="click"?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),ref:"dropdown",onKeydown:n[0]||(n[0]=(...s)=>r.onKeydown&&r.onKeydown(...s)),onClick:n[1]||(n[1]=i.withModifiers((...s)=>r.toggle&&r.toggle(...s),["prevent","stop"]))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),r.hasTrigger&&e.triggerType==="hover"?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["dropdown-trigger",r.triggerClasses]),onMouseenter:n[2]||(n[2]=(...s)=>r.debouncedOpen&&r.debouncedOpen(...s)),onMouseleave:n[3]||(n[3]=(...s)=>r.debouncedClose&&r.debouncedClose(...s))},[i.renderSlot(t.$slots,"trigger",{isOpened:a.isOpenedState},void 0,!0)],34)):i.createCommentVNode("",!0),!e.destroyOnHide||a.isOpenedState?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:2,ref:"body",class:i.normalizeClass("ib-dropdown-menu "+r.classes)},[i.createElementVNode("div",{class:"dropdown-body",onClick:n[5]||(n[5]=(...s)=>r.closeOnClickIfRequired&&r.closeOnClickIfRequired(...s))},[i.renderSlot(t.$slots,"body",{isOpenedState:a.isOpenedState},void 0,!0),e.showCloseIcon?(i.openBlock(),i.createElementBlock("span",{key:0,class:"close",onClick:n[4]||(n[4]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"close",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",Cs,[i.renderSlot(t.$slots,"footer",{},void 0,!0)])],2)),[[i.vShow,a.isOpenedState]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"before",onClick:n[6]||(n[6]=(...s)=>r.close&&r.close(...s))},[i.renderSlot(t.$slots,"before",{},void 0,!0)])])),[[l,r.close]])}const ir=_e(ws,[["render",Os],["__scopeId","data-v-dfb4a39a"]]),np="",Es={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===vo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.querySelector(`.${this.rootClass}`);let u=l.nextElementSibling?l.nextElementSibling:(n=l.parentNode.nextElementSibling)==null?void 0:n.childNodes[0];if(s&&window.getComputedStyle(s).display!=="none"){s.querySelector('a, button, input, [tabindex="0"]').focus();return}if(u){u.focus();return}const c=(o=(e=l.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];c&&c.nodeName!=="#text"&&c.focus()}if(t.keyCode===ms){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.previousElementSibling?l.previousElementSibling:(a=l.parentNode.previousElementSibling)==null?void 0:a.childNodes[0];if(!s){l.closest(`.${this.rootClass}`).parentNode.focus();return}if(s&&s.nodeName!=="#text"){const u=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(u&&window.getComputedStyle(u).display!=="none"){const c=Array.from(u.childNodes).filter(p=>p.nodeName!=="#text");(r=c[c.length-1])==null||r.childNodes[0].focus();return}s.focus()}}}}};function Ss(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("ul",{class:i.normalizeClass(a.rootClass),onKeydown:n[0]||(n[0]=(...l)=>r.onKeydown&&r.onKeydown(...l))},[i.renderSlot(t.$slots,"default")],34)}const Rr=_e(Es,[["render",Ss]]),rp="",xs={props:{vertical:{type:String,default:rr.bottom},horizontal:{type:String,default:wn.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:ir,IbList:Rr}},Ts={class:"dropdown-list-wrapper"};function Ns(t,n,e,o,a,r){const l=i.resolveComponent("ib-list"),s=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",Ts,[i.createVNode(s,i.mergeProps({horizontal:e.horizontal,vertical:e.vertical,isOpened:e.isOpened,closeOnClick:e.closeOnClick,disabled:e.disabled},t.$attrs,{ref:"dropdown",onAll:r.proxyEvents}),i.createSlots({body:i.withCtx(({isOpened:u})=>[i.createVNode(l,{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 or=_e(xs,[["render",Ns]]),ip="",As={props:{checked:{type:Boolean,default:!1},href:{type:String},to:{type:[String,Object]}},computed:{component(){return this.href?"a":this.to?"router-link":"div"},attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),this.to&&(t.to=this.to),t}}},Ds={class:"dropdown-item-wrapper"},Is={class:"dropdown-item-icon"};function Ps(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",Ds,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps({class:e.checked?"active":""},r.attrs,{tabindex:"0"}),{default:i.withCtx(()=>[i.createElementVNode("p",null,[i.createElementVNode("div",Is,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),i.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const jr=_e(As,[["render",Ps],["__scopeId","data-v-65b53eff"]]),Ms={common:"common",danger:"danger"},op="",Bs={name:"IbSplitButton",props:{id:{type:String,default:()=>gt()},kind:{type:String,default:Ms.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.$nextTick(()=>{this.setActiveItem()})},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,isRouterLink:!1,childList:[]}},components:{IbIcon:Be,IbDropdownList:or},methods:{setActiveItem(){const t=this.$slots.default()[this.activeElemIdx].props;delete t.disabled,this.mainButtonAttrs=t,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.mainButtonAttrs&&"to"in this.mainButtonAttrs?this.isRouterLink=!0:this.isRouterLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}}},Ls=["disabled"],Rs=["disabled"],js=["disabled"],Vs={ref:"list"};function qs(t,n,e,o,a,r){const l=i.resolveComponent("router-link"),s=i.resolveComponent("ib-icon"),u=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[a.isRouterLink?(i.openBlock(),i.createBlock(l,i.mergeProps({key:0,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled,to:a.mainButtonAttrs.to},a.mainButtonAttrs,{onClick:r.onClickLink}),{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.content),1)]),_:1},16,["class","disabled","to","onClick"])):a.isLink?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...c)=>r.onClickLink&&r.onClickLink(...c))}),i.toDisplayString(a.content),17,Ls)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:2,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Rs)),i.createVNode(u,{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,js)]),body:i.withCtx(()=>[i.createElementVNode("div",Vs,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const Fs=_e(Bs,[["render",qs]]),ap="",Hs={props:{href:{type:String,default:""},to:{type:[String,Object]}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),this.to&&(t.to=this.to),t},component(){return this.href.length?"a":this.to?"router-link":"button"}}};function zs(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),i.mergeProps(r.attrs,{class:"ib-dropdown-item"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const Us=_e(Hs,[["render",zs],["__scopeId","data-v-9a68b340"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},lp="",Ks={name:"IbModal",directives:{Outside:nr},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:Nt.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===yo&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===yo&&!r.shiftKey&&(r.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)},data(){return{isActive:this.active}},methods:{showModal(t){t?this.open():this.close()},onTriggerBlur(t){var n,e,o;!((n=this.$refs.modal)!=null&&n.contains(t.relatedTarget))&&this.isActive&&((o=(e=this.$refs.modal)==null?void 0:e.querySelector("a, button, [tabindex]"))==null||o.focus())},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var n,e;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&!((e=this.$refs.modal)!=null&&e.contains(t.relatedTarget))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").focus()},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===Lr&&!this.stopPropagation&&this.isActive&&this.close()}},computed:{bodyStyles(){const t={};return this.size===Nt.S&&(t.width="380px",t.minHeight="160px",t.maxHeight="680px"),this.size===Nt.M&&(t.width="600px",t.minHeight="260px",t.maxHeight="680px"),this.size===Nt.L&&(t.width="850px",t.minHeight="400px",t.maxHeight="680px"),this.size===Nt.XL&&(t.width="80vw",t.maxWidth="1400px"),t},bodyClassList(){const t=["modal-body"];return this.size===Nt.S&&t.push("modal-body-s"),this.size===Nt.M&&t.push("modal-body-m"),this.size===Nt.L&&t.push("modal-body-l"),this.size===Nt.XL&&t.push("modal-body-xl"),t},hasTrigger(){return!!this.$slots.trigger},hasHeader(){return!!this.$slots.header},hasFooter(){return!!this.$slots.footer}},components:{IbIconButton:ct,IbIcon:Be},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},Gs={key:1,class:"modal-header"},Ws={key:2,class:"modal-footer"};function Ys(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=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]=(...c)=>r.onTriggerBlur&&r.onTriggerBlur(...c)),onClick:n[1]||(n[1]=(...c)=>r.open&&r.open(...c))},[i.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["modal",e.classList]),ref:"modal"},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.bodyClassList),style:i.normalizeStyle(r.bodyStyles)},[e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",Gs,[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",Ws,[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 Zs=_e(Ks,[["render",Ys],["__scopeId","data-v-ad9343ef"]]);function _o(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const sp="",Js={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return _o(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:or,IbDropdownItem:jr,IbIcon:Be}},Xs={class:"wrapper-tab-link dropdown-tab"},Qs=["tabindex"];function ed(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),u=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Xs,[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(l,{name:"chevron-down"})],10,Qs)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(c,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:c.id===e.selectedTab,href:r.createHref(c.id),tabindex:c.disabled?-1:0,class:i.normalizeClass([{disabled:c.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>r.selectTab(c.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const $o=_e(Js,[["render",ed]]),dp="",td={name:"IbTabs",props:{selectedTabId:{type:String,default:""}},data(){return{tabs:[],selectedTab:this.selectTabId}},watch:{selectedTabId(t){this.selectTab(t)}},created(){const t=[];this.$slots.default().forEach(n=>n.type===Symbol.for("v-fgt")?t.push(...n.children):t.push(n)),t.forEach(n=>{if(!n.props.name)this.tabs.push(n.props);else{const e=this.tabs.findIndex(o=>o.name===n.props.name);if(e!==-1)this.tabs[e].tabs.push(n.props);else{const o={name:n.props.name,tabs:[n.props]};this.tabs.push(o)}}});for(let n of this.tabs)if(!n.disabled)if(n.tabs){for(let e of n.tabs)if(!e.disabled){this.selectTab(e.id);return}}else{this.selectTab(n.id);return}},methods:{createHref(t){return _o(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:$o},emits:["changeTab"]},nd={class:"tabs"},rd={class:"tabs-list"},id={key:0,class:"wrapper-tab-link"},od=["href","tabindex","onClick"],ad={class:"tabs-content",ref:"tabHandler"};function ld(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",nd,[i.createElementVNode("ul",rd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,u)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:u},[s.name?(i.openBlock(),i.createBlock(l,{key:1,"selected-tab":a.selectedTab,tabs:s,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",id,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===s.id,disabled:s.disabled}]),href:r.createHref(s.id),tabindex:s.disabled?-1:0,onClick:c=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,od)]))]))),128))]),i.createElementVNode("div",ad,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const sd=_e(td,[["render",ld],["__scopeId","data-v-47d103be"]]),dd={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 cd(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 ud=_e(dd,[["render",cd]]),fd={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},hd={TYPE_ASC:"asc",TYPE_DESC:"desc"},wo={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"};class ko{constructor(){this.tooltipInstance=null,this.tooltipContainer=null,this.uuid=null}getTooltipInstance(){return this.getTooltipInstance}getTooltipContainer(){return this.tooltipContainer}getId(){return this.uuid}generateUID(){this.uuid="tooltip_"+gt()}createTooltip(n,e,o){var r;if(!((r=e.text)!=null&&r.length))return;this.generateUID();const a=`
2
2
  position: absolute;
3
3
  top: 0px;
4
4
  left: 0px;