@vancone/console-component 0.1.1-beta.11 → 0.1.1-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- (function(x,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("vue-router"),require("axios"),require("element-plus"),require("@element-plus/icons-vue"),require("vue-i18n"),require("lodash")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","axios","element-plus","@element-plus/icons-vue","vue-i18n","lodash"],e):(x=typeof globalThis!="undefined"?globalThis:x||self,e(x["console-component"]={},x.Vue,x.vueRouter,x.axios,x.ElementPlus,x.iconsVue,x.VueI18n,x.lodash))})(this,function(x,e,z,Ge,ge,ae,fe,ie){"use strict";var nr=Object.defineProperty,rr=Object.defineProperties;var ar=Object.getOwnPropertyDescriptors;var Lt=Object.getOwnPropertySymbols;var sr=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable;var Gt=(x,e,z)=>e in x?nr(x,e,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[e]=z,Le=(x,e)=>{for(var z in e||(e={}))sr.call(e,z)&&Gt(x,z,e[z]);if(Lt)for(var z of Lt(e))lr.call(e,z)&&Gt(x,z,e[z]);return x},zt=(x,e)=>rr(x,ar(e));var pe=(x,e,z)=>new Promise((Ge,ge)=>{var ae=J=>{try{ie(z.next(J))}catch(Ee){ge(Ee)}},fe=J=>{try{ie(z.throw(J))}catch(Ee){ge(Ee)}},ie=J=>J.done?Ge(J.value):Promise.resolve(J.value).then(ae,fe);ie((z=z.apply(x,e)).next())});const J=(t,o)=>{const n=t.__vccOpts||t;for(const[r,a]of o)n[r]=a;return n},Ee={},jt={class:"building"};function qt(t,o){return e.openBlock(),e.createElementBlock("div",jt)}const et=J(Ee,[["render",qt],["__scopeId","data-v-07bd45d2"]]),oe=Ge.create({timeout:2*60*1e3,withCredentials:!0});oe.interceptors.request.use(t=>t),oe.interceptors.response.use(t=>{const{headers:o,method:n}=t.config,{code:r,message:a}=t.data,{"No-Success-Message":s}=o,i=n!=="get";return r===0?(i&&!s&&ge.ElMessage({message:a,type:"success"}),Promise.resolve(t)):(ge.ElMessage({type:"error",message:a}),Promise.reject(new Error(`${r}`)))},t=>{var r;const{config:o,response:n}=t;if(n){const{status:a}=n;if(a===401){const l=window.escape(window.location.href);let c=(r=n.data.data)!=null?r:"https://passport.vancone.com";window.location.href=`${c}/?from=${l}`}const{message:s,error:i}=n.data;ge.ElMessage({type:"error",message:s||i})}return Promise.reject(new Error(t.message||"Response Error"))});const tt=()=>{const{origin:t}=window.location;return t.includes("beta")||t.includes("localhost")?"passport.beta.vancone.com":"passport.vancone.com"},ot=tt();function Ht(){return oe.get(`//${ot}/api/passport/service/v1/account`)}function Jt(){return oe.delete(`//${ot}/api/passport/service/v1/login`)}function Wt(){return oe.get("https://console.vancone.com/api/console/app-group?pageSize=1000")}function Yt(){return oe.get("https://console.vancone.com/api/console/app?pageSize=1000")}const Qt={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"};function Kt(t,o){return e.openBlock(),e.createElementBlock("svg",Qt,o[0]||(o[0]=[e.createElementVNode("path",{d:"M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z"},null,-1)]))}const Xt={render:Kt},Zt={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"};function vt(t,o){return e.openBlock(),e.createElementBlock("svg",Zt,o[0]||(o[0]=[e.createElementVNode("path",{d:"M487.01 113.079a56.076 56.076 0 0 1 73.216 21.918l1.901 3.536 100.401 203.215L886.93 374.32a56.076 56.076 0 0 1 33.939 92.647l-2.877 3.024-162.329 158.061L793.99 851.31a56.076 56.076 0 0 1-77.726 60.855l-3.609-1.707-200.801-105.472-200.802 105.448a56.076 56.076 0 0 1-81.871-55.345l.512-3.78 38.351-223.256-162.328-158.061a56.076 56.076 0 0 1 27.282-94.989l3.78-.682 224.377-32.573L461.58 138.533a56.08 56.08 0 0 1 25.43-25.454M409.722 408.6l-228.206 33.134 165.132 160.744-39.01 227.133 204.216-107.252 204.19 107.252-39.01-227.133 165.133-160.744L613.96 408.6 511.854 201.9 409.698 408.6z"},null,-1)]))}const eo={render:vt},to={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"};function oo(t,o){return e.openBlock(),e.createElementBlock("svg",to,o[0]||(o[0]=[e.createElementVNode("path",{d:"M512 109.714c222.184 0 402.286 180.102 402.286 402.286S734.184 914.286 512 914.286l-2.901-.122c-104.546-8.314-189.416-43.52-253.075-105.13l-.024 80.87h-73.143V658.287h207.238v73.143H283.99c52.858 65.048 128.561 101.4 229.45 109.714l7.63-.122C698.662 836.218 841.144 690.737 841.144 512c0-181.784-147.359-329.143-329.143-329.143S182.857 330.216 182.857 512h-73.143c0-222.184 180.102-402.286 402.286-402.286m-48.762 182.857h73.143V475.43h182.857v73.142h-256z"},null,-1)]))}const no={render:oo},ro={class:"app-catalog-wrapper"},ao={class:"catalog-wrapper"},so={class:"service-list"},lo={class:"app-icon-container"},io=["href"],co=["innerHTML"],po={key:1,class:"app-icon"},fo=J(e.defineComponent({__name:"AppCatalog",props:{visible:{type:Boolean}},setup(t){const o=e.reactive([]);function n(){Wt().then(({data:r})=>{o.splice(0,o.length,...r.data.list),Yt().then(({data:a})=>{const s=a.data.list;o.forEach(i=>{i.apps=s.filter(l=>l.appGroupId===i.id)})})})}return n(),(r,a)=>{const s=e.resolveComponent("el-input"),i=e.resolveComponent("el-scrollbar"),l=e.resolveComponent("el-tab-pane"),c=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ro,[e.createVNode(c,{"tab-position":"left"},{default:e.withCtx(()=>[e.createVNode(l,null,{label:e.withCtx(()=>[e.createVNode(e.unref(Xt),{class:"left-icon"})]),default:e.withCtx(()=>[a[0]||(a[0]=e.createElementVNode("h1",{class:"catalog-title"},"Apps",-1)),e.createVNode(s,{class:"search-box","prefix-icon":e.unref(ae.Search),placeholder:"Search apps"},null,8,["prefix-icon"]),e.createVNode(i,{class:"right-area",style:{width:"100%",height:"400px"}},{default:e.withCtx(()=>[e.createElementVNode("div",ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,f=>(e.openBlock(),e.createElementBlock("div",so,[e.createElementVNode("h1",null,e.toDisplayString(f.name),1),e.createElementVNode("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.apps,b=>{var _,S;return e.openBlock(),e.createElementBlock("a",{style:e.normalizeStyle([{"text-decoration":"none"},{pointerEvents:((_=b.homepageUrl)==null?void 0:_.length)>0?"auto":"none"}]),target:"_blank",href:b.homepageUrl},[b.iconSvg!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"app-icon",innerHTML:b.iconSvg},null,8,co)):(e.openBlock(),e.createElementBlock("div",po," ")),e.createElementVNode("h2",{style:e.normalizeStyle({color:((S=b.homepageUrl)==null?void 0:S.length)>0?"#555":"#bbb"})},e.toDisplayString(b.name),5)],12,io)}),256))])]))),256))])]),_:1})]),_:1}),e.createVNode(l,null,{label:e.withCtx(()=>[e.createVNode(e.unref(eo),{class:"left-icon"})]),default:e.withCtx(()=>[a[1]||(a[1]=e.createElementVNode("h1",{class:"catalog-title"},"Favorites",-1))]),_:1}),e.createVNode(l,null,{label:e.withCtx(()=>[e.createVNode(e.unref(no),{class:"left-icon"})]),default:e.withCtx(()=>[a[2]||(a[2]=e.createElementVNode("h1",{class:"catalog-title"},"Recently",-1))]),_:1})]),_:1})])}}}),[["__scopeId","data-v-ef746334"]]),nt={common:{header:{product:"Products",help:"Help",notification:"Notification",workbench:"Workbench",userCenter:"User Center",switchLanguage:"Languages",signOut:"Sign out"},table:{create:"Create",delete:"Delete",add:"Add",remove:"Remove",search:"Search",edit:"Edit",operation:"Operations",viewSelected:"View Selected",warning:"Warning",select:"Select"},basic:{cancel:"Cancel",confirm:"Confirm",createdTime:"Created Time",description:"Description",detail:"Details",more:"More",name:"Name",no:"No",save:"Save",summary:"Summary",type:"Type",updatedTime:"Updated Time",yes:"Yes"}}},rt={common:{header:{product:"产品",help:"帮助",notification:"通知",workbench:"工作台",userCenter:"用户中心",switchLanguage:"语言",signOut:"退出登录"},table:{create:"创建",delete:"删除",add:"添加",remove:"移除",search:"搜索",edit:"编辑",operation:"操作",viewSelected:"查看已选",warning:"风险提示",select:"选择"},basic:{cancel:"取消",confirm:"确认",createdTime:"创建时间",description:"描述",detail:"详情",more:"更多",name:"名称",no:"否",save:"保存",summary:"基本信息",type:"类型",updatedTime:"更新时间",yes:"是"}}},Se=fe.createI18n({legacy:!1,locale:localStorage.getItem("locale")||navigator.language.slice(0,2),messages:{en:nt,zh:rt}}),mo={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 32 32"};function uo(t,o){return e.openBlock(),e.createElementBlock("svg",mo,o[0]||(o[0]=[e.createElementVNode("path",{d:"M22.6 29.1h6.6v-6.6h-6.6m0-3.2h6.6v-6.6h-6.6m-9.9-3.3h6.6V2.9h-6.6m9.9 6.5h6.6V2.9h-6.6m-9.9 16.4h6.6v-6.6h-6.6m-9.8 6.6h6.6v-6.6H2.9m0 16.4h6.6v-6.6H2.9m9.8 6.6h6.6v-6.6h-6.6M2.9 9.4h6.6V2.9H2.9z"},null,-1)]))}const ho={render:uo},go={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200",class:"icon",viewBox:"0 0 1024 1024"};function _o(t,o){return e.openBlock(),e.createElementBlock("svg",go,o[0]||(o[0]=[e.createElementVNode("path",{d:"M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906"},null,-1)]))}const bo={render:_o},yo={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200",class:"icon",viewBox:"0 0 1024 1024"};function wo(t,o){return e.openBlock(),e.createElementBlock("svg",yo,o[0]||(o[0]=[e.createElementVNode("path",{d:"M358.4 871.2H45.152C19.936 871.2 0 843.904 0 819.2s19.936-50.624 45.152-50.624h56.64l-1.088-283.168c0-204.608 164.032-374.56 337.056-412.576v-1.28C437.76 32.032 470.496 0 510.848 0s73.088 32.032 73.088 71.552v1.28C756.96 110.848 922.08 280.8 922.08 485.408v283.168h55.008c25.216 0 46.944 25.92 46.944 50.624s-21.696 52-46.944 52H665.632c-.416 84.48-69.024 152.8-153.6 152.8s-153.184-68.352-153.6-152.8zm102.4 0c.416 27.904 23.168 50.4 51.2 50.4s50.784-22.496 51.2-50.4zm357.216-103.328v-282.56c0-179.808-149.536-329.984-307.104-329.984S204.544 305.472 204.544 485.312v282.56z"},null,-1)]))}const Co={render:wo},ko={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 32 32"};function No(t,o){return e.openBlock(),e.createElementBlock("svg",ko,o[0]||(o[0]=[e.createElementVNode("path",{d:"M23.8 22.1H8.2c-2.5 0-4.5-2.1-4.5-4.5V7.9c0-2.5 2.1-4.5 4.5-4.5h15.6c2.5 0 4.5 2.1 4.5 4.5v9.7c0 2.4-2.1 4.5-4.5 4.5M16 23.2v5M8.3 28.9h15.4",style:{fill:"none","stroke-width":"3","stroke-miterlimit":"10"}},null,-1)]))}const Vo={render:No},Eo={class:"header"},So={class:"title"},xo={class:"right"},Bo={class:"icon-wrapper"},Oo={class:"user-wrapper"},$o={style:{"font-size":"11px","font-weight":"bold"}},Io={class:"user-popover-header"},Po={style:{"font-size":"15px","font-weight":"bold"}},Do=["onClick"],ze=J(e.defineComponent({__name:"Header",props:{title:{},helpDocUrl:{}},setup(t){const{t:o}=fe.useI18n(),n=e.ref(),r=e.ref(),a=e.ref(),s=e.ref(),i=e.ref(!1),l=t;e.ref(!1);const c=e.ref(""),f=e.ref(Se.global.locale),b=e.reactive([{id:"en",name:"English"},{id:"zh",name:"简体中文"}]);e.onMounted(()=>{c.value=decodeURIComponent(_("passport_username").replace(/\+/g," ")),c.value===""&&Ht().then(({data:D})=>{var E;D.code==0&&(c.value=(E=D.data.name)!=null?E:D.data.displayId)})});function _(D){for(var E=D+"=",j=document.cookie.split(";"),M=0;M<j.length;M++){for(var A=j[M];A.charAt(0)==" ";)A=A.substring(1);if(A.indexOf(E)!=-1)return A.substring(E.length,A.length)}return""}function S(){Jt().then(()=>{const D=escape(window.location.href);window.location.href=`//${tt()}/?from=${D}#login`})}function B(D){Se.global.locale.value=D,f.value=D,localStorage.setItem("locale",D)}function T(){window.open("https://passport.vancone.com/#/account/profile","_blank")}function $(){window.open(l.helpDocUrl,"_blank")}return(D,E)=>{const j=e.resolveComponent("el-popover"),M=e.resolveComponent("el-tooltip"),A=e.resolveComponent("el-avatar"),Q=e.resolveComponent("el-menu-item"),y=e.resolveComponent("el-icon"),h=e.resolveComponent("el-menu"),k=e.resolveComponent("el-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Eo,[e.createElementVNode("div",So,[e.createElementVNode("div",{ref_key:"appCatalogButtonRef",ref:s,class:"icon-wrapper",style:{"margin-left":"8px"}},[e.createVNode(e.unref(ho))],512),e.createElementVNode("h1",null,e.toDisplayString(D.title),1)]),e.createVNode(j,{class:"app-popover","virtual-ref":s.value,trigger:"click","show-arrow":!1,"popper-style":"width: 500px; height: 500px; padding: 0; inset: 49px auto auto 0px"},{default:e.withCtx(()=>[e.createVNode(fo,{visible:!0})]),_:1},8,["virtual-ref"]),e.createElementVNode("div",xo,[e.createVNode(M,{effect:"dark",content:e.unref(o)("common.header.workbench"),placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",Bo,[e.createVNode(e.unref(Vo))])]),_:1},8,["content"]),e.createVNode(M,{effect:"dark",content:e.unref(o)("common.header.help"),placement:"bottom"},{default:e.withCtx(()=>[l.helpDocUrl!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"icon-wrapper",onClick:$},[e.createVNode(e.unref(bo))])):e.createCommentVNode("",!0)]),_:1},8,["content"]),e.createVNode(M,{effect:"dark",content:e.unref(o)("common.header.notification"),placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"icon-wrapper",onClick:E[0]||(E[0]=V=>i.value=!0)},[e.createVNode(e.unref(Co))])]),_:1},8,["content"]),e.createElementVNode("div",Oo,[e.createVNode(A,{size:30,src:"",ref_key:"avatarRef",ref:n},{default:e.withCtx(()=>[e.createElementVNode("span",$o,e.toDisplayString(c.value.substring(0,2)),1)]),_:1},512),e.createVNode(j,{teleported:!1,width:"280",effect:"dark",ref_key:"popoverRef",ref:r,"virtual-ref":n.value,trigger:"hover","virtual-triggering":""},{default:e.withCtx(()=>[e.createElementVNode("div",Io,[e.createVNode(A,{size:48,src:""},{default:e.withCtx(()=>[e.createElementVNode("span",Po,e.toDisplayString(c.value.substring(0,2)),1)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(c.value),1)]),e.createVNode(h,{class:"user-menu"},{default:e.withCtx(()=>[e.createVNode(Q,{onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.header.userCenter")),1)]),_:1}),e.createVNode(Q,{ref_key:"switchLanguageRef",ref:a,style:{display:"flext","justify-content":"space-between"}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("common.header.switchLanguage")),1),e.createVNode(y,{style:{left:"15px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ae.ArrowRight))]),_:1})]),_:1},512),e.createVNode(j,{teleported:!1,width:"150",effect:"dark",ref:"popover2Ref",placement:"left-start","virtual-ref":a.value,trigger:"hover","virtual-triggering":"","popper-style":"height: 80px; left: -165px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b,V=>(e.openBlock(),e.createElementBlock("div",{class:"select-list",onClick:p=>B(V.id)},[e.createElementVNode("span",null,e.toDisplayString(V.name),1),V.id===f.value?(e.openBlock(),e.createBlock(y,{key:0,style:{color:"#8ba74f"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ae.Check))]),_:1})):e.createCommentVNode("",!0)],8,Do))),256))]),_:1},8,["virtual-ref"]),e.createVNode(Q,{onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.header.signOut")),1)]),_:1})]),_:1})]),_:1},8,["virtual-ref"])])])]),e.createVNode(k,{modelValue:i.value,"onUpdate:modelValue":E[1]||(E[1]=V=>i.value=V),direction:"rtl",title:"Message Center"},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-6fc40dbc"]]),To={class:"menu-icon-wrapper",style:{"margin-left":"3px"}},Mo={class:"menu-icon-wrapper"},Ao=J(e.defineComponent({__name:"SideMenuItem",props:{menu:{}},setup(t){const o=t;return e.nextTick(()=>console.log("menu",o.menu)),(n,r)=>{const a=e.resolveComponent("SideMenuItem",!0),s=e.resolveComponent("el-sub-menu"),i=e.resolveComponent("el-menu-item");return n.menu.children&&n.menu.children.length>0?(e.openBlock(),e.createBlock(s,{key:0,index:n.menu.path},{title:e.withCtx(()=>{var l,c,f;return[e.createElementVNode("div",To,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=n.menu.meta)==null?void 0:l.icon),{class:"menu-icon"}))]),e.createElementVNode("span",null,e.toDisplayString(n.$t((f=(c=n.menu.meta)==null?void 0:c.title)!=null?f:"")),1)]}),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menu.children,l=>(e.openBlock(),e.createBlock(a,{key:l.path,route:l,menu:l},null,8,["route","menu"]))),128))]),_:1},8,["index"])):(e.openBlock(),e.createBlock(i,{key:1,index:o.menu.path,style:{height:"40px"}},{title:e.withCtx(()=>{var l,c;return[e.createElementVNode("span",null,e.toDisplayString(n.$t((c=(l=n.menu.meta)==null?void 0:l.title)!=null?c:"")),1)]}),default:e.withCtx(()=>{var l;return[e.createElementVNode("div",Mo,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=n.$props.menu.meta)==null?void 0:l.icon),{class:"menu-icon"}))])]}),_:1},8,["index"]))}}}),[["__scopeId","data-v-99da7c39"]]),ee=e.ref({}),at={},je=e.ref([]);var st=!1;function Pe(t,o,n){return Array.isArray(t)?(t.length=Math.max(t.length,o),t.splice(o,1,n),n):(t[o]=n,n)}function qe(t,o){if(Array.isArray(t)){t.splice(o,1);return}delete t[o]}function Uo(){return lt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function lt(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:{}}const Ro=typeof Proxy=="function",Fo="devtools-plugin:setup",Lo="plugin:settings:set";let ke,He;function Go(){var t;return ke!==void 0||(typeof window!="undefined"&&window.performance?(ke=!0,He=window.performance):typeof globalThis!="undefined"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(ke=!0,He=globalThis.perf_hooks.performance):ke=!1),ke}function zo(){return Go()?He.now():Date.now()}class jo{constructor(o,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=n;const r={};if(o.settings)for(const i in o.settings){const l=o.settings[i];r[i]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${o.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(a),l=JSON.parse(i);Object.assign(s,l)}catch(i){}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch(l){}s=i},now(){return zo()}},n&&n.on(Lo,(i,l)=>{i===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(i,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(f=>{this.targetQueue.push({method:l,args:c,resolve:f})})})}setRealTarget(o){return pe(this,null,function*(){this.target=o;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(yield this.target[n.method](...n.args))})}}function it(t,o){const n=t,r=lt(),a=Uo(),s=Ro&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(Fo,t,o);else{const i=s?new jo(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:o,proxy:i}),i&&o(i.proxiedTarget)}}/*!
1
+ (function(x,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("vue-router"),require("axios"),require("element-plus"),require("@element-plus/icons-vue"),require("vue-i18n"),require("lodash")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","axios","element-plus","@element-plus/icons-vue","vue-i18n","lodash"],e):(x=typeof globalThis!="undefined"?globalThis:x||self,e(x["console-component"]={},x.Vue,x.vueRouter,x.axios,x.ElementPlus,x.iconsVue,x.VueI18n,x.lodash))})(this,function(x,e,z,Ge,ge,ae,fe,ie){"use strict";var nr=Object.defineProperty,rr=Object.defineProperties;var ar=Object.getOwnPropertyDescriptors;var Lt=Object.getOwnPropertySymbols;var sr=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable;var Gt=(x,e,z)=>e in x?nr(x,e,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[e]=z,Le=(x,e)=>{for(var z in e||(e={}))sr.call(e,z)&&Gt(x,z,e[z]);if(Lt)for(var z of Lt(e))lr.call(e,z)&&Gt(x,z,e[z]);return x},zt=(x,e)=>rr(x,ar(e));var pe=(x,e,z)=>new Promise((Ge,ge)=>{var ae=J=>{try{ie(z.next(J))}catch(Ee){ge(Ee)}},fe=J=>{try{ie(z.throw(J))}catch(Ee){ge(Ee)}},ie=J=>J.done?Ge(J.value):Promise.resolve(J.value).then(ae,fe);ie((z=z.apply(x,e)).next())});const J=(t,o)=>{const n=t.__vccOpts||t;for(const[r,a]of o)n[r]=a;return n},Ee={},jt={class:"building"};function qt(t,o){return e.openBlock(),e.createElementBlock("div",jt)}const et=J(Ee,[["render",qt],["__scopeId","data-v-07bd45d2"]]),oe=Ge.create({timeout:2*60*1e3,withCredentials:!0});oe.interceptors.request.use(t=>t),oe.interceptors.response.use(t=>{const{headers:o,method:n}=t.config,{code:r,message:a}=t.data,{"No-Success-Message":s}=o,i=n!=="get";return r===0?(i&&!s&&ge.ElMessage({message:a,type:"success"}),Promise.resolve(t)):(ge.ElMessage({type:"error",message:a}),Promise.reject(new Error(`${r}`)))},t=>{var r;const{config:o,response:n}=t;if(n){const{status:a}=n;if(a===401){const l=window.escape(window.location.href);let c=(r=n.data.data)!=null?r:"https://passport.vancone.com";window.location.href=`${c}/?from=${l}`}const{message:s,error:i}=n.data;ge.ElMessage({type:"error",message:s||i})}return Promise.reject(new Error(t.message||"Response Error"))});const tt=()=>{const{origin:t}=window.location;return t.includes("beta")||t.includes("localhost")?"passport.beta.vancone.com":"passport.vancone.com"},ot=tt();function Ht(){return oe.get(`//${ot}/api/passport/service/v1/account`)}function Jt(){return oe.delete(`//${ot}/api/passport/service/v1/login`)}function Wt(){return oe.get("https://console.vancone.com/api/console/app-group?pageSize=1000")}function Yt(){return oe.get("https://console.vancone.com/api/console/app?pageSize=1000")}const Qt={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"};function Kt(t,o){return e.openBlock(),e.createElementBlock("svg",Qt,o[0]||(o[0]=[e.createElementVNode("path",{d:"M480 544v352H128V544zm416 288v64H544v-64zM416 608H192v224h224zm480 83.072v64H544v-64zM896 544v64H544v-64zM480 128v352H128V128zm416 0v352H544V128zm-480 64H192v224h224zm416 0H608v224h224z"},null,-1)]))}const Xt={render:Kt},Zt={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"};function vt(t,o){return e.openBlock(),e.createElementBlock("svg",Zt,o[0]||(o[0]=[e.createElementVNode("path",{d:"M487.01 113.079a56.076 56.076 0 0 1 73.216 21.918l1.901 3.536 100.401 203.215L886.93 374.32a56.076 56.076 0 0 1 33.939 92.647l-2.877 3.024-162.329 158.061L793.99 851.31a56.076 56.076 0 0 1-77.726 60.855l-3.609-1.707-200.801-105.472-200.802 105.448a56.076 56.076 0 0 1-81.871-55.345l.512-3.78 38.351-223.256-162.328-158.061a56.076 56.076 0 0 1 27.282-94.989l3.78-.682 224.377-32.573L461.58 138.533a56.08 56.08 0 0 1 25.43-25.454M409.722 408.6l-228.206 33.134 165.132 160.744-39.01 227.133 204.216-107.252 204.19 107.252-39.01-227.133 165.133-160.744L613.96 408.6 511.854 201.9 409.698 408.6z"},null,-1)]))}const eo={render:vt},to={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"};function oo(t,o){return e.openBlock(),e.createElementBlock("svg",to,o[0]||(o[0]=[e.createElementVNode("path",{d:"M512 109.714c222.184 0 402.286 180.102 402.286 402.286S734.184 914.286 512 914.286l-2.901-.122c-104.546-8.314-189.416-43.52-253.075-105.13l-.024 80.87h-73.143V658.287h207.238v73.143H283.99c52.858 65.048 128.561 101.4 229.45 109.714l7.63-.122C698.662 836.218 841.144 690.737 841.144 512c0-181.784-147.359-329.143-329.143-329.143S182.857 330.216 182.857 512h-73.143c0-222.184 180.102-402.286 402.286-402.286m-48.762 182.857h73.143V475.43h182.857v73.142h-256z"},null,-1)]))}const no={render:oo},ro={class:"app-catalog-wrapper"},ao={class:"catalog-wrapper"},so={class:"service-list"},lo={class:"app-icon-container"},io=["href"],co=["innerHTML"],po={key:1,class:"app-icon"},fo=J(e.defineComponent({__name:"AppCatalog",props:{visible:{type:Boolean}},setup(t){const o=e.reactive([]);function n(){Wt().then(({data:r})=>{o.splice(0,o.length,...r.data.list),Yt().then(({data:a})=>{const s=a.data.list;o.forEach(i=>{i.apps=s.filter(l=>l.appGroupId===i.id)})})})}return n(),(r,a)=>{const s=e.resolveComponent("el-input"),i=e.resolveComponent("el-scrollbar"),l=e.resolveComponent("el-tab-pane"),c=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ro,[e.createVNode(c,{"tab-position":"left"},{default:e.withCtx(()=>[e.createVNode(l,null,{label:e.withCtx(()=>[e.createVNode(e.unref(Xt),{class:"left-icon"})]),default:e.withCtx(()=>[a[0]||(a[0]=e.createElementVNode("h1",{class:"catalog-title"},"Apps",-1)),e.createVNode(s,{class:"search-box","prefix-icon":e.unref(ae.Search),placeholder:"Search apps"},null,8,["prefix-icon"]),e.createVNode(i,{class:"right-area",style:{width:"100%",height:"400px"}},{default:e.withCtx(()=>[e.createElementVNode("div",ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,f=>(e.openBlock(),e.createElementBlock("div",so,[e.createElementVNode("h1",null,e.toDisplayString(f.name),1),e.createElementVNode("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.apps,b=>{var _,S;return e.openBlock(),e.createElementBlock("a",{style:e.normalizeStyle([{"text-decoration":"none"},{pointerEvents:((_=b.homepageUrl)==null?void 0:_.length)>0?"auto":"none"}]),target:"_blank",href:b.homepageUrl},[b.iconSvg!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"app-icon",innerHTML:b.iconSvg},null,8,co)):(e.openBlock(),e.createElementBlock("div",po," ")),e.createElementVNode("h2",{style:e.normalizeStyle({color:((S=b.homepageUrl)==null?void 0:S.length)>0?"#555":"#bbb"})},e.toDisplayString(b.name),5)],12,io)}),256))])]))),256))])]),_:1})]),_:1}),e.createVNode(l,null,{label:e.withCtx(()=>[e.createVNode(e.unref(eo),{class:"left-icon"})]),default:e.withCtx(()=>[a[1]||(a[1]=e.createElementVNode("h1",{class:"catalog-title"},"Favorites",-1))]),_:1}),e.createVNode(l,null,{label:e.withCtx(()=>[e.createVNode(e.unref(no),{class:"left-icon"})]),default:e.withCtx(()=>[a[2]||(a[2]=e.createElementVNode("h1",{class:"catalog-title"},"Recently",-1))]),_:1})]),_:1})])}}}),[["__scopeId","data-v-ef746334"]]),nt={common:{header:{product:"Products",help:"Help",notification:"Notification",workbench:"Workbench",userCenter:"User Center",switchLanguage:"Languages",signOut:"Sign out"},table:{create:"Create",delete:"Delete",add:"Add",remove:"Remove",search:"Search",edit:"Edit",operation:"Operations",viewSelected:"View Selected",warning:"Warning",select:"Select"},basic:{cancel:"Cancel",confirm:"Confirm",createdTime:"Created Time",description:"Description",detail:"Details",more:"More",name:"Name",no:"No",save:"Save",summary:"Summary",type:"Type",updatedTime:"Updated Time",yes:"Yes"}}},rt={common:{header:{product:"产品",help:"帮助",notification:"通知",workbench:"工作台",userCenter:"用户中心",switchLanguage:"语言",signOut:"退出登录"},table:{create:"创建",delete:"删除",add:"添加",remove:"移除",search:"搜索",edit:"编辑",operation:"操作",viewSelected:"查看已选",warning:"风险提示",select:"选择"},basic:{cancel:"取消",confirm:"确认",createdTime:"创建时间",description:"描述",detail:"详情",more:"更多",name:"名称",no:"否",save:"保存",summary:"基本信息",type:"类型",updatedTime:"更新时间",yes:"是"}}},Se=fe.createI18n({legacy:!1,locale:localStorage.getItem("locale")||navigator.language.slice(0,2),messages:{en:nt,zh:rt}}),mo={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 32 32"};function uo(t,o){return e.openBlock(),e.createElementBlock("svg",mo,o[0]||(o[0]=[e.createElementVNode("path",{d:"M22.6 29.1h6.6v-6.6h-6.6m0-3.2h6.6v-6.6h-6.6m-9.9-3.3h6.6V2.9h-6.6m9.9 6.5h6.6V2.9h-6.6m-9.9 16.4h6.6v-6.6h-6.6m-9.8 6.6h6.6v-6.6H2.9m0 16.4h6.6v-6.6H2.9m9.8 6.6h6.6v-6.6h-6.6M2.9 9.4h6.6V2.9H2.9z"},null,-1)]))}const ho={render:uo},go={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200",class:"icon",viewBox:"0 0 1024 1024"};function _o(t,o){return e.openBlock(),e.createElementBlock("svg",go,o[0]||(o[0]=[e.createElementVNode("path",{d:"M651.404 284.363c-14.446-23.404-34.322-43.717-58.832-56.969A164.4 164.4 0 0 0 512 206.328a157.8 157.8 0 0 0-63.864 12.893 163.8 163.8 0 0 0-52.22 35.105c-14.77 14.405-26.455 32.338-35.04 51.895a164 164 0 0 0-12.829 63.958c0 15.233 6.615 28.88 15.993 39.036 10.063 9.363 23.72 15.988 38.92 15.988a56.73 56.73 0 0 0 38.528-15.988c10.134-10.155 16.747-23.803 16.747-39.036a54.8 54.8 0 0 1 3.918-21.066c3.126-6.232 6.614-12.495 11.643-17.17a60.4 60.4 0 0 1 17.143-11.703c6.614-2.304 14.053-4.646 21.061-4.646a53.95 53.95 0 0 1 38.167 16.35c18.652 18.364 21.384 49.946 7.759 71.803-5.47 7.779-12.83 13.685-19.443 19.915-19.874 16.78-39.748 33.96-55.31 62.045-15.598 27.258-25.733 65.537-25.733 122.47a55.76 55.76 0 0 0 16.352 39.035c9.38 9.758 23.36 15.591 38.204 15.591 15.167 0 29.578-5.833 38.921-15.591a55.6 55.6 0 0 0 16.354-39.036c0-32.769 5.067-53.803 13.228-68.635 8.59-14.873 18.687-24.198 28.822-32.806 9.74-8.57 19.048-16.383 27.638-25.35 8.158-8.966 15.992-18.69 22.21-30.825 5.462-9.327 9.344-21.03 12.435-34.318 7.008-29.276 7.008-63.197-2.3-92.47-4.313-13.647-10.136-27.69-17.899-39.394zM512 706.508a53.51 53.51 0 0 0-38.204 15.988 54.725 54.725 0 0 0 0 78.035A53.51 53.51 0 0 0 512 816.519c15.167 0 29.578-6.232 38.921-15.988a54.72 54.72 0 0 0 0-78.035c-9.343-9.758-23.754-15.988-38.921-15.988m350.046-543.104c-88.409-88.95-211.463-144.363-347.744-145.12-137.826-.792-260.887 54.627-351.194 144.365-89.598 89.7-144.835 213-144.835 348.757a528.6 528.6 0 0 0 10.099 100.288c7.008 31.581 16.352 63.597 28.788 92.47 37.808 90.493 102.03 165.394 180.305 218.113a493.11 493.11 0 0 0 623.435-61.29c90.315-89.34 144.798-213.035 144.798-349.585 0-135.362-54.483-258.228-143.649-348.001zm-137.86 668.742a383.537 383.537 0 0 1-565.784-170.902c-10.135-22.614-17.106-46.814-22.57-71.768-4.636-25.388-7.758-51.132-7.758-78.07a381.15 381.15 0 0 1 112.92-271.516c69.29-69.463 165.86-112.387 272.562-112.387a385.85 385.85 0 0 1 352.768 234.1 398 398 0 0 1 29.58 149.803 393.7 393.7 0 0 1-29.58 149.834 387.25 387.25 0 0 1-142.137 170.906"},null,-1)]))}const bo={render:_o},yo={xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200",class:"icon",viewBox:"0 0 1024 1024"};function wo(t,o){return e.openBlock(),e.createElementBlock("svg",yo,o[0]||(o[0]=[e.createElementVNode("path",{d:"M358.4 871.2H45.152C19.936 871.2 0 843.904 0 819.2s19.936-50.624 45.152-50.624h56.64l-1.088-283.168c0-204.608 164.032-374.56 337.056-412.576v-1.28C437.76 32.032 470.496 0 510.848 0s73.088 32.032 73.088 71.552v1.28C756.96 110.848 922.08 280.8 922.08 485.408v283.168h55.008c25.216 0 46.944 25.92 46.944 50.624s-21.696 52-46.944 52H665.632c-.416 84.48-69.024 152.8-153.6 152.8s-153.184-68.352-153.6-152.8zm102.4 0c.416 27.904 23.168 50.4 51.2 50.4s50.784-22.496 51.2-50.4zm357.216-103.328v-282.56c0-179.808-149.536-329.984-307.104-329.984S204.544 305.472 204.544 485.312v282.56z"},null,-1)]))}const ko={render:wo},Co={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 32 32"};function No(t,o){return e.openBlock(),e.createElementBlock("svg",Co,o[0]||(o[0]=[e.createElementVNode("path",{d:"M23.8 22.1H8.2c-2.5 0-4.5-2.1-4.5-4.5V7.9c0-2.5 2.1-4.5 4.5-4.5h15.6c2.5 0 4.5 2.1 4.5 4.5v9.7c0 2.4-2.1 4.5-4.5 4.5M16 23.2v5M8.3 28.9h15.4",style:{fill:"none","stroke-width":"3","stroke-miterlimit":"10"}},null,-1)]))}const Vo={render:No},Eo={class:"header"},So={class:"title"},xo={class:"right"},Bo={class:"icon-wrapper"},Oo={class:"user-wrapper"},$o={style:{"font-size":"11px","font-weight":"bold"}},Io={class:"user-popover-header"},Po={style:{"font-size":"15px","font-weight":"bold"}},Do=["onClick"],ze=J(e.defineComponent({__name:"Header",props:{title:{},helpDocUrl:{}},setup(t){const{t:o}=fe.useI18n(),n=e.ref(),r=e.ref(),a=e.ref(),s=e.ref(),i=e.ref(!1),l=t;e.ref(!1);const c=e.ref(""),f=e.ref(Se.global.locale),b=e.reactive([{id:"en",name:"English"},{id:"zh",name:"简体中文"}]);e.onMounted(()=>{c.value=decodeURIComponent(_("passport_username").replace(/\+/g," ")),c.value===""&&Ht().then(({data:D})=>{var E;D.code==0&&(c.value=(E=D.data.name)!=null?E:D.data.displayId)})});function _(D){for(var E=D+"=",j=document.cookie.split(";"),A=0;A<j.length;A++){for(var M=j[A];M.charAt(0)==" ";)M=M.substring(1);if(M.indexOf(E)!=-1)return M.substring(E.length,M.length)}return""}function S(){Jt().then(()=>{const D=escape(window.location.href);window.location.href=`//${tt()}/?from=${D}#login`})}function B(D){Se.global.locale.value=D,f.value=D,localStorage.setItem("locale",D)}function T(){window.open("https://passport.vancone.com/#/account/profile","_blank")}function $(){window.open(l.helpDocUrl,"_blank")}return(D,E)=>{const j=e.resolveComponent("el-popover"),A=e.resolveComponent("el-tooltip"),M=e.resolveComponent("el-avatar"),Q=e.resolveComponent("el-menu-item"),y=e.resolveComponent("el-icon"),h=e.resolveComponent("el-menu"),C=e.resolveComponent("el-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Eo,[e.createElementVNode("div",So,[e.createElementVNode("div",{ref_key:"appCatalogButtonRef",ref:s,class:"icon-wrapper",style:{"margin-left":"8px"}},[e.createVNode(e.unref(ho))],512),e.createElementVNode("h1",null,e.toDisplayString(D.title),1)]),e.createVNode(j,{class:"app-popover","virtual-ref":s.value,trigger:"click","show-arrow":!1,"popper-style":"width: 500px; height: 500px; padding: 0; inset: 49px auto auto 0px"},{default:e.withCtx(()=>[e.createVNode(fo,{visible:!0})]),_:1},8,["virtual-ref"]),e.createElementVNode("div",xo,[e.createVNode(A,{effect:"dark",content:e.unref(o)("common.header.workbench"),placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",Bo,[e.createVNode(e.unref(Vo))])]),_:1},8,["content"]),e.createVNode(A,{effect:"dark",content:e.unref(o)("common.header.help"),placement:"bottom"},{default:e.withCtx(()=>[l.helpDocUrl!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"icon-wrapper",onClick:$},[e.createVNode(e.unref(bo))])):e.createCommentVNode("",!0)]),_:1},8,["content"]),e.createVNode(A,{effect:"dark",content:e.unref(o)("common.header.notification"),placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"icon-wrapper",onClick:E[0]||(E[0]=V=>i.value=!0)},[e.createVNode(e.unref(ko))])]),_:1},8,["content"]),e.createElementVNode("div",Oo,[e.createVNode(M,{size:30,src:"",ref_key:"avatarRef",ref:n},{default:e.withCtx(()=>[e.createElementVNode("span",$o,e.toDisplayString(c.value.substring(0,2)),1)]),_:1},512),e.createVNode(j,{teleported:!1,width:"280",effect:"dark",ref_key:"popoverRef",ref:r,"virtual-ref":n.value,trigger:"hover","virtual-triggering":""},{default:e.withCtx(()=>[e.createElementVNode("div",Io,[e.createVNode(M,{size:48,src:""},{default:e.withCtx(()=>[e.createElementVNode("span",Po,e.toDisplayString(c.value.substring(0,2)),1)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(c.value),1)]),e.createVNode(h,{class:"user-menu"},{default:e.withCtx(()=>[e.createVNode(Q,{onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.header.userCenter")),1)]),_:1}),e.createVNode(Q,{ref_key:"switchLanguageRef",ref:a,style:{display:"flext","justify-content":"space-between"}},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("common.header.switchLanguage")),1),e.createVNode(y,{style:{left:"15px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ae.ArrowRight))]),_:1})]),_:1},512),e.createVNode(j,{teleported:!1,width:"150",effect:"dark",ref:"popover2Ref",placement:"left-start","virtual-ref":a.value,trigger:"hover","virtual-triggering":"","popper-style":"height: 80px; left: -165px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b,V=>(e.openBlock(),e.createElementBlock("div",{class:"select-list",onClick:p=>B(V.id)},[e.createElementVNode("span",null,e.toDisplayString(V.name),1),V.id===f.value?(e.openBlock(),e.createBlock(y,{key:0,style:{color:"#8ba74f"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ae.Check))]),_:1})):e.createCommentVNode("",!0)],8,Do))),256))]),_:1},8,["virtual-ref"]),e.createVNode(Q,{onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.header.signOut")),1)]),_:1})]),_:1})]),_:1},8,["virtual-ref"])])])]),e.createVNode(C,{modelValue:i.value,"onUpdate:modelValue":E[1]||(E[1]=V=>i.value=V),direction:"rtl",title:"Message Center"},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-6fc40dbc"]]),To={class:"menu-icon-wrapper",style:{"margin-left":"3px"}},Ao={class:"menu-icon-wrapper"},Mo=J(e.defineComponent({__name:"SideMenuItem",props:{menu:{}},setup(t){const o=t;return e.nextTick(()=>console.log("menu",o.menu)),(n,r)=>{const a=e.resolveComponent("SideMenuItem",!0),s=e.resolveComponent("el-sub-menu"),i=e.resolveComponent("el-menu-item");return n.menu.children&&n.menu.children.length>0?(e.openBlock(),e.createBlock(s,{key:0,index:n.menu.path},{title:e.withCtx(()=>{var l,c,f;return[e.createElementVNode("div",To,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=n.menu.meta)==null?void 0:l.icon),{class:"menu-icon"}))]),e.createElementVNode("span",null,e.toDisplayString(n.$t((f=(c=n.menu.meta)==null?void 0:c.title)!=null?f:"")),1)]}),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menu.children,l=>(e.openBlock(),e.createBlock(a,{key:l.path,route:l,menu:l},null,8,["route","menu"]))),128))]),_:1},8,["index"])):(e.openBlock(),e.createBlock(i,{key:1,index:o.menu.path,style:{height:"40px"}},{title:e.withCtx(()=>{var l,c;return[e.createElementVNode("span",null,e.toDisplayString(n.$t((c=(l=n.menu.meta)==null?void 0:l.title)!=null?c:"")),1)]}),default:e.withCtx(()=>{var l;return[e.createElementVNode("div",Ao,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=n.$props.menu.meta)==null?void 0:l.icon),{class:"menu-icon"}))])]}),_:1},8,["index"]))}}}),[["__scopeId","data-v-99da7c39"]]),ee=e.ref({}),at={},je=e.ref([]);var st=!1;function Pe(t,o,n){return Array.isArray(t)?(t.length=Math.max(t.length,o),t.splice(o,1,n),n):(t[o]=n,n)}function qe(t,o){if(Array.isArray(t)){t.splice(o,1);return}delete t[o]}function Uo(){return lt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function lt(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:{}}const Ro=typeof Proxy=="function",Fo="devtools-plugin:setup",Lo="plugin:settings:set";let Ce,He;function Go(){var t;return Ce!==void 0||(typeof window!="undefined"&&window.performance?(Ce=!0,He=window.performance):typeof globalThis!="undefined"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(Ce=!0,He=globalThis.perf_hooks.performance):Ce=!1),Ce}function zo(){return Go()?He.now():Date.now()}class jo{constructor(o,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=n;const r={};if(o.settings)for(const i in o.settings){const l=o.settings[i];r[i]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${o.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(a),l=JSON.parse(i);Object.assign(s,l)}catch(i){}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch(l){}s=i},now(){return zo()}},n&&n.on(Lo,(i,l)=>{i===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(i,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(f=>{this.targetQueue.push({method:l,args:c,resolve:f})})})}setRealTarget(o){return pe(this,null,function*(){this.target=o;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(yield this.target[n.method](...n.args))})}}function it(t,o){const n=t,r=lt(),a=Uo(),s=Ro&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))a.emit(Fo,t,o);else{const i=s?new jo(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:o,proxy:i}),i&&o(i.proxiedTarget)}}/*!
2
2
  * pinia v2.2.6
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let xe;const Be=t=>xe=t,ct=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function _e(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ce;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ce||(ce={}));const be=typeof window!="undefined",dt=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function qo(t,{autoBom:o=!1}={}){return o&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function Je(t,o,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){mt(r.response,o,n)},r.onerror=function(){console.error("could not download file")},r.send()}function pt(t){const o=new XMLHttpRequest;o.open("HEAD",t,!1);try{o.send()}catch(n){}return o.status>=200&&o.status<=299}function De(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(o){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const Te=typeof navigator=="object"?navigator:{userAgent:""},ft=/Macintosh/.test(Te.userAgent)&&/AppleWebKit/.test(Te.userAgent)&&!/Safari/.test(Te.userAgent),mt=be?typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype&&!ft?Ho:"msSaveOrOpenBlob"in Te?Jo:Wo:()=>{};function Ho(t,o="download",n){const r=document.createElement("a");r.download=o,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?pt(r.href)?Je(t,o,n):(r.target="_blank",De(r)):De(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){De(r)},0))}function Jo(t,o="download",n){if(typeof t=="string")if(pt(t))Je(t,o,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){De(r)})}else navigator.msSaveOrOpenBlob(qo(t,n),o)}function Wo(t,o,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Je(t,o,n);const a=t.type==="application/octet-stream",s=/constructor/i.test(String(dt.HTMLElement))||"safari"in dt,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||a&&s||ft)&&typeof FileReader!="undefined"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw r=null,new Error("Wrong reader.result type");c=i?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location.assign(c),r=null},l.readAsDataURL(t)}else{const l=URL.createObjectURL(t);r?r.location.assign(l):location.href=l,r=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function W(t,o){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,o):o==="error"?console.error(n):o==="warn"?console.warn(n):console.log(n)}function We(t){return"_a"in t&&"install"in t}function ut(){if(!("clipboard"in navigator))return W("Your browser doesn't support the Clipboard API","error"),!0}function ht(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(W('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}function Yo(t){return pe(this,null,function*(){if(!ut())try{yield navigator.clipboard.writeText(JSON.stringify(t.state.value)),W("Global state copied to clipboard.")}catch(o){if(ht(o))return;W("Failed to serialize the state. Check the console for more details.","error"),console.error(o)}})}function Qo(t){return pe(this,null,function*(){if(!ut())try{gt(t,JSON.parse(yield navigator.clipboard.readText())),W("Global state pasted from clipboard.")}catch(o){if(ht(o))return;W("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(o)}})}function Ko(t){return pe(this,null,function*(){try{mt(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(o){W("Failed to export the state as JSON. Check the console for more details.","error"),console.error(o)}})}let de;function Xo(){de||(de=document.createElement("input"),de.type="file",de.accept=".json");function t(){return new Promise((o,n)=>{de.onchange=()=>pe(this,null,function*(){const r=de.files;if(!r)return o(null);const a=r.item(0);return o(a?{text:yield a.text(),file:a}:null)}),de.oncancel=()=>o(null),de.onerror=n,de.click()})}return t}function Zo(t){return pe(this,null,function*(){try{const n=yield Xo()();if(!n)return;const{text:r,file:a}=n;gt(t,JSON.parse(r)),W(`Global state imported from "${a.name}".`)}catch(o){W("Failed to import the state from JSON. Check the console for more details.","error"),console.error(o)}})}function gt(t,o){for(const n in o){const r=t.state.value[n];r?Object.assign(r,o[n]):t.state.value[n]=o[n]}}function se(t){return{_custom:{display:t}}}const _t="🍍 Pinia (root)",Me="_root";function vo(t){return We(t)?{id:Me,label:_t}:{id:t.$id,label:t.$id}}function en(t){if(We(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(s=>({editable:!0,key:s,value:t.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((l,c)=>(l[c]=i[c],l),{})}})}}const o={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(o.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(o.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),o}function tn(t){return t?Array.isArray(t)?t.reduce((o,n)=>(o.keys.push(n.key),o.operations.push(n.type),o.oldValue[n.key]=n.oldValue,o.newValue[n.key]=n.newValue,o),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:se(t.type),key:se(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function on(t){switch(t){case ce.direct:return"mutation";case ce.patchFunction:return"$patch";case ce.patchObject:return"$patch";default:return"unknown"}}let Ne=!0;const Ae=[],ye="pinia:mutations",Y="pinia",{assign:nn}=Object,Ue=t=>"🍍 "+t;function rn(t,o){it({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ae,app:t},n=>{typeof n.now!="function"&&W("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:ye,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Y,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Yo(o)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:()=>pe(this,null,function*(){yield Qo(o),n.sendInspectorTree(Y),n.sendInspectorState(Y)}),tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Ko(o)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:()=>pe(this,null,function*(){yield Zo(o),n.sendInspectorTree(Y),n.sendInspectorState(Y)}),tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const a=o._s.get(r);a?typeof a.$reset!="function"?W(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(a.$reset(),W(`Store "${r}" reset.`)):W(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,a)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(l=>{r.instanceData.state.push({type:Ue(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:e.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((c,f)=>(c[f]=l.$state[f],c),{})}),l._getters&&l._getters.length&&r.instanceData.state.push({type:Ue(l.$id),key:"getters",editable:!1,value:l._getters.reduce((c,f)=>{try{c[f]=l[f]}catch(b){c[f]=b}return c},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===Y){let a=[o];a=a.concat(Array.from(o._s.values())),r.rootNodes=(r.filter?a.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):_t.toLowerCase().includes(r.filter.toLowerCase())):a).map(vo)}}),globalThis.$pinia=o,n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===Y){const a=r.nodeId===Me?o:o._s.get(r.nodeId);if(!a)return;a&&(r.nodeId!==Me&&(globalThis.$store=e.toRaw(a)),r.state=en(a))}}),n.on.editInspectorState((r,a)=>{if(r.app===t&&r.inspectorId===Y){const s=r.nodeId===Me?o:o._s.get(r.nodeId);if(!s)return W(`store "${r.nodeId}" not found`,"error");const{path:i}=r;We(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),Ne=!1,r.set(s,i,r.state.value),Ne=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const a=r.type.replace(/^🍍\s*/,""),s=o._s.get(a);if(!s)return W(`store "${a}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return W(`Invalid path for store "${a}":
5
+ */let xe;const Be=t=>xe=t,ct=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function _e(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ce;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ce||(ce={}));const be=typeof window!="undefined",dt=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function qo(t,{autoBom:o=!1}={}){return o&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function Je(t,o,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){mt(r.response,o,n)},r.onerror=function(){console.error("could not download file")},r.send()}function pt(t){const o=new XMLHttpRequest;o.open("HEAD",t,!1);try{o.send()}catch(n){}return o.status>=200&&o.status<=299}function De(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(o){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const Te=typeof navigator=="object"?navigator:{userAgent:""},ft=/Macintosh/.test(Te.userAgent)&&/AppleWebKit/.test(Te.userAgent)&&!/Safari/.test(Te.userAgent),mt=be?typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype&&!ft?Ho:"msSaveOrOpenBlob"in Te?Jo:Wo:()=>{};function Ho(t,o="download",n){const r=document.createElement("a");r.download=o,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?pt(r.href)?Je(t,o,n):(r.target="_blank",De(r)):De(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){De(r)},0))}function Jo(t,o="download",n){if(typeof t=="string")if(pt(t))Je(t,o,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){De(r)})}else navigator.msSaveOrOpenBlob(qo(t,n),o)}function Wo(t,o,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Je(t,o,n);const a=t.type==="application/octet-stream",s=/constructor/i.test(String(dt.HTMLElement))||"safari"in dt,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||a&&s||ft)&&typeof FileReader!="undefined"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw r=null,new Error("Wrong reader.result type");c=i?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location.assign(c),r=null},l.readAsDataURL(t)}else{const l=URL.createObjectURL(t);r?r.location.assign(l):location.href=l,r=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function W(t,o){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,o):o==="error"?console.error(n):o==="warn"?console.warn(n):console.log(n)}function We(t){return"_a"in t&&"install"in t}function ut(){if(!("clipboard"in navigator))return W("Your browser doesn't support the Clipboard API","error"),!0}function ht(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(W('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}function Yo(t){return pe(this,null,function*(){if(!ut())try{yield navigator.clipboard.writeText(JSON.stringify(t.state.value)),W("Global state copied to clipboard.")}catch(o){if(ht(o))return;W("Failed to serialize the state. Check the console for more details.","error"),console.error(o)}})}function Qo(t){return pe(this,null,function*(){if(!ut())try{gt(t,JSON.parse(yield navigator.clipboard.readText())),W("Global state pasted from clipboard.")}catch(o){if(ht(o))return;W("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(o)}})}function Ko(t){return pe(this,null,function*(){try{mt(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(o){W("Failed to export the state as JSON. Check the console for more details.","error"),console.error(o)}})}let de;function Xo(){de||(de=document.createElement("input"),de.type="file",de.accept=".json");function t(){return new Promise((o,n)=>{de.onchange=()=>pe(this,null,function*(){const r=de.files;if(!r)return o(null);const a=r.item(0);return o(a?{text:yield a.text(),file:a}:null)}),de.oncancel=()=>o(null),de.onerror=n,de.click()})}return t}function Zo(t){return pe(this,null,function*(){try{const n=yield Xo()();if(!n)return;const{text:r,file:a}=n;gt(t,JSON.parse(r)),W(`Global state imported from "${a.name}".`)}catch(o){W("Failed to import the state from JSON. Check the console for more details.","error"),console.error(o)}})}function gt(t,o){for(const n in o){const r=t.state.value[n];r?Object.assign(r,o[n]):t.state.value[n]=o[n]}}function se(t){return{_custom:{display:t}}}const _t="🍍 Pinia (root)",Ae="_root";function vo(t){return We(t)?{id:Ae,label:_t}:{id:t.$id,label:t.$id}}function en(t){if(We(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(s=>({editable:!0,key:s,value:t.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((l,c)=>(l[c]=i[c],l),{})}})}}const o={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(o.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(o.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),o}function tn(t){return t?Array.isArray(t)?t.reduce((o,n)=>(o.keys.push(n.key),o.operations.push(n.type),o.oldValue[n.key]=n.oldValue,o.newValue[n.key]=n.newValue,o),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:se(t.type),key:se(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function on(t){switch(t){case ce.direct:return"mutation";case ce.patchFunction:return"$patch";case ce.patchObject:return"$patch";default:return"unknown"}}let Ne=!0;const Me=[],ye="pinia:mutations",Y="pinia",{assign:nn}=Object,Ue=t=>"🍍 "+t;function rn(t,o){it({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Me,app:t},n=>{typeof n.now!="function"&&W("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:ye,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Y,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Yo(o)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:()=>pe(this,null,function*(){yield Qo(o),n.sendInspectorTree(Y),n.sendInspectorState(Y)}),tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Ko(o)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:()=>pe(this,null,function*(){yield Zo(o),n.sendInspectorTree(Y),n.sendInspectorState(Y)}),tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const a=o._s.get(r);a?typeof a.$reset!="function"?W(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(a.$reset(),W(`Store "${r}" reset.`)):W(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,a)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(l=>{r.instanceData.state.push({type:Ue(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:e.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((c,f)=>(c[f]=l.$state[f],c),{})}),l._getters&&l._getters.length&&r.instanceData.state.push({type:Ue(l.$id),key:"getters",editable:!1,value:l._getters.reduce((c,f)=>{try{c[f]=l[f]}catch(b){c[f]=b}return c},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===Y){let a=[o];a=a.concat(Array.from(o._s.values())),r.rootNodes=(r.filter?a.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):_t.toLowerCase().includes(r.filter.toLowerCase())):a).map(vo)}}),globalThis.$pinia=o,n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===Y){const a=r.nodeId===Ae?o:o._s.get(r.nodeId);if(!a)return;a&&(r.nodeId!==Ae&&(globalThis.$store=e.toRaw(a)),r.state=en(a))}}),n.on.editInspectorState((r,a)=>{if(r.app===t&&r.inspectorId===Y){const s=r.nodeId===Ae?o:o._s.get(r.nodeId);if(!s)return W(`store "${r.nodeId}" not found`,"error");const{path:i}=r;We(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),Ne=!1,r.set(s,i,r.state.value),Ne=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const a=r.type.replace(/^🍍\s*/,""),s=o._s.get(a);if(!s)return W(`store "${a}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return W(`Invalid path for store "${a}":
6
6
  ${i}
7
- Only state can be modified.`);i[0]="$state",Ne=!1,r.set(s,i,r.state.value),Ne=!0}})})}function an(t,o){Ae.includes(Ue(o.$id))||Ae.push(Ue(o.$id)),it({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ae,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;o.$onAction(({after:i,onError:l,name:c,args:f})=>{const b=bt++;n.addTimelineEvent({layerId:ye,event:{time:r(),title:"🛫 "+c,subtitle:"start",data:{store:se(o.$id),action:se(c),args:f},groupId:b}}),i(_=>{me=void 0,n.addTimelineEvent({layerId:ye,event:{time:r(),title:"🛬 "+c,subtitle:"end",data:{store:se(o.$id),action:se(c),args:f,result:_},groupId:b}})}),l(_=>{me=void 0,n.addTimelineEvent({layerId:ye,event:{time:r(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:se(o.$id),action:se(c),args:f,error:_},groupId:b}})})},!0),o._customProperties.forEach(i=>{e.watch(()=>e.unref(o[i]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(Y),Ne&&n.addTimelineEvent({layerId:ye,event:{time:r(),title:"Change",subtitle:i,data:{newValue:l,oldValue:c},groupId:me}})},{deep:!0})}),o.$subscribe(({events:i,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(Y),!Ne)return;const f={time:r(),title:on(l),data:nn({store:se(o.$id)},tn(i)),groupId:me};l===ce.patchFunction?f.subtitle="⤵️":l===ce.patchObject?f.subtitle="🧩":i&&!Array.isArray(i)&&(f.subtitle=i.type),i&&(f.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:ye,event:f})},{detached:!0,flush:"sync"});const a=o._hotUpdate;o._hotUpdate=e.markRaw(i=>{a(i),n.addTimelineEvent({layerId:ye,event:{time:r(),title:"🔥 "+o.$id,subtitle:"HMR update",data:{store:se(o.$id),info:se("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(Y),n.sendInspectorState(Y)});const{$dispose:s}=o;o.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(Y),n.sendInspectorState(Y),n.getSettings().logStoreChanges&&W(`Disposed "${o.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(Y),n.sendInspectorState(Y),n.getSettings().logStoreChanges&&W(`"${o.$id}" store installed 🆕`)})}let bt=0,me;function yt(t,o,n){const r=o.reduce((a,s)=>(a[s]=e.toRaw(t)[s],a),{});for(const a in r)t[a]=function(){const s=bt,i=n?new Proxy(t,{get(...c){return me=s,Reflect.get(...c)},set(...c){return me=s,Reflect.set(...c)}}):t;me=s;const l=r[a].apply(i,arguments);return me=void 0,l}}function sn({app:t,store:o,options:n}){if(!o.$id.startsWith("__hot:")){if(o._isOptionsAPI=!!n.state,!o._p._testing){yt(o,Object.keys(n.actions),o._isOptionsAPI);const r=o._hotUpdate;e.toRaw(o)._hotUpdate=function(a){r.apply(this,arguments),yt(o,Object.keys(a._hmrPayload.actions),!!o._isOptionsAPI)}}an(t,o)}}function ln(){const t=e.effectScope(!0),o=t.run(()=>e.ref({}));let n=[],r=[];const a=e.markRaw({install(s){Be(a),a._a=s,s.provide(ct,a),s.config.globalProperties.$pinia=a,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&be&&rn(s,a),r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!st?r.push(s):n.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:o});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof Proxy!="undefined"&&a.use(sn),a}function wt(t,o){for(const n in o){const r=o[n];if(!(n in t))continue;const a=t[n];_e(a)&&_e(r)&&!e.isRef(r)&&!e.isReactive(r)?t[n]=wt(a,r):t[n]=r}return t}const Ct=()=>{};function kt(t,o,n,r=Ct){t.push(o);const a=()=>{const s=t.indexOf(o);s>-1&&(t.splice(s,1),r())};return!n&&e.getCurrentScope()&&e.onScopeDispose(a),a}function Ve(t,...o){t.slice().forEach(n=>{n(...o)})}const cn=t=>t(),Nt=Symbol(),Ye=Symbol();function Qe(t,o){t instanceof Map&&o instanceof Map?o.forEach((n,r)=>t.set(r,n)):t instanceof Set&&o instanceof Set&&o.forEach(t.add,t);for(const n in o){if(!o.hasOwnProperty(n))continue;const r=o[n],a=t[n];_e(a)&&_e(r)&&t.hasOwnProperty(n)&&!e.isRef(r)&&!e.isReactive(r)?t[n]=Qe(a,r):t[n]=r}return t}const dn=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function pn(t){return!_e(t)||!t.hasOwnProperty(dn)}const{assign:ne}=Object;function Vt(t){return!!(e.isRef(t)&&t.effect)}function Et(t,o,n,r){const{state:a,actions:s,getters:i}=o,l=n.state.value[t];let c;function f(){!l&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[t]=a?a():{});const b=process.env.NODE_ENV!=="production"&&r?e.toRefs(e.ref(a?a():{}).value):e.toRefs(n.state.value[t]);return ne(b,s,Object.keys(i||{}).reduce((_,S)=>(process.env.NODE_ENV!=="production"&&S in b&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${S}" in store "${t}".`),_[S]=e.markRaw(e.computed(()=>{Be(n);const B=n._s.get(t);return i[S].call(B,B)})),_),{}))}return c=Ke(t,f,o,n,r,!0),c}function Ke(t,o,n={},r,a,s){let i;const l=ne({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&!st&&(c.onTrigger=p=>{f?B=p:f==!1&&!h._hotUpdating&&(Array.isArray(B)?B.push(p):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let f,b,_=[],S=[],B;const T=r.state.value[t];!s&&!T&&(process.env.NODE_ENV==="production"||!a)&&(r.state.value[t]={});const $=e.ref({});let D;function E(p){let d;f=b=!1,process.env.NODE_ENV!=="production"&&(B=[]),typeof p=="function"?(p(r.state.value[t]),d={type:ce.patchFunction,storeId:t,events:B}):(Qe(r.state.value[t],p),d={type:ce.patchObject,payload:p,storeId:t,events:B});const g=D=Symbol();e.nextTick().then(()=>{D===g&&(f=!0)}),b=!0,Ve(_,d,r.state.value[t])}const j=s?function(){const{state:d}=n,g=d?d():{};this.$patch(N=>{ne(N,g)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Ct;function M(){i.stop(),_=[],S=[],r._s.delete(t)}const A=(p,d="")=>{if(Nt in p)return p[Ye]=d,p;const g=function(){Be(r);const N=Array.from(arguments),I=[],U=[];function P(m){I.push(m)}function u(m){U.push(m)}Ve(S,{args:N,name:g[Ye],store:h,after:P,onError:u});let C;try{C=p.apply(this&&this.$id===t?this:h,N)}catch(m){throw Ve(U,m),m}return C instanceof Promise?C.then(m=>(Ve(I,m),m)).catch(m=>(Ve(U,m),Promise.reject(m))):(Ve(I,C),C)};return g[Nt]=!0,g[Ye]=d,g},Q=e.markRaw({actions:{},getters:{},state:[],hotState:$}),y={_p:r,$id:t,$onAction:kt.bind(null,S),$patch:E,$reset:j,$subscribe(p,d={}){const g=kt(_,p,d.detached,()=>N()),N=i.run(()=>e.watch(()=>r.state.value[t],I=>{(d.flush==="sync"?b:f)&&p({storeId:t,type:ce.direct,events:B},I)},ne({},c,d)));return g},$dispose:M},h=e.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&be?ne({_hmrPayload:Q,_customProperties:e.markRaw(new Set)},y):y);r._s.set(t,h);const V=(r._a&&r._a.runWithContext||cn)(()=>r._e.run(()=>(i=e.effectScope()).run(()=>o({action:A}))));for(const p in V){const d=V[p];if(e.isRef(d)&&!Vt(d)||e.isReactive(d))process.env.NODE_ENV!=="production"&&a?Pe($.value,p,e.toRef(V,p)):s||(T&&pn(d)&&(e.isRef(d)?d.value=T[p]:Qe(d,T[p])),r.state.value[t][p]=d),process.env.NODE_ENV!=="production"&&Q.state.push(p);else if(typeof d=="function"){const g=process.env.NODE_ENV!=="production"&&a?d:A(d,p);V[p]=g,process.env.NODE_ENV!=="production"&&(Q.actions[p]=d),l.actions[p]=d}else process.env.NODE_ENV!=="production"&&Vt(d)&&(Q.getters[p]=s?n.getters[p]:d,be&&(V._getters||(V._getters=e.markRaw([]))).push(p))}if(ne(h,V),ne(e.toRaw(h),V),Object.defineProperty(h,"$state",{get:()=>process.env.NODE_ENV!=="production"&&a?$.value:r.state.value[t],set:p=>{if(process.env.NODE_ENV!=="production"&&a)throw new Error("cannot set hotState");E(d=>{ne(d,p)})}}),process.env.NODE_ENV!=="production"&&(h._hotUpdate=e.markRaw(p=>{h._hotUpdating=!0,p._hmrPayload.state.forEach(d=>{if(d in h.$state){const g=p.$state[d],N=h.$state[d];typeof g=="object"&&_e(g)&&_e(N)?wt(g,N):p.$state[d]=N}Pe(h,d,e.toRef(p.$state,d))}),Object.keys(h.$state).forEach(d=>{d in p.$state||qe(h,d)}),f=!1,b=!1,r.state.value[t]=e.toRef(p._hmrPayload,"hotState"),b=!0,e.nextTick().then(()=>{f=!0});for(const d in p._hmrPayload.actions){const g=p[d];Pe(h,d,A(g,d))}for(const d in p._hmrPayload.getters){const g=p._hmrPayload.getters[d],N=s?e.computed(()=>(Be(r),g.call(h,h))):g;Pe(h,d,N)}Object.keys(h._hmrPayload.getters).forEach(d=>{d in p._hmrPayload.getters||qe(h,d)}),Object.keys(h._hmrPayload.actions).forEach(d=>{d in p._hmrPayload.actions||qe(h,d)}),h._hmrPayload=p._hmrPayload,h._getters=p._getters,h._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&be){const p={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(d=>{Object.defineProperty(h,d,ne({value:h[d]},p))})}return r._p.forEach(p=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&be){const d=i.run(()=>p({store:h,app:r._a,pinia:r,options:l}));Object.keys(d||{}).forEach(g=>h._customProperties.add(g)),ne(h,d)}else ne(h,i.run(()=>p({store:h,app:r._a,pinia:r,options:l})))}),process.env.NODE_ENV!=="production"&&h.$state&&typeof h.$state=="object"&&typeof h.$state.constructor=="function"&&!h.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
7
+ Only state can be modified.`);i[0]="$state",Ne=!1,r.set(s,i,r.state.value),Ne=!0}})})}function an(t,o){Me.includes(Ue(o.$id))||Me.push(Ue(o.$id)),it({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Me,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;o.$onAction(({after:i,onError:l,name:c,args:f})=>{const b=bt++;n.addTimelineEvent({layerId:ye,event:{time:r(),title:"🛫 "+c,subtitle:"start",data:{store:se(o.$id),action:se(c),args:f},groupId:b}}),i(_=>{me=void 0,n.addTimelineEvent({layerId:ye,event:{time:r(),title:"🛬 "+c,subtitle:"end",data:{store:se(o.$id),action:se(c),args:f,result:_},groupId:b}})}),l(_=>{me=void 0,n.addTimelineEvent({layerId:ye,event:{time:r(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:se(o.$id),action:se(c),args:f,error:_},groupId:b}})})},!0),o._customProperties.forEach(i=>{e.watch(()=>e.unref(o[i]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(Y),Ne&&n.addTimelineEvent({layerId:ye,event:{time:r(),title:"Change",subtitle:i,data:{newValue:l,oldValue:c},groupId:me}})},{deep:!0})}),o.$subscribe(({events:i,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(Y),!Ne)return;const f={time:r(),title:on(l),data:nn({store:se(o.$id)},tn(i)),groupId:me};l===ce.patchFunction?f.subtitle="⤵️":l===ce.patchObject?f.subtitle="🧩":i&&!Array.isArray(i)&&(f.subtitle=i.type),i&&(f.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:ye,event:f})},{detached:!0,flush:"sync"});const a=o._hotUpdate;o._hotUpdate=e.markRaw(i=>{a(i),n.addTimelineEvent({layerId:ye,event:{time:r(),title:"🔥 "+o.$id,subtitle:"HMR update",data:{store:se(o.$id),info:se("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(Y),n.sendInspectorState(Y)});const{$dispose:s}=o;o.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(Y),n.sendInspectorState(Y),n.getSettings().logStoreChanges&&W(`Disposed "${o.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(Y),n.sendInspectorState(Y),n.getSettings().logStoreChanges&&W(`"${o.$id}" store installed 🆕`)})}let bt=0,me;function yt(t,o,n){const r=o.reduce((a,s)=>(a[s]=e.toRaw(t)[s],a),{});for(const a in r)t[a]=function(){const s=bt,i=n?new Proxy(t,{get(...c){return me=s,Reflect.get(...c)},set(...c){return me=s,Reflect.set(...c)}}):t;me=s;const l=r[a].apply(i,arguments);return me=void 0,l}}function sn({app:t,store:o,options:n}){if(!o.$id.startsWith("__hot:")){if(o._isOptionsAPI=!!n.state,!o._p._testing){yt(o,Object.keys(n.actions),o._isOptionsAPI);const r=o._hotUpdate;e.toRaw(o)._hotUpdate=function(a){r.apply(this,arguments),yt(o,Object.keys(a._hmrPayload.actions),!!o._isOptionsAPI)}}an(t,o)}}function ln(){const t=e.effectScope(!0),o=t.run(()=>e.ref({}));let n=[],r=[];const a=e.markRaw({install(s){Be(a),a._a=s,s.provide(ct,a),s.config.globalProperties.$pinia=a,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&be&&rn(s,a),r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!st?r.push(s):n.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:o});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof Proxy!="undefined"&&a.use(sn),a}function wt(t,o){for(const n in o){const r=o[n];if(!(n in t))continue;const a=t[n];_e(a)&&_e(r)&&!e.isRef(r)&&!e.isReactive(r)?t[n]=wt(a,r):t[n]=r}return t}const kt=()=>{};function Ct(t,o,n,r=kt){t.push(o);const a=()=>{const s=t.indexOf(o);s>-1&&(t.splice(s,1),r())};return!n&&e.getCurrentScope()&&e.onScopeDispose(a),a}function Ve(t,...o){t.slice().forEach(n=>{n(...o)})}const cn=t=>t(),Nt=Symbol(),Ye=Symbol();function Qe(t,o){t instanceof Map&&o instanceof Map?o.forEach((n,r)=>t.set(r,n)):t instanceof Set&&o instanceof Set&&o.forEach(t.add,t);for(const n in o){if(!o.hasOwnProperty(n))continue;const r=o[n],a=t[n];_e(a)&&_e(r)&&t.hasOwnProperty(n)&&!e.isRef(r)&&!e.isReactive(r)?t[n]=Qe(a,r):t[n]=r}return t}const dn=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function pn(t){return!_e(t)||!t.hasOwnProperty(dn)}const{assign:ne}=Object;function Vt(t){return!!(e.isRef(t)&&t.effect)}function Et(t,o,n,r){const{state:a,actions:s,getters:i}=o,l=n.state.value[t];let c;function f(){!l&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[t]=a?a():{});const b=process.env.NODE_ENV!=="production"&&r?e.toRefs(e.ref(a?a():{}).value):e.toRefs(n.state.value[t]);return ne(b,s,Object.keys(i||{}).reduce((_,S)=>(process.env.NODE_ENV!=="production"&&S in b&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${S}" in store "${t}".`),_[S]=e.markRaw(e.computed(()=>{Be(n);const B=n._s.get(t);return i[S].call(B,B)})),_),{}))}return c=Ke(t,f,o,n,r,!0),c}function Ke(t,o,n={},r,a,s){let i;const l=ne({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&!st&&(c.onTrigger=p=>{f?B=p:f==!1&&!h._hotUpdating&&(Array.isArray(B)?B.push(p):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let f,b,_=[],S=[],B;const T=r.state.value[t];!s&&!T&&(process.env.NODE_ENV==="production"||!a)&&(r.state.value[t]={});const $=e.ref({});let D;function E(p){let d;f=b=!1,process.env.NODE_ENV!=="production"&&(B=[]),typeof p=="function"?(p(r.state.value[t]),d={type:ce.patchFunction,storeId:t,events:B}):(Qe(r.state.value[t],p),d={type:ce.patchObject,payload:p,storeId:t,events:B});const g=D=Symbol();e.nextTick().then(()=>{D===g&&(f=!0)}),b=!0,Ve(_,d,r.state.value[t])}const j=s?function(){const{state:d}=n,g=d?d():{};this.$patch(N=>{ne(N,g)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:kt;function A(){i.stop(),_=[],S=[],r._s.delete(t)}const M=(p,d="")=>{if(Nt in p)return p[Ye]=d,p;const g=function(){Be(r);const N=Array.from(arguments),I=[],U=[];function P(m){I.push(m)}function u(m){U.push(m)}Ve(S,{args:N,name:g[Ye],store:h,after:P,onError:u});let k;try{k=p.apply(this&&this.$id===t?this:h,N)}catch(m){throw Ve(U,m),m}return k instanceof Promise?k.then(m=>(Ve(I,m),m)).catch(m=>(Ve(U,m),Promise.reject(m))):(Ve(I,k),k)};return g[Nt]=!0,g[Ye]=d,g},Q=e.markRaw({actions:{},getters:{},state:[],hotState:$}),y={_p:r,$id:t,$onAction:Ct.bind(null,S),$patch:E,$reset:j,$subscribe(p,d={}){const g=Ct(_,p,d.detached,()=>N()),N=i.run(()=>e.watch(()=>r.state.value[t],I=>{(d.flush==="sync"?b:f)&&p({storeId:t,type:ce.direct,events:B},I)},ne({},c,d)));return g},$dispose:A},h=e.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&be?ne({_hmrPayload:Q,_customProperties:e.markRaw(new Set)},y):y);r._s.set(t,h);const V=(r._a&&r._a.runWithContext||cn)(()=>r._e.run(()=>(i=e.effectScope()).run(()=>o({action:M}))));for(const p in V){const d=V[p];if(e.isRef(d)&&!Vt(d)||e.isReactive(d))process.env.NODE_ENV!=="production"&&a?Pe($.value,p,e.toRef(V,p)):s||(T&&pn(d)&&(e.isRef(d)?d.value=T[p]:Qe(d,T[p])),r.state.value[t][p]=d),process.env.NODE_ENV!=="production"&&Q.state.push(p);else if(typeof d=="function"){const g=process.env.NODE_ENV!=="production"&&a?d:M(d,p);V[p]=g,process.env.NODE_ENV!=="production"&&(Q.actions[p]=d),l.actions[p]=d}else process.env.NODE_ENV!=="production"&&Vt(d)&&(Q.getters[p]=s?n.getters[p]:d,be&&(V._getters||(V._getters=e.markRaw([]))).push(p))}if(ne(h,V),ne(e.toRaw(h),V),Object.defineProperty(h,"$state",{get:()=>process.env.NODE_ENV!=="production"&&a?$.value:r.state.value[t],set:p=>{if(process.env.NODE_ENV!=="production"&&a)throw new Error("cannot set hotState");E(d=>{ne(d,p)})}}),process.env.NODE_ENV!=="production"&&(h._hotUpdate=e.markRaw(p=>{h._hotUpdating=!0,p._hmrPayload.state.forEach(d=>{if(d in h.$state){const g=p.$state[d],N=h.$state[d];typeof g=="object"&&_e(g)&&_e(N)?wt(g,N):p.$state[d]=N}Pe(h,d,e.toRef(p.$state,d))}),Object.keys(h.$state).forEach(d=>{d in p.$state||qe(h,d)}),f=!1,b=!1,r.state.value[t]=e.toRef(p._hmrPayload,"hotState"),b=!0,e.nextTick().then(()=>{f=!0});for(const d in p._hmrPayload.actions){const g=p[d];Pe(h,d,M(g,d))}for(const d in p._hmrPayload.getters){const g=p._hmrPayload.getters[d],N=s?e.computed(()=>(Be(r),g.call(h,h))):g;Pe(h,d,N)}Object.keys(h._hmrPayload.getters).forEach(d=>{d in p._hmrPayload.getters||qe(h,d)}),Object.keys(h._hmrPayload.actions).forEach(d=>{d in p._hmrPayload.actions||qe(h,d)}),h._hmrPayload=p._hmrPayload,h._getters=p._getters,h._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&be){const p={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(d=>{Object.defineProperty(h,d,ne({value:h[d]},p))})}return r._p.forEach(p=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&be){const d=i.run(()=>p({store:h,app:r._a,pinia:r,options:l}));Object.keys(d||{}).forEach(g=>h._customProperties.add(g)),ne(h,d)}else ne(h,i.run(()=>p({store:h,app:r._a,pinia:r,options:l})))}),process.env.NODE_ENV!=="production"&&h.$state&&typeof h.$state=="object"&&typeof h.$state.constructor=="function"&&!h.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
8
8
  state: () => new MyClass()
9
9
  Found in store "${h.$id}".`),T&&s&&n.hydrate&&n.hydrate(h.$state,T),f=!0,b=!0,h}/*! #__NO_SIDE_EFFECTS__ */function fn(t,o,n){let r,a;const s=typeof o=="function";r=t,a=s?n:o;function i(l,c){const f=e.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&xe&&xe._testing?null:l)||(f?e.inject(ct,null):null),l&&Be(l),process.env.NODE_ENV!=="production"&&!xe)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
10
10
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
11
- This will fail in production.`);l=xe,l._s.has(r)||(s?Ke(r,o,a,l):Et(r,a,l),process.env.NODE_ENV!=="production"&&(i._pinia=l));const b=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const _="__hot:"+r,S=s?Ke(_,o,a,l,!0):Et(_,ne({},a),l,!0);c._hotUpdate(S),delete l.state.value[_],l._s.delete(_)}if(process.env.NODE_ENV!=="production"&&be){const _=e.getCurrentInstance();if(_&&_.proxy&&!c){const S=_.proxy,B="_pStores"in S?S._pStores:S._pStores={};B[r]=b}}return b}return i.$id=r,i}const mn=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,un=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,hn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function gn(t,o){if(t==="__proto__"||t==="constructor"&&o&&typeof o=="object"&&"prototype"in o){_n(t);return}return o}function _n(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function bn(t,o={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!hn.test(t)){if(o.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(mn.test(t)||un.test(t)){if(o.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,gn)}return JSON.parse(t)}catch(r){if(o.strict)throw r;return t}}function yn(t,o){if(t==null)return;let n=t;for(let r=0;r<o.length;r++){if(n==null||n[o[r]]==null)return;n=n[o[r]]}return n}function Xe(t,o,n){if(n.length===0)return o;const r=n[0];return n.length>1&&(o=Xe(typeof t!="object"||t===null||!Object.prototype.hasOwnProperty.call(t,r)?Number.isInteger(Number(n[1]))?[]:{}:t[r],o,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(t)?t.slice()[r]:Object.assign({},t,{[r]:o})}function St(t,o){if(t==null||o.length===0)return t;if(o.length===1){if(t==null)return t;if(Number.isInteger(o[0])&&Array.isArray(t))return Array.prototype.slice.call(t,0).splice(o[0],1);const n={};for(const r in t)n[r]=t[r];return delete n[o[0]],n}if(t[o[0]]==null){if(Number.isInteger(o[0])&&Array.isArray(t))return Array.prototype.concat.call([],t);const n={};for(const r in t)n[r]=t[r];return n}return Xe(t,St(t[o[0]],Array.prototype.slice.call(o,1)),[o[0]])}function xt(t,o){return o.map(n=>n.split(".")).map(n=>[n,yn(t,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>Xe(n,r[1],r[0]),{})}function Bt(t,o){return o.map(n=>n.split(".")).reduce((n,r)=>St(n,r),t)}function Ot(t,{storage:o,serializer:n,key:r,debug:a,pick:s,omit:i,beforeHydrate:l,afterHydrate:c},f,b=!0){try{b&&(l==null||l(f));const _=o.getItem(r);if(_){const S=n.deserialize(_),B=s?xt(S,s):S,T=i?Bt(B,i):B;t.$patch(T)}b&&(c==null||c(f))}catch(_){a&&console.error("[pinia-plugin-persistedstate]",_)}}function $t(t,{storage:o,serializer:n,key:r,debug:a,pick:s,omit:i}){try{const l=s?xt(t,s):t,c=i?Bt(l,i):l,f=n.serialize(c);o.setItem(r,f)}catch(l){a&&console.error("[pinia-plugin-persistedstate]",l)}}function wn(t,o,n){const{pinia:r,store:a,options:{persist:s=n}}=t;if(!s)return;if(!(a.$id in r.state.value)){const c=r._s.get(a.$id.replace("__hot:",""));c&&Promise.resolve().then(()=>c.$persist());return}const l=(Array.isArray(s)?s:s===!0?[{}]:[s]).map(o);a.$hydrate=({runHooks:c=!0}={})=>{l.forEach(f=>{Ot(a,f,t,c)})},a.$persist=()=>{l.forEach(c=>{$t(a.$state,c)})},l.forEach(c=>{Ot(a,c,t),a.$subscribe((f,b)=>$t(b,c),{detached:!0})})}function Cn(t={}){return function(o){var n;wn(o,r=>{var a,s,i,l,c,f,b;return{key:(t.key?t.key:_=>_)((a=r.key)!=null?a:o.store.$id),debug:(i=(s=r.debug)!=null?s:t.debug)!=null?i:!1,serializer:(c=(l=r.serializer)!=null?l:t.serializer)!=null?c:{serialize:_=>JSON.stringify(_),deserialize:_=>bn(_)},storage:(b=(f=r.storage)!=null?f:t.storage)!=null?b:window.localStorage,beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}},(n=t.auto)!=null?n:!1)}}var kn=Cn();const Re=ln();Re.use(kn);const It=fn("console",{state:()=>({menu:{collapsed:!0}}),persist:!0}),Nn={key:0,class:"menu-wrapper"},Ze=J(e.defineComponent({__name:"SideMenu",props:{menuCollapsed:{type:Boolean}},emits:["update:menuCollapsed"],setup(t,{emit:o}){It(Re);const n=z.useRoute(),r=e.computed(()=>{var s;const a=n.meta.activeMenu;if(a==="{model}"){let i=n.params.app?`${n.params.app}/${n.params.model}`:n.params.model;return"/"+((s=at[n.params.model])!=null?s:i)}else return a});return(a,s)=>{const i=e.resolveComponent("el-menu");return e.unref(je).length>0?(e.openBlock(),e.createElementBlock("div",Nn,[e.createVNode(i,{class:"menu","default-active":r.value,router:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(je),l=>(e.openBlock(),e.createBlock(Ao,{key:l.path,menu:l},null,8,["menu"]))),128))]),_:1},8,["default-active"])])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-c70ca2ba"]]),Vn={class:"container"},Pt=e.defineComponent({__name:"ConsoleApp",props:{title:{},helpDocUrl:{}},setup(t){const o=It(Re),n=z.useRoute(),r=e.ref(o.menu.collapsed),a=e.ref(),s=t;return(i,l)=>{const c=e.resolveComponent("router-view"),f=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(n).query.embedded!=="true"?(e.openBlock(),e.createBlock(ze,{key:0,title:s.title,helpDocUrl:s.helpDocUrl},null,8,["title","helpDocUrl"])):e.createCommentVNode("",!0),e.createElementVNode("div",Vn,[e.unref(n).query.embedded!=="true"?(e.openBlock(),e.createBlock(Ze,{key:0,menuCollapsed:r.value,"onUpdate:menuCollapsed":l[0]||(l[0]=b=>r.value=b)},null,8,["menuCollapsed"])):e.createCommentVNode("",!0),e.createVNode(f,{class:"main-scrollbar"},{default:e.withCtx(()=>[e.createElementVNode("main",{ref_key:"mainWrapperRef",ref:a,class:"main-wrapper"},[e.createVNode(c)],512)]),_:1})])],64)}}}),En={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800"};function Sn(t,o){return e.openBlock(),e.createElementBlock("svg",En,o[0]||(o[0]=[e.createStaticVNode('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>',33)]))}const xn={render:Sn},Bn={},On={class:"wrapper"},$n={class:"content"};function In(t,o){const n=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",On,[o[4]||(o[4]=e.createElementVNode("img",{src:xn},null,-1)),e.createElementVNode("div",$n,[o[3]||(o[3]=e.createElementVNode("h1",null,"You have no permission to access the page.",-1)),e.createVNode(n,{type:"primary"},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("Apply")])),_:1}),e.createVNode(n,{onClick:o[0]||(o[0]=r=>t.$router.go(-1))},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode("Go Back")])),_:1})])])}const Dt=J(Bn,[["render",In],["__scopeId","data-v-0155b361"]]),Pn={};function Dn(t,o){const n=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(n)}const Tt=J(Pn,[["render",Dn]]),Tn={class:"card-wrapper"},Mn=["onClick"],An={class:"card-inner-wrapper"},Un={class:"card-title"},Rn={class:"icon"},ve=J(e.defineComponent({__name:"TabCard",props:{cards:{},tableRef:{}},setup(t){const{t:o}=fe.useI18n(),n=z.useRoute(),r=z.useRouter(),a=t,s=e.ref(a.cards[0].key);function i(l){l.disabled||(s.value=l.key,a.tableRef.updateConfigAndRefresh(l.model),r.push({path:n.path,query:zt(Le({},n.query),{tab:l.key})}))}return e.onMounted(()=>{let l;if(n.query.tab!==void 0){for(let c of a.cards)if(c.key===n.query.tab){s.value=c.key,l=c;break}}e.nextTick(()=>{a.tableRef&&a.cards&&a.cards.length>0&&a.tableRef.updateConfigAndRefresh((l!=null?l:a.cards[0]).model)})}),e.watch(()=>a.cards,l=>{if(n.query.tab!==void 0){for(let c of a.cards)if(c.key===n.query.tab){s.value=c.key;break}}else l&&l.length>0&&(s.value=l[0].key,a.tableRef.updateConfigAndRefresh(a.cards[0].model))},{deep:!0}),(l,c)=>(e.openBlock(),e.createElementBlock("div",Tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.cards,f=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card",{"card-selected":s.value===f.key}]),onClick:b=>i(f)},[e.createElementVNode("div",An,[e.createElementVNode("div",Un,[e.createElementVNode("div",Rn,[f.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.icon),{key:0,class:"svg-icon"})):e.createCommentVNode("",!0)]),e.createElementVNode("span",{style:e.normalizeStyle({color:f.disabled?"#aaa":"black"})},e.toDisplayString(e.unref(o)(f.label)),5)]),e.createElementVNode("span",null,e.toDisplayString(f.count),1)])],10,Mn))),256))]))}}),[["__scopeId","data-v-047a86e6"]]);function ue(t,o,n){switch(o){case"POST":return oe.post(t,n);case"PUT":return oe.put(t,n);case"DELETE":return oe.delete(t+"/"+n);default:return oe.get(t,{params:n})}}const Oe=t=>{const o=Object.keys(t);let n={};o.forEach(r=>{n[r]=void 0}),Object.assign(t,n)},Fn={key:1,class:"view-span"},Mt=J(e.defineComponent({__name:"FormView",props:{id:{},sessionId:{},mode:{},model:{},disableInline:{type:Boolean},closeDialogFunc:{type:Function},afterSubmitFunc:{type:Function}},emits:["update:id"],setup(t,{expose:o,emit:n}){const{t:r}=Se.global,a=t,s=e.reactive({}),i=e.ref(!1),l=e.ref(),c=e.reactive({}),f=e.ref(!0),b=y=>a.mode==="view"&&(A(y,void 0)||A(y,"input")||A(y,"select")||A(y,"password")||A(y,"input-number")),_=e.computed(()=>a.model.fields?a.model.fields.filter(y=>{var V,p,d,g;let h=y.visible!==!1&&((V=y.formItemAttributes)==null?void 0:V.visible)!==!1;if(a.mode!=="view"&&((p=y.formItemAttributes)==null?void 0:p.editable)===!1||a.mode==="view"&&((d=y.formItemAttributes)==null?void 0:d.type)==="password")return!1;let k=(g=y.formItemAttributes)==null?void 0:g.showCondition;return k&&k.field&&k.value!==void 0?s[k.field]===k.value:h}):[]);e.watch([()=>a.id,()=>a.sessionId],()=>{console.log("form-view watch executed",a.id,a.sessionId),B()});function S(){console.log("form-view initFormFields executed");const y=a.model.fields;let h={};y==null||y.forEach(k=>{var V,p,d,g,N,I,U,P,u;if(s[k.prop]=null,k.visible!==!1&&((V=k.formItemAttributes)==null?void 0:V.visible)!==!1){if(((p=k.formItemAttributes)==null?void 0:p.defaultValue)!==void 0?s[k.prop]=(d=k.formItemAttributes)==null?void 0:d.defaultValue:s[k.prop]=void 0,a.mode!=="view"){let G=(g=k.formItemAttributes)==null?void 0:g.validationRule;G!==void 0&&(h[k.prop]=G),Object.assign(c,h)}const C=k.formItemAttributes,m=C==null?void 0:C.type,w=(N=C==null?void 0:C.selectAttributes)==null?void 0:N.api,O=(I=C==null?void 0:C.selectAttributes)==null?void 0:I.valueMappingField,q=(U=C==null?void 0:C.selectAttributes)==null?void 0:U.labelMappingField;if(m==="select"&&w){let G=w;const K=(P=C==null?void 0:C.selectAttributes)==null?void 0:P.queryParamName,v=(u=C==null?void 0:C.selectAttributes)==null?void 0:u.queryParamValueField;K&&(G=`${G}?${K}=${a.id}`),v||ue(G,"GET",{}).then(({data:X})=>{var Z;if((Z=k.formItemAttributes)!=null&&Z.selectAttributes){let H=[];Array.isArray(X.data)?H=X.data:X.data.list&&Array.isArray(X.data.list)&&(H=X.data.list),k.formItemAttributes.selectAttributes.options=H.map(F=>({value:O?F[O]:F.value,label:q?F[q]:F.label}))}})}}})}function B(){var y;console.log("form-view refresh executed",a.id,a.model),$(),f.value=(y=a.model.useI18n)!=null?y:!0,S(),(a.mode==="update"||a.mode==="view")&&a.id!==void 0&&a.id!==""&&a.model.api!==""&&(i.value=!0,ue(`${a.model.api}/${a.id}`,"GET",{}).then(({data:h})=>{Oe(s),Object.assign(s,h.data),i.value=!1}))}function T(){return new Promise((y,h)=>{var V,p,d,g;((p=(V=a.model.formConfig)==null?void 0:V.functions)==null?void 0:p.beforeSubmit)!==void 0&&Object.assign(s,(g=(d=a.model.formConfig)==null?void 0:d.functions)==null?void 0:g.beforeSubmit(s));let k=a.mode==="create"?"POST":"PUT";a.model.api&&ue(a.model.api,k,s).then(({data:N})=>{var I,U,P,u;N.code===0&&(a.closeDialogFunc&&a.closeDialogFunc(),((U=(I=a.model.formConfig)==null?void 0:I.functions)==null?void 0:U.afterSubmit)!==void 0&&((u=(P=a.model.formConfig)==null?void 0:P.functions)==null||u.afterSubmit(N.data)),a.afterSubmitFunc&&a.afterSubmitFunc(),y())})})}function $(){var y;console.log("form-view reset executed"),(y=l.value)==null||y.resetFields()}function D(y){return y.label?f?r(y.label):y.label:y.prop.slice(0,1).toUpperCase()+y.prop.slice(1).toLowerCase()}function E(y){var h,k,V,p;if(y){if(A(y,"select")){const d=(k=(h=y.tableColumnAttributes)==null?void 0:h.functions)==null?void 0:k.transformValue;if(d)return d(s[y.prop]);const g=(p=(V=y.formItemAttributes)==null?void 0:V.selectAttributes)==null?void 0:p.viewModeLabelField;if(g)return s[g]}return s[y.prop]}}function j(y){var h;return((h=y.formItemAttributes)==null?void 0:h.updatable)===!1&&a.mode==="update"}function M(y,h){var V,p;const k=(p=(V=h.formItemAttributes)==null?void 0:V.type)!=null?p:"input";switch(y){case"input":return a.mode==="view"?!1:k==="input"||k==="password";case"select":return!0;default:return console.log("Error: unrecognized form component type: ",y),!0}}function A(y,h){var k;return((k=y.formItemAttributes)==null?void 0:k.type)===h}function Q(y){var h;for(let k of a.model.fields){const V=(h=k.formItemAttributes)==null?void 0:h.selectAttributes;if(!(!k.formItemAttributes||k.formItemAttributes.type!=="select"||!V||!V.queryParamValueField)&&V.queryParamValueField===y.prop){const p=V.api;if(p){let d=p;const g=V.queryParamName;g&&(d=`${d}?${g}=${s[V.queryParamValueField]}`),ue(d,"GET",{}).then(({data:N})=>{if(V){let I=[];Array.isArray(N.data)?I=N.data:N.data.list&&Array.isArray(N.data.list)&&(I=N.data.list),V.options=I.map(U=>({value:V.valueMappingField?U[V.valueMappingField]:U.value,label:V.labelMappingField?U[V.labelMappingField]:U.label}))}})}}}}return e.onMounted(()=>{B()}),o({refresh:B,reset:$,submit:T,formData:s}),(y,h)=>{const k=e.resolveComponent("el-input"),V=e.resolveComponent("el-switch"),p=e.resolveComponent("el-date-picker"),d=e.resolveComponent("el-option"),g=e.resolveComponent("el-select"),N=e.resolveComponent("el-input-number"),I=e.resolveComponent("el-form-item"),U=e.resolveComponent("el-form"),P=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createBlock(U,{ref_key:"formRef",ref:l,model:s,rules:c,"label-width":"auto","label-position":"left","require-asterisk-position":"right",inline:!a.disableInline},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,u=>(e.openBlock(),e.createBlock(I,{class:"form-item",style:e.normalizeStyle({width:a.disableInline?"100%":"calc(50% - 32px)"}),prop:u.prop,label:D(u)},{default:e.withCtx(()=>{var C,m,w,O,q,G,K,v,X,Z,H,F,te,re,he,Fe;return[M("input",u)?(e.openBlock(),e.createBlock(k,{key:0,type:A(u,"password")?"password":"text",modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L,placeholder:(C=u.formItemAttributes)==null?void 0:C.placeholder,disabled:j(u)},null,8,["type","modelValue","onUpdate:modelValue","placeholder","disabled"])):e.createCommentVNode("",!0),b(u)?(e.openBlock(),e.createElementBlock("span",Fn,e.toDisplayString(E(u)),1)):e.createCommentVNode("",!0),A(u,"switch")?(e.openBlock(),e.createBlock(V,{key:2,modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L,disabled:y.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),A(u,"datepicker")?(e.openBlock(),e.createBlock(p,{key:3,type:"date",modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L},null,8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),A(u,"select")&&y.mode!=="view"?(e.openBlock(),e.createBlock(g,{key:4,filterable:(w=(m=u.formItemAttributes)==null?void 0:m.selectAttributes)==null?void 0:w.allowCreate,"allow-create":(q=(O=u.formItemAttributes)==null?void 0:O.selectAttributes)==null?void 0:q.allowCreate,"default-first-option":(K=(G=u.formItemAttributes)==null?void 0:G.selectAttributes)==null?void 0:K.allowCreate,modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L,disabled:j(u),onChange:L=>Q(u)},{default:e.withCtx(()=>{var L,R;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((R=(L=u.formItemAttributes)==null?void 0:L.selectAttributes)==null?void 0:R.options,le=>(e.openBlock(),e.createBlock(d,{value:le.value,label:le.label},null,8,["value","label"]))),256))]}),_:2},1032,["filterable","allow-create","default-first-option","modelValue","onUpdate:modelValue","disabled","onChange"])):e.createCommentVNode("",!0),A(u,"input-number")&&y.mode!=="view"?(e.openBlock(),e.createBlock(N,{key:5,modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L,min:(Z=(X=(v=u.formItemAttributes)==null?void 0:v.inputNumber)==null?void 0:X.min)!=null?Z:Number.NEGATIVE_INFINITY,max:(te=(F=(H=u.formItemAttributes)==null?void 0:H.inputNumber)==null?void 0:F.max)!=null?te:Number.POSITIVE_INFINITY,step:(Fe=(he=(re=u.formItemAttributes)==null?void 0:re.inputNumber)==null?void 0:he.step)!=null?Fe:1,"value-on-clear":-10},null,8,["modelValue","onUpdate:modelValue","min","max","step"])):e.createCommentVNode("",!0)]}),_:2},1032,["style","prop","label"]))),256))]),_:1},8,["model","rules","inline"])),[[P,i.value]])}}}),[["__scopeId","data-v-ad65607b"]]),Ln={class:"console-dialog__body"},Gn={key:0,class:"process-view"},zn={class:"operation-button-wrapper"},At=e.defineComponent({__name:"FormDialog",props:{id:{},mode:{},model:{},visible:{type:Boolean},showProcess:{type:Boolean},afterSubmitFunc:{type:Function}},emits:["update:visible","update:id"],setup(t,{expose:o,emit:n}){const{t:r}=fe.useI18n(),a=t,s=e.ref(0),i=n,l=e.ref();e.watch(()=>a.visible,()=>{a.visible&&s.value++});function c(){l.value&&l.value.refresh()}function f(){i("update:visible",!1),l.value.reset()}function b(){l.value.submit()}return o({close:f,refresh:c}),(_,S)=>{const B=e.resolveComponent("el-step"),T=e.resolveComponent("el-steps"),$=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(D,{class:"console-dialog",title:"Edit","align-center":"","model-value":a.visible,width:"800px",onClose:f},{footer:e.withCtx(()=>{var E;return[e.createElementVNode("div",{class:"dialog-footer",style:e.normalizeStyle({width:a.showProcess?"calc(100% - 350px)":"auto"})},[e.createElementVNode("div",zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=a.model.formConfig)==null?void 0:E.dialogButtons,j=>(e.openBlock(),e.createBlock($,{onClick:M=>j.function(l.value.formData)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)(j.label)),1)]),_:2},1032,["onClick"]))),256))]),e.createElementVNode("div",null,[e.createVNode($,{onClick:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("common.basic.cancel")),1)]),_:1}),e.createVNode($,{type:"primary",onClick:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("common.basic.save")),1)]),_:1})])],4)]}),default:e.withCtx(()=>[e.createElementVNode("div",Ln,[e.createVNode(Mt,{class:"form-view",style:e.normalizeStyle({width:_.showProcess?"calc(100% - 280px)":"100%"}),ref_key:"formViewRef",ref:l,id:a.id,sessionId:s.value,mode:a.mode,model:a.model,afterSubmitFunc:a.afterSubmitFunc,closeDialogFunc:f,disableInline:a.showProcess},null,8,["style","id","sessionId","mode","model","afterSubmitFunc","disableInline"]),_.showProcess?(e.openBlock(),e.createElementBlock("div",Gn,[S[0]||(S[0]=e.createElementVNode("h1",null,"流程动态",-1)),e.createVNode(T,{style:{height:"90%"},direction:"vertical",active:1},{default:e.withCtx(()=>[e.createVNode(B,{title:"Step 1"}),e.createVNode(B,{title:"Step 2"})]),_:1})])):e.createCommentVNode("",!0)])]),_:1},8,["model-value"])}}}),jn={class:"toolbar"},qn={class:"tool-buttons"},Hn={class:"tool-buttons"},Jn={key:2},$e=J(e.defineComponent({__name:"TableView",props:{model:{}},setup(t,{expose:o}){const{t:n}=Se.global,r=t,a=e.reactive([]),s=e.reactive({showPane:!0}),i=e.ref(""),l=e.ref(!0),c=e.ref(!1),f=z.useRouter(),b=e.ref(""),_=e.reactive([]),S=e.reactive([]),B=e.ref(),T=e.ref([]),$=e.ref("create"),D=e.ref(!0),E=e.ref(!1),j=e.ref(""),M=e.reactive({pageSize:10,pageNo:1,totalElements:0}),A=e.computed(()=>a.filter(m=>{var w,O;return((w=m.formItemAttributes)==null?void 0:w.type)!=="password"&&m.visible!==!1&&((O=m.tableColumnAttributes)==null?void 0:O.visible)!==!1}));function Q(m,w){var K,v,X,Z;let O=w.row[m.prop];const q=(v=(K=m.tableColumnAttributes)==null?void 0:K.functions)==null?void 0:v.transformValue,G=(X=m.tableColumnAttributes)==null?void 0:X.transformValueMappings;if(q)O=q(O);else if(G&&G.length>0){for(let H of G)if(O===H.value){O=n(H.label);break}}else if(((Z=m.formItemAttributes)==null?void 0:Z.type)==="select"){const H=m.formItemAttributes.selectAttributes;if(H){if(H.viewModeLabelField)O=w.row[H.viewModeLabelField];else if(H.options&&H.options.length>0){for(let F of H.options)if(F.value===w.row[m.prop]){O=F.label;break}}}}return O}function y(m,w){var O,q;return m.label?n(m.label):(q=(O=m.functions)==null?void 0:O.transformLabel)==null?void 0:q.call(O,w.$index,w.row)}function h(m){Oe(r.model),Object.assign(r.model,m)}function k(){var w,O,q;if(D.value=!0,!r.model||!r.model.api)return;Oe(s),s.showPane=!0,Object.assign(s,(w=r.model.tableConfig)!=null?w:{}),a.splice(0,a.length,...r.model.fields),i.value=(O=r.model.route)!=null?O:"",l.value=(q=r.model.useI18n)!=null?q:!0;let m=Le({},s.queryParams);m.pageSize=M.pageSize,m.pageNo=M.pageNo,m.search=b.value,ue(r.model.api,"GET",m).then(({data:G})=>{const{list:K,totalCount:v}=G.data;_.splice(0,_.length,...K),M.totalElements=v,D.value=!1})}function V(){var m,w;s.createPageRoutePath!==void 0?f.push(s.createPageRoutePath):((m=s.functions)==null?void 0:m.create)!==void 0?(w=s.functions)==null||w.create():($.value="create",j.value="",c.value=!0)}function p(m,w){r.model.api&&ue(r.model.api,"DELETE",w.id).then(({data:O})=>{O.code===0&&(c.value=!1,k())})}function d(){ge.ElMessageBox.confirm("The selected items will be deleted. Continue?",n("common.table.warning"),{confirmButtonText:n("common.basic.confirm"),cancelButtonText:n("common.basic.cancel"),type:"warning"}).then(()=>{var m,w;if(((m=s.functions)==null?void 0:m.batchDelete)!==void 0)(w=s.functions)==null||w.batchDelete(T.value);else{const O=T.value.map(q=>q.id);oe.delete(`${r.model.api}/${O.join(",")}`).then(({data:q})=>{q.code===0&&(c.value=!1,k())})}B.value.clearSelection()}).catch(()=>{B.value.clearSelection()})}function g(m){M.pageSize=m,k()}function N(m){M.pageNo=m,k()}function I(m,w){s.editPageRoutePath!==void 0?f.push({path:s.editPageRoutePath,query:{id:w.id}}):(j.value=w.id,$.value="update",c.value=!0)}function U(){let m=window.location.origin+r.model.api+"/export";const w=s.queryParams;w!==void 0&&Object.keys(w).length>0&&(m+="?",Object.entries(s.queryParams).map(O=>{m+=`${O[0]}=${O[1]}&`})),window.open(m)}function P(m){T.value=m}function u(m){return m.label?l.value?n(m.label):m.label:m.prop.slice(0,1).toUpperCase()+m.prop.slice(1).toLowerCase()}function C(m){m?(E.value=!0,S.splice(0,S.length,..._),_.splice(0,_.length,...T.value)):(E.value=!1,_.splice(0,_.length,...S))}return e.watch(()=>r.model,()=>{k()},{deep:!0,immediate:!0}),o({multipleSelection:T,refresh:k,updateConfigAndRefresh:h}),(m,w)=>{const O=e.resolveComponent("el-checkbox"),q=e.resolveComponent("el-badge"),G=e.resolveComponent("el-button"),K=e.resolveComponent("el-icon"),v=e.resolveComponent("el-tooltip"),X=e.resolveComponent("el-input"),Z=e.resolveComponent("el-table-column"),H=e.resolveComponent("router-link"),F=e.resolveComponent("el-tag"),te=e.resolveComponent("el-popconfirm"),re=e.resolveComponent("el-table"),he=e.resolveComponent("el-pagination"),Fe=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"table-view-wrapper":s.showPane})},[e.createElementVNode("div",jn,[e.createElementVNode("div",qn,[s.selectMode?(e.openBlock(),e.createBlock(q,{key:0,value:T.value.length,type:"primary",class:"selected-badge"},{default:e.withCtx(()=>[e.createVNode(O,{class:"selected-checkbox",border:!0,label:e.unref(n)("common.table.viewSelected"),onChange:C},null,8,["label"])]),_:1},8,["value"])):e.createCommentVNode("",!0),!s.selectMode&&!s.readOnly&&s.creatable!==!1?(e.openBlock(),e.createBlock(G,{key:1,type:"primary",onClick:V},{default:e.withCtx(()=>{var L,R;return[e.createTextVNode(e.toDisplayString(((L=s.labels)==null?void 0:L.create)!=null?e.unref(n)((R=s.labels)==null?void 0:R.create):e.unref(n)("common.table.create")),1)]}),_:1})):e.createCommentVNode("",!0),!s.selectMode&&!s.readOnly&&s.deletable!==!1?(e.openBlock(),e.createBlock(G,{key:2,disabled:T.value.length==0,type:"danger",plain:"",onClick:d},{default:e.withCtx(()=>{var L,R;return[e.createTextVNode(e.toDisplayString(((L=s.labels)==null?void 0:L.delete)!=null?e.unref(n)((R=s.labels)==null?void 0:R.delete):e.unref(n)("common.table.delete")),1)]}),_:1},8,["disabled"])):e.createCommentVNode("",!0),e.createVNode(G,{icon:e.unref(ae.Refresh),onClick:k},null,8,["icon"]),s.tooltip?(e.openBlock(),e.createBlock(v,{key:3,effect:"dark",content:e.unref(n)(s.tooltip),placement:"right"},{default:e.withCtx(()=>[e.createVNode(K,{style:{color:"#8ba74f"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ae.QuestionFilled))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Hn,[s.export?(e.openBlock(),e.createBlock(G,{key:0,class:"button-export",onClick:U},{default:e.withCtx(()=>[e.createVNode(K,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ae.Download))]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(X,{placeholder:`${e.unref(n)("common.table.search")}...`,modelValue:b.value,"onUpdate:modelValue":w[0]||(w[0]=L=>b.value=L)},{append:e.withCtx(()=>[e.createVNode(G,{style:{"margin-left":"-20px"},icon:e.unref(ae.Search),onClick:k},null,8,["icon"])]),_:1},8,["placeholder","modelValue"])])]),e.withDirectives((e.openBlock(),e.createBlock(re,{border:!0,ref_key:"tableRef",ref:B,data:_,onSelectionChange:P,class:"table"},{default:e.withCtx(()=>{var L;return[s.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Z,{key:0,type:"selection",width:"50"})),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,R=>{var le;return e.openBlock(),e.createBlock(Z,{prop:R.prop,label:u(R),width:(le=R.tableColumnAttributes)==null?void 0:le.width,"show-overflow-tooltip":""},{default:e.withCtx(we=>{var Ce,Ie,Ft;return[(Ce=R.tableColumnAttributes)!=null&&Ce.link?(e.openBlock(),e.createBlock(H,{key:0,class:"router-link",to:`/${i.value}/detail?id=${we.row.id}`},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Q(R,we)),1)]),_:2},1032,["to"])):(Ie=R.tableColumnAttributes)!=null&&Ie.routerLink?(e.openBlock(),e.createBlock(H,{key:1,class:"router-link",to:R.tableColumnAttributes.routerLink.replace("{id}",we.row.id)},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Q(R,we)),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",Jn,e.toDisplayString(Q(R,we)),1)),((Ft=R.tableColumnAttributes)==null?void 0:Ft.type)==="tag"?(e.openBlock(),e.createBlock(F,{key:3},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(we.row[R.prop]),1)]),_:2},1024)):e.createCommentVNode("",!0)]}),_:2},1032,["prop","label","width"])}),256)),s.operations===void 0&&!((L=s.selectMode)!=null&&L)&&!s.readOnly?(e.openBlock(),e.createBlock(Z,{key:1,label:e.unref(n)("common.table.operation"),width:"120"},{default:e.withCtx(R=>[s.updatable!==!1?(e.openBlock(),e.createBlock(G,{key:0,link:"",type:"primary",class:"operation-button",onClick:le=>I(R.$index,R.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("common.table.edit")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.createVNode(te,{title:"Are you sure to delete this?",onConfirm:le=>p(R.$index,R.row)},{reference:e.withCtx(()=>[s.deletable!==!1?(e.openBlock(),e.createBlock(G,{key:0,link:"",type:"primary",class:"operation-button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("common.table.delete")),1)]),_:1})):e.createCommentVNode("",!0)]),_:2},1032,["onConfirm"])]),_:1},8,["label"])):e.createCommentVNode("",!0),s.operations!==void 0&&!s.readOnly?(e.openBlock(),e.createBlock(Z,{key:2,label:e.unref(n)("common.table.operation"),width:"120"},{default:e.withCtx(R=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.operations,le=>(e.openBlock(),e.createBlock(G,{class:"operation-button",link:"",type:"primary",key:le.label,onClick:we=>{var Ce,Ie;return((Ie=(Ce=le.functions)==null?void 0:Ce.click)==null?void 0:Ie.call(Ce,R.$index,R.row))&&k()}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y(le,R)),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["label"])):e.createCommentVNode("",!0)]}),_:1},8,["data"])),[[Fe,D.value]]),E.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he,{key:0,size:"small",background:"",onSizeChange:g,onCurrentChange:N,currentPage:M.pageNo,"onUpdate:currentPage":w[1]||(w[1]=L=>M.pageNo=L),"page-sizes":[10,20,50,100],"page-size":M.pageSize,layout:"total, sizes, prev, pager, next",total:M.totalElements},null,8,["currentPage","page-size","total"])),e.createVNode(At,{model:m.model,mode:$.value,id:j.value,afterSubmitFunc:k,visible:c.value,"onUpdate:visible":w[2]||(w[2]=L=>c.value=L)},null,8,["model","mode","id","visible"])],2)}}}),[["__scopeId","data-v-682537f9"]]),Wn={class:"nav-bar"},Yn={key:0,class:"info-card-wrapper"},Qn={class:"icon-wrapper"},Kn={class:"info-wrapper"},Xn={class:"title-wrapper"},Zn={class:"tabs-wrapper"},vn={class:"dialog-footer"},Ut=J(e.defineComponent({__name:"DetailPage",setup(t){const{t:o}=fe.useI18n(),n=z.useRoute(),r=z.useRouter(),a=e.computed(()=>n.query.id),s=e.ref(!1),i=e.ref(!1),l=e.ref("view"),c=e.ref(),f=e.ref(-1),b=e.ref(),_=e.ref(),S=e.ref("summary"),B=e.ref(""),T=e.ref(""),$=e.ref(""),D=e.ref(0),E=e.reactive({api:"",fields:[]}),j=e.reactive([]);let M=[];e.watch([()=>r.currentRoute.value,ee],()=>{h()},{immediate:!0,deep:!0});function A(p){f.value=parseInt(p.index)-1}function Q(){var N;let p=(N=M[f.value].api)==null?void 0:N.replace("/select","");p=p==null?void 0:p.substring(p.lastIndexOf("/"));const d=E.api+"/"+a.value+p,g=_.value.multipleSelection.map(I=>I.id);ue(d,"POST",g).then(()=>{b.value.refresh(),i.value=!1})}function y(p,d,g){var U;g.functions||(g.functions={}),g.functions.create=()=>{i.value=!0,_.value&&_.value.refresh()};let N=ie.cloneDeep(d);N.tableConfig||(N.tableConfig={}),N.tableConfig.selectMode=!0,N.tableConfig.queryParams={},p.queryParamName&&(N.tableConfig.queryParams[p.queryParamName]=a.value);for(var I in N.fields)N.fields[I].tableColumnAttributes&&(U=N.fields[I].tableColumnAttributes)!=null&&U.link&&(N.fields[I].tableColumnAttributes.link=!1);M.push(N),g.labels={create:"common.table.add",delete:"common.table.remove"},g.functions.batchDelete=P=>{var w;let u=(w=M[f.value].api)==null?void 0:w.replace("/select","");u=u==null?void 0:u.substring(u.lastIndexOf("/"));const C=E.api+"/"+a.value+u,m=P.map(O=>O.id);oe.delete(`${C}/${m.join(",")}`).then(({data:O})=>{O.code===0&&b.value.refresh()})},g.operations=[{label:"common.table.remove",functions:{click:(P,u)=>{var w;let C=(w=M[f.value].api)==null?void 0:w.replace("/select","");C=C==null?void 0:C.substring(C.lastIndexOf("/"));const m=E.api+"/"+a.value+C;ue(m,"DELETE",u.id).then(()=>{b.value.refresh()})}}}],N.api+="/select"}function h(){var N,I,U;j.splice(0);const p=n.params.model;if(ee.value[p]===void 0){console.warn("Detail page model not exist:",p);return}else console.debug("Detail page model found:",p,ee.value[p]);Oe(E);const d=ie.cloneDeep(ee.value[p]);Object.assign(E,d),D.value++,f.value=-1,S.value="summary";const g=(I=(N=E.pageConfig)==null?void 0:N.detailPage)==null?void 0:I.tabs;if(g)for(let P of g){const u=ie.cloneDeep(ee.value[P.modelKey]);if(j.push(u),P.type==="table"){u.tableConfig||(u.tableConfig={});let C=u.tableConfig;C.showPane=!1,P.modelRelationType==="associated"?y(P,u,C):P.modelRelationType==="child"&&(M.push({fields:[]}),u.formConfig===void 0&&(u.formConfig={}),u.formConfig.functions===void 0&&(u.formConfig.functions={}),P.queryParamName&&(u.formConfig.functions.beforeSubmit=m=>{m[P.queryParamName]=a.value})),C.queryParams||(C.queryParams={}),P.queryParamName&&(C.queryParams[P.queryParamName]=a.value),P.queryParams&&Object.assign(C.queryParams,P.queryParams),C.readOnly=(U=P.readOnly)!=null?U:!1,P.includeFields&&(u.fields=u.fields.filter(m=>{var w;return(w=P.includeFields)==null?void 0:w.includes(m.prop)})),P.excludeFields&&(u.fields=u.fields.filter(m=>{var w;return!((w=P.excludeFields)!=null&&w.includes(m.prop))})),P.tooltip&&(C.tooltip=P.tooltip)}}}e.watch([()=>{var p,d;return(d=(p=E.pageConfig)==null?void 0:p.detailPage)==null?void 0:d.infoCard},()=>{var p;return(p=c.value)==null?void 0:p.formData}],p=>{e.nextTick(()=>{var g,N,I;const d=(N=(g=E.pageConfig)==null?void 0:g.detailPage)==null?void 0:N.infoCard;d&&(B.value=d.titleFieldProp?c.value.formData[d.titleFieldProp]:"",T.value=d.subtitleFieldProp?c.value.formData[d.subtitleFieldProp]:"",$.value=d.tagFieldProp?c.value.formData[d.tagFieldProp]:"",(I=E.fields)==null||I.forEach(U=>{var P,u;if(U.prop===d.tagFieldProp){const C=(u=(P=U.tableColumnAttributes)==null?void 0:P.functions)==null?void 0:u.transformValue;C&&($.value=C($.value))}}))})},{immediate:!0,deep:!0});function k(){s.value=!0}function V(){c.value.refresh()}return(p,d)=>{var G,K,v,X,Z,H;const g=e.resolveComponent("el-breadcrumb-item"),N=e.resolveComponent("el-breadcrumb"),I=e.resolveComponent("el-button"),U=e.resolveComponent("el-icon"),P=e.resolveComponent("el-dropdown-item"),u=e.resolveComponent("el-dropdown-menu"),C=e.resolveComponent("el-dropdown"),m=e.resolveComponent("el-tag"),w=e.resolveComponent("el-tab-pane"),O=e.resolveComponent("el-tabs"),q=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Wn,[e.createVNode(N,null,{default:e.withCtx(()=>{var F,te;return[e.createVNode(g,{to:{path:`/${(te=(F=E==null?void 0:E.breadcrumbRoute)!=null?F:E==null?void 0:E.route)!=null?te:""}`}},{default:e.withCtx(()=>{var re;return[e.createTextVNode(e.toDisplayString(e.unref(o)((re=E==null?void 0:E.name)!=null?re:"")),1)]}),_:1},8,["to"]),e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.detail")),1)]),_:1})]}),_:1}),e.createElementVNode("div",null,[e.createVNode(I,{type:"primary",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.table.edit")),1)]),_:1}),e.createVNode(I,{type:"danger",plain:"",disabled:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.table.delete")),1)]),_:1}),((K=(G=E.pageConfig)==null?void 0:G.detailPage)==null?void 0:K.operationButtons)!==void 0?(e.openBlock(),e.createBlock(C,{key:0},{dropdown:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>{var F,te;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=(F=E.pageConfig)==null?void 0:F.detailPage)==null?void 0:te.operationButtons,re=>(e.openBlock(),e.createBlock(P,{onClick:he=>re.function(c.value.formData)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)(re.label)),1)]),_:2},1032,["onClick"]))),256))]}),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{style:{margin:"0 10px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.more")),1),e.createVNode(U,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ae.ArrowDown))]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(I,{icon:e.unref(ae.Refresh),onClick:V},null,8,["icon"])])]),(X=(v=E.pageConfig)==null?void 0:v.detailPage)!=null&&X.infoCard?(e.openBlock(),e.createElementBlock("div",Yn,[e.createElementVNode("div",Qn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((Z=E.pageConfig.detailPage.infoCard.icon)!=null?Z:""),{class:"icon"}))]),e.createElementVNode("div",Kn,[e.createElementVNode("div",Xn,[e.createElementVNode("h1",null,e.toDisplayString(B.value),1),((H=$.value)==null?void 0:H.length)>0?(e.openBlock(),e.createBlock(m,{key:0,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("span",null,e.toDisplayString(T.value),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Zn,[e.createVNode(O,{modelValue:S.value,"onUpdate:modelValue":d[0]||(d[0]=F=>S.value=F),onTabClick:A},{default:e.withCtx(()=>{var F,te;return[e.createVNode(w,{label:e.unref(o)("common.basic.summary"),name:"summary"},{default:e.withCtx(()=>[e.createVNode(Mt,{ref_key:"formViewRef",ref:c,id:a.value,sessionId:D.value,mode:l.value,model:E},null,8,["id","sessionId","mode","model"])]),_:1},8,["label"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=(F=E.pageConfig)==null?void 0:F.detailPage)==null?void 0:te.tabs,re=>{var he;return e.openBlock(),e.createBlock(w,{label:e.unref(o)((he=re.name)!=null?he:"")},null,8,["label"])}),256))]}),_:1},8,["modelValue"]),f.value>=0?(e.openBlock(),e.createBlock($e,{key:0,ref_key:"tabPaneTableRef",ref:b,model:j[f.value]},null,8,["model"])):e.createCommentVNode("",!0),e.createVNode(q,{modelValue:i.value,"onUpdate:modelValue":d[2]||(d[2]=F=>i.value=F),title:e.unref(o)("common.table.select"),width:"800px"},{footer:e.withCtx(()=>[e.createElementVNode("span",vn,[e.createVNode(I,{onClick:d[1]||(d[1]=F=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",onClick:Q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.save")),1)]),_:1})])]),default:e.withCtx(()=>[f.value>=0?(e.openBlock(),e.createBlock($e,{key:0,ref_key:"selectTableRef",ref:_,model:e.unref(M)[f.value]},null,8,["model"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue","title"])]),e.createVNode(At,{id:a.value,mode:"update",visible:s.value,"onUpdate:visible":d[3]||(d[3]=F=>s.value=F),model:E,afterSubmitFunc:V},null,8,["id","visible","model"])],64)}}}),[["__scopeId","data-v-f9250724"]]),er={class:"page-title"},Rt=J(e.defineComponent({__name:"TablePage",setup(t){const{t:o}=fe.useI18n(),n=z.useRoute(),r=z.useRouter(),a=e.ref(),s=e.ref([]),i=e.reactive({api:"",fields:[]}),l=e.reactive(Le({},i));function c(){var b,_,S,B,T;s.value=[],i.pageConfig&&((_=(b=i.pageConfig)==null?void 0:b.tablePage)!=null&&_.tabViewAttributes)&&(s.value=(T=(B=(S=i.pageConfig)==null?void 0:S.tablePage)==null?void 0:B.tabViewAttributes)==null?void 0:T.map($=>{let D;return $.modelKey&&ee.value[$.modelKey]?D=ie.cloneDeep(ee.value[$.modelKey]):D=ie.cloneDeep(i),$.queryParams&&(D.tableConfig||(D.tableConfig={}),D.tableConfig.queryParams=$.queryParams),$.fields&&(D.fields=$.fields),$.modelKey&&(D.breadcrumbRoute=i.route),{key:$.key,label:$.label,icon:$.icon,disabled:$.disabled,model:D}}))}function f(){var S,B;console.log("Init table page, loading model:",n.params.model),console.log("Current model list",ee.value);const b=n.params.model;if(ee.value[b]===void 0){console.warn("Model not found",b,ee.value);return}Oe(i);const _=ie.cloneDeep(ee.value[b]);Object.assign(i,_),(B=(S=i.pageConfig)==null?void 0:S.tablePage)!=null&&B.tabViewAttributes||Object.assign(l,i),c()}return e.watch([()=>r.currentRoute.value,ee],()=>{f()},{immediate:!0,deep:!0}),(b,_)=>{var B;const S=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",er,e.toDisplayString(e.unref(o)((B=i.name)!=null?B:"")),1),e.createVNode(S,null,{default:e.withCtx(()=>{var T,$;return[($=(T=i.pageConfig)==null?void 0:T.tablePage)!=null&&$.tabViewAttributes?(e.openBlock(),e.createBlock(ve,{key:0,class:"tabs-wrapper",cards:s.value,tableRef:a.value},null,8,["cards","tableRef"])):e.createCommentVNode("",!0)]}),_:1}),e.createVNode($e,{class:"table-wrapper",ref_key:"tableRef",ref:a,model:l},null,8,["model"])],64)}}}),[["__scopeId","data-v-ce635c5e"]]),tr=[et,Pt,ze,Dt,Tt,Ze,ve,$e,Ut,Rt],or=t=>{t&&t.component&&tr.forEach(o=>{console.log("component",o.__name,o),t.component(o.__name,o)})};x.Building=et,x.ConsoleApp=Pt,x.DetailPage=Ut,x.Header=ze,x.NoPermission=Dt,x.Secondary=Tt,x.SideMenu=Ze,x.TabCard=ve,x.TablePage=Rt,x.TableView=$e,x.activeMenuMapping=at,x.default=or,x.en=nt,x.i18n=Se,x.menuList=je,x.modelList=ee,x.pinia=Re,x.zh=rt,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
11
+ This will fail in production.`);l=xe,l._s.has(r)||(s?Ke(r,o,a,l):Et(r,a,l),process.env.NODE_ENV!=="production"&&(i._pinia=l));const b=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const _="__hot:"+r,S=s?Ke(_,o,a,l,!0):Et(_,ne({},a),l,!0);c._hotUpdate(S),delete l.state.value[_],l._s.delete(_)}if(process.env.NODE_ENV!=="production"&&be){const _=e.getCurrentInstance();if(_&&_.proxy&&!c){const S=_.proxy,B="_pStores"in S?S._pStores:S._pStores={};B[r]=b}}return b}return i.$id=r,i}const mn=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,un=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,hn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function gn(t,o){if(t==="__proto__"||t==="constructor"&&o&&typeof o=="object"&&"prototype"in o){_n(t);return}return o}function _n(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function bn(t,o={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!hn.test(t)){if(o.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(mn.test(t)||un.test(t)){if(o.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,gn)}return JSON.parse(t)}catch(r){if(o.strict)throw r;return t}}function yn(t,o){if(t==null)return;let n=t;for(let r=0;r<o.length;r++){if(n==null||n[o[r]]==null)return;n=n[o[r]]}return n}function Xe(t,o,n){if(n.length===0)return o;const r=n[0];return n.length>1&&(o=Xe(typeof t!="object"||t===null||!Object.prototype.hasOwnProperty.call(t,r)?Number.isInteger(Number(n[1]))?[]:{}:t[r],o,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(t)?t.slice()[r]:Object.assign({},t,{[r]:o})}function St(t,o){if(t==null||o.length===0)return t;if(o.length===1){if(t==null)return t;if(Number.isInteger(o[0])&&Array.isArray(t))return Array.prototype.slice.call(t,0).splice(o[0],1);const n={};for(const r in t)n[r]=t[r];return delete n[o[0]],n}if(t[o[0]]==null){if(Number.isInteger(o[0])&&Array.isArray(t))return Array.prototype.concat.call([],t);const n={};for(const r in t)n[r]=t[r];return n}return Xe(t,St(t[o[0]],Array.prototype.slice.call(o,1)),[o[0]])}function xt(t,o){return o.map(n=>n.split(".")).map(n=>[n,yn(t,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>Xe(n,r[1],r[0]),{})}function Bt(t,o){return o.map(n=>n.split(".")).reduce((n,r)=>St(n,r),t)}function Ot(t,{storage:o,serializer:n,key:r,debug:a,pick:s,omit:i,beforeHydrate:l,afterHydrate:c},f,b=!0){try{b&&(l==null||l(f));const _=o.getItem(r);if(_){const S=n.deserialize(_),B=s?xt(S,s):S,T=i?Bt(B,i):B;t.$patch(T)}b&&(c==null||c(f))}catch(_){a&&console.error("[pinia-plugin-persistedstate]",_)}}function $t(t,{storage:o,serializer:n,key:r,debug:a,pick:s,omit:i}){try{const l=s?xt(t,s):t,c=i?Bt(l,i):l,f=n.serialize(c);o.setItem(r,f)}catch(l){a&&console.error("[pinia-plugin-persistedstate]",l)}}function wn(t,o,n){const{pinia:r,store:a,options:{persist:s=n}}=t;if(!s)return;if(!(a.$id in r.state.value)){const c=r._s.get(a.$id.replace("__hot:",""));c&&Promise.resolve().then(()=>c.$persist());return}const l=(Array.isArray(s)?s:s===!0?[{}]:[s]).map(o);a.$hydrate=({runHooks:c=!0}={})=>{l.forEach(f=>{Ot(a,f,t,c)})},a.$persist=()=>{l.forEach(c=>{$t(a.$state,c)})},l.forEach(c=>{Ot(a,c,t),a.$subscribe((f,b)=>$t(b,c),{detached:!0})})}function kn(t={}){return function(o){var n;wn(o,r=>{var a,s,i,l,c,f,b;return{key:(t.key?t.key:_=>_)((a=r.key)!=null?a:o.store.$id),debug:(i=(s=r.debug)!=null?s:t.debug)!=null?i:!1,serializer:(c=(l=r.serializer)!=null?l:t.serializer)!=null?c:{serialize:_=>JSON.stringify(_),deserialize:_=>bn(_)},storage:(b=(f=r.storage)!=null?f:t.storage)!=null?b:window.localStorage,beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}},(n=t.auto)!=null?n:!1)}}var Cn=kn();const Re=ln();Re.use(Cn);const It=fn("console",{state:()=>({menu:{collapsed:!0}}),persist:!0}),Nn={key:0,class:"menu-wrapper"},Ze=J(e.defineComponent({__name:"SideMenu",props:{menuCollapsed:{type:Boolean}},emits:["update:menuCollapsed"],setup(t,{emit:o}){It(Re);const n=z.useRoute(),r=e.computed(()=>{var s;const a=n.meta.activeMenu;if(a==="{model}"){let i=n.params.app?`${n.params.app}/${n.params.model}`:n.params.model;return"/"+((s=at[n.params.model])!=null?s:i)}else return a});return(a,s)=>{const i=e.resolveComponent("el-menu");return e.unref(je).length>0?(e.openBlock(),e.createElementBlock("div",Nn,[e.createVNode(i,{class:"menu","default-active":r.value,router:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(je),l=>(e.openBlock(),e.createBlock(Mo,{key:l.path,menu:l},null,8,["menu"]))),128))]),_:1},8,["default-active"])])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-c70ca2ba"]]),Vn={class:"container"},Pt=e.defineComponent({__name:"ConsoleApp",props:{title:{},helpDocUrl:{}},setup(t){const o=It(Re),n=z.useRoute(),r=e.ref(o.menu.collapsed),a=e.ref(),s=t;return(i,l)=>{const c=e.resolveComponent("router-view"),f=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(n).query.embedded!=="true"?(e.openBlock(),e.createBlock(ze,{key:0,title:s.title,helpDocUrl:s.helpDocUrl},null,8,["title","helpDocUrl"])):e.createCommentVNode("",!0),e.createElementVNode("div",Vn,[e.unref(n).query.embedded!=="true"?(e.openBlock(),e.createBlock(Ze,{key:0,menuCollapsed:r.value,"onUpdate:menuCollapsed":l[0]||(l[0]=b=>r.value=b)},null,8,["menuCollapsed"])):e.createCommentVNode("",!0),e.createVNode(f,{class:"main-scrollbar"},{default:e.withCtx(()=>[e.createElementVNode("main",{ref_key:"mainWrapperRef",ref:a,class:"main-wrapper"},[e.createVNode(c)],512)]),_:1})])],64)}}}),En={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800"};function Sn(t,o){return e.openBlock(),e.createElementBlock("svg",En,o[0]||(o[0]=[e.createStaticVNode('<defs><linearGradient id="a" x1="399.126" x2="399.126" y1="159.978" y2="715.47" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4f2fb"></stop><stop offset="1" stop-color="#e1eef5"></stop></linearGradient><linearGradient id="b" x1="481.607" x2="481.607" y1="594.251" y2="423.306" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".362" stop-color="#b4c9db"></stop><stop offset=".898" stop-color="#ecf0f9"></stop></linearGradient><linearGradient id="c" x1="114.87" x2="114.87" y1="540.843" y2="403.668" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="d" x1="114.872" x2="114.872" y1="418.9" y2="570.033" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="e" x1="615.999" x2="615.999" y1="449.321" y2="360.996" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="f" x1="616" x2="616" y1="370.804" y2="468.116" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="g" x1="672.709" x2="672.709" y1="544.867" y2="510.536" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".227" stop-color="#d0dceb"></stop><stop offset=".789" stop-color="#ecf1fb"></stop></linearGradient><linearGradient id="h" x1="672.77" x2="672.77" y1="514.871" y2="570.135" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ecf1fb"></stop><stop offset=".818" stop-color="#b6c9dd"></stop></linearGradient><linearGradient id="i" x1="461.917" x2="427.163" y1="86.714" y2="146.91" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#ffdb80"></stop><stop offset="1" stop-color="#ffbb24"></stop></linearGradient><linearGradient id="j" x1="419.58" x2="419.58" y1="117.18" y2="174.634" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f9fafe"></stop><stop offset="1" stop-color="#e5edf7"></stop></linearGradient><linearGradient id="k" x1="-1967.352" x2="-2213.626" y1="525.737" y2="279.463" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#d5e1f2"></stop></linearGradient><linearGradient id="l" x1="-1980.099" x2="-2214.789" y1="526.438" y2="291.748" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#b6cadc"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="m" x1="441.358" x2="329.96" y1="472.657" y2="361.259" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#9fb6cc"></stop><stop offset="1" stop-color="#bccde1"></stop></linearGradient><linearGradient id="n" x1="569.328" x2="454.912" y1="597.606" y2="483.19" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset=".15" stop-color="#afc5d8"></stop><stop offset="1" stop-color="#dfe8f9"></stop></linearGradient><linearGradient id="o" x1="562.331" x2="453.712" y1="598.807" y2="490.188" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#c7d4e5"></stop><stop offset=".687" stop-color="#e8eff8"></stop></linearGradient><linearGradient id="p" x1="219.375" x2="219.375" y1="553.783" y2="478.333" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffb32c"></stop></linearGradient><linearGradient id="q" x1="220.421" x2="220.421" y1="465.465" y2="489.367" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4ae98"></stop><stop offset="1" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="r" x1="-840.016" x2="-828.333" y1="946.367" y2="864.11" gradientTransform="rotate(-8.082 -3028.264 -6569.32)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="s" x1="-7035.52" x2="-7023.838" y1="66.46" y2="-15.798" gradientTransform="scale(-1 1)rotate(-8.082 -118.132 -47761.005)" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#fad96e"></stop><stop offset="1" stop-color="#ffa91f"></stop></linearGradient><linearGradient id="t" x1="219.375" x2="219.375" y1="526.535" y2="574.482" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#275c89"></stop><stop offset="1" stop-color="#013f7c"></stop></linearGradient><linearGradient id="u" x1="6174.812" x2="6157.838" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="v" x1="196.36" x2="283.925" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#18264b"></stop><stop offset=".652" stop-color="#2d3c65"></stop></linearGradient><linearGradient id="w" x1="176.617" x2="176.617" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="x" x1="238.667" x2="255.641" y1="595.174" y2="595.174" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="y" x1="158.041" x2="245.606" y1="576.466" y2="576.466" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#445677"></stop><stop offset="1" stop-color="#293861"></stop></linearGradient><linearGradient id="z" x1="265.35" x2="265.35" y1="604.946" y2="586.928" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4673bc"></stop><stop offset=".652" stop-color="#6a94e0"></stop></linearGradient><linearGradient id="A" x1="236.065" x2="204.828" y1="459.983" y2="459.983" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#f4b9a4"></stop><stop offset=".652" stop-color="#fad1bb"></stop></linearGradient><linearGradient id="B" x1="200.53" x2="236.795" y1="447.908" y2="447.908" gradientUnits="userSpaceOnUse" spreadMethod="pad"><stop offset="0" stop-color="#4f5c7c"></stop><stop offset="1" stop-color="#274168"></stop></linearGradient></defs><path fill="url(#a)" d="M482.38 201.33c-38.37 30.29-120.74 33.81-181.17-2.22s-172-31.38-202.22 34.87 37.19 131.33 12.78 178.98S6.01 528.01 61.8 609.36s126.6 60.62 169.22 52.45c84.17-16.13 189.79 115.67 308.62 16.13 68.47-57.35 170.44 42.09 210.17-81.36 32.78-101.86-85.67-139.5-49.97-208.03 37.96-72.88 30.67-159.24-10.46-201.06-38.31-38.96-140.75-38.46-207 13.84"></path><path fill="url(#b)" d="M393.48 423.31h216.44l-22.53 49.03s59.19 57.86-14.13 121.91c-134.28-44.17-221.74-37.1-219.98-38.87 1.77-1.77 40.2-132.07 40.2-132.07"></path><path fill="url(#c)" d="M115.65 403.91s-.22-.57-.52.04c-2.7 5.49-27.15 64.96-29.09 110.86 0 0-4.08 26.37 30.11 26.02 28.54-.29 27.78-24.6 27.68-32.79-.38-33.22-28.18-104.13-28.18-104.13"></path><path fill="url(#d)" d="M114.87 570.03c-.55 0-1-.45-1-1V419.9c0-.55.45-1 1-1s1 .45 1 1v149.13c0 .56-.45 1-1 1"></path><path fill="url(#e)" d="M616.5 361.15s-.14-.37-.33.03c-1.74 3.53-17.48 41.83-18.73 71.38 0 0-2.63 16.98 19.39 16.76 18.38-.18 17.89-15.84 17.82-21.11-.25-21.4-18.15-67.06-18.15-67.06"></path><path fill="url(#f)" d="M616 468.12c-.36 0-.64-.29-.64-.64v-96.02c0-.36.29-.64.64-.64.36 0 .64.29.64.64v96.02c0 .35-.28.64-.64.64"></path><path fill="url(#g)" d="M689.88 527.7c0 9.48-7.69 17.17-17.17 17.17s-17.17-7.69-17.17-17.17 7.69-17.17 17.17-17.17 17.17 7.69 17.17 17.17"></path><path fill="url(#h)" d="M672.77 570.13c-.29 0-.53-.24-.53-.53v-54.2c0-.29.24-.53.53-.53s.53.24.53.53v54.21c0 .29-.24.52-.53.52"></path><path fill="url(#i)" d="M479.29 116.81c0 19.19-15.56 34.75-34.75 34.75s-34.75-15.56-34.75-34.75 15.56-34.75 34.75-34.75 34.75 15.56 34.75 34.75"></path><path fill="url(#j)" d="M464.32 135.76h-34.57c-2.23-10.61-11.65-18.58-22.93-18.58s-20.69 7.97-22.93 18.58h-9.05c-10.73 0-19.44 8.7-19.44 19.44 0 10.73 8.7 19.44 19.44 19.44h89.47c10.73 0 19.44-8.7 19.44-19.44s-8.7-19.44-19.43-19.44"></path><path fill="url(#k)" d="M235.65 388.64c0-24.52-.03-49.03.01-73.54.02-14.37 4.24-18.36 17.97-20.53 41.87-6.61 82.03-18.72 117.91-42.29 10.38-6.82 18.3-7.59 29.06-.47 34.85 23.06 73.26 37.11 114.55 42.8 13.12 1.81 16.84 5.88 16.85 19.25.04 45.72-.4 91.44.18 137.15.34 26.77-8.17 49.99-24.02 70.73-31.46 41.17-74.88 63.76-122.21 80.03-2.5.86-5.83.67-8.36-.23-38.47-13.74-74.58-31.84-104.15-61.09-22.97-22.73-37.84-49.56-37.79-83.22.03-22.87 0-45.73 0-68.59"></path><path fill="url(#l)" d="M234.76 396.09c0-23.21-.03-46.42.01-69.63.02-13.61 4.06-17.38 17.23-19.43 40.15-6.26 78.67-17.72 113.07-40.04 9.95-6.46 17.55-7.18 27.86-.44 33.42 21.83 70.25 35.14 109.84 40.52 12.58 1.71 16.14 5.56 16.15 18.22.03 43.28-.38 86.57.18 129.84.33 25.34-7.83 47.33-23.03 66.96-30.17 38.98-71.81 60.36-117.19 75.77-2.4.81-5.59.64-8.01-.22-36.89-13.01-71.52-30.14-99.87-57.84-22.03-21.52-36.28-46.91-36.23-78.78.02-21.65 0-43.29-.01-64.93"></path><path fill="url(#m)" d="M398.42 430.39c23.18-5.61 40.41-26.11 40.41-50.49 0-28.68-23.85-52.01-53.17-52.01s-53.17 23.33-53.17 52.01c0 24.38 17.24 44.88 40.41 50.49v85.2h25.52v-36.38h32.67v-24.96h-32.67zM358 379.91c0-14.91 12.41-27.05 27.65-27.05S413.3 365 413.3 379.91s-12.41 27.05-27.65 27.05S358 394.82 358 379.91"></path><path fill="#fff" d="M394.5 433.67c21.8-5.39 38.01-25.1 38.01-48.54 0-27.58-22.43-50.01-50.01-50.01s-50.01 22.43-50.01 50.01c0 23.44 16.21 43.15 38.01 48.54v81.92h24v-34.98h30.73v-24H394.5zm-38.01-48.54c0-14.34 11.67-26.01 26.01-26.01s26.01 11.67 26.01 26.01-11.67 26.01-26.01 26.01-26.01-11.67-26.01-26.01"></path><path fill="url(#n)" d="M593.02 540.4c0 44.68-36.22 80.9-80.9 80.9s-80.9-36.22-80.9-80.9 36.22-80.9 80.9-80.9 80.9 36.22 80.9 80.9"></path><path fill="url(#o)" d="M584.83 544.5c0 42.42-34.39 76.81-76.81 76.81s-76.81-34.39-76.81-76.81 34.39-76.81 76.81-76.81 76.81 34.39 76.81 76.81"></path><path fill="#fff" d="m525.32 542.26 23.01-23.01c4.44-4.44 4.44-11.63 0-16.06-4.44-4.44-11.63-4.44-16.06 0l-23.01 23.01-23.01-23.01c-4.44-4.44-11.63-4.44-16.06 0-4.44 4.44-4.44 11.63 0 16.06l23.01 23.01-23.01 23.01c-4.44 4.44-4.44 11.63 0 16.06 2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33l23.01-23.01 23.01 23.01c2.22 2.22 5.13 3.33 8.03 3.33s5.81-1.11 8.03-3.33c4.44-4.44 4.44-11.63 0-16.06z"></path><path fill="url(#p)" d="M211.59 478.69s-18.31-2.53-24.25 5.88c-5.95 8.41-8.12 29.95-8.12 29.95l13.78-.73-1.16 25.09 25.42 14.9 36.22-19.48-5.51-22.73 11.57-3.02s-3.45-32.99-19.55-28.12c-8.27.89-10.88.74-10.88.74s-2.18 6.94-9.65 6.35-7.87-8.83-7.87-8.83"></path><path fill="url(#q)" d="m213.42 468.32-3.8 16.97c-.18.8.24 1.61.99 1.92 1.97.8 5.9 2.16 9.95 2.16 4.2 0 8.16-2.3 9.98-3.53.63-.42.89-1.21.65-1.93l-5.82-17.31a1.68 1.68 0 0 0-1.88-1.12l-8.72 1.55c-.67.12-1.2.63-1.35 1.29"></path><path fill="url(#r)" d="M190.69 481.63c5.33-1.77 12.55-.59 12.85 11.37.29 11.95-11.42 31-7.22 37.63 4.25 6.71 13.34 16.25 19.12 21.68-1.34 6.38-4.98 11.75-4.98 11.75s-21.31-9.83-30.59-19.68-4.6-32.43-.3-48.5c3.24-12.12 11.12-14.25 11.12-14.25"></path><path fill="url(#s)" d="M246.53 481.63c-5.33-1.77-12.55-.59-12.85 11.37-.29 11.95 11.42 31 7.22 37.63-4.25 6.71-13.34 16.25-19.12 21.68 1.34 6.38 4.98 11.75 4.98 11.75s21.31-9.83 30.59-19.68 4.6-32.43.3-48.5c-3.24-12.12-11.12-14.25-11.12-14.25"></path><path fill="url(#t)" d="M193.27 574.48h51.74c2.34 0 4.44-1.78 5.25-4.45l10.43-34.31c1.35-4.45-1.35-9.19-5.25-9.19h-72.12c-3.86 0-6.57 4.65-5.28 9.09l9.96 34.31c.79 2.73 2.9 4.55 5.27 4.55"></path><path fill="#fff" d="M191.21 590.26s-.8-1.76-1.41-1.95c-.62-.19-9.46-.54-12.69-1.38s-12.54-2.16-16.52 1.61c-3.47 3.29-4.62 10.97.67 15.39 1.98 1.72 3.93 2.23 11.28 1.89s18-.27 20.34-3.67c-.09-5.63-1.67-11.89-1.67-11.89"></path><path fill="url(#u)" d="M199.42 588.31s-8.54 1.92-11.6 1.64c-3.05-.28-.5 12.02-.5 12.02s8.16.56 15.37-1.52c2.44-9.43-3.27-12.14-3.27-12.14"></path><path fill="url(#v)" d="m196.36 587.86 4.44 13.81s95.43-12.57 81.79-43.54c-11.4-25.89-86.23 29.73-86.23 29.73"></path><path fill="url(#w)" d="M190.1 588.93s3.5 1.37 3.94 6.24-1 8.15-8.43 9.05-9.32.56-13.98.68c-4.66.11-11.43.56-12.43-8.3s8.06-11.12 17.46-8.86c2.95.57 13.44 1.19 13.44 1.19"></path><path fill="#fff" d="M250.76 590.26s.8-1.76 1.41-1.95c.62-.19 9.46-.54 12.69-1.38s11.9-2.23 16.28 1.51c4.06 3.47 4.33 11.14-.3 15.37-1.98 1.72-4.07 2.35-11.42 2.01s-18-.27-20.34-3.67c.09-5.63 1.68-11.89 1.68-11.89"></path><path fill="url(#x)" d="M242.55 588.31s8.54 1.92 11.6 1.64.5 12.02.5 12.02-8.16.56-15.37-1.52c-2.45-9.43 3.27-12.14 3.27-12.14"></path><path fill="url(#y)" d="m245.61 587.86-4.44 13.81s-95.43-12.57-81.79-43.54c11.4-25.89 86.23 29.73 86.23 29.73"></path><path fill="url(#z)" d="M251.87 588.93s-3.5 1.37-3.94 6.24 1 8.15 8.43 9.05 9.32.56 13.98.68c4.66.11 11.43.56 12.43-8.3s-8.06-11.12-17.46-8.86c-2.96.57-13.44 1.19-13.44 1.19"></path><path fill="url(#A)" d="M235.39 461.53c.57-.81.93-2.88.46-3.48-.84-.68-1.63-.29-2.23.3.14-4.94-.31-9.05-.42-10.09-.31-3.03-3.39-8.58-13.46-8.58s-12.03 7.27-12.03 7.27-.66 5.14-.46 11.38c-.6-.57-1.39-.95-2.21-.28-.46.61-.1 2.68.46 3.48.57.81.93 2.73 1.03 3.79.1 1.01-.63 3.69 2.02 3.35 1.58 6.33 7.99 11.61 11.96 11.61 4.35 0 10.13-5.32 11.77-11.62 2.71.37 1.97-2.33 2.07-3.35.12-1.05.48-2.97 1.04-3.78"></path><path fill="url(#B)" d="M227 437.52s-1.97-6.19-9.5-4.71c-7.54 1.48-8.05 5.04-11 5.18-5.05.24-9.09 6.53-2.61 13.19 2.88 2.97.45 4.24 1.82 6.87s1.36 5.18 1.36 5.18 2.41-7.69.82-10.97c-.82-1.69 2.81-2.15 7.33-1.75s11.65-1.09 12.21-4.17c1.34 6.31 2.67 6.97 4.37 7.93s1.8 8.58 1.8 8.58.3-5.6 1.48-6.87c.98-2.07 2.88-10.2.73-12.17s-.35-8.29-8.81-6.29"></path>',33)]))}const xn={render:Sn},Bn={},On={class:"wrapper"},$n={class:"content"};function In(t,o){const n=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",On,[o[4]||(o[4]=e.createElementVNode("img",{src:xn},null,-1)),e.createElementVNode("div",$n,[o[3]||(o[3]=e.createElementVNode("h1",null,"You have no permission to access the page.",-1)),e.createVNode(n,{type:"primary"},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("Apply")])),_:1}),e.createVNode(n,{onClick:o[0]||(o[0]=r=>t.$router.go(-1))},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode("Go Back")])),_:1})])])}const Dt=J(Bn,[["render",In],["__scopeId","data-v-0155b361"]]),Pn={};function Dn(t,o){const n=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(n)}const Tt=J(Pn,[["render",Dn]]),Tn={class:"card-wrapper"},An=["onClick"],Mn={class:"card-inner-wrapper"},Un={class:"card-title"},Rn={class:"icon"},ve=J(e.defineComponent({__name:"TabCard",props:{cards:{},tableRef:{}},setup(t){const{t:o}=fe.useI18n(),n=z.useRoute(),r=z.useRouter(),a=t,s=e.ref(a.cards[0].key);function i(l){l.disabled||(s.value=l.key,a.tableRef.updateConfigAndRefresh(l.model),r.push({path:n.path,query:zt(Le({},n.query),{tab:l.key})}))}return e.onMounted(()=>{let l;if(n.query.tab!==void 0){for(let c of a.cards)if(c.key===n.query.tab){s.value=c.key,l=c;break}}e.nextTick(()=>{a.tableRef&&a.cards&&a.cards.length>0&&a.tableRef.updateConfigAndRefresh((l!=null?l:a.cards[0]).model)})}),e.watch(()=>a.cards,l=>{if(n.query.tab!==void 0){for(let c of a.cards)if(c.key===n.query.tab){s.value=c.key;break}}else l&&l.length>0&&(s.value=l[0].key,a.tableRef.updateConfigAndRefresh(a.cards[0].model))},{deep:!0}),(l,c)=>(e.openBlock(),e.createElementBlock("div",Tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.cards,f=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card",{"card-selected":s.value===f.key}]),onClick:b=>i(f)},[e.createElementVNode("div",Mn,[e.createElementVNode("div",Un,[e.createElementVNode("div",Rn,[f.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.icon),{key:0,class:"svg-icon"})):e.createCommentVNode("",!0)]),e.createElementVNode("span",{style:e.normalizeStyle({color:f.disabled?"#aaa":"black"})},e.toDisplayString(e.unref(o)(f.label)),5)]),e.createElementVNode("span",null,e.toDisplayString(f.count),1)])],10,An))),256))]))}}),[["__scopeId","data-v-047a86e6"]]);function ue(t,o,n){switch(o){case"POST":return oe.post(t,n);case"PUT":return oe.put(t,n);case"DELETE":return oe.delete(t+"/"+n);default:return oe.get(t,{params:n})}}const Oe=t=>{const o=Object.keys(t);let n={};o.forEach(r=>{n[r]=void 0}),Object.assign(t,n)},Fn={key:1,class:"view-span"},At=J(e.defineComponent({__name:"FormView",props:{id:{},sessionId:{},mode:{},model:{},disableInline:{type:Boolean},closeDialogFunc:{type:Function},afterSubmitFunc:{type:Function}},emits:["update:id"],setup(t,{expose:o,emit:n}){const{t:r}=Se.global,a=t,s=e.reactive({}),i=e.ref(!1),l=e.ref(),c=e.reactive({}),f=e.ref(!0),b=y=>a.mode==="view"&&(M(y,void 0)||M(y,"input")||M(y,"select")||M(y,"password")||M(y,"input-number")),_=e.computed(()=>a.model.fields?a.model.fields.filter(y=>{var V,p,d,g;let h=y.visible!==!1&&((V=y.formItemAttributes)==null?void 0:V.visible)!==!1;if(a.mode!=="view"&&((p=y.formItemAttributes)==null?void 0:p.editable)===!1||a.mode==="view"&&((d=y.formItemAttributes)==null?void 0:d.type)==="password")return!1;let C=(g=y.formItemAttributes)==null?void 0:g.showCondition;return C&&C.field&&C.value!==void 0?s[C.field]===C.value:h}):[]);e.watch([()=>a.id,()=>a.sessionId],()=>{console.log(`FormView.watch: id = ${a.id}, sessionId = ${a.sessionId}`),B()},{immediate:!0});function S(){console.log("FormView.initFormFields: begin");const y=a.model.fields;let h={};y==null||y.forEach(C=>{var V,p,d,g,N,I,U,P,u;if(s[C.prop]=null,C.visible!==!1&&((V=C.formItemAttributes)==null?void 0:V.visible)!==!1){if(((p=C.formItemAttributes)==null?void 0:p.defaultValue)!==void 0?s[C.prop]=(d=C.formItemAttributes)==null?void 0:d.defaultValue:s[C.prop]=void 0,a.mode!=="view"){let G=(g=C.formItemAttributes)==null?void 0:g.validationRule;G!==void 0&&(h[C.prop]=G),Object.assign(c,h)}const k=C.formItemAttributes,m=k==null?void 0:k.type,w=(N=k==null?void 0:k.selectAttributes)==null?void 0:N.api,O=(I=k==null?void 0:k.selectAttributes)==null?void 0:I.valueMappingField,q=(U=k==null?void 0:k.selectAttributes)==null?void 0:U.labelMappingField;if(m==="select"&&w){let G=w;const K=(P=k==null?void 0:k.selectAttributes)==null?void 0:P.queryParamName,v=(u=k==null?void 0:k.selectAttributes)==null?void 0:u.queryParamValueField;K&&(G=`${G}?${K}=${a.id}`),v||ue(G,"GET",{}).then(({data:X})=>{var Z;if((Z=C.formItemAttributes)!=null&&Z.selectAttributes){let H=[];Array.isArray(X.data)?H=X.data:X.data.list&&Array.isArray(X.data.list)&&(H=X.data.list),C.formItemAttributes.selectAttributes.options=H.map(F=>({value:O?F[O]:F.value,label:q?F[q]:F.label}))}})}}})}function B(){var y;console.log(`FormView.refresh: id = ${a.id}, model = `,a.model),$(),f.value=(y=a.model.useI18n)!=null?y:!0,S(),(a.mode==="update"||a.mode==="view")&&a.id!==void 0&&a.id!==""&&a.model.api!==""&&(i.value=!0,ue(`${a.model.api}/${a.id}`,"GET",{}).then(({data:h})=>{Oe(s),Object.assign(s,h.data),i.value=!1}))}function T(){return new Promise((y,h)=>{var V,p,d,g;((p=(V=a.model.formConfig)==null?void 0:V.functions)==null?void 0:p.beforeSubmit)!==void 0&&Object.assign(s,(g=(d=a.model.formConfig)==null?void 0:d.functions)==null?void 0:g.beforeSubmit(s));let C=a.mode==="create"?"POST":"PUT";a.model.api&&ue(a.model.api,C,s).then(({data:N})=>{var I,U,P,u;N.code===0&&(a.closeDialogFunc&&a.closeDialogFunc(),((U=(I=a.model.formConfig)==null?void 0:I.functions)==null?void 0:U.afterSubmit)!==void 0&&((u=(P=a.model.formConfig)==null?void 0:P.functions)==null||u.afterSubmit(N.data)),a.afterSubmitFunc&&a.afterSubmitFunc(),y())})})}function $(){var y;console.log("FormView.reset: begin"),(y=l.value)==null||y.resetFields()}function D(y){return y.label?f?r(y.label):y.label:y.prop.slice(0,1).toUpperCase()+y.prop.slice(1).toLowerCase()}function E(y){var h,C,V,p;if(y){if(M(y,"select")){const d=(C=(h=y.tableColumnAttributes)==null?void 0:h.functions)==null?void 0:C.transformValue;if(d)return d(s[y.prop]);const g=(p=(V=y.formItemAttributes)==null?void 0:V.selectAttributes)==null?void 0:p.viewModeLabelField;if(g)return s[g]}return s[y.prop]}}function j(y){var h;return((h=y.formItemAttributes)==null?void 0:h.updatable)===!1&&a.mode==="update"}function A(y,h){var V,p;const C=(p=(V=h.formItemAttributes)==null?void 0:V.type)!=null?p:"input";switch(y){case"input":return a.mode==="view"?!1:C==="input"||C==="password";case"select":return!0;default:return console.log("Error: unrecognized form component type: ",y),!0}}function M(y,h){var C;return((C=y.formItemAttributes)==null?void 0:C.type)===h}function Q(y){var h;for(let C of a.model.fields){const V=(h=C.formItemAttributes)==null?void 0:h.selectAttributes;if(!(!C.formItemAttributes||C.formItemAttributes.type!=="select"||!V||!V.queryParamValueField)&&V.queryParamValueField===y.prop){const p=V.api;if(p){let d=p;const g=V.queryParamName;g&&(d=`${d}?${g}=${s[V.queryParamValueField]}`),ue(d,"GET",{}).then(({data:N})=>{if(V){let I=[];Array.isArray(N.data)?I=N.data:N.data.list&&Array.isArray(N.data.list)&&(I=N.data.list),V.options=I.map(U=>({value:V.valueMappingField?U[V.valueMappingField]:U.value,label:V.labelMappingField?U[V.labelMappingField]:U.label}))}})}}}}return o({refresh:B,reset:$,submit:T,formData:s}),(y,h)=>{const C=e.resolveComponent("el-input"),V=e.resolveComponent("el-switch"),p=e.resolveComponent("el-date-picker"),d=e.resolveComponent("el-option"),g=e.resolveComponent("el-select"),N=e.resolveComponent("el-input-number"),I=e.resolveComponent("el-form-item"),U=e.resolveComponent("el-form"),P=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createBlock(U,{ref_key:"formRef",ref:l,model:s,rules:c,"validate-on-rule-change":!1,"label-width":"auto","label-position":"left","require-asterisk-position":"right",inline:!a.disableInline},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,u=>(e.openBlock(),e.createBlock(I,{class:"form-item",style:e.normalizeStyle({width:a.disableInline?"100%":"calc(50% - 32px)"}),prop:u.prop,label:D(u)},{default:e.withCtx(()=>{var k,m,w,O,q,G,K,v,X,Z,H,F,te,re,he,Fe;return[A("input",u)?(e.openBlock(),e.createBlock(C,{key:0,type:M(u,"password")?"password":"text",modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L,placeholder:(k=u.formItemAttributes)==null?void 0:k.placeholder,disabled:j(u)},null,8,["type","modelValue","onUpdate:modelValue","placeholder","disabled"])):e.createCommentVNode("",!0),b(u)?(e.openBlock(),e.createElementBlock("span",Fn,e.toDisplayString(E(u)),1)):e.createCommentVNode("",!0),M(u,"switch")?(e.openBlock(),e.createBlock(V,{key:2,modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L,disabled:y.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),M(u,"datepicker")?(e.openBlock(),e.createBlock(p,{key:3,type:"date",modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L},null,8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),M(u,"select")&&y.mode!=="view"?(e.openBlock(),e.createBlock(g,{key:4,filterable:(w=(m=u.formItemAttributes)==null?void 0:m.selectAttributes)==null?void 0:w.allowCreate,"allow-create":(q=(O=u.formItemAttributes)==null?void 0:O.selectAttributes)==null?void 0:q.allowCreate,"default-first-option":(K=(G=u.formItemAttributes)==null?void 0:G.selectAttributes)==null?void 0:K.allowCreate,modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L,disabled:j(u),onChange:L=>Q(u)},{default:e.withCtx(()=>{var L,R;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((R=(L=u.formItemAttributes)==null?void 0:L.selectAttributes)==null?void 0:R.options,le=>(e.openBlock(),e.createBlock(d,{value:le.value,label:le.label},null,8,["value","label"]))),256))]}),_:2},1032,["filterable","allow-create","default-first-option","modelValue","onUpdate:modelValue","disabled","onChange"])):e.createCommentVNode("",!0),M(u,"input-number")&&y.mode!=="view"?(e.openBlock(),e.createBlock(N,{key:5,modelValue:s[u.prop],"onUpdate:modelValue":L=>s[u.prop]=L,min:(Z=(X=(v=u.formItemAttributes)==null?void 0:v.inputNumber)==null?void 0:X.min)!=null?Z:Number.NEGATIVE_INFINITY,max:(te=(F=(H=u.formItemAttributes)==null?void 0:H.inputNumber)==null?void 0:F.max)!=null?te:Number.POSITIVE_INFINITY,step:(Fe=(he=(re=u.formItemAttributes)==null?void 0:re.inputNumber)==null?void 0:he.step)!=null?Fe:1,"value-on-clear":-10},null,8,["modelValue","onUpdate:modelValue","min","max","step"])):e.createCommentVNode("",!0)]}),_:2},1032,["style","prop","label"]))),256))]),_:1},8,["model","rules","inline"])),[[P,i.value]])}}}),[["__scopeId","data-v-727e6087"]]),Ln={class:"console-dialog__body"},Gn={key:0,class:"process-view"},zn={class:"operation-button-wrapper"},Mt=e.defineComponent({__name:"FormDialog",props:{id:{},mode:{},model:{},visible:{type:Boolean},showProcess:{type:Boolean},afterSubmitFunc:{type:Function}},emits:["update:visible","update:id"],setup(t,{expose:o,emit:n}){const{t:r}=fe.useI18n(),a=t,s=e.ref(0),i=n,l=e.ref();e.watch(()=>a.visible,()=>{a.visible&&s.value++});function c(){l.value&&l.value.refresh()}function f(){i("update:visible",!1),l.value.reset()}function b(){l.value.submit()}return o({close:f,refresh:c}),(_,S)=>{const B=e.resolveComponent("el-step"),T=e.resolveComponent("el-steps"),$=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(D,{class:"console-dialog",title:"Edit","align-center":"","model-value":a.visible,width:"800px",onClose:f},{footer:e.withCtx(()=>{var E;return[e.createElementVNode("div",{class:"dialog-footer",style:e.normalizeStyle({width:a.showProcess?"calc(100% - 350px)":"auto"})},[e.createElementVNode("div",zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=a.model.formConfig)==null?void 0:E.dialogButtons,j=>(e.openBlock(),e.createBlock($,{onClick:A=>j.function(l.value.formData)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)(j.label)),1)]),_:2},1032,["onClick"]))),256))]),e.createElementVNode("div",null,[e.createVNode($,{onClick:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("common.basic.cancel")),1)]),_:1}),e.createVNode($,{type:"primary",onClick:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("common.basic.save")),1)]),_:1})])],4)]}),default:e.withCtx(()=>[e.createElementVNode("div",Ln,[e.createVNode(At,{class:"form-view",style:e.normalizeStyle({width:_.showProcess?"calc(100% - 280px)":"100%"}),ref_key:"formViewRef",ref:l,id:a.id,sessionId:s.value,mode:a.mode,model:a.model,afterSubmitFunc:a.afterSubmitFunc,closeDialogFunc:f,disableInline:a.showProcess},null,8,["style","id","sessionId","mode","model","afterSubmitFunc","disableInline"]),_.showProcess?(e.openBlock(),e.createElementBlock("div",Gn,[S[0]||(S[0]=e.createElementVNode("h1",null,"流程动态",-1)),e.createVNode(T,{style:{height:"90%"},direction:"vertical",active:1},{default:e.withCtx(()=>[e.createVNode(B,{title:"Step 1"}),e.createVNode(B,{title:"Step 2"})]),_:1})])):e.createCommentVNode("",!0)])]),_:1},8,["model-value"])}}}),jn={class:"toolbar"},qn={class:"tool-buttons"},Hn={class:"tool-buttons"},Jn={key:2},$e=J(e.defineComponent({__name:"TableView",props:{model:{}},setup(t,{expose:o}){const{t:n}=Se.global,r=t,a=e.reactive([]),s=e.reactive({showPane:!0}),i=e.ref(""),l=e.ref(!0),c=e.ref(!1),f=z.useRouter(),b=e.ref(""),_=e.reactive([]),S=e.reactive([]),B=e.ref(),T=e.ref([]),$=e.ref("create"),D=e.ref(!0),E=e.ref(!1),j=e.ref(""),A=e.reactive({pageSize:10,pageNo:1,totalElements:0}),M=e.computed(()=>a.filter(m=>{var w,O;return((w=m.formItemAttributes)==null?void 0:w.type)!=="password"&&m.visible!==!1&&((O=m.tableColumnAttributes)==null?void 0:O.visible)!==!1}));function Q(m,w){var K,v,X,Z;let O=w.row[m.prop];const q=(v=(K=m.tableColumnAttributes)==null?void 0:K.functions)==null?void 0:v.transformValue,G=(X=m.tableColumnAttributes)==null?void 0:X.transformValueMappings;if(q)O=q(O);else if(G&&G.length>0){for(let H of G)if(O===H.value){O=n(H.label);break}}else if(((Z=m.formItemAttributes)==null?void 0:Z.type)==="select"){const H=m.formItemAttributes.selectAttributes;if(H){if(H.viewModeLabelField)O=w.row[H.viewModeLabelField];else if(H.options&&H.options.length>0){for(let F of H.options)if(F.value===w.row[m.prop]){O=F.label;break}}}}return O}function y(m,w){var O,q;return m.label?n(m.label):(q=(O=m.functions)==null?void 0:O.transformLabel)==null?void 0:q.call(O,w.$index,w.row)}function h(m){Oe(r.model),Object.assign(r.model,m)}function C(){var w,O,q;if(D.value=!0,!r.model||!r.model.api)return;Oe(s),s.showPane=!0,Object.assign(s,(w=r.model.tableConfig)!=null?w:{}),a.splice(0,a.length,...r.model.fields),i.value=(O=r.model.route)!=null?O:"",l.value=(q=r.model.useI18n)!=null?q:!0;let m=Le({},s.queryParams);m.pageSize=A.pageSize,m.pageNo=A.pageNo,m.search=b.value,ue(r.model.api,"GET",m).then(({data:G})=>{const{list:K,totalCount:v}=G.data;_.splice(0,_.length,...K),A.totalElements=v,D.value=!1})}function V(){var m,w;s.createPageRoutePath!==void 0?f.push(s.createPageRoutePath):((m=s.functions)==null?void 0:m.create)!==void 0?(w=s.functions)==null||w.create():($.value="create",j.value="",c.value=!0)}function p(m,w){r.model.api&&ue(r.model.api,"DELETE",w.id).then(({data:O})=>{O.code===0&&(c.value=!1,C())})}function d(){ge.ElMessageBox.confirm("The selected items will be deleted. Continue?",n("common.table.warning"),{confirmButtonText:n("common.basic.confirm"),cancelButtonText:n("common.basic.cancel"),type:"warning"}).then(()=>{var m,w;if(((m=s.functions)==null?void 0:m.batchDelete)!==void 0)(w=s.functions)==null||w.batchDelete(T.value);else{const O=T.value.map(q=>q.id);oe.delete(`${r.model.api}/${O.join(",")}`).then(({data:q})=>{q.code===0&&(c.value=!1,C())})}B.value.clearSelection()}).catch(()=>{B.value.clearSelection()})}function g(m){A.pageSize=m,C()}function N(m){A.pageNo=m,C()}function I(m,w){s.editPageRoutePath!==void 0?f.push({path:s.editPageRoutePath,query:{id:w.id}}):(j.value=w.id,$.value="update",c.value=!0)}function U(){let m=window.location.origin+r.model.api+"/export";const w=s.queryParams;w!==void 0&&Object.keys(w).length>0&&(m+="?",Object.entries(s.queryParams).map(O=>{m+=`${O[0]}=${O[1]}&`})),window.open(m)}function P(m){T.value=m}function u(m){return m.label?l.value?n(m.label):m.label:m.prop.slice(0,1).toUpperCase()+m.prop.slice(1).toLowerCase()}function k(m){m?(E.value=!0,S.splice(0,S.length,..._),_.splice(0,_.length,...T.value)):(E.value=!1,_.splice(0,_.length,...S))}return e.watch(()=>r.model,()=>{C()},{deep:!0,immediate:!0}),o({multipleSelection:T,refresh:C,updateConfigAndRefresh:h}),(m,w)=>{const O=e.resolveComponent("el-checkbox"),q=e.resolveComponent("el-badge"),G=e.resolveComponent("el-button"),K=e.resolveComponent("el-icon"),v=e.resolveComponent("el-tooltip"),X=e.resolveComponent("el-input"),Z=e.resolveComponent("el-table-column"),H=e.resolveComponent("router-link"),F=e.resolveComponent("el-tag"),te=e.resolveComponent("el-popconfirm"),re=e.resolveComponent("el-table"),he=e.resolveComponent("el-pagination"),Fe=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"table-view-wrapper":s.showPane})},[e.createElementVNode("div",jn,[e.createElementVNode("div",qn,[s.selectMode?(e.openBlock(),e.createBlock(q,{key:0,value:T.value.length,type:"primary",class:"selected-badge"},{default:e.withCtx(()=>[e.createVNode(O,{class:"selected-checkbox",border:!0,label:e.unref(n)("common.table.viewSelected"),onChange:k},null,8,["label"])]),_:1},8,["value"])):e.createCommentVNode("",!0),!s.selectMode&&!s.readOnly&&s.creatable!==!1?(e.openBlock(),e.createBlock(G,{key:1,type:"primary",onClick:V},{default:e.withCtx(()=>{var L,R;return[e.createTextVNode(e.toDisplayString(((L=s.labels)==null?void 0:L.create)!=null?e.unref(n)((R=s.labels)==null?void 0:R.create):e.unref(n)("common.table.create")),1)]}),_:1})):e.createCommentVNode("",!0),!s.selectMode&&!s.readOnly&&s.deletable!==!1?(e.openBlock(),e.createBlock(G,{key:2,disabled:T.value.length==0,type:"danger",plain:"",onClick:d},{default:e.withCtx(()=>{var L,R;return[e.createTextVNode(e.toDisplayString(((L=s.labels)==null?void 0:L.delete)!=null?e.unref(n)((R=s.labels)==null?void 0:R.delete):e.unref(n)("common.table.delete")),1)]}),_:1},8,["disabled"])):e.createCommentVNode("",!0),e.createVNode(G,{icon:e.unref(ae.Refresh),onClick:C},null,8,["icon"]),s.tooltip?(e.openBlock(),e.createBlock(v,{key:3,effect:"dark",content:e.unref(n)(s.tooltip),placement:"right"},{default:e.withCtx(()=>[e.createVNode(K,{style:{color:"#8ba74f"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ae.QuestionFilled))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Hn,[s.export?(e.openBlock(),e.createBlock(G,{key:0,class:"button-export",onClick:U},{default:e.withCtx(()=>[e.createVNode(K,null,{default:e.withCtx(()=>[e.createVNode(e.unref(ae.Download))]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(X,{placeholder:`${e.unref(n)("common.table.search")}...`,modelValue:b.value,"onUpdate:modelValue":w[0]||(w[0]=L=>b.value=L)},{append:e.withCtx(()=>[e.createVNode(G,{style:{"margin-left":"-20px"},icon:e.unref(ae.Search),onClick:C},null,8,["icon"])]),_:1},8,["placeholder","modelValue"])])]),e.withDirectives((e.openBlock(),e.createBlock(re,{border:!0,ref_key:"tableRef",ref:B,data:_,onSelectionChange:P,class:"table"},{default:e.withCtx(()=>{var L;return[s.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Z,{key:0,type:"selection",width:"50"})),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,R=>{var le;return e.openBlock(),e.createBlock(Z,{prop:R.prop,label:u(R),width:(le=R.tableColumnAttributes)==null?void 0:le.width,"show-overflow-tooltip":""},{default:e.withCtx(we=>{var ke,Ie,Ft;return[(ke=R.tableColumnAttributes)!=null&&ke.link?(e.openBlock(),e.createBlock(H,{key:0,class:"router-link",to:`/${i.value}/detail?id=${we.row.id}`},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Q(R,we)),1)]),_:2},1032,["to"])):(Ie=R.tableColumnAttributes)!=null&&Ie.routerLink?(e.openBlock(),e.createBlock(H,{key:1,class:"router-link",to:R.tableColumnAttributes.routerLink.replace("{id}",we.row.id)},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(Q(R,we)),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",Jn,e.toDisplayString(Q(R,we)),1)),((Ft=R.tableColumnAttributes)==null?void 0:Ft.type)==="tag"?(e.openBlock(),e.createBlock(F,{key:3},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(we.row[R.prop]),1)]),_:2},1024)):e.createCommentVNode("",!0)]}),_:2},1032,["prop","label","width"])}),256)),s.operations===void 0&&!((L=s.selectMode)!=null&&L)&&!s.readOnly?(e.openBlock(),e.createBlock(Z,{key:1,label:e.unref(n)("common.table.operation"),width:"120"},{default:e.withCtx(R=>[s.updatable!==!1?(e.openBlock(),e.createBlock(G,{key:0,link:"",type:"primary",class:"operation-button",onClick:le=>I(R.$index,R.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("common.table.edit")),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.createVNode(te,{title:"Are you sure to delete this?",onConfirm:le=>p(R.$index,R.row)},{reference:e.withCtx(()=>[s.deletable!==!1?(e.openBlock(),e.createBlock(G,{key:0,link:"",type:"primary",class:"operation-button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("common.table.delete")),1)]),_:1})):e.createCommentVNode("",!0)]),_:2},1032,["onConfirm"])]),_:1},8,["label"])):e.createCommentVNode("",!0),s.operations!==void 0&&!s.readOnly?(e.openBlock(),e.createBlock(Z,{key:2,label:e.unref(n)("common.table.operation"),width:"120"},{default:e.withCtx(R=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.operations,le=>(e.openBlock(),e.createBlock(G,{class:"operation-button",link:"",type:"primary",key:le.label,onClick:we=>{var ke,Ie;return((Ie=(ke=le.functions)==null?void 0:ke.click)==null?void 0:Ie.call(ke,R.$index,R.row))&&C()}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y(le,R)),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["label"])):e.createCommentVNode("",!0)]}),_:1},8,["data"])),[[Fe,D.value]]),E.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he,{key:0,size:"small",background:"",onSizeChange:g,onCurrentChange:N,currentPage:A.pageNo,"onUpdate:currentPage":w[1]||(w[1]=L=>A.pageNo=L),"page-sizes":[10,20,50,100],"page-size":A.pageSize,layout:"total, sizes, prev, pager, next",total:A.totalElements},null,8,["currentPage","page-size","total"])),e.createVNode(Mt,{model:m.model,mode:$.value,id:j.value,afterSubmitFunc:C,visible:c.value,"onUpdate:visible":w[2]||(w[2]=L=>c.value=L)},null,8,["model","mode","id","visible"])],2)}}}),[["__scopeId","data-v-682537f9"]]),Wn={class:"nav-bar"},Yn={key:0,class:"info-card-wrapper"},Qn={class:"icon-wrapper"},Kn={class:"info-wrapper"},Xn={class:"title-wrapper"},Zn={class:"tabs-wrapper"},vn={class:"dialog-footer"},Ut=J(e.defineComponent({__name:"DetailPage",setup(t){const{t:o}=fe.useI18n(),n=z.useRoute(),r=z.useRouter(),a=e.computed(()=>n.query.id),s=e.ref(!1),i=e.ref(!1),l=e.ref("view"),c=e.ref(),f=e.ref(-1),b=e.ref(),_=e.ref(),S=e.ref("summary"),B=e.ref(""),T=e.ref(""),$=e.ref(""),D=e.ref(0),E=e.reactive({api:"",fields:[]}),j=e.reactive([]);let A=[];e.watch([()=>r.currentRoute.value,ee],()=>{h()},{immediate:!0,deep:!0});function M(p){f.value=parseInt(p.index)-1}function Q(){var N;let p=(N=A[f.value].api)==null?void 0:N.replace("/select","");p=p==null?void 0:p.substring(p.lastIndexOf("/"));const d=E.api+"/"+a.value+p,g=_.value.multipleSelection.map(I=>I.id);ue(d,"POST",g).then(()=>{b.value.refresh(),i.value=!1})}function y(p,d,g){var U;g.functions||(g.functions={}),g.functions.create=()=>{i.value=!0,_.value&&_.value.refresh()};let N=ie.cloneDeep(d);N.tableConfig||(N.tableConfig={}),N.tableConfig.selectMode=!0,N.tableConfig.queryParams={},p.queryParamName&&(N.tableConfig.queryParams[p.queryParamName]=a.value);for(var I in N.fields)N.fields[I].tableColumnAttributes&&(U=N.fields[I].tableColumnAttributes)!=null&&U.link&&(N.fields[I].tableColumnAttributes.link=!1);A.push(N),g.labels={create:"common.table.add",delete:"common.table.remove"},g.functions.batchDelete=P=>{var w;let u=(w=A[f.value].api)==null?void 0:w.replace("/select","");u=u==null?void 0:u.substring(u.lastIndexOf("/"));const k=E.api+"/"+a.value+u,m=P.map(O=>O.id);oe.delete(`${k}/${m.join(",")}`).then(({data:O})=>{O.code===0&&b.value.refresh()})},g.operations=[{label:"common.table.remove",functions:{click:(P,u)=>{var w;let k=(w=A[f.value].api)==null?void 0:w.replace("/select","");k=k==null?void 0:k.substring(k.lastIndexOf("/"));const m=E.api+"/"+a.value+k;ue(m,"DELETE",u.id).then(()=>{b.value.refresh()})}}}],N.api+="/select"}function h(){var N,I,U;j.splice(0);const p=n.params.model;if(ee.value[p]===void 0){console.warn("Detail page model not exist:",p);return}else console.debug("Detail page model found:",p,ee.value[p]);Oe(E);const d=ie.cloneDeep(ee.value[p]);Object.assign(E,d),D.value++,f.value=-1,S.value="summary";const g=(I=(N=E.pageConfig)==null?void 0:N.detailPage)==null?void 0:I.tabs;if(g)for(let P of g){const u=ie.cloneDeep(ee.value[P.modelKey]);if(j.push(u),P.type==="table"){u.tableConfig||(u.tableConfig={});let k=u.tableConfig;k.showPane=!1,P.modelRelationType==="associated"?y(P,u,k):P.modelRelationType==="child"&&(A.push({fields:[]}),u.formConfig===void 0&&(u.formConfig={}),u.formConfig.functions===void 0&&(u.formConfig.functions={}),P.queryParamName&&(u.formConfig.functions.beforeSubmit=m=>{m[P.queryParamName]=a.value})),k.queryParams||(k.queryParams={}),P.queryParamName&&(k.queryParams[P.queryParamName]=a.value),P.queryParams&&Object.assign(k.queryParams,P.queryParams),k.readOnly=(U=P.readOnly)!=null?U:!1,P.includeFields&&(u.fields=u.fields.filter(m=>{var w;return(w=P.includeFields)==null?void 0:w.includes(m.prop)})),P.excludeFields&&(u.fields=u.fields.filter(m=>{var w;return!((w=P.excludeFields)!=null&&w.includes(m.prop))})),P.tooltip&&(k.tooltip=P.tooltip)}}}e.watch([()=>{var p,d;return(d=(p=E.pageConfig)==null?void 0:p.detailPage)==null?void 0:d.infoCard},()=>{var p;return(p=c.value)==null?void 0:p.formData}],p=>{e.nextTick(()=>{var g,N,I;const d=(N=(g=E.pageConfig)==null?void 0:g.detailPage)==null?void 0:N.infoCard;d&&(B.value=d.titleFieldProp?c.value.formData[d.titleFieldProp]:"",T.value=d.subtitleFieldProp?c.value.formData[d.subtitleFieldProp]:"",$.value=d.tagFieldProp?c.value.formData[d.tagFieldProp]:"",(I=E.fields)==null||I.forEach(U=>{var P,u;if(U.prop===d.tagFieldProp){const k=(u=(P=U.tableColumnAttributes)==null?void 0:P.functions)==null?void 0:u.transformValue;k&&($.value=k($.value))}}))})},{immediate:!0,deep:!0});function C(){s.value=!0}function V(){c.value.refresh()}return(p,d)=>{var G,K,v,X,Z,H;const g=e.resolveComponent("el-breadcrumb-item"),N=e.resolveComponent("el-breadcrumb"),I=e.resolveComponent("el-button"),U=e.resolveComponent("el-icon"),P=e.resolveComponent("el-dropdown-item"),u=e.resolveComponent("el-dropdown-menu"),k=e.resolveComponent("el-dropdown"),m=e.resolveComponent("el-tag"),w=e.resolveComponent("el-tab-pane"),O=e.resolveComponent("el-tabs"),q=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Wn,[e.createVNode(N,null,{default:e.withCtx(()=>{var F,te;return[e.createVNode(g,{to:{path:`/${(te=(F=E==null?void 0:E.breadcrumbRoute)!=null?F:E==null?void 0:E.route)!=null?te:""}`}},{default:e.withCtx(()=>{var re;return[e.createTextVNode(e.toDisplayString(e.unref(o)((re=E==null?void 0:E.name)!=null?re:"")),1)]}),_:1},8,["to"]),e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.detail")),1)]),_:1})]}),_:1}),e.createElementVNode("div",null,[e.createVNode(I,{type:"primary",onClick:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.table.edit")),1)]),_:1}),e.createVNode(I,{type:"danger",plain:"",disabled:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.table.delete")),1)]),_:1}),((K=(G=E.pageConfig)==null?void 0:G.detailPage)==null?void 0:K.operationButtons)!==void 0?(e.openBlock(),e.createBlock(k,{key:0},{dropdown:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>{var F,te;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=(F=E.pageConfig)==null?void 0:F.detailPage)==null?void 0:te.operationButtons,re=>(e.openBlock(),e.createBlock(P,{onClick:he=>re.function(c.value.formData)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)(re.label)),1)]),_:2},1032,["onClick"]))),256))]}),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{style:{margin:"0 10px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.more")),1),e.createVNode(U,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ae.ArrowDown))]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(I,{icon:e.unref(ae.Refresh),onClick:V},null,8,["icon"])])]),(X=(v=E.pageConfig)==null?void 0:v.detailPage)!=null&&X.infoCard?(e.openBlock(),e.createElementBlock("div",Yn,[e.createElementVNode("div",Qn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((Z=E.pageConfig.detailPage.infoCard.icon)!=null?Z:""),{class:"icon"}))]),e.createElementVNode("div",Kn,[e.createElementVNode("div",Xn,[e.createElementVNode("h1",null,e.toDisplayString(B.value),1),((H=$.value)==null?void 0:H.length)>0?(e.openBlock(),e.createBlock(m,{key:0,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("span",null,e.toDisplayString(T.value),1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Zn,[e.createVNode(O,{modelValue:S.value,"onUpdate:modelValue":d[0]||(d[0]=F=>S.value=F),onTabClick:M},{default:e.withCtx(()=>{var F,te;return[e.createVNode(w,{label:e.unref(o)("common.basic.summary"),name:"summary"},{default:e.withCtx(()=>[e.createVNode(At,{ref_key:"formViewRef",ref:c,id:a.value,sessionId:D.value,mode:l.value,model:E},null,8,["id","sessionId","mode","model"])]),_:1},8,["label"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((te=(F=E.pageConfig)==null?void 0:F.detailPage)==null?void 0:te.tabs,re=>{var he;return e.openBlock(),e.createBlock(w,{label:e.unref(o)((he=re.name)!=null?he:"")},null,8,["label"])}),256))]}),_:1},8,["modelValue"]),f.value>=0?(e.openBlock(),e.createBlock($e,{key:0,ref_key:"tabPaneTableRef",ref:b,model:j[f.value]},null,8,["model"])):e.createCommentVNode("",!0),e.createVNode(q,{modelValue:i.value,"onUpdate:modelValue":d[2]||(d[2]=F=>i.value=F),title:e.unref(o)("common.table.select"),width:"800px"},{footer:e.withCtx(()=>[e.createElementVNode("span",vn,[e.createVNode(I,{onClick:d[1]||(d[1]=F=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",onClick:Q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.save")),1)]),_:1})])]),default:e.withCtx(()=>[f.value>=0?(e.openBlock(),e.createBlock($e,{key:0,ref_key:"selectTableRef",ref:_,model:e.unref(A)[f.value]},null,8,["model"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue","title"])]),e.createVNode(Mt,{id:a.value,mode:"update",visible:s.value,"onUpdate:visible":d[3]||(d[3]=F=>s.value=F),model:E,afterSubmitFunc:V},null,8,["id","visible","model"])],64)}}}),[["__scopeId","data-v-f9250724"]]),er={class:"page-title"},Rt=J(e.defineComponent({__name:"TablePage",setup(t){const{t:o}=fe.useI18n(),n=z.useRoute(),r=z.useRouter(),a=e.ref(),s=e.ref([]),i=e.reactive({api:"",fields:[]}),l=e.reactive(Le({},i));function c(){var b,_,S,B,T;s.value=[],i.pageConfig&&((_=(b=i.pageConfig)==null?void 0:b.tablePage)!=null&&_.tabViewAttributes)&&(s.value=(T=(B=(S=i.pageConfig)==null?void 0:S.tablePage)==null?void 0:B.tabViewAttributes)==null?void 0:T.map($=>{let D;return $.modelKey&&ee.value[$.modelKey]?D=ie.cloneDeep(ee.value[$.modelKey]):D=ie.cloneDeep(i),$.queryParams&&(D.tableConfig||(D.tableConfig={}),D.tableConfig.queryParams=$.queryParams),$.fields&&(D.fields=$.fields),$.modelKey&&(D.breadcrumbRoute=i.route),{key:$.key,label:$.label,icon:$.icon,disabled:$.disabled,model:D}}))}function f(){var S,B;console.log("TablePage.init: loading model:",n.params.model),console.log("TablePage.init: current model list",ee.value);const b=n.params.model;if(ee.value[b]===void 0){console.warn("TablePage.init: model not found",b,ee.value);return}Oe(i);const _=ie.cloneDeep(ee.value[b]);Object.assign(i,_),(B=(S=i.pageConfig)==null?void 0:S.tablePage)!=null&&B.tabViewAttributes||Object.assign(l,i),c()}return e.watch([()=>r.currentRoute.value,ee],()=>{f()},{immediate:!0,deep:!0}),(b,_)=>{var B;const S=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",er,e.toDisplayString(e.unref(o)((B=i.name)!=null?B:"")),1),e.createVNode(S,null,{default:e.withCtx(()=>{var T,$;return[($=(T=i.pageConfig)==null?void 0:T.tablePage)!=null&&$.tabViewAttributes?(e.openBlock(),e.createBlock(ve,{key:0,class:"tabs-wrapper",cards:s.value,tableRef:a.value},null,8,["cards","tableRef"])):e.createCommentVNode("",!0)]}),_:1}),e.createVNode($e,{class:"table-wrapper",ref_key:"tableRef",ref:a,model:l},null,8,["model"])],64)}}}),[["__scopeId","data-v-1a472785"]]),tr=[et,Pt,ze,Dt,Tt,Ze,ve,$e,Ut,Rt],or=t=>{t&&t.component&&tr.forEach(o=>{console.log("component",o.__name,o),t.component(o.__name,o)})};x.Building=et,x.ConsoleApp=Pt,x.DetailPage=Ut,x.Header=ze,x.NoPermission=Dt,x.Secondary=Tt,x.SideMenu=Ze,x.TabCard=ve,x.TablePage=Rt,x.TableView=$e,x.activeMenuMapping=at,x.default=or,x.en=nt,x.i18n=Se,x.menuList=je,x.modelList=ee,x.pinia=Re,x.zh=rt,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});