pcm-agents 0.6.11 → 0.6.13
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/error-event-J_ZWIqWF.js +33 -0
- package/dist/cjs/error-event-J_ZWIqWF.js.map +1 -0
- package/dist/cjs/{index-CvEfNyEj.js → index-CRlt8Nv6.js} +53 -3
- package/dist/cjs/index-CRlt8Nv6.js.map +1 -0
- package/dist/cjs/index-WNdOTXnX.js +11068 -0
- package/dist/cjs/index-WNdOTXnX.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/message.service-DGUsA-FY.js +135 -0
- package/dist/cjs/message.service-DGUsA-FY.js.map +1 -0
- package/dist/cjs/{pcm-1zhanshi-mnms-modal_17.cjs.entry.js → pcm-1zhanshi-mnms-modal_21.cjs.entry.js} +3276 -216
- package/dist/cjs/pcm-1zhanshi-mnms-modal_21.cjs.entry.js.map +1 -0
- package/dist/cjs/pcm-agents.cjs.js +4 -6
- package/dist/cjs/pcm-agents.cjs.js.map +1 -1
- package/dist/cjs/pcm-message.cjs.entry.js +3 -3
- package/dist/cjs/pcm-message.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-message.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-mnms-video-modal.cjs.entry.js +8 -8
- package/dist/cjs/pcm-mnms-video-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-mnms-video-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-mnms-zp-modal.cjs.entry.js +29 -86
- package/dist/cjs/pcm-mnms-zp-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-mnms-zp-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/{sentry-reporter-BWFtw_aT.js → sentry-reporter-tpI4WdkE.js} +12 -40
- package/dist/cjs/sentry-reporter-tpI4WdkE.js.map +1 -0
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/pcm-1zhanshi-mnms-modal/pcm-1zhanshi-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.css +986 -986
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +7 -9
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-button/pcm-button.css +199 -199
- package/dist/collection/components/pcm-button/pcm-button.js +6 -6
- package/dist/collection/components/pcm-button/pcm-button.js.map +1 -1
- package/dist/collection/components/pcm-card/pcm-card.css +259 -259
- package/dist/collection/components/pcm-card/pcm-card.js +1 -1
- package/dist/collection/components/pcm-card/pcm-card.js.map +1 -1
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.css +554 -554
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +3 -3
- package/dist/collection/components/pcm-chat-message/pcm-chat-message.js.map +1 -1
- package/dist/collection/components/pcm-drawer/pcm-drawer.css +102 -102
- package/dist/collection/components/pcm-drawer/pcm-drawer.js +1 -1
- package/dist/collection/components/pcm-drawer/pcm-drawer.js.map +1 -1
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.css +854 -854
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +5 -7
- 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.css +95 -95
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js.map +1 -1
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js +2 -2
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js.map +1 -1
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.css +312 -312
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js +1 -1
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js.map +1 -1
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js +2 -2
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +1 -1
- package/dist/collection/components/pcm-message/pcm-message.css +64 -64
- package/dist/collection/components/pcm-message/pcm-message.js +2 -2
- package/dist/collection/components/pcm-message/pcm-message.js.map +1 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.css +1 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js +2 -2
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +67 -84
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-video-modal/pcm-mnms-video-modal.js +2 -2
- package/dist/collection/components/pcm-mnms-video-modal/pcm-mnms-video-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js +67 -84
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.css +140 -0
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js +307 -0
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js.map +1 -0
- package/dist/collection/components/pcm-mobile-input-btn/uploadNumberSDK.js +25 -0
- package/dist/collection/components/pcm-mobile-input-btn/uploadNumberSDK.js.map +1 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.css +127 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js +350 -0
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js.map +1 -0
- package/dist/collection/components/pcm-mobile-upload-btn/uploadNumberSDK.js +25 -0
- package/dist/collection/components/pcm-mobile-upload-btn/uploadNumberSDK.js.map +1 -0
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js +2 -2
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js.map +1 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.css +1 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js +2 -2
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js.map +1 -1
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.css +0 -0
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.js +106 -0
- package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.js.map +1 -0
- package/dist/collection/components/pcm-upload/pcm-upload.css +0 -0
- package/dist/collection/components/pcm-upload/pcm-upload.js +408 -0
- package/dist/collection/components/pcm-upload/pcm-upload.js.map +1 -0
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.css +969 -969
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js +3 -5
- package/dist/collection/components/pcm-zsk-chat-modal/pcm-zsk-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.css +68 -68
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +4 -4
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -1
- package/dist/collection/global/global.css +401 -398
- package/dist/collection/global/markdown.css +1233 -1233
- package/dist/collection/global/message.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/interfaces/chat.js.map +1 -1
- package/dist/collection/interfaces/events.js.map +1 -1
- package/dist/collection/services/message.service.js.map +1 -1
- package/dist/collection/utils/env.js +3 -0
- package/dist/collection/utils/env.js.map +1 -1
- package/dist/collection/utils/error-event.js.map +1 -1
- package/dist/collection/utils/init.js.map +1 -1
- package/dist/collection/utils/sentry-reporter.js.map +1 -1
- package/dist/collection/utils/utils.js +48 -24
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +3 -5482
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-AYWZDCn8.js → p-B0WOTw9J.js} +51 -4
- package/dist/components/p-B0WOTw9J.js.map +1 -0
- package/dist/components/{p-DUQ46MUh.js → p-BGXbWUJg.js} +3 -3
- package/dist/components/{p-DUQ46MUh.js.map → p-BGXbWUJg.js.map} +1 -1
- package/dist/{esm/sentry-reporter-BFBS363a.js → components/p-BW3r6Lrf.js} +5 -32
- package/dist/components/p-BW3r6Lrf.js.map +1 -0
- package/dist/{esm/app-globals-Chti62re.js → components/p-BdiUKin5.js} +9619 -4296
- package/dist/components/p-BdiUKin5.js.map +1 -0
- package/dist/components/{p-FjtoYPVY.js → p-BywzltXy.js} +10 -9
- package/dist/components/p-BywzltXy.js.map +1 -0
- package/dist/components/p-C2OsjtRx.js +208 -0
- package/dist/components/p-C2OsjtRx.js.map +1 -0
- package/dist/components/{p-D2Z8casl.js → p-CuIvbaWY.js} +5 -5
- package/dist/components/p-CuIvbaWY.js.map +1 -0
- package/dist/components/p-D0ZMoyH8.js +251 -0
- package/dist/components/p-D0ZMoyH8.js.map +1 -0
- package/dist/components/{p-CjbFHLT7.js → p-De3VHEUn.js} +7 -71
- package/dist/components/p-De3VHEUn.js.map +1 -0
- package/dist/components/p-Dv8qvK0w.js +2646 -0
- package/dist/components/p-Dv8qvK0w.js.map +1 -0
- package/dist/components/p-RD3mwuBX.js +226 -0
- package/dist/components/p-RD3mwuBX.js.map +1 -0
- package/dist/components/p-njngFX_n.js +80 -0
- package/dist/components/p-njngFX_n.js.map +1 -0
- package/dist/components/pcm-1zhanshi-mnms-modal.js +7 -7
- package/dist/components/pcm-1zhanshi-mnms-modal.js.map +1 -1
- package/dist/components/pcm-app-chat-modal.js +1 -1
- package/dist/components/pcm-button.js +2 -2
- package/dist/components/pcm-button.js.map +1 -1
- package/dist/components/pcm-card.js +3 -3
- package/dist/components/pcm-card.js.map +1 -1
- package/dist/components/pcm-chat-message.js +1 -1
- package/dist/components/pcm-drawer.js +1 -1
- package/dist/components/pcm-hr-chat-modal.js +5 -4
- package/dist/components/pcm-hr-chat-modal.js.map +1 -1
- package/dist/components/pcm-htws-modal.js +8 -7
- package/dist/components/pcm-htws-modal.js.map +1 -1
- package/dist/components/pcm-hyzj-modal.js +8 -7
- package/dist/components/pcm-hyzj-modal.js.map +1 -1
- package/dist/components/pcm-jd-modal.js +8 -7
- package/dist/components/pcm-jd-modal.js.map +1 -1
- package/dist/components/pcm-jlpp-modal.js +8 -7
- package/dist/components/pcm-jlpp-modal.js.map +1 -1
- package/dist/components/pcm-message.js +3 -3
- package/dist/components/pcm-message.js.map +1 -1
- package/dist/components/pcm-mnct-modal.js +8 -7
- package/dist/components/pcm-mnct-modal.js.map +1 -1
- package/dist/components/pcm-mnms-modal.js +60 -90
- package/dist/components/pcm-mnms-modal.js.map +1 -1
- package/dist/components/pcm-mnms-video-modal.js +8 -7
- package/dist/components/pcm-mnms-video-modal.js.map +1 -1
- package/dist/components/pcm-mnms-zp-modal.js +60 -90
- package/dist/components/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/components/pcm-mobile-input-btn.d.ts +11 -0
- package/dist/components/pcm-mobile-input-btn.js +9 -0
- package/dist/components/pcm-mobile-input-btn.js.map +1 -0
- package/dist/components/pcm-mobile-upload-btn.d.ts +11 -0
- package/dist/components/pcm-mobile-upload-btn.js +9 -0
- package/dist/components/pcm-mobile-upload-btn.js.map +1 -0
- package/dist/components/pcm-msbg-modal.js +8 -7
- package/dist/components/pcm-msbg-modal.js.map +1 -1
- package/dist/components/pcm-qgqjl-modal.js +8 -7
- package/dist/components/pcm-qgqjl-modal.js.map +1 -1
- package/dist/components/pcm-time-count-down.d.ts +11 -0
- package/dist/components/pcm-time-count-down.js +9 -0
- package/dist/components/pcm-time-count-down.js.map +1 -0
- package/dist/components/pcm-upload.d.ts +11 -0
- package/dist/components/pcm-upload.js +9 -0
- package/dist/components/pcm-upload.js.map +1 -0
- package/dist/components/pcm-zsk-chat-modal.js +4 -4
- package/dist/components/pcm-zsk-chat-modal.js.map +1 -1
- package/dist/components/pcm-zygh-modal.js +8 -7
- package/dist/components/pcm-zygh-modal.js.map +1 -1
- package/dist/esm/error-event-C0FYX2-Z.js +31 -0
- package/dist/esm/error-event-C0FYX2-Z.js.map +1 -0
- package/dist/esm/{index-GyOE8SlD.js → index-BnNqOUZf.js} +51 -4
- package/dist/esm/index-BnNqOUZf.js.map +1 -0
- package/dist/esm/index-BuVfV0zo.js +11035 -0
- package/dist/esm/index-BuVfV0zo.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -5
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/message.service-DXVhHj6-.js +133 -0
- package/dist/esm/message.service-DXVhHj6-.js.map +1 -0
- package/dist/esm/{pcm-1zhanshi-mnms-modal_17.entry.js → pcm-1zhanshi-mnms-modal_21.entry.js} +3225 -169
- package/dist/esm/pcm-1zhanshi-mnms-modal_21.entry.js.map +1 -0
- package/dist/esm/pcm-agents.js +4 -6
- package/dist/esm/pcm-agents.js.map +1 -1
- package/dist/esm/pcm-message.entry.js +3 -3
- package/dist/esm/pcm-message.entry.js.map +1 -1
- package/dist/esm/pcm-mnms-video-modal.entry.js +5 -5
- package/dist/esm/pcm-mnms-video-modal.entry.js.map +1 -1
- package/dist/esm/pcm-mnms-zp-modal.entry.js +28 -85
- package/dist/esm/pcm-mnms-zp-modal.entry.js.map +1 -1
- package/dist/esm/sentry-reporter-CYzy4_8O.js +70 -0
- package/dist/esm/sentry-reporter-CYzy4_8O.js.map +1 -0
- package/dist/pcm-agents/index.esm.js +1 -1
- package/dist/pcm-agents/loader.esm.js.map +1 -1
- package/dist/pcm-agents/p-18a06873.entry.js +2 -0
- package/dist/pcm-agents/p-18a06873.entry.js.map +1 -0
- package/dist/pcm-agents/p-47e2e1d0.entry.js +2 -0
- package/dist/pcm-agents/p-47e2e1d0.entry.js.map +1 -0
- package/dist/pcm-agents/{p-3608c0c6.entry.js → p-7a582f00.entry.js} +2 -2
- package/dist/pcm-agents/p-7a582f00.entry.js.map +1 -0
- package/dist/pcm-agents/p-BhFnI70g.js +2 -0
- package/dist/pcm-agents/p-BhFnI70g.js.map +1 -0
- package/dist/pcm-agents/p-BuVfV0zo.js +3 -0
- package/dist/pcm-agents/p-BuVfV0zo.js.map +1 -0
- package/dist/pcm-agents/p-C0FYX2-Z.js +2 -0
- package/dist/pcm-agents/p-C0FYX2-Z.js.map +1 -0
- package/dist/pcm-agents/p-DXVhHj6-.js +2 -0
- package/dist/pcm-agents/p-DXVhHj6-.js.map +1 -0
- package/dist/pcm-agents/p-DkeaAFic.js +2 -0
- package/dist/pcm-agents/p-DkeaAFic.js.map +1 -0
- package/dist/pcm-agents/p-f5f96853.entry.js +245 -0
- package/dist/pcm-agents/p-f5f96853.entry.js.map +1 -0
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/pcm-agents/pcm-agents.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-message.entry.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-mnms-video-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-mnms-zp-modal.entry.esm.js.map +1 -1
- package/dist/store/auth.store.js.map +1 -1
- package/dist/store/config.store.js.map +1 -1
- package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +9 -4
- package/dist/types/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.d.ts +9 -4
- package/dist/types/components/pcm-mobile-input-btn/pcm-mobile-input-btn.d.ts +36 -0
- package/dist/types/components/pcm-mobile-input-btn/uploadNumberSDK.d.ts +9 -0
- package/dist/types/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.d.ts +44 -0
- package/dist/types/components/pcm-mobile-upload-btn/uploadNumberSDK.d.ts +9 -0
- package/dist/types/components/pcm-time-count-down/pcm-time-count-down.d.ts +15 -0
- package/dist/types/components/pcm-upload/pcm-upload.d.ts +54 -0
- package/dist/types/components/pcm-upload/type.d.ts +4 -0
- package/dist/types/components.d.ts +798 -30
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/env.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +30 -12
- package/package.json +70 -69
- package/dist/cjs/app-globals-BIO4q6tX.js +0 -5487
- package/dist/cjs/app-globals-BIO4q6tX.js.map +0 -1
- package/dist/cjs/exports-Dc-pQh4A.js +0 -4087
- package/dist/cjs/exports-Dc-pQh4A.js.map +0 -1
- package/dist/cjs/index-C_qhED9Z.js +0 -1538
- package/dist/cjs/index-C_qhED9Z.js.map +0 -1
- package/dist/cjs/index-CvEfNyEj.js.map +0 -1
- package/dist/cjs/pcm-1zhanshi-mnms-modal_17.cjs.entry.js.map +0 -1
- package/dist/cjs/sentry-reporter-BWFtw_aT.js.map +0 -1
- package/dist/components/p-75J0r72D.js +0 -4017
- package/dist/components/p-75J0r72D.js.map +0 -1
- package/dist/components/p-AYWZDCn8.js.map +0 -1
- package/dist/components/p-CR7WLzmM.js +0 -1303
- package/dist/components/p-CR7WLzmM.js.map +0 -1
- package/dist/components/p-CjbFHLT7.js.map +0 -1
- package/dist/components/p-D2Z8casl.js.map +0 -1
- package/dist/components/p-FjtoYPVY.js.map +0 -1
- package/dist/esm/app-globals-Chti62re.js.map +0 -1
- package/dist/esm/exports-Bs-zO1WZ.js +0 -4017
- package/dist/esm/exports-Bs-zO1WZ.js.map +0 -1
- package/dist/esm/index-Bq0K-WqZ.js +0 -1528
- package/dist/esm/index-Bq0K-WqZ.js.map +0 -1
- package/dist/esm/index-GyOE8SlD.js.map +0 -1
- package/dist/esm/pcm-1zhanshi-mnms-modal_17.entry.js.map +0 -1
- package/dist/esm/sentry-reporter-BFBS363a.js.map +0 -1
- package/dist/pcm-agents/p-2Gpw8rvH.js +0 -2
- package/dist/pcm-agents/p-2Gpw8rvH.js.map +0 -1
- package/dist/pcm-agents/p-3608c0c6.entry.js.map +0 -1
- package/dist/pcm-agents/p-60d7a0b0.entry.js +0 -2
- package/dist/pcm-agents/p-60d7a0b0.entry.js.map +0 -1
- package/dist/pcm-agents/p-9e6efc2d.entry.js +0 -2
- package/dist/pcm-agents/p-9e6efc2d.entry.js.map +0 -1
- package/dist/pcm-agents/p-BUV0S8Cc.js +0 -2
- package/dist/pcm-agents/p-BUV0S8Cc.js.map +0 -1
- package/dist/pcm-agents/p-Bq0K-WqZ.js +0 -3
- package/dist/pcm-agents/p-Bq0K-WqZ.js.map +0 -1
- package/dist/pcm-agents/p-Bs-zO1WZ.js +0 -2
- package/dist/pcm-agents/p-Bs-zO1WZ.js.map +0 -1
- package/dist/pcm-agents/p-CeRTfvY9.js +0 -2
- package/dist/pcm-agents/p-CeRTfvY9.js.map +0 -1
- package/dist/pcm-agents/p-e6c87a78.entry.js +0 -2
- package/dist/pcm-agents/p-e6c87a78.entry.js.map +0 -1
- /package/dist/types/{code/agents-sdk → Users/debugksir/Documents/pcm/sdk}/packages/pcm-agents/.stencil/store/auth.store.d.ts +0 -0
- /package/dist/types/{code/agents-sdk → Users/debugksir/Documents/pcm/sdk}/packages/pcm-agents/.stencil/store/config.store.d.ts +0 -0
package/dist/cjs/index.cjs.js
CHANGED
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var appGlobals = require('./app-globals-BIO4q6tX.js');
|
|
5
|
-
require('./exports-Dc-pQh4A.js');
|
|
3
|
+
var index = require('./index-WNdOTXnX.js');
|
|
6
4
|
|
|
7
5
|
const defineCustomElements = async (win, options) => {
|
|
8
6
|
if (typeof window === 'undefined') return undefined;
|
|
9
|
-
await
|
|
10
|
-
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\"],\"maxRecordingTime\":[2,\"max-recording-time\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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],\"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\"]}],[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\"],\"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\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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],\"deviceError\":[32],\"isHistoryDrawerOpen\":[32],\"historyConversations\":[32],\"isLoadingConversations\":[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],\"videoUrls\":[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\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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-message.cjs\",[[1,\"pcm-message\",{\"content\":[1],\"type\":[1],\"duration\":[2],\"visible\":[32],\"show\":[64],\"close\":[64]}]]]]"), options);
|
|
7
|
+
await index.globalScripts();
|
|
8
|
+
return index.bootstrapLazy(JSON.parse("[[\"pcm-1zhanshi-mnms-modal_21.cjs\",[[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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"mobileJdInputAble\":[4,\"mobile-jd-input-able\"],\"mobileUploadAble\":[4,\"mobile-upload-able\"],\"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-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\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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],\"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\"]}],[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-upload\",{\"multiple\":[4],\"mobileUploadAble\":[4,\"mobile-upload-able\"],\"labelText\":[1,\"label-text\"],\"acceptFileSuffixList\":[16,\"accept-file-suffix-list\"],\"maxFileCount\":[2,\"max-file-count\"],\"maxFileSize\":[2,\"max-file-size\"],\"uploadHeaders\":[16,\"upload-headers\"],\"uploadParams\":[16,\"upload-params\"],\"selectedFiles\":[32],\"getIsUploading\":[64]}],[1,\"pcm-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],\"qrcodeUrl\":[32],\"cancelLoading\":[32]}],[1,\"pcm-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\"],\"QR_CODE_VALID_TIME\":[32],\"open\":[32],\"mobileUrl\":[32],\"setStartMobileUpload\":[32],\"startMobileUploadLoading\":[32],\"qrcodeStatus\":[32],\"value\":[32],\"qrcodeUrl\":[32],\"cancelLoading\":[32]}],[1,\"pcm-time-count-down\",{\"time\":[2],\"currentTime\":[32]},null,{\"currentTime\":[\"watchStateHandler\"]}],[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\"],\"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\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"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],\"deviceError\":[32],\"isHistoryDrawerOpen\":[32],\"historyConversations\":[32],\"isLoadingConversations\":[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],\"videoUrls\":[32]}]]],[\"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\"],\"showWorkspaceHistory\":[4,\"show-workspace-history\"],\"mobileJdInputAble\":[4,\"mobile-jd-input-able\"],\"mobileUploadAble\":[4,\"mobile-upload-able\"],\"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-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\"],\"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-message.cjs\",[[1,\"pcm-message\",{\"content\":[1],\"type\":[1],\"duration\":[2],\"visible\":[32],\"show\":[64],\"close\":[64]}]]]]"), options);
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
exports.setNonce = index.setNonce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.cjs.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":["globalScripts","bootstrapLazy"],"mappings":"
|
|
1
|
+
{"version":3,"file":"loader.cjs.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":["globalScripts","bootstrapLazy"],"mappings":";;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAMA,mBAAa,EAAE;AACvB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;;"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
class MessageService {
|
|
4
|
+
_container = null;
|
|
5
|
+
_instances = new Map();
|
|
6
|
+
_maxCount = 2; // 最大同时显示数量
|
|
7
|
+
_idCounter = 0;
|
|
8
|
+
getContainer() {
|
|
9
|
+
if (!this._container) {
|
|
10
|
+
this._container = document.createElement('div');
|
|
11
|
+
this._container.className = 'pcm-message-container';
|
|
12
|
+
document.body.appendChild(this._container);
|
|
13
|
+
}
|
|
14
|
+
return this._container;
|
|
15
|
+
}
|
|
16
|
+
generateId() {
|
|
17
|
+
return `pcm-message-${++this._idCounter}`;
|
|
18
|
+
}
|
|
19
|
+
getMessageKey(options) {
|
|
20
|
+
// 如果提供了key,使用key;否则使用content+type作为key
|
|
21
|
+
return options.key || `${options.content}-${options.type}`;
|
|
22
|
+
}
|
|
23
|
+
removeOldestMessage() {
|
|
24
|
+
if (this._instances.size >= this._maxCount) {
|
|
25
|
+
const firstKey = this._instances.keys().next().value;
|
|
26
|
+
if (firstKey) {
|
|
27
|
+
this.removeMessage(firstKey);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
removeMessage(key) {
|
|
32
|
+
const instance = this._instances.get(key);
|
|
33
|
+
if (instance) {
|
|
34
|
+
// 清除定时器
|
|
35
|
+
if (instance.timer) {
|
|
36
|
+
clearTimeout(instance.timer);
|
|
37
|
+
}
|
|
38
|
+
// 移除DOM元素
|
|
39
|
+
if (instance.element && instance.element.parentNode) {
|
|
40
|
+
instance.element.parentNode.removeChild(instance.element);
|
|
41
|
+
}
|
|
42
|
+
// 从实例映射中移除
|
|
43
|
+
this._instances.delete(key);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
create(options) {
|
|
47
|
+
const messageKey = this.getMessageKey(options);
|
|
48
|
+
// 如果相同key的消息已存在,先移除
|
|
49
|
+
if (this._instances.has(messageKey)) {
|
|
50
|
+
this.removeMessage(messageKey);
|
|
51
|
+
}
|
|
52
|
+
// 检查数量限制
|
|
53
|
+
this.removeOldestMessage();
|
|
54
|
+
const messageElement = document.createElement('pcm-message');
|
|
55
|
+
messageElement.setAttribute('content', options.content);
|
|
56
|
+
if (options.type) {
|
|
57
|
+
messageElement.setAttribute('type', options.type);
|
|
58
|
+
}
|
|
59
|
+
if (options.duration !== undefined) {
|
|
60
|
+
messageElement.setAttribute('duration', options.duration.toString());
|
|
61
|
+
}
|
|
62
|
+
const container = this.getContainer();
|
|
63
|
+
container.appendChild(messageElement);
|
|
64
|
+
// 创建实例记录
|
|
65
|
+
const id = this.generateId();
|
|
66
|
+
const instance = {
|
|
67
|
+
id,
|
|
68
|
+
element: messageElement,
|
|
69
|
+
options: { ...options }
|
|
70
|
+
};
|
|
71
|
+
// 设置自动移除定时器
|
|
72
|
+
const duration = options.duration ?? 3000;
|
|
73
|
+
if (duration > 0) {
|
|
74
|
+
instance.timer = window.setTimeout(() => {
|
|
75
|
+
this.removeMessage(messageKey);
|
|
76
|
+
}, duration);
|
|
77
|
+
}
|
|
78
|
+
// 保存实例
|
|
79
|
+
this._instances.set(messageKey, instance);
|
|
80
|
+
return messageElement;
|
|
81
|
+
}
|
|
82
|
+
success(content, duration) {
|
|
83
|
+
const options = typeof content === 'string'
|
|
84
|
+
? { content, type: 'success', duration }
|
|
85
|
+
: { ...content, type: 'success' };
|
|
86
|
+
this.create(options);
|
|
87
|
+
}
|
|
88
|
+
error(content, duration) {
|
|
89
|
+
const options = typeof content === 'string'
|
|
90
|
+
? { content, type: 'error', duration }
|
|
91
|
+
: { ...content, type: 'error' };
|
|
92
|
+
this.create(options);
|
|
93
|
+
}
|
|
94
|
+
info(content, duration) {
|
|
95
|
+
const options = typeof content === 'string'
|
|
96
|
+
? { content, type: 'info', duration }
|
|
97
|
+
: { ...content, type: 'info' };
|
|
98
|
+
this.create(options);
|
|
99
|
+
}
|
|
100
|
+
warning(content, duration) {
|
|
101
|
+
const options = typeof content === 'string'
|
|
102
|
+
? { content, type: 'warning', duration }
|
|
103
|
+
: { ...content, type: 'warning' };
|
|
104
|
+
this.create(options);
|
|
105
|
+
}
|
|
106
|
+
// 清除所有消息
|
|
107
|
+
clear() {
|
|
108
|
+
this._instances.forEach((_, key) => {
|
|
109
|
+
this.removeMessage(key);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
// 清除指定key的消息
|
|
113
|
+
remove(key) {
|
|
114
|
+
this.removeMessage(key);
|
|
115
|
+
}
|
|
116
|
+
// 设置最大显示数量
|
|
117
|
+
setMaxCount(count) {
|
|
118
|
+
this._maxCount = Math.max(1, count);
|
|
119
|
+
}
|
|
120
|
+
// 销毁服务(清理资源)
|
|
121
|
+
destroy() {
|
|
122
|
+
this.clear();
|
|
123
|
+
if (this._container && this._container.parentNode) {
|
|
124
|
+
this._container.parentNode.removeChild(this._container);
|
|
125
|
+
this._container = null;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// 创建单例实例
|
|
130
|
+
const Message = new MessageService();
|
|
131
|
+
|
|
132
|
+
exports.Message = Message;
|
|
133
|
+
//# sourceMappingURL=message.service-DGUsA-FY.js.map
|
|
134
|
+
|
|
135
|
+
//# sourceMappingURL=message.service-DGUsA-FY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.service-DGUsA-FY.js","sources":["src/services/message.service.ts"],"sourcesContent":["export interface MessageOptions {\n content: string;\n type?: 'success' | 'error' | 'info' | 'warning';\n duration?: number;\n key?: string; // 消息唯一标识\n}\n\ninterface MessageInstance {\n id: string;\n element: HTMLElement;\n timer?: number;\n options: MessageOptions;\n}\n\nclass MessageService {\n private _container: HTMLDivElement | null = null;\n private _instances: Map<string, MessageInstance> = new Map();\n private _maxCount: number = 2; // 最大同时显示数量\n private _idCounter: number = 0;\n\n private getContainer(): HTMLDivElement {\n if (!this._container) {\n this._container = document.createElement('div');\n this._container.className = 'pcm-message-container';\n document.body.appendChild(this._container);\n }\n return this._container;\n }\n\n private generateId(): string {\n return `pcm-message-${++this._idCounter}`;\n }\n\n private getMessageKey(options: MessageOptions): string {\n // 如果提供了key,使用key;否则使用content+type作为key\n return options.key || `${options.content}-${options.type}`;\n }\n\n private removeOldestMessage(): void {\n if (this._instances.size >= this._maxCount) {\n const firstKey = this._instances.keys().next().value;\n if (firstKey) {\n this.removeMessage(firstKey);\n }\n }\n }\n\n private removeMessage(key: string): void {\n const instance = this._instances.get(key);\n if (instance) {\n // 清除定时器\n if (instance.timer) {\n clearTimeout(instance.timer);\n }\n \n // 移除DOM元素\n if (instance.element && instance.element.parentNode) {\n instance.element.parentNode.removeChild(instance.element);\n }\n \n // 从实例映射中移除\n this._instances.delete(key);\n }\n }\n\n private create(options: MessageOptions): HTMLElement {\n const messageKey = this.getMessageKey(options);\n \n // 如果相同key的消息已存在,先移除\n if (this._instances.has(messageKey)) {\n this.removeMessage(messageKey);\n }\n \n // 检查数量限制\n this.removeOldestMessage();\n \n const messageElement = document.createElement('pcm-message');\n messageElement.setAttribute('content', options.content);\n \n if (options.type) {\n messageElement.setAttribute('type', options.type);\n }\n \n if (options.duration !== undefined) {\n messageElement.setAttribute('duration', options.duration.toString());\n }\n \n const container = this.getContainer();\n container.appendChild(messageElement);\n \n // 创建实例记录\n const id = this.generateId();\n const instance: MessageInstance = {\n id,\n element: messageElement,\n options: { ...options }\n };\n \n // 设置自动移除定时器\n const duration = options.duration ?? 3000;\n if (duration > 0) {\n instance.timer = window.setTimeout(() => {\n this.removeMessage(messageKey);\n }, duration);\n }\n \n // 保存实例\n this._instances.set(messageKey, instance);\n \n return messageElement;\n }\n\n success(content: string | MessageOptions, duration?: number): void {\n const options: MessageOptions = typeof content === 'string' \n ? { content, type: 'success', duration } \n : { ...content, type: 'success' };\n \n this.create(options);\n }\n\n error(content: string | MessageOptions, duration?: number): void {\n const options: MessageOptions = typeof content === 'string' \n ? { content, type: 'error', duration } \n : { ...content, type: 'error' };\n \n this.create(options);\n }\n\n info(content: string | MessageOptions, duration?: number): void {\n const options: MessageOptions = typeof content === 'string' \n ? { content, type: 'info', duration } \n : { ...content, type: 'info' };\n \n this.create(options);\n }\n\n warning(content: string | MessageOptions, duration?: number): void {\n const options: MessageOptions = typeof content === 'string' \n ? { content, type: 'warning', duration } \n : { ...content, type: 'warning' };\n \n this.create(options);\n }\n\n // 清除所有消息\n clear(): void {\n this._instances.forEach((_, key) => {\n this.removeMessage(key);\n });\n }\n\n // 清除指定key的消息\n remove(key: string): void {\n this.removeMessage(key);\n }\n\n // 设置最大显示数量\n setMaxCount(count: number): void {\n this._maxCount = Math.max(1, count);\n }\n\n // 销毁服务(清理资源)\n destroy(): void {\n this.clear();\n if (this._container && this._container.parentNode) {\n this._container.parentNode.removeChild(this._container);\n this._container = null;\n }\n }\n}\n\n// 创建单例实例\nexport const Message = new MessageService(); "],"names":[],"mappings":"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"}
|