@webitel/ui-sdk 25.5.6 → 25.5.7
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
|
@@ -28141,10 +28141,10 @@ function jN(e, r, n, o, a, i) {
|
|
|
28141
28141
|
}
|
|
28142
28142
|
const UN = /* @__PURE__ */ Me(zN, [["render", jN], ["__scopeId", "data-v-1714b524"]]), WN = {
|
|
28143
28143
|
name: "WtTextarea",
|
|
28144
|
-
mixins: [u1],
|
|
28145
28144
|
components: {
|
|
28146
28145
|
WtLabel: Dh
|
|
28147
28146
|
},
|
|
28147
|
+
mixins: [u1],
|
|
28148
28148
|
props: {
|
|
28149
28149
|
/**
|
|
28150
28150
|
* Current textarea value (`v-model`)
|
|
@@ -28308,7 +28308,7 @@ function KN(e, r, n, o, a, i) {
|
|
|
28308
28308
|
}, 8, ["invalid"])) : j("", !0)
|
|
28309
28309
|
], 2);
|
|
28310
28310
|
}
|
|
28311
|
-
const XN = /* @__PURE__ */ Me(WN, [["render", KN], ["__scopeId", "data-v-
|
|
28311
|
+
const XN = /* @__PURE__ */ Me(WN, [["render", KN], ["__scopeId", "data-v-7d1b900a"]]), QN = {
|
|
28312
28312
|
name: "WtTimeInput",
|
|
28313
28313
|
mixins: [u1],
|
|
28314
28314
|
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)}}},BF={class:"multiselect__loading-wrapper"};function $F(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"),p=i.resolveComponent("wt-input-info"),h=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:g,remove:x})=>[i.createVNode(d,{class:"multiselect__custom-tag"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.getTagOptionLabel({option:g,optionLabel:e.optionLabel}))+" ",1),i.createVNode(c,{color:"on-primary",icon:"close--filled",size:"sm",onClick:C=>x(g)},null,8,["onClick"])],void 0,!0),_:2},1024)]),option:i.withCtx(({option:g})=>[i.renderSlot(e.$slots,"option",i.normalizeProps(i.guardReactiveProps({option:g,optionLabel:e.optionLabel})),()=>[i.createTextVNode(i.toDisplayString(l.getTagOptionLabel({option:g,optionLabel:e.optionLabel})),1)],!0)]),caret:i.withCtx(({toggle:g})=>[i.createVNode(c,{disabled:e.disabled,class:"multiselect__select",color:"active",icon:"arrow-down",onMousedown:i.withModifiers(g,["prevent","stop"])},null,8,["disabled","onMousedown"])]),beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",BF,[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),[[h,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(p,{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 AF=be(LF,[["render",$F],["__scopeId","data-v-1714b524"]]),OF={name:"WtTextarea",mixins:[Un],components:{WtLabel:L7},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"},required:{type:Boolean,default:!1},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)}}},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)`}}},MF={class:"wt-textarea__wrapper"},TF=["id","disabled","placeholder","value","rows","readonly"],DF={ref:"after-wrapper",class:"wt-textarea__after-wrapper"};function NF(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,required:o.required,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","for","required","invalid"]),i.createElementVNode("div",MF,[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,TF),i.createElementVNode("div",DF,[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 PF=be(OF,[["render",NF],["__scopeId","data-v-c2d69cbd"]]),VF={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)}}}},IF={class:"wt-time-input__wrapper"},FF=["disabled","max","value"];function RF(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",IF,[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,FF)]),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 HF=be(VF,[["render",RF],["__scopeId","data-v-ae7cf0e8"]]),po=60*60,Q3=60,zF={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/Q3%60)},set(e){const r=this.dateMode?new Date(this.value).setMinutes(e):this.value-this.min*Q3+e*Q3;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)})}}},qF={class:"wt-timepicker__wrapper"};function jF(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",qF,[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 UF=be(zF,[["render",jF],["__scopeId","data-v-e9eb3b40"]]),WF=["top","right","bottom","left"],Xh=["start","end"],Qh=WF.reduce((e,r)=>e.concat(r,r+"-"+Xh[0],r+"-"+Xh[1]),[]),Yn=Math.min,Wr=Math.max,Gn=Math.round,Xn=Math.floor,D0=e=>({x:e,y:e}),ZF={left:"right",right:"left",bottom:"top",top:"bottom"},KF={start:"end",end:"start"};function Jh(e,r,o){return Wr(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 ep(e){return e==="x"?"y":"x"}function tp(e){return e==="y"?"height":"width"}function y2(e){return["top","bottom"].includes(er(e))?"y":"x"}function rp(e){return ep(y2(e))}function op(e,r,o){o===void 0&&(o=!1);const n=tr(e),a=rp(e),l=tp(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 YF(e){const r=Jn(e);return[Qn(e),r,Qn(r)]}function Qn(e){return e.replace(/start|end/g,r=>KF[r])}function GF(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 XF(e,r,o,n){const a=tr(e);let l=GF(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=>ZF[r])}function QF(e){return{top:0,right:0,bottom:0,left:0,...e}}function JF(e){return typeof e!="number"?QF(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 np(e,r,o){let{reference:n,floating:a}=e;const l=y2(r),s=rp(r),c=tp(s),d=er(r),u=l==="y",f=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,h=n[c]/2-a[c]/2;let g;switch(d){case"top":g={x:f,y:n.y-a.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-a.width,y:p};break;default:g={x:n.x,y:n.y}}switch(tr(r)){case"start":g[s]-=h*(o&&u?-1:1);break;case"end":g[s]+=h*(o&&u?-1:1);break}return g}const eR=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:p}=np(u,n,d),h=n,g={},x=0;for(let C=0;C<c.length;C++){const{name:v,fn:w}=c[C],{x:y,y:_,data:k,reset:S}=await w({x:f,y:p,initialPlacement:n,placement:h,strategy:a,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:r}});f=y??f,p=_??p,g={...g,[v]:{...g[v],...k}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:a}):S.rects),{x:f,y:p}=np(u,h,d)),C=-1)}return{x:f,y:p,placement:h,strategy:a,middlewareData:g}};async function J3(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:p="floating",altBoundary:h=!1,padding:g=0}=mo(r,e),x=JF(g),v=c[h?p==="floating"?"reference":"floating":p],w=ei(await l.getClippingRect({element:(o=await(l.isElement==null?void 0:l.isElement(v)))==null||o?v:v.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),y=p==="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},S=ei(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:_,strategy:d}):y);return{top:(w.top-S.top+x.top)/k.y,bottom:(S.bottom-w.bottom+x.bottom)/k.y,left:(w.left-S.left+x.left)/k.x,right:(S.right-w.right+x.right)/k.x}}function tR(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 rR=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:p,allowedPlacements:h=Qh,autoAlignment:g=!0,...x}=mo(e,r),C=p!==void 0||h===Qh?tR(p||null,g,h):h,v=await J3(r,x),w=((o=s.autoPlacement)==null?void 0:o.index)||0,y=C[w];if(y==null)return{};const _=op(y,l,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(c!==y)return{reset:{placement:C[0]}};const k=[v[er(y)],v[_[0]],v[_[1]]],S=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:k}],M=C[w+1];if(M)return{data:{index:w+1,overflows:S},reset:{placement:M}};const O=S.map(U=>{const T=tr(U.placement);return[U.placement,T&&f?U.overflows.slice(0,2).reduce((j,Y)=>j+Y,0):U.overflows[0],U.overflows]}).sort((U,T)=>U[1]-T[1]),I=((a=O.filter(U=>U[2].slice(0,tr(U[0])?2:3).every(T=>T<=0))[0])==null?void 0:a[0])||O[0][0];return I!==c?{data:{index:w+1,overflows:S},reset:{placement:I}}:{}}}},oR=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:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:C=!0,...v}=mo(e,r);if((o=l.arrow)!=null&&o.alignmentOffset)return{};const w=er(a),y=y2(c),_=er(c)===c,k=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=h||(_||!C?[Jn(c)]:YF(c)),M=x!=="none";!h&&M&&S.push(...XF(c,C,x,k));const O=[c,...S],N=await J3(r,v),I=[];let U=((n=l.flip)==null?void 0:n.overflows)||[];if(f&&I.push(N[w]),p){const re=op(a,s,k);I.push(N[re[0]],N[re[1]])}if(U=[...U,{placement:a,overflows:I}],!I.every(re=>re<=0)){var T,j;const re=(((T=l.flip)==null?void 0:T.index)||0)+1,ne=O[re];if(ne)return{data:{index:re,overflows:U},reset:{placement:ne}};let Q=(j=U.filter(L=>L.overflows[0]<=0).sort((L,q)=>L.overflows[1]-q.overflows[1])[0])==null?void 0:j.placement;if(!Q)switch(g){case"bestFit":{var Y;const L=(Y=U.filter(q=>{if(M){const V=y2(q.placement);return V===y||V==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(V=>V>0).reduce((V,Z)=>V+Z,0)]).sort((q,V)=>q[1]-V[1])[0])==null?void 0:Y[0];L&&(Q=L);break}case"initialPlacement":Q=c;break}if(a!==Q)return{reset:{placement:Q}}}return{}}}};async function nR(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,p=mo(r,e);let{mainAxis:h,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(g=c==="end"?x*-1:x),d?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const iR=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 nR(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}}}}},aR=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:v=>{let{x:w,y}=v;return{x:w,y}}},...d}=mo(e,r),u={x:o,y:n},f=await J3(r,d),p=y2(er(a)),h=ep(p);let g=u[h],x=u[p];if(l){const v=h==="y"?"top":"left",w=h==="y"?"bottom":"right",y=g+f[v],_=g-f[w];g=Jh(y,g,_)}if(s){const v=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=x+f[v],_=x-f[w];x=Jh(y,x,_)}const C=c.fn({...r,[h]:g,[p]:x});return{...C,data:{x:C.x-o,y:C.y-n,enabled:{[h]:l,[p]:s}}}}}};function ti(){return typeof window<"u"}function Zr(e){return ed(e)?(e.nodeName||"").toLowerCase():"#document"}function e0(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function N0(e){var r;return(r=(ed(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function ed(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 P0(e){return ti()?e instanceof HTMLElement||e instanceof e0(e).HTMLElement:!1}function ip(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 lR(e){return["table","td","th"].includes(Zr(e))}function ri(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function td(e){const r=rd(),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 sR(e){let r=yr(e);for(;P0(r)&&!b2(r);){if(td(r))return r;if(ri(r))return null;r=yr(r)}return null}function rd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function b2(e){return["html","body","#document"].includes(Zr(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(Zr(e)==="html")return e;const r=e.assignedSlot||e.parentNode||ip(e)&&e.host||N0(e);return ip(r)?r.host:r}function ap(e){const r=yr(e);return b2(r)?e.ownerDocument?e.ownerDocument.body:e.body:P0(r)&&go(r)?r:ap(r)}function yo(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);const a=ap(e),l=a===((n=e.ownerDocument)==null?void 0:n.body),s=e0(a);if(l){const c=od(s);return r.concat(s,s.visualViewport||[],go(a)?a:[],c&&o?yo(c):[])}return r.concat(a,yo(a,[],o))}function od(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lp(e){const r=y0(e);let o=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const a=P0(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 nd(e){return g0(e)?e:e.contextElement}function w2(e){const r=nd(e);if(!P0(r))return D0(1);const o=r.getBoundingClientRect(),{width:n,height:a,$:l}=lp(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 cR=D0(0);function sp(e){const r=e0(e);return!rd()||!r.visualViewport?cR:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function dR(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==e0(e)?!1:r}function Kr(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);const a=e.getBoundingClientRect(),l=nd(e);let s=D0(1);r&&(n?g0(n)&&(s=w2(n)):s=w2(e));const c=dR(l,o,n)?sp(l):D0(0);let d=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,f=a.width/s.x,p=a.height/s.y;if(l){const h=e0(l),g=n&&g0(n)?e0(n):n;let x=h,C=od(x);for(;C&&n&&g!==x;){const v=w2(C),w=C.getBoundingClientRect(),y=y0(C),_=w.left+(C.clientLeft+parseFloat(y.paddingLeft))*v.x,k=w.top+(C.clientTop+parseFloat(y.paddingTop))*v.y;d*=v.x,u*=v.y,f*=v.x,p*=v.y,d+=_,u+=k,x=e0(C),C=od(x)}}return ei({width:f,height:p,x:d,y:u})}function id(e,r){const o=oi(e).scrollLeft;return r?r.left+o:Kr(N0(e)).left+o}function cp(e,r,o){o===void 0&&(o=!1);const n=e.getBoundingClientRect(),a=n.left+r.scrollLeft-(o?0:id(e,n)),l=n.top+r.scrollTop;return{x:a,y:l}}function uR(e){let{elements:r,rect:o,offsetParent:n,strategy:a}=e;const l=a==="fixed",s=N0(n),c=r?ri(r.floating):!1;if(n===s||c&&l)return o;let d={scrollLeft:0,scrollTop:0},u=D0(1);const f=D0(0),p=P0(n);if((p||!p&&!l)&&((Zr(n)!=="body"||go(s))&&(d=oi(n)),P0(n))){const g=Kr(n);u=w2(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const h=s&&!p&&!l?cp(s,d,!0):D0(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-d.scrollLeft*u.x+f.x+h.x,y:o.y*u.y-d.scrollTop*u.y+f.y+h.y}}function fR(e){return Array.from(e.getClientRects())}function hR(e){const r=N0(e),o=oi(e),n=e.ownerDocument.body,a=Wr(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=Wr(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+id(e);const c=-o.scrollTop;return y0(n).direction==="rtl"&&(s+=Wr(r.clientWidth,n.clientWidth)-a),{width:a,height:l,x:s,y:c}}function pR(e,r){const o=e0(e),n=N0(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=rd();(!u||u&&r==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:l,height:s,x:c,y:d}}function mR(e,r){const o=Kr(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,l=P0(e)?w2(e):D0(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 dp(e,r,o){let n;if(r==="viewport")n=pR(e,o);else if(r==="document")n=hR(N0(e));else if(g0(r))n=mR(r,o);else{const a=sp(e);n={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return ei(n)}function up(e,r){const o=yr(e);return o===r||!g0(o)||b2(o)?!1:y0(o).position==="fixed"||up(o,r)}function gR(e,r){const o=r.get(e);if(o)return o;let n=yo(e,[],!1).filter(c=>g0(c)&&Zr(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=td(s);!d&&c.position==="fixed"&&(a=null),(l?!d&&!a:!d&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||go(s)&&!d&&up(e,s))?n=n.filter(f=>f!==s):a=c,s=yr(s)}return r.set(e,n),n}function yR(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e;const s=[...o==="clippingAncestors"?ri(r)?[]:gR(r,this._c):[].concat(o),n],c=s[0],d=s.reduce((u,f)=>{const p=dp(r,f,a);return u.top=Wr(p.top,u.top),u.right=Yn(p.right,u.right),u.bottom=Yn(p.bottom,u.bottom),u.left=Wr(p.left,u.left),u},dp(r,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function bR(e){const{width:r,height:o}=lp(e);return{width:r,height:o}}function wR(e,r,o){const n=P0(r),a=N0(r),l=o==="fixed",s=Kr(e,!0,l,r);let c={scrollLeft:0,scrollTop:0};const d=D0(0);if(n||!n&&!l)if((Zr(r)!=="body"||go(a))&&(c=oi(r)),n){const h=Kr(r,!0,l,r);d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}else a&&(d.x=id(a));const u=a&&!n&&!l?cp(a,c):D0(0),f=s.left+c.scrollLeft-d.x-u.x,p=s.top+c.scrollTop-d.y-u.y;return{x:f,y:p,width:s.width,height:s.height}}function ad(e){return y0(e).position==="static"}function fp(e,r){if(!P0(e)||y0(e).position==="fixed")return null;if(r)return r(e);let o=e.offsetParent;return N0(e)===o&&(o=o.ownerDocument.body),o}function hp(e,r){const o=e0(e);if(ri(e))return o;if(!P0(e)){let a=yr(e);for(;a&&!b2(a);){if(g0(a)&&!ad(a))return a;a=yr(a)}return o}let n=fp(e,r);for(;n&&lR(n)&&ad(n);)n=fp(n,r);return n&&b2(n)&&ad(n)&&!td(n)?o:n||sR(e)||o}const vR=async function(e){const r=this.getOffsetParent||hp,o=this.getDimensions,n=await o(e.floating);return{reference:wR(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function CR(e){return y0(e).direction==="rtl"}const xR={convertOffsetParentRelativeRectToViewportRelativeRect:uR,getDocumentElement:N0,getClippingRect:yR,getOffsetParent:hp,getElementRects:vR,getClientRects:fR,getDimensions:bR,getScale:w2,isElement:g0,isRTL:CR};function pp(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function kR(e,r){let o=null,n;const a=N0(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:p,width:h,height:g}=u;if(c||r(),!h||!g)return;const x=Xn(p),C=Xn(a.clientWidth-(f+h)),v=Xn(a.clientHeight-(p+g)),w=Xn(f),_={rootMargin:-x+"px "+-C+"px "+-v+"px "+-w+"px",threshold:Wr(0,Yn(1,d))||1};let k=!0;function S(M){const O=M[0].intersectionRatio;if(O!==d){if(!k)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!pp(u,e.getBoundingClientRect())&&s(),k=!1}try{o=new IntersectionObserver(S,{..._,root:a.ownerDocument})}catch{o=new IntersectionObserver(S,_)}o.observe(e)}return s(!0),l}function _R(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=nd(e),f=a||l?[...u?yo(u):[],...yo(r)]:[];f.forEach(w=>{a&&w.addEventListener("scroll",o,{passive:!0}),l&&w.addEventListener("resize",o)});const p=u&&c?kR(u,o):null;let h=-1,g=null;s&&(g=new ResizeObserver(w=>{let[y]=w;y&&y.target===u&&g&&(g.unobserve(r),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),o()}),u&&!d&&g.observe(u),g.observe(r));let x,C=d?Kr(e):null;d&&v();function v(){const w=Kr(e);C&&!pp(C,w)&&o(),C=w,x=requestAnimationFrame(v)}return o(),()=>{var w;f.forEach(y=>{a&&y.removeEventListener("scroll",o),l&&y.removeEventListener("resize",o)}),p==null||p(),(w=g)==null||w.disconnect(),g=null,d&&cancelAnimationFrame(x)}}const SR=iR,ER=rR,LR=aR,BR=oR,$R=(e,r,o)=>{const n=new Map,a={platform:xR,...o},l={...a.platform,_c:n};return eR(e,r,{...a,platform:l})};function AR(e){return e!=null&&typeof e=="object"&&"$el"in e}function mp(e){if(AR(e)){const r=e.$el;return ed(r)&&Zr(r)==="#comment"?null:r}return e}function bo(e){return typeof e=="function"?e():i.unref(e)}function gp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yp(e,r){const o=gp(e);return Math.round(r*o)/o}function OR(e,r,o){o===void 0&&(o={});const n=o.whileElementsMounted,a=i.computed(()=>{var O;return(O=bo(o.open))!=null?O:!0}),l=i.computed(()=>bo(o.middleware)),s=i.computed(()=>{var O;return(O=bo(o.placement))!=null?O:"bottom"}),c=i.computed(()=>{var O;return(O=bo(o.strategy))!=null?O:"absolute"}),d=i.computed(()=>{var O;return(O=bo(o.transform))!=null?O:!0}),u=i.computed(()=>mp(e.value)),f=i.computed(()=>mp(r.value)),p=i.ref(0),h=i.ref(0),g=i.ref(c.value),x=i.ref(s.value),C=i.shallowRef({}),v=i.ref(!1),w=i.computed(()=>{const O={position:g.value,left:"0",top:"0"};if(!f.value)return O;const N=yp(f.value,p.value),I=yp(f.value,h.value);return d.value?{...O,transform:"translate("+N+"px, "+I+"px)",...gp(f.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:N+"px",top:I+"px"}});let y;function _(){if(u.value==null||f.value==null)return;const O=a.value;$R(u.value,f.value,{middleware:l.value,placement:s.value,strategy:c.value}).then(N=>{p.value=N.x,h.value=N.y,g.value=N.strategy,x.value=N.placement,C.value=N.middlewareData,v.value=O!==!1})}function k(){typeof y=="function"&&(y(),y=void 0)}function S(){if(k(),n===void 0){_();return}if(u.value!=null&&f.value!=null){y=n(u.value,f.value,_);return}}function M(){a.value||(v.value=!1)}return i.watch([l,s,c,a],_,{flush:"sync"}),i.watch([u,f],S,{flush:"sync"}),i.watch(a,M,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(k),{x:i.shallowReadonly(p),y:i.shallowReadonly(h),strategy:i.shallowReadonly(g),placement:i.shallowReadonly(x),middlewareData:i.shallowReadonly(C),isPositioned:i.shallowReadonly(v),floatingStyles:w,update:_}}const bp={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wp={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"},vp=({target:e,triggers:r,show:o,hide:n})=>{const a=()=>{((c,d)=>{d.forEach(u=>{const f=bp[u];f?c.addEventListener(f,o):console.log(`No Tooltip Show event for ${u} trigger`);const p=wp[u];p?c.addEventListener(p,n):console.log(`No Tooltip Hide event for ${u} trigger`)})})(e.value,r)},l=()=>{((c,d)=>{d.forEach(u=>{const f=bp[u];f?c.removeEventListener(f,o):console.log(`No Tooltip Show event for ${u} trigger`);const p=wp[u];p?c.removeEventListener(p,n):console.log(`No Tooltip Hide event for ${u} trigger`)})})(e.value,r)};i.onMounted(()=>a()),i.onBeforeUnmount(()=>l())},MR={__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 vp({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))}},TR=be({__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=(C={})=>{o.disabled||c.value||(c.value=!0,C.usedByTooltip=!0,d(),h())},f=(C={})=>{var w;const v=(w=s.value)==null?void 0:w.contains(C.target);!c.value||C.usedByTooltip||v||(c.value=!1,d(),g())},p=(C={})=>{o.disableClickAway||f(C)},h=()=>{window.addEventListener("scroll",f,!0)},g=()=>{window.removeEventListener("scroll",f,!0)},{floatingStyles:x}=OR(a,l,{placement:o.placement==="auto"?null:o.placement,strategy:"fixed",whileElementsMounted:_R,middleware:[LR(),SR(4),o.placement==="auto"?ER():BR()]});return vp({target:a,triggers:o.triggers,show:u,hide:f}),i.watch(()=>o.visible,C=>{C?u():f()}),i.onMounted(()=>{o.visible&&u()}),i.onBeforeUnmount(()=>{g()}),(C,v)=>{const w=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(C.$slots,"activator",i.normalizeProps(i.guardReactiveProps({visible:c.value})),void 0,!0)],512),c.value?i.withDirectives((i.openBlock(),i.createBlock(MR,{key:0,ref_key:"floating",ref:l,class:i.normalizeClass([[e.popperClass],"wt-tooltip__floating"]),style:i.normalizeStyle(i.unref(x)),triggers:e.popperTriggers,onHide:f,onShow:u},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"floatingChild",ref:s},[i.renderSlot(C.$slots,"default",i.normalizeProps(i.guardReactiveProps({hide:f})),void 0,!0)],512)],void 0,!0),_:3},8,["class","style","triggers"])),[[w,p]]):i.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-b8fd5806"]]),DR={class:"wt-tree-line"},NR={class:"wt-tree-line__icon-wrapper"},PR={class:"wt-tree-line__label"},VR=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 g=o.nestedIcons?[...o.nestedIcons]:[];return o.nestedLevel===0||g.push({icon:"tree-line",hidden:!o.nextElement}),g}),s=()=>o.itemData?o.modelValue.includes(o.data[o.itemData]):!!o.modelValue.find(x=>ho(x,o.data)),c=i.computed(()=>o.multiple?s():o.itemData?o.data[o.itemData]===o.modelValue:ho(o.modelValue,o.data)),d=()=>{const g=o.itemData?o.data[o.itemData]:o.data;let x;if(o.itemData?x=o.modelValue.indexOf(o.data[o.itemData]):x=o.modelValue.findIndex(v=>ho(v,o.data)),x===-1){const v=[...o.modelValue];v.push(g),n("update:modelValue",v);return}const C=[...o.modelValue];C.splice(x,1),n("update:modelValue",C)},u=()=>{var g;if(o.multiple&&!o.data.service){d();return}if((g=o.data[o.childrenProp])!=null&&g.length){f.value=!f.value;return}n("update:modelValue",o.itemData?o.data[o.itemData]:o.data)},f=i.ref(!0),p=()=>{o.nestedLevel>0&&n("openParent")},h=()=>{f.value=!1,p()};return i.onMounted(()=>{c.value&&p(),o.data[o.searchedProp]&&p()}),i.watch(()=>o.modelValue,()=>{c.value&&p()}),(g,x)=>{const C=i.resolveComponent("wt-icon"),v=i.resolveComponent("wt-icon-btn"),w=i.resolveComponent("wt-tree-line",!0);return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",DR,[i.createElementVNode("div",NR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.nestedIcons,(y,_)=>(i.openBlock(),i.createBlock(C,{key:_,icon:y.icon,class:i.normalizeClass({hidden:y.hidden})},null,8,["icon","class"]))),128)),g.nestedLevel>=1?(i.openBlock(),i.createBlock(C,{key:0,icon:g.lastChild?"tree-corner":"tree-cross"},null,8,["icon"])):i.createCommentVNode("",!0),g.data[g.childrenProp]&&g.data[g.childrenProp].length?(i.openBlock(),i.createBlock(v,{key:1,icon:f.value?"plus":"minus",onClick:x[0]||(x[0]=y=>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",PR,i.toDisplayString(a.value),1),c.value?(i.openBlock(),i.createBlock(C,{key:0,icon:"chat-message-status-sent"})):i.createCommentVNode("",!0)],2)]),i.withDirectives(i.createVNode(wc,null,{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.data[g.childrenProp],(y,_)=>(i.openBlock(),i.createBlock(w,{key:_,"model-value":g.modelValue,data:y,"children-prop":g.childrenProp,"item-label":g.itemLabel,"item-data":g.itemData,"nested-level":g.nestedLevel+1,"next-element":!!g.data[g.childrenProp][_+1],"nested-icons":l.value,"last-child":_===g.data[g.childrenProp].length-1,multiple:g.multiple,onOpenParent:h,"onUpdate:modelValue":x[1]||(x[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)}}}),ld={Tree:"tree",List:"list"},IR={class:"wt-tree"},FR={key:0,class:"wt-tree__content"},RR={key:1,class:"wt-tree__list-content"},HR=["onClick"],zR=i.defineComponent({__name:"wt-tree",props:{modelValue:{},data:{},itemLabel:{},itemData:{},mode:{default:ld.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",IR,[c.mode===i.unref(ld).Tree?(i.openBlock(),i.createElementBlock("div",FR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.data,(f,p)=>(i.openBlock(),i.createBlock(VR,{key:p,"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]=h=>n("update:modelValue",h))},null,8,["model-value","item-label","item-data","data","children-prop","multiple"]))),128))])):i.createCommentVNode("",!0),c.mode===i.unref(ld).List?(i.openBlock(),i.createElementBlock("div",RR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(f,p)=>(i.openBlock(),i.createElementBlock("span",{key:p,class:i.normalizeClass(["wt-tree__label-wrapper",{active:s(f)}])},[i.createElementVNode("p",{class:"wt-tree__label",onClick:h=>l(f)},i.toDisplayString(c.itemLabel?f[c.itemLabel]:f),9,HR),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)])}}}),qR=({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))}},jR={class:"wt-tree-table-td__content"},UR={key:0,class:"wt-tree-table-td__icon-wrapper"},WR={key:0,class:"wt-tree-table-td__actions"},ZR={class:"wt-tree-table-td__content"},KR=be(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,p=0)=>{if(f[o.searchedProp]&&p)return!0;if(Array.isArray(f[o.childrenProp])){for(const h of f[o.childrenProp])if(u(h,p+1))return!0}return!1};return i.onMounted(()=>{o.searchedProp&&u(o.data)&&d()}),(f,p)=>{const h=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,(g,x)=>(i.openBlock(),i.createElementBlock("td",{key:x,class:"wt-tree-table-td"},[i.createElementVNode("div",jR,[x?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",UR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,C=>(i.openBlock(),i.createElementBlock("div",{key:C,class:"wt-tree-table-row__tree-space"}))),128)),f.selectable?(i.openBlock(),i.createBlock(Is,{key:0,selected:c.value,onChange:p[0]||(p[0]=C=>f.$emit("update:selected",{data:f.data,select:C}))},null,8,["selected"])):i.createCommentVNode("",!0),f.data[f.childrenProp]?(i.openBlock(),i.createBlock(E7,{key:1,icon:a.value?"tree-expand":"tree-collapse",onClick:p[1]||(p[1]=C=>a.value=!a.value)},null,8,["icon"])):i.createCommentVNode("",!0)])),i.renderSlot(f.$slots,g.value,{index:f.rowPosition,item:f.data},()=>[i.createTextVNode(i.toDisplayString(f.data[g.value]),1)],!0)])]))),128)),f.gridActions?(i.openBlock(),i.createElementBlock("td",WR,[i.createElementVNode("div",ZR,[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],(g,x)=>(i.openBlock(),i.createBlock(h,{key:x,"children-prop":f.childrenProp,data:g,"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":p[2]||(p[2]=C=>f.$emit("update:selected",{data:C.data,select:C.select}))},i.createSlots({actions:i.withCtx(({item:C})=>[i.renderSlot(f.$slots,"actions",{index:f.rowPosition,item:C},void 0,!0)]),_:2},[i.renderList(f.dataHeaders,(C,v)=>({name:C.value,fn:i.withCtx(({item:w})=>[i.renderSlot(f.$slots,C.value,{index:f.rowPosition,item:w},()=>[i.createElementVNode("div",null,i.toDisplayString(w[C.value]),1)],!0)])}))]),1032,["children-prop","data","data-headers","nesting-level","row-position","searched-prop","selectable","selected-elements"]))),128))],64)}}}),[["__scopeId","data-v-10f86df9"]]),YR={class:"wt-tree-table"},GR={class:"wt-tree-table-wrapper"},XR={class:"wt-tree-table-head"},QR={class:"wt-tree-table-tr wt-tree-table-tr-head"},JR=["onClick"],eH={class:"wt-tree-table-th__content"},tH={class:"wt-tree-table-th__text"},rH={key:0,class:"wt-tree-table-th__actions"},oH={class:"wt-tree-table-th__content"},nH={class:"wt-tree-table-body"},Cp={WtActionBar:fE,WtImage:_7,WtEmpty:CM,WtLogo:FT,WtAvatar:rL,WtBadge:cL,WtIcon:S7,WtIndicator:lT,WtInputInfo:v7,WtButton:pL,WtChip:_L,WtConfirmDialog:LL,WtDivider:QO,WtTooltip:TR,WtLabel:L7,WtLoader:NT,WtRoundedAction:nV,WtReplaceTransition:lE,WtCheckbox:Is,WtDatepicker:YO,WtIconBtn:E7,WtInput:dT,WtIntersectionObserver:CT,WtHint:tT,WtNotification:yD,WtPopup:YP,WtProgressBar:QP,WtRadio:oV,WtSearchBar:cV,WtSelect:GV,WtSlider:eI,WtSwitcher:gI,WtTabs:WI,WtTagsInput:AF,WtTimeInput:HF,WtTimepicker:UF,WtTextarea:PF,WtAppHeader:gE,WtHeadline:ZM,WtHeadlineNav:QM,WtNavigationBar:hD,WtAppNavigator:IE,WtFiltersPanelWrapper:HM,WtHeaderActions:QE,WtErrorPage:OM,WtNotificationsBar:SD,WtPageWrapper:TD,WtDualPanel:nM,WtPagination:ZD,WtPlayer:GD,WtPopover:BP,WtStatusSelect:iI,WtTable:AI,WtTree:zR,WtTreeTable:be(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=C=>C[o.childrenProp]&&Array.isArray(C[o.childrenProp]),l=C=>{const v=[],w=y=>{if(y._isSelected)return[y];a(y)&&y[o.childrenProp].forEach(w)};return C.forEach(w),v},s=C=>{const v=[],w=y=>{v.push(y),a(y)&&y[o.childrenProp].forEach(w)};return C.forEach(w),v},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}=qR({headers:o.headers}),f=({sort:C})=>o.sortable&&C!==void 0,p=C=>{if(!f(C))return;const v=Nf(C.sort);n("sort",C,v)},h=(C,v)=>{C.forEach(w=>{w._isSelected=v,a(w)&&h(w[o.childrenProp],v)})},g=()=>{o.selected?n("update:selected",d.value?[]:[...s(o.data)]):d.value?h(o.data,!1):h(o.data,!0)},x=(C,v)=>{o.selected?v?n("update:selected",[...c.value,C]):n("update:selected",c.value.filter(w=>w!==C)):C._isSelected=!C._isSelected};return(C,v)=>{const w=i.resolveComponent("wt-icon");return i.openBlock(),i.createElementBlock("div",YR,[i.createElementVNode("table",GR,[i.createElementVNode("thead",XR,[i.createElementVNode("tr",QR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),(y,_)=>(i.openBlock(),i.createElementBlock("th",{key:_,class:i.normalizeClass([[{"wt-tree-table-th--sortable":f(y)},`wt-tree-table-th--sort-${y.sort}`],"wt-tree-table-th"]),style:i.normalizeStyle(y.width?`min-width:${y.width}`:""),onClick:k=>p(y)},[i.createElementVNode("div",eH,[_===0&&C.selectable?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:v[0]||(v[0]=i.withModifiers(()=>{},["stop"]))},[i.createVNode(i.unref(Is),{selected:d.value,onChange:g},null,8,["selected"])])):i.createCommentVNode("",!0),i.createElementVNode("div",tH,i.toDisplayString(y.text),1),C.sortable?(i.openBlock(),i.createBlock(w,{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),C.sortable?(i.openBlock(),i.createBlock(w,{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,JR))),128)),C.gridActions?(i.openBlock(),i.createElementBlock("th",rH,[i.createElementVNode("div",oH,[i.renderSlot(C.$slots,"actions-header",{},void 0,!0)])])):i.createCommentVNode("",!0)])]),i.createElementVNode("tbody",nH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C.data,(y,_)=>(i.openBlock(),i.createBlock(KR,{key:_,"row-position":_,"data-headers":i.unref(u),data:y,selectable:C.selectable,"children-prop":C.childrenProp,"selected-elements":c.value,"searched-prop":C.searchedProp,"onUpdate:selected":v[1]||(v[1]=k=>x(k.data,k.select))},i.createSlots({actions:i.withCtx(({item:k})=>[i.renderSlot(C.$slots,"actions",{item:k},void 0,!0)]),_:2},[i.renderList(i.unref(u),(k,S)=>({name:k.value,fn:i.withCtx(({item:M})=>[i.renderSlot(C.$slots,k.value,{index:_,item:M},()=>[i.createTextVNode(i.toDisplayString(M[k.value]),1)],!0)])}))]),1032,["row-position","data-headers","data","selectable","children-prop","selected-elements","searched-prop"]))),128))])])])}}}),[["__scopeId","data-v-2986559a"]]),WtTableActions:DI,WtTableColumnSelect:RI,WtButtonSelect:gL,WtContextMenu:$L,WtCopyAction:NL,WtLoadBar:ET,WtIconAction:v6,WtPageHeader:ED,WtItemLink:xT,WtDummy:uM,WtStepper:uI,WtExpansionPanel:PM,WtNavigationMenu:yC,WtStartPage:Hk,WtSelectionPopup:Lk},xp=Cc?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=Dn(i.toValue(e[0])).filter(d=>d!=null);return c.every(d=>typeof d!="string")?c:void 0}),l=gT(()=>{var c,d;return[(d=(c=a.value)==null?void 0:c.map(u=>wo(u)))!=null?d:[xp].filter(u=>u!=null),Dn(i.toValue(a.value?e[1]:e[0])),Dn(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 p=hT(f)?{...f}:f;r.push(...c.flatMap(h=>d.flatMap(g=>u.map(x=>n(h,g,x,p)))))},{flush:"post"}),s=()=>{l(),o()};return vc(o),s}let kp=!1;function _p(e,r,o={}){const{window:n=xp,ignore:a=[],capture:l=!0,detectIframe:s=!1,controls:c=!1}=o;if(!n)return c?{stop:A0,cancel:A0,trigger:A0}:A0;if(xc&&!kp){kp=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(w=>v2(w,"click",A0,v)),v2(n.document.documentElement,"click",A0,v)}let d=!0;const u=v=>i.toValue(a).some(w=>{if(typeof w=="string")return Array.from(n.document.querySelectorAll(w)).some(y=>y===v.target||v.composedPath().includes(y));{const y=wo(w);return y&&(v.target===y||v.composedPath().includes(y))}});function f(v){const w=i.toValue(v);return w&&w.$.subTree.shapeFlag===16}function p(v,w){const y=i.toValue(v),_=y.$.subTree&&y.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(k=>k.el===w.target||w.composedPath().includes(k.el))}const h=v=>{const w=wo(e);if(v.target!=null&&!(!(w instanceof Element)&&f(e)&&p(e,v))&&!(!w||w===v.target||v.composedPath().includes(w))){if("detail"in v&&v.detail===0&&(d=!u(v)),!d){d=!0;return}r(v)}};let g=!1;const x=[v2(n,"click",v=>{g||(g=!0,setTimeout(()=>{g=!1},0),h(v))},{passive:!0,capture:l}),v2(n,"pointerdown",v=>{const w=wo(e);d=!u(v)&&!!(w&&!v.composedPath().includes(w))},{passive:!0}),s&&v2(n,"blur",v=>{setTimeout(()=>{var w;const y=wo(e);((w=n.document.activeElement)==null?void 0:w.tagName)==="IFRAME"&&!(y!=null&&y.contains(n.document.activeElement))&&r(v)},0)},{passive:!0})].filter(Boolean),C=()=>x.forEach(v=>v());return c?{stop:C,cancel:()=>{d=!1},trigger:v=>{d=!0,h(v),d=!1}}:C}const iH={mounted(e,r){const o=!r.modifiers.bubble;if(typeof r.value=="function")e.__onClickOutside_stop=_p(e,r.value,{capture:o});else{const[n,a]=r.value;e.__onClickOutside_stop=_p(e,n,Object.assign({capture:o},a))}},unmounted(e){e.__onClickOutside_stop()}};function sd(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Sp(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:Sp(o)}}function aH(e){const r=e||window.event,o=r.target;return Sp(o)?!1:r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)}const cd=new WeakMap;function lH(e,r=!1){const o=i.shallowRef(r);let n=null,a="";i.watch(mT(e),c=>{const d=sd(i.toValue(c));if(d){const u=d;if(cd.get(u)||cd.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=sd(i.toValue(e));!c||o.value||(xc&&(n=v2(c,"touchmove",d=>{aH(d)},{passive:!1})),c.style.overflow="hidden",o.value=!0)},s=()=>{const c=sd(i.toValue(e));!c||!o.value||(xc&&(n==null||n()),c.style.overflow=a,cd.delete(c),o.value=!1)};return vc(s),i.computed({get(){return o.value},set(c){c?l():s()}})}function sH(){let e=!1;const r=i.shallowRef(!1);return(o,n)=>{if(r.value=n.value,e)return;e=!0;const a=lH(o,n.value);i.watch(r,l=>a.value=l)}}sH();const Ep={clickaway:iH};var cH=`
|
|
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)}}},BF={class:"multiselect__loading-wrapper"};function $F(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"),p=i.resolveComponent("wt-input-info"),h=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:g,remove:x})=>[i.createVNode(d,{class:"multiselect__custom-tag"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.getTagOptionLabel({option:g,optionLabel:e.optionLabel}))+" ",1),i.createVNode(c,{color:"on-primary",icon:"close--filled",size:"sm",onClick:C=>x(g)},null,8,["onClick"])],void 0,!0),_:2},1024)]),option:i.withCtx(({option:g})=>[i.renderSlot(e.$slots,"option",i.normalizeProps(i.guardReactiveProps({option:g,optionLabel:e.optionLabel})),()=>[i.createTextVNode(i.toDisplayString(l.getTagOptionLabel({option:g,optionLabel:e.optionLabel})),1)],!0)]),caret:i.withCtx(({toggle:g})=>[i.createVNode(c,{disabled:e.disabled,class:"multiselect__select",color:"active",icon:"arrow-down",onMousedown:i.withModifiers(g,["prevent","stop"])},null,8,["disabled","onMousedown"])]),beforeList:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",BF,[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),[[h,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(p,{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 AF=be(LF,[["render",$F],["__scopeId","data-v-1714b524"]]),OF={name:"WtTextarea",components:{WtLabel:L7},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"},required:{type:Boolean,default:!1},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)}}},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)`}}},MF={class:"wt-textarea__wrapper"},TF=["id","disabled","placeholder","value","rows","readonly"],DF={ref:"after-wrapper",class:"wt-textarea__after-wrapper"};function NF(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,required:o.required,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","for","required","invalid"]),i.createElementVNode("div",MF,[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,TF),i.createElementVNode("div",DF,[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 PF=be(OF,[["render",NF],["__scopeId","data-v-7d1b900a"]]),VF={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)}}}},IF={class:"wt-time-input__wrapper"},FF=["disabled","max","value"];function RF(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",IF,[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,FF)]),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 HF=be(VF,[["render",RF],["__scopeId","data-v-ae7cf0e8"]]),po=60*60,Q3=60,zF={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/Q3%60)},set(e){const r=this.dateMode?new Date(this.value).setMinutes(e):this.value-this.min*Q3+e*Q3;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)})}}},qF={class:"wt-timepicker__wrapper"};function jF(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",qF,[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 UF=be(zF,[["render",jF],["__scopeId","data-v-e9eb3b40"]]),WF=["top","right","bottom","left"],Xh=["start","end"],Qh=WF.reduce((e,r)=>e.concat(r,r+"-"+Xh[0],r+"-"+Xh[1]),[]),Yn=Math.min,Wr=Math.max,Gn=Math.round,Xn=Math.floor,D0=e=>({x:e,y:e}),ZF={left:"right",right:"left",bottom:"top",top:"bottom"},KF={start:"end",end:"start"};function Jh(e,r,o){return Wr(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 ep(e){return e==="x"?"y":"x"}function tp(e){return e==="y"?"height":"width"}function y2(e){return["top","bottom"].includes(er(e))?"y":"x"}function rp(e){return ep(y2(e))}function op(e,r,o){o===void 0&&(o=!1);const n=tr(e),a=rp(e),l=tp(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 YF(e){const r=Jn(e);return[Qn(e),r,Qn(r)]}function Qn(e){return e.replace(/start|end/g,r=>KF[r])}function GF(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 XF(e,r,o,n){const a=tr(e);let l=GF(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=>ZF[r])}function QF(e){return{top:0,right:0,bottom:0,left:0,...e}}function JF(e){return typeof e!="number"?QF(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 np(e,r,o){let{reference:n,floating:a}=e;const l=y2(r),s=rp(r),c=tp(s),d=er(r),u=l==="y",f=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,h=n[c]/2-a[c]/2;let g;switch(d){case"top":g={x:f,y:n.y-a.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-a.width,y:p};break;default:g={x:n.x,y:n.y}}switch(tr(r)){case"start":g[s]-=h*(o&&u?-1:1);break;case"end":g[s]+=h*(o&&u?-1:1);break}return g}const eR=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:p}=np(u,n,d),h=n,g={},x=0;for(let C=0;C<c.length;C++){const{name:v,fn:w}=c[C],{x:y,y:_,data:k,reset:S}=await w({x:f,y:p,initialPlacement:n,placement:h,strategy:a,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:r}});f=y??f,p=_??p,g={...g,[v]:{...g[v],...k}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:r,strategy:a}):S.rects),{x:f,y:p}=np(u,h,d)),C=-1)}return{x:f,y:p,placement:h,strategy:a,middlewareData:g}};async function J3(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:p="floating",altBoundary:h=!1,padding:g=0}=mo(r,e),x=JF(g),v=c[h?p==="floating"?"reference":"floating":p],w=ei(await l.getClippingRect({element:(o=await(l.isElement==null?void 0:l.isElement(v)))==null||o?v:v.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),y=p==="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},S=ei(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:_,strategy:d}):y);return{top:(w.top-S.top+x.top)/k.y,bottom:(S.bottom-w.bottom+x.bottom)/k.y,left:(w.left-S.left+x.left)/k.x,right:(S.right-w.right+x.right)/k.x}}function tR(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 rR=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:p,allowedPlacements:h=Qh,autoAlignment:g=!0,...x}=mo(e,r),C=p!==void 0||h===Qh?tR(p||null,g,h):h,v=await J3(r,x),w=((o=s.autoPlacement)==null?void 0:o.index)||0,y=C[w];if(y==null)return{};const _=op(y,l,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(c!==y)return{reset:{placement:C[0]}};const k=[v[er(y)],v[_[0]],v[_[1]]],S=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:k}],M=C[w+1];if(M)return{data:{index:w+1,overflows:S},reset:{placement:M}};const O=S.map(U=>{const T=tr(U.placement);return[U.placement,T&&f?U.overflows.slice(0,2).reduce((j,Y)=>j+Y,0):U.overflows[0],U.overflows]}).sort((U,T)=>U[1]-T[1]),I=((a=O.filter(U=>U[2].slice(0,tr(U[0])?2:3).every(T=>T<=0))[0])==null?void 0:a[0])||O[0][0];return I!==c?{data:{index:w+1,overflows:S},reset:{placement:I}}:{}}}},oR=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:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:C=!0,...v}=mo(e,r);if((o=l.arrow)!=null&&o.alignmentOffset)return{};const w=er(a),y=y2(c),_=er(c)===c,k=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=h||(_||!C?[Jn(c)]:YF(c)),M=x!=="none";!h&&M&&S.push(...XF(c,C,x,k));const O=[c,...S],N=await J3(r,v),I=[];let U=((n=l.flip)==null?void 0:n.overflows)||[];if(f&&I.push(N[w]),p){const re=op(a,s,k);I.push(N[re[0]],N[re[1]])}if(U=[...U,{placement:a,overflows:I}],!I.every(re=>re<=0)){var T,j;const re=(((T=l.flip)==null?void 0:T.index)||0)+1,ne=O[re];if(ne)return{data:{index:re,overflows:U},reset:{placement:ne}};let Q=(j=U.filter(L=>L.overflows[0]<=0).sort((L,q)=>L.overflows[1]-q.overflows[1])[0])==null?void 0:j.placement;if(!Q)switch(g){case"bestFit":{var Y;const L=(Y=U.filter(q=>{if(M){const V=y2(q.placement);return V===y||V==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(V=>V>0).reduce((V,Z)=>V+Z,0)]).sort((q,V)=>q[1]-V[1])[0])==null?void 0:Y[0];L&&(Q=L);break}case"initialPlacement":Q=c;break}if(a!==Q)return{reset:{placement:Q}}}return{}}}};async function nR(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,p=mo(r,e);let{mainAxis:h,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(g=c==="end"?x*-1:x),d?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const iR=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 nR(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}}}}},aR=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:v=>{let{x:w,y}=v;return{x:w,y}}},...d}=mo(e,r),u={x:o,y:n},f=await J3(r,d),p=y2(er(a)),h=ep(p);let g=u[h],x=u[p];if(l){const v=h==="y"?"top":"left",w=h==="y"?"bottom":"right",y=g+f[v],_=g-f[w];g=Jh(y,g,_)}if(s){const v=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=x+f[v],_=x-f[w];x=Jh(y,x,_)}const C=c.fn({...r,[h]:g,[p]:x});return{...C,data:{x:C.x-o,y:C.y-n,enabled:{[h]:l,[p]:s}}}}}};function ti(){return typeof window<"u"}function Zr(e){return ed(e)?(e.nodeName||"").toLowerCase():"#document"}function e0(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function N0(e){var r;return(r=(ed(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function ed(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 P0(e){return ti()?e instanceof HTMLElement||e instanceof e0(e).HTMLElement:!1}function ip(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 lR(e){return["table","td","th"].includes(Zr(e))}function ri(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function td(e){const r=rd(),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 sR(e){let r=yr(e);for(;P0(r)&&!b2(r);){if(td(r))return r;if(ri(r))return null;r=yr(r)}return null}function rd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function b2(e){return["html","body","#document"].includes(Zr(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(Zr(e)==="html")return e;const r=e.assignedSlot||e.parentNode||ip(e)&&e.host||N0(e);return ip(r)?r.host:r}function ap(e){const r=yr(e);return b2(r)?e.ownerDocument?e.ownerDocument.body:e.body:P0(r)&&go(r)?r:ap(r)}function yo(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);const a=ap(e),l=a===((n=e.ownerDocument)==null?void 0:n.body),s=e0(a);if(l){const c=od(s);return r.concat(s,s.visualViewport||[],go(a)?a:[],c&&o?yo(c):[])}return r.concat(a,yo(a,[],o))}function od(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lp(e){const r=y0(e);let o=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const a=P0(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 nd(e){return g0(e)?e:e.contextElement}function w2(e){const r=nd(e);if(!P0(r))return D0(1);const o=r.getBoundingClientRect(),{width:n,height:a,$:l}=lp(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 cR=D0(0);function sp(e){const r=e0(e);return!rd()||!r.visualViewport?cR:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function dR(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==e0(e)?!1:r}function Kr(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);const a=e.getBoundingClientRect(),l=nd(e);let s=D0(1);r&&(n?g0(n)&&(s=w2(n)):s=w2(e));const c=dR(l,o,n)?sp(l):D0(0);let d=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,f=a.width/s.x,p=a.height/s.y;if(l){const h=e0(l),g=n&&g0(n)?e0(n):n;let x=h,C=od(x);for(;C&&n&&g!==x;){const v=w2(C),w=C.getBoundingClientRect(),y=y0(C),_=w.left+(C.clientLeft+parseFloat(y.paddingLeft))*v.x,k=w.top+(C.clientTop+parseFloat(y.paddingTop))*v.y;d*=v.x,u*=v.y,f*=v.x,p*=v.y,d+=_,u+=k,x=e0(C),C=od(x)}}return ei({width:f,height:p,x:d,y:u})}function id(e,r){const o=oi(e).scrollLeft;return r?r.left+o:Kr(N0(e)).left+o}function cp(e,r,o){o===void 0&&(o=!1);const n=e.getBoundingClientRect(),a=n.left+r.scrollLeft-(o?0:id(e,n)),l=n.top+r.scrollTop;return{x:a,y:l}}function uR(e){let{elements:r,rect:o,offsetParent:n,strategy:a}=e;const l=a==="fixed",s=N0(n),c=r?ri(r.floating):!1;if(n===s||c&&l)return o;let d={scrollLeft:0,scrollTop:0},u=D0(1);const f=D0(0),p=P0(n);if((p||!p&&!l)&&((Zr(n)!=="body"||go(s))&&(d=oi(n)),P0(n))){const g=Kr(n);u=w2(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const h=s&&!p&&!l?cp(s,d,!0):D0(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-d.scrollLeft*u.x+f.x+h.x,y:o.y*u.y-d.scrollTop*u.y+f.y+h.y}}function fR(e){return Array.from(e.getClientRects())}function hR(e){const r=N0(e),o=oi(e),n=e.ownerDocument.body,a=Wr(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=Wr(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+id(e);const c=-o.scrollTop;return y0(n).direction==="rtl"&&(s+=Wr(r.clientWidth,n.clientWidth)-a),{width:a,height:l,x:s,y:c}}function pR(e,r){const o=e0(e),n=N0(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=rd();(!u||u&&r==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:l,height:s,x:c,y:d}}function mR(e,r){const o=Kr(e,!0,r==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,l=P0(e)?w2(e):D0(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 dp(e,r,o){let n;if(r==="viewport")n=pR(e,o);else if(r==="document")n=hR(N0(e));else if(g0(r))n=mR(r,o);else{const a=sp(e);n={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return ei(n)}function up(e,r){const o=yr(e);return o===r||!g0(o)||b2(o)?!1:y0(o).position==="fixed"||up(o,r)}function gR(e,r){const o=r.get(e);if(o)return o;let n=yo(e,[],!1).filter(c=>g0(c)&&Zr(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=td(s);!d&&c.position==="fixed"&&(a=null),(l?!d&&!a:!d&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||go(s)&&!d&&up(e,s))?n=n.filter(f=>f!==s):a=c,s=yr(s)}return r.set(e,n),n}function yR(e){let{element:r,boundary:o,rootBoundary:n,strategy:a}=e;const s=[...o==="clippingAncestors"?ri(r)?[]:gR(r,this._c):[].concat(o),n],c=s[0],d=s.reduce((u,f)=>{const p=dp(r,f,a);return u.top=Wr(p.top,u.top),u.right=Yn(p.right,u.right),u.bottom=Yn(p.bottom,u.bottom),u.left=Wr(p.left,u.left),u},dp(r,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function bR(e){const{width:r,height:o}=lp(e);return{width:r,height:o}}function wR(e,r,o){const n=P0(r),a=N0(r),l=o==="fixed",s=Kr(e,!0,l,r);let c={scrollLeft:0,scrollTop:0};const d=D0(0);if(n||!n&&!l)if((Zr(r)!=="body"||go(a))&&(c=oi(r)),n){const h=Kr(r,!0,l,r);d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}else a&&(d.x=id(a));const u=a&&!n&&!l?cp(a,c):D0(0),f=s.left+c.scrollLeft-d.x-u.x,p=s.top+c.scrollTop-d.y-u.y;return{x:f,y:p,width:s.width,height:s.height}}function ad(e){return y0(e).position==="static"}function fp(e,r){if(!P0(e)||y0(e).position==="fixed")return null;if(r)return r(e);let o=e.offsetParent;return N0(e)===o&&(o=o.ownerDocument.body),o}function hp(e,r){const o=e0(e);if(ri(e))return o;if(!P0(e)){let a=yr(e);for(;a&&!b2(a);){if(g0(a)&&!ad(a))return a;a=yr(a)}return o}let n=fp(e,r);for(;n&&lR(n)&&ad(n);)n=fp(n,r);return n&&b2(n)&&ad(n)&&!td(n)?o:n||sR(e)||o}const vR=async function(e){const r=this.getOffsetParent||hp,o=this.getDimensions,n=await o(e.floating);return{reference:wR(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function CR(e){return y0(e).direction==="rtl"}const xR={convertOffsetParentRelativeRectToViewportRelativeRect:uR,getDocumentElement:N0,getClippingRect:yR,getOffsetParent:hp,getElementRects:vR,getClientRects:fR,getDimensions:bR,getScale:w2,isElement:g0,isRTL:CR};function pp(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function kR(e,r){let o=null,n;const a=N0(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:p,width:h,height:g}=u;if(c||r(),!h||!g)return;const x=Xn(p),C=Xn(a.clientWidth-(f+h)),v=Xn(a.clientHeight-(p+g)),w=Xn(f),_={rootMargin:-x+"px "+-C+"px "+-v+"px "+-w+"px",threshold:Wr(0,Yn(1,d))||1};let k=!0;function S(M){const O=M[0].intersectionRatio;if(O!==d){if(!k)return s();O?s(!1,O):n=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!pp(u,e.getBoundingClientRect())&&s(),k=!1}try{o=new IntersectionObserver(S,{..._,root:a.ownerDocument})}catch{o=new IntersectionObserver(S,_)}o.observe(e)}return s(!0),l}function _R(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=nd(e),f=a||l?[...u?yo(u):[],...yo(r)]:[];f.forEach(w=>{a&&w.addEventListener("scroll",o,{passive:!0}),l&&w.addEventListener("resize",o)});const p=u&&c?kR(u,o):null;let h=-1,g=null;s&&(g=new ResizeObserver(w=>{let[y]=w;y&&y.target===u&&g&&(g.unobserve(r),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),o()}),u&&!d&&g.observe(u),g.observe(r));let x,C=d?Kr(e):null;d&&v();function v(){const w=Kr(e);C&&!pp(C,w)&&o(),C=w,x=requestAnimationFrame(v)}return o(),()=>{var w;f.forEach(y=>{a&&y.removeEventListener("scroll",o),l&&y.removeEventListener("resize",o)}),p==null||p(),(w=g)==null||w.disconnect(),g=null,d&&cancelAnimationFrame(x)}}const SR=iR,ER=rR,LR=aR,BR=oR,$R=(e,r,o)=>{const n=new Map,a={platform:xR,...o},l={...a.platform,_c:n};return eR(e,r,{...a,platform:l})};function AR(e){return e!=null&&typeof e=="object"&&"$el"in e}function mp(e){if(AR(e)){const r=e.$el;return ed(r)&&Zr(r)==="#comment"?null:r}return e}function bo(e){return typeof e=="function"?e():i.unref(e)}function gp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yp(e,r){const o=gp(e);return Math.round(r*o)/o}function OR(e,r,o){o===void 0&&(o={});const n=o.whileElementsMounted,a=i.computed(()=>{var O;return(O=bo(o.open))!=null?O:!0}),l=i.computed(()=>bo(o.middleware)),s=i.computed(()=>{var O;return(O=bo(o.placement))!=null?O:"bottom"}),c=i.computed(()=>{var O;return(O=bo(o.strategy))!=null?O:"absolute"}),d=i.computed(()=>{var O;return(O=bo(o.transform))!=null?O:!0}),u=i.computed(()=>mp(e.value)),f=i.computed(()=>mp(r.value)),p=i.ref(0),h=i.ref(0),g=i.ref(c.value),x=i.ref(s.value),C=i.shallowRef({}),v=i.ref(!1),w=i.computed(()=>{const O={position:g.value,left:"0",top:"0"};if(!f.value)return O;const N=yp(f.value,p.value),I=yp(f.value,h.value);return d.value?{...O,transform:"translate("+N+"px, "+I+"px)",...gp(f.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:N+"px",top:I+"px"}});let y;function _(){if(u.value==null||f.value==null)return;const O=a.value;$R(u.value,f.value,{middleware:l.value,placement:s.value,strategy:c.value}).then(N=>{p.value=N.x,h.value=N.y,g.value=N.strategy,x.value=N.placement,C.value=N.middlewareData,v.value=O!==!1})}function k(){typeof y=="function"&&(y(),y=void 0)}function S(){if(k(),n===void 0){_();return}if(u.value!=null&&f.value!=null){y=n(u.value,f.value,_);return}}function M(){a.value||(v.value=!1)}return i.watch([l,s,c,a],_,{flush:"sync"}),i.watch([u,f],S,{flush:"sync"}),i.watch(a,M,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(k),{x:i.shallowReadonly(p),y:i.shallowReadonly(h),strategy:i.shallowReadonly(g),placement:i.shallowReadonly(x),middlewareData:i.shallowReadonly(C),isPositioned:i.shallowReadonly(v),floatingStyles:w,update:_}}const bp={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wp={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"},vp=({target:e,triggers:r,show:o,hide:n})=>{const a=()=>{((c,d)=>{d.forEach(u=>{const f=bp[u];f?c.addEventListener(f,o):console.log(`No Tooltip Show event for ${u} trigger`);const p=wp[u];p?c.addEventListener(p,n):console.log(`No Tooltip Hide event for ${u} trigger`)})})(e.value,r)},l=()=>{((c,d)=>{d.forEach(u=>{const f=bp[u];f?c.removeEventListener(f,o):console.log(`No Tooltip Show event for ${u} trigger`);const p=wp[u];p?c.removeEventListener(p,n):console.log(`No Tooltip Hide event for ${u} trigger`)})})(e.value,r)};i.onMounted(()=>a()),i.onBeforeUnmount(()=>l())},MR={__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 vp({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))}},TR=be({__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=(C={})=>{o.disabled||c.value||(c.value=!0,C.usedByTooltip=!0,d(),h())},f=(C={})=>{var w;const v=(w=s.value)==null?void 0:w.contains(C.target);!c.value||C.usedByTooltip||v||(c.value=!1,d(),g())},p=(C={})=>{o.disableClickAway||f(C)},h=()=>{window.addEventListener("scroll",f,!0)},g=()=>{window.removeEventListener("scroll",f,!0)},{floatingStyles:x}=OR(a,l,{placement:o.placement==="auto"?null:o.placement,strategy:"fixed",whileElementsMounted:_R,middleware:[LR(),SR(4),o.placement==="auto"?ER():BR()]});return vp({target:a,triggers:o.triggers,show:u,hide:f}),i.watch(()=>o.visible,C=>{C?u():f()}),i.onMounted(()=>{o.visible&&u()}),i.onBeforeUnmount(()=>{g()}),(C,v)=>{const w=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(C.$slots,"activator",i.normalizeProps(i.guardReactiveProps({visible:c.value})),void 0,!0)],512),c.value?i.withDirectives((i.openBlock(),i.createBlock(MR,{key:0,ref_key:"floating",ref:l,class:i.normalizeClass([[e.popperClass],"wt-tooltip__floating"]),style:i.normalizeStyle(i.unref(x)),triggers:e.popperTriggers,onHide:f,onShow:u},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"floatingChild",ref:s},[i.renderSlot(C.$slots,"default",i.normalizeProps(i.guardReactiveProps({hide:f})),void 0,!0)],512)],void 0,!0),_:3},8,["class","style","triggers"])),[[w,p]]):i.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-b8fd5806"]]),DR={class:"wt-tree-line"},NR={class:"wt-tree-line__icon-wrapper"},PR={class:"wt-tree-line__label"},VR=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 g=o.nestedIcons?[...o.nestedIcons]:[];return o.nestedLevel===0||g.push({icon:"tree-line",hidden:!o.nextElement}),g}),s=()=>o.itemData?o.modelValue.includes(o.data[o.itemData]):!!o.modelValue.find(x=>ho(x,o.data)),c=i.computed(()=>o.multiple?s():o.itemData?o.data[o.itemData]===o.modelValue:ho(o.modelValue,o.data)),d=()=>{const g=o.itemData?o.data[o.itemData]:o.data;let x;if(o.itemData?x=o.modelValue.indexOf(o.data[o.itemData]):x=o.modelValue.findIndex(v=>ho(v,o.data)),x===-1){const v=[...o.modelValue];v.push(g),n("update:modelValue",v);return}const C=[...o.modelValue];C.splice(x,1),n("update:modelValue",C)},u=()=>{var g;if(o.multiple&&!o.data.service){d();return}if((g=o.data[o.childrenProp])!=null&&g.length){f.value=!f.value;return}n("update:modelValue",o.itemData?o.data[o.itemData]:o.data)},f=i.ref(!0),p=()=>{o.nestedLevel>0&&n("openParent")},h=()=>{f.value=!1,p()};return i.onMounted(()=>{c.value&&p(),o.data[o.searchedProp]&&p()}),i.watch(()=>o.modelValue,()=>{c.value&&p()}),(g,x)=>{const C=i.resolveComponent("wt-icon"),v=i.resolveComponent("wt-icon-btn"),w=i.resolveComponent("wt-tree-line",!0);return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",DR,[i.createElementVNode("div",NR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.nestedIcons,(y,_)=>(i.openBlock(),i.createBlock(C,{key:_,icon:y.icon,class:i.normalizeClass({hidden:y.hidden})},null,8,["icon","class"]))),128)),g.nestedLevel>=1?(i.openBlock(),i.createBlock(C,{key:0,icon:g.lastChild?"tree-corner":"tree-cross"},null,8,["icon"])):i.createCommentVNode("",!0),g.data[g.childrenProp]&&g.data[g.childrenProp].length?(i.openBlock(),i.createBlock(v,{key:1,icon:f.value?"plus":"minus",onClick:x[0]||(x[0]=y=>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",PR,i.toDisplayString(a.value),1),c.value?(i.openBlock(),i.createBlock(C,{key:0,icon:"chat-message-status-sent"})):i.createCommentVNode("",!0)],2)]),i.withDirectives(i.createVNode(wc,null,{default:i.withCtx(()=>[i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.data[g.childrenProp],(y,_)=>(i.openBlock(),i.createBlock(w,{key:_,"model-value":g.modelValue,data:y,"children-prop":g.childrenProp,"item-label":g.itemLabel,"item-data":g.itemData,"nested-level":g.nestedLevel+1,"next-element":!!g.data[g.childrenProp][_+1],"nested-icons":l.value,"last-child":_===g.data[g.childrenProp].length-1,multiple:g.multiple,onOpenParent:h,"onUpdate:modelValue":x[1]||(x[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)}}}),ld={Tree:"tree",List:"list"},IR={class:"wt-tree"},FR={key:0,class:"wt-tree__content"},RR={key:1,class:"wt-tree__list-content"},HR=["onClick"],zR=i.defineComponent({__name:"wt-tree",props:{modelValue:{},data:{},itemLabel:{},itemData:{},mode:{default:ld.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",IR,[c.mode===i.unref(ld).Tree?(i.openBlock(),i.createElementBlock("div",FR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.data,(f,p)=>(i.openBlock(),i.createBlock(VR,{key:p,"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]=h=>n("update:modelValue",h))},null,8,["model-value","item-label","item-data","data","children-prop","multiple"]))),128))])):i.createCommentVNode("",!0),c.mode===i.unref(ld).List?(i.openBlock(),i.createElementBlock("div",RR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(f,p)=>(i.openBlock(),i.createElementBlock("span",{key:p,class:i.normalizeClass(["wt-tree__label-wrapper",{active:s(f)}])},[i.createElementVNode("p",{class:"wt-tree__label",onClick:h=>l(f)},i.toDisplayString(c.itemLabel?f[c.itemLabel]:f),9,HR),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)])}}}),qR=({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))}},jR={class:"wt-tree-table-td__content"},UR={key:0,class:"wt-tree-table-td__icon-wrapper"},WR={key:0,class:"wt-tree-table-td__actions"},ZR={class:"wt-tree-table-td__content"},KR=be(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,p=0)=>{if(f[o.searchedProp]&&p)return!0;if(Array.isArray(f[o.childrenProp])){for(const h of f[o.childrenProp])if(u(h,p+1))return!0}return!1};return i.onMounted(()=>{o.searchedProp&&u(o.data)&&d()}),(f,p)=>{const h=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,(g,x)=>(i.openBlock(),i.createElementBlock("td",{key:x,class:"wt-tree-table-td"},[i.createElementVNode("div",jR,[x?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",UR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,C=>(i.openBlock(),i.createElementBlock("div",{key:C,class:"wt-tree-table-row__tree-space"}))),128)),f.selectable?(i.openBlock(),i.createBlock(Is,{key:0,selected:c.value,onChange:p[0]||(p[0]=C=>f.$emit("update:selected",{data:f.data,select:C}))},null,8,["selected"])):i.createCommentVNode("",!0),f.data[f.childrenProp]?(i.openBlock(),i.createBlock(E7,{key:1,icon:a.value?"tree-expand":"tree-collapse",onClick:p[1]||(p[1]=C=>a.value=!a.value)},null,8,["icon"])):i.createCommentVNode("",!0)])),i.renderSlot(f.$slots,g.value,{index:f.rowPosition,item:f.data},()=>[i.createTextVNode(i.toDisplayString(f.data[g.value]),1)],!0)])]))),128)),f.gridActions?(i.openBlock(),i.createElementBlock("td",WR,[i.createElementVNode("div",ZR,[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],(g,x)=>(i.openBlock(),i.createBlock(h,{key:x,"children-prop":f.childrenProp,data:g,"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":p[2]||(p[2]=C=>f.$emit("update:selected",{data:C.data,select:C.select}))},i.createSlots({actions:i.withCtx(({item:C})=>[i.renderSlot(f.$slots,"actions",{index:f.rowPosition,item:C},void 0,!0)]),_:2},[i.renderList(f.dataHeaders,(C,v)=>({name:C.value,fn:i.withCtx(({item:w})=>[i.renderSlot(f.$slots,C.value,{index:f.rowPosition,item:w},()=>[i.createElementVNode("div",null,i.toDisplayString(w[C.value]),1)],!0)])}))]),1032,["children-prop","data","data-headers","nesting-level","row-position","searched-prop","selectable","selected-elements"]))),128))],64)}}}),[["__scopeId","data-v-10f86df9"]]),YR={class:"wt-tree-table"},GR={class:"wt-tree-table-wrapper"},XR={class:"wt-tree-table-head"},QR={class:"wt-tree-table-tr wt-tree-table-tr-head"},JR=["onClick"],eH={class:"wt-tree-table-th__content"},tH={class:"wt-tree-table-th__text"},rH={key:0,class:"wt-tree-table-th__actions"},oH={class:"wt-tree-table-th__content"},nH={class:"wt-tree-table-body"},Cp={WtActionBar:fE,WtImage:_7,WtEmpty:CM,WtLogo:FT,WtAvatar:rL,WtBadge:cL,WtIcon:S7,WtIndicator:lT,WtInputInfo:v7,WtButton:pL,WtChip:_L,WtConfirmDialog:LL,WtDivider:QO,WtTooltip:TR,WtLabel:L7,WtLoader:NT,WtRoundedAction:nV,WtReplaceTransition:lE,WtCheckbox:Is,WtDatepicker:YO,WtIconBtn:E7,WtInput:dT,WtIntersectionObserver:CT,WtHint:tT,WtNotification:yD,WtPopup:YP,WtProgressBar:QP,WtRadio:oV,WtSearchBar:cV,WtSelect:GV,WtSlider:eI,WtSwitcher:gI,WtTabs:WI,WtTagsInput:AF,WtTimeInput:HF,WtTimepicker:UF,WtTextarea:PF,WtAppHeader:gE,WtHeadline:ZM,WtHeadlineNav:QM,WtNavigationBar:hD,WtAppNavigator:IE,WtFiltersPanelWrapper:HM,WtHeaderActions:QE,WtErrorPage:OM,WtNotificationsBar:SD,WtPageWrapper:TD,WtDualPanel:nM,WtPagination:ZD,WtPlayer:GD,WtPopover:BP,WtStatusSelect:iI,WtTable:AI,WtTree:zR,WtTreeTable:be(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=C=>C[o.childrenProp]&&Array.isArray(C[o.childrenProp]),l=C=>{const v=[],w=y=>{if(y._isSelected)return[y];a(y)&&y[o.childrenProp].forEach(w)};return C.forEach(w),v},s=C=>{const v=[],w=y=>{v.push(y),a(y)&&y[o.childrenProp].forEach(w)};return C.forEach(w),v},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}=qR({headers:o.headers}),f=({sort:C})=>o.sortable&&C!==void 0,p=C=>{if(!f(C))return;const v=Nf(C.sort);n("sort",C,v)},h=(C,v)=>{C.forEach(w=>{w._isSelected=v,a(w)&&h(w[o.childrenProp],v)})},g=()=>{o.selected?n("update:selected",d.value?[]:[...s(o.data)]):d.value?h(o.data,!1):h(o.data,!0)},x=(C,v)=>{o.selected?v?n("update:selected",[...c.value,C]):n("update:selected",c.value.filter(w=>w!==C)):C._isSelected=!C._isSelected};return(C,v)=>{const w=i.resolveComponent("wt-icon");return i.openBlock(),i.createElementBlock("div",YR,[i.createElementVNode("table",GR,[i.createElementVNode("thead",XR,[i.createElementVNode("tr",QR,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),(y,_)=>(i.openBlock(),i.createElementBlock("th",{key:_,class:i.normalizeClass([[{"wt-tree-table-th--sortable":f(y)},`wt-tree-table-th--sort-${y.sort}`],"wt-tree-table-th"]),style:i.normalizeStyle(y.width?`min-width:${y.width}`:""),onClick:k=>p(y)},[i.createElementVNode("div",eH,[_===0&&C.selectable?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:v[0]||(v[0]=i.withModifiers(()=>{},["stop"]))},[i.createVNode(i.unref(Is),{selected:d.value,onChange:g},null,8,["selected"])])):i.createCommentVNode("",!0),i.createElementVNode("div",tH,i.toDisplayString(y.text),1),C.sortable?(i.openBlock(),i.createBlock(w,{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),C.sortable?(i.openBlock(),i.createBlock(w,{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,JR))),128)),C.gridActions?(i.openBlock(),i.createElementBlock("th",rH,[i.createElementVNode("div",oH,[i.renderSlot(C.$slots,"actions-header",{},void 0,!0)])])):i.createCommentVNode("",!0)])]),i.createElementVNode("tbody",nH,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(C.data,(y,_)=>(i.openBlock(),i.createBlock(KR,{key:_,"row-position":_,"data-headers":i.unref(u),data:y,selectable:C.selectable,"children-prop":C.childrenProp,"selected-elements":c.value,"searched-prop":C.searchedProp,"onUpdate:selected":v[1]||(v[1]=k=>x(k.data,k.select))},i.createSlots({actions:i.withCtx(({item:k})=>[i.renderSlot(C.$slots,"actions",{item:k},void 0,!0)]),_:2},[i.renderList(i.unref(u),(k,S)=>({name:k.value,fn:i.withCtx(({item:M})=>[i.renderSlot(C.$slots,k.value,{index:_,item:M},()=>[i.createTextVNode(i.toDisplayString(M[k.value]),1)],!0)])}))]),1032,["row-position","data-headers","data","selectable","children-prop","selected-elements","searched-prop"]))),128))])])])}}}),[["__scopeId","data-v-2986559a"]]),WtTableActions:DI,WtTableColumnSelect:RI,WtButtonSelect:gL,WtContextMenu:$L,WtCopyAction:NL,WtLoadBar:ET,WtIconAction:v6,WtPageHeader:ED,WtItemLink:xT,WtDummy:uM,WtStepper:uI,WtExpansionPanel:PM,WtNavigationMenu:yC,WtStartPage:Hk,WtSelectionPopup:Lk},xp=Cc?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=Dn(i.toValue(e[0])).filter(d=>d!=null);return c.every(d=>typeof d!="string")?c:void 0}),l=gT(()=>{var c,d;return[(d=(c=a.value)==null?void 0:c.map(u=>wo(u)))!=null?d:[xp].filter(u=>u!=null),Dn(i.toValue(a.value?e[1]:e[0])),Dn(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 p=hT(f)?{...f}:f;r.push(...c.flatMap(h=>d.flatMap(g=>u.map(x=>n(h,g,x,p)))))},{flush:"post"}),s=()=>{l(),o()};return vc(o),s}let kp=!1;function _p(e,r,o={}){const{window:n=xp,ignore:a=[],capture:l=!0,detectIframe:s=!1,controls:c=!1}=o;if(!n)return c?{stop:A0,cancel:A0,trigger:A0}:A0;if(xc&&!kp){kp=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(w=>v2(w,"click",A0,v)),v2(n.document.documentElement,"click",A0,v)}let d=!0;const u=v=>i.toValue(a).some(w=>{if(typeof w=="string")return Array.from(n.document.querySelectorAll(w)).some(y=>y===v.target||v.composedPath().includes(y));{const y=wo(w);return y&&(v.target===y||v.composedPath().includes(y))}});function f(v){const w=i.toValue(v);return w&&w.$.subTree.shapeFlag===16}function p(v,w){const y=i.toValue(v),_=y.$.subTree&&y.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(k=>k.el===w.target||w.composedPath().includes(k.el))}const h=v=>{const w=wo(e);if(v.target!=null&&!(!(w instanceof Element)&&f(e)&&p(e,v))&&!(!w||w===v.target||v.composedPath().includes(w))){if("detail"in v&&v.detail===0&&(d=!u(v)),!d){d=!0;return}r(v)}};let g=!1;const x=[v2(n,"click",v=>{g||(g=!0,setTimeout(()=>{g=!1},0),h(v))},{passive:!0,capture:l}),v2(n,"pointerdown",v=>{const w=wo(e);d=!u(v)&&!!(w&&!v.composedPath().includes(w))},{passive:!0}),s&&v2(n,"blur",v=>{setTimeout(()=>{var w;const y=wo(e);((w=n.document.activeElement)==null?void 0:w.tagName)==="IFRAME"&&!(y!=null&&y.contains(n.document.activeElement))&&r(v)},0)},{passive:!0})].filter(Boolean),C=()=>x.forEach(v=>v());return c?{stop:C,cancel:()=>{d=!1},trigger:v=>{d=!0,h(v),d=!1}}:C}const iH={mounted(e,r){const o=!r.modifiers.bubble;if(typeof r.value=="function")e.__onClickOutside_stop=_p(e,r.value,{capture:o});else{const[n,a]=r.value;e.__onClickOutside_stop=_p(e,n,Object.assign({capture:o},a))}},unmounted(e){e.__onClickOutside_stop()}};function sd(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Sp(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:Sp(o)}}function aH(e){const r=e||window.event,o=r.target;return Sp(o)?!1:r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)}const cd=new WeakMap;function lH(e,r=!1){const o=i.shallowRef(r);let n=null,a="";i.watch(mT(e),c=>{const d=sd(i.toValue(c));if(d){const u=d;if(cd.get(u)||cd.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=sd(i.toValue(e));!c||o.value||(xc&&(n=v2(c,"touchmove",d=>{aH(d)},{passive:!1})),c.style.overflow="hidden",o.value=!0)},s=()=>{const c=sd(i.toValue(e));!c||!o.value||(xc&&(n==null||n()),c.style.overflow=a,cd.delete(c),o.value=!1)};return vc(s),i.computed({get(){return o.value},set(c){c?l():s()}})}function sH(){let e=!1;const r=i.shallowRef(!1);return(o,n)=>{if(r.value=n.value,e)return;e=!0;const a=lH(o,n.value);i.watch(r,l=>a.value=l)}}sH();const Ep={clickaway:iH};var cH=`
|
|
294
294
|
.p-icon {
|
|
295
295
|
display: inline-block;
|
|
296
296
|
vertical-align: baseline;
|
package/package.json
CHANGED
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
|
|
62
62
|
<script>
|
|
63
63
|
import validationMixin from '../../mixins/validationMixin/validationMixin.js';
|
|
64
|
-
import
|
|
64
|
+
import WtLabel from '../wt-label/wt-label.vue';
|
|
65
65
|
|
|
66
66
|
export default {
|
|
67
67
|
name: 'WtTextarea',
|
|
68
|
-
mixins: [validationMixin],
|
|
69
68
|
components: {
|
|
70
69
|
WtLabel,
|
|
71
70
|
},
|
|
71
|
+
mixins: [validationMixin],
|
|
72
72
|
props: {
|
|
73
73
|
/**
|
|
74
74
|
* Current textarea value (`v-model`)
|