@vancone/console-component 0.1.1-beta.74 → 0.1.1-beta.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vancone/console-component",
3
3
  "private": false,
4
- "version": "0.1.1-beta.74",
4
+ "version": "0.1.1-beta.75",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "packages/dist/**"
@@ -2093,7 +2093,7 @@ Pt.use(Zs);
2093
2093
  const bo = /* @__PURE__ */ zs("console", {
2094
2094
  state: () => ({
2095
2095
  menu: {
2096
- collapsed: !0
2096
+ collapsed: !1
2097
2097
  },
2098
2098
  account: {
2099
2099
  id: "",
@@ -8,7 +8,7 @@ Only state can be modified.`);p[0]="$state",Pe=!1,o.set(l,p,o.state.value),Pe=!0
8
8
  state: () => new MyClass()
9
9
  Found in store "${B.$id}".`),z&&l&&r.hydrate&&r.hydrate(B.$state,z),m=!0,h=!0,B}/*! #__NO_SIDE_EFFECTS__ */function zn(t,n,r){let o,a;const l=typeof n=="function";o=t,a=l?r:n;function p(i,c){const m=e.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Me&&Me._testing?null:i)||(m?e.inject(bt,null):null),i&&Ue(i),process.env.NODE_ENV!=="production"&&!Me)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.`);i=Me,i._s.has(o)||(l?at(o,n,a,i):Mt(o,a,i),process.env.NODE_ENV!=="production"&&(p._pinia=i));const h=i._s.get(o);if(process.env.NODE_ENV!=="production"&&c){const w="__hot:"+o,E=l?at(w,n,a,i,!0):Mt(w,pe({},a),i,!0);c._hotUpdate(E),delete i.state.value[w],i._s.delete(w)}if(process.env.NODE_ENV!=="production"&&xe){const w=e.getCurrentInstance();if(w&&w.proxy&&!c){const E=w.proxy,x="_pStores"in E?E._pStores:E._pStores={};x[o]=h}}return h}return p.$id=o,p}const qn=/"(?:_|\\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*:/,Hn=/"(?: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*:/,Wn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Yn(t,n){if(t==="__proto__"||t==="constructor"&&n&&typeof n=="object"&&"prototype"in n){Jn(t);return}return n}function Jn(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Kn(t,n={}){if(typeof t!="string")return t;const r=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return r.slice(1,-1);if(r.length<=9){const o=r.toLowerCase();if(o==="true")return!0;if(o==="false")return!1;if(o==="undefined")return;if(o==="null")return null;if(o==="nan")return Number.NaN;if(o==="infinity")return Number.POSITIVE_INFINITY;if(o==="-infinity")return Number.NEGATIVE_INFINITY}if(!Wn.test(t)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(qn.test(t)||Hn.test(t)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,Yn)}return JSON.parse(t)}catch(o){if(n.strict)throw o;return t}}function Qn(t,n){if(t==null)return;let r=t;for(let o=0;o<n.length;o++){if(r==null||r[n[o]]==null)return;r=r[n[o]]}return r}function lt(t,n,r){if(r.length===0)return n;const o=r[0];return r.length>1&&(n=lt(typeof t!="object"||t===null||!Object.prototype.hasOwnProperty.call(t,o)?Number.isInteger(Number(r[1]))?[]:{}:t[o],n,Array.prototype.slice.call(r,1))),Number.isInteger(Number(o))&&Array.isArray(t)?t.slice()[o]:Object.assign({},t,{[o]:n})}function Ut(t,n){if(t==null||n.length===0)return t;if(n.length===1){if(t==null)return t;if(Number.isInteger(n[0])&&Array.isArray(t))return Array.prototype.slice.call(t,0).splice(n[0],1);const r={};for(const o in t)r[o]=t[o];return delete r[n[0]],r}if(t[n[0]]==null){if(Number.isInteger(n[0])&&Array.isArray(t))return Array.prototype.concat.call([],t);const r={};for(const o in t)r[o]=t[o];return r}return lt(t,Ut(t[n[0]],Array.prototype.slice.call(n,1)),[n[0]])}function Rt(t,n){return n.map(r=>r.split(".")).map(r=>[r,Qn(t,r)]).filter(r=>r[1]!==void 0).reduce((r,o)=>lt(r,o[1],o[0]),{})}function At(t,n){return n.map(r=>r.split(".")).reduce((r,o)=>Ut(r,o),t)}function Ft(t,{storage:n,serializer:r,key:o,debug:a,pick:l,omit:p,beforeHydrate:i,afterHydrate:c},m,h=!0){try{h&&(i==null||i(m));const w=n.getItem(o);if(w){const E=r.deserialize(w),x=l?Rt(E,l):E,z=p?At(x,p):x;t.$patch(z)}h&&(c==null||c(m))}catch(w){a&&console.error("[pinia-plugin-persistedstate]",w)}}function Lt(t,{storage:n,serializer:r,key:o,debug:a,pick:l,omit:p}){try{const i=l?Rt(t,l):t,c=p?At(i,p):i,m=r.serialize(c);n.setItem(o,m)}catch(i){a&&console.error("[pinia-plugin-persistedstate]",i)}}function Xn(t,n,r){const{pinia:o,store:a,options:{persist:l=r}}=t;if(!l)return;if(!(a.$id in o.state.value)){const c=o._s.get(a.$id.replace("__hot:",""));c&&Promise.resolve().then(()=>c.$persist());return}const i=(Array.isArray(l)?l:l===!0?[{}]:[l]).map(n);a.$hydrate=({runHooks:c=!0}={})=>{i.forEach(m=>{Ft(a,m,t,c)})},a.$persist=()=>{i.forEach(c=>{Lt(a.$state,c)})},i.forEach(c=>{Ft(a,c,t),a.$subscribe((m,h)=>Lt(h,c),{detached:!0})})}function Zn(t={}){return function(n){var r;Xn(n,o=>{var a,l,p,i,c,m,h;return{key:(t.key?t.key:w=>w)((a=o.key)!=null?a:n.store.$id),debug:(p=(l=o.debug)!=null?l:t.debug)!=null?p:!1,serializer:(c=(i=o.serializer)!=null?i:t.serializer)!=null?c:{serialize:w=>JSON.stringify(w),deserialize:w=>Kn(w)},storage:(h=(m=o.storage)!=null?m:t.storage)!=null?h:window.localStorage,beforeHydrate:o.beforeHydrate,afterHydrate:o.afterHydrate,pick:o.pick,omit:o.omit}},(r=t.auto)!=null?r:!1)}}var vn=Zn();const Ye=Fn();Ye.use(vn);const st=zn("console",{state:()=>({menu:{collapsed:!0},account:{id:"",userId:""}}),persist:!0}),er={key:0,class:"menu-wrapper"},tr={class:"collapse-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},or={key:0,points:"9 18 15 12 9 6"},nr={key:1,points:"15 18 9 12 15 6"},it=K(e.defineComponent({__name:"SideMenu",props:{menuCollapsed:{type:Boolean}},emits:["update:menuCollapsed"],setup(t,{emit:n}){const r=st(Ye),o=t,a=n,l=j.useRoute(),p=e.ref(window.innerWidth),i=e.computed(()=>{var w;const h=l.meta.activeMenu;if(h==="{model}"){let E=l.params.app?`${l.params.app}/${l.params.model}`:l.params.model;return"/"+((w=ht[l.params.model])!=null?w:E)}else return h}),c=()=>{p.value=window.innerWidth,p.value<768&&(o.menuCollapsed||(a("update:menuCollapsed",!0),r.menu.collapsed=!0))};e.onMounted(()=>{window.addEventListener("resize",c),c()}),e.onUnmounted(()=>{window.removeEventListener("resize",c)});function m(){const h=o.menuCollapsed;a("update:menuCollapsed",!h),r.menu.collapsed=!h}return(h,w)=>{const E=e.resolveComponent("el-menu");return e.unref(Ze).length>0?(e.openBlock(),e.createElementBlock("div",er,[e.createVNode(E,{class:"menu","default-active":i.value,collapse:h.menuCollapsed,router:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ze),x=>(e.openBlock(),e.createBlock(un,{key:x.path,menu:x},null,8,["menu"]))),128))]),_:1},8,["default-active","collapse"]),e.createElementVNode("div",{class:"collapse-button",onClick:m},[(e.openBlock(),e.createElementBlock("svg",tr,[h.menuCollapsed?(e.openBlock(),e.createElementBlock("polyline",or)):(e.openBlock(),e.createElementBlock("polyline",nr))]))])])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-98acf7ee"]]),rr={class:"container"},ar={class:"main-wrapper"},Gt=e.defineComponent({__name:"ConsoleApp",props:{title:{},headerProjectConfig:{},helpDocUrl:{}},setup(t){const n=st(Ye),r=j.useRoute(),o=e.ref(n.menu.collapsed),a=t;return(l,p)=>{const i=e.resolveComponent("router-view"),c=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r).query.embedded!=="true"?(e.openBlock(),e.createBlock(Xe,{key:0,title:a.title,helpDocUrl:a.helpDocUrl,headerProjectConfig:a.headerProjectConfig},null,8,["title","helpDocUrl","headerProjectConfig"])):e.createCommentVNode("",!0),e.createElementVNode("div",rr,[e.unref(r).query.embedded!=="true"?(e.openBlock(),e.createBlock(it,{key:0,menuCollapsed:o.value,"onUpdate:menuCollapsed":p[0]||(p[0]=m=>o.value=m)},null,8,["menuCollapsed"])):e.createCommentVNode("",!0),e.createVNode(c,{class:"main-scrollbar"},{default:e.withCtx(()=>[e.createElementVNode("main",ar,[e.createVNode(i)])]),_:1})])],64)}}}),lr={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800"};function sr(t,n){return e.openBlock(),e.createElementBlock("svg",lr,n[0]||(n[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 ir={render:sr},cr={},dr={class:"wrapper"},pr={class:"content"};function fr(t,n){const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",dr,[n[4]||(n[4]=e.createElementVNode("img",{src:ir},null,-1)),e.createElementVNode("div",pr,[n[3]||(n[3]=e.createElementVNode("h1",null,"You have no permission to access the page.",-1)),e.createVNode(r,{type:"primary"},{default:e.withCtx(()=>n[1]||(n[1]=[e.createTextVNode("Apply")])),_:1}),e.createVNode(r,{onClick:n[0]||(n[0]=o=>t.$router.go(-1))},{default:e.withCtx(()=>n[2]||(n[2]=[e.createTextVNode("Go Back")])),_:1})])])}const jt=K(cr,[["render",fr],["__scopeId","data-v-0155b361"]]),mr={};function ur(t,n){const r=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(r)}const zt=K(mr,[["render",ur]]),hr={class:"card-wrapper"},gr=["onClick"],_r={class:"card-inner-wrapper"},yr={class:"card-title"},br={class:"icon"},ct=K(e.defineComponent({__name:"TabCard",props:{cards:{},tableRef:{}},setup(t){const n=j.useRoute(),r=j.useRouter(),o=t,a=e.ref(o.cards[0].key);function l(p){p.disabled||(a.value=p.key,o.tableRef.updateConfigAndRefresh(p.model),r.push({path:n.path,query:Xt(Je({},n.query),{tab:p.key})}))}return e.onMounted(()=>{let p;if(n.query.tab!==void 0){for(let i of o.cards)if(i.key===n.query.tab){a.value=i.key,p=i;break}}e.nextTick(()=>{o.tableRef&&o.cards&&o.cards.length>0&&o.tableRef.updateConfigAndRefresh((p!=null?p:o.cards[0]).model)})}),e.watch(()=>o.cards,p=>{if(n.query.tab!==void 0){for(let i of o.cards)if(i.key===n.query.tab){a.value=i.key;break}}else p&&p.length>0&&(a.value=p[0].key,o.tableRef.updateConfigAndRefresh(o.cards[0].model))},{deep:!0}),(p,i)=>(e.openBlock(),e.createElementBlock("div",hr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.cards,c=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card",{"card-selected":a.value===c.key}]),onClick:m=>l(c)},[e.createElementVNode("div",_r,[e.createElementVNode("div",yr,[e.createElementVNode("div",br,[c.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.markRaw(c.icon)),{key:0,class:"svg-icon"})):e.createCommentVNode("",!0)]),e.createElementVNode("span",{style:e.normalizeStyle({color:c.disabled?"#aaa":"black"})},e.toDisplayString(e.unref(J)(c.label)),5)]),e.createElementVNode("span",null,e.toDisplayString(c.count),1)])],10,gr))),256))]))}}),[["__scopeId","data-v-def6f4dd"]]),wr={key:1,class:"view-span"},Cr={key:8,class:"svg-field"},kr=["innerHTML"],Vr={key:9,class:"svg-field view-mode"},Nr=["innerHTML"],qt=K(e.defineComponent({__name:"FormView",props:{id:{},sessionId:{},mode:{},model:{},disableInline:{type:Boolean},closeDialogFunc:{type:Function},afterSubmitFunc:{type:Function}},emits:["update:id"],setup(t,{expose:n,emit:r}){const o=t,a=e.reactive({}),l=e.ref(!1),p=e.ref(),i=e.reactive({}),c=e.ref(!1),m=e.ref(""),h=e.ref(null),w=_=>o.mode==="view"&&(R(_,void 0)||R(_,"input")||R(_,"select")||R(_,"password")||R(_,"input-number")||R(_,"date")||R(_,"time")||R(_,"datetime")),E=e.computed(()=>o.model.fields?o.model.fields.filter(_=>{var s,u,b,V;let $=_.visible!==!1&&((s=_.formItem)==null?void 0:s.visible)!==!1;if(o.mode!=="view"&&((u=_.formItem)==null?void 0:u.editable)===!1||o.mode==="view"&&((b=_.formItem)==null?void 0:b.type)==="password")return!1;let d=(V=_.formItem)==null?void 0:V.showCondition;if(d&&d.field&&d.value!==void 0){if(d.operator===void 0||d.operator==="==")return a[d.field]===d.value;if(d.operator==="!=")return a[d.field]!==d.value;if(d.operator===">")return a[d.field]>d.value;if(d.operator==="<")return a[d.field]<d.value}return $}):[]);e.watch([()=>o.id,()=>o.sessionId],()=>{z()},{immediate:!0});function x(){const _=o.model.fields;let $={};_==null||_.forEach(d=>{var s,u,b,V,P,O,k,I,T,g,C,f,M;if(a[d.prop]=null,d.visible!==!1&&((s=d.formItem)==null?void 0:s.visible)!==!1){if(((u=d.formItem)==null?void 0:u.defaultValue)!==void 0?a[d.prop]=(b=d.formItem)==null?void 0:b.defaultValue:a[d.prop]=void 0,o.mode!=="view"){let ee=(V=d.formItem)==null?void 0:V.validationRule;ee!==void 0&&($[d.prop]=ee),$e(i),Object.assign(i,$)}const y=d.formItem,H=y==null?void 0:y.type,S=(P=y==null?void 0:y.select)==null?void 0:P.useDatableDict,X=(O=y==null?void 0:y.select)==null?void 0:O.dictId,L=(k=y==null?void 0:y.select)==null?void 0:k.api,A=(I=y==null?void 0:y.select)==null?void 0:I.valueMappingField,Z=(T=y==null?void 0:y.select)==null?void 0:T.labelMappingField;if(H==="select"){if(S){let te=`${e.computed(()=>window.location.href.indexOf("localhost")>0?"http://localhost.vancone.com:8080":"https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${X}`;const le=(g=y==null?void 0:y.select)==null?void 0:g.queryParamName,re=(C=y==null?void 0:y.select)==null?void 0:C.queryParamValueField;le&&(te=`${te}?${le}=${o.id}`),re||fe(te,"GET",{}).then(({data:se})=>{var he;if((he=d.formItem)!=null&&he.select){let ie=[];Array.isArray(se.data)?ie=se.data:se.data.list&&Array.isArray(se.data.list)&&(ie=se.data.list),d.formItem.select.options=ie.map(Ne=>({value:Ne.dbOrdinal,label:J(Ne.value)}))}})}else if(L){let ee=L;const te=(f=y==null?void 0:y.select)==null?void 0:f.queryParamName,le=(M=y==null?void 0:y.select)==null?void 0:M.queryParamValueField;te&&(ee=`${ee}?${te}=${o.id}`),le||fe(ee,"GET",{}).then(({data:re})=>{var se;if((se=d.formItem)!=null&&se.select){let he=[];Array.isArray(re.data)?he=re.data:re.data.list&&Array.isArray(re.data.list)&&(he=re.data.list),d.formItem.select.options=he.map(ie=>({value:A?ie[A]:ie.value,label:J(Z?ie[Z]:ie.label)}))}})}}}})}function z(){q(),x(),(o.mode==="update"||o.mode==="view")&&o.id!==void 0&&o.id!==""&&o.model.api!==""&&(l.value=!0,fe(`${o.model.api}/${o.id}`,"GET",{}).then(({data:_})=>{$e(a),Object.assign(a,_.data),o.model.fields.forEach($=>{$.formItem&&$.formItem.type==="select"&&a[$.prop]!==void 0&&ue($)}),l.value=!1}))}function U(){return new Promise((_,$)=>{var s,u,b,V;((u=(s=o.model.formConfig)==null?void 0:s.functions)==null?void 0:u.beforeSubmit)!==void 0&&Object.assign(a,(V=(b=o.model.formConfig)==null?void 0:b.functions)==null?void 0:V.beforeSubmit(a));let d=o.mode==="create"?"POST":"PUT";o.model.api&&fe(o.model.api,d,a).then(({data:P})=>{var O,k,I,T;P.code===0&&(o.closeDialogFunc&&o.closeDialogFunc(),((k=(O=o.model.formConfig)==null?void 0:O.functions)==null?void 0:k.afterSubmit)!==void 0&&((T=(I=o.model.formConfig)==null?void 0:I.functions)==null||T.afterSubmit(P.data)),o.afterSubmitFunc&&o.afterSubmitFunc(),_())})})}function q(){var _;(_=p.value)==null||_.resetFields()}function D(_){return _!=null&&_.prop?_.label?J(_.label):_.prop.slice(0,1).toUpperCase()+_.prop.slice(1).toLowerCase():""}function W(_){var $,d,s,u,b,V;if(_){if(R(_,"select")){const P=(d=($=_.tableColumn)==null?void 0:$.functions)==null?void 0:d.transformValue;if(P)return P(a[_.prop]);const O=(u=(s=_.formItem)==null?void 0:s.select)==null?void 0:u.viewModeLabelField;if(O)return J(a[O]);const k=(V=(b=_.formItem)==null?void 0:b.select)==null?void 0:V.options;if(k){for(let I of k)if(I.value===a[_.prop])return J(I.label)}}return J(a[_.prop])}}function Q(_){var $;return(($=_.formItem)==null?void 0:$.updatable)===!1&&o.mode==="update"}function ae(_,$){var s,u;const d=(u=(s=$.formItem)==null?void 0:s.type)!=null?u:"input";switch(_){case"input":return o.mode==="view"?!1:d==="input"||d==="password";case"select":return!0;case"input-number":case"date":case"time":case"datetime":case"switch":case"svg":return!0;default:return console.log("Error: unrecognized form component type: ",_),!0}}function R(_,$){var d;return((d=_.formItem)==null?void 0:d.type)===$}function ue(_){var $;for(let d of o.model.fields){const s=($=d.formItem)==null?void 0:$.select;if(!(!d.formItem||d.formItem.type!=="select"||!s||!s.queryParamValueField)&&s.queryParamValueField===_.prop){const u=s.api;if(u){let b=u;const V=s.queryParamName;V&&(b=`${b}?${V}=${a[s.queryParamValueField]}`),fe(b,"GET",{}).then(({data:P})=>{if(s){let O=[];Array.isArray(P.data)?O=P.data:P.data.list&&Array.isArray(P.data.list)&&(O=P.data.list),s.options=O.map(k=>({value:s.valueMappingField?k[s.valueMappingField]:k.value,label:J(s.labelMappingField?k[s.labelMappingField]:k.label)}))}})}}}}function B(_){h.value=_,m.value=a[_.prop],c.value=!0}return e.watch(m,_=>{h.value&&(a[h.value.prop]=_)}),n({refresh:z,reset:q,submit:U,formData:a}),(_,$)=>{const d=e.resolveComponent("el-input"),s=e.resolveComponent("el-switch"),u=e.resolveComponent("el-date-picker"),b=e.resolveComponent("el-time-picker"),V=e.resolveComponent("el-option"),P=e.resolveComponent("el-select"),O=e.resolveComponent("el-input-number"),k=e.resolveComponent("el-button"),I=e.resolveComponent("el-form-item"),T=e.resolveComponent("el-form"),g=e.resolveComponent("el-dialog"),C=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createBlock(T,{ref_key:"formRef",ref:p,model:a,rules:i,"validate-on-rule-change":!1,"label-width":"auto","label-position":"left","require-asterisk-position":"right",inline:!o.disableInline},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,f=>(e.openBlock(),e.createBlock(I,{class:"form-item",style:e.normalizeStyle({width:o.disableInline?"100%":"calc(50% - 32px)"}),prop:f.prop,label:D(f)},{default:e.withCtx(()=>{var M,y,H,S,X,L,A,Z,ee,te,le,re,se,he,ie,Ne,Ae,Fe,oe,F;return[ae("input",f)?(e.openBlock(),e.createBlock(d,{key:0,type:R(f,"password")?"password":"text",modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,placeholder:(M=f.formItem)==null?void 0:M.placeholder,disabled:Q(f)},null,8,["type","modelValue","onUpdate:modelValue","placeholder","disabled"])):e.createCommentVNode("",!0),w(f)?(e.openBlock(),e.createElementBlock("span",wr,e.toDisplayString(W(f)),1)):e.createCommentVNode("",!0),R(f,"switch")?(e.openBlock(),e.createBlock(s,{key:2,modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:o.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),R(f,"date")&&o.mode!=="view"?(e.openBlock(),e.createBlock(u,{key:3,style:{width:"100%"},type:"date","value-format":"YYYY-MM-DD",modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:o.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),R(f,"time")&&o.mode!=="view"?(e.openBlock(),e.createBlock(b,{key:4,style:{width:"100%"},modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:o.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),R(f,"datetime")&&o.mode!=="view"?(e.openBlock(),e.createBlock(u,{key:5,style:{width:"100%"},type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:o.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),R(f,"select")&&o.mode!=="view"?(e.openBlock(),e.createBlock(P,{key:6,multiple:(H=(y=f.formItem)==null?void 0:y.select)==null?void 0:H.multiple,"collapse-tags":(X=(S=f.formItem)==null?void 0:S.select)==null?void 0:X.multiple,filterable:(A=(L=f.formItem)==null?void 0:L.select)==null?void 0:A.allowCreate,"allow-create":(ee=(Z=f.formItem)==null?void 0:Z.select)==null?void 0:ee.allowCreate,"default-first-option":(le=(te=f.formItem)==null?void 0:te.select)==null?void 0:le.allowCreate,modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:Q(f),onChange:G=>ue(f)},{default:e.withCtx(()=>{var G,ye;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ye=(G=f.formItem)==null?void 0:G.select)==null?void 0:ye.options,be=>(e.openBlock(),e.createBlock(V,{value:be.value,label:e.unref(J)(be.label)},null,8,["value","label"]))),256))]}),_:2},1032,["multiple","collapse-tags","filterable","allow-create","default-first-option","modelValue","onUpdate:modelValue","disabled","onChange"])):e.createCommentVNode("",!0),R(f,"input-number")&&o.mode!=="view"?(e.openBlock(),e.createBlock(O,{key:7,style:{width:"100%"},modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,min:(he=(se=(re=f.formItem)==null?void 0:re.inputNumber)==null?void 0:se.min)!=null?he:Number.NEGATIVE_INFINITY,max:(Ae=(Ne=(ie=f.formItem)==null?void 0:ie.inputNumber)==null?void 0:Ne.max)!=null?Ae:Number.POSITIVE_INFINITY,step:(F=(oe=(Fe=f.formItem)==null?void 0:Fe.inputNumber)==null?void 0:oe.step)!=null?F:1,"value-on-clear":-10},null,8,["modelValue","onUpdate:modelValue","min","max","step"])):e.createCommentVNode("",!0),R(f,"svg")&&o.mode!=="view"?(e.openBlock(),e.createElementBlock("div",Cr,[e.createElementVNode("div",{class:"svg-icon",innerHTML:a[f.prop]},null,8,kr),e.createVNode(k,{type:"primary",size:"small",class:"svg-code-btn",onClick:G=>B(f)},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode(" Code ")])),_:2},1032,["onClick"])])):e.createCommentVNode("",!0),R(f,"svg")&&o.mode==="view"?(e.openBlock(),e.createElementBlock("div",Vr,[e.createElementVNode("div",{class:"svg-icon",innerHTML:a[f.prop]},null,8,Nr),e.createVNode(k,{type:"primary",size:"small",class:"svg-code-btn",onClick:G=>B(f)},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode(" Code ")])),_:2},1032,["onClick"])])):e.createCommentVNode("",!0)]}),_:2},1032,["style","prop","label"]))),256))]),_:1},8,["model","rules","inline"])),[[C,l.value]]),e.createVNode(g,{class:"console-dialog",modelValue:c.value,"onUpdate:modelValue":$[1]||($[1]=f=>c.value=f),title:"SVG Code",width:"60%","close-on-click-modal":!1},{default:e.withCtx(()=>[e.createVNode(d,{type:"textarea",rows:15,modelValue:m.value,"onUpdate:modelValue":$[0]||($[0]=f=>m.value=f),readonly:o.mode==="view"},null,8,["modelValue","readonly"])]),_:1},8,["modelValue"])],64)}}}),[["__scopeId","data-v-c2a11be0"]]),Er={class:"console-dialog__body"},xr={key:0,class:"process-view"},Sr={class:"operation-button-wrapper"},Ht=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:n,emit:r}){const{t:o}=Be.useI18n(),a=t,l=e.ref(0),p=r,i=e.shallowRef();e.watch(()=>a.visible,()=>{a.visible&&l.value++});function c(){i.value&&i.value.refresh()}function m(){p("update:visible",!1),i.value.reset()}function h(){i.value.submit()}return n({close:m,refresh:c}),(w,E)=>{const x=e.resolveComponent("el-step"),z=e.resolveComponent("el-steps"),U=e.resolveComponent("el-button"),q=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(q,{class:"console-dialog",title:"Edit","align-center":"","model-value":a.visible,width:"400px",onClose:m},{footer:e.withCtx(()=>{var D;return[e.createElementVNode("div",{class:"dialog-footer",style:e.normalizeStyle({width:a.showProcess?"calc(100% - 350px)":"auto"})},[e.createElementVNode("div",Sr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((D=a.model.formConfig)==null?void 0:D.dialogButtons,W=>(e.openBlock(),e.createBlock(U,{onClick:Q=>W.function(i.value.formData)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)(W.label)),1)]),_:2},1032,["onClick"]))),256))]),e.createElementVNode("div",null,[e.createVNode(U,{onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.cancel")),1)]),_:1}),e.createVNode(U,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.save")),1)]),_:1})])],4)]}),default:e.withCtx(()=>[e.createElementVNode("div",Er,[e.createVNode(qt,{class:"form-view",style:e.normalizeStyle({width:w.showProcess?"calc(100% - 280px)":"100%"}),ref_key:"formViewRef",ref:i,id:a.id,sessionId:l.value,mode:a.mode,model:a.model,afterSubmitFunc:a.afterSubmitFunc,closeDialogFunc:m,disableInline:a.showProcess},null,8,["style","id","sessionId","mode","model","afterSubmitFunc","disableInline"]),w.showProcess?(e.openBlock(),e.createElementBlock("div",xr,[E[0]||(E[0]=e.createElementVNode("h1",null,"流程动态",-1)),e.createVNode(z,{style:{height:"90%"},direction:"vertical",active:1},{default:e.withCtx(()=>[e.createVNode(x,{title:"Step 1"}),e.createVNode(x,{title:"Step 2"})]),_:1})])):e.createCommentVNode("",!0)])]),_:1},8,["model-value"])}}}),Br={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"};function $r(t,n){return e.openBlock(),e.createElementBlock("svg",Br,n[0]||(n[0]=[e.createElementVNode("path",{fill:"#888a8d",d:"M192 672a16 16 0 0 1 16 16v128h604.992V688a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v160a64 64 0 0 1-56.512 63.552l-7.488.448H176a64 64 0 0 1-64-64V688a16 16 0 0 1 16-16zm268.032-505.664v2.56l-.128 13.248v89.024l.064 46.08V718.72A18.176 18.176 0 0 1 443.2 736h-62.08a18.176 18.176 0 0 1-17.216-16.768V334.464h-1.28l-130.432 129.28a16 16 0 0 1-22.592-.128l-.32-.256L164.544 416a16 16 0 0 1 .448-22.4l86.08-84.736a18.2 18.2 0 0 1 2.688-3.2l142.72-139.648c7.04-6.784 56.512-6.656 63.488.32zm184.832-5.312c9.152.448 16.512 7.68 17.216 16.768v384.704h1.344L793.792 433.28a16 16 0 0 1 22.592.128l.256.256 44.736 47.36a16 16 0 0 1-.448 22.4l-86.08 84.736a18.2 18.2 0 0 1-2.624 3.2l-142.72 139.648c-7.104 6.784-56.512 6.656-63.488-.32v-2.56l.064-13.312V579.84l-.064-17.28V178.304a18.176 18.176 0 0 1 16.768-17.216h62.08z"},null,-1)]))}const Or={render:$r},Pr={class:"toolbar"},Ir={class:"tool-buttons"},Tr={class:"tool-buttons"},Dr={key:2},Re=K(e.defineComponent({__name:"TableView",props:{model:{}},setup(t,{expose:n}){const{t:r}=De.global,o=t,a=e.reactive([]),l=e.reactive({}),p=e.ref(""),i=e.ref(!1),c=j.useRouter(),m=e.ref(""),h=e.reactive([]),w=e.reactive([]),E=e.shallowRef(),x=e.shallowRef([]),z=e.ref("create"),U=e.ref(!0),q=e.ref(!1),D=e.ref(""),W=e.reactive({pageSize:10,pageNo:1,totalElements:0});let Q={};const ae=e.computed(()=>a.filter(g=>{var C,f;return((C=g.formItem)==null?void 0:C.type)!=="password"&&g.visible!==!1&&((f=g.tableColumn)==null?void 0:f.visible)!==!1}));function R(g,C){var H,S,X,L;let f=C.row[g.prop];const M=(S=(H=g.tableColumn)==null?void 0:H.functions)==null?void 0:S.transformValue,y=(X=g.tableColumn)==null?void 0:X.transformValueMappings;if(M)f=M(f);else if(y&&y.length>0){for(let A of y)if(f===A.value){f=J(A.label);break}}else if(((L=g.formItem)==null?void 0:L.type)==="select"){const A=g.formItem.select;if(A){if(A.viewModeLabelField)f=C.row[A.viewModeLabelField];else if(A.options&&A.options.length>0){for(let Z of A.options)if(Z.value===C.row[g.prop]){f=Z.label;break}}else if(A.useDatableDict&&A.dictId){if(Q[A.dictId]===void 0){let ee=`${e.computed(()=>window.location.href.indexOf("localhost")>0?"http://localhost.vancone.com:8080":"https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${A.dictId}`;fe(ee,"GET",{}).then(({data:te})=>{let le=[];Array.isArray(te.data)?le=te.data:te.data.list&&Array.isArray(te.data.list)&&(le=te.data.list),Q[A.dictId]=le;for(let re of Q[A.dictId])if(re.dbOrdinal==f){f=re.value;break}})}else for(let Z of Q[A.dictId])if(Z.dbOrdinal==f){f=Z.value;break}}}}return J(f)}function ue(g,C){var f,M;return g.label?J(g.label):J((M=(f=g.functions)==null?void 0:f.transformLabel)==null?void 0:M.call(f,C.$index,C.row))}function B(g){$e(o.model),Object.assign(o.model,g)}function _(){var C,f,M;if(U.value=!0,!o.model||!o.model.api)return;$e(l),Object.assign(l,(C=o.model.tableConfig)!=null?C:{}),l.display=(f=l.display)!=null?f:{},l.display.advancedSearch!==!0&&(l.display.advancedSearch=!1),l.display.fileTaskButton!==!0&&(l.display.fileTaskButton=!1),l.display.pagination!==!1&&(l.display.pagination=!0),l.display.pane!==!1&&(l.display.pane=!0),l.display.searchBox!==!1&&(l.display.searchBox=!0),a.splice(0,a.length,...o.model.fields),p.value=(M=o.model.route)!=null?M:"";let g=Je({},l.queryParams);g.pageSize=W.pageSize,g.pageNo=W.pageNo,g.search=m.value,fe(o.model.api,"GET",g).then(({data:y})=>{const{list:H,totalCount:S}=y.data;h.splice(0,h.length,...H),W.totalElements=S,U.value=!1})}function $(){var g,C;l.createPageRoutePath!==void 0?c.push(l.createPageRoutePath):((g=l.functions)==null?void 0:g.create)!==void 0?(C=l.functions)==null||C.create():(z.value="create",D.value="",i.value=!0)}function d(g,C){var f,M;if(o.model.api){if(C.id===void 0){const y=(M=(f=o.model.formConfig)==null?void 0:f.functions)==null?void 0:M.beforeSubmit;y!==void 0&&y(C)}fe(o.model.api,"DELETE",C.id).then(({data:y})=>{y.code===0&&(i.value=!1,_())})}}function s(){ke.ElMessageBox.confirm("The selected items will be deleted. Continue?",r("common.table.warning"),{confirmButtonText:r("common.basic.confirm"),cancelButtonText:r("common.basic.cancel"),type:"warning"}).then(()=>{var g,C;if(((g=l.functions)==null?void 0:g.batchDelete)!==void 0)(C=l.functions)==null||C.batchDelete(x.value);else{const f=x.value.map(M=>M.id);ce.delete(`${o.model.api}/${f.join(",")}`).then(({data:M})=>{M.code===0&&(i.value=!1,_())})}E.value.clearSelection()}).catch(()=>{E.value.clearSelection()})}function u(g){W.pageSize=g,_()}function b(g){W.pageNo=g,_()}function V(g,C){l.editPageRoutePath!==void 0?c.push({path:l.editPageRoutePath,query:{id:C.id}}):(D.value=C.id,z.value="update",i.value=!0)}function P(){var f;let g=((f=o.model.api)!=null&&f.startsWith("http")?"":window.location.origin)+o.model.api+"/export";const C=l.queryParams;C!==void 0&&Object.keys(C).length>0&&(g+="?",Object.entries(l.queryParams).map(M=>{g+=`${M[0]}=${M[1]}&`})),window.open(g)}function O(g){x.value=g}function k(g){return g!=null&&g.prop?g.label?J(g.label):g.prop.slice(0,1).toUpperCase()+g.prop.slice(1).toLowerCase():""}function I(g){g?(q.value=!0,w.splice(0,w.length,...h),h.splice(0,h.length,...x.value)):(q.value=!1,h.splice(0,h.length,...w))}function T(){var H;if(x.value.length===0){ke.ElMessageBox.alert("Select rows before printing","Print",{confirmButtonText:"OK"});return}let g="";ae.value.forEach(S=>{g+=`<th>${k(S)}</th>`});let C="";x.value.forEach(S=>{C+="<tr>",ae.value.forEach(X=>{C+=`<td>${S[X.prop]}</td>`}),C+="</tr>"});let f=`<table><tr>${g}</tr>${C}</table>`;const M=document.createElement("iframe");M.style.display="none",document.body.appendChild(M);const y=M.contentDocument||((H=M.contentWindow)==null?void 0:H.document);y==null||y.open(),y==null||y.write(`
11
+ This will fail in production.`);i=Me,i._s.has(o)||(l?at(o,n,a,i):Mt(o,a,i),process.env.NODE_ENV!=="production"&&(p._pinia=i));const h=i._s.get(o);if(process.env.NODE_ENV!=="production"&&c){const w="__hot:"+o,E=l?at(w,n,a,i,!0):Mt(w,pe({},a),i,!0);c._hotUpdate(E),delete i.state.value[w],i._s.delete(w)}if(process.env.NODE_ENV!=="production"&&xe){const w=e.getCurrentInstance();if(w&&w.proxy&&!c){const E=w.proxy,x="_pStores"in E?E._pStores:E._pStores={};x[o]=h}}return h}return p.$id=o,p}const qn=/"(?:_|\\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*:/,Hn=/"(?: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*:/,Wn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Yn(t,n){if(t==="__proto__"||t==="constructor"&&n&&typeof n=="object"&&"prototype"in n){Jn(t);return}return n}function Jn(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Kn(t,n={}){if(typeof t!="string")return t;const r=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return r.slice(1,-1);if(r.length<=9){const o=r.toLowerCase();if(o==="true")return!0;if(o==="false")return!1;if(o==="undefined")return;if(o==="null")return null;if(o==="nan")return Number.NaN;if(o==="infinity")return Number.POSITIVE_INFINITY;if(o==="-infinity")return Number.NEGATIVE_INFINITY}if(!Wn.test(t)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(qn.test(t)||Hn.test(t)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,Yn)}return JSON.parse(t)}catch(o){if(n.strict)throw o;return t}}function Qn(t,n){if(t==null)return;let r=t;for(let o=0;o<n.length;o++){if(r==null||r[n[o]]==null)return;r=r[n[o]]}return r}function lt(t,n,r){if(r.length===0)return n;const o=r[0];return r.length>1&&(n=lt(typeof t!="object"||t===null||!Object.prototype.hasOwnProperty.call(t,o)?Number.isInteger(Number(r[1]))?[]:{}:t[o],n,Array.prototype.slice.call(r,1))),Number.isInteger(Number(o))&&Array.isArray(t)?t.slice()[o]:Object.assign({},t,{[o]:n})}function Ut(t,n){if(t==null||n.length===0)return t;if(n.length===1){if(t==null)return t;if(Number.isInteger(n[0])&&Array.isArray(t))return Array.prototype.slice.call(t,0).splice(n[0],1);const r={};for(const o in t)r[o]=t[o];return delete r[n[0]],r}if(t[n[0]]==null){if(Number.isInteger(n[0])&&Array.isArray(t))return Array.prototype.concat.call([],t);const r={};for(const o in t)r[o]=t[o];return r}return lt(t,Ut(t[n[0]],Array.prototype.slice.call(n,1)),[n[0]])}function Rt(t,n){return n.map(r=>r.split(".")).map(r=>[r,Qn(t,r)]).filter(r=>r[1]!==void 0).reduce((r,o)=>lt(r,o[1],o[0]),{})}function At(t,n){return n.map(r=>r.split(".")).reduce((r,o)=>Ut(r,o),t)}function Ft(t,{storage:n,serializer:r,key:o,debug:a,pick:l,omit:p,beforeHydrate:i,afterHydrate:c},m,h=!0){try{h&&(i==null||i(m));const w=n.getItem(o);if(w){const E=r.deserialize(w),x=l?Rt(E,l):E,z=p?At(x,p):x;t.$patch(z)}h&&(c==null||c(m))}catch(w){a&&console.error("[pinia-plugin-persistedstate]",w)}}function Lt(t,{storage:n,serializer:r,key:o,debug:a,pick:l,omit:p}){try{const i=l?Rt(t,l):t,c=p?At(i,p):i,m=r.serialize(c);n.setItem(o,m)}catch(i){a&&console.error("[pinia-plugin-persistedstate]",i)}}function Xn(t,n,r){const{pinia:o,store:a,options:{persist:l=r}}=t;if(!l)return;if(!(a.$id in o.state.value)){const c=o._s.get(a.$id.replace("__hot:",""));c&&Promise.resolve().then(()=>c.$persist());return}const i=(Array.isArray(l)?l:l===!0?[{}]:[l]).map(n);a.$hydrate=({runHooks:c=!0}={})=>{i.forEach(m=>{Ft(a,m,t,c)})},a.$persist=()=>{i.forEach(c=>{Lt(a.$state,c)})},i.forEach(c=>{Ft(a,c,t),a.$subscribe((m,h)=>Lt(h,c),{detached:!0})})}function Zn(t={}){return function(n){var r;Xn(n,o=>{var a,l,p,i,c,m,h;return{key:(t.key?t.key:w=>w)((a=o.key)!=null?a:n.store.$id),debug:(p=(l=o.debug)!=null?l:t.debug)!=null?p:!1,serializer:(c=(i=o.serializer)!=null?i:t.serializer)!=null?c:{serialize:w=>JSON.stringify(w),deserialize:w=>Kn(w)},storage:(h=(m=o.storage)!=null?m:t.storage)!=null?h:window.localStorage,beforeHydrate:o.beforeHydrate,afterHydrate:o.afterHydrate,pick:o.pick,omit:o.omit}},(r=t.auto)!=null?r:!1)}}var vn=Zn();const Ye=Fn();Ye.use(vn);const st=zn("console",{state:()=>({menu:{collapsed:!1},account:{id:"",userId:""}}),persist:!0}),er={key:0,class:"menu-wrapper"},tr={class:"collapse-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},or={key:0,points:"9 18 15 12 9 6"},nr={key:1,points:"15 18 9 12 15 6"},it=K(e.defineComponent({__name:"SideMenu",props:{menuCollapsed:{type:Boolean}},emits:["update:menuCollapsed"],setup(t,{emit:n}){const r=st(Ye),o=t,a=n,l=j.useRoute(),p=e.ref(window.innerWidth),i=e.computed(()=>{var w;const h=l.meta.activeMenu;if(h==="{model}"){let E=l.params.app?`${l.params.app}/${l.params.model}`:l.params.model;return"/"+((w=ht[l.params.model])!=null?w:E)}else return h}),c=()=>{p.value=window.innerWidth,p.value<768&&(o.menuCollapsed||(a("update:menuCollapsed",!0),r.menu.collapsed=!0))};e.onMounted(()=>{window.addEventListener("resize",c),c()}),e.onUnmounted(()=>{window.removeEventListener("resize",c)});function m(){const h=o.menuCollapsed;a("update:menuCollapsed",!h),r.menu.collapsed=!h}return(h,w)=>{const E=e.resolveComponent("el-menu");return e.unref(Ze).length>0?(e.openBlock(),e.createElementBlock("div",er,[e.createVNode(E,{class:"menu","default-active":i.value,collapse:h.menuCollapsed,router:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ze),x=>(e.openBlock(),e.createBlock(un,{key:x.path,menu:x},null,8,["menu"]))),128))]),_:1},8,["default-active","collapse"]),e.createElementVNode("div",{class:"collapse-button",onClick:m},[(e.openBlock(),e.createElementBlock("svg",tr,[h.menuCollapsed?(e.openBlock(),e.createElementBlock("polyline",or)):(e.openBlock(),e.createElementBlock("polyline",nr))]))])])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-98acf7ee"]]),rr={class:"container"},ar={class:"main-wrapper"},Gt=e.defineComponent({__name:"ConsoleApp",props:{title:{},headerProjectConfig:{},helpDocUrl:{}},setup(t){const n=st(Ye),r=j.useRoute(),o=e.ref(n.menu.collapsed),a=t;return(l,p)=>{const i=e.resolveComponent("router-view"),c=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r).query.embedded!=="true"?(e.openBlock(),e.createBlock(Xe,{key:0,title:a.title,helpDocUrl:a.helpDocUrl,headerProjectConfig:a.headerProjectConfig},null,8,["title","helpDocUrl","headerProjectConfig"])):e.createCommentVNode("",!0),e.createElementVNode("div",rr,[e.unref(r).query.embedded!=="true"?(e.openBlock(),e.createBlock(it,{key:0,menuCollapsed:o.value,"onUpdate:menuCollapsed":p[0]||(p[0]=m=>o.value=m)},null,8,["menuCollapsed"])):e.createCommentVNode("",!0),e.createVNode(c,{class:"main-scrollbar"},{default:e.withCtx(()=>[e.createElementVNode("main",ar,[e.createVNode(i)])]),_:1})])],64)}}}),lr={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800"};function sr(t,n){return e.openBlock(),e.createElementBlock("svg",lr,n[0]||(n[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 ir={render:sr},cr={},dr={class:"wrapper"},pr={class:"content"};function fr(t,n){const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",dr,[n[4]||(n[4]=e.createElementVNode("img",{src:ir},null,-1)),e.createElementVNode("div",pr,[n[3]||(n[3]=e.createElementVNode("h1",null,"You have no permission to access the page.",-1)),e.createVNode(r,{type:"primary"},{default:e.withCtx(()=>n[1]||(n[1]=[e.createTextVNode("Apply")])),_:1}),e.createVNode(r,{onClick:n[0]||(n[0]=o=>t.$router.go(-1))},{default:e.withCtx(()=>n[2]||(n[2]=[e.createTextVNode("Go Back")])),_:1})])])}const jt=K(cr,[["render",fr],["__scopeId","data-v-0155b361"]]),mr={};function ur(t,n){const r=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(r)}const zt=K(mr,[["render",ur]]),hr={class:"card-wrapper"},gr=["onClick"],_r={class:"card-inner-wrapper"},yr={class:"card-title"},br={class:"icon"},ct=K(e.defineComponent({__name:"TabCard",props:{cards:{},tableRef:{}},setup(t){const n=j.useRoute(),r=j.useRouter(),o=t,a=e.ref(o.cards[0].key);function l(p){p.disabled||(a.value=p.key,o.tableRef.updateConfigAndRefresh(p.model),r.push({path:n.path,query:Xt(Je({},n.query),{tab:p.key})}))}return e.onMounted(()=>{let p;if(n.query.tab!==void 0){for(let i of o.cards)if(i.key===n.query.tab){a.value=i.key,p=i;break}}e.nextTick(()=>{o.tableRef&&o.cards&&o.cards.length>0&&o.tableRef.updateConfigAndRefresh((p!=null?p:o.cards[0]).model)})}),e.watch(()=>o.cards,p=>{if(n.query.tab!==void 0){for(let i of o.cards)if(i.key===n.query.tab){a.value=i.key;break}}else p&&p.length>0&&(a.value=p[0].key,o.tableRef.updateConfigAndRefresh(o.cards[0].model))},{deep:!0}),(p,i)=>(e.openBlock(),e.createElementBlock("div",hr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.cards,c=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card",{"card-selected":a.value===c.key}]),onClick:m=>l(c)},[e.createElementVNode("div",_r,[e.createElementVNode("div",yr,[e.createElementVNode("div",br,[c.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.markRaw(c.icon)),{key:0,class:"svg-icon"})):e.createCommentVNode("",!0)]),e.createElementVNode("span",{style:e.normalizeStyle({color:c.disabled?"#aaa":"black"})},e.toDisplayString(e.unref(J)(c.label)),5)]),e.createElementVNode("span",null,e.toDisplayString(c.count),1)])],10,gr))),256))]))}}),[["__scopeId","data-v-def6f4dd"]]),wr={key:1,class:"view-span"},Cr={key:8,class:"svg-field"},kr=["innerHTML"],Vr={key:9,class:"svg-field view-mode"},Nr=["innerHTML"],qt=K(e.defineComponent({__name:"FormView",props:{id:{},sessionId:{},mode:{},model:{},disableInline:{type:Boolean},closeDialogFunc:{type:Function},afterSubmitFunc:{type:Function}},emits:["update:id"],setup(t,{expose:n,emit:r}){const o=t,a=e.reactive({}),l=e.ref(!1),p=e.ref(),i=e.reactive({}),c=e.ref(!1),m=e.ref(""),h=e.ref(null),w=_=>o.mode==="view"&&(R(_,void 0)||R(_,"input")||R(_,"select")||R(_,"password")||R(_,"input-number")||R(_,"date")||R(_,"time")||R(_,"datetime")),E=e.computed(()=>o.model.fields?o.model.fields.filter(_=>{var s,u,b,V;let $=_.visible!==!1&&((s=_.formItem)==null?void 0:s.visible)!==!1;if(o.mode!=="view"&&((u=_.formItem)==null?void 0:u.editable)===!1||o.mode==="view"&&((b=_.formItem)==null?void 0:b.type)==="password")return!1;let d=(V=_.formItem)==null?void 0:V.showCondition;if(d&&d.field&&d.value!==void 0){if(d.operator===void 0||d.operator==="==")return a[d.field]===d.value;if(d.operator==="!=")return a[d.field]!==d.value;if(d.operator===">")return a[d.field]>d.value;if(d.operator==="<")return a[d.field]<d.value}return $}):[]);e.watch([()=>o.id,()=>o.sessionId],()=>{z()},{immediate:!0});function x(){const _=o.model.fields;let $={};_==null||_.forEach(d=>{var s,u,b,V,P,O,k,I,T,g,C,f,M;if(a[d.prop]=null,d.visible!==!1&&((s=d.formItem)==null?void 0:s.visible)!==!1){if(((u=d.formItem)==null?void 0:u.defaultValue)!==void 0?a[d.prop]=(b=d.formItem)==null?void 0:b.defaultValue:a[d.prop]=void 0,o.mode!=="view"){let ee=(V=d.formItem)==null?void 0:V.validationRule;ee!==void 0&&($[d.prop]=ee),$e(i),Object.assign(i,$)}const y=d.formItem,H=y==null?void 0:y.type,S=(P=y==null?void 0:y.select)==null?void 0:P.useDatableDict,X=(O=y==null?void 0:y.select)==null?void 0:O.dictId,L=(k=y==null?void 0:y.select)==null?void 0:k.api,A=(I=y==null?void 0:y.select)==null?void 0:I.valueMappingField,Z=(T=y==null?void 0:y.select)==null?void 0:T.labelMappingField;if(H==="select"){if(S){let te=`${e.computed(()=>window.location.href.indexOf("localhost")>0?"http://localhost.vancone.com:8080":"https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${X}`;const le=(g=y==null?void 0:y.select)==null?void 0:g.queryParamName,re=(C=y==null?void 0:y.select)==null?void 0:C.queryParamValueField;le&&(te=`${te}?${le}=${o.id}`),re||fe(te,"GET",{}).then(({data:se})=>{var he;if((he=d.formItem)!=null&&he.select){let ie=[];Array.isArray(se.data)?ie=se.data:se.data.list&&Array.isArray(se.data.list)&&(ie=se.data.list),d.formItem.select.options=ie.map(Ne=>({value:Ne.dbOrdinal,label:J(Ne.value)}))}})}else if(L){let ee=L;const te=(f=y==null?void 0:y.select)==null?void 0:f.queryParamName,le=(M=y==null?void 0:y.select)==null?void 0:M.queryParamValueField;te&&(ee=`${ee}?${te}=${o.id}`),le||fe(ee,"GET",{}).then(({data:re})=>{var se;if((se=d.formItem)!=null&&se.select){let he=[];Array.isArray(re.data)?he=re.data:re.data.list&&Array.isArray(re.data.list)&&(he=re.data.list),d.formItem.select.options=he.map(ie=>({value:A?ie[A]:ie.value,label:J(Z?ie[Z]:ie.label)}))}})}}}})}function z(){q(),x(),(o.mode==="update"||o.mode==="view")&&o.id!==void 0&&o.id!==""&&o.model.api!==""&&(l.value=!0,fe(`${o.model.api}/${o.id}`,"GET",{}).then(({data:_})=>{$e(a),Object.assign(a,_.data),o.model.fields.forEach($=>{$.formItem&&$.formItem.type==="select"&&a[$.prop]!==void 0&&ue($)}),l.value=!1}))}function U(){return new Promise((_,$)=>{var s,u,b,V;((u=(s=o.model.formConfig)==null?void 0:s.functions)==null?void 0:u.beforeSubmit)!==void 0&&Object.assign(a,(V=(b=o.model.formConfig)==null?void 0:b.functions)==null?void 0:V.beforeSubmit(a));let d=o.mode==="create"?"POST":"PUT";o.model.api&&fe(o.model.api,d,a).then(({data:P})=>{var O,k,I,T;P.code===0&&(o.closeDialogFunc&&o.closeDialogFunc(),((k=(O=o.model.formConfig)==null?void 0:O.functions)==null?void 0:k.afterSubmit)!==void 0&&((T=(I=o.model.formConfig)==null?void 0:I.functions)==null||T.afterSubmit(P.data)),o.afterSubmitFunc&&o.afterSubmitFunc(),_())})})}function q(){var _;(_=p.value)==null||_.resetFields()}function D(_){return _!=null&&_.prop?_.label?J(_.label):_.prop.slice(0,1).toUpperCase()+_.prop.slice(1).toLowerCase():""}function W(_){var $,d,s,u,b,V;if(_){if(R(_,"select")){const P=(d=($=_.tableColumn)==null?void 0:$.functions)==null?void 0:d.transformValue;if(P)return P(a[_.prop]);const O=(u=(s=_.formItem)==null?void 0:s.select)==null?void 0:u.viewModeLabelField;if(O)return J(a[O]);const k=(V=(b=_.formItem)==null?void 0:b.select)==null?void 0:V.options;if(k){for(let I of k)if(I.value===a[_.prop])return J(I.label)}}return J(a[_.prop])}}function Q(_){var $;return(($=_.formItem)==null?void 0:$.updatable)===!1&&o.mode==="update"}function ae(_,$){var s,u;const d=(u=(s=$.formItem)==null?void 0:s.type)!=null?u:"input";switch(_){case"input":return o.mode==="view"?!1:d==="input"||d==="password";case"select":return!0;case"input-number":case"date":case"time":case"datetime":case"switch":case"svg":return!0;default:return console.log("Error: unrecognized form component type: ",_),!0}}function R(_,$){var d;return((d=_.formItem)==null?void 0:d.type)===$}function ue(_){var $;for(let d of o.model.fields){const s=($=d.formItem)==null?void 0:$.select;if(!(!d.formItem||d.formItem.type!=="select"||!s||!s.queryParamValueField)&&s.queryParamValueField===_.prop){const u=s.api;if(u){let b=u;const V=s.queryParamName;V&&(b=`${b}?${V}=${a[s.queryParamValueField]}`),fe(b,"GET",{}).then(({data:P})=>{if(s){let O=[];Array.isArray(P.data)?O=P.data:P.data.list&&Array.isArray(P.data.list)&&(O=P.data.list),s.options=O.map(k=>({value:s.valueMappingField?k[s.valueMappingField]:k.value,label:J(s.labelMappingField?k[s.labelMappingField]:k.label)}))}})}}}}function B(_){h.value=_,m.value=a[_.prop],c.value=!0}return e.watch(m,_=>{h.value&&(a[h.value.prop]=_)}),n({refresh:z,reset:q,submit:U,formData:a}),(_,$)=>{const d=e.resolveComponent("el-input"),s=e.resolveComponent("el-switch"),u=e.resolveComponent("el-date-picker"),b=e.resolveComponent("el-time-picker"),V=e.resolveComponent("el-option"),P=e.resolveComponent("el-select"),O=e.resolveComponent("el-input-number"),k=e.resolveComponent("el-button"),I=e.resolveComponent("el-form-item"),T=e.resolveComponent("el-form"),g=e.resolveComponent("el-dialog"),C=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createBlock(T,{ref_key:"formRef",ref:p,model:a,rules:i,"validate-on-rule-change":!1,"label-width":"auto","label-position":"left","require-asterisk-position":"right",inline:!o.disableInline},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,f=>(e.openBlock(),e.createBlock(I,{class:"form-item",style:e.normalizeStyle({width:o.disableInline?"100%":"calc(50% - 32px)"}),prop:f.prop,label:D(f)},{default:e.withCtx(()=>{var M,y,H,S,X,L,A,Z,ee,te,le,re,se,he,ie,Ne,Ae,Fe,oe,F;return[ae("input",f)?(e.openBlock(),e.createBlock(d,{key:0,type:R(f,"password")?"password":"text",modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,placeholder:(M=f.formItem)==null?void 0:M.placeholder,disabled:Q(f)},null,8,["type","modelValue","onUpdate:modelValue","placeholder","disabled"])):e.createCommentVNode("",!0),w(f)?(e.openBlock(),e.createElementBlock("span",wr,e.toDisplayString(W(f)),1)):e.createCommentVNode("",!0),R(f,"switch")?(e.openBlock(),e.createBlock(s,{key:2,modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:o.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),R(f,"date")&&o.mode!=="view"?(e.openBlock(),e.createBlock(u,{key:3,style:{width:"100%"},type:"date","value-format":"YYYY-MM-DD",modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:o.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),R(f,"time")&&o.mode!=="view"?(e.openBlock(),e.createBlock(b,{key:4,style:{width:"100%"},modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:o.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),R(f,"datetime")&&o.mode!=="view"?(e.openBlock(),e.createBlock(u,{key:5,style:{width:"100%"},type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:o.mode==="view"},null,8,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0),R(f,"select")&&o.mode!=="view"?(e.openBlock(),e.createBlock(P,{key:6,multiple:(H=(y=f.formItem)==null?void 0:y.select)==null?void 0:H.multiple,"collapse-tags":(X=(S=f.formItem)==null?void 0:S.select)==null?void 0:X.multiple,filterable:(A=(L=f.formItem)==null?void 0:L.select)==null?void 0:A.allowCreate,"allow-create":(ee=(Z=f.formItem)==null?void 0:Z.select)==null?void 0:ee.allowCreate,"default-first-option":(le=(te=f.formItem)==null?void 0:te.select)==null?void 0:le.allowCreate,modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,disabled:Q(f),onChange:G=>ue(f)},{default:e.withCtx(()=>{var G,ye;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ye=(G=f.formItem)==null?void 0:G.select)==null?void 0:ye.options,be=>(e.openBlock(),e.createBlock(V,{value:be.value,label:e.unref(J)(be.label)},null,8,["value","label"]))),256))]}),_:2},1032,["multiple","collapse-tags","filterable","allow-create","default-first-option","modelValue","onUpdate:modelValue","disabled","onChange"])):e.createCommentVNode("",!0),R(f,"input-number")&&o.mode!=="view"?(e.openBlock(),e.createBlock(O,{key:7,style:{width:"100%"},modelValue:a[f.prop],"onUpdate:modelValue":G=>a[f.prop]=G,min:(he=(se=(re=f.formItem)==null?void 0:re.inputNumber)==null?void 0:se.min)!=null?he:Number.NEGATIVE_INFINITY,max:(Ae=(Ne=(ie=f.formItem)==null?void 0:ie.inputNumber)==null?void 0:Ne.max)!=null?Ae:Number.POSITIVE_INFINITY,step:(F=(oe=(Fe=f.formItem)==null?void 0:Fe.inputNumber)==null?void 0:oe.step)!=null?F:1,"value-on-clear":-10},null,8,["modelValue","onUpdate:modelValue","min","max","step"])):e.createCommentVNode("",!0),R(f,"svg")&&o.mode!=="view"?(e.openBlock(),e.createElementBlock("div",Cr,[e.createElementVNode("div",{class:"svg-icon",innerHTML:a[f.prop]},null,8,kr),e.createVNode(k,{type:"primary",size:"small",class:"svg-code-btn",onClick:G=>B(f)},{default:e.withCtx(()=>$[2]||($[2]=[e.createTextVNode(" Code ")])),_:2},1032,["onClick"])])):e.createCommentVNode("",!0),R(f,"svg")&&o.mode==="view"?(e.openBlock(),e.createElementBlock("div",Vr,[e.createElementVNode("div",{class:"svg-icon",innerHTML:a[f.prop]},null,8,Nr),e.createVNode(k,{type:"primary",size:"small",class:"svg-code-btn",onClick:G=>B(f)},{default:e.withCtx(()=>$[3]||($[3]=[e.createTextVNode(" Code ")])),_:2},1032,["onClick"])])):e.createCommentVNode("",!0)]}),_:2},1032,["style","prop","label"]))),256))]),_:1},8,["model","rules","inline"])),[[C,l.value]]),e.createVNode(g,{class:"console-dialog",modelValue:c.value,"onUpdate:modelValue":$[1]||($[1]=f=>c.value=f),title:"SVG Code",width:"60%","close-on-click-modal":!1},{default:e.withCtx(()=>[e.createVNode(d,{type:"textarea",rows:15,modelValue:m.value,"onUpdate:modelValue":$[0]||($[0]=f=>m.value=f),readonly:o.mode==="view"},null,8,["modelValue","readonly"])]),_:1},8,["modelValue"])],64)}}}),[["__scopeId","data-v-c2a11be0"]]),Er={class:"console-dialog__body"},xr={key:0,class:"process-view"},Sr={class:"operation-button-wrapper"},Ht=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:n,emit:r}){const{t:o}=Be.useI18n(),a=t,l=e.ref(0),p=r,i=e.shallowRef();e.watch(()=>a.visible,()=>{a.visible&&l.value++});function c(){i.value&&i.value.refresh()}function m(){p("update:visible",!1),i.value.reset()}function h(){i.value.submit()}return n({close:m,refresh:c}),(w,E)=>{const x=e.resolveComponent("el-step"),z=e.resolveComponent("el-steps"),U=e.resolveComponent("el-button"),q=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(q,{class:"console-dialog",title:"Edit","align-center":"","model-value":a.visible,width:"400px",onClose:m},{footer:e.withCtx(()=>{var D;return[e.createElementVNode("div",{class:"dialog-footer",style:e.normalizeStyle({width:a.showProcess?"calc(100% - 350px)":"auto"})},[e.createElementVNode("div",Sr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((D=a.model.formConfig)==null?void 0:D.dialogButtons,W=>(e.openBlock(),e.createBlock(U,{onClick:Q=>W.function(i.value.formData)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)(W.label)),1)]),_:2},1032,["onClick"]))),256))]),e.createElementVNode("div",null,[e.createVNode(U,{onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.cancel")),1)]),_:1}),e.createVNode(U,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("common.basic.save")),1)]),_:1})])],4)]}),default:e.withCtx(()=>[e.createElementVNode("div",Er,[e.createVNode(qt,{class:"form-view",style:e.normalizeStyle({width:w.showProcess?"calc(100% - 280px)":"100%"}),ref_key:"formViewRef",ref:i,id:a.id,sessionId:l.value,mode:a.mode,model:a.model,afterSubmitFunc:a.afterSubmitFunc,closeDialogFunc:m,disableInline:a.showProcess},null,8,["style","id","sessionId","mode","model","afterSubmitFunc","disableInline"]),w.showProcess?(e.openBlock(),e.createElementBlock("div",xr,[E[0]||(E[0]=e.createElementVNode("h1",null,"流程动态",-1)),e.createVNode(z,{style:{height:"90%"},direction:"vertical",active:1},{default:e.withCtx(()=>[e.createVNode(x,{title:"Step 1"}),e.createVNode(x,{title:"Step 2"})]),_:1})])):e.createCommentVNode("",!0)])]),_:1},8,["model-value"])}}}),Br={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"};function $r(t,n){return e.openBlock(),e.createElementBlock("svg",Br,n[0]||(n[0]=[e.createElementVNode("path",{fill:"#888a8d",d:"M192 672a16 16 0 0 1 16 16v128h604.992V688a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v160a64 64 0 0 1-56.512 63.552l-7.488.448H176a64 64 0 0 1-64-64V688a16 16 0 0 1 16-16zm268.032-505.664v2.56l-.128 13.248v89.024l.064 46.08V718.72A18.176 18.176 0 0 1 443.2 736h-62.08a18.176 18.176 0 0 1-17.216-16.768V334.464h-1.28l-130.432 129.28a16 16 0 0 1-22.592-.128l-.32-.256L164.544 416a16 16 0 0 1 .448-22.4l86.08-84.736a18.2 18.2 0 0 1 2.688-3.2l142.72-139.648c7.04-6.784 56.512-6.656 63.488.32zm184.832-5.312c9.152.448 16.512 7.68 17.216 16.768v384.704h1.344L793.792 433.28a16 16 0 0 1 22.592.128l.256.256 44.736 47.36a16 16 0 0 1-.448 22.4l-86.08 84.736a18.2 18.2 0 0 1-2.624 3.2l-142.72 139.648c-7.104 6.784-56.512 6.656-63.488-.32v-2.56l.064-13.312V579.84l-.064-17.28V178.304a18.176 18.176 0 0 1 16.768-17.216h62.08z"},null,-1)]))}const Or={render:$r},Pr={class:"toolbar"},Ir={class:"tool-buttons"},Tr={class:"tool-buttons"},Dr={key:2},Re=K(e.defineComponent({__name:"TableView",props:{model:{}},setup(t,{expose:n}){const{t:r}=De.global,o=t,a=e.reactive([]),l=e.reactive({}),p=e.ref(""),i=e.ref(!1),c=j.useRouter(),m=e.ref(""),h=e.reactive([]),w=e.reactive([]),E=e.shallowRef(),x=e.shallowRef([]),z=e.ref("create"),U=e.ref(!0),q=e.ref(!1),D=e.ref(""),W=e.reactive({pageSize:10,pageNo:1,totalElements:0});let Q={};const ae=e.computed(()=>a.filter(g=>{var C,f;return((C=g.formItem)==null?void 0:C.type)!=="password"&&g.visible!==!1&&((f=g.tableColumn)==null?void 0:f.visible)!==!1}));function R(g,C){var H,S,X,L;let f=C.row[g.prop];const M=(S=(H=g.tableColumn)==null?void 0:H.functions)==null?void 0:S.transformValue,y=(X=g.tableColumn)==null?void 0:X.transformValueMappings;if(M)f=M(f);else if(y&&y.length>0){for(let A of y)if(f===A.value){f=J(A.label);break}}else if(((L=g.formItem)==null?void 0:L.type)==="select"){const A=g.formItem.select;if(A){if(A.viewModeLabelField)f=C.row[A.viewModeLabelField];else if(A.options&&A.options.length>0){for(let Z of A.options)if(Z.value===C.row[g.prop]){f=Z.label;break}}else if(A.useDatableDict&&A.dictId){if(Q[A.dictId]===void 0){let ee=`${e.computed(()=>window.location.href.indexOf("localhost")>0?"http://localhost.vancone.com:8080":"https://datable.vancone.com/agent/public/0001").value}/api/datable/agent/metadata/dict?dictId=${A.dictId}`;fe(ee,"GET",{}).then(({data:te})=>{let le=[];Array.isArray(te.data)?le=te.data:te.data.list&&Array.isArray(te.data.list)&&(le=te.data.list),Q[A.dictId]=le;for(let re of Q[A.dictId])if(re.dbOrdinal==f){f=re.value;break}})}else for(let Z of Q[A.dictId])if(Z.dbOrdinal==f){f=Z.value;break}}}}return J(f)}function ue(g,C){var f,M;return g.label?J(g.label):J((M=(f=g.functions)==null?void 0:f.transformLabel)==null?void 0:M.call(f,C.$index,C.row))}function B(g){$e(o.model),Object.assign(o.model,g)}function _(){var C,f,M;if(U.value=!0,!o.model||!o.model.api)return;$e(l),Object.assign(l,(C=o.model.tableConfig)!=null?C:{}),l.display=(f=l.display)!=null?f:{},l.display.advancedSearch!==!0&&(l.display.advancedSearch=!1),l.display.fileTaskButton!==!0&&(l.display.fileTaskButton=!1),l.display.pagination!==!1&&(l.display.pagination=!0),l.display.pane!==!1&&(l.display.pane=!0),l.display.searchBox!==!1&&(l.display.searchBox=!0),a.splice(0,a.length,...o.model.fields),p.value=(M=o.model.route)!=null?M:"";let g=Je({},l.queryParams);g.pageSize=W.pageSize,g.pageNo=W.pageNo,g.search=m.value,fe(o.model.api,"GET",g).then(({data:y})=>{const{list:H,totalCount:S}=y.data;h.splice(0,h.length,...H),W.totalElements=S,U.value=!1})}function $(){var g,C;l.createPageRoutePath!==void 0?c.push(l.createPageRoutePath):((g=l.functions)==null?void 0:g.create)!==void 0?(C=l.functions)==null||C.create():(z.value="create",D.value="",i.value=!0)}function d(g,C){var f,M;if(o.model.api){if(C.id===void 0){const y=(M=(f=o.model.formConfig)==null?void 0:f.functions)==null?void 0:M.beforeSubmit;y!==void 0&&y(C)}fe(o.model.api,"DELETE",C.id).then(({data:y})=>{y.code===0&&(i.value=!1,_())})}}function s(){ke.ElMessageBox.confirm("The selected items will be deleted. Continue?",r("common.table.warning"),{confirmButtonText:r("common.basic.confirm"),cancelButtonText:r("common.basic.cancel"),type:"warning"}).then(()=>{var g,C;if(((g=l.functions)==null?void 0:g.batchDelete)!==void 0)(C=l.functions)==null||C.batchDelete(x.value);else{const f=x.value.map(M=>M.id);ce.delete(`${o.model.api}/${f.join(",")}`).then(({data:M})=>{M.code===0&&(i.value=!1,_())})}E.value.clearSelection()}).catch(()=>{E.value.clearSelection()})}function u(g){W.pageSize=g,_()}function b(g){W.pageNo=g,_()}function V(g,C){l.editPageRoutePath!==void 0?c.push({path:l.editPageRoutePath,query:{id:C.id}}):(D.value=C.id,z.value="update",i.value=!0)}function P(){var f;let g=((f=o.model.api)!=null&&f.startsWith("http")?"":window.location.origin)+o.model.api+"/export";const C=l.queryParams;C!==void 0&&Object.keys(C).length>0&&(g+="?",Object.entries(l.queryParams).map(M=>{g+=`${M[0]}=${M[1]}&`})),window.open(g)}function O(g){x.value=g}function k(g){return g!=null&&g.prop?g.label?J(g.label):g.prop.slice(0,1).toUpperCase()+g.prop.slice(1).toLowerCase():""}function I(g){g?(q.value=!0,w.splice(0,w.length,...h),h.splice(0,h.length,...x.value)):(q.value=!1,h.splice(0,h.length,...w))}function T(){var H;if(x.value.length===0){ke.ElMessageBox.alert("Select rows before printing","Print",{confirmButtonText:"OK"});return}let g="";ae.value.forEach(S=>{g+=`<th>${k(S)}</th>`});let C="";x.value.forEach(S=>{C+="<tr>",ae.value.forEach(X=>{C+=`<td>${S[X.prop]}</td>`}),C+="</tr>"});let f=`<table><tr>${g}</tr>${C}</table>`;const M=document.createElement("iframe");M.style.display="none",document.body.appendChild(M);const y=M.contentDocument||((H=M.contentWindow)==null?void 0:H.document);y==null||y.open(),y==null||y.write(`
12
12
  <!DOCTYPE html>
13
13
  <html>
14
14
  <head>