pcm-agents 0.6.105 → 0.6.106-beta.0

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.
Files changed (157) hide show
  1. package/dist/cjs/components-position-selector_32.cjs.entry.js +69 -23
  2. package/dist/cjs/components-position-selector_32.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{conversation-utils-CVLdtQNC.js → conversation-utils-CoRi6MTP.js} +4 -4
  4. package/dist/cjs/{conversation-utils-CVLdtQNC.js.map → conversation-utils-CoRi6MTP.js.map} +1 -1
  5. package/dist/cjs/index-C_qhED9Z.js.map +1 -1
  6. package/dist/cjs/{index-By0g8EKI.js → index-DUzFE1bR.js} +5 -5
  7. package/dist/cjs/{index-By0g8EKI.js.map → index-DUzFE1bR.js.map} +1 -1
  8. package/dist/cjs/index.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/oem-htws-modal.cjs.entry.js +1 -1
  11. package/dist/cjs/oem-jd-modal.cjs.entry.js +2 -2
  12. package/dist/cjs/oem-jlpp-modal.cjs.entry.js +1 -1
  13. package/dist/cjs/oem-jlzz-modal.cjs.entry.js +1 -1
  14. package/dist/cjs/oem-mnct-modal.cjs.entry.js +1 -1
  15. package/dist/cjs/oem-mnms-modal.cjs.entry.js +1 -1
  16. package/dist/cjs/oem-qgqjl-modal.cjs.entry.js +3 -3
  17. package/dist/cjs/pcm-agents.cjs.js +1 -1
  18. package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +2 -2
  19. package/dist/cjs/pcm-jlsx-modal.cjs.entry.js +2 -2
  20. package/dist/cjs/{sentry-reporter-7_CRp918.js → sentry-reporter-DoK1Ahrd.js} +3 -3
  21. package/dist/cjs/{sentry-reporter-7_CRp918.js.map → sentry-reporter-DoK1Ahrd.js.map} +1 -1
  22. package/dist/collection/components/pcm-drawer/pcm-drawer.css +7 -0
  23. package/dist/collection/components/pcm-drawer/pcm-drawer.js +1 -1
  24. package/dist/collection/components/pcm-drawer/pcm-drawer.js.map +1 -1
  25. package/dist/collection/components/pcm-message/pcm-message.js +2 -2
  26. package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js +4 -4
  27. package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js +4 -4
  28. package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.css +45 -0
  29. package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js +58 -8
  30. package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js.map +1 -1
  31. package/dist/components/components-position-selector.js +1 -1
  32. package/dist/components/index.js +1 -1
  33. package/dist/components/oem-htws-modal.js +7 -7
  34. package/dist/components/oem-jd-modal.js +5 -5
  35. package/dist/components/oem-jlpp-modal.js +9 -9
  36. package/dist/components/oem-jlsx-modal.js +8 -8
  37. package/dist/components/oem-jlzz-modal.js +7 -7
  38. package/dist/components/oem-mnct-modal.js +9 -9
  39. package/dist/components/oem-mnms-modal.js +11 -11
  40. package/dist/components/oem-qgqjl-modal.js +11 -11
  41. package/dist/components/oem-zygh-modal.js +7 -7
  42. package/dist/components/{p-D5QrQpfc.js → p-BD5N28Zh.js} +3 -3
  43. package/dist/components/{p-D5QrQpfc.js.map → p-BD5N28Zh.js.map} +1 -1
  44. package/dist/components/{p-DAPyrjkB.js → p-BSi4dE3T.js} +4 -4
  45. package/dist/components/{p-DAPyrjkB.js.map → p-BSi4dE3T.js.map} +1 -1
  46. package/dist/components/{p-KUS4jmQC.js → p-Bp7bc_Cl.js} +3 -3
  47. package/dist/components/{p-KUS4jmQC.js.map → p-Bp7bc_Cl.js.map} +1 -1
  48. package/dist/components/{p-DWZVo5BP.js → p-ByhBuzzO.js} +5 -5
  49. package/dist/components/{p-DWZVo5BP.js.map → p-ByhBuzzO.js.map} +1 -1
  50. package/dist/components/{p-DKIi18OW.js → p-CAA6FhS_.js} +6 -6
  51. package/dist/components/{p-DKIi18OW.js.map → p-CAA6FhS_.js.map} +1 -1
  52. package/dist/components/p-CR7WLzmM.js.map +1 -1
  53. package/dist/components/{p-B95RVdQj.js → p-CUEg5tST.js} +3 -3
  54. package/dist/components/{p-B95RVdQj.js.map → p-CUEg5tST.js.map} +1 -1
  55. package/dist/components/{p-0JWThH-A.js → p-DM7VLXU4.js} +4 -4
  56. package/dist/components/p-DM7VLXU4.js.map +1 -0
  57. package/dist/components/{p-D-vhTSlS.js → p-DoxZwq45.js} +4 -4
  58. package/dist/components/{p-D-vhTSlS.js.map → p-DoxZwq45.js.map} +1 -1
  59. package/dist/components/{p-B0BxELFb.js → p-Dsy4APmq.js} +7 -7
  60. package/dist/components/{p-B0BxELFb.js.map → p-Dsy4APmq.js.map} +1 -1
  61. package/dist/components/{p-7UOZGJXx.js → p-O8-uRHqf.js} +3 -3
  62. package/dist/components/{p-7UOZGJXx.js.map → p-O8-uRHqf.js.map} +1 -1
  63. package/dist/components/{p-JNe7-kfk.js → p-QvDGaXbi.js} +7 -7
  64. package/dist/components/{p-JNe7-kfk.js.map → p-QvDGaXbi.js.map} +1 -1
  65. package/dist/components/{p-BiqyPiam.js → p-Y1K0NCrj.js} +3 -3
  66. package/dist/components/{p-BiqyPiam.js.map → p-Y1K0NCrj.js.map} +1 -1
  67. package/dist/components/{p-B6YzERqG.js → p-tpH8fM63.js} +3 -3
  68. package/dist/components/{p-B6YzERqG.js.map → p-tpH8fM63.js.map} +1 -1
  69. package/dist/components/{p-Cs7gL6Zs.js → p-zAZ6q4pB.js} +4 -4
  70. package/dist/components/{p-Cs7gL6Zs.js.map → p-zAZ6q4pB.js.map} +1 -1
  71. package/dist/components/pcm-1zhanshi-mnms-modal.js +7 -7
  72. package/dist/components/pcm-app-chat-modal.js +1 -1
  73. package/dist/components/pcm-ats-mnms-modal.js +7 -7
  74. package/dist/components/pcm-card.js +1 -1
  75. package/dist/components/pcm-chat-message.js +1 -1
  76. package/dist/components/pcm-digital-human.js +1 -1
  77. package/dist/components/pcm-drawer.js +1 -1
  78. package/dist/components/pcm-export-records-modal.js +1 -1
  79. package/dist/components/pcm-hr-chat-modal.js +2 -2
  80. package/dist/components/pcm-htws-modal.js +9 -9
  81. package/dist/components/pcm-hyzj-modal.js +6 -6
  82. package/dist/components/pcm-jd-modal.js +6 -6
  83. package/dist/components/pcm-jlpp-modal.js +9 -9
  84. package/dist/components/pcm-jlsx-modal.js +7 -7
  85. package/dist/components/pcm-jlzz-modal.js +7 -7
  86. package/dist/components/pcm-message.js +1 -1
  87. package/dist/components/pcm-mnct-modal.js +8 -8
  88. package/dist/components/pcm-mnms-modal.js +10 -10
  89. package/dist/components/pcm-mnms-zp-modal.js +10 -10
  90. package/dist/components/pcm-mobile-input-btn.js +1 -1
  91. package/dist/components/pcm-mobile-upload-btn.js +1 -1
  92. package/dist/components/pcm-msbg-modal.js +6 -6
  93. package/dist/components/pcm-qgqjl-modal.js +10 -10
  94. package/dist/components/pcm-thousand-resume-wrapper.js +1 -1
  95. package/dist/components/pcm-upload.js +1 -1
  96. package/dist/components/pcm-virtual-chat-modal.js +1 -1
  97. package/dist/components/pcm-zsk-chat-modal.js +68 -12
  98. package/dist/components/pcm-zsk-chat-modal.js.map +1 -1
  99. package/dist/components/pcm-zygh-modal.js +8 -8
  100. package/dist/components/pcm-zygh-v2-modal.js +8 -8
  101. package/dist/esm/components-position-selector_32.entry.js +69 -23
  102. package/dist/esm/components-position-selector_32.entry.js.map +1 -1
  103. package/dist/esm/{conversation-utils-CrIsxorn.js → conversation-utils-Db7BlHOQ.js} +4 -4
  104. package/dist/esm/{conversation-utils-CrIsxorn.js.map → conversation-utils-Db7BlHOQ.js.map} +1 -1
  105. package/dist/esm/{index-D697T8iK.js → index-BMboGZoN.js} +5 -5
  106. package/dist/esm/{index-D697T8iK.js.map → index-BMboGZoN.js.map} +1 -1
  107. package/dist/esm/index-Bq0K-WqZ.js.map +1 -1
  108. package/dist/esm/index.js +1 -1
  109. package/dist/esm/loader.js +1 -1
  110. package/dist/esm/oem-htws-modal.entry.js +1 -1
  111. package/dist/esm/oem-jd-modal.entry.js +2 -2
  112. package/dist/esm/oem-jlpp-modal.entry.js +1 -1
  113. package/dist/esm/oem-jlzz-modal.entry.js +1 -1
  114. package/dist/esm/oem-mnct-modal.entry.js +1 -1
  115. package/dist/esm/oem-mnms-modal.entry.js +1 -1
  116. package/dist/esm/oem-qgqjl-modal.entry.js +3 -3
  117. package/dist/esm/pcm-agents.js +1 -1
  118. package/dist/esm/pcm-hr-chat-modal.entry.js +2 -2
  119. package/dist/esm/pcm-jlsx-modal.entry.js +2 -2
  120. package/dist/esm/{sentry-reporter-Bc726A3Z.js → sentry-reporter-Brzk-Fyr.js} +3 -3
  121. package/dist/esm/{sentry-reporter-Bc726A3Z.js.map → sentry-reporter-Brzk-Fyr.js.map} +1 -1
  122. package/dist/pcm-agents/index.esm.js +1 -1
  123. package/dist/pcm-agents/p-05e878cd.entry.js +8 -0
  124. package/dist/pcm-agents/p-05e878cd.entry.js.map +1 -0
  125. package/dist/pcm-agents/{p-99382ae9.entry.js → p-1fad69af.entry.js} +2 -2
  126. package/dist/pcm-agents/{p-ff604e19.entry.js → p-24fb4b9f.entry.js} +2 -2
  127. package/dist/pcm-agents/{p-cebab318.entry.js → p-2d120b6e.entry.js} +2 -2
  128. package/dist/pcm-agents/{p-a0fdb381.entry.js → p-3d316ed4.entry.js} +2 -2
  129. package/dist/pcm-agents/{p-1c6396d1.entry.js → p-6a8e1b57.entry.js} +2 -2
  130. package/dist/pcm-agents/{p-45ba5fca.entry.js → p-7b1be3e5.entry.js} +2 -2
  131. package/dist/pcm-agents/{p-46e6ab40.entry.js → p-90de1b3c.entry.js} +2 -2
  132. package/dist/pcm-agents/p-Bq0K-WqZ.js.map +1 -1
  133. package/dist/pcm-agents/p-DtzBTFE0.js +2 -0
  134. package/dist/pcm-agents/{p-iUYonGvj.js.map → p-DtzBTFE0.js.map} +1 -1
  135. package/dist/pcm-agents/p-H18cdRbT.js +2 -0
  136. package/dist/pcm-agents/{p-BNJE6BAE.js.map → p-H18cdRbT.js.map} +1 -1
  137. package/dist/pcm-agents/{p-2a5f90d3.entry.js → p-bbcbd26f.entry.js} +2 -2
  138. package/dist/pcm-agents/{p-43a23665.entry.js → p-e0bd8d4f.entry.js} +2 -2
  139. package/dist/pcm-agents/{p-BhOD9Pkz.js → p-oz6a657p.js} +2 -2
  140. package/dist/pcm-agents/{p-BhOD9Pkz.js.map → p-oz6a657p.js.map} +1 -1
  141. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  142. package/dist/types/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.d.ts +7 -1
  143. package/package.json +1 -1
  144. package/dist/components/p-0JWThH-A.js.map +0 -1
  145. package/dist/pcm-agents/p-49568d23.entry.js +0 -8
  146. package/dist/pcm-agents/p-49568d23.entry.js.map +0 -1
  147. package/dist/pcm-agents/p-BNJE6BAE.js +0 -2
  148. package/dist/pcm-agents/p-iUYonGvj.js +0 -2
  149. /package/dist/pcm-agents/{p-99382ae9.entry.js.map → p-1fad69af.entry.js.map} +0 -0
  150. /package/dist/pcm-agents/{p-ff604e19.entry.js.map → p-24fb4b9f.entry.js.map} +0 -0
  151. /package/dist/pcm-agents/{p-cebab318.entry.js.map → p-2d120b6e.entry.js.map} +0 -0
  152. /package/dist/pcm-agents/{p-a0fdb381.entry.js.map → p-3d316ed4.entry.js.map} +0 -0
  153. /package/dist/pcm-agents/{p-1c6396d1.entry.js.map → p-6a8e1b57.entry.js.map} +0 -0
  154. /package/dist/pcm-agents/{p-45ba5fca.entry.js.map → p-7b1be3e5.entry.js.map} +0 -0
  155. /package/dist/pcm-agents/{p-46e6ab40.entry.js.map → p-90de1b3c.entry.js.map} +0 -0
  156. /package/dist/pcm-agents/{p-2a5f90d3.entry.js.map → p-bbcbd26f.entry.js.map} +0 -0
  157. /package/dist/pcm-agents/{p-43a23665.entry.js.map → p-e0bd8d4f.entry.js.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C_qhED9Z.js');
4
- var index$1 = require('./index-By0g8EKI.js');
4
+ var index$1 = require('./index-DUzFE1bR.js');
5
5
  var message_service = require('./message.service-DGUsA-FY.js');
6
6
  var index$2 = require('./index-B8gwjzvs.js');
7
7
  var errorEvent = require('./error-event-J_ZWIqWF.js');
8
- var sentryReporter = require('./sentry-reporter-7_CRp918.js');
9
- var conversationUtils = require('./conversation-utils-CVLdtQNC.js');
8
+ var sentryReporter = require('./sentry-reporter-DoK1Ahrd.js');
9
+ var conversationUtils = require('./conversation-utils-CoRi6MTP.js');
10
10
  require('./exports-Dc-pQh4A.js');
11
11
 
12
12
  const componentsPositionSelectorCss = ":host{display:block;width:100%;height:100%}.position-selector-container{display:flex;flex-direction:column;width:100%;height:100%;background:#fff}.search-bar{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.search-input-wrapper{position:relative;display:flex;align-items:center;flex:1;min-width:200px;max-width:500px}.search-icon{position:absolute;left:12px;color:#bfbfbf;pointer-events:none}.search-input{width:100%;height:36px;padding:4px 36px 4px 36px;font-size:14px;line-height:1.5;color:rgba(0, 0, 0, 0.85);background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:6px;transition:all 0.3s;outline:none}.search-input:hover{border-color:#40a9ff}.search-input:focus{border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.search-input::placeholder{color:#bfbfbf}.clear-button{position:absolute;right:12px;background:none;border:none;padding:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#bfbfbf;transition:color 0.3s}.clear-button:hover{color:#8c8c8c}.search-button{padding:4px 15px;height:36px;font-size:14px;line-height:1.5;border-radius:6px;color:#fff;background-color:#1890ff;border:1px solid #1890ff;cursor:pointer;transition:all 0.3s;outline:none;white-space:nowrap;flex-shrink:0}.search-button:hover{background-color:#40a9ff;border-color:#40a9ff}.search-button:active{background-color:#096dd9;border-color:#096dd9}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;gap:16px;color:#8c8c8c}.loading-spinner{width:32px;height:32px;border:3px solid #f0f0f0;border-top-color:#1890ff;border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:16px}.empty-icon{opacity:0.5}.empty-text{margin:0;color:#8c8c8c;font-size:14px}.position-list{flex:1;overflow-y:auto;min-height:0}.table-container{width:100%;overflow-x:auto}.position-table{width:100%;border-collapse:collapse;font-size:14px}.position-table thead{background-color:#fafafa;position:sticky;top:0;z-index:1}.position-table th{padding:12px 16px;text-align:left;font-weight:500;color:rgba(0, 0, 0, 0.85);border-bottom:1px solid #f0f0f0;white-space:nowrap}.position-table td{padding:12px 16px;border-bottom:1px solid #f0f0f0;color:rgba(0, 0, 0, 0.65)}.position-table tbody tr{transition:background-color 0.3s}.position-table tbody tr:hover{background-color:#fafafa}.position-table tbody tr.selected-row{background-color:#e6f7ff}.checkbox-column{width:50px;text-align:center}.title-column{min-width:150px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company-column{min-width:120px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-column{min-width:100px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.requirements-column{min-width:200px;max-width:300px}.requirements-text{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-break:break-word;line-height:1.5}.salary-column{min-width:100px;white-space:nowrap}.action-column{width:100px;text-align:center}.position-checkbox{width:16px;height:16px;cursor:pointer;accent-color:#1890ff}.select-button{padding:4px 15px;height:28px;font-size:14px;line-height:1.5;border-radius:6px;color:#fff;background-color:#1890ff;border:1px solid #1890ff;cursor:pointer;transition:all 0.3s;outline:none}.select-button:hover{background-color:#40a9ff;border-color:#40a9ff}.select-button:active{background-color:#096dd9;border-color:#096dd9}@media screen and (max-width: 768px){.search-bar{padding:12px;gap:8px}.search-input-wrapper{min-width:auto;max-width:none}.search-input{height:40px;font-size:16px}.search-button{height:40px;padding:4px 12px}.table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}.position-table{font-size:12px}.position-table th,.position-table td{padding:8px 12px}.title-column,.company-column,.location-column{min-width:100px}.select-button{padding:4px 12px;height:32px;font-size:14px}}.pagination-container{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px;border-top:1px solid #f0f0f0;flex-shrink:0}.pagination-button{padding:4px 15px;height:32px;font-size:14px;line-height:1.5;border-radius:6px;color:rgba(0, 0, 0, 0.85);background-color:#fff;border:1px solid #d9d9d9;cursor:pointer;transition:all 0.3s;outline:none}.pagination-button:hover:not(:disabled){color:#40a9ff;border-color:#40a9ff}.pagination-button:active:not(:disabled){color:#096dd9;border-color:#096dd9}.pagination-button:disabled{color:rgba(0, 0, 0, 0.25);background-color:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.pagination-info{font-size:14px;color:rgba(0, 0, 0, 0.65)}.position-list::-webkit-scrollbar{width:8px;height:8px}.position-list::-webkit-scrollbar-track{background:#f1f1f1}.position-list::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.position-list::-webkit-scrollbar-thumb:hover{background:#555}";
@@ -6763,7 +6763,7 @@ const PcmDigitalHuman = class {
6763
6763
  };
6764
6764
  PcmDigitalHuman.style = pcmDigitalHumanCss + hostCss$k;
6765
6765
 
6766
- const pcmDrawerCss = ":host{display:block}.drawer-container{position:fixed;top:0;left:0;width:0;height:0;overflow:visible}.drawer-mask{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.45);opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease}.mask-visible{opacity:1;visibility:visible}.drawer-content{position:fixed;top:0;right:0;bottom:0;display:flex;flex-direction:column;background-color:#fff;box-shadow:-2px 0 8px rgba(0, 0, 0, 0.15);transform:translateX(100%);transition:transform 0.3s cubic-bezier(0.23, 1, 0.32, 1)}.drawer-content-visible{transform:translateX(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;color:rgba(0, 0, 0, 0.85);border-bottom:1px solid #f0f0f0}.drawer-title{flex:1;margin:0;font-size:16px;line-height:22px;font-weight:500;color:rgba(0, 0, 0, 0.85);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px}.close-button:hover{background-color:rgba(0, 0, 0, 0.04)}.close-button span{font-size:24px;line-height:1;color:#999}.close-button:hover span{color:#666}.drawer-body{flex:1;padding:24px;overflow:auto}@media (max-width: 768px){.drawer-content{width:100% !important}.drawer-header{padding:12px 16px}.drawer-body{padding:16px}}";
6766
+ const pcmDrawerCss = ":host{display:block}.drawer-container{position:fixed;top:0;left:0;width:0;height:0;overflow:visible}.drawer-mask{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.45);opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease}.mask-visible{opacity:1;visibility:visible}.drawer-content{position:fixed;top:0;right:0;bottom:0;display:flex;flex-direction:column;background-color:#fff;box-shadow:-2px 0 8px rgba(0, 0, 0, 0.15);transform:translateX(100%);transition:transform 0.3s cubic-bezier(0.23, 1, 0.32, 1)}.drawer-content-visible{transform:translateX(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;color:rgba(0, 0, 0, 0.85);border-bottom:1px solid #f0f0f0}.drawer-title{flex:1;min-width:0;margin:0;font-size:16px;line-height:22px;font-weight:500;color:rgba(0, 0, 0, 0.85);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-header-actions{display:flex;align-items:center;flex:0 0 auto}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px}.close-button:hover{background-color:rgba(0, 0, 0, 0.04)}.close-button span{font-size:24px;line-height:1;color:#999}.close-button:hover span{color:#666}.drawer-body{flex:1;padding:24px;overflow:auto}@media (max-width: 768px){.drawer-content{width:100% !important}.drawer-header{padding:12px 16px}.drawer-body{padding:16px}}";
6767
6767
 
6768
6768
  const hostCss$j = ":host{font-size:16px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-weight:normal;font-style:normal;font-variant:normal;line-height:1.5;letter-spacing:normal;word-spacing:normal;color:#333;text-align:left;text-indent:0;text-transform:none;white-space:normal;word-wrap:normal;word-break:normal;visibility:visible;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;border-collapse:separate;border-spacing:0;caption-side:top;empty-cells:show;table-layout:auto;quotes:auto;cursor:auto;direction:ltr;orphans:2;widows:2;page-break-inside:auto;text-decoration:none;text-shadow:none;box-sizing:border-box;writing-mode:horizontal-tb;text-orientation:mixed}";
6769
6769
 
@@ -6888,7 +6888,7 @@ const PcmDrawer = class {
6888
6888
  const maskStyle = {
6889
6889
  zIndex: `${this.zIndex}`,
6890
6890
  };
6891
- return (index.h("div", { key: 'f38c91be7ea83c8d3a05d1147eb3bfc2f0005716', class: { 'drawer-container': true, 'drawer-open': this.isOpen } }, index.h("div", { key: 'a2fdccc60b8bf1e4321a65d1e153c21cce0e2e14', class: { 'drawer-mask': true, 'mask-visible': this.isOpen }, style: maskStyle, onClick: this.handleMaskClick }), index.h("div", { key: 'a45bd43b68ffc00e4e64f104b49cfb60f1af21f9', class: { 'drawer-content': true, 'drawer-content-visible': this.isOpen }, style: drawerStyle }, index.h("div", { key: '425a77cff512ea47f19a72e0b1b292b6e14df36d', class: "drawer-header" }, this.drawerTitle && index.h("div", { key: '3062fab8935fa0ba878e4d82e1e2605aadee4052', class: "drawer-title" }, this.drawerTitle), this.closable && (index.h("button", { key: 'f8af566e6edacbce32e0c58d2cd99d36ef07e3c4', class: "close-button", onClick: this.handleClose }, index.h("span", { key: '92f12937c3272369b95d9057c4c6c82f3c138cda' }, "\u00D7")))), index.h("div", { key: 'd371837bdfc53e4a43969a1658afe9d1f1444f3c', class: "drawer-body" }, index.h("slot", { key: '639c27717fa1fddfe032c489947387a3abe8a133' })))));
6891
+ return (index.h("div", { key: 'f38c91be7ea83c8d3a05d1147eb3bfc2f0005716', class: { 'drawer-container': true, 'drawer-open': this.isOpen } }, index.h("div", { key: 'a2fdccc60b8bf1e4321a65d1e153c21cce0e2e14', class: { 'drawer-mask': true, 'mask-visible': this.isOpen }, style: maskStyle, onClick: this.handleMaskClick }), index.h("div", { key: 'a45bd43b68ffc00e4e64f104b49cfb60f1af21f9', class: { 'drawer-content': true, 'drawer-content-visible': this.isOpen }, style: drawerStyle }, index.h("div", { key: '425a77cff512ea47f19a72e0b1b292b6e14df36d', class: "drawer-header" }, this.drawerTitle && index.h("div", { key: '3062fab8935fa0ba878e4d82e1e2605aadee4052', class: "drawer-title" }, this.drawerTitle), index.h("div", { key: 'f3df5451d8133299fad7fc4b916df74e6b055be2', class: "drawer-header-actions" }, index.h("slot", { key: '0b3c6fed01b036342bea8a14734052131194379d', name: "header-actions" })), this.closable && (index.h("button", { key: '32d77b5c72abfe9c5fe558549086ab9f75bd487a', class: "close-button", onClick: this.handleClose }, index.h("span", { key: 'dbf8465f55e4e97f6107a59bad3f7f7161b61aa9' }, "\u00D7")))), index.h("div", { key: '2bc780cc2acb610060c74e00d48e093125536cbd', class: "drawer-body" }, index.h("slot", { key: '5804f75437bf843f1d61bc40e32688113cab14c3' })))));
6892
6892
  }
6893
6893
  static get watchers() { return {
6894
6894
  "isOpen": ["visibleChanged"]
@@ -9320,11 +9320,11 @@ const PcmMessage = class {
9320
9320
  }, 300);
9321
9321
  }
9322
9322
  render() {
9323
- return (index.h("div", { key: '6dae832a791465cb5b965f9d5b984a45a6af0dc3', class: {
9323
+ return (index.h("div", { key: 'c188a98f18f0e369204b3bd7b8bb2733f3565f37', class: {
9324
9324
  'pcm-message': true,
9325
9325
  'pcm-message-visible': this.visible,
9326
9326
  [`pcm-message-${this.type}`]: true
9327
- } }, index.h("div", { key: '30717a23797ea0c287bbffc37b4a126e40639264', class: "pcm-message-content" }, index.h("span", { key: 'bcc4fa1987a4709cec74175434627f3c482f6de1', class: "pcm-message-icon" }, this.renderIcon()), index.h("span", { key: '42021e8bcdb80173e1ad1845ef6e64233bc6749c', class: "pcm-message-text" }, this.content))));
9327
+ } }, index.h("div", { key: '806c13dfecf97ab52be7e1516d13c3c8e41f76e6', class: "pcm-message-content" }, index.h("span", { key: '016431be8217adc8bc596dca54731065ed5d5794', class: "pcm-message-icon" }, this.renderIcon()), index.h("span", { key: '781ac62210ea029a115b12c668bfb1111a5b98e4', class: "pcm-message-text" }, this.content))));
9328
9328
  }
9329
9329
  renderIcon() {
9330
9330
  switch (this.type) {
@@ -12858,10 +12858,10 @@ const MobileUploadBtn$1 = class MobileUploadBtn {
12858
12858
  this.open = false;
12859
12859
  };
12860
12860
  render() {
12861
- return (index.h("div", { key: '1d0e493809a6b469a2d5b70b90d4ce2c17dfdd9e' }, index.h("div", { key: 'f2e60b07bc7969f52fa208411d881c329de3cf39', class: "mobile-upload" }, index.h("div", { key: 'c7c9e792a716673e16d89e8d48091011576113ae', class: "btn btn-link", onClick: () => {
12861
+ return (index.h("div", { key: '64c169fb9b75a398ce13fe0d5eebce7467c9c36c' }, index.h("div", { key: 'fe31df765aa170babcf4be865c4e613ed84e6075', class: "mobile-upload" }, index.h("div", { key: '594ce5afda56fb492148c54a6c24515ad453c74d', class: "btn btn-link", onClick: () => {
12862
12862
  this.open = true;
12863
12863
  this.handleStartMobileUpload();
12864
- } }, "\u626B\u7801\u586B\u5199")), this.open && index.h("div", { key: '4dc0fde012ed39d4a21f3ccde2aac8ebfcc80769', class: "mask" }, index.h("div", { key: '031e6a0bdf58cbf716dabdd8cff56fb094dcd964', class: "upload-wrapper" }, this.setStartMobileUpload ? index.h("div", { class: "upload-box" }, index.h("div", { class: "qrcode-wrapper" }, this.qrcodeStatus === 'active' && index.h("img", { class: "qrcode", src: this.qrcodeUrl }), this.qrcodeStatus === 'loading' && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D..."), this.qrcodeStatus === 'expired' && index.h("div", { class: "btn btn-link", onClick: this.handleStartMobileUpload }, "\u91CD\u65B0\u83B7\u53D6")), index.h("div", { class: "time-expire" }, "\u4E8C\u7EF4\u7801\u6709\u6548\u671F\u81F3 ", this.expireTime), index.h("div", { class: "alert-tip" }, "\u586B\u5199\u8FC7\u7A0B\u4E2D\u8BF7\u4E0D\u8981\u5173\u95ED\u6B64\u5F39\u7A97"), this.qrcodeStatus === 'active' && index.h("div", { style: { marginTop: '12px', fontSize: '12px' }, class: "btn btn-link", onClick: () => {
12864
+ } }, "\u626B\u7801\u586B\u5199")), this.open && index.h("div", { key: 'efedf361ca21b69e804d7018465b8ea709d77a62', class: "mask" }, index.h("div", { key: '2fe7c3e9495bd98c769dc17abc4ef771cd069db1', class: "upload-wrapper" }, this.setStartMobileUpload ? index.h("div", { class: "upload-box" }, index.h("div", { class: "qrcode-wrapper" }, this.qrcodeStatus === 'active' && index.h("img", { class: "qrcode", src: this.qrcodeUrl }), this.qrcodeStatus === 'loading' && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D..."), this.qrcodeStatus === 'expired' && index.h("div", { class: "btn btn-link", onClick: this.handleStartMobileUpload }, "\u91CD\u65B0\u83B7\u53D6")), index.h("div", { class: "time-expire" }, "\u4E8C\u7EF4\u7801\u6709\u6548\u671F\u81F3 ", this.expireTime), index.h("div", { class: "alert-tip" }, "\u586B\u5199\u8FC7\u7A0B\u4E2D\u8BF7\u4E0D\u8981\u5173\u95ED\u6B64\u5F39\u7A97"), this.qrcodeStatus === 'active' && index.h("div", { style: { marginTop: '12px', fontSize: '12px' }, class: "btn btn-link", onClick: () => {
12865
12865
  navigator.clipboard
12866
12866
  .writeText(this.mobileUrl)
12867
12867
  .then(() => {
@@ -12870,9 +12870,9 @@ const MobileUploadBtn$1 = class MobileUploadBtn {
12870
12870
  .catch(() => {
12871
12871
  message_service.Message.error("复制失败");
12872
12872
  });
12873
- } }, "\u590D\u5236\u4E8C\u7EF4\u7801\u5730\u5740")) : (this.startMobileUploadLoading && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D...")), index.h("div", { key: 'ce58ec0085f2d634035e85056104f049313d03db', style: { marginTop: '12px' } }, !!this.value?.length && index.h("textarea", { key: '9a8c7dff6a115c46023f36123772084b5d209060', readOnly: true, class: "qrcode-textarea", value: this.value, onChange: (e) => {
12873
+ } }, "\u590D\u5236\u4E8C\u7EF4\u7801\u5730\u5740")) : (this.startMobileUploadLoading && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D...")), index.h("div", { key: '825c016ff84e434920b4625e86c7cb6da7914d4b', style: { marginTop: '12px' } }, !!this.value?.length && index.h("textarea", { key: 'f720257e33fafa240ded29d060e220fb7b9a30b8', readOnly: true, class: "qrcode-textarea", value: this.value, onChange: (e) => {
12874
12874
  this.value = e.target.value;
12875
- } })), index.h("div", { key: 'c3e2dbca17a248e436228eb32acd7bf94e7709cf', class: "modal-footer" }, index.h("div", { key: 'cdccb55de57f2388fccde8933902f250e9531d2d', class: "btn btn-default", onClick: this.cancelMobileUpload }, "\u53D6\u6D88"), index.h("div", { key: 'bbe0d695f1181bf99007e35e1e947d8b316590b1', class: "btn btn-primary", onClick: () => {
12875
+ } })), index.h("div", { key: '70f7b7cf5dfdabcdd0e97462ef6bd2a7e64b5a4d', class: "modal-footer" }, index.h("div", { key: 'bd4206afce775530db222962394ffee865704770', class: "btn btn-default", onClick: this.cancelMobileUpload }, "\u53D6\u6D88"), index.h("div", { key: '4815b409aeac6876f34cf9a4924a8235eb6944c6', class: "btn btn-primary", onClick: () => {
12876
12876
  if (!this.value) {
12877
12877
  message_service.Message.info(`请输入内容`);
12878
12878
  return;
@@ -13059,14 +13059,14 @@ const MobileUploadBtn = class {
13059
13059
  }
13060
13060
  };
13061
13061
  render() {
13062
- return (index.h("div", { key: 'cb8d9253ff1218725c18450243c14986d097d9c6' }, index.h("div", { key: '7fe15ba78dc87481be6b0402849c99f63ca5c098', class: "mobile-upload" }, index.h("div", { key: 'f6b849e45a337bb1627dfe6f46860ba8844d8eb0', class: "btn btn-link", onClick: () => {
13062
+ return (index.h("div", { key: '20dc6f87dd5a8662274872c07103010ed1779365' }, index.h("div", { key: 'fd36f6ca0f661cc67291a3b6468663d5d05e10b9', class: "mobile-upload" }, index.h("div", { key: '808e01d3d7ce451a965ea519064a45d0ea91babb', class: "btn btn-link", onClick: () => {
13063
13063
  if (this.maxFileCount < 1) {
13064
13064
  message_service.Message.info('文件数量已达到上限!');
13065
13065
  return;
13066
13066
  }
13067
13067
  this.open = true;
13068
13068
  this.handleStartMobileUpload();
13069
- } }, "\u626B\u7801\u4E0A\u4F20")), this.open && index.h("div", { key: 'fe14054b810bf8a888ba92d9c6ea1a6867461180', class: "mask" }, index.h("div", { key: 'ed572a0cc1730a9b666a0f394ce0ea5187f29bc1', class: "upload-wrapper" }, this.setStartMobileUpload ? index.h("div", { class: "upload-box" }, index.h("div", { class: "qrcode-wrapper" }, this.qrcodeStatus === 'active' && index.h("img", { class: "qrcode", src: this.qrcodeUrl }), this.qrcodeStatus === 'loading' && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D..."), this.qrcodeStatus === 'expired' && index.h("div", { class: "btn btn-link", onClick: this.handleStartMobileUpload }, "\u91CD\u65B0\u83B7\u53D6")), index.h("div", { class: "time-expire" }, "\u4E8C\u7EF4\u7801\u6709\u6548\u671F\u81F3 ", this.expireTime), index.h("div", { class: "alert-tip" }, "\u4E0A\u4F20\u8FC7\u7A0B\u4E2D\u8BF7\u4E0D\u8981\u5173\u95ED\u6B64\u5F39\u7A97"), this.qrcodeStatus === 'active' && index.h("div", { style: { marginTop: '12px', fontSize: '12px' }, class: "btn btn-link", onClick: () => {
13069
+ } }, "\u626B\u7801\u4E0A\u4F20")), this.open && index.h("div", { key: '56d15d6a122d146e4a791bcea2848b67fd8fd027', class: "mask" }, index.h("div", { key: 'bb6464fdbf26c51a4e6e67f774b1c66f7466701d', class: "upload-wrapper" }, this.setStartMobileUpload ? index.h("div", { class: "upload-box" }, index.h("div", { class: "qrcode-wrapper" }, this.qrcodeStatus === 'active' && index.h("img", { class: "qrcode", src: this.qrcodeUrl }), this.qrcodeStatus === 'loading' && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D..."), this.qrcodeStatus === 'expired' && index.h("div", { class: "btn btn-link", onClick: this.handleStartMobileUpload }, "\u91CD\u65B0\u83B7\u53D6")), index.h("div", { class: "time-expire" }, "\u4E8C\u7EF4\u7801\u6709\u6548\u671F\u81F3 ", this.expireTime), index.h("div", { class: "alert-tip" }, "\u4E0A\u4F20\u8FC7\u7A0B\u4E2D\u8BF7\u4E0D\u8981\u5173\u95ED\u6B64\u5F39\u7A97"), this.qrcodeStatus === 'active' && index.h("div", { style: { marginTop: '12px', fontSize: '12px' }, class: "btn btn-link", onClick: () => {
13070
13070
  navigator.clipboard
13071
13071
  .writeText(this.mobileUrl)
13072
13072
  .then(() => {
@@ -13075,12 +13075,12 @@ const MobileUploadBtn = class {
13075
13075
  .catch(() => {
13076
13076
  message_service.Message.error("复制失败");
13077
13077
  });
13078
- } }, "\u590D\u5236\u4E8C\u7EF4\u7801\u5730\u5740")) : (this.startMobileUploadLoading && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D...")), index.h("div", { key: '664fe8d0812dbdba61ecf71f89ff886338776130', style: { marginTop: '12px' } }, this.value?.map?.((item, index$1) => {
13078
+ } }, "\u590D\u5236\u4E8C\u7EF4\u7801\u5730\u5740")) : (this.startMobileUploadLoading && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D...")), index.h("div", { key: '154d5c6a30d7dbc881bcb5c1e555ef1fc404eb96', style: { marginTop: '12px' } }, this.value?.map?.((item, index$1) => {
13079
13079
  return index.h("div", { class: "file-item", key: index$1 }, index.h("div", { class: "file-item-content" }, index.h("span", { class: "file-icon" }, "\uD83D\uDCDD"), index.h("span", { class: "file-name" }, item?.file_name)), index.h("button", { class: "remove-file", onClick: (e) => {
13080
13080
  e.stopPropagation();
13081
13081
  this.handleDelete(item.cos_key);
13082
13082
  } }, "\u00D7"));
13083
- })), index.h("div", { key: '72c0d0c0170a90844f2b14f22a6af756f4d73bbd', class: "modal-footer" }, index.h("div", { key: 'cbb2469909d54fc03769fe052607fa864d76326e', class: "btn btn-default", onClick: this.cancelMobileUpload }, "\u53D6\u6D88"), index.h("div", { key: 'b488838d686cc20de712866cc219195862409c1c', class: "btn btn-primary", onClick: () => {
13083
+ })), index.h("div", { key: '2e72a23d1f3a3f554b50ae87355c76eb185df580', class: "modal-footer" }, index.h("div", { key: '79d22fd56b90b35a42c547d823281e47e00ab6f5', class: "btn btn-default", onClick: this.cancelMobileUpload }, "\u53D6\u6D88"), index.h("div", { key: '7297473486b522a5418da7b921580d3685eb3f49', class: "btn btn-primary", onClick: () => {
13084
13084
  if (this.value.length > this.maxFileCount) {
13085
13085
  message_service.Message.info(`最多只能选择${this.maxFileCount}个文件,请删除多余文件!`);
13086
13086
  return;
@@ -16329,7 +16329,7 @@ const ChatVirtualAPPModal = class {
16329
16329
  };
16330
16330
  ChatVirtualAPPModal.style = pcmVirtualChatModalCss + hostCss$3;
16331
16331
 
16332
- const pcmZskChatModalCss = ":host{display:block;font-size:16px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;z-index:1000;overflow-y:auto;-webkit-overflow-scrolling:touch;}.fullscreen-overlay{padding:0;position:absolute;width:100%;height:calc(100% - 10px)}.modal-container{background:white;border-radius:8px;width:100%;max-width:900px;display:flex;flex-direction:column;position:relative;margin:5vh auto auto auto}.modal-container.fullscreen{width:100%;max-width:none;height:100%;border-radius:0;margin:0;display:flex;flex-direction:column;max-height:100%}.modal-container.fullscreen>div:not(.modal-header):not(.initial-upload){display:flex;flex-direction:column;flex:1;overflow:hidden;height:100%}.pc-layout{width:80%;max-width:800px;min-width:320px;min-height:400px}.video-preview.placeholder{display:flex;justify-content:center;align-items:center;background:#EAEAEA}.placeholder-status{color:#00000066}.waiting-message p{margin:0;font-size:16px;color:white;font-weight:500}.recording-container{width:100%;display:flex;flex-direction:column;align-items:center}.video-area{width:100%;display:flex;flex-direction:column;align-items:center}.stop-recording-button{width:100%;height:100%;font-size:16px;background:#f44336;border-radius:6px;color:white;border:none;cursor:pointer}.stop-recording-button:hover{background:#d32f2f}.play-audio-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:4px 16px;height:50px;border-bottom:1px solid #e8e8e8;flex-shrink:0;}.header-left{display:flex;align-items:center;gap:8px}.header-icon{width:24px;height:24px}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px}.close-button:hover{background-color:rgba(0, 0, 0, 0.04)}.close-button span{font-size:24px;line-height:1;color:#999}.close-button:hover span{color:#666}.chat-container{background-image:url(https://pub.pincaimao.com/static/web/images/login/bg_login_m.png);background-size:100%;height:100%;border-radius:0px 0px 8px 8px}.chat-history{position:relative;flex:1;overflow-y:auto;padding:20px;scroll-behavior:smooth;height:60vh;min-height:400px;max-height:900px}.fullscreen .chat-history{height:auto;flex:1 1 auto}.message-input{padding:16px;border-top:1px solid #eee;display:flex;gap:8px;align-items:center}.message-input input{flex:1;padding:8px 12px;border:1px solid #ddd;border-radius:4px;outline:none;transition:border-color 0.2s ease}.message-input input:focus{border-color:#bbb}.message{margin-bottom:16px;opacity:1;transition:opacity 0.3s ease}.message-content{max-width:70%;padding:8px 12px;border-radius:8px;word-break:break-word}.message-content p{margin:0;word-break:break-word}.user-message{display:flex;justify-content:flex-end}.agent-message{display:flex;justify-content:flex-start}.user-message .message-content{background-color:#007bff;color:white}.agent-message .message-content{background-color:#f1f1f1}.message-time{font-size:12px;color:#999;margin-top:4px;display:block}.send-button{width:38px;height:38px;border-radius:16px;background:#0d75fb;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color 0.2s ease}.send-button img{width:24px;height:24px}.send-button:hover{background:#0a62d6}.send-button.disabled{background:#d9d9d9;cursor:not-allowed}.empty-state{display:flex;justify-content:center;align-items:center;height:100%;color:#999;text-align:center}.loading-container{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(255, 255, 255, 0.98);z-index:1;opacity:1;transition:opacity 0.3s ease}.loading-container p{margin-top:16px;color:#666;font-size:14px}.loading-spinner{width:40px;height:40px;border:3px solid #f3f3f3;border-top:3px solid #1890ff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.messages-wrapper{width:100%;min-height:100%;display:flex;flex-direction:column;justify-content:flex-end}.messages-wrapper.has-overflow{justify-content:flex-start}.suggested-questions{display:flex;flex-direction:column;gap:8px;padding:16px}.suggested-question{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:#f3f4f6;border-radius:4px;cursor:pointer;font-size:14px;color:#374151;transition:background-color 0.2s}.suggested-question:hover{background-color:#e5e7eb}.arrow-right{margin-left:8px}.loading-suggestions{display:flex;justify-content:center;padding:16px}.loading-spinner-small{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#6b7280;border-radius:50%;animation:spin 1s linear infinite}.upload-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;color:#666;border-radius:4px;transition:background-color 0.2s}.upload-button:hover{background-color:rgba(0, 0, 0, 0.04)}.upload-button svg{width:20px;height:20px}.file-input{display:none}.selected-file{font-size:12px;color:#666;margin-left:8px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-wrapper{flex:1;display:flex;align-items:center;border:1px solid #ddd;border-radius:4px;padding:0 4px;background:white}.input-wrapper input{border:none;flex:1;padding:8px;outline:none}.input-wrapper:focus-within{border-color:#bbb}.file-preview{padding:8px 16px;border-top:1px solid #eee;background-color:#f9f9f9}.recording-section{border-top:1px solid #eee;display:flex;flex-direction:column;align-items:center;padding:10px 20px 0px 20px;border-radius:14px 14px 0 0;flex:0 0 auto}.recording-section .video-preview{width:100%;height:200px;max-width:400px;position:relative;margin-bottom:10px;border:1px solid #ddd;border-radius:12px;overflow:hidden}.recording-section video{width:100%;height:100%;object-fit:cover}.recording-status{position:absolute;top:10px;left:10px;background-color:rgba(0, 0, 0, 0.6);color:white;padding:4px 8px;border-radius:4px;display:flex;align-items:center;gap:5px;font-size:14px;z-index:2}.recording-status .recording-dot{display:inline-block;width:10px;height:10px;background-color:red;border-radius:50%;margin-right:5px;animation:blink 1s infinite}.recording-status.warning{color:#ff4d4f;animation:blink 1s infinite}@keyframes blink{0%{opacity:1}50%{opacity:0.5}100%{opacity:1}}.recording-section .stop-recording-button{background-color:#f44336;color:white;border:none;cursor:pointer;font-weight:bold}.recording-section .stop-recording-button:hover{background-color:#d32f2f}.fullscreen{width:100vw;border-radius:0;height:100vh;display:flex;flex-direction:column;overflow-y:auto}.recording-controls{margin-top:10px;height:53px;width:100%;max-width:400px;display:flex;justify-content:center}.recording-controls .waiting-message{text-align:center;color:white;font-size:16px;background-image:linear-gradient(100deg, #4A9FFF 0%, #1058FF 100%);border-radius:6px;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);width:95%;display:flex;justify-content:center;align-items:center;cursor:pointer}.recording-controls .waiting-message.loading{background:#faad14}.recording-controls .waiting-message p{margin:0;font-size:16px;color:white;font-weight:500}.recording-controls .stop-recording-button{background-color:#dc3545;color:white;border:none;cursor:pointer;font-size:16px}.recording-controls .stop-recording-button:hover{background-color:#c82333}.recording-controls .stop-recording-button.disabled{background:#ccc;cursor:not-allowed}.recording-controls .stop-recording-button.disabled:hover{background:#ccc}.progress-container{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:400px;margin-top:10px;padding:0 5px}.progress-bar-container{height:4px;background-color:#E5E5E5;border-radius:2px;overflow:hidden;margin-right:10px;width:75px}.progress-bar{height:100%;background-image:linear-gradient(111deg, #4A9FFF 0%, #1058FF 100%);border-radius:2px;transition:width 0.3s ease}.progress-text{font-size:14px;color:#666;white-space:nowrap}.text-input-area{display:flex;flex-direction:column;width:100%;height:100%;padding:0px 16px 16px 16px;border-radius:8px;border:none;}.text-answer-input{flex:1;min-height:80px;padding:12px 12px 0px 12px;border:1px solid #ddd;border-radius:8px 8px 0 0;resize:none;font-size:16px;background-color:#fff;border-bottom:none;outline:none;}.input-toolbar{display:flex;justify-content:end;align-items:center;padding:8px 12px;background-color:#fff;border:1px solid #ddd;border-top:none;border-radius:0 0 8px 8px}.text-answer-input:focus{border-color:rgb(74, 144, 226);border-bottom:none}.text-answer-input:focus+.input-toolbar{border-color:rgb(74, 144, 226);border-top:none}.toolbar-actions{width:32px;height:32px;display:flex;justify-content:center;align-items:center;margin-right:10px;border:1px solid #d9d9d9;border-radius:6px}.toolbar-actions:hover{background-color:#f0f0f0}.toolbar-button{background:transparent;border:none;color:#666;cursor:pointer;padding:0;margin:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.toolbar-button>div,.toolbar-button>svg{display:flex;justify-content:center;align-items:center}.toolbar-button img{width:16px;height:16px}.submit-text-button{padding:6px 16px;background-color:#4a90e2;color:white;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color 0.2s}.submit-text-button:hover:not(.disabled){background-color:#3a7bc8}.submit-text-button.disabled{background-color:#b3b3b3;cursor:not-allowed}.toolbar-button.recording{background-color:rgba(255, 0, 0, 0.1);color:#ff3b30;animation:pulse 1.5s infinite}.toolbar-button.converting{background-color:rgba(0, 122, 255, 0.1);color:#007aff}.toolbar-button .recording-time{font-size:12px;margin-left:4px}.converting-indicator{display:flex;justify-content:center;align-items:center}.converting-indicator svg{animation:spin 1.5s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.4)}70%{box-shadow:0 0 0 6px rgba(255, 0, 0, 0)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0)}}@media screen and (max-width: 768px){.pc-layout{width:95%}.modal-overlay{padding:10px 0px 0px 0px}.modal-container.fullscreen{width:100%;height:100%;max-height:100%;border-radius:16px 16px 0 0;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}}.references-section{margin-top:30px;padding:12px;background-color:#f9f9f9;border-radius:8px;border:1px solid #e8e8e8}.references-title{font-size:14px;color:#666;margin:0 0 8px 0;font-weight:500}.references-list{display:flex;flex-direction:column;gap:8px}.reference-item{background-color:#fff;border:1px solid #e8e8e8;border-radius:6px;padding:10px;cursor:pointer;transition:background-color 0.2s, box-shadow 0.2s}.reference-item:hover{background-color:#f5f5f5;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1)}.reference-header{display:flex;align-items:center;gap:6px;position:relative}.reference-icon{color:#1890ff;display:flex;align-items:center}.reference-name{font-size:13px;font-weight:500;color:#333;flex:1}.download-icon{color:#1890ff;display:flex;align-items:center}.reference-content{display:none}.suggested-questions{margin-top:20px;padding:12px;background-color:#f0f7ff;border-radius:8px;border:1px solid #d6e8ff}.suggested-title{font-size:14px;color:#1890ff;margin:0 0 8px 0;font-weight:500}.suggested-question{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:#fff;border:1px solid #e6f7ff;border-radius:6px;cursor:pointer;font-size:14px;color:#1890ff;transition:all 0.3s;margin-bottom:8px}.suggested-question:last-child{margin-bottom:0}.suggested-question:hover{background-color:#e6f7ff;border-color:#91d5ff}.arrow-right{color:#1890ff;display:flex;align-items:center}.loading-suggestions{display:flex;justify-content:center;padding:16px}.loading-spinner-small{width:20px;height:20px;border:2px solid #e6f7ff;border-top-color:#1890ff;border-radius:50%;animation:spin 1s linear infinite}";
16332
+ const pcmZskChatModalCss = ":host{display:block;font-size:16px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;z-index:1000;overflow-y:auto;-webkit-overflow-scrolling:touch;}.fullscreen-overlay{padding:0;position:absolute;width:100%;height:calc(100% - 10px)}.modal-container{background:white;border-radius:8px;width:100%;max-width:900px;display:flex;flex-direction:column;position:relative;margin:5vh auto auto auto}.modal-container.fullscreen{width:100%;max-width:none;height:100%;border-radius:0;margin:0;display:flex;flex-direction:column;max-height:100%}.modal-container.fullscreen>div:not(.modal-header):not(.initial-upload){display:flex;flex-direction:column;flex:1;overflow:hidden;height:100%}.pc-layout{width:80%;max-width:800px;min-width:320px;min-height:400px}.video-preview.placeholder{display:flex;justify-content:center;align-items:center;background:#EAEAEA}.placeholder-status{color:#00000066}.waiting-message p{margin:0;font-size:16px;color:white;font-weight:500}.recording-container{width:100%;display:flex;flex-direction:column;align-items:center}.video-area{width:100%;display:flex;flex-direction:column;align-items:center}.stop-recording-button{width:100%;height:100%;font-size:16px;background:#f44336;border-radius:6px;color:white;border:none;cursor:pointer}.stop-recording-button:hover{background:#d32f2f}.play-audio-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:4px 16px;height:50px;border-bottom:1px solid #e8e8e8;flex-shrink:0;}.header-left{display:flex;align-items:center;gap:8px}.header-icon{width:24px;height:24px}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px}.close-button:hover{background-color:rgba(0, 0, 0, 0.04)}.close-button span{font-size:24px;line-height:1;color:#999}.close-button:hover span{color:#666}.chat-container{background-image:url(https://pub.pincaimao.com/static/web/images/login/bg_login_m.png);background-size:100%;height:100%;border-radius:0px 0px 8px 8px}.chat-history{position:relative;flex:1;overflow-y:auto;padding:20px;scroll-behavior:smooth;height:60vh;min-height:400px;max-height:900px}.fullscreen .chat-history{height:auto;flex:1 1 auto}.message-input{padding:16px;border-top:1px solid #eee;display:flex;gap:8px;align-items:center}.message-input input{flex:1;padding:8px 12px;border:1px solid #ddd;border-radius:4px;outline:none;transition:border-color 0.2s ease}.message-input input:focus{border-color:#bbb}.message{margin-bottom:16px;opacity:1;transition:opacity 0.3s ease}.message-content{max-width:70%;padding:8px 12px;border-radius:8px;word-break:break-word}.message-content p{margin:0;word-break:break-word}.user-message{display:flex;justify-content:flex-end}.agent-message{display:flex;justify-content:flex-start}.user-message .message-content{background-color:#007bff;color:white}.agent-message .message-content{background-color:#f1f1f1}.message-time{font-size:12px;color:#999;margin-top:4px;display:block}.send-button{width:38px;height:38px;border-radius:16px;background:#0d75fb;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color 0.2s ease}.send-button img{width:24px;height:24px}.send-button:hover{background:#0a62d6}.send-button.disabled{background:#d9d9d9;cursor:not-allowed}.empty-state{display:flex;justify-content:center;align-items:center;height:100%;color:#999;text-align:center}.loading-container{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(255, 255, 255, 0.98);z-index:1;opacity:1;transition:opacity 0.3s ease}.loading-container p{margin-top:16px;color:#666;font-size:14px}.loading-spinner{width:40px;height:40px;border:3px solid #f3f3f3;border-top:3px solid #1890ff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.messages-wrapper{width:100%;min-height:100%;display:flex;flex-direction:column;justify-content:flex-end}.messages-wrapper.has-overflow{justify-content:flex-start}.suggested-questions{display:flex;flex-direction:column;gap:8px;padding:16px}.suggested-question{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:#f3f4f6;border-radius:4px;cursor:pointer;font-size:14px;color:#374151;transition:background-color 0.2s}.suggested-question:hover{background-color:#e5e7eb}.arrow-right{margin-left:8px}.loading-suggestions{display:flex;justify-content:center;padding:16px}.loading-spinner-small{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#6b7280;border-radius:50%;animation:spin 1s linear infinite}.upload-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;color:#666;border-radius:4px;transition:background-color 0.2s}.upload-button:hover{background-color:rgba(0, 0, 0, 0.04)}.upload-button svg{width:20px;height:20px}.file-input{display:none}.selected-file{font-size:12px;color:#666;margin-left:8px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-wrapper{flex:1;display:flex;align-items:center;border:1px solid #ddd;border-radius:4px;padding:0 4px;background:white}.input-wrapper input{border:none;flex:1;padding:8px;outline:none}.input-wrapper:focus-within{border-color:#bbb}.file-preview{padding:8px 16px;border-top:1px solid #eee;background-color:#f9f9f9}.document-download-actions{display:flex;align-items:center;gap:8px;margin-right:8px}.document-download-button{padding:4px 8px;color:#1890ff;font-size:14px;line-height:20px;background:transparent;border:none;border-radius:4px;cursor:pointer}.document-download-button:hover{background-color:#e6f7ff}.document-download-button:focus-visible{outline:2px solid #1890ff;outline-offset:2px}.document-download-qr-code{display:flex;flex-direction:column;align-items:center;padding:8px 0}.document-download-qr-code img{width:200px;height:200px}.document-download-qr-code p{margin:16px 0 0;color:#666;font-size:14px}.recording-section{border-top:1px solid #eee;display:flex;flex-direction:column;align-items:center;padding:10px 20px 0px 20px;border-radius:14px 14px 0 0;flex:0 0 auto}.recording-section .video-preview{width:100%;height:200px;max-width:400px;position:relative;margin-bottom:10px;border:1px solid #ddd;border-radius:12px;overflow:hidden}.recording-section video{width:100%;height:100%;object-fit:cover}.recording-status{position:absolute;top:10px;left:10px;background-color:rgba(0, 0, 0, 0.6);color:white;padding:4px 8px;border-radius:4px;display:flex;align-items:center;gap:5px;font-size:14px;z-index:2}.recording-status .recording-dot{display:inline-block;width:10px;height:10px;background-color:red;border-radius:50%;margin-right:5px;animation:blink 1s infinite}.recording-status.warning{color:#ff4d4f;animation:blink 1s infinite}@keyframes blink{0%{opacity:1}50%{opacity:0.5}100%{opacity:1}}.recording-section .stop-recording-button{background-color:#f44336;color:white;border:none;cursor:pointer;font-weight:bold}.recording-section .stop-recording-button:hover{background-color:#d32f2f}.fullscreen{width:100vw;border-radius:0;height:100vh;display:flex;flex-direction:column;overflow-y:auto}.recording-controls{margin-top:10px;height:53px;width:100%;max-width:400px;display:flex;justify-content:center}.recording-controls .waiting-message{text-align:center;color:white;font-size:16px;background-image:linear-gradient(100deg, #4A9FFF 0%, #1058FF 100%);border-radius:6px;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);width:95%;display:flex;justify-content:center;align-items:center;cursor:pointer}.recording-controls .waiting-message.loading{background:#faad14}.recording-controls .waiting-message p{margin:0;font-size:16px;color:white;font-weight:500}.recording-controls .stop-recording-button{background-color:#dc3545;color:white;border:none;cursor:pointer;font-size:16px}.recording-controls .stop-recording-button:hover{background-color:#c82333}.recording-controls .stop-recording-button.disabled{background:#ccc;cursor:not-allowed}.recording-controls .stop-recording-button.disabled:hover{background:#ccc}.progress-container{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:400px;margin-top:10px;padding:0 5px}.progress-bar-container{height:4px;background-color:#E5E5E5;border-radius:2px;overflow:hidden;margin-right:10px;width:75px}.progress-bar{height:100%;background-image:linear-gradient(111deg, #4A9FFF 0%, #1058FF 100%);border-radius:2px;transition:width 0.3s ease}.progress-text{font-size:14px;color:#666;white-space:nowrap}.text-input-area{display:flex;flex-direction:column;width:100%;height:100%;padding:0px 16px 16px 16px;border-radius:8px;border:none;}.text-answer-input{flex:1;min-height:80px;padding:12px 12px 0px 12px;border:1px solid #ddd;border-radius:8px 8px 0 0;resize:none;font-size:16px;background-color:#fff;border-bottom:none;outline:none;}.input-toolbar{display:flex;justify-content:end;align-items:center;padding:8px 12px;background-color:#fff;border:1px solid #ddd;border-top:none;border-radius:0 0 8px 8px}.text-answer-input:focus{border-color:rgb(74, 144, 226);border-bottom:none}.text-answer-input:focus+.input-toolbar{border-color:rgb(74, 144, 226);border-top:none}.toolbar-actions{width:32px;height:32px;display:flex;justify-content:center;align-items:center;margin-right:10px;border:1px solid #d9d9d9;border-radius:6px}.toolbar-actions:hover{background-color:#f0f0f0}.toolbar-button{background:transparent;border:none;color:#666;cursor:pointer;padding:0;margin:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.toolbar-button>div,.toolbar-button>svg{display:flex;justify-content:center;align-items:center}.toolbar-button img{width:16px;height:16px}.submit-text-button{padding:6px 16px;background-color:#4a90e2;color:white;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color 0.2s}.submit-text-button:hover:not(.disabled){background-color:#3a7bc8}.submit-text-button.disabled{background-color:#b3b3b3;cursor:not-allowed}.toolbar-button.recording{background-color:rgba(255, 0, 0, 0.1);color:#ff3b30;animation:pulse 1.5s infinite}.toolbar-button.converting{background-color:rgba(0, 122, 255, 0.1);color:#007aff}.toolbar-button .recording-time{font-size:12px;margin-left:4px}.converting-indicator{display:flex;justify-content:center;align-items:center}.converting-indicator svg{animation:spin 1.5s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.4)}70%{box-shadow:0 0 0 6px rgba(255, 0, 0, 0)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0)}}@media screen and (max-width: 768px){.pc-layout{width:95%}.modal-overlay{padding:10px 0px 0px 0px}.modal-container.fullscreen{width:100%;height:100%;max-height:100%;border-radius:16px 16px 0 0;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}}.references-section{margin-top:30px;padding:12px;background-color:#f9f9f9;border-radius:8px;border:1px solid #e8e8e8}.references-title{font-size:14px;color:#666;margin:0 0 8px 0;font-weight:500}.references-list{display:flex;flex-direction:column;gap:8px}.reference-item{background-color:#fff;border:1px solid #e8e8e8;border-radius:6px;padding:10px;cursor:pointer;transition:background-color 0.2s, box-shadow 0.2s}.reference-item:hover{background-color:#f5f5f5;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1)}.reference-header{display:flex;align-items:center;gap:6px;position:relative}.reference-icon{color:#1890ff;display:flex;align-items:center}.reference-name{font-size:13px;font-weight:500;color:#333;flex:1}.download-icon{color:#1890ff;display:flex;align-items:center}.reference-content{display:none}.suggested-questions{margin-top:20px;padding:12px;background-color:#f0f7ff;border-radius:8px;border:1px solid #d6e8ff}.suggested-title{font-size:14px;color:#1890ff;margin:0 0 8px 0;font-weight:500}.suggested-question{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:#fff;border:1px solid #e6f7ff;border-radius:6px;cursor:pointer;font-size:14px;color:#1890ff;transition:all 0.3s;margin-bottom:8px}.suggested-question:last-child{margin-bottom:0}.suggested-question:hover{background-color:#e6f7ff;border-color:#91d5ff}.arrow-right{color:#1890ff;display:flex;align-items:center}.loading-suggestions{display:flex;justify-content:center;padding:16px}.loading-spinner-small{width:20px;height:20px;border:2px solid #e6f7ff;border-top-color:#1890ff;border-radius:50%;animation:spin 1s linear infinite}";
16333
16333
 
16334
16334
  const hostCss$2 = ":host{font-size:16px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-weight:normal;font-style:normal;font-variant:normal;line-height:1.5;letter-spacing:normal;word-spacing:normal;color:#333;text-align:left;text-indent:0;text-transform:none;white-space:normal;word-wrap:normal;word-break:normal;visibility:visible;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;border-collapse:separate;border-spacing:0;caption-side:top;empty-cells:show;table-layout:auto;quotes:auto;cursor:auto;direction:ltr;orphans:2;widows:2;page-break-inside:auto;text-decoration:none;text-shadow:none;box-sizing:border-box;writing-mode:horizontal-tb;text-orientation:mixed}";
16335
16335
 
@@ -16486,6 +16486,9 @@ const ChatKBModal = class {
16486
16486
  isDrawerOpen = false;
16487
16487
  previewUrl = '';
16488
16488
  previewFileName = '';
16489
+ downloadUrl = '';
16490
+ isDownloadQrCodeOpen = false;
16491
+ downloadQrCodeUrl = '';
16489
16492
  handleTokenChange(newToken) {
16490
16493
  // 当传入的 token 变化时,更新 authStore 中的 token
16491
16494
  if (newToken && newToken !== index$1.authStore.getToken()) {
@@ -17125,10 +17128,9 @@ const ChatKBModal = class {
17125
17128
  this.textAnswer = question;
17126
17129
  this.submitTextAnswer();
17127
17130
  };
17128
- // 添加文档下载方法
17129
- async handleDocumentDownload(ref) {
17131
+ // 打开引用文档预览
17132
+ async handleDocumentPreview(ref) {
17130
17133
  try {
17131
-
17132
17134
  // 从文档ID中提取数字部分
17133
17135
  const docIdMatch = ref.doc_info.doc_id.match(/docID_(\d+)/);
17134
17136
  if (!docIdMatch || !docIdMatch[1]) {
@@ -17148,6 +17150,7 @@ const ChatKBModal = class {
17148
17150
  if (this.filePreviewMode === 'drawer') {
17149
17151
  this.previewUrl = previewUrl;
17150
17152
  this.previewFileName = ref.doc_info.doc_name;
17153
+ this.downloadUrl = baseUrl;
17151
17154
  this.isDrawerOpen = true;
17152
17155
  }
17153
17156
  else {
@@ -17159,10 +17162,42 @@ const ChatKBModal = class {
17159
17162
  }
17160
17163
  }
17161
17164
  catch (error) {
17162
- console.error('下载文档失败:', error);
17163
- alert('下载文档失败,请稍后再试');
17165
+ console.error('打开文档预览失败:', error);
17166
+ alert('打开文档预览失败,请稍后再试');
17164
17167
  }
17165
17168
  }
17169
+ handleDocumentLocalDownload = async () => {
17170
+ if (!this.downloadUrl)
17171
+ return;
17172
+ try {
17173
+ const response = await fetch(this.downloadUrl);
17174
+ if (!response.ok) {
17175
+ throw new Error(`下载文档失败,状态码:${response.status}`);
17176
+ }
17177
+ const blob = await response.blob();
17178
+ const objectUrl = URL.createObjectURL(blob);
17179
+ const link = document.createElement('a');
17180
+ link.href = objectUrl;
17181
+ link.download = this.previewFileName;
17182
+ document.body.appendChild(link);
17183
+ link.click();
17184
+ link.remove();
17185
+ URL.revokeObjectURL(objectUrl);
17186
+ }
17187
+ catch (error) {
17188
+ console.error('本地下载文档失败:', error);
17189
+ alert('本地下载文档失败,请稍后再试');
17190
+ }
17191
+ };
17192
+ handleDocumentQrCodeDownload = () => {
17193
+ if (!this.downloadUrl)
17194
+ return;
17195
+ const qr = qrcode(0, 'M');
17196
+ qr.addData(this.downloadUrl);
17197
+ qr.make();
17198
+ this.downloadQrCodeUrl = qr.createDataURL(4, 0);
17199
+ this.isDownloadQrCodeOpen = true;
17200
+ };
17166
17201
  // 添加清除对话记录的方法
17167
17202
  handleClearConversation = () => {
17168
17203
  if (this.isLoading || this.currentStreamingMessage)
@@ -17229,7 +17264,7 @@ const ChatKBModal = class {
17229
17264
  // 只有当没有正在流式输出的消息且有引用文档且未设置隐藏引用且showReferences为true时才显示
17230
17265
  if (!this.showReferences || this.currentRefs.length === 0 || this.currentStreamingMessage || this.shouldHideReferences)
17231
17266
  return null;
17232
- return (index.h("div", { class: "references-section" }, index.h("h3", { class: "references-title" }, "\u5F15\u7528\u6587\u6863"), index.h("div", { class: "references-list" }, this.currentRefs.map((ref, index$1) => (index.h("div", { class: "reference-item", key: `ref-${index$1}`, onClick: () => this.handleDocumentDownload(ref) }, index.h("div", { class: "reference-header" }, index.h("span", { class: "reference-icon" }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor" }, index.h("path", { d: "M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" }))), index.h("span", { class: "reference-name" }, ref.doc_info.doc_name), index.h("span", { class: "download-icon" }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor" }, index.h("path", { d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" }))))))))));
17267
+ return (index.h("div", { class: "references-section" }, index.h("h3", { class: "references-title" }, "\u5F15\u7528\u6587\u6863"), index.h("div", { class: "references-list" }, this.currentRefs.map((ref, index$1) => (index.h("div", { class: "reference-item", key: `ref-${index$1}`, onClick: () => this.handleDocumentPreview(ref) }, index.h("div", { class: "reference-header" }, index.h("span", { class: "reference-icon" }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor" }, index.h("path", { d: "M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z" }))), index.h("span", { class: "reference-name" }, ref.doc_info.doc_name), index.h("span", { class: "download-icon" }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor" }, index.h("path", { d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" }))))))))));
17233
17268
  };
17234
17269
  // 渲染推荐问题组件
17235
17270
  const renderSuggestedQuestions = () => {
@@ -17268,7 +17303,18 @@ const ChatKBModal = class {
17268
17303
  return (index.h("div", { class: overlayClass, style: modalStyle }, index.h("div", { class: containerClass }, this.isShowHeader && (index.h("div", { class: "modal-header" }, index.h("div", { class: "header-left" }, displayIcon && index.h("img", { src: displayIcon, class: "header-icon", alt: "\u5E94\u7528\u56FE\u6807" }), index.h("div", null, displayTitle)), this.isNeedClose && (index.h("button", { class: "close-button", onClick: this.handleClose }, index.h("span", null, "\u00D7"))))), index.h("div", { class: "chat-container" }, index.h("div", { class: "chat-history", onScroll: this.handleScroll, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd, onWheel: this.handleWheel }, this.isLoadingHistory ? (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", null, "\u52A0\u8F7D\u5386\u53F2\u6D88\u606F\u4E2D..."))) : (index.h("div", null, this.messages.map((message) => (index.h("div", { id: `message_${message.id}`, key: message.id }, index.h("pcm-chat-message", { message: message, showFeedbackButtons: false })))), this.currentStreamingMessage && (index.h("div", { id: `message_${this.currentStreamingMessage.id}` }, index.h("pcm-chat-message", { message: this.currentStreamingMessage, showFeedbackButtons: false }))), this.messages.length === 0 && !this.currentStreamingMessage && (index.h("div", { class: "empty-state" }, this.isLoadingEmployeeDetails ? (index.h("p", null, "\u52A0\u8F7D\u4E2D...")) : this.employeeDetails?.default_greeting ? (index.h("p", null, this.employeeDetails.default_greeting)) : (index.h("p", null, "\u8BF7\u8F93\u5165...")))), renderReferences(), renderSuggestedQuestions(), renderQuickQuestions()))), index.h("div", { class: "recording-section" }, index.h("div", { class: "recording-container" }, renderTextInputArea()))), index.h("pcm-drawer", { isOpen: this.isDrawerOpen, drawerTitle: this.previewFileName, width: "80%", onClosed: () => {
17269
17304
  this.isDrawerOpen = false;
17270
17305
  this.previewUrl = '';
17271
- } }, this.previewUrl && (index.h("div", { class: "file-preview-container" }, index.h("iframe", { src: this.previewUrl, frameborder: "0", width: "100%", style: { border: 'none', height: 'calc(100vh - 120px)' } })))))));
17306
+ this.previewFileName = '';
17307
+ this.downloadUrl = '';
17308
+ this.isDownloadQrCodeOpen = false;
17309
+ this.downloadQrCodeUrl = '';
17310
+ } }, this.downloadUrl && (index.h("div", { slot: "header-actions", class: "document-download-actions" }, index.h("button", { class: "document-download-button", type: "button", onClick: this.handleDocumentLocalDownload, "aria-label": "\u672C\u5730\u4E0B\u8F7D\u6587\u6863" }, "\u672C\u5730\u4E0B\u8F7D"), index.h("button", { class: "document-download-button", type: "button", onClick: this.handleDocumentQrCodeDownload, "aria-label": "\u626B\u7801\u4E0B\u8F7D\u6587\u6863" }, "\u626B\u7801\u4E0B\u8F7D"))), this.previewUrl && (index.h("div", { class: "file-preview-container" }, index.h("iframe", { src: this.previewUrl, frameborder: "0", width: "100%", style: { border: 'none', height: 'calc(100vh - 120px)' } })))), index.h("pcm-confirm-modal", { isOpen: this.isDownloadQrCodeOpen, modalTitle: "\u626B\u7801\u4E0B\u8F7D", okText: "\u5173\u95ED", cancelText: "\u53D6\u6D88", onOk: () => {
17311
+ this.isDownloadQrCodeOpen = false;
17312
+ }, onCancel: () => {
17313
+ this.isDownloadQrCodeOpen = false;
17314
+ }, onClosed: () => {
17315
+ this.isDownloadQrCodeOpen = false;
17316
+ this.downloadQrCodeUrl = '';
17317
+ } }, index.h("div", { class: "document-download-qr-code" }, this.downloadQrCodeUrl && index.h("img", { src: this.downloadQrCodeUrl, alt: `${this.previewFileName} 下载二维码` }), index.h("p", null, "\u8BF7\u4F7F\u7528\u624B\u673A\u626B\u63CF\u4E8C\u7EF4\u7801\u4E0B\u8F7D\u6587\u6863"))))));
17272
17318
  }
17273
17319
  static get watchers() { return {
17274
17320
  "token": ["handleTokenChange"],