@avakhula/ui 0.0.339 → 0.0.340
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 +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Tooltip/Tooltip.vue +1 -1
package/dist/index.js
CHANGED
|
@@ -1028,7 +1028,7 @@ function is(t, n, e, r, o, i) {
|
|
|
1028
1028
|
_: 1
|
|
1029
1029
|
}, 8, ["position", "always-visible", "class"]);
|
|
1030
1030
|
}
|
|
1031
|
-
const li = /* @__PURE__ */ Ae(ts, [["render", is], ["__scopeId", "data-v-
|
|
1031
|
+
const li = /* @__PURE__ */ Ae(ts, [["render", is], ["__scopeId", "data-v-6fb94ac5"]]), vo = {
|
|
1032
1032
|
[gn.primary]: gn.primary,
|
|
1033
1033
|
[gn.tertiary]: gn.tertiary,
|
|
1034
1034
|
[gn.ghost]: gn.ghost,
|
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 h0="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},Ia={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)}},Pa=["name"];function Ma(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,Pa)}const Le=_e(Ia,[["render",Ma]]);function mt(){return"_"+Math.random().toString(36).substr(2,9)}const Ri={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})}}},p0="",Ba={name:"IbAccordion",mixins:[Ri],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:mt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Le}},La=["id","aria-controls","aria-expanded"],Ra=["id","aria-labelledby"],ja={class:"accordion-content-wrapper"};function Va(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,La),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",ja,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Ra),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Fa=_e(Ba,[["render",Va],["__scopeId","data-v-8ece19c1"]]),Ut={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Ar(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const m0="",qa={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=Ar({...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},Ha=["method","action"],za=["value"],Ua=["value"],Ka=["name","value"];function Ga(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,za),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,Ua),(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,Ka))),128))],8,Ha)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const ji=_e(qa,[["render",Ga]]),Wa=["top","right","bottom","left"],Vi=["start","end"],Fi=Wa.reduce((t,n)=>t.concat(n,n+"-"+Vi[0],n+"-"+Vi[1]),[]),qi=Math.min,gn=Math.max,Un=Math.round,jt=t=>({x:t,y:t}),Ya={left:"right",right:"left",bottom:"top",top:"bottom"},Za={start:"end",end:"start"};function Hi(t,n){return typeof t=="function"?t(n):t}function Kn(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function Ja(t){return t==="x"?"y":"x"}function zi(t){return t==="y"?"height":"width"}function Ui(t){return["top","bottom"].includes(Kn(t))?"y":"x"}function Ki(t){return Ja(Ui(t))}function Xa(t,n,e){e===void 0&&(e=!1);const o=Kt(t),a=Ki(t),r=zi(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(l=Gi(l)),[l,Gi(l)]}function Qa(t){return t.replace(/start|end/g,n=>Za[n])}function Gi(t){return t.replace(/left|right|bottom|top/g,n=>Ya[n])}function el(t){return{top:0,right:0,bottom:0,left:0,...t}}function tl(t){return typeof t!="number"?el(t):{top:t,right:t,bottom:t,left:t}}function Gn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Wi(t,n,e){let{reference:o,floating:a}=t;const r=Ui(n),l=Ki(n),s=zi(l),c=Kn(n),h=r==="y",p=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,d=o[s]/2-a[s]/2;let u;switch(c){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:f};break;case"left":u={x:o.x-a.width,y:f};break;default:u={x:o.x,y:o.y}}switch(Kt(n)){case"start":u[l]-=d*(e&&h?-1:1);break;case"end":u[l]+=d*(e&&h?-1:1);break}return u}const nl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(n));let h=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=Wi(h,o,c),d=o,u={},_=0;for(let v=0;v<s.length;v++){const{name:b,fn:g}=s[v],{x:y,y:w,data:m,reset:k}=await g({x:p,y:f,initialPlacement:o,placement:d,strategy:a,middlewareData:u,rects:h,platform:l,elements:{reference:t,floating:n}});if(p=y??p,f=w??f,u={...u,[b]:{...u[b],...m}},k&&_<=50){_++,typeof k=="object"&&(k.placement&&(d=k.placement),k.rects&&(h=k.rects===!0?await l.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:f}=Wi(h,d,c)),v=-1;continue}}return{x:p,y:f,placement:d,strategy:a,middlewareData:u}};async function rl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:u=0}=Hi(n,t),_=tl(u),b=s[d?f==="floating"?"reference":"floating":f],g=Gn(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:h,rootBoundary:p,strategy:c})),y=f==="floating"?{...l.floating,x:o,y:a}:l.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),m=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=Gn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:w,strategy:c}):y);return{top:(g.top-k.top+_.top)/m.y,bottom:(k.bottom-g.bottom+_.bottom)/m.y,left:(g.left-k.left+_.left)/m.x,right:(k.right-g.right+_.right)/m.x}}function il(t,n,e){return(t?[...e.filter(a=>Kt(a)===t),...e.filter(a=>Kt(a)!==t)]:e.filter(a=>Kn(a)===a)).filter(a=>t?Kt(a)===t||(n?Qa(a)!==a:!1):!0)}const ol=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:c,elements:h}=n,{crossAxis:p=!1,alignment:f,allowedPlacements:d=Fi,autoAlignment:u=!0,..._}=Hi(t,n),v=f!==void 0||d===Fi?il(f||null,u,d):d,b=await rl(n,_),g=((e=l.autoPlacement)==null?void 0:e.index)||0,y=v[g];if(y==null)return{};const w=Xa(y,r,await(c.isRTL==null?void 0:c.isRTL(h.floating)));if(s!==y)return{reset:{placement:v[0]}};const m=[b[Kn(y)],b[w[0]],b[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:y,overflows:m}],T=v[g+1];if(T)return{data:{index:g+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]),P=((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 P!==s?{data:{index:g+1,overflows:k},reset:{placement:P}}:{}}}};function Vt(t){return Yi(t)?(t.nodeName||"").toLowerCase():"#document"}function dt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Ft(t){var n;return(n=(Yi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Yi(t){return t instanceof Node||t instanceof dt(t).Node}function Tt(t){return t instanceof Element||t instanceof dt(t).Element}function bt(t){return t instanceof HTMLElement||t instanceof dt(t).HTMLElement}function Zi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dt(t).ShadowRoot}function yn(t){const{overflow:n,overflowX:e,overflowY:o,display:a}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(a)}function al(t){return["table","td","th"].includes(Vt(t))}function Dr(t){const n=Ir(),e=ft(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 ll(t){let n=rn(t);for(;bt(n)&&!Wn(n);){if(Dr(n))return n;n=rn(n)}return null}function Ir(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wn(t){return["html","body","#document"].includes(Vt(t))}function ft(t){return dt(t).getComputedStyle(t)}function Yn(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||Zi(t)&&t.host||Ft(t);return Zi(n)?n.host:n}function Ji(t){const n=rn(t);return Wn(n)?t.ownerDocument?t.ownerDocument.body:t.body:bt(n)&&yn(n)?n:Ji(n)}function Pr(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=Ji(t),r=a===((o=t.ownerDocument)==null?void 0:o.body),l=dt(a);return r?n.concat(l,l.visualViewport||[],yn(a)?a:[],l.frameElement&&e?Pr(l.frameElement):[]):n.concat(a,Pr(a,[],e))}function Xi(t){const n=ft(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=bt(t),r=a?t.offsetWidth:e,l=a?t.offsetHeight:o,s=Un(e)!==r||Un(o)!==l;return s&&(e=r,o=l),{width:e,height:o,$:s}}function Qi(t){return Tt(t)?t:t.contextElement}function on(t){const n=Qi(t);if(!bt(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:r}=Xi(n);let l=(r?Un(e.width):e.width)/o,s=(r?Un(e.height):e.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const sl=jt(0);function eo(t){const n=dt(t);return!Ir()||!n.visualViewport?sl:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function dl(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==dt(t)?!1:n}function vn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),r=Qi(t);let l=jt(1);n&&(o?Tt(o)&&(l=on(o)):l=on(t));const s=dl(r,e,o)?eo(r):jt(0);let c=(a.left+s.x)/l.x,h=(a.top+s.y)/l.y,p=a.width/l.x,f=a.height/l.y;if(r){const d=dt(r),u=o&&Tt(o)?dt(o):o;let _=d.frameElement;for(;_&&o&&u!==d;){const v=on(_),b=_.getBoundingClientRect(),g=ft(_),y=b.left+(_.clientLeft+parseFloat(g.paddingLeft))*v.x,w=b.top+(_.clientTop+parseFloat(g.paddingTop))*v.y;c*=v.x,h*=v.y,p*=v.x,f*=v.y,c+=y,h+=w,_=dt(_).frameElement}}return Gn({width:p,height:f,x:c,y:h})}function cl(t){let{rect:n,offsetParent:e,strategy:o}=t;const a=bt(e),r=Ft(e);if(e===r)return n;let l={scrollLeft:0,scrollTop:0},s=jt(1);const c=jt(0);if((a||!a&&o!=="fixed")&&((Vt(e)!=="body"||yn(r))&&(l=Yn(e)),bt(e))){const h=vn(e);s=on(e),c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-l.scrollLeft*s.x+c.x,y:n.y*s.y-l.scrollTop*s.y+c.y}}function ul(t){return Array.from(t.getClientRects())}function to(t){return vn(Ft(t)).left+Yn(t).scrollLeft}function fl(t){const n=Ft(t),e=Yn(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+to(t);const s=-e.scrollTop;return ft(o).direction==="rtl"&&(l+=gn(n.clientWidth,o.clientWidth)-a),{width:a,height:r,x:l,y:s}}function hl(t,n){const e=dt(t),o=Ft(t),a=e.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,c=0;if(a){r=a.width,l=a.height;const h=Ir();(!h||h&&n==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}return{width:r,height:l,x:s,y:c}}function pl(t,n){const e=vn(t,!0,n==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,r=bt(t)?on(t):jt(1),l=t.clientWidth*r.x,s=t.clientHeight*r.y,c=a*r.x,h=o*r.y;return{width:l,height:s,x:c,y:h}}function no(t,n,e){let o;if(n==="viewport")o=hl(t,e);else if(n==="document")o=fl(Ft(t));else if(Tt(n))o=pl(n,e);else{const a=eo(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Gn(o)}function ro(t,n){const e=rn(t);return e===n||!Tt(e)||Wn(e)?!1:ft(e).position==="fixed"||ro(e,n)}function ml(t,n){const e=n.get(t);if(e)return e;let o=Pr(t,[],!1).filter(s=>Tt(s)&&Vt(s)!=="body"),a=null;const r=ft(t).position==="fixed";let l=r?rn(t):t;for(;Tt(l)&&!Wn(l);){const s=ft(l),c=Dr(l);!c&&s.position==="fixed"&&(a=null),(r?!c&&!a:!c&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||yn(l)&&!c&&ro(t,l))?o=o.filter(p=>p!==l):a=s,l=rn(l)}return n.set(t,o),o}function gl(t){let{element:n,boundary:e,rootBoundary:o,strategy:a}=t;const l=[...e==="clippingAncestors"?ml(n,this._c):[].concat(e),o],s=l[0],c=l.reduce((h,p)=>{const f=no(n,p,a);return h.top=gn(f.top,h.top),h.right=qi(f.right,h.right),h.bottom=qi(f.bottom,h.bottom),h.left=gn(f.left,h.left),h},no(n,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yl(t){return Xi(t)}function vl(t,n,e){const o=bt(n),a=Ft(n),r=e==="fixed",l=vn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const c=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||yn(a))&&(s=Yn(n)),o){const h=vn(n,!0,r,n);c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}else a&&(c.x=to(a));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function io(t,n){return!bt(t)||ft(t).position==="fixed"?null:n?n(t):t.offsetParent}function oo(t,n){const e=dt(t);if(!bt(t))return e;let o=io(t,n);for(;o&&al(o)&&ft(o).position==="static";)o=io(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&ft(o).position==="static"&&!Dr(o))?e:o||ll(t)||e}const bl=async function(t){let{reference:n,floating:e,strategy:o}=t;const a=this.getOffsetParent||oo,r=this.getDimensions;return{reference:vl(n,await a(e),o),floating:{x:0,y:0,...await r(e)}}};function _l(t){return ft(t).direction==="rtl"}const $l={convertOffsetParentRelativeRectToViewportRelativeRect:cl,getDocumentElement:Ft,getClippingRect:gl,getOffsetParent:oo,getElementRects:bl,getClientRects:ul,getDimensions:yl,getScale:on,isElement:Tt,isRTL:_l},wl=(t,n,e)=>{const o=new Map,a={platform:$l,...e},r={...a.platform,_c:o};return nl(t,n,{...a,platform:r})},g0="",kl={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,wl(this.parentNode,this.$refs.popover,{middleware:[ol({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 Cl(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 ao=_e(kl,[["render",Cl],["__scopeId","data-v-9313d095"]]),y0="",Ol={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:ao}},El={key:0};function Sl(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",El,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(Ol,[["render",Sl],["__scopeId","data-v-796ac7bb"]]),lo={[Ut.primary]:Ut.primary,[Ut.tertiary]:Ut.tertiary,[Ut.ghost]:Ut.ghost,white:"white"},so={xs:"xs",s:"s",m:"m"},v0="",xl={name:"IbIconButton",props:{kind:{type:String,default:lo.primary,validator:t=>Object.keys(lo).includes(t)},size:{type:String,default:so.s,validator:t=>Object.keys(so).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:ji,IbTooltip:an},inheritAttrs:!1};function Tl(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 ht=_e(xl,[["render",Tl]]),Zn={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},b0="",Nl={name:"IbAlert",props:{type:{type:String,default:Zn.alert,validator:t=>Object.keys(Zn).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===Zn.info?"information-circle-outline":this.type===Zn.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Le,IbIconButton:ht}},Al={ref:"content",class:"content"},Dl={class:"content-head"},Il={key:1,class:"ib-alert-title"},Pl={class:"text-content"},Ml={class:"link"};function Bl(t,n,e,o,a,r){var c;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",Al,[i.createElementVNode("span",Dl,[e.showIcon?(i.openBlock(),i.createBlock(l,{key:0,class:"ib-alert-icon",name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),(c=e.title)!=null&&c.length?(i.openBlock(),i.createElementBlock("b",Il,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",Pl,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",Ml,[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 qt=_e(Nl,[["render",Bl],["__scopeId","data-v-dec06c47"]]),Ll={M:"m",L:"l"},_0="",Rl={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Ll.M}},computed:{classList(){return["avatar",`avatar-size-${this.size}`]},validateName(){var t,n;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((n=this.lastName)==null?void 0:n.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Le}},jl=["src","alt"];function Vl(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,jl)):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 Fl=_e(Rl,[["render",Vl],["__scopeId","data-v-8ba12d0f"]]),$0="",ql={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 Hl(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const zl=_e(ql,[["render",Hl],["__scopeId","data-v-328df75a"]]),w0="",Ul={name:"IbButtonGroup"},Kl={class:"ib-button-group"};function Gl(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Kl,[i.renderSlot(t.$slots,"default")])}const Wl=_e(Ul,[["render",Gl]]),ln={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},k0="",Yl={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:Le}};function Zl(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 Jl=_e(Yl,[["render",Zl],["__scopeId","data-v-3604890c"]]),Xl={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"},C0="",O0="",Ql={name:"IbTooltip",props:{position:{type:String,default:Xl.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:ht,IbIcon:Le}},es={class:"ib-toggle-tip-head"},ts={class:"ib-toggle-tip-content"},ns={class:"ib-toggle-tip-button-set"};function rs(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",es,[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",ts,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",ns,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const co=_e(Ql,[["render",rs],["__scopeId","data-v-9e7c679e"]]),Mr=27,uo=32,is=13,fo=9,os=38,as=37,ls=39,ho=40,ss="click",{performance:Jn}=window,ds=typeof(Jn==null?void 0:Jn.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>Jn.now():()=>Date.now(),bn=new Map;let _n=!1;const po=t=>{bn.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},cs=()=>{_n||(document.addEventListener("click",po,{capture:!0}),_n=!0)},us=()=>{_n&&(document.removeEventListener("click",po),_n=!1)},Xn={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||cs(),bn.set(t,{bindTimeStamp:ds(),callback:n}))},beforeUnmount:t=>{bn.delete(t),bn.size===0&&us()}},$n={left:"left",right:"right",center:"center"},Qn={top:"top",bottom:"bottom"},x0="",T0="",fs={name:"IbDropdown",directives:{Outside:Xn},props:{vertical:{type:String,default:Qn.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:ss},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===is||t.keyCode===uo)&&(t.preventDefault(),this.toggle()),t.keyCode===ho&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===Mr&&(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===Qn.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)}},hs={class:"ib-dropdown"},ps={class:"footer-slot"};function ms(t,n,e,o,a,r){const l=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",hs,[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",ps,[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 er=_e(fs,[["render",ms],["__scopeId","data-v-dfb4a39a"]]),N0="",gs={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===ho){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.querySelector(`.${this.rootClass}`);let c=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(c){c.focus();return}const h=(o=(e=l.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];h&&h.nodeName!=="#text"&&h.focus()}if(t.keyCode===os){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 c=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(c&&window.getComputedStyle(c).display!=="none"){const h=Array.from(c.childNodes).filter(p=>p.nodeName!=="#text");(r=h[h.length-1])==null||r.childNodes[0].focus();return}s.focus()}}}}};function ys(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 Br=_e(gs,[["render",ys]]),A0="",vs={props:{vertical:{type:String,default:Qn.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:er,IbList:Br}},bs={class:"dropdown-list-wrapper"};function _s(t,n,e,o,a,r){const l=i.resolveComponent("ib-list"),s=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",bs,[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:c})=>[i.createVNode(l,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:c})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:c})=>[i.renderSlot(t.$slots,"trigger",{isOpened:c})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const tr=_e(vs,[["render",_s]]),D0="",$s={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}}},ws={class:"dropdown-item-wrapper"},ks={class:"dropdown-item-icon"};function Cs(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",ws,[(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",ks,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),i.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const Lr=_e($s,[["render",Cs],["__scopeId","data-v-11b4be9b"]]),Os={common:"common",danger:"danger"},I0="",Es={name:"IbSplitButton",props:{id:{type:String,default:()=>mt()},kind:{type:String,default:Os.common},disabled:{type:Boolean,default:!1},saveSelected:{type:Boolean,default:!1}},mounted(){var t;if(this.childList=Array.from(this.$refs.list.children),(t=this.childList)==null||t.forEach((n,e)=>{n.addEventListener("click",()=>{this.childList[this.activeElemIdx].classList.remove("active"),this.saveSelected&&(this.activeElemIdx=e,localStorage.setItem(`split-button-${this.id}`,e))})}),this.saveSelected){const n=localStorage.getItem(`split-button-${this.id}`);n&&(this.activeElemIdx=n)}this.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:Le,IbDropdownList:tr},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()}}},Ss=["disabled"],xs=["disabled"],Ts=["disabled"],Ns={ref:"list"};function As(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]=(...c)=>r.onClickLink&&r.onClickLink(...c))}),i.toDisplayString(a.content),17,xs)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Ss)),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,Ts)]),body:i.withCtx(()=>[i.createElementVNode("div",Ns,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const Ds=_e(Es,[["render",As]]),P0="",Is={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function Ps(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 Ms=_e(Is,[["render",Ps],["__scopeId","data-v-4cf00feb"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},M0="",Bs={name:"IbModal",directives:{Outside:Xn},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===fo&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===fo&&!r.shiftKey&&(r.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)},data(){return{isActive:this.active}},methods:{showModal(t){t?this.open():this.close()},onTriggerBlur(){var t,n;(n=(t=this.$refs.modal)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus()},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;this.isActive=!1,(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var n;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").focus()},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===Mr&&!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:ht,IbIcon:Le},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},Ls={key:1,class:"modal-header"},Rs={key:2,class:"modal-footer"};function js(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=i.resolveDirective("outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[r.hasTrigger?(i.openBlock(),i.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...h)=>r.onTriggerBlur&&r.onTriggerBlur(...h)),onClick:n[1]||(n[1]=(...h)=>r.open&&r.open(...h))},[i.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["modal",e.classList]),ref:"modal"},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.bodyClassList),style:i.normalizeStyle(r.bodyStyles)},[e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",Ls,[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",Rs,[i.renderSlot(t.$slots,"footer",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0)],6)),[[c,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const Vs=_e(Bs,[["render",js],["__scopeId","data-v-e1683e53"]]);function mo(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const B0="",Fs={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return mo(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:tr,IbDropdownItem:Lr,IbIcon:Le}},qs={class:"wrapper-tab-link dropdown-tab"},Hs=["tabindex"];function zs(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),c=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",qs,[i.createVNode(c,{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,Hs)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(h,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:h.id===e.selectedTab,href:r.createHref(h.id),tabindex:h.disabled?-1:0,class:i.normalizeClass([{disabled:h.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>r.selectTab(h.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const go=_e(Fs,[["render",zs]]),L0="",Us={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 mo(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:go},emits:["changeTab"]},Ks={class:"tabs"},Gs={class:"tabs-list"},Ws={key:0,class:"wrapper-tab-link"},Ys=["href","tabindex","onClick"],Zs={class:"tabs-content",ref:"tabHandler"};function Js(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Ks,[i.createElementVNode("ul",Gs,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,c)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:c},[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",Ws,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===s.id,disabled:s.disabled}]),href:r.createHref(s.id),tabindex:s.disabled?-1:0,onClick:h=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,Ys)]))]))),128))]),i.createElementVNode("div",Zs,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const Xs=_e(Us,[["render",Js],["__scopeId","data-v-47d103be"]]),Qs={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 ed(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 td=_e(Qs,[["render",ed]]),nd={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},rd={TYPE_ASC:"asc",TYPE_DESC:"desc"},yo={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 vo{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_"+mt()}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 h0="",_e=(t,n)=>{const e=t.__vccOpts||t;for(const[o,a]of n)e[o]=a;return e},Ia={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)}},Pa=["name"];function Ma(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,Pa)}const Le=_e(Ia,[["render",Ma]]);function mt(){return"_"+Math.random().toString(36).substr(2,9)}const Ri={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})}}},p0="",Ba={name:"IbAccordion",mixins:[Ri],props:{isOpen:{type:Boolean,default:!1}},watch:{isOpen(t){this.isActive=t}},data(){return{isActive:this.isOpen,uuid:mt()}},methods:{onClick(){this.isActive=!this.isActive,this.isActive?this.$emit("open",this.isActive):this.$emit("close",this.isActive)}},components:{IbIcon:Le}},La=["id","aria-controls","aria-expanded"],Ra=["id","aria-labelledby"],ja={class:"accordion-content-wrapper"};function Va(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,La),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",ja,[i.renderSlot(t.$slots,"default",{},void 0,!0)])],8,Ra),[[i.vShow,a.isActive]])]),_:3},8,["onEnter","onAfterEnter","onLeave"])],2)}const Fa=_e(Ba,[["render",Va],["__scopeId","data-v-8ece19c1"]]),Ut={primary:"primary",secondary:"secondary",tertiary:"tertiary",ghost:"ghost",danger:"danger",ghostDanger:"ghostDanger"};function Ar(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const m0="",qa={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=Ar({...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},Ha=["method","action"],za=["value"],Ua=["value"],Ka=["name","value"];function Ga(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,za),i.createElementVNode("input",{type:"hidden",name:"_token",value:r.token},null,8,Ua),(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,Ka))),128))],8,Ha)),[[i.vShow,!1]]):i.createCommentVNode("",!0)]),_:3},16,["onMouseenter","onMouseleave"])}const ji=_e(qa,[["render",Ga]]),Wa=["top","right","bottom","left"],Vi=["start","end"],Fi=Wa.reduce((t,n)=>t.concat(n,n+"-"+Vi[0],n+"-"+Vi[1]),[]),qi=Math.min,gn=Math.max,Un=Math.round,jt=t=>({x:t,y:t}),Ya={left:"right",right:"left",bottom:"top",top:"bottom"},Za={start:"end",end:"start"};function Hi(t,n){return typeof t=="function"?t(n):t}function Kn(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function Ja(t){return t==="x"?"y":"x"}function zi(t){return t==="y"?"height":"width"}function Ui(t){return["top","bottom"].includes(Kn(t))?"y":"x"}function Ki(t){return Ja(Ui(t))}function Xa(t,n,e){e===void 0&&(e=!1);const o=Kt(t),a=Ki(t),r=zi(a);let l=a==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(l=Gi(l)),[l,Gi(l)]}function Qa(t){return t.replace(/start|end/g,n=>Za[n])}function Gi(t){return t.replace(/left|right|bottom|top/g,n=>Ya[n])}function el(t){return{top:0,right:0,bottom:0,left:0,...t}}function tl(t){return typeof t!="number"?el(t):{top:t,right:t,bottom:t,left:t}}function Gn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Wi(t,n,e){let{reference:o,floating:a}=t;const r=Ui(n),l=Ki(n),s=zi(l),c=Kn(n),h=r==="y",p=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,d=o[s]/2-a[s]/2;let u;switch(c){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:f};break;case"left":u={x:o.x-a.width,y:f};break;default:u={x:o.x,y:o.y}}switch(Kt(n)){case"start":u[l]-=d*(e&&h?-1:1);break;case"end":u[l]+=d*(e&&h?-1:1);break}return u}const nl=async(t,n,e)=>{const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:l}=e,s=r.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(n));let h=await l.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=Wi(h,o,c),d=o,u={},_=0;for(let v=0;v<s.length;v++){const{name:b,fn:g}=s[v],{x:y,y:w,data:m,reset:k}=await g({x:p,y:f,initialPlacement:o,placement:d,strategy:a,middlewareData:u,rects:h,platform:l,elements:{reference:t,floating:n}});if(p=y??p,f=w??f,u={...u,[b]:{...u[b],...m}},k&&_<=50){_++,typeof k=="object"&&(k.placement&&(d=k.placement),k.rects&&(h=k.rects===!0?await l.getElementRects({reference:t,floating:n,strategy:a}):k.rects),{x:p,y:f}=Wi(h,d,c)),v=-1;continue}}return{x:p,y:f,placement:d,strategy:a,middlewareData:u}};async function rl(t,n){var e;n===void 0&&(n={});const{x:o,y:a,platform:r,rects:l,elements:s,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:u=0}=Hi(n,t),_=tl(u),b=s[d?f==="floating"?"reference":"floating":f],g=Gn(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:h,rootBoundary:p,strategy:c})),y=f==="floating"?{...l.floating,x:o,y:a}:l.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),m=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=Gn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:w,strategy:c}):y);return{top:(g.top-k.top+_.top)/m.y,bottom:(k.bottom-g.bottom+_.bottom)/m.y,left:(g.left-k.left+_.left)/m.x,right:(k.right-g.right+_.right)/m.x}}function il(t,n,e){return(t?[...e.filter(a=>Kt(a)===t),...e.filter(a=>Kt(a)!==t)]:e.filter(a=>Kn(a)===a)).filter(a=>t?Kt(a)===t||(n?Qa(a)!==a:!1):!0)}const ol=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:c,elements:h}=n,{crossAxis:p=!1,alignment:f,allowedPlacements:d=Fi,autoAlignment:u=!0,..._}=Hi(t,n),v=f!==void 0||d===Fi?il(f||null,u,d):d,b=await rl(n,_),g=((e=l.autoPlacement)==null?void 0:e.index)||0,y=v[g];if(y==null)return{};const w=Xa(y,r,await(c.isRTL==null?void 0:c.isRTL(h.floating)));if(s!==y)return{reset:{placement:v[0]}};const m=[b[Kn(y)],b[w[0]],b[w[1]]],k=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:y,overflows:m}],T=v[g+1];if(T)return{data:{index:g+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]),P=((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 P!==s?{data:{index:g+1,overflows:k},reset:{placement:P}}:{}}}};function Vt(t){return Yi(t)?(t.nodeName||"").toLowerCase():"#document"}function dt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Ft(t){var n;return(n=(Yi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Yi(t){return t instanceof Node||t instanceof dt(t).Node}function Tt(t){return t instanceof Element||t instanceof dt(t).Element}function bt(t){return t instanceof HTMLElement||t instanceof dt(t).HTMLElement}function Zi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dt(t).ShadowRoot}function yn(t){const{overflow:n,overflowX:e,overflowY:o,display:a}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(a)}function al(t){return["table","td","th"].includes(Vt(t))}function Dr(t){const n=Ir(),e=ft(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 ll(t){let n=rn(t);for(;bt(n)&&!Wn(n);){if(Dr(n))return n;n=rn(n)}return null}function Ir(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wn(t){return["html","body","#document"].includes(Vt(t))}function ft(t){return dt(t).getComputedStyle(t)}function Yn(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||Zi(t)&&t.host||Ft(t);return Zi(n)?n.host:n}function Ji(t){const n=rn(t);return Wn(n)?t.ownerDocument?t.ownerDocument.body:t.body:bt(n)&&yn(n)?n:Ji(n)}function Pr(t,n,e){var o;n===void 0&&(n=[]),e===void 0&&(e=!0);const a=Ji(t),r=a===((o=t.ownerDocument)==null?void 0:o.body),l=dt(a);return r?n.concat(l,l.visualViewport||[],yn(a)?a:[],l.frameElement&&e?Pr(l.frameElement):[]):n.concat(a,Pr(a,[],e))}function Xi(t){const n=ft(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=bt(t),r=a?t.offsetWidth:e,l=a?t.offsetHeight:o,s=Un(e)!==r||Un(o)!==l;return s&&(e=r,o=l),{width:e,height:o,$:s}}function Qi(t){return Tt(t)?t:t.contextElement}function on(t){const n=Qi(t);if(!bt(n))return jt(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:r}=Xi(n);let l=(r?Un(e.width):e.width)/o,s=(r?Un(e.height):e.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const sl=jt(0);function eo(t){const n=dt(t);return!Ir()||!n.visualViewport?sl:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function dl(t,n,e){return n===void 0&&(n=!1),!e||n&&e!==dt(t)?!1:n}function vn(t,n,e,o){n===void 0&&(n=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),r=Qi(t);let l=jt(1);n&&(o?Tt(o)&&(l=on(o)):l=on(t));const s=dl(r,e,o)?eo(r):jt(0);let c=(a.left+s.x)/l.x,h=(a.top+s.y)/l.y,p=a.width/l.x,f=a.height/l.y;if(r){const d=dt(r),u=o&&Tt(o)?dt(o):o;let _=d.frameElement;for(;_&&o&&u!==d;){const v=on(_),b=_.getBoundingClientRect(),g=ft(_),y=b.left+(_.clientLeft+parseFloat(g.paddingLeft))*v.x,w=b.top+(_.clientTop+parseFloat(g.paddingTop))*v.y;c*=v.x,h*=v.y,p*=v.x,f*=v.y,c+=y,h+=w,_=dt(_).frameElement}}return Gn({width:p,height:f,x:c,y:h})}function cl(t){let{rect:n,offsetParent:e,strategy:o}=t;const a=bt(e),r=Ft(e);if(e===r)return n;let l={scrollLeft:0,scrollTop:0},s=jt(1);const c=jt(0);if((a||!a&&o!=="fixed")&&((Vt(e)!=="body"||yn(r))&&(l=Yn(e)),bt(e))){const h=vn(e);s=on(e),c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-l.scrollLeft*s.x+c.x,y:n.y*s.y-l.scrollTop*s.y+c.y}}function ul(t){return Array.from(t.getClientRects())}function to(t){return vn(Ft(t)).left+Yn(t).scrollLeft}function fl(t){const n=Ft(t),e=Yn(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+to(t);const s=-e.scrollTop;return ft(o).direction==="rtl"&&(l+=gn(n.clientWidth,o.clientWidth)-a),{width:a,height:r,x:l,y:s}}function hl(t,n){const e=dt(t),o=Ft(t),a=e.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,c=0;if(a){r=a.width,l=a.height;const h=Ir();(!h||h&&n==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}return{width:r,height:l,x:s,y:c}}function pl(t,n){const e=vn(t,!0,n==="fixed"),o=e.top+t.clientTop,a=e.left+t.clientLeft,r=bt(t)?on(t):jt(1),l=t.clientWidth*r.x,s=t.clientHeight*r.y,c=a*r.x,h=o*r.y;return{width:l,height:s,x:c,y:h}}function no(t,n,e){let o;if(n==="viewport")o=hl(t,e);else if(n==="document")o=fl(Ft(t));else if(Tt(n))o=pl(n,e);else{const a=eo(t);o={...n,x:n.x-a.x,y:n.y-a.y}}return Gn(o)}function ro(t,n){const e=rn(t);return e===n||!Tt(e)||Wn(e)?!1:ft(e).position==="fixed"||ro(e,n)}function ml(t,n){const e=n.get(t);if(e)return e;let o=Pr(t,[],!1).filter(s=>Tt(s)&&Vt(s)!=="body"),a=null;const r=ft(t).position==="fixed";let l=r?rn(t):t;for(;Tt(l)&&!Wn(l);){const s=ft(l),c=Dr(l);!c&&s.position==="fixed"&&(a=null),(r?!c&&!a:!c&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||yn(l)&&!c&&ro(t,l))?o=o.filter(p=>p!==l):a=s,l=rn(l)}return n.set(t,o),o}function gl(t){let{element:n,boundary:e,rootBoundary:o,strategy:a}=t;const l=[...e==="clippingAncestors"?ml(n,this._c):[].concat(e),o],s=l[0],c=l.reduce((h,p)=>{const f=no(n,p,a);return h.top=gn(f.top,h.top),h.right=qi(f.right,h.right),h.bottom=qi(f.bottom,h.bottom),h.left=gn(f.left,h.left),h},no(n,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yl(t){return Xi(t)}function vl(t,n,e){const o=bt(n),a=Ft(n),r=e==="fixed",l=vn(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const c=jt(0);if(o||!o&&!r)if((Vt(n)!=="body"||yn(a))&&(s=Yn(n)),o){const h=vn(n,!0,r,n);c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}else a&&(c.x=to(a));return{x:l.left+s.scrollLeft-c.x,y:l.top+s.scrollTop-c.y,width:l.width,height:l.height}}function io(t,n){return!bt(t)||ft(t).position==="fixed"?null:n?n(t):t.offsetParent}function oo(t,n){const e=dt(t);if(!bt(t))return e;let o=io(t,n);for(;o&&al(o)&&ft(o).position==="static";)o=io(o,n);return o&&(Vt(o)==="html"||Vt(o)==="body"&&ft(o).position==="static"&&!Dr(o))?e:o||ll(t)||e}const bl=async function(t){let{reference:n,floating:e,strategy:o}=t;const a=this.getOffsetParent||oo,r=this.getDimensions;return{reference:vl(n,await a(e),o),floating:{x:0,y:0,...await r(e)}}};function _l(t){return ft(t).direction==="rtl"}const $l={convertOffsetParentRelativeRectToViewportRelativeRect:cl,getDocumentElement:Ft,getClippingRect:gl,getOffsetParent:oo,getElementRects:bl,getClientRects:ul,getDimensions:yl,getScale:on,isElement:Tt,isRTL:_l},wl=(t,n,e)=>{const o=new Map,a={platform:$l,...e},r={...a.platform,_c:o};return nl(t,n,{...a,platform:r})},g0="",kl={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,wl(this.parentNode,this.$refs.popover,{middleware:[ol({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 Cl(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 ao=_e(kl,[["render",Cl],["__scopeId","data-v-9313d095"]]),y0="",Ol={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:ao}},El={key:0};function Sl(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",El,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(Ol,[["render",Sl],["__scopeId","data-v-6fb94ac5"]]),lo={[Ut.primary]:Ut.primary,[Ut.tertiary]:Ut.tertiary,[Ut.ghost]:Ut.ghost,white:"white"},so={xs:"xs",s:"s",m:"m"},v0="",xl={name:"IbIconButton",props:{kind:{type:String,default:lo.primary,validator:t=>Object.keys(lo).includes(t)},size:{type:String,default:so.s,validator:t=>Object.keys(so).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:ji,IbTooltip:an},inheritAttrs:!1};function Tl(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 ht=_e(xl,[["render",Tl]]),Zn={alert:"alert",error:"error",warning:"warning",info:"info",success:"success"},b0="",Nl={name:"IbAlert",props:{type:{type:String,default:Zn.alert,validator:t=>Object.keys(Zn).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===Zn.info?"information-circle-outline":this.type===Zn.success?"checkmark-circle-outline":"alert-circle-outline"}},beforeUnmount(){var t;(t=this.contentObserver)==null||t.disconnect(),window.removeEventListener("resize",()=>this.checkHeight())},components:{IbIcon:Le,IbIconButton:ht}},Al={ref:"content",class:"content"},Dl={class:"content-head"},Il={key:1,class:"ib-alert-title"},Pl={class:"text-content"},Ml={class:"link"};function Bl(t,n,e,o,a,r){var c;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",Al,[i.createElementVNode("span",Dl,[e.showIcon?(i.openBlock(),i.createBlock(l,{key:0,class:"ib-alert-icon",name:r.iconName},null,8,["name"])):i.createCommentVNode("",!0),(c=e.title)!=null&&c.length?(i.openBlock(),i.createElementBlock("b",Il,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",Pl,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",Ml,[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 qt=_e(Nl,[["render",Bl],["__scopeId","data-v-dec06c47"]]),Ll={M:"m",L:"l"},_0="",Rl={name:"IbAvatar",props:{firstName:{type:String,default:""},lastName:{type:String,default:""},src:{type:String,default:""},userAvatar:{type:Boolean,default:!1},size:{type:String,default:Ll.M}},computed:{classList(){return["avatar",`avatar-size-${this.size}`]},validateName(){var t,n;return((t=this.firstName)==null?void 0:t.trim().length)!==0&&((n=this.lastName)==null?void 0:n.trim().length)!==0},initials(){return this.firstName[0].toUpperCase()+this.lastName[0].toUpperCase()}},components:{IbIcon:Le}},jl=["src","alt"];function Vl(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,jl)):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 Fl=_e(Rl,[["render",Vl],["__scopeId","data-v-8ba12d0f"]]),$0="",ql={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 Hl(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(r.classes)},i.toDisplayString(r.normalizeContent),3)}const zl=_e(ql,[["render",Hl],["__scopeId","data-v-328df75a"]]),w0="",Ul={name:"IbButtonGroup"},Kl={class:"ib-button-group"};function Gl(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("div",Kl,[i.renderSlot(t.$slots,"default")])}const Wl=_e(Ul,[["render",Gl]]),ln={success:"success",neutral:"neutral",info:"info",error:"error",new:"new",favorite:"favorite",pending:"pending"},k0="",Yl={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:Le}};function Zl(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 Jl=_e(Yl,[["render",Zl],["__scopeId","data-v-3604890c"]]),Xl={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"},C0="",O0="",Ql={name:"IbTooltip",props:{position:{type:String,default:Xl.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:ht,IbIcon:Le}},es={class:"ib-toggle-tip-head"},ts={class:"ib-toggle-tip-content"},ns={class:"ib-toggle-tip-button-set"};function rs(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",es,[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",ts,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",ns,[i.renderSlot(t.$slots,"buttons",{},void 0,!0)])],2),[[i.vShow,a.isOpenedState]])]),_:3})}const co=_e(Ql,[["render",rs],["__scopeId","data-v-9e7c679e"]]),Mr=27,uo=32,is=13,fo=9,os=38,as=37,ls=39,ho=40,ss="click",{performance:Jn}=window,ds=typeof(Jn==null?void 0:Jn.now)=="function"&&Date.now()>document.createEvent("Event").timeStamp?()=>Jn.now():()=>Date.now(),bn=new Map;let _n=!1;const po=t=>{bn.forEach(({bindTimeStamp:n,callback:e},o)=>{if(!(o.contains(t.target)||t.timeStamp<=n))try{e(t)}catch(a){console.error(a)}})},cs=()=>{_n||(document.addEventListener("click",po,{capture:!0}),_n=!0)},us=()=>{_n&&(document.removeEventListener("click",po),_n=!1)},Xn={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||cs(),bn.set(t,{bindTimeStamp:ds(),callback:n}))},beforeUnmount:t=>{bn.delete(t),bn.size===0&&us()}},$n={left:"left",right:"right",center:"center"},Qn={top:"top",bottom:"bottom"},x0="",T0="",fs={name:"IbDropdown",directives:{Outside:Xn},props:{vertical:{type:String,default:Qn.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:ss},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===is||t.keyCode===uo)&&(t.preventDefault(),this.toggle()),t.keyCode===ho&&(t.preventDefault(),this.open())},onKeyupDocument(t){t.keyCode===Mr&&(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===Qn.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)}},hs={class:"ib-dropdown"},ps={class:"footer-slot"};function ms(t,n,e,o,a,r){const l=i.resolveDirective("outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",hs,[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",ps,[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 er=_e(fs,[["render",ms],["__scopeId","data-v-dfb4a39a"]]),N0="",gs={name:"IbList",data(){return{rootClass:"ib-list"}},methods:{onKeydown(t){var n,e,o,a,r;if(t.keyCode===ho){if(this.$el.parentNode.closest(`.${this.rootClass}`))return;t.preventDefault();const l=document.activeElement,s=l.querySelector(`.${this.rootClass}`);let c=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(c){c.focus();return}const h=(o=(e=l.closest(`.${this.rootClass}`).parentNode)==null?void 0:e.parentNode)==null?void 0:o.nextElementSibling.childNodes[0];h&&h.nodeName!=="#text"&&h.focus()}if(t.keyCode===os){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 c=s==null?void 0:s.querySelector(`.${this.rootClass}`);if(c&&window.getComputedStyle(c).display!=="none"){const h=Array.from(c.childNodes).filter(p=>p.nodeName!=="#text");(r=h[h.length-1])==null||r.childNodes[0].focus();return}s.focus()}}}}};function ys(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 Br=_e(gs,[["render",ys]]),A0="",vs={props:{vertical:{type:String,default:Qn.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:er,IbList:Br}},bs={class:"dropdown-list-wrapper"};function _s(t,n,e,o,a,r){const l=i.resolveComponent("ib-list"),s=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",bs,[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:c})=>[i.createVNode(l,{ref:"list",class:"list"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"body",{isOpenedState:c})]),_:2},1536)]),_:2},[r.hasTrigger?{name:"trigger",fn:i.withCtx(({isOpened:c})=>[i.renderSlot(t.$slots,"trigger",{isOpened:c})]),key:"0"}:void 0]),1040,["horizontal","vertical","isOpened","closeOnClick","disabled","onAll"])])}const tr=_e(vs,[["render",_s]]),D0="",$s={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}}},ws={class:"dropdown-item-wrapper"},ks={class:"dropdown-item-icon"};function Cs(t,n,e,o,a,r){return i.openBlock(),i.createElementBlock("li",ws,[(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",ks,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),i.renderSlot(t.$slots,"default",{ref:"slot"},void 0,!0)])]),_:3},16,["class"]))])}const Lr=_e($s,[["render",Cs],["__scopeId","data-v-11b4be9b"]]),Os={common:"common",danger:"danger"},I0="",Es={name:"IbSplitButton",props:{id:{type:String,default:()=>mt()},kind:{type:String,default:Os.common},disabled:{type:Boolean,default:!1},saveSelected:{type:Boolean,default:!1}},mounted(){var t;if(this.childList=Array.from(this.$refs.list.children),(t=this.childList)==null||t.forEach((n,e)=>{n.addEventListener("click",()=>{this.childList[this.activeElemIdx].classList.remove("active"),this.saveSelected&&(this.activeElemIdx=e,localStorage.setItem(`split-button-${this.id}`,e))})}),this.saveSelected){const n=localStorage.getItem(`split-button-${this.id}`);n&&(this.activeElemIdx=n)}this.setActiveItem()},data(){return{activeElemIdx:0,content:"",mainButtonAttrs:{},isLink:!1,childList:[]}},components:{IbIcon:Le,IbDropdownList:tr},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()}}},Ss=["disabled"],xs=["disabled"],Ts=["disabled"],Ns={ref:"list"};function As(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]=(...c)=>r.onClickLink&&r.onClickLink(...c))}),i.toDisplayString(a.content),17,xs)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Ss)),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,Ts)]),body:i.withCtx(()=>[i.createElementVNode("div",Ns,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const Ds=_e(Es,[["render",As]]),P0="",Is={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function Ps(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 Ms=_e(Is,[["render",Ps],["__scopeId","data-v-4cf00feb"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},M0="",Bs={name:"IbModal",directives:{Outside:Xn},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===fo&&r.shiftKey&&(r.preventDefault(),t[t.length-1].focus())}),(a=t[t.length-1])==null||a.addEventListener("keydown",r=>{r.keyCode===fo&&!r.shiftKey&&(r.preventDefault(),t[0].focus())}),document.addEventListener("keydown",this.onKeydown),document.addEventListener("blur",this.setFocusOnModal,!0)},data(){return{isActive:this.active}},methods:{showModal(t){t?this.open():this.close()},onTriggerBlur(){var t,n;(n=(t=this.$refs.modal)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus()},open(){this.isActive=!0,document.body.classList.add("modal-open"),this.$emit("open")},close(){var t,n;this.isActive=!1,(n=(t=this.$refs.trigger)==null?void 0:t.querySelector("a, button, [tabindex]"))==null||n.focus(),document.body.classList.remove("modal-open"),this.$emit("close")},setFocusOnModal(t){var n;!((n=this.$refs.modal)!=null&&n.contains(t.target))&&this.isActive&&this.$refs.modal.querySelector("[tabindex], a, button, input, select, textarea").focus()},clickOutside(t){var n;this.stopPropagation||!((n=this.$refs.trigger)!=null&&n.contains(t.target))&&this.isActive&&this.close()},onKeydown(t){t.keyCode===Mr&&!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:ht,IbIcon:Le},beforeUnmount(){this.isActive&&this.close(),document.removeEventListener("keydown",this.onKeydown),document.removeEventListener("blur",this.setFocusOnModal,!0)}},Ls={key:1,class:"modal-header"},Rs={key:2,class:"modal-footer"};function js(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=i.resolveDirective("outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[r.hasTrigger?(i.openBlock(),i.createElementBlock("div",{key:0,class:"modal-trigger",ref:"trigger",onBlurCapture:n[0]||(n[0]=(...h)=>r.onTriggerBlur&&r.onTriggerBlur(...h)),onClick:n[1]||(n[1]=(...h)=>r.open&&r.open(...h))},[i.renderSlot(t.$slots,"trigger",{},void 0,!0)],544)):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["modal",e.classList]),ref:"modal"},[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(r.bodyClassList),style:i.normalizeStyle(r.bodyStyles)},[e.showCloseButton?(i.openBlock(),i.createBlock(s,{key:0,class:"modal-close-icon",kind:"ghost",onClick:r.close},{default:i.withCtx(()=>[i.createVNode(l,{name:"close-outline"})]),_:1},8,["onClick"])):i.createCommentVNode("",!0),r.hasHeader?(i.openBlock(),i.createElementBlock("p",Ls,[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",Rs,[i.renderSlot(t.$slots,"footer",{showModal:r.showModal},void 0,!0)])):i.createCommentVNode("",!0)],6)),[[c,r.clickOutside]])],2),[[i.vShow,a.isActive]])]))],64)}const Vs=_e(Bs,[["render",js],["__scopeId","data-v-e1683e53"]]);function mo(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const B0="",Fs={name:"IbTabDropdown",props:{tabs:{rype:Object,default:{}},selectedTab:{type:String,default:""}},data(){return{selectedTabByDropdown:"",isDisabledDropdown:this.setDisabledTab()}},methods:{createHref(t){return mo(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:tr,IbDropdownItem:Lr,IbIcon:Le}},qs={class:"wrapper-tab-link dropdown-tab"},Hs=["tabindex"];function zs(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-dropdown-item"),c=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("div",qs,[i.createVNode(c,{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,Hs)]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tabs.tabs,(h,p)=>(i.openBlock(),i.createBlock(s,{key:p,checked:h.id===e.selectedTab,href:r.createHref(h.id),tabindex:h.disabled?-1:0,class:i.normalizeClass([{disabled:h.disabled},"dropdown-tab-item"]),target:"_self",onClick:f=>r.selectTab(h.id)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.title),1)]),_:2},1032,["checked","href","tabindex","class","onClick"]))),128))]),_:1},8,["disabled"])])}const go=_e(Fs,[["render",zs]]),L0="",Us={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 mo(t)},selectTab(t){this.$emit("changeTab",t),this.selectedTab=t}},components:{IbTabDropdown:go},emits:["changeTab"]},Ks={class:"tabs"},Gs={class:"tabs-list"},Ws={key:0,class:"wrapper-tab-link"},Ys=["href","tabindex","onClick"],Zs={class:"tabs-content",ref:"tabHandler"};function Js(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Ks,[i.createElementVNode("ul",Gs,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tabs,(s,c)=>(i.openBlock(),i.createElementBlock("li",{class:"tab-item",key:c},[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",Ws,[i.createElementVNode("a",{class:i.normalizeClass(["tab-link",{active:a.selectedTab===s.id,disabled:s.disabled}]),href:r.createHref(s.id),tabindex:s.disabled?-1:0,onClick:h=>r.selectTab(s.id),target:"_self"},i.toDisplayString(s.title),11,Ys)]))]))),128))]),i.createElementVNode("div",Zs,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const Xs=_e(Us,[["render",Js],["__scopeId","data-v-47d103be"]]),Qs={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 ed(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 td=_e(Qs,[["render",ed]]),nd={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},rd={TYPE_ASC:"asc",TYPE_DESC:"desc"},yo={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 vo{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_"+mt()}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;
|