hunter-mate 0.1.27 → 0.1.28
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/assets/extension/build-info.json +1 -1
- package/dist/assets/extension/manifest.json +3 -3
- package/dist/assets/server/main.mjs +31 -2
- package/dist/index.js +30 -4
- package/dist/web/dist/404.html +1 -1
- package/dist/web/dist/_next/static/chunks/187-48dc1acca97c62ba.js +1 -0
- package/dist/web/dist/_next/static/chunks/{253-f4ac7af6647e4dba.js → 327-6b8f348b06e7977f.js} +1 -1
- package/dist/web/dist/_next/static/chunks/353-845111f2789c5a03.js +12 -0
- package/dist/web/dist/_next/static/chunks/587-e449469e56a2bfff.js +1 -0
- package/dist/web/dist/_next/static/chunks/603-765c4fa1ed757ca5.js +32 -0
- package/dist/web/dist/_next/static/chunks/659-3db6e9c90ee9d238.js +1 -0
- package/dist/web/dist/_next/static/chunks/882-1bcdfd2499403efd.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/companies/{page-390d5e3073ec151d.js → page-e1e730e2dc5ad84c.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/jobs/page-a32a17c5a6384358.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/{layout-15c4c2ba595b2a92.js → layout-1e492ed8c639edf5.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/shared/[token]/page-6741cd1b0a4aca2e.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/talents/{page-5a2caa7a503ee041.js → page-4b00d69580f49f97.js} +1 -1
- package/dist/web/dist/admin/data.html +1 -1
- package/dist/web/dist/admin/data.txt +4 -4
- package/dist/web/dist/auth/verify.html +1 -1
- package/dist/web/dist/auth/verify.txt +4 -4
- package/dist/web/dist/companies.html +1 -1
- package/dist/web/dist/companies.txt +5 -5
- package/dist/web/dist/company/admin.html +1 -1
- package/dist/web/dist/company/admin.txt +4 -4
- package/dist/web/dist/entity.html +1 -1
- package/dist/web/dist/entity.txt +4 -4
- package/dist/web/dist/index.html +1 -1
- package/dist/web/dist/index.txt +4 -4
- package/dist/web/dist/jobs.html +1 -1
- package/dist/web/dist/jobs.txt +5 -5
- package/dist/web/dist/logs.html +1 -1
- package/dist/web/dist/logs.txt +4 -4
- package/dist/web/dist/matching/jobs/placeholder/talents.html +1 -1
- package/dist/web/dist/matching/jobs/placeholder/talents.txt +4 -4
- package/dist/web/dist/matching/portraits/placeholder/jobs.html +1 -1
- package/dist/web/dist/matching/portraits/placeholder/jobs.txt +4 -4
- package/dist/web/dist/parselog.html +1 -1
- package/dist/web/dist/parselog.txt +4 -4
- package/dist/web/dist/recordings.html +1 -1
- package/dist/web/dist/recordings.txt +4 -4
- package/dist/web/dist/resource-usage.html +1 -1
- package/dist/web/dist/resource-usage.txt +4 -4
- package/dist/web/dist/shared/placeholder.html +1 -1
- package/dist/web/dist/shared/placeholder.txt +5 -5
- package/dist/web/dist/snapshots/placeholder/agent-prompt.html +1 -1
- package/dist/web/dist/snapshots/placeholder/agent-prompt.txt +4 -4
- package/dist/web/dist/talents.html +1 -1
- package/dist/web/dist/talents.txt +5 -5
- package/dist/web/dist/team/insights.html +1 -1
- package/dist/web/dist/team/insights.txt +4 -4
- package/package.json +3 -3
- package/dist/web/dist/_next/static/chunks/187-f067914dcd1330c2.js +0 -32
- package/dist/web/dist/_next/static/chunks/659-b23050764c004f5f.js +0 -1
- package/dist/web/dist/_next/static/chunks/728-cffab7e836020551.js +0 -12
- package/dist/web/dist/_next/static/chunks/app/jobs/page-fa83ce1b6c3b345d.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/shared/[token]/page-fe2b986867d317c0.js +0 -1
- /package/dist/assets/extension/background/{service-worker.20261020181646.js → service-worker.20261023013927.js} +0 -0
- /package/dist/web/dist/_next/static/{tYFZz41gyWi4-BhxuxlGU → cC7rsTCys5_15wJ8BiPDm}/_buildManifest.js +0 -0
- /package/dist/web/dist/_next/static/{tYFZz41gyWi4-BhxuxlGU → cC7rsTCys5_15wJ8BiPDm}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"buildTime":"2026-10-
|
|
1
|
+
{"buildTime":"2026-10-23T01:39:27.427Z","version":"0.1.28"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"minimum_chrome_version": "116",
|
|
4
4
|
"name": "__MSG_extName__",
|
|
5
|
-
"description": "[build 10-
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"description": "[build 10-23 01:39:27] __MSG_extDescription__",
|
|
6
|
+
"version": "0.1.28",
|
|
7
7
|
"default_locale": "zh_CN",
|
|
8
8
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAi/S88toqsiW6zleTj+V8jPUVTmrJiyDPvqTd+Cqrl/Ax9PCxaMsiXXUh2sNJh6sMj7xj0YBclCPMsI2wxIF8y4r6KnmWt49RuMg7EynvOT8fcRjxXBWGAz6hjGepWesOCMn9dgJ5IqgXP3j+Bfb+636IeW1nZxOedT25zJwJr81G4gIyc9kk+wCZPHUhQTsfNVxd8xfbxYQpcDuuVk1dDNEszeLUZGKYl9JcOQcaEQOWA4ED5avn67ZWQx5kzowB7XYtcTH0vz63cKNcK3O1iQ0hmFoohPKRWh9tNl545UQ2+mPaU6B/CNSZP2qwb+tgK7lVh5zG5qQkbaP8ZP8XaQIDAQAB",
|
|
9
9
|
"permissions": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"<all_urls>"
|
|
28
28
|
],
|
|
29
29
|
"background": {
|
|
30
|
-
"service_worker": "background/service-worker.
|
|
30
|
+
"service_worker": "background/service-worker.20261023013927.js",
|
|
31
31
|
"type": "module"
|
|
32
32
|
},
|
|
33
33
|
"content_scripts": [
|
|
@@ -217648,6 +217648,7 @@ var import_typeorm54 = __toESM(require_typeorm2(), 1);
|
|
|
217648
217648
|
var import_config = __toESM(require_config2(), 1);
|
|
217649
217649
|
import * as fs2 from "fs";
|
|
217650
217650
|
import * as path2 from "path";
|
|
217651
|
+
import Database from "better-sqlite3";
|
|
217651
217652
|
|
|
217652
217653
|
// dist/.server-tsc/recording/entities/recording-event.entity.js
|
|
217653
217654
|
var __decorate7 = function(decorators, target, key, desc) {
|
|
@@ -220878,6 +220879,30 @@ SqliteWalService = SqliteWalService_1 = __decorate53([
|
|
|
220878
220879
|
__metadata52("design:paramtypes", [DataSource])
|
|
220879
220880
|
], SqliteWalService);
|
|
220880
220881
|
var dataDir = () => process.env.HM_DATA_DIR || path2.join(HOME(), ".hunter-mate");
|
|
220882
|
+
function preSyncJobCaseStatusMap(dbFile) {
|
|
220883
|
+
let db;
|
|
220884
|
+
try {
|
|
220885
|
+
if (!fs2.existsSync(dbFile))
|
|
220886
|
+
return 0;
|
|
220887
|
+
db = new Database(dbFile, { fileMustExist: true });
|
|
220888
|
+
const t = db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='job_cases'").get();
|
|
220889
|
+
if (!t)
|
|
220890
|
+
return 0;
|
|
220891
|
+
db.pragma("ignore_check_constraints = ON");
|
|
220892
|
+
let changes = 0;
|
|
220893
|
+
changes += db.prepare("UPDATE job_cases SET status='closed' WHERE status='archived'").run().changes;
|
|
220894
|
+
changes += db.prepare("UPDATE job_cases SET status='active' WHERE status='draft'").run().changes;
|
|
220895
|
+
db.pragma("ignore_check_constraints = OFF");
|
|
220896
|
+
return changes;
|
|
220897
|
+
} catch {
|
|
220898
|
+
return 0;
|
|
220899
|
+
} finally {
|
|
220900
|
+
try {
|
|
220901
|
+
db?.close();
|
|
220902
|
+
} catch {
|
|
220903
|
+
}
|
|
220904
|
+
}
|
|
220905
|
+
}
|
|
220881
220906
|
var SqliteModule = class SqliteModule2 {
|
|
220882
220907
|
};
|
|
220883
220908
|
SqliteModule = __decorate53([
|
|
@@ -220889,6 +220914,10 @@ SqliteModule = __decorate53([
|
|
|
220889
220914
|
useFactory: (config) => {
|
|
220890
220915
|
const dbFile = config.get("SQLITE_PATH") || path2.join(dataDir(), "hunter-mate.db");
|
|
220891
220916
|
fs2.mkdirSync(path2.dirname(dbFile), { recursive: true });
|
|
220917
|
+
const migrated = preSyncJobCaseStatusMap(dbFile);
|
|
220918
|
+
if (migrated > 0) {
|
|
220919
|
+
new import_common5.Logger("SqliteModule").log(`job_cases \u65E7\u4E09\u6001\u503C\u6620\u5C04\u5B8C\u6210(${migrated} \u884C:draft/active\u2192active\u3001archived\u2192closed),synchronize \u53EF\u5B89\u5168\u91CD\u5EFA\u8868`);
|
|
220920
|
+
}
|
|
220892
220921
|
return {
|
|
220893
220922
|
type: "better-sqlite3",
|
|
220894
220923
|
database: dbFile,
|
|
@@ -296434,7 +296463,7 @@ AuthMiddleware = __decorate134([
|
|
|
296434
296463
|
|
|
296435
296464
|
// dist/.server-tsc/shared-page.middleware.js
|
|
296436
296465
|
var import_common92 = __toESM(require_common(), 1);
|
|
296437
|
-
import { existsSync as
|
|
296466
|
+
import { existsSync as existsSync7 } from "fs";
|
|
296438
296467
|
import { join as join13 } from "path";
|
|
296439
296468
|
var __decorate135 = function(decorators, target, key, desc) {
|
|
296440
296469
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -296450,7 +296479,7 @@ var SharedPageMiddleware = class SharedPageMiddleware2 {
|
|
|
296450
296479
|
if (!rel)
|
|
296451
296480
|
return null;
|
|
296452
296481
|
const abs = join13(WEB_DIST, rel);
|
|
296453
|
-
return
|
|
296482
|
+
return existsSync7(abs) ? abs : null;
|
|
296454
296483
|
}
|
|
296455
296484
|
use(req, res, next) {
|
|
296456
296485
|
if (req.method !== "GET")
|
package/dist/index.js
CHANGED
|
@@ -63662,7 +63662,19 @@ function processCmdline(pid) {
|
|
|
63662
63662
|
["process", "where", `processId=${pid}`, "get", "CommandLine"],
|
|
63663
63663
|
{ encoding: "utf-8" }
|
|
63664
63664
|
);
|
|
63665
|
-
|
|
63665
|
+
const parsed = (r2.stdout ?? "").replace(/^\s*CommandLine\s*/i, "").trim();
|
|
63666
|
+
if (r2.status === 0 && parsed) return parsed;
|
|
63667
|
+
const ps = spawnSync2(
|
|
63668
|
+
"powershell",
|
|
63669
|
+
[
|
|
63670
|
+
"-NoProfile",
|
|
63671
|
+
"-NonInteractive",
|
|
63672
|
+
"-Command",
|
|
63673
|
+
`(Get-CimInstance Win32_Process -Filter "ProcessId=${pid}").CommandLine`
|
|
63674
|
+
],
|
|
63675
|
+
{ encoding: "utf-8" }
|
|
63676
|
+
);
|
|
63677
|
+
return ps.status === 0 ? (ps.stdout ?? "").trim() : "";
|
|
63666
63678
|
}
|
|
63667
63679
|
const r = spawnSync2("ps", ["-p", String(pid), "-o", "command="], { encoding: "utf-8" });
|
|
63668
63680
|
return (r.stdout ?? "").trim();
|
|
@@ -63678,8 +63690,22 @@ function parentPid(pid) {
|
|
|
63678
63690
|
["process", "where", `processId=${pid}`, "get", "ParentProcessId"],
|
|
63679
63691
|
{ encoding: "utf-8" }
|
|
63680
63692
|
);
|
|
63681
|
-
if (r2.status
|
|
63682
|
-
|
|
63693
|
+
if (r2.status === 0) {
|
|
63694
|
+
const ppid3 = Number((r2.stdout ?? "").trim().split(/\s+/).pop());
|
|
63695
|
+
if (Number.isInteger(ppid3) && ppid3 > 0) return ppid3;
|
|
63696
|
+
}
|
|
63697
|
+
const ps = spawnSync2(
|
|
63698
|
+
"powershell",
|
|
63699
|
+
[
|
|
63700
|
+
"-NoProfile",
|
|
63701
|
+
"-NonInteractive",
|
|
63702
|
+
"-Command",
|
|
63703
|
+
`(Get-CimInstance Win32_Process -Filter "ProcessId=${pid}").ParentProcessId`
|
|
63704
|
+
],
|
|
63705
|
+
{ encoding: "utf-8" }
|
|
63706
|
+
);
|
|
63707
|
+
if (ps.status !== 0) return null;
|
|
63708
|
+
const ppid2 = Number((ps.stdout ?? "").trim());
|
|
63683
63709
|
return Number.isInteger(ppid2) && ppid2 > 0 ? ppid2 : null;
|
|
63684
63710
|
}
|
|
63685
63711
|
const r = spawnSync2("ps", ["-p", String(pid), "-o", "ppid="], { encoding: "utf-8" });
|
|
@@ -73748,7 +73774,7 @@ function installLocalProxyBypass() {
|
|
|
73748
73774
|
// package.json
|
|
73749
73775
|
var package_default = {
|
|
73750
73776
|
name: "hunter-mate",
|
|
73751
|
-
version: "0.1.
|
|
73777
|
+
version: "0.1.28",
|
|
73752
73778
|
type: "module",
|
|
73753
73779
|
description: "HiredChina \u730E\u5934 Agent \u6570\u636E\u52A9\u624B CLI:\u4EBA\u624D\u5E93/\u5BA2\u6237/\u804C\u4F4D\u6570\u636E\u8BBF\u95EE,\u6D4F\u89C8\u5668\u5F55\u5236\u89E3\u6790\u7B80\u5386,server/\u6269\u5C55\u4E00\u81F4\u6027\u81EA\u6108",
|
|
73754
73780
|
license: "MIT",
|
package/dist/web/dist/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/8f3c454cab3414d0.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9cebd25e322e2cd7.js"/><script src="/_next/static/chunks/a7067448-3f2b194cfadb91fb.js" async=""></script><script src="/_next/static/chunks/935-12f1084f0e18c962.js" async=""></script><script src="/_next/static/chunks/main-app-f496bd51a73ef9f3.js" async=""></script><script src="/_next/static/chunks/589-5bb84ab8060e960b.js" async=""></script><script src="/_next/static/chunks/187-
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/8f3c454cab3414d0.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9cebd25e322e2cd7.js"/><script src="/_next/static/chunks/a7067448-3f2b194cfadb91fb.js" async=""></script><script src="/_next/static/chunks/935-12f1084f0e18c962.js" async=""></script><script src="/_next/static/chunks/main-app-f496bd51a73ef9f3.js" async=""></script><script src="/_next/static/chunks/603-765c4fa1ed757ca5.js" async=""></script><script src="/_next/static/chunks/589-5bb84ab8060e960b.js" async=""></script><script src="/_next/static/chunks/187-48dc1acca97c62ba.js" async=""></script><script src="/_next/static/chunks/app/layout-1e492ed8c639edf5.js" async=""></script><meta name="robots" content="noindex"/><title>HunterMate 采集仪表盘</title><meta name="description" content="HunterMate 采集/解析/入库仪表盘"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="flex h-screen overflow-hidden bg-gray-50 text-gray-900"><div class="flex h-screen w-screen flex-col items-center justify-center bg-gray-50"><span class="hm-spinner" aria-label="加载中"></span><div class="mt-4 text-sm text-gray-400">正在加载,请稍候…</div></div><script src="/_next/static/chunks/webpack-9cebd25e322e2cd7.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/8f3c454cab3414d0.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[76939,[],\"\"]\n4:I[74268,[],\"\"]\n5:I[81050,[],\"\"]\n6:I[15214,[\"603\",\"static/chunks/603-765c4fa1ed757ca5.js\",\"589\",\"static/chunks/589-5bb84ab8060e960b.js\",\"187\",\"static/chunks/187-48dc1acca97c62ba.js\",\"185\",\"static/chunks/app/layout-1e492ed8c639edf5.js\"],\"AuthGate\"]\n7:I[67188,[\"603\",\"static/chunks/603-765c4fa1ed757ca5.js\",\"589\",\"static/chunks/589-5bb84ab8060e960b.js\",\"187\",\"static/chunks/187-48dc1acca97c62ba.js\",\"185\",\"static/chunks/app/layout-1e492ed8c639edf5.js\"],\"AntdProvider\"]\n8:I[9424,[\"603\",\"static/chunks/603-765c4fa1ed757ca5.js\",\"589\",\"static/chunks/589-5bb84ab8060e960b.js\",\"187\",\"static/chunks/187-48dc1acca97c62ba.js\",\"185\",\"static/chunks/app/layout-1e492ed8c639edf5.js\"],\"SystemSidebar\"]\ne:I[62319,[],\"\"]\n9:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\na:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\nb:{\"display\":\"inline-block\"}\nc:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nf:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"cC7rsTCys5_15wJ8BiPDm\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/8f3c454cab3414d0.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"children\":[\"$\",\"body\",null,{\"className\":\"flex h-screen overflow-hidden bg-gray-50 text-gray-900\",\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"children\":[[\"$\",\"$L8\",null,{}],[\"$\",\"main\",null,{\"className\":\"flex-1 overflow-hidden\",\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$9\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$a\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$b\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$c\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]]}]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$Ld\"],\"globalErrorComponent\":\"$e\",\"missingSlots\":\"$Wf\"}]\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"HunterMate 采集仪表盘\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"HunterMate 采集/解析/入库仪表盘\"}]]\n3:null\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="09b42870-4b0d-4877-b6fc-5de08f16d5b6",e._sentryDebugIdIdentifier="sentry-dbid-09b42870-4b0d-4877-b6fc-5de08f16d5b6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[187],{58280:function(e,t,n){let r;n.d(t,{ZP:function(){return g},yU:function(){return m}});var o=n(60635),l=n(49297);n(3082);var u=n(90638),i=n(29119);let a=o.createContext(null),s=new Map;function c(e){e.forEach(e=>{let{target:t}=e;s.get(t)?.forEach(e=>e(t))})}function f(){return r||(r=new ResizeObserver(c)),r}var d=n(13063);function m(e,t,n,r){let l=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=(0,d.zX)(e=>{let{width:t,height:o}=e.getBoundingClientRect(),{offsetWidth:u,offsetHeight:i}=e,a=Math.floor(t),s=Math.floor(o);if(l.current.width!==a||l.current.height!==s||l.current.offsetWidth!==u||l.current.offsetHeight!==i){let c={width:a,height:s,offsetWidth:u,offsetHeight:i};l.current=c;let f={...c,offsetWidth:u===Math.round(t)?t:u,offsetHeight:i===Math.round(o)?o:i};r?.(f,e),Promise.resolve().then(()=>{n?.(f,e)})}}),i="function"==typeof t,a=o.useRef(0);o.useEffect(()=>{let n=i?t():t;return n&&e?(s.has(n)||(s.set(n,new Set),f().observe(n)),s.get(n).add(u)):e&&i&&(a.current+=1),()=>{n&&s.has(n)&&(s.get(n).delete(u),s.get(n).size||(f().unobserve(n),s.delete(n)))}},[e,i?a.current:t])}let h=o.forwardRef(function(e,t){let{children:n,disabled:r,onResize:l,data:s}=e,c=o.useRef(null),f=o.useContext(a),d="function"==typeof n,h=d?n(c):n,p=!d&&o.isValidElement(h)&&(0,i.Yr)(h),v=p?(0,i.C4)(h):null,g=(0,i.x1)(v,c),y=()=>(0,u.bn)(c.current);return o.useImperativeHandle(t,()=>y()),m(!r,y,l,(e,t)=>{f?.(e,t,s)}),p?o.cloneElement(h,{ref:g}):h});function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let v=o.forwardRef(function(e,t){let{children:n}=e;return("function"==typeof n?[n]:(0,l.Z)(n)).map((n,r)=>{let l=n?.key||`rc-observer-key-${r}`;return o.createElement(h,p({},e,{key:l,ref:0===r?t:void 0}),n)})});v.Collection=function({children:e,onBatchResize:t}){let n=o.useRef(0),r=o.useRef([]),l=o.useContext(a),u=o.useCallback((e,o,u)=>{n.current+=1;let i=n.current;r.current.push({size:e,element:o,data:u}),Promise.resolve().then(()=>{i===n.current&&(t?.(r.current),r.current=[])}),l?.(e,o,u)},[t,l]);return o.createElement(a.Provider,{value:u},e)};var g=v},13299:function(e,t,n){n.d(t,{_v:function(){return j},ZP:function(){return N}});var r=n(38655),o=n(86937),l=n(58280),u=n(13063),i=n(60635),a=n(21636);function s(e){let{prefixCls:t,align:n,arrow:r,arrowPos:l}=e,{className:u,content:a,style:s}=r||{},{x:c=0,y:f=0}=l,d=i.useRef(null);if(!n||!n.points)return null;let m={position:"absolute"};if(!1!==n.autoArrow){let e=n.points[0],t=n.points[1],r=e[0],o=e[1],l=t[0],u=t[1];r!==l&&["t","b"].includes(r)?"t"===r?m.top=0:m.bottom=0:m.top=f,o!==u&&["l","r"].includes(o)?"l"===o?m.left=0:m.right=0:m.left=c}return i.createElement("div",{ref:d,className:(0,o.W)(`${t}-arrow`,u),style:{...m,...s}},a)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e){let{prefixCls:t,open:n,zIndex:r,mask:l,motion:u,mobile:s}=e;return l?i.createElement(a.ZP,c({},u,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>i.createElement("div",{style:{zIndex:r},className:(0,o.W)(`${t}-mask`,s&&`${t}-mobile-mask`,e)})):null}let d=i.memo(({children:e})=>e,(e,t)=>t.cache);function m(e,t,n,r,o,l,u,i){let a="auto",s=e?{}:{left:"-1000vw",top:"-1000vh",right:a,bottom:a};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&"r"===e[0][1],c=t&&"b"===e[0][0];n?(s.right=o,s.left=a):(s.left=u,s.right=a),c?(s.bottom=l,s.top=a):(s.top=i,s.bottom=a)}return s}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let p=i.forwardRef((e,t)=>{let{onEsc:n,popup:r,className:c,prefixCls:p,style:v,target:g,onVisibleChanged:y,open:b,keepDom:x,fresh:E,onClick:C,mask:w,arrow:M,arrowPos:P,align:R,motion:S,maskMotion:k,mobile:z,forceRender:O,getPopupContainer:L,autoDestroy:X,portal:Z,children:j,zIndex:A,onMouseEnter:N,onMouseLeave:W,onPointerEnter:$,onPointerDownCapture:I,ready:_,offsetX:H,offsetY:T,offsetR:Y,offsetB:D,onAlign:V,onPrepare:B,onResize:F,stretch:q,targetWidth:G,targetHeight:U}=e,J="function"==typeof r?r():r,K=b||x,Q=!!z,[ee,et,en]=i.useMemo(()=>z?[z.mask,z.maskMotion,z.motion]:[w,k,S],[z,w,k,S]),er=L?.length>0,[eo,el]=i.useState(!L||!er);(0,u.bt)(()=>{!eo&&er&&g&&el(!0)},[eo,er,g]);let eu=(0,u.zX)((e,t)=>{F?.(e,t),V()}),ei=m(Q,_,b,R,Y,D,H,T);if(!eo)return null;let ea={};return q&&(q.includes("height")&&U?ea.height=U:q.includes("minHeight")&&U&&(ea.minHeight=U),q.includes("width")&&G?ea.width=G:q.includes("minWidth")&&G&&(ea.minWidth=G)),b||(ea.pointerEvents="none"),i.createElement(Z,{open:O||K,getContainer:L&&(()=>L(g)),autoDestroy:X,onEsc:n},i.createElement(f,{prefixCls:p,open:b,zIndex:A,mask:ee,motion:et,mobile:Q}),i.createElement(l.ZP,{onResize:eu,disabled:!b},e=>i.createElement(a.ZP,h({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:`${p}-hidden`},en,{onAppearPrepare:B,onEnterPrepare:B,visible:b,onVisibleChanged:e=>{S?.onVisibleChanged?.(e),y(e)}}),({className:n,style:r},l)=>{let a=(0,o.W)(p,n,c,{[`${p}-mobile`]:Q});return i.createElement("div",{ref:(0,u.sQ)(e,t,l),className:a,style:{"--arrow-x":`${P.x||0}px`,"--arrow-y":`${P.y||0}px`,...ei,...ea,...r,boxSizing:"border-box",zIndex:A,...v},onMouseEnter:N,onMouseLeave:W,onPointerEnter:$,onClick:C,onPointerDownCapture:I},M&&i.createElement(s,{prefixCls:p,arrow:M,arrowPos:P,align:R}),i.createElement(d,{cache:!b&&!E},J))})),j)}),v=i.createContext(null),g=i.createContext(null);function y(e){return e?Array.isArray(e)?e:[e]:[]}function b(e,t,n,r){let{points:o}=n,l=Object.keys(e);for(let n=0;n<l.length;n+=1){let u=l[n];if(function(e=[],t=[],n){let r=(e,t)=>e[t]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}(e[u]?.points,o,r))return`${t}-placement-${u}`}return""}function x(e){return e.ownerDocument.defaultView}function E(e){let t=[],n=e?.parentElement,r=["hidden","scroll","clip","auto"];for(;n;){let{overflowX:e,overflowY:o,overflow:l}=x(n).getComputedStyle(n);[e,o,l].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function C(e,t=1){return Number.isNaN(e)?t:e}function w(e){return C(parseFloat(e),0)}function M(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:o,borderBottomWidth:l,borderLeftWidth:u,borderRightWidth:i}=x(e).getComputedStyle(e),a=e.getBoundingClientRect(),{offsetHeight:s,clientHeight:c,offsetWidth:f,clientWidth:d}=e,m=w(o),h=w(l),p=w(u),v=w(i),g=C(Math.round(a.width/f*1e3)/1e3),y=C(Math.round(a.height/s*1e3)/1e3),b=m*y,E=p*g,M=0,P=0;if("clip"===t){let e=w(r);M=e*g,P=e*y}let R=a.x+E-M,S=a.y+b-P,k=R+a.width+2*M-E-v*g-(f-d-p-v)*g,z=S+a.height+2*P-b-h*y-(s-c-m-h)*y;n.left=Math.max(n.left,R),n.top=Math.max(n.top,S),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,z)}),n}function P(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?parseFloat(r[1])/100*e:parseFloat(n)}function R(e,t){let[n,r]=t||[];return[P(e.width,n),P(e.height,r)]}function S(e=""){return[e[0],e[1]]}function k(e,t){let n;let r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function z(e,t){let n=[...e];return n[t]=({t:"b",b:"t",l:"r",r:"l"})[e[t]]||"c",n}function O(e,t,n,r,o,l,a,s){let[c,f]=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),d=i.useRef(0),m=i.useMemo(()=>!t||s?[]:E(t),[t]),h=i.useRef({});e||(h.current={});let p=(0,u.zX)(()=>{if(t&&n&&e&&!s){let e,s,d,p,v;let g=t.ownerDocument,y=x(t),{position:b}=y.getComputedStyle(t),E=t.style.left,w=t.style.top,P=t.style.right,O=t.style.bottom,L=t.style.overflow,X=t.style.overflowX,Z=t.style.overflowY,j={...o[r],...l},A=g.createElement("div");if(t.parentElement?.appendChild(A),A.style.left=`${t.offsetLeft}px`,A.style.top=`${t.offsetTop}px`,A.style.position=b,A.style.height=`${t.offsetHeight}px`,A.style.width=`${t.offsetWidth}px`,t.style.left="0",t.style.top="0",t.style.right="auto",t.style.bottom="auto",t.style.overflow="hidden",Array.isArray(n))e={x:n[0],y:n[1],width:0,height:0};else{let t=n.getBoundingClientRect();t.x=t.x??t.left,t.y=t.y??t.top,e={x:t.x,y:t.y,width:t.width,height:t.height}}let N=t.getBoundingClientRect(),{height:W,width:$}=y.getComputedStyle(t);N.x=N.x??N.left,N.y=N.y??N.top;let{clientWidth:I,clientHeight:_,scrollWidth:H,scrollHeight:T,scrollTop:Y,scrollLeft:D}=g.documentElement,V=N.height,B=N.width,F=e.height,q=e.width,{htmlRegion:G}=j,U="visible",J="visibleFirst";"scroll"!==G&&G!==J&&(G=U);let K=G===J,Q=M({left:-D,top:-Y,right:H-D,bottom:T-Y},m),ee=M({left:0,top:0,right:I,bottom:_},m),et=G===U?ee:Q,en=K?ee:et;t.style.left="auto",t.style.top="auto",t.style.right="0",t.style.bottom="0";let er=t.getBoundingClientRect();t.style.left=E,t.style.top=w,t.style.right=P,t.style.bottom=O,t.style.overflow=L,t.style.overflowX=X,t.style.overflowY=Z,t.parentElement?.removeChild(A);let eo=C(Math.round(B/parseFloat($)*1e3)/1e3),el=C(Math.round(V/parseFloat(W)*1e3)/1e3);if(0===eo||0===el||(0,u.Sh)(n)&&!(0,u.pn)(n))return;let{offset:eu,targetOffset:ei}=j,[ea,es]=R(N,eu),[ec,ef]=R(e,ei);e.x-=ec,e.y-=ef;let[ed,em]=j.points||[],eh=S(em),ep=S(ed),ev=k(e,eh),eg=k(N,ep),ey={...j},eb=[ep,eh],ex=ev.x-eg.x+ea,eE=ev.y-eg.y+es;function i(e,t,n=et){let r=N.x+e,o=N.y+t,l=Math.max(r,n.left),u=Math.max(o,n.top);return Math.max(0,(Math.min(r+B,n.right)-l)*(Math.min(o+V,n.bottom)-u))}let eC=i(ex,eE),ew=i(ex,eE,ee),eM=k(e,["t","l"]),eP=k(N,["t","l"]),eR=k(e,["b","r"]),eS=k(N,["b","r"]),{adjustX:ek,adjustY:ez,shiftX:eO,shiftY:eL}=j.overflow||{},eX=e=>"boolean"==typeof e?e:e>=0;function c(){d=(s=N.y+eE)+V,v=(p=N.x+ex)+B}c();let eZ=eX(ez),ej=ep[0]===eh[0];if(eZ&&"t"===ep[0]&&(d>en.bottom||h.current.bt)){let e=eE;ej?e-=V-F:e=eM.y-eS.y-es;let t=i(ex,e),n=i(ex,e,ee);t>eC||t===eC&&(!K||n>=ew)?(h.current.bt=!0,eE=e,es=-es,eb=[z(eb[0],0),z(eb[1],0)]):h.current.bt=!1}if(eZ&&"b"===ep[0]&&(s<en.top||h.current.tb)){let e=eE;ej?e+=V-F:e=eR.y-eP.y-es;let t=i(ex,e),n=i(ex,e,ee);t>eC||t===eC&&(!K||n>=ew)?(h.current.tb=!0,eE=e,es=-es,eb=[z(eb[0],0),z(eb[1],0)]):h.current.tb=!1}let eA=eX(ek),eN=ep[1]===eh[1];if(eA&&"l"===ep[1]&&(v>en.right||h.current.rl)){let e=ex;eN?e-=B-q:e=eM.x-eS.x-ea;let t=i(e,eE),n=i(e,eE,ee);t>eC||t===eC&&(!K||n>=ew)?(h.current.rl=!0,ex=e,ea=-ea,eb=[z(eb[0],1),z(eb[1],1)]):h.current.rl=!1}if(eA&&"r"===ep[1]&&(p<en.left||h.current.lr)){let e=ex;eN?e+=B-q:e=eR.x-eP.x-ea;let t=i(e,eE),n=i(e,eE,ee);t>eC||t===eC&&(!K||n>=ew)?(h.current.lr=!0,ex=e,ea=-ea,eb=[z(eb[0],1),z(eb[1],1)]):h.current.lr=!1}ey.points=[eb[0].join(""),eb[1].join("")],c();let eW=!0===eO?0:eO;"number"==typeof eW&&(p<ee.left&&(ex-=p-ee.left-ea,e.x+q<ee.left+eW&&(ex+=e.x-ee.left+q-eW)),v>ee.right&&(ex-=v-ee.right-ea,e.x>ee.right-eW&&(ex+=e.x-ee.right+eW)));let e$=!0===eL?0:eL;"number"==typeof e$&&(s<ee.top&&(eE-=s-ee.top-es,e.y+F<ee.top+e$&&(eE+=e.y-ee.top+F-e$)),d>ee.bottom&&(eE-=d-ee.bottom-es,e.y>ee.bottom-e$&&(eE+=e.y-ee.bottom+e$)));let eI=N.x+ex,e_=N.y+eE,eH=e.x,eT=e.y;a?.(t,ey);let eY=er.right-N.x-(ex+N.width),eD=er.bottom-N.y-(eE+N.height);1===eo&&(ex=Math.floor(ex),eY=Math.floor(eY)),1===el&&(eE=Math.floor(eE),eD=Math.floor(eD)),f({ready:!0,offsetX:ex/eo,offsetY:eE/el,offsetR:eY/eo,offsetB:eD/el,arrowX:((Math.max(eI,eH)+Math.min(eI+B,eH+q))/2-eI)/eo,arrowY:((Math.max(e_,eT)+Math.min(e_+V,eT+F))/2-e_)/el,scaleX:eo,scaleY:el,align:ey})}}),v=()=>{f(e=>({...e,ready:!1}))};return(0,u.bt)(v,[r]),(0,u.bt)(()=>{e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,()=>{d.current+=1;let e=d.current;Promise.resolve().then(()=>{d.current===e&&p()})}]}function L(){let e=i.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return i.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),0===r?n():e.current=setTimeout(()=>{n()},1e3*r)}}function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Z=e=>{let{prefixCls:t,isMobile:n,ready:r,open:l,align:u,offsetR:s,offsetB:c,offsetX:f,offsetY:d,arrowPos:h,popupSize:p,motion:v,uniqueContainerClassName:g,uniqueContainerStyle:y}=e,b=`${t}-unique-container`,[x,E]=i.useState(!1),C=m(n,r,l,u,s,c,f,d),w=i.useRef(C);r&&(w.current=C);let M={};return p&&(M.width=p.width,M.height=p.height),i.createElement(a.ZP,X({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${b}-hidden`},v,{visible:l,onVisibleChanged:e=>{E(e)}}),({className:e,style:t})=>{let n=(0,o.W)(b,e,g,{[`${b}-visible`]:x});return i.createElement("div",{className:n,style:{"--arrow-x":`${h?.x||0}px`,"--arrow-y":`${h?.y||0}px`,...w.current,...M,...t,...y}})})},j=({children:e,postTriggerProps:t})=>{let[n,l,a,s]=function(){let[e,t]=i.useState(null),[n,r]=i.useState(!1),[o,l]=i.useState(!1),a=i.useRef(null);return[(0,u.zX)(e=>{!1===e?(a.current=null,r(!1)):o&&n?a.current=e:(r(!0),t(e),a.current=null,n||l(!0))}),n,e,(0,u.zX)(e=>{e?(l(!1),a.current&&(t(a.current),a.current=null)):(l(!1),a.current=null)})]}(),c=i.useMemo(()=>a&&t?t(a):a,[a,t]),[f,d]=i.useState(null),[m,h]=i.useState(null),y=i.useRef(null),x=(0,u.zX)(e=>{y.current=e,(0,u.Sh)(e)&&f!==e&&d(e)}),E=i.useRef(null),C=L(),w=(0,u.zX)((e,t)=>{E.current=t,C(()=>{n(e)},e.delay)}),M=e=>{C(()=>{E.current?.()||n(!1)},e)},P=(0,u.zX)(e=>{s(e)}),[R,S,k,z,X,j,A,,,N,W]=O(l,f,c?.target,c?.popupPlacement,c?.builtinPlacements||{},c?.popupAlign,void 0,!1),$=i.useMemo(()=>{if(!c)return"";let e=b(c.builtinPlacements||{},c.prefixCls||"",N,!1);return(0,o.W)(e,c.getPopupClassNameFromAlign?.(N))},[N,c?.getPopupClassNameFromAlign,c?.builtinPlacements,c?.prefixCls]),I=i.useMemo(()=>({show:w,hide:M}),[]);i.useEffect(()=>{W()},[c?.target]);let _=(0,u.zX)(()=>(W(),Promise.resolve())),H=i.useRef({}),T=i.useContext(v),Y=i.useMemo(()=>({registerSubPopup:(e,t)=>{H.current[e]=t,T?.registerSubPopup(e,t)}}),[T]),D=c?.prefixCls;return i.createElement(g.Provider,{value:I},e,c&&i.createElement(v.Provider,{value:Y},i.createElement(p,{ref:x,portal:r.Z,onEsc:c.onEsc,prefixCls:D,popup:c.popup,className:(0,o.W)(c.popupClassName,$,`${D}-unique-controlled`),style:c.popupStyle,target:c.target,open:l,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:P,ready:R,offsetX:S,offsetY:k,offsetR:z,offsetB:X,onAlign:W,onPrepare:_,onResize:e=>h({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:j,y:A},align:N,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},i.createElement(Z,{prefixCls:D,isMobile:!1,ready:R,open:l,align:N,offsetR:z,offsetB:X,offsetX:S,offsetY:k,arrowPos:{x:j,y:A},popupSize:m,motion:c.popupMotion,uniqueContainerClassName:(0,o.W)(c.uniqueContainerClassName,$),uniqueContainerStyle:c.uniqueContainerStyle}))))},A=n(77667),N=function(e=r.Z){return i.forwardRef((t,n)=>{var r;let a,s;let{prefixCls:c="rc-trigger-popup",children:f,action:d="hover",showAction:m,hideAction:h,disabled:C=!1,popupVisible:w,defaultPopupVisible:M,onOpenChange:P,afterOpenChange:R,onPopupVisibleChange:S,afterPopupVisibleChange:k,mouseEnterDelay:z,mouseLeaveDelay:X=.1,focusDelay:Z,blurDelay:j,mask:N,maskClosable:W=!0,getPopupContainer:$,forceRender:I,autoDestroy:_,popup:H,popupClassName:T,uniqueContainerClassName:Y,uniqueContainerStyle:D,popupStyle:V,popupPlacement:B,builtinPlacements:F={},popupAlign:q,zIndex:G,stretch:U,getPopupClassNameFromAlign:J,fresh:K,unique:Q,alignPoint:ee,onPopupClick:et,onPopupAlign:en,arrow:er,popupMotion:eo,maskMotion:el,mobile:eu,...ei}=t,ea=void 0===w,es=!!eu,ec=i.useRef({}),ef=i.useContext(v),ed=i.useMemo(()=>({registerSubPopup:(e,t)=>{ec.current[e]=t,ef?.registerSubPopup(e,t)}}),[ef]),em=i.useContext(g),eh=(0,u.Me)(),[ep,ev]=i.useState(null),eg=i.useRef(null),ey=(0,u.zX)(e=>{eg.current=e,(0,u.Sh)(e)&&ep!==e&&ev(e),ef?.registerSubPopup(eh,e)}),[eb,ex]=i.useState(null),eE=i.useRef(null),eC=(0,u.zX)(e=>{let t=(0,u.bn)(e);(0,u.Sh)(t)&&eb!==t&&(ex(t),eE.current=t)}),ew={},eM=(0,u.zX)(e=>eb?.contains(e)||u.Ay(eb)?.host===e||e===eb||ep?.contains(e)||u.Ay(ep)?.host===e||e===ep||Object.values(ec.current).some(t=>t?.contains(e)||e===t)),eP=er?{...!0!==er?er:{}}:null,[eR,eS]=(0,u.zk)(M||!1,w),ek=eR||!1,ez=ek&&!C,eO=i.useMemo(()=>{let e="function"==typeof f?f({open:ez}):f;return i.Children.only(e)},[f,ez]),eL=eO?.props||{},eX=(0,u.zX)(()=>ez),eZ=(0,u.zX)((e=0)=>({popup:H,target:eb,delay:e,prefixCls:c,popupClassName:T,uniqueContainerClassName:Y,uniqueContainerStyle:D,popupStyle:V,popupPlacement:B,builtinPlacements:F,popupAlign:q,zIndex:G,mask:N,maskClosable:W,popupMotion:eo,maskMotion:el,arrow:eP,getPopupContainer:$,getPopupClassNameFromAlign:J,id:eh,onEsc:e$}));(0,u.bt)(()=>{em&&Q&&eb&&!ea&&!ef&&(ez?em.show(eZ(z),eX):em.hide(X))},[ez,eb]);let ej=i.useRef(ez);ej.current=ez;let eA=(0,u.zX)(e=>{(0,A.flushSync)(()=>{ek!==e&&(eS(e),P?.(e),S?.(e))})}),eN=L(),eW=(e,t=0)=>{if(void 0!==w){eN(()=>{eA(e)},t);return}if(em&&Q&&ea&&!ef){e?em.show(eZ(t),eX):em.hide(t);return}eN(()=>{eA(e)},t)};function e$({top:e}){e&&eW(!1)}let[eI,e_]=i.useState(!1);(0,u.bt)(e=>{(!e||ez)&&e_(!0)},[ez]);let[eH,eT]=i.useState(null),[eY,eD]=i.useState(null),eV=e=>{eD([e.clientX,e.clientY])},[eB,eF,eq,eG,eU,eJ,eK,eQ,e0,e1,e6]=O(ez,ep,ee&&null!==eY?eY:eb,B,F,q,en,es),[e3,e2]=i.useMemo(()=>{let e=y(m??d),t=y(h??d),n=new Set(e),r=new Set(t);return n.has("hover")&&!n.has("click")&&n.add("touch"),r.has("hover")&&!r.has("click")&&r.add("touch"),[n,r]},[d,m,h]),e7=e3.has("click"),e8=e2.has("click")||e2.has("contextMenu"),e5=(0,u.zX)(()=>{eI||e6()});r=()=>{ej.current&&ee&&e8&&eW(!1)},(0,u.bt)(()=>{if(ez&&eb&&ep){let t=E(eb),n=E(ep),o=x(ep),l=new Set([o,...t,...n]);function e(){e5(),r()}return l.forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),o.addEventListener("resize",e,{passive:!0}),e5(),()=>{l.forEach(t=>{t.removeEventListener("scroll",e),o.removeEventListener("resize",e)})}}},[ez,eb,ep]),(0,u.bt)(()=>{e5()},[eY,B]),(0,u.bt)(()=>{ez&&!F?.[B]&&e5()},[JSON.stringify(q)]);let e9=i.useMemo(()=>{let e=b(F,c,e1,ee);return(0,o.W)(e,J?.(e1))},[e1,J,F,c,ee]);i.useImperativeHandle(n,()=>({nativeElement:eE.current,popupElement:eg.current,forceAlign:e5}));let[e4,te]=i.useState(0),[tt,tn]=i.useState(0),tr=()=>{if(U&&eb){let e=eb.getBoundingClientRect();te(e.width),tn(e.height)}};function to(e,t,n,r,o){ew[e]=(l,...u)=>{o&&o()||(r?.(l),eW(t,n)),eL[e]?.(l,...u)}}(0,u.bt)(()=>{eH&&(e6(),eH(),eT(null))},[eH]);let tl=e3.has("touch"),tu=e2.has("touch"),ti=i.useRef(!1);(tl||tu)&&(ew.onTouchStart=(...e)=>{ti.current=!0,ej.current&&tu?eW(!1):!ej.current&&tl&&eW(!0),eL.onTouchStart?.(...e)}),(e7||e8)&&(ew.onClick=(e,...t)=>{ej.current&&e8?eW(!1):!ej.current&&e7&&(eV(e),eW(!0)),eL.onClick?.(e,...t),ti.current=!1});let ta=function(e,t,n,r,o,l,a,s){let c=i.useRef(e);c.current=e;let f=i.useRef(!1);return i.useEffect(()=>{if(t&&r&&(!o||l)){let e=()=>{f.current=!1},t=e=>{!c.current||a(e.composedPath?.()?.[0]||e.target)||f.current||s(!1)},o=x(r);o.addEventListener("pointerdown",e,!0),o.addEventListener("mousedown",t,!0),o.addEventListener("contextmenu",t,!0);let l=(0,u.Ay)(n);return l&&(l.addEventListener("mousedown",t,!0),l.addEventListener("contextmenu",t,!0)),()=>{o.removeEventListener("pointerdown",e,!0),o.removeEventListener("mousedown",t,!0),o.removeEventListener("contextmenu",t,!0),l&&(l.removeEventListener("mousedown",t,!0),l.removeEventListener("contextmenu",t,!0))}}},[t,n,r,o,l]),function(){f.current=!0}}(ez,e8||tu,eb,ep,N,W,eM,eW),ts=e3.has("hover"),tc=e2.has("hover"),tf=()=>ti.current;if(ts){let e=e=>{eV(e)};to("onMouseEnter",!0,z,e,tf),to("onPointerEnter",!0,z,e,tf),a=e=>{(ez||eI)&&ep?.contains(e.target)&&eW(!0,z)},ee&&(ew.onMouseMove=e=>{eL.onMouseMove?.(e)})}tc&&(to("onMouseLeave",!1,X,void 0,tf),to("onPointerLeave",!1,X,void 0,tf),s=()=>{eW(!1,X)}),e3.has("focus")&&to("onFocus",!0,Z),e2.has("focus")&&to("onBlur",!1,j),e3.has("contextMenu")&&(ew.onContextMenu=(e,...t)=>{ej.current&&e2.has("contextMenu")?eW(!1):(eV(e),eW(!0)),e.preventDefault(),eL.onContextMenu?.(e,...t)});let td=i.useRef(!1);td.current||=I||ez||eI;let tm={...eL,...ew},th={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{ei[e]&&(th[e]=(...t)=>{tm[e]?.(...t),ei[e](...t)})}),(0,l.yU)(ez,eb,()=>{tr(),e5()});let tp=(0,u.x1)(eC,(0,u.C4)(eO)),tv=i.cloneElement(eO,{...tm,...th,ref:tp});return i.createElement(i.Fragment,null,tv,td.current&&(!em||!Q)&&i.createElement(v.Provider,{value:ed},i.createElement(p,{portal:e,ref:ey,prefixCls:c,popup:H,className:(0,o.W)(T,!es&&e9),style:V,target:eb,onMouseEnter:a,onMouseLeave:s,onPointerEnter:a,zIndex:G,open:ez,keepDom:eI,fresh:K,onClick:et,onPointerDownCapture:ta,mask:N,motion:eo,maskMotion:el,onVisibleChanged:e=>{e_(!1),e6(),R?.(e),k?.(e)},onPrepare:()=>new Promise(e=>{tr(),eT(()=>e)}),forceRender:I,autoDestroy:_||!1,getPopupContainer:$,onEsc:e$,align:e1,arrow:eP,arrowPos:{x:eJ,y:eK},ready:eB,offsetX:eF,offsetY:eq,offsetR:eG,offsetB:eU,onAlign:e5,stretch:U,targetWidth:e4/eQ,targetHeight:tt/e0,mobile:eu})))})}(r.Z)},70674:function(e,t,n){n.d(t,{G8:function(){return u},Uu:function(){return i},ln:function(){return a}});var r=n(60635);function o(){}let{resetWarned:l}=n(13063).warning,u=r.createContext({}),i=()=>{let e=()=>{};return e.deprecated=o,e},a=i},12502:function(e,t,n){let r,o,l,u;n.d(t,{ZP:function(){return I},w6:function(){return N}});var i=n(60635),a=n(60662),s=n(46139),c=n(13063),f=n(91560),d=n(70674),m=n(99020),h=n(26755),p=n(46938),v=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>(0,h.f)(null==t?void 0:t.Modal),[t]);let o=i.useMemo(()=>({...t,exist:!0}),[t]);return i.createElement(p.Z.Provider,{value:o},n)},g=n(75388),y=n(56465),b=n(44436),x=n(93323),E=n(15017),C=n(73703),w=n(48896),M=n(26273),P=n(21636),R=n(80971);let S=i.createContext(!0);function k(e){let t=i.useContext(S),{children:n}=e,[,r]=(0,R.ZP)(),{motion:o}=r,l=i.useRef(!1);return(l.current||(l.current=t!==o),l.current)?i.createElement(S.Provider,{value:o},i.createElement(P.zt,{motion:o},n)):n}var z=()=>null,O=n(28811),L=(e,t)=>{let[n,r]=(0,R.ZP)();return(0,a.xy)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>(0,O.JT)(e))};let X=e=>{let{iconPrefixCls:t,csp:n}=e;return L(t,n),null},Z=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];function j(){return r||C.Rf}function A(){return o||C.oR}let N=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(j(),"-").concat(e):j()),getIconPrefixCls:A,getRootPrefixCls:()=>r||j(),getTheme:()=>l,holderRender:u}),W=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:l,anchor:u,app:h,form:p,locale:P,componentSize:R,direction:S,space:O,splitter:L,virtual:j,dropdownMatchSelectWidth:A,popupMatchSelectWidth:N,popupOverflow:W,legacyLocale:$,parentContext:I,iconPrefixCls:_,theme:H,componentDisabled:T,segmented:Y,statistic:D,spin:V,calendar:B,carousel:F,cascader:q,collapse:G,typography:U,checkbox:J,descriptions:K,divider:Q,drawer:ee,skeleton:et,steps:en,image:er,layout:eo,list:el,listy:eu,mentions:ei,modal:ea,progress:es,result:ec,slider:ef,breadcrumb:ed,masonry:em,menu:eh,pagination:ep,input:ev,inputPassword:eg,inputSearch:ey,textArea:eb,otp:ex,empty:eE,badge:eC,borderBeam:ew,radio:eM,rate:eP,ribbon:eR,switch:eS,transfer:ek,avatar:ez,message:eO,tag:eL,table:eX,card:eZ,cardMeta:ej,tabs:eA,timeline:eN,timePicker:eW,upload:e$,notification:eI,tree:e_,colorPicker:eH,datePicker:eT,rangePicker:eY,flex:eD,wave:eV,dropdown:eB,warning:eF,tour:eq,tooltip:eG,popover:eU,popconfirm:eJ,qrcode:eK,floatButton:eQ,floatButtonGroup:e0,variant:e1,inputNumber:e6,treeSelect:e3,watermark:e2}=e,e7=i.useMemo(()=>{var e;return(0,f.PO)(P)&&Object.prototype.hasOwnProperty.call(P,"default")&&(null===(e=P.default)||void 0===e?void 0:e.locale)?P.default:P},[P]),e8=i.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||I.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[I.getPrefixCls,e.prefixCls]),e5=_||I.iconPrefixCls||C.oR,e9=n||I.csp,e4=function(e,t,n){var r;(0,d.ln)("ConfigProvider");let o=e||{},l=!1!==o.inherit&&t?t:{...b.u_,hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:b.u_.hashed,cssVar:null==t?void 0:t.cssVar,zeroRuntime:null==t?void 0:t.zeroRuntime},u=(0,i.useId)();return(0,c.Ye)(()=>{var r;if(!e)return t;let i={...l.components};Object.keys(e.components||{}).forEach(t=>{i[t]={...i[t],...e.components[t]}});let a="css-var-".concat(u.replace(/:/g,"")),s={prefix:null==n?void 0:n.prefixCls,...l.cssVar,...o.cssVar,key:(null===(r=o.cssVar)||void 0===r?void 0:r.key)||a};return{...l,...o,token:{...l.token,...o.token},components:i,cssVar:s}},[o,l,null==n?void 0:n.prefixCls,u],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,c.Xy)(e,r,!0)}))}(H,I.theme,{prefixCls:e8("")}),te={csp:e9,autoInsertSpaceInButton:r,alert:o,affix:l,anchor:u,app:h,locale:e7||$,direction:S,space:O,splitter:L,virtual:j,popupMatchSelectWidth:null!=N?N:A,popupOverflow:W,getPrefixCls:e8,iconPrefixCls:e5,theme:e4,segmented:Y,statistic:D,spin:V,calendar:B,carousel:F,cascader:q,collapse:G,typography:U,checkbox:J,descriptions:K,divider:Q,drawer:ee,skeleton:et,steps:en,image:er,input:ev,inputPassword:eg,inputSearch:ey,textArea:eb,otp:ex,layout:eo,list:el,listy:eu,mentions:ei,modal:ea,progress:es,result:ec,slider:ef,breadcrumb:ed,masonry:em,menu:eh,pagination:ep,empty:eE,badge:eC,borderBeam:ew,radio:eM,rate:eP,ribbon:eR,switch:eS,transfer:ek,avatar:ez,message:eO,tag:eL,table:eX,card:eZ,cardMeta:ej,tabs:eA,timeline:eN,timePicker:eW,upload:e$,notification:eI,tree:e_,colorPicker:eH,datePicker:eT,rangePicker:eY,flex:eD,wave:eV,dropdown:eB,warning:eF,tour:eq,tooltip:eG,popover:eU,popconfirm:eJ,qrcode:eK,floatButton:eQ,floatButtonGroup:e0,variant:e1,inputNumber:e6,treeSelect:e3,watermark:e2},tt={...I};Object.keys(te).forEach(e=>{void 0!==te[e]&&(tt[e]=te[e])}),Z.forEach(t=>{let n=e[t];n&&(tt[t]=n)}),void 0!==r&&(tt.button={autoInsertSpace:r,...tt.button});let tn=(0,c.Ye)(()=>tt,tt,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:tr}=i.useContext(a.uP),to=i.useMemo(()=>({prefixCls:e5,csp:e9,layer:tr?"antd":void 0,zeroRuntime:!!tr||(null==e4?void 0:e4.zeroRuntime)}),[e5,e9,tr,null==e4?void 0:e4.zeroRuntime]),tl=i.createElement(i.Fragment,null,i.createElement(X,{iconPrefixCls:e5,csp:e9}),i.createElement(z,{dropdownMatchSelectWidth:A}),t),tu=i.useMemo(()=>{var e,t,n,r;return(0,c.TS)((null===(e=g.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=tn.locale)||void 0===n?void 0:null===(t=n.Form)||void 0===t?void 0:t.defaultValidateMessages)||{},(null===(r=tn.form)||void 0===r?void 0:r.validateMessages)||{},(null==p?void 0:p.validateMessages)||{})},[tn,null==p?void 0:p.validateMessages]);Object.keys(tu).length>0&&(tl=i.createElement(m.Z.Provider,{value:tu},tl)),e7&&(tl=i.createElement(v,{locale:e7,_ANT_MARK__:"internalMark"},tl)),(e5||e9)&&(tl=i.createElement(s.Z.Provider,{value:to},tl)),R&&(tl=i.createElement(M.q,{size:R},tl)),tl=i.createElement(k,null,tl),(null==eG?void 0:eG.unique)&&(tl=i.createElement(E.Z,null,tl));let ti=i.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...o}=e4||{},l=e&&(!Array.isArray(e)||e.length>0)?(0,a.jG)(e):y.Z,u={};Object.entries(n||{}).forEach(e=>{let[t,n]=e,r={...n};"algorithm"in r&&(!0===r.algorithm?r.theme=l:(Array.isArray(r.algorithm)||(0,f.mf)(r.algorithm))&&(r.theme=(0,a.jG)(r.algorithm)),delete r.algorithm),u[t]=r});let i={...x.Z,...t};return{...o,theme:l,token:i,components:u,override:{override:i,...u},cssVar:r}},[e4]);return H&&(tl=i.createElement(b.Mj.Provider,{value:ti},tl)),tn.warning&&(tl=i.createElement(d.G8.Provider,{value:tn.warning},tl)),void 0!==T&&(tl=i.createElement(w.n,{disabled:T},tl)),i.createElement(C.E_.Provider,{value:tn},tl)},$=e=>{let t=i.useContext(C.E_),n=i.useContext(p.Z);return i.createElement(W,{parentContext:t,legacyLocale:n,...e})};$.ConfigContext=C.E_,$.SizeContext=M.Z,$.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:i,holderRender:a}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(u=a),i&&(l=i)},$.useConfig=function(){return{componentDisabled:(0,i.useContext)(w.Z),componentSize:(0,i.useContext)(M.Z)}},Object.defineProperty($,"SizeContext",{get:()=>M.Z});var I=$},99020:function(e,t,n){var r=n(60635);t.Z=(0,r.createContext)(void 0)},26755:function(e,t,n){n.d(t,{A:function(){return a},f:function(){return i}});var r=n(75388);let o={...r.Z.Modal},l=[],u=()=>l.reduce((e,t)=>({...e,...t}),r.Z.Modal);function i(e){if(e){let t={...e};return l.push(t),o=u(),()=>{l=l.filter(e=>e!==t),o=u()}}o={...r.Z.Modal}}function a(){return o}},15017:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(60635),o=n(13299),l=n(91560),u=n(21636),i=n(86937),a=n(87092),s=n(73703),c=e=>{let{children:t}=e,{getPrefixCls:n}=r.useContext(s.E_),o=n();return r.isValidElement(t)?r.createElement(u.ZP,{visible:!0,motionName:"".concat(o,"-fade"),motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},e=>{let{style:n,className:r}=e;return(0,a.Tm)(t,e=>({className:(0,i.W)(e.className,r),style:{...e.style,...n}}))}):t};let f=[null,null];var d=e=>{let{children:t}=e;return r.createElement(o._v,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:o}=e,u=(0,l.mf)(o)?o():o,i=function(e){if(f[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),f[0]=e,f[1]=t}return f[1]}(n);return{...e,getPopupContainer:null,arrow:!1,popup:r.createElement(c,{key:t},u),builtinPlacements:i}}},t)}},27473:function(e,t,n){var r=n(38321);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}}),n.o(r,"useServerInsertedHTML")&&n.d(t,{useServerInsertedHTML:function(){return r.useServerInsertedHTML}})}}]);
|
package/dist/web/dist/_next/static/chunks/{253-f4ac7af6647e4dba.js → 327-6b8f348b06e7977f.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="48493fbd-acd1-451a-9644-620723a18a83",e._sentryDebugIdIdentifier="sentry-dbid-48493fbd-acd1-451a-9644-620723a18a83")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[253],{94518:function(e,t,n){n.d(t,{m:function(){return r}});var l=n(72835);function r(e){let{filterBar:t,listPanel:n,detailPanel:r}=e;return(0,l.jsxs)("div",{className:"flex h-full",children:[(0,l.jsxs)("div",{className:"flex w-80 flex-col border-r border-gray-200 bg-white",children:[t,n]}),(0,l.jsx)("div",{className:"flex-1 overflow-auto bg-gray-50 p-6",children:r})]})}},63718:function(e,t,n){n.d(t,{L:function(){return a}});var l=n(72835),r=n(60635);function a(e){let{items:t,selectedId:n,onSelect:a,loading:s,emptyText:i="暂无数据",onLoadMore:c,loadingMore:u,exhausted:o}=e,d=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!c)return;let e=d.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&c()},{root:e.closest(".overflow-auto"),rootMargin:"200px"});return t.observe(e),()=>t.disconnect()},[c]),(0,l.jsxs)("div",{className:"flex-1 overflow-auto",children:[s?(0,l.jsx)("div",{className:"p-4 text-center text-sm text-gray-400",children:"加载中…"}):0===t.length?(0,l.jsx)("div",{className:"p-4 text-center text-sm text-gray-400",children:i}):(0,l.jsx)("ul",{className:"divide-y divide-gray-100",children:t.map(e=>(0,l.jsx)("li",{role:"button",tabIndex:0,onClick:()=>a(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&a(e.id)},className:"cursor-pointer px-3 py-2 text-sm transition-colors ".concat(n===e.id?"bg-blue-50":"hover:bg-gray-50"),children:e.content},e.id))}),c&&!s&&t.length>0&&(0,l.jsx)("div",{ref:d,className:"p-3 text-center text-xs text-gray-400",children:u?"加载更多…":o?"没有更多了":""})]})}},27828:function(e,t,n){n.d(t,{dy:function(){return f},rY:function(){return g},h5:function(){return x},oj:function(){return i}});var l=n(72835),r=n(84704);function a(e){return String(e).padStart(2,"0")}function s(e){let{value:t}=e;if(!t)return null;let n=new Date(t);return Number.isNaN(n.getTime())?null:(0,l.jsx)("span",{title:function(e){let t="string"==typeof e?new Date(e):e;return Number.isNaN(t.getTime())?"":"".concat(t.getFullYear(),"/").concat(a(t.getMonth()+1),"/").concat(a(t.getDate())," ")+"".concat(a(t.getHours()),":").concat(a(t.getMinutes()),":").concat(a(t.getSeconds()))}(n),className:"cursor-default",children:function(e,t){let n="string"==typeof e?new Date(e):e,l=n.getTime();if(Number.isNaN(l))return"";let r=Math.floor(Math.max(0,t.getTime()-l)/6e4);if(r<1)return"刚刚";if(r<60)return"".concat(r," 分钟前");let s=Math.floor(r/60);if(s<24)return"".concat(s," 小时前");let i=Math.floor((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime())/864e5);return i<=1?"昨天":i<30?"".concat(i," 天前"):"".concat(n.getFullYear(),"/").concat(a(n.getMonth()+1),"/").concat(a(n.getDate()))}(n,new Date)})}function i(e){let{name:t,headline:n,source:r,updatedAt:a}=e;return(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("div",{className:"font-medium text-gray-900",children:t}),n?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:n}):null,(0,l.jsxs)("div",{className:"mt-0.5 flex items-center gap-2 text-xs text-gray-400",children:[r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:r}),(0,l.jsx)("span",{children:"\xb7"})]}):null,(0,l.jsx)(s,{value:a})]})]})}let c={active:"启动中",closed:"结束"},u={recommended:"推荐人才",pending_invite:"待邀请",invited:"已邀请待回复",replied:"已回复待筛选",to_client:"待推荐给客户",interview_pending:"已推荐待安排面试",interview_scheduled:"已安排面试",offer_pending:"待offer",onboarding:"待上班",rejected:"不合适"};function o(e){let{stages:t}=e,n=Object.keys(t).filter(e=>{var n,l;return(null!==(l=null===(n=t[e])||void 0===n?void 0:n.total)&&void 0!==l?l:0)>0});return n.length?(0,l.jsx)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:n.map(e=>{var n;let r=t[e],a=null!==(n=u[e])&&void 0!==n?n:e;return(0,l.jsxs)("span",{title:"".concat(a," 今天").concat(r.today,"/本周").concat(r.week,"/全部").concat(r.total),className:"rounded bg-[color:var(--brand-soft)] px-1.5 py-0.5 text-[10px] font-medium",style:{color:"var(--brand)"},children:[a," ",r.today,"/",r.week,"/",r.total]},e)})}):null}function d(e){let{platforms:t}=e;return t.length?(0,l.jsx)("span",{className:"flex items-center gap-0.5",title:t.join("、"),children:t.map(e=>{let t=(0,r.mS)(e);return(0,l.jsx)("span",{title:e,className:"flex h-4 w-4 items-center justify-center rounded bg-[color:var(--brand-soft)] text-[9px] font-semibold",style:{color:t.fg},children:t.label},e)})}):null}function f(e){var t,n;let{title:r,status:a,hmhLocal:i,subtitle:u,customerName:f,opName:x,rsNames:g,time:h,updatedAt:m,createdAt:p,stages:v,platforms:y,myRole:b}=e,j=null!==(t=null!=m?m:h)&&void 0!==t?t:"",N=null!=p?p:"",w=!!j&&!!N&&1e3>Math.abs(new Date(j).getTime()-new Date(N).getTime());return(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"truncate font-medium text-gray-900",children:r}),(0,l.jsx)("span",{className:"shrink-0 rounded px-1.5 py-0.5 text-xs ".concat("active"===a?"bg-emerald-100 text-emerald-700":"bg-gray-100 text-gray-500"),children:null!==(n=c[a])&&void 0!==n?n:a}),i?(0,l.jsx)("span",{className:"shrink-0 rounded bg-purple-100 px-1.5 py-0.5 text-xs text-purple-700",children:"本地"}):null,"op"===b?(0,l.jsx)("span",{className:"shrink-0 rounded bg-blue-100 px-1.5 py-0.5 text-xs text-blue-700",children:"op"}):null,"rs"===b?(0,l.jsx)("span",{className:"shrink-0 rounded bg-cyan-100 px-1.5 py-0.5 text-xs text-cyan-700",children:"rs"}):null,y?(0,l.jsx)(d,{platforms:y}):null]}),u?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:u}):null,void 0!==f?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:f}):null,x||g&&g.length?(0,l.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 text-xs text-gray-500",children:[x?(0,l.jsxs)("span",{children:["op:",(0,l.jsx)("span",{className:"text-gray-700",children:x})]}):null,g&&g.length?(0,l.jsxs)("span",{children:["rs:",(0,l.jsx)("span",{className:"text-gray-700",children:g.join("、")})]}):null]}):null,v?(0,l.jsx)(o,{stages:v}):null,j?(0,l.jsxs)("div",{className:"mt-0.5 flex items-center justify-between gap-2 text-xs text-gray-400",children:[(0,l.jsx)(s,{value:j}),N&&!w?(0,l.jsx)(s,{value:N}):null]}):null]})}function x(e){var t;let{name:n,headline:r,aiReason:a,overall:i,invitationChannel:c,stageLabel:u,updatedAt:o,onNameClick:d}=e;return(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[d?(0,l.jsx)("button",{type:"button",title:"查看人才详情",onClick:e=>{e.stopPropagation(),d()},className:"font-medium text-blue-600 hover:underline",children:n}):(0,l.jsx)("span",{className:"font-medium text-gray-900",children:n}),null!=i?(0,l.jsxs)("span",{className:"rounded bg-emerald-100 px-1.5 py-0.5 text-xs text-emerald-700",children:[i,"分"]}):null,c?(0,l.jsx)("span",{className:"rounded bg-sky-100 px-1.5 py-0.5 text-xs text-sky-700",children:null!==(t=({email:"邮件",linkedin:"LinkedIn",wechat:"微信"})[c])&&void 0!==t?t:c}):null]}),a?(0,l.jsxs)("div",{className:"line-clamp-2 text-xs text-gray-600",title:a,children:[(0,l.jsx)("span",{className:"text-blue-500",children:"AI 理由:"}),a]}):r?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:r}):null,(0,l.jsxs)("div",{className:"mt-0.5 flex items-center gap-2 text-xs text-gray-400",children:[u?(0,l.jsx)("span",{className:"rounded bg-gray-100 px-1.5 py-0.5 text-xs text-gray-500",children:u}):null,(0,l.jsx)(s,{value:o})]})]})}function g(e){let{title:t,source:n,company:r,sourceUrl:a,updatedAt:i}=e;return(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"font-medium text-gray-900",children:t}),(0,l.jsx)("span",{className:"rounded bg-blue-100 px-1.5 py-0.5 text-xs text-blue-700",children:n})]}),r?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:r}):null,(0,l.jsxs)("div",{className:"mt-0.5 flex items-center gap-2 text-xs text-gray-400",children:[(0,l.jsx)(s,{value:i}),a?(0,l.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"text-blue-500 hover:underline",onClick:e=>e.stopPropagation(),children:"来源"}):null]})]})}},26119:function(e,t,n){n.d(t,{B:function(){return s}});var l=n(72835),r=n(60635),a=n(82182);function s(e){let[t,n]=(0,r.useState)(new Set),[s,i]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),[o,d]=(0,r.useState)(null),f=(0,r.useCallback)(e=>{n(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),x=(0,r.useCallback)(e=>{let t=new Set(e);n(e=>{let n=new Set(Array.from(e).filter(e=>t.has(e)));return n.size===e.size?e:n})},[]),g=(0,r.useCallback)(()=>n(new Set),[]),h=(0,r.useCallback)(e=>(0,l.jsx)("input",{type:"checkbox",className:"mt-1 accent-blue-600",checked:t.has(e),onChange:()=>f(e),onClick:e=>e.stopPropagation()}),[t,f]),m=(0,r.useCallback)(async()=>{if(!s)return;u(!0),d(null);let t=s.ids;try{var l,r;let s=await fetch(e.deleteUrl,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:t})});if(!s.ok){let l=await s.json().catch(()=>null),i=null==l?void 0:l.message;if(401===s.status){d("登录已过期,请在弹窗中重新登录;登录后自动继续删除"),(0,a.jr)({message:"string"==typeof i?i:"登录已过期,请重新登录",oldUserId:null!==(r=e.currentUserId)&&void 0!==r?r:null,retry:async()=>{var l;let r=await fetch(e.deleteUrl,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:t})});if(!r.ok){let e=await r.json().catch(()=>null),t=null==e?void 0:e.message;return d("string"==typeof t?t:"续跑删除仍失败,请稍后重试"),!1}return n(new Set),d("已删除 ".concat(t.length," 条")),null===(l=e.onDeleted)||void 0===l||l.call(e),!0}});return}d("string"==typeof i?i:"操作失败,请稍后重试");return}n(new Set),d("已删除 ".concat(t.length," 条")),null===(l=e.onDeleted)||void 0===l||l.call(e)}finally{u(!1),i(null)}},[s,e.deleteUrl,e.onDeleted,e.currentUserId]),p=(0,r.useCallback)(e=>(0,l.jsxs)("div",{className:"flex items-center gap-3 border-t border-gray-100 px-3 py-2",children:[(0,l.jsxs)("label",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[(0,l.jsx)("input",{type:"checkbox",className:"accent-blue-600",checked:e.length>0&&t.size===e.length,onChange:()=>n(t=>t.size===e.length&&e.length>0?new Set:new Set(e.map(e=>String(e.id))))}),"全选"]}),t.size>0&&(0,l.jsxs)("span",{className:"flex items-center gap-2 text-sm",children:[(0,l.jsxs)("span",{className:"text-gray-500",children:["已选 ",t.size," 条"]}),(0,l.jsx)("button",{type:"button",onClick:()=>i({ids:Array.from(t).map(Number)}),className:"rounded-lg bg-red-600 px-3 py-1 text-white hover:bg-red-700",children:"删除"})]}),o&&(0,l.jsx)("span",{className:"text-xs text-green-600",children:o})]}),[t,o]);return{selectedIds:t,checkbox:h,prune:x,bar:p,modal:(0,r.useCallback)(()=>s?(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",children:(0,l.jsxs)("div",{className:"w-96 rounded-xl bg-white p-6 shadow-xl",children:[(0,l.jsx)("h3",{className:"text-base font-semibold text-gray-900",children:"删除确认"}),(0,l.jsxs)("p",{className:"mt-3 text-sm text-gray-600",children:["确定删除选中的 ",s.ids.length," 条",e.label,"吗?删除后不能自行恢复;如误删,请联系管理员找回。"]}),(0,l.jsxs)("div",{className:"mt-6 flex justify-end gap-2",children:[(0,l.jsx)("button",{type:"button",disabled:c,onClick:()=>i(null),className:"rounded-lg px-4 py-1.5 text-sm text-gray-600 hover:bg-gray-100",children:"取消"}),(0,l.jsx)("button",{type:"button",disabled:c,onClick:()=>void m(),className:"rounded-lg bg-red-600 px-4 py-1.5 text-sm text-white hover:bg-red-700 disabled:opacity-50",children:c?"处理中…":"确定"})]})]})}):null,[s,c,m,e.label]),clear:g}}},93464:function(e,t,n){n.d(t,{k:function(){return r}});var l=n(60635);function r(e){var t,n,r;let a=null!==(t=e.pageSize)&&void 0!==t?t:50,[s,i]=(0,l.useState)([]),[c,u]=(0,l.useState)(0),[o,d]=(0,l.useState)(!0),[f,x]=(0,l.useState)(!1),[g,h]=(0,l.useState)(null),m=(0,l.useRef)(0),p=(0,l.useRef)(!1),v=(0,l.useRef)([]),y=null!==(n=e.byKey)&&void 0!==n?n:e=>String(e.id),b=(0,l.useRef)(0),j=(0,l.useCallback)(async(t,n)=>{let l=++m.current;0===t?d(!0):x(!0),h(null);try{var r;let s=await e.fetchPage(t,a);if(l!==m.current)return;b.current=null!==(r=s.nextOffset)&&void 0!==r?r:t+s.items.length,n&&0===s.items.length?u(e=>Math.min(e,v.current.length)):u(s.total),i(e=>{if(!n)return s.items;let t=new Set(e.map(y));return[...e,...s.items.filter(e=>!t.has(y(e)))]})}catch(e){if(l!==m.current)return;h(e instanceof Error?e.message:"加载失败")}finally{l===m.current&&(d(!1),x(!1),p.current=!1)}},[e.fetchPage,a]);(0,l.useEffect)(()=>{p.current=!0,j(0,!1)},[j,...null!==(r=e.deps)&&void 0!==r?r:[]]),(0,l.useEffect)(()=>{v.current=s},[s]);let N=(0,l.useCallback)(()=>{!p.current&&(v.current.length>=c||(p.current=!0,j(b.current,!0)))},[j,c]),w=(0,l.useCallback)(()=>{p.current=!0,b.current=0,j(0,!1)},[j]);return{items:s,total:c,loading:o,loadingMore:f,exhausted:!o&&s.length>=c,error:g,loadMore:N,refresh:w}}},65777:function(e,t,n){let l;n.d(t,{Cd:function(){return S},Xc:function(){return C},aG:function(){return w},cp:function(){return k},nu:function(){return N},tQ:function(){return E}});var r=n(60635),a=n(74431),s=n(67002),i=n(60529);let c=null,u=null,o=null,d=new Set;function f(){d.forEach(e=>e())}function x(e){c=c?{...c,refreshing:e}:{...y,refreshing:e},f()}async function g(){try{return await (0,a.aA)("/auth/session")}catch(e){return null}}async function h(e){let t=new Headers,n=(0,s.Xc)();n&&t.set("Authorization","UTOKEN ".concat(n));try{return await (0,a.aA)(e,{headers:t})}catch(e){return null}}async function m(){x(!0);try{var e;let[t,n]=await Promise.all([g(),h("/datasync/state")]),r=(null==t?void 0:t.loggedIn)&&t.token?t.token:null,a=null!=n?n:null;!a&&t&&r&&r!==(0,s.Xc)()?((0,s.GK)(r),a=await h("/datasync/state")):(0,s.GK)(r),function(e){if(void 0===l){l=e;return}if(e!==l){l=e;try{window.localStorage.removeItem("hm-view-mode")}catch(e){}}}((null==t?void 0:t.loggedIn)&&null!==(e=t.hmUserId)&&void 0!==e?e:null);let i=!!((null==t?void 0:t.loggedIn)||(null==a?void 0:a.loggedIn));if(!t&&!a){c=c?{...c,loadError:"本地服务无响应"}:{...y,loadError:"本地服务无响应"},f();return}c={session:null!=t?t:{loggedIn:!1},sync:a,utoken:(0,s.Xc)(),loadError:null,refreshing:!1,authStatus:i?"in":"out",refresh:p},f()}finally{(null==c?void 0:c.refreshing)&&x(!1)}}function p(){return u||(u=m().finally(()=>{u=null}))}function v(e){return d.add(e),1===d.size&&(p(),o=setInterval(()=>void p(),6e4)),()=>{d.delete(e),0===d.size&&o&&(clearInterval(o),o=null)}}let y={session:null,sync:null,utoken:null,loadError:null,refreshing:!1,authStatus:"loading",refresh:p};function b(){return null!=c?c:y}function j(){return b()}function N(){return(0,r.useSyncExternalStore)(v,b,j)}function w(e){var t;return(null!==(t=null==e?void 0:e.memberships)&&void 0!==t?t:[]).filter(e=>!e.isPersonal&&!e.leftAt)}function k(e){var t,n;let l=null!==(t=null==e?void 0:e.activeTenantId)&&void 0!==t?t:null;if(null==l)return null;let r=(null!==(n=null==e?void 0:e.memberships)&&void 0!==n?n:[]).find(e=>e.tenantId===l&&!e.leftAt);return!r||r.isPersonal?null:l}function S(e,t){var n,l;if(!t)return null;let r=(null!==(n=null==e?void 0:e.memberships)&&void 0!==n?n:[]).find(e=>e.tenantId===t&&!e.leftAt&&!e.isPersonal);return null!==(l=null==r?void 0:r.role)&&void 0!==l?l:null}function E(){return i.env.NEXT_PUBLIC_HUNTER_MATE_SERVER_URL||""}function C(){return(0,s.Xc)()}},82182:function(e,t,n){n.d(t,{H7:function(){return o},jr:function(){return s},mn:function(){return u},nk:function(){return c},qd:function(){return i}});let l=null,r=new Set;function a(){r.forEach(e=>e())}function s(e){l=e,a()}function i(){l&&(l=null,a())}function c(){return l}function u(e){return r.add(e),()=>r.delete(e)}function o(e){if(!e)return null;try{var t,n,l,r,a;let s=e.split(".")[1],i=JSON.parse(decodeURIComponent(escape(atob(s.replace(/-/g,"+").replace(/_/g,"/"))))),c=null!==(a=null!==(r=null!==(l=null==i?void 0:null===(t=i.data)||void 0===t?void 0:t._id)&&void 0!==l?l:null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.id)&&void 0!==r?r:null==i?void 0:i.sub)&&void 0!==a?a:null;return"number"==typeof c?c:null}catch(e){return null}}},8448:function(e,t,n){n.d(t,{d3:function(){return l}});function l(e){return e?("string"==typeof e?new Date(e):e).toLocaleString("zh-CN",{hour12:!1}):""}},74431:function(e,t,n){n.d(t,{Ox:function(){return a},aA:function(){return c}});var l=n(67002),r=n(60529);function a(){return r.env.HUNTER_MATE_SERVER_URL||""}let s=a();class i extends Error{constructor(e,t,n){super(null!=n?n:"请求失败(".concat(e,")").concat(t?": ".concat(t):"")),this.status=e,this.path=t,this.name="HttpError"}}async function c(e,t){let n;try{n=await fetch("".concat(s).concat(e),{cache:"no-store",...function(e){let t=(0,l.Xc)();if(!t)return e;let n=new Headers(null==e?void 0:e.headers);return n.has("Authorization")||n.set("Authorization","UTOKEN ".concat(t)),{...e,headers:n}}(t)})}catch(t){throw new i(0,e,t instanceof Error?t.message:"网络错误")}if(!n.ok)throw new i(n.status,e,"HTTP ".concat(n.status));try{return await n.json()}catch(t){throw new i(n.status,e,t instanceof Error?"响应解析失败: ".concat(t.message):"响应解析失败")}}},84704:function(e,t,n){n.d(t,{mS:function(){return r}});let l={linkedin:{label:"in",fg:"#0a66c2"},builtin:{label:"bi",fg:"#5c2d91"},lagou:{label:"拉",fg:"#00b38a"},zhaopin:{label:"智",fg:"#ff7f00"},"51job":{label:"前",fg:"#ff6000"},liepin:{label:"猎",fg:"#008ccb"},boss:{label:"B",fg:"#00bebd"}};function r(e){var t;return null!==(t=l[e.replace(/^www\./,"").split(".")[0].toLowerCase()])&&void 0!==t?t:{label:e.slice(0,1).toUpperCase(),fg:"var(--brand)"}}},67002:function(e,t,n){n.d(t,{GK:function(){return s},Lc:function(){return i},Xc:function(){return a}});let l=null,r=new Set;function a(){return l}function s(e){e!==l&&(l=e,r.forEach(e=>e()))}function i(e){return r.add(e),()=>{r.delete(e)}}}}]);
|
|
1
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="39aee89a-c96a-4221-97bc-b261818ad89c",e._sentryDebugIdIdentifier="sentry-dbid-39aee89a-c96a-4221-97bc-b261818ad89c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[327],{94518:function(e,t,n){n.d(t,{m:function(){return r}});var l=n(72835);function r(e){let{filterBar:t,listPanel:n,detailPanel:r}=e;return(0,l.jsxs)("div",{className:"flex h-full",children:[(0,l.jsxs)("div",{className:"flex w-80 flex-col border-r border-gray-200 bg-white",children:[t,n]}),(0,l.jsx)("div",{className:"flex-1 overflow-auto bg-gray-50 p-6",children:r})]})}},63718:function(e,t,n){n.d(t,{L:function(){return a}});var l=n(72835),r=n(60635);function a(e){let{items:t,selectedId:n,onSelect:a,loading:s,emptyText:i="暂无数据",onLoadMore:c,loadingMore:u,exhausted:d}=e,o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!c)return;let e=o.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&c()},{root:e.closest(".overflow-auto"),rootMargin:"200px"});return t.observe(e),()=>t.disconnect()},[c]),(0,l.jsxs)("div",{className:"flex-1 overflow-auto",children:[s?(0,l.jsx)("div",{className:"p-4 text-center text-sm text-gray-400",children:"加载中…"}):0===t.length?(0,l.jsx)("div",{className:"p-4 text-center text-sm text-gray-400",children:i}):(0,l.jsx)("ul",{className:"divide-y divide-gray-100",children:t.map(e=>(0,l.jsx)("li",{role:"button",tabIndex:0,onClick:()=>a(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&a(e.id)},className:"cursor-pointer px-3 py-2 text-sm transition-colors ".concat(n===e.id?"bg-blue-50":"hover:bg-gray-50"),children:e.content},e.id))}),c&&!s&&t.length>0&&(0,l.jsx)("div",{ref:o,className:"p-3 text-center text-xs text-gray-400",children:u?"加载更多…":d?"没有更多了":""})]})}},27828:function(e,t,n){n.d(t,{dy:function(){return x},rY:function(){return g},h5:function(){return f},oj:function(){return i}});var l=n(72835),r=n(84704);function a(e){return String(e).padStart(2,"0")}function s(e){let{value:t}=e;if(!t)return null;let n=new Date(t);return Number.isNaN(n.getTime())?null:(0,l.jsx)("span",{title:function(e){let t="string"==typeof e?new Date(e):e;return Number.isNaN(t.getTime())?"":"".concat(t.getFullYear(),"/").concat(a(t.getMonth()+1),"/").concat(a(t.getDate())," ")+"".concat(a(t.getHours()),":").concat(a(t.getMinutes()),":").concat(a(t.getSeconds()))}(n),className:"cursor-default",children:function(e,t){let n="string"==typeof e?new Date(e):e,l=n.getTime();if(Number.isNaN(l))return"";let r=Math.floor(Math.max(0,t.getTime()-l)/6e4);if(r<1)return"刚刚";if(r<60)return"".concat(r," 分钟前");let s=Math.floor(r/60);if(s<24)return"".concat(s," 小时前");let i=Math.floor((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime())/864e5);return i<=1?"昨天":i<30?"".concat(i," 天前"):"".concat(n.getFullYear(),"/").concat(a(n.getMonth()+1),"/").concat(a(n.getDate()))}(n,new Date)})}function i(e){let{name:t,headline:n,source:r,updatedAt:a}=e;return(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("div",{className:"font-medium text-gray-900",children:t}),n?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:n}):null,(0,l.jsxs)("div",{className:"mt-0.5 flex items-center gap-2 text-xs text-gray-400",children:[r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:r}),(0,l.jsx)("span",{children:"\xb7"})]}):null,(0,l.jsx)(s,{value:a})]})]})}let c={active:"启动中",closed:"结束"},u={recommended:"推荐人才",pending_invite:"待邀请",invited:"已邀请待回复",replied:"已回复待筛选",to_client:"待推荐给客户",interview_pending:"已推荐待安排面试",interview_scheduled:"已安排面试",offer_pending:"待offer",onboarding:"待上班",rejected:"不合适"};function d(e){let{stages:t}=e,n=Object.keys(t).filter(e=>{var n,l;return(null!==(l=null===(n=t[e])||void 0===n?void 0:n.total)&&void 0!==l?l:0)>0});return n.length?(0,l.jsx)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:n.map(e=>{var n;let r=t[e],a=null!==(n=u[e])&&void 0!==n?n:e;return(0,l.jsxs)("span",{title:"".concat(a," 今天").concat(r.today,"/本周").concat(r.week,"/全部").concat(r.total),className:"rounded bg-[color:var(--brand-soft)] px-1.5 py-0.5 text-[10px] font-medium",style:{color:"var(--brand)"},children:[a," ",r.today,"/",r.week,"/",r.total]},e)})}):null}function o(e){let{platforms:t}=e;return t.length?(0,l.jsx)("span",{className:"flex items-center gap-0.5",title:t.join("、"),children:t.map(e=>{let t=(0,r.mS)(e);return(0,l.jsx)("span",{title:e,className:"flex h-4 w-4 items-center justify-center rounded bg-[color:var(--brand-soft)] text-[9px] font-semibold",style:{color:t.fg},children:t.label},e)})}):null}function x(e){var t,n;let{title:r,status:a,hmhLocal:i,subtitle:u,customerName:x,opName:f,rsNames:g,time:m,updatedAt:h,createdAt:p,stages:b,platforms:y,myRole:v}=e,j=null!==(t=null!=h?h:m)&&void 0!==t?t:"",N=null!=p?p:"",w=!!j&&!!N&&1e3>Math.abs(new Date(j).getTime()-new Date(N).getTime());return(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"truncate font-medium text-gray-900",children:r}),(0,l.jsx)("span",{className:"shrink-0 rounded px-1.5 py-0.5 text-xs ".concat("active"===a?"bg-emerald-100 text-emerald-700":"bg-gray-100 text-gray-500"),children:null!==(n=c[a])&&void 0!==n?n:a}),i?(0,l.jsx)("span",{className:"shrink-0 rounded bg-purple-100 px-1.5 py-0.5 text-xs text-purple-700",children:"本地"}):null,"op"===v?(0,l.jsx)("span",{className:"shrink-0 rounded bg-blue-100 px-1.5 py-0.5 text-xs text-blue-700",children:"op"}):null,"rs"===v?(0,l.jsx)("span",{className:"shrink-0 rounded bg-cyan-100 px-1.5 py-0.5 text-xs text-cyan-700",children:"rs"}):null,y?(0,l.jsx)(o,{platforms:y}):null]}),u?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:u}):null,void 0!==x?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:x}):null,f||g&&g.length?(0,l.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 text-xs text-gray-500",children:[f?(0,l.jsxs)("span",{children:["op:",(0,l.jsx)("span",{className:"text-gray-700",children:f})]}):null,g&&g.length?(0,l.jsxs)("span",{children:["rs:",(0,l.jsx)("span",{className:"text-gray-700",children:g.join("、")})]}):null]}):null,b?(0,l.jsx)(d,{stages:b}):null,j?(0,l.jsxs)("div",{className:"mt-0.5 flex items-center justify-between gap-2 text-xs text-gray-400",children:[(0,l.jsx)(s,{value:j}),N&&!w?(0,l.jsx)(s,{value:N}):null]}):null]})}function f(e){var t;let{name:n,headline:r,aiReason:a,overall:i,invitationChannel:c,stageLabel:u,updatedAt:d,onNameClick:o}=e;return(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[o?(0,l.jsx)("button",{type:"button",title:"查看人才详情",onClick:e=>{e.stopPropagation(),o()},className:"font-medium text-blue-600 hover:underline",children:n}):(0,l.jsx)("span",{className:"font-medium text-gray-900",children:n}),null!=i?(0,l.jsxs)("span",{className:"rounded bg-emerald-100 px-1.5 py-0.5 text-xs text-emerald-700",children:[i,"分"]}):null,c?(0,l.jsx)("span",{className:"rounded bg-sky-100 px-1.5 py-0.5 text-xs text-sky-700",children:null!==(t=({email:"邮件",linkedin:"LinkedIn",wechat:"微信"})[c])&&void 0!==t?t:c}):null]}),a?(0,l.jsxs)("div",{className:"line-clamp-2 text-xs text-gray-600",title:a,children:[(0,l.jsx)("span",{className:"text-blue-500",children:"AI 理由:"}),a]}):r?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:r}):null,(0,l.jsxs)("div",{className:"mt-0.5 flex items-center gap-2 text-xs text-gray-400",children:[u?(0,l.jsx)("span",{className:"rounded bg-gray-100 px-1.5 py-0.5 text-xs text-gray-500",children:u}):null,(0,l.jsx)(s,{value:d})]})]})}function g(e){let{title:t,source:n,company:r,sourceUrl:a,updatedAt:i}=e;return(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"font-medium text-gray-900",children:t}),(0,l.jsx)("span",{className:"rounded bg-blue-100 px-1.5 py-0.5 text-xs text-blue-700",children:n})]}),r?(0,l.jsx)("div",{className:"truncate text-xs text-gray-500",children:r}):null,(0,l.jsxs)("div",{className:"mt-0.5 flex items-center gap-2 text-xs text-gray-400",children:[(0,l.jsx)(s,{value:i}),a?(0,l.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"text-blue-500 hover:underline",onClick:e=>e.stopPropagation(),children:"来源"}):null]})]})}},26119:function(e,t,n){n.d(t,{B:function(){return s}});var l=n(72835),r=n(60635),a=n(82182);function s(e){let[t,n]=(0,r.useState)(new Set),[s,i]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),[d,o]=(0,r.useState)(null),x=(0,r.useCallback)(e=>{n(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),f=(0,r.useCallback)(e=>{let t=new Set(e);n(e=>{let n=new Set(Array.from(e).filter(e=>t.has(e)));return n.size===e.size?e:n})},[]),g=(0,r.useCallback)(()=>n(new Set),[]),m=(0,r.useCallback)(e=>(0,l.jsx)("input",{type:"checkbox",className:"mt-1 accent-blue-600",checked:t.has(e),onChange:()=>x(e),onClick:e=>e.stopPropagation()}),[t,x]),h=(0,r.useCallback)(async()=>{if(!s)return;u(!0),o(null);let t=s.ids;try{var l,r;let s=await fetch(e.deleteUrl,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:t})});if(!s.ok){let l=await s.json().catch(()=>null),i=null==l?void 0:l.message;if(401===s.status){o("登录已过期,请在弹窗中重新登录;登录后自动继续删除"),(0,a.jr)({message:"string"==typeof i?i:"登录已过期,请重新登录",oldUserId:null!==(r=e.currentUserId)&&void 0!==r?r:null,retry:async()=>{var l;let r=await fetch(e.deleteUrl,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:t})});if(!r.ok){let e=await r.json().catch(()=>null),t=null==e?void 0:e.message;return o("string"==typeof t?t:"续跑删除仍失败,请稍后重试"),!1}return n(new Set),o("已删除 ".concat(t.length," 条")),null===(l=e.onDeleted)||void 0===l||l.call(e),!0}});return}o("string"==typeof i?i:"操作失败,请稍后重试");return}n(new Set),o("已删除 ".concat(t.length," 条")),null===(l=e.onDeleted)||void 0===l||l.call(e)}finally{u(!1),i(null)}},[s,e.deleteUrl,e.onDeleted,e.currentUserId]),p=(0,r.useCallback)(e=>(0,l.jsxs)("div",{className:"flex items-center gap-3 border-t border-gray-100 px-3 py-2",children:[(0,l.jsxs)("label",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[(0,l.jsx)("input",{type:"checkbox",className:"accent-blue-600",checked:e.length>0&&t.size===e.length,onChange:()=>n(t=>t.size===e.length&&e.length>0?new Set:new Set(e.map(e=>String(e.id))))}),"全选"]}),t.size>0&&(0,l.jsxs)("span",{className:"flex items-center gap-2 text-sm",children:[(0,l.jsxs)("span",{className:"text-gray-500",children:["已选 ",t.size," 条"]}),(0,l.jsx)("button",{type:"button",onClick:()=>i({ids:Array.from(t).map(Number)}),className:"rounded-lg bg-red-600 px-3 py-1 text-white hover:bg-red-700",children:"删除"})]}),d&&(0,l.jsx)("span",{className:"text-xs text-green-600",children:d})]}),[t,d]);return{selectedIds:t,checkbox:m,prune:f,bar:p,modal:(0,r.useCallback)(()=>s?(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",children:(0,l.jsxs)("div",{className:"w-96 rounded-xl bg-white p-6 shadow-xl",children:[(0,l.jsx)("h3",{className:"text-base font-semibold text-gray-900",children:"删除确认"}),(0,l.jsxs)("p",{className:"mt-3 text-sm text-gray-600",children:["确定删除选中的 ",s.ids.length," 条",e.label,"吗?删除后不能自行恢复;如误删,请联系管理员找回。"]}),(0,l.jsxs)("div",{className:"mt-6 flex justify-end gap-2",children:[(0,l.jsx)("button",{type:"button",disabled:c,onClick:()=>i(null),className:"rounded-lg px-4 py-1.5 text-sm text-gray-600 hover:bg-gray-100",children:"取消"}),(0,l.jsx)("button",{type:"button",disabled:c,onClick:()=>void h(),className:"rounded-lg bg-red-600 px-4 py-1.5 text-sm text-white hover:bg-red-700 disabled:opacity-50",children:c?"处理中…":"确定"})]})]})}):null,[s,c,h,e.label]),clear:g}}},93464:function(e,t,n){n.d(t,{k:function(){return r}});var l=n(60635);function r(e){var t,n,r;let a=null!==(t=e.pageSize)&&void 0!==t?t:50,[s,i]=(0,l.useState)([]),[c,u]=(0,l.useState)(0),[d,o]=(0,l.useState)(!0),[x,f]=(0,l.useState)(!1),[g,m]=(0,l.useState)(null),h=(0,l.useRef)(0),p=(0,l.useRef)(!1),b=(0,l.useRef)([]),y=null!==(n=e.byKey)&&void 0!==n?n:e=>String(e.id),v=(0,l.useRef)(0),j=(0,l.useCallback)(async(t,n)=>{let l=++h.current;0===t?o(!0):f(!0),m(null);try{var r;let s=await e.fetchPage(t,a);if(l!==h.current)return;v.current=null!==(r=s.nextOffset)&&void 0!==r?r:t+s.items.length,n&&0===s.items.length?u(e=>Math.min(e,b.current.length)):u(s.total),i(e=>{if(!n)return s.items;let t=new Set(e.map(y));return[...e,...s.items.filter(e=>!t.has(y(e)))]})}catch(e){if(l!==h.current)return;m(e instanceof Error?e.message:"加载失败")}finally{l===h.current&&(o(!1),f(!1),p.current=!1)}},[e.fetchPage,a]);(0,l.useEffect)(()=>{p.current=!0,j(0,!1)},[j,...null!==(r=e.deps)&&void 0!==r?r:[]]),(0,l.useEffect)(()=>{b.current=s},[s]);let N=(0,l.useCallback)(()=>{!p.current&&(b.current.length>=c||(p.current=!0,j(v.current,!0)))},[j,c]),w=(0,l.useCallback)(()=>{p.current=!0,v.current=0,j(0,!1)},[j]);return{items:s,total:c,loading:d,loadingMore:x,exhausted:!d&&s.length>=c,error:g,loadMore:N,refresh:w}}},82182:function(e,t,n){n.d(t,{H7:function(){return d},jr:function(){return s},mn:function(){return u},nk:function(){return c},qd:function(){return i}});let l=null,r=new Set;function a(){r.forEach(e=>e())}function s(e){l=e,a()}function i(){l&&(l=null,a())}function c(){return l}function u(e){return r.add(e),()=>r.delete(e)}function d(e){if(!e)return null;try{var t,n,l,r,a;let s=e.split(".")[1],i=JSON.parse(decodeURIComponent(escape(atob(s.replace(/-/g,"+").replace(/_/g,"/"))))),c=null!==(a=null!==(r=null!==(l=null==i?void 0:null===(t=i.data)||void 0===t?void 0:t._id)&&void 0!==l?l:null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.id)&&void 0!==r?r:null==i?void 0:i.sub)&&void 0!==a?a:null;return"number"==typeof c?c:null}catch(e){return null}}},84704:function(e,t,n){n.d(t,{mS:function(){return r}});let l={linkedin:{label:"in",fg:"#0a66c2"},builtin:{label:"bi",fg:"#5c2d91"},lagou:{label:"拉",fg:"#00b38a"},zhaopin:{label:"智",fg:"#ff7f00"},"51job":{label:"前",fg:"#ff6000"},liepin:{label:"猎",fg:"#008ccb"},boss:{label:"B",fg:"#00bebd"}};function r(e){var t;return null!==(t=l[e.replace(/^www\./,"").split(".")[0].toLowerCase()])&&void 0!==t?t:{label:e.slice(0,1).toUpperCase(),fg:"var(--brand)"}}}}]);
|