poi-plugin-kca-next 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +936 -628
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ __export(index_exports, {
|
|
|
58
58
|
module.exports = __toCommonJS(index_exports);
|
|
59
59
|
var import_node_fs5 = __toESM(require("fs"));
|
|
60
60
|
var import_node_path4 = __toESM(require("path"));
|
|
61
|
-
var
|
|
61
|
+
var import_react13 = __toESM(require("react"));
|
|
62
62
|
|
|
63
63
|
// src/data/coords.ts
|
|
64
64
|
var CANVAS_WIDTH = 1200;
|
|
@@ -756,6 +756,8 @@ function createDefaultSortieProfile(id = "default-sortie", name = "\u9ED8\u8BA4\
|
|
|
756
756
|
damageThresholds: Array(12).fill("moderate"),
|
|
757
757
|
condThresholds: [40, 40, 40, 40, 40, 40, 0, 0, 0, 0, 0, 0],
|
|
758
758
|
candidateShips: Array.from({ length: 12 }, () => []),
|
|
759
|
+
rotationOrgPresetIds: [],
|
|
760
|
+
rotationSyncEquipFromPresets: false,
|
|
759
761
|
useAdvanceSettings: false,
|
|
760
762
|
advanceMode: "battle",
|
|
761
763
|
battleFormations: Array(10).fill("line_ahead"),
|
|
@@ -3798,6 +3800,37 @@ function matchesDamageThreshold(ship, tier) {
|
|
|
3798
3800
|
}
|
|
3799
3801
|
|
|
3800
3802
|
// src/core/matching.ts
|
|
3803
|
+
function applyOrgPresetToRotationCandidates(currentCandidates, preset, options) {
|
|
3804
|
+
const offset = options.targetOffset ?? 0;
|
|
3805
|
+
const nextCandidates = Array.from({ length: 12 }, (_, idx) => [
|
|
3806
|
+
...currentCandidates[idx] ?? []
|
|
3807
|
+
]);
|
|
3808
|
+
if (options.mode === "replace") {
|
|
3809
|
+
for (let i = 0; i < 6; i++) {
|
|
3810
|
+
nextCandidates[offset + i] = [];
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
let addedCount = 0;
|
|
3814
|
+
let skippedExisting = 0;
|
|
3815
|
+
let skippedMissing = 0;
|
|
3816
|
+
const limit = Math.min(6, preset.ships.length);
|
|
3817
|
+
for (let i = 0; i < limit; i++) {
|
|
3818
|
+
const sid = preset.ships[i]?.id ?? 0;
|
|
3819
|
+
if (sid <= 0) continue;
|
|
3820
|
+
if (options.validShipIds && !options.validShipIds.has(sid)) {
|
|
3821
|
+
skippedMissing += 1;
|
|
3822
|
+
continue;
|
|
3823
|
+
}
|
|
3824
|
+
const slotList = nextCandidates[offset + i];
|
|
3825
|
+
if (slotList.includes(sid)) {
|
|
3826
|
+
skippedExisting += 1;
|
|
3827
|
+
continue;
|
|
3828
|
+
}
|
|
3829
|
+
slotList.push(sid);
|
|
3830
|
+
addedCount += 1;
|
|
3831
|
+
}
|
|
3832
|
+
return { nextCandidates, addedCount, skippedExisting, skippedMissing };
|
|
3833
|
+
}
|
|
3801
3834
|
function sortShipsByOrgLevel(ships) {
|
|
3802
3835
|
return [...ships].sort((a, b) => {
|
|
3803
3836
|
if (b.level !== a.level) return b.level - a.level;
|
|
@@ -5768,58 +5801,103 @@ function findEquipmentCandidate(state, targetShip, protectedShipIds, targetItem,
|
|
|
5768
5801
|
}
|
|
5769
5802
|
return null;
|
|
5770
5803
|
}
|
|
5804
|
+
function snapshotShipEquipment(ship, slotItems) {
|
|
5805
|
+
const slots = [];
|
|
5806
|
+
for (let i = 0; i < ship.slotNum; i++) {
|
|
5807
|
+
const sid = ship.slots[i];
|
|
5808
|
+
const item = sid > 0 ? slotItems[sid] : void 0;
|
|
5809
|
+
if (item) {
|
|
5810
|
+
slots.push({
|
|
5811
|
+
id: item.id,
|
|
5812
|
+
masterId: item.masterId,
|
|
5813
|
+
name: item.name,
|
|
5814
|
+
level: item.level,
|
|
5815
|
+
proficiency: item.proficiency,
|
|
5816
|
+
isNumerable: item.isNumerable,
|
|
5817
|
+
carry: item.isNumerable && i < ship.maxeq.length ? ship.maxeq[i] : 0,
|
|
5818
|
+
iconType: item.iconType
|
|
5819
|
+
});
|
|
5820
|
+
} else {
|
|
5821
|
+
slots.push({
|
|
5822
|
+
id: 0,
|
|
5823
|
+
masterId: 0,
|
|
5824
|
+
name: "",
|
|
5825
|
+
level: 0,
|
|
5826
|
+
proficiency: 0,
|
|
5827
|
+
isNumerable: false,
|
|
5828
|
+
carry: 0,
|
|
5829
|
+
iconType: 0
|
|
5830
|
+
});
|
|
5831
|
+
}
|
|
5832
|
+
}
|
|
5833
|
+
const exItem = ship.exSlot > 0 ? slotItems[ship.exSlot] : void 0;
|
|
5834
|
+
const exSlot = exItem ? {
|
|
5835
|
+
id: exItem.id,
|
|
5836
|
+
masterId: exItem.masterId,
|
|
5837
|
+
name: exItem.name,
|
|
5838
|
+
level: exItem.level,
|
|
5839
|
+
proficiency: exItem.proficiency,
|
|
5840
|
+
isNumerable: exItem.isNumerable,
|
|
5841
|
+
carry: 0,
|
|
5842
|
+
iconType: exItem.iconType
|
|
5843
|
+
} : null;
|
|
5844
|
+
return {
|
|
5845
|
+
id: ship.id,
|
|
5846
|
+
name: ship.name,
|
|
5847
|
+
stypeName: ship.stypeName,
|
|
5848
|
+
slots,
|
|
5849
|
+
exSlot
|
|
5850
|
+
};
|
|
5851
|
+
}
|
|
5852
|
+
function buildRotationEquipTargetsForFleet(state, fleetId, linkedPresetIds, allPresets) {
|
|
5853
|
+
const fleet = state.fleets[fleetId];
|
|
5854
|
+
if (!fleet || fleet.shipIds.length === 0 || linkedPresetIds.length === 0) return null;
|
|
5855
|
+
const presetById = /* @__PURE__ */ new Map();
|
|
5856
|
+
for (const p of allPresets) presetById.set(p.id, p);
|
|
5857
|
+
const shipRecordMap = /* @__PURE__ */ new Map();
|
|
5858
|
+
for (const pid of linkedPresetIds) {
|
|
5859
|
+
const preset = presetById.get(pid);
|
|
5860
|
+
if (!preset) continue;
|
|
5861
|
+
for (const rec of preset.ships) {
|
|
5862
|
+
if (rec.id > 0 && !shipRecordMap.has(rec.id)) {
|
|
5863
|
+
shipRecordMap.set(rec.id, rec);
|
|
5864
|
+
}
|
|
5865
|
+
}
|
|
5866
|
+
}
|
|
5867
|
+
if (shipRecordMap.size === 0) return null;
|
|
5868
|
+
let matchedAny = false;
|
|
5869
|
+
const targets = [];
|
|
5870
|
+
for (const sid of fleet.shipIds) {
|
|
5871
|
+
const ship = state.ships[sid];
|
|
5872
|
+
if (!ship) continue;
|
|
5873
|
+
const rec = shipRecordMap.get(sid);
|
|
5874
|
+
if (rec) {
|
|
5875
|
+
matchedAny = true;
|
|
5876
|
+
targets.push(rec);
|
|
5877
|
+
} else {
|
|
5878
|
+
targets.push(snapshotShipEquipment(ship, state.slotItems));
|
|
5879
|
+
}
|
|
5880
|
+
}
|
|
5881
|
+
return matchedAny ? targets : null;
|
|
5882
|
+
}
|
|
5883
|
+
function fleetNeedsEquipSync(state, fleetId, targets, includeExSlot) {
|
|
5884
|
+
const fleet = state.fleets[fleetId];
|
|
5885
|
+
if (!fleet) return false;
|
|
5886
|
+
for (let i = 0; i < fleet.shipIds.length && i < targets.length; i++) {
|
|
5887
|
+
const ship = state.ships[fleet.shipIds[i]];
|
|
5888
|
+
if (!ship) continue;
|
|
5889
|
+
const diffs = diffShipEquipment(ship, targets[i], state.slotItems, includeExSlot);
|
|
5890
|
+
if (diffs.some((d) => d.kind !== "keep")) return true;
|
|
5891
|
+
}
|
|
5892
|
+
return false;
|
|
5893
|
+
}
|
|
5771
5894
|
function snapshotFleetOrganization(state, fleetId, name, id) {
|
|
5772
5895
|
const fleet = state.fleets[fleetId];
|
|
5773
5896
|
const ships = [];
|
|
5774
5897
|
for (const shipId of fleet?.shipIds ?? []) {
|
|
5775
5898
|
const ship = state.ships[shipId];
|
|
5776
5899
|
if (!ship) continue;
|
|
5777
|
-
|
|
5778
|
-
for (let i = 0; i < ship.slotNum; i++) {
|
|
5779
|
-
const sid = ship.slots[i];
|
|
5780
|
-
const item = sid > 0 ? state.slotItems[sid] : void 0;
|
|
5781
|
-
if (item) {
|
|
5782
|
-
slots.push({
|
|
5783
|
-
id: item.id,
|
|
5784
|
-
masterId: item.masterId,
|
|
5785
|
-
name: item.name,
|
|
5786
|
-
level: item.level,
|
|
5787
|
-
proficiency: item.proficiency,
|
|
5788
|
-
isNumerable: item.isNumerable,
|
|
5789
|
-
carry: item.isNumerable && i < ship.maxeq.length ? ship.maxeq[i] : 0,
|
|
5790
|
-
iconType: item.iconType
|
|
5791
|
-
});
|
|
5792
|
-
} else {
|
|
5793
|
-
slots.push({
|
|
5794
|
-
id: 0,
|
|
5795
|
-
masterId: 0,
|
|
5796
|
-
name: "",
|
|
5797
|
-
level: 0,
|
|
5798
|
-
proficiency: 0,
|
|
5799
|
-
isNumerable: false,
|
|
5800
|
-
carry: 0,
|
|
5801
|
-
iconType: 0
|
|
5802
|
-
});
|
|
5803
|
-
}
|
|
5804
|
-
}
|
|
5805
|
-
const exItem = ship.exSlot > 0 ? state.slotItems[ship.exSlot] : void 0;
|
|
5806
|
-
const exSlot = exItem ? {
|
|
5807
|
-
id: exItem.id,
|
|
5808
|
-
masterId: exItem.masterId,
|
|
5809
|
-
name: exItem.name,
|
|
5810
|
-
level: exItem.level,
|
|
5811
|
-
proficiency: exItem.proficiency,
|
|
5812
|
-
isNumerable: exItem.isNumerable,
|
|
5813
|
-
carry: 0,
|
|
5814
|
-
iconType: exItem.iconType
|
|
5815
|
-
} : null;
|
|
5816
|
-
ships.push({
|
|
5817
|
-
id: ship.id,
|
|
5818
|
-
name: ship.name,
|
|
5819
|
-
stypeName: ship.stypeName,
|
|
5820
|
-
slots,
|
|
5821
|
-
exSlot
|
|
5822
|
-
});
|
|
5900
|
+
ships.push(snapshotShipEquipment(ship, state.slotItems));
|
|
5823
5901
|
}
|
|
5824
5902
|
return { id, name, fleet: fleetId, ships };
|
|
5825
5903
|
}
|
|
@@ -9367,6 +9445,7 @@ var AutoSortieModule = class extends AutomationModule {
|
|
|
9367
9445
|
totalSorties = 0;
|
|
9368
9446
|
lastDropShip = null;
|
|
9369
9447
|
condWaitUntilMs = 0;
|
|
9448
|
+
equipSyncedFleetSig = "";
|
|
9370
9449
|
lbasLastRefreshMs = 0;
|
|
9371
9450
|
unsubDrop;
|
|
9372
9451
|
dispose() {
|
|
@@ -9662,6 +9741,44 @@ var AutoSortieModule = class extends AutomationModule {
|
|
|
9662
9741
|
this.setStatus(plan.reason ?? "\u65E0\u53EF\u8F6E\u6362\u8230\u5A18\uFF0C\u7B49\u5F85\u4E2D", "waiting");
|
|
9663
9742
|
return;
|
|
9664
9743
|
}
|
|
9744
|
+
const linkedPresets = profile.rotationOrgPresetIds ?? [];
|
|
9745
|
+
if (profile.rotationSyncEquipFromPresets && linkedPresets.length > 0) {
|
|
9746
|
+
const orgCfg = settings.organization;
|
|
9747
|
+
const fleetIdsToCheck = isCombined && profile.fleet === 1 ? [1, 2] : [profile.fleet];
|
|
9748
|
+
const sig = `${profile.id}|${linkedPresets.join(",")}|${fleetIdsToCheck.map((fid) => `${fid}:${(state.fleets[fid]?.shipIds ?? []).join(",")}`).join("|")}`;
|
|
9749
|
+
if (this.equipSyncedFleetSig !== sig) {
|
|
9750
|
+
const pendingEquipSyncs = [];
|
|
9751
|
+
for (const fid of fleetIdsToCheck) {
|
|
9752
|
+
const targets = buildRotationEquipTargetsForFleet(state, fid, linkedPresets, orgCfg.presets);
|
|
9753
|
+
if (targets && fleetNeedsEquipSync(state, fid, targets, orgCfg.autoEquipExSlot)) {
|
|
9754
|
+
pendingEquipSyncs.push({ fleetId: fid, targets });
|
|
9755
|
+
}
|
|
9756
|
+
}
|
|
9757
|
+
if (pendingEquipSyncs.length > 0) {
|
|
9758
|
+
await this.runLocked(async (ctx) => {
|
|
9759
|
+
this.setStatus("\u6309\u5173\u8054\u81EA\u52A8\u7F16\u6210\u9884\u8BBE\u540C\u6B65\u8F6E\u6362\u8230\u5A18\u88C5\u5907");
|
|
9760
|
+
for (const item of pendingEquipSyncs) {
|
|
9761
|
+
await executeChangeSlotItems(
|
|
9762
|
+
this.runtime.bridge,
|
|
9763
|
+
this.runtime.actions,
|
|
9764
|
+
this.runtime.logger,
|
|
9765
|
+
item.fleetId,
|
|
9766
|
+
item.targets,
|
|
9767
|
+
{
|
|
9768
|
+
changeExSlot: orgCfg.autoEquipExSlot,
|
|
9769
|
+
fuzzy: orgCfg.fuzzyMatching,
|
|
9770
|
+
unwield: orgCfg.unwieldFromOthers
|
|
9771
|
+
},
|
|
9772
|
+
ctx
|
|
9773
|
+
);
|
|
9774
|
+
}
|
|
9775
|
+
this.equipSyncedFleetSig = sig;
|
|
9776
|
+
});
|
|
9777
|
+
return;
|
|
9778
|
+
}
|
|
9779
|
+
this.equipSyncedFleetSig = sig;
|
|
9780
|
+
}
|
|
9781
|
+
}
|
|
9665
9782
|
}
|
|
9666
9783
|
const allSortieIds = [...fleet.shipIds, ...escortFleet?.shipIds ?? []];
|
|
9667
9784
|
const taihaShipsOnLaunch = [];
|
|
@@ -13237,7 +13354,7 @@ var PoiGameBridge = class {
|
|
|
13237
13354
|
};
|
|
13238
13355
|
|
|
13239
13356
|
// src/ui/App.tsx
|
|
13240
|
-
var
|
|
13357
|
+
var import_react12 = __toESM(require("react"));
|
|
13241
13358
|
|
|
13242
13359
|
// src/ui/components/CollapsibleCard.tsx
|
|
13243
13360
|
var import_react = __toESM(require("react"));
|
|
@@ -14146,6 +14263,50 @@ var KCA_NEXT_CSS = `
|
|
|
14146
14263
|
font-size: 11px;
|
|
14147
14264
|
line-height: 1.2;
|
|
14148
14265
|
}
|
|
14266
|
+
.kca-mod-inline-toggle {
|
|
14267
|
+
display: inline-flex;
|
|
14268
|
+
align-items: center;
|
|
14269
|
+
gap: 5px;
|
|
14270
|
+
padding: 2px 8px;
|
|
14271
|
+
border-radius: 999px;
|
|
14272
|
+
border: 1px solid #334155;
|
|
14273
|
+
background: #141c2b;
|
|
14274
|
+
color: #94a3b8;
|
|
14275
|
+
font-size: 11px;
|
|
14276
|
+
font-weight: 600;
|
|
14277
|
+
cursor: pointer;
|
|
14278
|
+
user-select: none;
|
|
14279
|
+
transition: all 0.14s ease;
|
|
14280
|
+
}
|
|
14281
|
+
.kca-mod-inline-toggle:hover {
|
|
14282
|
+
border-color: #475569;
|
|
14283
|
+
color: #e2e8f0;
|
|
14284
|
+
}
|
|
14285
|
+
.kca-mod-inline-toggle-on {
|
|
14286
|
+
border-color: #16a34a;
|
|
14287
|
+
background: rgba(22, 163, 74, 0.18);
|
|
14288
|
+
color: #bbf7d0;
|
|
14289
|
+
}
|
|
14290
|
+
.kca-mod-inline-toggle-on:hover {
|
|
14291
|
+
border-color: #22c55e;
|
|
14292
|
+
background: rgba(22, 163, 74, 0.26);
|
|
14293
|
+
color: #dcfce7;
|
|
14294
|
+
}
|
|
14295
|
+
.kca-mod-inline-toggle input[type='checkbox'] {
|
|
14296
|
+
margin: 0;
|
|
14297
|
+
cursor: pointer;
|
|
14298
|
+
}
|
|
14299
|
+
.kca-mod-dot {
|
|
14300
|
+
width: 7px;
|
|
14301
|
+
height: 7px;
|
|
14302
|
+
border-radius: 999px;
|
|
14303
|
+
flex-shrink: 0;
|
|
14304
|
+
}
|
|
14305
|
+
.kca-mod-dot-off { background: #475569; }
|
|
14306
|
+
.kca-mod-dot-on { background: #22c55e; box-shadow: 0 0 5px rgba(34, 197, 94, 0.7); }
|
|
14307
|
+
.kca-mod-dot-run { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.85); }
|
|
14308
|
+
.kca-mod-dot-warn { background: #f59e0b; box-shadow: 0 0 5px rgba(245, 158, 11, 0.75); }
|
|
14309
|
+
.kca-mod-dot-err { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.85); }
|
|
14149
14310
|
`;
|
|
14150
14311
|
|
|
14151
14312
|
// src/ui/tabs/DashboardTab.tsx
|
|
@@ -14283,7 +14444,40 @@ var DashboardTab = ({
|
|
|
14283
14444
|
};
|
|
14284
14445
|
|
|
14285
14446
|
// src/ui/tabs/ExpeditionKiraTab.tsx
|
|
14447
|
+
var import_react4 = __toESM(require("react"));
|
|
14448
|
+
|
|
14449
|
+
// src/ui/components/ModuleToggleSwitch.tsx
|
|
14286
14450
|
var import_react3 = __toESM(require("react"));
|
|
14451
|
+
var ModuleToggleSwitch = ({
|
|
14452
|
+
coordinator,
|
|
14453
|
+
snap,
|
|
14454
|
+
moduleId,
|
|
14455
|
+
label
|
|
14456
|
+
}) => {
|
|
14457
|
+
const mod = snap.modules[moduleId];
|
|
14458
|
+
if (!mod) return null;
|
|
14459
|
+
const dotClass = !mod.enabled ? "kca-mod-dot-off" : mod.state === "running" ? "kca-mod-dot-run" : mod.state === "error" ? "kca-mod-dot-err" : mod.state === "waiting" ? "kca-mod-dot-warn" : "kca-mod-dot-on";
|
|
14460
|
+
const statusSuffix = mod.enabled && mod.state === "running" ? " \xB7 \u8FD0\u884C\u4E2D" : mod.enabled && mod.state === "error" ? " \xB7 \u5F02\u5E38" : mod.enabled && mod.state === "waiting" ? " \xB7 \u7B49\u5F85" : "";
|
|
14461
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
14462
|
+
"label",
|
|
14463
|
+
{
|
|
14464
|
+
className: `kca-mod-inline-toggle ${mod.enabled ? "kca-mod-inline-toggle-on" : ""}`,
|
|
14465
|
+
title: `${mod.displayName} (${mod.enabled ? "\u5DF2\u5F00\u542F" : "\u5DF2\u5173\u95ED"} \xB7 ${mod.state})\uFF1A${mod.lastError ?? mod.statusText} \u2014 \u4E0E\u603B\u89C8\u9875\u5F00\u5173\u5B9E\u65F6\u540C\u6B65`
|
|
14466
|
+
},
|
|
14467
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
|
14468
|
+
"input",
|
|
14469
|
+
{
|
|
14470
|
+
type: "checkbox",
|
|
14471
|
+
checked: mod.enabled,
|
|
14472
|
+
onChange: (e) => coordinator.setModuleEnabled(moduleId, e.target.checked)
|
|
14473
|
+
}
|
|
14474
|
+
),
|
|
14475
|
+
/* @__PURE__ */ import_react3.default.createElement("span", { className: `kca-mod-dot ${dotClass}`, "aria-hidden": "true" }),
|
|
14476
|
+
/* @__PURE__ */ import_react3.default.createElement("span", null, label ?? mod.displayName, statusSuffix)
|
|
14477
|
+
);
|
|
14478
|
+
};
|
|
14479
|
+
|
|
14480
|
+
// src/ui/tabs/ExpeditionKiraTab.tsx
|
|
14287
14481
|
function formatExpeditionCode(id) {
|
|
14288
14482
|
if (id === 301) return "\u524D\u885B\u652F\u63F4";
|
|
14289
14483
|
if (id === 302) return "\u6C7A\u6230\u652F\u63F4";
|
|
@@ -14300,7 +14494,7 @@ function condClass(cond) {
|
|
|
14300
14494
|
if (cond >= 30) return "kca-cond-tired";
|
|
14301
14495
|
return "kca-cond-red";
|
|
14302
14496
|
}
|
|
14303
|
-
var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
14497
|
+
var ExpeditionKiraTab = ({ coordinator, snap, gameState, settings }) => {
|
|
14304
14498
|
const exp = settings.expedition;
|
|
14305
14499
|
const missionList = Object.values(gameState.master.missions).sort((a, b) => a.id - b.id);
|
|
14306
14500
|
const syncRememberedPreset = (s, fleetIdx) => {
|
|
@@ -14351,14 +14545,14 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14351
14545
|
pendingRestore.sourceFleetId > 0 ? `\u7B2C${pendingRestore.sourceFleetId}\u8230\u961F(${pendingRestore.originalSourceShipIds.length}\u8239)` : "",
|
|
14352
14546
|
pendingRestore.runnerFleetId > 0 && pendingRestore.runnerFleetId !== pendingRestore.sourceFleetId ? `\u7B2C${pendingRestore.runnerFleetId}\u8230\u961F(${pendingRestore.originalRunnerShipIds.length}\u8239)` : ""
|
|
14353
14547
|
].filter(Boolean).join("\u3001") : "";
|
|
14354
|
-
return /* @__PURE__ */
|
|
14548
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(
|
|
14355
14549
|
CollapsibleCard,
|
|
14356
14550
|
{
|
|
14357
14551
|
storageKey: "exp.targets",
|
|
14358
14552
|
title: "\u8FDC\u5F81\u76EE\u6807\u914D\u7F6E (\u7B2C 2~4 \u8230\u961F)",
|
|
14359
14553
|
defaultOpen: true,
|
|
14360
|
-
summary: /* @__PURE__ */
|
|
14361
|
-
headerRight: /* @__PURE__ */
|
|
14554
|
+
summary: /* @__PURE__ */ import_react4.default.createElement("span", null, targetSummary),
|
|
14555
|
+
headerRight: /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react4.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "expedition" }), /* @__PURE__ */ import_react4.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
14362
14556
|
"input",
|
|
14363
14557
|
{
|
|
14364
14558
|
type: "checkbox",
|
|
@@ -14367,24 +14561,24 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14367
14561
|
s.expedition.rememberKiraByExpedition = e.target.checked;
|
|
14368
14562
|
})
|
|
14369
14563
|
}
|
|
14370
|
-
), "\u6309\u8FDC\u5F81\u81EA\u52A8\u8BB0\u5FC6\u5237\u95EA\u8BBE\u7F6E")
|
|
14564
|
+
), "\u6309\u8FDC\u5F81\u81EA\u52A8\u8BB0\u5FC6\u5237\u95EA\u8BBE\u7F6E"))
|
|
14371
14565
|
},
|
|
14372
|
-
/* @__PURE__ */
|
|
14566
|
+
/* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-grid" }, [2, 3, 4].map((fleetId) => {
|
|
14373
14567
|
const idx = fleetId - 2;
|
|
14374
14568
|
const fleet = gameState.fleets[fleetId];
|
|
14375
14569
|
const remSec = fleet && fleet.expedition.state === 1 && fleet.expedition.returnTimeMs > 0 ? Math.max(0, Math.ceil((fleet.expedition.returnTimeMs - Date.now()) / 1e3)) : 0;
|
|
14376
|
-
return /* @__PURE__ */
|
|
14570
|
+
return /* @__PURE__ */ import_react4.default.createElement("div", { key: fleetId, className: "kca-field" }, /* @__PURE__ */ import_react4.default.createElement("label", null, "\u7B2C ", fleetId, " \u8230\u961F", " ", remSec > 0 ? `(\u5269\u4F59 ${Math.floor(remSec / 60)}m${remSec % 60}s)` : "(\u5F85\u547D)"), missionList.length > 0 ? /* @__PURE__ */ import_react4.default.createElement(
|
|
14377
14571
|
"select",
|
|
14378
14572
|
{
|
|
14379
14573
|
className: "kca-select",
|
|
14380
14574
|
value: exp.targets[idx],
|
|
14381
14575
|
onChange: (e) => handleTargetChange(fleetId, Number(e.target.value))
|
|
14382
14576
|
},
|
|
14383
|
-
/* @__PURE__ */
|
|
14384
|
-
missionList.map((m) => /* @__PURE__ */
|
|
14385
|
-
/* @__PURE__ */
|
|
14386
|
-
/* @__PURE__ */
|
|
14387
|
-
) : /* @__PURE__ */
|
|
14577
|
+
/* @__PURE__ */ import_react4.default.createElement("option", { value: -1 }, "-- \u4E0D\u6D3E\u8FDC\u5F81 --"),
|
|
14578
|
+
missionList.map((m) => /* @__PURE__ */ import_react4.default.createElement("option", { key: m.id, value: m.id }, "[", formatExpeditionCode(m.id), "] ", m.name, " (", m.timeMinutes, "m)")),
|
|
14579
|
+
/* @__PURE__ */ import_react4.default.createElement("option", { value: 301 }, "[301] \u524D\u885B\u652F\u63F4\u4EFB\u52D9 (\u9053\u4E2D\u652F\u63F4)"),
|
|
14580
|
+
/* @__PURE__ */ import_react4.default.createElement("option", { value: 302 }, "[302] \u8266\u968A\u6C7A\u6230\u652F\u63F4\u4EFB\u52D9 (\u51B3\u6218\u652F\u63F4)")
|
|
14581
|
+
) : /* @__PURE__ */ import_react4.default.createElement(
|
|
14388
14582
|
"input",
|
|
14389
14583
|
{
|
|
14390
14584
|
type: "number",
|
|
@@ -14395,7 +14589,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14395
14589
|
}
|
|
14396
14590
|
));
|
|
14397
14591
|
})),
|
|
14398
|
-
exp.expeditionKiraPresets.length > 0 && /* @__PURE__ */
|
|
14592
|
+
exp.expeditionKiraPresets.length > 0 && /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-sub-box" }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-muted" }, "\u5DF2\u6309\u8FDC\u5F81\u8BB0\u5FC6\u7684\u5237\u95EA\u914D\u7F6E (", exp.expeditionKiraPresets.length, " \u9879\uFF0C\u5207\u6362\u8FDC\u5F81\u65F6\u81EA\u52A8\u5E94\u7528)\uFF1A"), /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-chip-list" }, exp.expeditionKiraPresets.map((kp) => /* @__PURE__ */ import_react4.default.createElement("span", { key: kp.expeditionId, className: "kca-chip" }, "\u8FDC\u5F81 ", formatExpeditionCode(kp.expeditionId), "\uFF1A", kp.kiraEnabled ? `${kp.kiraCount}\u8239\u2192${kp.kiraTargetCond}` : "\u4E0D\u5237\u95EA", kp.kiraForSupport ? "(\u652F\u63F4)" : "", /* @__PURE__ */ import_react4.default.createElement(
|
|
14399
14593
|
"button",
|
|
14400
14594
|
{
|
|
14401
14595
|
className: "kca-chip-btn",
|
|
@@ -14408,20 +14602,20 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14408
14602
|
},
|
|
14409
14603
|
"\xD7"
|
|
14410
14604
|
)))))
|
|
14411
|
-
), /* @__PURE__ */
|
|
14605
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
|
14412
14606
|
CollapsibleCard,
|
|
14413
14607
|
{
|
|
14414
14608
|
storageKey: "exp.kira",
|
|
14415
14609
|
title: "1-1 \u81EA\u52A8\u5237\u95EA\u914D\u7F6E (\u7B2C 1~4 \u8230\u961F)",
|
|
14416
14610
|
defaultOpen: true,
|
|
14417
|
-
summary: /* @__PURE__ */
|
|
14418
|
-
headerRight: /* @__PURE__ */
|
|
14611
|
+
summary: /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement("span", null, "\u5DF2\u542F\u7528 ", enabledKiraCount, "/4 \u8230\u961F"), /* @__PURE__ */ import_react4.default.createElement("span", { className: `kca-badge ${useFleet1Mode ? "kca-badge-ok" : ""}` }, useFleet1Mode ? "1\u961F\u8DE8\u961F\u76F4\u6362" : "\u539F\u8230\u961F\u76F4\u5237"), /* @__PURE__ */ import_react4.default.createElement("span", { className: "kca-muted" }, "\u9ED8\u8BA4 <", KIRA_START_COND, " \u8D77\u5237 \u2192 \u5237\u81F3\u76EE\u6807\u58EB\u6C14")),
|
|
14612
|
+
headerRight: /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react4.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "kira" }), /* @__PURE__ */ import_react4.default.createElement(
|
|
14419
14613
|
"label",
|
|
14420
14614
|
{
|
|
14421
14615
|
className: "kca-switch",
|
|
14422
14616
|
title: "\u5F00\u542F\u540E\uFF1A\u7B2C 2~4 \u8230\u961F\u5237\u95EA\u65F6\u7EDF\u4E00\u501F\u7528\u7B2C 1 \u8230\u961F\u51FA\u51FB\uFF0C\u4E0D\u89E3\u6563\u539F\u961F\uFF0C\u4EC5\u628A\u6389\u95EA\u8239\u8DE8\u961F\u6362\u5230\u7B2C 1 \u8230\u961F\uFF0C\u5237\u6EE1\u540E\u6309\u6700\u5C0F\u5DEE\u5206\u81EA\u52A8\u8FD8\u539F\uFF08\u652F\u6301\u8DE8\u961F\u5408\u5E76\u5237\u95EA\u4E0E\u65AD\u7EBF\u6062\u590D\uFF09\uFF1B\u8054\u5408\u8230\u961F\u7F16\u6210\u4E2D\u81EA\u52A8\u907F\u8BA9"
|
|
14423
14617
|
},
|
|
14424
|
-
/* @__PURE__ */
|
|
14618
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
|
14425
14619
|
"input",
|
|
14426
14620
|
{
|
|
14427
14621
|
type: "checkbox",
|
|
@@ -14431,10 +14625,10 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14431
14625
|
})
|
|
14432
14626
|
}
|
|
14433
14627
|
),
|
|
14434
|
-
/* @__PURE__ */
|
|
14435
|
-
)
|
|
14628
|
+
/* @__PURE__ */ import_react4.default.createElement("strong", null, "\u7EDF\u4E00\u5728\u7B2C 1 \u8230\u961F\u5237\u95EA")
|
|
14629
|
+
))
|
|
14436
14630
|
},
|
|
14437
|
-
pendingRestore && restoreFleetLabels && /* @__PURE__ */
|
|
14631
|
+
pendingRestore && restoreFleetLabels && /* @__PURE__ */ import_react4.default.createElement(
|
|
14438
14632
|
"div",
|
|
14439
14633
|
{
|
|
14440
14634
|
className: "kca-sub-box",
|
|
@@ -14448,15 +14642,15 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14448
14642
|
flexWrap: "wrap"
|
|
14449
14643
|
}
|
|
14450
14644
|
},
|
|
14451
|
-
/* @__PURE__ */
|
|
14452
|
-
/* @__PURE__ */
|
|
14645
|
+
/* @__PURE__ */ import_react4.default.createElement("span", { style: { color: "#fcd34d", fontSize: 12 } }, "\u26A0 \u5B58\u5728\u672A\u8FD8\u539F\u7684\u5237\u95EA\u539F\u7F16\u6210\u5FEB\u7167\uFF1A", restoreFleetLabels, "\uFF08\u65AD\u7EBF/\u6682\u505C\u540E\u53EF\u4E00\u952E\u590D\u539F\uFF09"),
|
|
14646
|
+
/* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
14453
14647
|
"button",
|
|
14454
14648
|
{
|
|
14455
14649
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
14456
14650
|
onClick: () => void coordinator.restoreKiraFleetsNow()
|
|
14457
14651
|
},
|
|
14458
14652
|
"\u21A9 \u7ACB\u5373\u4E00\u952E\u8FD8\u539F\u539F\u7F16\u6210"
|
|
14459
|
-
), /* @__PURE__ */
|
|
14653
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
|
14460
14654
|
"button",
|
|
14461
14655
|
{
|
|
14462
14656
|
className: "kca-btn kca-btn-sm",
|
|
@@ -14466,12 +14660,12 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14466
14660
|
"\u5FFD\u7565\u8BB0\u5F55"
|
|
14467
14661
|
))
|
|
14468
14662
|
),
|
|
14469
|
-
/* @__PURE__ */
|
|
14663
|
+
/* @__PURE__ */ import_react4.default.createElement("table", { className: "kca-table" }, /* @__PURE__ */ import_react4.default.createElement("thead", null, /* @__PURE__ */ import_react4.default.createElement("tr", null, /* @__PURE__ */ import_react4.default.createElement("th", null, "\u8230\u961F"), /* @__PURE__ */ import_react4.default.createElement("th", null, "\u542F\u7528"), /* @__PURE__ */ import_react4.default.createElement("th", { title: "\u4E0D\u52FE\u9009\uFF08\u9ED8\u8BA4\uFF09\uFF1A\u58EB\u6C14\u4F4E\u4E8E 50 \u624D\u5F00\u59CB\u5237\uFF0C\u5237\u81F3\u76EE\u6807\u58EB\u6C14\uFF1B\u52FE\u9009\uFF08\u4EC5\u652F\u63F4\u8230\u961F\uFF09\uFF1A\u58EB\u6C14\u4F4E\u4E8E\u76EE\u6807\u58EB\u6C14\u5373\u5F3A\u5236\u8865\u95EA\uFF0C\u8FDC\u5F81\u8230\u961F\u8BF7\u52FF\u52FE\u9009" }, "\u652F\u63F4\u6A21\u5F0F"), /* @__PURE__ */ import_react4.default.createElement("th", null, "\u95EA\u8230\u6570"), /* @__PURE__ */ import_react4.default.createElement("th", null, "\u76EE\u6807\u58EB\u6C14"), /* @__PURE__ */ import_react4.default.createElement("th", null, "\u987A\u5E8F"), /* @__PURE__ */ import_react4.default.createElement("th", null, "\u5F53\u524D\u58EB\u6C14\u9884\u89C8"))), /* @__PURE__ */ import_react4.default.createElement("tbody", null, [0, 1, 2, 3].map((i) => {
|
|
14470
14664
|
const fleet = gameState.fleets[i + 1];
|
|
14471
14665
|
const ships = (fleet?.shipIds ?? []).map((id) => gameState.ships[id]).filter(Boolean);
|
|
14472
14666
|
const effTargetCond = getEffectiveKiraTargetCond(exp.kiraTargetCond[i]);
|
|
14473
14667
|
const isSupport = Boolean(exp.kiraForSupport[i]);
|
|
14474
|
-
return /* @__PURE__ */
|
|
14668
|
+
return /* @__PURE__ */ import_react4.default.createElement("tr", { key: i }, /* @__PURE__ */ import_react4.default.createElement("td", null, "\u7B2C ", i + 1, " \u8230\u961F"), /* @__PURE__ */ import_react4.default.createElement("td", null, /* @__PURE__ */ import_react4.default.createElement(
|
|
14475
14669
|
"input",
|
|
14476
14670
|
{
|
|
14477
14671
|
type: "checkbox",
|
|
@@ -14481,13 +14675,13 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14481
14675
|
syncRememberedPreset(s, i);
|
|
14482
14676
|
})
|
|
14483
14677
|
}
|
|
14484
|
-
)), /* @__PURE__ */
|
|
14678
|
+
)), /* @__PURE__ */ import_react4.default.createElement("td", null, /* @__PURE__ */ import_react4.default.createElement(
|
|
14485
14679
|
"label",
|
|
14486
14680
|
{
|
|
14487
14681
|
className: "kca-switch",
|
|
14488
14682
|
title: isSupport ? `\u652F\u63F4\u6A21\u5F0F\uFF1A\u58EB\u6C14 < ${effTargetCond} \u5373\u5F00\u59CB\u5237\u81F3 ${effTargetCond}` : `\u5E38\u89C4\u6A21\u5F0F\uFF1A\u58EB\u6C14 < ${KIRA_START_COND} \u624D\u5F00\u59CB\u5237\uFF0C\u5237\u81F3 ${effTargetCond}`
|
|
14489
14683
|
},
|
|
14490
|
-
/* @__PURE__ */
|
|
14684
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
|
14491
14685
|
"input",
|
|
14492
14686
|
{
|
|
14493
14687
|
type: "checkbox",
|
|
@@ -14498,8 +14692,8 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14498
14692
|
})
|
|
14499
14693
|
}
|
|
14500
14694
|
),
|
|
14501
|
-
/* @__PURE__ */
|
|
14502
|
-
)), /* @__PURE__ */
|
|
14695
|
+
/* @__PURE__ */ import_react4.default.createElement("span", { className: "kca-muted", style: { fontSize: 11 } }, isSupport ? `<${effTargetCond}` : `<${KIRA_START_COND}`)
|
|
14696
|
+
)), /* @__PURE__ */ import_react4.default.createElement("td", null, /* @__PURE__ */ import_react4.default.createElement(
|
|
14503
14697
|
"input",
|
|
14504
14698
|
{
|
|
14505
14699
|
type: "number",
|
|
@@ -14513,7 +14707,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14513
14707
|
syncRememberedPreset(s, i);
|
|
14514
14708
|
})
|
|
14515
14709
|
}
|
|
14516
|
-
)), /* @__PURE__ */
|
|
14710
|
+
)), /* @__PURE__ */ import_react4.default.createElement("td", null, /* @__PURE__ */ import_react4.default.createElement(
|
|
14517
14711
|
"input",
|
|
14518
14712
|
{
|
|
14519
14713
|
type: "number",
|
|
@@ -14527,7 +14721,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14527
14721
|
syncRememberedPreset(s, i);
|
|
14528
14722
|
})
|
|
14529
14723
|
}
|
|
14530
|
-
)), /* @__PURE__ */
|
|
14724
|
+
)), /* @__PURE__ */ import_react4.default.createElement("td", null, /* @__PURE__ */ import_react4.default.createElement(
|
|
14531
14725
|
"select",
|
|
14532
14726
|
{
|
|
14533
14727
|
className: "kca-select",
|
|
@@ -14537,19 +14731,19 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14537
14731
|
syncRememberedPreset(s, i);
|
|
14538
14732
|
})
|
|
14539
14733
|
},
|
|
14540
|
-
/* @__PURE__ */
|
|
14541
|
-
/* @__PURE__ */
|
|
14542
|
-
)), /* @__PURE__ */
|
|
14734
|
+
/* @__PURE__ */ import_react4.default.createElement("option", { value: "level" }, "\u7B49\u7EA7\u4F18\u5148"),
|
|
14735
|
+
/* @__PURE__ */ import_react4.default.createElement("option", { value: "slot" }, "\u987A\u4F4D\u4F18\u5148")
|
|
14736
|
+
)), /* @__PURE__ */ import_react4.default.createElement("td", null, ships.length === 0 ? /* @__PURE__ */ import_react4.default.createElement("span", { className: "kca-muted" }, "-") : /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-chip-list" }, ships.map((sh) => /* @__PURE__ */ import_react4.default.createElement("span", { key: sh.id, style: { fontSize: 11 } }, sh.name, "(", /* @__PURE__ */ import_react4.default.createElement("span", { className: condClass(sh.cond) }, sh.cond), ")")))));
|
|
14543
14737
|
}))),
|
|
14544
|
-
/* @__PURE__ */
|
|
14738
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
|
14545
14739
|
CollapsibleSubBox,
|
|
14546
14740
|
{
|
|
14547
14741
|
storageKey: "exp.kira.advanced",
|
|
14548
14742
|
title: "\u966A\u7EC3\u9A71\u9010\u4E0E\u4FEE\u7406\u4FDD\u62A4\u53C2\u6570",
|
|
14549
14743
|
defaultOpen: false,
|
|
14550
|
-
summary: /* @__PURE__ */
|
|
14744
|
+
summary: /* @__PURE__ */ import_react4.default.createElement("span", null, "\u4FEE\u7406<", exp.kiraHpPercent, "% \xB7 \u6876>", exp.kiraRepairBucketMinutes, "\u5206 \xB7", " ", exp.kiraUseEscort ? `\u5E26\u966A\u7EC3 (Lv\u2264${exp.kiraEscortMaxLevel})` : "\u5355\u8230\u5237\u95EA")
|
|
14551
14745
|
},
|
|
14552
|
-
/* @__PURE__ */
|
|
14746
|
+
/* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-grid" }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react4.default.createElement("label", null, "\u65D7\u8230\u4FEE\u7406\u9608\u503C (HP% <)"), /* @__PURE__ */ import_react4.default.createElement(
|
|
14553
14747
|
"input",
|
|
14554
14748
|
{
|
|
14555
14749
|
type: "number",
|
|
@@ -14559,7 +14753,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14559
14753
|
s.expedition.kiraHpPercent = Number(e.target.value) || 60;
|
|
14560
14754
|
})
|
|
14561
14755
|
}
|
|
14562
|
-
)), /* @__PURE__ */
|
|
14756
|
+
)), /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react4.default.createElement("label", null, "\u5237\u95EA/\u8FDC\u5F81\u6CFC\u6876\u9608\u503C (\u5206\u949F)"), /* @__PURE__ */ import_react4.default.createElement(
|
|
14563
14757
|
"input",
|
|
14564
14758
|
{
|
|
14565
14759
|
type: "number",
|
|
@@ -14569,7 +14763,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14569
14763
|
s.expedition.kiraRepairBucketMinutes = Number(e.target.value) || 10;
|
|
14570
14764
|
})
|
|
14571
14765
|
}
|
|
14572
|
-
)), /* @__PURE__ */
|
|
14766
|
+
)), /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react4.default.createElement("label", null, "\u966A\u7EC3\u6700\u4F4E\u8840\u91CF (HP% \u2265)"), /* @__PURE__ */ import_react4.default.createElement(
|
|
14573
14767
|
"input",
|
|
14574
14768
|
{
|
|
14575
14769
|
type: "number",
|
|
@@ -14581,7 +14775,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14581
14775
|
s.expedition.kiraEscortMinHpPercent = Math.max(1, Math.min(100, Number(e.target.value) || 60));
|
|
14582
14776
|
})
|
|
14583
14777
|
}
|
|
14584
|
-
)), /* @__PURE__ */
|
|
14778
|
+
)), /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react4.default.createElement("label", null, "\u966A\u7EC3\u9A71\u9010\u7B49\u7EA7\u4E0A\u9650 / \u7A00\u6709\u5EA6\u4E0A\u9650"), /* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
14585
14779
|
"input",
|
|
14586
14780
|
{
|
|
14587
14781
|
type: "number",
|
|
@@ -14592,7 +14786,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14592
14786
|
s.expedition.kiraEscortMaxLevel = Number(e.target.value) || 5;
|
|
14593
14787
|
})
|
|
14594
14788
|
}
|
|
14595
|
-
), /* @__PURE__ */
|
|
14789
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
|
14596
14790
|
"select",
|
|
14597
14791
|
{
|
|
14598
14792
|
className: "kca-select",
|
|
@@ -14601,11 +14795,11 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14601
14795
|
s.expedition.kiraEscortRarityCeiling = Number(e.target.value);
|
|
14602
14796
|
})
|
|
14603
14797
|
},
|
|
14604
|
-
/* @__PURE__ */
|
|
14605
|
-
/* @__PURE__ */
|
|
14606
|
-
/* @__PURE__ */
|
|
14798
|
+
/* @__PURE__ */ import_react4.default.createElement("option", { value: 4 }, "\u94F6\u8272\u4EE5\u4E0B"),
|
|
14799
|
+
/* @__PURE__ */ import_react4.default.createElement("option", { value: 5 }, "\u91D1\u8272\u4EE5\u4E0B"),
|
|
14800
|
+
/* @__PURE__ */ import_react4.default.createElement("option", { value: 6 }, "\u8679\u8272\u4EE5\u4E0B")
|
|
14607
14801
|
)))),
|
|
14608
|
-
/* @__PURE__ */
|
|
14802
|
+
/* @__PURE__ */ import_react4.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react4.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
14609
14803
|
"input",
|
|
14610
14804
|
{
|
|
14611
14805
|
type: "checkbox",
|
|
@@ -14614,7 +14808,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14614
14808
|
s.expedition.kiraUseEscort = e.target.checked;
|
|
14615
14809
|
})
|
|
14616
14810
|
}
|
|
14617
|
-
), "\u643A\u5E26\u966A\u7EC3\u9A71\u9010"), /* @__PURE__ */
|
|
14811
|
+
), "\u643A\u5E26\u966A\u7EC3\u9A71\u9010"), /* @__PURE__ */ import_react4.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
14618
14812
|
"input",
|
|
14619
14813
|
{
|
|
14620
14814
|
type: "checkbox",
|
|
@@ -14623,7 +14817,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14623
14817
|
s.expedition.kiraClearEscortEquips = e.target.checked;
|
|
14624
14818
|
})
|
|
14625
14819
|
}
|
|
14626
|
-
), "\u81EA\u52A8\u5378\u9664\u966A\u7EC3\u88C5\u5907"), /* @__PURE__ */
|
|
14820
|
+
), "\u81EA\u52A8\u5378\u9664\u966A\u7EC3\u88C5\u5907"), /* @__PURE__ */ import_react4.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
14627
14821
|
"input",
|
|
14628
14822
|
{
|
|
14629
14823
|
type: "checkbox",
|
|
@@ -14632,7 +14826,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14632
14826
|
s.expedition.kiraSupplyEscort = e.target.checked;
|
|
14633
14827
|
})
|
|
14634
14828
|
}
|
|
14635
|
-
), "\u8865\u7ED9\u966A\u7EC3"), /* @__PURE__ */
|
|
14829
|
+
), "\u8865\u7ED9\u966A\u7EC3"), /* @__PURE__ */ import_react4.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
14636
14830
|
"input",
|
|
14637
14831
|
{
|
|
14638
14832
|
type: "checkbox",
|
|
@@ -14641,7 +14835,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14641
14835
|
s.expedition.kiraExcludeLockedEscort = e.target.checked;
|
|
14642
14836
|
})
|
|
14643
14837
|
}
|
|
14644
|
-
), "\u6392\u9664\u9501\u8239"), /* @__PURE__ */
|
|
14838
|
+
), "\u6392\u9664\u9501\u8239"), /* @__PURE__ */ import_react4.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react4.default.createElement(
|
|
14645
14839
|
"input",
|
|
14646
14840
|
{
|
|
14647
14841
|
type: "checkbox",
|
|
@@ -14656,7 +14850,7 @@ var ExpeditionKiraTab = ({ coordinator, gameState, settings }) => {
|
|
|
14656
14850
|
};
|
|
14657
14851
|
|
|
14658
14852
|
// src/ui/tabs/OrgPracticeQuestsTab.tsx
|
|
14659
|
-
var
|
|
14853
|
+
var import_react5 = __toESM(require("react"));
|
|
14660
14854
|
var PRAC_FORMATION_OPTIONS = [
|
|
14661
14855
|
{ value: "line_ahead", label: "\u5355\u7EB5" },
|
|
14662
14856
|
{ value: "double_line", label: "\u590D\u7EB5" },
|
|
@@ -14687,17 +14881,17 @@ var REPAIR_DAMAGE_LABELS = {
|
|
|
14687
14881
|
heavy: "\u4EC5\u5927\u7834",
|
|
14688
14882
|
scratch: "\u5168\u90E8\u635F\u4F24(\u542B\u64E6\u4F24)"
|
|
14689
14883
|
};
|
|
14690
|
-
var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
14691
|
-
const [recordFleet, setRecordFleet] = (0,
|
|
14692
|
-
const [recordName, setRecordName] = (0,
|
|
14693
|
-
const [expandedOrgId, setExpandedOrgId] = (0,
|
|
14694
|
-
const [newRuleKind, setNewRuleKind] = (0,
|
|
14695
|
-
const [newRuleOp, setNewRuleOp] = (0,
|
|
14696
|
-
const [newRuleCount, setNewRuleCount] = (0,
|
|
14697
|
-
const [newRuleOrgId, setNewRuleOrgId] = (0,
|
|
14698
|
-
const [newRuleForm, setNewRuleForm] = (0,
|
|
14699
|
-
const [newRuleNight, setNewRuleNight] = (0,
|
|
14700
|
-
const [newRuleEquipMode, setNewRuleEquipMode] = (0,
|
|
14884
|
+
var OrgPracticeQuestsTab = ({ coordinator, snap, settings }) => {
|
|
14885
|
+
const [recordFleet, setRecordFleet] = (0, import_react5.useState)(1);
|
|
14886
|
+
const [recordName, setRecordName] = (0, import_react5.useState)("");
|
|
14887
|
+
const [expandedOrgId, setExpandedOrgId] = (0, import_react5.useState)(null);
|
|
14888
|
+
const [newRuleKind, setNewRuleKind] = (0, import_react5.useState)("ss");
|
|
14889
|
+
const [newRuleOp, setNewRuleOp] = (0, import_react5.useState)("ge");
|
|
14890
|
+
const [newRuleCount, setNewRuleCount] = (0, import_react5.useState)(2);
|
|
14891
|
+
const [newRuleOrgId, setNewRuleOrgId] = (0, import_react5.useState)(settings.organization.activePresetId || "");
|
|
14892
|
+
const [newRuleForm, setNewRuleForm] = (0, import_react5.useState)("line_abreast");
|
|
14893
|
+
const [newRuleNight, setNewRuleNight] = (0, import_react5.useState)(false);
|
|
14894
|
+
const [newRuleEquipMode, setNewRuleEquipMode] = (0, import_react5.useState)("inherit");
|
|
14701
14895
|
const org = settings.organization;
|
|
14702
14896
|
const prac = settings.practice;
|
|
14703
14897
|
const rep = settings.repair;
|
|
@@ -14754,23 +14948,24 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14754
14948
|
});
|
|
14755
14949
|
};
|
|
14756
14950
|
const activeOrgPresetName = org.presets.find((p) => p.id === org.activePresetId)?.name;
|
|
14757
|
-
return /* @__PURE__ */
|
|
14951
|
+
return /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement(
|
|
14758
14952
|
CollapsibleCard,
|
|
14759
14953
|
{
|
|
14760
14954
|
storageKey: "modules.org",
|
|
14761
14955
|
title: "\u81EA\u52A8\u7F16\u6210\u4E0E\u6362\u88C5",
|
|
14762
14956
|
defaultOpen: true,
|
|
14763
|
-
summary: /* @__PURE__ */
|
|
14957
|
+
summary: /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement("span", null, org.presets.length, " \u5957\u9884\u8BBE"), activeOrgPresetName && /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-badge kca-badge-ok" }, activeOrgPresetName), /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-badge" }, org.autoEquip ? "\u81EA\u52A8\u6362\u88C5\u5F00" : "\u4EC5\u6362\u8239")),
|
|
14958
|
+
headerRight: /* @__PURE__ */ import_react5.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "organization" })
|
|
14764
14959
|
},
|
|
14765
|
-
/* @__PURE__ */
|
|
14960
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14766
14961
|
"select",
|
|
14767
14962
|
{
|
|
14768
14963
|
className: "kca-select",
|
|
14769
14964
|
value: recordFleet,
|
|
14770
14965
|
onChange: (e) => setRecordFleet(Number(e.target.value))
|
|
14771
14966
|
},
|
|
14772
|
-
[1, 2, 3, 4].map((f) => /* @__PURE__ */
|
|
14773
|
-
), /* @__PURE__ */
|
|
14967
|
+
[1, 2, 3, 4].map((f) => /* @__PURE__ */ import_react5.default.createElement("option", { key: f, value: f }, "\u7B2C", f, "\u8230\u961F"))
|
|
14968
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14774
14969
|
"input",
|
|
14775
14970
|
{
|
|
14776
14971
|
className: "kca-input",
|
|
@@ -14778,8 +14973,8 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14778
14973
|
value: recordName,
|
|
14779
14974
|
onChange: (e) => setRecordName(e.target.value)
|
|
14780
14975
|
}
|
|
14781
|
-
), /* @__PURE__ */
|
|
14782
|
-
/* @__PURE__ */
|
|
14976
|
+
), /* @__PURE__ */ import_react5.default.createElement("button", { className: "kca-btn kca-btn-sm kca-btn-primary", onClick: handleRecordFleet }, "+ \u8BB0\u5F55\u5F53\u524D\u8230\u961F"), /* @__PURE__ */ import_react5.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: handleSortOrgPresets }, "\u6309\u540D\u6392\u5E8F")),
|
|
14977
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14783
14978
|
"input",
|
|
14784
14979
|
{
|
|
14785
14980
|
type: "checkbox",
|
|
@@ -14788,7 +14983,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14788
14983
|
s.organization.autoEquip = e.target.checked;
|
|
14789
14984
|
})
|
|
14790
14985
|
}
|
|
14791
|
-
), "\u542F\u7528\u81EA\u52A8\u6362\u88C5"), /* @__PURE__ */
|
|
14986
|
+
), "\u542F\u7528\u81EA\u52A8\u6362\u88C5"), /* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14792
14987
|
"input",
|
|
14793
14988
|
{
|
|
14794
14989
|
type: "checkbox",
|
|
@@ -14797,7 +14992,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14797
14992
|
s.organization.autoEquipExSlot = e.target.checked;
|
|
14798
14993
|
})
|
|
14799
14994
|
}
|
|
14800
|
-
), "\u5305\u542B\u8865\u5F3A\u589E\u8BBE (\u6253\u5B54)"), /* @__PURE__ */
|
|
14995
|
+
), "\u5305\u542B\u8865\u5F3A\u589E\u8BBE (\u6253\u5B54)"), /* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14801
14996
|
"input",
|
|
14802
14997
|
{
|
|
14803
14998
|
type: "checkbox",
|
|
@@ -14806,7 +15001,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14806
15001
|
s.organization.fuzzyMatching = e.target.checked;
|
|
14807
15002
|
})
|
|
14808
15003
|
}
|
|
14809
|
-
), "\u6A21\u7CCA\u5339\u914D (\u6539\u4FEE/\u719F\u7EC3\u5EA6\u56DE\u9000)"), /* @__PURE__ */
|
|
15004
|
+
), "\u6A21\u7CCA\u5339\u914D (\u6539\u4FEE/\u719F\u7EC3\u5EA6\u56DE\u9000)"), /* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14810
15005
|
"input",
|
|
14811
15006
|
{
|
|
14812
15007
|
type: "checkbox",
|
|
@@ -14816,9 +15011,9 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14816
15011
|
})
|
|
14817
15012
|
}
|
|
14818
15013
|
), "\u5141\u8BB8\u8DE8\u8230\u5265\u79BB\u88C5\u5907")),
|
|
14819
|
-
org.presets.length === 0 ? /* @__PURE__ */
|
|
15014
|
+
org.presets.length === 0 ? /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-muted" }, "\u6682\u65E0\u7F16\u6210\u9884\u8BBE\uFF0C\u70B9\u51FB\u4E0A\u65B9\u300C+ \u8BB0\u5F55\u5F53\u524D\u8230\u961F\u300D\u6216\u5BFC\u5165\u65E7\u7248 XML \u914D\u7F6E\u3002") : /* @__PURE__ */ import_react5.default.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 6 } }, org.presets.map((p) => {
|
|
14820
15015
|
const expanded = expandedOrgId === p.id;
|
|
14821
|
-
return /* @__PURE__ */
|
|
15016
|
+
return /* @__PURE__ */ import_react5.default.createElement("div", { key: p.id, className: "kca-slot-card" }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row", style: { gap: 6 } }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14822
15017
|
"input",
|
|
14823
15018
|
{
|
|
14824
15019
|
className: "kca-input",
|
|
@@ -14829,7 +15024,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14829
15024
|
if (target) target.name = e.target.value;
|
|
14830
15025
|
})
|
|
14831
15026
|
}
|
|
14832
|
-
), /* @__PURE__ */
|
|
15027
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14833
15028
|
"select",
|
|
14834
15029
|
{
|
|
14835
15030
|
className: "kca-select",
|
|
@@ -14839,15 +15034,15 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14839
15034
|
if (target) target.fleet = Number(e.target.value);
|
|
14840
15035
|
})
|
|
14841
15036
|
},
|
|
14842
|
-
[1, 2, 3, 4].map((f) => /* @__PURE__ */
|
|
14843
|
-
), org.activePresetId === p.id && /* @__PURE__ */
|
|
15037
|
+
[1, 2, 3, 4].map((f) => /* @__PURE__ */ import_react5.default.createElement("option", { key: f, value: f }, "\u7B2C", f, "\u8230\u961F"))
|
|
15038
|
+
), org.activePresetId === p.id && /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u5F53\u524D"), /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-muted" }, p.ships.map((s) => s.name).join(" / ") || "(\u7A7A)")), /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row", style: { gap: 5 } }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14844
15039
|
"button",
|
|
14845
15040
|
{
|
|
14846
15041
|
className: "kca-btn kca-btn-sm",
|
|
14847
15042
|
onClick: () => setExpandedOrgId(expanded ? null : p.id)
|
|
14848
15043
|
},
|
|
14849
15044
|
expanded ? "\u6536\u8D77\u88C5\u5907" : "\u67E5\u770B\u88C5\u5907"
|
|
14850
|
-
), /* @__PURE__ */
|
|
15045
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14851
15046
|
"button",
|
|
14852
15047
|
{
|
|
14853
15048
|
className: "kca-btn kca-btn-sm",
|
|
@@ -14855,7 +15050,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14855
15050
|
onClick: () => coordinator.organization.overwritePresetFromCurrentFleet(p.id, p.fleet)
|
|
14856
15051
|
},
|
|
14857
15052
|
"\u8986\u5199\u8BB0\u5F55"
|
|
14858
|
-
), /* @__PURE__ */
|
|
15053
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14859
15054
|
"button",
|
|
14860
15055
|
{
|
|
14861
15056
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
@@ -14867,7 +15062,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14867
15062
|
}
|
|
14868
15063
|
},
|
|
14869
15064
|
"\u7ACB\u5373\u5E94\u7528"
|
|
14870
|
-
), /* @__PURE__ */
|
|
15065
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14871
15066
|
"button",
|
|
14872
15067
|
{
|
|
14873
15068
|
className: "kca-btn kca-btn-sm",
|
|
@@ -14879,20 +15074,20 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14879
15074
|
})
|
|
14880
15075
|
},
|
|
14881
15076
|
"\u5220\u9664"
|
|
14882
|
-
))), expanded && /* @__PURE__ */
|
|
15077
|
+
))), expanded && /* @__PURE__ */ import_react5.default.createElement("table", { className: "kca-table" }, /* @__PURE__ */ import_react5.default.createElement("thead", null, /* @__PURE__ */ import_react5.default.createElement("tr", null, /* @__PURE__ */ import_react5.default.createElement("th", null, "#"), /* @__PURE__ */ import_react5.default.createElement("th", null, "\u8230\u5A18"), /* @__PURE__ */ import_react5.default.createElement("th", null, "\u4E3B\u88C5\u5907"), /* @__PURE__ */ import_react5.default.createElement("th", null, "\u8865\u5F3A\u589E\u8BBE"))), /* @__PURE__ */ import_react5.default.createElement("tbody", null, p.ships.map((sh, idx) => /* @__PURE__ */ import_react5.default.createElement("tr", { key: `${sh.id}-${idx}` }, /* @__PURE__ */ import_react5.default.createElement("td", null, idx + 1), /* @__PURE__ */ import_react5.default.createElement("td", null, sh.name, " ", /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-muted" }, "(", sh.stypeName || `#${sh.id}`, ")")), /* @__PURE__ */ import_react5.default.createElement("td", { className: "kca-muted" }, sh.slots.filter((it) => it.name).map((it) => {
|
|
14883
15078
|
const lv = it.level > 0 ? `\u2605+${it.level}` : "";
|
|
14884
15079
|
const pr = it.proficiency > 0 ? `[\u719F${it.proficiency}]` : "";
|
|
14885
15080
|
return `${it.name}${lv}${pr}`;
|
|
14886
|
-
}).join(" \xB7 ") || "\u65E0"), /* @__PURE__ */
|
|
15081
|
+
}).join(" \xB7 ") || "\u65E0"), /* @__PURE__ */ import_react5.default.createElement("td", { className: "kca-muted" }, sh.exSlot?.name ? `${sh.exSlot.name}${sh.exSlot.level > 0 ? `\u2605+${sh.exSlot.level}` : ""}` : "-"))))));
|
|
14887
15082
|
}))
|
|
14888
|
-
), /* @__PURE__ */
|
|
15083
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14889
15084
|
CollapsibleCard,
|
|
14890
15085
|
{
|
|
14891
15086
|
storageKey: "modules.practice",
|
|
14892
15087
|
title: "\u81EA\u52A8\u6F14\u4E60",
|
|
14893
15088
|
defaultOpen: true,
|
|
14894
|
-
summary: /* @__PURE__ */
|
|
14895
|
-
headerRight: /* @__PURE__ */
|
|
15089
|
+
summary: /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement("span", null, prac.deploys.length, " \u6761\u89C4\u5219"), prac.swapShipsOnly && /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u4EC5\u6362\u8239")),
|
|
15090
|
+
headerRight: /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "practice" }), /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-badge kca-badge-run" }, "\u5269\u4F59\u5BF9\u624B: ", prac.remainingOpponents), /* @__PURE__ */ import_react5.default.createElement(
|
|
14896
15091
|
"button",
|
|
14897
15092
|
{
|
|
14898
15093
|
className: "kca-btn kca-btn-sm",
|
|
@@ -14904,7 +15099,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14904
15099
|
"\u91CD\u7F6E\u4E3A5"
|
|
14905
15100
|
))
|
|
14906
15101
|
},
|
|
14907
|
-
/* @__PURE__ */
|
|
15102
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement("label", null, "\u9ED8\u8BA4\u7F16\u6210\uFF1A"), /* @__PURE__ */ import_react5.default.createElement(
|
|
14908
15103
|
"select",
|
|
14909
15104
|
{
|
|
14910
15105
|
className: "kca-select",
|
|
@@ -14913,9 +15108,9 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14913
15108
|
s.practice.defaultDeploy.orgPresetId = e.target.value;
|
|
14914
15109
|
})
|
|
14915
15110
|
},
|
|
14916
|
-
/* @__PURE__ */
|
|
14917
|
-
org.presets.map((p) => /* @__PURE__ */
|
|
14918
|
-
), /* @__PURE__ */
|
|
15111
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "" }, "\u4E0D\u5207\u6362\u7F16\u6210"),
|
|
15112
|
+
org.presets.map((p) => /* @__PURE__ */ import_react5.default.createElement("option", { key: p.id, value: p.id }, p.name))
|
|
15113
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14919
15114
|
"select",
|
|
14920
15115
|
{
|
|
14921
15116
|
className: "kca-select",
|
|
@@ -14924,8 +15119,8 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14924
15119
|
s.practice.defaultDeploy.formation = e.target.value;
|
|
14925
15120
|
})
|
|
14926
15121
|
},
|
|
14927
|
-
PRAC_FORMATION_OPTIONS.map((o) => /* @__PURE__ */
|
|
14928
|
-
), /* @__PURE__ */
|
|
15122
|
+
PRAC_FORMATION_OPTIONS.map((o) => /* @__PURE__ */ import_react5.default.createElement("option", { key: o.value, value: o.value }, o.label))
|
|
15123
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14929
15124
|
"select",
|
|
14930
15125
|
{
|
|
14931
15126
|
className: "kca-select",
|
|
@@ -14934,8 +15129,8 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14934
15129
|
s.practice.defaultDeploy.equipMode = e.target.value;
|
|
14935
15130
|
})
|
|
14936
15131
|
},
|
|
14937
|
-
PRAC_EQUIP_MODE_OPTIONS.map((o) => /* @__PURE__ */
|
|
14938
|
-
), /* @__PURE__ */
|
|
15132
|
+
PRAC_EQUIP_MODE_OPTIONS.map((o) => /* @__PURE__ */ import_react5.default.createElement("option", { key: o.value, value: o.value }, o.label))
|
|
15133
|
+
), /* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14939
15134
|
"input",
|
|
14940
15135
|
{
|
|
14941
15136
|
type: "checkbox",
|
|
@@ -14944,13 +15139,13 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14944
15139
|
s.practice.defaultDeploy.nightBattle = e.target.checked;
|
|
14945
15140
|
})
|
|
14946
15141
|
}
|
|
14947
|
-
), "\u9ED8\u8BA4\u591C\u6218"), /* @__PURE__ */
|
|
15142
|
+
), "\u9ED8\u8BA4\u591C\u6218"), /* @__PURE__ */ import_react5.default.createElement(
|
|
14948
15143
|
"label",
|
|
14949
15144
|
{
|
|
14950
15145
|
className: "kca-switch",
|
|
14951
15146
|
title: "\u5F00\u542F\u540E\u6F14\u4E60\u5207\u6362\u8230\u961F\u7F16\u6210\u65F6\u4EC5\u66F4\u6362\u8230\u5A18\u3001\u4E0D\u6539\u52A8\u4EFB\u4F55\u88C5\u5907\uFF08\u4E0D\u5F71\u54CD\u7F16\u6210\u9875\u7684\u5168\u5C40\u81EA\u52A8\u6362\u88C5\uFF0C\u4E5F\u53EF\u5728\u4E0B\u65B9\u6BCF\u6761\u89C4\u5219\u4E2D\u5355\u72EC\u8986\u76D6\uFF09"
|
|
14952
15147
|
},
|
|
14953
|
-
/* @__PURE__ */
|
|
15148
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
|
14954
15149
|
"input",
|
|
14955
15150
|
{
|
|
14956
15151
|
type: "checkbox",
|
|
@@ -14960,8 +15155,8 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14960
15155
|
})
|
|
14961
15156
|
}
|
|
14962
15157
|
),
|
|
14963
|
-
/* @__PURE__ */
|
|
14964
|
-
), /* @__PURE__ */
|
|
15158
|
+
/* @__PURE__ */ import_react5.default.createElement("strong", null, "\u6362\u961F\u53EA\u6362\u8239\u4E0D\u6362\u88C5\u5907")
|
|
15159
|
+
), /* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
14965
15160
|
"input",
|
|
14966
15161
|
{
|
|
14967
15162
|
type: "checkbox",
|
|
@@ -14971,26 +15166,26 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
14971
15166
|
})
|
|
14972
15167
|
}
|
|
14973
15168
|
), "\u6F14\u4E60\u65F6\u81EA\u52A8\u5F00\u542F\u4EFB\u52A1")),
|
|
14974
|
-
/* @__PURE__ */
|
|
15169
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-sub-box" }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement("span", null, "\u65B0\u5EFA\u6761\u4EF6\u89C4\u5219\uFF1A\u654C\u65B9"), /* @__PURE__ */ import_react5.default.createElement(
|
|
14975
15170
|
"select",
|
|
14976
15171
|
{
|
|
14977
15172
|
className: "kca-select",
|
|
14978
15173
|
value: newRuleKind,
|
|
14979
15174
|
onChange: (e) => setNewRuleKind(e.target.value)
|
|
14980
15175
|
},
|
|
14981
|
-
/* @__PURE__ */
|
|
14982
|
-
/* @__PURE__ */
|
|
14983
|
-
/* @__PURE__ */
|
|
14984
|
-
), /* @__PURE__ */
|
|
15176
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "ss" }, "\u6F5C\u6C34\u8230 (SS)"),
|
|
15177
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "cv" }, "\u7A7A\u6BCD (CV/CVL/CVB)"),
|
|
15178
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "bb" }, "\u6218\u8230 (BB/FBB/BBV)")
|
|
15179
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14985
15180
|
"select",
|
|
14986
15181
|
{
|
|
14987
15182
|
className: "kca-select",
|
|
14988
15183
|
value: newRuleOp,
|
|
14989
15184
|
onChange: (e) => setNewRuleOp(e.target.value)
|
|
14990
15185
|
},
|
|
14991
|
-
/* @__PURE__ */
|
|
14992
|
-
/* @__PURE__ */
|
|
14993
|
-
), /* @__PURE__ */
|
|
15186
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "ge" }, "\u2265"),
|
|
15187
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "le" }, "\u2264")
|
|
15188
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
14994
15189
|
"input",
|
|
14995
15190
|
{
|
|
14996
15191
|
type: "number",
|
|
@@ -15001,40 +15196,40 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15001
15196
|
value: newRuleCount,
|
|
15002
15197
|
onChange: (e) => setNewRuleCount(Math.max(0, Math.min(6, Number(e.target.value) || 0)))
|
|
15003
15198
|
}
|
|
15004
|
-
), /* @__PURE__ */
|
|
15199
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15005
15200
|
"select",
|
|
15006
15201
|
{
|
|
15007
15202
|
className: "kca-select",
|
|
15008
15203
|
value: newRuleOrgId,
|
|
15009
15204
|
onChange: (e) => setNewRuleOrgId(e.target.value)
|
|
15010
15205
|
},
|
|
15011
|
-
/* @__PURE__ */
|
|
15012
|
-
org.presets.map((p) => /* @__PURE__ */
|
|
15013
|
-
), /* @__PURE__ */
|
|
15206
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "" }, "\u4E0D\u5207\u6362\u7F16\u6210"),
|
|
15207
|
+
org.presets.map((p) => /* @__PURE__ */ import_react5.default.createElement("option", { key: p.id, value: p.id }, p.name))
|
|
15208
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15014
15209
|
"select",
|
|
15015
15210
|
{
|
|
15016
15211
|
className: "kca-select",
|
|
15017
15212
|
value: newRuleForm,
|
|
15018
15213
|
onChange: (e) => setNewRuleForm(e.target.value)
|
|
15019
15214
|
},
|
|
15020
|
-
PRAC_FORMATION_OPTIONS.map((o) => /* @__PURE__ */
|
|
15021
|
-
), /* @__PURE__ */
|
|
15215
|
+
PRAC_FORMATION_OPTIONS.map((o) => /* @__PURE__ */ import_react5.default.createElement("option", { key: o.value, value: o.value }, o.label))
|
|
15216
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15022
15217
|
"select",
|
|
15023
15218
|
{
|
|
15024
15219
|
className: "kca-select",
|
|
15025
15220
|
value: newRuleEquipMode,
|
|
15026
15221
|
onChange: (e) => setNewRuleEquipMode(e.target.value)
|
|
15027
15222
|
},
|
|
15028
|
-
PRAC_EQUIP_MODE_OPTIONS.map((o) => /* @__PURE__ */
|
|
15029
|
-
), /* @__PURE__ */
|
|
15223
|
+
PRAC_EQUIP_MODE_OPTIONS.map((o) => /* @__PURE__ */ import_react5.default.createElement("option", { key: o.value, value: o.value }, o.label))
|
|
15224
|
+
), /* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
15030
15225
|
"input",
|
|
15031
15226
|
{
|
|
15032
15227
|
type: "checkbox",
|
|
15033
15228
|
checked: newRuleNight,
|
|
15034
15229
|
onChange: (e) => setNewRuleNight(e.target.checked)
|
|
15035
15230
|
}
|
|
15036
|
-
), "\u591C\u6218"), /* @__PURE__ */
|
|
15037
|
-
prac.deploys.map((rule, rIdx) => /* @__PURE__ */
|
|
15231
|
+
), "\u591C\u6218"), /* @__PURE__ */ import_react5.default.createElement("button", { className: "kca-btn kca-btn-sm kca-btn-primary", onClick: handleAddPracticeRule }, "+ \u6DFB\u52A0\u89C4\u5219"))),
|
|
15232
|
+
prac.deploys.map((rule, rIdx) => /* @__PURE__ */ import_react5.default.createElement("div", { key: rule.id, className: "kca-slot-card" }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-chip-list" }, /* @__PURE__ */ import_react5.default.createElement("strong", null, "\u89C4\u5219 #", rIdx + 1, "\uFF1A"), rule.conditions.map((c, cIdx) => /* @__PURE__ */ import_react5.default.createElement("span", { key: c.id, className: "kca-chip" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
15038
15233
|
"select",
|
|
15039
15234
|
{
|
|
15040
15235
|
className: "kca-select",
|
|
@@ -15047,10 +15242,10 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15047
15242
|
}
|
|
15048
15243
|
})
|
|
15049
15244
|
},
|
|
15050
|
-
/* @__PURE__ */
|
|
15051
|
-
/* @__PURE__ */
|
|
15052
|
-
/* @__PURE__ */
|
|
15053
|
-
), /* @__PURE__ */
|
|
15245
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "ss" }, "SS"),
|
|
15246
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "cv" }, "CV"),
|
|
15247
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "bb" }, "BB")
|
|
15248
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15054
15249
|
"select",
|
|
15055
15250
|
{
|
|
15056
15251
|
className: "kca-select",
|
|
@@ -15063,9 +15258,9 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15063
15258
|
}
|
|
15064
15259
|
})
|
|
15065
15260
|
},
|
|
15066
|
-
/* @__PURE__ */
|
|
15067
|
-
/* @__PURE__ */
|
|
15068
|
-
), /* @__PURE__ */
|
|
15261
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "ge" }, "\u2265"),
|
|
15262
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "le" }, "\u2264")
|
|
15263
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15069
15264
|
"input",
|
|
15070
15265
|
{
|
|
15071
15266
|
type: "number",
|
|
@@ -15081,7 +15276,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15081
15276
|
}
|
|
15082
15277
|
})
|
|
15083
15278
|
}
|
|
15084
|
-
), rule.conditions.length > 1 && /* @__PURE__ */
|
|
15279
|
+
), rule.conditions.length > 1 && /* @__PURE__ */ import_react5.default.createElement(
|
|
15085
15280
|
"button",
|
|
15086
15281
|
{
|
|
15087
15282
|
className: "kca-chip-btn",
|
|
@@ -15092,7 +15287,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15092
15287
|
})
|
|
15093
15288
|
},
|
|
15094
15289
|
"\xD7"
|
|
15095
|
-
))), /* @__PURE__ */
|
|
15290
|
+
))), /* @__PURE__ */ import_react5.default.createElement(
|
|
15096
15291
|
"button",
|
|
15097
15292
|
{
|
|
15098
15293
|
className: "kca-btn kca-btn-sm",
|
|
@@ -15109,7 +15304,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15109
15304
|
})
|
|
15110
15305
|
},
|
|
15111
15306
|
"+ \u4E14\u6761\u4EF6"
|
|
15112
|
-
)), /* @__PURE__ */
|
|
15307
|
+
)), /* @__PURE__ */ import_react5.default.createElement(
|
|
15113
15308
|
"button",
|
|
15114
15309
|
{
|
|
15115
15310
|
className: "kca-btn kca-btn-sm",
|
|
@@ -15118,7 +15313,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15118
15313
|
})
|
|
15119
15314
|
},
|
|
15120
15315
|
"\u5220\u9664\u89C4\u5219"
|
|
15121
|
-
)), /* @__PURE__ */
|
|
15316
|
+
)), /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-muted" }, "\u5E94\u5BF9\u7F16\u6210\uFF1A"), /* @__PURE__ */ import_react5.default.createElement(
|
|
15122
15317
|
"select",
|
|
15123
15318
|
{
|
|
15124
15319
|
className: "kca-select",
|
|
@@ -15128,9 +15323,9 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15128
15323
|
if (target) target.orgPresetId = e.target.value;
|
|
15129
15324
|
})
|
|
15130
15325
|
},
|
|
15131
|
-
/* @__PURE__ */
|
|
15132
|
-
org.presets.map((p) => /* @__PURE__ */
|
|
15133
|
-
), /* @__PURE__ */
|
|
15326
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "" }, "\u4E0D\u5207\u6362\u7F16\u6210"),
|
|
15327
|
+
org.presets.map((p) => /* @__PURE__ */ import_react5.default.createElement("option", { key: p.id, value: p.id }, p.name))
|
|
15328
|
+
), /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-muted" }, "\u9635\u578B\uFF1A"), /* @__PURE__ */ import_react5.default.createElement(
|
|
15134
15329
|
"select",
|
|
15135
15330
|
{
|
|
15136
15331
|
className: "kca-select",
|
|
@@ -15140,8 +15335,8 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15140
15335
|
if (target) target.formation = e.target.value;
|
|
15141
15336
|
})
|
|
15142
15337
|
},
|
|
15143
|
-
PRAC_FORMATION_OPTIONS.map((o) => /* @__PURE__ */
|
|
15144
|
-
), /* @__PURE__ */
|
|
15338
|
+
PRAC_FORMATION_OPTIONS.map((o) => /* @__PURE__ */ import_react5.default.createElement("option", { key: o.value, value: o.value }, o.label))
|
|
15339
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15145
15340
|
"select",
|
|
15146
15341
|
{
|
|
15147
15342
|
className: "kca-select",
|
|
@@ -15151,8 +15346,8 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15151
15346
|
if (target) target.equipMode = e.target.value;
|
|
15152
15347
|
})
|
|
15153
15348
|
},
|
|
15154
|
-
PRAC_EQUIP_MODE_OPTIONS.map((o) => /* @__PURE__ */
|
|
15155
|
-
), /* @__PURE__ */
|
|
15349
|
+
PRAC_EQUIP_MODE_OPTIONS.map((o) => /* @__PURE__ */ import_react5.default.createElement("option", { key: o.value, value: o.value }, o.label))
|
|
15350
|
+
), /* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
15156
15351
|
"input",
|
|
15157
15352
|
{
|
|
15158
15353
|
type: "checkbox",
|
|
@@ -15163,15 +15358,16 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15163
15358
|
})
|
|
15164
15359
|
}
|
|
15165
15360
|
), "\u8FDB\u591C\u6218"))))
|
|
15166
|
-
), /* @__PURE__ */
|
|
15361
|
+
), /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-grid-2" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
15167
15362
|
CollapsibleCard,
|
|
15168
15363
|
{
|
|
15169
15364
|
storageKey: "modules.repair",
|
|
15170
15365
|
title: "\u81EA\u52A8\u5165\u6E20 (\u5F85\u547D\u8230\u5A18)",
|
|
15171
15366
|
defaultOpen: true,
|
|
15172
|
-
summary: /* @__PURE__ */
|
|
15367
|
+
summary: /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement("span", null, REPAIR_DAMAGE_LABELS[rep.damageThreshold ?? "light"], " \xB7 Lv\u2265", rep.minLevel, " \xB7 \u7559", rep.reservedDocks, "\u6E20"), rep.avoidSortieConflict !== false && /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u9632\u51FA\u51FB\u51B2\u7A81")),
|
|
15368
|
+
headerRight: /* @__PURE__ */ import_react5.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "repair" })
|
|
15173
15369
|
},
|
|
15174
|
-
/* @__PURE__ */
|
|
15370
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement("span", null, "\u635F\u4F24\u6761\u4EF6"), /* @__PURE__ */ import_react5.default.createElement(
|
|
15175
15371
|
"select",
|
|
15176
15372
|
{
|
|
15177
15373
|
className: "kca-select",
|
|
@@ -15180,12 +15376,12 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15180
15376
|
s.repair.damageThreshold = e.target.value;
|
|
15181
15377
|
})
|
|
15182
15378
|
},
|
|
15183
|
-
/* @__PURE__ */
|
|
15184
|
-
/* @__PURE__ */
|
|
15185
|
-
/* @__PURE__ */
|
|
15186
|
-
/* @__PURE__ */
|
|
15379
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "light" }, "\u5C0F\u7834\u53CA\u4EE5\u4E0A (\u5C0F\u7834/\u4E2D\u7834/\u5927\u7834\uFF0C\u8DF3\u8FC7\u64E6\u4F24)"),
|
|
15380
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "moderate" }, "\u4E2D\u7834\u53CA\u4EE5\u4E0A (\u4E2D\u7834/\u5927\u7834)"),
|
|
15381
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "heavy" }, "\u4EC5\u5927\u7834 (HP \u2264 25%)"),
|
|
15382
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "scratch" }, "\u5168\u90E8\u635F\u4F24 (\u542B\u64E6\u4F24)")
|
|
15187
15383
|
)),
|
|
15188
|
-
/* @__PURE__ */
|
|
15384
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement("span", null, "\u6700\u4F4E\u7B49\u7EA7"), /* @__PURE__ */ import_react5.default.createElement(
|
|
15189
15385
|
"input",
|
|
15190
15386
|
{
|
|
15191
15387
|
type: "number",
|
|
@@ -15196,7 +15392,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15196
15392
|
s.repair.minLevel = Number(e.target.value) || 0;
|
|
15197
15393
|
})
|
|
15198
15394
|
}
|
|
15199
|
-
), /* @__PURE__ */
|
|
15395
|
+
), /* @__PURE__ */ import_react5.default.createElement("span", null, "\u4FDD\u7559\u7A7A\u6E20"), /* @__PURE__ */ import_react5.default.createElement(
|
|
15200
15396
|
"select",
|
|
15201
15397
|
{
|
|
15202
15398
|
className: "kca-select",
|
|
@@ -15205,8 +15401,8 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15205
15401
|
s.repair.reservedDocks = Number(e.target.value);
|
|
15206
15402
|
})
|
|
15207
15403
|
},
|
|
15208
|
-
[0, 1, 2, 3].map((n) => /* @__PURE__ */
|
|
15209
|
-
), /* @__PURE__ */
|
|
15404
|
+
[0, 1, 2, 3].map((n) => /* @__PURE__ */ import_react5.default.createElement("option", { key: n, value: n }, n, " \u4E2A"))
|
|
15405
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15210
15406
|
"select",
|
|
15211
15407
|
{
|
|
15212
15408
|
className: "kca-select",
|
|
@@ -15215,16 +15411,16 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15215
15411
|
s.repair.sortOrder = e.target.value;
|
|
15216
15412
|
})
|
|
15217
15413
|
},
|
|
15218
|
-
/* @__PURE__ */
|
|
15219
|
-
/* @__PURE__ */
|
|
15414
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "shortest" }, "\u77ED\u65F6\u4F18\u5148"),
|
|
15415
|
+
/* @__PURE__ */ import_react5.default.createElement("option", { value: "longest" }, "\u957F\u65F6\u4F18\u5148")
|
|
15220
15416
|
)),
|
|
15221
|
-
/* @__PURE__ */
|
|
15417
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
|
15222
15418
|
"label",
|
|
15223
15419
|
{
|
|
15224
15420
|
className: "kca-switch",
|
|
15225
15421
|
title: "\u5F00\u542F\u540E\uFF1A1) \u8DF3\u8FC7\u5F53\u524D\u6FC0\u6D3B\u51FA\u51FB\u65B9\u6848\u5019\u9009\u6C60\u4E2D\u7684\u8F6E\u6362\u8230\u5A18\uFF1B2) \u81EA\u52A8\u51FA\u51FB\u5F00\u542F\u65F6\u81F3\u5C11\u4FDD\u7559 1 \u4E2A\u7A7A\u6E20\u7ED9\u51FA\u51FB\u4FEE\u8239/\u6CFC\u6876\uFF1B3) \u51FA\u51FB\u95F4\u6B47\u5728\u6BCD\u6E2F\u5B89\u5168\u534F\u540C\u5165\u6E20\uFF0C\u4E0D\u62A2\u5360\u6218\u6597\u6216\u51FA\u51FB\u524D\u4FEE\u8239"
|
|
15226
15422
|
},
|
|
15227
|
-
/* @__PURE__ */
|
|
15423
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
|
15228
15424
|
"input",
|
|
15229
15425
|
{
|
|
15230
15426
|
type: "checkbox",
|
|
@@ -15234,9 +15430,9 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15234
15430
|
})
|
|
15235
15431
|
}
|
|
15236
15432
|
),
|
|
15237
|
-
/* @__PURE__ */
|
|
15433
|
+
/* @__PURE__ */ import_react5.default.createElement("strong", null, "\u4E0E\u81EA\u52A8\u51FA\u51FB\u9632\u51B2\u7A81 (\u907F\u5F00\u51FA\u51FB\u5019\u9009\u8239 \xB7 \u81EA\u52A8\u7559\u22651\u7A7A\u6E20)")
|
|
15238
15434
|
),
|
|
15239
|
-
/* @__PURE__ */
|
|
15435
|
+
/* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
15240
15436
|
"input",
|
|
15241
15437
|
{
|
|
15242
15438
|
type: "checkbox",
|
|
@@ -15246,15 +15442,16 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15246
15442
|
})
|
|
15247
15443
|
}
|
|
15248
15444
|
), "\u5355\u6B21\u6279\u91CF\u586B\u6EE1\u6240\u6709\u53EF\u7528\u6E20\u4F4D (\u51CF\u5C11\u9875\u9762\u5207\u6362)")
|
|
15249
|
-
), /* @__PURE__ */
|
|
15445
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15250
15446
|
CollapsibleCard,
|
|
15251
15447
|
{
|
|
15252
15448
|
storageKey: "modules.develop",
|
|
15253
15449
|
title: "\u81EA\u52A8\u5F00\u53D1",
|
|
15254
15450
|
defaultOpen: true,
|
|
15255
|
-
summary: /* @__PURE__ */
|
|
15451
|
+
summary: /* @__PURE__ */ import_react5.default.createElement("span", null, "\u5269\u4F59 ", dev.remainingCount, " \u6B21"),
|
|
15452
|
+
headerRight: /* @__PURE__ */ import_react5.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "develop" })
|
|
15256
15453
|
},
|
|
15257
|
-
/* @__PURE__ */
|
|
15454
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement("span", null, "\u5269\u4F59\u6B21\u6570"), /* @__PURE__ */ import_react5.default.createElement(
|
|
15258
15455
|
"input",
|
|
15259
15456
|
{
|
|
15260
15457
|
type: "number",
|
|
@@ -15267,7 +15464,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15267
15464
|
})
|
|
15268
15465
|
}
|
|
15269
15466
|
)),
|
|
15270
|
-
/* @__PURE__ */
|
|
15467
|
+
/* @__PURE__ */ import_react5.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react5.default.createElement(
|
|
15271
15468
|
"input",
|
|
15272
15469
|
{
|
|
15273
15470
|
type: "checkbox",
|
|
@@ -15277,14 +15474,14 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15277
15474
|
})
|
|
15278
15475
|
}
|
|
15279
15476
|
), "\u81EA\u52A8\u4ECE\u6BCD\u6E2F\u8FDB\u51FA\u5DE5\u5382 (\u5173\u95ED\u5219\u76F4\u63A5\u5728\u5F53\u524D\u5DE5\u5382\u9875\u8FDE\u7EED\u5F00\u53D1)")
|
|
15280
|
-
)), /* @__PURE__ */
|
|
15477
|
+
)), /* @__PURE__ */ import_react5.default.createElement(
|
|
15281
15478
|
CollapsibleCard,
|
|
15282
15479
|
{
|
|
15283
15480
|
storageKey: "modules.quests",
|
|
15284
15481
|
title: "\u81EA\u52A8\u4EFB\u52A1\u76D1\u63A7",
|
|
15285
15482
|
defaultOpen: false,
|
|
15286
|
-
summary: /* @__PURE__ */
|
|
15287
|
-
headerRight: /* @__PURE__ */
|
|
15483
|
+
summary: /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement("span", null, allQuestsEnabled ? `\u5168\u90E8 ${SUPPORTED_QUESTS.length} \u9879` : `\u5DF2\u9009 ${enabledQuestSet.size}/${SUPPORTED_QUESTS.length} \u9879`), followedSet.size > 0 && /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u6267\u884C\u4E2D ", followedSet.size)),
|
|
15484
|
+
headerRight: /* @__PURE__ */ import_react5.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react5.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "quests" }), !allQuestsEnabled && /* @__PURE__ */ import_react5.default.createElement(
|
|
15288
15485
|
"button",
|
|
15289
15486
|
{
|
|
15290
15487
|
className: "kca-btn kca-btn-sm",
|
|
@@ -15293,7 +15490,7 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15293
15490
|
})
|
|
15294
15491
|
},
|
|
15295
15492
|
"\u5168\u9009"
|
|
15296
|
-
), /* @__PURE__ */
|
|
15493
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
|
15297
15494
|
"button",
|
|
15298
15495
|
{
|
|
15299
15496
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
@@ -15302,24 +15499,24 @@ var OrgPracticeQuestsTab = ({ coordinator, settings }) => {
|
|
|
15302
15499
|
"\u7ACB\u5373\u89E6\u53D1\u5DE1\u68C0"
|
|
15303
15500
|
))
|
|
15304
15501
|
},
|
|
15305
|
-
/* @__PURE__ */
|
|
15502
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { style: { maxHeight: 220, overflowY: "auto" } }, /* @__PURE__ */ import_react5.default.createElement("table", { className: "kca-table" }, /* @__PURE__ */ import_react5.default.createElement("thead", null, /* @__PURE__ */ import_react5.default.createElement("tr", null, /* @__PURE__ */ import_react5.default.createElement("th", null, "\u542F\u7528"), /* @__PURE__ */ import_react5.default.createElement("th", null, "\u7F16\u53F7"), /* @__PURE__ */ import_react5.default.createElement("th", null, "\u540D\u79F0"), /* @__PURE__ */ import_react5.default.createElement("th", null, "\u5468\u671F"), /* @__PURE__ */ import_react5.default.createElement("th", null, "\u8FFD\u8E2A\u8FDB\u5EA6"))), /* @__PURE__ */ import_react5.default.createElement("tbody", null, SUPPORTED_QUESTS.map((q) => {
|
|
15306
15503
|
const count = settings.quests.counters[q.counterKey] ?? 0;
|
|
15307
15504
|
const active = followedSet.has(q.id);
|
|
15308
15505
|
const enabled = allQuestsEnabled || enabledQuestSet.has(q.id);
|
|
15309
|
-
return /* @__PURE__ */
|
|
15506
|
+
return /* @__PURE__ */ import_react5.default.createElement("tr", { key: q.id }, /* @__PURE__ */ import_react5.default.createElement("td", null, /* @__PURE__ */ import_react5.default.createElement(
|
|
15310
15507
|
"input",
|
|
15311
15508
|
{
|
|
15312
15509
|
type: "checkbox",
|
|
15313
15510
|
checked: enabled,
|
|
15314
15511
|
onChange: () => toggleQuestEnabled(q.id)
|
|
15315
15512
|
}
|
|
15316
|
-
)), /* @__PURE__ */
|
|
15513
|
+
)), /* @__PURE__ */ import_react5.default.createElement("td", null, q.code), /* @__PURE__ */ import_react5.default.createElement("td", null, q.name), /* @__PURE__ */ import_react5.default.createElement("td", null, PERIOD_LABELS[q.resetPeriod] ?? q.resetPeriod), /* @__PURE__ */ import_react5.default.createElement("td", null, active ? /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u6267\u884C\u4E2D ", count, "/", q.targetCount) : /* @__PURE__ */ import_react5.default.createElement("span", { className: "kca-muted" }, count, "/", q.targetCount)));
|
|
15317
15514
|
}))))
|
|
15318
15515
|
));
|
|
15319
15516
|
};
|
|
15320
15517
|
|
|
15321
15518
|
// src/ui/tabs/PlanTab.tsx
|
|
15322
|
-
var
|
|
15519
|
+
var import_react6 = __toESM(require("react"));
|
|
15323
15520
|
var SCOPE_LABELS = {
|
|
15324
15521
|
all: "\u5168\u90E8\u5E38\u89C4\u529F\u80FD",
|
|
15325
15522
|
expedition_kira: "\u8FDC\u5F81 + \u5237\u95EA",
|
|
@@ -15382,19 +15579,19 @@ function describeOtherAction(act) {
|
|
|
15382
15579
|
return "\u91CD\u7F6E\u5168\u90E8\u4EFB\u52A1\u5E76\u5FAA\u73AF\u6267\u884C";
|
|
15383
15580
|
}
|
|
15384
15581
|
}
|
|
15385
|
-
var PlanTab = ({ coordinator, settings }) => {
|
|
15386
|
-
const [newJobType, setNewJobType] = (0,
|
|
15387
|
-
const [newScope, setNewScope] = (0,
|
|
15388
|
-
const [newSortieId, setNewSortieId] = (0,
|
|
15389
|
-
const [newOrgId, setNewOrgId] = (0,
|
|
15390
|
-
const [newFleet, setNewFleet] = (0,
|
|
15391
|
-
const [newExpFleet, setNewExpFleet] = (0,
|
|
15392
|
-
const [newExpId, setNewExpId] = (0,
|
|
15393
|
-
const [newKiraPreset, setNewKiraPreset] = (0,
|
|
15394
|
-
const [newTargetPlanId, setNewTargetPlanId] = (0,
|
|
15395
|
-
const [newWaitMode, setNewWaitMode] = (0,
|
|
15396
|
-
const [newWaitMinutes, setNewWaitMinutes] = (0,
|
|
15397
|
-
const [newOtherAction, setNewOtherAction] = (0,
|
|
15582
|
+
var PlanTab = ({ coordinator, snap, settings }) => {
|
|
15583
|
+
const [newJobType, setNewJobType] = (0, import_react6.useState)("start_module");
|
|
15584
|
+
const [newScope, setNewScope] = (0, import_react6.useState)("all");
|
|
15585
|
+
const [newSortieId, setNewSortieId] = (0, import_react6.useState)(settings.sortie.activeProfileId);
|
|
15586
|
+
const [newOrgId, setNewOrgId] = (0, import_react6.useState)(settings.organization.activePresetId);
|
|
15587
|
+
const [newFleet, setNewFleet] = (0, import_react6.useState)(1);
|
|
15588
|
+
const [newExpFleet, setNewExpFleet] = (0, import_react6.useState)(2);
|
|
15589
|
+
const [newExpId, setNewExpId] = (0, import_react6.useState)(2);
|
|
15590
|
+
const [newKiraPreset, setNewKiraPreset] = (0, import_react6.useState)("cond_75");
|
|
15591
|
+
const [newTargetPlanId, setNewTargetPlanId] = (0, import_react6.useState)(settings.plan.plans[0]?.id ?? "");
|
|
15592
|
+
const [newWaitMode, setNewWaitMode] = (0, import_react6.useState)("work");
|
|
15593
|
+
const [newWaitMinutes, setNewWaitMinutes] = (0, import_react6.useState)(60);
|
|
15594
|
+
const [newOtherAction, setNewOtherAction] = (0, import_react6.useState)("reset_and_loop");
|
|
15398
15595
|
const plan = settings.plan.plans.find((p) => p.id === settings.plan.currentPlanId) ?? settings.plan.plans[0];
|
|
15399
15596
|
const addPlan = () => {
|
|
15400
15597
|
const id = `plan-${Date.now().toString(36)}`;
|
|
@@ -15498,7 +15695,7 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15498
15695
|
return `\u6D41\u7A0B\u63A7\u5236\uFF1A${describeOtherAction(j.otherAction)}`;
|
|
15499
15696
|
}
|
|
15500
15697
|
};
|
|
15501
|
-
return /* @__PURE__ */
|
|
15698
|
+
return /* @__PURE__ */ import_react6.default.createElement("div", { className: "kca-card" }, /* @__PURE__ */ import_react6.default.createElement("div", { className: "kca-card-title" }, /* @__PURE__ */ import_react6.default.createElement("span", null, "\u4F5C\u6218\u8BA1\u5212\u8C03\u5EA6\u5668 (AutoPlan)"), /* @__PURE__ */ import_react6.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react6.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "plan" }), /* @__PURE__ */ import_react6.default.createElement("button", { className: "kca-btn kca-btn-sm kca-btn-primary", onClick: addPlan }, "+ \u65B0\u5EFA\u8BA1\u5212"), /* @__PURE__ */ import_react6.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: resetCurrentPlan, disabled: !plan }, "\u91CD\u7F6E\u5168\u90E8\u6B65\u9AA4"), /* @__PURE__ */ import_react6.default.createElement(
|
|
15502
15699
|
"button",
|
|
15503
15700
|
{
|
|
15504
15701
|
className: "kca-btn kca-btn-sm",
|
|
@@ -15506,7 +15703,7 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15506
15703
|
disabled: settings.plan.plans.length <= 1
|
|
15507
15704
|
},
|
|
15508
15705
|
"\u5220\u9664\u8BA1\u5212"
|
|
15509
|
-
))), /* @__PURE__ */
|
|
15706
|
+
))), /* @__PURE__ */ import_react6.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react6.default.createElement(
|
|
15510
15707
|
"select",
|
|
15511
15708
|
{
|
|
15512
15709
|
className: "kca-select",
|
|
@@ -15516,8 +15713,8 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15516
15713
|
s.plan.currentPlanId = e.target.value;
|
|
15517
15714
|
})
|
|
15518
15715
|
},
|
|
15519
|
-
settings.plan.plans.map((p) => /* @__PURE__ */
|
|
15520
|
-
), plan && /* @__PURE__ */
|
|
15716
|
+
settings.plan.plans.map((p) => /* @__PURE__ */ import_react6.default.createElement("option", { key: p.id, value: p.id }, p.name, " (", p.jobs.length, " \u6B65)"))
|
|
15717
|
+
), plan && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(
|
|
15521
15718
|
"input",
|
|
15522
15719
|
{
|
|
15523
15720
|
className: "kca-input",
|
|
@@ -15528,7 +15725,7 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15528
15725
|
if (p) p.name = e.target.value;
|
|
15529
15726
|
})
|
|
15530
15727
|
}
|
|
15531
|
-
), /* @__PURE__ */
|
|
15728
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
|
15532
15729
|
"input",
|
|
15533
15730
|
{
|
|
15534
15731
|
className: "kca-input",
|
|
@@ -15540,47 +15737,47 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15540
15737
|
if (p) p.description = e.target.value;
|
|
15541
15738
|
})
|
|
15542
15739
|
}
|
|
15543
|
-
))), /* @__PURE__ */
|
|
15740
|
+
))), /* @__PURE__ */ import_react6.default.createElement(
|
|
15544
15741
|
CollapsibleSubBox,
|
|
15545
15742
|
{
|
|
15546
15743
|
storageKey: "plan.addJob",
|
|
15547
15744
|
title: "\u6DFB\u52A0\u65B0\u6B65\u9AA4",
|
|
15548
15745
|
defaultOpen: true,
|
|
15549
|
-
summary: plan ? /* @__PURE__ */
|
|
15746
|
+
summary: plan ? /* @__PURE__ */ import_react6.default.createElement("span", null, "\u5F53\u524D\u8BA1\u5212\u5171 ", plan.jobs.length, " \u6B65") : void 0
|
|
15550
15747
|
},
|
|
15551
|
-
/* @__PURE__ */
|
|
15748
|
+
/* @__PURE__ */ import_react6.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react6.default.createElement(
|
|
15552
15749
|
"select",
|
|
15553
15750
|
{
|
|
15554
15751
|
className: "kca-select",
|
|
15555
15752
|
value: newJobType,
|
|
15556
15753
|
onChange: (e) => setNewJobType(e.target.value)
|
|
15557
15754
|
},
|
|
15558
|
-
/* @__PURE__ */
|
|
15559
|
-
/* @__PURE__ */
|
|
15560
|
-
/* @__PURE__ */
|
|
15561
|
-
/* @__PURE__ */
|
|
15562
|
-
/* @__PURE__ */
|
|
15563
|
-
/* @__PURE__ */
|
|
15564
|
-
/* @__PURE__ */
|
|
15565
|
-
/* @__PURE__ */
|
|
15566
|
-
/* @__PURE__ */
|
|
15567
|
-
), (newJobType === "start_module" || newJobType === "stop_module") && /* @__PURE__ */
|
|
15755
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "start_module" }, "\u5F00\u542F\u529F\u80FD"),
|
|
15756
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "stop_module" }, "\u505C\u6B62\u529F\u80FD"),
|
|
15757
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "auto_sortie" }, "\u81EA\u52A8\u51FA\u51FB"),
|
|
15758
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "auto_organization" }, "\u81EA\u52A8\u7F16\u6210"),
|
|
15759
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "set_expedition" }, "\u8FDC\u5F81\u8BBE\u7F6E"),
|
|
15760
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "set_kira" }, "\u5237\u95EA\u8BBE\u7F6E"),
|
|
15761
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "change_plan" }, "\u5207\u6362\u8BA1\u5212"),
|
|
15762
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "wait_time" }, "\u5B9A\u65F6\u5DE5\u4F5C/\u4F11\u606F"),
|
|
15763
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "other_control" }, "\u6D41\u7A0B\u63A7\u5236 (\u5FAA\u73AF/\u91CD\u7F6E)")
|
|
15764
|
+
), (newJobType === "start_module" || newJobType === "stop_module") && /* @__PURE__ */ import_react6.default.createElement(
|
|
15568
15765
|
"select",
|
|
15569
15766
|
{
|
|
15570
15767
|
className: "kca-select",
|
|
15571
15768
|
value: newScope,
|
|
15572
15769
|
onChange: (e) => setNewScope(e.target.value)
|
|
15573
15770
|
},
|
|
15574
|
-
Object.entries(SCOPE_LABELS).map(([k, lbl]) => /* @__PURE__ */
|
|
15575
|
-
), newJobType === "auto_sortie" && /* @__PURE__ */
|
|
15771
|
+
Object.entries(SCOPE_LABELS).map(([k, lbl]) => /* @__PURE__ */ import_react6.default.createElement("option", { key: k, value: k }, lbl))
|
|
15772
|
+
), newJobType === "auto_sortie" && /* @__PURE__ */ import_react6.default.createElement(
|
|
15576
15773
|
"select",
|
|
15577
15774
|
{
|
|
15578
15775
|
className: "kca-select",
|
|
15579
15776
|
value: newSortieId,
|
|
15580
15777
|
onChange: (e) => setNewSortieId(e.target.value)
|
|
15581
15778
|
},
|
|
15582
|
-
settings.sortie.profiles.map((p) => /* @__PURE__ */
|
|
15583
|
-
), newJobType === "auto_organization" && /* @__PURE__ */
|
|
15779
|
+
settings.sortie.profiles.map((p) => /* @__PURE__ */ import_react6.default.createElement("option", { key: p.id, value: p.id }, p.name))
|
|
15780
|
+
), newJobType === "auto_organization" && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement("select", { className: "kca-select", value: newFleet, onChange: (e) => setNewFleet(Number(e.target.value)) }, [1, 2, 3, 4].map((f) => /* @__PURE__ */ import_react6.default.createElement("option", { key: f, value: f }, "\u7B2C", f, "\u8230\u961F"))), /* @__PURE__ */ import_react6.default.createElement("select", { className: "kca-select", value: newOrgId, onChange: (e) => setNewOrgId(e.target.value) }, settings.organization.presets.map((p) => /* @__PURE__ */ import_react6.default.createElement("option", { key: p.id, value: p.id }, p.name)))), newJobType === "set_expedition" && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement("select", { className: "kca-select", value: newExpFleet, onChange: (e) => setNewExpFleet(Number(e.target.value)) }, [2, 3, 4].map((f) => /* @__PURE__ */ import_react6.default.createElement("option", { key: f, value: f }, "\u7B2C", f, "\u8230\u961F"))), /* @__PURE__ */ import_react6.default.createElement("span", null, "\u8FDC\u5F81 ID"), /* @__PURE__ */ import_react6.default.createElement(
|
|
15584
15781
|
"input",
|
|
15585
15782
|
{
|
|
15586
15783
|
type: "number",
|
|
@@ -15590,43 +15787,43 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15590
15787
|
onChange: (e) => setNewExpId(Number(e.target.value) || -1),
|
|
15591
15788
|
title: "-1 \u5173\u95ED\uFF0C301 \u524D\u536B\u652F\u63F4\uFF0C302 \u51B3\u6218\u652F\u63F4\uFF0C100=A1"
|
|
15592
15789
|
}
|
|
15593
|
-
)), newJobType === "set_kira" && /* @__PURE__ */
|
|
15790
|
+
)), newJobType === "set_kira" && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement("select", { className: "kca-select", value: newFleet, onChange: (e) => setNewFleet(Number(e.target.value)) }, [1, 2, 3, 4].map((f) => /* @__PURE__ */ import_react6.default.createElement("option", { key: f, value: f }, "\u7B2C", f, "\u8230\u961F"))), /* @__PURE__ */ import_react6.default.createElement(
|
|
15594
15791
|
"select",
|
|
15595
15792
|
{
|
|
15596
15793
|
className: "kca-select",
|
|
15597
15794
|
value: newKiraPreset,
|
|
15598
15795
|
onChange: (e) => setNewKiraPreset(e.target.value)
|
|
15599
15796
|
},
|
|
15600
|
-
/* @__PURE__ */
|
|
15601
|
-
/* @__PURE__ */
|
|
15602
|
-
/* @__PURE__ */
|
|
15603
|
-
/* @__PURE__ */
|
|
15604
|
-
/* @__PURE__ */
|
|
15605
|
-
/* @__PURE__ */
|
|
15606
|
-
/* @__PURE__ */
|
|
15607
|
-
/* @__PURE__ */
|
|
15608
|
-
/* @__PURE__ */
|
|
15609
|
-
/* @__PURE__ */
|
|
15610
|
-
/* @__PURE__ */
|
|
15611
|
-
/* @__PURE__ */
|
|
15612
|
-
)), newJobType === "change_plan" && /* @__PURE__ */
|
|
15797
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "count_0" }, "\u5237\u95EA\u6570\u91CF: 0 (\u5173\u95ED)"),
|
|
15798
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "count_1" }, "\u5237\u95EA\u6570\u91CF: 1 \u8258"),
|
|
15799
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "count_4" }, "\u5237\u95EA\u6570\u91CF: 4 \u8258"),
|
|
15800
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "count_7" }, "\u5237\u95EA\u6570\u91CF: \u5168\u961F"),
|
|
15801
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "cond_50" }, "\u76EE\u6807\u58EB\u6C14: 50"),
|
|
15802
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "cond_70" }, "\u76EE\u6807\u58EB\u6C14: 70"),
|
|
15803
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "cond_75" }, "\u76EE\u6807\u58EB\u6C14: 75"),
|
|
15804
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "cond_80" }, "\u76EE\u6807\u58EB\u6C14: 80"),
|
|
15805
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "cond_85" }, "\u76EE\u6807\u58EB\u6C14: 85"),
|
|
15806
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "support_on" }, "\u5F00\u542F\u652F\u63F4\u5237\u95EA"),
|
|
15807
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "support_off" }, "\u5173\u95ED\u652F\u63F4\u5237\u95EA"),
|
|
15808
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "wait" }, "\u7B49\u5F85\u672C\u8230\u961F\u5237\u95EA\u5B8C\u6210")
|
|
15809
|
+
)), newJobType === "change_plan" && /* @__PURE__ */ import_react6.default.createElement(
|
|
15613
15810
|
"select",
|
|
15614
15811
|
{
|
|
15615
15812
|
className: "kca-select",
|
|
15616
15813
|
value: newTargetPlanId,
|
|
15617
15814
|
onChange: (e) => setNewTargetPlanId(e.target.value)
|
|
15618
15815
|
},
|
|
15619
|
-
settings.plan.plans.map((p) => /* @__PURE__ */
|
|
15620
|
-
), newJobType === "wait_time" && /* @__PURE__ */
|
|
15816
|
+
settings.plan.plans.map((p) => /* @__PURE__ */ import_react6.default.createElement("option", { key: p.id, value: p.id }, p.name))
|
|
15817
|
+
), newJobType === "wait_time" && /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(
|
|
15621
15818
|
"select",
|
|
15622
15819
|
{
|
|
15623
15820
|
className: "kca-select",
|
|
15624
15821
|
value: newWaitMode,
|
|
15625
15822
|
onChange: (e) => setNewWaitMode(e.target.value)
|
|
15626
15823
|
},
|
|
15627
|
-
/* @__PURE__ */
|
|
15628
|
-
/* @__PURE__ */
|
|
15629
|
-
), /* @__PURE__ */
|
|
15824
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "work" }, "\u7EE7\u7EED\u5DE5\u4F5C"),
|
|
15825
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "rest" }, "\u5168\u5C40\u4F11\u606F")
|
|
15826
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
|
15630
15827
|
"input",
|
|
15631
15828
|
{
|
|
15632
15829
|
type: "number",
|
|
@@ -15636,24 +15833,24 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15636
15833
|
value: newWaitMinutes,
|
|
15637
15834
|
onChange: (e) => setNewWaitMinutes(Number(e.target.value) || 60)
|
|
15638
15835
|
}
|
|
15639
|
-
), /* @__PURE__ */
|
|
15836
|
+
), /* @__PURE__ */ import_react6.default.createElement("span", null, "\u5206\u949F")), newJobType === "other_control" && /* @__PURE__ */ import_react6.default.createElement(
|
|
15640
15837
|
"select",
|
|
15641
15838
|
{
|
|
15642
15839
|
className: "kca-select",
|
|
15643
15840
|
value: newOtherAction,
|
|
15644
15841
|
onChange: (e) => setNewOtherAction(e.target.value)
|
|
15645
15842
|
},
|
|
15646
|
-
/* @__PURE__ */
|
|
15647
|
-
/* @__PURE__ */
|
|
15648
|
-
/* @__PURE__ */
|
|
15649
|
-
), /* @__PURE__ */
|
|
15650
|
-
), plan && /* @__PURE__ */
|
|
15843
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "reset_and_loop" }, "\u91CD\u7F6E\u5168\u90E8\u4EFB\u52A1\u5E76\u5FAA\u73AF\u6267\u884C"),
|
|
15844
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "loop" }, "\u4EC5\u5FAA\u73AF\u6267\u884C\u672C\u8BA1\u5212"),
|
|
15845
|
+
/* @__PURE__ */ import_react6.default.createElement("option", { value: "reset" }, "\u4EC5\u91CD\u7F6E\u672C\u8BA1\u5212\u4EFB\u52A1")
|
|
15846
|
+
), /* @__PURE__ */ import_react6.default.createElement("button", { className: "kca-btn kca-btn-sm kca-btn-primary", onClick: addJob }, "+ \u6DFB\u52A0\u6B65\u9AA4"))
|
|
15847
|
+
), plan && /* @__PURE__ */ import_react6.default.createElement("table", { className: "kca-table" }, /* @__PURE__ */ import_react6.default.createElement("thead", null, /* @__PURE__ */ import_react6.default.createElement("tr", null, /* @__PURE__ */ import_react6.default.createElement("th", null, "#"), /* @__PURE__ */ import_react6.default.createElement("th", null, "\u6B65\u9AA4\u5185\u5BB9"), /* @__PURE__ */ import_react6.default.createElement("th", null, "\u72B6\u6001"), /* @__PURE__ */ import_react6.default.createElement("th", null, "\u64CD\u4F5C"))), /* @__PURE__ */ import_react6.default.createElement("tbody", null, plan.jobs.map((j, idx) => /* @__PURE__ */ import_react6.default.createElement("tr", { key: j.id }, /* @__PURE__ */ import_react6.default.createElement("td", null, idx + 1), /* @__PURE__ */ import_react6.default.createElement("td", null, plan.currentJobId === j.id && /* @__PURE__ */ import_react6.default.createElement("span", { className: "kca-badge kca-badge-run", style: { marginRight: 5 } }, "\u25B6"), describeJob(j)), /* @__PURE__ */ import_react6.default.createElement("td", null, /* @__PURE__ */ import_react6.default.createElement(
|
|
15651
15848
|
"span",
|
|
15652
15849
|
{
|
|
15653
15850
|
className: `kca-badge ${j.state === "done" ? "kca-badge-ok" : j.state === "running" ? "kca-badge-run" : ""}`
|
|
15654
15851
|
},
|
|
15655
15852
|
j.state
|
|
15656
|
-
)), /* @__PURE__ */
|
|
15853
|
+
)), /* @__PURE__ */ import_react6.default.createElement("td", { className: "kca-row", style: { gap: 4 } }, /* @__PURE__ */ import_react6.default.createElement(
|
|
15657
15854
|
"button",
|
|
15658
15855
|
{
|
|
15659
15856
|
className: "kca-btn kca-btn-sm",
|
|
@@ -15662,7 +15859,7 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15662
15859
|
title: "\u4E0A\u79FB"
|
|
15663
15860
|
},
|
|
15664
15861
|
"\u2191"
|
|
15665
|
-
), /* @__PURE__ */
|
|
15862
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
|
15666
15863
|
"button",
|
|
15667
15864
|
{
|
|
15668
15865
|
className: "kca-btn kca-btn-sm",
|
|
@@ -15671,7 +15868,7 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15671
15868
|
title: "\u4E0B\u79FB"
|
|
15672
15869
|
},
|
|
15673
15870
|
"\u2193"
|
|
15674
|
-
), /* @__PURE__ */
|
|
15871
|
+
), /* @__PURE__ */ import_react6.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: () => coordinator.plan.jumpToJob(j.id) }, "\u8DF3\u5230\u6B64\u6B65"), /* @__PURE__ */ import_react6.default.createElement(
|
|
15675
15872
|
"button",
|
|
15676
15873
|
{
|
|
15677
15874
|
className: "kca-btn kca-btn-sm",
|
|
@@ -15685,11 +15882,11 @@ var PlanTab = ({ coordinator, settings }) => {
|
|
|
15685
15882
|
};
|
|
15686
15883
|
|
|
15687
15884
|
// src/ui/tabs/SettingsLogsTab.tsx
|
|
15688
|
-
var
|
|
15885
|
+
var import_react8 = __toESM(require("react"));
|
|
15689
15886
|
|
|
15690
15887
|
// src/ui/components/LegacyImportPanel.tsx
|
|
15691
15888
|
var import_node_fs4 = __toESM(require("fs"));
|
|
15692
|
-
var
|
|
15889
|
+
var import_react7 = __toESM(require("react"));
|
|
15693
15890
|
function formatBytes(bytes) {
|
|
15694
15891
|
if (bytes < 1024) return `${bytes} B`;
|
|
15695
15892
|
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
@@ -15747,18 +15944,18 @@ var LegacyImportPanel = ({
|
|
|
15747
15944
|
autoScanTrigger = 0,
|
|
15748
15945
|
onImportSuccess
|
|
15749
15946
|
}) => {
|
|
15750
|
-
const [report, setReport] = (0,
|
|
15751
|
-
const [selectedPath, setSelectedPath] = (0,
|
|
15752
|
-
const [uploadedSettings, setUploadedSettings] = (0,
|
|
15753
|
-
const [uploadedCdata, setUploadedCdata] = (0,
|
|
15754
|
-
const [customDirInput, setCustomDirInput] = (0,
|
|
15755
|
-
const [showCustomDirRow, setShowCustomDirRow] = (0,
|
|
15756
|
-
const [mode, setMode] = (0,
|
|
15757
|
-
const [sections, setSections] = (0,
|
|
15947
|
+
const [report, setReport] = (0, import_react7.useState)(null);
|
|
15948
|
+
const [selectedPath, setSelectedPath] = (0, import_react7.useState)("");
|
|
15949
|
+
const [uploadedSettings, setUploadedSettings] = (0, import_react7.useState)(null);
|
|
15950
|
+
const [uploadedCdata, setUploadedCdata] = (0, import_react7.useState)(null);
|
|
15951
|
+
const [customDirInput, setCustomDirInput] = (0, import_react7.useState)("");
|
|
15952
|
+
const [showCustomDirRow, setShowCustomDirRow] = (0, import_react7.useState)(false);
|
|
15953
|
+
const [mode, setMode] = (0, import_react7.useState)("replace");
|
|
15954
|
+
const [sections, setSections] = (0, import_react7.useState)(
|
|
15758
15955
|
() => createDefaultLegacyImportSections()
|
|
15759
15956
|
);
|
|
15760
|
-
const [includeCdata, setIncludeCdata] = (0,
|
|
15761
|
-
const [statusMsg, setStatusMsg] = (0,
|
|
15957
|
+
const [includeCdata, setIncludeCdata] = (0, import_react7.useState)(false);
|
|
15958
|
+
const [statusMsg, setStatusMsg] = (0, import_react7.useState)(
|
|
15762
15959
|
null
|
|
15763
15960
|
);
|
|
15764
15961
|
const applyDetectionReport = (det, label) => {
|
|
@@ -15823,8 +16020,8 @@ var LegacyImportPanel = ({
|
|
|
15823
16020
|
setShowCustomDirRow((v) => !v);
|
|
15824
16021
|
}
|
|
15825
16022
|
};
|
|
15826
|
-
const lastAutoScannedRef = (0,
|
|
15827
|
-
(0,
|
|
16023
|
+
const lastAutoScannedRef = (0, import_react7.useRef)(0);
|
|
16024
|
+
(0, import_react7.useEffect)(() => {
|
|
15828
16025
|
if (autoScanTrigger > 0 && lastAutoScannedRef.current !== autoScanTrigger) {
|
|
15829
16026
|
lastAutoScannedRef.current = autoScanTrigger;
|
|
15830
16027
|
runAutoDetect();
|
|
@@ -15950,7 +16147,7 @@ var LegacyImportPanel = ({
|
|
|
15950
16147
|
});
|
|
15951
16148
|
}
|
|
15952
16149
|
};
|
|
15953
|
-
return /* @__PURE__ */
|
|
16150
|
+
return /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-import-box" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react7.default.createElement("button", { className: "kca-btn kca-btn-primary", onClick: runAutoDetect }, "\u{1F50D} \u4E00\u952E\u68C0\u6D4B\u672C\u673A\u65E7\u7248\u914D\u7F6E"), /* @__PURE__ */ import_react7.default.createElement("button", { className: "kca-btn", onClick: () => void handlePickDirectory() }, "\u{1F4C2} \u626B\u63CF\u6307\u5B9A\u6587\u4EF6\u5939"), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-btn" }, "\u{1F4C4} \u624B\u52A8\u9009\u62E9\u6587\u4EF6 (.xml / .gz / cdata)", /* @__PURE__ */ import_react7.default.createElement(
|
|
15954
16151
|
"input",
|
|
15955
16152
|
{
|
|
15956
16153
|
type: "file",
|
|
@@ -15959,7 +16156,7 @@ var LegacyImportPanel = ({
|
|
|
15959
16156
|
style: { display: "none" },
|
|
15960
16157
|
onChange: (e) => void handleManualFiles(e)
|
|
15961
16158
|
}
|
|
15962
|
-
))), showCustomDirRow && /* @__PURE__ */
|
|
16159
|
+
))), showCustomDirRow && /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
15963
16160
|
"input",
|
|
15964
16161
|
{
|
|
15965
16162
|
type: "text",
|
|
@@ -15972,29 +16169,29 @@ var LegacyImportPanel = ({
|
|
|
15972
16169
|
if (e.key === "Enter") runScanCustomDir(customDirInput);
|
|
15973
16170
|
}
|
|
15974
16171
|
}
|
|
15975
|
-
), /* @__PURE__ */
|
|
16172
|
+
), /* @__PURE__ */ import_react7.default.createElement(
|
|
15976
16173
|
"button",
|
|
15977
16174
|
{
|
|
15978
16175
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
15979
16176
|
onClick: () => runScanCustomDir(customDirInput)
|
|
15980
16177
|
},
|
|
15981
16178
|
"\u626B\u63CF\u6B64\u76EE\u5F55"
|
|
15982
|
-
)), statusMsg && /* @__PURE__ */
|
|
16179
|
+
)), statusMsg && /* @__PURE__ */ import_react7.default.createElement(
|
|
15983
16180
|
"div",
|
|
15984
16181
|
{
|
|
15985
16182
|
className: `kca-import-banner ${statusMsg.kind === "ok" ? "kca-import-banner-ok" : statusMsg.kind === "err" ? "kca-import-banner-err" : "kca-import-banner-info"}`
|
|
15986
16183
|
},
|
|
15987
16184
|
statusMsg.text
|
|
15988
|
-
), !uploadedSettings && report && report.settingsCandidates.length > 0 && /* @__PURE__ */
|
|
16185
|
+
), !uploadedSettings && report && report.settingsCandidates.length > 0 && /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-import-candidates" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-muted", style: { marginBottom: 4 } }, "\u68C0\u6D4B\u5230\u7684\u5B58\u6863\u6587\u4EF6\uFF08\u5DF2\u6309\u65E7\u52A9\u624B\u903B\u8F91\u81EA\u52A8\u4F18\u5148\u9009\u62E9\u6700\u65B0\u6709\u6548\u5B58\u6863\uFF09\uFF1A"), report.settingsCandidates.map((cand) => {
|
|
15989
16186
|
const isRecommended = report.recommendedSettings?.path === cand.path;
|
|
15990
16187
|
const checked = selectedPath === cand.path;
|
|
15991
|
-
return /* @__PURE__ */
|
|
16188
|
+
return /* @__PURE__ */ import_react7.default.createElement(
|
|
15992
16189
|
"label",
|
|
15993
16190
|
{
|
|
15994
16191
|
key: cand.path,
|
|
15995
16192
|
className: `kca-import-item ${checked ? "kca-import-item-selected" : ""} ${!cand.valid ? "kca-import-item-invalid" : ""}`
|
|
15996
16193
|
},
|
|
15997
|
-
/* @__PURE__ */
|
|
16194
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
|
15998
16195
|
"input",
|
|
15999
16196
|
{
|
|
16000
16197
|
type: "radio",
|
|
@@ -16004,16 +16201,16 @@ var LegacyImportPanel = ({
|
|
|
16004
16201
|
onChange: () => setSelectedPath(cand.path)
|
|
16005
16202
|
}
|
|
16006
16203
|
),
|
|
16007
|
-
/* @__PURE__ */
|
|
16204
|
+
/* @__PURE__ */ import_react7.default.createElement("div", { style: { flex: 1, minWidth: 0 } }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-row", style: { gap: 6 } }, /* @__PURE__ */ import_react7.default.createElement("strong", null, cand.fileName), /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-badge" }, formatRoleLabel(cand.role)), isRecommended && /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u63A8\u8350"), !cand.valid && /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-badge kca-badge-err" }, "\u65E0\u6CD5\u89E3\u6790"), /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-muted" }, formatBytes(cand.sizeBytes), " \xB7 ", new Date(cand.mtimeMs).toLocaleString())), /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-muted", style: { wordBreak: "break-all" } }, cand.path), cand.valid && cand.summary ? /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-muted", style: { color: "#a5c8f0", marginTop: 2 } }, "\u51FA\u51FB ", cand.summary.sortieProfiles, " \xB7 \u7F16\u6210 ", cand.summary.orgPresets, " \xB7 \u6F14\u4E60", " ", cand.summary.practiceRules, " \xB7 \u8BA1\u5212 ", cand.summary.plans, " \xB7", " ", formatExpTargets(cand.summary.expeditionTargets), cand.summary.hasCustomLbasOrBranch ? " \xB7 \u542B\u9646\u822A/\u80FD\u52A8\u5206\u6B67" : "") : cand.error && /* @__PURE__ */ import_react7.default.createElement("div", { style: { color: "#fca5a5", fontSize: 11 } }, cand.error))
|
|
16008
16205
|
);
|
|
16009
|
-
})), uploadedSettings && /* @__PURE__ */
|
|
16206
|
+
})), uploadedSettings && /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-import-item kca-import-item-selected" }, /* @__PURE__ */ import_react7.default.createElement("div", { style: { flex: 1 } }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-row", style: { gap: 6 } }, /* @__PURE__ */ import_react7.default.createElement("strong", null, "\u5DF2\u9009\u6587\u4EF6\uFF1A", uploadedSettings.fileName), /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u683C\u5F0F v", uploadedSettings.result.summary.saveFormatVersion), /* @__PURE__ */ import_react7.default.createElement(
|
|
16010
16207
|
"button",
|
|
16011
16208
|
{
|
|
16012
16209
|
className: "kca-btn kca-btn-sm",
|
|
16013
16210
|
onClick: () => setUploadedSettings(null)
|
|
16014
16211
|
},
|
|
16015
16212
|
"\u6E05\u9664"
|
|
16016
|
-
)), /* @__PURE__ */
|
|
16213
|
+
)), /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-muted", style: { color: "#a5c8f0", marginTop: 2 } }, "\u51FA\u51FB ", uploadedSettings.result.summary.sortieProfiles, " \xB7 \u7F16\u6210", " ", uploadedSettings.result.summary.orgPresets, " \xB7 \u6F14\u4E60", " ", uploadedSettings.result.summary.practiceRules, " \xB7 \u8BA1\u5212", " ", uploadedSettings.result.summary.plans, " \xB7", " ", formatExpTargets(uploadedSettings.result.summary.expeditionTargets)))), (uploadedCdata || activeCdata) && /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-import-item" }, /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch", style: { flex: 1 } }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16017
16214
|
"input",
|
|
16018
16215
|
{
|
|
16019
16216
|
type: "checkbox",
|
|
@@ -16021,7 +16218,7 @@ var LegacyImportPanel = ({
|
|
|
16021
16218
|
checked: includeCdata,
|
|
16022
16219
|
onChange: (e) => setIncludeCdata(e.target.checked)
|
|
16023
16220
|
}
|
|
16024
|
-
), /* @__PURE__ */
|
|
16221
|
+
), /* @__PURE__ */ import_react7.default.createElement("div", null, /* @__PURE__ */ import_react7.default.createElement("strong", null, "\u56FE\u50CF\u6A21\u677F cdata (", uploadedCdata ? uploadedCdata.fileName : activeCdata?.path, ")"), /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-muted" }, uploadedCdata ? /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, "\u5171 ", uploadedCdata.templates.length, " \u4E2A\u6A21\u677F", uploadedCdata.modifiedTags.length > 0 ? ` \xB7 \u81EA\u5B9A\u4E49\u6821\u51C6 ${uploadedCdata.modifiedTags.length} \u9879 (${uploadedCdata.modifiedTags.join(", ")})` : " \xB7 \u4E0E\u5185\u7F6E v2.6.2 \u6A21\u677F\u4E00\u81F4") : activeCdata?.valid ? /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, "\u5171 ", activeCdata.totalTemplates, " \u4E2A\u6A21\u677F", activeCdata.modifiedTags.length > 0 || activeCdata.extraTags.length > 0 ? ` \xB7 \u53D1\u73B0\u81EA\u5B9A\u4E49\u6821\u51C6 (${[...activeCdata.modifiedTags, ...activeCdata.extraTags].join(", ")})\uFF0C\u5EFA\u8BAE\u52FE\u9009\u5BFC\u5165` : " \xB7 \u4E0E\u5185\u7F6E v2.6.2 \u9ED8\u8BA4\u6A21\u677F\u5B8C\u5168\u4E00\u81F4\uFF0C\u65E0\u9700\u8986\u76D6") : /* @__PURE__ */ import_react7.default.createElement("span", { style: { color: "#fca5a5" } }, activeCdata?.error))))), report && report.skippedFiles.length > 0 && /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-muted" }, report.skippedFiles.map((sf) => /* @__PURE__ */ import_react7.default.createElement("div", { key: sf.path }, "\u2139 \u5DF2\u81EA\u52A8\u8DF3\u8FC7 ", sf.fileName, "\uFF1A", sf.reason))), (hasAnySettingsToImport || hasAnyCdataToImport) && /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-import-options" }, hasAnySettingsToImport && activeSummary && /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-row", style: { gap: 14 } }, /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-muted" }, "\u5BFC\u5165\u65B9\u5F0F\uFF1A"), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16025
16222
|
"input",
|
|
16026
16223
|
{
|
|
16027
16224
|
type: "radio",
|
|
@@ -16029,7 +16226,7 @@ var LegacyImportPanel = ({
|
|
|
16029
16226
|
checked: mode === "replace",
|
|
16030
16227
|
onChange: () => setMode("replace")
|
|
16031
16228
|
}
|
|
16032
|
-
), /* @__PURE__ */
|
|
16229
|
+
), /* @__PURE__ */ import_react7.default.createElement("strong", null, "\u8986\u76D6\u5BFC\u5165"), /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-muted" }, "(\u63A8\u8350\u9996\u6B21\u8FC1\u79FB\uFF0C\u4FDD\u7559\u5927\u7834\u4FDD\u62A4\u4E0E\u62DF\u4EBA\u53C2\u6570)")), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16033
16230
|
"input",
|
|
16034
16231
|
{
|
|
16035
16232
|
type: "radio",
|
|
@@ -16037,56 +16234,56 @@ var LegacyImportPanel = ({
|
|
|
16037
16234
|
checked: mode === "merge",
|
|
16038
16235
|
onChange: () => setMode("merge")
|
|
16039
16236
|
}
|
|
16040
|
-
), /* @__PURE__ */
|
|
16237
|
+
), /* @__PURE__ */ import_react7.default.createElement("strong", null, "\u5408\u5E76\u5BFC\u5165"), /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-muted" }, "(\u4FDD\u7559\u73B0\u6709\u65B9\u6848\uFF0C\u6309 ID \u589E\u91CF\u5408\u5E76)"))), /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-import-checks" }, /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16041
16238
|
"input",
|
|
16042
16239
|
{
|
|
16043
16240
|
type: "checkbox",
|
|
16044
16241
|
checked: sections.sortie,
|
|
16045
16242
|
onChange: () => toggleSection("sortie")
|
|
16046
16243
|
}
|
|
16047
|
-
), "\u51FA\u51FB / \u9646\u822A / \u62C6\u8239 (", activeSummary.sortieProfiles, ")"), /* @__PURE__ */
|
|
16244
|
+
), "\u51FA\u51FB / \u9646\u822A / \u62C6\u8239 (", activeSummary.sortieProfiles, ")"), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16048
16245
|
"input",
|
|
16049
16246
|
{
|
|
16050
16247
|
type: "checkbox",
|
|
16051
16248
|
checked: sections.expedition,
|
|
16052
16249
|
onChange: () => toggleSection("expedition")
|
|
16053
16250
|
}
|
|
16054
|
-
), "\u8FDC\u5F81\u4E0E\u5237\u95EA (\u8BB0\u5FC6 ", activeSummary.expeditionKiraPresets, ")"), /* @__PURE__ */
|
|
16251
|
+
), "\u8FDC\u5F81\u4E0E\u5237\u95EA (\u8BB0\u5FC6 ", activeSummary.expeditionKiraPresets, ")"), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16055
16252
|
"input",
|
|
16056
16253
|
{
|
|
16057
16254
|
type: "checkbox",
|
|
16058
16255
|
checked: sections.organization,
|
|
16059
16256
|
onChange: () => toggleSection("organization")
|
|
16060
16257
|
}
|
|
16061
|
-
), "\u7F16\u6210\u4E0E\u6362\u88C5 (", activeSummary.orgPresets, ")"), /* @__PURE__ */
|
|
16258
|
+
), "\u7F16\u6210\u4E0E\u6362\u88C5 (", activeSummary.orgPresets, ")"), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16062
16259
|
"input",
|
|
16063
16260
|
{
|
|
16064
16261
|
type: "checkbox",
|
|
16065
16262
|
checked: sections.practice,
|
|
16066
16263
|
onChange: () => toggleSection("practice")
|
|
16067
16264
|
}
|
|
16068
|
-
), "\u6F14\u4E60\u89C4\u5219 (", activeSummary.practiceRules, ")"), /* @__PURE__ */
|
|
16265
|
+
), "\u6F14\u4E60\u89C4\u5219 (", activeSummary.practiceRules, ")"), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16069
16266
|
"input",
|
|
16070
16267
|
{
|
|
16071
16268
|
type: "checkbox",
|
|
16072
16269
|
checked: sections.quests,
|
|
16073
16270
|
onChange: () => toggleSection("quests")
|
|
16074
16271
|
}
|
|
16075
|
-
), "\u4EFB\u52A1\u8FDB\u5EA6\u8BA1\u6570 (", activeSummary.questCountersImported, " \u9879\u975E\u96F6)"), /* @__PURE__ */
|
|
16272
|
+
), "\u4EFB\u52A1\u8FDB\u5EA6\u8BA1\u6570 (", activeSummary.questCountersImported, " \u9879\u975E\u96F6)"), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16076
16273
|
"input",
|
|
16077
16274
|
{
|
|
16078
16275
|
type: "checkbox",
|
|
16079
16276
|
checked: sections.plan,
|
|
16080
16277
|
onChange: () => toggleSection("plan")
|
|
16081
16278
|
}
|
|
16082
|
-
), "\u4F5C\u6218\u8BA1\u5212 (", activeSummary.plans, ")"), /* @__PURE__ */
|
|
16279
|
+
), "\u4F5C\u6218\u8BA1\u5212 (", activeSummary.plans, ")"), /* @__PURE__ */ import_react7.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
16083
16280
|
"input",
|
|
16084
16281
|
{
|
|
16085
16282
|
type: "checkbox",
|
|
16086
16283
|
checked: sections.repairDevelopGeneral,
|
|
16087
16284
|
onChange: () => toggleSection("repairDevelopGeneral")
|
|
16088
16285
|
}
|
|
16089
|
-
), "\u5165\u6E20 / \u5F00\u53D1 / \u901A\u7528\u8BBE\u7F6E"))), /* @__PURE__ */
|
|
16286
|
+
), "\u5165\u6E20 / \u5F00\u53D1 / \u901A\u7528\u8BBE\u7F6E"))), /* @__PURE__ */ import_react7.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between", marginTop: 4 } }, /* @__PURE__ */ import_react7.default.createElement("span", { className: "kca-muted" }, "\u5BFC\u5165\u524D\u4F1A\u81EA\u52A8\u5C06\u5F53\u524D KCA Next \u914D\u7F6E\u5907\u4EFD\u5230 backups \u76EE\u5F55"), /* @__PURE__ */ import_react7.default.createElement(
|
|
16090
16287
|
"button",
|
|
16091
16288
|
{
|
|
16092
16289
|
className: "kca-btn kca-btn-primary",
|
|
@@ -16104,24 +16301,24 @@ var SettingsLogsTab = ({
|
|
|
16104
16301
|
logs,
|
|
16105
16302
|
legacyImportTrigger = 0
|
|
16106
16303
|
}) => {
|
|
16107
|
-
const [levelFilter, setLevelFilter] = (0,
|
|
16108
|
-
const [jsonMsg, setJsonMsg] = (0,
|
|
16109
|
-
const [diagTag, setDiagTag] = (0,
|
|
16110
|
-
const [diagResult, setDiagResult] = (0,
|
|
16111
|
-
const [s2Snap, setS2Snap] = (0,
|
|
16304
|
+
const [levelFilter, setLevelFilter] = (0, import_react8.useState)("all");
|
|
16305
|
+
const [jsonMsg, setJsonMsg] = (0, import_react8.useState)("");
|
|
16306
|
+
const [diagTag, setDiagTag] = (0, import_react8.useState)(TEMPLATE_TAGS[0] ?? "org_lv2");
|
|
16307
|
+
const [diagResult, setDiagResult] = (0, import_react8.useState)("");
|
|
16308
|
+
const [s2Snap, setS2Snap] = (0, import_react8.useState)(
|
|
16112
16309
|
() => coordinator.getStart2CacheSnapshot()
|
|
16113
16310
|
);
|
|
16114
|
-
const [autoScanTrigger, setAutoScanTrigger] = (0,
|
|
16311
|
+
const [autoScanTrigger, setAutoScanTrigger] = (0, import_react8.useState)(
|
|
16115
16312
|
() => isFoldTriggerPending("legacy-import:autoscan", legacyImportTrigger) ? legacyImportTrigger : 0
|
|
16116
16313
|
);
|
|
16117
|
-
const [importCloseTrigger, setImportCloseTrigger] = (0,
|
|
16118
|
-
const [lastImportDoneText, setLastImportDoneText] = (0,
|
|
16119
|
-
(0,
|
|
16314
|
+
const [importCloseTrigger, setImportCloseTrigger] = (0, import_react8.useState)(0);
|
|
16315
|
+
const [lastImportDoneText, setLastImportDoneText] = (0, import_react8.useState)("");
|
|
16316
|
+
(0, import_react8.useEffect)(() => {
|
|
16120
16317
|
if (consumeFoldTrigger("legacy-import:autoscan", legacyImportTrigger)) {
|
|
16121
16318
|
setAutoScanTrigger(legacyImportTrigger);
|
|
16122
16319
|
}
|
|
16123
16320
|
}, [legacyImportTrigger]);
|
|
16124
|
-
(0,
|
|
16321
|
+
(0, import_react8.useEffect)(() => {
|
|
16125
16322
|
let alive = true;
|
|
16126
16323
|
const poll = async () => {
|
|
16127
16324
|
if (settings.safety.start2CacheMode !== "off") {
|
|
@@ -16185,7 +16382,7 @@ var SettingsLogsTab = ({
|
|
|
16185
16382
|
normal: "\u6807\u51C6",
|
|
16186
16383
|
fast: "\u5FEB\u901F"
|
|
16187
16384
|
};
|
|
16188
|
-
return /* @__PURE__ */
|
|
16385
|
+
return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement(
|
|
16189
16386
|
CollapsibleCard,
|
|
16190
16387
|
{
|
|
16191
16388
|
storageKey: "settings.import",
|
|
@@ -16194,9 +16391,9 @@ var SettingsLogsTab = ({
|
|
|
16194
16391
|
forceOpenTrigger: legacyImportTrigger,
|
|
16195
16392
|
persistForceOpen: false,
|
|
16196
16393
|
forceCloseTrigger: importCloseTrigger,
|
|
16197
|
-
summary: lastImportDoneText ? /* @__PURE__ */
|
|
16394
|
+
summary: lastImportDoneText ? /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-badge kca-badge-ok", title: lastImportDoneText }, "\u2705 \u5BFC\u5165\u5B8C\u6210\uFF08\u70B9\u51FB\u53EF\u5C55\u5F00\uFF09") : /* @__PURE__ */ import_react8.default.createElement("span", null, "\u9ED8\u8BA4\u6536\u8D77 \xB7 v2.xml.gz / \u65E7\u7248 xml / cdata / JSON \u5907\u4EFD")
|
|
16198
16395
|
},
|
|
16199
|
-
/* @__PURE__ */
|
|
16396
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
|
16200
16397
|
LegacyImportPanel,
|
|
16201
16398
|
{
|
|
16202
16399
|
coordinator,
|
|
@@ -16207,15 +16404,15 @@ var SettingsLogsTab = ({
|
|
|
16207
16404
|
}
|
|
16208
16405
|
}
|
|
16209
16406
|
),
|
|
16210
|
-
/* @__PURE__ */
|
|
16407
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
|
16211
16408
|
"div",
|
|
16212
16409
|
{
|
|
16213
16410
|
className: "kca-row",
|
|
16214
16411
|
style: { borderTop: "1px solid #263247", paddingTop: 8, marginTop: 2 }
|
|
16215
16412
|
},
|
|
16216
|
-
/* @__PURE__ */
|
|
16217
|
-
/* @__PURE__ */
|
|
16218
|
-
/* @__PURE__ */
|
|
16413
|
+
/* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-muted" }, "KCA Next \u539F\u751F JSON \u5907\u4EFD\uFF1A"),
|
|
16414
|
+
/* @__PURE__ */ import_react8.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: handleJsonExport }, "\u5BFC\u51FA JSON \u914D\u7F6E"),
|
|
16415
|
+
/* @__PURE__ */ import_react8.default.createElement("label", { className: "kca-btn kca-btn-sm" }, "\u5BFC\u5165 JSON \u914D\u7F6E", /* @__PURE__ */ import_react8.default.createElement(
|
|
16219
16416
|
"input",
|
|
16220
16417
|
{
|
|
16221
16418
|
type: "file",
|
|
@@ -16224,15 +16421,15 @@ var SettingsLogsTab = ({
|
|
|
16224
16421
|
onChange: (e) => void handleJsonImport(e)
|
|
16225
16422
|
}
|
|
16226
16423
|
)),
|
|
16227
|
-
jsonMsg && /* @__PURE__ */
|
|
16424
|
+
jsonMsg && /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-muted" }, jsonMsg)
|
|
16228
16425
|
)
|
|
16229
|
-
), /* @__PURE__ */
|
|
16426
|
+
), /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-grid-2" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
16230
16427
|
CollapsibleCard,
|
|
16231
16428
|
{
|
|
16232
16429
|
storageKey: "settings.safety",
|
|
16233
16430
|
title: "\u5B89\u5168\u9632\u62A4\u4E0E\u81EA\u52A8\u91CD\u8FDE",
|
|
16234
16431
|
defaultOpen: true,
|
|
16235
|
-
summary: /* @__PURE__ */
|
|
16432
|
+
summary: /* @__PURE__ */ import_react8.default.createElement(
|
|
16236
16433
|
"span",
|
|
16237
16434
|
{
|
|
16238
16435
|
className: `kca-badge ${settings.safety.strictTaihaGuard ? "kca-badge-ok" : "kca-badge-err"}`
|
|
@@ -16240,7 +16437,7 @@ var SettingsLogsTab = ({
|
|
|
16240
16437
|
settings.safety.strictTaihaGuard ? "7\u5C42\u5927\u7834\u4FDD\u62A4\u5F00" : "\u26A0\u5927\u7834\u4FDD\u62A4\u5173\u95ED"
|
|
16241
16438
|
)
|
|
16242
16439
|
},
|
|
16243
|
-
/* @__PURE__ */
|
|
16440
|
+
/* @__PURE__ */ import_react8.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
16244
16441
|
"input",
|
|
16245
16442
|
{
|
|
16246
16443
|
type: "checkbox",
|
|
@@ -16249,8 +16446,8 @@ var SettingsLogsTab = ({
|
|
|
16249
16446
|
s.safety.strictTaihaGuard = e.target.checked;
|
|
16250
16447
|
})
|
|
16251
16448
|
}
|
|
16252
|
-
), /* @__PURE__ */
|
|
16253
|
-
/* @__PURE__ */
|
|
16449
|
+
), /* @__PURE__ */ import_react8.default.createElement("strong", null, "\u4E25\u683C\u5927\u7834\u4FDD\u62A4 (7\u5C42\u9632\u6C89\u8239\u5B89\u5168\u7F51)")),
|
|
16450
|
+
/* @__PURE__ */ import_react8.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
16254
16451
|
"input",
|
|
16255
16452
|
{
|
|
16256
16453
|
type: "checkbox",
|
|
@@ -16260,7 +16457,7 @@ var SettingsLogsTab = ({
|
|
|
16260
16457
|
})
|
|
16261
16458
|
}
|
|
16262
16459
|
), "\u5141\u8BB8\u5355\u8230\u643A\u5E26\u635F\u7BA1\u8FDB\u51FB"),
|
|
16263
|
-
/* @__PURE__ */
|
|
16460
|
+
/* @__PURE__ */ import_react8.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
16264
16461
|
"input",
|
|
16265
16462
|
{
|
|
16266
16463
|
type: "checkbox",
|
|
@@ -16270,7 +16467,7 @@ var SettingsLogsTab = ({
|
|
|
16270
16467
|
})
|
|
16271
16468
|
}
|
|
16272
16469
|
), "API \u62A5\u9519 / \u732B\u9875\u81EA\u52A8 F5 \u91CD\u8FDE"),
|
|
16273
|
-
/* @__PURE__ */
|
|
16470
|
+
/* @__PURE__ */ import_react8.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
16274
16471
|
"input",
|
|
16275
16472
|
{
|
|
16276
16473
|
type: "checkbox",
|
|
@@ -16280,7 +16477,7 @@ var SettingsLogsTab = ({
|
|
|
16280
16477
|
})
|
|
16281
16478
|
}
|
|
16282
16479
|
), "\u5199\u5165\u672C\u5730\u65E5\u5FD7\u6587\u4EF6 (kca-next.log)"),
|
|
16283
|
-
/* @__PURE__ */
|
|
16480
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u6B65\u9AA4\u8D85\u65F6 (\u79D2)"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16284
16481
|
"input",
|
|
16285
16482
|
{
|
|
16286
16483
|
type: "number",
|
|
@@ -16293,7 +16490,7 @@ var SettingsLogsTab = ({
|
|
|
16293
16490
|
s.safety.stepTimeoutSec = Number(e.target.value) || 20;
|
|
16294
16491
|
})
|
|
16295
16492
|
}
|
|
16296
|
-
), /* @__PURE__ */
|
|
16493
|
+
), /* @__PURE__ */ import_react8.default.createElement("span", null, "\u732B\u9875\u5DE1\u68C0 (\u79D2)"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16297
16494
|
"input",
|
|
16298
16495
|
{
|
|
16299
16496
|
type: "number",
|
|
@@ -16306,7 +16503,7 @@ var SettingsLogsTab = ({
|
|
|
16306
16503
|
s.safety.catCheckIntervalSec = Math.max(15, Number(e.target.value) || 60);
|
|
16307
16504
|
})
|
|
16308
16505
|
}
|
|
16309
|
-
), /* @__PURE__ */
|
|
16506
|
+
), /* @__PURE__ */ import_react8.default.createElement("span", null, "\u63D0\u524D\u64CD\u4F5C (\u79D2)"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16310
16507
|
"input",
|
|
16311
16508
|
{
|
|
16312
16509
|
type: "number",
|
|
@@ -16319,7 +16516,7 @@ var SettingsLogsTab = ({
|
|
|
16319
16516
|
s.general.operationAdvanceSec = Number(e.target.value) || 0;
|
|
16320
16517
|
})
|
|
16321
16518
|
}
|
|
16322
|
-
), /* @__PURE__ */
|
|
16519
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
16323
16520
|
"button",
|
|
16324
16521
|
{
|
|
16325
16522
|
className: "kca-btn kca-btn-sm",
|
|
@@ -16330,15 +16527,15 @@ var SettingsLogsTab = ({
|
|
|
16330
16527
|
},
|
|
16331
16528
|
"\u7ACB\u5373\u4FDD\u5B58\u914D\u7F6E"
|
|
16332
16529
|
))
|
|
16333
|
-
), /* @__PURE__ */
|
|
16530
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
16334
16531
|
CollapsibleCard,
|
|
16335
16532
|
{
|
|
16336
16533
|
storageKey: "settings.human",
|
|
16337
16534
|
title: "\u62DF\u4EBA\u5316\u8F93\u5165\u5F15\u64CE (\u53CD\u68C0\u6D4B\u4F18\u5316)",
|
|
16338
16535
|
defaultOpen: true,
|
|
16339
|
-
summary: /* @__PURE__ */
|
|
16536
|
+
summary: /* @__PURE__ */ import_react8.default.createElement("span", null, speedLabels[settings.humanInput.speedProfile] ?? settings.humanInput.speedProfile, " \xB7", " ", settings.humanInput.useWheelPagination !== false ? "\u6EDA\u8F6E\u7FFB\u9875" : "\u9875\u7801\u70B9\u51FB")
|
|
16340
16537
|
},
|
|
16341
|
-
/* @__PURE__ */
|
|
16538
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u901F\u5EA6\u6863\u4F4D"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16342
16539
|
"select",
|
|
16343
16540
|
{
|
|
16344
16541
|
className: "kca-select",
|
|
@@ -16347,11 +16544,11 @@ var SettingsLogsTab = ({
|
|
|
16347
16544
|
s.humanInput.speedProfile = e.target.value;
|
|
16348
16545
|
})
|
|
16349
16546
|
},
|
|
16350
|
-
/* @__PURE__ */
|
|
16351
|
-
/* @__PURE__ */
|
|
16352
|
-
/* @__PURE__ */
|
|
16547
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "safe" }, "\u7A33\u5065\u62DF\u4EBA (1.25x \u5EF6\u8FDF)"),
|
|
16548
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "normal" }, "\u6807\u51C6\u5E73\u8861 (1.0x)"),
|
|
16549
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "fast" }, "\u9AD8\u6548\u5FEB\u901F (0.72x)")
|
|
16353
16550
|
)),
|
|
16354
|
-
/* @__PURE__ */
|
|
16551
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u6309\u538B\u65F6\u957F (ms)"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16355
16552
|
"input",
|
|
16356
16553
|
{
|
|
16357
16554
|
type: "number",
|
|
@@ -16362,7 +16559,7 @@ var SettingsLogsTab = ({
|
|
|
16362
16559
|
s.humanInput.minDwellMs = Number(e.target.value) || 35;
|
|
16363
16560
|
})
|
|
16364
16561
|
}
|
|
16365
|
-
), /* @__PURE__ */
|
|
16562
|
+
), /* @__PURE__ */ import_react8.default.createElement("span", null, "~"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16366
16563
|
"input",
|
|
16367
16564
|
{
|
|
16368
16565
|
type: "number",
|
|
@@ -16374,13 +16571,13 @@ var SettingsLogsTab = ({
|
|
|
16374
16571
|
})
|
|
16375
16572
|
}
|
|
16376
16573
|
)),
|
|
16377
|
-
/* @__PURE__ */
|
|
16574
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
|
16378
16575
|
"label",
|
|
16379
16576
|
{
|
|
16380
16577
|
className: "kca-switch",
|
|
16381
16578
|
title: "\u5F00\u542F\u540E\u5728\u7F16\u6210\u6362\u8239\u3001\u6539\u88C5\u6362\u88C5\u3001\u5165\u6E20\u4E0E\u89E3\u4F53\u5217\u8868\u4E2D\u76F4\u63A5\u7528\u9F20\u6807\u6EDA\u8F6E\u7FFB\u9875\uFF08\u65E0\u9700\u8BA1\u7B97\u5E76\u70B9\u51FB 1~5 \u9875\u7801\u6309\u94AE\uFF09\uFF1B\u5173\u95ED\u5219\u56DE\u9000\u4E3A\u4F20\u7EDF\u9875\u7801\u70B9\u51FB"
|
|
16382
16579
|
},
|
|
16383
|
-
/* @__PURE__ */
|
|
16580
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
|
16384
16581
|
"input",
|
|
16385
16582
|
{
|
|
16386
16583
|
type: "checkbox",
|
|
@@ -16390,18 +16587,18 @@ var SettingsLogsTab = ({
|
|
|
16390
16587
|
})
|
|
16391
16588
|
}
|
|
16392
16589
|
),
|
|
16393
|
-
/* @__PURE__ */
|
|
16590
|
+
/* @__PURE__ */ import_react8.default.createElement("strong", null, "\u6362\u8239 / \u6362\u88C5 / \u5165\u6E20 / \u89E3\u4F53\u4F7F\u7528\u9F20\u6807\u6EDA\u8F6E\u7FFB\u9875 (\u514D\u8BA1\u7B97\u9875\u7801\u6309\u94AE)")
|
|
16394
16591
|
),
|
|
16395
|
-
/* @__PURE__ */
|
|
16396
|
-
)), /* @__PURE__ */
|
|
16592
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-muted" }, "\u91C7\u7528 Box-Muller \u9AD8\u65AF\u968F\u673A\u5750\u6807\u504F\u79FB + \u8D1D\u585E\u5C14\u66F2\u7EBF\u62D6\u62FD + \u5217\u8868\u539F\u751F\u9F20\u6807\u6EDA\u8F6E\u7FFB\u9875\u3002")
|
|
16593
|
+
)), /* @__PURE__ */ import_react8.default.createElement(
|
|
16397
16594
|
CollapsibleCard,
|
|
16398
16595
|
{
|
|
16399
16596
|
storageKey: "settings.f5",
|
|
16400
16597
|
title: "\u667A\u80FD F5 \u5237\u65B0\u4E0E\u5185\u7F6E Start2 \u7F13\u5B58 (s2cache)",
|
|
16401
16598
|
defaultOpen: true,
|
|
16402
|
-
headerRight: /* @__PURE__ */
|
|
16599
|
+
headerRight: /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, settings.safety.start2CacheMode === "serve" ? s2Snap && s2Snap.cachedBytes > 0 && s2Snap.leftSec > 0 ? /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u5DF2\u7F13\u5B58 ", Math.round(s2Snap.cachedBytes / 1024), " KB \xB7 \u5269 ", Math.ceil(s2Snap.leftSec / 60), " \u5206") : /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-badge kca-badge-warn" }, "\u7B49\u5F85\u91CD\u8F7D\u5199\u5165\u7F13\u5B58") : settings.safety.start2CacheMode === "probe" ? /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-badge kca-badge-run" }, "\u53EA\u89C2\u5BDF\u6A21\u5F0F") : /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-badge" }, "\u7F13\u5B58\u5DF2\u5173\u95ED"))
|
|
16403
16600
|
},
|
|
16404
|
-
/* @__PURE__ */
|
|
16601
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-grid-2" }, /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-sub-box" }, /* @__PURE__ */ import_react8.default.createElement("strong", null, "F5 \u5237\u65B0\u7B56\u7565 (\u590D\u523B poi-plugin-kancolle-assistant)"), /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u5237\u65B0\u6A21\u5F0F"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16405
16602
|
"select",
|
|
16406
16603
|
{
|
|
16407
16604
|
className: "kca-select",
|
|
@@ -16410,10 +16607,10 @@ var SettingsLogsTab = ({
|
|
|
16410
16607
|
s.safety.f5ReloadMode = e.target.value;
|
|
16411
16608
|
})
|
|
16412
16609
|
},
|
|
16413
|
-
/* @__PURE__ */
|
|
16414
|
-
/* @__PURE__ */
|
|
16415
|
-
/* @__PURE__ */
|
|
16416
|
-
)), /* @__PURE__ */
|
|
16610
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "smart" }, "\u667A\u80FD\u6DF7\u5408 (\u53F3\u952E\u5237\u65B0\u6E38\u620F\u672C\u4F53 + \u5B9A\u671F\u6574\u9875\u5237\u65B0)"),
|
|
16611
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "game_only" }, "\u4EC5\u53F3\u952E\u5237\u65B0\u6E38\u620F\u672C\u4F53 (gameReload)"),
|
|
16612
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "full_page" }, "\u6BCF\u6B21\u5237\u65B0\u6574\u4E2A\u7F51\u9875 (gameRefreshPage)")
|
|
16613
|
+
)), /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u6574\u9875\u5237\u65B0\u95F4\u9694"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16417
16614
|
"input",
|
|
16418
16615
|
{
|
|
16419
16616
|
type: "number",
|
|
@@ -16426,7 +16623,7 @@ var SettingsLogsTab = ({
|
|
|
16426
16623
|
s.safety.f5FullRefreshIntervalMin = Math.max(5, Number(e.target.value) || 60);
|
|
16427
16624
|
})
|
|
16428
16625
|
}
|
|
16429
|
-
), /* @__PURE__ */
|
|
16626
|
+
), /* @__PURE__ */ import_react8.default.createElement("span", null, "\u5206 + \u968F\u673A 1~"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16430
16627
|
"input",
|
|
16431
16628
|
{
|
|
16432
16629
|
type: "number",
|
|
@@ -16439,7 +16636,7 @@ var SettingsLogsTab = ({
|
|
|
16439
16636
|
s.safety.f5FullRefreshJitterMin = Math.max(0, Number(e.target.value) || 0);
|
|
16440
16637
|
})
|
|
16441
16638
|
}
|
|
16442
|
-
), /* @__PURE__ */
|
|
16639
|
+
), /* @__PURE__ */ import_react8.default.createElement("span", null, "\u5206")), /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-muted" }, "\u5E73\u65F6 F5 \u8C03\u7528 poi \u53F3\u952E\u300C\u91CD\u65B0\u52A0\u8F7D\u6E38\u620F\u300D\u4EC5\u91CD\u8F7D\u6E38\u620F\u672C\u4F53\uFF0C\u8D85\u8FC7\u8BBE\u5B9A\u65F6\u957F\u540E\u81EA\u52A8\u6574\u9875\u5237\u65B0\u4E00\u6B21\u5E76\u91CD\u7F6E\u8BA1\u65F6\u5668\u3002")), /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-sub-box" }, /* @__PURE__ */ import_react8.default.createElement("strong", null, "\u5185\u7F6E Start2 \u7F13\u5B58 (s2cache)"), /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement("span", null, "\u7F13\u5B58\u6A21\u5F0F"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16443
16640
|
"select",
|
|
16444
16641
|
{
|
|
16445
16642
|
className: "kca-select",
|
|
@@ -16448,10 +16645,10 @@ var SettingsLogsTab = ({
|
|
|
16448
16645
|
s.safety.start2CacheMode = e.target.value;
|
|
16449
16646
|
})
|
|
16450
16647
|
},
|
|
16451
|
-
/* @__PURE__ */
|
|
16452
|
-
/* @__PURE__ */
|
|
16453
|
-
/* @__PURE__ */
|
|
16454
|
-
)), /* @__PURE__ */
|
|
16648
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "off" }, "\u5173\u95ED (\u4E0D\u6CE8\u5165\u4E0D\u5360\u5185\u5B58)"),
|
|
16649
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "serve" }, "\u5F00\u542F\u77ED\u8DEF (\u63A8\u8350\uFF0CF5 \u65F6\u672C\u5730\u76F4\u63A5\u56DE\u586B start2)"),
|
|
16650
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "probe" }, "\u53EA\u89C2\u5BDF (\u4EC5\u7EDF\u8BA1\u547D\u4E2D/\u672A\u547D\u4E2D\uFF0C\u4E0D\u62E6\u622A)")
|
|
16651
|
+
)), /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement("span", null, "TTL (\u79D2)"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16455
16652
|
"input",
|
|
16456
16653
|
{
|
|
16457
16654
|
type: "number",
|
|
@@ -16465,7 +16662,7 @@ var SettingsLogsTab = ({
|
|
|
16465
16662
|
s.safety.start2CacheTtlSec = Math.max(60, Number(e.target.value) || 7200);
|
|
16466
16663
|
})
|
|
16467
16664
|
}
|
|
16468
|
-
), /* @__PURE__ */
|
|
16665
|
+
), /* @__PURE__ */ import_react8.default.createElement("span", null, "\u8E29\u8D44\u6E90\u70B9\u7EED\u671F (\u79D2)"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16469
16666
|
"input",
|
|
16470
16667
|
{
|
|
16471
16668
|
type: "number",
|
|
@@ -16479,14 +16676,14 @@ var SettingsLogsTab = ({
|
|
|
16479
16676
|
s.safety.start2CacheKeepSec = Math.max(30, Number(e.target.value) || 300);
|
|
16480
16677
|
})
|
|
16481
16678
|
}
|
|
16482
|
-
)), /* @__PURE__ */
|
|
16679
|
+
)), /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
16483
16680
|
"button",
|
|
16484
16681
|
{
|
|
16485
16682
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
16486
16683
|
onClick: () => void coordinator.injectStart2CacheNow().then(() => setS2Snap(coordinator.getStart2CacheSnapshot()))
|
|
16487
16684
|
},
|
|
16488
16685
|
"\u7ACB\u5373\u751F\u6548\u6CE8\u5165"
|
|
16489
|
-
), /* @__PURE__ */
|
|
16686
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
16490
16687
|
"button",
|
|
16491
16688
|
{
|
|
16492
16689
|
className: "kca-btn kca-btn-sm",
|
|
@@ -16496,7 +16693,7 @@ var SettingsLogsTab = ({
|
|
|
16496
16693
|
}
|
|
16497
16694
|
},
|
|
16498
16695
|
"\u6E05\u7A7A\u7F13\u5B58"
|
|
16499
|
-
), /* @__PURE__ */
|
|
16696
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
16500
16697
|
"button",
|
|
16501
16698
|
{
|
|
16502
16699
|
className: "kca-btn kca-btn-sm",
|
|
@@ -16504,42 +16701,42 @@ var SettingsLogsTab = ({
|
|
|
16504
16701
|
},
|
|
16505
16702
|
"\u6D4B\u8BD5 F5 \u5237\u65B0"
|
|
16506
16703
|
)))),
|
|
16507
|
-
s2Snap && settings.safety.start2CacheMode !== "off" && /* @__PURE__ */
|
|
16508
|
-
), /* @__PURE__ */
|
|
16704
|
+
s2Snap && settings.safety.start2CacheMode !== "off" && /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-muted" }, "\u547D\u4E2D\u7EDF\u8BA1\uFF1A\u62E6\u4F4F ", /* @__PURE__ */ import_react8.default.createElement("strong", null, s2Snap.page?.hit ?? 0), " \u6B21 \xB7 \u6F0F\u6389", " ", /* @__PURE__ */ import_react8.default.createElement("strong", { style: { color: (s2Snap.page?.miss ?? 0) > 0 && settings.safety.start2CacheMode === "serve" ? "#fca5a5" : void 0 } }, s2Snap.page?.miss ?? 0), " ", "\u6B21 \xB7 \u5199\u5165 ", s2Snap.storedCount, " \u6B21 \xB7 \u7EED\u671F ", s2Snap.renewedCount, " \u6B21 \xB7 \u63A8\u9001\u6B63\u6587 ", s2Snap.pushedTextCount, " / \u4EC5 Meta ", s2Snap.pushedMetaCount, " / \u8DF3\u8FC7 ", s2Snap.skippedPushCount)
|
|
16705
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
16509
16706
|
CollapsibleCard,
|
|
16510
16707
|
{
|
|
16511
16708
|
storageKey: "settings.vision",
|
|
16512
16709
|
title: "\u56FE\u50CF\u8BC6\u522B\u8BCA\u65AD (\u7EAF TS CIE-Lab + Sobel)",
|
|
16513
16710
|
defaultOpen: false,
|
|
16514
|
-
headerRight: /* @__PURE__ */
|
|
16711
|
+
headerRight: /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, customTags.length > 0 ? /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-badge kca-badge-warn" }, "\u81EA\u5B9A\u4E49\u6A21\u677F ", customTags.length, " \u4E2A"), /* @__PURE__ */ import_react8.default.createElement(
|
|
16515
16712
|
"button",
|
|
16516
16713
|
{
|
|
16517
16714
|
className: "kca-btn kca-btn-sm",
|
|
16518
16715
|
onClick: () => coordinator.resetCustomTemplates()
|
|
16519
16716
|
},
|
|
16520
16717
|
"\u6062\u590D\u5185\u7F6E\u9ED8\u8BA4"
|
|
16521
|
-
)) : /* @__PURE__ */
|
|
16718
|
+
)) : /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u5185\u7F6E v2.6.2 \u9ED8\u8BA4\u6A21\u677F"))
|
|
16522
16719
|
},
|
|
16523
|
-
/* @__PURE__ */
|
|
16524
|
-
), /* @__PURE__ */
|
|
16720
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement("select", { className: "kca-select", value: diagTag, onChange: (e) => setDiagTag(e.target.value) }, allTemplateTags.map((t) => /* @__PURE__ */ import_react8.default.createElement("option", { key: t, value: t }, t, customTags.includes(t) ? " (\u81EA\u5B9A\u4E49)" : ""))), /* @__PURE__ */ import_react8.default.createElement("button", { className: "kca-btn kca-btn-sm kca-btn-primary", onClick: () => void runVisionDiag() }, "\u5B9E\u65F6\u6D4B\u8BD5\u5339\u914D"), /* @__PURE__ */ import_react8.default.createElement("span", { className: "kca-muted" }, diagResult))
|
|
16721
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
16525
16722
|
CollapsibleCard,
|
|
16526
16723
|
{
|
|
16527
16724
|
storageKey: "settings.logs",
|
|
16528
16725
|
title: `\u8FD0\u884C\u64CD\u4F5C\u65E5\u5FD7 (${logs.length})`,
|
|
16529
16726
|
defaultOpen: true,
|
|
16530
|
-
headerRight: /* @__PURE__ */
|
|
16727
|
+
headerRight: /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react8.default.createElement(
|
|
16531
16728
|
"select",
|
|
16532
16729
|
{
|
|
16533
16730
|
className: "kca-select",
|
|
16534
16731
|
value: levelFilter,
|
|
16535
16732
|
onChange: (e) => setLevelFilter(e.target.value)
|
|
16536
16733
|
},
|
|
16537
|
-
/* @__PURE__ */
|
|
16538
|
-
/* @__PURE__ */
|
|
16539
|
-
/* @__PURE__ */
|
|
16540
|
-
/* @__PURE__ */
|
|
16541
|
-
/* @__PURE__ */
|
|
16542
|
-
), /* @__PURE__ */
|
|
16734
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "all" }, "\u5168\u90E8\u7EA7\u522B"),
|
|
16735
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "info" }, "INFO"),
|
|
16736
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "success" }, "SUCCESS"),
|
|
16737
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "warning" }, "WARNING"),
|
|
16738
|
+
/* @__PURE__ */ import_react8.default.createElement("option", { value: "error" }, "ERROR")
|
|
16739
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
|
16543
16740
|
"button",
|
|
16544
16741
|
{
|
|
16545
16742
|
className: "kca-btn kca-btn-sm",
|
|
@@ -16550,17 +16747,17 @@ var SettingsLogsTab = ({
|
|
|
16550
16747
|
}
|
|
16551
16748
|
},
|
|
16552
16749
|
"\u590D\u5236\u65E5\u5FD7"
|
|
16553
|
-
), /* @__PURE__ */
|
|
16750
|
+
), /* @__PURE__ */ import_react8.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: () => coordinator.logger.clear() }, "\u6E05\u7A7A"))
|
|
16554
16751
|
},
|
|
16555
|
-
/* @__PURE__ */
|
|
16752
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-log-list" }, filteredLogs.length === 0 ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "kca-muted" }, "\u6682\u65E0\u65E5\u5FD7\u8BB0\u5F55") : filteredLogs.map((e) => /* @__PURE__ */ import_react8.default.createElement("div", { key: e.id, className: `kca-log-${e.level}` }, "[", new Date(e.timestamp).toLocaleTimeString(), "] [", e.category, "] ", e.message, e.repeatCount > 1 ? ` (x${e.repeatCount})` : "")))
|
|
16556
16753
|
));
|
|
16557
16754
|
};
|
|
16558
16755
|
|
|
16559
16756
|
// src/ui/tabs/SortieTab.tsx
|
|
16560
|
-
var
|
|
16757
|
+
var import_react11 = __toESM(require("react"));
|
|
16561
16758
|
|
|
16562
16759
|
// src/ui/components/CoordPickerPanel.tsx
|
|
16563
|
-
var
|
|
16760
|
+
var import_react9 = __toESM(require("react"));
|
|
16564
16761
|
var CoordPickerPanel = ({
|
|
16565
16762
|
coordinator,
|
|
16566
16763
|
targets,
|
|
@@ -16577,30 +16774,30 @@ var CoordPickerPanel = ({
|
|
|
16577
16774
|
onCancelLivePick,
|
|
16578
16775
|
extraMarkers = []
|
|
16579
16776
|
}) => {
|
|
16580
|
-
const [screenshotUrl, setScreenshotUrl] = (0,
|
|
16581
|
-
const [capturing, setCapturing] = (0,
|
|
16582
|
-
const [captureError, setCaptureError] = (0,
|
|
16583
|
-
const [autoAdvance, setAutoAdvance] = (0,
|
|
16584
|
-
const [canvasHover, setCanvasHover] = (0,
|
|
16585
|
-
const [liveGameHover, setLiveGameHover] = (0,
|
|
16586
|
-
const [lastFeedback, setLastFeedback] = (0,
|
|
16587
|
-
const canvasBoxRef = (0,
|
|
16588
|
-
const pickSeqCounterRef = (0,
|
|
16589
|
-
const consumedTokenRef = (0,
|
|
16590
|
-
const activePickToken = (0,
|
|
16777
|
+
const [screenshotUrl, setScreenshotUrl] = (0, import_react9.useState)(null);
|
|
16778
|
+
const [capturing, setCapturing] = (0, import_react9.useState)(false);
|
|
16779
|
+
const [captureError, setCaptureError] = (0, import_react9.useState)("");
|
|
16780
|
+
const [autoAdvance, setAutoAdvance] = (0, import_react9.useState)(true);
|
|
16781
|
+
const [canvasHover, setCanvasHover] = (0, import_react9.useState)(null);
|
|
16782
|
+
const [liveGameHover, setLiveGameHover] = (0, import_react9.useState)(null);
|
|
16783
|
+
const [lastFeedback, setLastFeedback] = (0, import_react9.useState)("");
|
|
16784
|
+
const canvasBoxRef = (0, import_react9.useRef)(null);
|
|
16785
|
+
const pickSeqCounterRef = (0, import_react9.useRef)(0);
|
|
16786
|
+
const consumedTokenRef = (0, import_react9.useRef)("");
|
|
16787
|
+
const activePickToken = (0, import_react9.useMemo)(() => {
|
|
16591
16788
|
if (!livePickTargetId) return "";
|
|
16592
16789
|
pickSeqCounterRef.current += 1;
|
|
16593
16790
|
return `pick-${Date.now().toString(36)}-${pickSeqCounterRef.current}`;
|
|
16594
16791
|
}, [livePickTargetId]);
|
|
16595
|
-
const activePickTokenRef = (0,
|
|
16792
|
+
const activePickTokenRef = (0, import_react9.useRef)(activePickToken);
|
|
16596
16793
|
activePickTokenRef.current = activePickToken;
|
|
16597
|
-
const livePickTargetRef = (0,
|
|
16794
|
+
const livePickTargetRef = (0, import_react9.useRef)(livePickTargetId);
|
|
16598
16795
|
livePickTargetRef.current = livePickTargetId;
|
|
16599
|
-
const targetsRef = (0,
|
|
16796
|
+
const targetsRef = (0, import_react9.useRef)(targets);
|
|
16600
16797
|
targetsRef.current = targets;
|
|
16601
|
-
const onPickCoordRef = (0,
|
|
16798
|
+
const onPickCoordRef = (0, import_react9.useRef)(onPickCoord);
|
|
16602
16799
|
onPickCoordRef.current = onPickCoord;
|
|
16603
|
-
const onCancelLivePickRef = (0,
|
|
16800
|
+
const onCancelLivePickRef = (0, import_react9.useRef)(onCancelLivePick);
|
|
16604
16801
|
onCancelLivePickRef.current = onCancelLivePick;
|
|
16605
16802
|
const selectedTarget = targets.find((t) => t.id === selectedTargetId) ?? targets[0];
|
|
16606
16803
|
const livePickTarget = livePickTargetId ? targets.find((t) => t.id === livePickTargetId) ?? null : null;
|
|
@@ -16615,7 +16812,7 @@ var CoordPickerPanel = ({
|
|
|
16615
16812
|
...extraMarkers
|
|
16616
16813
|
];
|
|
16617
16814
|
const markersKey = JSON.stringify(allMarkers);
|
|
16618
|
-
const advanceTarget = (0,
|
|
16815
|
+
const advanceTarget = (0, import_react9.useCallback)(
|
|
16619
16816
|
(justPickedId) => {
|
|
16620
16817
|
if (!autoAdvance) return;
|
|
16621
16818
|
const curTargets = targetsRef.current;
|
|
@@ -16629,16 +16826,16 @@ var CoordPickerPanel = ({
|
|
|
16629
16826
|
},
|
|
16630
16827
|
[autoAdvance, onSelectTarget]
|
|
16631
16828
|
);
|
|
16632
|
-
const advanceTargetRef = (0,
|
|
16829
|
+
const advanceTargetRef = (0, import_react9.useRef)(advanceTarget);
|
|
16633
16830
|
advanceTargetRef.current = advanceTarget;
|
|
16634
|
-
(0,
|
|
16831
|
+
(0, import_react9.useEffect)(() => {
|
|
16635
16832
|
if (!lastFeedback) return;
|
|
16636
16833
|
const timer = setTimeout(() => {
|
|
16637
16834
|
setLastFeedback("");
|
|
16638
16835
|
}, 4500);
|
|
16639
16836
|
return () => clearTimeout(timer);
|
|
16640
16837
|
}, [lastFeedback]);
|
|
16641
|
-
(0,
|
|
16838
|
+
(0, import_react9.useEffect)(() => {
|
|
16642
16839
|
if (!livePickTargetId || typeof window === "undefined") return;
|
|
16643
16840
|
const onKeyDown = (e) => {
|
|
16644
16841
|
if (e.key === "Escape") {
|
|
@@ -16649,7 +16846,7 @@ var CoordPickerPanel = ({
|
|
|
16649
16846
|
window.addEventListener("keydown", onKeyDown, true);
|
|
16650
16847
|
return () => window.removeEventListener("keydown", onKeyDown, true);
|
|
16651
16848
|
}, [livePickTargetId]);
|
|
16652
|
-
const captureScreenshot = (0,
|
|
16849
|
+
const captureScreenshot = (0, import_react9.useCallback)(async () => {
|
|
16653
16850
|
const fn = coordinator.bridge.captureGameDataUrl;
|
|
16654
16851
|
if (typeof fn !== "function") {
|
|
16655
16852
|
setCaptureError("\u5F53\u524D\u8FD0\u884C\u73AF\u5883\u4E0D\u652F\u6301\u76F4\u63A5\u622A\u53D6\u6E38\u620F\u753B\u9762\uFF08\u53EF\u5728 poi \u5185\u6B63\u5E38\u4F7F\u7528\uFF09");
|
|
@@ -16670,12 +16867,12 @@ var CoordPickerPanel = ({
|
|
|
16670
16867
|
setCapturing(false);
|
|
16671
16868
|
}
|
|
16672
16869
|
}, [coordinator.bridge]);
|
|
16673
|
-
(0,
|
|
16870
|
+
(0, import_react9.useEffect)(() => {
|
|
16674
16871
|
if (screenshotOpen) {
|
|
16675
16872
|
void captureScreenshot();
|
|
16676
16873
|
}
|
|
16677
16874
|
}, [screenshotOpen, captureScreenshot]);
|
|
16678
|
-
(0,
|
|
16875
|
+
(0, import_react9.useEffect)(() => {
|
|
16679
16876
|
const syncFn = coordinator.bridge.syncCoordOverlay;
|
|
16680
16877
|
if (typeof syncFn !== "function") return;
|
|
16681
16878
|
const active = gameHudVisible || Boolean(livePickTargetId);
|
|
@@ -16701,7 +16898,7 @@ var CoordPickerPanel = ({
|
|
|
16701
16898
|
cancelled = true;
|
|
16702
16899
|
};
|
|
16703
16900
|
}, [coordinator.bridge, gameHudVisible, livePickTargetId, activePickToken, livePickTarget?.label, markersKey]);
|
|
16704
|
-
(0,
|
|
16901
|
+
(0, import_react9.useEffect)(() => {
|
|
16705
16902
|
const pollFn = coordinator.bridge.pollCoordOverlay;
|
|
16706
16903
|
if (typeof pollFn !== "function") return;
|
|
16707
16904
|
const active = gameHudVisible || Boolean(livePickTargetId);
|
|
@@ -16743,7 +16940,7 @@ var CoordPickerPanel = ({
|
|
|
16743
16940
|
clearInterval(timer);
|
|
16744
16941
|
};
|
|
16745
16942
|
}, [coordinator.bridge, gameHudVisible, livePickTargetId]);
|
|
16746
|
-
(0,
|
|
16943
|
+
(0, import_react9.useEffect)(() => {
|
|
16747
16944
|
return () => {
|
|
16748
16945
|
const syncFn = coordinator.bridge.syncCoordOverlay;
|
|
16749
16946
|
if (typeof syncFn === "function") {
|
|
@@ -16769,7 +16966,7 @@ var CoordPickerPanel = ({
|
|
|
16769
16966
|
if (!screenshotOpen && !gameHudVisible && !livePickTargetId && !lastFeedback && !captureError) {
|
|
16770
16967
|
return null;
|
|
16771
16968
|
}
|
|
16772
|
-
return /* @__PURE__ */
|
|
16969
|
+
return /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-coord-studio" }, /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-row", style: { gap: 6 } }, /* @__PURE__ */ import_react9.default.createElement("strong", { style: { color: "#7dd3fc" } }, "\u{1F3AF} \u53EF\u89C6\u5316\u5750\u6807\u62FE\u53D6\u5668 (1200\xD7720)"), liveGameHover && /* @__PURE__ */ import_react9.default.createElement("span", { className: "kca-badge kca-badge-run" }, "\u6E38\u620F\u5B9E\u65F6\u9F20\u6807: X ", liveGameHover.x, ", Y ", liveGameHover.y), livePickTarget && /* @__PURE__ */ import_react9.default.createElement("span", { className: "kca-badge kca-badge-warn" }, "\u53D6\u70B9\u4E2D [", livePickTarget.label, "] \u2014 \u5DE6\u952E\u70B9\u6E38\u620F\u753B\u9762\u586B\u5165\uFF08\u53F3\u952E / Esc / \u53D6\u6D88\uFF09"), !livePickTarget && lastFeedback && /* @__PURE__ */ import_react9.default.createElement("span", { className: "kca-badge kca-badge-ok" }, lastFeedback)), /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-row", style: { gap: 5 } }, livePickTarget && /* @__PURE__ */ import_react9.default.createElement("button", { className: "kca-btn kca-btn-sm kca-btn-danger", onClick: onCancelLivePick }, "\u53D6\u6D88\u53D6\u70B9"), /* @__PURE__ */ import_react9.default.createElement(
|
|
16773
16970
|
"button",
|
|
16774
16971
|
{
|
|
16775
16972
|
className: `kca-btn kca-btn-sm ${gameHudVisible ? "kca-btn-primary" : ""}`,
|
|
@@ -16777,7 +16974,7 @@ var CoordPickerPanel = ({
|
|
|
16777
16974
|
title: "\u5728\u8230\u5A18\u6E38\u620F\u753B\u9762\u4E0A\u5B9E\u65F6\u663E\u793A\u9F20\u6807\u5750\u6807\u4E0E\u5168\u90E8\u5DF2\u914D\u7F6E\u7684\u5206\u6B67/\u9646\u822A/\u8DEF\u5F84\u6807\u8BB0\uFF08\u9F20\u6807\u7A7F\u900F\uFF0C\u4E0D\u5F71\u54CD\u6E38\u73A9\uFF09"
|
|
16778
16975
|
},
|
|
16779
16976
|
gameHudVisible ? "\u{1F441}\uFE0F \u5173\u95ED\u6E38\u620F\u5750\u6807\u663E\u793A" : "\u{1F441}\uFE0F \u6E38\u620F\u53E0\u52A0\u5B9E\u65F6\u5750\u6807"
|
|
16780
|
-
), screenshotOpen && /* @__PURE__ */
|
|
16977
|
+
), screenshotOpen && /* @__PURE__ */ import_react9.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: onCloseScreenshot }, "\u6536\u8D77\u622A\u56FE\u9762\u677F"), !screenshotOpen && !gameHudVisible && !livePickTargetId && /* @__PURE__ */ import_react9.default.createElement(
|
|
16781
16978
|
"button",
|
|
16782
16979
|
{
|
|
16783
16980
|
className: "kca-btn kca-btn-sm",
|
|
@@ -16788,10 +16985,10 @@ var CoordPickerPanel = ({
|
|
|
16788
16985
|
}
|
|
16789
16986
|
},
|
|
16790
16987
|
"\u2715 \u5173\u95ED"
|
|
16791
|
-
))), !screenshotOpen && captureError && /* @__PURE__ */
|
|
16988
|
+
))), !screenshotOpen && captureError && /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-import-banner kca-import-banner-err" }, captureError), screenshotOpen && /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between", gap: 6 } }, /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-chip-list" }, /* @__PURE__ */ import_react9.default.createElement("span", { className: "kca-muted" }, "\u70B9\u51FB\u76EE\u6807\uFF1A"), targets.map((t) => {
|
|
16792
16989
|
const active = selectedTarget?.id === t.id;
|
|
16793
16990
|
const configured = t.x > 0 || t.y > 0;
|
|
16794
|
-
return /* @__PURE__ */
|
|
16991
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
|
16795
16992
|
"button",
|
|
16796
16993
|
{
|
|
16797
16994
|
key: t.id,
|
|
@@ -16802,7 +16999,7 @@ var CoordPickerPanel = ({
|
|
|
16802
16999
|
t.label,
|
|
16803
17000
|
configured ? ` (${t.x},${t.y})` : ""
|
|
16804
17001
|
);
|
|
16805
|
-
}))), /* @__PURE__ */
|
|
17002
|
+
}))), /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-row", style: { gap: 6 } }, /* @__PURE__ */ import_react9.default.createElement(
|
|
16806
17003
|
"button",
|
|
16807
17004
|
{
|
|
16808
17005
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
@@ -16810,7 +17007,7 @@ var CoordPickerPanel = ({
|
|
|
16810
17007
|
disabled: capturing
|
|
16811
17008
|
},
|
|
16812
17009
|
capturing ? "\u622A\u56FE\u4E2D..." : "\u{1F504} \u5237\u65B0\u6E38\u620F\u622A\u56FE"
|
|
16813
|
-
), selectedTarget && /* @__PURE__ */
|
|
17010
|
+
), selectedTarget && /* @__PURE__ */ import_react9.default.createElement(
|
|
16814
17011
|
"button",
|
|
16815
17012
|
{
|
|
16816
17013
|
className: "kca-btn kca-btn-sm",
|
|
@@ -16820,7 +17017,7 @@ var CoordPickerPanel = ({
|
|
|
16820
17017
|
"\u{1F3AF} \u76F4\u63A5\u5728\u6E38\u620F\u753B\u9762\u70B9\u9009 [",
|
|
16821
17018
|
selectedTarget.label,
|
|
16822
17019
|
"]"
|
|
16823
|
-
), selectedTarget && onClearCoord && (selectedTarget.x > 0 || selectedTarget.y > 0) && /* @__PURE__ */
|
|
17020
|
+
), selectedTarget && onClearCoord && (selectedTarget.x > 0 || selectedTarget.y > 0) && /* @__PURE__ */ import_react9.default.createElement(
|
|
16824
17021
|
"button",
|
|
16825
17022
|
{
|
|
16826
17023
|
className: "kca-btn kca-btn-sm",
|
|
@@ -16830,14 +17027,14 @@ var CoordPickerPanel = ({
|
|
|
16830
17027
|
}
|
|
16831
17028
|
},
|
|
16832
17029
|
"\u6E05\u7A7A\u5F53\u524D\u70B9\u4F4D"
|
|
16833
|
-
), /* @__PURE__ */
|
|
17030
|
+
), /* @__PURE__ */ import_react9.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react9.default.createElement(
|
|
16834
17031
|
"input",
|
|
16835
17032
|
{
|
|
16836
17033
|
type: "checkbox",
|
|
16837
17034
|
checked: autoAdvance,
|
|
16838
17035
|
onChange: (e) => setAutoAdvance(e.target.checked)
|
|
16839
17036
|
}
|
|
16840
|
-
), "\u9009\u5B8C\u81EA\u52A8\u8DF3\u4E0B\u4E00\u69FD\u4F4D")), /* @__PURE__ */
|
|
17037
|
+
), "\u9009\u5B8C\u81EA\u52A8\u8DF3\u4E0B\u4E00\u69FD\u4F4D")), /* @__PURE__ */ import_react9.default.createElement("span", { className: "kca-muted" }, canvasHover ? `\u622A\u56FE\u6307\u9488\uFF1AX ${canvasHover.x}, Y ${canvasHover.y}\uFF08\u5DE6\u952E\u70B9\u51FB\u5373\u586B\u5165\uFF09` : "\u5C06\u9F20\u6807\u79FB\u81F3\u4E0B\u65B9\u753B\u9762\u9884\u89C8\u5750\u6807\uFF0C\u5DE6\u952E\u76F4\u63A5\u586B\u5165")), captureError && /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-import-banner kca-import-banner-err" }, captureError), /* @__PURE__ */ import_react9.default.createElement(
|
|
16841
17038
|
"div",
|
|
16842
17039
|
{
|
|
16843
17040
|
ref: canvasBoxRef,
|
|
@@ -16846,20 +17043,20 @@ var CoordPickerPanel = ({
|
|
|
16846
17043
|
onMouseLeave: () => setCanvasHover(null),
|
|
16847
17044
|
onClick: handleCanvasClick
|
|
16848
17045
|
},
|
|
16849
|
-
screenshotUrl ? /* @__PURE__ */
|
|
16850
|
-
canvasHover && /* @__PURE__ */
|
|
17046
|
+
screenshotUrl ? /* @__PURE__ */ import_react9.default.createElement("img", { src: screenshotUrl, alt: "KanColle Game Frame", draggable: false }) : /* @__PURE__ */ import_react9.default.createElement("div", { className: "kca-coord-placeholder" }, /* @__PURE__ */ import_react9.default.createElement("span", null, "1200 \xD7 720 \u5750\u6807\u7F51\u683C\u9884\u89C8\uFF08\u70B9\u51FB\u300C\u{1F504} \u5237\u65B0\u6E38\u620F\u622A\u56FE\u300D\u8F7D\u5165\u5F53\u524D\u6D77\u57DF\u753B\u9762\uFF0C\u6216\u76F4\u63A5\u70B9\u51FB\u6B64\u5904\u843D\u70B9\uFF09")),
|
|
17047
|
+
canvasHover && /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement(
|
|
16851
17048
|
"div",
|
|
16852
17049
|
{
|
|
16853
17050
|
className: "kca-coord-cross-x",
|
|
16854
17051
|
style: { left: `${canvasHover.x / CANVAS_WIDTH * 100}%` }
|
|
16855
17052
|
}
|
|
16856
|
-
), /* @__PURE__ */
|
|
17053
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
16857
17054
|
"div",
|
|
16858
17055
|
{
|
|
16859
17056
|
className: "kca-coord-cross-y",
|
|
16860
17057
|
style: { top: `${canvasHover.y / CANVAS_HEIGHT * 100}%` }
|
|
16861
17058
|
}
|
|
16862
|
-
), /* @__PURE__ */
|
|
17059
|
+
), /* @__PURE__ */ import_react9.default.createElement(
|
|
16863
17060
|
"div",
|
|
16864
17061
|
{
|
|
16865
17062
|
className: "kca-coord-hover-tag",
|
|
@@ -16874,7 +17071,7 @@ var CoordPickerPanel = ({
|
|
|
16874
17071
|
)),
|
|
16875
17072
|
allMarkers.map((m) => {
|
|
16876
17073
|
const isSelected = selectedTarget?.id === m.id;
|
|
16877
|
-
return /* @__PURE__ */
|
|
17074
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
|
16878
17075
|
"div",
|
|
16879
17076
|
{
|
|
16880
17077
|
key: m.id,
|
|
@@ -16884,13 +17081,13 @@ var CoordPickerPanel = ({
|
|
|
16884
17081
|
top: `${m.y / CANVAS_HEIGHT * 100}%`
|
|
16885
17082
|
}
|
|
16886
17083
|
},
|
|
16887
|
-
/* @__PURE__ */
|
|
17084
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
|
16888
17085
|
"span",
|
|
16889
17086
|
{
|
|
16890
17087
|
className: "kca-coord-pin-dot",
|
|
16891
17088
|
style: { borderColor: m.color || "#38bdf8" }
|
|
16892
17089
|
},
|
|
16893
|
-
/* @__PURE__ */
|
|
17090
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
|
16894
17091
|
"span",
|
|
16895
17092
|
{
|
|
16896
17093
|
className: "kca-coord-pin-core",
|
|
@@ -16898,7 +17095,7 @@ var CoordPickerPanel = ({
|
|
|
16898
17095
|
}
|
|
16899
17096
|
)
|
|
16900
17097
|
),
|
|
16901
|
-
/* @__PURE__ */
|
|
17098
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
|
16902
17099
|
"span",
|
|
16903
17100
|
{
|
|
16904
17101
|
className: "kca-coord-pin-label",
|
|
@@ -16917,7 +17114,7 @@ var CoordPickerPanel = ({
|
|
|
16917
17114
|
};
|
|
16918
17115
|
|
|
16919
17116
|
// src/ui/components/ShipRotationPanel.tsx
|
|
16920
|
-
var
|
|
17117
|
+
var import_react10 = __toESM(require("react"));
|
|
16921
17118
|
var DAMAGE_OPTIONS = [
|
|
16922
17119
|
{ value: "scratch", label: "\u64E6\u4F24\u5373\u6362" },
|
|
16923
17120
|
{ value: "light", label: "\u5C0F\u7834\u5373\u6362" },
|
|
@@ -16931,25 +17128,36 @@ function condClass2(cond) {
|
|
|
16931
17128
|
if (cond >= 30) return "kca-cond-tired";
|
|
16932
17129
|
return "kca-cond-red";
|
|
16933
17130
|
}
|
|
16934
|
-
var ShipRotationPanel = ({
|
|
17131
|
+
var ShipRotationPanel = ({
|
|
17132
|
+
profile,
|
|
17133
|
+
gameState,
|
|
17134
|
+
orgPresets,
|
|
17135
|
+
activeOrgPresetId,
|
|
17136
|
+
updateProfile
|
|
17137
|
+
}) => {
|
|
16935
17138
|
const isCombined = profile.combineType !== 0 || gameState.combinedType > 0;
|
|
16936
17139
|
const hasEscortCandidates = profile.candidateShips.slice(6, 12).some((arr) => arr && arr.length > 0);
|
|
16937
|
-
const [showEscortSlots, setShowEscortSlots] = (0,
|
|
16938
|
-
const [openPickerSlot, setOpenPickerSlot] = (0,
|
|
16939
|
-
const [searchText, setSearchText] = (0,
|
|
16940
|
-
const [stypeFilter, setStypeFilter] = (0,
|
|
16941
|
-
const [lockedOnly, setLockedOnly] = (0,
|
|
16942
|
-
const [openTrigger, setOpenTrigger] = (0,
|
|
17140
|
+
const [showEscortSlots, setShowEscortSlots] = (0, import_react10.useState)(isCombined || hasEscortCandidates);
|
|
17141
|
+
const [openPickerSlot, setOpenPickerSlot] = (0, import_react10.useState)(null);
|
|
17142
|
+
const [searchText, setSearchText] = (0, import_react10.useState)("");
|
|
17143
|
+
const [stypeFilter, setStypeFilter] = (0, import_react10.useState)("all");
|
|
17144
|
+
const [lockedOnly, setLockedOnly] = (0, import_react10.useState)(false);
|
|
17145
|
+
const [openTrigger, setOpenTrigger] = (0, import_react10.useState)(0);
|
|
17146
|
+
const [selectedOrgPresetId, setSelectedOrgPresetId] = (0, import_react10.useState)(
|
|
17147
|
+
() => activeOrgPresetId || orgPresets[0]?.id || ""
|
|
17148
|
+
);
|
|
17149
|
+
const [presetTargetFleet, setPresetTargetFleet] = (0, import_react10.useState)("main");
|
|
17150
|
+
const [presetFeedback, setPresetFeedback] = (0, import_react10.useState)("");
|
|
16943
17151
|
const mainFleet = gameState.fleets[profile.fleet];
|
|
16944
17152
|
const escortFleet = gameState.fleets[2];
|
|
16945
17153
|
const slotCount = showEscortSlots || isCombined ? 12 : 6;
|
|
16946
|
-
const allShips = (0,
|
|
17154
|
+
const allShips = (0, import_react10.useMemo)(() => {
|
|
16947
17155
|
return Object.values(gameState.ships).sort((a, b) => {
|
|
16948
17156
|
if (b.level !== a.level) return b.level - a.level;
|
|
16949
17157
|
return a.id - b.id;
|
|
16950
17158
|
});
|
|
16951
17159
|
}, [gameState.ships]);
|
|
16952
|
-
const stypeOptions = (0,
|
|
17160
|
+
const stypeOptions = (0, import_react10.useMemo)(() => {
|
|
16953
17161
|
const map = /* @__PURE__ */ new Map();
|
|
16954
17162
|
for (const s of allShips) {
|
|
16955
17163
|
if (!map.has(s.stype)) {
|
|
@@ -16958,7 +17166,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
16958
17166
|
}
|
|
16959
17167
|
return Array.from(map.entries()).sort((a, b) => a[0] - b[0]);
|
|
16960
17168
|
}, [allShips, gameState.master.stypes]);
|
|
16961
|
-
const filteredPickerShips = (0,
|
|
17169
|
+
const filteredPickerShips = (0, import_react10.useMemo)(() => {
|
|
16962
17170
|
const q = searchText.trim().toLowerCase();
|
|
16963
17171
|
return allShips.filter((s) => {
|
|
16964
17172
|
if (lockedOnly && !s.locked) return false;
|
|
@@ -16991,6 +17199,44 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
16991
17199
|
const handleClearAllCandidates = () => {
|
|
16992
17200
|
updateProfile((p) => {
|
|
16993
17201
|
p.candidateShips = Array.from({ length: 12 }, () => []);
|
|
17202
|
+
p.rotationOrgPresetIds = [];
|
|
17203
|
+
});
|
|
17204
|
+
setPresetFeedback("");
|
|
17205
|
+
};
|
|
17206
|
+
const resolvedSelectedPresetId = orgPresets.some((p) => p.id === selectedOrgPresetId) ? selectedOrgPresetId : activeOrgPresetId && orgPresets.some((p) => p.id === activeOrgPresetId) ? activeOrgPresetId : orgPresets[0]?.id ?? "";
|
|
17207
|
+
const handleImportOrgPreset = (mode) => {
|
|
17208
|
+
const preset = orgPresets.find((p) => p.id === resolvedSelectedPresetId);
|
|
17209
|
+
if (!preset) return;
|
|
17210
|
+
const targetOffset = slotCount === 12 && presetTargetFleet === "escort" ? 6 : 0;
|
|
17211
|
+
const validShipIds = gameState.loaded && Object.keys(gameState.ships).length > 0 ? new Set(Object.keys(gameState.ships).map(Number)) : void 0;
|
|
17212
|
+
const result = applyOrgPresetToRotationCandidates(profile.candidateShips, preset, {
|
|
17213
|
+
mode,
|
|
17214
|
+
targetOffset,
|
|
17215
|
+
validShipIds
|
|
17216
|
+
});
|
|
17217
|
+
updateProfile((p) => {
|
|
17218
|
+
p.candidateShips = result.nextCandidates;
|
|
17219
|
+
const prevLinked = Array.isArray(p.rotationOrgPresetIds) ? [...p.rotationOrgPresetIds] : [];
|
|
17220
|
+
if (mode === "replace" && targetOffset === 0 && !isCombined) {
|
|
17221
|
+
p.rotationOrgPresetIds = [preset.id];
|
|
17222
|
+
} else if (!prevLinked.includes(preset.id)) {
|
|
17223
|
+
p.rotationOrgPresetIds = [...prevLinked, preset.id];
|
|
17224
|
+
}
|
|
17225
|
+
});
|
|
17226
|
+
if (targetOffset === 6) setShowEscortSlots(true);
|
|
17227
|
+
const areaLabel = targetOffset === 6 ? "\u4E8C\u961F 7~12 \u53F7\u4F4D" : "\u4E3B\u961F 1~6 \u53F7\u4F4D";
|
|
17228
|
+
const actionLabel = mode === "append" ? "\u8FFD\u52A0" : "\u8986\u76D6\u5199\u5165";
|
|
17229
|
+
const extra = [];
|
|
17230
|
+
if (result.skippedExisting > 0) extra.push(`\u8DF3\u8FC7\u91CD\u590D ${result.skippedExisting} \u8258`);
|
|
17231
|
+
if (result.skippedMissing > 0) extra.push(`\u8DF3\u8FC7\u5DF2\u4E0D\u5B58\u5728 ${result.skippedMissing} \u8258`);
|
|
17232
|
+
setPresetFeedback(
|
|
17233
|
+
`\u5DF2\u4ECE\u300C${preset.name}\u300D${actionLabel} ${result.addedCount} \u8258\u81F3${areaLabel}${extra.length ? `\uFF08${extra.join("\uFF0C")}\uFF09` : ""}`
|
|
17234
|
+
);
|
|
17235
|
+
};
|
|
17236
|
+
const linkedOrgPresets = (profile.rotationOrgPresetIds ?? []).map((id) => orgPresets.find((p) => p.id === id)).filter((p) => Boolean(p));
|
|
17237
|
+
const unlinkOrgPreset = (presetId) => {
|
|
17238
|
+
updateProfile((p) => {
|
|
17239
|
+
p.rotationOrgPresetIds = (p.rotationOrgPresetIds ?? []).filter((id) => id !== presetId);
|
|
16994
17240
|
});
|
|
16995
17241
|
};
|
|
16996
17242
|
const toggleCandidateShip = (slot, shipId) => {
|
|
@@ -17019,11 +17265,11 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17019
17265
|
return sid ? gameState.ships[sid] : void 0;
|
|
17020
17266
|
};
|
|
17021
17267
|
const totalConfiguredCandidates = profile.candidateShips.slice(0, 12).reduce((acc, list) => acc + (list?.length ?? 0), 0);
|
|
17022
|
-
const allowedFleetIds = (0,
|
|
17268
|
+
const allowedFleetIds = (0, import_react10.useMemo)(
|
|
17023
17269
|
() => new Set(isCombined && profile.fleet === 1 ? [1, 2] : [profile.fleet]),
|
|
17024
17270
|
[isCombined, profile.fleet]
|
|
17025
17271
|
);
|
|
17026
|
-
const liveRotationPlan = (0,
|
|
17272
|
+
const liveRotationPlan = (0, import_react10.useMemo)(() => {
|
|
17027
17273
|
if (!gameState.loaded) return null;
|
|
17028
17274
|
return planSortieShipRotation(gameState, profile, isCombined && profile.fleet === 1);
|
|
17029
17275
|
}, [gameState, profile, isCombined]);
|
|
@@ -17032,16 +17278,16 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17032
17278
|
p.condThresholds = Array.from({ length: 12 }, (_, idx) => idx < slotCount ? val : p.condThresholds[idx] ?? 0);
|
|
17033
17279
|
});
|
|
17034
17280
|
};
|
|
17035
|
-
const rotationBadge = profile.autoChangeShip && liveRotationPlan ? liveRotationPlan.status === "ok_no_change" ? /* @__PURE__ */
|
|
17036
|
-
return /* @__PURE__ */
|
|
17281
|
+
const rotationBadge = profile.autoChangeShip && liveRotationPlan ? liveRotationPlan.status === "ok_no_change" ? /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u2713 \u5C31\u7EEA") : liveRotationPlan.status === "rotate" ? /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-run" }, "\u21BB \u9700\u8F6E\u6362") : liveRotationPlan.status === "wait_cond" ? /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-warn" }, "\u23F3 \u7B49\u75B2\u52B3") : /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-err" }, "\u26A0 \u963B\u585E") : !profile.autoChangeShip ? /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge" }, "\u672A\u542F\u7528") : null;
|
|
17282
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
|
17037
17283
|
CollapsibleCard,
|
|
17038
17284
|
{
|
|
17039
17285
|
storageKey: "sortie.rotation",
|
|
17040
17286
|
title: "\u81EA\u52A8\u8F6E\u6362\u914D\u7F6E (ChangeShip)",
|
|
17041
17287
|
defaultOpen: profile.autoChangeShip,
|
|
17042
17288
|
forceOpenTrigger: openTrigger,
|
|
17043
|
-
summary: /* @__PURE__ */
|
|
17044
|
-
headerRight: /* @__PURE__ */
|
|
17289
|
+
summary: /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement("span", null, "\u5DF2\u914D ", totalConfiguredCandidates, " \u8239\u6B21"), rotationBadge),
|
|
17290
|
+
headerRight: /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react10.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react10.default.createElement(
|
|
17045
17291
|
"input",
|
|
17046
17292
|
{
|
|
17047
17293
|
type: "checkbox",
|
|
@@ -17054,7 +17300,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17054
17300
|
if (checked) setOpenTrigger(nextFoldTrigger());
|
|
17055
17301
|
}
|
|
17056
17302
|
}
|
|
17057
|
-
), /* @__PURE__ */
|
|
17303
|
+
), /* @__PURE__ */ import_react10.default.createElement("strong", null, "\u542F\u7528\u81EA\u52A8\u8F6E\u6362")), /* @__PURE__ */ import_react10.default.createElement(
|
|
17058
17304
|
"button",
|
|
17059
17305
|
{
|
|
17060
17306
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
@@ -17064,7 +17310,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17064
17310
|
"+ \u8BFB\u5165\u5F53\u524D\u8230\u961F"
|
|
17065
17311
|
))
|
|
17066
17312
|
},
|
|
17067
|
-
/* @__PURE__ */
|
|
17313
|
+
/* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react10.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react10.default.createElement(
|
|
17068
17314
|
"input",
|
|
17069
17315
|
{
|
|
17070
17316
|
type: "checkbox",
|
|
@@ -17073,7 +17319,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17073
17319
|
p.autoFlagshipRotation = e.target.checked;
|
|
17074
17320
|
})
|
|
17075
17321
|
}
|
|
17076
|
-
), "\u667A\u80FD\u65D7\u8230\u8F6E\u6362 (\u50DA\u8230\u4E0E\u65D7\u8230\u4E92\u6362\u5237\u7ECF\u9A8C/\u63A7\u75B2\u52B3)")), /* @__PURE__ */
|
|
17322
|
+
), "\u667A\u80FD\u65D7\u8230\u8F6E\u6362 (\u50DA\u8230\u4E0E\u65D7\u8230\u4E92\u6362\u5237\u7ECF\u9A8C/\u63A7\u75B2\u52B3)")), /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react10.default.createElement(
|
|
17077
17323
|
"button",
|
|
17078
17324
|
{
|
|
17079
17325
|
className: "kca-btn kca-btn-sm",
|
|
@@ -17081,7 +17327,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17081
17327
|
title: "\u5C06\u5F53\u524D\u663E\u793A\u69FD\u4F4D\u7684\u6700\u4F4E\u58EB\u6C14\u5168\u90E8\u8BBE\u4E3A 0\uFF08\u4E0D\u9650\u75B2\u52B3\uFF09"
|
|
17082
17328
|
},
|
|
17083
17329
|
"\u58EB\u6C14\u5168\u8BBE 0"
|
|
17084
|
-
), /* @__PURE__ */
|
|
17330
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
17085
17331
|
"button",
|
|
17086
17332
|
{
|
|
17087
17333
|
className: "kca-btn kca-btn-sm",
|
|
@@ -17089,7 +17335,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17089
17335
|
title: "\u5C06\u5F53\u524D\u663E\u793A\u69FD\u4F4D\u7684\u6700\u4F4E\u58EB\u6C14\u5168\u90E8\u8BBE\u4E3A 40"
|
|
17090
17336
|
},
|
|
17091
17337
|
"\u58EB\u6C14\u5168\u8BBE 40"
|
|
17092
|
-
), /* @__PURE__ */
|
|
17338
|
+
), /* @__PURE__ */ import_react10.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: handleClearAllCandidates }, "\u6E05\u7A7A\u5168\u90E8\u5019\u9009"), /* @__PURE__ */ import_react10.default.createElement(
|
|
17093
17339
|
"button",
|
|
17094
17340
|
{
|
|
17095
17341
|
className: "kca-btn kca-btn-sm",
|
|
@@ -17097,8 +17343,68 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17097
17343
|
},
|
|
17098
17344
|
slotCount === 12 ? "\u6536\u8D77\u4E8C\u961F (7~12)" : "\u5C55\u5F00\u4E8C\u961F (7~12)"
|
|
17099
17345
|
))),
|
|
17100
|
-
/* @__PURE__ */
|
|
17101
|
-
|
|
17346
|
+
/* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-muted" }, "Bellman-Ford \u65E0\u91CD\u590D\u6700\u4F18\u5339\u914D \xB7 \u5019\u9009\u6C60\u6392\u5E8F\u8D8A\u9760\u524D\u4F18\u5148\u7EA7\u8D8A\u9AD8\uFF1B\u7559\u7A7A\u69FD\u4F4D\u4EE3\u8868\u7A7A\u4F4D\uFF08\u51FA\u51FB\u524D\u81EA\u52A8\u79FB\u9664\u591A\u4F59\u4F34\u968F\u8230\uFF09"),
|
|
17347
|
+
/* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-sub-box", style: { gap: 6 } }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row", style: { gap: 6 } }, /* @__PURE__ */ import_react10.default.createElement("strong", { style: { fontSize: 12, color: "#93c5fd" } }, "\u4ECE\u81EA\u52A8\u7F16\u6210\u9884\u8BBE\u8F7D\u5165\uFF1A"), orgPresets.length > 0 ? /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, /* @__PURE__ */ import_react10.default.createElement(
|
|
17348
|
+
"select",
|
|
17349
|
+
{
|
|
17350
|
+
className: "kca-select",
|
|
17351
|
+
style: { maxWidth: 260 },
|
|
17352
|
+
value: resolvedSelectedPresetId,
|
|
17353
|
+
onChange: (e) => setSelectedOrgPresetId(e.target.value)
|
|
17354
|
+
},
|
|
17355
|
+
orgPresets.map((p) => /* @__PURE__ */ import_react10.default.createElement("option", { key: p.id, value: p.id }, p.name, " (", p.ships.length, "\u8239: ", p.ships.slice(0, 3).map((s) => s.name).join("/"), p.ships.length > 3 ? "\u2026" : "", ")"))
|
|
17356
|
+
), slotCount === 12 && /* @__PURE__ */ import_react10.default.createElement(
|
|
17357
|
+
"select",
|
|
17358
|
+
{
|
|
17359
|
+
className: "kca-select",
|
|
17360
|
+
value: presetTargetFleet,
|
|
17361
|
+
onChange: (e) => setPresetTargetFleet(e.target.value)
|
|
17362
|
+
},
|
|
17363
|
+
/* @__PURE__ */ import_react10.default.createElement("option", { value: "main" }, "\u4E3B\u961F (1~6\u53F7\u4F4D)"),
|
|
17364
|
+
/* @__PURE__ */ import_react10.default.createElement("option", { value: "escort" }, "\u4E8C\u961F (7~12\u53F7\u4F4D)")
|
|
17365
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
17366
|
+
"button",
|
|
17367
|
+
{
|
|
17368
|
+
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
17369
|
+
onClick: () => handleImportOrgPreset("append"),
|
|
17370
|
+
title: "\u628A\u6240\u9009\u81EA\u52A8\u7F16\u6210\u9884\u8BBE\u7684\u8230\u5A18\u6309\u69FD\u4F4D\u8FFD\u52A0\u5230\u73B0\u6709\u5019\u9009\u6C60\uFF08\u53EF\u8FDE\u7EED\u8FFD\u52A0\u591A\u5957\u7F16\u6210\u4F5C\u4E3A\u8F6E\u6362\u6C60\uFF0C\u5E76\u4FDD\u7559\u81EA\u5B9A\u4E49\u7F16\u8F91\uFF09"
|
|
17371
|
+
},
|
|
17372
|
+
"+ \u8FFD\u52A0\u5230\u5019\u9009\u6C60"
|
|
17373
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
17374
|
+
"button",
|
|
17375
|
+
{
|
|
17376
|
+
className: "kca-btn kca-btn-sm",
|
|
17377
|
+
onClick: () => handleImportOrgPreset("replace"),
|
|
17378
|
+
title: "\u7528\u6240\u9009\u81EA\u52A8\u7F16\u6210\u9884\u8BBE\u8986\u76D6\u5BF9\u5E94 1~6\uFF08\u6216 7~12\uFF09\u53F7\u4F4D\u5019\u9009\u6C60\uFF08\u4E4B\u540E\u4ECD\u53EF\u81EA\u7531\u624B\u52A8\u589E\u5220\uFF09"
|
|
17379
|
+
},
|
|
17380
|
+
"\u21C4 \u8986\u76D6\u5019\u9009\u6C60"
|
|
17381
|
+
)) : /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "\u6682\u65E0\u81EA\u52A8\u7F16\u6210\u9884\u8BBE\uFF08\u53EF\u5148\u5728\u300C\u7F16\u6210 / \u6F14\u4E60 / \u4EFB\u52A1\u300D\u9875\u7B7E\u70B9\u51FB\u300C+ \u8BB0\u5F55\u5F53\u524D\u8230\u961F\u300D\uFF09")), presetFeedback && /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted", style: { color: "#86efac" } }, "\u2713 ", presetFeedback)), linkedOrgPresets.length > 0 && /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-chip-list" }, /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted", style: { fontSize: 11 } }, "\u5DF2\u5173\u8054\u9884\u8BBE\uFF1A"), linkedOrgPresets.map((lp) => /* @__PURE__ */ import_react10.default.createElement("span", { key: lp.id, className: "kca-chip" }, lp.name, /* @__PURE__ */ import_react10.default.createElement(
|
|
17382
|
+
"button",
|
|
17383
|
+
{
|
|
17384
|
+
className: "kca-chip-btn",
|
|
17385
|
+
title: "\u79FB\u9664\u9884\u8BBE\u5173\u8054\uFF08\u4E0D\u4F1A\u5220\u9664\u5019\u9009\u6C60\u91CC\u7684\u8230\u5A18\uFF09",
|
|
17386
|
+
onClick: () => unlinkOrgPreset(lp.id)
|
|
17387
|
+
},
|
|
17388
|
+
"\xD7"
|
|
17389
|
+
)))), /* @__PURE__ */ import_react10.default.createElement(
|
|
17390
|
+
"label",
|
|
17391
|
+
{
|
|
17392
|
+
className: "kca-switch",
|
|
17393
|
+
title: "\u5F00\u542F\u540E\uFF1A\u8F6E\u6362\u6362\u8239\u5B8C\u6210\u65F6\uFF0C\u82E5\u67D0\u8230\u5A18\u5C5E\u4E8E\u4E0A\u65B9\u5DF2\u5173\u8054\u7684\u81EA\u52A8\u7F16\u6210\u9884\u8BBE\uFF0C\u4F1A\u81EA\u52A8\u6309\u8BE5\u9884\u8BBE\u8BB0\u5F55\u6838\u5BF9\u5E76\u540C\u6B65\u88C5\u5907\uFF08\u81EA\u5B9A\u4E49\u6DFB\u52A0\u7684\u975E\u9884\u8BBE\u8230\u5A18\u4FDD\u6301\u539F\u88C5\u5907\u4E0D\u52A8\uFF09"
|
|
17394
|
+
},
|
|
17395
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
17396
|
+
"input",
|
|
17397
|
+
{
|
|
17398
|
+
type: "checkbox",
|
|
17399
|
+
checked: Boolean(profile.rotationSyncEquipFromPresets),
|
|
17400
|
+
onChange: (e) => updateProfile((p) => {
|
|
17401
|
+
p.rotationSyncEquipFromPresets = e.target.checked;
|
|
17402
|
+
})
|
|
17403
|
+
}
|
|
17404
|
+
),
|
|
17405
|
+
/* @__PURE__ */ import_react10.default.createElement("span", null, "\u8F6E\u6362\u540E\u6309\u5173\u8054\u9884\u8BBE\u81EA\u52A8\u540C\u6B65\u88C5\u5907")
|
|
17406
|
+
))),
|
|
17407
|
+
profile.autoChangeShip && liveRotationPlan && /* @__PURE__ */ import_react10.default.createElement(
|
|
17102
17408
|
"div",
|
|
17103
17409
|
{
|
|
17104
17410
|
className: "kca-row",
|
|
@@ -17110,20 +17416,20 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17110
17416
|
fontSize: 12
|
|
17111
17417
|
}
|
|
17112
17418
|
},
|
|
17113
|
-
/* @__PURE__ */
|
|
17114
|
-
liveRotationPlan.status === "ok_no_change" && /* @__PURE__ */
|
|
17115
|
-
liveRotationPlan.status === "rotate" && /* @__PURE__ */
|
|
17116
|
-
liveRotationPlan.status === "wait_cond" && /* @__PURE__ */
|
|
17117
|
-
liveRotationPlan.status === "blocked" && /* @__PURE__ */
|
|
17419
|
+
/* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "\u5F53\u524D\u8F6E\u6362\u9884\u5224\uFF1A"),
|
|
17420
|
+
liveRotationPlan.status === "ok_no_change" && /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u2713 \u8230\u961F\u5C31\u7EEA\uFF0C\u65E0\u9700\u8F6E\u6362"),
|
|
17421
|
+
liveRotationPlan.status === "rotate" && /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-run" }, "\u21BB ", liveRotationPlan.reason || "\u5C06\u6267\u884C\u81EA\u52A8\u8F6E\u6362"),
|
|
17422
|
+
liveRotationPlan.status === "wait_cond" && /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-warn" }, "\u23F3 ", liveRotationPlan.reason),
|
|
17423
|
+
liveRotationPlan.status === "blocked" && /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-err" }, "\u26A0 ", liveRotationPlan.reason)
|
|
17118
17424
|
),
|
|
17119
|
-
/* @__PURE__ */
|
|
17425
|
+
/* @__PURE__ */ import_react10.default.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 6 } }, Array.from({ length: slotCount }, (_, slot) => {
|
|
17120
17426
|
const curShip = getCurrentSlotShip(slot);
|
|
17121
17427
|
const dmgTier = profile.damageThresholds[slot] ?? "moderate";
|
|
17122
17428
|
const condMin = profile.condThresholds[slot] ?? (slot < 6 ? 40 : 0);
|
|
17123
17429
|
const cands = profile.candidateShips[slot] ?? [];
|
|
17124
17430
|
const pickerOpen = openPickerSlot === slot;
|
|
17125
17431
|
const slotLabel = slot < 6 ? slot === 0 ? "1 \u53F7\u4F4D (\u65D7\u8230)" : `${slot + 1} \u53F7\u4F4D` : `\u4E8C\u961F ${slot - 5} \u53F7\u4F4D`;
|
|
17126
|
-
return /* @__PURE__ */
|
|
17432
|
+
return /* @__PURE__ */ import_react10.default.createElement("div", { key: slot, className: "kca-slot-card" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row", style: { gap: 8 } }, /* @__PURE__ */ import_react10.default.createElement("strong", null, slotLabel), curShip ? /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "\u5F53\u524D\uFF1A", curShip.name, " Lv.", curShip.level, " \xB7 HP ", curShip.hp, "/", curShip.maxHp, " \xB7 \u58EB\u6C14", " ", /* @__PURE__ */ import_react10.default.createElement("span", { className: condClass2(curShip.cond) }, curShip.cond), curShip.isRepairing && /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-warn", style: { marginLeft: 4 } }, "\u5165\u6E20\u4E2D"), isHeavilyDamaged(curShip) && /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-badge kca-badge-err", style: { marginLeft: 4 } }, "\u5927\u7834")) : /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "\u5F53\u524D\uFF1A\u7A7A\u4F4D")), /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row", style: { gap: 6 } }, /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "\u8F6E\u6362\u635F\u4F24"), /* @__PURE__ */ import_react10.default.createElement(
|
|
17127
17433
|
"select",
|
|
17128
17434
|
{
|
|
17129
17435
|
className: "kca-select",
|
|
@@ -17133,8 +17439,8 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17133
17439
|
p.damageThresholds[slot] = e.target.value;
|
|
17134
17440
|
})
|
|
17135
17441
|
},
|
|
17136
|
-
DAMAGE_OPTIONS.map((opt) => /* @__PURE__ */
|
|
17137
|
-
), /* @__PURE__ */
|
|
17442
|
+
DAMAGE_OPTIONS.map((opt) => /* @__PURE__ */ import_react10.default.createElement("option", { key: opt.value, value: opt.value }, opt.label))
|
|
17443
|
+
), /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "\u6700\u4F4E\u58EB\u6C14"), /* @__PURE__ */ import_react10.default.createElement(
|
|
17138
17444
|
"input",
|
|
17139
17445
|
{
|
|
17140
17446
|
type: "number",
|
|
@@ -17148,7 +17454,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17148
17454
|
p.condThresholds[slot] = Math.max(0, Math.min(100, Number(e.target.value) || 0));
|
|
17149
17455
|
})
|
|
17150
17456
|
}
|
|
17151
|
-
), cands.length > 0 && /* @__PURE__ */
|
|
17457
|
+
), cands.length > 0 && /* @__PURE__ */ import_react10.default.createElement(
|
|
17152
17458
|
"button",
|
|
17153
17459
|
{
|
|
17154
17460
|
className: "kca-btn kca-btn-sm",
|
|
@@ -17158,27 +17464,27 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17158
17464
|
})
|
|
17159
17465
|
},
|
|
17160
17466
|
"\u6E05\u7A7A"
|
|
17161
|
-
), /* @__PURE__ */
|
|
17467
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
17162
17468
|
"button",
|
|
17163
17469
|
{
|
|
17164
17470
|
className: `kca-btn kca-btn-sm ${pickerOpen ? "kca-btn-primary" : ""}`,
|
|
17165
17471
|
onClick: () => setOpenPickerSlot(pickerOpen ? null : slot)
|
|
17166
17472
|
},
|
|
17167
17473
|
pickerOpen ? "\u6536\u8D77\u9009\u8239" : "+ \u6DFB\u52A0\u5019\u9009"
|
|
17168
|
-
))), /* @__PURE__ */
|
|
17474
|
+
))), /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-chip-list" }, cands.length === 0 ? /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "\u7A7A\u4F4D\uFF08\u4E0D\u7F16\u5165\u8230\u5A18\uFF1B\u82E5\u5F53\u524D\u8230\u961F\u8BE5\u4F4D\u7F6E\u6709\u4E0A\u6B21\u6B8B\u7559\u8230\u5A18\uFF0C\u8F6E\u6362\u65F6\u5C06\u81EA\u52A8\u79FB\u9664\uFF09") : cands.map((sid, idx) => {
|
|
17169
17475
|
const ship = gameState.ships[sid];
|
|
17170
17476
|
const taiha = ship ? isHeavilyDamaged(ship) : false;
|
|
17171
17477
|
const slotCheck = ship ? checkShipMatchesSlot(gameState, ship, slot, profile, allowedFleetIds) : null;
|
|
17172
17478
|
const rejectTag = ship && slotCheck && !slotCheck.ok ? formatShipSlotRejection(ship, slotCheck, condMin) : "";
|
|
17173
|
-
return /* @__PURE__ */
|
|
17479
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
|
17174
17480
|
"span",
|
|
17175
17481
|
{
|
|
17176
17482
|
key: `${sid}-${idx}`,
|
|
17177
17483
|
className: `kca-chip ${taiha ? "kca-chip-taiha" : ""}`,
|
|
17178
17484
|
title: ship ? `ID:${ship.id} ${ship.stypeName} HP:${ship.hp}/${ship.maxHp} \u58EB\u6C14:${ship.cond}${rejectTag ? ` \xB7 \u6682\u4E0D\u53EF\u7528: ${rejectTag}` : " \xB7 \u53EF\u8F6E\u6362"}` : `\u8230\u5A18 ID: ${sid} (\u672A\u5728\u6E38\u620F\u4E2D\u52A0\u8F7D\u6216\u5DF2\u89E3\u4F53)`
|
|
17179
17485
|
},
|
|
17180
|
-
/* @__PURE__ */
|
|
17181
|
-
idx > 0 && /* @__PURE__ */
|
|
17486
|
+
/* @__PURE__ */ import_react10.default.createElement("span", null, ship ? /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, ship.name, " ", /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "Lv.", ship.level), " ", /* @__PURE__ */ import_react10.default.createElement("span", { className: condClass2(ship.cond) }, "(", ship.cond, ")"), rejectTag && /* @__PURE__ */ import_react10.default.createElement("span", { style: { color: "#fbbf24", marginLeft: 4, fontSize: 10 } }, "[", rejectTag, "]")) : `#${sid}`),
|
|
17487
|
+
idx > 0 && /* @__PURE__ */ import_react10.default.createElement(
|
|
17182
17488
|
"button",
|
|
17183
17489
|
{
|
|
17184
17490
|
className: "kca-chip-btn",
|
|
@@ -17187,7 +17493,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17187
17493
|
},
|
|
17188
17494
|
"\u2190"
|
|
17189
17495
|
),
|
|
17190
|
-
idx < cands.length - 1 && /* @__PURE__ */
|
|
17496
|
+
idx < cands.length - 1 && /* @__PURE__ */ import_react10.default.createElement(
|
|
17191
17497
|
"button",
|
|
17192
17498
|
{
|
|
17193
17499
|
className: "kca-chip-btn",
|
|
@@ -17196,7 +17502,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17196
17502
|
},
|
|
17197
17503
|
"\u2192"
|
|
17198
17504
|
),
|
|
17199
|
-
/* @__PURE__ */
|
|
17505
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
|
17200
17506
|
"button",
|
|
17201
17507
|
{
|
|
17202
17508
|
className: "kca-chip-btn",
|
|
@@ -17206,7 +17512,7 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17206
17512
|
"\xD7"
|
|
17207
17513
|
)
|
|
17208
17514
|
);
|
|
17209
|
-
})), pickerOpen && /* @__PURE__ */
|
|
17515
|
+
})), pickerOpen && /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-ship-picker" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react10.default.createElement(
|
|
17210
17516
|
"input",
|
|
17211
17517
|
{
|
|
17212
17518
|
className: "kca-input",
|
|
@@ -17215,25 +17521,25 @@ var ShipRotationPanel = ({ profile, gameState, updateProfile }) => {
|
|
|
17215
17521
|
value: searchText,
|
|
17216
17522
|
onChange: (e) => setSearchText(e.target.value)
|
|
17217
17523
|
}
|
|
17218
|
-
), /* @__PURE__ */
|
|
17524
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
|
17219
17525
|
"select",
|
|
17220
17526
|
{
|
|
17221
17527
|
className: "kca-select",
|
|
17222
17528
|
value: stypeFilter,
|
|
17223
17529
|
onChange: (e) => setStypeFilter(e.target.value)
|
|
17224
17530
|
},
|
|
17225
|
-
/* @__PURE__ */
|
|
17226
|
-
stypeOptions.map(([id, name]) => /* @__PURE__ */
|
|
17227
|
-
), /* @__PURE__ */
|
|
17531
|
+
/* @__PURE__ */ import_react10.default.createElement("option", { value: "all" }, "\u5168\u90E8\u8230\u79CD"),
|
|
17532
|
+
stypeOptions.map(([id, name]) => /* @__PURE__ */ import_react10.default.createElement("option", { key: id, value: String(id) }, name))
|
|
17533
|
+
), /* @__PURE__ */ import_react10.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react10.default.createElement(
|
|
17228
17534
|
"input",
|
|
17229
17535
|
{
|
|
17230
17536
|
type: "checkbox",
|
|
17231
17537
|
checked: lockedOnly,
|
|
17232
17538
|
onChange: (e) => setLockedOnly(e.target.checked)
|
|
17233
17539
|
}
|
|
17234
|
-
), "\u4EC5\u9501\u8239"), /* @__PURE__ */
|
|
17540
|
+
), "\u4EC5\u9501\u8239"), /* @__PURE__ */ import_react10.default.createElement("span", { className: "kca-muted" }, "\u663E\u793A ", filteredPickerShips.length, " \u8258")), allShips.length === 0 ? /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-muted" }, "\u6E38\u620F\u5C1A\u672A\u52A0\u8F7D\u8230\u5A18\u6570\u636E\uFF08\u8FDB\u5165\u6BCD\u6E2F\u540E\u5C06\u81EA\u52A8\u5217\u51FA\u5168\u90E8\u8230\u5A18\uFF0C\u4E5F\u53EF\u76F4\u63A5\u5BFC\u5165\u65E7\u7248\u914D\u7F6E\uFF09\u3002") : /* @__PURE__ */ import_react10.default.createElement("div", { className: "kca-ship-picker-list" }, filteredPickerShips.map((s) => {
|
|
17235
17541
|
const added = cands.includes(s.id);
|
|
17236
|
-
return /* @__PURE__ */
|
|
17542
|
+
return /* @__PURE__ */ import_react10.default.createElement(
|
|
17237
17543
|
"button",
|
|
17238
17544
|
{
|
|
17239
17545
|
key: s.id,
|
|
@@ -17288,18 +17594,18 @@ var DISSOLUTION_SHIP_TYPES = [
|
|
|
17288
17594
|
{ id: 16, label: "\u6C34\u6BCD (AV)" },
|
|
17289
17595
|
{ id: 22, label: "\u8865\u7ED9 (AO)" }
|
|
17290
17596
|
];
|
|
17291
|
-
var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
17292
|
-
const [newNodeNo, setNewNodeNo] = (0,
|
|
17293
|
-
const [newNodeAction, setNewNodeAction] = (0,
|
|
17294
|
-
const [showAll10Battles, setShowAll10Battles] = (0,
|
|
17295
|
-
const [newWpX, setNewWpX] = (0,
|
|
17296
|
-
const [newWpY, setNewWpY] = (0,
|
|
17297
|
-
const [newWpApi, setNewWpApi] = (0,
|
|
17298
|
-
const [advanceOpenTrigger, setAdvanceOpenTrigger] = (0,
|
|
17299
|
-
const [coordScreenshotOpen, setCoordScreenshotOpen] = (0,
|
|
17300
|
-
const [coordGameHudVisible, setCoordGameHudVisible] = (0,
|
|
17301
|
-
const [coordSelectedTarget, setCoordSelectedTarget] = (0,
|
|
17302
|
-
const [coordLivePickTarget, setCoordLivePickTarget] = (0,
|
|
17597
|
+
var SortieTab = ({ coordinator, snap, gameState, settings }) => {
|
|
17598
|
+
const [newNodeNo, setNewNodeNo] = (0, import_react11.useState)(1);
|
|
17599
|
+
const [newNodeAction, setNewNodeAction] = (0, import_react11.useState)("form_line_ahead");
|
|
17600
|
+
const [showAll10Battles, setShowAll10Battles] = (0, import_react11.useState)(false);
|
|
17601
|
+
const [newWpX, setNewWpX] = (0, import_react11.useState)(600);
|
|
17602
|
+
const [newWpY, setNewWpY] = (0, import_react11.useState)(360);
|
|
17603
|
+
const [newWpApi, setNewWpApi] = (0, import_react11.useState)("");
|
|
17604
|
+
const [advanceOpenTrigger, setAdvanceOpenTrigger] = (0, import_react11.useState)(0);
|
|
17605
|
+
const [coordScreenshotOpen, setCoordScreenshotOpen] = (0, import_react11.useState)(false);
|
|
17606
|
+
const [coordGameHudVisible, setCoordGameHudVisible] = (0, import_react11.useState)(false);
|
|
17607
|
+
const [coordSelectedTarget, setCoordSelectedTarget] = (0, import_react11.useState)("branch:0");
|
|
17608
|
+
const [coordLivePickTarget, setCoordLivePickTarget] = (0, import_react11.useState)(null);
|
|
17303
17609
|
const sortieCfg = settings.sortie;
|
|
17304
17610
|
const profile = sortieCfg.profiles.find((p) => p.id === sortieCfg.activeProfileId) ?? sortieCfg.profiles[0];
|
|
17305
17611
|
const updateProfile = (fn) => {
|
|
@@ -17430,14 +17736,14 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17430
17736
|
setCoordSelectedTarget(targetId);
|
|
17431
17737
|
setCoordScreenshotOpen(true);
|
|
17432
17738
|
};
|
|
17433
|
-
return /* @__PURE__ */
|
|
17739
|
+
return /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement(
|
|
17434
17740
|
CollapsibleCard,
|
|
17435
17741
|
{
|
|
17436
17742
|
storageKey: "sortie.profile",
|
|
17437
17743
|
title: "\u51FA\u51FB\u914D\u7F6E\u65B9\u6848",
|
|
17438
17744
|
defaultOpen: true,
|
|
17439
|
-
summary: /* @__PURE__ */
|
|
17440
|
-
headerRight: /* @__PURE__ */
|
|
17745
|
+
summary: /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("span", null, profile.name, " \xB7 ", mapLabel, " \xB7 \u7B2C", profile.fleet, "\u8230\u961F"), profile.f5OnResourceNode && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-run" }, "F5\u5077\u6CB9"), taihaOverrideActive && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-err" }, "\u26A0\u5927\u7834\u5FFD\u7565")),
|
|
17746
|
+
headerRight: /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement(ModuleToggleSwitch, { coordinator, snap, moduleId: "sortie" }), /* @__PURE__ */ import_react11.default.createElement("button", { className: "kca-btn kca-btn-sm kca-btn-primary", onClick: addProfile }, "+ \u65B0\u5EFA"), /* @__PURE__ */ import_react11.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: copyProfile }, "\u590D\u5236"), /* @__PURE__ */ import_react11.default.createElement("button", { className: "kca-btn kca-btn-sm", onClick: sortProfiles }, "\u6309\u540D\u6392\u5E8F"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17441
17747
|
"button",
|
|
17442
17748
|
{
|
|
17443
17749
|
className: "kca-btn kca-btn-sm",
|
|
@@ -17447,7 +17753,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17447
17753
|
"\u5220\u9664"
|
|
17448
17754
|
))
|
|
17449
17755
|
},
|
|
17450
|
-
/* @__PURE__ */
|
|
17756
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17451
17757
|
"select",
|
|
17452
17758
|
{
|
|
17453
17759
|
className: "kca-select",
|
|
@@ -17457,8 +17763,8 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17457
17763
|
s.sortie.activeProfileId = e.target.value;
|
|
17458
17764
|
})
|
|
17459
17765
|
},
|
|
17460
|
-
sortieCfg.profiles.map((p) => /* @__PURE__ */
|
|
17461
|
-
), /* @__PURE__ */
|
|
17766
|
+
sortieCfg.profiles.map((p) => /* @__PURE__ */ import_react11.default.createElement("option", { key: p.id, value: p.id }, p.name, " (", p.isEvent ? `E-${p.mapIndex}` : `${p.mapArea}-${p.mapIndex}`, ")"))
|
|
17767
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17462
17768
|
"input",
|
|
17463
17769
|
{
|
|
17464
17770
|
className: "kca-input",
|
|
@@ -17469,7 +17775,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17469
17775
|
placeholder: "\u65B9\u6848\u540D\u79F0"
|
|
17470
17776
|
}
|
|
17471
17777
|
)),
|
|
17472
|
-
/* @__PURE__ */
|
|
17778
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-grid" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u6D3B\u52A8\u6D77\u57DF (E\u56FE)"), /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17473
17779
|
"input",
|
|
17474
17780
|
{
|
|
17475
17781
|
type: "checkbox",
|
|
@@ -17478,7 +17784,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17478
17784
|
p.isEvent = e.target.checked;
|
|
17479
17785
|
})
|
|
17480
17786
|
}
|
|
17481
|
-
), "\u6D3B\u52A8\u6D77\u57DF\u6A21\u5F0F")), /* @__PURE__ */
|
|
17787
|
+
), "\u6D3B\u52A8\u6D77\u57DF\u6A21\u5F0F")), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u6D77\u57DF (Area - Map)"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17482
17788
|
"input",
|
|
17483
17789
|
{
|
|
17484
17790
|
type: "number",
|
|
@@ -17492,7 +17798,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17492
17798
|
p.mapArea = Number(e.target.value) || 1;
|
|
17493
17799
|
})
|
|
17494
17800
|
}
|
|
17495
|
-
), /* @__PURE__ */
|
|
17801
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", null, "-"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17496
17802
|
"input",
|
|
17497
17803
|
{
|
|
17498
17804
|
type: "number",
|
|
@@ -17505,7 +17811,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17505
17811
|
p.mapIndex = Number(e.target.value) || 1;
|
|
17506
17812
|
})
|
|
17507
17813
|
}
|
|
17508
|
-
))), /* @__PURE__ */
|
|
17814
|
+
))), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u51FA\u51FB\u8230\u961F / \u8054\u5408"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17509
17815
|
"select",
|
|
17510
17816
|
{
|
|
17511
17817
|
className: "kca-select",
|
|
@@ -17514,8 +17820,8 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17514
17820
|
p.fleet = Number(e.target.value);
|
|
17515
17821
|
})
|
|
17516
17822
|
},
|
|
17517
|
-
[1, 2, 3, 4].map((f) => /* @__PURE__ */
|
|
17518
|
-
), /* @__PURE__ */
|
|
17823
|
+
[1, 2, 3, 4].map((f) => /* @__PURE__ */ import_react11.default.createElement("option", { key: f, value: f }, "\u7B2C", f, "\u8230\u961F"))
|
|
17824
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17519
17825
|
"select",
|
|
17520
17826
|
{
|
|
17521
17827
|
className: "kca-select",
|
|
@@ -17524,11 +17830,11 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17524
17830
|
p.combineType = Number(e.target.value);
|
|
17525
17831
|
})
|
|
17526
17832
|
},
|
|
17527
|
-
/* @__PURE__ */
|
|
17528
|
-
/* @__PURE__ */
|
|
17529
|
-
/* @__PURE__ */
|
|
17530
|
-
/* @__PURE__ */
|
|
17531
|
-
))), /* @__PURE__ */
|
|
17833
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 0 }, "\u5355\u8230\u961F"),
|
|
17834
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 1 }, "\u673A\u52A8\u90E8\u961F"),
|
|
17835
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 2 }, "\u6C34\u6253\u90E8\u961F"),
|
|
17836
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 3 }, "\u8FD0\u8F93\u62A4\u536B")
|
|
17837
|
+
))), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u51FA\u51FB\u7B56\u7565"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17532
17838
|
"select",
|
|
17533
17839
|
{
|
|
17534
17840
|
className: "kca-select",
|
|
@@ -17537,10 +17843,10 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17537
17843
|
p.strategy = e.target.value;
|
|
17538
17844
|
})
|
|
17539
17845
|
},
|
|
17540
|
-
/* @__PURE__ */
|
|
17541
|
-
/* @__PURE__ */
|
|
17542
|
-
/* @__PURE__ */
|
|
17543
|
-
)), profile.strategy === "custom" && /* @__PURE__ */
|
|
17846
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "clear" }, "\u6253\u901A\u5168\u56FE"),
|
|
17847
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "node_a" }, "\u5355\u70B9\u64A4\u9000 (A\u70B9)"),
|
|
17848
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "custom" }, "\u81EA\u5B9A\u4E49\u6218\u6570\u64A4\u9000")
|
|
17849
|
+
)), profile.strategy === "custom" && /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u81EA\u5B9A\u4E49\u6218\u6597\u6B21\u6570"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17544
17850
|
"input",
|
|
17545
17851
|
{
|
|
17546
17852
|
type: "number",
|
|
@@ -17552,7 +17858,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17552
17858
|
p.customFightNum = Number(e.target.value) || 1;
|
|
17553
17859
|
})
|
|
17554
17860
|
}
|
|
17555
|
-
)), /* @__PURE__ */
|
|
17861
|
+
)), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u9ED8\u8BA4\u9635\u578B"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17556
17862
|
"select",
|
|
17557
17863
|
{
|
|
17558
17864
|
className: "kca-select",
|
|
@@ -17561,8 +17867,8 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17561
17867
|
p.formation = e.target.value;
|
|
17562
17868
|
})
|
|
17563
17869
|
},
|
|
17564
|
-
FORMATION_OPTIONS.map((o) => /* @__PURE__ */
|
|
17565
|
-
)), /* @__PURE__ */
|
|
17870
|
+
FORMATION_OPTIONS.map((o) => /* @__PURE__ */ import_react11.default.createElement("option", { key: o.value, value: o.value }, o.label))
|
|
17871
|
+
)), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "BOSS \u591C\u6218\u7B56\u7565"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17566
17872
|
"select",
|
|
17567
17873
|
{
|
|
17568
17874
|
className: "kca-select",
|
|
@@ -17571,10 +17877,10 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17571
17877
|
p.bossStrategy = e.target.value;
|
|
17572
17878
|
})
|
|
17573
17879
|
},
|
|
17574
|
-
/* @__PURE__ */
|
|
17575
|
-
/* @__PURE__ */
|
|
17576
|
-
/* @__PURE__ */
|
|
17577
|
-
)), /* @__PURE__ */
|
|
17880
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "always" }, "BOSS \u5FC5\u8FDB\u591C\u6218"),
|
|
17881
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "boss_alive" }, "BOSS \u5B58\u6D3B\u65F6\u591C\u6218"),
|
|
17882
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "never" }, "BOSS \u4E0D\u591C\u6218")
|
|
17883
|
+
)), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u8865\u7ED9\u65F6\u673A / \u6CFC\u6876\u9608\u503C (\u5C0F\u65F6)"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17578
17884
|
"select",
|
|
17579
17885
|
{
|
|
17580
17886
|
className: "kca-select",
|
|
@@ -17583,12 +17889,12 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17583
17889
|
p.supplyPolicy = e.target.value;
|
|
17584
17890
|
})
|
|
17585
17891
|
},
|
|
17586
|
-
/* @__PURE__ */
|
|
17587
|
-
/* @__PURE__ */
|
|
17588
|
-
/* @__PURE__ */
|
|
17589
|
-
/* @__PURE__ */
|
|
17590
|
-
/* @__PURE__ */
|
|
17591
|
-
), /* @__PURE__ */
|
|
17892
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "default" }, "\u9ED8\u8BA4"),
|
|
17893
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "p100" }, "\u6BCF\u6B21 (100%)"),
|
|
17894
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "p80" }, "<80%"),
|
|
17895
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "p50" }, "<50%"),
|
|
17896
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "p0" }, "\u8017\u5C3D\u65F6")
|
|
17897
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17592
17898
|
"input",
|
|
17593
17899
|
{
|
|
17594
17900
|
type: "number",
|
|
@@ -17601,7 +17907,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17601
17907
|
p.repairBucketHours = Number(e.target.value) || 0;
|
|
17602
17908
|
})
|
|
17603
17909
|
}
|
|
17604
|
-
))), /* @__PURE__ */
|
|
17910
|
+
))), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u51FA\u51FB\u8BA1\u6570\u76EE\u6807 (\u5269\u4F59 ", profile.limitRemaining, " / \u76EE\u6807 ", profile.limitTarget, ")"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17605
17911
|
"select",
|
|
17606
17912
|
{
|
|
17607
17913
|
className: "kca-select",
|
|
@@ -17610,12 +17916,12 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17610
17916
|
p.limitType = e.target.value;
|
|
17611
17917
|
})
|
|
17612
17918
|
},
|
|
17613
|
-
/* @__PURE__ */
|
|
17614
|
-
/* @__PURE__ */
|
|
17615
|
-
/* @__PURE__ */
|
|
17616
|
-
/* @__PURE__ */
|
|
17617
|
-
/* @__PURE__ */
|
|
17618
|
-
), profile.limitType !== "none" && /* @__PURE__ */
|
|
17919
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "none" }, "\u65E0\u9650\u5236"),
|
|
17920
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "times" }, "\u51FA\u51FB\u6B21\u6570"),
|
|
17921
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "boss" }, "\u51FB\u6740 BOSS"),
|
|
17922
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "wins" }, "BOSS \u80DC\u5229"),
|
|
17923
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "s_wins" }, "BOSS S \u80DC")
|
|
17924
|
+
), profile.limitType !== "none" && /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement(
|
|
17619
17925
|
"input",
|
|
17620
17926
|
{
|
|
17621
17927
|
type: "number",
|
|
@@ -17630,7 +17936,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17630
17936
|
p.limitRemaining = v;
|
|
17631
17937
|
})
|
|
17632
17938
|
}
|
|
17633
|
-
), /* @__PURE__ */
|
|
17939
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17634
17940
|
"button",
|
|
17635
17941
|
{
|
|
17636
17942
|
className: "kca-btn kca-btn-sm",
|
|
@@ -17640,7 +17946,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17640
17946
|
title: "\u91CD\u7F6E\u5269\u4F59\u8BA1\u6570\u4E3A\u76EE\u6807\u503C"
|
|
17641
17947
|
},
|
|
17642
17948
|
"\u91CD\u7F6E"
|
|
17643
|
-
)))), /* @__PURE__ */
|
|
17949
|
+
)))), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u65D7\u8230\u7EC3\u7EA7\u8FBE\u6807\u505C\u6B62 (\u9ED8\u8BA4\u5173\u95ED)"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17644
17950
|
"input",
|
|
17645
17951
|
{
|
|
17646
17952
|
type: "checkbox",
|
|
@@ -17649,7 +17955,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17649
17955
|
p.flagshipLevelLimitOpen = e.target.checked;
|
|
17650
17956
|
})
|
|
17651
17957
|
}
|
|
17652
|
-
), "\u8FBE\u5230 Lv"), /* @__PURE__ */
|
|
17958
|
+
), "\u8FBE\u5230 Lv"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17653
17959
|
"input",
|
|
17654
17960
|
{
|
|
17655
17961
|
type: "number",
|
|
@@ -17664,7 +17970,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17664
17970
|
})
|
|
17665
17971
|
}
|
|
17666
17972
|
)))),
|
|
17667
|
-
/* @__PURE__ */
|
|
17973
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17668
17974
|
"input",
|
|
17669
17975
|
{
|
|
17670
17976
|
type: "checkbox",
|
|
@@ -17674,7 +17980,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17674
17980
|
})
|
|
17675
17981
|
}
|
|
17676
17982
|
), "\u8B66\u6212\u9635\u53EF\u7528 (\u6D3B\u52A8\u671F 6 \u9635\u578B\u5E03\u5C40)")),
|
|
17677
|
-
/* @__PURE__ */
|
|
17983
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
|
17678
17984
|
CollapsibleSubBox,
|
|
17679
17985
|
{
|
|
17680
17986
|
storageKey: "sortie.f5",
|
|
@@ -17682,8 +17988,8 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17682
17988
|
defaultOpen: Boolean(
|
|
17683
17989
|
profile.f5OnResourceNode || profile.f5OnSortieRetreat || sf.start2CacheMode === "serve"
|
|
17684
17990
|
),
|
|
17685
|
-
summary: /* @__PURE__ */
|
|
17686
|
-
headerRight: /* @__PURE__ */
|
|
17991
|
+
summary: /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, profile.f5OnResourceNode && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-run" }, "\u7B2C", profile.f5ResourceNodeCount || 1, "\u8D44\u6E90\u70B9F5", profile.f5InstantOnCompass !== false ? "\xB7\u7F57\u76D8\u5373\u5237" : ""), profile.f5OnSortieRetreat && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge" }, "\u64A4\u9000F5")),
|
|
17992
|
+
headerRight: /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 6 } }, sf.start2CacheMode === "serve" ? s2Snap && s2Snap.cachedBytes > 0 && s2Snap.leftSec > 0 ? /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "Start2 \u7F13\u5B58\u5C31\u7EEA (\u5269 ", Math.ceil(s2Snap.leftSec / 60), " \u5206", s2Snap.page ? ` \xB7 \u62E6 ${s2Snap.page.hit} / \u6F0F ${s2Snap.page.miss}` : "", ")") : /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-warn" }, "Start2 \u5F85\u5199\u5165 (\u91CD\u8F7D\u6E38\u620F\u4E00\u6B21\u5373\u7F13\u5B58)") : /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge" }, "Start2 \u7F13\u5B58\u672A\u5F00\u542F"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17687
17993
|
"button",
|
|
17688
17994
|
{
|
|
17689
17995
|
className: "kca-btn kca-btn-sm",
|
|
@@ -17692,7 +17998,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17692
17998
|
"\u7ACB\u5373\u6267\u884C F5"
|
|
17693
17999
|
))
|
|
17694
18000
|
},
|
|
17695
|
-
/* @__PURE__ */
|
|
18001
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 12 } }, /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17696
18002
|
"input",
|
|
17697
18003
|
{
|
|
17698
18004
|
type: "checkbox",
|
|
@@ -17701,7 +18007,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17701
18007
|
s.safety.start2CacheMode = e.target.checked ? "serve" : "off";
|
|
17702
18008
|
})
|
|
17703
18009
|
}
|
|
17704
|
-
), /* @__PURE__ */
|
|
18010
|
+
), /* @__PURE__ */ import_react11.default.createElement("strong", null, "F5 \u65F6\u542F\u7528\u5185\u7F6E Start2 \u7F13\u5B58 (s2cache\uFF0C\u514D\u4EE3\u7406\u5077\u6CB9)")), /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17705
18011
|
"input",
|
|
17706
18012
|
{
|
|
17707
18013
|
type: "checkbox",
|
|
@@ -17710,7 +18016,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17710
18016
|
p.f5OnResourceNode = e.target.checked;
|
|
17711
18017
|
})
|
|
17712
18018
|
}
|
|
17713
|
-
), "\u8E29\u8D44\u6E90\u70B9 (api_itemget) \u81EA\u52A8 F5"), profile.f5OnResourceNode && /* @__PURE__ */
|
|
18019
|
+
), "\u8E29\u8D44\u6E90\u70B9 (api_itemget) \u81EA\u52A8 F5"), profile.f5OnResourceNode && /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 4 } }, /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "\u7B2C"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17714
18020
|
"input",
|
|
17715
18021
|
{
|
|
17716
18022
|
type: "number",
|
|
@@ -17724,7 +18030,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17724
18030
|
p.f5ResourceNodeCount = Math.max(1, Math.min(5, Number(e.target.value) || 1));
|
|
17725
18031
|
})
|
|
17726
18032
|
}
|
|
17727
|
-
), /* @__PURE__ */
|
|
18033
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "\u4E2A\u8D44\u6E90\u70B9")), /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17728
18034
|
"input",
|
|
17729
18035
|
{
|
|
17730
18036
|
type: "checkbox",
|
|
@@ -17734,13 +18040,13 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17734
18040
|
})
|
|
17735
18041
|
}
|
|
17736
18042
|
), "\u64A4\u9000\u65F6\u7528 F5 \u4EE3\u66FF\u56DE\u6E2F")),
|
|
17737
|
-
/* @__PURE__ */
|
|
18043
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 10 } }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17738
18044
|
"label",
|
|
17739
18045
|
{
|
|
17740
18046
|
className: "kca-switch",
|
|
17741
18047
|
title: "\u670D\u52A1\u5668\u5728\u8FD4\u56DE start/next \u65F6\u8D44\u6E90\u5DF2\u5165\u8D26\uFF0C\u5F00\u542F\u540E\u7F57\u76D8\u521A\u51FA\u73B0\u5373\u523B F5\uFF0C\u65E0\u9700\u70B9\u51FB\u7F57\u76D8\u6216\u7B49\u5F85\u8239\u8D70\u5230\u8D44\u6E90\u70B9\uFF1B\u5173\u95ED\u5219\u7B49\u5F85\u822A\u884C\u81F3\u70B9\u4F4D\u540E\u518D F5"
|
|
17742
18048
|
},
|
|
17743
|
-
/* @__PURE__ */
|
|
18049
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
|
17744
18050
|
"input",
|
|
17745
18051
|
{
|
|
17746
18052
|
type: "checkbox",
|
|
@@ -17750,8 +18056,8 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17750
18056
|
})
|
|
17751
18057
|
}
|
|
17752
18058
|
),
|
|
17753
|
-
/* @__PURE__ */
|
|
17754
|
-
), profile.f5InstantOnCompass !== false && /* @__PURE__ */
|
|
18059
|
+
/* @__PURE__ */ import_react11.default.createElement("strong", null, "\u7F57\u76D8\u51FA\u73B0\u5373\u523B F5 (\u4E0D\u7B49\u8239\u8D70\u5230\u8D44\u6E90\u70B9)")
|
|
18060
|
+
), profile.f5InstantOnCompass !== false && /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 4 } }, /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "\u7F13\u51B2"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17755
18061
|
"input",
|
|
17756
18062
|
{
|
|
17757
18063
|
type: "number",
|
|
@@ -17766,8 +18072,8 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17766
18072
|
p.f5CompassDelayMs = Math.max(0, Math.min(5e3, Number(e.target.value) || 0));
|
|
17767
18073
|
})
|
|
17768
18074
|
}
|
|
17769
|
-
), /* @__PURE__ */
|
|
17770
|
-
/* @__PURE__ */
|
|
18075
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "ms")), /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted", style: { fontSize: 11 } }, "(\u5BF9\u201C\u8E29\u8D44\u6E90\u70B9 F5\u201D\u548C\u201C\u5730\u56FE\u6307\u5B9A\u70B9 F5\u201D\u5747\u751F\u6548)")),
|
|
18076
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 8 } }, /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "F5 \u5237\u65B0\u65B9\u5F0F\uFF1A"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17771
18077
|
"select",
|
|
17772
18078
|
{
|
|
17773
18079
|
className: "kca-select",
|
|
@@ -17776,10 +18082,10 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17776
18082
|
s.safety.f5ReloadMode = e.target.value;
|
|
17777
18083
|
})
|
|
17778
18084
|
},
|
|
17779
|
-
/* @__PURE__ */
|
|
17780
|
-
/* @__PURE__ */
|
|
17781
|
-
/* @__PURE__ */
|
|
17782
|
-
), sf.f5ReloadMode === "smart" && /* @__PURE__ */
|
|
18085
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "smart" }, "\u667A\u80FD\u6DF7\u5408 (\u5E73\u65F6\u53F3\u952E\u5237\u65B0\u6E38\u620F\u672C\u4F53\uFF0C\u6BCF ", sf.f5FullRefreshIntervalMin, "+1~", sf.f5FullRefreshJitterMin, " \u5206\u5237\u65B0\u6574\u9875)"),
|
|
18086
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "game_only" }, "\u4EC5\u53F3\u952E\u5237\u65B0\u6E38\u620F\u672C\u4F53 (gameReload)"),
|
|
18087
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "full_page" }, "\u59CB\u7EC8\u5237\u65B0\u6574\u4E2A\u7F51\u9875 (gameRefreshPage)")
|
|
18088
|
+
), sf.f5ReloadMode === "smart" && /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "\u6574\u9875\u95F4\u9694"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17783
18089
|
"input",
|
|
17784
18090
|
{
|
|
17785
18091
|
type: "number",
|
|
@@ -17792,7 +18098,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17792
18098
|
s.safety.f5FullRefreshIntervalMin = Math.max(5, Number(e.target.value) || 60);
|
|
17793
18099
|
})
|
|
17794
18100
|
}
|
|
17795
|
-
), /* @__PURE__ */
|
|
18101
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "+ \u968F\u673A 1~"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17796
18102
|
"input",
|
|
17797
18103
|
{
|
|
17798
18104
|
type: "number",
|
|
@@ -17805,18 +18111,18 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17805
18111
|
s.safety.f5FullRefreshJitterMin = Math.max(0, Number(e.target.value) || 0);
|
|
17806
18112
|
})
|
|
17807
18113
|
}
|
|
17808
|
-
), /* @__PURE__ */
|
|
18114
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "\u5206")))
|
|
17809
18115
|
),
|
|
17810
|
-
/* @__PURE__ */
|
|
18116
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
|
17811
18117
|
CollapsibleSubBox,
|
|
17812
18118
|
{
|
|
17813
18119
|
storageKey: "sortie.taiha",
|
|
17814
18120
|
title: "\u5927\u7834\u68C0\u6D4B\u9009\u9879 (\u4EC5\u9650\u5F53\u524D\u65B9\u6848)",
|
|
17815
18121
|
danger: taihaOverrideActive,
|
|
17816
18122
|
defaultOpen: taihaOverrideActive,
|
|
17817
|
-
summary: taihaOverrideActive ? /* @__PURE__ */
|
|
18123
|
+
summary: taihaOverrideActive ? /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-err" }, "\u26A0 \u5DF2\u5173\u95ED\u5927\u7834\u4FDD\u62A4") : /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u9ED8\u8BA4 7 \u5C42\u4FDD\u62A4\u5F00\u542F")
|
|
17818
18124
|
},
|
|
17819
|
-
/* @__PURE__ */
|
|
18125
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 14 } }, /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17820
18126
|
"input",
|
|
17821
18127
|
{
|
|
17822
18128
|
type: "checkbox",
|
|
@@ -17825,7 +18131,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17825
18131
|
p.ignoreTaihaPreSortie = e.target.checked;
|
|
17826
18132
|
})
|
|
17827
18133
|
}
|
|
17828
|
-
), "\u5FFD\u7565\u51FA\u51FB\u524D\u5927\u7834\u68C0\u6D4B (\u5141\u8BB8\u643A\u5E26\u5927\u7834\u8230\u5A18\u51FA\u51FB)"), /* @__PURE__ */
|
|
18134
|
+
), "\u5FFD\u7565\u51FA\u51FB\u524D\u5927\u7834\u68C0\u6D4B (\u5141\u8BB8\u643A\u5E26\u5927\u7834\u8230\u5A18\u51FA\u51FB)"), /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17829
18135
|
"input",
|
|
17830
18136
|
{
|
|
17831
18137
|
type: "checkbox",
|
|
@@ -17835,24 +18141,26 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17835
18141
|
})
|
|
17836
18142
|
}
|
|
17837
18143
|
), "\u5FFD\u7565\u6218\u6597\u4E2D\u5927\u7834\u64A4\u9000 (\u5141\u8BB8\u5927\u7834\u7EE7\u7EED\u8FDB\u51FB)")),
|
|
17838
|
-
taihaOverrideActive && /* @__PURE__ */
|
|
18144
|
+
taihaOverrideActive && /* @__PURE__ */ import_react11.default.createElement("div", { style: { fontSize: 11 } }, "\u26A0\uFE0F ", /* @__PURE__ */ import_react11.default.createElement("strong", null, "\u9AD8\u98CE\u9669\u63D0\u793A"), "\uFF1A\u5F53\u524D\u65B9\u6848\u5DF2\u5173\u95ED\u5927\u7834\u4FDD\u62A4\u3002\u82E5\u672A\u643A\u5E26\u635F\u7BA1/\u5973\u795E\u4E14\u975E\u65D7\u8230\u4E0D\u6C89\u573A\u666F\uFF0C\u5927\u7834\u8FDB\u51FB\u53EF\u80FD\u5BFC\u81F4\u8230\u5A18\u6C38\u4E45\u6C89\u6CA1\uFF0C\u8BF7\u52A1\u5FC5\u786E\u8BA4\u7F16\u6210\u540E\u518D\u5F00\u542F\u81EA\u52A8\u51FA\u51FB\uFF01\uFF08\u82E5\u914D\u5408\u81EA\u52A8\u8F6E\u6362\uFF0C\u8BF7\u5C06\u5BF9\u5E94\u69FD\u4F4D\u635F\u4F24\u8BBE\u4E3A\u300C\u4E0D\u9650\u635F\u4F24\u300D\u3002\uFF09")
|
|
17839
18145
|
)
|
|
17840
|
-
), /* @__PURE__ */
|
|
18146
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17841
18147
|
ShipRotationPanel,
|
|
17842
18148
|
{
|
|
17843
18149
|
profile,
|
|
17844
18150
|
gameState,
|
|
18151
|
+
orgPresets: settings.organization.presets,
|
|
18152
|
+
activeOrgPresetId: settings.organization.activePresetId,
|
|
17845
18153
|
updateProfile
|
|
17846
18154
|
}
|
|
17847
|
-
), /* @__PURE__ */
|
|
18155
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17848
18156
|
CollapsibleCard,
|
|
17849
18157
|
{
|
|
17850
18158
|
storageKey: "sortie.advance",
|
|
17851
18159
|
title: "\u9AD8\u7EA7\u70B9\u4F4D / \u6218\u6597\u9635\u578B\u3001\u70DF\u5E55\u4E0E\u80FD\u52A8\u5206\u6B67\u63A7\u5236",
|
|
17852
18160
|
defaultOpen: profile.useAdvanceSettings,
|
|
17853
18161
|
forceOpenTrigger: advanceOpenTrigger,
|
|
17854
|
-
summary: /* @__PURE__ */
|
|
17855
|
-
headerRight: /* @__PURE__ */
|
|
18162
|
+
summary: /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, profile.useAdvanceSettings ? /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-run" }, profile.advanceMode === "battle" ? "\u6309\u6218\u6B21" : `\u6309\u8282\u70B9 (${profile.mapNodeRules.length} \u6761)`) : /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge" }, "\u672A\u542F\u7528\u89C4\u5219"), activeBranchCount > 0 && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge" }, "\u5206\u6B67\u5750\u6807 ", activeBranchCount, " \u4E2A"), profile.isEvent && profile.eventWaypoints.length > 0 && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge" }, "\u6D3B\u52A8\u8DEF\u5F84 ", profile.eventWaypoints.length, " \u70B9")),
|
|
18163
|
+
headerRight: /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17856
18164
|
"input",
|
|
17857
18165
|
{
|
|
17858
18166
|
type: "checkbox",
|
|
@@ -17867,7 +18175,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17867
18175
|
}
|
|
17868
18176
|
), "\u542F\u7528\u9AD8\u7EA7\u89C4\u5219")
|
|
17869
18177
|
},
|
|
17870
|
-
profile.useAdvanceSettings && /* @__PURE__ */
|
|
18178
|
+
profile.useAdvanceSettings && /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u6A21\u5F0F\uFF1A"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17871
18179
|
"select",
|
|
17872
18180
|
{
|
|
17873
18181
|
className: "kca-select",
|
|
@@ -17876,16 +18184,16 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17876
18184
|
p.advanceMode = e.target.value;
|
|
17877
18185
|
})
|
|
17878
18186
|
},
|
|
17879
|
-
/* @__PURE__ */
|
|
17880
|
-
/* @__PURE__ */
|
|
17881
|
-
)), profile.advanceMode === "battle" && /* @__PURE__ */
|
|
18187
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "battle" }, "\u6309\u6218\u6597\u573A\u6B21 (\u7B2C1~10\u6218)"),
|
|
18188
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: "map" }, "\u6309\u6D77\u57DF\u8282\u70B9\u7F16\u53F7 (api_no)")
|
|
18189
|
+
)), profile.advanceMode === "battle" && /* @__PURE__ */ import_react11.default.createElement(
|
|
17882
18190
|
"button",
|
|
17883
18191
|
{
|
|
17884
18192
|
className: "kca-btn kca-btn-sm",
|
|
17885
18193
|
onClick: () => setShowAll10Battles((v) => !v)
|
|
17886
18194
|
},
|
|
17887
18195
|
showAll10Battles ? "\u4EC5\u663E\u793A 1~6 \u6218" : "\u5C55\u5F00\u5168\u90E8 1~10 \u6218"
|
|
17888
|
-
)), profile.advanceMode === "battle" ? /* @__PURE__ */
|
|
18196
|
+
)), profile.advanceMode === "battle" ? /* @__PURE__ */ import_react11.default.createElement("table", { className: "kca-table" }, /* @__PURE__ */ import_react11.default.createElement("thead", null, /* @__PURE__ */ import_react11.default.createElement("tr", null, /* @__PURE__ */ import_react11.default.createElement("th", null, "\u6218\u6B21"), /* @__PURE__ */ import_react11.default.createElement("th", null, "\u9635\u578B"), /* @__PURE__ */ import_react11.default.createElement("th", null, "\u591C\u6218"), /* @__PURE__ */ import_react11.default.createElement("th", null, "\u70DF\u5E55"))), /* @__PURE__ */ import_react11.default.createElement("tbody", null, Array.from({ length: battleRowsCount }, (_, i) => /* @__PURE__ */ import_react11.default.createElement("tr", { key: i }, /* @__PURE__ */ import_react11.default.createElement("td", null, "\u7B2C ", i + 1, " \u6218"), /* @__PURE__ */ import_react11.default.createElement("td", null, /* @__PURE__ */ import_react11.default.createElement(
|
|
17889
18197
|
"select",
|
|
17890
18198
|
{
|
|
17891
18199
|
className: "kca-select",
|
|
@@ -17895,8 +18203,8 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17895
18203
|
p.battleFormations[i] = e.target.value;
|
|
17896
18204
|
})
|
|
17897
18205
|
},
|
|
17898
|
-
FORMATION_OPTIONS.map((o) => /* @__PURE__ */
|
|
17899
|
-
)), /* @__PURE__ */
|
|
18206
|
+
FORMATION_OPTIONS.map((o) => /* @__PURE__ */ import_react11.default.createElement("option", { key: o.value, value: o.value }, o.label))
|
|
18207
|
+
)), /* @__PURE__ */ import_react11.default.createElement("td", null, /* @__PURE__ */ import_react11.default.createElement(
|
|
17900
18208
|
"input",
|
|
17901
18209
|
{
|
|
17902
18210
|
type: "checkbox",
|
|
@@ -17906,7 +18214,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17906
18214
|
p.battleNightFight[i] = e.target.checked;
|
|
17907
18215
|
})
|
|
17908
18216
|
}
|
|
17909
|
-
)), /* @__PURE__ */
|
|
18217
|
+
)), /* @__PURE__ */ import_react11.default.createElement("td", null, /* @__PURE__ */ import_react11.default.createElement(
|
|
17910
18218
|
"input",
|
|
17911
18219
|
{
|
|
17912
18220
|
type: "checkbox",
|
|
@@ -17916,7 +18224,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17916
18224
|
p.battleSmoke[i] = e.target.checked;
|
|
17917
18225
|
})
|
|
17918
18226
|
}
|
|
17919
|
-
)))))) : /* @__PURE__ */
|
|
18227
|
+
)))))) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("span", null, "\u8282\u70B9\u53F7"), /* @__PURE__ */ import_react11.default.createElement(
|
|
17920
18228
|
"input",
|
|
17921
18229
|
{
|
|
17922
18230
|
type: "number",
|
|
@@ -17925,15 +18233,15 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17925
18233
|
value: newNodeNo,
|
|
17926
18234
|
onChange: (e) => setNewNodeNo(Number(e.target.value) || 1)
|
|
17927
18235
|
}
|
|
17928
|
-
), /* @__PURE__ */
|
|
18236
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17929
18237
|
"select",
|
|
17930
18238
|
{
|
|
17931
18239
|
className: "kca-select",
|
|
17932
18240
|
value: newNodeAction,
|
|
17933
18241
|
onChange: (e) => setNewNodeAction(e.target.value)
|
|
17934
18242
|
},
|
|
17935
|
-
Object.entries(NODE_ACTION_LABELS).map(([k, lbl]) => /* @__PURE__ */
|
|
17936
|
-
), /* @__PURE__ */
|
|
18243
|
+
Object.entries(NODE_ACTION_LABELS).map(([k, lbl]) => /* @__PURE__ */ import_react11.default.createElement("option", { key: k, value: k }, lbl))
|
|
18244
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17937
18245
|
"button",
|
|
17938
18246
|
{
|
|
17939
18247
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
@@ -17942,7 +18250,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17942
18250
|
})
|
|
17943
18251
|
},
|
|
17944
18252
|
"+ \u6DFB\u52A0\u89C4\u5219"
|
|
17945
|
-
)), profile.mapNodeRules.map((r, idx) => /* @__PURE__ */
|
|
18253
|
+
)), profile.mapNodeRules.map((r, idx) => /* @__PURE__ */ import_react11.default.createElement("div", { key: `${r.nodeNo}-${r.action}-${idx}`, className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge" }, r.nodeNo, " \u70B9"), /* @__PURE__ */ import_react11.default.createElement("span", null, NODE_ACTION_LABELS[r.action] ?? r.action), /* @__PURE__ */ import_react11.default.createElement(
|
|
17946
18254
|
"button",
|
|
17947
18255
|
{
|
|
17948
18256
|
className: "kca-btn kca-btn-sm",
|
|
@@ -17952,7 +18260,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17952
18260
|
},
|
|
17953
18261
|
"\u5220\u9664"
|
|
17954
18262
|
))))),
|
|
17955
|
-
/* @__PURE__ */
|
|
18263
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-sub-box" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-muted" }, "\u80FD\u52A8\u5206\u6B67\u5750\u6807 (\u6309\u6B21\u5E8F\u7B2C 1~5 \u6B21\u5206\u6B67\uFF0C1200\xD7720 \u57FA\u51C6\u5750\u6807 `x,y`\uFF0C`0,0` \u4E3A\u672A\u914D\u7F6E)\uFF1A"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 5 } }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17956
18264
|
"button",
|
|
17957
18265
|
{
|
|
17958
18266
|
className: `kca-btn kca-btn-sm ${coordGameHudVisible ? "kca-btn-primary" : ""}`,
|
|
@@ -17960,7 +18268,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17960
18268
|
title: "\u5728\u6E38\u620F\u753B\u9762\u4E0A\u5B9E\u65F6\u663E\u793A\u9F20\u6807 1200\xD7720 \u5750\u6807\u4EE5\u53CA\u5DF2\u914D\u7F6E\u7684\u5206\u6B67/\u9646\u822A\u6807\u8BB0\uFF08\u9F20\u6807\u7A7F\u900F\uFF0C\u4E0D\u5F71\u54CD\u70B9\u51FB\u6E38\u620F\uFF09"
|
|
17961
18269
|
},
|
|
17962
18270
|
coordGameHudVisible ? "\u{1F441}\uFE0F \u5173\u95ED\u6E38\u620F\u5750\u6807" : "\u{1F441}\uFE0F \u6E38\u620F\u663E\u793A\u5750\u6807"
|
|
17963
|
-
), /* @__PURE__ */
|
|
18271
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17964
18272
|
"button",
|
|
17965
18273
|
{
|
|
17966
18274
|
className: `kca-btn kca-btn-sm ${coordScreenshotOpen ? "kca-btn-primary" : ""}`,
|
|
@@ -17968,11 +18276,11 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17968
18276
|
title: "\u622A\u53D6\u5F53\u524D\u6E38\u620F\u753B\u9762\uFF0C\u5728\u9762\u677F\u91CC\u53EF\u89C6\u5316\u67E5\u770B\u6807\u8BB0\u5E76\u70B9\u51FB\u76F4\u63A5\u586B\u5165\u5750\u6807"
|
|
17969
18277
|
},
|
|
17970
18278
|
coordScreenshotOpen ? "\u6536\u8D77\u622A\u56FE\u9009\u70B9" : "\u{1F4F8} \u622A\u56FE\u53EF\u89C6\u5316\u9009\u70B9"
|
|
17971
|
-
))), /* @__PURE__ */
|
|
18279
|
+
))), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, [0, 1, 2, 3, 4].map((idx) => {
|
|
17972
18280
|
const pt = profile.activeBranchPoints[idx] ?? { x: 0, y: 0 };
|
|
17973
18281
|
const tid = `branch:${idx}`;
|
|
17974
18282
|
const picking = coordLivePickTarget === tid;
|
|
17975
|
-
return /* @__PURE__ */
|
|
18283
|
+
return /* @__PURE__ */ import_react11.default.createElement("div", { key: idx, className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u5206\u6B67 ", idx + 1), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 3 } }, /* @__PURE__ */ import_react11.default.createElement(
|
|
17976
18284
|
"input",
|
|
17977
18285
|
{
|
|
17978
18286
|
className: "kca-input",
|
|
@@ -17987,7 +18295,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17987
18295
|
});
|
|
17988
18296
|
}
|
|
17989
18297
|
}
|
|
17990
|
-
), /* @__PURE__ */
|
|
18298
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
17991
18299
|
"button",
|
|
17992
18300
|
{
|
|
17993
18301
|
className: `kca-btn kca-pick-btn ${picking ? "kca-btn-primary" : ""}`,
|
|
@@ -17997,7 +18305,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
17997
18305
|
picking ? "\u53D6\u70B9\u4E2D" : "\u{1F3AF}"
|
|
17998
18306
|
)));
|
|
17999
18307
|
}))),
|
|
18000
|
-
profile.isEvent && /* @__PURE__ */
|
|
18308
|
+
profile.isEvent && /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-sub-box" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-muted" }, "\u6D3B\u52A8\u6D77\u57DF\u8FDB\u5165\u70B9\u51FB\u8DEF\u5F84 (\u672C\u5730\u81EA\u5B9A\u4E49\u5750\u6807\uFF0C\u66FF\u4EE3\u65E7\u7248\u5931\u6548\u8FDC\u7A0B\u670D\u52A1\u5668\u8DEF\u5F84)\uFF1A"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 5 } }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18001
18309
|
"button",
|
|
18002
18310
|
{
|
|
18003
18311
|
className: `kca-btn kca-btn-sm ${coordLivePickTarget === "waypoint:new" ? "kca-btn-primary" : ""}`,
|
|
@@ -18005,14 +18313,14 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18005
18313
|
title: "\u5728\u6E38\u620F\u753B\u9762\u4E0A\u76F4\u63A5\u70B9\u51FB\u76EE\u6807\u4F4D\u7F6E\u4EE5\u586B\u5165 X / Y"
|
|
18006
18314
|
},
|
|
18007
18315
|
coordLivePickTarget === "waypoint:new" ? "\u{1F3AF} \u53D6\u70B9\u4E2D..." : "\u{1F3AF} \u6E38\u620F\u753B\u9762\u53D6\u70B9"
|
|
18008
|
-
), /* @__PURE__ */
|
|
18316
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
18009
18317
|
"button",
|
|
18010
18318
|
{
|
|
18011
18319
|
className: "kca-btn kca-btn-sm",
|
|
18012
18320
|
onClick: () => openScreenshotPickerFor("waypoint:new")
|
|
18013
18321
|
},
|
|
18014
18322
|
"\u{1F4F8} \u622A\u56FE\u9009\u70B9"
|
|
18015
|
-
))), /* @__PURE__ */
|
|
18323
|
+
))), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("span", null, "X"), /* @__PURE__ */ import_react11.default.createElement(
|
|
18016
18324
|
"input",
|
|
18017
18325
|
{
|
|
18018
18326
|
type: "number",
|
|
@@ -18021,7 +18329,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18021
18329
|
value: newWpX,
|
|
18022
18330
|
onChange: (e) => setNewWpX(Number(e.target.value) || 0)
|
|
18023
18331
|
}
|
|
18024
|
-
), /* @__PURE__ */
|
|
18332
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", null, "Y"), /* @__PURE__ */ import_react11.default.createElement(
|
|
18025
18333
|
"input",
|
|
18026
18334
|
{
|
|
18027
18335
|
type: "number",
|
|
@@ -18030,7 +18338,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18030
18338
|
value: newWpY,
|
|
18031
18339
|
onChange: (e) => setNewWpY(Number(e.target.value) || 0)
|
|
18032
18340
|
}
|
|
18033
|
-
), /* @__PURE__ */
|
|
18341
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
18034
18342
|
"input",
|
|
18035
18343
|
{
|
|
18036
18344
|
className: "kca-input",
|
|
@@ -18039,7 +18347,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18039
18347
|
value: newWpApi,
|
|
18040
18348
|
onChange: (e) => setNewWpApi(e.target.value)
|
|
18041
18349
|
}
|
|
18042
|
-
), /* @__PURE__ */
|
|
18350
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
18043
18351
|
"button",
|
|
18044
18352
|
{
|
|
18045
18353
|
className: "kca-btn kca-btn-sm kca-btn-primary",
|
|
@@ -18052,7 +18360,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18052
18360
|
})
|
|
18053
18361
|
},
|
|
18054
18362
|
"+ \u6DFB\u52A0\u70B9\u51FB\u70B9"
|
|
18055
|
-
)), profile.eventWaypoints.length > 0 && /* @__PURE__ */
|
|
18363
|
+
)), profile.eventWaypoints.length > 0 && /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-chip-list" }, profile.eventWaypoints.map((wp, idx) => /* @__PURE__ */ import_react11.default.createElement("span", { key: idx, className: "kca-chip" }, "#", idx + 1, " (", wp.x, ",", wp.y, ")", wp.waitApi ? ` [${wp.waitApi}]` : "", /* @__PURE__ */ import_react11.default.createElement(
|
|
18056
18364
|
"button",
|
|
18057
18365
|
{
|
|
18058
18366
|
className: "kca-chip-btn",
|
|
@@ -18062,7 +18370,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18062
18370
|
},
|
|
18063
18371
|
"\xD7"
|
|
18064
18372
|
)))))
|
|
18065
|
-
), /* @__PURE__ */
|
|
18373
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
18066
18374
|
CoordPickerPanel,
|
|
18067
18375
|
{
|
|
18068
18376
|
coordinator,
|
|
@@ -18083,15 +18391,15 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18083
18391
|
onCancelLivePick: () => setCoordLivePickTarget(null),
|
|
18084
18392
|
extraMarkers: extraWaypointMarkers
|
|
18085
18393
|
}
|
|
18086
|
-
), /* @__PURE__ */
|
|
18394
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
18087
18395
|
CollapsibleCard,
|
|
18088
18396
|
{
|
|
18089
18397
|
storageKey: "sortie.lbas",
|
|
18090
18398
|
title: "\u57FA\u5730\u822A\u7A7A\u961F (LBAS) \u4E0E \u635E\u8239/\u89E3\u4F53",
|
|
18091
18399
|
defaultOpen: false,
|
|
18092
|
-
summary: /* @__PURE__ */
|
|
18400
|
+
summary: /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, profile.lbasAutoSupply && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge" }, "\u9646\u822A\u8865\u7ED9"), sortieCfg.autoStopOnTargetDrop && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-run" }, "\u635E\u8239\u505C (", sortieCfg.targetDropShips.length, ")"), sortieCfg.dissolution.enabled && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "\u81EA\u52A8\u89E3\u4F53 (\u2264", sortieCfg.dissolution.freeSlotThreshold, "\u4F4D)"), !profile.lbasAutoSupply && !sortieCfg.autoStopOnTargetDrop && !sortieCfg.dissolution.enabled && /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "\u672A\u5F00\u542F\u9644\u52A0\u9879"))
|
|
18093
18401
|
},
|
|
18094
|
-
/* @__PURE__ */
|
|
18402
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18095
18403
|
"input",
|
|
18096
18404
|
{
|
|
18097
18405
|
type: "checkbox",
|
|
@@ -18100,7 +18408,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18100
18408
|
p.lbasAutoSupply = e.target.checked;
|
|
18101
18409
|
})
|
|
18102
18410
|
}
|
|
18103
|
-
), "\u9646\u822A\u81EA\u52A8\u8865\u7ED9"), /* @__PURE__ */
|
|
18411
|
+
), "\u9646\u822A\u81EA\u52A8\u8865\u7ED9"), /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18104
18412
|
"input",
|
|
18105
18413
|
{
|
|
18106
18414
|
type: "checkbox",
|
|
@@ -18109,7 +18417,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18109
18417
|
p.lbasWaitCond = e.target.checked;
|
|
18110
18418
|
})
|
|
18111
18419
|
}
|
|
18112
|
-
), "\u7B49\u5F85\u75B2\u52B3\u6062\u590D"), /* @__PURE__ */
|
|
18420
|
+
), "\u7B49\u5F85\u75B2\u52B3\u6062\u590D"), /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18113
18421
|
"input",
|
|
18114
18422
|
{
|
|
18115
18423
|
type: "checkbox",
|
|
@@ -18118,7 +18426,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18118
18426
|
p.lbasAutoRest = e.target.checked;
|
|
18119
18427
|
})
|
|
18120
18428
|
}
|
|
18121
|
-
), "\u75B2\u52B3\u81EA\u52A8\u5207\u4F11\u606F/\u6062\u590D\u672D"), profile.isEvent && /* @__PURE__ */
|
|
18429
|
+
), "\u75B2\u52B3\u81EA\u52A8\u5207\u4F11\u606F/\u6062\u590D\u672D"), profile.isEvent && /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18122
18430
|
"input",
|
|
18123
18431
|
{
|
|
18124
18432
|
type: "checkbox",
|
|
@@ -18127,7 +18435,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18127
18435
|
p.autoChangeEventRank = e.target.checked;
|
|
18128
18436
|
})
|
|
18129
18437
|
}
|
|
18130
|
-
), "\u5207\u96BE\u5EA6\u91CD\u7F6E\u635E\u8239"), /* @__PURE__ */
|
|
18438
|
+
), "\u5207\u96BE\u5EA6\u91CD\u7F6E\u635E\u8239"), /* @__PURE__ */ import_react11.default.createElement(
|
|
18131
18439
|
"select",
|
|
18132
18440
|
{
|
|
18133
18441
|
className: "kca-select",
|
|
@@ -18136,19 +18444,19 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18136
18444
|
p.eventRank = Number(e.target.value);
|
|
18137
18445
|
})
|
|
18138
18446
|
},
|
|
18139
|
-
/* @__PURE__ */
|
|
18140
|
-
/* @__PURE__ */
|
|
18141
|
-
/* @__PURE__ */
|
|
18142
|
-
/* @__PURE__ */
|
|
18447
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 4 }, "\u7532"),
|
|
18448
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 3 }, "\u4E59"),
|
|
18449
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 2 }, "\u4E19"),
|
|
18450
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 1 }, "\u4E01")
|
|
18143
18451
|
))),
|
|
18144
|
-
/* @__PURE__ */
|
|
18452
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { justifyContent: "space-between" } }, /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "\u9646\u822A\u653B\u51FB\u70B9\u5750\u6807 (1200\xD7720\uFF0C\u53EF\u70B9 \u{1F3AF} \u76F4\u63A5\u5728\u6E38\u620F\u753B\u9762\u9009\u70B9\u6216\u6253\u5F00\u622A\u56FE\u9762\u677F)\uFF1A"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row", style: { gap: 5 } }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18145
18453
|
"button",
|
|
18146
18454
|
{
|
|
18147
18455
|
className: `kca-btn kca-btn-sm ${coordGameHudVisible ? "kca-btn-primary" : ""}`,
|
|
18148
18456
|
onClick: () => setCoordGameHudVisible((v) => !v)
|
|
18149
18457
|
},
|
|
18150
18458
|
coordGameHudVisible ? "\u{1F441}\uFE0F \u5173\u95ED\u6E38\u620F\u5750\u6807" : "\u{1F441}\uFE0F \u6E38\u620F\u663E\u793A\u5750\u6807"
|
|
18151
|
-
), /* @__PURE__ */
|
|
18459
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
18152
18460
|
"button",
|
|
18153
18461
|
{
|
|
18154
18462
|
className: "kca-btn kca-btn-sm",
|
|
@@ -18156,7 +18464,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18156
18464
|
},
|
|
18157
18465
|
"\u{1F4F8} \u622A\u56FE\u53EF\u89C6\u5316\u9009\u9646\u822A\u70B9"
|
|
18158
18466
|
))),
|
|
18159
|
-
/* @__PURE__ */
|
|
18467
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-grid" }, [0, 1, 2].map((corps) => /* @__PURE__ */ import_react11.default.createElement("div", { key: corps, className: "kca-field" }, /* @__PURE__ */ import_react11.default.createElement("label", null, "\u7B2C ", corps + 1, " \u822A\u7A7A\u961F (\u672D / \u653B\u51FB\u70B91 / \u653B\u51FB\u70B92)"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18160
18468
|
"select",
|
|
18161
18469
|
{
|
|
18162
18470
|
className: "kca-select",
|
|
@@ -18165,17 +18473,17 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18165
18473
|
p.lbasActions[corps] = Number(e.target.value);
|
|
18166
18474
|
})
|
|
18167
18475
|
},
|
|
18168
|
-
/* @__PURE__ */
|
|
18169
|
-
/* @__PURE__ */
|
|
18170
|
-
/* @__PURE__ */
|
|
18171
|
-
/* @__PURE__ */
|
|
18172
|
-
/* @__PURE__ */
|
|
18476
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 0 }, "\u5F85\u673A"),
|
|
18477
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 1 }, "\u51FA\u51FB"),
|
|
18478
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 2 }, "\u9632\u7A7A"),
|
|
18479
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 3 }, "\u9000\u907F"),
|
|
18480
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 4 }, "\u4F11\u606F")
|
|
18173
18481
|
), [0, 1].map((wave) => {
|
|
18174
18482
|
const lbasIdx = corps * 2 + wave;
|
|
18175
18483
|
const pt = profile.lbasPoints[lbasIdx] ?? { x: 0, y: 0 };
|
|
18176
18484
|
const tid = `lbas:${lbasIdx}`;
|
|
18177
18485
|
const picking = coordLivePickTarget === tid;
|
|
18178
|
-
return /* @__PURE__ */
|
|
18486
|
+
return /* @__PURE__ */ import_react11.default.createElement("div", { key: wave, className: "kca-row", style: { gap: 2 } }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18179
18487
|
"input",
|
|
18180
18488
|
{
|
|
18181
18489
|
className: "kca-input",
|
|
@@ -18189,7 +18497,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18189
18497
|
});
|
|
18190
18498
|
}
|
|
18191
18499
|
}
|
|
18192
|
-
), /* @__PURE__ */
|
|
18500
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
|
18193
18501
|
"button",
|
|
18194
18502
|
{
|
|
18195
18503
|
className: `kca-btn kca-pick-btn ${picking ? "kca-btn-primary" : ""}`,
|
|
@@ -18199,7 +18507,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18199
18507
|
picking ? "\u2026" : "\u{1F3AF}"
|
|
18200
18508
|
));
|
|
18201
18509
|
}))))),
|
|
18202
|
-
/* @__PURE__ */
|
|
18510
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18203
18511
|
"input",
|
|
18204
18512
|
{
|
|
18205
18513
|
type: "checkbox",
|
|
@@ -18208,7 +18516,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18208
18516
|
s.sortie.autoStopOnTargetDrop = e.target.checked;
|
|
18209
18517
|
})
|
|
18210
18518
|
}
|
|
18211
|
-
), "\u6389\u843D\u76EE\u6807\u8230\u5A18\u505C\u6B62"), /* @__PURE__ */
|
|
18519
|
+
), "\u6389\u843D\u76EE\u6807\u8230\u5A18\u505C\u6B62"), /* @__PURE__ */ import_react11.default.createElement(
|
|
18212
18520
|
"input",
|
|
18213
18521
|
{
|
|
18214
18522
|
className: "kca-input",
|
|
@@ -18220,7 +18528,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18220
18528
|
})
|
|
18221
18529
|
}
|
|
18222
18530
|
)),
|
|
18223
|
-
/* @__PURE__ */
|
|
18531
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-sub-box" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18224
18532
|
"input",
|
|
18225
18533
|
{
|
|
18226
18534
|
type: "checkbox",
|
|
@@ -18229,7 +18537,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18229
18537
|
s.sortie.dissolution.enabled = e.target.checked;
|
|
18230
18538
|
})
|
|
18231
18539
|
}
|
|
18232
|
-
), /* @__PURE__ */
|
|
18540
|
+
), /* @__PURE__ */ import_react11.default.createElement("strong", null, "\u8239\u4F4D\u4E0D\u8DB3\u81EA\u52A8\u89E3\u4F53")), /* @__PURE__ */ import_react11.default.createElement("span", null, "\u7A7A\u4F4D \u2264"), /* @__PURE__ */ import_react11.default.createElement(
|
|
18233
18541
|
"input",
|
|
18234
18542
|
{
|
|
18235
18543
|
type: "number",
|
|
@@ -18240,7 +18548,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18240
18548
|
s.sortie.dissolution.freeSlotThreshold = Number(e.target.value) || 0;
|
|
18241
18549
|
})
|
|
18242
18550
|
}
|
|
18243
|
-
), /* @__PURE__ */
|
|
18551
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", null, "Lv <"), /* @__PURE__ */ import_react11.default.createElement(
|
|
18244
18552
|
"input",
|
|
18245
18553
|
{
|
|
18246
18554
|
type: "number",
|
|
@@ -18251,7 +18559,7 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18251
18559
|
s.sortie.dissolution.maxLevel = Number(e.target.value) || 5;
|
|
18252
18560
|
})
|
|
18253
18561
|
}
|
|
18254
|
-
), /* @__PURE__ */
|
|
18562
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", null, "\u7A00\u6709\u5EA6"), /* @__PURE__ */ import_react11.default.createElement(
|
|
18255
18563
|
"select",
|
|
18256
18564
|
{
|
|
18257
18565
|
className: "kca-select",
|
|
@@ -18260,10 +18568,10 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18260
18568
|
s.sortie.dissolution.rarityCeiling = Number(e.target.value);
|
|
18261
18569
|
})
|
|
18262
18570
|
},
|
|
18263
|
-
/* @__PURE__ */
|
|
18264
|
-
/* @__PURE__ */
|
|
18265
|
-
/* @__PURE__ */
|
|
18266
|
-
), /* @__PURE__ */
|
|
18571
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 4 }, "\u94F6\u8272\u4EE5\u4E0B"),
|
|
18572
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 5 }, "\u91D1\u8272\u4EE5\u4E0B"),
|
|
18573
|
+
/* @__PURE__ */ import_react11.default.createElement("option", { value: 6 }, "\u8679\u8272\u4EE5\u4E0B")
|
|
18574
|
+
), /* @__PURE__ */ import_react11.default.createElement("label", { className: "kca-switch" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18267
18575
|
"input",
|
|
18268
18576
|
{
|
|
18269
18577
|
type: "checkbox",
|
|
@@ -18272,9 +18580,9 @@ var SortieTab = ({ coordinator, gameState, settings }) => {
|
|
|
18272
18580
|
s.sortie.dissolution.reserveKiraEscorts = e.target.checked;
|
|
18273
18581
|
})
|
|
18274
18582
|
}
|
|
18275
|
-
), "\u4FDD\u75592\u8258\u5237\u95EA\u72D7\u7CAE\u9A71\u9010")), /* @__PURE__ */
|
|
18583
|
+
), "\u4FDD\u75592\u8258\u5237\u95EA\u72D7\u7CAE\u9A71\u9010")), /* @__PURE__ */ import_react11.default.createElement("div", { className: "kca-chip-list" }, /* @__PURE__ */ import_react11.default.createElement("span", { className: "kca-muted" }, "\u5141\u8BB8\u89E3\u4F53\u8230\u79CD\uFF1A"), DISSOLUTION_SHIP_TYPES.map((st) => {
|
|
18276
18584
|
const checked = sortieCfg.dissolution.allowedShipTypes.includes(st.id);
|
|
18277
|
-
return /* @__PURE__ */
|
|
18585
|
+
return /* @__PURE__ */ import_react11.default.createElement("label", { key: st.id, className: "kca-switch", style: { fontSize: 11 } }, /* @__PURE__ */ import_react11.default.createElement(
|
|
18278
18586
|
"input",
|
|
18279
18587
|
{
|
|
18280
18588
|
type: "checkbox",
|
|
@@ -18296,17 +18604,17 @@ var TABS = [
|
|
|
18296
18604
|
{ key: "settings", label: "\u5B89\u5168 / \u65E5\u5FD7 / \u5BFC\u5165" }
|
|
18297
18605
|
];
|
|
18298
18606
|
var KcaNextApp = ({ coordinator }) => {
|
|
18299
|
-
const [activeTab, setActiveTab] = (0,
|
|
18300
|
-
const [legacyImportTrigger, setLegacyImportTrigger] = (0,
|
|
18301
|
-
const [snap, setSnap] = (0,
|
|
18302
|
-
const [settings, setSettings] = (0,
|
|
18303
|
-
const [gameState, setGameState] = (0,
|
|
18304
|
-
const [logs, setLogs] = (0,
|
|
18607
|
+
const [activeTab, setActiveTab] = (0, import_react12.useState)("dashboard");
|
|
18608
|
+
const [legacyImportTrigger, setLegacyImportTrigger] = (0, import_react12.useState)(0);
|
|
18609
|
+
const [snap, setSnap] = (0, import_react12.useState)(() => coordinator.getSnapshot());
|
|
18610
|
+
const [settings, setSettings] = (0, import_react12.useState)(() => ({ ...coordinator.getSettings() }));
|
|
18611
|
+
const [gameState, setGameState] = (0, import_react12.useState)(() => coordinator.bridge.getState());
|
|
18612
|
+
const [logs, setLogs] = (0, import_react12.useState)(() => [...coordinator.logger.getEntries()]);
|
|
18305
18613
|
const openLegacyMigration = () => {
|
|
18306
18614
|
setLegacyImportTrigger(nextFoldTrigger());
|
|
18307
18615
|
setActiveTab("settings");
|
|
18308
18616
|
};
|
|
18309
|
-
(0,
|
|
18617
|
+
(0, import_react12.useEffect)(() => {
|
|
18310
18618
|
const unsubCoord = coordinator.subscribe(() => {
|
|
18311
18619
|
setSnap(coordinator.getSnapshot());
|
|
18312
18620
|
setSettings({ ...coordinator.getSettings() });
|
|
@@ -18325,7 +18633,7 @@ var KcaNextApp = ({ coordinator }) => {
|
|
|
18325
18633
|
clearInterval(uiRefresh);
|
|
18326
18634
|
};
|
|
18327
18635
|
}, [coordinator]);
|
|
18328
|
-
return /* @__PURE__ */
|
|
18636
|
+
return /* @__PURE__ */ import_react12.default.createElement("div", { className: "kca-next" }, /* @__PURE__ */ import_react12.default.createElement("style", null, KCA_NEXT_CSS), /* @__PURE__ */ import_react12.default.createElement("div", { className: "kca-header" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "kca-title" }, /* @__PURE__ */ import_react12.default.createElement("span", null, "\u2693 KCA Next"), /* @__PURE__ */ import_react12.default.createElement("span", { className: "kca-badge kca-badge-ok" }, "v1.0 \u539F\u751F\u5F15\u64CE")), /* @__PURE__ */ import_react12.default.createElement("div", { className: "kca-row" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "kca-muted" }, "\u65E0 DRM \xB7 \u96F6\u72EC\u7ACB\u6D4F\u89C8\u5668 \xB7 \u8FDB\u7A0B\u5185\u76F4\u8FDE"))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "kca-tabs" }, TABS.map((t) => /* @__PURE__ */ import_react12.default.createElement(
|
|
18329
18637
|
"button",
|
|
18330
18638
|
{
|
|
18331
18639
|
key: t.key,
|
|
@@ -18333,7 +18641,7 @@ var KcaNextApp = ({ coordinator }) => {
|
|
|
18333
18641
|
onClick: () => setActiveTab(t.key)
|
|
18334
18642
|
},
|
|
18335
18643
|
t.label
|
|
18336
|
-
)), activeTab !== "plan" && /* @__PURE__ */
|
|
18644
|
+
)), activeTab !== "plan" && /* @__PURE__ */ import_react12.default.createElement("div", { className: "kca-tabs-fold" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
18337
18645
|
"button",
|
|
18338
18646
|
{
|
|
18339
18647
|
className: "kca-tab-fold-btn",
|
|
@@ -18341,7 +18649,7 @@ var KcaNextApp = ({ coordinator }) => {
|
|
|
18341
18649
|
onClick: () => setAllMountedCardsOpen(true)
|
|
18342
18650
|
},
|
|
18343
18651
|
"\u5168\u90E8\u5C55\u5F00"
|
|
18344
|
-
), /* @__PURE__ */
|
|
18652
|
+
), /* @__PURE__ */ import_react12.default.createElement(
|
|
18345
18653
|
"button",
|
|
18346
18654
|
{
|
|
18347
18655
|
className: "kca-tab-fold-btn",
|
|
@@ -18349,7 +18657,7 @@ var KcaNextApp = ({ coordinator }) => {
|
|
|
18349
18657
|
onClick: () => setAllMountedCardsOpen(false)
|
|
18350
18658
|
},
|
|
18351
18659
|
"\u5168\u90E8\u6298\u53E0"
|
|
18352
|
-
))), /* @__PURE__ */
|
|
18660
|
+
))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "kca-body" }, activeTab === "dashboard" && /* @__PURE__ */ import_react12.default.createElement(
|
|
18353
18661
|
DashboardTab,
|
|
18354
18662
|
{
|
|
18355
18663
|
coordinator,
|
|
@@ -18358,7 +18666,7 @@ var KcaNextApp = ({ coordinator }) => {
|
|
|
18358
18666
|
settings,
|
|
18359
18667
|
onOpenLegacyImport: openLegacyMigration
|
|
18360
18668
|
}
|
|
18361
|
-
), activeTab === "sortie" && /* @__PURE__ */
|
|
18669
|
+
), activeTab === "sortie" && /* @__PURE__ */ import_react12.default.createElement(SortieTab, { coordinator, snap, gameState, settings }), activeTab === "expedition" && /* @__PURE__ */ import_react12.default.createElement(ExpeditionKiraTab, { coordinator, snap, gameState, settings }), activeTab === "modules" && /* @__PURE__ */ import_react12.default.createElement(OrgPracticeQuestsTab, { coordinator, snap, gameState, settings }), activeTab === "plan" && /* @__PURE__ */ import_react12.default.createElement(PlanTab, { coordinator, snap, settings }), activeTab === "settings" && /* @__PURE__ */ import_react12.default.createElement(
|
|
18362
18670
|
SettingsLogsTab,
|
|
18363
18671
|
{
|
|
18364
18672
|
coordinator,
|
|
@@ -18419,7 +18727,7 @@ function reducer(state = { initialized: true }, _action) {
|
|
|
18419
18727
|
}
|
|
18420
18728
|
var reactClass = () => {
|
|
18421
18729
|
const coord = ensureCoordinator();
|
|
18422
|
-
return
|
|
18730
|
+
return import_react13.default.createElement(KcaNextApp, { coordinator: coord });
|
|
18423
18731
|
};
|
|
18424
18732
|
// Annotate the CommonJS export names for ESM import in node:
|
|
18425
18733
|
0 && (module.exports = {
|