UNPKG

vue-devui

Version:

DevUI components based on Vite and Vue3

22 lines 905 kB
(function(X,a){typeof exports=="object"&&typeof module!="undefined"?a(exports,require("vue"),require("vue-router"),require("clipboard"),require("@floating-ui/dom"),require("@vueuse/core"),require("diff2html"),require("diff2html/lib/ui/js/diff2html-ui"),require("echarts"),require("highlight.js"),require("markdown-it"),require("xss"),require("mermaid/dist/mermaid.js"),require("markdown-it/lib/token")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","clipboard","@floating-ui/dom","@vueuse/core","diff2html","diff2html/lib/ui/js/diff2html-ui","echarts","highlight.js","markdown-it","xss","mermaid/dist/mermaid.js","markdown-it/lib/token"],a):(X=typeof globalThis!="undefined"?globalThis:X||self,a(X.VueDevui={},X.Vue,X.vueRouter,X.Clipboard,X.dom,X.core,X.Diff2Html,X.diff2htmlUi,X.echarts,X.hljs,X.MarkdownIt,X.xss,X.Mermaid,X.Token))})(this,function(X,a,La,z2,Va,Yt,H2,Uh,j2,W2,K2,_s,U2,Y2){"use strict";var qj=Object.defineProperty;var Zj=(X,a,La)=>a in X?qj(X,a,{enumerable:!0,configurable:!0,writable:!0,value:La}):X[a]=La;var Kh=(X,a,La)=>(Zj(X,typeof a!="symbol"?a+"":a,La),La);function tr(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function Yh(e){if(e&&e.__esModule)return e;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var G2=tr(z2),q2=Yh(H2),Gh=Yh(j2),qh=tr(W2),Z2=tr(K2),Zh=tr(U2),Ea=tr(Y2);const Qa={data:{type:Array,default:null},titleKey:{type:String,default:"title"},loadingKey:{type:String,default:"loading"},childrenKey:{type:String,default:"children"},disabledKey:{type:String,default:"disabled"},activeKey:{type:String,default:"active"},openKey:{type:String,default:"open"},menuItemTemplate:{type:Boolean,default:!0},itemTemplate:{type:Boolean,default:!0},menuToggle:{type:Function,default:null},itemClick:{type:Function,default:null},activeItemChange:{type:Function,default:null},restrictOneOpen:{type:Boolean,default:!1},autoOpenActiveMenu:{type:Boolean,default:!1},showNoContent:{type:Boolean,default:!0},noContentTemplate:{type:Boolean,default:!0},loadingTemplate:{type:Boolean,default:!0},innerListTemplate:{type:Boolean,default:!0},linkType:{type:String,default:""},linkTypeKey:{type:String,default:"linkType"},linkKey:{type:String,default:"link"},linkTargetKey:{type:String,default:"target"},linkDefaultTarget:{type:String,default:"_self"},accordionType:{type:String,default:"normal"}},Xh=()=>{const e={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};return a.createVNode("svg",e,[a.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createVNode("path",{d:`M12.1464466,6.85355339 L8.35355339,10.6464466 C8.15829124,10.8417088 7.84170876,10.8417088 7.64644661,10.6464466 L3.85355339,6.85355339 C3.65829124,6.65829124 3.65829124,6.34170876 3.85355339,6.14644661 C3.94732158,6.05267842 4.07449854,6 4.20710678,6 L11.7928932,6 C12.0690356,6 12.2928932,6.22385763 12.2928932,6.5 C12.2928932,6.63260824 12.2402148,6.7597852 12.1464466,6.85355339 Z`,"fill-rule":"nonzero"},null)])])},nr=()=>{const e="DAccordion",t=o=>{if(o&&o.type.name===e)return o;if(o&&o.parent){const r=o.parent;return t(r)}},n=t(a.getCurrentInstance());return n==null?void 0:n.slots};function pl(e,t,n){let o=e;return t&&(o+=`__${t}`),n&&(o+=`--${n}`),o}function J(e,t=!1){const n=t?`.devui-${e}`:`devui-${e}`;return{b:()=>pl(n),e:c=>c?pl(n,c):"",m:c=>c?pl(n,"",c):"",em:(c,u)=>c&&u?pl(n,c,u):""}}var X2=a.defineComponent({name:"DAccordionMenu",components:{OpenIcon:Xh},props:{item:{type:Object,required:!0},deepth:{type:Number,default:0},parent:{type:Object,default:null},...Qa},setup(e){const{item:t,deepth:n,parent:o,openKey:r,activeKey:l,autoOpenActiveMenu:s,disabledKey:c,childrenKey:u,titleKey:f,menuItemTemplate:h}=a.toRefs(e),p=J("accordion"),g=nr(),m=a.inject("accordionContext"),b=o.value,v=n.value,w=E=>{m==null||m.menuToggleFn(E)},C=E=>{let A=!1;if(!E.length)return!1;for(let P=0;P<E.length;P++){if(E[P][l.value]===!0){A=!0;break}if(E[P][u.value]&&(A=C(E[P][u.value]),A))break}return A},N=E=>{if(E[l.value]===!0)return!0;if(E[u.value])return C(E[u.value])},S=a.computed(()=>t.value&&t.value[r.value]),D=a.computed(()=>t.value&&t.value[c.value]),L=a.computed(()=>t.value&&t.value[f.value]),T=a.computed(()=>t.value&&t.value[u.value]),x=a.computed(()=>N(t.value)),k=a.computed(()=>S.value===void 0&&s.value?x.value:S.value);return()=>{var E;return a.createVNode(a.Fragment,null,[a.createVNode("div",{class:[p.e("item-title"),p.m("overflow-ellipsis"),k.value&&p.m("open"),x.value&&p.m("active"),D.value&&p.m("disabled")],title:L.value,style:{textIndent:v*20+"px"},onClick:A=>!D.value&&w({item:t.value,open:!k.value,parent:b,event:A})},[a.createVNode("div",{class:[p.e("splitter"),v===0&&p.e("parent-list")],style:{left:v*20+10+"px"}},null),(!(g!=null&&g.menuItemTemplate)||h.value===!1)&&a.createVNode(a.Fragment,null,[L.value]),(g==null?void 0:g.menuItemTemplate)&&h.value!==!1&&((E=g.menuItemTemplate)==null?void 0:E.call(g,{parent:b,deepth:v,item:t.value})),a.createVNode("span",{class:p.e("open-icon")},[a.createVNode(Xh,null,null)])]),a.createVNode("div",{class:[!k.value&&p.m("menu-hidden"),p.e("submenu"),p.m("show-animate")]},[a.createVNode(ep,a.mergeProps(e,{deepth:v+1,data:T.value||[],parent:t.value}),null)])])}}}),Fs=a.defineComponent({name:"DAccordionItem",props:{item:{type:Object,required:!0},deepth:{type:Number,default:0},parent:{type:Object,default:null},...Qa},setup(e){const{item:t,deepth:n,parent:o,titleKey:r,activeKey:l,disabledKey:s,itemTemplate:c}=a.toRefs(e),u=J("accordion"),f=nr(),h=a.inject("accordionContext"),p=o.value,g=n.value,m=a.computed(()=>t.value&&t.value[s.value]),b=a.computed(()=>t.value&&t.value[r.value]),v=a.computed(()=>t.value&&t.value[l.value]),w=a.computed(()=>v.value),C=N=>{t.value&&!m.value&&(h==null||h.itemClickFn(N))};return()=>{var N;return a.createVNode(a.Fragment,null,[a.createVNode("div",{class:[u.e("item-title"),u.m("overflow-ellipsis"),w.value&&u.m("active"),m.value&&u.m("disabled")],title:b.value,style:{textIndent:g*20+"px"},onClick:S=>C({item:t.value,parent:p,event:S})},[a.createVNode("div",{class:[u.e("splitter"),g===0&&u.e("parent-list")],style:{left:g*20+10+"px"}},null),(!(f!=null&&f.itemTemplate)||c.value===!1)&&a.createVNode(a.Fragment,null,[b.value]),(f==null?void 0:f.itemTemplate)&&c.value!==!1&&((N=f.itemTemplate)==null?void 0:N.call(f,{parent:p,deepth:g,item:t.value}))])])}}}),J2=a.defineComponent({name:"DAccordionItemHreflink",component:{DAccordionItem:Fs},props:{item:{type:Object,required:!0},deepth:{type:Number,default:0},parent:{type:Object,default:null},...Qa},setup(e){const{item:t,deepth:n,parent:o,titleKey:r,linkKey:l,linkTargetKey:s,linkDefaultTarget:c,disabledKey:u,itemTemplate:f}=a.toRefs(e),h=J("accordion"),p=nr(),g=a.inject("accordionContext"),m=a.computed(()=>t.value&&t.value[r.value]),b=a.computed(()=>t.value&&t.value[l.value]),v=a.computed(()=>t.value&&(t.value[s.value]||c.value)),w=a.computed(()=>t.value&&t.value[u.value]),C=o.value,N=n.value,S=L=>{t.value&&!w.value&&(g==null||g.itemClickFn(L))},D=()=>{var L;return a.createVNode(a.Fragment,null,[a.createVNode("div",{class:[h.e("splitter"),N===0&&h.e("parent-list")],style:{left:N*20+10+"px"}},null),(!(p!=null&&p.itemTemplate)||f.value===!1)&&a.createVNode(a.Fragment,null,[m.value]),(p==null?void 0:p.itemTemplate)&&f.value!==!1&&((L=p.itemTemplate)==null?void 0:L.call(p,{parent:C,deepth:N,item:t.value}))])};return()=>a.createVNode(a.Fragment,null,[a.createVNode("div",{class:[h.e("item-title"),w.value&&h.m("disabled")],style:{textIndent:N*20+"px"}},[!w.value&&a.createVNode("a",{href:b.value,target:v.value,class:h.m("overflow-ellipsis"),title:m.value,onClick:L=>S({item:t.value,parent:C,event:L})},[D()]),w.value&&a.createVNode("a",{class:h.m("overflow-ellipsis"),title:m.value},[D()])])])}});function Q2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}var eb=a.defineComponent({name:"DAccordionItemRouterlink",component:{DAccordionItem:Fs},props:{item:{type:Object,required:!0},deepth:{type:Number,default:0},parent:{type:Object,default:null},...Qa},setup(e){const{item:t,deepth:n,parent:o,titleKey:r,linkKey:l,linkDefaultTarget:s,disabledKey:c,itemTemplate:u}=a.toRefs(e),f=J("accordion"),h=La.useRoute(),p=nr(),g=a.inject("accordionContext"),m=a.computed(()=>t.value&&t.value[r.value]),b=a.computed(()=>t.value&&t.value[l.value]),v=a.computed(()=>h!==void 0),w=a.computed(()=>h===b.value),C=a.computed(()=>t.value&&t.value[c.value]),N=o.value,S=n.value,D=T=>{t.value&&!C.value&&(g==null||g.itemClickFn(T))},L=()=>{var T;return a.createVNode(a.Fragment,null,[a.createVNode("div",{class:[f.e("splitter"),S===0&&f.e("parent-list")],style:{left:S*20+10+"px"}},null),(!(p!=null&&p.itemTemplate)||u.value===!1)&&a.createVNode(a.Fragment,null,[m.value]),(p==null?void 0:p.itemTemplate)&&u.value!==!1&&((T=p.itemTemplate)==null?void 0:T.call(p,{parent:N,deepth:S,item:t.value}))])};return()=>{let T;return a.createVNode(a.Fragment,null,[a.createVNode("div",{class:[f.e("item-title"),C.value&&f.m("disabled")],style:{textIndent:S*20+"px"}},[!C.value&&a.createVNode(a.Fragment,null,[v.value&&a.createVNode(a.resolveComponent("router-link"),{to:b.value,class:[f.m("overflow-ellipsis"),w.value&&f.m("router-active")],custom:!0,title:m.value,onClick:x=>D({item:t.value,parent:N,event:x})},Q2(T=L())?T:{default:()=>[T]}),!v.value&&a.createVNode("a",{href:b.value,target:s.value,class:f.m("overflow-ellipsis"),title:m.value,onClick:x=>D({item:t.value,parent:N,event:x})},[L()])]),C.value&&a.createVNode("a",{class:f.m("overflow-ellipsis"),title:m.value},[L()])])])}}}),tb={pagination:{totalItemText:"\u6240\u6709\u6761\u76EE",goToText:"\u8DF3\u81F3",perPage:"\u6761/\u9875"},accordion:{loading:"\u52A0\u8F7D\u4E2D",noData:"\u6CA1\u6709\u6570\u636E"},autoCompleteDropdown:{latestInput:"\u6700\u8FD1\u8F93\u5165"},cascaderList:{noData:"\u6CA1\u6709\u6570\u636E"},colorPicker:{foundationPanel:"\u57FA\u7840\u9762\u677F",advancedPanel:"\u9AD8\u7EA7\u9762\u677F"},datePickerPro:{ok:"\u786E\u5B9A",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",month1:"1\u6708",month2:"2\u6708",month3:"3\u6708",month4:"4\u6708",month5:"5\u6708",month6:"6\u6708",month7:"7\u6708",month8:"8\u6708",month9:"9\u6708",month10:"10\u6708",month11:"11\u6708",month12:"12\u6708",year:"\u5E74",startPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",getWeekDays(){return["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},getTimeArr(){return["\u65F6","\u5206","\u79D2"]},getYearMonthStr(e,t){return`${e}\u5E74${t}\u6708`}},editableSelect:{noRelatedRecords:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",noData:"\u6CA1\u6709\u6570\u636E"},input:{placeholder:"\u8BF7\u8F93\u5165"},splitterBar:{collapse:"\u6536\u8D77",expand:"\u5C55\u5F00"},stepsGuide:{previous:"\u4E0A\u4E00\u6B65",continue:"\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",ok:"\u6211\u77E5\u9053\u5566"},table:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},dataGrid:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},timePopup:{ok:"\u786E\u5B9A"},transfer:{unit:"\u9879",panelUnit:"\u9879",headerUnit:"\u9879",noData:"\u6682\u65E0\u6570\u636E",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"},tree:{loading:"\u52A0\u8F7D\u4E2D",newNode:"\u65B0\u8282\u70B9",selectPlaceholder:"\u8BF7\u9009\u62E9"},upload:{placeholder:"\u9009\u62E9\u6587\u4EF6",getExistSameNameFilesMsg(e){return`\u60A8\u4E0A\u4F20\u7684 "${e}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`},getAllFilesBeyondMaximalFileSizeMsg(e){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${e}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getBeyondMaximalFileSizeMsg(e,t){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${t}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${e}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getNotAllowedFileTypeMsg(e,t){return`\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${t}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${e}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`}},search:{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57"},select:{placeholder:"\u8BF7\u9009\u62E9",noDataText:"\u65E0\u6570\u636E",noMatchText:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",loadingText:"\u52A0\u8F7D\u4E2D..."},tagInput:{maxTagsText:"\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"},timeSelect:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4"}},nb={pagination:{totalItemText:"Total",goToText:"Go to"},accordion:{loading:"loading",noData:"No Data"},autoCompleteDropdown:{latestInput:"Latest input"},cascaderList:{noData:"No data"},colorPicker:{foundationPanel:"Foundation panel",advancedPanel:"Advanced panel"},datePickerPro:{ok:"OK",placeholder:"select date",month1:"Jan",month2:"Feb",month3:"Mar",month4:"Apr",month5:"May",month6:"June",month7:"July",month8:"Aug",month9:"Sep",month10:"Oct",month11:"Nov",month12:"Dec",year:"\u5E74",startPlaceholder:"select start date",endPlaceholder:"select end date",getWeekDays(){return["Sun","Mon","Tue","Wed","Thur","Fri","Sat"]},getTimeArr(){return["Hr","Min","Sec"]},getYearMonthStr(e,t){return`${e} - ${t}`}},editableSelect:{noRelatedRecords:"No related records found",noData:"No data"},input:{placeholder:"Please enter"},splitterBar:{collapse:"Collapse",expand:"Expand"},stepsGuide:{previous:"Previous",continue:"Continue",ok:"OK"},table:{selectAll:"Select all",ok:"OK"},dataGrid:{selectAll:"Select all",ok:"OK"},timePopup:{ok:"OK"},transfer:{unit:"",panelUnit:"",headerUnit:"",noData:"No Data",placeholder:"Please enter keywords"},tree:{loading:"Loading",newNode:"New node",selectPlaceholder:"Please select"},upload:{placeholder:"select file",getExistSameNameFilesMsg(e){return`Duplicate files exist : "${e}" `},getAllFilesBeyondMaximalFileSizeMsg(e){return`Maximum file size (MB): ${e}. The selected files exceed the maximum value`},getBeyondMaximalFileSizeMsg(e,t){return`Maximum file size (MB): ${t}. Files whose size exceeds the maximum value: ${e}`},getNotAllowedFileTypeMsg(e,t){return`Files with unsupported types: ${e}. Supported file types: ${t}`}},search:{placeholder:"Enter a keyword"},select:{placeholder:"Please select",noDataText:"No data",noMatchText:"No related records found",loadingText:"Loading..."},tagInput:{maxTagsText:"Maximum number reached: "},timeSelect:{placeholder:"Please select time"}};const Ps=a.ref("zh-CN"),ab=a.ref();let Os=a.reactive({["zh-CN"]:tb,["en-US"]:nb});const Jh={messages(e=Ps.value){return Os[e]},lang(){return Ps.value},use(e){const t=ab.value;Ps.value=e,t.config.globalProperties.langMessages=Jh.messages()},add(e){Os={...Os,...e}}},ob=e=>e.substring(1).replace(/^\S/,t=>t.toLocaleLowerCase());function Qh(e,t){const n=t.split(".");let o=e;return n.forEach(r=>{var l;o=(l=o[r])!=null?l:""}),o}function Ge(e,t,n){const o=n||ob(e)+".";return r=>{const l=(t==null?void 0:t.appContext.config.globalProperties.langMessages)||Jh.messages();return Qh(l,o+r)||Qh(l,r)}}var ep=a.defineComponent({name:"DAccordionList",components:{DAccordionMenu:X2,DAccordionItem:Fs,DAccordionItemHreflink:J2,DAccordionItemRouterlink:eb},inheritAttrs:!1,props:{...Qa,data:{type:Array,default:null},deepth:{type:Number,default:0},parent:{type:Object,default:null},innerListTemplate:Boolean},setup(e,{attrs:t}){const n=a.getCurrentInstance(),o=Ge("DAccordion",n),{childrenKey:r,deepth:l,parent:s,data:c,linkType:u,showNoContent:f,loadingKey:h,titleKey:p,linkTypeKey:g,loadingTemplate:m,noContentTemplate:b,innerListTemplate:v}=a.toRefs(e),w=J("accordion"),C=l.value,N=nr(),S=a.inject("accordionContext"),D=a.computed(()=>s.value&&s.value[h.value]),L=a.computed(()=>{const T=c.value;return T==null||T.length===0});return()=>{var T,x,k;return a.createVNode(a.Fragment,null,[(!(N!=null&&N.innerListTemplate)||l.value===0||v.value===!1)&&a.createVNode("ul",a.mergeProps({class:[w.e("list")]},t),[c.value.map(E=>a.createVNode("li",{class:w.e("item"),key:E[p.value]},[E[r.value]!==void 0&&a.createVNode("div",{class:w.e("menu-item")},[a.createVNode(a.resolveComponent("d-accordion-menu"),a.mergeProps(e,{item:E,deepth:C,parent:s.value}),null)]),E[r.value]===void 0&&a.createVNode(a.Fragment,null,[(!u.value||u.value==="")&&a.createVNode(a.resolveComponent("d-accordion-item"),a.mergeProps(e,{item:E,deepth:C,parent:s.value}),null),u.value==="routerLink"&&a.createVNode(a.resolveComponent("d-accordion-item-routerlink"),a.mergeProps(e,{item:E,deepth:C,parent:s.value}),null),u.value==="hrefLink"&&a.createVNode(a.resolveComponent("d-accordion-item-hreflink"),a.mergeProps(e,{item:E,deepth:C,parent:s.value}),null),u.value==="dependOnLinkTypeKey"&&a.createVNode(a.Fragment,null,[E[g.value]==="routerLink"&&a.createVNode(a.resolveComponent("d-accordion-item-routerlink"),a.mergeProps(e,{item:E,deepth:C,parent:s.value}),null),E[g.value]==="hrefLink"&&a.createVNode(a.resolveComponent("d-accordion-item-hreflink"),a.mergeProps(e,{item:E,deepth:C,parent:s.value}),null),E[g.value]!=="routerLink"&&E[g.value]!=="hrefLink"&&a.createVNode(a.resolveComponent("d-accordion-item"),a.mergeProps(e,{item:E,deepth:C,parent:s.value}),null)])])]))]),(N==null?void 0:N.innerListTemplate)&&v.value!==!1&&C!==0&&((T=N.innerListTemplate)==null?void 0:T.call(N,{item:s.value,deepth:C,itemClickFn:S==null?void 0:S.itemClickFn,menuToggleFn:S==null?void 0:S.menuToggleFn})),(!(N!=null&&N.innerListTemplate)||v.value===!1)&&(D.value||L.value&&f.value)&&a.createVNode("ul",a.mergeProps({class:[w.e("list")]},t),[D.value&&(!(N!=null&&N.loadingTemplate)||m.value===!1)&&a.createVNode("li",{class:w.e("item")},[a.createVNode("div",{class:[w.e("item-title"),w.m("overflow-ellipsis")],style:{textIndent:C*20+"px"}},[o("loading"),a.createTextVNode("...")])]),D.value&&(N==null?void 0:N.loadingTemplate)&&m.value!==!1&&((x=N.loadingTemplate)==null?void 0:x.call(N,{item:s.value,deepth:C})),f.value&&!D.value&&L.value&&(!(N!=null&&N.noContentTemplate)||b.value===!1)&&a.createVNode("li",{class:w.e("item")},[a.createVNode("div",{class:[w.e("item-title"),w.m("overflow-ellipsis"),w.m("disabled")],style:{textIndent:C*20+"px"}},[o("noData")])]),f.value&&!D.value&&L.value&&(N==null?void 0:N.noContentTemplate)&&b.value!==!1&&((k=N.noContentTemplate)==null?void 0:k.call(N,{item:s.value,deepth:C}))])])}}}),Xj="",Bs=a.defineComponent({name:"DAccordion",props:Qa,setup(e,{emit:t}){const{data:n,childrenKey:o,activeKey:r,openKey:l,accordionType:s,autoOpenActiveMenu:c,restrictOneOpen:u}=a.toRefs(e),f=J("accordion"),h=J("scrollbar");let p;const g=(D,L="children",T=!1,x=!0)=>D.reduce((k,E)=>{const A=E[L];return A===void 0?x&&k.push(E):(T&&k.push(E),Array.isArray(A)&&k.push(...g(A,L,T))),k},[]),m=D=>{p&&p[r.value]&&(p[r.value]=!1),D[r.value]=!0,p=D,t("activeItemChange",p)},b=()=>{const D=g(n.value,o.value).filter(L=>L[r.value]).pop();D?p||m(D):p=void 0},v=(D,L)=>{L&&u.value&&n.value.forEach(T=>{T[l.value]=!1}),D[l.value]=L},w=D=>{const L=p;m(D.item),t("itemClick",{...D,prevActiveItem:L})},C=D=>{const L=p;p=D.item,t("linkItemClick",{...D,prevActiveItem:L})},N=D=>{v(D.item,D.open),t("menuToggle",D)},S=()=>{g(n.value,o.value,!0,!1).forEach(D=>D[l.value]=void 0)};return a.provide("accordionContext",{itemClickFn:w,linkItemClickFn:C,menuToggleFn:N}),a.onMounted(()=>{n.value&&b()}),a.watch(()=>c.value,(D,L)=>{D&&L===!1&&S()}),a.watch(n.value,()=>{b()},{deep:!0}),()=>a.createVNode("div",{class:[f.e("menu"),f.m("show-animate"),h.b(),s.value==="normal"&&f.m("menu-normal")]},[a.createVNode(ep,a.mergeProps(e,{data:n.value,deepth:0,parent:void 0}),null)])}}),rb={title:"Accordion \u624B\u98CE\u7434",category:"\u5BFC\u822A",status:"10%",deprecated:{value:!0,reason:"Accordion \u662F Menu \u7EC4\u4EF6\u7684\u4E00\u79CD\u7279\u6027\u5F62\u6001(\u5782\u76F4\u65B9\u5411\u4E0A\u7684\u83DC\u5355)\uFF0C\u5E94\u8BE5\u4F7F\u7528\u66F4\u901A\u7528\u7684 Menu \u66FF\u4EE3\u3002"},install(e){e.component(Bs.name,Bs)}};const lb={data:{type:Array},layout:{type:String,default:"horizontal"},loadMoreConfig:{type:Object},showTailLine:{type:Boolean,default:!0},showStatusBgColor:{type:Boolean,default:!1},showStatusLineColor:{type:Boolean,default:!1}};var Jj="",Rs=a.defineComponent({name:"DActionTimeline",props:lb,emits:["actionLoadMore"],setup(e,t){const{layout:n,data:o,showTailLine:r,showStatusBgColor:l,showStatusLineColor:s,loadMoreConfig:c}=a.toRefs(e),u=a.computed(()=>n.value==="vertical"),f=a.computed(()=>({"dp-action-timeline":!0,"dp-action-timeline-status-bg":l.value,"dp-action-timeline-status-line":s.value})),h=(C,N,S,D)=>({"dp-action-timeline-item":!0,"dp-action-timeline-item-info":s.value&&D.status==="color-info","dp-action-timeline-item-danger":s.value&&D.status==="color-danger","dp-action-timeline-item-success":s.value&&D.status==="color-info","vertical-list-item":u.value,"list-last-item":S.actions&&(o==null?void 0:o.value)&&C===S.actions.length-1&&N===o.value.length-1&&r.value}),p=(C,N=!1)=>{var S,D;return N?{"dp-action-timeline-list-icon":!0,"item-empty-icon":!C.icon,[(S=C.status)!=null?S:""]:!0}:{icon:!0,[(D=C.icon)!=null?D:""]:!0}},g=(C,N)=>{var S;return(S=C.actions)==null?void 0:S.map((D,L)=>{var T,x,k,E,A,P;return a.createVNode("div",{class:h(L,N,C,D)},[a.createVNode("div",{class:"vertical-list-item-top"},[a.createVNode("div",{class:"vertical-list-item-top-left"},[((x=(T=t.slots).iconContent)==null?void 0:x.call(T,{option:D}))||a.createVNode("div",{class:p(D,!0)},[!D.icon&&a.createVNode("div",{class:"list-empty-icon-dot"},null),a.createVNode("em",{class:p(D)},null)]),a.createVNode("div",{class:"vertical-list-item-top-left-title"},[(E=(k=t.slots).title)==null?void 0:E.call(k,{option:D})])]),a.createVNode("div",{class:"dp-action-timeline-item-data"},[D.createdAt])]),a.createVNode("div",{class:"vertical-list-item-bottom"},[(P=(A=t.slots).content)==null?void 0:P.call(A,{option:D})])])})},m=(C,N)=>{var S;return(S=C.actions)==null?void 0:S.map((D,L)=>{var T,x,k,E,A;return a.createVNode("div",{class:h(L,N,C,D)},[((x=(T=t.slots).iconContent)==null?void 0:x.call(T,{option:D}))||a.createVNode("div",{class:p(D,!0)},[!D.icon&&a.createVNode("div",{class:"list-empty-icon-dot"},null),a.createVNode("em",{class:p(D)},null)]),a.createVNode("div",{class:"dp-action-timeline-list-data"},[(E=(k=t.slots).content)==null?void 0:E.call(k,{option:D})]),a.createVNode("div",{class:"dp-action-timeline-item-date"},[D.createdAt]),!(C.actions&&(o==null?void 0:o.value)&&L===C.actions.length-1&&N===((A=o==null?void 0:o.value)==null?void 0:A.length)-1)&&a.createVNode("div",{class:"border-bottom"},null)])})},b=()=>{t.emit("actionLoadMore")},v=()=>{window.scrollTo(0,0)},w=()=>{var C,N;return a.createVNode("div",{class:"dp-action-timeline-operation-container"},[((C=c==null?void 0:c.value)==null?void 0:C.loadMore)&&a.createVNode("div",{class:"dp-action-timeline-operation",onClick:b},[c.value.loadMoreText]),((N=c==null?void 0:c.value)==null?void 0:N.isToTop)&&a.createVNode("div",{class:"dp-action-timeline-operation",onClick:v},[c.value.toTopText])])};return()=>{var C,N;return a.createVNode(a.Fragment,null,[(C=o==null?void 0:o.value)==null?void 0:C.map((S,D)=>a.createVNode("div",{class:f.value},[a.createVNode("div",{class:"dp-action-timeline-title"},[a.createVNode("p",null,[S.time])]),a.createVNode("div",{class:"dp-action-timeline-body"},[u.value?g(S,D):m(S,D)]),a.createVNode("div",{class:"border-left"},null)])),Boolean((N=o==null?void 0:o.value)==null?void 0:N.length)&&w()])}}}),ib={title:"ActionTimeline \u64CD\u4F5C\u65F6\u95F4\u8F74",category:"\u6F14\u8FDB\u4E2D",status:"100%",install(e){e.component(Rs.name,Rs)}};const sb=()=>a.createVNode("svg",{width:"10px",height:"10px",viewBox:"0 0 10 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createVNode("g",{transform:"translate(-3.000000, -3.000000)","fill-rule":"nonzero"},[a.createVNode("path",{d:`M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302 13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909 13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548 11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003 L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183 L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057 C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z`},null)])])]);function $s(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function gl(e,t){e.classList?e.classList.add(t):$s(e,t)||(e.className=`${e.className} ${t}`)}function ar(e,t){if(e.classList)e.classList.remove(t);else if($s(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const Tn=typeof window!="undefined";function cb(e,t,n){let o,r;return function(...l){if(o&&clearTimeout(o),n){const s=!o;o=window.setTimeout(()=>{o=null},t),s&&(r=e.apply(this,l))}else o=window.setTimeout(()=>{e.apply(this,l)},t);return r}}function tp(e){const t=Object.prototype.toString.call(e);return t.includes("object")&&t.includes("HTML")&&t.includes("Element")}function ub(e){return e instanceof Element||tp(e)?e:e&&typeof e=="object"&&(e.$el instanceof Element||tp(e.$el))?e.$el:null}function zs(){if(document.documentElement.scrollHeight>document.documentElement.clientHeight){const e=document.documentElement.scrollTop,t=document.documentElement.getAttribute("style");return document.documentElement.style.position="fixed",document.documentElement.style.top=`-${e}px`,document.documentElement.style.width=document.documentElement.style.width||"100%",document.documentElement.style.overflowY="scroll",()=>{t?document.documentElement.setAttribute("style",t):document.documentElement.removeAttribute("style"),document.documentElement.scrollTop=e}}}function db(e,t,n="default"){var o,r;return(r=t[n])!=null?r:(o=e[n])==null?void 0:o.call(e)}function or(e=8){const t="abcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let o=0;o<e;o++)n+=t[parseInt((Math.random()*t.length).toString())];return n}function fb(e){return new Promise((t,n)=>{const o=document.createElement("button"),r=new G2.default(o,{text:()=>e,action:()=>"copy"});r.on("success",l=>{r.destroy(),t(l)}),r.on("error",l=>{r.destroy(),n(l)}),document.body.appendChild(o),o.click(),document.body.removeChild(o)})}function rr(e,t){const n={},o=Object.keys(t);return o.forEach(r=>{n[r]=e.style[r]}),o.forEach(r=>{e.style[r]=t[r]}),n}function hb(e,t=0,n=100){let o=0;return o=Math.min(e,n),o=Math.max(o,t),o}const ml=e=>typeof e=="number",np=e=>typeof e=="boolean",pb=e=>typeof e=="string",ap=e=>Object.prototype.toString.call(e)==="[object Function]",vl=e=>e===void 0,op=e=>Tn&&"HTMLElement"in window&&e instanceof HTMLElement;function Hs(e,t){const n=Object.assign({},e);for(let o=0;o<t.length;o+=1){const r=t[o];delete n[r]}return n}function yl(e,t,n){let o=e;return t&&(o+=`__${t}`),n&&(o+=`--${n}`),o}function Le(e,t=!1){const n=t?`.devui-${e}`:`devui-${e}`;return{b:()=>yl(n),e:c=>c?yl(n,c):"",m:c=>c?yl(n,"",c):"",em:(c,u)=>c&&u?yl(n,c,u):""}}function rp(e){return/^((http|https):)?\/\//.test(e)}function gb(e){return/^data:image\/.*;base64,/.test(e)}const js=Le("alert"),mb=e=>a.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:[js.e("icon"),e.type==="danger"?js.em("icon","error"):js.em("icon",e.type)]},[(()=>{switch(e.type){case"success":return a.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createVNode("path",{"fill-rule":"nonzero",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),a.createVNode("polygon",{"stroke-width":"0.3","fill-rule":"nonzero",points:"6.82767602 11.5282799 3 7.24668779 3.89864233 6.37912367 6.82767602 9.04910002 12.2964408 4 13 4.64144383"},null)]);case"warning":return a.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createVNode("path",{class:"warning-outer",d:`M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049,0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071,0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z`},null),a.createVNode("path",{class:"warning-inner","stroke-width":"0.3","fill-rule":"nonzero",d:`M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z`},null)]);case"info":return a.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createVNode("g",{"fill-rule":"nonzero"},[a.createVNode("path",{class:"info-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),a.createVNode("path",{class:"info-inner",d:"M9.19008504,7 L8.79402696,13 L7.15622605,13 L6.73158434,7 L9.19008504,7 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z","stroke-width":"0.2"},null)])]);case"danger":return a.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createVNode("g",{"fill-rule":"nonzero"},[a.createVNode("path",{class:"error-outer",d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z"},null),a.createVNode("path",{class:"error-inner",d:"M9,10.6 L9,12.6 L7,12.6 L7,10.6 L9,10.6 Z M9.1,3.1 L8.65924344,9.1 L7.28422786,9.1 L6.9,3.1 L9.1,3.1 Z","stroke-width":"0.2"},null)])]);default:return null}})()]),vb={type:{type:String,default:"info"},cssClass:{type:String,default:""},closeable:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},dismissTime:{type:Number,default:0},center:{type:Boolean,default:!1}};var Qj="",Ws=a.defineComponent({name:"DAlert",props:vb,emits:["close"],setup(e,t){const n=Le("alert"),o=a.ref(!1),r=a.ref(!1),l=a.ref();let s;const c=f=>{s&&clearTimeout(s),r.value=!0,t.emit("close",f)},u=()=>{s=void 0,o.value=!0,r.value=!1};return a.onMounted(()=>{e.dismissTime&&(s=window.setTimeout(()=>{c()},e.dismissTime))}),()=>o.value?null:a.createVNode(a.Transition,{name:n.b(),onAfterLeave:u},{default:()=>{var f,h;return[a.withDirectives(a.createVNode("div",{ref:l,class:[n.b(),n.m(e.type),e.cssClass,r.value&&n.m("close"),e.center&&n.m("center")]},[e.showIcon!==!1&&e.type!=="simple"?a.createVNode("span",{class:n.e("icon-wrap")},[a.createVNode(mb,{type:e.type},null)]):null,a.createVNode("div",{class:n.e("content")},[(h=(f=t.slots).default)==null?void 0:h.call(f),a.createTextVNode(" ")]),e.closeable?a.createVNode("div",{class:n.e("close-icon"),onClick:c},[a.createVNode(sb,null,null)]):null]),[[a.vShow,!r.value]])]}})}}),yb={title:"Alert \u8B66\u544A",category:"\u53CD\u9988",status:"100%",install(e){e.component(Ws.name,Ws)}},Ks=a.defineComponent({name:"DAnchor",props:{},setup(){return()=>a.createVNode("div",null,[a.createTextVNode(" ")])}});let Us=0,lp;const bl=10;let Cl,wl=!1,eo=null,lr=null,Sl="";function bb(e){let t=0,n=0;return t=e.offsetLeft,n=e.offsetTop,{x:t,y:n}}function Cb(e){return[].slice.call(document.querySelectorAll(`.${e} > .step-nav > li.bar-link-item > a`))}function wb(e){return[].slice.call(document.querySelectorAll(".box-anchor")).filter(t=>e.some(n=>n.hash===t.hash))}function Sb(e,t){let n,o=!1;return()=>{n&&clearTimeout(n),o?n=setTimeout(e,t):(e(),o=!0,setTimeout(()=>{o=!1},t))}}function ip(e){e&&e.classList.remove("active")}function Nl(e){var n;const t=document.getElementsByClassName("mysidebar")[0].children.length;for(let o=0;o<t;o++)document.getElementsByClassName("mysidebar")[0].children[o].classList.value.indexOf("active")>-1&&document.getElementsByClassName("mysidebar")[0].children[o].classList.remove("active");e&&((n=document.getElementById(e))==null||n.classList.add("active"))}function Nb(e){if(ip(eo),ip(lr),e?eo=document.querySelector(`${e}`):eo=document.querySelector(`.${Sl} ul li`),!eo)return;wl?Nl(Cl):e&&Nl(e.split("#")[1]);const t=eo.closest(".mycontainer > ul > li");t&&t!==eo.parentElement?(lr=t,lr&&lr.classList.add("active")):lr=null}function Db(){return document.querySelector(".mysidebar ").getBoundingClientRect().y}function sp(e){var n;const t=Db();return((n=e.parentElement)==null?void 0:n.offsetTop)-t-5}function Tb(e,t,n){let o;return document.getElementsByClassName("scrollTarget").length?o=document.getElementsByClassName("scrollTarget")[0].scrollTop:o=document.documentElement.scrollTop||document.body.scrollTop,e===0&&o===0?[!0,null]:o<sp(t)?[!1,null]:!n||o<sp(n)?[!0,decodeURIComponent(t.hash)]:[!1,null]}function cp(e,t,n){if(Us<=t)e>0?n.scrollBy(0,bl):n.scrollBy(0,-bl);else{Us=0,clearTimeout(lp),history.replaceState(null,"",document.location.pathname+"#"+Cl),Nl(Cl),setTimeout(()=>{wl=!1},310);return}Us++,lp=setTimeout(()=>{cp(e,t,n)},10)}function xb(e,t){Cl=e.getAttribute("name"),wl=!0;const n=t.scrollTop>=0?t.scrollTop:-document.getElementsByClassName("mycontainer")[0].offsetTop;let o=bb(e).y-n;o=o-document.documentElement.scrollTop;const r=o%bl,l=Math.abs((o-r)/bl);(o<0&&t||e.getBoundingClientRect().top<t.offsetTop)&&window.scrollBy(0,e.getBoundingClientRect().top-t.offsetTop-16),cp(o,l,t)}const up=e=>{if(wl)return;e?Sl=e:Sl=document.getElementsByClassName("mymain")[0].id;const t=Cb(Sl),n=wb(t);try{n.forEach((o,r)=>{const l=n[r],s=n[r+1],[c,u]=Tb(r,l,s);if(c)throw history.replaceState(null,document.title,u||" "),Nb(u),Error(u+"")})}catch{}},dp=Sb(up,300),ka=(e,t,n,o)=>{e.style.position=t,e.style.top=n+"px",e.style.left=o+"px"},to=function(){if(Tn&&"addEventListener"in window)return function(e,t,n){e.addEventListener(t,n,!1)}}();var fp={name:"DAnchorBox",mounted(e){const t="m"+or(8);e.id=t,e.classList.add("mycontainer","mymain",t);let o;const r=document.querySelector(`#${t}`),l=document.querySelector(`#${t} .mysidebar`),s=l.clientHeight;window.addEventListener("resize",()=>{ka(l,"absolute",0,0)}),window.onscroll=function(){o=document.documentElement.scrollTop||document.body.scrollTop,document.getElementsByClassName("scrollTarget").length?ka(l,"absolute",r.scrollTop,0):o+s-16>=r.offsetTop+r.clientHeight?ka(l,"absolute",r.clientHeight-s-8,0):o>r.offsetTop?ka(l,"fixed",r.offsetTop,r.getBoundingClientRect().left):r.offsetTop>=o&&o>=0?ka(l,"absolute",0,0):ka(l,"absolute",r.clientHeight-s-8,0)},to==null||to(r,"scroll",function(){document.getElementsByClassName("scrollTarget").length&&ka(l,"fixed",r.getBoundingClientRect().top,r.getBoundingClientRect().left)}),up(t),document.getElementsByClassName("scrollTarget").length?to==null||to(r,"scroll",dp):window.addEventListener("scroll",dp)}},hp={name:"DAnchorLink",mounted(e,t){const n=e.parentNode;n.className||(n.className="mysidebar step-nav"),e.className="bar-link-item",e.innerHTML+='<a class="d-d-anchor" style="display:none" href="#'+t.value+'">?</a>',e.setAttribute("id",t.value),e.onclick=()=>{let o;const r=document.getElementsByName(t.value)[0];document.getElementsByClassName("scrollTarget").length?o=document.getElementsByClassName("scrollTarget")[0]:o=window,xb(r,o)}}},pp={name:"DAnchor",mounted(e,t){const n=e.parentNode;n.className||(n.className="mycontent"),e.innerHTML='<a class="box-anchor" style="display:none" href="#'+t.value+'">?</a>'+e.innerHTML,e.className="section-block",e.setAttribute("name",t.value),e.onclick=()=>{Nl(t.value)}}},eW="",Lb={title:"Anchor \u951A\u70B9",category:"\u5BFC\u822A",status:"50%",install(e){e.directive(pp.name,pp),e.directive(hp.name,hp),e.directive(fp.name,fp),e.component(Ks.name,Ks)}};const Vb={modelValue:{type:String,default:""},source:{type:Array,default:null},allowEmptyValueSearch:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},position:{type:Array,default:()=>["bottom","top","left","right"]},disabled:{type:Boolean,default:!1},delay:{type:Number,default:300},disabledKey:{type:String,default:null},formatter:{type:Function,default:e=>typeof e=="string"?e:e!==null?e.label||e.toString():""},isSearching:{type:Boolean,default:!1},sceneType:{type:String,default:null},searchFn:{type:Function,default:null},tipsText:{type:String,default:"\u6700\u8FD1\u8F93\u5165"},latestSource:{type:Array,default:null},valueParser:{type:Function,default:e=>e},enableLazyLoad:{type:Boolean,default:!1},width:{type:Number,default:400},showAnimation:{type:Boolean,default:!0},maxHeight:{type:Number,default:300},transInputFocusEmit:{type:Function,default:null},selectValue:{type:Function,default:null},loadMore:{type:Function,default:null},placeholder:{type:String,default:"Search"},prefix:{type:String,default:""},suffix:{type:String,default:""},size:{type:String,default:"md"},clearable:{type:Boolean,default:!1},showGlowStyle:{type:Boolean,default:!0}},gp=Symbol("DropdownPropsKey");function Eb(e,t){const n=(s,c)=>{const u={item:s,index:c};return e.slots.item?e.slots.item(u):null},o=()=>e.slots.nothing?e.slots.nothing(t.value):null,r=()=>e.slots.searching?e.slots.searching(t.value):null;return{customRenderSolts:()=>{const s={};return e.slots.item&&(s.itemTemplate=n),e.slots.nothing&&(s.noResultItemTemplate=o),e.slots.searching&&(s.searchingTemplate=r),s}}}function kb(e,t,n,o,r){const l=a.ref([]),s=a.ref(!1),c=h=>{const p=[];return n.value.forEach(g=>{let m=r.value(g);m=m.toLowerCase(),m.startsWith(h)&&p.push(g)}),p};return{handleSearch:async(h,p=!1)=>{if(h===""&&!t.value){l.value=[],s.value=!1;return}let g=[];h=h.toLowerCase(),p?g=n.value:o.value?g=await o.value(h):g=c(h),l.value=g,l.value.length===0?s.value=!0:s.value=!1},recentlyFocus:h=>{h&&(l.value=h)},searchList:l,showNoResultItemTemplate:s}}function Ib(e,t,n,o,r,l,s,c,u,f){const h=a.ref(!1),p=a.ref(),g=a.ref(!1),m=a.ref(!1),w=((x,k)=>{let E;return A=>{E&&clearTimeout(E),E=setTimeout(async()=>{g.value=!0,await x(A),g.value=!1},k)}})(async x=>{await s(x),h.value=!0},l.value),C=x=>{const k=x.target;g.value=!1,n.value=!1,e.emit("update:modelValue",k.value),w(k.value)},N=()=>{m.value=!0,s(o.value),u(f==null?void 0:f.value),c.value&&c.value()},S=()=>{m.value=!1,e.emit("blur")},D=()=>{e.emit("update:modelValue",""),e.emit("clear")},L=()=>{h.value=!1,g.value=!1,n.value=!1};return{handleClose:L,toggleMenu:()=>{r.value||(h.value?L():(h.value=!0,e.slots.noResultItemTemplate&&t.value.length===0&&o.value.trim()!==""&&(n.value=!0)))},onInput:C,onFocus:N,onBlur:S,onClear:D,isFocus:m,inputRef:p,visible:h,searchStatus:g}}function Ab(e,t,n,o,r,l){const s=a.ref(0),c=f=>{if(t.value.length===0)return 0;let h=0;return t.value.forEach((p,g)=>{typeof p=="string"?p===f&&(h=g):String(p.label)===f&&(h=g)}),h===-1?0:h};return{selectedIndex:s,selectOptionClick:async f=>{const h=r.value(f);e.emit("update:modelValue",h),l(),await o(h),s.value=c(h),n.value&&n.value(h)}}}function Mb(e,t,n){const o=a.ref(!1),r=a.ref(),l=()=>{if(!e.enableLazyLoad&&o)return;const c=r.value,u=c.scrollHeight,f=c.clientHeight+c.scrollTop;f>=u&&f>=e.maxHeight&&(e.loadMore(),o.value=!0)};async function s(){await n(e.modelValue,e.enableLazyLoad),o.value=!1}return t.expose({loadFinish:s}),{showLoading:o,dropDownRef:r,loadMore:l}}function _b(e,t,n,o,r,l,s,c){var p;const u=a.ref((p=o.value)!=null?p:0),f=g=>{const m=e.value,b=m.children[g];a.nextTick(()=>{if(b.scrollIntoViewIfNeeded)b.scrollIntoViewIfNeeded(!1);else{const v=m.getBoundingClientRect(),w=b.getBoundingClientRect();(w.bottom>v.bottom||w.top<v.top)&&b.scrollIntoView(!1)}})};return{hoverIndex:u,handlekeyDown:g=>{var v;const m=g.key||g.code;if(m==="Escape"&&(t.value&&n.value.length||r.value||l.value)){c();return}const b=t.value&&n.value.length&&!r.value&&!l.value;if(m==="ArrowDown"&&b){if(u.value===n.value.length-1){u.value=0,f(u.value);return}u.value=u.value+1,f(u.value)}else if(m==="ArrowUp"&&b){if(u.value===0){u.value=n.value.length-1,f(u.value);return}u.value=u.value-1,f(u.value)}if(m==="Enter"&&b){s(n.value[u.value]),u.value=(v=o.value)!=null?v:0;return}}}}const Fb={data:{type:Object,default:()=>({})},layout:{type:String,default:"horizontal"},labelSize:{type:String,default:"md"},labelAlign:{type:String,default:"start"},rules:{type:Object},messageType:{type:String,default:"popover"},popPosition:{type:Array,default:["right","bottom"]},validateOnRuleChange:{type:Boolean,default:!1},showFeedback:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},hideRequiredMark:{type:Boolean,default:!1},styleType:{type:String,default:"default"},appendToBodyScrollStrategy:{type:String,default:"reposition"},requirePosition:{type:String,default:"left"}},pt="dForm",mp="dFormStyle";function Pb(){const e=[];return{itemContexts:e,addItemContext:o=>{e.push(o)},removeItemContext:o=>{e.splice(e.indexOf(o),1)}}}var xn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},me={exports:{}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(e,t){(function(){var n,o="4.17.21",r=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",p=1,g=2,m=4,b=1,v=2,w=1,C=2,N=4,S=8,D=16,L=32,T=64,x=128,k=256,E=512,A=30,P="...",O=800,$=16,B=1,R=2,_=3,z=1/0,W=9007199254740991,q=17976931348623157e292,ee=0/0,Y=4294967295,j=Y-1,Q=Y>>>1,de=[["ary",x],["bind",w],["bindKey",C],["curry",S],["curryRight",D],["flip",E],["partial",L],["partialRight",T],["rearg",k]],he="[object Arguments]",be="[object Array]",De="[object AsyncFunction]",Ie="[object Boolean]",xe="[object Date]",Ke="[object DOMException]",se="[object Error]",Ce="[object Function]",ce="[object GeneratorFunction]",ne="[object Map]",ve="[object Number]",Te="[object Null]",ie="[object Object]",Se="[object Promise]",Ae="[object Proxy]",Ze="[object RegExp]",fe="[object Set]",we="[object String]",Me="[object Symbol]",ot="[object Undefined]",Ye="[object WeakMap]",St="[object WeakSet]",Ht="[object ArrayBuffer]",bn="[object DataView]",ma="[object Float32Array]",qr="[object Float64Array]",Zr="[object Int8Array]",Xr="[object Int16Array]",va="[object Int32Array]",Po="[object Uint8Array]",Oo="[object Uint8ClampedArray]",Un="[object Uint16Array]",Bo="[object Uint32Array]",$i=/\b__p \+= '';/g,zi=/\b(__p \+=) '' \+/g,kf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hi=/&(?:amp|lt|gt|quot|#39);/g,ja=/[&<>"']/g,If=RegExp(Hi.source),An=RegExp(ja.source),ji=/<%-([\s\S]+?)%>/g,Wi=/<%([\s\S]+?)%>/g,Cn=/<%=([\s\S]+?)%>/g,Af=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ki=/^\w*$/,Ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jr=/[\\^$.*+?()[\]{}|]/g,U=RegExp(Jr.source),pe=/^\s+/,ue=/\s/,Pe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gt=/\{\n\/\* \[wrapped with (.+)\] \*/,$o=/,? & /,Mf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_f=/[()=,{}\[\]\/\s]/,MP=/\\(\\)?/g,_P=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gv=/\w*$/,FP=/^[-+]0x[0-9a-f]+$/i,PP=/^0b[01]+$/i,OP=/^\[object .+?Constructor\]$/,BP=/^0o[0-7]+$/i,RP=/^(?:0|[1-9]\d*)$/,$P=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ui=/($^)/,zP=/['\n\r\u2028\u2029\\]/g,Yi="\\ud800-\\udfff",HP="\\u0300-\\u036f",jP="\\ufe20-\\ufe2f",WP="\\u20d0-\\u20ff",mv=HP+jP+WP,vv="\\u2700-\\u27bf",yv="a-z\\xdf-\\xf6\\xf8-\\xff",KP="\\xac\\xb1\\xd7\\xf7",UP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",YP="\\u2000-\\u206f",GP=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bv="A-Z\\xc0-\\xd6\\xd8-\\xde",Cv="\\ufe0e\\ufe0f",wv=KP+UP+YP+GP,Ff="['\u2019]",qP="["+Yi+"]",Sv="["+wv+"]",Gi="["+mv+"]",Nv="\\d+",ZP="["+vv+"]",Dv="["+yv+"]",Tv="[^"+Yi+wv+Nv+vv+yv+bv+"]",Pf="\\ud83c[\\udffb-\\udfff]",XP="(?:"+Gi+"|"+Pf+")",xv="[^"+Yi+"]",Of="(?:\\ud83c[\\udde6-\\uddff]){2}",Bf="[\\ud800-\\udbff][\\udc00-\\udfff]",zo="["+bv+"]",Lv="\\u200d",Vv="(?:"+Dv+"|"+Tv+")",JP="(?:"+zo+"|"+Tv+")",Ev="(?:"+Ff+"(?:d|ll|m|re|s|t|ve))?",kv="(?:"+Ff+"(?:D|LL|M|RE|S|T|VE))?",Iv=XP+"?",Av="["+Cv+"]?",QP="(?:"+Lv+"(?:"+[xv,Of,Bf].join("|")+")"+Av+Iv+")*",eO="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tO="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mv=Av+Iv+QP,nO="(?:"+[ZP,Of,Bf].join("|")+")"+Mv,aO="(?:"+[xv+Gi+"?",Gi,Of,Bf,qP].join("|")+")",oO=RegExp(Ff,"g"),rO=RegExp(Gi,"g"),Rf=RegExp(Pf+"(?="+Pf+")|"+aO+Mv,"g"),lO=RegExp([zo+"?"+Dv+"+"+Ev+"(?="+[Sv,zo,"$"].join("|")+")",JP+"+"+kv+"(?="+[Sv,zo+Vv,"$"].join("|")+")",zo+"?"+Vv+"+"+Ev,zo+"+"+kv,tO,eO,Nv,nO].join("|"),"g"),iO=RegExp("["+Lv+Yi+mv+Cv+"]"),sO=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cO=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],uO=-1,st={};st[ma]=st[qr]=st[Zr]=st[Xr]=st[va]=st[Po]=st[Oo]=st[Un]=st[Bo]=!0,st[he]=st[be]=st[Ht]=st[Ie]=st[bn]=st[xe]=st[se]=st[Ce]=st[ne]=st[ve]=st[ie]=st[Ze]=st[fe]=st[we]=st[Ye]=!1;var rt={};rt[he]=rt[be]=rt[Ht]=rt[bn]=rt[Ie]=rt[xe]=rt[ma]=rt[qr]=rt[Zr]=rt[Xr]=rt[va]=rt[ne]=rt[ve]=rt[ie]=rt[Ze]=rt[fe]=rt[we]=rt[Me]=rt[Po]=rt[Oo]=rt[Un]=rt[Bo]=!0,rt[se]=rt[Ce]=rt[Ye]=!1;var dO={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},fO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},hO={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pO={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gO=parseFloat,mO=parseInt,_v=typeof xn=="object"&&xn&&xn.Object===Object&&xn,vO=typeof self=="object"&&self&&self.Object===Object&&self,It=_v||vO||Function("return this")(),$f=t&&!t.nodeType&&t,Wa=$f&&!0&&e&&!e.nodeType&&e,Fv=Wa&&Wa.exports===$f,zf=Fv&&_v.process,rn=function(){try{var G=Wa&&Wa.require&&Wa.require("util").types;return G||zf&&zf.binding&&zf.binding("util")}catch{}}(),Pv=rn&&rn.isArrayBuffer,Ov=rn&&rn.isDate,Bv=rn&&rn.isMap,Rv=rn&&rn.isRegExp,$v=rn&&rn.isSet,zv=rn&&rn.isTypedArray;function Xt(G,ae,te){switch(te.length){case 0:return G.call(ae);case 1:return G.call(ae,te[0]);case 2:return G.call(ae,te[0],te[1]);case 3:return G.call(ae,te[0],te[1],te[2])}return G.apply(ae,te)}function yO(G,ae,te,ye){for(var _e=-1,Xe=G==null?0:G.length;++_e<Xe;){var Nt=G[_e];ae(ye,Nt,te(Nt),G)}return ye}function ln(G,ae){for(var te=-1,ye=G==null?0:G.length;++te<ye&&ae(G[te],te,G)!==!1;);return G}function bO(G,ae){for(var te=G==null?0:G.length;te--&&ae(G[te],te,G)!==!1;);return G}function Hv(G,ae){for(var te=-1,ye=G==null?0:G.length;++te<ye;)if(!ae(G[te],te,G))return!1;return!0}function ya(G,ae){for(var te=-1,ye=G==null?0:G.length,_e=0,Xe=[];++te<ye;){var Nt=G[te];ae(Nt,te,G)&&(Xe[_e++]=Nt)}return Xe}function qi(G,ae){var te=G==null?0:G.length;return!!te&&Ho(G,ae,0)>-1}funct