(function(V,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("@xirelogy/xwts"),require("@xirelogy/vany"),require("vue"),require("element-plus"),require("element-plus/es"),require("@vueuse/core"),require("@element-plus/icons-vue")):typeof define=="function"&&define.amd?define(["exports","@xirelogy/xwts","@xirelogy/vany","vue","element-plus","element-plus/es","@vueuse/core","@element-plus/icons-vue"],_):(V=typeof globalThis<"u"?globalThis:V||self,_(V.VanyActElementLibrary={},V.Xwts,V.VanyComponentLibrary,V.Vue,V.ElementPlus,V.ElementPlusEs,V.VueUseCore,V.ElementPlusIconsVue))})(this,function(V,_,s,t,g,R,z,I){"use strict";var Vn=Object.defineProperty;var bn=(V,_,s)=>_ in V?Vn(V,_,{enumerable:!0,configurable:!0,writable:!0,value:s}):V[_]=s;var $=(V,_,s)=>(bn(V,typeof _!="symbol"?_+"":_,s),s);function q(n){return n.trim().toLowerCase()}const H=function(){var n;function e(){return new class{constructor(){$(this,"_overrideLocale",null);$(this,"_locales",{})}declare(r,o){const l=q(r);this._locales[l]=o}access(r){const o=q(r);return this._locales[o]??null}accessCurrent(){if(this._overrideLocale!==null){const r=this.access(this._overrideLocale);if(r!==null)return r}return this.access(_.xw.i18n.currentLocale)}overrideCurrent(r){this._overrideLocale=r}}}return{getInstance:()=>(n||(n=e()),n)}}();function D(){return H.getInstance()}const Sn="",wn="",kn="",Cn="",Rn="";var K={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const G=t.defineComponent({__name:"ElementConfigProvider",setup(n){const e=t.computed(()=>{const r=D().accessCurrent();return r!==null?_._cast(r):K});return(r,o)=>(t.openBlock(),t.createBlock(t.unref(g.ElConfigProvider),{locale:e.value},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},8,["locale"]))}}),j=n=>{const e=n;return t.h(G,{},{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function Y(n){n.registerRenderer("app",j)}const En="",Bn="";function J(n,e){const r=t.ref([]),o=t.ref(!1);let l=null,a=null;async function c(){if(a!==l){if(o.value){setTimeout(c,e);return}l=a;try{o.value=!0;const f=await n(l??"");r.value=[];for(const u of f)r.value.push({isActive:!1,isHovering:!1,item:u})}catch(f){const u=_.XwError.asError(f);console.warn("Error while filtering result",u),r.value=[]}finally{o.value=!1}}}return{isLoading:t.computed(()=>o.value),hasItem:t.computed(()=>r.value.length>0),items:t.computed(()=>r.value),notifyKeyword(f){a=f,setTimeout(c,e)}}}const X=["aria-selected","onMouseenter","onMouseleave","onClick"],Q=t.defineComponent({__name:"ElementAutocompleteSelection",props:{specRequest:{}},emits:["selected","outside"],setup(n,{expose:e,emit:r}){const{t:o}=R.useLocale(),l=R.useNamespace("scrollbar"),a=R.useNamespace("select"),c=n,f=r;t.useSlots();const u=J(c.specRequest.filter,c.specRequest.debounceMs),d=t.computed(()=>{const h=[];return u.hasItem.value?h.push(l.b()):h.push(a.b("dropdown")),h}),i=t.ref();z.onClickOutside(i,()=>{f("outside")});function m(h){u.notifyKeyword(h)}function p(h){c.specRequest.notifySelected(h,!0),f("selected")}return e({notifyKeyword:m}),(h,S)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"refMain",ref:i,class:t.normalizeClass(d.value)},[t.unref(u).hasItem.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([t.unref(a).be("dropdown","wrap"),t.unref(l).e("wrap"),t.unref(l).em("wrap","hidden-default")])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(u).items.value,b=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass([t.unref(a).be("dropdown","item"),t.unref(a).is("selected",b.isActive),t.unref(a).is("hovering",b.isHovering)]),role:"option","aria-selected":b.isActive,onMouseenter:()=>{b.isHovering=!0},onMouseleave:()=>{b.isHovering=!1},onClick:y=>p(b.item)},[t.renderSlot(h.$slots,"default",{isActive:b.isActive,value:b.item},()=>[t.createTextVNode(t.toDisplayString(t.unref(_.xw).normalizeString(b.item)),1)])],42,X))),256))],2)):t.unref(u).isLoading.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(t.unref(a).be("dropdown","loading"))},[t.createElementVNode("span",null,t.toDisplayString(t.unref(o)("el.select.loading")),1)],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(t.unref(a).be("dropdown","empty"))},[t.createElementVNode("span",null,t.toDisplayString(t.unref(o)("el.select.noMatch")),1)],2))],2))}}),Z=t.defineComponent({__name:"ElementAutocomplete",props:{specRequest:{}},setup(n){const e=R.useNamespace("select"),r=n,o=t.ref(!1),l=t.ref(200),a=t.ref();t.nextTick(()=>{a.value&&(c(),window.addEventListener("resize",c))});function c(){const d=a.value.$el;d&&(l.value=d.offsetWidth)}const f=t.ref();r.specRequest.fwdNotifyKeyword.handleUsing(d=>{var i;(i=f.value)==null||i.notifyKeyword(d),o.value=!0});function u(){const d={ref:a},i=s.VanyRenderer.acceptSlot(r.specRequest.slots.default),m=s.VanyVue.acceptSingleVNode(i());return[m?t.cloneVNode(m,d):t.createTextVNode(""),t.h(g.ElPopover,{popperClass:[e.e("popper")],popperStyle:{padding:"0 !important"},virtualRef:a,visible:o.value,placement:"bottom",width:l.value,pure:!0,virtualTriggering:!0},{default:()=>t.h(Q,{ref:f,specRequest:r.specRequest,onSelected(){o.value=!1},onOutside(){o.value=!1}},{default:s.VanyRenderer.acceptOptionalSlot(r.specRequest.slots.item)})})]}return(d,i)=>(t.openBlock(),t.createBlock(u))}}),P=n=>{const e=n;return t.h(Z,{specRequest:e},{})};function v(n){n.registerRenderer("autocomplete",P)}const $n="",ee=n=>{const e=n,r={...e.attrs,separator:_.xw.normalizeString(e.separator??"/")};return t.h(g.ElBreadcrumb,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function te(n){n.registerRenderer("breadcrumb",ee)}const xn="",ne=n=>{const e=n,r={...e.attrs};return t.h(g.ElBreadcrumbItem,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function re(n){n.registerRenderer("breadcrumb-item",ne)}const Tn="";function oe(n){switch(n??""){case"primary":return"primary";case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":return"info";default:return"default"}}const se=n=>{const e=n,r={...e.attrs,type:oe(e.type),plain:e.light,disabled:e.disabled,loading:e.loading};return s.VanyInlineState.isInline()||(r.class=(r.class??[]).concat([" vany-util-width-full "])),t.h(g.ElButton,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function le(n){n.registerRenderer("button",se)}const In="",ae=(n,e)=>{_._used(e);let r=[];n.slots.header&&r.push(t.h("div",{class:["el-card__header"]},{default:s.VanyRenderer.acceptSlot(n.slots.header)})),r.push(t.h("div",{class:["el-card__body"]},{default:s.VanyRenderer.acceptSlot(n.slots.default)})),n.slots.footer&&r.push(t.h("div",{class:["el-card__footer"]},{default:s.VanyRenderer.acceptSlot(n.slots.footer)}));const o=new s.VanyRenderAttributes;switch(e){case"top":case"bottom":{o.mergeAttrsClass(["vany-util-width-full"]),n.dockClass&&o.mergeAttrsClassSpec(n.dockClass);const l=t.h(s.VanyExtendedSlot,o.values,{default:s.VanyRenderer.acceptSlot(n.slots.dock)});e==="top"?r=[l].concat(r):r.push(l)}break;case"left":case"right":{o.mergeAttrsClass(["vany-std-flex-item-fixed"]),n.dockClass&&o.mergeAttrsClassSpec(n.dockClass);const l=t.h(s.VanyExtendedSlot,{class:["vany-util-width-full","vany-util-height-full"]},{default:s.VanyRenderer.acceptSlot(n.slots.dock)}),a=t.h("div",o.values,[l]),c=t.h("div",{class:["vany-std-flex-item-spring"]},r);e==="left"?r=[a,c]:r=[c,a],r=[t.h("div",{class:["vany-std-flex-hor"]},r)]}break}return t.h("div",{class:["el-card","is-always-shadow"]},r)},ce=n=>{const e=n,r={...e.attrs},o={default:s.VanyRenderer.acceptSlot(e.slots.default)};if(e.slots.dock)return ae(e,e.dock??"top");const l=e.dock??"top";return e.slots.dock,e.slots.header&&(o.header=s.VanyRenderer.acceptSlot(e.slots.header)),e.slots.footer&&(o.footer=s.VanyRenderer.acceptSlot(e.slots.footer)),t.h(g.ElCard,r,o)};function ie(n){n.registerRenderer("card",ce)}const Dn="",de=t.defineComponent({__name:"ElementCheck",props:{disabled:{type:Boolean,default:!1},_render:{default:null}},setup(n){var c,f;const e=n,r=t.ref(!1),o=t.ref(!1);(f=(c=e._render)==null?void 0:c.modelValue)==null||f.onWatch(u=>{u==="indeterminate"?o.value=!0:(o.value=!1,r.value=u===!0)});function l(u){if(u===!0)return!0;if(u===!1)return!1}function a(u){var i,m,p;const d=l(u);d!==void 0&&((m=(i=e._render)==null?void 0:i.modelValue)==null||m.notifyUpdate(d),(p=e._render)==null||p.notifyEvent("change",arguments,u))}return(u,d)=>(t.openBlock(),t.createBlock(t.unref(g.ElCheckbox),{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=i=>r.value=i),indeterminate:o.value,disabled:e.disabled,onChange:a},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default")]),_:3},8,["modelValue","indeterminate","disabled"]))}}),ue=n=>{const e=n,r={...e.attrs,disabled:e.disabled,_render:e._render};return s.VanyInlineState.isInline()||(_._cast(r).class=(_._cast(r).class??[]).concat(["vany-util-width-full"])),t.h(de,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function fe(n){n.registerRenderer("check",ue)}const Nn="",qn="",Mn="",Fn="",An="",pe=n=>{const e=n,r=[];return e.slots.header&&r.push(t.h(g.ElHeader,{},{default:s.VanyRenderer.acceptSlot(e.slots.header)})),r.push(t.h(g.ElMain,{},{default:s.VanyRenderer.acceptSlot(e.slots.default)})),e.slots.footer&&r.push(t.h(g.ElFooter,{},{default:s.VanyRenderer.acceptSlot(e.slots.footer)})),t.h(g.ElContainer,{},{default:()=>r})};function me(n){n.registerRenderer("container",pe)}const Ln="",Un="",On="",ge=t.defineComponent({__name:"ElementDatePicker",props:{disabled:{type:Boolean,default:!1},_render:{default:null}},setup(n){var c,f,u;const e=n,r=t.ref(""),o=t.ref();(f=(c=e._render)==null?void 0:c.modelValue)==null||f.onWatch(d=>{r.value=d??""}),(u=e._render)==null||u.onFocus(async()=>o.value?(await o.value.focus(),!0):!1);function l(){var d;(d=e._render)==null||d.notifyEvent("blur",arguments)}function a(d){var i,m,p;(m=(i=e._render)==null?void 0:i.modelValue)==null||m.notifyUpdate(d),(p=e._render)==null||p.notifyEvent("change",arguments)}return(d,i)=>(t.openBlock(),t.createBlock(t.unref(g.ElDatePicker),{ref_key:"refInput",ref:o,modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=m=>r.value=m),"value-format":"YYYY-MM-DD",disabled:e.disabled,onBlur:l,onChange:a},{default:t.withCtx(()=>[t.renderSlot(d.$slots,"default")]),_:3},8,["modelValue","disabled"]))}}),he=n=>{const e=n,r={...e.attrs,name:e.name!==null?e.name:void 0,disabled:e.disabled,_render:e._render};return t.h(ge,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function _e(n){n.registerRenderer("date-input",he)}const Wn="",zn="",ye=t.defineComponent({__name:"ElementDialog",props:{_render:{default:null}},setup(n){var u,d;const e=n,r=t.useSlots(),o=t.ref(!1);(d=(u=e._render)==null?void 0:u.modelValue)==null||d.onWatch(i=>o.value=i);function l(){var i;(i=e._render)==null||i.notifyEvent("show")}function a(){var i,m,p;(m=(i=e._render)==null?void 0:i.modelValue)==null||m.notifyUpdate(!0),(p=e._render)==null||p.notifyEvent("shown")}function c(){var i;(i=e._render)==null||i.notifyEvent("hide")}function f(){var i,m,p;(m=(i=e._render)==null?void 0:i.modelValue)==null||m.notifyUpdate(!1),(p=e._render)==null||p.notifyEvent("hidden")}return(i,m)=>(t.openBlock(),t.createBlock(t.unref(g.ElDialog),{modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=p=>o.value=p),onOpen:l,onOpened:a,onClose:c,onClosed:f},t.createSlots({default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:2},[t.unref(r).header?{name:"header",fn:t.withCtx(()=>[t.renderSlot(i.$slots,"header")]),key:"0"}:void 0,t.unref(r).footer?{name:"footer",fn:t.withCtx(()=>[t.renderSlot(i.$slots,"footer")]),key:"1"}:void 0]),1032,["modelValue"]))}}),Ve=n=>{const e=n,r={...e.attrs,_render:e._render},o={default:s.VanyRenderer.acceptSlot(e.slots.default)};return e.slots.header&&(o.header=s.VanyRenderer.acceptSlot(e.slots.header)),e.slots.footer&&(o.footer=s.VanyRenderer.acceptSlot(e.slots.footer)),t.h(ye,r,o)};function be(n){n.registerRenderer("dialog",Ve)}const Se=n=>{const e=n;return t.h("div",{},{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function we(n){n.registerRenderer("div",Se)}const Hn="",ke=t.defineComponent({__name:"ElementDrawer",props:{specRequest:{},_render:{default:null}},setup(n){var i,m;const e=n,r=t.useSlots(),o=t.ref(!1),l=t.computed(()=>{switch(e.specRequest.dock){case"left":return"ltr";case"right":return"rtl";case"top":return"ttb";case"bottom":return"btt";default:return"rtl"}});(m=(i=e._render)==null?void 0:i.modelValue)==null||m.onWatch(p=>o.value=p);function a(){var p;(p=e._render)==null||p.notifyEvent("show")}function c(){var p,h,S;(h=(p=e._render)==null?void 0:p.modelValue)==null||h.notifyUpdate(!0),(S=e._render)==null||S.notifyEvent("shown")}function f(){var p;(p=e._render)==null||p.notifyEvent("hide")}function u(){var p,h,S;(h=(p=e._render)==null?void 0:p.modelValue)==null||h.notifyUpdate(!1),(S=e._render)==null||S.notifyEvent("hidden")}function d(p){return()=>t.h("div",{id:p.titleId,class:p.titleClass},[r.header()])}return(p,h)=>(t.openBlock(),t.createBlock(t.unref(g.ElDrawer),{modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=S=>o.value=S),direction:l.value,"close-on-click-modal":p.specRequest.closeOutside,"close-on-press-escape":p.specRequest.closeEscape,"show-close":p.specRequest.closeButton,modal:p.specRequest.modal,size:p.specRequest.size??"30%",onOpen:a,onOpened:c,onClose:f,onClosed:u},t.createSlots({default:t.withCtx(()=>[t.renderSlot(p.$slots,"default")]),_:2},[t.unref(r).header?{name:"header",fn:t.withCtx(S=>[t.createVNode(t.unref(s.VanyRenderFunctionComponent),{fn:d(S)},null,8,["fn"])]),key:"0"}:void 0,t.unref(r).footer?{name:"footer",fn:t.withCtx(()=>[t.renderSlot(p.$slots,"footer")]),key:"1"}:void 0]),1032,["modelValue","direction","close-on-click-modal","close-on-press-escape","show-close","modal","size"]))}}),Ce=n=>{const e=n,r={...e.attrs,specRequest:e,_render:e._render};return t.h(ke,r,{default:s.VanyRenderer.acceptSlot(e.slots.default),header:s.VanyRenderer.acceptOptionalSlot(e.slots.header),footer:s.VanyRenderer.acceptOptionalSlot(e.slots.footer)})};function Re(n){n.registerRenderer("drawer",Ce)}const Kn="",Gn="",Ee=t.defineComponent({__name:"ElementDropdownMenu",props:{trigger:{},placement:{},_render:{default:void 0}},setup(n){const e=n;function r(l){switch(l){case"hover":return"hover";case"click":return"click";case"context":return"contextmenu";default:return"hover"}}function o(l){var a;(a=e._render)==null||a.notifySelected(l)}return(l,a)=>(t.openBlock(),t.createBlock(t.unref(g.ElDropdown),{placement:e.placement,trigger:r(e.trigger),onCommand:o},{dropdown:t.withCtx(()=>[t.createVNode(t.unref(g.ElDropdownMenu),null,{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default")]),_:3})]),default:t.withCtx(()=>[t.renderSlot(l.$slots,"reference")]),_:3},8,["placement","trigger"]))}}),Be=n=>{const e=n,r={...e.attrs,trigger:e.trigger,placement:e.placement,_render:e._render};return t.h(Ee,r,e.slots)};function $e(n){n.registerRenderer("dropdown-menu",Be)}const jn="",xe=n=>{const e=n;e.virtual&&(e.inline=!0);const r=new s.VanyRenderAttributes({...e.attrs,inline:e.inline,disabled:e.disabled},!1);e.virtual?(r.mergeAttrsClassSpec("vany-form-virtual"),r.values["label-position"]="right"):r.values["label-position"]="top",r.values["require-asterisk-position"]="right",r.values.action||(r.values.action="javascript:void(0);");const o=s.VanyRenderer.acceptSlot(e.slots.default),l=e.submitButton?()=>[o(),t.h("input",{type:"submit",style:{width:"0px",height:"0px",opacity:"0"}})]:o;return t.h(g.ElForm,r.values,{default:l})};function Te(n){n.registerRenderer("form",xe)}const Yn="",Jn="",M=Symbol();class Ie{constructor(e,r){$(this,"onFocus");$(this,"onBlur");this.onFocus=e,this.onBlur=r}}function De(n,e){return new Ie(n,e)}function Ne(n){const e=t.inject(M,null);if(e!==null){if(n.onfocus){const r=n.onfocus;n.onfocus=o=>{e.onFocus(o),r(o)}}else n.onfocus=e.onFocus;if(n.onblur){const r=n.onblur;n.onblur=o=>{e.onBlur(o),r(o)}}else n.onblur=e.onBlur}}const qe=t.defineComponent({__name:"ElementFocusHint",setup(n){const e=t.ref(!1),r=t.ref(!1),o=t.computed(()=>e.value||r.value);t.provide(M,De(()=>{e.value=!0},()=>{e.value=!1}));function l(){r.value=!0}function a(){r.value=!1}return(c,f)=>(t.openBlock(),t.createBlock(t.unref(g.ElTooltip),{effect:"light",placement:"bottom",trigger:"focus",visible:o.value},{content:t.withCtx(()=>[t.renderSlot(c.$slots,"content")]),default:t.withCtx(()=>[t.renderSlot(c.$slots,"default",{onmouseenter:l,onmouseleave:a})]),_:3},8,["visible"]))}}),Me=n=>{var f;const e=n,r={...e.attrs,required:e.required},o=s.VanyRenderer.acceptSlot(e.slots.default);let l=o;const a=s.VanyRenderer.acceptSlot(e.slots.hint)();a!==null&&(l=()=>t.h(qe,{},{default:o,content:()=>a}));const c=t.ref();return r.ref=c,(f=e._render)==null||f.onValidated((u,d)=>{c.value&&(u===null?c.value.clearValidate():u?(c.value.validateState="success",c.value.validateMessage=""):(c.value.validateState="error",c.value.validateMessage=_.XwError.asString(d)))}),t.h(g.ElFormItem,r,{default:l,label:s.VanyVue.acceptSlotOrTextAsSlot(e.slots.label,e.label)})};function Fe(n){n.registerRenderer("form-item",Me)}function Ae(n){switch(n){case"primary":return"--el-color-primary";case"success":return"--el-color-success";case"warning":return"--el-color-warning";case"danger":return"--el-color-danger";case"info":return"--el-color-info";case"secondary":return"--el-text-color-secondary";default:return"--error"}}const Le=n=>{const e=n,r={...e.attrs};return e.color&&(r.color=e.color),e.size&&(r.size=e.size),e.colorType&&(r.color=`var(${Ae(e.colorType)})`),t.h(g.ElIcon,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function Ue(n){n.registerRenderer("icon",Le)}const Xn="",Qn="",Oe=["width","height"],We={class:"expand-child"},ze=100,He=100,Ke=t.defineComponent({__name:"ElementImageInput",props:{specRequest:{},_render:{}},setup(n){var k,E,U;const e=n,r=t.computed(()=>e.specRequest.displayWidth??ze),o=t.computed(()=>e.specRequest.displayHeight??He),l=t.computed(()=>({"vany-element-image-upload":!0,"is-focused":S.value,"is-deletable":e.specRequest.deletable&&c.value!==null,"is-error":i.value})),a=t.computed(()=>({width:r.value+"px",height:o.value+"px"})),c=t.ref(null),f=t.ref(),u=t.ref(),d=t.ref(),i=t.ref(!1),m=t.ref(!1),p=s.useVanyElementFocused(f),h=s.useVanyElementFocused(()=>{var C;return(C=d.value)==null?void 0:C.$el}),S=t.computed(()=>p.value||h.value);async function b(C){var T,O,W;const B=C!==void 0?C:c.value;u.value&&B!==null&&await _.xw.drawOnCanvas(u.value,B),C!==void 0&&(c.value=C,(O=(T=e._render)==null?void 0:T.modelValue)==null||O.notifyUpdate(C),(W=e._render)==null||W.notifyEvent("change"))}async function y(C){await s.VanyUi.busyWhile(m,async()=>{const B=await e.specRequest.uploader({file:C.file});await b(B)})}async function w(){e.specRequest.disabled||await b(null)}return(E=(k=e._render)==null?void 0:k.modelValue)==null||E.onWatch(C=>{c.value=C,b()}),(U=e._render)==null||U.onValidated(C=>{i.value=C===!1}),(C,B)=>{const T=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(l.value),style:t.normalizeStyle(a.value)},[t.withDirectives(t.createElementVNode("div",{ref_key:"refPreview",ref:f,class:"preview-container",tabindex:"0"},[t.createElementVNode("canvas",{ref_key:"refCanvas",ref:u,class:"preview-canvas",width:r.value,height:o.value,style:t.normalizeStyle(a.value)},null,12,Oe),t.withDirectives(t.createElementVNode("div",{class:"delete-action",tabindex:"-1",onClick:w},[t.createVNode(t.unref(g.ElIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(I.Delete))]),_:1})],512),[[t.vShow,e.specRequest.deletable&&!e.specRequest.disabled]])],512),[[t.vShow,c.value]]),t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:"upload-container",style:t.normalizeStyle(a.value)},[t.createVNode(t.unref(g.ElUpload),{ref_key:"refUpload",ref:d,class:"upload-control","show-file-list":!1,multiple:!1,disabled:e.specRequest.disabled,drag:"",accept:e.specRequest.accept,"http-request":y},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"expand",style:t.normalizeStyle(a.value)},[t.withDirectives(t.createElementVNode("div",We,[t.createVNode(t.unref(g.ElIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(I.Plus))]),_:1})],512),[[t.vShow,!e.specRequest.disabled]])],4)]),_:1},8,["disabled","accept"])],4)),[[t.vShow,!c.value],[T,m.value]])],6)}}}),Zn="",Pn="",N=(n,e)=>{const r=n.__vccOpts||n;for(const[o,l]of e)r[o]=l;return r},Ge=N(Ke,[["__scopeId","data-v-015a6950"]]),je=n=>{const e=n,r={...e.attrs,disabled:e.disabled,specRequest:e,_render:e._render};return t.h(Ge,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function Ye(n){n.registerRenderer("image-input",je)}const Je={class:"vany-element-images-upload vany-std-flex-hor"},Xe=t.defineComponent({__name:"ElementImagesInput",props:{specRequest:{},_render:{}},setup(n){var f,u,d;const e=n,r=t.ref([]),o=t.ref(null),l=t.ref(!1);(u=(f=e._render)==null?void 0:f.modelValue)==null||u.onWatch(i=>{const m=[];for(const p of i??[])m.push({value:p});r.value=m,o.value=null});function a(){var m,p,h;const i=[];for(const S of r.value)i.push(S.value);(p=(m=e._render)==null?void 0:m.modelValue)==null||p.notifyUpdate(i),(h=e._render)==null||h.notifyEvent("change")}t.watch(()=>o.value,(i,m)=>{m===null&&i!==null&&t.nextTick(async()=>{await t.nextTick(),r.value.push({value:i}),o.value=null,a()})});function c(i,m){i===null&&t.nextTick(()=>{r.value.splice(m,1),a()})}return(d=e._render)==null||d.onValidated(i=>{l.value=i===!1}),(i,m)=>{const p=t.resolveComponent("VanyImageInput");return t.openBlock(),t.createElementBlock("div",Je,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(h,S)=>(t.openBlock(),t.createBlock(p,{modelValue:h.value,"onUpdate:modelValue":b=>h.value=b,disabled:e.specRequest.disabled,deletable:!0,accept:e.specRequest.accept,uploader:e.specRequest.uploader,"display-width":e.specRequest.displayWidth,"display-height":e.specRequest.displayHeight,onChange:b=>c(b,S)},null,8,["modelValue","onUpdate:modelValue","disabled","accept","uploader","display-width","display-height","onChange"]))),256)),e.specRequest.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(p,{key:0,modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=h=>o.value=h),deletable:!1,accept:e.specRequest.accept,uploader:e.specRequest.uploader,"display-width":e.specRequest.displayWidth,"display-height":e.specRequest.displayHeight},null,8,["modelValue","accept","uploader","display-width","display-height"]))])}}}),vn="",Qe=N(Xe,[["__scopeId","data-v-7594f2a7"]]),Ze=n=>{const e=n,r={...e.attrs,disabled:e.disabled,specRequest:e,_render:e._render};return t.h(Qe,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function Pe(n){n.registerRenderer("images-input",Ze)}const ve=t.defineComponent({__name:"ElementInput",props:{disabled:{type:Boolean,default:!1},_render:{default:null}},setup(n){var f,u,d;const e=n,r=t.ref(""),o=t.ref();(u=(f=e._render)==null?void 0:f.modelValue)==null||u.onWatch(i=>{r.value=i??""}),(d=e._render)==null||d.onFocus(async()=>o.value?(await o.value.focus(),!0):!1);function l(i){var m,p,h;(p=(m=e._render)==null?void 0:m.modelValue)==null||p.notifyUpdate(i),(h=e._render)==null||h.notifyEvent("input",arguments,i)}function a(){var i;(i=e._render)==null||i.notifyEvent("blur",arguments)}function c(){var i;(i=e._render)==null||i.notifyEvent("change",arguments)}return(i,m)=>(t.openBlock(),t.createBlock(t.unref(g.ElInput),{ref_key:"refInput",ref:o,modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=p=>r.value=p),disabled:e.disabled,onInput:l,onBlur:a,onChange:c},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},8,["modelValue","disabled"]))}}),et=n=>{const e=n,r={...e.attrs,name:e.name!==null?e.name:void 0,disabled:e.disabled,_render:e._render};return delete _._cast(r).type,e.password&&(_._cast(r).type="password"),Ne(r),t.h(ve,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function tt(n){n.registerRenderer("input",et)}const nt=t.defineComponent({__name:"ElementInputFrame",props:{disabled:{type:Boolean},_render:{}},setup(n){const e=n,r=R.useNamespace("input"),o=t.ref(!1),l=t.computed(()=>[r.b(),r.is("disabled",e.disabled)]),a=t.computed(()=>[r.e("wrapper"),r.is("focus",o.value)]);e._render.onFocus(c),e._render.onBlur(f);function c(){o.value=!0}function f(){o.value=!1}return(u,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(l.value)},[t.createElementVNode("div",{class:t.normalizeClass(a.value),tabindex:"-1",onFocus:c,onBlur:f},[t.renderSlot(u.$slots,"default")],34)],2))}}),rt=n=>{const e=n,r={...e.attrs,disabled:e.disabled,_render:e._render};return t.h(nt,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function ot(n){n.registerRenderer("input-frame",rt)}const st=t.defineComponent({__name:"ElementInputGroup",setup(n){const e=new s.VanyRenderAttributes({...s.VanyRenderer.acceptAttrs(t.useAttrs())}),r=t.useSlots(),o=()=>{e.mergeAttrsClass(["el-input","el-input-group","el-vany-input-group"]);const l=s.VanyVue.patchVNodes(s.VanyRenderer.acceptSlot(r.default)(),a=>{if(s.VanyVue.isTextVNode(a))return t.h("span",{class:"el-vany-input-group__item"},[a]);if(typeof a.type=="string"&&a.type!="input")return t.cloneVNode(a,{class:"el-vany-input-group__item"});const c=s.VanyVue.getComponentVNodeType(a);if(c===null)return a;switch(c){case"VanyButton":case"VanyInput":case"VanySelect":return a;default:return t.h("div",{class:"el-vany-input-group__item"},[t.cloneVNode(a)])}});return t.h("div",e.values,l)};return(l,a)=>(t.openBlock(),t.createBlock(o))}}),lt=n=>{const e=n,r={...e.attrs};return t.h(st,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function at(n){n.registerRenderer("input-group",lt)}const er="",tr="",ct={class:"el-loading-spinner"},it=t.defineComponent({__name:"ElementLoading",setup(n){return(e,r)=>(t.openBlock(),t.createElementBlock("div",ct,r[0]||(r[0]=[t.createElementVNode("svg",{class:"circular",viewBox:"0 0 50 50"},[t.createElementVNode("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})],-1)])))}}),dt={key:0},ut={key:1},ft=t.defineComponent({__name:"ElementList",props:{listMore:{type:[Function,null],default:null}},setup(n){const e=t.ref(),r=t.ref(),o=n,l=t.ref(!1),a=t.ref(!1);return t.nextTick(()=>{o.listMore&&e.value.addEventListener("scroll",()=>{const c=e.value.clientHeight,f=r.value.clientHeight,u=e.value.scrollTop;if(!a.value&&u+c+1>=f){if(l.value)return;s.VanyUi.busyWhile(l,async()=>{e.value.scrollTop=r.value.clientHeight-e.value.clientHeight-1,await o.listMore()<=0&&(a.value=!0)})}})}),(c,f)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"refOuter",ref:e,class:"vany-el-list-outer"},[t.createElementVNode("div",{ref_key:"refInner",ref:r,class:"vany-el-list-inner vany-std-flex-ver"},[t.renderSlot(c.$slots,"default",{},void 0,!0),l.value?(t.openBlock(),t.createElementBlock("div",dt,[t.renderSlot(c.$slots,"list-more-loading",{},()=>[t.createVNode(it,{class:"vany-el-loading-reset"})],!0)])):t.createCommentVNode("",!0),a.value?(t.openBlock(),t.createElementBlock("div",ut,[t.renderSlot(c.$slots,"list-more-end",{},()=>[t.createVNode(t.unref(g.ElDivider),null,{default:t.withCtx(()=>[t.createVNode(t.unref(g.ElIcon),{color:"var(--el-color-danger)"},{default:t.withCtx(()=>[t.createVNode(t.unref(I.Close))]),_:1})]),_:1})],!0)])):t.createCommentVNode("",!0)],512)],512))}}),nr="",pt=N(ft,[["__scopeId","data-v-487e52e0"]]),mt=n=>{const e=n,r={...e.attrs,listMore:e.listMore??null};return t.h(pt,r,{default:s.VanyRenderer.acceptSlot(e.slots.default),"list-more-loading":s.VanyRenderer.acceptSlot(e.slots["list-more-loading"]),"list-more-end":s.VanyRenderer.acceptSlot(e.slots["list-more-end"])})};function gt(n){n.registerRenderer("list",mt)}const rr="",ht=t.defineComponent({__name:"ElementMenu",props:{defaultActive:{default:""},_render:{default:void 0}},setup(n){var l;const e=n,r=t.ref("");(l=e._render)==null||l.onSelect(async a=>{r.value=a});function o(a,c,f,u){var d;_._used({indexPath:c,item:f,routerResult:u}),(d=e._render)==null||d.notifySelected(a)}return(a,c)=>(t.openBlock(),t.createBlock(t.unref(g.ElMenu),{"default-active":r.value,onSelect:o},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default")]),_:3},8,["default-active"]))}}),_t=n=>{const e=n,r={...e.attrs,mode:e.template,collapse:e.compact,_render:e._render};return t.h(ht,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function yt(n){n.registerRenderer("menu",_t)}const Vt=n=>{const r=n.containerType;if(r==="dropdown-menu"||r==="menu"){const o=R.useNamespace("dropdown-menu");return t.h("li",{class:[o.em("item","divided")],role:"separator"})}return null};function bt(n){n.registerRenderer("menu-divider",Vt)}const or="",sr="";function F(n){if(n.icon){const e=s.VanyVue.acceptComponent(n.icon);return()=>t.h(s.VanyIcon,{},{default:()=>t.h(_._cast(e))})}return s.VanyRenderer.acceptSlot(n.slots.icon)}function x(n){return n.label?()=>t.createTextVNode(_.xw.normalizeString(n.label)):s.VanyRenderer.acceptSlot(n.slots.label)}function St(n){const e=F(n)();return e===null?x(n):()=>[e,t.h("span",{},[x(n)()])]}function wt(n){const e=n.icon?s.VanyVue.acceptComponent(n.icon):void 0;return t.h(g.ElDropdownItem,{icon:_._cast(e),command:n.key??"",disabled:n.disabled},{default:x(n)})}const kt=n=>{const e=n;if(e.containerType==="dropdown-menu")return wt(e);const r=s.VanyRenderer.acceptSlot(e.slots.default)(),o={index:e.key??"-",disabled:e.disabled};return e.active&&(_._cast(o).class=(_._cast(o).class??[]).concat(["is-active"])),r!==null?(e.key===void 0&&console.warn("Sub menu without key will cause problem"),t.h(g.ElSubMenu,o,{title:St(e),default:s.VanyRenderer.acceptSlot(e.slots.default)})):t.h(g.ElMenuItem,o,{default:F(e),title:x(e)})};function Ct(n){n.registerRenderer("menu-item",kt)}const lr="",Rt=n=>{const e=n,r={...e.attrs,value:e.value,disabled:e.disabled},o=s.VanyRenderer.acceptSlot(e.slots.default),l=o();return l!==null&&(r.label=s.VanyVue.flattenVNodeAsText(l).trim()),t.h(g.ElOption,r,{default:o})};function Et(n){n.registerRenderer("option",Rt)}const Bt=t.defineComponent({__name:"ElementPopover",props:{trigger:{},placement:{},width:{},popupClass:{},_render:{}},setup(n){var a,c;const e=n,r=t.useSlots(),o=t.ref(!1);function l(f){switch(f){case"hover":return"hover";case"click":return"click";case"context":return"contextmenu";default:return"hover"}}return(c=(a=e._render)==null?void 0:a.modelValue)==null||c.onWatch(f=>{o.value=f}),t.watch(()=>o.value,f=>{var u,d;(d=(u=e._render)==null?void 0:u.modelValue)==null||d.notifyUpdate(f)}),(f,u)=>(t.openBlock(),t.createBlock(t.unref(g.ElPopover),{placement:e.placement,trigger:l(e.trigger),width:e.width,"popper-class":e.popupClass,visible:o.value,"onUpdate:visible":u[0]||(u[0]=d=>o.value=d)},t.createSlots({default:t.withCtx(()=>[t.renderSlot(f.$slots,"default")]),_:2},[t.unref(r).reference?{name:"reference",fn:t.withCtx(()=>[t.renderSlot(f.$slots,"reference")]),key:"0"}:void 0]),1032,["placement","trigger","width","popper-class","visible"]))}}),$t=n=>{const e=n,r={...e.attrs,trigger:e.trigger,placement:e.placement,width:e.width,popupClass:e.popupClass,_render:e._render};return t.h(Bt,r,e.slots)};function xt(n){n.registerRenderer("popup",$t)}function Tt(n){if(!n.slots.default)return;const e=s.VanyRenderer.acceptSlot(n.slots.default);return r=>e({value:r.percentage})}const It=n=>{const e=n,r={...e.attrs,type:"line",percentage:e.value,textInside:!0,strokeWidth:e.barWidth,striped:e.template==="stripe"||e.template==="animate-stripe",stripedFlow:e.template==="animate-stripe"};switch(delete r.indeterminate,e.type){case"primary":delete r.color,delete r.status;break;case"success":delete r.color,r.status="success";break;case"warning":delete r.color,r.status="warning";break;case"danger":delete r.color,r.status="exception";break;case"info":r.color="var(--el-color-info)",delete r.status;break;default:delete r.color,delete r.status;break}return t.h(g.ElProgress,r,{default:Tt(e)})};function Dt(n){n.registerRenderer("progress",It)}const ar="",Nt=n=>{const e=n,r={...e.attrs,value:e.value,disabled:e.disabled};return s.VanyInlineState.isInline()||(r.class=(r.class??[]).concat(["vany-util-width-full"])),t.h(g.ElRadio,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function qt(n){n.registerRenderer("radio",Nt)}const cr="",Mt=t.defineComponent({__name:"ElementRadioGroup",props:{_render:{default:null}},setup(n){var l,a;const e=n,r=t.ref("");(a=(l=e._render)==null?void 0:l.modelValue)==null||a.onWatch(c=>{r.value=c??""});function o(c){var f,u,d;(u=(f=e._render)==null?void 0:f.modelValue)==null||u.notifyUpdate(c??null),(d=e._render)==null||d.notifyEvent("change",arguments)}return(c,f)=>(t.openBlock(),t.createBlock(t.unref(g.ElRadioGroup),{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=u=>r.value=u),onChange:o},{default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:3},8,["modelValue"]))}}),Ft=n=>{const e=n,r={...e.attrs,name:e.name?e.name:void 0,inline:e.inline,disabled:e.disabled,_render:e._render};return t.h(Mt,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function At(n){n.registerRenderer("radio-group",Ft)}const ir="",dr="",ur="",Lt=t.defineComponent({__name:"ElementSelect",props:{multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},_render:{default:null},_renderManaged:{default:null}},setup(n){var h,S,b;const e=n,r=t.computed(()=>e._renderManaged!==null),o=t.ref(!1),l=t.ref(""),a=t.ref([]),c=t.ref();function f(y){var w;for(const k of((w=c.value)==null?void 0:w.optionsArray)??[])if(k.value==y)return!0;return!1}(S=(h=e._render)==null?void 0:h.modelValue)==null||S.onWatch(y=>{l.value=y??"",t.nextTick(()=>{var w;f(l.value)||(w=e._render)==null||w.notifyBadModelValue(l.value)})}),(b=e._render)==null||b.onFocus(async()=>c.value?(await c.value.focus(),!0):!1);function u(){var y;(y=e._render)==null||y.notifyEvent("input",arguments)}function d(){var y;(y=e._render)==null||y.notifyEvent("blur",arguments)}function i(y){var w,k,E;(k=(w=e._render)==null?void 0:w.modelValue)==null||k.notifyUpdate(y),(E=e._render)==null||E.notifyEvent("change")}function m(y){for(const w of a.value)if(w.value===y)return!0;return!1}e._renderManaged&&(e._renderManaged.onRefreshOptions(async y=>{await s.VanyUi.busyWhile(o,async()=>{a.value=await _.xw.asAsyncTarget(y())})}),e._renderManaged.onEnsureSelect(()=>{var w;if(m(l.value))return;const y=((w=a.value[0])==null?void 0:w.value)??"";m(y)&&i(y)}));function p(y){return typeof y=="function"?s.VanyVue.flattenVNodeAsText(y()):y}return(y,w)=>(t.openBlock(),t.createBlock(t.unref(g.ElSelect),{ref_key:"refInput",ref:c,modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=k=>l.value=k),loading:o.value,disabled:e.disabled,onInput:u,onBlur:d,onChange:i},{default:t.withCtx(()=>[r.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.value,k=>(t.openBlock(),t.createBlock(t.unref(g.ElOption),{key:k.value,value:k.value,label:p(k.label),disabled:k.disabled??!1},{default:t.withCtx(()=>[t.createVNode(t.unref(s.VanyRenderFunctionComponent),{fn:t.unref(s.VanyVue).acceptFunctionOrTextAsFunction(k.label)},null,8,["fn"])]),_:2},1032,["value","label","disabled"]))),128)):t.renderSlot(y.$slots,"default",{key:1})]),_:3},8,["modelValue","loading","disabled"]))}}),Ut=n=>{const e=n,r={...e.attrs,name:e.name!==null?e.name:void 0,placeholder:_.xw.normalizeString(e.placeholder??null),disabled:e.disabled,_render:e._render,_renderManaged:e._renderManaged};return t.h(Lt,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function Ot(n){n.registerRenderer("select",Ut)}const fr="",Wt=t.defineComponent({__name:"ElementSwitch",props:{disabled:{type:Boolean,default:!1},_render:{default:null}},setup(n){var f,u;const e=n,r=t.useSlots(),o=t.ref(!1);(u=(f=e._render)==null?void 0:f.modelValue)==null||u.onWatch(d=>{o.value=d===!0});function l(d){if(d===!0)return!0;if(d===!1)return!1}function a(d){var m,p,h;const i=l(d);i!==void 0&&((p=(m=e._render)==null?void 0:m.modelValue)==null||p.notifyUpdate(i),(h=e._render)==null||h.notifyEvent("change",arguments,d))}const c=t.computed(()=>r.default?s.VanyVue.flattenVNodeAsText(r.default()):"");return(d,i)=>(t.openBlock(),t.createBlock(t.unref(g.ElSwitch),{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=m=>o.value=m),disabled:e.disabled,"active-text":c.value,onChange:a},null,8,["modelValue","disabled","active-text"]))}}),zt=n=>{const e=n,r={...e.attrs,disabled:e.disabled,_render:e._render};return s.VanyInlineState.isInline()||(_._cast(r).class=(_._cast(r).class??[]).concat(["vany-util-width-full"])),t.h(Wt,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function Ht(n){n.registerRenderer("switch",zt)}const pr="",Kt=n=>{const e=n,r={...e.attrs,data:e.data,border:e.bordered,rowKey:e.rowKey};return t.h(g.ElTable,r,{default:s.VanyRenderer.acceptSlot(e.slots.default),empty:s.VanyRenderer.acceptSlot(e.slots.empty)})};function Gt(n){n.registerRenderer("table",Kt)}const mr="",jt=n=>{const e=n,r={...e.attrs,columnKey:e.columnKey},o={};o.header=s.VanyVue.acceptSlotOrTextAsSlot(e.slots.label,e.label);const l=s.VanyNamePrefixState.name,a=s.VanyTableRowKeyState.fn;return e.slots.default&&(o.default=c=>{const f={rowIndex:c.$index,columnIndex:c.cellIndex,row:c.row,column:{columnKey:e.columnKey},prefixed:u=>{const d=a?a(c.row):c.$index;return`${l}[${d}].${u}`}};return e.slots.default(f)}),t.h(g.ElTableColumn,r,o)};function Yt(n){n.registerRenderer("table-column",jt)}const gr="",Jt=n=>{const e=n,r={...e.attrs,name:e.value,disabled:e.disabled},o=s.VanyVue.acceptSlotOrTextAsFunction(e.slots.label,e.label);return t.h(g.ElTabPane,r,{default:s.VanyRenderer.acceptSlot(e.slots.default),label:o})};function Xt(n){n.registerRenderer("tab-pane",Jt)}const hr="",Qt=n=>{const e=n,r={...e.attrs,tabPosition:"top",type:"border-card"};return t.h(g.ElTabs,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function Zt(n){n.registerRenderer("tabs",Qt)}function Pt(n){switch(n){case"primary":return"primary";case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":return"info";default:return"primary"}}const vt=n=>{const e=n;return t.h(g.ElTag,{type:Pt(e.type),closable:e.closable,effect:e.light?"light":"dark",onClick:()=>{e._render.notifyClick()},onClose:t.withModifiers(()=>{e._render.notifyClose()},["stop","prevent"])},{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function en(n){n.registerRenderer("tag",vt)}const _r="",tn=t.defineComponent({__name:"ElementTimePicker",props:{disabled:{type:Boolean,default:!1},_render:{default:null}},setup(n){var c,f,u;const e=n,r=t.ref(""),o=t.ref();(f=(c=e._render)==null?void 0:c.modelValue)==null||f.onWatch(d=>{r.value=d??""}),(u=e._render)==null||u.onFocus(async()=>o.value?(await o.value.focus(),!0):!1);function l(){var d;(d=e._render)==null||d.notifyEvent("blur",arguments)}function a(d){var i,m,p;(m=(i=e._render)==null?void 0:i.modelValue)==null||m.notifyUpdate(d),(p=e._render)==null||p.notifyEvent("change",arguments)}return(d,i)=>(t.openBlock(),t.createBlock(t.unref(g.ElTimePicker),{ref_key:"refInput",ref:o,modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=m=>r.value=m),"value-format":"hh:mm:ss",disabled:e.disabled,onBlur:l,onChange:a},{default:t.withCtx(()=>[t.renderSlot(d.$slots,"default")]),_:3},8,["modelValue","disabled"]))}}),nn=n=>{const e=n,r={...e.attrs,name:e.name!==null?e.name:void 0,disabled:e.disabled,_render:e._render};return t.h(tn,r,{default:s.VanyRenderer.acceptSlot(e.slots.default)})};function rn(n){n.registerRenderer("time-input",nn)}function on(n){Y(n),v(n),te(n),re(n),le(n),ie(n),fe(n),me(n),_e(n),be(n),we(n),Re(n),$e(n),Te(n),Fe(n),Ue(n),Ye(n),Pe(n),tt(n),ot(n),at(n),gt(n),yt(n),bt(n),Ct(n),Et(n),xt(n),Dt(n),qt(n),At(n),Ot(n),Ht(n),Gt(n),Yt(n),Xt(n),Zt(n),en(n),rn(n)}function sn(){return g.ElLoadingDirective}function ln(n){n.registerDirective("loading",sn)}function an(n){ln(n)}const cn=n=>{const e=n,r=document.querySelector("html");return r===null?!1:(e.isDark?r.classList.add("dark"):r.classList.remove("dark"),!0)};function dn(n){n.registerReactive("dark-mode",cn)}function un(n){dn(n)}const yr="",Vr="",br="";function fn(n){return n===void 0?"":typeof n=="function"?s.VanyVue.flattenVNodeAsText(n()):n}function A(n){return typeof n=="function"?s.VanyVue.acceptFunctionAsSingleVNode(n,"div"):n}function L(n){if(n===void 0)return"";switch(n){case"success":return"success";case"warning":return"warning";case"danger":return"error";case"info":return"info";default:return""}}const pn=n=>{const e=n,r=e.options;switch(e.options.template??"normal"){case"normal":{const l=g.ElNotification({title:fn(r.title),message:A(r.content),position:r.dock??s.VanyNotifyOptionsDefault.dock,type:L(r.type),duration:r.duration??s.VanyNotifyOptionsDefault.duration,showClose:r.closable??s.VanyNotifyOptionsDefault.closable,onClick:r.onClick??(()=>{}),onClose:r.onClose??(()=>{})});return{close(){l.close()}}}case"compact":{const l=L(r.type),a=g.ElMessage({message:A(r.content),type:l!==""?l:"info",duration:r.duration??3e3,showClose:r.closable??!0,onClose:r.onClose??(()=>{})});return{close(){a.close()}}}default:throw new Error("Unsupported template")}};function mn(n){n.registerService("notify",pn)}function gn(n){mn(n)}const hn={install(n,e){_._used(n);const r=new s.VanyCommonActuatorHandle("vany-act-element");on(r),an(r),un(r),gn(r);for(const o of e)switch(o.name){case"declare-locale":{const l=o;D().declare(l.locale,l.def)}break;case"use-locale":{const l=o;D().overrideCurrent(l.locale)}break}return r}};function _n(n,e){return{name:"declare-locale",locale:n,def:e}}function yn(n){return{name:"use-locale",locale:n}}V.VanyActElement=hn,V.createVanyActElementDeclareLocaleOptions=_n,V.createVanyActElementUseLocaleOptions=yn,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});