@webitel/ui-sdk 25.6.31 → 25.6.32
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/ui-sdk.js
CHANGED
|
@@ -27682,6 +27682,14 @@ const EN = /* @__PURE__ */ Oe(SN, [["render", AN], ["__scopeId", "data-v-1714b52
|
|
|
27682
27682
|
type: String,
|
|
27683
27683
|
default: ""
|
|
27684
27684
|
},
|
|
27685
|
+
/**
|
|
27686
|
+
* Number of rows in textarea
|
|
27687
|
+
*/
|
|
27688
|
+
rows: {
|
|
27689
|
+
type: Number,
|
|
27690
|
+
default: 1,
|
|
27691
|
+
description: "Number of rows for textarea"
|
|
27692
|
+
},
|
|
27685
27693
|
labelProps: {
|
|
27686
27694
|
type: Object,
|
|
27687
27695
|
description: "Object with props, passed down to wt-label as props"
|
|
@@ -27731,7 +27739,7 @@ const EN = /* @__PURE__ */ Oe(SN, [["render", AN], ["__scopeId", "data-v-1714b52
|
|
|
27731
27739
|
r.style.paddingRight = `calc(${o} * 2 + ${e}px)`;
|
|
27732
27740
|
}
|
|
27733
27741
|
}
|
|
27734
|
-
}, MN = { class: "wt-textarea__wrapper" }, BN = ["id", "disabled", "placeholder", "value", "readonly"], TN = {
|
|
27742
|
+
}, MN = { class: "wt-textarea__wrapper" }, BN = ["id", "disabled", "placeholder", "value", "rows", "readonly"], TN = {
|
|
27735
27743
|
ref: "after-wrapper",
|
|
27736
27744
|
class: "wt-textarea__after-wrapper"
|
|
27737
27745
|
};
|
|
@@ -27763,7 +27771,7 @@ function DN(e, r, o, n, i, a) {
|
|
|
27763
27771
|
disabled: o.disabled,
|
|
27764
27772
|
placeholder: o.placeholder || o.label,
|
|
27765
27773
|
value: o.value,
|
|
27766
|
-
rows:
|
|
27774
|
+
rows: o.rows,
|
|
27767
27775
|
readonly: o.readonly,
|
|
27768
27776
|
class: "wt-textarea__textarea"
|
|
27769
27777
|
}, X2(a.listeners, !0), {
|
|
@@ -27791,7 +27799,7 @@ function DN(e, r, o, n, i, a) {
|
|
|
27791
27799
|
}, 8, ["invalid"])) : q("", !0)
|
|
27792
27800
|
], 2);
|
|
27793
27801
|
}
|
|
27794
|
-
const IN = /* @__PURE__ */ Oe(ON, [["render", DN], ["__scopeId", "data-v-
|
|
27802
|
+
const IN = /* @__PURE__ */ Oe(ON, [["render", DN], ["__scopeId", "data-v-1628361e"]]), PN = {
|
|
27795
27803
|
name: "WtTimeInput",
|
|
27796
27804
|
mixins: [u1],
|
|
27797
27805
|
props: {
|
package/dist/ui-sdk.umd.cjs
CHANGED
|
@@ -290,7 +290,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
290
290
|
array and $emits "input" event.
|
|
291
291
|
|
|
292
292
|
True: "tag" method only $emits "tag" event. Tag addition is responsibility of client side.
|
|
293
|
-
`}},emits:["input","tag","search-change","closed"],data:()=>({defaultOptionLabel:"label",multiple:!0}),created(){this.isApiMode||this.initializeOptions()},methods:{getTagOptionLabel({optionLabel:e,option:r}){const o=this.getOptionLabel({optionLabel:e,option:r});return typeof o=="object"?r.label:o},initializeOptions(){if(!this.value)return[];const e=this.value.filter(r=>!this.options.find(o=>ho(o,r)));this.options.unshift(...e)}}},hR={class:"multiselect__loading-wrapper"};function pR(e,r,o,n,a,l){const s=i.resolveComponent("wt-label"),c=i.resolveComponent("wt-icon-btn"),d=i.resolveComponent("wt-chip"),u=i.resolveComponent("wt-loader"),f=i.resolveComponent("vue-multiselect"),h=i.resolveComponent("wt-input-info"),p=i.resolveDirective("observe-visibility");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-tags-input--disabled":e.disabled,"wt-tags-input--invalid":e.invalid,"wt-tags-input--loading":e.isLoading},"wt-tags-input"])},[e.hasLabel?(i.openBlock(),i.createBlock(s,i.mergeProps({key:0},e.labelProps,{disabled:e.disabled,invalid:e.invalid,class:"wt-tags-input__label"}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.normalizeProps(i.guardReactiveProps({label:e.label})),()=>[i.createTextVNode(i.toDisplayString(e.requiredLabel),1)],!0)],void 0,!0),_:3},16,["disabled","invalid"])):i.createCommentVNode("",!0),i.createVNode(f,i.mergeProps(e.$attrs,{ref:"vue-multiselect","close-on-select":!1,disabled:e.disabled,"internal-search":!e.searchMethod,label:e.selectOptionLabel,loading:!1,"model-value":e.selectValue,multiple:e.multiple,options:e.selectOptions,placeholder:e.placeholder||e.label,taggable:o.taggable,"track-by":o.trackBy,class:"wt-tags-input__select"},i.toHandlers(e.listeners)),i.createSlots({tag:i.withCtx(({option:y,remove:C})=>[i.createVNode(d,{class:"multiselect__custom-tag"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.getTagOptionLabel({option:y,optionLabel:e.optionLabel}))+" ",1),i.createVNode(c,{color:"on-primary",icon:"close--filled",size:"sm",onClick:w=>C(y)},null,8,["onClick"])],void 0,!0),_:2},1024)]),option:i.withCtx(({option:y})=>[i.renderSlot(e.$slots,"option",i.normalizeProps(i.guardReactiveProps({option:y,optionLabel:e.optionLabel})),()=>[i.createTextVNode(i.toDisplayString(l.getTagOptionLabel({option:y,optionLabel:e.optionLabel})),1)],!0)]),caret:i.withCtx(({toggle:y})=>[i.createVNode(c,{disabled:e.disabled,class:"multiselect__select",color:"active",icon:"arrow-down",onMousedown:i.withModifiers(y,["prevent","stop"])},null,8,["disabled","onMousedown"])]),beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",hR,[i.createVNode(u,{size:"sm"})],512),[[i.vShow,e.isLoading]])]),_:2},[e.showIntersectionObserver?{name:"afterList",fn:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",null,null,512),[[p,e.handleAfterListIntersect]])]),key:"0"}:void 0]),1040,["disabled","internal-search","label","model-value","multiple","options","placeholder","taggable","track-by"]),e.isValidation?(i.openBlock(),i.createBlock(h,{key:1,invalid:e.invalid},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.validationText),1)],void 0,!0),_:1},8,["invalid"])):i.createCommentVNode("",!0)],2)}const mR=ye(fR,[["render",pR],["__scopeId","data-v-1714b524"]]),gR={name:"WtTextarea",mixins:[Un],props:{value:{type:String,default:""},label:{type:String,default:""},placeholder:{type:String},readonly:{type:Boolean,default:!1,description:"Native textarea readonly attribute"},disabled:{type:Boolean,default:!1,description:"Native textarea disabled attribute"},name:{type:String,default:""},labelProps:{type:Object,description:"Object with props, passed down to wt-label as props"},autoresize:{type:Boolean,default:!1,description:"enables auto-grow for text-area"}},emits:["input","enter"],computed:{listeners(){return{...this.$listeners,input:e=>this.$emit("input",e.target.value),keypress:e=>this.handleKeypress(e)}},requiredLabel(){return this.required?`${this.label}*`:this.label}},mounted(){this.updateInputPaddings()},updated(){this.autoresize&&!this.value&&this.resetGrow()},methods:{handleKeypress(e){this.autoresize&&e.key==="Enter"&&!e.shiftKey&&(this.$emit("enter"),e.preventDefault())},autoGrow(){if(!this.autoresize)return;const e=this.$refs["wt-textarea"],r=2;e.style.height="auto",e.style.height=e.scrollHeight+r+"px"},resetGrow(){const e=this.$refs["wt-textarea"];e.style.height="auto"},updateInputPaddings(){const e=this.$refs["after-wrapper"].offsetWidth,r=this.$refs["wt-textarea"],o=getComputedStyle(document.documentElement).getPropertyValue("--textarea-padding");r.style.paddingRight=`calc(${o} * 2 + ${e}px)`}}},yR={class:"wt-textarea__wrapper"},bR=["id","disabled","placeholder","value","readonly"],wR={ref:"after-wrapper",class:"wt-textarea__after-wrapper"};function vR(e,r,o,n,a,l){const s=i.resolveComponent("wt-label"),c=i.resolveComponent("wt-icon-btn"),d=i.resolveComponent("wt-input-info");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-textarea--disabled":o.disabled,"wt-textarea--invalid":e.invalid,"wt-textarea--autoresize":o.autoresize},"wt-textarea"])},[i.createVNode(s,i.mergeProps(o.labelProps,{disabled:o.disabled,for:o.name,invalid:e.invalid}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.normalizeProps(i.guardReactiveProps({label:o.label})),()=>[i.createTextVNode(i.toDisplayString(l.requiredLabel),1)],!0)],void 0,!0),_:3},16,["disabled","for","invalid"]),i.createElementVNode("div",yR,[i.createElementVNode("textarea",i.mergeProps({id:o.name,ref:"wt-textarea",disabled:o.disabled,placeholder:o.placeholder||o.label,value:o.value,rows:"1",readonly:o.readonly,class:"wt-textarea__textarea"},i.toHandlers(l.listeners,!0),{onInput:r[0]||(r[0]=(...u)=>l.autoGrow&&l.autoGrow(...u))}),null,16,bR),i.createElementVNode("div",wR,[i.renderSlot(e.$slots,"after-input",{},void 0,!0),i.createVNode(c,{class:i.normalizeClass([{hidden:!o.value},"wt-textarea__reset-icon-btn"]),disabled:o.disabled,icon:"close--filled",size:"sm",onClick:r[1]||(r[1]=u=>e.$emit("input",""))},null,8,["class","disabled"])],512)]),e.isValidation?(i.openBlock(),i.createBlock(d,{key:0,invalid:e.invalid},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.validationText),1)],void 0,!0),_:1},8,["invalid"])):i.createCommentVNode("",!0)],2)}const CR=ye(gR,[["render",vR],["__scopeId","data-v-c9c1cb76"]]),xR={name:"WtTimeInput",mixins:[Un],props:{value:{type:Number,default:0},label:{type:String,default:""},maxValue:{type:Number},required:{type:Boolean,default:!1,description:"Native input required attribute"},disabled:{type:Boolean,default:!1,description:"Native input disabled attribute"},labelProps:{type:Object,description:"Object with props, passed down to wt-label as props"},hideInputInfo:{type:Boolean,default:!1}},emits:["input"],computed:{hasLabel(){return!!(this.label||this.$slots.label)},showInfo(){return this.isValidation&&!this.hideInputInfo},listeners(){return{...this.$listeners,input:e=>this.$emit("input",e.target.value)}}}},kR={class:"wt-time-input__wrapper"},_R=["disabled","max","value"];function SR(e,r,o,n,a,l){const s=i.resolveComponent("wt-label"),c=i.resolveComponent("wt-input-info");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-time-input--disabled":o.disabled,"wt-time-input--invalid":e.invalid},"wt-time-input"])},[l.hasLabel?(i.openBlock(),i.createBlock(s,i.mergeProps({key:0},o.labelProps,{disabled:o.disabled,invalid:e.invalid}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.normalizeProps(i.guardReactiveProps({label:o.label})),()=>[i.createTextVNode(i.toDisplayString(o.label),1)],!0)],void 0,!0),_:3},16,["disabled","invalid"])):i.createCommentVNode("",!0),i.createElementVNode("div",kR,[i.createElementVNode("input",i.mergeProps({disabled:o.disabled,max:o.maxValue,min:0,value:o.value,class:"wt-time-input__input",type:"number"},i.toHandlers(l.listeners,!0)),null,16,_R)]),l.showInfo?(i.openBlock(),i.createBlock(c,{key:1,invalid:e.invalid},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.validationText),1)],void 0,!0),_:1},8,["invalid"])):i.createCommentVNode("",!0)],2)}const ER=ye(xR,[["render",SR],["__scopeId","data-v-ae7cf0e8"]]),po=60*60,U3=60,LR={name:"WtTimepicker",mixins:[Un],model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:0},dateMode:{type:Boolean,default:!1},label:{type:String,default:""},format:{type:String,default:"hh:mm:ss"},disabled:{type:Boolean,default:!1},labelProps:{type:Object,description:"Object with props, passed down to wt-label as props"},noLabel:{type:Boolean,default:!1},required:{type:Boolean,default:!1,description:"Native input required attribute"}},computed:{isHour(){return this.format.includes("hh")},isMin(){return this.format.includes("mm")},isSec(){return this.format.includes("ss")},labelHours(){return this.noLabel||this.label?null:this.$t("webitelUI.timepicker.hour")},labelMin(){return this.noLabel||this.label?null:this.$t("webitelUI.timepicker.min")},labelSec(){return this.noLabel||this.label?null:this.$t("webitelUI.timepicker.sec")},hour:{get(){return this.dateMode?new Date(+this.value).getHours():Math.floor(this.value/po)},set(e){const r=this.dateMode?new Date(this.value).setHours(e):this.value-this.hour*po+e*po;this.$emit("input",r)}},min:{get(){return this.dateMode?new Date(+this.value).getMinutes():Math.floor(this.value/U3%60)},set(e){const r=this.dateMode?new Date(this.value).setMinutes(e):this.value-this.min*U3+e*U3;this.$emit("input",r)}},sec:{get(){return this.dateMode?new Date(+this.value).getSeconds():Math.floor(this.value%60)},set(e){const r=this.dateMode?new Date(this.value).setSeconds(e):this.value-this.sec+ +e;this.$emit("input",r)}},requiredLabel(){return this.required?`${this.label} (${this.format})*`:`${this.label} (${this.format})`}},methods:{onHoursBlurEvent(){const e=this.dateMode?new Date(this.value).setHours(this.hour):this.value-this.hour*po+this.hour*po;this.$emit("input",0),this.$nextTick(()=>{this.$emit("input",e)})}}},BR={class:"wt-timepicker__wrapper"};function $R(e,r,o,n,a,l){const s=i.resolveComponent("wt-label"),c=i.resolveComponent("wt-time-input"),d=i.resolveComponent("wt-input-info");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-timepicker--invalid":e.invalid},"wt-timepicker"])},[o.label||!o.noLabel?(i.openBlock(),i.createBlock(s,i.mergeProps({key:0},o.labelProps,{invalid:e.invalid}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.normalizeProps(i.guardReactiveProps({label:o.label})),()=>[i.createTextVNode(i.toDisplayString(l.requiredLabel),1)],!0)],void 0,!0),_:3},16,["invalid"])):i.createCommentVNode("",!0),i.createElementVNode("div",BR,[l.isHour?(i.openBlock(),i.createBlock(c,{key:0,disabled:o.disabled,label:l.labelHours,"max-value":o.dateMode?null:23,v:e.v,value:l.hour,"hide-input-info":"",onBlur:l.onHoursBlurEvent,onInput:r[0]||(r[0]=u=>l.hour=u)},null,8,["disabled","label","max-value","v","value","onBlur"])):i.createCommentVNode("",!0),l.isMin?(i.openBlock(),i.createBlock(c,{key:1,disabled:o.disabled,label:l.labelMin,"max-value":59,v:e.v,value:l.min,"hide-input-info":"",onInput:r[1]||(r[1]=u=>l.min=u)},null,8,["disabled","label","v","value"])):i.createCommentVNode("",!0),l.isSec?(i.openBlock(),i.createBlock(c,{key:2,disabled:o.disabled,label:l.labelSec,"max-value":59,v:e.v,value:l.sec,"hide-input-info":"",onInput:r[2]||(r[2]=u=>l.sec=u)},null,8,["disabled","label","v","value"])):i.createCommentVNode("",!0)]),e.isValidation?(i.openBlock(),i.createBlock(d,{key:1,invalid:e.invalid},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.validationText),1)],void 0,!0),_:1},8,["invalid"])):i.createCommentVNode("",!0)],2)}const AR=ye(LR,[["render",$R],["__scopeId","data-v-e9eb3b40"]]),MR=["top","right","bottom","left"],Ih=["start","end"],Rh=MR.reduce((e,r)=>e.concat(r,r+"-"+Ih[0],r+"-"+Ih[1]),[]),Yn=Math.min,Ur=Math.max,Gn=Math.round,Xn=Math.floor,N0=e=>({x:e,y:e}),OR={left:"right",right:"left",bottom:"top",top:"bottom"},TR={start:"end",end:"start"};function Fh(e,r,o){return Ur(e,Yn(r,o))}function mo(e,r){return typeof e=="function"?e(r):e}function er(e){return e.split("-")[0]}function tr(e){return e.split("-")[1]}function Hh(e){return e==="x"?"y":"x"}function zh(e){return e==="y"?"height":"width"}function y2(e){return["top","bottom"].includes(er(e))?"y":"x"}function qh(e){return Hh(y2(e))}function jh(e,r,o){o===void 0&&(o=!1);const n=tr(e),a=qh(e),l=zh(a);let s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(s=Jn(s)),[s,Jn(s)]}function NR(e){const r=Jn(e);return[Qn(e),r,Qn(r)]}function Qn(e){return e.replace(/start|end/g,r=>TR[r])}function PR(e,r,o){const n=["left","right"],a=["right","left"],l=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?r?a:n:r?n:a;case"left":case"right":return r?l:s;default:return[]}}function DR(e,r,o,n){const a=tr(e);let l=PR(er(e),o==="start",n);return a&&(l=l.map(s=>s+"-"+a),r&&(l=l.concat(l.map(Qn)))),l}function Jn(e){return e.replace(/left|right|bottom|top/g,r=>OR[r])}function VR(e){return{top:0,right:0,bottom:0,left:0,...e}}function IR(e){return typeof e!="number"?VR(e):{top:e,right:e,bottom:e,left:e}}function ei(e){const{x:r,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:r,right:r+n,bottom:o+a,x:r,y:o}}function Uh(e,r,o){let{reference:n,floating:a}=e;const l=y2(r),s=qh(r),c=zh(s),d=er(r),u=l==="y",f=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,p=n[c]/2-a[c]/2;let y;switch(d){case"top":y={x:f,y:n.y-a.height};break;case"bottom":y={x:f,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:h};break;case"left":y={x:n.x-a.width,y:h};break;default:y={x:n.x,y:n.y}}switch(tr(r)){case"start":y[s]-=p*(o&&u?-1:1);break;case"end":y[s]+=p*(o&&u?-1:1);break}return y}const RR=async(e,r,o)=>{const{placement:n="bottom",strategy:a="absolute",middleware:l=[],platform:s}=o,c=l.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(r));let u=await s.getElementRects({reference:e,floating:r,strategy:a}),{x:f,y:h}=Uh(u,n,d),p=n,y={},C=0;for(let w=0;w<c.length;w++){const{name:x,fn:v}=c[w],{x:b,y:_,data:k,reset:$}=await v({x:f,y:h,initialPlacement:n,placement:p,strategy:a,middlewareData:y,rects:u,platform:s,elements:{reference:e,floating:r}});f=b??f,h=_??h,y={...y,[x]:{...y[x],...k}},$&&C<=50&&(C++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(u=$.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:a}):$.rects),{x:f,y:h}=Uh(u,p,d)),w=-1)}return{x:f,y:h,placement:p,strategy:a,middlewareData:y}};async function W3(e,r){var o;r===void 0&&(r={});const{x:n,y:a,platform:l,rects:s,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:y=0}=mo(r,e),C=IR(y),x=c[p?h==="floating"?"reference":"floating":h],v=ei(await l.getClippingRect({element:(o=await(l.isElement==null?void 0:l.isElement(x)))==null||o?x:x.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),b=h==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),k=await(l.isElement==null?void 0:l.isElement(_))?await(l.getScale==null?void 0:l.getScale(_))||{x:1,y:1}:{x:1,y:1},$=ei(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:_,strategy:d}):b);return{top:(v.top-$.top+C.top)/k.y,bottom:($.bottom-v.bottom+C.bottom)/k.y,left:(v.left-$.left+C.left)/k.x,right:($.right-v.right+C.right)/k.x}}function FR(e,r,o){return(e?[...o.filter(a=>tr(a)===e),...o.filter(a=>tr(a)!==e)]:o.filter(a=>er(a)===a)).filter(a=>e?tr(a)===e||(r?Qn(a)!==a:!1):!0)}const HR=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var o,n,a;const{rects:l,middlewareData:s,placement:c,platform:d,elements:u}=r,{crossAxis:f=!1,alignment:h,allowedPlacements:p=Rh,autoAlignment:y=!0,...C}=mo(e,r),w=h!==void 0||p===Rh?FR(h||null,y,p):p,x=await W3(r,C),v=((o=s.autoPlacement)==null?void 0:o.index)||0,b=w[v];if(b==null)return{};const _=jh(b,l,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(c!==b)return{reset:{placement:w[0]}};const k=[x[er(b)],x[_[0]],x[_[1]]],$=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:b,overflows:k}],R=w[v+1];if(R)return{data:{index:v+1,overflows:$},reset:{placement:R}};const D=$.map(Z=>{const T=tr(Z.placement);return[Z.placement,T&&f?Z.overflows.slice(0,2).reduce((W,Y)=>W+Y,0):Z.overflows[0],Z.overflows]}).sort((Z,T)=>Z[1]-T[1]),F=((a=D.filter(Z=>Z[2].slice(0,tr(Z[0])?2:3).every(T=>T<=0))[0])==null?void 0:a[0])||D[0][0];return F!==c?{data:{index:v+1,overflows:$},reset:{placement:F}}:{}}}},zR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var o,n;const{placement:a,middlewareData:l,rects:s,initialPlacement:c,platform:d,elements:u}=r,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:w=!0,...x}=mo(e,r);if((o=l.arrow)!=null&&o.alignmentOffset)return{};const v=er(a),b=y2(c),_=er(c)===c,k=await(d.isRTL==null?void 0:d.isRTL(u.floating)),$=p||(_||!w?[Jn(c)]:NR(c)),R=C!=="none";!p&&R&&$.push(...DR(c,w,C,k));const D=[c,...$],I=await W3(r,x),F=[];let Z=((n=l.flip)==null?void 0:n.overflows)||[];if(f&&F.push(I[v]),h){const oe=jh(a,s,k);F.push(I[oe[0]],I[oe[1]])}if(Z=[...Z,{placement:a,overflows:F}],!F.every(oe=>oe<=0)){var T,W;const oe=(((T=l.flip)==null?void 0:T.index)||0)+1,ae=D[oe];if(ae)return{data:{index:oe,overflows:Z},reset:{placement:ae}};let J=(W=Z.filter(E=>E.overflows[0]<=0).sort((E,j)=>E.overflows[1]-j.overflows[1])[0])==null?void 0:W.placement;if(!J)switch(y){case"bestFit":{var Y;const E=(Y=Z.filter(j=>{if(R){const N=y2(j.placement);return N===b||N==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(N=>N>0).reduce((N,U)=>N+U,0)]).sort((j,N)=>j[1]-N[1])[0])==null?void 0:Y[0];E&&(J=E);break}case"initialPlacement":J=c;break}if(a!==J)return{reset:{placement:J}}}return{}}}};async function qR(e,r){const{placement:o,platform:n,elements:a}=e,l=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=er(o),c=tr(o),d=y2(o)==="y",u=["left","top"].includes(s)?-1:1,f=l&&d?-1:1,h=mo(r,e);let{mainAxis:p,crossAxis:y,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof C=="number"&&(y=c==="end"?C*-1:C),d?{x:y*f,y:p*u}:{x:p*u,y:y*f}}const jR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var o,n;const{x:a,y:l,placement:s,middlewareData:c}=r,d=await qR(r,e);return s===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:a+d.x,y:l+d.y,data:{...d,placement:s}}}}},UR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:o,y:n,placement:a}=r,{mainAxis:l=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...d}=mo(e,r),u={x:o,y:n},f=await W3(r,d),h=y2(er(a)),p=Hh(h);let y=u[p],C=u[h];if(l){const x=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=y+f[x],_=y-f[v];y=Fh(b,y,_)}if(s){const x=h==="y"?"top":"left",v=h==="y"?"bottom":"right",b=C+f[x],_=C-f[v];C=Fh(b,C,_)}const w=c.fn({...r,[p]:y,[h]:C});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:l,[h]:s}}}}}};function ti(){return typeof window<"u"}function Wr(e){return Z3(e)?(e.nodeName||"").toLowerCase():"#document"}function e0(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function P0(e){var r;return(r=(Z3(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Z3(e){return ti()?e instanceof Node||e instanceof e0(e).Node:!1}function g0(e){return ti()?e instanceof Element||e instanceof e0(e).Element:!1}function D0(e){return ti()?e instanceof HTMLElement||e instanceof e0(e).HTMLElement:!1}function Wh(e){return!ti()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof e0(e).ShadowRoot}function go(e){const{overflow:r,overflowX:o,overflowY:n,display:a}=y0(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function WR(e){return["table","td","th"].includes(Wr(e))}function ri(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function K3(e){const r=Y3(),o=g0(e)?y0(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function ZR(e){let r=yr(e);for(;D0(r)&&!b2(r);){if(K3(r))return r;if(ri(r))return null;r=yr(r)}return null}function Y3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function b2(e){return["html","body","#document"].includes(Wr(e))}function y0(e){return e0(e).getComputedStyle(e)}function oi(e){return g0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yr(e){if(Wr(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Wh(e)&&e.host||P0(e);return Wh(r)?r.host:r}function Zh(e){const r=yr(e);return b2(r)?e.ownerDocument?e.ownerDocument.body:e.body:D0(r)&&go(r)?r:Zh(r)}function yo(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);const a=Zh(e),l=a===((n=e.ownerDocument)==null?void 0:n.body),s=e0(a);if(l){const c=G3(s);return r.concat(s,s.visualViewport||[],go(a)?a:[],c&&o?yo(c):[])}return r.concat(a,yo(a,[],o))}function G3(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kh(e){const r=y0(e);let o=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const a=D0(e),l=a?e.offsetWidth:o,s=a?e.offsetHeight:n,c=Gn(o)!==l||Gn(n)!==s;return c&&(o=l,n=s),{width:o,height:n,$:c}}function X3(e){return g0(e)?e:e.contextElement}function w2(e){const r=X3(e);if(!D0(r))return N0(1);const o=r.getBoundingClientRect(),{width:n,height:a,$:l}=Kh(r);let s=(l?Gn(o.width):o.width)/n,c=(l?Gn(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const KR=N0(0);function Yh(e){const r=e0(e);return!Y3()||!r.visualViewport?KR:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function YR(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==e0(e)?!1:r}function Zr(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);const a=e.getBoundingClientRect(),l=X3(e);let s=N0(1);r&&(n?g0(n)&&(s=w2(n)):s=w2(e));const c=YR(l,o,n)?Yh(l):N0(0);let d=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,f=a.width/s.x,h=a.height/s.y;if(l){const p=e0(l),y=n&&g0(n)?e0(n):n;let C=p,w=G3(C);for(;w&&n&&y!==C;){const x=w2(w),v=w.getBoundingClientRect(),b=y0(w),_=v.left+(w.clientLeft+parseFloat(b.paddingLeft))*x.x,k=v.top+(w.clientTop+parseFloat(b.paddingTop))*x.y;d*=x.x,u*=x.y,f*=x.x,h*=x.y,d+=_,u+=k,C=e0(w),w=G3(C)}}return ei({width:f,height:h,x:d,y:u})}function Q3(e,r){const o=oi(e).scrollLeft;return r?r.left+o:Zr(P0(e)).left+o}function Gh(e,r,o){o===void 0&&(o=!1);const n=e.getBoundingClientRect(),a=n.left+r.scrollLeft-(o?0:Q3(e,n)),l=n.top+r.scrollTop;return{x:a,y:l}}function GR(e){let{elements:r,rect:o,offsetParent:n,strategy:a}=e;const l=a==="fixed",s=P0(n),c=r?ri(r.floating):!1;if(n===s||c&&l)return o;let d={scrollLeft:0,scrollTop:0},u=N0(1);const f=N0(0),h=D0(n);if((h||!h&&!l)&&((Wr(n)!=="body"||go(s))&&(d=oi(n)),D0(n))){const y=Zr(n);u=w2(n),f.x=y.x+n.clientLeft,f.y=y.y+n.clientTop}const p=s&&!h&&!l?Gh(s,d,!0):N0(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-d.scrollLeft*u.x+f.x+p.x,y:o.y*u.y-d.scrollTop*u.y+f.y+p.y}}function XR(e){return Array.from(e.getClientRects())}function QR(e){const r=P0(e),o=oi(e),n=e.ownerDocument.body,a=Ur(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=Ur(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+Q3(e);const c=-o.scrollTop;return y0(n).direction==="rtl"&&(s+=Ur(r.clientWidth,n.clientWidth)-a),{width:a,height:l,x:s,y:c}}function JR(e,r){const o=e0(e),n=P0(e),a=o.visualViewport;let l=n.clientWidth,s=n.clientHeight,c=0,d=0;if(a){l=a.width,s=a.height;const u=Y3();(!u||u&&r==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:l,height:s,x:c,y:d}}function eF(e,r){const o=Zr(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,l=D0(e)?w2(e):N0(1),s=e.clientWidth*l.x,c=e.clientHeight*l.y,d=a*l.x,u=n*l.y;return{width:s,height:c,x:d,y:u}}function Xh(e,r,o){let n;if(r==="viewport")n=JR(e,o);else if(r==="document")n=QR(P0(e));else if(g0(r))n=eF(r,o);else{const a=Yh(e);n={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return ei(n)}function Qh(e,r){const o=yr(e);return o===r||!g0(o)||b2(o)?!1:y0(o).position==="fixed"||Qh(o,r)}function tF(e,r){const o=r.get(e);if(o)return o;let n=yo(e,[],!1).filter(c=>g0(c)&&Wr(c)!=="body"),a=null;const l=y0(e).position==="fixed";let s=l?yr(e):e;for(;g0(s)&&!b2(s);){const c=y0(s),d=K3(s);!d&&c.position==="fixed"&&(a=null),(l?!d&&!a:!d&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||go(s)&&!d&&Qh(e,s))?n=n.filter(f=>f!==s):a=c,s=yr(s)}return r.set(e,n),n}function rF(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e;const s=[...o==="clippingAncestors"?ri(r)?[]:tF(r,this._c):[].concat(o),n],c=s[0],d=s.reduce((u,f)=>{const h=Xh(r,f,a);return u.top=Ur(h.top,u.top),u.right=Yn(h.right,u.right),u.bottom=Yn(h.bottom,u.bottom),u.left=Ur(h.left,u.left),u},Xh(r,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function oF(e){const{width:r,height:o}=Kh(e);return{width:r,height:o}}function nF(e,r,o){const n=D0(r),a=P0(r),l=o==="fixed",s=Zr(e,!0,l,r);let c={scrollLeft:0,scrollTop:0};const d=N0(0);if(n||!n&&!l)if((Wr(r)!=="body"||go(a))&&(c=oi(r)),n){const p=Zr(r,!0,l,r);d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}else a&&(d.x=Q3(a));const u=a&&!n&&!l?Gh(a,c):N0(0),f=s.left+c.scrollLeft-d.x-u.x,h=s.top+c.scrollTop-d.y-u.y;return{x:f,y:h,width:s.width,height:s.height}}function J3(e){return y0(e).position==="static"}function Jh(e,r){if(!D0(e)||y0(e).position==="fixed")return null;if(r)return r(e);let o=e.offsetParent;return P0(e)===o&&(o=o.ownerDocument.body),o}function ep(e,r){const o=e0(e);if(ri(e))return o;if(!D0(e)){let a=yr(e);for(;a&&!b2(a);){if(g0(a)&&!J3(a))return a;a=yr(a)}return o}let n=Jh(e,r);for(;n&&WR(n)&&J3(n);)n=Jh(n,r);return n&&b2(n)&&J3(n)&&!K3(n)?o:n||ZR(e)||o}const iF=async function(e){const r=this.getOffsetParent||ep,o=this.getDimensions,n=await o(e.floating);return{reference:nF(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function aF(e){return y0(e).direction==="rtl"}const lF={convertOffsetParentRelativeRectToViewportRelativeRect:GR,getDocumentElement:P0,getClippingRect:rF,getOffsetParent:ep,getElementRects:iF,getClientRects:XR,getDimensions:oF,getScale:w2,isElement:g0,isRTL:aF};function tp(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function sF(e,r){let o=null,n;const a=P0(e);function l(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),l();const u=e.getBoundingClientRect(),{left:f,top:h,width:p,height:y}=u;if(c||r(),!p||!y)return;const C=Xn(h),w=Xn(a.clientWidth-(f+p)),x=Xn(a.clientHeight-(h+y)),v=Xn(f),_={rootMargin:-C+"px "+-w+"px "+-x+"px "+-v+"px",threshold:Ur(0,Yn(1,d))||1};let k=!0;function $(R){const D=R[0].intersectionRatio;if(D!==d){if(!k)return s();D?s(!1,D):n=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!tp(u,e.getBoundingClientRect())&&s(),k=!1}try{o=new IntersectionObserver($,{..._,root:a.ownerDocument})}catch{o=new IntersectionObserver($,_)}o.observe(e)}return s(!0),l}function cF(e,r,o,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,u=X3(e),f=a||l?[...u?yo(u):[],...yo(r)]:[];f.forEach(v=>{a&&v.addEventListener("scroll",o,{passive:!0}),l&&v.addEventListener("resize",o)});const h=u&&c?sF(u,o):null;let p=-1,y=null;s&&(y=new ResizeObserver(v=>{let[b]=v;b&&b.target===u&&y&&(y.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=y)==null||_.observe(r)})),o()}),u&&!d&&y.observe(u),y.observe(r));let C,w=d?Zr(e):null;d&&x();function x(){const v=Zr(e);w&&!tp(w,v)&&o(),w=v,C=requestAnimationFrame(x)}return o(),()=>{var v;f.forEach(b=>{a&&b.removeEventListener("scroll",o),l&&b.removeEventListener("resize",o)}),h==null||h(),(v=y)==null||v.disconnect(),y=null,d&&cancelAnimationFrame(C)}}const dF=jR,uF=HR,fF=UR,hF=zR,pF=(e,r,o)=>{const n=new Map,a={platform:lF,...o},l={...a.platform,_c:n};return RR(e,r,{...a,platform:l})};function mF(e){return e!=null&&typeof e=="object"&&"$el"in e}function rp(e){if(mF(e)){const r=e.$el;return Z3(r)&&Wr(r)==="#comment"?null:r}return e}function bo(e){return typeof e=="function"?e():i.unref(e)}function op(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function np(e,r){const o=op(e);return Math.round(r*o)/o}function gF(e,r,o){o===void 0&&(o={});const n=o.whileElementsMounted,a=i.computed(()=>{var D;return(D=bo(o.open))!=null?D:!0}),l=i.computed(()=>bo(o.middleware)),s=i.computed(()=>{var D;return(D=bo(o.placement))!=null?D:"bottom"}),c=i.computed(()=>{var D;return(D=bo(o.strategy))!=null?D:"absolute"}),d=i.computed(()=>{var D;return(D=bo(o.transform))!=null?D:!0}),u=i.computed(()=>rp(e.value)),f=i.computed(()=>rp(r.value)),h=i.ref(0),p=i.ref(0),y=i.ref(c.value),C=i.ref(s.value),w=i.shallowRef({}),x=i.ref(!1),v=i.computed(()=>{const D={position:y.value,left:"0",top:"0"};if(!f.value)return D;const I=np(f.value,h.value),F=np(f.value,p.value);return d.value?{...D,transform:"translate("+I+"px, "+F+"px)",...op(f.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:I+"px",top:F+"px"}});let b;function _(){if(u.value==null||f.value==null)return;const D=a.value;pF(u.value,f.value,{middleware:l.value,placement:s.value,strategy:c.value}).then(I=>{h.value=I.x,p.value=I.y,y.value=I.strategy,C.value=I.placement,w.value=I.middlewareData,x.value=D!==!1})}function k(){typeof b=="function"&&(b(),b=void 0)}function $(){if(k(),n===void 0){_();return}if(u.value!=null&&f.value!=null){b=n(u.value,f.value,_);return}}function R(){a.value||(x.value=!1)}return i.watch([l,s,c,a],_,{flush:"sync"}),i.watch([u,f],$,{flush:"sync"}),i.watch(a,R,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(k),{x:i.shallowReadonly(h),y:i.shallowReadonly(p),strategy:i.shallowReadonly(y),placement:i.shallowReadonly(C),middlewareData:i.shallowReadonly(w),isPositioned:i.shallowReadonly(x),floatingStyles:v,update:_}}const ip={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},ap={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"},lp=({target:e,triggers:r,show:o,hide:n})=>{const a=()=>{((c,d)=>{d.forEach(u=>{const f=ip[u];f?c.addEventListener(f,o):console.log(`No Tooltip Show event for ${u} trigger`);const h=ap[u];h?c.addEventListener(h,n):console.log(`No Tooltip Hide event for ${u} trigger`)})})(e.value,r)},l=()=>{((c,d)=>{d.forEach(u=>{const f=ip[u];f?c.removeEventListener(f,o):console.log(`No Tooltip Show event for ${u} trigger`);const h=ap[u];h?c.removeEventListener(h,n):console.log(`No Tooltip Hide event for ${u} trigger`)})})(e.value,r)};i.onMounted(()=>a()),i.onBeforeUnmount(()=>l())},yF={__name:"wt-tooltip-floating",props:{triggers:{type:Array,default:()=>[]}},emits:["show","hide"],setup(e,{emit:r}){const o=e,n=r,a=i.ref(null);return lp({target:a,triggers:o.triggers,show:()=>n("show"),hide:()=>n("hide")}),(l,s)=>(i.openBlock(),i.createElementBlock("aside",{ref_key:"floating",ref:a,class:"wt-tooltip-floating"},[i.renderSlot(l.$slots,"default")],512))}},bF=ye({__name:"wt-tooltip",props:{visible:{type:Boolean,default:!1},placement:{type:String,default:"auto"},popperTriggers:{type:Array,default:()=>[]},triggers:{type:Array,default:()=>["hover","focus","touch"]},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},disableClickAway:{type:Boolean,default:!1}},emits:["update:visible"],setup(e,{emit:r}){const o=e,n=r,a=i.useTemplateRef("activator"),l=i.useTemplateRef("floating"),s=i.useTemplateRef("floatingChild"),c=i.ref(o.visible),d=()=>{n("update:visible",c.value)},u=(w={})=>{o.disabled||c.value||(c.value=!0,w.usedByTooltip=!0,d(),p())},f=(w={})=>{var v;const x=(v=s.value)==null?void 0:v.contains(w.target);!c.value||w.usedByTooltip||x||(c.value=!1,d(),y())},h=(w={})=>{o.disableClickAway||f(w)},p=()=>{window.addEventListener("scroll",f,!0)},y=()=>{window.removeEventListener("scroll",f,!0)},{floatingStyles:C}=gF(a,l,{placement:o.placement==="auto"?null:o.placement,strategy:"fixed",whileElementsMounted:cF,middleware:[fF(),dF(4),o.placement==="auto"?uF():hF()]});return lp({target:a,triggers:o.triggers,show:u,hide:f}),i.watch(()=>o.visible,w=>{w?u():f()}),i.onMounted(()=>{o.visible&&u()}),i.onBeforeUnmount(()=>{y()}),(w,x)=>{const v=i.resolveDirective("clickaway");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-tooltip--visible":c.value},"wt-tooltip"])},[i.createElementVNode("div",{ref_key:"activator",ref:a,class:"wt-tooltip__activator"},[i.renderSlot(w.$slots,"activator",i.normalizeProps(i.guardReactiveProps({visible:c.value})),void 0,!0)],512),c.value?i.withDirectives((i.openBlock(),i.createBlock(yF,{key:0,ref_key:"floating",ref:l,class:i.normalizeClass([[e.popperClass],"wt-tooltip__floating"]),style:i.normalizeStyle(i.unref(C)),triggers:e.popperTriggers,onHide:f,onShow:u},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"floatingChild",ref:s},[i.renderSlot(w.$slots,"default",i.normalizeProps(i.guardReactiveProps({hide:f})),void 0,!0)],512)],void 0,!0),_:3},8,["class","style","triggers"])),[[v,h]]):i.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-b8fd5806"]]),wF={class:"wt-tree-line"},vF={class:"wt-tree-line__icon-wrapper"},CF={class:"wt-tree-line__label"},xF=i.defineComponent({__name:"wt-tree-line",props:{modelValue:{},data:{},itemLabel:{},itemData:{},childrenProp:{default:"children"},nestedLevel:{default:0},lastChild:{type:Boolean,default:!1},nestedIcons:{},nextElement:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},searchedProp:{default:"searched"}},emits:["openParent","update:modelValue"],setup(e,{emit:r}){const o=e,n=r,a=i.computed(()=>o.itemLabel?o.data[o.itemLabel]:o.data),l=i.computed(()=>{const y=o.nestedIcons?[...o.nestedIcons]:[];return o.nestedLevel===0||y.push({icon:"tree-line",hidden:!o.nextElement}),y}),s=()=>o.itemData?o.modelValue.includes(o.data[o.itemData]):!!o.modelValue.find(C=>ho(C,o.data)),c=i.computed(()=>o.multiple?s():o.itemData?o.data[o.itemData]===o.modelValue:ho(o.modelValue,o.data)),d=()=>{const y=o.itemData?o.data[o.itemData]:o.data;let C;if(o.itemData?C=o.modelValue.indexOf(o.data[o.itemData]):C=o.modelValue.findIndex(x=>ho(x,o.data)),C===-1){const x=[...o.modelValue];x.push(y),n("update:modelValue",x);return}const w=[...o.modelValue];w.splice(C,1),n("update:modelValue",w)},u=()=>{var y;if(o.multiple&&!o.data.service){d();return}if((y=o.data[o.childrenProp])!=null&&y.length){f.value=!f.value;return}n("update:modelValue",o.itemData?o.data[o.itemData]:o.data)},f=i.ref(!0),h=()=>{o.nestedLevel>0&&n("openParent")},p=()=>{f.value=!1,h()};return i.onMounted(()=>{c.value&&h(),o.data[o.searchedProp]&&h()}),i.watch(()=>o.modelValue,()=>{c.value&&h()}),(y,C)=>{const w=i.resolveComponent("wt-icon"),x=i.resolveComponent("wt-icon-btn"),v=i.resolveComponent("wt-tree-line",!0);return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",wF,[i.createElementVNode("div",vF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.nestedIcons,(b,_)=>(i.openBlock(),i.createBlock(w,{key:_,icon:b.icon,class:i.normalizeClass({hidden:b.hidden})},null,8,["icon","class"]))),128)),y.nestedLevel>=1?(i.openBlock(),i.createBlock(w,{key:0,icon:y.lastChild?"tree-corner":"tree-cross"},null,8,["icon"])):i.createCommentVNode("",!0),y.data[y.childrenProp]&&y.data[y.childrenProp].length?(i.openBlock(),i.createBlock(x,{key:1,icon:f.value?"plus":"minus",onClick:C[0]||(C[0]=b=>f.value=!f.value)},null,8,["icon"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:i.normalizeClass([{active:c.value},"wt-tree-line__label-wrapper"]),onClick:u},[i.createElementVNode("p",CF,i.toDisplayString(a.value),1),c.value?(i.openBlock(),i.createBlock(w,{key:0,icon:"chat-message-status-sent"})):i.createCommentVNode("",!0)],2)]),i.withDirectives(i.createVNode(fc,null,{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.data[y.childrenProp],(b,_)=>(i.openBlock(),i.createBlock(v,{key:_,"model-value":y.modelValue,data:b,"children-prop":y.childrenProp,"item-label":y.itemLabel,"item-data":y.itemData,"nested-level":y.nestedLevel+1,"next-element":!!y.data[y.childrenProp][_+1],"nested-icons":l.value,"last-child":_===y.data[y.childrenProp].length-1,multiple:y.multiple,onOpenParent:p,"onUpdate:modelValue":C[1]||(C[1]=k=>n("update:modelValue",k))},null,8,["model-value","data","children-prop","item-label","item-data","nested-level","next-element","nested-icons","last-child","multiple"]))),128))])],void 0,!0),_:1},512),[[i.vShow,!f.value]])],64)}}}),ed={Tree:"tree",List:"list"},kF={class:"wt-tree"},_F={key:0,class:"wt-tree__content"},SF={key:1,class:"wt-tree__list-content"},EF=["onClick"],LF=i.defineComponent({__name:"wt-tree",props:{modelValue:{},data:{},itemLabel:{},itemData:{},mode:{default:ed.Tree},childrenProp:{default:"children"},multiple:{type:Boolean}},emits:["select","update:modelValue"],setup(e,{emit:r}){const o=e,n=r,a=i.computed(()=>{const c=[],d=u=>{c.push(u),u[o.childrenProp]&&u[o.childrenProp].forEach(f=>{d(f)})};return o.data.forEach(u=>{d(u)}),c}),l=c=>{n("update:modelValue",o.itemData?c[o.itemData]:c)},s=c=>o.itemData?c[o.itemData]===o.modelValue:ho(o.modelValue,c);return(c,d)=>{const u=i.resolveComponent("wt-icon");return i.openBlock(),i.createElementBlock("div",kF,[c.mode===i.unref(ed).Tree?(i.openBlock(),i.createElementBlock("div",_F,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.data,(f,h)=>(i.openBlock(),i.createBlock(xF,{key:h,"model-value":c.modelValue,"item-label":c.itemLabel,"item-data":c.itemData,data:f,"children-prop":c.childrenProp,multiple:c.multiple,"onUpdate:modelValue":d[0]||(d[0]=p=>n("update:modelValue",p))},null,8,["model-value","item-label","item-data","data","children-prop","multiple"]))),128))])):i.createCommentVNode("",!0),c.mode===i.unref(ed).List?(i.openBlock(),i.createElementBlock("div",SF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(f,h)=>(i.openBlock(),i.createElementBlock("span",{key:h,class:i.normalizeClass(["wt-tree__label-wrapper",{active:s(f)}])},[i.createElementVNode("p",{class:"wt-tree__label",onClick:p=>l(f)},i.toDisplayString(c.itemLabel?f[c.itemLabel]:f),9,EF),s(f)?(i.openBlock(),i.createBlock(u,{key:0,icon:"chat-message-status-sent",class:"wt-tree__label-icon"})):i.createCommentVNode("",!0)],2))),128))])):i.createCommentVNode("",!0)])}}}),BF=({headers:e})=>{const{t:r}=Br();return{tableHeaders:i.computed(()=>e.filter(n=>n.show===void 0||n.show).map(n=>!n.text&&n.locale?{...n,text:typeof n.locale=="string"?r(n.locale):r(...n.locale)}:n))}},$F={class:"wt-tree-table-td__content"},AF={key:0,class:"wt-tree-table-td__icon-wrapper"},MF={key:0,class:"wt-tree-table-td__actions"},OF={class:"wt-tree-table-td__content"},TF=ye(i.defineComponent({__name:"wt-tree-table-row",props:{data:{},rowPosition:{},childrenProp:{},selectable:{type:Boolean,default:!1},selectedElements:{},dataHeaders:{},gridActions:{type:Boolean,default:!0},nestingLevel:{default:0},searchedProp:{default:"searched"}},emits:["update:selected","expanded-collapse"],setup(e,{emit:r}){const o=e,n=r,a=i.ref(!0),l=i.computed(()=>o.nestingLevel),s=i.computed(()=>o.nestingLevel+1),c=i.computed(()=>o.selectedElements.includes(o.data)),d=()=>{a.value=!1,n("expanded-collapse")},u=(f,h=0)=>{if(f[o.searchedProp]&&h)return!0;if(Array.isArray(f[o.childrenProp])){for(const p of f[o.childrenProp])if(u(p,h+1))return!0}return!1};return i.onMounted(()=>{o.searchedProp&&u(o.data)&&d()}),(f,h)=>{const p=i.resolveComponent("wt-tree-table-row",!0);return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("tr",{class:i.normalizeClass([[{"wt-tree-table-row--alternate":f.rowPosition%2}],"wt-tree-table-row"])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.dataHeaders,(y,C)=>(i.openBlock(),i.createElementBlock("td",{key:C,class:"wt-tree-table-td"},[i.createElementVNode("div",$F,[C?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",AF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:"wt-tree-table-row__tree-space"}))),128)),f.selectable?(i.openBlock(),i.createBlock(Ms,{key:0,selected:c.value,onChange:h[0]||(h[0]=w=>f.$emit("update:selected",{data:f.data,select:w}))},null,8,["selected"])):i.createCommentVNode("",!0),f.data[f.childrenProp]?(i.openBlock(),i.createBlock(p7,{key:1,icon:a.value?"tree-expand":"tree-collapse",onClick:h[1]||(h[1]=w=>a.value=!a.value)},null,8,["icon"])):i.createCommentVNode("",!0)])),i.renderSlot(f.$slots,y.value,{index:f.rowPosition,item:f.data},()=>[i.createTextVNode(i.toDisplayString(f.data[y.value]),1)],!0)])]))),128)),f.gridActions?(i.openBlock(),i.createElementBlock("td",MF,[i.createElementVNode("div",OF,[i.renderSlot(f.$slots,"actions",{index:f.rowPosition,item:f.data},void 0,!0)])])):i.createCommentVNode("",!0)],2),a.value?i.createCommentVNode("",!0):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(f.data[f.childrenProp],(y,C)=>(i.openBlock(),i.createBlock(p,{key:C,"children-prop":f.childrenProp,data:y,"data-headers":f.dataHeaders,"nesting-level":s.value,"row-position":f.rowPosition,"searched-prop":f.searchedProp,selectable:f.selectable,"selected-elements":f.selectedElements,onExpandedCollapse:d,"onUpdate:selected":h[2]||(h[2]=w=>f.$emit("update:selected",{data:w.data,select:w.select}))},i.createSlots({actions:i.withCtx(({item:w})=>[i.renderSlot(f.$slots,"actions",{index:f.rowPosition,item:w},void 0,!0)]),_:2},[i.renderList(f.dataHeaders,(w,x)=>({name:w.value,fn:i.withCtx(({item:v})=>[i.renderSlot(f.$slots,w.value,{index:f.rowPosition,item:v},()=>[i.createElementVNode("div",null,i.toDisplayString(v[w.value]),1)],!0)])}))]),1032,["children-prop","data","data-headers","nesting-level","row-position","searched-prop","selectable","selected-elements"]))),128))],64)}}}),[["__scopeId","data-v-10f86df9"]]),NF={class:"wt-tree-table"},PF={class:"wt-tree-table-wrapper"},DF={class:"wt-tree-table-head"},VF={class:"wt-tree-table-tr wt-tree-table-tr-head"},IF=["onClick"],RF={class:"wt-tree-table-th__content"},FF={class:"wt-tree-table-th__text"},HF={key:0,class:"wt-tree-table-th__actions"},zF={class:"wt-tree-table-th__content"},qF={class:"wt-tree-table-body"},sp={WtActionBar:KS,WtImage:f7,WtEmpty:oO,WtLogo:_T,WtAvatar:IE,WtBadge:UE,WtIcon:h7,WtIndicator:qO,WtInputInfo:s7,WtButton:GE,WtChip:aL,WtConfirmDialog:cL,WtDivider:NM,WtTooltip:bF,WtLabel:lT,WtLoader:vT,WtRoundedAction:qD,WtReplaceTransition:qS,WtCheckbox:Ms,WtDatepicker:MM,WtIconBtn:p7,WtInput:WO,WtIntersectionObserver:oT,WtHint:VO,WtNotification:rN,WtPopup:ND,WtProgressBar:VD,WtRadio:zD,WtSearchBar:KD,WtSelect:PV,WtSlider:RV,WtSwitcher:tI,WtTabs:MI,WtTagsInput:mR,WtTimeInput:ER,WtTimepicker:AR,WtTextarea:CR,WtAppHeader:QS,WtHeadline:$O,WtHeadlineNav:NO,WtNavigationBar:QT,WtAppNavigator:vE,WtFiltersPanelWrapper:kO,WtHeaderActions:NE,WtErrorPage:hO,WtNotificationsBar:dN,WtPageWrapper:bN,WtDualPanel:FM,WtPagination:ON,WtPlayer:PN,WtPopover:hD,WtStatusSelect:jV,WtTable:mI,WtTree:LF,WtTreeTable:ye(i.defineComponent({__name:"wt-tree-table",props:{headers:{},data:{},sortable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0},selected:{},gridActions:{type:Boolean,default:!0},childrenProp:{},searchedProp:{default:"searched"}},emits:["sort","update:selected"],setup(e,{emit:r}){const o=e,n=r,a=w=>w[o.childrenProp]&&Array.isArray(w[o.childrenProp]),l=w=>{const x=[],v=b=>{if(b._isSelected)return[b];a(b)&&b[o.childrenProp].forEach(v)};return w.forEach(v),x},s=w=>{const x=[],v=b=>{x.push(b),a(b)&&b[o.childrenProp].forEach(v)};return w.forEach(v),x},c=i.computed(()=>o.selected||l(o.data)),d=i.computed(()=>c.value.length===s(o.data).length&&s(o.data).length>0),{tableHeaders:u}=BF({headers:o.headers}),f=({sort:w})=>o.sortable&&w!==void 0,h=w=>{if(!f(w))return;const x=xf(w.sort);n("sort",w,x)},p=(w,x)=>{w.forEach(v=>{v._isSelected=x,a(v)&&p(v[o.childrenProp],x)})},y=()=>{o.selected?n("update:selected",d.value?[]:[...s(o.data)]):d.value?p(o.data,!1):p(o.data,!0)},C=(w,x)=>{o.selected?x?n("update:selected",[...c.value,w]):n("update:selected",c.value.filter(v=>v!==w)):w._isSelected=!w._isSelected};return(w,x)=>{const v=i.resolveComponent("wt-icon");return i.openBlock(),i.createElementBlock("div",NF,[i.createElementVNode("table",PF,[i.createElementVNode("thead",DF,[i.createElementVNode("tr",VF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),(b,_)=>(i.openBlock(),i.createElementBlock("th",{key:_,class:i.normalizeClass([[{"wt-tree-table-th--sortable":f(b)},`wt-tree-table-th--sort-${b.sort}`],"wt-tree-table-th"]),style:i.normalizeStyle(b.width?`min-width:${b.width}`:""),onClick:k=>h(b)},[i.createElementVNode("div",RF,[_===0&&w.selectable?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:x[0]||(x[0]=i.withModifiers(()=>{},["stop"]))},[i.createVNode(i.unref(Ms),{selected:d.value,onChange:y},null,8,["selected"])])):i.createCommentVNode("",!0),i.createElementVNode("div",FF,i.toDisplayString(b.text),1),w.sortable?(i.openBlock(),i.createBlock(v,{key:1,class:"wt-tree-table-th-sort-arrow wt-tree-table-th-sort-arrow--asc",icon:"sort-arrow-up",size:"sm"})):i.createCommentVNode("",!0),w.sortable?(i.openBlock(),i.createBlock(v,{key:2,class:"wt-tree-table-th-sort-arrow wt-tree-table-th-sort-arrow--desc",icon:"sort-arrow-down",size:"sm"})):i.createCommentVNode("",!0)])],14,IF))),128)),w.gridActions?(i.openBlock(),i.createElementBlock("th",HF,[i.createElementVNode("div",zF,[i.renderSlot(w.$slots,"actions-header",{},void 0,!0)])])):i.createCommentVNode("",!0)])]),i.createElementVNode("tbody",qF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.data,(b,_)=>(i.openBlock(),i.createBlock(TF,{key:_,"row-position":_,"data-headers":i.unref(u),data:b,selectable:w.selectable,"children-prop":w.childrenProp,"selected-elements":c.value,"searched-prop":w.searchedProp,"onUpdate:selected":x[1]||(x[1]=k=>C(k.data,k.select))},i.createSlots({actions:i.withCtx(({item:k})=>[i.renderSlot(w.$slots,"actions",{item:k},void 0,!0)]),_:2},[i.renderList(i.unref(u),(k,$)=>({name:k.value,fn:i.withCtx(({item:R})=>[i.renderSlot(w.$slots,k.value,{index:_,item:R},()=>[i.createTextVNode(i.toDisplayString(R[k.value]),1)],!0)])}))]),1032,["row-position","data-headers","data","selectable","children-prop","selected-elements","searched-prop"]))),128))])])])}}}),[["__scopeId","data-v-2986559a"]]),WtTableActions:wI,WtTableColumnSelect:SI,WtButtonSelect:QE,WtContextMenu:uL,WtCopyAction:yL,WtLoadBar:uT,WtIconAction:s6,WtPageHeader:uN,WtItemLink:nT,WtDummy:ZM,WtStepper:GV,WtExpansionPanel:bO,WtNavigationMenu:nC,WtStartPage:Bk,WtSelectionPopup:pk},cp=pc?window:void 0;function wo(e){var r;const o=i.toValue(e);return(r=o==null?void 0:o.$el)!=null?r:o}function v2(...e){const r=[],o=()=>{r.forEach(c=>c()),r.length=0},n=(c,d,u,f)=>(c.addEventListener(d,u,f),()=>c.removeEventListener(d,u,f)),a=i.computed(()=>{const c=Nn(i.toValue(e[0])).filter(d=>d!=null);return c.every(d=>typeof d!="string")?c:void 0}),l=QO(()=>{var c,d;return[(d=(c=a.value)==null?void 0:c.map(u=>wo(u)))!=null?d:[cp].filter(u=>u!=null),Nn(i.toValue(a.value?e[1]:e[0])),Nn(i.unref(a.value?e[2]:e[1])),i.toValue(a.value?e[3]:e[2])]},([c,d,u,f])=>{if(o(),!(c!=null&&c.length)||!(d!=null&&d.length)||!(u!=null&&u.length))return;const h=YO(f)?{...f}:f;r.push(...c.flatMap(p=>d.flatMap(y=>u.map(C=>n(p,y,C,h)))))},{flush:"post"}),s=()=>{l(),o()};return hc(o),s}let dp=!1;function up(e,r,o={}){const{window:n=cp,ignore:a=[],capture:l=!0,detectIframe:s=!1,controls:c=!1}=o;if(!n)return c?{stop:A0,cancel:A0,trigger:A0}:A0;if(mc&&!dp){dp=!0;const x={passive:!0};Array.from(n.document.body.children).forEach(v=>v2(v,"click",A0,x)),v2(n.document.documentElement,"click",A0,x)}let d=!0;const u=x=>i.toValue(a).some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(b=>b===x.target||x.composedPath().includes(b));{const b=wo(v);return b&&(x.target===b||x.composedPath().includes(b))}});function f(x){const v=i.toValue(x);return v&&v.$.subTree.shapeFlag===16}function h(x,v){const b=i.toValue(x),_=b.$.subTree&&b.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(k=>k.el===v.target||v.composedPath().includes(k.el))}const p=x=>{const v=wo(e);if(x.target!=null&&!(!(v instanceof Element)&&f(e)&&h(e,x))&&!(!v||v===x.target||x.composedPath().includes(v))){if("detail"in x&&x.detail===0&&(d=!u(x)),!d){d=!0;return}r(x)}};let y=!1;const C=[v2(n,"click",x=>{y||(y=!0,setTimeout(()=>{y=!1},0),p(x))},{passive:!0,capture:l}),v2(n,"pointerdown",x=>{const v=wo(e);d=!u(x)&&!!(v&&!x.composedPath().includes(v))},{passive:!0}),s&&v2(n,"blur",x=>{setTimeout(()=>{var v;const b=wo(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(b!=null&&b.contains(n.document.activeElement))&&r(x)},0)},{passive:!0})].filter(Boolean),w=()=>C.forEach(x=>x());return c?{stop:w,cancel:()=>{d=!1},trigger:x=>{d=!0,p(x),d=!1}}:w}const jF={mounted(e,r){const o=!r.modifiers.bubble;if(typeof r.value=="function")e.__onClickOutside_stop=up(e,r.value,{capture:o});else{const[n,a]=r.value;e.__onClickOutside_stop=up(e,n,Object.assign({capture:o},a))}},unmounted(e){e.__onClickOutside_stop()}};function td(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function fp(e){const r=window.getComputedStyle(e);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&e.clientWidth<e.scrollWidth||r.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const o=e.parentNode;return!o||o.tagName==="BODY"?!1:fp(o)}}function UF(e){const r=e||window.event,o=r.target;return fp(o)?!1:r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)}const rd=new WeakMap;function WF(e,r=!1){const o=i.shallowRef(r);let n=null,a="";i.watch(XO(e),c=>{const d=td(i.toValue(c));if(d){const u=d;if(rd.get(u)||rd.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(a=u.style.overflow),u.style.overflow==="hidden")return o.value=!0;if(o.value)return u.style.overflow="hidden"}},{immediate:!0});const l=()=>{const c=td(i.toValue(e));!c||o.value||(mc&&(n=v2(c,"touchmove",d=>{UF(d)},{passive:!1})),c.style.overflow="hidden",o.value=!0)},s=()=>{const c=td(i.toValue(e));!c||!o.value||(mc&&(n==null||n()),c.style.overflow=a,rd.delete(c),o.value=!1)};return hc(s),i.computed({get(){return o.value},set(c){c?l():s()}})}function ZF(){let e=!1;const r=i.shallowRef(!1);return(o,n)=>{if(r.value=n.value,e)return;e=!0;const a=WF(o,n.value);i.watch(r,l=>a.value=l)}}ZF();const hp={clickaway:jF};var KF=`
|
|
293
|
+
`}},emits:["input","tag","search-change","closed"],data:()=>({defaultOptionLabel:"label",multiple:!0}),created(){this.isApiMode||this.initializeOptions()},methods:{getTagOptionLabel({optionLabel:e,option:r}){const o=this.getOptionLabel({optionLabel:e,option:r});return typeof o=="object"?r.label:o},initializeOptions(){if(!this.value)return[];const e=this.value.filter(r=>!this.options.find(o=>ho(o,r)));this.options.unshift(...e)}}},hR={class:"multiselect__loading-wrapper"};function pR(e,r,o,n,a,l){const s=i.resolveComponent("wt-label"),c=i.resolveComponent("wt-icon-btn"),d=i.resolveComponent("wt-chip"),u=i.resolveComponent("wt-loader"),f=i.resolveComponent("vue-multiselect"),h=i.resolveComponent("wt-input-info"),p=i.resolveDirective("observe-visibility");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-tags-input--disabled":e.disabled,"wt-tags-input--invalid":e.invalid,"wt-tags-input--loading":e.isLoading},"wt-tags-input"])},[e.hasLabel?(i.openBlock(),i.createBlock(s,i.mergeProps({key:0},e.labelProps,{disabled:e.disabled,invalid:e.invalid,class:"wt-tags-input__label"}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.normalizeProps(i.guardReactiveProps({label:e.label})),()=>[i.createTextVNode(i.toDisplayString(e.requiredLabel),1)],!0)],void 0,!0),_:3},16,["disabled","invalid"])):i.createCommentVNode("",!0),i.createVNode(f,i.mergeProps(e.$attrs,{ref:"vue-multiselect","close-on-select":!1,disabled:e.disabled,"internal-search":!e.searchMethod,label:e.selectOptionLabel,loading:!1,"model-value":e.selectValue,multiple:e.multiple,options:e.selectOptions,placeholder:e.placeholder||e.label,taggable:o.taggable,"track-by":o.trackBy,class:"wt-tags-input__select"},i.toHandlers(e.listeners)),i.createSlots({tag:i.withCtx(({option:y,remove:C})=>[i.createVNode(d,{class:"multiselect__custom-tag"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.getTagOptionLabel({option:y,optionLabel:e.optionLabel}))+" ",1),i.createVNode(c,{color:"on-primary",icon:"close--filled",size:"sm",onClick:w=>C(y)},null,8,["onClick"])],void 0,!0),_:2},1024)]),option:i.withCtx(({option:y})=>[i.renderSlot(e.$slots,"option",i.normalizeProps(i.guardReactiveProps({option:y,optionLabel:e.optionLabel})),()=>[i.createTextVNode(i.toDisplayString(l.getTagOptionLabel({option:y,optionLabel:e.optionLabel})),1)],!0)]),caret:i.withCtx(({toggle:y})=>[i.createVNode(c,{disabled:e.disabled,class:"multiselect__select",color:"active",icon:"arrow-down",onMousedown:i.withModifiers(y,["prevent","stop"])},null,8,["disabled","onMousedown"])]),beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",hR,[i.createVNode(u,{size:"sm"})],512),[[i.vShow,e.isLoading]])]),_:2},[e.showIntersectionObserver?{name:"afterList",fn:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",null,null,512),[[p,e.handleAfterListIntersect]])]),key:"0"}:void 0]),1040,["disabled","internal-search","label","model-value","multiple","options","placeholder","taggable","track-by"]),e.isValidation?(i.openBlock(),i.createBlock(h,{key:1,invalid:e.invalid},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.validationText),1)],void 0,!0),_:1},8,["invalid"])):i.createCommentVNode("",!0)],2)}const mR=ye(fR,[["render",pR],["__scopeId","data-v-1714b524"]]),gR={name:"WtTextarea",mixins:[Un],props:{value:{type:String,default:""},label:{type:String,default:""},placeholder:{type:String},readonly:{type:Boolean,default:!1,description:"Native textarea readonly attribute"},disabled:{type:Boolean,default:!1,description:"Native textarea disabled attribute"},name:{type:String,default:""},rows:{type:Number,default:1,description:"Number of rows for textarea"},labelProps:{type:Object,description:"Object with props, passed down to wt-label as props"},autoresize:{type:Boolean,default:!1,description:"enables auto-grow for text-area"}},emits:["input","enter"],computed:{listeners(){return{...this.$listeners,input:e=>this.$emit("input",e.target.value),keypress:e=>this.handleKeypress(e)}},requiredLabel(){return this.required?`${this.label}*`:this.label}},mounted(){this.updateInputPaddings()},updated(){this.autoresize&&!this.value&&this.resetGrow()},methods:{handleKeypress(e){this.autoresize&&e.key==="Enter"&&!e.shiftKey&&(this.$emit("enter"),e.preventDefault())},autoGrow(){if(!this.autoresize)return;const e=this.$refs["wt-textarea"],r=2;e.style.height="auto",e.style.height=e.scrollHeight+r+"px"},resetGrow(){const e=this.$refs["wt-textarea"];e.style.height="auto"},updateInputPaddings(){const e=this.$refs["after-wrapper"].offsetWidth,r=this.$refs["wt-textarea"],o=getComputedStyle(document.documentElement).getPropertyValue("--textarea-padding");r.style.paddingRight=`calc(${o} * 2 + ${e}px)`}}},yR={class:"wt-textarea__wrapper"},bR=["id","disabled","placeholder","value","rows","readonly"],wR={ref:"after-wrapper",class:"wt-textarea__after-wrapper"};function vR(e,r,o,n,a,l){const s=i.resolveComponent("wt-label"),c=i.resolveComponent("wt-icon-btn"),d=i.resolveComponent("wt-input-info");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-textarea--disabled":o.disabled,"wt-textarea--invalid":e.invalid,"wt-textarea--autoresize":o.autoresize},"wt-textarea"])},[i.createVNode(s,i.mergeProps(o.labelProps,{disabled:o.disabled,for:o.name,invalid:e.invalid}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.normalizeProps(i.guardReactiveProps({label:o.label})),()=>[i.createTextVNode(i.toDisplayString(l.requiredLabel),1)],!0)],void 0,!0),_:3},16,["disabled","for","invalid"]),i.createElementVNode("div",yR,[i.createElementVNode("textarea",i.mergeProps({id:o.name,ref:"wt-textarea",disabled:o.disabled,placeholder:o.placeholder||o.label,value:o.value,rows:o.rows,readonly:o.readonly,class:"wt-textarea__textarea"},i.toHandlers(l.listeners,!0),{onInput:r[0]||(r[0]=(...u)=>l.autoGrow&&l.autoGrow(...u))}),null,16,bR),i.createElementVNode("div",wR,[i.renderSlot(e.$slots,"after-input",{},void 0,!0),i.createVNode(c,{class:i.normalizeClass([{hidden:!o.value},"wt-textarea__reset-icon-btn"]),disabled:o.disabled,icon:"close--filled",size:"sm",onClick:r[1]||(r[1]=u=>e.$emit("input",""))},null,8,["class","disabled"])],512)]),e.isValidation?(i.openBlock(),i.createBlock(d,{key:0,invalid:e.invalid},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.validationText),1)],void 0,!0),_:1},8,["invalid"])):i.createCommentVNode("",!0)],2)}const CR=ye(gR,[["render",vR],["__scopeId","data-v-1628361e"]]),xR={name:"WtTimeInput",mixins:[Un],props:{value:{type:Number,default:0},label:{type:String,default:""},maxValue:{type:Number},required:{type:Boolean,default:!1,description:"Native input required attribute"},disabled:{type:Boolean,default:!1,description:"Native input disabled attribute"},labelProps:{type:Object,description:"Object with props, passed down to wt-label as props"},hideInputInfo:{type:Boolean,default:!1}},emits:["input"],computed:{hasLabel(){return!!(this.label||this.$slots.label)},showInfo(){return this.isValidation&&!this.hideInputInfo},listeners(){return{...this.$listeners,input:e=>this.$emit("input",e.target.value)}}}},kR={class:"wt-time-input__wrapper"},_R=["disabled","max","value"];function SR(e,r,o,n,a,l){const s=i.resolveComponent("wt-label"),c=i.resolveComponent("wt-input-info");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-time-input--disabled":o.disabled,"wt-time-input--invalid":e.invalid},"wt-time-input"])},[l.hasLabel?(i.openBlock(),i.createBlock(s,i.mergeProps({key:0},o.labelProps,{disabled:o.disabled,invalid:e.invalid}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.normalizeProps(i.guardReactiveProps({label:o.label})),()=>[i.createTextVNode(i.toDisplayString(o.label),1)],!0)],void 0,!0),_:3},16,["disabled","invalid"])):i.createCommentVNode("",!0),i.createElementVNode("div",kR,[i.createElementVNode("input",i.mergeProps({disabled:o.disabled,max:o.maxValue,min:0,value:o.value,class:"wt-time-input__input",type:"number"},i.toHandlers(l.listeners,!0)),null,16,_R)]),l.showInfo?(i.openBlock(),i.createBlock(c,{key:1,invalid:e.invalid},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.validationText),1)],void 0,!0),_:1},8,["invalid"])):i.createCommentVNode("",!0)],2)}const ER=ye(xR,[["render",SR],["__scopeId","data-v-ae7cf0e8"]]),po=60*60,U3=60,LR={name:"WtTimepicker",mixins:[Un],model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:0},dateMode:{type:Boolean,default:!1},label:{type:String,default:""},format:{type:String,default:"hh:mm:ss"},disabled:{type:Boolean,default:!1},labelProps:{type:Object,description:"Object with props, passed down to wt-label as props"},noLabel:{type:Boolean,default:!1},required:{type:Boolean,default:!1,description:"Native input required attribute"}},computed:{isHour(){return this.format.includes("hh")},isMin(){return this.format.includes("mm")},isSec(){return this.format.includes("ss")},labelHours(){return this.noLabel||this.label?null:this.$t("webitelUI.timepicker.hour")},labelMin(){return this.noLabel||this.label?null:this.$t("webitelUI.timepicker.min")},labelSec(){return this.noLabel||this.label?null:this.$t("webitelUI.timepicker.sec")},hour:{get(){return this.dateMode?new Date(+this.value).getHours():Math.floor(this.value/po)},set(e){const r=this.dateMode?new Date(this.value).setHours(e):this.value-this.hour*po+e*po;this.$emit("input",r)}},min:{get(){return this.dateMode?new Date(+this.value).getMinutes():Math.floor(this.value/U3%60)},set(e){const r=this.dateMode?new Date(this.value).setMinutes(e):this.value-this.min*U3+e*U3;this.$emit("input",r)}},sec:{get(){return this.dateMode?new Date(+this.value).getSeconds():Math.floor(this.value%60)},set(e){const r=this.dateMode?new Date(this.value).setSeconds(e):this.value-this.sec+ +e;this.$emit("input",r)}},requiredLabel(){return this.required?`${this.label} (${this.format})*`:`${this.label} (${this.format})`}},methods:{onHoursBlurEvent(){const e=this.dateMode?new Date(this.value).setHours(this.hour):this.value-this.hour*po+this.hour*po;this.$emit("input",0),this.$nextTick(()=>{this.$emit("input",e)})}}},BR={class:"wt-timepicker__wrapper"};function $R(e,r,o,n,a,l){const s=i.resolveComponent("wt-label"),c=i.resolveComponent("wt-time-input"),d=i.resolveComponent("wt-input-info");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-timepicker--invalid":e.invalid},"wt-timepicker"])},[o.label||!o.noLabel?(i.openBlock(),i.createBlock(s,i.mergeProps({key:0},o.labelProps,{invalid:e.invalid}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"label",i.normalizeProps(i.guardReactiveProps({label:o.label})),()=>[i.createTextVNode(i.toDisplayString(l.requiredLabel),1)],!0)],void 0,!0),_:3},16,["invalid"])):i.createCommentVNode("",!0),i.createElementVNode("div",BR,[l.isHour?(i.openBlock(),i.createBlock(c,{key:0,disabled:o.disabled,label:l.labelHours,"max-value":o.dateMode?null:23,v:e.v,value:l.hour,"hide-input-info":"",onBlur:l.onHoursBlurEvent,onInput:r[0]||(r[0]=u=>l.hour=u)},null,8,["disabled","label","max-value","v","value","onBlur"])):i.createCommentVNode("",!0),l.isMin?(i.openBlock(),i.createBlock(c,{key:1,disabled:o.disabled,label:l.labelMin,"max-value":59,v:e.v,value:l.min,"hide-input-info":"",onInput:r[1]||(r[1]=u=>l.min=u)},null,8,["disabled","label","v","value"])):i.createCommentVNode("",!0),l.isSec?(i.openBlock(),i.createBlock(c,{key:2,disabled:o.disabled,label:l.labelSec,"max-value":59,v:e.v,value:l.sec,"hide-input-info":"",onInput:r[2]||(r[2]=u=>l.sec=u)},null,8,["disabled","label","v","value"])):i.createCommentVNode("",!0)]),e.isValidation?(i.openBlock(),i.createBlock(d,{key:1,invalid:e.invalid},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.validationText),1)],void 0,!0),_:1},8,["invalid"])):i.createCommentVNode("",!0)],2)}const AR=ye(LR,[["render",$R],["__scopeId","data-v-e9eb3b40"]]),MR=["top","right","bottom","left"],Ih=["start","end"],Rh=MR.reduce((e,r)=>e.concat(r,r+"-"+Ih[0],r+"-"+Ih[1]),[]),Yn=Math.min,Ur=Math.max,Gn=Math.round,Xn=Math.floor,N0=e=>({x:e,y:e}),OR={left:"right",right:"left",bottom:"top",top:"bottom"},TR={start:"end",end:"start"};function Fh(e,r,o){return Ur(e,Yn(r,o))}function mo(e,r){return typeof e=="function"?e(r):e}function er(e){return e.split("-")[0]}function tr(e){return e.split("-")[1]}function Hh(e){return e==="x"?"y":"x"}function zh(e){return e==="y"?"height":"width"}function y2(e){return["top","bottom"].includes(er(e))?"y":"x"}function qh(e){return Hh(y2(e))}function jh(e,r,o){o===void 0&&(o=!1);const n=tr(e),a=qh(e),l=zh(a);let s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(s=Jn(s)),[s,Jn(s)]}function NR(e){const r=Jn(e);return[Qn(e),r,Qn(r)]}function Qn(e){return e.replace(/start|end/g,r=>TR[r])}function PR(e,r,o){const n=["left","right"],a=["right","left"],l=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return o?r?a:n:r?n:a;case"left":case"right":return r?l:s;default:return[]}}function DR(e,r,o,n){const a=tr(e);let l=PR(er(e),o==="start",n);return a&&(l=l.map(s=>s+"-"+a),r&&(l=l.concat(l.map(Qn)))),l}function Jn(e){return e.replace(/left|right|bottom|top/g,r=>OR[r])}function VR(e){return{top:0,right:0,bottom:0,left:0,...e}}function IR(e){return typeof e!="number"?VR(e):{top:e,right:e,bottom:e,left:e}}function ei(e){const{x:r,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:r,right:r+n,bottom:o+a,x:r,y:o}}function Uh(e,r,o){let{reference:n,floating:a}=e;const l=y2(r),s=qh(r),c=zh(s),d=er(r),u=l==="y",f=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,p=n[c]/2-a[c]/2;let y;switch(d){case"top":y={x:f,y:n.y-a.height};break;case"bottom":y={x:f,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:h};break;case"left":y={x:n.x-a.width,y:h};break;default:y={x:n.x,y:n.y}}switch(tr(r)){case"start":y[s]-=p*(o&&u?-1:1);break;case"end":y[s]+=p*(o&&u?-1:1);break}return y}const RR=async(e,r,o)=>{const{placement:n="bottom",strategy:a="absolute",middleware:l=[],platform:s}=o,c=l.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(r));let u=await s.getElementRects({reference:e,floating:r,strategy:a}),{x:f,y:h}=Uh(u,n,d),p=n,y={},C=0;for(let w=0;w<c.length;w++){const{name:x,fn:v}=c[w],{x:b,y:_,data:k,reset:$}=await v({x:f,y:h,initialPlacement:n,placement:p,strategy:a,middlewareData:y,rects:u,platform:s,elements:{reference:e,floating:r}});f=b??f,h=_??h,y={...y,[x]:{...y[x],...k}},$&&C<=50&&(C++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(u=$.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:a}):$.rects),{x:f,y:h}=Uh(u,p,d)),w=-1)}return{x:f,y:h,placement:p,strategy:a,middlewareData:y}};async function W3(e,r){var o;r===void 0&&(r={});const{x:n,y:a,platform:l,rects:s,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:y=0}=mo(r,e),C=IR(y),x=c[p?h==="floating"?"reference":"floating":h],v=ei(await l.getClippingRect({element:(o=await(l.isElement==null?void 0:l.isElement(x)))==null||o?x:x.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),b=h==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),k=await(l.isElement==null?void 0:l.isElement(_))?await(l.getScale==null?void 0:l.getScale(_))||{x:1,y:1}:{x:1,y:1},$=ei(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:_,strategy:d}):b);return{top:(v.top-$.top+C.top)/k.y,bottom:($.bottom-v.bottom+C.bottom)/k.y,left:(v.left-$.left+C.left)/k.x,right:($.right-v.right+C.right)/k.x}}function FR(e,r,o){return(e?[...o.filter(a=>tr(a)===e),...o.filter(a=>tr(a)!==e)]:o.filter(a=>er(a)===a)).filter(a=>e?tr(a)===e||(r?Qn(a)!==a:!1):!0)}const HR=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var o,n,a;const{rects:l,middlewareData:s,placement:c,platform:d,elements:u}=r,{crossAxis:f=!1,alignment:h,allowedPlacements:p=Rh,autoAlignment:y=!0,...C}=mo(e,r),w=h!==void 0||p===Rh?FR(h||null,y,p):p,x=await W3(r,C),v=((o=s.autoPlacement)==null?void 0:o.index)||0,b=w[v];if(b==null)return{};const _=jh(b,l,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(c!==b)return{reset:{placement:w[0]}};const k=[x[er(b)],x[_[0]],x[_[1]]],$=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:b,overflows:k}],R=w[v+1];if(R)return{data:{index:v+1,overflows:$},reset:{placement:R}};const D=$.map(Z=>{const T=tr(Z.placement);return[Z.placement,T&&f?Z.overflows.slice(0,2).reduce((W,Y)=>W+Y,0):Z.overflows[0],Z.overflows]}).sort((Z,T)=>Z[1]-T[1]),F=((a=D.filter(Z=>Z[2].slice(0,tr(Z[0])?2:3).every(T=>T<=0))[0])==null?void 0:a[0])||D[0][0];return F!==c?{data:{index:v+1,overflows:$},reset:{placement:F}}:{}}}},zR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var o,n;const{placement:a,middlewareData:l,rects:s,initialPlacement:c,platform:d,elements:u}=r,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:w=!0,...x}=mo(e,r);if((o=l.arrow)!=null&&o.alignmentOffset)return{};const v=er(a),b=y2(c),_=er(c)===c,k=await(d.isRTL==null?void 0:d.isRTL(u.floating)),$=p||(_||!w?[Jn(c)]:NR(c)),R=C!=="none";!p&&R&&$.push(...DR(c,w,C,k));const D=[c,...$],I=await W3(r,x),F=[];let Z=((n=l.flip)==null?void 0:n.overflows)||[];if(f&&F.push(I[v]),h){const oe=jh(a,s,k);F.push(I[oe[0]],I[oe[1]])}if(Z=[...Z,{placement:a,overflows:F}],!F.every(oe=>oe<=0)){var T,W;const oe=(((T=l.flip)==null?void 0:T.index)||0)+1,ae=D[oe];if(ae)return{data:{index:oe,overflows:Z},reset:{placement:ae}};let J=(W=Z.filter(E=>E.overflows[0]<=0).sort((E,j)=>E.overflows[1]-j.overflows[1])[0])==null?void 0:W.placement;if(!J)switch(y){case"bestFit":{var Y;const E=(Y=Z.filter(j=>{if(R){const N=y2(j.placement);return N===b||N==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(N=>N>0).reduce((N,U)=>N+U,0)]).sort((j,N)=>j[1]-N[1])[0])==null?void 0:Y[0];E&&(J=E);break}case"initialPlacement":J=c;break}if(a!==J)return{reset:{placement:J}}}return{}}}};async function qR(e,r){const{placement:o,platform:n,elements:a}=e,l=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=er(o),c=tr(o),d=y2(o)==="y",u=["left","top"].includes(s)?-1:1,f=l&&d?-1:1,h=mo(r,e);let{mainAxis:p,crossAxis:y,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof C=="number"&&(y=c==="end"?C*-1:C),d?{x:y*f,y:p*u}:{x:p*u,y:y*f}}const jR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var o,n;const{x:a,y:l,placement:s,middlewareData:c}=r,d=await qR(r,e);return s===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:a+d.x,y:l+d.y,data:{...d,placement:s}}}}},UR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:o,y:n,placement:a}=r,{mainAxis:l=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...d}=mo(e,r),u={x:o,y:n},f=await W3(r,d),h=y2(er(a)),p=Hh(h);let y=u[p],C=u[h];if(l){const x=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=y+f[x],_=y-f[v];y=Fh(b,y,_)}if(s){const x=h==="y"?"top":"left",v=h==="y"?"bottom":"right",b=C+f[x],_=C-f[v];C=Fh(b,C,_)}const w=c.fn({...r,[p]:y,[h]:C});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:l,[h]:s}}}}}};function ti(){return typeof window<"u"}function Wr(e){return Z3(e)?(e.nodeName||"").toLowerCase():"#document"}function e0(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function P0(e){var r;return(r=(Z3(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Z3(e){return ti()?e instanceof Node||e instanceof e0(e).Node:!1}function g0(e){return ti()?e instanceof Element||e instanceof e0(e).Element:!1}function D0(e){return ti()?e instanceof HTMLElement||e instanceof e0(e).HTMLElement:!1}function Wh(e){return!ti()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof e0(e).ShadowRoot}function go(e){const{overflow:r,overflowX:o,overflowY:n,display:a}=y0(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&!["inline","contents"].includes(a)}function WR(e){return["table","td","th"].includes(Wr(e))}function ri(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function K3(e){const r=Y3(),o=g0(e)?y0(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function ZR(e){let r=yr(e);for(;D0(r)&&!b2(r);){if(K3(r))return r;if(ri(r))return null;r=yr(r)}return null}function Y3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function b2(e){return["html","body","#document"].includes(Wr(e))}function y0(e){return e0(e).getComputedStyle(e)}function oi(e){return g0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yr(e){if(Wr(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Wh(e)&&e.host||P0(e);return Wh(r)?r.host:r}function Zh(e){const r=yr(e);return b2(r)?e.ownerDocument?e.ownerDocument.body:e.body:D0(r)&&go(r)?r:Zh(r)}function yo(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);const a=Zh(e),l=a===((n=e.ownerDocument)==null?void 0:n.body),s=e0(a);if(l){const c=G3(s);return r.concat(s,s.visualViewport||[],go(a)?a:[],c&&o?yo(c):[])}return r.concat(a,yo(a,[],o))}function G3(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kh(e){const r=y0(e);let o=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const a=D0(e),l=a?e.offsetWidth:o,s=a?e.offsetHeight:n,c=Gn(o)!==l||Gn(n)!==s;return c&&(o=l,n=s),{width:o,height:n,$:c}}function X3(e){return g0(e)?e:e.contextElement}function w2(e){const r=X3(e);if(!D0(r))return N0(1);const o=r.getBoundingClientRect(),{width:n,height:a,$:l}=Kh(r);let s=(l?Gn(o.width):o.width)/n,c=(l?Gn(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const KR=N0(0);function Yh(e){const r=e0(e);return!Y3()||!r.visualViewport?KR:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function YR(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==e0(e)?!1:r}function Zr(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);const a=e.getBoundingClientRect(),l=X3(e);let s=N0(1);r&&(n?g0(n)&&(s=w2(n)):s=w2(e));const c=YR(l,o,n)?Yh(l):N0(0);let d=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,f=a.width/s.x,h=a.height/s.y;if(l){const p=e0(l),y=n&&g0(n)?e0(n):n;let C=p,w=G3(C);for(;w&&n&&y!==C;){const x=w2(w),v=w.getBoundingClientRect(),b=y0(w),_=v.left+(w.clientLeft+parseFloat(b.paddingLeft))*x.x,k=v.top+(w.clientTop+parseFloat(b.paddingTop))*x.y;d*=x.x,u*=x.y,f*=x.x,h*=x.y,d+=_,u+=k,C=e0(w),w=G3(C)}}return ei({width:f,height:h,x:d,y:u})}function Q3(e,r){const o=oi(e).scrollLeft;return r?r.left+o:Zr(P0(e)).left+o}function Gh(e,r,o){o===void 0&&(o=!1);const n=e.getBoundingClientRect(),a=n.left+r.scrollLeft-(o?0:Q3(e,n)),l=n.top+r.scrollTop;return{x:a,y:l}}function GR(e){let{elements:r,rect:o,offsetParent:n,strategy:a}=e;const l=a==="fixed",s=P0(n),c=r?ri(r.floating):!1;if(n===s||c&&l)return o;let d={scrollLeft:0,scrollTop:0},u=N0(1);const f=N0(0),h=D0(n);if((h||!h&&!l)&&((Wr(n)!=="body"||go(s))&&(d=oi(n)),D0(n))){const y=Zr(n);u=w2(n),f.x=y.x+n.clientLeft,f.y=y.y+n.clientTop}const p=s&&!h&&!l?Gh(s,d,!0):N0(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-d.scrollLeft*u.x+f.x+p.x,y:o.y*u.y-d.scrollTop*u.y+f.y+p.y}}function XR(e){return Array.from(e.getClientRects())}function QR(e){const r=P0(e),o=oi(e),n=e.ownerDocument.body,a=Ur(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=Ur(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+Q3(e);const c=-o.scrollTop;return y0(n).direction==="rtl"&&(s+=Ur(r.clientWidth,n.clientWidth)-a),{width:a,height:l,x:s,y:c}}function JR(e,r){const o=e0(e),n=P0(e),a=o.visualViewport;let l=n.clientWidth,s=n.clientHeight,c=0,d=0;if(a){l=a.width,s=a.height;const u=Y3();(!u||u&&r==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:l,height:s,x:c,y:d}}function eF(e,r){const o=Zr(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,l=D0(e)?w2(e):N0(1),s=e.clientWidth*l.x,c=e.clientHeight*l.y,d=a*l.x,u=n*l.y;return{width:s,height:c,x:d,y:u}}function Xh(e,r,o){let n;if(r==="viewport")n=JR(e,o);else if(r==="document")n=QR(P0(e));else if(g0(r))n=eF(r,o);else{const a=Yh(e);n={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return ei(n)}function Qh(e,r){const o=yr(e);return o===r||!g0(o)||b2(o)?!1:y0(o).position==="fixed"||Qh(o,r)}function tF(e,r){const o=r.get(e);if(o)return o;let n=yo(e,[],!1).filter(c=>g0(c)&&Wr(c)!=="body"),a=null;const l=y0(e).position==="fixed";let s=l?yr(e):e;for(;g0(s)&&!b2(s);){const c=y0(s),d=K3(s);!d&&c.position==="fixed"&&(a=null),(l?!d&&!a:!d&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||go(s)&&!d&&Qh(e,s))?n=n.filter(f=>f!==s):a=c,s=yr(s)}return r.set(e,n),n}function rF(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e;const s=[...o==="clippingAncestors"?ri(r)?[]:tF(r,this._c):[].concat(o),n],c=s[0],d=s.reduce((u,f)=>{const h=Xh(r,f,a);return u.top=Ur(h.top,u.top),u.right=Yn(h.right,u.right),u.bottom=Yn(h.bottom,u.bottom),u.left=Ur(h.left,u.left),u},Xh(r,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function oF(e){const{width:r,height:o}=Kh(e);return{width:r,height:o}}function nF(e,r,o){const n=D0(r),a=P0(r),l=o==="fixed",s=Zr(e,!0,l,r);let c={scrollLeft:0,scrollTop:0};const d=N0(0);if(n||!n&&!l)if((Wr(r)!=="body"||go(a))&&(c=oi(r)),n){const p=Zr(r,!0,l,r);d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}else a&&(d.x=Q3(a));const u=a&&!n&&!l?Gh(a,c):N0(0),f=s.left+c.scrollLeft-d.x-u.x,h=s.top+c.scrollTop-d.y-u.y;return{x:f,y:h,width:s.width,height:s.height}}function J3(e){return y0(e).position==="static"}function Jh(e,r){if(!D0(e)||y0(e).position==="fixed")return null;if(r)return r(e);let o=e.offsetParent;return P0(e)===o&&(o=o.ownerDocument.body),o}function ep(e,r){const o=e0(e);if(ri(e))return o;if(!D0(e)){let a=yr(e);for(;a&&!b2(a);){if(g0(a)&&!J3(a))return a;a=yr(a)}return o}let n=Jh(e,r);for(;n&&WR(n)&&J3(n);)n=Jh(n,r);return n&&b2(n)&&J3(n)&&!K3(n)?o:n||ZR(e)||o}const iF=async function(e){const r=this.getOffsetParent||ep,o=this.getDimensions,n=await o(e.floating);return{reference:nF(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function aF(e){return y0(e).direction==="rtl"}const lF={convertOffsetParentRelativeRectToViewportRelativeRect:GR,getDocumentElement:P0,getClippingRect:rF,getOffsetParent:ep,getElementRects:iF,getClientRects:XR,getDimensions:oF,getScale:w2,isElement:g0,isRTL:aF};function tp(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function sF(e,r){let o=null,n;const a=P0(e);function l(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),l();const u=e.getBoundingClientRect(),{left:f,top:h,width:p,height:y}=u;if(c||r(),!p||!y)return;const C=Xn(h),w=Xn(a.clientWidth-(f+p)),x=Xn(a.clientHeight-(h+y)),v=Xn(f),_={rootMargin:-C+"px "+-w+"px "+-x+"px "+-v+"px",threshold:Ur(0,Yn(1,d))||1};let k=!0;function $(R){const D=R[0].intersectionRatio;if(D!==d){if(!k)return s();D?s(!1,D):n=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!tp(u,e.getBoundingClientRect())&&s(),k=!1}try{o=new IntersectionObserver($,{..._,root:a.ownerDocument})}catch{o=new IntersectionObserver($,_)}o.observe(e)}return s(!0),l}function cF(e,r,o,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,u=X3(e),f=a||l?[...u?yo(u):[],...yo(r)]:[];f.forEach(v=>{a&&v.addEventListener("scroll",o,{passive:!0}),l&&v.addEventListener("resize",o)});const h=u&&c?sF(u,o):null;let p=-1,y=null;s&&(y=new ResizeObserver(v=>{let[b]=v;b&&b.target===u&&y&&(y.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=y)==null||_.observe(r)})),o()}),u&&!d&&y.observe(u),y.observe(r));let C,w=d?Zr(e):null;d&&x();function x(){const v=Zr(e);w&&!tp(w,v)&&o(),w=v,C=requestAnimationFrame(x)}return o(),()=>{var v;f.forEach(b=>{a&&b.removeEventListener("scroll",o),l&&b.removeEventListener("resize",o)}),h==null||h(),(v=y)==null||v.disconnect(),y=null,d&&cancelAnimationFrame(C)}}const dF=jR,uF=HR,fF=UR,hF=zR,pF=(e,r,o)=>{const n=new Map,a={platform:lF,...o},l={...a.platform,_c:n};return RR(e,r,{...a,platform:l})};function mF(e){return e!=null&&typeof e=="object"&&"$el"in e}function rp(e){if(mF(e)){const r=e.$el;return Z3(r)&&Wr(r)==="#comment"?null:r}return e}function bo(e){return typeof e=="function"?e():i.unref(e)}function op(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function np(e,r){const o=op(e);return Math.round(r*o)/o}function gF(e,r,o){o===void 0&&(o={});const n=o.whileElementsMounted,a=i.computed(()=>{var D;return(D=bo(o.open))!=null?D:!0}),l=i.computed(()=>bo(o.middleware)),s=i.computed(()=>{var D;return(D=bo(o.placement))!=null?D:"bottom"}),c=i.computed(()=>{var D;return(D=bo(o.strategy))!=null?D:"absolute"}),d=i.computed(()=>{var D;return(D=bo(o.transform))!=null?D:!0}),u=i.computed(()=>rp(e.value)),f=i.computed(()=>rp(r.value)),h=i.ref(0),p=i.ref(0),y=i.ref(c.value),C=i.ref(s.value),w=i.shallowRef({}),x=i.ref(!1),v=i.computed(()=>{const D={position:y.value,left:"0",top:"0"};if(!f.value)return D;const I=np(f.value,h.value),F=np(f.value,p.value);return d.value?{...D,transform:"translate("+I+"px, "+F+"px)",...op(f.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:I+"px",top:F+"px"}});let b;function _(){if(u.value==null||f.value==null)return;const D=a.value;pF(u.value,f.value,{middleware:l.value,placement:s.value,strategy:c.value}).then(I=>{h.value=I.x,p.value=I.y,y.value=I.strategy,C.value=I.placement,w.value=I.middlewareData,x.value=D!==!1})}function k(){typeof b=="function"&&(b(),b=void 0)}function $(){if(k(),n===void 0){_();return}if(u.value!=null&&f.value!=null){b=n(u.value,f.value,_);return}}function R(){a.value||(x.value=!1)}return i.watch([l,s,c,a],_,{flush:"sync"}),i.watch([u,f],$,{flush:"sync"}),i.watch(a,R,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(k),{x:i.shallowReadonly(h),y:i.shallowReadonly(p),strategy:i.shallowReadonly(y),placement:i.shallowReadonly(C),middlewareData:i.shallowReadonly(w),isPositioned:i.shallowReadonly(x),floatingStyles:v,update:_}}const ip={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},ap={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"},lp=({target:e,triggers:r,show:o,hide:n})=>{const a=()=>{((c,d)=>{d.forEach(u=>{const f=ip[u];f?c.addEventListener(f,o):console.log(`No Tooltip Show event for ${u} trigger`);const h=ap[u];h?c.addEventListener(h,n):console.log(`No Tooltip Hide event for ${u} trigger`)})})(e.value,r)},l=()=>{((c,d)=>{d.forEach(u=>{const f=ip[u];f?c.removeEventListener(f,o):console.log(`No Tooltip Show event for ${u} trigger`);const h=ap[u];h?c.removeEventListener(h,n):console.log(`No Tooltip Hide event for ${u} trigger`)})})(e.value,r)};i.onMounted(()=>a()),i.onBeforeUnmount(()=>l())},yF={__name:"wt-tooltip-floating",props:{triggers:{type:Array,default:()=>[]}},emits:["show","hide"],setup(e,{emit:r}){const o=e,n=r,a=i.ref(null);return lp({target:a,triggers:o.triggers,show:()=>n("show"),hide:()=>n("hide")}),(l,s)=>(i.openBlock(),i.createElementBlock("aside",{ref_key:"floating",ref:a,class:"wt-tooltip-floating"},[i.renderSlot(l.$slots,"default")],512))}},bF=ye({__name:"wt-tooltip",props:{visible:{type:Boolean,default:!1},placement:{type:String,default:"auto"},popperTriggers:{type:Array,default:()=>[]},triggers:{type:Array,default:()=>["hover","focus","touch"]},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},disableClickAway:{type:Boolean,default:!1}},emits:["update:visible"],setup(e,{emit:r}){const o=e,n=r,a=i.useTemplateRef("activator"),l=i.useTemplateRef("floating"),s=i.useTemplateRef("floatingChild"),c=i.ref(o.visible),d=()=>{n("update:visible",c.value)},u=(w={})=>{o.disabled||c.value||(c.value=!0,w.usedByTooltip=!0,d(),p())},f=(w={})=>{var v;const x=(v=s.value)==null?void 0:v.contains(w.target);!c.value||w.usedByTooltip||x||(c.value=!1,d(),y())},h=(w={})=>{o.disableClickAway||f(w)},p=()=>{window.addEventListener("scroll",f,!0)},y=()=>{window.removeEventListener("scroll",f,!0)},{floatingStyles:C}=gF(a,l,{placement:o.placement==="auto"?null:o.placement,strategy:"fixed",whileElementsMounted:cF,middleware:[fF(),dF(4),o.placement==="auto"?uF():hF()]});return lp({target:a,triggers:o.triggers,show:u,hide:f}),i.watch(()=>o.visible,w=>{w?u():f()}),i.onMounted(()=>{o.visible&&u()}),i.onBeforeUnmount(()=>{y()}),(w,x)=>{const v=i.resolveDirective("clickaway");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"wt-tooltip--visible":c.value},"wt-tooltip"])},[i.createElementVNode("div",{ref_key:"activator",ref:a,class:"wt-tooltip__activator"},[i.renderSlot(w.$slots,"activator",i.normalizeProps(i.guardReactiveProps({visible:c.value})),void 0,!0)],512),c.value?i.withDirectives((i.openBlock(),i.createBlock(yF,{key:0,ref_key:"floating",ref:l,class:i.normalizeClass([[e.popperClass],"wt-tooltip__floating"]),style:i.normalizeStyle(i.unref(C)),triggers:e.popperTriggers,onHide:f,onShow:u},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"floatingChild",ref:s},[i.renderSlot(w.$slots,"default",i.normalizeProps(i.guardReactiveProps({hide:f})),void 0,!0)],512)],void 0,!0),_:3},8,["class","style","triggers"])),[[v,h]]):i.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-b8fd5806"]]),wF={class:"wt-tree-line"},vF={class:"wt-tree-line__icon-wrapper"},CF={class:"wt-tree-line__label"},xF=i.defineComponent({__name:"wt-tree-line",props:{modelValue:{},data:{},itemLabel:{},itemData:{},childrenProp:{default:"children"},nestedLevel:{default:0},lastChild:{type:Boolean,default:!1},nestedIcons:{},nextElement:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},searchedProp:{default:"searched"}},emits:["openParent","update:modelValue"],setup(e,{emit:r}){const o=e,n=r,a=i.computed(()=>o.itemLabel?o.data[o.itemLabel]:o.data),l=i.computed(()=>{const y=o.nestedIcons?[...o.nestedIcons]:[];return o.nestedLevel===0||y.push({icon:"tree-line",hidden:!o.nextElement}),y}),s=()=>o.itemData?o.modelValue.includes(o.data[o.itemData]):!!o.modelValue.find(C=>ho(C,o.data)),c=i.computed(()=>o.multiple?s():o.itemData?o.data[o.itemData]===o.modelValue:ho(o.modelValue,o.data)),d=()=>{const y=o.itemData?o.data[o.itemData]:o.data;let C;if(o.itemData?C=o.modelValue.indexOf(o.data[o.itemData]):C=o.modelValue.findIndex(x=>ho(x,o.data)),C===-1){const x=[...o.modelValue];x.push(y),n("update:modelValue",x);return}const w=[...o.modelValue];w.splice(C,1),n("update:modelValue",w)},u=()=>{var y;if(o.multiple&&!o.data.service){d();return}if((y=o.data[o.childrenProp])!=null&&y.length){f.value=!f.value;return}n("update:modelValue",o.itemData?o.data[o.itemData]:o.data)},f=i.ref(!0),h=()=>{o.nestedLevel>0&&n("openParent")},p=()=>{f.value=!1,h()};return i.onMounted(()=>{c.value&&h(),o.data[o.searchedProp]&&h()}),i.watch(()=>o.modelValue,()=>{c.value&&h()}),(y,C)=>{const w=i.resolveComponent("wt-icon"),x=i.resolveComponent("wt-icon-btn"),v=i.resolveComponent("wt-tree-line",!0);return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",wF,[i.createElementVNode("div",vF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.nestedIcons,(b,_)=>(i.openBlock(),i.createBlock(w,{key:_,icon:b.icon,class:i.normalizeClass({hidden:b.hidden})},null,8,["icon","class"]))),128)),y.nestedLevel>=1?(i.openBlock(),i.createBlock(w,{key:0,icon:y.lastChild?"tree-corner":"tree-cross"},null,8,["icon"])):i.createCommentVNode("",!0),y.data[y.childrenProp]&&y.data[y.childrenProp].length?(i.openBlock(),i.createBlock(x,{key:1,icon:f.value?"plus":"minus",onClick:C[0]||(C[0]=b=>f.value=!f.value)},null,8,["icon"])):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:i.normalizeClass([{active:c.value},"wt-tree-line__label-wrapper"]),onClick:u},[i.createElementVNode("p",CF,i.toDisplayString(a.value),1),c.value?(i.openBlock(),i.createBlock(w,{key:0,icon:"chat-message-status-sent"})):i.createCommentVNode("",!0)],2)]),i.withDirectives(i.createVNode(fc,null,{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.data[y.childrenProp],(b,_)=>(i.openBlock(),i.createBlock(v,{key:_,"model-value":y.modelValue,data:b,"children-prop":y.childrenProp,"item-label":y.itemLabel,"item-data":y.itemData,"nested-level":y.nestedLevel+1,"next-element":!!y.data[y.childrenProp][_+1],"nested-icons":l.value,"last-child":_===y.data[y.childrenProp].length-1,multiple:y.multiple,onOpenParent:p,"onUpdate:modelValue":C[1]||(C[1]=k=>n("update:modelValue",k))},null,8,["model-value","data","children-prop","item-label","item-data","nested-level","next-element","nested-icons","last-child","multiple"]))),128))])],void 0,!0),_:1},512),[[i.vShow,!f.value]])],64)}}}),ed={Tree:"tree",List:"list"},kF={class:"wt-tree"},_F={key:0,class:"wt-tree__content"},SF={key:1,class:"wt-tree__list-content"},EF=["onClick"],LF=i.defineComponent({__name:"wt-tree",props:{modelValue:{},data:{},itemLabel:{},itemData:{},mode:{default:ed.Tree},childrenProp:{default:"children"},multiple:{type:Boolean}},emits:["select","update:modelValue"],setup(e,{emit:r}){const o=e,n=r,a=i.computed(()=>{const c=[],d=u=>{c.push(u),u[o.childrenProp]&&u[o.childrenProp].forEach(f=>{d(f)})};return o.data.forEach(u=>{d(u)}),c}),l=c=>{n("update:modelValue",o.itemData?c[o.itemData]:c)},s=c=>o.itemData?c[o.itemData]===o.modelValue:ho(o.modelValue,c);return(c,d)=>{const u=i.resolveComponent("wt-icon");return i.openBlock(),i.createElementBlock("div",kF,[c.mode===i.unref(ed).Tree?(i.openBlock(),i.createElementBlock("div",_F,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.data,(f,h)=>(i.openBlock(),i.createBlock(xF,{key:h,"model-value":c.modelValue,"item-label":c.itemLabel,"item-data":c.itemData,data:f,"children-prop":c.childrenProp,multiple:c.multiple,"onUpdate:modelValue":d[0]||(d[0]=p=>n("update:modelValue",p))},null,8,["model-value","item-label","item-data","data","children-prop","multiple"]))),128))])):i.createCommentVNode("",!0),c.mode===i.unref(ed).List?(i.openBlock(),i.createElementBlock("div",SF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(f,h)=>(i.openBlock(),i.createElementBlock("span",{key:h,class:i.normalizeClass(["wt-tree__label-wrapper",{active:s(f)}])},[i.createElementVNode("p",{class:"wt-tree__label",onClick:p=>l(f)},i.toDisplayString(c.itemLabel?f[c.itemLabel]:f),9,EF),s(f)?(i.openBlock(),i.createBlock(u,{key:0,icon:"chat-message-status-sent",class:"wt-tree__label-icon"})):i.createCommentVNode("",!0)],2))),128))])):i.createCommentVNode("",!0)])}}}),BF=({headers:e})=>{const{t:r}=Br();return{tableHeaders:i.computed(()=>e.filter(n=>n.show===void 0||n.show).map(n=>!n.text&&n.locale?{...n,text:typeof n.locale=="string"?r(n.locale):r(...n.locale)}:n))}},$F={class:"wt-tree-table-td__content"},AF={key:0,class:"wt-tree-table-td__icon-wrapper"},MF={key:0,class:"wt-tree-table-td__actions"},OF={class:"wt-tree-table-td__content"},TF=ye(i.defineComponent({__name:"wt-tree-table-row",props:{data:{},rowPosition:{},childrenProp:{},selectable:{type:Boolean,default:!1},selectedElements:{},dataHeaders:{},gridActions:{type:Boolean,default:!0},nestingLevel:{default:0},searchedProp:{default:"searched"}},emits:["update:selected","expanded-collapse"],setup(e,{emit:r}){const o=e,n=r,a=i.ref(!0),l=i.computed(()=>o.nestingLevel),s=i.computed(()=>o.nestingLevel+1),c=i.computed(()=>o.selectedElements.includes(o.data)),d=()=>{a.value=!1,n("expanded-collapse")},u=(f,h=0)=>{if(f[o.searchedProp]&&h)return!0;if(Array.isArray(f[o.childrenProp])){for(const p of f[o.childrenProp])if(u(p,h+1))return!0}return!1};return i.onMounted(()=>{o.searchedProp&&u(o.data)&&d()}),(f,h)=>{const p=i.resolveComponent("wt-tree-table-row",!0);return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("tr",{class:i.normalizeClass([[{"wt-tree-table-row--alternate":f.rowPosition%2}],"wt-tree-table-row"])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.dataHeaders,(y,C)=>(i.openBlock(),i.createElementBlock("td",{key:C,class:"wt-tree-table-td"},[i.createElementVNode("div",$F,[C?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",AF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:"wt-tree-table-row__tree-space"}))),128)),f.selectable?(i.openBlock(),i.createBlock(Ms,{key:0,selected:c.value,onChange:h[0]||(h[0]=w=>f.$emit("update:selected",{data:f.data,select:w}))},null,8,["selected"])):i.createCommentVNode("",!0),f.data[f.childrenProp]?(i.openBlock(),i.createBlock(p7,{key:1,icon:a.value?"tree-expand":"tree-collapse",onClick:h[1]||(h[1]=w=>a.value=!a.value)},null,8,["icon"])):i.createCommentVNode("",!0)])),i.renderSlot(f.$slots,y.value,{index:f.rowPosition,item:f.data},()=>[i.createTextVNode(i.toDisplayString(f.data[y.value]),1)],!0)])]))),128)),f.gridActions?(i.openBlock(),i.createElementBlock("td",MF,[i.createElementVNode("div",OF,[i.renderSlot(f.$slots,"actions",{index:f.rowPosition,item:f.data},void 0,!0)])])):i.createCommentVNode("",!0)],2),a.value?i.createCommentVNode("",!0):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(f.data[f.childrenProp],(y,C)=>(i.openBlock(),i.createBlock(p,{key:C,"children-prop":f.childrenProp,data:y,"data-headers":f.dataHeaders,"nesting-level":s.value,"row-position":f.rowPosition,"searched-prop":f.searchedProp,selectable:f.selectable,"selected-elements":f.selectedElements,onExpandedCollapse:d,"onUpdate:selected":h[2]||(h[2]=w=>f.$emit("update:selected",{data:w.data,select:w.select}))},i.createSlots({actions:i.withCtx(({item:w})=>[i.renderSlot(f.$slots,"actions",{index:f.rowPosition,item:w},void 0,!0)]),_:2},[i.renderList(f.dataHeaders,(w,x)=>({name:w.value,fn:i.withCtx(({item:v})=>[i.renderSlot(f.$slots,w.value,{index:f.rowPosition,item:v},()=>[i.createElementVNode("div",null,i.toDisplayString(v[w.value]),1)],!0)])}))]),1032,["children-prop","data","data-headers","nesting-level","row-position","searched-prop","selectable","selected-elements"]))),128))],64)}}}),[["__scopeId","data-v-10f86df9"]]),NF={class:"wt-tree-table"},PF={class:"wt-tree-table-wrapper"},DF={class:"wt-tree-table-head"},VF={class:"wt-tree-table-tr wt-tree-table-tr-head"},IF=["onClick"],RF={class:"wt-tree-table-th__content"},FF={class:"wt-tree-table-th__text"},HF={key:0,class:"wt-tree-table-th__actions"},zF={class:"wt-tree-table-th__content"},qF={class:"wt-tree-table-body"},sp={WtActionBar:KS,WtImage:f7,WtEmpty:oO,WtLogo:_T,WtAvatar:IE,WtBadge:UE,WtIcon:h7,WtIndicator:qO,WtInputInfo:s7,WtButton:GE,WtChip:aL,WtConfirmDialog:cL,WtDivider:NM,WtTooltip:bF,WtLabel:lT,WtLoader:vT,WtRoundedAction:qD,WtReplaceTransition:qS,WtCheckbox:Ms,WtDatepicker:MM,WtIconBtn:p7,WtInput:WO,WtIntersectionObserver:oT,WtHint:VO,WtNotification:rN,WtPopup:ND,WtProgressBar:VD,WtRadio:zD,WtSearchBar:KD,WtSelect:PV,WtSlider:RV,WtSwitcher:tI,WtTabs:MI,WtTagsInput:mR,WtTimeInput:ER,WtTimepicker:AR,WtTextarea:CR,WtAppHeader:QS,WtHeadline:$O,WtHeadlineNav:NO,WtNavigationBar:QT,WtAppNavigator:vE,WtFiltersPanelWrapper:kO,WtHeaderActions:NE,WtErrorPage:hO,WtNotificationsBar:dN,WtPageWrapper:bN,WtDualPanel:FM,WtPagination:ON,WtPlayer:PN,WtPopover:hD,WtStatusSelect:jV,WtTable:mI,WtTree:LF,WtTreeTable:ye(i.defineComponent({__name:"wt-tree-table",props:{headers:{},data:{},sortable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0},selected:{},gridActions:{type:Boolean,default:!0},childrenProp:{},searchedProp:{default:"searched"}},emits:["sort","update:selected"],setup(e,{emit:r}){const o=e,n=r,a=w=>w[o.childrenProp]&&Array.isArray(w[o.childrenProp]),l=w=>{const x=[],v=b=>{if(b._isSelected)return[b];a(b)&&b[o.childrenProp].forEach(v)};return w.forEach(v),x},s=w=>{const x=[],v=b=>{x.push(b),a(b)&&b[o.childrenProp].forEach(v)};return w.forEach(v),x},c=i.computed(()=>o.selected||l(o.data)),d=i.computed(()=>c.value.length===s(o.data).length&&s(o.data).length>0),{tableHeaders:u}=BF({headers:o.headers}),f=({sort:w})=>o.sortable&&w!==void 0,h=w=>{if(!f(w))return;const x=xf(w.sort);n("sort",w,x)},p=(w,x)=>{w.forEach(v=>{v._isSelected=x,a(v)&&p(v[o.childrenProp],x)})},y=()=>{o.selected?n("update:selected",d.value?[]:[...s(o.data)]):d.value?p(o.data,!1):p(o.data,!0)},C=(w,x)=>{o.selected?x?n("update:selected",[...c.value,w]):n("update:selected",c.value.filter(v=>v!==w)):w._isSelected=!w._isSelected};return(w,x)=>{const v=i.resolveComponent("wt-icon");return i.openBlock(),i.createElementBlock("div",NF,[i.createElementVNode("table",PF,[i.createElementVNode("thead",DF,[i.createElementVNode("tr",VF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),(b,_)=>(i.openBlock(),i.createElementBlock("th",{key:_,class:i.normalizeClass([[{"wt-tree-table-th--sortable":f(b)},`wt-tree-table-th--sort-${b.sort}`],"wt-tree-table-th"]),style:i.normalizeStyle(b.width?`min-width:${b.width}`:""),onClick:k=>h(b)},[i.createElementVNode("div",RF,[_===0&&w.selectable?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:x[0]||(x[0]=i.withModifiers(()=>{},["stop"]))},[i.createVNode(i.unref(Ms),{selected:d.value,onChange:y},null,8,["selected"])])):i.createCommentVNode("",!0),i.createElementVNode("div",FF,i.toDisplayString(b.text),1),w.sortable?(i.openBlock(),i.createBlock(v,{key:1,class:"wt-tree-table-th-sort-arrow wt-tree-table-th-sort-arrow--asc",icon:"sort-arrow-up",size:"sm"})):i.createCommentVNode("",!0),w.sortable?(i.openBlock(),i.createBlock(v,{key:2,class:"wt-tree-table-th-sort-arrow wt-tree-table-th-sort-arrow--desc",icon:"sort-arrow-down",size:"sm"})):i.createCommentVNode("",!0)])],14,IF))),128)),w.gridActions?(i.openBlock(),i.createElementBlock("th",HF,[i.createElementVNode("div",zF,[i.renderSlot(w.$slots,"actions-header",{},void 0,!0)])])):i.createCommentVNode("",!0)])]),i.createElementVNode("tbody",qF,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(w.data,(b,_)=>(i.openBlock(),i.createBlock(TF,{key:_,"row-position":_,"data-headers":i.unref(u),data:b,selectable:w.selectable,"children-prop":w.childrenProp,"selected-elements":c.value,"searched-prop":w.searchedProp,"onUpdate:selected":x[1]||(x[1]=k=>C(k.data,k.select))},i.createSlots({actions:i.withCtx(({item:k})=>[i.renderSlot(w.$slots,"actions",{item:k},void 0,!0)]),_:2},[i.renderList(i.unref(u),(k,$)=>({name:k.value,fn:i.withCtx(({item:R})=>[i.renderSlot(w.$slots,k.value,{index:_,item:R},()=>[i.createTextVNode(i.toDisplayString(R[k.value]),1)],!0)])}))]),1032,["row-position","data-headers","data","selectable","children-prop","selected-elements","searched-prop"]))),128))])])])}}}),[["__scopeId","data-v-2986559a"]]),WtTableActions:wI,WtTableColumnSelect:SI,WtButtonSelect:QE,WtContextMenu:uL,WtCopyAction:yL,WtLoadBar:uT,WtIconAction:s6,WtPageHeader:uN,WtItemLink:nT,WtDummy:ZM,WtStepper:GV,WtExpansionPanel:bO,WtNavigationMenu:nC,WtStartPage:Bk,WtSelectionPopup:pk},cp=pc?window:void 0;function wo(e){var r;const o=i.toValue(e);return(r=o==null?void 0:o.$el)!=null?r:o}function v2(...e){const r=[],o=()=>{r.forEach(c=>c()),r.length=0},n=(c,d,u,f)=>(c.addEventListener(d,u,f),()=>c.removeEventListener(d,u,f)),a=i.computed(()=>{const c=Nn(i.toValue(e[0])).filter(d=>d!=null);return c.every(d=>typeof d!="string")?c:void 0}),l=QO(()=>{var c,d;return[(d=(c=a.value)==null?void 0:c.map(u=>wo(u)))!=null?d:[cp].filter(u=>u!=null),Nn(i.toValue(a.value?e[1]:e[0])),Nn(i.unref(a.value?e[2]:e[1])),i.toValue(a.value?e[3]:e[2])]},([c,d,u,f])=>{if(o(),!(c!=null&&c.length)||!(d!=null&&d.length)||!(u!=null&&u.length))return;const h=YO(f)?{...f}:f;r.push(...c.flatMap(p=>d.flatMap(y=>u.map(C=>n(p,y,C,h)))))},{flush:"post"}),s=()=>{l(),o()};return hc(o),s}let dp=!1;function up(e,r,o={}){const{window:n=cp,ignore:a=[],capture:l=!0,detectIframe:s=!1,controls:c=!1}=o;if(!n)return c?{stop:A0,cancel:A0,trigger:A0}:A0;if(mc&&!dp){dp=!0;const x={passive:!0};Array.from(n.document.body.children).forEach(v=>v2(v,"click",A0,x)),v2(n.document.documentElement,"click",A0,x)}let d=!0;const u=x=>i.toValue(a).some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(b=>b===x.target||x.composedPath().includes(b));{const b=wo(v);return b&&(x.target===b||x.composedPath().includes(b))}});function f(x){const v=i.toValue(x);return v&&v.$.subTree.shapeFlag===16}function h(x,v){const b=i.toValue(x),_=b.$.subTree&&b.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(k=>k.el===v.target||v.composedPath().includes(k.el))}const p=x=>{const v=wo(e);if(x.target!=null&&!(!(v instanceof Element)&&f(e)&&h(e,x))&&!(!v||v===x.target||x.composedPath().includes(v))){if("detail"in x&&x.detail===0&&(d=!u(x)),!d){d=!0;return}r(x)}};let y=!1;const C=[v2(n,"click",x=>{y||(y=!0,setTimeout(()=>{y=!1},0),p(x))},{passive:!0,capture:l}),v2(n,"pointerdown",x=>{const v=wo(e);d=!u(x)&&!!(v&&!x.composedPath().includes(v))},{passive:!0}),s&&v2(n,"blur",x=>{setTimeout(()=>{var v;const b=wo(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(b!=null&&b.contains(n.document.activeElement))&&r(x)},0)},{passive:!0})].filter(Boolean),w=()=>C.forEach(x=>x());return c?{stop:w,cancel:()=>{d=!1},trigger:x=>{d=!0,p(x),d=!1}}:w}const jF={mounted(e,r){const o=!r.modifiers.bubble;if(typeof r.value=="function")e.__onClickOutside_stop=up(e,r.value,{capture:o});else{const[n,a]=r.value;e.__onClickOutside_stop=up(e,n,Object.assign({capture:o},a))}},unmounted(e){e.__onClickOutside_stop()}};function td(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function fp(e){const r=window.getComputedStyle(e);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&e.clientWidth<e.scrollWidth||r.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const o=e.parentNode;return!o||o.tagName==="BODY"?!1:fp(o)}}function UF(e){const r=e||window.event,o=r.target;return fp(o)?!1:r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)}const rd=new WeakMap;function WF(e,r=!1){const o=i.shallowRef(r);let n=null,a="";i.watch(XO(e),c=>{const d=td(i.toValue(c));if(d){const u=d;if(rd.get(u)||rd.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(a=u.style.overflow),u.style.overflow==="hidden")return o.value=!0;if(o.value)return u.style.overflow="hidden"}},{immediate:!0});const l=()=>{const c=td(i.toValue(e));!c||o.value||(mc&&(n=v2(c,"touchmove",d=>{UF(d)},{passive:!1})),c.style.overflow="hidden",o.value=!0)},s=()=>{const c=td(i.toValue(e));!c||!o.value||(mc&&(n==null||n()),c.style.overflow=a,rd.delete(c),o.value=!1)};return hc(s),i.computed({get(){return o.value},set(c){c?l():s()}})}function ZF(){let e=!1;const r=i.shallowRef(!1);return(o,n)=>{if(r.value=n.value,e)return;e=!0;const a=WF(o,n.value);i.watch(r,l=>a.value=l)}}ZF();const hp={clickaway:jF};var KF=`
|
|
294
294
|
.p-icon {
|
|
295
295
|
display: inline-block;
|
|
296
296
|
vertical-align: baseline;
|
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
:disabled="disabled"
|
|
29
29
|
:placeholder="placeholder || label"
|
|
30
30
|
:value="value"
|
|
31
|
-
rows="
|
|
31
|
+
:rows="rows"
|
|
32
32
|
:readonly="readonly"
|
|
33
33
|
class="wt-textarea__textarea"
|
|
34
34
|
v-on="listeners"
|
|
@@ -108,6 +108,14 @@ export default {
|
|
|
108
108
|
type: String,
|
|
109
109
|
default: '',
|
|
110
110
|
},
|
|
111
|
+
/**
|
|
112
|
+
* Number of rows in textarea
|
|
113
|
+
*/
|
|
114
|
+
rows: {
|
|
115
|
+
type: Number,
|
|
116
|
+
default: 1,
|
|
117
|
+
description: 'Number of rows for textarea',
|
|
118
|
+
},
|
|
111
119
|
labelProps: {
|
|
112
120
|
type: Object,
|
|
113
121
|
description: 'Object with props, passed down to wt-label as props',
|