@zero-library/common 3.1.6 → 3.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,6 +1,10 @@
1
- import { createInstance } from 'i18next';
2
- import { initReactI18next, useTranslation as useTranslation$1 } from 'react-i18next';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { MessageOutlined, BookOutlined, EditOutlined, DeleteOutlined, CloseOutlined, MinusCircleOutlined, PlusCircleOutlined, RedoOutlined, FileUnknownOutlined, FileZipOutlined, FileMarkdownOutlined, FileGifOutlined, FileImageOutlined, FileJpgOutlined, NotificationOutlined, VideoCameraOutlined, FilePptOutlined, FileExcelOutlined, FileWordOutlined, FilePdfOutlined, FileTextOutlined, ColumnWidthOutlined, LeftOutlined, RightOutlined, MinusOutlined, PlusOutlined } from '@ant-design/icons';
3
3
  import { Typography, Spin, Input, Tooltip as Tooltip$1, Button, Flex, Form, Card, List, Space, Popconfirm, Empty, Modal, message, Alert, Skeleton, Result, Splitter, Image as Image$1, Drawer, Avatar, notification } from 'antd';
4
+ import classNames2 from 'classnames';
5
+ import { renderAsync } from 'docx-preview';
6
+ import * as React3 from 'react';
7
+ import React3__default, { useRef, useState, useEffect, forwardRef, useMemo, useCallback, createContext, isValidElement, version, cloneElement, memo, useImperativeHandle, useContext, Fragment as Fragment$1, lazy, Suspense } from 'react';
4
8
  import copyToClipboard from 'copy-to-clipboard';
5
9
  import AES from 'crypto-js/aes';
6
10
  import encUtf8 from 'crypto-js/enc-utf8';
@@ -16,12 +20,6 @@ import Decimal from 'decimal.js';
16
20
  import dayjs from 'dayjs';
17
21
  import relativeTime from 'dayjs/plugin/relativeTime';
18
22
  import axios from 'axios';
19
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
20
- import { MessageOutlined, BookOutlined, EditOutlined, DeleteOutlined, CloseOutlined, MinusCircleOutlined, PlusCircleOutlined, RedoOutlined, FileUnknownOutlined, FileZipOutlined, FileMarkdownOutlined, FileGifOutlined, FileImageOutlined, FileJpgOutlined, NotificationOutlined, VideoCameraOutlined, FilePptOutlined, FileExcelOutlined, FileWordOutlined, FilePdfOutlined, FileTextOutlined, ColumnWidthOutlined, LeftOutlined, RightOutlined, MinusOutlined, PlusOutlined } from '@ant-design/icons';
21
- import classNames2 from 'classnames';
22
- import { renderAsync } from 'docx-preview';
23
- import * as React3 from 'react';
24
- import React3__default, { useRef, useState, useEffect, forwardRef, useMemo, useCallback, createContext, isValidElement, version, cloneElement, memo, useImperativeHandle, useContext, Fragment as Fragment$1, lazy, Suspense } from 'react';
25
23
  import markdownItKatex from '@traptitech/markdown-it-katex';
26
24
  import parse from 'html-react-parser';
27
25
  import 'katex/dist/katex.min.css';
@@ -66,7 +64,44 @@ import { useHotkeys } from 'react-hotkeys-hook';
66
64
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
67
65
  import throttle from 'lodash.throttle';
68
66
 
69
- // src/i18n/index.ts
67
+ // src/components/File/styles.module.less
68
+ var styles_module_default = {
69
+ nsPreviewImage: "styles_module_nsPreviewImage",
70
+ nsPreviewPdf: "styles_module_nsPreviewPdf",
71
+ pdfToolbar: "styles_module_pdfToolbar",
72
+ nsPreviewPdfImage: "styles_module_nsPreviewPdfImage",
73
+ pdfImageNav: "styles_module_pdfImageNav",
74
+ pdfImageNavItem: "styles_module_pdfImageNavItem",
75
+ pdfImageNavItemImgWrapper: "styles_module_pdfImageNavItemImgWrapper",
76
+ pdfImageNavItemActive: "styles_module_pdfImageNavItemActive",
77
+ pdfImageNavItemImg: "styles_module_pdfImageNavItemImg",
78
+ pdfImageNavItemTip: "styles_module_pdfImageNavItemTip",
79
+ pdfImageBody: "styles_module_pdfImageBody",
80
+ pdfImageBodyToolbar: "styles_module_pdfImageBodyToolbar",
81
+ pdfImageBodyItem: "styles_module_pdfImageBodyItem",
82
+ pdfImageBodyItemInnerWrapper: "styles_module_pdfImageBodyItemInnerWrapper",
83
+ pdfImageBodyItemInner: "styles_module_pdfImageBodyItemInner",
84
+ pdfImageBodyItemActive: "styles_module_pdfImageBodyItemActive",
85
+ pdfImageBodyItemImg: "styles_module_pdfImageBodyItemImg",
86
+ nsPreviewVideo: "styles_module_nsPreviewVideo",
87
+ nsPreviewAudio: "styles_module_nsPreviewAudio",
88
+ nsPreviewDocx: "styles_module_nsPreviewDocx",
89
+ docxToolbar: "styles_module_docxToolbar",
90
+ docxContent: "styles_module_docxContent",
91
+ stateBody: "styles_module_stateBody",
92
+ pdfContainer: "styles_module_pdfContainer",
93
+ floatingToolbar: "styles_module_floatingToolbar",
94
+ divider: "styles_module_divider",
95
+ pdfBody: "styles_module_pdfBody",
96
+ pdfDocument: "styles_module_pdfDocument",
97
+ pdfPage: "styles_module_pdfPage"
98
+ };
99
+ var AudioPlayer_default = ({ fileUrl }) => {
100
+ return /* @__PURE__ */ jsxs("audio", { controls: true, className: styles_module_default.nsPreviewAudio, children: [
101
+ /* @__PURE__ */ jsx("source", { src: fileUrl, type: "audio/mpeg" }),
102
+ "\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 audio \u6807\u7B7E\u3002"
103
+ ] }, fileUrl);
104
+ };
70
105
 
71
106
  // src/utils/is.ts
72
107
  var toString = Object.prototype.toString;
@@ -401,7 +436,7 @@ var arrToObj = (arr = [], key) => {
401
436
  });
402
437
  return obj;
403
438
  };
404
- var setInterval2 = (fn, t2) => {
439
+ var setInterval2 = (fn, t) => {
405
440
  let timer = null;
406
441
  let running = true;
407
442
  const loop = () => {
@@ -409,7 +444,7 @@ var setInterval2 = (fn, t2) => {
409
444
  if (!running) return;
410
445
  await fn();
411
446
  if (running) loop();
412
- }, t2);
447
+ }, t);
413
448
  };
414
449
  loop();
415
450
  return {
@@ -433,9 +468,9 @@ var genNonDuplicateID = () => {
433
468
  return v.toString(16);
434
469
  });
435
470
  };
436
- var copyText = async (text, prompt) => {
471
+ var copyText = async (text, prompt = "\u590D\u5236\u6210\u529F") => {
437
472
  await copyToClipboard(text);
438
- if (prompt !== "") message.success(prompt || t("common.copySuccess"));
473
+ if (prompt) message.success(prompt);
439
474
  };
440
475
  function formatNumberWithCommas(number) {
441
476
  const numericValue = parseFloat(number);
@@ -522,7 +557,7 @@ var buildUrlParams = (obj, url, format = "repeat") => {
522
557
  };
523
558
  var downloadFile = (url, name) => {
524
559
  const a = document.createElement("a");
525
- a.download = name || t("common.defaultFileName");
560
+ a.download = name || "\u6587\u4EF6";
526
561
  a.href = url;
527
562
  document.body.appendChild(a);
528
563
  a.click();
@@ -879,7 +914,7 @@ var isExpire = (date) => {
879
914
  };
880
915
  var createCachedMessage = () => {
881
916
  const messageCache = {};
882
- return ({ title = t("common.defaultTitle"), content, type = "warning", duration = 3, onClose, isCache = true, isOnly = false }) => {
917
+ return ({ title = "\u63D0\u793A", content, type = "warning", duration = 3, onClose, isCache = true, isOnly = false }) => {
883
918
  if (!content) return;
884
919
  const cacheKey = isOnly ? "unique-message-key" : content;
885
920
  const handleClose = () => {
@@ -923,72 +958,50 @@ var cachedMessage = createCachedMessage();
923
958
  // src/utils/pattern.ts
924
959
  var RegMobile = {
925
960
  pattern: /^1[3-9]\d{9}$/,
926
- get message() {
927
- return t("pattern.mobileInvalid");
928
- }
961
+ message: "\u624B\u673A\u53F7\u683C\u5F0F\u4E0D\u6B63\u786E\uFF01"
929
962
  };
930
963
  var RegFixedTelePhone = {
931
964
  pattern: /^0\d{2,3}-\d{7,8}$/,
932
- get message() {
933
- return t("pattern.phoneInvalid");
934
- }
965
+ message: "\u7535\u8BDD\u53F7\u7801\u683C\u5F0F\u4E0D\u6B63\u786E\uFF01"
935
966
  };
936
967
  var RegTelePhone = {
937
968
  pattern: /^[\\+\-\\(\\)\\(\\)\d]{1,20}$/,
938
- get message() {
939
- return t("pattern.phoneInvalid");
940
- }
969
+ message: "\u7535\u8BDD\u53F7\u7801\u683C\u5F0F\u4E0D\u6B63\u786E\uFF01"
941
970
  };
942
971
  var RegTaxNo = {
943
972
  pattern: /^[A-Z0-9]{15}$|^[A-Z0-9]{18}$|^[A-Z0-9]{20}$/,
944
- get message() {
945
- return t("pattern.taxNoInvalid");
946
- }
973
+ message: "\u7A0E\u53F7\u683C\u5F0F\u6709\u8BEF\uFF01"
947
974
  };
948
975
  var RegBankCardNo = {
949
976
  pattern: /^[0-9]*$/,
950
- get message() {
951
- return t("pattern.bankCardInvalid");
952
- }
977
+ message: "\u94F6\u884C\u5361\u53F7\u683C\u5F0F\u6709\u8BEF\uFF01"
953
978
  };
954
979
  var RegIdentityCardNo = {
955
980
  pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
956
- get message() {
957
- return t("pattern.idCardInvalid");
958
- }
981
+ message: "\u8EAB\u4EFD\u8BC1\u53F7\u683C\u5F0F\u6709\u8BEF\uFF01"
959
982
  };
960
983
  var RegNumNo = {
961
984
  pattern: /^[0-9]*$/,
962
- get message() {
963
- return t("pattern.numberInvalid");
964
- }
985
+ message: "\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\uFF01"
965
986
  };
966
987
  var RegSmsCode = {
967
988
  pattern: /^[0-9]{6}$/,
968
- get message() {
969
- return t("pattern.smsCodeInvalid");
970
- }
989
+ message: "\u9A8C\u8BC1\u7801\u4E3A6\u4F4D\u6570\u5B57"
971
990
  };
972
991
  var RegEmail = {
973
992
  pattern: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,
974
- get message() {
975
- return t("pattern.emailInvalid");
976
- }
993
+ message: "\u90AE\u7BB1\u683C\u5F0F\u6709\u8BEF\uFF01"
977
994
  };
978
995
  var RegDetailAddress = {
979
996
  pattern: /.*(街|路|村|乡|镇|道|巷|号).*/,
980
- get message() {
981
- return t("pattern.addressInvalid");
982
- }
997
+ message: "\u5FC5\u987B\u5305\u542B\u201C\u8857\u3001\u8DEF\u3001\u6751\u3001\u4E61\u3001\u9547\u3001\u9053\u3001\u5DF7\u3001\u53F7\u201D\u7B49\u5173\u952E\u8BCD\u4E4B\u4E00"
983
998
  };
984
999
  var RegPassword = {
985
1000
  pattern: /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,26}$/,
986
- get message() {
987
- return t("pattern.passwordInvalid");
988
- }
1001
+ message: "\u5BC6\u7801\u4E3A8\u523026\u4F4D\u4E4B\u95F4\u6570\u5B57\u4E0E\u5B57\u6BCD\u7EC4\u5408"
989
1002
  };
990
- var PhoneOrMobileValidator = (errMessage) => ({
991
- validator: (_, value) => !value || RegFixedTelePhone.pattern.test(value) || RegMobile.pattern.test(value) ? Promise.resolve() : Promise.reject(new Error(errMessage || t("pattern.phoneOrMobileInvalid")))
1003
+ var PhoneOrMobileValidator = (errMessage = "\u8054\u7CFB\u7535\u8BDD\u683C\u5F0F\u4E0D\u6B63\u786E") => ({
1004
+ validator: (_, value) => !value || RegFixedTelePhone.pattern.test(value) || RegMobile.pattern.test(value) ? Promise.resolve() : Promise.reject(new Error(errMessage))
992
1005
  });
993
1006
  var ThanNumValidator = ({
994
1007
  min,
@@ -1005,12 +1018,12 @@ var ThanNumValidator = ({
1005
1018
  }
1006
1019
  if (isNumberNoNaN(parseFloat(min))) {
1007
1020
  if (!(Number(value) > Number(min) || equalMin && Number(value) === Number(min))) {
1008
- return Promise.reject(new Error(minErrMessage || errMessage || t(equalMin ? "lessThanOrEqual" : "lessThan", { value: min })));
1021
+ return Promise.reject(new Error(minErrMessage || errMessage || `\u4E0D\u80FD\u5C0F\u4E8E${equalMin ? "" : "\u7B49\u4E8E"}${min}`));
1009
1022
  }
1010
1023
  }
1011
1024
  if (isNumberNoNaN(parseFloat(max))) {
1012
1025
  if (!(Number(value) < Number(max) || equalMax && Number(value) === Number(max))) {
1013
- return Promise.reject(new Error(maxErrMessage || errMessage || t(equalMax ? "greaterThanOrEqual" : "greaterThan", { value: max })));
1026
+ return Promise.reject(new Error(maxErrMessage || errMessage || `\u4E0D\u80FD\u5927\u4E8E${equalMax ? "" : "\u7B49\u4E8E"}${max}`));
1014
1027
  }
1015
1028
  }
1016
1029
  return Promise.resolve();
@@ -1030,17 +1043,17 @@ var ThanNumLengthValidator = ({
1030
1043
  }
1031
1044
  if (isNumber(length)) {
1032
1045
  if (precision(value) > length) {
1033
- return Promise.reject(new Error(lengthErrMessage || t("pattern.totalLengthExceed", { length })));
1046
+ return Promise.reject(new Error(lengthErrMessage || `\u603B\u4F4D\u6570\u4E0D\u80FD\u8D85\u8FC7${length}\u4F4D`));
1034
1047
  }
1035
1048
  }
1036
1049
  if (isNumber(integerLength)) {
1037
1050
  if (precision(value) - decimalPlaces(value) > integerLength) {
1038
- return Promise.reject(new Error(integerLengthErrMessage || t("pattern.integerLengthExceed", { length: integerLength })));
1051
+ return Promise.reject(new Error(integerLengthErrMessage || `\u6574\u6570\u4F4D\u4E0D\u80FD\u8D85\u8FC7${integerLength}\u4F4D`));
1039
1052
  }
1040
1053
  }
1041
1054
  if (isNumber(decimalsLength)) {
1042
1055
  if (decimalPlaces(value) > decimalsLength) {
1043
- return Promise.reject(new Error(decimalsLengthErrMessage || t("pattern.decimalLengthExceed", { length: decimalsLength })));
1056
+ return Promise.reject(new Error(decimalsLengthErrMessage || `\u5C0F\u6570\u4F4D\u4E0D\u80FD\u8D85\u8FC7${decimalsLength}\u4F4D`));
1044
1057
  }
1045
1058
  }
1046
1059
  return Promise.resolve();
@@ -1050,7 +1063,7 @@ var MultiEmailValidator = (max) => ({
1050
1063
  validator: (_, value) => {
1051
1064
  if (value) {
1052
1065
  const emailArr = value.split(",").map((v) => v.trim()).filter((v) => v);
1053
- if (emailArr.length > max) return Promise.reject(new Error(t("pattern.maxEmailsExceed", { max })));
1066
+ if (emailArr.length > max) return Promise.reject(new Error(`\u6700\u591A\u8F93\u5165${max}\u4E2A\u90AE\u7BB1`));
1054
1067
  const noEmailArr = emailArr.filter((email) => !RegEmail.pattern.test(email));
1055
1068
  if (noEmailArr.length) return Promise.reject(new Error(RegEmail.message));
1056
1069
  }
@@ -1118,14 +1131,14 @@ function createRequest(config) {
1118
1131
  return Promise.reject(err);
1119
1132
  }
1120
1133
  if (!err.response) {
1121
- if (showError(err?.config?.showError)) cachedMessage({ content: t("request.networkError"), type: "error" });
1134
+ if (showError(err?.config?.showError)) cachedMessage({ content: "\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC", type: "error" });
1122
1135
  } else {
1123
1136
  switch (err.response?.status) {
1124
1137
  case HttpStatus.UNAUTHORIZED:
1125
1138
  if (showError(err?.config?.showError)) cachedMessage({ content: err.response?.data.message, type: "error" });
1126
1139
  break;
1127
1140
  default:
1128
- if (showError(err?.config?.showError)) cachedMessage({ content: err.response?.data.message || t("request.requestError"), type: "error" });
1141
+ if (showError(err?.config?.showError)) cachedMessage({ content: err.response?.data.message || "\u8BF7\u6C42\u9519\u8BEF\uFF01", type: "error" });
1129
1142
  }
1130
1143
  }
1131
1144
  return Promise.reject(err);
@@ -1240,650 +1253,7 @@ function createTokenManager({ key, storage = localStorage }) {
1240
1253
  clear: tokenManager.clear
1241
1254
  };
1242
1255
  }
1243
-
1244
- // src/i18n/constants.ts
1245
- var NS_COMMON = "common";
1246
-
1247
- // src/i18n/zh-CN.ts
1248
- var commonZhCN = {
1249
- // 通用文案
1250
- common: {
1251
- copySuccess: "\u590D\u5236\u6210\u529F",
1252
- confirm: "\u786E\u5B9A",
1253
- cancel: "\u53D6\u6D88",
1254
- download: "\u4E0B\u8F7D",
1255
- save: "\u4FDD\u5B58",
1256
- defaultFileName: "\u6587\u4EF6",
1257
- defaultTitle: "\u63D0\u793A",
1258
- loading: "\u52A0\u8F7D\u4E2D..."
1259
- },
1260
- // utils/request.ts
1261
- request: {
1262
- networkError: "\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC",
1263
- requestError: "\u8BF7\u6C42\u9519\u8BEF\uFF01"
1264
- },
1265
- // utils/pattern.ts — 验证消息
1266
- pattern: {
1267
- mobileInvalid: "\u624B\u673A\u53F7\u683C\u5F0F\u4E0D\u6B63\u786E\uFF01",
1268
- phoneInvalid: "\u7535\u8BDD\u53F7\u7801\u683C\u5F0F\u4E0D\u6B63\u786E\uFF01",
1269
- taxNoInvalid: "\u7A0E\u53F7\u683C\u5F0F\u6709\u8BEF\uFF01",
1270
- bankCardInvalid: "\u94F6\u884C\u5361\u53F7\u683C\u5F0F\u6709\u8BEF\uFF01",
1271
- idCardInvalid: "\u8EAB\u4EFD\u8BC1\u53F7\u683C\u5F0F\u6709\u8BEF\uFF01",
1272
- numberInvalid: "\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\uFF01",
1273
- smsCodeInvalid: "\u9A8C\u8BC1\u7801\u4E3A6\u4F4D\u6570\u5B57",
1274
- emailInvalid: "\u90AE\u7BB1\u683C\u5F0F\u6709\u8BEF\uFF01",
1275
- addressInvalid: '\u5FC5\u987B\u5305\u542B"\u8857\u3001\u8DEF\u3001\u6751\u3001\u4E61\u3001\u9547\u3001\u9053\u3001\u5DF7\u3001\u53F7"\u7B49\u5173\u952E\u8BCD\u4E4B\u4E00',
1276
- passwordInvalid: "\u5BC6\u7801\u4E3A8\u523026\u4F4D\u4E4B\u95F4\u6570\u5B57\u4E0E\u5B57\u6BCD\u7EC4\u5408",
1277
- phoneOrMobileInvalid: "\u8054\u7CFB\u7535\u8BDD\u683C\u5F0F\u4E0D\u6B63\u786E",
1278
- // 插值示例:{{value}} 会被替换为实际值
1279
- lessThan: "\u4E0D\u80FD\u5C0F\u4E8E{{value}}",
1280
- lessThanOrEqual: "\u4E0D\u80FD\u5C0F\u4E8E\u7B49\u4E8E{{value}}",
1281
- greaterThan: "\u4E0D\u80FD\u5927\u4E8E{{value}}",
1282
- greaterThanOrEqual: "\u4E0D\u80FD\u5927\u4E8E\u7B49\u4E8E{{value}}",
1283
- totalLengthExceed: "\u603B\u4F4D\u6570\u4E0D\u80FD\u8D85\u8FC7{{length}}\u4F4D",
1284
- integerLengthExceed: "\u6574\u6570\u4F4D\u4E0D\u80FD\u8D85\u8FC7{{length}}\u4F4D",
1285
- decimalLengthExceed: "\u5C0F\u6570\u4F4D\u4E0D\u80FD\u8D85\u8FC7{{length}}\u4F4D",
1286
- maxEmailsExceed: "\u6700\u591A\u8F93\u5165{{max}}\u4E2A\u90AE\u7BB1"
1287
- },
1288
- // utils/date.ts
1289
- date: {
1290
- yearMonthFormat: "YYYY\u5E74MM\u6708",
1291
- yearMonthDayFormat: "YYYY\u5E74MM\u6708DD\u65E5"
1292
- },
1293
- // SpeechButton 语音按钮
1294
- speechButton: {
1295
- notSupported: "\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u8BED\u97F3\u8BC6\u522B",
1296
- permissionDenied: "\u9EA6\u514B\u98CE\u6743\u9650\u5DF2\u62D2\u7EDD",
1297
- stop: "\u505C\u6B62\u5F55\u97F3",
1298
- start: "\u70B9\u51FB\u5F00\u59CB\u5F55\u97F3"
1299
- },
1300
- // MicroApp / Iframe
1301
- microApp: {
1302
- loading: "\u52A0\u8F7D\u4E2D..."
1303
- },
1304
- iframe: {
1305
- loading: "\u52A0\u8F7D\u4E2D..."
1306
- },
1307
- // LazyComponent 延时加载组件
1308
- lazyComponent: {
1309
- unknownType: "\u672A\u77E5\u7C7B\u578B\uFF1A{{type}}",
1310
- componentLoading: "\u7EC4\u4EF6\u52A0\u8F7D\u4E2D..."
1311
- },
1312
- // File 文件预览组件群
1313
- filePreview: {
1314
- title: "\u6587\u4EF6\u9884\u89C8",
1315
- closePreview: "\u5173\u95ED\u9884\u89C8",
1316
- previewImageAlt: "\u9884\u89C8\u56FE\u7247",
1317
- previewNotSupported: "\u6682\u4E0D\u652F\u6301 {{suffix}} \u6587\u4EF6\u7684\u9884\u89C8",
1318
- previewNotSupportedDownload: "{{suffix}} \u6587\u4EF6\u6682\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8\uFF0C\u8BF7\u4E0B\u8F7D\u6253\u5F00",
1319
- previewGenerating: "\u9884\u89C8\u6587\u4EF6\u6B63\u5728\u751F\u6210\u4E2D...",
1320
- audioNotSupported: "\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 audio \u6807\u7B7E\u3002",
1321
- videoNotSupported: "\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u6807\u7B7E\u3002",
1322
- requestFailedWithStatus: "\u8BF7\u6C42\u5931\u8D25\uFF0C\u72B6\u6001\u7801: {{status}}",
1323
- emptyResponse: "\u8FD4\u56DE\u5185\u5BB9\u4E3A\u7A7A",
1324
- loadFileFailed: "\u52A0\u8F7D\u6587\u4EF6\u5931\u8D25",
1325
- fileParseFailed: "\u52A0\u8F7D\u6216\u89E3\u6790\u6587\u4EF6\u5931\u8D25",
1326
- fileUrlInvalid: "\u6587\u4EF6\u5730\u5740\u9519\u8BEF",
1327
- htmlParseFailed: "\u52A0\u8F7D\u6216\u89E3\u6790 HTML \u5931\u8D25",
1328
- docLoadFailed: "\u6587\u6863\u52A0\u8F7D\u5931\u8D25",
1329
- pdfLoadFailed: "PDF \u52A0\u8F7D\u5931\u8D25",
1330
- pdfParseFailed: "\u52A0\u8F7D\u6216\u89E3\u6790 pdf \u5931\u8D25",
1331
- pdfUrlInvalid: "pdf\u5730\u5740\u9519\u8BEF",
1332
- pdfPasswordInvalid: "\u5BC6\u7801\u65E0\u6548\u3002\u8BF7\u518D\u8BD5\u4E00\u6B21\uFF01",
1333
- pdfPasswordPlaceholder: "\u8BF7\u8F93\u5165\u5BC6\u7801",
1334
- pdfSubmit: "\u63D0 \u4EA4",
1335
- pdfInvalidOrDamaged: "\u6587\u4EF6\u65E0\u6548\u6216\u5DF2\u635F\u574F",
1336
- pdfFileNotFound: "\u6587\u4EF6\u4E0D\u5B58\u5728",
1337
- pdfUnexpectedResponse: "\u610F\u5916\u7684\u670D\u52A1\u5668\u54CD\u5E94",
1338
- pdfLoadDocumentFailed: "\u65E0\u6CD5\u52A0\u8F7D\u6587\u6863",
1339
- zoomOut: "\u7F29\u5C0F",
1340
- zoomIn: "\u653E\u5927",
1341
- zoomReset: "\u8FD8\u539F",
1342
- fitWidth: "\u9002\u5E94\u5BBD\u5EA6"
1343
- },
1344
- // MarkdownEditor 富文本编辑器
1345
- markdownEditor: {
1346
- mainArea: "\u4E3B\u5185\u5BB9\u533A\u57DF\uFF0C\u5F00\u59CB\u8F93\u5165\u6587\u672C...",
1347
- unknown: "\u672A\u77E5",
1348
- // 工具栏
1349
- toolbar: {
1350
- quote: "\u5F15\u7528\u9009\u4E2D\u6587\u672C",
1351
- annotation: "\u6279\u6CE8",
1352
- excerpt: "\u6458\u5F55\u7B14\u8BB0",
1353
- undo: "\u64A4\u9500",
1354
- redo: "\u91CD\u505A",
1355
- alignLeft: "\u5DE6\u5BF9\u9F50",
1356
- alignCenter: "\u5C45\u4E2D\u5BF9\u9F50",
1357
- alignRight: "\u53F3\u5BF9\u9F50",
1358
- alignJustify: "\u4E24\u7AEF\u5BF9\u9F50",
1359
- bold: "\u7C97\u4F53",
1360
- italic: "\u659C\u4F53",
1361
- underline: "\u4E0B\u5212\u7EBF",
1362
- strike: "\u5220\u9664\u7EBF",
1363
- code: "\u4EE3\u7801",
1364
- superscript: "\u4E0A\u89D2\u6807",
1365
- subscript: "\u4E0B\u89D2\u6807",
1366
- bulletList: "\u65E0\u5E8F\u5217\u8868",
1367
- orderedList: "\u6709\u5E8F\u5217\u8868",
1368
- taskList: "\u4EFB\u52A1\u5217\u8868",
1369
- listOptions: "\u5217\u8868\u9009\u9879",
1370
- list: "\u5217\u8868",
1371
- blockquote: "\u5F15\u7528\u5757",
1372
- codeBlock: "\u4EE3\u7801\u5757",
1373
- heading: "\u6807\u9898",
1374
- headingLevel: "\u6807\u9898 {{level}}",
1375
- addImage: "\u6DFB\u52A0\u56FE\u7247",
1376
- link: "\u94FE\u63A5",
1377
- linkPlaceholder: "\u7C98\u8D34\u94FE\u63A5...",
1378
- applyLink: "\u5E94\u7528\u94FE\u63A5",
1379
- openInNewWindow: "\u5728\u65B0\u7A97\u53E3\u4E2D\u6253\u5F00",
1380
- removeLink: "\u79FB\u9664\u94FE\u63A5"
1381
- },
1382
- // 高亮 / 背景色
1383
- highlight: {
1384
- toggle: "\u5207\u6362\u9AD8\u4EAE\u663E\u793A ({{color}})",
1385
- label: "\u80CC\u666F\u8272",
1386
- textLabel: "\u6587\u672C\u80CC\u666F\u8272",
1387
- removeBackground: "\u79FB\u9664\u80CC\u666F",
1388
- removeHighlight: "\u79FB\u9664\u9AD8\u4EAE",
1389
- default: "\u9ED8\u8BA4\u80CC\u666F",
1390
- gray: "\u7070\u8272\u80CC\u666F",
1391
- brown: "\u68D5\u8272\u80CC\u666F",
1392
- orange: "\u6A59\u8272\u80CC\u666F",
1393
- yellow: "\u9EC4\u8272\u80CC\u666F",
1394
- green: "\u7EFF\u8272\u80CC\u666F",
1395
- blue: "\u84DD\u8272\u80CC\u666F",
1396
- purple: "\u7D2B\u8272\u80CC\u666F",
1397
- pink: "\u7C89\u8272\u80CC\u666F",
1398
- red: "\u7EA2\u8272\u80CC\u666F"
1399
- },
1400
- // 批注
1401
- annotation: {
1402
- title: "\u6279\u6CE8",
1403
- list: "\u6279\u6CE8\u5217\u8868",
1404
- add: "\u6DFB\u52A0\u6279\u6CE8",
1405
- content: "\u6279\u6CE8\u5185\u5BB9",
1406
- required: "\u8BF7\u8F93\u5165\u6279\u6CE8\u5185\u5BB9",
1407
- maxLength: "\u6279\u6CE8\u5185\u5BB9\u4E0D\u80FD\u8D85\u8FC7500\u4E2A\u5B57\u7B26",
1408
- placeholder: "\u8BF7\u8F93\u5165\u60A8\u7684\u6279\u6CE8\u5185\u5BB9...",
1409
- edit: "\u7F16\u8F91\u6279\u6CE8",
1410
- delete: "\u5220\u9664\u6279\u6CE8",
1411
- confirmDelete: "\u786E\u8BA4\u5220\u9664\u5F53\u524D\u6279\u6CE8\u5417?",
1412
- empty: "\u6682\u65E0\u6279\u6CE8"
1413
- },
1414
- // 摘录
1415
- collection: {
1416
- title: "\u6458\u5F55",
1417
- list: "\u6458\u5F55\u5217\u8868",
1418
- delete: "\u5220\u9664\u6458\u5F55",
1419
- confirmDelete: "\u786E\u8BA4\u5220\u9664\u5F53\u524D\u6458\u5F55\u5417?",
1420
- empty: "\u6682\u65E0\u6458\u5F55"
1421
- },
1422
- // 文件 / 图片上传
1423
- upload: {
1424
- noFile: "\u672A\u63D0\u4F9B\u6587\u4EF6",
1425
- canceled: "\u4E0A\u4F20\u5DF2\u53D6\u6D88",
1426
- fileSizeExceeded: "\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u6700\u5927\u9650\u5236 ({{max}}MB)",
1427
- undefined: "\u4E0A\u4F20\u529F\u80FD\u672A\u5B9A\u4E49",
1428
- failedNoUrl: "\u4E0A\u4F20\u5931\u8D25\uFF1A\u672A\u8FD4\u56DEURL",
1429
- failed: "\u4E0A\u4F20\u5931\u8D25",
1430
- noFileToUpload: "\u6CA1\u6709\u6587\u4EF6\u53EF\u4E0A\u4F20",
1431
- maxFileCount: "\u6700\u591A\u5141\u8BB8\u4E0A\u4F20 {{limit}} \u4E2A\u6587\u4EF6"
1432
- }
1433
- }
1434
- };
1435
-
1436
- // src/i18n/en-US.ts
1437
- var commonEnUS = {
1438
- common: {
1439
- copySuccess: "Copied successfully",
1440
- confirm: "OK",
1441
- cancel: "Cancel",
1442
- download: "Download",
1443
- save: "Save",
1444
- defaultFileName: "file",
1445
- defaultTitle: "Notice",
1446
- loading: "Loading..."
1447
- },
1448
- request: {
1449
- networkError: "Network error, please check your connection",
1450
- requestError: "Request error!"
1451
- },
1452
- pattern: {
1453
- mobileInvalid: "Invalid phone number!",
1454
- phoneInvalid: "Invalid phone number!",
1455
- taxNoInvalid: "Invalid tax number!",
1456
- bankCardInvalid: "Invalid bank card number!",
1457
- idCardInvalid: "Invalid ID card number!",
1458
- numberInvalid: "Invalid format, please re-enter!",
1459
- smsCodeInvalid: "SMS code must be 6 digits",
1460
- emailInvalid: "Invalid email format!",
1461
- addressInvalid: "Must contain one of: street, road, village, town, etc.",
1462
- passwordInvalid: "Password must be 8-26 characters with letters and numbers",
1463
- phoneOrMobileInvalid: "Invalid contact number",
1464
- lessThan: "Cannot be less than {{value}}",
1465
- lessThanOrEqual: "Cannot be less than or equal to {{value}}",
1466
- greaterThan: "Cannot be greater than {{value}}",
1467
- greaterThanOrEqual: "Cannot be greater than or equal to {{value}}",
1468
- totalLengthExceed: "Total digits cannot exceed {{length}}",
1469
- integerLengthExceed: "Integer digits cannot exceed {{length}}",
1470
- decimalLengthExceed: "Decimal digits cannot exceed {{length}}",
1471
- maxEmailsExceed: "Maximum {{max}} emails allowed"
1472
- },
1473
- date: {
1474
- yearMonthFormat: "YYYY-MM",
1475
- yearMonthDayFormat: "YYYY-MM-DD"
1476
- },
1477
- speechButton: {
1478
- notSupported: "Speech recognition is not supported in this browser",
1479
- permissionDenied: "Microphone permission denied",
1480
- stop: "Stop Recording",
1481
- start: "Click to Start Recording"
1482
- },
1483
- microApp: {
1484
- loading: "Loading..."
1485
- },
1486
- iframe: {
1487
- loading: "Loading..."
1488
- },
1489
- lazyComponent: {
1490
- unknownType: "Unknown type: {{type}}",
1491
- componentLoading: "Loading component..."
1492
- },
1493
- filePreview: {
1494
- title: "File Preview",
1495
- closePreview: "Close preview",
1496
- previewImageAlt: "Preview image",
1497
- previewNotSupported: "Preview of {{suffix}} files is not supported",
1498
- previewNotSupportedDownload: "{{suffix}} files cannot be previewed online, please download and open",
1499
- previewGenerating: "Preview file is being generated...",
1500
- audioNotSupported: "Your browser does not support the audio tag.",
1501
- videoNotSupported: "Your browser does not support the video tag.",
1502
- requestFailedWithStatus: "Request failed, status code: {{status}}",
1503
- emptyResponse: "Response content is empty",
1504
- loadFileFailed: "Failed to load file",
1505
- fileParseFailed: "Failed to load or parse file",
1506
- fileUrlInvalid: "Invalid file URL",
1507
- htmlParseFailed: "Failed to load or parse HTML",
1508
- docLoadFailed: "Failed to load document",
1509
- pdfLoadFailed: "Failed to load PDF",
1510
- pdfParseFailed: "Failed to load or parse PDF",
1511
- pdfUrlInvalid: "Invalid PDF URL",
1512
- pdfPasswordInvalid: "Invalid password. Please try again!",
1513
- pdfPasswordPlaceholder: "Please enter password",
1514
- pdfSubmit: "Submit",
1515
- pdfInvalidOrDamaged: "File is invalid or damaged",
1516
- pdfFileNotFound: "File not found",
1517
- pdfUnexpectedResponse: "Unexpected server response",
1518
- pdfLoadDocumentFailed: "Unable to load document",
1519
- zoomOut: "Zoom out",
1520
- zoomIn: "Zoom in",
1521
- zoomReset: "Reset",
1522
- fitWidth: "Fit width"
1523
- },
1524
- markdownEditor: {
1525
- mainArea: "Main content area, start typing...",
1526
- unknown: "Unknown",
1527
- toolbar: {
1528
- quote: "Quote Selected Text",
1529
- annotation: "Annotate",
1530
- excerpt: "Excerpt Note",
1531
- undo: "Undo",
1532
- redo: "Redo",
1533
- alignLeft: "Align Left",
1534
- alignCenter: "Align Center",
1535
- alignRight: "Align Right",
1536
- alignJustify: "Justify",
1537
- bold: "Bold",
1538
- italic: "Italic",
1539
- underline: "Underline",
1540
- strike: "Strikethrough",
1541
- code: "Code",
1542
- superscript: "Superscript",
1543
- subscript: "Subscript",
1544
- bulletList: "Bullet List",
1545
- orderedList: "Numbered List",
1546
- taskList: "Task List",
1547
- listOptions: "List Options",
1548
- list: "List",
1549
- blockquote: "Blockquote",
1550
- codeBlock: "Code Block",
1551
- heading: "Heading",
1552
- headingLevel: "Heading {{level}}",
1553
- addImage: "Add Image",
1554
- link: "Link",
1555
- linkPlaceholder: "Paste link...",
1556
- applyLink: "Apply Link",
1557
- openInNewWindow: "Open in New Window",
1558
- removeLink: "Remove Link"
1559
- },
1560
- highlight: {
1561
- toggle: "Toggle highlight ({{color}})",
1562
- label: "Background color",
1563
- textLabel: "Text background color",
1564
- removeBackground: "Remove background",
1565
- removeHighlight: "Remove highlight",
1566
- default: "Default background",
1567
- gray: "Gray background",
1568
- brown: "Brown background",
1569
- orange: "Orange background",
1570
- yellow: "Yellow background",
1571
- green: "Green background",
1572
- blue: "Blue background",
1573
- purple: "Purple background",
1574
- pink: "Pink background",
1575
- red: "Red background"
1576
- },
1577
- annotation: {
1578
- title: "Annotations",
1579
- list: "Annotations",
1580
- add: "Add Annotation",
1581
- content: "Annotation content",
1582
- required: "Please enter annotation content",
1583
- maxLength: "Annotation content cannot exceed 500 characters",
1584
- placeholder: "Please enter your annotation...",
1585
- edit: "Edit Annotation",
1586
- delete: "Delete annotation",
1587
- confirmDelete: "Delete this annotation?",
1588
- empty: "No annotations"
1589
- },
1590
- collection: {
1591
- title: "Excerpts",
1592
- list: "Excerpts",
1593
- delete: "Delete excerpt",
1594
- confirmDelete: "Delete this excerpt?",
1595
- empty: "No excerpts"
1596
- },
1597
- upload: {
1598
- noFile: "No file provided",
1599
- canceled: "Upload canceled",
1600
- fileSizeExceeded: "File size exceeds the maximum limit ({{max}}MB)",
1601
- undefined: "Upload function is not defined",
1602
- failedNoUrl: "Upload failed: no URL returned",
1603
- failed: "Upload failed",
1604
- noFileToUpload: "No file to upload",
1605
- maxFileCount: "A maximum of {{limit}} files can be uploaded"
1606
- }
1607
- }
1608
- };
1609
-
1610
- // src/i18n/ja-JP.ts
1611
- var commonJaJP = {
1612
- // 共通文案
1613
- common: {
1614
- copySuccess: "\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
1615
- confirm: "OK",
1616
- cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB",
1617
- download: "\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
1618
- save: "\u4FDD\u5B58",
1619
- defaultFileName: "\u30D5\u30A1\u30A4\u30EB",
1620
- defaultTitle: "\u30D2\u30F3\u30C8",
1621
- loading: "\u8AAD\u307F\u8FBC\u307F\u4E2D..."
1622
- },
1623
- // utils/request.ts
1624
- request: {
1625
- networkError: "\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",
1626
- requestError: "\u30EA\u30AF\u30A8\u30B9\u30C8\u30A8\u30E9\u30FC\uFF01"
1627
- },
1628
- // utils/pattern.ts — バリデーションメッセージ
1629
- pattern: {
1630
- mobileInvalid: "\u643A\u5E2F\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\uFF01",
1631
- phoneInvalid: "\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\uFF01",
1632
- taxNoInvalid: "\u7A0E\u756A\u53F7\u306E\u5F62\u5F0F\u306B\u8AA4\u308A\u304C\u3042\u308A\u307E\u3059\uFF01",
1633
- bankCardInvalid: "\u9280\u884C\u30AB\u30FC\u30C9\u756A\u53F7\u306E\u5F62\u5F0F\u306B\u8AA4\u308A\u304C\u3042\u308A\u307E\u3059\uFF01",
1634
- idCardInvalid: "\u8EAB\u5206\u8A3C\u660E\u66F8\u756A\u53F7\u306E\u5F62\u5F0F\u306B\u8AA4\u308A\u304C\u3042\u308A\u307E\u3059\uFF01",
1635
- numberInvalid: "\u5F62\u5F0F\u306B\u8AA4\u308A\u304C\u3042\u308A\u307E\u3059\u3002\u518D\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\uFF01",
1636
- smsCodeInvalid: "\u8A8D\u8A3C\u30B3\u30FC\u30C9\u306F6\u6841\u306E\u6570\u5B57\u3067\u3059",
1637
- emailInvalid: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u5F62\u5F0F\u306B\u8AA4\u308A\u304C\u3042\u308A\u307E\u3059\uFF01",
1638
- addressInvalid: "\u300C\u8857\u300D\u300C\u9053\u8DEF\u300D\u300C\u6751\u300D\u300C\u753A\u300D\u300C\u9053\u300D\u300C\u8DEF\u5730\u300D\u300C\u756A\u53F7\u300D\u306A\u3069\u306E\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u542B\u3081\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
1639
- passwordInvalid: "\u30D1\u30B9\u30EF\u30FC\u30C9\u306F8\u301C26\u6587\u5B57\u306E\u82F1\u6570\u5B57\u306E\u7D44\u307F\u5408\u308F\u305B\u3067\u3059",
1640
- phoneOrMobileInvalid: "\u9023\u7D61\u5148\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093",
1641
- // 補間例:{{value}} は実際の値に置換されます
1642
- lessThan: "{{value}}\u672A\u6E80\u306B\u3067\u304D\u307E\u305B\u3093",
1643
- lessThanOrEqual: "{{value}}\u4EE5\u4E0B\u306B\u3067\u304D\u307E\u305B\u3093",
1644
- greaterThan: "{{value}}\u3092\u8D85\u3048\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",
1645
- greaterThanOrEqual: "{{value}}\u4EE5\u4E0A\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
1646
- totalLengthExceed: "\u7DCF\u6841\u6570\u306F{{length}}\u6841\u3092\u8D85\u3048\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",
1647
- integerLengthExceed: "\u6574\u6570\u90E8\u306F{{length}}\u6841\u3092\u8D85\u3048\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",
1648
- decimalLengthExceed: "\u5C0F\u6570\u90E8\u306F{{length}}\u6841\u3092\u8D85\u3048\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",
1649
- maxEmailsExceed: "\u6700\u5927{{max}}\u4EF6\u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u307E\u3067\u5165\u529B\u3067\u304D\u307E\u3059"
1650
- },
1651
- // utils/date.ts
1652
- date: {
1653
- yearMonthFormat: "YYYY\u5E74MM\u6708",
1654
- yearMonthDayFormat: "YYYY\u5E74MM\u6708DD\u65E5"
1655
- },
1656
- // SpeechButton 音声ボタン
1657
- speechButton: {
1658
- notSupported: "\u73FE\u5728\u306E\u30D6\u30E9\u30A6\u30B6\u306F\u97F3\u58F0\u8A8D\u8B58\u306B\u5BFE\u5FDC\u3057\u3066\u3044\u307E\u305B\u3093",
1659
- permissionDenied: "\u30DE\u30A4\u30AF\u306E\u6A29\u9650\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F",
1660
- stop: "\u9332\u97F3\u3092\u505C\u6B62",
1661
- start: "\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u9332\u97F3\u3092\u958B\u59CB"
1662
- },
1663
- // MicroApp / Iframe
1664
- microApp: {
1665
- loading: "\u8AAD\u307F\u8FBC\u307F\u4E2D..."
1666
- },
1667
- iframe: {
1668
- loading: "\u8AAD\u307F\u8FBC\u307F\u4E2D..."
1669
- },
1670
- // LazyComponent 遅延読み込みコンポーネント
1671
- lazyComponent: {
1672
- unknownType: "\u4E0D\u660E\u306A\u30BF\u30A4\u30D7\uFF1A{{type}}",
1673
- componentLoading: "\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D..."
1674
- },
1675
- // File ファイルプレビューコンポーネント群
1676
- filePreview: {
1677
- title: "\u30D5\u30A1\u30A4\u30EB\u30D7\u30EC\u30D3\u30E5\u30FC",
1678
- closePreview: "\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u9589\u3058\u308B",
1679
- previewImageAlt: "\u30D7\u30EC\u30D3\u30E5\u30FC\u753B\u50CF",
1680
- previewNotSupported: "{{suffix}}\u30D5\u30A1\u30A4\u30EB\u306E\u30D7\u30EC\u30D3\u30E5\u30FC\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u3044\u307E\u305B\u3093",
1681
- previewNotSupportedDownload: "{{suffix}}\u30D5\u30A1\u30A4\u30EB\u306F\u30AA\u30F3\u30E9\u30A4\u30F3\u30D7\u30EC\u30D3\u30E5\u30FC\u306B\u5BFE\u5FDC\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u958B\u3044\u3066\u304F\u3060\u3055\u3044",
1682
- previewGenerating: "\u30D7\u30EC\u30D3\u30E5\u30FC\u30D5\u30A1\u30A4\u30EB\u3092\u751F\u6210\u4E2D...",
1683
- audioNotSupported: "\u304A\u4F7F\u3044\u306E\u30D6\u30E9\u30A6\u30B6\u306F audio \u30BF\u30B0\u306B\u5BFE\u5FDC\u3057\u3066\u3044\u307E\u305B\u3093\u3002",
1684
- videoNotSupported: "\u304A\u4F7F\u3044\u306E\u30D6\u30E9\u30A6\u30B6\u306F video \u30BF\u30B0\u306B\u5BFE\u5FDC\u3057\u3066\u3044\u307E\u305B\u3093\u3002",
1685
- requestFailedWithStatus: "\u30EA\u30AF\u30A8\u30B9\u30C8\u5931\u6557\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u30B3\u30FC\u30C9: {{status}}",
1686
- emptyResponse: "\u8FD4\u4FE1\u5185\u5BB9\u304C\u7A7A\u3067\u3059",
1687
- loadFileFailed: "\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
1688
- fileParseFailed: "\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u8FBC\u307F\u307E\u305F\u306F\u89E3\u6790\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
1689
- fileUrlInvalid: "\u30D5\u30A1\u30A4\u30EBURL\u304C\u4E0D\u6B63\u3067\u3059",
1690
- htmlParseFailed: "HTML\u306E\u8AAD\u307F\u8FBC\u307F\u307E\u305F\u306F\u89E3\u6790\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
1691
- docLoadFailed: "\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
1692
- pdfLoadFailed: "PDF\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
1693
- pdfParseFailed: "PDF\u306E\u8AAD\u307F\u8FBC\u307F\u307E\u305F\u306F\u89E3\u6790\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
1694
- pdfUrlInvalid: "PDF\u306EURL\u304C\u4E0D\u6B63\u3067\u3059",
1695
- pdfPasswordInvalid: "\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u7121\u52B9\u3067\u3059\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\uFF01",
1696
- pdfPasswordPlaceholder: "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
1697
- pdfSubmit: "\u9001 \u4FE1",
1698
- pdfInvalidOrDamaged: "\u30D5\u30A1\u30A4\u30EB\u304C\u7121\u52B9\u307E\u305F\u306F\u7834\u640D\u3057\u3066\u3044\u307E\u3059",
1699
- pdfFileNotFound: "\u30D5\u30A1\u30A4\u30EB\u304C\u5B58\u5728\u3057\u307E\u305B\u3093",
1700
- pdfUnexpectedResponse: "\u4E88\u671F\u3057\u306A\u3044\u30B5\u30FC\u30D0\u30FC\u30EC\u30B9\u30DD\u30F3\u30B9",
1701
- pdfLoadDocumentFailed: "\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093",
1702
- zoomOut: "\u7E2E\u5C0F",
1703
- zoomIn: "\u62E1\u5927",
1704
- zoomReset: "\u5143\u306B\u623B\u3059",
1705
- fitWidth: "\u5E45\u306B\u5408\u308F\u305B\u308B"
1706
- },
1707
- // MarkdownEditor リッチテキストエディタ
1708
- markdownEditor: {
1709
- mainArea: "\u30E1\u30A4\u30F3\u30B3\u30F3\u30C6\u30F3\u30C4\u30A8\u30EA\u30A2\u3001\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B...",
1710
- unknown: "\u4E0D\u660E",
1711
- // ツールバー
1712
- toolbar: {
1713
- quote: "\u9078\u629E\u30C6\u30AD\u30B9\u30C8\u3092\u5F15\u7528",
1714
- annotation: "\u6CE8\u91C8",
1715
- excerpt: "\u629C\u7C8B\u30E1\u30E2",
1716
- undo: "\u5143\u306B\u623B\u3059",
1717
- redo: "\u3084\u308A\u76F4\u3059",
1718
- alignLeft: "\u5DE6\u63C3\u3048",
1719
- alignCenter: "\u4E2D\u592E\u63C3\u3048",
1720
- alignRight: "\u53F3\u63C3\u3048",
1721
- alignJustify: "\u4E21\u7AEF\u63C3\u3048",
1722
- bold: "\u592A\u5B57",
1723
- italic: "\u659C\u4F53",
1724
- underline: "\u4E0B\u7DDA",
1725
- strike: "\u53D6\u308A\u6D88\u3057\u7DDA",
1726
- code: "\u30B3\u30FC\u30C9",
1727
- superscript: "\u4E0A\u4ED8\u304D\u6587\u5B57",
1728
- subscript: "\u4E0B\u4ED8\u304D\u6587\u5B57",
1729
- bulletList: "\u7B87\u6761\u66F8\u304D",
1730
- orderedList: "\u756A\u53F7\u4ED8\u304D\u30EA\u30B9\u30C8",
1731
- taskList: "\u30BF\u30B9\u30AF\u30EA\u30B9\u30C8",
1732
- listOptions: "\u30EA\u30B9\u30C8\u30AA\u30D7\u30B7\u30E7\u30F3",
1733
- list: "\u30EA\u30B9\u30C8",
1734
- blockquote: "\u5F15\u7528\u30D6\u30ED\u30C3\u30AF",
1735
- codeBlock: "\u30B3\u30FC\u30C9\u30D6\u30ED\u30C3\u30AF",
1736
- heading: "\u898B\u51FA\u3057",
1737
- headingLevel: "\u898B\u51FA\u3057 {{level}}",
1738
- addImage: "\u753B\u50CF\u3092\u8FFD\u52A0",
1739
- link: "\u30EA\u30F3\u30AF",
1740
- linkPlaceholder: "\u30EA\u30F3\u30AF\u3092\u8CBC\u308A\u4ED8\u3051...",
1741
- applyLink: "\u30EA\u30F3\u30AF\u3092\u9069\u7528",
1742
- openInNewWindow: "\u65B0\u3057\u3044\u30A6\u30A3\u30F3\u30C9\u30A6\u3067\u958B\u304F",
1743
- removeLink: "\u30EA\u30F3\u30AF\u3092\u524A\u9664"
1744
- },
1745
- // ハイライト / 背景色
1746
- highlight: {
1747
- toggle: "\u30CF\u30A4\u30E9\u30A4\u30C8\u8868\u793A\u3092\u5207\u308A\u66FF\u3048 ({{color}})",
1748
- label: "\u80CC\u666F\u8272",
1749
- textLabel: "\u30C6\u30AD\u30B9\u30C8\u80CC\u666F\u8272",
1750
- removeBackground: "\u80CC\u666F\u3092\u524A\u9664",
1751
- removeHighlight: "\u30CF\u30A4\u30E9\u30A4\u30C8\u3092\u524A\u9664",
1752
- default: "\u30C7\u30D5\u30A9\u30EB\u30C8\u80CC\u666F",
1753
- gray: "\u30B0\u30EC\u30FC\u80CC\u666F",
1754
- brown: "\u30D6\u30E9\u30A6\u30F3\u80CC\u666F",
1755
- orange: "\u30AA\u30EC\u30F3\u30B8\u80CC\u666F",
1756
- yellow: "\u30A4\u30A8\u30ED\u30FC\u80CC\u666F",
1757
- green: "\u30B0\u30EA\u30FC\u30F3\u80CC\u666F",
1758
- blue: "\u30D6\u30EB\u30FC\u80CC\u666F",
1759
- purple: "\u30D1\u30FC\u30D7\u30EB\u80CC\u666F",
1760
- pink: "\u30D4\u30F3\u30AF\u80CC\u666F",
1761
- red: "\u30EC\u30C3\u30C9\u80CC\u666F"
1762
- },
1763
- // 注釈
1764
- annotation: {
1765
- title: "\u6CE8\u91C8",
1766
- list: "\u6CE8\u91C8\u30EA\u30B9\u30C8",
1767
- add: "\u6CE8\u91C8\u3092\u8FFD\u52A0",
1768
- content: "\u6CE8\u91C8\u5185\u5BB9",
1769
- required: "\u6CE8\u91C8\u5185\u5BB9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
1770
- maxLength: "\u6CE8\u91C8\u5185\u5BB9\u306F500\u6587\u5B57\u4EE5\u5185\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
1771
- placeholder: "\u6CE8\u91C8\u5185\u5BB9\u3092\u5165\u529B...",
1772
- edit: "\u6CE8\u91C8\u3092\u7DE8\u96C6",
1773
- delete: "\u6CE8\u91C8\u3092\u524A\u9664",
1774
- confirmDelete: "\u3053\u306E\u6CE8\u91C8\u3092\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",
1775
- empty: "\u6CE8\u91C8\u306F\u3042\u308A\u307E\u305B\u3093"
1776
- },
1777
- // 抜粋
1778
- collection: {
1779
- title: "\u629C\u7C8B",
1780
- list: "\u629C\u7C8B\u30EA\u30B9\u30C8",
1781
- delete: "\u629C\u7C8B\u3092\u524A\u9664",
1782
- confirmDelete: "\u3053\u306E\u629C\u7C8B\u3092\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",
1783
- empty: "\u629C\u7C8B\u306F\u3042\u308A\u307E\u305B\u3093"
1784
- },
1785
- // ファイル / 画像アップロード
1786
- upload: {
1787
- noFile: "\u30D5\u30A1\u30A4\u30EB\u304C\u63D0\u4F9B\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
1788
- canceled: "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306F\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F",
1789
- fileSizeExceeded: "\u30D5\u30A1\u30A4\u30EB\u30B5\u30A4\u30BA\u304C\u6700\u5927\u5236\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059 ({{max}}MB)",
1790
- undefined: "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6A5F\u80FD\u304C\u5B9A\u7FA9\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
1791
- failedNoUrl: "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u5931\u6557\uFF1AURL\u304C\u8FD4\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",
1792
- failed: "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
1793
- noFileToUpload: "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",
1794
- maxFileCount: "\u6700\u5927{{limit}}\u4EF6\u307E\u3067\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3067\u304D\u307E\u3059"
1795
- }
1796
- }
1797
- };
1798
-
1799
- // src/i18n/index.ts
1800
- var DEFAULT_LNG = "zh-CN";
1801
- var LANG_KEY = "ns-lang";
1802
- var langManager = createTokenManager({ key: LANG_KEY });
1803
- function getLang() {
1804
- return langManager.get() || DEFAULT_LNG;
1805
- }
1806
- var i18n = createInstance({
1807
- lng: DEFAULT_LNG,
1808
- fallbackLng: DEFAULT_LNG,
1809
- defaultNS: NS_COMMON,
1810
- interpolation: { escapeValue: false },
1811
- resources: { [DEFAULT_LNG]: { [NS_COMMON]: commonZhCN } }
1812
- }).use(initReactI18next);
1813
- void i18n.init();
1814
- function addBundledResource(lng, ns, res) {
1815
- if (lng === DEFAULT_LNG && ns === NS_COMMON) return;
1816
- i18n.addResourceBundle(lng, ns, res, true, true);
1817
- }
1818
- function initI18n(options = {}) {
1819
- const { lng = getLang(), resources } = options;
1820
- for (const [l, namespaces] of Object.entries(resources ?? {})) {
1821
- for (const [ns, messages] of Object.entries(namespaces)) {
1822
- i18n.addResourceBundle(l, ns, messages, true, true);
1823
- }
1824
- }
1825
- switchLang(lng);
1826
- return i18n;
1827
- }
1828
- function switchLang(lng, reload = false) {
1829
- langManager.set(lng);
1830
- if (reload) {
1831
- window?.top?.location.reload();
1832
- } else {
1833
- i18n.changeLanguage(lng);
1834
- }
1835
- }
1836
- function useTranslation(namespace) {
1837
- return useTranslation$1(namespace, { useSuspense: false });
1838
- }
1839
- function getI18n() {
1840
- return i18n;
1841
- }
1842
- function t(key, options) {
1843
- return i18n.t(key, options);
1844
- }
1845
-
1846
- // src/components/File/styles.module.less
1847
- var styles_module_default = {
1848
- nsPreviewImage: "styles_module_nsPreviewImage",
1849
- nsPreviewPdf: "styles_module_nsPreviewPdf",
1850
- pdfToolbar: "styles_module_pdfToolbar",
1851
- nsPreviewPdfImage: "styles_module_nsPreviewPdfImage",
1852
- pdfImageNav: "styles_module_pdfImageNav",
1853
- pdfImageNavItem: "styles_module_pdfImageNavItem",
1854
- pdfImageNavItemImgWrapper: "styles_module_pdfImageNavItemImgWrapper",
1855
- pdfImageNavItemActive: "styles_module_pdfImageNavItemActive",
1856
- pdfImageNavItemImg: "styles_module_pdfImageNavItemImg",
1857
- pdfImageNavItemTip: "styles_module_pdfImageNavItemTip",
1858
- pdfImageBody: "styles_module_pdfImageBody",
1859
- pdfImageBodyToolbar: "styles_module_pdfImageBodyToolbar",
1860
- pdfImageBodyItem: "styles_module_pdfImageBodyItem",
1861
- pdfImageBodyItemInnerWrapper: "styles_module_pdfImageBodyItemInnerWrapper",
1862
- pdfImageBodyItemInner: "styles_module_pdfImageBodyItemInner",
1863
- pdfImageBodyItemActive: "styles_module_pdfImageBodyItemActive",
1864
- pdfImageBodyItemImg: "styles_module_pdfImageBodyItemImg",
1865
- nsPreviewVideo: "styles_module_nsPreviewVideo",
1866
- nsPreviewAudio: "styles_module_nsPreviewAudio",
1867
- nsPreviewDocx: "styles_module_nsPreviewDocx",
1868
- docxToolbar: "styles_module_docxToolbar",
1869
- docxContent: "styles_module_docxContent",
1870
- stateBody: "styles_module_stateBody",
1871
- pdfContainer: "styles_module_pdfContainer",
1872
- floatingToolbar: "styles_module_floatingToolbar",
1873
- divider: "styles_module_divider",
1874
- pdfBody: "styles_module_pdfBody",
1875
- pdfDocument: "styles_module_pdfDocument",
1876
- pdfPage: "styles_module_pdfPage"
1877
- };
1878
- var AudioPlayer_default = ({ fileUrl }) => {
1879
- const { t: t2 } = useTranslation(NS_COMMON);
1880
- return /* @__PURE__ */ jsxs("audio", { controls: true, className: styles_module_default.nsPreviewAudio, children: [
1881
- /* @__PURE__ */ jsx("source", { src: fileUrl, type: "audio/mpeg" }),
1882
- t2("filePreview.audioNotSupported")
1883
- ] }, fileUrl);
1884
- };
1885
1256
  var DocxPreview_default = ({ fileUrl, scale = 1 }) => {
1886
- const { t: t2 } = useTranslation(NS_COMMON);
1887
1257
  const containerRef = useRef(null);
1888
1258
  const [zoomRatio, setZoomRatio] = useState(scale);
1889
1259
  useEffect(() => {
@@ -1906,7 +1276,7 @@ var DocxPreview_default = ({ fileUrl, scale = 1 }) => {
1906
1276
  });
1907
1277
  }).catch((err) => {
1908
1278
  console.error("docx-preview \u6E32\u67D3\u5931\u8D25:", err);
1909
- if (containerRef.current) containerRef.current.innerHTML = `<p class="text-center">${t2("filePreview.docLoadFailed")}</p>`;
1279
+ if (containerRef.current) containerRef.current.innerHTML = '<p class="text-center">\u6587\u6863\u52A0\u8F7D\u5931\u8D25</p>';
1910
1280
  });
1911
1281
  }, [fileUrl]);
1912
1282
  const zoomIn = () => setZoomRatio((z) => Math.min(z + 0.1, 3));
@@ -1916,9 +1286,9 @@ var DocxPreview_default = ({ fileUrl, scale = 1 }) => {
1916
1286
  };
1917
1287
  return /* @__PURE__ */ jsxs("div", { className: classNames2(styles_module_default.nsPreviewDocx, "height-full", "width-full"), children: [
1918
1288
  /* @__PURE__ */ jsxs(Flex, { gap: 6, align: "center", className: styles_module_default.docxToolbar, children: [
1919
- /* @__PURE__ */ jsx(Button, { onClick: zoomOut, icon: /* @__PURE__ */ jsx(MinusCircleOutlined, {}), title: t2("filePreview.zoomOut") }),
1920
- /* @__PURE__ */ jsx(Button, { onClick: zoomIn, icon: /* @__PURE__ */ jsx(PlusCircleOutlined, {}), title: t2("filePreview.zoomIn") }),
1921
- /* @__PURE__ */ jsx(Button, { onClick: resetZoom, icon: /* @__PURE__ */ jsx(RedoOutlined, {}), title: t2("filePreview.zoomReset") })
1289
+ /* @__PURE__ */ jsx(Button, { onClick: zoomOut, icon: /* @__PURE__ */ jsx(MinusCircleOutlined, {}), title: "\u7F29\u5C0F" }),
1290
+ /* @__PURE__ */ jsx(Button, { onClick: zoomIn, icon: /* @__PURE__ */ jsx(PlusCircleOutlined, {}), title: "\u653E\u5927" }),
1291
+ /* @__PURE__ */ jsx(Button, { onClick: resetZoom, icon: /* @__PURE__ */ jsx(RedoOutlined, {}), title: "\u8FD8\u539F" })
1922
1292
  ] }),
1923
1293
  /* @__PURE__ */ jsx("div", { className: classNames2(styles_module_default.docxContent, "height-full", "scroll-fade-in"), children: /* @__PURE__ */ jsx(
1924
1294
  "div",
@@ -1996,10 +1366,9 @@ var FileIcon_default = ({ suffix, fontSize = 22 }) => {
1996
1366
  return /* @__PURE__ */ jsx("span", { style: styles, children: Icon });
1997
1367
  };
1998
1368
  var VideoPlayer_default = ({ fileUrl }) => {
1999
- const { t: t2 } = useTranslation(NS_COMMON);
2000
1369
  return /* @__PURE__ */ jsxs("video", { controls: true, className: styles_module_default.nsPreviewVideo, children: [
2001
1370
  /* @__PURE__ */ jsx("source", { src: fileUrl, type: "video/mp4" }),
2002
- t2("filePreview.videoNotSupported")
1371
+ "\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u6807\u7B7E\u3002"
2003
1372
  ] }, fileUrl);
2004
1373
  };
2005
1374
 
@@ -2012,7 +1381,6 @@ var baseComponentMap = {
2012
1381
  };
2013
1382
  var lazyCache = /* @__PURE__ */ new Map();
2014
1383
  var LazyComponent_default = ({ type, customComponents, unknownContent, ...rest }) => {
2015
- const { t: t2 } = useTranslation(NS_COMMON);
2016
1384
  const loader2 = customComponents?.[type] || baseComponentMap[type];
2017
1385
  const LazyComponent = useMemo(() => {
2018
1386
  if (!loader2) return null;
@@ -2022,11 +1390,11 @@ var LazyComponent_default = ({ type, customComponents, unknownContent, ...rest }
2022
1390
  lazyCache.set(type, component);
2023
1391
  return component;
2024
1392
  }, [loader2]);
2025
- if (!LazyComponent) return unknownContent || /* @__PURE__ */ jsx(Alert, { title: t2("lazyComponent.unknownType", { type }), type: "warning" });
1393
+ if (!LazyComponent) return unknownContent || /* @__PURE__ */ jsx(Alert, { title: `\u672A\u77E5\u7C7B\u578B\uFF1A${type}`, type: "warning" });
2026
1394
  return /* @__PURE__ */ jsx(
2027
1395
  Suspense,
2028
1396
  {
2029
- fallback: /* @__PURE__ */ jsx(Skeleton.Node, { active: true, className: styles_module_default2.skeleton, children: /* @__PURE__ */ jsx(Typography.Text, { type: "secondary", children: t2("lazyComponent.componentLoading") }) }),
1397
+ fallback: /* @__PURE__ */ jsx(Skeleton.Node, { active: true, className: styles_module_default2.skeleton, children: /* @__PURE__ */ jsx(Typography.Text, { type: "secondary", children: "\u7EC4\u4EF6\u52A0\u8F7D\u4E2D..." }) }),
2030
1398
  children: /* @__PURE__ */ jsx(LazyComponent, { ...rest })
2031
1399
  }
2032
1400
  );
@@ -2138,13 +1506,12 @@ var RenderMarkdown_default = ({ content = "", searchValue, customComponents, ...
2138
1506
  return /* @__PURE__ */ jsx("div", { className: "ns-markdown", children: reactContent });
2139
1507
  };
2140
1508
  var MarkdownPreview_default = ({ fileUrl, searchValue, asPlainText }) => {
2141
- const { t: t2 } = useTranslation(NS_COMMON);
2142
1509
  const [content, setContent] = useState("");
2143
1510
  const [error, setError] = useState("");
2144
1511
  const fetchMarkdown = async () => {
2145
1512
  const res = await fetch(fileUrl);
2146
1513
  if (res.status !== 200) {
2147
- throw new Error(t2("filePreview.requestFailedWithStatus", { status: res.status }));
1514
+ throw new Error(`\u8BF7\u6C42\u5931\u8D25\uFF0C\u72B6\u6001\u7801: ${res.status}`);
2148
1515
  }
2149
1516
  const buffer = await res.arrayBuffer();
2150
1517
  let markdownText = "";
@@ -2156,7 +1523,7 @@ var MarkdownPreview_default = ({ fileUrl, searchValue, asPlainText }) => {
2156
1523
  markdownText = gbkDecoder.decode(buffer);
2157
1524
  }
2158
1525
  if (!markdownText) {
2159
- throw new Error(t2("filePreview.emptyResponse"));
1526
+ throw new Error("\u8FD4\u56DE\u5185\u5BB9\u4E3A\u7A7A");
2160
1527
  }
2161
1528
  return markdownText;
2162
1529
  };
@@ -2168,10 +1535,10 @@ var MarkdownPreview_default = ({ fileUrl, searchValue, asPlainText }) => {
2168
1535
  const content2 = await fetchMarkdown();
2169
1536
  setContent(content2);
2170
1537
  } catch {
2171
- setError(t2("filePreview.fileParseFailed"));
1538
+ setError("\u52A0\u8F7D\u6216\u89E3\u6790\u6587\u4EF6\u5931\u8D25");
2172
1539
  }
2173
1540
  } else {
2174
- setError(t2("filePreview.fileUrlInvalid"));
1541
+ setError("\u6587\u4EF6\u5730\u5740\u9519\u8BEF");
2175
1542
  }
2176
1543
  };
2177
1544
  useEffect(() => {
@@ -2841,18 +2208,17 @@ var THUMB_IMG_HEIGHT = 514;
2841
2208
  var MAIN_IMG_HEIGHT = 800;
2842
2209
  var MAIN_IMG_WIDTH = 600;
2843
2210
  var PdfImagePreview_default = ({ fileUrl, pageNo, scale = 1, isHasThumbnails = true, onSetPageNo }) => {
2844
- const { t: t2 } = useTranslation(NS_COMMON);
2845
2211
  const [images, setImages] = useState([]);
2846
2212
  const [currentIndex, setCurrentIndex, getCurrentIndex] = useRefState_default(0);
2847
2213
  const [error, setError] = useState("");
2848
2214
  const fetchPdfImages = async () => {
2849
2215
  const res = await fetch(fileUrl);
2850
2216
  if (res.status !== 200) {
2851
- throw new Error(t2("filePreview.requestFailedWithStatus", { status: res.status }));
2217
+ throw new Error(`\u8BF7\u6C42\u5931\u8D25\uFF0C\u72B6\u6001\u7801: ${res.status}`);
2852
2218
  }
2853
2219
  const { data } = await res.json();
2854
2220
  if (!data?.items?.length) {
2855
- throw new Error(t2("filePreview.emptyResponse"));
2221
+ throw new Error("\u8FD4\u56DE\u5185\u5BB9\u4E3A\u7A7A");
2856
2222
  }
2857
2223
  setImages(data.items);
2858
2224
  };
@@ -2864,10 +2230,10 @@ var PdfImagePreview_default = ({ fileUrl, pageNo, scale = 1, isHasThumbnails = t
2864
2230
  try {
2865
2231
  await fetchPdfImages();
2866
2232
  } catch (error2) {
2867
- setError(t2("filePreview.pdfParseFailed"));
2233
+ setError("\u52A0\u8F7D\u6216\u89E3\u6790 pdf \u5931\u8D25");
2868
2234
  }
2869
2235
  } else {
2870
- setError(t2("filePreview.pdfUrlInvalid"));
2236
+ setError("pdf\u5730\u5740\u9519\u8BEF");
2871
2237
  }
2872
2238
  };
2873
2239
  useEffect(() => {
@@ -3007,9 +2373,9 @@ var PdfImagePreview_default = ({ fileUrl, pageNo, scale = 1, isHasThumbnails = t
3007
2373
  ) }) }),
3008
2374
  /* @__PURE__ */ jsx(Splitter.Panel, { children: /* @__PURE__ */ jsxs("div", { className: classNames2("height-full", styles_module_default.pdfImageBody), children: [
3009
2375
  /* @__PURE__ */ jsxs(Flex, { gap: 6, align: "center", className: styles_module_default.pdfImageBodyToolbar, children: [
3010
- /* @__PURE__ */ jsx(Button, { onClick: zoomOut, icon: /* @__PURE__ */ jsx(MinusCircleOutlined, {}), title: t2("filePreview.zoomOut") }),
3011
- /* @__PURE__ */ jsx(Button, { onClick: zoomIn, icon: /* @__PURE__ */ jsx(PlusCircleOutlined, {}), title: t2("filePreview.zoomIn") }),
3012
- /* @__PURE__ */ jsx(Button, { onClick: zoomFitWidth, icon: /* @__PURE__ */ jsx(ColumnWidthOutlined, {}), title: t2("filePreview.fitWidth") })
2376
+ /* @__PURE__ */ jsx(Button, { onClick: zoomOut, icon: /* @__PURE__ */ jsx(MinusCircleOutlined, {}), title: "\u7F29\u5C0F" }),
2377
+ /* @__PURE__ */ jsx(Button, { onClick: zoomIn, icon: /* @__PURE__ */ jsx(PlusCircleOutlined, {}), title: "\u653E\u5927" }),
2378
+ /* @__PURE__ */ jsx(Button, { onClick: zoomFitWidth, icon: /* @__PURE__ */ jsx(ColumnWidthOutlined, {}), title: "\u9002\u5E94\u5BBD\u5EA6" })
3013
2379
  ] }),
3014
2380
  /* @__PURE__ */ jsx("div", { ref: containerRef, className: "height-full scroll-fade-in", children: /* @__PURE__ */ jsx(
3015
2381
  "div",
@@ -3057,7 +2423,6 @@ var ProtectedView = ({
3057
2423
  verifyPassword,
3058
2424
  onVerifyPasswordEnd
3059
2425
  }) => {
3060
- const { t: t2 } = useTranslation(NS_COMMON);
3061
2426
  const [form] = Form.useForm();
3062
2427
  const onSubmit = () => {
3063
2428
  form.validateFields().then((values) => {
@@ -3068,10 +2433,10 @@ var ProtectedView = ({
3068
2433
  });
3069
2434
  };
3070
2435
  return /* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", className: "height-full", children: /* @__PURE__ */ jsxs("div", { style: { width: 300 }, children: [
3071
- passwordStatus === PasswordStatus.WrongPassword && /* @__PURE__ */ jsx(Alert, { title: t2("filePreview.pdfPasswordInvalid"), type: "error" }),
2436
+ passwordStatus === PasswordStatus.WrongPassword && /* @__PURE__ */ jsx(Alert, { title: "\u5BC6\u7801\u65E0\u6548\u3002\u8BF7\u518D\u8BD5\u4E00\u6B21\uFF01", type: "error" }),
3072
2437
  /* @__PURE__ */ jsxs(Form, { form, size: "large", className: "m-t-24", children: [
3073
- /* @__PURE__ */ jsx(Form.Item, { name: "password", rules: [{ required: true, message: t2("filePreview.pdfPasswordPlaceholder") }], children: /* @__PURE__ */ jsx(Input.Password, { autoComplete: "new-password", placeholder: t2("filePreview.pdfPasswordPlaceholder") }) }),
3074
- /* @__PURE__ */ jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsx(Button, { type: "primary", onClick: onSubmit, children: t2("filePreview.pdfSubmit") }) })
2438
+ /* @__PURE__ */ jsx(Form.Item, { name: "password", rules: [{ required: true, message: "\u8BF7\u8F93\u5165\u5BC6\u7801" }], children: /* @__PURE__ */ jsx(Input.Password, { autoComplete: "new-password", placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801" }) }),
2439
+ /* @__PURE__ */ jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsx(Button, { type: "primary", onClick: onSubmit, children: "\u63D0 \u4EA4" }) })
3075
2440
  ] })
3076
2441
  ] }) });
3077
2442
  };
@@ -3090,7 +2455,6 @@ var openLinksNewTabPlugin = () => {
3090
2455
  };
3091
2456
  };
3092
2457
  var PdfPreview_default = ({ password, fileUrl, pageNo = 1, scale = 1, isHasThumbnails = true, onSetPassword, onSetPageNo }) => {
3093
- const { t: t2 } = useTranslation(NS_COMMON);
3094
2458
  const embedRef = useRef(null);
3095
2459
  const [sizes, setSizes] = useState([0]);
3096
2460
  const [docLoaded, setDocLoaded, getDocLoaded] = useRefState_default(false);
@@ -3164,19 +2528,19 @@ var PdfPreview_default = ({ password, fileUrl, pageNo = 1, scale = 1, isHasThumb
3164
2528
  let message3 = "";
3165
2529
  switch (error.name) {
3166
2530
  case "InvalidPDFException":
3167
- message3 = t2("filePreview.pdfInvalidOrDamaged");
2531
+ message3 = "\u6587\u4EF6\u65E0\u6548\u6216\u5DF2\u635F\u574F";
3168
2532
  break;
3169
2533
  case "MissingPDFException":
3170
- message3 = t2("filePreview.pdfFileNotFound");
2534
+ message3 = "\u6587\u4EF6\u4E0D\u5B58\u5728";
3171
2535
  break;
3172
2536
  case "UnexpectedResponseException":
3173
- message3 = t2("filePreview.pdfUnexpectedResponse");
2537
+ message3 = "\u610F\u5916\u7684\u670D\u52A1\u5668\u54CD\u5E94";
3174
2538
  break;
3175
2539
  // case 'CMapReaderFactory not initialized':
3176
2540
  // message = '字体映射文件加载失败,请刷新页面重试'
3177
2541
  // break
3178
2542
  default:
3179
- message3 = t2("filePreview.pdfLoadDocumentFailed");
2543
+ message3 = "\u65E0\u6CD5\u52A0\u8F7D\u6587\u6863";
3180
2544
  break;
3181
2545
  }
3182
2546
  return /* @__PURE__ */ jsx(Flex, { className: "height-full", justify: "center", align: "center", children: /* @__PURE__ */ jsx(Alert, { title: message3, type: "error", showIcon: true }) });
@@ -3247,7 +2611,6 @@ var PdfPreview_default = ({ password, fileUrl, pageNo = 1, scale = 1, isHasThumb
3247
2611
  ] }) }) });
3248
2612
  };
3249
2613
  var FilePreview_default = ({ suffix, fileUrl, pdfParams, password, searchValue, emptyProps, onSetPassword }) => {
3250
- const { t: t2 } = useTranslation(NS_COMMON);
3251
2614
  const Preview = useMemo(() => {
3252
2615
  if (!fileUrl) {
3253
2616
  return /* @__PURE__ */ jsx(Empty, { ...emptyProps });
@@ -3257,7 +2620,7 @@ var FilePreview_default = ({ suffix, fileUrl, pdfParams, password, searchValue,
3257
2620
  case "JPG":
3258
2621
  case "JPEG":
3259
2622
  case "GIF":
3260
- return /* @__PURE__ */ jsx(Image$1, { classNames: { root: styles_module_default.nsPreviewImage }, src: fileUrl, alt: t2("filePreview.previewImageAlt") });
2623
+ return /* @__PURE__ */ jsx(Image$1, { classNames: { root: styles_module_default.nsPreviewImage }, src: fileUrl, alt: "\u9884\u89C8\u56FE\u7247" });
3261
2624
  case "PDF":
3262
2625
  return /* @__PURE__ */ jsx(PdfPreview_default, { fileUrl, ...pdfParams, password, onSetPassword });
3263
2626
  case "PDF_IMG":
@@ -3277,25 +2640,11 @@ var FilePreview_default = ({ suffix, fileUrl, pdfParams, password, searchValue,
3277
2640
  case "DOCX":
3278
2641
  return /* @__PURE__ */ jsx(DocxPreview_default, { fileUrl });
3279
2642
  default:
3280
- return /* @__PURE__ */ jsx(Result, { subTitle: t2("filePreview.previewNotSupported", { suffix: suffix || "" }) });
2643
+ return /* @__PURE__ */ jsx(Result, { subTitle: `\u6682\u4E0D\u652F\u6301 ${suffix || ""} \u6587\u4EF6\u7684\u9884\u89C8` });
3281
2644
  }
3282
2645
  }, [suffix, fileUrl, pdfParams]);
3283
2646
  return /* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", className: "height-full", children: Preview });
3284
2647
  };
3285
- var FilePreviewDrawer_default = ({ open, title, onClose, ...props }) => {
3286
- const { t: t2 } = useTranslation(NS_COMMON);
3287
- return /* @__PURE__ */ jsx(
3288
- Drawer,
3289
- {
3290
- title: title || t2("filePreview.title"),
3291
- push: false,
3292
- size: "100%",
3293
- open,
3294
- onClose,
3295
- children: /* @__PURE__ */ jsx(FilePreview_default, { ...props })
3296
- }
3297
- );
3298
- };
3299
2648
  loader.config({ monaco });
3300
2649
  var getLanguage = (suffix) => {
3301
2650
  switch (suffix.toLowerCase()) {
@@ -3335,7 +2684,6 @@ var getLanguage = (suffix) => {
3335
2684
  }
3336
2685
  };
3337
2686
  var CodePreview = ({ fileUrl, suffix }) => {
3338
- const { t: t2 } = useTranslation(NS_COMMON);
3339
2687
  const [content, setContent] = useState("");
3340
2688
  const [error, setError] = useState("");
3341
2689
  const [loading, setLoading] = useState(false);
@@ -3345,7 +2693,7 @@ var CodePreview = ({ fileUrl, suffix }) => {
3345
2693
  };
3346
2694
  const res = await fetch(fileUrl, { headers, signal });
3347
2695
  if (res.status !== 200) {
3348
- throw new Error(t2("filePreview.requestFailedWithStatus", { status: res.status }));
2696
+ throw new Error(`\u8BF7\u6C42\u5931\u8D25\uFF0C\u72B6\u6001\u7801: ${res.status}`);
3349
2697
  }
3350
2698
  const buffer = await res.arrayBuffer();
3351
2699
  let text = "";
@@ -3369,7 +2717,7 @@ var CodePreview = ({ fileUrl, suffix }) => {
3369
2717
  await fetchContent(controller.signal);
3370
2718
  } catch (error2) {
3371
2719
  if (!controller.signal.aborted) {
3372
- setError(t2("filePreview.loadFileFailed"));
2720
+ setError("\u52A0\u8F7D\u6587\u4EF6\u5931\u8D25");
3373
2721
  }
3374
2722
  } finally {
3375
2723
  if (!controller.signal.aborted) {
@@ -3519,7 +2867,6 @@ var PdfPage = React3__default.memo(({ pdf, pageNumber, scale, scrollContainerRef
3519
2867
  );
3520
2868
  });
3521
2869
  var DocumentPreview = ({ fileUrl, previewEnabled = true }) => {
3522
- const { t: t2 } = useTranslation(NS_COMMON);
3523
2870
  const [loading, setLoading] = useState(false);
3524
2871
  const [pdf, setPdf] = useState(null);
3525
2872
  const [numPages, setNumPages] = useState(0);
@@ -3579,9 +2926,9 @@ var DocumentPreview = ({ fileUrl, previewEnabled = true }) => {
3579
2926
  if (aborted) return;
3580
2927
  const message3 = e?.message;
3581
2928
  if (typeof message3 === "string" && message3.includes("cancelled")) ; else if (typeof message3 === "string" && message3.includes("(903)")) {
3582
- setError(t2("filePreview.previewGenerating"));
2929
+ setError("\u9884\u89C8\u6587\u4EF6\u6B63\u5728\u751F\u6210\u4E2D...");
3583
2930
  } else {
3584
- setError(message3 || t2("filePreview.pdfLoadFailed"));
2931
+ setError(message3 || "PDF \u52A0\u8F7D\u5931\u8D25");
3585
2932
  }
3586
2933
  } finally {
3587
2934
  if (!aborted) {
@@ -3686,7 +3033,7 @@ var DocumentPreview = ({ fileUrl, previewEnabled = true }) => {
3686
3033
  /* @__PURE__ */ jsx(Button, { type: "text", icon: /* @__PURE__ */ jsx(PlusOutlined, {}), size: "small", onClick: onZoomIn, disabled: scale >= MAX_SCALE })
3687
3034
  ] });
3688
3035
  if (!previewEnabled) {
3689
- return /* @__PURE__ */ jsx(Flex, { className: styles_module_default.stateBody, children: t2("filePreview.closePreview") });
3036
+ return /* @__PURE__ */ jsx(Flex, { className: styles_module_default.stateBody, children: "\u5173\u95ED\u9884\u89C8" });
3690
3037
  }
3691
3038
  return /* @__PURE__ */ jsxs("div", { className: styles_module_default.pdfContainer, children: [
3692
3039
  toolbar,
@@ -3695,7 +3042,6 @@ var DocumentPreview = ({ fileUrl, previewEnabled = true }) => {
3695
3042
  };
3696
3043
  var DocumentPreview_default = DocumentPreview;
3697
3044
  var HtmlPreview = ({ fileUrl }) => {
3698
- const { t: t2 } = useTranslation(NS_COMMON);
3699
3045
  const [content, setContent] = useState("");
3700
3046
  const [error, setError] = useState("");
3701
3047
  const [loading, setLoading] = useState(false);
@@ -3708,7 +3054,7 @@ var HtmlPreview = ({ fileUrl }) => {
3708
3054
  signal
3709
3055
  });
3710
3056
  if (res.status !== 200) {
3711
- throw new Error(t2("filePreview.requestFailedWithStatus", { status: res.status }));
3057
+ throw new Error(`\u8BF7\u6C42\u5931\u8D25\uFF0C\u72B6\u6001\u7801: ${res.status}`);
3712
3058
  }
3713
3059
  const buffer = await res.arrayBuffer();
3714
3060
  let htmlText = "";
@@ -3720,7 +3066,7 @@ var HtmlPreview = ({ fileUrl }) => {
3720
3066
  htmlText = gbkDecoder.decode(buffer);
3721
3067
  }
3722
3068
  if (!htmlText) {
3723
- throw new Error(t2("filePreview.emptyResponse"));
3069
+ throw new Error("\u8FD4\u56DE\u5185\u5BB9\u4E3A\u7A7A");
3724
3070
  }
3725
3071
  setContent(htmlText);
3726
3072
  };
@@ -3735,7 +3081,7 @@ var HtmlPreview = ({ fileUrl }) => {
3735
3081
  await fetchHtml(controller.signal);
3736
3082
  } catch (error2) {
3737
3083
  if (!controller.signal.aborted) {
3738
- setError(t2("filePreview.htmlParseFailed"));
3084
+ setError("\u52A0\u8F7D\u6216\u89E3\u6790 HTML \u5931\u8D25");
3739
3085
  }
3740
3086
  } finally {
3741
3087
  if (!controller.signal.aborted) {
@@ -3761,7 +3107,6 @@ var HtmlPreview = ({ fileUrl }) => {
3761
3107
  };
3762
3108
  var HtmlPreview_default = HtmlPreview;
3763
3109
  var luyaFilePreview_default = ({ suffix, fileUrl, emptyProps, fileName }) => {
3764
- const { t: t2 } = useTranslation(NS_COMMON);
3765
3110
  const extension = suffix ? suffix : getFileSuffixName(fileName || "");
3766
3111
  const Preview = useMemo(() => {
3767
3112
  if (!fileUrl) {
@@ -3777,7 +3122,7 @@ var luyaFilePreview_default = ({ suffix, fileUrl, emptyProps, fileName }) => {
3777
3122
  case "SVG":
3778
3123
  case "ICO":
3779
3124
  case "TIFF":
3780
- return /* @__PURE__ */ jsx(Image$1, { classNames: { root: styles_module_default.nsPreviewImage }, src: fileUrl, alt: t2("filePreview.previewImageAlt") });
3125
+ return /* @__PURE__ */ jsx(Image$1, { classNames: { root: styles_module_default.nsPreviewImage }, src: fileUrl, alt: "\u9884\u89C8\u56FE\u7247" });
3781
3126
  case "DOC":
3782
3127
  case "DOCX":
3783
3128
  case "PDF":
@@ -3822,18 +3167,30 @@ var luyaFilePreview_default = ({ suffix, fileUrl, emptyProps, fileName }) => {
3822
3167
  case "TXT":
3823
3168
  return /* @__PURE__ */ jsx(MarkdownPreview_default, { fileUrl, asPlainText: true });
3824
3169
  default:
3825
- return /* @__PURE__ */ jsx(Result, { subTitle: t2("filePreview.previewNotSupportedDownload", { suffix: suffix || "" }) });
3170
+ return /* @__PURE__ */ jsx(Result, { subTitle: `${suffix || ""} \u6587\u4EF6\u6682\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8\uFF0C\u8BF7\u4E0B\u8F7D\u6253\u5F00` });
3826
3171
  }
3827
3172
  }, [suffix, fileUrl, fileName]);
3828
3173
  return /* @__PURE__ */ jsx(Flex, { justify: "center", align: "center", className: "height-full p-t-16 p-b-16 p-l-16", children: Preview });
3829
3174
  };
3175
+ var FilePreviewDrawer_default = ({ open, title = "\u6587\u4EF6\u9884\u89C8", onClose, ...props }) => {
3176
+ return /* @__PURE__ */ jsx(
3177
+ Drawer,
3178
+ {
3179
+ title,
3180
+ push: false,
3181
+ size: "100%",
3182
+ open,
3183
+ onClose,
3184
+ children: /* @__PURE__ */ jsx(FilePreview_default, { ...props })
3185
+ }
3186
+ );
3187
+ };
3830
3188
 
3831
3189
  // src/components/MicroApp/styles.module.less
3832
3190
  var styles_module_default3 = {
3833
3191
  microApp: "styles_module_microApp"
3834
3192
  };
3835
3193
  var MicroApp_default = ({ name, url, className, onMounted, onError, data, ...rest }) => {
3836
- const { t: t2 } = useTranslation(NS_COMMON);
3837
3194
  const [loading, setLoading] = useState(false);
3838
3195
  useEffect(() => {
3839
3196
  setLoading(true);
@@ -3848,10 +3205,10 @@ var MicroApp_default = ({ name, url, className, onMounted, onError, data, ...res
3848
3205
  };
3849
3206
  const microAppData = useMemo(() => {
3850
3207
  const parentMainSource = window?.microApp?.getData?.()?.mainSource || [];
3851
- return { [LANG_KEY]: getLang(), mainSource: [...parentMainSource, name], ...data };
3208
+ return { mainSource: [...parentMainSource, name], ...data };
3852
3209
  }, [data, name]);
3853
3210
  const TagName = microApp.tagName || "micro-app";
3854
- return /* @__PURE__ */ jsxCustomEvent(Spin, { spinning: loading, classNames: { root: "full-spin" }, description: t2("microApp.loading") }, /* @__PURE__ */ jsxCustomEvent(
3211
+ return /* @__PURE__ */ jsxCustomEvent(Spin, { spinning: loading, classNames: { root: "full-spin" }, description: "\u52A0\u8F7D\u4E2D..." }, /* @__PURE__ */ jsxCustomEvent(
3855
3212
  TagName,
3856
3213
  {
3857
3214
  name,
@@ -3940,12 +3297,10 @@ var styles_module_default4 = {
3940
3297
  iframe: "styles_module_iframe"
3941
3298
  };
3942
3299
  var Iframe_default = forwardRef(({ defaultMainSource, id, src, className, onLoad }, ref) => {
3943
- const { t: t2 } = useTranslation(NS_COMMON);
3944
3300
  const [loading, setLoading] = useState(false);
3945
3301
  const finalSrc = useMemo(() => {
3946
- const baseUrl = addUrlLastSlash(setUrlMainSource(src, location.href, defaultMainSource));
3947
- return buildUrlParams({ v: Date.now(), [LANG_KEY]: getLang() }, baseUrl);
3948
- }, [src, defaultMainSource]);
3302
+ return buildUrlParams({ v: Date.now() }, addUrlLastSlash(setUrlMainSource(src, location.href, defaultMainSource)));
3303
+ }, [src]);
3949
3304
  const onHandleLoad = () => {
3950
3305
  setLoading(false);
3951
3306
  onLoad?.();
@@ -3953,7 +3308,7 @@ var Iframe_default = forwardRef(({ defaultMainSource, id, src, className, onLoad
3953
3308
  useEffect(() => {
3954
3309
  setLoading(true);
3955
3310
  }, [src]);
3956
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Spin, { spinning: loading, classNames: { root: "full-spin" }, description: t2("iframe.loading"), children: /* @__PURE__ */ jsx(
3311
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Spin, { spinning: loading, classNames: { root: "full-spin" }, description: "\u52A0\u8F7D\u4E2D...", children: /* @__PURE__ */ jsx(
3957
3312
  "iframe",
3958
3313
  {
3959
3314
  id,
@@ -4633,37 +3988,24 @@ function useIsBreakpoint(mode = "max", breakpoint = 768) {
4633
3988
  }
4634
3989
  var { TextArea } = Input;
4635
3990
  var AnnotationModal_default = ({ visible, onCancel, onConfirm }) => {
4636
- const { t: t2 } = useTranslation(NS_COMMON);
4637
3991
  const [form] = Form.useForm();
4638
3992
  const handleOk = async () => {
4639
3993
  const values = await form.validateFields();
4640
3994
  onConfirm(values.content.trim());
4641
3995
  onCancel();
4642
3996
  };
4643
- return /* @__PURE__ */ jsx(
4644
- Modal,
3997
+ return /* @__PURE__ */ jsx(Modal, { title: "\u6DFB\u52A0\u6279\u6CE8", open: visible, onOk: handleOk, onCancel, destroyOnHidden: true, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", children: /* @__PURE__ */ jsx(Form, { form, layout: "vertical", children: /* @__PURE__ */ jsx(
3998
+ Form.Item,
4645
3999
  {
4646
- title: t2("markdownEditor.annotation.add"),
4647
- open: visible,
4648
- onOk: handleOk,
4649
- onCancel,
4650
- destroyOnHidden: true,
4651
- okText: t2("common.confirm"),
4652
- cancelText: t2("common.cancel"),
4653
- children: /* @__PURE__ */ jsx(Form, { form, layout: "vertical", children: /* @__PURE__ */ jsx(
4654
- Form.Item,
4655
- {
4656
- name: "content",
4657
- label: t2("markdownEditor.annotation.content"),
4658
- rules: [
4659
- { whitespace: true, required: true, message: t2("markdownEditor.annotation.required") },
4660
- { max: 500, message: t2("markdownEditor.annotation.maxLength") }
4661
- ],
4662
- children: /* @__PURE__ */ jsx(TextArea, { rows: 4, placeholder: t2("markdownEditor.annotation.placeholder"), showCount: true, maxLength: 500 })
4663
- }
4664
- ) })
4000
+ name: "content",
4001
+ label: "\u6279\u6CE8\u5185\u5BB9",
4002
+ rules: [
4003
+ { whitespace: true, required: true, message: "\u8BF7\u8F93\u5165\u6279\u6CE8\u5185\u5BB9" },
4004
+ { max: 500, message: "\u6279\u6CE8\u5185\u5BB9\u4E0D\u80FD\u8D85\u8FC7500\u4E2A\u5B57\u7B26" }
4005
+ ],
4006
+ children: /* @__PURE__ */ jsx(TextArea, { rows: 4, placeholder: "\u8BF7\u8F93\u5165\u60A8\u7684\u6279\u6CE8\u5185\u5BB9...", showCount: true, maxLength: 500 })
4665
4007
  }
4666
- );
4008
+ ) }) });
4667
4009
  };
4668
4010
 
4669
4011
  // src/components/MarkdownEditor/annotation/constant.ts
@@ -4688,7 +4030,6 @@ var AnnotationSidebar_default = ({
4688
4030
  annotationConfig,
4689
4031
  onClose
4690
4032
  }) => {
4691
- const { t: t2 } = useTranslation(NS_COMMON);
4692
4033
  const [form] = Form.useForm();
4693
4034
  const [editingId, setEditingId] = useState();
4694
4035
  const itemRefs = useRef({});
@@ -4725,7 +4066,7 @@ var AnnotationSidebar_default = ({
4725
4066
  /* @__PURE__ */ jsxs(Space, { children: [
4726
4067
  /* @__PURE__ */ jsx(MessageOutlined, {}),
4727
4068
  /* @__PURE__ */ jsxs("span", { children: [
4728
- t2("markdownEditor.annotation.title"),
4069
+ "\u6279\u6CE8",
4729
4070
  annotations.length > 0 && `\uFF08${annotations.length}\uFF09`
4730
4071
  ] })
4731
4072
  ] }),
@@ -4760,15 +4101,15 @@ var AnnotationSidebar_default = ({
4760
4101
  {
4761
4102
  name: "content",
4762
4103
  rules: [
4763
- { whitespace: true, required: true, message: t2("markdownEditor.annotation.required") },
4764
- { max: 500, message: t2("markdownEditor.annotation.maxLength") }
4104
+ { whitespace: true, required: true, message: "\u8BF7\u8F93\u5165\u6279\u6CE8\u5185\u5BB9" },
4105
+ { max: 500, message: "\u6279\u6CE8\u5185\u5BB9\u4E0D\u80FD\u8D85\u8FC7500\u4E2A\u5B57\u7B26" }
4765
4106
  ],
4766
- children: /* @__PURE__ */ jsx(TextArea2, { autoFocus: true, rows: 2, placeholder: t2("markdownEditor.annotation.placeholder"), showCount: true, maxLength: 500 })
4107
+ children: /* @__PURE__ */ jsx(TextArea2, { autoFocus: true, rows: 2, placeholder: "\u8BF7\u8F93\u5165\u60A8\u7684\u6279\u6CE8\u5185\u5BB9...", showCount: true, maxLength: 500 })
4767
4108
  }
4768
4109
  ) }),
4769
4110
  /* @__PURE__ */ jsxs(Space, { children: [
4770
- /* @__PURE__ */ jsx(Button, { size: "small", type: "primary", onClick: handleSaveEdit, children: t2("common.save") }),
4771
- /* @__PURE__ */ jsx(Button, { size: "small", onClick: handleCancelEdit, children: t2("common.cancel") })
4111
+ /* @__PURE__ */ jsx(Button, { size: "small", type: "primary", onClick: handleSaveEdit, children: "\u4FDD\u5B58" }),
4112
+ /* @__PURE__ */ jsx(Button, { size: "small", onClick: handleCancelEdit, children: "\u53D6\u6D88" })
4772
4113
  ] })
4773
4114
  ] }) : /* @__PURE__ */ jsxs(Flex, { gap: 8, vertical: true, children: [
4774
4115
  /* @__PURE__ */ jsx(Text2, { children: annotation.content }),
@@ -4778,7 +4119,7 @@ var AnnotationSidebar_default = ({
4778
4119
  {
4779
4120
  type: "text",
4780
4121
  size: "small",
4781
- title: t2("markdownEditor.annotation.edit"),
4122
+ title: "\u7F16\u8F91\u6279\u6CE8",
4782
4123
  icon: /* @__PURE__ */ jsx(EditOutlined, {}),
4783
4124
  onClick: (e) => {
4784
4125
  handleEdit(annotation);
@@ -4788,12 +4129,12 @@ var AnnotationSidebar_default = ({
4788
4129
  /* @__PURE__ */ jsx(
4789
4130
  Popconfirm,
4790
4131
  {
4791
- title: t2("common.defaultTitle"),
4792
- okText: t2("common.confirm"),
4793
- cancelText: t2("common.cancel"),
4794
- description: t2("markdownEditor.annotation.confirmDelete"),
4132
+ title: "\u63D0\u793A",
4133
+ okText: "\u786E\u5B9A",
4134
+ cancelText: "\u53D6\u6D88",
4135
+ description: "\u786E\u8BA4\u5220\u9664\u5F53\u524D\u6279\u6CE8\u5417?",
4795
4136
  onConfirm: () => onDeleteAnnotation(annotation[ANNOTATION_ATTRS[0]]),
4796
- children: /* @__PURE__ */ jsx(Button, { type: "text", size: "small", title: t2("markdownEditor.annotation.delete"), icon: /* @__PURE__ */ jsx(DeleteOutlined, {}) })
4137
+ children: /* @__PURE__ */ jsx(Button, { type: "text", size: "small", title: "\u5220\u9664\u6279\u6CE8", icon: /* @__PURE__ */ jsx(DeleteOutlined, {}) })
4797
4138
  }
4798
4139
  )
4799
4140
  ] })
@@ -4802,7 +4143,7 @@ var AnnotationSidebar_default = ({
4802
4143
  }
4803
4144
  )
4804
4145
  }
4805
- ) : /* @__PURE__ */ jsx(Flex, { vertical: true, justify: "center", align: "center", className: "height-full", children: /* @__PURE__ */ jsx(Empty, { description: t2("markdownEditor.annotation.empty") }) })
4146
+ ) : /* @__PURE__ */ jsx(Flex, { vertical: true, justify: "center", align: "center", className: "height-full", children: /* @__PURE__ */ jsx(Empty, { description: "\u6682\u65E0\u6279\u6CE8" }) })
4806
4147
  }
4807
4148
  );
4808
4149
  const container = annotationConfig?.getContainer?.();
@@ -5087,7 +4428,7 @@ var useAnnotations = (annotationConfig) => {
5087
4428
  const id = genNonDuplicateID();
5088
4429
  editor.current.chain().focus().setMark(ANNOTATION_KEY, {
5089
4430
  "annotation-id": id,
5090
- "user-name": annotationConfig?.user?.name || t("markdownEditor.unknown"),
4431
+ "user-name": annotationConfig?.user?.name || "\u672A\u77E5",
5091
4432
  "user-id": annotationConfig?.user.id || "0000",
5092
4433
  "update-time": getTimestamp(),
5093
4434
  content
@@ -5369,7 +4710,6 @@ var collectionSidebar_default = ({
5369
4710
  collectionConfig,
5370
4711
  onClose
5371
4712
  }) => {
5372
- const { t: t2 } = useTranslation(NS_COMMON);
5373
4713
  const itemRefs = useRef({});
5374
4714
  useEffect(() => {
5375
4715
  if (selectedCollectionId) {
@@ -5391,7 +4731,7 @@ var collectionSidebar_default = ({
5391
4731
  /* @__PURE__ */ jsxs(Space, { children: [
5392
4732
  /* @__PURE__ */ jsx(BookOutlined, {}),
5393
4733
  /* @__PURE__ */ jsxs("span", { children: [
5394
- t2("markdownEditor.collection.title"),
4734
+ "\u6458\u5F55",
5395
4735
  collections.length > 0 && `\uFF08${collections.length}\uFF09`
5396
4736
  ] })
5397
4737
  ] }),
@@ -5434,12 +4774,12 @@ var collectionSidebar_default = ({
5434
4774
  !disabled && selectedCollectionId === collection[COLLECTION_ATTRS[0]] && /* @__PURE__ */ jsx(Space, { children: /* @__PURE__ */ jsx(
5435
4775
  Popconfirm,
5436
4776
  {
5437
- title: t2("common.defaultTitle"),
5438
- okText: t2("common.confirm"),
5439
- cancelText: t2("common.cancel"),
5440
- description: t2("markdownEditor.collection.confirmDelete"),
4777
+ title: "\u63D0\u793A",
4778
+ okText: "\u786E\u5B9A",
4779
+ cancelText: "\u53D6\u6D88",
4780
+ description: "\u786E\u8BA4\u5220\u9664\u5F53\u524D\u6458\u5F55\u5417?",
5441
4781
  onConfirm: () => onDeleteCollection(collection[COLLECTION_ATTRS[0]]),
5442
- children: /* @__PURE__ */ jsx(Button, { type: "text", size: "small", title: t2("markdownEditor.collection.delete"), icon: /* @__PURE__ */ jsx(DeleteOutlined, {}) })
4782
+ children: /* @__PURE__ */ jsx(Button, { type: "text", size: "small", title: "\u5220\u9664\u6458\u5F55", icon: /* @__PURE__ */ jsx(DeleteOutlined, {}) })
5443
4783
  }
5444
4784
  ) })
5445
4785
  ] })
@@ -5448,7 +4788,7 @@ var collectionSidebar_default = ({
5448
4788
  );
5449
4789
  }
5450
4790
  }
5451
- ) : /* @__PURE__ */ jsx(Flex, { vertical: true, justify: "center", align: "center", className: "height-full", children: /* @__PURE__ */ jsx(Empty, { description: t2("markdownEditor.collection.empty") }) })
4791
+ ) : /* @__PURE__ */ jsx(Flex, { vertical: true, justify: "center", align: "center", className: "height-full", children: /* @__PURE__ */ jsx(Empty, { description: "\u6682\u65E0\u6458\u5F55" }) })
5452
4792
  }
5453
4793
  );
5454
4794
  const container = collectionConfig?.getContainer?.();
@@ -5489,7 +4829,7 @@ var useCollections = (collectionConfig) => {
5489
4829
  }
5490
4830
  editor.current.chain().focus().setMark(COLLECTION_KEY, {
5491
4831
  "collection-id": remoteId,
5492
- "user-name": collectionConfig?.user?.name || t("markdownEditor.unknown"),
4832
+ "user-name": collectionConfig?.user?.name || "\u672A\u77E5",
5493
4833
  "user-id": collectionConfig?.user.id || "0000",
5494
4834
  "update-time": getTimestamp(),
5495
4835
  "page-no": pageIndex
@@ -6038,7 +5378,6 @@ var BlockquoteButton = forwardRef(
6038
5378
  hideWhenUnavailable,
6039
5379
  onToggled
6040
5380
  });
6041
- const { t: t2 } = useTranslation(NS_COMMON);
6042
5381
  const handleClick = useCallback(
6043
5382
  (event) => {
6044
5383
  onClick?.(event);
@@ -6062,7 +5401,7 @@ var BlockquoteButton = forwardRef(
6062
5401
  "data-disabled": !canToggle3,
6063
5402
  "aria-label": label,
6064
5403
  "aria-pressed": isActive,
6065
- tooltip: t2("markdownEditor.toolbar.blockquote"),
5404
+ tooltip: "\u5F15\u7528\u5757",
6066
5405
  onClick: handleClick,
6067
5406
  ...buttonProps,
6068
5407
  ref,
@@ -6230,7 +5569,7 @@ function useBlockquote(config) {
6230
5569
  isActive,
6231
5570
  handleToggle,
6232
5571
  canToggle: canToggle3,
6233
- label: t("markdownEditor.toolbar.blockquote"),
5572
+ label: "\u5F15\u7528\u5757",
6234
5573
  shortcutKeys: BLOCKQUOTE_SHORTCUT_KEY,
6235
5574
  Icon: BlockquoteIcon
6236
5575
  };
@@ -6265,7 +5604,6 @@ var CodeBlockButton = forwardRef(
6265
5604
  hideWhenUnavailable,
6266
5605
  onToggled
6267
5606
  });
6268
- const { t: t2 } = useTranslation(NS_COMMON);
6269
5607
  const handleClick = useCallback(
6270
5608
  (event) => {
6271
5609
  onClick?.(event);
@@ -6289,7 +5627,7 @@ var CodeBlockButton = forwardRef(
6289
5627
  tabIndex: -1,
6290
5628
  "aria-label": label,
6291
5629
  "aria-pressed": isActive,
6292
- tooltip: t2("markdownEditor.toolbar.codeBlock"),
5630
+ tooltip: "\u4EE3\u7801\u5757",
6293
5631
  onClick: handleClick,
6294
5632
  ...buttonProps,
6295
5633
  ref,
@@ -6448,7 +5786,7 @@ function useCodeBlock(config) {
6448
5786
  isActive,
6449
5787
  handleToggle,
6450
5788
  canToggle: canToggleState,
6451
- label: t("markdownEditor.toolbar.codeBlock"),
5789
+ label: "\u4EE3\u7801\u5757",
6452
5790
  shortcutKeys: CODE_BLOCK_SHORTCUT_KEY,
6453
5791
  Icon: CodeBlockIcon
6454
5792
  };
@@ -6609,7 +5947,6 @@ var ColorHighlightButton = forwardRef(
6609
5947
  style,
6610
5948
  ...buttonProps
6611
5949
  }, ref) => {
6612
- const { t: t2 } = useTranslation(NS_COMMON);
6613
5950
  const { editor } = useTiptapEditor(providedEditor);
6614
5951
  const {
6615
5952
  isVisible,
@@ -6621,7 +5958,7 @@ var ColorHighlightButton = forwardRef(
6621
5958
  } = useColorHighlight({
6622
5959
  editor,
6623
5960
  highlightColor,
6624
- label: text || t2("markdownEditor.highlight.toggle", { color: highlightColor }),
5961
+ label: text || `\u5207\u6362\u9AD8\u4EAE\u663E\u793A (${highlightColor})`,
6625
5962
  hideWhenUnavailable,
6626
5963
  mode,
6627
5964
  onApplied
@@ -6680,52 +6017,52 @@ ColorHighlightButton.displayName = "ColorHighlightButton";
6680
6017
  var COLOR_HIGHLIGHT_SHORTCUT_KEY = "mod+shift+h";
6681
6018
  var HIGHLIGHT_COLORS = [
6682
6019
  {
6683
- labelKey: "markdownEditor.highlight.default",
6020
+ label: "\u9ED8\u8BA4\u80CC\u666F",
6684
6021
  value: "var(--tt-bg-color)",
6685
6022
  border: "var(--tt-bg-color-contrast)"
6686
6023
  },
6687
6024
  {
6688
- labelKey: "markdownEditor.highlight.gray",
6025
+ label: "\u7070\u8272\u80CC\u666F",
6689
6026
  value: "var(--tt-color-highlight-gray)",
6690
6027
  border: "var(--tt-color-highlight-gray-contrast)"
6691
6028
  },
6692
6029
  {
6693
- labelKey: "markdownEditor.highlight.brown",
6030
+ label: "\u68D5\u8272\u80CC\u666F",
6694
6031
  value: "var(--tt-color-highlight-brown)",
6695
6032
  border: "var(--tt-color-highlight-brown-contrast)"
6696
6033
  },
6697
6034
  {
6698
- labelKey: "markdownEditor.highlight.orange",
6035
+ label: "\u6A59\u8272\u80CC\u666F",
6699
6036
  value: "var(--tt-color-highlight-orange)",
6700
6037
  border: "var(--tt-color-highlight-orange-contrast)"
6701
6038
  },
6702
6039
  {
6703
- labelKey: "markdownEditor.highlight.yellow",
6040
+ label: "\u9EC4\u8272\u80CC\u666F",
6704
6041
  value: "var(--tt-color-highlight-yellow)",
6705
6042
  border: "var(--tt-color-highlight-yellow-contrast)"
6706
6043
  },
6707
6044
  {
6708
- labelKey: "markdownEditor.highlight.green",
6045
+ label: "\u7EFF\u8272\u80CC\u666F",
6709
6046
  value: "var(--tt-color-highlight-green)",
6710
6047
  border: "var(--tt-color-highlight-green-contrast)"
6711
6048
  },
6712
6049
  {
6713
- labelKey: "markdownEditor.highlight.blue",
6050
+ label: "\u84DD\u8272\u80CC\u666F",
6714
6051
  value: "var(--tt-color-highlight-blue)",
6715
6052
  border: "var(--tt-color-highlight-blue-contrast)"
6716
6053
  },
6717
6054
  {
6718
- labelKey: "markdownEditor.highlight.purple",
6055
+ label: "\u7D2B\u8272\u80CC\u666F",
6719
6056
  value: "var(--tt-color-highlight-purple)",
6720
6057
  border: "var(--tt-color-highlight-purple-contrast)"
6721
6058
  },
6722
6059
  {
6723
- labelKey: "markdownEditor.highlight.pink",
6060
+ label: "\u7C89\u8272\u80CC\u666F",
6724
6061
  value: "var(--tt-color-highlight-pink)",
6725
6062
  border: "var(--tt-color-highlight-pink-contrast)"
6726
6063
  },
6727
6064
  {
6728
- labelKey: "markdownEditor.highlight.red",
6065
+ label: "\u7EA2\u8272\u80CC\u666F",
6729
6066
  value: "var(--tt-color-highlight-red)",
6730
6067
  border: "var(--tt-color-highlight-red-contrast)"
6731
6068
  }
@@ -6851,7 +6188,7 @@ function useColorHighlight(config) {
6851
6188
  const handleRemoveHighlight = useCallback(() => {
6852
6189
  const success = removeHighlight(editor, mode);
6853
6190
  if (success) {
6854
- onApplied?.({ color: "", label: t("markdownEditor.highlight.removeBackground"), mode });
6191
+ onApplied?.({ color: "", label: "\u79FB\u9664\u80CC\u666F", mode });
6855
6192
  }
6856
6193
  return success;
6857
6194
  }, [editor, onApplied, mode]);
@@ -6873,31 +6210,28 @@ function useColorHighlight(config) {
6873
6210
  handleColorHighlight,
6874
6211
  handleRemoveHighlight,
6875
6212
  canColorHighlight: canColorHighlightState,
6876
- label: label || t("markdownEditor.highlight.label"),
6213
+ label: label || `\u80CC\u666F\u8272`,
6877
6214
  shortcutKeys: COLOR_HIGHLIGHT_SHORTCUT_KEY,
6878
6215
  Icon: HighlighterIcon,
6879
6216
  mode
6880
6217
  };
6881
6218
  }
6882
- var ColorHighlightPopoverButton = forwardRef(({ className, children, ...props }, ref) => {
6883
- const { t: t2 } = useTranslation(NS_COMMON);
6884
- return /* @__PURE__ */ jsx(
6885
- Button7,
6886
- {
6887
- type: "button",
6888
- className,
6889
- "data-style": "ghost",
6890
- "data-appearance": "default",
6891
- role: "button",
6892
- tabIndex: -1,
6893
- "aria-label": t2("markdownEditor.highlight.textLabel"),
6894
- tooltip: t2("markdownEditor.highlight.label"),
6895
- ref,
6896
- ...props,
6897
- children: children ?? /* @__PURE__ */ jsx(HighlighterIcon, { className: "tiptap-button-icon" })
6898
- }
6899
- );
6900
- });
6219
+ var ColorHighlightPopoverButton = forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
6220
+ Button7,
6221
+ {
6222
+ type: "button",
6223
+ className,
6224
+ "data-style": "ghost",
6225
+ "data-appearance": "default",
6226
+ role: "button",
6227
+ tabIndex: -1,
6228
+ "aria-label": "\u6587\u672C\u80CC\u666F\u8272",
6229
+ tooltip: "\u80CC\u666F\u8272",
6230
+ ref,
6231
+ ...props,
6232
+ children: children ?? /* @__PURE__ */ jsx(HighlighterIcon, { className: "tiptap-button-icon" })
6233
+ }
6234
+ ));
6901
6235
  ColorHighlightPopoverButton.displayName = "ColorHighlightPopoverButton";
6902
6236
  function ColorHighlightPopoverContent({
6903
6237
  editor,
@@ -6912,10 +6246,9 @@ function ColorHighlightPopoverContent({
6912
6246
  const { handleRemoveHighlight } = useColorHighlight({ editor });
6913
6247
  const isMobile = useIsBreakpoint();
6914
6248
  const containerRef = useRef(null);
6915
- const { t: t2 } = useTranslation(NS_COMMON);
6916
6249
  const menuItems = useMemo(
6917
- () => [...colors.map((c) => ({ ...c, label: t2(c.labelKey) })), { label: t2("markdownEditor.highlight.removeHighlight"), value: "none" }],
6918
- [colors, t2]
6250
+ () => [...colors, { label: "\u79FB\u9664\u9AD8\u4EAE", value: "none" }],
6251
+ [colors]
6919
6252
  );
6920
6253
  const { selectedIndex } = useMenuNavigation({
6921
6254
  containerRef,
@@ -6944,8 +6277,8 @@ function ColorHighlightPopoverContent({
6944
6277
  {
6945
6278
  editor,
6946
6279
  highlightColor: color.value,
6947
- tooltip: t2(color.labelKey),
6948
- "aria-label": `${t2(color.labelKey)} highlight color`,
6280
+ tooltip: color.label,
6281
+ "aria-label": `${color.label} highlight color`,
6949
6282
  tabIndex: index === selectedIndex ? 0 : -1,
6950
6283
  "data-highlighted": selectedIndex === index
6951
6284
  },
@@ -6956,8 +6289,8 @@ function ColorHighlightPopoverContent({
6956
6289
  Button7,
6957
6290
  {
6958
6291
  onClick: handleRemoveHighlight,
6959
- "aria-label": t2("markdownEditor.highlight.removeBackground"),
6960
- tooltip: t2("markdownEditor.highlight.removeBackground"),
6292
+ "aria-label": "\u79FB\u9664\u80CC\u666F",
6293
+ tooltip: "\u79FB\u9664\u80CC\u666F",
6961
6294
  tabIndex: selectedIndex === colors.length ? 0 : -1,
6962
6295
  type: "button",
6963
6296
  role: "menuitem",
@@ -6983,7 +6316,6 @@ function ColorHighlightPopover({
6983
6316
  onApplied,
6984
6317
  ...props
6985
6318
  }) {
6986
- const { t: t2 } = useTranslation(NS_COMMON);
6987
6319
  const { editor } = useTiptapEditor(providedEditor);
6988
6320
  const [isOpen, setIsOpen] = useState(false);
6989
6321
  const { isVisible, canColorHighlight: canColorHighlight2, isActive, label, Icon } = useColorHighlight({
@@ -7006,7 +6338,7 @@ function ColorHighlightPopover({
7006
6338
  children: /* @__PURE__ */ jsx(Icon, { className: "tiptap-button-icon" })
7007
6339
  }
7008
6340
  ) }),
7009
- /* @__PURE__ */ jsx(PopoverContent, { "aria-label": t2("markdownEditor.highlight.label"), children: /* @__PURE__ */ jsx(ColorHighlightPopoverContent, { editor, colors }) })
6341
+ /* @__PURE__ */ jsx(PopoverContent, { "aria-label": "\u80CC\u666F\u8272", children: /* @__PURE__ */ jsx(ColorHighlightPopoverContent, { editor, colors }) })
7010
6342
  ] });
7011
6343
  }
7012
6344
  var ChevronDownIcon = memo(({ className, ...props }) => {
@@ -7489,7 +6821,6 @@ var HeadingDropdownMenu = forwardRef(
7489
6821
  }, ref) => {
7490
6822
  const { editor } = useTiptapEditor(providedEditor);
7491
6823
  const [isOpen, setIsOpen] = useState(false);
7492
- const { t: t2 } = useTranslation(NS_COMMON);
7493
6824
  const { isVisible, isActive, canToggle: canToggle3, Icon } = useHeadingDropdownMenu({
7494
6825
  editor,
7495
6826
  levels,
@@ -7519,7 +6850,7 @@ var HeadingDropdownMenu = forwardRef(
7519
6850
  "data-disabled": !canToggle3,
7520
6851
  "aria-label": "Format text as heading",
7521
6852
  "aria-pressed": isActive,
7522
- tooltip: t2("markdownEditor.toolbar.heading"),
6853
+ tooltip: "\u6807\u9898",
7523
6854
  ...buttonProps,
7524
6855
  ref,
7525
6856
  children: [
@@ -7533,10 +6864,10 @@ var HeadingDropdownMenu = forwardRef(
7533
6864
  {
7534
6865
  editor,
7535
6866
  level,
7536
- text: t2("markdownEditor.toolbar.headingLevel", { level }),
6867
+ text: `\u6807\u9898 ${level}`,
7537
6868
  showTooltip: false
7538
6869
  }
7539
- ) }, level)) }) }) }) })
6870
+ ) }, `\u6807\u9898 ${level}`)) }) }) }) })
7540
6871
  ] });
7541
6872
  }
7542
6873
  );
@@ -7599,7 +6930,7 @@ function useHeadingDropdownMenu(config) {
7599
6930
  isActive,
7600
6931
  canToggle: canToggleState,
7601
6932
  levels,
7602
- label: t("markdownEditor.toolbar.heading"),
6933
+ label: "\u6807\u9898",
7603
6934
  Icon: activeLevel ? headingIcons[activeLevel] : HeadingIcon
7604
6935
  };
7605
6936
  }
@@ -7725,7 +7056,6 @@ function InputGroup({
7725
7056
  }
7726
7057
  var LinkButton = forwardRef(
7727
7058
  ({ className, children, ...props }, ref) => {
7728
- const { t: t2 } = useTranslation(NS_COMMON);
7729
7059
  return /* @__PURE__ */ jsx(
7730
7060
  Button7,
7731
7061
  {
@@ -7734,8 +7064,8 @@ var LinkButton = forwardRef(
7734
7064
  "data-style": "ghost",
7735
7065
  role: "button",
7736
7066
  tabIndex: -1,
7737
- "aria-label": t2("markdownEditor.toolbar.link"),
7738
- tooltip: t2("markdownEditor.toolbar.link"),
7067
+ "aria-label": "\u94FE\u63A5",
7068
+ tooltip: "\u94FE\u63A5",
7739
7069
  ref,
7740
7070
  ...props,
7741
7071
  children: children || /* @__PURE__ */ jsx(LinkIcon, { className: "tiptap-button-icon" })
@@ -7753,7 +7083,6 @@ var LinkMain = ({
7753
7083
  isActive
7754
7084
  }) => {
7755
7085
  const isMobile = useIsBreakpoint();
7756
- const { t: t2 } = useTranslation(NS_COMMON);
7757
7086
  const handleKeyDown = (event) => {
7758
7087
  if (event.key === "Enter") {
7759
7088
  event.preventDefault();
@@ -7777,7 +7106,7 @@ var LinkMain = ({
7777
7106
  Input4,
7778
7107
  {
7779
7108
  type: "url",
7780
- placeholder: t2("markdownEditor.toolbar.linkPlaceholder"),
7109
+ placeholder: "\u7C98\u8D34\u94FE\u63A5...",
7781
7110
  value: url,
7782
7111
  onChange: (e) => setUrl(e.target.value),
7783
7112
  onKeyDown: handleKeyDown,
@@ -7792,7 +7121,7 @@ var LinkMain = ({
7792
7121
  {
7793
7122
  type: "button",
7794
7123
  onClick: setLink,
7795
- title: t2("markdownEditor.toolbar.applyLink"),
7124
+ title: "\u5E94\u7528\u94FE\u63A5",
7796
7125
  disabled: !url && !isActive,
7797
7126
  "data-style": "ghost",
7798
7127
  children: /* @__PURE__ */ jsx(CornerDownLeftIcon, { className: "tiptap-button-icon" })
@@ -7805,7 +7134,7 @@ var LinkMain = ({
7805
7134
  {
7806
7135
  type: "button",
7807
7136
  onClick: openLink,
7808
- title: t2("markdownEditor.toolbar.openInNewWindow"),
7137
+ title: "\u5728\u65B0\u7A97\u53E3\u4E2D\u6253\u5F00",
7809
7138
  disabled: !url && !isActive,
7810
7139
  "data-style": "ghost",
7811
7140
  children: /* @__PURE__ */ jsx(ExternalLinkIcon, { className: "tiptap-button-icon" })
@@ -7816,7 +7145,7 @@ var LinkMain = ({
7816
7145
  {
7817
7146
  type: "button",
7818
7147
  onClick: removeLink,
7819
- title: t2("markdownEditor.toolbar.removeLink"),
7148
+ title: "\u79FB\u9664\u94FE\u63A5",
7820
7149
  disabled: !url && !isActive,
7821
7150
  "data-style": "ghost",
7822
7151
  children: /* @__PURE__ */ jsx(TrashIcon, { className: "tiptap-button-icon" })
@@ -8330,10 +7659,10 @@ var listIcons = {
8330
7659
  orderedList: ListOrderedIcon,
8331
7660
  taskList: ListTodoIcon
8332
7661
  };
8333
- var listLabelKeys = {
8334
- bulletList: "markdownEditor.toolbar.bulletList",
8335
- orderedList: "markdownEditor.toolbar.orderedList",
8336
- taskList: "markdownEditor.toolbar.taskList"
7662
+ var listLabels = {
7663
+ bulletList: "\u65E0\u5E8F\u5217\u8868",
7664
+ orderedList: "\u6709\u5E8F\u5217\u8868",
7665
+ taskList: "\u4EFB\u52A1\u5217\u8868"
8337
7666
  };
8338
7667
  var LIST_SHORTCUT_KEYS = {
8339
7668
  bulletList: "mod+shift+8",
@@ -8480,24 +7809,24 @@ function useList(config) {
8480
7809
  isActive,
8481
7810
  handleToggle,
8482
7811
  canToggle: canToggle3,
8483
- label: t(listLabelKeys[type]),
7812
+ label: listLabels[type],
8484
7813
  shortcutKeys: LIST_SHORTCUT_KEYS[type],
8485
7814
  Icon: listIcons[type]
8486
7815
  };
8487
7816
  }
8488
7817
  var listOptions = [
8489
7818
  {
8490
- labelKey: "markdownEditor.toolbar.bulletList",
7819
+ label: "\u65E0\u5E8F\u5217\u8868",
8491
7820
  type: "bulletList",
8492
7821
  icon: ListIcon
8493
7822
  },
8494
7823
  {
8495
- labelKey: "markdownEditor.toolbar.orderedList",
7824
+ label: "\u6709\u5E8F\u5217\u8868",
8496
7825
  type: "orderedList",
8497
7826
  icon: ListOrderedIcon
8498
7827
  },
8499
7828
  {
8500
- labelKey: "markdownEditor.toolbar.taskList",
7829
+ label: "\u4EFB\u52A1\u5217\u8868",
8501
7830
  type: "taskList",
8502
7831
  icon: ListTodoIcon
8503
7832
  }
@@ -8538,13 +7867,7 @@ function useListDropdownMenu(config) {
8538
7867
  const { editor } = useTiptapEditor(providedEditor);
8539
7868
  const [isVisible, setIsVisible] = useState(true);
8540
7869
  const listInSchema = types.some((type) => isNodeInSchema(type, editor));
8541
- const filteredLists = useMemo(
8542
- () => getFilteredListOptions(types).map((option) => ({
8543
- ...option,
8544
- label: t(option.labelKey)
8545
- })),
8546
- [types]
8547
- );
7870
+ const filteredLists = useMemo(() => getFilteredListOptions(types), [types]);
8548
7871
  const canToggleAny = canToggleAnyList(editor, types);
8549
7872
  const isAnyActive = isAnyListActive(editor, types);
8550
7873
  const activeType = getActiveListType(editor, types);
@@ -8574,7 +7897,7 @@ function useListDropdownMenu(config) {
8574
7897
  canToggle: canToggleAny,
8575
7898
  types,
8576
7899
  filteredLists,
8577
- label: t("markdownEditor.toolbar.list"),
7900
+ label: "List",
8578
7901
  Icon: activeList ? listIcons[activeList.type] : ListIcon
8579
7902
  };
8580
7903
  }
@@ -8588,7 +7911,6 @@ function ListDropdownMenu({
8588
7911
  }) {
8589
7912
  const { editor } = useTiptapEditor(providedEditor);
8590
7913
  const [isOpen, setIsOpen] = useState(false);
8591
- const { t: t2 } = useTranslation(NS_COMMON);
8592
7914
  const { filteredLists, canToggle: canToggle3, isActive, isVisible, Icon } = useListDropdownMenu({
8593
7915
  editor,
8594
7916
  types,
@@ -8615,8 +7937,8 @@ function ListDropdownMenu({
8615
7937
  tabIndex: -1,
8616
7938
  disabled: !canToggle3,
8617
7939
  "data-disabled": !canToggle3,
8618
- "aria-label": t2("markdownEditor.toolbar.listOptions"),
8619
- tooltip: t2("markdownEditor.toolbar.list"),
7940
+ "aria-label": "\u5217\u8868\u9009\u9879",
7941
+ tooltip: "\u5217\u8868",
8620
7942
  ...props,
8621
7943
  children: [
8622
7944
  /* @__PURE__ */ jsx(Icon, { className: "tiptap-button-icon" }),
@@ -8952,14 +8274,14 @@ var MARK_SHORTCUT_KEYS = {
8952
8274
  superscript: "mod+.",
8953
8275
  subscript: "mod+,"
8954
8276
  };
8955
- var MARK_ACTION_LABEL_KEYS = {
8956
- bold: "markdownEditor.toolbar.bold",
8957
- italic: "markdownEditor.toolbar.italic",
8958
- underline: "markdownEditor.toolbar.underline",
8959
- strike: "markdownEditor.toolbar.strike",
8960
- code: "markdownEditor.toolbar.code",
8961
- superscript: "markdownEditor.toolbar.superscript",
8962
- subscript: "markdownEditor.toolbar.subscript"
8277
+ var MARK_ACTION_LABELS = {
8278
+ bold: "\u7C97\u4F53",
8279
+ italic: "\u659C\u4F53",
8280
+ underline: "\u4E0B\u5212\u7EBF",
8281
+ strike: "\u5220\u9664\u7EBF",
8282
+ code: "\u4EE3\u7801",
8283
+ superscript: "\u4E0A\u89D2\u6807",
8284
+ subscript: "\u4E0B\u89D2\u6807"
8963
8285
  };
8964
8286
  function canToggleMark(editor, type) {
8965
8287
  if (!editor || !editor.isEditable) return false;
@@ -8986,8 +8308,7 @@ function shouldShowButton6(props) {
8986
8308
  return true;
8987
8309
  }
8988
8310
  function getFormattedMarkName(type) {
8989
- const labelKey = MARK_ACTION_LABEL_KEYS[type];
8990
- return labelKey ? t(labelKey) : type.charAt(0).toUpperCase() + type.slice(1);
8311
+ return MARK_ACTION_LABELS[type] || type.charAt(0).toUpperCase() + type.slice(1);
8991
8312
  }
8992
8313
  function useMark(config) {
8993
8314
  const {
@@ -9297,11 +8618,11 @@ var textAlignIcons = {
9297
8618
  right: AlignRightIcon,
9298
8619
  justify: AlignJustifyIcon
9299
8620
  };
9300
- var textAlignLabelKeys = {
9301
- left: "markdownEditor.toolbar.alignLeft",
9302
- center: "markdownEditor.toolbar.alignCenter",
9303
- right: "markdownEditor.toolbar.alignRight",
9304
- justify: "markdownEditor.toolbar.alignJustify"
8621
+ var textAlignLabels = {
8622
+ left: "\u5DE6\u5BF9\u9F50",
8623
+ center: "\u5C45\u4E2D\u5BF9\u9F50",
8624
+ right: "\u53F3\u5BF9\u9F50",
8625
+ justify: "\u4E24\u7AEF\u5BF9\u9F50"
9305
8626
  };
9306
8627
  function canSetTextAlign(editor, align) {
9307
8628
  if (!editor || !editor.isEditable) return false;
@@ -9369,7 +8690,7 @@ function useTextAlign(config) {
9369
8690
  isActive,
9370
8691
  handleTextAlign,
9371
8692
  canAlign,
9372
- label: t(textAlignLabelKeys[align]),
8693
+ label: textAlignLabels[align],
9373
8694
  shortcutKeys: TEXT_ALIGN_SHORTCUT_KEYS[align],
9374
8695
  Icon: textAlignIcons[align]
9375
8696
  };
@@ -9494,9 +8815,9 @@ var UNDO_REDO_SHORTCUT_KEYS = {
9494
8815
  undo: "mod+z",
9495
8816
  redo: "mod+shift+z"
9496
8817
  };
9497
- var historyActionLabelKeys = {
9498
- undo: "markdownEditor.toolbar.undo",
9499
- redo: "markdownEditor.toolbar.redo"
8818
+ var historyActionLabels = {
8819
+ undo: "\u64A4\u9500",
8820
+ redo: "\u91CD\u505A"
9500
8821
  };
9501
8822
  var historyIcons = {
9502
8823
  undo: Undo2Icon,
@@ -9554,7 +8875,7 @@ function useUndoRedo(config) {
9554
8875
  isVisible,
9555
8876
  handleAction,
9556
8877
  canExecute,
9557
- label: t(historyActionLabelKeys[action]),
8878
+ label: historyActionLabels[action],
9558
8879
  shortcutKeys: UNDO_REDO_SHORTCUT_KEYS[action],
9559
8880
  Icon: historyIcons[action]
9560
8881
  };
@@ -9817,7 +9138,6 @@ var MainToolbarContent = ({
9817
9138
  isMobile,
9818
9139
  isBubble
9819
9140
  }) => {
9820
- const { t: t2 } = useTranslation(NS_COMMON);
9821
9141
  return /* @__PURE__ */ jsxs(Fragment, { children: [
9822
9142
  /* @__PURE__ */ jsx(Spacer, {}),
9823
9143
  !isBubble && tools.includes("undo-redo") && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -9827,9 +9147,9 @@ var MainToolbarContent = ({
9827
9147
  ] }),
9828
9148
  /* @__PURE__ */ jsx(ToolbarSeparator, {})
9829
9149
  ] }),
9830
- onQuote && /* @__PURE__ */ jsx(ToolbarGroup, { children: /* @__PURE__ */ jsx(SelectButton, { icon: /* @__PURE__ */ jsx(QuoteIcon, {}), tooltip: t2("markdownEditor.toolbar.quote"), onClick: onQuote, children: t2("markdownEditor.toolbar.quote") }) }),
9831
- onCreateAnnotation && /* @__PURE__ */ jsx(ToolbarGroup, { children: /* @__PURE__ */ jsx(SelectButton, { icon: /* @__PURE__ */ jsx(MessageOutlined, {}), tooltip: t2("markdownEditor.toolbar.annotation"), onClick: onCreateAnnotation, children: t2("markdownEditor.toolbar.annotation") }) }),
9832
- onCreateCollection && /* @__PURE__ */ jsx(ToolbarGroup, { children: /* @__PURE__ */ jsx(SelectButton, { icon: /* @__PURE__ */ jsx(BookOutlined, {}), tooltip: t2("markdownEditor.toolbar.excerpt"), onClick: onCreateCollection, children: t2("markdownEditor.toolbar.excerpt") }) }),
9150
+ onQuote && /* @__PURE__ */ jsx(ToolbarGroup, { children: /* @__PURE__ */ jsx(SelectButton, { icon: /* @__PURE__ */ jsx(QuoteIcon, {}), tooltip: "\u5F15\u7528\u9009\u4E2D\u6587\u672C", onClick: onQuote, children: "\u5F15\u7528" }) }),
9151
+ onCreateAnnotation && /* @__PURE__ */ jsx(ToolbarGroup, { children: /* @__PURE__ */ jsx(SelectButton, { icon: /* @__PURE__ */ jsx(MessageOutlined, {}), tooltip: "\u6279\u6CE8", onClick: onCreateAnnotation, children: "\u6279\u6CE8" }) }),
9152
+ onCreateCollection && /* @__PURE__ */ jsx(ToolbarGroup, { children: /* @__PURE__ */ jsx(SelectButton, { icon: /* @__PURE__ */ jsx(BookOutlined, {}), tooltip: "\u6458\u5F55\u7B14\u8BB0", onClick: onCreateCollection, children: "\u6458\u5F55" }) }),
9833
9153
  (tools.includes("heading") || tools.includes("list") || tools.includes("block")) && /* @__PURE__ */ jsxs(Fragment, { children: [
9834
9154
  /* @__PURE__ */ jsxs(ToolbarGroup, { children: [
9835
9155
  tools.includes("heading") && /* @__PURE__ */ jsx(HeadingDropdownMenu, { levels: [1, 2, 3, 4], portal: isMobile }),
@@ -10070,9 +9390,9 @@ var SearchAndReplace = Extension.create({
10070
9390
  addProseMirrorPlugins() {
10071
9391
  const editor = this.editor;
10072
9392
  const { searchResultClass, disableRegex } = this.options;
10073
- const setLastSearchTerm = (t2) => editor.storage.searchAndReplace.lastSearchTerm = t2;
10074
- const setLastCaseSensitive = (t2) => editor.storage.searchAndReplace.lastCaseSensitive = t2;
10075
- const setLastResultIndex = (t2) => editor.storage.searchAndReplace.lastResultIndex = t2;
9393
+ const setLastSearchTerm = (t) => editor.storage.searchAndReplace.lastSearchTerm = t;
9394
+ const setLastCaseSensitive = (t) => editor.storage.searchAndReplace.lastCaseSensitive = t;
9395
+ const setLastResultIndex = (t) => editor.storage.searchAndReplace.lastResultIndex = t;
10076
9396
  return [
10077
9397
  new Plugin({
10078
9398
  key: searchAndReplacePluginKey,
@@ -10173,7 +9493,6 @@ var MarkdownEditor_default = forwardRef(
10173
9493
  collectionConfig,
10174
9494
  pageNoConfig
10175
9495
  }, ref) => {
10176
- const { t: t2 } = useTranslation(NS_COMMON);
10177
9496
  const isMobile = useIsBreakpoint();
10178
9497
  const lastContentRef = useRef("");
10179
9498
  const { setPageNoEditor, onPageChange } = usePageNo(pageNoConfig);
@@ -10210,7 +9529,7 @@ var MarkdownEditor_default = forwardRef(
10210
9529
  autocomplete: "off",
10211
9530
  autocorrect: "off",
10212
9531
  autocapitalize: "off",
10213
- "aria-label": t2("markdownEditor.mainArea")
9532
+ "aria-label": "\u4E3B\u5185\u5BB9\u533A\u57DF\uFF0C\u5F00\u59CB\u8F93\u5165\u6587\u672C..."
10214
9533
  }
10215
9534
  },
10216
9535
  extensions: [
@@ -10371,7 +9690,7 @@ var MarkdownEditor_default = forwardRef(
10371
9690
  Button,
10372
9691
  {
10373
9692
  size: "small",
10374
- title: t2("markdownEditor.annotation.list"),
9693
+ title: "\u6279\u6CE8\u5217\u8868",
10375
9694
  icon: /* @__PURE__ */ jsx(MessageOutlined, {}),
10376
9695
  color: "primary",
10377
9696
  variant: "text",
@@ -10383,15 +9702,15 @@ var MarkdownEditor_default = forwardRef(
10383
9702
  {
10384
9703
  style: { gap: "2px" },
10385
9704
  size: "small",
10386
- title: t2("markdownEditor.collection.list"),
9705
+ title: "\u6458\u5F55\u5217\u8868",
10387
9706
  icon: /* @__PURE__ */ jsx(BookOutlined, {}),
10388
9707
  color: "primary",
10389
9708
  variant: "text",
10390
9709
  onClick: () => setShowCollection(!showCollection),
10391
- children: t2("markdownEditor.collection.title")
9710
+ children: "\u6458\u5F55"
10392
9711
  }
10393
9712
  ),
10394
- onDownloadFile && /* @__PURE__ */ jsx(Button, { size: "small", color: "primary", variant: "text", onClick: downloadFile2, children: t2("common.download") }),
9713
+ onDownloadFile && /* @__PURE__ */ jsx(Button, { size: "small", color: "primary", variant: "text", onClick: downloadFile2, children: "\u4E0B\u8F7D" }),
10395
9714
  extraNav
10396
9715
  ] })
10397
9716
  ] }),
@@ -10548,6 +9867,6 @@ var UserAvatar_default = ({ size, avatarSrc, userName }) => {
10548
9867
  return avatarSrc ? /* @__PURE__ */ jsx(Avatar, { size, src: avatarSrc }) : /* @__PURE__ */ jsx(Avatar, { size, className: "cursor-pointer", style: { backgroundColor: "var(--ant-color-primary)" }, children: userName?.slice(0, 1)?.toLocaleUpperCase() });
10549
9868
  };
10550
9869
 
10551
- export { AudioPlayer_default as AudioPlayer, BusinessCode, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT, DEFAULT_YEAR_MONTH_DAY_FORMAT, DEFAULT_YEAR_MONTH_FORMAT, DocxPreview_default as DocxPreview, FileIcon_default as FileIcon, FilePreview_default as FilePreview, FilePreviewDrawer_default as FilePreviewDrawer, HttpStatus, Iframe_default as Iframe, LANG_KEY, LazyComponent_default as LazyComponent, luyaFilePreview_default as LuyaFilePreview, MarkDrawing_default as MarkDrawing, MarkdownEditor_default as MarkdownEditor, MarkdownPreview_default as MarkdownPreview, MicroApp_default as MicroApp, Drawer_default as MicroAppDrawer, Window_default as MicroAppWindow, MultiEmailValidator, NS_COMMON, PdfImagePreview_default as PdfImagePreview, PdfPreview_default as PdfPreview, PhoneOrMobileValidator, RegBankCardNo, RegDetailAddress, RegEmail, RegFixedTelePhone, RegIdentityCardNo, RegMobile, RegNumNo, RegPassword, RegSmsCode, RegTaxNo, RegTelePhone, RenderMarkdown_default as RenderMarkdown, RenderWrapper_default as RenderWrapper, ThanNumLengthValidator, ThanNumValidator, UserAvatar_default as UserAvatar, VideoPlayer_default as VideoPlayer, absVal, addBundledResource, addUrlLastSlash, aesDecrypt, aesEncrypt, arrToObj, buildUrlParams, cachedMessage, calculate, commonEnUS, commonJaJP, commonZhCN, compareNum, convertCurrency, convertNewlineToBr, copyText, createRequest, createSecureManager, createTokenManager, decimalPlaces, deepCopy, deepEqual, deepMerge, dividedBy, downloadFile, emit, emitToChild, executeScript, findTreeNodesByIds, formatDate, formatNumberWithCommas, formatSize, genNonDuplicateID, generateRandomNumbers, getAllUrlParams, getDeviceId, getEndOfTimestamp, getFileName, getFileSuffixName, getI18n, getLang, getRowSpanCount, getStartOfTimestamp, getTimestamp, getWebSocketUrl, htmlToMarkdown, htmlToText, importThirdPartyFile, initI18n, is, isArray, isBlob, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyObj, isExpire, isExternal, isFunction, isInteger, isJson, isLocalhost, isMap, isNegative, isNull, isNullOrUnDef, isNumber, isNumberNoNaN, isObject, isPromise, isReferenceType, isRegExp, isScriptSafe, isSet, isString, isUnDef, isWindow, markdownToText, minus, objToOptions, plus, precision, processItemList, propsMerge, safeParseJson, setInterval2 as setInterval, setUrlMainSource, shouldRender, switchLang, t, times, toFixed, transform, transforms, useAsyncQueue_default as useAsyncQueue, useAutoRefresh_default as useAutoRefresh, useCountDown_default as useCountDown, useCreateValtioContext_default as useCreateValtioContext, useDebounce_default as useDebounce, useDeepEffect_default as useDeepEffect, useIframeRelayBridge_default as useIframeRelayBridge, useRefState_default as useRefState, useSyncInput_default as useSyncInput, useThrottle_default as useThrottle, useTranslation, useWebSocket_default as useWebSocket };
9870
+ export { AudioPlayer_default as AudioPlayer, BusinessCode, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TIME_FORMAT, DEFAULT_YEAR_MONTH_DAY_FORMAT, DEFAULT_YEAR_MONTH_FORMAT, DocxPreview_default as DocxPreview, FileIcon_default as FileIcon, FilePreview_default as FilePreview, FilePreviewDrawer_default as FilePreviewDrawer, HttpStatus, Iframe_default as Iframe, LazyComponent_default as LazyComponent, luyaFilePreview_default as LuyaFilePreview, MarkDrawing_default as MarkDrawing, MarkdownEditor_default as MarkdownEditor, MarkdownPreview_default as MarkdownPreview, MicroApp_default as MicroApp, Drawer_default as MicroAppDrawer, Window_default as MicroAppWindow, MultiEmailValidator, PdfImagePreview_default as PdfImagePreview, PdfPreview_default as PdfPreview, PhoneOrMobileValidator, RegBankCardNo, RegDetailAddress, RegEmail, RegFixedTelePhone, RegIdentityCardNo, RegMobile, RegNumNo, RegPassword, RegSmsCode, RegTaxNo, RegTelePhone, RenderMarkdown_default as RenderMarkdown, RenderWrapper_default as RenderWrapper, ThanNumLengthValidator, ThanNumValidator, UserAvatar_default as UserAvatar, VideoPlayer_default as VideoPlayer, absVal, addUrlLastSlash, aesDecrypt, aesEncrypt, arrToObj, buildUrlParams, cachedMessage, calculate, compareNum, convertCurrency, convertNewlineToBr, copyText, createRequest, createSecureManager, createTokenManager, decimalPlaces, deepCopy, deepEqual, deepMerge, dividedBy, downloadFile, emit, emitToChild, executeScript, findTreeNodesByIds, formatDate, formatNumberWithCommas, formatSize, genNonDuplicateID, generateRandomNumbers, getAllUrlParams, getDeviceId, getEndOfTimestamp, getFileName, getFileSuffixName, getRowSpanCount, getStartOfTimestamp, getTimestamp, getWebSocketUrl, htmlToMarkdown, htmlToText, importThirdPartyFile, is, isArray, isBlob, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyObj, isExpire, isExternal, isFunction, isInteger, isJson, isLocalhost, isMap, isNegative, isNull, isNullOrUnDef, isNumber, isNumberNoNaN, isObject, isPromise, isReferenceType, isRegExp, isScriptSafe, isSet, isString, isUnDef, isWindow, markdownToText, minus, objToOptions, plus, precision, processItemList, propsMerge, safeParseJson, setInterval2 as setInterval, setUrlMainSource, shouldRender, times, toFixed, transform, transforms, useAsyncQueue_default as useAsyncQueue, useAutoRefresh_default as useAutoRefresh, useCountDown_default as useCountDown, useCreateValtioContext_default as useCreateValtioContext, useDebounce_default as useDebounce, useDeepEffect_default as useDeepEffect, useIframeRelayBridge_default as useIframeRelayBridge, useRefState_default as useRefState, useSyncInput_default as useSyncInput, useThrottle_default as useThrottle, useWebSocket_default as useWebSocket };
10552
9871
  //# sourceMappingURL=index.esm.js.map
10553
9872
  //# sourceMappingURL=index.esm.js.map