@avakhula/ui 0.0.505-alpha.56 → 0.0.505-alpha.57
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 +10 -3
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Modal/Modal.vue +9 -2
package/dist/index.js
CHANGED
|
@@ -2092,9 +2092,16 @@ const Eu = {
|
|
|
2092
2092
|
var t, n;
|
|
2093
2093
|
this.isActive = !1, (n = (t = this.$refs.trigger) == null ? void 0 : t.querySelector("a, button, [tabindex]")) == null || n.focus(), document.body.classList.remove("modal-open"), this.$emit("close");
|
|
2094
2094
|
},
|
|
2095
|
+
// setFocusOnModal(e) {
|
|
2096
|
+
// if(!this.$refs.modal?.contains(e.target) && this.isActive) {
|
|
2097
|
+
// this.$refs.modal.querySelector(
|
|
2098
|
+
// "[tabindex], a, button, input, select, textarea"
|
|
2099
|
+
// ).focus();
|
|
2100
|
+
// }
|
|
2101
|
+
// },
|
|
2095
2102
|
setFocusOnModal(t) {
|
|
2096
|
-
var n;
|
|
2097
|
-
!((n = this.$refs.modal) != null && n.contains(t.target)) && this.isActive && this.$refs.modal.querySelector(
|
|
2103
|
+
var n, e;
|
|
2104
|
+
!((n = this.$refs.modal) != null && n.contains(t.target)) && !((e = this.$refs.modal) != null && e.contains(t.relatedTarget)) && this.isActive && this.$refs.modal.querySelector(
|
|
2098
2105
|
"[tabindex], a, button, input, select, textarea"
|
|
2099
2106
|
).focus();
|
|
2100
2107
|
},
|
|
@@ -2191,7 +2198,7 @@ function Su(t, n, e, i, o, r) {
|
|
|
2191
2198
|
]))
|
|
2192
2199
|
], 64);
|
|
2193
2200
|
}
|
|
2194
|
-
const ip = /* @__PURE__ */ Ae(Eu, [["render", Su], ["__scopeId", "data-v-
|
|
2201
|
+
const ip = /* @__PURE__ */ Ae(Eu, [["render", Su], ["__scopeId", "data-v-f6c2d863"]]);
|
|
2195
2202
|
function ja(t) {
|
|
2196
2203
|
return "#" + t.toLowerCase().replace(/ /g, "-");
|
|
2197
2204
|
}
|
package/dist/index.umd.cjs
CHANGED
|
@@ -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 N0="",_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 qi={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})}}},A0="",Ha={name:"IbAccordion",mixins:[qi],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"]]),Ut={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Pr(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const D0="",Ya={name:"IbButton",props:{kind:{type:String,default:Ut.primary},disabled:{type:Boolean,required:!1,default:!1},preventDefault:{type:Boolean,default:null},confirmMessage:{type:String,default:""},block:{type:Boolean,default:!1},href:{type:String,default:""},linkMethod:{type:String,default:"get"},disableAfterClick:{type:Boolean,default:!1},postOptions:{type:Object,default:()=>({})}},data(){return{isDisabled:this.disabled}},watch:{disabled(t){this.isDisabled=t}},methods:{onMouseenter(t){this.$emit("mouseenter",t)},onMouseleave(t){this.$emit("mouseleave",t)},onClick(t){if((this.preventDefault||this.isDisabled)&&t.preventDefault(),this.confirmMessage.length>0&&!confirm(this.confirmMessage)){t.preventDefault();return}!this.isDisabled&&this.href.length&&!this.preventDefault&&this.linkMethod.toUpperCase()!=="GET"&&(t.preventDefault(),this.$refs.form.submit()),this.isDisabled||this.$emit("click",t),this.disableAfterClick&&!this.disabled&&(this.isDisabled=!0)}},computed:{classes(){const t=["ib-button"];return t.push(`ib-btn-${this.kind}`),this.isDisabled&&t.push("ib-btn-disabled"),this.block&&t.push("ib-btn-block"),this.href.length&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=Pr({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},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(e.href.length?"a":"button"),i.mergeProps({onClick:n[0]||(n[0]=l=>r.onClick(l)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave},r.attrs),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"icon"),i.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?i.withDirectives((i.openBlock(),i.createElementBlock("form",{key:0,ref:"form",method:r.formMethod,action:e.href},[i.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,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 Fi=_e(Ya,[["render",el]]),tl=["top","right","bottom","left"],Hi=["start","end"],zi=tl.reduce((t,n)=>t.concat(n,n+"-"+Hi[0],n+"-"+Hi[1]),[]),Ui=Math.min,gn=Math.max,Wn=Math.round,jt=t=>({x:t,y:t}),nl={left:"right",right:"left",bottom:"top",top:"bottom"},rl={start:"end",end:"start"};function Ki(t,n){return typeof t=="function"?t(n):t}function Yn(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function il(t){return t==="x"?"y":"x"}function Gi(t){return t==="y"?"height":"width"}function Wi(t){return["top","bottom"].includes(Yn(t))?"y":"x"}function Yi(t){return il(Wi(t))}function ol(t,n,e){e===void 0&&(e=!1);const o=Kt(t),a=Yi(t),r=Gi(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(l=Zi(l)),[l,Zi(l)]}function al(t){return t.replace(/start|end/g,n=>rl[n])}function Zi(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 Zn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ji(t,n,e){let{reference:o,floating:a}=t;const r=Wi(n),l=Yi(n),s=Gi(l),f=Yn(n),d=r==="y",p=o.x+o.width/2-a.width/2,h=o.y+o.height/2-a.height/2,c=o[s]/2-a[s]/2;let u;switch(f){case"top":u={x:p,y:o.y-a.height};break;case"bottom":u={x:p,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-a.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Kt(n)){case"start":u[l]-=c*(e&&d?-1:1);break;case"end":u[l]+=c*(e&&d?-1:1);break}return u}const cl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(n));let d=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:h}=Ji(d,o,f),c=o,u={},_=0;for(let g=0;g<s.length;g++){const{name:b,fn:y}=s[g],{x:m,y:w,data:v,reset:k}=await y({x:p,y:h,initialPlacement:o,placement:c,strategy:a,middlewareData:u,rects:d,platform:l,elements:{reference:t,floating:n}});p=m??p,h=w??h,u={...u,[b]:{...u[b],...v}},k&&_<=50&&(_++,typeof k=="object"&&(k.placement&&(c=k.placement),k.rects&&(d=k.rects===!0?await l.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:h}=Ji(d,c,f)),g=-1)}return{x:p,y:h,placement:c,strategy:a,middlewareData:u}};async function dl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:f}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:c=!1,padding:u=0}=Ki(n,t),_=sl(u),b=s[c?h==="floating"?"reference":"floating":h],y=Zn(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(b)))==null||e?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:d,rootBoundary:p,strategy:f})),m=h==="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=Zn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:w,strategy:f}):m);return{top:(y.top-k.top+_.top)/v.y,bottom:(k.bottom-y.bottom+_.bottom)/v.y,left:(y.left-k.left+_.left)/v.x,right:(k.right-y.right+_.right)/v.x}}function ul(t,n,e){return(t?[...e.filter(a=>Kt(a)===t),...e.filter(a=>Kt(a)!==t)]:e.filter(a=>Yn(a)===a)).filter(a=>t?Kt(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:f,elements:d}=n,{crossAxis:p=!1,alignment:h,allowedPlacements:c=zi,autoAlignment:u=!0,..._}=Ki(t,n),g=h!==void 0||c===zi?ul(h||null,u,c):c,b=await dl(n,_),y=((e=l.autoPlacement)==null?void 0:e.index)||0,m=g[y];if(m==null)return{};const w=ol(m,r,await(f.isRTL==null?void 0:f.isRTL(d.floating)));if(s!==m)return{reset:{placement:g[0]}};const v=[b[Yn(m)],b[w[0]],b[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:m,overflows:v}],T=g[y+1];if(T)return{data:{index:y+1,overflows:k},reset:{placement:T}};const S=k.map(E=>{const C=Kt(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,Kt(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 Xi(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function qt(t){var n;return(n=(Xi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Xi(t){return t instanceof Node||t instanceof ct(t).Node}function Tt(t){return t instanceof Element||t instanceof ct(t).Element}function _t(t){return t instanceof HTMLElement||t instanceof ct(t).HTMLElement}function Qi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function yn(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 Ir(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)&&!Jn(n);){if(Ir(n))return n;n=rn(n)}return null}function Mr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(t){return["html","body","#document"].includes(Vt(t))}function ht(t){return ct(t).getComputedStyle(t)}function Xn(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||Qi(t)&&t.host||qt(t);return Qi(n)?n.host:n}function eo(t){const n=rn(t);return Jn(n)?t.ownerDocument?t.ownerDocument.body:t.body:_t(n)&&yn(n)?n:eo(n)}function Br(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=eo(t),r=a===((o=t.ownerDocument)==null?void 0:o.body),l=ct(a);return r?n.concat(l,l.visualViewport||[],yn(a)?a:[],l.frameElement&&e?Br(l.frameElement):[]):n.concat(a,Br(a,[],e))}function to(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=Wn(e)!==r||Wn(o)!==l;return s&&(e=r,o=l),{width:e,height:o,$:s}}function no(t){return Tt(t)?t:t.contextElement}function on(t){const n=no(t);if(!_t(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:r}=to(n);let l=(r?Wn(e.width):e.width)/o,s=(r?Wn(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 ro(t){const n=ct(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!==ct(t)?!1:n}function vn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),r=no(t);let l=jt(1);n&&(o?Tt(o)&&(l=on(o)):l=on(t));const s=gl(r,e,o)?ro(r):jt(0);let f=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,p=a.width/l.x,h=a.height/l.y;if(r){const c=ct(r),u=o&&Tt(o)?ct(o):o;let _=c,g=_.frameElement;for(;g&&o&&u!==_;){const b=on(g),y=g.getBoundingClientRect(),m=ht(g),w=y.left+(g.clientLeft+parseFloat(m.paddingLeft))*b.x,v=y.top+(g.clientTop+parseFloat(m.paddingTop))*b.y;f*=b.x,d*=b.y,p*=b.x,h*=b.y,f+=w,d+=v,_=ct(g),g=_.frameElement}}return Zn({width:p,height:h,x:f,y:d})}const yl=[":popover-open",":modal"];function io(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?io(n.floating):!1;if(o===l||s&&r)return e;let f={scrollLeft:0,scrollTop:0},d=jt(1);const p=jt(0),h=_t(o);if((h||!h&&!r)&&((Vt(o)!=="body"||yn(l))&&(f=Xn(o)),_t(o))){const c=vn(o);d=on(o),p.x=c.x+o.clientLeft,p.y=c.y+o.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-f.scrollLeft*d.x+p.x,y:e.y*d.y-f.scrollTop*d.y+p.y}}function bl(t){return Array.from(t.getClientRects())}function oo(t){return vn(qt(t)).left+Xn(t).scrollLeft}function _l(t){const n=qt(t),e=Xn(t),o=t.ownerDocument.body,a=gn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),r=gn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+oo(t);const s=-e.scrollTop;return ht(o).direction==="rtl"&&(l+=gn(n.clientWidth,o.clientWidth)-a),{width:a,height:r,x:l,y:s}}function $l(t,n){const e=ct(t),o=qt(t),a=e.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,f=0;if(a){r=a.width,l=a.height;const d=Mr();(!d||d&&n==="fixed")&&(s=a.offsetLeft,f=a.offsetTop)}return{width:r,height:l,x:s,y:f}}function wl(t,n){const e=vn(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,f=a*r.x,d=o*r.y;return{width:l,height:s,x:f,y:d}}function ao(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=ro(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Zn(o)}function lo(t,n){const e=rn(t);return e===n||!Tt(e)||Jn(e)?!1:ht(e).position==="fixed"||lo(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)&&!Jn(l);){const s=ht(l),f=Ir(l);!f&&s.position==="fixed"&&(a=null),(r?!f&&!a:!f&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||yn(l)&&!f&&lo(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],f=l.reduce((d,p)=>{const h=ao(n,p,a);return d.top=gn(h.top,d.top),d.right=Ui(h.right,d.right),d.bottom=Ui(h.bottom,d.bottom),d.left=gn(h.left,d.left),d},ao(n,s,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ol(t){const{width:n,height:e}=to(t);return{width:n,height:e}}function El(t,n,e){const o=_t(n),a=qt(n),r=e==="fixed",l=vn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const f=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||yn(a))&&(s=Xn(n)),o){const h=vn(n,!0,r,n);f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}else a&&(f.x=oo(a));const d=l.left+s.scrollLeft-f.x,p=l.top+s.scrollTop-f.y;return{x:d,y:p,width:l.width,height:l.height}}function so(t,n){return!_t(t)||ht(t).position==="fixed"?null:n?n(t):t.offsetParent}function co(t,n){const e=ct(t);if(!_t(t)||io(t))return e;let o=so(t,n);for(;o&&hl(o)&&ht(o).position==="static";)o=so(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&ht(o).position==="static"&&!Ir(o))?e:o||pl(t)||e}const Sl=async function(t){const n=this.getOffsetParent||co,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:co,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 cl(t,n,{...a,platform:r})},P0="",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 Pl(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 uo=_e(Dl,[["render",Pl],["__scopeId","data-v-9313d095"]]),I0="",Il={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:uo}},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(Il,[["render",Bl],["__scopeId","data-v-6fb94ac5"]]),fo={[Ut.primary]:Ut.primary,[Ut.tertiary]:Ut.tertiary,[Ut.ghost]:Ut.ghost,white:"white"},ho={xs:"xs",s:"s",m:"m"},M0="",Ll={name:"IbIconButton",props:{kind:{type:String,default:fo.primary,validator:t=>Object.keys(fo).includes(t)},size:{type:String,default:ho.s,validator:t=>Object.keys(ho).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},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:Fi,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,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","kind","disabled","prevent-default"])}const dt=_e(Ll,[["render",Rl]]),Qn={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},B0="",jl={name:"IbAlert",props:{type:{type:String,default:Qn.alert,validator:t=>Object.keys(Qn).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""}},mounted(){this.checkHeight(),this.$refs.content&&(this.contentObserver=new ResizeObserver(()=>{this.checkHeight()}),this.contentObserver.observe(this.$refs.content)),window.addEventListener("resize",()=>this.checkHeight())},data(){return{contentObserver:null}},methods:{close(){this.$emit("close")},checkHeight(){var e;if(!this.$refs.content)return;const t=getComputedStyle(this.$refs.content),n=(e=this.$refs.content)==null?void 0:e.parentElement.offsetWidth;!n||!t||(parseInt(t.width)<=n&&this.$refs.content.classList.remove("large"),parseInt(t.height)>37&&this.showIcon&&(this.title.length?this.$refs.content.classList.add("large"):this.$refs.content.classList.add("medium")))}},computed:{classes(){const t=["ib-alert"];return t.push(`ib-alert-${this.type}`),this.title.length&&t.push("has-title"),this.showIcon&&t.push("has-icon"),this.showCloseButton&&t.push("has-close-button"),this.$slots.link&&t.push("has-link"),t},iconName(){return this.type===Qn.info?"information-circle-outline":this.type===Qn.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:dt}},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 f;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),(f=e.title)!=null&&f.length?(i.openBlock(),i.createElementBlock("b",Fl,i.toDisplayString(e.title),1)):i.createCommentVNode("",!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-dec06c47"]]),Kl={M:"m",L:"l",XL:"xl"},Gl={SQUARE:"square",CIRCLE:"circle"},L0="",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"]]),R0="",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"]]),j0="",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"},V0="",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"},q0="",F0="",cs={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:dt,IbIcon:Be}},ds={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",ds,[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 po=_e(cs,[["render",hs],["__scopeId","data-v-9e7c679e"]]),Lr=27,mo=32,ps=13,go=9,ms=38,gs=37,ys=39,yo=40,vs="click",{performance:er}=window,bs=typeof(er==null?void 0:er.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>er.now():()=>Date.now(),bn=new Map;let _n=!1;const vo=t=>{bn.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",vo,{capture:!0}),_n=!0)},$s=()=>{_n&&(document.removeEventListener("click",vo),_n=!1)},tr={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!`);bn.has(t)||(_n||_s(),bn.set(t,{bindTimeStamp:bs(),callback:n}))},beforeUnmount:t=>{bn.delete(t),bn.size===0&&$s()}},$n={left:"left",right:"right",center:"center"},nr={top:"top",bottom:"bottom"},U0="",K0="",ws={name:"IbDropdown",directives:{Outside:tr},props:{vertical:{type:String,default:nr.bottom},horizontal:{type:String,default:$n.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===mo)&&(t.preventDefault(),this.toggle()),t.keyCode===yo&&(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===nr.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===$n.left?" dropdown-left":this.horizontal===$n.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 rr=_e(ws,[["render",Os],["__scopeId","data-v-dfb4a39a"]]),G0="",Es={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===yo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.querySelector(`.${this.rootClass}`);let f=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(f){f.focus();return}const d=(o=(e=l.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];d&&d.nodeName!=="#text"&&d.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 f=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(f&&window.getComputedStyle(f).display!=="none"){const d=Array.from(f.childNodes).filter(p=>p.nodeName!=="#text");(r=d[d.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]]),W0="",xs={props:{vertical:{type:String,default:nr.bottom},horizontal:{type:String,default:$n.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:rr,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:f})=>[i.createVNode(l,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:f})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:f})=>[i.renderSlot(t.$slots,"trigger",{isOpened:f})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const ir=_e(xs,[["render",Ns]]),Y0="",As={props:{checked:{type:Boolean,default:!1},href:{type:String}},computed:{attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),t}}},Ds={class:"dropdown-item-wrapper"},Ps={class:"dropdown-item-icon"};function Is(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",Ds,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href?"a":"div"),i.mergeProps({class:e.checked?"active":""},r.attrs,{tabindex:"0"}),{default:i.withCtx(()=>[i.createElementVNode("p",null,[i.createElementVNode("div",Ps,[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",Is],["__scopeId","data-v-11b4be9b"]]),Ms={common:"common",danger:"danger"},Z0="",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.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:Be,IbDropdownList:ir},methods:{setActiveItem(){this.mainButtonAttrs=this.$slots.default()[this.activeElemIdx].props,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}}},Ls=["disabled"],Rs=["disabled"],js=["disabled"],Vs={ref:"list"};function qs(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[a.isLink?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...f)=>r.onClickLink&&r.onClickLink(...f))}),i.toDisplayString(a.content),17,Rs)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Ls)),i.createVNode(s,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(l,{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]]),J0="",Hs={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function zs(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),i.mergeProps(r.attrs,{class:"ib-dropdown-item"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const Us=_e(Hs,[["render",zs],["__scopeId","data-v-4cf00feb"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},X0="",Ks={name:"IbModal",directives:{Outside:tr},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===go&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===go&&!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;this.isActive=!1,(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var n;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").focus()},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===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:dt,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"),f=i.resolveDirective("outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[r.hasTrigger?(i.openBlock(),i.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...d)=>r.onTriggerBlur&&r.onTriggerBlur(...d)),onClick:n[1]||(n[1]=(...d)=>r.open&&r.open(...d))},[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)),[[f,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const Zs=_e(Ks,[["render",Ys],["__scopeId","data-v-d256c166"]]);function bo(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const Q0="",Js={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return bo(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:ir,IbDropdownItem:jr,IbIcon:Be}},Xs={class:"wrapper-tab-link dropdown-tab"},Qs=["tabindex"];function ec(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),f=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Xs,[i.createVNode(f,{disabled:a.isDisabledDropdown,"close-on-click":!0},{trigger:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(["tab-link",{active:a.selectedTabByDropdown===e.selectedTab||r.isActive,disabled:a.isDisabledDropdown}]),tabindex:a.isDisabledDropdown?-1:0},[i.createTextVNode(i.toDisplayString(e.tabs.name)+" ",1),i.createVNode(l,{name:"chevron-down"})],10,Qs)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(d,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:d.id===e.selectedTab,href:r.createHref(d.id),tabindex:d.disabled?-1:0,class:i.normalizeClass([{disabled:d.disabled},"dropdown-tab-item"]),target:"_self",onClick:h=>r.selectTab(d.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(d.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const _o=_e(Js,[["render",ec]]),ep="",tc={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 bo(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:_o},emits:["changeTab"]},nc={class:"tabs"},rc={class:"tabs-list"},ic={key:0,class:"wrapper-tab-link"},oc=["href","tabindex","onClick"],ac={class:"tabs-content",ref:"tabHandler"};function lc(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",nc,[i.createElementVNode("ul",rc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,f)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:f},[s.name?(i.openBlock(),i.createBlock(l,{key:1,"selected-tab":a.selectedTab,tabs:s,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",ic,[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:d=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,oc)]))]))),128))]),i.createElementVNode("div",ac,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const sc=_e(tc,[["render",lc],["__scopeId","data-v-47d103be"]]),cc={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 dc(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 uc=_e(cc,[["render",dc]]),fc={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},hc={TYPE_ASC:"asc",TYPE_DESC:"desc"},$o={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 wo{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 N0="",_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 qi={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})}}},A0="",Ha={name:"IbAccordion",mixins:[qi],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"]]),Ut={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Pr(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const D0="",Ya={name:"IbButton",props:{kind:{type:String,default:Ut.primary},disabled:{type:Boolean,required:!1,default:!1},preventDefault:{type:Boolean,default:null},confirmMessage:{type:String,default:""},block:{type:Boolean,default:!1},href:{type:String,default:""},linkMethod:{type:String,default:"get"},disableAfterClick:{type:Boolean,default:!1},postOptions:{type:Object,default:()=>({})}},data(){return{isDisabled:this.disabled}},watch:{disabled(t){this.isDisabled=t}},methods:{onMouseenter(t){this.$emit("mouseenter",t)},onMouseleave(t){this.$emit("mouseleave",t)},onClick(t){if((this.preventDefault||this.isDisabled)&&t.preventDefault(),this.confirmMessage.length>0&&!confirm(this.confirmMessage)){t.preventDefault();return}!this.isDisabled&&this.href.length&&!this.preventDefault&&this.linkMethod.toUpperCase()!=="GET"&&(t.preventDefault(),this.$refs.form.submit()),this.isDisabled||this.$emit("click",t),this.disableAfterClick&&!this.disabled&&(this.isDisabled=!0)}},computed:{classes(){const t=["ib-button"];return t.push(`ib-btn-${this.kind}`),this.isDisabled&&t.push("ib-btn-disabled"),this.block&&t.push("ib-btn-block"),this.href.length&&t.push("ib-btn-link"),this.hasIcon&&t.push("ib-btn-has-icon"),t},attrs(){const t=Pr({...this.$attrs},["onClick"]);return t.class=[...this.classes,t.class],t.disabled=this.isDisabled,this.href.length&&(t.href=this.href),t},hasIcon(){return!!this.$slots.icon},formMethod(){return this.linkMethod==="GET"?"GET":"POST"},token(){var t;return(t=document.head.querySelector('meta[name="csrf-token"]'))==null?void 0:t.content}},inheritAttrs:!1},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(e.href.length?"a":"button"),i.mergeProps({onClick:n[0]||(n[0]=l=>r.onClick(l)),onMouseenter:r.onMouseenter,onMouseleave:r.onMouseleave},r.attrs),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"icon"),i.renderSlot(t.$slots,"default"),e.href.length&&e.linkMethod.toUpperCase()!=="GET"?i.withDirectives((i.openBlock(),i.createElementBlock("form",{key:0,ref:"form",method:r.formMethod,action:e.href},[i.createElementVNode("input",{type:"hidden",name:"_method",value:e.linkMethod},null,8,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 Fi=_e(Ya,[["render",el]]),tl=["top","right","bottom","left"],Hi=["start","end"],zi=tl.reduce((t,n)=>t.concat(n,n+"-"+Hi[0],n+"-"+Hi[1]),[]),Ui=Math.min,gn=Math.max,Wn=Math.round,jt=t=>({x:t,y:t}),nl={left:"right",right:"left",bottom:"top",top:"bottom"},rl={start:"end",end:"start"};function Ki(t,n){return typeof t=="function"?t(n):t}function Yn(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function il(t){return t==="x"?"y":"x"}function Gi(t){return t==="y"?"height":"width"}function Wi(t){return["top","bottom"].includes(Yn(t))?"y":"x"}function Yi(t){return il(Wi(t))}function ol(t,n,e){e===void 0&&(e=!1);const o=Kt(t),a=Yi(t),r=Gi(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(l=Zi(l)),[l,Zi(l)]}function al(t){return t.replace(/start|end/g,n=>rl[n])}function Zi(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 Zn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ji(t,n,e){let{reference:o,floating:a}=t;const r=Wi(n),l=Yi(n),s=Gi(l),f=Yn(n),d=r==="y",p=o.x+o.width/2-a.width/2,h=o.y+o.height/2-a.height/2,c=o[s]/2-a[s]/2;let u;switch(f){case"top":u={x:p,y:o.y-a.height};break;case"bottom":u={x:p,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-a.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Kt(n)){case"start":u[l]-=c*(e&&d?-1:1);break;case"end":u[l]+=c*(e&&d?-1:1);break}return u}const cl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(n));let d=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:h}=Ji(d,o,f),c=o,u={},_=0;for(let g=0;g<s.length;g++){const{name:b,fn:y}=s[g],{x:m,y:w,data:v,reset:k}=await y({x:p,y:h,initialPlacement:o,placement:c,strategy:a,middlewareData:u,rects:d,platform:l,elements:{reference:t,floating:n}});p=m??p,h=w??h,u={...u,[b]:{...u[b],...v}},k&&_<=50&&(_++,typeof k=="object"&&(k.placement&&(c=k.placement),k.rects&&(d=k.rects===!0?await l.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:h}=Ji(d,c,f)),g=-1)}return{x:p,y:h,placement:c,strategy:a,middlewareData:u}};async function dl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:f}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:c=!1,padding:u=0}=Ki(n,t),_=sl(u),b=s[c?h==="floating"?"reference":"floating":h],y=Zn(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(b)))==null||e?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:d,rootBoundary:p,strategy:f})),m=h==="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=Zn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:w,strategy:f}):m);return{top:(y.top-k.top+_.top)/v.y,bottom:(k.bottom-y.bottom+_.bottom)/v.y,left:(y.left-k.left+_.left)/v.x,right:(k.right-y.right+_.right)/v.x}}function ul(t,n,e){return(t?[...e.filter(a=>Kt(a)===t),...e.filter(a=>Kt(a)!==t)]:e.filter(a=>Yn(a)===a)).filter(a=>t?Kt(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:f,elements:d}=n,{crossAxis:p=!1,alignment:h,allowedPlacements:c=zi,autoAlignment:u=!0,..._}=Ki(t,n),g=h!==void 0||c===zi?ul(h||null,u,c):c,b=await dl(n,_),y=((e=l.autoPlacement)==null?void 0:e.index)||0,m=g[y];if(m==null)return{};const w=ol(m,r,await(f.isRTL==null?void 0:f.isRTL(d.floating)));if(s!==m)return{reset:{placement:g[0]}};const v=[b[Yn(m)],b[w[0]],b[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:m,overflows:v}],T=g[y+1];if(T)return{data:{index:y+1,overflows:k},reset:{placement:T}};const S=k.map(E=>{const C=Kt(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,Kt(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 Xi(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function qt(t){var n;return(n=(Xi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Xi(t){return t instanceof Node||t instanceof ct(t).Node}function Tt(t){return t instanceof Element||t instanceof ct(t).Element}function _t(t){return t instanceof HTMLElement||t instanceof ct(t).HTMLElement}function Qi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function yn(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 Ir(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)&&!Jn(n);){if(Ir(n))return n;n=rn(n)}return null}function Mr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(t){return["html","body","#document"].includes(Vt(t))}function ht(t){return ct(t).getComputedStyle(t)}function Xn(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||Qi(t)&&t.host||qt(t);return Qi(n)?n.host:n}function eo(t){const n=rn(t);return Jn(n)?t.ownerDocument?t.ownerDocument.body:t.body:_t(n)&&yn(n)?n:eo(n)}function Br(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=eo(t),r=a===((o=t.ownerDocument)==null?void 0:o.body),l=ct(a);return r?n.concat(l,l.visualViewport||[],yn(a)?a:[],l.frameElement&&e?Br(l.frameElement):[]):n.concat(a,Br(a,[],e))}function to(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=Wn(e)!==r||Wn(o)!==l;return s&&(e=r,o=l),{width:e,height:o,$:s}}function no(t){return Tt(t)?t:t.contextElement}function on(t){const n=no(t);if(!_t(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:r}=to(n);let l=(r?Wn(e.width):e.width)/o,s=(r?Wn(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 ro(t){const n=ct(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!==ct(t)?!1:n}function vn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),r=no(t);let l=jt(1);n&&(o?Tt(o)&&(l=on(o)):l=on(t));const s=gl(r,e,o)?ro(r):jt(0);let f=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,p=a.width/l.x,h=a.height/l.y;if(r){const c=ct(r),u=o&&Tt(o)?ct(o):o;let _=c,g=_.frameElement;for(;g&&o&&u!==_;){const b=on(g),y=g.getBoundingClientRect(),m=ht(g),w=y.left+(g.clientLeft+parseFloat(m.paddingLeft))*b.x,v=y.top+(g.clientTop+parseFloat(m.paddingTop))*b.y;f*=b.x,d*=b.y,p*=b.x,h*=b.y,f+=w,d+=v,_=ct(g),g=_.frameElement}}return Zn({width:p,height:h,x:f,y:d})}const yl=[":popover-open",":modal"];function io(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?io(n.floating):!1;if(o===l||s&&r)return e;let f={scrollLeft:0,scrollTop:0},d=jt(1);const p=jt(0),h=_t(o);if((h||!h&&!r)&&((Vt(o)!=="body"||yn(l))&&(f=Xn(o)),_t(o))){const c=vn(o);d=on(o),p.x=c.x+o.clientLeft,p.y=c.y+o.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-f.scrollLeft*d.x+p.x,y:e.y*d.y-f.scrollTop*d.y+p.y}}function bl(t){return Array.from(t.getClientRects())}function oo(t){return vn(qt(t)).left+Xn(t).scrollLeft}function _l(t){const n=qt(t),e=Xn(t),o=t.ownerDocument.body,a=gn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),r=gn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+oo(t);const s=-e.scrollTop;return ht(o).direction==="rtl"&&(l+=gn(n.clientWidth,o.clientWidth)-a),{width:a,height:r,x:l,y:s}}function $l(t,n){const e=ct(t),o=qt(t),a=e.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,f=0;if(a){r=a.width,l=a.height;const d=Mr();(!d||d&&n==="fixed")&&(s=a.offsetLeft,f=a.offsetTop)}return{width:r,height:l,x:s,y:f}}function wl(t,n){const e=vn(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,f=a*r.x,d=o*r.y;return{width:l,height:s,x:f,y:d}}function ao(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=ro(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Zn(o)}function lo(t,n){const e=rn(t);return e===n||!Tt(e)||Jn(e)?!1:ht(e).position==="fixed"||lo(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)&&!Jn(l);){const s=ht(l),f=Ir(l);!f&&s.position==="fixed"&&(a=null),(r?!f&&!a:!f&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||yn(l)&&!f&&lo(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],f=l.reduce((d,p)=>{const h=ao(n,p,a);return d.top=gn(h.top,d.top),d.right=Ui(h.right,d.right),d.bottom=Ui(h.bottom,d.bottom),d.left=gn(h.left,d.left),d},ao(n,s,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ol(t){const{width:n,height:e}=to(t);return{width:n,height:e}}function El(t,n,e){const o=_t(n),a=qt(n),r=e==="fixed",l=vn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const f=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||yn(a))&&(s=Xn(n)),o){const h=vn(n,!0,r,n);f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}else a&&(f.x=oo(a));const d=l.left+s.scrollLeft-f.x,p=l.top+s.scrollTop-f.y;return{x:d,y:p,width:l.width,height:l.height}}function so(t,n){return!_t(t)||ht(t).position==="fixed"?null:n?n(t):t.offsetParent}function co(t,n){const e=ct(t);if(!_t(t)||io(t))return e;let o=so(t,n);for(;o&&hl(o)&&ht(o).position==="static";)o=so(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&ht(o).position==="static"&&!Ir(o))?e:o||pl(t)||e}const Sl=async function(t){const n=this.getOffsetParent||co,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:co,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 cl(t,n,{...a,platform:r})},P0="",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 Pl(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 uo=_e(Dl,[["render",Pl],["__scopeId","data-v-9313d095"]]),I0="",Il={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:uo}},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(Il,[["render",Bl],["__scopeId","data-v-6fb94ac5"]]),fo={[Ut.primary]:Ut.primary,[Ut.tertiary]:Ut.tertiary,[Ut.ghost]:Ut.ghost,white:"white"},ho={xs:"xs",s:"s",m:"m"},M0="",Ll={name:"IbIconButton",props:{kind:{type:String,default:fo.primary,validator:t=>Object.keys(fo).includes(t)},size:{type:String,default:ho.s,validator:t=>Object.keys(ho).includes(t)},rounded:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},href:{type:String,default:""},helpText:{type:String,default:""},disabledFocus:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!1}},data(){return{tooltipVisible:!1}},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:Fi,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,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","kind","disabled","prevent-default"])}const dt=_e(Ll,[["render",Rl]]),Qn={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},B0="",jl={name:"IbAlert",props:{type:{type:String,default:Qn.alert,validator:t=>Object.keys(Qn).includes(t)},showIcon:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!1},title:{type:String,default:""}},mounted(){this.checkHeight(),this.$refs.content&&(this.contentObserver=new ResizeObserver(()=>{this.checkHeight()}),this.contentObserver.observe(this.$refs.content)),window.addEventListener("resize",()=>this.checkHeight())},data(){return{contentObserver:null}},methods:{close(){this.$emit("close")},checkHeight(){var e;if(!this.$refs.content)return;const t=getComputedStyle(this.$refs.content),n=(e=this.$refs.content)==null?void 0:e.parentElement.offsetWidth;!n||!t||(parseInt(t.width)<=n&&this.$refs.content.classList.remove("large"),parseInt(t.height)>37&&this.showIcon&&(this.title.length?this.$refs.content.classList.add("large"):this.$refs.content.classList.add("medium")))}},computed:{classes(){const t=["ib-alert"];return t.push(`ib-alert-${this.type}`),this.title.length&&t.push("has-title"),this.showIcon&&t.push("has-icon"),this.showCloseButton&&t.push("has-close-button"),this.$slots.link&&t.push("has-link"),t},iconName(){return this.type===Qn.info?"information-circle-outline":this.type===Qn.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:dt}},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 f;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),(f=e.title)!=null&&f.length?(i.openBlock(),i.createElementBlock("b",Fl,i.toDisplayString(e.title),1)):i.createCommentVNode("",!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-dec06c47"]]),Kl={M:"m",L:"l",XL:"xl"},Gl={SQUARE:"square",CIRCLE:"circle"},L0="",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"]]),R0="",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"]]),j0="",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"},V0="",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"},q0="",F0="",cs={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:dt,IbIcon:Be}},ds={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",ds,[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 po=_e(cs,[["render",hs],["__scopeId","data-v-9e7c679e"]]),Lr=27,mo=32,ps=13,go=9,ms=38,gs=37,ys=39,yo=40,vs="click",{performance:er}=window,bs=typeof(er==null?void 0:er.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>er.now():()=>Date.now(),bn=new Map;let _n=!1;const vo=t=>{bn.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",vo,{capture:!0}),_n=!0)},$s=()=>{_n&&(document.removeEventListener("click",vo),_n=!1)},tr={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!`);bn.has(t)||(_n||_s(),bn.set(t,{bindTimeStamp:bs(),callback:n}))},beforeUnmount:t=>{bn.delete(t),bn.size===0&&$s()}},$n={left:"left",right:"right",center:"center"},nr={top:"top",bottom:"bottom"},U0="",K0="",ws={name:"IbDropdown",directives:{Outside:tr},props:{vertical:{type:String,default:nr.bottom},horizontal:{type:String,default:$n.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===mo)&&(t.preventDefault(),this.toggle()),t.keyCode===yo&&(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===nr.bottom?" dropdown-bottom":" dropdown-top",n=this.horizontal===$n.left?" dropdown-left":this.horizontal===$n.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 rr=_e(ws,[["render",Os],["__scopeId","data-v-dfb4a39a"]]),G0="",Es={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===yo){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.querySelector(`.${this.rootClass}`);let f=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(f){f.focus();return}const d=(o=(e=l.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];d&&d.nodeName!=="#text"&&d.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 f=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(f&&window.getComputedStyle(f).display!=="none"){const d=Array.from(f.childNodes).filter(p=>p.nodeName!=="#text");(r=d[d.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]]),W0="",xs={props:{vertical:{type:String,default:nr.bottom},horizontal:{type:String,default:$n.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:rr,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:f})=>[i.createVNode(l,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:f})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:f})=>[i.renderSlot(t.$slots,"trigger",{isOpened:f})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const ir=_e(xs,[["render",Ns]]),Y0="",As={props:{checked:{type:Boolean,default:!1},href:{type:String}},computed:{attrs(){const t={class:"ib-dropdown-item"};return this.href&&(t.href=this.href),t}}},Ds={class:"dropdown-item-wrapper"},Ps={class:"dropdown-item-icon"};function Is(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",Ds,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href?"a":"div"),i.mergeProps({class:e.checked?"active":""},r.attrs,{tabindex:"0"}),{default:i.withCtx(()=>[i.createElementVNode("p",null,[i.createElementVNode("div",Ps,[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",Is],["__scopeId","data-v-11b4be9b"]]),Ms={common:"common",danger:"danger"},Z0="",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.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:Be,IbDropdownList:ir},methods:{setActiveItem(){this.mainButtonAttrs=this.$slots.default()[this.activeElemIdx].props,this.mainButtonAttrs&&"href"in this.mainButtonAttrs?this.isLink=!0:this.isLink=!1,this.childList[this.activeElemIdx].classList.add("active"),this.content=this.childList[this.activeElemIdx].textContent},onClickLink(t){if(this.disabled){t.preventDefault();return}}},computed:{classes(){const t=["split-button"];return t.push(`split-button-${this.kind}`),t}},watch:{activeElemIdx(){this.setActiveItem()}}},Ls=["disabled"],Rs=["disabled"],js=["disabled"],Vs={ref:"list"};function qs(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.classes)},[a.isLink?(i.openBlock(),i.createElementBlock("a",i.mergeProps({key:1,class:["split-button-main",{disabled:e.disabled}],disabled:e.disabled},a.mainButtonAttrs,{onClick:n[0]||(n[0]=(...f)=>r.onClickLink&&r.onClickLink(...f))}),i.toDisplayString(a.content),17,Rs)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Ls)),i.createVNode(s,{disabled:e.disabled,closeOnClick:!0},{trigger:i.withCtx(()=>[i.createElementVNode("button",{disabled:e.disabled,class:"split-button-menu-trigger"},[i.createVNode(l,{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]]),J0="",Hs={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function zs(t,n,e,o,a,r){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.href.length?"a":"button"),i.mergeProps(r.attrs,{class:"ib-dropdown-item"}),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16)}const Us=_e(Hs,[["render",zs],["__scopeId","data-v-4cf00feb"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},X0="",Ks={name:"IbModal",directives:{Outside:tr},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===go&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===go&&!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;this.isActive=!1,(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var n,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:dt,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"),f=i.resolveDirective("outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[r.hasTrigger?(i.openBlock(),i.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...d)=>r.onTriggerBlur&&r.onTriggerBlur(...d)),onClick:n[1]||(n[1]=(...d)=>r.open&&r.open(...d))},[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)),[[f,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const Zs=_e(Ks,[["render",Ys],["__scopeId","data-v-f6c2d863"]]);function bo(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const Q0="",Js={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return bo(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:ir,IbDropdownItem:jr,IbIcon:Be}},Xs={class:"wrapper-tab-link dropdown-tab"},Qs=["tabindex"];function ec(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),f=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",Xs,[i.createVNode(f,{disabled:a.isDisabledDropdown,"close-on-click":!0},{trigger:i.withCtx(()=>[i.createElementVNode("span",{class:i.normalizeClass(["tab-link",{active:a.selectedTabByDropdown===e.selectedTab||r.isActive,disabled:a.isDisabledDropdown}]),tabindex:a.isDisabledDropdown?-1:0},[i.createTextVNode(i.toDisplayString(e.tabs.name)+" ",1),i.createVNode(l,{name:"chevron-down"})],10,Qs)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(d,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:d.id===e.selectedTab,href:r.createHref(d.id),tabindex:d.disabled?-1:0,class:i.normalizeClass([{disabled:d.disabled},"dropdown-tab-item"]),target:"_self",onClick:h=>r.selectTab(d.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(d.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const _o=_e(Js,[["render",ec]]),ep="",tc={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 bo(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:_o},emits:["changeTab"]},nc={class:"tabs"},rc={class:"tabs-list"},ic={key:0,class:"wrapper-tab-link"},oc=["href","tabindex","onClick"],ac={class:"tabs-content",ref:"tabHandler"};function lc(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",nc,[i.createElementVNode("ul",rc,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,f)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:f},[s.name?(i.openBlock(),i.createBlock(l,{key:1,"selected-tab":a.selectedTab,tabs:s,onSelectTab:r.selectTab},null,8,["selected-tab","tabs","onSelectTab"])):(i.openBlock(),i.createElementBlock("div",ic,[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:d=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,oc)]))]))),128))]),i.createElementVNode("div",ac,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const sc=_e(tc,[["render",lc],["__scopeId","data-v-47d103be"]]),cc={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 dc(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 uc=_e(cc,[["render",dc]]),fc={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},hc={TYPE_ASC:"asc",TYPE_DESC:"desc"},$o={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 wo{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;
|