pcm-agents 0.5.4 → 0.5.6
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/{config.store-CKEkFvrj.js → config.store-C6fAjJL3.js} +3 -3
- package/dist/cjs/{config.store-CKEkFvrj.js.map → config.store-C6fAjJL3.js.map} +1 -1
- package/dist/cjs/{index-mS6rAdT-.js → index-BODkSu9P.js} +47 -5
- package/dist/cjs/index-BODkSu9P.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pcm-1zhanshi-mnms-modal_17.cjs.entry.js +6 -21
- package/dist/cjs/pcm-1zhanshi-mnms-modal_17.cjs.entry.js.map +1 -1
- package/dist/cjs/pcm-agents.cjs.js +1 -1
- package/dist/cjs/pcm-mnms-video-modal.cjs.entry.js +2 -2
- package/dist/cjs/pcm-mnms-zp-modal.cjs.entry.js +2 -2
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +2 -0
- package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +7 -25
- package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js.map +1 -1
- package/dist/collection/utils/utils.js +51 -3
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +45 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/pcm-hr-chat-modal.js +2 -0
- package/dist/components/pcm-hr-chat-modal.js.map +1 -1
- package/dist/components/pcm-htws-modal.js +3 -20
- package/dist/components/pcm-htws-modal.js.map +1 -1
- package/dist/esm/{config.store-DxgEmx8e.js → config.store-BEttWWeK.js} +3 -3
- package/dist/esm/{config.store-DxgEmx8e.js.map → config.store-BEttWWeK.js.map} +1 -1
- package/dist/esm/{index-C70tZyK5.js → index-BFH_wziP.js} +47 -5
- package/dist/esm/index-BFH_wziP.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pcm-1zhanshi-mnms-modal_17.entry.js +6 -21
- package/dist/esm/pcm-1zhanshi-mnms-modal_17.entry.js.map +1 -1
- package/dist/esm/pcm-agents.js +1 -1
- package/dist/esm/pcm-mnms-video-modal.entry.js +2 -2
- package/dist/esm/pcm-mnms-zp-modal.entry.js +2 -2
- package/dist/pcm-agents/index.esm.js +1 -1
- package/dist/pcm-agents/{p-ba6f589c.entry.js → p-02159a7b.entry.js} +2 -2
- package/dist/pcm-agents/{p-c38c4e71.entry.js → p-28b858bf.entry.js} +2 -2
- package/dist/pcm-agents/{p-23acdf3a.entry.js → p-973ef53a.entry.js} +2 -2
- package/dist/pcm-agents/{p-23acdf3a.entry.js.map → p-973ef53a.entry.js.map} +1 -1
- package/dist/pcm-agents/{p-D5LurcVu.js → p-D6TJgNmp.js} +2 -2
- package/dist/pcm-agents/{p-D5LurcVu.js.map → p-D6TJgNmp.js.map} +1 -1
- package/dist/pcm-agents/p-Mo0LaggD.js +2 -0
- package/dist/pcm-agents/p-Mo0LaggD.js.map +1 -0
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/dist/types/components/pcm-htws-modal/pcm-htws-modal.d.ts +1 -2
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/dist/cjs/index-mS6rAdT-.js.map +0 -1
- package/dist/esm/index-C70tZyK5.js.map +0 -1
- package/dist/pcm-agents/p-CvwVC5Ba.js +0 -2
- package/dist/pcm-agents/p-CvwVC5Ba.js.map +0 -1
- /package/dist/pcm-agents/{p-ba6f589c.entry.js.map → p-02159a7b.entry.js.map} +0 -0
- /package/dist/pcm-agents/{p-c38c4e71.entry.js.map → p-28b858bf.entry.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BODkSu9P.js');
|
|
4
4
|
|
|
5
5
|
class ErrorEventBus {
|
|
6
6
|
/**
|
|
@@ -94,6 +94,6 @@ onChange('data', value => {
|
|
|
94
94
|
|
|
95
95
|
exports.ErrorEventBus = ErrorEventBus;
|
|
96
96
|
exports.configStore = configStore;
|
|
97
|
-
//# sourceMappingURL=config.store-
|
|
97
|
+
//# sourceMappingURL=config.store-C6fAjJL3.js.map
|
|
98
98
|
|
|
99
|
-
//# sourceMappingURL=config.store-
|
|
99
|
+
//# sourceMappingURL=config.store-C6fAjJL3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.store-
|
|
1
|
+
{"version":3,"file":"config.store-C6fAjJL3.js","sources":["src/utils/error-event.ts","store/config.store.ts"],"sourcesContent":["export interface ErrorEventDetail {\r\n source: string;\r\n error: any;\r\n message: string;\r\n type: 'api' | 'ui' | 'network' | 'other';\r\n}\r\n\r\nexport class ErrorEventBus {\r\n /**\r\n * 触发错误事件\r\n */\r\n static emitError(detail: ErrorEventDetail): void {\r\n const event = new CustomEvent('pcm-error', {\r\n bubbles: true,\r\n composed: true,\r\n detail\r\n });\r\n document.dispatchEvent(event);\r\n }\r\n\r\n /**\r\n * 添加错误事件监听器\r\n */\r\n static addErrorListener(callback: (detail: ErrorEventDetail) => void): () => void {\r\n const handler = (event: CustomEvent<ErrorEventDetail>) => {\r\n callback(event.detail);\r\n };\r\n \r\n document.addEventListener('pcm-error', handler as EventListener);\r\n \r\n // 返回移除监听器的函数\r\n return () => {\r\n document.removeEventListener('pcm-error', handler as EventListener);\r\n };\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":["createStore"],"mappings":";;;;MAOa,aAAa,CAAA;AACxB;;AAEG;IACH,OAAO,SAAS,CAAC,MAAwB,EAAA;AACvC,QAAA,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,WAAW,EAAE;AACzC,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,QAAQ,EAAE,IAAI;YACd;AACD,SAAA,CAAC;AACF,QAAA,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;;AAG/B;;AAEG;IACH,OAAO,gBAAgB,CAAC,QAA4C,EAAA;AAClE,QAAA,MAAM,OAAO,GAAG,CAAC,KAAoC,KAAI;AACvD,YAAA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,QAAA,WAAW,CAAC,IAAI,GAAG,SAAS;KAC7B;;IAGD,KAAK,EAAE,MAAW;AAChB,QAAA,WAAW,CAAC,IAAI,GAAG,EAAE;KACtB;;AAGD,IAAA,YAAY,EAAE,CAAC,SAA8B,KAAU;QACrD,WAAW,CAAC,IAAI,GAAG;YACjB,GAAG,WAAW,CAAC,IAAI;AACnB,YAAA,GAAG;SACJ;;;AAIL;AACA,QAAQ,CAAC,MAAM,EAAE,KAAK,IAAG;AACvB,IAAA,IAAI;QACF,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;AACjC,YAAA,YAAY,CAAC,OAAO,CAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;;aAC7D;AACL,YAAA,YAAY,CAAC,UAAU,CAAC,qBAAqB,CAAC;;;IAEhD,OAAO,KAAK,EAAE;AACd,QAAA,OAAO,CAAC,KAAK,CAAC,sCAAsC,EAAE,KAAK,CAAC;;AAEhE,CAAC,CAAC;;;;;"}
|
|
@@ -233,6 +233,36 @@ function format(first, middle, last) {
|
|
|
233
233
|
const getEffectiveToken = () => {
|
|
234
234
|
return authStore.getToken() || '';
|
|
235
235
|
};
|
|
236
|
+
/**
|
|
237
|
+
* 请求超时时间(毫秒)
|
|
238
|
+
*/
|
|
239
|
+
const REQUEST_TIMEOUT = 0.1 * 60 * 1000; // 2分钟
|
|
240
|
+
/**
|
|
241
|
+
* 创建带超时的 fetch 请求
|
|
242
|
+
* @param url 请求URL
|
|
243
|
+
* @param options fetch选项
|
|
244
|
+
* @param timeout 超时时间(毫秒)
|
|
245
|
+
* @returns Promise<Response>
|
|
246
|
+
*/
|
|
247
|
+
const fetchWithTimeout = async (url, options, timeout = REQUEST_TIMEOUT) => {
|
|
248
|
+
const controller = new AbortController();
|
|
249
|
+
const timeoutId = setTimeout(() => controller.abort(), timeout);
|
|
250
|
+
try {
|
|
251
|
+
const response = await fetch(url, {
|
|
252
|
+
...options,
|
|
253
|
+
signal: controller.signal,
|
|
254
|
+
});
|
|
255
|
+
clearTimeout(timeoutId);
|
|
256
|
+
return response;
|
|
257
|
+
}
|
|
258
|
+
catch (error) {
|
|
259
|
+
clearTimeout(timeoutId);
|
|
260
|
+
if (error instanceof Error && error.name === 'AbortError') {
|
|
261
|
+
throw new Error('请求超时,请检查网络连接后重试');
|
|
262
|
+
}
|
|
263
|
+
throw error;
|
|
264
|
+
}
|
|
265
|
+
};
|
|
236
266
|
/**
|
|
237
267
|
* 发送 SSE 流式请求
|
|
238
268
|
* @param config 请求配置
|
|
@@ -251,7 +281,7 @@ const sendSSERequest = async (config, isRetry = false) => {
|
|
|
251
281
|
headers['authorization'] = `Bearer ${token}`;
|
|
252
282
|
}
|
|
253
283
|
}
|
|
254
|
-
const response = await
|
|
284
|
+
const response = await fetchWithTimeout(requestUrl, {
|
|
255
285
|
method,
|
|
256
286
|
headers: {
|
|
257
287
|
'Accept': 'text/event-stream',
|
|
@@ -304,6 +334,10 @@ const sendSSERequest = async (config, isRetry = false) => {
|
|
|
304
334
|
}
|
|
305
335
|
catch (error) {
|
|
306
336
|
console.error('SSE 请求错误:', error);
|
|
337
|
+
// 如果是超时错误且不是重试请求,则重试一次
|
|
338
|
+
if (error instanceof Error && error.message.includes('请求超时') && !isRetry) {
|
|
339
|
+
return sendSSERequest(config, true);
|
|
340
|
+
}
|
|
307
341
|
onError?.(error);
|
|
308
342
|
}
|
|
309
343
|
};
|
|
@@ -370,7 +404,7 @@ const sendHttpRequest = async (config, isRetry = true) => {
|
|
|
370
404
|
});
|
|
371
405
|
requestUrl += (queryParams.toString() ? '&' : '?') + dataParams.toString();
|
|
372
406
|
}
|
|
373
|
-
const response = await
|
|
407
|
+
const response = await fetchWithTimeout(requestUrl, requestConfig);
|
|
374
408
|
// 检查是否为401错误(未授权)
|
|
375
409
|
if (response.status === 401) {
|
|
376
410
|
// 触发全局token无效事件
|
|
@@ -411,6 +445,10 @@ const sendHttpRequest = async (config, isRetry = true) => {
|
|
|
411
445
|
}
|
|
412
446
|
catch (error) {
|
|
413
447
|
console.error('HTTP请求错误:', error);
|
|
448
|
+
// 如果是超时错误且允许重试,则重试一次
|
|
449
|
+
if (error instanceof Error && error.message.includes('请求超时') && isRetry) {
|
|
450
|
+
return sendHttpRequest(config, false);
|
|
451
|
+
}
|
|
414
452
|
if (config.onError) {
|
|
415
453
|
config.onError(error);
|
|
416
454
|
}
|
|
@@ -522,7 +560,7 @@ const synthesizeAudio = async (text, token, isRetry = false) => {
|
|
|
522
560
|
throw new Error('API密钥不能为空');
|
|
523
561
|
}
|
|
524
562
|
try {
|
|
525
|
-
const response = await
|
|
563
|
+
const response = await fetchWithTimeout(`${API_DOMAIN}/sdk/v1/tts/synthesize_audio`, {
|
|
526
564
|
method: 'POST',
|
|
527
565
|
headers: {
|
|
528
566
|
'Content-Type': 'application/json',
|
|
@@ -548,6 +586,10 @@ const synthesizeAudio = async (text, token, isRetry = false) => {
|
|
|
548
586
|
}
|
|
549
587
|
catch (error) {
|
|
550
588
|
console.error('语音合成错误:', error);
|
|
589
|
+
// 如果是超时错误且不是重试请求,则重试一次
|
|
590
|
+
if (error instanceof Error && error.message.includes('请求超时') && !isRetry) {
|
|
591
|
+
return synthesizeAudio(text, token, true);
|
|
592
|
+
}
|
|
551
593
|
throw error;
|
|
552
594
|
}
|
|
553
595
|
};
|
|
@@ -561,6 +603,6 @@ exports.sendSSERequest = sendSSERequest;
|
|
|
561
603
|
exports.synthesizeAudio = synthesizeAudio;
|
|
562
604
|
exports.uploadFileToBackend = uploadFileToBackend;
|
|
563
605
|
exports.verifyApiKey = verifyApiKey;
|
|
564
|
-
//# sourceMappingURL=index-
|
|
606
|
+
//# sourceMappingURL=index-BODkSu9P.js.map
|
|
565
607
|
|
|
566
|
-
//# sourceMappingURL=index-
|
|
608
|
+
//# sourceMappingURL=index-BODkSu9P.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BODkSu9P.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"],"sourcesContent":["// 默认 API 域名\r\nconst DEFAULT_API_DOMAIN = 'https://api.pincaimao.com/agents/platform';\r\n\r\n// 从环境变量获取 API 域名,如果未设置则使用默认值\r\nexport const API_DOMAIN = process.env.API_DOMAIN || DEFAULT_API_DOMAIN;\r\n\r\n// 导出其他环境变量\r\nexport const ENV = {\r\n API_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});"],"names":["getRenderingRef","forceUpdate"],"mappings":";;;;AAAA;AAGA;AACO,MAAM,UAAU,GAAG,2CAA4C;;ACFtE,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,CAA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B,IAAI,KAAK,EAAE;AACT,QAAA,YAAY,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC;;SAC5C;AACL,QAAA,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC;;AAEjD,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
|
package/dist/cjs/index.cjs.js
CHANGED
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
|
6
6
|
const defineCustomElements = async (win, options) => {
|
|
7
7
|
if (typeof window === 'undefined') return undefined;
|
|
8
8
|
await appGlobals.globalScripts();
|
|
9
|
-
return index.bootstrapLazy(JSON.parse("[[\"pcm-1zhanshi-mnms-modal_17.cjs\",[[1,\"pcm-1zhanshi-mnms-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"interviewMode\":[1,\"interview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-htws-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[1025,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32],\"inputMode\":[32],\"freeInputText\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-hyzj-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-jd-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"showChatModal\":[32],\"inputMode\":[32],\"step\":[32],\"jobName\":[32],\"freeInputText\":[32],\"isLoading\":[32],\"isSubmitting\":[32],\"tagGroups\":[32],\"shuffledTagGroups\":[32],\"selectedAITags\":[32],\"selectedTags\":[32],\"jobDescription\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-jlpp-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-mnct-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-mnms-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"interviewMode\":[1,\"interview-mode\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-msbg-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-qgqjl-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-zygh-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32],\"selectedPlanType\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-hr-chat-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"totalQuestions\":[2,\"total-questions\"],\"maxRecordingTime\":[2,\"max-recording-time\"],\"countdownWarningTime\":[2,\"countdown-warning-time\"],\"toEmail\":[1,\"to-email\"],\"callbackUrl\":[1,\"callback-url\"],\"fullscreen\":[4],\"requireResume\":[4,\"require-resume\"],\"enableVoice\":[4,\"enable-voice\"],\"enableAudio\":[4,\"enable-audio\"],\"displayContentStatus\":[4,\"display-content-status\"],\"messages\":[32],\"currentAssistantMessage\":[32],\"isLoading\":[32],\"currentStreamingMessage\":[32],\"shouldAutoScroll\":[32],\"isLoadingHistory\":[32],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showInitialUpload\":[32],\"selectedJobCategory\":[32],\"jobCategories\":[32],\"dimensions\":[32],\"selectedDimensions\":[32],\"isRecording\":[32],\"recordingStream\":[32],\"recordedBlob\":[32],\"mediaRecorder\":[32],\"recordingTimeLeft\":[32],\"showRecordingUI\":[32],\"recordingTimer\":[32],\"recordingStartTime\":[32],\"waitingToRecord\":[32],\"waitingTimer\":[32],\"waitingTimeLeft\":[32],\"currentQuestionNumber\":[32],\"showCountdownWarning\":[32],\"isUploadingVideo\":[32],\"isPlayingAudio\":[32],\"audioUrl\":[32],\"isUserScrolling\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-zsk-chat-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"employeeId\":[1,\"employee-id\"],\"maxAudioRecordingTime\":[2,\"max-audio-recording-time\"],\"messages\":[32],\"currentAssistantMessage\":[32],\"isLoading\":[32],\"currentStreamingMessage\":[32],\"shouldAutoScroll\":[32],\"isLoadingHistory\":[32],\"textAnswer\":[32],\"isSubmittingText\":[32],\"suggestedQuestions\":[32],\"suggestedQuestionsLoading\":[32],\"currentRefs\":[32],\"showReferences\":[32],\"isRecordingAudio\":[32],\"audioRecorder\":[32],\"audioChunks\":[32],\"isConvertingAudio\":[32],\"audioRecordingTimeLeft\":[32],\"audioRecordingTimer\":[32],\"audioRecordingStartTime\":[32],\"employeeDetails\":[32],\"isLoadingEmployeeDetails\":[32],\"quickQuestions\":[32],\"shouldHideReferences\":[32],\"isUserScrolling\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-button\",{\"type\":[1],\"size\":[1],\"loading\":[4],\"disabled\":[4],\"icon\":[1],\"shape\":[1],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"borderColor\":[1,\"border-color\"],\"borderRadius\":[2,\"border-radius\"],\"width\":[1],\"block\":[4],\"borderStyle\":[1,\"border-style\"]}],[1,\"pcm-card\",{\"token\":[1],\"cardTitle\":[1,\"card-title\"],\"description\":[1],\"iconUrl\":[1,\"icon-url\"],\"author\":[1],\"authorAvatarUrl\":[1,\"author-avatar-url\"],\"showChatTag\":[4,\"show-chat-tag\"],\"customChatTag\":[1,\"custom-chat-tag\"],\"useButtonText\":[1,\"use-button-text\"],\"botId\":[1,\"bot-id\"],\"botData\":[32],\"loading\":[32],\"error\":[32]},null,{\"botId\":[\"watchBotIdHandler\"],\"token\":[\"handleTokenChange\"]}],[1,\"pcm-app-chat-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[1026,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"maxRecordingTime\":[2,\"max-recording-time\"],\"countdownWarningTime\":[2,\"countdown-warning-time\"],\"isControlByQuestionNumber\":[4,\"is-control-by-question-number\"],\"totalQuestions\":[2,\"total-questions\"],\"fullscreen\":[4],\"enableTTS\":[4,\"enable-t-t-s\"],\"enableVoice\":[4,\"enable-voice\"],\"interviewMode\":[1,\"interview-mode\"],\"customInputs\":[16,\"custom-inputs\"],\"botId\":[1,\"bot-id\"],\"maxAudioRecordingTime\":[2,\"max-audio-recording-time\"],\"userAvatar\":[1,\"user-avatar\"],\"assistantAvatar\":[1,\"assistant-avatar\"],\"showProgressBar\":[4,\"show-progress-bar\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"messages\":[32],\"currentAssistantMessage\":[32],\"isLoading\":[32],\"currentStreamingMessage\":[32],\"shouldAutoScroll\":[32],\"isLoadingHistory\":[32],\"isUploading\":[32],\"isRecording\":[32],\"recordingStream\":[32],\"recordedBlob\":[32],\"mediaRecorder\":[32],\"recordingTimeLeft\":[32],\"showRecordingUI\":[32],\"recordingTimer\":[32],\"recordingStartTime\":[32],\"waitingToRecord\":[32],\"waitingTimer\":[32],\"waitingTimeLeft\":[32],\"currentQuestionNumber\":[32],\"showCountdownWarning\":[32],\"isUploadingVideo\":[32],\"isPlayingAudio\":[32],\"audioUrl\":[32],\"textAnswer\":[32],\"isSubmittingText\":[32],\"isRecordingAudio\":[32],\"audioRecorder\":[32],\"audioChunks\":[32],\"isConvertingAudio\":[32],\"audioRecordingTimeLeft\":[32],\"audioRecordingTimer\":[32],\"audioRecordingStartTime\":[32],\"agentLogo\":[32],\"isTaskCompleted\":[32],\"isDrawerOpen\":[32],\"previewUrl\":[32],\"previewFileName\":[32],\"previewContentType\":[32],\"previewContent\":[32],\"isUserScrolling\":[32]},null,{\"token\":[\"handleTokenChange\"]}],[1,\"pcm-drawer\",{\"isOpen\":[1540,\"is-open\"],\"drawerTitle\":[1,\"drawer-title\"],\"width\":[1],\"height\":[1],\"closable\":[4],\"maskClosable\":[4,\"mask-closable\"],\"mask\":[4],\"zIndex\":[32],\"open\":[64],\"close\":[64]},null,{\"isOpen\":[\"visibleChanged\"]}],[1,\"pcm-chat-message\",{\"message\":[16],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"botId\":[1,\"bot-id\"],\"userAvatar\":[1,\"user-avatar\"],\"assistantAvatar\":[1,\"assistant-avatar\"],\"showCopyButton\":[4,\"show-copy-button\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"feedbackStatus\":[32]}]]],[\"pcm-mnms-video-modal.cjs\",[[1,\"pcm-mnms-video-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"interviewMode\":[1,\"interview-mode\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}]]],[\"pcm-mnms-zp-modal.cjs\",[[1,\"pcm-mnms-zp-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"interviewMode\":[1,\"interview-mode\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}]]]]"), options);
|
|
9
|
+
return index.bootstrapLazy(JSON.parse("[[\"pcm-1zhanshi-mnms-modal_17.cjs\",[[1,\"pcm-1zhanshi-mnms-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"interviewMode\":[1,\"interview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-htws-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32],\"inputMode\":[32],\"freeInputText\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-hyzj-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-jd-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"showChatModal\":[32],\"inputMode\":[32],\"step\":[32],\"jobName\":[32],\"freeInputText\":[32],\"isLoading\":[32],\"isSubmitting\":[32],\"tagGroups\":[32],\"shuffledTagGroups\":[32],\"selectedAITags\":[32],\"selectedTags\":[32],\"jobDescription\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-jlpp-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-mnct-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-mnms-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"interviewMode\":[1,\"interview-mode\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-msbg-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-qgqjl-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-zygh-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"isSubmitting\":[32],\"selectedPlanType\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-hr-chat-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"totalQuestions\":[2,\"total-questions\"],\"maxRecordingTime\":[2,\"max-recording-time\"],\"countdownWarningTime\":[2,\"countdown-warning-time\"],\"toEmail\":[1,\"to-email\"],\"callbackUrl\":[1,\"callback-url\"],\"fullscreen\":[4],\"requireResume\":[4,\"require-resume\"],\"enableVoice\":[4,\"enable-voice\"],\"enableAudio\":[4,\"enable-audio\"],\"displayContentStatus\":[4,\"display-content-status\"],\"messages\":[32],\"currentAssistantMessage\":[32],\"isLoading\":[32],\"currentStreamingMessage\":[32],\"shouldAutoScroll\":[32],\"isLoadingHistory\":[32],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showInitialUpload\":[32],\"selectedJobCategory\":[32],\"jobCategories\":[32],\"dimensions\":[32],\"selectedDimensions\":[32],\"isRecording\":[32],\"recordingStream\":[32],\"recordedBlob\":[32],\"mediaRecorder\":[32],\"recordingTimeLeft\":[32],\"showRecordingUI\":[32],\"recordingTimer\":[32],\"recordingStartTime\":[32],\"waitingToRecord\":[32],\"waitingTimer\":[32],\"waitingTimeLeft\":[32],\"currentQuestionNumber\":[32],\"showCountdownWarning\":[32],\"isUploadingVideo\":[32],\"isPlayingAudio\":[32],\"audioUrl\":[32],\"isUserScrolling\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-zsk-chat-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"employeeId\":[1,\"employee-id\"],\"maxAudioRecordingTime\":[2,\"max-audio-recording-time\"],\"messages\":[32],\"currentAssistantMessage\":[32],\"isLoading\":[32],\"currentStreamingMessage\":[32],\"shouldAutoScroll\":[32],\"isLoadingHistory\":[32],\"textAnswer\":[32],\"isSubmittingText\":[32],\"suggestedQuestions\":[32],\"suggestedQuestionsLoading\":[32],\"currentRefs\":[32],\"showReferences\":[32],\"isRecordingAudio\":[32],\"audioRecorder\":[32],\"audioChunks\":[32],\"isConvertingAudio\":[32],\"audioRecordingTimeLeft\":[32],\"audioRecordingTimer\":[32],\"audioRecordingStartTime\":[32],\"employeeDetails\":[32],\"isLoadingEmployeeDetails\":[32],\"quickQuestions\":[32],\"shouldHideReferences\":[32],\"isUserScrolling\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}],[1,\"pcm-button\",{\"type\":[1],\"size\":[1],\"loading\":[4],\"disabled\":[4],\"icon\":[1],\"shape\":[1],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"borderColor\":[1,\"border-color\"],\"borderRadius\":[2,\"border-radius\"],\"width\":[1],\"block\":[4],\"borderStyle\":[1,\"border-style\"]}],[1,\"pcm-card\",{\"token\":[1],\"cardTitle\":[1,\"card-title\"],\"description\":[1],\"iconUrl\":[1,\"icon-url\"],\"author\":[1],\"authorAvatarUrl\":[1,\"author-avatar-url\"],\"showChatTag\":[4,\"show-chat-tag\"],\"customChatTag\":[1,\"custom-chat-tag\"],\"useButtonText\":[1,\"use-button-text\"],\"botId\":[1,\"bot-id\"],\"botData\":[32],\"loading\":[32],\"error\":[32]},null,{\"botId\":[\"watchBotIdHandler\"],\"token\":[\"handleTokenChange\"]}],[1,\"pcm-app-chat-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[1026,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"maxRecordingTime\":[2,\"max-recording-time\"],\"countdownWarningTime\":[2,\"countdown-warning-time\"],\"isControlByQuestionNumber\":[4,\"is-control-by-question-number\"],\"totalQuestions\":[2,\"total-questions\"],\"fullscreen\":[4],\"enableTTS\":[4,\"enable-t-t-s\"],\"enableVoice\":[4,\"enable-voice\"],\"interviewMode\":[1,\"interview-mode\"],\"customInputs\":[16,\"custom-inputs\"],\"botId\":[1,\"bot-id\"],\"maxAudioRecordingTime\":[2,\"max-audio-recording-time\"],\"userAvatar\":[1,\"user-avatar\"],\"assistantAvatar\":[1,\"assistant-avatar\"],\"showProgressBar\":[4,\"show-progress-bar\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"messages\":[32],\"currentAssistantMessage\":[32],\"isLoading\":[32],\"currentStreamingMessage\":[32],\"shouldAutoScroll\":[32],\"isLoadingHistory\":[32],\"isUploading\":[32],\"isRecording\":[32],\"recordingStream\":[32],\"recordedBlob\":[32],\"mediaRecorder\":[32],\"recordingTimeLeft\":[32],\"showRecordingUI\":[32],\"recordingTimer\":[32],\"recordingStartTime\":[32],\"waitingToRecord\":[32],\"waitingTimer\":[32],\"waitingTimeLeft\":[32],\"currentQuestionNumber\":[32],\"showCountdownWarning\":[32],\"isUploadingVideo\":[32],\"isPlayingAudio\":[32],\"audioUrl\":[32],\"textAnswer\":[32],\"isSubmittingText\":[32],\"isRecordingAudio\":[32],\"audioRecorder\":[32],\"audioChunks\":[32],\"isConvertingAudio\":[32],\"audioRecordingTimeLeft\":[32],\"audioRecordingTimer\":[32],\"audioRecordingStartTime\":[32],\"agentLogo\":[32],\"isTaskCompleted\":[32],\"isDrawerOpen\":[32],\"previewUrl\":[32],\"previewFileName\":[32],\"previewContentType\":[32],\"previewContent\":[32],\"isUserScrolling\":[32]},null,{\"token\":[\"handleTokenChange\"]}],[1,\"pcm-drawer\",{\"isOpen\":[1540,\"is-open\"],\"drawerTitle\":[1,\"drawer-title\"],\"width\":[1],\"height\":[1],\"closable\":[4],\"maskClosable\":[4,\"mask-closable\"],\"mask\":[4],\"zIndex\":[32],\"open\":[64],\"close\":[64]},null,{\"isOpen\":[\"visibleChanged\"]}],[1,\"pcm-chat-message\",{\"message\":[16],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"botId\":[1,\"bot-id\"],\"userAvatar\":[1,\"user-avatar\"],\"assistantAvatar\":[1,\"assistant-avatar\"],\"showCopyButton\":[4,\"show-copy-button\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"feedbackStatus\":[32]}]]],[\"pcm-mnms-video-modal.cjs\",[[1,\"pcm-mnms-video-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"interviewMode\":[1,\"interview-mode\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}]]],[\"pcm-mnms-zp-modal.cjs\",[[1,\"pcm-mnms-zp-modal\",{\"modalTitle\":[1,\"modal-title\"],\"token\":[1],\"isOpen\":[1028,\"is-open\"],\"icon\":[1],\"zIndex\":[2,\"z-index\"],\"isShowHeader\":[4,\"is-show-header\"],\"isNeedClose\":[4,\"is-need-close\"],\"conversationId\":[1025,\"conversation-id\"],\"defaultQuery\":[1,\"default-query\"],\"fullscreen\":[4],\"customInputs\":[16,\"custom-inputs\"],\"filePreviewMode\":[1,\"file-preview-mode\"],\"interviewMode\":[1,\"interview-mode\"],\"showCopyButton\":[4,\"show-copy-button\"],\"showFeedbackButtons\":[4,\"show-feedback-buttons\"],\"selectedFile\":[32],\"isUploading\":[32],\"uploadedFileInfo\":[32],\"showChatModal\":[32],\"jobDescription\":[32],\"isSubmitting\":[32]},null,{\"token\":[\"handleTokenChange\"],\"isOpen\":[\"handleIsOpenChange\"]}]]]]"), options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C_qhED9Z.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
var config_store = require('./config.store-
|
|
4
|
+
var index$1 = require('./index-BODkSu9P.js');
|
|
5
|
+
var config_store = require('./config.store-C6fAjJL3.js');
|
|
6
6
|
|
|
7
7
|
const pcm1zhanshiMnmsModalCss = "";
|
|
8
8
|
|
|
@@ -5423,6 +5423,8 @@ const ChatHRModal = class {
|
|
|
5423
5423
|
};
|
|
5424
5424
|
});
|
|
5425
5425
|
this.messages = formattedMessages;
|
|
5426
|
+
// 根据历史消息计算当前题目序号
|
|
5427
|
+
this.currentQuestionNumber = this.messages.length > 0 ? this.messages.length : 0;
|
|
5426
5428
|
}
|
|
5427
5429
|
}
|
|
5428
5430
|
catch (error) {
|
|
@@ -6033,7 +6035,6 @@ const HtwsModal = class {
|
|
|
6033
6035
|
fullscreen = false;
|
|
6034
6036
|
/**
|
|
6035
6037
|
* 自定义输入参数,传入customInputs.input时,会自动切换到自由输入模式
|
|
6036
|
-
* 支持对象或JSON字符串格式
|
|
6037
6038
|
*/
|
|
6038
6039
|
customInputs = {};
|
|
6039
6040
|
/**
|
|
@@ -6085,22 +6086,6 @@ const HtwsModal = class {
|
|
|
6085
6086
|
}
|
|
6086
6087
|
}
|
|
6087
6088
|
componentWillLoad() {
|
|
6088
|
-
// 处理customInputs,支持字符串或对象格式
|
|
6089
|
-
if (typeof this.customInputs === 'string') {
|
|
6090
|
-
try {
|
|
6091
|
-
this.customInputs = JSON.parse(this.customInputs);
|
|
6092
|
-
}
|
|
6093
|
-
catch (error) {
|
|
6094
|
-
console.error('解析customInputs字符串失败:', error);
|
|
6095
|
-
this.customInputs = {};
|
|
6096
|
-
config_store.ErrorEventBus.emitError({
|
|
6097
|
-
source: 'pcm-htws-modal[componentWillLoad]',
|
|
6098
|
-
error: error,
|
|
6099
|
-
message: 'customInputs参数格式错误',
|
|
6100
|
-
type: 'ui'
|
|
6101
|
-
});
|
|
6102
|
-
}
|
|
6103
|
-
}
|
|
6104
6089
|
// 将 zIndex 存入配置缓存
|
|
6105
6090
|
if (this.zIndex) {
|
|
6106
6091
|
config_store.configStore.setItem('modal-zIndex', this.zIndex);
|
|
@@ -6229,7 +6214,7 @@ const HtwsModal = class {
|
|
|
6229
6214
|
this.inputMode = 'upload'; // 重置为默认上传模式
|
|
6230
6215
|
}
|
|
6231
6216
|
else {
|
|
6232
|
-
if (this.customInputs &&
|
|
6217
|
+
if (this.customInputs && this.customInputs.input) {
|
|
6233
6218
|
// 如果有 input,直接切换到自由输入模式并填充内容
|
|
6234
6219
|
this.inputMode = 'free';
|
|
6235
6220
|
this.freeInputText = this.customInputs.input;
|
|
@@ -6279,7 +6264,7 @@ const HtwsModal = class {
|
|
|
6279
6264
|
(this.inputMode === 'free' && !this.freeInputText.trim()) ||
|
|
6280
6265
|
this.isUploading ||
|
|
6281
6266
|
this.isSubmitting, onClick: this.handleStartInterview }, this.isUploading ? '上传中...' : this.isSubmitting ? '处理中...' : '开始分析'), index.h("div", { class: "ai-disclaimer" }, index.h("p", null, "\u6240\u6709\u5185\u5BB9\u5747\u7531AI\u751F\u6210\u4EC5\u4F9B\u53C2\u8003"), index.h("p", { class: "beian-info" }, index.h("span", null, "\u4E2D\u592E\u7F51\u4FE1\u529E\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u670D\u52A1\u5907\u6848\u53F7"), "\uFF1A", index.h("a", { href: "https://www.pincaimao.com", target: "_blank", rel: "noopener noreferrer" }, "Hunan-PinCaiMao-202412310003"))), index.h("input", { type: "file", class: "file-input", onChange: this.handleFileChange }))), isLoading && (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", { class: "loading-text" }, "\u6B63\u5728\u52A0\u8F7D\u5BF9\u8BDD..."))), this.showChatModal && (index.h("div", null, index.h("pcm-app-chat-modal", { isOpen: true, modalTitle: this.modalTitle, icon: this.icon, isShowHeader: this.isShowHeader, isNeedClose: this.isShowHeader, fullscreen: this.fullscreen, botId: "3022316191018882", conversationId: this.conversationId, defaultQuery: this.defaultQuery, enableVoice: false, filePreviewMode: this.filePreviewMode, customInputs: this.conversationId ? {} : {
|
|
6282
|
-
...
|
|
6267
|
+
...this.customInputs,
|
|
6283
6268
|
file_url: this.inputMode === 'upload' ? this.uploadedFileInfo?.cos_key : undefined,
|
|
6284
6269
|
input: this.inputMode === 'free' ? this.freeInputText : undefined
|
|
6285
6270
|
}, interviewMode: "text", onModalClosed: this.handleClose, onStreamComplete: this.handleStreamComplete, onConversationStart: this.handleConversationStart, onInterviewComplete: this.handleInterviewComplete }))))));
|