pcm-agents 0.6.70 → 0.6.71

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 (127) hide show
  1. package/dist/cjs/components-position-selector_28.cjs.entry.js +21 -6
  2. package/dist/cjs/components-position-selector_28.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-Cqv1YfoE.js → index-C1_EICtw.js} +3 -3
  4. package/dist/cjs/{index-Cqv1YfoE.js.map → index-C1_EICtw.js.map} +1 -1
  5. package/dist/cjs/index.cjs.js +1 -1
  6. package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +2 -2
  7. package/dist/cjs/pcm-htws-modal.cjs.entry.js +1 -1
  8. package/dist/cjs/pcm-jd-modal.cjs.entry.js +2 -2
  9. package/dist/cjs/pcm-jlpp-modal.cjs.entry.js +1 -1
  10. package/dist/cjs/pcm-jlsx-modal.cjs.entry.js +2 -2
  11. package/dist/cjs/pcm-jlzz-modal.cjs.entry.js +2 -2
  12. package/dist/cjs/pcm-mnct-modal.cjs.entry.js +2 -2
  13. package/dist/cjs/pcm-mnms-modal.cjs.entry.js +1 -1
  14. package/dist/cjs/pcm-qgqjl-modal.cjs.entry.js +1 -1
  15. package/dist/cjs/pcm-zygh-modal.cjs.entry.js +1 -1
  16. package/dist/cjs/pcm-zygh-v2-modal.cjs.entry.js +1 -1
  17. package/dist/cjs/{sentry-reporter-DoBzfUe8.js → sentry-reporter-DmYdE5ln.js} +3 -3
  18. package/dist/cjs/{sentry-reporter-DoBzfUe8.js.map → sentry-reporter-DmYdE5ln.js.map} +1 -1
  19. package/dist/collection/components/pcm-virtual-chat-modal/pcm-virtual-chat-modal.js +19 -4
  20. package/dist/collection/components/pcm-virtual-chat-modal/pcm-virtual-chat-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 +6 -6
  24. package/dist/components/oem-jd-modal.js +4 -4
  25. package/dist/components/oem-jlpp-modal.js +8 -8
  26. package/dist/components/oem-jlsx-modal.js +6 -6
  27. package/dist/components/oem-jlzz-modal.js +6 -6
  28. package/dist/components/oem-mnct-modal.js +8 -8
  29. package/dist/components/oem-mnms-modal.js +9 -9
  30. package/dist/components/oem-qgqjl-modal.js +8 -8
  31. package/dist/components/oem-zygh-modal.js +6 -6
  32. package/dist/components/{p-CQfhNt9R.js → p-8BVOPxEo.js} +3 -3
  33. package/dist/components/{p-CQfhNt9R.js.map → p-8BVOPxEo.js.map} +1 -1
  34. package/dist/components/{p-NnUMIZFu.js → p-B53zvl0k.js} +3 -3
  35. package/dist/components/{p-NnUMIZFu.js.map → p-B53zvl0k.js.map} +1 -1
  36. package/dist/components/{p-ARVV37Sz.js → p-B8BrRB0O.js} +3 -3
  37. package/dist/components/{p-ARVV37Sz.js.map → p-B8BrRB0O.js.map} +1 -1
  38. package/dist/components/{p-B2iInqrY.js → p-BBnnDKl_.js} +3 -3
  39. package/dist/components/{p-B2iInqrY.js.map → p-BBnnDKl_.js.map} +1 -1
  40. package/dist/components/{p-Set5gVcE.js → p-BnZalYbH.js} +4 -4
  41. package/dist/components/{p-Set5gVcE.js.map → p-BnZalYbH.js.map} +1 -1
  42. package/dist/components/{p-DVNV8OeR.js → p-C8Lt8bl5.js} +3 -3
  43. package/dist/components/{p-DVNV8OeR.js.map → p-C8Lt8bl5.js.map} +1 -1
  44. package/dist/components/{p-Bl07tAU9.js → p-CTjNGmih.js} +22 -7
  45. package/dist/components/p-CTjNGmih.js.map +1 -0
  46. package/dist/components/{p-7tQqYr-o.js → p-CgJRcBjo.js} +3 -3
  47. package/dist/components/{p-7tQqYr-o.js.map → p-CgJRcBjo.js.map} +1 -1
  48. package/dist/components/{p-BRCrIAp1.js → p-DV0FCJQj.js} +3 -3
  49. package/dist/components/{p-BRCrIAp1.js.map → p-DV0FCJQj.js.map} +1 -1
  50. package/dist/components/{p-BUc2X1_X.js → p-xsjWY-T2.js} +5 -5
  51. package/dist/components/{p-BUc2X1_X.js.map → p-xsjWY-T2.js.map} +1 -1
  52. package/dist/components/pcm-1zhanshi-mnms-modal.js +5 -5
  53. package/dist/components/pcm-app-chat-modal.js +1 -1
  54. package/dist/components/pcm-card.js +1 -1
  55. package/dist/components/pcm-chat-message.js +1 -1
  56. package/dist/components/pcm-digital-human.js +1 -1
  57. package/dist/components/pcm-export-records-modal.js +1 -1
  58. package/dist/components/pcm-hr-chat-modal.js +2 -2
  59. package/dist/components/pcm-htws-modal.js +7 -7
  60. package/dist/components/pcm-hyzj-modal.js +4 -4
  61. package/dist/components/pcm-jd-modal.js +4 -4
  62. package/dist/components/pcm-jlpp-modal.js +7 -7
  63. package/dist/components/pcm-jlsx-modal.js +5 -5
  64. package/dist/components/pcm-jlzz-modal.js +6 -6
  65. package/dist/components/pcm-mnct-modal.js +4 -4
  66. package/dist/components/pcm-mnms-modal.js +8 -8
  67. package/dist/components/pcm-mnms-zp-modal.js +8 -8
  68. package/dist/components/pcm-mobile-input-btn.js +1 -1
  69. package/dist/components/pcm-mobile-upload-btn.js +1 -1
  70. package/dist/components/pcm-msbg-modal.js +4 -4
  71. package/dist/components/pcm-qgqjl-modal.js +7 -7
  72. package/dist/components/pcm-upload.js +1 -1
  73. package/dist/components/pcm-virtual-chat-modal.js +1 -1
  74. package/dist/components/pcm-zsk-chat-modal.js +2 -2
  75. package/dist/components/pcm-zygh-modal.js +6 -6
  76. package/dist/components/pcm-zygh-v2-modal.js +6 -6
  77. package/dist/esm/components-position-selector_28.entry.js +21 -6
  78. package/dist/esm/components-position-selector_28.entry.js.map +1 -1
  79. package/dist/esm/{index-vQvEYHaY.js → index-CpvsM8Sb.js} +3 -3
  80. package/dist/esm/{index-vQvEYHaY.js.map → index-CpvsM8Sb.js.map} +1 -1
  81. package/dist/esm/index.js +1 -1
  82. package/dist/esm/pcm-hr-chat-modal.entry.js +2 -2
  83. package/dist/esm/pcm-htws-modal.entry.js +1 -1
  84. package/dist/esm/pcm-jd-modal.entry.js +2 -2
  85. package/dist/esm/pcm-jlpp-modal.entry.js +1 -1
  86. package/dist/esm/pcm-jlsx-modal.entry.js +2 -2
  87. package/dist/esm/pcm-jlzz-modal.entry.js +2 -2
  88. package/dist/esm/pcm-mnct-modal.entry.js +2 -2
  89. package/dist/esm/pcm-mnms-modal.entry.js +1 -1
  90. package/dist/esm/pcm-qgqjl-modal.entry.js +1 -1
  91. package/dist/esm/pcm-zygh-modal.entry.js +1 -1
  92. package/dist/esm/pcm-zygh-v2-modal.entry.js +1 -1
  93. package/dist/esm/{sentry-reporter-Dl8Z5Adp.js → sentry-reporter-CVXPHxKK.js} +3 -3
  94. package/dist/esm/{sentry-reporter-Dl8Z5Adp.js.map → sentry-reporter-CVXPHxKK.js.map} +1 -1
  95. package/dist/pcm-agents/index.esm.js +1 -1
  96. package/dist/pcm-agents/{p-7f4aab22.entry.js → p-0b56d336.entry.js} +10 -10
  97. package/dist/pcm-agents/{p-7f4aab22.entry.js.map → p-0b56d336.entry.js.map} +1 -1
  98. package/dist/pcm-agents/{p-c1764a46.entry.js → p-17ade24d.entry.js} +2 -2
  99. package/dist/pcm-agents/{p-bc54d498.entry.js → p-1ca4ea25.entry.js} +2 -2
  100. package/dist/pcm-agents/{p-90513d79.entry.js → p-2ff702e1.entry.js} +2 -2
  101. package/dist/pcm-agents/{p-8c50e427.entry.js → p-54be260c.entry.js} +2 -2
  102. package/dist/pcm-agents/{p-c614756e.entry.js → p-64f5343b.entry.js} +2 -2
  103. package/dist/pcm-agents/{p-ef5a8fe8.entry.js → p-6afd4971.entry.js} +2 -2
  104. package/dist/pcm-agents/{p-9fbf8a03.entry.js → p-6e7578a2.entry.js} +2 -2
  105. package/dist/pcm-agents/{p-18ae0847.entry.js → p-94812c6c.entry.js} +2 -2
  106. package/dist/pcm-agents/{p-9df0f898.entry.js → p-9ee9bf06.entry.js} +2 -2
  107. package/dist/pcm-agents/p-BpqLVj0B.js +2 -0
  108. package/dist/pcm-agents/{p-C8WM6PdL.js.map → p-BpqLVj0B.js.map} +1 -1
  109. package/dist/pcm-agents/{p-c40b332b.entry.js → p-ba3c54b2.entry.js} +2 -2
  110. package/dist/pcm-agents/{p-b2478ca6.entry.js → p-fbbdce5c.entry.js} +2 -2
  111. package/dist/pcm-agents/{p-19Bfug2z.js → p-xt4LQ4VY.js} +2 -2
  112. package/dist/pcm-agents/{p-19Bfug2z.js.map → p-xt4LQ4VY.js.map} +1 -1
  113. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  114. package/package.json +1 -1
  115. package/dist/components/p-Bl07tAU9.js.map +0 -1
  116. package/dist/pcm-agents/p-C8WM6PdL.js +0 -2
  117. /package/dist/pcm-agents/{p-c1764a46.entry.js.map → p-17ade24d.entry.js.map} +0 -0
  118. /package/dist/pcm-agents/{p-bc54d498.entry.js.map → p-1ca4ea25.entry.js.map} +0 -0
  119. /package/dist/pcm-agents/{p-90513d79.entry.js.map → p-2ff702e1.entry.js.map} +0 -0
  120. /package/dist/pcm-agents/{p-8c50e427.entry.js.map → p-54be260c.entry.js.map} +0 -0
  121. /package/dist/pcm-agents/{p-c614756e.entry.js.map → p-64f5343b.entry.js.map} +0 -0
  122. /package/dist/pcm-agents/{p-ef5a8fe8.entry.js.map → p-6afd4971.entry.js.map} +0 -0
  123. /package/dist/pcm-agents/{p-9fbf8a03.entry.js.map → p-6e7578a2.entry.js.map} +0 -0
  124. /package/dist/pcm-agents/{p-18ae0847.entry.js.map → p-94812c6c.entry.js.map} +0 -0
  125. /package/dist/pcm-agents/{p-9df0f898.entry.js.map → p-9ee9bf06.entry.js.map} +0 -0
  126. /package/dist/pcm-agents/{p-c40b332b.entry.js.map → p-ba3c54b2.entry.js.map} +0 -0
  127. /package/dist/pcm-agents/{p-b2478ca6.entry.js.map → p-fbbdce5c.entry.js.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C_qhED9Z.js');
4
- var index$1 = require('./index-Cqv1YfoE.js');
4
+ var index$1 = require('./index-C1_EICtw.js');
5
5
  var message_service = require('./message.service-DGUsA-FY.js');
6
6
  var errorEvent = require('./error-event-J_ZWIqWF.js');
7
- var sentryReporter = require('./sentry-reporter-DoBzfUe8.js');
7
+ var sentryReporter = require('./sentry-reporter-DmYdE5ln.js');
8
8
  var index$2 = require('./index-CHfYsTQt.js');
9
9
  require('./exports-Dc-pQh4A.js');
10
10
 
@@ -13379,11 +13379,16 @@ const ChatVirtualAPPModal = class {
13379
13379
  this.isLoadingHistory = false;
13380
13380
  if (this.conversationId && this.messages.length > 0 && !conversationStatus && !this.isEndingInterview) {
13381
13381
  // 不播放欢迎视频
13382
- this.digitalHumanVideoUrl = this.digitalHumanDefaultVideoUrl;
13383
13382
  this.isPlayingDigitalHumanVideo = false;
13384
13383
  this.isPlayingWelcomeVideo = false;
13385
13384
  this.digitalHumanVideoReady = true;
13386
- this.initializeDigitalHuman();
13385
+ // 先初始化数字人,等待获取到默认视频URL后再设置
13386
+ this.initializeDigitalHuman().then(() => {
13387
+ // 确保在初始化完成后设置视频URL
13388
+ if (this.digitalHumanDefaultVideoUrl) {
13389
+ this.digitalHumanVideoUrl = this.digitalHumanDefaultVideoUrl;
13390
+ }
13391
+ });
13387
13392
  setTimeout(() => {
13388
13393
  // 开始等待录制
13389
13394
  this.startWaitingToRecord();
@@ -13394,11 +13399,16 @@ const ChatVirtualAPPModal = class {
13394
13399
  this.isTaskCompleted = true;
13395
13400
  // 确保数字人视频状态正确设置
13396
13401
  if (this.digitalId) {
13397
- this.digitalHumanVideoUrl = this.digitalHumanDefaultVideoUrl;
13398
13402
  this.isPlayingDigitalHumanVideo = false;
13399
13403
  this.isPlayingWelcomeVideo = false;
13400
13404
  this.digitalHumanVideoReady = true;
13401
- this.initializeDigitalHuman();
13405
+ // 先初始化数字人,等待获取到默认视频URL后再设置
13406
+ this.initializeDigitalHuman().then(() => {
13407
+ // 确保在初始化完成后设置视频URL
13408
+ if (this.digitalHumanDefaultVideoUrl) {
13409
+ this.digitalHumanVideoUrl = this.digitalHumanDefaultVideoUrl;
13410
+ }
13411
+ });
13402
13412
  }
13403
13413
  }
13404
13414
  }
@@ -14371,6 +14381,11 @@ const ChatVirtualAPPModal = class {
14371
14381
  // 只有非默认占位视频才应用语速控制
14372
14382
  const isDefaultVideo = this.digitalHumanVideoUrl === this.digitalHumanDefaultVideoUrl;
14373
14383
  el.playbackRate = isDefaultVideo ? 1.0 : this.playbackRate;
14384
+ // 微信环境下,确保视频URL变化时重新加载
14385
+ // 如果src已经设置但视频未加载,手动触发load
14386
+ if (el.src && el.readyState === 0) {
14387
+ el.load();
14388
+ }
14374
14389
  }
14375
14390
  } }))), this.renderVideoPreview(), index.h("div", { class: "modal-content-layer" }, index.h("div", { class: "main-content" }, index.h("div", { class: "chat-history-section" }, this.renderChatHistory()), this.showEndInterviewButton && !this.isTaskCompleted && this.conversationId && (index.h("div", { class: "end-interview-button-container" }, index.h("button", { class: "end-interview-button", onClick: this.handleInterviewEnd, disabled: this.isEndingInterview || !this.isRecording, title: this.isEndingInterview ? '正在结束面试...' : !this.isRecording ? '请在录制时点击' : '结束面试' }, this.isEndingInterview ? '正在结束...' : '结束面试'))), this.renderRecordingStatusBar())), index.h("div", { style: { position: 'relative', zIndex: '100' } }, index.h("pcm-confirm-modal", { isOpen: this.showConfirmModal, modalTitle: "\u786E\u8BA4\u5B8C\u6210\u56DE\u7B54\uFF1F", okText: "\u786E\u8BA4\u5B8C\u6210", cancelText: "\u7EE7\u7EED\u5F55\u5236", okType: "danger", onOk: this.handleConfirmModalOk, onCancel: this.handleConfirmModalCancelEvent, onClosed: this.handleConfirmModalCancel }, index.h("div", { style: { marginBottom: '16px' } }, index.h("div", { style: {
14376
14391
  fontSize: '14px',