@avakhula/ui 0.0.505-alpha.4 → 0.0.505-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -936,7 +936,8 @@ const Xl = {
|
|
|
936
936
|
},
|
|
937
937
|
mounted() {
|
|
938
938
|
this.$nextTick(() => {
|
|
939
|
-
|
|
939
|
+
var t, n, e, r;
|
|
940
|
+
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), (r = this.parentNode) == null || r.addEventListener("mouseleave", this.hidePopover));
|
|
940
941
|
});
|
|
941
942
|
},
|
|
942
943
|
methods: {
|
|
@@ -987,7 +988,7 @@ function Ql(t, n, e, r, o, i) {
|
|
|
987
988
|
_: 3
|
|
988
989
|
});
|
|
989
990
|
}
|
|
990
|
-
const es = /* @__PURE__ */ Ae(Xl, [["render", Ql], ["__scopeId", "data-v-
|
|
991
|
+
const es = /* @__PURE__ */ Ae(Xl, [["render", Ql], ["__scopeId", "data-v-9313d095"]]);
|
|
991
992
|
const ts = {
|
|
992
993
|
name: "IbTooltip",
|
|
993
994
|
props: {
|
|
@@ -2875,7 +2876,7 @@ function zu(t, n, e, r, o, i) {
|
|
|
2875
2876
|
})) : he("", !0)
|
|
2876
2877
|
], 10, Vu);
|
|
2877
2878
|
}
|
|
2878
|
-
const Hi = /* @__PURE__ */ Ae(Hu, [["render", zu], ["__scopeId", "data-v-
|
|
2879
|
+
const Hi = /* @__PURE__ */ Ae(Hu, [["render", zu], ["__scopeId", "data-v-606c2172"]]), yr = {
|
|
2879
2880
|
text: "text",
|
|
2880
2881
|
password: "password",
|
|
2881
2882
|
email: "email",
|
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 f0="",_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})}}},h0="",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 Nr(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const p0="",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=Nr({...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 Ar(t){const n=Dr(),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=on(t);for(;bt(n)&&!Wn(n);){if(Ar(n))return n;n=on(n)}return null}function Dr(){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 on(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=on(t);return Wn(n)?t.ownerDocument?t.ownerDocument.body:t.body:bt(n)&&yn(n)?n:Ji(n)}function Ir(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?Ir(l.frameElement):[]):n.concat(a,Ir(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 an(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!Dr()||!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=an(o)):l=an(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=an(_),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=an(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=Dr();(!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)?an(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=on(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=Ir(t,[],!1).filter(s=>Tt(s)&&Vt(s)!=="body"),a=null;const r=ft(t).position==="fixed";let l=r?on(t):t;for(;Tt(l)&&!Wn(l);){const s=ft(l),c=Ar(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=on(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"&&!Ar(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:an,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})},m0="",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(()=>{this.parentNode=this.$el.parentNode,this.alwaysVisible||(this.parentNode.addEventListener("focus",this.showPopover,!0),this.parentNode.addEventListener("blur",this.hidePopover,!0),this.parentNode.addEventListener("mouseover",this.showPopover),this.parentNode.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-abbb57fc"]]),g0="",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 Gt=_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"},y0="",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:Gt},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"},v0="",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"},b0="",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"]]),$0="",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"},w0="",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"},k0="",C0="",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"]]),Pr=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"},S0="",x0="",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===Pr&&(t.preventDefault(),this.close())},toggle(){this.isOpenedState?this.close():this.open()},open(){this.disabled||(this.isOpenedState=!0,this.$emit("open"),this.$globalEvents.$emit("dropdown:open",this))},close(){if(this.isOpenedState){if(this.disabled)return;this.isOpenedState=!1,this.$emit("close")}},debouncedOpen(){this.timeout=setTimeout(()=>{this.open()},300)},debouncedClose(){this.close(),clearTimeout(this.timeout)},closeOnClickIfRequired(){this.closeOnClick&&this.close()},closeOnEventOutside(t){this.$el.contains(t.target)||this.close()}},computed:{classes(){const t=this.vertical===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"]]),T0="",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 Mr=_e(gs,[["render",ys]]),N0="",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:Mr}},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]]),A0="",$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"};function ks(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.renderSlot(t.$slots,"default",{ref:"slot"})]),_:3},16,["class"]))])}const Br=_e($s,[["render",ks]]),Cs={common:"common",danger:"danger"},D0="",Os={name:"IbSplitButton",props:{id:{type:String,default:()=>mt()},kind:{type:String,default:Cs.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()}}},Es=["disabled"],Ss=["disabled"],xs=["disabled"],Ts={ref:"list"};function Ns(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,Ss)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Es)),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,xs)]),body:i.withCtx(()=>[i.createElementVNode("div",Ts,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const As=_e(Os,[["render",Ns]]),I0="",Ds={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function Is(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 Ps=_e(Ds,[["render",Is],["__scopeId","data-v-4cf00feb"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},P0="",Ms={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===Pr&&!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)}},Bs={key:1,class:"modal-header"},Ls={key:2,class:"modal-footer"};function Rs(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",Bs,[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",Ls,[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 js=_e(Ms,[["render",Rs],["__scopeId","data-v-e1683e53"]]);function mo(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const M0="",Vs={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:Br,IbIcon:Le}},Fs={class:"wrapper-tab-link dropdown-tab"},qs=["tabindex"];function Hs(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",Fs,[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,qs)]),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(Vs,[["render",Hs]]),B0="",zs={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"]},Us={class:"tabs"},Ks={class:"tabs-list"},Gs={key:0,class:"wrapper-tab-link"},Ws=["href","tabindex","onClick"],Ys={class:"tabs-content",ref:"tabHandler"};function Zs(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Us,[i.createElementVNode("ul",Ks,[(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",Gs,[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,Ws)]))]))),128))]),i.createElementVNode("div",Ys,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const Js=_e(zs,[["render",Zs],["__scopeId","data-v-47d103be"]]),Xs={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 Qs(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 ed=_e(Xs,[["render",Qs]]),td={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},nd={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 f0="",_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})}}},h0="",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 Nr(t,n=[]){for(let e in t)e.startsWith("on")&&(n.length===0||n.includes(e))&&delete t[e];return t}const p0="",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=Nr({...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 Ar(t){const n=Dr(),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=on(t);for(;bt(n)&&!Wn(n);){if(Ar(n))return n;n=on(n)}return null}function Dr(){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 on(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=on(t);return Wn(n)?t.ownerDocument?t.ownerDocument.body:t.body:bt(n)&&yn(n)?n:Ji(n)}function Ir(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?Ir(l.frameElement):[]):n.concat(a,Ir(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 an(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!Dr()||!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=an(o)):l=an(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=an(_),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=an(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=Dr();(!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)?an(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=on(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=Ir(t,[],!1).filter(s=>Tt(s)&&Vt(s)!=="body"),a=null;const r=ft(t).position==="fixed";let l=r?on(t):t;for(;Tt(l)&&!Wn(l);){const s=ft(l),c=Ar(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=on(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"&&!Ar(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:an,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})},m0="",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"]]),g0="",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 Gt=_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"},y0="",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:Gt},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"},v0="",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"},b0="",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"]]),$0="",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"},w0="",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"},k0="",C0="",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"]]),Pr=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"},S0="",x0="",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===Pr&&(t.preventDefault(),this.close())},toggle(){this.isOpenedState?this.close():this.open()},open(){this.disabled||(this.isOpenedState=!0,this.$emit("open"),this.$globalEvents.$emit("dropdown:open",this))},close(){if(this.isOpenedState){if(this.disabled)return;this.isOpenedState=!1,this.$emit("close")}},debouncedOpen(){this.timeout=setTimeout(()=>{this.open()},300)},debouncedClose(){this.close(),clearTimeout(this.timeout)},closeOnClickIfRequired(){this.closeOnClick&&this.close()},closeOnEventOutside(t){this.$el.contains(t.target)||this.close()}},computed:{classes(){const t=this.vertical===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"]]),T0="",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 Mr=_e(gs,[["render",ys]]),N0="",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:Mr}},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]]),A0="",$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"};function ks(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.renderSlot(t.$slots,"default",{ref:"slot"})]),_:3},16,["class"]))])}const Br=_e($s,[["render",ks]]),Cs={common:"common",danger:"danger"},D0="",Os={name:"IbSplitButton",props:{id:{type:String,default:()=>mt()},kind:{type:String,default:Cs.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()}}},Es=["disabled"],Ss=["disabled"],xs=["disabled"],Ts={ref:"list"};function Ns(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,Ss)):(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,disabled:e.disabled,class:"split-button-main"},a.mainButtonAttrs),i.toDisplayString(a.content),17,Es)),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,xs)]),body:i.withCtx(()=>[i.createElementVNode("div",Ts,[i.renderSlot(t.$slots,"default")],512)]),_:3},8,["disabled"])],2)}const As=_e(Os,[["render",Ns]]),I0="",Ds={props:{href:{type:String,default:""}},computed:{attrs(){const t={};return this.href.length&&(t.href=this.href),t}}};function Is(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 Ps=_e(Ds,[["render",Is],["__scopeId","data-v-4cf00feb"]]),Nt={S:"s",M:"m",L:"l",XL:"xl"},P0="",Ms={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===Pr&&!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)}},Bs={key:1,class:"modal-header"},Ls={key:2,class:"modal-footer"};function Rs(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",Bs,[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",Ls,[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 js=_e(Ms,[["render",Rs],["__scopeId","data-v-e1683e53"]]);function mo(t){return"#"+t.toLowerCase().replace(/ /g,"-")}const M0="",Vs={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:Br,IbIcon:Le}},Fs={class:"wrapper-tab-link dropdown-tab"},qs=["tabindex"];function Hs(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",Fs,[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,qs)]),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(Vs,[["render",Hs]]),B0="",zs={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"]},Us={class:"tabs"},Ks={class:"tabs-list"},Gs={key:0,class:"wrapper-tab-link"},Ws=["href","tabindex","onClick"],Ys={class:"tabs-content",ref:"tabHandler"};function Zs(t,n,e,o,a,r){const l=i.resolveComponent("ib-tab-dropdown");return i.openBlock(),i.createElementBlock("div",Us,[i.createElementVNode("ul",Ks,[(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",Gs,[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,Ws)]))]))),128))]),i.createElementVNode("div",Ys,[i.renderSlot(t.$slots,"default",{},void 0,!0)],512)])}const Js=_e(zs,[["render",Zs],["__scopeId","data-v-47d103be"]]),Xs={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 Qs(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 ed=_e(Xs,[["render",Qs]]),td={LIST_VIEW:"list-sorting",GRID_VIEW:"grid-sorting",TABLE_VIEW:"table-sorting"},nd={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;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
top: ${a-p-c/2+f+12}px!important`;break;case"rightCenter":d=d+`left: ${l+5}px!important;
|
|
19
19
|
top: ${a+f-p/2-c/2}px!important;`;break;case"rightBottom":d=d+`left: ${l+5}px!important;
|
|
20
20
|
top: ${a+f-c/2-12}px!important`;break;default:d=d+`left: ${r+s/2-h/2}px!important;
|
|
21
|
-
top: ${o-p+f-5}px!important`;break}return d}getClassList(n){return n?yo[n]:yo.topCenter}}const Wt=new vo,rd=(t,n)=>{var a;Wt.getTooltipContainer()&&Wt.destroyTooltip();const e=Object.keys(n.modifiers)[0]||n.arg,o={title:((a=n.value)==null?void 0:a.title)||"",text:typeof n.value=="object"?n.value.text:n.value};Wt.createTooltip(t,o,e)},id=(t,n)=>{const e=Wt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Wt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Wt.destroyTooltip(n)},bo=(t,n)=>{t.__tooltip_create=()=>rd(t,n),t.__tooltip_destroy=e=>id(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},_o=t=>{Wt.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},Lr={mounted(t,n){bo(t,n)},updated(t,n){_o(t),bo(t,n)},beforeUnmount(t){_o(t)}},L0="",od={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:nd,sortingTypesView:td,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},sortingTooltipPosition(){return this.hasToggleTip?"bottomCenter":this.tooltipPosition},sortingTooltipContent(){var t;return this.hasToggleTip?lang("click_to_view_details",(t=this.langComponents)==null?void 0:t.COMPONENT_SYSTEM):this.tooltipContent},tooltipIconText(){var t,n,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(n=this.langComponents)==null?void 0:n.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:Lr},components:{IbIcon:Le,IbIconButton:ht,IbToggleTip:co}},ad={class:"sorting-wrapper"},ld=["name"],sd=["aria-label"];function dd(t,n,e,o,a,r){var p;const l=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",ad,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("div",null,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip&&r.hasToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||r.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=f=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[h,r.sortingTooltipContent,r.sortingTooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(l,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=f=>a.isOpenToggleTip=!1)},{buttons:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):i.createCommentVNode("",!0)]),e.hideSortingButton?i.createCommentVNode("",!0):i.withDirectives((i.openBlock(),i.createBlock(s,{key:0,kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,ld)]),_:1},8,["onClick"])),[[h,r.tooltipIconText,e.tooltipIconPosition]])],2)):i.withDirectives((i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...f)=>r.clickHandler&&r.clickHandler(...f)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(c,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,sd)),[[h,e.tooltipText,e.tooltipPosition]])])}const cd=_e(od,[["render",dd],["__scopeId","data-v-a4394881"]]),R0="",ud={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ht,IbDropdownItem:Br,IbDropdownList:tr,IbTooltip:Gt}},fd={"aria-label":"breadcrumb"},hd={class:"breadcrumb"},pd=["href"],md={key:1},gd=["href"];function yd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",fd,[i.createElementVNode("ul",hd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",d===r.last?"active":""]),"aria-current":"page",key:d},[d!==r.last&&d>e.items.length-4||d===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:f.url},i.toDisplayString(f.title),9,pd)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",md,i.toDisplayString(f.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&d===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(c,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(l,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(u,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:u.url},i.toDisplayString(u.title),9,gd)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),d!==r.last&&d>e.items.length-5||d===0?(i.openBlock(),i.createBlock(l,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const vd=_e(ud,[["render",yd],["__scopeId","data-v-5ef772a9"]]),j0="",bd={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:ht,IbIcon:Le,IbTooltip:Gt}},_d=["for"],$d={key:0,class:"required"};function wd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",$d,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(c,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(l,{name:"information-circle-outline"}),i.createVNode(s,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,_d)}const wn=_e(bd,[["render",wd],["__scopeId","data-v-3e867259"]]),Rr={text:"text",password:"password",email:"email",number:"number"},V0="",kd={name:"IbInput",props:{type:{type:String,default:Rr.text,validator:t=>Object.keys(Rr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return mt()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:Qn.bottom},settingsHorizontalPosition:{type:String,default:$n.right},readonly:{type:Boolean,default:!1}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("clear")},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Nr({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===Rr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","clear","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:qt,IbIconButton:ht,IbIcon:Le,IbDropdown:er},inheritAttrs:!1},Cd=["aria-invalid","readonly","disabled","id"],Od={class:"settings-wrapper"};function Ed(t,n,e,o,a,r){var p,f;const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=d=>a.actualValue=d),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=d=>r.onInput(d)),onBlur:n[2]||(n[2]=d=>r.onBlur(d)),onFocus:n[3]||(n[3]=d=>r.onFocus(d))}),null,16,Cd),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(c,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(c,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(f=a.actualValue)==null?void 0:f.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(c,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",Od,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const jr=_e(kd,[["render",Ed],["__scopeId","data-v-ea1e952e"]]),F0="",Sd={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return mt()}},value:{default:1},modelValue:{type:Boolean},isChecked:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.$emit("update:modelValue",this.modelValue),this.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(t){if(!this.disabled){if(this.readonly){t.preventDefault();return}this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked)}}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-readonly":this.readonly,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Nr({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},xd=["aria-checked"],Td=["for","tabindex"],Nd=["name","id","value","disabled","required"],Ad={class:"ib-checkbox-body"},Dd={key:0,class:"required"},Id={class:"ib-checkbox-input"},Pd={key:1,class:"ib-checkbox-label"},Md={key:0,class:"required"};function Bd(t,n,e,o,a,r){var s;const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox",class:i.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class]),"aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onClick:n[2]||(n[2]=i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent","stop"])),onKeypress:n[3]||(n[3]=i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]))}),[i.withDirectives(i.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,disabled:e.disabled,required:e.required,"onUpdate:modelValue":n[0]||(n[0]=c=>a.checked=c),onClick:n[1]||(n[1]=(...c)=>r.onChange&&r.onChange(...c))},null,8,Nd),[[i.vModelCheckbox,a.checked]]),i.createElementVNode("div",Ad,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",Dd,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",Id,[i.withDirectives(i.createVNode(l,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(l,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((s=e.label)!=null&&s.length)?(i.openBlock(),i.createElementBlock("span",Pd,[e.required?(i.openBlock(),i.createElementBlock("span",Md,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,Td)],10,xd)}const Vr=_e(Sd,[["render",Bd]]),q0="",Ld={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>mt()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.disabled||(this.checked=!this.checked,this.$emit("input",this.checked))}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:Gt}},Rd=["aria-checked","tabindex"],jd={class:"toggle-wrapper",ref:"wrapper"},Vd={class:"toggle",ref:"toggle"},Fd=["name","checked","id","disabled"],qd=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Hd={key:0,class:"toggle-label"};function zd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["enter"]))]},[i.createElementVNode("div",jd,[i.createElementVNode("div",Vd,[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...c)=>r.onChange&&r.onChange(...c)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,Fd),qd,i.createVNode(l,{class:"checked-icon",name:"checkmark"}),i.createVNode(l,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",Hd,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(s,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,Rd)}const $o=_e(Ld,[["render",zd]]);function wo(t){return t.scrollHeight>t.clientHeight}const H0="",Ud={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{wo(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===uo&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===ls&&(this.option.isChildrenVisible=!0),t.keyCode===as&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o},isChecked(t){if(this.hasChildren)if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?$o:Vr},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:Mr,IbIconButton:ht},directives:{Tooltip:Lr}},Kd=["aria-selected","aria-label","id"],Gd={key:0,class:"option-label"},Wd={key:1,class:"option-label"},Yd=["innerHTML"],Zd=["innerHTML"],Jd={key:2,class:"option-label"};function Xd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("select-option"),h=i.resolveComponent("list"),p=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("li",null,[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked(e.option),"tree-select-option-margin":r.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":r.isChecked(e.option),"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...f)=>r.onKeydown&&r.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>t.$emit("onFocus",`option-${r.id}`))},[i.withDirectives(i.createVNode(s,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(l,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked(e.option),disabled:e.option.isDisabled,readonly:e.option.readonly,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","readonly","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",Wd,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Gd,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(l,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,Zd)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,Yd))],64)):(i.openBlock(),i.createElementBlock("span",Jd,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(h,{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,f=>i.withDirectives((i.openBlock(),i.createBlock(c,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=d=>t.$emit("toggle-bookmark",d)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,f.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Kd)),[[p,a.showTooltip?e.option.title:""]])])}const Qd=_e(Ud,[["render",Xd]]);var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ko={exports:{}};/*!***************************************************
|
|
21
|
+
top: ${o-p+f-5}px!important`;break}return d}getClassList(n){return n?yo[n]:yo.topCenter}}const Wt=new vo,rd=(t,n)=>{var a;Wt.getTooltipContainer()&&Wt.destroyTooltip();const e=Object.keys(n.modifiers)[0]||n.arg,o={title:((a=n.value)==null?void 0:a.title)||"",text:typeof n.value=="object"?n.value.text:n.value};Wt.createTooltip(t,o,e)},id=(t,n)=>{const e=Wt.getId();if(n.getAttribute("aria-describedby")!==e)return;const o=Wt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Wt.destroyTooltip(n)},bo=(t,n)=>{t.__tooltip_create=()=>rd(t,n),t.__tooltip_destroy=e=>id(e,t),t.addEventListener("mouseenter",t.__tooltip_create),document.addEventListener("mousemove",t.__tooltip_destroy)},_o=t=>{Wt.destroyTooltip(t),t.removeEventListener("mouseenter",t.__tooltip_create),document.removeEventListener("mousemove",t.__tooltip_destroy)},Lr={mounted(t,n){bo(t,n)},updated(t,n){_o(t),bo(t,n)},beforeUnmount(t){_o(t)}},L0="",od={name:"IbSorting",props:{tooltipTitle:{type:String,default:""},hideSortingButton:{type:Boolean,default:!1},tooltipText:{type:String},tooltipPosition:{type:String},tooltipIconPosition:{type:String},tooltipIconSorting:{type:String},toggleTipTitle:{type:String},title:{type:String,default:""},sort:{type:String,default:null},view:{type:String,required:!0},disable:{type:Boolean,default:!1},tableName:{type:String,required:!0}},mounted(){this.$globalEvents.$on(`sorting:update:${this.tableName}`,t=>{this.$el.contains(t.$el)||(this.currentTypeSort=null)})},data(){return{isOpenToggleTip:!1,sortingTypes:nd,sortingTypesView:td,currentTypeSort:this.sort}},methods:{clickHandler(){this.currentTypeSort?this.currentTypeSort===this.sortingTypes.TYPE_ASC?this.currentTypeSort=this.sortingTypes.TYPE_DESC:this.currentTypeSort=null:this.currentTypeSort=this.sortingTypes.TYPE_ASC,this.updateTypeSorting()},updateTypeSorting(){this.$globalEvents.$emit(`sorting:update:${this.tableName}`,this),this.$emit("update-sorting",this.currentTypeSort)}},computed:{iconType(){return this.currentTypeSort===this.sortingTypes.TYPE_ASC?"arrow-up":this.currentTypeSort===this.sortingTypes.TYPE_DESC?"arrow-down":this.view!==this.sortingTypesView.GRID_VIEW?"swap-vertical":null},sortingTooltipPosition(){return this.hasToggleTip?"bottomCenter":this.tooltipPosition},sortingTooltipContent(){var t;return this.hasToggleTip?lang("click_to_view_details",(t=this.langComponents)==null?void 0:t.COMPONENT_SYSTEM):this.tooltipContent},tooltipIconText(){var t,n,e;return this.currentTypeSort===this.sortingTypes.TYPE_ASC?lang("sort_descending",(t=this.langComponents)==null?void 0:t.COMPONENT_SELECT):this.currentTypeSort===this.sortingTypes.TYPE_DESC?lang("reset_sorting",(n=this.langComponents)==null?void 0:n.COMPONENT_SELECT):this.view!==this.sortingTypesView.GRID_VIEW?lang("sort_ascending",(e=this.langComponents)==null?void 0:e.COMPONENT_SELECT):""},tooltipContent(){return this.tooltipTitle.length?{title:this.tooltipTitle,text:this.tooltipText}:this.tooltipText},hasToggleTip(){return this.toggleTipTitle&&this.$slots.toggleTipBody&&this.$slots.toggleTipButtons}},directives:{Tooltip:Lr},components:{IbIcon:Le,IbIconButton:ht,IbToggleTip:co}},ad={class:"sorting-wrapper"},ld=["name"],sd=["aria-label"];function dd(t,n,e,o,a,r){var p;const l=i.resolveComponent("ib-toggle-tip"),s=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("ib-icon"),h=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("div",ad,[e.view===a.sortingTypesView.TABLE_VIEW?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["table-sorting-wrapper",{active:a.currentTypeSort,disabled:e.disable}])},[i.createElementVNode("div",null,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(["sorting-label",{"sorting-label-active":a.isOpenToggleTip&&r.hasToggleTip,"has-action":((p=e.tooltipText)==null?void 0:p.length)||r.hasToggleTip}]),type:"button",onClick:n[0]||(n[0]=f=>a.isOpenToggleTip=!a.isOpenToggleTip)},[i.createTextVNode(i.toDisplayString(e.title),1)],2)),[[h,r.sortingTooltipContent,r.sortingTooltipPosition]]),r.hasToggleTip?(i.openBlock(),i.createBlock(l,{key:0,position:"bottom-center","is-open":a.isOpenToggleTip,title:e.toggleTipTitle,onClose:n[1]||(n[1]=f=>a.isOpenToggleTip=!1)},{buttons:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipButtons",{},void 0,!0)]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"toggleTipBody",{},void 0,!0)]),_:3},8,["is-open","title"])):i.createCommentVNode("",!0)]),e.hideSortingButton?i.createCommentVNode("",!0):i.withDirectives((i.openBlock(),i.createBlock(s,{key:0,kind:"white",size:"s",onClick:r.clickHandler},{default:i.withCtx(()=>[i.createElementVNode("ion-icon",{name:r.iconType},null,8,ld)]),_:1},8,["onClick"])),[[h,r.tooltipIconText,e.tooltipIconPosition]])],2)):i.withDirectives((i.openBlock(),i.createElementBlock("button",{key:1,class:i.normalizeClass(["sorting-button",{active:a.currentTypeSort,disabled:e.disable}]),type:"button",onClick:n[2]||(n[2]=(...f)=>r.clickHandler&&r.clickHandler(...f)),"aria-label":e.sort},[i.createTextVNode(i.toDisplayString(e.title)+" ",1),r.iconType?(i.openBlock(),i.createBlock(c,{key:0,name:r.iconType},null,8,["name"])):i.createCommentVNode("",!0)],10,sd)),[[h,e.tooltipText,e.tooltipPosition]])])}const cd=_e(od,[["render",dd],["__scopeId","data-v-a4394881"]]),R0="",ud={name:"IbBreadcrumbs",props:{items:{type:Array,default:()=>[]},tooltipTextContext:{type:String}},computed:{last(){return this.items.length?this.items.length-1:null},initContextMenu(){return this.items.length>4},setItemsContextMenu(){return this.items.slice(0,-3)}},components:{IbIcon:Le,IbIconButton:ht,IbDropdownItem:Br,IbDropdownList:tr,IbTooltip:Gt}},fd={"aria-label":"breadcrumb"},hd={class:"breadcrumb"},pd=["href"],md={key:1},gd=["href"];function yd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown-item"),p=i.resolveComponent("ib-dropdown-list");return i.openBlock(),i.createElementBlock("nav",fd,[i.createElementVNode("ul",hd,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,(f,d)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(["breadcrumb-item",d===r.last?"active":""]),"aria-current":"page",key:d},[d!==r.last&&d>e.items.length-4||d===0?(i.openBlock(),i.createElementBlock("a",{key:0,class:"ib-link",href:f.url},i.toDisplayString(f.title),9,pd)):i.createCommentVNode("",!0),d===r.last?(i.openBlock(),i.createElementBlock("p",md,i.toDisplayString(f.title),1)):i.createCommentVNode("",!0),r.initContextMenu&&d===e.items.length-4?(i.openBlock(),i.createBlock(p,{key:2,horizontal:"center"},{trigger:i.withCtx(()=>[i.createVNode(c,{kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(l,{name:"ellipsis-horizontal-sharp"}),e.tooltipTextContext?(i.openBlock(),i.createBlock(s,{key:0,text:e.tooltipTextContext},null,8,["text"])):i.createCommentVNode("",!0)]),_:1})]),body:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.setItemsContextMenu,(u,_)=>(i.openBlock(),i.createBlock(h,{key:_},{default:i.withCtx(()=>[i.createElementVNode("a",{class:"context-breadcrums",href:u.url},i.toDisplayString(u.title),9,gd)]),_:2},1024))),128))]),_:2},1024)):i.createCommentVNode("",!0),d!==r.last&&d>e.items.length-5||d===0?(i.openBlock(),i.createBlock(l,{key:3,name:"chevron-forward-outline"})):i.createCommentVNode("",!0)],2))),128))])])}const vd=_e(ud,[["render",yd],["__scopeId","data-v-5ef772a9"]]),j0="",bd={name:"IbLabel",props:{for:{type:String},required:{type:Boolean,default:!1},infoText:{type:String,default:""},tooltipPosition:{type:String}},mounted(){this.$globalEvents.$on(`label:disabled:${this.for}`,t=>{this.disabled=t})},data(){return{disabled:!1}},computed:{classes(){const t=["ib-label"];return this.infoText.length&&t.push("has-info-text"),this.disabled&&t.push("label-disabled"),t}},components:{IbIconButton:ht,IbIcon:Le,IbTooltip:Gt}},_d=["for"],$d={key:0,class:"required"};function wd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip"),c=i.resolveComponent("ib-icon-button");return i.openBlock(),i.createElementBlock("label",{class:i.normalizeClass(r.classes),for:e.for},[e.required?(i.openBlock(),i.createElementBlock("span",$d,"* ")):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default",{},void 0,!0),e.infoText.length?(i.openBlock(),i.createBlock(c,{key:1,size:"xs",class:"info-button",kind:"ghost",type:"button"},{default:i.withCtx(()=>[i.createVNode(l,{name:"information-circle-outline"}),i.createVNode(s,{text:e.infoText,position:e.tooltipPosition},null,8,["text","position"])]),_:1})):i.createCommentVNode("",!0)],10,_d)}const wn=_e(bd,[["render",wd],["__scopeId","data-v-606c2172"]]),Rr={text:"text",password:"password",email:"email",number:"number"},V0="",kd={name:"IbInput",props:{type:{type:String,default:Rr.text,validator:t=>Object.keys(Rr).includes(t)},disabled:{type:Boolean,required:!1,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},id:{type:[String],default(){return mt()}},debounce:{type:[Number,String]},showIcon:{type:Boolean,default:!1},showClearButton:{type:Boolean,default:!0},clearButtonMessage:{type:String,default:""},settingsButtonMessage:{type:String,default:""},showPasswordMessage:{type:String,default:""},hidePasswordMessage:{type:String,default:""},value:{type:[String,Number],default:""},modelValue:{type:[String,Number]},settingsVerticalPosition:{type:String,default:Qn.bottom},settingsHorizontalPosition:{type:String,default:$n.right},readonly:{type:Boolean,default:!1}},data(){return{actualValue:this.modelValue||this.value,showPassword:!1}},mounted(){setTimeout(()=>{this.$globalEvents.$emit(`label:disabled:${this.id}`,this.disabled)},10)},methods:{toggleShowPassword(){this.showPassword=!this.showPassword},clearInput(){this.actualValue="",this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue),this.$emit("clear")},onBlur(){this.$emit("blur",this.actualValue)},onFocus(){this.$emit("focus",this.actualValue)},onInput(){this.debounce?this.delayedInput(this.actualValue):(this.$emit("update:modelValue",this.actualValue),this.$emit("input",this.actualValue))},delayedInput(t){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.$emit("update:modelValue",t),this.$emit("input",t)},this.debounce)},focus(){this.$refs.field.focus()}},computed:{hasSettings(){return!!this.$slots.settings},classes(){const t=["ib-input"];return this.hasErrorState&&t.push("ib-error"),this.showIcon&&t.push("ib-input-has-icon"),t},attrs(){let t=Nr({...this.$attrs},["onInput","onBlur"]);return t.type=this.type===Rr.password?this.showPassword?"text":"password":this.type,t},hasErrorState(){return this.error||this.errorMessage.length}},watch:{value(t){this.actualValue=t},modelValue(t){this.actualValue=t},disabled(t){this.$globalEvents.$emit(`label:disabled:${this.id}`,t)}},emits:["input","blur","focus","clear","update:modelValue",`label:disabled:${globalThis==null?void 0:globalThis.id}`],components:{IbAlert:qt,IbIconButton:ht,IbIcon:Le,IbDropdown:er},inheritAttrs:!1},Cd=["aria-invalid","readonly","disabled","id"],Od={class:"settings-wrapper"};function Ed(t,n,e,o,a,r){var p,f;const l=i.resolveComponent("ib-alert"),s=i.resolveComponent("ib-icon"),c=i.resolveComponent("ib-icon-button"),h=i.resolveComponent("ib-dropdown");return i.openBlock(),i.createElementBlock("div",null,[e.errorMessage?(i.openBlock(),i.createBlock(l,{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.errorMessage),1)]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["ib-input-wrapper",{"has-settings":r.hasSettings}])},[e.showIcon?(i.openBlock(),i.createBlock(s,{key:0,class:"icon-search",name:"search-outline"})):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("input",i.mergeProps(r.attrs,{"onUpdate:modelValue":n[0]||(n[0]=d=>a.actualValue=d),ref:"field","aria-invalid":!!r.hasErrorState,readonly:e.readonly,disabled:e.disabled,id:e.id,class:r.classes,onInput:n[1]||(n[1]=d=>r.onInput(d)),onBlur:n[2]||(n[2]=d=>r.onBlur(d)),onFocus:n[3]||(n[3]=d=>r.onFocus(d))}),null,16,Cd),[[i.vModelDynamic,a.actualValue]]),e.type!=="password"&&e.showClearButton?i.withDirectives((i.openBlock(),i.createBlock(c,{key:1,kind:"ghost",class:"button-clear",disabled:e.readonly||e.disabled,"help-text":e.clearButtonMessage,"prevent-default":"",type:"button",onClick:r.clearInput,onKeypress:i.withKeys(r.clearInput,["enter"])},{default:i.withCtx(()=>[i.createVNode(s,{name:"close-outline"})]),_:1},8,["disabled","help-text","onClick","onKeypress"])),[[i.vShow,(p=a.actualValue)==null?void 0:p.length]]):i.createCommentVNode("",!0),e.type==="password"?i.withDirectives((i.openBlock(),i.createBlock(c,{key:2,kind:"ghost",class:"toggle-password","prevent-default":"",type:"button",disabled:e.readonly||e.disabled,"help-text":a.showPassword?e.hidePasswordMessage:e.showPasswordMessage,onClick:i.withModifiers(r.toggleShowPassword,["prevent"])},{default:i.withCtx(()=>[i.createVNode(s,{name:a.showPassword?"eye-off-outline":"eye-outline"},null,8,["name"])]),_:1},8,["disabled","help-text","onClick"])),[[i.vShow,(f=a.actualValue)==null?void 0:f.length]]):i.createCommentVNode("",!0),r.hasSettings?(i.openBlock(),i.createBlock(h,{key:3,class:"settings-dropdown-wrapper",horizontal:e.settingsHorizontalPosition,vertical:e.settingsVerticalPosition},{trigger:i.withCtx(()=>[i.createVNode(c,{"prevent-default":"","help-text":e.settingsButtonMessage,class:"options-trigger",kind:"ghost"},{default:i.withCtx(()=>[i.createVNode(s,{name:"options"})]),_:1},8,["help-text"])]),body:i.withCtx(()=>[i.createElementVNode("div",Od,[i.renderSlot(t.$slots,"settings",{},void 0,!0)])]),_:3},8,["horizontal","vertical"])):i.createCommentVNode("",!0)],2)])}const jr=_e(kd,[["render",Ed],["__scopeId","data-v-ea1e952e"]]),F0="",Sd={name:"IbCheckbox",model:{event:"input"},props:{label:String,error:{type:[Boolean,null],default:!1},name:String,id:{type:String,default(){return mt()}},value:{default:1},modelValue:{type:Boolean},isChecked:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFocus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},watch:{isChecked(t){this.checked=t},modelValue(t){this.$emit("update:modelValue",this.modelValue),this.checked=t}},data(){return{checked:this.modelValue?this.modelValue:this.isChecked}},methods:{onChange(t){if(!this.disabled){if(this.readonly){t.preventDefault();return}this.checked=!this.checked,this.$emit("update:modelValue",this.checked),this.$emit("input",this.checked)}}},computed:{classes(){return{"ib-checkbox":!0,"ib-has-error":this.error,"ib-checkbox-filled":this.checked,"ib-checkbox-disabled":this.disabled,"ib-checkbox-readonly":this.readonly,"ib-checkbox-indeterminate":this.indeterminate}},indeterminate(){return this.isChecked===null},attrs(){const t={...Nr({...this.$attrs})};return delete t.class,t.class=this.classes,t}},components:{IbIcon:Le},inheritAttrs:!1},xd=["aria-checked"],Td=["for","tabindex"],Nd=["name","id","value","disabled","required"],Ad={class:"ib-checkbox-body"},Dd={key:0,class:"required"},Id={class:"ib-checkbox-input"},Pd={key:1,class:"ib-checkbox-label"},Md={key:0,class:"required"};function Bd(t,n,e,o,a,r){var s;const l=i.resolveComponent("ib-icon");return i.openBlock(),i.createElementBlock("div",{role:"checkbox",class:i.normalizeClass(["ib-checkbox-wrapper",this.$attrs.class]),"aria-checked":!!a.checked},[i.createElementVNode("label",i.mergeProps(r.attrs,{for:e.id,tabindex:e.disabled|e.disableFocus?-1:0,onClick:n[2]||(n[2]=i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent","stop"])),onKeypress:n[3]||(n[3]=i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]))}),[i.withDirectives(i.createElementVNode("input",{tabindex:"-1",type:"checkbox",name:e.name,id:e.id,value:e.value,disabled:e.disabled,required:e.required,"onUpdate:modelValue":n[0]||(n[0]=c=>a.checked=c),onClick:n[1]||(n[1]=(...c)=>r.onChange&&r.onChange(...c))},null,8,Nd),[[i.vModelCheckbox,a.checked]]),i.createElementVNode("div",Ad,[e.labelPosition==="left"&&e.label.length?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["ib-checkbox-label",{"ib-checkbox-label-left":e.labelPosition==="left"}])},[e.required?(i.openBlock(),i.createElementBlock("span",Dd,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)],2)):i.createCommentVNode("",!0),i.createElementVNode("span",Id,[i.withDirectives(i.createVNode(l,{name:"checkmark-sharp"},null,512),[[i.vShow,a.checked&&!r.indeterminate]]),i.withDirectives(i.createVNode(l,{class:i.normalizeClass("checkbox-undeterminate-icon"),name:"remove-sharp"},null,512),[[i.vShow,r.indeterminate]])]),e.labelPosition==="right"&&((s=e.label)!=null&&s.length)?(i.openBlock(),i.createElementBlock("span",Pd,[e.required?(i.openBlock(),i.createElementBlock("span",Md,"*")):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(e.label),1)])):i.createCommentVNode("",!0)])],16,Td)],10,xd)}const Vr=_e(Sd,[["render",Bd]]),q0="",Ld={name:"IbToggle",model:{prop:"isChecked",event:"input"},props:{isChecked:{type:Boolean,required:!1},id:{type:String,default:()=>mt()},disabled:{type:Boolean,default:!1},name:{type:String,default:"active"},label:{type:String,default:""},error:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},helpMessage:{type:String,default:""},helpMessageOff:{type:String,default:""}},watch:{isChecked(t){this.checked=t}},data(){return{checked:this.isChecked}},methods:{onChange(){this.disabled||(this.checked=!this.checked,this.$emit("input",this.checked))}},computed:{classes(){return{"ib-toggle-container":!0,"has-error":this.error,"toggle-on":this.checked,"toggle-disabled":this.disabled,"label-position-left":this.labelPosition==="left"}}},components:{IbIcon:Le,IbTooltip:Gt}},Rd=["aria-checked","tabindex"],jd={class:"toggle-wrapper",ref:"wrapper"},Vd={class:"toggle",ref:"toggle"},Fd=["name","checked","id","disabled"],qd=i.createElementVNode("span",{class:"toggle-slider round"},null,-1),Hd={key:0,class:"toggle-label"};function zd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-tooltip");return i.openBlock(),i.createElementBlock("label",{role:"switch","aria-checked":a.checked,tabindex:e.disabled?-1:0,class:i.normalizeClass(r.classes),onKeypress:[n[2]||(n[2]=i.withKeys(i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["space"])),n[3]||(n[3]=i.withKeys(i.withModifiers((...c)=>r.onChange&&r.onChange(...c),["prevent"]),["enter"]))]},[i.createElementVNode("div",jd,[i.createElementVNode("div",Vd,[i.createElementVNode("input",{tabindex:"-1",type:"checkbox",value:"1",name:e.name,checked:a.checked,id:e.id,disabled:e.disabled,onClick:n[0]||(n[0]=(...c)=>r.onChange&&r.onChange(...c)),onInput:n[1]||(n[1]=i.withModifiers(()=>{},["stop"]))},null,40,Fd),qd,i.createVNode(l,{class:"checked-icon",name:"checkmark"}),i.createVNode(l,{class:"unchecked-icon",name:"close"})],512)],512),e.label.length?(i.openBlock(),i.createElementBlock("span",Hd,i.toDisplayString(e.label),1)):i.createCommentVNode("",!0),e.helpMessage.length?(i.openBlock(),i.createBlock(s,{key:1,text:a.checked?e.helpMessage:e.helpMessageOff.length?e.helpMessageOff:e.helpMessage},null,8,["text"])):i.createCommentVNode("",!0)],42,Rd)}const $o=_e(Ld,[["render",zd]]);function wo(t){return t.scrollHeight>t.clientHeight}const H0="",Ud={name:"select-option",props:{option:{type:Object},name:String,parentAutoCheck:{type:Boolean,default:!1},isMultiple:{type:Boolean,default:!0},uid:{type:String,default:""},onlyEndNodes:{type:Boolean,default:!1},htmlTitle:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},isBookmarkable:{type:Boolean,default:!1},isBookmarked:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1}},mounted(){this.option.hasOwnProperty("children")&&this.option.children&&this.checkParent()},updated(){this.$nextTick(()=>{wo(this.$el.querySelector(".option-label"))&&(this.showTooltip=!0)})},data(){return{showTooltip:!1}},methods:{onKeydown(t){t.keyCode===uo&&(t.preventDefault(),this.onChange()),this.hasVisibleChildren&&(t.keyCode===ls&&(this.option.isChildrenVisible=!0),t.keyCode===as&&(this.option.isChildrenVisible=!1))},onChange(){var t,n;!this.isMultiple&&!this.isChecked(this.option)&&((t=this.$refs.component)==null||t.onChange()),this.isMultiple&&((n=this.$refs.component)==null||n.onChange())},toggle(t,n=!0){this.check(this.option,t,!0,n)},check(t,n,e,o){this.$emit("check",t,n,e),o&&t.children&&t.children.forEach(a=>{this.check(a,n,!1,!0)})},toggleChildrenVisibility(){this.option.isChildrenVisible=!this.option.isChildrenVisible},checkChildren(t,n,e){e&&this.isMultiple&&this.$nextTick(()=>{this.checkParent()}),this.$emit("check",t,n,!1)},checkParent(){const t=this.option.children.filter(e=>e.checked).length,n=t>=this.option.children.length;(!this.option.checked&&n&&this.parentAutoCheck||this.option.checked&&!n)&&this.toggle(!this.option.checked,!1)},calculateChildren(t,n,e=!1){let o=0;return t.children&&t.children.forEach(a=>{(!n||n(a))&&o++,e&&(o+=this.calculateChildren(a,n,e))}),o},isChecked(t){if(this.hasChildren)if(this.childrenSelectedCount){if(this.childrenSelectedCount>0&&this.countOfAllChildren>this.childrenSelectedCount)return null}else return!1;return t.checked?!0:t.isIndeterminate?null:!1}},computed:{component(){return this.isMultiple&&this.isToggle?$o:Vr},hasChildren(){return!!(this.option.children&&this.option.children.length)},hasVisibleChildren(){return this.calculateChildren(this.option,t=>t.visible)},iconName(){return this.option.isChildrenVisible?"chevron-down":"chevron-forward"},id(){return this.uid+"_"+this.option.id},actualName(){return this.onlyEndNodes&&this.option.children&&this.option.children.length?"":this.name},childrenSelectedCount(){return this.calculateChildren(this.option,t=>t.checked,!0)},countOfAllChildren(){return this.calculateChildren(this.option,()=>!0,!0)}},components:{IbIcon:Le,List:Mr,IbIconButton:ht},directives:{Tooltip:Lr}},Kd=["aria-selected","aria-label","id"],Gd={key:0,class:"option-label"},Wd={key:1,class:"option-label"},Yd=["innerHTML"],Zd=["innerHTML"],Jd={key:2,class:"option-label"};function Xd(t,n,e,o,a,r){const l=i.resolveComponent("ib-icon"),s=i.resolveComponent("ib-icon-button"),c=i.resolveComponent("select-option"),h=i.resolveComponent("list"),p=i.resolveDirective("tooltip");return i.openBlock(),i.createElementBlock("li",null,[i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["tree-select-option",{"tree-select-option-checked":r.isChecked(e.option),"tree-select-option-margin":r.hasVisibleChildren,active:e.option.isChildrenVisible,"is-multiple":e.isMultiple,"is-not-multiple":!e.isMultiple,"tree-select-option-toggle":this.isToggle&&this.isMultiple}]),tabindex:"0",role:"option","aria-selected":r.isChecked(e.option),"aria-label":e.option.title,id:"option-"+r.id,onKeydown:n[3]||(n[3]=i.withModifiers((...f)=>r.onKeydown&&r.onKeydown(...f),["self"])),onFocus:n[4]||(n[4]=f=>t.$emit("onFocus",`option-${r.id}`))},[i.withDirectives(i.createVNode(s,{"disabled-focus":!0,kind:"ghost",class:"toggle-children",onClick:r.toggleChildrenVisibility},{default:i.withCtx(()=>[i.createVNode(l,{name:r.iconName},null,8,["name"])]),_:1},8,["onClick"]),[[i.vShow,r.hasVisibleChildren]]),i.createElementVNode("div",{onClick:n[1]||(n[1]=i.withModifiers((...f)=>r.onChange&&r.onChange(...f),["prevent"])),class:i.normalizeClass({disabled:e.option.isDisabled,"tree-select-option-label":!0,"tree-select-option-has-children":r.hasVisibleChildren,active:!e.showInput&&e.option.checked})},[i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.component),{ref:"component",tabindex:"-1","disable-focus":"","aria-label":e.option.title,name:r.actualName,value:e.option.id,id:"input"+r.id,"is-checked":r.isChecked(e.option),disabled:e.option.isDisabled,readonly:e.option.readonly,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onInput:r.toggle},null,40,["aria-label","name","value","id","is-checked","disabled","readonly","onInput"])),[[i.vShow,e.showInput]]),e.isBookmarkable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass("bookmarkable-option-title "+(e.isBookmarked?"bookmarked":""))},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",Wd,i.toDisplayString(e.option.title),1)):(i.openBlock(),i.createElementBlock("span",Gd,[i.createTextVNode(i.toDisplayString(e.option.title)+" ",1),i.createVNode(l,{name:"star",onClick:n[0]||(n[0]=i.withModifiers(f=>t.$emit("toggle-bookmark",e.option),["stop","prevent"]))})]))],2)):e.htmlTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.hasChildren?(i.openBlock(),i.createElementBlock("span",{key:1,class:"option-label",innerHTML:e.option.title},null,8,Zd)):(i.openBlock(),i.createElementBlock("span",{key:0,class:"option-label",innerHTML:e.option.title},null,8,Yd))],64)):(i.openBlock(),i.createElementBlock("span",Jd,i.toDisplayString(e.option.title),1))],2),r.hasChildren?i.withDirectives((i.openBlock(),i.createBlock(h,{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.option.children,f=>i.withDirectives((i.openBlock(),i.createBlock(c,{key:f.value,option:f,name:e.name,"parent-auto-check":e.parentAutoCheck,"is-multiple":e.isMultiple,"show-input":e.showInput,onCheck:r.checkChildren,onToggleBookmark:n[2]||(n[2]=d=>t.$emit("toggle-bookmark",d)),uid:e.uid,"is-bookmarkable":e.isBookmarkable},null,8,["option","name","parent-auto-check","is-multiple","show-input","onCheck","uid","is-bookmarkable"])),[[i.vShow,f.visible]])),128))]),_:1},512)),[[i.vShow,r.hasVisibleChildren&&e.option.isChildrenVisible]]):i.createCommentVNode("",!0)],42,Kd)),[[p,a.showTooltip?e.option.title:""]])])}const Qd=_e(Ud,[["render",Xd]]);var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ko={exports:{}};/*!***************************************************
|
|
22
22
|
* mark.js v8.11.1
|
|
23
23
|
* https://markjs.io/
|
|
24
24
|
* Copyright (c) 2014–2018, Julian Kühnel
|