epic-designer-gold 1.0.2 → 1.0.4

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.
Files changed (102) hide show
  1. package/dist/attributeView-CPrGnVQ8.js +106 -0
  2. package/dist/attributeView-DEg9mFCt.cjs +1 -0
  3. package/dist/axios-BAhOY32t.cjs +6 -0
  4. package/dist/{js.cookie-oHpRFPCO.js → axios-BFVeUxau.js} +942 -737
  5. package/dist/col-BNNn9Yx8.cjs +1 -0
  6. package/dist/{col-Dy6oYMf5.js → col-u5YiB-UK.js} +8 -8
  7. package/dist/index-B8V7odtp.cjs +1 -0
  8. package/dist/index-BEXliJtJ.cjs +1 -0
  9. package/dist/index-BN_dXDiO.cjs +1 -0
  10. package/dist/index-BPRzjSrH.cjs +10 -0
  11. package/dist/index-BPmq8lmK.js +72 -0
  12. package/dist/index-BY9j66Gp.js +4 -0
  13. package/dist/{index-DNeYX6HK.js → index-BiXYEiWV.js} +1 -1
  14. package/dist/index-BoVrWUpL.js +271 -0
  15. package/dist/{index-DLMH0OSJ.js → index-BstMY1Nn.js} +1 -1
  16. package/dist/index-Bsv8EECz.js +71 -0
  17. package/dist/index-C2Sx6r6b.cjs +1 -0
  18. package/dist/index-C5-ZZLug.cjs +1 -0
  19. package/dist/index-C6C5D9M8.js +602 -0
  20. package/dist/index-CIwV58Ko.js +1359 -0
  21. package/dist/index-CgisEnmm.cjs +1 -0
  22. package/dist/index-CtkdvWFN.cjs +1 -0
  23. package/dist/{index-DkyxbMHi.js → index-Cwgv4MbW.js} +24 -24
  24. package/dist/{index-CYDtBJTI.cjs → index-D3Uft3bJ.cjs} +1 -1
  25. package/dist/{index-BKDRMrcc.js → index-D7z34DMU.js} +28 -47
  26. package/dist/index-DAhVvQNH.cjs +1 -0
  27. package/dist/index-DO5DuUPL.js +581 -0
  28. package/dist/index-DddOVmF6.cjs +1 -0
  29. package/dist/index-DdsHIglg.js +104 -0
  30. package/dist/index-Dru9G2MF.js +195 -0
  31. package/dist/index-KGGnmoAO.cjs +1 -0
  32. package/dist/{index-XUQ1VGQg.js → index-Sin3ac_7.js} +1 -1
  33. package/dist/{index-DJxuHxdI.js → index-dUOJH8fj.js} +24 -24
  34. package/dist/index-dcjty1Ho.cjs +1 -0
  35. package/dist/{index-Dyo12Kua.cjs → index-g1W7IHK_.cjs} +1 -1
  36. package/dist/index-ykB9CsYG.cjs +1 -0
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.js +35 -35
  39. package/dist/locale/index.d.ts +4 -0
  40. package/dist/locale/lang/en-US.d.ts +246 -0
  41. package/dist/locale/lang/zh-cn.d.ts +246 -0
  42. package/dist/modal-BLOgN3us.cjs +1 -0
  43. package/dist/modal-UFu4bD6x.js +57 -0
  44. package/dist/{outline-CNayBNNC.js → outline-CG-aHThT.js} +2 -2
  45. package/dist/outline-Coy4TGIa.cjs +1 -0
  46. package/dist/row-BWnbt6dh.cjs +1 -0
  47. package/dist/{row-qOviQw5w.js → row-DAy14ve9.js} +4 -4
  48. package/dist/sign-BlMhTkWG.cjs +1 -0
  49. package/dist/sign-C0z0Ygs4.js +219 -0
  50. package/dist/style.css +1 -1
  51. package/dist/{styleView-BLVqzqPV.js → styleView-CkbdwQhA.js} +34 -33
  52. package/dist/styleView-D0W-N4vW.cjs +1 -0
  53. package/dist/tree.vue_vue_type_script_setup_true_lang-KKt_Qgqv.cjs +1 -0
  54. package/dist/{tree.vue_vue_type_script_setup_true_lang-BntCm43E.js → tree.vue_vue_type_script_setup_true_lang-RWHCYpkY.js} +1 -1
  55. package/dist/ui/antd/date-picker/datePicker.d.ts +2 -2
  56. package/dist/ui/elementPlus/index.cjs +1 -1
  57. package/dist/ui/elementPlus/index.js +553 -542
  58. package/dist/ui/naiveUi/index.cjs +1 -1
  59. package/dist/ui/naiveUi/index.js +1 -1
  60. package/dist/uploadFile-Bh5GyGFd.js +77 -0
  61. package/dist/uploadFile-CmKFRZMw.cjs +1 -0
  62. package/dist/{uploadImage-742IA7ei.js → uploadImage-CbVsUivh.js} +34 -33
  63. package/dist/uploadImage-CcMA6CyX.cjs +1 -0
  64. package/dist/uploadImage-DENhzttU.cjs +1 -0
  65. package/dist/{uploadImage-CnNnAISs.js → uploadImage-qHq6JX83.js} +17 -20
  66. package/package.json +1 -1
  67. package/dist/attributeView-B-IswSw7.js +0 -105
  68. package/dist/attributeView-CQBVIMGW.cjs +0 -1
  69. package/dist/col-RWuL5Zuz.cjs +0 -1
  70. package/dist/index-0GtpyUBx.js +0 -64
  71. package/dist/index-B4ido7VJ.cjs +0 -1
  72. package/dist/index-BGvqo4s7.js +0 -104
  73. package/dist/index-BMtRXkSh.cjs +0 -1
  74. package/dist/index-BSLudrcT.cjs +0 -1
  75. package/dist/index-BXO8Zj1H.cjs +0 -1
  76. package/dist/index-B_9x_cPH.js +0 -1633
  77. package/dist/index-B_TFfRwe.js +0 -194
  78. package/dist/index-C3_E7xcD.js +0 -270
  79. package/dist/index-C3a1hfUC.cjs +0 -10
  80. package/dist/index-CucdgcqX.cjs +0 -1
  81. package/dist/index-CvEzOhT_.cjs +0 -1
  82. package/dist/index-DEPx91yu.cjs +0 -1
  83. package/dist/index-DKVv0PbJ.js +0 -56
  84. package/dist/index-DSzJgAzW.cjs +0 -1
  85. package/dist/index-Dz1OM1dD.cjs +0 -1
  86. package/dist/index-HNPgHrkl.cjs +0 -1
  87. package/dist/index-JhxJizMR.js +0 -601
  88. package/dist/index-aBofZ4Mk.js +0 -4
  89. package/dist/index-sKJ91s0r.cjs +0 -1
  90. package/dist/js.cookie-BH1G_HRi.cjs +0 -6
  91. package/dist/modal-BPJM1Muh.js +0 -59
  92. package/dist/modal-_fid8E1T.cjs +0 -1
  93. package/dist/outline-6Qt3qlWm.cjs +0 -1
  94. package/dist/row-Bm8OjIsU.cjs +0 -1
  95. package/dist/sign--js815Se.cjs +0 -1
  96. package/dist/sign-CO47QOTw.js +0 -218
  97. package/dist/styleView-C1zTBeyd.cjs +0 -1
  98. package/dist/tree.vue_vue_type_script_setup_true_lang-BjjL_VlR.cjs +0 -1
  99. package/dist/uploadFile-CYDDVa_x.js +0 -76
  100. package/dist/uploadFile-eWBMdZ9d.cjs +0 -1
  101. package/dist/uploadImage-BQhv5ymq.cjs +0 -1
  102. package/dist/uploadImage-BXcN2FA_.cjs +0 -1
@@ -1,6 +0,0 @@
1
- "use strict";var ot=Object.defineProperty;var it=(t,e,n)=>e in t?ot(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var A=(t,e,n)=>it(t,typeof e!="symbol"?e+"":e,n);const I=require("vue"),J=(t,e)=>I.defineAsyncComponent({loader:t,loadingComponent:e,delay:80});function at(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(s){s(n)}),(r=t.get("*"))&&r.slice().map(function(s){s(e,n)})}}}const Fe=at();class De{constructor(){A(this,"initialized",I.ref(!1));A(this,"sourceData",[]);A(this,"components",{});A(this,"componentConfigs",{});A(this,"baseComponentTypes",[]);A(this,"componentSchemaGroups",I.ref([]));A(this,"hiddenComponents",[]);A(this,"formSchemas",[{label:"表单",type:"form",componentProps:{layout:"horizontal",name:"default",labelWidth:100,labelLayout:"fixed",labelCol:{span:5},wrapperCol:{span:19},colon:!0,labelAlign:"right",labelPlacement:"left"},children:[],id:"root"}]);A(this,"componentGroupNameMap",{});A(this,"sortedGroups",["表单","布局"]);A(this,"viewsContainers",{activitybars:I.shallowRef([]),rightSidebars:I.shallowRef([])});A(this,"publicMethods",{})}component(e,n){typeof n=="function"&&(n=J(n)),this.components[e]=n}registerComponent(e){this.component(e.defaultSchema.type,e.component),e.defaultSchema.input&&(e.config.action||(e.config.action=[]),e.config.action.unshift({type:"setValue",describe:"设置值",argsConfigs:[{...e.defaultSchema,label:"设置数据",field:"0"}]},{type:"getValue",describe:"获取值"})),this.componentConfigs[e.defaultSchema.type]=e,this.computedComponentSchemaGroups()}removeComponent(e){delete this.componentConfigs[e],delete this.components[e]}setSourceData(e){this.sourceData=e,Fe.emit("updateSource",new Date)}getSourceData(){return Object.prototype.toString.call(this.sourceData)==="[object Array]"?this.sourceData:[]}setBaseComponentTypes(e){this.baseComponentTypes=e}addBaseComponentTypes(e){this.baseComponentTypes.push(e)}removeBaseComponents(){this.baseComponentTypes.forEach(e=>{this.removeComponent(e)}),this.setBaseComponentTypes([]),this.computedComponentSchemaGroups()}getComponents(){return this.components}getComponent(e){return this.components[e]}registerActivitybar(e){typeof e.component=="function"&&(e.component=J(e.component)),typeof e.visible>"u"&&(e.visible=!0);const n=this.viewsContainers.activitybars.value.findIndex(r=>r.id===e.id);n!==-1?this.viewsContainers.activitybars.value[n]=e:this.viewsContainers.activitybars.value.push(e)}getActivitybars(){return this.viewsContainers.activitybars.value}hideActivitybar(e,n="title"){const r=this.viewsContainers.activitybars.value.findIndex(s=>s[n]===e);r!==-1&&(this.viewsContainers.activitybars.value[r].visible=!1)}showActivitybar(e,n="title"){const r=this.viewsContainers.activitybars.value.findIndex(s=>s[n]===e);r!==-1&&(this.viewsContainers.activitybars.value[r].visible=!0)}registerRightSidebar(e){typeof e.component=="function"&&(e.component=J(e.component)),typeof e.visible>"u"&&(e.visible=!0);const n=this.viewsContainers.rightSidebars.value.findIndex(r=>r.id===e.id);n!==-1?this.viewsContainers.rightSidebars.value[n]=e:this.viewsContainers.rightSidebars.value.push(e)}getRightSidebars(){return this.viewsContainers.rightSidebars.value}hideRightSidebar(e,n="title"){const r=this.viewsContainers.rightSidebars.value.findIndex(s=>s[n]===e);r!==-1&&(this.viewsContainers.rightSidebars.value[r].visible=!1)}showRightSidebar(e,n="title"){const r=this.viewsContainers.rightSidebars.value.findIndex(s=>s[n]===e);r!==-1&&(this.viewsContainers.rightSidebars.value[r].visible=!0)}getComponentConfings(){return this.componentConfigs}getComponentConfingByType(e){return this.componentConfigs[e]}computedComponentSchemaGroups(){const e=[];Object.values(this.componentConfigs).forEach(n=>{if(!this.hiddenComponents.includes(n.defaultSchema.type)&&n.groupName){const r=this.componentGroupNameMap[n.groupName]??n.groupName;let s=e.findIndex(o=>o.title===r);s===-1&&(e.push({title:r,list:[]}),s=e.length-1);let i=e[s].list.findIndex(o=>o.type===n.defaultSchema.type);i!==-1?e[s].list[i]=n.defaultSchema:e[s].list.push(n.defaultSchema)}}),e.sort((n,r)=>{const s=this.sortedGroups.indexOf(n.title),i=this.sortedGroups.indexOf(r.title);return s===-1?1:i===-1?-1:s-i}),e.forEach(n=>{n.list.sort((r,s)=>{var c,f;const i=((c=this.componentConfigs[r.type])==null?void 0:c.sort)??1e3,o=((f=this.componentConfigs[s.type])==null?void 0:f.sort)??1e3;return i-o})}),this.componentSchemaGroups.value=e}getComponentSchemaGroups(){return this.componentSchemaGroups}setComponentGroupNameMap(e,n){this.componentGroupNameMap[e]=n}clearComponentGroupNameMap(){this.componentGroupNameMap={}}setSortedGroups(e){this.sortedGroups=e,this.computedComponentSchemaGroups()}clearSortedGroups(){this.sortedGroups=[],this.computedComponentSchemaGroups()}hideComponent(e){this.hiddenComponents.push(e),this.computedComponentSchemaGroups()}showComponent(e){this.hiddenComponents=this.hiddenComponents.filter(n=>n!==e),this.computedComponentSchemaGroups()}setHideComponents(e){this.hiddenComponents=e,this.computedComponentSchemaGroups()}setInitialized(e){this.initialized.value=e}addPublicMethod(e){const n=e.methodName??e.name,r=e.method??e.handler;this.publicMethods[n]={...e,name:n,handler:r}}removePublicMethod(e){delete this.publicMethods[e]}}const ct=new De;function Le(t,e){return function(){return t.apply(e,arguments)}}const{toString:ut}=Object.prototype,{getPrototypeOf:pe}=Object,X=(t=>e=>{const n=ut.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=t=>(t=t.toLowerCase(),e=>X(e)===t),Q=t=>e=>typeof e===t,{isArray:U}=Array,q=Q("undefined");function lt(t){return t!==null&&!q(t)&&t.constructor!==null&&!q(t.constructor)&&x(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ue=N("ArrayBuffer");function ft(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ue(t.buffer),e}const dt=Q("string"),x=Q("function"),ke=Q("number"),Z=t=>t!==null&&typeof t=="object",pt=t=>t===!0||t===!1,V=t=>{if(X(t)!=="object")return!1;const e=pe(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ht=N("Date"),mt=N("File"),yt=N("Blob"),bt=N("FileList"),wt=t=>Z(t)&&x(t.pipe),gt=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||x(t.append)&&((e=X(t))==="formdata"||e==="object"&&x(t.toString)&&t.toString()==="[object FormData]"))},St=N("URLSearchParams"),[Et,Rt,Ct,Ot]=["ReadableStream","Request","Response","Headers"].map(N),Tt=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),U(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let c;for(r=0;r<o;r++)c=i[r],e.call(null,t[c],c,t)}}function je(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const F=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ie=t=>!q(t)&&t!==F;function oe(){const{caseless:t}=Ie(this)&&this||{},e={},n=(r,s)=>{const i=t&&je(e,s)||s;V(e[i])&&V(r)?e[i]=oe(e[i],r):V(r)?e[i]=oe({},r):U(r)?e[i]=r.slice():e[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&M(arguments[r],n);return e}const At=(t,e,n,{allOwnKeys:r}={})=>(M(e,(s,i)=>{n&&x(s)?t[i]=Le(s,n):t[i]=s},{allOwnKeys:r}),t),xt=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Nt=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Pt=(t,e,n,r)=>{let s,i,o;const c={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],(!r||r(o,t,e))&&!c[o]&&(e[o]=t[o],c[o]=!0);t=n!==!1&&pe(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Bt=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},vt=t=>{if(!t)return null;if(U(t))return t;let e=t.length;if(!ke(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_t=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&pe(Uint8Array)),Ft=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},Dt=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Lt=N("HTMLFormElement"),Ut=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ge=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),kt=N("RegExp"),qe=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};M(n,(s,i)=>{let o;(o=e(s,i,t))!==!1&&(r[i]=o||s)}),Object.defineProperties(t,r)},jt=t=>{qe(t,(e,n)=>{if(x(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(x(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},It=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return U(t)?r(t):r(String(t).split(e)),n},qt=()=>{},Mt=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,te="abcdefghijklmnopqrstuvwxyz",Se="0123456789",Me={DIGIT:Se,ALPHA:te,ALPHA_DIGIT:te+te.toUpperCase()+Se},Ht=(t=16,e=Me.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function zt(t){return!!(t&&x(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Gt=t=>{const e=new Array(10),n=(r,s)=>{if(Z(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const i=U(r)?[]:{};return M(r,(o,c)=>{const f=n(o,s+1);!q(f)&&(i[c]=f)}),e[s]=void 0,i}}return r};return n(t,0)},Jt=N("AsyncFunction"),Vt=t=>t&&(Z(t)||x(t))&&x(t.then)&&x(t.catch),He=((t,e)=>t?setImmediate:e?((n,r)=>(F.addEventListener("message",({source:s,data:i})=>{s===F&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),F.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(F.postMessage)),Wt=typeof queueMicrotask<"u"?queueMicrotask.bind(F):typeof process<"u"&&process.nextTick||He,a={isArray:U,isArrayBuffer:Ue,isBuffer:lt,isFormData:gt,isArrayBufferView:ft,isString:dt,isNumber:ke,isBoolean:pt,isObject:Z,isPlainObject:V,isReadableStream:Et,isRequest:Rt,isResponse:Ct,isHeaders:Ot,isUndefined:q,isDate:ht,isFile:mt,isBlob:yt,isRegExp:kt,isFunction:x,isStream:wt,isURLSearchParams:St,isTypedArray:_t,isFileList:bt,forEach:M,merge:oe,extend:At,trim:Tt,stripBOM:xt,inherits:Nt,toFlatObject:Pt,kindOf:X,kindOfTest:N,endsWith:Bt,toArray:vt,forEachEntry:Ft,matchAll:Dt,isHTMLForm:Lt,hasOwnProperty:ge,hasOwnProp:ge,reduceDescriptors:qe,freezeMethods:jt,toObjectSet:It,toCamelCase:Ut,noop:qt,toFiniteNumber:Mt,findKey:je,global:F,isContextDefined:Ie,ALPHABET:Me,generateString:Ht,isSpecCompliantForm:zt,toJSONObject:Gt,isAsyncFn:Jt,isThenable:Vt,setImmediate:He,asap:Wt};function m(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const ze=m.prototype,Ge={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ge[t]={value:t}});Object.defineProperties(m,Ge);Object.defineProperty(ze,"isAxiosError",{value:!0});m.from=(t,e,n,r,s,i)=>{const o=Object.create(ze);return a.toFlatObject(t,o,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(o,t.message,e,n,r,s),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const $t=null;function ie(t){return a.isPlainObject(t)||a.isArray(t)}function Je(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function Ee(t,e,n){return t?t.concat(e).map(function(s,i){return s=Je(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function Kt(t){return a.isArray(t)&&!t.some(ie)}const Xt=a.toFlatObject(a,{},null,function(e){return/^is[A-Z]/.test(e)});function Y(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&Kt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=Je(y),w.forEach(function(R,P){!(a.isUndefined(R)||R===null)&&e.append(o===!0?Ee([y],P,i):o===null?y:y+"[]",u(R))}),!1}return ie(p)?!0:(e.append(Ee(h,y,i),u(p)),!1)}const d=[],b=Object.assign(Xt,{defaultVisitor:l,convertValue:u,isVisitable:ie});function S(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,E){(!(a.isUndefined(w)||w===null)&&s.call(e,w,a.isString(E)?E.trim():E,y,b))===!0&&S(w,y?y.concat(E):[E])}),d.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return S(t),e}function Re(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function he(t,e){this._pairs=[],t&&Y(t,this,e)}const Ve=he.prototype;Ve.append=function(e,n){this._pairs.push([e,n])};Ve.toString=function(e){const n=e?function(r){return e.call(this,r,Re)}:Re;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Qt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function We(t,e,n){if(!e)return t;const r=n&&n.encode||Qt,s=n&&n.serialize;let i;if(s?i=s(e,n):i=a.isURLSearchParams(e)?e.toString():new he(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ce{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(r){r!==null&&e(r)})}}const $e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zt=typeof URLSearchParams<"u"?URLSearchParams:he,Yt=typeof FormData<"u"?FormData:null,en=typeof Blob<"u"?Blob:null,tn={isBrowser:!0,classes:{URLSearchParams:Zt,FormData:Yt,Blob:en},protocols:["http","https","file","blob","url","data"]},me=typeof window<"u"&&typeof document<"u",ae=typeof navigator=="object"&&navigator||void 0,nn=me&&(!ae||["ReactNative","NativeScript","NS"].indexOf(ae.product)<0),rn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sn=me&&window.location.href||"http://localhost",on=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:me,hasStandardBrowserEnv:nn,hasStandardBrowserWebWorkerEnv:rn,navigator:ae,origin:sn},Symbol.toStringTag,{value:"Module"})),O={...on,...tn};function an(t,e){return Y(t,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function cn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function un(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function Ke(t){function e(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),f=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,f?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),e(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=un(s[o])),!c)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(r,s)=>{e(cn(r),s,n,0)}),n}return null}function ln(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const H={transitional:$e,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(e);if(i&&a.isHTMLForm(e)&&(e=new FormData(e)),a.isFormData(e))return s?JSON.stringify(Ke(e)):e;if(a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)||a.isReadableStream(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return an(e,this.formSerializer).toString();if((c=a.isFileList(e))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Y(c?{"files[]":e}:e,f&&new f,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),ln(e)):e}],transformResponse:[function(e){const n=this.transitional||H.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(e)||a.isReadableStream(e))return e;if(e&&a.isString(e)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(c){if(o)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{H.headers[t]={}});const fn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dn=t=>{const e={};let n,r,s;return t&&t.split(`
2
- `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||e[n]&&fn[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Oe=Symbol("internals");function j(t){return t&&String(t).trim().toLowerCase()}function W(t){return t===!1||t==null?t:a.isArray(t)?t.map(W):String(t)}function pn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const hn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ne(t,e,n,r,s){if(a.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!a.isString(e)){if(a.isString(r))return e.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(e)}}function mn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function yn(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,o){return this[r].call(this,e,s,i,o)},configurable:!0})})}class T{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=W(c))}const o=(c,f)=>a.forEach(c,(u,l)=>i(u,l,f));if(a.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(a.isString(e)&&(e=e.trim())&&!hn(e))o(dn(e),n);else if(a.isHeaders(e))for(const[c,f]of e.entries())i(f,c,r);else e!=null&&i(n,e,r);return this}get(e,n){if(e=j(e),e){const r=a.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return pn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=j(e),e){const r=a.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ne(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(o){if(o=j(o),o){const c=a.findKey(r,o);c&&(!n||ne(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||ne(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=W(s),delete n[i];return}const c=e?mn(i):String(i).trim();c!==i&&delete n[i],n[c]=W(s),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Oe]=this[Oe]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=j(o);r[c]||(yn(s,o),r[c]=!0)}return a.isArray(e)?e.forEach(i):i(e),this}}T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(T.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});a.freezeMethods(T);function re(t,e){const n=this||H,r=e||n,s=T.from(r.headers);let i=r.data;return a.forEach(t,function(c){i=c.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function Xe(t){return!!(t&&t.__CANCEL__)}function k(t,e,n){m.call(this,t??"canceled",m.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function Qe(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function bn(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function wn(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(f){const u=Date.now(),l=r[i];o||(o=u),n[s]=f,r[s]=u;let d=i,b=0;for(;d!==s;)b+=n[d++],d=d%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),u-o<e)return;const S=l&&u-l;return S?Math.round(b*1e3/S):void 0}}function gn(t,e){let n=0,r=1e3/e,s,i;const o=(u,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?o(u,l):(s=u,i||(i=setTimeout(()=>{i=null,o(s)},r-d)))},()=>s&&o(s)]}const $=(t,e,n=3)=>{let r=0;const s=wn(50,250);return gn(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,f=o-r,u=s(f),l=o<=c;r=o;const d={loaded:o,total:c,progress:c?o/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-o)/u:void 0,event:i,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(d)},n)},Te=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ae=t=>(...e)=>a.asap(()=>t(...e)),Sn=O.hasStandardBrowserEnv?function(){const e=O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const c=a.isString(o)?s(o):o;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),En=O.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const o=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),a.isString(r)&&o.push("path="+r),a.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Cn(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Ze(t,e){return t&&!Rn(e)?Cn(t,e):e}const xe=t=>t instanceof T?{...t}:t;function L(t,e){e=e||{};const n={};function r(u,l,d){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:d},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d)}else return r(u,l,d)}function i(u,l){if(!a.isUndefined(l))return r(void 0,l)}function o(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in e)return r(u,l);if(d in t)return r(void 0,u)}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,l)=>s(xe(u),xe(l),!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(l){const d=f[l]||s,b=d(t[l],e[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const Ye=t=>{const e=L({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=e;e.headers=o=T.from(o),e.url=We(Ze(e.baseURL,e.url),t.params,t.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((f=o.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(e)),r||r!==!1&&Sn(e.url))){const u=s&&i&&En.read(i);u&&o.set(s,u)}return e},On=typeof XMLHttpRequest<"u",Tn=On&&function(t){return new Promise(function(n,r){const s=Ye(t);let i=s.data;const o=T.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,S,p;function y(){S&&S(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const R=T.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:R,config:t,request:h};Qe(function(_){n(_),y()},function(_){r(_),y()},C),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,t,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const C=s.transitional||$e;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,C.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,t,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&a.forEach(o.toJSON(),function(P,C){h.setRequestHeader(C,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=$(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,S]=$(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(l=R=>{h&&(r(!R||R.type?new k(null,t,h):R),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const E=bn(s.url);if(E&&O.protocols.indexOf(E)===-1){r(new m("Unsupported protocol "+E+":",m.ERR_BAD_REQUEST,t));return}h.send(i||null)})},An=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const i=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let o=e&&setTimeout(()=>{o=null,i(new m(`timeout ${e} of ms exceeded`,m.ETIMEDOUT))},e);const c=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},xn=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},Nn=async function*(t,e){for await(const n of Pn(t))yield*xn(n,e)},Pn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Ne=(t,e,n,r)=>{const s=Nn(t,e);let i=0,o,c=f=>{o||(o=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=i+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},ee=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",et=ee&&typeof ReadableStream=="function",Bn=ee&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),tt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},vn=et&&tt(()=>{let t=!1;const e=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Pe=64*1024,ce=et&&tt(()=>a.isReadableStream(new Response("").body)),K={stream:ce&&(t=>t.body)};ee&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!K[e]&&(K[e]=a.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new m(`Response type '${e}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const _n=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(O.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await Bn(t)).byteLength},Fn=async(t,e)=>{const n=a.toFiniteNumber(t.getContentLength());return n??_n(e)},Dn=ee&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:i,timeout:o,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=Ye(t);u=u?(u+"").toLowerCase():"text";let S=An([s,i&&i.toAbortSignal()],o),p;const y=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&vn&&n!=="get"&&n!=="head"&&(h=await Fn(l,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),B;if(a.isFormData(r)&&(B=C.headers.get("content-type"))&&l.setContentType(B),C.body){const[_,z]=Te(h,$(Ae(f)));r=Ne(C.body,Pe,_,z)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(e,{...b,signal:S,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let E=await fetch(p);const R=ce&&(u==="stream"||u==="response");if(ce&&(c||R&&y)){const C={};["status","statusText","headers"].forEach(we=>{C[we]=E[we]});const B=a.toFiniteNumber(E.headers.get("content-length")),[_,z]=c&&Te(B,$(Ae(c),!0))||[];E=new Response(Ne(E.body,Pe,_,()=>{z&&z(),y&&y()}),C)}u=u||"text";let P=await K[a.findKey(K,u)||"text"](E,t);return!R&&y&&y(),await new Promise((C,B)=>{Qe(C,B,{data:P,headers:T.from(E.headers),status:E.status,statusText:E.statusText,config:t,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,t,p),{cause:w.cause||w}):m.from(w,w&&w.code,t,p)}}),ue={http:$t,xhr:Tn,fetch:Dn};a.forEach(ue,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Be=t=>`- ${t}`,Ln=t=>a.isFunction(t)||t===null||t===!1,nt={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let i=0;i<e;i++){n=t[i];let o;if(r=n,!Ln(n)&&(r=ue[(o=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+i]=r}if(!r){const i=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
4
- `+i.map(Be).join(`
5
- `):" "+Be(i[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ue};function se(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new k(null,t)}function ve(t){return se(t),t.headers=T.from(t.headers),t.data=re.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),nt.getAdapter(t.adapter||H.adapter)(t).then(function(r){return se(t),r.data=re.call(t,t.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return Xe(r)||(se(t),r&&r.response&&(r.response.data=re.call(t,t.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const rt="1.7.7",ye={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ye[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const _e={};ye.transitional=function(e,n,r){function s(i,o){return"[Axios v"+rt+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(e===!1)throw new m(s(o," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!_e[o]&&(_e[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,c):!0}};function Un(t,e,n){if(typeof t!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],o=e[i];if(o){const c=t[i],f=c===void 0||o(c,i,t);if(f!==!0)throw new m("option "+i+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+i,m.ERR_BAD_OPTION)}}const le={assertOptions:Un,validators:ye},v=le.validators;class D{constructor(e){this.defaults=e,this.interceptors={request:new Ce,response:new Ce}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=L(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&le.assertOptions(r,{silentJSONParsing:v.transitional(v.boolean),forcedJSONParsing:v.transitional(v.boolean),clarifyTimeoutError:v.transitional(v.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:le.assertOptions(s,{encode:v.function,serialize:v.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=T.concat(o,i);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,d=0,b;if(!f){const p=[ve.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),b=p.length,l=Promise.resolve(n);d<b;)l=l.then(p[d++],p[d++]);return l}b=c.length;let S=n;for(d=0;d<b;){const p=c[d++],y=c[d++];try{S=p(S)}catch(h){y.call(this,h);break}}try{l=ve.call(this,S)}catch(p){return Promise.reject(p)}for(d=0,b=u.length;d<b;)l=l.then(u[d++],u[d++]);return l}getUri(e){e=L(this.defaults,e);const n=Ze(e.baseURL,e.url);return We(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(e){D.prototype[e]=function(n,r){return this.request(L(r||{},{method:e,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,c){return this.request(L(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}D.prototype[e]=n(),D.prototype[e+"Form"]=n(!0)});class be{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,c){r.reason||(r.reason=new k(i,o,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new be(function(s){e=s}),cancel:e}}}function kn(t){return function(n){return t.apply(null,n)}}function jn(t){return a.isObject(t)&&t.isAxiosError===!0}const fe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fe).forEach(([t,e])=>{fe[e]=t});function st(t){const e=new D(t),n=Le(D.prototype.request,e);return a.extend(n,D.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return st(L(t,s))},n}const g=st(H);g.Axios=D;g.CanceledError=k;g.CancelToken=be;g.isCancel=Xe;g.VERSION=rt;g.toFormData=Y;g.AxiosError=m;g.Cancel=g.CanceledError;g.all=function(e){return Promise.all(e)};g.spread=kn;g.isAxiosError=jn;g.mergeConfig=L;g.AxiosHeaders=T;g.formToJSON=t=>Ke(a.isHTMLForm(t)?new FormData(t):t);g.getAdapter=nt.getAdapter;g.HttpStatusCode=fe;g.default=g;/*! js-cookie v3.0.5 | MIT */function G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var In={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function de(t,e){function n(s,i,o){if(!(typeof document>"u")){o=G({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var f in o)o[f]&&(c+="; "+f,o[f]!==!0&&(c+="="+o[f].split(";")[0]));return document.cookie=s+"="+t.write(i,s)+c}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],o={},c=0;c<i.length;c++){var f=i[c].split("="),u=f.slice(1).join("=");try{var l=decodeURIComponent(f[0]);if(o[l]=t.read(u,l),s===l)break}catch{}}return s?o[s]:o}}return Object.create({set:n,get:r,remove:function(s,i){n(s,"",G({},i,{expires:-1}))},withAttributes:function(s){return de(this.converter,G({},this.attributes,s))},withConverter:function(s){return de(G({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var qn=de(In,{path:"/"});exports.EventBus=Fe;exports.PluginManager=De;exports.api=qn;exports.axios=g;exports.loadAsyncComponent=J;exports.pluginManager=ct;
@@ -1,59 +0,0 @@
1
- import { defineComponent as s, h as o, renderSlot as a } from "vue";
2
- import { ElDialog as h, ElButton as r } from "element-plus";
3
- const C = s({
4
- props: {
5
- componentSchema: {
6
- type: Object,
7
- default: () => ({})
8
- }
9
- },
10
- emits: ["ok", "close", "update:modelValue"],
11
- setup(d, { attrs: u, slots: l, emit: n }) {
12
- return () => {
13
- var i;
14
- const e = {
15
- ...d.componentSchema,
16
- ...u,
17
- title: ((i = d.componentSchema) == null ? void 0 : i.label) ?? "",
18
- class: "epic-modal-el epic-modal-main",
19
- "destroy-on-close": !0,
20
- "onUpdate:modelValue": m
21
- }, c = e.children ?? [];
22
- delete e.children;
23
- let t = null;
24
- c.length ? t = () => c.map(
25
- (p) => a(l, "node", { componentSchema: p })
26
- ) : t = () => [a(l, "default")];
27
- function f() {
28
- n("ok");
29
- }
30
- function m(p) {
31
- n("update:modelValue", !1), n("close");
32
- }
33
- return o(h, e, {
34
- default: () => [
35
- a(l, "edit-node", {}, t),
36
- o("div", { class: "epic-modal-footer" }, [
37
- o(
38
- r,
39
- { onClick: m },
40
- {
41
- default: () => "关闭"
42
- }
43
- ),
44
- o(
45
- r,
46
- { type: "primary", onClick: f },
47
- {
48
- default: () => e.okText ?? "确定"
49
- }
50
- )
51
- ])
52
- ]
53
- });
54
- };
55
- }
56
- });
57
- export {
58
- C as default
59
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("element-plus"),s=e.defineComponent({props:{componentSchema:{type:Object,default:()=>({})}},emits:["ok","close","update:modelValue"],setup(a,{attrs:m,slots:o,emit:t}){return()=>{var u;const l={...a.componentSchema,...m,title:((u=a.componentSchema)==null?void 0:u.label)??"",class:"epic-modal-el epic-modal-main","destroy-on-close":!0,"onUpdate:modelValue":r},c=l.children??[];delete l.children;let n=null;c.length?n=()=>c.map(i=>e.renderSlot(o,"node",{componentSchema:i})):n=()=>[e.renderSlot(o,"default")];function p(){t("ok")}function r(i){t("update:modelValue",!1),t("close")}return e.h(d.ElDialog,l,{default:()=>[e.renderSlot(o,"edit-node",{},n),e.h("div",{class:"epic-modal-footer"},[e.h(d.ElButton,{onClick:r},{default:()=>"关闭"}),e.h(d.ElButton,{type:"primary",onClick:p},{default:()=>l.okText??"确定"})])]})}}});exports.default=s;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./tree.vue_vue_type_script_setup_true_lang-BjjL_VlR.cjs"),f=require("./js.cookie-BH1G_HRi.cjs"),m=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),v={class:"epic-outline"},y=["onMouseenter"],g={class:"max-w-full truncate"},h={class:"epic-node-type-text flex-1 w-0 truncate"},k=e.defineComponent({__name:"outline",setup(N){const n=e.inject("designer"),l=e.inject("pageSchema"),a=e.computed(()=>{var s;const o=(s=n.state.checkedNode)==null?void 0:s.id;return o?[o]:[]});function u(o){n.setCheckedNode(o.componentSchema)}return(o,s)=>{var i;return e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(_._sfc_main),{options:e.unref(l).schemas,draggable:"","selected-keys":a.value,"hover-key":(i=e.unref(n).state.hoverNode)==null?void 0:i.id,onNodeClick:u},{"tree-node":e.withCtx(({schema:t})=>{var r,c,d;return[e.createElementVNode("div",{class:e.normalizeClass(["epic-text-padding flex",{hidden:(r=t.componentProps)==null?void 0:r.hidden}]),onMouseenter:e.withModifiers(p=>e.unref(n).setHoverNode(t),["stop"]),onMouseleave:s[0]||(s[0]=e.withModifiers(p=>e.unref(n).setHoverNode(null),["stop"]))},[e.createElementVNode("span",g,[(c=t.componentProps)!=null&&c.hidden?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,name:"icon--epic--visibility-off-outline-rounded",class:"translate-y-2px"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.label??((d=e.unref(f.pluginManager).getComponentConfingByType(t.type))==null?void 0:d.defaultSchema.label)),1)]),e.createElementVNode("span",h,e.toDisplayString(t.id),1)],42,y)]}),_:1},8,["options","selected-keys","hover-key"])])}}});exports.default=k;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("element-plus"),u=e.defineComponent({props:{componentSchema:{type:Object,required:!0,default:()=>({})}},setup(n,{attrs:a,slots:o}){return()=>{var r;const t={...n.componentSchema,title:(r=n.componentSchema)==null?void 0:r.label},c=t.children??[];return delete t.children,e.h(l.ElRow,{...t,style:{padding:"8px"}},{default:()=>[e.renderSlot(o,"edit-node",{},()=>c.map(d=>e.renderSlot(o,"node",{componentSchema:d})))]})}}});exports.default=u;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("./js.cookie-BH1G_HRi.cjs"),m=require("element-plus"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y={class:"sign-main"},I=["src"],z={class:"sign",style:{height:"100%",width:"100%"}},H=["id"],O={class:"btn"},F={class:"btns"},$={__name:"sign",props:{componentSchema:{type:Object,require:!0,default:()=>({})},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(V,{expose:_,emit:T}){const w=y.pluginManager.getComponent("button"),B=y.pluginManager.getComponent("Dialog"),E=T,a=V,p=e.inject("disabled",{value:!1});e.watch(()=>a.componentSchema,()=>{e.nextTick(()=>{f.value=a.modelValue})},{deep:!0,immediate:!0});const l=e.ref(null),c=e.ref(null),n=e.ref(),C=e.ref("");function M(){var o,t,u,h;if(c.value&&((o=c.value)!=null&&o.clientHeight)&&((t=c.value)!=null&&t.clientWidth)){if(l.value=document.getElementById(`canvas${a.componentSchema.field}`),l.value.height=((u=c.value)==null?void 0:u.clientHeight)||600,l.value.width=(h=c.value)==null?void 0:h.clientWidth,n.value=l.value.getContext("2d"),a.modelValue){let r=new Image;r.src=a.modelValue,r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{n.value.fillStyle=n.value.createPattern(r,"repeat"),n.value.fillRect(0,0,1e3,550)}}n.value.lineWidth=a.componentSchema.componentProps.lineWidth||4,a.componentSchema&&a.componentSchema.componentProps&&a.componentSchema.componentProps.style&&a.componentSchema.componentProps.style.color&&(n.value.strokeStyle=a.componentSchema.componentProps.style.color),C.value=l.value.getBoundingClientRect()}}const d=e.ref(""),v=e.ref(""),D=e.ref(""),N=e.ref(""),s=e.ref([]),x=e.ref(!1);function j(o){if(p.value||a.componentSchema.componentProps.readonly||a.componentSchema.componentProps.disabled)return;o=o||event,o.preventDefault();let t={x:o.offsetX,y:o.offsetY};d.value=t.x,v.value=t.y,n.value.beginPath(),n.value.moveTo(t.x,t.y),n.value.lineTo(t.x,t.y),n.value.stroke(),n.value.closePath(),s.value.push(t),x.value=!0}function A(o){if(!(p.value||a.componentSchema.componentProps.readonly||a.componentSchema.componentProps.disabled)&&(o=o||event,o.preventDefault(),x.value)){let t={x:o.offsetX,y:o.offsetY};D.value=t.x,N.value=t.y,n.value.beginPath(),n.value.moveTo(d.value,v.value),n.value.lineTo(t.x,t.y),n.value.stroke(),n.value.closePath(),d.value=t.x,v.value=t.y,s.value.push(t)}}function R(o){if(p.value||a.componentSchema.componentProps.readonly||a.componentSchema.componentProps.disabled)return;o=o||event,o.preventDefault();let t={x:o.offsetX,y:o.offsetY};n.value.beginPath(),n.value.moveTo(d.value,v.value),n.value.lineTo(t.x,t.y),n.value.stroke(),n.value.closePath(),s.value.push(t),s.value.push({x:-1,y:-1}),x.value=!1}function S(){m.ElMessageBox.confirm("重写将清空画布,请确定是否重写?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{n.value.clearRect(0,0,l.value.width,l.value.height),s.value=[],m.ElMessage({type:"info",message:"清空成功"})}).catch(()=>{})}const f=e.ref("");async function b(){let o=await W(l.value.toDataURL("image/png"));f.value=o,E("update:modelValue",o)}async function W(o){try{let t=atob(o.split(",")[1]),u=new ArrayBuffer(t.length),h=new Uint8Array(u);for(let g=0;g<t.length;g++)h[g]=t.charCodeAt(g);let r=new Blob([u],{type:"image/png"}),P=new FormData;P.append("file",r,Date.now()+"png");let U=await y.axios({method:"post",url:"https://ess-ds.com/prod-api/center-file/file/upload",data:P,headers:{"Content-Type":"multipart/form-data",Authorization:"Bearer "+y.api.get("Admin-Token")}});return m.ElMessage({type:"success",message:"上传成功"}),U.data.data.url}catch{m.ElMessage({type:"warning",message:"上传失败"}),i.value=!1}finally{i.value=!1}}const i=e.ref(!1);function q(){m.ElMessageBox.confirm("是否放弃本次签字?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{n.value.clearRect(0,0,l.value.width,l.value.height),s.value=[],i.value=!1}).catch(()=>!1)}function k(){p.value||a.componentSchema.componentProps.readonly||a.componentSchema.componentProps.disabled||(i.value=!0,n.value&&(n.value.clearRect(0,0,l.value.width,l.value.height),s.value=[]),e.nextTick(()=>{M()}))}return e.onMounted(()=>{}),e.onUnmounted(()=>{}),_({surewrite:b}),(o,t)=>(e.openBlock(),e.createElementBlock("div",Y,[f.value?(e.openBlock(),e.createElementBlock("img",{key:1,class:"sign-board",src:f.value,alt:"",onClick:k},null,8,I)):(e.openBlock(),e.createElementBlock("div",{key:0,class:"sign-board",onClick:k},"签字板")),e.createVNode(e.unref(B),{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=u=>i.value=u),title:"签字板",class:"w-860px",width:"860px",style:{height:"600px"},"before-close":q,draggable:!1,modal:""},{default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createElementVNode("div",{class:"canvas",ref_key:"canvasWrap",ref:c},[e.createElementVNode("canvas",{id:`canvas${a.componentSchema.field}`,onMousedown:j,onMousemove:A,onMouseup:R},null,40,H)],512),e.createElementVNode("div",O,[t[3]||(t[3]=e.createElementVNode("div",{class:"remark"},null,-1)),e.createElementVNode("div",F,[e.createVNode(e.unref(w),{type:"info",size:"mini",onClick:S,onTouch:S},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("重写")])),_:1}),e.createVNode(e.unref(w),{type:"primary",size:"mini",onClick:b,onTouch:b},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("确定")])),_:1})])])])]),_:1},8,["modelValue"])]))}},L=X._export_sfc($,[["__scopeId","data-v-5a6e8dad"]]);exports.default=L;
@@ -1,218 +0,0 @@
1
- import { inject as G, watch as J, nextTick as D, ref as l, onMounted as K, onUnmounted as Q, openBlock as x, createElementBlock as w, createVNode as S, unref as P, withCtx as _, createElementVNode as m, createTextVNode as M } from "vue";
2
- import { p as A, a as Z, b as ee } from "./js.cookie-oHpRFPCO.js";
3
- import { ElMessageBox as R, ElMessage as k } from "element-plus";
4
- import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const oe = { class: "sign-main" }, ae = ["src"], ne = {
6
- class: "sign",
7
- style: {
8
- height: "100%",
9
- width: "100%"
10
- }
11
- }, le = ["id"], se = { class: "btn" }, ue = { class: "btns" }, ie = {
12
- __name: "sign",
13
- props: {
14
- componentSchema: {
15
- type: Object,
16
- require: !0,
17
- default: () => ({})
18
- },
19
- modelValue: {
20
- type: String,
21
- default: ""
22
- }
23
- },
24
- emits: ["update:modelValue"],
25
- setup(W, { expose: j, emit: E }) {
26
- const T = A.getComponent("button"), U = A.getComponent("Dialog"), X = E, a = W, p = G("disabled", { value: !1 });
27
- J(
28
- () => a.componentSchema,
29
- () => {
30
- D(() => {
31
- f.value = a.modelValue;
32
- });
33
- },
34
- { deep: !0, immediate: !0 }
35
- );
36
- const n = l(null), i = l(null), o = l(), Y = l("");
37
- function I() {
38
- var t, e, u, h;
39
- if (i.value && ((t = i.value) != null && t.clientHeight) && ((e = i.value) != null && e.clientWidth)) {
40
- if (n.value = document.getElementById(`canvas${a.componentSchema.field}`), n.value.height = ((u = i.value) == null ? void 0 : u.clientHeight) || 600, n.value.width = (h = i.value) == null ? void 0 : h.clientWidth, o.value = n.value.getContext("2d"), a.modelValue) {
41
- let r = new Image();
42
- r.src = a.modelValue, r.setAttribute("crossOrigin", "anonymous"), r.onload = () => {
43
- o.value.fillStyle = o.value.createPattern(r, "repeat"), o.value.fillRect(0, 0, 1e3, 550);
44
- };
45
- }
46
- o.value.lineWidth = a.componentSchema.componentProps.lineWidth || 4, a.componentSchema && a.componentSchema.componentProps && a.componentSchema.componentProps.style && a.componentSchema.componentProps.style.color && (o.value.strokeStyle = a.componentSchema.componentProps.style.color), Y.value = n.value.getBoundingClientRect();
47
- }
48
- }
49
- const d = l(""), v = l(""), z = l(""), N = l(""), s = l([]), y = l(!1);
50
- function F(t) {
51
- if (p.value || a.componentSchema.componentProps.readonly || a.componentSchema.componentProps.disabled)
52
- return;
53
- t = t || event, t.preventDefault();
54
- let e = {
55
- x: t.offsetX,
56
- y: t.offsetY
57
- };
58
- d.value = e.x, v.value = e.y, o.value.beginPath(), o.value.moveTo(e.x, e.y), o.value.lineTo(e.x, e.y), o.value.stroke(), o.value.closePath(), s.value.push(e), y.value = !0;
59
- }
60
- function H(t) {
61
- if (!(p.value || a.componentSchema.componentProps.readonly || a.componentSchema.componentProps.disabled) && (t = t || event, t.preventDefault(), y.value)) {
62
- let e = {
63
- x: t.offsetX,
64
- y: t.offsetY
65
- };
66
- z.value = e.x, N.value = e.y, o.value.beginPath(), o.value.moveTo(d.value, v.value), o.value.lineTo(e.x, e.y), o.value.stroke(), o.value.closePath(), d.value = e.x, v.value = e.y, s.value.push(e);
67
- }
68
- }
69
- function O(t) {
70
- if (p.value || a.componentSchema.componentProps.readonly || a.componentSchema.componentProps.disabled)
71
- return;
72
- t = t || event, t.preventDefault();
73
- let e = {
74
- x: t.offsetX,
75
- y: t.offsetY
76
- };
77
- o.value.beginPath(), o.value.moveTo(d.value, v.value), o.value.lineTo(e.x, e.y), o.value.stroke(), o.value.closePath(), s.value.push(e), s.value.push({ x: -1, y: -1 }), y.value = !1;
78
- }
79
- function B() {
80
- R.confirm("重写将清空画布,请确定是否重写?", "警告", {
81
- confirmButtonText: "确定",
82
- cancelButtonText: "取消",
83
- type: "warning"
84
- }).then(() => {
85
- o.value.clearRect(0, 0, n.value.width, n.value.height), s.value = [], k({
86
- type: "info",
87
- message: "清空成功"
88
- });
89
- }).catch(() => {
90
- });
91
- }
92
- const f = l("");
93
- async function b() {
94
- let t = await $(n.value.toDataURL("image/png"));
95
- f.value = t, X("update:modelValue", t);
96
- }
97
- async function $(t) {
98
- try {
99
- let e = atob(t.split(",")[1]), u = new ArrayBuffer(e.length), h = new Uint8Array(u);
100
- for (let g = 0; g < e.length; g++)
101
- h[g] = e.charCodeAt(g);
102
- let r = new Blob([u], { type: "image/png" }), C = new FormData();
103
- C.append("file", r, Date.now() + "png");
104
- let L = await Z({
105
- method: "post",
106
- url: "https://ess-ds.com/prod-api/center-file/file/upload",
107
- data: C,
108
- headers: {
109
- "Content-Type": "multipart/form-data",
110
- Authorization: "Bearer " + ee.get("Admin-Token")
111
- }
112
- });
113
- return k({
114
- type: "success",
115
- message: "上传成功"
116
- }), L.data.data.url;
117
- } catch {
118
- k({
119
- type: "warning",
120
- message: "上传失败"
121
- }), c.value = !1;
122
- } finally {
123
- c.value = !1;
124
- }
125
- }
126
- const c = l(!1);
127
- function q() {
128
- R.confirm("是否放弃本次签字?", "警告", {
129
- confirmButtonText: "确定",
130
- cancelButtonText: "取消",
131
- type: "warning"
132
- }).then(() => {
133
- o.value.clearRect(0, 0, n.value.width, n.value.height), s.value = [], c.value = !1;
134
- }).catch(() => !1);
135
- }
136
- function V() {
137
- p.value || a.componentSchema.componentProps.readonly || a.componentSchema.componentProps.disabled || (c.value = !0, o.value && (o.value.clearRect(0, 0, n.value.width, n.value.height), s.value = []), D(() => {
138
- I();
139
- }));
140
- }
141
- return K(() => {
142
- }), Q(() => {
143
- }), j({
144
- surewrite: b
145
- }), (t, e) => (x(), w("div", oe, [
146
- f.value ? (x(), w("img", {
147
- key: 1,
148
- class: "sign-board",
149
- src: f.value,
150
- alt: "",
151
- onClick: V
152
- }, null, 8, ae)) : (x(), w("div", {
153
- key: 0,
154
- class: "sign-board",
155
- onClick: V
156
- }, "签字板")),
157
- S(P(U), {
158
- modelValue: c.value,
159
- "onUpdate:modelValue": e[0] || (e[0] = (u) => c.value = u),
160
- title: "签字板",
161
- class: "w-860px",
162
- width: "860px",
163
- style: { height: "600px" },
164
- "before-close": q,
165
- draggable: !1,
166
- modal: ""
167
- }, {
168
- default: _(() => [
169
- m("div", ne, [
170
- m("div", {
171
- class: "canvas",
172
- ref_key: "canvasWrap",
173
- ref: i
174
- }, [
175
- m("canvas", {
176
- id: `canvas${a.componentSchema.field}`,
177
- onMousedown: F,
178
- onMousemove: H,
179
- onMouseup: O
180
- }, null, 40, le)
181
- ], 512),
182
- m("div", se, [
183
- e[3] || (e[3] = m("div", { class: "remark" }, null, -1)),
184
- m("div", ue, [
185
- S(P(T), {
186
- type: "info",
187
- size: "mini",
188
- onClick: B,
189
- onTouch: B
190
- }, {
191
- default: _(() => e[1] || (e[1] = [
192
- M("重写")
193
- ])),
194
- _: 1
195
- }),
196
- S(P(T), {
197
- type: "primary",
198
- size: "mini",
199
- onClick: b,
200
- onTouch: b
201
- }, {
202
- default: _(() => e[2] || (e[2] = [
203
- M("确定")
204
- ])),
205
- _: 1
206
- })
207
- ])
208
- ])
209
- ])
210
- ]),
211
- _: 1
212
- }, 8, ["modelValue"])
213
- ]));
214
- }
215
- }, de = /* @__PURE__ */ te(ie, [["__scopeId", "data-v-5a6e8dad"]]);
216
- export {
217
- de as default
218
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-C3a1hfUC.cjs");require("./js.cookie-BH1G_HRi.cjs");const h=["title"],m={class:"epic-attr-input"},k=e.defineComponent({__name:"styleView",setup(v){const p=e.inject("designer"),u=e.inject("pageSchema"),d=e.inject("revoke"),r=[{label:"宽度",type:"EInputSize",field:"componentProps.style.width"},{label:"高度",type:"EInputSize",field:"componentProps.style.height"},{label:"内边距",type:"EInputSize",field:"componentProps.style.padding"},{label:"外边距",type:"EInputSize",field:"componentProps.style.margin"},{label:"背景色",type:"color-picker",field:"componentProps.style.backgroundColor",componentProps:{type:"color",style:{}}},{label:"字体颜色",type:"color-picker",field:"componentProps.style.color",componentProps:{type:"color",style:{}}}],c=e.computed(()=>p.state.checkedNode);function i(t){var n;return typeof t.show=="boolean"?t.show:((n=t.show)==null?void 0:n.call(t,{values:c.value}))??!0}function y(t,n,l,o=c.value){typeof l.onChange=="function"&&l.onChange({value:t,values:o,componentStyles:r}),l.changeSync?a.setValueByPath(o,n,t):e.nextTick(()=>{a.setValueByPath(o,n,t)}),d.push(u.schemas,"编辑组件属性")}return(t,n)=>{var l;return e.openBlock(),e.createElementBlock("div",{class:"epic-style-view",key:(l=c.value)==null?void 0:l.id},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,o=>{var s;return e.createElementVNode("div",{key:o.field},[i(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["epic-attr-item",o.layout])},[o.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"epic-attr-label",title:o.label},e.toDisplayString(o.label),9,h)):e.createCommentVNode("",!0),e.createElementVNode("div",m,[e.createVNode(e.unref(a._sfc_main),{componentSchema:{...o,componentProps:{...o.componentProps,...o.field==="componentProps.defaultValue"?(s=c.value)==null?void 0:s.componentProps:{},input:!1,field:void 0,hidden:!1},show:!0,noFormItem:!0},"model-value":e.unref(a.getValueByPath)(o.editData??c.value,o.field),"onUpdate:modelValue":f=>y(f,o.field,o,o.editData)},null,8,["componentSchema","model-value","onUpdate:modelValue"])])],2)):e.createCommentVNode("",!0)])}),64))])}}});exports.default=k;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),C=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),k=require("./js.cookie-BH1G_HRi.cjs"),S=require("./vuedraggable.umd-BqhSJIAi.cjs"),_=e.defineComponent({name:"ETreeNodeItem",__name:"treeNodeItem",props:{schema:{}},setup(x){const a=x,u=e.inject("slots",{}),m=e.inject("pageSchema",{}),c=e.inject("expandedKeys"),v=e.inject("treeProps"),h=e.inject("selectedKeys"),i=e.inject("handleSelect"),g=e.computed(()=>c.value.includes(a.schema.id??"")),f=e.defineComponent({setup(){return()=>{var n;return e.h("span",{class:{text:!0,hover:v.hoverKey===a.schema.id,checked:h.value.includes(a.schema.id)},onClick:()=>i(a.schema.id,a.schema)},((n=u["tree-node"])==null?void 0:n.call(u,a))??e.h("span",{class:"epic-text-padding flex"},{default:()=>{var t;return[e.h("span",{class:"max-w-full truncate"},a.schema.label??((t=k.pluginManager.getComponentConfingByType(a.schema.type))==null?void 0:t.defaultSchema.label)),e.h("span",{class:"epic-node-type-text flex-1 w-0 truncate"},a.schema.id)]}}))}}});function o(){const n=a.schema.id;if(!n)return!1;c.value.includes(n)?c.value=c.value.filter(t=>t!==n):c.value.push(n)}function r(){var t;const n=a.schema.id;if(!n||!((t=a.schema.children)!=null&&t.length))return!1;c.value.push(n)}return r(),(n,t)=>{var l,d,p,s,y;return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["epic-tree-node",{expanded:(l=a.schema.children)==null?void 0:l.length,"level-1":a.schema.id===((d=e.unref(m).schemas[0])==null?void 0:d.id)}])},[e.createElementVNode("a",null,[(p=a.schema.children)!=null&&p.length&&a.schema.id!==((s=e.unref(m).schemas[0])==null?void 0:s.id)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["icon-expanded",{expanded:g.value}]),onClick:o},[e.createVNode(e.unref(C._sfc_main),{name:"icon--epic--caret-right-outlined"})],2)):e.createCommentVNode("",!0),e.createVNode(e.unref(f))]),(y=a.schema.children)!=null&&y.length?(e.openBlock(),e.createBlock(B,{key:0,class:e.normalizeClass(["epic-tree-sublist",{expanded:g.value}]),schemas:a.schema.children,"onUpdate:schemas":t[0]||(t[0]=b=>a.schema.children=b),parentSchema:a.schema},null,8,["class","schemas","parentSchema"])):e.createCommentVNode("",!0)],2)}}}),N={key:1},B=e.defineComponent({name:"ETreeNodes",__name:"treeNodes",props:{schemas:{},parentSchema:{}},emits:["update:schemas"],setup(x,{emit:a}){const u=e.inject("designer"),m=e.inject("pageSchema"),c=e.inject("treeProps"),v=x,h=a,i=e.computed({get(){return v.schemas},set(o){h("update:schemas",o)}});function g(o){u.setDisableHover(!0),u.setCheckedNode(i.value[o])}function f(o){var r,n,t;return o.id===((r=m.schemas[0])==null?void 0:r.id)||(t=(n=k.pluginManager.getComponentConfingByType(o.type))==null?void 0:n.editConstraints)!=null&&t.immovable?"unmover-item":"draggable-item"}return(o,r)=>{var n,t,l,d,p;return(l=(t=e.unref(k.pluginManager).getComponentConfingByType(((n=v.parentSchema)==null?void 0:n.type)||""))==null?void 0:t.editConstraints)!=null&&l.childImmovable?(e.openBlock(),e.createElementBlock("ul",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,s=>(e.openBlock(),e.createBlock(_,{key:s.id,schema:s},null,8,["schema"]))),128))])):(e.openBlock(),e.createBlock(e.unref(S.draggable),e.mergeProps({key:0,modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=s=>i.value=s),"item-key":"id","component-data":{},class:"epic-draggable-range"},{animation:200,tag:"ul",group:"tree-draggable",ghostClass:"moveing",draggable:".draggable-item",disabled:!e.unref(c).draggable||((d=i.value[0])==null?void 0:d.id)===((p=e.unref(m).schemas[0])==null?void 0:p.id)},{onStart:r[1]||(r[1]=s=>g(s.oldIndex))}),{item:e.withCtx(({element:s,index:y})=>[(e.openBlock(),e.createBlock(_,{class:e.normalizeClass(f(s)),key:s.id,schema:s},null,8,["class","schema"]))]),_:1},16,["modelValue"]))}}}),V={class:"epic-tree h-full flex flex-col"},E={class:"epic-search-box px-10px py-6px"},K={class:"epic-tree-main flex-1 overflow-auto h-0"},j={class:"text-center pt-42px text-gray-400"},T=e.defineComponent({name:"ETree",__name:"tree",props:{options:{type:Array,default:()=>[]},hoverKey:{type:String,default:""},selectedKeys:{type:Array,default:()=>[]},draggable:{type:Boolean,default:!1}},emits:["update:selectedKeys","nodeClick"],setup(x,{emit:a}){const u=e.useSlots();e.provide("slots",u);const m=k.pluginManager.getComponent("input"),c=e.ref(""),v=e.ref([]),h=x,i=a,g=e.computed({get(){return h.selectedKeys},set(n){i("update:selectedKeys",n)}}),f=e.computed({get(){return o(h.options,c.value)},set(n){console.log(n)}});function o(n,t){const l=[];return n.forEach(d=>{var p;if((p=d.label)!=null&&p.includes(t))l.push(d);else if(d.children){const s=o(d.children,t);if(s.length>0){const y={...d};y.children=s,l.push(y)}}}),l}function r(n,t){g.value=[n],i("nodeClick",{id:n,componentSchema:t})}return e.provide("expandedKeys",v),e.provide("selectedKeys",g),e.provide("treeProps",h),e.provide("handleSelect",r),(n,t)=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",E,[e.createVNode(e.unref(m),{placeholder:"搜索节点",clearable:"",allowClear:"",modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=l=>c.value=l),value:c.value,"onUpdate:value":t[1]||(t[1]=l=>c.value=l)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main),{name:"icon--epic--search-rounded"})]),_:1},8,["modelValue","value"])]),e.createElementVNode("div",K,[e.createElementVNode("ul",null,[e.createVNode(B,{schemas:f.value,"onUpdate:schemas":t[2]||(t[2]=l=>f.value=l)},null,8,["schemas"])]),e.withDirectives(e.createElementVNode("div",j,"没有查询到的数据",512),[[e.vShow,!f.value.length]])])]))}});exports._sfc_main=T;
@@ -1,76 +0,0 @@
1
- import { defineComponent as g, ref as w, watch as u, inject as E, computed as b, h as a, nextTick as x } from "vue";
2
- import { ElUpload as U, ElButton as V, ElMessage as y } from "element-plus";
3
- const B = g({
4
- props: {
5
- modelValue: {
6
- type: Array,
7
- default: () => []
8
- }
9
- },
10
- emits: ["update:modelValue"],
11
- setup(r, { emit: s, attrs: d }) {
12
- const l = w([]);
13
- u(l, (e) => {
14
- s("update:modelValue", e);
15
- });
16
- const i = E("disabled", { value: !1 });
17
- u(
18
- () => r.modelValue,
19
- (e) => {
20
- if (e != null && e.length > 0 && l.value != null) {
21
- if (l.value === e) return;
22
- l.value.length = 0, l.value.push(...e);
23
- }
24
- },
25
- { deep: !0, immediate: !0 }
26
- );
27
- const p = (e, o) => {
28
- x(() => {
29
- l.value = o;
30
- });
31
- }, c = (e) => {
32
- var t, n;
33
- let o = e.url || ((n = (t = e == null ? void 0 : e.response) == null ? void 0 : t.data) == null ? void 0 : n.url);
34
- window.open(o);
35
- }, f = (e) => {
36
- }, m = (e, o, t) => {
37
- console.log(t);
38
- }, h = (e, o, t) => {
39
- y.error("上传失败"), console.error(e);
40
- }, v = b(() => ({
41
- ...d,
42
- "file-list": l.value,
43
- onBeforeUpload: f,
44
- onChange: p,
45
- onSuccess: m,
46
- onError: h,
47
- onPreview: c
48
- }));
49
- return () => a("div", null, {
50
- default: () => [
51
- a(U, v.value, {
52
- default: () => [
53
- a(
54
- V,
55
- {
56
- disabled: i.value
57
- },
58
- {
59
- default: () => [
60
- a("span", {
61
- class: "icon--epic icon--epic--cloud-upload-outlined text-lg",
62
- style: { "margin-right": "2px" }
63
- }),
64
- a("span", null, { default: () => "上传文件" })
65
- ]
66
- }
67
- )
68
- ]
69
- })
70
- ]
71
- });
72
- }
73
- });
74
- export {
75
- B as default
76
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),a=require("element-plus"),m=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(r,{emit:s,attrs:d}){const t=l.ref([]);l.watch(t,e=>{s("update:modelValue",e)});const i=l.inject("disabled",{value:!1});l.watch(()=>r.modelValue,e=>{if(e!=null&&e.length>0&&t.value!=null){if(t.value===e)return;t.value.length=0,t.value.push(...e)}},{deep:!0,immediate:!0});const c=(e,o)=>{l.nextTick(()=>{t.value=o})},p=e=>{var n,u;let o=e.url||((u=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:u.url);window.open(o)},f=e=>{},h=(e,o,n)=>{console.log(n)},v=(e,o,n)=>{a.ElMessage.error("上传失败"),console.error(e)},g=l.computed(()=>({...d,"file-list":t.value,onBeforeUpload:f,onChange:c,onSuccess:h,onError:v,onPreview:p}));return()=>l.h("div",null,{default:()=>[l.h(a.ElUpload,g.value,{default:()=>[l.h(a.ElButton,{disabled:i.value},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined text-lg",style:{"margin-right":"2px"}}),l.h("span",null,{default:()=>"上传文件"})]})]})]})}});exports.default=m;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("naive-ui"),m=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(n,{emit:i,attrs:u}){const a=l.ref([]);l.watch(a,e=>{i("update:modelValue",e)}),l.watch(()=>n.modelValue,e=>{if(e!=null&&e.length>0&&a.value!=null){if(a.value===e)return;a.value.length=0,a.value.push(...e)}},{deep:!0,immediate:!0});function r(e){console.log("onChange called->",e),l.nextTick(()=>{a.value=e})}const s=({file:e,event:t})=>{var o;console.log("OnFinish called->",e,t);const c=t==null?void 0:t.target,p=JSON.parse(c.response??"{}");e.url=(o=p.data)==null?void 0:o.url},d=({file:e,event:t})=>{console.log("OnError called->",e,t)};return()=>l.h("div",{class:"epic-upload-image"},{default:()=>[l.h(g.NUpload,{...u,"list-type":"image-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg","onUpdate:file-list":r,"file-list":a.value,onFinish:s,onError:d},{default:()=>[l.h("div",{style:{"text-align":"center"}},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined text-md mr-2px text-lg"}),l.h("div",{class:"ant-upload-text"},{default:()=>"点击上传"})]})]})]})}});exports.default=m;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("element-plus"),V=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(p,{emit:f,attrs:g}){const o=l.ref([]);l.inject("disabled",{value:!1});const s=l.ref(""),n=l.ref(!1),i=e=>{n.value=e};l.watch(o,e=>{f("update:modelValue",e)}),l.watch(()=>p.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const v=(e,r)=>{l.nextTick(()=>{u?(o.value=r.filter(a=>{var c,d;return((c=a==null?void 0:a.response)==null?void 0:c.code)===200||((d=a==null?void 0:a.response)==null?void 0:d.code)===201}),u=!1):o.value=r})};let u=!1;const h=(e,r,a)=>{e.code!==200&&(t.ElMessage.error("上传失败"),u=!0),console.log(a)},m=(e,r,a)=>{t.ElMessage.error("上传失败"),console.error(e)},E=e=>{},b=l.computed(()=>({...g,"file-list":o.value,"list-type":"picture-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",onBeforeUpload:E,onChange:v,onSuccess:h,onError:m,onPreview:y})),y=e=>{e.url&&(s.value=e.url,i(!0))};return()=>l.h("div",{class:"epic-upload-image"},{default:()=>[l.h(t.ElUpload,b.value,{default:()=>[l.h("div",{style:{"text-align":"center"}},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"}),l.h("div",{class:"ant-upload-text"},{default:()=>"点击上传"})]})]}),(()=>{if(n.value)return l.h(t.ElImageViewer,{urlList:[s.value],onClose:()=>{i(!1)}})})()]})}});exports.default=V;