pcm-agents 0.6.108-beta.0 → 0.6.108-beta.1

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 (134) hide show
  1. package/dist/cjs/components-position-selector_32.cjs.entry.js +3 -3
  2. package/dist/cjs/{conversation-utils-d2c8d5c8.js → conversation-utils-2d4b0730.js} +3 -3
  3. package/dist/cjs/{conversation-utils-d2c8d5c8.js.map → conversation-utils-2d4b0730.js.map} +1 -1
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/oem-htws-modal.cjs.entry.js +8 -7
  6. package/dist/cjs/oem-htws-modal.cjs.entry.js.map +1 -1
  7. package/dist/cjs/oem-jd-modal.cjs.entry.js +2 -2
  8. package/dist/cjs/oem-jlpp-modal.cjs.entry.js +1 -1
  9. package/dist/cjs/oem-jlzz-modal.cjs.entry.js +1 -1
  10. package/dist/cjs/oem-mnct-modal.cjs.entry.js +1 -1
  11. package/dist/cjs/oem-mnms-modal.cjs.entry.js +1 -1
  12. package/dist/cjs/oem-qgqjl-modal.cjs.entry.js +3 -3
  13. package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +2 -2
  14. package/dist/cjs/pcm-jlsx-modal.cjs.entry.js +2 -2
  15. package/dist/cjs/{sentry-reporter-ad481a44.js → sentry-reporter-84edfc8c.js} +2 -2
  16. package/dist/cjs/{sentry-reporter-ad481a44.js.map → sentry-reporter-84edfc8c.js.map} +1 -1
  17. package/dist/cjs/{utils-f77a12c2.js → utils-d5513a8a.js} +2 -2
  18. package/dist/cjs/{utils-f77a12c2.js.map → utils-d5513a8a.js.map} +1 -1
  19. package/dist/collection/components/oem-htws-modal/oem-htws-modal.js +9 -8
  20. package/dist/collection/components/oem-htws-modal/oem-htws-modal.js.map +1 -1
  21. package/dist/components/components-position-selector.js +1 -1
  22. package/dist/components/index.js +1 -1
  23. package/dist/components/oem-htws-modal.js +12 -11
  24. package/dist/components/oem-htws-modal.js.map +1 -1
  25. package/dist/components/oem-jd-modal.js +4 -4
  26. package/dist/components/oem-jlpp-modal.js +7 -7
  27. package/dist/components/oem-jlsx-modal.js +5 -5
  28. package/dist/components/oem-jlzz-modal.js +5 -5
  29. package/dist/components/oem-mnct-modal.js +7 -7
  30. package/dist/components/oem-mnms-modal.js +8 -8
  31. package/dist/components/oem-qgqjl-modal.js +9 -9
  32. package/dist/components/oem-zygh-modal.js +5 -5
  33. package/dist/components/{p-077b9606.js → p-0cce0309.js} +4 -4
  34. package/dist/components/{p-077b9606.js.map → p-0cce0309.js.map} +1 -1
  35. package/dist/components/{p-8e0f4c6b.js → p-1d883e3b.js} +2 -2
  36. package/dist/components/{p-8e0f4c6b.js.map → p-1d883e3b.js.map} +1 -1
  37. package/dist/components/{p-22fd5bf8.js → p-2c9842e3.js} +2 -2
  38. package/dist/components/{p-22fd5bf8.js.map → p-2c9842e3.js.map} +1 -1
  39. package/dist/components/{p-2d0dcf8c.js → p-2e35726f.js} +3 -3
  40. package/dist/components/{p-2d0dcf8c.js.map → p-2e35726f.js.map} +1 -1
  41. package/dist/components/{p-4bdcf489.js → p-891def49.js} +2 -2
  42. package/dist/components/{p-4bdcf489.js.map → p-891def49.js.map} +1 -1
  43. package/dist/components/{p-0e0e5abe.js → p-9a8f1c45.js} +2 -2
  44. package/dist/components/{p-0e0e5abe.js.map → p-9a8f1c45.js.map} +1 -1
  45. package/dist/components/{p-a40d9c74.js → p-9b80ce61.js} +2 -2
  46. package/dist/components/{p-a40d9c74.js.map → p-9b80ce61.js.map} +1 -1
  47. package/dist/components/{p-bbb16bc4.js → p-a6f1a7cb.js} +2 -2
  48. package/dist/components/{p-bbb16bc4.js.map → p-a6f1a7cb.js.map} +1 -1
  49. package/dist/components/{p-f1c5686d.js → p-c836a9ec.js} +2 -2
  50. package/dist/components/{p-f1c5686d.js.map → p-c836a9ec.js.map} +1 -1
  51. package/dist/components/{p-b635b1bf.js → p-d3545121.js} +2 -2
  52. package/dist/components/{p-b635b1bf.js.map → p-d3545121.js.map} +1 -1
  53. package/dist/components/{p-f9caa59b.js → p-de0f3ab9.js} +2 -2
  54. package/dist/components/{p-f9caa59b.js.map → p-de0f3ab9.js.map} +1 -1
  55. package/dist/components/{p-714fd929.js → p-e03fa914.js} +2 -2
  56. package/dist/components/{p-714fd929.js.map → p-e03fa914.js.map} +1 -1
  57. package/dist/components/pcm-1zhanshi-mnms-modal.js +5 -5
  58. package/dist/components/pcm-app-chat-modal.js +1 -1
  59. package/dist/components/pcm-ats-mnms-modal.js +5 -5
  60. package/dist/components/pcm-card.js +1 -1
  61. package/dist/components/pcm-chat-message.js +1 -1
  62. package/dist/components/pcm-digital-human.js +1 -1
  63. package/dist/components/pcm-export-records-modal.js +1 -1
  64. package/dist/components/pcm-hr-chat-modal.js +2 -2
  65. package/dist/components/pcm-htws-modal.js +8 -8
  66. package/dist/components/pcm-hyzj-modal.js +5 -5
  67. package/dist/components/pcm-jd-modal.js +5 -5
  68. package/dist/components/pcm-jlpp-modal.js +8 -8
  69. package/dist/components/pcm-jlsx-modal.js +5 -5
  70. package/dist/components/pcm-jlzz-modal.js +6 -6
  71. package/dist/components/pcm-mnct-modal.js +7 -7
  72. package/dist/components/pcm-mnms-modal.js +8 -8
  73. package/dist/components/pcm-mnms-zp-modal.js +8 -8
  74. package/dist/components/pcm-mobile-input-btn.js +1 -1
  75. package/dist/components/pcm-mobile-upload-btn.js +1 -1
  76. package/dist/components/pcm-msbg-modal.js +5 -5
  77. package/dist/components/pcm-qgqjl-modal.js +9 -9
  78. package/dist/components/pcm-thousand-resume-wrapper.js +1 -1
  79. package/dist/components/pcm-upload.js +1 -1
  80. package/dist/components/pcm-virtual-chat-modal.js +1 -1
  81. package/dist/components/pcm-zsk-chat-modal.js +2 -2
  82. package/dist/components/pcm-zygh-modal.js +7 -7
  83. package/dist/components/pcm-zygh-v2-modal.js +7 -7
  84. package/dist/esm/components-position-selector_32.entry.js +3 -3
  85. package/dist/esm/{conversation-utils-7e4d66b9.js → conversation-utils-83c91bfa.js} +3 -3
  86. package/dist/esm/{conversation-utils-7e4d66b9.js.map → conversation-utils-83c91bfa.js.map} +1 -1
  87. package/dist/esm/index.js +1 -1
  88. package/dist/esm/oem-htws-modal.entry.js +8 -7
  89. package/dist/esm/oem-htws-modal.entry.js.map +1 -1
  90. package/dist/esm/oem-jd-modal.entry.js +2 -2
  91. package/dist/esm/oem-jlpp-modal.entry.js +1 -1
  92. package/dist/esm/oem-jlzz-modal.entry.js +1 -1
  93. package/dist/esm/oem-mnct-modal.entry.js +1 -1
  94. package/dist/esm/oem-mnms-modal.entry.js +1 -1
  95. package/dist/esm/oem-qgqjl-modal.entry.js +3 -3
  96. package/dist/esm/pcm-hr-chat-modal.entry.js +2 -2
  97. package/dist/esm/pcm-jlsx-modal.entry.js +2 -2
  98. package/dist/esm/{sentry-reporter-26d20b65.js → sentry-reporter-90e9ff64.js} +2 -2
  99. package/dist/esm/{sentry-reporter-26d20b65.js.map → sentry-reporter-90e9ff64.js.map} +1 -1
  100. package/dist/esm/{utils-47ccef41.js → utils-4b0905b9.js} +2 -2
  101. package/dist/esm/{utils-47ccef41.js.map → utils-4b0905b9.js.map} +1 -1
  102. package/dist/pcm-agents/index.esm.js +1 -1
  103. package/dist/pcm-agents/{p-b1d2248a.js → p-20b0f18d.js} +2 -2
  104. package/dist/pcm-agents/{p-e6675a75.entry.js → p-2b3b4369.entry.js} +2 -2
  105. package/dist/pcm-agents/p-2b3b4369.entry.js.map +1 -0
  106. package/dist/pcm-agents/{p-58e7de48.entry.js → p-48719536.entry.js} +2 -2
  107. package/dist/pcm-agents/{p-f1be6413.entry.js → p-6ce17f44.entry.js} +2 -2
  108. package/dist/pcm-agents/{p-65c2ef21.entry.js → p-75861628.entry.js} +2 -2
  109. package/dist/pcm-agents/{p-b33b57b4.entry.js → p-7f32d3e1.entry.js} +2 -2
  110. package/dist/pcm-agents/{p-ebc762f0.js → p-87987444.js} +2 -2
  111. package/dist/pcm-agents/p-889a4d60.js +2 -0
  112. package/dist/pcm-agents/{p-2d3b7101.entry.js → p-910a7c55.entry.js} +2 -2
  113. package/dist/pcm-agents/{p-e71541cc.entry.js → p-a345a959.entry.js} +2 -2
  114. package/dist/pcm-agents/{p-21c6b06b.entry.js → p-a70901af.entry.js} +2 -2
  115. package/dist/pcm-agents/{p-0ac49cc6.entry.js → p-baa92afd.entry.js} +2 -2
  116. package/dist/pcm-agents/{p-79d79742.entry.js → p-f630da88.entry.js} +2 -2
  117. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  118. package/dist/types/components/oem-htws-modal/oem-htws-modal.d.ts +2 -2
  119. package/dist/types/components.d.ts +2 -2
  120. package/package.json +1 -1
  121. package/dist/pcm-agents/p-30963443.js +0 -2
  122. package/dist/pcm-agents/p-e6675a75.entry.js.map +0 -1
  123. /package/dist/pcm-agents/{p-b1d2248a.js.map → p-20b0f18d.js.map} +0 -0
  124. /package/dist/pcm-agents/{p-58e7de48.entry.js.map → p-48719536.entry.js.map} +0 -0
  125. /package/dist/pcm-agents/{p-f1be6413.entry.js.map → p-6ce17f44.entry.js.map} +0 -0
  126. /package/dist/pcm-agents/{p-65c2ef21.entry.js.map → p-75861628.entry.js.map} +0 -0
  127. /package/dist/pcm-agents/{p-b33b57b4.entry.js.map → p-7f32d3e1.entry.js.map} +0 -0
  128. /package/dist/pcm-agents/{p-ebc762f0.js.map → p-87987444.js.map} +0 -0
  129. /package/dist/pcm-agents/{p-30963443.js.map → p-889a4d60.js.map} +0 -0
  130. /package/dist/pcm-agents/{p-2d3b7101.entry.js.map → p-910a7c55.entry.js.map} +0 -0
  131. /package/dist/pcm-agents/{p-e71541cc.entry.js.map → p-a345a959.entry.js.map} +0 -0
  132. /package/dist/pcm-agents/{p-21c6b06b.entry.js.map → p-a70901af.entry.js.map} +0 -0
  133. /package/dist/pcm-agents/{p-0ac49cc6.entry.js.map → p-baa92afd.entry.js.map} +0 -0
  134. /package/dist/pcm-agents/{p-79d79742.entry.js.map → p-f630da88.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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.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-ad481a44.js');
11
- const conversationUtils = require('./conversation-utils-d2c8d5c8.js');
10
+ const sentryReporter = require('./sentry-reporter-84edfc8c.js');
11
+ const conversationUtils = require('./conversation-utils-2d4b0730.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-f77a12c2.js');
4
- const sentryReporter = require('./sentry-reporter-ad481a44.js');
3
+ const utils = require('./utils-d5513a8a.js');
4
+ const sentryReporter = require('./sentry-reporter-84edfc8c.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-d2c8d5c8.js.map
106
+ //# sourceMappingURL=conversation-utils-2d4b0730.js.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"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-2d4b0730.js","mappings":";;;;;;A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G,CAAC,CAAC,IAAyB,MAAM;gBAC3G,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,KAAK;gBACxB,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;gBACnC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;gBACnC,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,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}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const utils = require('./utils-f77a12c2.js');
5
+ const utils = require('./utils-d5513a8a.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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
8
  const message_service = require('./message.service-67c4a512.js');
9
9
 
@@ -244,7 +244,7 @@ const OemHtwsModal = class {
244
244
  };
245
245
  handleStartInterview = async () => {
246
246
  // 既没有预设 file_url,也没有上传文件,则提示
247
- if (!this.customInputs?.file_url && !this.uploadedFileInfo) {
247
+ if (!this.customInputs?.file_url && !this.uploadedFileInfo?.length) {
248
248
  message_service.Message.info('请上传合同文件');
249
249
  return;
250
250
  }
@@ -304,7 +304,7 @@ const OemHtwsModal = class {
304
304
  };
305
305
  // 显示加载状态
306
306
  const isLoading = this.conversationId && !this.showChatModal;
307
- return (index.h("div", { class: overlayClass, style: modalStyle }, index.h("div", { class: containerClass }, this.isShowHeader && (index.h("div", { class: "modal-header" }, index.h("div", { class: "header-left" }, this.icon && index.h("img", { src: this.icon, class: "header-icon", alt: "\u5E94\u7528\u56FE\u6807" }), index.h("div", null, this.modalTitle)), this.isNeedClose && (index.h("button", { class: "close-button", onClick: this.handleClose }, index.h("span", null, "\u00D7"))))), !this.showChatModal && !this.conversationId && (index.h("div", { class: "input-container" }, index.h("div", { class: "resume-upload-section" }, index.h("label", null, "\u4E0A\u4F20\u5408\u540C"), index.h("pcm-mobile-upload-btn", { maxFileSize: 25 * 1024 * 1024, multiple: false, uploadAreaMode: true, uploadText: "\u70B9\u51FB\u4E0A\u4F20\u5408\u540C", acceptFileSuffixList: ['.txt', '.md', '.pdf', '.docx', '.doc'], uploadParams: {
307
+ return (index.h("div", { class: overlayClass, style: modalStyle }, index.h("div", { class: containerClass }, this.isShowHeader && (index.h("div", { class: "modal-header" }, index.h("div", { class: "header-left" }, this.icon && index.h("img", { src: this.icon, class: "header-icon", alt: "\u5E94\u7528\u56FE\u6807" }), index.h("div", null, this.modalTitle)), this.isNeedClose && (index.h("button", { class: "close-button", onClick: this.handleClose }, index.h("span", null, "\u00D7"))))), !this.showChatModal && !this.conversationId && (index.h("div", { class: "input-container" }, index.h("div", { class: "resume-upload-section" }, index.h("label", null, "\u4E0A\u4F20\u5408\u540C"), index.h("pcm-mobile-upload-btn", { maxFileSize: 25 * 1024 * 1024, multiple: true, maxFileCount: 5, uploadAreaMode: true, uploadText: "\u70B9\u51FB\u4E0A\u4F20\u5408\u540C", acceptFileSuffixList: [".pdf", ".doc", ".docx", ".jpg", ".jpeg", ".png"], uploadParams: {
308
308
  tags: ['other'],
309
309
  }, defaultFileList: this.customInputs?.file_url ? [{
310
310
  cos_key: this.customInputs.file_url,
@@ -313,12 +313,13 @@ const OemHtwsModal = class {
313
313
  ext: '',
314
314
  }] : undefined, disabled: !!this.customInputs?.file_url, onOk: (e) => {
315
315
  const result = e.detail ?? [];
316
- this.uploadedFileInfo = result[0];
316
+ this.uploadedFileInfo = result;
317
317
  this.uploadSuccess.emit(this.uploadedFileInfo);
318
- } })), index.h("div", { class: "jd-input-section" }, index.h("label", null, "\u624B\u673A\u53F7\uFF08\u9009\u586B\uFF0C\u586B\u5199\u540E\u7ED3\u679C\u5C06\u901A\u8FC7\u77ED\u4FE1\u53D1\u9001\uFF09"), index.h("input", { type: "tel", class: "phone-input", placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7", maxLength: 11, value: this.phoneNumber, onInput: this.handlePhoneNumberChange })), this.phoneNumber.trim().length === 11 && (index.h("div", { class: "jd-input-section" }, index.h("label", null, "\u9A8C\u8BC1\u7801"), index.h("div", { class: "verification-code-container" }, index.h("input", { type: "text", class: "verification-code-input", placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801", maxLength: 6, value: this.verificationCode, onInput: this.handleVerificationCodeChange }), index.h("button", { class: "send-code-button", disabled: this.isSendingCode || this.countdown > 0 || !this.phoneNumber.trim(), onClick: this.handleSendCode }, this.isSendingCode ? '发送中...' : this.countdown > 0 ? `${this.countdown}秒` : '发送验证码')))), index.h("button", { class: "submit-button", disabled: (!this.customInputs?.file_url && !this.uploadedFileInfo) || this.isUploading || this.isSubmitting || this.isVerifyingCode, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isVerifyingCode ? '验证中...' : this.isSubmitting ? '处理中...' : '开始分析'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, botId: "3022316191018882", conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
318
+ } })), index.h("div", { class: "jd-input-section" }, index.h("label", null, "\u624B\u673A\u53F7\uFF08\u9009\u586B\uFF0C\u586B\u5199\u540E\u7ED3\u679C\u5C06\u901A\u8FC7\u77ED\u4FE1\u53D1\u9001\uFF09"), index.h("input", { type: "tel", class: "phone-input", placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7", maxLength: 11, value: this.phoneNumber, onInput: this.handlePhoneNumberChange })), this.phoneNumber.trim().length === 11 && (index.h("div", { class: "jd-input-section" }, index.h("label", null, "\u9A8C\u8BC1\u7801"), index.h("div", { class: "verification-code-container" }, index.h("input", { type: "text", class: "verification-code-input", placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801", maxLength: 6, value: this.verificationCode, onInput: this.handleVerificationCodeChange }), index.h("button", { class: "send-code-button", disabled: this.isSendingCode || this.countdown > 0 || !this.phoneNumber.trim(), onClick: this.handleSendCode }, this.isSendingCode ? '发送中...' : this.countdown > 0 ? `${this.countdown}秒` : '发送验证码')))), index.h("button", { class: "submit-button", disabled: (!this.customInputs?.file_url && !this.uploadedFileInfo?.length) || this.isUploading || this.isSubmitting || this.isVerifyingCode, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isVerifyingCode ? '验证中...' : this.isSubmitting ? '处理中...' : '开始分析'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, botId: "3022316191018882", conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
319
319
  ...this.customInputs,
320
- file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
321
- file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
320
+ file_url: this.customInputs?.file_url || this.uploadedFileInfo?.map?.((item) => item.cos_key)?.join(","),
321
+ file_name: this.customInputs?.file_name,
322
+ file_names: this.customInputs?.file_names || this.uploadedFileInfo?.map?.((item) => item.file_name)?.join(","),
322
323
  phone: this.phoneNumber.trim() || undefined
323
324
  }, interviewMode: "text" }))))));
324
325
  }
@@ -1 +1 @@
1
- {"file":"oem-htws-modal.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,ykEAAykE,CAAC;AAClmE,2BAAe,eAAe;;ACD9B,MAAM,SAAS,GAAG,0sSAA0sS,CAAC;AAC7tS,2BAAe,SAAS;;ACDxB,MAAM,OAAO,GAAG,2wBAA2wB,CAAC;AAC5xB,2BAAe,OAAO;;MCgBT,YAAY;;;;;;;;;;;;;;;IAIb,UAAU,GAAW,QAAQ,CAAC;;;;IAKR,KAAK,CAAU;;;;IAKpB,MAAM,GAAY,KAAK,CAAC;;;;IAKxC,WAAW,CAAqB;;;;IAKjC,IAAI,CAAU;;;;IAKd,MAAM,GAAY,IAAI,CAAC;;;;IAKvB,YAAY,GAAY,IAAI,CAAC;;;;IAK7B,WAAW,GAAY,IAAI,CAAC;;;;IAKX,cAAc,CAAU;;;;IAKzC,YAAY,GAAW,OAAO,CAAC;;;;IAK/B,UAAU,GAAY,KAAK,CAAC;;;;IAK5B,YAAY,GAA2B,EAAE,CAAC;;;;IAK1C,oBAAoB,GAAY,KAAK,CAAC;;;;IAKrC,aAAa,CAAmC;;;;IAKhD,cAAc,CAAwC;;;;IAKtD,iBAAiB,CAA2C;;;;IAK5D,iBAAiB,CAA2C;;;;IAK5D,YAAY,CAAqB;;;;IAKjC,cAAc,CAAiC;;;;;;IAO/C,kBAAkB,CAAqD;;;;;;IAOxE,eAAe,GAAwB,QAAQ,CAAC;IAE/C,WAAW,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,KACfA,qBACIA,gCACI,MAAM,EAAE,IAAI,EACZ,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,KAAK,EAAC,kBAAkB,EACxB,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,YAAY,EAAE;gBACV,GAAG,IAAI,CAAC,YAAY;gBACpB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,IAAI,IAAI,CAAC,gBAAgB,EAAE,OAAO;gBACvE,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,IAAI,IAAI,CAAC,gBAAgB,EAAE,SAAS;gBAC3E,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,SAAS;aAC9C,EACD,aAAa,EAAC,MAAM,GACF,CACpB,CACT,CACC,CACJ,EACR;KACL;;;;;;;;;;","names":["authStore","verifyApiKey","configStore","ErrorEventBus","Message","verifySmsCode","h"],"sources":["src/components/oem-htws-modal/oem-htws-modal.css?tag=oem-htws-modal&encapsulation=shadow","src/global/global.css?tag=oem-htws-modal&encapsulation=shadow","src/global/host.css?tag=oem-htws-modal&encapsulation=shadow","src/components/oem-htws-modal/oem-htws-modal.tsx"],"sourcesContent":["/* 输入模式切换 */\n.input-mode-toggle {\n display: flex;\n align-items: center;\n margin-bottom: 16px;\n}\n \n.input-mode-toggle span {\n color: #333;\n margin-right: 12px;\n}\n \n.toggle-button {\n display: flex;\n align-items: center;\n background: none;\n border: none;\n color: #2E6EDF;\n cursor: pointer;\n font-size: 14px;\n padding: 4px 8px;\n}\n \n.toggle-button svg {\n margin-right: 4px;\n}\n\n/* 自由输入模式 */\n.free-input {\n width: 100%;\n}\n\n.textarea-container {\n margin-bottom: 16px;\n}\n\n.textarea-container label {\n display: block;\n margin-bottom: 8px;\n font-weight: 500;\n color: #333;\n}\n\n.textarea-container textarea {\n border: 1px solid #ddd;\n border-radius: 4px;\n font-size: 14px;\n resize: vertical;\n background-color: #f9f9f9;\n min-height: 150px;\n width: 100%;\n padding: 12px 16px;\n margin-bottom: 20px;\n max-width: 100%;\n box-sizing: border-box;\n word-wrap: break-word;\n}\n\n.textarea-container textarea:focus {\n outline: none;\n border-color: #2E6EDF;\n box-shadow: 0 0 0 2px rgba(46, 110, 223, 0.2);\n}\n\n.required {\n color: #f56c6c;\n}\n\n.input-guide {\n background-color: #f5f7fa;\n border-radius: 4px;\n padding: 12px 16px;\n margin-bottom: 20px;\n max-width: 100%;\n box-sizing: border-box;\n word-wrap: break-word;\n}\n\n.guide-title {\n font-weight: 500;\n color: #333;\n margin-bottom: 8px;\n}\n\n.guide-content {\n color: #666;\n font-size: 13px;\n max-width: 100%;\n word-wrap: break-word;\n}\n\n.guide-content div {\n margin-bottom: 4px;\n}\n\n/* 手机号输入框样式 */\n.phone-input {\n width: calc(100% - 16px);\n padding: 8px;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-family: inherit;\n font-size: 14px;\n line-height: 1.5;\n transition: border-color 0.3s;\n}\n\n.phone-input:focus {\n outline: none;\n border-color: #1890ff;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n\n/* 验证码容器样式 */\n.verification-code-container {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.verification-code-input {\n flex: 1;\n padding: 8px;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-family: inherit;\n font-size: 14px;\n line-height: 1.5;\n transition: border-color 0.3s;\n}\n\n.verification-code-input:focus {\n outline: none;\n border-color: #1890ff;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n\n/* 发送验证码按钮样式 */\n.send-code-button {\n padding: 8px 16px;\n background: #0D75FB;\n color: white;\n border: none;\n border-radius: 4px;\n font-size: 14px;\n cursor: pointer;\n transition: all 0.3s ease;\n white-space: nowrap;\n min-width: 100px;\n}\n\n.send-code-button:hover:not(:disabled) {\n background-color: #40a9ff;\n}\n\n.send-code-button:disabled {\n background-color: rgba(0, 0, 0, 0.04);\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n","/* 模态框基础样式 */\n.modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n z-index: 1000;\n overflow-y: auto;\n}\n\n/* 全屏模式下的overlay样式 - 改为基于父组件 */\n.fullscreen-overlay {\n padding: 0;\n background-color: rgba(0, 0, 0, 0.7);\n /* 改为基于父组件的全屏 */\n position: absolute;\n width: 100%;\n height: auto;\n}\n\n.modal-container {\n background-color: #fff;\n border-radius: 8px;\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n margin: 5vh auto auto auto;\n transition: all 0.3s ease-out;\n overflow: hidden;\n}\n\n/* 全屏模式样式 - 改为基于父组件 */\n.modal-container.fullscreen {\n width: 100%;\n max-width: none;\n height: 100%;\n border-radius: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n max-height: 100%;\n}\n\n/* PC端布局 */\n.pc-layout {\n width: 80%;\n max-width: 600px;\n min-width: 320px;\n}\n\n/* 响应式布局 */\n@media screen and (max-width: 768px) {\n .pc-layout {\n width: 95%;\n }\n\n .modal-overlay {\n padding: 10px 0px 0px 0px;\n }\n\n .modal-container.fullscreen {\n /* 移动端也基于父组件尺寸 */\n width: 100%;\n height: 100%;\n max-height: 100%;\n border-radius: 16px 16px 0 0;\n /* 保留安全区域支持 */\n padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);\n }\n}\n\n/* 模态框头部样式 */\n.modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 16px;\n height: 50px;\n border-bottom: 1px solid #e8e8e8;\n flex-shrink: 0;\n}\n\n.header-left {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n}\n\n.header-icon {\n width: 24px;\n height: 24px;\n}\n\n.close-button {\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n\n.close-button:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.close-button span {\n font-size: 24px;\n line-height: 1;\n color: #999;\n}\n\n.close-button:hover span {\n color: #666;\n}\n\n\n/* 文件上传区域通用样式 */\n.upload-area {\n cursor: pointer;\n width: 100%;\n}\n\n\n.upload-placeholder {\n transition: all 0.3s ease;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: rgba(0, 0, 0, 0.02);\n border: 1px dashed #d9d9d9;\n border-radius: 8px;\n cursor: pointer;\n}\n\n.upload-placeholder:hover {\n border: 1px dashed #1890ff;\n}\n\n.upload-placeholder img {\n margin-top: 8px;\n width: 50px;\n height: 50px;\n}\n\n.upload-placeholder .upload-text {\n margin: 4px 0;\n color: #332F39;\n font-size: 14px;\n}\n\n.upload-placeholder .upload-hint {\n font-size: 14px;\n color: #949AA5;\n margin-top: 8px;\n padding: 0px 10px;\n text-align: center;\n white-space: normal;\n word-wrap: break-word;\n word-break: break-all;\n line-height: 1.4;\n}\n\n\n/* 文件项样式 */\n.file-item {\n position: relative;\n padding: 16px;\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n transition: border-color 0.3s;\n cursor: pointer;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.file-item:hover {\n border-color: #0D75FB;\n}\n\n.file-item-content {\n display: flex;\n align-items: center;\n gap: 8px;\n flex: 1;\n min-width: 0;\n overflow: hidden;\n}\n\n.file-icon {\n color: #0D75FB;\n flex-shrink: 0;\n}\n\n.file-name {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: calc(100% - 50px);\n}\n\n.remove-file {\n background: transparent;\n border: none;\n color: #94a3b8;\n cursor: pointer;\n font-size: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n margin-left: 8px;\n border-radius: 4px;\n transition: all 0.2s;\n min-width: 30px;\n min-height: 30px;\n}\n\n.remove-file:hover {\n background-color: #f1f5f9;\n color: #475569;\n}\n\n.file-input {\n display: none;\n}\n\n\n\n/* 输入容器样式 */\n.input-container {\n padding: 20px;\n display: flex;\n flex-direction: column;\n height: calc(100% - 50px);\n background: linear-gradient(150deg, #2a6ee933, #0000 50%) 0 0 / 400px 200px no-repeat, #fff;\n /* 减去header高度 */\n overflow-y: auto;\n}\n\n.input-container h3 {\n margin-top: 0;\n margin-bottom: 20px;\n font-size: 18px;\n color: #333;\n text-align: center;\n}\n\n/* JD输入区域样式 */\n.jd-input-section {\n margin-bottom: 20px;\n}\n\n.jd-input-section label {\n display: block;\n margin-bottom: 8px;\n font-weight: 500;\n color: #333;\n}\n\n.job-description-textarea {\n width: calc(100% - 16px);\n border: 1px solid #ddd;\n border-radius: 4px;\n resize: vertical;\n font-family: inherit;\n font-size: 14px;\n line-height: 1.5;\n transition: border-color 0.3s;\n padding: 8px;\n}\n\n.job-description-textarea:focus {\n outline: none;\n border-color: #1890ff;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n\n/* 简历上传区域样式 */\n.resume-upload-section {\n margin-bottom: 20px;\n width: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.resume-upload-section label {\n display: block;\n margin-bottom: 8px;\n font-weight: 500;\n color: #333;\n}\n\n/* 面试设置区域 */\n.interview-settings-section {\n margin-bottom: 24px;\n padding: 20px;\n background-color: #f8f9fa;\n border-radius: 8px;\n border: 1px solid #e9ecef;\n}\n\n.settings-row {\n margin-bottom: 20px;\n}\n\n.settings-row:last-child {\n margin-bottom: 0;\n}\n\n.settings-label {\n display: block;\n font-weight: 500;\n color: #333;\n margin-bottom: 12px;\n font-size: 14px;\n}\n\n/* 题目数量滑块样式 */\n.question-number-section {\n width: 100%;\n}\n\n.slider-container {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.question-slider {\n flex: 1;\n height: 6px;\n background: #ddd;\n outline: none;\n border-radius: 3px;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.question-slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 20px;\n height: 20px;\n background: #0D75FB;\n cursor: pointer;\n border-radius: 50%;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.question-slider::-moz-range-thumb {\n width: 20px;\n height: 20px;\n background: #0D75FB;\n cursor: pointer;\n border-radius: 50%;\n border: none;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.slider-value {\n font-weight: 600;\n color: #0D75FB;\n font-size: 14px;\n min-width: 30px;\n text-align: center;\n}\n\n/* 开关样式 */\n.analysis-toggle-section {\n width: 100%;\n}\n\n.toggle-container {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.toggle-switch {\n position: relative;\n display: inline-block;\n width: 44px;\n height: 24px;\n}\n\n.toggle-switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.toggle-slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n transition: 0.3s;\n border-radius: 24px;\n}\n\n.toggle-slider:before {\n position: absolute;\n content: \"\";\n height: 18px;\n width: 18px;\n left: 3px;\n bottom: 3px;\n background-color: white;\n transition: 0.3s;\n border-radius: 50%;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\ninput:checked + .toggle-slider {\n background-color: #0D75FB;\n}\n\ninput:checked + .toggle-slider:before {\n transform: translateX(20px);\n}\n\n.toggle-text {\n font-size: 14px;\n color: #666;\n font-weight: 500;\n}\n\n/* 提交按钮通用样式 */\n.submit-button {\n margin-top: 10px;\n padding: 10px 30px;\n background: #0D75FB;\n color: white;\n border: none;\n border-radius: 4px;\n font-size: 16px;\n cursor: pointer;\n transition: all 0.3s ease;\n width: 100%;\n max-width: 400px;\n align-self: center;\n}\n\n.submit-button:hover {\n background-color: #40a9ff;\n}\n\n.submit-button:disabled {\n background-color: rgba(0,0,0,0.04);\n color: rgba(0,0,0,0.25);\n cursor: not-allowed;\n}\n\n\n\n/* AI免责声明和备案信息样式 */\n.ai-disclaimer {\n margin-top: 16px;\n text-align: center;\n font-size: 12px;\n color: #999;\n line-height: 1.5;\n}\n\n.ai-disclaimer p {\n margin: 4px 0;\n}\n\n.beian-info {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n gap: 4px;\n}\n\n.ai-disclaimer a {\n color: #666;\n text-decoration: none;\n transition: color 0.2s ease;\n}\n\n.ai-disclaimer a:hover {\n color: #1890ff;\n text-decoration: underline;\n}\n\n/* 添加加载状态的样式 */\n.loading-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 24px;\n }\n \n .loading-spinner {\n width: 40px;\n height: 40px;\n border: 4px solid rgba(0, 0, 0, 0.1);\n border-radius: 50%;\n border-top-color: var(--pcm-primary-color, #1890ff);\n animation: spin 1s linear infinite;\n margin-bottom: 16px;\n }\n \n .loading-text {\n font-size: 16px;\n color: var(--pcm-text-color, #333);\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n/* 历史会话按钮 */\n.header-history-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: #bbb;\n cursor: pointer;\n font-size: 13px;\n font-family: inherit;\n line-height: 1;\n transition: all 0.2s ease;\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.header-history-button svg {\n width: 16px;\n height: 16px;\n display: block;\n flex-shrink: 0;\n}\n\n.header-history-button:hover {\n background-color: rgba(0, 0, 0, 0.04);\n color: #666;\n}\n\n.header-history-button:focus-visible {\n outline: 2px solid rgba(13, 117, 251, 0.35);\n outline-offset: 2px;\n}\n\n/* 历史会话抽屉内容 */\n.history-drawer-content {\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.conversation-list {\n flex: 1;\n overflow-y: auto;\n padding: 8px 0;\n}\n\n.loading-conversations,\n.empty-conversations {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 40px 20px;\n color: #999;\n}\n\n.loading-conversations .loading-spinner-small {\n margin-bottom: 12px;\n}\n\n.conversation-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n margin: 0 8px 4px 8px;\n border-radius: 8px;\n cursor: pointer;\n transition: all 0.2s ease;\n border: 1px solid transparent;\n}\n\n.conversation-item:hover {\n background: #f5f5f5;\n}\n\n.conversation-info {\n flex: 1;\n min-width: 0;\n}\n\n.conversation-title {\n font-size: 14px;\n font-weight: 500;\n color: #262626;\n margin-bottom: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.conversation-meta {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 12px;\n color: #8c8c8c;\n}\n\n.conversation-time {\n flex-shrink: 0;\n}\n\n.message-count {\n flex-shrink: 0;\n}\n\n.conversation-status {\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 500;\n}\n\n.conversation-status.completed {\n background: #f6ffed;\n color: #52c41a;\n}\n\n.conversation-status.running {\n background: #fff7e6;\n color: #fa8c16;\n}\n\n.header-history-entry {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 8px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n background: #e6f7ff;\n color: #1890ff;\n cursor: pointer;\n font-size: 12px;\n font-family: inherit;\n line-height: 1;\n white-space: nowrap;\n transition: all 0.2s ease;\n}\n\n.header-history-entry:hover {\n background: #bae7ff;\n color: #0958d9;\n transform: translateY(-1px);\n}\n\n.header-history-entry:focus-visible {\n outline: 2px solid rgba(13, 117, 251, 0.35);\n outline-offset: 2px;\n}\n\n.history-pagination {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 12px 16px 16px;\n border-top: 1px solid #f0f0f0;\n}\n\n.history-pagination-button {\n min-width: 72px;\n padding: 6px 12px;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #fff;\n color: #595959;\n cursor: pointer;\n font-size: 12px;\n transition: all 0.2s ease;\n}\n\n.history-pagination-button:hover:not(:disabled) {\n border-color: #1890ff;\n color: #1890ff;\n background: #e6f7ff;\n}\n\n.history-pagination-button:disabled {\n border-color: #f0f0f0;\n color: #bfbfbf;\n background: #fafafa;\n cursor: not-allowed;\n}\n\n.history-pagination-info {\n flex: 1;\n text-align: center;\n color: #8c8c8c;\n font-size: 12px;\n}\n \n",":host {\n /* 字体相关属性 */\n font-size: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n font-weight: normal;\n font-style: normal;\n font-variant: normal;\n line-height: 1.5;\n letter-spacing: normal;\n word-spacing: normal;\n \n /* 文本相关属性 */\n color: #333; /* 重置文字颜色,避免继承外部的red */\n text-align: left;\n text-indent: 0;\n text-transform: none;\n white-space: normal;\n word-wrap: normal;\n word-break: normal;\n \n /* 可见性 */\n visibility: visible;\n \n /* 列表相关 */\n list-style: none;\n list-style-image: none;\n list-style-position: outside;\n list-style-type: disc;\n \n /* 表格相关 */\n border-collapse: separate;\n border-spacing: 0;\n caption-side: top;\n empty-cells: show;\n table-layout: auto;\n \n /* 引用 */\n quotes: auto;\n \n /* 光标 */\n cursor: auto;\n \n /* 文本方向 */\n direction: ltr;\n \n /* 打印相关 */\n orphans: 2;\n widows: 2;\n page-break-inside: auto;\n \n /* 其他可能被继承的属性 */\n text-decoration: none;\n text-shadow: none;\n \n /* 确保组件有独立的盒模型 */\n box-sizing: border-box;\n \n /* 重置一些可能影响布局的继承属性 */\n writing-mode: horizontal-tb;\n text-orientation: mixed;\n}","import { Component, Prop, h, State, Element, Event, EventEmitter, Watch } from '@stencil/core';\nimport { FileUploadResponse, verifyApiKey, verifySmsCode } from '../../utils/utils';\nimport { ConversationStartEventData, InterviewCompleteEventData, StreamCompleteEventData } from '../../interfaces/events';\nimport { ErrorEventBus, ErrorEventDetail } from '../../utils/error-event';\nimport { authStore } from '../../../store/auth.store';\nimport { configStore } from '../../../store/config.store';\nimport { Message } from '../../services/message.service';\n\n/**\n * 劳动合同卫士\n */\n\n@Component({\n tag: 'oem-htws-modal',\n styleUrls: ['oem-htws-modal.css', '../../global/global.css', '../../global/host.css'],\n shadow: true,\n})\nexport class OemHtwsModal {\n /**\n * 模态框标题\n */\n @Prop() modalTitle: string = '劳动合同卫士';\n\n /**\n * SDK鉴权密钥\n */\n @Prop({ attribute: 'token' }) token!: string;\n\n /**\n * 是否显示聊天模态框\n */\n @Prop({ mutable: true }) isOpen: boolean = false;\n\n /**\n * 当点击模态框关闭时触发\n */\n @Event() modalClosed: EventEmitter<void>;\n\n /**\n * 应用图标URL\n */\n @Prop() icon?: string;\n\n /**\n * 聊天框的页面层级\n */\n @Prop() zIndex?: number = 1000;\n\n /**\n * 是否展示顶部标题栏\n */\n @Prop() isShowHeader: boolean = true;\n\n /**\n * 是否展示右上角的关闭按钮\n */\n @Prop() isNeedClose: boolean = true;\n\n /**\n * 会话ID,传入继续对话,否则创建新会话\n */\n @Prop({ mutable: true }) conversationId?: string;\n\n /**\n * 默认查询文本\n */\n @Prop() defaultQuery: string = '请开始分析';\n\n /**\n * 是否以全屏模式打开,移动端建议设置为true\n */\n @Prop() fullscreen: boolean = false;\n\n /**\n * 自定义输入参数,可直接传入customInputs.file_url时<br>\n */\n @Prop() customInputs: Record<string, string> = {};\n\n /**\n * 是否显示工作区历史会话按钮\n */\n @Prop() showWorkspaceHistory: boolean = false;\n\n /**\n * 上传成功事件\n */\n @Event() uploadSuccess: EventEmitter<FileUploadResponse>;\n\n /**\n * 流式输出完成事件\n */\n @Event() streamComplete: EventEmitter<StreamCompleteEventData>;\n\n /**\n * 新会话开始的回调,只会在一轮对话开始时触发一次\n */\n @Event() conversationStart: EventEmitter<ConversationStartEventData>;\n\n /**\n * 当聊天完成时触发\n */\n @Event() interviewComplete: EventEmitter<InterviewCompleteEventData>;\n\n /**\n * SDK密钥验证失败事件\n */\n @Event() tokenInvalid: EventEmitter<void>;\n\n /**\n * 错误事件\n */\n @Event() someErrorEvent: EventEmitter<ErrorEventDetail>;\n\n /**\n * 发送短信验证码请求事件\n * 接入方需要监听此事件并调用自己的短信接口发送验证码\n * 事件参数: { mobile: string, codeType: number }\n */\n @Event() sendSmsCodeRequest: EventEmitter<{ mobile: string; codeType: number }>;\n\n /**\n * 附件预览模式\n * 'drawer': 在右侧抽屉中预览\n * 'window': 在新窗口中打开\n */\n @Prop() filePreviewMode: 'drawer' | 'window' = 'drawer';\n\n @State() isUploading: boolean = false;\n @State() uploadedFileInfo: FileUploadResponse | null = null;\n @State() showChatModal: boolean = false;\n\n // 使用 @Element 装饰器获取组件的 host 元素\n @Element() hostElement: HTMLElement;\n\n @State() isSubmitting: boolean = false;\n\n // 手机号和验证码相关状态\n @State() phoneNumber: string = '';\n @State() verificationCode: string = '';\n @State() isSendingCode: boolean = false;\n @State() countdown: number = 0;\n @State() isVerifyingCode: boolean = false;\n\n\n private tokenInvalidListener: () => void;\n private removeErrorListener: () => void;\n private pcmUploadRef;\n private countdownTimer: NodeJS.Timeout | null = null;\n\n @Watch('token')\n handleTokenChange(newToken: string) {\n // 当传入的 token 变化时,更新 authStore 中的 token\n if (newToken && newToken !== authStore.getToken()) {\n authStore.setToken(newToken);\n }\n }\n\n @Watch('isOpen')\n async handleIsOpenChange(newValue: boolean) {\n if (!newValue) {\n // 重置状态\n this.showChatModal = false;\n this.isSubmitting = false;\n this.uploadedFileInfo = null;\n // 重置手机号和验证码相关状态\n this.phoneNumber = '';\n this.verificationCode = '';\n this.isSendingCode = false;\n this.isVerifyingCode = false;\n this.countdown = 0;\n if (this.countdownTimer) {\n clearInterval(this.countdownTimer);\n this.countdownTimer = null;\n }\n } else {\n await verifyApiKey(this.token);\n\n // 如果有会话ID直接显示聊天模态框\n if (this.conversationId) {\n this.showChatModal = true;\n }\n }\n }\n\n componentWillLoad() {\n\n // 将 zIndex 存入配置缓存\n if (this.zIndex) {\n configStore.setItem('modal-zIndex', this.zIndex);\n }\n\n // 初始化时设置 token,但不验证(验证在 @Watch('isOpen') 中处理)\n if (this.token) {\n authStore.setToken(this.token);\n }\n\n // 添加全局token无效事件监听器\n this.tokenInvalidListener = () => {\n this.tokenInvalid.emit();\n };\n\n // 添加全局错误监听\n this.removeErrorListener = ErrorEventBus.addErrorListener((errorDetail) => {\n this.someErrorEvent.emit(errorDetail);\n });\n\n document.addEventListener('pcm-token-invalid', this.tokenInvalidListener);\n }\n\n disconnectedCallback() {\n // 组件销毁时移除事件监听器\n document.removeEventListener('pcm-token-invalid', this.tokenInvalidListener);\n // 移除错误监听器\n if (this.removeErrorListener) {\n this.removeErrorListener();\n }\n // 清理倒计时定时器\n if (this.countdownTimer) {\n clearInterval(this.countdownTimer);\n this.countdownTimer = null;\n }\n }\n\n private handleClose = () => {\n this.modalClosed.emit();\n };\n\n private handlePhoneNumberChange = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.phoneNumber = input.value;\n };\n\n private handleVerificationCodeChange = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.verificationCode = input.value;\n };\n\n private startCountdown = () => {\n this.countdown = 60;\n if (this.countdownTimer) {\n clearInterval(this.countdownTimer);\n }\n this.countdownTimer = setInterval(() => {\n this.countdown--;\n if (this.countdown <= 0) {\n if (this.countdownTimer) {\n clearInterval(this.countdownTimer);\n this.countdownTimer = null;\n }\n }\n }, 1000);\n };\n\n private handleSendCode = () => {\n if (!this.phoneNumber.trim()) {\n Message.error('请输入手机号');\n return;\n }\n\n // 验证手机号格式\n const phoneRegex = /^1[3-9]\\d{9}$/;\n if (!phoneRegex.test(this.phoneNumber.trim())) {\n Message.error('请输入正确的手机号');\n return;\n }\n\n // 设置发送中状态\n this.isSendingCode = true;\n\n // 触发事件,让接入方去调用自己的短信接口\n this.sendSmsCodeRequest.emit({\n mobile: this.phoneNumber.trim(),\n codeType: 8\n });\n\n // 开始倒计时并重置发送状态\n this.startCountdown();\n this.isSendingCode = false;\n };\n\n private handleStartInterview = async () => {\n // 既没有预设 file_url,也没有上传文件,则提示\n if (!this.customInputs?.file_url && !this.uploadedFileInfo) {\n Message.info('请上传合同文件');\n return;\n }\n\n // 如果填写了手机号,则需要验证验证码\n if (this.phoneNumber.trim()) {\n // 验证手机号格式\n const phoneRegex = /^1[3-9]\\d{9}$/;\n if (!phoneRegex.test(this.phoneNumber.trim())) {\n Message.error('请输入正确的手机号');\n return;\n }\n\n // 验证验证码是否填写\n if (!this.verificationCode.trim()) {\n Message.error('请输入验证码');\n return;\n }\n\n // 验证验证码是否正确\n this.isVerifyingCode = true;\n try {\n const result = await verifySmsCode(this.phoneNumber.trim(), this.verificationCode.trim(), 0);\n if (!result.success) {\n Message.error(result.message || '验证码错误');\n this.isVerifyingCode = false;\n return;\n }\n } catch (error) {\n Message.error('验证码校验失败');\n this.isVerifyingCode = false;\n return;\n }\n this.isVerifyingCode = false;\n }\n\n // 判断文件是否正在上传\n if (await this.pcmUploadRef?.getIsUploading?.()) {\n Message.info('文件上传中,请稍后');\n return;\n }\n\n this.isSubmitting = true;\n this.showChatModal = true;\n this.isSubmitting = false;\n };\n\n \n\n\n render() {\n if (!this.isOpen) return null;\n\n const modalStyle = {\n zIndex: String(this.zIndex)\n };\n\n const containerClass = {\n 'modal-container': true,\n 'fullscreen': this.fullscreen,\n 'pc-layout': true,\n };\n\n const overlayClass = {\n 'modal-overlay': true,\n 'fullscreen-overlay': this.fullscreen\n };\n\n // 显示加载状态\n const isLoading = this.conversationId && !this.showChatModal;\n\n return (\n <div class={overlayClass} style={modalStyle}>\n <div class={containerClass}>\n {this.isShowHeader && (\n <div class=\"modal-header\">\n <div class=\"header-left\">\n {this.icon && <img src={this.icon} class=\"header-icon\" alt=\"应用图标\" />}\n <div>{this.modalTitle}</div>\n </div>\n {this.isNeedClose && (\n <button class=\"close-button\" onClick={this.handleClose}>\n <span>×</span>\n </button>\n )}\n </div>\n )}\n\n {/* 输入界面 - 仅在不显示聊天模态框且没有会话ID时显示 */}\n {!this.showChatModal && !this.conversationId && (\n <div class=\"input-container\">\n {/* 文件上传区域 */}\n <div class=\"resume-upload-section\">\n <label>上传合同</label>\n <pcm-mobile-upload-btn\n maxFileSize={25 * 1024 * 1024}\n multiple={false}\n uploadAreaMode={true}\n uploadText=\"点击上传合同\"\n acceptFileSuffixList={['.txt', '.md', '.pdf', '.docx', '.doc']}\n uploadParams={{\n tags: ['other'],\n }}\n defaultFileList={this.customInputs?.file_url ? [{\n cos_key: this.customInputs.file_url,\n file_name: this.customInputs?.file_name || '预设文件',\n file_size: 0,\n ext: '',\n }] : undefined}\n disabled={!!this.customInputs?.file_url}\n onOk={(e) => {\n const result: FileUploadResponse[] = e.detail ?? [];\n this.uploadedFileInfo = result[0];\n this.uploadSuccess.emit(this.uploadedFileInfo);\n }}\n />\n </div>\n\n {/* 手机号和验证码区域(可选) */}\n <div class=\"jd-input-section\">\n <label>手机号(选填,填写后结果将通过短信发送)</label>\n <input\n type=\"tel\"\n class=\"phone-input\"\n placeholder=\"请输入手机号\"\n maxLength={11}\n value={this.phoneNumber}\n onInput={this.handlePhoneNumberChange}\n />\n </div>\n\n {/* 验证码输入区域 - 仅在填写了手机号时显示 */}\n {this.phoneNumber.trim().length === 11 && (\n <div class=\"jd-input-section\">\n <label>验证码</label>\n <div class=\"verification-code-container\">\n <input\n type=\"text\"\n class=\"verification-code-input\"\n placeholder=\"请输入验证码\"\n maxLength={6}\n value={this.verificationCode}\n onInput={this.handleVerificationCodeChange}\n />\n <button\n class=\"send-code-button\"\n disabled={this.isSendingCode || this.countdown > 0 || !this.phoneNumber.trim()}\n onClick={this.handleSendCode}\n >\n {this.isSendingCode ? '发送中...' : this.countdown > 0 ? `${this.countdown}秒` : '发送验证码'}\n </button>\n </div>\n </div>\n )}\n\n <button\n class=\"submit-button\"\n disabled={(!this.customInputs?.file_url && !this.uploadedFileInfo) || this.isUploading || this.isSubmitting || this.isVerifyingCode}\n onClick={this.handleStartInterview}\n >\n {this.isUploading ? '上传中...' : this.isVerifyingCode ? '验证中...' : this.isSubmitting ? '处理中...' : '开始分析'}\n </button>\n\n <div class=\"ai-disclaimer\">\n <p>所有内容均由AI生成仅供参考</p>\n <p class=\"beian-info\">\n <span>中央网信办生成式人工智能服务备案号</span>:\n <a href=\"https://www.pincaimao.com\" target=\"_blank\" rel=\"noopener noreferrer\">Hunan-PinCaiMao-202412310003</a>\n </p>\n </div>\n </div>\n )}\n\n {/* 加载状态 - 在有会话ID但聊天模态框尚未显示时展示 */}\n {isLoading && (\n <div class=\"loading-container\">\n <div class=\"loading-spinner\"></div>\n <p class=\"loading-text\">正在加载对话...</p>\n </div>\n )}\n\n {/* 聊天界面 - 在显示聊天模态框时显示 */}\n {this.showChatModal && (\n <div>\n <pcm-app-chat-modal\n isOpen={true}\n modalTitle={this.modalTitle}\n icon={this.icon}\n isShowHeader={this.isShowHeader}\n isNeedClose={this.isNeedClose}\n fullscreen={this.fullscreen}\n showWorkspaceHistory={this.showWorkspaceHistory}\n botId=\"3022316191018882\"\n conversationId={this.conversationId}\n defaultQuery={this.defaultQuery}\n filePreviewMode={this.filePreviewMode}\n customInputs={{\n ...this.customInputs,\n file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,\n file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,\n phone: this.phoneNumber.trim() || undefined\n }}\n interviewMode=\"text\"\n ></pcm-app-chat-modal>\n </div>\n )}\n </div>\n </div>\n );\n }\n} "],"version":3}
1
+ {"file":"oem-htws-modal.entry.cjs.js","mappings":";;;;;;;;;A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AY,EAAE,IAAI,CAAC,YAAY,EAC/B,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,YAAY,EAAE;gBACV,GAAG,IAAI,CAAC,YAAY;gBACpB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,IAAI,IAAI,CAAC,gBAAgB,EAAE,GAAG,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;gBACxG,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS;gBACvC,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,IAAI,IAAI,CAAC,gBAAgB,EAAE,GAAG,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;gBAC9G,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,SAAS;aAC9C,EACD,aAAa,EAAC,MAAM,GACF,CACpB,CACT,CACC,CACJ,EACR;KACL;;;;;;;;;;","names":["authStore","verifyApiKey","configStore","ErrorEventBus","Message","verifySmsCode","h"],"sources":["src/components/oem-htws-modal/oem-htws-modal.css?tag=oem-htws-modal&encapsulation=shadow","src/global/global.css?tag=oem-htws-modal&encapsulation=shadow","src/global/host.css?tag=oem-htws-modal&encapsulation=shadow","src/components/oem-htws-modal/oem-htws-modal.tsx"],"sourcesContent":["/* 输入模式切换 */\n.input-mode-toggle {\n display: flex;\n align-items: center;\n margin-bottom: 16px;\n}\n \n.input-mode-toggle span {\n color: #333;\n margin-right: 12px;\n}\n \n.toggle-button {\n display: flex;\n align-items: center;\n background: none;\n border: none;\n color: #2E6EDF;\n cursor: pointer;\n font-size: 14px;\n padding: 4px 8px;\n}\n \n.toggle-button svg {\n margin-right: 4px;\n}\n\n/* 自由输入模式 */\n.free-input {\n width: 100%;\n}\n\n.textarea-container {\n margin-bottom: 16px;\n}\n\n.textarea-container label {\n display: block;\n margin-bottom: 8px;\n font-weight: 500;\n color: #333;\n}\n\n.textarea-container textarea {\n border: 1px solid #ddd;\n border-radius: 4px;\n font-size: 14px;\n resize: vertical;\n background-color: #f9f9f9;\n min-height: 150px;\n width: 100%;\n padding: 12px 16px;\n margin-bottom: 20px;\n max-width: 100%;\n box-sizing: border-box;\n word-wrap: break-word;\n}\n\n.textarea-container textarea:focus {\n outline: none;\n border-color: #2E6EDF;\n box-shadow: 0 0 0 2px rgba(46, 110, 223, 0.2);\n}\n\n.required {\n color: #f56c6c;\n}\n\n.input-guide {\n background-color: #f5f7fa;\n border-radius: 4px;\n padding: 12px 16px;\n margin-bottom: 20px;\n max-width: 100%;\n box-sizing: border-box;\n word-wrap: break-word;\n}\n\n.guide-title {\n font-weight: 500;\n color: #333;\n margin-bottom: 8px;\n}\n\n.guide-content {\n color: #666;\n font-size: 13px;\n max-width: 100%;\n word-wrap: break-word;\n}\n\n.guide-content div {\n margin-bottom: 4px;\n}\n\n/* 手机号输入框样式 */\n.phone-input {\n width: calc(100% - 16px);\n padding: 8px;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-family: inherit;\n font-size: 14px;\n line-height: 1.5;\n transition: border-color 0.3s;\n}\n\n.phone-input:focus {\n outline: none;\n border-color: #1890ff;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n\n/* 验证码容器样式 */\n.verification-code-container {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.verification-code-input {\n flex: 1;\n padding: 8px;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-family: inherit;\n font-size: 14px;\n line-height: 1.5;\n transition: border-color 0.3s;\n}\n\n.verification-code-input:focus {\n outline: none;\n border-color: #1890ff;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n\n/* 发送验证码按钮样式 */\n.send-code-button {\n padding: 8px 16px;\n background: #0D75FB;\n color: white;\n border: none;\n border-radius: 4px;\n font-size: 14px;\n cursor: pointer;\n transition: all 0.3s ease;\n white-space: nowrap;\n min-width: 100px;\n}\n\n.send-code-button:hover:not(:disabled) {\n background-color: #40a9ff;\n}\n\n.send-code-button:disabled {\n background-color: rgba(0, 0, 0, 0.04);\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n","/* 模态框基础样式 */\n.modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n z-index: 1000;\n overflow-y: auto;\n}\n\n/* 全屏模式下的overlay样式 - 改为基于父组件 */\n.fullscreen-overlay {\n padding: 0;\n background-color: rgba(0, 0, 0, 0.7);\n /* 改为基于父组件的全屏 */\n position: absolute;\n width: 100%;\n height: auto;\n}\n\n.modal-container {\n background-color: #fff;\n border-radius: 8px;\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n margin: 5vh auto auto auto;\n transition: all 0.3s ease-out;\n overflow: hidden;\n}\n\n/* 全屏模式样式 - 改为基于父组件 */\n.modal-container.fullscreen {\n width: 100%;\n max-width: none;\n height: 100%;\n border-radius: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n max-height: 100%;\n}\n\n/* PC端布局 */\n.pc-layout {\n width: 80%;\n max-width: 600px;\n min-width: 320px;\n}\n\n/* 响应式布局 */\n@media screen and (max-width: 768px) {\n .pc-layout {\n width: 95%;\n }\n\n .modal-overlay {\n padding: 10px 0px 0px 0px;\n }\n\n .modal-container.fullscreen {\n /* 移动端也基于父组件尺寸 */\n width: 100%;\n height: 100%;\n max-height: 100%;\n border-radius: 16px 16px 0 0;\n /* 保留安全区域支持 */\n padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);\n }\n}\n\n/* 模态框头部样式 */\n.modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 16px;\n height: 50px;\n border-bottom: 1px solid #e8e8e8;\n flex-shrink: 0;\n}\n\n.header-left {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n}\n\n.header-icon {\n width: 24px;\n height: 24px;\n}\n\n.close-button {\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n\n.close-button:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.close-button span {\n font-size: 24px;\n line-height: 1;\n color: #999;\n}\n\n.close-button:hover span {\n color: #666;\n}\n\n\n/* 文件上传区域通用样式 */\n.upload-area {\n cursor: pointer;\n width: 100%;\n}\n\n\n.upload-placeholder {\n transition: all 0.3s ease;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: rgba(0, 0, 0, 0.02);\n border: 1px dashed #d9d9d9;\n border-radius: 8px;\n cursor: pointer;\n}\n\n.upload-placeholder:hover {\n border: 1px dashed #1890ff;\n}\n\n.upload-placeholder img {\n margin-top: 8px;\n width: 50px;\n height: 50px;\n}\n\n.upload-placeholder .upload-text {\n margin: 4px 0;\n color: #332F39;\n font-size: 14px;\n}\n\n.upload-placeholder .upload-hint {\n font-size: 14px;\n color: #949AA5;\n margin-top: 8px;\n padding: 0px 10px;\n text-align: center;\n white-space: normal;\n word-wrap: break-word;\n word-break: break-all;\n line-height: 1.4;\n}\n\n\n/* 文件项样式 */\n.file-item {\n position: relative;\n padding: 16px;\n border: 1px solid #e2e8f0;\n border-radius: 8px;\n transition: border-color 0.3s;\n cursor: pointer;\n margin-bottom: 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.file-item:hover {\n border-color: #0D75FB;\n}\n\n.file-item-content {\n display: flex;\n align-items: center;\n gap: 8px;\n flex: 1;\n min-width: 0;\n overflow: hidden;\n}\n\n.file-icon {\n color: #0D75FB;\n flex-shrink: 0;\n}\n\n.file-name {\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: calc(100% - 50px);\n}\n\n.remove-file {\n background: transparent;\n border: none;\n color: #94a3b8;\n cursor: pointer;\n font-size: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n margin-left: 8px;\n border-radius: 4px;\n transition: all 0.2s;\n min-width: 30px;\n min-height: 30px;\n}\n\n.remove-file:hover {\n background-color: #f1f5f9;\n color: #475569;\n}\n\n.file-input {\n display: none;\n}\n\n\n\n/* 输入容器样式 */\n.input-container {\n padding: 20px;\n display: flex;\n flex-direction: column;\n height: calc(100% - 50px);\n background: linear-gradient(150deg, #2a6ee933, #0000 50%) 0 0 / 400px 200px no-repeat, #fff;\n /* 减去header高度 */\n overflow-y: auto;\n}\n\n.input-container h3 {\n margin-top: 0;\n margin-bottom: 20px;\n font-size: 18px;\n color: #333;\n text-align: center;\n}\n\n/* JD输入区域样式 */\n.jd-input-section {\n margin-bottom: 20px;\n}\n\n.jd-input-section label {\n display: block;\n margin-bottom: 8px;\n font-weight: 500;\n color: #333;\n}\n\n.job-description-textarea {\n width: calc(100% - 16px);\n border: 1px solid #ddd;\n border-radius: 4px;\n resize: vertical;\n font-family: inherit;\n font-size: 14px;\n line-height: 1.5;\n transition: border-color 0.3s;\n padding: 8px;\n}\n\n.job-description-textarea:focus {\n outline: none;\n border-color: #1890ff;\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n\n/* 简历上传区域样式 */\n.resume-upload-section {\n margin-bottom: 20px;\n width: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.resume-upload-section label {\n display: block;\n margin-bottom: 8px;\n font-weight: 500;\n color: #333;\n}\n\n/* 面试设置区域 */\n.interview-settings-section {\n margin-bottom: 24px;\n padding: 20px;\n background-color: #f8f9fa;\n border-radius: 8px;\n border: 1px solid #e9ecef;\n}\n\n.settings-row {\n margin-bottom: 20px;\n}\n\n.settings-row:last-child {\n margin-bottom: 0;\n}\n\n.settings-label {\n display: block;\n font-weight: 500;\n color: #333;\n margin-bottom: 12px;\n font-size: 14px;\n}\n\n/* 题目数量滑块样式 */\n.question-number-section {\n width: 100%;\n}\n\n.slider-container {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.question-slider {\n flex: 1;\n height: 6px;\n background: #ddd;\n outline: none;\n border-radius: 3px;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.question-slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 20px;\n height: 20px;\n background: #0D75FB;\n cursor: pointer;\n border-radius: 50%;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.question-slider::-moz-range-thumb {\n width: 20px;\n height: 20px;\n background: #0D75FB;\n cursor: pointer;\n border-radius: 50%;\n border: none;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.slider-value {\n font-weight: 600;\n color: #0D75FB;\n font-size: 14px;\n min-width: 30px;\n text-align: center;\n}\n\n/* 开关样式 */\n.analysis-toggle-section {\n width: 100%;\n}\n\n.toggle-container {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n\n.toggle-switch {\n position: relative;\n display: inline-block;\n width: 44px;\n height: 24px;\n}\n\n.toggle-switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.toggle-slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n transition: 0.3s;\n border-radius: 24px;\n}\n\n.toggle-slider:before {\n position: absolute;\n content: \"\";\n height: 18px;\n width: 18px;\n left: 3px;\n bottom: 3px;\n background-color: white;\n transition: 0.3s;\n border-radius: 50%;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\ninput:checked + .toggle-slider {\n background-color: #0D75FB;\n}\n\ninput:checked + .toggle-slider:before {\n transform: translateX(20px);\n}\n\n.toggle-text {\n font-size: 14px;\n color: #666;\n font-weight: 500;\n}\n\n/* 提交按钮通用样式 */\n.submit-button {\n margin-top: 10px;\n padding: 10px 30px;\n background: #0D75FB;\n color: white;\n border: none;\n border-radius: 4px;\n font-size: 16px;\n cursor: pointer;\n transition: all 0.3s ease;\n width: 100%;\n max-width: 400px;\n align-self: center;\n}\n\n.submit-button:hover {\n background-color: #40a9ff;\n}\n\n.submit-button:disabled {\n background-color: rgba(0,0,0,0.04);\n color: rgba(0,0,0,0.25);\n cursor: not-allowed;\n}\n\n\n\n/* AI免责声明和备案信息样式 */\n.ai-disclaimer {\n margin-top: 16px;\n text-align: center;\n font-size: 12px;\n color: #999;\n line-height: 1.5;\n}\n\n.ai-disclaimer p {\n margin: 4px 0;\n}\n\n.beian-info {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n gap: 4px;\n}\n\n.ai-disclaimer a {\n color: #666;\n text-decoration: none;\n transition: color 0.2s ease;\n}\n\n.ai-disclaimer a:hover {\n color: #1890ff;\n text-decoration: underline;\n}\n\n/* 添加加载状态的样式 */\n.loading-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 24px;\n }\n \n .loading-spinner {\n width: 40px;\n height: 40px;\n border: 4px solid rgba(0, 0, 0, 0.1);\n border-radius: 50%;\n border-top-color: var(--pcm-primary-color, #1890ff);\n animation: spin 1s linear infinite;\n margin-bottom: 16px;\n }\n \n .loading-text {\n font-size: 16px;\n color: var(--pcm-text-color, #333);\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n/* 历史会话按钮 */\n.header-history-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: #bbb;\n cursor: pointer;\n font-size: 13px;\n font-family: inherit;\n line-height: 1;\n transition: all 0.2s ease;\n flex-shrink: 0;\n white-space: nowrap;\n}\n\n.header-history-button svg {\n width: 16px;\n height: 16px;\n display: block;\n flex-shrink: 0;\n}\n\n.header-history-button:hover {\n background-color: rgba(0, 0, 0, 0.04);\n color: #666;\n}\n\n.header-history-button:focus-visible {\n outline: 2px solid rgba(13, 117, 251, 0.35);\n outline-offset: 2px;\n}\n\n/* 历史会话抽屉内容 */\n.history-drawer-content {\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.conversation-list {\n flex: 1;\n overflow-y: auto;\n padding: 8px 0;\n}\n\n.loading-conversations,\n.empty-conversations {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 40px 20px;\n color: #999;\n}\n\n.loading-conversations .loading-spinner-small {\n margin-bottom: 12px;\n}\n\n.conversation-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n margin: 0 8px 4px 8px;\n border-radius: 8px;\n cursor: pointer;\n transition: all 0.2s ease;\n border: 1px solid transparent;\n}\n\n.conversation-item:hover {\n background: #f5f5f5;\n}\n\n.conversation-info {\n flex: 1;\n min-width: 0;\n}\n\n.conversation-title {\n font-size: 14px;\n font-weight: 500;\n color: #262626;\n margin-bottom: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.conversation-meta {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 12px;\n color: #8c8c8c;\n}\n\n.conversation-time {\n flex-shrink: 0;\n}\n\n.message-count {\n flex-shrink: 0;\n}\n\n.conversation-status {\n padding: 2px 6px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 500;\n}\n\n.conversation-status.completed {\n background: #f6ffed;\n color: #52c41a;\n}\n\n.conversation-status.running {\n background: #fff7e6;\n color: #fa8c16;\n}\n\n.header-history-entry {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 8px;\n padding: 4px 8px;\n border: none;\n border-radius: 4px;\n background: #e6f7ff;\n color: #1890ff;\n cursor: pointer;\n font-size: 12px;\n font-family: inherit;\n line-height: 1;\n white-space: nowrap;\n transition: all 0.2s ease;\n}\n\n.header-history-entry:hover {\n background: #bae7ff;\n color: #0958d9;\n transform: translateY(-1px);\n}\n\n.header-history-entry:focus-visible {\n outline: 2px solid rgba(13, 117, 251, 0.35);\n outline-offset: 2px;\n}\n\n.history-pagination {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 12px 16px 16px;\n border-top: 1px solid #f0f0f0;\n}\n\n.history-pagination-button {\n min-width: 72px;\n padding: 6px 12px;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #fff;\n color: #595959;\n cursor: pointer;\n font-size: 12px;\n transition: all 0.2s ease;\n}\n\n.history-pagination-button:hover:not(:disabled) {\n border-color: #1890ff;\n color: #1890ff;\n background: #e6f7ff;\n}\n\n.history-pagination-button:disabled {\n border-color: #f0f0f0;\n color: #bfbfbf;\n background: #fafafa;\n cursor: not-allowed;\n}\n\n.history-pagination-info {\n flex: 1;\n text-align: center;\n color: #8c8c8c;\n font-size: 12px;\n}\n \n",":host {\n /* 字体相关属性 */\n font-size: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n font-weight: normal;\n font-style: normal;\n font-variant: normal;\n line-height: 1.5;\n letter-spacing: normal;\n word-spacing: normal;\n \n /* 文本相关属性 */\n color: #333; /* 重置文字颜色,避免继承外部的red */\n text-align: left;\n text-indent: 0;\n text-transform: none;\n white-space: normal;\n word-wrap: normal;\n word-break: normal;\n \n /* 可见性 */\n visibility: visible;\n \n /* 列表相关 */\n list-style: none;\n list-style-image: none;\n list-style-position: outside;\n list-style-type: disc;\n \n /* 表格相关 */\n border-collapse: separate;\n border-spacing: 0;\n caption-side: top;\n empty-cells: show;\n table-layout: auto;\n \n /* 引用 */\n quotes: auto;\n \n /* 光标 */\n cursor: auto;\n \n /* 文本方向 */\n direction: ltr;\n \n /* 打印相关 */\n orphans: 2;\n widows: 2;\n page-break-inside: auto;\n \n /* 其他可能被继承的属性 */\n text-decoration: none;\n text-shadow: none;\n \n /* 确保组件有独立的盒模型 */\n box-sizing: border-box;\n \n /* 重置一些可能影响布局的继承属性 */\n writing-mode: horizontal-tb;\n text-orientation: mixed;\n}","import { Component, Prop, h, State, Element, Event, EventEmitter, Watch } from '@stencil/core';\nimport { FileUploadResponse, verifyApiKey, verifySmsCode } from '../../utils/utils';\nimport { ConversationStartEventData, InterviewCompleteEventData, StreamCompleteEventData } from '../../interfaces/events';\nimport { ErrorEventBus, ErrorEventDetail } from '../../utils/error-event';\nimport { authStore } from '../../../store/auth.store';\nimport { configStore } from '../../../store/config.store';\nimport { Message } from '../../services/message.service';\n\n/**\n * 劳动合同卫士\n */\n\n@Component({\n tag: 'oem-htws-modal',\n styleUrls: ['oem-htws-modal.css', '../../global/global.css', '../../global/host.css'],\n shadow: true,\n})\nexport class OemHtwsModal {\n /**\n * 模态框标题\n */\n @Prop() modalTitle: string = '劳动合同卫士';\n\n /**\n * SDK鉴权密钥\n */\n @Prop({ attribute: 'token' }) token!: string;\n\n /**\n * 是否显示聊天模态框\n */\n @Prop({ mutable: true }) isOpen: boolean = false;\n\n /**\n * 当点击模态框关闭时触发\n */\n @Event() modalClosed: EventEmitter<void>;\n\n /**\n * 应用图标URL\n */\n @Prop() icon?: string;\n\n /**\n * 聊天框的页面层级\n */\n @Prop() zIndex?: number = 1000;\n\n /**\n * 是否展示顶部标题栏\n */\n @Prop() isShowHeader: boolean = true;\n\n /**\n * 是否展示右上角的关闭按钮\n */\n @Prop() isNeedClose: boolean = true;\n\n /**\n * 会话ID,传入继续对话,否则创建新会话\n */\n @Prop({ mutable: true }) conversationId?: string;\n\n /**\n * 默认查询文本\n */\n @Prop() defaultQuery: string = '请开始分析';\n\n /**\n * 是否以全屏模式打开,移动端建议设置为true\n */\n @Prop() fullscreen: boolean = false;\n\n /**\n * 自定义输入参数,可直接传入customInputs.file_url时<br>\n */\n @Prop() customInputs: Record<string, string> = {};\n\n /**\n * 是否显示工作区历史会话按钮\n */\n @Prop() showWorkspaceHistory: boolean = false;\n\n /**\n * 上传成功事件\n */\n @Event() uploadSuccess: EventEmitter<FileUploadResponse[]>;\n\n /**\n * 流式输出完成事件\n */\n @Event() streamComplete: EventEmitter<StreamCompleteEventData>;\n\n /**\n * 新会话开始的回调,只会在一轮对话开始时触发一次\n */\n @Event() conversationStart: EventEmitter<ConversationStartEventData>;\n\n /**\n * 当聊天完成时触发\n */\n @Event() interviewComplete: EventEmitter<InterviewCompleteEventData>;\n\n /**\n * SDK密钥验证失败事件\n */\n @Event() tokenInvalid: EventEmitter<void>;\n\n /**\n * 错误事件\n */\n @Event() someErrorEvent: EventEmitter<ErrorEventDetail>;\n\n /**\n * 发送短信验证码请求事件\n * 接入方需要监听此事件并调用自己的短信接口发送验证码\n * 事件参数: { mobile: string, codeType: number }\n */\n @Event() sendSmsCodeRequest: EventEmitter<{ mobile: string; codeType: number }>;\n\n /**\n * 附件预览模式\n * 'drawer': 在右侧抽屉中预览\n * 'window': 在新窗口中打开\n */\n @Prop() filePreviewMode: 'drawer' | 'window' = 'drawer';\n\n @State() isUploading: boolean = false;\n @State() uploadedFileInfo: FileUploadResponse[] | null = null;\n @State() showChatModal: boolean = false;\n\n // 使用 @Element 装饰器获取组件的 host 元素\n @Element() hostElement: HTMLElement;\n\n @State() isSubmitting: boolean = false;\n\n // 手机号和验证码相关状态\n @State() phoneNumber: string = '';\n @State() verificationCode: string = '';\n @State() isSendingCode: boolean = false;\n @State() countdown: number = 0;\n @State() isVerifyingCode: boolean = false;\n\n\n private tokenInvalidListener: () => void;\n private removeErrorListener: () => void;\n private pcmUploadRef;\n private countdownTimer: NodeJS.Timeout | null = null;\n\n @Watch('token')\n handleTokenChange(newToken: string) {\n // 当传入的 token 变化时,更新 authStore 中的 token\n if (newToken && newToken !== authStore.getToken()) {\n authStore.setToken(newToken);\n }\n }\n\n @Watch('isOpen')\n async handleIsOpenChange(newValue: boolean) {\n if (!newValue) {\n // 重置状态\n this.showChatModal = false;\n this.isSubmitting = false;\n this.uploadedFileInfo = null;\n // 重置手机号和验证码相关状态\n this.phoneNumber = '';\n this.verificationCode = '';\n this.isSendingCode = false;\n this.isVerifyingCode = false;\n this.countdown = 0;\n if (this.countdownTimer) {\n clearInterval(this.countdownTimer);\n this.countdownTimer = null;\n }\n } else {\n await verifyApiKey(this.token);\n\n // 如果有会话ID直接显示聊天模态框\n if (this.conversationId) {\n this.showChatModal = true;\n }\n }\n }\n\n componentWillLoad() {\n\n // 将 zIndex 存入配置缓存\n if (this.zIndex) {\n configStore.setItem('modal-zIndex', this.zIndex);\n }\n\n // 初始化时设置 token,但不验证(验证在 @Watch('isOpen') 中处理)\n if (this.token) {\n authStore.setToken(this.token);\n }\n\n // 添加全局token无效事件监听器\n this.tokenInvalidListener = () => {\n this.tokenInvalid.emit();\n };\n\n // 添加全局错误监听\n this.removeErrorListener = ErrorEventBus.addErrorListener((errorDetail) => {\n this.someErrorEvent.emit(errorDetail);\n });\n\n document.addEventListener('pcm-token-invalid', this.tokenInvalidListener);\n }\n\n disconnectedCallback() {\n // 组件销毁时移除事件监听器\n document.removeEventListener('pcm-token-invalid', this.tokenInvalidListener);\n // 移除错误监听器\n if (this.removeErrorListener) {\n this.removeErrorListener();\n }\n // 清理倒计时定时器\n if (this.countdownTimer) {\n clearInterval(this.countdownTimer);\n this.countdownTimer = null;\n }\n }\n\n private handleClose = () => {\n this.modalClosed.emit();\n };\n\n private handlePhoneNumberChange = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.phoneNumber = input.value;\n };\n\n private handleVerificationCodeChange = (event: Event) => {\n const input = event.target as HTMLInputElement;\n this.verificationCode = input.value;\n };\n\n private startCountdown = () => {\n this.countdown = 60;\n if (this.countdownTimer) {\n clearInterval(this.countdownTimer);\n }\n this.countdownTimer = setInterval(() => {\n this.countdown--;\n if (this.countdown <= 0) {\n if (this.countdownTimer) {\n clearInterval(this.countdownTimer);\n this.countdownTimer = null;\n }\n }\n }, 1000);\n };\n\n private handleSendCode = () => {\n if (!this.phoneNumber.trim()) {\n Message.error('请输入手机号');\n return;\n }\n\n // 验证手机号格式\n const phoneRegex = /^1[3-9]\\d{9}$/;\n if (!phoneRegex.test(this.phoneNumber.trim())) {\n Message.error('请输入正确的手机号');\n return;\n }\n\n // 设置发送中状态\n this.isSendingCode = true;\n\n // 触发事件,让接入方去调用自己的短信接口\n this.sendSmsCodeRequest.emit({\n mobile: this.phoneNumber.trim(),\n codeType: 8\n });\n\n // 开始倒计时并重置发送状态\n this.startCountdown();\n this.isSendingCode = false;\n };\n\n private handleStartInterview = async () => {\n // 既没有预设 file_url,也没有上传文件,则提示\n if (!this.customInputs?.file_url && !this.uploadedFileInfo?.length) {\n Message.info('请上传合同文件');\n return;\n }\n\n // 如果填写了手机号,则需要验证验证码\n if (this.phoneNumber.trim()) {\n // 验证手机号格式\n const phoneRegex = /^1[3-9]\\d{9}$/;\n if (!phoneRegex.test(this.phoneNumber.trim())) {\n Message.error('请输入正确的手机号');\n return;\n }\n\n // 验证验证码是否填写\n if (!this.verificationCode.trim()) {\n Message.error('请输入验证码');\n return;\n }\n\n // 验证验证码是否正确\n this.isVerifyingCode = true;\n try {\n const result = await verifySmsCode(this.phoneNumber.trim(), this.verificationCode.trim(), 0);\n if (!result.success) {\n Message.error(result.message || '验证码错误');\n this.isVerifyingCode = false;\n return;\n }\n } catch (error) {\n Message.error('验证码校验失败');\n this.isVerifyingCode = false;\n return;\n }\n this.isVerifyingCode = false;\n }\n\n // 判断文件是否正在上传\n if (await this.pcmUploadRef?.getIsUploading?.()) {\n Message.info('文件上传中,请稍后');\n return;\n }\n\n this.isSubmitting = true;\n this.showChatModal = true;\n this.isSubmitting = false;\n };\n\n \n\n\n render() {\n if (!this.isOpen) return null;\n\n const modalStyle = {\n zIndex: String(this.zIndex)\n };\n\n const containerClass = {\n 'modal-container': true,\n 'fullscreen': this.fullscreen,\n 'pc-layout': true,\n };\n\n const overlayClass = {\n 'modal-overlay': true,\n 'fullscreen-overlay': this.fullscreen\n };\n\n // 显示加载状态\n const isLoading = this.conversationId && !this.showChatModal;\n\n return (\n <div class={overlayClass} style={modalStyle}>\n <div class={containerClass}>\n {this.isShowHeader && (\n <div class=\"modal-header\">\n <div class=\"header-left\">\n {this.icon && <img src={this.icon} class=\"header-icon\" alt=\"应用图标\" />}\n <div>{this.modalTitle}</div>\n </div>\n {this.isNeedClose && (\n <button class=\"close-button\" onClick={this.handleClose}>\n <span>×</span>\n </button>\n )}\n </div>\n )}\n\n {/* 输入界面 - 仅在不显示聊天模态框且没有会话ID时显示 */}\n {!this.showChatModal && !this.conversationId && (\n <div class=\"input-container\">\n {/* 文件上传区域 */}\n <div class=\"resume-upload-section\">\n <label>上传合同</label>\n <pcm-mobile-upload-btn\n maxFileSize={25 * 1024 * 1024}\n multiple={true}\n maxFileCount={5}\n uploadAreaMode={true}\n uploadText=\"点击上传合同\"\n acceptFileSuffixList={[\".pdf\", \".doc\", \".docx\", \".jpg\", \".jpeg\", \".png\"]}\n uploadParams={{\n tags: ['other'],\n }}\n defaultFileList={this.customInputs?.file_url ? [{\n cos_key: this.customInputs.file_url,\n file_name: this.customInputs?.file_name || '预设文件',\n file_size: 0,\n ext: '',\n }] : undefined}\n disabled={!!this.customInputs?.file_url}\n onOk={(e) => {\n const result: FileUploadResponse[] = e.detail ?? [];\n this.uploadedFileInfo = result;\n this.uploadSuccess.emit(this.uploadedFileInfo);\n }}\n />\n </div>\n\n {/* 手机号和验证码区域(可选) */}\n <div class=\"jd-input-section\">\n <label>手机号(选填,填写后结果将通过短信发送)</label>\n <input\n type=\"tel\"\n class=\"phone-input\"\n placeholder=\"请输入手机号\"\n maxLength={11}\n value={this.phoneNumber}\n onInput={this.handlePhoneNumberChange}\n />\n </div>\n\n {/* 验证码输入区域 - 仅在填写了手机号时显示 */}\n {this.phoneNumber.trim().length === 11 && (\n <div class=\"jd-input-section\">\n <label>验证码</label>\n <div class=\"verification-code-container\">\n <input\n type=\"text\"\n class=\"verification-code-input\"\n placeholder=\"请输入验证码\"\n maxLength={6}\n value={this.verificationCode}\n onInput={this.handleVerificationCodeChange}\n />\n <button\n class=\"send-code-button\"\n disabled={this.isSendingCode || this.countdown > 0 || !this.phoneNumber.trim()}\n onClick={this.handleSendCode}\n >\n {this.isSendingCode ? '发送中...' : this.countdown > 0 ? `${this.countdown}秒` : '发送验证码'}\n </button>\n </div>\n </div>\n )}\n\n <button\n class=\"submit-button\"\n disabled={(!this.customInputs?.file_url && !this.uploadedFileInfo?.length) || this.isUploading || this.isSubmitting || this.isVerifyingCode}\n onClick={this.handleStartInterview}\n >\n {this.isUploading ? '上传中...' : this.isVerifyingCode ? '验证中...' : this.isSubmitting ? '处理中...' : '开始分析'}\n </button>\n\n <div class=\"ai-disclaimer\">\n <p>所有内容均由AI生成仅供参考</p>\n <p class=\"beian-info\">\n <span>中央网信办生成式人工智能服务备案号</span>:\n <a href=\"https://www.pincaimao.com\" target=\"_blank\" rel=\"noopener noreferrer\">Hunan-PinCaiMao-202412310003</a>\n </p>\n </div>\n </div>\n )}\n\n {/* 加载状态 - 在有会话ID但聊天模态框尚未显示时展示 */}\n {isLoading && (\n <div class=\"loading-container\">\n <div class=\"loading-spinner\"></div>\n <p class=\"loading-text\">正在加载对话...</p>\n </div>\n )}\n\n {/* 聊天界面 - 在显示聊天模态框时显示 */}\n {this.showChatModal && (\n <div>\n <pcm-app-chat-modal\n isOpen={true}\n modalTitle={this.modalTitle}\n icon={this.icon}\n isShowHeader={this.isShowHeader}\n isNeedClose={this.isNeedClose}\n fullscreen={this.fullscreen}\n showWorkspaceHistory={this.showWorkspaceHistory}\n botId=\"3022316191018882\"\n conversationId={this.conversationId}\n defaultQuery={this.defaultQuery}\n filePreviewMode={this.filePreviewMode}\n customInputs={{\n ...this.customInputs,\n file_url: this.customInputs?.file_url || this.uploadedFileInfo?.map?.((item) => item.cos_key)?.join(\",\"),\n file_name: this.customInputs?.file_name,\n file_names: this.customInputs?.file_names || this.uploadedFileInfo?.map?.((item) => item.file_name)?.join(\",\"),\n phone: this.phoneNumber.trim() || undefined\n }}\n interviewMode=\"text\"\n ></pcm-app-chat-modal>\n </div>\n )}\n </div>\n </div>\n );\n }\n} "],"version":3}
@@ -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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
- const sentryReporter = require('./sentry-reporter-ad481a44.js');
8
+ const sentryReporter = require('./sentry-reporter-84edfc8c.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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.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-d2c8d5c8.js');
10
- require('./sentry-reporter-ad481a44.js');
9
+ const conversationUtils = require('./conversation-utils-2d4b0730.js');
10
+ require('./sentry-reporter-84edfc8c.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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.js');
7
7
  const errorEvent = require('./error-event-f4803d60.js');
8
- const sentryReporter = require('./sentry-reporter-ad481a44.js');
8
+ const sentryReporter = require('./sentry-reporter-84edfc8c.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:5vh 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-f77a12c2.js');
6
+ const utils = require('./utils-d5513a8a.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-ad481a44.js');
9
+ const sentryReporter = require('./sentry-reporter-84edfc8c.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:5vh 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-f77a12c2.js');
3
+ const utils = require('./utils-d5513a8a.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-ad481a44.js.map
71
+ //# sourceMappingURL=sentry-reporter-84edfc8c.js.map
@@ -1 +1 @@
1
- {"file":"sentry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,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-84edfc8c.js","mappings":";;;;;AAGA;;;;MAIa,cAAc;;;;;;IAOzB,OAAO,YAAY,CAAC,KAAU,EAAE,OAAkD;QAChF,IAAI;;YAEF,MAAM,KAAK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","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.108-beta.0";
289
+ const version = "0.6.108-beta.1";
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
1006
 
1007
- //# sourceMappingURL=utils-f77a12c2.js.map
1007
+ //# sourceMappingURL=utils-d5513a8a.js.map