dsh-lowtide 0.2.2 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +3 -3
- package/lib/client.js +1067 -275
- package/lib/client.js.map +1 -1
- package/lib/index.js +122 -42
- package/lib/types/client/i18n.d.ts +7 -0
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/store.d.ts +2 -1
- package/lib/types/src/runner.d.ts +3 -1
- package/lib/types/src/scheduler.d.ts +13 -7
- package/lib/types/src/store.d.ts +1 -0
- package/package.json +30 -31
package/lib/client.js
CHANGED
|
@@ -7,7 +7,6 @@ window.__ModuleLoader__.load({
|
|
|
7
7
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
let _deepseek_ai_dsh_client_runtime_client = require("@deepseek-ai/dsh-client-runtime/client");
|
|
11
10
|
//#region client/i18n.ts
|
|
12
11
|
/**
|
|
13
12
|
* dsh-lowtide client dictionaries (zh / en).
|
|
@@ -121,6 +120,7 @@ window.__ModuleLoader__.load({
|
|
|
121
120
|
"modal.editDesc": "原地修改,任务状态保持不变 · {id}",
|
|
122
121
|
"modal.saveEdit": "保存修改",
|
|
123
122
|
"modal.cancel": "取消",
|
|
123
|
+
"modal.close": "关闭",
|
|
124
124
|
"modal.submit": "投递",
|
|
125
125
|
"modal.promptPlaceholderSingle": "给 src/auth 模块补全所有边界情况的单元测试,描述内容越详细越好|||给 UserService 的 CRUD 接口写完整的集成测试套件,描述内容越详细越好|||给这个 REST API 端点写完整的 OpenAPI 3.0 文档,描述内容越详细越好|||把现有的 Jenkinsfile 迁移到 GitHub Actions workflow,描述内容越详细越好|||分析这段 N+1 查询日志,给出索引优化建议,描述内容越详细越好",
|
|
126
126
|
"modal.promptPlaceholderIterative": "重构用户权限中间件,每轮审查安全性直到可上线,描述内容越详细越好|||补齐支付模块的边界测试,每轮跑通再加新 case,描述内容越详细越好|||写消息队列选型的技术方案 RFC,迭代到可评审状态,描述内容越详细越好|||写 Terraform 模块管理 EKS 集群,每轮 apply 验证,描述内容越详细越好|||优化首页接口的 TTFB,每轮 profile 后针对性改进,描述内容越详细越好",
|
|
@@ -297,6 +297,12 @@ window.__ModuleLoader__.load({
|
|
|
297
297
|
"settings.batchTitle": "闲时运行窗口",
|
|
298
298
|
"settings.start": "开始",
|
|
299
299
|
"settings.end": "结束",
|
|
300
|
+
"settings.batchWindowList": "运行时段(可添加多个)",
|
|
301
|
+
"settings.addBatchWindow": "+ 添加窗口",
|
|
302
|
+
"settings.batchWindowsHint": "每个窗口每天各自动开跑一批;例如中午一段、晚上一段。",
|
|
303
|
+
"settings.batchWindowOverlap": "提示:有窗口时间重叠,重叠时段内已跑过的任务不会重复执行。",
|
|
304
|
+
"settings.batchWindowInvalid": "运行窗口时间不完整或格式不对",
|
|
305
|
+
"settings.batchWindowMin": "至少保留一个运行窗口",
|
|
300
306
|
"settings.tz": "时区(留空=你的本地时间)",
|
|
301
307
|
"settings.gateLeadMin": "提前提醒(分钟)",
|
|
302
308
|
"settings.maxTasksPerNight": "每批任务上限",
|
|
@@ -448,6 +454,7 @@ window.__ModuleLoader__.load({
|
|
|
448
454
|
"modal.editDesc": "Edits in place — task status is preserved · {id}",
|
|
449
455
|
"modal.saveEdit": "Save changes",
|
|
450
456
|
"modal.cancel": "Cancel",
|
|
457
|
+
"modal.close": "Close",
|
|
451
458
|
"modal.submit": "Submit",
|
|
452
459
|
"modal.promptPlaceholderSingle": "Write full unit tests for src/auth covering all edge cases — be as detailed as possible|||Write a complete integration test suite for the UserService CRUD API — be as detailed as possible|||Write full OpenAPI 3.0 docs for this REST endpoint — be as detailed as possible|||Migrate the existing Jenkinsfile to a GitHub Actions workflow — be as detailed as possible|||Analyze this N+1 query log and suggest index optimizations — be as detailed as possible",
|
|
453
460
|
"modal.promptPlaceholderIterative": "Refactor the auth middleware error handling, review security each round until shippable — be as detailed as possible|||Fill in edge-case tests for the payment module, pass all tests each round before adding new ones — be as detailed as possible|||Draft an RFC for message queue selection, iterate until review-ready — be as detailed as possible|||Write a Terraform module for the EKS cluster, apply and verify each round — be as detailed as possible|||Optimize the homepage TTFB, profile and improve targeted areas each round — be as detailed as possible",
|
|
@@ -624,6 +631,12 @@ window.__ModuleLoader__.load({
|
|
|
624
631
|
"settings.batchTitle": "Off-peak run window",
|
|
625
632
|
"settings.start": "Start",
|
|
626
633
|
"settings.end": "End",
|
|
634
|
+
"settings.batchWindowList": "Run windows (add as many as needed)",
|
|
635
|
+
"settings.addBatchWindow": "+ Add window",
|
|
636
|
+
"settings.batchWindowsHint": "Each window runs one batch per day — e.g. a noon slot and an evening slot.",
|
|
637
|
+
"settings.batchWindowOverlap": "Note: some windows overlap; tasks already run inside the overlap are not re-run.",
|
|
638
|
+
"settings.batchWindowInvalid": "A run window time is missing or invalid",
|
|
639
|
+
"settings.batchWindowMin": "At least one run window is required",
|
|
627
640
|
"settings.tz": "Timezone (empty = your local time)",
|
|
628
641
|
"settings.gateLeadMin": "Lead time (min)",
|
|
629
642
|
"settings.maxTasksPerNight": "Max tasks per batch",
|
|
@@ -679,8 +692,8 @@ window.__ModuleLoader__.load({
|
|
|
679
692
|
}
|
|
680
693
|
};
|
|
681
694
|
//#endregion
|
|
682
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
683
|
-
const css$13 = ".
|
|
695
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\atoms.module.css.mjs
|
|
696
|
+
const css$13 = ".CtzV7G_money,.CtzV7G_countdown{font-family:var(--ds-font-family-code);font-variant-numeric:tabular-nums;font-size:inherit;line-height:inherit}.CtzV7G_modelBadge{border:1px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary);font-family:var(--ds-font-family-code);white-space:nowrap;border-radius:4px;flex:none;align-items:center;gap:2px;padding:1px 6px;font-size:11px;line-height:16px;display:inline-flex}.CtzV7G_modelBadgeUnknown{border-color:var(--dsw-alias-state-warn-primary);color:var(--dsw-alias-state-warn-primary)}.CtzV7G_modelBadgeQ{font-weight:600}";
|
|
684
697
|
const tagId$13 = "dsh-lowtide/atoms.module.css";
|
|
685
698
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$13) + "]") === null) {
|
|
686
699
|
const tag = document.createElement("style");
|
|
@@ -690,11 +703,11 @@ window.__ModuleLoader__.load({
|
|
|
690
703
|
document.head.appendChild(tag);
|
|
691
704
|
}
|
|
692
705
|
var atoms_module_css_default = {
|
|
693
|
-
"
|
|
694
|
-
"
|
|
695
|
-
"modelBadgeUnknown": "
|
|
696
|
-
"
|
|
697
|
-
"
|
|
706
|
+
"money": "CtzV7G_money",
|
|
707
|
+
"countdown": "CtzV7G_countdown",
|
|
708
|
+
"modelBadgeUnknown": "CtzV7G_modelBadgeUnknown",
|
|
709
|
+
"modelBadgeQ": "CtzV7G_modelBadgeQ",
|
|
710
|
+
"modelBadge": "CtzV7G_modelBadge"
|
|
698
711
|
};
|
|
699
712
|
//#endregion
|
|
700
713
|
//#region client/components/atoms.tsx
|
|
@@ -750,6 +763,677 @@ window.__ModuleLoader__.load({
|
|
|
750
763
|
});
|
|
751
764
|
}
|
|
752
765
|
//#endregion
|
|
766
|
+
//#region ../../node_modules/.pnpm/zustand@4.4.7_@types+react@18.3.31_immer@10.1.1_react@18.2.0/node_modules/zustand/esm/vanilla.mjs
|
|
767
|
+
const createStoreImpl = (createState) => {
|
|
768
|
+
let state;
|
|
769
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
770
|
+
const setState = (partial, replace) => {
|
|
771
|
+
const nextState = typeof partial === "function" ? partial(state) : partial;
|
|
772
|
+
if (!Object.is(nextState, state)) {
|
|
773
|
+
const previousState = state;
|
|
774
|
+
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
775
|
+
listeners.forEach((listener) => listener(state, previousState));
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
const getState = () => state;
|
|
779
|
+
const subscribe = (listener) => {
|
|
780
|
+
listeners.add(listener);
|
|
781
|
+
return () => listeners.delete(listener);
|
|
782
|
+
};
|
|
783
|
+
const destroy = () => {
|
|
784
|
+
listeners.clear();
|
|
785
|
+
};
|
|
786
|
+
const api = {
|
|
787
|
+
setState,
|
|
788
|
+
getState,
|
|
789
|
+
subscribe,
|
|
790
|
+
destroy
|
|
791
|
+
};
|
|
792
|
+
state = createState(setState, getState, api);
|
|
793
|
+
return api;
|
|
794
|
+
};
|
|
795
|
+
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
796
|
+
//#endregion
|
|
797
|
+
//#region ../../node_modules/.pnpm/zustand@4.4.7_@types+react@18.3.31_immer@10.1.1_react@18.2.0/node_modules/zustand/esm/middleware.mjs
|
|
798
|
+
const subscribeWithSelectorImpl = (fn) => (set, get, api) => {
|
|
799
|
+
const origSubscribe = api.subscribe;
|
|
800
|
+
api.subscribe = (selector, optListener, options) => {
|
|
801
|
+
let listener = selector;
|
|
802
|
+
if (optListener) {
|
|
803
|
+
const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;
|
|
804
|
+
let currentSlice = selector(api.getState());
|
|
805
|
+
listener = (state) => {
|
|
806
|
+
const nextSlice = selector(state);
|
|
807
|
+
if (!equalityFn(currentSlice, nextSlice)) {
|
|
808
|
+
const previousSlice = currentSlice;
|
|
809
|
+
optListener(currentSlice = nextSlice, previousSlice);
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
if (options == null ? void 0 : options.fireImmediately) optListener(currentSlice, currentSlice);
|
|
813
|
+
}
|
|
814
|
+
return origSubscribe(listener);
|
|
815
|
+
};
|
|
816
|
+
return fn(set, get, api);
|
|
817
|
+
};
|
|
818
|
+
const subscribeWithSelector = subscribeWithSelectorImpl;
|
|
819
|
+
//#endregion
|
|
820
|
+
//#region ../../node_modules/.pnpm/immer@10.1.1/node_modules/immer/dist/immer.mjs
|
|
821
|
+
var NOTHING = Symbol.for("immer-nothing");
|
|
822
|
+
var DRAFTABLE = Symbol.for("immer-draftable");
|
|
823
|
+
var DRAFT_STATE = Symbol.for("immer-state");
|
|
824
|
+
function die(error, ...args) {
|
|
825
|
+
throw new Error(`[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`);
|
|
826
|
+
}
|
|
827
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
828
|
+
function isDraft(value) {
|
|
829
|
+
return !!value && !!value[DRAFT_STATE];
|
|
830
|
+
}
|
|
831
|
+
function isDraftable(value) {
|
|
832
|
+
if (!value) return false;
|
|
833
|
+
return isPlainObject(value) || Array.isArray(value) || !!value[DRAFTABLE] || !!value.constructor?.[DRAFTABLE] || isMap(value) || isSet(value);
|
|
834
|
+
}
|
|
835
|
+
var objectCtorString = Object.prototype.constructor.toString();
|
|
836
|
+
function isPlainObject(value) {
|
|
837
|
+
if (!value || typeof value !== "object") return false;
|
|
838
|
+
const proto = getPrototypeOf(value);
|
|
839
|
+
if (proto === null) return true;
|
|
840
|
+
const Ctor = Object.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
841
|
+
if (Ctor === Object) return true;
|
|
842
|
+
return typeof Ctor == "function" && Function.toString.call(Ctor) === objectCtorString;
|
|
843
|
+
}
|
|
844
|
+
function each(obj, iter) {
|
|
845
|
+
if (getArchtype(obj) === 0) Reflect.ownKeys(obj).forEach((key) => {
|
|
846
|
+
iter(key, obj[key], obj);
|
|
847
|
+
});
|
|
848
|
+
else obj.forEach((entry, index) => iter(index, entry, obj));
|
|
849
|
+
}
|
|
850
|
+
function getArchtype(thing) {
|
|
851
|
+
const state = thing[DRAFT_STATE];
|
|
852
|
+
return state ? state.type_ : Array.isArray(thing) ? 1 : isMap(thing) ? 2 : isSet(thing) ? 3 : 0;
|
|
853
|
+
}
|
|
854
|
+
function has(thing, prop) {
|
|
855
|
+
return getArchtype(thing) === 2 ? thing.has(prop) : Object.prototype.hasOwnProperty.call(thing, prop);
|
|
856
|
+
}
|
|
857
|
+
function set(thing, propOrOldValue, value) {
|
|
858
|
+
const t = getArchtype(thing);
|
|
859
|
+
if (t === 2) thing.set(propOrOldValue, value);
|
|
860
|
+
else if (t === 3) thing.add(value);
|
|
861
|
+
else thing[propOrOldValue] = value;
|
|
862
|
+
}
|
|
863
|
+
function is(x, y) {
|
|
864
|
+
if (x === y) return x !== 0 || 1 / x === 1 / y;
|
|
865
|
+
else return x !== x && y !== y;
|
|
866
|
+
}
|
|
867
|
+
function isMap(target) {
|
|
868
|
+
return target instanceof Map;
|
|
869
|
+
}
|
|
870
|
+
function isSet(target) {
|
|
871
|
+
return target instanceof Set;
|
|
872
|
+
}
|
|
873
|
+
function latest(state) {
|
|
874
|
+
return state.copy_ || state.base_;
|
|
875
|
+
}
|
|
876
|
+
function shallowCopy(base, strict) {
|
|
877
|
+
if (isMap(base)) return new Map(base);
|
|
878
|
+
if (isSet(base)) return new Set(base);
|
|
879
|
+
if (Array.isArray(base)) return Array.prototype.slice.call(base);
|
|
880
|
+
const isPlain = isPlainObject(base);
|
|
881
|
+
if (strict === true || strict === "class_only" && !isPlain) {
|
|
882
|
+
const descriptors = Object.getOwnPropertyDescriptors(base);
|
|
883
|
+
delete descriptors[DRAFT_STATE];
|
|
884
|
+
let keys = Reflect.ownKeys(descriptors);
|
|
885
|
+
for (let i = 0; i < keys.length; i++) {
|
|
886
|
+
const key = keys[i];
|
|
887
|
+
const desc = descriptors[key];
|
|
888
|
+
if (desc.writable === false) {
|
|
889
|
+
desc.writable = true;
|
|
890
|
+
desc.configurable = true;
|
|
891
|
+
}
|
|
892
|
+
if (desc.get || desc.set) descriptors[key] = {
|
|
893
|
+
configurable: true,
|
|
894
|
+
writable: true,
|
|
895
|
+
enumerable: desc.enumerable,
|
|
896
|
+
value: base[key]
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
return Object.create(getPrototypeOf(base), descriptors);
|
|
900
|
+
} else {
|
|
901
|
+
const proto = getPrototypeOf(base);
|
|
902
|
+
if (proto !== null && isPlain) return { ...base };
|
|
903
|
+
const obj = Object.create(proto);
|
|
904
|
+
return Object.assign(obj, base);
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
function freeze(obj, deep = false) {
|
|
908
|
+
if (isFrozen(obj) || isDraft(obj) || !isDraftable(obj)) return obj;
|
|
909
|
+
if (getArchtype(obj) > 1) obj.set = obj.add = obj.clear = obj.delete = dontMutateFrozenCollections;
|
|
910
|
+
Object.freeze(obj);
|
|
911
|
+
if (deep) Object.entries(obj).forEach(([key, value]) => freeze(value, true));
|
|
912
|
+
return obj;
|
|
913
|
+
}
|
|
914
|
+
function dontMutateFrozenCollections() {
|
|
915
|
+
die(2);
|
|
916
|
+
}
|
|
917
|
+
function isFrozen(obj) {
|
|
918
|
+
return Object.isFrozen(obj);
|
|
919
|
+
}
|
|
920
|
+
var plugins = {};
|
|
921
|
+
function getPlugin(pluginKey) {
|
|
922
|
+
const plugin = plugins[pluginKey];
|
|
923
|
+
if (!plugin) die(0, pluginKey);
|
|
924
|
+
return plugin;
|
|
925
|
+
}
|
|
926
|
+
var currentScope;
|
|
927
|
+
function getCurrentScope() {
|
|
928
|
+
return currentScope;
|
|
929
|
+
}
|
|
930
|
+
function createScope(parent_, immer_) {
|
|
931
|
+
return {
|
|
932
|
+
drafts_: [],
|
|
933
|
+
parent_,
|
|
934
|
+
immer_,
|
|
935
|
+
canAutoFreeze_: true,
|
|
936
|
+
unfinalizedDrafts_: 0
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
function usePatchesInScope(scope, patchListener) {
|
|
940
|
+
if (patchListener) {
|
|
941
|
+
getPlugin("Patches");
|
|
942
|
+
scope.patches_ = [];
|
|
943
|
+
scope.inversePatches_ = [];
|
|
944
|
+
scope.patchListener_ = patchListener;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
function revokeScope(scope) {
|
|
948
|
+
leaveScope(scope);
|
|
949
|
+
scope.drafts_.forEach(revokeDraft);
|
|
950
|
+
scope.drafts_ = null;
|
|
951
|
+
}
|
|
952
|
+
function leaveScope(scope) {
|
|
953
|
+
if (scope === currentScope) currentScope = scope.parent_;
|
|
954
|
+
}
|
|
955
|
+
function enterScope(immer2) {
|
|
956
|
+
return currentScope = createScope(currentScope, immer2);
|
|
957
|
+
}
|
|
958
|
+
function revokeDraft(draft) {
|
|
959
|
+
const state = draft[DRAFT_STATE];
|
|
960
|
+
if (state.type_ === 0 || state.type_ === 1) state.revoke_();
|
|
961
|
+
else state.revoked_ = true;
|
|
962
|
+
}
|
|
963
|
+
function processResult(result, scope) {
|
|
964
|
+
scope.unfinalizedDrafts_ = scope.drafts_.length;
|
|
965
|
+
const baseDraft = scope.drafts_[0];
|
|
966
|
+
if (result !== void 0 && result !== baseDraft) {
|
|
967
|
+
if (baseDraft[DRAFT_STATE].modified_) {
|
|
968
|
+
revokeScope(scope);
|
|
969
|
+
die(4);
|
|
970
|
+
}
|
|
971
|
+
if (isDraftable(result)) {
|
|
972
|
+
result = finalize(scope, result);
|
|
973
|
+
if (!scope.parent_) maybeFreeze(scope, result);
|
|
974
|
+
}
|
|
975
|
+
if (scope.patches_) getPlugin("Patches").generateReplacementPatches_(baseDraft[DRAFT_STATE].base_, result, scope.patches_, scope.inversePatches_);
|
|
976
|
+
} else result = finalize(scope, baseDraft, []);
|
|
977
|
+
revokeScope(scope);
|
|
978
|
+
if (scope.patches_) scope.patchListener_(scope.patches_, scope.inversePatches_);
|
|
979
|
+
return result !== NOTHING ? result : void 0;
|
|
980
|
+
}
|
|
981
|
+
function finalize(rootScope, value, path) {
|
|
982
|
+
if (isFrozen(value)) return value;
|
|
983
|
+
const state = value[DRAFT_STATE];
|
|
984
|
+
if (!state) {
|
|
985
|
+
each(value, (key, childValue) => finalizeProperty(rootScope, state, value, key, childValue, path));
|
|
986
|
+
return value;
|
|
987
|
+
}
|
|
988
|
+
if (state.scope_ !== rootScope) return value;
|
|
989
|
+
if (!state.modified_) {
|
|
990
|
+
maybeFreeze(rootScope, state.base_, true);
|
|
991
|
+
return state.base_;
|
|
992
|
+
}
|
|
993
|
+
if (!state.finalized_) {
|
|
994
|
+
state.finalized_ = true;
|
|
995
|
+
state.scope_.unfinalizedDrafts_--;
|
|
996
|
+
const result = state.copy_;
|
|
997
|
+
let resultEach = result;
|
|
998
|
+
let isSet2 = false;
|
|
999
|
+
if (state.type_ === 3) {
|
|
1000
|
+
resultEach = new Set(result);
|
|
1001
|
+
result.clear();
|
|
1002
|
+
isSet2 = true;
|
|
1003
|
+
}
|
|
1004
|
+
each(resultEach, (key, childValue) => finalizeProperty(rootScope, state, result, key, childValue, path, isSet2));
|
|
1005
|
+
maybeFreeze(rootScope, result, false);
|
|
1006
|
+
if (path && rootScope.patches_) getPlugin("Patches").generatePatches_(state, path, rootScope.patches_, rootScope.inversePatches_);
|
|
1007
|
+
}
|
|
1008
|
+
return state.copy_;
|
|
1009
|
+
}
|
|
1010
|
+
function finalizeProperty(rootScope, parentState, targetObject, prop, childValue, rootPath, targetIsSet) {
|
|
1011
|
+
if (isDraft(childValue)) {
|
|
1012
|
+
const res = finalize(rootScope, childValue, rootPath && parentState && parentState.type_ !== 3 && !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0);
|
|
1013
|
+
set(targetObject, prop, res);
|
|
1014
|
+
if (isDraft(res)) rootScope.canAutoFreeze_ = false;
|
|
1015
|
+
else return;
|
|
1016
|
+
} else if (targetIsSet) targetObject.add(childValue);
|
|
1017
|
+
if (isDraftable(childValue) && !isFrozen(childValue)) {
|
|
1018
|
+
if (!rootScope.immer_.autoFreeze_ && rootScope.unfinalizedDrafts_ < 1) return;
|
|
1019
|
+
finalize(rootScope, childValue);
|
|
1020
|
+
if ((!parentState || !parentState.scope_.parent_) && typeof prop !== "symbol" && Object.prototype.propertyIsEnumerable.call(targetObject, prop)) maybeFreeze(rootScope, childValue);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
function maybeFreeze(scope, value, deep = false) {
|
|
1024
|
+
if (!scope.parent_ && scope.immer_.autoFreeze_ && scope.canAutoFreeze_) freeze(value, deep);
|
|
1025
|
+
}
|
|
1026
|
+
function createProxyProxy(base, parent) {
|
|
1027
|
+
const isArray = Array.isArray(base);
|
|
1028
|
+
const state = {
|
|
1029
|
+
type_: isArray ? 1 : 0,
|
|
1030
|
+
scope_: parent ? parent.scope_ : getCurrentScope(),
|
|
1031
|
+
modified_: false,
|
|
1032
|
+
finalized_: false,
|
|
1033
|
+
assigned_: {},
|
|
1034
|
+
parent_: parent,
|
|
1035
|
+
base_: base,
|
|
1036
|
+
draft_: null,
|
|
1037
|
+
copy_: null,
|
|
1038
|
+
revoke_: null,
|
|
1039
|
+
isManual_: false
|
|
1040
|
+
};
|
|
1041
|
+
let target = state;
|
|
1042
|
+
let traps = objectTraps;
|
|
1043
|
+
if (isArray) {
|
|
1044
|
+
target = [state];
|
|
1045
|
+
traps = arrayTraps;
|
|
1046
|
+
}
|
|
1047
|
+
const { revoke, proxy } = Proxy.revocable(target, traps);
|
|
1048
|
+
state.draft_ = proxy;
|
|
1049
|
+
state.revoke_ = revoke;
|
|
1050
|
+
return proxy;
|
|
1051
|
+
}
|
|
1052
|
+
var objectTraps = {
|
|
1053
|
+
get(state, prop) {
|
|
1054
|
+
if (prop === DRAFT_STATE) return state;
|
|
1055
|
+
const source = latest(state);
|
|
1056
|
+
if (!has(source, prop)) return readPropFromProto(state, source, prop);
|
|
1057
|
+
const value = source[prop];
|
|
1058
|
+
if (state.finalized_ || !isDraftable(value)) return value;
|
|
1059
|
+
if (value === peek(state.base_, prop)) {
|
|
1060
|
+
prepareCopy(state);
|
|
1061
|
+
return state.copy_[prop] = createProxy(value, state);
|
|
1062
|
+
}
|
|
1063
|
+
return value;
|
|
1064
|
+
},
|
|
1065
|
+
has(state, prop) {
|
|
1066
|
+
return prop in latest(state);
|
|
1067
|
+
},
|
|
1068
|
+
ownKeys(state) {
|
|
1069
|
+
return Reflect.ownKeys(latest(state));
|
|
1070
|
+
},
|
|
1071
|
+
set(state, prop, value) {
|
|
1072
|
+
const desc = getDescriptorFromProto(latest(state), prop);
|
|
1073
|
+
if (desc?.set) {
|
|
1074
|
+
desc.set.call(state.draft_, value);
|
|
1075
|
+
return true;
|
|
1076
|
+
}
|
|
1077
|
+
if (!state.modified_) {
|
|
1078
|
+
const current2 = peek(latest(state), prop);
|
|
1079
|
+
const currentState = current2?.[DRAFT_STATE];
|
|
1080
|
+
if (currentState && currentState.base_ === value) {
|
|
1081
|
+
state.copy_[prop] = value;
|
|
1082
|
+
state.assigned_[prop] = false;
|
|
1083
|
+
return true;
|
|
1084
|
+
}
|
|
1085
|
+
if (is(value, current2) && (value !== void 0 || has(state.base_, prop))) return true;
|
|
1086
|
+
prepareCopy(state);
|
|
1087
|
+
markChanged(state);
|
|
1088
|
+
}
|
|
1089
|
+
if (state.copy_[prop] === value && (value !== void 0 || prop in state.copy_) || Number.isNaN(value) && Number.isNaN(state.copy_[prop])) return true;
|
|
1090
|
+
state.copy_[prop] = value;
|
|
1091
|
+
state.assigned_[prop] = true;
|
|
1092
|
+
return true;
|
|
1093
|
+
},
|
|
1094
|
+
deleteProperty(state, prop) {
|
|
1095
|
+
if (peek(state.base_, prop) !== void 0 || prop in state.base_) {
|
|
1096
|
+
state.assigned_[prop] = false;
|
|
1097
|
+
prepareCopy(state);
|
|
1098
|
+
markChanged(state);
|
|
1099
|
+
} else delete state.assigned_[prop];
|
|
1100
|
+
if (state.copy_) delete state.copy_[prop];
|
|
1101
|
+
return true;
|
|
1102
|
+
},
|
|
1103
|
+
getOwnPropertyDescriptor(state, prop) {
|
|
1104
|
+
const owner = latest(state);
|
|
1105
|
+
const desc = Reflect.getOwnPropertyDescriptor(owner, prop);
|
|
1106
|
+
if (!desc) return desc;
|
|
1107
|
+
return {
|
|
1108
|
+
writable: true,
|
|
1109
|
+
configurable: state.type_ !== 1 || prop !== "length",
|
|
1110
|
+
enumerable: desc.enumerable,
|
|
1111
|
+
value: owner[prop]
|
|
1112
|
+
};
|
|
1113
|
+
},
|
|
1114
|
+
defineProperty() {
|
|
1115
|
+
die(11);
|
|
1116
|
+
},
|
|
1117
|
+
getPrototypeOf(state) {
|
|
1118
|
+
return getPrototypeOf(state.base_);
|
|
1119
|
+
},
|
|
1120
|
+
setPrototypeOf() {
|
|
1121
|
+
die(12);
|
|
1122
|
+
}
|
|
1123
|
+
};
|
|
1124
|
+
var arrayTraps = {};
|
|
1125
|
+
each(objectTraps, (key, fn) => {
|
|
1126
|
+
arrayTraps[key] = function() {
|
|
1127
|
+
arguments[0] = arguments[0][0];
|
|
1128
|
+
return fn.apply(this, arguments);
|
|
1129
|
+
};
|
|
1130
|
+
});
|
|
1131
|
+
arrayTraps.deleteProperty = function(state, prop) {
|
|
1132
|
+
return arrayTraps.set.call(this, state, prop, void 0);
|
|
1133
|
+
};
|
|
1134
|
+
arrayTraps.set = function(state, prop, value) {
|
|
1135
|
+
return objectTraps.set.call(this, state[0], prop, value, state[0]);
|
|
1136
|
+
};
|
|
1137
|
+
function peek(draft, prop) {
|
|
1138
|
+
const state = draft[DRAFT_STATE];
|
|
1139
|
+
return (state ? latest(state) : draft)[prop];
|
|
1140
|
+
}
|
|
1141
|
+
function readPropFromProto(state, source, prop) {
|
|
1142
|
+
const desc = getDescriptorFromProto(source, prop);
|
|
1143
|
+
return desc ? `value` in desc ? desc.value : desc.get?.call(state.draft_) : void 0;
|
|
1144
|
+
}
|
|
1145
|
+
function getDescriptorFromProto(source, prop) {
|
|
1146
|
+
if (!(prop in source)) return void 0;
|
|
1147
|
+
let proto = getPrototypeOf(source);
|
|
1148
|
+
while (proto) {
|
|
1149
|
+
const desc = Object.getOwnPropertyDescriptor(proto, prop);
|
|
1150
|
+
if (desc) return desc;
|
|
1151
|
+
proto = getPrototypeOf(proto);
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
function markChanged(state) {
|
|
1155
|
+
if (!state.modified_) {
|
|
1156
|
+
state.modified_ = true;
|
|
1157
|
+
if (state.parent_) markChanged(state.parent_);
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
function prepareCopy(state) {
|
|
1161
|
+
if (!state.copy_) state.copy_ = shallowCopy(state.base_, state.scope_.immer_.useStrictShallowCopy_);
|
|
1162
|
+
}
|
|
1163
|
+
var Immer2 = class {
|
|
1164
|
+
constructor(config) {
|
|
1165
|
+
this.autoFreeze_ = true;
|
|
1166
|
+
this.useStrictShallowCopy_ = false;
|
|
1167
|
+
/**
|
|
1168
|
+
* The `produce` function takes a value and a "recipe function" (whose
|
|
1169
|
+
* return value often depends on the base state). The recipe function is
|
|
1170
|
+
* free to mutate its first argument however it wants. All mutations are
|
|
1171
|
+
* only ever applied to a __copy__ of the base state.
|
|
1172
|
+
*
|
|
1173
|
+
* Pass only a function to create a "curried producer" which relieves you
|
|
1174
|
+
* from passing the recipe function every time.
|
|
1175
|
+
*
|
|
1176
|
+
* Only plain objects and arrays are made mutable. All other objects are
|
|
1177
|
+
* considered uncopyable.
|
|
1178
|
+
*
|
|
1179
|
+
* Note: This function is __bound__ to its `Immer` instance.
|
|
1180
|
+
*
|
|
1181
|
+
* @param {any} base - the initial state
|
|
1182
|
+
* @param {Function} recipe - function that receives a proxy of the base state as first argument and which can be freely modified
|
|
1183
|
+
* @param {Function} patchListener - optional function that will be called with all the patches produced here
|
|
1184
|
+
* @returns {any} a new state, or the initial state if nothing was modified
|
|
1185
|
+
*/
|
|
1186
|
+
this.produce = (base, recipe, patchListener) => {
|
|
1187
|
+
if (typeof base === "function" && typeof recipe !== "function") {
|
|
1188
|
+
const defaultBase = recipe;
|
|
1189
|
+
recipe = base;
|
|
1190
|
+
const self = this;
|
|
1191
|
+
return function curriedProduce(base2 = defaultBase, ...args) {
|
|
1192
|
+
return self.produce(base2, (draft) => recipe.call(this, draft, ...args));
|
|
1193
|
+
};
|
|
1194
|
+
}
|
|
1195
|
+
if (typeof recipe !== "function") die(6);
|
|
1196
|
+
if (patchListener !== void 0 && typeof patchListener !== "function") die(7);
|
|
1197
|
+
let result;
|
|
1198
|
+
if (isDraftable(base)) {
|
|
1199
|
+
const scope = enterScope(this);
|
|
1200
|
+
const proxy = createProxy(base, void 0);
|
|
1201
|
+
let hasError = true;
|
|
1202
|
+
try {
|
|
1203
|
+
result = recipe(proxy);
|
|
1204
|
+
hasError = false;
|
|
1205
|
+
} finally {
|
|
1206
|
+
if (hasError) revokeScope(scope);
|
|
1207
|
+
else leaveScope(scope);
|
|
1208
|
+
}
|
|
1209
|
+
usePatchesInScope(scope, patchListener);
|
|
1210
|
+
return processResult(result, scope);
|
|
1211
|
+
} else if (!base || typeof base !== "object") {
|
|
1212
|
+
result = recipe(base);
|
|
1213
|
+
if (result === void 0) result = base;
|
|
1214
|
+
if (result === NOTHING) result = void 0;
|
|
1215
|
+
if (this.autoFreeze_) freeze(result, true);
|
|
1216
|
+
if (patchListener) {
|
|
1217
|
+
const p = [];
|
|
1218
|
+
const ip = [];
|
|
1219
|
+
getPlugin("Patches").generateReplacementPatches_(base, result, p, ip);
|
|
1220
|
+
patchListener(p, ip);
|
|
1221
|
+
}
|
|
1222
|
+
return result;
|
|
1223
|
+
} else die(1, base);
|
|
1224
|
+
};
|
|
1225
|
+
this.produceWithPatches = (base, recipe) => {
|
|
1226
|
+
if (typeof base === "function") return (state, ...args) => this.produceWithPatches(state, (draft) => base(draft, ...args));
|
|
1227
|
+
let patches, inversePatches;
|
|
1228
|
+
return [
|
|
1229
|
+
this.produce(base, recipe, (p, ip) => {
|
|
1230
|
+
patches = p;
|
|
1231
|
+
inversePatches = ip;
|
|
1232
|
+
}),
|
|
1233
|
+
patches,
|
|
1234
|
+
inversePatches
|
|
1235
|
+
];
|
|
1236
|
+
};
|
|
1237
|
+
if (typeof config?.autoFreeze === "boolean") this.setAutoFreeze(config.autoFreeze);
|
|
1238
|
+
if (typeof config?.useStrictShallowCopy === "boolean") this.setUseStrictShallowCopy(config.useStrictShallowCopy);
|
|
1239
|
+
}
|
|
1240
|
+
createDraft(base) {
|
|
1241
|
+
if (!isDraftable(base)) die(8);
|
|
1242
|
+
if (isDraft(base)) base = current(base);
|
|
1243
|
+
const scope = enterScope(this);
|
|
1244
|
+
const proxy = createProxy(base, void 0);
|
|
1245
|
+
proxy[DRAFT_STATE].isManual_ = true;
|
|
1246
|
+
leaveScope(scope);
|
|
1247
|
+
return proxy;
|
|
1248
|
+
}
|
|
1249
|
+
finishDraft(draft, patchListener) {
|
|
1250
|
+
const state = draft && draft[DRAFT_STATE];
|
|
1251
|
+
if (!state || !state.isManual_) die(9);
|
|
1252
|
+
const { scope_: scope } = state;
|
|
1253
|
+
usePatchesInScope(scope, patchListener);
|
|
1254
|
+
return processResult(void 0, scope);
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Pass true to automatically freeze all copies created by Immer.
|
|
1258
|
+
*
|
|
1259
|
+
* By default, auto-freezing is enabled.
|
|
1260
|
+
*/
|
|
1261
|
+
setAutoFreeze(value) {
|
|
1262
|
+
this.autoFreeze_ = value;
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* Pass true to enable strict shallow copy.
|
|
1266
|
+
*
|
|
1267
|
+
* By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
|
|
1268
|
+
*/
|
|
1269
|
+
setUseStrictShallowCopy(value) {
|
|
1270
|
+
this.useStrictShallowCopy_ = value;
|
|
1271
|
+
}
|
|
1272
|
+
applyPatches(base, patches) {
|
|
1273
|
+
let i;
|
|
1274
|
+
for (i = patches.length - 1; i >= 0; i--) {
|
|
1275
|
+
const patch = patches[i];
|
|
1276
|
+
if (patch.path.length === 0 && patch.op === "replace") {
|
|
1277
|
+
base = patch.value;
|
|
1278
|
+
break;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
if (i > -1) patches = patches.slice(i + 1);
|
|
1282
|
+
const applyPatchesImpl = getPlugin("Patches").applyPatches_;
|
|
1283
|
+
if (isDraft(base)) return applyPatchesImpl(base, patches);
|
|
1284
|
+
return this.produce(base, (draft) => applyPatchesImpl(draft, patches));
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
function createProxy(value, parent) {
|
|
1288
|
+
const draft = isMap(value) ? getPlugin("MapSet").proxyMap_(value, parent) : isSet(value) ? getPlugin("MapSet").proxySet_(value, parent) : createProxyProxy(value, parent);
|
|
1289
|
+
(parent ? parent.scope_ : getCurrentScope()).drafts_.push(draft);
|
|
1290
|
+
return draft;
|
|
1291
|
+
}
|
|
1292
|
+
function current(value) {
|
|
1293
|
+
if (!isDraft(value)) die(10, value);
|
|
1294
|
+
return currentImpl(value);
|
|
1295
|
+
}
|
|
1296
|
+
function currentImpl(value) {
|
|
1297
|
+
if (!isDraftable(value) || isFrozen(value)) return value;
|
|
1298
|
+
const state = value[DRAFT_STATE];
|
|
1299
|
+
let copy;
|
|
1300
|
+
if (state) {
|
|
1301
|
+
if (!state.modified_) return state.base_;
|
|
1302
|
+
state.finalized_ = true;
|
|
1303
|
+
copy = shallowCopy(value, state.scope_.immer_.useStrictShallowCopy_);
|
|
1304
|
+
} else copy = shallowCopy(value, true);
|
|
1305
|
+
each(copy, (key, childValue) => {
|
|
1306
|
+
set(copy, key, currentImpl(childValue));
|
|
1307
|
+
});
|
|
1308
|
+
if (state) state.finalized_ = false;
|
|
1309
|
+
return copy;
|
|
1310
|
+
}
|
|
1311
|
+
var immer = new Immer2();
|
|
1312
|
+
var produce = immer.produce;
|
|
1313
|
+
immer.produceWithPatches.bind(immer);
|
|
1314
|
+
immer.setAutoFreeze.bind(immer);
|
|
1315
|
+
immer.setUseStrictShallowCopy.bind(immer);
|
|
1316
|
+
immer.applyPatches.bind(immer);
|
|
1317
|
+
immer.createDraft.bind(immer);
|
|
1318
|
+
immer.finishDraft.bind(immer);
|
|
1319
|
+
//#endregion
|
|
1320
|
+
//#region ../../node_modules/.pnpm/@deepseek-ai+dsh-client-sto_4dc585899bc1cce22770d5d315f9a979/node_modules/@deepseek-ai/dsh-client-store/lib/index.js
|
|
1321
|
+
/**
|
|
1322
|
+
* React-free snapshot store engine (zustand vanilla + immer + subscribeWithSelector +
|
|
1323
|
+
* rafFlush middleware + opt-in persist + dev freeze) plus the declarative
|
|
1324
|
+
* shell over it: {@link defineStore} bakes an init/persist/actions literal
|
|
1325
|
+
* into a {@link StoreHandle}, the registration-side store seat of slot
|
|
1326
|
+
* terminals. Engine products are bare observables — subscribe/getSnapshot/
|
|
1327
|
+
* update/set, NO selector hook. Hook synthesis is ui-renderer's (the one
|
|
1328
|
+
* uSES bridge, cached per source at the binding site).
|
|
1329
|
+
*/
|
|
1330
|
+
/**
|
|
1331
|
+
* Notify an observer set without allowing one callback to starve the rest.
|
|
1332
|
+
* @param listeners - current observer callbacks; copied before dispatch.
|
|
1333
|
+
* @param label - diagnostic owner prefix.
|
|
1334
|
+
* @param args - callback arguments.
|
|
1335
|
+
*/
|
|
1336
|
+
function notifySubscribers(listeners, label, ...args) {
|
|
1337
|
+
for (const listener of [...listeners]) try {
|
|
1338
|
+
listener(...args);
|
|
1339
|
+
} catch (error) {
|
|
1340
|
+
console.error(`${label} subscriber failed:`, error);
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
/** Batches subscriber notification into one flush per animation frame. */
|
|
1344
|
+
function rafBatch(notify) {
|
|
1345
|
+
const schedule = typeof requestAnimationFrame === "function" ? (fn) => {
|
|
1346
|
+
requestAnimationFrame(() => {
|
|
1347
|
+
fn();
|
|
1348
|
+
});
|
|
1349
|
+
} : (fn) => {
|
|
1350
|
+
queueMicrotask(fn);
|
|
1351
|
+
};
|
|
1352
|
+
let scheduled = false;
|
|
1353
|
+
return () => {
|
|
1354
|
+
if (scheduled) return;
|
|
1355
|
+
scheduled = true;
|
|
1356
|
+
schedule(() => {
|
|
1357
|
+
scheduled = false;
|
|
1358
|
+
notify();
|
|
1359
|
+
});
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Create a snapshot store.
|
|
1364
|
+
*
|
|
1365
|
+
* Flush default is 'sync' (controlled inputs need same-tick echo); frame-driven
|
|
1366
|
+
* stores opt into 'raf', where a frame's worth of updates coalesces into one
|
|
1367
|
+
* notification. Known raf-mode tradeoff: a component mounting mid-frame reads
|
|
1368
|
+
* fresh state while existing subscribers hear it next flush — transient
|
|
1369
|
+
* frame-level skew, same nature as the object layer's microtask batching.
|
|
1370
|
+
*
|
|
1371
|
+
* @param init - initial state.
|
|
1372
|
+
* @param opts - flush mode and opt-in persistence (localStorage, keyed by name).
|
|
1373
|
+
* @returns the store.
|
|
1374
|
+
*/
|
|
1375
|
+
function createSnapshotStore(init, opts) {
|
|
1376
|
+
const withSelector = subscribeWithSelector(() => init);
|
|
1377
|
+
const api = createStore()(withSelector);
|
|
1378
|
+
if (opts?.persist) attachPersistence(api, opts.persist.name);
|
|
1379
|
+
let subscribe = (fn) => api.subscribe(() => {
|
|
1380
|
+
notifySubscribers([fn], "[client-store]");
|
|
1381
|
+
});
|
|
1382
|
+
if (opts?.flush === "raf") {
|
|
1383
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
1384
|
+
const flush = rafBatch(() => {
|
|
1385
|
+
notifySubscribers(listeners, "[client-store]");
|
|
1386
|
+
});
|
|
1387
|
+
api.subscribe(flush);
|
|
1388
|
+
subscribe = (fn) => {
|
|
1389
|
+
listeners.add(fn);
|
|
1390
|
+
return () => {
|
|
1391
|
+
listeners.delete(fn);
|
|
1392
|
+
};
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
return {
|
|
1396
|
+
getSnapshot: () => api.getState(),
|
|
1397
|
+
subscribe: (fn) => subscribe(fn),
|
|
1398
|
+
update: (mutator) => {
|
|
1399
|
+
api.setState(produce(api.getState(), (draft) => {
|
|
1400
|
+
mutator(draft);
|
|
1401
|
+
}), true);
|
|
1402
|
+
},
|
|
1403
|
+
set: (next) => {
|
|
1404
|
+
api.setState(devFreeze(next), true);
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Whole-value JSON persistence to localStorage. Hand-rolled instead of the
|
|
1410
|
+
* zustand persist middleware: its write path spreads state into an object
|
|
1411
|
+
* (`partialize({ ...get() })`), exploding primitive state (a persisted string
|
|
1412
|
+
* draft becomes {0:'h',1:'e',...}) — not fixable via merge/deserialize options
|
|
1413
|
+
* because the corruption happens before serialization. Storage failures
|
|
1414
|
+
* (quota, private mode) only disable persistence, never break the store.
|
|
1415
|
+
*/
|
|
1416
|
+
function attachPersistence(api, name) {
|
|
1417
|
+
if (typeof localStorage === "undefined") return;
|
|
1418
|
+
try {
|
|
1419
|
+
const raw = localStorage.getItem(name);
|
|
1420
|
+
if (raw !== null) api.setState(devFreeze(JSON.parse(raw)), true);
|
|
1421
|
+
} catch (error) {
|
|
1422
|
+
console.error(`snapshot store '${name}' rehydration failed:`, error);
|
|
1423
|
+
}
|
|
1424
|
+
api.subscribe((state) => {
|
|
1425
|
+
try {
|
|
1426
|
+
localStorage.setItem(name, JSON.stringify(state));
|
|
1427
|
+
} catch (error) {
|
|
1428
|
+
console.error(`snapshot store '${name}' persistence failed:`, error);
|
|
1429
|
+
}
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
/** Deep-freeze draftable wholesale-set state outside production: set() bypasses immer's freeze. */
|
|
1433
|
+
function devFreeze(value) {
|
|
1434
|
+
return freeze(value, true);
|
|
1435
|
+
}
|
|
1436
|
+
//#endregion
|
|
753
1437
|
//#region ../core/src/windows.ts
|
|
754
1438
|
const DEFAULT_MULTIPLIER = {
|
|
755
1439
|
peak: 2,
|
|
@@ -759,7 +1443,7 @@ window.__ModuleLoader__.load({
|
|
|
759
1443
|
function systemTimeZone() {
|
|
760
1444
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
761
1445
|
}
|
|
762
|
-
function minutesOf$
|
|
1446
|
+
function minutesOf$2(hhmm) {
|
|
763
1447
|
const match = /^(\d{1,2}):(\d{2})$/.exec(hhmm);
|
|
764
1448
|
if (match === null) throw new Error(`invalid HH:MM time "${hhmm}"`);
|
|
765
1449
|
const h = Number(match[1]);
|
|
@@ -834,7 +1518,7 @@ window.__ModuleLoader__.load({
|
|
|
834
1518
|
for (const window of windows) {
|
|
835
1519
|
const { minutes, weekday } = localParts(when, window.tz ?? defaultTz);
|
|
836
1520
|
if (!matchesDays(window.days, weekday)) continue;
|
|
837
|
-
if (inRange(minutes, minutesOf$
|
|
1521
|
+
if (inRange(minutes, minutesOf$2(window.start), minutesOf$2(window.end))) return {
|
|
838
1522
|
level: window.level,
|
|
839
1523
|
multiplier: window.multiplier ?? DEFAULT_MULTIPLIER[window.level],
|
|
840
1524
|
window
|
|
@@ -862,8 +1546,8 @@ window.__ModuleLoader__.load({
|
|
|
862
1546
|
const probe = addDaysInTz(when, tz, day);
|
|
863
1547
|
const { minutes, weekday } = localParts(probe, tz);
|
|
864
1548
|
if (!matchesDays(window.days, weekday)) continue;
|
|
865
|
-
const start = minutesOf$
|
|
866
|
-
const end = minutesOf$
|
|
1549
|
+
const start = minutesOf$2(window.start);
|
|
1550
|
+
const end = minutesOf$2(window.end);
|
|
867
1551
|
const boundaries = end === start ? [start] : [start, end];
|
|
868
1552
|
for (const boundary of boundaries) {
|
|
869
1553
|
const candidate = new Date(probe.getTime() + (boundary - minutes) * 6e4);
|
|
@@ -1108,7 +1792,7 @@ window.__ModuleLoader__.load({
|
|
|
1108
1792
|
* (lib/tierClock.ts), so it keeps following the wall clock even if every
|
|
1109
1793
|
* network path is down.
|
|
1110
1794
|
*/
|
|
1111
|
-
const lowtideStore =
|
|
1795
|
+
const lowtideStore = createSnapshotStore({
|
|
1112
1796
|
host: null,
|
|
1113
1797
|
connected: false,
|
|
1114
1798
|
error: null,
|
|
@@ -1485,8 +2169,8 @@ window.__ModuleLoader__.load({
|
|
|
1485
2169
|
} catch {}
|
|
1486
2170
|
}
|
|
1487
2171
|
//#endregion
|
|
1488
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
1489
|
-
const css$12 = ".
|
|
2172
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\PriceBand.module.css.mjs
|
|
2173
|
+
const css$12 = ".DBqEla_bandWrap{flex-direction:column;gap:2px;display:flex}.DBqEla_bandAxis{justify-content:space-between;padding:0 2px;display:flex}.DBqEla_bandAxisLabel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums}.DBqEla_band{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l1);border-radius:8px;gap:1px;height:32px;padding:4px;display:flex}.DBqEla_bandCell{border-radius:2px;flex:1}.DBqEla_bandPeak{background:var(--dsw-alias-state-error-primary);opacity:.85}.DBqEla_bandOff{background:var(--dsw-alias-state-success-primary);opacity:.85}.DBqEla_bandCustom{background:var(--dsw-alias-state-warn-primary);opacity:.85}.DBqEla_bandNow{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-1px}";
|
|
1490
2174
|
const tagId$12 = "dsh-lowtide/PriceBand.module.css";
|
|
1491
2175
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$12) + "]") === null) {
|
|
1492
2176
|
const tag = document.createElement("style");
|
|
@@ -1496,19 +2180,19 @@ window.__ModuleLoader__.load({
|
|
|
1496
2180
|
document.head.appendChild(tag);
|
|
1497
2181
|
}
|
|
1498
2182
|
var PriceBand_module_css_default = {
|
|
1499
|
-
"
|
|
1500
|
-
"
|
|
1501
|
-
"
|
|
1502
|
-
"
|
|
1503
|
-
"
|
|
1504
|
-
"
|
|
1505
|
-
"
|
|
1506
|
-
"
|
|
1507
|
-
"bandCustom": "
|
|
2183
|
+
"bandOff": "DBqEla_bandOff",
|
|
2184
|
+
"bandAxisLabel": "DBqEla_bandAxisLabel",
|
|
2185
|
+
"bandWrap": "DBqEla_bandWrap",
|
|
2186
|
+
"bandAxis": "DBqEla_bandAxis",
|
|
2187
|
+
"bandPeak": "DBqEla_bandPeak",
|
|
2188
|
+
"band": "DBqEla_band",
|
|
2189
|
+
"bandCell": "DBqEla_bandCell",
|
|
2190
|
+
"bandNow": "DBqEla_bandNow",
|
|
2191
|
+
"bandCustom": "DBqEla_bandCustom"
|
|
1508
2192
|
};
|
|
1509
2193
|
//#endregion
|
|
1510
2194
|
//#region client/components/PriceBand.tsx
|
|
1511
|
-
function minutesOf(hhmm) {
|
|
2195
|
+
function minutesOf$1(hhmm) {
|
|
1512
2196
|
const match = /^(\d{1,2}):(\d{2})$/.exec(hhmm);
|
|
1513
2197
|
if (match === null) return NaN;
|
|
1514
2198
|
const h = Number(match[1]);
|
|
@@ -1522,8 +2206,8 @@ window.__ModuleLoader__.load({
|
|
|
1522
2206
|
const start = i * 30;
|
|
1523
2207
|
let cls = PriceBand_module_css_default.bandOff;
|
|
1524
2208
|
for (const w of segments) {
|
|
1525
|
-
const ws = minutesOf(w.start);
|
|
1526
|
-
const we = minutesOf(w.end);
|
|
2209
|
+
const ws = minutesOf$1(w.start);
|
|
2210
|
+
const we = minutesOf$1(w.end);
|
|
1527
2211
|
if (Number.isNaN(ws) || Number.isNaN(we)) continue;
|
|
1528
2212
|
if (we > ws ? start >= ws && start < we : start >= ws || start < we) {
|
|
1529
2213
|
cls = w.level === "peak" ? PriceBand_module_css_default.bandPeak : w.level === "custom" ? PriceBand_module_css_default.bandCustom : PriceBand_module_css_default.bandOff;
|
|
@@ -1558,8 +2242,8 @@ window.__ModuleLoader__.load({
|
|
|
1558
2242
|
});
|
|
1559
2243
|
}
|
|
1560
2244
|
//#endregion
|
|
1561
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
1562
|
-
const css$11 = ".
|
|
2245
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\WindowEditorModal.module.css.mjs
|
|
2246
|
+
const css$11 = ".kTArlW_wide{width:min(560px,100%)}.kTArlW_body{flex-direction:column;gap:8px;display:flex}.kTArlW_tzLine{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}.kTArlW_hint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);line-height:1.5}.kTArlW_error{color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-alias-interactive-bg-hover);border-radius:6px;padding:6px 8px}.kTArlW_empty{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);padding:10px 0}.kTArlW_row{align-items:center;gap:6px;display:flex}.kTArlW_input{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);height:32px;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);border-radius:8px;outline:none;padding:0 8px;font-size:13px}.kTArlW_input:focus{border-color:var(--dsw-alias-brand-primary)}.kTArlW_row select.kTArlW_input{font-family:var(--dsw-font-family);flex:0 0 96px}.kTArlW_row input.kTArlW_input{flex:1;min-width:0}.kTArlW_dash{color:var(--dsw-alias-label-tertiary)}.kTArlW_daysBadge{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);white-space:nowrap;background:var(--dsw-alias-interactive-bg-hover);border-radius:999px;flex:none;padding:2px 8px}.kTArlW_footer{align-items:center;gap:8px;display:flex}.kTArlW_footerSpacer{flex:1}";
|
|
1563
2247
|
const tagId$11 = "dsh-lowtide/WindowEditorModal.module.css";
|
|
1564
2248
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$11) + "]") === null) {
|
|
1565
2249
|
const tag = document.createElement("style");
|
|
@@ -1569,18 +2253,18 @@ window.__ModuleLoader__.load({
|
|
|
1569
2253
|
document.head.appendChild(tag);
|
|
1570
2254
|
}
|
|
1571
2255
|
var WindowEditorModal_module_css_default = {
|
|
1572
|
-
"
|
|
1573
|
-
"
|
|
1574
|
-
"dash": "
|
|
1575
|
-
"
|
|
1576
|
-
"
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1579
|
-
"
|
|
1580
|
-
"
|
|
1581
|
-
"
|
|
1582
|
-
"
|
|
1583
|
-
"
|
|
2256
|
+
"daysBadge": "kTArlW_daysBadge",
|
|
2257
|
+
"input": "kTArlW_input",
|
|
2258
|
+
"dash": "kTArlW_dash",
|
|
2259
|
+
"error": "kTArlW_error",
|
|
2260
|
+
"footer": "kTArlW_footer",
|
|
2261
|
+
"empty": "kTArlW_empty",
|
|
2262
|
+
"tzLine": "kTArlW_tzLine",
|
|
2263
|
+
"hint": "kTArlW_hint",
|
|
2264
|
+
"footerSpacer": "kTArlW_footerSpacer",
|
|
2265
|
+
"row": "kTArlW_row",
|
|
2266
|
+
"body": "kTArlW_body",
|
|
2267
|
+
"wide": "kTArlW_wide"
|
|
1584
2268
|
};
|
|
1585
2269
|
//#endregion
|
|
1586
2270
|
//#region client/components/WindowEditorModal.tsx
|
|
@@ -1740,6 +2424,7 @@ window.__ModuleLoader__.load({
|
|
|
1740
2424
|
open,
|
|
1741
2425
|
onClose,
|
|
1742
2426
|
title: t("editor.title"),
|
|
2427
|
+
closeLabel: t("modal.close"),
|
|
1743
2428
|
className: WindowEditorModal_module_css_default.wide,
|
|
1744
2429
|
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1745
2430
|
className: WindowEditorModal_module_css_default.footer,
|
|
@@ -1854,8 +2539,8 @@ window.__ModuleLoader__.load({
|
|
|
1854
2539
|
});
|
|
1855
2540
|
}
|
|
1856
2541
|
//#endregion
|
|
1857
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
1858
|
-
const css$10 = ".
|
|
2542
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\PricePill.module.css.mjs
|
|
2543
|
+
const css$10 = "._7C61wa_pill{cursor:pointer;align-items:center;gap:6px;display:inline-flex}._7C61wa_dot{display:inline-flex}._7C61wa_pillStale ._7C61wa_label{color:var(--dsw-alias-label-tertiary)}._7C61wa_label{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums}._7C61wa_count{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums}._7C61wa_queueIcon{color:var(--dsw-alias-label-tertiary)}._7C61wa_badge{background:var(--dsw-alias-state-warn-primary);border-radius:999px;width:6px;height:6px}._7C61wa_saved{color:var(--dsw-alias-state-success-primary)}";
|
|
1859
2544
|
const tagId$10 = "dsh-lowtide/PricePill.module.css";
|
|
1860
2545
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$10) + "]") === null) {
|
|
1861
2546
|
const tag = document.createElement("style");
|
|
@@ -1865,14 +2550,14 @@ window.__ModuleLoader__.load({
|
|
|
1865
2550
|
document.head.appendChild(tag);
|
|
1866
2551
|
}
|
|
1867
2552
|
var PricePill_module_css_default = {
|
|
1868
|
-
"
|
|
1869
|
-
"badge": "
|
|
1870
|
-
"
|
|
1871
|
-
"
|
|
1872
|
-
"count": "
|
|
1873
|
-
"
|
|
1874
|
-
"
|
|
1875
|
-
"
|
|
2553
|
+
"queueIcon": "_7C61wa_queueIcon",
|
|
2554
|
+
"badge": "_7C61wa_badge",
|
|
2555
|
+
"pill": "_7C61wa_pill",
|
|
2556
|
+
"dot": "_7C61wa_dot",
|
|
2557
|
+
"count": "_7C61wa_count",
|
|
2558
|
+
"saved": "_7C61wa_saved",
|
|
2559
|
+
"label": "_7C61wa_label",
|
|
2560
|
+
"pillStale": "_7C61wa_pillStale"
|
|
1876
2561
|
};
|
|
1877
2562
|
//#endregion
|
|
1878
2563
|
//#region client/components/PricePill.tsx
|
|
@@ -2041,8 +2726,8 @@ window.__ModuleLoader__.load({
|
|
|
2041
2726
|
}
|
|
2042
2727
|
}
|
|
2043
2728
|
//#endregion
|
|
2044
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
2045
|
-
const css$9 = ".
|
|
2729
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\TaskForm.module.css.mjs
|
|
2730
|
+
const css$9 = ".IueeoG_modal{flex-direction:column;gap:10px;display:flex}.IueeoG_compact{flex-direction:column;gap:8px;display:flex}.IueeoG_prompt{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);width:100%;color:var(--dsw-alias-label-primary);font:var(--dsw-font-base-16);resize:vertical;border-radius:8px;outline:none;padding:8px 12px}.IueeoG_prompt:focus{border-color:var(--dsw-alias-brand-primary)}.IueeoG_guidanceInput{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);width:100%;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);resize:vertical;border-radius:8px;outline:none;padding:6px 10px}.IueeoG_guidanceInput:focus{border-color:var(--dsw-alias-brand-primary)}.IueeoG_field{flex-direction:column;gap:4px;display:flex}.IueeoG_fieldLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}.IueeoG_fieldInput{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);width:100%;height:32px;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);border-radius:8px;outline:none;padding:0 8px;font-size:12px}.IueeoG_fieldInput:focus{border-color:var(--dsw-alias-brand-primary)}.IueeoG_compactRow{align-items:center;gap:8px;display:flex}.IueeoG_compactLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);white-space:nowrap}.IueeoG_compactInput{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);height:28px;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);border-radius:6px;outline:none;flex:1;padding:0 8px;font-size:12px}.IueeoG_compactInput:focus{border-color:var(--dsw-alias-brand-primary)}.IueeoG_warning{color:var(--dsw-alias-state-warn-primary);font:var(--dsw-font-xxs-12);align-items:center;gap:4px;display:inline-flex}.IueeoG_warningIcon{color:var(--dsw-alias-state-warn-primary)}.IueeoG_pillRow{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.IueeoG_autonomyBtn{display:inline-flex}.IueeoG_sessionPickRow{flex-direction:column;gap:6px;display:flex}.IueeoG_strategyPill{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);cursor:pointer;user-select:none;border-radius:999px;align-items:center;gap:4px;padding:4px 12px;display:inline-flex}.IueeoG_strategyPill:hover{background:var(--dsw-alias-interactive-bg-hover)}.IueeoG_strategyActive{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary);font-weight:600}.IueeoG_costTag{color:var(--dsw-alias-label-tertiary);margin-left:2px;font-size:10px;font-weight:400}.IueeoG_strategyHint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);line-height:1.5}.IueeoG_advancedBtn{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);cursor:pointer;background:0 0;border-radius:8px;align-self:flex-start;align-items:center;gap:6px;padding:5px 12px;display:inline-flex}.IueeoG_advancedBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.IueeoG_advancedBody{flex-direction:column;gap:12px;display:flex}.IueeoG_advancedIcon{vertical-align:-2px;color:var(--dsw-alias-label-tertiary);margin-right:5px}.IueeoG_modelFallbackRow{grid-template-columns:1fr 1fr;gap:8px;display:grid}";
|
|
2046
2731
|
const tagId$9 = "dsh-lowtide/TaskForm.module.css";
|
|
2047
2732
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$9) + "]") === null) {
|
|
2048
2733
|
const tag = document.createElement("style");
|
|
@@ -2052,29 +2737,29 @@ window.__ModuleLoader__.load({
|
|
|
2052
2737
|
document.head.appendChild(tag);
|
|
2053
2738
|
}
|
|
2054
2739
|
var TaskForm_module_css_default = {
|
|
2055
|
-
"
|
|
2056
|
-
"
|
|
2057
|
-
"
|
|
2058
|
-
"
|
|
2059
|
-
"
|
|
2060
|
-
"
|
|
2061
|
-
"
|
|
2062
|
-
"
|
|
2063
|
-
"
|
|
2064
|
-
"compactRow": "
|
|
2065
|
-
"
|
|
2066
|
-
"
|
|
2067
|
-
"
|
|
2068
|
-
"
|
|
2069
|
-
"advancedIcon": "
|
|
2070
|
-
"
|
|
2071
|
-
"
|
|
2072
|
-
"
|
|
2073
|
-
"
|
|
2074
|
-
"
|
|
2075
|
-
"
|
|
2076
|
-
"
|
|
2077
|
-
"
|
|
2740
|
+
"warningIcon": "IueeoG_warningIcon",
|
|
2741
|
+
"guidanceInput": "IueeoG_guidanceInput",
|
|
2742
|
+
"fieldInput": "IueeoG_fieldInput",
|
|
2743
|
+
"compact": "IueeoG_compact",
|
|
2744
|
+
"strategyPill": "IueeoG_strategyPill",
|
|
2745
|
+
"fieldLabel": "IueeoG_fieldLabel",
|
|
2746
|
+
"field": "IueeoG_field",
|
|
2747
|
+
"prompt": "IueeoG_prompt",
|
|
2748
|
+
"modal": "IueeoG_modal",
|
|
2749
|
+
"compactRow": "IueeoG_compactRow",
|
|
2750
|
+
"costTag": "IueeoG_costTag",
|
|
2751
|
+
"strategyHint": "IueeoG_strategyHint",
|
|
2752
|
+
"advancedBtn": "IueeoG_advancedBtn",
|
|
2753
|
+
"advancedBody": "IueeoG_advancedBody",
|
|
2754
|
+
"advancedIcon": "IueeoG_advancedIcon",
|
|
2755
|
+
"warning": "IueeoG_warning",
|
|
2756
|
+
"pillRow": "IueeoG_pillRow",
|
|
2757
|
+
"sessionPickRow": "IueeoG_sessionPickRow",
|
|
2758
|
+
"strategyActive": "IueeoG_strategyActive",
|
|
2759
|
+
"modelFallbackRow": "IueeoG_modelFallbackRow",
|
|
2760
|
+
"compactInput": "IueeoG_compactInput",
|
|
2761
|
+
"autonomyBtn": "IueeoG_autonomyBtn",
|
|
2762
|
+
"compactLabel": "IueeoG_compactLabel"
|
|
2078
2763
|
};
|
|
2079
2764
|
//#endregion
|
|
2080
2765
|
//#region client/components/TaskForm.tsx
|
|
@@ -2366,6 +3051,7 @@ window.__ModuleLoader__.load({
|
|
|
2366
3051
|
open: props.advancedOpen ?? false,
|
|
2367
3052
|
onClose: () => props.onAdvancedOpenChange?.(false),
|
|
2368
3053
|
title: t("modal.advancedTitle"),
|
|
3054
|
+
closeLabel: t("modal.close"),
|
|
2369
3055
|
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2370
3056
|
variant: "primary",
|
|
2371
3057
|
size: "md",
|
|
@@ -2621,8 +3307,8 @@ window.__ModuleLoader__.load({
|
|
|
2621
3307
|
});
|
|
2622
3308
|
}
|
|
2623
3309
|
//#endregion
|
|
2624
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
2625
|
-
const css$8 = ".
|
|
3310
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\InterceptCard.module.css.mjs
|
|
3311
|
+
const css$8 = "._1uv9Ta_card{background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2-darkmode-thin);box-shadow:var(--dsw-shadow-lv2);border-radius:22px;flex-direction:column;gap:8px;padding:16px 20px;display:flex}._1uv9Ta_header{justify-content:space-between;align-items:center;gap:8px;display:flex}._1uv9Ta_title{color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-strong-14);align-items:center;gap:6px;display:inline-flex}._1uv9Ta_dot{display:inline-flex}._1uv9Ta_close{width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}._1uv9Ta_close:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}._1uv9Ta_compare{gap:16px;display:flex}._1uv9Ta_priceLabel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12)}._1uv9Ta_row{align-items:center;gap:8px;display:flex}._1uv9Ta_dismiss{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;white-space:nowrap;background:0 0;border:none;margin-left:auto;padding:0 4px}._1uv9Ta_dismiss:hover{color:var(--dsw-alias-label-secondary)}._1uv9Ta_queueStatus{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);align-items:center;gap:4px;display:inline-flex}._1uv9Ta_queueIcon{color:var(--dsw-alias-label-tertiary)}";
|
|
2626
3312
|
const tagId$8 = "dsh-lowtide/InterceptCard.module.css";
|
|
2627
3313
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$8) + "]") === null) {
|
|
2628
3314
|
const tag = document.createElement("style");
|
|
@@ -2632,17 +3318,17 @@ window.__ModuleLoader__.load({
|
|
|
2632
3318
|
document.head.appendChild(tag);
|
|
2633
3319
|
}
|
|
2634
3320
|
var InterceptCard_module_css_default = {
|
|
2635
|
-
"
|
|
2636
|
-
"
|
|
2637
|
-
"
|
|
2638
|
-
"priceLabel": "
|
|
2639
|
-
"
|
|
2640
|
-
"card": "
|
|
2641
|
-
"
|
|
2642
|
-
"
|
|
2643
|
-
"
|
|
2644
|
-
"
|
|
2645
|
-
"
|
|
3321
|
+
"dismiss": "_1uv9Ta_dismiss",
|
|
3322
|
+
"header": "_1uv9Ta_header",
|
|
3323
|
+
"close": "_1uv9Ta_close",
|
|
3324
|
+
"priceLabel": "_1uv9Ta_priceLabel",
|
|
3325
|
+
"compare": "_1uv9Ta_compare",
|
|
3326
|
+
"card": "_1uv9Ta_card",
|
|
3327
|
+
"dot": "_1uv9Ta_dot",
|
|
3328
|
+
"row": "_1uv9Ta_row",
|
|
3329
|
+
"queueStatus": "_1uv9Ta_queueStatus",
|
|
3330
|
+
"title": "_1uv9Ta_title",
|
|
3331
|
+
"queueIcon": "_1uv9Ta_queueIcon"
|
|
2646
3332
|
};
|
|
2647
3333
|
//#endregion
|
|
2648
3334
|
//#region client/components/InterceptCard.tsx
|
|
@@ -2888,8 +3574,8 @@ window.__ModuleLoader__.load({
|
|
|
2888
3574
|
return "";
|
|
2889
3575
|
}
|
|
2890
3576
|
//#endregion
|
|
2891
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
2892
|
-
const css$7 = ".
|
|
3577
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\TaskRow.module.css.mjs
|
|
3578
|
+
const css$7 = ".qAMb0a_taskRow{border-left:2px solid #0000;border-radius:8px;align-items:center;gap:8px;min-height:36px;padding:4px 5px 4px 12px;display:flex}.qAMb0a_taskRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.qAMb0a_amber{border-left-color:var(--dsw-alias-state-warn-primary)}.qAMb0a_green{border-left-color:var(--dsw-alias-state-success-primary)}.qAMb0a_blue{border-left-color:var(--dsw-alias-state-business-primary)}.qAMb0a_red{border-left-color:var(--dsw-alias-state-error-primary)}.qAMb0a_taskMain{cursor:pointer;flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.qAMb0a_taskMain:hover .qAMb0a_taskPrompt{color:var(--dsw-alias-brand-primary)}.qAMb0a_taskPrompt{color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-14);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.qAMb0a_taskMeta{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.qAMb0a_rowActions{gap:2px;display:flex}.qAMb0a_iconBtn{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;border-radius:999px;font-size:13px}.qAMb0a_iconBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.qAMb0a_iconBtn:disabled{opacity:.4;cursor:not-allowed}.qAMb0a_iconBtn:disabled:hover{color:var(--dsw-alias-label-secondary);background:0 0}.qAMb0a_confirming{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover);font-weight:600}.qAMb0a_confirming:hover{color:var(--dsw-alias-state-error-primary)}.qAMb0a_droppedRow{opacity:.75}.qAMb0a_droppedRow:hover{opacity:1}";
|
|
2893
3579
|
const tagId$7 = "dsh-lowtide/TaskRow.module.css";
|
|
2894
3580
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$7) + "]") === null) {
|
|
2895
3581
|
const tag = document.createElement("style");
|
|
@@ -2899,18 +3585,18 @@ window.__ModuleLoader__.load({
|
|
|
2899
3585
|
document.head.appendChild(tag);
|
|
2900
3586
|
}
|
|
2901
3587
|
var TaskRow_module_css_default = {
|
|
2902
|
-
"
|
|
2903
|
-
"
|
|
2904
|
-
"
|
|
2905
|
-
"
|
|
2906
|
-
"
|
|
2907
|
-
"
|
|
2908
|
-
"
|
|
2909
|
-
"
|
|
2910
|
-
"
|
|
2911
|
-
"
|
|
2912
|
-
"
|
|
2913
|
-
"
|
|
3588
|
+
"red": "qAMb0a_red",
|
|
3589
|
+
"confirming": "qAMb0a_confirming",
|
|
3590
|
+
"taskRow": "qAMb0a_taskRow",
|
|
3591
|
+
"taskPrompt": "qAMb0a_taskPrompt",
|
|
3592
|
+
"rowActions": "qAMb0a_rowActions",
|
|
3593
|
+
"amber": "qAMb0a_amber",
|
|
3594
|
+
"taskMeta": "qAMb0a_taskMeta",
|
|
3595
|
+
"droppedRow": "qAMb0a_droppedRow",
|
|
3596
|
+
"iconBtn": "qAMb0a_iconBtn",
|
|
3597
|
+
"green": "qAMb0a_green",
|
|
3598
|
+
"blue": "qAMb0a_blue",
|
|
3599
|
+
"taskMain": "qAMb0a_taskMain"
|
|
2914
3600
|
};
|
|
2915
3601
|
//#endregion
|
|
2916
3602
|
//#region client/components/TaskRow.tsx
|
|
@@ -3083,8 +3769,8 @@ window.__ModuleLoader__.load({
|
|
|
3083
3769
|
});
|
|
3084
3770
|
}
|
|
3085
3771
|
//#endregion
|
|
3086
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
3087
|
-
const css$6 = ".
|
|
3772
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\CandidatesView.module.css.mjs
|
|
3773
|
+
const css$6 = ".hYLrvW_wrap{flex-direction:column;gap:4px;margin-top:4px;display:flex}.hYLrvW_toggle{color:var(--dsw-alias-brand-primary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;background:0 0;border:none;border-radius:6px;align-self:flex-start;align-items:center;gap:4px;padding:2px 4px;display:inline-flex}.hYLrvW_toggle:hover{background:var(--dsw-alias-interactive-bg-hover)}.hYLrvW_candidate{border:1px solid var(--dsw-alias-border-l1);border-radius:8px;flex-direction:column;gap:3px;padding:6px 8px;display:flex}.hYLrvW_picked{border-color:var(--dsw-alias-state-success-primary);background:var(--dsw-alias-interactive-bg-hover)}.hYLrvW_head{align-items:center;gap:8px;display:flex}.hYLrvW_title{color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-strong-13)}.hYLrvW_pickedTag{color:var(--dsw-alias-state-success-primary);font:var(--dsw-font-xxs-12);margin-left:6px}.hYLrvW_meta{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums;margin-left:auto}.hYLrvW_excerpt{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);white-space:pre-wrap;word-break:break-word;max-height:160px;line-height:1.6;overflow-y:auto}";
|
|
3088
3774
|
const tagId$6 = "dsh-lowtide/CandidatesView.module.css";
|
|
3089
3775
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
3090
3776
|
const tag = document.createElement("style");
|
|
@@ -3094,15 +3780,15 @@ window.__ModuleLoader__.load({
|
|
|
3094
3780
|
document.head.appendChild(tag);
|
|
3095
3781
|
}
|
|
3096
3782
|
var CandidatesView_module_css_default = {
|
|
3097
|
-
"
|
|
3098
|
-
"
|
|
3099
|
-
"
|
|
3100
|
-
"
|
|
3101
|
-
"
|
|
3102
|
-
"
|
|
3103
|
-
"
|
|
3104
|
-
"
|
|
3105
|
-
"
|
|
3783
|
+
"meta": "hYLrvW_meta",
|
|
3784
|
+
"wrap": "hYLrvW_wrap",
|
|
3785
|
+
"excerpt": "hYLrvW_excerpt",
|
|
3786
|
+
"picked": "hYLrvW_picked",
|
|
3787
|
+
"pickedTag": "hYLrvW_pickedTag",
|
|
3788
|
+
"head": "hYLrvW_head",
|
|
3789
|
+
"candidate": "hYLrvW_candidate",
|
|
3790
|
+
"toggle": "hYLrvW_toggle",
|
|
3791
|
+
"title": "hYLrvW_title"
|
|
3106
3792
|
};
|
|
3107
3793
|
//#endregion
|
|
3108
3794
|
//#region client/components/CandidatesView.tsx
|
|
@@ -3164,8 +3850,8 @@ window.__ModuleLoader__.load({
|
|
|
3164
3850
|
});
|
|
3165
3851
|
}
|
|
3166
3852
|
//#endregion
|
|
3167
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
3168
|
-
const css$5 = ".
|
|
3853
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\TaskDetail.module.css.mjs
|
|
3854
|
+
const css$5 = "._WRBGW_modalBody{flex-direction:column;gap:10px;display:flex}._WRBGW_modalFooter{justify-content:flex-end;gap:8px;display:flex}._WRBGW_detailPrompt{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);white-space:pre-wrap;word-break:break-word;border-radius:8px;padding:8px 10px;line-height:1.6}._WRBGW_detailGrid{grid-template-columns:1fr 1fr;gap:6px 12px;display:grid}._WRBGW_detailItem{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12)}._WRBGW_detailValue{color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);word-break:break-all}._WRBGW_detailSection{flex-direction:column;gap:3px;display:flex}._WRBGW_detailLabel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12)}._WRBGW_detailFile{color:var(--dsw-alias-label-secondary);font-family:var(--ds-font-family-code);word-break:break-all;font-size:11px}._WRBGW_detailRun{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);font-variant-numeric:tabular-nums}._WRBGW_detailError{color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-alias-interactive-bg-hover);word-break:break-word;border-radius:6px;padding:6px 8px}._WRBGW_detailResumed{color:var(--dsw-alias-state-success-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-alias-interactive-bg-hover);word-break:break-word;border-radius:6px;padding:6px 8px}._WRBGW_detailResumeWarn{color:var(--dsw-alias-state-warn-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-alias-interactive-bg-hover);word-break:break-word;border-radius:6px;padding:6px 8px}._WRBGW_detailReview{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}._WRBGW_detailReview summary{cursor:pointer;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);user-select:none}._WRBGW_detailReviewBody{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l1);white-space:pre-wrap;word-break:break-word;border-radius:6px;margin-top:4px;padding:6px 8px;line-height:1.6}";
|
|
3169
3855
|
const tagId$5 = "dsh-lowtide/TaskDetail.module.css";
|
|
3170
3856
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
3171
3857
|
const tag = document.createElement("style");
|
|
@@ -3175,21 +3861,21 @@ window.__ModuleLoader__.load({
|
|
|
3175
3861
|
document.head.appendChild(tag);
|
|
3176
3862
|
}
|
|
3177
3863
|
var TaskDetail_module_css_default = {
|
|
3178
|
-
"
|
|
3179
|
-
"
|
|
3180
|
-
"
|
|
3181
|
-
"
|
|
3182
|
-
"
|
|
3183
|
-
"
|
|
3184
|
-
"
|
|
3185
|
-
"
|
|
3186
|
-
"
|
|
3187
|
-
"
|
|
3188
|
-
"
|
|
3189
|
-
"
|
|
3190
|
-
"
|
|
3191
|
-
"
|
|
3192
|
-
"
|
|
3864
|
+
"modalFooter": "_WRBGW_modalFooter",
|
|
3865
|
+
"detailValue": "_WRBGW_detailValue",
|
|
3866
|
+
"detailFile": "_WRBGW_detailFile",
|
|
3867
|
+
"detailItem": "_WRBGW_detailItem",
|
|
3868
|
+
"detailSection": "_WRBGW_detailSection",
|
|
3869
|
+
"modalBody": "_WRBGW_modalBody",
|
|
3870
|
+
"detailError": "_WRBGW_detailError",
|
|
3871
|
+
"detailRun": "_WRBGW_detailRun",
|
|
3872
|
+
"detailResumeWarn": "_WRBGW_detailResumeWarn",
|
|
3873
|
+
"detailReviewBody": "_WRBGW_detailReviewBody",
|
|
3874
|
+
"detailLabel": "_WRBGW_detailLabel",
|
|
3875
|
+
"detailReview": "_WRBGW_detailReview",
|
|
3876
|
+
"detailPrompt": "_WRBGW_detailPrompt",
|
|
3877
|
+
"detailResumed": "_WRBGW_detailResumed",
|
|
3878
|
+
"detailGrid": "_WRBGW_detailGrid"
|
|
3193
3879
|
};
|
|
3194
3880
|
//#endregion
|
|
3195
3881
|
//#region client/components/TaskDetail.tsx
|
|
@@ -3204,6 +3890,7 @@ window.__ModuleLoader__.load({
|
|
|
3204
3890
|
open: true,
|
|
3205
3891
|
onClose,
|
|
3206
3892
|
title: t("detail.title"),
|
|
3893
|
+
closeLabel: t("detail.close"),
|
|
3207
3894
|
description: `${statusLabel(t, task.status)} · ${task.id}`,
|
|
3208
3895
|
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3209
3896
|
className: TaskDetail_module_css_default.modalFooter,
|
|
@@ -3412,8 +4099,8 @@ window.__ModuleLoader__.load({
|
|
|
3412
4099
|
});
|
|
3413
4100
|
}
|
|
3414
4101
|
//#endregion
|
|
3415
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
3416
|
-
const css$4 = ".
|
|
4102
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\NewTaskModal.module.css.mjs
|
|
4103
|
+
const css$4 = ".QoH8JG_wide{width:min(560px,100%)}.QoH8JG_modalBody{flex-direction:column;gap:10px;display:flex}.QoH8JG_modalFooter{justify-content:flex-end;gap:8px;display:flex}";
|
|
3417
4104
|
const tagId$4 = "dsh-lowtide/NewTaskModal.module.css";
|
|
3418
4105
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
3419
4106
|
const tag = document.createElement("style");
|
|
@@ -3423,9 +4110,9 @@ window.__ModuleLoader__.load({
|
|
|
3423
4110
|
document.head.appendChild(tag);
|
|
3424
4111
|
}
|
|
3425
4112
|
var NewTaskModal_module_css_default = {
|
|
3426
|
-
"
|
|
3427
|
-
"
|
|
3428
|
-
"
|
|
4113
|
+
"modalBody": "QoH8JG_modalBody",
|
|
4114
|
+
"modalFooter": "QoH8JG_modalFooter",
|
|
4115
|
+
"wide": "QoH8JG_wide"
|
|
3429
4116
|
};
|
|
3430
4117
|
//#endregion
|
|
3431
4118
|
//#region client/components/NewTaskModal.tsx
|
|
@@ -3542,6 +4229,7 @@ window.__ModuleLoader__.load({
|
|
|
3542
4229
|
open,
|
|
3543
4230
|
onClose: mainOnClose,
|
|
3544
4231
|
title: t("modal.title"),
|
|
4232
|
+
closeLabel: t("modal.close"),
|
|
3545
4233
|
description: t("modal.desc"),
|
|
3546
4234
|
className: NewTaskModal_module_css_default.wide,
|
|
3547
4235
|
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -3679,6 +4367,7 @@ window.__ModuleLoader__.load({
|
|
|
3679
4367
|
open: true,
|
|
3680
4368
|
onClose: mainOnClose,
|
|
3681
4369
|
title: t("modal.editTitle"),
|
|
4370
|
+
closeLabel: t("modal.close"),
|
|
3682
4371
|
description: t("modal.editDesc", { id: task.id }),
|
|
3683
4372
|
className: NewTaskModal_module_css_default.wide,
|
|
3684
4373
|
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -3714,8 +4403,8 @@ window.__ModuleLoader__.load({
|
|
|
3714
4403
|
});
|
|
3715
4404
|
}
|
|
3716
4405
|
//#endregion
|
|
3717
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
3718
|
-
const css$3 = ".
|
|
4406
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\QueueDock.module.css.mjs
|
|
4407
|
+
const css$3 = ".qgadtG_dock{flex-direction:column;gap:4px;width:calc(100% - 16px);margin:0 8px -3px;display:flex}.qgadtG_dockRow{background:var(--dsw-specific-tip);border-radius:12px 12px 0 0;justify-content:space-between;align-items:center;gap:8px;height:36px;padding:4px 12px;display:flex}.qgadtG_dockTitle{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-s-14);font-variant-numeric:tabular-nums;font-weight:500}.qgadtG_pending{color:var(--dsw-alias-state-warn-primary);font:var(--dsw-font-xxs-12)}.qgadtG_dockActions{align-items:center;gap:4px;display:flex}.qgadtG_reportBtn{align-items:center;gap:4px;display:inline-flex;position:relative}.qgadtG_reportDot{background:var(--dsw-alias-state-warn-primary);border-radius:999px;width:6px;height:6px;position:absolute;top:-2px;right:-4px}.qgadtG_sectionHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.qgadtG_sectionToggle{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;text-align:left;background:0 0;border:none;flex:1;align-items:center;gap:4px;padding:4px;display:flex}.qgadtG_sectionToggle:hover{color:var(--dsw-alias-label-primary)}.qgadtG_clearBtn{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border:none;border-radius:999px;flex-shrink:0;padding:3px 8px}.qgadtG_clearBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.qgadtG_clearArmed{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover);font-weight:600}.qgadtG_clearArmed:hover{color:var(--dsw-alias-state-error-primary)}.qgadtG_approveArmed{font-weight:600;color:var(--dsw-alias-state-error-primary)!important;background:var(--dsw-alias-interactive-bg-hover)!important}.qgadtG_drawer{background:var(--dsw-specific-tip);border-top:none;flex-direction:column;gap:4px;max-height:320px;padding:4px 8px 8px;display:flex;overflow-y:auto}.qgadtG_group{flex-direction:column;gap:2px;display:flex}.qgadtG_groupHeader{justify-content:space-between;align-items:center;padding:4px 4px 2px;display:flex}.qgadtG_groupPath{color:var(--dsw-alias-label-tertiary);font-family:var(--ds-font-family-code);font-size:11px}.qgadtG_onboarding{box-sizing:border-box;background:var(--dsw-specific-tip);border:1px solid var(--dsw-alias-border-l1);width:calc(100% - 16px);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);border-radius:10px;justify-content:space-between;align-items:center;gap:8px;margin:0 8px;padding:6px 10px;line-height:1.5;display:flex}.qgadtG_onboarding b{color:var(--dsw-alias-label-primary)}.qgadtG_onboardingDismiss{background:var(--dsw-alias-brand-primary);color:var(--dsw-alias-label-primary-foreground);font:var(--dsw-font-xxs-12);cursor:pointer;border:none;border-radius:999px;flex-shrink:0;padding:3px 10px}.qgadtG_onboardingDismiss:hover{opacity:.9}.qgadtG_footer{border-top:1px solid var(--dsw-alias-border-l1);justify-content:space-between;align-items:center;gap:8px;padding:6px 4px 2px;display:flex}.qgadtG_footerActions{gap:4px;display:flex}.qgadtG_empty{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);flex-direction:column;align-items:center;gap:8px;padding:16px 0;display:flex}";
|
|
3719
4408
|
const tagId$3 = "dsh-lowtide/QueueDock.module.css";
|
|
3720
4409
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
3721
4410
|
const tag = document.createElement("style");
|
|
@@ -3725,27 +4414,27 @@ window.__ModuleLoader__.load({
|
|
|
3725
4414
|
document.head.appendChild(tag);
|
|
3726
4415
|
}
|
|
3727
4416
|
var QueueDock_module_css_default = {
|
|
3728
|
-
"
|
|
3729
|
-
"
|
|
3730
|
-
"
|
|
3731
|
-
"
|
|
3732
|
-
"
|
|
3733
|
-
"
|
|
3734
|
-
"
|
|
3735
|
-
"
|
|
3736
|
-
"
|
|
3737
|
-
"
|
|
3738
|
-
"
|
|
3739
|
-
"
|
|
3740
|
-
"
|
|
3741
|
-
"
|
|
3742
|
-
"
|
|
3743
|
-
"
|
|
3744
|
-
"
|
|
3745
|
-
"
|
|
3746
|
-
"
|
|
3747
|
-
"
|
|
3748
|
-
"
|
|
4417
|
+
"clearArmed": "qgadtG_clearArmed",
|
|
4418
|
+
"reportDot": "qgadtG_reportDot",
|
|
4419
|
+
"dock": "qgadtG_dock",
|
|
4420
|
+
"group": "qgadtG_group",
|
|
4421
|
+
"groupHeader": "qgadtG_groupHeader",
|
|
4422
|
+
"sectionHead": "qgadtG_sectionHead",
|
|
4423
|
+
"footerActions": "qgadtG_footerActions",
|
|
4424
|
+
"dockActions": "qgadtG_dockActions",
|
|
4425
|
+
"empty": "qgadtG_empty",
|
|
4426
|
+
"approveArmed": "qgadtG_approveArmed",
|
|
4427
|
+
"dockRow": "qgadtG_dockRow",
|
|
4428
|
+
"dockTitle": "qgadtG_dockTitle",
|
|
4429
|
+
"reportBtn": "qgadtG_reportBtn",
|
|
4430
|
+
"sectionToggle": "qgadtG_sectionToggle",
|
|
4431
|
+
"onboarding": "qgadtG_onboarding",
|
|
4432
|
+
"footer": "qgadtG_footer",
|
|
4433
|
+
"groupPath": "qgadtG_groupPath",
|
|
4434
|
+
"clearBtn": "qgadtG_clearBtn",
|
|
4435
|
+
"pending": "qgadtG_pending",
|
|
4436
|
+
"drawer": "qgadtG_drawer",
|
|
4437
|
+
"onboardingDismiss": "qgadtG_onboardingDismiss"
|
|
3749
4438
|
};
|
|
3750
4439
|
//#endregion
|
|
3751
4440
|
//#region client/components/QueueDock.tsx
|
|
@@ -4065,8 +4754,8 @@ window.__ModuleLoader__.load({
|
|
|
4065
4754
|
});
|
|
4066
4755
|
}
|
|
4067
4756
|
//#endregion
|
|
4068
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
4069
|
-
const css$2 = ".
|
|
4757
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\MorningReport.module.css.mjs
|
|
4758
|
+
const css$2 = ".REcyxG_historyList{flex-direction:column;gap:4px;max-height:360px;display:flex;overflow-y:auto}.REcyxG_historyRow{color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;display:flex}.REcyxG_historyRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.REcyxG_historyDate{font-weight:600}.REcyxG_historyMeta{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums}.REcyxG_historyEmpty{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);padding:12px}.REcyxG_historyHeader{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);padding:0 10px 2px}.REcyxG_historyRowWrap{border-radius:8px;align-items:center;gap:4px;display:flex}.REcyxG_historyRowWrap:hover{background:var(--dsw-alias-interactive-bg-hover)}.REcyxG_historyRowWrap .REcyxG_historyRow{flex:1;min-width:0}.REcyxG_historyRowWrap .REcyxG_historyRow:hover{background:0 0}.REcyxG_historyDelete{width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;margin-right:4px;font-size:12px;display:inline-flex}.REcyxG_historyRowWrap:hover .REcyxG_historyDelete{opacity:1}.REcyxG_historyDelete:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-state-error-primary)}.REcyxG_historyFooter{border-top:1px solid var(--dsw-alias-border-l1);justify-content:flex-end;padding-top:6px;display:flex}.REcyxG_clearBtn{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:4px 8px}.REcyxG_clearBtn:hover{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover)}.REcyxG_clearArmed{border:1px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border-radius:6px;padding:4px 8px;font-weight:600}.REcyxG_body{flex-direction:column;gap:8px;display:flex}.REcyxG_headline{flex-direction:column;align-items:center;gap:2px;display:flex}.REcyxG_headlineLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-s-14)}.REcyxG_headlineValue{color:var(--dsw-alias-state-success-primary);font-family:var(--ds-font-family-code);font-variant-numeric:tabular-nums;font-size:32px;font-weight:700;line-height:40px}.REcyxG_headlineMeta{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);font-variant-numeric:tabular-nums}.REcyxG_divider{background:var(--dsw-alias-border-l1);height:1px}.REcyxG_taskRow{border-left:2px solid #0000;gap:8px;padding:4px 0 4px 8px;display:flex}.REcyxG_doneRow{border-left-color:var(--dsw-alias-state-success-primary)}.REcyxG_badRow{border-left-color:var(--dsw-alias-state-error-primary)}.REcyxG_taskMain{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.REcyxG_taskPrompt{color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-14)}.REcyxG_taskMeta{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.REcyxG_more{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);padding-left:8px}.REcyxG_reviewExcerpt{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12)}.REcyxG_reviewExcerpt summary{cursor:pointer;color:var(--dsw-alias-label-tertiary);user-select:none}.REcyxG_reviewExcerptBody{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l1);white-space:pre-wrap;word-break:break-word;border-radius:6px;margin-top:4px;padding:6px 8px;line-height:1.6}.REcyxG_footer{justify-content:space-between;align-items:center;display:flex}.REcyxG_modalFooter{justify-content:flex-end;display:flex}";
|
|
4070
4759
|
const tagId$2 = "dsh-lowtide/MorningReport.module.css";
|
|
4071
4760
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
4072
4761
|
const tag = document.createElement("style");
|
|
@@ -4076,34 +4765,34 @@ window.__ModuleLoader__.load({
|
|
|
4076
4765
|
document.head.appendChild(tag);
|
|
4077
4766
|
}
|
|
4078
4767
|
var MorningReport_module_css_default = {
|
|
4079
|
-
"
|
|
4080
|
-
"
|
|
4081
|
-
"
|
|
4082
|
-
"
|
|
4083
|
-
"
|
|
4084
|
-
"
|
|
4085
|
-
"
|
|
4086
|
-
"
|
|
4087
|
-
"
|
|
4088
|
-
"
|
|
4089
|
-
"
|
|
4090
|
-
"
|
|
4091
|
-
"
|
|
4092
|
-
"
|
|
4093
|
-
"
|
|
4094
|
-
"
|
|
4095
|
-
"
|
|
4096
|
-
"
|
|
4097
|
-
"
|
|
4098
|
-
"
|
|
4099
|
-
"
|
|
4100
|
-
"
|
|
4101
|
-
"
|
|
4102
|
-
"
|
|
4103
|
-
"
|
|
4104
|
-
"
|
|
4105
|
-
"
|
|
4106
|
-
"
|
|
4768
|
+
"taskPrompt": "REcyxG_taskPrompt",
|
|
4769
|
+
"reviewExcerptBody": "REcyxG_reviewExcerptBody",
|
|
4770
|
+
"doneRow": "REcyxG_doneRow",
|
|
4771
|
+
"body": "REcyxG_body",
|
|
4772
|
+
"taskMain": "REcyxG_taskMain",
|
|
4773
|
+
"footer": "REcyxG_footer",
|
|
4774
|
+
"modalFooter": "REcyxG_modalFooter",
|
|
4775
|
+
"historyMeta": "REcyxG_historyMeta",
|
|
4776
|
+
"historyDate": "REcyxG_historyDate",
|
|
4777
|
+
"headlineValue": "REcyxG_headlineValue",
|
|
4778
|
+
"historyDelete": "REcyxG_historyDelete",
|
|
4779
|
+
"taskRow": "REcyxG_taskRow",
|
|
4780
|
+
"historyRow": "REcyxG_historyRow",
|
|
4781
|
+
"historyFooter": "REcyxG_historyFooter",
|
|
4782
|
+
"more": "REcyxG_more",
|
|
4783
|
+
"divider": "REcyxG_divider",
|
|
4784
|
+
"historyRowWrap": "REcyxG_historyRowWrap",
|
|
4785
|
+
"clearArmed": "REcyxG_clearArmed",
|
|
4786
|
+
"headline": "REcyxG_headline",
|
|
4787
|
+
"taskMeta": "REcyxG_taskMeta",
|
|
4788
|
+
"badRow": "REcyxG_badRow",
|
|
4789
|
+
"clearBtn": "REcyxG_clearBtn",
|
|
4790
|
+
"historyEmpty": "REcyxG_historyEmpty",
|
|
4791
|
+
"historyList": "REcyxG_historyList",
|
|
4792
|
+
"reviewExcerpt": "REcyxG_reviewExcerpt",
|
|
4793
|
+
"headlineLabel": "REcyxG_headlineLabel",
|
|
4794
|
+
"headlineMeta": "REcyxG_headlineMeta",
|
|
4795
|
+
"historyHeader": "REcyxG_historyHeader"
|
|
4107
4796
|
};
|
|
4108
4797
|
//#endregion
|
|
4109
4798
|
//#region client/components/MorningReport.tsx
|
|
@@ -4308,6 +4997,7 @@ window.__ModuleLoader__.load({
|
|
|
4308
4997
|
open: true,
|
|
4309
4998
|
onClose: close,
|
|
4310
4999
|
title: t("report.history"),
|
|
5000
|
+
closeLabel: t("report.close"),
|
|
4311
5001
|
description: t("report.historyDesc", { count: history.length }),
|
|
4312
5002
|
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
4313
5003
|
className: MorningReport_module_css_default.modalFooter,
|
|
@@ -4391,6 +5081,7 @@ window.__ModuleLoader__.load({
|
|
|
4391
5081
|
open: true,
|
|
4392
5082
|
onClose: close,
|
|
4393
5083
|
title: t("report.title", { date: reportDateLabel(current.date) }),
|
|
5084
|
+
closeLabel: t("report.close"),
|
|
4394
5085
|
description: current.summary,
|
|
4395
5086
|
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4396
5087
|
className: MorningReport_module_css_default.modalFooter,
|
|
@@ -4424,8 +5115,8 @@ window.__ModuleLoader__.load({
|
|
|
4424
5115
|
});
|
|
4425
5116
|
}
|
|
4426
5117
|
//#endregion
|
|
4427
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
4428
|
-
const css$1 = ".
|
|
5118
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\ConfirmGate.module.css.mjs
|
|
5119
|
+
const css$1 = ".v0eOsa_card{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l1);width:480px;max-width:calc(100vw - 32px);box-shadow:var(--dsw-shadow-lv3);color:var(--dsw-alias-label-primary);z-index:60;border-radius:14px;flex-direction:column;gap:8px;padding:14px 16px;display:flex;position:fixed;top:80px;left:50%;transform:translate(-50%)}.v0eOsa_header{justify-content:space-between;align-items:center;display:flex}.v0eOsa_title{font:var(--dsw-font-s-14);font-weight:600}.v0eOsa_close{width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;font-size:13px;display:inline-flex}.v0eOsa_close:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.v0eOsa_meta{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12)}.v0eOsa_list{flex-direction:column;gap:2px;max-height:200px;display:flex;overflow-y:auto}.v0eOsa_row{border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:5px 6px;display:flex}.v0eOsa_row:hover{background:var(--dsw-alias-interactive-bg-hover)}.v0eOsa_prompt{min-width:0;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.v0eOsa_remove{width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;display:inline-flex}.v0eOsa_remove:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-state-error-primary)}.v0eOsa_more{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);padding:4px 6px}.v0eOsa_footer{border-top:1px solid var(--dsw-alias-border-l1);justify-content:space-between;align-items:center;gap:8px;padding-top:8px;display:flex}.v0eOsa_releaseLabel{align-items:center;gap:4px;display:inline-flex}.v0eOsa_defer{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border:none;text-decoration:underline}.v0eOsa_defer:hover{color:var(--dsw-alias-label-secondary)}";
|
|
4429
5120
|
const tagId$1 = "dsh-lowtide/ConfirmGate.module.css";
|
|
4430
5121
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
4431
5122
|
const tag = document.createElement("style");
|
|
@@ -4435,19 +5126,19 @@ window.__ModuleLoader__.load({
|
|
|
4435
5126
|
document.head.appendChild(tag);
|
|
4436
5127
|
}
|
|
4437
5128
|
var ConfirmGate_module_css_default = {
|
|
4438
|
-
"
|
|
4439
|
-
"
|
|
4440
|
-
"
|
|
4441
|
-
"
|
|
4442
|
-
"
|
|
4443
|
-
"
|
|
4444
|
-
"
|
|
4445
|
-
"
|
|
4446
|
-
"
|
|
4447
|
-
"
|
|
4448
|
-
"
|
|
4449
|
-
"
|
|
4450
|
-
"
|
|
5129
|
+
"header": "v0eOsa_header",
|
|
5130
|
+
"footer": "v0eOsa_footer",
|
|
5131
|
+
"row": "v0eOsa_row",
|
|
5132
|
+
"releaseLabel": "v0eOsa_releaseLabel",
|
|
5133
|
+
"card": "v0eOsa_card",
|
|
5134
|
+
"title": "v0eOsa_title",
|
|
5135
|
+
"list": "v0eOsa_list",
|
|
5136
|
+
"close": "v0eOsa_close",
|
|
5137
|
+
"meta": "v0eOsa_meta",
|
|
5138
|
+
"prompt": "v0eOsa_prompt",
|
|
5139
|
+
"remove": "v0eOsa_remove",
|
|
5140
|
+
"more": "v0eOsa_more",
|
|
5141
|
+
"defer": "v0eOsa_defer"
|
|
4451
5142
|
};
|
|
4452
5143
|
//#endregion
|
|
4453
5144
|
//#region client/components/ConfirmGate.tsx
|
|
@@ -4587,8 +5278,8 @@ window.__ModuleLoader__.load({
|
|
|
4587
5278
|
});
|
|
4588
5279
|
}
|
|
4589
5280
|
//#endregion
|
|
4590
|
-
//#region \0dsh-css:C:\Users\胡克劳\
|
|
4591
|
-
const css = ".
|
|
5281
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\settings.module.css.mjs
|
|
5282
|
+
const css = "._5HaBnq_page{flex-direction:column;gap:14px;padding:4px 2px 16px;display:flex}._5HaBnq_loading{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);padding:12px 0}._5HaBnq_onboarding{background:var(--dsw-specific-tip);border:1px solid var(--dsw-alias-border-l1);border-radius:10px;flex-direction:column;gap:6px;padding:12px 14px;display:flex}._5HaBnq_onboardingTitle{color:var(--dsw-alias-brand-primary);font:var(--dsw-font-s-14);font-weight:600}._5HaBnq_onboardingSteps{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);margin:0;padding-left:18px;line-height:1.7}._5HaBnq_onboardingSteps b{color:var(--dsw-alias-label-primary)}._5HaBnq_langRow{justify-content:space-between;align-items:center;gap:8px;padding:8px 0;display:flex}._5HaBnq_langLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}._5HaBnq_error{color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xs-13);background:var(--dsw-alias-interactive-bg-hover);border-radius:8px;padding:8px 12px}._5HaBnq_section{flex-direction:column;gap:8px;display:flex}._5HaBnq_sectionHead{justify-content:space-between;align-items:center;display:flex}._5HaBnq_sectionTitle{color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-14);margin:0;font-weight:600}._5HaBnq_grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;display:grid}._5HaBnq_field{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);flex-direction:column;gap:4px;display:flex}._5HaBnq_fieldLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}._5HaBnq_strategyHint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);line-height:1.5}._5HaBnq_batchWindowField{grid-column:1/-1}._5HaBnq_batchWindowRow{border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;padding:4px 6px;display:flex}._5HaBnq_batchWindowRow:hover{background:var(--dsw-alias-interactive-bg-hover)}._5HaBnq_batchWindowRow ._5HaBnq_input{flex:0 132px;width:auto;height:36px}._5HaBnq_batchWindowDash{color:var(--dsw-alias-label-tertiary)}._5HaBnq_batchWindowActions{margin-top:8px}._5HaBnq_input{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);width:100%;height:32px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);border-radius:8px;outline:none;padding:0 8px}._5HaBnq_input:focus{border-color:var(--dsw-alias-brand-primary)}._5HaBnq_checkbox{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);align-items:center;gap:6px;display:flex}._5HaBnq_pillRow{gap:6px;display:flex}._5HaBnq_autonomyPill{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);cursor:pointer;user-select:none;border-radius:999px;padding:4px 12px}._5HaBnq_autonomyPill:hover{background:var(--dsw-alias-interactive-bg-hover)}._5HaBnq_autonomyActive{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary);font-weight:600}._5HaBnq_confirmBox{color:var(--dsw-alias-state-warn-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-specific-tip);border-radius:8px;align-items:center;gap:8px;padding:8px 10px;display:flex}._5HaBnq_confirmBtn{background:var(--dsw-alias-state-warn-primary);color:var(--dsw-alias-label-primary-foreground);font:var(--dsw-font-xxs-12);cursor:pointer;border:none;border-radius:999px;padding:3px 10px}._5HaBnq_confirmCancel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border:none;padding:3px 8px}._5HaBnq_hint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);margin:0;line-height:1.6}._5HaBnq_windowRow{flex-wrap:wrap;align-items:center;gap:6px;display:flex}._5HaBnq_windowRow ._5HaBnq_input{flex:0 150px}._5HaBnq_dayRow{gap:4px;display:flex}._5HaBnq_dayBtn{border:1px solid var(--dsw-alias-border-l2);width:24px;height:24px;color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border-radius:999px;justify-content:center;align-items:center;display:inline-flex}._5HaBnq_dayBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}._5HaBnq_dayActive{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary);font-weight:600}._5HaBnq_noWindows{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);background:var(--dsw-specific-tip);border-radius:8px;padding:10px 12px}._5HaBnq_footer{justify-content:flex-end;display:flex}._5HaBnq_footerLeft{gap:8px;margin-right:auto;display:flex}._5HaBnq_officialCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:10px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}._5HaBnq_officialTitle{color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-strong-13)}._5HaBnq_officialBody{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);line-height:1.6}._5HaBnq_officialActions{align-items:center;gap:8px;margin-top:2px;display:flex}._5HaBnq_legend{gap:14px;display:flex}._5HaBnq_bandPeak{background:var(--dsw-alias-state-error-primary);opacity:.85}._5HaBnq_bandOff{background:var(--dsw-alias-state-success-primary);opacity:.85}._5HaBnq_bandCustom{background:var(--dsw-alias-state-warn-primary);opacity:.85}._5HaBnq_legendItem{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);align-items:center;gap:5px;display:flex}._5HaBnq_legendDot{opacity:.9;border-radius:2px;width:10px;height:10px}._5HaBnq_priceTable{flex-direction:column;gap:3px;display:flex}._5HaBnq_priceHead,._5HaBnq_priceRow{grid-template-columns:1.4fr .6fr 1fr 1fr 1fr;align-items:center;gap:6px;display:grid}._5HaBnq_priceHead{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12)}._5HaBnq_priceRow ._5HaBnq_input{height:28px}._5HaBnq_priceModel{color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);font-size:12px}._5HaBnq_priceTier{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}";
|
|
4592
5283
|
const tagId = "dsh-lowtide/settings.module.css";
|
|
4593
5284
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
4594
5285
|
const tag = document.createElement("style");
|
|
@@ -4598,52 +5289,56 @@ window.__ModuleLoader__.load({
|
|
|
4598
5289
|
document.head.appendChild(tag);
|
|
4599
5290
|
}
|
|
4600
5291
|
var settings_module_css_default = {
|
|
4601
|
-
"
|
|
4602
|
-
"
|
|
4603
|
-
"
|
|
4604
|
-
"
|
|
4605
|
-
"
|
|
4606
|
-
"
|
|
4607
|
-
"
|
|
4608
|
-
"
|
|
4609
|
-
"
|
|
4610
|
-
"
|
|
4611
|
-
"
|
|
4612
|
-
"
|
|
4613
|
-
"
|
|
4614
|
-
"
|
|
4615
|
-
"
|
|
4616
|
-
"
|
|
4617
|
-
"
|
|
4618
|
-
"
|
|
4619
|
-
"
|
|
4620
|
-
"
|
|
4621
|
-
"
|
|
4622
|
-
"
|
|
4623
|
-
"
|
|
4624
|
-
"
|
|
4625
|
-
"
|
|
4626
|
-
"
|
|
4627
|
-
"
|
|
4628
|
-
"
|
|
4629
|
-
"
|
|
4630
|
-
"
|
|
4631
|
-
"
|
|
4632
|
-
"
|
|
4633
|
-
"
|
|
4634
|
-
"
|
|
4635
|
-
"
|
|
4636
|
-
"
|
|
4637
|
-
"
|
|
4638
|
-
"
|
|
4639
|
-
"
|
|
4640
|
-
"
|
|
4641
|
-
"
|
|
4642
|
-
"
|
|
4643
|
-
"
|
|
4644
|
-
"
|
|
4645
|
-
"
|
|
4646
|
-
"
|
|
5292
|
+
"fieldLabel": "_5HaBnq_fieldLabel",
|
|
5293
|
+
"noWindows": "_5HaBnq_noWindows",
|
|
5294
|
+
"bandCustom": "_5HaBnq_bandCustom",
|
|
5295
|
+
"confirmBtn": "_5HaBnq_confirmBtn",
|
|
5296
|
+
"checkbox": "_5HaBnq_checkbox",
|
|
5297
|
+
"input": "_5HaBnq_input",
|
|
5298
|
+
"windowRow": "_5HaBnq_windowRow",
|
|
5299
|
+
"footerLeft": "_5HaBnq_footerLeft",
|
|
5300
|
+
"batchWindowField": "_5HaBnq_batchWindowField",
|
|
5301
|
+
"officialActions": "_5HaBnq_officialActions",
|
|
5302
|
+
"priceHead": "_5HaBnq_priceHead",
|
|
5303
|
+
"grid": "_5HaBnq_grid",
|
|
5304
|
+
"priceTier": "_5HaBnq_priceTier",
|
|
5305
|
+
"section": "_5HaBnq_section",
|
|
5306
|
+
"batchWindowDash": "_5HaBnq_batchWindowDash",
|
|
5307
|
+
"legendItem": "_5HaBnq_legendItem",
|
|
5308
|
+
"officialCard": "_5HaBnq_officialCard",
|
|
5309
|
+
"batchWindowActions": "_5HaBnq_batchWindowActions",
|
|
5310
|
+
"loading": "_5HaBnq_loading",
|
|
5311
|
+
"onboardingSteps": "_5HaBnq_onboardingSteps",
|
|
5312
|
+
"confirmBox": "_5HaBnq_confirmBox",
|
|
5313
|
+
"sectionTitle": "_5HaBnq_sectionTitle",
|
|
5314
|
+
"dayActive": "_5HaBnq_dayActive",
|
|
5315
|
+
"footer": "_5HaBnq_footer",
|
|
5316
|
+
"error": "_5HaBnq_error",
|
|
5317
|
+
"langLabel": "_5HaBnq_langLabel",
|
|
5318
|
+
"sectionHead": "_5HaBnq_sectionHead",
|
|
5319
|
+
"legendDot": "_5HaBnq_legendDot",
|
|
5320
|
+
"onboarding": "_5HaBnq_onboarding",
|
|
5321
|
+
"confirmCancel": "_5HaBnq_confirmCancel",
|
|
5322
|
+
"pillRow": "_5HaBnq_pillRow",
|
|
5323
|
+
"priceTable": "_5HaBnq_priceTable",
|
|
5324
|
+
"field": "_5HaBnq_field",
|
|
5325
|
+
"onboardingTitle": "_5HaBnq_onboardingTitle",
|
|
5326
|
+
"strategyHint": "_5HaBnq_strategyHint",
|
|
5327
|
+
"hint": "_5HaBnq_hint",
|
|
5328
|
+
"batchWindowRow": "_5HaBnq_batchWindowRow",
|
|
5329
|
+
"officialBody": "_5HaBnq_officialBody",
|
|
5330
|
+
"autonomyActive": "_5HaBnq_autonomyActive",
|
|
5331
|
+
"priceRow": "_5HaBnq_priceRow",
|
|
5332
|
+
"priceModel": "_5HaBnq_priceModel",
|
|
5333
|
+
"dayRow": "_5HaBnq_dayRow",
|
|
5334
|
+
"bandPeak": "_5HaBnq_bandPeak",
|
|
5335
|
+
"dayBtn": "_5HaBnq_dayBtn",
|
|
5336
|
+
"bandOff": "_5HaBnq_bandOff",
|
|
5337
|
+
"page": "_5HaBnq_page",
|
|
5338
|
+
"autonomyPill": "_5HaBnq_autonomyPill",
|
|
5339
|
+
"langRow": "_5HaBnq_langRow",
|
|
5340
|
+
"officialTitle": "_5HaBnq_officialTitle",
|
|
5341
|
+
"legend": "_5HaBnq_legend"
|
|
4647
5342
|
};
|
|
4648
5343
|
//#endregion
|
|
4649
5344
|
//#region client/settings.tsx
|
|
@@ -4656,6 +5351,37 @@ window.__ModuleLoader__.load({
|
|
|
4656
5351
|
*/
|
|
4657
5352
|
/** Editable price-table rows: canonical official ids plus legacy aliases. */
|
|
4658
5353
|
const OFFICIAL_PRICE_MODELS = [.../* @__PURE__ */ new Set([...Object.keys(OFFICIAL_PRICES), ...Object.keys(PRICE_ALIASES)])];
|
|
5354
|
+
function minutesOf(hhmm) {
|
|
5355
|
+
const match = /^(\d{1,2}):(\d{2})$/.exec(hhmm);
|
|
5356
|
+
if (match === null) return NaN;
|
|
5357
|
+
const h = Number(match[1]);
|
|
5358
|
+
const m = Number(match[2]);
|
|
5359
|
+
if (h > 23 || m > 59) return NaN;
|
|
5360
|
+
return h * 60 + m;
|
|
5361
|
+
}
|
|
5362
|
+
/** Half-open minute intervals of a window on the [0, 2880) axis (a
|
|
5363
|
+
* midnight-crossing range unwraps past 1440; start === end = full day). */
|
|
5364
|
+
function rangeIntervals(start, end) {
|
|
5365
|
+
if (end > start) return [[start, end]];
|
|
5366
|
+
if (end < start) return [[start, end + 1440]];
|
|
5367
|
+
return [[0, 1440]];
|
|
5368
|
+
}
|
|
5369
|
+
/** Whether two "HH:MM"-"HH:MM" drafts overlap (for the non-blocking hint). */
|
|
5370
|
+
function batchWindowsOverlap(list) {
|
|
5371
|
+
const intervals = [];
|
|
5372
|
+
for (const w of list) {
|
|
5373
|
+
const start = minutesOf(w.start);
|
|
5374
|
+
const end = minutesOf(w.end);
|
|
5375
|
+
if (Number.isNaN(start) || Number.isNaN(end)) continue;
|
|
5376
|
+
intervals.push(...rangeIntervals(start, end));
|
|
5377
|
+
}
|
|
5378
|
+
for (let i = 0; i < intervals.length; i++) for (let j = i + 1; j < intervals.length; j++) {
|
|
5379
|
+
const [a0, a1] = intervals[i];
|
|
5380
|
+
const [b0, b1] = intervals[j];
|
|
5381
|
+
if (a0 < b1 && b0 < a1) return true;
|
|
5382
|
+
}
|
|
5383
|
+
return false;
|
|
5384
|
+
}
|
|
4659
5385
|
/** 当前本地时区的 UTC 偏移标签,如 "UTC+8" / "UTC-5"。 */
|
|
4660
5386
|
function utcOffsetLabel() {
|
|
4661
5387
|
const minutes = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
@@ -4754,7 +5480,13 @@ window.__ModuleLoader__.load({
|
|
|
4754
5480
|
}
|
|
4755
5481
|
const c = res.config;
|
|
4756
5482
|
const batch = c.batch ?? {};
|
|
4757
|
-
const
|
|
5483
|
+
const batchWindows = (Array.isArray(batch.windows) && batch.windows.length > 0 ? batch.windows : [batch.window ?? "19:00-23:30"]).map((w) => {
|
|
5484
|
+
const [s, e] = String(w).split("-");
|
|
5485
|
+
return {
|
|
5486
|
+
start: s ?? "19:00",
|
|
5487
|
+
end: e ?? "23:30"
|
|
5488
|
+
};
|
|
5489
|
+
});
|
|
4758
5490
|
const prices = {};
|
|
4759
5491
|
if (c.prices !== void 0 && typeof c.prices === "object") for (const [model, tier] of Object.entries(c.prices)) prices[model] = {
|
|
4760
5492
|
peak: {
|
|
@@ -4769,8 +5501,7 @@ window.__ModuleLoader__.load({
|
|
|
4769
5501
|
}
|
|
4770
5502
|
};
|
|
4771
5503
|
setDraft({
|
|
4772
|
-
|
|
4773
|
-
end: end ?? "23:30",
|
|
5504
|
+
batchWindows,
|
|
4774
5505
|
tz: typeof batch.tz === "string" ? batch.tz : "",
|
|
4775
5506
|
paused: batch.paused === true,
|
|
4776
5507
|
gateLeadMin: String(typeof batch.gateLeadMin === "number" ? batch.gateLeadMin : 30),
|
|
@@ -4819,6 +5550,15 @@ window.__ModuleLoader__.load({
|
|
|
4819
5550
|
} : w)
|
|
4820
5551
|
});
|
|
4821
5552
|
}
|
|
5553
|
+
function setBatchWindow(index, patch) {
|
|
5554
|
+
setDraft((d) => d === null ? d : {
|
|
5555
|
+
...d,
|
|
5556
|
+
batchWindows: d.batchWindows.map((w, i) => i === index ? {
|
|
5557
|
+
...w,
|
|
5558
|
+
...patch
|
|
5559
|
+
} : w)
|
|
5560
|
+
});
|
|
5561
|
+
}
|
|
4822
5562
|
/** 已处于官方时段:窗口为空(空=官方回退,与显式采用等价)或草稿显式等于换算段(禁用"一键采用")。 */
|
|
4823
5563
|
const officialAdopted = meta !== null && (draft.windows.length === 0 || meta.officialInLocal.length > 0 && draft.windows.length === meta.officialInLocal.length && meta.officialInLocal.every((w) => draft.windows.some((d) => d.level === "peak" && d.start === w.start && d.end === w.end)));
|
|
4824
5564
|
/** 一键采用:官方忙时本地换算段写入窗口草稿(level=peak,保存时自动生成 id)。
|
|
@@ -4865,8 +5605,10 @@ window.__ModuleLoader__.load({
|
|
|
4865
5605
|
function restoreDefaults() {
|
|
4866
5606
|
setDraft((d) => d === null ? d : {
|
|
4867
5607
|
...d,
|
|
4868
|
-
|
|
4869
|
-
|
|
5608
|
+
batchWindows: [{
|
|
5609
|
+
start: "19:00",
|
|
5610
|
+
end: "23:30"
|
|
5611
|
+
}],
|
|
4870
5612
|
tz: "",
|
|
4871
5613
|
paused: false,
|
|
4872
5614
|
gateLeadMin: "30",
|
|
@@ -4896,6 +5638,12 @@ window.__ModuleLoader__.load({
|
|
|
4896
5638
|
const save = async () => {
|
|
4897
5639
|
setSaving(true);
|
|
4898
5640
|
setError(null);
|
|
5641
|
+
const batchRanges = [...new Set(draft.batchWindows.map((w) => `${w.start}-${w.end}`))];
|
|
5642
|
+
if (batchRanges.length === 0 || draft.batchWindows.some((w) => Number.isNaN(minutesOf(w.start)) || Number.isNaN(minutesOf(w.end)))) {
|
|
5643
|
+
setSaving(false);
|
|
5644
|
+
setError(t("settings.batchWindowInvalid"));
|
|
5645
|
+
return;
|
|
5646
|
+
}
|
|
4899
5647
|
const daysOf = (s) => {
|
|
4900
5648
|
const days = s.split(",").map((x) => Number(x.trim())).filter((n) => Number.isInteger(n) && n >= 1 && n <= 7);
|
|
4901
5649
|
return days.length > 0 ? days : void 0;
|
|
@@ -4927,7 +5675,8 @@ window.__ModuleLoader__.load({
|
|
|
4927
5675
|
}
|
|
4928
5676
|
const res = await updateConfig({
|
|
4929
5677
|
batch: {
|
|
4930
|
-
window:
|
|
5678
|
+
window: batchRanges[0] ?? "19:00-23:30",
|
|
5679
|
+
windows: batchRanges,
|
|
4931
5680
|
...draft.tz.trim() !== "" ? { tz: draft.tz.trim() } : {},
|
|
4932
5681
|
gateLeadMin: Math.max(Number(draft.gateLeadMin) || 0, 0),
|
|
4933
5682
|
maxTasksPerNight: Math.max(Number(draft.maxTasksPerNight) || 1, 1),
|
|
@@ -4999,23 +5748,66 @@ window.__ModuleLoader__.load({
|
|
|
4999
5748
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5000
5749
|
className: settings_module_css_default.grid,
|
|
5001
5750
|
children: [
|
|
5002
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("
|
|
5003
|
-
className: settings_module_css_default.field
|
|
5004
|
-
children: [
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5751
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5752
|
+
className: `${settings_module_css_default.field} ${settings_module_css_default.batchWindowField}`,
|
|
5753
|
+
children: [
|
|
5754
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5755
|
+
className: settings_module_css_default.fieldLabel,
|
|
5756
|
+
children: t("settings.batchWindowList")
|
|
5757
|
+
}),
|
|
5758
|
+
draft.batchWindows.map((w, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5759
|
+
className: settings_module_css_default.batchWindowRow,
|
|
5760
|
+
children: [
|
|
5761
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
5762
|
+
type: "time",
|
|
5763
|
+
className: settings_module_css_default.input,
|
|
5764
|
+
"aria-label": t("settings.start"),
|
|
5765
|
+
value: w.start,
|
|
5766
|
+
onChange: (e) => setBatchWindow(i, { start: e.target.value })
|
|
5767
|
+
}),
|
|
5768
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5769
|
+
className: settings_module_css_default.batchWindowDash,
|
|
5770
|
+
children: "–"
|
|
5771
|
+
}),
|
|
5772
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
5773
|
+
type: "time",
|
|
5774
|
+
className: settings_module_css_default.input,
|
|
5775
|
+
"aria-label": t("settings.end"),
|
|
5776
|
+
value: w.end,
|
|
5777
|
+
onChange: (e) => setBatchWindow(i, { end: e.target.value })
|
|
5778
|
+
}),
|
|
5779
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
5780
|
+
variant: "ghost",
|
|
5781
|
+
size: "md",
|
|
5782
|
+
disabled: draft.batchWindows.length <= 1,
|
|
5783
|
+
title: draft.batchWindows.length <= 1 ? t("settings.batchWindowMin") : void 0,
|
|
5784
|
+
onClick: () => set("batchWindows", draft.batchWindows.filter((_, idx) => idx !== i)),
|
|
5785
|
+
children: t("settings.windowDelete")
|
|
5786
|
+
})
|
|
5787
|
+
]
|
|
5788
|
+
}, i)),
|
|
5789
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5790
|
+
className: settings_module_css_default.batchWindowActions,
|
|
5791
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
5792
|
+
variant: "outline",
|
|
5793
|
+
size: "md",
|
|
5794
|
+
disabled: draft.batchWindows.length >= 6,
|
|
5795
|
+
onClick: () => set("batchWindows", [...draft.batchWindows, {
|
|
5796
|
+
start: "22:00",
|
|
5797
|
+
end: "23:30"
|
|
5798
|
+
}]),
|
|
5799
|
+
children: t("settings.addBatchWindow")
|
|
5800
|
+
})
|
|
5801
|
+
}),
|
|
5802
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5803
|
+
className: settings_module_css_default.strategyHint,
|
|
5804
|
+
children: t("settings.batchWindowsHint")
|
|
5805
|
+
}),
|
|
5806
|
+
batchWindowsOverlap(draft.batchWindows) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5807
|
+
className: settings_module_css_default.strategyHint,
|
|
5808
|
+
children: t("settings.batchWindowOverlap")
|
|
5809
|
+
})
|
|
5810
|
+
]
|
|
5019
5811
|
}),
|
|
5020
5812
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
5021
5813
|
className: settings_module_css_default.field,
|