@gientech/modual 2.3.22 → 2.3.24
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/README.md +761 -761
- package/assets/{GientechStreamReader-DXwJoB4O.js → GientechStreamReader-CnAI3q38.js} +12 -17
- package/assets/ReviewSetting-C3B98Nq2.js +415 -0
- package/assets/chevron-right-CrkLSPrQ.js +6 -0
- package/assets/database.svg +11 -11
- package/assets/database_add.svg +53 -53
- package/assets/database_connect.svg +66 -66
- package/assets/database_upload.svg +29 -29
- package/assets/databse.svg +6 -6
- package/assets/defaultWeLogo.svg +14 -14
- package/assets/empty2.png +0 -0
- package/assets/graph.svg +4 -4
- package/assets/{index-w3uoyJPy.js → index-C1CXeTnS.js} +2 -2
- package/assets/{index-CBoQAuTU.js → index-C9Vc57_N.js} +33 -33
- package/assets/knowledge.svg +4 -4
- package/assets/mysql.svg +14 -14
- package/assets/sensitive.svg +5 -5
- package/assets/style-BzPoYUHb.js +191 -0
- package/assets/style10.css +1 -0
- package/assets/style2.css +1 -1
- package/assets/style3.css +1 -1
- package/assets/style4.css +1 -1
- package/assets/style5.css +1 -1
- package/assets/style6.css +1 -1
- package/assets/style7.css +1 -1
- package/assets/style8.css +1 -1
- package/assets/style9.css +1 -1
- package/assistantConfig.js +1 -1
- package/chat.js +1 -1
- package/chatCompare.js +1 -1
- package/database.js +2 -2
- package/databaseId.js +1 -1
- package/graphBase.js +1 -1
- package/index.js +1 -1
- package/modelManage.js +1 -1
- package/package.json +16 -6
- package/reviewManage.d.ts +26 -0
- package/reviewManage.js +184 -0
- package/reviewSetting.d.ts +80 -0
- package/reviewSetting.js +1 -0
- package/streamFilesReader.js +1 -1
- package/worker/pdf.worker.min.js +21 -21
- package/assets/Empty2.png +0 -0
- package/assets/ReviewManage-D7aZe-m0.js +0 -690
- package/assets/allUser.png +0 -0
- package/assets/group.png +0 -0
- package/assets/iconAi.svg +0 -9
- /package/assets/{index-CJfOfBmA.js → index-CxKRvyc8.js} +0 -0
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import{jsx as e,jsxs as v,Fragment as kt}from"react/jsx-runtime";import Re,{useState as x,useMemo as ge,useEffect as ie,useCallback as oe,useRef as tt}from"react";import C from"styled-components";import{Xviwer as Dt}from"@mxmweb/xviewer";import{Modal as at,Input as Rt,List as _e,Typography as G,Avatar as De,Button as ve,Checkbox as We,Tooltip as lt,Form as de,Switch as It,Select as Nt,Radio as Ue,Space as rt,message as W,Tag as zt}from"antd";import{useTheme as Tt,deepMergeTheme as it,defaultTheme as Pt,DashboardContainer as _t}from"@mxmweb/zui";import Ut from"axios";import{X as ct}from"./x-CdZQbi--.js";import{C as Lt}from"./chevron-right-CrkLSPrQ.js";import{P as ut}from"./plus-B679mjyt.js";/* empty css *//* empty css */import{S as Mt}from"./search-CEuIa9-_.js";const Ie={dashboard:{title:"\u5BA1\u6838\u914D\u7F6E",description:""},pages:{createTitle:"\u65B0\u589E\u5BA1\u6838\u914D\u7F6E",editTitle:"\u7F16\u8F91\u5BA1\u6838\u914D\u7F6E",back:"\u8FD4\u56DE",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4"},toolbar:{createConfig:"\u65B0\u589E\u5BA1\u6838\u914D\u7F6E",searchEnterprisePlaceholder:"\u641C\u7D22\u4F01\u4E1A\u5E93\u540D",searchFirstReviewersPlaceholder:"\u641C\u7D22\u521D\u5BA1\u5BA1\u6838",searchSecondReviewersPlaceholder:"\u641C\u7D22\u590D\u5BA1\u5BA1\u6838"},tips:{title:"\u77E5\u8BC6\u5BA1\u6838\u89C4\u5219",description:"\u5BA1\u6838\u89C4\u5219\u5BF9\u6240\u6709\u77E5\u8BC6\u5E93\u4E0A\u4F20\u7684\u6587\u6863\u9ED8\u8BA4\u4F1A\u505A\u6821\u9A8C\uFF0C\u5982\u65B0\u589E\u5BA1\u6838\u914D\u7F6E\uFF0C\u5219\u65B0\u589E\u7684\u5BA1\u6838\u914D\u7F6E\u4F18\u5148\u7EA7\u9AD8\u4E8E\u5168\u5C40\u5F00\u5173\u7684\u4F18\u5148\u7EA7\u3002",uploadReviewToggle:"\u77E5\u8BC6\u4E0A\u4F20\u5BA1\u6838",deleteReviewToggle:"\u77E5\u8BC6\u5220\u9664\u5BA1\u6838"},table:{enterpriseName:"\u4F01\u4E1A\u5E93\u540D",knowledgeType:"\u77E5\u8BC6\u7C7B\u578B",reviewScope:"\u5BA1\u6838\u8303\u56F4",firstReviewers:"\u521D\u5BA1\u5BA1\u6838",secondReviewers:"\u590D\u5BA1\u5BA1\u6838",createdAt:"\u914D\u7F6E\u65F6\u95F4",creator:"\u914D\u7F6E\u4EBA",enabled:"\u5F00\u542F\u72B6\u6001",actions:"\u64CD\u4F5C",actionEdit:"\u7F16\u8F91",actionDelete:"\u5220\u9664",enabledOn:"\u5F00\u542F",enabledOff:"\u5173\u95ED"}},qt={dashboard:{title:"Review settings",description:""},pages:{createTitle:"Create rule",editTitle:"Edit rule",back:"Back",cancel:"Cancel",confirm:"Confirm"},toolbar:{createConfig:"Create rule",searchEnterprisePlaceholder:"Search enterprise library",searchFirstReviewersPlaceholder:"Search first reviewers",searchSecondReviewersPlaceholder:"Search second reviewers"},tips:{title:"Review rules",description:"Rules apply to all knowledge uploads by default. If a specific rule is added, it takes precedence over the global switches.",uploadReviewToggle:"Upload review",deleteReviewToggle:"Delete review"},table:{enterpriseName:"Enterprise library",knowledgeType:"Knowledge type",reviewScope:"Scope",firstReviewers:"First reviewers",secondReviewers:"Second reviewers",createdAt:"Configured at",creator:"Creator",enabled:"Enabled",actions:"Actions",actionEdit:"Edit",actionDelete:"Delete",enabledOn:"On",enabledOff:"Off"}},Gt={dashboard:{title:"\u5BE9\u67FB\u8A2D\u5B9A",description:""},pages:{createTitle:"\u65B0\u898F\u5BE9\u67FB\u8A2D\u5B9A",editTitle:"\u5BE9\u67FB\u8A2D\u5B9A\u3092\u7DE8\u96C6",back:"\u623B\u308B",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",confirm:"\u78BA\u8A8D"},toolbar:{createConfig:"\u65B0\u898F\u4F5C\u6210",searchEnterprisePlaceholder:"\u4F01\u696D\u30E9\u30A4\u30D6\u30E9\u30EA\u3092\u691C\u7D22",searchFirstReviewersPlaceholder:"\u4E00\u6B21\u5BE9\u67FB\u3092\u691C\u7D22",searchSecondReviewersPlaceholder:"\u4E8C\u6B21\u5BE9\u67FB\u3092\u691C\u7D22"},tips:{title:"\u5BE9\u67FB\u30EB\u30FC\u30EB",description:"\u30EB\u30FC\u30EB\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3059\u3079\u3066\u306E\u30CA\u30EC\u30C3\u30B8\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u9069\u7528\u3055\u308C\u307E\u3059\u3002\u500B\u5225\u306E\u8A2D\u5B9A\u304C\u8FFD\u52A0\u3055\u308C\u308B\u3068\u3001\u30B0\u30ED\u30FC\u30D0\u30EB\u30B9\u30A4\u30C3\u30C1\u3088\u308A\u512A\u5148\u3055\u308C\u307E\u3059\u3002",uploadReviewToggle:"\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u5BE9\u67FB",deleteReviewToggle:"\u524A\u9664\u5BE9\u67FB"},table:{enterpriseName:"\u4F01\u696D\u30E9\u30A4\u30D6\u30E9\u30EA",knowledgeType:"\u77E5\u8B58\u30BF\u30A4\u30D7",reviewScope:"\u7BC4\u56F2",firstReviewers:"\u4E00\u6B21\u5BE9\u67FB",secondReviewers:"\u4E8C\u6B21\u5BE9\u67FB",createdAt:"\u8A2D\u5B9A\u6642\u523B",creator:"\u4F5C\u6210\u8005",enabled:"\u6709\u52B9",actions:"\u64CD\u4F5C",actionEdit:"\u7DE8\u96C6",actionDelete:"\u524A\u9664",enabledOn:"\u30AA\u30F3",enabledOff:"\u30AA\u30D5"}},Wt={zh:Ie,en:qt,ja:Gt};function Kt(t,o){const p=Wt[t]??Ie;return o?{...p,...o}:p}function dt(t,o){const p=o.split(".");let y=t;for(const S of p)y=y==null?void 0:y[S];return typeof y=="string"?y:o}const gt=Re.createContext({locale:"zh",messages:Ie,getMessage:t=>dt(Ie,t)});function Vt(){return Re.useContext(gt)}function jt({locale:t,messages:o,children:p}){const y=Re.useMemo(()=>{const S=Kt(t,o);return{locale:t,messages:S,getMessage:N=>dt(S,N)}},[t,o]);return Re.createElement(gt.Provider,{value:y},p)}const pt=({url:t,token:o,role:p,eventsEmit:y,getMessage:S})=>{const N=(s,n)=>S?S(s):n,z=Ut.create({baseURL:t,timeout:1e6});return z.interceptors.request.use(s=>{let n=o;return!n&&!["user/login","user/kaptcha","user/regist"].some(h=>s.url.includes(h))?(y&&y("request:error_auth",{errorMsg:N("server.notLoggedIn","\u672A\u767B\u5F55\u6216token\u5DF2\u8FC7\u671F"),redirect:"/login"}),Promise.reject(new Error(N("server.notLoggedIn","\u672A\u767B\u5F55\u6216token\u5DF2\u8FC7\u671F")))):(s.headers.Authorization=n||"",s.headers.userName=p==="\u672A\u767B\u5F55\u7528\u6237"?"":p,s)}),z.interceptors.response.use(s=>{const n=["user/kaptcha"],f=s.data;if(n.some(P=>s.config.url&&s.config.url.includes(P))||f.size&&f.type)return f;const{success:h,errorMsg:R,errorCode:Z}=f;return h?f:y?(y("request:error_business",{errorCode:Z,errorMsg:R||N("server.requestError","\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),response:f}),f):!1},s=>{var n,f,h,R,Z,P,H,Q,J;if(s.message==="canceled")return Promise.reject(s);if(y){let T="request:error_network",F={errorMsg:N("server.requestError","\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25"),error:s};((n=s==null?void 0:s.response)==null?void 0:n.status)===401?(T="request:error_auth",F={errorMsg:N("server.noPermission","\u6CA1\u6709\u8DB3\u591F\u6743\u9650"),error:s,redirect:"/login"}):(((h=(f=s==null?void 0:s.response)==null?void 0:f.data)==null?void 0:h.errorCode)==="30013"||((Z=(R=s==null?void 0:s.response)==null?void 0:R.data)==null?void 0:Z.errorCode)==="30023")&&(T="request:error_business",F={errorCode:(H=(P=s==null?void 0:s.response)==null?void 0:P.data)==null?void 0:H.errorCode,errorMsg:((J=(Q=s==null?void 0:s.response)==null?void 0:Q.data)==null?void 0:J.message)||N("server.requestError","\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),error:s}),y(T,F)}return Promise.reject(s)}),{getReviewSettingData:async s=>{try{const n=await z.get(`/index/auditConfig/page?${new URLSearchParams(s).toString()}`),{success:f,data:h}=n;if(f)return h}catch(n){return console.log("getReviewSetting error:",n),!1}},getGlobalConfig:async()=>{try{const s=await z.get("/index/bizGlobalAuditConfig/current"),{success:n,data:f}=s;if(n)return f}catch(s){return console.log("getConfig error:",s),!1}},updateGlobalConfig:async({uploadAudit:s,deleteAudit:n})=>{try{const f=await z.put("/index/bizGlobalAuditConfig/updateSwitch",{uploadAudit:s,deleteAudit:n}),{success:h,data:R}=f;if(h)return R}catch(f){return console.log("getConfig error:",f),!1}},deleteConfigById:async s=>{try{const n=await z.delete(`/index/auditConfig/delete?idList=${s}`),{success:f,data:h}=n;if(f)return h}catch(n){return console.log("deleteConfig error:",n),!1}},getKnowledgeBaseList:async s=>{try{const n=new URLSearchParams;s!=null&&s.fuzzy&&n.append("fuzzy",s.fuzzy);const f=await z.get(`index/knowledgeBase/manageableList${n.toString()?`?${n.toString()}`:""}`),{success:h,data:R}=f;if(h)return R}catch(n){console.log("getKnowledgeBaseList error:",n)}},addConfig:async s=>{try{const n=await z.post("index/auditConfig/save",{...s}),{success:f,data:h}=n;if(f)return h}catch(n){console.log("addConfig error:",n)}},editConfig:async s=>{try{const n=await z.put("index/auditConfig/update",{...s}),{success:f,data:h}=n;if(f)return h}catch(n){console.log("editConfig error:",n)}},getConfigById:async s=>{try{const n=await z.get(`index/auditConfig/detail/${s}`),{success:f,data:h}=n;if(f)return h}catch(n){console.log("getConfigById error:",n)}},getUserList:async()=>{try{const s=await z.get("auth/user/searchUserList"),{success:n,data:f}=s;if(n)return f}catch(s){console.log("getConfigById error:",s)}},getTreeFrame:async(s={})=>{try{const n=await z.get("/auth/departmentInfo/treeFrame",{params:s}),{success:f,data:h}=n;if(f)return h}catch(n){console.log("getTreeFrame error:",n)}}}},Jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAOKADAAQAAAABAAAAOAAAAAANV2hTAAAOjUlEQVRoBbWaT6xdVRXG93ktYpWER1SCOujFgQomUvyLRsMjzEwMODA6o1MToUUwApH21YESFW0RjTHRgHMDiRNG9hUnOlDKQGI0kYuJxsQ/lAQLSvuO3+9ba+17bvt4bSnu9py991rf+vOtvc859577hvZ/aLfeM65tju26laHtaTpWxrY6DG2mY1xpTZ36oT2nY67JCfUbKyvt6UfWh43XOx3Fuvh26/q4+p+Tba2Nbd8OEVLSq0kCMmYkEuIaR45HkRqG0bIYt/a8dMeGlfb4jw8Oj158ZhHvNfuB2MkX2z4ltU9OVklcR5CSgLn+s1pu1ksEwDp6aVAjqz7tnt2xIrKb7dAP14e5HbyGEz4vuEHsRYi1tk+JXYGTTKqSHFM2TOQQNbkion7UikdBNEkbC8qOAmil1zdPt0dfC1F8XlC7+a7x1nFs31UCM5JQ47qqpEg2iCxknTxgbCp5wGWLq4k8rtVl/VyQQz84MDyi/rwbfs+rre0fV5XNQRns1zFOk1NiTCvBvlLT5LHxNYet6jEl2omF377qXc7NKWNoxQ8Pp9qhw+vDifNJnLzO2URupqweE4s9PWlZeizrSfIxnhJOnGBOMpP2OGWxNXXDKX8SjDvYFLLV/yhcjKt4c4FvOnzvua9NfG7bILfZ2lGB9uguSatz9MzJYgx55hRLKjEqmpJ1wl2ADHHIRSkc47R8YHdGC3djm7XNdvSeb4yzM/RnTbcleIPInYbc0HZjSUU1dhASsyzEzKwOqZJNwpO8gfdCJG4sHJpwb4Kc4MpBC2/IStLa7v+O5yb5qgQhp21yVM536yB2uOZMmJxFJ1m2TJJrdGETRShI78EAepUGnV40BsamgRJntPvU2H6x3UpuSZAbihRH5WEmN3ZJMiTiQDn2VNIeXNSTcGH9IMdOrdeifIU4zpaJEr56W6kyRmzkqDlwpp7h1frU9Ni6Hl0an9W2JPhK092SfU6TJ7z0UIw166RqLRNhrE+gdGicSZeKvu8BiCHwEVezZm6jcqCU3rohMcxDO2PkdW57XtrVDlpxxuksgtqae7UM+wtHdOVZofGbaRtRW5GJbxiWMrHEfQzLUvYmtdgFNhGLkSPNsDc5K/MkO/TGWMQ8i6B+371fH2+d4hk7eAm57gQ8KtYzybglG1DPIM8lW7rVKwRzYxJPUeTDldfHLc0Wz7G09bJJYbJUmbGek/QUqj48TMf49ByHjO0Lg5jjc37py+369ckzcqd0i7bZbtNkt0pU5HBIq5Ui6ZBkL73Xgruhx2Bt0oafHmztzW/0pGxCszgPJ19u7YsP2JlDAaytqWH40irZQa0Y9hJwwRtPhRANbXZql3ffugU6pao1Vk/4dYEg5aNA2Uttp+4dMBUZxCJsJXalk1yitu7eFAWwkoSnzY6cd5farx7yJq5YMGSb9qbhvukNp6+gnB90huKA2WRFlK2TxgmrtFUjYIUyWvYdeey3rT0z9zb2NYPimqtb++T14aqAU9+ShZhsuJuGP+fGV6zy3nGZtzSr01XsK6iE1qSMBLCKVQw/OAxyBK08LM0JBYlCZMQCYfjMs609KZIiOjz5VGu/PN7a7+doomG71IhSLcuGv3RdmuKIogpcsjtqFU3ww7ePe2U8k5YtELWgq7pBzm7sO9IB20NJmZMumyQ9GWLBFM+LZucxxV6HtYz7INGK00VKKsaT3QJMdlecuswLFtegBLfYXmFlgVEYstk8wkYtZh57m4CT3oLALezDwmacXCyw+MRkop8Mwxk3lRRqBSoHiowfa+SqPyc70XKkfoceG8T1Cgq8xkQNvwQPqNJnUMFMxgCElvdE0sL2OnUTOy3HOItCIF5qZxmkFiKOFXkx7PcBB5usnrGyI4ys9tDt/ND+ca2dbpczUSM8FRt1pyJ5Y61ZBMqpBEI7MaESaHtWKxO2+NqrjSuoba6ZdTeOyMoAsEHtFPWIdODXZwSa+DFWHhKDrf73trr+rXFtp748XpdkClDPs3LbzSYOYmvGQ7x77IGWC9Nu/EDz0YFnDqbkpPNzkJ7/EVTnEgRhMGzNqloWyDvOyLDQG72hrXlMjXTIIFRRM9zSasaiRQGEY6VQhsFkkGge4udqYJzkxBybki3Zyy+xdPgWQG8sBUIOafpQaNau26nxKiC1SJyklXwGKDxGfQtBDD0fz7CDdTplXuPxtq8FRrjxytU2HLkbbWtf+k5r/3rBw/7SSZ4cy6siF9YuTuQU/9UDxKe6JRy2k5sS+eoNxNBmS6hyGqsTRJNIqWSYfCIo89IxIjLNuNBUwUKhs7OTHUnJRl340EviSr3kgAOFtQztEpkaq0bvhlMddCn1q8yZBUZYcTYpVgyTcNDhfYBZFUHCjHgWqR7CzuwzEqwkFQGftpcMGCcElkUG5aZkKL2jqqC5uuh3Dx+5faw7kt968dywT50EZGxyHiNLfc2tF7mrrmjtR1/psS9qcP9DesWtLWyG8jSJVTn1HoxzgiQm+ljHNtW46Q2cxlTFGo8qMcC9GZ0rLyFFptLupUt1h1/8QMGVAP6XmnNKacZHXzjncQZm4CZjGafKlKTtWaZ9DC5uQIwKCtN43xkWNvv+z9r49+f9fa0K5a1GpWlAtSoU1n5YIX3zGL/wOasKQxZLyVuRH7xlMokYE8B1TZZyp4RzCWdkov/GLCJYwEciK5MsNJ0cOGS+cGwUp9/9qQ3/OBG63D7xkUnueFUv1MgXYQY6OfTbdJctFx5ATnE1DguUIes45naSeeMrDDgbPyf+CUCWWG0VJtAKvEIsvEqWSUodGCk18DhtYiwfNmRGjEyVnpUH60ZiZzRWAhP9q13g1SEPDsvJd4GzwjbpS3fk+XDDHeMj8nRbGfq1gcLh3Re3ElfvLaag9frd+u/p4+y73pHetun2PdjaP1nR9EUMvgw/fM82Rqn6y99a+/ZPbEvMuIHAgjHkKs8ohO4xsf0ll6Y9Lkx7ahIm6kpdFg2gWxrFRMjLdqXi/DrqjS+/7J1+k9/OfFfGwJBVNZYFYKBTCDSOlTRxCRHD5dhOUX4aOlRigg8AYkY04Nxzo9Xe9+zXz7TGgZKbh/ph9vbWPvXxANs3uyCmjlNjRD8/pk82WmEa9uqG97+3tevebRGxw2kapaN45xqyos7Wj90Wpsd3/urwsPGxO0bd85qeZJGkbJykpl5RFcE5OjS6IEoibvO/6i3xb2IreztL+r6rFwQBcSOy3yxSN5buD/PW/vhnxzR5ttlb9AGyE8yiSYwTTKEFqVgrzXzNyhAFWYvACwe+PGzgC+nT7nWStR0EI+PjLmlLQcNlWKVRRgwEE1riPZZMU1Z9KrWKk+/Cm1FEAHUUwFszLCl8tFozfAdV3Cyia3sCNEE9DI/A2o4XSWDmrajEvJLC4yBwWC+3CC4nTqJCJcbkUBDHgIWx5xOZHJlzR4RdXYMxi5UkWEViyy686Hd+7E1QP7JsaPyCkCaAQg3TMFDPQMfCQWAT2DsK4YAyqMCLJIKcfUwd2TpOLipxz9BHUeIhDzLIKMYSMI0kmx+4K34J9mvDjcPDiU/sHw9Lvw5GB8klHH+qqCR57VkuJ10/06Pipg/awDJdh+3KKxZ6TTtWbljpibV+eHxPa2/VNYe8En7nVY5bpyiXAQtntWI4nx6abpRhfy+qwRH9FrhfCoUi0sIR1tw8JI7kGCzWp3302uYDu3O0yh9YL+LNN2xvReCIrrMnkV9acUOpJbf2kh3tUHmMm4xmrKK0RzRkm/iThkiYBpVijJ8M4K3x75fKzfZ9fbPv7PBKlPNoL2UMwGlAHiQWucFNAq8mQv3Zyb13DvNynTYx5XdBWT8l4W7/wYBI+bYvAdsOcK5syJnLZ/9cGfr6tEERtKsDg133lX7wSZqK5aSFBeYTdv5UFXO/Iqy5c9GmNZ7rECxmK23eXmk3rU9+u8dPb17FlXanoygwCZqViOYKOiE5xKcTAct2rdVGjNb/Ja+Wc+8JZeQecpK7hUn36fXFrxuzLILmltb1h77b6h4yJYduiSCCjQeHx2Wsr5zhyEkoZZzg2eQrq0ggtkiWwioKInthI5nQORNiOLnywQpMt2v67PHBh42dVkVcJMkVgbyId+Tg3cOjiKbtLIIo9ZPwurZBPfyjkIpCIE96/dNVJLVILQuS2t7hwgWSBF/ZoG9bZKln20XhCpUmxoCrolCgpj/sO9nWF9DFaEuCbNVTp9tnFHWugI6JY7LwdRN5lAhvlVDlD9RlqIQ9B6mGoVskxzBgSTSUZ+MMKmIBYvWfWzmt627yo2fZ029JEIVIzi+RodKcM9fKQYIF7A9XBSQmIb1NoAQAAtbF2kB2wglv2SpZEDTN7R+8yDIuuXtOWQST1crt2Fy+qXRcDl6VIPonRHLlEpGMv+skKH5JtqdkIhIUIQcGWS3H6EtUfRfUyqmXzGL62obpE11vSmB++hzkAG9LEMATDwzzYYdIyiErhMzBGWQylBqdutD7bL1P08QQkPCSLFfS8tLhgzun5mJGZJtAWoPjmyL3wORx4EBbnM5JEBtIXvpKu17ghxwQIeEIq0SQ0bJDFLqJzJIsAGoadtiUvQz9zUX2cRlMSAlYf4Vx5A0vnx85x+B0Ie3T94x7lchBkZ0psf7A5+ZTyVI1krYMuTL2Q1rl4Mmv/+Y0samHdt3EPE/7ijFX3Du/ed/gbwnnmzM5XXDT32TPZLRXxwElEZ9WkpBkvHB1SwKV4IKwtBQHGGSLaBKiULZh1eTrhP7w7qHLXmmHX+1OGdG2PmcqWyvPJYWovmqtK5EbldyMxHDoj24asHJ9JSVPAkvEiAFZdF5Z7Jjr65v+nPmI/tL38Pn+bSi+zmzk87q0z9437tU2vEWJrWkrXa5xfQ5dIgnhJMAwSKu3PF5hHtfPz0f0o+zGxRArUq8bwXJI//mvjmvaWntE8kZtL37hYXVnXkHps5+L1Anhjmuhn6Z/+P5hA/vXs/0PVVl54z/XKbAAAAAASUVORK5CYII=",Ot=1;function Ne(t){return t.elementType===Ot}function Yt(t){return!Ne(t)}function Zt(t){return t==null||Array.isArray(t)&&t.length===0?{id:"__empty_root__",name:"\u7EC4\u7EC7\u67B6\u6784",elementType:1,children:[]}:Array.isArray(t)?t.length===1?t[0]:{id:"__virtual_root__",name:"\u7EC4\u7EC7\u67B6\u6784",elementType:1,children:t}:t}function ft(t,o){const p=[],y=t.children||[];for(const S of y)if(Ne(S)){const N={id:S.id,name:S.name||S.deptName||""};p.push(...ft(S,N))}else Yt(S)&&p.push({node:S,deptId:o.id,deptName:S.deptName||o.name||""});return p}function Ht(t){const o={id:t.id,name:t.name||t.deptName||""};return ft(t,o)}function Se(t,o){const p=t.toLowerCase(),y=o.trim().toLowerCase();return y?p.includes(y):!0}function Ae(t){return String(t.userRealname||t.userName||t.name||t.id)}function Le(t){const o=t.trim();return o.length<=1?o||"?":o.slice(0,1)}const Qt=C.div.attrs({className:"audit-org-user-picker-body"})`
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 0;
|
|
4
|
+
min-height: 420px;
|
|
5
|
+
max-height: 520px;
|
|
6
|
+
border: 1px solid rgba(226, 232, 240, 0.95);
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
`,Xt=C.div.attrs({className:"audit-org-user-picker-left"})`
|
|
10
|
+
flex: 1 1 55%;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
border-right: 1px solid rgba(226, 232, 240, 0.95);
|
|
15
|
+
background: #fff;
|
|
16
|
+
`,$t=C.div.attrs({className:"audit-org-user-picker-search-bar"})`
|
|
17
|
+
flex: 0 0 auto;
|
|
18
|
+
padding: 12px;
|
|
19
|
+
border-bottom: 1px solid rgba(226, 232, 240, 0.85);
|
|
20
|
+
`,er=C.div.attrs({className:"audit-org-user-picker-right"})`
|
|
21
|
+
flex: 1 1 45%;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
`,tr=C.div.attrs({className:"audit-org-user-picker-section-title"})`
|
|
26
|
+
padding: 10px 12px;
|
|
27
|
+
font-size: 13px;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
color: rgba(15, 23, 42, 0.88);
|
|
30
|
+
`,Me=C.div.attrs({className:"audit-org-user-picker-scroll"})`
|
|
31
|
+
flex: 1 1 0;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
min-height: 0;
|
|
34
|
+
overflow-y: auto;
|
|
35
|
+
`,qe=C.button.attrs({type:"button",className:"audit-org-user-picker-row"})`
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 10px;
|
|
40
|
+
padding: 10px 12px;
|
|
41
|
+
border: none;
|
|
42
|
+
background: ${({$interactive:t})=>t?"#fff":"transparent"};
|
|
43
|
+
cursor: ${({$interactive:t})=>t?"pointer":"default"};
|
|
44
|
+
text-align: left;
|
|
45
|
+
&:hover {
|
|
46
|
+
background: ${({$interactive:t})=>t?"rgba(248, 250, 252, 1)":"transparent"};
|
|
47
|
+
}
|
|
48
|
+
`,rr=C.div.attrs({className:"audit-org-user-picker-breadcrumb"})`
|
|
49
|
+
padding: 8px 12px;
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
color: rgba(71, 85, 105, 1);
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
gap: 4px;
|
|
55
|
+
align-items: center;
|
|
56
|
+
`,ir=C.button.attrs({type:"button",className:"audit-org-user-picker-crumb"})`
|
|
57
|
+
border: none;
|
|
58
|
+
background: transparent;
|
|
59
|
+
padding: 0;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
color: #2A2A2A;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
&:hover {
|
|
65
|
+
text-decoration: underline;
|
|
66
|
+
}
|
|
67
|
+
`;function ur(t){const{open:o,title:p="\u6DFB\u52A0\u4EBA\u5458",auditStep:y,value:S,maxCount:N=100,treeRoot:z,excludedUserIds:E=[],onCancel:ue,onConfirm:D}=t,[se,ae]=x(""),le=ge(()=>Zt(z),[z]),[te,pe]=x([le]),[ne,Y]=x(new Map),s=ge(()=>new Set(E.filter(Boolean)),[E]),n=ge(()=>Ht(le),[le]);ie(()=>{if(!o)return;ae(""),pe([le]);const F=new Map;S.forEach(g=>{s.has(g.userId)||F.set(g.userId,{...g,auditStep:y})}),Y(F)},[o,le,y,S,s]);const f=te[te.length-1],h=f.children||[],R=ge(()=>{const F=se.trim();return F?n.filter(({node:g,deptName:k})=>{if(s.has(g.id))return!1;const B=Ae(g);return Se(B,F)||Se(g.userName||"",F)||Se(k,F)||Se(g.deptName||"",F)}):[]},[n,se,s]),Z=ge(()=>Array.from(ne.values()),[ne]),P=oe((F,g,k,B)=>{const _=F.id;s.has(_)||Y(q=>{const X=new Map(q);if(B){if(X.size>=N)return q;X.set(_,{userId:_,userRealname:Ae(F),auditStep:y,deptId:g,deptName:k||""})}else X.delete(_);return X})},[y,N,s]),H=F=>{Ne(F)&&pe(g=>[...g,F])},Q=y===1?"\u5DF2\u4E3A\u590D\u5BA1\u4EBA\u5458\uFF0C\u4E0D\u53EF\u9009\u62E9":"\u5DF2\u4E3A\u521D\u5BA1\u4EBA\u5458\uFF0C\u4E0D\u53EF\u9009\u62E9",J=()=>{const F=Z.filter(g=>!s.has(g.userId)).map(g=>({...g,auditStep:y}));D(F)},T=()=>se.trim()?e(Me,{children:R.length===0?e(G.Text,{type:"secondary",style:{display:"block",padding:16},children:"\u65E0\u5339\u914D\u4EBA\u5458"}):R.map(({node:g,deptId:k,deptName:B})=>{const _=ne.has(g.id);return v(qe,{$interactive:!0,onClick:q=>{q.preventDefault(),P(g,k,B,!_)},children:[e(We,{checked:_,onClick:q=>q.stopPropagation(),onChange:q=>P(g,k,B,q.target.checked)}),e(De,{style:{background:"linear-gradient(-50deg, #8F91FF 10%, #2B69FF 90%)"},children:Le(Ae(g))}),v("div",{style:{flex:1,minWidth:0},children:[e(G.Text,{style:{display:"block",fontWeight:200},children:Ae(g)}),e(G.Text,{type:"secondary",style:{fontSize:12},children:B||"\u6B64\u5904\u662F\u90E8\u95E8\u540D\u79F0"})]})]},g.id)})}):v(kt,{children:[e(rr,{children:te.map((g,k)=>v("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[k>0?e("span",{style:{color:"#cbd5e1"},children:"/"}):null,e(ir,{type:"button",onClick:()=>pe(te.slice(0,k+1)),children:g.name||g.userRealname||"\u2026"})]},`${g.id}-${k}`))}),e(Me,{children:h.length===0?e(G.Text,{type:"secondary",style:{display:"block",padding:16},children:"\u6682\u65E0\u5B50\u9879"}):h.map(g=>{var X;if(Ne(g)){const c=(((X=g.children)==null?void 0:X.length)||0)>0;return v(qe,{$interactive:c,onClick:()=>{c&&H(g)},children:[e("span",{style:{width:20,display:"inline-block"}}),e("img",{src:Jt,width:30,height:28}),e("div",{style:{flex:1,minWidth:0},children:e(G.Text,{children:g.name||"\u90E8\u95E8"})}),c?e(Lt,{color:"#055aff",size:14}):null]},g.id)}const k={id:f.id,name:f.name||f.deptName||""},B=ne.has(g.id),_=s.has(g.id),q=v(qe,{$interactive:!_,style:_?{opacity:.55,cursor:"not-allowed"}:void 0,onClick:()=>{_||P(g,k.id,g.deptName||k.name,!B)},children:[e(We,{checked:B,disabled:_,onClick:c=>c.stopPropagation(),onChange:c=>P(g,k.id,g.deptName||k.name,c.target.checked)}),e(De,{style:{background:"linear-gradient(-50deg, #8F91FF 10%, #2B69FF 90%)"},children:Le(Ae(g))}),v("div",{style:{flex:1,minWidth:0},children:[e(G.Text,{style:{display:"block"},children:Ae(g)}),e(G.Text,{type:"secondary",style:{fontSize:12},children:g.deptName||k.name||"\u6B64\u5904\u662F\u90E8\u95E8\u540D\u79F0"})]})]});return _?e(lt,{title:Q,children:e("div",{children:q})},g.id):e("div",{children:q},g.id)})})]});return e(at,{title:p,open:o,width:800,onCancel:ue,footer:v("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[e(ve,{onClick:ue,children:"\u53D6\u6D88"}),e(ve,{type:"primary",onClick:J,children:"\u786E\u5B9A"})]}),destroyOnClose:!0,children:v(Qt,{children:[v(Xt,{children:[e($t,{children:e(Rt.Search,{allowClear:!0,placeholder:"\u641C\u7D22\u7528\u6237\u3001\u7FA4\u7EC4\u3001\u90E8\u95E8\u6216\u7528\u6237\u7EC4",value:se,onChange:F=>ae(F.target.value),onSearch:F=>ae(F)})}),T()]}),v(er,{children:[v(tr,{children:["\u5DF2\u9009\uFF1A",Z.length," \u4E2A"]}),e(Me,{children:e(_e,{size:"small",dataSource:Z,locale:{emptyText:e(G.Text,{type:"secondary",children:"\u6682\u672A\u9009\u62E9\u4EBA\u5458"})},split:!1,renderItem:F=>e(_e.Item,{style:{padding:"10px 12px"},actions:[e(ct,{size:20,onClick:()=>Y(g=>{const k=new Map(g);return k.delete(F.userId),k})})],children:e(_e.Item.Meta,{avatar:e(De,{style:{background:"linear-gradient(-50deg, #7FC0FB 10%, #4088F4 90%)"},children:Le(F.userRealname)}),title:e(G.Text,{children:F.userRealname}),description:e(G.Text,{type:"secondary",style:{fontSize:12},children:F.deptName||"\u6B64\u5904\u662F\u90E8\u95E8\u540D\u79F0"})})})})})]})]})})}const sr=t=>t===3?[1,2]:t===2?[2]:[1],nr=t=>{const o=t.includes(1),p=t.includes(2);return o&&p?3:p?2:1};function or(t){const o=t.trim();return o?o.length<=2?o:o.slice(-2):"?"}const ar=C.div.attrs({className:"editsetting-person-card"})`
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 10px;
|
|
71
|
+
width: 100%;
|
|
72
|
+
max-width: 280px;
|
|
73
|
+
min-height: 56px;
|
|
74
|
+
padding: 10px 12px;
|
|
75
|
+
border: 1px solid rgba(226, 232, 240, 0.95);
|
|
76
|
+
border-radius: 10px;
|
|
77
|
+
background: #fff;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
position: relative;
|
|
80
|
+
`,lr=C.button.attrs({type:"button",className:"editsetting-person-remove"})`
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 6px;
|
|
83
|
+
right: 6px;
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
width: 22px;
|
|
88
|
+
height: 22px;
|
|
89
|
+
padding: 0;
|
|
90
|
+
border: none;
|
|
91
|
+
border-radius: 6px;
|
|
92
|
+
background: transparent;
|
|
93
|
+
color: #94a3b8;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
&:hover {
|
|
96
|
+
color: #64748b;
|
|
97
|
+
background: rgba(241, 245, 249, 0.9);
|
|
98
|
+
}
|
|
99
|
+
`;function st({user:t,onRemove:o}){return v(ar,{children:[e(De,{size:36,style:{background:"linear-gradient(-50deg, #8f91ff 10%, #2b69ff 90%)",flexShrink:0},children:or(t.userRealname)}),v("div",{style:{minWidth:0,flex:1,paddingRight:20},children:[e(G.Text,{strong:!0,style:{display:"block",fontSize:14,color:"#111827"},children:t.userRealname}),e(G.Text,{type:"secondary",style:{fontSize:12,marginTop:2,display:"block"},children:t.deptName||"\u6B64\u5904\u662F\u90E8\u95E8\u540D\u79F0"})]}),e(lr,{"aria-label":"\u79FB\u9664",onClick:o,children:e(ct,{size:14,strokeWidth:2})})]})}function cr(t){const{id:o,mode:p="edit",url:y,token:S,role:N,eventsEmit:z,onCancel:E,onSuccess:ue}=t,[D]=de.useForm(),[se,ae]=x(!1),[le,te]=x(!1),[pe,ne]=x([]),[Y,s]=x(""),[n,f]=x([]),[h,R]=x([]),[Z,P]=x(!1),[H,Q]=x("first"),{getKnowledgeBaseList:J,getConfigById:T,addConfig:F,editConfig:g,getTreeFrame:k}=ge(()=>pt({url:y,token:S,role:N,eventsEmit:z}),[y,S,N,z]),[B,_]=x([]);ie(()=>{(async()=>{const c=await k();c&&_(c)})()},[k]);const q=de.useWatch("flowType",D)==="multi";ie(()=>{(async()=>{var r,I;ae(!0);try{const[U,fe]=await Promise.all([J({fuzzy:""}),p==="edit"&&o!==void 0&&o!==null?T(o):Promise.resolve(null)]);if(ne(Array.isArray(U)?U:[]),p==="edit"&&fe){const re=fe,xe=((r=re.firstAuditUsers)==null?void 0:r.map($=>({userId:$.userId,userRealname:$.userRealname,auditStep:1,deptId:"",deptName:""})))??[],O=((I=re.secondAuditUsers)==null?void 0:I.map($=>({userId:$.userId,userRealname:$.userRealname,auditStep:2,deptId:"",deptName:""})))??[],ce=re.secondAuditSwitch===1;f(xe),R(ce?O:[]),D.setFieldsValue({knowledgeAuditSwitch:re.knowledgeAuditSwitch===1,knowledgeIds:(re.targets||[]).map($=>String($.targetId)),reviewScope:sr(re.auditScope),flowType:ce?"multi":"single"})}else p==="create"&&(f([]),R([]),D.setFieldsValue({knowledgeAuditSwitch:!0,reviewScope:[1],flowType:"single",firstAuditUsers:[],secondAuditUsers:[],knowledgeIds:[]}))}catch{W.error(p==="edit"?"\u52A0\u8F7D\u914D\u7F6E\u5931\u8D25":"\u52A0\u8F7D\u77E5\u8BC6\u5E93\u5931\u8D25")}finally{ae(!1)}})()},[o,p,D,T,J]),ie(()=>{const c=window.setTimeout(async()=>{try{const r=await J({fuzzy:Y.trim()});ne(Array.isArray(r)?r:[])}catch(r){console.error("[EditSetting] search knowledge base failed:",r)}},250);return()=>window.clearTimeout(c)},[Y,J]),ie(()=>{q||(D.setFieldValue("secondAuditUsers",[]),R([]))},[q,D]),ie(()=>{const c=new Set(n.map(r=>r.userId));R(r=>{const I=r.filter(U=>!c.has(U.userId));return I.length===r.length?r:(D.setFieldValue("secondAuditUsers",I),I)})},[n,D]),ie(()=>{const c=new Set(h.map(r=>r.userId));f(r=>{const I=r.filter(U=>!c.has(U.userId));return I.length===r.length?r:(D.setFieldValue("firstAuditUsers",I),I)})},[h,D]);const X=async()=>{try{const c=await D.validateFields(),r=new Set(n.map(O=>O.userId));if(h.some(O=>r.has(O.userId))){W.error("\u521D\u5BA1\u4E0E\u590D\u5BA1\u4EBA\u5458\u4E0D\u53EF\u91CD\u590D\uFF0C\u8BF7\u8C03\u6574\u540E\u518D\u63D0\u4EA4");return}const U=(c.knowledgeIds||[]).map(O=>Number(O)).map(O=>{const ce=pe.find($=>Number($.id)===O);return{targetType:1,targetId:O,targetName:(ce==null?void 0:ce.kbName)||""}}),fe={auditScope:nr(c.reviewScope||[]),knowledgeAuditSwitch:c.knowledgeAuditSwitch?1:0,firstAuditSwitch:1,secondAuditSwitch:c.flowType==="multi"?1:0,firstAuditUsers:n,secondAuditUsers:c.flowType==="multi"?h:[],targets:U};te(!0);const re=p==="edit"?{...fe,id:Number(o)}:fe;if(p==="edit"?await g(re):await F(re)){W.success(p==="edit"?"\u4FDD\u5B58\u6210\u529F":"\u521B\u5EFA\u6210\u529F"),ue==null||ue();return}W.error(p==="edit"?"\u4FDD\u5B58\u5931\u8D25":"\u521B\u5EFA\u5931\u8D25")}catch(c){c!=null&&c.errorFields?W.warning("\u8BF7\u5B8C\u6574\u586B\u5199\u5FC5\u586B\u9879"):W.error(p==="edit"?"\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5":"\u521B\u5EFA\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5")}finally{te(!1)}};return v("div",{className:"box-border w-full min-h-full overflow-x-hidden px-4 pb-20 pt-4",children:[e("div",{className:"mx-auto w-[800px] max-w-full",children:v(de,{form:D,layout:"vertical",requiredMark:!0,disabled:se,initialValues:{knowledgeAuditSwitch:!0,reviewScope:[1],flowType:"single",firstAuditUsers:[],secondAuditUsers:[]},children:[v("div",{className:"mb-3 rounded-md bg-[#F3F3F3] px-4 py-3",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e("span",{style:{fontWeight:600,fontSize:14,color:"#111827"},children:"\u542F\u7528\u77E5\u8BC6\u5E93\u6587\u4EF6\u72EC\u7ACB\u5BA1\u6838"}),e(de.Item,{name:"knowledgeAuditSwitch",valuePropName:"checked",className:"mb-0",style:{marginBottom:0},children:e(It,{})})]}),v("div",{className:"rounded-md bg-white px-4 py-1",children:[e(de.Item,{label:"\u77E5\u8BC6\u5E93",name:"knowledgeIds",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u5E93"}],children:e(Nt,{mode:"multiple",allowClear:!0,showSearch:!0,filterOption:!1,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u5E93",onSearch:c=>s(c),options:pe.map(c=>({label:c.kbName,value:String(c.id)}))})}),e(de.Item,{label:"\u5BA1\u6838\u8303\u56F4",name:"reviewScope",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u8303\u56F4"}],children:e(We.Group,{options:[{label:"\u4E0A\u4F20",value:1},{label:"\u5220\u9664",value:2}]})}),e(de.Item,{label:v("span",{children:["\u5BA1\u6838\u6D41\u7A0B\u8303\u56F4",e(G.Text,{type:"secondary",style:{fontWeight:400},children:"\uFF08\u4FEE\u6539\u540E\u4EC5\u5BF9\u65B0\u4E0A\u4F20\u6587\u4EF6\u751F\u6548\uFF0C\u5DF2\u5165\u6D41\u7A0B\u6587\u4EF6\u6309\u539F\u6D41\u7A0B\u6267\u884C\u3002\uFF09"})]}),name:"flowType",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u6D41\u7A0B\u8303\u56F4"}],children:v(Ue.Group,{children:[e(Ue,{value:"single",children:"\u5355\u6B21\u5BA1\u6838"}),v(Ue,{value:"multi",children:["\u7ECF\u529E\u590D\u6838 ",e(G.Text,{type:"secondary",style:{fontWeight:400},children:"\uFF08\u9009\u62E9\u201C\u7ECF\u529E\u590D\u6838\u201D\u540E\uFF0C\u9700\u914D\u7F6E\u521D\u5BA1\u548C\u590D\u5BA1\u4EBA\u5458\u3002\uFF09"})]})]})}),e(de.Item,{label:v("span",{children:["\u521D\u5BA1\u4EBA\u5458"," ",e(G.Text,{type:"secondary",style:{fontWeight:400},children:"\uFF08\u81F3\u5C11 1 \u540D\uFF0C\u6700\u591A 100 \u540D\uFF09"})]}),name:"firstAuditUsers",required:!0,rules:[{validator:async()=>{if(!(n.length>0))throw new Error("\u8BF7\u9009\u62E9\u521D\u5BA1\u4EBA\u5458")}}],children:v(rt,{direction:"vertical",size:1,style:{width:"100%"},children:[e("div",{className:"editsetting-person-card-list",style:{display:"flex",flexWrap:"wrap",gap:12},children:n.map(c=>e(st,{user:c,onRemove:()=>{const r=n.filter(I=>I.userId!==c.userId);f(r),D.setFieldValue("firstAuditUsers",r)}},c.userId))}),e(ve,{onClick:()=>{Q("first"),P(!0)},icon:e(ut,{size:14}),style:{paddingLeft:10,color:"#4e6ef2",marginTop:(n==null?void 0:n.length)>0?10:0},children:"\u65B0\u589E\u4EBA\u5458"})]})}),q?e(de.Item,{label:v("span",{children:["\u590D\u5BA1\u4EBA\u5458"," ",e(G.Text,{type:"secondary",style:{fontWeight:400},children:"\uFF08\u81F3\u5C11 1 \u540D\uFF0C\u6700\u591A 100 \u540D\uFF09"})]}),name:"secondAuditUsers",required:!0,rules:[{validator:async()=>{if(!(h.length>0))throw new Error("\u8BF7\u9009\u62E9\u590D\u5BA1\u4EBA\u5458")}}],children:v(rt,{direction:"vertical",size:12,style:{width:"100%"},children:[e("div",{className:"editsetting-person-card-list",style:{display:"flex",flexWrap:"wrap",gap:12},children:h.map(c=>e(st,{user:c,onRemove:()=>{const r=h.filter(I=>I.userId!==c.userId);R(r),D.setFieldValue("secondAuditUsers",r)}},c.userId))}),e(ve,{onClick:()=>{Q("second"),P(!0)},icon:e(ut,{size:14}),style:{paddingLeft:10,color:"#4e6ef2",marginTop:(h==null?void 0:h.length)>0?10:0},children:"\u65B0\u589E\u4EBA\u5458"})]})}):null]})]})}),e("div",{className:"fixed bottom-0 left-0 right-0 z-10 box-border border-t border-[#e5e6eb] bg-white px-4 py-3",children:v("div",{className:"mx-auto flex w-full max-w-full justify-end gap-3",children:[e(ve,{onClick:E,children:"\u53D6\u6D88"}),e(ve,{type:"primary",loading:le,onClick:X,children:p==="edit"?"\u786E\u8BA4":"\u521B\u5EFA"})]})}),e(ur,{open:Z,title:"\u6DFB\u52A0\u4EBA\u5458",auditStep:H==="first"?1:2,value:H==="first"?n:h,treeRoot:B,excludedUserIds:H==="first"?h.map(c=>c.userId):n.map(c=>c.userId),onCancel:()=>P(!1),onConfirm:c=>{if(H==="first"){const r=new Set(h.map(U=>U.userId)),I=c.filter(U=>!r.has(U.userId));f(I),D.setFieldValue("firstAuditUsers",I)}else{const r=new Set(n.map(U=>U.userId)),I=c.filter(U=>!r.has(U.userId));R(I),D.setFieldValue("secondAuditUsers",I)}P(!1)}})]})}function dr(t){if(typeof t=="string"){const o=t.trim();return o==="multi"||o==="\u7ECF\u529E\u590D\u6838"?"multi":"single"}if(t&&typeof t=="object"){const o=t,p=String(o.value??o.id??o.label??"").trim();if(p==="multi"||p==="\u7ECF\u529E\u590D\u6838")return"multi"}return"single"}function nt(t){const o=String(t??"").trim();return o?o.replace(/_(\d+)$/,""):""}function gr(t){const o=String(t??"").trim();return o?/_(\d+)$/.test(o)?o:`${o}_0`:""}C.div.attrs({className:"reviewsetting-reviewer-card"})`
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: 10px;
|
|
103
|
+
width: 100%;
|
|
104
|
+
max-width: 280px;
|
|
105
|
+
min-height: 56px;
|
|
106
|
+
padding: 10px 36px 10px 12px;
|
|
107
|
+
border: 1px solid rgba(226, 232, 240, 0.95);
|
|
108
|
+
border-radius: 10px;
|
|
109
|
+
background: #fff;
|
|
110
|
+
position: relative;
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
`;C.div.attrs({className:"reviewsetting-reviewer-card-avatar"})`
|
|
113
|
+
width: 36px;
|
|
114
|
+
height: 36px;
|
|
115
|
+
border-radius: 999px;
|
|
116
|
+
background: linear-gradient(135deg, #4e6ef2, #2563eb);
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
color: #fff;
|
|
121
|
+
flex-shrink: 0;
|
|
122
|
+
`;C.button.attrs({className:"reviewsetting-reviewer-card-remove"})`
|
|
123
|
+
position: absolute;
|
|
124
|
+
top: 6px;
|
|
125
|
+
right: 6px;
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
width: 22px;
|
|
130
|
+
height: 22px;
|
|
131
|
+
padding: 0;
|
|
132
|
+
border: none;
|
|
133
|
+
border-radius: 6px;
|
|
134
|
+
background: transparent;
|
|
135
|
+
color: #94a3b8;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
`;const ke=10;function pr(t){const{styles:o,pageEventsEmit:p,CustomComponents:y,url:S,token:N,role:z}=t,{getMessage:E}=Vt(),[ue,D]=x([]),[se,ae]=x(0),[le,te]=x(!1),[pe,ne]=x({pageNo:1,pageSize:ke}),[Y,s]=x([]),[n,f]=x(10),[h,R]=x(1),[Z,P]=x(0),H=tt(""),[Q,J]=x("list"),[T,F]=x("create"),[g,k]=x(null),[B,_]=x(null),[q,X]=x(!1),c=tt(null),r=async(i,a,u)=>{switch(console.log("[adopter] mergedEventsEmit",i,a,u),i){case"reviewsetting_tips_upload_review_toggle_changed":{await fe({uploadAudit:a.checked?1:0})&&W.success("\u66F4\u65B0\u6210\u529F");break}case"reviewsetting_tips_delete_review_toggle_changed":{await fe({deleteAudit:a.checked?1:0})&&W.success("\u66F4\u65B0\u6210\u529F");break}default:typeof p=="function"&&p(i,a);break}},{getReviewSettingData:I,getGlobalConfig:U,updateGlobalConfig:fe,deleteConfigById:re,getKnowledgeBaseList:xe,addConfig:O,editConfig:ce,getConfigById:$}=pt({url:S,token:N,role:z,eventsEmit:r,getMessage:E}),[Ke,ht]=x("light"),[we,wt]=x(""),[me,mt]=x(""),[be,bt]=x(""),[yt,Ve]=x(!0),[At,je]=x(!1),[Fr,ze]=x(!1),[Je,Oe]=x(null),[Ye,vt]=x([]),[Ze,Be]=x(!1),He=Tt(),Fe=ge(()=>{var d;const i=it(it({theme:Pt,mode:"light"},He||{}),o||{}),a=((d=i.theme)==null?void 0:d.space)||{},u=a.dashboardHeaderHeight,l=u==="auto"||u===void 0?{...a,dashboardHeaderHeight:"38px"}:a;return{...i,mode:Ke,theme:{...i.theme,space:l}}},[He,o,Ke]),he=oe(()=>{J("list"),k(null),_(null),Be(!1),c.current=null,r==null||r("reviewsetting_nav_back_list",{},null)},[r]);oe(()=>{he()},[he]);const Qe=oe(()=>{F("create"),k(null),_(null),Be(!1),J("form"),c.current=null,r==null||r("reviewsetting_nav_enter_create",{},null)},[r]),Xe=oe(async i=>{F("edit"),k(i),J("form"),c.current=null,X(!0);try{const a=await $(i);if(a){_(a);const u=a.secondAuditSwitch===1;Be(u)}else W.error("\u83B7\u53D6\u914D\u7F6E\u8BE6\u60C5\u5931\u8D25")}catch(a){console.error("[ReviewSetting] getConfigById error:",a),W.error("\u83B7\u53D6\u914D\u7F6E\u8BE6\u60C5\u5931\u8D25")}finally{X(!1)}r==null||r("reviewsetting_nav_enter_edit",{id:i},null)},[r,$]),$e=oe(()=>{ht(i=>i==="light"?"dark":"light")},[]);function Ft(i,a,u){return i.map((l,d)=>({id:l.id,__absIndex:(a-1)*u+d,data:[{columnId:"enterpriseName",value:l==null?void 0:l.targets,type:"customized"},{columnId:"knowledgeType",value:l.targetType,type:"customized"},{columnId:"reviewScope",value:l.auditScope,type:"customized"},{columnId:"firstReviewers",value:((l==null?void 0:l.firstAuditUsers)||[]).map(A=>A==null?void 0:A.userRealname).join("\u3001"),type:"text"},{columnId:"secondReviewers",value:((l==null?void 0:l.secondAuditUsers)||[]).map(A=>A==null?void 0:A.userRealname).join("\u3001"),type:"text"},{columnId:"createdAt",value:new Date(l.gmtModified).toLocaleString(),type:"text"},{columnId:"creator",value:l.updateBy,type:"text"},{columnId:"enabled",value:l.knowledgeAuditSwitch,type:"customized"},{columnId:"actions",value:"edit",label:E("table.actionEdit"),type:"action"},{columnId:"actions",value:"delete",label:E("table.actionDelete"),type:"action"}]}))}const Te=oe(async i=>{const a=Number((i==null?void 0:i.pageNo)||1),u=Number((i==null?void 0:i.pageSize)||ke),l=[String((i==null?void 0:i.targetNameFuzzy)||""),String((i==null?void 0:i.firstAuditUserRealnameFuzzy)||""),String((i==null?void 0:i.secondAuditUserRealnameFuzzy)||""),String(u)].join("::"),d=await I(i),A=d.records||[],K=Ft(A,a,u),L=H.current===l;H.current=l,D(L?ee=>{const V=new Map;return ee.forEach(j=>V.set(j.id,j)),K.forEach(j=>V.set(j.id,j)),Array.from(V.values())}:K),ae(Number((d==null?void 0:d.total)||0)),ne({pageNo:a,pageSize:u})},[]);ie(()=>{let i=!0;return(async()=>{te(!0);try{await Te({pageNo:1,pageSize:ke})}catch(u){console.error("[BackendPaginationDemo] init request error:",u)}finally{i&&te(!1)}})(),()=>{i=!1}},[Te]),ie(()=>{xt()},[]);const xt=async()=>{const i=await U();i&&(Ve(i.uploadAudit!=0),je(i.deleteAudit!=0))},Bt=async({pageNo:i,pageSize:a})=>{let u={pageNo:Number(i||1),pageSize:Number(a||ke),...we?{targetNameFuzzy:we}:{},...me?{firstAuditUserRealnameFuzzy:me}:{},...be?{secondAuditUserRealnameFuzzy:be}:{}};try{await Te({...u})}catch(l){console.error("[BackendPaginationDemo] pagination request error:",l)}};ie(()=>{Bt({pageNo:h,pageSize:n})},[h,n,we,me,be,Z]);const Et=ge(()=>{const i=["review-setting-table",String(we||""),String(me||""),String(be||""),String(n)].join("-");return{label:"",model:null,defaultActiveId:i,views:[{id:i,label:"",type:"table",viewBehavior:"pagination",total:se,requestPagesize:n,viewPageSize:n,toolbar:[{type:"button",key:"create_review",label:E("toolbar.createConfig"),btnType:"primary"},{type:"customized",key:"search_enterprise",position:"right",component:Ge,componentProps:{placeholder:E("toolbar.searchEnterprisePlaceholder"),value:we,size:"md"}},{type:"customized",key:"search_first_reviewers",position:"right",component:Ge,componentProps:{placeholder:E("toolbar.searchFirstReviewersPlaceholder"),value:me,size:"md"}},{type:"customized",key:"search_second_reviewers",position:"right",component:Ge,componentProps:{placeholder:E("toolbar.searchSecondReviewersPlaceholder"),value:be,size:"md"}}],columns:[{title:E("table.enterpriseName"),id:"enterpriseName",type:"customized",component:a=>{const{value:u}=a,l=(u||[]).map(d=>d==null?void 0:d.targetName).join("\u3001");return e(lt,{title:l,children:l})}},{title:E("table.knowledgeType"),id:"knowledgeType",type:"customized",component:a=>{const{value:u}=a;let l=u==1?"\u77E5\u8BC6\u5E93":"\u6570\u636E\u5E93";return e(zt,{color:u==1?"#C5D8FF":"#BEB8FF",style:{color:"#1D2129"},children:l})}},{title:E("table.reviewScope"),id:"reviewScope",type:"customized",component:a=>{const{value:u}=a;let l="-";return u==1&&(l="\u4E0A\u4F20"),u==2&&(l="\u5220\u9664"),u==3&&(l="\u4E0A\u4F20\u3001\u5220\u9664"),l}},{title:E("table.firstReviewers"),id:"firstReviewers",type:"text"},{title:E("table.secondReviewers"),id:"secondReviewers",type:"text"},{title:E("table.createdAt"),id:"createdAt",type:"text"},{title:E("table.creator"),id:"creator",type:"text"},{title:E("table.enabled"),id:"enabled",type:"customized",component:a=>{const{value:u}=a;let l=u==1?"\u5F00\u542F":"\u5173\u95ED";return e("div",{style:{color:u==1?"#52C41A":"#86909C"},children:l})}},{title:E("table.actions"),id:"actions",type:"action",align:"left"}]}],dataSource:ue,eventsEmit:(a,u,l)=>{if(a==="toolbar_create_review"){Qe(),r==null||r(`reviewsetting_${a}`,u,l);return}if(a==="toolbar_theme_toggle"&&$e(),a==="toolbar_search_enterprise_change"&&(wt(String((u==null?void 0:u.value)??"")),R(1)),a==="toolbar_search_first_reviewers_change"&&(mt(String((u==null?void 0:u.value)??"")),R(1)),a==="toolbar_search_second_reviewers_change"&&(bt(String((u==null?void 0:u.value)??"")),R(1)),a==="pagination:request_merge_data"){const d=(u==null?void 0:u.request)||{},A=Number(d.pageSize??n)||n,K=Math.max(1,Number(d.pageNo??h)||h);f(A),R(K),P(L=>L+1)}if(a==="table_action_delete"){const d=String((u==null?void 0:u.id)??"");at.confirm({title:"\u5220\u9664\u786E\u8BA4",content:"\u662F\u5426\u5220\u9664\u5F53\u524D\u914D\u7F6E\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u8BA4",onOk:async()=>{var A;d&&await re(d)&&(D(L=>L.filter(ee=>String(ee==null?void 0:ee.id)!==d)),P(L=>L+1),(A=l==null?void 0:l.removeItem)==null||A.call(l,d))},onCancel:()=>{d&&(r==null||r("reviewsetting_delete_cancelled",{id:d},l))}}),r==null||r(`reviewsetting_${a}`,u,l);return}if(a==="table_action_edit"){const d=String((u==null?void 0:u.id)??"");d&&Xe(d),r==null||r(`reviewsetting_${a}`,u,l);return}r==null||r(`reviewsetting_${a}`,u,l)},styles:Fe,CustomComponents:y}},[y,r,ue,E,Qe,Xe,$e,Fe,we,me,be,n,h,se]),Ee=oe(async i=>{const a=w=>String(w??"").trim(),u=w=>{const m=Number(w);return Number.isFinite(m)?m:NaN},l=w=>Array.isArray(w)?w:w==null||w===""?[]:[w],d=(w,m=0)=>{if(w==null||w==="")return m;if(typeof w=="boolean")return w?1:0;const b=Number(w);if(Number.isFinite(b))return b===1?1:0;const ye=a(w).toLowerCase();return["true","on","yes","checked"].includes(ye)?1:0},A=l(i.reviewScope).map(w=>u(typeof w=="object"&&w!==null?(w==null?void 0:w.value)??(w==null?void 0:w.id):w)).filter(w=>Number.isFinite(w));let K=0;A.includes(1)&&A.includes(2)?K=3:A.includes(1)?K=1:A.includes(2)&&(K=2);const L=w=>l(w).map(m=>{const b=a((m==null?void 0:m.id)??(m==null?void 0:m.userId)??(m==null?void 0:m.value)??(m==null?void 0:m.key)??m),ye=a((m==null?void 0:m.label)??(m==null?void 0:m.name)??(m==null?void 0:m.userRealname)??(m==null?void 0:m.title)??m);return{userId:b,...ye?{userRealname:ye}:{}}}).filter(m=>m.userId),V=(()=>{const m=l(i.enterpriseName).map(M=>typeof M=="object"&&M!==null?(M==null?void 0:M.value)??(M==null?void 0:M.id)??(M==null?void 0:M.targetId):M).map(M=>u(M)).filter(M=>Number.isFinite(M)).map(M=>{const Pe=Y.find(St=>Number(St.id)===Number(M));return{targetType:1,targetId:Number(M),targetName:(Pe==null?void 0:Pe.kbName)||""}}),b=L(i.firstReviewers||[]),ye=L(i.secondReviewers||[]),et=a(i.flowType),Ct=et==="multi"||et==="\u7ECF\u529E\u590D\u6838",Ce={auditScope:K,knowledgeAuditSwitch:d(i.enabled,1),firstAuditSwitch:1,firstAuditUsers:b,targets:m};return Ct?(Ce.secondAuditSwitch=1,Ce.secondAuditUsers=ye):Ce.secondAuditSwitch=0,Ce})();if(T==="create"){try{const w=await O(V);w&&(W.success("\u521B\u5EFA\u6210\u529F"),r==null||r("reviewsetting_form_created",{payload:V,response:w},null),P(m=>m+1),he())}catch(w){console.error("[ReviewSetting] addConfig error:",w),W.error("\u521B\u5EFA\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5")}return}const j=g;if(j)try{const w={...V,id:Number(j)},m=await ce(w);m&&(W.success("\u66F4\u65B0\u6210\u529F"),r==null||r("reviewsetting_form_updated",{id:j,payload:w,response:m},null),P(b=>b+1),he())}catch(w){console.error("[ReviewSetting] editConfig error:",w),W.error("\u66F4\u65B0\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5")}},[g,r,T,he,O,ce,Y]);return oe(async()=>{var a;const i=c.current;if(!i){W.warning("\u8868\u5355\u5C1A\u672A\u5C31\u7EEA\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}try{const u=i==null?void 0:i.form;let l={};if(u!=null&&u.validateFields&&(u!=null&&u.getFieldsValue))await u.validateFields(),l=u.getFieldsValue(!0)||{};else{const d=await((a=i.getAllData)==null?void 0:a.call(i));l=(d==null?void 0:d.values)||d||{}}console.log("[ReviewSetting] submit form values:",l),await Ee(l)}catch(u){console.error("[ReviewSetting] DynamicForm confirm error:",u),W.error("\u8868\u5355\u6821\u9A8C\u672A\u901A\u8FC7\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5")}},[Ee]),ie(()=>{xe().then(i=>{console.log("getKnowledgeBaseList res:",i),s(i)})},[]),ge(()=>{const i=d=>d===3?[1,2]:d===2?[2]:d===1?[1]:[1],a=d=>Array.isArray(d)?d.map((A,K)=>({id:A.userId||`user-${K}`,label:A.userRealname||A.userId||"",type:"user",subLabel:"\u6B64\u5904\u662F\u90E8\u95E8\u540D\u79F0"})):[],u={enabled:T==="edit"?(B==null?void 0:B.knowledgeAuditSwitch)===1:!0,enterpriseName:T==="edit"?((B==null?void 0:B.targets)||[]).map(d=>String(d.targetId)):[],reviewScope:T==="edit"?i(B==null?void 0:B.auditScope):[1],flowType:T==="edit"&&(B==null?void 0:B.secondAuditSwitch)===1?"multi":"single",firstReviewers:T==="edit"?a((B==null?void 0:B.firstAuditUsers)||[]):[],secondReviewers:T==="edit"?a((B==null?void 0:B.secondAuditUsers)||[]):[],knowledgeType:"\u77E5\u8BC6\u5E93"},l=async(d,A,K)=>{switch(d){case"form:ready":{A!=null&&A.formRef&&(c.current=A.formRef);break}case"form:change":{const L=c.current;if(!(L!=null&&L.getValue))break;const ee=await L.getValue("flowType"),V=dr(ee)==="multi";Be(j=>j===V?j:V);break}case"form:submit":{Ee((A==null?void 0:A.values)??{});break}case"multiTagSelector:add":{const L=A==null?void 0:A.fieldName,ee=c.current,V=ee==null?void 0:ee.form;if(!L||!(V!=null&&V.getFieldValue)){r==null||r(`reviewsetting_form_${d}`,A,K);return}const j=V.getFieldValue(L),m=(Array.isArray(j)?j:[]).map(b=>({id:gr((b==null?void 0:b.id)||(b==null?void 0:b.value)||(b==null?void 0:b.key)||(b==null?void 0:b.label)),userId:nt((b==null?void 0:b.id)||(b==null?void 0:b.value)||(b==null?void 0:b.key)||(b==null?void 0:b.label)),label:String((b==null?void 0:b.label)||(b==null?void 0:b.id)||""),type:"user",subLabel:String((b==null?void 0:b.subLabel)||"\u6B64\u5904\u662F\u90E8\u95E8\u540D\u79F0")}));Oe(L),vt(m),ze(!0);break}}r==null||r(`reviewsetting_form_${d}`,A,K)};return{label:"",model:null,defaultActiveId:"review-setting-form",views:[{id:"review-setting-form",label:"",type:"form",size:"md",formWidth:"800px",formConfig:{layout:"vertical",showReset:!1,showSubmit:!1,onSubmit:()=>{}}}],dataSource:[{id:"review-setting-form",title:"",description:"",fields:[{id:"enabled",name:"enabled",label:"\u542F\u7528\u77E5\u8BC6\u5E93\u6587\u4EF6\u72EC\u7ACB\u5BA1\u6838",type:"switch",required:!1},{id:"enterpriseName",name:"enterpriseName",label:"\u77E5\u8BC6\u5E93",type:"select",required:!0,error:"\u8BF7\u81F3\u5C11\u9009\u62E9 1 \u4E2A\u77E5\u8BC6\u5E93",placeholder:"\u8BF7\u9009\u62E9\uFF08\u591A\u9009\uFF09",multiple:!0,options:Y.map(d=>({label:d.kbName,value:d.id}))},{id:"reviewScope",name:"reviewScope",label:"\u5BA1\u6838\u8303\u56F4",type:"checkbox",required:!0,error:"\u8BF7\u81F3\u5C11\u9009\u62E9 1 \u9879\u5BA1\u6838\u8303\u56F4",options:[{label:"\u4E0A\u4F20",value:1},{label:"\u5220\u9664",value:2}]},{id:"flowType",name:"flowType",label:"\u5BA1\u6838\u6D41\u7A0B\u8303\u56F4",type:"radio",required:!0,error:"\u8BF7\u9009\u62E9\u5BA1\u6838\u6D41\u7A0B\u8303\u56F4",options:[{label:"\u5355\u6B21\u5BA1\u6838",value:"single"},{label:"\u7ECF\u529E\u590D\u6838",value:"multi"}],defaultValue:"single"},{id:"firstReviewers",name:"firstReviewers",label:"\u521D\u5BA1\u4EBA\u5458",description:"\uFF08\u81F3\u5C11 1 \u540D\uFF0C\u6700\u591A 100 \u540D\uFF09",type:"multiTagSelector",required:!0,error:"\u8BF7\u81F3\u5C11\u9009\u62E9 1 \u540D\u521D\u5BA1\u4EBA\u5458",multiTagSelectorConfig:{minCount:1,maxCount:100,addButtonLabel:"\u65B0\u589E\u4EBA\u5458"}},...Ze?[{id:"secondReviewers",name:"secondReviewers",label:"\u590D\u5BA1\u4EBA\u5458",description:"\uFF08\u81F3\u5C11 1 \u540D\uFF0C\u6700\u591A 100 \u540D\uFF09",type:"multiTagSelector",required:!0,error:"\u8BF7\u81F3\u5C11\u9009\u62E9 1 \u540D\u590D\u5BA1\u4EBA\u5458",multiTagSelectorConfig:{minCount:1,maxCount:100,addButtonLabel:"\u65B0\u589E\u4EBA\u5458"}}]:[]],defaultValues:u}],eventsEmit:l,styles:Fe,CustomComponents:y,contentPadding:"0px"}},[y,B,g,r,T,Ee,Fe,Y,Ze]),oe(()=>{const i=Je,a=c.current,u=a==null?void 0:a.form;if(!i||!(u!=null&&u.setFieldValue)){ze(!1);return}const l=Ye.filter(d=>d.type==="user").slice(0,100).map(d=>({id:d.userId||nt(d.id),label:d.label,subLabel:d.subLabel||"\u6B64\u5904\u662F\u90E8\u95E8\u540D\u79F0"}));u.setFieldValue(i,l),ze(!1),Oe(null)},[Je,Ye]),e(_t,{title:E(Q==="list"?"dashboard.title":T==="create"?"pages.createTitle":"pages.editTitle"),description:Q==="list"?E("dashboard.description"):"",goBack:Q==="list"?void 0:he,styles:Fe,CustomComponents:y,children:Q==="list"?v(fr,{className:"reviewsetting-wrapper",children:[e("div",{className:"reviewsetting-tips-container px-[18px]",children:v(hr,{className:"reviewsetting-tips",children:[v(wr,{className:"reviewsetting-tips-left",children:[e(mr,{className:"reviewsetting-tips-title",children:E("tips.title")}),v(br,{className:"reviewsetting-tips-desc",children:[e("span",{className:"reviewsetting-tips-info-icon",children:"i"}),e("span",{className:"reviewsetting-tips-desc-text",children:E("tips.description")})]})]}),v(yr,{className:"reviewsetting-tips-right",children:[v(ot,{className:"reviewsetting-switch-item",children:[e("span",{className:"reviewsetting-switch-label",children:E("tips.uploadReviewToggle")}),v("label",{className:"reviewsetting-switch",children:[e("input",{type:"checkbox",checked:yt,onChange:i=>{const a=i.target.checked;Ve(a),r==null||r("reviewsetting_tips_upload_review_toggle_changed",{checked:a},null)}}),e("span",{className:"reviewsetting-switch-slider"})]})]}),v(ot,{className:"reviewsetting-switch-item",children:[e("span",{className:"reviewsetting-switch-label",children:E("tips.deleteReviewToggle")}),v("label",{className:"reviewsetting-switch",children:[e("input",{type:"checkbox",checked:At,onChange:i=>{const a=i.target.checked;je(a),r==null||r("reviewsetting_tips_delete_review_toggle_changed",{checked:a},null)}}),e("span",{className:"reviewsetting-switch-slider"})]})]})]})]})}),e(Ar,{className:"reviewsetting-table-wrap",children:e(Dt,{...Et},`review-setting-table-${we}-${me}-${be}-${n}`)})]}):e(vr,{className:"reviewsetting-form-wrap",children:e(cr,{mode:T,id:T==="edit"&&g||void 0,url:S,token:N,role:z,eventsEmit:p,onCancel:he,onSuccess:()=>{P(i=>i+1),he()}})})})}function Ur({locale:t="zh",messages:o,...p}){return e(jt,{locale:t,messages:o,children:e(pr,{...p})})}const fr=C.div.attrs({className:"reviewsetting-wrapper"})`
|
|
138
|
+
width: 100%;
|
|
139
|
+
flex: 1 1 0;
|
|
140
|
+
min-height: 0;
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
gap: 12px;
|
|
144
|
+
|
|
145
|
+
border-radius: ${({theme:t})=>{var o,p;return((o=t.space)==null?void 0:o.dashboardContentRadius)??((p=t.space)==null?void 0:p.radius)??"8px"}};
|
|
146
|
+
background: ${({theme:t})=>{var o,p;return((o=t.colors)==null?void 0:o.dashboardMainBackground)??((p=t.colors)==null?void 0:p.background)??"#fff"}};
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
`,hr=C.div.attrs({className:"reviewsetting-tips"})`
|
|
149
|
+
width: 100%;
|
|
150
|
+
box-sizing: border-box;
|
|
151
|
+
padding: 10px 12px;
|
|
152
|
+
margin: 12px 0;
|
|
153
|
+
border-radius: 10px;
|
|
154
|
+
border: 1px solid rgba(226, 232, 240, 0.95);
|
|
155
|
+
background: rgba(248, 250, 252, 1);
|
|
156
|
+
color: rgba(15, 23, 42, 0.78);
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
gap: 16px;
|
|
161
|
+
flex-wrap: wrap;
|
|
162
|
+
`,wr=C.div.attrs({className:"reviewsetting-tips-left"})`
|
|
163
|
+
flex: 1 1 420px;
|
|
164
|
+
min-width: 320px;
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
gap: 12px;
|
|
168
|
+
min-height: 32px;
|
|
169
|
+
`,mr=C.div.attrs({className:"reviewsetting-tips-title"})`
|
|
170
|
+
flex: 0 0 auto;
|
|
171
|
+
font-size: 14px;
|
|
172
|
+
font-weight: 600;
|
|
173
|
+
color: rgba(15, 23, 42, 0.92);
|
|
174
|
+
white-space: nowrap;
|
|
175
|
+
`,br=C.div.attrs({className:"reviewsetting-tips-desc"})`
|
|
176
|
+
flex: 1 1 auto;
|
|
177
|
+
min-width: 0;
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
gap: 8px;
|
|
181
|
+
font-size: 12px;
|
|
182
|
+
line-height: 18px;
|
|
183
|
+
color: rgba(71, 85, 105, 1);
|
|
184
|
+
|
|
185
|
+
& .reviewsetting-tips-desc-text {
|
|
186
|
+
display: block;
|
|
187
|
+
min-width: 0;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
text-overflow: ellipsis;
|
|
190
|
+
white-space: nowrap;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
& .reviewsetting-tips-info-icon {
|
|
194
|
+
flex: 0 0 auto;
|
|
195
|
+
width: 16px;
|
|
196
|
+
height: 16px;
|
|
197
|
+
border-radius: 50%;
|
|
198
|
+
display: inline-flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
justify-content: center;
|
|
201
|
+
font-size: 12px;
|
|
202
|
+
font-weight: 700;
|
|
203
|
+
color: rgba(71, 85, 105, 1);
|
|
204
|
+
background: rgba(226, 232, 240, 1);
|
|
205
|
+
}
|
|
206
|
+
`,yr=C.div.attrs({className:"reviewsetting-tips-right"})`
|
|
207
|
+
flex: 0 0 auto;
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
gap: 18px;
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
`,ot=C.div.attrs({className:"reviewsetting-switch-item"})`
|
|
213
|
+
display: inline-flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
gap: 10px;
|
|
216
|
+
|
|
217
|
+
& .reviewsetting-switch-label {
|
|
218
|
+
font-size: 12px;
|
|
219
|
+
color: rgba(51, 65, 85, 1);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* 轻量自定义 switch,视觉更贴近截图 */
|
|
223
|
+
& .reviewsetting-switch {
|
|
224
|
+
position: relative;
|
|
225
|
+
width: 44px;
|
|
226
|
+
height: 22px;
|
|
227
|
+
display: inline-flex;
|
|
228
|
+
align-items: center;
|
|
229
|
+
}
|
|
230
|
+
& .reviewsetting-switch input {
|
|
231
|
+
opacity: 0;
|
|
232
|
+
width: 0;
|
|
233
|
+
height: 0;
|
|
234
|
+
}
|
|
235
|
+
& .reviewsetting-switch-slider {
|
|
236
|
+
position: absolute;
|
|
237
|
+
inset: 0;
|
|
238
|
+
border-radius: 999px;
|
|
239
|
+
background: rgba(203, 213, 225, 1);
|
|
240
|
+
transition: background 0.18s ease;
|
|
241
|
+
box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
|
|
242
|
+
}
|
|
243
|
+
& .reviewsetting-switch-slider::before {
|
|
244
|
+
content: '';
|
|
245
|
+
position: absolute;
|
|
246
|
+
width: 18px;
|
|
247
|
+
height: 18px;
|
|
248
|
+
left: 2px;
|
|
249
|
+
top: 2px;
|
|
250
|
+
border-radius: 999px;
|
|
251
|
+
background: #fff;
|
|
252
|
+
transition: transform 0.18s ease;
|
|
253
|
+
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
|
|
254
|
+
}
|
|
255
|
+
& .reviewsetting-switch input:checked + .reviewsetting-switch-slider {
|
|
256
|
+
background: rgba(29, 112, 245, 1);
|
|
257
|
+
box-shadow: inset 0 0 0 1px rgba(29, 112, 245, 0.35);
|
|
258
|
+
}
|
|
259
|
+
& .reviewsetting-switch input:checked + .reviewsetting-switch-slider::before {
|
|
260
|
+
transform: translateX(22px);
|
|
261
|
+
}
|
|
262
|
+
`,Ar=C.div.attrs({className:"reviewsetting-table-wrap"})`
|
|
263
|
+
width: 100%;
|
|
264
|
+
flex: 1 1 0;
|
|
265
|
+
min-height: 0;
|
|
266
|
+
display: flex;
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
overflow: hidden;
|
|
269
|
+
|
|
270
|
+
& > .xviewer-container {
|
|
271
|
+
min-height: 0;
|
|
272
|
+
flex: 1 1 0;
|
|
273
|
+
}
|
|
274
|
+
& .xviewer-content-area,
|
|
275
|
+
& .xviewer-table-loading-wrap {
|
|
276
|
+
min-height: 0;
|
|
277
|
+
}
|
|
278
|
+
`,vr=C.div.attrs({className:"reviewsetting-form-wrap"})`
|
|
279
|
+
width: 100%;
|
|
280
|
+
flex: 1 1 0;
|
|
281
|
+
min-height: 0;
|
|
282
|
+
display: flex;
|
|
283
|
+
flex-direction: column;
|
|
284
|
+
align-items: center;
|
|
285
|
+
box-sizing: border-box;
|
|
286
|
+
background: white;
|
|
287
|
+
overflow: hidden;
|
|
288
|
+
`;C.div.attrs({className:"reviewsetting-form-centered"})`
|
|
289
|
+
width: 100%;
|
|
290
|
+
max-width: 800px;
|
|
291
|
+
margin: 0 auto;
|
|
292
|
+
flex: 1 1 0;
|
|
293
|
+
min-height: 0;
|
|
294
|
+
display: flex;
|
|
295
|
+
flex-direction: column;
|
|
296
|
+
|
|
297
|
+
& > .xviewer-container {
|
|
298
|
+
width: 100%;
|
|
299
|
+
max-width: 800px;
|
|
300
|
+
min-height: 0;
|
|
301
|
+
flex: 1 1 0;
|
|
302
|
+
display: flex;
|
|
303
|
+
flex-direction: column;
|
|
304
|
+
overflow: hidden;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* DynamicForm(antd Form):首项为开关行,其余项落在同一浅灰底块内 */
|
|
308
|
+
& .zui-dynamic-form-wrapper form.ant-form {
|
|
309
|
+
display: flex;
|
|
310
|
+
flex-direction: column;
|
|
311
|
+
gap: 0;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
& .zui-dynamic-form-wrapper form.ant-form > .ant-form-item:first-child {
|
|
315
|
+
background: transparent;
|
|
316
|
+
margin-bottom: 0 !important;
|
|
317
|
+
padding: 12px;
|
|
318
|
+
border-radius: 8px;
|
|
319
|
+
background: rgba(248, 250, 252, 1);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
& .zui-dynamic-form-wrapper form.ant-form > .ant-form-item:nth-child(n + 2) {
|
|
323
|
+
|
|
324
|
+
margin-bottom: 0 !important;
|
|
325
|
+
padding: 12px 16px;
|
|
326
|
+
border-radius: 0;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* 灰底区首行:仅当后面还有表单项时保留上圆角 */
|
|
330
|
+
& .zui-dynamic-form-wrapper form.ant-form > .ant-form-item:nth-child(2):not(:last-child) {
|
|
331
|
+
border-radius: 8px 8px 0 0;
|
|
332
|
+
padding-top: 16px;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* 仅「开关 + 一项」时:整段灰底为一块圆角 */
|
|
336
|
+
& .zui-dynamic-form-wrapper form.ant-form > .ant-form-item:nth-child(2):last-child {
|
|
337
|
+
border-radius: 8px;
|
|
338
|
+
padding-top: 16px;
|
|
339
|
+
padding-bottom: 16px;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* 灰底区末行(三项及以上时) */
|
|
343
|
+
& .zui-dynamic-form-wrapper form.ant-form > .ant-form-item:last-child:not(:first-child):not(:nth-child(2)) {
|
|
344
|
+
border-radius: 0 0 8px 8px;
|
|
345
|
+
padding-bottom: 16px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
& .zui-dynamic-form-wrapper form.ant-form > .ant-form-item:nth-child(n + 2):not(:last-child) {
|
|
349
|
+
border-bottom: 1px solid rgba(226, 232, 240, 0.7);
|
|
350
|
+
}
|
|
351
|
+
`;C.div.attrs({className:"reviewsetting-form-footer-bar"})`
|
|
352
|
+
width: 100%;
|
|
353
|
+
flex: 0 0 auto;
|
|
354
|
+
background: #fff;
|
|
355
|
+
border-top: 1px solid rgba(226, 232, 240, 0.95);
|
|
356
|
+
padding: 12px 20px;
|
|
357
|
+
box-sizing: border-box;
|
|
358
|
+
`;C.div.attrs({className:"reviewsetting-form-footer-inner"})`
|
|
359
|
+
width: 100%;
|
|
360
|
+
display: flex;
|
|
361
|
+
justify-content: flex-end;
|
|
362
|
+
align-items: center;
|
|
363
|
+
gap: 12px;
|
|
364
|
+
`;C.div.attrs({className:"reviewsetting-form-card"})`
|
|
365
|
+
width: 100%;
|
|
366
|
+
flex: 1 1 0;
|
|
367
|
+
min-height: 360px;
|
|
368
|
+
border-radius: 10px;
|
|
369
|
+
background: #fff;
|
|
370
|
+
border: 1px solid rgba(226, 232, 240, 0.95);
|
|
371
|
+
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
|
|
372
|
+
padding: 18px 18px 14px 18px;
|
|
373
|
+
display: flex;
|
|
374
|
+
flex-direction: column;
|
|
375
|
+
overflow: hidden;
|
|
376
|
+
`;C.div.attrs({className:"reviewsetting-form-inner"})`
|
|
377
|
+
width: 100%;
|
|
378
|
+
flex: 1 1 0;
|
|
379
|
+
min-height: 0;
|
|
380
|
+
display: flex;
|
|
381
|
+
flex-direction: column;
|
|
382
|
+
`;C.div.attrs({className:"reviewsetting-xviewer-form-root"})`
|
|
383
|
+
width: 100%;
|
|
384
|
+
flex: 1 1 0;
|
|
385
|
+
min-height: 0;
|
|
386
|
+
overflow-y: auto;
|
|
387
|
+
display: flex;
|
|
388
|
+
flex-direction: column;
|
|
389
|
+
|
|
390
|
+
& > .xviewer-container {
|
|
391
|
+
min-height: 0;
|
|
392
|
+
flex: 1 1 0;
|
|
393
|
+
}
|
|
394
|
+
& .xviewer-content-area {
|
|
395
|
+
min-height: 280px;
|
|
396
|
+
}
|
|
397
|
+
& .zui-dynamic-form-wrapper {
|
|
398
|
+
height: auto !important;
|
|
399
|
+
min-height: 240px;
|
|
400
|
+
}
|
|
401
|
+
`;C.div.attrs({className:"reviewsetting-form-body"})`
|
|
402
|
+
flex: 1 1 0;
|
|
403
|
+
min-height: 0;
|
|
404
|
+
overflow-y: auto;
|
|
405
|
+
padding-bottom: 12px;
|
|
406
|
+
`;C.div.attrs({className:"reviewsetting-form-footer"})`
|
|
407
|
+
flex: 0 0 auto;
|
|
408
|
+
padding-top: 12px;
|
|
409
|
+
margin-top: 8px;
|
|
410
|
+
border-top: 1px solid rgba(226, 232, 240, 0.95);
|
|
411
|
+
display: flex;
|
|
412
|
+
justify-content: flex-end;
|
|
413
|
+
gap: 24px;
|
|
414
|
+
background: #fff;
|
|
415
|
+
`;const Ge=({placeholder:t,value:o,onAction:p,size:y="md"})=>v("div",{className:"reviewsetting-toolbar-search",style:{height:y==="sm"?32:36,display:"flex",alignItems:"center",gap:8,padding:"0 10px",borderRadius:10,border:"1px solid rgba(226,232,240,0.95)",background:"#fff",boxShadow:"0 1px 2px rgba(15,23,42,0.04)"},children:[e(Mt,{size:14}),e("input",{value:o||"",placeholder:t,onChange:N=>p==null?void 0:p("change",{value:N.target.value}),style:{border:"none",outline:"none",fontSize:13,width:180,color:"#0f172a",background:"transparent"}})]});export{Ur as R,jt as a,Vt as u};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c as t}from"./createLucideIcon-Bj5DlX2s.js";/**
|
|
2
|
+
* @license lucide-react v0.456.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const h=t("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);export{h as C};
|
package/assets/database.svg
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<svg width="40" height="41" viewBox="0 0 40 41" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect y="0.5" width="40" height="40" rx="2.85714" fill="white"/>
|
|
3
|
-
<path d="M7.1449 25.1108C8.7449 26.6994 11.9899 27.8784 17.4232 28.0669L17.432 28.1255C17.9138 30.5391 19.3276 32.6659 21.3666 34.0444H19.0551C11.1338 34.0444 6.50102 32.1563 6.50037 29.8784V26.3999C6.51198 26.152 6.57486 25.9089 6.68591 25.687C6.79696 25.4652 6.95352 25.2687 7.1449 25.1108ZM26.3461 18.1665C28.4483 18.1718 30.4632 19.009 31.9496 20.4956C33.4361 21.9823 34.2728 23.9977 34.2777 26.1001C34.2776 30.4884 30.7229 34.0325 26.3451 34.0327C21.9671 34.0327 18.4117 30.4781 18.4115 26.1001C18.4115 21.722 21.967 18.1665 26.3451 18.1665H26.3461ZM26.976 22.5239C26.786 22.3341 26.4924 22.3101 26.2767 22.4526L26.1898 22.5239L22.8568 25.8569C22.6399 26.0739 22.6399 26.4261 22.8568 26.6431C23.0738 26.8599 23.426 26.8599 23.6429 26.6431L26.0297 24.2563V29.5835C26.0298 29.8901 26.2787 30.138 26.5853 30.1382C26.892 30.1381 27.1409 29.8901 27.141 29.5835V24.2612L29.5238 26.6431C29.7408 26.8598 30.093 26.8599 30.3099 26.6431C30.5266 26.4262 30.5266 26.0738 30.3099 25.8569L26.976 22.5239ZM7.12244 16.1675C8.93285 17.8894 12.5231 19.1558 18.8783 19.1558H19.3783C17.9451 20.8109 17.1557 22.9224 17.1556 25.1108V25.1128C10.4122 24.8346 6.50134 23.0455 6.50134 20.9341V17.4565C6.50818 17.2101 6.56707 16.9676 6.67419 16.7456C6.78134 16.5236 6.93379 16.3262 7.12244 16.1675ZM18.4779 6.25635C26.0998 6.25635 31.3109 8.14508 31.3109 10.4565V12.978C31.3108 15.2999 26.0445 17.1782 18.4779 17.1782C10.9114 17.1782 6.50049 15.2998 6.50037 12.978V10.4565C6.50037 8.15655 10.8561 6.25636 18.4779 6.25635Z" fill="black"/>
|
|
4
|
-
<path d="M7.1449 25.1108C8.7449 26.6994 11.9899 27.8784 17.4232 28.0669L17.432 28.1255C17.9138 30.5391 19.3276 32.6659 21.3666 34.0444H19.0551C11.1338 34.0444 6.50102 32.1563 6.50037 29.8784V26.3999C6.51198 26.152 6.57486 25.9089 6.68591 25.687C6.79696 25.4652 6.95352 25.2687 7.1449 25.1108ZM26.3461 18.1665C28.4483 18.1718 30.4632 19.009 31.9496 20.4956C33.4361 21.9823 34.2728 23.9977 34.2777 26.1001C34.2776 30.4884 30.7229 34.0325 26.3451 34.0327C21.9671 34.0327 18.4117 30.4781 18.4115 26.1001C18.4115 21.722 21.967 18.1665 26.3451 18.1665H26.3461ZM26.976 22.5239C26.786 22.3341 26.4924 22.3101 26.2767 22.4526L26.1898 22.5239L22.8568 25.8569C22.6399 26.0739 22.6399 26.4261 22.8568 26.6431C23.0738 26.8599 23.426 26.8599 23.6429 26.6431L26.0297 24.2563V29.5835C26.0298 29.8901 26.2787 30.138 26.5853 30.1382C26.892 30.1381 27.1409 29.8901 27.141 29.5835V24.2612L29.5238 26.6431C29.7408 26.8598 30.093 26.8599 30.3099 26.6431C30.5266 26.4262 30.5266 26.0738 30.3099 25.8569L26.976 22.5239ZM7.12244 16.1675C8.93285 17.8894 12.5231 19.1558 18.8783 19.1558H19.3783C17.9451 20.8109 17.1557 22.9224 17.1556 25.1108V25.1128C10.4122 24.8346 6.50134 23.0455 6.50134 20.9341V17.4565C6.50818 17.2101 6.56707 16.9676 6.67419 16.7456C6.78134 16.5236 6.93379 16.3262 7.12244 16.1675ZM18.4779 6.25635C26.0998 6.25635 31.3109 8.14508 31.3109 10.4565V12.978C31.3108 15.2999 26.0445 17.1782 18.4779 17.1782C10.9114 17.1782 6.50049 15.2998 6.50037 12.978V10.4565C6.50037 8.15655 10.8561 6.25636 18.4779 6.25635Z" fill="url(#paint0_linear_4121_494)"/>
|
|
5
|
-
<defs>
|
|
6
|
-
<linearGradient id="paint0_linear_4121_494" x1="37.7503" y1="36.1288" x2="12.5292" y2="20.8801" gradientUnits="userSpaceOnUse">
|
|
7
|
-
<stop stop-color="#7FC0FB"/>
|
|
8
|
-
<stop offset="1" stop-color="#4088F4"/>
|
|
9
|
-
</linearGradient>
|
|
10
|
-
</defs>
|
|
11
|
-
</svg>
|
|
1
|
+
<svg width="40" height="41" viewBox="0 0 40 41" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect y="0.5" width="40" height="40" rx="2.85714" fill="white"/>
|
|
3
|
+
<path d="M7.1449 25.1108C8.7449 26.6994 11.9899 27.8784 17.4232 28.0669L17.432 28.1255C17.9138 30.5391 19.3276 32.6659 21.3666 34.0444H19.0551C11.1338 34.0444 6.50102 32.1563 6.50037 29.8784V26.3999C6.51198 26.152 6.57486 25.9089 6.68591 25.687C6.79696 25.4652 6.95352 25.2687 7.1449 25.1108ZM26.3461 18.1665C28.4483 18.1718 30.4632 19.009 31.9496 20.4956C33.4361 21.9823 34.2728 23.9977 34.2777 26.1001C34.2776 30.4884 30.7229 34.0325 26.3451 34.0327C21.9671 34.0327 18.4117 30.4781 18.4115 26.1001C18.4115 21.722 21.967 18.1665 26.3451 18.1665H26.3461ZM26.976 22.5239C26.786 22.3341 26.4924 22.3101 26.2767 22.4526L26.1898 22.5239L22.8568 25.8569C22.6399 26.0739 22.6399 26.4261 22.8568 26.6431C23.0738 26.8599 23.426 26.8599 23.6429 26.6431L26.0297 24.2563V29.5835C26.0298 29.8901 26.2787 30.138 26.5853 30.1382C26.892 30.1381 27.1409 29.8901 27.141 29.5835V24.2612L29.5238 26.6431C29.7408 26.8598 30.093 26.8599 30.3099 26.6431C30.5266 26.4262 30.5266 26.0738 30.3099 25.8569L26.976 22.5239ZM7.12244 16.1675C8.93285 17.8894 12.5231 19.1558 18.8783 19.1558H19.3783C17.9451 20.8109 17.1557 22.9224 17.1556 25.1108V25.1128C10.4122 24.8346 6.50134 23.0455 6.50134 20.9341V17.4565C6.50818 17.2101 6.56707 16.9676 6.67419 16.7456C6.78134 16.5236 6.93379 16.3262 7.12244 16.1675ZM18.4779 6.25635C26.0998 6.25635 31.3109 8.14508 31.3109 10.4565V12.978C31.3108 15.2999 26.0445 17.1782 18.4779 17.1782C10.9114 17.1782 6.50049 15.2998 6.50037 12.978V10.4565C6.50037 8.15655 10.8561 6.25636 18.4779 6.25635Z" fill="black"/>
|
|
4
|
+
<path d="M7.1449 25.1108C8.7449 26.6994 11.9899 27.8784 17.4232 28.0669L17.432 28.1255C17.9138 30.5391 19.3276 32.6659 21.3666 34.0444H19.0551C11.1338 34.0444 6.50102 32.1563 6.50037 29.8784V26.3999C6.51198 26.152 6.57486 25.9089 6.68591 25.687C6.79696 25.4652 6.95352 25.2687 7.1449 25.1108ZM26.3461 18.1665C28.4483 18.1718 30.4632 19.009 31.9496 20.4956C33.4361 21.9823 34.2728 23.9977 34.2777 26.1001C34.2776 30.4884 30.7229 34.0325 26.3451 34.0327C21.9671 34.0327 18.4117 30.4781 18.4115 26.1001C18.4115 21.722 21.967 18.1665 26.3451 18.1665H26.3461ZM26.976 22.5239C26.786 22.3341 26.4924 22.3101 26.2767 22.4526L26.1898 22.5239L22.8568 25.8569C22.6399 26.0739 22.6399 26.4261 22.8568 26.6431C23.0738 26.8599 23.426 26.8599 23.6429 26.6431L26.0297 24.2563V29.5835C26.0298 29.8901 26.2787 30.138 26.5853 30.1382C26.892 30.1381 27.1409 29.8901 27.141 29.5835V24.2612L29.5238 26.6431C29.7408 26.8598 30.093 26.8599 30.3099 26.6431C30.5266 26.4262 30.5266 26.0738 30.3099 25.8569L26.976 22.5239ZM7.12244 16.1675C8.93285 17.8894 12.5231 19.1558 18.8783 19.1558H19.3783C17.9451 20.8109 17.1557 22.9224 17.1556 25.1108V25.1128C10.4122 24.8346 6.50134 23.0455 6.50134 20.9341V17.4565C6.50818 17.2101 6.56707 16.9676 6.67419 16.7456C6.78134 16.5236 6.93379 16.3262 7.12244 16.1675ZM18.4779 6.25635C26.0998 6.25635 31.3109 8.14508 31.3109 10.4565V12.978C31.3108 15.2999 26.0445 17.1782 18.4779 17.1782C10.9114 17.1782 6.50049 15.2998 6.50037 12.978V10.4565C6.50037 8.15655 10.8561 6.25636 18.4779 6.25635Z" fill="url(#paint0_linear_4121_494)"/>
|
|
5
|
+
<defs>
|
|
6
|
+
<linearGradient id="paint0_linear_4121_494" x1="37.7503" y1="36.1288" x2="12.5292" y2="20.8801" gradientUnits="userSpaceOnUse">
|
|
7
|
+
<stop stop-color="#7FC0FB"/>
|
|
8
|
+
<stop offset="1" stop-color="#4088F4"/>
|
|
9
|
+
</linearGradient>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|