pcm-agents 1.0.19 → 1.0.20
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/LICENSE +21 -21
- package/dist/cjs/app-globals-BIO4q6tX.js.map +1 -1
- package/dist/cjs/{components-chat-message_33.cjs.entry.js → components-chat-message_31.cjs.entry.js} +2429 -320
- package/dist/cjs/components-chat-message_31.cjs.entry.js.map +1 -0
- package/dist/cjs/components-oem-virtual-chat-modal.cjs.entry.js +2 -2
- package/dist/cjs/{conversation-utils-CKlwCDRf.js → conversation-utils-s_nVpMzq.js} +4 -4
- package/dist/cjs/{conversation-utils-CKlwCDRf.js.map → conversation-utils-s_nVpMzq.js.map} +1 -1
- package/dist/cjs/index-C_qhED9Z.js +2 -2
- package/dist/cjs/{index-DLbq5wiz.js → index-DAdBAmyB.js} +3 -3
- package/dist/cjs/{index-DLbq5wiz.js.map → index-DAdBAmyB.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/markdown-D3_atg0b.js +2564 -0
- package/dist/cjs/{markdown-C0QWZi9Q.js.map → markdown-D3_atg0b.js.map} +1 -1
- package/dist/cjs/oem-cast-modal.cjs.entry.js +1 -1
- package/dist/cjs/oem-htws-modal.cjs.entry.js +6 -2
- package/dist/cjs/oem-htws-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/oem-htws-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/oem-jd-modal.cjs.entry.js +7 -3
- package/dist/cjs/oem-jd-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/oem-jd-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/oem-jlpp-modal.cjs.entry.js +6 -2
- package/dist/cjs/oem-jlpp-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/oem-jlpp-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/oem-jlzz-modal.cjs.entry.js +7 -3
- package/dist/cjs/oem-jlzz-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/oem-jlzz-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/oem-mnct-modal.cjs.entry.js +6 -2
- package/dist/cjs/oem-mnct-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/oem-mnct-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/oem-mnms-modal.cjs.entry.js +7 -3
- package/dist/cjs/oem-mnms-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/oem-mnms-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/oem-qgqjl-modal.cjs.entry.js +9 -5
- package/dist/cjs/oem-qgqjl-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/oem-qgqjl-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/pcm-agents.cjs.js +1 -1
- package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +2 -2
- package/dist/cjs/pcm-jlsx-modal.cjs.entry.js +8 -4
- 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-BmrqhSKs.js → sentry-reporter-DR35XbVc.js} +3 -3
- package/dist/cjs/{sentry-reporter-BmrqhSKs.js.map → sentry-reporter-DR35XbVc.js.map} +1 -1
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/components-upload/components-upload.js +1 -1
- package/dist/collection/components/components-voice-input-btn/components-voice-input-btn.css +67 -67
- package/dist/collection/components/components-voice-input-btn/components-voice-input-btn.js +2 -2
- package/dist/collection/components/components-voice-input-btn/components-voice-input-btn.js.map +1 -1
- package/dist/collection/components/oem-cast-modal/oem-cast-modal.js +1 -1
- package/dist/collection/components/oem-htws-modal/oem-htws-modal.js +25 -1
- package/dist/collection/components/oem-htws-modal/oem-htws-modal.js.map +1 -1
- package/dist/collection/components/oem-jd-modal/oem-jd-modal.js +25 -1
- package/dist/collection/components/oem-jd-modal/oem-jd-modal.js.map +1 -1
- package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.js +25 -1
- package/dist/collection/components/oem-jlpp-modal/oem-jlpp-modal.js.map +1 -1
- package/dist/collection/components/oem-jlsx-modal/oem-jlsx-modal.js +25 -1
- package/dist/collection/components/oem-jlsx-modal/oem-jlsx-modal.js.map +1 -1
- package/dist/collection/components/oem-jlzz-modal/oem-jlzz-modal.js +26 -2
- package/dist/collection/components/oem-jlzz-modal/oem-jlzz-modal.js.map +1 -1
- package/dist/collection/components/oem-mnct-modal/oem-mnct-modal.js +25 -1
- package/dist/collection/components/oem-mnct-modal/oem-mnct-modal.js.map +1 -1
- package/dist/collection/components/oem-mnms-modal/oem-mnms-modal.js +26 -2
- package/dist/collection/components/oem-mnms-modal/oem-mnms-modal.js.map +1 -1
- package/dist/collection/components/oem-qgqjl-modal/oem-qgqjl-modal.js +26 -2
- package/dist/collection/components/oem-qgqjl-modal/oem-qgqjl-modal.js.map +1 -1
- package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.js +26 -2
- package/dist/collection/components/oem-zygh-modal/oem-zygh-modal.js.map +1 -1
- package/dist/collection/components/pcm-1zhanshi-mnms-modal/pcm-1zhanshi-mnms-modal.js +25 -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.js +25 -1
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-ats-mnms-modal/pcm-ats-mnms-modal.js +25 -1
- package/dist/collection/components/pcm-ats-mnms-modal/pcm-ats-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +25 -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 +25 -1
- package/dist/collection/components/pcm-hyzj-modal/pcm-hyzj-modal.js.map +1 -1
- package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js +25 -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 +25 -1
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +1 -1
- package/dist/collection/components/pcm-jlsx-modal/pcm-jlsx-modal.js +25 -1
- package/dist/collection/components/pcm-jlsx-modal/pcm-jlsx-modal.js.map +1 -1
- package/dist/collection/components/pcm-jlzz-modal/pcm-jlzz-modal.js +26 -2
- package/dist/collection/components/pcm-jlzz-modal/pcm-jlzz-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js +26 -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 +26 -2
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js +26 -2
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js +25 -1
- package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js.map +1 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js +26 -2
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js.map +1 -1
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +26 -2
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -1
- package/dist/collection/components/pcm-zygh-v2-modal/pcm-zygh-v2-modal.js +26 -2
- package/dist/collection/components/pcm-zygh-v2-modal/pcm-zygh-v2-modal.js.map +1 -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/index.js.map +1 -1
- package/dist/components/oem-cast-modal.js +1 -1
- package/dist/components/oem-htws-modal.js +11 -6
- package/dist/components/oem-htws-modal.js.map +1 -1
- package/dist/components/oem-jd-modal.js +11 -6
- package/dist/components/oem-jd-modal.js.map +1 -1
- package/dist/components/oem-jlpp-modal.js +13 -8
- package/dist/components/oem-jlpp-modal.js.map +1 -1
- package/dist/components/oem-jlsx-modal.js +12 -7
- package/dist/components/oem-jlsx-modal.js.map +1 -1
- package/dist/components/oem-jlzz-modal.js +12 -7
- package/dist/components/oem-jlzz-modal.js.map +1 -1
- package/dist/components/oem-mnct-modal.js +13 -8
- package/dist/components/oem-mnct-modal.js.map +1 -1
- package/dist/components/oem-mnms-modal.js +15 -10
- package/dist/components/oem-mnms-modal.js.map +1 -1
- package/dist/components/oem-qgqjl-modal.js +16 -11
- package/dist/components/oem-qgqjl-modal.js.map +1 -1
- package/dist/components/oem-zygh-modal.js +11 -6
- package/dist/components/oem-zygh-modal.js.map +1 -1
- package/dist/components/{p-ChHHPVqa.js → p-53YKry0i.js} +12 -7
- package/dist/components/p-53YKry0i.js.map +1 -0
- package/dist/components/p-B85MJLTf.js +8 -0
- package/dist/components/p-B85MJLTf.js.map +1 -0
- package/dist/components/{p-CRuYvhDS.js → p-By3OtTlN.js} +3 -3
- package/dist/components/{p-CRuYvhDS.js.map → p-By3OtTlN.js.map} +1 -1
- package/dist/components/{p-BFBILVHb.js → p-C-RZ-vJH.js} +3 -3
- package/dist/components/{p-BFBILVHb.js.map → p-C-RZ-vJH.js.map} +1 -1
- package/dist/components/{p-BbgkkZ8z.js → p-C1pgC3Jv.js} +3 -3
- package/dist/components/{p-BbgkkZ8z.js.map → p-C1pgC3Jv.js.map} +1 -1
- package/dist/components/{p-OFgPkEGL.js → p-C4npZucW.js} +4 -4
- package/dist/components/{p-OFgPkEGL.js.map → p-C4npZucW.js.map} +1 -1
- package/dist/components/{p-CUgq8UDs.js → p-CPRmVvQS.js} +4 -4
- package/dist/components/p-CPRmVvQS.js.map +1 -0
- package/dist/components/{p-sXNEbeK0.js → p-CjAaZc9n.js} +3 -3
- package/dist/components/{p-sXNEbeK0.js.map → p-CjAaZc9n.js.map} +1 -1
- package/dist/components/{p-BsVthfPT.js → p-Cp8-JkXG.js} +4 -4
- package/dist/components/{p-BsVthfPT.js.map → p-Cp8-JkXG.js.map} +1 -1
- package/dist/components/p-D483moFs.js +2310 -0
- package/dist/components/p-D483moFs.js.map +1 -0
- package/dist/components/{p-DW7If7Qd.js → p-D9KmSj_x.js} +5 -4
- package/dist/components/p-D9KmSj_x.js.map +1 -0
- package/dist/components/{p-BM8LfA-I.js → p-DSd0hTX7.js} +4 -4
- package/dist/components/{p-BM8LfA-I.js.map → p-DSd0hTX7.js.map} +1 -1
- package/dist/components/{p-DMxCytIw.js → p-Dlk1tp9R.js} +4 -4
- package/dist/components/{p-DMxCytIw.js.map → p-Dlk1tp9R.js.map} +1 -1
- package/dist/components/{p-BMyYj4Nh.js → p-DrKxtpsI.js} +3 -3
- package/dist/components/{p-BMyYj4Nh.js.map → p-DrKxtpsI.js.map} +1 -1
- package/dist/components/p-DuXrU5Qi.js +2559 -0
- package/dist/components/p-DuXrU5Qi.js.map +1 -0
- package/dist/components/{p-aK_x2dmu.js → p-mVRqIhzD.js} +3 -3
- package/dist/components/{p-aK_x2dmu.js.map → p-mVRqIhzD.js.map} +1 -1
- package/dist/components/{p-C5cxtSmw.js → p-yzl8QYOf.js} +3 -3
- package/dist/components/{p-C5cxtSmw.js.map → p-yzl8QYOf.js.map} +1 -1
- package/dist/components/pcm-1zhanshi-mnms-modal.js +11 -6
- 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-ats-mnms-modal.js +11 -6
- package/dist/components/pcm-ats-mnms-modal.js.map +1 -1
- package/dist/components/pcm-hr-chat-modal.js +2 -2
- package/dist/components/pcm-htws-modal.js +14 -9
- package/dist/components/pcm-htws-modal.js.map +1 -1
- package/dist/components/pcm-hyzj-modal.js +11 -6
- package/dist/components/pcm-hyzj-modal.js.map +1 -1
- package/dist/components/pcm-jd-modal.js +12 -7
- package/dist/components/pcm-jd-modal.js.map +1 -1
- package/dist/components/pcm-jlpp-modal.js +14 -9
- package/dist/components/pcm-jlpp-modal.js.map +1 -1
- package/dist/components/pcm-jlsx-modal.js +12 -7
- package/dist/components/pcm-jlsx-modal.js.map +1 -1
- package/dist/components/pcm-jlzz-modal.js +13 -8
- package/dist/components/pcm-jlzz-modal.js.map +1 -1
- package/dist/components/pcm-mnct-modal.js +14 -9
- package/dist/components/pcm-mnct-modal.js.map +1 -1
- package/dist/components/pcm-mnms-modal.js +15 -10
- package/dist/components/pcm-mnms-modal.js.map +1 -1
- package/dist/components/pcm-mnms-zp-modal.js +15 -10
- package/dist/components/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/components/pcm-msbg-modal.js +11 -6
- package/dist/components/pcm-msbg-modal.js.map +1 -1
- package/dist/components/pcm-qgqjl-modal.js +16 -11
- package/dist/components/pcm-qgqjl-modal.js.map +1 -1
- package/dist/components/pcm-virtual-chat-modal.js +1 -1
- package/dist/components/pcm-zsk-chat-modal.js +3 -3
- package/dist/components/pcm-zygh-modal.js +13 -8
- package/dist/components/pcm-zygh-modal.js.map +1 -1
- package/dist/components/pcm-zygh-v2-modal.js +13 -8
- package/dist/components/pcm-zygh-v2-modal.js.map +1 -1
- package/dist/esm/app-globals-Chti62re.js.map +1 -1
- package/dist/esm/{components-chat-message_33.entry.js → components-chat-message_31.entry.js} +2430 -319
- package/dist/esm/components-chat-message_31.entry.js.map +1 -0
- package/dist/esm/components-oem-virtual-chat-modal.entry.js +2 -2
- package/dist/esm/{conversation-utils-BGcxaSyr.js → conversation-utils-DQ2uwLtT.js} +4 -4
- package/dist/esm/{conversation-utils-BGcxaSyr.js.map → conversation-utils-DQ2uwLtT.js.map} +1 -1
- package/dist/esm/index-Bq0K-WqZ.js +2 -2
- package/dist/esm/{index-BaYctFVD.js → index-kfrWoYxt.js} +3 -3
- package/dist/esm/{index-BaYctFVD.js.map → index-kfrWoYxt.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/markdown-DcmYnk0q.js +2561 -0
- package/dist/esm/{markdown-CnhOGURu.js.map → markdown-DcmYnk0q.js.map} +1 -1
- package/dist/esm/oem-cast-modal.entry.js +1 -1
- package/dist/esm/oem-htws-modal.entry.js +6 -2
- package/dist/esm/oem-htws-modal.entry.js.map +1 -1
- package/dist/esm/oem-jd-modal.entry.js +7 -3
- package/dist/esm/oem-jd-modal.entry.js.map +1 -1
- package/dist/esm/oem-jlpp-modal.entry.js +6 -2
- package/dist/esm/oem-jlpp-modal.entry.js.map +1 -1
- package/dist/esm/oem-jlzz-modal.entry.js +7 -3
- package/dist/esm/oem-jlzz-modal.entry.js.map +1 -1
- package/dist/esm/oem-mnct-modal.entry.js +6 -2
- package/dist/esm/oem-mnct-modal.entry.js.map +1 -1
- package/dist/esm/oem-mnms-modal.entry.js +7 -3
- package/dist/esm/oem-mnms-modal.entry.js.map +1 -1
- package/dist/esm/oem-qgqjl-modal.entry.js +9 -5
- package/dist/esm/oem-qgqjl-modal.entry.js.map +1 -1
- package/dist/esm/pcm-agents.js +1 -1
- package/dist/esm/pcm-hr-chat-modal.entry.js +2 -2
- package/dist/esm/pcm-jlsx-modal.entry.js +8 -4
- package/dist/esm/pcm-jlsx-modal.entry.js.map +1 -1
- package/dist/esm/{sentry-reporter-CQ8bX8AM.js → sentry-reporter-YZTzmY6w.js} +3 -3
- package/dist/esm/{sentry-reporter-CQ8bX8AM.js.map → sentry-reporter-YZTzmY6w.js.map} +1 -1
- package/dist/pcm-agents/index.esm.js +1 -1
- package/dist/pcm-agents/oem-htws-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/oem-jd-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/oem-jlpp-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/oem-jlzz-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/oem-mnct-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/oem-mnms-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/oem-qgqjl-modal.entry.esm.js.map +1 -1
- package/dist/pcm-agents/p-17523d4c.entry.js +2 -0
- package/dist/pcm-agents/{p-52b8396f.entry.js → p-26996eda.entry.js} +2 -2
- package/dist/pcm-agents/p-26996eda.entry.js.map +1 -0
- package/dist/pcm-agents/{p-d25b1c70.entry.js → p-26f57e7b.entry.js} +2 -2
- package/dist/pcm-agents/p-26f57e7b.entry.js.map +1 -0
- package/dist/pcm-agents/{p-a33ebff7.entry.js → p-4d649f2a.entry.js} +2 -2
- package/dist/pcm-agents/p-4d649f2a.entry.js.map +1 -0
- package/dist/pcm-agents/{p-85b37d21.entry.js → p-54dc87b9.entry.js} +2 -2
- package/dist/pcm-agents/{p-07d0bfa5.entry.js → p-57c1b476.entry.js} +2 -2
- package/dist/pcm-agents/p-6ee0ae10.entry.js +8 -0
- package/dist/pcm-agents/p-6ee0ae10.entry.js.map +1 -0
- package/dist/pcm-agents/{p-415d021b.entry.js → p-7225d0ca.entry.js} +2 -2
- package/dist/pcm-agents/{p-86c15766.entry.js → p-893dbe28.entry.js} +2 -2
- package/dist/pcm-agents/p-893dbe28.entry.js.map +1 -0
- package/dist/pcm-agents/{p-BUe4kiCQ.js → p-Bd4_jEOe.js} +2 -2
- package/dist/pcm-agents/{p-BUe4kiCQ.js.map → p-Bd4_jEOe.js.map} +1 -1
- package/dist/pcm-agents/{p-DzZpAxqF.js → p-CGa8AOoe.js} +2 -2
- package/dist/pcm-agents/{p-DzZpAxqF.js.map → p-CGa8AOoe.js.map} +1 -1
- package/dist/pcm-agents/p-CeRTfvY9.js.map +1 -1
- package/dist/pcm-agents/p-DcmYnk0q.js +2 -0
- package/dist/pcm-agents/{p-CnhOGURu.js.map → p-DcmYnk0q.js.map} +1 -1
- package/dist/pcm-agents/{p-DpK1mBu7.js → p-I2lIWOKl.js} +2 -2
- package/dist/pcm-agents/{p-DpK1mBu7.js.map → p-I2lIWOKl.js.map} +1 -1
- package/dist/pcm-agents/{p-c95e6896.entry.js → p-ba2e1a60.entry.js} +2 -2
- package/dist/pcm-agents/{p-cd2844d8.entry.js → p-c9bddaf0.entry.js} +2 -2
- package/dist/pcm-agents/{p-900ade9f.entry.js → p-f1de36bb.entry.js} +2 -2
- package/dist/pcm-agents/p-f1de36bb.entry.js.map +1 -0
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/pcm-agents/pcm-jlsx-modal.entry.esm.js.map +1 -1
- package/dist/types/components/oem-htws-modal/oem-htws-modal.d.ts +4 -0
- package/dist/types/components/oem-jd-modal/oem-jd-modal.d.ts +4 -0
- package/dist/types/components/oem-jlpp-modal/oem-jlpp-modal.d.ts +4 -0
- package/dist/types/components/oem-jlsx-modal/oem-jlsx-modal.d.ts +4 -0
- package/dist/types/components/oem-jlzz-modal/oem-jlzz-modal.d.ts +4 -0
- package/dist/types/components/oem-mnct-modal/oem-mnct-modal.d.ts +4 -0
- package/dist/types/components/oem-mnms-modal/oem-mnms-modal.d.ts +4 -0
- package/dist/types/components/oem-qgqjl-modal/oem-qgqjl-modal.d.ts +4 -0
- package/dist/types/components/oem-zygh-modal/oem-zygh-modal.d.ts +4 -0
- package/dist/types/components/pcm-1zhanshi-mnms-modal/pcm-1zhanshi-mnms-modal.d.ts +4 -0
- package/dist/types/components/pcm-app-chat-modal/pcm-app-chat-modal.d.ts +4 -0
- package/dist/types/components/pcm-ats-mnms-modal/pcm-ats-mnms-modal.d.ts +4 -0
- package/dist/types/components/pcm-htws-modal/pcm-htws-modal.d.ts +4 -0
- package/dist/types/components/pcm-hyzj-modal/pcm-hyzj-modal.d.ts +4 -0
- package/dist/types/components/pcm-jd-modal/pcm-jd-modal.d.ts +4 -0
- package/dist/types/components/pcm-jlpp-modal/pcm-jlpp-modal.d.ts +4 -0
- package/dist/types/components/pcm-jlsx-modal/pcm-jlsx-modal.d.ts +4 -0
- package/dist/types/components/pcm-jlzz-modal/pcm-jlzz-modal.d.ts +4 -0
- package/dist/types/components/pcm-mnct-modal/pcm-mnct-modal.d.ts +4 -0
- package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +4 -0
- package/dist/types/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.d.ts +4 -0
- package/dist/types/components/pcm-msbg-modal/pcm-msbg-modal.d.ts +4 -0
- package/dist/types/components/pcm-qgqjl-modal/pcm-qgqjl-modal.d.ts +4 -0
- package/dist/types/components/pcm-zygh-modal/pcm-zygh-modal.d.ts +4 -0
- package/dist/types/components/pcm-zygh-v2-modal/pcm-zygh-v2-modal.d.ts +4 -0
- package/dist/types/components.d.ts +200 -261
- package/package.json +1 -1
- package/readme.md +307 -307
- package/dist/cjs/components-chat-message_33.cjs.entry.js.map +0 -1
- package/dist/cjs/markdown-C0QWZi9Q.js +0 -2674
- package/dist/collection/components/pcm-button/pcm-button.css +0 -199
- package/dist/collection/components/pcm-button/pcm-button.js +0 -374
- package/dist/collection/components/pcm-button/pcm-button.js.map +0 -1
- package/dist/collection/components/pcm-card/pcm-card.css +0 -260
- package/dist/collection/components/pcm-card/pcm-card.js +0 -402
- package/dist/collection/components/pcm-card/pcm-card.js.map +0 -1
- package/dist/components/p-CUgq8UDs.js.map +0 -1
- package/dist/components/p-ChHHPVqa.js.map +0 -1
- package/dist/components/p-CnhOGURu.js +0 -2671
- package/dist/components/p-CnhOGURu.js.map +0 -1
- package/dist/components/p-DW7If7Qd.js.map +0 -1
- package/dist/components/pcm-button.d.ts +0 -11
- package/dist/components/pcm-button.js +0 -140
- package/dist/components/pcm-button.js.map +0 -1
- package/dist/components/pcm-card.d.ts +0 -11
- package/dist/components/pcm-card.js +0 -202
- package/dist/components/pcm-card.js.map +0 -1
- package/dist/esm/components-chat-message_33.entry.js.map +0 -1
- package/dist/esm/markdown-CnhOGURu.js +0 -2671
- package/dist/pcm-agents/p-52b8396f.entry.js.map +0 -1
- package/dist/pcm-agents/p-86c15766.entry.js.map +0 -1
- package/dist/pcm-agents/p-900ade9f.entry.js.map +0 -1
- package/dist/pcm-agents/p-CnhOGURu.js +0 -2
- package/dist/pcm-agents/p-a33ebff7.entry.js.map +0 -1
- package/dist/pcm-agents/p-be640465.entry.js +0 -2
- package/dist/pcm-agents/p-d25b1c70.entry.js.map +0 -1
- package/dist/pcm-agents/p-f2445cbd.entry.js +0 -8
- package/dist/pcm-agents/p-f2445cbd.entry.js.map +0 -1
- package/dist/types/components/pcm-button/pcm-button.d.ts +0 -64
- package/dist/types/components/pcm-card/pcm-card.d.ts +0 -79
- /package/dist/pcm-agents/{p-be640465.entry.js.map → p-17523d4c.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-85b37d21.entry.js.map → p-54dc87b9.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-07d0bfa5.entry.js.map → p-57c1b476.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-415d021b.entry.js.map → p-7225d0ca.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-c95e6896.entry.js.map → p-ba2e1a60.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-cd2844d8.entry.js.map → p-c9bddaf0.entry.js.map} +0 -0
- /package/dist/types/code/{sdk → agents-sdk}/packages/pcm-agents/.stencil/store/auth.store.d.ts +0 -0
- /package/dist/types/code/{sdk → agents-sdk}/packages/pcm-agents/.stencil/store/config.store.d.ts +0 -0
package/dist/cjs/{components-chat-message_33.cjs.entry.js → components-chat-message_31.cjs.entry.js}
RENAMED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var markdown = require('./markdown-
|
|
5
|
-
var index$1 = require('./index-
|
|
4
|
+
var markdown = require('./markdown-D3_atg0b.js');
|
|
5
|
+
var index$1 = require('./index-DAdBAmyB.js');
|
|
6
6
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
7
|
-
var sentryReporter = require('./sentry-reporter-
|
|
7
|
+
var sentryReporter = require('./sentry-reporter-DR35XbVc.js');
|
|
8
8
|
var message_service = require('./message.service-BLgUOl2N.js');
|
|
9
|
-
var qrcode = require('qrcode-generator');
|
|
10
9
|
var messageUtils = require('./message-utils-C8eJnzLy.js');
|
|
11
|
-
var conversationUtils = require('./conversation-utils-
|
|
10
|
+
var conversationUtils = require('./conversation-utils-s_nVpMzq.js');
|
|
12
11
|
require('./exports-Dc-pQh4A.js');
|
|
13
12
|
|
|
14
13
|
var clipboard$1 = {exports: {}};
|
|
@@ -976,7 +975,7 @@ const markdownCss$2 = ".markdown-body{--base-size-4:4px;--base-size-8:8px;--base
|
|
|
976
975
|
|
|
977
976
|
const componentsChatMessageCss = ":host{display:block;width:100%}.message-round{margin-bottom:16px;width:100%}.user-message-container{display:flex;flex-direction:row-reverse;align-items:flex-start;margin-bottom:15px;position:relative}.assistant-message-container{display:flex;flex-direction:row;align-items:flex-start;margin-bottom:15px;position:relative}.message-bubble{max-width:85%;position:relative}.user-message{padding:5px 10px;background:#f5f7ff;font-size:14px;color:#1F2328;border-radius:6px;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.1)}.assistant-message{padding:15px 10px;background-color:#fff;border-radius:6px;font-size:14px;color:#1F2328;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.message-time{font-size:12px;color:#999;margin-top:4px}.user-message-container .message-time{color:rgba(255, 255, 255, 0.7)}.loading-dots{display:flex;align-items:center;padding:12px 16px;background-color:#f0f0f0;border-radius:18px;border-top-left-radius:4px}.loading-dots span{width:8px;height:8px;margin:0 3px;background-color:#999;border-radius:50%;display:inline-block;animation:dot-pulse 1.5s infinite ease-in-out}.loading-dots span:nth-child(2){animation-delay:0.2s}.loading-dots span:nth-child(3){animation-delay:0.4s}@keyframes dot-pulse{0%,80%,100%{transform:scale(0.8);opacity:0.5}40%{transform:scale(1.2);opacity:1}}.file-view{margin-top:8px;padding:12px;background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;font-size:14px;word-break:break-all;color:#2c3e50;line-height:1.5;box-shadow:0 1px 2px rgba(0, 0, 0, 0.05)}.input-view{margin-top:8px;margin-bottom:10px;padding-bottom:10px;border:1px solid #e9ecef;border-radius:6px;overflow:hidden;background-color:#ffffff;box-shadow:0 1px 2px rgba(0, 0, 0, 0.05)}.input-label-container{display:flex;align-items:center;margin-bottom:4px;background-color:#f8f9fa;border-bottom:1px solid #e9ecef;padding:8px 12px}.copy-input-button{background:transparent;border:none;cursor:pointer;padding:2px;display:flex;align-items:center;justify-content:center;color:#8c8c8c;opacity:0.7;transition:opacity 0.2s ease;margin-left:5px}.copy-input-button:hover{opacity:1;color:#1677ff}.input-label{font-size:13px;font-weight:600;color:#495057}.input-value{padding:12px 12px 0px;font-size:14px;line-height:1.5;color:#2c3e50;background-color:#ffffff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.input-metadata{font-size:13px;margin-top:8px}.message-actions{display:flex;align-items:center;gap:8px;transition:opacity 0.2s ease;margin-top:15px}.action-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d9d9d9;border-radius:6px;padding:4px 15px;font-size:14px;height:32px;background-color:white;cursor:pointer;color:rgba(0, 0, 0, 0.88);transition:all 0.2s}.action-button:hover{color:#1677ff;border-color:#1677ff}.action-button.primary{color:#1677ff;border-color:#1677ff}.action-button.primary:hover{color:#4096ff;border-color:#4096ff}.action-button.icon-only{padding:4px 8px;margin-right:9px}.button-icon{margin-right:8px;display:flex;align-items:center;justify-content:center}.icon-only .button-icon{margin-right:0}.file-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.file-item{display:flex;flex-direction:column;align-items:center;width:80px;cursor:pointer;padding:8px;border-radius:4px;transition:background-color 0.3s;margin:5px 10px}.file-item:hover{background-color:rgba(0, 0, 0, 0.04)}.file-icon{margin-bottom:4px}.file-name{font-size:12px;text-align:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8B4513}.action-button.active{color:#1677ff;background-color:rgba(22, 119, 255, 0.1)}.action-button.active .button-icon svg{stroke:#1677ff}.inputs-container{margin-top:8px;display:flex;flex-direction:column;gap:8px}.file-list{display:flex;flex-direction:column;gap:8px}.file-item{display:flex;align-items:center;padding:8px 12px;background-color:#f5f5f5;border-radius:6px;cursor:pointer;transition:background-color 0.2s}.file-item:hover{background-color:#e8e8e8}.file-icon{margin-right:8px}.file-name{font-size:14px;color:#333;word-break:break-word}.input-view{background-color:#f9f9f9;border-radius:8px;padding:12px;border:1px solid #e8e8e8}.input-label-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.input-label{font-weight:500;color:#333}.input-value{color:#666;line-height:1.5;word-break:break-word;max-height:200px;overflow-y:auto}.copy-input-button{background:none;border:none;cursor:pointer;color:#1677ff;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center}.copy-input-button:hover{background-color:rgba(22, 119, 255, 0.1)}.input-metadata{font-size:14px;color:#666;padding:4px 0}.file-card{display:flex;align-items:center;padding:12px;background:linear-gradient(150deg, #2a6ee933, #0000 50%) 0 0 / 200px 100px no-repeat, #fff;border-radius:8px;cursor:pointer;transition:background-color 0.2s;border:1px solid #e8e8e8;margin-top:8px}.file-card:hover{background-color:#f0f0f0}.file-card-icon{margin-right:12px;flex-shrink:0;border-radius:12px;background:#0d75fb;width:48px;height:48px;display:flex;align-items:center;justify-content:center}.file-card-icon img{width:40px;height:40px}.file-card-content{display:flex;flex-direction:column;flex:1;min-width:0}.file-card-type{font-size:14px;color:#8c8c8c;margin-bottom:4px}.file-card-name{font-size:16px;font-weight:500;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.copy-card-button{background:none;border:none;cursor:pointer;color:#8c8c8c;padding:8px;border-radius:4px;display:flex;align-items:center;justify-content:center;margin-left:8px;transition:color 0.2s}.copy-card-button:hover{color:#1677ff}.avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.user-avatar{margin-left:8px}.assistant-avatar{margin-right:8px}.retry-button{background-color:#ff6b35 !important;color:white !important;border:none !important}.retry-button:hover{background-color:#e55a2b !important}.retry-button .button-icon{margin-right:4px}.video-inputs-container{display:flex;flex-direction:column;align-items:end}.video-container{margin-top:0px;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1);background-color:#000;width:250px;height:auto;max-height:250px;transition:transform 0.2s ease, box-shadow 0.2s ease}.video-container:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.15)}.video-container video{display:block;width:100%;max-width:500px;height:auto;border-radius:8px}.video-container video:focus{outline:none}.video-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;background-color:#f8f9fa;border-radius:8px;color:#666;font-size:14px}.loading-spinner{width:24px;height:24px;border:2px solid #e9ecef;border-top:2px solid #1677ff;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:12px}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@media (max-width: 768px){.video-container{width:100%;max-width:300px}}";
|
|
978
977
|
|
|
979
|
-
const hostCss$
|
|
978
|
+
const hostCss$r = ":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}";
|
|
980
979
|
|
|
981
980
|
const ComponentsChatMessage = class {
|
|
982
981
|
constructor(hostRef) {
|
|
@@ -1426,11 +1425,11 @@ const ComponentsChatMessage = class {
|
|
|
1426
1425
|
return (index.h("div", { key: '1d8a2d0e91b29d46c6f4e097874bf097f6bb76a6', class: "message-round" }, this.renderUserMessage(), this.renderAssistantMessage()));
|
|
1427
1426
|
}
|
|
1428
1427
|
};
|
|
1429
|
-
ComponentsChatMessage.style = markdownCss$2 + (componentsChatMessageCss + hostCss$
|
|
1428
|
+
ComponentsChatMessage.style = markdownCss$2 + (componentsChatMessageCss + hostCss$r);
|
|
1430
1429
|
|
|
1431
1430
|
const componentsConfirmModalCss = ":host{display:block}.confirm-modal-container{position:fixed;top:0;left:0;width:0;height:0;overflow:visible}.confirm-modal-mask{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.45);opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease}.mask-visible{opacity:1;visibility:visible}.confirm-modal-content{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;padding:20px;opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease}.confirm-modal-content.centered{align-items:center}.modal-content-visible{opacity:1;visibility:visible}.modal-wrapper{background:white;border-radius:8px;width:100%;max-width:400px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow:hidden;transform:scale(0.9) translateY(-20px);transition:transform 0.3s cubic-bezier(0.23, 1, 0.32, 1)}.modal-content-visible .modal-wrapper{transform:scale(1) translateY(0)}.modal-header{padding:16px 24px;border-bottom:1px solid #f0f0f0;background:#fff}.modal-title{font-size:16px;font-weight:500;color:rgba(0, 0, 0, 0.85);margin:0;line-height:1.5}.modal-body{padding:24px;font-size:14px;line-height:1.5;color:rgba(0, 0, 0, 0.65)}.modal-footer{padding:10px 16px;text-align:right;background:transparent;border-top:1px solid #f0f0f0;border-radius:0 0 8px 8px}.modal-button{line-height:1.5;position:relative;display:inline-block;font-weight:400;white-space:nowrap;text-align:center;border:1px solid transparent;cursor:pointer;transition:all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);user-select:none;touch-action:manipulation;height:32px;padding:4px 15px;font-size:14px;border-radius:6px;outline:0;margin-left:8px}.cancel-button{color:rgba(0, 0, 0, 0.65);border-color:#d9d9d9;background:#fff}.cancel-button:hover{color:#40a9ff;border-color:#40a9ff}.cancel-button:active{color:#096dd9;border-color:#096dd9}.ok-button{color:#fff;background:#1890ff;border-color:#1890ff}.ok-button:hover{background:#40a9ff;border-color:#40a9ff}.ok-button:active{background:#096dd9;border-color:#096dd9}.ok-primary{background:#1890ff;border-color:#1890ff}.ok-primary:hover{background:#40a9ff;border-color:#40a9ff}.ok-primary:active{background:#096dd9;border-color:#096dd9}.ok-danger{background:#ff4d4f;border-color:#ff4d4f}.ok-danger:hover{background:#ff7875;border-color:#ff7875}.ok-danger:active{background:#d9363e;border-color:#d9363e}.ok-default{color:rgba(0, 0, 0, 0.65);background:#fff;border-color:#d9d9d9}.ok-default:hover{color:#40a9ff;border-color:#40a9ff}.ok-default:active{color:#096dd9;border-color:#096dd9}@media screen and (max-width: 768px){.confirm-modal-content{padding:16px}.confirm-modal-content.centered{padding:16px}.modal-wrapper{max-width:none;margin:0 auto}.modal-header{padding:12px 16px}.modal-title{font-size:16px}.modal-body{padding:16px}.modal-footer{padding:8px 12px 12px}.modal-button{height:36px;font-size:16px;margin-left:8px;margin-top:8px}}@media (prefers-reduced-motion: reduce){.confirm-modal-mask,.confirm-modal-content,.modal-wrapper,.modal-button{transition:none}}";
|
|
1432
1431
|
|
|
1433
|
-
const hostCss$
|
|
1432
|
+
const hostCss$q = ":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}";
|
|
1434
1433
|
|
|
1435
1434
|
const ComponentsConfirmModal = class {
|
|
1436
1435
|
constructor(hostRef) {
|
|
@@ -1594,11 +1593,11 @@ const ComponentsConfirmModal = class {
|
|
|
1594
1593
|
"isOpen": ["visibleChanged"]
|
|
1595
1594
|
}; }
|
|
1596
1595
|
};
|
|
1597
|
-
ComponentsConfirmModal.style = componentsConfirmModalCss + hostCss$
|
|
1596
|
+
ComponentsConfirmModal.style = componentsConfirmModalCss + hostCss$q;
|
|
1598
1597
|
|
|
1599
1598
|
const componentsDigitalHumanCss = ".digital-human-container{position:relative;border-radius:8px;overflow:hidden;transition:box-shadow 0.3s;width:100%;height:100%;background:transparent;display:flex;align-items:center;justify-content:center}.digital-human-container video{width:100%;height:100%;display:block;object-fit:cover;background:transparent;border-radius:8px}.generating-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background:rgba(0, 0, 0, 0.7);border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.loading-spinner{width:16px;height:16px;border:2px solid #ffffff;border-top-color:transparent;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@media screen and (max-width: 768px){.digital-human-container{border-radius:6px}.digital-human-container video{border-radius:6px}}";
|
|
1600
1599
|
|
|
1601
|
-
const hostCss$
|
|
1600
|
+
const hostCss$p = ":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}";
|
|
1602
1601
|
|
|
1603
1602
|
const ComponentsDigitalHuman = class {
|
|
1604
1603
|
constructor(hostRef) {
|
|
@@ -1889,11 +1888,11 @@ const ComponentsDigitalHuman = class {
|
|
|
1889
1888
|
"isStreaming": ["handleStreamingChange"]
|
|
1890
1889
|
}; }
|
|
1891
1890
|
};
|
|
1892
|
-
ComponentsDigitalHuman.style = componentsDigitalHumanCss + hostCss$
|
|
1891
|
+
ComponentsDigitalHuman.style = componentsDigitalHumanCss + hostCss$p;
|
|
1893
1892
|
|
|
1894
1893
|
const componentsDrawerCss = ":host{display:block}.drawer-container{position:fixed;top:0;left:0;width:0;height:0;overflow:visible}.drawer-mask{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.45);opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease}.mask-visible{opacity:1;visibility:visible}.drawer-content{position:fixed;top:0;right:0;bottom:0;display:flex;flex-direction:column;background-color:#fff;box-shadow:-2px 0 8px rgba(0, 0, 0, 0.15);transform:translateX(100%);transition:transform 0.3s cubic-bezier(0.23, 1, 0.32, 1)}.drawer-content-visible{transform:translateX(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;color:rgba(0, 0, 0, 0.85);border-bottom:1px solid #f0f0f0}.drawer-title{flex:1;min-width:0;margin:0;font-size:16px;line-height:22px;font-weight:500;color:rgba(0, 0, 0, 0.85);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-header-actions{display:flex;align-items:center;flex:0 0 auto}.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}.drawer-body{flex:1;padding:24px;overflow:auto}@media (max-width: 768px){.drawer-content{width:100% !important}.drawer-header{padding:12px 16px}.drawer-body{padding:16px}}";
|
|
1895
1894
|
|
|
1896
|
-
const hostCss$
|
|
1895
|
+
const hostCss$o = ":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}";
|
|
1897
1896
|
|
|
1898
1897
|
const ComponentsDrawer = class {
|
|
1899
1898
|
constructor(hostRef) {
|
|
@@ -2022,7 +2021,7 @@ const ComponentsDrawer = class {
|
|
|
2022
2021
|
"isOpen": ["visibleChanged"]
|
|
2023
2022
|
}; }
|
|
2024
2023
|
};
|
|
2025
|
-
ComponentsDrawer.style = componentsDrawerCss + hostCss$
|
|
2024
|
+
ComponentsDrawer.style = componentsDrawerCss + hostCss$o;
|
|
2026
2025
|
|
|
2027
2026
|
const componentsExportRecordsModalCss = ".modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.45);display:flex;align-items:flex-start;justify-content:center;z-index:1000;backdrop-filter:blur(4px)}.modal-container{background:white;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);max-width:min(1000px, calc(100vw - 40px));max-height:calc(100vh - 40px);width:100%;display:flex;flex-direction:column;overflow:hidden}.modal-header{padding:16px 24px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between;background:#fafafa}.modal-title{display:flex;align-items:center;gap:16px;font-size:16px;font-weight:600;color:#262626}.modal-close{background:none;border:none;font-size:18px;color:#8c8c8c;cursor:pointer;padding:4px;border-radius:4px;transition:all 0.2s}.modal-close:hover{background-color:#f5f5f5;color:#262626}.modal-body{padding:24px;flex:1;overflow:auto}.btn{border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:400;transition:all 0.2s;display:inline-flex;align-items:center;justify-content:center;gap:4px}.btn-small{padding:4px 8px;font-size:12px}.btn-medium{padding:8px 16px}.btn-primary{background-color:#1890ff;color:white;border:1px solid #1890ff}.btn-primary:hover{background-color:#40a9ff;border-color:#40a9ff}.btn-default{background-color:white;color:#595959;border:1px solid #d9d9d9}.btn-default:hover{background-color:#f5f5f5;border-color:#40a9ff;color:#40a9ff}.btn-danger{background-color:#f5222d;color:white;border:1px solid #f5222d}.btn-danger:hover{background-color:#cf1322;border-color:#cf1322}.table-container{border:1px solid #f0f0f0;border-radius:6px;overflow:hidden;margin-bottom:16px}.table{width:100%;border-collapse:collapse;background:white}.table th{background-color:#fafafa;padding:12px 16px;font-weight:600;color:#262626;border-bottom:1px solid #f0f0f0;font-size:14px}.table td{padding:12px 16px;border-bottom:1px solid #f0f0f0;color:#595959;font-size:14px}.table tbody tr:hover{background-color:#f5f5f5}.table tbody tr:last-child td{border-bottom:none}.tag{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:400;color:white;text-align:center;min-width:60px}.action-buttons{display:flex;gap:8px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#8c8c8c}.loading-spinner{width:32px;height:32px;border:3px solid #f0f0f0;border-top:3px solid #1890ff;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.empty-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#8c8c8c}.empty-icon{font-size:48px;margin-bottom:16px;opacity:0.6}.empty-text{font-size:14px;color:#8c8c8c}.pagination-container{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-top:1px solid #f0f0f0}.pagination-info{color:#8c8c8c;font-size:14px}.pagination-controls{display:flex;align-items:center;gap:12px}.pagination-btn{padding:6px 12px;border:1px solid #d9d9d9;background:white;color:#595959;border-radius:4px;cursor:pointer;font-size:14px;transition:all 0.2s}.pagination-btn:hover:not(:disabled){border-color:#40a9ff;color:#40a9ff}.pagination-btn:disabled{background-color:#f5f5f5;color:#bfbfbf;cursor:not-allowed;border-color:#f0f0f0}.pagination-current{color:#262626;font-size:14px;font-weight:500;padding:0 8px}.pagination-size-select{padding:6px 8px;border:1px solid #d9d9d9;border-radius:4px;background:white;color:#595959;font-size:14px;cursor:pointer;transition:all 0.2s}.pagination-size-select:hover{border-color:#40a9ff}.pagination-size-select:focus{outline:none;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.message{position:fixed;top:24px;left:50%;transform:translateX(-50%);padding:12px 24px;border-radius:6px;font-size:14px;font-weight:500;z-index:1100;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);animation:messageSlideIn 0.3s ease-out}.message-success{background-color:#f6ffed;color:#52c41a;border:1px solid #b7eb8f}.message-error{background-color:#fff2f0;color:#ff4d4f;border:1px solid #ffccc7}@keyframes messageSlideIn{from{opacity:0;transform:translateX(-50%) translateY(-20px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}@media (max-width: 768px){.modal-container{margin:20px;max-width:calc(100vw - 40px)}.modal-header{padding:12px 16px}.modal-body{padding:16px}.table th,.table td{padding:8px 12px;font-size:13px}.pagination-container{flex-direction:column;gap:12px;align-items:stretch}.pagination-controls{justify-content:center}.modal-title{font-size:14px;gap:8px}}@media (max-width: 480px){.table-container{overflow-x:auto}.table{min-width:600px}.action-buttons{flex-direction:column;gap:4px}}";
|
|
2028
2027
|
|
|
@@ -2199,7 +2198,7 @@ ComponentsExportRecordsModal.style = componentsExportRecordsModalCss;
|
|
|
2199
2198
|
|
|
2200
2199
|
const componentsMessageCss = ".pcm-message{position:fixed;top:20px;left:50%;transform:translateX(-50%) translateY(-100%);background-color:#fff;padding:10px 16px;border-radius:4px;box-shadow:0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);pointer-events:all;z-index:1010;opacity:0;transition:all 0.3s}.pcm-message-visible{transform:translateX(-50%) translateY(0);opacity:1}.pcm-message-content{display:flex;align-items:center}.pcm-message-icon{margin-right:8px;font-size:16px;line-height:1}.pcm-message-success .pcm-message-icon{color:#52c41a}.pcm-message-error .pcm-message-icon{color:#ff4d4f}.pcm-message-warning .pcm-message-icon{color:#faad14}.pcm-message-info .pcm-message-icon{color:#1890ff}.pcm-message-text{font-size:14px;line-height:1.5}.pcm-message-container{position:fixed;top:20px;left:0;width:100%;display:flex;flex-direction:column;align-items:center;pointer-events:none;z-index:1010}";
|
|
2201
2200
|
|
|
2202
|
-
const hostCss$
|
|
2201
|
+
const hostCss$n = ":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}";
|
|
2203
2202
|
|
|
2204
2203
|
const ComponentsMessage = class {
|
|
2205
2204
|
constructor(hostRef) {
|
|
@@ -2265,7 +2264,2311 @@ const ComponentsMessage = class {
|
|
|
2265
2264
|
}
|
|
2266
2265
|
}
|
|
2267
2266
|
};
|
|
2268
|
-
ComponentsMessage.style = componentsMessageCss + hostCss$
|
|
2267
|
+
ComponentsMessage.style = componentsMessageCss + hostCss$n;
|
|
2268
|
+
|
|
2269
|
+
var qrcode$1 = {exports: {}};
|
|
2270
|
+
|
|
2271
|
+
var hasRequiredQrcode;
|
|
2272
|
+
|
|
2273
|
+
function requireQrcode () {
|
|
2274
|
+
if (hasRequiredQrcode) return qrcode$1.exports;
|
|
2275
|
+
hasRequiredQrcode = 1;
|
|
2276
|
+
(function (module, exports) {
|
|
2277
|
+
//---------------------------------------------------------------------
|
|
2278
|
+
//
|
|
2279
|
+
// QR Code Generator for JavaScript
|
|
2280
|
+
//
|
|
2281
|
+
// Copyright (c) 2009 Kazuhiko Arase
|
|
2282
|
+
//
|
|
2283
|
+
// URL: http://www.d-project.com/
|
|
2284
|
+
//
|
|
2285
|
+
// Licensed under the MIT license:
|
|
2286
|
+
// http://www.opensource.org/licenses/mit-license.php
|
|
2287
|
+
//
|
|
2288
|
+
// The word 'QR Code' is registered trademark of
|
|
2289
|
+
// DENSO WAVE INCORPORATED
|
|
2290
|
+
// http://www.denso-wave.com/qrcode/faqpatent-e.html
|
|
2291
|
+
//
|
|
2292
|
+
//---------------------------------------------------------------------
|
|
2293
|
+
|
|
2294
|
+
var qrcode = function() {
|
|
2295
|
+
|
|
2296
|
+
//---------------------------------------------------------------------
|
|
2297
|
+
// qrcode
|
|
2298
|
+
//---------------------------------------------------------------------
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* qrcode
|
|
2302
|
+
* @param typeNumber 1 to 40
|
|
2303
|
+
* @param errorCorrectionLevel 'L','M','Q','H'
|
|
2304
|
+
*/
|
|
2305
|
+
var qrcode = function(typeNumber, errorCorrectionLevel) {
|
|
2306
|
+
|
|
2307
|
+
var PAD0 = 0xEC;
|
|
2308
|
+
var PAD1 = 0x11;
|
|
2309
|
+
|
|
2310
|
+
var _typeNumber = typeNumber;
|
|
2311
|
+
var _errorCorrectionLevel = QRErrorCorrectionLevel[errorCorrectionLevel];
|
|
2312
|
+
var _modules = null;
|
|
2313
|
+
var _moduleCount = 0;
|
|
2314
|
+
var _dataCache = null;
|
|
2315
|
+
var _dataList = [];
|
|
2316
|
+
|
|
2317
|
+
var _this = {};
|
|
2318
|
+
|
|
2319
|
+
var makeImpl = function(test, maskPattern) {
|
|
2320
|
+
|
|
2321
|
+
_moduleCount = _typeNumber * 4 + 17;
|
|
2322
|
+
_modules = function(moduleCount) {
|
|
2323
|
+
var modules = new Array(moduleCount);
|
|
2324
|
+
for (var row = 0; row < moduleCount; row += 1) {
|
|
2325
|
+
modules[row] = new Array(moduleCount);
|
|
2326
|
+
for (var col = 0; col < moduleCount; col += 1) {
|
|
2327
|
+
modules[row][col] = null;
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
return modules;
|
|
2331
|
+
}(_moduleCount);
|
|
2332
|
+
|
|
2333
|
+
setupPositionProbePattern(0, 0);
|
|
2334
|
+
setupPositionProbePattern(_moduleCount - 7, 0);
|
|
2335
|
+
setupPositionProbePattern(0, _moduleCount - 7);
|
|
2336
|
+
setupPositionAdjustPattern();
|
|
2337
|
+
setupTimingPattern();
|
|
2338
|
+
setupTypeInfo(test, maskPattern);
|
|
2339
|
+
|
|
2340
|
+
if (_typeNumber >= 7) {
|
|
2341
|
+
setupTypeNumber(test);
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
if (_dataCache == null) {
|
|
2345
|
+
_dataCache = createData(_typeNumber, _errorCorrectionLevel, _dataList);
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
mapData(_dataCache, maskPattern);
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
var setupPositionProbePattern = function(row, col) {
|
|
2352
|
+
|
|
2353
|
+
for (var r = -1; r <= 7; r += 1) {
|
|
2354
|
+
|
|
2355
|
+
if (row + r <= -1 || _moduleCount <= row + r) continue;
|
|
2356
|
+
|
|
2357
|
+
for (var c = -1; c <= 7; c += 1) {
|
|
2358
|
+
|
|
2359
|
+
if (col + c <= -1 || _moduleCount <= col + c) continue;
|
|
2360
|
+
|
|
2361
|
+
if ( (0 <= r && r <= 6 && (c == 0 || c == 6) )
|
|
2362
|
+
|| (0 <= c && c <= 6 && (r == 0 || r == 6) )
|
|
2363
|
+
|| (2 <= r && r <= 4 && 2 <= c && c <= 4) ) {
|
|
2364
|
+
_modules[row + r][col + c] = true;
|
|
2365
|
+
} else {
|
|
2366
|
+
_modules[row + r][col + c] = false;
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
};
|
|
2371
|
+
|
|
2372
|
+
var getBestMaskPattern = function() {
|
|
2373
|
+
|
|
2374
|
+
var minLostPoint = 0;
|
|
2375
|
+
var pattern = 0;
|
|
2376
|
+
|
|
2377
|
+
for (var i = 0; i < 8; i += 1) {
|
|
2378
|
+
|
|
2379
|
+
makeImpl(true, i);
|
|
2380
|
+
|
|
2381
|
+
var lostPoint = QRUtil.getLostPoint(_this);
|
|
2382
|
+
|
|
2383
|
+
if (i == 0 || minLostPoint > lostPoint) {
|
|
2384
|
+
minLostPoint = lostPoint;
|
|
2385
|
+
pattern = i;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
return pattern;
|
|
2390
|
+
};
|
|
2391
|
+
|
|
2392
|
+
var setupTimingPattern = function() {
|
|
2393
|
+
|
|
2394
|
+
for (var r = 8; r < _moduleCount - 8; r += 1) {
|
|
2395
|
+
if (_modules[r][6] != null) {
|
|
2396
|
+
continue;
|
|
2397
|
+
}
|
|
2398
|
+
_modules[r][6] = (r % 2 == 0);
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
for (var c = 8; c < _moduleCount - 8; c += 1) {
|
|
2402
|
+
if (_modules[6][c] != null) {
|
|
2403
|
+
continue;
|
|
2404
|
+
}
|
|
2405
|
+
_modules[6][c] = (c % 2 == 0);
|
|
2406
|
+
}
|
|
2407
|
+
};
|
|
2408
|
+
|
|
2409
|
+
var setupPositionAdjustPattern = function() {
|
|
2410
|
+
|
|
2411
|
+
var pos = QRUtil.getPatternPosition(_typeNumber);
|
|
2412
|
+
|
|
2413
|
+
for (var i = 0; i < pos.length; i += 1) {
|
|
2414
|
+
|
|
2415
|
+
for (var j = 0; j < pos.length; j += 1) {
|
|
2416
|
+
|
|
2417
|
+
var row = pos[i];
|
|
2418
|
+
var col = pos[j];
|
|
2419
|
+
|
|
2420
|
+
if (_modules[row][col] != null) {
|
|
2421
|
+
continue;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
for (var r = -2; r <= 2; r += 1) {
|
|
2425
|
+
|
|
2426
|
+
for (var c = -2; c <= 2; c += 1) {
|
|
2427
|
+
|
|
2428
|
+
if (r == -2 || r == 2 || c == -2 || c == 2
|
|
2429
|
+
|| (r == 0 && c == 0) ) {
|
|
2430
|
+
_modules[row + r][col + c] = true;
|
|
2431
|
+
} else {
|
|
2432
|
+
_modules[row + r][col + c] = false;
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
};
|
|
2439
|
+
|
|
2440
|
+
var setupTypeNumber = function(test) {
|
|
2441
|
+
|
|
2442
|
+
var bits = QRUtil.getBCHTypeNumber(_typeNumber);
|
|
2443
|
+
|
|
2444
|
+
for (var i = 0; i < 18; i += 1) {
|
|
2445
|
+
var mod = (!test && ( (bits >> i) & 1) == 1);
|
|
2446
|
+
_modules[Math.floor(i / 3)][i % 3 + _moduleCount - 8 - 3] = mod;
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
for (var i = 0; i < 18; i += 1) {
|
|
2450
|
+
var mod = (!test && ( (bits >> i) & 1) == 1);
|
|
2451
|
+
_modules[i % 3 + _moduleCount - 8 - 3][Math.floor(i / 3)] = mod;
|
|
2452
|
+
}
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
var setupTypeInfo = function(test, maskPattern) {
|
|
2456
|
+
|
|
2457
|
+
var data = (_errorCorrectionLevel << 3) | maskPattern;
|
|
2458
|
+
var bits = QRUtil.getBCHTypeInfo(data);
|
|
2459
|
+
|
|
2460
|
+
// vertical
|
|
2461
|
+
for (var i = 0; i < 15; i += 1) {
|
|
2462
|
+
|
|
2463
|
+
var mod = (!test && ( (bits >> i) & 1) == 1);
|
|
2464
|
+
|
|
2465
|
+
if (i < 6) {
|
|
2466
|
+
_modules[i][8] = mod;
|
|
2467
|
+
} else if (i < 8) {
|
|
2468
|
+
_modules[i + 1][8] = mod;
|
|
2469
|
+
} else {
|
|
2470
|
+
_modules[_moduleCount - 15 + i][8] = mod;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
// horizontal
|
|
2475
|
+
for (var i = 0; i < 15; i += 1) {
|
|
2476
|
+
|
|
2477
|
+
var mod = (!test && ( (bits >> i) & 1) == 1);
|
|
2478
|
+
|
|
2479
|
+
if (i < 8) {
|
|
2480
|
+
_modules[8][_moduleCount - i - 1] = mod;
|
|
2481
|
+
} else if (i < 9) {
|
|
2482
|
+
_modules[8][15 - i - 1 + 1] = mod;
|
|
2483
|
+
} else {
|
|
2484
|
+
_modules[8][15 - i - 1] = mod;
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
// fixed module
|
|
2489
|
+
_modules[_moduleCount - 8][8] = (!test);
|
|
2490
|
+
};
|
|
2491
|
+
|
|
2492
|
+
var mapData = function(data, maskPattern) {
|
|
2493
|
+
|
|
2494
|
+
var inc = -1;
|
|
2495
|
+
var row = _moduleCount - 1;
|
|
2496
|
+
var bitIndex = 7;
|
|
2497
|
+
var byteIndex = 0;
|
|
2498
|
+
var maskFunc = QRUtil.getMaskFunction(maskPattern);
|
|
2499
|
+
|
|
2500
|
+
for (var col = _moduleCount - 1; col > 0; col -= 2) {
|
|
2501
|
+
|
|
2502
|
+
if (col == 6) col -= 1;
|
|
2503
|
+
|
|
2504
|
+
while (true) {
|
|
2505
|
+
|
|
2506
|
+
for (var c = 0; c < 2; c += 1) {
|
|
2507
|
+
|
|
2508
|
+
if (_modules[row][col - c] == null) {
|
|
2509
|
+
|
|
2510
|
+
var dark = false;
|
|
2511
|
+
|
|
2512
|
+
if (byteIndex < data.length) {
|
|
2513
|
+
dark = ( ( (data[byteIndex] >>> bitIndex) & 1) == 1);
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
var mask = maskFunc(row, col - c);
|
|
2517
|
+
|
|
2518
|
+
if (mask) {
|
|
2519
|
+
dark = !dark;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
_modules[row][col - c] = dark;
|
|
2523
|
+
bitIndex -= 1;
|
|
2524
|
+
|
|
2525
|
+
if (bitIndex == -1) {
|
|
2526
|
+
byteIndex += 1;
|
|
2527
|
+
bitIndex = 7;
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
row += inc;
|
|
2533
|
+
|
|
2534
|
+
if (row < 0 || _moduleCount <= row) {
|
|
2535
|
+
row -= inc;
|
|
2536
|
+
inc = -inc;
|
|
2537
|
+
break;
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
var createBytes = function(buffer, rsBlocks) {
|
|
2544
|
+
|
|
2545
|
+
var offset = 0;
|
|
2546
|
+
|
|
2547
|
+
var maxDcCount = 0;
|
|
2548
|
+
var maxEcCount = 0;
|
|
2549
|
+
|
|
2550
|
+
var dcdata = new Array(rsBlocks.length);
|
|
2551
|
+
var ecdata = new Array(rsBlocks.length);
|
|
2552
|
+
|
|
2553
|
+
for (var r = 0; r < rsBlocks.length; r += 1) {
|
|
2554
|
+
|
|
2555
|
+
var dcCount = rsBlocks[r].dataCount;
|
|
2556
|
+
var ecCount = rsBlocks[r].totalCount - dcCount;
|
|
2557
|
+
|
|
2558
|
+
maxDcCount = Math.max(maxDcCount, dcCount);
|
|
2559
|
+
maxEcCount = Math.max(maxEcCount, ecCount);
|
|
2560
|
+
|
|
2561
|
+
dcdata[r] = new Array(dcCount);
|
|
2562
|
+
|
|
2563
|
+
for (var i = 0; i < dcdata[r].length; i += 1) {
|
|
2564
|
+
dcdata[r][i] = 0xff & buffer.getBuffer()[i + offset];
|
|
2565
|
+
}
|
|
2566
|
+
offset += dcCount;
|
|
2567
|
+
|
|
2568
|
+
var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
|
|
2569
|
+
var rawPoly = qrPolynomial(dcdata[r], rsPoly.getLength() - 1);
|
|
2570
|
+
|
|
2571
|
+
var modPoly = rawPoly.mod(rsPoly);
|
|
2572
|
+
ecdata[r] = new Array(rsPoly.getLength() - 1);
|
|
2573
|
+
for (var i = 0; i < ecdata[r].length; i += 1) {
|
|
2574
|
+
var modIndex = i + modPoly.getLength() - ecdata[r].length;
|
|
2575
|
+
ecdata[r][i] = (modIndex >= 0)? modPoly.getAt(modIndex) : 0;
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
var totalCodeCount = 0;
|
|
2580
|
+
for (var i = 0; i < rsBlocks.length; i += 1) {
|
|
2581
|
+
totalCodeCount += rsBlocks[i].totalCount;
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
var data = new Array(totalCodeCount);
|
|
2585
|
+
var index = 0;
|
|
2586
|
+
|
|
2587
|
+
for (var i = 0; i < maxDcCount; i += 1) {
|
|
2588
|
+
for (var r = 0; r < rsBlocks.length; r += 1) {
|
|
2589
|
+
if (i < dcdata[r].length) {
|
|
2590
|
+
data[index] = dcdata[r][i];
|
|
2591
|
+
index += 1;
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
for (var i = 0; i < maxEcCount; i += 1) {
|
|
2597
|
+
for (var r = 0; r < rsBlocks.length; r += 1) {
|
|
2598
|
+
if (i < ecdata[r].length) {
|
|
2599
|
+
data[index] = ecdata[r][i];
|
|
2600
|
+
index += 1;
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
return data;
|
|
2606
|
+
};
|
|
2607
|
+
|
|
2608
|
+
var createData = function(typeNumber, errorCorrectionLevel, dataList) {
|
|
2609
|
+
|
|
2610
|
+
var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectionLevel);
|
|
2611
|
+
|
|
2612
|
+
var buffer = qrBitBuffer();
|
|
2613
|
+
|
|
2614
|
+
for (var i = 0; i < dataList.length; i += 1) {
|
|
2615
|
+
var data = dataList[i];
|
|
2616
|
+
buffer.put(data.getMode(), 4);
|
|
2617
|
+
buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber) );
|
|
2618
|
+
data.write(buffer);
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
// calc num max data.
|
|
2622
|
+
var totalDataCount = 0;
|
|
2623
|
+
for (var i = 0; i < rsBlocks.length; i += 1) {
|
|
2624
|
+
totalDataCount += rsBlocks[i].dataCount;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
if (buffer.getLengthInBits() > totalDataCount * 8) {
|
|
2628
|
+
throw 'code length overflow. ('
|
|
2629
|
+
+ buffer.getLengthInBits()
|
|
2630
|
+
+ '>'
|
|
2631
|
+
+ totalDataCount * 8
|
|
2632
|
+
+ ')';
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
// end code
|
|
2636
|
+
if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {
|
|
2637
|
+
buffer.put(0, 4);
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
// padding
|
|
2641
|
+
while (buffer.getLengthInBits() % 8 != 0) {
|
|
2642
|
+
buffer.putBit(false);
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
// padding
|
|
2646
|
+
while (true) {
|
|
2647
|
+
|
|
2648
|
+
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
2649
|
+
break;
|
|
2650
|
+
}
|
|
2651
|
+
buffer.put(PAD0, 8);
|
|
2652
|
+
|
|
2653
|
+
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
2654
|
+
break;
|
|
2655
|
+
}
|
|
2656
|
+
buffer.put(PAD1, 8);
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
return createBytes(buffer, rsBlocks);
|
|
2660
|
+
};
|
|
2661
|
+
|
|
2662
|
+
_this.addData = function(data, mode) {
|
|
2663
|
+
|
|
2664
|
+
mode = mode || 'Byte';
|
|
2665
|
+
|
|
2666
|
+
var newData = null;
|
|
2667
|
+
|
|
2668
|
+
switch(mode) {
|
|
2669
|
+
case 'Numeric' :
|
|
2670
|
+
newData = qrNumber(data);
|
|
2671
|
+
break;
|
|
2672
|
+
case 'Alphanumeric' :
|
|
2673
|
+
newData = qrAlphaNum(data);
|
|
2674
|
+
break;
|
|
2675
|
+
case 'Byte' :
|
|
2676
|
+
newData = qr8BitByte(data);
|
|
2677
|
+
break;
|
|
2678
|
+
case 'Kanji' :
|
|
2679
|
+
newData = qrKanji(data);
|
|
2680
|
+
break;
|
|
2681
|
+
default :
|
|
2682
|
+
throw 'mode:' + mode;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
_dataList.push(newData);
|
|
2686
|
+
_dataCache = null;
|
|
2687
|
+
};
|
|
2688
|
+
|
|
2689
|
+
_this.isDark = function(row, col) {
|
|
2690
|
+
if (row < 0 || _moduleCount <= row || col < 0 || _moduleCount <= col) {
|
|
2691
|
+
throw row + ',' + col;
|
|
2692
|
+
}
|
|
2693
|
+
return _modules[row][col];
|
|
2694
|
+
};
|
|
2695
|
+
|
|
2696
|
+
_this.getModuleCount = function() {
|
|
2697
|
+
return _moduleCount;
|
|
2698
|
+
};
|
|
2699
|
+
|
|
2700
|
+
_this.make = function() {
|
|
2701
|
+
if (_typeNumber < 1) {
|
|
2702
|
+
var typeNumber = 1;
|
|
2703
|
+
|
|
2704
|
+
for (; typeNumber < 40; typeNumber++) {
|
|
2705
|
+
var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, _errorCorrectionLevel);
|
|
2706
|
+
var buffer = qrBitBuffer();
|
|
2707
|
+
|
|
2708
|
+
for (var i = 0; i < _dataList.length; i++) {
|
|
2709
|
+
var data = _dataList[i];
|
|
2710
|
+
buffer.put(data.getMode(), 4);
|
|
2711
|
+
buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber) );
|
|
2712
|
+
data.write(buffer);
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
var totalDataCount = 0;
|
|
2716
|
+
for (var i = 0; i < rsBlocks.length; i++) {
|
|
2717
|
+
totalDataCount += rsBlocks[i].dataCount;
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
if (buffer.getLengthInBits() <= totalDataCount * 8) {
|
|
2721
|
+
break;
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
_typeNumber = typeNumber;
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
makeImpl(false, getBestMaskPattern() );
|
|
2729
|
+
};
|
|
2730
|
+
|
|
2731
|
+
_this.createTableTag = function(cellSize, margin) {
|
|
2732
|
+
|
|
2733
|
+
cellSize = cellSize || 2;
|
|
2734
|
+
margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
|
|
2735
|
+
|
|
2736
|
+
var qrHtml = '';
|
|
2737
|
+
|
|
2738
|
+
qrHtml += '<table style="';
|
|
2739
|
+
qrHtml += ' border-width: 0px; border-style: none;';
|
|
2740
|
+
qrHtml += ' border-collapse: collapse;';
|
|
2741
|
+
qrHtml += ' padding: 0px; margin: ' + margin + 'px;';
|
|
2742
|
+
qrHtml += '">';
|
|
2743
|
+
qrHtml += '<tbody>';
|
|
2744
|
+
|
|
2745
|
+
for (var r = 0; r < _this.getModuleCount(); r += 1) {
|
|
2746
|
+
|
|
2747
|
+
qrHtml += '<tr>';
|
|
2748
|
+
|
|
2749
|
+
for (var c = 0; c < _this.getModuleCount(); c += 1) {
|
|
2750
|
+
qrHtml += '<td style="';
|
|
2751
|
+
qrHtml += ' border-width: 0px; border-style: none;';
|
|
2752
|
+
qrHtml += ' border-collapse: collapse;';
|
|
2753
|
+
qrHtml += ' padding: 0px; margin: 0px;';
|
|
2754
|
+
qrHtml += ' width: ' + cellSize + 'px;';
|
|
2755
|
+
qrHtml += ' height: ' + cellSize + 'px;';
|
|
2756
|
+
qrHtml += ' background-color: ';
|
|
2757
|
+
qrHtml += _this.isDark(r, c)? '#000000' : '#ffffff';
|
|
2758
|
+
qrHtml += ';';
|
|
2759
|
+
qrHtml += '"/>';
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
qrHtml += '</tr>';
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
qrHtml += '</tbody>';
|
|
2766
|
+
qrHtml += '</table>';
|
|
2767
|
+
|
|
2768
|
+
return qrHtml;
|
|
2769
|
+
};
|
|
2770
|
+
|
|
2771
|
+
_this.createSvgTag = function(cellSize, margin, alt, title) {
|
|
2772
|
+
|
|
2773
|
+
var opts = {};
|
|
2774
|
+
if (typeof arguments[0] == 'object') {
|
|
2775
|
+
// Called by options.
|
|
2776
|
+
opts = arguments[0];
|
|
2777
|
+
// overwrite cellSize and margin.
|
|
2778
|
+
cellSize = opts.cellSize;
|
|
2779
|
+
margin = opts.margin;
|
|
2780
|
+
alt = opts.alt;
|
|
2781
|
+
title = opts.title;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
cellSize = cellSize || 2;
|
|
2785
|
+
margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
|
|
2786
|
+
|
|
2787
|
+
// Compose alt property surrogate
|
|
2788
|
+
alt = (typeof alt === 'string') ? {text: alt} : alt || {};
|
|
2789
|
+
alt.text = alt.text || null;
|
|
2790
|
+
alt.id = (alt.text) ? alt.id || 'qrcode-description' : null;
|
|
2791
|
+
|
|
2792
|
+
// Compose title property surrogate
|
|
2793
|
+
title = (typeof title === 'string') ? {text: title} : title || {};
|
|
2794
|
+
title.text = title.text || null;
|
|
2795
|
+
title.id = (title.text) ? title.id || 'qrcode-title' : null;
|
|
2796
|
+
|
|
2797
|
+
var size = _this.getModuleCount() * cellSize + margin * 2;
|
|
2798
|
+
var c, mc, r, mr, qrSvg='', rect;
|
|
2799
|
+
|
|
2800
|
+
rect = 'l' + cellSize + ',0 0,' + cellSize +
|
|
2801
|
+
' -' + cellSize + ',0 0,-' + cellSize + 'z ';
|
|
2802
|
+
|
|
2803
|
+
qrSvg += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"';
|
|
2804
|
+
qrSvg += !opts.scalable ? ' width="' + size + 'px" height="' + size + 'px"' : '';
|
|
2805
|
+
qrSvg += ' viewBox="0 0 ' + size + ' ' + size + '" ';
|
|
2806
|
+
qrSvg += ' preserveAspectRatio="xMinYMin meet"';
|
|
2807
|
+
qrSvg += (title.text || alt.text) ? ' role="img" aria-labelledby="' +
|
|
2808
|
+
escapeXml([title.id, alt.id].join(' ').trim() ) + '"' : '';
|
|
2809
|
+
qrSvg += '>';
|
|
2810
|
+
qrSvg += (title.text) ? '<title id="' + escapeXml(title.id) + '">' +
|
|
2811
|
+
escapeXml(title.text) + '</title>' : '';
|
|
2812
|
+
qrSvg += (alt.text) ? '<description id="' + escapeXml(alt.id) + '">' +
|
|
2813
|
+
escapeXml(alt.text) + '</description>' : '';
|
|
2814
|
+
qrSvg += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>';
|
|
2815
|
+
qrSvg += '<path d="';
|
|
2816
|
+
|
|
2817
|
+
for (r = 0; r < _this.getModuleCount(); r += 1) {
|
|
2818
|
+
mr = r * cellSize + margin;
|
|
2819
|
+
for (c = 0; c < _this.getModuleCount(); c += 1) {
|
|
2820
|
+
if (_this.isDark(r, c) ) {
|
|
2821
|
+
mc = c*cellSize+margin;
|
|
2822
|
+
qrSvg += 'M' + mc + ',' + mr + rect;
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
qrSvg += '" stroke="transparent" fill="black"/>';
|
|
2828
|
+
qrSvg += '</svg>';
|
|
2829
|
+
|
|
2830
|
+
return qrSvg;
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
_this.createDataURL = function(cellSize, margin) {
|
|
2834
|
+
|
|
2835
|
+
cellSize = cellSize || 2;
|
|
2836
|
+
margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
|
|
2837
|
+
|
|
2838
|
+
var size = _this.getModuleCount() * cellSize + margin * 2;
|
|
2839
|
+
var min = margin;
|
|
2840
|
+
var max = size - margin;
|
|
2841
|
+
|
|
2842
|
+
return createDataURL(size, size, function(x, y) {
|
|
2843
|
+
if (min <= x && x < max && min <= y && y < max) {
|
|
2844
|
+
var c = Math.floor( (x - min) / cellSize);
|
|
2845
|
+
var r = Math.floor( (y - min) / cellSize);
|
|
2846
|
+
return _this.isDark(r, c)? 0 : 1;
|
|
2847
|
+
} else {
|
|
2848
|
+
return 1;
|
|
2849
|
+
}
|
|
2850
|
+
} );
|
|
2851
|
+
};
|
|
2852
|
+
|
|
2853
|
+
_this.createImgTag = function(cellSize, margin, alt) {
|
|
2854
|
+
|
|
2855
|
+
cellSize = cellSize || 2;
|
|
2856
|
+
margin = (typeof margin == 'undefined')? cellSize * 4 : margin;
|
|
2857
|
+
|
|
2858
|
+
var size = _this.getModuleCount() * cellSize + margin * 2;
|
|
2859
|
+
|
|
2860
|
+
var img = '';
|
|
2861
|
+
img += '<img';
|
|
2862
|
+
img += '\u0020src="';
|
|
2863
|
+
img += _this.createDataURL(cellSize, margin);
|
|
2864
|
+
img += '"';
|
|
2865
|
+
img += '\u0020width="';
|
|
2866
|
+
img += size;
|
|
2867
|
+
img += '"';
|
|
2868
|
+
img += '\u0020height="';
|
|
2869
|
+
img += size;
|
|
2870
|
+
img += '"';
|
|
2871
|
+
if (alt) {
|
|
2872
|
+
img += '\u0020alt="';
|
|
2873
|
+
img += escapeXml(alt);
|
|
2874
|
+
img += '"';
|
|
2875
|
+
}
|
|
2876
|
+
img += '/>';
|
|
2877
|
+
|
|
2878
|
+
return img;
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
var escapeXml = function(s) {
|
|
2882
|
+
var escaped = '';
|
|
2883
|
+
for (var i = 0; i < s.length; i += 1) {
|
|
2884
|
+
var c = s.charAt(i);
|
|
2885
|
+
switch(c) {
|
|
2886
|
+
case '<': escaped += '<'; break;
|
|
2887
|
+
case '>': escaped += '>'; break;
|
|
2888
|
+
case '&': escaped += '&'; break;
|
|
2889
|
+
case '"': escaped += '"'; break;
|
|
2890
|
+
default : escaped += c; break;
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
return escaped;
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
var _createHalfASCII = function(margin) {
|
|
2897
|
+
var cellSize = 1;
|
|
2898
|
+
margin = (typeof margin == 'undefined')? cellSize * 2 : margin;
|
|
2899
|
+
|
|
2900
|
+
var size = _this.getModuleCount() * cellSize + margin * 2;
|
|
2901
|
+
var min = margin;
|
|
2902
|
+
var max = size - margin;
|
|
2903
|
+
|
|
2904
|
+
var y, x, r1, r2, p;
|
|
2905
|
+
|
|
2906
|
+
var blocks = {
|
|
2907
|
+
'██': '█',
|
|
2908
|
+
'█ ': '▀',
|
|
2909
|
+
' █': '▄',
|
|
2910
|
+
' ': ' '
|
|
2911
|
+
};
|
|
2912
|
+
|
|
2913
|
+
var blocksLastLineNoMargin = {
|
|
2914
|
+
'██': '▀',
|
|
2915
|
+
'█ ': '▀',
|
|
2916
|
+
' █': ' ',
|
|
2917
|
+
' ': ' '
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2920
|
+
var ascii = '';
|
|
2921
|
+
for (y = 0; y < size; y += 2) {
|
|
2922
|
+
r1 = Math.floor((y - min) / cellSize);
|
|
2923
|
+
r2 = Math.floor((y + 1 - min) / cellSize);
|
|
2924
|
+
for (x = 0; x < size; x += 1) {
|
|
2925
|
+
p = '█';
|
|
2926
|
+
|
|
2927
|
+
if (min <= x && x < max && min <= y && y < max && _this.isDark(r1, Math.floor((x - min) / cellSize))) {
|
|
2928
|
+
p = ' ';
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
if (min <= x && x < max && min <= y+1 && y+1 < max && _this.isDark(r2, Math.floor((x - min) / cellSize))) {
|
|
2932
|
+
p += ' ';
|
|
2933
|
+
}
|
|
2934
|
+
else {
|
|
2935
|
+
p += '█';
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
// Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square.
|
|
2939
|
+
ascii += (margin < 1 && y+1 >= max) ? blocksLastLineNoMargin[p] : blocks[p];
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
ascii += '\n';
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
if (size % 2 && margin > 0) {
|
|
2946
|
+
return ascii.substring(0, ascii.length - size - 1) + Array(size+1).join('▀');
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
return ascii.substring(0, ascii.length-1);
|
|
2950
|
+
};
|
|
2951
|
+
|
|
2952
|
+
_this.createASCII = function(cellSize, margin) {
|
|
2953
|
+
cellSize = cellSize || 1;
|
|
2954
|
+
|
|
2955
|
+
if (cellSize < 2) {
|
|
2956
|
+
return _createHalfASCII(margin);
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
cellSize -= 1;
|
|
2960
|
+
margin = (typeof margin == 'undefined')? cellSize * 2 : margin;
|
|
2961
|
+
|
|
2962
|
+
var size = _this.getModuleCount() * cellSize + margin * 2;
|
|
2963
|
+
var min = margin;
|
|
2964
|
+
var max = size - margin;
|
|
2965
|
+
|
|
2966
|
+
var y, x, r, p;
|
|
2967
|
+
|
|
2968
|
+
var white = Array(cellSize+1).join('██');
|
|
2969
|
+
var black = Array(cellSize+1).join(' ');
|
|
2970
|
+
|
|
2971
|
+
var ascii = '';
|
|
2972
|
+
var line = '';
|
|
2973
|
+
for (y = 0; y < size; y += 1) {
|
|
2974
|
+
r = Math.floor( (y - min) / cellSize);
|
|
2975
|
+
line = '';
|
|
2976
|
+
for (x = 0; x < size; x += 1) {
|
|
2977
|
+
p = 1;
|
|
2978
|
+
|
|
2979
|
+
if (min <= x && x < max && min <= y && y < max && _this.isDark(r, Math.floor((x - min) / cellSize))) {
|
|
2980
|
+
p = 0;
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
// Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square.
|
|
2984
|
+
line += p ? white : black;
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
for (r = 0; r < cellSize; r += 1) {
|
|
2988
|
+
ascii += line + '\n';
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
return ascii.substring(0, ascii.length-1);
|
|
2993
|
+
};
|
|
2994
|
+
|
|
2995
|
+
_this.renderTo2dContext = function(context, cellSize) {
|
|
2996
|
+
cellSize = cellSize || 2;
|
|
2997
|
+
var length = _this.getModuleCount();
|
|
2998
|
+
for (var row = 0; row < length; row++) {
|
|
2999
|
+
for (var col = 0; col < length; col++) {
|
|
3000
|
+
context.fillStyle = _this.isDark(row, col) ? 'black' : 'white';
|
|
3001
|
+
context.fillRect(col * cellSize, row * cellSize, cellSize, cellSize);
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
};
|
|
3005
|
+
|
|
3006
|
+
return _this;
|
|
3007
|
+
};
|
|
3008
|
+
|
|
3009
|
+
//---------------------------------------------------------------------
|
|
3010
|
+
// qrcode.stringToBytes
|
|
3011
|
+
//---------------------------------------------------------------------
|
|
3012
|
+
|
|
3013
|
+
qrcode.stringToBytesFuncs = {
|
|
3014
|
+
'default' : function(s) {
|
|
3015
|
+
var bytes = [];
|
|
3016
|
+
for (var i = 0; i < s.length; i += 1) {
|
|
3017
|
+
var c = s.charCodeAt(i);
|
|
3018
|
+
bytes.push(c & 0xff);
|
|
3019
|
+
}
|
|
3020
|
+
return bytes;
|
|
3021
|
+
}
|
|
3022
|
+
};
|
|
3023
|
+
|
|
3024
|
+
qrcode.stringToBytes = qrcode.stringToBytesFuncs['default'];
|
|
3025
|
+
|
|
3026
|
+
//---------------------------------------------------------------------
|
|
3027
|
+
// qrcode.createStringToBytes
|
|
3028
|
+
//---------------------------------------------------------------------
|
|
3029
|
+
|
|
3030
|
+
/**
|
|
3031
|
+
* @param unicodeData base64 string of byte array.
|
|
3032
|
+
* [16bit Unicode],[16bit Bytes], ...
|
|
3033
|
+
* @param numChars
|
|
3034
|
+
*/
|
|
3035
|
+
qrcode.createStringToBytes = function(unicodeData, numChars) {
|
|
3036
|
+
|
|
3037
|
+
// create conversion map.
|
|
3038
|
+
|
|
3039
|
+
var unicodeMap = function() {
|
|
3040
|
+
|
|
3041
|
+
var bin = base64DecodeInputStream(unicodeData);
|
|
3042
|
+
var read = function() {
|
|
3043
|
+
var b = bin.read();
|
|
3044
|
+
if (b == -1) throw 'eof';
|
|
3045
|
+
return b;
|
|
3046
|
+
};
|
|
3047
|
+
|
|
3048
|
+
var count = 0;
|
|
3049
|
+
var unicodeMap = {};
|
|
3050
|
+
while (true) {
|
|
3051
|
+
var b0 = bin.read();
|
|
3052
|
+
if (b0 == -1) break;
|
|
3053
|
+
var b1 = read();
|
|
3054
|
+
var b2 = read();
|
|
3055
|
+
var b3 = read();
|
|
3056
|
+
var k = String.fromCharCode( (b0 << 8) | b1);
|
|
3057
|
+
var v = (b2 << 8) | b3;
|
|
3058
|
+
unicodeMap[k] = v;
|
|
3059
|
+
count += 1;
|
|
3060
|
+
}
|
|
3061
|
+
if (count != numChars) {
|
|
3062
|
+
throw count + ' != ' + numChars;
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
return unicodeMap;
|
|
3066
|
+
}();
|
|
3067
|
+
|
|
3068
|
+
var unknownChar = '?'.charCodeAt(0);
|
|
3069
|
+
|
|
3070
|
+
return function(s) {
|
|
3071
|
+
var bytes = [];
|
|
3072
|
+
for (var i = 0; i < s.length; i += 1) {
|
|
3073
|
+
var c = s.charCodeAt(i);
|
|
3074
|
+
if (c < 128) {
|
|
3075
|
+
bytes.push(c);
|
|
3076
|
+
} else {
|
|
3077
|
+
var b = unicodeMap[s.charAt(i)];
|
|
3078
|
+
if (typeof b == 'number') {
|
|
3079
|
+
if ( (b & 0xff) == b) {
|
|
3080
|
+
// 1byte
|
|
3081
|
+
bytes.push(b);
|
|
3082
|
+
} else {
|
|
3083
|
+
// 2bytes
|
|
3084
|
+
bytes.push(b >>> 8);
|
|
3085
|
+
bytes.push(b & 0xff);
|
|
3086
|
+
}
|
|
3087
|
+
} else {
|
|
3088
|
+
bytes.push(unknownChar);
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
return bytes;
|
|
3093
|
+
};
|
|
3094
|
+
};
|
|
3095
|
+
|
|
3096
|
+
//---------------------------------------------------------------------
|
|
3097
|
+
// QRMode
|
|
3098
|
+
//---------------------------------------------------------------------
|
|
3099
|
+
|
|
3100
|
+
var QRMode = {
|
|
3101
|
+
MODE_NUMBER : 1 << 0,
|
|
3102
|
+
MODE_ALPHA_NUM : 1 << 1,
|
|
3103
|
+
MODE_8BIT_BYTE : 1 << 2,
|
|
3104
|
+
MODE_KANJI : 1 << 3
|
|
3105
|
+
};
|
|
3106
|
+
|
|
3107
|
+
//---------------------------------------------------------------------
|
|
3108
|
+
// QRErrorCorrectionLevel
|
|
3109
|
+
//---------------------------------------------------------------------
|
|
3110
|
+
|
|
3111
|
+
var QRErrorCorrectionLevel = {
|
|
3112
|
+
L : 1,
|
|
3113
|
+
M : 0,
|
|
3114
|
+
Q : 3,
|
|
3115
|
+
H : 2
|
|
3116
|
+
};
|
|
3117
|
+
|
|
3118
|
+
//---------------------------------------------------------------------
|
|
3119
|
+
// QRMaskPattern
|
|
3120
|
+
//---------------------------------------------------------------------
|
|
3121
|
+
|
|
3122
|
+
var QRMaskPattern = {
|
|
3123
|
+
PATTERN000 : 0,
|
|
3124
|
+
PATTERN001 : 1,
|
|
3125
|
+
PATTERN010 : 2,
|
|
3126
|
+
PATTERN011 : 3,
|
|
3127
|
+
PATTERN100 : 4,
|
|
3128
|
+
PATTERN101 : 5,
|
|
3129
|
+
PATTERN110 : 6,
|
|
3130
|
+
PATTERN111 : 7
|
|
3131
|
+
};
|
|
3132
|
+
|
|
3133
|
+
//---------------------------------------------------------------------
|
|
3134
|
+
// QRUtil
|
|
3135
|
+
//---------------------------------------------------------------------
|
|
3136
|
+
|
|
3137
|
+
var QRUtil = function() {
|
|
3138
|
+
|
|
3139
|
+
var PATTERN_POSITION_TABLE = [
|
|
3140
|
+
[],
|
|
3141
|
+
[6, 18],
|
|
3142
|
+
[6, 22],
|
|
3143
|
+
[6, 26],
|
|
3144
|
+
[6, 30],
|
|
3145
|
+
[6, 34],
|
|
3146
|
+
[6, 22, 38],
|
|
3147
|
+
[6, 24, 42],
|
|
3148
|
+
[6, 26, 46],
|
|
3149
|
+
[6, 28, 50],
|
|
3150
|
+
[6, 30, 54],
|
|
3151
|
+
[6, 32, 58],
|
|
3152
|
+
[6, 34, 62],
|
|
3153
|
+
[6, 26, 46, 66],
|
|
3154
|
+
[6, 26, 48, 70],
|
|
3155
|
+
[6, 26, 50, 74],
|
|
3156
|
+
[6, 30, 54, 78],
|
|
3157
|
+
[6, 30, 56, 82],
|
|
3158
|
+
[6, 30, 58, 86],
|
|
3159
|
+
[6, 34, 62, 90],
|
|
3160
|
+
[6, 28, 50, 72, 94],
|
|
3161
|
+
[6, 26, 50, 74, 98],
|
|
3162
|
+
[6, 30, 54, 78, 102],
|
|
3163
|
+
[6, 28, 54, 80, 106],
|
|
3164
|
+
[6, 32, 58, 84, 110],
|
|
3165
|
+
[6, 30, 58, 86, 114],
|
|
3166
|
+
[6, 34, 62, 90, 118],
|
|
3167
|
+
[6, 26, 50, 74, 98, 122],
|
|
3168
|
+
[6, 30, 54, 78, 102, 126],
|
|
3169
|
+
[6, 26, 52, 78, 104, 130],
|
|
3170
|
+
[6, 30, 56, 82, 108, 134],
|
|
3171
|
+
[6, 34, 60, 86, 112, 138],
|
|
3172
|
+
[6, 30, 58, 86, 114, 142],
|
|
3173
|
+
[6, 34, 62, 90, 118, 146],
|
|
3174
|
+
[6, 30, 54, 78, 102, 126, 150],
|
|
3175
|
+
[6, 24, 50, 76, 102, 128, 154],
|
|
3176
|
+
[6, 28, 54, 80, 106, 132, 158],
|
|
3177
|
+
[6, 32, 58, 84, 110, 136, 162],
|
|
3178
|
+
[6, 26, 54, 82, 110, 138, 166],
|
|
3179
|
+
[6, 30, 58, 86, 114, 142, 170]
|
|
3180
|
+
];
|
|
3181
|
+
var G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0);
|
|
3182
|
+
var G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0);
|
|
3183
|
+
var G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1);
|
|
3184
|
+
|
|
3185
|
+
var _this = {};
|
|
3186
|
+
|
|
3187
|
+
var getBCHDigit = function(data) {
|
|
3188
|
+
var digit = 0;
|
|
3189
|
+
while (data != 0) {
|
|
3190
|
+
digit += 1;
|
|
3191
|
+
data >>>= 1;
|
|
3192
|
+
}
|
|
3193
|
+
return digit;
|
|
3194
|
+
};
|
|
3195
|
+
|
|
3196
|
+
_this.getBCHTypeInfo = function(data) {
|
|
3197
|
+
var d = data << 10;
|
|
3198
|
+
while (getBCHDigit(d) - getBCHDigit(G15) >= 0) {
|
|
3199
|
+
d ^= (G15 << (getBCHDigit(d) - getBCHDigit(G15) ) );
|
|
3200
|
+
}
|
|
3201
|
+
return ( (data << 10) | d) ^ G15_MASK;
|
|
3202
|
+
};
|
|
3203
|
+
|
|
3204
|
+
_this.getBCHTypeNumber = function(data) {
|
|
3205
|
+
var d = data << 12;
|
|
3206
|
+
while (getBCHDigit(d) - getBCHDigit(G18) >= 0) {
|
|
3207
|
+
d ^= (G18 << (getBCHDigit(d) - getBCHDigit(G18) ) );
|
|
3208
|
+
}
|
|
3209
|
+
return (data << 12) | d;
|
|
3210
|
+
};
|
|
3211
|
+
|
|
3212
|
+
_this.getPatternPosition = function(typeNumber) {
|
|
3213
|
+
return PATTERN_POSITION_TABLE[typeNumber - 1];
|
|
3214
|
+
};
|
|
3215
|
+
|
|
3216
|
+
_this.getMaskFunction = function(maskPattern) {
|
|
3217
|
+
|
|
3218
|
+
switch (maskPattern) {
|
|
3219
|
+
|
|
3220
|
+
case QRMaskPattern.PATTERN000 :
|
|
3221
|
+
return function(i, j) { return (i + j) % 2 == 0; };
|
|
3222
|
+
case QRMaskPattern.PATTERN001 :
|
|
3223
|
+
return function(i, j) { return i % 2 == 0; };
|
|
3224
|
+
case QRMaskPattern.PATTERN010 :
|
|
3225
|
+
return function(i, j) { return j % 3 == 0; };
|
|
3226
|
+
case QRMaskPattern.PATTERN011 :
|
|
3227
|
+
return function(i, j) { return (i + j) % 3 == 0; };
|
|
3228
|
+
case QRMaskPattern.PATTERN100 :
|
|
3229
|
+
return function(i, j) { return (Math.floor(i / 2) + Math.floor(j / 3) ) % 2 == 0; };
|
|
3230
|
+
case QRMaskPattern.PATTERN101 :
|
|
3231
|
+
return function(i, j) { return (i * j) % 2 + (i * j) % 3 == 0; };
|
|
3232
|
+
case QRMaskPattern.PATTERN110 :
|
|
3233
|
+
return function(i, j) { return ( (i * j) % 2 + (i * j) % 3) % 2 == 0; };
|
|
3234
|
+
case QRMaskPattern.PATTERN111 :
|
|
3235
|
+
return function(i, j) { return ( (i * j) % 3 + (i + j) % 2) % 2 == 0; };
|
|
3236
|
+
|
|
3237
|
+
default :
|
|
3238
|
+
throw 'bad maskPattern:' + maskPattern;
|
|
3239
|
+
}
|
|
3240
|
+
};
|
|
3241
|
+
|
|
3242
|
+
_this.getErrorCorrectPolynomial = function(errorCorrectLength) {
|
|
3243
|
+
var a = qrPolynomial([1], 0);
|
|
3244
|
+
for (var i = 0; i < errorCorrectLength; i += 1) {
|
|
3245
|
+
a = a.multiply(qrPolynomial([1, QRMath.gexp(i)], 0) );
|
|
3246
|
+
}
|
|
3247
|
+
return a;
|
|
3248
|
+
};
|
|
3249
|
+
|
|
3250
|
+
_this.getLengthInBits = function(mode, type) {
|
|
3251
|
+
|
|
3252
|
+
if (1 <= type && type < 10) {
|
|
3253
|
+
|
|
3254
|
+
// 1 - 9
|
|
3255
|
+
|
|
3256
|
+
switch(mode) {
|
|
3257
|
+
case QRMode.MODE_NUMBER : return 10;
|
|
3258
|
+
case QRMode.MODE_ALPHA_NUM : return 9;
|
|
3259
|
+
case QRMode.MODE_8BIT_BYTE : return 8;
|
|
3260
|
+
case QRMode.MODE_KANJI : return 8;
|
|
3261
|
+
default :
|
|
3262
|
+
throw 'mode:' + mode;
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
} else if (type < 27) {
|
|
3266
|
+
|
|
3267
|
+
// 10 - 26
|
|
3268
|
+
|
|
3269
|
+
switch(mode) {
|
|
3270
|
+
case QRMode.MODE_NUMBER : return 12;
|
|
3271
|
+
case QRMode.MODE_ALPHA_NUM : return 11;
|
|
3272
|
+
case QRMode.MODE_8BIT_BYTE : return 16;
|
|
3273
|
+
case QRMode.MODE_KANJI : return 10;
|
|
3274
|
+
default :
|
|
3275
|
+
throw 'mode:' + mode;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
} else if (type < 41) {
|
|
3279
|
+
|
|
3280
|
+
// 27 - 40
|
|
3281
|
+
|
|
3282
|
+
switch(mode) {
|
|
3283
|
+
case QRMode.MODE_NUMBER : return 14;
|
|
3284
|
+
case QRMode.MODE_ALPHA_NUM : return 13;
|
|
3285
|
+
case QRMode.MODE_8BIT_BYTE : return 16;
|
|
3286
|
+
case QRMode.MODE_KANJI : return 12;
|
|
3287
|
+
default :
|
|
3288
|
+
throw 'mode:' + mode;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
} else {
|
|
3292
|
+
throw 'type:' + type;
|
|
3293
|
+
}
|
|
3294
|
+
};
|
|
3295
|
+
|
|
3296
|
+
_this.getLostPoint = function(qrcode) {
|
|
3297
|
+
|
|
3298
|
+
var moduleCount = qrcode.getModuleCount();
|
|
3299
|
+
|
|
3300
|
+
var lostPoint = 0;
|
|
3301
|
+
|
|
3302
|
+
// LEVEL1
|
|
3303
|
+
|
|
3304
|
+
for (var row = 0; row < moduleCount; row += 1) {
|
|
3305
|
+
for (var col = 0; col < moduleCount; col += 1) {
|
|
3306
|
+
|
|
3307
|
+
var sameCount = 0;
|
|
3308
|
+
var dark = qrcode.isDark(row, col);
|
|
3309
|
+
|
|
3310
|
+
for (var r = -1; r <= 1; r += 1) {
|
|
3311
|
+
|
|
3312
|
+
if (row + r < 0 || moduleCount <= row + r) {
|
|
3313
|
+
continue;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
for (var c = -1; c <= 1; c += 1) {
|
|
3317
|
+
|
|
3318
|
+
if (col + c < 0 || moduleCount <= col + c) {
|
|
3319
|
+
continue;
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
if (r == 0 && c == 0) {
|
|
3323
|
+
continue;
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
if (dark == qrcode.isDark(row + r, col + c) ) {
|
|
3327
|
+
sameCount += 1;
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
if (sameCount > 5) {
|
|
3333
|
+
lostPoint += (3 + sameCount - 5);
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
// LEVEL2
|
|
3338
|
+
|
|
3339
|
+
for (var row = 0; row < moduleCount - 1; row += 1) {
|
|
3340
|
+
for (var col = 0; col < moduleCount - 1; col += 1) {
|
|
3341
|
+
var count = 0;
|
|
3342
|
+
if (qrcode.isDark(row, col) ) count += 1;
|
|
3343
|
+
if (qrcode.isDark(row + 1, col) ) count += 1;
|
|
3344
|
+
if (qrcode.isDark(row, col + 1) ) count += 1;
|
|
3345
|
+
if (qrcode.isDark(row + 1, col + 1) ) count += 1;
|
|
3346
|
+
if (count == 0 || count == 4) {
|
|
3347
|
+
lostPoint += 3;
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
// LEVEL3
|
|
3353
|
+
|
|
3354
|
+
for (var row = 0; row < moduleCount; row += 1) {
|
|
3355
|
+
for (var col = 0; col < moduleCount - 6; col += 1) {
|
|
3356
|
+
if (qrcode.isDark(row, col)
|
|
3357
|
+
&& !qrcode.isDark(row, col + 1)
|
|
3358
|
+
&& qrcode.isDark(row, col + 2)
|
|
3359
|
+
&& qrcode.isDark(row, col + 3)
|
|
3360
|
+
&& qrcode.isDark(row, col + 4)
|
|
3361
|
+
&& !qrcode.isDark(row, col + 5)
|
|
3362
|
+
&& qrcode.isDark(row, col + 6) ) {
|
|
3363
|
+
lostPoint += 40;
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
for (var col = 0; col < moduleCount; col += 1) {
|
|
3369
|
+
for (var row = 0; row < moduleCount - 6; row += 1) {
|
|
3370
|
+
if (qrcode.isDark(row, col)
|
|
3371
|
+
&& !qrcode.isDark(row + 1, col)
|
|
3372
|
+
&& qrcode.isDark(row + 2, col)
|
|
3373
|
+
&& qrcode.isDark(row + 3, col)
|
|
3374
|
+
&& qrcode.isDark(row + 4, col)
|
|
3375
|
+
&& !qrcode.isDark(row + 5, col)
|
|
3376
|
+
&& qrcode.isDark(row + 6, col) ) {
|
|
3377
|
+
lostPoint += 40;
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
// LEVEL4
|
|
3383
|
+
|
|
3384
|
+
var darkCount = 0;
|
|
3385
|
+
|
|
3386
|
+
for (var col = 0; col < moduleCount; col += 1) {
|
|
3387
|
+
for (var row = 0; row < moduleCount; row += 1) {
|
|
3388
|
+
if (qrcode.isDark(row, col) ) {
|
|
3389
|
+
darkCount += 1;
|
|
3390
|
+
}
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
|
|
3395
|
+
lostPoint += ratio * 10;
|
|
3396
|
+
|
|
3397
|
+
return lostPoint;
|
|
3398
|
+
};
|
|
3399
|
+
|
|
3400
|
+
return _this;
|
|
3401
|
+
}();
|
|
3402
|
+
|
|
3403
|
+
//---------------------------------------------------------------------
|
|
3404
|
+
// QRMath
|
|
3405
|
+
//---------------------------------------------------------------------
|
|
3406
|
+
|
|
3407
|
+
var QRMath = function() {
|
|
3408
|
+
|
|
3409
|
+
var EXP_TABLE = new Array(256);
|
|
3410
|
+
var LOG_TABLE = new Array(256);
|
|
3411
|
+
|
|
3412
|
+
// initialize tables
|
|
3413
|
+
for (var i = 0; i < 8; i += 1) {
|
|
3414
|
+
EXP_TABLE[i] = 1 << i;
|
|
3415
|
+
}
|
|
3416
|
+
for (var i = 8; i < 256; i += 1) {
|
|
3417
|
+
EXP_TABLE[i] = EXP_TABLE[i - 4]
|
|
3418
|
+
^ EXP_TABLE[i - 5]
|
|
3419
|
+
^ EXP_TABLE[i - 6]
|
|
3420
|
+
^ EXP_TABLE[i - 8];
|
|
3421
|
+
}
|
|
3422
|
+
for (var i = 0; i < 255; i += 1) {
|
|
3423
|
+
LOG_TABLE[EXP_TABLE[i] ] = i;
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
var _this = {};
|
|
3427
|
+
|
|
3428
|
+
_this.glog = function(n) {
|
|
3429
|
+
|
|
3430
|
+
if (n < 1) {
|
|
3431
|
+
throw 'glog(' + n + ')';
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3434
|
+
return LOG_TABLE[n];
|
|
3435
|
+
};
|
|
3436
|
+
|
|
3437
|
+
_this.gexp = function(n) {
|
|
3438
|
+
|
|
3439
|
+
while (n < 0) {
|
|
3440
|
+
n += 255;
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
while (n >= 256) {
|
|
3444
|
+
n -= 255;
|
|
3445
|
+
}
|
|
3446
|
+
|
|
3447
|
+
return EXP_TABLE[n];
|
|
3448
|
+
};
|
|
3449
|
+
|
|
3450
|
+
return _this;
|
|
3451
|
+
}();
|
|
3452
|
+
|
|
3453
|
+
//---------------------------------------------------------------------
|
|
3454
|
+
// qrPolynomial
|
|
3455
|
+
//---------------------------------------------------------------------
|
|
3456
|
+
|
|
3457
|
+
function qrPolynomial(num, shift) {
|
|
3458
|
+
|
|
3459
|
+
if (typeof num.length == 'undefined') {
|
|
3460
|
+
throw num.length + '/' + shift;
|
|
3461
|
+
}
|
|
3462
|
+
|
|
3463
|
+
var _num = function() {
|
|
3464
|
+
var offset = 0;
|
|
3465
|
+
while (offset < num.length && num[offset] == 0) {
|
|
3466
|
+
offset += 1;
|
|
3467
|
+
}
|
|
3468
|
+
var _num = new Array(num.length - offset + shift);
|
|
3469
|
+
for (var i = 0; i < num.length - offset; i += 1) {
|
|
3470
|
+
_num[i] = num[i + offset];
|
|
3471
|
+
}
|
|
3472
|
+
return _num;
|
|
3473
|
+
}();
|
|
3474
|
+
|
|
3475
|
+
var _this = {};
|
|
3476
|
+
|
|
3477
|
+
_this.getAt = function(index) {
|
|
3478
|
+
return _num[index];
|
|
3479
|
+
};
|
|
3480
|
+
|
|
3481
|
+
_this.getLength = function() {
|
|
3482
|
+
return _num.length;
|
|
3483
|
+
};
|
|
3484
|
+
|
|
3485
|
+
_this.multiply = function(e) {
|
|
3486
|
+
|
|
3487
|
+
var num = new Array(_this.getLength() + e.getLength() - 1);
|
|
3488
|
+
|
|
3489
|
+
for (var i = 0; i < _this.getLength(); i += 1) {
|
|
3490
|
+
for (var j = 0; j < e.getLength(); j += 1) {
|
|
3491
|
+
num[i + j] ^= QRMath.gexp(QRMath.glog(_this.getAt(i) ) + QRMath.glog(e.getAt(j) ) );
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
return qrPolynomial(num, 0);
|
|
3496
|
+
};
|
|
3497
|
+
|
|
3498
|
+
_this.mod = function(e) {
|
|
3499
|
+
|
|
3500
|
+
if (_this.getLength() - e.getLength() < 0) {
|
|
3501
|
+
return _this;
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
var ratio = QRMath.glog(_this.getAt(0) ) - QRMath.glog(e.getAt(0) );
|
|
3505
|
+
|
|
3506
|
+
var num = new Array(_this.getLength() );
|
|
3507
|
+
for (var i = 0; i < _this.getLength(); i += 1) {
|
|
3508
|
+
num[i] = _this.getAt(i);
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
for (var i = 0; i < e.getLength(); i += 1) {
|
|
3512
|
+
num[i] ^= QRMath.gexp(QRMath.glog(e.getAt(i) ) + ratio);
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
// recursive call
|
|
3516
|
+
return qrPolynomial(num, 0).mod(e);
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
return _this;
|
|
3520
|
+
}
|
|
3521
|
+
//---------------------------------------------------------------------
|
|
3522
|
+
// QRRSBlock
|
|
3523
|
+
//---------------------------------------------------------------------
|
|
3524
|
+
|
|
3525
|
+
var QRRSBlock = function() {
|
|
3526
|
+
|
|
3527
|
+
var RS_BLOCK_TABLE = [
|
|
3528
|
+
|
|
3529
|
+
// L
|
|
3530
|
+
// M
|
|
3531
|
+
// Q
|
|
3532
|
+
// H
|
|
3533
|
+
|
|
3534
|
+
// 1
|
|
3535
|
+
[1, 26, 19],
|
|
3536
|
+
[1, 26, 16],
|
|
3537
|
+
[1, 26, 13],
|
|
3538
|
+
[1, 26, 9],
|
|
3539
|
+
|
|
3540
|
+
// 2
|
|
3541
|
+
[1, 44, 34],
|
|
3542
|
+
[1, 44, 28],
|
|
3543
|
+
[1, 44, 22],
|
|
3544
|
+
[1, 44, 16],
|
|
3545
|
+
|
|
3546
|
+
// 3
|
|
3547
|
+
[1, 70, 55],
|
|
3548
|
+
[1, 70, 44],
|
|
3549
|
+
[2, 35, 17],
|
|
3550
|
+
[2, 35, 13],
|
|
3551
|
+
|
|
3552
|
+
// 4
|
|
3553
|
+
[1, 100, 80],
|
|
3554
|
+
[2, 50, 32],
|
|
3555
|
+
[2, 50, 24],
|
|
3556
|
+
[4, 25, 9],
|
|
3557
|
+
|
|
3558
|
+
// 5
|
|
3559
|
+
[1, 134, 108],
|
|
3560
|
+
[2, 67, 43],
|
|
3561
|
+
[2, 33, 15, 2, 34, 16],
|
|
3562
|
+
[2, 33, 11, 2, 34, 12],
|
|
3563
|
+
|
|
3564
|
+
// 6
|
|
3565
|
+
[2, 86, 68],
|
|
3566
|
+
[4, 43, 27],
|
|
3567
|
+
[4, 43, 19],
|
|
3568
|
+
[4, 43, 15],
|
|
3569
|
+
|
|
3570
|
+
// 7
|
|
3571
|
+
[2, 98, 78],
|
|
3572
|
+
[4, 49, 31],
|
|
3573
|
+
[2, 32, 14, 4, 33, 15],
|
|
3574
|
+
[4, 39, 13, 1, 40, 14],
|
|
3575
|
+
|
|
3576
|
+
// 8
|
|
3577
|
+
[2, 121, 97],
|
|
3578
|
+
[2, 60, 38, 2, 61, 39],
|
|
3579
|
+
[4, 40, 18, 2, 41, 19],
|
|
3580
|
+
[4, 40, 14, 2, 41, 15],
|
|
3581
|
+
|
|
3582
|
+
// 9
|
|
3583
|
+
[2, 146, 116],
|
|
3584
|
+
[3, 58, 36, 2, 59, 37],
|
|
3585
|
+
[4, 36, 16, 4, 37, 17],
|
|
3586
|
+
[4, 36, 12, 4, 37, 13],
|
|
3587
|
+
|
|
3588
|
+
// 10
|
|
3589
|
+
[2, 86, 68, 2, 87, 69],
|
|
3590
|
+
[4, 69, 43, 1, 70, 44],
|
|
3591
|
+
[6, 43, 19, 2, 44, 20],
|
|
3592
|
+
[6, 43, 15, 2, 44, 16],
|
|
3593
|
+
|
|
3594
|
+
// 11
|
|
3595
|
+
[4, 101, 81],
|
|
3596
|
+
[1, 80, 50, 4, 81, 51],
|
|
3597
|
+
[4, 50, 22, 4, 51, 23],
|
|
3598
|
+
[3, 36, 12, 8, 37, 13],
|
|
3599
|
+
|
|
3600
|
+
// 12
|
|
3601
|
+
[2, 116, 92, 2, 117, 93],
|
|
3602
|
+
[6, 58, 36, 2, 59, 37],
|
|
3603
|
+
[4, 46, 20, 6, 47, 21],
|
|
3604
|
+
[7, 42, 14, 4, 43, 15],
|
|
3605
|
+
|
|
3606
|
+
// 13
|
|
3607
|
+
[4, 133, 107],
|
|
3608
|
+
[8, 59, 37, 1, 60, 38],
|
|
3609
|
+
[8, 44, 20, 4, 45, 21],
|
|
3610
|
+
[12, 33, 11, 4, 34, 12],
|
|
3611
|
+
|
|
3612
|
+
// 14
|
|
3613
|
+
[3, 145, 115, 1, 146, 116],
|
|
3614
|
+
[4, 64, 40, 5, 65, 41],
|
|
3615
|
+
[11, 36, 16, 5, 37, 17],
|
|
3616
|
+
[11, 36, 12, 5, 37, 13],
|
|
3617
|
+
|
|
3618
|
+
// 15
|
|
3619
|
+
[5, 109, 87, 1, 110, 88],
|
|
3620
|
+
[5, 65, 41, 5, 66, 42],
|
|
3621
|
+
[5, 54, 24, 7, 55, 25],
|
|
3622
|
+
[11, 36, 12, 7, 37, 13],
|
|
3623
|
+
|
|
3624
|
+
// 16
|
|
3625
|
+
[5, 122, 98, 1, 123, 99],
|
|
3626
|
+
[7, 73, 45, 3, 74, 46],
|
|
3627
|
+
[15, 43, 19, 2, 44, 20],
|
|
3628
|
+
[3, 45, 15, 13, 46, 16],
|
|
3629
|
+
|
|
3630
|
+
// 17
|
|
3631
|
+
[1, 135, 107, 5, 136, 108],
|
|
3632
|
+
[10, 74, 46, 1, 75, 47],
|
|
3633
|
+
[1, 50, 22, 15, 51, 23],
|
|
3634
|
+
[2, 42, 14, 17, 43, 15],
|
|
3635
|
+
|
|
3636
|
+
// 18
|
|
3637
|
+
[5, 150, 120, 1, 151, 121],
|
|
3638
|
+
[9, 69, 43, 4, 70, 44],
|
|
3639
|
+
[17, 50, 22, 1, 51, 23],
|
|
3640
|
+
[2, 42, 14, 19, 43, 15],
|
|
3641
|
+
|
|
3642
|
+
// 19
|
|
3643
|
+
[3, 141, 113, 4, 142, 114],
|
|
3644
|
+
[3, 70, 44, 11, 71, 45],
|
|
3645
|
+
[17, 47, 21, 4, 48, 22],
|
|
3646
|
+
[9, 39, 13, 16, 40, 14],
|
|
3647
|
+
|
|
3648
|
+
// 20
|
|
3649
|
+
[3, 135, 107, 5, 136, 108],
|
|
3650
|
+
[3, 67, 41, 13, 68, 42],
|
|
3651
|
+
[15, 54, 24, 5, 55, 25],
|
|
3652
|
+
[15, 43, 15, 10, 44, 16],
|
|
3653
|
+
|
|
3654
|
+
// 21
|
|
3655
|
+
[4, 144, 116, 4, 145, 117],
|
|
3656
|
+
[17, 68, 42],
|
|
3657
|
+
[17, 50, 22, 6, 51, 23],
|
|
3658
|
+
[19, 46, 16, 6, 47, 17],
|
|
3659
|
+
|
|
3660
|
+
// 22
|
|
3661
|
+
[2, 139, 111, 7, 140, 112],
|
|
3662
|
+
[17, 74, 46],
|
|
3663
|
+
[7, 54, 24, 16, 55, 25],
|
|
3664
|
+
[34, 37, 13],
|
|
3665
|
+
|
|
3666
|
+
// 23
|
|
3667
|
+
[4, 151, 121, 5, 152, 122],
|
|
3668
|
+
[4, 75, 47, 14, 76, 48],
|
|
3669
|
+
[11, 54, 24, 14, 55, 25],
|
|
3670
|
+
[16, 45, 15, 14, 46, 16],
|
|
3671
|
+
|
|
3672
|
+
// 24
|
|
3673
|
+
[6, 147, 117, 4, 148, 118],
|
|
3674
|
+
[6, 73, 45, 14, 74, 46],
|
|
3675
|
+
[11, 54, 24, 16, 55, 25],
|
|
3676
|
+
[30, 46, 16, 2, 47, 17],
|
|
3677
|
+
|
|
3678
|
+
// 25
|
|
3679
|
+
[8, 132, 106, 4, 133, 107],
|
|
3680
|
+
[8, 75, 47, 13, 76, 48],
|
|
3681
|
+
[7, 54, 24, 22, 55, 25],
|
|
3682
|
+
[22, 45, 15, 13, 46, 16],
|
|
3683
|
+
|
|
3684
|
+
// 26
|
|
3685
|
+
[10, 142, 114, 2, 143, 115],
|
|
3686
|
+
[19, 74, 46, 4, 75, 47],
|
|
3687
|
+
[28, 50, 22, 6, 51, 23],
|
|
3688
|
+
[33, 46, 16, 4, 47, 17],
|
|
3689
|
+
|
|
3690
|
+
// 27
|
|
3691
|
+
[8, 152, 122, 4, 153, 123],
|
|
3692
|
+
[22, 73, 45, 3, 74, 46],
|
|
3693
|
+
[8, 53, 23, 26, 54, 24],
|
|
3694
|
+
[12, 45, 15, 28, 46, 16],
|
|
3695
|
+
|
|
3696
|
+
// 28
|
|
3697
|
+
[3, 147, 117, 10, 148, 118],
|
|
3698
|
+
[3, 73, 45, 23, 74, 46],
|
|
3699
|
+
[4, 54, 24, 31, 55, 25],
|
|
3700
|
+
[11, 45, 15, 31, 46, 16],
|
|
3701
|
+
|
|
3702
|
+
// 29
|
|
3703
|
+
[7, 146, 116, 7, 147, 117],
|
|
3704
|
+
[21, 73, 45, 7, 74, 46],
|
|
3705
|
+
[1, 53, 23, 37, 54, 24],
|
|
3706
|
+
[19, 45, 15, 26, 46, 16],
|
|
3707
|
+
|
|
3708
|
+
// 30
|
|
3709
|
+
[5, 145, 115, 10, 146, 116],
|
|
3710
|
+
[19, 75, 47, 10, 76, 48],
|
|
3711
|
+
[15, 54, 24, 25, 55, 25],
|
|
3712
|
+
[23, 45, 15, 25, 46, 16],
|
|
3713
|
+
|
|
3714
|
+
// 31
|
|
3715
|
+
[13, 145, 115, 3, 146, 116],
|
|
3716
|
+
[2, 74, 46, 29, 75, 47],
|
|
3717
|
+
[42, 54, 24, 1, 55, 25],
|
|
3718
|
+
[23, 45, 15, 28, 46, 16],
|
|
3719
|
+
|
|
3720
|
+
// 32
|
|
3721
|
+
[17, 145, 115],
|
|
3722
|
+
[10, 74, 46, 23, 75, 47],
|
|
3723
|
+
[10, 54, 24, 35, 55, 25],
|
|
3724
|
+
[19, 45, 15, 35, 46, 16],
|
|
3725
|
+
|
|
3726
|
+
// 33
|
|
3727
|
+
[17, 145, 115, 1, 146, 116],
|
|
3728
|
+
[14, 74, 46, 21, 75, 47],
|
|
3729
|
+
[29, 54, 24, 19, 55, 25],
|
|
3730
|
+
[11, 45, 15, 46, 46, 16],
|
|
3731
|
+
|
|
3732
|
+
// 34
|
|
3733
|
+
[13, 145, 115, 6, 146, 116],
|
|
3734
|
+
[14, 74, 46, 23, 75, 47],
|
|
3735
|
+
[44, 54, 24, 7, 55, 25],
|
|
3736
|
+
[59, 46, 16, 1, 47, 17],
|
|
3737
|
+
|
|
3738
|
+
// 35
|
|
3739
|
+
[12, 151, 121, 7, 152, 122],
|
|
3740
|
+
[12, 75, 47, 26, 76, 48],
|
|
3741
|
+
[39, 54, 24, 14, 55, 25],
|
|
3742
|
+
[22, 45, 15, 41, 46, 16],
|
|
3743
|
+
|
|
3744
|
+
// 36
|
|
3745
|
+
[6, 151, 121, 14, 152, 122],
|
|
3746
|
+
[6, 75, 47, 34, 76, 48],
|
|
3747
|
+
[46, 54, 24, 10, 55, 25],
|
|
3748
|
+
[2, 45, 15, 64, 46, 16],
|
|
3749
|
+
|
|
3750
|
+
// 37
|
|
3751
|
+
[17, 152, 122, 4, 153, 123],
|
|
3752
|
+
[29, 74, 46, 14, 75, 47],
|
|
3753
|
+
[49, 54, 24, 10, 55, 25],
|
|
3754
|
+
[24, 45, 15, 46, 46, 16],
|
|
3755
|
+
|
|
3756
|
+
// 38
|
|
3757
|
+
[4, 152, 122, 18, 153, 123],
|
|
3758
|
+
[13, 74, 46, 32, 75, 47],
|
|
3759
|
+
[48, 54, 24, 14, 55, 25],
|
|
3760
|
+
[42, 45, 15, 32, 46, 16],
|
|
3761
|
+
|
|
3762
|
+
// 39
|
|
3763
|
+
[20, 147, 117, 4, 148, 118],
|
|
3764
|
+
[40, 75, 47, 7, 76, 48],
|
|
3765
|
+
[43, 54, 24, 22, 55, 25],
|
|
3766
|
+
[10, 45, 15, 67, 46, 16],
|
|
3767
|
+
|
|
3768
|
+
// 40
|
|
3769
|
+
[19, 148, 118, 6, 149, 119],
|
|
3770
|
+
[18, 75, 47, 31, 76, 48],
|
|
3771
|
+
[34, 54, 24, 34, 55, 25],
|
|
3772
|
+
[20, 45, 15, 61, 46, 16]
|
|
3773
|
+
];
|
|
3774
|
+
|
|
3775
|
+
var qrRSBlock = function(totalCount, dataCount) {
|
|
3776
|
+
var _this = {};
|
|
3777
|
+
_this.totalCount = totalCount;
|
|
3778
|
+
_this.dataCount = dataCount;
|
|
3779
|
+
return _this;
|
|
3780
|
+
};
|
|
3781
|
+
|
|
3782
|
+
var _this = {};
|
|
3783
|
+
|
|
3784
|
+
var getRsBlockTable = function(typeNumber, errorCorrectionLevel) {
|
|
3785
|
+
|
|
3786
|
+
switch(errorCorrectionLevel) {
|
|
3787
|
+
case QRErrorCorrectionLevel.L :
|
|
3788
|
+
return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];
|
|
3789
|
+
case QRErrorCorrectionLevel.M :
|
|
3790
|
+
return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];
|
|
3791
|
+
case QRErrorCorrectionLevel.Q :
|
|
3792
|
+
return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];
|
|
3793
|
+
case QRErrorCorrectionLevel.H :
|
|
3794
|
+
return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];
|
|
3795
|
+
default :
|
|
3796
|
+
return undefined;
|
|
3797
|
+
}
|
|
3798
|
+
};
|
|
3799
|
+
|
|
3800
|
+
_this.getRSBlocks = function(typeNumber, errorCorrectionLevel) {
|
|
3801
|
+
|
|
3802
|
+
var rsBlock = getRsBlockTable(typeNumber, errorCorrectionLevel);
|
|
3803
|
+
|
|
3804
|
+
if (typeof rsBlock == 'undefined') {
|
|
3805
|
+
throw 'bad rs block @ typeNumber:' + typeNumber +
|
|
3806
|
+
'/errorCorrectionLevel:' + errorCorrectionLevel;
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
var length = rsBlock.length / 3;
|
|
3810
|
+
|
|
3811
|
+
var list = [];
|
|
3812
|
+
|
|
3813
|
+
for (var i = 0; i < length; i += 1) {
|
|
3814
|
+
|
|
3815
|
+
var count = rsBlock[i * 3 + 0];
|
|
3816
|
+
var totalCount = rsBlock[i * 3 + 1];
|
|
3817
|
+
var dataCount = rsBlock[i * 3 + 2];
|
|
3818
|
+
|
|
3819
|
+
for (var j = 0; j < count; j += 1) {
|
|
3820
|
+
list.push(qrRSBlock(totalCount, dataCount) );
|
|
3821
|
+
}
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
return list;
|
|
3825
|
+
};
|
|
3826
|
+
|
|
3827
|
+
return _this;
|
|
3828
|
+
}();
|
|
3829
|
+
|
|
3830
|
+
//---------------------------------------------------------------------
|
|
3831
|
+
// qrBitBuffer
|
|
3832
|
+
//---------------------------------------------------------------------
|
|
3833
|
+
|
|
3834
|
+
var qrBitBuffer = function() {
|
|
3835
|
+
|
|
3836
|
+
var _buffer = [];
|
|
3837
|
+
var _length = 0;
|
|
3838
|
+
|
|
3839
|
+
var _this = {};
|
|
3840
|
+
|
|
3841
|
+
_this.getBuffer = function() {
|
|
3842
|
+
return _buffer;
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3845
|
+
_this.getAt = function(index) {
|
|
3846
|
+
var bufIndex = Math.floor(index / 8);
|
|
3847
|
+
return ( (_buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1;
|
|
3848
|
+
};
|
|
3849
|
+
|
|
3850
|
+
_this.put = function(num, length) {
|
|
3851
|
+
for (var i = 0; i < length; i += 1) {
|
|
3852
|
+
_this.putBit( ( (num >>> (length - i - 1) ) & 1) == 1);
|
|
3853
|
+
}
|
|
3854
|
+
};
|
|
3855
|
+
|
|
3856
|
+
_this.getLengthInBits = function() {
|
|
3857
|
+
return _length;
|
|
3858
|
+
};
|
|
3859
|
+
|
|
3860
|
+
_this.putBit = function(bit) {
|
|
3861
|
+
|
|
3862
|
+
var bufIndex = Math.floor(_length / 8);
|
|
3863
|
+
if (_buffer.length <= bufIndex) {
|
|
3864
|
+
_buffer.push(0);
|
|
3865
|
+
}
|
|
3866
|
+
|
|
3867
|
+
if (bit) {
|
|
3868
|
+
_buffer[bufIndex] |= (0x80 >>> (_length % 8) );
|
|
3869
|
+
}
|
|
3870
|
+
|
|
3871
|
+
_length += 1;
|
|
3872
|
+
};
|
|
3873
|
+
|
|
3874
|
+
return _this;
|
|
3875
|
+
};
|
|
3876
|
+
|
|
3877
|
+
//---------------------------------------------------------------------
|
|
3878
|
+
// qrNumber
|
|
3879
|
+
//---------------------------------------------------------------------
|
|
3880
|
+
|
|
3881
|
+
var qrNumber = function(data) {
|
|
3882
|
+
|
|
3883
|
+
var _mode = QRMode.MODE_NUMBER;
|
|
3884
|
+
var _data = data;
|
|
3885
|
+
|
|
3886
|
+
var _this = {};
|
|
3887
|
+
|
|
3888
|
+
_this.getMode = function() {
|
|
3889
|
+
return _mode;
|
|
3890
|
+
};
|
|
3891
|
+
|
|
3892
|
+
_this.getLength = function(buffer) {
|
|
3893
|
+
return _data.length;
|
|
3894
|
+
};
|
|
3895
|
+
|
|
3896
|
+
_this.write = function(buffer) {
|
|
3897
|
+
|
|
3898
|
+
var data = _data;
|
|
3899
|
+
|
|
3900
|
+
var i = 0;
|
|
3901
|
+
|
|
3902
|
+
while (i + 2 < data.length) {
|
|
3903
|
+
buffer.put(strToNum(data.substring(i, i + 3) ), 10);
|
|
3904
|
+
i += 3;
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3907
|
+
if (i < data.length) {
|
|
3908
|
+
if (data.length - i == 1) {
|
|
3909
|
+
buffer.put(strToNum(data.substring(i, i + 1) ), 4);
|
|
3910
|
+
} else if (data.length - i == 2) {
|
|
3911
|
+
buffer.put(strToNum(data.substring(i, i + 2) ), 7);
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
};
|
|
3915
|
+
|
|
3916
|
+
var strToNum = function(s) {
|
|
3917
|
+
var num = 0;
|
|
3918
|
+
for (var i = 0; i < s.length; i += 1) {
|
|
3919
|
+
num = num * 10 + chatToNum(s.charAt(i) );
|
|
3920
|
+
}
|
|
3921
|
+
return num;
|
|
3922
|
+
};
|
|
3923
|
+
|
|
3924
|
+
var chatToNum = function(c) {
|
|
3925
|
+
if ('0' <= c && c <= '9') {
|
|
3926
|
+
return c.charCodeAt(0) - '0'.charCodeAt(0);
|
|
3927
|
+
}
|
|
3928
|
+
throw 'illegal char :' + c;
|
|
3929
|
+
};
|
|
3930
|
+
|
|
3931
|
+
return _this;
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3934
|
+
//---------------------------------------------------------------------
|
|
3935
|
+
// qrAlphaNum
|
|
3936
|
+
//---------------------------------------------------------------------
|
|
3937
|
+
|
|
3938
|
+
var qrAlphaNum = function(data) {
|
|
3939
|
+
|
|
3940
|
+
var _mode = QRMode.MODE_ALPHA_NUM;
|
|
3941
|
+
var _data = data;
|
|
3942
|
+
|
|
3943
|
+
var _this = {};
|
|
3944
|
+
|
|
3945
|
+
_this.getMode = function() {
|
|
3946
|
+
return _mode;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3949
|
+
_this.getLength = function(buffer) {
|
|
3950
|
+
return _data.length;
|
|
3951
|
+
};
|
|
3952
|
+
|
|
3953
|
+
_this.write = function(buffer) {
|
|
3954
|
+
|
|
3955
|
+
var s = _data;
|
|
3956
|
+
|
|
3957
|
+
var i = 0;
|
|
3958
|
+
|
|
3959
|
+
while (i + 1 < s.length) {
|
|
3960
|
+
buffer.put(
|
|
3961
|
+
getCode(s.charAt(i) ) * 45 +
|
|
3962
|
+
getCode(s.charAt(i + 1) ), 11);
|
|
3963
|
+
i += 2;
|
|
3964
|
+
}
|
|
3965
|
+
|
|
3966
|
+
if (i < s.length) {
|
|
3967
|
+
buffer.put(getCode(s.charAt(i) ), 6);
|
|
3968
|
+
}
|
|
3969
|
+
};
|
|
3970
|
+
|
|
3971
|
+
var getCode = function(c) {
|
|
3972
|
+
|
|
3973
|
+
if ('0' <= c && c <= '9') {
|
|
3974
|
+
return c.charCodeAt(0) - '0'.charCodeAt(0);
|
|
3975
|
+
} else if ('A' <= c && c <= 'Z') {
|
|
3976
|
+
return c.charCodeAt(0) - 'A'.charCodeAt(0) + 10;
|
|
3977
|
+
} else {
|
|
3978
|
+
switch (c) {
|
|
3979
|
+
case ' ' : return 36;
|
|
3980
|
+
case '$' : return 37;
|
|
3981
|
+
case '%' : return 38;
|
|
3982
|
+
case '*' : return 39;
|
|
3983
|
+
case '+' : return 40;
|
|
3984
|
+
case '-' : return 41;
|
|
3985
|
+
case '.' : return 42;
|
|
3986
|
+
case '/' : return 43;
|
|
3987
|
+
case ':' : return 44;
|
|
3988
|
+
default :
|
|
3989
|
+
throw 'illegal char :' + c;
|
|
3990
|
+
}
|
|
3991
|
+
}
|
|
3992
|
+
};
|
|
3993
|
+
|
|
3994
|
+
return _this;
|
|
3995
|
+
};
|
|
3996
|
+
|
|
3997
|
+
//---------------------------------------------------------------------
|
|
3998
|
+
// qr8BitByte
|
|
3999
|
+
//---------------------------------------------------------------------
|
|
4000
|
+
|
|
4001
|
+
var qr8BitByte = function(data) {
|
|
4002
|
+
|
|
4003
|
+
var _mode = QRMode.MODE_8BIT_BYTE;
|
|
4004
|
+
var _bytes = qrcode.stringToBytes(data);
|
|
4005
|
+
|
|
4006
|
+
var _this = {};
|
|
4007
|
+
|
|
4008
|
+
_this.getMode = function() {
|
|
4009
|
+
return _mode;
|
|
4010
|
+
};
|
|
4011
|
+
|
|
4012
|
+
_this.getLength = function(buffer) {
|
|
4013
|
+
return _bytes.length;
|
|
4014
|
+
};
|
|
4015
|
+
|
|
4016
|
+
_this.write = function(buffer) {
|
|
4017
|
+
for (var i = 0; i < _bytes.length; i += 1) {
|
|
4018
|
+
buffer.put(_bytes[i], 8);
|
|
4019
|
+
}
|
|
4020
|
+
};
|
|
4021
|
+
|
|
4022
|
+
return _this;
|
|
4023
|
+
};
|
|
4024
|
+
|
|
4025
|
+
//---------------------------------------------------------------------
|
|
4026
|
+
// qrKanji
|
|
4027
|
+
//---------------------------------------------------------------------
|
|
4028
|
+
|
|
4029
|
+
var qrKanji = function(data) {
|
|
4030
|
+
|
|
4031
|
+
var _mode = QRMode.MODE_KANJI;
|
|
4032
|
+
|
|
4033
|
+
var stringToBytes = qrcode.stringToBytesFuncs['SJIS'];
|
|
4034
|
+
if (!stringToBytes) {
|
|
4035
|
+
throw 'sjis not supported.';
|
|
4036
|
+
}
|
|
4037
|
+
!function(c, code) {
|
|
4038
|
+
// self test for sjis support.
|
|
4039
|
+
var test = stringToBytes(c);
|
|
4040
|
+
if (test.length != 2 || ( (test[0] << 8) | test[1]) != code) {
|
|
4041
|
+
throw 'sjis not supported.';
|
|
4042
|
+
}
|
|
4043
|
+
}('\u53cb', 0x9746);
|
|
4044
|
+
|
|
4045
|
+
var _bytes = stringToBytes(data);
|
|
4046
|
+
|
|
4047
|
+
var _this = {};
|
|
4048
|
+
|
|
4049
|
+
_this.getMode = function() {
|
|
4050
|
+
return _mode;
|
|
4051
|
+
};
|
|
4052
|
+
|
|
4053
|
+
_this.getLength = function(buffer) {
|
|
4054
|
+
return ~~(_bytes.length / 2);
|
|
4055
|
+
};
|
|
4056
|
+
|
|
4057
|
+
_this.write = function(buffer) {
|
|
4058
|
+
|
|
4059
|
+
var data = _bytes;
|
|
4060
|
+
|
|
4061
|
+
var i = 0;
|
|
4062
|
+
|
|
4063
|
+
while (i + 1 < data.length) {
|
|
4064
|
+
|
|
4065
|
+
var c = ( (0xff & data[i]) << 8) | (0xff & data[i + 1]);
|
|
4066
|
+
|
|
4067
|
+
if (0x8140 <= c && c <= 0x9FFC) {
|
|
4068
|
+
c -= 0x8140;
|
|
4069
|
+
} else if (0xE040 <= c && c <= 0xEBBF) {
|
|
4070
|
+
c -= 0xC140;
|
|
4071
|
+
} else {
|
|
4072
|
+
throw 'illegal char at ' + (i + 1) + '/' + c;
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
c = ( (c >>> 8) & 0xff) * 0xC0 + (c & 0xff);
|
|
4076
|
+
|
|
4077
|
+
buffer.put(c, 13);
|
|
4078
|
+
|
|
4079
|
+
i += 2;
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
if (i < data.length) {
|
|
4083
|
+
throw 'illegal char at ' + (i + 1);
|
|
4084
|
+
}
|
|
4085
|
+
};
|
|
4086
|
+
|
|
4087
|
+
return _this;
|
|
4088
|
+
};
|
|
4089
|
+
|
|
4090
|
+
//=====================================================================
|
|
4091
|
+
// GIF Support etc.
|
|
4092
|
+
//
|
|
4093
|
+
|
|
4094
|
+
//---------------------------------------------------------------------
|
|
4095
|
+
// byteArrayOutputStream
|
|
4096
|
+
//---------------------------------------------------------------------
|
|
4097
|
+
|
|
4098
|
+
var byteArrayOutputStream = function() {
|
|
4099
|
+
|
|
4100
|
+
var _bytes = [];
|
|
4101
|
+
|
|
4102
|
+
var _this = {};
|
|
4103
|
+
|
|
4104
|
+
_this.writeByte = function(b) {
|
|
4105
|
+
_bytes.push(b & 0xff);
|
|
4106
|
+
};
|
|
4107
|
+
|
|
4108
|
+
_this.writeShort = function(i) {
|
|
4109
|
+
_this.writeByte(i);
|
|
4110
|
+
_this.writeByte(i >>> 8);
|
|
4111
|
+
};
|
|
4112
|
+
|
|
4113
|
+
_this.writeBytes = function(b, off, len) {
|
|
4114
|
+
off = off || 0;
|
|
4115
|
+
len = len || b.length;
|
|
4116
|
+
for (var i = 0; i < len; i += 1) {
|
|
4117
|
+
_this.writeByte(b[i + off]);
|
|
4118
|
+
}
|
|
4119
|
+
};
|
|
4120
|
+
|
|
4121
|
+
_this.writeString = function(s) {
|
|
4122
|
+
for (var i = 0; i < s.length; i += 1) {
|
|
4123
|
+
_this.writeByte(s.charCodeAt(i) );
|
|
4124
|
+
}
|
|
4125
|
+
};
|
|
4126
|
+
|
|
4127
|
+
_this.toByteArray = function() {
|
|
4128
|
+
return _bytes;
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
_this.toString = function() {
|
|
4132
|
+
var s = '';
|
|
4133
|
+
s += '[';
|
|
4134
|
+
for (var i = 0; i < _bytes.length; i += 1) {
|
|
4135
|
+
if (i > 0) {
|
|
4136
|
+
s += ',';
|
|
4137
|
+
}
|
|
4138
|
+
s += _bytes[i];
|
|
4139
|
+
}
|
|
4140
|
+
s += ']';
|
|
4141
|
+
return s;
|
|
4142
|
+
};
|
|
4143
|
+
|
|
4144
|
+
return _this;
|
|
4145
|
+
};
|
|
4146
|
+
|
|
4147
|
+
//---------------------------------------------------------------------
|
|
4148
|
+
// base64EncodeOutputStream
|
|
4149
|
+
//---------------------------------------------------------------------
|
|
4150
|
+
|
|
4151
|
+
var base64EncodeOutputStream = function() {
|
|
4152
|
+
|
|
4153
|
+
var _buffer = 0;
|
|
4154
|
+
var _buflen = 0;
|
|
4155
|
+
var _length = 0;
|
|
4156
|
+
var _base64 = '';
|
|
4157
|
+
|
|
4158
|
+
var _this = {};
|
|
4159
|
+
|
|
4160
|
+
var writeEncoded = function(b) {
|
|
4161
|
+
_base64 += String.fromCharCode(encode(b & 0x3f) );
|
|
4162
|
+
};
|
|
4163
|
+
|
|
4164
|
+
var encode = function(n) {
|
|
4165
|
+
if (n < 0) ; else if (n < 26) {
|
|
4166
|
+
return 0x41 + n;
|
|
4167
|
+
} else if (n < 52) {
|
|
4168
|
+
return 0x61 + (n - 26);
|
|
4169
|
+
} else if (n < 62) {
|
|
4170
|
+
return 0x30 + (n - 52);
|
|
4171
|
+
} else if (n == 62) {
|
|
4172
|
+
return 0x2b;
|
|
4173
|
+
} else if (n == 63) {
|
|
4174
|
+
return 0x2f;
|
|
4175
|
+
}
|
|
4176
|
+
throw 'n:' + n;
|
|
4177
|
+
};
|
|
4178
|
+
|
|
4179
|
+
_this.writeByte = function(n) {
|
|
4180
|
+
|
|
4181
|
+
_buffer = (_buffer << 8) | (n & 0xff);
|
|
4182
|
+
_buflen += 8;
|
|
4183
|
+
_length += 1;
|
|
4184
|
+
|
|
4185
|
+
while (_buflen >= 6) {
|
|
4186
|
+
writeEncoded(_buffer >>> (_buflen - 6) );
|
|
4187
|
+
_buflen -= 6;
|
|
4188
|
+
}
|
|
4189
|
+
};
|
|
4190
|
+
|
|
4191
|
+
_this.flush = function() {
|
|
4192
|
+
|
|
4193
|
+
if (_buflen > 0) {
|
|
4194
|
+
writeEncoded(_buffer << (6 - _buflen) );
|
|
4195
|
+
_buffer = 0;
|
|
4196
|
+
_buflen = 0;
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
if (_length % 3 != 0) {
|
|
4200
|
+
// padding
|
|
4201
|
+
var padlen = 3 - _length % 3;
|
|
4202
|
+
for (var i = 0; i < padlen; i += 1) {
|
|
4203
|
+
_base64 += '=';
|
|
4204
|
+
}
|
|
4205
|
+
}
|
|
4206
|
+
};
|
|
4207
|
+
|
|
4208
|
+
_this.toString = function() {
|
|
4209
|
+
return _base64;
|
|
4210
|
+
};
|
|
4211
|
+
|
|
4212
|
+
return _this;
|
|
4213
|
+
};
|
|
4214
|
+
|
|
4215
|
+
//---------------------------------------------------------------------
|
|
4216
|
+
// base64DecodeInputStream
|
|
4217
|
+
//---------------------------------------------------------------------
|
|
4218
|
+
|
|
4219
|
+
var base64DecodeInputStream = function(str) {
|
|
4220
|
+
|
|
4221
|
+
var _str = str;
|
|
4222
|
+
var _pos = 0;
|
|
4223
|
+
var _buffer = 0;
|
|
4224
|
+
var _buflen = 0;
|
|
4225
|
+
|
|
4226
|
+
var _this = {};
|
|
4227
|
+
|
|
4228
|
+
_this.read = function() {
|
|
4229
|
+
|
|
4230
|
+
while (_buflen < 8) {
|
|
4231
|
+
|
|
4232
|
+
if (_pos >= _str.length) {
|
|
4233
|
+
if (_buflen == 0) {
|
|
4234
|
+
return -1;
|
|
4235
|
+
}
|
|
4236
|
+
throw 'unexpected end of file./' + _buflen;
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
var c = _str.charAt(_pos);
|
|
4240
|
+
_pos += 1;
|
|
4241
|
+
|
|
4242
|
+
if (c == '=') {
|
|
4243
|
+
_buflen = 0;
|
|
4244
|
+
return -1;
|
|
4245
|
+
} else if (c.match(/^\s$/) ) {
|
|
4246
|
+
// ignore if whitespace.
|
|
4247
|
+
continue;
|
|
4248
|
+
}
|
|
4249
|
+
|
|
4250
|
+
_buffer = (_buffer << 6) | decode(c.charCodeAt(0) );
|
|
4251
|
+
_buflen += 6;
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
var n = (_buffer >>> (_buflen - 8) ) & 0xff;
|
|
4255
|
+
_buflen -= 8;
|
|
4256
|
+
return n;
|
|
4257
|
+
};
|
|
4258
|
+
|
|
4259
|
+
var decode = function(c) {
|
|
4260
|
+
if (0x41 <= c && c <= 0x5a) {
|
|
4261
|
+
return c - 0x41;
|
|
4262
|
+
} else if (0x61 <= c && c <= 0x7a) {
|
|
4263
|
+
return c - 0x61 + 26;
|
|
4264
|
+
} else if (0x30 <= c && c <= 0x39) {
|
|
4265
|
+
return c - 0x30 + 52;
|
|
4266
|
+
} else if (c == 0x2b) {
|
|
4267
|
+
return 62;
|
|
4268
|
+
} else if (c == 0x2f) {
|
|
4269
|
+
return 63;
|
|
4270
|
+
} else {
|
|
4271
|
+
throw 'c:' + c;
|
|
4272
|
+
}
|
|
4273
|
+
};
|
|
4274
|
+
|
|
4275
|
+
return _this;
|
|
4276
|
+
};
|
|
4277
|
+
|
|
4278
|
+
//---------------------------------------------------------------------
|
|
4279
|
+
// gifImage (B/W)
|
|
4280
|
+
//---------------------------------------------------------------------
|
|
4281
|
+
|
|
4282
|
+
var gifImage = function(width, height) {
|
|
4283
|
+
|
|
4284
|
+
var _width = width;
|
|
4285
|
+
var _height = height;
|
|
4286
|
+
var _data = new Array(width * height);
|
|
4287
|
+
|
|
4288
|
+
var _this = {};
|
|
4289
|
+
|
|
4290
|
+
_this.setPixel = function(x, y, pixel) {
|
|
4291
|
+
_data[y * _width + x] = pixel;
|
|
4292
|
+
};
|
|
4293
|
+
|
|
4294
|
+
_this.write = function(out) {
|
|
4295
|
+
|
|
4296
|
+
//---------------------------------
|
|
4297
|
+
// GIF Signature
|
|
4298
|
+
|
|
4299
|
+
out.writeString('GIF87a');
|
|
4300
|
+
|
|
4301
|
+
//---------------------------------
|
|
4302
|
+
// Screen Descriptor
|
|
4303
|
+
|
|
4304
|
+
out.writeShort(_width);
|
|
4305
|
+
out.writeShort(_height);
|
|
4306
|
+
|
|
4307
|
+
out.writeByte(0x80); // 2bit
|
|
4308
|
+
out.writeByte(0);
|
|
4309
|
+
out.writeByte(0);
|
|
4310
|
+
|
|
4311
|
+
//---------------------------------
|
|
4312
|
+
// Global Color Map
|
|
4313
|
+
|
|
4314
|
+
// black
|
|
4315
|
+
out.writeByte(0x00);
|
|
4316
|
+
out.writeByte(0x00);
|
|
4317
|
+
out.writeByte(0x00);
|
|
4318
|
+
|
|
4319
|
+
// white
|
|
4320
|
+
out.writeByte(0xff);
|
|
4321
|
+
out.writeByte(0xff);
|
|
4322
|
+
out.writeByte(0xff);
|
|
4323
|
+
|
|
4324
|
+
//---------------------------------
|
|
4325
|
+
// Image Descriptor
|
|
4326
|
+
|
|
4327
|
+
out.writeString(',');
|
|
4328
|
+
out.writeShort(0);
|
|
4329
|
+
out.writeShort(0);
|
|
4330
|
+
out.writeShort(_width);
|
|
4331
|
+
out.writeShort(_height);
|
|
4332
|
+
out.writeByte(0);
|
|
4333
|
+
|
|
4334
|
+
//---------------------------------
|
|
4335
|
+
// Local Color Map
|
|
4336
|
+
|
|
4337
|
+
//---------------------------------
|
|
4338
|
+
// Raster Data
|
|
4339
|
+
|
|
4340
|
+
var lzwMinCodeSize = 2;
|
|
4341
|
+
var raster = getLZWRaster(lzwMinCodeSize);
|
|
4342
|
+
|
|
4343
|
+
out.writeByte(lzwMinCodeSize);
|
|
4344
|
+
|
|
4345
|
+
var offset = 0;
|
|
4346
|
+
|
|
4347
|
+
while (raster.length - offset > 255) {
|
|
4348
|
+
out.writeByte(255);
|
|
4349
|
+
out.writeBytes(raster, offset, 255);
|
|
4350
|
+
offset += 255;
|
|
4351
|
+
}
|
|
4352
|
+
|
|
4353
|
+
out.writeByte(raster.length - offset);
|
|
4354
|
+
out.writeBytes(raster, offset, raster.length - offset);
|
|
4355
|
+
out.writeByte(0x00);
|
|
4356
|
+
|
|
4357
|
+
//---------------------------------
|
|
4358
|
+
// GIF Terminator
|
|
4359
|
+
out.writeString(';');
|
|
4360
|
+
};
|
|
4361
|
+
|
|
4362
|
+
var bitOutputStream = function(out) {
|
|
4363
|
+
|
|
4364
|
+
var _out = out;
|
|
4365
|
+
var _bitLength = 0;
|
|
4366
|
+
var _bitBuffer = 0;
|
|
4367
|
+
|
|
4368
|
+
var _this = {};
|
|
4369
|
+
|
|
4370
|
+
_this.write = function(data, length) {
|
|
4371
|
+
|
|
4372
|
+
if ( (data >>> length) != 0) {
|
|
4373
|
+
throw 'length over';
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
while (_bitLength + length >= 8) {
|
|
4377
|
+
_out.writeByte(0xff & ( (data << _bitLength) | _bitBuffer) );
|
|
4378
|
+
length -= (8 - _bitLength);
|
|
4379
|
+
data >>>= (8 - _bitLength);
|
|
4380
|
+
_bitBuffer = 0;
|
|
4381
|
+
_bitLength = 0;
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
_bitBuffer = (data << _bitLength) | _bitBuffer;
|
|
4385
|
+
_bitLength = _bitLength + length;
|
|
4386
|
+
};
|
|
4387
|
+
|
|
4388
|
+
_this.flush = function() {
|
|
4389
|
+
if (_bitLength > 0) {
|
|
4390
|
+
_out.writeByte(_bitBuffer);
|
|
4391
|
+
}
|
|
4392
|
+
};
|
|
4393
|
+
|
|
4394
|
+
return _this;
|
|
4395
|
+
};
|
|
4396
|
+
|
|
4397
|
+
var getLZWRaster = function(lzwMinCodeSize) {
|
|
4398
|
+
|
|
4399
|
+
var clearCode = 1 << lzwMinCodeSize;
|
|
4400
|
+
var endCode = (1 << lzwMinCodeSize) + 1;
|
|
4401
|
+
var bitLength = lzwMinCodeSize + 1;
|
|
4402
|
+
|
|
4403
|
+
// Setup LZWTable
|
|
4404
|
+
var table = lzwTable();
|
|
4405
|
+
|
|
4406
|
+
for (var i = 0; i < clearCode; i += 1) {
|
|
4407
|
+
table.add(String.fromCharCode(i) );
|
|
4408
|
+
}
|
|
4409
|
+
table.add(String.fromCharCode(clearCode) );
|
|
4410
|
+
table.add(String.fromCharCode(endCode) );
|
|
4411
|
+
|
|
4412
|
+
var byteOut = byteArrayOutputStream();
|
|
4413
|
+
var bitOut = bitOutputStream(byteOut);
|
|
4414
|
+
|
|
4415
|
+
// clear code
|
|
4416
|
+
bitOut.write(clearCode, bitLength);
|
|
4417
|
+
|
|
4418
|
+
var dataIndex = 0;
|
|
4419
|
+
|
|
4420
|
+
var s = String.fromCharCode(_data[dataIndex]);
|
|
4421
|
+
dataIndex += 1;
|
|
4422
|
+
|
|
4423
|
+
while (dataIndex < _data.length) {
|
|
4424
|
+
|
|
4425
|
+
var c = String.fromCharCode(_data[dataIndex]);
|
|
4426
|
+
dataIndex += 1;
|
|
4427
|
+
|
|
4428
|
+
if (table.contains(s + c) ) {
|
|
4429
|
+
|
|
4430
|
+
s = s + c;
|
|
4431
|
+
|
|
4432
|
+
} else {
|
|
4433
|
+
|
|
4434
|
+
bitOut.write(table.indexOf(s), bitLength);
|
|
4435
|
+
|
|
4436
|
+
if (table.size() < 0xfff) {
|
|
4437
|
+
|
|
4438
|
+
if (table.size() == (1 << bitLength) ) {
|
|
4439
|
+
bitLength += 1;
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4442
|
+
table.add(s + c);
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
s = c;
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
|
|
4449
|
+
bitOut.write(table.indexOf(s), bitLength);
|
|
4450
|
+
|
|
4451
|
+
// end code
|
|
4452
|
+
bitOut.write(endCode, bitLength);
|
|
4453
|
+
|
|
4454
|
+
bitOut.flush();
|
|
4455
|
+
|
|
4456
|
+
return byteOut.toByteArray();
|
|
4457
|
+
};
|
|
4458
|
+
|
|
4459
|
+
var lzwTable = function() {
|
|
4460
|
+
|
|
4461
|
+
var _map = {};
|
|
4462
|
+
var _size = 0;
|
|
4463
|
+
|
|
4464
|
+
var _this = {};
|
|
4465
|
+
|
|
4466
|
+
_this.add = function(key) {
|
|
4467
|
+
if (_this.contains(key) ) {
|
|
4468
|
+
throw 'dup key:' + key;
|
|
4469
|
+
}
|
|
4470
|
+
_map[key] = _size;
|
|
4471
|
+
_size += 1;
|
|
4472
|
+
};
|
|
4473
|
+
|
|
4474
|
+
_this.size = function() {
|
|
4475
|
+
return _size;
|
|
4476
|
+
};
|
|
4477
|
+
|
|
4478
|
+
_this.indexOf = function(key) {
|
|
4479
|
+
return _map[key];
|
|
4480
|
+
};
|
|
4481
|
+
|
|
4482
|
+
_this.contains = function(key) {
|
|
4483
|
+
return typeof _map[key] != 'undefined';
|
|
4484
|
+
};
|
|
4485
|
+
|
|
4486
|
+
return _this;
|
|
4487
|
+
};
|
|
4488
|
+
|
|
4489
|
+
return _this;
|
|
4490
|
+
};
|
|
4491
|
+
|
|
4492
|
+
var createDataURL = function(width, height, getPixel) {
|
|
4493
|
+
var gif = gifImage(width, height);
|
|
4494
|
+
for (var y = 0; y < height; y += 1) {
|
|
4495
|
+
for (var x = 0; x < width; x += 1) {
|
|
4496
|
+
gif.setPixel(x, y, getPixel(x, y) );
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
|
|
4500
|
+
var b = byteArrayOutputStream();
|
|
4501
|
+
gif.write(b);
|
|
4502
|
+
|
|
4503
|
+
var base64 = base64EncodeOutputStream();
|
|
4504
|
+
var bytes = b.toByteArray();
|
|
4505
|
+
for (var i = 0; i < bytes.length; i += 1) {
|
|
4506
|
+
base64.writeByte(bytes[i]);
|
|
4507
|
+
}
|
|
4508
|
+
base64.flush();
|
|
4509
|
+
|
|
4510
|
+
return 'data:image/gif;base64,' + base64;
|
|
4511
|
+
};
|
|
4512
|
+
|
|
4513
|
+
//---------------------------------------------------------------------
|
|
4514
|
+
// returns qrcode function.
|
|
4515
|
+
|
|
4516
|
+
return qrcode;
|
|
4517
|
+
}();
|
|
4518
|
+
|
|
4519
|
+
// multibyte support
|
|
4520
|
+
!function() {
|
|
4521
|
+
|
|
4522
|
+
qrcode.stringToBytesFuncs['UTF-8'] = function(s) {
|
|
4523
|
+
// http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array
|
|
4524
|
+
function toUTF8Array(str) {
|
|
4525
|
+
var utf8 = [];
|
|
4526
|
+
for (var i=0; i < str.length; i++) {
|
|
4527
|
+
var charcode = str.charCodeAt(i);
|
|
4528
|
+
if (charcode < 0x80) utf8.push(charcode);
|
|
4529
|
+
else if (charcode < 0x800) {
|
|
4530
|
+
utf8.push(0xc0 | (charcode >> 6),
|
|
4531
|
+
0x80 | (charcode & 0x3f));
|
|
4532
|
+
}
|
|
4533
|
+
else if (charcode < 0xd800 || charcode >= 0xe000) {
|
|
4534
|
+
utf8.push(0xe0 | (charcode >> 12),
|
|
4535
|
+
0x80 | ((charcode>>6) & 0x3f),
|
|
4536
|
+
0x80 | (charcode & 0x3f));
|
|
4537
|
+
}
|
|
4538
|
+
// surrogate pair
|
|
4539
|
+
else {
|
|
4540
|
+
i++;
|
|
4541
|
+
// UTF-16 encodes 0x10000-0x10FFFF by
|
|
4542
|
+
// subtracting 0x10000 and splitting the
|
|
4543
|
+
// 20 bits of 0x0-0xFFFFF into two halves
|
|
4544
|
+
charcode = 0x10000 + (((charcode & 0x3ff)<<10)
|
|
4545
|
+
| (str.charCodeAt(i) & 0x3ff));
|
|
4546
|
+
utf8.push(0xf0 | (charcode >>18),
|
|
4547
|
+
0x80 | ((charcode>>12) & 0x3f),
|
|
4548
|
+
0x80 | ((charcode>>6) & 0x3f),
|
|
4549
|
+
0x80 | (charcode & 0x3f));
|
|
4550
|
+
}
|
|
4551
|
+
}
|
|
4552
|
+
return utf8;
|
|
4553
|
+
}
|
|
4554
|
+
return toUTF8Array(s);
|
|
4555
|
+
};
|
|
4556
|
+
|
|
4557
|
+
}();
|
|
4558
|
+
|
|
4559
|
+
(function (factory) {
|
|
4560
|
+
{
|
|
4561
|
+
module.exports = factory();
|
|
4562
|
+
}
|
|
4563
|
+
}(function () {
|
|
4564
|
+
return qrcode;
|
|
4565
|
+
}));
|
|
4566
|
+
} (qrcode$1));
|
|
4567
|
+
return qrcode$1.exports;
|
|
4568
|
+
}
|
|
4569
|
+
|
|
4570
|
+
var qrcodeExports = requireQrcode();
|
|
4571
|
+
var qrcode = /*@__PURE__*/markdown.getDefaultExportFromCjs(qrcodeExports);
|
|
2269
4572
|
|
|
2270
4573
|
// 文件上传流水号SDK
|
|
2271
4574
|
const uploadNumberSDK$1 = {
|
|
@@ -2294,7 +4597,7 @@ const componentsMobileInputBtnCss = ".mobile-upload{display:flex;justify-content
|
|
|
2294
4597
|
|
|
2295
4598
|
const globalCss$k = ".resume-node-status{display:flex;align-items:flex-start;gap:8px;max-width:100%;box-sizing:border-box;padding:4px 20px;color:#8c8c8c;font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere}.resume-node-status>span:last-child{min-width:0}.resume-node-status-spinner{flex:0 0 12px;width:12px;height:12px;box-sizing:border-box;margin-top:4px;border:1.5px dotted #a3a3a3;border-right-color:transparent;border-radius:50%;animation:resume-node-spin 1.2s linear infinite}@keyframes resume-node-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.resume-node-status-spinner{animation:none}}.resume-analysis-region{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:400px}.resume-analysis-overlay{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border-radius:8px;background:rgba(255, 255, 255, 0.94);color:#666;text-align:center;white-space:pre-line;overflow-wrap:anywhere}.resume-analysis-overlay p{margin:0;max-width:100%}.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:3vh 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}";
|
|
2296
4599
|
|
|
2297
|
-
const hostCss$
|
|
4600
|
+
const hostCss$m = ":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}";
|
|
2298
4601
|
|
|
2299
4602
|
const ComponentsMobileInputBtn = class {
|
|
2300
4603
|
constructor(hostRef) {
|
|
@@ -2445,7 +4748,7 @@ const ComponentsMobileInputBtn = class {
|
|
|
2445
4748
|
} }, "\u5B8C\u6210"))))));
|
|
2446
4749
|
}
|
|
2447
4750
|
};
|
|
2448
|
-
ComponentsMobileInputBtn.style = componentsMobileInputBtnCss + (globalCss$k + hostCss$
|
|
4751
|
+
ComponentsMobileInputBtn.style = componentsMobileInputBtnCss + (globalCss$k + hostCss$m);
|
|
2449
4752
|
|
|
2450
4753
|
// 文件上传流水号SDK
|
|
2451
4754
|
const uploadNumberSDK = {
|
|
@@ -2474,7 +4777,7 @@ const componentsMobileUploadBtnCss = ".upload-area{max-height:300px;overflow-y:a
|
|
|
2474
4777
|
|
|
2475
4778
|
const globalCss$j = ".resume-node-status{display:flex;align-items:flex-start;gap:8px;max-width:100%;box-sizing:border-box;padding:4px 20px;color:#8c8c8c;font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere}.resume-node-status>span:last-child{min-width:0}.resume-node-status-spinner{flex:0 0 12px;width:12px;height:12px;box-sizing:border-box;margin-top:4px;border:1.5px dotted #a3a3a3;border-right-color:transparent;border-radius:50%;animation:resume-node-spin 1.2s linear infinite}@keyframes resume-node-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.resume-node-status-spinner{animation:none}}.resume-analysis-region{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:400px}.resume-analysis-overlay{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border-radius:8px;background:rgba(255, 255, 255, 0.94);color:#666;text-align:center;white-space:pre-line;overflow-wrap:anywhere}.resume-analysis-overlay p{margin:0;max-width:100%}.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:3vh 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}";
|
|
2476
4779
|
|
|
2477
|
-
const hostCss$
|
|
4780
|
+
const hostCss$l = ":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}";
|
|
2478
4781
|
|
|
2479
4782
|
const ComponentsMobileUploadBtn = class {
|
|
2480
4783
|
constructor(hostRef) {
|
|
@@ -2690,7 +4993,7 @@ const ComponentsMobileUploadBtn = class {
|
|
|
2690
4993
|
} }, "\u5B8C\u6210"))))));
|
|
2691
4994
|
}
|
|
2692
4995
|
};
|
|
2693
|
-
ComponentsMobileUploadBtn.style = componentsMobileUploadBtnCss + (globalCss$j + hostCss$
|
|
4996
|
+
ComponentsMobileUploadBtn.style = componentsMobileUploadBtnCss + (globalCss$j + hostCss$l);
|
|
2694
4997
|
|
|
2695
4998
|
const componentsPositionSelectorCss = ":host{display:block;width:100%;height:100%}.position-selector-container{display:flex;flex-direction:column;width:100%;height:100%;background:#fff}.search-bar{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.search-input-wrapper{position:relative;display:flex;align-items:center;flex:1;min-width:200px;max-width:500px}.search-icon{position:absolute;left:12px;color:#bfbfbf;pointer-events:none}.search-input{width:100%;height:36px;padding:4px 36px 4px 36px;font-size:14px;line-height:1.5;color:rgba(0, 0, 0, 0.85);background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:6px;transition:all 0.3s;outline:none}.search-input:hover{border-color:#40a9ff}.search-input:focus{border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.search-input::placeholder{color:#bfbfbf}.clear-button{position:absolute;right:12px;background:none;border:none;padding:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#bfbfbf;transition:color 0.3s}.clear-button:hover{color:#8c8c8c}.search-button{padding:4px 15px;height:36px;font-size:14px;line-height:1.5;border-radius:6px;color:#fff;background-color:#1890ff;border:1px solid #1890ff;cursor:pointer;transition:all 0.3s;outline:none;white-space:nowrap;flex-shrink:0}.search-button:hover{background-color:#40a9ff;border-color:#40a9ff}.search-button:active{background-color:#096dd9;border-color:#096dd9}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;gap:16px;color:#8c8c8c}.loading-spinner{width:32px;height:32px;border:3px solid #f0f0f0;border-top-color:#1890ff;border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:16px}.empty-icon{opacity:0.5}.empty-text{margin:0;color:#8c8c8c;font-size:14px}.position-list{flex:1;overflow-y:auto;min-height:0}.table-container{width:100%;overflow-x:auto}.position-table{width:100%;border-collapse:collapse;font-size:14px}.position-table thead{background-color:#fafafa;position:sticky;top:0;z-index:1}.position-table th{padding:12px 16px;text-align:left;font-weight:500;color:rgba(0, 0, 0, 0.85);border-bottom:1px solid #f0f0f0;white-space:nowrap}.position-table td{padding:12px 16px;border-bottom:1px solid #f0f0f0;color:rgba(0, 0, 0, 0.65)}.position-table tbody tr{transition:background-color 0.3s}.position-table tbody tr:hover{background-color:#fafafa}.position-table tbody tr.selected-row{background-color:#e6f7ff}.checkbox-column{width:50px;text-align:center}.title-column{min-width:150px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company-column{min-width:120px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-column{min-width:100px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.requirements-column{min-width:200px;max-width:300px}.requirements-text{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-break:break-word;line-height:1.5}.salary-column{min-width:100px;white-space:nowrap}.action-column{width:100px;text-align:center}.position-checkbox{width:16px;height:16px;cursor:pointer;accent-color:#1890ff}.select-button{padding:4px 15px;height:28px;font-size:14px;line-height:1.5;border-radius:6px;color:#fff;background-color:#1890ff;border:1px solid #1890ff;cursor:pointer;transition:all 0.3s;outline:none}.select-button:hover{background-color:#40a9ff;border-color:#40a9ff}.select-button:active{background-color:#096dd9;border-color:#096dd9}@media screen and (max-width: 768px){.search-bar{padding:12px;gap:8px}.search-input-wrapper{min-width:auto;max-width:none}.search-input{height:40px;font-size:16px}.search-button{height:40px;padding:4px 12px}.table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}.position-table{font-size:12px}.position-table th,.position-table td{padding:8px 12px}.title-column,.company-column,.location-column{min-width:100px}.select-button{padding:4px 12px;height:32px;font-size:14px}}.pagination-container{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px;border-top:1px solid #f0f0f0;flex-shrink:0}.pagination-button{padding:4px 15px;height:32px;font-size:14px;line-height:1.5;border-radius:6px;color:rgba(0, 0, 0, 0.85);background-color:#fff;border:1px solid #d9d9d9;cursor:pointer;transition:all 0.3s;outline:none}.pagination-button:hover:not(:disabled){color:#40a9ff;border-color:#40a9ff}.pagination-button:active:not(:disabled){color:#096dd9;border-color:#096dd9}.pagination-button:disabled{color:rgba(0, 0, 0, 0.25);background-color:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.pagination-info{font-size:14px;color:rgba(0, 0, 0, 0.65)}.position-list::-webkit-scrollbar{width:8px;height:8px}.position-list::-webkit-scrollbar-track{background:#f1f1f1}.position-list::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.position-list::-webkit-scrollbar-thumb:hover{background:#555}";
|
|
2696
4999
|
|
|
@@ -2922,7 +5225,7 @@ const componentsThousandResumeWrapperCss = ".loading-container{display:flex;flex
|
|
|
2922
5225
|
|
|
2923
5226
|
const globalCss$h = ".resume-node-status{display:flex;align-items:flex-start;gap:8px;max-width:100%;box-sizing:border-box;padding:4px 20px;color:#8c8c8c;font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere}.resume-node-status>span:last-child{min-width:0}.resume-node-status-spinner{flex:0 0 12px;width:12px;height:12px;box-sizing:border-box;margin-top:4px;border:1.5px dotted #a3a3a3;border-right-color:transparent;border-radius:50%;animation:resume-node-spin 1.2s linear infinite}@keyframes resume-node-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.resume-node-status-spinner{animation:none}}.resume-analysis-region{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:400px}.resume-analysis-overlay{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border-radius:8px;background:rgba(255, 255, 255, 0.94);color:#666;text-align:center;white-space:pre-line;overflow-wrap:anywhere}.resume-analysis-overlay p{margin:0;max-width:100%}.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:3vh 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}";
|
|
2924
5227
|
|
|
2925
|
-
const hostCss$
|
|
5228
|
+
const hostCss$k = ":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}";
|
|
2926
5229
|
|
|
2927
5230
|
const ComponentsThousandResumeWrapper = class {
|
|
2928
5231
|
constructor(hostRef) {
|
|
@@ -3212,13 +5515,13 @@ const ComponentsThousandResumeWrapper = class {
|
|
|
3212
5515
|
"isOpen": ["handleIsOpenChange"]
|
|
3213
5516
|
}; }
|
|
3214
5517
|
};
|
|
3215
|
-
ComponentsThousandResumeWrapper.style = componentsThousandResumeWrapperCss + (globalCss$h + hostCss$
|
|
5518
|
+
ComponentsThousandResumeWrapper.style = componentsThousandResumeWrapperCss + (globalCss$h + hostCss$k);
|
|
3216
5519
|
|
|
3217
5520
|
const componentsUploadCss = ".upload-area{max-height:300px;overflow-y:auto}.upload-actions{display:flex;gap:12px;margin-top:12px;width:100%}";
|
|
3218
5521
|
|
|
3219
5522
|
const globalCss$g = ".resume-node-status{display:flex;align-items:flex-start;gap:8px;max-width:100%;box-sizing:border-box;padding:4px 20px;color:#8c8c8c;font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere}.resume-node-status>span:last-child{min-width:0}.resume-node-status-spinner{flex:0 0 12px;width:12px;height:12px;box-sizing:border-box;margin-top:4px;border:1.5px dotted #a3a3a3;border-right-color:transparent;border-radius:50%;animation:resume-node-spin 1.2s linear infinite}@keyframes resume-node-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.resume-node-status-spinner{animation:none}}.resume-analysis-region{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:400px}.resume-analysis-overlay{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border-radius:8px;background:rgba(255, 255, 255, 0.94);color:#666;text-align:center;white-space:pre-line;overflow-wrap:anywhere}.resume-analysis-overlay p{margin:0;max-width:100%}.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:3vh 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}";
|
|
3220
5523
|
|
|
3221
|
-
const hostCss$
|
|
5524
|
+
const hostCss$j = ":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}";
|
|
3222
5525
|
|
|
3223
5526
|
const ComponentsUpload = class {
|
|
3224
5527
|
constructor(hostRef) {
|
|
@@ -3473,7 +5776,7 @@ const ComponentsUpload = class {
|
|
|
3473
5776
|
}))), !this.disabled && (this.multiple ? index.h("div", { class: "upload-actions" }, (this.selectedFiles?.length ?? 0) < this.maxFileCount && this.uploadBtn()) : index.h("div", { class: "upload-actions" }, !this.selectedFiles?.length && this.uploadBtn()))), index.h("input", { key: '9248d915245239dd130c887f7d9da33707347598', type: "file", class: "file-input", multiple: this.multiple, onChange: this.handleFileChange })));
|
|
3474
5777
|
}
|
|
3475
5778
|
};
|
|
3476
|
-
ComponentsUpload.style = componentsUploadCss + (globalCss$g + hostCss$
|
|
5779
|
+
ComponentsUpload.style = componentsUploadCss + (globalCss$g + hostCss$j);
|
|
3477
5780
|
|
|
3478
5781
|
const componentsVoiceInputBtnCss = ":host{display:inline-flex}.voice-input-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#666;cursor:pointer;transition:background-color 0.2s, color 0.2s, border-color 0.2s}.voice-input-button:hover:not(:disabled){background-color:#f0f0f0;border-color:#bfbfbf}.voice-input-button:focus-visible{outline:2px solid rgba(46, 110, 223, 0.35);outline-offset:2px}.voice-input-button:disabled{cursor:not-allowed;opacity:0.55}.voice-input-button.recording{background-color:rgba(255, 0, 0, 0.1);border-color:rgba(255, 59, 48, 0.45);color:#ff3b30;animation:pulse 1.5s infinite}.voice-input-button.converting{background-color:rgba(0, 122, 255, 0.1);border-color:rgba(0, 122, 255, 0.35);color:#007aff}.converting-icon{animation:spin 1.5s linear infinite}@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.65}}@keyframes spin{to{transform:rotate(360deg)}}";
|
|
3479
5782
|
|
|
@@ -3673,7 +5976,7 @@ const ComponentsVoiceInputBtn = class {
|
|
|
3673
5976
|
: isConverting
|
|
3674
5977
|
? this._getText('正在识别语音...', 'Recognizing speech...')
|
|
3675
5978
|
: this._getText('语音输入', 'Voice input');
|
|
3676
|
-
return (index.h("button", { key: '
|
|
5979
|
+
return (index.h("button", { key: '61026d7314566e475e9a0ba2102e504d7a276b9e', type: "button", class: {
|
|
3677
5980
|
'voice-input-button': true,
|
|
3678
5981
|
'recording': isRecording,
|
|
3679
5982
|
'converting': isConverting,
|
|
@@ -3688,7 +5991,7 @@ const oemJlsxModalCss = ".pc-layout{max-width:none}.task-layout{width:90%;max-wi
|
|
|
3688
5991
|
|
|
3689
5992
|
const markdownCss$1 = ".markdown-body{--base-size-4:4px;--base-size-8:8px;--base-size-16:16px;--base-size-24:24px;--base-size-40:40px;--base-text-weight-normal:400;--base-text-weight-medium:500;--base-text-weight-semibold:600;--fontStack-monospace:ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;--fgColor-accent:Highlight}@media (prefers-color-scheme: dark){.markdown-body,[data-theme=\"dark\"]{color-scheme:dark;--focus-outlineColor:#0969da;--fgColor-default:#1f2328;--fgColor-muted:#59636e;--fgColor-accent:#0969da;--fgColor-success:#1a7f37;--fgColor-attention:#9a6700;--fgColor-danger:#d1242f;--fgColor-done:#8250df;--bgColor-default:#ffffff;--bgColor-muted:#f6f8fa;--bgColor-neutral-muted:#818b981f;--bgColor-attention-muted:#fff8c5;--borderColor-default:#d1d9e0;--borderColor-muted:#d1d9e0b3;--borderColor-neutral-muted:#d1d9e0b3;--borderColor-accent-emphasis:#0969da;--borderColor-success-emphasis:#1a7f37;--borderColor-attention-emphasis:#9a6700;--borderColor-danger-emphasis:#cf222e;--borderColor-done-emphasis:#8250df;--color-prettylights-syntax-comment:#59636e;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-prettylights-syntax-entity:#6639ba;--color-prettylights-syntax-storage-modifier-import:#1f2328;--color-prettylights-syntax-entity-tag:#0550ae;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-brackethighlighter-angle:#59636e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#1f2328;--color-prettylights-syntax-markup-bold:#1f2328;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#d1d9e0;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-sublimelinter-gutter-mark:#818b98}}@media (prefers-color-scheme: light){.markdown-body,[data-theme=\"light\"]{color-scheme:light;--focus-outlineColor:#0969da;--fgColor-default:#1f2328;--fgColor-muted:#59636e;--fgColor-accent:#0969da;--fgColor-success:#1a7f37;--fgColor-attention:#9a6700;--fgColor-danger:#d1242f;--fgColor-done:#8250df;--bgColor-default:#ffffff;--bgColor-muted:#f6f8fa;--bgColor-neutral-muted:#818b981f;--bgColor-attention-muted:#fff8c5;--borderColor-default:#d1d9e0;--borderColor-muted:#d1d9e0b3;--borderColor-neutral-muted:#d1d9e0b3;--borderColor-accent-emphasis:#0969da;--borderColor-success-emphasis:#1a7f37;--borderColor-attention-emphasis:#9a6700;--borderColor-danger-emphasis:#cf222e;--borderColor-done-emphasis:#8250df;--color-prettylights-syntax-comment:#59636e;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-prettylights-syntax-entity:#6639ba;--color-prettylights-syntax-storage-modifier-import:#1f2328;--color-prettylights-syntax-entity-tag:#0550ae;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-brackethighlighter-angle:#59636e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#1f2328;--color-prettylights-syntax-markup-bold:#1f2328;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#d1d9e0;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-sublimelinter-gutter-mark:#818b98}}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Noto Sans\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:' ';display:inline-block;background-color:currentColor;-webkit-mask-image:url(\"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>\");mask-image:url(\"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>\")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none !important}.markdown-body a{background-color:transparent;color:var(--fgColor-accent);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--borderColor-muted)}.markdown-body mark{background-color:var(--bgColor-attention-muted);color:var(--fgColor-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-0.25em}.markdown-body sup{top:-0.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em var(--base-size-40)}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--borderColor-muted);height:.25em;padding:0;margin:var(--base-size-24) 0;background-color:var(--borderColor-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button;appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:var(--fgColor-muted);opacity:1}.markdown-body hr::before{display:table;content:\"\"}.markdown-body hr::after{display:table;clear:both;content:\"\"}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto;font-variant:tabular-nums}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:var(--base-size-4);font:11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);line-height:10px;color:var(--fgColor-default);vertical-align:middle;background-color:var(--bgColor-muted);border:solid 1px var(--borderColor-neutral-muted);border-bottom-color:var(--borderColor-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--borderColor-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:var(--base-size-24);margin-bottom:var(--base-size-16);font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.2em;border-bottom:1px solid var(--borderColor-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.05em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:0.875em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.80em;color:var(--fgColor-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--fgColor-muted);border-left:.25em solid var(--borderColor-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;appearance:none}.markdown-body .mr-2{margin-right:var(--base-size-8, 8px) !important}.markdown-body::before{display:table;content:\"\"}.markdown-body::after{display:table;clear:both;content:\"\"}.markdown-body>*:first-child{margin-top:0 !important}.markdown-body>*:last-child{margin-bottom:0 !important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--fgColor-danger)}.markdown-body .anchor{float:left;padding-right:var(--base-size-4);margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:var(--base-size-16);font-size:16px;font-weight:400}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--fgColor-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type=\"a s\"]{list-style-type:lower-alpha}.markdown-body ol[type=\"A s\"]{list-style-type:upper-alpha}.markdown-body ol[type=\"i s\"]{list-style-type:lower-roman}.markdown-body ol[type=\"I s\"]{list-style-type:upper-roman}.markdown-body ol[type=\"1\"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:var(--base-size-16)}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:var(--base-size-16);font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 var(--base-size-16);margin-bottom:var(--base-size-16)}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--borderColor-default)}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:var(--bgColor-default);border-top:1px solid var(--borderColor-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--bgColor-muted)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--borderColor-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--fgColor-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--bgColor-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:var(--base-size-16)}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:var(--base-size-16);overflow:auto;font-size:85%;line-height:1.45;color:var(--fgColor-default);background-color:var(--bgColor-muted);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px var(--base-size-8) 9px;text-align:right;background:var(--bgColor-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--bgColor-muted);border-top:0}.markdown-body [data-footnote-ref]::before{content:\"[\"}.markdown-body [data-footnote-ref]::after{content:\"]\"}.markdown-body .footnotes{font-size:12px;color:var(--fgColor-muted);border-top:1px solid var(--borderColor-default)}.markdown-body .footnotes ol{padding-left:var(--base-size-16)}.markdown-body .footnotes ol ul{display:inline-block;padding-left:var(--base-size-16);margin-top:var(--base-size-16)}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target::before{position:absolute;top:calc(var(--base-size-8)*-1);right:calc(var(--base-size-8)*-1);bottom:calc(var(--base-size-8)*-1);left:calc(var(--base-size-24)*-1);pointer-events:none;content:\"\";border:2px solid var(--borderColor-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--fgColor-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body body:has(:modal){padding-right:var(--dialog-scrollgutter) !important}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body [role=tabpanel][tabindex=\"0\"]:focus:not(:focus-visible),.markdown-body button:focus:not(:focus-visible),.markdown-body summary:focus:not(:focus-visible),.markdown-body a:focus:not(:focus-visible){outline:none;box-shadow:none}.markdown-body [tabindex=\"0\"]:focus:not(:focus-visible),.markdown-body details-dialog:focus:not(:focus-visible){outline:none}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:\"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-0.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:var(--base-size-4)}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:var(--base-size-16);color:inherit;border-left:.25em solid var(--borderColor-default)}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis)}.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent)}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis)}.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done)}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis)}.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention)}.markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis)}.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success)}.markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis)}.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger)}.markdown-body>*:first-child>.heading-element:first-child{margin-top:0 !important}.markdown-body .highlight pre:has(+.zeroclipboard-container){min-height:52px}.markdown-body .md-table-wrap table{margin-top:0;margin-bottom:0}.markdown-body .md-table-wrap{margin-top:0;margin-bottom:var(--base-size-16)}.markdown-body>.md-table-wrap:first-child{margin-top:0}.markdown-body>.md-table-wrap:last-child{margin-bottom:0}@media (max-width: 767px){.markdown-body .md-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.markdown-body .md-table-wrap table{min-width:max-content}}";
|
|
3690
5993
|
|
|
3691
|
-
const hostCss$
|
|
5994
|
+
const hostCss$i = ":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}";
|
|
3692
5995
|
|
|
3693
5996
|
const OemJlsxModal = class {
|
|
3694
5997
|
/**
|
|
@@ -3719,6 +6022,10 @@ const OemJlsxModal = class {
|
|
|
3719
6022
|
* 是否展示顶部标题栏
|
|
3720
6023
|
*/
|
|
3721
6024
|
isShowHeader = true;
|
|
6025
|
+
/**
|
|
6026
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
6027
|
+
*/
|
|
6028
|
+
showDisclaimer = true;
|
|
3722
6029
|
/**
|
|
3723
6030
|
* 是否展示右上角的关闭按钮
|
|
3724
6031
|
*/
|
|
@@ -4241,7 +6548,7 @@ const OemJlsxModal = class {
|
|
|
4241
6548
|
const disableJdInput = Boolean(this.customInputs && this.customInputs.job_info);
|
|
4242
6549
|
return (index.h("div", { class: "input-container" }, index.h("div", { class: "step-header" }, index.h("h3", null, "\u521B\u5EFA\u7B80\u5386\u7B5B\u9009\u4EFB\u52A1"), index.h("p", { class: "step-description" }, "\u8BF7\u8F93\u5165\u804C\u4F4D\u63CF\u8FF0\u548C\u8BC4\u5206\u6807\u51C6")), index.h("div", { class: "jd-input-section" }, index.h("div", { class: "label-with-button" }, index.h("label", { htmlFor: "job-description" }, "\u804C\u4F4D\u63CF\u8FF0 (JD)"), !disableJdInput && (index.h("div", { class: "button-group" }, this.oemId && (index.h("button", { class: "position-selector-button", onClick: this.handleOpenPositionSelector, type: "button" }, "\u9009\u62E9\u804C\u4F4D")), index.h("components-mobile-input-btn", { name: "\u804C\u4F4D\u63CF\u8FF0", onOk: (e) => {
|
|
4243
6550
|
this.jobDescription = e.detail;
|
|
4244
|
-
} })))), index.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 })), index.h("div", { class: "criteria-input-section" }, index.h("div", { class: "criteria-header" }, index.h("label", { htmlFor: "evaluation-criteria" }, "\u8BC4\u5206\u6807\u51C6"), index.h("div", { class: "criteria-actions" }, index.h("span", { class: `total-weight ${this.getTotalWeight() !== 100 ? 'invalid' : ''}` }, "\u603B\u6743\u91CD: ", this.getTotalWeight(), "%"), index.h("span", null))), index.h("div", { class: "criteria-table-container" }, index.h("table", { class: "criteria-table" }, index.h("thead", null, index.h("tr", null, index.h("th", { style: { width: '25%' } }, "\u6807\u51C6\u540D\u79F0"), index.h("th", { style: { width: '15%' } }, "\u6743\u91CD(%)"), index.h("th", { style: { width: '50%' } }, "\u63CF\u8FF0"), index.h("th", { style: { width: '10%' } }, "\u64CD\u4F5C"))), index.h("tbody", null, this.evaluationCriteria.map((criteria, index$1) => (index.h("tr", { key: index$1 }, index.h("td", null, index.h("input", { type: "text", class: "criteria-name-input", placeholder: "\u8BF7\u8F93\u5165\u6807\u51C6\u540D\u79F0", value: criteria.name, onInput: (e) => this.handleEvaluationCriteriaNameChange(index$1, e.target.value) })), index.h("td", null, index.h("input", { type: "number", class: "criteria-value-input", placeholder: "0", min: "0", max: "100", value: criteria.value, onInput: (e) => this.handleEvaluationCriteriaValueChange(index$1, e.target.value) })), index.h("td", null, index.h("textarea", { class: "criteria-description-input", placeholder: "\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6\u63CF\u8FF0", rows: 2, value: criteria.description, onInput: (e) => this.handleEvaluationCriteriaDescriptionChange(index$1, e.target.value) })), index.h("td", null, index.h("button", { type: "button", class: "remove-criteria-btn", disabled: this.evaluationCriteria.length <= 1, onClick: () => this.removeEvaluationCriteria(index$1), title: this.evaluationCriteria.length <= 1 ? '至少需要保留一个评分标准' : '删除此标准' }, "\u00D7")))))))), index.h("div", { class: "add-criteria-btn-wrapper" }, index.h("button", { type: "button", class: "add-criteria-btn", onClick: this.addEvaluationCriteria }, "+ \u6DFB\u52A0\u6807\u51C6")), this.getTotalWeight() !== 100 && (index.h("p", { class: "criteria-warning" }, "\u26A0\uFE0F \u6743\u91CD\u603B\u548C\u5E94\u4E3A100%\uFF0C\u5F53\u524D\u4E3A", this.getTotalWeight(), "%"))), index.h("button", { class: "submit-button", disabled: !(this.customInputs?.job_info || this.jobDescription.trim()) || this.evaluationCriteria.length === 0 || this.getTotalWeight() !== 100 || this.isSubmitting, onClick: this.handleCreateTask }, this.isSubmitting ? '创建中...' : '创建任务'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("span", null, "Hunan-PinCaiMao-202412310003")))));
|
|
6551
|
+
} })))), index.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 })), index.h("div", { class: "criteria-input-section" }, index.h("div", { class: "criteria-header" }, index.h("label", { htmlFor: "evaluation-criteria" }, "\u8BC4\u5206\u6807\u51C6"), index.h("div", { class: "criteria-actions" }, index.h("span", { class: `total-weight ${this.getTotalWeight() !== 100 ? 'invalid' : ''}` }, "\u603B\u6743\u91CD: ", this.getTotalWeight(), "%"), index.h("span", null))), index.h("div", { class: "criteria-table-container" }, index.h("table", { class: "criteria-table" }, index.h("thead", null, index.h("tr", null, index.h("th", { style: { width: '25%' } }, "\u6807\u51C6\u540D\u79F0"), index.h("th", { style: { width: '15%' } }, "\u6743\u91CD(%)"), index.h("th", { style: { width: '50%' } }, "\u63CF\u8FF0"), index.h("th", { style: { width: '10%' } }, "\u64CD\u4F5C"))), index.h("tbody", null, this.evaluationCriteria.map((criteria, index$1) => (index.h("tr", { key: index$1 }, index.h("td", null, index.h("input", { type: "text", class: "criteria-name-input", placeholder: "\u8BF7\u8F93\u5165\u6807\u51C6\u540D\u79F0", value: criteria.name, onInput: (e) => this.handleEvaluationCriteriaNameChange(index$1, e.target.value) })), index.h("td", null, index.h("input", { type: "number", class: "criteria-value-input", placeholder: "0", min: "0", max: "100", value: criteria.value, onInput: (e) => this.handleEvaluationCriteriaValueChange(index$1, e.target.value) })), index.h("td", null, index.h("textarea", { class: "criteria-description-input", placeholder: "\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6\u63CF\u8FF0", rows: 2, value: criteria.description, onInput: (e) => this.handleEvaluationCriteriaDescriptionChange(index$1, e.target.value) })), index.h("td", null, index.h("button", { type: "button", class: "remove-criteria-btn", disabled: this.evaluationCriteria.length <= 1, onClick: () => this.removeEvaluationCriteria(index$1), title: this.evaluationCriteria.length <= 1 ? '至少需要保留一个评分标准' : '删除此标准' }, "\u00D7")))))))), index.h("div", { class: "add-criteria-btn-wrapper" }, index.h("button", { type: "button", class: "add-criteria-btn", onClick: this.addEvaluationCriteria }, "+ \u6DFB\u52A0\u6807\u51C6")), this.getTotalWeight() !== 100 && (index.h("p", { class: "criteria-warning" }, "\u26A0\uFE0F \u6743\u91CD\u603B\u548C\u5E94\u4E3A100%\uFF0C\u5F53\u524D\u4E3A", this.getTotalWeight(), "%"))), index.h("button", { class: "submit-button", disabled: !(this.customInputs?.job_info || this.jobDescription.trim()) || this.evaluationCriteria.length === 0 || this.getTotalWeight() !== 100 || this.isSubmitting, onClick: this.handleCreateTask }, this.isSubmitting ? '创建中...' : '创建任务'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("span", null, "Hunan-PinCaiMao-202412310003"))))));
|
|
4245
6552
|
}
|
|
4246
6553
|
renderTaskStep() {
|
|
4247
6554
|
return (index.h("div", { class: "task-container" }, index.h("div", { class: "task-info-section" }, index.h("div", { class: "info-cards" }, index.h("div", { class: "info-card" }, index.h("div", { class: "card-header", onClick: this.toggleJdDetail }, index.h("span", { class: "card-title" }, "\u804C\u4F4D\u63CF\u8FF0"), index.h("button", { class: "toggle-btn" }, "\u67E5\u770B")), index.h("div", { class: "card-preview" }, index.h("p", { class: "preview-text" }, this.jobDescription))), index.h("div", { class: "info-card" }, index.h("div", { class: "card-header", onClick: this.toggleCriteriaDetail }, index.h("span", { class: "card-title" }, "\u8BC4\u5206\u6807\u51C6"), index.h("button", { class: "toggle-btn" }, "\u67E5\u770B")), index.h("div", { class: "card-preview" }, index.h("p", { class: "preview-text" }, this.getEvaluationCriteriaText()))))), index.h("div", { class: "upload-section" }, index.h("div", { class: "section-header" }, index.h("h4", null, "\u4E0A\u4F20\u7B80\u5386")), index.h("div", { class: this.customInputs?.file_urls ? 'upload-disabled-wrapper' : '', onClick: (e) => {
|
|
@@ -5057,13 +7364,13 @@ const OemJlsxModal = class {
|
|
|
5057
7364
|
"isOpen": ["handleIsOpenChange"]
|
|
5058
7365
|
}; }
|
|
5059
7366
|
};
|
|
5060
|
-
OemJlsxModal.style = globalCss$f + (oemJlsxModalCss + (markdownCss$1 + hostCss$
|
|
7367
|
+
OemJlsxModal.style = globalCss$f + (oemJlsxModalCss + (markdownCss$1 + hostCss$i));
|
|
5061
7368
|
|
|
5062
7369
|
const globalCss$e = ".resume-node-status{display:flex;align-items:flex-start;gap:8px;max-width:100%;box-sizing:border-box;padding:4px 20px;color:#8c8c8c;font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere}.resume-node-status>span:last-child{min-width:0}.resume-node-status-spinner{flex:0 0 12px;width:12px;height:12px;box-sizing:border-box;margin-top:4px;border:1.5px dotted #a3a3a3;border-right-color:transparent;border-radius:50%;animation:resume-node-spin 1.2s linear infinite}@keyframes resume-node-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.resume-node-status-spinner{animation:none}}.resume-analysis-region{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:400px}.resume-analysis-overlay{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border-radius:8px;background:rgba(255, 255, 255, 0.94);color:#666;text-align:center;white-space:pre-line;overflow-wrap:anywhere}.resume-analysis-overlay p{margin:0;max-width:100%}.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:3vh 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}";
|
|
5063
7370
|
|
|
5064
7371
|
const oemZyghModalCss = ".plan-type-section{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}.plan-type-section label{font-weight:600;color:#333;margin-bottom:8px}.plan-type-options{display:flex;border:1px solid #d9d9d9;border-radius:6px;overflow:hidden}.plan-type-option{flex:1;border:none;border-right:1px solid #d9d9d9;padding:7px 8px;cursor:pointer;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;transition:background-color 0.2s, color 0.2s;background-color:#fff}.plan-type-option:last-child{border-right:none}.plan-type-option:hover{background-color:#f0f7ff}.plan-type-option.selected{background-color:#1890ff}.plan-type-option.selected .option-icon,.plan-type-option.selected .option-label{color:#fff}.option-icon{display:flex;align-items:center;justify-content:center}.option-icon img{height:18px;width:auto}.option-label{font-size:13px;font-weight:500;color:#555;white-space:nowrap}.resume-upload-section{display:flex;flex-direction:column;gap:8px}.resume-upload-section label{font-weight:600;color:#333;margin-bottom:8px}.dynamic-form-section{margin-top:20px;margin-bottom:20px}.form-fields{display:flex;flex-direction:column;gap:16px}.form-field{display:flex;flex-direction:column;gap:8px}.form-field label{font-weight:600;color:#333;font-size:14px}.form-input{padding:10px 12px;border:1px solid #d9d9d9;border-radius:4px;font-size:14px;transition:all 0.3s;outline:none}.form-input:hover{border-color:#40a9ff}.form-input:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.1)}.form-input::placeholder{color:#bfbfbf}.form-hint{font-size:12px;color:#8c8c8c;line-height:1.5;margin-top:-8px;padding:8px 12px;background-color:#f5f5f5;border-radius:4px;border-left:3px solid #1890ff}.report-section{display:flex;flex-direction:column;gap:16px;margin-bottom:20px;color:#333}.report-title{font-size:16px;font-weight:600}.report-field{display:flex;flex-direction:column;gap:8px}.report-field label{font-size:14px;font-weight:400}.report-input-wrapper{display:flex;align-items:center;gap:10px;box-sizing:border-box;height:42px;padding:0 12px;border:1px solid #ddd;border-radius:6px;background:#fff}.report-input-wrapper:focus-within{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24, 144, 255, 0.2)}.report-input-wrapper .report-input{flex:1;min-width:0;width:100%;height:100%;padding:0;border:none;outline:none;background:transparent;font-family:inherit;font-size:14px;color:#333}.report-email-icon{flex-shrink:0;width:18px;height:18px;color:#999}.report-phone-prefix{flex-shrink:0;font-size:14px}.report-hint{display:flex;align-items:flex-start;gap:6px;padding:10px 12px;border-radius:6px;background:#fffbe6;color:#8c6d1f;font-size:12px;line-height:1.5}.report-hint svg{flex-shrink:0;width:16px;height:18px}.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}";
|
|
5065
7372
|
|
|
5066
|
-
const hostCss$
|
|
7373
|
+
const hostCss$h = ":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}";
|
|
5067
7374
|
|
|
5068
7375
|
const OemZyghModal = class {
|
|
5069
7376
|
constructor(hostRef) {
|
|
@@ -5105,6 +7412,10 @@ const OemZyghModal = class {
|
|
|
5105
7412
|
* 是否展示顶部标题栏
|
|
5106
7413
|
*/
|
|
5107
7414
|
isShowHeader = true;
|
|
7415
|
+
/**
|
|
7416
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
7417
|
+
*/
|
|
7418
|
+
showDisclaimer = true;
|
|
5108
7419
|
/**
|
|
5109
7420
|
* 是否展示右上角的关闭按钮
|
|
5110
7421
|
*/
|
|
@@ -5431,7 +7742,7 @@ const OemZyghModal = class {
|
|
|
5431
7742
|
const result = e.detail ?? [];
|
|
5432
7743
|
this.uploadedFileInfo = result[0];
|
|
5433
7744
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
5434
|
-
} })), (this.showEmail || this.showPhone) && (index.h("div", { class: "report-section" }, index.h("div", { class: "report-title" }, "\u63A5\u6536\u62A5\u544A\uFF08\u9009\u586B\uFF09"), this.showEmail && (index.h("div", { class: "report-field" }, index.h("label", { htmlFor: "report-email" }, "\u90AE\u7BB1"), index.h("div", { class: "report-input-wrapper" }, index.h("svg", { class: "report-email-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "aria-hidden": "true" }, index.h("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }), index.h("path", { d: "m3 6 9 7 9-7" })), index.h("input", { id: "report-email", type: "email", class: "report-input", placeholder: "\u8BF7\u8F93\u5165\u90AE\u7BB1\uFF0C\u5982 name@qq.com", value: this.email, onInput: this.handleEmailChange })))), this.showPhone && (index.h("div", { class: "report-field" }, index.h("label", { htmlFor: "report-phone" }, "\u624B\u673A\u77ED\u4FE1"), index.h("div", { class: "report-input-wrapper" }, index.h("span", { class: "report-phone-prefix" }, "+86"), index.h("input", { id: "report-phone", type: "tel", class: "report-input", placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7", maxLength: 11, value: this.phoneNumber, onInput: this.handlePhoneNumberChange })))), this.showPhone && this.phoneNumber.trim().length === 11 && (index.h("div", { class: "jd-input-section" }, index.h("label", null, "\u9A8C\u8BC1\u7801"), index.h("div", { class: "verification-code-container" }, index.h("input", { type: "text", class: "verification-code-input", placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801", maxLength: 6, value: this.verificationCode, onInput: this.handleVerificationCodeChange }), index.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}秒` : '发送验证码')))), this.showPhone && (index.h("div", { class: "report-hint" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "aria-hidden": "true" }, index.h("path", { d: "m12 3 10 18H2L12 3Z" }), index.h("path", { d: "M12 9v5m0 3v1" })), index.h("span", null, this.showEmail ? '注:部分号码可能收不到短信,推荐使用邮箱接收报告。' : '注:部分号码可能收不到短信。'))))), index.h("button", { class: "submit-button", disabled: (!disableResumeUpload && !this.uploadedFileInfo) || this.isUploading || this.isSubmitting || this.isVerifyingCode, onClick: this.handleStartPlanning }, this.isUploading ? '上传中...' : this.isVerifyingCode ? '验证中...' : this.isSubmitting ? '处理中...' : '开始规划'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("span", null, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, showWorkspaceHistory: this.showWorkspaceHistory, botId: "121182005294690304", fullscreen: this.fullscreen, conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
7745
|
+
} })), (this.showEmail || this.showPhone) && (index.h("div", { class: "report-section" }, index.h("div", { class: "report-title" }, "\u63A5\u6536\u62A5\u544A\uFF08\u9009\u586B\uFF09"), this.showEmail && (index.h("div", { class: "report-field" }, index.h("label", { htmlFor: "report-email" }, "\u90AE\u7BB1"), index.h("div", { class: "report-input-wrapper" }, index.h("svg", { class: "report-email-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "aria-hidden": "true" }, index.h("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }), index.h("path", { d: "m3 6 9 7 9-7" })), index.h("input", { id: "report-email", type: "email", class: "report-input", placeholder: "\u8BF7\u8F93\u5165\u90AE\u7BB1\uFF0C\u5982 name@qq.com", value: this.email, onInput: this.handleEmailChange })))), this.showPhone && (index.h("div", { class: "report-field" }, index.h("label", { htmlFor: "report-phone" }, "\u624B\u673A\u77ED\u4FE1"), index.h("div", { class: "report-input-wrapper" }, index.h("span", { class: "report-phone-prefix" }, "+86"), index.h("input", { id: "report-phone", type: "tel", class: "report-input", placeholder: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7", maxLength: 11, value: this.phoneNumber, onInput: this.handlePhoneNumberChange })))), this.showPhone && this.phoneNumber.trim().length === 11 && (index.h("div", { class: "jd-input-section" }, index.h("label", null, "\u9A8C\u8BC1\u7801"), index.h("div", { class: "verification-code-container" }, index.h("input", { type: "text", class: "verification-code-input", placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801", maxLength: 6, value: this.verificationCode, onInput: this.handleVerificationCodeChange }), index.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}秒` : '发送验证码')))), this.showPhone && (index.h("div", { class: "report-hint" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "aria-hidden": "true" }, index.h("path", { d: "m12 3 10 18H2L12 3Z" }), index.h("path", { d: "M12 9v5m0 3v1" })), index.h("span", null, this.showEmail ? '注:部分号码可能收不到短信,推荐使用邮箱接收报告。' : '注:部分号码可能收不到短信。'))))), index.h("button", { class: "submit-button", disabled: (!disableResumeUpload && !this.uploadedFileInfo) || this.isUploading || this.isSubmitting || this.isVerifyingCode, onClick: this.handleStartPlanning }, this.isUploading ? '上传中...' : this.isVerifyingCode ? '验证中...' : this.isSubmitting ? '处理中...' : '开始规划'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("span", null, "Hunan-PinCaiMao-202412310003")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, showWorkspaceHistory: this.showWorkspaceHistory, botId: "121182005294690304", fullscreen: this.fullscreen, conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
5435
7746
|
...this.customInputs,
|
|
5436
7747
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
5437
7748
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
@@ -5449,13 +7760,13 @@ const OemZyghModal = class {
|
|
|
5449
7760
|
"isOpen": ["handleIsOpenChange"]
|
|
5450
7761
|
}; }
|
|
5451
7762
|
};
|
|
5452
|
-
OemZyghModal.style = globalCss$e + (oemZyghModalCss + hostCss$
|
|
7763
|
+
OemZyghModal.style = globalCss$e + (oemZyghModalCss + hostCss$h);
|
|
5453
7764
|
|
|
5454
7765
|
const pcm1zhanshiMnmsModalCss = "";
|
|
5455
7766
|
|
|
5456
7767
|
const globalCss$d = ".resume-node-status{display:flex;align-items:flex-start;gap:8px;max-width:100%;box-sizing:border-box;padding:4px 20px;color:#8c8c8c;font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere}.resume-node-status>span:last-child{min-width:0}.resume-node-status-spinner{flex:0 0 12px;width:12px;height:12px;box-sizing:border-box;margin-top:4px;border:1.5px dotted #a3a3a3;border-right-color:transparent;border-radius:50%;animation:resume-node-spin 1.2s linear infinite}@keyframes resume-node-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.resume-node-status-spinner{animation:none}}.resume-analysis-region{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:400px}.resume-analysis-overlay{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border-radius:8px;background:rgba(255, 255, 255, 0.94);color:#666;text-align:center;white-space:pre-line;overflow-wrap:anywhere}.resume-analysis-overlay p{margin:0;max-width:100%}.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:3vh 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}";
|
|
5457
7768
|
|
|
5458
|
-
const hostCss$
|
|
7769
|
+
const hostCss$g = ":host{font-size:16px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-weight:normal;font-style:normal;font-variant:normal;line-height:1.5;letter-spacing:normal;word-spacing:normal;color:#333;text-align:left;text-indent:0;text-transform:none;white-space:normal;word-wrap:normal;word-break:normal;visibility:visible;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;border-collapse:separate;border-spacing:0;caption-side:top;empty-cells:show;table-layout:auto;quotes:auto;cursor:auto;direction:ltr;orphans:2;widows:2;page-break-inside:auto;text-decoration:none;text-shadow:none;box-sizing:border-box;writing-mode:horizontal-tb;text-orientation:mixed}";
|
|
5459
7770
|
|
|
5460
7771
|
const ZhanshiMnmsModal = class {
|
|
5461
7772
|
constructor(hostRef) {
|
|
@@ -5497,6 +7808,10 @@ const ZhanshiMnmsModal = class {
|
|
|
5497
7808
|
* 是否展示顶部标题栏
|
|
5498
7809
|
*/
|
|
5499
7810
|
isShowHeader = true;
|
|
7811
|
+
/**
|
|
7812
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
7813
|
+
*/
|
|
7814
|
+
showDisclaimer = true;
|
|
5500
7815
|
/**
|
|
5501
7816
|
* 是否展示右上角的关闭按钮
|
|
5502
7817
|
*/
|
|
@@ -5670,7 +7985,7 @@ const ZhanshiMnmsModal = class {
|
|
|
5670
7985
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
5671
7986
|
job_info: this.customInputs?.job_info || this.jobDescription,
|
|
5672
7987
|
ai_interview_type: this.digitalId
|
|
5673
|
-
} })) : (index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isShowHeader, fullscreen: this.fullscreen, botId: "3022316191018903", digitalId: this.digitalId, showEndInterviewButton: this.showEndInterviewButton, conversationId: this.conversationId, defaultQuery: this.defaultQuery, maxRecordingTime: this.maxRecordingTime, waitingTime: this.waitingTime, playbackRate: this.playbackRate, customInputs: {
|
|
7988
|
+
} })) : (index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isShowHeader, fullscreen: this.fullscreen, botId: "3022316191018903", digitalId: this.digitalId, showEndInterviewButton: this.showEndInterviewButton, conversationId: this.conversationId, defaultQuery: this.defaultQuery, maxRecordingTime: this.maxRecordingTime, waitingTime: this.waitingTime, playbackRate: this.playbackRate, customInputs: {
|
|
5674
7989
|
...this.customInputs,
|
|
5675
7990
|
file_url: this.uploadedFileInfo?.cos_key,
|
|
5676
7991
|
file_name: this.uploadedFileInfo?.file_name,
|
|
@@ -5682,7 +7997,7 @@ const ZhanshiMnmsModal = class {
|
|
|
5682
7997
|
"isOpen": ["handleIsOpenChange"]
|
|
5683
7998
|
}; }
|
|
5684
7999
|
};
|
|
5685
|
-
ZhanshiMnmsModal.style = pcm1zhanshiMnmsModalCss + (globalCss$d + hostCss$
|
|
8000
|
+
ZhanshiMnmsModal.style = pcm1zhanshiMnmsModalCss + (globalCss$d + hostCss$g);
|
|
5686
8001
|
|
|
5687
8002
|
const modalTitle$5 = "在线客服";
|
|
5688
8003
|
const aiDisclaimer$5 = "内容由AI生成,仅供参考";
|
|
@@ -5966,7 +8281,7 @@ const pcmAppChatModalCss = ":host{display:block;font-size:16px}.modal-overlay{po
|
|
|
5966
8281
|
|
|
5967
8282
|
const markdownCss = ".markdown-body{--base-size-4:4px;--base-size-8:8px;--base-size-16:16px;--base-size-24:24px;--base-size-40:40px;--base-text-weight-normal:400;--base-text-weight-medium:500;--base-text-weight-semibold:600;--fontStack-monospace:ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;--fgColor-accent:Highlight}@media (prefers-color-scheme: dark){.markdown-body,[data-theme=\"dark\"]{color-scheme:dark;--focus-outlineColor:#0969da;--fgColor-default:#1f2328;--fgColor-muted:#59636e;--fgColor-accent:#0969da;--fgColor-success:#1a7f37;--fgColor-attention:#9a6700;--fgColor-danger:#d1242f;--fgColor-done:#8250df;--bgColor-default:#ffffff;--bgColor-muted:#f6f8fa;--bgColor-neutral-muted:#818b981f;--bgColor-attention-muted:#fff8c5;--borderColor-default:#d1d9e0;--borderColor-muted:#d1d9e0b3;--borderColor-neutral-muted:#d1d9e0b3;--borderColor-accent-emphasis:#0969da;--borderColor-success-emphasis:#1a7f37;--borderColor-attention-emphasis:#9a6700;--borderColor-danger-emphasis:#cf222e;--borderColor-done-emphasis:#8250df;--color-prettylights-syntax-comment:#59636e;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-prettylights-syntax-entity:#6639ba;--color-prettylights-syntax-storage-modifier-import:#1f2328;--color-prettylights-syntax-entity-tag:#0550ae;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-brackethighlighter-angle:#59636e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#1f2328;--color-prettylights-syntax-markup-bold:#1f2328;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#d1d9e0;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-sublimelinter-gutter-mark:#818b98}}@media (prefers-color-scheme: light){.markdown-body,[data-theme=\"light\"]{color-scheme:light;--focus-outlineColor:#0969da;--fgColor-default:#1f2328;--fgColor-muted:#59636e;--fgColor-accent:#0969da;--fgColor-success:#1a7f37;--fgColor-attention:#9a6700;--fgColor-danger:#d1242f;--fgColor-done:#8250df;--bgColor-default:#ffffff;--bgColor-muted:#f6f8fa;--bgColor-neutral-muted:#818b981f;--bgColor-attention-muted:#fff8c5;--borderColor-default:#d1d9e0;--borderColor-muted:#d1d9e0b3;--borderColor-neutral-muted:#d1d9e0b3;--borderColor-accent-emphasis:#0969da;--borderColor-success-emphasis:#1a7f37;--borderColor-attention-emphasis:#9a6700;--borderColor-danger-emphasis:#cf222e;--borderColor-done-emphasis:#8250df;--color-prettylights-syntax-comment:#59636e;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-prettylights-syntax-entity:#6639ba;--color-prettylights-syntax-storage-modifier-import:#1f2328;--color-prettylights-syntax-entity-tag:#0550ae;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-brackethighlighter-angle:#59636e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#1f2328;--color-prettylights-syntax-markup-bold:#1f2328;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#d1d9e0;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-sublimelinter-gutter-mark:#818b98}}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Noto Sans\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:' ';display:inline-block;background-color:currentColor;-webkit-mask-image:url(\"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>\");mask-image:url(\"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>\")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none !important}.markdown-body a{background-color:transparent;color:var(--fgColor-accent);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--borderColor-muted)}.markdown-body mark{background-color:var(--bgColor-attention-muted);color:var(--fgColor-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-0.25em}.markdown-body sup{top:-0.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em var(--base-size-40)}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--borderColor-muted);height:.25em;padding:0;margin:var(--base-size-24) 0;background-color:var(--borderColor-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button;appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:var(--fgColor-muted);opacity:1}.markdown-body hr::before{display:table;content:\"\"}.markdown-body hr::after{display:table;clear:both;content:\"\"}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto;font-variant:tabular-nums}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--focus-outlineColor);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:var(--base-size-4);font:11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);line-height:10px;color:var(--fgColor-default);vertical-align:middle;background-color:var(--bgColor-muted);border:solid 1px var(--borderColor-neutral-muted);border-bottom-color:var(--borderColor-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--borderColor-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:var(--base-size-24);margin-bottom:var(--base-size-16);font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.2em;border-bottom:1px solid var(--borderColor-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.05em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:0.875em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.80em;color:var(--fgColor-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--fgColor-muted);border-left:.25em solid var(--borderColor-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;appearance:none}.markdown-body .mr-2{margin-right:var(--base-size-8, 8px) !important}.markdown-body::before{display:table;content:\"\"}.markdown-body::after{display:table;clear:both;content:\"\"}.markdown-body>*:first-child{margin-top:0 !important}.markdown-body>*:last-child{margin-bottom:0 !important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--fgColor-danger)}.markdown-body .anchor{float:left;padding-right:var(--base-size-4);margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:var(--base-size-16);font-size:16px;font-weight:400}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--fgColor-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type=\"a s\"]{list-style-type:lower-alpha}.markdown-body ol[type=\"A s\"]{list-style-type:upper-alpha}.markdown-body ol[type=\"i s\"]{list-style-type:lower-roman}.markdown-body ol[type=\"I s\"]{list-style-type:upper-roman}.markdown-body ol[type=\"1\"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:var(--base-size-16)}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:var(--base-size-16);font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 var(--base-size-16);margin-bottom:var(--base-size-16)}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--borderColor-default)}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:var(--bgColor-default);border-top:1px solid var(--borderColor-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--bgColor-muted)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--borderColor-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--fgColor-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--bgColor-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:var(--base-size-16)}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:var(--base-size-16);overflow:auto;font-size:85%;line-height:1.45;color:var(--fgColor-default);background-color:var(--bgColor-muted);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px var(--base-size-8) 9px;text-align:right;background:var(--bgColor-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--bgColor-muted);border-top:0}.markdown-body [data-footnote-ref]::before{content:\"[\"}.markdown-body [data-footnote-ref]::after{content:\"]\"}.markdown-body .footnotes{font-size:12px;color:var(--fgColor-muted);border-top:1px solid var(--borderColor-default)}.markdown-body .footnotes ol{padding-left:var(--base-size-16)}.markdown-body .footnotes ol ul{display:inline-block;padding-left:var(--base-size-16);margin-top:var(--base-size-16)}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target::before{position:absolute;top:calc(var(--base-size-8)*-1);right:calc(var(--base-size-8)*-1);bottom:calc(var(--base-size-8)*-1);left:calc(var(--base-size-24)*-1);pointer-events:none;content:\"\";border:2px solid var(--borderColor-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--fgColor-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body body:has(:modal){padding-right:var(--dialog-scrollgutter) !important}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body [role=tabpanel][tabindex=\"0\"]:focus:not(:focus-visible),.markdown-body button:focus:not(:focus-visible),.markdown-body summary:focus:not(:focus-visible),.markdown-body a:focus:not(:focus-visible){outline:none;box-shadow:none}.markdown-body [tabindex=\"0\"]:focus:not(:focus-visible),.markdown-body details-dialog:focus:not(:focus-visible){outline:none}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:\"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-0.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:var(--base-size-4)}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:var(--base-size-16);color:inherit;border-left:.25em solid var(--borderColor-default)}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis)}.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent)}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis)}.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done)}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis)}.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention)}.markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis)}.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success)}.markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis)}.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger)}.markdown-body>*:first-child>.heading-element:first-child{margin-top:0 !important}.markdown-body .highlight pre:has(+.zeroclipboard-container){min-height:52px}.markdown-body .md-table-wrap table{margin-top:0;margin-bottom:0}.markdown-body .md-table-wrap{margin-top:0;margin-bottom:var(--base-size-16)}.markdown-body>.md-table-wrap:first-child{margin-top:0}.markdown-body>.md-table-wrap:last-child{margin-bottom:0}@media (max-width: 767px){.markdown-body .md-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.markdown-body .md-table-wrap table{min-width:max-content}}";
|
|
5968
8283
|
|
|
5969
|
-
const hostCss$
|
|
8284
|
+
const hostCss$f = ":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}";
|
|
5970
8285
|
|
|
5971
8286
|
const ChatAPPModal = class {
|
|
5972
8287
|
constructor(hostRef) {
|
|
@@ -6021,6 +8336,10 @@ const ChatAPPModal = class {
|
|
|
6021
8336
|
* 是否展示顶部标题栏
|
|
6022
8337
|
*/
|
|
6023
8338
|
isShowHeader = true;
|
|
8339
|
+
/**
|
|
8340
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
8341
|
+
*/
|
|
8342
|
+
showDisclaimer = true;
|
|
6024
8343
|
/**
|
|
6025
8344
|
* 是否展示右上角的关闭按钮
|
|
6026
8345
|
*/
|
|
@@ -7836,7 +10155,7 @@ const ChatAPPModal = class {
|
|
|
7836
10155
|
} }, index.h("img", { src: "https://pcm-pub-1351162788.cos.ap-guangzhou.myqcloud.com/sdk/image/i_send.png" })))));
|
|
7837
10156
|
// 确定要使用的助手头像
|
|
7838
10157
|
const effectiveAssistantAvatar = this.assistantAvatar || this.agentLogo;
|
|
7839
|
-
return (index.h("div", { class: overlayClass, style: modalStyle }, index.h("div", { class: containerClass }, this.isShowHeader && (index.h("div", { class: "modal-header" }, index.h("div", { class: "header-left" }, this.icon && index.h("img", { src: this.icon, class: "header-icon" }), index.h("div", { class: "header-title-group" }, index.h("div", null, this.modalTitle), index.h("div", { class: "header-disclaimer" }, this.strings?.aiDisclaimer))), this.isNeedClose && (index.h("button", { class: "close-button", onClick: this.handleClose }, index.h("span", null, "\u00D7"))))), index.h("div", { class: "chat-container" }, index.h("div", { class: "chat-history", onScroll: this.handleScroll, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd, onWheel: this.handleWheel }, this.isLoadingHistory ? (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", null, this.strings?.loading?.loadingHistory))) : (index.h("div", null, [...this.messages, ...(this.currentStreamingMessage ? [this.currentStreamingMessage] : [])].map(message => (index.h("div", { id: `message_${message.id}`, key: message.id }, index.h("components-chat-message", { locale: this.locale, botId: this.botId, message: message, showAssistantMessage: !this.digitalId || !this.isLastMessage(message) || this.digitalHumanVideoReady || this.isTaskCompleted, userAvatar: this.userAvatar, assistantAvatar: effectiveAssistantAvatar, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, filePreviewMode: this.filePreviewMode, onFilePreviewRequest: this.handleFilePreviewRequest, showSaveJdButton: this.showSaveJdButton, saveJdButtonText: this.saveJdButtonText })))), this.showNodeStatus && this.isLoading && this.currentStreamingMessage && !this.currentStreamingMessage.answer && this.currentNodeTitle && (index.h("div", { class: "node-status", role: "status", "aria-live": "polite", "aria-atomic": "true" }, index.h("span", { class: "node-status-spinner", "aria-hidden": "true" }), index.h("span", { class: "node-status-text" }, this.currentNodeTitle))), this.messages.length === 0 && !this.currentStreamingMessage && (index.h("div", { class: "empty-state" }, index.h("p", null, this.strings?.welcome?.greeting)))))), index.h("div", { class: "recording-section" }, index.h("div", { class: "recording-container" }, (this.showWorkspaceHistory || this.digitalId || (this.showEndInterviewButton && !this.isTaskCompleted && this.conversationId)) && (index.h("div", { class: "workspace-section" }, index.h("div", { class: "workspace-toolbar" }, index.h("div", { style: { display: 'flex', gap: '8px' } }, !this.isTaskCompleted && this.conversationId && this.showEndInterviewButton && (index.h("button", { class: "workspace-button end-interview-button", onClick: this.handleInterviewEnd, disabled: this.isLoading || this.isEndingInterview, title: this.isEndingInterview ? this.strings?.endingInterview : this.strings?.endInterview }, index.h("span", null, this.isEndingInterview ? this.strings?.ending : this.strings?.endInterview))), this.showWorkspaceHistory && (index.h("button", { class: "workspace-button history-button", onClick: () => this.handleHistoryClick() }, index.h("span", null, this.strings?.historyConversations)))), this.digitalId && !this.isTaskCompleted && (index.h("div", { class: "digital-human-wrapper" }, index.h("components-digital-human", { digitalId: this.digitalId, speechText: this.lastCompletedAnswer, isStreaming: !!this.currentStreamingMessage, playbackRate: this.playbackRate, onVideoGenerated: this.handleDigitalHumanVideoGenerated, onVideoEnded: this.handleDigitalHumanVideoEnded, onAvatarDetailLoaded: this.handleAvatarDetailLoaded })))))), this.interviewMode === 'text' && (this.showChatInput ? renderTextInputArea() : (index.h("div", { class: "chat-readonly-hint", role: "status" }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "aria-hidden": "true" }, index.h("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }), index.h("path", { d: "M14 2v6h6M8 13h8M8 17h6" })), index.h("span", null, "\u5F53\u524D\u4E3A\u53EA\u8BFB\u6A21\u5F0F\uFF0C\u53EF\u7EE7\u7EED\u67E5\u770B\u5BF9\u8BDD\u5185\u5BB9")))), this.interviewMode === 'video' && (index.h("div", { class: "video-container" }, index.h("div", { class: "video-area" }, this.showRecordingUI ? renderVideoPreview() : index.h("div", { class: "video-preview placeholder" }, renderPlaceholderStatus())), index.h("div", { class: "recording-controls" }, this.showRecordingUI ? (index.h("button", { class: "stop-recording-button", onClick: () => this.handleStopRecording() }, this.strings?.buttons?.completeAnswer)) : (index.h("div", { class: "waiting-message" }, index.h("button", { class: "stop-recording-button disabled", disabled: true }, this.strings?.buttons?.completeAnswerShort))))))))), index.h("components-drawer", { isOpen: this.isDrawerOpen, drawerTitle: this.previewFileName, width: "80%", onClosed: () => {
|
|
10158
|
+
return (index.h("div", { class: overlayClass, style: modalStyle }, index.h("div", { class: containerClass }, this.isShowHeader && (index.h("div", { class: "modal-header" }, index.h("div", { class: "header-left" }, this.icon && index.h("img", { src: this.icon, class: "header-icon" }), index.h("div", { class: "header-title-group" }, index.h("div", null, this.modalTitle), this.showDisclaimer && index.h("div", { class: "header-disclaimer" }, this.strings?.aiDisclaimer))), this.isNeedClose && (index.h("button", { class: "close-button", onClick: this.handleClose }, index.h("span", null, "\u00D7"))))), index.h("div", { class: "chat-container" }, index.h("div", { class: "chat-history", onScroll: this.handleScroll, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd, onWheel: this.handleWheel }, this.isLoadingHistory ? (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", null, this.strings?.loading?.loadingHistory))) : (index.h("div", null, [...this.messages, ...(this.currentStreamingMessage ? [this.currentStreamingMessage] : [])].map(message => (index.h("div", { id: `message_${message.id}`, key: message.id }, index.h("components-chat-message", { locale: this.locale, botId: this.botId, message: message, showAssistantMessage: !this.digitalId || !this.isLastMessage(message) || this.digitalHumanVideoReady || this.isTaskCompleted, userAvatar: this.userAvatar, assistantAvatar: effectiveAssistantAvatar, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, filePreviewMode: this.filePreviewMode, onFilePreviewRequest: this.handleFilePreviewRequest, showSaveJdButton: this.showSaveJdButton, saveJdButtonText: this.saveJdButtonText })))), this.showNodeStatus && this.isLoading && this.currentStreamingMessage && !this.currentStreamingMessage.answer && this.currentNodeTitle && (index.h("div", { class: "node-status", role: "status", "aria-live": "polite", "aria-atomic": "true" }, index.h("span", { class: "node-status-spinner", "aria-hidden": "true" }), index.h("span", { class: "node-status-text" }, this.currentNodeTitle))), this.messages.length === 0 && !this.currentStreamingMessage && (index.h("div", { class: "empty-state" }, index.h("p", null, this.strings?.welcome?.greeting)))))), index.h("div", { class: "recording-section" }, index.h("div", { class: "recording-container" }, (this.showWorkspaceHistory || this.digitalId || (this.showEndInterviewButton && !this.isTaskCompleted && this.conversationId)) && (index.h("div", { class: "workspace-section" }, index.h("div", { class: "workspace-toolbar" }, index.h("div", { style: { display: 'flex', gap: '8px' } }, !this.isTaskCompleted && this.conversationId && this.showEndInterviewButton && (index.h("button", { class: "workspace-button end-interview-button", onClick: this.handleInterviewEnd, disabled: this.isLoading || this.isEndingInterview, title: this.isEndingInterview ? this.strings?.endingInterview : this.strings?.endInterview }, index.h("span", null, this.isEndingInterview ? this.strings?.ending : this.strings?.endInterview))), this.showWorkspaceHistory && (index.h("button", { class: "workspace-button history-button", onClick: () => this.handleHistoryClick() }, index.h("span", null, this.strings?.historyConversations)))), this.digitalId && !this.isTaskCompleted && (index.h("div", { class: "digital-human-wrapper" }, index.h("components-digital-human", { digitalId: this.digitalId, speechText: this.lastCompletedAnswer, isStreaming: !!this.currentStreamingMessage, playbackRate: this.playbackRate, onVideoGenerated: this.handleDigitalHumanVideoGenerated, onVideoEnded: this.handleDigitalHumanVideoEnded, onAvatarDetailLoaded: this.handleAvatarDetailLoaded })))))), this.interviewMode === 'text' && (this.showChatInput ? renderTextInputArea() : (index.h("div", { class: "chat-readonly-hint", role: "status" }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "aria-hidden": "true" }, index.h("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }), index.h("path", { d: "M14 2v6h6M8 13h8M8 17h6" })), index.h("span", null, "\u5F53\u524D\u4E3A\u53EA\u8BFB\u6A21\u5F0F\uFF0C\u53EF\u7EE7\u7EED\u67E5\u770B\u5BF9\u8BDD\u5185\u5BB9")))), this.interviewMode === 'video' && (index.h("div", { class: "video-container" }, index.h("div", { class: "video-area" }, this.showRecordingUI ? renderVideoPreview() : index.h("div", { class: "video-preview placeholder" }, renderPlaceholderStatus())), index.h("div", { class: "recording-controls" }, this.showRecordingUI ? (index.h("button", { class: "stop-recording-button", onClick: () => this.handleStopRecording() }, this.strings?.buttons?.completeAnswer)) : (index.h("div", { class: "waiting-message" }, index.h("button", { class: "stop-recording-button disabled", disabled: true }, this.strings?.buttons?.completeAnswerShort))))))))), index.h("components-drawer", { isOpen: this.isDrawerOpen, drawerTitle: this.previewFileName, width: "80%", onClosed: () => {
|
|
7840
10159
|
this.isDrawerOpen = false;
|
|
7841
10160
|
this.previewUrl = '';
|
|
7842
10161
|
this.previewContent = '';
|
|
@@ -7927,13 +10246,13 @@ const ChatAPPModal = class {
|
|
|
7927
10246
|
"token": ["handleTokenChange"]
|
|
7928
10247
|
}; }
|
|
7929
10248
|
};
|
|
7930
|
-
ChatAPPModal.style = pcmAppChatModalCss + (markdownCss + hostCss$
|
|
10249
|
+
ChatAPPModal.style = pcmAppChatModalCss + (markdownCss + hostCss$f);
|
|
7931
10250
|
|
|
7932
10251
|
const pcmAtsMnmsModalCss = "";
|
|
7933
10252
|
|
|
7934
10253
|
const globalCss$c = ".resume-node-status{display:flex;align-items:flex-start;gap:8px;max-width:100%;box-sizing:border-box;padding:4px 20px;color:#8c8c8c;font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere}.resume-node-status>span:last-child{min-width:0}.resume-node-status-spinner{flex:0 0 12px;width:12px;height:12px;box-sizing:border-box;margin-top:4px;border:1.5px dotted #a3a3a3;border-right-color:transparent;border-radius:50%;animation:resume-node-spin 1.2s linear infinite}@keyframes resume-node-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.resume-node-status-spinner{animation:none}}.resume-analysis-region{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;min-height:400px}.resume-analysis-overlay{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border-radius:8px;background:rgba(255, 255, 255, 0.94);color:#666;text-align:center;white-space:pre-line;overflow-wrap:anywhere}.resume-analysis-overlay p{margin:0;max-width:100%}.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:3vh 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}";
|
|
7935
10254
|
|
|
7936
|
-
const hostCss$
|
|
10255
|
+
const hostCss$e = ":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}";
|
|
7937
10256
|
|
|
7938
10257
|
const AtsMnmsModal = class {
|
|
7939
10258
|
constructor(hostRef) {
|
|
@@ -7975,6 +10294,10 @@ const AtsMnmsModal = class {
|
|
|
7975
10294
|
* 是否展示顶部标题栏
|
|
7976
10295
|
*/
|
|
7977
10296
|
isShowHeader = true;
|
|
10297
|
+
/**
|
|
10298
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
10299
|
+
*/
|
|
10300
|
+
showDisclaimer = true;
|
|
7978
10301
|
/**
|
|
7979
10302
|
* 是否展示右上角的关闭按钮
|
|
7980
10303
|
*/
|
|
@@ -8144,7 +10467,7 @@ const AtsMnmsModal = class {
|
|
|
8144
10467
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
8145
10468
|
job_info: this.customInputs?.job_info || this.jobDescription,
|
|
8146
10469
|
interview_type: "1"
|
|
8147
|
-
} })) : (index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, botId: "137635156700770304", digitalId: this.digitalId, showEndInterviewButton: this.showEndInterviewButton, conversationId: this.conversationId, defaultQuery: this.defaultQuery, maxRecordingTime: this.maxRecordingTime, waitingTime: this.waitingTime, customInputs: {
|
|
10470
|
+
} })) : (index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, botId: "137635156700770304", digitalId: this.digitalId, showEndInterviewButton: this.showEndInterviewButton, conversationId: this.conversationId, defaultQuery: this.defaultQuery, maxRecordingTime: this.maxRecordingTime, waitingTime: this.waitingTime, customInputs: {
|
|
8148
10471
|
...this.customInputs,
|
|
8149
10472
|
file_url: this.uploadedFileInfo?.cos_key,
|
|
8150
10473
|
file_name: this.uploadedFileInfo?.file_name,
|
|
@@ -8155,267 +10478,7 @@ const AtsMnmsModal = class {
|
|
|
8155
10478
|
"isOpen": ["handleIsOpenChange"]
|
|
8156
10479
|
}; }
|
|
8157
10480
|
};
|
|
8158
|
-
AtsMnmsModal.style = pcmAtsMnmsModalCss + (globalCss$c + hostCss$
|
|
8159
|
-
|
|
8160
|
-
const pcmButtonCss = ":host{display:inline-block}.pcm-button{display:inline-flex;align-items:center;justify-content:center;font-weight:400;white-space:nowrap;text-align:center;background-image:none;border:1px solid transparent;cursor:pointer;transition:all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);user-select:none;touch-action:manipulation;height:32px;padding:0 15px;font-size:14px;border-radius:4px;color:rgba(0, 0, 0, 0.85);background-color:white;border-color:#d9d9d9;outline:none}.pcm-button:hover{border-color:#40a9ff;color:#40a9ff}.pcm-button:active{border-color:#096dd9;color:#096dd9}.pcm-button-default{background-color:white;border-color:#d9d9d9;color:rgba(0, 0, 0, 0.85)}.pcm-button-primary{background-color:#1677FF;border-color:#1677FF;color:white}.pcm-button-primary:hover{background-color:#40a9ff;border-color:#40a9ff;color:white}.pcm-button-primary:active{background-color:#096dd9;border-color:#096dd9;color:white}.pcm-button-dashed{background-color:white;border-color:#d9d9d9;border-style:dashed}.pcm-button-text{background-color:transparent;border-color:transparent;color:rgba(0, 0, 0, 0.85);box-shadow:none}.pcm-button-text:hover{background-color:rgba(0, 0, 0, 0.05);border-color:transparent;color:rgba(0, 0, 0, 0.85)}.pcm-button-link{background-color:transparent;border-color:transparent;color:#1677FF;box-shadow:none}.pcm-button-link:hover{color:#40a9ff;background-color:transparent;border-color:transparent}.pcm-button-large{height:40px;padding:0 20px;font-size:16px}.pcm-button-small{height:24px;padding:0 7px;font-size:12px}.pcm-button-circle{min-width:32px;padding:0;border-radius:50%}.pcm-button-large.pcm-button-circle{min-width:40px}.pcm-button-small.pcm-button-circle{min-width:24px}.pcm-button-round{border-radius:40px}.pcm-button-loading{opacity:0.65;cursor:default}.loading-icon{width:14px;height:14px;margin-right:8px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:loading-spin 1s infinite linear;display:inline-block}@keyframes loading-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pcm-button-disabled{cursor:not-allowed;opacity:0.65}.pcm-button-disabled:hover,.pcm-button-disabled:active{color:rgba(0, 0, 0, 0.25);background-color:#f5f5f5;border-color:#d9d9d9}.pcm-button-primary.pcm-button-disabled:hover,.pcm-button-primary.pcm-button-disabled:active{background-color:#1677FF;border-color:#1677FF;color:white}.button-icon{margin-right:8px;display:inline-flex;align-items:center}.button-icon img{width:16px;height:16px}.pcm-button-small .button-icon img{width:12px;height:12px}.pcm-button-large .button-icon img{width:18px;height:18px}.pcm-button-block{width:100%;display:flex}";
|
|
8161
|
-
|
|
8162
|
-
const hostCss$f = ":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}";
|
|
8163
|
-
|
|
8164
|
-
const PcmButton = class {
|
|
8165
|
-
constructor(hostRef) {
|
|
8166
|
-
index.registerInstance(this, hostRef);
|
|
8167
|
-
}
|
|
8168
|
-
/**
|
|
8169
|
-
* 按钮类型
|
|
8170
|
-
* 可选值: 'primary', 'default', 'dashed', 'text', 'link'
|
|
8171
|
-
*/
|
|
8172
|
-
type = 'default';
|
|
8173
|
-
/**
|
|
8174
|
-
* 按钮尺寸
|
|
8175
|
-
* 可选值: 'large', 'middle', 'small'
|
|
8176
|
-
*/
|
|
8177
|
-
size = 'middle';
|
|
8178
|
-
/**
|
|
8179
|
-
* 是否为加载状态
|
|
8180
|
-
*/
|
|
8181
|
-
loading = false;
|
|
8182
|
-
/**
|
|
8183
|
-
* 是否为禁用状态
|
|
8184
|
-
*/
|
|
8185
|
-
disabled = false;
|
|
8186
|
-
/**
|
|
8187
|
-
* 设置按钮的图标
|
|
8188
|
-
* 使用图标的URL或者base64字符串
|
|
8189
|
-
*/
|
|
8190
|
-
icon = 'https://pub.pincaimao.com/static/common/i_pcm_logo.png';
|
|
8191
|
-
/**
|
|
8192
|
-
* 自定义按钮形状
|
|
8193
|
-
* 可选值: 'default', 'circle', 'round'
|
|
8194
|
-
*/
|
|
8195
|
-
shape = 'default';
|
|
8196
|
-
/**
|
|
8197
|
-
* 自定义按钮背景色
|
|
8198
|
-
*/
|
|
8199
|
-
backgroundColor = '';
|
|
8200
|
-
/**
|
|
8201
|
-
* 自定义按钮文字颜色
|
|
8202
|
-
*/
|
|
8203
|
-
textColor = '';
|
|
8204
|
-
/**
|
|
8205
|
-
* 自定义按钮边框颜色
|
|
8206
|
-
*/
|
|
8207
|
-
borderColor = '';
|
|
8208
|
-
/**
|
|
8209
|
-
* 自定义按钮圆角大小(像素)
|
|
8210
|
-
*/
|
|
8211
|
-
borderRadius = null;
|
|
8212
|
-
/**
|
|
8213
|
-
* 按钮宽度(像素或百分比)
|
|
8214
|
-
*/
|
|
8215
|
-
width = '';
|
|
8216
|
-
/**
|
|
8217
|
-
* 是否为块级按钮(宽度撑满父元素)
|
|
8218
|
-
*/
|
|
8219
|
-
block = false;
|
|
8220
|
-
/**
|
|
8221
|
-
* 按钮边框样式
|
|
8222
|
-
* 可选值: 'solid', 'dashed', 'dotted', 'none'
|
|
8223
|
-
*/
|
|
8224
|
-
borderStyle = 'solid';
|
|
8225
|
-
render() {
|
|
8226
|
-
// 计算样式类名
|
|
8227
|
-
const classes = {
|
|
8228
|
-
'pcm-button': true,
|
|
8229
|
-
[`pcm-button-${this.type}`]: true,
|
|
8230
|
-
[`pcm-button-${this.size}`]: true,
|
|
8231
|
-
[`pcm-button-${this.shape}`]: true,
|
|
8232
|
-
'pcm-button-loading': this.loading,
|
|
8233
|
-
'pcm-button-disabled': this.disabled,
|
|
8234
|
-
'pcm-button-block': this.block
|
|
8235
|
-
};
|
|
8236
|
-
// 计算自定义样式
|
|
8237
|
-
const customStyle = {};
|
|
8238
|
-
if (this.backgroundColor) {
|
|
8239
|
-
customStyle['backgroundColor'] = this.backgroundColor;
|
|
8240
|
-
}
|
|
8241
|
-
if (this.textColor) {
|
|
8242
|
-
customStyle['color'] = this.textColor;
|
|
8243
|
-
}
|
|
8244
|
-
if (this.borderColor) {
|
|
8245
|
-
customStyle['borderColor'] = this.borderColor;
|
|
8246
|
-
}
|
|
8247
|
-
if (this.borderRadius !== null) {
|
|
8248
|
-
customStyle['borderRadius'] = `${this.borderRadius}px`;
|
|
8249
|
-
}
|
|
8250
|
-
if (this.width) {
|
|
8251
|
-
customStyle['width'] = this.width;
|
|
8252
|
-
}
|
|
8253
|
-
if (this.borderStyle) {
|
|
8254
|
-
customStyle['borderStyle'] = this.borderStyle;
|
|
8255
|
-
}
|
|
8256
|
-
return (index.h("button", { key: '0472468b868ca662e5a746caca553b1a98ea7ad2', class: Object.keys(classes).filter(key => classes[key]).join(' '), style: customStyle, disabled: this.disabled, type: "button" }, this.loading && (index.h("span", { key: '592b93e881b07ea98399f3a342faebb0816e5133', class: "loading-icon" })), this.icon && !this.loading && (index.h("span", { key: '123c3262837c197f57e9609e5d65018c4ab5fb2d', class: "button-icon" }, index.h("img", { key: 'db9222099784d828fc61b526a5341732d1857217', src: this.icon, alt: "" }))), index.h("slot", { key: '2a6b3f204af9a359fbda1b729bfee68f0eb45406' })));
|
|
8257
|
-
}
|
|
8258
|
-
};
|
|
8259
|
-
PcmButton.style = pcmButtonCss + hostCss$f;
|
|
8260
|
-
|
|
8261
|
-
const pcmCardCss = ":host{display:block}.loading-container,.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;width:100%;color:#86909C;font-size:14px;text-align:center}.loading-spinner{width:32px;height:32px;border:3px solid #f3f3f3;border-top:3px solid #1677FF;border-radius:50%;margin-bottom:12px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.error-icon{width:32px;height:32px;background-color:#FFF0F0;color:#F53F3F;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:bold;margin-bottom:12px}.error-message{color:#86909C;max-width:80%}.card-container{border-radius:8px;padding:16px;cursor:pointer;transition:all 0.2s ease;display:flex;flex-direction:column;background-color:#ffffff;border:1px solid #E5E6EB;position:relative;height:100%;min-width:300px}.card-container:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0, 21, 41, 0.08)}.card-header{display:flex;width:100%;padding-bottom:16px;gap:12px}.card-icon{width:64px;height:64px;margin-right:12px;flex-shrink:0;overflow:hidden;border-radius:2px;background-color:#f8f9fa}.card-icon img{width:100%;height:100%;object-fit:contain}.card-info{flex:1;display:flex;flex-direction:column;overflow:hidden}.title-row{display:flex;align-items:center}.title-wrapper{flex:1;margin-right:8px;overflow:hidden}.card-title{font-size:18px;font-weight:700;color:#1D2129;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%}.chat-tag{display:flex;align-items:center;justify-content:center;height:24px;padding:0 8px;background-color:#F2F7E8;color:#56961F;font-size:12px;border-radius:4px;font-weight:500;flex-shrink:0}.author-row{display:flex;align-items:center;margin-top:8px}.author-avatar{width:16px;height:16px;border-radius:50%;margin-right:4px;background-color:#f8f9fa;overflow:hidden}.author-name{font-size:12px;color:#86909C}.card-description{font-size:12px;color:#86909C;margin-top:8px;line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:pre-line;word-break:break-word}.card-footer{padding-top:16px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #E5E6EB}.stats-container{display:flex;align-items:center;flex:1}.stat-item{display:flex;align-items:center;margin-right:8px;color:#86909C}.stat-icon{width:16px;height:16px;margin-right:4px;background-repeat:no-repeat;background-position:center;background-size:contain}.user-icon{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' focusable='false' aria-hidden='true'%3E%3Cpath d='M12 14c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6Zm0-10C9.8 4 8 5.8 8 8s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4Z' fill='currentColor'%3E%3C/path%3E%3Cpath d='M21.9 20.6c-.1-.2-2.3-5.6-9.9-5.6-7.6 0-9.8 5.4-9.9 5.6-.2.5 0 1.1.6 1.3.5.2 1.1 0 1.3-.5 0-.2 1.8-4.4 8-4.4s8 4.2 8.1 4.4c.2.5.8.8 1.3.5.5-.2.7-.8.5-1.3Z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E\")}.star-icon{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' focusable='false' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5.03 9.57 9.1c-.17.3-.46.5-.8.55l-4.3.79 3 3.46c.22.26.32.6.28.93l-.62 4.46 4.41-1.9c.3-.12.63-.12.92 0l4.4 1.9-.6-4.46c-.05-.34.05-.67.27-.93l3-3.46-4.3-.79a1.17 1.17 0 0 1-.8-.55L12 5.03Zm-1-2.46a1.16 1.16 0 0 1 2 0l3.03 5.07 5.51 1c.89.17 1.26 1.24.68 1.92l-3.8 4.4.77 5.71c.13.9-.78 1.6-1.61 1.23L12 19.5l-5.58 2.4a1.17 1.17 0 0 1-1.61-1.23l.78-5.7-3.8-4.4a1.17 1.17 0 0 1 .67-1.92l5.51-1L11 2.56Z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E\")}.video-icon{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' focusable='false' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 2a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H4Zm0 2h16v16H4V4Zm5.5 3.13A1 1 0 0 0 8 8v8a1 1 0 0 0 1.5.87l7-4a1 1 0 0 0 0-1.74l-7-4ZM13.98 12 10 14.28V9.72L13.98 12Z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E\")}.stat-value{font-size:12px}.use-button{font-size:12px;color:#86909C;cursor:pointer;white-space:nowrap}.use-button:hover{color:#1677FF}@media screen and (max-width: 768px){.card-container{padding:12px}.card-header{gap:8px;padding-bottom:12px}.card-icon{width:48px;height:48px}.card-title{font-size:16px;line-height:20px}.card-description{font-size:12px;line-height:16px;height:48px}}";
|
|
8262
|
-
|
|
8263
|
-
const hostCss$e = ":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}";
|
|
8264
|
-
|
|
8265
|
-
const PcmCard = class {
|
|
8266
|
-
constructor(hostRef) {
|
|
8267
|
-
index.registerInstance(this, hostRef);
|
|
8268
|
-
this.tokenInvalid = index.createEvent(this, "tokenInvalid");
|
|
8269
|
-
}
|
|
8270
|
-
/**
|
|
8271
|
-
* SDK鉴权密钥
|
|
8272
|
-
*/
|
|
8273
|
-
token;
|
|
8274
|
-
/**
|
|
8275
|
-
* 自定义卡片标题
|
|
8276
|
-
*/
|
|
8277
|
-
cardTitle = '';
|
|
8278
|
-
/**
|
|
8279
|
-
* 自定义卡片描述
|
|
8280
|
-
*/
|
|
8281
|
-
description = '';
|
|
8282
|
-
/**
|
|
8283
|
-
* 自定义卡片图标URL
|
|
8284
|
-
*/
|
|
8285
|
-
iconUrl = '';
|
|
8286
|
-
/**
|
|
8287
|
-
* 自定义作者名称
|
|
8288
|
-
*/
|
|
8289
|
-
author = '';
|
|
8290
|
-
/**
|
|
8291
|
-
* 自定义作者头像URL
|
|
8292
|
-
*/
|
|
8293
|
-
authorAvatarUrl = '';
|
|
8294
|
-
/**
|
|
8295
|
-
* 是否显示右侧对话标签
|
|
8296
|
-
*/
|
|
8297
|
-
showChatTag = false;
|
|
8298
|
-
/**
|
|
8299
|
-
* 自定义右侧标签
|
|
8300
|
-
*/
|
|
8301
|
-
customChatTag = '';
|
|
8302
|
-
/**
|
|
8303
|
-
* 自定义立即使用按钮文本
|
|
8304
|
-
*/
|
|
8305
|
-
useButtonText = '立即使用';
|
|
8306
|
-
/**
|
|
8307
|
-
* 智能体ID
|
|
8308
|
-
*/
|
|
8309
|
-
botId = '';
|
|
8310
|
-
/**
|
|
8311
|
-
* 内部状态:用于存储从接口获取的智能体数据
|
|
8312
|
-
*/
|
|
8313
|
-
botData = null;
|
|
8314
|
-
/**
|
|
8315
|
-
* 内部状态:加载状态
|
|
8316
|
-
*/
|
|
8317
|
-
loading = false;
|
|
8318
|
-
/**
|
|
8319
|
-
* 内部状态:错误信息
|
|
8320
|
-
*/
|
|
8321
|
-
error = '';
|
|
8322
|
-
/**
|
|
8323
|
-
* SDK密钥验证失败事件
|
|
8324
|
-
*/
|
|
8325
|
-
tokenInvalid;
|
|
8326
|
-
tokenInvalidListener;
|
|
8327
|
-
/**
|
|
8328
|
-
* 监听 botId 变化,当 botId 改变时重新获取数据
|
|
8329
|
-
*/
|
|
8330
|
-
watchBotIdHandler(newValue) {
|
|
8331
|
-
if (newValue) {
|
|
8332
|
-
this.fetchBotData();
|
|
8333
|
-
}
|
|
8334
|
-
}
|
|
8335
|
-
handleTokenChange(newToken) {
|
|
8336
|
-
// 当传入的 token 变化时,更新 authStore 中的 token
|
|
8337
|
-
if (newToken && newToken !== index$1.authStore.getToken()) {
|
|
8338
|
-
index$1.authStore.setToken(newToken);
|
|
8339
|
-
}
|
|
8340
|
-
}
|
|
8341
|
-
/**
|
|
8342
|
-
* 组件将要加载时,如果有 botId 则获取数据
|
|
8343
|
-
*/
|
|
8344
|
-
componentWillLoad() {
|
|
8345
|
-
if (this.token) {
|
|
8346
|
-
index$1.authStore.setToken(this.token);
|
|
8347
|
-
}
|
|
8348
|
-
if (this.botId) {
|
|
8349
|
-
this.fetchBotData();
|
|
8350
|
-
}
|
|
8351
|
-
// 添加全局token无效事件监听器
|
|
8352
|
-
this.tokenInvalidListener = () => {
|
|
8353
|
-
this.tokenInvalid.emit();
|
|
8354
|
-
};
|
|
8355
|
-
document.addEventListener('pcm-token-invalid', this.tokenInvalidListener);
|
|
8356
|
-
}
|
|
8357
|
-
disconnectedCallback() {
|
|
8358
|
-
// 组件销毁时移除事件监听器
|
|
8359
|
-
document.removeEventListener('pcm-token-invalid', this.tokenInvalidListener);
|
|
8360
|
-
}
|
|
8361
|
-
/**
|
|
8362
|
-
* 获取机器人数据
|
|
8363
|
-
*/
|
|
8364
|
-
async fetchBotData() {
|
|
8365
|
-
if (!this.botId)
|
|
8366
|
-
return;
|
|
8367
|
-
this.loading = true;
|
|
8368
|
-
this.error = '';
|
|
8369
|
-
try {
|
|
8370
|
-
const response = await index$1.sendHttpRequest({
|
|
8371
|
-
url: `/sdk/v1/agent/${this.botId}/info`,
|
|
8372
|
-
method: 'GET',
|
|
8373
|
-
});
|
|
8374
|
-
if (response.success && response.data) {
|
|
8375
|
-
this.botData = response.data;
|
|
8376
|
-
}
|
|
8377
|
-
else {
|
|
8378
|
-
throw new Error(response.message || '获取智能体信息失败');
|
|
8379
|
-
}
|
|
8380
|
-
}
|
|
8381
|
-
catch (err) {
|
|
8382
|
-
this.error = err.message || '获取智能体信息失败';
|
|
8383
|
-
console.error('获取智能体信息失败:', err);
|
|
8384
|
-
}
|
|
8385
|
-
finally {
|
|
8386
|
-
this.loading = false;
|
|
8387
|
-
}
|
|
8388
|
-
}
|
|
8389
|
-
render() {
|
|
8390
|
-
// 从 botData 中获取信息,如果用户传入的属性存在则优先使用用户传入的
|
|
8391
|
-
const title = this.cardTitle || (this.botData?.title || '');
|
|
8392
|
-
const desc = this.description || (this.botData?.description || '');
|
|
8393
|
-
// 处理图标,可能会在不同属性中
|
|
8394
|
-
const iconFromBot = this.botData?.icon || this.botData?.iconUrl || this.botData?.logo || '';
|
|
8395
|
-
const icon = this.iconUrl || iconFromBot;
|
|
8396
|
-
const authorName = this.author || (this.botData?.author_name || '');
|
|
8397
|
-
const authorAvatar = this.authorAvatarUrl || (this.botData?.author_avatar || '');
|
|
8398
|
-
const hasChatTag = this.customChatTag || (this.botData?.flag || '');
|
|
8399
|
-
const usersCount = this.botData?.use_count || 0;
|
|
8400
|
-
const starsCount = this.botData?.follow_count || 0;
|
|
8401
|
-
const usageCount = this.botData?.view_count || 0;
|
|
8402
|
-
console.log('渲染数据:', {
|
|
8403
|
-
title,
|
|
8404
|
-
icon,
|
|
8405
|
-
iconFromBot,
|
|
8406
|
-
userIconUrl: this.iconUrl,
|
|
8407
|
-
botData: this.botData,
|
|
8408
|
-
authorName,
|
|
8409
|
-
authorAvatar
|
|
8410
|
-
});
|
|
8411
|
-
return (index.h("div", { key: '147282e742cb8b47127e426f40c4f1fb99288ed6', class: "card-container" }, this.loading ? (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("div", null, "\u52A0\u8F7D\u4E2D..."))) : this.error ? (index.h("div", { class: "error-container" }, index.h("div", { class: "error-icon" }, "!"), index.h("div", { class: "error-message" }, this.error))) : (index.h("div", null, index.h("div", { class: "card-header" }, icon && (index.h("div", { class: "card-icon" }, index.h("img", { src: icon, alt: title }))), index.h("div", { class: "card-info" }, index.h("div", { class: "title-row" }, index.h("div", { class: "title-wrapper" }, index.h("div", { class: "card-title" }, title)), this.showChatTag && hasChatTag && index.h("div", { class: "chat-tag" }, hasChatTag)), authorName && (index.h("div", { class: "author-row" }, authorAvatar && (index.h("img", { class: "author-avatar", src: authorAvatar, alt: authorName })), index.h("div", { class: "author-name" }, authorName))), desc && (index.h("div", { class: "card-description" }, desc)))), index.h("div", { class: "card-footer" }, index.h("div", { class: "stats-container" }, index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon user-icon" }), index.h("div", { class: "stat-value" }, usersCount)), index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon star-icon" }), index.h("div", { class: "stat-value" }, starsCount)), index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon video-icon" }), index.h("div", { class: "stat-value" }, usageCount))), index.h("div", { class: "use-button" }, this.useButtonText || '立即使用'))))));
|
|
8412
|
-
}
|
|
8413
|
-
static get watchers() { return {
|
|
8414
|
-
"botId": ["watchBotIdHandler"],
|
|
8415
|
-
"token": ["handleTokenChange"]
|
|
8416
|
-
}; }
|
|
8417
|
-
};
|
|
8418
|
-
PcmCard.style = pcmCardCss + hostCss$e;
|
|
10481
|
+
AtsMnmsModal.style = pcmAtsMnmsModalCss + (globalCss$c + hostCss$e);
|
|
8419
10482
|
|
|
8420
10483
|
const pcmHtwsModalCss = ".input-mode-toggle{display:flex;align-items:center;margin-bottom:16px}.input-mode-toggle span{color:#333;margin-right:12px}.toggle-button{display:flex;align-items:center;background:none;border:none;color:#2E6EDF;cursor:pointer;font-size:14px;padding:4px 8px}.toggle-button svg{margin-right:4px}.free-input{width:100%}.textarea-container{margin-bottom:16px}.textarea-container label{display:block;margin-bottom:8px;font-weight:500;color:#333}.textarea-container textarea{border:1px solid #ddd;border-radius:4px;font-size:14px;resize:vertical;background-color:#f9f9f9;min-height:150px;width:100%;padding:12px 16px;margin-bottom:20px;max-width:100%;box-sizing:border-box;word-wrap:break-word}.textarea-container textarea:focus{outline:none;border-color:#2E6EDF;box-shadow:0 0 0 2px rgba(46, 110, 223, 0.2)}.required{color:#f56c6c}.input-guide{background-color:#f5f7fa;border-radius:4px;padding:12px 16px;margin-bottom:20px;max-width:100%;box-sizing:border-box;word-wrap:break-word}.guide-title{font-weight:500;color:#333;margin-bottom:8px}.guide-content{color:#666;font-size:13px;max-width:100%;word-wrap:break-word}.guide-content div{margin-bottom:4px}";
|
|
8421
10484
|
|
|
@@ -8462,6 +10525,10 @@ const HtwsModal = class {
|
|
|
8462
10525
|
* 是否展示顶部标题栏
|
|
8463
10526
|
*/
|
|
8464
10527
|
isShowHeader = true;
|
|
10528
|
+
/**
|
|
10529
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
10530
|
+
*/
|
|
10531
|
+
showDisclaimer = true;
|
|
8465
10532
|
/**
|
|
8466
10533
|
* 是否展示右上角的关闭按钮
|
|
8467
10534
|
*/
|
|
@@ -8710,7 +10777,7 @@ const HtwsModal = class {
|
|
|
8710
10777
|
} })), index.h("div", { class: "textarea-container" }, index.h("textarea", { id: "free-input-text", placeholder: "\u8BF7\u8F93\u5165\u5408\u540C\u5185\u5BB9", rows: 8, value: this.freeInputText, onInput: this.handleFreeInputChange })), index.h("div", { class: "input-guide" }, index.h("div", { class: "guide-title" }, "\u8F93\u5165\u63D0\u793A\uFF1A"), index.h("div", { class: "guide-content" }, index.h("div", null, "\u2022 \u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u52B3\u52A8\u5408\u540C\u5185\u5BB9"), index.h("div", null, "\u2022 \u5305\u62EC\u7532\u65B9\uFF08\u516C\u53F8\uFF09\u3001\u4E59\u65B9\uFF08\u5458\u5DE5\uFF09\u4FE1\u606F"), index.h("div", null, "\u2022 \u5408\u540C\u671F\u9650\u3001\u5DE5\u4F5C\u5185\u5BB9\u3001\u5DE5\u4F5C\u5730\u70B9"), index.h("div", null, "\u2022 \u5DE5\u4F5C\u65F6\u95F4\u3001\u4F11\u606F\u4F11\u5047\u3001\u52B3\u52A8\u62A5\u916C"), index.h("div", null, "\u2022 \u793E\u4F1A\u4FDD\u9669\u3001\u52B3\u52A8\u4FDD\u62A4\u3001\u52B3\u52A8\u6761\u4EF6"), index.h("div", null, "\u2022 \u5408\u540C\u53D8\u66F4\u3001\u89E3\u9664\u548C\u7EC8\u6B62\u6761\u4EF6\u7B49"))))), index.h("button", { class: "submit-button", disabled: (this.inputMode === 'upload' && !this.uploadedFileInfo?.length) ||
|
|
8711
10778
|
(this.inputMode === 'free' && !this.freeInputText.trim()) ||
|
|
8712
10779
|
this.isUploading ||
|
|
8713
|
-
this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, showNodeStatus: this.showNodeStatus, botId: "3022316191018882", conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
10780
|
+
this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, showNodeStatus: this.showNodeStatus, botId: "3022316191018882", conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
8714
10781
|
...this.customInputs,
|
|
8715
10782
|
file_url: this.inputMode === 'upload' ? this.uploadedFileInfo?.map?.((item) => item.cos_key)?.join(",") : undefined,
|
|
8716
10783
|
file_name: this.uploadedFileInfo?.map?.((item) => item.file_name)?.join(","),
|
|
@@ -8769,6 +10836,10 @@ const HyzjModal = class {
|
|
|
8769
10836
|
* 是否展示顶部标题栏
|
|
8770
10837
|
*/
|
|
8771
10838
|
isShowHeader = true;
|
|
10839
|
+
/**
|
|
10840
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
10841
|
+
*/
|
|
10842
|
+
showDisclaimer = true;
|
|
8772
10843
|
/**
|
|
8773
10844
|
* 是否展示右上角的关闭按钮
|
|
8774
10845
|
*/
|
|
@@ -9048,7 +11119,7 @@ const HyzjModal = class {
|
|
|
9048
11119
|
} }, conversation.status))))))))), !this.isLoadingConversations && (this.historyConversationPageIndex > 0 || this.hasMoreHistoryConversations) && (index.h("div", { class: "history-pagination" }, index.h("button", { type: "button", class: "history-pagination-button", disabled: this.historyConversationPageIndex === 0, onClick: () => this.handleHistoryConversationPageChange('prev') }, "\u4E0A\u4E00\u9875"), index.h("span", { class: "history-pagination-info" }, "\u7B2C ", this.historyConversationPageIndex + 1, " \u9875"), index.h("button", { type: "button", class: "history-pagination-button", disabled: !this.hasMoreHistoryConversations, onClick: () => this.handleHistoryConversationPageChange('next') }, "\u4E0B\u4E00\u9875")))))), !this.showChatModal && !this.conversationId && !hideFileUpload && (index.h("div", { class: "input-container" }, index.h("div", { class: "resume-upload-section" }, index.h("label", null, "\u4E0A\u4F20\u4F1A\u8BAE\u7EAA\u8981"), index.h("div", { class: "upload-area", onClick: this.handleUploadClick }, this.selectedFile ? (index.h("div", { class: "file-item" }, index.h("div", { class: "file-item-content" }, index.h("span", { class: "file-icon" }, "\uD83D\uDCDD"), index.h("span", { class: "file-name" }, this.selectedFile.name)), index.h("button", { class: "remove-file", onClick: (e) => {
|
|
9049
11120
|
e.stopPropagation();
|
|
9050
11121
|
this.clearSelectedFile();
|
|
9051
|
-
} }, "\u00D7"))) : (index.h("div", { class: "upload-placeholder" }, index.h("img", { src: 'https://pub.pincaimao.com/static/web/images/home/i_upload.png' }), index.h("p", { class: 'upload-text' }, "\u70B9\u51FB\u4E0A\u4F20\u4F1A\u8BAE\u7EAA\u8981"), index.h("p", { class: "upload-hint" }, "\u652F\u6301 mp3\u3001markdown\u3001pdf\u3001docx\u3001doc\u3001md \u683C\u5F0F"))))), index.h("button", { class: "submit-button", disabled: !this.selectedFile || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))), index.h("input", { type: "file", class: "file-input", onChange: this.handleFileChange }))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "3022316191018885", conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
11122
|
+
} }, "\u00D7"))) : (index.h("div", { class: "upload-placeholder" }, index.h("img", { src: 'https://pub.pincaimao.com/static/web/images/home/i_upload.png' }), index.h("p", { class: 'upload-text' }, "\u70B9\u51FB\u4E0A\u4F20\u4F1A\u8BAE\u7EAA\u8981"), index.h("p", { class: "upload-hint" }, "\u652F\u6301 mp3\u3001markdown\u3001pdf\u3001docx\u3001doc\u3001md \u683C\u5F0F"))))), index.h("button", { class: "submit-button", disabled: !this.selectedFile || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))), index.h("input", { type: "file", class: "file-input", onChange: this.handleFileChange }))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "3022316191018885", conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
9052
11123
|
...this.customInputs,
|
|
9053
11124
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
9054
11125
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name
|
|
@@ -9319,6 +11390,10 @@ const PcmJdModal = class {
|
|
|
9319
11390
|
* 是否展示顶部标题栏
|
|
9320
11391
|
*/
|
|
9321
11392
|
isShowHeader = true;
|
|
11393
|
+
/**
|
|
11394
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
11395
|
+
*/
|
|
11396
|
+
showDisclaimer = true;
|
|
9322
11397
|
/**
|
|
9323
11398
|
* 是否展示右上角的关闭按钮
|
|
9324
11399
|
*/
|
|
@@ -9859,7 +11934,7 @@ const PcmJdModal = class {
|
|
|
9859
11934
|
'conversation-status': true,
|
|
9860
11935
|
'completed': conversation.status === '结束',
|
|
9861
11936
|
'running': conversation.status === '进行中',
|
|
9862
|
-
} }, conversation.status))))))))), !this.isLoadingConversations && (this.historyConversationPageIndex > 0 || this.hasMoreHistoryConversations) && (index.h("div", { class: "history-pagination" }, index.h("button", { type: "button", class: "history-pagination-button", disabled: this.historyConversationPageIndex === 0, onClick: () => this.handleHistoryConversationPageChange('prev') }, "\u4E0A\u4E00\u9875"), index.h("span", { class: "history-pagination-info" }, "\u7B2C ", this.historyConversationPageIndex + 1, " \u9875"), index.h("button", { type: "button", class: "history-pagination-button", disabled: !this.hasMoreHistoryConversations, onClick: () => this.handleHistoryConversationPageChange('next') }, "\u4E0B\u4E00\u9875")))))), !this.showChatModal && !this.conversationId && true && (index.h("div", { class: "input-container" }, index.h("div", { class: "input-mode-toggle" }, index.h("span", null, this.strings.jobRequirementInfo), index.h("button", { class: "toggle-button", onClick: this.handleToggleInput, disabled: this.isLoading || this.isVoiceInputActive }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M4 6h16M4 12h16M4 18h16" })), this.strings.toggleInput)), this.inputMode === 'structured' && (index.h("div", { class: "structured-input" }, this.step === 'input' && (index.h("div", { class: "job-name-input" }, index.h("label", { htmlFor: "job-name" }, this.strings.jobName, " ", index.h("span", { class: "required" }, this.strings.required)), index.h("input", { id: "job-name", type: "text", placeholder: this.strings.jobNamePlaceholder, value: this.jobName, onInput: this.handleJobNameChange, disabled: this.isLoading }), index.h("div", { class: "button-container" }, index.h("button", { class: "submit-button next-button", onClick: this.handleNextStep, disabled: !this.jobName.trim() || this.isLoading }, this.strings.nextStep)))), this.step === 'review' && (index.h("div", { class: "tag-selection" }, this.isLoading ? (this.renderLoadingState()) : (index.h("div", { class: "tag-selection-content" }, this.tagGroups.length > 0 && (index.h("div", { class: "ai-tags-section" }, index.h("div", { class: "section-title" }, this.strings.aiRecommendedTags), this.renderAITagGroups())), this.tagGroups.length > 0 && (index.h("div", { class: "basic-tags-section" }, this.renderTagGroup(this.strings.salaryRange, this.getSalaryRanges(), 'salary'), this.renderTagGroup(this.strings.benefits, this.getBenefits(), 'benefits'), this.renderTagGroup(this.strings.education, this.getEducationRequirements(), 'education'))), index.h("div", { class: "button-container" }, index.h("button", { class: "submit-button prev-button", onClick: this.handlePrevStep }, this.strings.prevStep), index.h("button", { class: "submit-button", onClick: this.handleSubmitStructured, disabled: this.isSubmitting }, this.isSubmitting ? this.strings.processing : this.strings.generateJD)))))))), this.inputMode === 'free' && (index.h("div", { class: "free-input" }, index.h("div", { class: "textarea-container" }, index.h("label", { htmlFor: "free-input-text" }, this.strings.jdInfo, " ", index.h("span", { class: "required" }, this.strings.required)), index.h("div", { class: "voice-textarea-wrapper" }, index.h("textarea", { id: "free-input-text", placeholder: this.strings.jdInfoPlaceholder, rows: 8, value: this.freeInputText, onInput: this.handleFreeInputChange, disabled: this.isVoiceInputActive }), index.h("div", { class: "voice-input-entry" }, index.h("components-voice-input-btn", { locale: this.locale === 'en' ? 'en' : 'zh', disabled: this.isSubmitting, onVoiceRecognized: this.handleVoiceRecognized, onVoiceStatusChange: this.handleVoiceStatusChange, onSomeErrorEvent: this.handleVoiceInputError })))), index.h("div", { class: "input-guide" }, index.h("div", { class: "guide-title" }, this.strings.inputGuideTitle), index.h("div", { class: "guide-content" }, index.h("div", null, this.strings.inputGuide.jobTitle), index.h("div", null, this.strings.inputGuide.salary), index.h("div", null, this.strings.inputGuide.benefits), index.h("div", null, this.strings.inputGuide.responsibilities), index.h("div", null, this.strings.inputGuide.qualifications), index.h("div", null, this.strings.inputGuide.location))), index.h("div", { class: "button-container" }, index.h("button", { class: "submit-button", onClick: this.handleSubmitFree, disabled: !this.freeInputText.trim() || this.isSubmitting || this.isVoiceInputActive }, this.isSubmitting ? this.strings.processing : this.strings.generateJD)))), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, this.strings.aiDisclaimer), index.h("p", { class: "beian-info" }, index.h("span", null, this.strings.beianLabel), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, this.strings.beianNumber))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, this.strings.loadingConversation))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { locale: this.locale, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: this.getBotId(), conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
11937
|
+
} }, conversation.status))))))))), !this.isLoadingConversations && (this.historyConversationPageIndex > 0 || this.hasMoreHistoryConversations) && (index.h("div", { class: "history-pagination" }, index.h("button", { type: "button", class: "history-pagination-button", disabled: this.historyConversationPageIndex === 0, onClick: () => this.handleHistoryConversationPageChange('prev') }, "\u4E0A\u4E00\u9875"), index.h("span", { class: "history-pagination-info" }, "\u7B2C ", this.historyConversationPageIndex + 1, " \u9875"), index.h("button", { type: "button", class: "history-pagination-button", disabled: !this.hasMoreHistoryConversations, onClick: () => this.handleHistoryConversationPageChange('next') }, "\u4E0B\u4E00\u9875")))))), !this.showChatModal && !this.conversationId && true && (index.h("div", { class: "input-container" }, index.h("div", { class: "input-mode-toggle" }, index.h("span", null, this.strings.jobRequirementInfo), index.h("button", { class: "toggle-button", onClick: this.handleToggleInput, disabled: this.isLoading || this.isVoiceInputActive }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M4 6h16M4 12h16M4 18h16" })), this.strings.toggleInput)), this.inputMode === 'structured' && (index.h("div", { class: "structured-input" }, this.step === 'input' && (index.h("div", { class: "job-name-input" }, index.h("label", { htmlFor: "job-name" }, this.strings.jobName, " ", index.h("span", { class: "required" }, this.strings.required)), index.h("input", { id: "job-name", type: "text", placeholder: this.strings.jobNamePlaceholder, value: this.jobName, onInput: this.handleJobNameChange, disabled: this.isLoading }), index.h("div", { class: "button-container" }, index.h("button", { class: "submit-button next-button", onClick: this.handleNextStep, disabled: !this.jobName.trim() || this.isLoading }, this.strings.nextStep)))), this.step === 'review' && (index.h("div", { class: "tag-selection" }, this.isLoading ? (this.renderLoadingState()) : (index.h("div", { class: "tag-selection-content" }, this.tagGroups.length > 0 && (index.h("div", { class: "ai-tags-section" }, index.h("div", { class: "section-title" }, this.strings.aiRecommendedTags), this.renderAITagGroups())), this.tagGroups.length > 0 && (index.h("div", { class: "basic-tags-section" }, this.renderTagGroup(this.strings.salaryRange, this.getSalaryRanges(), 'salary'), this.renderTagGroup(this.strings.benefits, this.getBenefits(), 'benefits'), this.renderTagGroup(this.strings.education, this.getEducationRequirements(), 'education'))), index.h("div", { class: "button-container" }, index.h("button", { class: "submit-button prev-button", onClick: this.handlePrevStep }, this.strings.prevStep), index.h("button", { class: "submit-button", onClick: this.handleSubmitStructured, disabled: this.isSubmitting }, this.isSubmitting ? this.strings.processing : this.strings.generateJD)))))))), this.inputMode === 'free' && (index.h("div", { class: "free-input" }, index.h("div", { class: "textarea-container" }, index.h("label", { htmlFor: "free-input-text" }, this.strings.jdInfo, " ", index.h("span", { class: "required" }, this.strings.required)), index.h("div", { class: "voice-textarea-wrapper" }, index.h("textarea", { id: "free-input-text", placeholder: this.strings.jdInfoPlaceholder, rows: 8, value: this.freeInputText, onInput: this.handleFreeInputChange, disabled: this.isVoiceInputActive }), index.h("div", { class: "voice-input-entry" }, index.h("components-voice-input-btn", { locale: this.locale === 'en' ? 'en' : 'zh', disabled: this.isSubmitting, onVoiceRecognized: this.handleVoiceRecognized, onVoiceStatusChange: this.handleVoiceStatusChange, onSomeErrorEvent: this.handleVoiceInputError })))), index.h("div", { class: "input-guide" }, index.h("div", { class: "guide-title" }, this.strings.inputGuideTitle), index.h("div", { class: "guide-content" }, index.h("div", null, this.strings.inputGuide.jobTitle), index.h("div", null, this.strings.inputGuide.salary), index.h("div", null, this.strings.inputGuide.benefits), index.h("div", null, this.strings.inputGuide.responsibilities), index.h("div", null, this.strings.inputGuide.qualifications), index.h("div", null, this.strings.inputGuide.location))), index.h("div", { class: "button-container" }, index.h("button", { class: "submit-button", onClick: this.handleSubmitFree, disabled: !this.freeInputText.trim() || this.isSubmitting || this.isVoiceInputActive }, this.isSubmitting ? this.strings.processing : this.strings.generateJD)))), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, this.strings.aiDisclaimer), index.h("p", { class: "beian-info" }, index.h("span", null, this.strings.beianLabel), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, this.strings.beianNumber)))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, this.strings.loadingConversation))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, locale: this.locale, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: this.getBotId(), conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
9863
11938
|
...this.customInputs,
|
|
9864
11939
|
job_info: this.customInputs?.job_info || this.jobDescription
|
|
9865
11940
|
}, interviewMode: "text", showSaveJdButton: this.showSaveJdButton, saveJdButtonText: this.saveJdButtonText }))))));
|
|
@@ -9916,6 +11991,10 @@ const JlppModal = class {
|
|
|
9916
11991
|
* 是否展示顶部标题栏
|
|
9917
11992
|
*/
|
|
9918
11993
|
isShowHeader = true;
|
|
11994
|
+
/**
|
|
11995
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
11996
|
+
*/
|
|
11997
|
+
showDisclaimer = true;
|
|
9919
11998
|
/**
|
|
9920
11999
|
* 是否展示右上角的关闭按钮
|
|
9921
12000
|
*/
|
|
@@ -10161,7 +12240,7 @@ const JlppModal = class {
|
|
|
10161
12240
|
const result = e.detail ?? [];
|
|
10162
12241
|
this.uploadedFileInfo = result[0];
|
|
10163
12242
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
10164
|
-
} }))), index.h("button", { class: "submit-button", disabled: (!hideResumeUpload && !this.uploadedFileInfo) || (!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting, onClick: this.handleStartAnalysis }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "3022316191018881", customInputs: {
|
|
12243
|
+
} }))), index.h("button", { class: "submit-button", disabled: (!hideResumeUpload && !this.uploadedFileInfo) || (!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting, onClick: this.handleStartAnalysis }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, 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, showChatInput: this.showChatInput, botId: "3022316191018881", customInputs: {
|
|
10165
12244
|
...this.customInputs,
|
|
10166
12245
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
10167
12246
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
@@ -10233,6 +12312,10 @@ const JlzzModal = class {
|
|
|
10233
12312
|
* 是否展示顶部标题栏
|
|
10234
12313
|
*/
|
|
10235
12314
|
isShowHeader = true;
|
|
12315
|
+
/**
|
|
12316
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
12317
|
+
*/
|
|
12318
|
+
showDisclaimer = true;
|
|
10236
12319
|
/**
|
|
10237
12320
|
* 是否展示右上角的关闭按钮
|
|
10238
12321
|
*/
|
|
@@ -10669,9 +12752,9 @@ const JlzzModal = class {
|
|
|
10669
12752
|
} }, conversation.status)))), conversation.id === this.conversationId && (index.h("div", { class: "current-indicator" }, index.h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor" }, index.h("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }))))))))) : (index.h("button", { class: "submit-button", disabled: (this.resumeType === 'upload' && !hideResumeUpload && !this.uploadedFileInfo) ||
|
|
10670
12753
|
(this.resumeType === 'paste' && !this.resumeText.trim()) ||
|
|
10671
12754
|
this.isUploading ||
|
|
10672
|
-
this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : ['upload', 'paste'].includes(this.resumeType) ? '开始制作' : '开始对话')), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), this.showChatModal && (index.h(index.h.Fragment, null, index.h("div", { style: {
|
|
12755
|
+
this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : ['upload', 'paste'].includes(this.resumeType) ? '开始制作' : '开始对话')), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))))), this.showChatModal && (index.h(index.h.Fragment, null, index.h("div", { style: {
|
|
10673
12756
|
display: this.resumeType === 'chat' ? 'block' : 'none',
|
|
10674
|
-
} }, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: false, botId: "39284520284983296", conversationId: this.conversationId, defaultQuery: this.resumeType === 'paste' ? this.resumeText : this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
12757
|
+
} }, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: false, botId: "39284520284983296", conversationId: this.conversationId, defaultQuery: this.resumeType === 'paste' ? this.resumeText : this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
10675
12758
|
...this.customInputs,
|
|
10676
12759
|
file_url: this.resumeType === 'upload' ? this.customInputs.file_url || this.uploadedFileInfo?.cos_key : '',
|
|
10677
12760
|
mode_type: this.resumeType === 'chat' ? 1 : 0,
|
|
@@ -10849,6 +12932,10 @@ const MnctModal = class {
|
|
|
10849
12932
|
* 是否展示顶部标题栏
|
|
10850
12933
|
*/
|
|
10851
12934
|
isShowHeader = true;
|
|
12935
|
+
/**
|
|
12936
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
12937
|
+
*/
|
|
12938
|
+
showDisclaimer = true;
|
|
10852
12939
|
/**
|
|
10853
12940
|
* 是否展示右上角的关闭按钮
|
|
10854
12941
|
*/
|
|
@@ -11116,11 +13203,11 @@ const MnctModal = class {
|
|
|
11116
13203
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
11117
13204
|
} }))), index.h("div", { class: "interview-settings-section" }, index.h("div", { class: "settings-row" }, index.h("div", { class: "question-number-section" }, index.h("label", { class: "settings-label" }, this.strings.questionNumberLabel), index.h("div", { class: "slider-container" }, index.h("input", { type: "range", min: "3", max: "20", value: this.questionNumber, class: "question-slider", onInput: this.handleQuestionNumberChange }), index.h("div", { class: "slider-value" }, this.questionNumber, this.strings.questionUnit)))), index.h("div", { class: "settings-row" }, index.h("div", { class: "analysis-toggle-section" }, index.h("label", { class: "settings-label" }, this.strings.analysisToggleLabel), index.h("div", { class: "toggle-container" }, index.h("label", { class: "toggle-switch" }, index.h("input", { type: "checkbox", checked: this.canOutputAnalysis, onChange: this.handleAnalysisToggle }), index.h("span", { class: "toggle-slider" })), index.h("span", { class: "toggle-text" }, this.canOutputAnalysis ? this.strings.toggleOn : this.strings.toggleOff))))), index.h("button", { class: "submit-button", disabled: ((!hideResumeUpload && !this.uploadedFileInfo) ||
|
|
11118
13205
|
(!hideJdInput && !this.jobDescription.trim())) ||
|
|
11119
|
-
this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isSubmitting ? this.strings.processing : this.strings.startAnalysis), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, this.strings.aiDisclaimer), index.h("p", { class: "beian-info" }, index.h("span", null, this.strings.beianLabel), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, this.strings.beianNumber))))), this.showInputHistory && (index.h("components-drawer", { isOpen: this.isHistoryDrawerOpen, drawerTitle: this.strings?.historyConversations, width: "400px", onClosed: () => { this.isHistoryDrawerOpen = false; } }, index.h("div", { class: "history-drawer-content" }, index.h("div", { class: "conversation-list" }, this.isLoadingConversations ? (index.h("div", { class: "loading-conversations" }, index.h("div", { class: "loading-spinner-small" }), index.h("p", null, this.strings?.history?.loading))) : this.historyConversations.length === 0 ? (index.h("div", { class: "empty-conversations" }, index.h("p", null, this.strings?.history?.noHistory))) : (this.historyConversations.map(conversation => (index.h("div", { key: conversation.id, class: "conversation-item", onClick: () => this.handleSelectConversation(conversation.id) }, index.h("div", { class: "conversation-info" }, index.h("div", { class: "conversation-title" }, conversation.name), index.h("div", { class: "conversation-meta" }, index.h("span", { class: "conversation-time" }, conversation.timeDisplay), conversation.message_count > 0 && (index.h("span", { class: "message-count" }, conversation.message_count, "\u6761\u6D88\u606F")), conversation.status && (index.h("span", { class: {
|
|
13206
|
+
this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isSubmitting ? this.strings.processing : this.strings.startAnalysis), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, this.strings.aiDisclaimer), index.h("p", { class: "beian-info" }, index.h("span", null, this.strings.beianLabel), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, this.strings.beianNumber)))))), this.showInputHistory && (index.h("components-drawer", { isOpen: this.isHistoryDrawerOpen, drawerTitle: this.strings?.historyConversations, width: "400px", onClosed: () => { this.isHistoryDrawerOpen = false; } }, index.h("div", { class: "history-drawer-content" }, index.h("div", { class: "conversation-list" }, this.isLoadingConversations ? (index.h("div", { class: "loading-conversations" }, index.h("div", { class: "loading-spinner-small" }), index.h("p", null, this.strings?.history?.loading))) : this.historyConversations.length === 0 ? (index.h("div", { class: "empty-conversations" }, index.h("p", null, this.strings?.history?.noHistory))) : (this.historyConversations.map(conversation => (index.h("div", { key: conversation.id, class: "conversation-item", onClick: () => this.handleSelectConversation(conversation.id) }, index.h("div", { class: "conversation-info" }, index.h("div", { class: "conversation-title" }, conversation.name), index.h("div", { class: "conversation-meta" }, index.h("span", { class: "conversation-time" }, conversation.timeDisplay), conversation.message_count > 0 && (index.h("span", { class: "message-count" }, conversation.message_count, "\u6761\u6D88\u606F")), conversation.status && (index.h("span", { class: {
|
|
11120
13207
|
'conversation-status': true,
|
|
11121
13208
|
'completed': conversation.status === '结束',
|
|
11122
13209
|
'running': conversation.status === '进行中',
|
|
11123
|
-
} }, conversation.status))))))))), !this.isLoadingConversations && (this.historyConversationPageIndex > 0 || this.hasMoreHistoryConversations) && (index.h("div", { class: "history-pagination" }, index.h("button", { type: "button", class: "history-pagination-button", disabled: this.historyConversationPageIndex === 0, onClick: () => this.handleHistoryConversationPageChange('prev') }, "\u4E0A\u4E00\u9875"), index.h("span", { class: "history-pagination-info" }, "\u7B2C ", this.historyConversationPageIndex + 1, " \u9875"), index.h("button", { type: "button", class: "history-pagination-button", disabled: !this.hasMoreHistoryConversations, onClick: () => this.handleHistoryConversationPageChange('next') }, "\u4E0B\u4E00\u9875")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, this.strings.loadingConversation))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { locale: this.locale, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: this.getBotId(), conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
13210
|
+
} }, conversation.status))))))))), !this.isLoadingConversations && (this.historyConversationPageIndex > 0 || this.hasMoreHistoryConversations) && (index.h("div", { class: "history-pagination" }, index.h("button", { type: "button", class: "history-pagination-button", disabled: this.historyConversationPageIndex === 0, onClick: () => this.handleHistoryConversationPageChange('prev') }, "\u4E0A\u4E00\u9875"), index.h("span", { class: "history-pagination-info" }, "\u7B2C ", this.historyConversationPageIndex + 1, " \u9875"), index.h("button", { type: "button", class: "history-pagination-button", disabled: !this.hasMoreHistoryConversations, onClick: () => this.handleHistoryConversationPageChange('next') }, "\u4E0B\u4E00\u9875")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, this.strings.loadingConversation))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, locale: this.locale, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: this.getBotId(), conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
11124
13211
|
...this.customInputs,
|
|
11125
13212
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
11126
13213
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
@@ -11182,6 +13269,10 @@ const MnmsModal = class {
|
|
|
11182
13269
|
* 是否展示顶部标题栏
|
|
11183
13270
|
*/
|
|
11184
13271
|
isShowHeader = true;
|
|
13272
|
+
/**
|
|
13273
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
13274
|
+
*/
|
|
13275
|
+
showDisclaimer = true;
|
|
11185
13276
|
/**
|
|
11186
13277
|
* 是否展示右上角的关闭按钮
|
|
11187
13278
|
*/
|
|
@@ -11427,14 +13518,14 @@ const MnmsModal = class {
|
|
|
11427
13518
|
const result = e.detail ?? [];
|
|
11428
13519
|
this.uploadedFileInfo = result[0];
|
|
11429
13520
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
11430
|
-
} }))), index.h("button", { class: "submit-button", disabled: (!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始面试'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, this.enableVirtualHuman && this.digitalId ? (index.h("pcm-virtual-chat-modal", { ref: el => this.virtualChatModalRef = el, isOpen: true, fullscreen: this.fullscreen, botId: "3022316191018884", digitalId: this.digitalId, openingIndex: this.openingIndex, conversationId: this.conversationId, defaultQuery: this.defaultQuery, waitingTime: this.waitingTime, playbackRate: this.playbackRate, showEndInterviewButton: this.showEndInterviewButton, customInputs: {
|
|
13521
|
+
} }))), index.h("button", { class: "submit-button", disabled: (!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始面试'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, this.enableVirtualHuman && this.digitalId ? (index.h("pcm-virtual-chat-modal", { ref: el => this.virtualChatModalRef = el, isOpen: true, fullscreen: this.fullscreen, botId: "3022316191018884", digitalId: this.digitalId, openingIndex: this.openingIndex, conversationId: this.conversationId, defaultQuery: this.defaultQuery, waitingTime: this.waitingTime, playbackRate: this.playbackRate, showEndInterviewButton: this.showEndInterviewButton, customInputs: {
|
|
11431
13522
|
...this.customInputs,
|
|
11432
13523
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
11433
13524
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
11434
13525
|
job_info: this.customInputs?.job_info || this.jobDescription,
|
|
11435
13526
|
question_number: this.customInputs?.question_number || 5,
|
|
11436
13527
|
ai_interview_type: this.digitalId
|
|
11437
|
-
} })) : (index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isShowHeader, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, botId: "3022316191018884", digitalId: this.digitalId, conversationId: this.conversationId, defaultQuery: this.defaultQuery, maxRecordingTime: this.maxRecordingTime, waitingTime: this.waitingTime, playbackRate: this.playbackRate, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, showEndInterviewButton: this.showEndInterviewButton, customInputs: {
|
|
13528
|
+
} })) : (index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isShowHeader, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, botId: "3022316191018884", digitalId: this.digitalId, conversationId: this.conversationId, defaultQuery: this.defaultQuery, maxRecordingTime: this.maxRecordingTime, waitingTime: this.waitingTime, playbackRate: this.playbackRate, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, showEndInterviewButton: this.showEndInterviewButton, customInputs: {
|
|
11438
13529
|
...this.customInputs,
|
|
11439
13530
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
11440
13531
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
@@ -11496,6 +13587,10 @@ const MnmsZpModal = class {
|
|
|
11496
13587
|
* 是否展示顶部标题栏
|
|
11497
13588
|
*/
|
|
11498
13589
|
isShowHeader = true;
|
|
13590
|
+
/**
|
|
13591
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
13592
|
+
*/
|
|
13593
|
+
showDisclaimer = true;
|
|
11499
13594
|
/**
|
|
11500
13595
|
* 是否展示右上角的关闭按钮
|
|
11501
13596
|
*/
|
|
@@ -11737,14 +13832,14 @@ const MnmsZpModal = class {
|
|
|
11737
13832
|
const result = e.detail ?? [];
|
|
11738
13833
|
this.uploadedFileInfo = result[0];
|
|
11739
13834
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
11740
|
-
} }))), index.h("button", { class: "submit-button", disabled: (!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始面试'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, this.enableVirtualHuman && this.digitalId ? (index.h("pcm-virtual-chat-modal", { ref: el => this.virtualChatModalRef = el, isOpen: true, fullscreen: this.fullscreen, botId: "3022316191018907", digitalId: this.digitalId, openingIndex: this.openingIndex, conversationId: this.conversationId, defaultQuery: this.defaultQuery, waitingTime: this.waitingTime, playbackRate: this.playbackRate, showEndInterviewButton: this.showEndInterviewButton, customInputs: {
|
|
13835
|
+
} }))), index.h("button", { class: "submit-button", disabled: (!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始面试'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, this.enableVirtualHuman && this.digitalId ? (index.h("pcm-virtual-chat-modal", { ref: el => this.virtualChatModalRef = el, isOpen: true, fullscreen: this.fullscreen, botId: "3022316191018907", digitalId: this.digitalId, openingIndex: this.openingIndex, conversationId: this.conversationId, defaultQuery: this.defaultQuery, waitingTime: this.waitingTime, playbackRate: this.playbackRate, showEndInterviewButton: this.showEndInterviewButton, customInputs: {
|
|
11741
13836
|
...this.customInputs,
|
|
11742
13837
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
11743
13838
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
11744
13839
|
job_info: this.customInputs?.job_info || this.jobDescription,
|
|
11745
13840
|
question_number: this.customInputs?.question_number || 5,
|
|
11746
13841
|
ai_interview_type: this.digitalId
|
|
11747
|
-
} })) : (index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isShowHeader, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, botId: "3022316191018907", digitalId: this.digitalId, conversationId: this.conversationId, defaultQuery: this.defaultQuery, maxRecordingTime: this.maxRecordingTime, waitingTime: this.waitingTime, playbackRate: this.playbackRate, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, showEndInterviewButton: this.showEndInterviewButton, customInputs: {
|
|
13842
|
+
} })) : (index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isShowHeader, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, botId: "3022316191018907", digitalId: this.digitalId, conversationId: this.conversationId, defaultQuery: this.defaultQuery, maxRecordingTime: this.maxRecordingTime, waitingTime: this.waitingTime, playbackRate: this.playbackRate, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, showEndInterviewButton: this.showEndInterviewButton, customInputs: {
|
|
11748
13843
|
...this.customInputs,
|
|
11749
13844
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
11750
13845
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
@@ -11805,6 +13900,10 @@ const MsbgModal = class {
|
|
|
11805
13900
|
* 是否展示顶部标题栏
|
|
11806
13901
|
*/
|
|
11807
13902
|
isShowHeader = true;
|
|
13903
|
+
/**
|
|
13904
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
13905
|
+
*/
|
|
13906
|
+
showDisclaimer = true;
|
|
11808
13907
|
/**
|
|
11809
13908
|
* 是否展示右上角的关闭按钮
|
|
11810
13909
|
*/
|
|
@@ -12103,7 +14202,7 @@ const MsbgModal = class {
|
|
|
12103
14202
|
} }, conversation.status))))))))), !this.isLoadingConversations && (this.historyConversationPageIndex > 0 || this.hasMoreHistoryConversations) && (index.h("div", { class: "history-pagination" }, index.h("button", { type: "button", class: "history-pagination-button", disabled: this.historyConversationPageIndex === 0, onClick: () => this.handleHistoryConversationPageChange('prev') }, "\u4E0A\u4E00\u9875"), index.h("span", { class: "history-pagination-info" }, "\u7B2C ", this.historyConversationPageIndex + 1, " \u9875"), index.h("button", { type: "button", class: "history-pagination-button", disabled: !this.hasMoreHistoryConversations, onClick: () => this.handleHistoryConversationPageChange('next') }, "\u4E0B\u4E00\u9875")))))), !this.showChatModal && !this.conversationId && !hasFileAndJob && (index.h("div", { class: "input-container" }, !hideJdInput && (index.h("div", { class: "jd-input-section" }, index.h("label", { htmlFor: "job-description" }, "\u8BF7\u8F93\u5165\u804C\u4F4D\u63CF\u8FF0 (JD)"), index.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.jobDescription, onInput: this.handleJobDescriptionChange }))), !hideFileUpload && (index.h("div", { class: "resume-upload-section" }, index.h("label", null, "\u4E0A\u4F20\u9762\u8BD5\u5185\u5BB9"), index.h("div", { class: "upload-area", onClick: this.handleUploadClick }, this.selectedFile ? (index.h("div", { class: "file-item" }, index.h("div", { class: "file-item-content" }, index.h("span", { class: "file-icon" }, "\uD83D\uDCDD"), index.h("span", { class: "file-name" }, this.selectedFile.name)), index.h("button", { class: "remove-file", onClick: (e) => {
|
|
12104
14203
|
e.stopPropagation();
|
|
12105
14204
|
this.clearSelectedFile();
|
|
12106
|
-
} }, "\u00D7"))) : (index.h("div", { class: "upload-placeholder" }, index.h("img", { src: 'https://pub.pincaimao.com/static/web/images/home/i_upload.png' }), index.h("p", { class: 'upload-text' }, "\u70B9\u51FB\u4E0A\u4F20\u9762\u8BD5\u5185\u5BB9"), index.h("p", { class: "upload-hint" }, "\u652F\u6301 mp3\u3001markdown\u3001pdf\u3001docx\u3001doc\u3001md \u683C\u5F0F")))))), index.h("button", { class: "submit-button", disabled: (!hideFileUpload && !this.selectedFile) || (!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))), index.h("input", { type: "file", class: "file-input", onChange: this.handleFileChange }))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "3022316191018877", conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
14205
|
+
} }, "\u00D7"))) : (index.h("div", { class: "upload-placeholder" }, index.h("img", { src: 'https://pub.pincaimao.com/static/web/images/home/i_upload.png' }), index.h("p", { class: 'upload-text' }, "\u70B9\u51FB\u4E0A\u4F20\u9762\u8BD5\u5185\u5BB9"), index.h("p", { class: "upload-hint" }, "\u652F\u6301 mp3\u3001markdown\u3001pdf\u3001docx\u3001doc\u3001md \u683C\u5F0F")))))), index.h("button", { class: "submit-button", disabled: (!hideFileUpload && !this.selectedFile) || (!hideJdInput && !this.jobDescription.trim()) || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))), index.h("input", { type: "file", class: "file-input", onChange: this.handleFileChange }))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "3022316191018877", conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
12107
14206
|
...this.customInputs,
|
|
12108
14207
|
file_urls: this.customInputs?.file_urls || this.uploadedFileInfo?.cos_key,
|
|
12109
14208
|
file_names: this.customInputs?.file_names || this.uploadedFileInfo?.file_name,
|
|
@@ -12163,6 +14262,10 @@ const QgqjlModal = class {
|
|
|
12163
14262
|
* 是否展示顶部标题栏
|
|
12164
14263
|
*/
|
|
12165
14264
|
isShowHeader = true;
|
|
14265
|
+
/**
|
|
14266
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
14267
|
+
*/
|
|
14268
|
+
showDisclaimer = true;
|
|
12166
14269
|
/**
|
|
12167
14270
|
* 是否展示右上角的关闭按钮
|
|
12168
14271
|
*/
|
|
@@ -12625,14 +14728,14 @@ const QgqjlModal = class {
|
|
|
12625
14728
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
12626
14729
|
} }))), !hideJdInput && this.selectedOptimizationMode === 'targeted' && (index.h("div", { class: "jd-input-section" }, index.h("label", { htmlFor: "job-description" }, "\u8BF7\u8F93\u5165\u804C\u4F4D\u63CF\u8FF0 (JD)"), !!this.mobileJdInputAble && (index.h("components-mobile-input-btn", { name: "\u804C\u4F4D\u63CF\u8FF0", onOk: e => {
|
|
12627
14730
|
this.jobDescription = e.detail;
|
|
12628
|
-
} })), index.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.jobDescription, onInput: this.handleJobDescriptionChange }))))), index.h("button", { class: "submit-button", disabled: !this.isFormValid() || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), !hideSecondStep && !this.selectedOptimizationMode && (index.h("div", { class: "form-hint" }, "\u8BF7\u5148\u9009\u62E9\u4F18\u5316\u6A21\u5F0F\u548C\u8F93\u51FA\u65B9\u5F0F")), !hideSecondStep && this.selectedOptimizationMode && this.selectedOutputType === null && (index.h("div", { class: "form-hint" }, "\u8BF7\u9009\u62E9\u8F93\u51FA\u65B9\u5F0F")), isSelectionComplete && !hideResumeUpload && !this.uploadedFileInfo && (index.h("div", { class: "form-hint warning" }, "\u8BF7\u4E0A\u4F20\u7B80\u5386\u6587\u4EF6")), this.selectedOptimizationMode === 'targeted' && !hideJdInput && !this.jobDescription.trim() && isSelectionComplete && (index.h("div", { class: "form-hint warning" }, "\u9488\u5BF9\u6027\u4F18\u5316\u9700\u8981\u63D0\u4F9B\u804C\u4F4D\u63CF\u8FF0")), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && !this.showIframe && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, (this.getEffectiveOptimizationType() === 1 || this.getEffectiveOptimizationType() === 2) ? (index.h("components-thousand-resume-wrapper", { isOpen: true, token: this.token, conversationId: this.currentConversationId, botId: "45444431062634496", optimizationType: this.getEffectiveOptimizationType(), customInputs: {
|
|
14731
|
+
} })), index.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.jobDescription, onInput: this.handleJobDescriptionChange }))))), index.h("button", { class: "submit-button", disabled: !this.isFormValid() || this.isUploading || this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), !hideSecondStep && !this.selectedOptimizationMode && (index.h("div", { class: "form-hint" }, "\u8BF7\u5148\u9009\u62E9\u4F18\u5316\u6A21\u5F0F\u548C\u8F93\u51FA\u65B9\u5F0F")), !hideSecondStep && this.selectedOptimizationMode && this.selectedOutputType === null && (index.h("div", { class: "form-hint" }, "\u8BF7\u9009\u62E9\u8F93\u51FA\u65B9\u5F0F")), isSelectionComplete && !hideResumeUpload && !this.uploadedFileInfo && (index.h("div", { class: "form-hint warning" }, "\u8BF7\u4E0A\u4F20\u7B80\u5386\u6587\u4EF6")), this.selectedOptimizationMode === 'targeted' && !hideJdInput && !this.jobDescription.trim() && isSelectionComplete && (index.h("div", { class: "form-hint warning" }, "\u9488\u5BF9\u6027\u4F18\u5316\u9700\u8981\u63D0\u4F9B\u804C\u4F4D\u63CF\u8FF0")), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))))), isLoading && !this.showIframe && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, (this.getEffectiveOptimizationType() === 1 || this.getEffectiveOptimizationType() === 2) ? (index.h("components-thousand-resume-wrapper", { isOpen: true, token: this.token, conversationId: this.currentConversationId, botId: "45444431062634496", optimizationType: this.getEffectiveOptimizationType(), customInputs: {
|
|
12629
14732
|
...this.customInputs,
|
|
12630
14733
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
12631
14734
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
12632
14735
|
job_info: this.customInputs?.job_info || (this.selectedOptimizationMode === 'targeted' ? this.jobDescription : ''),
|
|
12633
14736
|
job_title: this.customInputs?.job_title || '',
|
|
12634
14737
|
optimization_type: this.getEffectiveOptimizationType(),
|
|
12635
|
-
}, defaultQuery: this.defaultQuery, modalTitle: this.modalTitle, icon: this.icon, fullscreen: this.fullscreen, zIndex: this.zIndex, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, onModalClosed: this.handleClose, onConversationStart: (e) => this.handleStreamComplete(e), onStreamComplete: (e) => this.handleStreamComplete(e), onInterviewComplete: (e) => this.handleStreamComplete(e) })) : (index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "45444431062634496", conversationId: this.currentConversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, closeResume: this.closeResumeChat, customInputs: {
|
|
14738
|
+
}, defaultQuery: this.defaultQuery, modalTitle: this.modalTitle, icon: this.icon, fullscreen: this.fullscreen, zIndex: this.zIndex, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, onModalClosed: this.handleClose, onConversationStart: (e) => this.handleStreamComplete(e), onStreamComplete: (e) => this.handleStreamComplete(e), onInterviewComplete: (e) => this.handleStreamComplete(e) })) : (index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, fullscreen: this.fullscreen, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "45444431062634496", conversationId: this.currentConversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, closeResume: this.closeResumeChat, customInputs: {
|
|
12636
14739
|
...this.customInputs,
|
|
12637
14740
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
12638
14741
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
@@ -15509,6 +17612,10 @@ const ZyghModal = class {
|
|
|
15509
17612
|
* 是否展示顶部标题栏
|
|
15510
17613
|
*/
|
|
15511
17614
|
isShowHeader = true;
|
|
17615
|
+
/**
|
|
17616
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
17617
|
+
*/
|
|
17618
|
+
showDisclaimer = true;
|
|
15512
17619
|
/**
|
|
15513
17620
|
* 是否展示右上角的关闭按钮
|
|
15514
17621
|
*/
|
|
@@ -15750,7 +17857,7 @@ const ZyghModal = class {
|
|
|
15750
17857
|
const result = e.detail ?? [];
|
|
15751
17858
|
this.uploadedFileInfo = result[0];
|
|
15752
17859
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
15753
|
-
} }))), index.h("button", { class: "submit-button", disabled: (!this.customInputs?.file_url && !this.customInputs?.resume_content && !this.uploadedFileInfo) || this.isUploading || this.isSubmitting, onClick: this.handleStartPlanning }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始规划'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "3022316191018898", fullscreen: this.fullscreen, conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
17860
|
+
} }))), index.h("button", { class: "submit-button", disabled: (!this.customInputs?.file_url && !this.customInputs?.resume_content && !this.uploadedFileInfo) || this.isUploading || this.isSubmitting, onClick: this.handleStartPlanning }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始规划'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "3022316191018898", fullscreen: this.fullscreen, conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
15754
17861
|
...this.customInputs,
|
|
15755
17862
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
15756
17863
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
@@ -15809,6 +17916,10 @@ const ZyghV2Modal = class {
|
|
|
15809
17916
|
* 是否展示顶部标题栏
|
|
15810
17917
|
*/
|
|
15811
17918
|
isShowHeader = true;
|
|
17919
|
+
/**
|
|
17920
|
+
* 是否显示 AI 生成内容提示及备案信息,默认显示。
|
|
17921
|
+
*/
|
|
17922
|
+
showDisclaimer = true;
|
|
15812
17923
|
/**
|
|
15813
17924
|
* 是否展示右上角的关闭按钮
|
|
15814
17925
|
*/
|
|
@@ -16069,7 +18180,7 @@ const ZyghV2Modal = class {
|
|
|
16069
18180
|
const result = e.detail ?? [];
|
|
16070
18181
|
this.uploadedFileInfo = result[0];
|
|
16071
18182
|
this.uploadSuccess.emit(this.uploadedFileInfo);
|
|
16072
|
-
} }))), index.h("button", { class: "submit-button", disabled: (!this.customInputs?.file_url && !this.customInputs?.resume_content && !this.uploadedFileInfo) || this.isUploading || this.isSubmitting, onClick: this.handleStartPlanning }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始规划'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "121182005294690304", fullscreen: this.fullscreen, conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
18183
|
+
} }))), index.h("button", { class: "submit-button", disabled: (!this.customInputs?.file_url && !this.customInputs?.resume_content && !this.uploadedFileInfo) || this.isUploading || this.isSubmitting, onClick: this.handleStartPlanning }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始规划'), this.showDisclaimer && (index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003")))))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { showDisclaimer: this.showDisclaimer, isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isNeedClose, showWorkspaceHistory: this.showWorkspaceHistory, showChatInput: this.showChatInput, botId: "121182005294690304", fullscreen: this.fullscreen, conversationId: this.conversationId, defaultQuery: this.defaultQuery, filePreviewMode: this.filePreviewMode, customInputs: {
|
|
16073
18184
|
...this.customInputs,
|
|
16074
18185
|
file_url: this.customInputs?.file_url || this.uploadedFileInfo?.cos_key,
|
|
16075
18186
|
file_name: this.customInputs?.file_name || this.uploadedFileInfo?.file_name,
|
|
@@ -16104,8 +18215,6 @@ exports.oem_zygh_modal = OemZyghModal;
|
|
|
16104
18215
|
exports.pcm_1zhanshi_mnms_modal = ZhanshiMnmsModal;
|
|
16105
18216
|
exports.pcm_app_chat_modal = ChatAPPModal;
|
|
16106
18217
|
exports.pcm_ats_mnms_modal = AtsMnmsModal;
|
|
16107
|
-
exports.pcm_button = PcmButton;
|
|
16108
|
-
exports.pcm_card = PcmCard;
|
|
16109
18218
|
exports.pcm_htws_modal = HtwsModal;
|
|
16110
18219
|
exports.pcm_hyzj_modal = HyzjModal;
|
|
16111
18220
|
exports.pcm_jd_modal = PcmJdModal;
|
|
@@ -16120,6 +18229,6 @@ exports.pcm_virtual_chat_modal = ChatVirtualAPPModal;
|
|
|
16120
18229
|
exports.pcm_zsk_chat_modal = ChatKBModal;
|
|
16121
18230
|
exports.pcm_zygh_modal = ZyghModal;
|
|
16122
18231
|
exports.pcm_zygh_v2_modal = ZyghV2Modal;
|
|
16123
|
-
//# sourceMappingURL=components-chat-message.components-confirm-modal.components-digital-human.components-drawer.components-export-records-modal.components-message.components-mobile-input-btn.components-mobile-upload-btn.components-position-selector.components-thousand-resume-wrapper.components-upload.components-voice-input-btn.oem-jlsx-modal.oem-zygh-modal.pcm-1zhanshi-mnms-modal.pcm-app-chat-modal.pcm-ats-mnms-modal.pcm-
|
|
18232
|
+
//# sourceMappingURL=components-chat-message.components-confirm-modal.components-digital-human.components-drawer.components-export-records-modal.components-message.components-mobile-input-btn.components-mobile-upload-btn.components-position-selector.components-thousand-resume-wrapper.components-upload.components-voice-input-btn.oem-jlsx-modal.oem-zygh-modal.pcm-1zhanshi-mnms-modal.pcm-app-chat-modal.pcm-ats-mnms-modal.pcm-htws-modal.pcm-hyzj-modal.pcm-jd-modal.pcm-jlpp-modal.pcm-jlzz-modal.pcm-mnct-modal.pcm-mnms-modal.pcm-mnms-zp-modal.pcm-msbg-modal.pcm-qgqjl-modal.pcm-virtual-chat-modal.pcm-zsk-chat-modal.pcm-zygh-modal.pcm-zygh-v2-modal.entry.cjs.js.map
|
|
16124
18233
|
|
|
16125
|
-
//# sourceMappingURL=components-chat-
|
|
18234
|
+
//# sourceMappingURL=components-chat-message_31.cjs.entry.js.map
|