pcm-agents 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/cjs/components-chat-message_33.cjs.entry.js +7 -3
  2. package/dist/cjs/components-chat-message_33.cjs.entry.js.map +1 -1
  3. package/dist/cjs/components-oem-virtual-chat-modal.cjs.entry.js +1 -1
  4. package/dist/cjs/{conversation-utils-srlCwYy5.js → conversation-utils-Ut-DjZGS.js} +3 -3
  5. package/dist/cjs/{conversation-utils-srlCwYy5.js.map → conversation-utils-Ut-DjZGS.js.map} +1 -1
  6. package/dist/cjs/{index-CJQRBB6e.js → index-BJXw-mBt.js} +7 -4
  7. package/dist/cjs/{index-CJQRBB6e.js.map → index-BJXw-mBt.js.map} +1 -1
  8. package/dist/cjs/index.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/oem-htws-modal.cjs.entry.js +6 -2
  11. package/dist/cjs/oem-htws-modal.cjs.entry.js.map +1 -1
  12. package/dist/cjs/oem-htws-modal.entry.cjs.js.map +1 -1
  13. package/dist/cjs/oem-jd-modal.cjs.entry.js +1 -1
  14. package/dist/cjs/oem-jlpp-modal.cjs.entry.js +2 -2
  15. package/dist/cjs/oem-jlpp-modal.cjs.entry.js.map +1 -1
  16. package/dist/cjs/oem-jlpp-modal.entry.cjs.js.map +1 -1
  17. package/dist/cjs/oem-jlzz-modal.cjs.entry.js +1 -1
  18. package/dist/cjs/oem-mnct-modal.cjs.entry.js +1 -1
  19. package/dist/cjs/oem-mnms-modal.cjs.entry.js +2 -2
  20. package/dist/cjs/oem-mnms-modal.cjs.entry.js.map +1 -1
  21. package/dist/cjs/oem-mnms-modal.entry.cjs.js.map +1 -1
  22. package/dist/cjs/oem-qgqjl-modal.cjs.entry.js +2 -2
  23. package/dist/cjs/pcm-agents.cjs.js +1 -1
  24. package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +1 -1
  25. package/dist/cjs/pcm-jlsx-modal.cjs.entry.js +1 -1
  26. package/dist/collection/components/oem-htws-modal/oem-htws-modal.js +24 -1
  27. package/dist/collection/components/oem-htws-modal/oem-htws-modal.js.map +1 -1
  28. package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.js +1 -1
  29. package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.js.map +1 -1
  30. package/dist/collection/components/oem-mnms-modal/oem-mnms-modal.js +1 -1
  31. package/dist/collection/components/oem-mnms-modal/oem-mnms-modal.js.map +1 -1
  32. package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.js +24 -1
  33. package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.js.map +1 -1
  34. package/dist/collection/utils/utils.js +4 -1
  35. package/dist/collection/utils/utils.js.map +1 -1
  36. package/dist/components/components-chat-message.js +1 -1
  37. package/dist/components/components-digital-human.js +1 -1
  38. package/dist/components/components-export-records-modal.js +1 -1
  39. package/dist/components/components-mobile-input-btn.js +1 -1
  40. package/dist/components/components-mobile-upload-btn.js +1 -1
  41. package/dist/components/components-oem-virtual-chat-modal.js +1 -1
  42. package/dist/components/components-position-selector.js +1 -1
  43. package/dist/components/components-thousand-resume-wrapper.js +1 -1
  44. package/dist/components/components-upload.js +1 -1
  45. package/dist/components/components-voice-input-btn.js +1 -1
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/oem-htws-modal.js +11 -6
  48. package/dist/components/oem-htws-modal.js.map +1 -1
  49. package/dist/components/oem-jd-modal.js +5 -5
  50. package/dist/components/oem-jlpp-modal.js +8 -8
  51. package/dist/components/oem-jlpp-modal.js.map +1 -1
  52. package/dist/components/oem-jlsx-modal.js +5 -5
  53. package/dist/components/oem-jlzz-modal.js +5 -5
  54. package/dist/components/oem-mnct-modal.js +7 -7
  55. package/dist/components/oem-mnms-modal.js +9 -9
  56. package/dist/components/oem-mnms-modal.js.map +1 -1
  57. package/dist/components/oem-qgqjl-modal.js +9 -9
  58. package/dist/components/oem-zygh-modal.js +11 -6
  59. package/dist/components/oem-zygh-modal.js.map +1 -1
  60. package/dist/components/{p-BdzFXB1t.js → p-5bswLwh6.js} +3 -3
  61. package/dist/components/{p-BdzFXB1t.js.map → p-5bswLwh6.js.map} +1 -1
  62. package/dist/components/{p-14CtQGo8.js → p-A7OBthUL.js} +4 -4
  63. package/dist/components/{p-14CtQGo8.js.map → p-A7OBthUL.js.map} +1 -1
  64. package/dist/components/{p-BdgdgjaW.js → p-BV5z8A4a.js} +3 -3
  65. package/dist/components/{p-BdgdgjaW.js.map → p-BV5z8A4a.js.map} +1 -1
  66. package/dist/components/{p-BWdXlms4.js → p-Co9TJcgO.js} +3 -3
  67. package/dist/components/{p-BWdXlms4.js.map → p-Co9TJcgO.js.map} +1 -1
  68. package/dist/components/{p--IeRQcxT.js → p-CzFTb8J3.js} +3 -3
  69. package/dist/components/{p--IeRQcxT.js.map → p-CzFTb8J3.js.map} +1 -1
  70. package/dist/components/{p-BJKIlCmI.js → p-D1MNPWYG.js} +3 -3
  71. package/dist/components/{p-BJKIlCmI.js.map → p-D1MNPWYG.js.map} +1 -1
  72. package/dist/components/{p-c8fMPeu_.js → p-D1Zbs1E9.js} +3 -3
  73. package/dist/components/{p-c8fMPeu_.js.map → p-D1Zbs1E9.js.map} +1 -1
  74. package/dist/components/{p-5TyoLbXy.js → p-DMcvouAq.js} +5 -5
  75. package/dist/components/{p-5TyoLbXy.js.map → p-DMcvouAq.js.map} +1 -1
  76. package/dist/components/{p-BUVNyxhI.js → p-DUzMuUXg.js} +7 -4
  77. package/dist/components/p-DUzMuUXg.js.map +1 -0
  78. package/dist/components/{p-wTdMzyVB.js → p-DjY3Uc0V.js} +3 -3
  79. package/dist/components/{p-wTdMzyVB.js.map → p-DjY3Uc0V.js.map} +1 -1
  80. package/dist/components/{p-Bxg4nW6-.js → p-DoiGRCSv.js} +3 -3
  81. package/dist/components/{p-Bxg4nW6-.js.map → p-DoiGRCSv.js.map} +1 -1
  82. package/dist/components/{p-wAqiaji9.js → p-JbxUsVe3.js} +3 -3
  83. package/dist/components/{p-wAqiaji9.js.map → p-JbxUsVe3.js.map} +1 -1
  84. package/dist/components/{p-2BiWHTOV.js → p-PVcS8Z81.js} +3 -3
  85. package/dist/components/{p-2BiWHTOV.js.map → p-PVcS8Z81.js.map} +1 -1
  86. package/dist/components/{p-BUA1GYVe.js → p-cML-tdcc.js} +3 -3
  87. package/dist/components/{p-BUA1GYVe.js.map → p-cML-tdcc.js.map} +1 -1
  88. package/dist/components/pcm-1zhanshi-mnms-modal.js +5 -5
  89. package/dist/components/pcm-app-chat-modal.js +1 -1
  90. package/dist/components/pcm-ats-mnms-modal.js +5 -5
  91. package/dist/components/pcm-card.js +1 -1
  92. package/dist/components/pcm-hr-chat-modal.js +2 -2
  93. package/dist/components/pcm-htws-modal.js +8 -8
  94. package/dist/components/pcm-hyzj-modal.js +5 -5
  95. package/dist/components/pcm-jd-modal.js +6 -6
  96. package/dist/components/pcm-jlpp-modal.js +8 -8
  97. package/dist/components/pcm-jlsx-modal.js +5 -5
  98. package/dist/components/pcm-jlzz-modal.js +6 -6
  99. package/dist/components/pcm-mnct-modal.js +7 -7
  100. package/dist/components/pcm-mnms-modal.js +8 -8
  101. package/dist/components/pcm-mnms-zp-modal.js +8 -8
  102. package/dist/components/pcm-msbg-modal.js +5 -5
  103. package/dist/components/pcm-qgqjl-modal.js +9 -9
  104. package/dist/components/pcm-virtual-chat-modal.js +1 -1
  105. package/dist/components/pcm-zsk-chat-modal.js +2 -2
  106. package/dist/components/pcm-zygh-modal.js +7 -7
  107. package/dist/components/pcm-zygh-v2-modal.js +7 -7
  108. package/dist/esm/components-chat-message_33.entry.js +7 -3
  109. package/dist/esm/components-chat-message_33.entry.js.map +1 -1
  110. package/dist/esm/components-oem-virtual-chat-modal.entry.js +1 -1
  111. package/dist/esm/{conversation-utils-B8KFe8e5.js → conversation-utils-DhbVyrpx.js} +3 -3
  112. package/dist/esm/{conversation-utils-B8KFe8e5.js.map → conversation-utils-DhbVyrpx.js.map} +1 -1
  113. package/dist/esm/{index-mY4LYmpx.js → index-D8Ey1n8b.js} +7 -4
  114. package/dist/esm/{index-mY4LYmpx.js.map → index-D8Ey1n8b.js.map} +1 -1
  115. package/dist/esm/index.js +1 -1
  116. package/dist/esm/loader.js +1 -1
  117. package/dist/esm/oem-htws-modal.entry.js +6 -2
  118. package/dist/esm/oem-htws-modal.entry.js.map +1 -1
  119. package/dist/esm/oem-jd-modal.entry.js +1 -1
  120. package/dist/esm/oem-jlpp-modal.entry.js +2 -2
  121. package/dist/esm/oem-jlpp-modal.entry.js.map +1 -1
  122. package/dist/esm/oem-jlzz-modal.entry.js +1 -1
  123. package/dist/esm/oem-mnct-modal.entry.js +1 -1
  124. package/dist/esm/oem-mnms-modal.entry.js +2 -2
  125. package/dist/esm/oem-mnms-modal.entry.js.map +1 -1
  126. package/dist/esm/oem-qgqjl-modal.entry.js +2 -2
  127. package/dist/esm/pcm-agents.js +1 -1
  128. package/dist/esm/pcm-hr-chat-modal.entry.js +1 -1
  129. package/dist/esm/pcm-jlsx-modal.entry.js +1 -1
  130. package/dist/pcm-agents/index.esm.js +1 -1
  131. package/dist/pcm-agents/oem-htws-modal.entry.esm.js.map +1 -1
  132. package/dist/pcm-agents/oem-jlpp-modal.entry.esm.js.map +1 -1
  133. package/dist/pcm-agents/oem-mnms-modal.entry.esm.js.map +1 -1
  134. package/dist/pcm-agents/{p-724d9471.entry.js → p-030c829e.entry.js} +2 -2
  135. package/dist/pcm-agents/p-11426012.entry.js +8 -0
  136. package/dist/pcm-agents/p-11426012.entry.js.map +1 -0
  137. package/dist/pcm-agents/{p-24ce19fc.entry.js → p-1fdb05d7.entry.js} +2 -2
  138. package/dist/pcm-agents/p-1fdb05d7.entry.js.map +1 -0
  139. package/dist/pcm-agents/{p-557664fc.entry.js → p-4732c615.entry.js} +2 -2
  140. package/dist/pcm-agents/{p-0cedc9bf.entry.js → p-646b6128.entry.js} +2 -2
  141. package/dist/pcm-agents/{p-58493403.entry.js → p-66cb43c9.entry.js} +2 -2
  142. package/dist/pcm-agents/{p-5ca45877.entry.js → p-75efc351.entry.js} +2 -2
  143. package/dist/pcm-agents/{p-CcIrA6cr.js → p-B3osOuvR.js} +2 -2
  144. package/dist/pcm-agents/{p-CcIrA6cr.js.map → p-B3osOuvR.js.map} +1 -1
  145. package/dist/pcm-agents/p-CXe7oxeN.js +2 -0
  146. package/dist/pcm-agents/{p-rR0ghCa0.js.map → p-CXe7oxeN.js.map} +1 -1
  147. package/dist/pcm-agents/{p-81d12737.entry.js → p-b071ed75.entry.js} +2 -2
  148. package/dist/pcm-agents/{p-81d12737.entry.js.map → p-b071ed75.entry.js.map} +1 -1
  149. package/dist/pcm-agents/{p-d0a7e02b.entry.js → p-b3ff7816.entry.js} +2 -2
  150. package/dist/pcm-agents/{p-f4d5841a.entry.js → p-c2c3e968.entry.js} +2 -2
  151. package/dist/pcm-agents/{p-f4d5841a.entry.js.map → p-c2c3e968.entry.js.map} +1 -1
  152. package/dist/pcm-agents/{p-783b46c0.entry.js → p-f92d70a8.entry.js} +2 -2
  153. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  154. package/dist/types/components/oem-htws-modal/oem-htws-modal.d.ts +4 -0
  155. package/dist/types/components/oem-zygh-modal/oem-zygh-modal.d.ts +4 -0
  156. package/dist/types/components.d.ts +16 -0
  157. package/dist/types/utils/utils.d.ts +2 -1
  158. package/package.json +1 -1
  159. package/dist/components/p-BUVNyxhI.js.map +0 -1
  160. package/dist/pcm-agents/p-24ce19fc.entry.js.map +0 -1
  161. package/dist/pcm-agents/p-b9368b8e.entry.js +0 -8
  162. package/dist/pcm-agents/p-b9368b8e.entry.js.map +0 -1
  163. package/dist/pcm-agents/p-rR0ghCa0.js +0 -2
  164. /package/dist/pcm-agents/{p-724d9471.entry.js.map → p-030c829e.entry.js.map} +0 -0
  165. /package/dist/pcm-agents/{p-557664fc.entry.js.map → p-4732c615.entry.js.map} +0 -0
  166. /package/dist/pcm-agents/{p-0cedc9bf.entry.js.map → p-646b6128.entry.js.map} +0 -0
  167. /package/dist/pcm-agents/{p-58493403.entry.js.map → p-66cb43c9.entry.js.map} +0 -0
  168. /package/dist/pcm-agents/{p-5ca45877.entry.js.map → p-75efc351.entry.js.map} +0 -0
  169. /package/dist/pcm-agents/{p-d0a7e02b.entry.js.map → p-b3ff7816.entry.js.map} +0 -0
  170. /package/dist/pcm-agents/{p-783b46c0.entry.js.map → p-f92d70a8.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,a as i,h as s}from"./p-DA8Myhft.js";import{a as o,u as n,b as r,s as a,c as l,v as d}from"./p-CcIrA6cr.js";import{E as c}from"./p-C0FYX2-Z.js";import{c as h}from"./p-C7m_4Gmk.js";import{S as p}from"./p-B23366TU.js";import"./p-Bs-zO1WZ.js";const u=":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}";const g=":host{font-size:16px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-weight:normal;font-style:normal;font-variant:normal;line-height:1.5;letter-spacing:normal;word-spacing:normal;color:#333;text-align:left;text-indent:0;text-transform:none;white-space:normal;word-wrap:normal;word-break:normal;visibility:visible;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;border-collapse:separate;border-spacing:0;caption-side:top;empty-cells:show;table-layout:auto;quotes:auto;cursor:auto;direction:ltr;orphans:2;widows:2;page-break-inside:auto;text-decoration:none;text-shadow:none;box-sizing:border-box;writing-mode:horizontal-tb;text-orientation:mixed}";const m=class{constructor(i){e(this,i);this.modalClosed=t(this,"modalClosed");this.streamComplete=t(this,"streamComplete");this.conversationStart=t(this,"conversationStart");this.someErrorEvent=t(this,"someErrorEvent");this.interviewComplete=t(this,"interviewComplete");this.recordingError=t(this,"recordingError");this.recordingStatusChange=t(this,"recordingStatusChange");this.tokenInvalid=t(this,"tokenInvalid")}modalTitle="金牌HR大赛";token;isOpen=false;messages=[];modalClosed;icon;zIndex=1e3;isShowHeader=true;isNeedClose=true;conversationId;currentAssistantMessage="";isLoading=false;currentStreamingMessage=null;shouldAutoScroll=true;isLoadingHistory=false;get hostElement(){return i(this)}streamComplete;conversationStart;someErrorEvent;selectedFile=null;isUploading=false;uploadedFileInfo=[];aiException=false;defaultQuery="请开始出题";showInitialUpload=true;selectedJobCategory="";jobCategories=["人力资源学生(实习)","人力资源专员","人力资源主管","人力资源经理","人力资源总监"];dimensions=["人力资源规划","招聘与配置","员工关系","培训与开发","薪酬与绩效","组织与人才发展"];selectedDimensions=[];isRecording=false;recordingStream=null;recordedBlob=null;mediaRecorder=null;recordingTimeLeft=0;showRecordingUI=false;recordingTimer=null;recordingStartTime=0;waitingToRecord=false;waitingTimer=null;waitingTimeLeft=15;videoRef=null;totalQuestions=2;currentQuestionNumber=0;interviewComplete;SCROLL_THRESHOLD=20;maxRecordingTime=120;countdownWarningTime=30;showCountdownWarning=false;toEmail="";callbackUrl="";fullscreen=false;isUploadingVideo=false;requireResume=false;isPlayingAudio=false;audioUrl=null;audioElement=null;recordingError;recordingStatusChange;tokenInvalid;enableVoice=true;enableAudio=true;displayContentStatus=true;isTaskCompleted=false;tokenInvalidListener;isUserScrolling=false;isPageFocused=true;isWindowVisible=true;visibilityChangeListener;blurListener;focusListener;handleTokenChange(e){if(e&&e!==o.getToken()){o.setToken(e)}}componentWillLoad(){if(this.zIndex){h.setItem("modal-zIndex",this.zIndex)}if(this.token){o.setToken(this.token)}this.tokenInvalidListener=()=>{this.tokenInvalid.emit()};document.addEventListener("pcm-token-invalid",this.tokenInvalidListener);this.visibilityChangeListener=()=>{const e=!document.hidden;this.isWindowVisible=e;if(!e){p.captureMessage("用户失去焦点 - 页面隐藏",{action:"visibilityChange",component:"pcm-hr-chat-modal",type:"visibility_hidden",timestamp:Date.now(),isRecording:this.isRecording,currentQuestionNumber:this.currentQuestionNumber,conversationId:this.conversationId})}};this.blurListener=()=>{this.isPageFocused=false;p.captureMessage("用户失去焦点 - 窗口失焦",{action:"windowBlur",component:"pcm-hr-chat-modal",type:"window_blur",timestamp:Date.now(),isRecording:this.isRecording,currentQuestionNumber:this.currentQuestionNumber,conversationId:this.conversationId})};this.focusListener=()=>{this.isPageFocused=true};document.addEventListener("visibilitychange",this.visibilityChangeListener);window.addEventListener("blur",this.blurListener);window.addEventListener("focus",this.focusListener)}handleClose=()=>{this.stopRecording();this.modalClosed.emit()};handleFileChange=async e=>{const t=e.target;if(t.files&&t.files.length>0){this.selectedFile=t.files[0]}};async uploadFile(){if(!this.selectedFile||this.uploadedFileInfo.length>0)return;this.isUploading=true;try{const e=await n(this.selectedFile,{},{tags:["resume"]});if(e){this.uploadedFileInfo=[{cos_key:e.cos_key,file_name:e.file_name,file_size:e.file_size,ext:e.ext}]}}catch(e){console.error("文件上传错误:",e);this.clearSelectedFile();this.someErrorEvent.emit({error:e,message:"文件上传失败,请重试"});p.captureError(e,{action:"uploadFile",component:"pcm-hr-chat-modal",title:"文件上传失败"})}finally{this.isUploading=false}}handleUploadClick=()=>{const e=this.hostElement.shadowRoot?.querySelector(".file-input");e?.click()};clearSelectedFile=()=>{this.selectedFile=null;this.uploadedFileInfo=[];const e=this.hostElement.shadowRoot?.querySelector(".file-input");if(e){e.value=""}};async sendMessageToAPI(e){this.isLoading=true;let t="";let i="";const s=new Date;const o=`${s.getHours()}:${s.getMinutes().toString().padStart(2,"0")}`;const n=e.trim()||(this.uploadedFileInfo.length>0?"请分析这个文件":"");const a=this.messages.length>0?this.messages[this.messages.length-1]:null;if(a&&this.conversationId&&e!=="下一题"){this.saveAnswer(this.conversationId,a.answer,n)}const d=this.currentQuestionNumber>=this.totalQuestions&&e==="下一题";const h={id:`temp-${Date.now()}`,time:o,query:n,answer:"",isStreaming:true,conversation_id:this.conversationId,inputs:{},status:"normal",error:null};this.currentStreamingMessage=h;setTimeout((()=>{this.shouldAutoScroll=true;this.scrollToBottom()}),200);if(d){this.messages=[...this.messages,h];this.currentStreamingMessage=null;this.isLoading=false;this.currentQuestionNumber++;this.isTaskCompleted=true;await this.completeInterview();this.interviewComplete.emit({conversation_id:this.conversationId,total_questions:this.totalQuestions});return}const u={response_mode:"streaming",conversation_id:this.conversationId,query:n,bot_id:"3022316191018880"};u.inputs={job_info:this.selectedJobCategory,dimensional_info:this.selectedDimensions.join(","),email:this.toEmail,callback_url:this.callbackUrl,display_content_status:this.displayContentStatus?"1":"0"};if(this.uploadedFileInfo.length>0){const e=this.uploadedFileInfo.map((e=>e.cos_key)).join(",");u.inputs.file_urls=e}await r({url:"/sdk/v1/chat/chat-messages",method:"POST",data:u,onMessage:e=>{if(e.conversation_id&&!this.conversationId){this.conversationId=e.conversation_id;this.conversationStart.emit({conversation_id:e.conversation_id,event:e.event,message_id:e.message_id,id:e.id})}if(e.event==="node_finished"&&e.data.inputs&&e.data.inputs.LLMText){i=e.data.inputs.LLMText}if(e.event==="node_finished"&&e.data.title&&e.data.title.includes("异常请重试")){this.currentStreamingMessage.showRetryButton=true;this.aiException=true}if(e.event==="node_finished"&&e.data.title&&e.data.title.includes("题号赋值")){this.currentQuestionNumber=e.data.process_data.questions_number-1}if(e.event==="message"){if(e.event==="agent_message"||e.event==="message"){if(e.answer){t+=e.answer;const i={...this.currentStreamingMessage,answer:t,isStreaming:true};this.currentStreamingMessage=i;setTimeout((()=>{this.scrollToBottom()}),200)}}}if(e.event==="error"){const t=e.data?.message||e.message||"请求失败";this.messages=[...this.messages,{...h,answer:t,error:e.data,isStreaming:false}];this.currentStreamingMessage=null;this.isLoading=false;c.emitError({error:e.data,message:t});return}if(e.event==="message_end"){this.streamComplete.emit({conversation_id:e.conversation_id||"",event:e.event,message_id:e.message_id,id:e.id})}},onError:t=>{console.error("发生错误:",t);this.someErrorEvent.emit({error:t,message:"消息发送失败,请稍后再试"});p.captureError(t,{action:"sendMessageToAPI",component:"pcm-hr-chat-modal",message:e,title:"消息发送失败"});this.messages=[...this.messages,{...h,answer:"消息发送失败,请检查网络。",error:t,isStreaming:false}];this.currentStreamingMessage=null;this.isLoading=false},onComplete:async()=>{this.isLoading=false;const e=this.currentStreamingMessage;e.isStreaming=false;this.currentStreamingMessage=null;this.messages=[...this.messages,e];if(!this.aiException){if(this.enableAudio&&e&&e.answer){const t=i||e.answer;if(t){const e=await l(t);if(this.enableVoice){await this.playAudio(e);this.startWaitingToRecord()}else{this.audioUrl=e}}}else if(!this.enableAudio){this.startWaitingToRecord()}}}})}async saveAnswer(e,t,i){try{await a({url:"/sdk/v1/hr_competition/answer",method:"POST",data:{conversation_id:e,question:t,answer:i}})}catch(t){console.error("保存答案失败:",t);this.someErrorEvent.emit({error:t,message:"保存答案失败,请稍后再试"});p.captureError(t,{action:"saveAnswer",component:"pcm-hr-chat-modal",conversationId:e,title:"保存答案失败"})}}handleScroll=()=>{if(this.isUserScrolling){const e=this.hostElement.shadowRoot?.querySelector(".chat-history");if(!e)return;const{scrollTop:t,scrollHeight:i,clientHeight:s}=e;const o=i-t-s;this.shouldAutoScroll=o<=this.SCROLL_THRESHOLD}};handleTouchStart=()=>{this.isUserScrolling=true};handleTouchEnd=()=>{setTimeout((()=>{this.isUserScrolling=false}),100)};_wheelTimer=null;handleWheel=()=>{this.isUserScrolling=true;if(this._wheelTimer){clearTimeout(this._wheelTimer)}this._wheelTimer=setTimeout((()=>{this.isUserScrolling=false}),150)};scrollToBottom(){const e=this.hostElement.shadowRoot?.querySelector(".chat-history");if(e&&this.isOpen){e.scrollTop=e.scrollHeight}}async loadHistoryMessages(){if(!this.conversationId)return;this.isLoadingHistory=true;let e=false;try{const t=await a({url:`/sdk/v1/hr_competition/${this.conversationId}`,method:"GET"});if(t.success&&t.data&&t.data.ended==1){e=true}const i=await a({url:"/sdk/v1/chat/messages",method:"GET",data:{conversation_id:this.conversationId,bot_id:"3022316191018880",limit:20}});if(i.success&&i.data){const e=i.data.data||[];const t=e.map((e=>{const t=new Date(e.created_at*1e3);const i=t.getHours().toString().padStart(2,"0");const s=t.getMinutes().toString().padStart(2,"0");const o=`${i}:${s}`;const{inputs:n,...r}=e;return{...r,time:o,isStreaming:false,status:e.status==="error"?"error":"normal"}}));this.messages=t;const s=t.filter((e=>!(e.answer&&(e.answer.includes("请求超时")||e.answer.includes("网络有点拥堵")||e.status==="error"))));this.currentQuestionNumber=s.length>0?s.length:0}}catch(e){console.error("加载历史消息或面试状态失败:",e);this.someErrorEvent.emit({error:e,message:"加载历史消息失败,请刷新重试"});p.captureError(e,{action:"loadHistoryMessages",component:"pcm-hr-chat-modal",conversationId:this.conversationId,title:"加载历史消息失败"})}finally{this.isLoadingHistory=false;setTimeout((async()=>{this.shouldAutoScroll=true;this.scrollToBottom();if(this.conversationId&&this.messages.length>0&&!e){const e=this.messages[this.messages.length-1];if(e&&e.answer&&this.enableAudio){const t=await l(e.answer);if(this.enableVoice){await this.playAudio(t);this.startWaitingToRecord()}else{this.audioUrl=t}}else if(!this.enableAudio){this.startWaitingToRecord()}else{this.sendMessageToAPI("下一题")}}else if(e){this.currentQuestionNumber++;this.isTaskCompleted=true;setTimeout((()=>{this.interviewComplete.emit()}),100)}}),300)}}async handleIsOpenChange(e){if(e){await d(this.token);if(this.conversationId){this.showInitialUpload=false;await this.loadHistoryMessages()}}}handleJobCategorySelect=e=>{this.selectedJobCategory=e};handleDimensionSelect=e=>{if(this.selectedDimensions.includes(e)){this.selectedDimensions=this.selectedDimensions.filter((t=>t!==e))}else{this.selectedDimensions=[...this.selectedDimensions,e]}};handleInitialSubmit=async()=>{if(this.requireResume&&!this.selectedFile){alert("请上传简历");return}if(!this.selectedJobCategory){alert("请选择职能类别");return}if(this.selectedDimensions.length===0){alert("请至少选择一个关注模块");return}if(this.requireResume){await this.uploadFile();if(this.uploadedFileInfo.length===0){return}}this.showInitialUpload=false;const e=`我是一名${this.selectedJobCategory},请您开始提问`;this.sendMessageToAPI(e)};startWaitingToRecord(){if(this.waitingTimer){clearInterval(this.waitingTimer)}if(this.recordingTimer){clearInterval(this.recordingTimer)}this.waitingToRecord=true;this.waitingTimeLeft=15;this.waitingTimer=setInterval((()=>{this.waitingTimeLeft--;if(this.waitingTimeLeft<=0){clearInterval(this.waitingTimer);this.waitingTimer=null;this.waitingToRecord=false;this.startRecording()}}),1e3)}async startRecording(){try{const e=await navigator.mediaDevices.getUserMedia({audio:true,video:{width:{ideal:1280},height:{ideal:720},frameRate:{ideal:30}}});this.recordingStream=e;this.showRecordingUI=true;this.showCountdownWarning=false;this.videoRef=null;this.setupVideoPreview(e);const t=this.getSupportedMimeType();let i;try{i=new MediaRecorder(e,{mimeType:t,videoBitsPerSecond:8e5,audioBitsPerSecond:64e3})}catch(t){console.warn("指定的MIME类型不受支持,使用默认设置:",t);try{i=new MediaRecorder(e,{videoBitsPerSecond:8e5,audioBitsPerSecond:64e3})}catch(t){try{i=new MediaRecorder(e)}catch(e){this.recordingError.emit({type:"recorder_creation_failed",message:"无法创建媒体录制器,您的浏览器可能不支持此功能",details:e});this.showRecordingUI=false;return}}}this.mediaRecorder=i;const s=[];i.ondataavailable=e=>{if(e.data.size>0){s.push(e.data)}};i.onerror=e=>{this.recordingError.emit({type:"recording_error",message:"录制过程中发生错误",details:e});this.stopRecording()};i.onstop=()=>{try{const e=t||"video/mp4";const i=new Blob(s,{type:e});if(i.size===0){this.recordingError.emit({type:"empty_recording",message:"录制的视频为空"});this.showRecordingUI=false;return}this.recordedBlob=i;this.recordingStatusChange.emit({status:"stopped",details:{duration:Math.floor((Date.now()-this.recordingStartTime)/1e3),size:i.size,type:i.type}});this.uploadRecordedVideo()}catch(e){this.recordingError.emit({type:"processing_error",message:"处理录制视频时出错",details:e});this.showRecordingUI=false;p.captureError(e,{action:"uploadRecordedVideo",component:"pcm-hr-chat-modal",title:"处理录制视频时出错"})}};try{i.start();this.isRecording=true;this.recordingStartTime=Date.now();this.recordingTimeLeft=this.maxRecordingTime;this.recordingStatusChange.emit({status:"started",details:{maxDuration:this.maxRecordingTime,mimeType:i.mimeType}})}catch(e){this.recordingError.emit({type:"start_failed",message:"开始录制失败,请检查您的设备权限",details:e});this.showRecordingUI=false;p.captureError(e,{action:"startRecording",component:"pcm-hr-chat-modal",title:"开始录制失败"});return}this.recordingTimer=setInterval((()=>{const e=Math.floor((Date.now()-this.recordingStartTime)/1e3);this.recordingTimeLeft=Math.max(0,this.maxRecordingTime-e);if(this.recordingTimeLeft<=this.countdownWarningTime&&!this.showCountdownWarning){this.showCountdownWarning=true}if(this.recordingTimeLeft<=0){this.stopRecording()}}),1e3)}catch(e){console.error("无法访问摄像头或麦克风:",e);this.showRecordingUI=false;this.recordingError.emit({type:"media_access_failed",message:"无法访问摄像头或麦克风,请确保已授予权限",details:e});p.captureError(e,{action:"startRecording",component:"pcm-hr-chat-modal",title:"无法访问摄像头或麦克风"})}}setupVideoPreview(e){setTimeout((()=>{const t=this.hostElement.shadowRoot?.querySelector("video");if(t&&e){try{t.srcObject=e;t.play().catch((e=>{console.error("视频播放失败:",e);this.someErrorEvent.emit({error:e,message:"视频播放失败"});p.captureError(e,{action:"setupVideoPreview",component:"pcm-hr-chat-modal",title:"录制视频显示失败"})}))}catch(i){console.warn("设置srcObject失败,尝试替代方法:",i);try{const i=URL.createObjectURL(e);t.src=i;t.onended=()=>{URL.revokeObjectURL(i)}}catch(e){console.error("创建对象URL失败:",e);this.someErrorEvent.emit({error:e,message:"创建对象URL失败"});p.captureError(e,{action:"setupVideoPreview",component:"pcm-hr-chat-modal",title:"创建对象URL失败"})}}}else{console.warn("未找到视频元素或媒体流无效")}}),100)}getSupportedMimeType(){const e=["video/webm;codecs=vp8,opus","video/webm;codecs=vp9,opus","video/webm","video/mp4","video/mp4;codecs=h264,aac",""];if(!window.MediaRecorder){console.warn("MediaRecorder API不可用");return""}for(const t of e){if(!t)return"";try{if(MediaRecorder.isTypeSupported(t)){return t}}catch(e){console.warn(`检查MIME类型支持时出错 ${t}:`,e)}}console.warn("没有找到支持的MIME类型,将使用浏览器默认值");return""}stopRecording(){if(this.mediaRecorder&&this.isRecording){this.mediaRecorder.stop();this.isRecording=false;if(this.recordingTimer){clearInterval(this.recordingTimer);this.recordingTimer=null}if(this.recordingStream){this.recordingStream.getTracks().forEach((e=>e.stop()));this.recordingStream=null}this.videoRef=null}}async uploadRecordedVideo(){if(!this.recordedBlob)return;try{this.isUploadingVideo=true;this.showRecordingUI=false;const e=this.recordedBlob.type.includes("webm")?"webm":"mp4";const t=`answer.${e}`;const i=new File([this.recordedBlob],t,{type:this.recordedBlob.type});const s=await n(i,{},{tags:["other"]});if(s){await this.saveVideoAnswer(s.cos_key);this.sendMessageToAPI("下一题")}else{throw new Error("视频上传失败")}}catch(e){console.error("视频上传错误:",e);this.recordingError.emit({type:"upload_failed",message:"视频上传失败",details:e});p.captureError(e,{action:"uploadRecordedVideo",component:"pcm-hr-chat-modal",title:"视频上传失败"})}finally{this.isUploadingVideo=false;this.showRecordingUI=false;this.recordedBlob=null}}async saveVideoAnswer(e){if(!this.conversationId)return;try{const t=this.messages.length>0?this.messages[this.messages.length-1]:null;if(!t)return;await a({url:"/sdk/v1/hr_competition/answer",method:"POST",data:{conversation_id:this.conversationId,question:t.answer,file_url:e}})}catch(e){console.error("保存视频答案失败:",e);this.someErrorEvent.emit({error:e,message:"保存视频答案失败"});p.captureError(e,{action:"saveVideoAnswer",component:"pcm-hr-chat-modal",conversationId:this.conversationId,title:"保存视频答案失败"})}}async completeInterview(){if(!this.conversationId)return;try{await a({url:`/sdk/v1/hr_competition/${this.conversationId}/end`,method:"POST"})}catch(e){console.error("发送面试完成请求失败:",e);this.someErrorEvent.emit({error:e,message:"发送面试完成请求失败"});p.captureError(e,{action:"completeInterview",component:"pcm-hr-chat-modal",conversationId:this.conversationId,title:"发送面试完成请求失败"})}}playAudio(e){return new Promise((t=>{this.isPlayingAudio=true;this.audioUrl=e;if(!this.audioElement){this.audioElement=new Audio}this.audioElement.src=e;this.audioElement.onended=()=>{this.isPlayingAudio=false;this.audioUrl=null;t()};this.audioElement.onerror=()=>{console.error("音频播放错误");this.isPlayingAudio=false;this.audioUrl=null;this.someErrorEvent.emit({error:"音频播放错误",message:"音频播放错误"});p.captureMessage("音频播放错误",{action:"playAudio",component:"pcm-hr-chat-modal",title:"音频播放错误"});t()};this.audioElement.play().catch((e=>{console.error("音频播放失败:",e);this.isPlayingAudio=false;this.audioUrl=null;this.someErrorEvent.emit({error:e,message:"音频播放失败"});p.captureError(e,{title:"音频播放失败",action:"playAudio",component:"pcm-hr-chat-modal"});t()}))}))}disconnectedCallback(){document.removeEventListener("pcm-token-invalid",this.tokenInvalidListener);if(this.audioElement){this.audioElement.pause();this.audioElement.src="";this.audioElement=null}if(this.audioUrl){URL.revokeObjectURL(this.audioUrl);this.audioUrl=null}if(this.waitingTimer){clearInterval(this.waitingTimer);this.waitingTimer=null}if(this.recordingTimer){clearInterval(this.recordingTimer);this.recordingTimer=null}this.stopRecording();if(this.visibilityChangeListener){document.removeEventListener("visibilitychange",this.visibilityChangeListener)}if(this.blurListener){window.removeEventListener("blur",this.blurListener)}if(this.focusListener){window.removeEventListener("focus",this.focusListener)}}handlePlayAudio=async()=>{if(this.audioUrl){await this.playAudio(this.audioUrl);this.startWaitingToRecord()}};handleRetryRequest=e=>{const t=this.messages.find((t=>t.id===e));if(t){this.aiException=false;const i=this.messages.map((t=>t.id===e?{...t,showRetryButton:false}:t));this.messages=i;this.sendMessageToAPI(t.query)}};render(){if(!this.isOpen)return null;const e={zIndex:String(this.zIndex)};const t={"modal-container":true,fullscreen:this.fullscreen};const i={"modal-overlay":true,"fullscreen-overlay":this.fullscreen};const o=()=>s("div",{class:"video-preview"},s("video",{autoPlay:true,playsInline:true,muted:true,style:{transform:"scaleX(-1)"},ref:e=>{if(e&&this.recordingStream&&!this.videoRef){this.videoRef=e}}}),s("div",{class:{"recording-status":true,warning:this.showCountdownWarning}},s("span",{class:"recording-dot"}),s("span",null,"录制中 ",Math.floor(this.recordingTimeLeft/60),":",(this.recordingTimeLeft%60).toString().padStart(2,"0"),this.showCountdownWarning&&` (即将自动完成)`)));const n=()=>{if(this.isTaskCompleted){return s("div",{class:"placeholder-status"},s("p",null,"面试已完成,感谢您的参与!"))}if(this.isPlayingAudio){return s("div",{class:"placeholder-status"},s("p",null,"正在播放问题,请听完后准备回答..."))}if(this.isUploadingVideo){return s("div",{class:"placeholder-status"},s("p",null,"正在上传视频,请稍候..."))}if(this.isLoading||this.currentStreamingMessage){return s("div",{class:"placeholder-status"},s("p",null,"请等待题目..."))}if(this.waitingToRecord){return s("div",{class:"placeholder-status"},s("p",null,"请准备好,",this.waitingTimeLeft,"秒后将开始录制您的回答..."))}return s("div",{class:"placeholder-status default-status"},s("p",null,"准备中..."))};return s("div",{class:i,style:e},s("div",{class:t},this.isShowHeader&&s("div",{class:"modal-header"},s("div",{class:"header-left"},this.icon&&s("img",{src:this.icon,class:"header-icon",alt:"应用图标"}),s("div",null,this.modalTitle)),this.isNeedClose&&s("button",{class:"close-button",onClick:this.handleClose},s("span",null,"×"))),this.showInitialUpload?s("div",{class:"initial-upload"},s("div",{class:"upload-section"},this.requireResume&&s(s.Fragment,null,s("h3",null,"开始前,请上传您的简历"),s("div",{class:"upload-area",onClick:this.handleUploadClick},this.selectedFile?s("div",{class:"file-item"},s("div",{class:"file-item-content"},s("span",{class:"file-icon"},"📝"),s("span",{class:"file-name"},this.selectedFile.name)),s("button",{class:"remove-file",onClick:e=>{e.stopPropagation();this.clearSelectedFile()}},"×")):s("div",{class:"upload-placeholder"},s("img",{src:"https://pub.pincaimao.com/static/web/images/home/i_upload.png"}),s("p",{class:"upload-text"},"点击上传简历"),s("p",{class:"upload-hint"},"支持 txt、 markdown、 pdf、 docx、 md 格式")))),s("div",{class:"category-select"},s("h3",null,"请选择您的职能类别(单选)"),s("div",{class:"category-options"},this.jobCategories.map((e=>s("button",{class:{"category-button":true,selected:this.selectedJobCategory===e},onClick:()=>this.handleJobCategorySelect(e)},e))))),s("div",{class:"dimension-select"},s("h3",null,"请选择关注的模块(可多选)"),s("div",{class:"dimension-options"},this.dimensions.map((e=>s("button",{class:{"dimension-button":true,selected:this.selectedDimensions.includes(e)},onClick:()=>this.handleDimensionSelect(e)},e))))),s("button",{class:"submit-button",disabled:this.requireResume&&!this.selectedFile||!this.selectedJobCategory||this.selectedDimensions.length===0||this.requireResume&&this.isUploading,onClick:this.handleInitialSubmit},this.requireResume&&this.isUploading?"上传中...":"开始面试")),this.requireResume&&s("input",{type:"file",class:"file-input",onChange:this.handleFileChange,accept:".pdf,.doc,.docx,.txt"})):s("div",{style:{height:"100%"}},s("div",{class:"chat-history",onScroll:this.handleScroll,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onWheel:this.handleWheel},this.isLoadingHistory?s("div",{class:"loading-container"},s("div",{class:"loading-spinner"}),s("p",null,"加载历史消息中...")):s("div",null,this.messages.map((e=>s("div",{id:`message_${e.id}`,key:e.id},s("components-chat-message",{message:e,onRetryRequest:e=>this.handleRetryRequest(e.detail),showCopyButton:false,showFeedbackButtons:false})))),this.currentStreamingMessage&&s("div",{id:`message_${this.currentStreamingMessage.id}`},s("components-chat-message",{message:this.currentStreamingMessage})),this.messages.length===0&&!this.currentStreamingMessage&&s("div",{class:"empty-state"},s("p",null,"请上传简历开始面试")))),s("div",{class:"recording-section"},s("div",{class:"recording-container"},s("div",{class:"video-area"},this.showRecordingUI?o():s("div",{class:"video-preview placeholder"},n())),s("div",{class:"progress-container"},s("div",{class:"progress-bar-container"},s("div",{class:"progress-bar",style:{width:`${Math.max(0,this.currentQuestionNumber-1)/this.totalQuestions*100}%`}})),s("div",{class:"progress-text"},"已完成",Math.max(0,this.currentQuestionNumber-1),"/",this.totalQuestions)),s("div",{class:"recording-controls"},this.showRecordingUI?s("button",{class:"stop-recording-button",onClick:()=>this.stopRecording()},"完成本题回答"):s("div",{class:"waiting-message"},(()=>{if(!this.enableVoice&&this.audioUrl&&!this.isPlayingAudio){return s("div",{class:"play-audio-container",onClick:this.handlePlayAudio},s("p",null,s("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",style:{verticalAlign:"middle",marginRight:"8px"}},s("path",{d:"M8 5v14l11-7z"})),s("span",{style:{verticalAlign:"middle"}},"播放题目")))}return s("button",{class:"stop-recording-button disabled",disabled:true},"完成回答")})())))))))}static get watchers(){return{token:["handleTokenChange"],isOpen:["handleIsOpenChange"]}}};m.style=u+g;export{m as pcm_hr_chat_modal};
2
- //# sourceMappingURL=p-783b46c0.entry.js.map
1
+ import{r as e,c as t,a as i,h as s}from"./p-DA8Myhft.js";import{a as o,u as n,b as r,s as a,c as l,v as d}from"./p-B3osOuvR.js";import{E as c}from"./p-C0FYX2-Z.js";import{c as h}from"./p-C7m_4Gmk.js";import{S as p}from"./p-B23366TU.js";import"./p-Bs-zO1WZ.js";const u=":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}";const g=":host{font-size:16px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-weight:normal;font-style:normal;font-variant:normal;line-height:1.5;letter-spacing:normal;word-spacing:normal;color:#333;text-align:left;text-indent:0;text-transform:none;white-space:normal;word-wrap:normal;word-break:normal;visibility:visible;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;border-collapse:separate;border-spacing:0;caption-side:top;empty-cells:show;table-layout:auto;quotes:auto;cursor:auto;direction:ltr;orphans:2;widows:2;page-break-inside:auto;text-decoration:none;text-shadow:none;box-sizing:border-box;writing-mode:horizontal-tb;text-orientation:mixed}";const m=class{constructor(i){e(this,i);this.modalClosed=t(this,"modalClosed");this.streamComplete=t(this,"streamComplete");this.conversationStart=t(this,"conversationStart");this.someErrorEvent=t(this,"someErrorEvent");this.interviewComplete=t(this,"interviewComplete");this.recordingError=t(this,"recordingError");this.recordingStatusChange=t(this,"recordingStatusChange");this.tokenInvalid=t(this,"tokenInvalid")}modalTitle="金牌HR大赛";token;isOpen=false;messages=[];modalClosed;icon;zIndex=1e3;isShowHeader=true;isNeedClose=true;conversationId;currentAssistantMessage="";isLoading=false;currentStreamingMessage=null;shouldAutoScroll=true;isLoadingHistory=false;get hostElement(){return i(this)}streamComplete;conversationStart;someErrorEvent;selectedFile=null;isUploading=false;uploadedFileInfo=[];aiException=false;defaultQuery="请开始出题";showInitialUpload=true;selectedJobCategory="";jobCategories=["人力资源学生(实习)","人力资源专员","人力资源主管","人力资源经理","人力资源总监"];dimensions=["人力资源规划","招聘与配置","员工关系","培训与开发","薪酬与绩效","组织与人才发展"];selectedDimensions=[];isRecording=false;recordingStream=null;recordedBlob=null;mediaRecorder=null;recordingTimeLeft=0;showRecordingUI=false;recordingTimer=null;recordingStartTime=0;waitingToRecord=false;waitingTimer=null;waitingTimeLeft=15;videoRef=null;totalQuestions=2;currentQuestionNumber=0;interviewComplete;SCROLL_THRESHOLD=20;maxRecordingTime=120;countdownWarningTime=30;showCountdownWarning=false;toEmail="";callbackUrl="";fullscreen=false;isUploadingVideo=false;requireResume=false;isPlayingAudio=false;audioUrl=null;audioElement=null;recordingError;recordingStatusChange;tokenInvalid;enableVoice=true;enableAudio=true;displayContentStatus=true;isTaskCompleted=false;tokenInvalidListener;isUserScrolling=false;isPageFocused=true;isWindowVisible=true;visibilityChangeListener;blurListener;focusListener;handleTokenChange(e){if(e&&e!==o.getToken()){o.setToken(e)}}componentWillLoad(){if(this.zIndex){h.setItem("modal-zIndex",this.zIndex)}if(this.token){o.setToken(this.token)}this.tokenInvalidListener=()=>{this.tokenInvalid.emit()};document.addEventListener("pcm-token-invalid",this.tokenInvalidListener);this.visibilityChangeListener=()=>{const e=!document.hidden;this.isWindowVisible=e;if(!e){p.captureMessage("用户失去焦点 - 页面隐藏",{action:"visibilityChange",component:"pcm-hr-chat-modal",type:"visibility_hidden",timestamp:Date.now(),isRecording:this.isRecording,currentQuestionNumber:this.currentQuestionNumber,conversationId:this.conversationId})}};this.blurListener=()=>{this.isPageFocused=false;p.captureMessage("用户失去焦点 - 窗口失焦",{action:"windowBlur",component:"pcm-hr-chat-modal",type:"window_blur",timestamp:Date.now(),isRecording:this.isRecording,currentQuestionNumber:this.currentQuestionNumber,conversationId:this.conversationId})};this.focusListener=()=>{this.isPageFocused=true};document.addEventListener("visibilitychange",this.visibilityChangeListener);window.addEventListener("blur",this.blurListener);window.addEventListener("focus",this.focusListener)}handleClose=()=>{this.stopRecording();this.modalClosed.emit()};handleFileChange=async e=>{const t=e.target;if(t.files&&t.files.length>0){this.selectedFile=t.files[0]}};async uploadFile(){if(!this.selectedFile||this.uploadedFileInfo.length>0)return;this.isUploading=true;try{const e=await n(this.selectedFile,{},{tags:["resume"]});if(e){this.uploadedFileInfo=[{cos_key:e.cos_key,file_name:e.file_name,file_size:e.file_size,ext:e.ext}]}}catch(e){console.error("文件上传错误:",e);this.clearSelectedFile();this.someErrorEvent.emit({error:e,message:"文件上传失败,请重试"});p.captureError(e,{action:"uploadFile",component:"pcm-hr-chat-modal",title:"文件上传失败"})}finally{this.isUploading=false}}handleUploadClick=()=>{const e=this.hostElement.shadowRoot?.querySelector(".file-input");e?.click()};clearSelectedFile=()=>{this.selectedFile=null;this.uploadedFileInfo=[];const e=this.hostElement.shadowRoot?.querySelector(".file-input");if(e){e.value=""}};async sendMessageToAPI(e){this.isLoading=true;let t="";let i="";const s=new Date;const o=`${s.getHours()}:${s.getMinutes().toString().padStart(2,"0")}`;const n=e.trim()||(this.uploadedFileInfo.length>0?"请分析这个文件":"");const a=this.messages.length>0?this.messages[this.messages.length-1]:null;if(a&&this.conversationId&&e!=="下一题"){this.saveAnswer(this.conversationId,a.answer,n)}const d=this.currentQuestionNumber>=this.totalQuestions&&e==="下一题";const h={id:`temp-${Date.now()}`,time:o,query:n,answer:"",isStreaming:true,conversation_id:this.conversationId,inputs:{},status:"normal",error:null};this.currentStreamingMessage=h;setTimeout((()=>{this.shouldAutoScroll=true;this.scrollToBottom()}),200);if(d){this.messages=[...this.messages,h];this.currentStreamingMessage=null;this.isLoading=false;this.currentQuestionNumber++;this.isTaskCompleted=true;await this.completeInterview();this.interviewComplete.emit({conversation_id:this.conversationId,total_questions:this.totalQuestions});return}const u={response_mode:"streaming",conversation_id:this.conversationId,query:n,bot_id:"3022316191018880"};u.inputs={job_info:this.selectedJobCategory,dimensional_info:this.selectedDimensions.join(","),email:this.toEmail,callback_url:this.callbackUrl,display_content_status:this.displayContentStatus?"1":"0"};if(this.uploadedFileInfo.length>0){const e=this.uploadedFileInfo.map((e=>e.cos_key)).join(",");u.inputs.file_urls=e}await r({url:"/sdk/v1/chat/chat-messages",method:"POST",data:u,onMessage:e=>{if(e.conversation_id&&!this.conversationId){this.conversationId=e.conversation_id;this.conversationStart.emit({conversation_id:e.conversation_id,event:e.event,message_id:e.message_id,id:e.id})}if(e.event==="node_finished"&&e.data.inputs&&e.data.inputs.LLMText){i=e.data.inputs.LLMText}if(e.event==="node_finished"&&e.data.title&&e.data.title.includes("异常请重试")){this.currentStreamingMessage.showRetryButton=true;this.aiException=true}if(e.event==="node_finished"&&e.data.title&&e.data.title.includes("题号赋值")){this.currentQuestionNumber=e.data.process_data.questions_number-1}if(e.event==="message"){if(e.event==="agent_message"||e.event==="message"){if(e.answer){t+=e.answer;const i={...this.currentStreamingMessage,answer:t,isStreaming:true};this.currentStreamingMessage=i;setTimeout((()=>{this.scrollToBottom()}),200)}}}if(e.event==="error"){const t=e.data?.message||e.message||"请求失败";this.messages=[...this.messages,{...h,answer:t,error:e.data,isStreaming:false}];this.currentStreamingMessage=null;this.isLoading=false;c.emitError({error:e.data,message:t});return}if(e.event==="message_end"){this.streamComplete.emit({conversation_id:e.conversation_id||"",event:e.event,message_id:e.message_id,id:e.id})}},onError:t=>{console.error("发生错误:",t);this.someErrorEvent.emit({error:t,message:"消息发送失败,请稍后再试"});p.captureError(t,{action:"sendMessageToAPI",component:"pcm-hr-chat-modal",message:e,title:"消息发送失败"});this.messages=[...this.messages,{...h,answer:"消息发送失败,请检查网络。",error:t,isStreaming:false}];this.currentStreamingMessage=null;this.isLoading=false},onComplete:async()=>{this.isLoading=false;const e=this.currentStreamingMessage;e.isStreaming=false;this.currentStreamingMessage=null;this.messages=[...this.messages,e];if(!this.aiException){if(this.enableAudio&&e&&e.answer){const t=i||e.answer;if(t){const e=await l(t);if(this.enableVoice){await this.playAudio(e);this.startWaitingToRecord()}else{this.audioUrl=e}}}else if(!this.enableAudio){this.startWaitingToRecord()}}}})}async saveAnswer(e,t,i){try{await a({url:"/sdk/v1/hr_competition/answer",method:"POST",data:{conversation_id:e,question:t,answer:i}})}catch(t){console.error("保存答案失败:",t);this.someErrorEvent.emit({error:t,message:"保存答案失败,请稍后再试"});p.captureError(t,{action:"saveAnswer",component:"pcm-hr-chat-modal",conversationId:e,title:"保存答案失败"})}}handleScroll=()=>{if(this.isUserScrolling){const e=this.hostElement.shadowRoot?.querySelector(".chat-history");if(!e)return;const{scrollTop:t,scrollHeight:i,clientHeight:s}=e;const o=i-t-s;this.shouldAutoScroll=o<=this.SCROLL_THRESHOLD}};handleTouchStart=()=>{this.isUserScrolling=true};handleTouchEnd=()=>{setTimeout((()=>{this.isUserScrolling=false}),100)};_wheelTimer=null;handleWheel=()=>{this.isUserScrolling=true;if(this._wheelTimer){clearTimeout(this._wheelTimer)}this._wheelTimer=setTimeout((()=>{this.isUserScrolling=false}),150)};scrollToBottom(){const e=this.hostElement.shadowRoot?.querySelector(".chat-history");if(e&&this.isOpen){e.scrollTop=e.scrollHeight}}async loadHistoryMessages(){if(!this.conversationId)return;this.isLoadingHistory=true;let e=false;try{const t=await a({url:`/sdk/v1/hr_competition/${this.conversationId}`,method:"GET"});if(t.success&&t.data&&t.data.ended==1){e=true}const i=await a({url:"/sdk/v1/chat/messages",method:"GET",data:{conversation_id:this.conversationId,bot_id:"3022316191018880",limit:20}});if(i.success&&i.data){const e=i.data.data||[];const t=e.map((e=>{const t=new Date(e.created_at*1e3);const i=t.getHours().toString().padStart(2,"0");const s=t.getMinutes().toString().padStart(2,"0");const o=`${i}:${s}`;const{inputs:n,...r}=e;return{...r,time:o,isStreaming:false,status:e.status==="error"?"error":"normal"}}));this.messages=t;const s=t.filter((e=>!(e.answer&&(e.answer.includes("请求超时")||e.answer.includes("网络有点拥堵")||e.status==="error"))));this.currentQuestionNumber=s.length>0?s.length:0}}catch(e){console.error("加载历史消息或面试状态失败:",e);this.someErrorEvent.emit({error:e,message:"加载历史消息失败,请刷新重试"});p.captureError(e,{action:"loadHistoryMessages",component:"pcm-hr-chat-modal",conversationId:this.conversationId,title:"加载历史消息失败"})}finally{this.isLoadingHistory=false;setTimeout((async()=>{this.shouldAutoScroll=true;this.scrollToBottom();if(this.conversationId&&this.messages.length>0&&!e){const e=this.messages[this.messages.length-1];if(e&&e.answer&&this.enableAudio){const t=await l(e.answer);if(this.enableVoice){await this.playAudio(t);this.startWaitingToRecord()}else{this.audioUrl=t}}else if(!this.enableAudio){this.startWaitingToRecord()}else{this.sendMessageToAPI("下一题")}}else if(e){this.currentQuestionNumber++;this.isTaskCompleted=true;setTimeout((()=>{this.interviewComplete.emit()}),100)}}),300)}}async handleIsOpenChange(e){if(e){await d(this.token);if(this.conversationId){this.showInitialUpload=false;await this.loadHistoryMessages()}}}handleJobCategorySelect=e=>{this.selectedJobCategory=e};handleDimensionSelect=e=>{if(this.selectedDimensions.includes(e)){this.selectedDimensions=this.selectedDimensions.filter((t=>t!==e))}else{this.selectedDimensions=[...this.selectedDimensions,e]}};handleInitialSubmit=async()=>{if(this.requireResume&&!this.selectedFile){alert("请上传简历");return}if(!this.selectedJobCategory){alert("请选择职能类别");return}if(this.selectedDimensions.length===0){alert("请至少选择一个关注模块");return}if(this.requireResume){await this.uploadFile();if(this.uploadedFileInfo.length===0){return}}this.showInitialUpload=false;const e=`我是一名${this.selectedJobCategory},请您开始提问`;this.sendMessageToAPI(e)};startWaitingToRecord(){if(this.waitingTimer){clearInterval(this.waitingTimer)}if(this.recordingTimer){clearInterval(this.recordingTimer)}this.waitingToRecord=true;this.waitingTimeLeft=15;this.waitingTimer=setInterval((()=>{this.waitingTimeLeft--;if(this.waitingTimeLeft<=0){clearInterval(this.waitingTimer);this.waitingTimer=null;this.waitingToRecord=false;this.startRecording()}}),1e3)}async startRecording(){try{const e=await navigator.mediaDevices.getUserMedia({audio:true,video:{width:{ideal:1280},height:{ideal:720},frameRate:{ideal:30}}});this.recordingStream=e;this.showRecordingUI=true;this.showCountdownWarning=false;this.videoRef=null;this.setupVideoPreview(e);const t=this.getSupportedMimeType();let i;try{i=new MediaRecorder(e,{mimeType:t,videoBitsPerSecond:8e5,audioBitsPerSecond:64e3})}catch(t){console.warn("指定的MIME类型不受支持,使用默认设置:",t);try{i=new MediaRecorder(e,{videoBitsPerSecond:8e5,audioBitsPerSecond:64e3})}catch(t){try{i=new MediaRecorder(e)}catch(e){this.recordingError.emit({type:"recorder_creation_failed",message:"无法创建媒体录制器,您的浏览器可能不支持此功能",details:e});this.showRecordingUI=false;return}}}this.mediaRecorder=i;const s=[];i.ondataavailable=e=>{if(e.data.size>0){s.push(e.data)}};i.onerror=e=>{this.recordingError.emit({type:"recording_error",message:"录制过程中发生错误",details:e});this.stopRecording()};i.onstop=()=>{try{const e=t||"video/mp4";const i=new Blob(s,{type:e});if(i.size===0){this.recordingError.emit({type:"empty_recording",message:"录制的视频为空"});this.showRecordingUI=false;return}this.recordedBlob=i;this.recordingStatusChange.emit({status:"stopped",details:{duration:Math.floor((Date.now()-this.recordingStartTime)/1e3),size:i.size,type:i.type}});this.uploadRecordedVideo()}catch(e){this.recordingError.emit({type:"processing_error",message:"处理录制视频时出错",details:e});this.showRecordingUI=false;p.captureError(e,{action:"uploadRecordedVideo",component:"pcm-hr-chat-modal",title:"处理录制视频时出错"})}};try{i.start();this.isRecording=true;this.recordingStartTime=Date.now();this.recordingTimeLeft=this.maxRecordingTime;this.recordingStatusChange.emit({status:"started",details:{maxDuration:this.maxRecordingTime,mimeType:i.mimeType}})}catch(e){this.recordingError.emit({type:"start_failed",message:"开始录制失败,请检查您的设备权限",details:e});this.showRecordingUI=false;p.captureError(e,{action:"startRecording",component:"pcm-hr-chat-modal",title:"开始录制失败"});return}this.recordingTimer=setInterval((()=>{const e=Math.floor((Date.now()-this.recordingStartTime)/1e3);this.recordingTimeLeft=Math.max(0,this.maxRecordingTime-e);if(this.recordingTimeLeft<=this.countdownWarningTime&&!this.showCountdownWarning){this.showCountdownWarning=true}if(this.recordingTimeLeft<=0){this.stopRecording()}}),1e3)}catch(e){console.error("无法访问摄像头或麦克风:",e);this.showRecordingUI=false;this.recordingError.emit({type:"media_access_failed",message:"无法访问摄像头或麦克风,请确保已授予权限",details:e});p.captureError(e,{action:"startRecording",component:"pcm-hr-chat-modal",title:"无法访问摄像头或麦克风"})}}setupVideoPreview(e){setTimeout((()=>{const t=this.hostElement.shadowRoot?.querySelector("video");if(t&&e){try{t.srcObject=e;t.play().catch((e=>{console.error("视频播放失败:",e);this.someErrorEvent.emit({error:e,message:"视频播放失败"});p.captureError(e,{action:"setupVideoPreview",component:"pcm-hr-chat-modal",title:"录制视频显示失败"})}))}catch(i){console.warn("设置srcObject失败,尝试替代方法:",i);try{const i=URL.createObjectURL(e);t.src=i;t.onended=()=>{URL.revokeObjectURL(i)}}catch(e){console.error("创建对象URL失败:",e);this.someErrorEvent.emit({error:e,message:"创建对象URL失败"});p.captureError(e,{action:"setupVideoPreview",component:"pcm-hr-chat-modal",title:"创建对象URL失败"})}}}else{console.warn("未找到视频元素或媒体流无效")}}),100)}getSupportedMimeType(){const e=["video/webm;codecs=vp8,opus","video/webm;codecs=vp9,opus","video/webm","video/mp4","video/mp4;codecs=h264,aac",""];if(!window.MediaRecorder){console.warn("MediaRecorder API不可用");return""}for(const t of e){if(!t)return"";try{if(MediaRecorder.isTypeSupported(t)){return t}}catch(e){console.warn(`检查MIME类型支持时出错 ${t}:`,e)}}console.warn("没有找到支持的MIME类型,将使用浏览器默认值");return""}stopRecording(){if(this.mediaRecorder&&this.isRecording){this.mediaRecorder.stop();this.isRecording=false;if(this.recordingTimer){clearInterval(this.recordingTimer);this.recordingTimer=null}if(this.recordingStream){this.recordingStream.getTracks().forEach((e=>e.stop()));this.recordingStream=null}this.videoRef=null}}async uploadRecordedVideo(){if(!this.recordedBlob)return;try{this.isUploadingVideo=true;this.showRecordingUI=false;const e=this.recordedBlob.type.includes("webm")?"webm":"mp4";const t=`answer.${e}`;const i=new File([this.recordedBlob],t,{type:this.recordedBlob.type});const s=await n(i,{},{tags:["other"]});if(s){await this.saveVideoAnswer(s.cos_key);this.sendMessageToAPI("下一题")}else{throw new Error("视频上传失败")}}catch(e){console.error("视频上传错误:",e);this.recordingError.emit({type:"upload_failed",message:"视频上传失败",details:e});p.captureError(e,{action:"uploadRecordedVideo",component:"pcm-hr-chat-modal",title:"视频上传失败"})}finally{this.isUploadingVideo=false;this.showRecordingUI=false;this.recordedBlob=null}}async saveVideoAnswer(e){if(!this.conversationId)return;try{const t=this.messages.length>0?this.messages[this.messages.length-1]:null;if(!t)return;await a({url:"/sdk/v1/hr_competition/answer",method:"POST",data:{conversation_id:this.conversationId,question:t.answer,file_url:e}})}catch(e){console.error("保存视频答案失败:",e);this.someErrorEvent.emit({error:e,message:"保存视频答案失败"});p.captureError(e,{action:"saveVideoAnswer",component:"pcm-hr-chat-modal",conversationId:this.conversationId,title:"保存视频答案失败"})}}async completeInterview(){if(!this.conversationId)return;try{await a({url:`/sdk/v1/hr_competition/${this.conversationId}/end`,method:"POST"})}catch(e){console.error("发送面试完成请求失败:",e);this.someErrorEvent.emit({error:e,message:"发送面试完成请求失败"});p.captureError(e,{action:"completeInterview",component:"pcm-hr-chat-modal",conversationId:this.conversationId,title:"发送面试完成请求失败"})}}playAudio(e){return new Promise((t=>{this.isPlayingAudio=true;this.audioUrl=e;if(!this.audioElement){this.audioElement=new Audio}this.audioElement.src=e;this.audioElement.onended=()=>{this.isPlayingAudio=false;this.audioUrl=null;t()};this.audioElement.onerror=()=>{console.error("音频播放错误");this.isPlayingAudio=false;this.audioUrl=null;this.someErrorEvent.emit({error:"音频播放错误",message:"音频播放错误"});p.captureMessage("音频播放错误",{action:"playAudio",component:"pcm-hr-chat-modal",title:"音频播放错误"});t()};this.audioElement.play().catch((e=>{console.error("音频播放失败:",e);this.isPlayingAudio=false;this.audioUrl=null;this.someErrorEvent.emit({error:e,message:"音频播放失败"});p.captureError(e,{title:"音频播放失败",action:"playAudio",component:"pcm-hr-chat-modal"});t()}))}))}disconnectedCallback(){document.removeEventListener("pcm-token-invalid",this.tokenInvalidListener);if(this.audioElement){this.audioElement.pause();this.audioElement.src="";this.audioElement=null}if(this.audioUrl){URL.revokeObjectURL(this.audioUrl);this.audioUrl=null}if(this.waitingTimer){clearInterval(this.waitingTimer);this.waitingTimer=null}if(this.recordingTimer){clearInterval(this.recordingTimer);this.recordingTimer=null}this.stopRecording();if(this.visibilityChangeListener){document.removeEventListener("visibilitychange",this.visibilityChangeListener)}if(this.blurListener){window.removeEventListener("blur",this.blurListener)}if(this.focusListener){window.removeEventListener("focus",this.focusListener)}}handlePlayAudio=async()=>{if(this.audioUrl){await this.playAudio(this.audioUrl);this.startWaitingToRecord()}};handleRetryRequest=e=>{const t=this.messages.find((t=>t.id===e));if(t){this.aiException=false;const i=this.messages.map((t=>t.id===e?{...t,showRetryButton:false}:t));this.messages=i;this.sendMessageToAPI(t.query)}};render(){if(!this.isOpen)return null;const e={zIndex:String(this.zIndex)};const t={"modal-container":true,fullscreen:this.fullscreen};const i={"modal-overlay":true,"fullscreen-overlay":this.fullscreen};const o=()=>s("div",{class:"video-preview"},s("video",{autoPlay:true,playsInline:true,muted:true,style:{transform:"scaleX(-1)"},ref:e=>{if(e&&this.recordingStream&&!this.videoRef){this.videoRef=e}}}),s("div",{class:{"recording-status":true,warning:this.showCountdownWarning}},s("span",{class:"recording-dot"}),s("span",null,"录制中 ",Math.floor(this.recordingTimeLeft/60),":",(this.recordingTimeLeft%60).toString().padStart(2,"0"),this.showCountdownWarning&&` (即将自动完成)`)));const n=()=>{if(this.isTaskCompleted){return s("div",{class:"placeholder-status"},s("p",null,"面试已完成,感谢您的参与!"))}if(this.isPlayingAudio){return s("div",{class:"placeholder-status"},s("p",null,"正在播放问题,请听完后准备回答..."))}if(this.isUploadingVideo){return s("div",{class:"placeholder-status"},s("p",null,"正在上传视频,请稍候..."))}if(this.isLoading||this.currentStreamingMessage){return s("div",{class:"placeholder-status"},s("p",null,"请等待题目..."))}if(this.waitingToRecord){return s("div",{class:"placeholder-status"},s("p",null,"请准备好,",this.waitingTimeLeft,"秒后将开始录制您的回答..."))}return s("div",{class:"placeholder-status default-status"},s("p",null,"准备中..."))};return s("div",{class:i,style:e},s("div",{class:t},this.isShowHeader&&s("div",{class:"modal-header"},s("div",{class:"header-left"},this.icon&&s("img",{src:this.icon,class:"header-icon",alt:"应用图标"}),s("div",null,this.modalTitle)),this.isNeedClose&&s("button",{class:"close-button",onClick:this.handleClose},s("span",null,"×"))),this.showInitialUpload?s("div",{class:"initial-upload"},s("div",{class:"upload-section"},this.requireResume&&s(s.Fragment,null,s("h3",null,"开始前,请上传您的简历"),s("div",{class:"upload-area",onClick:this.handleUploadClick},this.selectedFile?s("div",{class:"file-item"},s("div",{class:"file-item-content"},s("span",{class:"file-icon"},"📝"),s("span",{class:"file-name"},this.selectedFile.name)),s("button",{class:"remove-file",onClick:e=>{e.stopPropagation();this.clearSelectedFile()}},"×")):s("div",{class:"upload-placeholder"},s("img",{src:"https://pub.pincaimao.com/static/web/images/home/i_upload.png"}),s("p",{class:"upload-text"},"点击上传简历"),s("p",{class:"upload-hint"},"支持 txt、 markdown、 pdf、 docx、 md 格式")))),s("div",{class:"category-select"},s("h3",null,"请选择您的职能类别(单选)"),s("div",{class:"category-options"},this.jobCategories.map((e=>s("button",{class:{"category-button":true,selected:this.selectedJobCategory===e},onClick:()=>this.handleJobCategorySelect(e)},e))))),s("div",{class:"dimension-select"},s("h3",null,"请选择关注的模块(可多选)"),s("div",{class:"dimension-options"},this.dimensions.map((e=>s("button",{class:{"dimension-button":true,selected:this.selectedDimensions.includes(e)},onClick:()=>this.handleDimensionSelect(e)},e))))),s("button",{class:"submit-button",disabled:this.requireResume&&!this.selectedFile||!this.selectedJobCategory||this.selectedDimensions.length===0||this.requireResume&&this.isUploading,onClick:this.handleInitialSubmit},this.requireResume&&this.isUploading?"上传中...":"开始面试")),this.requireResume&&s("input",{type:"file",class:"file-input",onChange:this.handleFileChange,accept:".pdf,.doc,.docx,.txt"})):s("div",{style:{height:"100%"}},s("div",{class:"chat-history",onScroll:this.handleScroll,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onWheel:this.handleWheel},this.isLoadingHistory?s("div",{class:"loading-container"},s("div",{class:"loading-spinner"}),s("p",null,"加载历史消息中...")):s("div",null,this.messages.map((e=>s("div",{id:`message_${e.id}`,key:e.id},s("components-chat-message",{message:e,onRetryRequest:e=>this.handleRetryRequest(e.detail),showCopyButton:false,showFeedbackButtons:false})))),this.currentStreamingMessage&&s("div",{id:`message_${this.currentStreamingMessage.id}`},s("components-chat-message",{message:this.currentStreamingMessage})),this.messages.length===0&&!this.currentStreamingMessage&&s("div",{class:"empty-state"},s("p",null,"请上传简历开始面试")))),s("div",{class:"recording-section"},s("div",{class:"recording-container"},s("div",{class:"video-area"},this.showRecordingUI?o():s("div",{class:"video-preview placeholder"},n())),s("div",{class:"progress-container"},s("div",{class:"progress-bar-container"},s("div",{class:"progress-bar",style:{width:`${Math.max(0,this.currentQuestionNumber-1)/this.totalQuestions*100}%`}})),s("div",{class:"progress-text"},"已完成",Math.max(0,this.currentQuestionNumber-1),"/",this.totalQuestions)),s("div",{class:"recording-controls"},this.showRecordingUI?s("button",{class:"stop-recording-button",onClick:()=>this.stopRecording()},"完成本题回答"):s("div",{class:"waiting-message"},(()=>{if(!this.enableVoice&&this.audioUrl&&!this.isPlayingAudio){return s("div",{class:"play-audio-container",onClick:this.handlePlayAudio},s("p",null,s("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",style:{verticalAlign:"middle",marginRight:"8px"}},s("path",{d:"M8 5v14l11-7z"})),s("span",{style:{verticalAlign:"middle"}},"播放题目")))}return s("button",{class:"stop-recording-button disabled",disabled:true},"完成回答")})())))))))}static get watchers(){return{token:["handleTokenChange"],isOpen:["handleIsOpenChange"]}}};m.style=u+g;export{m as pcm_hr_chat_modal};
2
+ //# sourceMappingURL=p-f92d70a8.entry.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,b as o}from"./p-DA8Myhft.js";export{s as setNonce}from"./p-DA8Myhft.js";import{g as i}from"./p-CeRTfvY9.js";import"./p-Bs-zO1WZ.js";var n=()=>{const o=import.meta.url;const i={};if(o!==""){i.resourcesUrl=new URL(".",o).href}return e(i)};n().then((async e=>{await i();return o(JSON.parse('[["p-b9368b8e",[[1,"pcm-mnms-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"mobileUploadAble":[4,"mobile-upload-able"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"interviewMode":[1,"interview-mode"],"skipResumeUpload":[4,"skip-resume-upload"],"showCopyButton":[4,"show-copy-button"],"showFeedbackButtons":[4,"show-feedback-buttons"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-mnms-zp-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"mobileUploadAble":[4,"mobile-upload-able"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"interviewMode":[1,"interview-mode"],"showCopyButton":[4,"show-copy-button"],"showFeedbackButtons":[4,"show-feedback-buttons"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-qgqjl-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"hideExportButton":[4,"hide-export-button"],"exportButtonText":[1,"export-button-text"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"filePreviewMode":[1,"file-preview-mode"],"autoStart":[4,"auto-start"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"showIframe":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"_internalConversationId":[32],"selectedOptimizationMode":[32],"selectedOutputType":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-htws-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"isSubmitting":[32],"inputMode":[32],"freeInputText":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-jlpp-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-1zhanshi-mnms-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-ats-mnms-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-jlzz-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"isSuccess":[1028,"is-success"],"hideExportButton":[4,"hide-export-button"],"exportButtonText":[1,"export-button-text"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"filePreviewMode":[1,"file-preview-mode"],"mobileUploadAble":[4,"mobile-upload-able"],"initialResumeText":[1,"initial-resume-text"],"type":[1],"introduction_prompt":[1],"showHistory":[4,"show-history"],"conversationId":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"resumeType":[32],"resumeText":[32],"isSubmitting":[32],"showIframe":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"],"isSuccess":["handleIsSuccessChange"]}],[1,"pcm-mnct-modal",{"modalTitle":[1,"modal-title"],"locale":[1],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"questionNumber":[1026,"question-number"],"canOutputAnalysis":[1028,"can-output-analysis"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"strings":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-zygh-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isSubmitting":[32],"selectedPlanType":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-zygh-v2-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isSubmitting":[32],"selectedPlanType":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"targetPosition":[32],"industryName":[32],"jobPosition":[32],"timePeriod":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"oem-jlsx-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showInputHistory":[4,"show-input-history"],"showWorkspaceHistory":[4,"show-workspace-history"],"showBatchExport":[4,"show-batch-export"],"taskId":[1026,"task-id"],"oemId":[1,"oem-id"],"currentStep":[32],"jobDescription":[32],"jobTitle":[32],"evaluationCriteria":[32],"isSubmitting":[32],"isUploading":[32],"uploadedResumeRecords":[32],"filteredResumeRecords":[32],"selectedFiles":[32],"showJdDrawer":[32],"showCriteriaDrawer":[32],"currentTask":[32],"currentPage":[32],"pageSize":[32],"totalRecords":[32],"isAnalyzing":[32],"showPreviewDrawer":[32],"previewContent":[32],"previewTitle":[32],"previewType":[32],"previewUrl":[32],"activeDropdownId":[32],"deletingRecordId":[32],"sortOrder":[32],"isTaskHistoryDrawerOpen":[32],"historyTasks":[32],"isLoadingHistoryTasks":[32],"taskHistoryCurrentPage":[32],"taskHistoryPageSize":[32],"taskHistoryTotal":[32],"taskHistoryDrawerSource":[32],"isLoadingResumeList":[32],"isExportRecordsModalOpen":[32],"_uploadEnabled":[32],"showPositionSelector":[32],"exportAllPdfLoading":[32],"setUploadEnabled":[64]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"oem-zygh-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isSubmitting":[32],"selectedPlanType":[32],"targetPosition":[32],"industryName":[32],"jobPosition":[32],"timePeriod":[32],"phoneNumber":[32],"verificationCode":[32],"isSendingCode":[32],"countdown":[32],"isVerifyingCode":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-jd-modal",{"modalTitle":[1,"modal-title"],"locale":[1],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"showSaveJdButton":[4,"show-save-jd-button"],"saveJdButtonText":[1,"save-jd-button-text"],"filePreviewMode":[1,"file-preview-mode"],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"strings":[32],"inputMode":[32],"step":[32],"jobName":[32],"freeInputText":[32],"isLoading":[32],"isSubmitting":[32],"isVoiceInputActive":[32],"tagGroups":[32],"shuffledTagGroups":[32],"selectedAITags":[32],"selectedTags":[32],"jobDescription":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-hyzj-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"filePreviewMode":[1,"file-preview-mode"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-msbg-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"filePreviewMode":[1,"file-preview-mode"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-zsk-chat-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"employeeId":[1025,"employee-id"],"maxAudioRecordingTime":[2,"max-audio-recording-time"],"filePreviewMode":[1,"file-preview-mode"],"messages":[32],"currentAssistantMessage":[32],"isLoading":[32],"currentStreamingMessage":[32],"shouldAutoScroll":[32],"isLoadingHistory":[32],"textAnswer":[32],"isSubmittingText":[32],"suggestedQuestions":[32],"suggestedQuestionsLoading":[32],"currentRefs":[32],"showReferences":[32],"isRecordingAudio":[32],"audioRecorder":[32],"audioChunks":[32],"isConvertingAudio":[32],"audioRecordingTimeLeft":[32],"audioRecordingTimer":[32],"audioRecordingStartTime":[32],"employeeDetails":[32],"isLoadingEmployeeDetails":[32],"quickQuestions":[32],"shouldHideReferences":[32],"isUserScrolling":[32],"isDrawerOpen":[32],"previewUrl":[32],"previewFileName":[32],"downloadUrl":[32],"isDownloadQrCodeOpen":[32],"downloadQrCodeUrl":[32],"resetEmployee":[64]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-button",{"type":[1],"size":[1],"loading":[4],"disabled":[4],"icon":[1],"shape":[1],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"borderColor":[1,"border-color"],"borderRadius":[2,"border-radius"],"width":[1],"block":[4],"borderStyle":[1,"border-style"]}],[1,"pcm-card",{"token":[1],"cardTitle":[1,"card-title"],"description":[1],"iconUrl":[1,"icon-url"],"author":[1],"authorAvatarUrl":[1,"author-avatar-url"],"showChatTag":[4,"show-chat-tag"],"customChatTag":[1,"custom-chat-tag"],"useButtonText":[1,"use-button-text"],"botId":[1,"bot-id"],"botData":[32],"loading":[32],"error":[32]},null,{"botId":["watchBotIdHandler"],"token":["handleTokenChange"]}],[1,"components-export-records-modal",{"botId":[1,"bot-id"],"sourceId":[1,"source-id"],"open":[4],"loading":[32],"pagination":[32],"data":[32],"showMessage":[32],"messageText":[32],"messageType":[32]},null,{"open":["watchOpen"]}],[1,"components-thousand-resume-wrapper",{"token":[1],"isOpen":[1028,"is-open"],"conversationId":[1025,"conversation-id"],"botId":[1,"bot-id"],"optimizationType":[2,"optimization-type"],"customInputs":[16,"custom-inputs"],"defaultQuery":[1,"default-query"],"modalTitle":[1,"modal-title"],"icon":[1],"fullscreen":[4],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"isLoading":[32],"internalConversationId":[32],"error":[32],"activeTab":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"components-voice-input-btn",{"disabled":[4],"maxRecordingTime":[2,"max-recording-time"],"locale":[1],"_status":[32],"_recordingTimeLeft":[32]}],[1,"pcm-virtual-chat-modal",{"token":[1],"isOpen":[1028,"is-open"],"zIndex":[1026,"z-index"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"countdownWarningTime":[2,"countdown-warning-time"],"fullscreen":[4],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"waitingTime":[2,"waiting-time"],"playbackRate":[2,"playback-rate"],"showEndInterviewButton":[4,"show-end-interview-button"],"customInputs":[1040,"custom-inputs"],"botId":[1,"bot-id"],"messages":[32],"isLoading":[32],"currentStreamingMessage":[32],"isLoadingHistory":[32],"isRecording":[32],"recordingStream":[32],"recordedBlob":[32],"mediaRecorder":[32],"recordingTimeLeft":[32],"showRecordingUI":[32],"recordingTimer":[32],"recordingStartTime":[32],"waitingToRecord":[32],"waitingTimer":[32],"waitingTimeLeft":[32],"currentQuestionNumber":[32],"showCountdownWarning":[32],"isUploadingVideo":[32],"digitalHumanVideoUrl":[32],"digitalHumanDefaultVideoUrl":[32],"virtualmanKey":[32],"isPlayingDigitalHumanVideo":[32],"digitalHumanVideoReady":[32],"digitalHumanOpeningContents":[32],"isPlayingWelcomeVideo":[32],"isGeneratingDigitalHumanVideo":[32],"pendingGeneratedVideoUrl":[32],"waitingForDigitalHuman":[32],"agentLogo":[32],"isTaskCompleted":[32],"deviceError":[32],"showConfirmModal":[32],"skipConfirmThisInterview":[32],"showCloseConfirmModal":[32],"showEndInterviewConfirmModal":[32],"isEndingInterview":[32],"isComponentActive":[32],"setComponentActive":[64]},null,{"token":["handleTokenChange"]}],[1,"components-position-selector",{"oemId":[1,"oem-id"],"multiple":[4],"selectedIds":[16,"selected-ids"],"pageSize":[2,"page-size"],"searchKeyword":[32],"currentSelectedIds":[32],"currentPage":[32],"totalCount":[32],"positionsList":[32],"loading":[32]},null,{"selectedIds":["handleSelectedIdsChange"],"oemId":["handleOemIdChange"]}],[1,"components-message",{"content":[1],"type":[1],"duration":[2],"visible":[32],"show":[64],"close":[64]}],[1,"components-upload",{"multiple":[4],"mobileUploadAble":[4,"mobile-upload-able"],"acceptFileSuffixList":[16,"accept-file-suffix-list"],"maxFileCount":[2,"max-file-count"],"maxFileSize":[2,"max-file-size"],"uploadHeaders":[16,"upload-headers"],"uploadParams":[16,"upload-params"],"uploadText":[1,"upload-text"],"defaultFileList":[16,"default-file-list"],"disabled":[4],"selectedFiles":[32],"getIsUploading":[64],"clearSelectedFiles":[64]}],[1,"components-mobile-input-btn",{"name":[1],"rows":[2],"maxLength":[2,"max-length"],"uploadHeaders":[16,"upload-headers"],"uploadParams":[16,"upload-params"],"QR_CODE_VALID_TIME":[32],"open":[32],"mobileUrl":[32],"setStartMobileUpload":[32],"startMobileUploadLoading":[32],"qrcodeStatus":[32],"value":[32],"expireTime":[32],"qrcodeUrl":[32],"cancelLoading":[32]}],[1,"components-mobile-upload-btn",{"multiple":[4],"acceptFileSuffixList":[16,"accept-file-suffix-list"],"maxFileCount":[2,"max-file-count"],"maxFileSize":[2,"max-file-size"],"uploadHeaders":[16,"upload-headers"],"uploadParams":[16,"upload-params"],"uploadAreaMode":[4,"upload-area-mode"],"disabled":[4],"defaultFileList":[16,"default-file-list"],"uploadText":[1,"upload-text"],"QR_CODE_VALID_TIME":[32],"open":[32],"mobileUrl":[32],"setStartMobileUpload":[32],"startMobileUploadLoading":[32],"qrcodeStatus":[32],"value":[32],"mobileUploadFiles":[32],"expireTime":[32],"qrcodeUrl":[32],"cancelLoading":[32],"getIsUploading":[64],"clearSelectedFiles":[64]}],[1,"pcm-app-chat-modal",{"locale":[1],"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[1026,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"showSaveJdButton":[4,"show-save-jd-button"],"saveJdButtonText":[1,"save-jd-button-text"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"countdownWarningTime":[2,"countdown-warning-time"],"waitingTime":[2,"waiting-time"],"closeResume":[16,"close-resume"],"fullscreen":[4],"interviewMode":[1,"interview-mode"],"customInputs":[1040,"custom-inputs"],"botId":[1,"bot-id"],"maxAudioRecordingTime":[2,"max-audio-recording-time"],"userAvatar":[1,"user-avatar"],"assistantAvatar":[1,"assistant-avatar"],"showCopyButton":[4,"show-copy-button"],"showFeedbackButtons":[4,"show-feedback-buttons"],"filePreviewMode":[1,"file-preview-mode"],"showWorkspaceHistory":[4,"show-workspace-history"],"digitalId":[1,"digital-id"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"strings":[32],"messages":[32],"isLoading":[32],"currentStreamingMessage":[32],"shouldAutoScroll":[32],"isLoadingHistory":[32],"isRecording":[32],"recordingStream":[32],"recordedBlob":[32],"mediaRecorder":[32],"recordingTimeLeft":[32],"showRecordingUI":[32],"recordingTimer":[32],"recordingStartTime":[32],"waitingToRecord":[32],"waitingTimer":[32],"waitingTimeLeft":[32],"currentQuestionNumber":[32],"showCountdownWarning":[32],"isUploadingVideo":[32],"isPlayingAudio":[32],"textAnswer":[32],"isSubmittingText":[32],"isRecordingAudio":[32],"audioRecorder":[32],"audioChunks":[32],"isConvertingAudio":[32],"audioRecordingTimeLeft":[32],"audioRecordingTimer":[32],"audioRecordingStartTime":[32],"agentLogo":[32],"isTaskCompleted":[32],"virtualmanKey":[32],"isDrawerOpen":[32],"previewUrl":[32],"previewFileName":[32],"previewContentType":[32],"previewContent":[32],"isUserScrolling":[32],"deviceError":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"showConfirmModal":[32],"skipConfirmThisInterview":[32],"showEndInterviewConfirmModal":[32],"isEndingInterview":[32],"lastCompletedAnswer":[32],"waitingForDigitalHuman":[32],"digitalHumanVideoReady":[32]},null,{"token":["handleTokenChange"]}],[1,"components-digital-human",{"digitalId":[1,"digital-id"],"speechText":[1,"speech-text"],"isStreaming":[4,"is-streaming"],"playbackRate":[2,"playback-rate"],"generatedVideoUrl":[32],"currentVideoUrl":[32],"isPlayingGenerated":[32],"dynamicDefaultVideoUrl":[32],"dynamicVirtualmanKey":[32]},null,{"isStreaming":["handleStreamingChange"]}],[1,"components-chat-message",{"message":[16],"showFeedbackButtons":[4,"show-feedback-buttons"],"botId":[1,"bot-id"],"locale":[1],"userAvatar":[1,"user-avatar"],"assistantAvatar":[1,"assistant-avatar"],"showCopyButton":[4,"show-copy-button"],"filePreviewMode":[1,"file-preview-mode"],"showAssistantMessage":[4,"show-assistant-message"],"showSaveJdButton":[4,"show-save-jd-button"],"saveJdButtonText":[1,"save-jd-button-text"],"strings":[32],"feedbackStatus":[32],"videoUrls":[32],"saveJdLoading":[32]}],[1,"components-drawer",{"isOpen":[1540,"is-open"],"drawerTitle":[1,"drawer-title"],"width":[1],"height":[1],"closable":[4],"maskClosable":[4,"mask-closable"],"zIndex":[32],"open":[64],"close":[64]},null,{"isOpen":["visibleChanged"]}],[1,"components-confirm-modal",{"isOpen":[1540,"is-open"],"modalTitle":[1,"modal-title"],"okText":[1,"ok-text"],"cancelText":[1,"cancel-text"],"okType":[1,"ok-type"],"maskClosable":[4,"mask-closable"],"mask":[4],"centered":[4],"zIndex":[32],"open":[64],"close":[64]},null,{"isOpen":["visibleChanged"]}]]],["p-81d12737",[[1,"oem-mnms-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"interviewMode":[1,"interview-mode"],"showCopyButton":[4,"show-copy-button"],"showFeedbackButtons":[4,"show-feedback-buttons"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"phoneNumber":[32],"verificationCode":[32],"isSendingCode":[32],"countdown":[32],"isVerifyingCode":[32],"showPositionSelector":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-d0a7e02b",[[1,"oem-qgqjl-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"hideExportButton":[4,"hide-export-button"],"exportButtonText":[1,"export-button-text"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"filePreviewMode":[1,"file-preview-mode"],"autoStart":[4,"auto-start"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"showIframe":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"showPositionSelector":[32],"_internalConversationId":[32],"selectedOptimizationMode":[32],"selectedOutputType":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-f4d5841a",[[1,"oem-jlpp-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32],"phoneNumber":[32],"verificationCode":[32],"isSendingCode":[32],"countdown":[32],"isVerifyingCode":[32],"showPositionSelector":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-58493403",[[1,"oem-mnct-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"questionNumber":[1026,"question-number"],"canOutputAnalysis":[1028,"can-output-analysis"],"filePreviewMode":[1,"file-preview-mode"],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32],"showPositionSelector":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-24ce19fc",[[1,"oem-htws-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isSubmitting":[32],"phoneNumber":[32],"verificationCode":[32],"isSendingCode":[32],"countdown":[32],"isVerifyingCode":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-724d9471",[[1,"oem-jd-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showSaveJdButton":[4,"show-save-jd-button"],"saveJdButtonText":[1,"save-jd-button-text"],"filePreviewMode":[1,"file-preview-mode"],"showChatModal":[32],"inputMode":[32],"step":[32],"jobName":[32],"freeInputText":[32],"isLoading":[32],"isSubmitting":[32],"isVoiceInputActive":[32],"tagGroups":[32],"shuffledTagGroups":[32],"selectedAITags":[32],"selectedTags":[32],"jobDescription":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-0cedc9bf",[[1,"oem-jlzz-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"isSuccess":[1028,"is-success"],"exportButtonText":[1,"export-button-text"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"filePreviewMode":[1,"file-preview-mode"],"conversationId":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"resumeType":[32],"isSubmitting":[32],"showIframe":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"],"isSuccess":["handleIsSuccessChange"]}]]],["p-557664fc",[[1,"pcm-jlsx-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"mobileUploadAble":[4,"mobile-upload-able"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"showInputHistory":[4,"show-input-history"],"showWorkspaceHistory":[4,"show-workspace-history"],"showBatchExport":[4,"show-batch-export"],"taskId":[1026,"task-id"],"currentStep":[32],"jobDescription":[32],"jobTitle":[32],"evaluationCriteria":[32],"importantConditions":[32],"isSubmitting":[32],"isUploading":[32],"uploadedResumeRecords":[32],"filteredResumeRecords":[32],"selectedFiles":[32],"showJdDrawer":[32],"showCriteriaDrawer":[32],"currentTask":[32],"currentPage":[32],"pageSize":[32],"totalRecords":[32],"isAnalyzing":[32],"showPreviewDrawer":[32],"previewContent":[32],"previewTitle":[32],"previewType":[32],"previewUrl":[32],"activeDropdownId":[32],"deletingRecordId":[32],"sortOrder":[32],"isTaskHistoryDrawerOpen":[32],"historyTasks":[32],"isLoadingHistoryTasks":[32],"taskHistoryCurrentPage":[32],"taskHistoryPageSize":[32],"taskHistoryTotal":[32],"taskHistoryDrawerSource":[32],"isLoadingResumeList":[32],"isExportRecordsModalOpen":[32],"_uploadEnabled":[32],"exportAllPdfLoading":[32],"setUploadEnabled":[64]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-30b6a88d",[[1,"oem-cast-modal",{"isOpen":[1028,"is-open"],"zIndex":[2,"z-index"],"fullscreen":[4],"isNeedClose":[4,"is-need-close"],"_screen":[32],"_questionIndex":[32],"_phase":[32],"_mostDimension":[32],"_answers":[32],"_result":[32],"_showCloseConfirmModal":[32],"_hasAcceptedNotice":[32],"_showInstructions":[32]},null,{"isOpen":["handleIsOpenChange"]}]]],["p-783b46c0",[[1,"pcm-hr-chat-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"totalQuestions":[2,"total-questions"],"maxRecordingTime":[2,"max-recording-time"],"countdownWarningTime":[2,"countdown-warning-time"],"toEmail":[1,"to-email"],"callbackUrl":[1,"callback-url"],"fullscreen":[4],"requireResume":[4,"require-resume"],"enableVoice":[4,"enable-voice"],"enableAudio":[4,"enable-audio"],"displayContentStatus":[4,"display-content-status"],"messages":[32],"currentAssistantMessage":[32],"isLoading":[32],"currentStreamingMessage":[32],"shouldAutoScroll":[32],"isLoadingHistory":[32],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"aiException":[32],"showInitialUpload":[32],"selectedJobCategory":[32],"jobCategories":[32],"dimensions":[32],"selectedDimensions":[32],"isRecording":[32],"recordingStream":[32],"recordedBlob":[32],"mediaRecorder":[32],"recordingTimeLeft":[32],"showRecordingUI":[32],"recordingTimer":[32],"recordingStartTime":[32],"waitingToRecord":[32],"waitingTimer":[32],"waitingTimeLeft":[32],"currentQuestionNumber":[32],"showCountdownWarning":[32],"isUploadingVideo":[32],"isPlayingAudio":[32],"audioUrl":[32],"isTaskCompleted":[32],"isUserScrolling":[32],"isPageFocused":[32],"isWindowVisible":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-5ca45877",[[1,"components-oem-virtual-chat-modal",{"token":[1],"isOpen":[1028,"is-open"],"zIndex":[1026,"z-index"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"countdownWarningTime":[2,"countdown-warning-time"],"fullscreen":[4],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"waitingTime":[2,"waiting-time"],"playbackRate":[2,"playback-rate"],"showEndInterviewButton":[4,"show-end-interview-button"],"customInputs":[1040,"custom-inputs"],"botId":[1,"bot-id"],"messages":[32],"isLoading":[32],"currentStreamingMessage":[32],"isLoadingHistory":[32],"isRecording":[32],"recordingStream":[32],"recordedBlob":[32],"mediaRecorder":[32],"recordingTimeLeft":[32],"showRecordingUI":[32],"recordingTimer":[32],"recordingStartTime":[32],"waitingToRecord":[32],"waitingTimer":[32],"waitingTimeLeft":[32],"currentQuestionNumber":[32],"showCountdownWarning":[32],"isUploadingVideo":[32],"digitalHumanVideoUrl":[32],"digitalHumanDefaultVideoUrl":[32],"virtualmanKey":[32],"isPlayingDigitalHumanVideo":[32],"digitalHumanVideoReady":[32],"digitalHumanOpeningContents":[32],"isPlayingWelcomeVideo":[32],"isGeneratingDigitalHumanVideo":[32],"pendingGeneratedVideoUrl":[32],"waitingForDigitalHuman":[32],"agentLogo":[32],"isTaskCompleted":[32],"deviceError":[32],"showConfirmModal":[32],"skipConfirmThisInterview":[32],"showCloseConfirmModal":[32],"showEndInterviewConfirmModal":[32],"isEndingInterview":[32],"isComponentActive":[32],"setComponentActive":[64]},null,{"token":["handleTokenChange"]}]]]]'),e)}));
1
+ import{p as e,b as o}from"./p-DA8Myhft.js";export{s as setNonce}from"./p-DA8Myhft.js";import{g as i}from"./p-CeRTfvY9.js";import"./p-Bs-zO1WZ.js";var n=()=>{const o=import.meta.url;const i={};if(o!==""){i.resourcesUrl=new URL(".",o).href}return e(i)};n().then((async e=>{await i();return o(JSON.parse('[["p-11426012",[[1,"pcm-mnms-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"mobileUploadAble":[4,"mobile-upload-able"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"interviewMode":[1,"interview-mode"],"skipResumeUpload":[4,"skip-resume-upload"],"showCopyButton":[4,"show-copy-button"],"showFeedbackButtons":[4,"show-feedback-buttons"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-mnms-zp-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"mobileUploadAble":[4,"mobile-upload-able"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"interviewMode":[1,"interview-mode"],"showCopyButton":[4,"show-copy-button"],"showFeedbackButtons":[4,"show-feedback-buttons"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-qgqjl-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"hideExportButton":[4,"hide-export-button"],"exportButtonText":[1,"export-button-text"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"filePreviewMode":[1,"file-preview-mode"],"autoStart":[4,"auto-start"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"showIframe":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"_internalConversationId":[32],"selectedOptimizationMode":[32],"selectedOutputType":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-htws-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"isSubmitting":[32],"inputMode":[32],"freeInputText":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-jlpp-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-1zhanshi-mnms-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-ats-mnms-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-jlzz-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"isSuccess":[1028,"is-success"],"hideExportButton":[4,"hide-export-button"],"exportButtonText":[1,"export-button-text"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"filePreviewMode":[1,"file-preview-mode"],"mobileUploadAble":[4,"mobile-upload-able"],"initialResumeText":[1,"initial-resume-text"],"type":[1],"introduction_prompt":[1],"showHistory":[4,"show-history"],"conversationId":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"resumeType":[32],"resumeText":[32],"isSubmitting":[32],"showIframe":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"],"isSuccess":["handleIsSuccessChange"]}],[1,"pcm-mnct-modal",{"modalTitle":[1,"modal-title"],"locale":[1],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"questionNumber":[1026,"question-number"],"canOutputAnalysis":[1028,"can-output-analysis"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"strings":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-zygh-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isSubmitting":[32],"selectedPlanType":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-zygh-v2-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isSubmitting":[32],"selectedPlanType":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"targetPosition":[32],"industryName":[32],"jobPosition":[32],"timePeriod":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"oem-jlsx-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showInputHistory":[4,"show-input-history"],"showWorkspaceHistory":[4,"show-workspace-history"],"showBatchExport":[4,"show-batch-export"],"taskId":[1026,"task-id"],"oemId":[1,"oem-id"],"currentStep":[32],"jobDescription":[32],"jobTitle":[32],"evaluationCriteria":[32],"isSubmitting":[32],"isUploading":[32],"uploadedResumeRecords":[32],"filteredResumeRecords":[32],"selectedFiles":[32],"showJdDrawer":[32],"showCriteriaDrawer":[32],"currentTask":[32],"currentPage":[32],"pageSize":[32],"totalRecords":[32],"isAnalyzing":[32],"showPreviewDrawer":[32],"previewContent":[32],"previewTitle":[32],"previewType":[32],"previewUrl":[32],"activeDropdownId":[32],"deletingRecordId":[32],"sortOrder":[32],"isTaskHistoryDrawerOpen":[32],"historyTasks":[32],"isLoadingHistoryTasks":[32],"taskHistoryCurrentPage":[32],"taskHistoryPageSize":[32],"taskHistoryTotal":[32],"taskHistoryDrawerSource":[32],"isLoadingResumeList":[32],"isExportRecordsModalOpen":[32],"_uploadEnabled":[32],"showPositionSelector":[32],"exportAllPdfLoading":[32],"setUploadEnabled":[64]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"oem-zygh-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isSubmitting":[32],"selectedPlanType":[32],"targetPosition":[32],"industryName":[32],"jobPosition":[32],"timePeriod":[32],"phoneNumber":[32],"verificationCode":[32],"isSendingCode":[32],"countdown":[32],"isVerifyingCode":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-jd-modal",{"modalTitle":[1,"modal-title"],"locale":[1],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"showSaveJdButton":[4,"show-save-jd-button"],"saveJdButtonText":[1,"save-jd-button-text"],"filePreviewMode":[1,"file-preview-mode"],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"strings":[32],"inputMode":[32],"step":[32],"jobName":[32],"freeInputText":[32],"isLoading":[32],"isSubmitting":[32],"isVoiceInputActive":[32],"tagGroups":[32],"shuffledTagGroups":[32],"selectedAITags":[32],"selectedTags":[32],"jobDescription":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-hyzj-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"filePreviewMode":[1,"file-preview-mode"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-msbg-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showInputHistory":[4,"show-input-history"],"filePreviewMode":[1,"file-preview-mode"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-zsk-chat-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"employeeId":[1025,"employee-id"],"maxAudioRecordingTime":[2,"max-audio-recording-time"],"filePreviewMode":[1,"file-preview-mode"],"messages":[32],"currentAssistantMessage":[32],"isLoading":[32],"currentStreamingMessage":[32],"shouldAutoScroll":[32],"isLoadingHistory":[32],"textAnswer":[32],"isSubmittingText":[32],"suggestedQuestions":[32],"suggestedQuestionsLoading":[32],"currentRefs":[32],"showReferences":[32],"isRecordingAudio":[32],"audioRecorder":[32],"audioChunks":[32],"isConvertingAudio":[32],"audioRecordingTimeLeft":[32],"audioRecordingTimer":[32],"audioRecordingStartTime":[32],"employeeDetails":[32],"isLoadingEmployeeDetails":[32],"quickQuestions":[32],"shouldHideReferences":[32],"isUserScrolling":[32],"isDrawerOpen":[32],"previewUrl":[32],"previewFileName":[32],"downloadUrl":[32],"isDownloadQrCodeOpen":[32],"downloadQrCodeUrl":[32],"resetEmployee":[64]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"pcm-button",{"type":[1],"size":[1],"loading":[4],"disabled":[4],"icon":[1],"shape":[1],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"borderColor":[1,"border-color"],"borderRadius":[2,"border-radius"],"width":[1],"block":[4],"borderStyle":[1,"border-style"]}],[1,"pcm-card",{"token":[1],"cardTitle":[1,"card-title"],"description":[1],"iconUrl":[1,"icon-url"],"author":[1],"authorAvatarUrl":[1,"author-avatar-url"],"showChatTag":[4,"show-chat-tag"],"customChatTag":[1,"custom-chat-tag"],"useButtonText":[1,"use-button-text"],"botId":[1,"bot-id"],"botData":[32],"loading":[32],"error":[32]},null,{"botId":["watchBotIdHandler"],"token":["handleTokenChange"]}],[1,"components-export-records-modal",{"botId":[1,"bot-id"],"sourceId":[1,"source-id"],"open":[4],"loading":[32],"pagination":[32],"data":[32],"showMessage":[32],"messageText":[32],"messageType":[32]},null,{"open":["watchOpen"]}],[1,"components-thousand-resume-wrapper",{"token":[1],"isOpen":[1028,"is-open"],"conversationId":[1025,"conversation-id"],"botId":[1,"bot-id"],"optimizationType":[2,"optimization-type"],"customInputs":[16,"custom-inputs"],"defaultQuery":[1,"default-query"],"modalTitle":[1,"modal-title"],"icon":[1],"fullscreen":[4],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"isLoading":[32],"internalConversationId":[32],"error":[32],"activeTab":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}],[1,"components-voice-input-btn",{"disabled":[4],"maxRecordingTime":[2,"max-recording-time"],"locale":[1],"_status":[32],"_recordingTimeLeft":[32]}],[1,"pcm-virtual-chat-modal",{"token":[1],"isOpen":[1028,"is-open"],"zIndex":[1026,"z-index"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"countdownWarningTime":[2,"countdown-warning-time"],"fullscreen":[4],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"waitingTime":[2,"waiting-time"],"playbackRate":[2,"playback-rate"],"showEndInterviewButton":[4,"show-end-interview-button"],"customInputs":[1040,"custom-inputs"],"botId":[1,"bot-id"],"messages":[32],"isLoading":[32],"currentStreamingMessage":[32],"isLoadingHistory":[32],"isRecording":[32],"recordingStream":[32],"recordedBlob":[32],"mediaRecorder":[32],"recordingTimeLeft":[32],"showRecordingUI":[32],"recordingTimer":[32],"recordingStartTime":[32],"waitingToRecord":[32],"waitingTimer":[32],"waitingTimeLeft":[32],"currentQuestionNumber":[32],"showCountdownWarning":[32],"isUploadingVideo":[32],"digitalHumanVideoUrl":[32],"digitalHumanDefaultVideoUrl":[32],"virtualmanKey":[32],"isPlayingDigitalHumanVideo":[32],"digitalHumanVideoReady":[32],"digitalHumanOpeningContents":[32],"isPlayingWelcomeVideo":[32],"isGeneratingDigitalHumanVideo":[32],"pendingGeneratedVideoUrl":[32],"waitingForDigitalHuman":[32],"agentLogo":[32],"isTaskCompleted":[32],"deviceError":[32],"showConfirmModal":[32],"skipConfirmThisInterview":[32],"showCloseConfirmModal":[32],"showEndInterviewConfirmModal":[32],"isEndingInterview":[32],"isComponentActive":[32],"setComponentActive":[64]},null,{"token":["handleTokenChange"]}],[1,"components-position-selector",{"oemId":[1,"oem-id"],"multiple":[4],"selectedIds":[16,"selected-ids"],"pageSize":[2,"page-size"],"searchKeyword":[32],"currentSelectedIds":[32],"currentPage":[32],"totalCount":[32],"positionsList":[32],"loading":[32]},null,{"selectedIds":["handleSelectedIdsChange"],"oemId":["handleOemIdChange"]}],[1,"components-message",{"content":[1],"type":[1],"duration":[2],"visible":[32],"show":[64],"close":[64]}],[1,"components-upload",{"multiple":[4],"mobileUploadAble":[4,"mobile-upload-able"],"acceptFileSuffixList":[16,"accept-file-suffix-list"],"maxFileCount":[2,"max-file-count"],"maxFileSize":[2,"max-file-size"],"uploadHeaders":[16,"upload-headers"],"uploadParams":[16,"upload-params"],"uploadText":[1,"upload-text"],"defaultFileList":[16,"default-file-list"],"disabled":[4],"selectedFiles":[32],"getIsUploading":[64],"clearSelectedFiles":[64]}],[1,"components-mobile-input-btn",{"name":[1],"rows":[2],"maxLength":[2,"max-length"],"uploadHeaders":[16,"upload-headers"],"uploadParams":[16,"upload-params"],"QR_CODE_VALID_TIME":[32],"open":[32],"mobileUrl":[32],"setStartMobileUpload":[32],"startMobileUploadLoading":[32],"qrcodeStatus":[32],"value":[32],"expireTime":[32],"qrcodeUrl":[32],"cancelLoading":[32]}],[1,"components-mobile-upload-btn",{"multiple":[4],"acceptFileSuffixList":[16,"accept-file-suffix-list"],"maxFileCount":[2,"max-file-count"],"maxFileSize":[2,"max-file-size"],"uploadHeaders":[16,"upload-headers"],"uploadParams":[16,"upload-params"],"uploadAreaMode":[4,"upload-area-mode"],"disabled":[4],"defaultFileList":[16,"default-file-list"],"uploadText":[1,"upload-text"],"QR_CODE_VALID_TIME":[32],"open":[32],"mobileUrl":[32],"setStartMobileUpload":[32],"startMobileUploadLoading":[32],"qrcodeStatus":[32],"value":[32],"mobileUploadFiles":[32],"expireTime":[32],"qrcodeUrl":[32],"cancelLoading":[32],"getIsUploading":[64],"clearSelectedFiles":[64]}],[1,"pcm-app-chat-modal",{"locale":[1],"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[1026,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"showSaveJdButton":[4,"show-save-jd-button"],"saveJdButtonText":[1,"save-jd-button-text"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"countdownWarningTime":[2,"countdown-warning-time"],"waitingTime":[2,"waiting-time"],"closeResume":[16,"close-resume"],"fullscreen":[4],"interviewMode":[1,"interview-mode"],"customInputs":[1040,"custom-inputs"],"botId":[1,"bot-id"],"maxAudioRecordingTime":[2,"max-audio-recording-time"],"userAvatar":[1,"user-avatar"],"assistantAvatar":[1,"assistant-avatar"],"showCopyButton":[4,"show-copy-button"],"showFeedbackButtons":[4,"show-feedback-buttons"],"filePreviewMode":[1,"file-preview-mode"],"showWorkspaceHistory":[4,"show-workspace-history"],"digitalId":[1,"digital-id"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"strings":[32],"messages":[32],"isLoading":[32],"currentStreamingMessage":[32],"shouldAutoScroll":[32],"isLoadingHistory":[32],"isRecording":[32],"recordingStream":[32],"recordedBlob":[32],"mediaRecorder":[32],"recordingTimeLeft":[32],"showRecordingUI":[32],"recordingTimer":[32],"recordingStartTime":[32],"waitingToRecord":[32],"waitingTimer":[32],"waitingTimeLeft":[32],"currentQuestionNumber":[32],"showCountdownWarning":[32],"isUploadingVideo":[32],"isPlayingAudio":[32],"textAnswer":[32],"isSubmittingText":[32],"isRecordingAudio":[32],"audioRecorder":[32],"audioChunks":[32],"isConvertingAudio":[32],"audioRecordingTimeLeft":[32],"audioRecordingTimer":[32],"audioRecordingStartTime":[32],"agentLogo":[32],"isTaskCompleted":[32],"virtualmanKey":[32],"isDrawerOpen":[32],"previewUrl":[32],"previewFileName":[32],"previewContentType":[32],"previewContent":[32],"isUserScrolling":[32],"deviceError":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"showConfirmModal":[32],"skipConfirmThisInterview":[32],"showEndInterviewConfirmModal":[32],"isEndingInterview":[32],"lastCompletedAnswer":[32],"waitingForDigitalHuman":[32],"digitalHumanVideoReady":[32]},null,{"token":["handleTokenChange"]}],[1,"components-digital-human",{"digitalId":[1,"digital-id"],"speechText":[1,"speech-text"],"isStreaming":[4,"is-streaming"],"playbackRate":[2,"playback-rate"],"generatedVideoUrl":[32],"currentVideoUrl":[32],"isPlayingGenerated":[32],"dynamicDefaultVideoUrl":[32],"dynamicVirtualmanKey":[32]},null,{"isStreaming":["handleStreamingChange"]}],[1,"components-chat-message",{"message":[16],"showFeedbackButtons":[4,"show-feedback-buttons"],"botId":[1,"bot-id"],"locale":[1],"userAvatar":[1,"user-avatar"],"assistantAvatar":[1,"assistant-avatar"],"showCopyButton":[4,"show-copy-button"],"filePreviewMode":[1,"file-preview-mode"],"showAssistantMessage":[4,"show-assistant-message"],"showSaveJdButton":[4,"show-save-jd-button"],"saveJdButtonText":[1,"save-jd-button-text"],"strings":[32],"feedbackStatus":[32],"videoUrls":[32],"saveJdLoading":[32]}],[1,"components-drawer",{"isOpen":[1540,"is-open"],"drawerTitle":[1,"drawer-title"],"width":[1],"height":[1],"closable":[4],"maskClosable":[4,"mask-closable"],"zIndex":[32],"open":[64],"close":[64]},null,{"isOpen":["visibleChanged"]}],[1,"components-confirm-modal",{"isOpen":[1540,"is-open"],"modalTitle":[1,"modal-title"],"okText":[1,"ok-text"],"cancelText":[1,"cancel-text"],"okType":[1,"ok-type"],"maskClosable":[4,"mask-closable"],"mask":[4],"centered":[4],"zIndex":[32],"open":[64],"close":[64]},null,{"isOpen":["visibleChanged"]}]]],["p-b071ed75",[[1,"oem-mnms-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"waitingTime":[2,"waiting-time"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"enableVirtualHuman":[4,"enable-virtual-human"],"showEndInterviewButton":[4,"show-end-interview-button"],"playbackRate":[2,"playback-rate"],"interviewMode":[1,"interview-mode"],"showCopyButton":[4,"show-copy-button"],"showFeedbackButtons":[4,"show-feedback-buttons"],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"phoneNumber":[32],"verificationCode":[32],"isSendingCode":[32],"countdown":[32],"isVerifyingCode":[32],"showPositionSelector":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-b3ff7816",[[1,"oem-qgqjl-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"hideExportButton":[4,"hide-export-button"],"exportButtonText":[1,"export-button-text"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"showInputHistory":[4,"show-input-history"],"mobileUploadAble":[4,"mobile-upload-able"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"filePreviewMode":[1,"file-preview-mode"],"autoStart":[4,"auto-start"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"showIframe":[32],"isHistoryDrawerOpen":[32],"historyConversations":[32],"isLoadingConversations":[32],"historyConversationCursorStack":[32],"historyConversationPageIndex":[32],"hasMoreHistoryConversations":[32],"showPositionSelector":[32],"_internalConversationId":[32],"selectedOptimizationMode":[32],"selectedOutputType":[32],"jobDescription":[32],"isSubmitting":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-c2c3e968",[[1,"oem-jlpp-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32],"phoneNumber":[32],"verificationCode":[32],"isSendingCode":[32],"countdown":[32],"isVerifyingCode":[32],"showPositionSelector":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-66cb43c9",[[1,"oem-mnct-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"questionNumber":[1026,"question-number"],"canOutputAnalysis":[1028,"can-output-analysis"],"filePreviewMode":[1,"file-preview-mode"],"uploadedFileInfo":[32],"showChatModal":[32],"jobDescription":[32],"isSubmitting":[32],"showPositionSelector":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-1fdb05d7",[[1,"oem-htws-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"oemId":[1,"oem-id"],"filePreviewMode":[1,"file-preview-mode"],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"isSubmitting":[32],"phoneNumber":[32],"verificationCode":[32],"isSendingCode":[32],"countdown":[32],"isVerifyingCode":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-030c829e",[[1,"oem-jd-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"showWorkspaceHistory":[4,"show-workspace-history"],"showSaveJdButton":[4,"show-save-jd-button"],"saveJdButtonText":[1,"save-jd-button-text"],"filePreviewMode":[1,"file-preview-mode"],"showChatModal":[32],"inputMode":[32],"step":[32],"jobName":[32],"freeInputText":[32],"isLoading":[32],"isSubmitting":[32],"isVoiceInputActive":[32],"tagGroups":[32],"shuffledTagGroups":[32],"selectedAITags":[32],"selectedTags":[32],"jobDescription":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-646b6128",[[1,"oem-jlzz-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"isSuccess":[1028,"is-success"],"exportButtonText":[1,"export-button-text"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"defaultQuery":[1,"default-query"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"filePreviewMode":[1,"file-preview-mode"],"conversationId":[32],"isUploading":[32],"uploadedFileInfo":[32],"showChatModal":[32],"resumeType":[32],"isSubmitting":[32],"showIframe":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"],"isSuccess":["handleIsSuccessChange"]}]]],["p-4732c615",[[1,"pcm-jlsx-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"fullscreen":[4],"customInputs":[16,"custom-inputs"],"mobileUploadAble":[4,"mobile-upload-able"],"mobileJdInputAble":[4,"mobile-jd-input-able"],"showInputHistory":[4,"show-input-history"],"showWorkspaceHistory":[4,"show-workspace-history"],"showBatchExport":[4,"show-batch-export"],"taskId":[1026,"task-id"],"currentStep":[32],"jobDescription":[32],"jobTitle":[32],"evaluationCriteria":[32],"importantConditions":[32],"isSubmitting":[32],"isUploading":[32],"uploadedResumeRecords":[32],"filteredResumeRecords":[32],"selectedFiles":[32],"showJdDrawer":[32],"showCriteriaDrawer":[32],"currentTask":[32],"currentPage":[32],"pageSize":[32],"totalRecords":[32],"isAnalyzing":[32],"showPreviewDrawer":[32],"previewContent":[32],"previewTitle":[32],"previewType":[32],"previewUrl":[32],"activeDropdownId":[32],"deletingRecordId":[32],"sortOrder":[32],"isTaskHistoryDrawerOpen":[32],"historyTasks":[32],"isLoadingHistoryTasks":[32],"taskHistoryCurrentPage":[32],"taskHistoryPageSize":[32],"taskHistoryTotal":[32],"taskHistoryDrawerSource":[32],"isLoadingResumeList":[32],"isExportRecordsModalOpen":[32],"_uploadEnabled":[32],"exportAllPdfLoading":[32],"setUploadEnabled":[64]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-30b6a88d",[[1,"oem-cast-modal",{"isOpen":[1028,"is-open"],"zIndex":[2,"z-index"],"fullscreen":[4],"isNeedClose":[4,"is-need-close"],"_screen":[32],"_questionIndex":[32],"_phase":[32],"_mostDimension":[32],"_answers":[32],"_result":[32],"_showCloseConfirmModal":[32],"_hasAcceptedNotice":[32],"_showInstructions":[32]},null,{"isOpen":["handleIsOpenChange"]}]]],["p-f92d70a8",[[1,"pcm-hr-chat-modal",{"modalTitle":[1,"modal-title"],"token":[1],"isOpen":[1028,"is-open"],"icon":[1],"zIndex":[2,"z-index"],"isShowHeader":[4,"is-show-header"],"isNeedClose":[4,"is-need-close"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"totalQuestions":[2,"total-questions"],"maxRecordingTime":[2,"max-recording-time"],"countdownWarningTime":[2,"countdown-warning-time"],"toEmail":[1,"to-email"],"callbackUrl":[1,"callback-url"],"fullscreen":[4],"requireResume":[4,"require-resume"],"enableVoice":[4,"enable-voice"],"enableAudio":[4,"enable-audio"],"displayContentStatus":[4,"display-content-status"],"messages":[32],"currentAssistantMessage":[32],"isLoading":[32],"currentStreamingMessage":[32],"shouldAutoScroll":[32],"isLoadingHistory":[32],"selectedFile":[32],"isUploading":[32],"uploadedFileInfo":[32],"aiException":[32],"showInitialUpload":[32],"selectedJobCategory":[32],"jobCategories":[32],"dimensions":[32],"selectedDimensions":[32],"isRecording":[32],"recordingStream":[32],"recordedBlob":[32],"mediaRecorder":[32],"recordingTimeLeft":[32],"showRecordingUI":[32],"recordingTimer":[32],"recordingStartTime":[32],"waitingToRecord":[32],"waitingTimer":[32],"waitingTimeLeft":[32],"currentQuestionNumber":[32],"showCountdownWarning":[32],"isUploadingVideo":[32],"isPlayingAudio":[32],"audioUrl":[32],"isTaskCompleted":[32],"isUserScrolling":[32],"isPageFocused":[32],"isWindowVisible":[32]},null,{"token":["handleTokenChange"],"isOpen":["handleIsOpenChange"]}]]],["p-75efc351",[[1,"components-oem-virtual-chat-modal",{"token":[1],"isOpen":[1028,"is-open"],"zIndex":[1026,"z-index"],"conversationId":[1025,"conversation-id"],"defaultQuery":[1,"default-query"],"maxRecordingTime":[2,"max-recording-time"],"countdownWarningTime":[2,"countdown-warning-time"],"fullscreen":[4],"digitalId":[1,"digital-id"],"openingIndex":[2,"opening-index"],"waitingTime":[2,"waiting-time"],"playbackRate":[2,"playback-rate"],"showEndInterviewButton":[4,"show-end-interview-button"],"customInputs":[1040,"custom-inputs"],"botId":[1,"bot-id"],"messages":[32],"isLoading":[32],"currentStreamingMessage":[32],"isLoadingHistory":[32],"isRecording":[32],"recordingStream":[32],"recordedBlob":[32],"mediaRecorder":[32],"recordingTimeLeft":[32],"showRecordingUI":[32],"recordingTimer":[32],"recordingStartTime":[32],"waitingToRecord":[32],"waitingTimer":[32],"waitingTimeLeft":[32],"currentQuestionNumber":[32],"showCountdownWarning":[32],"isUploadingVideo":[32],"digitalHumanVideoUrl":[32],"digitalHumanDefaultVideoUrl":[32],"virtualmanKey":[32],"isPlayingDigitalHumanVideo":[32],"digitalHumanVideoReady":[32],"digitalHumanOpeningContents":[32],"isPlayingWelcomeVideo":[32],"isGeneratingDigitalHumanVideo":[32],"pendingGeneratedVideoUrl":[32],"waitingForDigitalHuman":[32],"agentLogo":[32],"isTaskCompleted":[32],"deviceError":[32],"showConfirmModal":[32],"skipConfirmThisInterview":[32],"showCloseConfirmModal":[32],"showEndInterviewConfirmModal":[32],"isEndingInterview":[32],"isComponentActive":[32],"setComponentActive":[64]},null,{"token":["handleTokenChange"]}]]]]'),e)}));
2
2
  //# sourceMappingURL=pcm-agents.esm.js.map
@@ -58,6 +58,10 @@ export declare class OemHtwsModal {
58
58
  * 是否显示工作区历史会话按钮
59
59
  */
60
60
  showWorkspaceHistory: boolean;
61
+ /**
62
+ * OEM ID,用于标识注册来源业务
63
+ */
64
+ oemId?: string;
61
65
  /**
62
66
  * 上传成功事件
63
67
  */
@@ -60,6 +60,10 @@ export declare class OemZyghModal {
60
60
  * 是否显示工作区历史会话按钮
61
61
  */
62
62
  showWorkspaceHistory: boolean;
63
+ /**
64
+ * OEM ID,用于标识注册来源业务
65
+ */
66
+ oemId?: string;
63
67
  /**
64
68
  * 上传成功事件
65
69
  */
@@ -527,6 +527,10 @@ export namespace Components {
527
527
  * 模态框标题
528
528
  */
529
529
  "modalTitle": string;
530
+ /**
531
+ * OEM ID,用于标识注册来源业务
532
+ */
533
+ "oemId"?: string;
530
534
  /**
531
535
  * 是否显示工作区历史会话按钮
532
536
  */
@@ -1072,6 +1076,10 @@ export namespace Components {
1072
1076
  * 模态框标题
1073
1077
  */
1074
1078
  "modalTitle": string;
1079
+ /**
1080
+ * OEM ID,用于标识注册来源业务
1081
+ */
1082
+ "oemId"?: string;
1075
1083
  /**
1076
1084
  * 是否显示工作区历史会话按钮
1077
1085
  */
@@ -4533,6 +4541,10 @@ declare namespace LocalJSX {
4533
4541
  * 模态框标题
4534
4542
  */
4535
4543
  "modalTitle"?: string;
4544
+ /**
4545
+ * OEM ID,用于标识注册来源业务
4546
+ */
4547
+ "oemId"?: string;
4536
4548
  /**
4537
4549
  * 新会话开始的回调,只会在一轮对话开始时触发一次
4538
4550
  */
@@ -5332,6 +5344,10 @@ declare namespace LocalJSX {
5332
5344
  * 模态框标题
5333
5345
  */
5334
5346
  "modalTitle"?: string;
5347
+ /**
5348
+ * OEM ID,用于标识注册来源业务
5349
+ */
5350
+ "oemId"?: string;
5335
5351
  /**
5336
5352
  * 新会话开始的回调,只会在一轮对话开始时触发一次
5337
5353
  */
@@ -214,9 +214,10 @@ export declare const sendSmsCode: (mobile: string, codeType?: number) => Promise
214
214
  * @param mobile 手机号
215
215
  * @param code 验证码
216
216
  * @param codeType 验证码类型,默认为0
217
+ * @param regSourceId 注册来源业务ID,OEM场景传入OEM ID
217
218
  * @returns Promise<HttpResponse> 校验结果
218
219
  */
219
- export declare const verifySmsCode: (mobile: string, code: string, codeType?: number) => Promise<HttpResponse>;
220
+ export declare const verifySmsCode: (mobile: string, code: string, codeType?: number, regSourceId?: string) => Promise<HttpResponse>;
220
221
  /**
221
222
  * 职位信息接口
222
223
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-agents",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Components of pcm-agents",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- {"file":"p-BUVNyxhI.js","mappings":";;AAAA;AAKA;AACO,MAAM,UAAU,GAAG,2CAA4C;AACzD,MAAA,UAAU,GAAG;;ACP1B;AAGO,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;IACxD,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI;AACtD,CAAA,CAAC;AAEF;AACa,MAAA,SAAS,GAAG;AACvB,IAAA,QAAQ,EAAE,MAAM,SAAS,CAAC,KAAK;AAC/B,IAAA,QAAQ,EAAE,CAAC,KAAa,KAAI;AAC1B,QAAA,SAAS,CAAC,KAAK,GAAG,KAAK;AACvB,QAAA,YAAY,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC;KAClD;IACD,UAAU,EAAE,MAAK;AACf,QAAA,SAAS,CAAC,KAAK,GAAG,IAAI;AACtB,QAAA,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC;;;AAIjD;AACA,QAAQ,CAAC,OAAO,EAAE,KAAK,IAAG;IACxB,IAAI,KAAK,EAAE;AACT,QAAA,YAAY,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC;;SAC5C;AACL,QAAA,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC;;AAEjD,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/utils/env.ts","store/auth.store.ts"],"sourcesContent":["// 默认 API 域名\r\nconst DEFAULT_API_DOMAIN = 'https://api.pincaimao.com/agents/platform';\r\nconst DEFAULT_PCM_DOMAIN = 'https://www.pincaimao.com';\r\n\r\n\r\n// 从环境变量获取 API 域名,如果未设置则使用默认值\r\nexport const API_DOMAIN = process.env.API_DOMAIN || DEFAULT_API_DOMAIN;\r\nexport const PCM_DOMAIN = process.env.PCM_DOMAIN || DEFAULT_PCM_DOMAIN;\r\n\r\n// 导出其他环境变量\r\nexport const ENV = {\r\n API_DOMAIN,\r\n PCM_DOMAIN,\r\n // 可以添加其他环境变量\r\n}; ","// src/store/auth.store.ts\r\nimport { createStore } from '@stencil/store';\r\n\r\nexport const { state: authState, onChange } = createStore({\r\n token: localStorage.getItem('pcm-sdk-auth-token') || null\r\n});\r\n\r\n// 添加一些辅助方法\r\nexport const authStore = {\r\n getToken: () => authState.token,\r\n setToken: (token: string) => {\r\n authState.token = token;\r\n localStorage.setItem('pcm-sdk-auth-token', token);\r\n },\r\n clearToken: () => {\r\n authState.token = null;\r\n localStorage.removeItem('pcm-sdk-auth-token');\r\n }\r\n};\r\n\r\n// 自动保存到localStorage\r\nonChange('token', value => {\r\n if (value) {\r\n localStorage.setItem('pcm-sdk-auth-token', value);\r\n } else {\r\n localStorage.removeItem('pcm-sdk-auth-token');\r\n }\r\n});"],"version":3}