@gientech/modual 2.2.39 → 2.2.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "MIT",
4
4
  "style": "assets/style.css",
5
5
  "private": false,
6
- "version": "2.2.39",
6
+ "version": "2.2.41",
7
7
  "author": "hanfeng_Zhang",
8
8
  "type": "module",
9
9
  "main": "index.js",
package/sensitive.js CHANGED
@@ -1,20 +1,20 @@
1
- import{jsxs as w,jsx as s,Fragment as we}from"react/jsx-runtime";import{useState as $,useRef as he,useEffect as be,useCallback as I,useMemo as ee}from"react";import F from"styled-components";import{message as b,Input as ce,Modal as de,Dropdown as Fe,Upload as ke,Form as le}from"antd";import{Xviwer as Ce}from"@mxmweb/xviewer";import{defaultTheme as ue,Button as P,useTheme as Se,deepMergeTheme as ge,DashboardContainer as _e}from"@mxmweb/zui";import Ie from"axios";import{u as te,i as J,S as $e}from"./assets/i18n-BMTusWgX.js";import{a as yt,g as vt}from"./assets/i18n-BMTusWgX.js";import{C as Le}from"./assets/circle-plus-RlDPoPkb.js";import{c as xe}from"./assets/createLucideIcon-Bj5DlX2s.js";import{S as ye}from"./assets/search-CEuIa9-_.js";import{X as De}from"./assets/x-CdZQbi--.js";import{P as ve}from"./assets/plus-B679mjyt.js";/* empty css *//**
1
+ import{jsxs as B,jsx as s,Fragment as Ee}from"react/jsx-runtime";import ue,{useState as _,useRef as Ce,useEffect as be,useCallback as k,useMemo as ee}from"react";import v from"styled-components";import{message as b,Upload as Ae,Input as de,Modal as pe,Dropdown as we,Form as ce}from"antd";import{Xviwer as ye}from"@mxmweb/xviewer";import{defaultTheme as Fe,Button as z,useTheme as Se,deepMergeTheme as ge,DashboardContainer as ke}from"@mxmweb/zui";import _e from"axios";import{C as Te}from"./assets/circle-plus-RlDPoPkb.js";import{c as De}from"./assets/createLucideIcon-Bj5DlX2s.js";import{S as xe}from"./assets/search-CEuIa9-_.js";import{X as Le}from"./assets/x-CdZQbi--.js";import{P as Be}from"./assets/plus-B679mjyt.js";/* empty css *//**
2
2
  * @license lucide-react v0.456.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Ae=xe("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);/**
6
+ */const Ie=De("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);/**
7
7
  * @license lucide-react v0.456.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const me=xe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Te=["10014"],Me=({url:e,token:d,role:x,getMessage:y})=>{const c=(a,i)=>y?y(a):i,r=Ie.create({baseURL:e,timeout:1e6});return r.interceptors.request.use(a=>{let i=d;if(!i&&!["user/login","user/kaptcha","user/regist"].some(p=>a.url.includes(p))){window.location.pathname="/login";return}return a.headers.Authorization=i||"",a.headers.userName=x==="\u672A\u767B\u5F55\u7528\u6237"?"":x,a}),r.interceptors.response.use(a=>{const i=["user/kaptcha"],l=a.data;if(i.some(g=>a.config.url&&a.config.url.includes(g))||l.size&&l.type)return l;const{success:p,errorMsg:k,errorCode:B}=l;return Te.includes(B)||p?l:(b.error(k||c("server.requestError","\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")),!1)},a=>{var i,l,p,k,B,g,S,W,E,V;a.message!=="canceled"&&((((l=(i=a==null?void 0:a.response)==null?void 0:i.data)==null?void 0:l.errorCode)==="30013"||((k=(p=a==null?void 0:a.response)==null?void 0:p.data)==null?void 0:k.errorCode)==="30023")&&b.error((((B=a==null?void 0:a.response)==null?void 0:B.data)||{}).errorMsg||c("server.requestError","\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")),((g=a==null?void 0:a.response)==null?void 0:g.status)===401&&(console.log("Error url:",(S=a==null?void 0:a.request)==null?void 0:S.responseURL),b.error((((W=a==null?void 0:a.response)==null?void 0:W.data)||{}).errorMsg||c("server.noPermission","\u6CA1\u6709\u8DB3\u591F\u6743\u9650"))),console.log("Error occurs",a),(((E=a==null?void 0:a.response)==null?void 0:E.data)||{}).errorMsg!="\u672A\u8BBE\u7F6E\u9ED8\u8BA4\u914D\u7F6E\uFF01"&&b.error((((V=a==null?void 0:a.response)==null?void 0:V.data)||{}).errorMsg||c("server.requestError","\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")))}),{getLibraryList:async a=>{try{const i=await r.get(`/sensitive/library?${new URLSearchParams(a).toString()}`),{success:l,data:p}=i;return l?p:!1}catch(i){return console.log("e",i),!1}},createLibrary:async a=>{try{const i=await r.post("/sensitive/library",a),{success:l,data:p}=i;return l?p:!1}catch(i){return console.log("e",i),!1}},deleteLibrary:async a=>{try{const i=await r.delete(`/sensitive/library/${a}`),{success:l,data:p}=i;return l?p:!1}catch(i){return console.log("e",i),!1}},updateLibrary:async(a,i)=>{try{const l=await r.put(`/sensitive/library/${a}`,i),{success:p,data:k}=l;return p?k:!1}catch(l){return console.log("e",l),!1}},downloadTemplate:async a=>{try{const i=await r.get("/sensitive/word/downloadTemplate",{params:{fileType:a},responseType:"blob"});return i&&typeof i.size=="number"?i:!1}catch(i){return console.log("e",i),!1}},importWords:async(a,i)=>{try{const l=new FormData;l.append("file",i);const p=await r.put(`/sensitive/word/${a}/import`,l);return p&&p.success!==!1?p:!1}catch(l){return console.log("e",l),!1}},getWords:async a=>{try{const i=await r.get(`/sensitive/library/${a}`),{success:l,data:p}=i;return l?p:!1}catch(i){return console.log("e",i),!1}},getLibraryData:async a=>{try{const i=await r.get(`/sensitive/library/${a}`),{success:l,data:p}=i;return l?p:!1}catch(i){return console.log("e",i),!1}}}},{Dragger:Be}=ke,R=16,ze=F.div.attrs({className:"sensitive-edit-page"})`
11
+ */const he=De("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),$e=["10014"],Me=({url:e,token:i,role:F,getMessage:f})=>{const c=(t,o)=>f?f(t):o,r=_e.create({baseURL:e,timeout:1e6});return r.interceptors.request.use(t=>{let o=i;if(!o&&!["user/login","user/kaptcha","user/regist"].some(p=>t.url.includes(p))){window.location.pathname="/login";return}return t.headers.Authorization=o||"",t.headers.userName=F==="\u672A\u767B\u5F55\u7528\u6237"?"":F,t}),r.interceptors.response.use(t=>{const o=["user/kaptcha"],l=t.data;if(o.some(g=>t.config.url&&t.config.url.includes(g))||l.size&&l.type)return l;const{success:p,errorMsg:E,errorCode:M}=l;return $e.includes(M)||p?l:(b.error(E||c("server.requestError","\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")),!1)},t=>{var o,l,p,E,M,g,y,N,R,q;t.message!=="canceled"&&((((l=(o=t==null?void 0:t.response)==null?void 0:o.data)==null?void 0:l.errorCode)==="30013"||((E=(p=t==null?void 0:t.response)==null?void 0:p.data)==null?void 0:E.errorCode)==="30023")&&b.error((((M=t==null?void 0:t.response)==null?void 0:M.data)||{}).errorMsg||c("server.requestError","\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")),((g=t==null?void 0:t.response)==null?void 0:g.status)===401&&(console.log("Error url:",(y=t==null?void 0:t.request)==null?void 0:y.responseURL),b.error((((N=t==null?void 0:t.response)==null?void 0:N.data)||{}).errorMsg||c("server.noPermission","\u6CA1\u6709\u8DB3\u591F\u6743\u9650"))),console.log("Error occurs",t),(((R=t==null?void 0:t.response)==null?void 0:R.data)||{}).errorMsg!="\u672A\u8BBE\u7F6E\u9ED8\u8BA4\u914D\u7F6E\uFF01"&&b.error((((q=t==null?void 0:t.response)==null?void 0:q.data)||{}).errorMsg||c("server.requestError","\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")))}),{getLibraryList:async t=>{try{const o=await r.get(`/sensitive/library?${new URLSearchParams(t).toString()}`),{success:l,data:p}=o;return l?p:!1}catch(o){return console.log("e",o),!1}},createLibrary:async t=>{try{const o=await r.post("/sensitive/library",t),{success:l,data:p}=o;return l?p:!1}catch(o){return console.log("e",o),!1}},deleteLibrary:async t=>{try{const o=await r.delete(`/sensitive/library/${t}`),{success:l,data:p}=o;return l?p:!1}catch(o){return console.log("e",o),!1}},updateLibrary:async(t,o)=>{try{const l=await r.put(`/sensitive/library/${t}`,o),{success:p,data:E}=l;return p?E:!1}catch(l){return console.log("e",l),!1}},downloadTemplate:async t=>{try{const o=await r.get("/sensitive/word/downloadTemplate",{params:{fileType:t},responseType:"blob"});return o&&typeof o.size=="number"?o:!1}catch(o){return console.log("e",o),!1}},importWords:async(t,o)=>{try{const l=new FormData;l.append("file",o);const p=await r.put(`/sensitive/word/${t}/import`,l);return p&&p.success!==!1?p:!1}catch(l){return console.log("e",l),!1}},getWords:async t=>{try{const o=await r.get(`/sensitive/library/${t}`),{success:l,data:p}=o;return l?p:!1}catch(o){return console.log("e",o),!1}},getLibraryData:async t=>{try{const o=await r.get(`/sensitive/library/${t}`),{success:l,data:p}=o;return l?p:!1}catch(o){return console.log("e",o),!1}}}},te={toolbar:{searchPlaceholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},tagCell:{viewAllTitle:"\u5171 {{total}} \u4E2A\uFF0C\u5F53\u524D\u4EC5\u5C55\u793A\u524D {{max}} \u4E2A",viewAllLink:"\u2026\u67E5\u770B\u5168\u90E8\uFF08+{{count}}\uFF09"},table:{label:"\u654F\u611F\u8BCD\u914D\u7F6E",viewLabel:"\u654F\u611F\u8BCD\u5E93\u5217\u8868",columns:{name:"\u540D\u79F0",sensitiveWords:"\u654F\u611F\u8BCD",createDate:"\u521B\u5EFA\u65E5\u671F",count:"\u6570\u91CF",actions:"\u64CD\u4F5C"},toolbar:{create:"\u65B0\u5EFA\u654F\u611F\u8BCD\u5E93",searchPlaceholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},actionEdit:"\u7F16\u8F91",actionDelete:"\u5220\u9664"},dashboard:{title:"\u654F\u611F\u8BCD\u5E93\u7BA1\u7406"},deleteConfirm:{title:"\u786E\u8BA4\u5220\u9664\u654F\u611F\u8BCD\u5E93\uFF1F",content:"\u5220\u9664\u540E\uFF0C\u8BE5\u654F\u611F\u8BCD\u5E93\u5C06\u65E0\u6CD5\u6062\u590D",okText:"\u5220\u9664",cancelText:"\u53D6\u6D88"},createModal:{title:"\u65B0\u5EFA\u654F\u611F\u8BCD\u5E93",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",nameRequired:"\u8BF7\u8F93\u5165\u654F\u611F\u8BCD\u5E93\u540D\u79F0!",namePlaceholder:"\u8BF7\u8F93\u5165"},message:{saveSuccess:"\u4FDD\u5B58\u6210\u529F",createSuccess:"\u65B0\u589E\u654F\u611F\u8BCD\u6210\u529F!",deleteSuccess:"\u5220\u9664\u6210\u529F",downloadTemplateFail:"\u6A21\u677F\u4E0B\u8F7D\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25"},downloadTemplateFilename:"\u654F\u611F\u8BCD\u6A21\u677F",editor:{maxLengthHint:"\u654F\u611F\u8BCD\u6700\u591A\u53EF\u8F93\u5165{{max}}\u4E2A\u5B57\u7B26",maxLengthWarning:"\u654F\u611F\u8BCD\u6700\u591A\u53EF\u8F93\u5165{{max}}\u4E2A\u5B57\u7B26",duplicateWarning:"\u5DF2\u5B58\u5728\u76F8\u540C\u654F\u611F\u8BCD",configTemplateHint:"\u8BF7\u914D\u7F6E\u6A21\u677F\u4E0B\u8F7D\u5730\u5740",selectFileWarning:"\u8BF7\u5148\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6",importFailRetry:"\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",importCountSuccess:"\u5DF2\u5BFC\u5165 {{count}} \u4E2A\u654F\u611F\u8BCD",parseFail:"\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u786E\u4FDD\u4E3A csv \u6216 txt \u683C\u5F0F",readFileFail:"\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25",searchPlaceholder:"\u8BF7\u8F93\u5165\u654F\u611F\u8BCD\u641C\u7D22",inputPlaceholder:"\u8BF7\u8F93\u5165",add:"\u6DFB\u52A0",import:"\u5BFC\u5165",cancel:"\u53D6\u6D88",save:"\u4FDD\u5B58",confirm:"\u786E\u8BA4",downloadTemplate:"\u4E0B\u8F7D\u6A21\u677F",uploadModalTitle:"\u4E0A\u4F20\u6587\u4EF6",uploadModalHint:"\u5148\u4E0B\u8F7D\u6A21\u677F\u540E\u4E0A\u4F20",uploadDragText:"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64\u5904\u4E0A\u4F20",uploadDragHint:"\u652F\u6301\u5355\u6B21\u4E0A\u4F20\uFF0C\u652F\u6301 csv\u3001txt \u683C\u5F0F\u3002",formatCsv:"csv",formatTxt:"txt"},server:{requestError:"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",noPermission:"\u6CA1\u6709\u8DB3\u591F\u6743\u9650"}},Pe={toolbar:{searchPlaceholder:"Enter keyword"},tagCell:{viewAllTitle:"{{total}} total, showing first {{max}}",viewAllLink:"\u2026View all (+{{count}})"},table:{label:"Sensitive words",viewLabel:"Sensitive word libraries",columns:{name:"Name",sensitiveWords:"Sensitive words",createDate:"Created",count:"Count",actions:"Actions"},toolbar:{create:"New library",searchPlaceholder:"Enter keyword"},actionEdit:"Edit",actionDelete:"Delete"},dashboard:{title:"Sensitive word libraries"},deleteConfirm:{title:"Delete this library?",content:"This library cannot be recovered after deletion.",okText:"Delete",cancelText:"Cancel"},createModal:{title:"New sensitive word library",cancel:"Cancel",confirm:"Confirm",nameRequired:"Please enter the library name.",namePlaceholder:"Enter name"},message:{saveSuccess:"Saved",createSuccess:"Library created.",deleteSuccess:"Deleted",downloadTemplateFail:"Template download failed",importSuccess:"Import succeeded",importFail:"Import failed"},downloadTemplateFilename:"sensitive-words-template",editor:{maxLengthHint:"Max {{max}} characters per word",maxLengthWarning:"Max {{max}} characters per word",duplicateWarning:"Duplicate word",configTemplateHint:"Please configure template download URL",selectFileWarning:"Please select a file first",importFailRetry:"Import failed, please retry",importCountSuccess:"Imported {{count}} words",parseFail:"Parse failed. Use csv or txt format.",readFileFail:"File read failed",searchPlaceholder:"Search sensitive words",inputPlaceholder:"Enter",add:"Add",import:"Import",cancel:"Cancel",save:"Save",confirm:"Confirm",downloadTemplate:"Download template",uploadModalTitle:"Upload file",uploadModalHint:"Download template first, then upload",uploadDragText:"Click or drag file here to upload",uploadDragHint:"Single file. csv or txt.",formatCsv:"csv",formatTxt:"txt"},server:{requestError:"Request failed, please try again.",noPermission:"Insufficient permission"}},ze={toolbar:{searchPlaceholder:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u5165\u529B"},tagCell:{viewAllTitle:"\u5168{{total}}\u4EF6\u3001\u5148\u982D{{max}}\u4EF6\u3092\u8868\u793A",viewAllLink:"\u2026\u3059\u3079\u3066\u8868\u793A\uFF08+{{count}}\uFF09"},table:{label:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9",viewLabel:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u30E9\u30A4\u30D6\u30E9\u30EA",columns:{name:"\u540D\u524D",sensitiveWords:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9",createDate:"\u4F5C\u6210\u65E5",count:"\u4EF6\u6570",actions:"\u64CD\u4F5C"},toolbar:{create:"\u65B0\u898F\u30E9\u30A4\u30D6\u30E9\u30EA",searchPlaceholder:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u5165\u529B"},actionEdit:"\u7DE8\u96C6",actionDelete:"\u524A\u9664"},dashboard:{title:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u7BA1\u7406"},deleteConfirm:{title:"\u3053\u306E\u30E9\u30A4\u30D6\u30E9\u30EA\u3092\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",content:"\u524A\u9664\u3059\u308B\u3068\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093\u3002",okText:"\u524A\u9664",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB"},createModal:{title:"\u65B0\u898F\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u30E9\u30A4\u30D6\u30E9\u30EA",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",confirm:"\u78BA\u8A8D",nameRequired:"\u30E9\u30A4\u30D6\u30E9\u30EA\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",namePlaceholder:"\u5165\u529B"},message:{saveSuccess:"\u4FDD\u5B58\u3057\u307E\u3057\u305F",createSuccess:"\u30E9\u30A4\u30D6\u30E9\u30EA\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002",deleteSuccess:"\u524A\u9664\u3057\u307E\u3057\u305F",downloadTemplateFail:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F",importSuccess:"\u30A4\u30F3\u30DD\u30FC\u30C8\u3057\u307E\u3057\u305F",importFail:"\u30A4\u30F3\u30DD\u30FC\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F"},downloadTemplateFilename:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",editor:{maxLengthHint:"1\u8A9E\u3042\u305F\u308A{{max}}\u6587\u5B57\u307E\u3067",maxLengthWarning:"1\u8A9E\u3042\u305F\u308A{{max}}\u6587\u5B57\u307E\u3067",duplicateWarning:"\u540C\u3058\u8A9E\u304C\u65E2\u306B\u3042\u308A\u307E\u3059",configTemplateHint:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9URL\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",selectFileWarning:"\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",importFailRetry:"\u30A4\u30F3\u30DD\u30FC\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",importCountSuccess:"{{count}}\u8A9E\u3092\u30A4\u30F3\u30DD\u30FC\u30C8\u3057\u307E\u3057\u305F",parseFail:"\u89E3\u6790\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002csv \u307E\u305F\u306F txt \u5F62\u5F0F\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",readFileFail:"\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",searchPlaceholder:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u3092\u691C\u7D22",inputPlaceholder:"\u5165\u529B",add:"\u8FFD\u52A0",import:"\u30A4\u30F3\u30DD\u30FC\u30C8",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",save:"\u4FDD\u5B58",confirm:"\u78BA\u8A8D",downloadTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",uploadModalTitle:"\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",uploadModalHint:"\u5148\u306B\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u304B\u3089\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",uploadDragText:"\u30AF\u30EA\u30C3\u30AF\u307E\u305F\u306F\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",uploadDragHint:"1\u30D5\u30A1\u30A4\u30EB\u3002csv \u307E\u305F\u306F txt\u3002",formatCsv:"csv",formatTxt:"txt"},server:{requestError:"\u30EA\u30AF\u30A8\u30B9\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",noPermission:"\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093"}},Ne={zh:te,en:Pe,ja:ze};function We(e){return Ne[e]??te}function J(e,i){return e.replace(/\{\{(\w+)\}\}/g,(F,f)=>String(i[f]??""))}const ve=ue.createContext({locale:"zh",messages:te,getMessage:e=>{const i=e.split(".");let F=te;for(const f of i)F=F==null?void 0:F[f];return typeof F=="string"?F:e}});function ae(){return ue.useContext(ve)}function He({locale:e,messages:i,children:F}){const f=ue.useMemo(()=>{const c=We(e),r=i?{...c,...i}:c;return{locale:e,messages:r,getMessage:u=>{const A=u.split(".");let D=r;for(const I of A)D=D==null?void 0:D[I];return typeof D=="string"?D:u}}},[e,i]);return ue.createElement(ve.Provider,{value:f},F)}const{Dragger:Ue}=Ae,j=16,Re=v.div.attrs({className:"sensitive-edit-page"})`
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  width: 100%;
15
15
  height: 100%;
16
- background: ${({theme:e})=>{var d;return((d=e==null?void 0:e.colors)==null?void 0:d.background)??"#FFFFFF"}};
17
- `,Ne=F.div.attrs({className:"sensitive-edit-toolbar"})`
16
+ background: ${({theme:e})=>{var i;return((i=e==null?void 0:e.colors)==null?void 0:i.background)??"#FFFFFF"}};
17
+ `,qe=v.div.attrs({className:"sensitive-edit-toolbar"})`
18
18
  flex-shrink: 0;
19
19
  display: flex;
20
20
  align-items: center;
@@ -22,27 +22,27 @@ import{jsxs as w,jsx as s,Fragment as we}from"react/jsx-runtime";import{useState
22
22
  flex-wrap: wrap;
23
23
  padding: 12px 20px;
24
24
 
25
- `,Pe=F.div.attrs({className:"sensitive-edit-content-box"})`
25
+ `,je=v.div.attrs({className:"sensitive-edit-content-box"})`
26
26
  flex: 1;
27
27
  min-height: 0;
28
28
  overflow: auto;
29
- border: 1px solid ${({theme:e})=>{var d;return((d=e==null?void 0:e.colors)==null?void 0:d.border)??"#E5E7EB"}};
30
- background: ${({theme:e})=>{var d;return((d=e==null?void 0:e.colors)==null?void 0:d.listBackground)??"#f5f5f5"}};
29
+ border: 1px solid ${({theme:e})=>{var i;return((i=e==null?void 0:e.colors)==null?void 0:i.border)??"#E5E7EB"}};
30
+ background: ${({theme:e})=>{var i;return((i=e==null?void 0:e.colors)==null?void 0:i.listBackground)??"#f5f5f5"}};
31
31
  border-radius: 8px;
32
32
  padding: 16px;
33
33
  margin: 0 20px;
34
- `,We=F.div.attrs({className:"sensitive-edit-tag-list"})`
34
+ `,Ve=v.div.attrs({className:"sensitive-edit-tag-list"})`
35
35
  display: flex;
36
36
  flex-wrap: wrap;
37
37
  gap: 12px;
38
38
  min-height: 30px;
39
- `,q=28,Ue=F.span.attrs({className:"sensitive-edit-tag"})`
39
+ `,V=28,Oe=v.span.attrs({className:"sensitive-edit-tag"})`
40
40
  box-sizing: border-box;
41
41
  display: inline-flex;
42
42
  align-items: center;
43
43
  gap: 6px;
44
- height: ${q}px;
45
- min-height: ${q}px;
44
+ height: ${V}px;
45
+ min-height: ${V}px;
46
46
  color: ${e=>e.$color};
47
47
  background: ${e=>e.$bg};
48
48
  border: ${e=>e.$border==="none"?"none":`1px solid ${e.$border}`};
@@ -62,13 +62,13 @@ import{jsxs as w,jsx as s,Fragment as we}from"react/jsx-runtime";import{useState
62
62
  opacity: 1;
63
63
  }
64
64
  }
65
- `,je=F.span.attrs({className:"sensitive-edit-add-trigger"})`
65
+ `,Ke=v.span.attrs({className:"sensitive-edit-add-trigger"})`
66
66
  box-sizing: border-box;
67
67
  display: inline-flex;
68
68
  align-items: center;
69
69
  gap: 6px;
70
- height: ${q}px;
71
- min-height: ${q}px;
70
+ height: ${V}px;
71
+ min-height: ${V}px;
72
72
  padding: 0 12px;
73
73
  border: 1px dashed ${e=>e.$color};
74
74
  border-radius: 4px;
@@ -84,13 +84,13 @@ import{jsxs as w,jsx as s,Fragment as we}from"react/jsx-runtime";import{useState
84
84
  border-style: solid;
85
85
  opacity: 0.9;
86
86
  }
87
- `,He=F.span.attrs({className:"sensitive-edit-add-input-wrap"})`
87
+ `,Ge=v.span.attrs({className:"sensitive-edit-add-input-wrap"})`
88
88
  box-sizing: border-box;
89
89
  display: inline-flex;
90
90
  align-items: center;
91
91
 
92
- height: ${q}px;
93
- min-height: ${q}px;
92
+ height: ${V}px;
93
+ min-height: ${V}px;
94
94
  padding: 0 8px 0 12px;
95
95
  border: 1px solid ${e=>e.$focused?e.$color:"#E5E7EB"};
96
96
  border-radius: 4px;
@@ -111,25 +111,25 @@ import{jsxs as w,jsx as s,Fragment as we}from"react/jsx-runtime";import{useState
111
111
  .sensitive-edit-add-input::placeholder {
112
112
  color: #9ca3af;
113
113
  }
114
- `,Ee=F.div.attrs({className:"sensitive-edit-footer"})`
114
+ `,Xe=v.div.attrs({className:"sensitive-edit-footer"})`
115
115
  flex-shrink: 0;
116
116
  display: flex;
117
117
  justify-content: flex-end;
118
118
  gap: 10px;
119
119
  padding: 16px 20px;
120
120
 
121
- `,Ve=F.div.attrs({className:"sensitive-upload-modal-alert"})`
121
+ `,Je=v.div.attrs({className:"sensitive-upload-modal-alert"})`
122
122
  display: flex;
123
123
  align-items: center;
124
124
  justify-content: space-between;
125
125
  gap: 12px;
126
126
  padding: 4px 14px;
127
127
  margin-bottom: 16px;
128
- background: ${({theme:e})=>{var d;return((d=e==null?void 0:e.colors)==null?void 0:d.tagBackground)??"#eff6ff"}};
128
+ background: ${({theme:e})=>{var i;return((i=e==null?void 0:e.colors)==null?void 0:i.tagBackground)??"#eff6ff"}};
129
129
  border-radius: 6px;
130
130
  font-size: 14px;
131
- color: ${({theme:e})=>{var d;return((d=e==null?void 0:e.colors)==null?void 0:d.text)??"#1f2937"}};
132
- `,Re=F.div.attrs({className:"sensitive-upload-modal-dragger-wrap"})`
131
+ color: ${({theme:e})=>{var i;return((i=e==null?void 0:e.colors)==null?void 0:i.text)??"#1f2937"}};
132
+ `,Ye=v.div.attrs({className:"sensitive-upload-modal-dragger-wrap"})`
133
133
  .ant-upload-drag {
134
134
  border-radius: 8px;
135
135
  border: 1px dashed #d1d5db;
@@ -139,25 +139,25 @@ import{jsxs as w,jsx as s,Fragment as we}from"react/jsx-runtime";import{useState
139
139
  border-color: #1d70f5;
140
140
  background: #f0f7ff;
141
141
  }
142
- `,qe=({words:e,onWordsChange:d,onSave:x,onCancel:y,styles:c,onDownloadTemplate:r,onImportFile:T})=>{var G;const{messages:t}=te(),[L,M]=$(""),[N,C]=$(!1),[v,D]=$(""),a=he(null),[i,l]=$(!1),[p,k]=$([]),[B,g]=$(!1),S=((G=c==null?void 0:c.theme)==null?void 0:G.colors)||ue.colors||{},W=S.tagColor??"#1d70f5",E=S.tagAddColor??"#1d70f5",V=S.tagBackground??"#ebf6ff",ae="none";be(()=>{N&&(D(""),setTimeout(()=>{var o;return(o=a.current)==null?void 0:o.focus()},0))},[N]);const O=I(()=>{const o=v.trim();if(o){if(o.length>R){b.warning(J(t.editor.maxLengthWarning,{max:String(R)}));return}if(e.includes(o)){b.warning(t.editor.duplicateWarning);return}d([...e,o])}D(""),C(!1)},[v,e,d,t]),Y=I(o=>{d(e.filter(h=>h!==o))},[e,d]),ne=ee(()=>{const o=L.trim().toLowerCase();return o?e.filter(h=>h.toLowerCase().includes(o)):e},[e,L]),ie=I(()=>{k([]),l(!0)},[]),oe=I(o=>{r?r(o):b.info(t.editor.configTemplateHint)},[r,t]),re={items:[{key:"csv",label:t.editor.formatCsv},{key:"txt",label:t.editor.formatTxt}],onClick:({key:o})=>oe(o)},U=I(o=>{const h=o.replace(/\r\n/g,`
142
+ `,Ze=({words:e,onWordsChange:i,onSave:F,onCancel:f,styles:c,onDownloadTemplate:r,onImportFile:L})=>{var G;const{messages:u}=ae(),[A,D]=_(""),[I,w]=_(!1),[x,T]=_(""),t=Ce(null),[o,l]=_(!1),[p,E]=_([]),[M,g]=_(!1),y=((G=c==null?void 0:c.theme)==null?void 0:G.colors)||Fe.colors||{},N=y.tagColor??"#1d70f5",R=y.tagAddColor??"#1d70f5",q=y.tagBackground??"#ebf6ff",oe="none";be(()=>{I&&(T(""),setTimeout(()=>{var n;return(n=t.current)==null?void 0:n.focus()},0))},[I]);const O=k(()=>{const n=x.trim();if(n){if(n.length>j){b.warning(J(u.editor.maxLengthWarning,{max:String(j)}));return}if(e.includes(n)){b.warning(u.editor.duplicateWarning);return}i([...e,n])}T(""),w(!1)},[x,e,i,u]),Y=k(n=>{i(e.filter(C=>C!==n))},[e,i]),ne=ee(()=>{const n=A.trim().toLowerCase();return n?e.filter(C=>C.toLowerCase().includes(n)):e},[e,A]),re=k(()=>{E([]),l(!0)},[]),ie=k(n=>{r?r(n):b.info(u.editor.configTemplateHint)},[r,u]),se={items:[{key:"csv",label:u.editor.formatCsv},{key:"txt",label:u.editor.formatTxt}],onClick:({key:n})=>ie(n)},W=k(n=>{const C=n.replace(/\r\n/g,`
143
143
  `).replace(/\r/g,`
144
- `).split(/[\n,\t]/).map(A=>A.trim()).filter(Boolean),j=new Set,z=[];for(const A of h){const H=A.length>R?A.slice(0,R):A;j.has(H)||(j.add(H),z.push(H))}return z},[]),K=I(async()=>{var j;const o=(j=p[0])==null?void 0:j.originFileObj;if(!o){b.warning(t.editor.selectFileWarning);return}if(T){g(!0);try{await T(o),l(!1),k([])}catch{b.error(t.editor.importFailRetry)}finally{g(!1)}return}const h=new FileReader;h.onload=()=>{try{const z=h.result||"",A=U(z),H=Array.from(new Set([...e,...A]));d(H),b.success(J(t.editor.importCountSuccess,{count:String(A.length)})),l(!1),k([])}catch{b.error(t.editor.parseFail)}},h.onerror=()=>b.error(t.editor.readFileFail),h.readAsText(o,"UTF-8")},[p,e,d,U,T,t]),Z=I(()=>{l(!1),k([])},[]);return w(ze,{theme:c==null?void 0:c.theme,children:[w(Ne,{theme:c==null?void 0:c.theme,children:[s(P,{mode:"primary",label:t.editor.import,icon:s(Le,{size:16}),onClick:ie,styles:c}),w("span",{style:{display:"flex",alignItems:"center",gap:6,color:S.textSecondary??"#6b7280",fontSize:12},children:[s(me,{size:14}),J(t.editor.maxLengthHint,{max:String(R)})]}),s("div",{style:{flex:1,marginLeft:"auto",minWidth:200,maxWidth:320,display:"flex",alignItems:"center",gap:8},children:s(ce,{placeholder:t.editor.searchPlaceholder,value:L,allowClear:!0,onChange:o=>M(o.target.value),suffix:s(ye,{size:16,style:{color:"#9ca3af"}}),style:{flex:1}})})]}),s(Pe,{theme:c==null?void 0:c.theme,children:w(We,{children:[ne.map(o=>w(Ue,{$color:W,$bg:V,$border:ae,children:[o,s("span",{className:"sensitive-edit-tag-remove",onClick:()=>Y(o),role:"button",tabIndex:0,onKeyDown:h=>h.key==="Enter"&&Y(o),children:s(De,{size:14})})]},o)),N?s(He,{$focused:!0,$color:W,children:s("input",{ref:a,type:"text",className:"sensitive-edit-add-input",placeholder:t.editor.inputPlaceholder,value:v,onChange:o=>D(o.target.value),onBlur:O,onKeyDown:o=>{o.key==="Enter"&&O(),o.key==="Escape"&&(D(""),C(!1))},maxLength:R})}):w(je,{$color:E,onClick:()=>C(!0),role:"button",tabIndex:0,onKeyDown:o=>o.key==="Enter"&&C(!0),children:[s(ve,{size:14}),t.editor.add]})]})}),w(Ee,{theme:c==null?void 0:c.theme,children:[s(P,{mode:"default",label:t.editor.cancel,onClick:y,styles:c,style:{width:76}}),s(P,{mode:"primary",label:t.editor.save,onClick:x,styles:c,style:{width:76}})]}),w(de,{title:t.editor.uploadModalTitle,open:i,onCancel:Z,footer:w("div",{style:{display:"flex",justifyContent:"flex-end",gap:20},children:[s(P,{mode:"default",label:t.editor.cancel,onClick:Z,styles:c,disabled:B,style:{width:76}}),s(P,{mode:"primary",label:t.editor.confirm,onClick:K,styles:c,disabled:B,style:{width:76}})]}),destroyOnClose:!0,width:650,children:[w(Ve,{theme:c==null?void 0:c.theme,children:[w("span",{style:{display:"flex",alignItems:"center",gap:8},children:[s(me,{size:18,style:{color:"#1d70f5",flexShrink:0}}),t.editor.uploadModalHint]}),s(Fe,{menu:re,trigger:["click"],children:s("div",{style:{display:"inline-block"},children:s(P,{mode:"default",label:t.editor.downloadTemplate,styles:c})})})]}),s(Re,{children:w(Be,{accept:".csv,.txt",maxCount:1,fileList:p,beforeUpload:()=>!1,onChange:({fileList:o})=>k(o.slice(-1)),showUploadList:{showPreviewIcon:!1},children:[s("p",{className:"ant-upload-drag-icon",style:{marginBottom:8},children:s(Ae,{size:48,style:{color:"#1d70f5"}})}),s("p",{className:"ant-upload-text",children:t.editor.uploadDragText}),s("p",{className:"ant-upload-hint",children:t.editor.uploadDragHint})]})})]})]})},{confirm:Oe}=de,Ke={pageNo:1,pageSize:999},Ge=F.div.attrs({className:"sensitive-modal-footer"})`
144
+ `).split(/[\n,\t]/).map($=>$.trim()).filter(Boolean),H=new Set,P=[];for(const $ of C){const U=$.length>j?$.slice(0,j):$;H.has(U)||(H.add(U),P.push(U))}return P},[]),K=k(async()=>{var H;const n=(H=p[0])==null?void 0:H.originFileObj;if(!n){b.warning(u.editor.selectFileWarning);return}if(L){g(!0);try{await L(n),l(!1),E([])}catch{b.error(u.editor.importFailRetry)}finally{g(!1)}return}const C=new FileReader;C.onload=()=>{try{const P=C.result||"",$=W(P),U=Array.from(new Set([...e,...$]));i(U),b.success(J(u.editor.importCountSuccess,{count:String($.length)})),l(!1),E([])}catch{b.error(u.editor.parseFail)}},C.onerror=()=>b.error(u.editor.readFileFail),C.readAsText(n,"UTF-8")},[p,e,i,W,L,u]),Z=k(()=>{l(!1),E([])},[]);return B(Re,{theme:c==null?void 0:c.theme,children:[B(qe,{theme:c==null?void 0:c.theme,children:[s(z,{mode:"primary",label:u.editor.import,icon:s(Te,{size:16}),onClick:re,styles:c}),B("span",{style:{display:"flex",alignItems:"center",gap:6,color:y.textSecondary??"#6b7280",fontSize:12},children:[s(he,{size:14}),J(u.editor.maxLengthHint,{max:String(j)})]}),s("div",{style:{flex:1,marginLeft:"auto",minWidth:200,maxWidth:320,display:"flex",alignItems:"center",gap:8},children:s(de,{placeholder:u.editor.searchPlaceholder,value:A,allowClear:!0,onChange:n=>D(n.target.value),suffix:s(xe,{size:16,style:{color:"#9ca3af"}}),style:{flex:1}})})]}),s(je,{theme:c==null?void 0:c.theme,children:B(Ve,{children:[ne.map(n=>B(Oe,{$color:N,$bg:q,$border:oe,children:[n,s("span",{className:"sensitive-edit-tag-remove",onClick:()=>Y(n),role:"button",tabIndex:0,onKeyDown:C=>C.key==="Enter"&&Y(n),children:s(Le,{size:14})})]},n)),I?s(Ge,{$focused:!0,$color:N,children:s("input",{ref:t,type:"text",className:"sensitive-edit-add-input",placeholder:u.editor.inputPlaceholder,value:x,onChange:n=>T(n.target.value),onBlur:O,onKeyDown:n=>{n.key==="Enter"&&O(),n.key==="Escape"&&(T(""),w(!1))},maxLength:j})}):B(Ke,{$color:R,onClick:()=>w(!0),role:"button",tabIndex:0,onKeyDown:n=>n.key==="Enter"&&w(!0),children:[s(Be,{size:14}),u.editor.add]})]})}),B(Xe,{theme:c==null?void 0:c.theme,children:[s(z,{mode:"default",label:u.editor.cancel,onClick:f,styles:c,style:{width:76}}),s(z,{mode:"primary",label:u.editor.save,onClick:F,styles:c,style:{width:76}})]}),B(pe,{title:u.editor.uploadModalTitle,open:o,onCancel:Z,footer:B("div",{style:{display:"flex",justifyContent:"flex-end",gap:20},children:[s(z,{mode:"default",label:u.editor.cancel,onClick:Z,styles:c,disabled:M,style:{width:76}}),s(z,{mode:"primary",label:u.editor.confirm,onClick:K,styles:c,disabled:M,style:{width:76}})]}),destroyOnClose:!0,width:650,children:[B(Je,{theme:c==null?void 0:c.theme,children:[B("span",{style:{display:"flex",alignItems:"center",gap:8},children:[s(he,{size:18,style:{color:"#1d70f5",flexShrink:0}}),u.editor.uploadModalHint]}),s(we,{menu:se,trigger:["click"],children:s("div",{style:{display:"inline-block"},children:s(z,{mode:"default",label:u.editor.downloadTemplate,styles:c})})})]}),s(Ye,{children:B(Ue,{accept:".csv,.txt",maxCount:1,fileList:p,beforeUpload:()=>!1,onChange:({fileList:n})=>E(n.slice(-1)),showUploadList:{showPreviewIcon:!1},children:[s("p",{className:"ant-upload-drag-icon",style:{marginBottom:8},children:s(Ie,{size:48,style:{color:"#1d70f5"}})}),s("p",{className:"ant-upload-text",children:u.editor.uploadDragText}),s("p",{className:"ant-upload-hint",children:u.editor.uploadDragHint})]})})]})]})},{confirm:Qe}=pe,eu={pageNo:1,pageSize:999},uu=v.div.attrs({className:"sensitive-modal-footer"})`
145
145
  width: 100%;
146
146
  display: flex;
147
147
  flex-direction: row;
148
148
  justify-content: flex-end;
149
149
  gap: 10px;
150
- `,Xe=F.div.attrs({className:"sensitive-toolbar-search-wrap"})`
150
+ `,tu=v.div.attrs({className:"sensitive-toolbar-search-wrap"})`
151
151
  display: flex;
152
152
  align-items: center;
153
153
  min-width: 220px;
154
- `,Je=({onAction:e})=>{const[d,x]=$(""),{messages:y}=te(),c=I(()=>{const r=d.trim();e("search",{keyword:r})},[d,e]);return s(Xe,{children:s(ce,{placeholder:y.toolbar.searchPlaceholder,allowClear:!0,value:d,onChange:r=>x(r.target.value),onPressEnter:c,suffix:s(ye,{size:16,style:{color:"#9ca3af"}})})})},Ye=F.div.attrs({className:"sensitive-tag-cell-wrap"})`
154
+ `,au=({onAction:e})=>{const[i,F]=_(""),{messages:f}=ae(),c=k(()=>{const r=i.trim();e("search",{keyword:r})},[i,e]);return s(tu,{children:s(de,{placeholder:f.toolbar.searchPlaceholder,allowClear:!0,value:i,onChange:r=>F(r.target.value),onPressEnter:c,suffix:s(xe,{size:16,style:{color:"#9ca3af"}})})})},ou=v.div.attrs({className:"sensitive-tag-cell-wrap"})`
155
155
  display: flex;
156
156
  flex-wrap: wrap;
157
157
  gap: 12px;
158
158
  min-width: 200px;
159
159
  max-width: 100%;
160
- `,Ze=F.span.attrs({className:"sensitive-tag-item"})`
160
+ `,nu=v.span.attrs({className:"sensitive-tag-item"})`
161
161
  box-sizing: border-box;
162
162
  display: inline-block;
163
163
  color: ${e=>e.$color};
@@ -170,7 +170,7 @@ import{jsxs as w,jsx as s,Fragment as we}from"react/jsx-runtime";import{useState
170
170
  white-space: nowrap;
171
171
  flex-shrink: 0;
172
172
  font-family: PingFangSC, 微软雅黑, Helvetic, sans-serif;
173
- `,Q=8,Qe=F.span.attrs({className:"sensitive-tag-more"})`
173
+ `,Q=8,ru=v.span.attrs({className:"sensitive-tag-more"})`
174
174
  display: inline-block;
175
175
  color: ${e=>e.$color};
176
176
  font-size: 12px;
@@ -182,4 +182,4 @@ import{jsxs as w,jsx as s,Fragment as we}from"react/jsx-runtime";import{useState
182
182
  &:hover {
183
183
  text-decoration: underline;
184
184
  }
185
- `;function et({value:e,theme:d,onViewAll:x,row:y}){var i;const{messages:c}=te(),r=(d==null?void 0:d.colors)||ue.colors||{},T=r.tagColor??"#1d70f5",t=r.tagBackground??"#ebf6ff",L=Array.isArray(e)?e:[];if(L.length===0)return null;const M=((i=((y==null?void 0:y.data)||[]).find(l=>l.columnId==="count"))==null?void 0:i.value)||0,N=L.slice(0,Q),C=M>Q,v=C?M-Q:0,D=J(c.tagCell.viewAllTitle,{total:String(M),max:String(Q)}),a=J(c.tagCell.viewAllLink,{count:String(v)});return w(Ye,{children:[N.map((l,p)=>s(Ze,{$color:T,$bg:t,$border:"none",children:l},p)),C&&s(Qe,{$color:T,title:D,onClick:()=>x==null?void 0:x(),children:a})]})}const tt=({url:e,token:d,role:x,server:y,styles:c,eventsEmit:r,CustomComponents:T})=>{const{messages:t,locale:L,getMessage:M}=te(),[N,C]=$({container:"ready",content:"ready"}),v=he(null),[D,a]=$(),[i]=le.useForm(),[l,p]=$(!1),[k,B]=$(""),[g,S]=$({active:!1,libraryId:null,libraryName:"",words:[]}),W=ee(()=>y||Me({url:e,token:d,role:x,getMessage:M}),[y,e,d,x,M]),{getLibraryList:E,deleteLibrary:V,createLibrary:ae,updateLibrary:O,downloadTemplate:Y,importWords:ne,getWords:ie,getLibraryData:oe}=W,re=I(u=>{const n=(u==null?void 0:u.data)??[],m=n.find(se=>se.columnId==="name"),f=n.find(se=>se.columnId==="sensitiveWords"),_=(m==null?void 0:m.value)??"",X=Array.isArray(f==null?void 0:f.value)?[...f.value]:[];return{name:_,words:X}},[]),U=I(async u=>{const{id:n,name:m,words:f}=await oe(u.id);S({active:!0,libraryId:n,libraryName:m,words:f})},[re]),K=I(()=>{S({active:!1,libraryId:null,libraryName:"",words:[]}),h(),r==null||r("sensitive_edit_closed",{})},[r]),Z=I(async()=>{if(g.libraryId)try{await O(g.libraryId,{name:g.libraryName,words:g.words})&&(b.success(t.message.saveSuccess),K(),C(n=>({...n,content:"loading"})),h())}catch(u){console.error("[SensitiveView] \u4FDD\u5B58\u654F\u611F\u8BCD\u5931\u8D25:",u)}},[g.libraryId,g.words,O,K]),G=Se(),o=ee(()=>ge(ge({theme:ue,mode:"light"},G||{}),c||{}),[G,c]);be(()=>{C(u=>({...u,content:"loading"})),h()},[]);const h=async u=>{try{const n={...Ke},m=u??k;m&&(n.name=m);const f=await E(n);if(f){const _=j(f.records);a(_||[]),C(X=>({...X,content:"ready"}))}}catch(n){console.log("[SensitiveView] getSensitiveList error:",n)}};function j(u){return(u||[]).map(n=>({id:n.id,data:[{columnId:"name",value:n.name,type:"label"},{columnId:"sensitiveWords",value:n.words,type:"customized"},{columnId:"createDate",value:n.gmtCreate,type:"date"},{columnId:"count",value:n.count,type:"text"},{columnId:"actions",value:"edit",label:t.table.actionEdit,type:"action"},{columnId:"actions",value:"delete",label:t.table.actionDelete,type:"action"}]}))}const z=L==="zh"?"zh-CN":L==="ja"?"ja-JP":"en-US",A=ee(()=>({label:t.table.label,model:null,defaultActiveId:"sensitive-table",views:[{id:"sensitive-table",label:t.table.viewLabel,type:"table",viewBehavior:"pagination",allowMultiSelect:!1,viewPageSize:10,paginationLocale:L,columns:[{title:t.table.columns.name,id:"name",type:"label"},{title:t.table.columns.sensitiveWords,id:"sensitiveWords",type:"customized",component:et,componentProps:({value:u,row:n})=>({value:u,theme:o==null?void 0:o.theme,row:n,onViewAll:n?()=>U(n):void 0}),fallback:null},{title:t.table.columns.createDate,id:"createDate",type:"date"},{title:t.table.columns.count,id:"count",type:"text"},{title:t.table.columns.actions,id:"actions",type:"action"}],toolbar:[{type:"button",key:"create",label:t.table.toolbar.create,btnType:"primary",icon:s(ve,{size:16})},{type:"customized",key:"search",label:t.table.toolbar.searchPlaceholder,position:"right",component:Je}]}]}),[o,U,t]),H=async()=>{try{const u=await i.validateFields();if(!u)return;const n=await ae({...u,words:[]});if(n&&(v!=null&&v.current)){console.log("+++++",new Date().toLocaleString(z,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/\//g,"-"));const m={id:n,data:[{columnId:"name",value:u.name,type:"label"},{columnId:"sensitiveWords",value:[],type:"customized"},{columnId:"createDate",value:new Date().toLocaleString(z,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/\//g,"-"),type:"date"},{columnId:"count",value:0,type:"text"},{columnId:"actions",value:"edit",label:t.table.actionEdit,type:"action"},{columnId:"actions",value:"delete",label:t.table.actionDelete,type:"action"}]};b.success(t.message.createSuccess),pe("table_action_edit",{id:n},()=>{}),r==null||r("sensitive_library_created",{id:n,name:u.name})}}catch(u){console.error("[SensitiveView] \u65B0\u589E\u654F\u611F\u8BCD\u5931\u8D25:",u)}finally{p(!1),i.resetFields()}};function pe(u,n,m){switch(console.log("name",u),u){case"toolbar_create":p(!0),r==null||r("sensitive_toolbar_create",n);break;case"table_action_edit":{const f=n==null?void 0:n.id,_=f&&Array.isArray(D)?D.find(X=>X.id===f):n!=null&&n.data?n:null;_&&_.data?U(_):n!=null&&n.id&&U(n),r==null||r("sensitive_table_action_edit",n);break}case"table_action_delete":{Oe({title:t.deleteConfirm.title,content:t.deleteConfirm.content,okText:t.deleteConfirm.okText,cancelText:t.deleteConfirm.cancelText,async onOk(){var f;try{await V(n.id)&&(v!=null&&v.current)&&((f=v.current.appFn)==null||f.removeItem(n.id),b.success(t.message.deleteSuccess),h(),r==null||r("sensitive_table_action_delete",n))}catch(_){console.error("[SensitiveView] \u5220\u9664\u654F\u611F\u8BCD\u5E93\u5931\u8D25",_)}}});break}case"toolbar_search_search":{const f=(n==null?void 0:n.keyword)||"";B(f),C(_=>({..._,content:"loading"})),h(f),r==null||r("sensitive_toolbar_search",n);break}default:r==null||r("sensitive_"+u,n);break}}const fe=()=>{p(!1),i.resetFields()};return s(_e,{styles:o,children:g.active?s(qe,{libraryName:g.libraryName,words:g.words,onWordsChange:u=>S(n=>({...n,words:u})),onSave:Z,onCancel:K,styles:o,onDownloadTemplate:async u=>{const n=await Y(u);if(!n){b.error(t.message.downloadTemplateFail);return}const m=URL.createObjectURL(n),f=document.createElement("a");f.href=m,f.download=`${t.downloadTemplateFilename}.${u}`,f.click(),URL.revokeObjectURL(m)},onImportFile:async u=>{if(!g.libraryId)return;const n=await ne(g.libraryId,u);if(n&&n.success!==!1){b.success(t.message.importSuccess);const m=await ie(g.libraryId);(m==null?void 0:m.words)!=null&&S(f=>({...f,words:m==null?void 0:m.words}))}else throw b.error((n==null?void 0:n.errorMsg)||t.message.importFail),new Error("import failed")}}):w(we,{children:[s(Ce,{dataSource:D,ref:v,eventsEmit:pe,status:N,styles:o,CustomComponents:{...T},...A}),s(de,{title:t.createModal.title,open:l,width:650,destroyOnClose:!0,onCancel:fe,footer:w(Ge,{theme:o==null?void 0:o.theme,children:[s(P,{mode:"default",label:t.createModal.cancel,onClick:fe}),s(P,{mode:"primary",label:t.createModal.confirm,onClick:H})]}),children:s(le,{form:i,children:s(le.Item,{label:null,name:"name",rules:[{required:!0,message:t.createModal.nameRequired}],children:s(ce,{placeholder:t.createModal.namePlaceholder})})})})]})})},ht=e=>{const{locale:d="zh",messages:x,...y}=e;return s($e,{locale:d,messages:x,children:s(tt,{...y})})};export{yt as SensitiveI18nContext,$e as SensitiveI18nProvider,ht as default,vt as getSensitiveMessages,J as interpolate,te as useSensitiveI18n};
185
+ `;function iu({value:e,theme:i,onViewAll:F,row:f}){var o;const{messages:c}=ae(),r=(i==null?void 0:i.colors)||Fe.colors||{},L=r.tagColor??"#1d70f5",u=r.tagBackground??"#ebf6ff",A=Array.isArray(e)?e:[];if(A.length===0)return null;const D=((o=((f==null?void 0:f.data)||[]).find(l=>l.columnId==="count"))==null?void 0:o.value)||0,I=A.slice(0,Q),w=D>Q,x=w?D-Q:0,T=J(c.tagCell.viewAllTitle,{total:String(D),max:String(Q)}),t=J(c.tagCell.viewAllLink,{count:String(x)});return B(ou,{children:[I.map((l,p)=>s(nu,{$color:L,$bg:u,$border:"none",children:l},p)),w&&s(ru,{$color:L,title:T,onClick:()=>F==null?void 0:F(),children:t})]})}const su=({url:e,token:i,role:F,server:f,styles:c,eventsEmit:r,CustomComponents:L})=>{const{messages:u,locale:A,getMessage:D}=ae(),[I,w]=_({container:"ready",content:"ready"}),x=Ce(null),[T,t]=_(),[o]=ce.useForm(),[l,p]=_(!1),[E,M]=_(""),[g,y]=_({active:!1,libraryId:null,libraryName:"",words:[]}),N=ee(()=>f||Me({url:e,token:i,role:F,getMessage:D}),[f,e,i,F,D]),{getLibraryList:R,deleteLibrary:q,createLibrary:oe,updateLibrary:O,downloadTemplate:Y,importWords:ne,getWords:re,getLibraryData:ie}=N,se=k(d=>{const a=(d==null?void 0:d.data)??[],h=a.find(le=>le.columnId==="name"),m=a.find(le=>le.columnId==="sensitiveWords"),S=(h==null?void 0:h.value)??"",X=Array.isArray(m==null?void 0:m.value)?[...m.value]:[];return{name:S,words:X}},[]),W=k(async d=>{const{id:a,name:h,words:m}=await ie(d.id);y({active:!0,libraryId:a,libraryName:h,words:m})},[se]),K=k(()=>{y({active:!1,libraryId:null,libraryName:"",words:[]}),C(),r==null||r("sensitive_edit_closed",{})},[r]),Z=k(async()=>{if(g.libraryId)try{await O(g.libraryId,{name:g.libraryName,words:g.words})&&(b.success(u.message.saveSuccess),K(),w(a=>({...a,content:"loading"})),C())}catch(d){console.error("[SensitiveView] \u4FDD\u5B58\u654F\u611F\u8BCD\u5931\u8D25:",d)}},[g.libraryId,g.words,O,K]),G=Se(),n=ee(()=>ge(ge({theme:Fe,mode:"light"},G||{}),c||{}),[G,c]);be(()=>{w(d=>({...d,content:"loading"})),C()},[]);const C=async d=>{try{const a={...eu},h=d??E;h&&(a.name=h);const m=await R(a);if(m){const S=H(m.records);t(S||[]),w(X=>({...X,content:"ready"}))}}catch(a){console.log("[SensitiveView] getSensitiveList error:",a)}};function H(d){return(d||[]).map(a=>({id:a.id,data:[{columnId:"name",value:a.name,type:"label"},{columnId:"sensitiveWords",value:a.words,type:"customized"},{columnId:"createDate",value:a.gmtCreate,type:"date"},{columnId:"count",value:a.count,type:"text"},{columnId:"actions",value:"edit",label:u.table.actionEdit,type:"action"},{columnId:"actions",value:"delete",label:u.table.actionDelete,type:"action"}]}))}const P=A==="zh"?"zh-CN":A==="ja"?"ja-JP":"en-US",$=ee(()=>({label:u.table.label,model:null,defaultActiveId:"sensitive-table",views:[{id:"sensitive-table",label:u.table.viewLabel,type:"table",viewBehavior:"pagination",allowMultiSelect:!1,viewPageSize:10,paginationLocale:A,columns:[{title:u.table.columns.name,id:"name",type:"label"},{title:u.table.columns.sensitiveWords,id:"sensitiveWords",type:"customized",component:iu,componentProps:({value:d,row:a})=>({value:d,theme:n==null?void 0:n.theme,row:a,onViewAll:a?()=>W(a):void 0}),fallback:null},{title:u.table.columns.createDate,id:"createDate",type:"date"},{title:u.table.columns.count,id:"count",type:"text"},{title:u.table.columns.actions,id:"actions",type:"action"}],toolbar:[{type:"button",key:"create",label:u.table.toolbar.create,btnType:"primary",icon:s(Be,{size:16})},{type:"customized",key:"search",label:u.table.toolbar.searchPlaceholder,position:"right",component:au}]}]}),[n,W,u]),U=async()=>{try{const d=await o.validateFields();if(!d)return;const a=await oe({...d,words:[]});if(a&&(x!=null&&x.current)){console.log("+++++",new Date().toLocaleString(P,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/\//g,"-"));const h={id:a,data:[{columnId:"name",value:d.name,type:"label"},{columnId:"sensitiveWords",value:[],type:"customized"},{columnId:"createDate",value:new Date().toLocaleString(P,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(/\//g,"-"),type:"date"},{columnId:"count",value:0,type:"text"},{columnId:"actions",value:"edit",label:u.table.actionEdit,type:"action"},{columnId:"actions",value:"delete",label:u.table.actionDelete,type:"action"}]};b.success(u.message.createSuccess),me("table_action_edit",{id:a},()=>{}),r==null||r("sensitive_library_created",{id:a,name:d.name})}}catch(d){console.error("[SensitiveView] \u65B0\u589E\u654F\u611F\u8BCD\u5931\u8D25:",d)}finally{p(!1),o.resetFields()}};function me(d,a,h){switch(console.log("name",d),d){case"toolbar_create":p(!0),r==null||r("sensitive_toolbar_create",a);break;case"table_action_edit":{const m=a==null?void 0:a.id,S=m&&Array.isArray(T)?T.find(X=>X.id===m):a!=null&&a.data?a:null;S&&S.data?W(S):a!=null&&a.id&&W(a),r==null||r("sensitive_table_action_edit",a);break}case"table_action_delete":{Qe({title:u.deleteConfirm.title,content:u.deleteConfirm.content,okText:u.deleteConfirm.okText,cancelText:u.deleteConfirm.cancelText,async onOk(){var m;try{await q(a.id)&&(x!=null&&x.current)&&((m=x.current.appFn)==null||m.removeItem(a.id),b.success(u.message.deleteSuccess),C(),r==null||r("sensitive_table_action_delete",a))}catch(S){console.error("[SensitiveView] \u5220\u9664\u654F\u611F\u8BCD\u5E93\u5931\u8D25",S)}}});break}case"toolbar_search_search":{const m=(a==null?void 0:a.keyword)||"";M(m),w(S=>({...S,content:"loading"})),C(m),r==null||r("sensitive_toolbar_search",a);break}default:r==null||r("sensitive_"+d,a);break}}const fe=()=>{p(!1),o.resetFields()};return s(ke,{styles:n,children:g.active?s(Ze,{libraryName:g.libraryName,words:g.words,onWordsChange:d=>y(a=>({...a,words:d})),onSave:Z,onCancel:K,styles:n,onDownloadTemplate:async d=>{const a=await Y(d);if(!a){b.error(u.message.downloadTemplateFail);return}const h=URL.createObjectURL(a),m=document.createElement("a");m.href=h,m.download=`${u.downloadTemplateFilename}.${d}`,m.click(),URL.revokeObjectURL(h)},onImportFile:async d=>{if(!g.libraryId)return;const a=await ne(g.libraryId,d);if(a&&a.success!==!1){b.success(u.message.importSuccess);const h=await re(g.libraryId);(h==null?void 0:h.words)!=null&&y(m=>({...m,words:h==null?void 0:h.words}))}else throw b.error((a==null?void 0:a.errorMsg)||u.message.importFail),new Error("import failed")}}):B(Ee,{children:[s(ye,{dataSource:T,ref:x,eventsEmit:me,status:I,styles:n,CustomComponents:{...L},...$}),s(pe,{title:u.createModal.title,open:l,width:650,destroyOnClose:!0,onCancel:fe,footer:B(uu,{theme:n==null?void 0:n.theme,children:[s(z,{mode:"default",label:u.createModal.cancel,onClick:fe}),s(z,{mode:"primary",label:u.createModal.confirm,onClick:U})]}),children:s(ce,{form:o,children:s(ce.Item,{label:null,name:"name",rules:[{required:!0,message:u.createModal.nameRequired}],children:s(de,{placeholder:u.createModal.namePlaceholder})})})})]})})},Bu=e=>{const{locale:i="zh",messages:F,...f}=e;return s(He,{locale:i,messages:F,children:s(su,{...f})})};export{ve as SensitiveI18nContext,He as SensitiveI18nProvider,Bu as default,We as getSensitiveMessages,J as interpolate,ae as useSensitiveI18n};
package/sensitiveWords.js CHANGED
@@ -1 +1 @@
1
- import"react/jsx-runtime";import"react";import"styled-components";import"antd";import"@mxmweb/xviewer";import"@mxmweb/zui";import{default as x}from"./sensitive.js";import{a as d,S as l,g as C,i as M,u as P}from"./assets/i18n-BMTusWgX.js";/* empty css */import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"axios";import"./assets/circle-plus-RlDPoPkb.js";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/x-CdZQbi--.js";export{d as SensitiveI18nContext,l as SensitiveI18nProvider,x as default,C as getSensitiveMessages,M as interpolate,P as useSensitiveI18n};
1
+ import"react/jsx-runtime";import"react";import"styled-components";import"antd";import"@mxmweb/xviewer";import"@mxmweb/zui";import{SensitiveI18nContext as g,SensitiveI18nProvider as l,default as u,getSensitiveMessages as x,interpolate as C,useSensitiveI18n as M}from"./sensitive.js";/* empty css */import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"axios";import"./assets/circle-plus-RlDPoPkb.js";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/x-CdZQbi--.js";export{g as SensitiveI18nContext,l as SensitiveI18nProvider,u as default,x as getSensitiveMessages,C as interpolate,M as useSensitiveI18n};
@@ -1 +1 @@
1
- import{G as f}from"./assets/index-_ih9ja1B.js";import{registerPDFWorker as x}from"@mxmweb/fviewer";import"react/jsx-runtime";import"react";import"styled-components";import"axios";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/x-CdZQbi--.js";export{f as GientechStreamReader,x as registerPDFWorker};
1
+ import{G as f}from"./assets/GientechStreamReader-_ih9ja1B.js";import{registerPDFWorker as x}from"@mxmweb/fviewer";import"react/jsx-runtime";import"react";import"styled-components";import"axios";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/x-CdZQbi--.js";export{f as GientechStreamReader,x as registerPDFWorker};
@@ -1,64 +0,0 @@
1
- import*as R from"react";import vt,{createContext as te,useContext as ee,useEffect as re}from"react";function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},J.apply(null,arguments)}function ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e,t){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},X(e,t)}function oe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ae(e){if(Array.isArray(e))return Z(e)}function se(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function It(e,t){if(e){if(typeof e=="string")return Z(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}function ce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ke(e){return ae(e)||se(e)||It(e)||ce()}function ue(e){if(Array.isArray(e))return e}function fe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,s,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(f){c=!0,o=f}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}function le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ft(e,t){return ue(e)||fe(e,t)||It(e,t)||le()}function T(e){"@babel/helpers - typeof";return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(e)}function he(e,t){if(T(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(T(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dt(e){var t=he(e,"string");return T(t)=="symbol"?t:t+""}function b(e,t,r){return(t=Dt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_t(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function de(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ge(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var wt="data-rc-order",Ct="data-rc-priority",me="rc-util-key",tt=new Map;function Gt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):me}function B(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ye(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function mt(e){return Array.from((tt.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function $t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!de())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,s=ye(n),a=s==="prependQueue",u=document.createElement("style");u.setAttribute(wt,s),a&&i&&u.setAttribute(Ct,"".concat(i)),r!=null&&r.nonce&&(u.nonce=r==null?void 0:r.nonce),u.innerHTML=e;var c=B(t),f=c.firstChild;if(n){if(a){var l=(t.styles||mt(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(wt)))return!1;var g=Number(h.getAttribute(Ct)||0);return i>=g});if(l.length)return c.insertBefore(u,l[l.length-1].nextSibling),u}c.insertBefore(u,f)}else c.appendChild(u);return u}function Lt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=B(t);return(t.styles||mt(r)).find(function(n){return n.getAttribute(Gt(t))===e})}function Qe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Lt(e,t);if(r){var n=B(t);n.removeChild(r)}}function be(e,t){var r=tt.get(e);if(!r||!ge(document,r)){var n=$t("",t),o=n.parentNode;tt.set(e,o),e.removeChild(n)}}function pe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=B(r),o=mt(n),i=S(S({},r),{},{styles:o});be(n,i);var s=Lt(t,i);if(s){var a,u;if((a=i.csp)!==null&&a!==void 0&&a.nonce&&s.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var c;s.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var f=$t(e,i);return f.setAttribute(Gt(i),t),f}function Bt(e,t){if(e==null)return{};var r,n,o=oe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var et={},ve=function(t){};function _e(e,t){}function we(e,t){}function Ce(){et={}}function zt(e,t,r){!t&&!et[r]&&(e(!1,r),et[r]=!0)}function z(e,t){zt(_e,e,t)}function xe(e,t){zt(we,e,t)}z.preMessage=ve;z.resetWarned=Ce;z.noteOnce=xe;function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dt(n.key),n)}}function Je(e,t,r){return t&&xt(e.prototype,t),r&&xt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X(e,t)}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},St(e)}function Se(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Se=function(){return!!e})()}function Ze(e,t){if(t&&(T(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}var Wt=te({});const m=Math.round;function Q(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Ot=(e,t,r)=>r===0?e:e/100;function H(e,t){const r=t||255;return e>r?r:e<0?0:e}class P{constructor(t){b(this,"isValid",!0),b(this,"r",0),b(this,"g",0),b(this,"b",0),b(this,"a",1),b(this,"_h",void 0),b(this,"_s",void 0),b(this,"_l",void 0),b(this,"_v",void 0),b(this,"_max",void 0),b(this,"_min",void 0),b(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof P)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=H(t.r),this.g=H(t.g),this.b=H(t.b),this.a=typeof t.a=="number"?H(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=m(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=a=>(n[a]-this[a])*o+this[a],s={r:m(i("r")),g:m(i("g")),b:m(i("b")),a:m(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>m((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=m(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=m(this.getSaturation()*100),n=m(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=H(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const h=m(n*255);this.r=h,this.g=h,this.b=h}let i=0,s=0,a=0;const u=t/60,c=(1-Math.abs(2*n-1))*r,f=c*(1-Math.abs(u%2-1));u>=0&&u<1?(i=c,s=f):u>=1&&u<2?(i=f,s=c):u>=2&&u<3?(s=c,a=f):u>=3&&u<4?(s=f,a=c):u>=4&&u<5?(i=f,a=c):u>=5&&u<6&&(i=c,a=f);const l=n-c/2;this.r=m((i+l)*255),this.g=m((s+l)*255),this.b=m((a+l)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=m(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const s=t/60,a=Math.floor(s),u=s-a,c=m(n*(1-r)*255),f=m(n*(1-r*u)*255),l=m(n*(1-r*(1-u))*255);switch(a){case 0:this.g=l,this.b=c;break;case 1:this.r=f,this.b=c;break;case 2:this.r=c,this.b=l;break;case 3:this.r=c,this.g=f;break;case 4:this.r=l,this.g=c;break;case 5:default:this.g=c,this.b=f;break}}fromHsvString(t){const r=Q(t,Ot);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Q(t,Ot);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Q(t,(n,o)=>o.includes("%")?m(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var G=2,Tt=.16,Oe=.05,Te=.05,je=.15,qt=5,Vt=4,Pe=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function jt(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-G*t:Math.round(e.h)+G*t:n=r?Math.round(e.h)+G*t:Math.round(e.h)-G*t,n<0?n+=360:n>=360&&(n-=360),n}function Pt(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Tt*t:t===Vt?n=e.s+Tt:n=e.s+Oe*t,n>1&&(n=1),r&&t===qt&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function At(e,t,r){var n;return r?n=e.v+Te*t:n=e.v-je*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Ae(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new P(e),o=n.toHsv(),i=qt;i>0;i-=1){var s=new P({h:jt(o,i,!0),s:Pt(o,i,!0),v:At(o,i,!0)});r.push(s)}r.push(n);for(var a=1;a<=Vt;a+=1){var u=new P({h:jt(o,a),s:Pt(o,a),v:At(o,a)});r.push(u)}return t.theme==="dark"?Pe.map(function(c){var f=c.index,l=c.amount;return new P(t.backgroundColor||"#141414").mix(r[f],l).toHexString()}):r.map(function(c){return c.toHexString()})}var tr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},rt=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];rt.primary=rt[5];var nt=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];nt.primary=nt[5];var ot=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ot.primary=ot[5];var it=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];it.primary=it[5];var at=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];at.primary=at[5];var st=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];st.primary=st[5];var ct=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ct.primary=ct[5];var ut=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ut.primary=ut[5];var $=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$.primary=$[5];var ft=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ft.primary=ft[5];var lt=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];lt.primary=lt[5];var ht=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ht.primary=ht[5];var dt=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];dt.primary=dt[5];var er={red:rt,volcano:nt,orange:ot,gold:it,yellow:at,lime:st,green:ct,cyan:ut,blue:$,geekblue:ft,purple:lt,magenta:ht,grey:dt},U={exports:{}};/*!
4
- Copyright (c) 2018 Jed Watson.
5
- Licensed under the MIT License (MIT), see
6
- http://jedwatson.github.io/classnames
7
- */var kt;function ke(){return kt||(kt=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(i=o(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var a in i)t.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(U)),U.exports}var Me=ke();const Ne=ie(Me);function Yt(e,t){this.v=e,this.k=t}function y(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}y=function(s,a,u,c){function f(l,h){y(s,l,function(g){return this._invoke(l,h,g)})}a?o?o(s,a,{value:u,enumerable:!c,configurable:!c,writable:!c}):s[a]=u:(f("next",0),f("throw",1),f("return",2))},y(e,t,r,n)}function yt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(g,k,M,W){var q=k&&k.prototype instanceof a?k:a,N=Object.create(q.prototype);return y(N,"_invoke",(function(V,Y,Zt){var O,d,p,I=0,pt=Zt||[],j=!1,C={p:0,n:0,v:e,a:F,f:F.bind(e,4),d:function(v,x){return O=v,d=0,p=e,C.n=x,s}};function F(w,v){for(d=w,p=v,t=0;!j&&I&&!x&&t<pt.length;t++){var x,_=pt[t],K=C.p,D=_[2];w>3?(x=D===v)&&(p=_[(d=_[4])?5:(d=3,3)],_[4]=_[5]=e):_[0]<=K&&((x=w<2&&K<_[1])?(d=0,C.v=v,C.n=_[1]):K<D&&(x=w<3||_[0]>v||v>D)&&(_[4]=w,_[5]=v,C.n=D,d=0))}if(x||w>1)return s;throw j=!0,v}return function(w,v,x){if(I>1)throw TypeError("Generator is already running");for(j&&v===1&&F(v,x),d=v,p=x;(t=d<2?e:p)||!j;){O||(d?d<3?(d>1&&(C.n=-1),F(d,p)):C.n=p:C.v=p);try{if(I=2,O){if(d||(w="next"),t=O[w]){if(!(t=t.call(O,p)))throw TypeError("iterator result is not an object");if(!t.done)return t;p=t.value,d<2&&(d=0)}else d===1&&(t=O.return)&&t.call(O),d<2&&(p=TypeError("The iterator does not provide a '"+w+"' method"),d=1);O=e}else if((t=(j=C.n<0)?p:V.call(Y,C))!==s)break}catch(_){O=e,d=1,p=_}finally{I=1}}return{value:t,done:j}}})(g,M,W),!0),N}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(y(t={},n,function(){return this}),t),l=c.prototype=a.prototype=Object.create(f);function h(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,y(g,o,"GeneratorFunction")),g.prototype=Object.create(l),g}return u.prototype=c,y(l,"constructor",c),y(c,"constructor",u),u.displayName="GeneratorFunction",y(c,o,"GeneratorFunction"),y(l),y(l,o,"Generator"),y(l,n,function(){return this}),y(l,"toString",function(){return"[object Generator]"}),(yt=function(){return{w:i,m:h}})()}function L(e,t){function r(o,i,s,a){try{var u=e[o](i),c=u.value;return c instanceof Yt?t.resolve(c.v).then(function(f){r("next",f,s,a)},function(f){r("throw",f,s,a)}):t.resolve(c).then(function(f){u.value=f,s(u)},function(f){return r("throw",f,s,a)})}catch(f){a(f)}}var n;this.next||(y(L.prototype),y(L.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),y(this,"_invoke",function(o,i,s){function a(){return new t(function(u,c){r(o,s,u,c)})}return n=n?n.then(a,a):a()},!0)}function Kt(e,t,r,n,o){return new L(yt().w(e,t,r,n),o||Promise)}function He(e,t,r,n,o){var i=Kt(e,t,r,n,o);return i.next().then(function(s){return s.done?s.value:i.next()})}function Re(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Mt(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(T(e)+" is not iterable")}function Nt(){var e=yt(),t=e.m(Nt),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(s){var a=typeof s=="function"&&s.constructor;return!!a&&(a===r||(a.displayName||a.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(s){var a,u;return function(c){a||(a={stop:function(){return u(c.a,2)},catch:function(){return c.v},abrupt:function(l,h){return u(c.a,o[l],h)},delegateYield:function(l,h,g){return a.resultName=h,u(c.d,Mt(l),g)},finish:function(l){return u(c.f,l)}},u=function(l,h,g){c.p=a.prev,c.n=a.next;try{return l(h,g)}finally{a.next=c.n}}),a.resultName&&(a[a.resultName]=c.v,a.resultName=void 0),a.sent=c.v,a.next=c.n;try{return s.call(this,a)}finally{c.p=a.prev,c.n=a.next}}}return(Nt=function(){return{wrap:function(u,c,f,l){return e.w(i(u),c,f,l&&l.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(u,c){return new Yt(u,c)},AsyncIterator:L,async:function(u,c,f,l,h){return(n(c)?Kt:He)(i(u),c,f,l,h)},keys:Re,values:Mt}})()}function Ht(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void r(c)}a.done?t(u):Promise.resolve(u).then(n,o)}function rr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(u){Ht(i,n,o,s,a,"next",u)}function a(u){Ht(i,n,o,s,a,"throw",u)}s(void 0)})}}function Qt(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ee(e){return Qt(e)instanceof ShadowRoot}function Ie(e){return Ee(e)?Qt(e):null}function Fe(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function De(e,t){z(e,"[@ant-design/icons] ".concat(t))}function Rt(e){return T(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(T(e.icon)==="object"||typeof e.icon=="function")}function Et(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Fe(r)]=n}return t},{})}function gt(e,t,r){return r?vt.createElement(e.tag,S(S({key:t},Et(e.attrs)),r),(e.children||[]).map(function(n,o){return gt(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):vt.createElement(e.tag,S({key:t},Et(e.attrs)),(e.children||[]).map(function(n,o){return gt(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ut(e){return Ae(e)[0]}function Jt(e){return e?Array.isArray(e)?e:[e]:[]}var Ge=`
8
- .anticon {
9
- display: inline-flex;
10
- align-items: center;
11
- color: inherit;
12
- font-style: normal;
13
- line-height: 0;
14
- text-align: center;
15
- text-transform: none;
16
- vertical-align: -0.125em;
17
- text-rendering: optimizeLegibility;
18
- -webkit-font-smoothing: antialiased;
19
- -moz-osx-font-smoothing: grayscale;
20
- }
21
-
22
- .anticon > * {
23
- line-height: 1;
24
- }
25
-
26
- .anticon svg {
27
- display: inline-block;
28
- }
29
-
30
- .anticon::before {
31
- display: none;
32
- }
33
-
34
- .anticon .anticon-icon {
35
- display: block;
36
- }
37
-
38
- .anticon[tabindex] {
39
- cursor: pointer;
40
- }
41
-
42
- .anticon-spin::before,
43
- .anticon-spin {
44
- display: inline-block;
45
- -webkit-animation: loadingCircle 1s infinite linear;
46
- animation: loadingCircle 1s infinite linear;
47
- }
48
-
49
- @-webkit-keyframes loadingCircle {
50
- 100% {
51
- -webkit-transform: rotate(360deg);
52
- transform: rotate(360deg);
53
- }
54
- }
55
-
56
- @keyframes loadingCircle {
57
- 100% {
58
- -webkit-transform: rotate(360deg);
59
- transform: rotate(360deg);
60
- }
61
- }
62
- `,$e=function(t){var r=ee(Wt),n=r.csp,o=r.prefixCls,i=r.layer,s=Ge;o&&(s=s.replace(/anticon/g,o)),i&&(s="@layer ".concat(i,` {
63
- `).concat(s,`
64
- }`)),re(function(){var a=t.current,u=Ie(a);pe(s,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},Le=["icon","className","onClick","style","primaryColor","secondaryColor"],E={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Be(e){var t=e.primaryColor,r=e.secondaryColor;E.primaryColor=t,E.secondaryColor=r||Ut(t),E.calculated=!!r}function ze(){return S({},E)}var A=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,s=t.primaryColor,a=t.secondaryColor,u=Bt(t,Le),c=R.useRef(),f=E;if(s&&(f={primaryColor:s,secondaryColor:a||Ut(s)}),$e(c),De(Rt(r),"icon should be icon definiton, but got ".concat(r)),!Rt(r))return null;var l=r;return l&&typeof l.icon=="function"&&(l=S(S({},l),{},{icon:l.icon(f.primaryColor,f.secondaryColor)})),gt(l.icon,"svg-".concat(l.name),S(S({className:n,onClick:o,style:i,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};A.displayName="IconReact";A.getTwoToneColors=ze;A.setTwoToneColors=Be;function Xt(e){var t=Jt(e),r=Ft(t,2),n=r[0],o=r[1];return A.setTwoToneColors({primaryColor:n,secondaryColor:o})}function We(){var e=A.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var qe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Xt($.primary);var bt=R.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,s=e.tabIndex,a=e.onClick,u=e.twoToneColor,c=Bt(e,qe),f=R.useContext(Wt),l=f.prefixCls,h=l===void 0?"anticon":l,g=f.rootClassName,k=Ne(g,h,b(b({},"".concat(h,"-").concat(n.name),!!n.name),"".concat(h,"-spin"),!!o||n.name==="loading"),r),M=s;M===void 0&&a&&(M=-1);var W=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,q=Jt(u),N=Ft(q,2),V=N[0],Y=N[1];return R.createElement("span",J({role:"img","aria-label":n.name},c,{ref:t,tabIndex:M,onClick:a,className:k}),R.createElement(A,{icon:n,primaryColor:V,secondaryColor:Y,style:W}))});bt.displayName="AntdIcon";bt.getTwoToneColor=We;bt.setTwoToneColor=Xt;export{Bt as A,Ne as B,rr as C,Nt as D,bt as E,P as F,Ye as G,Wt as I,X as _,J as a,ne as b,T as c,Je as d,Ue as e,b as f,ie as g,Se as h,St as i,Ze as j,Ft as k,_e as l,de as m,S as n,Ke as o,ue as p,se as q,Qe as r,It as s,le as t,pe as u,Ae as v,z as w,tr as x,er as y,Xe as z};
@@ -1 +0,0 @@
1
- import{g as l}from"./AntdIcon-BRbA9Wz8.js";import u from"react-dom";function s(e,i){for(var n=0;n<i.length;n++){const t=i[n];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o={},c;function p(){if(c)return o;c=1;var e=u;return o.createRoot=e.createRoot,o.hydrateRoot=e.hydrateRoot,o}var f=p();const d=l(f),y=s({__proto__:null,default:d},[f]);export{y as c};
@@ -1 +0,0 @@
1
- import l from"react";const o={toolbar:{searchPlaceholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},tagCell:{viewAllTitle:"\u5171 {{total}} \u4E2A\uFF0C\u5F53\u524D\u4EC5\u5C55\u793A\u524D {{max}} \u4E2A",viewAllLink:"\u2026\u67E5\u770B\u5168\u90E8\uFF08+{{count}}\uFF09"},table:{label:"\u654F\u611F\u8BCD\u914D\u7F6E",viewLabel:"\u654F\u611F\u8BCD\u5E93\u5217\u8868",columns:{name:"\u540D\u79F0",sensitiveWords:"\u654F\u611F\u8BCD",createDate:"\u521B\u5EFA\u65E5\u671F",count:"\u6570\u91CF",actions:"\u64CD\u4F5C"},toolbar:{create:"\u65B0\u5EFA\u654F\u611F\u8BCD\u5E93",searchPlaceholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"},actionEdit:"\u7F16\u8F91",actionDelete:"\u5220\u9664"},dashboard:{title:"\u654F\u611F\u8BCD\u5E93\u7BA1\u7406"},deleteConfirm:{title:"\u786E\u8BA4\u5220\u9664\u654F\u611F\u8BCD\u5E93\uFF1F",content:"\u5220\u9664\u540E\uFF0C\u8BE5\u654F\u611F\u8BCD\u5E93\u5C06\u65E0\u6CD5\u6062\u590D",okText:"\u5220\u9664",cancelText:"\u53D6\u6D88"},createModal:{title:"\u65B0\u5EFA\u654F\u611F\u8BCD\u5E93",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",nameRequired:"\u8BF7\u8F93\u5165\u654F\u611F\u8BCD\u5E93\u540D\u79F0!",namePlaceholder:"\u8BF7\u8F93\u5165"},message:{saveSuccess:"\u4FDD\u5B58\u6210\u529F",createSuccess:"\u65B0\u589E\u654F\u611F\u8BCD\u6210\u529F!",deleteSuccess:"\u5220\u9664\u6210\u529F",downloadTemplateFail:"\u6A21\u677F\u4E0B\u8F7D\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25"},downloadTemplateFilename:"\u654F\u611F\u8BCD\u6A21\u677F",editor:{maxLengthHint:"\u654F\u611F\u8BCD\u6700\u591A\u53EF\u8F93\u5165{{max}}\u4E2A\u5B57\u7B26",maxLengthWarning:"\u654F\u611F\u8BCD\u6700\u591A\u53EF\u8F93\u5165{{max}}\u4E2A\u5B57\u7B26",duplicateWarning:"\u5DF2\u5B58\u5728\u76F8\u540C\u654F\u611F\u8BCD",configTemplateHint:"\u8BF7\u914D\u7F6E\u6A21\u677F\u4E0B\u8F7D\u5730\u5740",selectFileWarning:"\u8BF7\u5148\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6",importFailRetry:"\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",importCountSuccess:"\u5DF2\u5BFC\u5165 {{count}} \u4E2A\u654F\u611F\u8BCD",parseFail:"\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u786E\u4FDD\u4E3A csv \u6216 txt \u683C\u5F0F",readFileFail:"\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25",searchPlaceholder:"\u8BF7\u8F93\u5165\u654F\u611F\u8BCD\u641C\u7D22",inputPlaceholder:"\u8BF7\u8F93\u5165",add:"\u6DFB\u52A0",import:"\u5BFC\u5165",cancel:"\u53D6\u6D88",save:"\u4FDD\u5B58",confirm:"\u786E\u8BA4",downloadTemplate:"\u4E0B\u8F7D\u6A21\u677F",uploadModalTitle:"\u4E0A\u4F20\u6587\u4EF6",uploadModalHint:"\u5148\u4E0B\u8F7D\u6A21\u677F\u540E\u4E0A\u4F20",uploadDragText:"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64\u5904\u4E0A\u4F20",uploadDragHint:"\u652F\u6301\u5355\u6B21\u4E0A\u4F20\uFF0C\u652F\u6301 csv\u3001txt \u683C\u5F0F\u3002",formatCsv:"csv",formatTxt:"txt"},server:{requestError:"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",noPermission:"\u6CA1\u6709\u8DB3\u591F\u6743\u9650"}},E={toolbar:{searchPlaceholder:"Enter keyword"},tagCell:{viewAllTitle:"{{total}} total, showing first {{max}}",viewAllLink:"\u2026View all (+{{count}})"},table:{label:"Sensitive words",viewLabel:"Sensitive word libraries",columns:{name:"Name",sensitiveWords:"Sensitive words",createDate:"Created",count:"Count",actions:"Actions"},toolbar:{create:"New library",searchPlaceholder:"Enter keyword"},actionEdit:"Edit",actionDelete:"Delete"},dashboard:{title:"Sensitive word libraries"},deleteConfirm:{title:"Delete this library?",content:"This library cannot be recovered after deletion.",okText:"Delete",cancelText:"Cancel"},createModal:{title:"New sensitive word library",cancel:"Cancel",confirm:"Confirm",nameRequired:"Please enter the library name.",namePlaceholder:"Enter name"},message:{saveSuccess:"Saved",createSuccess:"Library created.",deleteSuccess:"Deleted",downloadTemplateFail:"Template download failed",importSuccess:"Import succeeded",importFail:"Import failed"},downloadTemplateFilename:"sensitive-words-template",editor:{maxLengthHint:"Max {{max}} characters per word",maxLengthWarning:"Max {{max}} characters per word",duplicateWarning:"Duplicate word",configTemplateHint:"Please configure template download URL",selectFileWarning:"Please select a file first",importFailRetry:"Import failed, please retry",importCountSuccess:"Imported {{count}} words",parseFail:"Parse failed. Use csv or txt format.",readFileFail:"File read failed",searchPlaceholder:"Search sensitive words",inputPlaceholder:"Enter",add:"Add",import:"Import",cancel:"Cancel",save:"Save",confirm:"Confirm",downloadTemplate:"Download template",uploadModalTitle:"Upload file",uploadModalHint:"Download template first, then upload",uploadDragText:"Click or drag file here to upload",uploadDragHint:"Single file. csv or txt.",formatCsv:"csv",formatTxt:"txt"},server:{requestError:"Request failed, please try again.",noPermission:"Insufficient permission"}},D={toolbar:{searchPlaceholder:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u5165\u529B"},tagCell:{viewAllTitle:"\u5168{{total}}\u4EF6\u3001\u5148\u982D{{max}}\u4EF6\u3092\u8868\u793A",viewAllLink:"\u2026\u3059\u3079\u3066\u8868\u793A\uFF08+{{count}}\uFF09"},table:{label:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9",viewLabel:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u30E9\u30A4\u30D6\u30E9\u30EA",columns:{name:"\u540D\u524D",sensitiveWords:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9",createDate:"\u4F5C\u6210\u65E5",count:"\u4EF6\u6570",actions:"\u64CD\u4F5C"},toolbar:{create:"\u65B0\u898F\u30E9\u30A4\u30D6\u30E9\u30EA",searchPlaceholder:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u5165\u529B"},actionEdit:"\u7DE8\u96C6",actionDelete:"\u524A\u9664"},dashboard:{title:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u7BA1\u7406"},deleteConfirm:{title:"\u3053\u306E\u30E9\u30A4\u30D6\u30E9\u30EA\u3092\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",content:"\u524A\u9664\u3059\u308B\u3068\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093\u3002",okText:"\u524A\u9664",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB"},createModal:{title:"\u65B0\u898F\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u30E9\u30A4\u30D6\u30E9\u30EA",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",confirm:"\u78BA\u8A8D",nameRequired:"\u30E9\u30A4\u30D6\u30E9\u30EA\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",namePlaceholder:"\u5165\u529B"},message:{saveSuccess:"\u4FDD\u5B58\u3057\u307E\u3057\u305F",createSuccess:"\u30E9\u30A4\u30D6\u30E9\u30EA\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002",deleteSuccess:"\u524A\u9664\u3057\u307E\u3057\u305F",downloadTemplateFail:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F",importSuccess:"\u30A4\u30F3\u30DD\u30FC\u30C8\u3057\u307E\u3057\u305F",importFail:"\u30A4\u30F3\u30DD\u30FC\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F"},downloadTemplateFilename:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",editor:{maxLengthHint:"1\u8A9E\u3042\u305F\u308A{{max}}\u6587\u5B57\u307E\u3067",maxLengthWarning:"1\u8A9E\u3042\u305F\u308A{{max}}\u6587\u5B57\u307E\u3067",duplicateWarning:"\u540C\u3058\u8A9E\u304C\u65E2\u306B\u3042\u308A\u307E\u3059",configTemplateHint:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9URL\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",selectFileWarning:"\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",importFailRetry:"\u30A4\u30F3\u30DD\u30FC\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",importCountSuccess:"{{count}}\u8A9E\u3092\u30A4\u30F3\u30DD\u30FC\u30C8\u3057\u307E\u3057\u305F",parseFail:"\u89E3\u6790\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002csv \u307E\u305F\u306F txt \u5F62\u5F0F\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",readFileFail:"\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",searchPlaceholder:"\u30BB\u30F3\u30B7\u30C6\u30A3\u30D6\u30EF\u30FC\u30C9\u3092\u691C\u7D22",inputPlaceholder:"\u5165\u529B",add:"\u8FFD\u52A0",import:"\u30A4\u30F3\u30DD\u30FC\u30C8",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",save:"\u4FDD\u5B58",confirm:"\u78BA\u8A8D",downloadTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",uploadModalTitle:"\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",uploadModalHint:"\u5148\u306B\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u304B\u3089\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",uploadDragText:"\u30AF\u30EA\u30C3\u30AF\u307E\u305F\u306F\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",uploadDragHint:"1\u30D5\u30A1\u30A4\u30EB\u3002csv \u307E\u305F\u306F txt\u3002",formatCsv:"csv",formatTxt:"txt"},server:{requestError:"\u30EA\u30AF\u30A8\u30B9\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",noPermission:"\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093"}},B={zh:o,en:E,ja:D};function d(u){return B[u]??o}function p(u,t){return u.replace(/\{\{(\w+)\}\}/g,(e,F)=>String(t[F]??""))}const s=l.createContext({locale:"zh",messages:o,getMessage:u=>{const t=u.split(".");let e=o;for(const F of t)e=e==null?void 0:e[F];return typeof e=="string"?e:u}});function f(){return l.useContext(s)}function g({locale:u,messages:t,children:e}){const F=l.useMemo(()=>{const r=d(u),i=t?{...r,...t}:r;return{locale:u,messages:i,getMessage:n=>{const c=n.split(".");let a=i;for(const C of c)a=a==null?void 0:a[C];return typeof a=="string"?a:n}}},[u,t]);return l.createElement(s.Provider,{value:F},e)}export{g as S,s as a,d as g,p as i,f as u};
@@ -1 +0,0 @@
1
- import a from"react";const F={views:{directDB:{label:"\u6570\u636E\u8868\u7BA1\u7406",columns:{name:"\u6570\u636E\u8868\u82F1\u6587\u540D\u79F0",cnname:"\u6570\u636E\u8868\u4E2D\u6587\u540D\u79F0",colcount:"\u5B57\u6BB5\u6570",count:"\u6570\u636E\u91CF",actions:"\u64CD\u4F5C"},toolbar:{search:"\u641C\u7D22",config:"\u914D\u7F6E"}},dataTable:{label:"\u6570\u636E\u8868\u7BA1\u7406",columns:{name:"\u6587\u4EF6\u540D",description:"\u63CF\u8FF0",descriptionHelp:"\u6253\u5F00\u81EA\u52A8\u751F\u6210\u63CF\u8FF0\u5F00\u5173\u540E\uFF0C\u82E5\u63CF\u8FF0\u672A\u6B63\u5E38\u751F\u6210\uFF0C\u5219\u63CF\u8FF0\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u5982\u60A8\u4ECD\u7136\u9700\u8981\u63CF\u8FF0\uFF0C\u5219\u9700\u8981\u624B\u52A8\u6DFB\u52A0",count:"\u6570\u636E\u91CF",status:"\u5BFC\u5165\u72B6\u6001",importStatus:"\u8FFD\u52A0\u63D0\u793A",createdAt:"\u521B\u5EFA\u65F6\u95F4",updatedAt:"\u66F4\u65B0\u65F6\u95F4",actions:"\u64CD\u4F5C"},toolbar:{upload:"\u4E0A\u4F20\u6570\u636E\u6587\u4EF6",search:"\u641C\u7D22",config:"\u914D\u7F6E"},subTable:{name:"\u8FFD\u52A0\u6587\u4EF6\u540D",count:"\u6570\u636E\u91CF",status:"\u5BFC\u5165\u72B6\u6001",createdAt:"\u521B\u5EFA\u65F6\u95F4",updatedAt:"\u66F4\u6539\u65F6\u95F4",actions:"\u64CD\u4F5C"}}},actions:{view:"\u67E5\u770B",editConfig:"\u4FEE\u6539\u914D\u7F6E",appendData:"\u8FFD\u52A0\u6570\u636E",reImport:"\u91CD\u65B0\u5BFC\u5165",delete:"\u5220\u9664",deleteSub:"\u5220\u9664",uploadDataFile:"\u4E0A\u4F20\u6570\u636E\u6587\u4EF6"},drawer:{uploadTitle:"\u4E0A\u4F20\u6570\u636E\u6587\u4EF6",appendTitle:"\u8FFD\u52A0\u6570\u636E",editConfigTitle:"\u4FEE\u6539\u6570\u636E\u914D\u7F6E"},confirm:{deleteDatabaseTitle:"\u786E\u8BA4\u5220\u9664\u6570\u636E\u5E93\uFF1F",deleteDatabaseContent:"\u8BE5\u6570\u636E\u8868\u53CA\u5176\u8FFD\u52A0\u6570\u636E\u90FD\u5C06\u88AB\u5220\u9664\u4E14\u65E0\u6CD5\u6062\u590D",deleteDataTitle:"\u786E\u8BA4\u5220\u9664\u6570\u636E\uFF1F",deleteDataContent:"\u5220\u9664\u540E\uFF0C\u8BE5\u6570\u636E\u5C06\u65E0\u6CD5\u6062\u590D",okTextDelete:"\u5220\u9664",cancelText:"\u53D6\u6D88"},message:{deleteSuccess:"\u5220\u9664\u6210\u529F",deleteFailed:"\u5220\u9664\u5931\u8D25",deleteDataFailed:"\u5220\u9664\u6570\u636E\u5931\u8D25",deleteAppendSuccess:"\u8FFD\u52A0\u6587\u4EF6\u6570\u636E\u5220\u9664\u6210\u529F",editConfigSuccess:"\u4FEE\u6539\u914D\u7F6E\u6210\u529F",editConfigFailed:"\u4FEE\u6539\u914D\u7F6E\u5931\u8D25"}},d={views:{directDB:{label:"Table management",columns:{name:"Table name (EN)",cnname:"Table name (CN)",colcount:"Columns",count:"Rows",actions:"Actions"},toolbar:{search:"Search",config:"Settings"}},dataTable:{label:"Table management",columns:{name:"File name",description:"Description",descriptionHelp:"When auto description is enabled but not generated, the description will be empty and you can fill it manually.",count:"Rows",status:"Import status",importStatus:"Append status",createdAt:"Created at",updatedAt:"Updated at",actions:"Actions"},toolbar:{upload:"Upload data file",search:"Search",config:"Settings"},subTable:{name:"Append file name",count:"Rows",status:"Import status",createdAt:"Created at",updatedAt:"Updated at",actions:"Actions"}}},actions:{view:"View",editConfig:"Edit config",appendData:"Append data",reImport:"Re-import",delete:"Delete",deleteSub:"Delete",uploadDataFile:"Upload data file"},drawer:{uploadTitle:"Upload data file",appendTitle:"Append data",editConfigTitle:"Edit table config"},confirm:{deleteDatabaseTitle:"Delete database table?",deleteDatabaseContent:"This table and its appended data will be deleted and cannot be recovered.",deleteDataTitle:"Delete data?",deleteDataContent:"This data will be permanently deleted.",okTextDelete:"Delete",cancelText:"Cancel"},message:{deleteSuccess:"Deleted successfully",deleteFailed:"Delete failed",deleteDataFailed:"Delete failed",deleteAppendSuccess:"Append file data deleted",editConfigSuccess:"Config updated",editConfigFailed:"Config update failed"}},C={views:{directDB:{label:"\u30C6\u30FC\u30D6\u30EB\u7BA1\u7406",columns:{name:"\u30C6\u30FC\u30D6\u30EB\u540D\uFF08\u82F1\u8A9E\uFF09",cnname:"\u30C6\u30FC\u30D6\u30EB\u540D\uFF08\u4E2D\u56FD\u8A9E\uFF09",colcount:"\u5217\u6570",count:"\u30C7\u30FC\u30BF\u91CF",actions:"\u64CD\u4F5C"},toolbar:{search:"\u691C\u7D22",config:"\u8A2D\u5B9A"}},dataTable:{label:"\u30C6\u30FC\u30D6\u30EB\u7BA1\u7406",columns:{name:"\u30D5\u30A1\u30A4\u30EB\u540D",description:"\u8AAC\u660E",descriptionHelp:"\u81EA\u52D5\u8AAC\u660E\u751F\u6210\u304C\u6709\u52B9\u3067\u3082\u8AAC\u660E\u304C\u751F\u6210\u3055\u308C\u3066\u3044\u306A\u3044\u5834\u5408\u3001\u8AAC\u660E\u306F\u7A7A\u306B\u306A\u308A\u307E\u3059\u3002\u305D\u306E\u5834\u5408\u306F\u624B\u52D5\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",count:"\u30C7\u30FC\u30BF\u91CF",status:"\u30A4\u30F3\u30DD\u30FC\u30C8\u72B6\u614B",importStatus:"\u8FFD\u52A0\u30B9\u30C6\u30FC\u30BF\u30B9",createdAt:"\u4F5C\u6210\u65E5\u6642",updatedAt:"\u66F4\u65B0\u65E5\u6642",actions:"\u64CD\u4F5C"},toolbar:{upload:"\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",search:"\u691C\u7D22",config:"\u8A2D\u5B9A"},subTable:{name:"\u8FFD\u52A0\u30D5\u30A1\u30A4\u30EB\u540D",count:"\u30C7\u30FC\u30BF\u91CF",status:"\u30A4\u30F3\u30DD\u30FC\u30C8\u72B6\u614B",createdAt:"\u4F5C\u6210\u65E5\u6642",updatedAt:"\u66F4\u65B0\u65E5\u6642",actions:"\u64CD\u4F5C"}}},actions:{view:"\u8868\u793A",editConfig:"\u8A2D\u5B9A\u3092\u7DE8\u96C6",appendData:"\u30C7\u30FC\u30BF\u3092\u8FFD\u52A0",reImport:"\u518D\u30A4\u30F3\u30DD\u30FC\u30C8",delete:"\u524A\u9664",deleteSub:"\u524A\u9664",uploadDataFile:"\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9"},drawer:{uploadTitle:"\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",appendTitle:"\u30C7\u30FC\u30BF\u3092\u8FFD\u52A0",editConfigTitle:"\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u3092\u7DE8\u96C6"},confirm:{deleteDatabaseTitle:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deleteDatabaseContent:"\u3053\u306E\u30C6\u30FC\u30D6\u30EB\u3068\u305D\u306E\u8FFD\u52A0\u30C7\u30FC\u30BF\u306F\u524A\u9664\u3055\u308C\u3001\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002",deleteDataTitle:"\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deleteDataContent:"\u3053\u306E\u30C7\u30FC\u30BF\u306F\u5B8C\u5168\u306B\u524A\u9664\u3055\u308C\u307E\u3059\u3002",okTextDelete:"\u524A\u9664",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB"},message:{deleteSuccess:"\u524A\u9664\u3057\u307E\u3057\u305F",deleteFailed:"\u524A\u9664\u306B\u5931\u6557\u3057\u307E\u3057\u305F",deleteDataFailed:"\u30C7\u30FC\u30BF\u306E\u524A\u9664\u306B\u5931\u6557\u3057\u307E\u3057\u305F",deleteAppendSuccess:"\u8FFD\u52A0\u30D5\u30A1\u30A4\u30EB\u306E\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3057\u307E\u3057\u305F",editConfigSuccess:"\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",editConfigFailed:"\u8A2D\u5B9A\u306E\u66F4\u65B0\u306B\u5931\u6557\u3057\u307E\u3057\u305F"}},o={zh:F,en:d,ja:C};function i(u,e){const t=o[u]??F;return e?{...t,...e}:t}const n=a.createContext({locale:"zh",messages:F});function D(){return a.useContext(n)}function c({locale:u,messages:e,children:t}){const l=a.useMemo(()=>({locale:u,messages:i(u,e)}),[u,e]);return a.createElement(n.Provider,{value:l},t)}export{c as D,n as a,i as g,D as u};
@@ -1 +0,0 @@
1
- import n,{useContext as d,createContext as l}from"react";const B={colors:{primary:"#4E6EF2",secondary:"#6D86F5",success:"#52C41A",warning:"#FAAD14",error:"#F5222D",info:"#1890FF",background:"#F7F8FA",appBackground:"transparent",listBackground:"#F2F3F5",dashboardBackground:"#FFFFFF",dashboardMainBackground:"transparent",text:"#1D2129",textSecondary:"#4E5969",textTertiary:"#86909C",textInverse:"#FFFFFF",border:"#DDE0E5",borderWeak:"#E5E6EB",disabled:"#C9CDD4",disabledBackground:"#F5F7FA",disabledText:"#C9CDD4",shadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",primaryHover:"#6D86F5",primaryActive:"#2D4BE0",surfaceSubtle:"#F2F3F5",surfaceSelected:"#EEF3FE",btnPrimaryBg:"#4E6EF2",btnPrimaryBgHover:"#6D86F5",btnPrimaryBgActive:"#2D4BE0",btnPrimaryBgDisabled:"#F5F7FA",btnPrimaryText:"#FFFFFF",btnPrimaryTextDisabled:"#C9CDD4",btnSecondaryText:"#4E6EF2",btnSecondaryTextHover:"#4E6EF2",btnSecondaryTextActive:"#2D4BE0",btnSecondaryTextDisabled:"#C9CDD4",btnSecondaryBg:"#FFFFFF",btnSecondaryBgHover:"#EEF3FE",btnSecondaryBgActive:"#EEF3FE",btnSecondaryBgDisabled:"#F5F7FA",btnSecondaryBorder:"#4E6EF2",btnSecondaryBorderHover:"#6D86F5",btnSecondaryBorderActive:"#2D4BE0",btnSecondaryBorderDisabled:"#E5E6EB",btnTextText:"#4E6EF2",btnTextTextHover:"#6D86F5",btnTextTextActive:"#2D4BE0",btnTextTextDisabled:"#C9CDD4",tableBackground:"#FFFFFF",tableHeaderBg:"#F5F7FA",tableHeaderText:"#1D2129",tableHeaderDividerColor:"#E5E7EB",tableRowDividerColor:"#E5E7EB",tableFirstColumnBg:"#F7F9FC",tableLastColumnBg:"#F7F9FC",subTableBackground:"#F5F7FA",subTableHeaderBg:"#F5F7FA",tablePaginationDividerColor:"#E5E7EB",subTablePaginationDividerColor:"#E5E7EB",paginationBackground:"#FFFFFF",tagColor:"#1d70f5",tagBackground:"#ebf6ff",tagBorder:"#99caff",xviewerCardBorder:"#e5e6eb",xviewerCardBackground:"#FFFFFF",xviewerCardShadow:"0 2px 12px 0 rgba(0,0,0,0.07)",xviewerCardTitleColor:"#222222",xviewerCardDescBg:"#f9fafb",xviewerCardDescText:"#888888",xviewerCardMetaText:"#666666",tableActionText:"#1D4ED8",tableActionTextHover:"#1E40AF",dropdownBackground:"#FFFFFF",dropdownBorder:"#DEE2E6",dropdownShadow:"0 1px 3px rgba(0, 0, 0, 0.12)",xviewerCardMoreBackground:"#FFFFFF",xviewerCardMoreText:"#222222",xviewerCardMoreBorder:"#E5E7EB",xviewerCardMoreShadow:"0 2px 8px 0 rgba(0,0,0,0.08)",xviewerCardMoreDivider:"#F3F4F6",xviewerCardMoreItemHoverBg:"#F5F5F5"},space:{sidebar:"260px",size:"12px",radius:"4px",padding:"8px",margin:"8px",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.5",dashboardHeaderHeight:"38px",dashboardHeaderPadding:"0 0 8px 0",dashboardContentRadius:"4px",dashboardContentPadding:"16px",xviewerToolbarHeight:"52px",xviewerContainerPadding:"0",tableHeaderPadding:"0.5rem 0.75rem",tableHeaderDividerWidth:"1px",xviewerTabsGap:"8px",xviewerTabsPadding:"0px 0px 4px",xviewerCardsColumnGap:24,xviewerCardsRowGap:24,xviewerCardsPadding:"16px",subTableWrapperPadding:"8px",subTableInnerPadding:"0px 8px",tableRowHeight:"44px",subTableRowHeight:"40px",xviewerCardPadding:"18px 20px 16px 20px",xviewerCardContentGap:"4px",xviewerCardHeaderGap:"10px",xviewerCardHeaderRowGap:"12px",xviewerCardIconSize:"32px",xviewerCardHeaderMarginBottom:"6px",xviewerCardDescMinHeight:"45px",xviewerCardDescPadding:"6px 8px",xviewerCardDescRadius:"4px",xviewerCardActionsMarginTop:"12px",xviewerCardActionsGap:"8px",tableActionFontSize:"12px",dropdownItemGap:"4px",dropdownPadding:"4px 0",dropdownItemPadding:"8px 12px",xviewerCardMorePadding:"4px 0",xviewerCardMoreItemPadding:"4px 12px",xviewerCardMoreWidth:"128px",xviewerCardMoreOffsetX:"0px",xviewerCardMoreOffsetY:"0px",xviewerCardMoreIconPadding:"0px",xviewerFuzzySearchWidth:"200px",xviewerFuzzySearchHeight:"36px"},fonts:{body:{size:"14px",weight:"normal",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},heading:{size:"16px",weight:"600",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},xs:{size:"10px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},sm:{size:"12px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},md:{size:"14px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},lg:{size:"16px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},"2lg":{size:"24px",weight:"400",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"}},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}};function D(u,e){if(!e)return u;const a={...u,...e};return e.theme&&u.theme&&(a.theme={...u.theme,...e.theme,colors:{...u.theme.colors,...e.theme.colors},space:{...u.theme.space,...e.theme.space},icons:{...u.theme.icons,...e.theme.icons},fonts:{...u.theme.fonts,...e.theme.fonts},others:{...u.theme.others,...e.theme.others}}),a}const E=l({theme:B,mode:"light"}),g=()=>d(E),i={header:{titleEdit:"\u7F16\u8F91\u4F1A\u8BDD\u52A9\u624B",titleNew:"\u65B0\u5EFA\u4F1A\u8BDD\u52A9\u624B",confirm:"\u786E\u5B9A"},form:{labels:{assistantName:"\u52A9\u624B\u540D\u79F0",qaModel:"\u95EE\u7B54\u6A21\u578B",planModel:"\u89C4\u5212\u6A21\u578B",multiModel:"\u4E0A\u4F20\u6587\u6863\u95EE\u7B54\u591A\u6A21\u6001\u6A21\u578B",rerankModel:"Rerank\u6A21\u578B",embeddingModel:"\u5411\u91CF\u89E3\u6790\u6A21\u578B",prologue:"\u5F00\u573A\u767D",systemPrompt:"\u63D0\u793A\u8BCD",defaultAssistant:"\u9009\u62E9\u4E3A\u9ED8\u8BA4\u52A9\u624B",recommendModel:"\u95EE\u9898\u63A8\u8350\u6A21\u578B",searchPolicy:"\u68C0\u7D22\u7B56\u7565",temperature:"\u6E29\u5EA6",diversity:"\u591A\u6837\u6027",topK:"\u53EC\u56DE\u6570",scoreThreshold:"\u76F8\u4F3C\u5EA6\u9608\u503C",maxTokens:"\u6700\u5927\u4EE4\u724C\u6570",maxRound:"\u4E0A\u4E0B\u6587\u6700\u5927\u8F6E\u6570",enabledFaq:"\u5F00\u542FFAQ\u4F18\u5148",enabledGraph:"\u542F\u7528\u56FE\u8C31\u589E\u5F3A",dependOnKb:"\u5F00\u542F\u5F3A\u4F01\u4E1A\u77E5\u8BC6\u4F9D\u8D56",questionRewrite:"\u5F00\u542F\u95EE\u9898\u6539\u5199",traceSource:"\u5F00\u542F\u6EAF\u6E90",traceStrategy:"\u6EAF\u6E90\u7B56\u7565",allowDownloadTrace:"\u5141\u8BB8\u4E0B\u8F7D\u6EAF\u6E90\u6587\u4EF6"},placeholders:{input:"\u8BF7\u8F93\u5165",select:"\u8BF7\u9009\u62E9",prologue:"\u8BF7\u8F93\u5165\u5F00\u573A\u767D",promptExample:"\u4F8B\u5982\uFF1A"},validation:{assistantNameRequired:"\u8BF7\u8F93\u5165\u52A9\u624B\u540D\u79F0",nameDuplicate:"\u540D\u79F0\u91CD\u590D\uFF01",nameDuplicateShort:"\u540D\u79F0\u91CD\u590D",selectModel:"\u8BF7\u9009\u62E9{{model}}",noModelAvailable:"\u6682\u65E0\u53EF\u7528\u6A21\u578B\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458",modelUnavailable:"\u6A21\u578B\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458",validNumberRequired:"\u8BF7\u8F93\u5165\u6709\u6548\u6570\u5B57",numbersOnly:"\u53EA\u80FD\u8F93\u5165\u6570\u5B57",numberRange:"\u8BF7\u8F93\u5165{{min}}\u5230{{max}}\u4E4B\u95F4\u7684\u6570\u5B57"}},paragraph:{retrievalParams:"\u68C0\u7D22\u4E0E\u751F\u6210\u53C2\u6570",featureSwitch:"\u529F\u80FD\u5F00\u5173",resourceBind:"\u8D44\u6E90\u7ED1\u5B9A"},searchPolicyOptions:[{label:"\u6DF7\u5408\u68C0\u7D22",value:1},{label:"\u5168\u6587\u68C0\u7D22",value:2},{label:"\u8BED\u4E49\u68C0\u7D22",value:3}],traceabilityStrategy:[{label:"\u89C4\u5219\u6EAF\u6E90",value:!1},{label:"\u5927\u6A21\u578B\u6EAF\u6E90",value:!0}],explanation:{prompt:"\u63D0\u793A\u8BCD\u7528\u4E8E\u6307\u5B9A\u804A\u5929\u7684\u80CC\u666F\u548C\u4E0A\u4E0B\u6587\uFF0C\u6216\u8005\u8BA9\u52A9\u624B\u91C7\u53D6\u67D0\u4E2A\u4EBA\u683C\u6765\u56DE\u7B54\u4F60\u7684\u95EE\u9898\uFF1B",dependOnKb:"\u5F00\u5173\u5F00\u542F\uFF0C\u5219\u82E5\u7CFB\u7EDF\u672A\u5728\u77E5\u8BC6\u5E93\u3001\u6570\u636E\u5E93\u7B49\u4F01\u4E1A\u77E5\u8BC6\u6570\u636E\u8303\u56F4\u5185\u68C0\u7D22\u5230\u7B54\u6848\uFF0C\u5219\u76F4\u63A5\u62D2\u7EDD\u56DE\u7B54\u76F8\u5173\u95EE\u9898\uFF1B"},defaultPrompt:'\u4F60\u662F\u4E00\u4E2A\u667A\u80FD\u52A9\u624B\uFF0C\u8BF7\u603B\u7ED3\u77E5\u8BC6\u5E93\u7684\u5185\u5BB9\u6765\u56DE\u7B54\u95EE\u9898,\u8BF7\u5217\u4E3E\u77E5\u8BC6\u5E93\u4E2D\u7684\u6570\u636E\u8BE6\u7EC6\u56DE\u7B54\u3002\u5F53\u6240\u6709\u77E5\u8BC6\u5E93\u5185\u5BB9\u90FD\u4E0E\u95EE\u9898\u65E0\u5173\u65F6\uFF0C\u4F60\u7684\u56DE\u7B54\u5FC5\u987B\u5305\u62EC"\u77E5\u8BC6\u5E93\u4E2D\u672A\u627E\u5230\u60A8\u8981\u7684\u7B54\u6848!"',message:{updateSuccess:"\u66F4\u65B0\u52A9\u624B\u914D\u7F6E\u6210\u529F",createSuccess:"\u65B0\u589E\u52A9\u624B\u914D\u7F6E\u6210\u529F"},paramsValidation:{validNumberRequired:"\u8BF7\u8F93\u5165\u6709\u6548\u6570\u5B57",numbersOnly:"\u53EA\u80FD\u8F93\u5165\u6570\u5B57",numberRange:"\u8BF7\u8F93\u5165{{min}}\u5230{{max}}\u4E4B\u95F4\u7684\u6570\u5B57"}},c={header:{titleEdit:"Edit session assistant",titleNew:"New session assistant",confirm:"Confirm"},form:{labels:{assistantName:"Assistant name",qaModel:"QA model",planModel:"Planning model",multiModel:"Upload document QA multimodal model",rerankModel:"Rerank model",embeddingModel:"Embedding model",prologue:"Prologue",systemPrompt:"System prompt",defaultAssistant:"Set as default assistant",recommendModel:"Question recommendation model",searchPolicy:"Search policy",temperature:"Temperature",diversity:"Diversity",topK:"Top K",scoreThreshold:"Score threshold",maxTokens:"Max tokens",maxRound:"Max conversation rounds",enabledFaq:"Enable FAQ priority",enabledGraph:"Enable graph enhancement",dependOnKb:"Enable strong enterprise knowledge dependency",questionRewrite:"Enable question rewriting",traceSource:"Enable traceability",traceStrategy:"Traceability strategy",allowDownloadTrace:"Allow downloading trace files"},placeholders:{input:"Please enter",select:"Please select",prologue:"Enter prologue",promptExample:"e.g. "},validation:{assistantNameRequired:"Please enter assistant name",nameDuplicate:"Name already exists!",nameDuplicateShort:"Duplicate name",selectModel:"Please select {{model}}",noModelAvailable:"No models available. Contact administrator.",modelUnavailable:"Model unavailable. Contact administrator.",validNumberRequired:"Please enter a valid number",numbersOnly:"Numbers only",numberRange:"Please enter a number between {{min}} and {{max}}"}},paragraph:{retrievalParams:"Retrieval & generation parameters",featureSwitch:"Feature switches",resourceBind:"Resource binding"},searchPolicyOptions:[{label:"Hybrid search",value:1},{label:"Full-text search",value:2},{label:"Semantic search",value:3}],traceabilityStrategy:[{label:"Rule-based traceability",value:!1},{label:"LLM-based traceability",value:!0}],explanation:{prompt:"The prompt defines the chat context and persona for the assistant;",dependOnKb:"When enabled, the assistant will refuse to answer if no relevant content is found in knowledge bases or databases."},defaultPrompt:'You are a helpful assistant. Summarize knowledge base content to answer questions. When content is irrelevant, include "Knowledge base does not contain the answer!" in your response.',message:{updateSuccess:"Assistant config updated",createSuccess:"Assistant config created"},paramsValidation:{validNumberRequired:"Please enter a valid number",numbersOnly:"Numbers only",numberRange:"Please enter a number between {{min}} and {{max}}"}},C={header:{titleEdit:"\u30BB\u30C3\u30B7\u30E7\u30F3\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u3092\u7DE8\u96C6",titleNew:"\u65B0\u898F\u30BB\u30C3\u30B7\u30E7\u30F3\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8",confirm:"\u78BA\u5B9A"},form:{labels:{assistantName:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u540D",qaModel:"QA\u30E2\u30C7\u30EB",planModel:"\u8A08\u753B\u30E2\u30C7\u30EB",multiModel:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8QA\u30DE\u30EB\u30C1\u30E2\u30FC\u30C0\u30EB\u30E2\u30C7\u30EB",rerankModel:"Rerank\u30E2\u30C7\u30EB",embeddingModel:"\u57CB\u3081\u8FBC\u307F\u30E2\u30C7\u30EB",prologue:"\u30D7\u30ED\u30ED\u30FC\u30B0",systemPrompt:"\u30B7\u30B9\u30C6\u30E0\u30D7\u30ED\u30F3\u30D7\u30C8",defaultAssistant:"\u30C7\u30D5\u30A9\u30EB\u30C8\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u3059\u308B",recommendModel:"\u8CEA\u554F\u63A8\u85A6\u30E2\u30C7\u30EB",searchPolicy:"\u691C\u7D22\u6226\u7565",temperature:"\u6E29\u5EA6",diversity:"\u591A\u69D8\u6027",topK:"\u30C8\u30C3\u30D7K",scoreThreshold:"\u30B9\u30B3\u30A2\u95BE\u5024",maxTokens:"\u6700\u5927\u30C8\u30FC\u30AF\u30F3\u6570",maxRound:"\u6700\u5927\u4F1A\u8A71\u30BF\u30FC\u30F3\u6570",enabledFaq:"FAQ\u512A\u5148\u3092\u6709\u52B9\u5316",enabledGraph:"\u30B0\u30E9\u30D5\u5897\u5F37\u3092\u6709\u52B9\u5316",dependOnKb:"\u4F01\u696D\u30CA\u30EC\u30C3\u30B8\u5F37\u4F9D\u5B58\u3092\u6709\u52B9\u5316",questionRewrite:"\u8CEA\u554F\u66F8\u304D\u63DB\u3048\u3092\u6709\u52B9\u5316",traceSource:"\u30C8\u30EC\u30FC\u30B5\u30D3\u30EA\u30C6\u30A3\u3092\u6709\u52B9\u5316",traceStrategy:"\u30C8\u30EC\u30FC\u30B5\u30D3\u30EA\u30C6\u30A3\u6226\u7565",allowDownloadTrace:"\u30C8\u30EC\u30FC\u30B9\u30D5\u30A1\u30A4\u30EB\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u8A31\u53EF"},placeholders:{input:"\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",select:"\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",prologue:"\u30D7\u30ED\u30ED\u30FC\u30B0\u3092\u5165\u529B",promptExample:"\u4F8B\uFF1A"},validation:{assistantNameRequired:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",nameDuplicate:"\u540D\u524D\u304C\u91CD\u8907\u3057\u3066\u3044\u307E\u3059\uFF01",nameDuplicateShort:"\u540D\u524D\u91CD\u8907",selectModel:"{{model}}\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",noModelAvailable:"\u5229\u7528\u53EF\u80FD\u306A\u30E2\u30C7\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u7BA1\u7406\u8005\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002",modelUnavailable:"\u30E2\u30C7\u30EB\u304C\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u7BA1\u7406\u8005\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002",validNumberRequired:"\u6709\u52B9\u306A\u6570\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",numbersOnly:"\u6570\u5B57\u306E\u307F\u5165\u529B\u53EF\u80FD\u3067\u3059",numberRange:"{{min}}\u304B\u3089{{max}}\u306E\u6570\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}},paragraph:{retrievalParams:"\u691C\u7D22\u30FB\u751F\u6210\u30D1\u30E9\u30E1\u30FC\u30BF",featureSwitch:"\u6A5F\u80FD\u30B9\u30A4\u30C3\u30C1",resourceBind:"\u30EA\u30BD\u30FC\u30B9\u30D0\u30A4\u30F3\u30C9"},searchPolicyOptions:[{label:"\u30CF\u30A4\u30D6\u30EA\u30C3\u30C9\u691C\u7D22",value:1},{label:"\u5168\u6587\u691C\u7D22",value:2},{label:"\u30BB\u30DE\u30F3\u30C6\u30A3\u30C3\u30AF\u691C\u7D22",value:3}],traceabilityStrategy:[{label:"\u30EB\u30FC\u30EB\u30D9\u30FC\u30B9",value:!1},{label:"LLM\u30D9\u30FC\u30B9",value:!0}],explanation:{prompt:"\u30D7\u30ED\u30F3\u30D7\u30C8\u306F\u30C1\u30E3\u30C3\u30C8\u306E\u80CC\u666F\u3068\u6587\u8108\u3001\u307E\u305F\u306F\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306E\u30DA\u30EB\u30BD\u30CA\u3092\u6307\u5B9A\u3057\u307E\u3059\uFF1B",dependOnKb:"\u30AA\u30F3\u306B\u3059\u308B\u3068\u3001\u30CA\u30EC\u30C3\u30B8\u30D9\u30FC\u30B9\u3084\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3067\u56DE\u7B54\u304C\u898B\u3064\u304B\u3089\u306A\u3044\u5834\u5408\u3001\u95A2\u9023\u8CEA\u554F\u3078\u306E\u56DE\u7B54\u3092\u62D2\u5426\u3057\u307E\u3059\uFF1B"},defaultPrompt:"\u3042\u306A\u305F\u306F\u30A4\u30F3\u30C6\u30EA\u30B8\u30A7\u30F3\u30C8\u306A\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u3067\u3059\u3002\u30CA\u30EC\u30C3\u30B8\u30D9\u30FC\u30B9\u306E\u5185\u5BB9\u3092\u307E\u3068\u3081\u3066\u8CEA\u554F\u306B\u7B54\u3048\u3066\u304F\u3060\u3055\u3044\u3002\u95A2\u9023\u3059\u308B\u5185\u5BB9\u304C\u306A\u3044\u5834\u5408\u306F\u3001\u56DE\u7B54\u306B\u300C\u30CA\u30EC\u30C3\u30B8\u30D9\u30FC\u30B9\u306B\u8A72\u5F53\u3059\u308B\u56DE\u7B54\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF01\u300D\u3092\u542B\u3081\u3066\u304F\u3060\u3055\u3044\u3002",message:{updateSuccess:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",createSuccess:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u8A2D\u5B9A\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F"},paramsValidation:{validNumberRequired:"\u6709\u52B9\u306A\u6570\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",numbersOnly:"\u6570\u5B57\u306E\u307F\u5165\u529B\u53EF\u80FD\u3067\u3059",numberRange:"{{min}}\u304B\u3089{{max}}\u306E\u6570\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}},p={zh:i,en:c,ja:C};function b(u,e){return u.replace(/\{\{(\w+)\}\}/g,(a,t)=>String(e[t]??""))}function m(u,e){const a=p[u]??i;return e?{...a,...e}:a}function o(u,e){const a=e.split(".");let t=u;for(const r of a)t=t==null?void 0:t[r];return typeof t=="string"?t:e}const s=n.createContext({locale:"zh",messages:i,getMessage:u=>o(i,u)});function x(){return n.useContext(s)}function h({locale:u,messages:e,children:a}){const t=n.useMemo(()=>{const r=m(u,e);return{locale:u,messages:r,getMessage:F=>o(r,F)}},[u,e]);return n.createElement(s.Provider,{value:t,children:a})}export{h as A,s as a,g as f,m as g,b as i,B as p,x as u,D as v};
@@ -1 +0,0 @@
1
- import a from"react";const l={common:{loading:"\u52A0\u8F7D\u4E2D..."},dashboard:{title:"\u6A21\u578B\u7BA1\u7406"},table:{viewLabel:"\u6A21\u578B",columns:{modelName:"\u6A21\u578B\u540D\u79F0",modelProtocol:"\u6A21\u578B\u4F20\u8F93\u534F\u8BAE",type:"\u4F7F\u7528\u7C7B\u578B",dec:"\u8BF4\u660E",status:"\u72B6\u6001",actions:"\u64CD\u4F5C"},statusHelpText:"\u5F53\u524D\u6A21\u578B\u72B6\u6001\u4E3A\u521D\u6B21\u65B0\u589E\u6821\u9A8C\u72B6\u6001\uFF0C\u82E5\u6A21\u578B\u4E0B\u7EBF\uFF0C\u6B64\u72B6\u6001\u4E0D\u4F1A\u4E3B\u52A8\u66F4\u65B0\uFF0C\u9700\u624B\u52A8\u6267\u884C\u6A21\u578B\u5220\u9664",toolbar:{add:"\u65B0\u5EFA",test:"\u6A21\u578B\u72B6\u6001\u68C0\u6D4B",replace:"\u6A21\u578B\u66FF\u6362"},actionEdit:"\u7F16\u8F91",actionAuth:"\u6388\u6743",actionDelete:"\u5220\u9664",tooltipChecking:"\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E",tooltipNoPermission:"\u89D2\u8272\u65E0\u6743\u9650\u64CD\u4F5C"},status:{available:"\u53EF\u7528",unavailable:"\u4E0D\u53EF\u7528",checking:"\u68C0\u6D4B\u4E2D"},empty:{noDataHint:"\u6682\u65E0\u6570\u636E\uFF0C\u8BF7\u5148\u65B0\u5EFA\u6A21\u578B",createModelBtn:"\u65B0\u5EFA\u6A21\u578B"},drawer:{titleNew:"\u65B0\u5EFA",titleEdit:"\u7F16\u8F91",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4"},form:{labels:{modelName:"\u6A21\u578B\u540D\u79F0",modelIde:"\u6A21\u578BID",apiKey:"APIKey",url:"\u8BF7\u6C42URL",modelProtocol:"\u6A21\u578B\u4F20\u8F93\u534F\u8BAE",type:"\u4F7F\u7528\u7C7B\u578B",maxTokens:"\u4E0A\u4E0B\u6587\u957F\u5EA6",dec:"\u8BF4\u660E"},placeholders:{modelName:"\u8BF7\u8F93\u5165\u6A21\u578B\u540D\u79F0",modelIde:"\u8BF7\u8F93\u5165\u6A21\u578BID",apiKey:"\u8BF7\u8F93\u5165APIKey",url:"\u8BF7\u8F93\u5165\u8BF7\u6C42URL"},maxTokensHelpText:"\u8BF7\u5411\u6A21\u578B\u90E8\u7F72\u6216\u8FD0\u7EF4\u4EBA\u5458\u786E\u8BA4\u5F53\u524D\u6A21\u578B\u7684\u6700\u5927\u4E0A\u4E0B\u6587\u957F\u5EA6\uFF08Max Tokens / Context Length\uFF09\uFF0C\u5E76\u786E\u8BA4\u63A8\u7406\u670D\u52A1\uFF08\u5982 vLLM\uFF09\u662F\u5426\u914D\u7F6E\u4E86\u989D\u5916\u7684\u8F93\u5165\u957F\u5EA6\u9650\u5236"},replaceModal:{title:"\u6A21\u578B\u66FF\u6362",warningParagraph:"\u5982\u9700\u66F4\u6362\u6A21\u578B\uFF0C\u5728\u4E00\u952E\u66FF\u6362\u65F6\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u66F4\u65B0\u77E5\u8BC6\u89E3\u6790\u914D\u7F6E\u3001\u68C0\u7D22\u6D4B\u8BD5\u548C\u52A9\u624B\u914D\u7F6E\u4E2D\u7684\u6A21\u578B\u3002\u82E5\u66FF\u6362\u7684\u662F\u6587\u6863\u89E3\u6790\u7528\u7684Embedding\u6A21\u578B\uFF0C\u5219\u4F7F\u7528\u8BE5\u6A21\u578B\u7684\u6587\u6863\u5C06\u5168\u90E8\u91CD\u65B0\u6392\u961F\u89E3\u6790\uFF0C\u72B6\u6001\u53D8\u4E3A\u201C\u89E3\u6790\u4E2D\u201D\uFF0C\u4E14\u672A\u89E3\u6790\u5B8C\u6210\u7684\u6587\u6863\u6682\u4E0D\u53EF\u68C0\u7D22\uFF01",sourceLabel:"\u6A21\u578B\u540D\u79F0",targetLabel:"\u66FF\u6362\u4E3A",placeholderSelect:"\u8BF7\u9009\u62E9",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",messageSuccess:"\u6A21\u578B\u66FF\u6362\u6210\u529F"},message:{testSuccess:"\u6A21\u578B\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u72B6\u6001\u66F4\u65B0\uFF01",deleteSuccess:"\u5220\u9664\u6210\u529F",createSuccess:"\u6A21\u578B\u65B0\u589E\u6210\u529F\uFF01",editSuccess:"\u6A21\u578B\u7F16\u8F91\u6210\u529F\uFF01"},deleteConfirm:{title:"\u786E\u8BA4\u5220\u9664\uFF1F",content:'\u786E\u5B9A\u8981\u5220\u9664\u6A21\u578B "{{name}}" \u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002',titleWhenInUse:"\u5220\u9664\u6A21\u578B",contentWhenInUse:"\u5F53\u524D\u6A21\u578B\u5728\u7CFB\u7EDF\u5185\u5DF2\u88AB\u914D\u7F6E\u4F7F\u7528\uFF0C\u5220\u9664\u53EF\u80FD\u5F71\u54CD\u6587\u6863\u89E3\u6790\u3001\u95EE\u7B54\u3001\u591A\u6A21\u6001\u80FD\u529B\u4F7F\u7528\u7B49\uFF0C\u8BF7\u60A8\u5148\u4F7F\u7528\u201C\u6A21\u578B\u4E00\u952E\u66FF\u6362\u201D\u80FD\u529B\u5C06\u8BE5\u6A21\u578B\u66FF\u6362\u4E3A\u540C\u7C7B\u578B\u6A21\u578B\uFF0C\u518D\u5220\u9664\u6A21\u578B",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",deleteOkText:"\u5220\u9664"},server:{requestError:"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",noPermission:"\u6CA1\u6709\u8DB3\u591F\u6743\u9650",notLoggedIn:"\u672A\u767B\u5F55\u6216token\u5DF2\u8FC7\u671F"}},s={common:{loading:"Loading..."},dashboard:{title:"Model management"},table:{viewLabel:"Models",columns:{modelName:"Model name",modelProtocol:"Protocol",type:"Use type",dec:"Description",status:"Status",actions:"Actions"},statusHelpText:"Status is validated on first add; if the model goes offline, it will not update automatically. Delete the model manually if needed.",toolbar:{add:"Add",test:"Test model status",replace:"Replace model"},actionEdit:"Edit",actionAuth:"Authorize",actionDelete:"Delete",tooltipChecking:"Checking, please wait",tooltipNoPermission:"No permission"},status:{available:"Available",unavailable:"Unavailable",checking:"Checking"},empty:{noDataHint:"No data. Add a model first.",createModelBtn:"Add model"},drawer:{titleNew:"Add",titleEdit:"Edit",cancel:"Cancel",confirm:"Confirm"},form:{labels:{modelName:"Model name",modelIde:"Model ID",apiKey:"API Key",url:"Request URL",modelProtocol:"Protocol",type:"Use type",maxTokens:"Context length",dec:"Description"},placeholders:{modelName:"Enter model name",modelIde:"Enter model ID",apiKey:"Enter API Key",url:"Enter request URL"},maxTokensHelpText:"Confirm with your deployment team the model's max context length (Max Tokens) and any limits set by the inference service (e.g. vLLM)."},replaceModal:{title:"Replace model",warningParagraph:'When you replace a model, the system will update knowledge parsing, retrieval tests, and assistant configs. If you replace an Embedding model used for documents, all documents using it will be re-queued for parsing and become "Parsing"; unparsed documents will not be searchable until done.',sourceLabel:"Model name",targetLabel:"Replace with",placeholderSelect:"Select",cancel:"Cancel",confirm:"Confirm",messageSuccess:"Model replaced successfully"},message:{testSuccess:"Model check in progress. Status will update shortly.",deleteSuccess:"Deleted",createSuccess:"Model added.",editSuccess:"Model updated."},deleteConfirm:{title:"Confirm delete?",content:'Delete model "{{name}}"? This cannot be undone.',titleWhenInUse:"Delete model",contentWhenInUse:'This model is in use. Deleting it may affect document parsing, Q&A, and multimodal features. Use "Replace model" to switch to another model of the same type first, then delete.',okText:"OK",cancelText:"Cancel",deleteOkText:"Delete"},server:{requestError:"Request failed, please try again.",noPermission:"Insufficient permission",notLoggedIn:"Not logged in or token expired"}},c={common:{loading:"\u8AAD\u307F\u8FBC\u307F\u4E2D..."},dashboard:{title:"\u30E2\u30C7\u30EB\u7BA1\u7406"},table:{viewLabel:"\u30E2\u30C7\u30EB",columns:{modelName:"\u30E2\u30C7\u30EB\u540D",modelProtocol:"\u30D7\u30ED\u30C8\u30B3\u30EB",type:"\u7528\u9014",dec:"\u8AAC\u660E",status:"\u72B6\u614B",actions:"\u64CD\u4F5C"},statusHelpText:"\u72B6\u614B\u306F\u521D\u56DE\u8FFD\u52A0\u6642\u306B\u691C\u8A3C\u3055\u308C\u307E\u3059\u3002\u30E2\u30C7\u30EB\u304C\u30AA\u30D5\u30E9\u30A4\u30F3\u306B\u306A\u3063\u3066\u3082\u81EA\u52D5\u3067\u306F\u66F4\u65B0\u3055\u308C\u307E\u305B\u3093\u3002\u5FC5\u8981\u306B\u5FDC\u3058\u3066\u624B\u52D5\u3067\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",toolbar:{add:"\u65B0\u898F",test:"\u30E2\u30C7\u30EB\u72B6\u614B\u691C\u8A3C",replace:"\u30E2\u30C7\u30EB\u7F6E\u63DB"},actionEdit:"\u7DE8\u96C6",actionAuth:"\u6A29\u9650",actionDelete:"\u524A\u9664",tooltipChecking:"\u691C\u8A3C\u4E2D\u3001\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044",tooltipNoPermission:"\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093"},status:{available:"\u5229\u7528\u53EF",unavailable:"\u5229\u7528\u4E0D\u53EF",checking:"\u691C\u8A3C\u4E2D"},empty:{noDataHint:"\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u5148\u306B\u30E2\u30C7\u30EB\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",createModelBtn:"\u30E2\u30C7\u30EB\u3092\u8FFD\u52A0"},drawer:{titleNew:"\u65B0\u898F",titleEdit:"\u7DE8\u96C6",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",confirm:"\u78BA\u8A8D"},form:{labels:{modelName:"\u30E2\u30C7\u30EB\u540D",modelIde:"\u30E2\u30C7\u30EBID",apiKey:"API\u30AD\u30FC",url:"\u30EA\u30AF\u30A8\u30B9\u30C8URL",modelProtocol:"\u30D7\u30ED\u30C8\u30B3\u30EB",type:"\u7528\u9014",maxTokens:"\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u9577",dec:"\u8AAC\u660E"},placeholders:{modelName:"\u30E2\u30C7\u30EB\u540D\u3092\u5165\u529B",modelIde:"\u30E2\u30C7\u30EBID\u3092\u5165\u529B",apiKey:"API\u30AD\u30FC\u3092\u5165\u529B",url:"\u30EA\u30AF\u30A8\u30B9\u30C8URL\u3092\u5165\u529B"},maxTokensHelpText:"\u30E2\u30C7\u30EB\u306E\u6700\u5927\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u9577\uFF08Max Tokens\uFF09\u3068\u63A8\u8AD6\u30B5\u30FC\u30D3\u30B9\uFF08vLLM\u7B49\uFF09\u306E\u5236\u9650\u3092\u30C7\u30D7\u30ED\u30A4\u62C5\u5F53\u306B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},replaceModal:{title:"\u30E2\u30C7\u30EB\u7F6E\u63DB",warningParagraph:"\u30E2\u30C7\u30EB\u3092\u7F6E\u63DB\u3059\u308B\u3068\u3001\u77E5\u8B58\u89E3\u6790\u30FB\u691C\u7D22\u30C6\u30B9\u30C8\u30FB\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u8A2D\u5B9A\u304C\u66F4\u65B0\u3055\u308C\u307E\u3059\u3002\u6587\u66F8\u89E3\u6790\u7528Embedding\u30E2\u30C7\u30EB\u3092\u7F6E\u63DB\u3057\u305F\u5834\u5408\u3001\u305D\u306E\u30E2\u30C7\u30EB\u3092\u4F7F\u3046\u6587\u66F8\u306F\u518D\u89E3\u6790\u30AD\u30E5\u30FC\u306B\u5165\u308A\u300C\u89E3\u6790\u4E2D\u300D\u3068\u306A\u308A\u3001\u89E3\u6790\u5B8C\u4E86\u307E\u3067\u691C\u7D22\u3067\u304D\u307E\u305B\u3093\u3002",sourceLabel:"\u30E2\u30C7\u30EB\u540D",targetLabel:"\u7F6E\u63DB\u5148",placeholderSelect:"\u9078\u629E",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",confirm:"\u78BA\u8A8D",messageSuccess:"\u30E2\u30C7\u30EB\u3092\u7F6E\u63DB\u3057\u307E\u3057\u305F"},message:{testSuccess:"\u30E2\u30C7\u30EB\u3092\u691C\u8A3C\u4E2D\u3067\u3059\u3002\u72B6\u614B\u304C\u66F4\u65B0\u3055\u308C\u308B\u307E\u3067\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002",deleteSuccess:"\u524A\u9664\u3057\u307E\u3057\u305F",createSuccess:"\u30E2\u30C7\u30EB\u3092\u8FFD\u52A0\u3057\u307E\u3057\u305F\u3002",editSuccess:"\u30E2\u30C7\u30EB\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002"},deleteConfirm:{title:"\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",content:"\u30E2\u30C7\u30EB\u300C{{name}}\u300D\u3092\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002",titleWhenInUse:"\u30E2\u30C7\u30EB\u3092\u524A\u9664",contentWhenInUse:"\u3053\u306E\u30E2\u30C7\u30EB\u306F\u4F7F\u7528\u4E2D\u3067\u3059\u3002\u524A\u9664\u3059\u308B\u3068\u6587\u66F8\u89E3\u6790\u30FBQ&A\u30FB\u30DE\u30EB\u30C1\u30E2\u30FC\u30C0\u30EB\u306B\u5F71\u97FF\u3059\u308B\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002\u5148\u306B\u300C\u30E2\u30C7\u30EB\u7F6E\u63DB\u300D\u3067\u540C\u7A2E\u306E\u30E2\u30C7\u30EB\u306B\u7F6E\u304D\u63DB\u3048\u3066\u304B\u3089\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",okText:"\u78BA\u8A8D",cancelText:"\u30AD\u30E3\u30F3\u30BB\u30EB",deleteOkText:"\u524A\u9664"},server:{requestError:"\u30EA\u30AF\u30A8\u30B9\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",noPermission:"\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093",notLoggedIn:"\u672A\u30ED\u30B0\u30A4\u30F3\u307E\u305F\u306F\u30C8\u30FC\u30AF\u30F3\u671F\u9650\u5207\u308C"}},i={zh:l,en:s,ja:c};function C(u,e){return u.replace(/\{\{(\w+)\}\}/g,(F,t)=>e[t]??"")}function A(u,e){const F=i[u]??l;return e?{...F,...e}:F}function B(u,e){const F=e.split(".");let t=u;for(const o of F)t=t==null?void 0:t[o];return typeof t=="string"?t:e}const n=a.createContext({locale:"zh",messages:l,getMessage:u=>B(l,u)});function r(){return a.useContext(n)}function D({locale:u,messages:e,children:F}){const t=a.useMemo(()=>{const o=A(u,e);return{locale:u,messages:o,getMessage:E=>B(o,E)}},[u,e]);return a.createElement(n.Provider,{value:t},F)}export{D as M,n as a,A as g,C as i,r as u};