pcm-agents 0.6.89 → 0.6.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components-position-selector.cjs.entry.js +1 -1
- package/dist/cjs/{index-CZyL9S8d.js → index-Cz6eaRL0.js} +3 -15
- package/dist/cjs/{index-CZyL9S8d.js.map → index-Cz6eaRL0.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/oem-htws-modal.cjs.entry.js +1 -1
- package/dist/cjs/oem-jd-modal.cjs.entry.js +2 -2
- package/dist/cjs/oem-jlpp-modal.cjs.entry.js +1 -1
- package/dist/cjs/oem-jlsx-modal.cjs.entry.js +2 -2
- package/dist/cjs/oem-jlzz-modal.cjs.entry.js +1 -1
- package/dist/cjs/oem-mnct-modal.cjs.entry.js +1 -1
- package/dist/cjs/oem-mnms-modal.cjs.entry.js +1 -1
- package/dist/cjs/oem-qgqjl-modal.cjs.entry.js +1 -1
- package/dist/cjs/oem-zygh-modal_30.cjs.entry.js +75 -87
- package/dist/cjs/oem-zygh-modal_30.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-hr-chat-modal.cjs.entry.js +2 -2
- package/dist/cjs/{sentry-reporter-B-J8S6xW.js → sentry-reporter-CWFdSEH-.js} +3 -3
- package/dist/cjs/{sentry-reporter-B-J8S6xW.js.map → sentry-reporter-CWFdSEH-.js.map} +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +4 -4
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js.map +1 -1
- package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js +4 -4
- 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 +4 -4
- 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 +2 -2
- package/dist/collection/components/pcm-jlzz-modal/pcm-jlzz-modal.js.map +1 -1
- package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +4 -4
- 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 +4 -4
- package/dist/collection/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js +27 -33
- package/dist/collection/components/pcm-mobile-input-btn/pcm-mobile-input-btn.js.map +1 -1
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js +30 -36
- package/dist/collection/components/pcm-mobile-upload-btn/pcm-mobile-upload-btn.js.map +1 -1
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js +4 -4
- package/dist/collection/components/pcm-qgqjl-modal/pcm-qgqjl-modal.js.map +1 -1
- package/dist/collection/components/pcm-upload/pcm-upload.js +4 -4
- package/dist/collection/components/pcm-upload/pcm-upload.js.map +1 -1
- package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +2 -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 +2 -2
- package/dist/collection/components/pcm-zygh-v2-modal/pcm-zygh-v2-modal.js.map +1 -1
- package/dist/components/components-position-selector.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/oem-htws-modal.js +6 -6
- package/dist/components/oem-jd-modal.js +4 -4
- package/dist/components/oem-jlpp-modal.js +8 -8
- package/dist/components/oem-jlsx-modal.js +6 -6
- package/dist/components/oem-jlzz-modal.js +6 -6
- package/dist/components/oem-mnct-modal.js +8 -8
- package/dist/components/oem-mnms-modal.js +9 -9
- package/dist/components/oem-qgqjl-modal.js +8 -8
- package/dist/components/oem-zygh-modal.js +6 -6
- package/dist/components/{p-cPVwk0o-.js → p-BCShzbh8.js} +3 -3
- package/dist/components/{p-cPVwk0o-.js.map → p-BCShzbh8.js.map} +1 -1
- package/dist/components/{p-DBSPLqZT.js → p-C493Ws5p.js} +5 -5
- package/dist/components/{p-DBSPLqZT.js.map → p-C493Ws5p.js.map} +1 -1
- package/dist/components/{p-CrpJUHjE.js → p-C6QhYWSG.js} +3 -3
- package/dist/components/{p-CrpJUHjE.js.map → p-C6QhYWSG.js.map} +1 -1
- package/dist/components/{p-BTxYWy8V.js → p-CEmSnhdM.js} +4 -15
- package/dist/components/p-CEmSnhdM.js.map +1 -0
- package/dist/components/{p-B6aQbi2P.js → p-CM5m8JgI.js} +3 -3
- package/dist/components/{p-B6aQbi2P.js.map → p-CM5m8JgI.js.map} +1 -1
- package/dist/components/{p-Bd3AEqHZ.js → p-CPXtLZbT.js} +29 -35
- package/dist/components/p-CPXtLZbT.js.map +1 -0
- package/dist/components/{p-PdnPvFPG.js → p-DjlBRFFc.js} +3 -3
- package/dist/components/{p-PdnPvFPG.js.map → p-DjlBRFFc.js.map} +1 -1
- package/dist/components/{p-ZP_xOWHP.js → p-Djp_1WAB.js} +32 -38
- package/dist/components/p-Djp_1WAB.js.map +1 -0
- package/dist/components/{p-9HeUh-9n.js → p-G5SeOfm0.js} +3 -3
- package/dist/components/{p-9HeUh-9n.js.map → p-G5SeOfm0.js.map} +1 -1
- package/dist/components/{p-BopFgIb0.js → p-SlgHCTsJ.js} +3 -3
- package/dist/components/{p-BopFgIb0.js.map → p-SlgHCTsJ.js.map} +1 -1
- package/dist/components/{p-MOREm0Jq.js → p-ogYnxueL.js} +7 -7
- package/dist/components/{p-MOREm0Jq.js.map → p-ogYnxueL.js.map} +1 -1
- package/dist/components/pcm-1zhanshi-mnms-modal.js +5 -5
- package/dist/components/pcm-app-chat-modal.js +1 -1
- package/dist/components/pcm-ats-mnms-modal.js +5 -5
- package/dist/components/pcm-card.js +1 -1
- package/dist/components/pcm-chat-message.js +1 -1
- package/dist/components/pcm-digital-human.js +1 -1
- package/dist/components/pcm-export-records-modal.js +1 -1
- package/dist/components/pcm-hr-chat-modal.js +2 -2
- package/dist/components/pcm-htws-modal.js +10 -10
- package/dist/components/pcm-htws-modal.js.map +1 -1
- package/dist/components/pcm-hyzj-modal.js +5 -5
- package/dist/components/pcm-jd-modal.js +5 -5
- package/dist/components/pcm-jlpp-modal.js +10 -10
- package/dist/components/pcm-jlpp-modal.js.map +1 -1
- package/dist/components/pcm-jlsx-modal.js +7 -7
- package/dist/components/pcm-jlzz-modal.js +7 -7
- package/dist/components/pcm-mnct-modal.js +7 -7
- package/dist/components/pcm-mnms-modal.js +10 -10
- package/dist/components/pcm-mnms-modal.js.map +1 -1
- package/dist/components/pcm-mnms-zp-modal.js +10 -10
- package/dist/components/pcm-mnms-zp-modal.js.map +1 -1
- package/dist/components/pcm-mobile-input-btn.js +1 -1
- package/dist/components/pcm-mobile-upload-btn.js +1 -1
- package/dist/components/pcm-msbg-modal.js +5 -5
- package/dist/components/pcm-qgqjl-modal.js +10 -10
- package/dist/components/pcm-upload.js +1 -1
- package/dist/components/pcm-virtual-chat-modal.js +1 -1
- package/dist/components/pcm-zsk-chat-modal.js +2 -2
- package/dist/components/pcm-zygh-modal.js +8 -8
- package/dist/components/pcm-zygh-modal.js.map +1 -1
- package/dist/components/pcm-zygh-v2-modal.js +8 -8
- package/dist/components/pcm-zygh-v2-modal.js.map +1 -1
- package/dist/esm/components-position-selector.entry.js +1 -1
- package/dist/esm/{index-BI1TjxH3.js → index-DWTOajFv.js} +4 -15
- package/dist/esm/{index-BI1TjxH3.js.map → index-DWTOajFv.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/oem-htws-modal.entry.js +1 -1
- package/dist/esm/oem-jd-modal.entry.js +2 -2
- package/dist/esm/oem-jlpp-modal.entry.js +1 -1
- package/dist/esm/oem-jlsx-modal.entry.js +2 -2
- package/dist/esm/oem-jlzz-modal.entry.js +1 -1
- package/dist/esm/oem-mnct-modal.entry.js +1 -1
- package/dist/esm/oem-mnms-modal.entry.js +1 -1
- package/dist/esm/oem-qgqjl-modal.entry.js +1 -1
- package/dist/esm/oem-zygh-modal_30.entry.js +75 -87
- package/dist/esm/oem-zygh-modal_30.entry.js.map +1 -1
- package/dist/esm/pcm-hr-chat-modal.entry.js +2 -2
- package/dist/esm/{sentry-reporter-ClLLAyYZ.js → sentry-reporter-CJFX-YIQ.js} +3 -3
- package/dist/esm/{sentry-reporter-ClLLAyYZ.js.map → sentry-reporter-CJFX-YIQ.js.map} +1 -1
- package/dist/pcm-agents/index.esm.js +1 -1
- package/dist/pcm-agents/{p-f74000ba.entry.js → p-15889fa0.entry.js} +2 -2
- package/dist/pcm-agents/{p-b8dcf5dd.entry.js → p-569855b0.entry.js} +2 -2
- package/dist/pcm-agents/{p-810fa8a7.entry.js → p-699e63f6.entry.js} +2 -2
- package/dist/pcm-agents/{p-48a3c25d.entry.js → p-93694758.entry.js} +3 -3
- package/dist/pcm-agents/p-93694758.entry.js.map +1 -0
- package/dist/pcm-agents/{p-cd73f4a1.entry.js → p-9de7bbc7.entry.js} +2 -2
- package/dist/pcm-agents/{p-6c62c5f6.entry.js → p-9fab66f9.entry.js} +2 -2
- package/dist/pcm-agents/{p-DAw8lemg.js → p-BG9yQ78r.js} +2 -2
- package/dist/pcm-agents/{p-DAw8lemg.js.map → p-BG9yQ78r.js.map} +1 -1
- package/dist/pcm-agents/{p-BDjYHG7L.js → p-CDVOzSgK.js} +2 -2
- package/dist/pcm-agents/{p-BDjYHG7L.js.map → p-CDVOzSgK.js.map} +1 -1
- package/dist/pcm-agents/{p-8f9bbfc9.entry.js → p-a739df44.entry.js} +2 -2
- package/dist/pcm-agents/{p-927e69fc.entry.js → p-b6227e5a.entry.js} +2 -2
- package/dist/pcm-agents/{p-5e2968a0.entry.js → p-b99dd036.entry.js} +2 -2
- package/dist/pcm-agents/{p-794d51c9.entry.js → p-dc0191fe.entry.js} +2 -2
- package/dist/pcm-agents/{p-499978a9.entry.js → p-f07ea376.entry.js} +2 -2
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/types/components/pcm-htws-modal/pcm-htws-modal.d.ts +2 -2
- package/dist/types/components/pcm-jlpp-modal/pcm-jlpp-modal.d.ts +2 -2
- package/dist/types/components/pcm-jlsx-modal/pcm-jlsx-modal.d.ts +2 -2
- package/dist/types/components/pcm-jlzz-modal/pcm-jlzz-modal.d.ts +1 -1
- package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +2 -2
- package/dist/types/components/pcm-mnms-zp-modal/pcm-mnms-zp-modal.d.ts +2 -2
- package/dist/types/components/pcm-qgqjl-modal/pcm-qgqjl-modal.d.ts +2 -2
- package/dist/types/components/pcm-upload/pcm-upload.d.ts +1 -1
- package/dist/types/components/pcm-zygh-modal/pcm-zygh-modal.d.ts +1 -1
- package/dist/types/components/pcm-zygh-v2-modal/pcm-zygh-v2-modal.d.ts +1 -1
- package/dist/types/components.d.ts +32 -32
- package/package.json +1 -1
- package/dist/components/p-BTxYWy8V.js.map +0 -1
- package/dist/components/p-Bd3AEqHZ.js.map +0 -1
- package/dist/components/p-ZP_xOWHP.js.map +0 -1
- package/dist/pcm-agents/p-48a3c25d.entry.js.map +0 -1
- /package/dist/pcm-agents/{p-f74000ba.entry.js.map → p-15889fa0.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-b8dcf5dd.entry.js.map → p-569855b0.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-810fa8a7.entry.js.map → p-699e63f6.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-cd73f4a1.entry.js.map → p-9de7bbc7.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-6c62c5f6.entry.js.map → p-9fab66f9.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-8f9bbfc9.entry.js.map → p-a739df44.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-927e69fc.entry.js.map → p-b6227e5a.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-5e2968a0.entry.js.map → p-b99dd036.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-794d51c9.entry.js.map → p-dc0191fe.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-499978a9.entry.js.map → p-f07ea376.entry.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
6
6
|
|
|
7
7
|
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}";
|
|
@@ -286,7 +286,7 @@ onChange('data', value => {
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
|
|
289
|
-
const version = "0.6.
|
|
289
|
+
const version = "0.6.90";
|
|
290
290
|
|
|
291
291
|
// 导入环境变量
|
|
292
292
|
function format(first, middle, last) {
|
|
@@ -812,17 +812,6 @@ const formatFileSize = (size) => {
|
|
|
812
812
|
}
|
|
813
813
|
return (size / 1024 / 1024).toFixed(1) + "MB";
|
|
814
814
|
};
|
|
815
|
-
/**
|
|
816
|
-
* 判断当前设备是PC还是移动端
|
|
817
|
-
* @returns {boolean} true表示是移动端,false表示是PC端
|
|
818
|
-
*/
|
|
819
|
-
const isMobile = () => {
|
|
820
|
-
let isMobileFlag = false;
|
|
821
|
-
if (!isMobileFlag) {
|
|
822
|
-
isMobileFlag = window.innerWidth < 768;
|
|
823
|
-
}
|
|
824
|
-
return isMobileFlag;
|
|
825
|
-
};
|
|
826
815
|
/**
|
|
827
816
|
* 检测浏览器支持的视频录制MIME类型
|
|
828
817
|
* @returns string 支持的MIME类型,如果没有找到则返回空字符串
|
|
@@ -1007,7 +996,6 @@ exports.getCosPreviewUrl = getCosPreviewUrl;
|
|
|
1007
996
|
exports.getOemPositions = getOemPositions;
|
|
1008
997
|
exports.getSupportedAudioMimeType = getSupportedAudioMimeType;
|
|
1009
998
|
exports.getSupportedMimeType = getSupportedMimeType;
|
|
1010
|
-
exports.isMobile = isMobile;
|
|
1011
999
|
exports.sendHttpRequest = sendHttpRequest;
|
|
1012
1000
|
exports.sendSSERequest = sendSSERequest;
|
|
1013
1001
|
exports.synthesizeAudio = synthesizeAudio;
|
|
@@ -1015,6 +1003,6 @@ exports.uploadFileByUrl = uploadFileByUrl;
|
|
|
1015
1003
|
exports.uploadFileToBackend = uploadFileToBackend;
|
|
1016
1004
|
exports.verifyApiKey = verifyApiKey;
|
|
1017
1005
|
exports.verifySmsCode = verifySmsCode;
|
|
1018
|
-
//# sourceMappingURL=index-
|
|
1006
|
+
//# sourceMappingURL=index-Cz6eaRL0.js.map
|
|
1019
1007
|
|
|
1020
|
-
//# sourceMappingURL=index-
|
|
1008
|
+
//# sourceMappingURL=index-Cz6eaRL0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CZyL9S8d.js","sources":["src/utils/env.ts","node_modules/.pnpm/@stencil+store@2.1.3_@stencil+core@4.31.0/node_modules/@stencil/store/dist/index.js","store/auth.store.ts","store/config.store.ts"],"sourcesContent":["// 默认 API 域名\r\nconst DEFAULT_API_DOMAIN = 'https://api.pincaimao.com/agents/platform';\r\nconst DEFAULT_PCM_DOMAIN = 'https://www.pincaimao.com';\r\n\r\n\r\n// 从环境变量获取 API 域名,如果未设置则使用默认值\r\nexport const API_DOMAIN = process.env.API_DOMAIN || DEFAULT_API_DOMAIN;\r\nexport const PCM_DOMAIN = process.env.PCM_DOMAIN || DEFAULT_PCM_DOMAIN;\r\n\r\n// 导出其他环境变量\r\nexport const ENV = {\r\n API_DOMAIN,\r\n PCM_DOMAIN,\r\n // 可以添加其他环境变量\r\n}; ","import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2_000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState ?? {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries(unwrap(defaultState) ?? {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","// src/store/auth.store.ts\r\nimport { createStore } from '@stencil/store';\r\n\r\nexport const { state: authState, onChange } = createStore({\r\n token: localStorage.getItem('pcm-sdk-auth-token') || null\r\n});\r\n\r\n// 添加一些辅助方法\r\nexport const authStore = {\r\n getToken: () => authState.token,\r\n setToken: (token: string) => {\r\n authState.token = token;\r\n localStorage.setItem('pcm-sdk-auth-token', token);\r\n },\r\n clearToken: () => {\r\n authState.token = null;\r\n localStorage.removeItem('pcm-sdk-auth-token');\r\n }\r\n};\r\n\r\n// 自动保存到localStorage\r\nonChange('token', value => {\r\n if (value) {\r\n localStorage.setItem('pcm-sdk-auth-token', value);\r\n } else {\r\n localStorage.removeItem('pcm-sdk-auth-token');\r\n }\r\n});","import { createStore } from '@stencil/store';\r\n\r\n// 定义配置数据的类型\r\nexport interface ConfigData {\r\n [key: string]: any;\r\n}\r\n\r\n// 从localStorage获取初始配置\r\nconst getInitialConfig = (): ConfigData => {\r\n try {\r\n const storedConfig = localStorage.getItem('pcm-sdk-config-data');\r\n return storedConfig ? JSON.parse(storedConfig) : {};\r\n } catch (error) {\r\n console.error('Error parsing stored config:', error);\r\n return {};\r\n }\r\n};\r\n\r\n// 创建配置存储\r\nexport const { state: configState, onChange } = createStore<{\r\n data: ConfigData;\r\n}>({\r\n data: getInitialConfig()\r\n});\r\n\r\n// 配置存储的辅助方法\r\nexport const configStore = {\r\n // 获取整个配置对象\r\n getConfig: (): ConfigData => configState.data,\r\n \r\n // 获取特定配置项\r\n getItem: <T>(key: string, defaultValue?: T): T => {\r\n return configState.data[key] !== undefined ? configState.data[key] : defaultValue;\r\n },\r\n \r\n // 设置特定配置项\r\n setItem: <T>(key: string, value: T): void => {\r\n configState.data = {\r\n ...configState.data,\r\n [key]: value\r\n };\r\n },\r\n \r\n // 移除特定配置项\r\n removeItem: (key: string): void => {\r\n const newConfig = { ...configState.data };\r\n delete newConfig[key];\r\n configState.data = newConfig;\r\n },\r\n \r\n // 清除所有配置\r\n clear: (): void => {\r\n configState.data = {};\r\n },\r\n \r\n // 批量更新配置\r\n updateConfig: (newConfig: Partial<ConfigData>): void => {\r\n configState.data = {\r\n ...configState.data,\r\n ...newConfig\r\n };\r\n }\r\n};\r\n\r\n// 自动保存到localStorage\r\nonChange('data', value => {\r\n try {\r\n if (Object.keys(value).length > 0) {\r\n localStorage.setItem('pcm-sdk-config-data', JSON.stringify(value));\r\n } else {\r\n localStorage.removeItem('pcm-sdk-config-data');\r\n }\r\n } catch (error) {\r\n console.error('Error saving config to localStorage:', error);\r\n }\r\n}); "],"names":["getRenderingRef","forceUpdate","onChange"],"mappings":";;;;AAAA;AAKA;AACO,MAAM,UAAU,GAAG,2CAA4C;AACzD,MAAA,UAAU,GAAG;;ACL1B,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC;AACnC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC;AAClC;AACA,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;AACzB;AACA,CAAC;AACD,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,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;","x_google_ignoreList":[1]}
|
|
1
|
+
{"version":3,"file":"index-Cz6eaRL0.js","sources":["src/utils/env.ts","node_modules/.pnpm/@stencil+store@2.1.3_@stencil+core@4.31.0/node_modules/@stencil/store/dist/index.js","store/auth.store.ts","store/config.store.ts"],"sourcesContent":["// 默认 API 域名\r\nconst DEFAULT_API_DOMAIN = 'https://api.pincaimao.com/agents/platform';\r\nconst DEFAULT_PCM_DOMAIN = 'https://www.pincaimao.com';\r\n\r\n\r\n// 从环境变量获取 API 域名,如果未设置则使用默认值\r\nexport const API_DOMAIN = process.env.API_DOMAIN || DEFAULT_API_DOMAIN;\r\nexport const PCM_DOMAIN = process.env.PCM_DOMAIN || DEFAULT_PCM_DOMAIN;\r\n\r\n// 导出其他环境变量\r\nexport const ENV = {\r\n API_DOMAIN,\r\n PCM_DOMAIN,\r\n // 可以添加其他环境变量\r\n}; ","import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2_000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState ?? {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries(unwrap(defaultState) ?? {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","// src/store/auth.store.ts\r\nimport { createStore } from '@stencil/store';\r\n\r\nexport const { state: authState, onChange } = createStore({\r\n token: localStorage.getItem('pcm-sdk-auth-token') || null\r\n});\r\n\r\n// 添加一些辅助方法\r\nexport const authStore = {\r\n getToken: () => authState.token,\r\n setToken: (token: string) => {\r\n authState.token = token;\r\n localStorage.setItem('pcm-sdk-auth-token', token);\r\n },\r\n clearToken: () => {\r\n authState.token = null;\r\n localStorage.removeItem('pcm-sdk-auth-token');\r\n }\r\n};\r\n\r\n// 自动保存到localStorage\r\nonChange('token', value => {\r\n if (value) {\r\n localStorage.setItem('pcm-sdk-auth-token', value);\r\n } else {\r\n localStorage.removeItem('pcm-sdk-auth-token');\r\n }\r\n});","import { createStore } from '@stencil/store';\r\n\r\n// 定义配置数据的类型\r\nexport interface ConfigData {\r\n [key: string]: any;\r\n}\r\n\r\n// 从localStorage获取初始配置\r\nconst getInitialConfig = (): ConfigData => {\r\n try {\r\n const storedConfig = localStorage.getItem('pcm-sdk-config-data');\r\n return storedConfig ? JSON.parse(storedConfig) : {};\r\n } catch (error) {\r\n console.error('Error parsing stored config:', error);\r\n return {};\r\n }\r\n};\r\n\r\n// 创建配置存储\r\nexport const { state: configState, onChange } = createStore<{\r\n data: ConfigData;\r\n}>({\r\n data: getInitialConfig()\r\n});\r\n\r\n// 配置存储的辅助方法\r\nexport const configStore = {\r\n // 获取整个配置对象\r\n getConfig: (): ConfigData => configState.data,\r\n \r\n // 获取特定配置项\r\n getItem: <T>(key: string, defaultValue?: T): T => {\r\n return configState.data[key] !== undefined ? configState.data[key] : defaultValue;\r\n },\r\n \r\n // 设置特定配置项\r\n setItem: <T>(key: string, value: T): void => {\r\n configState.data = {\r\n ...configState.data,\r\n [key]: value\r\n };\r\n },\r\n \r\n // 移除特定配置项\r\n removeItem: (key: string): void => {\r\n const newConfig = { ...configState.data };\r\n delete newConfig[key];\r\n configState.data = newConfig;\r\n },\r\n \r\n // 清除所有配置\r\n clear: (): void => {\r\n configState.data = {};\r\n },\r\n \r\n // 批量更新配置\r\n updateConfig: (newConfig: Partial<ConfigData>): void => {\r\n configState.data = {\r\n ...configState.data,\r\n ...newConfig\r\n };\r\n }\r\n};\r\n\r\n// 自动保存到localStorage\r\nonChange('data', value => {\r\n try {\r\n if (Object.keys(value).length > 0) {\r\n localStorage.setItem('pcm-sdk-config-data', JSON.stringify(value));\r\n } else {\r\n localStorage.removeItem('pcm-sdk-config-data');\r\n }\r\n } catch (error) {\r\n console.error('Error saving config to localStorage:', error);\r\n }\r\n}); "],"names":["getRenderingRef","forceUpdate","onChange"],"mappings":";;;;AAAA;AAKA;AACO,MAAM,UAAU,GAAG,2CAA4C;AACzD,MAAA,UAAU,GAAG;;ACL1B,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
6
6
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
6
|
-
var sentryReporter = require('./sentry-reporter-
|
|
6
|
+
var sentryReporter = require('./sentry-reporter-CWFdSEH-.js');
|
|
7
7
|
require('./exports-Dc-pQh4A.js');
|
|
8
8
|
|
|
9
9
|
const oemJdModalCss = ".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}.toggle-button:disabled{opacity:0.5;cursor:not-allowed}.structured-input{width:100%}.job-name-input{margin-bottom:20px}.job-name-input label{display:block;margin-bottom:8px;font-weight:500;color:#333}.job-name-input input{width:95%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;background-color:#f9f9f9}.job-name-input input:focus{outline:none;border-color:#2E6EDF;box-shadow:0 0 0 2px rgba(46, 110, 223, 0.2)}.required{color:#f56c6c}.button-container{display:flex;justify-content:center;margin-top:24px;gap:12px;max-width:100%;box-sizing:border-box;flex-wrap:wrap}.next-button{background-color:#2E6EDF;color:white}.next-button:hover{background-color:#2457b8}.next-button:disabled{background-color:#a0c0e8;cursor:not-allowed}.prev-button{background-color:#f0f0f0 !important;color:#333 !important}.prev-button:hover{background-color:#e0e0e0}.tag-selection{width:100%}.tag-selection-content{width:100%}.section-title{font-weight:600;color:#333;margin-bottom:12px;font-size:16px}.ai-tags-section,.basic-tags-section{margin-bottom:24px}.tag-group{margin-bottom:16px}.tag-title{color:#555;margin-bottom:8px;font-weight:500}.tag-container{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;box-sizing:border-box}.tag{display:inline-flex;align-items:center;padding:6px 12px;border-radius:4px;background-color:#f5f5f5;border:1px solid #e0e0e0;color:#333;font-size:13px;cursor:pointer;transition:all 0.2s;max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tag:hover{background-color:#e8e8e8}.tag-selected{background-color:#e6f0ff;border-color:#2E6EDF;color:#2E6EDF}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 0;background-color:#f9f9f9;border-radius:8px;margin:20px 0;max-width:100%;box-sizing:border-box}.loading-spinner{width:40px;height:40px;border:3px solid rgba(46, 110, 223, 0.2);border-radius:50%;border-top-color:#2E6EDF;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{to{transform:rotate(360deg)}}.loading-text{text-align:center;color:#333;font-weight:500}.loading-subtext{color:#888;font-size:14px;margin-top: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)}.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}@media (max-width: 768px){.tag-container{gap:7px}.tag{padding:4px 8px;font-size:12px}}@media (max-width: 480px){.button-container{flex-direction:column;align-items:center}.next-button,.prev-button,.submit-button{width:100%;margin-bottom:8px}.tag{max-width:calc(50% - 8px)}}.tag-selection,.tag-selection-content,.ai-tags-section,.basic-tags-section,.structured-input,.free-input{max-width:100%;box-sizing:border-box}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
6
6
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var messageUtils = require('./message-utils-CBcfjLxY.js');
|
|
6
6
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
7
7
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
8
|
-
var sentryReporter = require('./sentry-reporter-
|
|
8
|
+
var sentryReporter = require('./sentry-reporter-CWFdSEH-.js');
|
|
9
9
|
require('./exports-Dc-pQh4A.js');
|
|
10
10
|
|
|
11
11
|
const globalCss = ".modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;z-index:1000;overflow-y:auto}.fullscreen-overlay{padding:0;background-color:rgba(0, 0, 0, 0.7);position:absolute;width:100%;height:auto}.modal-container{background-color:#fff;border-radius:8px;width:100%;display:flex;flex-direction:column;position:relative;margin: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}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
6
6
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
6
6
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
6
6
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
6
6
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-Cz6eaRL0.js');
|
|
5
5
|
var errorEvent = require('./error-event-J_ZWIqWF.js');
|
|
6
6
|
var message_service = require('./message.service-DGUsA-FY.js');
|
|
7
7
|
var messageUtils = require('./message-utils-CBcfjLxY.js');
|
|
8
|
-
var sentryReporter = require('./sentry-reporter-
|
|
8
|
+
var sentryReporter = require('./sentry-reporter-CWFdSEH-.js');
|
|
9
9
|
require('./exports-Dc-pQh4A.js');
|
|
10
10
|
|
|
11
11
|
const globalCss$i = ".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: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}";
|
|
@@ -5641,11 +5641,11 @@ const HtwsModal = class {
|
|
|
5641
5641
|
*/
|
|
5642
5642
|
showInputHistory = false;
|
|
5643
5643
|
/**
|
|
5644
|
-
*
|
|
5644
|
+
* 是否开启移动端上传简历
|
|
5645
5645
|
*/
|
|
5646
5646
|
mobileUploadAble = false;
|
|
5647
5647
|
/**
|
|
5648
|
-
*
|
|
5648
|
+
* 是否开启移动端输入合同内容
|
|
5649
5649
|
*/
|
|
5650
5650
|
mobileInputAble = false;
|
|
5651
5651
|
/**
|
|
@@ -7057,11 +7057,11 @@ const JlppModal = class {
|
|
|
7057
7057
|
*/
|
|
7058
7058
|
showInputHistory = false;
|
|
7059
7059
|
/**
|
|
7060
|
-
*
|
|
7060
|
+
* 是否开启移动端上传简历
|
|
7061
7061
|
*/
|
|
7062
7062
|
mobileUploadAble = false;
|
|
7063
7063
|
/**
|
|
7064
|
-
*
|
|
7064
|
+
* 是否开启移动端输入职位描述
|
|
7065
7065
|
*/
|
|
7066
7066
|
mobileJdInputAble = false;
|
|
7067
7067
|
/**
|
|
@@ -7330,11 +7330,11 @@ const JlsxModal = class {
|
|
|
7330
7330
|
*/
|
|
7331
7331
|
customInputs = {};
|
|
7332
7332
|
/**
|
|
7333
|
-
*
|
|
7333
|
+
* 是否开启移动端上传简历
|
|
7334
7334
|
*/
|
|
7335
7335
|
mobileUploadAble = false;
|
|
7336
7336
|
/**
|
|
7337
|
-
* 是否开启移动端输入JD
|
|
7337
|
+
* 是否开启移动端输入JD
|
|
7338
7338
|
*/
|
|
7339
7339
|
mobileJdInputAble = false;
|
|
7340
7340
|
/**
|
|
@@ -8508,7 +8508,7 @@ const JlzzModal = class {
|
|
|
8508
8508
|
*/
|
|
8509
8509
|
filePreviewMode = 'window';
|
|
8510
8510
|
/**
|
|
8511
|
-
*
|
|
8511
|
+
* 是否开启移动端上传简历
|
|
8512
8512
|
*/
|
|
8513
8513
|
mobileUploadAble = false;
|
|
8514
8514
|
/**
|
|
@@ -9492,11 +9492,11 @@ const MnmsModal = class {
|
|
|
9492
9492
|
*/
|
|
9493
9493
|
showWorkspaceHistory = false;
|
|
9494
9494
|
/**
|
|
9495
|
-
* 是否开启移动端上传JD
|
|
9495
|
+
* 是否开启移动端上传JD
|
|
9496
9496
|
*/
|
|
9497
9497
|
mobileJdInputAble = false;
|
|
9498
9498
|
/**
|
|
9499
|
-
*
|
|
9499
|
+
* 是否开启移动端上传简历
|
|
9500
9500
|
*/
|
|
9501
9501
|
mobileUploadAble = false;
|
|
9502
9502
|
/**
|
|
@@ -9801,11 +9801,11 @@ const MnmsZpModal = class {
|
|
|
9801
9801
|
*/
|
|
9802
9802
|
showWorkspaceHistory = false;
|
|
9803
9803
|
/**
|
|
9804
|
-
* 是否开启移动端上传JD
|
|
9804
|
+
* 是否开启移动端上传JD
|
|
9805
9805
|
*/
|
|
9806
9806
|
mobileJdInputAble = false;
|
|
9807
9807
|
/**
|
|
9808
|
-
*
|
|
9808
|
+
* 是否开启移动端上传简历
|
|
9809
9809
|
*/
|
|
9810
9810
|
mobileUploadAble = false;
|
|
9811
9811
|
/**
|
|
@@ -12478,38 +12478,32 @@ const MobileUploadBtn$1 = class MobileUploadBtn {
|
|
|
12478
12478
|
this.open = false;
|
|
12479
12479
|
};
|
|
12480
12480
|
render() {
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
}
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
return;
|
|
12508
|
-
}
|
|
12509
|
-
this.ok.emit(this.value);
|
|
12510
|
-
this.cancelMobileUpload();
|
|
12511
|
-
} }, "\u5B8C\u6210"))))));
|
|
12512
|
-
}
|
|
12481
|
+
return (index.h("div", { key: '1d0e493809a6b469a2d5b70b90d4ce2c17dfdd9e' }, index.h("div", { key: 'f2e60b07bc7969f52fa208411d881c329de3cf39', class: "mobile-upload" }, index.h("div", { key: 'c7c9e792a716673e16d89e8d48091011576113ae', class: "btn btn-link", onClick: () => {
|
|
12482
|
+
this.open = true;
|
|
12483
|
+
this.handleStartMobileUpload();
|
|
12484
|
+
} }, "\u626B\u7801\u586B\u5199")), this.open && index.h("div", { key: '4dc0fde012ed39d4a21f3ccde2aac8ebfcc80769', class: "mask" }, index.h("div", { key: '031e6a0bdf58cbf716dabdd8cff56fb094dcd964', class: "upload-wrapper" }, this.setStartMobileUpload ? index.h("div", { class: "upload-box" }, index.h("div", { class: "qrcode-wrapper" }, this.qrcodeStatus === 'active' && index.h("img", { class: "qrcode", src: this.qrcodeUrl }), this.qrcodeStatus === 'loading' && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D..."), this.qrcodeStatus === 'expired' && index.h("div", { class: "btn btn-link", onClick: this.handleStartMobileUpload }, "\u91CD\u65B0\u83B7\u53D6")), index.h("div", { class: "time-expire" }, "\u4E8C\u7EF4\u7801\u6709\u6548\u671F\u81F3 ", this.expireTime), index.h("div", { class: "alert-tip" }, "\u586B\u5199\u8FC7\u7A0B\u4E2D\u8BF7\u4E0D\u8981\u5173\u95ED\u6B64\u5F39\u7A97"), this.qrcodeStatus === 'active' && index.h("div", { style: { marginTop: '12px', fontSize: '12px' }, class: "btn btn-link", onClick: () => {
|
|
12485
|
+
navigator.clipboard
|
|
12486
|
+
.writeText(this.mobileUrl)
|
|
12487
|
+
.then(() => {
|
|
12488
|
+
message_service.Message.success("已复制到剪贴板");
|
|
12489
|
+
})
|
|
12490
|
+
.catch(() => {
|
|
12491
|
+
message_service.Message.error("复制失败");
|
|
12492
|
+
});
|
|
12493
|
+
} }, "\u590D\u5236\u4E8C\u7EF4\u7801\u5730\u5740")) : (this.startMobileUploadLoading && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D...")), index.h("div", { key: 'ce58ec0085f2d634035e85056104f049313d03db', style: { marginTop: '12px' } }, !!this.value?.length && index.h("textarea", { key: '9a8c7dff6a115c46023f36123772084b5d209060', readOnly: true, class: "qrcode-textarea", value: this.value, onChange: (e) => {
|
|
12494
|
+
this.value = e.target.value;
|
|
12495
|
+
} })), index.h("div", { key: 'c3e2dbca17a248e436228eb32acd7bf94e7709cf', class: "modal-footer" }, index.h("div", { key: 'cdccb55de57f2388fccde8933902f250e9531d2d', class: "btn btn-default", onClick: this.cancelMobileUpload }, "\u53D6\u6D88"), index.h("div", { key: 'bbe0d695f1181bf99007e35e1e947d8b316590b1', class: "btn btn-primary", onClick: () => {
|
|
12496
|
+
if (!this.value) {
|
|
12497
|
+
message_service.Message.info(`请输入内容`);
|
|
12498
|
+
return;
|
|
12499
|
+
}
|
|
12500
|
+
if (this.value.length > this.maxLength) {
|
|
12501
|
+
message_service.Message.info(`输入内容不能超过${this.maxLength}个字符`);
|
|
12502
|
+
return;
|
|
12503
|
+
}
|
|
12504
|
+
this.ok.emit(this.value);
|
|
12505
|
+
this.cancelMobileUpload();
|
|
12506
|
+
} }, "\u5B8C\u6210"))))));
|
|
12513
12507
|
}
|
|
12514
12508
|
};
|
|
12515
12509
|
MobileUploadBtn$1.style = pcmMobileInputBtnCss + (globalCss$6 + hostCss$8);
|
|
@@ -12685,41 +12679,35 @@ const MobileUploadBtn = class {
|
|
|
12685
12679
|
}
|
|
12686
12680
|
};
|
|
12687
12681
|
render() {
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
}
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
return;
|
|
12718
|
-
}
|
|
12719
|
-
this.ok.emit(this.value);
|
|
12720
|
-
this.cancelMobileUpload();
|
|
12721
|
-
} }, "\u5B8C\u6210"))))));
|
|
12722
|
-
}
|
|
12682
|
+
return (index.h("div", { key: 'cb8d9253ff1218725c18450243c14986d097d9c6' }, index.h("div", { key: '7fe15ba78dc87481be6b0402849c99f63ca5c098', class: "mobile-upload" }, index.h("div", { key: 'f6b849e45a337bb1627dfe6f46860ba8844d8eb0', class: "btn btn-link", onClick: () => {
|
|
12683
|
+
if (this.maxFileCount < 1) {
|
|
12684
|
+
message_service.Message.info('文件数量已达到上限!');
|
|
12685
|
+
return;
|
|
12686
|
+
}
|
|
12687
|
+
this.open = true;
|
|
12688
|
+
this.handleStartMobileUpload();
|
|
12689
|
+
} }, "\u626B\u7801\u4E0A\u4F20")), this.open && index.h("div", { key: 'fe14054b810bf8a888ba92d9c6ea1a6867461180', class: "mask" }, index.h("div", { key: 'ed572a0cc1730a9b666a0f394ce0ea5187f29bc1', class: "upload-wrapper" }, this.setStartMobileUpload ? index.h("div", { class: "upload-box" }, index.h("div", { class: "qrcode-wrapper" }, this.qrcodeStatus === 'active' && index.h("img", { class: "qrcode", src: this.qrcodeUrl }), this.qrcodeStatus === 'loading' && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D..."), this.qrcodeStatus === 'expired' && index.h("div", { class: "btn btn-link", onClick: this.handleStartMobileUpload }, "\u91CD\u65B0\u83B7\u53D6")), index.h("div", { class: "time-expire" }, "\u4E8C\u7EF4\u7801\u6709\u6548\u671F\u81F3 ", this.expireTime), index.h("div", { class: "alert-tip" }, "\u4E0A\u4F20\u8FC7\u7A0B\u4E2D\u8BF7\u4E0D\u8981\u5173\u95ED\u6B64\u5F39\u7A97"), this.qrcodeStatus === 'active' && index.h("div", { style: { marginTop: '12px', fontSize: '12px' }, class: "btn btn-link", onClick: () => {
|
|
12690
|
+
navigator.clipboard
|
|
12691
|
+
.writeText(this.mobileUrl)
|
|
12692
|
+
.then(() => {
|
|
12693
|
+
message_service.Message.success("已复制到剪贴板");
|
|
12694
|
+
})
|
|
12695
|
+
.catch(() => {
|
|
12696
|
+
message_service.Message.error("复制失败");
|
|
12697
|
+
});
|
|
12698
|
+
} }, "\u590D\u5236\u4E8C\u7EF4\u7801\u5730\u5740")) : (this.startMobileUploadLoading && index.h("span", { class: "loading" }, "\u52A0\u8F7D\u4E2D...")), index.h("div", { key: '664fe8d0812dbdba61ecf71f89ff886338776130', style: { marginTop: '12px' } }, this.value?.map?.((item, index$1) => {
|
|
12699
|
+
return index.h("div", { class: "file-item", key: index$1 }, index.h("div", { class: "file-item-content" }, index.h("span", { class: "file-icon" }, "\uD83D\uDCDD"), index.h("span", { class: "file-name" }, item?.file_name)), index.h("button", { class: "remove-file", onClick: (e) => {
|
|
12700
|
+
e.stopPropagation();
|
|
12701
|
+
this.handleDelete(item.cos_key);
|
|
12702
|
+
} }, "\u00D7"));
|
|
12703
|
+
})), index.h("div", { key: '72c0d0c0170a90844f2b14f22a6af756f4d73bbd', class: "modal-footer" }, index.h("div", { key: 'cbb2469909d54fc03769fe052607fa864d76326e', class: "btn btn-default", onClick: this.cancelMobileUpload }, "\u53D6\u6D88"), index.h("div", { key: 'b488838d686cc20de712866cc219195862409c1c', class: "btn btn-primary", onClick: () => {
|
|
12704
|
+
if (this.value.length > this.maxFileCount) {
|
|
12705
|
+
message_service.Message.info(`最多只能选择${this.maxFileCount}个文件,请删除多余文件!`);
|
|
12706
|
+
return;
|
|
12707
|
+
}
|
|
12708
|
+
this.ok.emit(this.value);
|
|
12709
|
+
this.cancelMobileUpload();
|
|
12710
|
+
} }, "\u5B8C\u6210"))))));
|
|
12723
12711
|
}
|
|
12724
12712
|
};
|
|
12725
12713
|
MobileUploadBtn.style = pcmMobileUploadBtnCss + (globalCss$5 + hostCss$7);
|
|
@@ -13166,11 +13154,11 @@ const QgqjlModal = class {
|
|
|
13166
13154
|
*/
|
|
13167
13155
|
showInputHistory = false;
|
|
13168
13156
|
/**
|
|
13169
|
-
*
|
|
13157
|
+
* 是否开启移动端上传简历
|
|
13170
13158
|
*/
|
|
13171
13159
|
mobileUploadAble = false;
|
|
13172
13160
|
/**
|
|
13173
|
-
* 是否开启移动端输入JD
|
|
13161
|
+
* 是否开启移动端输入JD
|
|
13174
13162
|
*/
|
|
13175
13163
|
mobileJdInputAble = false;
|
|
13176
13164
|
/**
|
|
@@ -13492,7 +13480,7 @@ const PcmUpload = class {
|
|
|
13492
13480
|
*/
|
|
13493
13481
|
multiple = false;
|
|
13494
13482
|
/**
|
|
13495
|
-
*
|
|
13483
|
+
* 是否开启移动端上传
|
|
13496
13484
|
*/
|
|
13497
13485
|
mobileUploadAble = false;
|
|
13498
13486
|
/**
|
|
@@ -13725,13 +13713,13 @@ const PcmUpload = class {
|
|
|
13725
13713
|
} }), index.h("div", { class: "upload-placeholder", onClick: this.handleUploadClick }, index.h("img", { src: 'https://pub.pincaimao.com/static/web/images/home/i_upload.png' }), index.h("p", { class: 'upload-text' }, this.uploadText), !!this.acceptFileSuffixList?.length && index.h("p", { class: "upload-hint" }, "\u652F\u6301 ", this.acceptFileSuffixList.join('、'), " \u683C\u5F0F\u3002"), !!this.maxFileSize && this.maxFileSize !== Infinity && index.h("p", { class: "upload-hint" }, "\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ", index$1.formatFileSize(this.maxFileSize) ?? '', "\u3002"), !!this.maxFileCount && this.maxFileCount !== Infinity && index.h("p", { class: "upload-hint" }, "\u6700\u591A\u4E0A\u4F20 ", this.maxFileCount, " \u4E2A\u6587\u4EF6\u3002")));
|
|
13726
13714
|
}
|
|
13727
13715
|
render() {
|
|
13728
|
-
return (index.h("div", { key: '
|
|
13716
|
+
return (index.h("div", { key: '6eedc230ae5e603f602c27f601657a69b654ef87' }, index.h("div", { key: '1f2ccc0a633bc396aafc7d664c5d6e97049bb335', class: "resume-upload-section" }, index.h("div", { key: '77f97bd6210e908310ff9c0e4cd87f570a48171d', class: "upload-area" }, index.h("div", { key: 'c78748f07061260314201d5590a94baba90caa77' }, this.selectedFiles?.map?.((item, index$2) => {
|
|
13729
13717
|
return 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", style: item.state === index$1.FileUploadState.Failed ? { color: 'red', textDecoration: 'line-through' } : undefined }, item?.file_name), item.state === index$1.FileUploadState.Failed && index.h("span", { style: { color: 'red', marginLeft: '4px' } }, "(", item.error?.message ?? '上传失败', ")")), !this.disabled && index.h("button", { class: "remove-file", onClick: (e) => {
|
|
13730
13718
|
e.stopPropagation();
|
|
13731
13719
|
this.selectedFiles = this.selectedFiles?.filter((_, itemIndex) => index$2 !== itemIndex);
|
|
13732
13720
|
this.emitUploadChange();
|
|
13733
13721
|
} }, "\u00D7"));
|
|
13734
|
-
}))), !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: '
|
|
13722
|
+
}))), !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: '4ab52c3734b60c1767ca15de818487a6ef3d3ddb', type: "file", class: "file-input", multiple: this.multiple, onChange: this.handleFileChange })));
|
|
13735
13723
|
}
|
|
13736
13724
|
};
|
|
13737
13725
|
PcmUpload.style = pcmUploadCss + (globalCss$2 + hostCss$4);
|
|
@@ -16516,7 +16504,7 @@ const ZyghModal = class {
|
|
|
16516
16504
|
*/
|
|
16517
16505
|
showInputHistory = false;
|
|
16518
16506
|
/**
|
|
16519
|
-
*
|
|
16507
|
+
* 是否开启移动端上传简历
|
|
16520
16508
|
*/
|
|
16521
16509
|
mobileUploadAble = false;
|
|
16522
16510
|
/**
|
|
@@ -16811,7 +16799,7 @@ const ZyghV2Modal = class {
|
|
|
16811
16799
|
*/
|
|
16812
16800
|
showInputHistory = false;
|
|
16813
16801
|
/**
|
|
16814
|
-
*
|
|
16802
|
+
* 是否开启移动端上传简历
|
|
16815
16803
|
*/
|
|
16816
16804
|
mobileUploadAble = false;
|
|
16817
16805
|
/**
|