pcm-agents 0.6.107-beta.1 → 0.6.107-beta.2

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 (126) hide show
  1. package/dist/cjs/components-position-selector_32.cjs.entry.js +3 -3
  2. package/dist/cjs/{conversation-utils-c5b343f1.js → conversation-utils-03d5712b.js} +3 -3
  3. package/dist/cjs/{conversation-utils-c5b343f1.js.map → conversation-utils-03d5712b.js.map} +1 -1
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/oem-htws-modal.cjs.entry.js +1 -1
  6. package/dist/cjs/oem-jd-modal.cjs.entry.js +2 -2
  7. package/dist/cjs/oem-jlpp-modal.cjs.entry.js +1 -1
  8. package/dist/cjs/oem-jlzz-modal.cjs.entry.js +1 -1
  9. package/dist/cjs/oem-mnct-modal.cjs.entry.js +1 -1
  10. package/dist/cjs/oem-mnms-modal.cjs.entry.js +1 -1
  11. package/dist/cjs/oem-qgqjl-modal.cjs.entry.js +3 -3
  12. package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +2 -2
  13. package/dist/cjs/pcm-jlsx-modal.cjs.entry.js +2 -2
  14. package/dist/cjs/{sentry-reporter-354a4d8a.js → sentry-reporter-a2f2a707.js} +2 -2
  15. package/dist/cjs/{sentry-reporter-354a4d8a.js.map → sentry-reporter-a2f2a707.js.map} +1 -1
  16. package/dist/cjs/{utils-9b531efe.js → utils-6b9a1804.js} +2 -2
  17. package/dist/cjs/{utils-9b531efe.js.map → utils-6b9a1804.js.map} +1 -1
  18. package/dist/components/components-position-selector.js +1 -1
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/oem-htws-modal.js +6 -6
  21. package/dist/components/oem-jd-modal.js +4 -4
  22. package/dist/components/oem-jlpp-modal.js +8 -8
  23. package/dist/components/oem-jlsx-modal.js +6 -6
  24. package/dist/components/oem-jlzz-modal.js +6 -6
  25. package/dist/components/oem-mnct-modal.js +8 -8
  26. package/dist/components/oem-mnms-modal.js +9 -9
  27. package/dist/components/oem-qgqjl-modal.js +10 -10
  28. package/dist/components/oem-zygh-modal.js +6 -6
  29. package/dist/components/{p-030d503f.js → p-00051cb5.js} +2 -2
  30. package/dist/components/{p-030d503f.js.map → p-00051cb5.js.map} +1 -1
  31. package/dist/components/{p-bbcf138c.js → p-02a6367d.js} +3 -3
  32. package/dist/components/{p-bbcf138c.js.map → p-02a6367d.js.map} +1 -1
  33. package/dist/components/{p-fb809f1b.js → p-2aea3414.js} +2 -2
  34. package/dist/components/{p-fb809f1b.js.map → p-2aea3414.js.map} +1 -1
  35. package/dist/components/{p-f48d08fc.js → p-42239106.js} +2 -2
  36. package/dist/components/{p-f48d08fc.js.map → p-42239106.js.map} +1 -1
  37. package/dist/components/{p-d4ab612b.js → p-6aaa0e50.js} +2 -2
  38. package/dist/components/{p-d4ab612b.js.map → p-6aaa0e50.js.map} +1 -1
  39. package/dist/components/{p-01bbf330.js → p-793f6d35.js} +2 -2
  40. package/dist/components/{p-01bbf330.js.map → p-793f6d35.js.map} +1 -1
  41. package/dist/components/{p-a74b1704.js → p-8bd007f7.js} +2 -2
  42. package/dist/components/{p-a74b1704.js.map → p-8bd007f7.js.map} +1 -1
  43. package/dist/components/{p-fd5d97f1.js → p-b2236058.js} +2 -2
  44. package/dist/components/{p-fd5d97f1.js.map → p-b2236058.js.map} +1 -1
  45. package/dist/components/{p-9e6ae09c.js → p-b7bb8ae0.js} +2 -2
  46. package/dist/components/{p-9e6ae09c.js.map → p-b7bb8ae0.js.map} +1 -1
  47. package/dist/components/{p-8fec4aa5.js → p-dd0286e7.js} +2 -2
  48. package/dist/components/{p-8fec4aa5.js.map → p-dd0286e7.js.map} +1 -1
  49. package/dist/components/{p-929b5752.js → p-ea362132.js} +2 -2
  50. package/dist/components/{p-929b5752.js.map → p-ea362132.js.map} +1 -1
  51. package/dist/components/{p-61f7a372.js → p-f95304ac.js} +4 -4
  52. package/dist/components/{p-61f7a372.js.map → p-f95304ac.js.map} +1 -1
  53. package/dist/components/pcm-1zhanshi-mnms-modal.js +5 -5
  54. package/dist/components/pcm-app-chat-modal.js +1 -1
  55. package/dist/components/pcm-ats-mnms-modal.js +5 -5
  56. package/dist/components/pcm-card.js +1 -1
  57. package/dist/components/pcm-chat-message.js +1 -1
  58. package/dist/components/pcm-digital-human.js +1 -1
  59. package/dist/components/pcm-export-records-modal.js +1 -1
  60. package/dist/components/pcm-hr-chat-modal.js +2 -2
  61. package/dist/components/pcm-htws-modal.js +8 -8
  62. package/dist/components/pcm-hyzj-modal.js +5 -5
  63. package/dist/components/pcm-jd-modal.js +5 -5
  64. package/dist/components/pcm-jlpp-modal.js +8 -8
  65. package/dist/components/pcm-jlsx-modal.js +5 -5
  66. package/dist/components/pcm-jlzz-modal.js +6 -6
  67. package/dist/components/pcm-mnct-modal.js +7 -7
  68. package/dist/components/pcm-mnms-modal.js +8 -8
  69. package/dist/components/pcm-mnms-zp-modal.js +8 -8
  70. package/dist/components/pcm-mobile-input-btn.js +1 -1
  71. package/dist/components/pcm-mobile-upload-btn.js +1 -1
  72. package/dist/components/pcm-msbg-modal.js +5 -5
  73. package/dist/components/pcm-qgqjl-modal.js +9 -9
  74. package/dist/components/pcm-thousand-resume-wrapper.js +1 -1
  75. package/dist/components/pcm-upload.js +1 -1
  76. package/dist/components/pcm-virtual-chat-modal.js +1 -1
  77. package/dist/components/pcm-zsk-chat-modal.js +2 -2
  78. package/dist/components/pcm-zygh-modal.js +7 -7
  79. package/dist/components/pcm-zygh-v2-modal.js +7 -7
  80. package/dist/esm/components-position-selector_32.entry.js +3 -3
  81. package/dist/esm/{conversation-utils-1541ce07.js → conversation-utils-89fc816a.js} +3 -3
  82. package/dist/esm/{conversation-utils-1541ce07.js.map → conversation-utils-89fc816a.js.map} +1 -1
  83. package/dist/esm/index.js +1 -1
  84. package/dist/esm/oem-htws-modal.entry.js +1 -1
  85. package/dist/esm/oem-jd-modal.entry.js +2 -2
  86. package/dist/esm/oem-jlpp-modal.entry.js +1 -1
  87. package/dist/esm/oem-jlzz-modal.entry.js +1 -1
  88. package/dist/esm/oem-mnct-modal.entry.js +1 -1
  89. package/dist/esm/oem-mnms-modal.entry.js +1 -1
  90. package/dist/esm/oem-qgqjl-modal.entry.js +3 -3
  91. package/dist/esm/pcm-hr-chat-modal.entry.js +2 -2
  92. package/dist/esm/pcm-jlsx-modal.entry.js +2 -2
  93. package/dist/esm/{sentry-reporter-c41e0b5d.js → sentry-reporter-3c0f89fa.js} +2 -2
  94. package/dist/esm/{sentry-reporter-c41e0b5d.js.map → sentry-reporter-3c0f89fa.js.map} +1 -1
  95. package/dist/esm/{utils-4e098e0f.js → utils-bcf01ef9.js} +2 -2
  96. package/dist/esm/{utils-4e098e0f.js.map → utils-bcf01ef9.js.map} +1 -1
  97. package/dist/pcm-agents/index.esm.js +1 -1
  98. package/dist/pcm-agents/{p-ec2a612b.entry.js → p-16941821.entry.js} +2 -2
  99. package/dist/pcm-agents/p-4375bae7.js +2 -0
  100. package/dist/pcm-agents/{p-9c8394e1.entry.js → p-55852404.entry.js} +2 -2
  101. package/dist/pcm-agents/{p-ab10b5ef.entry.js → p-60cc4170.entry.js} +2 -2
  102. package/dist/pcm-agents/{p-90f3650e.entry.js → p-64bf83df.entry.js} +2 -2
  103. package/dist/pcm-agents/{p-232f3c08.entry.js → p-691cecb8.entry.js} +2 -2
  104. package/dist/pcm-agents/{p-ea38c3d3.js → p-69d04e65.js} +2 -2
  105. package/dist/pcm-agents/{p-04a020f3.entry.js → p-71658600.entry.js} +2 -2
  106. package/dist/pcm-agents/{p-455d3100.entry.js → p-82753b29.entry.js} +2 -2
  107. package/dist/pcm-agents/{p-8d5a4a0b.js → p-83a57c8b.js} +2 -2
  108. package/dist/pcm-agents/{p-c7cd415f.entry.js → p-9a356af8.entry.js} +2 -2
  109. package/dist/pcm-agents/{p-5a5cc005.entry.js → p-bbb5298d.entry.js} +2 -2
  110. package/dist/pcm-agents/{p-c26cbad1.entry.js → p-f881d07c.entry.js} +2 -2
  111. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  112. package/package.json +1 -1
  113. package/dist/pcm-agents/p-64c4c3d8.js +0 -2
  114. /package/dist/pcm-agents/{p-ec2a612b.entry.js.map → p-16941821.entry.js.map} +0 -0
  115. /package/dist/pcm-agents/{p-64c4c3d8.js.map → p-4375bae7.js.map} +0 -0
  116. /package/dist/pcm-agents/{p-9c8394e1.entry.js.map → p-55852404.entry.js.map} +0 -0
  117. /package/dist/pcm-agents/{p-ab10b5ef.entry.js.map → p-60cc4170.entry.js.map} +0 -0
  118. /package/dist/pcm-agents/{p-90f3650e.entry.js.map → p-64bf83df.entry.js.map} +0 -0
  119. /package/dist/pcm-agents/{p-232f3c08.entry.js.map → p-691cecb8.entry.js.map} +0 -0
  120. /package/dist/pcm-agents/{p-ea38c3d3.js.map → p-69d04e65.js.map} +0 -0
  121. /package/dist/pcm-agents/{p-04a020f3.entry.js.map → p-71658600.entry.js.map} +0 -0
  122. /package/dist/pcm-agents/{p-455d3100.entry.js.map → p-82753b29.entry.js.map} +0 -0
  123. /package/dist/pcm-agents/{p-8d5a4a0b.js.map → p-83a57c8b.js.map} +0 -0
  124. /package/dist/pcm-agents/{p-c7cd415f.entry.js.map → p-9a356af8.entry.js.map} +0 -0
  125. /package/dist/pcm-agents/{p-5a5cc005.entry.js.map → p-bbb5298d.entry.js.map} +0 -0
  126. /package/dist/pcm-agents/{p-c26cbad1.entry.js.map → p-f881d07c.entry.js.map} +0 -0
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const message_service = require('./message.service-67c4a512.js');
8
8
  const index_umd = require('./index.umd-d24c1f35.js');
9
9
  const errorEvent = require('./error-event-f4803d60.js');
10
- const sentryReporter = require('./sentry-reporter-354a4d8a.js');
11
- const conversationUtils = require('./conversation-utils-c5b343f1.js');
10
+ const sentryReporter = require('./sentry-reporter-a2f2a707.js');
11
+ const conversationUtils = require('./conversation-utils-03d5712b.js');
12
12
  require('./exports-e1a5f087.js');
13
13
 
14
14
  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}";
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./utils-9b531efe.js');
4
- const sentryReporter = require('./sentry-reporter-354a4d8a.js');
3
+ const utils = require('./utils-6b9a1804.js');
4
+ const sentryReporter = require('./sentry-reporter-a2f2a707.js');
5
5
  const errorEvent = require('./error-event-f4803d60.js');
6
6
 
7
7
  /**
@@ -103,4 +103,4 @@ async function fetchHistoryConversations(botId, componentName, lastId = '', limi
103
103
 
104
104
  exports.fetchHistoryConversations = fetchHistoryConversations;
105
105
 
106
- //# sourceMappingURL=conversation-utils-c5b343f1.js.map
106
+ //# sourceMappingURL=conversation-utils-03d5712b.js.map
@@ -1 +1 @@
1
- {"file":"conversation-utils-c5b343f1.js","mappings":";;;;;;AAqBA;;;AAGA,SAAS,sBAAsB,CAAC,SAA0B;IACtD,IAAI;QACA,MAAM,SAAS,GAAG,OAAO,SAAS,KAAK,QAAQ,GAAG,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,CAAC;QACtF,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,CAAC,EAAE;YACpC,OAAO,MAAM,CAAC;SACjB;QAED,MAA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,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,CAAC;gBACtC,WAAW,EAAE,sBAAsB,CAAC,IAAI,CAAC,UAAU,CAAC;gBACpD,MAAM,EAAE,IAAI,CAAC,MAAM;aACtB,CAAC,CAAC,CAAC;YAEJ,OAAO;gBACH,KAAK,EAAE,aAAa;gBACpB,OAAO;gBACP,UAAU,EAAE,aAAa,CAAC,MAAM,GAAG,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE;aACzF,CAAC;SACL;QAED,OAAO;YACH,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,EAAE;SACjB,CAAC;KACL;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAClCC,6BAAc,CAAC,YAAY,CAAC,KAAK,EAAE;YAC/B,MAAM,EAAE,2BAA2B;YACnC,SAAS,EAAE,aAAa;YACxB,KAAK,EAAE,UAAU;SACpB,CAAC,CAAC;QACHC,wBAAa,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;QAExD,OAAO;YACH,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,EAAE;SACjB,CAAC;KACL;AACL;;;;","names":["sendHttpRequest","SentryReporter","ErrorEventBus"],"sources":["src/utils/conversation-utils.ts"],"sourcesContent":["import { sendHttpRequest } from './utils';\nimport { SentryReporter } from './sentry-reporter';\nimport { ErrorEventBus } from './error-event';\nimport { ConversationItem, ConversationPageResult, ConversationDetail } from '../interfaces/chat';\n\ninterface ConversationApiItem {\n id: string;\n name?: string;\n created_at: number | string;\n updated_at: number | string;\n status?: string;\n message_count?: number;\n inputs?: any;\n}\n\ninterface ConversationApiData {\n data?: ConversationApiItem[];\n items?: ConversationApiItem[];\n has_more?: boolean;\n}\n\n/**\n * 格式化会话时间戳为可读字符串\n */\nfunction formatConversationTime(createdAt: number | string): string {\n try {\n const timestamp = typeof createdAt === 'string' ? parseInt(createdAt, 10) : createdAt;\n if (isNaN(timestamp) || timestamp <= 0) {\n return '未知时间';\n }\n\n const createdTime = new Date(timestamp * 1000);\n if (isNaN(createdTime.getTime())) {\n return '未知时间';\n }\n\n const now = new Date();\n const diffDays = Math.floor((now.getTime() - createdTime.getTime()) / (1000 * 60 * 60 * 24));\n const hh = createdTime.getHours().toString().padStart(2, '0');\n const mm = createdTime.getMinutes().toString().padStart(2, '0');\n const month = (createdTime.getMonth() + 1).toString().padStart(2, '0');\n const day = createdTime.getDate().toString().padStart(2, '0');\n\n if (diffDays === 0) {\n return `今天 ${hh}:${mm}`;\n }\n\n if (diffDays === 1) {\n return `昨天 ${hh}:${mm}`;\n }\n\n if (diffDays > 1 && diffDays < 7) {\n const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];\n return `${weekdays[createdTime.getDay()]} ${hh}:${mm}`;\n }\n\n return `${month}-${day} ${hh}:${mm}`;\n } catch {\n return '时间解析失败';\n }\n}\n\n/**\n * 获取历史会话列表\n * @param botId 机器人 ID\n * @param componentName 调用组件名称\n * @param lastId 上一页最后一条会话 ID,空字符串表示第一页\n * @param limit 每页数量\n * @returns 游标分页结果\n */\nexport async function fetchHistoryConversations(\n botId: string,\n componentName: string,\n lastId: string = '',\n limit: number = 20,\n): Promise<ConversationPageResult> {\n try {\n const result = await sendHttpRequest<ConversationApiData>({\n url: '/sdk/v1/chat/conversations',\n method: 'GET',\n data: {\n bot_id: botId,\n last_id: lastId,\n limit,\n },\n });\n\n if (result.success && result.data) {\n const rawConversations: ConversationApiItem[] = result.data.data || result.data.items || [];\n const hasMore = typeof result.data.has_more === 'boolean'\n ? result.data.has_more\n : rawConversations.length > limit;\n const conversations: ConversationItem[] = rawConversations.slice(0, limit).map((conv: ConversationApiItem) => ({\n id: conv.id,\n name: conv.name || '新会话',\n created_at: Number(conv.created_at),\n updated_at: Number(conv.updated_at),\n status: conv.status,\n message_count: conv.message_count || 0,\n timeDisplay: formatConversationTime(conv.created_at),\n inputs: conv.inputs,\n }));\n\n return {\n items: conversations,\n hasMore,\n nextCursor: conversations.length > 0 ? conversations[conversations.length - 1].id : '',\n };\n }\n\n return {\n items: [],\n hasMore: false,\n nextCursor: '',\n };\n } catch (error) {\n console.error('获取历史会话失败:', error);\n SentryReporter.captureError(error, {\n action: 'fetchHistoryConversations',\n component: componentName,\n title: '获取历史会话失败',\n });\n ErrorEventBus.emitError({ error, message: '获取历史会话失败' });\n\n return {\n items: [],\n hasMore: false,\n nextCursor: '',\n };\n }\n}\n\n/**\n * 获取单个会话详情\n * @param conversationId 会话 ID\n * @param componentName 调用组件名称\n * @returns 会话详情\n */\nexport async function fetchConversationDetail(\n conversationId: string,\n componentName: string,\n): Promise<ConversationDetail | null> {\n try {\n const result = await sendHttpRequest<{ data: ConversationDetail }>({\n url: '/sdk/v1/chat/conversation',\n method: 'GET',\n data: {\n conversation_id: conversationId,\n },\n });\n\n if (result.success && result.data?.data) {\n return result.data.data;\n }\n\n return null;\n } catch (error) {\n console.error('获取会话详情失败:', error);\n SentryReporter.captureError(error, {\n action: 'fetchConversationDetail',\n component: componentName,\n title: '获取会话详情失败',\n });\n ErrorEventBus.emitError({ error, message: '获取会话详情失败' });\n\n return null;\n }\n}\n"],"version":3}
1
+ {"file":"conversation-utils-03d5712b.js","mappings":";;;;;;AAqBA;;;AAGA,SAAS,sBAAsB,CAAC,SAA0B;IACtD,IAAI;QACA,MAAM,SAAS,GAAG,OAAO,SAAS,KAAK,QAAQ,GAAG,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,CAAC;QACtF,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,CAAC,EAAE;YACpC,OAAO,MAAM,CAAC;SACjB;QAED,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;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sBAAsB,CAAC,IAAI,CAAC,UAAU,CAAC;gBACpD,MAAM,EAAE,IAAI,CAAC,MAAM;aACtB,CAAC,CAAC,CAAC;YAEJ,OAAO;gBACH,KAAK,EAAE,aAAa;gBACpB,OAAO;gBACP,UAAU,EAAE,aAAa,CAAC,MAAM,GAAG,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE;aACzF,CAAC;SACL;QAED,OAAO;YACH,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,EAAE;SACjB,CAAC;KACL;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAClCC,6BAAc,CAAC,YAAY,CAAC,KAAK,EAAE;YAC/B,MAAM,EAAE,2BAA2B;YACnC,SAAS,EAAE,aAAa;YACxB,KAAK,EAAE,UAAU;SACpB,CAAC,CAAC;QACHC,wBAAa,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;QAExD,OAAO;YACH,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,EAAE;SACjB,CAAC;KACL;AACL;;;;","names":["sendHttpRequest","SentryReporter","ErrorEventBus"],"sources":["src/utils/conversation-utils.ts"],"sourcesContent":["import { sendHttpRequest } from './utils';\nimport { SentryReporter } from './sentry-reporter';\nimport { ErrorEventBus } from './error-event';\nimport { ConversationItem, ConversationPageResult, ConversationDetail } from '../interfaces/chat';\n\ninterface ConversationApiItem {\n id: string;\n name?: string;\n created_at: number | string;\n updated_at: number | string;\n status?: string;\n message_count?: number;\n inputs?: any;\n}\n\ninterface ConversationApiData {\n data?: ConversationApiItem[];\n items?: ConversationApiItem[];\n has_more?: boolean;\n}\n\n/**\n * 格式化会话时间戳为可读字符串\n */\nfunction formatConversationTime(createdAt: number | string): string {\n try {\n const timestamp = typeof createdAt === 'string' ? parseInt(createdAt, 10) : createdAt;\n if (isNaN(timestamp) || timestamp <= 0) {\n return '未知时间';\n }\n\n const createdTime = new Date(timestamp * 1000);\n if (isNaN(createdTime.getTime())) {\n return '未知时间';\n }\n\n const now = new Date();\n const diffDays = Math.floor((now.getTime() - createdTime.getTime()) / (1000 * 60 * 60 * 24));\n const hh = createdTime.getHours().toString().padStart(2, '0');\n const mm = createdTime.getMinutes().toString().padStart(2, '0');\n const month = (createdTime.getMonth() + 1).toString().padStart(2, '0');\n const day = createdTime.getDate().toString().padStart(2, '0');\n\n if (diffDays === 0) {\n return `今天 ${hh}:${mm}`;\n }\n\n if (diffDays === 1) {\n return `昨天 ${hh}:${mm}`;\n }\n\n if (diffDays > 1 && diffDays < 7) {\n const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];\n return `${weekdays[createdTime.getDay()]} ${hh}:${mm}`;\n }\n\n return `${month}-${day} ${hh}:${mm}`;\n } catch {\n return '时间解析失败';\n }\n}\n\n/**\n * 获取历史会话列表\n * @param botId 机器人 ID\n * @param componentName 调用组件名称\n * @param lastId 上一页最后一条会话 ID,空字符串表示第一页\n * @param limit 每页数量\n * @returns 游标分页结果\n */\nexport async function fetchHistoryConversations(\n botId: string,\n componentName: string,\n lastId: string = '',\n limit: number = 20,\n): Promise<ConversationPageResult> {\n try {\n const result = await sendHttpRequest<ConversationApiData>({\n url: '/sdk/v1/chat/conversations',\n method: 'GET',\n data: {\n bot_id: botId,\n last_id: lastId,\n limit,\n },\n });\n\n if (result.success && result.data) {\n const rawConversations: ConversationApiItem[] = result.data.data || result.data.items || [];\n const hasMore = typeof result.data.has_more === 'boolean'\n ? result.data.has_more\n : rawConversations.length > limit;\n const conversations: ConversationItem[] = rawConversations.slice(0, limit).map((conv: ConversationApiItem) => ({\n id: conv.id,\n name: conv.name || '新会话',\n created_at: Number(conv.created_at),\n updated_at: Number(conv.updated_at),\n status: conv.status,\n message_count: conv.message_count || 0,\n timeDisplay: formatConversationTime(conv.created_at),\n inputs: conv.inputs,\n }));\n\n return {\n items: conversations,\n hasMore,\n nextCursor: conversations.length > 0 ? conversations[conversations.length - 1].id : '',\n };\n }\n\n return {\n items: [],\n hasMore: false,\n nextCursor: '',\n };\n } catch (error) {\n console.error('获取历史会话失败:', error);\n SentryReporter.captureError(error, {\n action: 'fetchHistoryConversations',\n component: componentName,\n title: '获取历史会话失败',\n });\n ErrorEventBus.emitError({ error, message: '获取历史会话失败' });\n\n return {\n items: [],\n hasMore: false,\n nextCursor: '',\n };\n }\n}\n\n/**\n * 获取单个会话详情\n * @param conversationId 会话 ID\n * @param componentName 调用组件名称\n * @returns 会话详情\n */\nexport async function fetchConversationDetail(\n conversationId: string,\n componentName: string,\n): Promise<ConversationDetail | null> {\n try {\n const result = await sendHttpRequest<{ data: ConversationDetail }>({\n url: '/sdk/v1/chat/conversation',\n method: 'GET',\n data: {\n conversation_id: conversationId,\n },\n });\n\n if (result.success && result.data?.data) {\n return result.data.data;\n }\n\n return null;\n } catch (error) {\n console.error('获取会话详情失败:', error);\n SentryReporter.captureError(error, {\n action: 'fetchConversationDetail',\n component: componentName,\n title: '获取会话详情失败',\n });\n ErrorEventBus.emitError({ error, message: '获取会话详情失败' });\n\n return null;\n }\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const utils = require('./utils-9b531efe.js');
5
+ const utils = require('./utils-6b9a1804.js');
6
6
  require('./index-3c325bdb.js');
7
7
 
8
8
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
8
  const message_service = require('./message.service-67c4a512.js');
9
9
 
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
- const sentryReporter = require('./sentry-reporter-354a4d8a.js');
8
+ const sentryReporter = require('./sentry-reporter-a2f2a707.js');
9
9
  require('./exports-e1a5f087.js');
10
10
 
11
11
  const oemJdModalCss = ".input-mode-toggle{display:flex;align-items:center;margin-bottom:16px}.input-mode-toggle span{color:#333;margin-right:12px}.toggle-button{display:flex;align-items:center;background:none;border:none;color:#2E6EDF;cursor:pointer;font-size:14px;padding:4px 8px}.toggle-button svg{margin-right:4px}.toggle-button:disabled{opacity:0.5;cursor:not-allowed}.structured-input{width:100%}.job-name-input{margin-bottom:20px}.job-name-input label{display:block;margin-bottom:8px;font-weight:500;color:#333}.job-name-input input{width:95%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;background-color:#f9f9f9}.job-name-input input:focus{outline:none;border-color:#2E6EDF;box-shadow:0 0 0 2px rgba(46, 110, 223, 0.2)}.required{color:#f56c6c}.button-container{display:flex;justify-content:center;margin-top:24px;gap:12px;max-width:100%;box-sizing:border-box;flex-wrap:wrap}.next-button{background-color:#2E6EDF;color:white}.next-button:hover{background-color:#2457b8}.next-button:disabled{background-color:#a0c0e8;cursor:not-allowed}.prev-button{background-color:#f0f0f0 !important;color:#333 !important}.prev-button:hover{background-color:#e0e0e0}.tag-selection{width:100%}.tag-selection-content{width:100%}.section-title{font-weight:600;color:#333;margin-bottom:12px;font-size:16px}.ai-tags-section,.basic-tags-section{margin-bottom:24px}.tag-group{margin-bottom:16px}.tag-title{color:#555;margin-bottom:8px;font-weight:500}.tag-container{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;box-sizing:border-box}.tag{display:inline-flex;align-items:center;padding:6px 12px;border-radius:4px;background-color:#f5f5f5;border:1px solid #e0e0e0;color:#333;font-size:13px;cursor:pointer;transition:all 0.2s;max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tag:hover{background-color:#e8e8e8}.tag-selected{background-color:#e6f0ff;border-color:#2E6EDF;color:#2E6EDF}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 0;background-color:#f9f9f9;border-radius:8px;margin:20px 0;max-width:100%;box-sizing:border-box}.loading-spinner{width:40px;height:40px;border:3px solid rgba(46, 110, 223, 0.2);border-radius:50%;border-top-color:#2E6EDF;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{to{transform:rotate(360deg)}}.loading-text{text-align:center;color:#333;font-weight:500}.loading-subtext{color:#888;font-size:14px;margin-top:4px}.free-input{width:100%}.textarea-container{margin-bottom:16px}.textarea-container label{display:block;margin-bottom:8px;font-weight:500;color:#333}.textarea-container textarea{border:1px solid #ddd;border-radius:4px;font-size:14px;resize:vertical;background-color:#f9f9f9;min-height:150px;width:100%;padding:12px 16px;margin-bottom:20px;max-width:100%;box-sizing:border-box;word-wrap:break-word}.textarea-container textarea:focus{outline:none;border-color:#2E6EDF;box-shadow:0 0 0 2px rgba(46, 110, 223, 0.2)}.input-guide{background-color:#f5f7fa;border-radius:4px;padding:12px 16px;margin-bottom:20px;max-width:100%;box-sizing:border-box;word-wrap:break-word}.guide-title{font-weight:500;color:#333;margin-bottom:8px}.guide-content{color:#666;font-size:13px;max-width:100%;word-wrap:break-word}.guide-content div{margin-bottom:4px}@media (max-width: 768px){.tag-container{gap:7px}.tag{padding:4px 8px;font-size:12px}}@media (max-width: 480px){.button-container{flex-direction:column;align-items:center}.next-button,.prev-button,.submit-button{width:100%;margin-bottom:8px}.tag{max-width:calc(50% - 8px)}}.tag-selection,.tag-selection-content,.ai-tags-section,.basic-tags-section,.structured-input,.free-input{max-width:100%;box-sizing:border-box}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
8
  const message_service = require('./message.service-67c4a512.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
8
  const message_service = require('./message.service-67c4a512.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
8
  const message_service = require('./message.service-67c4a512.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
8
  const message_service = require('./message.service-67c4a512.js');
9
9
 
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
8
  const message_service = require('./message.service-67c4a512.js');
9
- const conversationUtils = require('./conversation-utils-c5b343f1.js');
10
- require('./sentry-reporter-354a4d8a.js');
9
+ const conversationUtils = require('./conversation-utils-03d5712b.js');
10
+ require('./sentry-reporter-a2f2a707.js');
11
11
  require('./exports-e1a5f087.js');
12
12
 
13
13
  const oemQgqjlModalCss = ".iframe-container{width:100%;height:85vh}.iframe-container iframe{width:100%;height:100%}.step-section{margin-bottom:20px}.step-title{font-size:14px;font-weight:600;color:#333;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #e8e8e8}.mode-options{display:grid;grid-template-columns:repeat(2, 1fr);gap:8px}.mode-option{padding:16px;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all 0.2s ease}.mode-option:hover{border-color:#94a3b8}.mode-option.selected{border-color:#0D75FB;background-color:#f0f7ff}.option-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.option-title{font-weight:600;color:#333}.check-icon{color:#0D75FB;font-size:16px}.option-desc{font-size:14px;color:#666}.option-suitable{font-size:12px;color:#999}.output-options{display:flex;flex-direction:column;gap:12px}.output-option{padding:12px 16px;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all 0.2s ease}.output-option:hover{border-color:#94a3b8}.output-option.selected{border-color:#0D75FB;background-color:#f0f7ff}.option-time{font-size:12px;color:#999}.jd-hint{padding:12px;background-color:#f6f8fa;border-radius:8px;text-align:center}.jd-hint p{font-size:14px;color:#666;margin:0}.form-hint{font-size:12px;color:#fa8c16;text-align:center;margin-top:8px}.form-hint.warning{color:#fa8c16}@media screen and (max-width: 768px){.mode-options{grid-template-columns:1fr}}.label-with-button{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.button-group{margin-bottom:8px;display:flex;gap:8px;align-items:center}.position-selector-button{padding:4px 12px;background:#1890ff;color:white;border:none;border-radius:4px;font-size:13px;cursor:pointer;transition:all 0.3s ease;white-space:nowrap;height:28px;line-height:20px}.position-selector-button:hover{background:#40a9ff}.position-selector-button:active{background:#096dd9}.position-selector-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:3000;padding:20px}.position-selector-modal{background:white;border-radius:8px;width:90%;max-width:900px;height:80vh;max-height:600px;display:flex;flex-direction:column;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);animation:modalFadeIn 0.3s ease}@keyframes modalFadeIn{from{opacity:0;transform:scale(0.95) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.position-selector-modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.position-selector-modal-header h3{margin:0;font-size:16px;font-weight:500;color:rgba(0, 0, 0, 0.85)}.position-selector-close-btn{background:none;border:none;font-size:24px;line-height:1;cursor:pointer;color:rgba(0, 0, 0, 0.45);padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all 0.3s}.position-selector-close-btn:hover{background-color:rgba(0, 0, 0, 0.06);color:rgba(0, 0, 0, 0.85)}.position-selector-modal-body{flex:1;overflow:hidden;display:flex;flex-direction:column}@media screen and (max-width: 768px){.position-selector-modal{width:100%;height:90vh;max-height:none;border-radius:8px 8px 0 0;margin-top:auto}.position-selector-modal-overlay{padding:0;align-items:flex-end}}";
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
- const sentryReporter = require('./sentry-reporter-354a4d8a.js');
8
+ const sentryReporter = require('./sentry-reporter-a2f2a707.js');
9
9
  require('./exports-e1a5f087.js');
10
10
 
11
11
  const pcmHrChatModalCss = ":host{display:block}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;overflow-y:auto;padding:20px;z-index:1000}.fullscreen-overlay{padding:0}.modal-container{background:white;border-radius:8px;width:100%;max-width:800px;display:flex;flex-direction:column;position:relative;margin:10vh auto auto auto}.modal-container.fullscreen{width:100vw;max-width:none;height:100%;border-radius:0;margin:0;display:flex;flex-direction:column;height:100vh;max-height:100vh}.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}@media screen and (max-width: 768px){.pc-layout{width:95%;}.modal-overlay{padding:0}.modal-container.fullscreen{height:-webkit-fill-available;max-height:-webkit-fill-available;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}}.video-preview.placeholder{display:flex;justify-content:center;align-items:center;background:#EAEAEA}.placeholder-status{color:#00000066}.placeholder-status p{font-size:16px}.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-left div{font-size:16px}.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-history{position:relative;flex:1;overflow-y:auto;padding:20px;scroll-behavior:smooth;min-height:200px;background:url(https://pcm-resource-1312611446.cos.ap-guangzhou.myqcloud.com/web/sdk/chat_bg.png);background-size:100%}.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{background-color:#1890ff;color:white;border:none;border-radius:4px;padding:8px 16px;cursor:pointer;font-weight:500}.send-button:disabled{background-color:#ccc;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-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 50px)}.remove-file{background:transparent;border:none;color:#999;cursor:pointer;padding:4px 8px;font-size:16px;line-height:1;border-radius:4px;transition:all 0.2s}.remove-file:hover{background-color:#f0f0f0;color:#666}.initial-upload{padding:16px;display:flex;flex-direction:column;align-items:center;height:100%}.upload-section{max-width:600px;width:100%;text-align:center}.upload-area{cursor:pointer;width:100%}.upload-placeholder{transition:all 0.3s ease;display:flex;flex-direction:column;align-items:center;background:rgba(0, 0, 0, 0.02);border:1px dashed #d9d9d9;border-radius:8px}.upload-placeholder:hover{border:1px dashed #1890ff}.upload-placeholder img{margin-top:8px;width:50px;height:50px}.upload-placeholder .upload-text{margin:4px 0;color:#332F39;font-size:14px}.upload-placeholder .upload-hint{font-size:14px;color:#949AA5;margin-top:8px;padding:0px 10px}.file-item{position:relative;padding:16px;border:1px solid #e2e8f0;border-radius:8px;transition:border-color 0.3s;cursor:pointer;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}.file-item:hover{border-color:#0D75FB}.file-item-content{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden}.file-icon{color:#0D75FB;flex-shrink:0}.file-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 50px)}.remove-file{background:transparent;border:none;color:#94a3b8;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;padding:4px;margin-left:8px;border-radius:4px;transition:all 0.2s}.remove-file:hover{background-color:#f1f5f9;color:#475569}.file-input{display:none}.submit-button{margin-top:10px;padding:10px 30px;background:#0D75FB;color:white;border:none;border-radius:4px;font-size:16px;cursor:pointer;transition:all 0.3s ease;width:100%;max-width:400px}.submit-button:disabled{background:#ccc;cursor:not-allowed}.submit-button:hover:not(:disabled){background:#40a9ff}.category-select,.dimension-select{margin:30px 0}.category-options,.dimension-options{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.category-button,.dimension-button{padding:12px 16px;border:1px solid #E5E5E5;border-radius:6px;background:white;cursor:pointer;transition:all 0.3s}.category-button:hover,.dimension-button:hover{background:#f5f5f5}.category-button.selected{background-image:linear-gradient(111deg, #4A9FFF 0%, #1058FF 100%);color:white}.dimension-button.selected{background-image:linear-gradient(111deg, #4A9FFF 0%, #1058FF 100%);color:white}.recording-section{border-top:1px solid #eee;display:flex;flex-direction:column;align-items:center;padding: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}";
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-3c325bdb.js');
6
- const utils = require('./utils-9b531efe.js');
6
+ const utils = require('./utils-6b9a1804.js');
7
7
  const index_umd = require('./index.umd-d24c1f35.js');
8
8
  const errorEvent = require('./error-event-f4803d60.js');
9
- const sentryReporter = require('./sentry-reporter-354a4d8a.js');
9
+ const sentryReporter = require('./sentry-reporter-a2f2a707.js');
10
10
  require('./exports-e1a5f087.js');
11
11
 
12
12
  const globalCss = ".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}.fullscreen-overlay{padding:0;background-color:rgba(0, 0, 0, 0.7);position:absolute;width:100%;height:auto}.modal-container{background-color:#fff;border-radius:8px;width:100%;display:flex;flex-direction:column;position:relative;margin:10vh auto auto auto;transition:all 0.3s ease-out;overflow:hidden}.modal-container.fullscreen{width:100%;max-width:none;height:100%;border-radius:0;margin:0;display:flex;flex-direction:column;max-height:100%}.pc-layout{width:80%;max-width:600px;min-width:320px}@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)}}.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;font-size:16px;font-weight:600;color:#333}.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}.upload-area{cursor:pointer;width:100%}.upload-placeholder{transition:all 0.3s ease;display:flex;flex-direction:column;align-items:center;background:rgba(0, 0, 0, 0.02);border:1px dashed #d9d9d9;border-radius:8px;cursor:pointer}.upload-placeholder:hover{border:1px dashed #1890ff}.upload-placeholder img{margin-top:8px;width:50px;height:50px}.upload-placeholder .upload-text{margin:4px 0;color:#332F39;font-size:14px}.upload-placeholder .upload-hint{font-size:14px;color:#949AA5;margin-top:8px;padding:0px 10px;text-align:center;white-space:normal;word-wrap:break-word;word-break:break-all;line-height:1.4}.file-item{position:relative;padding:16px;border:1px solid #e2e8f0;border-radius:8px;transition:border-color 0.3s;cursor:pointer;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}.file-item:hover{border-color:#0D75FB}.file-item-content{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden}.file-icon{color:#0D75FB;flex-shrink:0}.file-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 50px)}.remove-file{background:transparent;border:none;color:#94a3b8;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;padding:4px;margin-left:8px;border-radius:4px;transition:all 0.2s;min-width:30px;min-height:30px}.remove-file:hover{background-color:#f1f5f9;color:#475569}.file-input{display:none}.input-container{padding:20px;display:flex;flex-direction:column;height:calc(100% - 50px);background:linear-gradient(150deg, #2a6ee933, #0000 50%) 0 0 / 400px 200px no-repeat, #fff;overflow-y:auto}.input-container h3{margin-top:0;margin-bottom:20px;font-size:18px;color:#333;text-align:center}.jd-input-section{margin-bottom:20px}.jd-input-section label{display:block;margin-bottom:8px;font-weight:500;color:#333}.job-description-textarea{width:calc(100% - 16px);border:1px solid #ddd;border-radius:4px;resize:vertical;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s;padding:8px}.job-description-textarea:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.resume-upload-section{margin-bottom:20px;width:100%;display:flex;flex-direction:column}.resume-upload-section label{display:block;margin-bottom:8px;font-weight:500;color:#333}.interview-settings-section{margin-bottom:24px;padding:20px;background-color:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.settings-row{margin-bottom:20px}.settings-row:last-child{margin-bottom:0}.settings-label{display:block;font-weight:500;color:#333;margin-bottom:12px;font-size:14px}.question-number-section{width:100%}.slider-container{display:flex;align-items:center;gap:12px}.question-slider{flex:1;height:6px;background:#ddd;outline:none;border-radius:3px;-webkit-appearance:none;appearance:none}.question-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;background:#0D75FB;cursor:pointer;border-radius:50%;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}.question-slider::-moz-range-thumb{width:20px;height:20px;background:#0D75FB;cursor:pointer;border-radius:50%;border:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}.slider-value{font-weight:600;color:#0D75FB;font-size:14px;min-width:30px;text-align:center}.analysis-toggle-section{width:100%}.toggle-container{display:flex;align-items:center;gap:12px}.toggle-switch{position:relative;display:inline-block;width:44px;height:24px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:0.3s;border-radius:24px}.toggle-slider:before{position:absolute;content:\"\";height:18px;width:18px;left:3px;bottom:3px;background-color:white;transition:0.3s;border-radius:50%;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}input:checked+.toggle-slider{background-color:#0D75FB}input:checked+.toggle-slider:before{transform:translateX(20px)}.toggle-text{font-size:14px;color:#666;font-weight:500}.submit-button{margin-top:10px;padding:10px 30px;background:#0D75FB;color:white;border:none;border-radius:4px;font-size:16px;cursor:pointer;transition:all 0.3s ease;width:100%;max-width:400px;align-self:center}.submit-button:hover{background-color:#40a9ff}.submit-button:disabled{background-color:rgba(0,0,0,0.04);color:rgba(0,0,0,0.25);cursor:not-allowed}.ai-disclaimer{margin-top:16px;text-align:center;font-size:12px;color:#999;line-height:1.5}.ai-disclaimer p{margin:4px 0}.beian-info{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}.ai-disclaimer a{color:#666;text-decoration:none;transition:color 0.2s ease}.ai-disclaimer a:hover{color:#1890ff;text-decoration:underline}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:24px}.loading-spinner{width:40px;height:40px;border:4px solid rgba(0, 0, 0, 0.1);border-radius:50%;border-top-color:var(--pcm-primary-color, #1890ff);animation:spin 1s linear infinite;margin-bottom:16px}.loading-text{font-size:16px;color:var(--pcm-text-color, #333)}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.header-history-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 8px;border:none;border-radius:4px;background:transparent;color:#bbb;cursor:pointer;font-size:13px;font-family:inherit;line-height:1;transition:all 0.2s ease;flex-shrink:0;white-space:nowrap}.header-history-button svg{width:16px;height:16px;display:block;flex-shrink:0}.header-history-button:hover{background-color:rgba(0, 0, 0, 0.04);color:#666}.header-history-button:focus-visible{outline:2px solid rgba(13, 117, 251, 0.35);outline-offset:2px}.history-drawer-content{height:100%;display:flex;flex-direction:column}.conversation-list{flex:1;overflow-y:auto;padding:8px 0}.loading-conversations,.empty-conversations{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;color:#999}.loading-conversations .loading-spinner-small{margin-bottom:12px}.conversation-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;margin:0 8px 4px 8px;border-radius:8px;cursor:pointer;transition:all 0.2s ease;border:1px solid transparent}.conversation-item:hover{background:#f5f5f5}.conversation-info{flex:1;min-width:0}.conversation-title{font-size:14px;font-weight:500;color:#262626;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#8c8c8c}.conversation-time{flex-shrink:0}.message-count{flex-shrink:0}.conversation-status{padding:2px 6px;border-radius:4px;font-size:11px;font-weight:500}.conversation-status.completed{background:#f6ffed;color:#52c41a}.conversation-status.running{background:#fff7e6;color:#fa8c16}.header-history-entry{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:4px 8px;border:none;border-radius:4px;background:#e6f7ff;color:#1890ff;cursor:pointer;font-size:12px;font-family:inherit;line-height:1;white-space:nowrap;transition:all 0.2s ease}.header-history-entry:hover{background:#bae7ff;color:#0958d9;transform:translateY(-1px)}.header-history-entry:focus-visible{outline:2px solid rgba(13, 117, 251, 0.35);outline-offset:2px}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 16px;border-top:1px solid #f0f0f0}.history-pagination-button{min-width:72px;padding:6px 12px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#595959;cursor:pointer;font-size:12px;transition:all 0.2s ease}.history-pagination-button:hover:not(:disabled){border-color:#1890ff;color:#1890ff;background:#e6f7ff}.history-pagination-button:disabled{border-color:#f0f0f0;color:#bfbfbf;background:#fafafa;cursor:not-allowed}.history-pagination-info{flex:1;text-align:center;color:#8c8c8c;font-size:12px}";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const utils = require('./utils-9b531efe.js');
3
+ const utils = require('./utils-6b9a1804.js');
4
4
  const exports$1 = require('./exports-e1a5f087.js');
5
5
 
6
6
  /**
@@ -68,4 +68,4 @@ class SentryReporter {
68
68
 
69
69
  exports.SentryReporter = SentryReporter;
70
70
 
71
- //# sourceMappingURL=sentry-reporter-354a4d8a.js.map
71
+ //# sourceMappingURL=sentry-reporter-a2f2a707.js.map
@@ -1 +1 @@
1
- {"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AC,OAAO,CAAC,CAAC;SAChC;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;SACpC;KACF;;;;;","names":["configStore","Sentry.setUser","Sentry.setContext","Sentry.captureException","Sentry.captureMessage"],"sources":["src/utils/sentry-reporter.ts"],"sourcesContent":["import * as Sentry from \"@sentry/browser\";\nimport { configStore } from \"../../store/config.store\";\n\n/**\n * Sentry事件上报工具类\n * 提供统一的错误上报接口,自动添加用户认证信息\n */\nexport class SentryReporter {\n\n /**\n * 捕获并上报错误\n * @param error 错误对象\n * @param context 错误上下文\n */\n static captureError(error: any, context?: Record<string, any> & { title?: string }): void {\n try {\n // 添加认证信息\n const CUser = configStore.getItem('pcm-sdk-CUser');\n if (CUser) {\n Sentry.setUser({ id: String(CUser) });\n }\n \n let finalError = error;\n \n // 如果提供了自定义标题,创建新的错误对象\n if (context?.title) {\n finalError = new Error(context.title);\n if (error?.stack) {\n finalError.stack = error.stack;\n }\n finalError.cause = error;\n }\n \n // 添加上下文\n if (context) {\n const { title, ...otherContext } = context;\n Sentry.setContext('error_context', otherContext);\n }\n \n // 上报错误\n Sentry.captureException(finalError);\n } catch (e) {\n console.error('Sentry 上报错误失败:', e);\n }\n }\n\n /**\n * 捕获并上报消息\n * @param message 消息内容\n * @param context 消息上下文\n */\n static captureMessage(message: string, context?: Record<string, any>): void {\n try {\n // 添加认证信息\n const CUser = configStore.getItem('pcm-sdk-CUser');\n if (CUser) {\n Sentry.setUser({ id: String(CUser) });\n }\n \n // 添加上下文\n if (context) {\n Sentry.setContext('message_context', context);\n }\n \n // 上报消息\n Sentry.captureMessage(message);\n } catch (e) {\n console.error('Sentry 上报消息失败:', e);\n }\n }\n\n}"],"version":3}
1
+ {"file":"sentry-reporter-a2f2a707.js","mappings":";;;;;AAGA;;;;MAIa,cAAc;;;;;;IAOzB,OAAO,YAAY,CAAC,KAAU,EAAE,OAAkD;QAChF,IAAI;;YAEF,MA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","names":["configStore","Sentry.setUser","Sentry.setContext","Sentry.captureException","Sentry.captureMessage"],"sources":["src/utils/sentry-reporter.ts"],"sourcesContent":["import * as Sentry from \"@sentry/browser\";\nimport { configStore } from \"../../store/config.store\";\n\n/**\n * Sentry事件上报工具类\n * 提供统一的错误上报接口,自动添加用户认证信息\n */\nexport class SentryReporter {\n\n /**\n * 捕获并上报错误\n * @param error 错误对象\n * @param context 错误上下文\n */\n static captureError(error: any, context?: Record<string, any> & { title?: string }): void {\n try {\n // 添加认证信息\n const CUser = configStore.getItem('pcm-sdk-CUser');\n if (CUser) {\n Sentry.setUser({ id: String(CUser) });\n }\n \n let finalError = error;\n \n // 如果提供了自定义标题,创建新的错误对象\n if (context?.title) {\n finalError = new Error(context.title);\n if (error?.stack) {\n finalError.stack = error.stack;\n }\n finalError.cause = error;\n }\n \n // 添加上下文\n if (context) {\n const { title, ...otherContext } = context;\n Sentry.setContext('error_context', otherContext);\n }\n \n // 上报错误\n Sentry.captureException(finalError);\n } catch (e) {\n console.error('Sentry 上报错误失败:', e);\n }\n }\n\n /**\n * 捕获并上报消息\n * @param message 消息内容\n * @param context 消息上下文\n */\n static captureMessage(message: string, context?: Record<string, any>): void {\n try {\n // 添加认证信息\n const CUser = configStore.getItem('pcm-sdk-CUser');\n if (CUser) {\n Sentry.setUser({ id: String(CUser) });\n }\n \n // 添加上下文\n if (context) {\n Sentry.setContext('message_context', context);\n }\n \n // 上报消息\n Sentry.captureMessage(message);\n } catch (e) {\n console.error('Sentry 上报消息失败:', e);\n }\n }\n\n}"],"version":3}
@@ -286,7 +286,7 @@ onChange('data', value => {
286
286
  }
287
287
  });
288
288
 
289
- const version = "0.6.107-beta.1";
289
+ const version = "0.6.107-beta.2";
290
290
 
291
291
  // 导入环境变量
292
292
  function format(first, middle, last) {
@@ -1004,4 +1004,4 @@ exports.uploadFileToBackend = uploadFileToBackend;
1004
1004
  exports.verifyApiKey = verifyApiKey;
1005
1005
  exports.verifySmsCode = verifySmsCode;
1006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env.ts","node_modules/.pnpm/@stencil+store@2.1.3_@stencil+core@4.27.1/node_modules/@stencil/store/dist/index.js","store/auth.store.ts","store/config.store.ts"],"sourcesContent":["// 默认 API 域名\nconst DEFAULT_API_DOMAIN = 'https://api.pincaimao.com/agents/platform';\nconst DEFAULT_PCM_DOMAIN = 'https://www.pincaimao.com';\n\n\n// 从环境变量获取 API 域名,如果未设置则使用默认值\nexport const API_DOMAIN = process.env.API_DOMAIN || DEFAULT_API_DOMAIN;\nexport const PCM_DOMAIN = process.env.PCM_DOMAIN || DEFAULT_PCM_DOMAIN;\n\n// 导出其他环境变量\nexport const ENV = {\n API_DOMAIN,\n PCM_DOMAIN,\n // 可以添加其他环境变量\n}; ","import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2_000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState ?? {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries(unwrap(defaultState) ?? {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","// src/store/auth.store.ts\nimport { createStore } from '@stencil/store';\n\nexport const { state: authState, onChange } = createStore({\n token: localStorage.getItem('pcm-sdk-auth-token') || null\n});\n\n// 添加一些辅助方法\nexport const authStore = {\n getToken: () => authState.token,\n setToken: (token: string) => {\n authState.token = token;\n localStorage.setItem('pcm-sdk-auth-token', token);\n },\n clearToken: () => {\n authState.token = null;\n localStorage.removeItem('pcm-sdk-auth-token');\n }\n};\n\n// 自动保存到localStorage\nonChange('token', value => {\n if (value) {\n localStorage.setItem('pcm-sdk-auth-token', value);\n } else {\n localStorage.removeItem('pcm-sdk-auth-token');\n }\n});","import { createStore } from '@stencil/store';\n\n// 定义配置数据的类型\nexport interface ConfigData {\n [key: string]: any;\n}\n\n// 从localStorage获取初始配置\nconst getInitialConfig = (): ConfigData => {\n try {\n const storedConfig = localStorage.getItem('pcm-sdk-config-data');\n return storedConfig ? JSON.parse(storedConfig) : {};\n } catch (error) {\n console.error('Error parsing stored config:', error);\n return {};\n }\n};\n\n// 创建配置存储\nexport const { state: configState, onChange } = createStore<{\n data: ConfigData;\n}>({\n data: getInitialConfig()\n});\n\n// 配置存储的辅助方法\nexport const configStore = {\n // 获取整个配置对象\n getConfig: (): ConfigData => configState.data,\n \n // 获取特定配置项\n getItem: <T>(key: string, defaultValue?: T): T => {\n return configState.data[key] !== undefined ? configState.data[key] : defaultValue;\n },\n \n // 设置特定配置项\n setItem: <T>(key: string, value: T): void => {\n configState.data = {\n ...configState.data,\n [key]: value\n };\n },\n \n // 移除特定配置项\n removeItem: (key: string): void => {\n const newConfig = { ...configState.data };\n delete newConfig[key];\n configState.data = newConfig;\n },\n \n // 清除所有配置\n clear: (): void => {\n configState.data = {};\n },\n \n // 批量更新配置\n updateConfig: (newConfig: Partial<ConfigData>): void => {\n configState.data = {\n ...configState.data,\n ...newConfig\n };\n }\n};\n\n// 自动保存到localStorage\nonChange('data', value => {\n try {\n if (Object.keys(value).length > 0) {\n localStorage.setItem('pcm-sdk-config-data', JSON.stringify(value));\n } else {\n localStorage.removeItem('pcm-sdk-config-data');\n }\n } catch (error) {\n console.error('Error saving config to localStorage:', error);\n }\n}); "],"version":3}
1
+ {"file":"utils-6b9a1804.js","mappings":";;;;AAAA;AAKA;AACO,MAAM,UAAU,GAAG,0CAAsB,CAAsB;MACzD,UAAU,GAAG,2BAAsB;;ACLhD,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACnC,KAAK;AACL,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,KAAK;AACL,CAAC,CAAC;AACF,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["getRenderingRef","forceUpdate","onChange"],"sources":["src/utils/env.ts","node_modules/.pnpm/@stencil+store@2.1.3_@stencil+core@4.27.1/node_modules/@stencil/store/dist/index.js","store/auth.store.ts","store/config.store.ts"],"sourcesContent":["// 默认 API 域名\nconst DEFAULT_API_DOMAIN = 'https://api.pincaimao.com/agents/platform';\nconst DEFAULT_PCM_DOMAIN = 'https://www.pincaimao.com';\n\n\n// 从环境变量获取 API 域名,如果未设置则使用默认值\nexport const API_DOMAIN = process.env.API_DOMAIN || DEFAULT_API_DOMAIN;\nexport const PCM_DOMAIN = process.env.PCM_DOMAIN || DEFAULT_PCM_DOMAIN;\n\n// 导出其他环境变量\nexport const ENV = {\n API_DOMAIN,\n PCM_DOMAIN,\n // 可以添加其他环境变量\n}; ","import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2_000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState ?? {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries(unwrap(defaultState) ?? {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","// src/store/auth.store.ts\nimport { createStore } from '@stencil/store';\n\nexport const { state: authState, onChange } = createStore({\n token: localStorage.getItem('pcm-sdk-auth-token') || null\n});\n\n// 添加一些辅助方法\nexport const authStore = {\n getToken: () => authState.token,\n setToken: (token: string) => {\n authState.token = token;\n localStorage.setItem('pcm-sdk-auth-token', token);\n },\n clearToken: () => {\n authState.token = null;\n localStorage.removeItem('pcm-sdk-auth-token');\n }\n};\n\n// 自动保存到localStorage\nonChange('token', value => {\n if (value) {\n localStorage.setItem('pcm-sdk-auth-token', value);\n } else {\n localStorage.removeItem('pcm-sdk-auth-token');\n }\n});","import { createStore } from '@stencil/store';\n\n// 定义配置数据的类型\nexport interface ConfigData {\n [key: string]: any;\n}\n\n// 从localStorage获取初始配置\nconst getInitialConfig = (): ConfigData => {\n try {\n const storedConfig = localStorage.getItem('pcm-sdk-config-data');\n return storedConfig ? JSON.parse(storedConfig) : {};\n } catch (error) {\n console.error('Error parsing stored config:', error);\n return {};\n }\n};\n\n// 创建配置存储\nexport const { state: configState, onChange } = createStore<{\n data: ConfigData;\n}>({\n data: getInitialConfig()\n});\n\n// 配置存储的辅助方法\nexport const configStore = {\n // 获取整个配置对象\n getConfig: (): ConfigData => configState.data,\n \n // 获取特定配置项\n getItem: <T>(key: string, defaultValue?: T): T => {\n return configState.data[key] !== undefined ? configState.data[key] : defaultValue;\n },\n \n // 设置特定配置项\n setItem: <T>(key: string, value: T): void => {\n configState.data = {\n ...configState.data,\n [key]: value\n };\n },\n \n // 移除特定配置项\n removeItem: (key: string): void => {\n const newConfig = { ...configState.data };\n delete newConfig[key];\n configState.data = newConfig;\n },\n \n // 清除所有配置\n clear: (): void => {\n configState.data = {};\n },\n \n // 批量更新配置\n updateConfig: (newConfig: Partial<ConfigData>): void => {\n configState.data = {\n ...configState.data,\n ...newConfig\n };\n }\n};\n\n// 自动保存到localStorage\nonChange('data', value => {\n try {\n if (Object.keys(value).length > 0) {\n localStorage.setItem('pcm-sdk-config-data', JSON.stringify(value));\n } else {\n localStorage.removeItem('pcm-sdk-config-data');\n }\n } catch (error) {\n console.error('Error saving config to localStorage:', error);\n }\n}); "],"version":3}
@@ -1,4 +1,4 @@
1
- import { C as ComponentsPositionSelector$1, d as defineCustomElement$1 } from './p-d4ab612b.js';
1
+ import { C as ComponentsPositionSelector$1, d as defineCustomElement$1 } from './p-6aaa0e50.js';
2
2
 
3
3
  const ComponentsPositionSelector = ComponentsPositionSelector$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,6 +1,6 @@
1
1
  import { D as DEBUG_BUILD$2, d as debug, g as getFunctionName, G as GLOBAL_OBJ, a as dsnToString, b as getSentryCarrier, n as normalize, c as dateTimestampInSeconds, S as SEMANTIC_ATTRIBUTE_PROFILE_ID, e as SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME, m as makeDsn, u as uuid4, f as checkOrSetAlreadyCaught, i as isPrimitive, h as updateSession, r as resolvedSyncPromise, j as DEFAULT_ENVIRONMENT, k as SyncPromise, p as prepareEvent, l as getTraceContextFromScope, o as getDynamicSamplingContextFromScope, q as getCurrentScope, s as getIsolationScope, t as rejectedSyncPromise, v as isThenable, w as isPlainObject, x as showSpanDropWarning, y as merge, z as isParameterizedString, A as getGlobalSingleton, B as consoleSandbox, C as SDK_VERSION, E as getClient, F as getOriginalFunction, H as getEventDescription, I as stringMatchesSomePattern, J as isInstanceOf, K as CONSOLE_LEVELS, L as fill, M as originalConsoleMethods, N as getFramesFromEvent, O as timestampInSeconds, P as isError, Q as addNonEnumerableProperty, R as isRequest, T as getLocationHref, U as markFunctionWrapped, V as withScope, W as addExceptionTypeValue, X as addExceptionMechanism, Y as captureException, Z as isErrorEvent$1, _ as isDOMError, $ as isDOMException, a0 as isEvent, a1 as normalizeToSize, a2 as extractExceptionKeysForMessage, a3 as isString, a4 as createStackParser, a5 as UNKNOWN_FUNCTION, a6 as safeJoin, a7 as htmlTreeAsString, a8 as getComponentName, a9 as startSession, aa as captureSession, ab as captureEvent, ac as stackParserFromStackParserOptions } from './p-fcf54f3d.js';
2
2
  export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-ede7ecba.js';
3
- export { f as format } from './p-9e6ae09c.js';
3
+ export { f as format } from './p-b7bb8ae0.js';
4
4
 
5
5
  // We keep the handlers globally
6
6
  const handlers = {};
@@ -1,15 +1,15 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h } from './p-ede7ecba.js';
2
- import { a as authStore, v as verifyApiKey, b as verifySmsCode } from './p-9e6ae09c.js';
2
+ import { a as authStore, v as verifyApiKey, b as verifySmsCode } from './p-b7bb8ae0.js';
3
3
  import { E as ErrorEventBus } from './p-58549ef5.js';
4
4
  import { a as configStore } from './p-2bb2a918.js';
5
5
  import { M as Message } from './p-19046fd5.js';
6
- import { d as defineCustomElement$8 } from './p-61f7a372.js';
7
- import { d as defineCustomElement$7 } from './p-f48d08fc.js';
6
+ import { d as defineCustomElement$8 } from './p-f95304ac.js';
7
+ import { d as defineCustomElement$7 } from './p-42239106.js';
8
8
  import { d as defineCustomElement$6 } from './p-81f76e7e.js';
9
- import { d as defineCustomElement$5 } from './p-929b5752.js';
9
+ import { d as defineCustomElement$5 } from './p-ea362132.js';
10
10
  import { d as defineCustomElement$4 } from './p-bb14fd9c.js';
11
- import { d as defineCustomElement$3 } from './p-fb809f1b.js';
12
- import { d as defineCustomElement$2 } from './p-bbcf138c.js';
11
+ import { d as defineCustomElement$3 } from './p-2aea3414.js';
12
+ import { d as defineCustomElement$2 } from './p-02a6367d.js';
13
13
 
14
14
  const oemHtwsModalCss = ".input-mode-toggle{display:flex;align-items:center;margin-bottom:16px}.input-mode-toggle span{color:#333;margin-right:12px}.toggle-button{display:flex;align-items:center;background:none;border:none;color:#2E6EDF;cursor:pointer;font-size:14px;padding:4px 8px}.toggle-button svg{margin-right:4px}.free-input{width:100%}.textarea-container{margin-bottom:16px}.textarea-container label{display:block;margin-bottom:8px;font-weight:500;color:#333}.textarea-container textarea{border:1px solid #ddd;border-radius:4px;font-size:14px;resize:vertical;background-color:#f9f9f9;min-height:150px;width:100%;padding:12px 16px;margin-bottom:20px;max-width:100%;box-sizing:border-box;word-wrap:break-word}.textarea-container textarea:focus{outline:none;border-color:#2E6EDF;box-shadow:0 0 0 2px rgba(46, 110, 223, 0.2)}.required{color:#f56c6c}.input-guide{background-color:#f5f7fa;border-radius:4px;padding:12px 16px;margin-bottom:20px;max-width:100%;box-sizing:border-box;word-wrap:break-word}.guide-title{font-weight:500;color:#333;margin-bottom:8px}.guide-content{color:#666;font-size:13px;max-width:100%;word-wrap:break-word}.guide-content div{margin-bottom:4px}.phone-input{width:calc(100% - 16px);padding:8px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s}.phone-input:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.verification-code-container{display:flex;gap:8px;align-items:center}.verification-code-input{flex:1;padding:8px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s}.verification-code-input:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.send-code-button{padding:8px 16px;background:#0D75FB;color:white;border:none;border-radius:4px;font-size:14px;cursor:pointer;transition:all 0.3s ease;white-space:nowrap;min-width:100px}.send-code-button:hover:not(:disabled){background-color:#40a9ff}.send-code-button:disabled{background-color:rgba(0, 0, 0, 0.04);color:rgba(0, 0, 0, 0.25);cursor:not-allowed}";
15
15
  const OemHtwsModalStyle0 = oemHtwsModalCss;
@@ -1,12 +1,12 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h } from './p-ede7ecba.js';
2
- import { a as authStore, v as verifyApiKey, d as sendHttpRequest } from './p-9e6ae09c.js';
2
+ import { a as authStore, v as verifyApiKey, d as sendHttpRequest } from './p-b7bb8ae0.js';
3
3
  import { E as ErrorEventBus } from './p-58549ef5.js';
4
4
  import { a as configStore } from './p-2bb2a918.js';
5
5
  import { S as SentryReporter } from './p-592a83a6.js';
6
- import { d as defineCustomElement$6 } from './p-61f7a372.js';
7
- import { d as defineCustomElement$5 } from './p-f48d08fc.js';
6
+ import { d as defineCustomElement$6 } from './p-f95304ac.js';
7
+ import { d as defineCustomElement$5 } from './p-42239106.js';
8
8
  import { d as defineCustomElement$4 } from './p-81f76e7e.js';
9
- import { d as defineCustomElement$3 } from './p-929b5752.js';
9
+ import { d as defineCustomElement$3 } from './p-ea362132.js';
10
10
  import { d as defineCustomElement$2 } from './p-bb14fd9c.js';
11
11
 
12
12
  const oemJdModalCss = ".input-mode-toggle{display:flex;align-items:center;margin-bottom:16px}.input-mode-toggle span{color:#333;margin-right:12px}.toggle-button{display:flex;align-items:center;background:none;border:none;color:#2E6EDF;cursor:pointer;font-size:14px;padding:4px 8px}.toggle-button svg{margin-right:4px}.toggle-button:disabled{opacity:0.5;cursor:not-allowed}.structured-input{width:100%}.job-name-input{margin-bottom:20px}.job-name-input label{display:block;margin-bottom:8px;font-weight:500;color:#333}.job-name-input input{width:95%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;background-color:#f9f9f9}.job-name-input input:focus{outline:none;border-color:#2E6EDF;box-shadow:0 0 0 2px rgba(46, 110, 223, 0.2)}.required{color:#f56c6c}.button-container{display:flex;justify-content:center;margin-top:24px;gap:12px;max-width:100%;box-sizing:border-box;flex-wrap:wrap}.next-button{background-color:#2E6EDF;color:white}.next-button:hover{background-color:#2457b8}.next-button:disabled{background-color:#a0c0e8;cursor:not-allowed}.prev-button{background-color:#f0f0f0 !important;color:#333 !important}.prev-button:hover{background-color:#e0e0e0}.tag-selection{width:100%}.tag-selection-content{width:100%}.section-title{font-weight:600;color:#333;margin-bottom:12px;font-size:16px}.ai-tags-section,.basic-tags-section{margin-bottom:24px}.tag-group{margin-bottom:16px}.tag-title{color:#555;margin-bottom:8px;font-weight:500}.tag-container{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;box-sizing:border-box}.tag{display:inline-flex;align-items:center;padding:6px 12px;border-radius:4px;background-color:#f5f5f5;border:1px solid #e0e0e0;color:#333;font-size:13px;cursor:pointer;transition:all 0.2s;max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tag:hover{background-color:#e8e8e8}.tag-selected{background-color:#e6f0ff;border-color:#2E6EDF;color:#2E6EDF}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 0;background-color:#f9f9f9;border-radius:8px;margin:20px 0;max-width:100%;box-sizing:border-box}.loading-spinner{width:40px;height:40px;border:3px solid rgba(46, 110, 223, 0.2);border-radius:50%;border-top-color:#2E6EDF;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{to{transform:rotate(360deg)}}.loading-text{text-align:center;color:#333;font-weight:500}.loading-subtext{color:#888;font-size:14px;margin-top:4px}.free-input{width:100%}.textarea-container{margin-bottom:16px}.textarea-container label{display:block;margin-bottom:8px;font-weight:500;color:#333}.textarea-container textarea{border:1px solid #ddd;border-radius:4px;font-size:14px;resize:vertical;background-color:#f9f9f9;min-height:150px;width:100%;padding:12px 16px;margin-bottom:20px;max-width:100%;box-sizing:border-box;word-wrap:break-word}.textarea-container textarea:focus{outline:none;border-color:#2E6EDF;box-shadow:0 0 0 2px rgba(46, 110, 223, 0.2)}.input-guide{background-color:#f5f7fa;border-radius:4px;padding:12px 16px;margin-bottom:20px;max-width:100%;box-sizing:border-box;word-wrap:break-word}.guide-title{font-weight:500;color:#333;margin-bottom:8px}.guide-content{color:#666;font-size:13px;max-width:100%;word-wrap:break-word}.guide-content div{margin-bottom:4px}@media (max-width: 768px){.tag-container{gap:7px}.tag{padding:4px 8px;font-size:12px}}@media (max-width: 480px){.button-container{flex-direction:column;align-items:center}.next-button,.prev-button,.submit-button{width:100%;margin-bottom:8px}.tag{max-width:calc(50% - 8px)}}.tag-selection,.tag-selection-content,.ai-tags-section,.basic-tags-section,.structured-input,.free-input{max-width:100%;box-sizing:border-box}";
@@ -1,17 +1,17 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h } from './p-ede7ecba.js';
2
- import { a as authStore, v as verifyApiKey, b as verifySmsCode } from './p-9e6ae09c.js';
2
+ import { a as authStore, v as verifyApiKey, b as verifySmsCode } from './p-b7bb8ae0.js';
3
3
  import { E as ErrorEventBus } from './p-58549ef5.js';
4
4
  import { a as configStore } from './p-2bb2a918.js';
5
5
  import { M as Message } from './p-19046fd5.js';
6
- import { d as defineCustomElement$a } from './p-d4ab612b.js';
7
- import { d as defineCustomElement$9 } from './p-61f7a372.js';
8
- import { d as defineCustomElement$8 } from './p-f48d08fc.js';
6
+ import { d as defineCustomElement$a } from './p-6aaa0e50.js';
7
+ import { d as defineCustomElement$9 } from './p-f95304ac.js';
8
+ import { d as defineCustomElement$8 } from './p-42239106.js';
9
9
  import { d as defineCustomElement$7 } from './p-81f76e7e.js';
10
- import { d as defineCustomElement$6 } from './p-929b5752.js';
10
+ import { d as defineCustomElement$6 } from './p-ea362132.js';
11
11
  import { d as defineCustomElement$5 } from './p-bb14fd9c.js';
12
- import { d as defineCustomElement$4 } from './p-8fec4aa5.js';
13
- import { d as defineCustomElement$3 } from './p-fb809f1b.js';
14
- import { d as defineCustomElement$2 } from './p-bbcf138c.js';
12
+ import { d as defineCustomElement$4 } from './p-dd0286e7.js';
13
+ import { d as defineCustomElement$3 } from './p-2aea3414.js';
14
+ import { d as defineCustomElement$2 } from './p-02a6367d.js';
15
15
 
16
16
  const oemJlppModalCss = ".label-with-button{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.button-group{display:flex;gap:8px;align-items:center}.position-selector-button{padding:4px 12px;background:#1890ff;color:white;border:none;border-radius:4px;font-size:13px;cursor:pointer;transition:all 0.3s ease;white-space:nowrap;height:28px;line-height:20px}.position-selector-button:hover{background:#40a9ff}.position-selector-button:active{background:#096dd9}.phone-input{width:calc(100% - 16px);padding:8px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s}.phone-input:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.verification-code-container{display:flex;gap:8px;align-items:center}.verification-code-input{flex:1;padding:8px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s}.verification-code-input:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.send-code-button{padding:8px 16px;background:#0D75FB;color:white;border:none;border-radius:4px;font-size:14px;cursor:pointer;transition:all 0.3s ease;white-space:nowrap;min-width:100px}.send-code-button:hover:not(:disabled){background-color:#40a9ff}.send-code-button:disabled{background-color:rgba(0, 0, 0, 0.04);color:rgba(0, 0, 0, 0.25);cursor:not-allowed}.position-selector-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:3000;padding:20px}.position-selector-modal{background:white;border-radius:8px;width:90%;max-width:900px;height:80vh;max-height:600px;display:flex;flex-direction:column;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);animation:modalFadeIn 0.3s ease}@keyframes modalFadeIn{from{opacity:0;transform:scale(0.95) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.position-selector-modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.position-selector-modal-header h3{margin:0;font-size:16px;font-weight:500;color:rgba(0, 0, 0, 0.85)}.position-selector-close-btn{background:none;border:none;font-size:24px;line-height:1;cursor:pointer;color:rgba(0, 0, 0, 0.45);padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all 0.3s}.position-selector-close-btn:hover{background-color:rgba(0, 0, 0, 0.06);color:rgba(0, 0, 0, 0.85)}.position-selector-modal-body{flex:1;overflow:hidden;display:flex;flex-direction:column}@media screen and (max-width: 768px){.position-selector-modal{width:100%;height:90vh;max-height:none;border-radius:8px 8px 0 0;margin-top:auto}.position-selector-modal-overlay{padding:0;align-items:flex-end}}";
17
17
  const OemJlppModalStyle0 = oemJlppModalCss;
@@ -1,18 +1,18 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h } from './p-ede7ecba.js';
2
- import { a as authStore, v as verifyApiKey, d as sendHttpRequest, k as getCosPreviewUrl, m as uploadFileByUrl, s as sendSSERequest, P as PCM_DOMAIN } from './p-9e6ae09c.js';
2
+ import { a as authStore, v as verifyApiKey, d as sendHttpRequest, k as getCosPreviewUrl, m as uploadFileByUrl, s as sendSSERequest, P as PCM_DOMAIN } from './p-b7bb8ae0.js';
3
3
  import { s as showMessage } from './p-7dcc4064.js';
4
4
  import { M as Message } from './p-19046fd5.js';
5
5
  import { E as ErrorEventBus } from './p-58549ef5.js';
6
6
  import { a as configStore } from './p-2bb2a918.js';
7
7
  import { S as SentryReporter } from './p-592a83a6.js';
8
8
  import { m as marked_umd, e as extendedTables } from './p-ab92ad97.js';
9
- import { d as defineCustomElement$8 } from './p-d4ab612b.js';
9
+ import { d as defineCustomElement$8 } from './p-6aaa0e50.js';
10
10
  import { d as defineCustomElement$7 } from './p-bb14fd9c.js';
11
- import { d as defineCustomElement$6 } from './p-a74b1704.js';
11
+ import { d as defineCustomElement$6 } from './p-8bd007f7.js';
12
12
  import { d as defineCustomElement$5 } from './p-456cfedd.js';
13
- import { d as defineCustomElement$4 } from './p-8fec4aa5.js';
14
- import { d as defineCustomElement$3 } from './p-fb809f1b.js';
15
- import { d as defineCustomElement$2 } from './p-bbcf138c.js';
13
+ import { d as defineCustomElement$4 } from './p-dd0286e7.js';
14
+ import { d as defineCustomElement$3 } from './p-2aea3414.js';
15
+ import { d as defineCustomElement$2 } from './p-02a6367d.js';
16
16
 
17
17
  const globalCss = ".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}.fullscreen-overlay{padding:0;background-color:rgba(0, 0, 0, 0.7);position:absolute;width:100%;height:auto}.modal-container{background-color:#fff;border-radius:8px;width:100%;display:flex;flex-direction:column;position:relative;margin:10vh auto auto auto;transition:all 0.3s ease-out;overflow:hidden}.modal-container.fullscreen{width:100%;max-width:none;height:100%;border-radius:0;margin:0;display:flex;flex-direction:column;max-height:100%}.pc-layout{width:80%;max-width:600px;min-width:320px}@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)}}.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;font-size:16px;font-weight:600;color:#333}.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}.upload-area{cursor:pointer;width:100%}.upload-placeholder{transition:all 0.3s ease;display:flex;flex-direction:column;align-items:center;background:rgba(0, 0, 0, 0.02);border:1px dashed #d9d9d9;border-radius:8px;cursor:pointer}.upload-placeholder:hover{border:1px dashed #1890ff}.upload-placeholder img{margin-top:8px;width:50px;height:50px}.upload-placeholder .upload-text{margin:4px 0;color:#332F39;font-size:14px}.upload-placeholder .upload-hint{font-size:14px;color:#949AA5;margin-top:8px;padding:0px 10px;text-align:center;white-space:normal;word-wrap:break-word;word-break:break-all;line-height:1.4}.file-item{position:relative;padding:16px;border:1px solid #e2e8f0;border-radius:8px;transition:border-color 0.3s;cursor:pointer;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}.file-item:hover{border-color:#0D75FB}.file-item-content{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden}.file-icon{color:#0D75FB;flex-shrink:0}.file-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 50px)}.remove-file{background:transparent;border:none;color:#94a3b8;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;padding:4px;margin-left:8px;border-radius:4px;transition:all 0.2s;min-width:30px;min-height:30px}.remove-file:hover{background-color:#f1f5f9;color:#475569}.file-input{display:none}.input-container{padding:20px;display:flex;flex-direction:column;height:calc(100% - 50px);background:linear-gradient(150deg, #2a6ee933, #0000 50%) 0 0 / 400px 200px no-repeat, #fff;overflow-y:auto}.input-container h3{margin-top:0;margin-bottom:20px;font-size:18px;color:#333;text-align:center}.jd-input-section{margin-bottom:20px}.jd-input-section label{display:block;margin-bottom:8px;font-weight:500;color:#333}.job-description-textarea{width:calc(100% - 16px);border:1px solid #ddd;border-radius:4px;resize:vertical;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s;padding:8px}.job-description-textarea:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.resume-upload-section{margin-bottom:20px;width:100%;display:flex;flex-direction:column}.resume-upload-section label{display:block;margin-bottom:8px;font-weight:500;color:#333}.interview-settings-section{margin-bottom:24px;padding:20px;background-color:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.settings-row{margin-bottom:20px}.settings-row:last-child{margin-bottom:0}.settings-label{display:block;font-weight:500;color:#333;margin-bottom:12px;font-size:14px}.question-number-section{width:100%}.slider-container{display:flex;align-items:center;gap:12px}.question-slider{flex:1;height:6px;background:#ddd;outline:none;border-radius:3px;-webkit-appearance:none;appearance:none}.question-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;background:#0D75FB;cursor:pointer;border-radius:50%;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}.question-slider::-moz-range-thumb{width:20px;height:20px;background:#0D75FB;cursor:pointer;border-radius:50%;border:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}.slider-value{font-weight:600;color:#0D75FB;font-size:14px;min-width:30px;text-align:center}.analysis-toggle-section{width:100%}.toggle-container{display:flex;align-items:center;gap:12px}.toggle-switch{position:relative;display:inline-block;width:44px;height:24px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:0.3s;border-radius:24px}.toggle-slider:before{position:absolute;content:\"\";height:18px;width:18px;left:3px;bottom:3px;background-color:white;transition:0.3s;border-radius:50%;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}input:checked+.toggle-slider{background-color:#0D75FB}input:checked+.toggle-slider:before{transform:translateX(20px)}.toggle-text{font-size:14px;color:#666;font-weight:500}.submit-button{margin-top:10px;padding:10px 30px;background:#0D75FB;color:white;border:none;border-radius:4px;font-size:16px;cursor:pointer;transition:all 0.3s ease;width:100%;max-width:400px;align-self:center}.submit-button:hover{background-color:#40a9ff}.submit-button:disabled{background-color:rgba(0,0,0,0.04);color:rgba(0,0,0,0.25);cursor:not-allowed}.ai-disclaimer{margin-top:16px;text-align:center;font-size:12px;color:#999;line-height:1.5}.ai-disclaimer p{margin:4px 0}.beian-info{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}.ai-disclaimer a{color:#666;text-decoration:none;transition:color 0.2s ease}.ai-disclaimer a:hover{color:#1890ff;text-decoration:underline}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:24px}.loading-spinner{width:40px;height:40px;border:4px solid rgba(0, 0, 0, 0.1);border-radius:50%;border-top-color:var(--pcm-primary-color, #1890ff);animation:spin 1s linear infinite;margin-bottom:16px}.loading-text{font-size:16px;color:var(--pcm-text-color, #333)}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.header-history-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 8px;border:none;border-radius:4px;background:transparent;color:#bbb;cursor:pointer;font-size:13px;font-family:inherit;line-height:1;transition:all 0.2s ease;flex-shrink:0;white-space:nowrap}.header-history-button svg{width:16px;height:16px;display:block;flex-shrink:0}.header-history-button:hover{background-color:rgba(0, 0, 0, 0.04);color:#666}.header-history-button:focus-visible{outline:2px solid rgba(13, 117, 251, 0.35);outline-offset:2px}.history-drawer-content{height:100%;display:flex;flex-direction:column}.conversation-list{flex:1;overflow-y:auto;padding:8px 0}.loading-conversations,.empty-conversations{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;color:#999}.loading-conversations .loading-spinner-small{margin-bottom:12px}.conversation-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;margin:0 8px 4px 8px;border-radius:8px;cursor:pointer;transition:all 0.2s ease;border:1px solid transparent}.conversation-item:hover{background:#f5f5f5}.conversation-info{flex:1;min-width:0}.conversation-title{font-size:14px;font-weight:500;color:#262626;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#8c8c8c}.conversation-time{flex-shrink:0}.message-count{flex-shrink:0}.conversation-status{padding:2px 6px;border-radius:4px;font-size:11px;font-weight:500}.conversation-status.completed{background:#f6ffed;color:#52c41a}.conversation-status.running{background:#fff7e6;color:#fa8c16}.header-history-entry{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:4px 8px;border:none;border-radius:4px;background:#e6f7ff;color:#1890ff;cursor:pointer;font-size:12px;font-family:inherit;line-height:1;white-space:nowrap;transition:all 0.2s ease}.header-history-entry:hover{background:#bae7ff;color:#0958d9;transform:translateY(-1px)}.header-history-entry:focus-visible{outline:2px solid rgba(13, 117, 251, 0.35);outline-offset:2px}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 16px;border-top:1px solid #f0f0f0}.history-pagination-button{min-width:72px;padding:6px 12px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#595959;cursor:pointer;font-size:12px;transition:all 0.2s ease}.history-pagination-button:hover:not(:disabled){border-color:#1890ff;color:#1890ff;background:#e6f7ff}.history-pagination-button:disabled{border-color:#f0f0f0;color:#bfbfbf;background:#fafafa;cursor:not-allowed}.history-pagination-info{flex:1;text-align:center;color:#8c8c8c;font-size:12px}";
18
18
  const OemJlsxModalStyle0 = globalCss;
@@ -1,15 +1,15 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h } from './p-ede7ecba.js';
2
- import { a as authStore, v as verifyApiKey, P as PCM_DOMAIN } from './p-9e6ae09c.js';
2
+ import { a as authStore, v as verifyApiKey, P as PCM_DOMAIN } from './p-b7bb8ae0.js';
3
3
  import { E as ErrorEventBus } from './p-58549ef5.js';
4
4
  import { a as configStore } from './p-2bb2a918.js';
5
5
  import { M as Message } from './p-19046fd5.js';
6
- import { d as defineCustomElement$8 } from './p-61f7a372.js';
7
- import { d as defineCustomElement$7 } from './p-f48d08fc.js';
6
+ import { d as defineCustomElement$8 } from './p-f95304ac.js';
7
+ import { d as defineCustomElement$7 } from './p-42239106.js';
8
8
  import { d as defineCustomElement$6 } from './p-81f76e7e.js';
9
- import { d as defineCustomElement$5 } from './p-929b5752.js';
9
+ import { d as defineCustomElement$5 } from './p-ea362132.js';
10
10
  import { d as defineCustomElement$4 } from './p-bb14fd9c.js';
11
- import { d as defineCustomElement$3 } from './p-fb809f1b.js';
12
- import { d as defineCustomElement$2 } from './p-bbcf138c.js';
11
+ import { d as defineCustomElement$3 } from './p-2aea3414.js';
12
+ import { d as defineCustomElement$2 } from './p-02a6367d.js';
13
13
 
14
14
  const oemJlzzModalCss = ".resume-type-container{display:flex;flex-direction:row;gap:32px;margin-bottom:16px;border-bottom:2px solid #f0f0f0;padding-left:4px}.resume-type-item{cursor:pointer;font-size:16px;color:#333;padding:0 0 8px 0;position:relative;background:none;border:none;outline:none;font-weight:400;transition:color 0.2s}.resume-type-item.selected{color:#2563eb;font-weight:600}.resume-type-item.selected::after{content:'';display:block;position:absolute;left:0;bottom:-2px;width:100%;height:2px;background:#2563eb;border-radius:2px}.chat-content{background-color:#f7f9fc;border:1px solid #e0e6f1;border-radius:8px;padding:16px;display:flex;align-items:center;gap:16px}.chat-content-icon{font-size:24px;flex-shrink:0}.chat-content-text{font-size:14px;color:#595959;line-height:1.6}.resume-type-item:not(.selected):hover{color:#2563eb}.iframe-container{width:100%;height:85vh}.iframe-container iframe{width:100%;height:100%}.optimizing-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.35);z-index:2000;display:flex;align-items:center;justify-content:center}.optimizing-modal-content{background:#fff;border-radius:8px;padding:32px 40px;box-shadow:0 4px 24px rgba(0, 0, 0, 0.12);display:flex;flex-direction:column;align-items:center}.optimizing-modal-content .loading-spinner{width:40px;height:40px;border:4px solid #e0e0e0;border-top:4px solid #2563eb;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}.converstation-list{height:600px;overflow:auto}.conversation-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;margin:0 8px 4px 8px;border-radius:8px;cursor:pointer;transition:all 0.2s ease;border:1px solid transparent}.conversation-item:hover{background:#f5f5f5}.conversation-item.active{background:#e6f7ff;border-color:#1890ff}.conversation-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#8c8c8c}.conversation-time{flex-shrink:0}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.optimizing-modal-content .loading-text{font-size:18px;color:#222;font-weight:500;margin:0}";
15
15
  const OemJlzzModalStyle0 = oemJlzzModalCss;