iking-web-ui-pro 0.2.3 → 0.2.5
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/dist/IKDetailPreviewFiles/ik.index.es.js +522 -510
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +410 -398
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +1 -0
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +685 -672
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +417 -405
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkOnlyOffice/ik.index.es.js +59 -58
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +85 -82
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +12 -11
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/ik.index.es.js +868 -853
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +284 -275
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +1607 -0
- package/dist/Provider/ik.index.umd.js +17 -0
- package/dist/index.es.js +39185 -37575
- package/dist/index.umd.js +95 -79
- package/dist/src/components/IKDetailPreviewFiles/index.d.ts +1 -1
- package/dist/src/components/IKDetailPreviewFiles/src/IKDetailPreviewFiles.vue.d.ts +1 -1
- package/dist/src/components/IKPreviewFile/index.d.ts +3 -3
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +1 -1
- package/dist/src/components/IkApprovalProcess/index.d.ts +1 -1
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +1 -1
- package/dist/src/components/IkDescription/index.d.ts +3 -3
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +1 -1
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +1 -1
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +1 -1
- package/dist/src/components/IkTinymce/index.d.ts +1 -1
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +57 -0
- package/dist/src/components/Provider/index.d.ts +120 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/utils/use-provider.d.ts +8 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u.index={},u.vue,u["iking-utils-pro"]))})(this,function(u,e,k){"use strict";const w=(o,t)=>{if(o.install=i=>{for(const c of[o,...Object.values(t??{})])i.component(c.name,c)},t)for(const[i,c]of Object.entries(t))o[i]=c;return o},B=(o,t)=>{const i=o.__vccOpts||o;for(const[c,n]of t)i[c]=n;return i},R=(o,t=2)=>{if(o===void 0)return"";if(o===0)return"0 B";const i=["B","KB","MB","GB","TB"],c=Math.floor(Math.log(o)/Math.log(1024));let n=o/Math.pow(1024,c);return(n%1===0?n.toFixed(t||0):n.toFixed(t))+" "+i[c]},v=(o,t)=>t?t.startsWith("http")?t:`${o||location.origin}${t}`:"",C=(o,t)=>{var s,a,d,p;const i=(s=o==null?void 0:o.response)!=null&&s.data?F((d=(a=o==null?void 0:o.response)==null?void 0:a.data)==null?void 0:d.suffix):((p=o.raw)==null?void 0:p.type)||F(o[t.suffix]),c=i==null?void 0:i.toLowerCase(),n={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let l in n)if(typeof c=="string"&&(c.includes(l)||c===l))return n[l];return"unknown"},M={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},F=o=>{const t=o==null?void 0:o.toLocaleLowerCase(),i=t!=null&&t.startsWith(".")?t:`.${t}`;return i&&M[i]||"unknow"},I=o=>{let t="",i=["doc","docx"],c=["xls","xlsx"],n=["ppt","pptx"],s=["pdf"];return i.includes(o)&&(t="word"),c.includes(o)&&(t="cell"),n.includes(o)&&(t="slide"),s.includes(o)&&(t="text-pdf"),t},D=e.defineComponent({__name:"IkPreviewFileDialog",props:e.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(o){const t=o,i=e.useModel(o,"show"),c=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...t.field})),n=e.ref(null),s=e.ref(null),a=e.reactive({image:!1,office:!1,video:!1}),d=l=>{var r,h,f,g,_,z,b;try{const m=((r=l==null?void 0:l.response)==null?void 0:r.data)||l,N=m[c.value.url]||(m==null?void 0:m.id)||m.attachmentId,E=(h=m[c.value.suffix]||m.attachmentSuffix)==null?void 0:h.toLowerCase(),I3=m[c.value.name]||(m==null?void 0:m.attachmentName);if(s.value={...l,name:l[c.value.name],url:v(t.loadUrl,N)},l&&C(l,c.value)==="image"){a.image=!0;return}else if((((f=t.onlyOfficeConfig)==null?void 0:f.accept)||t.onlyOfficeAccept).includes(E)){a.office=!0,n.value={...t.onlyOfficeConfig,editorConfig:{...((g=t.onlyOfficeConfig)==null?void 0:g.editorConfig)||{},customization:{...((z=(_=t.onlyOfficeConfig)==null?void 0:_.editorConfig)==null?void 0:z.customization)||{},review:{reviewDisplay:"final"}}},document:{key:k.buildUUID(),title:I3,url:v(t.loadUrl,N),fileType:E,...((b=t.onlyOfficeConfig)==null?void 0:b.document)||{}},documentType:I(E)};return}}catch(m){console.info("预览错误: ",m)}};e.watch([i,t.file],([l,r])=>{l&&e.nextTick(()=>{d(t.file)})});const p=()=>{i.value=!1,a.office=!1,a.image=!1,a.video=!1};return(l,r)=>{var f,g;const h=e.resolveComponent("el-image-viewer");return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(f=s.value)!=null&&f.url&&a.image?(e.openBlock(),e.createBlock(h,{key:0,onClose:r[0]||(r[0]=_=>{s.value=null,a.image=!1}),ref:"previewImgRef","url-list":[(g=s.value)==null?void 0:g.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 文档类 "),e.createVNode(e.unref(v3),{modelValue:a.office,"onUpdate:modelValue":r[1]||(r[1]=_=>a.office=_),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:p,"modal-class":"ik-only-preview-dialog"},{default:e.withCtx(()=>[e.createVNode(e.unref(x3),{"config-options":n.value,"document-server-url":o.onlyOfficeConfig.serverUrl||o.onlyofficeServer,mode:"view"},null,8,["config-options","document-server-url"])]),_:1},8,["modelValue"])],64)):e.createCommentVNode("v-if",!0)}}}),D3="",$=w(D),q={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},O=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),e.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),e.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],H={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},A=[e.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],T={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},j=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],L={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},P=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],U={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},W=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],K={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},G=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],X={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},Y=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],Z={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},J=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],Q={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},e3=[e.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),e.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),e.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],t3={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},o3=[e.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),e.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),e.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),e.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],n3={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},i3=[e.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),e.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),e.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],l3={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},s3=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),e.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],c3=e.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(o){const t=o,i=e.computed(()=>t.file?C(t.file,t.fields):t.type);return(c,n)=>i.value==="image"?(e.openBlock(),e.createElementBlock("svg",q,O)):i.value==="zip"?(e.openBlock(),e.createElementBlock("svg",H,A)):i.value==="ppt"?(e.openBlock(),e.createElementBlock("svg",T,j)):i.value==="word"?(e.openBlock(),e.createElementBlock("svg",L,P)):i.value==="pdf"?(e.openBlock(),e.createElementBlock("svg",U,W)):i.value==="txt"?(e.openBlock(),e.createElementBlock("svg",K,G)):i.value==="audio"?(e.openBlock(),e.createElementBlock("svg",X,Y)):i.value==="video"?(e.openBlock(),e.createElementBlock("svg",Z,J)):i.value==="excel"?(e.openBlock(),e.createElementBlock("svg",Q,e3)):i.value==="exe"?(e.openBlock(),e.createElementBlock("svg",t3,o3)):i.value==="json"?(e.openBlock(),e.createElementBlock("svg",n3,i3)):(e.openBlock(),e.createElementBlock("svg",l3,s3))}}),a3={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},r3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},d3=["xlink:href"],p3=["src"],h3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},f3=["xlink:href"],m3=["src"],u3=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(o){const t=o,i=e.computed(()=>{var n,s,a;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(n=t.name)!=null&&n.startsWith("iksig")?"iksig":(s=t.name)!=null&&s.includes(":")?"iconify":(a=t.name)!=null&&a.startsWith("iksvg")?"svg":"i"}),c=e.computed(()=>{const n=[];if(t.flip)switch(t.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.rotate&&n.push(`rotate(${t.rotate%360}deg)`);const s={...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...n.length&&{transform:n.join(" ")},padding:t.showBg||t.bg?t.padding:0,...t.color&&i.value!=="iksig"?{"--ik-color-icon-dark":t.color,"--ik-color-icon-light":t.colorLight||k.ikColor.setOpacity(t.color,t.opacity)}:{}};return t.width&&(s.width=s.height=typeof t.width=="number"?`${t.width}px`:t.width),s});return(n,s)=>{const a=e.resolveComponent("el-tooltip"),d=e.resolveComponent("el-button");return n.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",a3,[n.notip||!n.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:i.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning||t.type==="warning",primary:n.primary||t.type==="primary",success:n.success||t.type==="success",error:n.error||t.type==="error",active:n.active,disabled:n.disabled}]),style:e.normalizeStyle(c.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",r3,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,d3)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,p3)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(n.name),style:e.normalizeStyle(c.value)},null,6))],6)):(e.openBlock(),e.createBlock(a,{key:1,content:n.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:i.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning||t.type==="warning",primary:n.primary||t.type==="primary",success:n.success||t.type==="success",error:n.error||t.type==="error",active:n.active}]),style:e.normalizeStyle(c.value)},[i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h3,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,f3)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,m3)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(n.name),style:e.normalizeStyle(c.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(d,{key:1,type:["warning","error"].includes(n.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1},8,["type"]))}}}),f6="",y=w(B(u3,[["__scopeId","data-v-7d95dbf5"]])),g3={key:0,class:"exit-main-page-maximize"},_3=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(o){return(t,i)=>(e.openBlock(),e.createElementBlock("div",null,[o.showBg&&o.fullscreen?(e.openBlock(),e.createElementBlock("div",g3,[e.createVNode(e.unref(y),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(y),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),u6="",w3=B(_3,[["__scopeId","data-v-79f49df8"]]),y3={class:"base-header"},k3=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=o,i=e.useModel(o,"modelValue"),c=e.ref(t.fullscreen),n=()=>{c.value=!c.value},s=e.defineComponent({setup(){return()=>e.h(w3,{showBg:t.showCloseBg,fullscreen:t.fullscreen})}});return(a,d)=>{const p=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(p,e.mergeProps({modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=l=>i.value=l)},a.$attrs,{"close-icon":e.unref(s),class:`ik-base-dialog ${a.noHeader?"no-header":""} ${a.noFooter?"no-footer":""}`,fullscreen:c.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(a.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",y3,[e.renderSlot(a.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),a.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(y),{key:0,onClick:n,name:c.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:c.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[a.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),g6="",v3=w(k3);function z3(o,t,i,c){function n(s){return s instanceof i?s:new i(function(a){a(s)})}return new(i||(i=Promise))(function(s,a){function d(r){try{l(c.next(r))}catch(h){a(h)}}function p(r){try{l(c.throw(r))}catch(h){a(h)}}function l(r){r.done?s(r.value):n(r.value).then(d,p)}l((c=c.apply(o,t||[])).next())})}function B3(o,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},c,n,s,a;return a={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function d(l){return function(r){return p([l,r])}}function p(l){if(c)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(c=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(l[0]===6&&i.label<s[1]){i.label=s[1],s=l;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(l);break}s[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(o,i)}catch(r){l=[6,r],n=0}finally{c=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var V3=function(o,t){return z3(void 0,void 0,void 0,function(){return B3(this,function(i){return[2,new Promise(function(c,n){try{if(window.DocsAPI)return c(null);var s=document.getElementById(t);if(s)var a=setInterval(function(){var p=s.getAttribute("loading");if(!p){if(clearInterval(a),window.DocsAPI)return c(null);var l=x(t,o,c,n);s.remove(),document.body.appendChild(l)}},500);else{var d=x(t,o,c,n);document.body.appendChild(d)}}catch(p){console.error(p)}})]})})},x=function(o,t,i,c){var n=document.createElement("script");return n.id=o,n.type="text/javascript",n.src=t,n.async=!0,n.onload=function(){n.removeAttribute("loading"),i(null)},n.onerror=function(s){n.removeAttribute("loading"),c(s)},n.setAttribute("loading",""),n},V=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var o=this,t=this.documentServerUrl;t.endsWith("/")||(t+="/");var i="".concat(t,"web-apps/apps/api/documents/api.js");V3(i,"onlyoffice-api-script").then(function(){return o.onLoad()}).catch(function(){o.onError(-2)})},unmounted:function(){var o,t=this.id||"";!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0)},watch:{config:{handler:function(o,t){this.onChangeProps()},deep:!0},document_fileType:function(o,t){this.onChangeProps()},document_title:function(o,t){this.onChangeProps()},documentType:function(o,t){this.onChangeProps()},editorConfig_lang:function(o,t){this.onChangeProps()},height:function(o,t){this.onChangeProps()},type:function(o,t){this.onChangeProps()},width:function(o,t){this.onChangeProps()}},methods:{onLoad:function(){var o,t;try{var i=this.id||"";if(window.DocsAPI||this.onError(-3),!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[i]){console.log("Skip loading. Instance already exists",i);return}!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances||(window.DocEditor={instances:{}});var c=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),n=window.DocsAPI.DocEditor(i,c);window.DocEditor.instances[i]=n}catch(s){console.error(s),this.onError(-1)}},onError:function(o){var t;switch(o){case-2:t="Error load DocsAPI from "+this.documentServerUrl;break;case-3:t="DocsAPI is not defined";break;default:t="Unknown error loading component",o=-1}typeof this.onLoadComponentError>"u"?console.error(t):this.onLoadComponentError(o,t)},onAppReady:function(){var o=this.id||"";this.events_onAppReady(window.DocEditor.instances[o])},onChangeProps:function(){var o,t=this.id||"";!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const E3=["id"];function C3(o,t,i,c,n,s){return e.openBlock(),e.createElementBlock("div",{id:o.id},null,8,E3)}V.render=C3,V.__file="src/components/DocumentEditor.vue";const F3=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(o){const t=o,i=e.ref({width:"100%",height:"100%",...t.configOptions||{}}),c=()=>{console.info("文档加载完成",t.configOptions)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:t.officeHeight})},[e.createVNode(e.unref(V),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":o.documentServerUrl,config:i.value,events_onDocumentReady:c},null,8,["id","document-server-url","config"])],4))}}),_6="",x3=w(B(F3,[["__scopeId","data-v-fe959cd8"]])),S3=["onClick"],b3={class:"text"},N3={class:"fileName"},R3={class:"size"},M3=e.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},setup(o){const t=o,i=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),c=e.ref({}),n=e.ref(!1),s=l=>{var r,h;c.value={...l,name:l.name,url:v(t.loadUrl,l.url||((h=(r=l==null?void 0:l.response)==null?void 0:r.data)==null?void 0:h.id)||(l==null?void 0:l.id))},n.value=!0},a=l=>{k.ikFile.downloadFile(v(t.loadUrl,l[i.value.url]||l.attachmentId||l.id),l[i.value.name]||l.attachmentName)},d=e.computed(()=>k.paramType.isNumber(t.width)?`${t.width}px`:t.width),p=e.computed(()=>t.list.map(l=>({...l,name:l[i.value.name]||l.attachmentName,size:l[i.value.size]||l.fileSize||l.attachmentSize,suffix:l[i.value.suffix]||l.attachmentSuffix})));return(l,r)=>{var h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(h=o.list)!=null&&h.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.value,(f,g)=>{var _;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["iking-privew-annex",{"is-bg":o.showBg}]),key:g,style:e.normalizeStyle({marginBottom:g==((_=o.list)==null?void 0:_.length)-1?"0":"10px",width:d.value})},[e.createElementVNode("div",{class:"file-card",onClick:z=>s(f)},[e.createVNode(c3,{file:f,style:e.normalizeStyle({height:`${o.iconSize}px`}),class:"ikui-w-auto",fields:i.value},null,8,["file","style","fields"]),e.createElementVNode("div",b3,[e.createElementVNode("div",N3,e.toDisplayString(f.name),1),e.createElementVNode("div",R3,e.toDisplayString(e.unref(R)(f.size)),1)]),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-center",{"hover-show":o.iconHoverShow}])},[e.createVNode(e.unref(y),{name:"iksvg_daochu",onClick:e.withModifiers(z=>a(f),["stop"]),bg:o.showBg,size:o.showBg?"default":20},null,8,["onClick","bg","size"]),e.createVNode(e.unref(y),{name:"iksvg_yulan",bg:o.showBg,size:o.showBg?"default":20},null,8,["bg","size"]),e.renderSlot(l.$slots,"operation",{data:{...f,findex:g}})],2)],8,S3)],6)}),128)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref($),{show:n.value,"onUpdate:show":r[0]||(r[0]=f=>n.value=f),loadUrl:o.loadUrl,file:c.value,onlyofficeServer:o.onlyofficeServer,onlyOfficeConfig:o.onlyOfficeConfig,onlyOfficeAccept:o.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),y6="",S=w(M3);u.IkPreviewFile=S,u.default=S,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w.index={},w.vue,w["iking-utils-pro"]))})(this,function(w,e,V){"use strict";const y=(o,t)=>{if(o.install=i=>{for(const s of[o,...Object.values(t??{})])i.component(s.name,s)},t)for(const[i,s]of Object.entries(t))o[i]=s;return o},E=(o,t)=>{const i=o.__vccOpts||o;for(const[s,n]of t)i[s]=n;return i},R=(o,t=2)=>{if(o===void 0)return"";if(o===0)return"0 B";const i=["B","KB","MB","GB","TB"],s=Math.floor(Math.log(o)/Math.log(1024));let n=o/Math.pow(1024,s);return(n%1===0?n.toFixed(t||0):n.toFixed(t))+" "+i[s]},C=(o,t)=>t?t.startsWith("http")?t:`${o||location.origin}${t}`:"",M=o=>{const t=e.inject("loadUrl"),i=e.computed(()=>o.loadUrl||(t==null?void 0:t.value)),s=e.inject("uploadUrl"),n=e.computed(()=>o.action||o.uploadUrl||(s==null?void 0:s.value)),l=e.inject("token"),a=e.computed(()=>o.token||(l==null?void 0:l.value)),p=e.inject("onlyofficeConfig"),f=e.computed(()=>o.onlyofficeConfig||(p==null?void 0:p.value)),c=e.inject("userInfo"),d=e.computed(()=>o.userInfo||(c==null?void 0:c.value));return{cLoadUrl:i,cUploadUrl:n,cToken:a,cOnlyofficeConfig:f,cUserInfo:d}},x=(o,t)=>{var l,a,p,f;const i=(l=o==null?void 0:o.response)!=null&&l.data?S((p=(a=o==null?void 0:o.response)==null?void 0:a.data)==null?void 0:p.suffix):((f=o.raw)==null?void 0:f.type)||S(o[t.suffix]),s=i==null?void 0:i.toLowerCase(),n={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let c in n)if(typeof s=="string"&&(s.includes(c)||s===c))return n[c];return"unknown"},I={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},S=o=>{const t=o==null?void 0:o.toLocaleLowerCase(),i=t!=null&&t.startsWith(".")?t:`.${t}`;return i&&I[i]||"unknow"},D=o=>{let t="",i=["doc","docx"],s=["xls","xlsx"],n=["ppt","pptx"],l=["pdf"];return i.includes(o)&&(t="word"),s.includes(o)&&(t="cell"),n.includes(o)&&(t="slide"),l.includes(o)&&(t="text-pdf"),t},$=e.defineComponent({__name:"IkPreviewFileDialog",props:e.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(o){const t=o,i=e.useModel(o,"show"),s=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...t.field})),n=e.ref(null),l=e.ref(null),a=e.reactive({image:!1,office:!1,video:!1}),p=c=>{var d,r,u,m,g,v,_;try{const h=((d=c==null?void 0:c.response)==null?void 0:d.data)||c,z=h[s.value.url]||(h==null?void 0:h.id)||h.attachmentId,B=(r=h[s.value.suffix]||h.attachmentSuffix)==null?void 0:r.toLowerCase(),D3=h[s.value.name]||(h==null?void 0:h.attachmentName)||(h==null?void 0:h.originName);if(l.value={...c,name:c[s.value.name],url:C(t.loadUrl,z)},c&&x(c,s.value)==="image"){a.image=!0;return}else if((((u=t.onlyOfficeConfig)==null?void 0:u.accept)||t.onlyOfficeAccept).includes(B)){a.office=!0,n.value={...t.onlyOfficeConfig,editorConfig:{...((m=t.onlyOfficeConfig)==null?void 0:m.editorConfig)||{},customization:{...((v=(g=t.onlyOfficeConfig)==null?void 0:g.editorConfig)==null?void 0:v.customization)||{},review:{reviewDisplay:"final"}}},document:{key:V.buildUUID(),title:D3,url:C(t.loadUrl,z),fileType:B,...((_=t.onlyOfficeConfig)==null?void 0:_.document)||{}},documentType:D(B)};return}}catch(h){console.info("预览错误: ",h)}};e.watch([i,t.file],([c,d])=>{c&&e.nextTick(()=>{p(t.file)})});const f=()=>{i.value=!1,a.office=!1,a.image=!1,a.video=!1};return(c,d)=>{var u,m;const r=e.resolveComponent("el-image-viewer");return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(u=l.value)!=null&&u.url&&a.image?(e.openBlock(),e.createBlock(r,{key:0,onClose:d[0]||(d[0]=g=>{l.value=null,a.image=!1}),ref:"previewImgRef","url-list":[(m=l.value)==null?void 0:m.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 文档类 "),e.createVNode(e.unref(z3),{modelValue:a.office,"onUpdate:modelValue":d[1]||(d[1]=g=>a.office=g),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:f,"modal-class":"ik-only-preview-dialog"},{default:e.withCtx(()=>{var g;return[e.createVNode(e.unref(S3),{"config-options":n.value,"document-server-url":((g=o.onlyOfficeConfig)==null?void 0:g.serverUrl)||o.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):e.createCommentVNode("v-if",!0)}}}),O3="",O=y($),q={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},H=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),e.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),e.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],A={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},T=[e.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],j={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},P=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],L={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},U=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],W={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},K=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],G={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},X=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],Y={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},Z=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],J={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},Q=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],e3={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},t3=[e.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),e.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),e.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],o3={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},n3=[e.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),e.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),e.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),e.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],i3={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},l3=[e.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),e.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),e.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],s3={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},c3=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),e.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],a3=e.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(o){const t=o,i=e.computed(()=>t.file?x(t.file,t.fields):t.type);return(s,n)=>i.value==="image"?(e.openBlock(),e.createElementBlock("svg",q,H)):i.value==="zip"?(e.openBlock(),e.createElementBlock("svg",A,T)):i.value==="ppt"?(e.openBlock(),e.createElementBlock("svg",j,P)):i.value==="word"?(e.openBlock(),e.createElementBlock("svg",L,U)):i.value==="pdf"?(e.openBlock(),e.createElementBlock("svg",W,K)):i.value==="txt"?(e.openBlock(),e.createElementBlock("svg",G,X)):i.value==="audio"?(e.openBlock(),e.createElementBlock("svg",Y,Z)):i.value==="video"?(e.openBlock(),e.createElementBlock("svg",J,Q)):i.value==="excel"?(e.openBlock(),e.createElementBlock("svg",e3,t3)):i.value==="exe"?(e.openBlock(),e.createElementBlock("svg",o3,n3)):i.value==="json"?(e.openBlock(),e.createElementBlock("svg",i3,l3)):(e.openBlock(),e.createElementBlock("svg",s3,c3))}}),r3={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},d3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},p3=["xlink:href"],h3=["src"],f3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},u3=["xlink:href"],m3=["src"],g3=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(o){const t=o,i=e.computed(()=>{var n,l,a;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(n=t.name)!=null&&n.startsWith("iksig")?"iksig":(l=t.name)!=null&&l.includes(":")?"iconify":(a=t.name)!=null&&a.startsWith("iksvg")?"svg":"i"}),s=e.computed(()=>{const n=[];if(t.flip)switch(t.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.rotate&&n.push(`rotate(${t.rotate%360}deg)`);const l={...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...n.length&&{transform:n.join(" ")},padding:t.showBg||t.bg?t.padding:0,...t.color&&i.value!=="iksig"?{"--ik-color-icon-dark":t.color,"--ik-color-icon-light":t.colorLight||V.ikColor.setOpacity(t.color,t.opacity)}:{}};return t.width&&(l.width=l.height=typeof t.width=="number"?`${t.width}px`:t.width),l});return(n,l)=>{const a=e.resolveComponent("el-tooltip"),p=e.resolveComponent("el-button");return n.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",r3,[n.notip||!n.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:i.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning||t.type==="warning",primary:n.primary||t.type==="primary",success:n.success||t.type==="success",error:n.error||t.type==="error",active:n.active,disabled:n.disabled}]),style:e.normalizeStyle(s.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(s.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",d3,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,p3)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,h3)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(n.name),style:e.normalizeStyle(s.value)},null,6))],6)):(e.openBlock(),e.createBlock(a,{key:1,content:n.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:i.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning||t.type==="warning",primary:n.primary||t.type==="primary",success:n.success||t.type==="success",error:n.error||t.type==="error",active:n.active}]),style:e.normalizeStyle(s.value)},[i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(s.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",f3,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,u3)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,m3)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(n.name),style:e.normalizeStyle(s.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(p,{key:1,type:["warning","error"].includes(n.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1},8,["type"]))}}}),m6="",k=y(E(g3,[["__scopeId","data-v-7d95dbf5"]])),_3={key:0,class:"exit-main-page-maximize"},w3=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(o){return(t,i)=>(e.openBlock(),e.createElementBlock("div",null,[o.showBg&&o.fullscreen?(e.openBlock(),e.createElementBlock("div",_3,[e.createVNode(e.unref(k),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(k),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),_6="",y3=E(w3,[["__scopeId","data-v-79f49df8"]]),k3={class:"base-header"},v3=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=o,i=e.useModel(o,"modelValue"),s=e.ref(t.fullscreen),n=()=>{s.value=!s.value},l=e.defineComponent({setup(){return()=>e.h(y3,{showBg:t.showCloseBg,fullscreen:t.fullscreen})}});return(a,p)=>{const f=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(f,e.mergeProps({modelValue:i.value,"onUpdate:modelValue":p[0]||(p[0]=c=>i.value=c)},a.$attrs,{"close-icon":e.unref(l),class:`ik-base-dialog ${a.noHeader?"no-header":""} ${a.noFooter?"no-footer":""}`,fullscreen:s.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(a.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",k3,[e.renderSlot(a.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),a.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(k),{key:0,onClick:n,name:s.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:s.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[a.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),w6="",z3=y(v3);function B3(o,t,i,s){function n(l){return l instanceof i?l:new i(function(a){a(l)})}return new(i||(i=Promise))(function(l,a){function p(d){try{c(s.next(d))}catch(r){a(r)}}function f(d){try{c(s.throw(d))}catch(r){a(r)}}function c(d){d.done?l(d.value):n(d.value).then(p,f)}c((s=s.apply(o,t||[])).next())})}function V3(o,t){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,n,l,a;return a={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function p(c){return function(d){return f([c,d])}}function f(c){if(s)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(s=1,n&&(l=c[0]&2?n.return:c[0]?n.throw||((l=n.return)&&l.call(n),0):n.next)&&!(l=l.call(n,c[1])).done)return l;switch(n=0,l&&(c=[c[0]&2,l.value]),c[0]){case 0:case 1:l=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!l||c[1]>l[0]&&c[1]<l[3])){i.label=c[1];break}if(c[0]===6&&i.label<l[1]){i.label=l[1],l=c;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(c);break}l[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(o,i)}catch(d){c=[6,d],n=0}finally{s=l=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var C3=function(o,t){return B3(void 0,void 0,void 0,function(){return V3(this,function(i){return[2,new Promise(function(s,n){try{if(window.DocsAPI)return s(null);var l=document.getElementById(t);if(l)var a=setInterval(function(){var f=l.getAttribute("loading");if(!f){if(clearInterval(a),window.DocsAPI)return s(null);var c=b(t,o,s,n);l.remove(),document.body.appendChild(c)}},500);else{var p=b(t,o,s,n);document.body.appendChild(p)}}catch(f){console.error(f)}})]})})},b=function(o,t,i,s){var n=document.createElement("script");return n.id=o,n.type="text/javascript",n.src=t,n.async=!0,n.onload=function(){n.removeAttribute("loading"),i(null)},n.onerror=function(l){n.removeAttribute("loading"),s(l)},n.setAttribute("loading",""),n},F=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var o=this,t=this.documentServerUrl;t.endsWith("/")||(t+="/");var i="".concat(t,"web-apps/apps/api/documents/api.js");C3(i,"onlyoffice-api-script").then(function(){return o.onLoad()}).catch(function(){o.onError(-2)})},unmounted:function(){var o,t=this.id||"";!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0)},watch:{config:{handler:function(o,t){this.onChangeProps()},deep:!0},document_fileType:function(o,t){this.onChangeProps()},document_title:function(o,t){this.onChangeProps()},documentType:function(o,t){this.onChangeProps()},editorConfig_lang:function(o,t){this.onChangeProps()},height:function(o,t){this.onChangeProps()},type:function(o,t){this.onChangeProps()},width:function(o,t){this.onChangeProps()}},methods:{onLoad:function(){var o,t;try{var i=this.id||"";if(window.DocsAPI||this.onError(-3),!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[i]){console.log("Skip loading. Instance already exists",i);return}!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances||(window.DocEditor={instances:{}});var s=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),n=window.DocsAPI.DocEditor(i,s);window.DocEditor.instances[i]=n}catch(l){console.error(l),this.onError(-1)}},onError:function(o){var t;switch(o){case-2:t="Error load DocsAPI from "+this.documentServerUrl;break;case-3:t="DocsAPI is not defined";break;default:t="Unknown error loading component",o=-1}typeof this.onLoadComponentError>"u"?console.error(t):this.onLoadComponentError(o,t)},onAppReady:function(){var o=this.id||"";this.events_onAppReady(window.DocEditor.instances[o])},onChangeProps:function(){var o,t=this.id||"";!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const E3=["id"];function F3(o,t,i,s,n,l){return e.openBlock(),e.createElementBlock("div",{id:o.id},null,8,E3)}F.render=F3,F.__file="src/components/DocumentEditor.vue";const x3=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(o){const t=o,i=e.ref({width:"100%",height:"100%",...t.configOptions||{},...t.configOptions}),s=()=>{console.info("文档加载完成",t.configOptions)};return(n,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:t.officeHeight})},[e.createVNode(e.unref(F),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":o.documentServerUrl,config:i.value,events_onDocumentReady:s},null,8,["id","document-server-url","config"])],4))}}),y6="",S3=y(E(x3,[["__scopeId","data-v-98d51ef9"]])),b3=["onClick"],N3={class:"text"},R3={class:"fileName"},M3={class:"size"},I3=e.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},setup(o){const t=o,{cLoadUrl:i,cOnlyofficeConfig:s}=M(t),n=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),l=e.ref({}),a=e.ref(!1),p=r=>{var u,m;l.value={...r,name:r.name,url:C(i.value,r.url||((m=(u=r==null?void 0:r.response)==null?void 0:u.data)==null?void 0:m.id)||(r==null?void 0:r.id))},a.value=!0},f=r=>{V.ikFile.downloadFile(C(i.value,r[n.value.url]||r.attachmentId||r.id),r[n.value.name]||r.attachmentName)},c=e.computed(()=>V.paramType.isNumber(t.width)?`${t.width}px`:t.width),d=e.computed(()=>t.list.map(r=>({...r,name:r[n.value.name]||r.attachmentName,size:r[n.value.size]||r.fileSize||r.attachmentSize,suffix:r[n.value.suffix]||r.attachmentSuffix})));return(r,u)=>{var m,g,v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(m=o.list)!=null&&m.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(d.value,(_,h)=>{var z;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["iking-privew-annex",{"is-bg":o.showBg}]),key:h,style:e.normalizeStyle({marginBottom:h==((z=o.list)==null?void 0:z.length)-1?"0":"10px",width:c.value})},[e.createElementVNode("div",{class:"file-card",onClick:B=>p(_)},[e.createVNode(a3,{file:_,style:e.normalizeStyle({height:`${o.iconSize}px`}),class:"ikui-w-auto",fields:n.value},null,8,["file","style","fields"]),e.createElementVNode("div",N3,[e.createElementVNode("div",R3,e.toDisplayString(_.name),1),e.createElementVNode("div",M3,e.toDisplayString(e.unref(R)(_.size)),1)]),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-center",{"hover-show":o.iconHoverShow}])},[e.createVNode(e.unref(k),{name:"iksvg_daochu",onClick:e.withModifiers(B=>f(_),["stop"]),bg:o.showBg,size:o.showBg?"default":20},null,8,["onClick","bg","size"]),e.createVNode(e.unref(k),{name:"iksvg_yulan",bg:o.showBg,size:o.showBg?"default":20},null,8,["bg","size"]),e.renderSlot(r.$slots,"operation",{data:{..._,findex:h}})],2)],8,b3)],6)}),128)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(O),{show:a.value,"onUpdate:show":u[0]||(u[0]=_=>a.value=_),loadUrl:e.unref(i),file:l.value,onlyofficeServer:((g=e.unref(s))==null?void 0:g.serverUrl)||o.onlyofficeServer,onlyOfficeConfig:e.unref(s),onlyOfficeAccept:((v=e.unref(s))==null?void 0:v.accept)||o.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),v6="",N=y(I3);w.IkPreviewFile=N,w.default=N,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(U,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("element-plus"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus","axios"],e):(U=typeof globalThis<"u"?globalThis:U||self,e(U.index={},U.vue,U["iking-utils-pro"],U["element-plus"],U.axios))})(this,function(U,e,C,_,me){"use strict";const ne=(c,m)=>{if(c.install=t=>{for(const l of[c,...Object.values(m??{})])t.component(l.name,l)},m)for(const[t,l]of Object.entries(m))c[t]=l;return c},D=(c,m)=>{const t=c.__vccOpts||c;for(const[l,u]of m)t[l]=u;return t},Ae=c=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...c.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",...c.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...c.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...c.defaultStatus},listData:[]}),ye=(c,m,t)=>{let l="";switch(m){case c.nodeType.审批节点:t&&t.length==1?l="ikapprove-ziyuan":l="ikapprove-shenpi";break;case c.nodeType.办理节点:l="ikapprove-bianji";break;case c.nodeType.抄送节点:l="ikapprove-chaosong";break;case c.nodeType.并行分支:l="ikapprove-fenzhi";break;case c.nodeType.子流程:l="ikapprove-ziliucheng1";break;default:l="ikapprove-ziyuan"}return`ikapprove ${l}`},ue={},ke={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},ge=[e.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),e.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function Be(c,m){return e.openBlock(),e.createElementBlock("svg",ke,ge)}const xe=D(ue,[["render",Be]]),_e={},Ee={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"},Oe=[e.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-color-icon-dark)","p-id":"8421"},null,-1),e.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)];function Ve(c,m){return e.openBlock(),e.createElementBlock("svg",Ee,Oe)}const Ne=D(_e,[["render",Ve]]),Te={},Ce={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"},Le=[e.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-color-icon-light-hover)","p-id":"7125"},null,-1),e.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)];function Pe(c,m){return e.openBlock(),e.createElementBlock("svg",Ce,Le)}const Se=D(Te,[["render",Pe]]),we={},be={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"},Ue=[e.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),e.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-color-icon-light-hover)","p-id":"6991"},null,-1)];function De(c,m){return e.openBlock(),e.createElementBlock("svg",be,Ue)}const Ie=D(we,[["render",De]]),Fe={},$e={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"},Re=[e.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-color-icon-light-hover)","p-id":"6855"},null,-1),e.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)];function Me(c,m){return e.openBlock(),e.createElementBlock("svg",$e,Re)}const We=D(Fe,[["render",Me]]),je={class:"avatar"},He={key:3,class:"user_box"},Ge={key:1,class:"avatar_name"},ze=e.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(c){const m=c,t=m.imageBaseUrl?`${m.imageBaseUrl}/server/oss/download?fileUrl=`:`${location.origin}/server/oss/download?fileUrl=`,l=u=>u?u.startsWith("http")?u:`${t}${u}`:"";return(u,k)=>{const E=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",je,[m.fixTypeOpt.group===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(We,{key:0})):m.fixTypeOpt.role===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(Se,{key:1})):m.fixTypeOpt.post===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(Ie,{key:2})):m.fixTypeOpt.user===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createElementBlock("div",He,[c.element[c.fixPropOpt.avatar]?(e.openBlock(),e.createBlock(E,{key:0,shape:"square",src:l(c.fixPropOpt.avatar?c.element[c.fixPropOpt.avatar]:"")},null,8,["src"])):(e.openBlock(),e.createElementBlock("div",Ge,e.toDisplayString(c.element[c.fixPropOpt.name].slice(-2)),1))])):e.createCommentVNode("v-if",!0)])}}}),gl="",S=D(ze,[["__scopeId","data-v-4069f4f8"]]),q="data:image/webp;base64,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",Z={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]}},K=c=>(e.pushScopeId("data-v-f7a5199f"),c=c(),e.popScopeId(),c),Qe={class:"left-pick-list"},Xe={key:1,class:"post-view-list"},qe={class:"checkText"},Ze={class:"iconBox"},Ke={class:"name_number"},Ye={class:"title"},Je={key:0,class:"userCount"},ve={key:1,class:"checkText"},et=K(()=>e.createElementVNode("div",{class:"side"},null,-1)),tt={class:"iconBox"},ot={class:"name_number"},lt={class:"title"},at={key:0,class:"userCount"},nt=["onClick"],st={class:"checkText"},rt={class:"iconBox"},it={class:"name_number"},ct={class:"title"},pt={key:0,class:"userCount"},dt={key:1,class:"checkText"},ft=K(()=>e.createElementVNode("div",{class:"side"},null,-1)),ht={class:"iconBox"},mt={class:"name_number"},At={class:"title"},yt={key:0,class:"userCount"},ut=["onClick"],kt={key:2,class:"empty"},gt=K(()=>e.createElementVNode("img",{src:q,alt:""},null,-1)),Bt=e.defineComponent({__name:"GroupList",props:Z,emits:["change","check","handChild"],setup(c,{emit:m}){var h,r;const t=c,l=e.computed(()=>{var n,a;return((n=t.handList)==null?void 0:n.length)===((a=t.list)==null?void 0:a.length)}),u=e.computed(()=>{var s,p,x,B;const n=(s=t.handList)==null?void 0:s.length,a=(p=t.list)==null?void 0:p.length;return t.multiple?k.value=t.handList.map(f=>f[t.fixPropOpt.id]):E.value=(B=(x=t.handList)==null?void 0:x[0])==null?void 0:B[t.fixPropOpt.id],n>0&&n<a}),k=e.ref(t.handList.map(n=>n[t.fixPropOpt.id])),E=e.ref((r=(h=t.handList)==null?void 0:h[0])==null?void 0:r[t.fixPropOpt.id]),i=m,L=n=>{const a=n?t.list.map(s=>{if(t.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())&&s.available!==!1)return s[t.fixPropOpt.id]}):[];i("change",a,n?t.list:[])},T=n=>{i("change",n,t.list)},V=n=>{i("change",n,t.list)},P=(n,a)=>{a||i("handChild",n)};return(n,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",Qe,[n.multiple&&n.list&&n.list.length?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=s=>l.value=s),indeterminate:u.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),n.list&&n.list.length?(e.openBlock(),e.createElementBlock("ul",Xe,[n.multiple?(e.openBlock(),e.createBlock(e.unref(_.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":a[1]||(a[1]=s=>k.value=s),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,s=>{var p;return e.openBlock(),e.createElementBlock("li",{key:s[t.fixPropOpt.id]},[n.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())&&s.available!==!1?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,label:s[t.fixPropOpt.id],disabled:s.available===!1},{default:e.withCtx(()=>[e.createElementVNode("div",qe,[e.createElementVNode("div",Ze,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ke,[e.createElementVNode("div",Ye,e.toDisplayString(s[t.fixPropOpt.name]),1),s[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",Je," ("+e.toDisplayString(s.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label","disabled"])):(e.openBlock(),e.createElementBlock("div",ve,[et,e.createElementVNode("div",tt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",ot,[e.createElementVNode("div",lt,e.toDisplayString(s[t.fixPropOpt.name]),1),s[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",at," ("+e.toDisplayString(s.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),s[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(p=k.value)==null?void 0:p.find(x=>x===s[t.fixPropOpt.id])}]),onClick:x=>{var B;return P(s,(B=k.value)==null?void 0:B.find(f=>f===s[t.fixPropOpt.id]))}}," 下级",10,nt)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(_.ElRadioGroup),{key:1,isIndeterminate:u.value,modelValue:E.value,"onUpdate:modelValue":a[2]||(a[2]=s=>E.value=s),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,s=>{var p;return e.openBlock(),e.createElementBlock("li",{class:"w-full",key:s[t.fixPropOpt.id]},[n.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())&&s.available!==!1?(e.openBlock(),e.createBlock(e.unref(_.ElRadio),{key:0,label:s[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",st,[e.createElementVNode("div",rt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",it,[e.createElementVNode("div",ct,e.toDisplayString(s[t.fixPropOpt.name]),1),s[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",pt," ("+e.toDisplayString(s.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",dt,[ft,e.createElementVNode("div",ht,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",mt,[e.createElementVNode("div",At,e.toDisplayString(s[t.fixPropOpt.name]),1),s[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",yt," ("+e.toDisplayString(s.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),s[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(p=k.value)==null?void 0:p.find(x=>x===s[t.fixPropOpt.id])}]),onClick:x=>{var B;return P(s,(B=k.value)==null?void 0:B.find(f=>f===s[t.fixPropOpt.id]))}}," 下级",10,ut)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",kt,[gt,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),Bl="",xt=D(Bt,[["__scopeId","data-v-f7a5199f"]]),Y=c=>(e.pushScopeId("data-v-e03f0d36"),c=c(),e.popScopeId(),c),_t={class:"left-pick-list"},Et={key:1,class:"post-view-list"},Ot={class:"iconBox"},Vt={key:1,class:"checkText"},Nt=Y(()=>e.createElementVNode("div",{class:"side"},null,-1)),Tt={class:"iconBox"},Ct={class:"title"},Lt={class:"ik-picker-single"},Pt={class:"iconBox"},St={key:1,class:"checkText"},wt=Y(()=>e.createElementVNode("div",{class:"side"},null,-1)),bt={class:"iconBox"},Ut={class:"title"},Dt={key:2,class:"empty"},It=Y(()=>e.createElementVNode("img",{src:q,alt:""},null,-1)),Ft=e.defineComponent({__name:"PostList",props:Z,emits:["change","check"],setup(c,{emit:m}){var P,h;const t=c,l=e.computed(()=>{var r,n;return((r=t.handList)==null?void 0:r.length)===((n=t.list)==null?void 0:n.length)}),u=e.computed(()=>{var a,s,p,x;const r=(a=t.handList)==null?void 0:a.length,n=(s=t.list)==null?void 0:s.length;return t.multiple?k.value=t.handList.map(B=>B[t.fixPropOpt.id]):E.value=(x=(p=t.handList)==null?void 0:p[0])==null?void 0:x[t.fixPropOpt.id],r>0&&r<n}),k=e.ref(t.handList.map(r=>r[t.fixPropOpt.id])),E=e.ref((h=(P=t.handList)==null?void 0:P[0])==null?void 0:h[t.fixPropOpt.id]),i=m,L=r=>{const n=r?t.list.map(a=>a[t.fixPropOpt.id]):[];i("change",n,r?t.list:[])},T=r=>{i("change",r,t.list)},V=r=>{i("change",r,t.list)};return(r,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",_t,[r.multiple&&r.chooseType.includes("post")&&r.list&&r.list.length?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=a=>l.value=a),indeterminate:u.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),r.list&&r.list.length?(e.openBlock(),e.createElementBlock("ul",Et,[r.multiple?(e.openBlock(),e.createBlock(e.unref(_.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":n[1]||(n[1]=a=>k.value=a),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,a=>(e.openBlock(),e.createElementBlock("li",{key:a[t.fixPropOpt.id]},[r.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,label:a[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",Ot,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(a[t.fixPropOpt.name]),1)]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",Vt,[Nt,e.createElementVNode("div",Tt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ct,e.toDisplayString(a[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(_.ElRadioGroup),{key:1,isIndeterminate:u.value,modelValue:E.value,"onUpdate:modelValue":n[2]||(n[2]=a=>E.value=a),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,a=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:a[t.fixPropOpt.id]},[r.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(_.ElRadio),{key:0,label:a[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",Lt,[e.createElementVNode("div",Pt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(a[t.fixPropOpt.name]),1)])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",St,[wt,e.createElementVNode("div",bt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ut,e.toDisplayString(a[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",Dt,[It,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),xl="",$t=D(Ft,[["__scopeId","data-v-e03f0d36"]]),J=c=>(e.pushScopeId("data-v-be3b3e45"),c=c(),e.popScopeId(),c),Rt={class:"left-pick-list"},Mt={key:1,class:"role-view-list"},Wt={class:"iconBox"},jt=["title"],Ht={key:1,class:"checkText"},Gt=J(()=>e.createElementVNode("div",{class:"side"},null,-1)),zt={class:"iconBox"},Qt=["title"],Xt={class:"ik-picker-single"},qt={class:"iconBox"},Zt=["title"],Kt={key:1,class:"checkText"},Yt=J(()=>e.createElementVNode("div",{class:"side"},null,-1)),Jt={class:"iconBox"},vt=["title"],eo={key:2,class:"empty"},to=J(()=>e.createElementVNode("img",{src:q,alt:""},null,-1)),oo=e.defineComponent({__name:"RoleList",props:Z,emits:["change","check"],setup(c,{emit:m}){var P,h;const t=c,l=e.computed(()=>{var r,n;return((r=t.handList)==null?void 0:r.length)===((n=t.list)==null?void 0:n.length)}),u=e.computed(()=>{var a,s,p,x;const r=(a=t.handList)==null?void 0:a.length,n=(s=t.list)==null?void 0:s.length;return t.multiple?k.value=t.handList.map(B=>B[t.fixPropOpt.id]):E.value=(x=(p=t.handList)==null?void 0:p[0])==null?void 0:x[t.fixPropOpt.id],r>0&&r<n}),k=e.ref(t.handList.map(r=>r[t.fixPropOpt.id])),E=e.ref((h=(P=t.handList)==null?void 0:P[0])==null?void 0:h[t.fixPropOpt.id]),i=m,L=r=>{const n=r?t.list.map(a=>a[t.fixPropOpt.id]):[];i("change",n,r?t.list:[])},T=r=>{i("change",r,t.list)},V=r=>{i("change",r,t.list)};return(r,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",Rt,[r.multiple&&r.chooseType.includes("role")&&r.list&&r.list.length?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=a=>l.value=a),indeterminate:u.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),r.list&&r.list.length?(e.openBlock(),e.createElementBlock("ul",Mt,[r.multiple?(e.openBlock(),e.createBlock(e.unref(_.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":n[1]||(n[1]=a=>k.value=a),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,a=>(e.openBlock(),e.createElementBlock("li",{key:a[r.fixPropOpt.id]},[r.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,label:a[r.fixPropOpt.id],value:a[r.fixPropOpt.id],disabled:a.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",Wt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:a[r.fixPropOpt.name]},e.toDisplayString(a[r.fixPropOpt.name]),9,jt)]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",Ht,[Gt,e.createElementVNode("div",zt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:a[r.fixPropOpt.name]},e.toDisplayString(a[r.fixPropOpt.name]),9,Qt)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(_.ElRadioGroup),{key:1,indeterminate:u.value,modelValue:E.value,"onUpdate:modelValue":n[2]||(n[2]=a=>E.value=a),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,a=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:a[r.fixPropOpt.id]},[r.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(_.ElRadio),{key:0,label:a[r.fixPropOpt.id],value:a[r.fixPropOpt.id],disabled:a.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",Xt,[e.createElementVNode("div",qt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:a[r.fixPropOpt.name]},e.toDisplayString(a[r.fixPropOpt.name]),9,Zt)])]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",Kt,[Yt,e.createElementVNode("div",Jt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:a[r.fixPropOpt.name]},e.toDisplayString(a[r.fixPropOpt.name]),9,vt)]))]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",eo,[to,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),_l="",lo=D(oo,[["__scopeId","data-v-be3b3e45"]]);var z=(c=>(c.group="group",c.role="role",c.post="post",c))(z||{});const ao={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:c=>{if(c===void 0)return!0;if(Array.isArray(c)){if(!(c!=null&&c.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"},dataScopeOnly:{type:Boolean,default:!1},rootDepartmentOnly:{type:Boolean,default:!1}},se=c=>{const m=window.location.search;return new URLSearchParams(m).get(c)},no=c=>{const m=C.ikStore.local.getItem("x_domain");m&&(c["X-DOMAIN"]=m)},so=c=>{var t;const m=se("domain");if(m){c["X-DOMAIN"]=m;const l=se("code");m==="APPLICATION"&&(c["X-APP"]=l)}else no(c);(t=C.ikStore.local.getItem("tenant"))==null||t.code},ro=(c,m)=>{const t=e.ref([]),l=async(k,E)=>{var O,N;const{url:i,methods:L,headers:T,param:V}=c.value||{},P={...V||{},parentDepartmentId:k||"",name:E||"",rootDepartmentOnly:m.rootDepartmentOnly,dataScopeOnly:m.dataScopeOnly},h={method:L,url:i,headers:{"Content-Type":"application/json;charset=UTF-8",...T},data:JSON.stringify(P)};so(h.headers);const r=await me(h),{success:n,data:a}=r.data;if(!n)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:s,roles:p,posts:x,users:B,rootOrganization:f,rootDepartment:b}=a,$=f||b;return t.value.length===0&&(t.value[0]=m.org?{...m.org,id:m.elementId,elementType:(N=(O=m.org)==null?void 0:O.elementType)==null?void 0:N.toLocaleUpperCase()}:{...$,id:$.elementId}),{groupList:C._.cloneDeep(s),roleList:C._.cloneDeep(p),postList:C._.cloneDeep(x),userList:C._.cloneDeep(B),rootOrganization:f,rootDepartment:b}};return{handData:l,handSetChild:(k,E)=>{l(k==null?void 0:k.elementId,E)},bannerList:t}},io={shadow:"hover",class:"sel-list"},co={key:0},po=e.createElementVNode("div",{class:"split-div"},null,-1),fo={class:"choose-list"},ho={class:"choose-item"},mo=e.createElementVNode("div",null,"已选",-1),Ao={class:"choose-box"},yo={class:"list-group-item"},uo={class:"item_info"},ko={class:"avatar_box"},go={class:"dialog-footer"},Bo=e.defineComponent({__name:"picker",props:ao,emits:["handChild","update:show","update:modelValue","ok","search"],setup(c,{expose:m,emit:t}){e.useCssVars(o=>({d3f7bd36:fe.value}));const l=c,u=e.ref(""),k=e.ref(""),E=e.ref([]),i=e.ref([]),L=e.ref([]),T=e.ref([]),V=e.ref(!1),P=e.computed(()=>R.value.includes("user")?i.value.concat(E.value):i.value);e.watch(()=>l.api,()=>{l.show&&O("")});const h=e.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...l.propOption})),r=e.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...l.typeOption})),n=e.ref([]),a=ro(e.toRef(l,"api"),l),s=a.handData,p=a.bannerList;l.immediate&&s(k.value,u.value);const x=o=>(o.forEach(d=>{var A,y;d.disabled=((y=(A=l.modelValue)==null?void 0:A.find(g=>g[h.value.id]===d[h.value.id]))==null?void 0:y.disabled)||!1}),o),B=async()=>{var o,d,A,y,g,I,ae,he;V.value=!0;try{if((o=l.groupList)!=null&&o.length||(d=l.userList)!=null&&d.length||(A=l.roleList)!=null&&A.length||(y=l.postList)!=null&&y.length){E.value=(g=l.userList)==null?void 0:g.filter(F=>F[h.value.name].includes(u.value)),i.value=(I=l.groupList)==null?void 0:I.filter(F=>F[h.value.name].includes(u.value)),L.value=(ae=l.roleList)==null?void 0:ae.filter(F=>F[h.value.name].includes(u.value)),T.value=(he=l.postList)==null?void 0:he.filter(F=>F[h.value.name].includes(u.value)),ee(),V.value=!1;return}const w=await s(k.value,u.value);try{E.value=x((w==null?void 0:w.userList)||[]),i.value=x((w==null?void 0:w.groupList)||[]),L.value=x((w==null?void 0:w.roleList)||[]),T.value=x((w==null?void 0:w.postList)||[])}catch(F){V.value=!1,console.info("error: ",F)}ee(),V.value=!1}catch{V.value=!1}},f=e.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),b=e.reactive({indeterminate:!1,checkAll:0}),$=o=>f.group.has(o)||f.user.has(o)||f.role.has(o)||f.post.has(o),O=C.ikEvent.debounce(B,300),N=e.computed(()=>{const o=Array.from(f.group.values()),d=Array.from(f.role.values()),A=Array.from(f.user.values()),y=Array.from(f.post.values());return n.value=[...d,...y,...A,...o],{list:[...d,...A,...y,...o],role:{list:d,len:d.length},user:{list:A,len:A.length},post:{list:y,len:y.length},groups:{list:o,len:o.length}}}),R=e.computed(()=>{const o=l.chooseType.map(A=>A.toLocaleLowerCase());let d=[...o];return o.includes("dep")&&(d=[...d,"dept"]),o.includes("dep_user")&&(d=[...d,"user"]),d}),M=e.ref([]),Ko=o=>{M.value=o,M.value.forEach(d=>{d.readonly=d==null?void 0:d.disabled})},Q=t,v=e.ref(!1),ee=(o=!1)=>{var A;const d=(A=l==null?void 0:l.userList)!=null&&A.length?C._.cloneDeep([...l==null?void 0:l.userList,...l==null?void 0:l.groupList]):[...i.value,...E.value];return!o&&Ko(d),d};e.watch(()=>l.show,async o=>{var d;if(v.value=o,o){k.value=((d=l.org)==null?void 0:d.elementId)||l.orgPid,!l.userList.length&&!l.groupList.length&&!l.roleList.length&&!l.postList.length?await B():(E.value=l.userList,i.value=l.groupList,L.value=l.roleList,T.value=l.postList),f.trans=[],b.checkAll=0,b.indeterminate=!1;const A=ee(!0);for(const g of A)$(g[h.value.id])&&f.trans.push(g[h.value.id]);const y=A.length===f.trans.length;b.indeterminate=!!(A.length&&!y),b.checkAll=Number(A.length&&y),e.nextTick(()=>{var g;(g=l.modelValue)!=null&&g.length?l.modelValue.forEach(I=>{j(I),l.multiple?f.trans.push(I[h.value.id]):f.single=I[h.value.id]}):G()})}else G()}),e.watchEffect(()=>{let o;o=M.value.length;const d=f.trans.length;b.indeterminate=f.trans.length?d!==o:!1,b.checkAll=+(o!==0&&d===o)}),e.watch(()=>l.modelValue,o=>{o!=null&&o.length?o.forEach(d=>{j(d),l.multiple?f.trans.push(d[h.value.id]):f.single=d[h.value.id]}):G()});const W=o=>{var d;if(o){if(f.single="",o[h.value.id]){const A=(d=f.trans)==null?void 0:d.findIndex(y=>y===o[h.value.id]);A!==-1&&f.trans.splice(A,1)}switch(o[h.value.type]){case r.value.user:return f.user.delete(o[h.value.id]);case r.value.role:return f.role.delete(o[h.value.id]);case r.value.post:return f.post.delete(o[h.value.id]);case r.value.group:return f.group.delete(o[h.value.id]);default:return}}},ce=o=>{W(o)},j=o=>{if(!$(o[h.value.id])){const d={...o};switch(o[h.value.type]){case r.value.user:return f.user.set(o[h.value.id],d);case r.value.role:return f.role.set(o[h.value.id],d);case r.value.post:return f.post.set(o[h.value.id],d);case r.value.group:return f.group.set(o[h.value.id],d);default:return}}},Yo=o=>[r.value.group].includes(o[h.value.type])?o==null?void 0:o.hasOwnProperty("disabled"):!1;e.watch(()=>f.trans,o=>{if(!o.length)M.value.forEach(d=>{d.disabled=!1;try{l.multiple&&W(d)}catch{}});else{const d=M.value.filter(y=>!o.includes(y[h.value.id]));for(const y of d)y.disabled=!1,l.multiple&&W(y);const A=M.value.filter(y=>o.includes(y[h.value.id]));for(const y of A)y.disabled=Yo(y),j(y)}},{deep:!0}),e.watch(()=>f.single,o=>{var d;if(o){const A=(d=M.value)==null?void 0:d.find(y=>y[h.value.id]===o);A&&(f.user.clear(),f.role.clear(),f.post.clear(),f.group.clear(),f.trans=[],e.nextTick(()=>{j(A)}))}});const Jo=o=>{k.value=o==null?void 0:o.elementId,B(),p.value.push(o)},pe=e.computed(()=>p.value.length),vo=(o,d)=>{!d&&!l.topLink||d!==pe.value-1&&(k.value=o==null?void 0:o.elementId,B(),p.value.splice(d+1))},el=e.computed(()=>l.chooseType.includes("role")&&l.chooseType.length===1),tl=e.computed(()=>l.chooseType.includes("post")&&l.chooseType.length===1),X=e.ref(l.tabs[0]),H=e.ref(l.tabs[0]);e.watchEffect(()=>(H.value=el.value?l.tabs[1]:tl.value?l.tabs[2]:X.value,H.value));const G=()=>{f.user.clear(),f.role.clear(),f.post.clear(),f.group.clear(),f.trans=[],oe.value=[],le.value=[],X.value=l.tabs[0],H.value=l.tabs[0],u.value="",k.value=l.orgPid,p.value.splice(1,p.value.length),f.single="",n.value=[]},ol=()=>{var o;Q("ok",C._.cloneDeep({...N.value,sort:n.value})),Q("update:modelValue",C._.cloneDeep(((o=N.value)==null?void 0:o.list)||[])),Q("update:show",!1),G()},de=()=>{Q("update:show",!1),G()};m({handClear:G,handRomeve:ce,handDelete:W});const ll=e.computed(()=>{const o=R.value;return!!((o.includes("post")||o.includes("role"))&&o.length>1)}),al=e.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(o=>l.tabs.includes(o.name))),fe=e.computed(()=>`${typeof l.height=="string"?Number.parseInt(l.height):l.height}px`),te=()=>{l.multiple||(f.post.clear(),f.role.clear(),f.user.clear(),f.group.clear(),f.single="")},nl=e.computed(()=>N.value.groups.list.concat(N.value.user.list)),sl=(o,d)=>{l.multiple||(f.single="");const A=l.multiple?o:[o];if(!A.length){f.group.clear(),f.user.clear();return}te(),d.forEach(y=>{A!=null&&A.includes(y[h.value.id])?j(y):W(y)})},oe=e.ref([]),rl=(o,d)=>{l.multiple||(f.single="");const A=l.multiple?o:[o];if(!A.length){f.role.clear();return}te(),d.forEach(y=>{A!=null&&A.includes(y[h.value.id])?j(y):W(y)})};e.watch(()=>N.value.role.len,o=>{oe.value=C._.cloneDeep(N.value.role.list)});const le=e.ref([]),il=(o,d)=>{l.multiple||(f.single="");const A=l.multiple?o:[o];if(!A.length){f.post.clear();return}te(),d.forEach(y=>{A!=null&&A.includes(y[h.value.id])?j(y):W(y)})};return e.watch(()=>N.value.post.len,o=>{le.value=C._.cloneDeep(N.value.post.list)}),e.watch(()=>u.value,o=>{O("")}),(o,d)=>{const A=e.resolveComponent("el-tab-pane"),y=e.resolveComponent("el-tabs");return e.openBlock(),e.createBlock(e.unref(_.ElDialog),{modelValue:v.value,"onUpdate:modelValue":d[2]||(d[2]=g=>v.value=g),title:o.title,"destroy-on-close":"","append-to-body":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof o.width=="string"?o.width:`${o.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:de},{footer:e.withCtx(()=>[e.createElementVNode("span",go,[e.createVNode(e.unref(_.ElButton),{onClick:e.withModifiers(de,["stop"])},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(e.unref(_.ElButton),{type:"primary",onClick:e.withModifiers(ol,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(" 确定 ")]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"dep-use-picker",style:e.normalizeStyle({height:fe.value})},[e.createElementVNode("div",io,[e.createElementVNode("div",null,[e.createVNode(e.unref(_.ElInput),{modelValue:u.value,"onUpdate:modelValue":d[0]||(d[0]=g=>u.value=g),clearable:"",placeholder:o.placeholder,"suffix-icon":xe},null,8,["modelValue","placeholder"]),ll.value?(e.openBlock(),e.createBlock(y,{key:0,modelValue:X.value,"onUpdate:modelValue":d[1]||(d[1]=g=>X.value=g),class:"ik-picker-tab"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(al.value,g=>(e.openBlock(),e.createBlock(A,{label:g.label,name:g.name,key:g.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 过滤 "),H.value===e.unref(z).group?(e.openBlock(),e.createElementBlock("div",co,[e.createCommentVNode(" 面包屑 全选 "),e.createVNode(e.unref(_.ElBreadcrumb),{separator:">",class:e.normalizeClass(["banner",{"top-unlink":!o.topLink}])},{default:e.withCtx(()=>[pe.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(p),(g,I)=>(e.openBlock(),e.createBlock(e.unref(_.ElBreadcrumbItem),{key:g[h.value.id],onClick:e.withModifiers(ae=>vo(g,I),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g[h.value.name]),1)]),_:2},1032,["onClick"]))),128)):e.createCommentVNode("v-if",!0)]),_:1},8,["class"])])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 左侧列表 "),e.createCommentVNode(" 组织架构 "),H.value===e.unref(z).group?e.withDirectives((e.openBlock(),e.createBlock(xt,{key:1,fixPropOpt:h.value,fixTypeOpt:r.value,list:P.value,max:o.max,multiple:o.multiple,"hand-list":nl.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,children:l.children,"choose-type":R.value,onHandChild:Jo,onChange:sl},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children","choose-type"])),[[e.unref(_.vLoading),V.value]]):H.value===e.unref(z).role?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" 角色 "),e.withDirectives(e.createVNode(lo,{fixPropOpt:h.value,fixTypeOpt:r.value,list:L.value,max:o.max,multiple:o.multiple,"hand-list":oe.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,"choose-type":R.value,onChange:rl},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(_.vLoading),V.value]])],64)):H.value===e.unref(z).post?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" 岗位 "),e.withDirectives(e.createVNode($t,{fixPropOpt:h.value,fixTypeOpt:r.value,list:T.value,max:o.max,multiple:o.multiple,"hand-list":le.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,"choose-type":R.value,onChange:il},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(_.vLoading),V.value]])],64)):e.createCommentVNode("v-if",!0)]),po,e.createCommentVNode(" 已选列表 "),e.createElementVNode("div",fo,[e.createElementVNode("div",ho,[mo,e.createVNode(e.unref(_.ElButton),{type:"primary",link:"",onClick:e.withModifiers(G,["stop"])},{default:e.withCtx(()=>[e.createTextVNode("清空")]),_:1})]),e.createElementVNode("ul",Ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,g=>(e.openBlock(),e.createElementBlock("li",yo,[e.createElementVNode("div",uo,[e.createCommentVNode(" icon前缀 "),e.createElementVNode("div",ko,[e.createVNode(S,{fixTypeOpt:r.value,fixPropOpt:h.value,element:g,imageBaseUrl:l.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("span",null,e.toDisplayString(g[h.value.name]),1)]),e.withDirectives(e.createVNode(Ne,{class:"close",onClick:e.withModifiers(I=>ce(g),["stop"])},null,8,["onClick"]),[[e.vShow,!(g!=null&&g.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),El="",xo=ne(Bo),re=c=>(e.pushScopeId("data-v-5753728e"),c=c(),e.popScopeId(),c),_o={class:"approveProcess",id:"approveProcess"},Eo={class:"node"},Oo={class:"nodeBg"},Vo={key:0,class:"info"},No={class:"explain"},To={key:0},Co={key:0},Lo={key:1},Po={key:0},So={key:1},wo={class:"personlist"},bo={style:{width:"58px"}},Uo={class:"avatar"},Do=["src"],Io={key:1,class:"nodeBg"},Fo=["onClick"],$o=["title"],Ro={key:0,class:"sign"},Mo={key:0},Wo=["onClick"],jo={key:0,class:"required"},Ho=re(()=>e.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Go={key:1,class:"node-branchs"},zo=re(()=>e.createElementVNode("div",{class:"branch-line"},null,-1)),Qo={style:{flex:"1"}},Xo={class:"node-branch"},qo={name:"IkApprovalProcess"},Zo=e.defineComponent({...qo,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(c,{expose:m}){const t=c,l=C.ikStore.local.getItem("token")||"Bearer 841b7a7b0d9c4021b1655192c28ac61b",u=e.ref("sys");function k(n){const a=window.location.search;return new URLSearchParams(a).get(n)}function E(){var a;const n=k("xTenant")||((a=C.ikStore.local.getItem("tenant"))==null?void 0:a.code);n&&(u.value=n)}E();const i=e.reactive(Ae(t)),L=async n=>{var a;if(n.multiple=!n[i.defaultFile.singleApproval]||n[i.defaultFile.isShowAddCopy],n.handList=n[i.defaultFile.approvePersonList]?n[i.defaultFile.approvePersonList]:[],n[i.defaultFile.nodeType]===i.nodeType.抄送节点)n.handList.forEach(s=>{s.elementName||(s.elementName=s.userName,s.elementId=s.userId,s.avatar=s.userAvatar),s.elementType="USER",s.disabled=!0}),n.chooseType=["user"],n.userList=[],n.depList=[];else switch(n[i.defaultFile.initiatorSpecifiedScopeType]){case"ALL":n.chooseType=["dep_user"],n.userList=[],n.depList=[];break;default:n.chooseType=["user"],n.userList=n.userList?n.userList:(a=n[i.defaultFile.initiatorSpecifiedScope])==null?void 0:a.map(s=>({...s,elementName:(s==null?void 0:s.executorName)||(s==null?void 0:s.userName),elementId:(s==null?void 0:s.executorId)||(s==null?void 0:s.userId),avatar:((s==null?void 0:s.executorAvatar)||(s==null?void 0:s.userAvatar))&&T((s==null?void 0:s.executorAvatar)||(s==null?void 0:s.userAvatar))||"",elementType:"USER"}))}e.nextTick(()=>{n.isShow=!0})},T=n=>{let a="";return n.includes("http")||n.includes("https")?a=n:a=t.loadUrl?`${t.loadUrl}${n}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${n}`,a},V=(n,a)=>{t.dataList[a].handList=n.list;let p=(t.dataList[a][i.defaultFile.approvePersonList]||[]).filter(B=>!B.canDele),x=n.list.map(B=>({...B,userName:B.elementName,userAvatar:B.avatar,canDele:!0}));t.dataList[a][i.defaultFile.approvePersonList]=p.concat(x)},P=(n,a)=>{t.dataList[n][i.defaultFile.approvePersonList].splice(a,1),t.dataList[n].handList=t.dataList[n][i.defaultFile.approvePersonList]},h=()=>{let n=!0;return t.dataList.forEach(a=>{var s;a.required=!1,a[i.defaultFile.nodeType]==i.nodeType.审批节点&&a[i.defaultFile.isShowAdd]&&((s=a[i.defaultFile.approvePersonList])!=null&&s.length||(n=!1,a.required=!0))}),n},r=e.computed(()=>({propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:l,"X-Tenant":u.value}}}));return m({requiredVerification:h}),(n,a)=>{const s=e.resolveComponent("IkApprovalProcess");return e.openBlock(),e.createElementBlock("div",_o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList,(p,x)=>{var B,f,b,$;return e.openBlock(),e.createElementBlock("div",{class:"content",key:p.id},[e.createCommentVNode(" 审批节点类型 "),e.createElementVNode("div",Eo,[e.createElementVNode("span",Oo,[e.createElementVNode("i",{class:e.normalizeClass(e.unref(ye)(i,p[i.defaultFile.nodeType]))},null,2)]),e.createElementVNode("div",{class:"line",style:e.normalizeStyle({"border-left":x===t.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),p[i.defaultFile.nodeType]!==i.nodeType.并行分支?(e.openBlock(),e.createElementBlock("div",Vo,[e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(p[i.defaultFile.nodeTypeName]),1),e.createElementVNode("div",No,[e.createCommentVNode(" 抄送节点 "),p[i.defaultFile.nodeType]==i.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("span",To,[p[i.defaultFile.approvePersonList].length?(e.openBlock(),e.createElementBlock("span",Co,e.toDisplayString(`抄送${p[i.defaultFile.approvePersonList].length}人`),1)):e.createCommentVNode("v-if",!0),p[i.defaultFile.isShowAdd]?(e.openBlock(),e.createElementBlock("span",Lo,",可添加抄送人")):e.createCommentVNode("v-if",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 审批节点 "),e.createElementVNode("span",null,[e.createCommentVNode(" 存在审批人时 "),(B=p[i.defaultFile.approvePersonList])!=null&&B.length?(e.openBlock(),e.createElementBlock("span",Po,e.toDisplayString(((f=p[i.defaultFile.approvePersonList])==null?void 0:f.length)==1?"1人审批":`${(b=p[i.defaultFile.approvePersonList])==null?void 0:b.length}人${p[i.defaultFile.multiExecutorTypeName]}`),1)):[i.statusWithoutApprover.自动通过,i.statusWithoutApprover.自动拒绝].includes(p[i.defaultFile.approveType])?(e.openBlock(),e.createElementBlock("span",So,e.toDisplayString(p[i.defaultFile.approveTypeName]),1)):p[i.defaultFile.executorEmptyStrategy]&&p[i.defaultFile.executorEmpty]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),e.createElementVNode("span",null,[e.createTextVNode(" 未找到审批人,"),e.createElementVNode("span",null,e.toDisplayString(p[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.自动通过?"将自动通过":p[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.自动转交管理员?"自动转交给管理员":p[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.指定人员审批?`将自动转给指定成员${p[i.defaultFile.reserveExecutorUsers]&&p[i.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[i.nodeType.并行分支,i.nodeType.子流程].includes(p[i.defaultFile.nodeType])?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(p.required?"warn":"")}," 请选择"+e.toDisplayString(p[i.defaultFile.nodeType]===i.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),e.createElementVNode("div",wo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p[i.defaultFile.approvePersonList],(O,N)=>{var R;return e.openBlock(),e.createElementBlock("div",{class:"list",key:O.userId},[e.createElementVNode("div",bo,[e.createElementVNode("div",Uo,[O.userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,src:T(O.userAvatar),alt:""},null,8,Do)):(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("span",null,e.toDisplayString(O.userName.slice(-2)),1)])),O.canDele?(e.openBlock(),e.createElementBlock("i",{key:2,onClick:M=>P(x,N),class:"ikapprove ikapprove-shanchu1"},null,8,Fo)):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",{class:"name",title:O.userName},e.toDisplayString(O.userName),9,$o)]),e.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),p[i.defaultFile.isShowAdd]&&!(p[i.defaultFile.singleApproval]&&((R=p[i.defaultFile.approvePersonList])==null?void 0:R.length)==1)?(e.openBlock(),e.createElementBlock("span",Ro,[e.createCommentVNode(" 抄送默认 "),p[i.defaultFile.nodeType]==i.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("span",Mo,"+")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 审批 "),e.createElementVNode("span",null,e.toDisplayString(p[i.defaultFile.multiExecutorType]=="ANY"?"/":p[i.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):e.createCommentVNode("v-if",!0)])}),128)),e.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),p[i.defaultFile.isShowAdd]&&!(p[i.defaultFile.singleApproval]&&(($=p[i.defaultFile.approvePersonList])==null?void 0:$.length)==1)||p[i.defaultFile.isShowAddCopy]?(e.openBlock(),e.createElementBlock("span",{key:0,class:"addBg",onClick:O=>L(p)},[p[i.defaultFile.nodeType]==i.nodeType.审批节点?(e.openBlock(),e.createElementBlock("span",jo)):e.createCommentVNode("v-if",!0),Ho],8,Wo)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 添加人组件 "),e.createVNode(e.unref(xo),e.mergeProps({modelValue:p.handList,"onUpdate:modelValue":O=>p.handList=O,show:p.isShow,"onUpdate:show":O=>p.isShow=O,onOk:O=>V(O,x),multiple:p.multiple,"dep-list":p.depList,"user-list":p.userList,"organization-list":p.organizationList,ref_for:!0},r.value,{chooseType:p.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(e.openBlock(),e.createElementBlock("div",Go,[zo,e.createElementVNode("div",Qo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.parallelInstances,(O,N)=>(e.openBlock(),e.createElementBlock("div",{key:N,class:e.normalizeClass(`branch branch-${N}`)},[e.createElementVNode("div",Xo,e.toDisplayString(O.name),1),e.createVNode(s,e.mergeProps({ref_for:!0},t,{dataList:O.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),Ol="",ie=ne(D(Zo,[["__scopeId","data-v-5753728e"]]));U.IKApprovalProcess=ie,U.default=ie,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(U,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("element-plus"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus","axios"],e):(U=typeof globalThis<"u"?globalThis:U||self,e(U.index={},U.vue,U["iking-utils-pro"],U["element-plus"],U.axios))})(this,function(U,e,C,_,me){"use strict";const ne=(c,m)=>{if(c.install=t=>{for(const l of[c,...Object.values(m??{})])t.component(l.name,l)},m)for(const[t,l]of Object.entries(m))c[t]=l;return c},D=(c,m)=>{const t=c.__vccOpts||c;for(const[l,u]of m)t[l]=u;return t},Ae=c=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...c.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",originator:"username",...c.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...c.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...c.defaultStatus},listData:[]}),ye=(c,m,t)=>{let l="";switch(m){case c.nodeType.审批节点:t&&t.length==1?l="ikapprove-ziyuan":l="ikapprove-shenpi";break;case c.nodeType.办理节点:l="ikapprove-bianji";break;case c.nodeType.抄送节点:l="ikapprove-chaosong";break;case c.nodeType.并行分支:l="ikapprove-fenzhi";break;case c.nodeType.子流程:l="ikapprove-ziliucheng1";break;default:l="ikapprove-ziyuan"}return`ikapprove ${l}`},ue={},ke={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},ge=[e.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),e.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function Be(c,m){return e.openBlock(),e.createElementBlock("svg",ke,ge)}const xe=D(ue,[["render",Be]]),_e={},Ee={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"},Oe=[e.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-color-icon-dark)","p-id":"8421"},null,-1),e.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)];function Ve(c,m){return e.openBlock(),e.createElementBlock("svg",Ee,Oe)}const Ne=D(_e,[["render",Ve]]),Te={},Ce={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"},Le=[e.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-color-icon-light-hover)","p-id":"7125"},null,-1),e.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)];function Pe(c,m){return e.openBlock(),e.createElementBlock("svg",Ce,Le)}const Se=D(Te,[["render",Pe]]),we={},be={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"},Ue=[e.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),e.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-color-icon-light-hover)","p-id":"6991"},null,-1)];function De(c,m){return e.openBlock(),e.createElementBlock("svg",be,Ue)}const Ie=D(we,[["render",De]]),Fe={},$e={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"},Re=[e.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-color-icon-light-hover)","p-id":"6855"},null,-1),e.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)];function Me(c,m){return e.openBlock(),e.createElementBlock("svg",$e,Re)}const We=D(Fe,[["render",Me]]),je={class:"avatar"},He={key:3,class:"user_box"},Ge={key:1,class:"avatar_name"},ze=e.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(c){const m=c,t=m.imageBaseUrl?`${m.imageBaseUrl}/server/oss/download?fileUrl=`:`${location.origin}/server/oss/download?fileUrl=`,l=u=>u?u.startsWith("http")?u:`${t}${u}`:"";return(u,k)=>{const E=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",je,[m.fixTypeOpt.group===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(We,{key:0})):m.fixTypeOpt.role===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(Se,{key:1})):m.fixTypeOpt.post===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createBlock(Ie,{key:2})):m.fixTypeOpt.user===c.element[m.fixPropOpt.type]?(e.openBlock(),e.createElementBlock("div",He,[c.element[c.fixPropOpt.avatar]?(e.openBlock(),e.createBlock(E,{key:0,shape:"square",src:l(c.fixPropOpt.avatar?c.element[c.fixPropOpt.avatar]:"")},null,8,["src"])):(e.openBlock(),e.createElementBlock("div",Ge,e.toDisplayString(c.element[c.fixPropOpt.name].slice(-2)),1))])):e.createCommentVNode("v-if",!0)])}}}),gl="",S=D(ze,[["__scopeId","data-v-4069f4f8"]]),q="data:image/webp;base64,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",Z={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]}},K=c=>(e.pushScopeId("data-v-f7a5199f"),c=c(),e.popScopeId(),c),Qe={class:"left-pick-list"},Xe={key:1,class:"post-view-list"},qe={class:"checkText"},Ze={class:"iconBox"},Ke={class:"name_number"},Ye={class:"title"},Je={key:0,class:"userCount"},ve={key:1,class:"checkText"},et=K(()=>e.createElementVNode("div",{class:"side"},null,-1)),tt={class:"iconBox"},ot={class:"name_number"},lt={class:"title"},at={key:0,class:"userCount"},nt=["onClick"],st={class:"checkText"},rt={class:"iconBox"},it={class:"name_number"},ct={class:"title"},pt={key:0,class:"userCount"},dt={key:1,class:"checkText"},ft=K(()=>e.createElementVNode("div",{class:"side"},null,-1)),ht={class:"iconBox"},mt={class:"name_number"},At={class:"title"},yt={key:0,class:"userCount"},ut=["onClick"],kt={key:2,class:"empty"},gt=K(()=>e.createElementVNode("img",{src:q,alt:""},null,-1)),Bt=e.defineComponent({__name:"GroupList",props:Z,emits:["change","check","handChild"],setup(c,{emit:m}){var h,r;const t=c,l=e.computed(()=>{var n,a;return((n=t.handList)==null?void 0:n.length)===((a=t.list)==null?void 0:a.length)}),u=e.computed(()=>{var s,p,x,B;const n=(s=t.handList)==null?void 0:s.length,a=(p=t.list)==null?void 0:p.length;return t.multiple?k.value=t.handList.map(f=>f[t.fixPropOpt.id]):E.value=(B=(x=t.handList)==null?void 0:x[0])==null?void 0:B[t.fixPropOpt.id],n>0&&n<a}),k=e.ref(t.handList.map(n=>n[t.fixPropOpt.id])),E=e.ref((r=(h=t.handList)==null?void 0:h[0])==null?void 0:r[t.fixPropOpt.id]),i=m,L=n=>{const a=n?t.list.map(s=>{if(t.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())&&s.available!==!1)return s[t.fixPropOpt.id]}):[];i("change",a,n?t.list:[])},T=n=>{i("change",n,t.list)},V=n=>{i("change",n,t.list)},P=(n,a)=>{a||i("handChild",n)};return(n,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",Qe,[n.multiple&&n.list&&n.list.length?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=s=>l.value=s),indeterminate:u.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),n.list&&n.list.length?(e.openBlock(),e.createElementBlock("ul",Xe,[n.multiple?(e.openBlock(),e.createBlock(e.unref(_.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":a[1]||(a[1]=s=>k.value=s),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,s=>{var p;return e.openBlock(),e.createElementBlock("li",{key:s[t.fixPropOpt.id]},[n.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())&&s.available!==!1?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,label:s[t.fixPropOpt.id],disabled:s.available===!1},{default:e.withCtx(()=>[e.createElementVNode("div",qe,[e.createElementVNode("div",Ze,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ke,[e.createElementVNode("div",Ye,e.toDisplayString(s[t.fixPropOpt.name]),1),s[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",Je," ("+e.toDisplayString(s.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label","disabled"])):(e.openBlock(),e.createElementBlock("div",ve,[et,e.createElementVNode("div",tt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",ot,[e.createElementVNode("div",lt,e.toDisplayString(s[t.fixPropOpt.name]),1),s[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",at," ("+e.toDisplayString(s.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),s[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(p=k.value)==null?void 0:p.find(x=>x===s[t.fixPropOpt.id])}]),onClick:x=>{var B;return P(s,(B=k.value)==null?void 0:B.find(f=>f===s[t.fixPropOpt.id]))}}," 下级",10,nt)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(_.ElRadioGroup),{key:1,isIndeterminate:u.value,modelValue:E.value,"onUpdate:modelValue":a[2]||(a[2]=s=>E.value=s),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,s=>{var p;return e.openBlock(),e.createElementBlock("li",{class:"w-full",key:s[t.fixPropOpt.id]},[n.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())&&s.available!==!1?(e.openBlock(),e.createBlock(e.unref(_.ElRadio),{key:0,label:s[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",st,[e.createElementVNode("div",rt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",it,[e.createElementVNode("div",ct,e.toDisplayString(s[t.fixPropOpt.name]),1),s[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",pt," ("+e.toDisplayString(s.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",dt,[ft,e.createElementVNode("div",ht,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",mt,[e.createElementVNode("div",At,e.toDisplayString(s[t.fixPropOpt.name]),1),s[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",yt," ("+e.toDisplayString(s.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),s[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(p=k.value)==null?void 0:p.find(x=>x===s[t.fixPropOpt.id])}]),onClick:x=>{var B;return P(s,(B=k.value)==null?void 0:B.find(f=>f===s[t.fixPropOpt.id]))}}," 下级",10,ut)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",kt,[gt,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),Bl="",xt=D(Bt,[["__scopeId","data-v-f7a5199f"]]),Y=c=>(e.pushScopeId("data-v-e03f0d36"),c=c(),e.popScopeId(),c),_t={class:"left-pick-list"},Et={key:1,class:"post-view-list"},Ot={class:"iconBox"},Vt={key:1,class:"checkText"},Nt=Y(()=>e.createElementVNode("div",{class:"side"},null,-1)),Tt={class:"iconBox"},Ct={class:"title"},Lt={class:"ik-picker-single"},Pt={class:"iconBox"},St={key:1,class:"checkText"},wt=Y(()=>e.createElementVNode("div",{class:"side"},null,-1)),bt={class:"iconBox"},Ut={class:"title"},Dt={key:2,class:"empty"},It=Y(()=>e.createElementVNode("img",{src:q,alt:""},null,-1)),Ft=e.defineComponent({__name:"PostList",props:Z,emits:["change","check"],setup(c,{emit:m}){var P,h;const t=c,l=e.computed(()=>{var r,n;return((r=t.handList)==null?void 0:r.length)===((n=t.list)==null?void 0:n.length)}),u=e.computed(()=>{var a,s,p,x;const r=(a=t.handList)==null?void 0:a.length,n=(s=t.list)==null?void 0:s.length;return t.multiple?k.value=t.handList.map(B=>B[t.fixPropOpt.id]):E.value=(x=(p=t.handList)==null?void 0:p[0])==null?void 0:x[t.fixPropOpt.id],r>0&&r<n}),k=e.ref(t.handList.map(r=>r[t.fixPropOpt.id])),E=e.ref((h=(P=t.handList)==null?void 0:P[0])==null?void 0:h[t.fixPropOpt.id]),i=m,L=r=>{const n=r?t.list.map(a=>a[t.fixPropOpt.id]):[];i("change",n,r?t.list:[])},T=r=>{i("change",r,t.list)},V=r=>{i("change",r,t.list)};return(r,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",_t,[r.multiple&&r.chooseType.includes("post")&&r.list&&r.list.length?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=a=>l.value=a),indeterminate:u.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),r.list&&r.list.length?(e.openBlock(),e.createElementBlock("ul",Et,[r.multiple?(e.openBlock(),e.createBlock(e.unref(_.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":n[1]||(n[1]=a=>k.value=a),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,a=>(e.openBlock(),e.createElementBlock("li",{key:a[t.fixPropOpt.id]},[r.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,label:a[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",Ot,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(a[t.fixPropOpt.name]),1)]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",Vt,[Nt,e.createElementVNode("div",Tt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ct,e.toDisplayString(a[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(_.ElRadioGroup),{key:1,isIndeterminate:u.value,modelValue:E.value,"onUpdate:modelValue":n[2]||(n[2]=a=>E.value=a),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,a=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:a[t.fixPropOpt.id]},[r.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(_.ElRadio),{key:0,label:a[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",Lt,[e.createElementVNode("div",Pt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(a[t.fixPropOpt.name]),1)])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",St,[wt,e.createElementVNode("div",bt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ut,e.toDisplayString(a[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",Dt,[It,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),xl="",$t=D(Ft,[["__scopeId","data-v-e03f0d36"]]),J=c=>(e.pushScopeId("data-v-be3b3e45"),c=c(),e.popScopeId(),c),Rt={class:"left-pick-list"},Mt={key:1,class:"role-view-list"},Wt={class:"iconBox"},jt=["title"],Ht={key:1,class:"checkText"},Gt=J(()=>e.createElementVNode("div",{class:"side"},null,-1)),zt={class:"iconBox"},Qt=["title"],Xt={class:"ik-picker-single"},qt={class:"iconBox"},Zt=["title"],Kt={key:1,class:"checkText"},Yt=J(()=>e.createElementVNode("div",{class:"side"},null,-1)),Jt={class:"iconBox"},vt=["title"],eo={key:2,class:"empty"},to=J(()=>e.createElementVNode("img",{src:q,alt:""},null,-1)),oo=e.defineComponent({__name:"RoleList",props:Z,emits:["change","check"],setup(c,{emit:m}){var P,h;const t=c,l=e.computed(()=>{var r,n;return((r=t.handList)==null?void 0:r.length)===((n=t.list)==null?void 0:n.length)}),u=e.computed(()=>{var a,s,p,x;const r=(a=t.handList)==null?void 0:a.length,n=(s=t.list)==null?void 0:s.length;return t.multiple?k.value=t.handList.map(B=>B[t.fixPropOpt.id]):E.value=(x=(p=t.handList)==null?void 0:p[0])==null?void 0:x[t.fixPropOpt.id],r>0&&r<n}),k=e.ref(t.handList.map(r=>r[t.fixPropOpt.id])),E=e.ref((h=(P=t.handList)==null?void 0:P[0])==null?void 0:h[t.fixPropOpt.id]),i=m,L=r=>{const n=r?t.list.map(a=>a[t.fixPropOpt.id]):[];i("change",n,r?t.list:[])},T=r=>{i("change",r,t.list)},V=r=>{i("change",r,t.list)};return(r,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",Rt,[r.multiple&&r.chooseType.includes("role")&&r.list&&r.list.length?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=a=>l.value=a),indeterminate:u.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),r.list&&r.list.length?(e.openBlock(),e.createElementBlock("ul",Mt,[r.multiple?(e.openBlock(),e.createBlock(e.unref(_.ElCheckboxGroup),{key:0,modelValue:k.value,"onUpdate:modelValue":n[1]||(n[1]=a=>k.value=a),onChange:T},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,a=>(e.openBlock(),e.createElementBlock("li",{key:a[r.fixPropOpt.id]},[r.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:0,label:a[r.fixPropOpt.id],value:a[r.fixPropOpt.id],disabled:a.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",Wt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:a[r.fixPropOpt.name]},e.toDisplayString(a[r.fixPropOpt.name]),9,jt)]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",Ht,[Gt,e.createElementVNode("div",zt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:a[r.fixPropOpt.name]},e.toDisplayString(a[r.fixPropOpt.name]),9,Qt)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(_.ElRadioGroup),{key:1,indeterminate:u.value,modelValue:E.value,"onUpdate:modelValue":n[2]||(n[2]=a=>E.value=a),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,a=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:a[r.fixPropOpt.id]},[r.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(_.ElRadio),{key:0,label:a[r.fixPropOpt.id],value:a[r.fixPropOpt.id],disabled:a.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",Xt,[e.createElementVNode("div",qt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:a[r.fixPropOpt.name]},e.toDisplayString(a[r.fixPropOpt.name]),9,Zt)])]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",Kt,[Yt,e.createElementVNode("div",Jt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:a[r.fixPropOpt.name]},e.toDisplayString(a[r.fixPropOpt.name]),9,vt)]))]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",eo,[to,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),_l="",lo=D(oo,[["__scopeId","data-v-be3b3e45"]]);var z=(c=>(c.group="group",c.role="role",c.post="post",c))(z||{});const ao={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:c=>{if(c===void 0)return!0;if(Array.isArray(c)){if(!(c!=null&&c.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"},dataScopeOnly:{type:Boolean,default:!1},rootDepartmentOnly:{type:Boolean,default:!1}},se=c=>{const m=window.location.search;return new URLSearchParams(m).get(c)},no=c=>{const m=C.ikStore.local.getItem("x_domain");m&&(c["X-DOMAIN"]=m)},so=c=>{var t;const m=se("domain");if(m){c["X-DOMAIN"]=m;const l=se("code");m==="APPLICATION"&&(c["X-APP"]=l)}else no(c);(t=C.ikStore.local.getItem("tenant"))==null||t.code},ro=(c,m)=>{const t=e.ref([]),l=async(k,E)=>{var O,N;const{url:i,methods:L,headers:T,param:V}=c.value||{},P={...V||{},parentDepartmentId:k||"",name:E||"",rootDepartmentOnly:m.rootDepartmentOnly,dataScopeOnly:m.dataScopeOnly},h={method:L,url:i,headers:{"Content-Type":"application/json;charset=UTF-8",...T},data:JSON.stringify(P)};so(h.headers);const r=await me(h),{success:n,data:a}=r.data;if(!n)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:s,roles:p,posts:x,users:B,rootOrganization:f,rootDepartment:b}=a,$=f||b;return t.value.length===0&&(t.value[0]=m.org?{...m.org,id:m.elementId,elementType:(N=(O=m.org)==null?void 0:O.elementType)==null?void 0:N.toLocaleUpperCase()}:{...$,id:$.elementId}),{groupList:C._.cloneDeep(s),roleList:C._.cloneDeep(p),postList:C._.cloneDeep(x),userList:C._.cloneDeep(B),rootOrganization:f,rootDepartment:b}};return{handData:l,handSetChild:(k,E)=>{l(k==null?void 0:k.elementId,E)},bannerList:t}},io={shadow:"hover",class:"sel-list"},co={key:0},po=e.createElementVNode("div",{class:"split-div"},null,-1),fo={class:"choose-list"},ho={class:"choose-item"},mo=e.createElementVNode("div",null,"已选",-1),Ao={class:"choose-box"},yo={class:"list-group-item"},uo={class:"item_info"},ko={class:"avatar_box"},go={class:"dialog-footer"},Bo=e.defineComponent({__name:"picker",props:ao,emits:["handChild","update:show","update:modelValue","ok","search"],setup(c,{expose:m,emit:t}){e.useCssVars(o=>({d3f7bd36:fe.value}));const l=c,u=e.ref(""),k=e.ref(""),E=e.ref([]),i=e.ref([]),L=e.ref([]),T=e.ref([]),V=e.ref(!1),P=e.computed(()=>R.value.includes("user")?i.value.concat(E.value):i.value);e.watch(()=>l.api,()=>{l.show&&O("")});const h=e.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...l.propOption})),r=e.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...l.typeOption})),n=e.ref([]),a=ro(e.toRef(l,"api"),l),s=a.handData,p=a.bannerList;l.immediate&&s(k.value,u.value);const x=o=>(o.forEach(d=>{var A,y;d.disabled=((y=(A=l.modelValue)==null?void 0:A.find(g=>g[h.value.id]===d[h.value.id]))==null?void 0:y.disabled)||!1}),o),B=async()=>{var o,d,A,y,g,I,ae,he;V.value=!0;try{if((o=l.groupList)!=null&&o.length||(d=l.userList)!=null&&d.length||(A=l.roleList)!=null&&A.length||(y=l.postList)!=null&&y.length){E.value=(g=l.userList)==null?void 0:g.filter(F=>F[h.value.name].includes(u.value)),i.value=(I=l.groupList)==null?void 0:I.filter(F=>F[h.value.name].includes(u.value)),L.value=(ae=l.roleList)==null?void 0:ae.filter(F=>F[h.value.name].includes(u.value)),T.value=(he=l.postList)==null?void 0:he.filter(F=>F[h.value.name].includes(u.value)),ee(),V.value=!1;return}const w=await s(k.value,u.value);try{E.value=x((w==null?void 0:w.userList)||[]),i.value=x((w==null?void 0:w.groupList)||[]),L.value=x((w==null?void 0:w.roleList)||[]),T.value=x((w==null?void 0:w.postList)||[])}catch(F){V.value=!1,console.info("error: ",F)}ee(),V.value=!1}catch{V.value=!1}},f=e.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),b=e.reactive({indeterminate:!1,checkAll:0}),$=o=>f.group.has(o)||f.user.has(o)||f.role.has(o)||f.post.has(o),O=C.ikEvent.debounce(B,300),N=e.computed(()=>{const o=Array.from(f.group.values()),d=Array.from(f.role.values()),A=Array.from(f.user.values()),y=Array.from(f.post.values());return n.value=[...d,...y,...A,...o],{list:[...d,...A,...y,...o],role:{list:d,len:d.length},user:{list:A,len:A.length},post:{list:y,len:y.length},groups:{list:o,len:o.length}}}),R=e.computed(()=>{const o=l.chooseType.map(A=>A.toLocaleLowerCase());let d=[...o];return o.includes("dep")&&(d=[...d,"dept"]),o.includes("dep_user")&&(d=[...d,"user"]),d}),M=e.ref([]),Ko=o=>{M.value=o,M.value.forEach(d=>{d.readonly=d==null?void 0:d.disabled})},Q=t,v=e.ref(!1),ee=(o=!1)=>{var A;const d=(A=l==null?void 0:l.userList)!=null&&A.length?C._.cloneDeep([...l==null?void 0:l.userList,...l==null?void 0:l.groupList]):[...i.value,...E.value];return!o&&Ko(d),d};e.watch(()=>l.show,async o=>{var d;if(v.value=o,o){k.value=((d=l.org)==null?void 0:d.elementId)||l.orgPid,!l.userList.length&&!l.groupList.length&&!l.roleList.length&&!l.postList.length?await B():(E.value=l.userList,i.value=l.groupList,L.value=l.roleList,T.value=l.postList),f.trans=[],b.checkAll=0,b.indeterminate=!1;const A=ee(!0);for(const g of A)$(g[h.value.id])&&f.trans.push(g[h.value.id]);const y=A.length===f.trans.length;b.indeterminate=!!(A.length&&!y),b.checkAll=Number(A.length&&y),e.nextTick(()=>{var g;(g=l.modelValue)!=null&&g.length?l.modelValue.forEach(I=>{j(I),l.multiple?f.trans.push(I[h.value.id]):f.single=I[h.value.id]}):G()})}else G()}),e.watchEffect(()=>{let o;o=M.value.length;const d=f.trans.length;b.indeterminate=f.trans.length?d!==o:!1,b.checkAll=+(o!==0&&d===o)}),e.watch(()=>l.modelValue,o=>{o!=null&&o.length?o.forEach(d=>{j(d),l.multiple?f.trans.push(d[h.value.id]):f.single=d[h.value.id]}):G()});const W=o=>{var d;if(o){if(f.single="",o[h.value.id]){const A=(d=f.trans)==null?void 0:d.findIndex(y=>y===o[h.value.id]);A!==-1&&f.trans.splice(A,1)}switch(o[h.value.type]){case r.value.user:return f.user.delete(o[h.value.id]);case r.value.role:return f.role.delete(o[h.value.id]);case r.value.post:return f.post.delete(o[h.value.id]);case r.value.group:return f.group.delete(o[h.value.id]);default:return}}},ce=o=>{W(o)},j=o=>{if(!$(o[h.value.id])){const d={...o};switch(o[h.value.type]){case r.value.user:return f.user.set(o[h.value.id],d);case r.value.role:return f.role.set(o[h.value.id],d);case r.value.post:return f.post.set(o[h.value.id],d);case r.value.group:return f.group.set(o[h.value.id],d);default:return}}},Yo=o=>[r.value.group].includes(o[h.value.type])?o==null?void 0:o.hasOwnProperty("disabled"):!1;e.watch(()=>f.trans,o=>{if(!o.length)M.value.forEach(d=>{d.disabled=!1;try{l.multiple&&W(d)}catch{}});else{const d=M.value.filter(y=>!o.includes(y[h.value.id]));for(const y of d)y.disabled=!1,l.multiple&&W(y);const A=M.value.filter(y=>o.includes(y[h.value.id]));for(const y of A)y.disabled=Yo(y),j(y)}},{deep:!0}),e.watch(()=>f.single,o=>{var d;if(o){const A=(d=M.value)==null?void 0:d.find(y=>y[h.value.id]===o);A&&(f.user.clear(),f.role.clear(),f.post.clear(),f.group.clear(),f.trans=[],e.nextTick(()=>{j(A)}))}});const Jo=o=>{k.value=o==null?void 0:o.elementId,B(),p.value.push(o)},pe=e.computed(()=>p.value.length),vo=(o,d)=>{!d&&!l.topLink||d!==pe.value-1&&(k.value=o==null?void 0:o.elementId,B(),p.value.splice(d+1))},el=e.computed(()=>l.chooseType.includes("role")&&l.chooseType.length===1),tl=e.computed(()=>l.chooseType.includes("post")&&l.chooseType.length===1),X=e.ref(l.tabs[0]),H=e.ref(l.tabs[0]);e.watchEffect(()=>(H.value=el.value?l.tabs[1]:tl.value?l.tabs[2]:X.value,H.value));const G=()=>{f.user.clear(),f.role.clear(),f.post.clear(),f.group.clear(),f.trans=[],oe.value=[],le.value=[],X.value=l.tabs[0],H.value=l.tabs[0],u.value="",k.value=l.orgPid,p.value.splice(1,p.value.length),f.single="",n.value=[]},ol=()=>{var o;Q("ok",C._.cloneDeep({...N.value,sort:n.value})),Q("update:modelValue",C._.cloneDeep(((o=N.value)==null?void 0:o.list)||[])),Q("update:show",!1),G()},de=()=>{Q("update:show",!1),G()};m({handClear:G,handRomeve:ce,handDelete:W});const ll=e.computed(()=>{const o=R.value;return!!((o.includes("post")||o.includes("role"))&&o.length>1)}),al=e.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(o=>l.tabs.includes(o.name))),fe=e.computed(()=>`${typeof l.height=="string"?Number.parseInt(l.height):l.height}px`),te=()=>{l.multiple||(f.post.clear(),f.role.clear(),f.user.clear(),f.group.clear(),f.single="")},nl=e.computed(()=>N.value.groups.list.concat(N.value.user.list)),sl=(o,d)=>{l.multiple||(f.single="");const A=l.multiple?o:[o];if(!A.length){f.group.clear(),f.user.clear();return}te(),d.forEach(y=>{A!=null&&A.includes(y[h.value.id])?j(y):W(y)})},oe=e.ref([]),rl=(o,d)=>{l.multiple||(f.single="");const A=l.multiple?o:[o];if(!A.length){f.role.clear();return}te(),d.forEach(y=>{A!=null&&A.includes(y[h.value.id])?j(y):W(y)})};e.watch(()=>N.value.role.len,o=>{oe.value=C._.cloneDeep(N.value.role.list)});const le=e.ref([]),il=(o,d)=>{l.multiple||(f.single="");const A=l.multiple?o:[o];if(!A.length){f.post.clear();return}te(),d.forEach(y=>{A!=null&&A.includes(y[h.value.id])?j(y):W(y)})};return e.watch(()=>N.value.post.len,o=>{le.value=C._.cloneDeep(N.value.post.list)}),e.watch(()=>u.value,o=>{O("")}),(o,d)=>{const A=e.resolveComponent("el-tab-pane"),y=e.resolveComponent("el-tabs");return e.openBlock(),e.createBlock(e.unref(_.ElDialog),{modelValue:v.value,"onUpdate:modelValue":d[2]||(d[2]=g=>v.value=g),title:o.title,"destroy-on-close":"","append-to-body":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof o.width=="string"?o.width:`${o.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:de},{footer:e.withCtx(()=>[e.createElementVNode("span",go,[e.createVNode(e.unref(_.ElButton),{onClick:e.withModifiers(de,["stop"])},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(e.unref(_.ElButton),{type:"primary",onClick:e.withModifiers(ol,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(" 确定 ")]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"dep-use-picker",style:e.normalizeStyle({height:fe.value})},[e.createElementVNode("div",io,[e.createElementVNode("div",null,[e.createVNode(e.unref(_.ElInput),{modelValue:u.value,"onUpdate:modelValue":d[0]||(d[0]=g=>u.value=g),clearable:"",placeholder:o.placeholder,"suffix-icon":xe},null,8,["modelValue","placeholder"]),ll.value?(e.openBlock(),e.createBlock(y,{key:0,modelValue:X.value,"onUpdate:modelValue":d[1]||(d[1]=g=>X.value=g),class:"ik-picker-tab"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(al.value,g=>(e.openBlock(),e.createBlock(A,{label:g.label,name:g.name,key:g.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 过滤 "),H.value===e.unref(z).group?(e.openBlock(),e.createElementBlock("div",co,[e.createCommentVNode(" 面包屑 全选 "),e.createVNode(e.unref(_.ElBreadcrumb),{separator:">",class:e.normalizeClass(["banner",{"top-unlink":!o.topLink}])},{default:e.withCtx(()=>[pe.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(p),(g,I)=>(e.openBlock(),e.createBlock(e.unref(_.ElBreadcrumbItem),{key:g[h.value.id],onClick:e.withModifiers(ae=>vo(g,I),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g[h.value.name]),1)]),_:2},1032,["onClick"]))),128)):e.createCommentVNode("v-if",!0)]),_:1},8,["class"])])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 左侧列表 "),e.createCommentVNode(" 组织架构 "),H.value===e.unref(z).group?e.withDirectives((e.openBlock(),e.createBlock(xt,{key:1,fixPropOpt:h.value,fixTypeOpt:r.value,list:P.value,max:o.max,multiple:o.multiple,"hand-list":nl.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,children:l.children,"choose-type":R.value,onHandChild:Jo,onChange:sl},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children","choose-type"])),[[e.unref(_.vLoading),V.value]]):H.value===e.unref(z).role?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" 角色 "),e.withDirectives(e.createVNode(lo,{fixPropOpt:h.value,fixTypeOpt:r.value,list:L.value,max:o.max,multiple:o.multiple,"hand-list":oe.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,"choose-type":R.value,onChange:rl},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(_.vLoading),V.value]])],64)):H.value===e.unref(z).post?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" 岗位 "),e.withDirectives(e.createVNode($t,{fixPropOpt:h.value,fixTypeOpt:r.value,list:T.value,max:o.max,multiple:o.multiple,"hand-list":le.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,"choose-type":R.value,onChange:il},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(_.vLoading),V.value]])],64)):e.createCommentVNode("v-if",!0)]),po,e.createCommentVNode(" 已选列表 "),e.createElementVNode("div",fo,[e.createElementVNode("div",ho,[mo,e.createVNode(e.unref(_.ElButton),{type:"primary",link:"",onClick:e.withModifiers(G,["stop"])},{default:e.withCtx(()=>[e.createTextVNode("清空")]),_:1})]),e.createElementVNode("ul",Ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,g=>(e.openBlock(),e.createElementBlock("li",yo,[e.createElementVNode("div",uo,[e.createCommentVNode(" icon前缀 "),e.createElementVNode("div",ko,[e.createVNode(S,{fixTypeOpt:r.value,fixPropOpt:h.value,element:g,imageBaseUrl:l.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("span",null,e.toDisplayString(g[h.value.name]),1)]),e.withDirectives(e.createVNode(Ne,{class:"close",onClick:e.withModifiers(I=>ce(g),["stop"])},null,8,["onClick"]),[[e.vShow,!(g!=null&&g.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),El="",xo=ne(Bo),re=c=>(e.pushScopeId("data-v-5753728e"),c=c(),e.popScopeId(),c),_o={class:"approveProcess",id:"approveProcess"},Eo={class:"node"},Oo={class:"nodeBg"},Vo={key:0,class:"info"},No={class:"explain"},To={key:0},Co={key:0},Lo={key:1},Po={key:0},So={key:1},wo={class:"personlist"},bo={style:{width:"58px"}},Uo={class:"avatar"},Do=["src"],Io={key:1,class:"nodeBg"},Fo=["onClick"],$o=["title"],Ro={key:0,class:"sign"},Mo={key:0},Wo=["onClick"],jo={key:0,class:"required"},Ho=re(()=>e.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Go={key:1,class:"node-branchs"},zo=re(()=>e.createElementVNode("div",{class:"branch-line"},null,-1)),Qo={style:{flex:"1"}},Xo={class:"node-branch"},qo={name:"IkApprovalProcess"},Zo=e.defineComponent({...qo,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(c,{expose:m}){const t=c,l=C.ikStore.local.getItem("token")||"Bearer 841b7a7b0d9c4021b1655192c28ac61b",u=e.ref("sys");function k(n){const a=window.location.search;return new URLSearchParams(a).get(n)}function E(){var a;const n=k("xTenant")||((a=C.ikStore.local.getItem("tenant"))==null?void 0:a.code);n&&(u.value=n)}E();const i=e.reactive(Ae(t)),L=async n=>{var a;if(n.multiple=!n[i.defaultFile.singleApproval]||n[i.defaultFile.isShowAddCopy],n.handList=n[i.defaultFile.approvePersonList]?n[i.defaultFile.approvePersonList]:[],n[i.defaultFile.nodeType]===i.nodeType.抄送节点)n.handList.forEach(s=>{s.elementName||(s.elementName=s.userName,s.elementId=s.userId,s.avatar=s.userAvatar),s.elementType="USER",s.disabled=!0}),n.chooseType=["user"],n.userList=[],n.depList=[];else switch(n[i.defaultFile.initiatorSpecifiedScopeType]){case"ALL":n.chooseType=["dep_user"],n.userList=[],n.depList=[];break;default:n.chooseType=["user"],n.userList=n.userList?n.userList:(a=n[i.defaultFile.initiatorSpecifiedScope])==null?void 0:a.map(s=>({...s,elementName:(s==null?void 0:s.executorName)||(s==null?void 0:s.userName),elementId:(s==null?void 0:s.executorId)||(s==null?void 0:s.userId),avatar:((s==null?void 0:s.executorAvatar)||(s==null?void 0:s.userAvatar))&&T((s==null?void 0:s.executorAvatar)||(s==null?void 0:s.userAvatar))||"",elementType:"USER"}))}e.nextTick(()=>{n.isShow=!0})},T=n=>{let a="";return n.includes("http")||n.includes("https")?a=n:a=t.loadUrl?`${t.loadUrl}${n}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${n}`,a},V=(n,a)=>{t.dataList[a].handList=n.list;let p=(t.dataList[a][i.defaultFile.approvePersonList]||[]).filter(B=>!B.canDele),x=n.list.map(B=>({...B,userName:B.elementName,userAvatar:B.avatar,canDele:!0}));t.dataList[a][i.defaultFile.approvePersonList]=p.concat(x)},P=(n,a)=>{t.dataList[n][i.defaultFile.approvePersonList].splice(a,1),t.dataList[n].handList=t.dataList[n][i.defaultFile.approvePersonList]},h=()=>{let n=!0;return t.dataList.forEach(a=>{var s;a.required=!1,a[i.defaultFile.nodeType]==i.nodeType.审批节点&&a[i.defaultFile.isShowAdd]&&((s=a[i.defaultFile.approvePersonList])!=null&&s.length||(n=!1,a.required=!0))}),n},r=e.computed(()=>({propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:l,"X-Tenant":u.value}}}));return m({requiredVerification:h}),(n,a)=>{const s=e.resolveComponent("IkApprovalProcess");return e.openBlock(),e.createElementBlock("div",_o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList,(p,x)=>{var B,f,b,$;return e.openBlock(),e.createElementBlock("div",{class:"content",key:p.id},[e.createCommentVNode(" 审批节点类型 "),e.createElementVNode("div",Eo,[e.createElementVNode("span",Oo,[e.createElementVNode("i",{class:e.normalizeClass(e.unref(ye)(i,p[i.defaultFile.nodeType]))},null,2)]),e.createElementVNode("div",{class:"line",style:e.normalizeStyle({"border-left":x===t.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),p[i.defaultFile.nodeType]!==i.nodeType.并行分支?(e.openBlock(),e.createElementBlock("div",Vo,[e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(p[i.defaultFile.nodeTypeName]),1),e.createElementVNode("div",No,[e.createCommentVNode(" 抄送节点 "),p[i.defaultFile.nodeType]==i.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("span",To,[p[i.defaultFile.approvePersonList].length?(e.openBlock(),e.createElementBlock("span",Co,e.toDisplayString(`抄送${p[i.defaultFile.approvePersonList].length}人`),1)):e.createCommentVNode("v-if",!0),p[i.defaultFile.isShowAdd]?(e.openBlock(),e.createElementBlock("span",Lo,",可添加抄送人")):e.createCommentVNode("v-if",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 审批节点 "),e.createElementVNode("span",null,[e.createCommentVNode(" 存在审批人时 "),(B=p[i.defaultFile.approvePersonList])!=null&&B.length?(e.openBlock(),e.createElementBlock("span",Po,e.toDisplayString(((f=p[i.defaultFile.approvePersonList])==null?void 0:f.length)==1?"1人审批":`${(b=p[i.defaultFile.approvePersonList])==null?void 0:b.length}人${p[i.defaultFile.multiExecutorTypeName]}`),1)):[i.statusWithoutApprover.自动通过,i.statusWithoutApprover.自动拒绝].includes(p[i.defaultFile.approveType])?(e.openBlock(),e.createElementBlock("span",So,e.toDisplayString(p[i.defaultFile.approveTypeName]),1)):p[i.defaultFile.executorEmptyStrategy]&&p[i.defaultFile.executorEmpty]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),e.createElementVNode("span",null,[e.createTextVNode(" 未找到审批人,"),e.createElementVNode("span",null,e.toDisplayString(p[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.自动通过?"将自动通过":p[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.自动转交管理员?"自动转交给管理员":p[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.指定人员审批?`将自动转给指定成员${p[i.defaultFile.reserveExecutorUsers]&&p[i.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[i.nodeType.并行分支,i.nodeType.子流程].includes(p[i.defaultFile.nodeType])?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(p.required?"warn":"")}," 请选择"+e.toDisplayString(p[i.defaultFile.nodeType]===i.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),e.createElementVNode("div",wo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p[i.defaultFile.approvePersonList],(O,N)=>{var R;return e.openBlock(),e.createElementBlock("div",{class:"list",key:O.userId},[e.createElementVNode("div",bo,[e.createElementVNode("div",Uo,[O.userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,src:T(O.userAvatar),alt:""},null,8,Do)):(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("span",null,e.toDisplayString(O.userName.slice(-2)),1)])),O.canDele?(e.openBlock(),e.createElementBlock("i",{key:2,onClick:M=>P(x,N),class:"ikapprove ikapprove-shanchu1"},null,8,Fo)):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",{class:"name",title:O.userName},e.toDisplayString(O.userName),9,$o)]),e.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),p[i.defaultFile.isShowAdd]&&!(p[i.defaultFile.singleApproval]&&((R=p[i.defaultFile.approvePersonList])==null?void 0:R.length)==1)?(e.openBlock(),e.createElementBlock("span",Ro,[e.createCommentVNode(" 抄送默认 "),p[i.defaultFile.nodeType]==i.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("span",Mo,"+")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 审批 "),e.createElementVNode("span",null,e.toDisplayString(p[i.defaultFile.multiExecutorType]=="ANY"?"/":p[i.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):e.createCommentVNode("v-if",!0)])}),128)),e.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),p[i.defaultFile.isShowAdd]&&!(p[i.defaultFile.singleApproval]&&(($=p[i.defaultFile.approvePersonList])==null?void 0:$.length)==1)||p[i.defaultFile.isShowAddCopy]?(e.openBlock(),e.createElementBlock("span",{key:0,class:"addBg",onClick:O=>L(p)},[p[i.defaultFile.nodeType]==i.nodeType.审批节点?(e.openBlock(),e.createElementBlock("span",jo)):e.createCommentVNode("v-if",!0),Ho],8,Wo)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 添加人组件 "),e.createVNode(e.unref(xo),e.mergeProps({modelValue:p.handList,"onUpdate:modelValue":O=>p.handList=O,show:p.isShow,"onUpdate:show":O=>p.isShow=O,onOk:O=>V(O,x),multiple:p.multiple,"dep-list":p.depList,"user-list":p.userList,"organization-list":p.organizationList,ref_for:!0},r.value,{chooseType:p.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(e.openBlock(),e.createElementBlock("div",Go,[zo,e.createElementVNode("div",Qo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.parallelInstances,(O,N)=>(e.openBlock(),e.createElementBlock("div",{key:N,class:e.normalizeClass(`branch branch-${N}`)},[e.createElementVNode("div",Xo,e.toDisplayString(O.name),1),e.createVNode(s,e.mergeProps({ref_for:!0},t,{dataList:O.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),Ol="",ie=ne(D(Zo,[["__scopeId","data-v-5753728e"]]));U.IKApprovalProcess=ie,U.default=ie,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|