bhd-components 0.10.7 → 0.10.8

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.
@@ -13017,7 +13017,7 @@ var Header$2 = Header$1;
13017
13017
 
13018
13018
  var modules_63b47c51$a = {"content":"index_module_content__fcd2c97c","contentList":"index_module_contentList__fcd2c97c"};
13019
13019
 
13020
- var modules_63b47c51$9 = {"virtuosoList-wrapper":"index_module_virtuosoListWrapper__de249725","loadingIcon":"index_module_loadingIcon__de249725","msg-date":"index_module_msgDate__de249725","msgItem":"index_module_msgItem__de249725","msgItem-box":"index_module_msgItemBox__de249725","msgItem-content":"index_module_msgItemContent__de249725","msgItem-text":"index_module_msgItemText__de249725","copyCode":"index_module_copyCode__de249725","copyCodeFun":"index_module_copyCodeFun__de249725","copyCodeText":"index_module_copyCodeText__de249725","icon":"index_module_icon__de249725","copy":"index_module_copy__de249725","copy_success":"index_module_copy_success__de249725","copy_success_flag":"index_module_copy_success_flag__de249725","msgItem-action":"index_module_msgItemAction__de249725","msgItem-action-left":"index_module_msgItemActionLeft__de249725","msgItem-action-right":"index_module_msgItemActionRight__de249725","msgItem-action-operate":"index_module_msgItemActionOperate__de249725","msgItem-action-popover":"index_module_msgItemActionPopover__de249725","msgItem-action-popover-floatTop":"index_module_msgItemActionPopoverFloatTop__de249725","msgItem-action-popover-floatBottom":"index_module_msgItemActionPopoverFloatBottom__de249725","msgItem-references-text":"index_module_msgItemReferencesText__de249725","msgItem-left":"index_module_msgItemLeft__de249725","msgItem-right":"index_module_msgItemRight__de249725"};
13020
+ var modules_63b47c51$9 = {"virtuosoList-wrapper":"index_module_virtuosoListWrapper__a2ad824e","loadingIcon":"index_module_loadingIcon__a2ad824e","msg-date":"index_module_msgDate__a2ad824e","msgItem":"index_module_msgItem__a2ad824e","msgItem-box":"index_module_msgItemBox__a2ad824e","msgItem-content":"index_module_msgItemContent__a2ad824e","msgItem-text":"index_module_msgItemText__a2ad824e","copyCode":"index_module_copyCode__a2ad824e","copyCodeFun":"index_module_copyCodeFun__a2ad824e","copyCodeText":"index_module_copyCodeText__a2ad824e","icon":"index_module_icon__a2ad824e","copy":"index_module_copy__a2ad824e","copy_success":"index_module_copy_success__a2ad824e","copy_success_flag":"index_module_copy_success_flag__a2ad824e","msgItem-file":"index_module_msgItemFile__a2ad824e","msgItem-file-left":"index_module_msgItemFileLeft__a2ad824e","msgItem-file-right":"index_module_msgItemFileRight__a2ad824e","msgItem-action":"index_module_msgItemAction__a2ad824e","msgItem-action-left":"index_module_msgItemActionLeft__a2ad824e","msgItem-action-right":"index_module_msgItemActionRight__a2ad824e","msgItem-action-operate":"index_module_msgItemActionOperate__a2ad824e","msgItem-action-popover":"index_module_msgItemActionPopover__a2ad824e","msgItem-action-popover-floatTop":"index_module_msgItemActionPopoverFloatTop__a2ad824e","msgItem-action-popover-floatBottom":"index_module_msgItemActionPopoverFloatBottom__a2ad824e","msgItem-references-text":"index_module_msgItemReferencesText__a2ad824e","msgItem-left":"index_module_msgItemLeft__a2ad824e","msgItem-right":"index_module_msgItemRight__a2ad824e"};
13021
13021
 
13022
13022
  var loading2 = "data:image/gif;base64,R0lGODlhgACAAKIEAN3d3bu7u////5mZmf///wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NENGQTg4RUY0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NENGQTg4RjA0MTQwMTFFOEEzQjg5QjE4RTZFRjE2NTUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0Q0ZBODhFRDQxNDAxMUU4QTNCODlCMThFNkVGMTY1NSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0Q0ZBODhFRTQxNDAxMUU4QTNCODlCMThFNkVGMTY1NSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUIAAQALAAAAACAAIAAAAP/SLrc/jDKSau9OOvNu/+gJoxCaJ5oRpJp67rr+s50F7N1rk/3uP/ARa8ULOaGxuQMqWwSAFDAh9kZWAdOTTTqoW6u1+xlu7X1quCwmELmcryZtHotabtF56/cSp/Y7xhwFntzfRB/Ung3enuGbH+KMRqEWI5+kCp5GJSWj3aZi5uEnZ6fF4ISlJWkdZgWqBGcrJeuFLAPqrOlZKeaFLK6tG2vvqmjwbtlFbcNwMitpjzFEM7PEYiJEswKudbJgBDbBNXeh4jSobHk5Q/n6DjGjXQB9AEh7trw6vIfYB/19UDgC7EuTpoOABN+qAXiGBp+GRJK7MCwH0SDBSlI3Mhh/1gKORxUFcKwkeMGZS38MRKJsOREdtREjtTg0iRMbjJncqj5slxOnR54KvT2k48LoQCRFV01A2lAUkt/OKXXKWqQqY6KNkGaVeYanl0zJqkZ9uK8nobMOkoKFejNt3Djyp1Lt67du3jz6t3Lty/fpd18AnbIYHDgZ4arJT6sa7Ezx4QbQwa5YDJlpZZV4sxsFDNnpuM4C86MyzJM0n5Tq17NurXr17Bjy55Nu/YMzZZwV72clncfxmKAO2HZWyyQnGWN19Ba3GsQq8mJ64CemzkN6qywn9Au+edH60TBe+Ae3vt483PFi3I+ya3Fzhilx1ceUzfBgyvpl9a/H7+JyNDrATiIgAHad55v7ak1oIHzMRgSgQWClqCE+TlYmXubIbjSbxBeaGGG/tUlXGEKeljiTcp1COKHo524Inz1uViehg6o+CKMb+ln440UsqOjjDzKxd+OQeY4JJA89ugZjTGySCKS1RF5Y4RORslkkxjWKCWHUJpY5ZNX7tbllA1m2VyIF2zp5ZdZjDiBmkkuiWaaY65pZnB12qnkL3kaAaeeD83ZFptahvmmoNnduQ+idOKo2p+2kRnphIROKqmljTKKKZaObhqPop6aGOqoniYAACH5BAUIAAQALAoAAgBXADAAAAP/SLrc/jA+QIG8OOs9K+VgKEqeN54oV1Zp63brK7/rN99nbeE8qPejgDCQ+qEESEFrOEQZR8kkisnM1U7R6InaHD1DWWmQK/ReRWGxiNz1nUFp9Zot+m7iyhSb6I7B4y57IXYZeC+CKm8ahoeIGoQSeHmNZIl+i4Aze3wZkBCSOI4Yng+MoXSdipGZPKIkqhGmragXpAyys7QRtgqgQAquMCUYuD2btbANvr/AuhCXsawQA9QDgc7CxNIP1dVL2EfbDd3kepUy4uPk5WNcM+kM6/LtbehZGPLzc2U8Whn5+pgJBBhQ4C+C6wwyQ8hOIRCG3RwehEhNYg+KFS3ywKjxEyLDjg8JggyZb+TEhiZJWkupIQEAIfkEBQgABAAsHwACAFcAMAAAA/9Iutz+K8gAq7046zbn/mCodZ1oniLpoWxbqZIrzwRM0fhp53y496KBcMD6nQBIQGs4RBlFySSKydTBjlGpido0PUFZbZAr9F6hYeSJ3AV9NWnxmJw6g+NLts++iSvzdG58cHgubEQfbxd+M4eII4OLjI16G4oVk5SVGZcPfn80h5aRmIU5opyknqanmxedDZk8qK+qsayztC+2C59AC7oQsAqyQI61KpK4xq7CJBjFvwTBDyXKYS4C2gIY1CjRIdvb3YEyyyDi6RfNLOca6fDkVTjYIvD3GfM5USb3+NLS/P0D2EPgQII4DMZDyEOhOoYJHY6DSEPiRIozLGrDWNEUIseICj/mCClypMCSBReiTLnRRAIAIfkEBQgABAAsPAACAEIAQgAAA/9INDz6MMpJq52t3c17zZknjhaokWhqMmk7ro4rb/Bsf+utR7Ub/IHdo5cCAoWLXNF43BFJzKbuKYpKb9SO9WrLcrZBofcCRiZN0K15XCmvlVo3kj2Rz+EbcPiNjlvNQ3gWdnwgflGAgX1kaokKdAp6jo+CdY2TkJKTlCGMf5uKMYOXLgCmADuEKKenOqSrrKw3ryKxtq5MKba7qVweu7ygG8DBwhXExcYSyLfKFMyxzhPQstIR1K3W19io2hDc3svQ4dPI5M/E58fN6uum7fDx8vP09fb3+Pn6+gL9/v8AAwI0JrCgwX+gDio0uGmhw4GTHkoU0HCiw4QWDxLMKFACQQIAIfkEBQgABAAsTgAKADAAVwAAA+xIurzzo8lJK4XQ6n1x5uDmfWEpjaSpoqlaspG7srIL1+aNh3C8c7qfKCi0EIsdFHKoXFaOTkYvmhxRJ9NrA3rlqgLggJG2C4efzZp5XcWo1+y2zwSvjx+yup2q3zv7fkiAcHyDZlGGh3+JYIWMjoZaiVoKg5QLgJcMgZqVZ52goaKjpKWmp6ipqioAra6vsLGwNbK1tq8ut7q2rLu+uCa/wgC9w7u5xre0ybKrzs/Q0dLT1NUyAtgCpdncotzf2p3g3+Lj5JTm4+jp4Frs7e7v3fHy2PT16/XhV/r7/Pj52JVLF4qgt3Oj5lFIAAAh+QQFCAAEACxOAB8AMABXAAAD6Ui63P5uyAGrvW1OzDvRoCdGYDiOZXqKqbpirftWsTyTtXbTub7jPcovE5QMgb0jMahEtpqPHBRSm/JM1qswy+16v+CweEwum8/cgHrNbrvbs7d8zl7R7/MTfg8f8f8BeoB7doN0cYZvaIuMjY6PkJGSkwoAlgBml5pjmp2YYJ6doKGiXaShpqeeXKqrrK2br7CWsrOps59ZuLkQAr4CL7gVv7/BsL3ExcanyMnAN8wPzsrQpdLTzzuxw9hi2L7e3WHf2V/fY+fj4urT4evm717k7s7o8V3p7PX6+2D5/u3oESPTzx64KQkAACH5BAUIAAQALDwAPABCAEIAAAP5SLrc/lCNSau9Nuodsf8VJ3Jg+Y3oY65Z6kps/L6xPLu1ec/5uf/AoHBILBqPyKRyyWw6n9CodEoIWAPU13WbHW2/2K4G/BVHyGCzA01WM9htdxVels/pV/sdH3bz83Z/VnqCRgCHADd/RIiIinhDjY07dJGSh0BslpeJmXURAqECHJyYQVwaoqKkpU+qqhulpkyvq7GtTbWhrLhLuqO8l7m6I7K0xCLGvsjJvUi/KLKdz8zNnErQ0cpH2drX1LUv20Xd3sLc1eaS6OHi40LlKe9B8fLfRPXqjuTpLuf87XZMYvdKj4N8dhDKUeiGoRqHDwsafABrYoMEACH5BAUIAAQALB8ATgBXADAAAAP/SLrc/jDKN+qYOOvNif1dKI7NZ15kqkqnub6w17pxHc6trWt4vv+Q3glIdAhpxeQRlCwuLU3lExUFTjWCrOAX6AZGT4xWq/N6wcfJeFwzm0lC9TrbdndVOMmcHLOf8UgQe3QTAIYAGH53K0wRg1uFh4aJilGPkBGSkhOKi0WPGJqHlH5Jl6GiiJydn4MZqaqrpUCgr6karD+1qKK4lTu7vJobuTWnGrDExTDBwpvKs8zNkb3Q0SvT1MMcyynZ2s/cvyrfEskd3SLl5rch6RzHHefo71iuIvP01x33+O0i40L0C5FPnxtva1IUNOiJBBuF/0a8qeJsFMUoCy/+yKhREwfHjjU+goQhcuSLaiaJhEupIAEAIfkEBQgABAAsCgBOAFcAMAAAA/9IutwuULhJq704t8i1/+DHjVJoniE5omxLqaQrt7A632Bt4zymx73g5LcSGhfEznGZjCyPTcgT2pxSiSeAFiAceAeZZHar7X2/Ph2KTMadz5dai711v71pJYtev93RcU4ufGUXAYcBGH94VgSEXIaIh4qLVo+QFZKSF4uMS48YmoiUf0+XoaKJnJ2fhBmpqqulRqCvqRqsQrWooriVQbu8mh65OKcasMTFM8HCm8qzzM2RvdDRg64fyR/Le9natyDdY3wh29y/3uXm4eLpJscg5+jvINPI7e7X9usm8/pv1vRjV81EPX5tUPwD6ElgIYX5DAJqRG0YRSsLLwrJqLESB8eOOD6CnCFypIyCJo0845EAACH5BAUIAAQALAIAPABCAEIAAAP1SCTc/vCpSau9mMbNXf7g1Y1caIJkKp2spb5CK0+wOt/1eO/5tv/AoHBILBqPyKRyyWw6n9CodEo9Aa6AqgzL1Zq44Kw3EwaPL+XwmZIurwlt9zquPtPN9jv2rd/n+3yAgXc7AYYBRnqFh4ZFdD+MjERtQZGHjnhAlpeYV0ObjSADowNSoIiipKNQp6gZqqpPpyGwpE6ttLWlTbO5tbygJ7q7S72+sEzGx7FKuMK6xcEsw83Ky7ZJ1terSNrbxEbeqb9H4uPI4eYf1OmbO+xF0jfwRPIz9PWRQPj5oT/8byYADEhgYECDbxCuUXiGYUN0BDEwSwAAIfkEBQgABAAsAgAfADAAVwAAA+dIuiwuLMpJa3vO6k2x5+DmjWEpjaipoqlasq3LwbGs0aR945gu8g/fDggRdohF4wSprACbFhw0CpsOe9ZfJsvter/gsHhMLpvPIYB6zW6727a3fM520e9zFX4PN/H/AHqAe3aDdHGGb2iLjI2Oj5CRkpNoAZYBZpeaY5qdmGCenV+hnl2koVmnqFaqpVOtoq+wl6mzlqy2n7KzXLYyA8ADFrwuwcEVrTbGxhSnPsvHzbE60NHSt0LVwGLawmHd3mDd3OPf2uTVY+Xi5+bt7Onu8fDQ6PX2y/jM8vf0+frb1M3Td2afhgQAIfkECQgABAAsAgAKADAAVwAAA+tIutz+S0gBq71tTsy70ponVuA2nkxpoqe6sqJLwa1Lj/KN23onzz1MLigcEi3GI4mnhCSbjic0Ip0SqtOfNcqEAL6AHpYABuuw5fSty0i7YeyFe84qVeZ0VMiCz0/7flCAb3+DZVuGh1aJZoWMiI+Qg1tygJSVeJdthJqbX52goaKjpKWmp6ipOgGsra6vsK8wsbS1rii2ubUnur2yI77BAbzCvbjFtrPIsarNzs/Q0dLT1M8D1wOj2Nug297Zl9/elOLfVuXiUOjpTevmSu7j8PHY6vTX7ffg8/RT91v9AK7ThC7UO1HcrCQAADs=";
13023
13023
  var loading2Gif = loading2;
@@ -13129,11 +13129,26 @@ var ReferencesIcon = function(props) {
13129
13129
  console.log("apiRef", apiRef);
13130
13130
  if (apiRef && apiRef.footerApi) {
13131
13131
  console.log("itemitem", item);
13132
- apiRef.footerApi.setReferences({
13133
- type: "text",
13134
- value: item.content,
13135
- source: item
13136
- });
13132
+ if (item.type === "file") {
13133
+ apiRef.footerApi.setReferences({
13134
+ type: "file",
13135
+ value: {
13136
+ name: item.fileTitle,
13137
+ suffix: item.suffix,
13138
+ fileId: item.id,
13139
+ url: "",
13140
+ status: "success",
13141
+ source: null
13142
+ },
13143
+ source: item
13144
+ });
13145
+ } else {
13146
+ apiRef.footerApi.setReferences({
13147
+ type: "text",
13148
+ value: item.content,
13149
+ source: item
13150
+ });
13151
+ }
13137
13152
  }
13138
13153
  };
13139
13154
  return /*#__PURE__*/ jsx("div", {
@@ -13228,687 +13243,310 @@ var RefreshBtn = function(props) {
13228
13243
  };
13229
13244
  var RefreshBtn$1 = RefreshBtn;
13230
13245
 
13231
- var Header = function(param) {
13232
- var context = param.context;
13233
- var prefix = context.prefix, loading = context.loading;
13234
- if (!loading) return null;
13235
- var getCls = function(clsName) {
13236
- return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
13237
- };
13238
- return /*#__PURE__*/ jsx("div", {
13239
- className: "".concat(getCls("loadingIcon")),
13240
- children: /*#__PURE__*/ jsx("img", {
13241
- src: loading2Gif,
13242
- alt: ""
13243
- })
13244
- });
13245
- };
13246
- var remarkable = new Remarkable({
13247
- highlight: function highlight(str, lang) {
13248
- if (lang && HighlightJS.getLanguage(lang)) {
13249
- try {
13250
- return HighlightJS.highlight(lang, str).value;
13251
- } catch (err) {}
13252
- }
13253
- try {
13254
- return HighlightJS.highlightAuto(str).value;
13255
- } catch (err) {}
13256
- return ""; // use external default escaping
13257
- }
13246
+ //@ts-nocheck
13247
+ // wordIcon
13248
+ var wordIcon = /*#__PURE__*/ jsx("i", {
13249
+ children: /*#__PURE__*/ jsxs("svg", {
13250
+ width: "1em",
13251
+ height: "1em",
13252
+ viewBox: "0 0 32 32",
13253
+ fill: "none",
13254
+ xmlns: "http://www.w3.org/2000/svg",
13255
+ children: [
13256
+ /*#__PURE__*/ jsx("path", {
13257
+ d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13258
+ fill: "#E1E1E1"
13259
+ }),
13260
+ /*#__PURE__*/ jsx("path", {
13261
+ d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13262
+ fill: "#E0E0E0"
13263
+ }),
13264
+ /*#__PURE__*/ jsx("path", {
13265
+ d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13266
+ fill: "#F6F6F6"
13267
+ }),
13268
+ /*#__PURE__*/ jsx("rect", {
13269
+ x: "16",
13270
+ y: "12",
13271
+ width: "12",
13272
+ height: "2",
13273
+ rx: "1",
13274
+ fill: "#E7E7E7"
13275
+ }),
13276
+ /*#__PURE__*/ jsx("rect", {
13277
+ x: "16",
13278
+ y: "16",
13279
+ width: "12",
13280
+ height: "2",
13281
+ rx: "1",
13282
+ fill: "#E7E7E7"
13283
+ }),
13284
+ /*#__PURE__*/ jsx("rect", {
13285
+ x: "16",
13286
+ y: "20",
13287
+ width: "12",
13288
+ height: "2",
13289
+ rx: "1",
13290
+ fill: "#E7E7E7"
13291
+ }),
13292
+ /*#__PURE__*/ jsx("rect", {
13293
+ x: "16",
13294
+ y: "24",
13295
+ width: "9",
13296
+ height: "2",
13297
+ rx: "1",
13298
+ fill: "#E7E7E7"
13299
+ }),
13300
+ /*#__PURE__*/ jsx("rect", {
13301
+ x: "1",
13302
+ y: "7",
13303
+ width: "18",
13304
+ height: "18",
13305
+ rx: "2",
13306
+ fill: "url(#paint0_linear_9_1348)"
13307
+ }),
13308
+ /*#__PURE__*/ jsx("path", {
13309
+ d: "M13.8979 21.372H11.4979C11.4499 20.988 11.3659 20.568 11.2459 20.088L10.3339 16.56C10.2139 16.092 10.1179 15.54 9.99789 14.748C9.92589 15.24 9.78189 15.996 9.63789 16.56L8.74989 20.1C8.59389 20.7 8.52189 21.048 8.48589 21.372H6.09789C6.03789 21.024 5.97789 20.772 5.79789 20.076L3.87789 12.876C3.70989 12.264 3.54189 11.712 3.42189 11.388H6.15789C6.16989 11.82 6.22989 12.204 6.32589 12.708L7.09389 16.356C7.12989 16.536 7.21389 17.1 7.35789 18.048C7.53789 17.04 7.62189 16.608 7.69389 16.356L8.65389 12.636C8.79789 12.096 8.86989 11.724 8.91789 11.388H11.0539C11.1019 11.7 11.1739 12.036 11.3299 12.6L12.3019 16.296C12.3979 16.68 12.4819 17.076 12.6379 18.048C12.6619 17.82 12.6619 17.82 12.7339 17.316C12.7699 17.052 12.8539 16.476 12.9019 16.284L13.6579 12.708C13.7779 12.156 13.8259 11.808 13.8379 11.388H16.5619C16.4419 11.712 16.2739 12.276 16.1179 12.876L14.1979 20.064C14.0419 20.628 13.9339 21.084 13.8979 21.372Z",
13310
+ fill: "white"
13311
+ }),
13312
+ /*#__PURE__*/ jsx("defs", {
13313
+ children: /*#__PURE__*/ jsxs("linearGradient", {
13314
+ id: "paint0_linear_9_1348",
13315
+ x1: "10",
13316
+ y1: "7",
13317
+ x2: "10",
13318
+ y2: "25",
13319
+ gradientUnits: "userSpaceOnUse",
13320
+ children: [
13321
+ /*#__PURE__*/ jsx("stop", {
13322
+ "stop-color": "#4199F2"
13323
+ }),
13324
+ /*#__PURE__*/ jsx("stop", {
13325
+ offset: "1",
13326
+ "stop-color": "#3173E2"
13327
+ })
13328
+ ]
13329
+ })
13330
+ })
13331
+ ]
13332
+ })
13258
13333
  });
13259
- var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
13260
- var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
13261
- var getList = contentConfig.getList, coverRenderText = contentConfig.coverRenderText, _contentConfig_msgAction = contentConfig.msgAction, msgAction = _contentConfig_msgAction === void 0 ? [
13262
- "copy",
13263
- "references"
13264
- ] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences, _contentConfig_onRecordMessage = contentConfig.onRecordMessage, onRecordMessage = _contentConfig_onRecordMessage === void 0 ? function() {} : _contentConfig_onRecordMessage, _contentConfig_onVoteChange = contentConfig.onVoteChange, onVoteChange = _contentConfig_onVoteChange === void 0 ? function() {} : _contentConfig_onVoteChange, _contentConfig_onRefresh = contentConfig.onRefresh, onRefresh = _contentConfig_onRefresh === void 0 ? function() {} : _contentConfig_onRefresh;
13265
- var loadMoreProps = contentConfig.loadMore || true;
13266
- var virtuosoRef = useRef(null);
13267
- var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1]; // 是否加载中
13268
- var _useState1 = _sliced_to_array(useState([]), 2), dataSource = _useState1[0], setDataSource = _useState1[1];
13269
- var _useState2 = _sliced_to_array(useState(0), 2), firstItemIndex = _useState2[0], setFirstItemIndex = _useState2[1];
13270
- var _useState3 = _sliced_to_array(useState(1), 2), page = _useState3[0], setPage = _useState3[1];
13271
- var _useState4 = _sliced_to_array(useState(contentConfig.pageSize || 30), 2), pageSize = _useState4[0], setPageSize = _useState4[1];
13272
- var _useState5 = _sliced_to_array(useState(0), 2), total = _useState5[0], setTotal = _useState5[1];
13273
- var timerRef = useRef({
13274
- loadMore: null,
13275
- scrollTimer: null
13276
- });
13277
- var wrapperRef = useRef(null);
13278
- var recordRef = useRef({
13279
- page: page,
13280
- pageSize: pageSize,
13281
- total: total,
13282
- dataSource: dataSource,
13283
- maxPage: Math.ceil(total / pageSize)
13284
- });
13285
- var timeRenderCache = useRef(new Map()).current;
13286
- useRef(new Map()).current;
13287
- useImperativeHandle(ref, function() {
13288
- return {
13289
- addMsg: function(msg) {
13290
- if (msg.id !== "inputing") {
13291
- // 不记录"正在输入..."的消息
13292
- onRecordMessage(msg);
13293
- }
13294
- setDataSource(function(data) {
13295
- return _to_consumable_array(data).concat([
13296
- msg
13297
- ]);
13298
- });
13299
- },
13300
- updateMsg: function(id, obj) {
13301
- setDataSource(function(data) {
13302
- return data.map(function(item) {
13303
- if (item.id === id) {
13304
- return _object_spread({}, item, obj);
13305
- }
13306
- return item;
13307
- });
13308
- });
13309
- },
13310
- clearInputing: function() {
13311
- setDataSource(function(data) {
13312
- return data.filter(function(item) {
13313
- return item.id !== "inputing";
13314
- });
13315
- });
13316
- },
13317
- recordMsg: function(msg) {
13318
- onRecordMessage(msg);
13319
- },
13320
- getDataSource: function() {
13321
- return recordRef.current.dataSource;
13322
- },
13323
- upateDataSource: function(id, obj) {
13324
- setDataSource(function(list) {
13325
- return list.map(function(item) {
13326
- if (item.id === id) {
13327
- return _object_spread({}, item, obj);
13328
- }
13329
- return item;
13330
- });
13331
- });
13332
- },
13333
- changeDataSource: function(data) {
13334
- setDataSource(data);
13335
- },
13336
- scrollToBottom: function scrollToBottom() {
13337
- if (!virtuosoRef.current) return;
13338
- virtuosoRef.current.scrollToIndex({
13339
- index: "LAST",
13340
- behavior: "auto"
13341
- });
13342
- }
13343
- };
13344
- });
13345
- useEffect(function() {
13346
- getData(page, pageSize);
13347
- var removeFn = delegate$1(wrapperRef.current, "click", ".".concat(modules_63b47c51$9.copyCode), function(event, target) {
13348
- findCopyContent(event);
13349
- });
13350
- return function() {
13351
- removeFn();
13352
- clearTimeout(timerRef.current.loadMore);
13353
- clearTimeout(timerRef.current.scrollTimer);
13354
- };
13355
- }, []);
13356
- useEffect(function() {
13357
- if (!virtuosoRef.current) return;
13358
- // virtuosoRef.current.scrollToIndex({
13359
- // index: "LAST", // 或者使用 dataSource.length - 1
13360
- // behavior: "auto", // 可以是 "smooth" 实现平滑滚动
13361
- // });
13362
- // clearTimeout(timerRef.current.scrollTimer);
13363
- // timerRef.current.scrollTimer = setTimeout(() => {
13364
- // virtuosoRef.current.scrollToIndex({
13365
- // index: "LAST", // 或者使用 dataSource.length - 1
13366
- // behavior: "auto", // 可以是 "smooth" 实现平滑滚动
13367
- // align: "end",
13368
- // });
13369
- // }, 500);
13370
- }, [
13371
- dataSource
13372
- ]);
13373
- useEffect(function() {
13374
- recordRef.current.page = page;
13375
- recordRef.current.pageSize = pageSize;
13376
- recordRef.current.total = total;
13377
- recordRef.current.dataSource = dataSource;
13378
- recordRef.current.maxPage = Math.ceil(total / pageSize);
13379
- }, [
13380
- page,
13381
- pageSize,
13382
- total,
13383
- dataSource
13384
- ]);
13385
- var getData = function(page, pageSize) {
13386
- setLoading(true);
13387
- clearTimeout(timerRef.current.loadMore);
13388
- timerRef.current.loadMore = setTimeout(function() {
13389
- setLoading(false);
13390
- getList(page, pageSize).then(function(listObj) {
13391
- setLoading(false);
13392
- console.log("listObjlistObj", listObj);
13393
- setDataSource(function(data) {
13394
- return _to_consumable_array(data).concat(_to_consumable_array(listObj.dataSource));
13395
- });
13396
- setTotal(listObj.total);
13397
- setPage(page);
13398
- setPageSize(pageSize);
13399
- setFirstItemIndex(listObj.total - pageSize * (page - 1));
13400
- });
13401
- }, 500);
13402
- };
13403
- var getCls = function(clsName) {
13404
- return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
13405
- };
13406
- var loadMore = useCallback(function() {
13407
- if (!loadMoreProps) return;
13408
- if (recordRef.current.page >= recordRef.current.maxPage) return;
13409
- getData(page + 1, pageSize);
13410
- }, [
13411
- page,
13412
- pageSize
13413
- ]);
13414
- var itemContent = function(index, item) {
13415
- var timeNode = renderTime(item);
13416
- item.id + "-" + item.content;
13417
- var contentNode = null;
13418
- // if (htmlRenderCache.has(cahceKey)) {
13419
- // contentNode = htmlRenderCache.get(cahceKey);
13420
- // } else {
13421
- // const html = markToHtml(item.content, item.id);
13422
- // contentNode = <div dangerouslySetInnerHTML={{ __html: html }}></div>;
13423
- // if (coverRenderText) {
13424
- // contentNode = coverRenderText(item, html);
13425
- // }
13426
- // htmlRenderCache.set(cahceKey, contentNode);
13427
- // }
13428
- var html = markToHtml(item.content, item.id);
13429
- contentNode = /*#__PURE__*/ jsx("div", {
13430
- dangerouslySetInnerHTML: {
13431
- __html: html
13432
- }
13433
- });
13434
- if (coverRenderText) {
13435
- contentNode = coverRenderText(item, html);
13436
- }
13437
- // 是否显示时间
13438
- var itemNode = /*#__PURE__*/ jsx("div", {
13439
- className: "".concat(getCls("msgItem"), " ").concat(item.location === "left" ? getCls("msgItem-left") : getCls("msgItem-right")),
13440
- children: /*#__PURE__*/ jsxs("div", {
13441
- className: "".concat(getCls("msgItem-box")),
13442
- "data-id": item.id,
13443
- onMouseEnter: function() {
13444
- return onMouseEnter(item);
13445
- },
13446
- onMouseLeave: function() {
13447
- return onMouseLeave(item);
13448
- },
13449
- children: [
13450
- renderAction("floatTop", item),
13451
- /*#__PURE__*/ jsxs("div", {
13452
- className: "".concat(getCls("msgItem-content")),
13453
- children: [
13454
- /*#__PURE__*/ jsx("div", {
13455
- className: "".concat(getCls("msgItem-text")),
13456
- children: contentNode
13457
- }),
13458
- renderAction("bottom", item)
13459
- ]
13460
- }),
13461
- item.location === "left" && renderAction("floatBottom", item),
13462
- renderReference(item)
13463
- ]
13334
+ var excelIcon = /*#__PURE__*/ jsx("i", {
13335
+ children: /*#__PURE__*/ jsxs("svg", {
13336
+ width: "1em",
13337
+ height: "1em",
13338
+ viewBox: "0 0 32 32",
13339
+ fill: "none",
13340
+ xmlns: "http://www.w3.org/2000/svg",
13341
+ children: [
13342
+ /*#__PURE__*/ jsx("path", {
13343
+ d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13344
+ fill: "#E1E1E1"
13345
+ }),
13346
+ /*#__PURE__*/ jsx("path", {
13347
+ d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13348
+ fill: "#E0E0E0"
13349
+ }),
13350
+ /*#__PURE__*/ jsx("path", {
13351
+ d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13352
+ fill: "#F6F6F6"
13353
+ }),
13354
+ /*#__PURE__*/ jsx("rect", {
13355
+ x: "23",
13356
+ y: "12",
13357
+ width: "5",
13358
+ height: "3",
13359
+ rx: "1",
13360
+ fill: "#E7E7E7"
13361
+ }),
13362
+ /*#__PURE__*/ jsx("rect", {
13363
+ x: "23",
13364
+ y: "16",
13365
+ width: "5",
13366
+ height: "3",
13367
+ rx: "1",
13368
+ fill: "#E7E7E7"
13369
+ }),
13370
+ /*#__PURE__*/ jsx("rect", {
13371
+ x: "23",
13372
+ y: "20",
13373
+ width: "5",
13374
+ height: "3",
13375
+ rx: "1",
13376
+ fill: "#E7E7E7"
13377
+ }),
13378
+ /*#__PURE__*/ jsx("rect", {
13379
+ x: "23",
13380
+ y: "24",
13381
+ width: "5",
13382
+ height: "3",
13383
+ rx: "1",
13384
+ fill: "#E7E7E7"
13385
+ }),
13386
+ /*#__PURE__*/ jsx("rect", {
13387
+ x: "17",
13388
+ y: "12",
13389
+ width: "5",
13390
+ height: "3",
13391
+ rx: "1",
13392
+ fill: "#E7E7E7"
13393
+ }),
13394
+ /*#__PURE__*/ jsx("rect", {
13395
+ x: "17",
13396
+ y: "16",
13397
+ width: "5",
13398
+ height: "3",
13399
+ rx: "1",
13400
+ fill: "#E7E7E7"
13401
+ }),
13402
+ /*#__PURE__*/ jsx("rect", {
13403
+ x: "17",
13404
+ y: "20",
13405
+ width: "5",
13406
+ height: "3",
13407
+ rx: "1",
13408
+ fill: "#E7E7E7"
13409
+ }),
13410
+ /*#__PURE__*/ jsx("rect", {
13411
+ x: "17",
13412
+ y: "24",
13413
+ width: "5",
13414
+ height: "3",
13415
+ rx: "1",
13416
+ fill: "#E7E7E7"
13417
+ }),
13418
+ /*#__PURE__*/ jsx("rect", {
13419
+ x: "1",
13420
+ y: "7",
13421
+ width: "18",
13422
+ height: "18",
13423
+ rx: "2",
13424
+ fill: "url(#paint0_linear_9_1438)"
13425
+ }),
13426
+ /*#__PURE__*/ jsx("path", {
13427
+ d: "M9.49906 17.868L8.20306 19.896C7.87906 20.4 7.62706 20.82 7.32706 21.372H4.14706C4.79506 20.58 5.03506 20.268 5.38306 19.788L8.02306 16.08L5.77906 12.924C5.40706 12.384 5.04706 11.916 4.60306 11.388H7.71106C7.90306 11.832 8.16706 12.312 8.59906 12.972L9.51106 14.364L10.4111 12.96C10.8911 12.204 11.0951 11.844 11.2871 11.388H14.3711C13.9391 11.928 13.6511 12.3 13.2311 12.9L10.9751 16.068L13.6271 19.788C14.0111 20.328 14.3471 20.76 14.8511 21.372H11.6711C11.4431 20.94 11.2151 20.532 10.8071 19.896L9.49906 17.868Z",
13428
+ fill: "white"
13429
+ }),
13430
+ /*#__PURE__*/ jsx("defs", {
13431
+ children: /*#__PURE__*/ jsxs("linearGradient", {
13432
+ id: "paint0_linear_9_1438",
13433
+ x1: "10",
13434
+ y1: "7",
13435
+ x2: "10",
13436
+ y2: "25",
13437
+ gradientUnits: "userSpaceOnUse",
13438
+ children: [
13439
+ /*#__PURE__*/ jsx("stop", {
13440
+ "stop-color": "#309A6C"
13441
+ }),
13442
+ /*#__PURE__*/ jsx("stop", {
13443
+ offset: "1",
13444
+ "stop-color": "#237347"
13445
+ })
13446
+ ]
13447
+ })
13464
13448
  })
13465
- });
13466
- return /*#__PURE__*/ jsxs(Fragment, {
13467
- children: [
13468
- timeNode,
13469
- itemNode
13470
- ]
13471
- });
13472
- };
13473
- var renderReference = function(item) {
13474
- var reference = item.reference;
13475
- if (!item.reference) return null;
13476
- var referenceNode = null;
13477
- if (reference.type === "text") {
13478
- referenceNode = /*#__PURE__*/ jsx("div", {
13479
- className: "".concat(getCls("msgItem-references-text")),
13480
- children: /*#__PURE__*/ jsx("div", {
13481
- children: reference.value
13449
+ ]
13450
+ })
13451
+ });
13452
+ var pptIcon = /*#__PURE__*/ jsx("i", {
13453
+ children: /*#__PURE__*/ jsxs("svg", {
13454
+ width: "1em",
13455
+ height: "1em",
13456
+ viewBox: "0 0 32 32",
13457
+ fill: "none",
13458
+ xmlns: "http://www.w3.org/2000/svg",
13459
+ children: [
13460
+ /*#__PURE__*/ jsx("path", {
13461
+ d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
13462
+ fill: "#E1E1E1"
13463
+ }),
13464
+ /*#__PURE__*/ jsx("path", {
13465
+ d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
13466
+ fill: "#E0E0E0"
13467
+ }),
13468
+ /*#__PURE__*/ jsx("path", {
13469
+ d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
13470
+ fill: "#F6F6F6"
13471
+ }),
13472
+ /*#__PURE__*/ jsx("rect", {
13473
+ x: "17",
13474
+ y: "25",
13475
+ width: "11",
13476
+ height: "2",
13477
+ rx: "1",
13478
+ fill: "#E7E7E7"
13479
+ }),
13480
+ /*#__PURE__*/ jsx("rect", {
13481
+ x: "17",
13482
+ y: "22",
13483
+ width: "11",
13484
+ height: "2",
13485
+ rx: "1",
13486
+ fill: "#E7E7E7"
13487
+ }),
13488
+ /*#__PURE__*/ jsx("path", {
13489
+ d: "M21.2305 12.4175C19.796 12.6232 18.6928 13.854 18.6924 15.3452C18.6924 16.9808 20.0187 18.3071 21.6543 18.3071C23.1457 18.3069 24.3754 17.2037 24.5811 15.769H26.2871C26.0734 18.1409 24.0817 19.9993 21.6543 19.9995C19.0842 19.9995 17.0002 17.9162 17 15.3462C17.0002 12.919 18.859 10.9266 21.2305 10.7124V12.4175Z",
13490
+ fill: "#E7E7E7"
13491
+ }),
13492
+ /*#__PURE__*/ jsx("mask", {
13493
+ id: "mask0_9_1453",
13494
+ style: "mask-type:alpha",
13495
+ maskUnits: "userSpaceOnUse",
13496
+ x: "22",
13497
+ y: "9",
13498
+ width: "6",
13499
+ height: "6",
13500
+ children: /*#__PURE__*/ jsx("rect", {
13501
+ x: "22.9223",
13502
+ y: "9",
13503
+ width: "5.07692",
13504
+ height: "5.07692",
13505
+ fill: "#E7E7E7"
13482
13506
  })
13483
- });
13484
- }
13485
- if (coverRenderReferences) {
13486
- return coverRenderReferences(item, referenceNode);
13487
- } else {
13488
- return referenceNode;
13489
- }
13490
- };
13491
- var onMouseEnter = function(item) {
13492
- var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
13493
- var container = wrapperRef.current;
13494
- if (!dom) return;
13495
- var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
13496
- var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
13497
- if (!topDom || !bottomDom) return;
13498
- console.log("itemitem", dom, container);
13499
- var con_obj = container.getBoundingClientRect(); // 外层盒子
13500
- var dom_obj = dom.getBoundingClientRect(); // 鼠标滑过元素
13501
- var y = dom_obj.y - con_obj.y;
13502
- if (y > 0) {
13503
- // 元素tou在可视区域内
13504
- // 判断底部是否在可视区域内
13505
- if (y + dom_obj.height < con_obj.height) {
13506
- // 底部在可视区域内
13507
- // 显示在下边
13508
- bottomDom.style.cssText = "display:flex";
13509
- } else {
13510
- // 显示在上
13511
- topDom.style.cssText = "display:flex";
13512
- }
13513
- } else {
13514
- console.log("yyyy", y, dom_obj, con_obj, y + dom_obj.height < con_obj.height);
13515
- // 元素top不在可视区域内
13516
- if (y + dom_obj.height < con_obj.height) {
13517
- // 底部在可视区域内
13518
- // 显示在下边
13519
- bottomDom.style.cssText = "display:flex";
13520
- } else {
13521
- // 头部和底部都不在可视区域内 移动 topDom到可视区域
13522
- topDom.style.cssText = "display:flex;top:".concat(-1 * y + 24, "px;bottom:auto;");
13523
- }
13524
- }
13525
- };
13526
- var onMouseLeave = function(item) {
13527
- var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
13528
- if (!dom) return;
13529
- var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
13530
- var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
13531
- if (!topDom || !bottomDom) return;
13532
- bottomDom.style.cssText = "";
13533
- topDom.style.cssText = "";
13534
- };
13535
- var renderAction = function(location, item) {
13536
- var copyNode = /*#__PURE__*/ jsx(CopyIcon$1, {
13537
- prefix: prefix,
13538
- content: item.content
13539
- });
13540
- var referencesNode = /*#__PURE__*/ jsx(ReferencesIcon$1, {
13541
- prefix: prefix,
13542
- apiRef: apiRef,
13543
- item: item
13544
- });
13545
- var UpVoteNode = /*#__PURE__*/ jsx(UpVoteBtn, {
13546
- prefix: prefix,
13547
- isActive: item.vote === "up",
13548
- clickFn: function() {
13549
- setDataSource(function(data) {
13550
- return data.map(function(ite) {
13551
- if (item.id === ite.id) {
13552
- ite.vote = item.vote === "up" ? "" : "up";
13553
- }
13554
- return ite;
13555
- });
13556
- });
13557
- onVoteChange(item.vote === "up" ? "" : "up", item);
13558
- }
13559
- });
13560
- var DownVoteNode = /*#__PURE__*/ jsx(DownVoteBtn, {
13561
- prefix: prefix,
13562
- isActive: item.vote === "down",
13563
- clickFn: function() {
13564
- setDataSource(function(data) {
13565
- return data.map(function(ite) {
13566
- if (item.id === ite.id) {
13567
- ite.vote = ite.vote === "down" ? "" : "down";
13568
- }
13569
- return ite;
13570
- });
13571
- });
13572
- onVoteChange(item.vote === "down" ? "" : "down", item);
13573
- }
13574
- });
13575
- var RefreshNode = /*#__PURE__*/ jsx(RefreshBtn$1, {
13576
- prefix: prefix,
13577
- clickFn: function() {
13578
- return onRefresh(item);
13579
- }
13580
- });
13581
- if (item.location === "right") {
13582
- UpVoteNode = null;
13583
- DownVoteNode = null;
13584
- }
13585
- var leftNodes = null;
13586
- var rightNodes = /*#__PURE__*/ jsxs(Fragment, {
13587
- children: [
13588
- copyNode,
13589
- referencesNode,
13590
- UpVoteNode,
13591
- DownVoteNode
13592
- ]
13593
- });
13594
- if (msgAction instanceof Array) {
13595
- if (msgAction.length == 0) return null;
13596
- // 数组
13597
- if (!msgAction.includes("copy")) {
13598
- copyNode = null;
13599
- }
13600
- if (!msgAction.includes("references")) {
13601
- referencesNode = null;
13602
- }
13603
- if (!msgAction.includes("upVite")) {
13604
- UpVoteNode = null;
13605
- }
13606
- if (!msgAction.includes("downVote")) {
13607
- DownVoteNode = null;
13608
- }
13609
- if (!msgAction.includes("refresh")) {
13610
- RefreshNode = null;
13611
- }
13612
- } else if (typeof msgAction === "object") {
13613
- if (msgAction.renderLeft) {
13614
- leftNodes = msgAction.renderLeft(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
13615
- }
13616
- if (msgAction.renderRight) {
13617
- rightNodes = msgAction.renderRight(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
13618
- }
13619
- }
13620
- var index = recordRef.current.dataSource.findIndex(function(ite) {
13621
- return ite.id == item.id;
13622
- });
13623
- if (location === "bottom") {
13624
- if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing") {
13625
- if (index === recordRef.current.dataSource.length - 1) {
13626
- return /*#__PURE__*/ jsxs("div", {
13627
- className: "".concat(getCls("msgItem-action")),
13628
- children: [
13629
- /*#__PURE__*/ jsx("div", {
13630
- className: "".concat(getCls("msgItem-action-left")),
13631
- children: leftNodes
13632
- }),
13633
- /*#__PURE__*/ jsxs("div", {
13634
- className: "".concat(getCls("msgItem-action-right")),
13635
- children: [
13636
- RefreshNode,
13637
- rightNodes
13638
- ]
13639
- })
13640
- ]
13641
- });
13642
- }
13643
- }
13644
- // 只有最后一条才显示底部操作啦 且是左侧消息 且不是招呼语
13645
- }
13646
- if (location === "floatTop" || location === "floatBottom") {
13647
- if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) return null;
13648
- // 浮框
13649
- return /*#__PURE__*/ jsx("div", {
13650
- className: "".concat(getCls("msgItem-action-operate")),
13651
- children: /*#__PURE__*/ jsxs("div", {
13652
- className: "".concat(getCls("msgItem-action"), " ").concat(getCls("msgItem-action-popover"), " ").concat(getCls("msgItem-action-popover-" + location)),
13507
+ }),
13508
+ /*#__PURE__*/ jsx("g", {
13509
+ mask: "url(#mask0_9_1453)",
13510
+ children: /*#__PURE__*/ jsx("path", {
13511
+ d: "M22.5001 9.84619C25.0702 9.84643 27.1534 11.9304 27.1534 14.5005C27.1532 17.0704 25.07 19.1536 22.5001 19.1538C19.93 19.1538 17.8461 17.0705 17.8458 14.5005C17.8458 11.9302 19.9299 9.84619 22.5001 9.84619ZM21.6534 12.3843C20.0179 12.3843 18.6915 13.7106 18.6915 15.3462C18.6915 16.9818 20.0179 18.3081 21.6534 18.3081C23.2891 18.3081 24.6154 16.9818 24.6154 15.3462C24.6154 13.7106 23.2891 12.3843 21.6534 12.3843Z",
13512
+ fill: "#E7E7E7"
13513
+ })
13514
+ }),
13515
+ /*#__PURE__*/ jsx("rect", {
13516
+ x: "1",
13517
+ y: "7",
13518
+ width: "18",
13519
+ height: "18",
13520
+ rx: "2",
13521
+ fill: "url(#paint0_linear_9_1453)"
13522
+ }),
13523
+ /*#__PURE__*/ jsx("path", {
13524
+ d: "M8.74783 21.372H6.16783C6.23983 20.844 6.26383 20.304 6.26383 19.596V13.104C6.26383 12.456 6.23983 11.916 6.16783 11.352C6.73183 11.376 7.16383 11.388 7.93183 11.388H10.5598C12.9358 11.388 14.2438 12.528 14.2438 14.616C14.2438 16.752 12.8758 18.024 10.5478 18.024H8.65183V19.56C8.65183 20.268 8.68783 20.856 8.74783 21.372ZM8.65183 15.984H10.4398C11.2798 15.984 11.7718 15.516 11.7718 14.688C11.7718 13.86 11.3038 13.428 10.4398 13.428H8.65183V15.984Z",
13525
+ fill: "white"
13526
+ }),
13527
+ /*#__PURE__*/ jsx("defs", {
13528
+ children: /*#__PURE__*/ jsxs("linearGradient", {
13529
+ id: "paint0_linear_9_1453",
13530
+ x1: "10",
13531
+ y1: "7",
13532
+ x2: "10",
13533
+ y2: "25",
13534
+ gradientUnits: "userSpaceOnUse",
13653
13535
  children: [
13654
- /*#__PURE__*/ jsx("div", {
13655
- className: "".concat(getCls("msgItem-action-left")),
13656
- children: leftNodes
13536
+ /*#__PURE__*/ jsx("stop", {
13537
+ "stop-color": "#FF8642"
13657
13538
  }),
13658
- /*#__PURE__*/ jsx("div", {
13659
- className: "".concat(getCls("msgItem-action-right")),
13660
- children: rightNodes
13539
+ /*#__PURE__*/ jsx("stop", {
13540
+ offset: "1",
13541
+ "stop-color": "#EF673B"
13661
13542
  })
13662
13543
  ]
13663
13544
  })
13664
- });
13665
- }
13666
- return null;
13667
- };
13668
- var markToHtml = function(markStr, id) {
13669
- var html = remarkable.render(markStr);
13670
- var position = 0;
13671
- html = html.replace(new RegExp("<pre", "ig"), function() {
13672
- position++;
13673
- return "<p class='".concat(getCls("copyCode"), " ").concat(modules_63b47c51$9.copyCodeFun, "' data-id=").concat(id, " data-position=").concat(position, ">\n <span class='").concat(getCls("icon"), " ").concat(getCls("copy"), '\'>\n <svg\n width="1em"\n height="1em"\n viewBox="0 0 14 14"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n xmlns="http://www.w3.org/2000/svg"\n >\n <g clip-path="url(#clip0_518_8403)">\n <path\n d="M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"\n />\n </g>\n <defs>\n <clipPath id="clip0_518_8403">\n <rect width="16" height="16" />\n </clipPath>\n </defs>\n </svg>\n </span>\n <span class=\'').concat(getCls("icon"), " ").concat(getCls("copy_success_flag"), '\'>\n <svg\n width="1em"\n height="1em"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z" />\n </svg>\n </span><span class="').concat(getCls("copyCodeText"), '">复制代码</span></p><pre');
13674
- });
13675
- return html;
13676
- };
13677
- var renderTime = function(item) {
13678
- // 生成缓存键
13679
- var cacheKey = "".concat(item.id);
13680
- // 检查缓存中是否已有结果
13681
- if (timeRenderCache.has(cacheKey)) {
13682
- return timeRenderCache.get(cacheKey);
13683
- }
13684
- var index = recordRef.current.dataSource.findIndex(function(i) {
13685
- return i.id === item.id;
13686
- });
13687
- var timeObj = parseDate(item.createTime);
13688
- var time = null;
13689
- if (index === 0) {
13690
- // 第一项 显示年月日 时分
13691
- time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
13692
- } else {
13693
- // 非第一项 与上一项进行对比
13694
- var prevItem = recordRef.current.dataSource[index - 1];
13695
- if (prevItem) {
13696
- var beforeTime = prevItem.createTime;
13697
- var beforeTimeObj = parseDate(beforeTime);
13698
- // 判断与上一条数据 是否跨天
13699
- if (timeObj.year !== beforeTimeObj.year || timeObj.month !== beforeTimeObj.month || timeObj.day !== beforeTimeObj.day) {
13700
- // 显示 年月日 时分
13701
- time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
13702
- } else {
13703
- // 没有跨天 判断是否相隔超过10分钟
13704
- if (timeObj.timestamp - beforeTimeObj.timestamp > 10 * 60 * 1000) {
13705
- // 超过10分钟 显示 时分
13706
- time = "".concat(timeObj.hours, ":").concat(timeObj.minutes);
13707
- }
13708
- }
13709
- }
13710
- }
13711
- var result = time ? /*#__PURE__*/ jsx("div", {
13712
- className: "".concat(getCls("msg-date")),
13713
- children: time
13714
- }) : null;
13715
- // 将结果存入缓存
13716
- timeRenderCache.set(cacheKey, result);
13717
- return result;
13718
- };
13719
- var findCopyContent = function(e) {
13720
- var source = findParent$1(e.target, modules_63b47c51$9.copyCode);
13721
- if (!source) return;
13722
- var id = source.getAttribute("data-id");
13723
- var position = source.getAttribute("data-position");
13724
- if (!id && !position) return;
13725
- var message = "";
13726
- recordRef.current.dataSource.forEach(function(item) {
13727
- if (item.id === id) {
13728
- message = item.content;
13729
- }
13730
- });
13731
- if (!message) return;
13732
- var codeConment = "";
13733
- var i = 0;
13734
- message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
13735
- i++;
13736
- if (i == position) {
13737
- // 异常标记
13738
- con = con.replace(/^```[\s\S]*?\n/, "").replace(/\n```$/, "");
13739
- codeConment = con;
13740
- return con;
13741
- } else {
13742
- return null;
13743
- }
13744
- });
13745
- resetStyles();
13746
- source.classList.add(modules_63b47c51$9.copy_success);
13747
- source.children[2].innerText = "复制成功";
13748
- copyText$1(codeConment);
13749
- setTimeout(function() {
13750
- try {
13751
- resetStyles();
13752
- } catch (error) {}
13753
- }, 3000);
13754
- };
13755
- //初始化样式
13756
- var resetStyles = function() {
13757
- var dom_list = document.getElementsByClassName(modules_63b47c51$9.copy_success);
13758
- for(var i = 0; i < dom_list.length; i++){
13759
- dom_list[i].classList.remove(modules_63b47c51$9.copy_success);
13760
- }
13761
- var dom_list2 = document.getElementsByClassName(modules_63b47c51$9.copyCodeFun);
13762
- for(var i = 0; i < dom_list2.length; i++){
13763
- var p = dom_list2[i].getElementsByClassName(modules_63b47c51$9.copyCodeText);
13764
- p[0].innerText = "复制代码";
13765
- }
13766
- };
13767
- return /*#__PURE__*/ jsx("div", {
13768
- className: "".concat(getCls("virtuosoList-wrapper")),
13769
- ref: wrapperRef,
13770
- children: /*#__PURE__*/ jsx(cn, {
13771
- ref: virtuosoRef,
13772
- style: {
13773
- height: "100%"
13774
- },
13775
- data: dataSource,
13776
- initialTopMostItemIndex: {
13777
- index: "LAST",
13778
- align: "end"
13779
- },
13780
- startReached: loadMore,
13781
- firstItemIndex: firstItemIndex,
13782
- context: {
13783
- loading: loading,
13784
- prefix: prefix
13785
- },
13786
- itemContent: itemContent,
13787
- components: {
13788
- Header: Header
13789
- },
13790
- increaseViewportBy: 200,
13791
- overscan: 10
13792
- })
13793
- });
13794
- });
13795
- var VirtuosoList$1 = VirtuosoList;
13796
-
13797
- var Content = /*#__PURE__*/ forwardRef(function(props, ref) {
13798
- var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
13799
- var _contentConfig_className = contentConfig.className, className = _contentConfig_className === void 0 ? "" : _contentConfig_className;
13800
- var listRef = useRef(null);
13801
- useImperativeHandle(ref, function() {
13802
- return _object_spread({}, listRef.current);
13803
- });
13804
- var getCls = function(clsName) {
13805
- return modules_63b47c51$a[clsName] + " " + prefix + "-" + clsName;
13806
- };
13807
- return /*#__PURE__*/ jsx("div", {
13808
- className: "".concat(getCls("content"), " ").concat(className),
13809
- children: /*#__PURE__*/ jsx("div", {
13810
- className: "".concat(getCls("contentList")),
13811
- children: /*#__PURE__*/ jsx(VirtuosoList$1, {
13812
- ref: listRef,
13813
- prefix: prefix,
13814
- contentConfig: contentConfig,
13815
- apiRef: apiRef
13816
- })
13817
- })
13818
- });
13819
- });
13820
- var Content$1 = Content;
13821
-
13822
- var modules_63b47c51$4 = {"footer":"index_module_footer__2287d487","footerBody":"index_module_footerBody__2287d487","footerBodyWarn":"index_module_footerBodyWarn__2287d487","footerFile":"index_module_footerFile__2287d487","footerInput":"index_module_footerInput__2287d487","footerAction":"index_module_footerAction__2287d487","footerActionBtn":"index_module_footerActionBtn__2287d487"};
13823
-
13824
- var modules_63b47c51$3 = {"sendBtnIcon":"index_module_sendBtnIcon__d770fbb6","disabled":"index_module_disabled__d770fbb6","sendingIcon":"index_module_sendingIcon__d770fbb6","popover":"index_module_popover__d770fbb6"};
13825
-
13826
- var sendBtnSvg = /*#__PURE__*/ jsx("svg", {
13827
- xmlns: "http://www.w3.org/2000/svg",
13828
- width: "1em",
13829
- height: "1em",
13830
- viewBox: "0 0 24 24",
13831
- fill: "currentColor",
13832
- children: /*#__PURE__*/ jsx("path", {
13833
- d: "M20.3831 4.11378C20.0797 3.96207 19.7763 3.96207 19.6246 4.11378L4.45533 11.6984C4.15195 11.6984 4.00024 12.0018 4.00024 12.3052C4.00024 12.6085 4.15195 12.9119 4.30364 12.9119L7.94426 15.1874C8.24766 15.3391 8.55105 15.3391 8.85443 15.0357L16.8942 7.7544L17.1975 7.90609L9.91627 15.6425C9.76458 15.7941 9.76458 15.9458 9.76458 16.0975V19.4348C9.76458 19.7381 9.91627 20.0415 10.2197 20.1932C10.523 20.3449 10.8264 20.1932 10.9781 20.0415L12.7984 18.2212L16.4391 20.6483C16.5908 20.8 16.7425 20.8 16.8942 20.8H17.1975C17.5009 20.6483 17.6526 20.4966 17.6526 20.1932L20.6865 5.02393C20.6865 4.56885 20.6865 4.26547 20.3831 4.11378Z"
13834
- })
13835
- });
13836
- var sendingSvg = /*#__PURE__*/ jsx("svg", {
13837
- xmlns: "http://www.w3.org/2000/svg",
13838
- width: "1em",
13839
- height: "1em",
13840
- viewBox: "0 0 16 16",
13841
- fill: "currentColor",
13842
- children: /*#__PURE__*/ jsx("path", {
13843
- d: "M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1ZM9.5 5C9.89782 5 10.2792 5.15815 10.5605 5.43945C10.8419 5.72076 11 6.10218 11 6.5V9.5C11 9.89782 10.8419 10.2792 10.5605 10.5605C10.2792 10.8419 9.89782 11 9.5 11H6.5C6.10218 11 5.72076 10.8419 5.43945 10.5605C5.15815 10.2792 5 9.89782 5 9.5V6.5C5 6.10218 5.15815 5.72076 5.43945 5.43945C5.72076 5.15815 6.10218 5 6.5 5H9.5Z"
13844
- })
13845
- });
13846
- var SendBtn$1 = function(props) {
13847
- var prefix = props.prefix, canSendMsg = props.canSendMsg, sending = props.sending, stopMessage = props.stopMessage, _props_clickFn = props.clickFn, clickFn = _props_clickFn === void 0 ? function() {} : _props_clickFn;
13848
- var getCls = function(clsName) {
13849
- return modules_63b47c51$3[clsName] + " " + prefix + "-" + clsName;
13850
- };
13851
- if (sending) {
13852
- return /*#__PURE__*/ jsx(Popover, {
13853
- content: "停止生成",
13854
- overlayClassName: modules_63b47c51$3.popover,
13855
- children: /*#__PURE__*/ jsx("i", {
13856
- className: "".concat(getCls("sendingIcon")),
13857
- onClick: function() {
13858
- return stopMessage();
13859
- },
13860
- children: sendingSvg
13861
13545
  })
13862
- });
13863
- }
13864
- return /*#__PURE__*/ jsx("i", {
13865
- className: "".concat(getCls("sendBtnIcon"), " ").concat(canSendMsg ? "" : getCls("disabled")),
13866
- onClick: function() {
13867
- if (canSendMsg) {
13868
- clickFn();
13869
- }
13870
- },
13871
- children: sendBtnSvg
13872
- });
13873
- };
13874
- var SendBtn$2 = SendBtn$1;
13875
-
13876
- var modules_63b47c51$2 = {"uploadFileBtn":"index_module_uploadFileBtn__e41600f2"};
13877
-
13878
- var uplodaFileBtnSvg = /*#__PURE__*/ jsx("svg", {
13879
- xmlns: "http://www.w3.org/2000/svg",
13880
- width: "1em",
13881
- height: "1em",
13882
- viewBox: "0 0 24 24",
13883
- fill: "curretnColor",
13884
- children: /*#__PURE__*/ jsx("path", {
13885
- d: "M18.6853 7.62742C17.8428 6.79307 16.7044 6.32615 15.5187 6.3287H15.5067C14.9307 6.3287 14.3694 6.43537 13.8347 6.64871C13.2814 6.86872 12.7814 7.19407 12.3547 7.61542L8.1774 11.7449C7.93976 11.9789 7.75147 12.2582 7.62368 12.5663C7.49588 12.8743 7.43118 13.2049 7.4334 13.5384C7.43474 14.2157 7.70273 14.8531 8.18673 15.3318C8.67073 15.8118 9.31339 16.0745 9.99872 16.0758H10.0041C10.6867 16.0758 11.328 15.8145 11.808 15.3411L15.4747 11.7169C15.5343 11.6586 15.5818 11.5889 15.6141 11.512C15.6465 11.435 15.6632 11.3524 15.6632 11.2689C15.6632 11.1855 15.6465 11.1028 15.6141 11.0259C15.5818 10.949 15.5343 10.8793 15.4747 10.8209C15.3544 10.7019 15.1919 10.6351 15.0227 10.6351C14.8534 10.6351 14.691 10.7019 14.5707 10.8209L10.904 14.4437C10.7851 14.5612 10.6442 14.6541 10.4893 14.717C10.3344 14.78 10.1686 14.8117 10.0014 14.8104H10.0001C9.65919 14.8107 9.33196 14.6766 9.08939 14.4371C8.96981 14.3197 8.87485 14.1796 8.81006 14.0251C8.74527 13.8705 8.71195 13.7046 8.71206 13.537C8.71037 13.3709 8.7422 13.2062 8.80567 13.0527C8.86913 12.8992 8.96291 12.7601 9.08139 12.6437L13.2587 8.51146C13.8576 7.9204 14.6666 7.59138 15.508 7.59676H15.5173C16.3656 7.59544 17.1802 7.92894 17.784 8.5248C18.388 9.12216 18.7213 9.91686 18.7227 10.7636C18.7254 11.1781 18.6451 11.5889 18.4864 11.9718C18.3277 12.3548 18.0938 12.702 17.7987 12.993L13.3667 17.3799C12.4776 18.2529 11.2794 18.7389 10.0334 18.7319H10.0214C8.76654 18.7335 7.56186 18.2394 6.66941 17.3572C6.22896 16.9252 5.8792 16.4096 5.64062 15.8406C5.40205 15.2716 5.27948 14.6607 5.28009 14.0437C5.27585 13.4298 5.39486 12.8212 5.63007 12.2541C5.86528 11.6871 6.2119 11.1729 6.64941 10.7422L12.3734 5.08464C12.4332 5.02626 12.4808 4.95648 12.5133 4.87942C12.5458 4.80236 12.5625 4.71958 12.5625 4.63595C12.5625 4.55233 12.5458 4.46954 12.5133 4.39248C12.4808 4.31543 12.4332 4.24565 12.3734 4.18727C12.2529 4.06755 12.0901 4.00025 11.9203 4C11.7505 3.99975 11.5875 4.06658 11.4667 4.18593L5.74675 9.84486C5.18956 10.3931 4.74792 11.0476 4.44792 11.7694C4.14792 12.4913 3.99564 13.266 4.00009 14.0477C4.00143 14.8211 4.15076 15.5745 4.44542 16.2865C4.75105 17.0251 5.20126 17.6952 5.76956 18.2574C6.33787 18.8196 7.01282 19.2624 7.75473 19.56C8.47206 19.8493 9.23472 19.996 10.0174 20H10.0347C11.6174 20.0024 13.1375 19.3822 14.2667 18.2732L18.7 13.8904C19.1135 13.4806 19.4414 12.9926 19.6646 12.4549C19.8877 11.9172 20.0018 11.3404 20 10.7582C19.999 10.1753 19.8823 9.59842 19.6566 9.06098C19.4309 8.52354 19.1008 8.03627 18.6853 7.62742Z"
13546
+ ]
13886
13547
  })
13887
13548
  });
13888
- var SendBtn = function(props) {
13889
- var prefix = props.prefix, fileUpload = props.fileUpload, customRequest = props.customRequest;
13890
- var uplodaProps = _object_spread({}, fileUpload);
13891
- var getCls = function(clsName) {
13892
- return modules_63b47c51$2[clsName] + " " + prefix + "-" + clsName;
13893
- };
13894
- return /*#__PURE__*/ jsx(Upload, {
13895
- fileList: [],
13896
- accept: uplodaProps.accept,
13897
- customRequest: customRequest,
13898
- multiple: !!uplodaProps.multiple,
13899
- children: /*#__PURE__*/ jsx("i", {
13900
- className: "".concat(getCls("uploadFileBtn")),
13901
- children: uplodaFileBtnSvg
13902
- })
13903
- });
13904
- };
13905
- var UploadFileBtn = SendBtn;
13906
-
13907
- var modules_63b47c51$1 = {"footer-fileList-wrapper":"index_module_footerFileListWrapper__e818c28d","footer-fileList-list":"index_module_footerFileListList__e818c28d","footer-fileList-listItem":"index_module_footerFileListListItem__e818c28d","footer-fileList-listItem-icon":"index_module_footerFileListListItemIcon__e818c28d","footer-fileList-listItem-text":"index_module_footerFileListListItemText__e818c28d","footer-fileList-listItem-status":"index_module_footerFileListListItemStatus__e818c28d","footer-fileList-listItem-delete":"index_module_footerFileListListItemDelete__e818c28d","footer-fileList-pre":"index_module_footerFileListPre__e818c28d","footer-fileList-next":"index_module_footerFileListNext__e818c28d"};
13908
-
13909
- //@ts-nocheck
13910
- // wordIcon
13911
- var wordIcon = /*#__PURE__*/ jsx("i", {
13549
+ var pdfIcon = /*#__PURE__*/ jsx("i", {
13912
13550
  children: /*#__PURE__*/ jsxs("svg", {
13913
13551
  width: "1em",
13914
13552
  height: "1em",
@@ -13966,35 +13604,49 @@ var wordIcon = /*#__PURE__*/ jsx("i", {
13966
13604
  width: "18",
13967
13605
  height: "18",
13968
13606
  rx: "2",
13969
- fill: "url(#paint0_linear_9_1348)"
13607
+ fill: "url(#paint0_linear_9_1414)"
13970
13608
  }),
13971
- /*#__PURE__*/ jsx("path", {
13972
- d: "M13.8979 21.372H11.4979C11.4499 20.988 11.3659 20.568 11.2459 20.088L10.3339 16.56C10.2139 16.092 10.1179 15.54 9.99789 14.748C9.92589 15.24 9.78189 15.996 9.63789 16.56L8.74989 20.1C8.59389 20.7 8.52189 21.048 8.48589 21.372H6.09789C6.03789 21.024 5.97789 20.772 5.79789 20.076L3.87789 12.876C3.70989 12.264 3.54189 11.712 3.42189 11.388H6.15789C6.16989 11.82 6.22989 12.204 6.32589 12.708L7.09389 16.356C7.12989 16.536 7.21389 17.1 7.35789 18.048C7.53789 17.04 7.62189 16.608 7.69389 16.356L8.65389 12.636C8.79789 12.096 8.86989 11.724 8.91789 11.388H11.0539C11.1019 11.7 11.1739 12.036 11.3299 12.6L12.3019 16.296C12.3979 16.68 12.4819 17.076 12.6379 18.048C12.6619 17.82 12.6619 17.82 12.7339 17.316C12.7699 17.052 12.8539 16.476 12.9019 16.284L13.6579 12.708C13.7779 12.156 13.8259 11.808 13.8379 11.388H16.5619C16.4419 11.712 16.2739 12.276 16.1179 12.876L14.1979 20.064C14.0419 20.628 13.9339 21.084 13.8979 21.372Z",
13973
- fill: "white"
13609
+ /*#__PURE__*/ jsx("g", {
13610
+ "clip-path": "url(#clip0_9_1414)",
13611
+ children: /*#__PURE__*/ jsx("path", {
13612
+ d: "M14.3333 18.9667C13.4333 18.9 12.5667 18.5667 11.8667 17.9667C10.5 18.2667 9.2 18.7 7.9 19.2334C6.86667 21.0667 5.9 22 5.06667 22C4.9 22 4.7 21.9667 4.56667 21.8667C4.2 21.7 4 21.3334 4 20.9667C4 20.6667 4.06667 19.8334 7.23333 18.4667C7.96667 17.1334 8.53333 15.7667 9 14.3334C8.6 13.5334 7.73333 11.5667 8.33333 10.5667C8.53333 10.2 8.93333 10 9.36667 10.0334C9.7 10.0334 10.0333 10.2 10.2333 10.4667C10.6667 11.0667 10.6333 12.3334 10.0667 14.2C10.6 15.2 11.3 16.1 12.1333 16.8667C12.8333 16.7334 13.5333 16.6334 14.2333 16.6334C15.8 16.6667 16.0333 17.4 16 17.8334C16 18.9667 14.9 18.9667 14.3333 18.9667ZM5 21.0334L5.1 21C5.56667 20.8334 5.93333 20.5 6.2 20.0667C5.7 20.2667 5.3 20.6 5 21.0334ZM9.43333 11.0334H9.33333C9.3 11.0334 9.23333 11.0334 9.2 11.0667C9.06667 11.6334 9.16667 12.2334 9.4 12.7667C9.6 12.2 9.6 11.6 9.43333 11.0334ZM9.66667 15.8667L9.63333 15.9334L9.6 15.9C9.3 16.6667 8.96667 17.4334 8.6 18.1667L8.66667 18.1334V18.2C9.4 17.9334 10.2 17.7 10.9333 17.5334L10.9 17.5H11C10.5 17 10.0333 16.4334 9.66667 15.8667ZM14.2 17.6334C13.9 17.6334 13.6333 17.6334 13.3333 17.7C13.6667 17.8667 14 17.9334 14.3333 17.9667C14.5667 18 14.8 17.9667 15 17.9C15 17.8 14.8667 17.6334 14.2 17.6334Z",
13613
+ fill: "white"
13614
+ })
13974
13615
  }),
13975
- /*#__PURE__*/ jsx("defs", {
13976
- children: /*#__PURE__*/ jsxs("linearGradient", {
13977
- id: "paint0_linear_9_1348",
13978
- x1: "10",
13979
- y1: "7",
13980
- x2: "10",
13981
- y2: "25",
13982
- gradientUnits: "userSpaceOnUse",
13983
- children: [
13984
- /*#__PURE__*/ jsx("stop", {
13985
- "stop-color": "#4199F2"
13986
- }),
13987
- /*#__PURE__*/ jsx("stop", {
13988
- offset: "1",
13989
- "stop-color": "#3173E2"
13616
+ /*#__PURE__*/ jsxs("defs", {
13617
+ children: [
13618
+ /*#__PURE__*/ jsxs("linearGradient", {
13619
+ id: "paint0_linear_9_1414",
13620
+ x1: "10",
13621
+ y1: "7",
13622
+ x2: "10",
13623
+ y2: "25",
13624
+ gradientUnits: "userSpaceOnUse",
13625
+ children: [
13626
+ /*#__PURE__*/ jsx("stop", {
13627
+ "stop-color": "#FF7675"
13628
+ }),
13629
+ /*#__PURE__*/ jsx("stop", {
13630
+ offset: "1",
13631
+ "stop-color": "#F73535"
13632
+ })
13633
+ ]
13634
+ }),
13635
+ /*#__PURE__*/ jsx("clipPath", {
13636
+ id: "clip0_9_1414",
13637
+ children: /*#__PURE__*/ jsx("rect", {
13638
+ width: "12",
13639
+ height: "12",
13640
+ fill: "white",
13641
+ transform: "translate(4 10)"
13990
13642
  })
13991
- ]
13992
- })
13643
+ })
13644
+ ]
13993
13645
  })
13994
13646
  ]
13995
13647
  })
13996
13648
  });
13997
- var excelIcon = /*#__PURE__*/ jsx("i", {
13649
+ var txtIcon = /*#__PURE__*/ jsx("i", {
13998
13650
  children: /*#__PURE__*/ jsxs("svg", {
13999
13651
  width: "1em",
14000
13652
  height: "1em",
@@ -14015,181 +13667,52 @@ var excelIcon = /*#__PURE__*/ jsx("i", {
14015
13667
  fill: "#F6F6F6"
14016
13668
  }),
14017
13669
  /*#__PURE__*/ jsx("rect", {
14018
- x: "23",
13670
+ x: "16",
14019
13671
  y: "12",
14020
- width: "5",
14021
- height: "3",
13672
+ width: "12",
13673
+ height: "2",
14022
13674
  rx: "1",
14023
13675
  fill: "#E7E7E7"
14024
13676
  }),
14025
13677
  /*#__PURE__*/ jsx("rect", {
14026
- x: "23",
13678
+ x: "16",
14027
13679
  y: "16",
14028
- width: "5",
14029
- height: "3",
13680
+ width: "12",
13681
+ height: "2",
14030
13682
  rx: "1",
14031
13683
  fill: "#E7E7E7"
14032
13684
  }),
14033
13685
  /*#__PURE__*/ jsx("rect", {
14034
- x: "23",
13686
+ x: "16",
14035
13687
  y: "20",
14036
- width: "5",
14037
- height: "3",
14038
- rx: "1",
14039
- fill: "#E7E7E7"
14040
- }),
14041
- /*#__PURE__*/ jsx("rect", {
14042
- x: "23",
14043
- y: "24",
14044
- width: "5",
14045
- height: "3",
14046
- rx: "1",
14047
- fill: "#E7E7E7"
14048
- }),
14049
- /*#__PURE__*/ jsx("rect", {
14050
- x: "17",
14051
- y: "12",
14052
- width: "5",
14053
- height: "3",
14054
- rx: "1",
14055
- fill: "#E7E7E7"
14056
- }),
14057
- /*#__PURE__*/ jsx("rect", {
14058
- x: "17",
14059
- y: "16",
14060
- width: "5",
14061
- height: "3",
14062
- rx: "1",
14063
- fill: "#E7E7E7"
14064
- }),
14065
- /*#__PURE__*/ jsx("rect", {
14066
- x: "17",
14067
- y: "20",
14068
- width: "5",
14069
- height: "3",
14070
- rx: "1",
14071
- fill: "#E7E7E7"
14072
- }),
14073
- /*#__PURE__*/ jsx("rect", {
14074
- x: "17",
14075
- y: "24",
14076
- width: "5",
14077
- height: "3",
14078
- rx: "1",
14079
- fill: "#E7E7E7"
14080
- }),
14081
- /*#__PURE__*/ jsx("rect", {
14082
- x: "1",
14083
- y: "7",
14084
- width: "18",
14085
- height: "18",
14086
- rx: "2",
14087
- fill: "url(#paint0_linear_9_1438)"
14088
- }),
14089
- /*#__PURE__*/ jsx("path", {
14090
- d: "M9.49906 17.868L8.20306 19.896C7.87906 20.4 7.62706 20.82 7.32706 21.372H4.14706C4.79506 20.58 5.03506 20.268 5.38306 19.788L8.02306 16.08L5.77906 12.924C5.40706 12.384 5.04706 11.916 4.60306 11.388H7.71106C7.90306 11.832 8.16706 12.312 8.59906 12.972L9.51106 14.364L10.4111 12.96C10.8911 12.204 11.0951 11.844 11.2871 11.388H14.3711C13.9391 11.928 13.6511 12.3 13.2311 12.9L10.9751 16.068L13.6271 19.788C14.0111 20.328 14.3471 20.76 14.8511 21.372H11.6711C11.4431 20.94 11.2151 20.532 10.8071 19.896L9.49906 17.868Z",
14091
- fill: "white"
14092
- }),
14093
- /*#__PURE__*/ jsx("defs", {
14094
- children: /*#__PURE__*/ jsxs("linearGradient", {
14095
- id: "paint0_linear_9_1438",
14096
- x1: "10",
14097
- y1: "7",
14098
- x2: "10",
14099
- y2: "25",
14100
- gradientUnits: "userSpaceOnUse",
14101
- children: [
14102
- /*#__PURE__*/ jsx("stop", {
14103
- "stop-color": "#309A6C"
14104
- }),
14105
- /*#__PURE__*/ jsx("stop", {
14106
- offset: "1",
14107
- "stop-color": "#237347"
14108
- })
14109
- ]
14110
- })
14111
- })
14112
- ]
14113
- })
14114
- });
14115
- var pptIcon = /*#__PURE__*/ jsx("i", {
14116
- children: /*#__PURE__*/ jsxs("svg", {
14117
- width: "1em",
14118
- height: "1em",
14119
- viewBox: "0 0 32 32",
14120
- fill: "none",
14121
- xmlns: "http://www.w3.org/2000/svg",
14122
- children: [
14123
- /*#__PURE__*/ jsx("path", {
14124
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
14125
- fill: "#E1E1E1"
14126
- }),
14127
- /*#__PURE__*/ jsx("path", {
14128
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
14129
- fill: "#E0E0E0"
14130
- }),
14131
- /*#__PURE__*/ jsx("path", {
14132
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
14133
- fill: "#F6F6F6"
14134
- }),
14135
- /*#__PURE__*/ jsx("rect", {
14136
- x: "17",
14137
- y: "25",
14138
- width: "11",
13688
+ width: "12",
14139
13689
  height: "2",
14140
13690
  rx: "1",
14141
13691
  fill: "#E7E7E7"
14142
13692
  }),
14143
13693
  /*#__PURE__*/ jsx("rect", {
14144
- x: "17",
14145
- y: "22",
14146
- width: "11",
13694
+ x: "16",
13695
+ y: "24",
13696
+ width: "9",
14147
13697
  height: "2",
14148
13698
  rx: "1",
14149
13699
  fill: "#E7E7E7"
14150
13700
  }),
14151
- /*#__PURE__*/ jsx("path", {
14152
- d: "M21.2305 12.4175C19.796 12.6232 18.6928 13.854 18.6924 15.3452C18.6924 16.9808 20.0187 18.3071 21.6543 18.3071C23.1457 18.3069 24.3754 17.2037 24.5811 15.769H26.2871C26.0734 18.1409 24.0817 19.9993 21.6543 19.9995C19.0842 19.9995 17.0002 17.9162 17 15.3462C17.0002 12.919 18.859 10.9266 21.2305 10.7124V12.4175Z",
14153
- fill: "#E7E7E7"
14154
- }),
14155
- /*#__PURE__*/ jsx("mask", {
14156
- id: "mask0_9_1453",
14157
- style: "mask-type:alpha",
14158
- maskUnits: "userSpaceOnUse",
14159
- x: "22",
14160
- y: "9",
14161
- width: "6",
14162
- height: "6",
14163
- children: /*#__PURE__*/ jsx("rect", {
14164
- x: "22.9223",
14165
- y: "9",
14166
- width: "5.07692",
14167
- height: "5.07692",
14168
- fill: "#E7E7E7"
14169
- })
14170
- }),
14171
- /*#__PURE__*/ jsx("g", {
14172
- mask: "url(#mask0_9_1453)",
14173
- children: /*#__PURE__*/ jsx("path", {
14174
- d: "M22.5001 9.84619C25.0702 9.84643 27.1534 11.9304 27.1534 14.5005C27.1532 17.0704 25.07 19.1536 22.5001 19.1538C19.93 19.1538 17.8461 17.0705 17.8458 14.5005C17.8458 11.9302 19.9299 9.84619 22.5001 9.84619ZM21.6534 12.3843C20.0179 12.3843 18.6915 13.7106 18.6915 15.3462C18.6915 16.9818 20.0179 18.3081 21.6534 18.3081C23.2891 18.3081 24.6154 16.9818 24.6154 15.3462C24.6154 13.7106 23.2891 12.3843 21.6534 12.3843Z",
14175
- fill: "#E7E7E7"
14176
- })
14177
- }),
14178
13701
  /*#__PURE__*/ jsx("rect", {
14179
13702
  x: "1",
14180
13703
  y: "7",
14181
13704
  width: "18",
14182
13705
  height: "18",
14183
13706
  rx: "2",
14184
- fill: "url(#paint0_linear_9_1453)"
13707
+ fill: "url(#paint0_linear_9_1478)"
14185
13708
  }),
14186
13709
  /*#__PURE__*/ jsx("path", {
14187
- d: "M8.74783 21.372H6.16783C6.23983 20.844 6.26383 20.304 6.26383 19.596V13.104C6.26383 12.456 6.23983 11.916 6.16783 11.352C6.73183 11.376 7.16383 11.388 7.93183 11.388H10.5598C12.9358 11.388 14.2438 12.528 14.2438 14.616C14.2438 16.752 12.8758 18.024 10.5478 18.024H8.65183V19.56C8.65183 20.268 8.68783 20.856 8.74783 21.372ZM8.65183 15.984H10.4398C11.2798 15.984 11.7718 15.516 11.7718 14.688C11.7718 13.86 11.3038 13.428 10.4398 13.428H8.65183V15.984Z",
13710
+ d: "M5.56291 14.256V17.28C5.56291 17.64 5.57491 17.904 5.61091 18.186H4.28491C4.32091 17.904 4.33291 17.658 4.33291 17.28V14.256H3.62491C3.24691 14.256 3.14491 14.262 2.71891 14.298V13.152C2.91691 13.176 3.24691 13.194 3.61291 13.194H6.24091C6.66091 13.194 6.90091 13.182 7.17691 13.152V14.298C6.90691 14.268 6.67291 14.256 6.24091 14.256H5.56291ZM9.99953 16.434L9.35153 17.448C9.18953 17.7 9.06353 17.91 8.91353 18.186H7.32353C7.64753 17.79 7.76753 17.634 7.94153 17.394L9.26153 15.54L8.13953 13.962C7.95353 13.692 7.77353 13.458 7.55153 13.194H9.10553C9.20153 13.416 9.33353 13.656 9.54953 13.986L10.0055 14.682L10.4555 13.98C10.6955 13.602 10.7975 13.422 10.8935 13.194H12.4355C12.2195 13.464 12.0755 13.65 11.8655 13.95L10.7375 15.534L12.0635 17.394C12.2555 17.664 12.4235 17.88 12.6755 18.186H11.0855C10.9715 17.97 10.8575 17.766 10.6535 17.448L9.99953 16.434ZM15.6645 14.256V17.28C15.6645 17.64 15.6765 17.904 15.7125 18.186H14.3865C14.4225 17.904 14.4345 17.658 14.4345 17.28V14.256H13.7265C13.3485 14.256 13.2465 14.262 12.8205 14.298V13.152C13.0185 13.176 13.3485 13.194 13.7145 13.194H16.3425C16.7625 13.194 17.0025 13.182 17.2785 13.152V14.298C17.0085 14.268 16.7745 14.256 16.3425 14.256H15.6645Z",
14188
13711
  fill: "white"
14189
13712
  }),
14190
13713
  /*#__PURE__*/ jsx("defs", {
14191
13714
  children: /*#__PURE__*/ jsxs("linearGradient", {
14192
- id: "paint0_linear_9_1453",
13715
+ id: "paint0_linear_9_1478",
14193
13716
  x1: "10",
14194
13717
  y1: "7",
14195
13718
  x2: "10",
@@ -14197,11 +13720,11 @@ var pptIcon = /*#__PURE__*/ jsx("i", {
14197
13720
  gradientUnits: "userSpaceOnUse",
14198
13721
  children: [
14199
13722
  /*#__PURE__*/ jsx("stop", {
14200
- "stop-color": "#FF8642"
13723
+ "stop-color": "#B5B5B5"
14201
13724
  }),
14202
13725
  /*#__PURE__*/ jsx("stop", {
14203
13726
  offset: "1",
14204
- "stop-color": "#EF673B"
13727
+ "stop-color": "#434343"
14205
13728
  })
14206
13729
  ]
14207
13730
  })
@@ -14209,7 +13732,8 @@ var pptIcon = /*#__PURE__*/ jsx("i", {
14209
13732
  ]
14210
13733
  })
14211
13734
  });
14212
- var pdfIcon = /*#__PURE__*/ jsx("i", {
13735
+ // 未知文件也用这个icon
13736
+ var chmIcon = /*#__PURE__*/ jsx("i", {
14213
13737
  children: /*#__PURE__*/ jsxs("svg", {
14214
13738
  width: "1em",
14215
13739
  height: "1em",
@@ -14267,49 +13791,35 @@ var pdfIcon = /*#__PURE__*/ jsx("i", {
14267
13791
  width: "18",
14268
13792
  height: "18",
14269
13793
  rx: "2",
14270
- fill: "url(#paint0_linear_9_1414)"
13794
+ fill: "url(#paint0_linear_9_1403)"
14271
13795
  }),
14272
- /*#__PURE__*/ jsx("g", {
14273
- "clip-path": "url(#clip0_9_1414)",
14274
- children: /*#__PURE__*/ jsx("path", {
14275
- d: "M14.3333 18.9667C13.4333 18.9 12.5667 18.5667 11.8667 17.9667C10.5 18.2667 9.2 18.7 7.9 19.2334C6.86667 21.0667 5.9 22 5.06667 22C4.9 22 4.7 21.9667 4.56667 21.8667C4.2 21.7 4 21.3334 4 20.9667C4 20.6667 4.06667 19.8334 7.23333 18.4667C7.96667 17.1334 8.53333 15.7667 9 14.3334C8.6 13.5334 7.73333 11.5667 8.33333 10.5667C8.53333 10.2 8.93333 10 9.36667 10.0334C9.7 10.0334 10.0333 10.2 10.2333 10.4667C10.6667 11.0667 10.6333 12.3334 10.0667 14.2C10.6 15.2 11.3 16.1 12.1333 16.8667C12.8333 16.7334 13.5333 16.6334 14.2333 16.6334C15.8 16.6667 16.0333 17.4 16 17.8334C16 18.9667 14.9 18.9667 14.3333 18.9667ZM5 21.0334L5.1 21C5.56667 20.8334 5.93333 20.5 6.2 20.0667C5.7 20.2667 5.3 20.6 5 21.0334ZM9.43333 11.0334H9.33333C9.3 11.0334 9.23333 11.0334 9.2 11.0667C9.06667 11.6334 9.16667 12.2334 9.4 12.7667C9.6 12.2 9.6 11.6 9.43333 11.0334ZM9.66667 15.8667L9.63333 15.9334L9.6 15.9C9.3 16.6667 8.96667 17.4334 8.6 18.1667L8.66667 18.1334V18.2C9.4 17.9334 10.2 17.7 10.9333 17.5334L10.9 17.5H11C10.5 17 10.0333 16.4334 9.66667 15.8667ZM14.2 17.6334C13.9 17.6334 13.6333 17.6334 13.3333 17.7C13.6667 17.8667 14 17.9334 14.3333 17.9667C14.5667 18 14.8 17.9667 15 17.9C15 17.8 14.8667 17.6334 14.2 17.6334Z",
14276
- fill: "white"
14277
- })
13796
+ /*#__PURE__*/ jsx("path", {
13797
+ d: "M10.828 18.348H8.596C8.62 18.156 8.62 18.144 8.62 17.796C8.62 16.968 8.764 16.488 9.148 16.02C9.436 15.684 9.532 15.612 10.384 15.096C10.972 14.748 11.164 14.496 11.164 14.1C11.164 13.536 10.744 13.2 10.024 13.2C9.484 13.2 9.088 13.392 8.86 13.764C8.74 13.956 8.692 14.124 8.644 14.496L6.172 14.268C6.292 13.404 6.484 12.936 6.94 12.432C7.636 11.64 8.704 11.232 10.084 11.232C12.292 11.232 13.672 12.276 13.672 13.932C13.672 14.664 13.432 15.228 12.928 15.696C12.64 15.96 12.52 16.044 11.476 16.692C10.972 17.016 10.792 17.328 10.792 17.88C10.792 18.024 10.804 18.156 10.828 18.348ZM8.512 19.164H10.924V21.432H8.512V19.164Z",
13798
+ fill: "white"
14278
13799
  }),
14279
- /*#__PURE__*/ jsxs("defs", {
14280
- children: [
14281
- /*#__PURE__*/ jsxs("linearGradient", {
14282
- id: "paint0_linear_9_1414",
14283
- x1: "10",
14284
- y1: "7",
14285
- x2: "10",
14286
- y2: "25",
14287
- gradientUnits: "userSpaceOnUse",
14288
- children: [
14289
- /*#__PURE__*/ jsx("stop", {
14290
- "stop-color": "#FF7675"
14291
- }),
14292
- /*#__PURE__*/ jsx("stop", {
14293
- offset: "1",
14294
- "stop-color": "#F73535"
14295
- })
14296
- ]
14297
- }),
14298
- /*#__PURE__*/ jsx("clipPath", {
14299
- id: "clip0_9_1414",
14300
- children: /*#__PURE__*/ jsx("rect", {
14301
- width: "12",
14302
- height: "12",
14303
- fill: "white",
14304
- transform: "translate(4 10)"
13800
+ /*#__PURE__*/ jsx("defs", {
13801
+ children: /*#__PURE__*/ jsxs("linearGradient", {
13802
+ id: "paint0_linear_9_1403",
13803
+ x1: "10",
13804
+ y1: "7",
13805
+ x2: "10",
13806
+ y2: "25",
13807
+ gradientUnits: "userSpaceOnUse",
13808
+ children: [
13809
+ /*#__PURE__*/ jsx("stop", {
13810
+ "stop-color": "#B5B5B5"
13811
+ }),
13812
+ /*#__PURE__*/ jsx("stop", {
13813
+ offset: "1",
13814
+ "stop-color": "#434343"
14305
13815
  })
14306
- })
14307
- ]
13816
+ ]
13817
+ })
14308
13818
  })
14309
13819
  ]
14310
13820
  })
14311
13821
  });
14312
- var txtIcon = /*#__PURE__*/ jsx("i", {
13822
+ var hdxIcon = /*#__PURE__*/ jsx("i", {
14313
13823
  children: /*#__PURE__*/ jsxs("svg", {
14314
13824
  width: "1em",
14315
13825
  height: "1em",
@@ -14367,15 +13877,15 @@ var txtIcon = /*#__PURE__*/ jsx("i", {
14367
13877
  width: "18",
14368
13878
  height: "18",
14369
13879
  rx: "2",
14370
- fill: "url(#paint0_linear_9_1478)"
13880
+ fill: "url(#paint0_linear_9_1489)"
14371
13881
  }),
14372
13882
  /*#__PURE__*/ jsx("path", {
14373
- d: "M5.56291 14.256V17.28C5.56291 17.64 5.57491 17.904 5.61091 18.186H4.28491C4.32091 17.904 4.33291 17.658 4.33291 17.28V14.256H3.62491C3.24691 14.256 3.14491 14.262 2.71891 14.298V13.152C2.91691 13.176 3.24691 13.194 3.61291 13.194H6.24091C6.66091 13.194 6.90091 13.182 7.17691 13.152V14.298C6.90691 14.268 6.67291 14.256 6.24091 14.256H5.56291ZM9.99953 16.434L9.35153 17.448C9.18953 17.7 9.06353 17.91 8.91353 18.186H7.32353C7.64753 17.79 7.76753 17.634 7.94153 17.394L9.26153 15.54L8.13953 13.962C7.95353 13.692 7.77353 13.458 7.55153 13.194H9.10553C9.20153 13.416 9.33353 13.656 9.54953 13.986L10.0055 14.682L10.4555 13.98C10.6955 13.602 10.7975 13.422 10.8935 13.194H12.4355C12.2195 13.464 12.0755 13.65 11.8655 13.95L10.7375 15.534L12.0635 17.394C12.2555 17.664 12.4235 17.88 12.6755 18.186H11.0855C10.9715 17.97 10.8575 17.766 10.6535 17.448L9.99953 16.434ZM15.6645 14.256V17.28C15.6645 17.64 15.6765 17.904 15.7125 18.186H14.3865C14.4225 17.904 14.4345 17.658 14.4345 17.28V14.256H13.7265C13.3485 14.256 13.2465 14.262 12.8205 14.298V13.152C13.0185 13.176 13.3485 13.194 13.7145 13.194H16.3425C16.7625 13.194 17.0025 13.182 17.2785 13.152V14.298C17.0085 14.268 16.7745 14.256 16.3425 14.256H15.6645Z",
13883
+ d: "M5.83898 13.194H7.12898C7.09298 13.44 7.08098 13.662 7.08098 14.082V17.298C7.08098 17.688 7.09298 17.892 7.12898 18.186H5.83898C5.87498 17.934 5.88698 17.712 5.88698 17.298V16.134H3.86498V17.298C3.86498 17.688 3.87698 17.916 3.91298 18.186H2.62298C2.65898 17.94 2.67098 17.718 2.67098 17.298V14.082C2.67098 13.668 2.65898 13.452 2.62298 13.194H3.91298C3.87698 13.476 3.86498 13.71 3.86498 14.082V15.078H5.88698V14.082C5.88698 13.668 5.87498 13.428 5.83898 13.194ZM7.93284 17.328V14.058C7.93284 13.65 7.92084 13.452 7.87884 13.176C8.11884 13.188 8.26884 13.194 8.76684 13.194H10.0208C10.7588 13.194 11.3528 13.398 11.7548 13.788C12.1928 14.22 12.4148 14.85 12.4148 15.648C12.4148 16.47 12.1748 17.13 11.7188 17.586C11.3168 17.982 10.7468 18.186 10.0328 18.186H8.76684C8.30484 18.186 8.13684 18.192 7.88484 18.204C7.92084 17.94 7.93284 17.742 7.93284 17.328ZM9.12084 17.136H9.92484C10.3148 17.136 10.5908 17.034 10.8068 16.818C11.0528 16.566 11.1848 16.164 11.1848 15.666C11.1848 15.156 11.0708 14.784 10.8368 14.55C10.6268 14.34 10.3388 14.244 9.90684 14.244H9.12084V17.136ZM15.0181 16.434L14.3701 17.448C14.2081 17.7 14.0821 17.91 13.9321 18.186H12.3421C12.6661 17.79 12.7861 17.634 12.9601 17.394L14.2801 15.54L13.1581 13.962C12.9721 13.692 12.7921 13.458 12.5701 13.194H14.1241C14.2201 13.416 14.3521 13.656 14.5681 13.986L15.0241 14.682L15.4741 13.98C15.7141 13.602 15.8161 13.422 15.9121 13.194H17.4541C17.2381 13.464 17.0941 13.65 16.8841 13.95L15.7561 15.534L17.0821 17.394C17.2741 17.664 17.4421 17.88 17.6941 18.186H16.1041C15.9901 17.97 15.8761 17.766 15.6721 17.448L15.0181 16.434Z",
14374
13884
  fill: "white"
14375
13885
  }),
14376
13886
  /*#__PURE__*/ jsx("defs", {
14377
13887
  children: /*#__PURE__*/ jsxs("linearGradient", {
14378
- id: "paint0_linear_9_1478",
13888
+ id: "paint0_linear_9_1489",
14379
13889
  x1: "10",
14380
13890
  y1: "7",
14381
13891
  x2: "10",
@@ -14395,8 +13905,7 @@ var txtIcon = /*#__PURE__*/ jsx("i", {
14395
13905
  ]
14396
13906
  })
14397
13907
  });
14398
- // 未知文件也用这个icon
14399
- var chmIcon = /*#__PURE__*/ jsx("i", {
13908
+ var mdIcon = /*#__PURE__*/ jsx("i", {
14400
13909
  children: /*#__PURE__*/ jsxs("svg", {
14401
13910
  width: "1em",
14402
13911
  height: "1em",
@@ -14454,15 +13963,19 @@ var chmIcon = /*#__PURE__*/ jsx("i", {
14454
13963
  width: "18",
14455
13964
  height: "18",
14456
13965
  rx: "2",
14457
- fill: "url(#paint0_linear_9_1403)"
13966
+ fill: "url(#paint0_linear_9_1426)"
14458
13967
  }),
14459
13968
  /*#__PURE__*/ jsx("path", {
14460
- d: "M10.828 18.348H8.596C8.62 18.156 8.62 18.144 8.62 17.796C8.62 16.968 8.764 16.488 9.148 16.02C9.436 15.684 9.532 15.612 10.384 15.096C10.972 14.748 11.164 14.496 11.164 14.1C11.164 13.536 10.744 13.2 10.024 13.2C9.484 13.2 9.088 13.392 8.86 13.764C8.74 13.956 8.692 14.124 8.644 14.496L6.172 14.268C6.292 13.404 6.484 12.936 6.94 12.432C7.636 11.64 8.704 11.232 10.084 11.232C12.292 11.232 13.672 12.276 13.672 13.932C13.672 14.664 13.432 15.228 12.928 15.696C12.64 15.96 12.52 16.044 11.476 16.692C10.972 17.016 10.792 17.328 10.792 17.88C10.792 18.024 10.804 18.156 10.828 18.348ZM8.512 19.164H10.924V21.432H8.512V19.164Z",
13969
+ d: "M11.0301 21.372H8.94208C8.88208 20.952 8.75008 20.508 8.42608 19.596L7.32208 16.404C7.31008 16.344 6.95008 15.228 6.91408 15.132C6.78208 14.7 6.78208 14.7 6.72208 14.532C6.79408 15.288 6.84208 16.272 6.84208 16.908V19.512C6.84208 20.34 6.86608 20.868 6.93808 21.372H4.57408C4.64608 20.832 4.67008 20.328 4.67008 19.512V13.26C4.67008 12.54 4.63408 11.904 4.57408 11.388H7.74208C7.82608 11.904 7.92208 12.288 8.19808 13.08L9.99808 18.252L11.7861 13.08C12.0621 12.276 12.1581 11.892 12.2301 11.388H15.4101C15.3381 11.964 15.3141 12.456 15.3141 13.26V19.512C15.3141 20.424 15.3381 20.892 15.4101 21.372H13.0461C13.1181 20.82 13.1421 20.364 13.1421 19.512V16.896C13.1421 16.608 13.1781 15.708 13.2021 15.336C13.2381 14.7 13.2381 14.7 13.2501 14.52C12.9861 15.456 12.8661 15.888 12.7101 16.32L11.5461 19.608C11.2461 20.46 11.0901 20.988 11.0301 21.372Z",
13970
+ fill: "white"
13971
+ }),
13972
+ /*#__PURE__*/ jsx("path", {
13973
+ d: "M14.3008 23L12.1357 20.25L16.4658 20.25L14.3008 23Z",
14461
13974
  fill: "white"
14462
13975
  }),
14463
13976
  /*#__PURE__*/ jsx("defs", {
14464
13977
  children: /*#__PURE__*/ jsxs("linearGradient", {
14465
- id: "paint0_linear_9_1403",
13978
+ id: "paint0_linear_9_1426",
14466
13979
  x1: "10",
14467
13980
  y1: "7",
14468
13981
  x2: "10",
@@ -14482,13 +13995,38 @@ var chmIcon = /*#__PURE__*/ jsx("i", {
14482
13995
  ]
14483
13996
  })
14484
13997
  });
14485
- var hdxIcon = /*#__PURE__*/ jsx("i", {
13998
+ // zip rar
13999
+ var zipIcon = /*#__PURE__*/ jsx("i", {
14486
14000
  children: /*#__PURE__*/ jsxs("svg", {
14487
14001
  width: "1em",
14488
14002
  height: "1em",
14489
14003
  viewBox: "0 0 32 32",
14490
14004
  fill: "none",
14491
14005
  xmlns: "http://www.w3.org/2000/svg",
14006
+ children: [
14007
+ /*#__PURE__*/ jsx("path", {
14008
+ d: "M20.775 1H7.73409C5.11934 1 3 3.11967 3 5.73409V26.2659C3 28.8807 5.11967 31 7.73409 31H23.9964C26.6112 31 28.7305 28.8803 28.7305 26.2659V8.95514C28.7305 7.88894 28.3071 6.86662 27.5531 6.11294L23.6172 2.17707C22.8634 1.42339 21.841 0.999991 20.775 1Z",
14009
+ fill: "#FFC757"
14010
+ }),
14011
+ /*#__PURE__*/ jsx("path", {
14012
+ d: "M8.88959 5.42124H11.2853C11.5486 5.42124 11.7623 5.20753 11.7623 4.94425V2.54856C11.7623 2.28494 11.5486 2.07157 11.2853 2.07157H8.88959C8.62631 2.07157 8.4126 2.28528 8.4126 2.54856V4.94425C8.4126 5.20753 8.62631 5.42124 8.88959 5.42124ZM14.6349 5.42124H12.2393C11.976 5.42124 11.7623 5.63495 11.7623 5.89824V8.29392C11.7623 8.55754 11.976 8.77091 12.2393 8.77091H14.6349C14.8982 8.77091 15.1119 8.55721 15.1119 8.29392V5.89824C15.1119 5.63495 14.8982 5.42124 14.6349 5.42124ZM8.88959 12.1206H11.2853C11.5486 12.1206 11.7623 11.9069 11.7623 11.6436V9.24791C11.7623 8.98429 11.5486 8.77091 11.2853 8.77091H8.88959C8.62631 8.77091 8.4126 8.98462 8.4126 9.24791V11.6436C8.4126 11.9069 8.62631 12.1206 8.88959 12.1206ZM14.6349 12.1206H12.2393C11.976 12.1206 11.7623 12.3343 11.7623 12.5976V14.9933C11.7623 15.2569 11.976 15.4703 12.2393 15.4703H14.6349C14.8982 15.4703 15.1119 15.2565 15.1119 14.9933V12.5976C15.1119 12.3343 14.8982 12.1206 14.6349 12.1206ZM13.9409 17.3196H9.44798C8.87619 17.3196 8.4126 17.7832 8.4126 18.355V23.5631C8.4126 24.1349 8.87619 24.5985 9.44798 24.5985H13.9409C14.5127 24.5985 14.9763 24.1349 14.9763 23.5631V18.355C14.9763 17.7832 14.5127 17.3196 13.9409 17.3196ZM13.7758 22.8328C13.7758 23.2924 13.4033 23.6649 12.9437 23.6649H10.4448C9.98527 23.6649 9.61279 23.2924 9.61279 22.8328V21.9164C9.61279 21.4568 9.98527 21.0843 10.4448 21.0843H12.9437C13.4033 21.0843 13.7758 21.4568 13.7758 21.9164V22.8328ZM27.5546 6.11261L23.6188 2.17675C23.0541 1.61209 22.334 1.22843 21.5503 1.07471V5.49225C21.5503 6.89476 22.6872 8.03164 24.0897 8.03164H28.6242C28.4528 7.30507 28.0824 6.64058 27.5546 6.11261Z",
14013
+ fill: "#F79F2B"
14014
+ }),
14015
+ /*#__PURE__*/ jsx("path", {
14016
+ d: "M8.88959 5.01935H11.2853C11.5486 5.01935 11.7623 4.80564 11.7623 4.54236V2.14667C11.7623 1.88305 11.5486 1.66968 11.2853 1.66968H8.88959C8.62631 1.66968 8.4126 1.88339 8.4126 2.14667V4.54236C8.4126 4.80564 8.62631 5.01935 8.88959 5.01935ZM14.6349 5.01935H12.2393C11.976 5.01935 11.7623 5.23306 11.7623 5.49634V7.89203C11.7623 8.15565 11.976 8.36902 12.2393 8.36902H14.6349C14.8982 8.36902 15.1119 8.15531 15.1119 7.89203V5.49634C15.1119 5.23306 14.8982 5.01935 14.6349 5.01935ZM8.88959 11.7187H11.2853C11.5486 11.7187 11.7623 11.505 11.7623 11.2417V8.84602C11.7623 8.5824 11.5486 8.36902 11.2853 8.36902H8.88959C8.62631 8.36902 8.4126 8.58273 8.4126 8.84602V11.2417C8.4126 11.505 8.62631 11.7187 8.88959 11.7187ZM14.6349 11.7187H12.2393C11.976 11.7187 11.7623 11.9324 11.7623 12.1957V14.5914C11.7623 14.855 11.976 15.0684 12.2393 15.0684H14.6349C14.8982 15.0684 15.1119 14.8547 15.1119 14.5914V12.1957C15.1119 11.9324 14.8982 11.7187 14.6349 11.7187ZM13.9409 16.9177H9.44798C8.87619 16.9177 8.4126 17.3813 8.4126 17.9531V23.1612C8.4126 23.733 8.87619 24.1966 9.44798 24.1966H13.9409C14.5127 24.1966 14.9763 23.733 14.9763 23.1612V17.9531C14.9763 17.3813 14.5127 16.9177 13.9409 16.9177ZM13.7758 22.4309C13.7758 22.8905 13.4033 23.263 12.9437 23.263H10.4448C9.98527 23.263 9.61279 22.8905 9.61279 22.4309V21.5145C9.61279 21.0549 9.98527 20.6824 10.4448 20.6824H12.9437C13.4033 20.6824 13.7758 21.0549 13.7758 21.5145V22.4309Z",
14017
+ fill: "white"
14018
+ })
14019
+ ]
14020
+ })
14021
+ });
14022
+ // 图片
14023
+ var imageIcon = /*#__PURE__*/ jsx("i", {
14024
+ children: /*#__PURE__*/ jsxs("svg", {
14025
+ xmlns: "http://www.w3.org/2000/svg",
14026
+ width: "1em",
14027
+ height: "1em",
14028
+ viewBox: "0 0 32 32",
14029
+ fill: "none",
14492
14030
  children: [
14493
14031
  /*#__PURE__*/ jsx("path", {
14494
14032
  d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
@@ -14500,7 +14038,7 @@ var hdxIcon = /*#__PURE__*/ jsx("i", {
14500
14038
  }),
14501
14039
  /*#__PURE__*/ jsx("path", {
14502
14040
  d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
14503
- fill: "#F6F6F6"
14041
+ fill: "white"
14504
14042
  }),
14505
14043
  /*#__PURE__*/ jsx("rect", {
14506
14044
  x: "16",
@@ -14534,346 +14072,856 @@ var hdxIcon = /*#__PURE__*/ jsx("i", {
14534
14072
  rx: "1",
14535
14073
  fill: "#E7E7E7"
14536
14074
  }),
14537
- /*#__PURE__*/ jsx("rect", {
14538
- x: "1",
14539
- y: "7",
14540
- width: "18",
14541
- height: "18",
14542
- rx: "2",
14543
- fill: "url(#paint0_linear_9_1489)"
14075
+ /*#__PURE__*/ jsx("path", {
14076
+ d: "M3.25 7H16.75C17.9927 7 19 8.00738 19 9.25V22.75C19 23.9927 17.9927 25 16.75 25H3.25C2.00738 25 1 23.9927 1 22.75V9.25C1 8.00738 2.00738 7 3.25 7Z",
14077
+ fill: "#DFECFD"
14544
14078
  }),
14545
14079
  /*#__PURE__*/ jsx("path", {
14546
- d: "M5.83898 13.194H7.12898C7.09298 13.44 7.08098 13.662 7.08098 14.082V17.298C7.08098 17.688 7.09298 17.892 7.12898 18.186H5.83898C5.87498 17.934 5.88698 17.712 5.88698 17.298V16.134H3.86498V17.298C3.86498 17.688 3.87698 17.916 3.91298 18.186H2.62298C2.65898 17.94 2.67098 17.718 2.67098 17.298V14.082C2.67098 13.668 2.65898 13.452 2.62298 13.194H3.91298C3.87698 13.476 3.86498 13.71 3.86498 14.082V15.078H5.88698V14.082C5.88698 13.668 5.87498 13.428 5.83898 13.194ZM7.93284 17.328V14.058C7.93284 13.65 7.92084 13.452 7.87884 13.176C8.11884 13.188 8.26884 13.194 8.76684 13.194H10.0208C10.7588 13.194 11.3528 13.398 11.7548 13.788C12.1928 14.22 12.4148 14.85 12.4148 15.648C12.4148 16.47 12.1748 17.13 11.7188 17.586C11.3168 17.982 10.7468 18.186 10.0328 18.186H8.76684C8.30484 18.186 8.13684 18.192 7.88484 18.204C7.92084 17.94 7.93284 17.742 7.93284 17.328ZM9.12084 17.136H9.92484C10.3148 17.136 10.5908 17.034 10.8068 16.818C11.0528 16.566 11.1848 16.164 11.1848 15.666C11.1848 15.156 11.0708 14.784 10.8368 14.55C10.6268 14.34 10.3388 14.244 9.90684 14.244H9.12084V17.136ZM15.0181 16.434L14.3701 17.448C14.2081 17.7 14.0821 17.91 13.9321 18.186H12.3421C12.6661 17.79 12.7861 17.634 12.9601 17.394L14.2801 15.54L13.1581 13.962C12.9721 13.692 12.7921 13.458 12.5701 13.194H14.1241C14.2201 13.416 14.3521 13.656 14.5681 13.986L15.0241 14.682L15.4741 13.98C15.7141 13.602 15.8161 13.422 15.9121 13.194H17.4541C17.2381 13.464 17.0941 13.65 16.8841 13.95L15.7561 15.534L17.0821 17.394C17.2741 17.664 17.4421 17.88 17.6941 18.186H16.1041C15.9901 17.97 15.8761 17.766 15.6721 17.448L15.0181 16.434Z",
14547
- fill: "white"
14080
+ d: "M4.1885 12.2232C4.1885 12.5642 4.32115 12.8912 4.55726 13.1324C4.79337 13.3735 5.1136 13.5089 5.44751 13.5089C5.78142 13.5089 6.10166 13.3735 6.33776 13.1324C6.57387 12.8912 6.70652 12.5642 6.70652 12.2232C6.70652 11.8822 6.57387 11.5552 6.33776 11.3141C6.10166 11.073 5.78142 10.9375 5.44751 10.9375C5.1136 10.9375 4.79337 11.073 4.55726 11.3141C4.32115 11.5552 4.1885 11.8822 4.1885 12.2232ZM5.04599 18.649C5.19115 18.3929 5.51204 18.3055 5.76279 18.4537C5.84215 18.5006 5.90808 18.568 5.954 18.649L7.92933 22.1334C8.07448 22.3894 7.98887 22.7172 7.73812 22.8654C7.65827 22.9126 7.56763 22.9375 7.47535 22.9375H3.52453C3.23486 22.9375 2.99995 22.6976 3 22.4018C3 22.3075 3.02434 22.215 3.07056 22.1334L5.04599 18.649Z",
14081
+ fill: "#4988FD"
14548
14082
  }),
14549
- /*#__PURE__*/ jsx("defs", {
14550
- children: /*#__PURE__*/ jsxs("linearGradient", {
14551
- id: "paint0_linear_9_1489",
14552
- x1: "10",
14553
- y1: "7",
14554
- x2: "10",
14555
- y2: "25",
14556
- gradientUnits: "userSpaceOnUse",
14557
- children: [
14558
- /*#__PURE__*/ jsx("stop", {
14559
- "stop-color": "#B5B5B5"
14560
- }),
14561
- /*#__PURE__*/ jsx("stop", {
14562
- offset: "1",
14563
- "stop-color": "#434343"
14564
- })
14565
- ]
14566
- })
14083
+ /*#__PURE__*/ jsx("path", {
14084
+ d: "M11.4951 15.2027C11.6571 14.9482 12.0146 14.8618 12.2935 15.0098C12.3811 15.0563 12.4539 15.1228 12.5048 15.2027L16.9208 22.1367C17.0829 22.3912 16.9883 22.7174 16.7094 22.8653C16.6203 22.9126 16.5191 22.9375 16.416 22.9375H7.58396C7.26144 22.9375 7 22.6989 7 22.4045C7 22.3105 7.02728 22.2181 7.07907 22.1367L11.4951 15.2027Z",
14085
+ fill: "#4988FD"
14567
14086
  })
14568
14087
  ]
14569
14088
  })
14570
14089
  });
14571
- var mdIcon = /*#__PURE__*/ jsx("i", {
14572
- children: /*#__PURE__*/ jsxs("svg", {
14573
- width: "1em",
14574
- height: "1em",
14575
- viewBox: "0 0 32 32",
14576
- fill: "none",
14577
- xmlns: "http://www.w3.org/2000/svg",
14578
- children: [
14579
- /*#__PURE__*/ jsx("path", {
14580
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
14581
- fill: "#E1E1E1"
14582
- }),
14583
- /*#__PURE__*/ jsx("path", {
14584
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
14585
- fill: "#E0E0E0"
14586
- }),
14587
- /*#__PURE__*/ jsx("path", {
14588
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
14589
- fill: "#F6F6F6"
14590
- }),
14591
- /*#__PURE__*/ jsx("rect", {
14592
- x: "16",
14593
- y: "12",
14594
- width: "12",
14595
- height: "2",
14596
- rx: "1",
14597
- fill: "#E7E7E7"
14598
- }),
14599
- /*#__PURE__*/ jsx("rect", {
14600
- x: "16",
14601
- y: "16",
14602
- width: "12",
14603
- height: "2",
14604
- rx: "1",
14605
- fill: "#E7E7E7"
14606
- }),
14607
- /*#__PURE__*/ jsx("rect", {
14608
- x: "16",
14609
- y: "20",
14610
- width: "12",
14611
- height: "2",
14612
- rx: "1",
14613
- fill: "#E7E7E7"
14614
- }),
14615
- /*#__PURE__*/ jsx("rect", {
14616
- x: "16",
14617
- y: "24",
14618
- width: "9",
14619
- height: "2",
14620
- rx: "1",
14621
- fill: "#E7E7E7"
14622
- }),
14623
- /*#__PURE__*/ jsx("rect", {
14624
- x: "1",
14625
- y: "7",
14626
- width: "18",
14627
- height: "18",
14628
- rx: "2",
14629
- fill: "url(#paint0_linear_9_1426)"
14630
- }),
14631
- /*#__PURE__*/ jsx("path", {
14632
- d: "M11.0301 21.372H8.94208C8.88208 20.952 8.75008 20.508 8.42608 19.596L7.32208 16.404C7.31008 16.344 6.95008 15.228 6.91408 15.132C6.78208 14.7 6.78208 14.7 6.72208 14.532C6.79408 15.288 6.84208 16.272 6.84208 16.908V19.512C6.84208 20.34 6.86608 20.868 6.93808 21.372H4.57408C4.64608 20.832 4.67008 20.328 4.67008 19.512V13.26C4.67008 12.54 4.63408 11.904 4.57408 11.388H7.74208C7.82608 11.904 7.92208 12.288 8.19808 13.08L9.99808 18.252L11.7861 13.08C12.0621 12.276 12.1581 11.892 12.2301 11.388H15.4101C15.3381 11.964 15.3141 12.456 15.3141 13.26V19.512C15.3141 20.424 15.3381 20.892 15.4101 21.372H13.0461C13.1181 20.82 13.1421 20.364 13.1421 19.512V16.896C13.1421 16.608 13.1781 15.708 13.2021 15.336C13.2381 14.7 13.2381 14.7 13.2501 14.52C12.9861 15.456 12.8661 15.888 12.7101 16.32L11.5461 19.608C11.2461 20.46 11.0901 20.988 11.0301 21.372Z",
14633
- fill: "white"
14634
- }),
14635
- /*#__PURE__*/ jsx("path", {
14636
- d: "M14.3008 23L12.1357 20.25L16.4658 20.25L14.3008 23Z",
14637
- fill: "white"
14638
- }),
14639
- /*#__PURE__*/ jsx("defs", {
14640
- children: /*#__PURE__*/ jsxs("linearGradient", {
14641
- id: "paint0_linear_9_1426",
14642
- x1: "10",
14643
- y1: "7",
14644
- x2: "10",
14645
- y2: "25",
14646
- gradientUnits: "userSpaceOnUse",
14090
+ var fileIconRender = function(suffix1, customRender) {
14091
+ // 存在自定义渲染 且配置啦返回的node 则返回
14092
+ if (customRender) {
14093
+ var node = customRender(suffix1);
14094
+ if (node) return node;
14095
+ }
14096
+ switch(suffix1){
14097
+ case "pdf":
14098
+ return pdfIcon;
14099
+ case "ppt":
14100
+ return pptIcon;
14101
+ case "pptx":
14102
+ return pptIcon;
14103
+ case "doc":
14104
+ return wordIcon;
14105
+ case "docx":
14106
+ return wordIcon;
14107
+ case "xls":
14108
+ return excelIcon;
14109
+ case "xlsx":
14110
+ return excelIcon;
14111
+ case "txt":
14112
+ return txtIcon;
14113
+ case "text":
14114
+ return txtIcon;
14115
+ case "png":
14116
+ return imageIcon;
14117
+ case "jpg":
14118
+ return imageIcon;
14119
+ case "jpeg":
14120
+ return imageIcon;
14121
+ case "gif":
14122
+ return imageIcon;
14123
+ case "webp":
14124
+ return imageIcon;
14125
+ case "zip":
14126
+ return zipIcon;
14127
+ case "rar":
14128
+ return zipIcon;
14129
+ case "chm":
14130
+ return chmIcon;
14131
+ case "hdx":
14132
+ return hdxIcon;
14133
+ case "md":
14134
+ return mdIcon;
14135
+ default:
14136
+ return chmIcon;
14137
+ }
14138
+ };
14139
+ var statusRender = function(status, customRender) {
14140
+ // 存在自定义渲染 且配置啦返回的node 则返回
14141
+ if (customRender) {
14142
+ var node = customRender(suffix);
14143
+ if (node) return node;
14144
+ }
14145
+ switch(status){
14146
+ case "waiting":
14147
+ return /*#__PURE__*/ jsx("span", {
14148
+ style: {
14149
+ color: "rgba(0, 0, 0, 0.25)",
14150
+ fontSize: "12px"
14151
+ },
14152
+ children: "等待上传"
14153
+ });
14154
+ case "uploading":
14155
+ return /*#__PURE__*/ jsx("span", {
14156
+ style: {
14157
+ color: "rgba(0, 0, 0, 0.25)",
14158
+ fontSize: "12px"
14159
+ },
14160
+ children: "上传中..."
14161
+ });
14162
+ case "uploadError":
14163
+ return /*#__PURE__*/ jsxs("span", {
14164
+ style: {
14165
+ color: "#F4523B",
14166
+ fontSize: "12px"
14167
+ },
14168
+ children: [
14169
+ "上传失败,",
14170
+ /*#__PURE__*/ jsx("span", {
14171
+ style: {
14172
+ "text-decoration-line": "underline"
14173
+ },
14174
+ children: "重试"
14175
+ })
14176
+ ]
14177
+ });
14178
+ case "waitParse":
14179
+ return /*#__PURE__*/ jsx("span", {
14180
+ style: {
14181
+ color: "rgba(0, 0, 0, 0.25)",
14182
+ fontSize: "12px"
14183
+ },
14184
+ children: "等待解析"
14185
+ });
14186
+ case "parsing":
14187
+ return /*#__PURE__*/ jsx("span", {
14188
+ style: {
14189
+ color: "rgba(0, 0, 0, 0.25)",
14190
+ fontSize: "12px"
14191
+ },
14192
+ children: "解析中..."
14193
+ });
14194
+ case "parsingError":
14195
+ return /*#__PURE__*/ jsxs("span", {
14196
+ style: {
14197
+ color: "#F4523B",
14198
+ fontSize: "12px"
14199
+ },
14200
+ children: [
14201
+ "上传失败,",
14202
+ /*#__PURE__*/ jsx("span", {
14203
+ style: {
14204
+ "text-decoration-line": "underline"
14205
+ },
14206
+ children: "重试"
14207
+ })
14208
+ ]
14209
+ });
14210
+ default:
14211
+ return null;
14212
+ }
14213
+ };
14214
+
14215
+ var Header = function(param) {
14216
+ var context = param.context;
14217
+ var prefix = context.prefix, loading = context.loading;
14218
+ if (!loading) return null;
14219
+ var getCls = function(clsName) {
14220
+ return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
14221
+ };
14222
+ return /*#__PURE__*/ jsx("div", {
14223
+ className: "".concat(getCls("loadingIcon")),
14224
+ children: /*#__PURE__*/ jsx("img", {
14225
+ src: loading2Gif,
14226
+ alt: ""
14227
+ })
14228
+ });
14229
+ };
14230
+ var remarkable = new Remarkable({
14231
+ highlight: function highlight(str, lang) {
14232
+ if (lang && HighlightJS.getLanguage(lang)) {
14233
+ try {
14234
+ return HighlightJS.highlight(lang, str).value;
14235
+ } catch (err) {}
14236
+ }
14237
+ try {
14238
+ return HighlightJS.highlightAuto(str).value;
14239
+ } catch (err) {}
14240
+ return ""; // use external default escaping
14241
+ }
14242
+ });
14243
+ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
14244
+ var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
14245
+ var getList = contentConfig.getList, coverRenderText = contentConfig.coverRenderText, _contentConfig_msgAction = contentConfig.msgAction, msgAction = _contentConfig_msgAction === void 0 ? [
14246
+ "copy",
14247
+ "references"
14248
+ ] : _contentConfig_msgAction, coverRenderReferences = contentConfig.coverRenderReferences, _contentConfig_onRecordMessage = contentConfig.onRecordMessage, onRecordMessage = _contentConfig_onRecordMessage === void 0 ? function() {} : _contentConfig_onRecordMessage, _contentConfig_onVoteChange = contentConfig.onVoteChange, onVoteChange = _contentConfig_onVoteChange === void 0 ? function() {} : _contentConfig_onVoteChange, _contentConfig_onRefresh = contentConfig.onRefresh, onRefresh = _contentConfig_onRefresh === void 0 ? function() {} : _contentConfig_onRefresh, iconFileRender = contentConfig.iconFileRender;
14249
+ var loadMoreProps = contentConfig.loadMore || true;
14250
+ var virtuosoRef = useRef(null);
14251
+ var _useState = _sliced_to_array(useState(false), 2), loading = _useState[0], setLoading = _useState[1]; // 是否加载中
14252
+ var _useState1 = _sliced_to_array(useState([]), 2), dataSource = _useState1[0], setDataSource = _useState1[1];
14253
+ var _useState2 = _sliced_to_array(useState(0), 2), firstItemIndex = _useState2[0], setFirstItemIndex = _useState2[1];
14254
+ var _useState3 = _sliced_to_array(useState(1), 2), page = _useState3[0], setPage = _useState3[1];
14255
+ var _useState4 = _sliced_to_array(useState(""), 2), sendingId = _useState4[0], setSendingId = _useState4[1];
14256
+ var _useState5 = _sliced_to_array(useState(contentConfig.pageSize || 30), 2), pageSize = _useState5[0], setPageSize = _useState5[1];
14257
+ var _useState6 = _sliced_to_array(useState(0), 2), total = _useState6[0], setTotal = _useState6[1];
14258
+ var timerRef = useRef({
14259
+ loadMore: null,
14260
+ scrollTimer: null
14261
+ });
14262
+ var wrapperRef = useRef(null);
14263
+ var recordRef = useRef({
14264
+ page: page,
14265
+ pageSize: pageSize,
14266
+ total: total,
14267
+ dataSource: dataSource,
14268
+ maxPage: Math.ceil(total / pageSize),
14269
+ sendingId: ""
14270
+ });
14271
+ var timeRenderCache = useRef(new Map()).current;
14272
+ useRef(new Map()).current;
14273
+ useImperativeHandle(ref, function() {
14274
+ return {
14275
+ addMsg: function(msg) {
14276
+ if (msg.id !== "inputing") {
14277
+ // 不记录"正在输入..."的消息
14278
+ onRecordMessage(msg);
14279
+ }
14280
+ setDataSource(function(data) {
14281
+ return _to_consumable_array(data).concat([
14282
+ msg
14283
+ ]);
14284
+ });
14285
+ timerRef.current.scrollTimer = setTimeout(function() {
14286
+ scrollToBottom();
14287
+ }, 100);
14288
+ },
14289
+ updateMsg: function(id, obj) {
14290
+ setDataSource(function(data) {
14291
+ return data.map(function(item) {
14292
+ if (item.id === id) {
14293
+ return _object_spread({}, item, obj);
14294
+ }
14295
+ return item;
14296
+ });
14297
+ });
14298
+ },
14299
+ clearInputing: function() {
14300
+ setDataSource(function(data) {
14301
+ return data.filter(function(item) {
14302
+ return item.id !== "inputing";
14303
+ });
14304
+ });
14305
+ },
14306
+ recordMsg: function(msg) {
14307
+ onRecordMessage(msg);
14308
+ },
14309
+ getDataSource: function() {
14310
+ return recordRef.current.dataSource;
14311
+ },
14312
+ upateDataSource: function(id, obj) {
14313
+ setDataSource(function(list) {
14314
+ return list.map(function(item) {
14315
+ if (item.id === id) {
14316
+ return _object_spread({}, item, obj);
14317
+ }
14318
+ return item;
14319
+ });
14320
+ });
14321
+ },
14322
+ changeDataSource: function(data) {
14323
+ setDataSource(data);
14324
+ },
14325
+ scrollToBottom: scrollToBottom,
14326
+ setSendingId: function(id) {
14327
+ setSendingId(id);
14328
+ }
14329
+ };
14330
+ });
14331
+ useEffect(function() {
14332
+ getData(page, pageSize);
14333
+ var removeFn = delegate$1(wrapperRef.current, "click", ".".concat(modules_63b47c51$9.copyCode), function(event, target) {
14334
+ findCopyContent(event);
14335
+ });
14336
+ return function() {
14337
+ removeFn();
14338
+ clearTimeout(timerRef.current.loadMore);
14339
+ clearTimeout(timerRef.current.scrollTimer);
14340
+ };
14341
+ }, []);
14342
+ useEffect(function() {
14343
+ if (!virtuosoRef.current) return;
14344
+ // virtuosoRef.current.scrollToIndex({
14345
+ // index: "LAST", // 或者使用 dataSource.length - 1
14346
+ // behavior: "auto", // 可以是 "smooth" 实现平滑滚动
14347
+ // });
14348
+ // clearTimeout(timerRef.current.scrollTimer);
14349
+ // timerRef.current.scrollTimer = setTimeout(() => {
14350
+ // virtuosoRef.current.scrollToIndex({
14351
+ // index: "LAST", // 或者使用 dataSource.length - 1
14352
+ // behavior: "auto", // 可以是 "smooth" 实现平滑滚动
14353
+ // align: "end",
14354
+ // });
14355
+ // }, 500);
14356
+ }, [
14357
+ dataSource
14358
+ ]);
14359
+ useEffect(function() {
14360
+ recordRef.current.page = page;
14361
+ recordRef.current.pageSize = pageSize;
14362
+ recordRef.current.total = total;
14363
+ recordRef.current.dataSource = dataSource;
14364
+ recordRef.current.maxPage = Math.ceil(total / pageSize);
14365
+ recordRef.current.sendingId = sendingId;
14366
+ }, [
14367
+ page,
14368
+ pageSize,
14369
+ total,
14370
+ dataSource,
14371
+ sendingId
14372
+ ]);
14373
+ var scrollToBottom = function() {
14374
+ if (!virtuosoRef.current) return;
14375
+ virtuosoRef.current.scrollToIndex({
14376
+ index: "LAST",
14377
+ behavior: "auto"
14378
+ });
14379
+ };
14380
+ var getData = function(page, pageSize) {
14381
+ setLoading(true);
14382
+ clearTimeout(timerRef.current.loadMore);
14383
+ timerRef.current.loadMore = setTimeout(function() {
14384
+ setLoading(false);
14385
+ getList(page, pageSize).then(function(listObj) {
14386
+ setLoading(false);
14387
+ console.log("listObjlistObj", listObj);
14388
+ setDataSource(function(data) {
14389
+ return _to_consumable_array(data).concat(_to_consumable_array(listObj.dataSource));
14390
+ });
14391
+ setTotal(listObj.total);
14392
+ setPage(page);
14393
+ setPageSize(pageSize);
14394
+ setFirstItemIndex(listObj.total - pageSize * (page - 1));
14395
+ });
14396
+ }, 500);
14397
+ };
14398
+ var getCls = function(clsName) {
14399
+ return modules_63b47c51$9[clsName] + " " + prefix + "-" + clsName;
14400
+ };
14401
+ var loadMore = useCallback(function() {
14402
+ if (!loadMoreProps) return;
14403
+ if (recordRef.current.page >= recordRef.current.maxPage) return;
14404
+ getData(page + 1, pageSize);
14405
+ }, [
14406
+ page,
14407
+ pageSize
14408
+ ]);
14409
+ var itemContent = function(index, item) {
14410
+ var timeNode = renderTime(item);
14411
+ var contentNode = null;
14412
+ var html = markToHtml(item.content, item.id);
14413
+ contentNode = /*#__PURE__*/ jsx("div", {
14414
+ dangerouslySetInnerHTML: {
14415
+ __html: html
14416
+ }
14417
+ });
14418
+ if (coverRenderText) {
14419
+ contentNode = coverRenderText(item, html);
14420
+ }
14421
+ // item.type = "file";
14422
+ // item.suffix = "docx";
14423
+ // item.fileTitle = "这是一个文件名称.docx";
14424
+ // item.fileSize = "5Mb";
14425
+ if (item.type === "file") {
14426
+ contentNode = /*#__PURE__*/ jsxs("div", {
14427
+ className: "".concat(getCls("msgItem-file")),
14428
+ children: [
14429
+ /*#__PURE__*/ jsx("div", {
14430
+ className: "".concat(getCls("msgItem-file-left")),
14431
+ children: fileIconRender(item.suffix, iconFileRender)
14432
+ }),
14433
+ /*#__PURE__*/ jsxs("div", {
14434
+ className: "".concat(getCls("msgItem-file-right")),
14435
+ children: [
14436
+ /*#__PURE__*/ jsx("p", {
14437
+ children: item.fileTitle
14438
+ }),
14439
+ /*#__PURE__*/ jsx("p", {
14440
+ children: item.fileSize
14441
+ })
14442
+ ]
14443
+ })
14444
+ ]
14445
+ });
14446
+ }
14447
+ // 是否显示时间
14448
+ var itemNode = /*#__PURE__*/ jsx("div", {
14449
+ className: "".concat(getCls("msgItem"), " ").concat(item.location === "left" ? getCls("msgItem-left") : getCls("msgItem-right")),
14450
+ children: /*#__PURE__*/ jsxs("div", {
14451
+ className: "".concat(getCls("msgItem-box")),
14452
+ "data-id": item.id,
14453
+ onMouseEnter: function() {
14454
+ return onMouseEnter(item);
14455
+ },
14456
+ onMouseLeave: function() {
14457
+ return onMouseLeave(item);
14458
+ },
14459
+ children: [
14460
+ renderAction("floatTop", item),
14461
+ /*#__PURE__*/ jsxs("div", {
14462
+ className: "".concat(getCls("msgItem-content")),
14463
+ children: [
14464
+ /*#__PURE__*/ jsx("div", {
14465
+ className: "".concat(getCls("msgItem-text")),
14466
+ children: contentNode
14467
+ }),
14468
+ renderAction("bottom", item)
14469
+ ]
14470
+ }),
14471
+ item.location === "left" && renderAction("floatBottom", item),
14472
+ renderReference(item)
14473
+ ]
14474
+ })
14475
+ });
14476
+ return /*#__PURE__*/ jsxs(Fragment, {
14477
+ children: [
14478
+ timeNode,
14479
+ itemNode
14480
+ ]
14481
+ });
14482
+ };
14483
+ var renderReference = function(item) {
14484
+ var reference = item.reference;
14485
+ if (!item.reference) return null;
14486
+ var referenceNode = null;
14487
+ if (reference.type === "text") {
14488
+ referenceNode = /*#__PURE__*/ jsx("div", {
14489
+ className: "".concat(getCls("msgItem-references-text")),
14490
+ children: /*#__PURE__*/ jsx("div", {
14491
+ children: reference.value
14492
+ })
14493
+ });
14494
+ }
14495
+ if (coverRenderReferences) {
14496
+ return coverRenderReferences(item, referenceNode);
14497
+ } else {
14498
+ return referenceNode;
14499
+ }
14500
+ };
14501
+ var onMouseEnter = function(item) {
14502
+ var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
14503
+ var container = wrapperRef.current;
14504
+ if (!dom) return;
14505
+ var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
14506
+ var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
14507
+ if (!topDom || !bottomDom) return;
14508
+ console.log("itemitem", dom, container);
14509
+ var con_obj = container.getBoundingClientRect(); // 外层盒子
14510
+ var dom_obj = dom.getBoundingClientRect(); // 鼠标滑过元素
14511
+ var y = dom_obj.y - con_obj.y;
14512
+ if (y > 0) {
14513
+ // 元素tou在可视区域内
14514
+ // 判断底部是否在可视区域内
14515
+ if (y + dom_obj.height < con_obj.height) {
14516
+ // 底部在可视区域内
14517
+ // 显示在下边
14518
+ bottomDom.style.cssText = "display:flex";
14519
+ } else {
14520
+ // 显示在上
14521
+ topDom.style.cssText = "display:flex";
14522
+ }
14523
+ } else {
14524
+ console.log("yyyy", y, dom_obj, con_obj, y + dom_obj.height < con_obj.height);
14525
+ // 元素top不在可视区域内
14526
+ if (y + dom_obj.height < con_obj.height) {
14527
+ // 底部在可视区域内
14528
+ // 显示在下边
14529
+ bottomDom.style.cssText = "display:flex";
14530
+ } else {
14531
+ // 头部和底部都不在可视区域内 移动 topDom到可视区域
14532
+ topDom.style.cssText = "display:flex;top:".concat(-1 * y + 24, "px;bottom:auto;");
14533
+ }
14534
+ }
14535
+ };
14536
+ var onMouseLeave = function(item) {
14537
+ var dom = document.querySelector('[data-id="'.concat(item.id, '"]'));
14538
+ if (!dom) return;
14539
+ var topDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatTop"]);
14540
+ var bottomDom = dom.querySelector("." + modules_63b47c51$9["msgItem-action-popover-floatBottom"]);
14541
+ if (!topDom || !bottomDom) return;
14542
+ bottomDom.style.cssText = "";
14543
+ topDom.style.cssText = "";
14544
+ };
14545
+ var renderAction = function(location, item) {
14546
+ if (item.id === "inputing" || item.id === "helloMsg" || item.id === recordRef.current.sendingId) return null;
14547
+ var copyNode = /*#__PURE__*/ jsx(CopyIcon$1, {
14548
+ prefix: prefix,
14549
+ content: item.content
14550
+ });
14551
+ var referencesNode = /*#__PURE__*/ jsx(ReferencesIcon$1, {
14552
+ prefix: prefix,
14553
+ apiRef: apiRef,
14554
+ item: item
14555
+ });
14556
+ var UpVoteNode = /*#__PURE__*/ jsx(UpVoteBtn, {
14557
+ prefix: prefix,
14558
+ isActive: item.vote === "up",
14559
+ clickFn: function() {
14560
+ onVoteChange(item.vote === "up" ? "" : "up", item);
14561
+ setDataSource(function(data) {
14562
+ return data.map(function(ite) {
14563
+ if (item.id === ite.id) {
14564
+ ite.vote = item.vote === "up" ? "" : "up";
14565
+ }
14566
+ return ite;
14567
+ });
14568
+ });
14569
+ }
14570
+ });
14571
+ var DownVoteNode = /*#__PURE__*/ jsx(DownVoteBtn, {
14572
+ prefix: prefix,
14573
+ isActive: item.vote === "down",
14574
+ clickFn: function() {
14575
+ onVoteChange(item.vote === "down" ? "" : "down", item);
14576
+ setDataSource(function(data) {
14577
+ return data.map(function(ite) {
14578
+ if (item.id === ite.id) {
14579
+ ite.vote = ite.vote === "down" ? "" : "down";
14580
+ }
14581
+ return ite;
14582
+ });
14583
+ });
14584
+ }
14585
+ });
14586
+ var RefreshNode = /*#__PURE__*/ jsx(RefreshBtn$1, {
14587
+ prefix: prefix,
14588
+ clickFn: function() {
14589
+ return onRefresh(item);
14590
+ }
14591
+ });
14592
+ if (item.location === "right") {
14593
+ UpVoteNode = null;
14594
+ DownVoteNode = null;
14595
+ }
14596
+ if (item.type === "file") {
14597
+ copyNode = null;
14598
+ UpVoteNode = null;
14599
+ DownVoteNode = null;
14600
+ RefreshNode = null;
14601
+ }
14602
+ var leftNodes = null;
14603
+ var rightNodes = /*#__PURE__*/ jsxs(Fragment, {
14604
+ children: [
14605
+ copyNode,
14606
+ referencesNode,
14607
+ UpVoteNode,
14608
+ DownVoteNode
14609
+ ]
14610
+ });
14611
+ if (msgAction instanceof Array) {
14612
+ if (msgAction.length == 0) return null;
14613
+ // 数组
14614
+ if (!msgAction.includes("copy")) {
14615
+ copyNode = null;
14616
+ }
14617
+ if (!msgAction.includes("references")) {
14618
+ referencesNode = null;
14619
+ }
14620
+ if (!msgAction.includes("upVite")) {
14621
+ UpVoteNode = null;
14622
+ }
14623
+ if (!msgAction.includes("downVote")) {
14624
+ DownVoteNode = null;
14625
+ }
14626
+ if (!msgAction.includes("refresh")) {
14627
+ RefreshNode = null;
14628
+ }
14629
+ } else if (typeof msgAction === "object") {
14630
+ if (msgAction.renderLeft) {
14631
+ leftNodes = msgAction.renderLeft(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
14632
+ }
14633
+ if (msgAction.renderRight) {
14634
+ rightNodes = msgAction.renderRight(copyNode, referencesNode, UpVoteNode, DownVoteNode, RefreshNode);
14635
+ }
14636
+ }
14637
+ var index = recordRef.current.dataSource.findIndex(function(ite) {
14638
+ return ite.id == item.id;
14639
+ });
14640
+ if (location === "bottom") {
14641
+ if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing") {
14642
+ if (index === recordRef.current.dataSource.length - 1) {
14643
+ return /*#__PURE__*/ jsxs("div", {
14644
+ className: "".concat(getCls("msgItem-action")),
14645
+ children: [
14646
+ /*#__PURE__*/ jsx("div", {
14647
+ className: "".concat(getCls("msgItem-action-left")),
14648
+ children: leftNodes
14649
+ }),
14650
+ /*#__PURE__*/ jsxs("div", {
14651
+ className: "".concat(getCls("msgItem-action-right")),
14652
+ children: [
14653
+ RefreshNode,
14654
+ rightNodes
14655
+ ]
14656
+ })
14657
+ ]
14658
+ });
14659
+ }
14660
+ }
14661
+ // 只有最后一条才显示底部操作啦 且是左侧消息 且不是招呼语
14662
+ }
14663
+ if (location === "floatTop" || location === "floatBottom") {
14664
+ if (item.location === "left" && item.id !== "helloMsg" && item.id !== "inputing" && index === recordRef.current.dataSource.length - 1) return null;
14665
+ // 浮框
14666
+ return /*#__PURE__*/ jsx("div", {
14667
+ className: "".concat(getCls("msgItem-action-operate")),
14668
+ children: /*#__PURE__*/ jsxs("div", {
14669
+ className: "".concat(getCls("msgItem-action"), " ").concat(getCls("msgItem-action-popover"), " ").concat(getCls("msgItem-action-popover-" + location)),
14647
14670
  children: [
14648
- /*#__PURE__*/ jsx("stop", {
14649
- "stop-color": "#B5B5B5"
14671
+ /*#__PURE__*/ jsx("div", {
14672
+ className: "".concat(getCls("msgItem-action-left")),
14673
+ children: leftNodes
14650
14674
  }),
14651
- /*#__PURE__*/ jsx("stop", {
14652
- offset: "1",
14653
- "stop-color": "#434343"
14675
+ /*#__PURE__*/ jsx("div", {
14676
+ className: "".concat(getCls("msgItem-action-right")),
14677
+ children: rightNodes
14654
14678
  })
14655
14679
  ]
14656
14680
  })
14657
- })
14658
- ]
14659
- })
14681
+ });
14682
+ }
14683
+ return null;
14684
+ };
14685
+ var markToHtml = function(markStr, id) {
14686
+ var html = remarkable.render(markStr);
14687
+ var position = 0;
14688
+ html = html.replace(new RegExp("<pre", "ig"), function() {
14689
+ position++;
14690
+ return "<p class='".concat(getCls("copyCode"), " ").concat(modules_63b47c51$9.copyCodeFun, "' data-id=").concat(id, " data-position=").concat(position, ">\n <span class='").concat(getCls("icon"), " ").concat(getCls("copy"), '\'>\n <svg\n width="1em"\n height="1em"\n viewBox="0 0 14 14"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n xmlns="http://www.w3.org/2000/svg"\n >\n <g clip-path="url(#clip0_518_8403)">\n <path\n d="M6.16666 1.66666H13.1667C13.4761 1.66666 13.7728 1.78957 13.9916 2.00837C14.2104 2.22716 14.3333 2.5239 14.3333 2.83332V9.83332C14.3333 10.1427 14.2104 10.4395 13.9916 10.6583C13.7728 10.8771 13.4761 11 13.1667 11H6.16666C5.85724 11 5.5605 10.8771 5.34171 10.6583C5.12291 10.4395 5 10.1427 5 9.83332V2.83332C5 2.5239 5.12291 2.22716 5.34171 2.00837C5.5605 1.78957 5.85724 1.66666 6.16666 1.66666ZM6.16666 2.66666C6.12246 2.66666 6.08007 2.68422 6.04881 2.71547C6.01756 2.74673 6 2.78912 6 2.83332V9.83332C6 9.85521 6.00431 9.87688 6.01268 9.8971C6.02106 9.91732 6.03334 9.9357 6.04881 9.95117C6.06429 9.96665 6.08266 9.97893 6.10288 9.9873C6.1231 9.99568 6.14478 9.99999 6.16666 9.99999H13.1667C13.2109 9.99999 13.2533 9.98243 13.2845 9.95117C13.3158 9.91992 13.3333 9.87753 13.3333 9.83332V2.83332C13.3333 2.78912 13.3158 2.74673 13.2845 2.71547C13.2533 2.68422 13.2109 2.66666 13.1667 2.66666H6.16666ZM10 12C10 11.8674 10.0527 11.7402 10.1464 11.6464C10.2402 11.5527 10.3674 11.5 10.5 11.5C10.6326 11.5 10.7598 11.5527 10.8536 11.6464C10.9473 11.7402 11 11.8674 11 12V13.1667C11 13.4761 10.8771 13.7728 10.6583 13.9916C10.4395 14.2104 10.1427 14.3333 9.83333 14.3333H2.83333C2.52391 14.3333 2.22717 14.2104 2.00837 13.9916C1.78958 13.7728 1.66666 13.4761 1.66666 13.1667V6.16666C1.66666 5.85724 1.78958 5.56049 2.00837 5.3417C2.22717 5.12291 2.52391 4.99999 2.83333 4.99999H4C4.13261 4.99999 4.25978 5.05267 4.35355 5.14644C4.44732 5.2402 4.5 5.36738 4.5 5.49999C4.5 5.6326 4.44732 5.75978 4.35355 5.85354C4.25978 5.94731 4.13261 5.99999 4 5.99999H2.83333C2.78913 5.99999 2.74674 6.01755 2.71548 6.04881C2.68422 6.08006 2.66666 6.12245 2.66666 6.16666V13.1667C2.66666 13.2109 2.68422 13.2533 2.71548 13.2845C2.74674 13.3158 2.78913 13.3333 2.83333 13.3333H9.83333C9.87753 13.3333 9.91993 13.3158 9.95118 13.2845C9.98244 13.2533 10 13.2109 10 13.1667V12Z"\n />\n </g>\n <defs>\n <clipPath id="clip0_518_8403">\n <rect width="16" height="16" />\n </clipPath>\n </defs>\n </svg>\n </span>\n <span class=\'').concat(getCls("icon"), " ").concat(getCls("copy_success_flag"), '\'>\n <svg\n width="1em"\n height="1em"\n shape-rendering="geometricPrecision"\n fill="currentColor"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M11.2242 0.375687C11.4586 0.610002 11.4586 0.989901 11.2242 1.22422L4.82424 7.62422C4.58992 7.85853 4.21003 7.85853 3.97571 7.62422L0.775712 4.42422C0.541397 4.1899 0.541397 3.81 0.775712 3.57569C1.01003 3.34137 1.38993 3.34137 1.62424 3.57569L4.39998 6.35142L10.3757 0.375687C10.61 0.141373 10.9899 0.141373 11.2242 0.375687Z" />\n </svg>\n </span><span class="').concat(getCls("copyCodeText"), '">复制代码</span></p><pre');
14691
+ });
14692
+ return html;
14693
+ };
14694
+ var renderTime = function(item) {
14695
+ // 生成缓存键
14696
+ var cacheKey = "".concat(item.id);
14697
+ // 检查缓存中是否已有结果
14698
+ if (timeRenderCache.has(cacheKey)) {
14699
+ return timeRenderCache.get(cacheKey);
14700
+ }
14701
+ var index = recordRef.current.dataSource.findIndex(function(i) {
14702
+ return i.id === item.id;
14703
+ });
14704
+ var timeObj = parseDate(item.createTime);
14705
+ var time = null;
14706
+ if (index === 0) {
14707
+ // 第一项 显示年月日 时分
14708
+ time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
14709
+ } else {
14710
+ // 非第一项 与上一项进行对比
14711
+ var prevItem = recordRef.current.dataSource[index - 1];
14712
+ if (prevItem) {
14713
+ var beforeTime = prevItem.createTime;
14714
+ var beforeTimeObj = parseDate(beforeTime);
14715
+ // 判断与上一条数据 是否跨天
14716
+ if (timeObj.year !== beforeTimeObj.year || timeObj.month !== beforeTimeObj.month || timeObj.day !== beforeTimeObj.day) {
14717
+ // 显示 年月日 时分
14718
+ time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
14719
+ } else {
14720
+ // 没有跨天 判断是否相隔超过10分钟
14721
+ if (timeObj.timestamp - beforeTimeObj.timestamp > 10 * 60 * 1000) {
14722
+ // 超过10分钟 显示 时分
14723
+ time = "".concat(timeObj.hours, ":").concat(timeObj.minutes);
14724
+ }
14725
+ }
14726
+ }
14727
+ }
14728
+ var result = time ? /*#__PURE__*/ jsx("div", {
14729
+ className: "".concat(getCls("msg-date")),
14730
+ children: time
14731
+ }) : null;
14732
+ // 将结果存入缓存
14733
+ timeRenderCache.set(cacheKey, result);
14734
+ return result;
14735
+ };
14736
+ var findCopyContent = function(e) {
14737
+ var source = findParent$1(e.target, modules_63b47c51$9.copyCode);
14738
+ if (!source) return;
14739
+ var id = source.getAttribute("data-id");
14740
+ var position = source.getAttribute("data-position");
14741
+ if (!id && !position) return;
14742
+ var message = "";
14743
+ recordRef.current.dataSource.forEach(function(item) {
14744
+ if (item.id === id) {
14745
+ message = item.content;
14746
+ }
14747
+ });
14748
+ if (!message) return;
14749
+ var codeConment = "";
14750
+ var i = 0;
14751
+ message.replaceAll(new RegExp(/```(?:.|\n)*?```/, "ig"), function(con) {
14752
+ i++;
14753
+ if (i == position) {
14754
+ // 异常标记
14755
+ con = con.replace(/^```[\s\S]*?\n/, "").replace(/\n```$/, "");
14756
+ codeConment = con;
14757
+ return con;
14758
+ } else {
14759
+ return null;
14760
+ }
14761
+ });
14762
+ resetStyles();
14763
+ source.classList.add(modules_63b47c51$9.copy_success);
14764
+ source.children[2].innerText = "复制成功";
14765
+ copyText$1(codeConment);
14766
+ setTimeout(function() {
14767
+ try {
14768
+ resetStyles();
14769
+ } catch (error) {}
14770
+ }, 3000);
14771
+ };
14772
+ //初始化样式
14773
+ var resetStyles = function() {
14774
+ var dom_list = document.getElementsByClassName(modules_63b47c51$9.copy_success);
14775
+ for(var i = 0; i < dom_list.length; i++){
14776
+ dom_list[i].classList.remove(modules_63b47c51$9.copy_success);
14777
+ }
14778
+ var dom_list2 = document.getElementsByClassName(modules_63b47c51$9.copyCodeFun);
14779
+ for(var i = 0; i < dom_list2.length; i++){
14780
+ var p = dom_list2[i].getElementsByClassName(modules_63b47c51$9.copyCodeText);
14781
+ p[0].innerText = "复制代码";
14782
+ }
14783
+ };
14784
+ return /*#__PURE__*/ jsx("div", {
14785
+ className: "".concat(getCls("virtuosoList-wrapper")),
14786
+ ref: wrapperRef,
14787
+ children: /*#__PURE__*/ jsx(cn, {
14788
+ ref: virtuosoRef,
14789
+ style: {
14790
+ height: "100%"
14791
+ },
14792
+ data: dataSource,
14793
+ initialTopMostItemIndex: {
14794
+ index: "LAST",
14795
+ align: "end"
14796
+ },
14797
+ startReached: loadMore,
14798
+ firstItemIndex: firstItemIndex,
14799
+ context: {
14800
+ loading: loading,
14801
+ prefix: prefix
14802
+ },
14803
+ itemContent: itemContent,
14804
+ components: {
14805
+ Header: Header
14806
+ },
14807
+ increaseViewportBy: 200,
14808
+ overscan: 10
14809
+ })
14810
+ });
14660
14811
  });
14661
- // zip rar
14662
- var zipIcon = /*#__PURE__*/ jsx("i", {
14663
- children: /*#__PURE__*/ jsxs("svg", {
14664
- width: "1em",
14665
- height: "1em",
14666
- viewBox: "0 0 32 32",
14667
- fill: "none",
14668
- xmlns: "http://www.w3.org/2000/svg",
14669
- children: [
14670
- /*#__PURE__*/ jsx("path", {
14671
- d: "M20.775 1H7.73409C5.11934 1 3 3.11967 3 5.73409V26.2659C3 28.8807 5.11967 31 7.73409 31H23.9964C26.6112 31 28.7305 28.8803 28.7305 26.2659V8.95514C28.7305 7.88894 28.3071 6.86662 27.5531 6.11294L23.6172 2.17707C22.8634 1.42339 21.841 0.999991 20.775 1Z",
14672
- fill: "#FFC757"
14673
- }),
14674
- /*#__PURE__*/ jsx("path", {
14675
- d: "M8.88959 5.42124H11.2853C11.5486 5.42124 11.7623 5.20753 11.7623 4.94425V2.54856C11.7623 2.28494 11.5486 2.07157 11.2853 2.07157H8.88959C8.62631 2.07157 8.4126 2.28528 8.4126 2.54856V4.94425C8.4126 5.20753 8.62631 5.42124 8.88959 5.42124ZM14.6349 5.42124H12.2393C11.976 5.42124 11.7623 5.63495 11.7623 5.89824V8.29392C11.7623 8.55754 11.976 8.77091 12.2393 8.77091H14.6349C14.8982 8.77091 15.1119 8.55721 15.1119 8.29392V5.89824C15.1119 5.63495 14.8982 5.42124 14.6349 5.42124ZM8.88959 12.1206H11.2853C11.5486 12.1206 11.7623 11.9069 11.7623 11.6436V9.24791C11.7623 8.98429 11.5486 8.77091 11.2853 8.77091H8.88959C8.62631 8.77091 8.4126 8.98462 8.4126 9.24791V11.6436C8.4126 11.9069 8.62631 12.1206 8.88959 12.1206ZM14.6349 12.1206H12.2393C11.976 12.1206 11.7623 12.3343 11.7623 12.5976V14.9933C11.7623 15.2569 11.976 15.4703 12.2393 15.4703H14.6349C14.8982 15.4703 15.1119 15.2565 15.1119 14.9933V12.5976C15.1119 12.3343 14.8982 12.1206 14.6349 12.1206ZM13.9409 17.3196H9.44798C8.87619 17.3196 8.4126 17.7832 8.4126 18.355V23.5631C8.4126 24.1349 8.87619 24.5985 9.44798 24.5985H13.9409C14.5127 24.5985 14.9763 24.1349 14.9763 23.5631V18.355C14.9763 17.7832 14.5127 17.3196 13.9409 17.3196ZM13.7758 22.8328C13.7758 23.2924 13.4033 23.6649 12.9437 23.6649H10.4448C9.98527 23.6649 9.61279 23.2924 9.61279 22.8328V21.9164C9.61279 21.4568 9.98527 21.0843 10.4448 21.0843H12.9437C13.4033 21.0843 13.7758 21.4568 13.7758 21.9164V22.8328ZM27.5546 6.11261L23.6188 2.17675C23.0541 1.61209 22.334 1.22843 21.5503 1.07471V5.49225C21.5503 6.89476 22.6872 8.03164 24.0897 8.03164H28.6242C28.4528 7.30507 28.0824 6.64058 27.5546 6.11261Z",
14676
- fill: "#F79F2B"
14677
- }),
14678
- /*#__PURE__*/ jsx("path", {
14679
- d: "M8.88959 5.01935H11.2853C11.5486 5.01935 11.7623 4.80564 11.7623 4.54236V2.14667C11.7623 1.88305 11.5486 1.66968 11.2853 1.66968H8.88959C8.62631 1.66968 8.4126 1.88339 8.4126 2.14667V4.54236C8.4126 4.80564 8.62631 5.01935 8.88959 5.01935ZM14.6349 5.01935H12.2393C11.976 5.01935 11.7623 5.23306 11.7623 5.49634V7.89203C11.7623 8.15565 11.976 8.36902 12.2393 8.36902H14.6349C14.8982 8.36902 15.1119 8.15531 15.1119 7.89203V5.49634C15.1119 5.23306 14.8982 5.01935 14.6349 5.01935ZM8.88959 11.7187H11.2853C11.5486 11.7187 11.7623 11.505 11.7623 11.2417V8.84602C11.7623 8.5824 11.5486 8.36902 11.2853 8.36902H8.88959C8.62631 8.36902 8.4126 8.58273 8.4126 8.84602V11.2417C8.4126 11.505 8.62631 11.7187 8.88959 11.7187ZM14.6349 11.7187H12.2393C11.976 11.7187 11.7623 11.9324 11.7623 12.1957V14.5914C11.7623 14.855 11.976 15.0684 12.2393 15.0684H14.6349C14.8982 15.0684 15.1119 14.8547 15.1119 14.5914V12.1957C15.1119 11.9324 14.8982 11.7187 14.6349 11.7187ZM13.9409 16.9177H9.44798C8.87619 16.9177 8.4126 17.3813 8.4126 17.9531V23.1612C8.4126 23.733 8.87619 24.1966 9.44798 24.1966H13.9409C14.5127 24.1966 14.9763 23.733 14.9763 23.1612V17.9531C14.9763 17.3813 14.5127 16.9177 13.9409 16.9177ZM13.7758 22.4309C13.7758 22.8905 13.4033 23.263 12.9437 23.263H10.4448C9.98527 23.263 9.61279 22.8905 9.61279 22.4309V21.5145C9.61279 21.0549 9.98527 20.6824 10.4448 20.6824H12.9437C13.4033 20.6824 13.7758 21.0549 13.7758 21.5145V22.4309Z",
14680
- fill: "white"
14812
+ var VirtuosoList$1 = VirtuosoList;
14813
+
14814
+ var Content = /*#__PURE__*/ forwardRef(function(props, ref) {
14815
+ var prefix = props.prefix, contentConfig = props.contentConfig, apiRef = props.apiRef;
14816
+ var _contentConfig_className = contentConfig.className, className = _contentConfig_className === void 0 ? "" : _contentConfig_className;
14817
+ var listRef = useRef(null);
14818
+ useImperativeHandle(ref, function() {
14819
+ return _object_spread({}, listRef.current);
14820
+ });
14821
+ var getCls = function(clsName) {
14822
+ return modules_63b47c51$a[clsName] + " " + prefix + "-" + clsName;
14823
+ };
14824
+ return /*#__PURE__*/ jsx("div", {
14825
+ className: "".concat(getCls("content"), " ").concat(className),
14826
+ children: /*#__PURE__*/ jsx("div", {
14827
+ className: "".concat(getCls("contentList")),
14828
+ children: /*#__PURE__*/ jsx(VirtuosoList$1, {
14829
+ ref: listRef,
14830
+ prefix: prefix,
14831
+ contentConfig: contentConfig,
14832
+ apiRef: apiRef
14681
14833
  })
14682
- ]
14834
+ })
14835
+ });
14836
+ });
14837
+ var Content$1 = Content;
14838
+
14839
+ var modules_63b47c51$4 = {"footer":"index_module_footer__2287d487","footerBody":"index_module_footerBody__2287d487","footerBodyWarn":"index_module_footerBodyWarn__2287d487","footerFile":"index_module_footerFile__2287d487","footerInput":"index_module_footerInput__2287d487","footerAction":"index_module_footerAction__2287d487","footerActionBtn":"index_module_footerActionBtn__2287d487"};
14840
+
14841
+ var modules_63b47c51$3 = {"sendBtnIcon":"index_module_sendBtnIcon__d770fbb6","disabled":"index_module_disabled__d770fbb6","sendingIcon":"index_module_sendingIcon__d770fbb6","popover":"index_module_popover__d770fbb6"};
14842
+
14843
+ var sendBtnSvg = /*#__PURE__*/ jsx("svg", {
14844
+ xmlns: "http://www.w3.org/2000/svg",
14845
+ width: "1em",
14846
+ height: "1em",
14847
+ viewBox: "0 0 24 24",
14848
+ fill: "currentColor",
14849
+ children: /*#__PURE__*/ jsx("path", {
14850
+ d: "M20.3831 4.11378C20.0797 3.96207 19.7763 3.96207 19.6246 4.11378L4.45533 11.6984C4.15195 11.6984 4.00024 12.0018 4.00024 12.3052C4.00024 12.6085 4.15195 12.9119 4.30364 12.9119L7.94426 15.1874C8.24766 15.3391 8.55105 15.3391 8.85443 15.0357L16.8942 7.7544L17.1975 7.90609L9.91627 15.6425C9.76458 15.7941 9.76458 15.9458 9.76458 16.0975V19.4348C9.76458 19.7381 9.91627 20.0415 10.2197 20.1932C10.523 20.3449 10.8264 20.1932 10.9781 20.0415L12.7984 18.2212L16.4391 20.6483C16.5908 20.8 16.7425 20.8 16.8942 20.8H17.1975C17.5009 20.6483 17.6526 20.4966 17.6526 20.1932L20.6865 5.02393C20.6865 4.56885 20.6865 4.26547 20.3831 4.11378Z"
14683
14851
  })
14684
14852
  });
14685
- // 图片
14686
- var imageIcon = /*#__PURE__*/ jsx("i", {
14687
- children: /*#__PURE__*/ jsxs("svg", {
14688
- xmlns: "http://www.w3.org/2000/svg",
14689
- width: "1em",
14690
- height: "1em",
14691
- viewBox: "0 0 32 32",
14692
- fill: "none",
14693
- children: [
14694
- /*#__PURE__*/ jsx("path", {
14695
- d: "M24.2461 5.27148V0.492188H7.34075C6.98516 0.492188 6.64414 0.633449 6.3927 0.884889C6.14126 1.13633 6 1.47735 6 1.83294V30.6591C6 31.0147 6.14126 31.3558 6.3927 31.6072C6.64414 31.8586 6.98516 31.9999 7.34075 31.9999H29.0254C29.3788 31.9929 29.7158 31.8494 29.9657 31.5994C30.2156 31.3495 30.3591 31.0125 30.3661 30.6591V6.61223H25.5869C25.2335 6.60523 24.8965 6.46171 24.6465 6.21178C24.3966 5.96184 24.2531 5.62487 24.2461 5.27148Z",
14696
- fill: "#E1E1E1"
14697
- }),
14698
- /*#__PURE__*/ jsx("path", {
14699
- d: "M24.248 4.77929C24.255 5.13268 24.3985 5.46965 24.6485 5.71959C24.8984 5.96953 25.2354 6.11304 25.5888 6.12004H30.3681L24.248 0V4.77929Z",
14700
- fill: "#E0E0E0"
14701
- }),
14702
- /*#__PURE__*/ jsx("path", {
14703
- d: "M24.2461 4.77929V0H7.34075C6.98516 0 6.64414 0.141261 6.3927 0.392701C6.14126 0.644141 6 0.985164 6 1.34075V30.1669C6 30.5225 6.14126 30.8636 6.3927 31.115C6.64414 31.3664 6.98516 31.5077 7.34075 31.5077H29.0254C29.3788 31.5007 29.7158 31.3572 29.9657 31.1073C30.2156 30.8573 30.3591 30.5203 30.3661 30.1669V6.12004H25.5869C25.2335 6.11304 24.8965 5.96953 24.6465 5.71959C24.3966 5.46965 24.2531 5.13268 24.2461 4.77929Z",
14704
- fill: "white"
14705
- }),
14706
- /*#__PURE__*/ jsx("rect", {
14707
- x: "16",
14708
- y: "12",
14709
- width: "12",
14710
- height: "2",
14711
- rx: "1",
14712
- fill: "#E7E7E7"
14713
- }),
14714
- /*#__PURE__*/ jsx("rect", {
14715
- x: "16",
14716
- y: "16",
14717
- width: "12",
14718
- height: "2",
14719
- rx: "1",
14720
- fill: "#E7E7E7"
14721
- }),
14722
- /*#__PURE__*/ jsx("rect", {
14723
- x: "16",
14724
- y: "20",
14725
- width: "12",
14726
- height: "2",
14727
- rx: "1",
14728
- fill: "#E7E7E7"
14729
- }),
14730
- /*#__PURE__*/ jsx("rect", {
14731
- x: "16",
14732
- y: "24",
14733
- width: "9",
14734
- height: "2",
14735
- rx: "1",
14736
- fill: "#E7E7E7"
14737
- }),
14738
- /*#__PURE__*/ jsx("path", {
14739
- d: "M3.25 7H16.75C17.9927 7 19 8.00738 19 9.25V22.75C19 23.9927 17.9927 25 16.75 25H3.25C2.00738 25 1 23.9927 1 22.75V9.25C1 8.00738 2.00738 7 3.25 7Z",
14740
- fill: "#DFECFD"
14741
- }),
14742
- /*#__PURE__*/ jsx("path", {
14743
- d: "M4.1885 12.2232C4.1885 12.5642 4.32115 12.8912 4.55726 13.1324C4.79337 13.3735 5.1136 13.5089 5.44751 13.5089C5.78142 13.5089 6.10166 13.3735 6.33776 13.1324C6.57387 12.8912 6.70652 12.5642 6.70652 12.2232C6.70652 11.8822 6.57387 11.5552 6.33776 11.3141C6.10166 11.073 5.78142 10.9375 5.44751 10.9375C5.1136 10.9375 4.79337 11.073 4.55726 11.3141C4.32115 11.5552 4.1885 11.8822 4.1885 12.2232ZM5.04599 18.649C5.19115 18.3929 5.51204 18.3055 5.76279 18.4537C5.84215 18.5006 5.90808 18.568 5.954 18.649L7.92933 22.1334C8.07448 22.3894 7.98887 22.7172 7.73812 22.8654C7.65827 22.9126 7.56763 22.9375 7.47535 22.9375H3.52453C3.23486 22.9375 2.99995 22.6976 3 22.4018C3 22.3075 3.02434 22.215 3.07056 22.1334L5.04599 18.649Z",
14744
- fill: "#4988FD"
14745
- }),
14746
- /*#__PURE__*/ jsx("path", {
14747
- d: "M11.4951 15.2027C11.6571 14.9482 12.0146 14.8618 12.2935 15.0098C12.3811 15.0563 12.4539 15.1228 12.5048 15.2027L16.9208 22.1367C17.0829 22.3912 16.9883 22.7174 16.7094 22.8653C16.6203 22.9126 16.5191 22.9375 16.416 22.9375H7.58396C7.26144 22.9375 7 22.6989 7 22.4045C7 22.3105 7.02728 22.2181 7.07907 22.1367L11.4951 15.2027Z",
14748
- fill: "#4988FD"
14749
- })
14750
- ]
14853
+ var sendingSvg = /*#__PURE__*/ jsx("svg", {
14854
+ xmlns: "http://www.w3.org/2000/svg",
14855
+ width: "1em",
14856
+ height: "1em",
14857
+ viewBox: "0 0 16 16",
14858
+ fill: "currentColor",
14859
+ children: /*#__PURE__*/ jsx("path", {
14860
+ d: "M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1ZM9.5 5C9.89782 5 10.2792 5.15815 10.5605 5.43945C10.8419 5.72076 11 6.10218 11 6.5V9.5C11 9.89782 10.8419 10.2792 10.5605 10.5605C10.2792 10.8419 9.89782 11 9.5 11H6.5C6.10218 11 5.72076 10.8419 5.43945 10.5605C5.15815 10.2792 5 9.89782 5 9.5V6.5C5 6.10218 5.15815 5.72076 5.43945 5.43945C5.72076 5.15815 6.10218 5 6.5 5H9.5Z"
14751
14861
  })
14752
14862
  });
14753
- var fileIconRender = function(suffix1, customRender) {
14754
- // 存在自定义渲染 且配置啦返回的node 则返回
14755
- if (customRender) {
14756
- var node = customRender(suffix1);
14757
- if (node) return node;
14758
- }
14759
- switch(suffix1){
14760
- case "pdf":
14761
- return pdfIcon;
14762
- case "ppt":
14763
- return pptIcon;
14764
- case "pptx":
14765
- return pptIcon;
14766
- case "doc":
14767
- return wordIcon;
14768
- case "docx":
14769
- return wordIcon;
14770
- case "xls":
14771
- return excelIcon;
14772
- case "xlsx":
14773
- return excelIcon;
14774
- case "txt":
14775
- return txtIcon;
14776
- case "text":
14777
- return txtIcon;
14778
- case "png":
14779
- return imageIcon;
14780
- case "jpg":
14781
- return imageIcon;
14782
- case "jpeg":
14783
- return imageIcon;
14784
- case "gif":
14785
- return imageIcon;
14786
- case "webp":
14787
- return imageIcon;
14788
- case "zip":
14789
- return zipIcon;
14790
- case "rar":
14791
- return zipIcon;
14792
- case "chm":
14793
- return chmIcon;
14794
- case "hdx":
14795
- return hdxIcon;
14796
- case "md":
14797
- return mdIcon;
14798
- default:
14799
- return chmIcon;
14800
- }
14801
- };
14802
- var statusRender = function(status, customRender) {
14803
- // 存在自定义渲染 且配置啦返回的node 则返回
14804
- if (customRender) {
14805
- var node = customRender(suffix);
14806
- if (node) return node;
14807
- }
14808
- switch(status){
14809
- case "waiting":
14810
- return /*#__PURE__*/ jsx("span", {
14811
- style: {
14812
- color: "rgba(0, 0, 0, 0.25)",
14813
- fontSize: "12px"
14814
- },
14815
- children: "等待上传"
14816
- });
14817
- case "uploading":
14818
- return /*#__PURE__*/ jsx("span", {
14819
- style: {
14820
- color: "rgba(0, 0, 0, 0.25)",
14821
- fontSize: "12px"
14822
- },
14823
- children: "上传中..."
14824
- });
14825
- case "uploadError":
14826
- return /*#__PURE__*/ jsxs("span", {
14827
- style: {
14828
- color: "#F4523B",
14829
- fontSize: "12px"
14830
- },
14831
- children: [
14832
- "上传失败,",
14833
- /*#__PURE__*/ jsx("span", {
14834
- style: {
14835
- "text-decoration-line": "underline"
14836
- },
14837
- children: "重试"
14838
- })
14839
- ]
14840
- });
14841
- case "waitParse":
14842
- return /*#__PURE__*/ jsx("span", {
14843
- style: {
14844
- color: "rgba(0, 0, 0, 0.25)",
14845
- fontSize: "12px"
14846
- },
14847
- children: "等待解析"
14848
- });
14849
- case "parsing":
14850
- return /*#__PURE__*/ jsx("span", {
14851
- style: {
14852
- color: "rgba(0, 0, 0, 0.25)",
14853
- fontSize: "12px"
14854
- },
14855
- children: "解析中..."
14856
- });
14857
- case "parsingError":
14858
- return /*#__PURE__*/ jsxs("span", {
14859
- style: {
14860
- color: "#F4523B",
14861
- fontSize: "12px"
14863
+ var SendBtn$1 = function(props) {
14864
+ var prefix = props.prefix, canSendMsg = props.canSendMsg, sending = props.sending, stopMessage = props.stopMessage, _props_clickFn = props.clickFn, clickFn = _props_clickFn === void 0 ? function() {} : _props_clickFn;
14865
+ var getCls = function(clsName) {
14866
+ return modules_63b47c51$3[clsName] + " " + prefix + "-" + clsName;
14867
+ };
14868
+ if (sending) {
14869
+ return /*#__PURE__*/ jsx(Popover, {
14870
+ content: "停止生成",
14871
+ overlayClassName: modules_63b47c51$3.popover,
14872
+ children: /*#__PURE__*/ jsx("i", {
14873
+ className: "".concat(getCls("sendingIcon")),
14874
+ onClick: function() {
14875
+ return stopMessage();
14862
14876
  },
14863
- children: [
14864
- "上传失败,",
14865
- /*#__PURE__*/ jsx("span", {
14866
- style: {
14867
- "text-decoration-line": "underline"
14868
- },
14869
- children: "重试"
14870
- })
14871
- ]
14872
- });
14873
- default:
14874
- return null;
14877
+ children: sendingSvg
14878
+ })
14879
+ });
14875
14880
  }
14881
+ return /*#__PURE__*/ jsx("i", {
14882
+ className: "".concat(getCls("sendBtnIcon"), " ").concat(canSendMsg ? "" : getCls("disabled")),
14883
+ onClick: function() {
14884
+ if (canSendMsg) {
14885
+ clickFn();
14886
+ }
14887
+ },
14888
+ children: sendBtnSvg
14889
+ });
14890
+ };
14891
+ var SendBtn$2 = SendBtn$1;
14892
+
14893
+ var modules_63b47c51$2 = {"uploadFileBtn":"index_module_uploadFileBtn__e41600f2"};
14894
+
14895
+ var uplodaFileBtnSvg = /*#__PURE__*/ jsx("svg", {
14896
+ xmlns: "http://www.w3.org/2000/svg",
14897
+ width: "1em",
14898
+ height: "1em",
14899
+ viewBox: "0 0 24 24",
14900
+ fill: "curretnColor",
14901
+ children: /*#__PURE__*/ jsx("path", {
14902
+ d: "M18.6853 7.62742C17.8428 6.79307 16.7044 6.32615 15.5187 6.3287H15.5067C14.9307 6.3287 14.3694 6.43537 13.8347 6.64871C13.2814 6.86872 12.7814 7.19407 12.3547 7.61542L8.1774 11.7449C7.93976 11.9789 7.75147 12.2582 7.62368 12.5663C7.49588 12.8743 7.43118 13.2049 7.4334 13.5384C7.43474 14.2157 7.70273 14.8531 8.18673 15.3318C8.67073 15.8118 9.31339 16.0745 9.99872 16.0758H10.0041C10.6867 16.0758 11.328 15.8145 11.808 15.3411L15.4747 11.7169C15.5343 11.6586 15.5818 11.5889 15.6141 11.512C15.6465 11.435 15.6632 11.3524 15.6632 11.2689C15.6632 11.1855 15.6465 11.1028 15.6141 11.0259C15.5818 10.949 15.5343 10.8793 15.4747 10.8209C15.3544 10.7019 15.1919 10.6351 15.0227 10.6351C14.8534 10.6351 14.691 10.7019 14.5707 10.8209L10.904 14.4437C10.7851 14.5612 10.6442 14.6541 10.4893 14.717C10.3344 14.78 10.1686 14.8117 10.0014 14.8104H10.0001C9.65919 14.8107 9.33196 14.6766 9.08939 14.4371C8.96981 14.3197 8.87485 14.1796 8.81006 14.0251C8.74527 13.8705 8.71195 13.7046 8.71206 13.537C8.71037 13.3709 8.7422 13.2062 8.80567 13.0527C8.86913 12.8992 8.96291 12.7601 9.08139 12.6437L13.2587 8.51146C13.8576 7.9204 14.6666 7.59138 15.508 7.59676H15.5173C16.3656 7.59544 17.1802 7.92894 17.784 8.5248C18.388 9.12216 18.7213 9.91686 18.7227 10.7636C18.7254 11.1781 18.6451 11.5889 18.4864 11.9718C18.3277 12.3548 18.0938 12.702 17.7987 12.993L13.3667 17.3799C12.4776 18.2529 11.2794 18.7389 10.0334 18.7319H10.0214C8.76654 18.7335 7.56186 18.2394 6.66941 17.3572C6.22896 16.9252 5.8792 16.4096 5.64062 15.8406C5.40205 15.2716 5.27948 14.6607 5.28009 14.0437C5.27585 13.4298 5.39486 12.8212 5.63007 12.2541C5.86528 11.6871 6.2119 11.1729 6.64941 10.7422L12.3734 5.08464C12.4332 5.02626 12.4808 4.95648 12.5133 4.87942C12.5458 4.80236 12.5625 4.71958 12.5625 4.63595C12.5625 4.55233 12.5458 4.46954 12.5133 4.39248C12.4808 4.31543 12.4332 4.24565 12.3734 4.18727C12.2529 4.06755 12.0901 4.00025 11.9203 4C11.7505 3.99975 11.5875 4.06658 11.4667 4.18593L5.74675 9.84486C5.18956 10.3931 4.74792 11.0476 4.44792 11.7694C4.14792 12.4913 3.99564 13.266 4.00009 14.0477C4.00143 14.8211 4.15076 15.5745 4.44542 16.2865C4.75105 17.0251 5.20126 17.6952 5.76956 18.2574C6.33787 18.8196 7.01282 19.2624 7.75473 19.56C8.47206 19.8493 9.23472 19.996 10.0174 20H10.0347C11.6174 20.0024 13.1375 19.3822 14.2667 18.2732L18.7 13.8904C19.1135 13.4806 19.4414 12.9926 19.6646 12.4549C19.8877 11.9172 20.0018 11.3404 20 10.7582C19.999 10.1753 19.8823 9.59842 19.6566 9.06098C19.4309 8.52354 19.1008 8.03627 18.6853 7.62742Z"
14903
+ })
14904
+ });
14905
+ var SendBtn = function(props) {
14906
+ var prefix = props.prefix, fileUpload = props.fileUpload, customRequest = props.customRequest;
14907
+ var uplodaProps = _object_spread({}, fileUpload);
14908
+ var getCls = function(clsName) {
14909
+ return modules_63b47c51$2[clsName] + " " + prefix + "-" + clsName;
14910
+ };
14911
+ return /*#__PURE__*/ jsx(Upload, {
14912
+ fileList: [],
14913
+ accept: uplodaProps.accept,
14914
+ customRequest: customRequest,
14915
+ multiple: !!uplodaProps.multiple,
14916
+ children: /*#__PURE__*/ jsx("i", {
14917
+ className: "".concat(getCls("uploadFileBtn")),
14918
+ children: uplodaFileBtnSvg
14919
+ })
14920
+ });
14876
14921
  };
14922
+ var UploadFileBtn = SendBtn;
14923
+
14924
+ var modules_63b47c51$1 = {"footer-fileList-wrapper":"index_module_footerFileListWrapper__e818c28d","footer-fileList-list":"index_module_footerFileListList__e818c28d","footer-fileList-listItem":"index_module_footerFileListListItem__e818c28d","footer-fileList-listItem-icon":"index_module_footerFileListListItemIcon__e818c28d","footer-fileList-listItem-text":"index_module_footerFileListListItemText__e818c28d","footer-fileList-listItem-status":"index_module_footerFileListListItemStatus__e818c28d","footer-fileList-listItem-delete":"index_module_footerFileListListItemDelete__e818c28d","footer-fileList-pre":"index_module_footerFileListPre__e818c28d","footer-fileList-next":"index_module_footerFileListNext__e818c28d"};
14877
14925
 
14878
14926
  var guidGenerator = function() {
14879
14927
  var d = new Date().getTime();
@@ -15299,6 +15347,8 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15299
15347
  if (fileUpload) {
15300
15348
  fileUpload = _object_spread({}, defaultFileUploadProps, fileUpload);
15301
15349
  }
15350
+ var footerDomRef = useRef(null);
15351
+ var resizeObserverRef = useRef(null);
15302
15352
  var fileListRef = useRef(null);
15303
15353
  var ctrl = useRef(); //停止生成ai回答时使用
15304
15354
  var _useState = _sliced_to_array(useState(""), 2), textValue = _useState[0], setTextValue = _useState[1];
@@ -15341,7 +15391,9 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15341
15391
  }, fileListRef.current);
15342
15392
  });
15343
15393
  useEffect(function() {
15394
+ listenerFooterHeight();
15344
15395
  return function() {
15396
+ resizeObserverRef.current && resizeObserverRef.current.disconnect();
15345
15397
  clearTimeout(updateMsgRef.current);
15346
15398
  };
15347
15399
  }, []);
@@ -15354,6 +15406,16 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15354
15406
  referencesSource,
15355
15407
  sending
15356
15408
  ]);
15409
+ // 监听footer变化
15410
+ var listenerFooterHeight = function() {
15411
+ if (!footerDomRef.current) return;
15412
+ // 创建ResizeObserver实例
15413
+ resizeObserverRef.current = new ResizeObserver(function(entries) {
15414
+ apiRef.contentApi && apiRef.contentApi.scrollToBottom();
15415
+ });
15416
+ // 开始观察footer元素
15417
+ resizeObserverRef.current.observe(footerDomRef.current);
15418
+ };
15357
15419
  // 是否允许发送消息
15358
15420
  var canSendMsg = useMemo(function() {
15359
15421
  if (textValue.trim().length === 0) return false;
@@ -15455,7 +15517,8 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15455
15517
  content: value,
15456
15518
  location: "right",
15457
15519
  reference: recordRef.current.referencesSource,
15458
- source: null
15520
+ source: null,
15521
+ fileList: fileListRef.current.getFileList()
15459
15522
  });
15460
15523
  sendMsgAjax();
15461
15524
  };
@@ -15480,7 +15543,8 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15480
15543
  content: "正在输入...",
15481
15544
  location: "left",
15482
15545
  reference: null,
15483
- source: null
15546
+ source: null,
15547
+ fileList: fileListRef.current.getFileList()
15484
15548
  });
15485
15549
  var msgContent = "";
15486
15550
  setSending(true);
@@ -15503,6 +15567,7 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15503
15567
  setSending(false);
15504
15568
  if (recordMsgObj.id) {
15505
15569
  apiRef.contentApi.recordMsg(recordMsgObj);
15570
+ apiRef.contentApi.setSendingId(recordMsgObj.id);
15506
15571
  }
15507
15572
  console.log("onclose: ", recordMsgObj);
15508
15573
  };
@@ -15533,11 +15598,12 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15533
15598
  delete data.content;
15534
15599
  recordMsgObj = _object_spread({
15535
15600
  createTime: createTime,
15536
- content: msgContent,
15601
+ content: msgContent || "正在输入...",
15537
15602
  location: "left",
15538
15603
  reference: null,
15539
15604
  source: null
15540
15605
  }, data);
15606
+ apiRef.contentApi.setSendingId(data.id);
15541
15607
  apiRef.contentApi.updateMsg(msgId, recordMsgObj);
15542
15608
  msgId = data.id;
15543
15609
  updateMsgRef.current = setTimeout(function() {
@@ -15571,6 +15637,7 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
15571
15637
  };
15572
15638
  return /*#__PURE__*/ jsx("div", {
15573
15639
  className: "".concat(getCls("footer"), " ").concat(className),
15640
+ ref: footerDomRef,
15574
15641
  children: /*#__PURE__*/ jsxs("div", {
15575
15642
  className: "".concat(getCls("footerBody"), " ").concat(judegTextLengthWarn() ? getCls("footerBodyWarn") : ""),
15576
15643
  children: [