pcm-agents 0.5.2 → 0.5.4
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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pcm-1zhanshi-mnms-modal_17.cjs.entry.js +48 -23
- package/dist/cjs/pcm-1zhanshi-mnms-modal_17.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-agents.cjs.js +1 -1
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +29 -21
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +25 -7
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js.map +1 -1
- package/dist/components/pcm-hr-chat-modal.js +29 -21
- package/dist/components/pcm-hr-chat-modal.js.map +1 -1
- package/dist/components/pcm-htws-modal.js +20 -3
- package/dist/components/pcm-htws-modal.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pcm-1zhanshi-mnms-modal_17.entry.js +48 -23
- package/dist/esm/pcm-1zhanshi-mnms-modal_17.entry.js.map +1 -1
- package/dist/esm/pcm-agents.js +1 -1
- package/dist/pcm-agents/{p-d19d8694.entry.js → p-23acdf3a.entry.js} +2 -2
- package/dist/pcm-agents/{p-d19d8694.entry.js.map → p-23acdf3a.entry.js.map} +1 -1
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/types/components/pcm-hr-chat-modal/pcm-hr-chat-modal.d.ts +0 -1
- package/dist/types/components/pcm-htws-modal/pcm-htws-modal.d.ts +2 -1
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
|
6
6
|
const defineCustomElements = async (win, options) => {
|
|
7
7
|
if (typeof window === 'undefined') return undefined;
|
|
8
8
|
await appGlobals.globalScripts();
|
|
9
|
-
return index.bootstrapLazy(JSON.parse("[[\"pcm-1zhanshi-mnms-modal_17.cjs\",[[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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"interviewMode\":[1,\"interview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32],\"inputMode\":[32],\"freeInputText\":[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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"showChatModal\":[32],\"inputMode\":[32],\"step\":[32],\"jobName\":[32],\"freeInputText\":[32],\"isLoading\":[32],\"isSubmitting\":[32],\"tagGroups\":[32],\"shuffledTagGroups\":[32],\"selectedAITags\":[32],\"selectedTags\":[32],\"jobDescription\":[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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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-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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32],\"selectedPlanType\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[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],\"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],\"isUserScrolling\":[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\":[1,\"employee-id\"],\"maxAudioRecordingTime\":[2,\"max-audio-recording-time\"],\"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]},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,\"pcm-app-chat-modal\",{\"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\"],\"defaultQuery\":[1,\"default-query\"],\"maxRecordingTime\":[2,\"max-recording-time\"],\"countdownWarningTime\":[2,\"countdown-warning-time\"],\"isControlByQuestionNumber\":[4,\"is-control-by-question-number\"],\"totalQuestions\":[2,\"total-questions\"],\"fullscreen\":[4],\"enableTTS\":[4,\"enable-t-t-s\"],\"enableVoice\":[4,\"enable-voice\"],\"interviewMode\":[1,\"interview-mode\"],\"customInputs\":[16,\"custom-inputs\"],\"botId\":[1,\"bot-id\"],\"maxAudioRecordingTime\":[2,\"max-audio-recording-time\"],\"userAvatar\":[1,\"user-avatar\"],\"assistantAvatar\":[1,\"assistant-avatar\"],\"showProgressBar\":[4,\"show-progress-bar\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"messages\":[32],\"currentAssistantMessage\":[32],\"isLoading\":[32],\"currentStreamingMessage\":[32],\"shouldAutoScroll\":[32],\"isLoadingHistory\":[32],\"isUploading\":[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],\"textAnswer\":[32],\"isSubmittingText\":[32],\"isRecordingAudio\":[32],\"audioRecorder\":[32],\"audioChunks\":[32],\"isConvertingAudio\":[32],\"audioRecordingTimeLeft\":[32],\"audioRecordingTimer\":[32],\"audioRecordingStartTime\":[32],\"agentLogo\":[32],\"isTaskCompleted\":[32],\"isDrawerOpen\":[32],\"previewUrl\":[32],\"previewFileName\":[32],\"previewContentType\":[32],\"previewContent\":[32],\"isUserScrolling\":[32]},null,{\"token\":[\"handleTokenChange\"]}],[1,\"pcm-drawer\",{\"isOpen\":[1540,\"is-open\"],\"drawerTitle\":[1,\"drawer-title\"],\"width\":[1],\"height\":[1],\"closable\":[4],\"maskClosable\":[4,\"mask-closable\"],\"mask\":[4],\"zIndex\":[32],\"open\":[64],\"close\":[64]},null,{\"isOpen\":[\"visibleChanged\"]}],[1,\"pcm-chat-message\",{\"message\":[16],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"botId\":[1,\"bot-id\"],\"userAvatar\":[1,\"user-avatar\"],\"assistantAvatar\":[1,\"assistant-avatar\"],\"showCopyButton\":[4,\"show-copy-button\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"feedbackStatus\":[32]}]]],[\"pcm-mnms-video-modal.cjs\",[[1,\"pcm-mnms-video-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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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\"]}]]],[\"pcm-mnms-zp-modal.cjs\",[[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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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\"]}]]]]"), options);
|
|
9
|
+
return index.bootstrapLazy(JSON.parse("[[\"pcm-1zhanshi-mnms-modal_17.cjs\",[[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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"interviewMode\":[1,\"interview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[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\":[1025,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32],\"inputMode\":[32],\"freeInputText\":[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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"showChatModal\":[32],\"inputMode\":[32],\"step\":[32],\"jobName\":[32],\"freeInputText\":[32],\"isLoading\":[32],\"isSubmitting\":[32],\"tagGroups\":[32],\"shuffledTagGroups\":[32],\"selectedAITags\":[32],\"selectedTags\":[32],\"jobDescription\":[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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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-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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32],\"selectedPlanType\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[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],\"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],\"isUserScrolling\":[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\":[1,\"employee-id\"],\"maxAudioRecordingTime\":[2,\"max-audio-recording-time\"],\"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]},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,\"pcm-app-chat-modal\",{\"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\"],\"defaultQuery\":[1,\"default-query\"],\"maxRecordingTime\":[2,\"max-recording-time\"],\"countdownWarningTime\":[2,\"countdown-warning-time\"],\"isControlByQuestionNumber\":[4,\"is-control-by-question-number\"],\"totalQuestions\":[2,\"total-questions\"],\"fullscreen\":[4],\"enableTTS\":[4,\"enable-t-t-s\"],\"enableVoice\":[4,\"enable-voice\"],\"interviewMode\":[1,\"interview-mode\"],\"customInputs\":[16,\"custom-inputs\"],\"botId\":[1,\"bot-id\"],\"maxAudioRecordingTime\":[2,\"max-audio-recording-time\"],\"userAvatar\":[1,\"user-avatar\"],\"assistantAvatar\":[1,\"assistant-avatar\"],\"showProgressBar\":[4,\"show-progress-bar\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"messages\":[32],\"currentAssistantMessage\":[32],\"isLoading\":[32],\"currentStreamingMessage\":[32],\"shouldAutoScroll\":[32],\"isLoadingHistory\":[32],\"isUploading\":[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],\"textAnswer\":[32],\"isSubmittingText\":[32],\"isRecordingAudio\":[32],\"audioRecorder\":[32],\"audioChunks\":[32],\"isConvertingAudio\":[32],\"audioRecordingTimeLeft\":[32],\"audioRecordingTimer\":[32],\"audioRecordingStartTime\":[32],\"agentLogo\":[32],\"isTaskCompleted\":[32],\"isDrawerOpen\":[32],\"previewUrl\":[32],\"previewFileName\":[32],\"previewContentType\":[32],\"previewContent\":[32],\"isUserScrolling\":[32]},null,{\"token\":[\"handleTokenChange\"]}],[1,\"pcm-drawer\",{\"isOpen\":[1540,\"is-open\"],\"drawerTitle\":[1,\"drawer-title\"],\"width\":[1],\"height\":[1],\"closable\":[4],\"maskClosable\":[4,\"mask-closable\"],\"mask\":[4],\"zIndex\":[32],\"open\":[64],\"close\":[64]},null,{\"isOpen\":[\"visibleChanged\"]}],[1,\"pcm-chat-message\",{\"message\":[16],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"botId\":[1,\"bot-id\"],\"userAvatar\":[1,\"user-avatar\"],\"assistantAvatar\":[1,\"assistant-avatar\"],\"showCopyButton\":[4,\"show-copy-button\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"feedbackStatus\":[32]}]]],[\"pcm-mnms-video-modal.cjs\",[[1,\"pcm-mnms-video-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\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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\"]}]]],[\"pcm-mnms-zp-modal.cjs\",[[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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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\"]}]]]]"), options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -5434,6 +5434,10 @@ const ChatHRModal = class {
|
|
|
5434
5434
|
setTimeout(() => {
|
|
5435
5435
|
this.shouldAutoScroll = true;
|
|
5436
5436
|
this.scrollToBottom();
|
|
5437
|
+
// 如果有会话ID,直接发送"下一题"请求
|
|
5438
|
+
if (this.conversationId) {
|
|
5439
|
+
this.sendMessageToAPI("下一题");
|
|
5440
|
+
}
|
|
5437
5441
|
}, 200);
|
|
5438
5442
|
}
|
|
5439
5443
|
}
|
|
@@ -5443,6 +5447,8 @@ const ChatHRModal = class {
|
|
|
5443
5447
|
await index$1.verifyApiKey(this.token);
|
|
5444
5448
|
if (this.conversationId) {
|
|
5445
5449
|
await this.loadHistoryMessages();
|
|
5450
|
+
// 如果有会话ID,直接跳过初始上传界面
|
|
5451
|
+
this.showInitialUpload = false;
|
|
5446
5452
|
}
|
|
5447
5453
|
}
|
|
5448
5454
|
}
|
|
@@ -5471,12 +5477,6 @@ const ChatHRModal = class {
|
|
|
5471
5477
|
alert('请至少选择一个关注模块');
|
|
5472
5478
|
return;
|
|
5473
5479
|
}
|
|
5474
|
-
// 不再显示欢迎确认对话框,因为已经在组件打开时显示了
|
|
5475
|
-
// 直接询问用户是否准备好开始面试
|
|
5476
|
-
const confirmed = confirm('如果您已做好准备请点击"确定"开始面试。');
|
|
5477
|
-
if (!confirmed) {
|
|
5478
|
-
return;
|
|
5479
|
-
}
|
|
5480
5480
|
// 修改文件上传逻辑
|
|
5481
5481
|
if (this.requireResume) {
|
|
5482
5482
|
await this.uploadFile();
|
|
@@ -5533,24 +5533,35 @@ const ChatHRModal = class {
|
|
|
5533
5533
|
let mediaRecorder;
|
|
5534
5534
|
try {
|
|
5535
5535
|
mediaRecorder = new MediaRecorder(stream, {
|
|
5536
|
-
mimeType: mimeType
|
|
5536
|
+
mimeType: mimeType,
|
|
5537
|
+
videoBitsPerSecond: 800000, // 800kbps 视频比特率限制
|
|
5538
|
+
audioBitsPerSecond: 64000 // 64kbps 音频比特率限制
|
|
5537
5539
|
});
|
|
5538
5540
|
}
|
|
5539
5541
|
catch (e) {
|
|
5540
5542
|
// 如果指定MIME类型失败,尝试使用默认设置
|
|
5541
5543
|
console.warn('指定的MIME类型不受支持,使用默认设置:', e);
|
|
5542
5544
|
try {
|
|
5543
|
-
mediaRecorder = new MediaRecorder(stream
|
|
5545
|
+
mediaRecorder = new MediaRecorder(stream, {
|
|
5546
|
+
videoBitsPerSecond: 800000, // 即使降级也保持比特率限制
|
|
5547
|
+
audioBitsPerSecond: 64000
|
|
5548
|
+
});
|
|
5544
5549
|
}
|
|
5545
5550
|
catch (recorderError) {
|
|
5546
|
-
//
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5551
|
+
// 最后的降级选项,不设置任何参数
|
|
5552
|
+
try {
|
|
5553
|
+
mediaRecorder = new MediaRecorder(stream);
|
|
5554
|
+
}
|
|
5555
|
+
catch (finalError) {
|
|
5556
|
+
// 通知父组件录制器创建失败
|
|
5557
|
+
this.recordingError.emit({
|
|
5558
|
+
type: 'recorder_creation_failed',
|
|
5559
|
+
message: '无法创建媒体录制器,您的浏览器可能不支持此功能',
|
|
5560
|
+
details: finalError
|
|
5561
|
+
});
|
|
5562
|
+
this.showRecordingUI = false;
|
|
5563
|
+
return;
|
|
5564
|
+
}
|
|
5554
5565
|
}
|
|
5555
5566
|
}
|
|
5556
5567
|
this.mediaRecorder = mediaRecorder;
|
|
@@ -5574,6 +5585,7 @@ const ChatHRModal = class {
|
|
|
5574
5585
|
// 根据实际使用的MIME类型创建Blob
|
|
5575
5586
|
const blobType = mimeType || 'video/mp4';
|
|
5576
5587
|
const blob = new Blob(chunks, { type: blobType });
|
|
5588
|
+
|
|
5577
5589
|
if (blob.size === 0) {
|
|
5578
5590
|
// 通知父组件录制的视频为空
|
|
5579
5591
|
this.recordingError.emit({
|
|
@@ -5762,7 +5774,7 @@ const ChatHRModal = class {
|
|
|
5762
5774
|
if (result) {
|
|
5763
5775
|
// 使用 FileUploadResponse 类型的字段
|
|
5764
5776
|
await this.saveVideoAnswer(result.cos_key);
|
|
5765
|
-
this.
|
|
5777
|
+
this.sendMessageToAPI("下一题");
|
|
5766
5778
|
}
|
|
5767
5779
|
else {
|
|
5768
5780
|
throw new Error('视频上传失败');
|
|
@@ -5804,10 +5816,6 @@ const ChatHRModal = class {
|
|
|
5804
5816
|
console.error('保存视频答案失败:', error);
|
|
5805
5817
|
}
|
|
5806
5818
|
}
|
|
5807
|
-
// 发送"下一题"请求
|
|
5808
|
-
sendNextQuestion() {
|
|
5809
|
-
this.sendMessageToAPI("下一题");
|
|
5810
|
-
}
|
|
5811
5819
|
/**
|
|
5812
5820
|
* 发送面试完成请求
|
|
5813
5821
|
*/
|
|
@@ -6025,6 +6033,7 @@ const HtwsModal = class {
|
|
|
6025
6033
|
fullscreen = false;
|
|
6026
6034
|
/**
|
|
6027
6035
|
* 自定义输入参数,传入customInputs.input时,会自动切换到自由输入模式
|
|
6036
|
+
* 支持对象或JSON字符串格式
|
|
6028
6037
|
*/
|
|
6029
6038
|
customInputs = {};
|
|
6030
6039
|
/**
|
|
@@ -6076,6 +6085,22 @@ const HtwsModal = class {
|
|
|
6076
6085
|
}
|
|
6077
6086
|
}
|
|
6078
6087
|
componentWillLoad() {
|
|
6088
|
+
// 处理customInputs,支持字符串或对象格式
|
|
6089
|
+
if (typeof this.customInputs === 'string') {
|
|
6090
|
+
try {
|
|
6091
|
+
this.customInputs = JSON.parse(this.customInputs);
|
|
6092
|
+
}
|
|
6093
|
+
catch (error) {
|
|
6094
|
+
console.error('解析customInputs字符串失败:', error);
|
|
6095
|
+
this.customInputs = {};
|
|
6096
|
+
config_store.ErrorEventBus.emitError({
|
|
6097
|
+
source: 'pcm-htws-modal[componentWillLoad]',
|
|
6098
|
+
error: error,
|
|
6099
|
+
message: 'customInputs参数格式错误',
|
|
6100
|
+
type: 'ui'
|
|
6101
|
+
});
|
|
6102
|
+
}
|
|
6103
|
+
}
|
|
6079
6104
|
// 将 zIndex 存入配置缓存
|
|
6080
6105
|
if (this.zIndex) {
|
|
6081
6106
|
config_store.configStore.setItem('modal-zIndex', this.zIndex);
|
|
@@ -6204,7 +6229,7 @@ const HtwsModal = class {
|
|
|
6204
6229
|
this.inputMode = 'upload'; // 重置为默认上传模式
|
|
6205
6230
|
}
|
|
6206
6231
|
else {
|
|
6207
|
-
if (this.customInputs && this.customInputs.input) {
|
|
6232
|
+
if (this.customInputs && typeof this.customInputs === 'object' && this.customInputs.input) {
|
|
6208
6233
|
// 如果有 input,直接切换到自由输入模式并填充内容
|
|
6209
6234
|
this.inputMode = 'free';
|
|
6210
6235
|
this.freeInputText = this.customInputs.input;
|
|
@@ -6254,7 +6279,7 @@ const HtwsModal = class {
|
|
|
6254
6279
|
(this.inputMode === 'free' && !this.freeInputText.trim()) ||
|
|
6255
6280
|
this.isUploading ||
|
|
6256
6281
|
this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))), index.h("input", { type: "file", class: "file-input", onChange: this.handleFileChange }))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isShowHeader, fullscreen: this.fullscreen, botId: "3022316191018882", conversationId: this.conversationId, defaultQuery: this.defaultQuery, enableVoice: false, filePreviewMode: this.filePreviewMode, customInputs: this.conversationId ? {} : {
|
|
6257
|
-
...this.customInputs,
|
|
6282
|
+
...(typeof this.customInputs === 'object' ? this.customInputs : {}),
|
|
6258
6283
|
file_url: this.inputMode === 'upload' ? this.uploadedFileInfo?.cos_key : undefined,
|
|
6259
6284
|
input: this.inputMode === 'free' ? this.freeInputText : undefined
|
|
6260
6285
|
}, interviewMode: "text", onModalClosed: this.handleClose, onStreamComplete: this.handleStreamComplete, onConversationStart: this.handleConversationStart, onInterviewComplete: this.handleInterviewComplete }))))));
|