pcm-agents 1.0.6 → 1.0.7
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/{components-chat-message_32.cjs.entry.js → components-chat-message_33.cjs.entry.js} +9057 -10028
- package/dist/cjs/components-chat-message_33.cjs.entry.js.map +1 -0
- package/dist/cjs/components-oem-virtual-chat-modal.cjs.entry.js +1829 -0
- package/dist/cjs/components-oem-virtual-chat-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/components-oem-virtual-chat-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/config.store-BIjicJY9.js +262 -0
- package/dist/cjs/config.store-BIjicJY9.js.map +1 -0
- package/dist/cjs/{conversation-utils-Na0f0AoH.js → conversation-utils-srlCwYy5.js} +4 -4
- package/dist/cjs/{conversation-utils-Na0f0AoH.js.map → conversation-utils-srlCwYy5.js.map} +1 -1
- package/dist/cjs/{index-BPngQTFc.js → index-CJQRBB6e.js} +7 -261
- package/dist/cjs/index-CJQRBB6e.js.map +1 -0
- package/dist/cjs/index-C_qhED9Z.js +22 -26
- package/dist/cjs/{message-utils-DbTqMOA1.js → index-D5RimYc5.js} +2 -23
- package/dist/cjs/index-D5RimYc5.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/message-utils-C8eJnzLy.js +26 -0
- package/dist/cjs/message-utils-C8eJnzLy.js.map +1 -0
- package/dist/cjs/oem-cast-modal.cjs.entry.js +427 -0
- package/dist/cjs/oem-cast-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/oem-cast-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/{pcm-htws-modal.cjs.entry.js → oem-htws-modal.cjs.entry.js} +138 -116
- package/dist/cjs/oem-htws-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/oem-htws-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/{pcm-jd-modal.cjs.entry.js → oem-jd-modal.cjs.entry.js} +83 -376
- package/dist/cjs/oem-jd-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/oem-jd-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/{pcm-zygh-modal.cjs.entry.js → oem-jlpp-modal.cjs.entry.js} +165 -101
- package/dist/cjs/oem-jlpp-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/oem-jlpp-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/{pcm-jlzz-modal.cjs.entry.js → oem-jlzz-modal.cjs.entry.js} +16 -203
- package/dist/cjs/oem-jlzz-modal.cjs.entry.js.map +1 -0
- package/dist/{pcm-agents/pcm-jlzz-modal.entry.esm.js.map → cjs/oem-jlzz-modal.entry.cjs.js.map} +1 -1
- package/dist/cjs/{pcm-jlpp-modal.cjs.entry.js → oem-mnct-modal.cjs.entry.js} +70 -97
- package/dist/cjs/oem-mnct-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/oem-mnct-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/{pcm-mnms-modal.cjs.entry.js → oem-mnms-modal.cjs.entry.js} +159 -43
- package/dist/cjs/oem-mnms-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/oem-mnms-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/{pcm-qgqjl-modal.cjs.entry.js → oem-qgqjl-modal.cjs.entry.js} +48 -18
- package/dist/cjs/oem-qgqjl-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/oem-qgqjl-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/pcm-agents.cjs.js +1 -1
- package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +4 -3
- package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-hr-chat-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-jlsx-modal.cjs.entry.js +27 -25
- package/dist/cjs/pcm-jlsx-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-jlsx-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/{sentry-reporter-B1jvgkp7.js → sentry-reporter-uulX7WVC.js} +5 -5
- package/dist/cjs/{sentry-reporter-B1jvgkp7.js.map → sentry-reporter-uulX7WVC.js.map} +1 -1
- package/dist/collection/components/oem-cast-modal/oem-cast-modal.css +6 -1
- package/dist/components/components-chat-message.js +1 -1
- package/dist/components/components-digital-human.js +1 -1
- package/dist/components/components-export-records-modal.js +1 -1
- package/dist/components/components-mobile-input-btn.js +1 -1
- package/dist/components/components-mobile-upload-btn.js +1 -1
- package/dist/components/components-oem-virtual-chat-modal.js +1 -1
- package/dist/components/components-position-selector.js +1 -1
- package/dist/components/components-thousand-resume-wrapper.js +1 -1
- package/dist/components/components-upload.js +1 -1
- package/dist/components/components-voice-input-btn.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/oem-cast-modal.js +1 -1
- package/dist/components/oem-cast-modal.js.map +1 -1
- package/dist/components/oem-htws-modal.js +5 -5
- package/dist/components/oem-jd-modal.js +5 -5
- package/dist/components/oem-jlpp-modal.js +7 -7
- package/dist/components/oem-jlsx-modal.js +5 -5
- package/dist/components/oem-jlzz-modal.js +5 -5
- package/dist/components/oem-mnct-modal.js +7 -7
- package/dist/components/oem-mnms-modal.js +8 -8
- package/dist/components/oem-qgqjl-modal.js +9 -9
- package/dist/components/oem-zygh-modal.js +5 -5
- package/dist/components/{p-D7D_3MQL.js → p--IeRQcxT.js} +3 -3
- package/dist/components/{p-D7D_3MQL.js.map → p--IeRQcxT.js.map} +1 -1
- package/dist/components/{p-fAgc1_6t.js → p-14CtQGo8.js} +4 -4
- package/dist/components/{p-fAgc1_6t.js.map → p-14CtQGo8.js.map} +1 -1
- package/dist/components/{p-li4R8x26.js → p-2BiWHTOV.js} +3 -3
- package/dist/components/{p-li4R8x26.js.map → p-2BiWHTOV.js.map} +1 -1
- package/dist/components/{p-C9XyS38z.js → p-5TyoLbXy.js} +5 -5
- package/dist/components/{p-C9XyS38z.js.map → p-5TyoLbXy.js.map} +1 -1
- package/dist/components/{p-Cc0Eazm9.js → p-BJKIlCmI.js} +3 -3
- package/dist/components/{p-Cc0Eazm9.js.map → p-BJKIlCmI.js.map} +1 -1
- package/dist/components/{p-DhrczBoo.js → p-BUA1GYVe.js} +3 -3
- package/dist/components/{p-DhrczBoo.js.map → p-BUA1GYVe.js.map} +1 -1
- package/dist/components/{p-0Ij65ybD.js → p-BUVNyxhI.js} +3 -3
- package/dist/components/{p-0Ij65ybD.js.map → p-BUVNyxhI.js.map} +1 -1
- package/dist/components/{p-CjhA27Iq.js → p-BWdXlms4.js} +3 -3
- package/dist/components/{p-CjhA27Iq.js.map → p-BWdXlms4.js.map} +1 -1
- package/dist/components/{p-B24U704n.js → p-BdgdgjaW.js} +3 -3
- package/dist/components/{p-B24U704n.js.map → p-BdgdgjaW.js.map} +1 -1
- package/dist/components/{p-C6gAMnwa.js → p-BdzFXB1t.js} +3 -3
- package/dist/components/{p-C6gAMnwa.js.map → p-BdzFXB1t.js.map} +1 -1
- package/dist/components/{p-BR37xNkD.js → p-Bxg4nW6-.js} +3 -3
- package/dist/components/{p-BR37xNkD.js.map → p-Bxg4nW6-.js.map} +1 -1
- package/dist/components/{p-BI0i2rY4.js → p-c8fMPeu_.js} +3 -3
- package/dist/components/{p-BI0i2rY4.js.map → p-c8fMPeu_.js.map} +1 -1
- package/dist/components/{p-B5DJYdYb.js → p-wAqiaji9.js} +3 -3
- package/dist/components/{p-B5DJYdYb.js.map → p-wAqiaji9.js.map} +1 -1
- package/dist/components/{p-CzbmmB8j.js → p-wTdMzyVB.js} +3 -3
- package/dist/components/{p-CzbmmB8j.js.map → p-wTdMzyVB.js.map} +1 -1
- package/dist/components/pcm-1zhanshi-mnms-modal.js +5 -5
- package/dist/components/pcm-app-chat-modal.js +1 -1
- package/dist/components/pcm-ats-mnms-modal.js +5 -5
- package/dist/components/pcm-card.js +1 -1
- package/dist/components/pcm-hr-chat-modal.js +2 -2
- package/dist/components/pcm-htws-modal.js +8 -8
- package/dist/components/pcm-hyzj-modal.js +5 -5
- package/dist/components/pcm-jd-modal.js +6 -6
- package/dist/components/pcm-jlpp-modal.js +8 -8
- package/dist/components/pcm-jlsx-modal.js +5 -5
- package/dist/components/pcm-jlzz-modal.js +6 -6
- package/dist/components/pcm-mnct-modal.js +7 -7
- package/dist/components/pcm-mnms-modal.js +8 -8
- package/dist/components/pcm-mnms-zp-modal.js +8 -8
- package/dist/components/pcm-msbg-modal.js +5 -5
- package/dist/components/pcm-qgqjl-modal.js +9 -9
- package/dist/components/pcm-virtual-chat-modal.js +1 -1
- package/dist/components/pcm-zsk-chat-modal.js +2 -2
- package/dist/components/pcm-zygh-modal.js +7 -7
- package/dist/components/pcm-zygh-v2-modal.js +7 -7
- package/dist/esm/{components-chat-message_32.entry.js → components-chat-message_33.entry.js} +9957 -10929
- package/dist/esm/components-chat-message_33.entry.js.map +1 -0
- package/dist/esm/components-oem-virtual-chat-modal.entry.js +1827 -0
- package/dist/esm/components-oem-virtual-chat-modal.entry.js.map +1 -0
- package/dist/esm/config.store-C--BQ-cn.js +259 -0
- package/dist/esm/config.store-C--BQ-cn.js.map +1 -0
- package/dist/esm/{conversation-utils-BSUtuMqH.js → conversation-utils-B8KFe8e5.js} +4 -4
- package/dist/esm/{conversation-utils-BSUtuMqH.js.map → conversation-utils-B8KFe8e5.js.map} +1 -1
- package/dist/esm/{message-utils-BVjB8bxU.js → index-B_xjnWkF.js} +3 -23
- package/dist/esm/index-B_xjnWkF.js.map +1 -0
- package/dist/esm/{index-Bq0K-WqZ.js → index-DA8Myhft.js} +25 -29
- package/dist/esm/{index-Bq0K-WqZ.js.map → index-DA8Myhft.js.map} +1 -1
- package/dist/esm/{index-ffawiHP3.js → index-mY4LYmpx.js} +7 -260
- package/dist/esm/index-mY4LYmpx.js.map +1 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/message-utils-DnoxSHNP.js +24 -0
- package/dist/esm/message-utils-DnoxSHNP.js.map +1 -0
- package/dist/esm/oem-cast-modal.entry.js +425 -0
- package/dist/esm/oem-cast-modal.entry.js.map +1 -0
- package/dist/esm/{pcm-htws-modal.entry.js → oem-htws-modal.entry.js} +138 -116
- package/dist/esm/oem-htws-modal.entry.js.map +1 -0
- package/dist/esm/{pcm-jd-modal.entry.js → oem-jd-modal.entry.js} +83 -376
- package/dist/esm/oem-jd-modal.entry.js.map +1 -0
- package/dist/esm/{pcm-zygh-modal.entry.js → oem-jlpp-modal.entry.js} +165 -101
- package/dist/esm/oem-jlpp-modal.entry.js.map +1 -0
- package/dist/esm/{pcm-jlzz-modal.entry.js → oem-jlzz-modal.entry.js} +16 -203
- package/dist/esm/{pcm-jlzz-modal.entry.js.map → oem-jlzz-modal.entry.js.map} +1 -1
- package/dist/esm/{pcm-jlpp-modal.entry.js → oem-mnct-modal.entry.js} +70 -97
- package/dist/esm/oem-mnct-modal.entry.js.map +1 -0
- package/dist/esm/{pcm-mnms-modal.entry.js → oem-mnms-modal.entry.js} +159 -43
- package/dist/esm/oem-mnms-modal.entry.js.map +1 -0
- package/dist/esm/{pcm-qgqjl-modal.entry.js → oem-qgqjl-modal.entry.js} +48 -18
- package/dist/esm/oem-qgqjl-modal.entry.js.map +1 -0
- package/dist/esm/pcm-agents.js +3 -3
- package/dist/esm/pcm-hr-chat-modal.entry.js +4 -3
- package/dist/esm/pcm-hr-chat-modal.entry.js.map +1 -1
- package/dist/esm/pcm-jlsx-modal.entry.js +6 -4
- package/dist/esm/pcm-jlsx-modal.entry.js.map +1 -1
- package/dist/esm/{sentry-reporter-q_g26pa7.js → sentry-reporter-st9SkiOU.js} +3 -3
- package/dist/esm/{sentry-reporter-q_g26pa7.js.map → sentry-reporter-st9SkiOU.js.map} +1 -1
- package/dist/pcm-agents/components-oem-virtual-chat-modal.entry.esm.js.map +1 -0
- package/dist/pcm-agents/index.esm.js +1 -1
- package/dist/pcm-agents/index.esm.js.map +1 -1
- package/dist/pcm-agents/oem-cast-modal.entry.esm.js.map +1 -0
- package/dist/pcm-agents/oem-htws-modal.entry.esm.js.map +1 -0
- package/dist/pcm-agents/oem-jd-modal.entry.esm.js.map +1 -0
- package/dist/pcm-agents/oem-jlpp-modal.entry.esm.js.map +1 -0
- package/dist/{cjs/pcm-jlzz-modal.entry.cjs.js.map → pcm-agents/oem-jlzz-modal.entry.esm.js.map} +1 -1
- package/dist/pcm-agents/oem-mnct-modal.entry.esm.js.map +1 -0
- package/dist/pcm-agents/oem-mnms-modal.entry.esm.js.map +1 -0
- package/dist/pcm-agents/oem-qgqjl-modal.entry.esm.js.map +1 -0
- package/dist/pcm-agents/p-0cedc9bf.entry.js +2 -0
- package/dist/pcm-agents/{p-b778f4cc.entry.js.map → p-0cedc9bf.entry.js.map} +1 -1
- package/dist/pcm-agents/p-24ce19fc.entry.js +2 -0
- package/dist/pcm-agents/p-24ce19fc.entry.js.map +1 -0
- package/dist/pcm-agents/p-30b6a88d.entry.js +2 -0
- package/dist/pcm-agents/p-30b6a88d.entry.js.map +1 -0
- package/dist/pcm-agents/p-557664fc.entry.js +2 -0
- package/dist/pcm-agents/{p-340ef557.entry.js.map → p-557664fc.entry.js.map} +1 -1
- package/dist/pcm-agents/p-58493403.entry.js +2 -0
- package/dist/pcm-agents/p-58493403.entry.js.map +1 -0
- package/dist/pcm-agents/p-5ca45877.entry.js +2 -0
- package/dist/pcm-agents/p-5ca45877.entry.js.map +1 -0
- package/dist/pcm-agents/p-724d9471.entry.js +2 -0
- package/dist/pcm-agents/p-724d9471.entry.js.map +1 -0
- package/dist/pcm-agents/p-783b46c0.entry.js +2 -0
- package/dist/pcm-agents/{p-be4fdac7.entry.js.map → p-783b46c0.entry.js.map} +1 -1
- package/dist/pcm-agents/p-81d12737.entry.js +2 -0
- package/dist/pcm-agents/p-81d12737.entry.js.map +1 -0
- package/dist/pcm-agents/{p-BrEqs5mi.js → p-B23366TU.js} +2 -2
- package/dist/pcm-agents/{p-BrEqs5mi.js.map → p-B23366TU.js.map} +1 -1
- package/dist/pcm-agents/{p-BVjB8bxU.js → p-B_xjnWkF.js} +2 -2
- package/dist/pcm-agents/p-B_xjnWkF.js.map +1 -0
- package/dist/pcm-agents/p-C7m_4Gmk.js +2 -0
- package/dist/pcm-agents/p-C7m_4Gmk.js.map +1 -0
- package/dist/pcm-agents/p-CcIrA6cr.js +2 -0
- package/dist/pcm-agents/p-CcIrA6cr.js.map +1 -0
- package/dist/pcm-agents/{p-Bq0K-WqZ.js → p-DA8Myhft.js} +2 -2
- package/dist/pcm-agents/{p-Bq0K-WqZ.js.map → p-DA8Myhft.js.map} +1 -1
- package/dist/pcm-agents/p-DnoxSHNP.js +2 -0
- package/dist/pcm-agents/p-DnoxSHNP.js.map +1 -0
- package/dist/pcm-agents/p-b9368b8e.entry.js +8 -0
- package/dist/pcm-agents/p-b9368b8e.entry.js.map +1 -0
- package/dist/pcm-agents/p-d0a7e02b.entry.js +2 -0
- package/dist/{cjs/pcm-qgqjl-modal.cjs.entry.js.map → pcm-agents/p-d0a7e02b.entry.js.map} +1 -1
- package/dist/pcm-agents/p-f4d5841a.entry.js +2 -0
- package/dist/pcm-agents/p-f4d5841a.entry.js.map +1 -0
- package/dist/pcm-agents/p-rR0ghCa0.js +2 -0
- package/dist/pcm-agents/{p-Oknq-jtc.js.map → p-rR0ghCa0.js.map} +1 -1
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/pcm-agents/pcm-hr-chat-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/pcm-jlsx-modal.entry.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/components-chat-message_32.cjs.entry.js.map +0 -1
- package/dist/cjs/index-BPngQTFc.js.map +0 -1
- package/dist/cjs/message-utils-DbTqMOA1.js.map +0 -1
- package/dist/cjs/pcm-ats-mnms-modal.cjs.entry.js +0 -238
- package/dist/cjs/pcm-ats-mnms-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-ats-mnms-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-htws-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-htws-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-jd-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-jd-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-jlpp-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-jlpp-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-jlzz-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-mnct-modal.cjs.entry.js +0 -457
- package/dist/cjs/pcm-mnct-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-mnct-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-mnms-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-mnms-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-qgqjl-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-zygh-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-zygh-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/pcm-zygh-v2-modal.cjs.entry.js +0 -332
- package/dist/cjs/pcm-zygh-v2-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/pcm-zygh-v2-modal.entry.cjs.js.map +0 -1
- package/dist/esm/components-chat-message_32.entry.js.map +0 -1
- package/dist/esm/index-ffawiHP3.js.map +0 -1
- package/dist/esm/message-utils-BVjB8bxU.js.map +0 -1
- package/dist/esm/pcm-ats-mnms-modal.entry.js +0 -236
- package/dist/esm/pcm-ats-mnms-modal.entry.js.map +0 -1
- package/dist/esm/pcm-htws-modal.entry.js.map +0 -1
- package/dist/esm/pcm-jd-modal.entry.js.map +0 -1
- package/dist/esm/pcm-jlpp-modal.entry.js.map +0 -1
- package/dist/esm/pcm-mnct-modal.entry.js +0 -455
- package/dist/esm/pcm-mnct-modal.entry.js.map +0 -1
- package/dist/esm/pcm-mnms-modal.entry.js.map +0 -1
- package/dist/esm/pcm-qgqjl-modal.entry.js.map +0 -1
- package/dist/esm/pcm-zygh-modal.entry.js.map +0 -1
- package/dist/esm/pcm-zygh-v2-modal.entry.js +0 -330
- package/dist/esm/pcm-zygh-v2-modal.entry.js.map +0 -1
- package/dist/pcm-agents/p-06359d3b.entry.js +0 -2
- package/dist/pcm-agents/p-06359d3b.entry.js.map +0 -1
- package/dist/pcm-agents/p-340ef557.entry.js +0 -2
- package/dist/pcm-agents/p-4facfdd8.entry.js +0 -2
- package/dist/pcm-agents/p-4facfdd8.entry.js.map +0 -1
- package/dist/pcm-agents/p-60c7f37f.entry.js +0 -2
- package/dist/pcm-agents/p-60c7f37f.entry.js.map +0 -1
- package/dist/pcm-agents/p-7e68b5b1.entry.js +0 -8
- package/dist/pcm-agents/p-7e68b5b1.entry.js.map +0 -1
- package/dist/pcm-agents/p-BCHVxmVd.js +0 -2
- package/dist/pcm-agents/p-BCHVxmVd.js.map +0 -1
- package/dist/pcm-agents/p-BVjB8bxU.js.map +0 -1
- package/dist/pcm-agents/p-Oknq-jtc.js +0 -2
- package/dist/pcm-agents/p-ae371752.entry.js +0 -2
- package/dist/pcm-agents/p-ae371752.entry.js.map +0 -1
- package/dist/pcm-agents/p-af179f1a.entry.js +0 -2
- package/dist/pcm-agents/p-af179f1a.entry.js.map +0 -1
- package/dist/pcm-agents/p-b778f4cc.entry.js +0 -2
- package/dist/pcm-agents/p-bbb30b82.entry.js +0 -2
- package/dist/pcm-agents/p-bbb30b82.entry.js.map +0 -1
- package/dist/pcm-agents/p-be4fdac7.entry.js +0 -2
- package/dist/pcm-agents/p-c053e88e.entry.js +0 -2
- package/dist/pcm-agents/p-c053e88e.entry.js.map +0 -1
- package/dist/pcm-agents/p-d2905eef.entry.js +0 -2
- package/dist/pcm-agents/p-d2905eef.entry.js.map +0 -1
- package/dist/pcm-agents/p-eadc6905.entry.js +0 -2
- package/dist/pcm-agents/p-eadc6905.entry.js.map +0 -1
- package/dist/pcm-agents/pcm-ats-mnms-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-htws-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-jd-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-jlpp-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-mnct-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-mnms-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-qgqjl-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-zygh-modal.entry.esm.js.map +0 -1
- package/dist/pcm-agents/pcm-zygh-v2-modal.entry.esm.js.map +0 -1
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent,
|
|
2
|
-
import { a as authStore, v as verifyApiKey,
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DA8Myhft.js';
|
|
2
|
+
import { a as authStore, v as verifyApiKey, e as verifySmsCode } from './index-mY4LYmpx.js';
|
|
3
3
|
import { E as ErrorEventBus } from './error-event-C0FYX2-Z.js';
|
|
4
|
+
import { c as configStore } from './config.store-C--BQ-cn.js';
|
|
4
5
|
import { M as Message } from './message.service-D39f_W8k.js';
|
|
5
|
-
import { f as fetchHistoryConversations } from './conversation-utils-BSUtuMqH.js';
|
|
6
|
-
import './sentry-reporter-q_g26pa7.js';
|
|
7
|
-
import './exports-Bs-zO1WZ.js';
|
|
8
6
|
|
|
9
|
-
const
|
|
7
|
+
const oemJlppModalCss = ".label-with-button{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.button-group{display:flex;gap:8px;align-items:center}.position-selector-button{padding:4px 12px;background:#1890ff;color:white;border:none;border-radius:4px;font-size:13px;cursor:pointer;transition:all 0.3s ease;white-space:nowrap;height:28px;line-height:20px}.position-selector-button:hover{background:#40a9ff}.position-selector-button:active{background:#096dd9}.phone-input{width:calc(100% - 16px);padding:8px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s}.phone-input:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.verification-code-container{display:flex;gap:8px;align-items:center}.verification-code-input{flex:1;padding:8px;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s}.verification-code-input:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.send-code-button{padding:8px 16px;background:#0D75FB;color:white;border:none;border-radius:4px;font-size:14px;cursor:pointer;transition:all 0.3s ease;white-space:nowrap;min-width:100px}.send-code-button:hover:not(:disabled){background-color:#40a9ff}.send-code-button:disabled{background-color:rgba(0, 0, 0, 0.04);color:rgba(0, 0, 0, 0.25);cursor:not-allowed}.position-selector-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:3000;padding:20px}.position-selector-modal{background:white;border-radius:8px;width:90%;max-width:900px;height:80vh;max-height:600px;display:flex;flex-direction:column;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);animation:modalFadeIn 0.3s ease}@keyframes modalFadeIn{from{opacity:0;transform:scale(0.95) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.position-selector-modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.position-selector-modal-header h3{margin:0;font-size:16px;font-weight:500;color:rgba(0, 0, 0, 0.85)}.position-selector-close-btn{background:none;border:none;font-size:24px;line-height:1;cursor:pointer;color:rgba(0, 0, 0, 0.45);padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all 0.3s}.position-selector-close-btn:hover{background-color:rgba(0, 0, 0, 0.06);color:rgba(0, 0, 0, 0.85)}.position-selector-modal-body{flex:1;overflow:hidden;display:flex;flex-direction:column}@media screen and (max-width: 768px){.position-selector-modal{width:100%;height:90vh;max-height:none;border-radius:8px 8px 0 0;margin-top:auto}.position-selector-modal-overlay{padding:0;align-items:flex-end}}";
|
|
10
8
|
|
|
11
|
-
const
|
|
9
|
+
const globalCss = ".modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;z-index:1000;overflow-y:auto}.fullscreen-overlay{padding:0;background-color:rgba(0, 0, 0, 0.7);position:absolute;width:100%;height:auto}.modal-container{background-color:#fff;border-radius:8px;width:100%;display:flex;flex-direction:column;position:relative;margin:5vh auto auto auto;transition:all 0.3s ease-out;overflow:hidden}.modal-container.fullscreen{width:100%;max-width:none;height:100%;border-radius:0;margin:0;display:flex;flex-direction:column;max-height:100%}.pc-layout{width:80%;max-width:600px;min-width:320px}@media screen and (max-width: 768px){.pc-layout{width:95%}.modal-overlay{padding:10px 0px 0px 0px}.modal-container.fullscreen{width:100%;height:100%;max-height:100%;border-radius:16px 16px 0 0;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:4px 16px;height:50px;border-bottom:1px solid #e8e8e8;flex-shrink:0}.header-left{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;color:#333}.header-icon{width:24px;height:24px}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px}.close-button:hover{background-color:rgba(0, 0, 0, 0.04)}.close-button span{font-size:24px;line-height:1;color:#999}.close-button:hover span{color:#666}.upload-area{cursor:pointer;width:100%}.upload-placeholder{transition:all 0.3s ease;display:flex;flex-direction:column;align-items:center;background:rgba(0, 0, 0, 0.02);border:1px dashed #d9d9d9;border-radius:8px;cursor:pointer}.upload-placeholder:hover{border:1px dashed #1890ff}.upload-placeholder img{margin-top:8px;width:50px;height:50px}.upload-placeholder .upload-text{margin:4px 0;color:#332F39;font-size:14px}.upload-placeholder .upload-hint{font-size:14px;color:#949AA5;margin-top:8px;padding:0px 10px;text-align:center;white-space:normal;word-wrap:break-word;word-break:break-all;line-height:1.4}.file-item{position:relative;padding:16px;border:1px solid #e2e8f0;border-radius:8px;transition:border-color 0.3s;cursor:pointer;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}.file-item:hover{border-color:#0D75FB}.file-item-content{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden}.file-icon{color:#0D75FB;flex-shrink:0}.file-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 50px)}.remove-file{background:transparent;border:none;color:#94a3b8;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;padding:4px;margin-left:8px;border-radius:4px;transition:all 0.2s;min-width:30px;min-height:30px}.remove-file:hover{background-color:#f1f5f9;color:#475569}.file-input{display:none}.input-container{padding:20px;display:flex;flex-direction:column;height:calc(100% - 50px);background:linear-gradient(150deg, #2a6ee933, #0000 50%) 0 0 / 400px 200px no-repeat, #fff;overflow-y:auto}.input-container h3{margin-top:0;margin-bottom:20px;font-size:18px;color:#333;text-align:center}.jd-input-section{margin-bottom:20px}.jd-input-section label{display:block;margin-bottom:8px;font-weight:500;color:#333}.job-description-textarea{width:calc(100% - 16px);border:1px solid #ddd;border-radius:4px;resize:vertical;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color 0.3s;padding:8px}.job-description-textarea:focus{outline:none;border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.resume-upload-section{margin-bottom:20px;width:100%;display:flex;flex-direction:column}.resume-upload-section label{display:block;margin-bottom:8px;font-weight:500;color:#333}.interview-settings-section{margin-bottom:24px;padding:20px;background-color:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.settings-row{margin-bottom:20px}.settings-row:last-child{margin-bottom:0}.settings-label{display:block;font-weight:500;color:#333;margin-bottom:12px;font-size:14px}.question-number-section{width:100%}.slider-container{display:flex;align-items:center;gap:12px}.question-slider{flex:1;height:6px;background:#ddd;outline:none;border-radius:3px;-webkit-appearance:none;appearance:none}.question-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;background:#0D75FB;cursor:pointer;border-radius:50%;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}.question-slider::-moz-range-thumb{width:20px;height:20px;background:#0D75FB;cursor:pointer;border-radius:50%;border:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}.slider-value{font-weight:600;color:#0D75FB;font-size:14px;min-width:30px;text-align:center}.analysis-toggle-section{width:100%}.toggle-container{display:flex;align-items:center;gap:12px}.toggle-switch{position:relative;display:inline-block;width:44px;height:24px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:0.3s;border-radius:24px}.toggle-slider:before{position:absolute;content:\"\";height:18px;width:18px;left:3px;bottom:3px;background-color:white;transition:0.3s;border-radius:50%;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}input:checked+.toggle-slider{background-color:#0D75FB}input:checked+.toggle-slider:before{transform:translateX(20px)}.toggle-text{font-size:14px;color:#666;font-weight:500}.submit-button{margin-top:10px;padding:10px 30px;background:#0D75FB;color:white;border:none;border-radius:4px;font-size:16px;cursor:pointer;transition:all 0.3s ease;width:100%;max-width:400px;align-self:center}.submit-button:hover{background-color:#40a9ff}.submit-button:disabled{background-color:rgba(0,0,0,0.04);color:rgba(0,0,0,0.25);cursor:not-allowed}.ai-disclaimer{margin-top:16px;text-align:center;font-size:12px;color:#999;line-height:1.5}.ai-disclaimer p{margin:4px 0}.beian-info{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}.ai-disclaimer a{color:#666;text-decoration:none;transition:color 0.2s ease}.ai-disclaimer a:hover{color:#1890ff;text-decoration:underline}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:24px}.loading-spinner{width:40px;height:40px;border:4px solid rgba(0, 0, 0, 0.1);border-radius:50%;border-top-color:var(--pcm-primary-color, #1890ff);animation:spin 1s linear infinite;margin-bottom:16px}.loading-text{font-size:16px;color:var(--pcm-text-color, #333)}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.header-history-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 8px;border:none;border-radius:4px;background:transparent;color:#bbb;cursor:pointer;font-size:13px;font-family:inherit;line-height:1;transition:all 0.2s ease;flex-shrink:0;white-space:nowrap}.header-history-button svg{width:16px;height:16px;display:block;flex-shrink:0}.header-history-button:hover{background-color:rgba(0, 0, 0, 0.04);color:#666}.header-history-button:focus-visible{outline:2px solid rgba(13, 117, 251, 0.35);outline-offset:2px}.history-drawer-content{height:100%;display:flex;flex-direction:column}.conversation-list{flex:1;overflow-y:auto;padding:8px 0}.loading-conversations,.empty-conversations{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;color:#999}.loading-conversations .loading-spinner-small{margin-bottom:12px}.conversation-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;margin:0 8px 4px 8px;border-radius:8px;cursor:pointer;transition:all 0.2s ease;border:1px solid transparent}.conversation-item:hover{background:#f5f5f5}.conversation-info{flex:1;min-width:0}.conversation-title{font-size:14px;font-weight:500;color:#262626;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#8c8c8c}.conversation-time{flex-shrink:0}.message-count{flex-shrink:0}.conversation-status{padding:2px 6px;border-radius:4px;font-size:11px;font-weight:500}.conversation-status.completed{background:#f6ffed;color:#52c41a}.conversation-status.running{background:#fff7e6;color:#fa8c16}.header-history-entry{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:4px 8px;border:none;border-radius:4px;background:#e6f7ff;color:#1890ff;cursor:pointer;font-size:12px;font-family:inherit;line-height:1;white-space:nowrap;transition:all 0.2s ease}.header-history-entry:hover{background:#bae7ff;color:#0958d9;transform:translateY(-1px)}.header-history-entry:focus-visible{outline:2px solid rgba(13, 117, 251, 0.35);outline-offset:2px}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 16px;border-top:1px solid #f0f0f0}.history-pagination-button{min-width:72px;padding:6px 12px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#595959;cursor:pointer;font-size:12px;transition:all 0.2s ease}.history-pagination-button:hover:not(:disabled){border-color:#1890ff;color:#1890ff;background:#e6f7ff}.history-pagination-button:disabled{border-color:#f0f0f0;color:#bfbfbf;background:#fafafa;cursor:not-allowed}.history-pagination-info{flex:1;text-align:center;color:#8c8c8c;font-size:12px}";
|
|
12
10
|
|
|
13
11
|
const hostCss = ":host{font-size:16px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-weight:normal;font-style:normal;font-variant:normal;line-height:1.5;letter-spacing:normal;word-spacing:normal;color:#333;text-align:left;text-indent:0;text-transform:none;white-space:normal;word-wrap:normal;word-break:normal;visibility:visible;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;border-collapse:separate;border-spacing:0;caption-side:top;empty-cells:show;table-layout:auto;quotes:auto;cursor:auto;direction:ltr;orphans:2;widows:2;page-break-inside:auto;text-decoration:none;text-shadow:none;box-sizing:border-box;writing-mode:horizontal-tb;text-orientation:mixed}";
|
|
14
12
|
|
|
15
|
-
const
|
|
13
|
+
const OemJlppModal = class {
|
|
16
14
|
constructor(hostRef) {
|
|
17
15
|
registerInstance(this, hostRef);
|
|
18
16
|
this.modalClosed = createEvent(this, "modalClosed");
|
|
19
17
|
this.uploadSuccess = createEvent(this, "uploadSuccess");
|
|
20
18
|
this.streamComplete = createEvent(this, "streamComplete");
|
|
21
19
|
this.conversationStart = createEvent(this, "conversationStart");
|
|
22
|
-
this.
|
|
20
|
+
this.interviewComplete = createEvent(this, "interviewComplete");
|
|
23
21
|
this.tokenInvalid = createEvent(this, "tokenInvalid");
|
|
24
22
|
this.someErrorEvent = createEvent(this, "someErrorEvent");
|
|
23
|
+
this.sendSmsCodeRequest = createEvent(this, "sendSmsCodeRequest");
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* 模态框标题
|
|
28
27
|
*/
|
|
29
|
-
modalTitle = '
|
|
28
|
+
modalTitle = '简历剖析助手';
|
|
30
29
|
/**
|
|
31
30
|
* SDK鉴权密钥
|
|
32
31
|
*/
|
|
@@ -62,16 +61,14 @@ const ZyghModal = class {
|
|
|
62
61
|
/**
|
|
63
62
|
* 默认查询文本
|
|
64
63
|
*/
|
|
65
|
-
defaultQuery = '
|
|
64
|
+
defaultQuery = '请开始分析';
|
|
66
65
|
/**
|
|
67
66
|
* 是否以全屏模式打开,移动端建议设置为true
|
|
68
67
|
*/
|
|
69
68
|
fullscreen = false;
|
|
70
69
|
/**
|
|
71
|
-
* 自定义输入参数,传入customInputs.
|
|
72
|
-
* 传入customInputs.file_url
|
|
73
|
-
* 传入customInputs.file_url(或customInputs.resume_content)和customInputs.type时,会直接开始聊天。<br>
|
|
74
|
-
* customInputs.resume_content:可传入json字符串,或纯文本字符串,字符串内容为简历内容。<br>
|
|
70
|
+
* 自定义输入参数,传入customInputs.job_info时,JD输入区域不可修改<br>
|
|
71
|
+
* 传入customInputs.file_url时,简历上传区域不可修改。<br>
|
|
75
72
|
*/
|
|
76
73
|
customInputs = {};
|
|
77
74
|
/**
|
|
@@ -79,13 +76,9 @@ const ZyghModal = class {
|
|
|
79
76
|
*/
|
|
80
77
|
showWorkspaceHistory = false;
|
|
81
78
|
/**
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
showInputHistory = false;
|
|
85
|
-
/**
|
|
86
|
-
* 是否开启移动端上传简历
|
|
79
|
+
* OEM ID,用于获取职位列表
|
|
87
80
|
*/
|
|
88
|
-
|
|
81
|
+
oemId;
|
|
89
82
|
/**
|
|
90
83
|
* 上传成功事件
|
|
91
84
|
*/
|
|
@@ -101,7 +94,7 @@ const ZyghModal = class {
|
|
|
101
94
|
/**
|
|
102
95
|
* 当聊天完成时触发
|
|
103
96
|
*/
|
|
104
|
-
|
|
97
|
+
interviewComplete;
|
|
105
98
|
/**
|
|
106
99
|
* SDK密钥验证失败事件
|
|
107
100
|
*/
|
|
@@ -110,6 +103,12 @@ const ZyghModal = class {
|
|
|
110
103
|
* 错误事件
|
|
111
104
|
*/
|
|
112
105
|
someErrorEvent;
|
|
106
|
+
/**
|
|
107
|
+
* 发送短信验证码请求事件
|
|
108
|
+
* 接入方需要监听此事件并调用自己的短信接口发送验证码
|
|
109
|
+
* 事件参数: { mobile: string, codeType: number }
|
|
110
|
+
*/
|
|
111
|
+
sendSmsCodeRequest;
|
|
113
112
|
/**
|
|
114
113
|
* 附件预览模式
|
|
115
114
|
* 'drawer': 在右侧抽屉中预览
|
|
@@ -119,19 +118,21 @@ const ZyghModal = class {
|
|
|
119
118
|
isUploading = false;
|
|
120
119
|
uploadedFileInfo = null;
|
|
121
120
|
showChatModal = false;
|
|
121
|
+
jobDescription = '';
|
|
122
122
|
isSubmitting = false;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
// 手机号和验证码相关状态
|
|
124
|
+
phoneNumber = '';
|
|
125
|
+
verificationCode = '';
|
|
126
|
+
isSendingCode = false;
|
|
127
|
+
countdown = 0;
|
|
128
|
+
isVerifyingCode = false;
|
|
129
|
+
// 职位选择器相关状态
|
|
130
|
+
showPositionSelector = false;
|
|
130
131
|
get hostElement() { return getElement(this); }
|
|
131
132
|
tokenInvalidListener;
|
|
132
133
|
removeErrorListener;
|
|
133
|
-
_historyConversationPageSize = 20;
|
|
134
134
|
pcmUploadRef;
|
|
135
|
+
countdownTimer = null;
|
|
135
136
|
handleTokenChange(newToken) {
|
|
136
137
|
// 当传入的 token 变化时,更新 authStore 中的 token
|
|
137
138
|
if (newToken && newToken !== authStore.getToken()) {
|
|
@@ -142,18 +143,24 @@ const ZyghModal = class {
|
|
|
142
143
|
if (!newValue) {
|
|
143
144
|
// 重置状态
|
|
144
145
|
this.showChatModal = false;
|
|
146
|
+
this.jobDescription = '';
|
|
147
|
+
this.isSubmitting = false;
|
|
148
|
+
this.uploadedFileInfo = null;
|
|
149
|
+
// 重置手机号和验证码相关状态
|
|
150
|
+
this.phoneNumber = '';
|
|
151
|
+
this.verificationCode = '';
|
|
152
|
+
this.isSendingCode = false;
|
|
153
|
+
this.isVerifyingCode = false;
|
|
154
|
+
this.countdown = 0;
|
|
155
|
+
if (this.countdownTimer) {
|
|
156
|
+
clearInterval(this.countdownTimer);
|
|
157
|
+
this.countdownTimer = null;
|
|
158
|
+
}
|
|
145
159
|
}
|
|
146
160
|
else {
|
|
147
|
-
if (this.customInputs && this.customInputs.type) {
|
|
148
|
-
// 检查是否是有效的 CareerPlanType 值
|
|
149
|
-
const type = this.customInputs.type;
|
|
150
|
-
if (type === '长期规划' || type === '转行建议' || type === '晋升路径') {
|
|
151
|
-
this.selectedPlanType = type;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
161
|
await verifyApiKey(this.token);
|
|
155
|
-
// 如果有会话ID
|
|
156
|
-
if (this.conversationId
|
|
162
|
+
// 如果有会话ID直接显示聊天模态框
|
|
163
|
+
if (this.conversationId) {
|
|
157
164
|
this.showChatModal = true;
|
|
158
165
|
}
|
|
159
166
|
}
|
|
@@ -163,10 +170,10 @@ const ZyghModal = class {
|
|
|
163
170
|
if (this.zIndex) {
|
|
164
171
|
configStore.setItem('modal-zIndex', this.zIndex);
|
|
165
172
|
}
|
|
173
|
+
// 初始化时设置 token,但不验证(验证在 @Watch('isOpen') 中处理)
|
|
166
174
|
if (this.token) {
|
|
167
175
|
authStore.setToken(this.token);
|
|
168
176
|
}
|
|
169
|
-
verifyApiKey(this.token);
|
|
170
177
|
// 添加全局token无效事件监听器
|
|
171
178
|
this.tokenInvalidListener = () => {
|
|
172
179
|
this.tokenInvalid.emit();
|
|
@@ -184,62 +191,122 @@ const ZyghModal = class {
|
|
|
184
191
|
if (this.removeErrorListener) {
|
|
185
192
|
this.removeErrorListener();
|
|
186
193
|
}
|
|
194
|
+
// 清理倒计时定时器
|
|
195
|
+
if (this.countdownTimer) {
|
|
196
|
+
clearInterval(this.countdownTimer);
|
|
197
|
+
this.countdownTimer = null;
|
|
198
|
+
}
|
|
187
199
|
}
|
|
188
200
|
handleClose = () => {
|
|
189
201
|
this.modalClosed.emit();
|
|
190
202
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
const nextCursorStack = this.historyConversationCursorStack.slice(0, pageIndex + 1);
|
|
195
|
-
if (result.hasMore && result.nextCursor) {
|
|
196
|
-
nextCursorStack[pageIndex + 1] = result.nextCursor;
|
|
197
|
-
}
|
|
198
|
-
this.historyConversationCursorStack = nextCursorStack;
|
|
199
|
-
this.historyConversationPageIndex = pageIndex;
|
|
200
|
-
this.historyConversations = result.items;
|
|
201
|
-
this.hasMoreHistoryConversations = result.hasMore;
|
|
202
|
-
this.isLoadingConversations = false;
|
|
203
|
+
handleJobDescriptionChange = (event) => {
|
|
204
|
+
const textarea = event.target;
|
|
205
|
+
this.jobDescription = textarea.value;
|
|
203
206
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
this.
|
|
207
|
-
await this.loadHistoryConversations('', 0);
|
|
207
|
+
handlePhoneNumberChange = (event) => {
|
|
208
|
+
const input = event.target;
|
|
209
|
+
this.phoneNumber = input.value;
|
|
208
210
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
handleVerificationCodeChange = (event) => {
|
|
212
|
+
const input = event.target;
|
|
213
|
+
this.verificationCode = input.value;
|
|
214
|
+
};
|
|
215
|
+
startCountdown = () => {
|
|
216
|
+
this.countdown = 60;
|
|
217
|
+
if (this.countdownTimer) {
|
|
218
|
+
clearInterval(this.countdownTimer);
|
|
219
|
+
}
|
|
220
|
+
this.countdownTimer = setInterval(() => {
|
|
221
|
+
this.countdown--;
|
|
222
|
+
if (this.countdown <= 0) {
|
|
223
|
+
if (this.countdownTimer) {
|
|
224
|
+
clearInterval(this.countdownTimer);
|
|
225
|
+
this.countdownTimer = null;
|
|
226
|
+
}
|
|
213
227
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
228
|
+
}, 1000);
|
|
229
|
+
};
|
|
230
|
+
handleSendCode = () => {
|
|
231
|
+
if (!this.phoneNumber.trim()) {
|
|
232
|
+
Message.error('请输入手机号');
|
|
217
233
|
return;
|
|
218
234
|
}
|
|
219
|
-
|
|
235
|
+
// 验证手机号格式
|
|
236
|
+
const phoneRegex = /^1[3-9]\d{9}$/;
|
|
237
|
+
if (!phoneRegex.test(this.phoneNumber.trim())) {
|
|
238
|
+
Message.error('请输入正确的手机号');
|
|
220
239
|
return;
|
|
221
240
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
241
|
+
// 设置发送中状态
|
|
242
|
+
this.isSendingCode = true;
|
|
243
|
+
// 触发事件,让接入方去调用自己的短信接口
|
|
244
|
+
this.sendSmsCodeRequest.emit({
|
|
245
|
+
mobile: this.phoneNumber.trim(),
|
|
246
|
+
codeType: 8
|
|
247
|
+
});
|
|
248
|
+
// 开始倒计时并重置发送状态
|
|
249
|
+
this.startCountdown();
|
|
250
|
+
this.isSendingCode = false;
|
|
251
|
+
};
|
|
252
|
+
handleOpenPositionSelector = () => {
|
|
253
|
+
if (!this.oemId) {
|
|
254
|
+
Message.info('未配置OEM ID,无法选择职位');
|
|
225
255
|
return;
|
|
226
256
|
}
|
|
227
|
-
|
|
257
|
+
this.showPositionSelector = true;
|
|
228
258
|
};
|
|
229
|
-
|
|
230
|
-
this.
|
|
231
|
-
this.isHistoryDrawerOpen = false;
|
|
232
|
-
this.showChatModal = true;
|
|
259
|
+
handleClosePositionSelector = () => {
|
|
260
|
+
this.showPositionSelector = false;
|
|
233
261
|
};
|
|
234
|
-
|
|
235
|
-
|
|
262
|
+
handlePositionSelected = (event) => {
|
|
263
|
+
const position = event.detail;
|
|
264
|
+
// 直接使用职位选择器组件提供的格式化文本
|
|
265
|
+
this.jobDescription = position.formatted_text || '';
|
|
266
|
+
this.showPositionSelector = false;
|
|
267
|
+
Message.success('职位信息已填充');
|
|
236
268
|
};
|
|
237
|
-
|
|
238
|
-
// 既没有预设 file_url
|
|
239
|
-
if (!this.customInputs?.file_url && !this.
|
|
269
|
+
handleStartAnalysis = async () => {
|
|
270
|
+
// 既没有预设 file_url,也没有上传文件,则提示
|
|
271
|
+
if (!this.customInputs?.file_url && !this.uploadedFileInfo) {
|
|
240
272
|
Message.info('请上传简历');
|
|
241
273
|
return;
|
|
242
274
|
}
|
|
275
|
+
// 如果没有预设的job_info,则需要检查用户输入
|
|
276
|
+
if (!this.customInputs?.job_info && !this.jobDescription.trim()) {
|
|
277
|
+
Message.info('请输入职位描述');
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
// 如果填写了手机号,则需要验证验证码
|
|
281
|
+
if (this.phoneNumber.trim()) {
|
|
282
|
+
// 验证手机号格式
|
|
283
|
+
const phoneRegex = /^1[3-9]\d{9}$/;
|
|
284
|
+
if (!phoneRegex.test(this.phoneNumber.trim())) {
|
|
285
|
+
Message.error('请输入正确的手机号');
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
// 验证验证码是否填写
|
|
289
|
+
if (!this.verificationCode.trim()) {
|
|
290
|
+
Message.error('请输入验证码');
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
// 验证验证码是否正确
|
|
294
|
+
this.isVerifyingCode = true;
|
|
295
|
+
try {
|
|
296
|
+
const result = await verifySmsCode(this.phoneNumber.trim(), this.verificationCode.trim(), 0);
|
|
297
|
+
if (!result.success) {
|
|
298
|
+
Message.error(result.message || '验证码错误');
|
|
299
|
+
this.isVerifyingCode = false;
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
catch (error) {
|
|
304
|
+
Message.error('验证码校验失败');
|
|
305
|
+
this.isVerifyingCode = false;
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
this.isVerifyingCode = false;
|
|
309
|
+
}
|
|
243
310
|
// 判断文件是否正在上传
|
|
244
311
|
if (await this.pcmUploadRef?.getIsUploading?.()) {
|
|
245
312
|
Message.info('文件上传中,请稍后');
|
|
@@ -249,13 +316,6 @@ const ZyghModal = class {
|
|
|
249
316
|
this.showChatModal = true;
|
|
250
317
|
this.isSubmitting = false;
|
|
251
318
|
};
|
|
252
|
-
// 处理规划完成事件
|
|
253
|
-
handlePlanningComplete = (event) => {
|
|
254
|
-
this.planningComplete.emit({
|
|
255
|
-
...event.detail,
|
|
256
|
-
type: this.selectedPlanType
|
|
257
|
-
});
|
|
258
|
-
};
|
|
259
319
|
render() {
|
|
260
320
|
if (!this.isOpen)
|
|
261
321
|
return null;
|
|
@@ -273,35 +333,39 @@ const ZyghModal = class {
|
|
|
273
333
|
};
|
|
274
334
|
// 显示加载状态
|
|
275
335
|
const isLoading = this.conversationId && !this.showChatModal;
|
|
276
|
-
//
|
|
277
|
-
const
|
|
278
|
-
//
|
|
279
|
-
const
|
|
280
|
-
return (h("div", { class: overlayClass, style: modalStyle }, h("div", { class: containerClass }, this.isShowHeader && (h("div", { class: "modal-header" }, h("div", { class: "header-left" }, this.icon && h("img", { src: this.icon, class: "header-icon", alt: "\u5E94\u7528\u56FE\u6807" }), h("div", null, this.modalTitle)
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
'running': conversation.status === '进行中',
|
|
284
|
-
} }, conversation.status))))))))), !this.isLoadingConversations && (this.historyConversationPageIndex > 0 || this.hasMoreHistoryConversations) && (h("div", { class: "history-pagination" }, h("button", { type: "button", class: "history-pagination-button", disabled: this.historyConversationPageIndex === 0, onClick: () => this.handleHistoryConversationPageChange('prev') }, "\u4E0A\u4E00\u9875"), h("span", { class: "history-pagination-info" }, "\u7B2C ", this.historyConversationPageIndex + 1, " \u9875"), h("button", { type: "button", class: "history-pagination-button", disabled: !this.hasMoreHistoryConversations, onClick: () => this.handleHistoryConversationPageChange('next') }, "\u4E0B\u4E00\u9875")))))), !this.showChatModal && !this.conversationId && !hasFileAndType && (h("div", { class: "input-container" }, h("div", { class: "plan-type-section" }, h("label", null, "\u9009\u62E9\u89C4\u5212\u7C7B\u578B"), h("div", { class: "plan-type-options" }, h("div", { class: `plan-type-option ${this.selectedPlanType === '长期规划' ? 'selected' : ''}`, onClick: () => this.handlePlanTypeChange('长期规划') }, h("div", { class: "option-icon" }, "\uD83D\uDCC8"), h("div", { class: "option-label" }, "\u957F\u671F\u89C4\u5212")), h("div", { class: `plan-type-option ${this.selectedPlanType === '转行建议' ? 'selected' : ''}`, onClick: () => this.handlePlanTypeChange('转行建议') }, h("div", { class: "option-icon" }, "\uD83D\uDD04"), h("div", { class: "option-label" }, "\u8F6C\u884C\u5EFA\u8BAE")), h("div", { class: `plan-type-option ${this.selectedPlanType === '晋升路径' ? 'selected' : ''}`, onClick: () => this.handlePlanTypeChange('晋升路径') }, h("div", { class: "option-icon" }, "\uD83D\uDE80"), h("div", { class: "option-label" }, "\u664B\u5347\u8DEF\u5F84")))), !hideResumeUpload && (h("div", { class: "resume-upload-section" }, h("label", null, "\u4E0A\u4F20\u7B80\u5386"), h("components-upload", { ref: el => this.pcmUploadRef = el, maxFileSize: 15 * 1024 * 1024, multiple: false, mobileUploadAble: this.mobileUploadAble, acceptFileSuffixList: ['.txt', '.md', '.pdf', '.docx', '.doc'], uploadParams: {
|
|
336
|
+
// 判断是否禁用JD输入区域(有预设job_info时禁用)
|
|
337
|
+
const disableJdInput = Boolean(this.customInputs && this.customInputs.job_info);
|
|
338
|
+
// 判断是否禁用简历上传区域(有预设file_url时禁用)
|
|
339
|
+
const disableResumeUpload = Boolean(this.customInputs && this.customInputs.file_url);
|
|
340
|
+
return (h("div", { class: overlayClass, style: modalStyle }, h("div", { class: containerClass }, this.isShowHeader && (h("div", { class: "modal-header" }, h("div", { class: "header-left" }, this.icon && h("img", { src: this.icon, class: "header-icon", alt: "\u5E94\u7528\u56FE\u6807" }), h("div", null, this.modalTitle)), this.isNeedClose && (h("button", { class: "close-button", onClick: this.handleClose }, h("span", null, "\u00D7"))))), !this.showChatModal && !this.conversationId && (h("div", { class: "input-container" }, h("div", { class: "jd-input-section" }, h("div", { class: "label-with-button" }, h("label", { htmlFor: "job-description" }, "\u8BF7\u8F93\u5165\u804C\u4F4D\u63CF\u8FF0 (JD)"), !disableJdInput && (h("div", { class: "button-group" }, this.oemId && (h("button", { class: "position-selector-button", onClick: this.handleOpenPositionSelector, type: "button" }, "\u9009\u62E9\u804C\u4F4D")), h("components-mobile-input-btn", { name: "\u804C\u4F4D\u63CF\u8FF0", onOk: (e) => {
|
|
341
|
+
this.jobDescription = e.detail;
|
|
342
|
+
} })))), h("textarea", { id: "job-description", class: "job-description-textarea", placeholder: "\u8BF7\u8F93\u5165\u804C\u4F4D\u63CF\u8FF0\uFF0C\u5305\u62EC\u804C\u8D23\u3001\u8981\u6C42\u7B49\u4FE1\u606F...", rows: 6, value: this.customInputs?.job_info || this.jobDescription, onInput: this.handleJobDescriptionChange, disabled: disableJdInput })), h("div", { class: "resume-upload-section" }, h("label", null, "\u4E0A\u4F20\u7B80\u5386"), h("components-mobile-upload-btn", { maxFileSize: 15 * 1024 * 1024, multiple: false, uploadAreaMode: true, acceptFileSuffixList: ['.txt', '.md', '.pdf', '.docx', '.doc'], uploadParams: {
|
|
285
343
|
tags: ['resume'],
|
|
286
|
-
},
|
|
344
|
+
}, defaultFileList: this.customInputs?.file_url ? [{
|
|
345
|
+
cos_key: this.customInputs.file_url,
|
|
346
|
+
file_name: this.customInputs?.file_name || '预设简历',
|
|
347
|
+
file_size: 0,
|
|
348
|
+
ext: '',
|
|
349
|
+
}] : undefined, disabled: disableResumeUpload, onOk: (e) => {
|
|
287
350
|
const result = e.detail ?? [];
|
|
288
351
|
this.uploadedFileInfo = result[0];
|
|
289
352
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
290
|
-
} }))), h("button", { class: "submit-button", disabled: (!this.
|
|
353
|
+
} })), h("div", { class: "jd-input-section" }, h("label", null, "\u624B\u673A\u53F7\uFF08\u9009\u586B\uFF0C\u586B\u5199\u540E\u7ED3\u679C\u5C06\u901A\u8FC7\u77ED\u4FE1\u53D1\u9001\uFF09"), h("input", { type: "tel", class: "phone-input", placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7", maxLength: 11, value: this.phoneNumber, onInput: this.handlePhoneNumberChange })), this.phoneNumber.trim().length === 11 && (h("div", { class: "jd-input-section" }, h("label", null, "\u9A8C\u8BC1\u7801"), h("div", { class: "verification-code-container" }, h("input", { type: "text", class: "verification-code-input", placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801", maxLength: 6, value: this.verificationCode, onInput: this.handleVerificationCodeChange }), h("button", { class: "send-code-button", disabled: this.isSendingCode || this.countdown > 0 || !this.phoneNumber.trim(), onClick: this.handleSendCode }, this.isSendingCode ? '发送中...' : this.countdown > 0 ? `${this.countdown}秒` : '发送验证码')))), h("button", { class: "submit-button", disabled: (!disableResumeUpload && !this.uploadedFileInfo) || !(this.customInputs?.job_info || this.jobDescription.trim()) || this.isUploading || this.isSubmitting || this.isVerifyingCode, onClick: this.handleStartAnalysis }, this.isUploading ? '上传中...' : this.isVerifyingCode ? '验证中...' : this.isSubmitting ? '处理中...' : '开始分析'), h("div", { class: "ai-disclaimer" }, h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), h("p", { class: "beian-info" }, h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (h("div", { class: "loading-container" }, h("div", { class: "loading-spinner" }), h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (h("div", null, h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, showWorkspaceHistory: this.showWorkspaceHistory, botId: "3022316191018881", customInputs: {
|
|
291
354
|
...this.customInputs,
|
|
292
355
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
293
356
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
294
|
-
|
|
295
|
-
|
|
357
|
+
job_info: this.customInputs?.job_info || this.jobDescription,
|
|
358
|
+
phone: this.phoneNumber.trim() || undefined
|
|
359
|
+
}, interviewMode: "text" })))), this.showPositionSelector && (h("div", { class: "position-selector-modal-overlay" }, h("div", { class: "position-selector-modal" }, h("div", { class: "position-selector-modal-header" }, h("h3", null, "\u9009\u62E9\u804C\u4F4D"), h("button", { class: "position-selector-close-btn", onClick: this.handleClosePositionSelector }, "\u00D7")), h("div", { class: "position-selector-modal-body" }, h("components-position-selector", { oemId: this.oemId, multiple: false, onPositionSelected: this.handlePositionSelected })))))));
|
|
296
360
|
}
|
|
297
361
|
static get watchers() { return {
|
|
298
362
|
"token": ["handleTokenChange"],
|
|
299
363
|
"isOpen": ["handleIsOpenChange"]
|
|
300
364
|
}; }
|
|
301
365
|
};
|
|
302
|
-
|
|
366
|
+
OemJlppModal.style = oemJlppModalCss + (globalCss + hostCss);
|
|
303
367
|
|
|
304
|
-
export {
|
|
305
|
-
//# sourceMappingURL=
|
|
368
|
+
export { OemJlppModal as oem_jlpp_modal };
|
|
369
|
+
//# sourceMappingURL=oem-jlpp-modal.entry.js.map
|
|
306
370
|
|
|
307
|
-
//# sourceMappingURL=
|
|
371
|
+
//# sourceMappingURL=oem-jlpp-modal.entry.js.map
|