@myparcel-dev/pdk-admin-js 2.4.1 → 2.4.2-beta-oidc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OrderModeOrderListItem-Bl0j88VV.js → OrderModeOrderListItem-OOsP2w8C.js} +2 -4
- package/dist/{PrintOptionsModalForm-DzSWU0eT.js → PrintOptionsModalForm-BowCXGT1.js} +2 -4
- package/dist/{ShipmentModeOrderListItem-CFy6K0Mg.js → ShipmentModeOrderListItem-BD1HRZUb.js} +2 -4
- package/dist/{ShipmentOptionsModalForm-Dqslsx-9.js → ShipmentOptionsModalForm-BvlxepIT.js} +2 -4
- package/dist/{ShipmentTableBox-dPC_Cb6U.js → ShipmentTableBox-E6HocN3g.js} +8 -15
- package/dist/index.js +170 -332
- package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/dist/{shared-dyJ_FTPr.js → shared-DIRu4sin.js} +340 -651
- package/package.json +23 -16
- package/tsconfig.base.json +0 -7
- package/vite.config.ts +0 -42
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
2
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/subscribable.mjs
|
|
3
3
|
var Subscribable = class {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.listeners = /* @__PURE__ */ new Set();
|
|
@@ -20,8 +20,7 @@ var Subscribable = class {
|
|
|
20
20
|
onSubscribe() {}
|
|
21
21
|
onUnsubscribe() {}
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/utils.mjs
|
|
23
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/utils.mjs
|
|
25
24
|
var isServer = typeof window === "undefined" || "Deno" in window;
|
|
26
25
|
function noop$2() {}
|
|
27
26
|
function functionalUpdate(updater, input) {
|
|
@@ -157,8 +156,7 @@ function replaceData(prevData, data, options) {
|
|
|
157
156
|
else if (options.structuralSharing !== false) return replaceEqualDeep(prevData, data);
|
|
158
157
|
return data;
|
|
159
158
|
}
|
|
160
|
-
|
|
161
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/focusManager.mjs
|
|
159
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/focusManager.mjs
|
|
162
160
|
var FocusManager = class extends Subscribable {
|
|
163
161
|
constructor() {
|
|
164
162
|
super();
|
|
@@ -215,8 +213,7 @@ var FocusManager = class extends Subscribable {
|
|
|
215
213
|
}
|
|
216
214
|
};
|
|
217
215
|
var focusManager = new FocusManager();
|
|
218
|
-
|
|
219
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/onlineManager.mjs
|
|
216
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/onlineManager.mjs
|
|
220
217
|
var onlineEvents = ["online", "offline"];
|
|
221
218
|
var OnlineManager = class extends Subscribable {
|
|
222
219
|
constructor() {
|
|
@@ -272,8 +269,7 @@ var OnlineManager = class extends Subscribable {
|
|
|
272
269
|
}
|
|
273
270
|
};
|
|
274
271
|
var onlineManager = new OnlineManager();
|
|
275
|
-
|
|
276
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/retryer.mjs
|
|
272
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/retryer.mjs
|
|
277
273
|
function defaultRetryDelay(failureCount) {
|
|
278
274
|
return Math.min(1e3 * 2 ** failureCount, 3e4);
|
|
279
275
|
}
|
|
@@ -383,11 +379,9 @@ function createRetryer(config) {
|
|
|
383
379
|
continueRetry
|
|
384
380
|
};
|
|
385
381
|
}
|
|
386
|
-
|
|
387
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/logger.mjs
|
|
382
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/logger.mjs
|
|
388
383
|
var defaultLogger = console;
|
|
389
|
-
|
|
390
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/notifyManager.mjs
|
|
384
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/notifyManager.mjs
|
|
391
385
|
function createNotifyManager() {
|
|
392
386
|
let queue = [];
|
|
393
387
|
let transactions = 0;
|
|
@@ -447,8 +441,7 @@ function createNotifyManager() {
|
|
|
447
441
|
};
|
|
448
442
|
}
|
|
449
443
|
var notifyManager = createNotifyManager();
|
|
450
|
-
|
|
451
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/removable.mjs
|
|
444
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/removable.mjs
|
|
452
445
|
var Removable = class {
|
|
453
446
|
destroy() {
|
|
454
447
|
this.clearGcTimeout();
|
|
@@ -469,8 +462,7 @@ var Removable = class {
|
|
|
469
462
|
}
|
|
470
463
|
}
|
|
471
464
|
};
|
|
472
|
-
|
|
473
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/mutation.mjs
|
|
465
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/mutation.mjs
|
|
474
466
|
var Mutation = class extends Removable {
|
|
475
467
|
constructor(config) {
|
|
476
468
|
super();
|
|
@@ -676,8 +668,7 @@ function getDefaultState() {
|
|
|
676
668
|
variables: void 0
|
|
677
669
|
};
|
|
678
670
|
}
|
|
679
|
-
|
|
680
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/queryObserver.mjs
|
|
671
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/queryObserver.mjs
|
|
681
672
|
var QueryObserver = class extends Subscribable {
|
|
682
673
|
constructor(client, options) {
|
|
683
674
|
super();
|
|
@@ -1020,8 +1011,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult, optio
|
|
|
1020
1011
|
if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) return true;
|
|
1021
1012
|
return false;
|
|
1022
1013
|
}
|
|
1023
|
-
|
|
1024
|
-
//#region ../../node_modules/@tanstack/query-core/build/lib/mutationObserver.mjs
|
|
1014
|
+
// ../../node_modules/.pnpm/@tanstack+query-core@4.43.0/node_modules/@tanstack/query-core/build/lib/mutationObserver.mjs
|
|
1025
1015
|
var MutationObserver$1 = class extends Subscribable {
|
|
1026
1016
|
constructor(client, options) {
|
|
1027
1017
|
super();
|
|
@@ -1110,8 +1100,7 @@ var MutationObserver$1 = class extends Subscribable {
|
|
|
1110
1100
|
});
|
|
1111
1101
|
}
|
|
1112
1102
|
};
|
|
1113
|
-
|
|
1114
|
-
//#region ../../node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
1103
|
+
// ../../node_modules/.pnpm/@vue+shared@3.4.31/node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
1115
1104
|
/**
|
|
1116
1105
|
* @vue/shared v3.4.31
|
|
1117
1106
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -1328,8 +1317,7 @@ var stringifySymbol = (v, i = "") => {
|
|
|
1328
1317
|
var _a;
|
|
1329
1318
|
return isSymbol$1(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
|
|
1330
1319
|
};
|
|
1331
|
-
|
|
1332
|
-
//#region ../../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
1320
|
+
// ../../node_modules/.pnpm/@vue+reactivity@3.4.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
1333
1321
|
/**
|
|
1334
1322
|
* @vue/reactivity v3.4.31
|
|
1335
1323
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -1785,7 +1773,7 @@ function add(value) {
|
|
|
1785
1773
|
}
|
|
1786
1774
|
return this;
|
|
1787
1775
|
}
|
|
1788
|
-
function set$
|
|
1776
|
+
function set$2(key, value) {
|
|
1789
1777
|
value = toRaw(value);
|
|
1790
1778
|
const target = toRaw(this);
|
|
1791
1779
|
const { has: has2, get: get2 } = getProto(target);
|
|
@@ -1879,7 +1867,7 @@ function createInstrumentations() {
|
|
|
1879
1867
|
},
|
|
1880
1868
|
has: has$1,
|
|
1881
1869
|
add,
|
|
1882
|
-
set: set$
|
|
1870
|
+
set: set$2,
|
|
1883
1871
|
delete: deleteEntry,
|
|
1884
1872
|
clear,
|
|
1885
1873
|
forEach: createForEach(false, false)
|
|
@@ -1893,7 +1881,7 @@ function createInstrumentations() {
|
|
|
1893
1881
|
},
|
|
1894
1882
|
has: has$1,
|
|
1895
1883
|
add,
|
|
1896
|
-
set: set$
|
|
1884
|
+
set: set$2,
|
|
1897
1885
|
delete: deleteEntry,
|
|
1898
1886
|
clear,
|
|
1899
1887
|
forEach: createForEach(false, true)
|
|
@@ -2245,8 +2233,7 @@ var TriggerOpTypes = {
|
|
|
2245
2233
|
"DELETE": "delete",
|
|
2246
2234
|
"CLEAR": "clear"
|
|
2247
2235
|
};
|
|
2248
|
-
|
|
2249
|
-
//#region ../../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
2236
|
+
// ../../node_modules/.pnpm/@vue+runtime-core@3.4.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
2250
2237
|
/**
|
|
2251
2238
|
* @vue/runtime-core v3.4.31
|
|
2252
2239
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -7294,8 +7281,7 @@ var ssrUtils = {
|
|
|
7294
7281
|
normalizeVNode,
|
|
7295
7282
|
getComponentPublicInstance
|
|
7296
7283
|
};
|
|
7297
|
-
|
|
7298
|
-
//#region ../../node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
|
|
7284
|
+
// ../../node_modules/.pnpm/@vue+runtime-dom@3.4.31/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
|
|
7299
7285
|
/**
|
|
7300
7286
|
* @vue/runtime-dom v3.4.31
|
|
7301
7287
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -8492,8 +8478,7 @@ var initDirectivesForSSR = () => {
|
|
|
8492
8478
|
initVShowForSSR();
|
|
8493
8479
|
}
|
|
8494
8480
|
};
|
|
8495
|
-
|
|
8496
|
-
//#region ../../node_modules/vue/dist/vue.runtime.esm-bundler.js
|
|
8481
|
+
// ../../node_modules/.pnpm/vue@3.4.31_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
|
|
8497
8482
|
/**
|
|
8498
8483
|
* vue v3.4.31
|
|
8499
8484
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -8667,8 +8652,7 @@ if (!!(process.env.NODE_ENV !== "production")) initDev();
|
|
|
8667
8652
|
var compile = () => {
|
|
8668
8653
|
if (!!(process.env.NODE_ENV !== "production")) warn("Runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".");
|
|
8669
8654
|
};
|
|
8670
|
-
|
|
8671
|
-
//#region ../../node_modules/@tanstack/vue-query/build/lib/utils.mjs
|
|
8655
|
+
// ../../node_modules/.pnpm/@tanstack+vue-query@4.43.0_vue@3.4.31_typescript@5.9.3_/node_modules/@tanstack/vue-query/build/lib/utils.mjs
|
|
8672
8656
|
function getClientKey(key) {
|
|
8673
8657
|
return "VUE_QUERY_CLIENT" + (key ? ":" + key : "");
|
|
8674
8658
|
}
|
|
@@ -8709,8 +8693,7 @@ function shouldThrowError(_useErrorBoundary, params) {
|
|
|
8709
8693
|
if (typeof _useErrorBoundary === "function") return _useErrorBoundary(...params);
|
|
8710
8694
|
return !!_useErrorBoundary;
|
|
8711
8695
|
}
|
|
8712
|
-
|
|
8713
|
-
//#region ../../node_modules/@tanstack/vue-query/build/lib/useQueryClient.mjs
|
|
8696
|
+
// ../../node_modules/.pnpm/@tanstack+vue-query@4.43.0_vue@3.4.31_typescript@5.9.3_/node_modules/@tanstack/vue-query/build/lib/useQueryClient.mjs
|
|
8714
8697
|
function useQueryClient(id = "") {
|
|
8715
8698
|
const queryClient = inject(getClientKey(id), null);
|
|
8716
8699
|
if (!queryClient) {
|
|
@@ -8720,8 +8703,7 @@ function useQueryClient(id = "") {
|
|
|
8720
8703
|
}
|
|
8721
8704
|
return queryClient;
|
|
8722
8705
|
}
|
|
8723
|
-
|
|
8724
|
-
//#region ../../node_modules/@vue/devtools-api/lib/esm/env.js
|
|
8706
|
+
// ../../node_modules/.pnpm/@vue+devtools-api@6.6.1/node_modules/@vue/devtools-api/lib/esm/env.js
|
|
8725
8707
|
function getDevtoolsGlobalHook() {
|
|
8726
8708
|
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
8727
8709
|
}
|
|
@@ -8729,12 +8711,10 @@ function getTarget() {
|
|
|
8729
8711
|
return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : {};
|
|
8730
8712
|
}
|
|
8731
8713
|
var isProxyAvailable = typeof Proxy === "function";
|
|
8732
|
-
|
|
8733
|
-
//#region ../../node_modules/@vue/devtools-api/lib/esm/const.js
|
|
8714
|
+
// ../../node_modules/.pnpm/@vue+devtools-api@6.6.1/node_modules/@vue/devtools-api/lib/esm/const.js
|
|
8734
8715
|
var HOOK_SETUP = "devtools-plugin:setup";
|
|
8735
8716
|
var HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set";
|
|
8736
|
-
|
|
8737
|
-
//#region ../../node_modules/@vue/devtools-api/lib/esm/time.js
|
|
8717
|
+
// ../../node_modules/.pnpm/@vue+devtools-api@6.6.1/node_modules/@vue/devtools-api/lib/esm/time.js
|
|
8738
8718
|
var supported;
|
|
8739
8719
|
var perf;
|
|
8740
8720
|
function isPerformanceSupported() {
|
|
@@ -8752,8 +8732,7 @@ function isPerformanceSupported() {
|
|
|
8752
8732
|
function now() {
|
|
8753
8733
|
return isPerformanceSupported() ? perf.now() : Date.now();
|
|
8754
8734
|
}
|
|
8755
|
-
|
|
8756
|
-
//#region ../../node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
8735
|
+
// ../../node_modules/.pnpm/@vue+devtools-api@6.6.1/node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
8757
8736
|
var ApiProxy = class {
|
|
8758
8737
|
constructor(plugin, hook) {
|
|
8759
8738
|
this.target = null;
|
|
@@ -8824,8 +8803,7 @@ var ApiProxy = class {
|
|
|
8824
8803
|
for (const item of this.targetQueue) item.resolve(await this.target[item.method](...item.args));
|
|
8825
8804
|
}
|
|
8826
8805
|
};
|
|
8827
|
-
|
|
8828
|
-
//#region ../../node_modules/@vue/devtools-api/lib/esm/index.js
|
|
8806
|
+
// ../../node_modules/.pnpm/@vue+devtools-api@6.6.1/node_modules/@vue/devtools-api/lib/esm/index.js
|
|
8829
8807
|
function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
8830
8808
|
const descriptor = pluginDescriptor;
|
|
8831
8809
|
const target = getTarget();
|
|
@@ -8842,8 +8820,7 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
|
8842
8820
|
if (proxy) setupFn(proxy.proxiedTarget);
|
|
8843
8821
|
}
|
|
8844
8822
|
}
|
|
8845
|
-
|
|
8846
|
-
//#region ../../node_modules/@tanstack/vue-query/build/lib/useBaseQuery.mjs
|
|
8823
|
+
// ../../node_modules/.pnpm/@tanstack+vue-query@4.43.0_vue@3.4.31_typescript@5.9.3_/node_modules/@tanstack/vue-query/build/lib/useBaseQuery.mjs
|
|
8847
8824
|
function useBaseQuery(Observer, arg1, arg2 = {}, arg3 = {}) {
|
|
8848
8825
|
var _options$value$queryC;
|
|
8849
8826
|
if (process.env.NODE_ENV === "development") {
|
|
@@ -8926,13 +8903,11 @@ function parseQueryArgs(arg1, arg2 = {}, arg3 = {}) {
|
|
|
8926
8903
|
if (typeof clondedOptions.enabled === "function") clondedOptions.enabled = clondedOptions.enabled();
|
|
8927
8904
|
return clondedOptions;
|
|
8928
8905
|
}
|
|
8929
|
-
|
|
8930
|
-
//#region ../../node_modules/@tanstack/vue-query/build/lib/useQuery.mjs
|
|
8906
|
+
// ../../node_modules/.pnpm/@tanstack+vue-query@4.43.0_vue@3.4.31_typescript@5.9.3_/node_modules/@tanstack/vue-query/build/lib/useQuery.mjs
|
|
8931
8907
|
function useQuery(arg1, arg2, arg3) {
|
|
8932
8908
|
return useBaseQuery(QueryObserver, arg1, arg2, arg3);
|
|
8933
8909
|
}
|
|
8934
|
-
|
|
8935
|
-
//#region ../../node_modules/@tanstack/vue-query/build/lib/useMutation.mjs
|
|
8910
|
+
// ../../node_modules/.pnpm/@tanstack+vue-query@4.43.0_vue@3.4.31_typescript@5.9.3_/node_modules/@tanstack/vue-query/build/lib/useMutation.mjs
|
|
8936
8911
|
function useMutation(arg1, arg2, arg3) {
|
|
8937
8912
|
var _options$value$queryC;
|
|
8938
8913
|
if (process.env.NODE_ENV === "development") {
|
|
@@ -8988,8 +8963,7 @@ function parseMutationArgs(arg1, arg2, arg3) {
|
|
|
8988
8963
|
};
|
|
8989
8964
|
return cloneDeepUnref(options);
|
|
8990
8965
|
}
|
|
8991
|
-
|
|
8992
|
-
//#region ../../libs/common/src/data/common.ts
|
|
8966
|
+
// ../../libs/common/src/data/common.ts
|
|
8993
8967
|
var Variant = /* @__PURE__ */ function(Variant) {
|
|
8994
8968
|
Variant["Primary"] = "primary";
|
|
8995
8969
|
Variant["Secondary"] = "secondary";
|
|
@@ -9014,8 +8988,7 @@ var Status = /* @__PURE__ */ function(Status) {
|
|
|
9014
8988
|
Status["Warning"] = "warning";
|
|
9015
8989
|
return Status;
|
|
9016
8990
|
}({});
|
|
9017
|
-
|
|
9018
|
-
//#region ../../libs/common/src/data/constants.ts
|
|
8991
|
+
// ../../libs/common/src/data/constants.ts
|
|
9019
8992
|
var TriState = /* @__PURE__ */ function(TriState) {
|
|
9020
8993
|
TriState[TriState["Inherit"] = -1] = "Inherit";
|
|
9021
8994
|
TriState[TriState["On"] = 1] = "On";
|
|
@@ -9037,8 +9010,7 @@ var AdminContextKey = /* @__PURE__ */ function(AdminContextKey) {
|
|
|
9037
9010
|
AdminContextKey["Instance"] = "instance";
|
|
9038
9011
|
return AdminContextKey;
|
|
9039
9012
|
}({});
|
|
9040
|
-
|
|
9041
|
-
//#region ../../libs/common/src/data/endpoints.ts
|
|
9013
|
+
// ../../libs/common/src/data/endpoints.ts
|
|
9042
9014
|
var BackendEndpoint = /* @__PURE__ */ function(BackendEndpoint) {
|
|
9043
9015
|
BackendEndpoint["FetchContext"] = "fetchContext";
|
|
9044
9016
|
BackendEndpoint["DeleteAccount"] = "deleteAccount";
|
|
@@ -9072,8 +9044,7 @@ var FrontendEndpoint = /* @__PURE__ */ function(FrontendEndpoint) {
|
|
|
9072
9044
|
FrontendEndpoint["ProxyCapabilities"] = "proxyCapabilities";
|
|
9073
9045
|
return FrontendEndpoint;
|
|
9074
9046
|
}({});
|
|
9075
|
-
|
|
9076
|
-
//#region ../../node_modules/@myparcel-dev/sdk/lib/index.js
|
|
9047
|
+
// ../../node_modules/.pnpm/@myparcel-dev+sdk@5.1.2/node_modules/@myparcel-dev/sdk/lib/index.js
|
|
9077
9048
|
var T = Object.defineProperty;
|
|
9078
9049
|
var O = (s, t, r) => t in s ? T(s, t, {
|
|
9079
9050
|
enumerable: !0,
|
|
@@ -9306,8 +9277,7 @@ var de = class extends m {
|
|
|
9306
9277
|
e(this, "property", "carriers");
|
|
9307
9278
|
}
|
|
9308
9279
|
};
|
|
9309
|
-
|
|
9310
|
-
//#region ../../node_modules/@myparcel-dev/ts-utils/dist/index.js
|
|
9280
|
+
// ../../node_modules/.pnpm/@myparcel-dev+ts-utils@1.15.2/node_modules/@myparcel-dev/ts-utils/dist/index.js
|
|
9311
9281
|
function isEnumValue(key, enumObject) {
|
|
9312
9282
|
return Object.values(enumObject).includes(key);
|
|
9313
9283
|
}
|
|
@@ -9325,8 +9295,7 @@ var toArray = (itemOrItems, separator) => {
|
|
|
9325
9295
|
if (separator && typeof itemOrItems === "string") return itemOrItems.split(separator);
|
|
9326
9296
|
return Array.isArray(itemOrItems) ? itemOrItems : [itemOrItems];
|
|
9327
9297
|
};
|
|
9328
|
-
|
|
9329
|
-
//#region ../../node_modules/@myparcel-dev/constants/dist/index.js
|
|
9298
|
+
// ../../node_modules/.pnpm/@myparcel-dev+constants@2.10.1/node_modules/@myparcel-dev/constants/dist/index.js
|
|
9330
9299
|
var CarrierId = /* @__PURE__ */ ((CarrierId2) => {
|
|
9331
9300
|
CarrierId2[CarrierId2["PostNl"] = 1] = "PostNl";
|
|
9332
9301
|
CarrierId2[CarrierId2["Bpost"] = 2] = "Bpost";
|
|
@@ -9387,8 +9356,24 @@ var PackageTypeName = /* @__PURE__ */ ((PackageTypeName2) => {
|
|
|
9387
9356
|
PackageTypeName2["Envelope"] = "envelope";
|
|
9388
9357
|
return PackageTypeName2;
|
|
9389
9358
|
})(PackageTypeName || {});
|
|
9390
|
-
|
|
9391
|
-
|
|
9359
|
+
// ../../node_modules/.pnpm/vue-demi@0.14.10_vue@3.4.31_typescript@5.9.3_/node_modules/vue-demi/lib/index.mjs
|
|
9360
|
+
function set$1(target, key, val) {
|
|
9361
|
+
if (Array.isArray(target)) {
|
|
9362
|
+
target.length = Math.max(target.length, key);
|
|
9363
|
+
target.splice(key, 1, val);
|
|
9364
|
+
return val;
|
|
9365
|
+
}
|
|
9366
|
+
target[key] = val;
|
|
9367
|
+
return val;
|
|
9368
|
+
}
|
|
9369
|
+
function del(target, key) {
|
|
9370
|
+
if (Array.isArray(target)) {
|
|
9371
|
+
target.splice(key, 1);
|
|
9372
|
+
return;
|
|
9373
|
+
}
|
|
9374
|
+
delete target[key];
|
|
9375
|
+
}
|
|
9376
|
+
// ../../node_modules/.pnpm/@vueuse+shared@10.11.1_vue@3.4.31_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
9392
9377
|
function createGlobalState(stateFactory) {
|
|
9393
9378
|
let initialized = false;
|
|
9394
9379
|
let state;
|
|
@@ -9544,8 +9529,7 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
9544
9529
|
}
|
|
9545
9530
|
});
|
|
9546
9531
|
}
|
|
9547
|
-
|
|
9548
|
-
//#region ../admin/src/data/components.ts
|
|
9532
|
+
// ../admin/src/data/components.ts
|
|
9549
9533
|
var AdminComponent = /* @__PURE__ */ function(AdminComponent) {
|
|
9550
9534
|
AdminComponent["Badge"] = "Badge";
|
|
9551
9535
|
AdminComponent["Box"] = "Box";
|
|
@@ -9642,8 +9626,7 @@ var allAdminComponentNames = [
|
|
|
9642
9626
|
...optionalAdminPlainWrapperComponentNames,
|
|
9643
9627
|
...optionalAdminActionContainerComponentNames
|
|
9644
9628
|
];
|
|
9645
|
-
|
|
9646
|
-
//#region ../admin/src/data/constants.ts
|
|
9629
|
+
// ../admin/src/data/constants.ts
|
|
9647
9630
|
var AdminInstanceContextKey = /* @__PURE__ */ function(AdminInstanceContextKey) {
|
|
9648
9631
|
AdminInstanceContextKey["OrderIdentifier"] = "orderIdentifier";
|
|
9649
9632
|
AdminInstanceContextKey["ProductIdentifier"] = "productIdentifier";
|
|
@@ -9711,8 +9694,7 @@ var AdminAction = /* @__PURE__ */ function(AdminAction) {
|
|
|
9711
9694
|
AdminAction["SwitchToProductionApi"] = "switchToProductionApi";
|
|
9712
9695
|
return AdminAction;
|
|
9713
9696
|
}({});
|
|
9714
|
-
|
|
9715
|
-
//#region ../admin/src/data/endpoints.ts
|
|
9697
|
+
// ../admin/src/data/endpoints.ts
|
|
9716
9698
|
var BACKEND_ENDPOINTS_ORDERS = [
|
|
9717
9699
|
BackendEndpoint.ExportOrders,
|
|
9718
9700
|
BackendEndpoint.FetchOrders,
|
|
@@ -9728,8 +9710,7 @@ var BACKEND_ENDPOINTS_SHIPMENTS = [
|
|
|
9728
9710
|
];
|
|
9729
9711
|
BackendEndpoint.CreateWebhooks, BackendEndpoint.DeleteWebhooks, BackendEndpoint.FetchWebhooks;
|
|
9730
9712
|
BackendEndpoint.DownloadLogs, BackendEndpoint.SwitchToAcceptanceApi, BackendEndpoint.SwitchToProductionApi;
|
|
9731
|
-
|
|
9732
|
-
//#region ../admin/src/data/orderMode.ts
|
|
9713
|
+
// ../admin/src/data/orderMode.ts
|
|
9733
9714
|
var OrderMode = /* @__PURE__ */ function(OrderMode) {
|
|
9734
9715
|
OrderMode["Shipments"] = "Shipments";
|
|
9735
9716
|
OrderMode["OrderV1"] = "OrderV1";
|
|
@@ -9749,8 +9730,7 @@ var resolveOrderMode = (features) => {
|
|
|
9749
9730
|
if (features.includes("LEGACY_ORDER_MANAGEMENT")) return "OrderV1";
|
|
9750
9731
|
return "Shipments";
|
|
9751
9732
|
};
|
|
9752
|
-
|
|
9753
|
-
//#region ../admin/src/data/view.ts
|
|
9733
|
+
// ../admin/src/data/view.ts
|
|
9754
9734
|
var AdminView = /* @__PURE__ */ function(AdminView) {
|
|
9755
9735
|
AdminView["ChildProductSettings"] = "ChildProductSettings";
|
|
9756
9736
|
AdminView["Modals"] = "Modals";
|
|
@@ -9761,8 +9741,7 @@ var AdminView = /* @__PURE__ */ function(AdminView) {
|
|
|
9761
9741
|
AdminView["ProductSettings"] = "ProductSettings";
|
|
9762
9742
|
return AdminView;
|
|
9763
9743
|
}({});
|
|
9764
|
-
|
|
9765
|
-
//#region ../../node_modules/@myparcel/ts-utils/dist/index.js
|
|
9744
|
+
// ../../node_modules/.pnpm/@myparcel+ts-utils@1.14.0/node_modules/@myparcel/ts-utils/dist/index.js
|
|
9766
9745
|
function isOfType(value, property) {
|
|
9767
9746
|
return value?.[property] !== void 0;
|
|
9768
9747
|
}
|
|
@@ -9770,8 +9749,7 @@ var asyncEvery = async (arr, predicate) => {
|
|
|
9770
9749
|
for (let i = 0; i < arr.length; i++) if (!await predicate(arr[i], i, arr)) return false;
|
|
9771
9750
|
return true;
|
|
9772
9751
|
};
|
|
9773
|
-
|
|
9774
|
-
//#region ../../node_modules/@myparcel-dev/vue-form-builder/dist/index.js
|
|
9752
|
+
// ../../node_modules/.pnpm/@myparcel-dev+vue-form-builder@1.0.0-beta.42.6_vue@3.4.31_typescript@5.9.3_/node_modules/@myparcel-dev/vue-form-builder/dist/index.js
|
|
9775
9753
|
var le = Object.defineProperty;
|
|
9776
9754
|
var ue = (s, t, e) => t in s ? le(s, t, {
|
|
9777
9755
|
enumerable: !0,
|
|
@@ -10310,26 +10288,7 @@ var je = { install(s, t) {
|
|
|
10310
10288
|
const e = ne();
|
|
10311
10289
|
s._context.config.globalProperties.$formBuilder = e, t && e.setDefaults(t);
|
|
10312
10290
|
} };
|
|
10313
|
-
|
|
10314
|
-
//#region ../../node_modules/pinia/node_modules/vue-demi/lib/index.mjs
|
|
10315
|
-
function set$1(target, key, val) {
|
|
10316
|
-
if (Array.isArray(target)) {
|
|
10317
|
-
target.length = Math.max(target.length, key);
|
|
10318
|
-
target.splice(key, 1, val);
|
|
10319
|
-
return val;
|
|
10320
|
-
}
|
|
10321
|
-
target[key] = val;
|
|
10322
|
-
return val;
|
|
10323
|
-
}
|
|
10324
|
-
function del(target, key) {
|
|
10325
|
-
if (Array.isArray(target)) {
|
|
10326
|
-
target.splice(key, 1);
|
|
10327
|
-
return;
|
|
10328
|
-
}
|
|
10329
|
-
delete target[key];
|
|
10330
|
-
}
|
|
10331
|
-
//#endregion
|
|
10332
|
-
//#region ../../node_modules/pinia/dist/pinia.mjs
|
|
10291
|
+
// ../../node_modules/.pnpm/pinia@2.1.7_typescript@5.9.3_vue@3.4.31_typescript@5.9.3_/node_modules/pinia/dist/pinia.mjs
|
|
10333
10292
|
/*!
|
|
10334
10293
|
* pinia v2.1.7
|
|
10335
10294
|
* (c) 2023 Eduardo San Martin Morote
|
|
@@ -11376,13 +11335,11 @@ function defineStore(idOrOptions, setup, setupOptions) {
|
|
|
11376
11335
|
useStore.$id = id;
|
|
11377
11336
|
return useStore;
|
|
11378
11337
|
}
|
|
11379
|
-
|
|
11380
|
-
//#region ../admin/src/services/actions/getActionIdentifier.ts
|
|
11338
|
+
// ../admin/src/services/actions/getActionIdentifier.ts
|
|
11381
11339
|
var getActionIdentifier = (action) => {
|
|
11382
11340
|
return isOfType$1(action, "name") ? action.name : action.id;
|
|
11383
11341
|
};
|
|
11384
|
-
|
|
11385
|
-
//#region ../admin/src/services/logger.ts
|
|
11342
|
+
// ../admin/src/services/logger.ts
|
|
11386
11343
|
var LogLevel = /* @__PURE__ */ function(LogLevel) {
|
|
11387
11344
|
LogLevel[LogLevel["Debug"] = 1] = "Debug";
|
|
11388
11345
|
LogLevel[LogLevel["Info"] = 2] = "Info";
|
|
@@ -11463,18 +11420,14 @@ var createLogger = (scope = null, logLevel = null) => {
|
|
|
11463
11420
|
loggerInstance.level = logLevel ?? globalLogger.level;
|
|
11464
11421
|
return loggerInstance;
|
|
11465
11422
|
};
|
|
11466
|
-
|
|
11467
|
-
//#region ../../node_modules/lodash-es/_freeGlobal.js
|
|
11423
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
11468
11424
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
11469
|
-
|
|
11470
|
-
//#region ../../node_modules/lodash-es/_root.js
|
|
11425
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
11471
11426
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
11472
11427
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
11473
|
-
|
|
11474
|
-
//#region ../../node_modules/lodash-es/_Symbol.js
|
|
11428
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
11475
11429
|
var Symbol$1 = root.Symbol;
|
|
11476
|
-
|
|
11477
|
-
//#region ../../node_modules/lodash-es/_getRawTag.js
|
|
11430
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
11478
11431
|
var objectProto$1 = Object.prototype;
|
|
11479
11432
|
var hasOwnProperty$4 = objectProto$1.hasOwnProperty;
|
|
11480
11433
|
var nativeObjectToString$1 = objectProto$1.toString;
|
|
@@ -11492,14 +11445,12 @@ function getRawTag(value) {
|
|
|
11492
11445
|
}
|
|
11493
11446
|
return result;
|
|
11494
11447
|
}
|
|
11495
|
-
|
|
11496
|
-
//#region ../../node_modules/lodash-es/_objectToString.js
|
|
11448
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
11497
11449
|
var nativeObjectToString = Object.prototype.toString;
|
|
11498
11450
|
function objectToString(value) {
|
|
11499
11451
|
return nativeObjectToString.call(value);
|
|
11500
11452
|
}
|
|
11501
|
-
|
|
11502
|
-
//#region ../../node_modules/lodash-es/_baseGetTag.js
|
|
11453
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
11503
11454
|
var nullTag = "[object Null]";
|
|
11504
11455
|
var undefinedTag = "[object Undefined]";
|
|
11505
11456
|
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
@@ -11507,29 +11458,24 @@ function baseGetTag(value) {
|
|
|
11507
11458
|
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
11508
11459
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
11509
11460
|
}
|
|
11510
|
-
|
|
11511
|
-
//#region ../../node_modules/lodash-es/isObjectLike.js
|
|
11461
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
11512
11462
|
function isObjectLike(value) {
|
|
11513
11463
|
return value != null && typeof value == "object";
|
|
11514
11464
|
}
|
|
11515
|
-
|
|
11516
|
-
//#region ../../node_modules/lodash-es/isSymbol.js
|
|
11465
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
11517
11466
|
var symbolTag = "[object Symbol]";
|
|
11518
11467
|
function isSymbol(value) {
|
|
11519
11468
|
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
11520
11469
|
}
|
|
11521
|
-
|
|
11522
|
-
//#region ../../node_modules/lodash-es/_arrayMap.js
|
|
11470
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
11523
11471
|
function arrayMap(array, iteratee) {
|
|
11524
11472
|
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
11525
11473
|
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
11526
11474
|
return result;
|
|
11527
11475
|
}
|
|
11528
|
-
|
|
11529
|
-
//#region ../../node_modules/lodash-es/isArray.js
|
|
11476
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
11530
11477
|
var isArray = Array.isArray;
|
|
11531
|
-
|
|
11532
|
-
//#region ../../node_modules/lodash-es/_baseToString.js
|
|
11478
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js
|
|
11533
11479
|
var INFINITY$1 = 1 / 0;
|
|
11534
11480
|
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0;
|
|
11535
11481
|
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
@@ -11540,14 +11486,12 @@ function baseToString(value) {
|
|
|
11540
11486
|
var result = value + "";
|
|
11541
11487
|
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
11542
11488
|
}
|
|
11543
|
-
|
|
11544
|
-
//#region ../../node_modules/lodash-es/isObject.js
|
|
11489
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
11545
11490
|
function isObject(value) {
|
|
11546
11491
|
var type = typeof value;
|
|
11547
11492
|
return value != null && (type == "object" || type == "function");
|
|
11548
11493
|
}
|
|
11549
|
-
|
|
11550
|
-
//#region ../../node_modules/lodash-es/isFunction.js
|
|
11494
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
11551
11495
|
var asyncTag = "[object AsyncFunction]";
|
|
11552
11496
|
var funcTag = "[object Function]";
|
|
11553
11497
|
var genTag = "[object GeneratorFunction]";
|
|
@@ -11557,11 +11501,9 @@ function isFunction(value) {
|
|
|
11557
11501
|
var tag = baseGetTag(value);
|
|
11558
11502
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
11559
11503
|
}
|
|
11560
|
-
|
|
11561
|
-
//#region ../../node_modules/lodash-es/_coreJsData.js
|
|
11504
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
11562
11505
|
var coreJsData = root["__core-js_shared__"];
|
|
11563
|
-
|
|
11564
|
-
//#region ../../node_modules/lodash-es/_isMasked.js
|
|
11506
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
11565
11507
|
var maskSrcKey = function() {
|
|
11566
11508
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
11567
11509
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
@@ -11569,8 +11511,7 @@ var maskSrcKey = function() {
|
|
|
11569
11511
|
function isMasked(func) {
|
|
11570
11512
|
return !!maskSrcKey && maskSrcKey in func;
|
|
11571
11513
|
}
|
|
11572
|
-
|
|
11573
|
-
//#region ../../node_modules/lodash-es/_toSource.js
|
|
11514
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
11574
11515
|
var funcToString$1 = Function.prototype.toString;
|
|
11575
11516
|
function toSource(func) {
|
|
11576
11517
|
if (func != null) {
|
|
@@ -11583,8 +11524,7 @@ function toSource(func) {
|
|
|
11583
11524
|
}
|
|
11584
11525
|
return "";
|
|
11585
11526
|
}
|
|
11586
|
-
|
|
11587
|
-
//#region ../../node_modules/lodash-es/_baseIsNative.js
|
|
11527
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
11588
11528
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
11589
11529
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
11590
11530
|
var funcProto = Function.prototype;
|
|
@@ -11596,19 +11536,16 @@ function baseIsNative(value) {
|
|
|
11596
11536
|
if (!isObject(value) || isMasked(value)) return false;
|
|
11597
11537
|
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
11598
11538
|
}
|
|
11599
|
-
|
|
11600
|
-
//#region ../../node_modules/lodash-es/_getValue.js
|
|
11539
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
11601
11540
|
function getValue(object, key) {
|
|
11602
11541
|
return object == null ? void 0 : object[key];
|
|
11603
11542
|
}
|
|
11604
|
-
|
|
11605
|
-
//#region ../../node_modules/lodash-es/_getNative.js
|
|
11543
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
11606
11544
|
function getNative(object, key) {
|
|
11607
11545
|
var value = getValue(object, key);
|
|
11608
11546
|
return baseIsNative(value) ? value : void 0;
|
|
11609
11547
|
}
|
|
11610
|
-
|
|
11611
|
-
//#region ../../node_modules/lodash-es/_defineProperty.js
|
|
11548
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
11612
11549
|
var defineProperty = function() {
|
|
11613
11550
|
try {
|
|
11614
11551
|
var func = getNative(Object, "defineProperty");
|
|
@@ -11616,8 +11553,7 @@ var defineProperty = function() {
|
|
|
11616
11553
|
return func;
|
|
11617
11554
|
} catch (e) {}
|
|
11618
11555
|
}();
|
|
11619
|
-
|
|
11620
|
-
//#region ../../node_modules/lodash-es/_isIndex.js
|
|
11556
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
11621
11557
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
11622
11558
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
11623
11559
|
function isIndex(value, length) {
|
|
@@ -11625,8 +11561,7 @@ function isIndex(value, length) {
|
|
|
11625
11561
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
11626
11562
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
11627
11563
|
}
|
|
11628
|
-
|
|
11629
|
-
//#region ../../node_modules/lodash-es/_baseAssignValue.js
|
|
11564
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
11630
11565
|
function baseAssignValue(object, key, value) {
|
|
11631
11566
|
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
11632
11567
|
"configurable": true,
|
|
@@ -11636,20 +11571,17 @@ function baseAssignValue(object, key, value) {
|
|
|
11636
11571
|
});
|
|
11637
11572
|
else object[key] = value;
|
|
11638
11573
|
}
|
|
11639
|
-
|
|
11640
|
-
//#region ../../node_modules/lodash-es/eq.js
|
|
11574
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
11641
11575
|
function eq(value, other) {
|
|
11642
11576
|
return value === other || value !== value && other !== other;
|
|
11643
11577
|
}
|
|
11644
|
-
|
|
11645
|
-
//#region ../../node_modules/lodash-es/_assignValue.js
|
|
11578
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
11646
11579
|
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
11647
11580
|
function assignValue(object, key, value) {
|
|
11648
11581
|
var objValue = object[key];
|
|
11649
11582
|
if (!(hasOwnProperty$2.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
11650
11583
|
}
|
|
11651
|
-
|
|
11652
|
-
//#region ../../node_modules/lodash-es/_isKey.js
|
|
11584
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
11653
11585
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
11654
11586
|
var reIsPlainProp = /^\w*$/;
|
|
11655
11587
|
function isKey(value, object) {
|
|
@@ -11658,24 +11590,20 @@ function isKey(value, object) {
|
|
|
11658
11590
|
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
11659
11591
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
11660
11592
|
}
|
|
11661
|
-
|
|
11662
|
-
//#region ../../node_modules/lodash-es/_nativeCreate.js
|
|
11593
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
11663
11594
|
var nativeCreate = getNative(Object, "create");
|
|
11664
|
-
|
|
11665
|
-
//#region ../../node_modules/lodash-es/_hashClear.js
|
|
11595
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
11666
11596
|
function hashClear() {
|
|
11667
11597
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
11668
11598
|
this.size = 0;
|
|
11669
11599
|
}
|
|
11670
|
-
|
|
11671
|
-
//#region ../../node_modules/lodash-es/_hashDelete.js
|
|
11600
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
11672
11601
|
function hashDelete(key) {
|
|
11673
11602
|
var result = this.has(key) && delete this.__data__[key];
|
|
11674
11603
|
this.size -= result ? 1 : 0;
|
|
11675
11604
|
return result;
|
|
11676
11605
|
}
|
|
11677
|
-
|
|
11678
|
-
//#region ../../node_modules/lodash-es/_hashGet.js
|
|
11606
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
11679
11607
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
11680
11608
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
11681
11609
|
function hashGet(key) {
|
|
@@ -11686,15 +11614,13 @@ function hashGet(key) {
|
|
|
11686
11614
|
}
|
|
11687
11615
|
return hasOwnProperty$1.call(data, key) ? data[key] : void 0;
|
|
11688
11616
|
}
|
|
11689
|
-
|
|
11690
|
-
//#region ../../node_modules/lodash-es/_hashHas.js
|
|
11617
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
11691
11618
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
11692
11619
|
function hashHas(key) {
|
|
11693
11620
|
var data = this.__data__;
|
|
11694
11621
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
11695
11622
|
}
|
|
11696
|
-
|
|
11697
|
-
//#region ../../node_modules/lodash-es/_hashSet.js
|
|
11623
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
11698
11624
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
11699
11625
|
function hashSet(key, value) {
|
|
11700
11626
|
var data = this.__data__;
|
|
@@ -11702,8 +11628,7 @@ function hashSet(key, value) {
|
|
|
11702
11628
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
11703
11629
|
return this;
|
|
11704
11630
|
}
|
|
11705
|
-
|
|
11706
|
-
//#region ../../node_modules/lodash-es/_Hash.js
|
|
11631
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
11707
11632
|
function Hash(entries) {
|
|
11708
11633
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
11709
11634
|
this.clear();
|
|
@@ -11717,21 +11642,18 @@ Hash.prototype["delete"] = hashDelete;
|
|
|
11717
11642
|
Hash.prototype.get = hashGet;
|
|
11718
11643
|
Hash.prototype.has = hashHas;
|
|
11719
11644
|
Hash.prototype.set = hashSet;
|
|
11720
|
-
|
|
11721
|
-
//#region ../../node_modules/lodash-es/_listCacheClear.js
|
|
11645
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
11722
11646
|
function listCacheClear() {
|
|
11723
11647
|
this.__data__ = [];
|
|
11724
11648
|
this.size = 0;
|
|
11725
11649
|
}
|
|
11726
|
-
|
|
11727
|
-
//#region ../../node_modules/lodash-es/_assocIndexOf.js
|
|
11650
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
11728
11651
|
function assocIndexOf(array, key) {
|
|
11729
11652
|
var length = array.length;
|
|
11730
11653
|
while (length--) if (eq(array[length][0], key)) return length;
|
|
11731
11654
|
return -1;
|
|
11732
11655
|
}
|
|
11733
|
-
|
|
11734
|
-
//#region ../../node_modules/lodash-es/_listCacheDelete.js
|
|
11656
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
11735
11657
|
var splice = Array.prototype.splice;
|
|
11736
11658
|
function listCacheDelete(key) {
|
|
11737
11659
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
@@ -11741,19 +11663,16 @@ function listCacheDelete(key) {
|
|
|
11741
11663
|
--this.size;
|
|
11742
11664
|
return true;
|
|
11743
11665
|
}
|
|
11744
|
-
|
|
11745
|
-
//#region ../../node_modules/lodash-es/_listCacheGet.js
|
|
11666
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
11746
11667
|
function listCacheGet(key) {
|
|
11747
11668
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
11748
11669
|
return index < 0 ? void 0 : data[index][1];
|
|
11749
11670
|
}
|
|
11750
|
-
|
|
11751
|
-
//#region ../../node_modules/lodash-es/_listCacheHas.js
|
|
11671
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
11752
11672
|
function listCacheHas(key) {
|
|
11753
11673
|
return assocIndexOf(this.__data__, key) > -1;
|
|
11754
11674
|
}
|
|
11755
|
-
|
|
11756
|
-
//#region ../../node_modules/lodash-es/_listCacheSet.js
|
|
11675
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
11757
11676
|
function listCacheSet(key, value) {
|
|
11758
11677
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
11759
11678
|
if (index < 0) {
|
|
@@ -11762,8 +11681,7 @@ function listCacheSet(key, value) {
|
|
|
11762
11681
|
} else data[index][1] = value;
|
|
11763
11682
|
return this;
|
|
11764
11683
|
}
|
|
11765
|
-
|
|
11766
|
-
//#region ../../node_modules/lodash-es/_ListCache.js
|
|
11684
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
11767
11685
|
function ListCache(entries) {
|
|
11768
11686
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
11769
11687
|
this.clear();
|
|
@@ -11777,11 +11695,9 @@ ListCache.prototype["delete"] = listCacheDelete;
|
|
|
11777
11695
|
ListCache.prototype.get = listCacheGet;
|
|
11778
11696
|
ListCache.prototype.has = listCacheHas;
|
|
11779
11697
|
ListCache.prototype.set = listCacheSet;
|
|
11780
|
-
|
|
11781
|
-
//#region ../../node_modules/lodash-es/_Map.js
|
|
11698
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
11782
11699
|
var Map$1 = getNative(root, "Map");
|
|
11783
|
-
|
|
11784
|
-
//#region ../../node_modules/lodash-es/_mapCacheClear.js
|
|
11700
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
11785
11701
|
function mapCacheClear() {
|
|
11786
11702
|
this.size = 0;
|
|
11787
11703
|
this.__data__ = {
|
|
@@ -11790,45 +11706,38 @@ function mapCacheClear() {
|
|
|
11790
11706
|
"string": new Hash()
|
|
11791
11707
|
};
|
|
11792
11708
|
}
|
|
11793
|
-
|
|
11794
|
-
//#region ../../node_modules/lodash-es/_isKeyable.js
|
|
11709
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
11795
11710
|
function isKeyable(value) {
|
|
11796
11711
|
var type = typeof value;
|
|
11797
11712
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
11798
11713
|
}
|
|
11799
|
-
|
|
11800
|
-
//#region ../../node_modules/lodash-es/_getMapData.js
|
|
11714
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
11801
11715
|
function getMapData(map, key) {
|
|
11802
11716
|
var data = map.__data__;
|
|
11803
11717
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
11804
11718
|
}
|
|
11805
|
-
|
|
11806
|
-
//#region ../../node_modules/lodash-es/_mapCacheDelete.js
|
|
11719
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
11807
11720
|
function mapCacheDelete(key) {
|
|
11808
11721
|
var result = getMapData(this, key)["delete"](key);
|
|
11809
11722
|
this.size -= result ? 1 : 0;
|
|
11810
11723
|
return result;
|
|
11811
11724
|
}
|
|
11812
|
-
|
|
11813
|
-
//#region ../../node_modules/lodash-es/_mapCacheGet.js
|
|
11725
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
11814
11726
|
function mapCacheGet(key) {
|
|
11815
11727
|
return getMapData(this, key).get(key);
|
|
11816
11728
|
}
|
|
11817
|
-
|
|
11818
|
-
//#region ../../node_modules/lodash-es/_mapCacheHas.js
|
|
11729
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
11819
11730
|
function mapCacheHas(key) {
|
|
11820
11731
|
return getMapData(this, key).has(key);
|
|
11821
11732
|
}
|
|
11822
|
-
|
|
11823
|
-
//#region ../../node_modules/lodash-es/_mapCacheSet.js
|
|
11733
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
11824
11734
|
function mapCacheSet(key, value) {
|
|
11825
11735
|
var data = getMapData(this, key), size = data.size;
|
|
11826
11736
|
data.set(key, value);
|
|
11827
11737
|
this.size += data.size == size ? 0 : 1;
|
|
11828
11738
|
return this;
|
|
11829
11739
|
}
|
|
11830
|
-
|
|
11831
|
-
//#region ../../node_modules/lodash-es/_MapCache.js
|
|
11740
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
11832
11741
|
function MapCache(entries) {
|
|
11833
11742
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
11834
11743
|
this.clear();
|
|
@@ -11842,8 +11751,7 @@ MapCache.prototype["delete"] = mapCacheDelete;
|
|
|
11842
11751
|
MapCache.prototype.get = mapCacheGet;
|
|
11843
11752
|
MapCache.prototype.has = mapCacheHas;
|
|
11844
11753
|
MapCache.prototype.set = mapCacheSet;
|
|
11845
|
-
|
|
11846
|
-
//#region ../../node_modules/lodash-es/memoize.js
|
|
11754
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
11847
11755
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
11848
11756
|
function memoize(func, resolver) {
|
|
11849
11757
|
if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
@@ -11858,8 +11766,7 @@ function memoize(func, resolver) {
|
|
|
11858
11766
|
return memoized;
|
|
11859
11767
|
}
|
|
11860
11768
|
memoize.Cache = MapCache;
|
|
11861
|
-
|
|
11862
|
-
//#region ../../node_modules/lodash-es/_memoizeCapped.js
|
|
11769
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
11863
11770
|
var MAX_MEMOIZE_SIZE = 500;
|
|
11864
11771
|
function memoizeCapped(func) {
|
|
11865
11772
|
var result = memoize(func, function(key) {
|
|
@@ -11869,8 +11776,7 @@ function memoizeCapped(func) {
|
|
|
11869
11776
|
var cache = result.cache;
|
|
11870
11777
|
return result;
|
|
11871
11778
|
}
|
|
11872
|
-
|
|
11873
|
-
//#region ../../node_modules/lodash-es/_stringToPath.js
|
|
11779
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
11874
11780
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
11875
11781
|
var reEscapeChar = /\\(\\)?/g;
|
|
11876
11782
|
var stringToPath = memoizeCapped(function(string) {
|
|
@@ -11881,41 +11787,35 @@ var stringToPath = memoizeCapped(function(string) {
|
|
|
11881
11787
|
});
|
|
11882
11788
|
return result;
|
|
11883
11789
|
});
|
|
11884
|
-
|
|
11885
|
-
//#region ../../node_modules/lodash-es/toString.js
|
|
11790
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
11886
11791
|
function toString(value) {
|
|
11887
11792
|
return value == null ? "" : baseToString(value);
|
|
11888
11793
|
}
|
|
11889
|
-
|
|
11890
|
-
//#region ../../node_modules/lodash-es/_castPath.js
|
|
11794
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
11891
11795
|
function castPath(value, object) {
|
|
11892
11796
|
if (isArray(value)) return value;
|
|
11893
11797
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
11894
11798
|
}
|
|
11895
|
-
|
|
11896
|
-
//#region ../../node_modules/lodash-es/_toKey.js
|
|
11799
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
11897
11800
|
var INFINITY = 1 / 0;
|
|
11898
11801
|
function toKey(value) {
|
|
11899
11802
|
if (typeof value == "string" || isSymbol(value)) return value;
|
|
11900
11803
|
var result = value + "";
|
|
11901
11804
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
11902
11805
|
}
|
|
11903
|
-
|
|
11904
|
-
//#region ../../node_modules/lodash-es/_baseGet.js
|
|
11806
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
11905
11807
|
function baseGet(object, path) {
|
|
11906
11808
|
path = castPath(path, object);
|
|
11907
11809
|
var index = 0, length = path.length;
|
|
11908
11810
|
while (object != null && index < length) object = object[toKey(path[index++])];
|
|
11909
11811
|
return index && index == length ? object : void 0;
|
|
11910
11812
|
}
|
|
11911
|
-
|
|
11912
|
-
//#region ../../node_modules/lodash-es/get.js
|
|
11813
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
11913
11814
|
function get(object, path, defaultValue) {
|
|
11914
11815
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
11915
11816
|
return result === void 0 ? defaultValue : result;
|
|
11916
11817
|
}
|
|
11917
|
-
|
|
11918
|
-
//#region ../../node_modules/lodash-es/_baseSlice.js
|
|
11818
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
|
|
11919
11819
|
function baseSlice(array, start, end) {
|
|
11920
11820
|
var index = -1, length = array.length;
|
|
11921
11821
|
if (start < 0) start = -start > length ? 0 : length + start;
|
|
@@ -11927,26 +11827,22 @@ function baseSlice(array, start, end) {
|
|
|
11927
11827
|
while (++index < length) result[index] = array[index + start];
|
|
11928
11828
|
return result;
|
|
11929
11829
|
}
|
|
11930
|
-
|
|
11931
|
-
//#region ../../node_modules/lodash-es/_castSlice.js
|
|
11830
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castSlice.js
|
|
11932
11831
|
function castSlice(array, start, end) {
|
|
11933
11832
|
var length = array.length;
|
|
11934
11833
|
end = end === void 0 ? length : end;
|
|
11935
11834
|
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
11936
11835
|
}
|
|
11937
|
-
|
|
11938
|
-
//#region ../../node_modules/lodash-es/_hasUnicode.js
|
|
11836
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js
|
|
11939
11837
|
var reHasUnicode = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
|
|
11940
11838
|
function hasUnicode(string) {
|
|
11941
11839
|
return reHasUnicode.test(string);
|
|
11942
11840
|
}
|
|
11943
|
-
|
|
11944
|
-
//#region ../../node_modules/lodash-es/_asciiToArray.js
|
|
11841
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.js
|
|
11945
11842
|
function asciiToArray(string) {
|
|
11946
11843
|
return string.split("");
|
|
11947
11844
|
}
|
|
11948
|
-
|
|
11949
|
-
//#region ../../node_modules/lodash-es/_unicodeToArray.js
|
|
11845
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeToArray.js
|
|
11950
11846
|
var rsAstralRange$1 = "\\ud800-\\udfff";
|
|
11951
11847
|
var rsComboRange$1 = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff";
|
|
11952
11848
|
var rsVarRange$1 = "\\ufe0e\\ufe0f";
|
|
@@ -11977,13 +11873,11 @@ var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq$1, "g")
|
|
|
11977
11873
|
function unicodeToArray(string) {
|
|
11978
11874
|
return string.match(reUnicode) || [];
|
|
11979
11875
|
}
|
|
11980
|
-
|
|
11981
|
-
//#region ../../node_modules/lodash-es/_stringToArray.js
|
|
11876
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToArray.js
|
|
11982
11877
|
function stringToArray(string) {
|
|
11983
11878
|
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
|
11984
11879
|
}
|
|
11985
|
-
|
|
11986
|
-
//#region ../../node_modules/lodash-es/_createCaseFirst.js
|
|
11880
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCaseFirst.js
|
|
11987
11881
|
function createCaseFirst(methodName) {
|
|
11988
11882
|
return function(string) {
|
|
11989
11883
|
string = toString(string);
|
|
@@ -11993,26 +11887,22 @@ function createCaseFirst(methodName) {
|
|
|
11993
11887
|
return chr[methodName]() + trailing;
|
|
11994
11888
|
};
|
|
11995
11889
|
}
|
|
11996
|
-
|
|
11997
|
-
//#region ../../node_modules/lodash-es/upperFirst.js
|
|
11890
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/upperFirst.js
|
|
11998
11891
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
11999
|
-
|
|
12000
|
-
//#region ../../node_modules/lodash-es/_arrayReduce.js
|
|
11892
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js
|
|
12001
11893
|
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
12002
11894
|
var index = -1, length = array == null ? 0 : array.length;
|
|
12003
11895
|
if (initAccum && length) accumulator = array[++index];
|
|
12004
11896
|
while (++index < length) accumulator = iteratee(accumulator, array[index], index, array);
|
|
12005
11897
|
return accumulator;
|
|
12006
11898
|
}
|
|
12007
|
-
|
|
12008
|
-
//#region ../../node_modules/lodash-es/_basePropertyOf.js
|
|
11899
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js
|
|
12009
11900
|
function basePropertyOf(object) {
|
|
12010
11901
|
return function(key) {
|
|
12011
11902
|
return object == null ? void 0 : object[key];
|
|
12012
11903
|
};
|
|
12013
11904
|
}
|
|
12014
|
-
|
|
12015
|
-
//#region ../../node_modules/lodash-es/_deburrLetter.js
|
|
11905
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_deburrLetter.js
|
|
12016
11906
|
var deburrLetter = basePropertyOf({
|
|
12017
11907
|
"À": "A",
|
|
12018
11908
|
"Á": "A",
|
|
@@ -12205,28 +12095,24 @@ var deburrLetter = basePropertyOf({
|
|
|
12205
12095
|
"ʼn": "'n",
|
|
12206
12096
|
"ſ": "s"
|
|
12207
12097
|
});
|
|
12208
|
-
|
|
12209
|
-
//#region ../../node_modules/lodash-es/deburr.js
|
|
12098
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/deburr.js
|
|
12210
12099
|
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
12211
12100
|
var reComboMark = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
|
|
12212
12101
|
function deburr(string) {
|
|
12213
12102
|
string = toString(string);
|
|
12214
12103
|
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, "");
|
|
12215
12104
|
}
|
|
12216
|
-
|
|
12217
|
-
//#region ../../node_modules/lodash-es/_asciiWords.js
|
|
12105
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiWords.js
|
|
12218
12106
|
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
12219
12107
|
function asciiWords(string) {
|
|
12220
12108
|
return string.match(reAsciiWord) || [];
|
|
12221
12109
|
}
|
|
12222
|
-
|
|
12223
|
-
//#region ../../node_modules/lodash-es/_hasUnicodeWord.js
|
|
12110
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicodeWord.js
|
|
12224
12111
|
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
12225
12112
|
function hasUnicodeWord(string) {
|
|
12226
12113
|
return reHasUnicodeWord.test(string);
|
|
12227
12114
|
}
|
|
12228
|
-
|
|
12229
|
-
//#region ../../node_modules/lodash-es/_unicodeWords.js
|
|
12115
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeWords.js
|
|
12230
12116
|
var rsAstralRange = "\\ud800-\\udfff";
|
|
12231
12117
|
var rsComboRange = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff";
|
|
12232
12118
|
var rsDingbatRange = "\\u2700-\\u27bf";
|
|
@@ -12291,24 +12177,21 @@ var reUnicodeWord = RegExp([
|
|
|
12291
12177
|
function unicodeWords(string) {
|
|
12292
12178
|
return string.match(reUnicodeWord) || [];
|
|
12293
12179
|
}
|
|
12294
|
-
|
|
12295
|
-
//#region ../../node_modules/lodash-es/words.js
|
|
12180
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/words.js
|
|
12296
12181
|
function words(string, pattern, guard) {
|
|
12297
12182
|
string = toString(string);
|
|
12298
12183
|
pattern = guard ? void 0 : pattern;
|
|
12299
12184
|
if (pattern === void 0) return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
12300
12185
|
return string.match(pattern) || [];
|
|
12301
12186
|
}
|
|
12302
|
-
|
|
12303
|
-
//#region ../../node_modules/lodash-es/_createCompounder.js
|
|
12187
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCompounder.js
|
|
12304
12188
|
var reApos = RegExp("['’]", "g");
|
|
12305
12189
|
function createCompounder(callback) {
|
|
12306
12190
|
return function(string) {
|
|
12307
12191
|
return arrayReduce(words(deburr(string).replace(reApos, "")), callback, "");
|
|
12308
12192
|
};
|
|
12309
12193
|
}
|
|
12310
|
-
|
|
12311
|
-
//#region ../../node_modules/lodash-es/_baseSet.js
|
|
12194
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
|
|
12312
12195
|
function baseSet(object, path, value, customizer) {
|
|
12313
12196
|
if (!isObject(object)) return object;
|
|
12314
12197
|
path = castPath(path, object);
|
|
@@ -12326,23 +12209,19 @@ function baseSet(object, path, value, customizer) {
|
|
|
12326
12209
|
}
|
|
12327
12210
|
return object;
|
|
12328
12211
|
}
|
|
12329
|
-
|
|
12330
|
-
//#region ../../node_modules/lodash-es/set.js
|
|
12212
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/set.js
|
|
12331
12213
|
function set(object, path, value) {
|
|
12332
12214
|
return object == null ? object : baseSet(object, path, value);
|
|
12333
12215
|
}
|
|
12334
|
-
|
|
12335
|
-
//#region ../../node_modules/lodash-es/snakeCase.js
|
|
12216
|
+
// ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/snakeCase.js
|
|
12336
12217
|
var snakeCase = createCompounder(function(result, word, index) {
|
|
12337
12218
|
return result + (index ? "_" : "") + word.toLowerCase();
|
|
12338
12219
|
});
|
|
12339
|
-
|
|
12340
|
-
//#region ../admin/src/stores/createQueryCacheKey.ts
|
|
12220
|
+
// ../admin/src/stores/createQueryCacheKey.ts
|
|
12341
12221
|
var createQueryCacheKey = (endpoint, modifier) => {
|
|
12342
12222
|
return modifier ? `${endpoint}.${modifier}` : endpoint;
|
|
12343
12223
|
};
|
|
12344
|
-
|
|
12345
|
-
//#region ../admin/src/stores/useActionStore.ts
|
|
12224
|
+
// ../admin/src/stores/useActionStore.ts
|
|
12346
12225
|
var useActionStore = defineStore("actions", () => {
|
|
12347
12226
|
const actions = ref([]);
|
|
12348
12227
|
const register = (action) => {
|
|
@@ -12384,8 +12263,7 @@ var useActionStore = defineStore("actions", () => {
|
|
|
12384
12263
|
}
|
|
12385
12264
|
};
|
|
12386
12265
|
});
|
|
12387
|
-
|
|
12388
|
-
//#region ../admin/src/stores/useNotificationStore.ts
|
|
12266
|
+
// ../admin/src/stores/useNotificationStore.ts
|
|
12389
12267
|
var autoId = 0;
|
|
12390
12268
|
var DEFAULT_TIMEOUT$1 = 5e3;
|
|
12391
12269
|
var useNotificationStore = defineStore("notifications", () => {
|
|
@@ -12421,8 +12299,7 @@ var useNotificationStore = defineStore("notifications", () => {
|
|
|
12421
12299
|
}
|
|
12422
12300
|
};
|
|
12423
12301
|
});
|
|
12424
|
-
|
|
12425
|
-
//#region ../admin/src/stores/useModalStore.ts
|
|
12302
|
+
// ../admin/src/stores/useModalStore.ts
|
|
12426
12303
|
var useModalStore = defineStore("modal", () => {
|
|
12427
12304
|
const { loading } = useLoading();
|
|
12428
12305
|
const opened = ref(null);
|
|
@@ -12457,8 +12334,7 @@ var useModalStore = defineStore("modal", () => {
|
|
|
12457
12334
|
}
|
|
12458
12335
|
};
|
|
12459
12336
|
});
|
|
12460
|
-
|
|
12461
|
-
//#region ../admin/src/utils/convertDotNotationToObject.ts
|
|
12337
|
+
// ../admin/src/utils/convertDotNotationToObject.ts
|
|
12462
12338
|
var convertDotNotationToObject = (object, valueCallback = (value) => value) => {
|
|
12463
12339
|
const result = {};
|
|
12464
12340
|
Object.entries(object).forEach(([key, value]) => {
|
|
@@ -12466,27 +12342,23 @@ var convertDotNotationToObject = (object, valueCallback = (value) => value) => {
|
|
|
12466
12342
|
});
|
|
12467
12343
|
return result;
|
|
12468
12344
|
};
|
|
12469
|
-
|
|
12470
|
-
//#region ../admin/src/utils/createAssetUrl.ts
|
|
12345
|
+
// ../admin/src/utils/createAssetUrl.ts
|
|
12471
12346
|
var createAssetUrl = (path) => {
|
|
12472
12347
|
path ??= "";
|
|
12473
12348
|
if (path.startsWith("/")) path = path.slice(1);
|
|
12474
12349
|
return `https://assets.myparcel.nl/${path}`;
|
|
12475
12350
|
};
|
|
12476
|
-
|
|
12477
|
-
//#region ../admin/src/utils/decodeHtmlEntities.ts
|
|
12351
|
+
// ../admin/src/utils/decodeHtmlEntities.ts
|
|
12478
12352
|
function decodeHtmlEntities(string) {
|
|
12479
12353
|
const textarea = document.createElement("textarea");
|
|
12480
12354
|
textarea.innerHTML = string;
|
|
12481
12355
|
return textarea.value;
|
|
12482
12356
|
}
|
|
12483
|
-
|
|
12484
|
-
//#region ../admin/src/utils/encodeArrayParameter.ts
|
|
12357
|
+
// ../admin/src/utils/encodeArrayParameter.ts
|
|
12485
12358
|
var encodeArrayParameter = (parameter) => {
|
|
12486
12359
|
return encodeURIComponent(toArray(parameter).filter(isDef).join(";"));
|
|
12487
12360
|
};
|
|
12488
|
-
|
|
12489
|
-
//#region ../admin/src/sdk/requestHeaders.ts
|
|
12361
|
+
// ../admin/src/sdk/requestHeaders.ts
|
|
12490
12362
|
var provider;
|
|
12491
12363
|
var setRequestHeadersProvider = (newProvider) => {
|
|
12492
12364
|
provider = newProvider;
|
|
@@ -12506,8 +12378,7 @@ var addRequestHeaders = async (options) => {
|
|
|
12506
12378
|
headers: mergeHeaders(options.headers ?? {}, await provider())
|
|
12507
12379
|
};
|
|
12508
12380
|
};
|
|
12509
|
-
|
|
12510
|
-
//#region ../admin/src/components/common/ActionButton.vue
|
|
12381
|
+
// ../admin/src/components/common/ActionButton.vue
|
|
12511
12382
|
var ActionButton_default = /* @__PURE__ */ defineComponent({
|
|
12512
12383
|
__name: "ActionButton",
|
|
12513
12384
|
props: {
|
|
@@ -12554,11 +12425,9 @@ var ActionButton_default = /* @__PURE__ */ defineComponent({
|
|
|
12554
12425
|
};
|
|
12555
12426
|
}
|
|
12556
12427
|
});
|
|
12557
|
-
|
|
12558
|
-
//#region ../admin/src/components/common/BulkSelectCheckbox.vue?vue&type=script&setup=true&lang.ts
|
|
12428
|
+
// ../admin/src/components/common/BulkSelectCheckbox.vue?vue&type=script&setup=true&lang.ts
|
|
12559
12429
|
var NAME_BULK = "bulk";
|
|
12560
|
-
|
|
12561
|
-
//#region ../admin/src/components/common/BulkSelectCheckbox.vue
|
|
12430
|
+
// ../admin/src/components/common/BulkSelectCheckbox.vue
|
|
12562
12431
|
var BulkSelectCheckbox_default = /* @__PURE__ */ defineComponent({
|
|
12563
12432
|
__name: "BulkSelectCheckbox",
|
|
12564
12433
|
props: {
|
|
@@ -12599,8 +12468,7 @@ var BulkSelectCheckbox_default = /* @__PURE__ */ defineComponent({
|
|
|
12599
12468
|
};
|
|
12600
12469
|
}
|
|
12601
12470
|
});
|
|
12602
|
-
|
|
12603
|
-
//#region ../admin/src/components/common/CarrierLogo.vue
|
|
12471
|
+
// ../admin/src/components/common/CarrierLogo.vue
|
|
12604
12472
|
var CarrierLogo_default = /* @__PURE__ */ defineComponent({
|
|
12605
12473
|
__name: "CarrierLogo",
|
|
12606
12474
|
props: { carrier: {} },
|
|
@@ -12620,11 +12488,9 @@ var CarrierLogo_default = /* @__PURE__ */ defineComponent({
|
|
|
12620
12488
|
};
|
|
12621
12489
|
}
|
|
12622
12490
|
});
|
|
12623
|
-
|
|
12624
|
-
//#region ../admin/src/components/common/DateRelative.vue?vue&type=script&setup=true&lang.ts
|
|
12491
|
+
// ../admin/src/components/common/DateRelative.vue?vue&type=script&setup=true&lang.ts
|
|
12625
12492
|
var _hoisted_1$7 = ["title", "textContent"];
|
|
12626
|
-
|
|
12627
|
-
//#region ../admin/src/components/common/DateRelative.vue
|
|
12493
|
+
// ../admin/src/components/common/DateRelative.vue
|
|
12628
12494
|
var DateRelative_default = /* @__PURE__ */ defineComponent({
|
|
12629
12495
|
__name: "DateRelative",
|
|
12630
12496
|
props: { date: {} },
|
|
@@ -12641,12 +12507,10 @@ var DateRelative_default = /* @__PURE__ */ defineComponent({
|
|
|
12641
12507
|
};
|
|
12642
12508
|
}
|
|
12643
12509
|
});
|
|
12644
|
-
|
|
12645
|
-
//#region ../admin/src/components/common/DeliveryOptionsDeliveryType.vue?vue&type=script&setup=true&lang.ts
|
|
12510
|
+
// ../admin/src/components/common/DeliveryOptionsDeliveryType.vue?vue&type=script&setup=true&lang.ts
|
|
12646
12511
|
var _hoisted_1$6 = { key: 0 };
|
|
12647
12512
|
var _hoisted_2$1 = ["title", "textContent"];
|
|
12648
|
-
|
|
12649
|
-
//#region ../admin/src/components/common/DeliveryOptionsDeliveryType.vue
|
|
12513
|
+
// ../admin/src/components/common/DeliveryOptionsDeliveryType.vue
|
|
12650
12514
|
var DeliveryOptionsDeliveryType_default = /* @__PURE__ */ defineComponent({
|
|
12651
12515
|
__name: "DeliveryOptionsDeliveryType",
|
|
12652
12516
|
props: { deliveryOptions: {} },
|
|
@@ -12661,11 +12525,9 @@ var DeliveryOptionsDeliveryType_default = /* @__PURE__ */ defineComponent({
|
|
|
12661
12525
|
};
|
|
12662
12526
|
}
|
|
12663
12527
|
});
|
|
12664
|
-
|
|
12665
|
-
//#region ../admin/src/components/common/PackageType.vue?vue&type=script&setup=true&lang.ts
|
|
12528
|
+
// ../admin/src/components/common/PackageType.vue?vue&type=script&setup=true&lang.ts
|
|
12666
12529
|
var _hoisted_1$5 = ["title", "textContent"];
|
|
12667
|
-
|
|
12668
|
-
//#region ../admin/src/components/common/PackageType.vue
|
|
12530
|
+
// ../admin/src/components/common/PackageType.vue
|
|
12669
12531
|
var PackageType_default = /* @__PURE__ */ defineComponent({
|
|
12670
12532
|
__name: "PackageType",
|
|
12671
12533
|
props: { packageType: {} },
|
|
@@ -12680,11 +12542,9 @@ var PackageType_default = /* @__PURE__ */ defineComponent({
|
|
|
12680
12542
|
};
|
|
12681
12543
|
}
|
|
12682
12544
|
});
|
|
12683
|
-
|
|
12684
|
-
//#region ../admin/src/components/common/DigitalStampWeightRange.vue?vue&type=script&setup=true&lang.ts
|
|
12545
|
+
// ../admin/src/components/common/DigitalStampWeightRange.vue?vue&type=script&setup=true&lang.ts
|
|
12685
12546
|
var _hoisted_1$4 = ["textContent"];
|
|
12686
|
-
|
|
12687
|
-
//#region ../admin/src/components/common/DigitalStampWeightRange.vue
|
|
12547
|
+
// ../admin/src/components/common/DigitalStampWeightRange.vue
|
|
12688
12548
|
var DigitalStampWeightRange_default = /* @__PURE__ */ defineComponent({
|
|
12689
12549
|
__name: "DigitalStampWeightRange",
|
|
12690
12550
|
props: { weight: {} },
|
|
@@ -12695,11 +12555,9 @@ var DigitalStampWeightRange_default = /* @__PURE__ */ defineComponent({
|
|
|
12695
12555
|
};
|
|
12696
12556
|
}
|
|
12697
12557
|
});
|
|
12698
|
-
|
|
12699
|
-
//#region ../admin/src/components/common/DeliveryOptionsPackageType.vue?vue&type=script&setup=true&lang.ts
|
|
12558
|
+
// ../admin/src/components/common/DeliveryOptionsPackageType.vue?vue&type=script&setup=true&lang.ts
|
|
12700
12559
|
var _hoisted_1$3 = { key: 0 };
|
|
12701
|
-
|
|
12702
|
-
//#region ../admin/src/components/common/DeliveryOptionsPackageType.vue
|
|
12560
|
+
// ../admin/src/components/common/DeliveryOptionsPackageType.vue
|
|
12703
12561
|
var DeliveryOptionsPackageType_default = /* @__PURE__ */ defineComponent({
|
|
12704
12562
|
__name: "DeliveryOptionsPackageType",
|
|
12705
12563
|
props: { shipmentOrOrder: {} },
|
|
@@ -12717,8 +12575,7 @@ var DeliveryOptionsPackageType_default = /* @__PURE__ */ defineComponent({
|
|
|
12717
12575
|
};
|
|
12718
12576
|
}
|
|
12719
12577
|
});
|
|
12720
|
-
|
|
12721
|
-
//#region ../admin/src/sdk/PdkFetchClient.ts
|
|
12578
|
+
// ../admin/src/sdk/PdkFetchClient.ts
|
|
12722
12579
|
var PdkFetchClient = class extends H {
|
|
12723
12580
|
async doRequest(endpoint, options) {
|
|
12724
12581
|
const newOptions = this.normalizeOptions(endpoint, {
|
|
@@ -12752,16 +12609,14 @@ var PdkFetchClient = class extends H {
|
|
|
12752
12609
|
return super.createUrl(endpoint, options).replace(/\?([^?]*)(\?)/, "?$1&");
|
|
12753
12610
|
}
|
|
12754
12611
|
};
|
|
12755
|
-
|
|
12756
|
-
//#region ../admin/src/sdk/composables/useMyParcelApi.ts
|
|
12612
|
+
// ../admin/src/sdk/composables/useMyParcelApi.ts
|
|
12757
12613
|
var sdk;
|
|
12758
12614
|
var useMyParcelApi = () => {
|
|
12759
12615
|
if (sdk) return sdk;
|
|
12760
12616
|
sdk = f(new H(), [new de(), new ce()]);
|
|
12761
12617
|
return sdk;
|
|
12762
12618
|
};
|
|
12763
|
-
|
|
12764
|
-
//#region ../admin/src/sdk/composables/api/useFetchCarrier.ts
|
|
12619
|
+
// ../admin/src/sdk/composables/api/useFetchCarrier.ts
|
|
12765
12620
|
var KNOWN_CARRIER_NAMES = new Set(Object.values(CarrierName));
|
|
12766
12621
|
var KNOWN_CARRIER_IDS = new Set(Object.values(CarrierId).filter((value) => typeof value === "number"));
|
|
12767
12622
|
var resolveCarrierIdentifier = (input) => {
|
|
@@ -12783,11 +12638,9 @@ var useFetchCarrier = (carrier) => {
|
|
|
12783
12638
|
return (await useMyParcelApi().getCarrier(resolved === void 0 ? void 0 : { path: { carrier: resolved } }))[0];
|
|
12784
12639
|
}, { ...queryClient.defaultQueryOptions() });
|
|
12785
12640
|
};
|
|
12786
|
-
|
|
12787
|
-
//#region ../admin/src/sdk/endpoints/abstractPdkEndpoint.ts
|
|
12641
|
+
// ../admin/src/sdk/endpoints/abstractPdkEndpoint.ts
|
|
12788
12642
|
var AbstractPdkEndpoint = class extends x$1 {};
|
|
12789
|
-
|
|
12790
|
-
//#region ../admin/src/sdk/composables/usePdkAdminApi.ts
|
|
12643
|
+
// ../admin/src/sdk/composables/usePdkAdminApi.ts
|
|
12791
12644
|
var usePdkAdminApi = createGlobalState(() => {
|
|
12792
12645
|
const globalContext = useGlobalContext();
|
|
12793
12646
|
const client = new PdkFetchClient({ baseUrl: globalContext.baseUrl });
|
|
@@ -12809,8 +12662,7 @@ var usePdkAdminApi = createGlobalState(() => {
|
|
|
12809
12662
|
});
|
|
12810
12663
|
}));
|
|
12811
12664
|
});
|
|
12812
|
-
|
|
12813
|
-
//#region ../admin/src/components/common/DeliveryOptionsExcerptCarrierName.vue
|
|
12665
|
+
// ../admin/src/components/common/DeliveryOptionsExcerptCarrierName.vue
|
|
12814
12666
|
var DeliveryOptionsExcerptCarrierName_default = /* @__PURE__ */ defineComponent({
|
|
12815
12667
|
__name: "DeliveryOptionsExcerptCarrierName",
|
|
12816
12668
|
props: { carrier: {} },
|
|
@@ -12825,12 +12677,10 @@ var DeliveryOptionsExcerptCarrierName_default = /* @__PURE__ */ defineComponent(
|
|
|
12825
12677
|
};
|
|
12826
12678
|
}
|
|
12827
12679
|
});
|
|
12828
|
-
|
|
12829
|
-
//#region ../admin/src/components/common/DeliveryOptionsExcerpt.vue?vue&type=script&setup=true&lang.ts
|
|
12680
|
+
// ../admin/src/components/common/DeliveryOptionsExcerpt.vue?vue&type=script&setup=true&lang.ts
|
|
12830
12681
|
var _hoisted_1$2 = { key: 0 };
|
|
12831
12682
|
var _hoisted_2 = { key: 0 };
|
|
12832
|
-
|
|
12833
|
-
//#region ../admin/src/components/common/DeliveryOptionsExcerpt.vue
|
|
12683
|
+
// ../admin/src/components/common/DeliveryOptionsExcerpt.vue
|
|
12834
12684
|
var DeliveryOptionsExcerpt_default = /* @__PURE__ */ defineComponent({
|
|
12835
12685
|
__name: "DeliveryOptionsExcerpt",
|
|
12836
12686
|
setup(__props) {
|
|
@@ -12850,8 +12700,7 @@ var DeliveryOptionsExcerpt_default = /* @__PURE__ */ defineComponent({
|
|
|
12850
12700
|
};
|
|
12851
12701
|
}
|
|
12852
12702
|
});
|
|
12853
|
-
|
|
12854
|
-
//#region ../admin/src/components/common/NotificationContainer.vue
|
|
12703
|
+
// ../admin/src/components/common/NotificationContainer.vue
|
|
12855
12704
|
var NotificationContainer_default = /* @__PURE__ */ defineComponent({
|
|
12856
12705
|
__name: "NotificationContainer",
|
|
12857
12706
|
props: {
|
|
@@ -12884,16 +12733,14 @@ var NotificationContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
12884
12733
|
};
|
|
12885
12734
|
}
|
|
12886
12735
|
});
|
|
12887
|
-
|
|
12888
|
-
//#region ../admin/src/forms/form-builder/utils/createValueGetter.ts
|
|
12736
|
+
// ../admin/src/forms/form-builder/utils/createValueGetter.ts
|
|
12889
12737
|
var createValueGetter = (instance, prefix) => {
|
|
12890
12738
|
return (target) => {
|
|
12891
12739
|
if (target) return instance.form.getValue(`${prefix}${target}`);
|
|
12892
12740
|
return toValue$1(instance.ref);
|
|
12893
12741
|
};
|
|
12894
12742
|
};
|
|
12895
|
-
|
|
12896
|
-
//#region ../admin/src/forms/form-builder/utils/createValueSetter.ts
|
|
12743
|
+
// ../admin/src/forms/form-builder/utils/createValueSetter.ts
|
|
12897
12744
|
var setFieldRef = (field, value) => {
|
|
12898
12745
|
if (isRef(field.ref)) field.ref.value = value;
|
|
12899
12746
|
else field.ref = value;
|
|
@@ -12906,8 +12753,7 @@ var createValueSetter = (instance, prefix) => {
|
|
|
12906
12753
|
} else setFieldRef(instance, value);
|
|
12907
12754
|
};
|
|
12908
12755
|
};
|
|
12909
|
-
|
|
12910
|
-
//#region ../admin/src/forms/form-builder/utils/createPropSetter.ts
|
|
12756
|
+
// ../admin/src/forms/form-builder/utils/createPropSetter.ts
|
|
12911
12757
|
var createPropSetter = (instance, prefix) => {
|
|
12912
12758
|
return (prop, value, target) => {
|
|
12913
12759
|
let field;
|
|
@@ -12916,16 +12762,14 @@ var createPropSetter = (instance, prefix) => {
|
|
|
12916
12762
|
set(field.props, prop, value);
|
|
12917
12763
|
};
|
|
12918
12764
|
};
|
|
12919
|
-
|
|
12920
|
-
//#region ../admin/src/forms/form-builder/conditions/validateIsTruthy.ts
|
|
12765
|
+
// ../admin/src/forms/form-builder/conditions/validateIsTruthy.ts
|
|
12921
12766
|
var validateIsTruthy = ($if, getValue) => {
|
|
12922
12767
|
return validateIfCondition({
|
|
12923
12768
|
...$if,
|
|
12924
12769
|
$nin: [false, 0]
|
|
12925
12770
|
}, getValue);
|
|
12926
12771
|
};
|
|
12927
|
-
|
|
12928
|
-
//#region ../admin/src/forms/form-builder/conditions/validateIfCondition.ts
|
|
12772
|
+
// ../admin/src/forms/form-builder/conditions/validateIfCondition.ts
|
|
12929
12773
|
var validateIfCondition = ($if, getValue) => {
|
|
12930
12774
|
const value = getValue($if.$target);
|
|
12931
12775
|
let matches = false;
|
|
@@ -12940,8 +12784,7 @@ var validateIfCondition = ($if, getValue) => {
|
|
|
12940
12784
|
else if (isOfType$1($if, "$target")) matches = validateIsTruthy($if, getValue);
|
|
12941
12785
|
return matches;
|
|
12942
12786
|
};
|
|
12943
|
-
|
|
12944
|
-
//#region ../admin/src/forms/form-builder/conditions/validateIfConditions.ts
|
|
12787
|
+
// ../admin/src/forms/form-builder/conditions/validateIfConditions.ts
|
|
12945
12788
|
var validateIfConditions = (input, getValue) => {
|
|
12946
12789
|
if (!isOfType$1(input, "$if")) {
|
|
12947
12790
|
if (isOfType$1(input, "$target")) return validateIsTruthy(input, getValue);
|
|
@@ -12955,22 +12798,19 @@ var validateIfConditions = (input, getValue) => {
|
|
|
12955
12798
|
return matches;
|
|
12956
12799
|
});
|
|
12957
12800
|
};
|
|
12958
|
-
|
|
12959
|
-
//#region ../admin/src/forms/form-builder/operations/executeSetValueOperation.ts
|
|
12801
|
+
// ../admin/src/forms/form-builder/operations/executeSetValueOperation.ts
|
|
12960
12802
|
var executeSetValueOperation = (operation, { getValue, setValue }) => {
|
|
12961
12803
|
if (!validateIfConditions(operation.$setValue, getValue)) return;
|
|
12962
12804
|
const { $value, $target } = operation.$setValue;
|
|
12963
12805
|
setValue($value, $target);
|
|
12964
12806
|
};
|
|
12965
|
-
|
|
12966
|
-
//#region ../admin/src/forms/form-builder/operations/executeSetPropOperation.ts
|
|
12807
|
+
// ../admin/src/forms/form-builder/operations/executeSetPropOperation.ts
|
|
12967
12808
|
var executeSetPropOperation = (operation, { getValue, setProp }) => {
|
|
12968
12809
|
if (!validateIfConditions(operation.$setProp, getValue)) return;
|
|
12969
12810
|
const { $prop, $value, $target } = operation.$setProp;
|
|
12970
12811
|
setProp($prop, $value, $target);
|
|
12971
12812
|
};
|
|
12972
|
-
|
|
12973
|
-
//#region ../admin/src/forms/form-builder/operations/executeCustomOperationHandlers.ts
|
|
12813
|
+
// ../admin/src/forms/form-builder/operations/executeCustomOperationHandlers.ts
|
|
12974
12814
|
var executeCustomOperationHandlers = (operation, methods, customHandlers = []) => {
|
|
12975
12815
|
customHandlers.forEach((handler) => {
|
|
12976
12816
|
const matchingOperation = operation[handler.name];
|
|
@@ -12978,20 +12818,17 @@ var executeCustomOperationHandlers = (operation, methods, customHandlers = []) =
|
|
|
12978
12818
|
handler.callback(matchingOperation, methods);
|
|
12979
12819
|
});
|
|
12980
12820
|
};
|
|
12981
|
-
|
|
12982
|
-
//#region ../admin/src/forms/form-builder/operations/executeOperation.ts
|
|
12821
|
+
// ../admin/src/forms/form-builder/operations/executeOperation.ts
|
|
12983
12822
|
var executeOperation = (operation, methods, customHandlers = []) => {
|
|
12984
12823
|
if (isOfType$1(operation, "$setValue")) executeSetValueOperation(operation, methods);
|
|
12985
12824
|
if (isOfType$1(operation, "$setProp")) executeSetPropOperation(operation, methods);
|
|
12986
12825
|
executeCustomOperationHandlers(operation, methods, customHandlers);
|
|
12987
12826
|
};
|
|
12988
|
-
|
|
12989
|
-
//#region ../admin/src/forms/form-builder/operations/executeOperations.ts
|
|
12827
|
+
// ../admin/src/forms/form-builder/operations/executeOperations.ts
|
|
12990
12828
|
var executeOperations = (operations, methods, customHandlers = []) => {
|
|
12991
12829
|
operations.forEach((operation) => executeOperation(operation, methods, customHandlers));
|
|
12992
12830
|
};
|
|
12993
|
-
|
|
12994
|
-
//#region ../admin/src/forms/form-builder/operations/parseBuilders.ts
|
|
12831
|
+
// ../admin/src/forms/form-builder/operations/parseBuilders.ts
|
|
12995
12832
|
var parseBuilders = (builders, prefix, customHandlers = []) => {
|
|
12996
12833
|
const config = {};
|
|
12997
12834
|
builders?.forEach((builder) => {
|
|
@@ -13002,8 +12839,7 @@ var parseBuilders = (builders, prefix, customHandlers = []) => {
|
|
|
13002
12839
|
});
|
|
13003
12840
|
return config;
|
|
13004
12841
|
};
|
|
13005
|
-
|
|
13006
|
-
//#region ../admin/src/forms/form-builder/builders/buildAfterUpdate.ts
|
|
12842
|
+
// ../admin/src/forms/form-builder/builders/buildAfterUpdate.ts
|
|
13007
12843
|
var buildAfterUpdate = (operations, prefix, customHandlers = []) => {
|
|
13008
12844
|
return (instance) => {
|
|
13009
12845
|
executeOperations(operations, {
|
|
@@ -13013,15 +12849,13 @@ var buildAfterUpdate = (operations, prefix, customHandlers = []) => {
|
|
|
13013
12849
|
}, customHandlers);
|
|
13014
12850
|
};
|
|
13015
12851
|
};
|
|
13016
|
-
|
|
13017
|
-
//#region ../admin/src/forms/form-builder/builders/buildFormStateWatcher.ts
|
|
12852
|
+
// ../admin/src/forms/form-builder/builders/buildFormStateWatcher.ts
|
|
13018
12853
|
var buildFormStateWatcher = (input, prefix) => {
|
|
13019
12854
|
return (instance) => {
|
|
13020
12855
|
return validateIfConditions(input, createValueGetter(instance, prefix));
|
|
13021
12856
|
};
|
|
13022
12857
|
};
|
|
13023
|
-
|
|
13024
|
-
//#region ../admin/src/forms/formKeys.ts
|
|
12858
|
+
// ../admin/src/forms/formKeys.ts
|
|
13025
12859
|
var FORM_KEY_ACCOUNT_SETTINGS = "accountSettings";
|
|
13026
12860
|
var FORM_KEY_MODAL = "modal";
|
|
13027
12861
|
var FORM_KEY_MODAL_PRINT_OPTIONS = AdminModalKey.PrintOptions;
|
|
@@ -13040,8 +12874,7 @@ var FORM_KEYS = [
|
|
|
13040
12874
|
FORM_KEY_PLUGIN_SETTINGS,
|
|
13041
12875
|
FORM_KEY_PRODUCT_SETTINGS
|
|
13042
12876
|
];
|
|
13043
|
-
|
|
13044
|
-
//#region ../admin/src/actions/composables/queries/account/useShipmentCapabilitiesQuery.ts
|
|
12877
|
+
// ../admin/src/actions/composables/queries/account/useShipmentCapabilitiesQuery.ts
|
|
13045
12878
|
var useShipmentCapabilitiesQuery = (selection) => {
|
|
13046
12879
|
const enabled = computed(() => Boolean(selection.value.cc && selection.value.carrier && selection.value.packageType && selection.value.deliveryType));
|
|
13047
12880
|
return useQuery(computed(() => [
|
|
@@ -13078,8 +12911,7 @@ var useShipmentCapabilitiesQuery = (selection) => {
|
|
|
13078
12911
|
}
|
|
13079
12912
|
});
|
|
13080
12913
|
};
|
|
13081
|
-
|
|
13082
|
-
//#region ../admin/src/actions/composables/queries/account/useOrderCapabilitiesQuery.ts
|
|
12914
|
+
// ../admin/src/actions/composables/queries/account/useOrderCapabilitiesQuery.ts
|
|
13083
12915
|
var useOrderCapabilitiesQuery = (input) => {
|
|
13084
12916
|
const enabled = computed(() => Boolean(input.value.cc));
|
|
13085
12917
|
return useQuery(computed(() => [
|
|
@@ -13113,8 +12945,7 @@ var useOrderCapabilitiesQuery = (input) => {
|
|
|
13113
12945
|
}
|
|
13114
12946
|
});
|
|
13115
12947
|
};
|
|
13116
|
-
|
|
13117
|
-
//#region ../admin/src/forms/shipmentOptions/useCapabilitiesWatcher.ts
|
|
12948
|
+
// ../admin/src/forms/shipmentOptions/useCapabilitiesWatcher.ts
|
|
13118
12949
|
var DEBOUNCE_MS = 100;
|
|
13119
12950
|
var useCapabilitiesWatcher = (order, form) => {
|
|
13120
12951
|
return refDebounced(computed(() => ({
|
|
@@ -13122,8 +12953,7 @@ var useCapabilitiesWatcher = (order, form) => {
|
|
|
13122
12953
|
...toValue$1(form)
|
|
13123
12954
|
})), DEBOUNCE_MS);
|
|
13124
12955
|
};
|
|
13125
|
-
|
|
13126
|
-
//#region ../admin/src/forms/shipmentOptions/field.ts
|
|
12956
|
+
// ../admin/src/forms/shipmentOptions/field.ts
|
|
13127
12957
|
var DELIVERY_OPTIONS_PREFIX = "deliveryOptions";
|
|
13128
12958
|
var PHYSICAL_PROPERTIES_PREFIX = "physicalProperties";
|
|
13129
12959
|
var SHIPMENT_OPTIONS = "shipmentOptions";
|
|
@@ -13147,8 +12977,7 @@ var FIELD_LENGTH = `${PHYSICAL_PROPERTIES_PREFIX}.${LENGTH}`;
|
|
|
13147
12977
|
var FIELD_WIDTH = `${PHYSICAL_PROPERTIES_PREFIX}.${WIDTH}`;
|
|
13148
12978
|
var FIELD_HEIGHT = `${PHYSICAL_PROPERTIES_PREFIX}.${HEIGHT}`;
|
|
13149
12979
|
var FIELD_SHIPMENT_OPTIONS_PREFIX = `${DELIVERY_OPTIONS_PREFIX}.${SHIPMENT_OPTIONS}`;
|
|
13150
|
-
|
|
13151
|
-
//#region ../admin/src/forms/shipmentOptions/wireProxyCapabilities.ts
|
|
12980
|
+
// ../admin/src/forms/shipmentOptions/wireProxyCapabilities.ts
|
|
13152
12981
|
var resolveOrderInput = (form, order) => {
|
|
13153
12982
|
const manualWeightRaw = form.getValue(FIELD_MANUAL_WEIGHT);
|
|
13154
12983
|
const manualWeight = typeof manualWeightRaw === "number" && manualWeightRaw > 0 ? manualWeightRaw : void 0;
|
|
@@ -13186,8 +13015,7 @@ var wireProxyCapabilities = (form, order) => {
|
|
|
13186
13015
|
});
|
|
13187
13016
|
return { selection };
|
|
13188
13017
|
};
|
|
13189
|
-
|
|
13190
|
-
//#region ../admin/src/forms/shipmentOptions/useCapabilitiesAutoClear.ts
|
|
13018
|
+
// ../admin/src/forms/shipmentOptions/useCapabilitiesAutoClear.ts
|
|
13191
13019
|
var FIELD_TO_LABEL_KEY = {
|
|
13192
13020
|
[FIELD_CARRIER]: "carrier",
|
|
13193
13021
|
[FIELD_PACKAGE_TYPE]: snakeCase(`${SHIPMENT_OPTIONS}_package_type`),
|
|
@@ -13250,13 +13078,13 @@ var useCapabilitiesAutoClear = (form, allOptionKeys, orderId, inheritedDeliveryO
|
|
|
13250
13078
|
() => form.getValue(FIELD_DELIVERY_TYPE)
|
|
13251
13079
|
], ([carrierValue, packageTypeValue, deliveryTypeValue]) => {
|
|
13252
13080
|
if (!suppressTracking) {
|
|
13253
|
-
if (carrierValue !== previousAxisValues[
|
|
13081
|
+
if (carrierValue !== previousAxisValues["deliveryOptions.carrier"]) {
|
|
13254
13082
|
lastModifiedAxis = FIELD_CARRIER;
|
|
13255
13083
|
lastModifiedPreviousValue = previousAxisValues[FIELD_CARRIER];
|
|
13256
|
-
} else if (packageTypeValue !== previousAxisValues[
|
|
13084
|
+
} else if (packageTypeValue !== previousAxisValues["deliveryOptions.packageType"]) {
|
|
13257
13085
|
lastModifiedAxis = FIELD_PACKAGE_TYPE;
|
|
13258
13086
|
lastModifiedPreviousValue = previousAxisValues[FIELD_PACKAGE_TYPE];
|
|
13259
|
-
} else if (deliveryTypeValue !== previousAxisValues[
|
|
13087
|
+
} else if (deliveryTypeValue !== previousAxisValues["deliveryOptions.deliveryType"]) {
|
|
13260
13088
|
lastModifiedAxis = FIELD_DELIVERY_TYPE;
|
|
13261
13089
|
lastModifiedPreviousValue = previousAxisValues[FIELD_DELIVERY_TYPE];
|
|
13262
13090
|
}
|
|
@@ -13276,7 +13104,7 @@ var useCapabilitiesAutoClear = (form, allOptionKeys, orderId, inheritedDeliveryO
|
|
|
13276
13104
|
const inheritedDefault = (carrierName, axis) => {
|
|
13277
13105
|
const defaults = inheritedDeliveryOptions[carrierName];
|
|
13278
13106
|
if (!defaults) return void 0;
|
|
13279
|
-
return axis ===
|
|
13107
|
+
return axis === "deliveryOptions.packageType" ? defaults.packageType : defaults.deliveryType;
|
|
13280
13108
|
};
|
|
13281
13109
|
const applyCarrierDefaults = () => {
|
|
13282
13110
|
const carrierName = form.getValue(FIELD_CARRIER);
|
|
@@ -13307,15 +13135,15 @@ var useCapabilitiesAutoClear = (form, allOptionKeys, orderId, inheritedDeliveryO
|
|
|
13307
13135
|
addCapabilitiesClearNotification(notificationStore, translate("capabilities_cleared"), lines);
|
|
13308
13136
|
};
|
|
13309
13137
|
const resolveInvalidCombo = () => {
|
|
13310
|
-
if (lastModifiedAxis ===
|
|
13138
|
+
if (lastModifiedAxis === "deliveryOptions.carrier") {
|
|
13311
13139
|
applyCarrierDefaults();
|
|
13312
13140
|
return [];
|
|
13313
13141
|
}
|
|
13314
|
-
if (lastModifiedAxis ===
|
|
13142
|
+
if (lastModifiedAxis === "deliveryOptions.packageType" || lastModifiedAxis === "deliveryOptions.deliveryType") {
|
|
13315
13143
|
const { restored, changed } = revertAxis(lastModifiedAxis);
|
|
13316
13144
|
return changed ? [lineForAxisClear(lastModifiedAxis, restored)] : [];
|
|
13317
13145
|
}
|
|
13318
|
-
return setSilently(
|
|
13146
|
+
return setSilently("deliveryOptions.deliveryType", void 0) ? [lineForAxisClear(FIELD_DELIVERY_TYPE, false)] : [];
|
|
13319
13147
|
};
|
|
13320
13148
|
watch(() => {
|
|
13321
13149
|
const carrier = getCarrierCapabilitiesForOrder(form);
|
|
@@ -13333,7 +13161,7 @@ var useCapabilitiesAutoClear = (form, allOptionKeys, orderId, inheritedDeliveryO
|
|
|
13333
13161
|
const packageTypeInvalid = Boolean(packageType) && !packageTypesInCarrier.includes(packageType);
|
|
13334
13162
|
const deliveryTypeInvalid = Boolean(deliveryType) && !deliveryTypesInCarrier.includes(deliveryType);
|
|
13335
13163
|
if (!packageTypeInvalid && !deliveryTypeInvalid) return;
|
|
13336
|
-
if (lastModifiedAxis ===
|
|
13164
|
+
if (lastModifiedAxis === "deliveryOptions.carrier") {
|
|
13337
13165
|
applyCarrierDefaults();
|
|
13338
13166
|
return;
|
|
13339
13167
|
}
|
|
@@ -13368,13 +13196,11 @@ var useCapabilitiesAutoClear = (form, allOptionKeys, orderId, inheritedDeliveryO
|
|
|
13368
13196
|
notifyClears(lines);
|
|
13369
13197
|
});
|
|
13370
13198
|
};
|
|
13371
|
-
|
|
13372
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createRef.ts
|
|
13199
|
+
// ../admin/src/forms/shipmentOptions/fields/createRef.ts
|
|
13373
13200
|
var createRef = (refs, field, fallback) => {
|
|
13374
13201
|
return ref(refs[field] ?? fallback);
|
|
13375
13202
|
};
|
|
13376
|
-
|
|
13377
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createShipmentOptionField.ts
|
|
13203
|
+
// ../admin/src/forms/shipmentOptions/fields/createShipmentOptionField.ts
|
|
13378
13204
|
var createShipmentOptionField = (refs, fieldName, config) => {
|
|
13379
13205
|
const name = fieldName.split(".").pop() ?? fieldName;
|
|
13380
13206
|
const capabilities = useFormCapabilities();
|
|
@@ -13419,8 +13245,7 @@ var createShipmentOptionField = (refs, fieldName, config) => {
|
|
|
13419
13245
|
...config
|
|
13420
13246
|
});
|
|
13421
13247
|
};
|
|
13422
|
-
|
|
13423
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createDeliveryTypeField.ts
|
|
13248
|
+
// ../admin/src/forms/shipmentOptions/fields/createDeliveryTypeField.ts
|
|
13424
13249
|
var createDeliveryTypeField = (refs) => {
|
|
13425
13250
|
return defineFormField({
|
|
13426
13251
|
name: FIELD_DELIVERY_TYPE,
|
|
@@ -13429,8 +13254,7 @@ var createDeliveryTypeField = (refs) => {
|
|
|
13429
13254
|
component: resolveFormComponent(AdminComponent.RadioGroup)
|
|
13430
13255
|
});
|
|
13431
13256
|
};
|
|
13432
|
-
|
|
13433
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createCarrierField.ts
|
|
13257
|
+
// ../admin/src/forms/shipmentOptions/fields/createCarrierField.ts
|
|
13434
13258
|
var createCarrierField = (refs, inheritedDeliveryOptions) => {
|
|
13435
13259
|
const dynamicContext = useContext(AdminContextKey.Dynamic);
|
|
13436
13260
|
const capabilities = useFormCapabilities();
|
|
@@ -13497,8 +13321,7 @@ var createCarrierField = (refs, inheritedDeliveryOptions) => {
|
|
|
13497
13321
|
}
|
|
13498
13322
|
});
|
|
13499
13323
|
};
|
|
13500
|
-
|
|
13501
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createDigitalStampRangeField.ts
|
|
13324
|
+
// ../admin/src/forms/shipmentOptions/fields/createDigitalStampRangeField.ts
|
|
13502
13325
|
var createDigitalStampRangeField = (refs, order) => {
|
|
13503
13326
|
const pluginSettings = usePluginSettings();
|
|
13504
13327
|
const fallbackOrderData = order ? void 0 : toValue$1(useOrderData().order);
|
|
@@ -13509,7 +13332,7 @@ var createDigitalStampRangeField = (refs, order) => {
|
|
|
13509
13332
|
return defineFormField({
|
|
13510
13333
|
name: FIELD_MANUAL_WEIGHT,
|
|
13511
13334
|
label: "weight_range",
|
|
13512
|
-
ref: ref((TriState.Inherit === manualWeight ? TriState.Inherit : get(refs,
|
|
13335
|
+
ref: ref((TriState.Inherit === manualWeight ? TriState.Inherit : get(refs, "physicalProperties.manualWeight", manualWeight) ?? currentRange.value?.value) ?? TriState.Inherit),
|
|
13513
13336
|
component: resolveFormComponent(AdminComponent.SelectInput),
|
|
13514
13337
|
visibleWhen: (field) => field.form.getValue(FIELD_PACKAGE_TYPE) === "DIGITAL_STAMP",
|
|
13515
13338
|
disabledWhen: (field) => field.form.getValue(FIELD_PACKAGE_TYPE) !== "DIGITAL_STAMP",
|
|
@@ -13522,8 +13345,7 @@ var createDigitalStampRangeField = (refs, order) => {
|
|
|
13522
13345
|
}
|
|
13523
13346
|
});
|
|
13524
13347
|
};
|
|
13525
|
-
|
|
13526
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createDimensionFields.ts
|
|
13348
|
+
// ../admin/src/forms/shipmentOptions/fields/createDimensionFields.ts
|
|
13527
13349
|
var DIMENSION_FIELDS = [
|
|
13528
13350
|
[FIELD_LENGTH, "length_in_cm"],
|
|
13529
13351
|
[FIELD_WIDTH, "width_in_cm"],
|
|
@@ -13536,8 +13358,7 @@ var createDimensionFields = (refs) => DIMENSION_FIELDS.map(([name, label]) => de
|
|
|
13536
13358
|
component: resolveFormComponent(AdminComponent.NumberInput),
|
|
13537
13359
|
attributes: { min: 0 }
|
|
13538
13360
|
}));
|
|
13539
|
-
|
|
13540
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createInsuranceField.ts
|
|
13361
|
+
// ../admin/src/forms/shipmentOptions/fields/createInsuranceField.ts
|
|
13541
13362
|
var createInsuranceField = (refs, fieldName) => {
|
|
13542
13363
|
const formatter = useLocalizedFormatter();
|
|
13543
13364
|
const capabilities = useFormCapabilities();
|
|
@@ -13553,8 +13374,7 @@ var createInsuranceField = (refs, fieldName) => {
|
|
|
13553
13374
|
}
|
|
13554
13375
|
});
|
|
13555
13376
|
};
|
|
13556
|
-
|
|
13557
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createLabelAmountField.ts
|
|
13377
|
+
// ../admin/src/forms/shipmentOptions/fields/createLabelAmountField.ts
|
|
13558
13378
|
var createLabelAmountField = (refs) => {
|
|
13559
13379
|
return defineFormField({
|
|
13560
13380
|
name: FIELD_LABEL_AMOUNT,
|
|
@@ -13567,8 +13387,7 @@ var createLabelAmountField = (refs) => {
|
|
|
13567
13387
|
}
|
|
13568
13388
|
});
|
|
13569
13389
|
};
|
|
13570
|
-
|
|
13571
|
-
//#region ../admin/src/forms/shipmentOptions/fields/createPackageTypeField.ts
|
|
13390
|
+
// ../admin/src/forms/shipmentOptions/fields/createPackageTypeField.ts
|
|
13572
13391
|
var createPackageTypeField = (refs) => {
|
|
13573
13392
|
return defineFormField({
|
|
13574
13393
|
name: FIELD_PACKAGE_TYPE,
|
|
@@ -13577,11 +13396,9 @@ var createPackageTypeField = (refs) => {
|
|
|
13577
13396
|
component: resolveFormComponent(AdminComponent.RadioGroup)
|
|
13578
13397
|
});
|
|
13579
13398
|
};
|
|
13580
|
-
|
|
13581
|
-
//#region ../admin/src/forms/shipmentOptions/fieldFactoryRegistry.ts
|
|
13399
|
+
// ../admin/src/forms/shipmentOptions/fieldFactoryRegistry.ts
|
|
13582
13400
|
var fieldFactoryRegistry = { insurance: createInsuranceField };
|
|
13583
|
-
|
|
13584
|
-
//#region ../admin/src/forms/shipmentOptions/createShipmentOptionsForm.ts
|
|
13401
|
+
// ../admin/src/forms/shipmentOptions/createShipmentOptionsForm.ts
|
|
13585
13402
|
var createShipmentOptionsForm = (orders) => {
|
|
13586
13403
|
const ordersArray = toArray(orders ?? []).map(toRaw);
|
|
13587
13404
|
const config = useAdminConfig();
|
|
@@ -13644,13 +13461,11 @@ var createShipmentOptionsFields = (refs, order, optionKeys) => {
|
|
|
13644
13461
|
});
|
|
13645
13462
|
return [...staticFields, ...dynamicFields];
|
|
13646
13463
|
};
|
|
13647
|
-
|
|
13648
|
-
//#region ../admin/src/forms/helpers/createLabel.ts
|
|
13464
|
+
// ../admin/src/forms/helpers/createLabel.ts
|
|
13649
13465
|
var createLabel = (label, type) => {
|
|
13650
13466
|
return label ? `${label}_${type}` : void 0;
|
|
13651
13467
|
};
|
|
13652
|
-
|
|
13653
|
-
//#region ../admin/src/forms/helpers/addBulkEditNotification.ts
|
|
13468
|
+
// ../admin/src/forms/helpers/addBulkEditNotification.ts
|
|
13654
13469
|
var TRANSLATION_KEY = "bulk_orders_warning";
|
|
13655
13470
|
var addBulkEditNotification = (isModal) => {
|
|
13656
13471
|
useNotificationStore().add({
|
|
@@ -13662,8 +13477,7 @@ var addBulkEditNotification = (isModal) => {
|
|
|
13662
13477
|
timeout: false
|
|
13663
13478
|
});
|
|
13664
13479
|
};
|
|
13665
|
-
|
|
13666
|
-
//#region ../admin/src/forms/helpers/addCapabilitiesClearNotification.ts
|
|
13480
|
+
// ../admin/src/forms/helpers/addCapabilitiesClearNotification.ts
|
|
13667
13481
|
var CAPABILITIES_CLEARED_NOTIFICATION_ID = "capabilities_cleared";
|
|
13668
13482
|
var addCapabilitiesClearNotification = (notificationStore, title, lines) => {
|
|
13669
13483
|
if (lines.length === 0) return;
|
|
@@ -13678,8 +13492,7 @@ var addCapabilitiesClearNotification = (notificationStore, title, lines) => {
|
|
|
13678
13492
|
timeout: false
|
|
13679
13493
|
});
|
|
13680
13494
|
};
|
|
13681
|
-
|
|
13682
|
-
//#region ../admin/src/forms/helpers/createDefaultOption.ts
|
|
13495
|
+
// ../admin/src/forms/helpers/createDefaultOption.ts
|
|
13683
13496
|
var createDefaultOption = (value) => ({
|
|
13684
13497
|
label: {
|
|
13685
13498
|
key: "option_inherit_value",
|
|
@@ -13687,8 +13500,7 @@ var createDefaultOption = (value) => ({
|
|
|
13687
13500
|
},
|
|
13688
13501
|
value: TriState.Inherit
|
|
13689
13502
|
});
|
|
13690
|
-
|
|
13691
|
-
//#region ../admin/src/forms/helpers/defineFormField.ts
|
|
13503
|
+
// ../admin/src/forms/helpers/defineFormField.ts
|
|
13692
13504
|
var defineFormField = (config) => {
|
|
13693
13505
|
const { props, label } = config;
|
|
13694
13506
|
return Xe({
|
|
@@ -13700,8 +13512,7 @@ var defineFormField = (config) => {
|
|
|
13700
13512
|
}
|
|
13701
13513
|
});
|
|
13702
13514
|
};
|
|
13703
|
-
|
|
13704
|
-
//#region ../admin/src/forms/helpers/getDeliveryTypes.ts
|
|
13515
|
+
// ../admin/src/forms/helpers/getDeliveryTypes.ts
|
|
13705
13516
|
var getDeliveryTypes = (carrier) => {
|
|
13706
13517
|
if (!carrier) return [];
|
|
13707
13518
|
return carrier.deliveryTypes.map((name) => ({
|
|
@@ -13709,11 +13520,9 @@ var getDeliveryTypes = (carrier) => {
|
|
|
13709
13520
|
value: name
|
|
13710
13521
|
}));
|
|
13711
13522
|
};
|
|
13712
|
-
|
|
13713
|
-
//#region ../admin/src/forms/helpers/getFieldLabel.ts
|
|
13523
|
+
// ../admin/src/forms/helpers/getFieldLabel.ts
|
|
13714
13524
|
var getFieldLabel = (name) => snakeCase(`${SHIPMENT_OPTIONS}_${name}`);
|
|
13715
|
-
|
|
13716
|
-
//#region ../admin/src/forms/helpers/getPackageTypes.ts
|
|
13525
|
+
// ../admin/src/forms/helpers/getPackageTypes.ts
|
|
13717
13526
|
var getPackageTypes = (carrier) => {
|
|
13718
13527
|
if (!carrier) return [];
|
|
13719
13528
|
return carrier.packageTypes.map((packageType) => ({
|
|
@@ -13721,16 +13530,14 @@ var getPackageTypes = (carrier) => {
|
|
|
13721
13530
|
value: packageType
|
|
13722
13531
|
}));
|
|
13723
13532
|
};
|
|
13724
|
-
|
|
13725
|
-
//#region ../admin/src/forms/helpers/resolveFormComponent.ts
|
|
13533
|
+
// ../admin/src/forms/helpers/resolveFormComponent.ts
|
|
13726
13534
|
var memoizedResolveFormComponent = memoize((componentName) => {
|
|
13727
13535
|
return resolveComponent(prefixComponent(componentName));
|
|
13728
13536
|
});
|
|
13729
13537
|
var resolveFormComponent = (componentName) => {
|
|
13730
13538
|
return memoizedResolveFormComponent(componentName);
|
|
13731
13539
|
};
|
|
13732
|
-
|
|
13733
|
-
//#region ../admin/src/forms/helpers/setFieldProp.ts
|
|
13540
|
+
// ../admin/src/forms/helpers/setFieldProp.ts
|
|
13734
13541
|
var setFieldProp = (arg1, arg2, arg3, arg4) => {
|
|
13735
13542
|
let field = arg1;
|
|
13736
13543
|
let key = arg2;
|
|
@@ -13745,8 +13552,7 @@ var setFieldProp = (arg1, arg2, arg3, arg4) => {
|
|
|
13745
13552
|
if (!isOfType$1(field, "form")) return;
|
|
13746
13553
|
field.props[key] = value;
|
|
13747
13554
|
};
|
|
13748
|
-
|
|
13749
|
-
//#region ../admin/src/forms/helpers/updateFieldsDefaults.ts
|
|
13555
|
+
// ../admin/src/forms/helpers/updateFieldsDefaults.ts
|
|
13750
13556
|
var updateFieldsDefaults = (carrier, { form, name }, inheritedDeliveryOptions) => {
|
|
13751
13557
|
toValue$1(form.fields).forEach((otherField) => {
|
|
13752
13558
|
if (otherField.name === name) return;
|
|
@@ -13755,8 +13561,7 @@ var updateFieldsDefaults = (carrier, { form, name }, inheritedDeliveryOptions) =
|
|
|
13755
13561
|
otherField.props.defaultValue = get(inheritedDeliveryOptions, [carrier, ...optionPathParts]);
|
|
13756
13562
|
});
|
|
13757
13563
|
};
|
|
13758
|
-
|
|
13759
|
-
//#region ../admin/src/forms/helpers/useFormCapabilities.ts
|
|
13564
|
+
// ../admin/src/forms/helpers/useFormCapabilities.ts
|
|
13760
13565
|
var INSURANCE_FLOOR_TIERS = [
|
|
13761
13566
|
1e4,
|
|
13762
13567
|
25e3,
|
|
@@ -13825,8 +13630,7 @@ var useFormCapabilities = () => {
|
|
|
13825
13630
|
getInsuranceOptions
|
|
13826
13631
|
};
|
|
13827
13632
|
};
|
|
13828
|
-
|
|
13829
|
-
//#region ../admin/src/forms/pluginSettings/generateFormFields.ts
|
|
13633
|
+
// ../admin/src/forms/pluginSettings/generateFormFields.ts
|
|
13830
13634
|
var generateFormFields = ({ fields, values }, prefix = "") => {
|
|
13831
13635
|
if (!fields) return [];
|
|
13832
13636
|
return fields.map((data) => {
|
|
@@ -13849,11 +13653,9 @@ var generateFormFields = ({ fields, values }, prefix = "") => {
|
|
|
13849
13653
|
});
|
|
13850
13654
|
});
|
|
13851
13655
|
};
|
|
13852
|
-
|
|
13853
|
-
//#region ../admin/src/components/common/ShipmentBarcode.vue?vue&type=script&setup=true&lang.ts
|
|
13656
|
+
// ../admin/src/components/common/ShipmentBarcode.vue?vue&type=script&setup=true&lang.ts
|
|
13854
13657
|
var _hoisted_1$1 = ["title", "textContent"];
|
|
13855
|
-
|
|
13856
|
-
//#region ../admin/src/components/common/ShipmentBarcode.vue
|
|
13658
|
+
// ../admin/src/components/common/ShipmentBarcode.vue
|
|
13857
13659
|
var ShipmentBarcode_default = /* @__PURE__ */ defineComponent({
|
|
13858
13660
|
__name: "ShipmentBarcode",
|
|
13859
13661
|
props: { shipmentId: {} },
|
|
@@ -13887,8 +13689,7 @@ var ShipmentBarcode_default = /* @__PURE__ */ defineComponent({
|
|
|
13887
13689
|
};
|
|
13888
13690
|
}
|
|
13889
13691
|
});
|
|
13890
|
-
|
|
13891
|
-
//#region ../admin/src/components/common/ShipmentOptionsForm.vue
|
|
13692
|
+
// ../admin/src/components/common/ShipmentOptionsForm.vue
|
|
13892
13693
|
var ShipmentOptionsForm_default = /* @__PURE__ */ defineComponent({
|
|
13893
13694
|
__name: "ShipmentOptionsForm",
|
|
13894
13695
|
props: { order: {} },
|
|
@@ -13899,11 +13700,9 @@ var ShipmentOptionsForm_default = /* @__PURE__ */ defineComponent({
|
|
|
13899
13700
|
};
|
|
13900
13701
|
}
|
|
13901
13702
|
});
|
|
13902
|
-
|
|
13903
|
-
//#region ../admin/src/components/common/ShipmentStatus.vue?vue&type=script&setup=true&lang.ts
|
|
13703
|
+
// ../admin/src/components/common/ShipmentStatus.vue?vue&type=script&setup=true&lang.ts
|
|
13904
13704
|
var _hoisted_1 = ["title", "textContent"];
|
|
13905
|
-
|
|
13906
|
-
//#region ../admin/src/components/common/ShipmentStatus.vue
|
|
13705
|
+
// ../admin/src/components/common/ShipmentStatus.vue
|
|
13907
13706
|
var ShipmentStatus_default = /* @__PURE__ */ defineComponent({
|
|
13908
13707
|
__name: "ShipmentStatus",
|
|
13909
13708
|
props: { shipmentId: {} },
|
|
@@ -13921,8 +13720,7 @@ var ShipmentStatus_default = /* @__PURE__ */ defineComponent({
|
|
|
13921
13720
|
};
|
|
13922
13721
|
}
|
|
13923
13722
|
});
|
|
13924
|
-
|
|
13925
|
-
//#region ../admin/src/pdk/fillShipmentsQueryData.ts
|
|
13723
|
+
// ../admin/src/pdk/fillShipmentsQueryData.ts
|
|
13926
13724
|
var fillShipmentsQueryData = (queryClient, shipments, order) => {
|
|
13927
13725
|
const shipmentsArray = toArray(shipments);
|
|
13928
13726
|
const orderIds = new Set(shipmentsArray.map((shipment) => shipment.orderId));
|
|
@@ -13946,13 +13744,11 @@ var fillShipmentsQueryData = (queryClient, shipments, order) => {
|
|
|
13946
13744
|
setQueryShipment(queryClient, shipment);
|
|
13947
13745
|
});
|
|
13948
13746
|
};
|
|
13949
|
-
|
|
13950
|
-
//#region ../admin/src/composables/language/resolveTranslationKey.ts
|
|
13747
|
+
// ../admin/src/composables/language/resolveTranslationKey.ts
|
|
13951
13748
|
var resolveTranslationKey = (translation) => {
|
|
13952
13749
|
return typeof translation === "string" ? translation : translation.key;
|
|
13953
13750
|
};
|
|
13954
|
-
|
|
13955
|
-
//#region ../admin/src/composables/language/useLanguage.ts
|
|
13751
|
+
// ../admin/src/composables/language/useLanguage.ts
|
|
13956
13752
|
var useCache = createGlobalState(() => /* @__PURE__ */ new Map());
|
|
13957
13753
|
var useMissingKeys = createGlobalState(() => ref([]));
|
|
13958
13754
|
var all = () => {
|
|
@@ -14003,12 +13799,10 @@ var useLanguage = () => {
|
|
|
14003
13799
|
translate: memoizedTranslate
|
|
14004
13800
|
};
|
|
14005
13801
|
};
|
|
14006
|
-
|
|
14007
|
-
//#region ../admin/src/symbols.ts
|
|
13802
|
+
// ../admin/src/symbols.ts
|
|
14008
13803
|
var INJECT_ADMIN_INSTANCE = Symbol("instance");
|
|
14009
13804
|
var INJECT_GLOBAL_PDK_ADMIN = Symbol("admin");
|
|
14010
|
-
|
|
14011
|
-
//#region ../admin/src/utils/forms/createFormElement.ts
|
|
13805
|
+
// ../admin/src/utils/forms/createFormElement.ts
|
|
14012
13806
|
var createFormElement = (config, formName) => {
|
|
14013
13807
|
return {
|
|
14014
13808
|
component: "input",
|
|
@@ -14018,14 +13812,12 @@ var createFormElement = (config, formName) => {
|
|
|
14018
13812
|
...config
|
|
14019
13813
|
};
|
|
14020
13814
|
};
|
|
14021
|
-
|
|
14022
|
-
//#region ../admin/src/utils/forms/createShipmentFormName.ts
|
|
13815
|
+
// ../admin/src/utils/forms/createShipmentFormName.ts
|
|
14023
13816
|
var createShipmentFormName = (orderId) => {
|
|
14024
13817
|
if (!orderId) orderId = "bulk";
|
|
14025
13818
|
return `${AdminModalKey.ShipmentOptions}_${orderId}`;
|
|
14026
13819
|
};
|
|
14027
|
-
|
|
14028
|
-
//#region ../admin/src/utils/forms/getEnabledValues.ts
|
|
13820
|
+
// ../admin/src/utils/forms/getEnabledValues.ts
|
|
14029
13821
|
var getEnabledValues = (form) => {
|
|
14030
13822
|
const values = {};
|
|
14031
13823
|
for (const field of toValue$1(form.interactiveFields)) {
|
|
@@ -14034,16 +13826,14 @@ var getEnabledValues = (form) => {
|
|
|
14034
13826
|
}
|
|
14035
13827
|
return values;
|
|
14036
13828
|
};
|
|
14037
|
-
|
|
14038
|
-
//#region ../admin/src/utils/forms/formToBody.ts
|
|
13829
|
+
// ../admin/src/utils/forms/formToBody.ts
|
|
14039
13830
|
var formToBody = (form) => {
|
|
14040
13831
|
if (!isOfType$1(form, "getValues")) return form ? form : {};
|
|
14041
13832
|
return convertDotNotationToObject(getEnabledValues(form), (value) => {
|
|
14042
13833
|
return typeof value === "boolean" ? Number(value) : value;
|
|
14043
13834
|
});
|
|
14044
13835
|
};
|
|
14045
|
-
|
|
14046
|
-
//#region ../admin/src/utils/generateLabelFilename.ts
|
|
13836
|
+
// ../admin/src/utils/generateLabelFilename.ts
|
|
14047
13837
|
var generateLabelFilename = (parameters) => {
|
|
14048
13838
|
const prefix = "myparcel-labels";
|
|
14049
13839
|
const suffix = ".pdf";
|
|
@@ -14055,18 +13845,15 @@ var generateLabelFilename = (parameters) => {
|
|
|
14055
13845
|
}
|
|
14056
13846
|
return `${prefix}-${orderIds[0]}${suffix}`;
|
|
14057
13847
|
};
|
|
14058
|
-
|
|
14059
|
-
//#region ../admin/src/utils/getOrderId.ts
|
|
13848
|
+
// ../admin/src/utils/getOrderId.ts
|
|
14060
13849
|
var getOrderId = (instance) => {
|
|
14061
13850
|
return useModalOrder() ?? instance?.context?.[AdminInstanceContextKey.OrderIdentifier] ?? useInstanceContext(AdminInstanceContextKey.OrderIdentifier);
|
|
14062
13851
|
};
|
|
14063
|
-
|
|
14064
|
-
//#region ../admin/src/utils/getOrderShipmentIds.ts
|
|
13852
|
+
// ../admin/src/utils/getOrderShipmentIds.ts
|
|
14065
13853
|
var getOrderShipmentIds = (orderIds) => {
|
|
14066
13854
|
return useOrdersData(orderIds).map(({ order }) => toValue$1(order)?.shipments).flat().filter(isDef).map((shipment) => shipment.id);
|
|
14067
13855
|
};
|
|
14068
|
-
|
|
14069
|
-
//#region ../admin/src/utils/fakeLinkClick.ts
|
|
13856
|
+
// ../admin/src/utils/fakeLinkClick.ts
|
|
14070
13857
|
var fakeLinkClick = (url, attributes) => {
|
|
14071
13858
|
const link = document.createElement("a");
|
|
14072
13859
|
link.href = url;
|
|
@@ -14077,8 +13864,7 @@ var fakeLinkClick = (url, attributes) => {
|
|
|
14077
13864
|
link.click();
|
|
14078
13865
|
link.remove();
|
|
14079
13866
|
};
|
|
14080
|
-
|
|
14081
|
-
//#region ../admin/src/utils/openUrlInNewTab.ts
|
|
13867
|
+
// ../admin/src/utils/openUrlInNewTab.ts
|
|
14082
13868
|
var openUrlInNewTab = (url, attributes = {}) => {
|
|
14083
13869
|
fakeLinkClick(url, {
|
|
14084
13870
|
target: "_blank",
|
|
@@ -14086,20 +13872,17 @@ var openUrlInNewTab = (url, attributes = {}) => {
|
|
|
14086
13872
|
...attributes
|
|
14087
13873
|
});
|
|
14088
13874
|
};
|
|
14089
|
-
|
|
14090
|
-
//#region ../admin/src/utils/prefixComponent.ts
|
|
13875
|
+
// ../admin/src/utils/prefixComponent.ts
|
|
14091
13876
|
var prefixComponent = (componentName) => {
|
|
14092
13877
|
if (componentName.startsWith("Pdk")) return componentName;
|
|
14093
13878
|
return `Pdk${componentName}`;
|
|
14094
13879
|
};
|
|
14095
|
-
|
|
14096
|
-
//#region ../admin/src/utils/query/setQueryData.ts
|
|
13880
|
+
// ../admin/src/utils/query/setQueryData.ts
|
|
14097
13881
|
var setQueryData = (queryClient, queryKey, data) => {
|
|
14098
13882
|
globalLogger.debug("QUERY UPDATE:", JSON.stringify(queryKey));
|
|
14099
13883
|
queryClient.setQueryData(queryKey, data);
|
|
14100
13884
|
};
|
|
14101
|
-
|
|
14102
|
-
//#region ../admin/src/utils/query/setQueryOrder.ts
|
|
13885
|
+
// ../admin/src/utils/query/setQueryOrder.ts
|
|
14103
13886
|
var setQueryOrder = (queryClient, order) => {
|
|
14104
13887
|
let filteredOrder;
|
|
14105
13888
|
if (order.shipments?.length && isOfType$1(order.shipments[0], "orderId")) filteredOrder = {
|
|
@@ -14112,37 +13895,30 @@ var setQueryOrder = (queryClient, order) => {
|
|
|
14112
13895
|
else filteredOrder = order;
|
|
14113
13896
|
setQueryData(queryClient, [QUERY_KEY_ORDER, { id: order.externalIdentifier }], filteredOrder);
|
|
14114
13897
|
};
|
|
14115
|
-
|
|
14116
|
-
//#region ../admin/src/utils/query/setQueryShipment.ts
|
|
13898
|
+
// ../admin/src/utils/query/setQueryShipment.ts
|
|
14117
13899
|
var setQueryShipment = (queryClient, shipment) => {
|
|
14118
13900
|
setQueryData(queryClient, [QUERY_KEY_SHIPMENT, { id: shipment.id }], shipment);
|
|
14119
13901
|
};
|
|
14120
|
-
|
|
14121
|
-
//#region ../admin/src/utils/translations/getDynamicTranslation.ts
|
|
13902
|
+
// ../admin/src/utils/translations/getDynamicTranslation.ts
|
|
14122
13903
|
var getDynamicTranslation = (prefix, input) => {
|
|
14123
13904
|
if (!input) return prefix;
|
|
14124
13905
|
return `${prefix}_${input.toLowerCase()}`;
|
|
14125
13906
|
};
|
|
14126
|
-
|
|
14127
|
-
//#region ../admin/src/utils/translations/getDeliveryTypeTranslation.ts
|
|
13907
|
+
// ../admin/src/utils/translations/getDeliveryTypeTranslation.ts
|
|
14128
13908
|
var getDeliveryTypeTranslation = (name) => getDynamicTranslation("delivery_type", name);
|
|
14129
|
-
|
|
14130
|
-
//#region ../admin/src/utils/translations/getPackageTypeTranslation.ts
|
|
13909
|
+
// ../admin/src/utils/translations/getPackageTypeTranslation.ts
|
|
14131
13910
|
var getPackageTypeTranslation = (name) => getDynamicTranslation("package_type", name);
|
|
14132
|
-
|
|
14133
|
-
//#region ../admin/src/utils/validateId.ts
|
|
13911
|
+
// ../admin/src/utils/validateId.ts
|
|
14134
13912
|
var validateId = (id, canBeArray) => {
|
|
14135
13913
|
if (!id) throw new Error("no id provided");
|
|
14136
13914
|
if (Array.isArray(id) && canBeArray !== true) throw new Error("id cannot be an array");
|
|
14137
13915
|
return id;
|
|
14138
13916
|
};
|
|
14139
|
-
|
|
14140
|
-
//#region ../admin/src/utils/downloadFileFromUrl.ts
|
|
13917
|
+
// ../admin/src/utils/downloadFileFromUrl.ts
|
|
14141
13918
|
var downloadFileFromUrl = (url, filename) => {
|
|
14142
13919
|
fakeLinkClick(url, { download: filename });
|
|
14143
13920
|
};
|
|
14144
|
-
|
|
14145
|
-
//#region ../admin/src/stores/useQueryStore.ts
|
|
13921
|
+
// ../admin/src/stores/useQueryStore.ts
|
|
14146
13922
|
var useQueryStore = defineStore("query", () => {
|
|
14147
13923
|
const queries = ref({});
|
|
14148
13924
|
const queryClient = ref();
|
|
@@ -14240,35 +14016,29 @@ var useQueryStore = defineStore("query", () => {
|
|
|
14240
14016
|
}
|
|
14241
14017
|
};
|
|
14242
14018
|
});
|
|
14243
|
-
|
|
14244
|
-
//#region ../admin/src/composables/useStoreQuery.ts
|
|
14019
|
+
// ../admin/src/composables/useStoreQuery.ts
|
|
14245
14020
|
var useStoreQuery = (endpoint, suffix) => {
|
|
14246
14021
|
return useQueryStore().get(endpoint, suffix);
|
|
14247
14022
|
};
|
|
14248
|
-
|
|
14249
|
-
//#region ../admin/src/composables/useStoreContextQuery.ts
|
|
14023
|
+
// ../admin/src/composables/useStoreContextQuery.ts
|
|
14250
14024
|
var useStoreContextQuery = (contextKey) => {
|
|
14251
14025
|
return useStoreQuery(BackendEndpoint.FetchContext, contextKey ?? AdminContextKey.Dynamic);
|
|
14252
14026
|
};
|
|
14253
|
-
|
|
14254
|
-
//#region ../admin/src/composables/context/useContext.ts
|
|
14027
|
+
// ../admin/src/composables/context/useContext.ts
|
|
14255
14028
|
var useContext = (contextKey = AdminContextKey.Dynamic) => {
|
|
14256
14029
|
const data = toValue$1(useStoreContextQuery(contextKey).data);
|
|
14257
14030
|
if (!data) throw new Error(`Context ${contextKey} not found`);
|
|
14258
14031
|
return data;
|
|
14259
14032
|
};
|
|
14260
|
-
|
|
14261
|
-
//#region ../admin/src/composables/context/useGlobalContext.ts
|
|
14033
|
+
// ../admin/src/composables/context/useGlobalContext.ts
|
|
14262
14034
|
var useGlobalContext = () => {
|
|
14263
14035
|
return useContext(AdminContextKey.Global);
|
|
14264
14036
|
};
|
|
14265
|
-
|
|
14266
|
-
//#region ../admin/src/composables/context/useInstanceContext.ts
|
|
14037
|
+
// ../admin/src/composables/context/useInstanceContext.ts
|
|
14267
14038
|
var useInstanceContext = (context) => {
|
|
14268
14039
|
return inject(INJECT_ADMIN_INSTANCE)?.context?.[context] ?? null;
|
|
14269
14040
|
};
|
|
14270
|
-
|
|
14271
|
-
//#region ../admin/src/composables/useLoading.ts
|
|
14041
|
+
// ../admin/src/composables/useLoading.ts
|
|
14272
14042
|
var useLoading = (initialValue = false) => {
|
|
14273
14043
|
const loading = ref(initialValue);
|
|
14274
14044
|
const setLoading = (state) => {
|
|
@@ -14279,30 +14049,26 @@ var useLoading = (initialValue = false) => {
|
|
|
14279
14049
|
setLoading
|
|
14280
14050
|
};
|
|
14281
14051
|
};
|
|
14282
|
-
|
|
14283
|
-
//#region ../admin/src/composables/context/useModalOrder.ts
|
|
14052
|
+
// ../admin/src/composables/context/useModalOrder.ts
|
|
14284
14053
|
var useModalOrder = () => {
|
|
14285
14054
|
const store = useModalStore();
|
|
14286
14055
|
if (store.opened && [AdminModalKey.ShipmentOptions].includes(store.opened)) return store.context.orderIds;
|
|
14287
14056
|
return null;
|
|
14288
14057
|
};
|
|
14289
|
-
|
|
14290
|
-
//#region ../admin/src/composables/context/useOrderMode.ts
|
|
14058
|
+
// ../admin/src/composables/context/useOrderMode.ts
|
|
14291
14059
|
var useOrderMode = () => {
|
|
14292
14060
|
const context = useContext();
|
|
14293
14061
|
return computed(() => {
|
|
14294
14062
|
return orderModeFromContextValue(context.account?.effectiveOrderMode) ?? resolveOrderMode(context.account?.subscriptionFeatures ?? []);
|
|
14295
14063
|
});
|
|
14296
14064
|
};
|
|
14297
|
-
|
|
14298
|
-
//#region ../admin/src/composables/context/usePluginSettings.ts
|
|
14065
|
+
// ../admin/src/composables/context/usePluginSettings.ts
|
|
14299
14066
|
var usePluginSettings = () => {
|
|
14300
14067
|
const context = useContext();
|
|
14301
14068
|
if (!context.pluginSettings) throw new Error("No pluginSettings found");
|
|
14302
14069
|
return context.pluginSettings;
|
|
14303
14070
|
};
|
|
14304
|
-
|
|
14305
|
-
//#region ../admin/src/composables/language/resolveTranslatedString.ts
|
|
14071
|
+
// ../admin/src/composables/language/resolveTranslatedString.ts
|
|
14306
14072
|
var resolveTranslatedString = (translated, replacers, translation) => {
|
|
14307
14073
|
const matches = translated.match(/\{[\w.]+}/g);
|
|
14308
14074
|
if (!matches) return translated;
|
|
@@ -14317,16 +14083,14 @@ var resolveTranslatedString = (translated, replacers, translation) => {
|
|
|
14317
14083
|
return acc.replace(match, String(replacement));
|
|
14318
14084
|
}, translated);
|
|
14319
14085
|
};
|
|
14320
|
-
|
|
14321
|
-
//#region ../admin/src/composables/formatter/default/createCurrencyFormat.ts
|
|
14086
|
+
// ../admin/src/composables/formatter/default/createCurrencyFormat.ts
|
|
14322
14087
|
var createCurrencyFormat = (locale) => {
|
|
14323
14088
|
return new Intl.NumberFormat(locale, {
|
|
14324
14089
|
currency: "EUR",
|
|
14325
14090
|
style: "currency"
|
|
14326
14091
|
});
|
|
14327
14092
|
};
|
|
14328
|
-
|
|
14329
|
-
//#region ../admin/src/composables/formatter/default/createLongDateFormat.ts
|
|
14093
|
+
// ../admin/src/composables/formatter/default/createLongDateFormat.ts
|
|
14330
14094
|
var createLongDateFormat = (locale) => {
|
|
14331
14095
|
return new Intl.DateTimeFormat(locale, {
|
|
14332
14096
|
day: "numeric",
|
|
@@ -14334,13 +14098,11 @@ var createLongDateFormat = (locale) => {
|
|
|
14334
14098
|
year: "numeric"
|
|
14335
14099
|
});
|
|
14336
14100
|
};
|
|
14337
|
-
|
|
14338
|
-
//#region ../admin/src/composables/formatter/default/createRelativeTimeFormat.ts
|
|
14101
|
+
// ../admin/src/composables/formatter/default/createRelativeTimeFormat.ts
|
|
14339
14102
|
var createRelativeTimeFormat = (locale) => {
|
|
14340
14103
|
return new Intl.RelativeTimeFormat(locale, { numeric: "auto" });
|
|
14341
14104
|
};
|
|
14342
|
-
|
|
14343
|
-
//#region ../admin/src/composables/formatter/formatter.types.ts
|
|
14105
|
+
// ../admin/src/composables/formatter/formatter.types.ts
|
|
14344
14106
|
var Format = /* @__PURE__ */ function(Format) {
|
|
14345
14107
|
Format["Currency"] = "currency";
|
|
14346
14108
|
Format["DateLong"] = "dateLong";
|
|
@@ -14348,8 +14110,7 @@ var Format = /* @__PURE__ */ function(Format) {
|
|
|
14348
14110
|
Format["Weekday"] = "weekday";
|
|
14349
14111
|
return Format;
|
|
14350
14112
|
}({});
|
|
14351
|
-
|
|
14352
|
-
//#region ../admin/src/composables/formatter/default/defaultCurrencyFormatters.ts
|
|
14113
|
+
// ../admin/src/composables/formatter/default/defaultCurrencyFormatters.ts
|
|
14353
14114
|
var formatCurrency;
|
|
14354
14115
|
var createDefaultCurrencyFormatter = (locale) => {
|
|
14355
14116
|
formatCurrency ??= createCurrencyFormat(locale);
|
|
@@ -14358,15 +14119,13 @@ var createDefaultCurrencyFormatter = (locale) => {
|
|
|
14358
14119
|
return "";
|
|
14359
14120
|
};
|
|
14360
14121
|
};
|
|
14361
|
-
|
|
14362
|
-
//#region ../admin/src/composables/formatter/default/parseDate.ts
|
|
14122
|
+
// ../admin/src/composables/formatter/default/parseDate.ts
|
|
14363
14123
|
var parseDate = (date) => {
|
|
14364
14124
|
if (typeof date === "string") return new Date(date);
|
|
14365
14125
|
if (date instanceof Date) return date;
|
|
14366
14126
|
throw new Error(`Invalid date. Expected string or Date, got ${typeof date}`);
|
|
14367
14127
|
};
|
|
14368
|
-
|
|
14369
|
-
//#region ../admin/src/composables/formatter/default/defaultDateFormatters.ts
|
|
14128
|
+
// ../admin/src/composables/formatter/default/defaultDateFormatters.ts
|
|
14370
14129
|
var formatDateLong;
|
|
14371
14130
|
var formatDateRelative;
|
|
14372
14131
|
var createDefaultDateLongFormatter = (locale) => {
|
|
@@ -14408,20 +14167,17 @@ var createDefaultWeekdayFormatter = (locale) => {
|
|
|
14408
14167
|
}
|
|
14409
14168
|
};
|
|
14410
14169
|
};
|
|
14411
|
-
|
|
14412
|
-
//#region ../admin/src/composables/useAdminInstance.ts
|
|
14170
|
+
// ../admin/src/composables/useAdminInstance.ts
|
|
14413
14171
|
var useAdminInstance = () => {
|
|
14414
14172
|
const instance = inject(INJECT_ADMIN_INSTANCE);
|
|
14415
14173
|
if (!instance) throw new Error("No PDK instance found");
|
|
14416
14174
|
return instance;
|
|
14417
14175
|
};
|
|
14418
|
-
|
|
14419
|
-
//#region ../admin/src/composables/useAdminConfig.ts
|
|
14176
|
+
// ../admin/src/composables/useAdminConfig.ts
|
|
14420
14177
|
var useAdminConfig = () => {
|
|
14421
14178
|
return useAdminInstance().config;
|
|
14422
14179
|
};
|
|
14423
|
-
|
|
14424
|
-
//#region ../admin/src/composables/formatter/useFormatter.ts
|
|
14180
|
+
// ../admin/src/composables/formatter/useFormatter.ts
|
|
14425
14181
|
var formats;
|
|
14426
14182
|
var useFormatter = (locale, translate = (string) => string ?? "") => {
|
|
14427
14183
|
formats ??= ref({});
|
|
@@ -14445,20 +14201,17 @@ var useFormatter = (locale, translate = (string) => string ?? "") => {
|
|
|
14445
14201
|
getFormatters
|
|
14446
14202
|
};
|
|
14447
14203
|
};
|
|
14448
|
-
|
|
14449
|
-
//#region ../admin/src/composables/formatter/useLocalizedFormatter.ts
|
|
14204
|
+
// ../admin/src/composables/formatter/useLocalizedFormatter.ts
|
|
14450
14205
|
var useLocalizedFormatter = () => {
|
|
14451
14206
|
const globalContext = useGlobalContext();
|
|
14452
14207
|
const { translate } = useLanguage();
|
|
14453
14208
|
return useFormatter(globalContext.language, translate);
|
|
14454
14209
|
};
|
|
14455
|
-
|
|
14456
|
-
//#region ../admin/src/composables/orders/useOrder.ts
|
|
14210
|
+
// ../admin/src/composables/orders/useOrder.ts
|
|
14457
14211
|
var useOrder = (externalIdentifier) => {
|
|
14458
14212
|
return useStoreQuery(BackendEndpoint.FetchOrders, validateId(externalIdentifier ?? getOrderId()));
|
|
14459
14213
|
};
|
|
14460
|
-
|
|
14461
|
-
//#region ../admin/src/composables/orders/useOrderData.ts
|
|
14214
|
+
// ../admin/src/composables/orders/useOrderData.ts
|
|
14462
14215
|
var useOrderData = (externalIdentifier) => {
|
|
14463
14216
|
const orderId = validateId(externalIdentifier ?? getOrderId());
|
|
14464
14217
|
const queryStore = useQueryStore();
|
|
@@ -14472,8 +14225,7 @@ var useOrderData = (externalIdentifier) => {
|
|
|
14472
14225
|
query: fetchQuery
|
|
14473
14226
|
};
|
|
14474
14227
|
};
|
|
14475
|
-
|
|
14476
|
-
//#region ../admin/src/composables/orders/useOrdersData.ts
|
|
14228
|
+
// ../admin/src/composables/orders/useOrdersData.ts
|
|
14477
14229
|
var useOrdersData = (externalIdentifiers) => {
|
|
14478
14230
|
try {
|
|
14479
14231
|
return toArray(validateId(externalIdentifiers ?? getOrderId(), true)).map((externalIdentifier) => useOrderData(externalIdentifier));
|
|
@@ -14482,8 +14234,7 @@ var useOrdersData = (externalIdentifiers) => {
|
|
|
14482
14234
|
return [];
|
|
14483
14235
|
}
|
|
14484
14236
|
};
|
|
14485
|
-
|
|
14486
|
-
//#region ../admin/src/composables/products/useProductData.ts
|
|
14237
|
+
// ../admin/src/composables/products/useProductData.ts
|
|
14487
14238
|
var useProductData = (externalIdentifier) => {
|
|
14488
14239
|
const productId = validateId(externalIdentifier ?? useInstanceContext(AdminInstanceContextKey.ProductIdentifier));
|
|
14489
14240
|
const fetchQuery = useStoreQuery(BackendEndpoint.FetchProducts, productId);
|
|
@@ -14492,13 +14243,11 @@ var useProductData = (externalIdentifier) => {
|
|
|
14492
14243
|
query: fetchQuery
|
|
14493
14244
|
};
|
|
14494
14245
|
};
|
|
14495
|
-
|
|
14496
|
-
//#region ../admin/src/composables/shipments/useShipment.ts
|
|
14246
|
+
// ../admin/src/composables/shipments/useShipment.ts
|
|
14497
14247
|
var useShipment = (id) => {
|
|
14498
14248
|
return useStoreQuery(BackendEndpoint.FetchShipments, id.toString());
|
|
14499
14249
|
};
|
|
14500
|
-
|
|
14501
|
-
//#region ../admin/src/composables/shipments/useShipmentData.ts
|
|
14250
|
+
// ../admin/src/composables/shipments/useShipmentData.ts
|
|
14502
14251
|
var useShipmentData = (id) => {
|
|
14503
14252
|
const shipmentId = unref(id);
|
|
14504
14253
|
const queryStore = useQueryStore();
|
|
@@ -14520,8 +14269,7 @@ var useShipmentData = (id) => {
|
|
|
14520
14269
|
shipment
|
|
14521
14270
|
};
|
|
14522
14271
|
};
|
|
14523
|
-
|
|
14524
|
-
//#region ../admin/src/composables/useDigitalStampRanges.ts
|
|
14272
|
+
// ../admin/src/composables/useDigitalStampRanges.ts
|
|
14525
14273
|
var useDigitalStampRanges = (weight, order) => {
|
|
14526
14274
|
const fallbackOrder = order ? null : useOrderData().order;
|
|
14527
14275
|
const allRanges = computed(() => {
|
|
@@ -14542,8 +14290,7 @@ var useDigitalStampRanges = (weight, order) => {
|
|
|
14542
14290
|
})
|
|
14543
14291
|
};
|
|
14544
14292
|
};
|
|
14545
|
-
|
|
14546
|
-
//#region ../admin/src/services/createNotification.ts
|
|
14293
|
+
// ../admin/src/services/createNotification.ts
|
|
14547
14294
|
var PREFIX = "notification_";
|
|
14548
14295
|
var createNotification = (variant, options) => {
|
|
14549
14296
|
const language = useLanguage();
|
|
@@ -14565,8 +14312,7 @@ var createNotification = (variant, options) => {
|
|
|
14565
14312
|
content
|
|
14566
14313
|
};
|
|
14567
14314
|
};
|
|
14568
|
-
|
|
14569
|
-
//#region ../admin/src/services/actions/createActionContext.ts
|
|
14315
|
+
// ../admin/src/services/actions/createActionContext.ts
|
|
14570
14316
|
var createActionContext = (action, parameters, existingInstance) => {
|
|
14571
14317
|
const identifier = getActionIdentifier(action);
|
|
14572
14318
|
const logger = createLogger(identifier);
|
|
@@ -14586,8 +14332,7 @@ var createActionContext = (action, parameters, existingInstance) => {
|
|
|
14586
14332
|
}), {})
|
|
14587
14333
|
};
|
|
14588
14334
|
};
|
|
14589
|
-
|
|
14590
|
-
//#region ../admin/src/services/actions/createAction.ts
|
|
14335
|
+
// ../admin/src/services/actions/createAction.ts
|
|
14591
14336
|
var createAction = (action) => {
|
|
14592
14337
|
const context = createActionContext(action);
|
|
14593
14338
|
return {
|
|
@@ -14605,8 +14350,7 @@ var createAction = (action) => {
|
|
|
14605
14350
|
}
|
|
14606
14351
|
};
|
|
14607
14352
|
};
|
|
14608
|
-
|
|
14609
|
-
//#region ../admin/src/services/actions/downloadFile.ts
|
|
14353
|
+
// ../admin/src/services/actions/downloadFile.ts
|
|
14610
14354
|
async function downloadFile(url, filename) {
|
|
14611
14355
|
try {
|
|
14612
14356
|
downloadFileFromUrl(url, filename);
|
|
@@ -14617,8 +14361,7 @@ async function downloadFile(url, filename) {
|
|
|
14617
14361
|
return downloadFile(url, filename);
|
|
14618
14362
|
}
|
|
14619
14363
|
}
|
|
14620
|
-
|
|
14621
|
-
//#region ../admin/src/services/addErrorToNotifications.ts
|
|
14364
|
+
// ../admin/src/services/addErrorToNotifications.ts
|
|
14622
14365
|
var addErrorToNotifications = (error, category, timeout = false) => {
|
|
14623
14366
|
const store = useNotificationStore();
|
|
14624
14367
|
const options = {
|
|
@@ -14634,27 +14377,23 @@ var addErrorToNotifications = (error, category, timeout = false) => {
|
|
|
14634
14377
|
if (!notification) return;
|
|
14635
14378
|
store.add(notification);
|
|
14636
14379
|
};
|
|
14637
|
-
|
|
14638
|
-
//#region ../admin/src/services/instantiateAction.ts
|
|
14380
|
+
// ../admin/src/services/instantiateAction.ts
|
|
14639
14381
|
var instantiateAction = (action, parameters) => ({
|
|
14640
14382
|
...action,
|
|
14641
14383
|
id: getActionIdentifier(action),
|
|
14642
14384
|
parameters
|
|
14643
14385
|
});
|
|
14644
|
-
|
|
14645
|
-
//#region ../admin/src/services/instantiateActions.ts
|
|
14386
|
+
// ../admin/src/services/instantiateActions.ts
|
|
14646
14387
|
var instantiateActions = (actions, parameters) => {
|
|
14647
14388
|
return toArray(actions).map((action) => instantiateAction(action, parameters));
|
|
14648
14389
|
};
|
|
14649
|
-
|
|
14650
|
-
//#region ../admin/src/services/mutations/mutationMode.ts
|
|
14390
|
+
// ../admin/src/services/mutations/mutationMode.ts
|
|
14651
14391
|
var MutationMode = /* @__PURE__ */ function(MutationMode) {
|
|
14652
14392
|
MutationMode["Modal"] = "modal";
|
|
14653
14393
|
MutationMode["Default"] = "default";
|
|
14654
14394
|
return MutationMode;
|
|
14655
14395
|
}({});
|
|
14656
|
-
|
|
14657
|
-
//#region ../admin/src/services/mutations/getCallbackForMutationMode.ts
|
|
14396
|
+
// ../admin/src/services/mutations/getCallbackForMutationMode.ts
|
|
14658
14397
|
var getCallbackForMutationMode = (mode) => {
|
|
14659
14398
|
switch (mode) {
|
|
14660
14399
|
case MutationMode.Modal: return () => {
|
|
@@ -14664,8 +14403,7 @@ var getCallbackForMutationMode = (mode) => {
|
|
|
14664
14403
|
default: return;
|
|
14665
14404
|
}
|
|
14666
14405
|
};
|
|
14667
|
-
|
|
14668
|
-
//#region ../admin/src/services/mutations/modalMutationToken.ts
|
|
14406
|
+
// ../admin/src/services/mutations/modalMutationToken.ts
|
|
14669
14407
|
var keepModalToken = (onMutate) => (variables) => {
|
|
14670
14408
|
onMutate?.(variables);
|
|
14671
14409
|
return { modalToken: useModalStore().token };
|
|
@@ -14674,8 +14412,7 @@ var isSameModal = (context) => {
|
|
|
14674
14412
|
const modalToken = context?.modalToken;
|
|
14675
14413
|
return Boolean(modalToken) && modalToken === useModalStore().token;
|
|
14676
14414
|
};
|
|
14677
|
-
|
|
14678
|
-
//#region ../admin/src/services/mutations/getModalMutationOptions.ts
|
|
14415
|
+
// ../admin/src/services/mutations/getModalMutationOptions.ts
|
|
14679
14416
|
var getModalMutationOptions = (defaultOptions = {}) => ({
|
|
14680
14417
|
onMutate: keepModalToken(defaultOptions.onMutate),
|
|
14681
14418
|
onSuccess(data, variables, context) {
|
|
@@ -14688,14 +14425,12 @@ var getModalMutationOptions = (defaultOptions = {}) => ({
|
|
|
14688
14425
|
if (isSameModal(context)) addErrorToNotifications(error, NotificationCategory.Modal);
|
|
14689
14426
|
}
|
|
14690
14427
|
});
|
|
14691
|
-
|
|
14692
|
-
//#region ../admin/src/services/print/createPdfObjectUrl.ts
|
|
14428
|
+
// ../admin/src/services/print/createPdfObjectUrl.ts
|
|
14693
14429
|
var createPdfObjectUrl = (pdf) => {
|
|
14694
14430
|
const bytes = Uint8Array.from(atob(pdf), (char) => char.charCodeAt(0));
|
|
14695
14431
|
return URL.createObjectURL(new Blob([bytes], { type: "application/pdf" }));
|
|
14696
14432
|
};
|
|
14697
|
-
|
|
14698
|
-
//#region ../admin/src/services/print/labelsNotification.ts
|
|
14433
|
+
// ../admin/src/services/print/labelsNotification.ts
|
|
14699
14434
|
var LABELS_NOTIFICATION_ID = "print-labels";
|
|
14700
14435
|
var replace = (notification) => {
|
|
14701
14436
|
const store = useNotificationStore();
|
|
@@ -14739,14 +14474,12 @@ var showLabelsFailed = () => {
|
|
|
14739
14474
|
var hideLabelsNotification = () => {
|
|
14740
14475
|
useNotificationStore().remove(LABELS_NOTIFICATION_ID);
|
|
14741
14476
|
};
|
|
14742
|
-
|
|
14743
|
-
//#region ../admin/src/services/print/openPdfInNewWindow.ts
|
|
14477
|
+
// ../admin/src/services/print/openPdfInNewWindow.ts
|
|
14744
14478
|
var openPdfInNewWindow = async (pdf) => {
|
|
14745
14479
|
const blob = await (await fetch(`data:application/pdf;base64,${pdf}`)).blob();
|
|
14746
14480
|
openUrlInNewTab(URL.createObjectURL(blob));
|
|
14747
14481
|
};
|
|
14748
|
-
|
|
14749
|
-
//#region ../admin/src/services/print/pollLabelPdf.ts
|
|
14482
|
+
// ../admin/src/services/print/pollLabelPdf.ts
|
|
14750
14483
|
var DEFAULT_INTERVAL = 3e3;
|
|
14751
14484
|
var DEFAULT_TIMEOUT = 6e5;
|
|
14752
14485
|
var pollLabelPdf = async (labelId, { interval = DEFAULT_INTERVAL, timeout = DEFAULT_TIMEOUT } = {}) => {
|
|
@@ -14762,13 +14495,11 @@ var pollLabelPdf = async (labelId, { interval = DEFAULT_INTERVAL, timeout = DEFA
|
|
|
14762
14495
|
});
|
|
14763
14496
|
}
|
|
14764
14497
|
};
|
|
14765
|
-
|
|
14766
|
-
//#region ../admin/src/actions/composables/mutations/usePdkMutation.ts
|
|
14498
|
+
// ../admin/src/actions/composables/mutations/usePdkMutation.ts
|
|
14767
14499
|
var usePdkMutation = (endpoint, mutationFn, options) => {
|
|
14768
14500
|
return useMutation([endpoint], mutationFn, options);
|
|
14769
14501
|
};
|
|
14770
|
-
|
|
14771
|
-
//#region ../admin/src/actions/composables/mutations/orders/useExportOrdersMutation.ts
|
|
14502
|
+
// ../admin/src/actions/composables/mutations/orders/useExportOrdersMutation.ts
|
|
14772
14503
|
var useExportOrdersMutation = (orderIds, mode = MutationMode.Default) => {
|
|
14773
14504
|
const queryClient = useQueryClient();
|
|
14774
14505
|
const defaultMutationOptions = queryClient.defaultMutationOptions();
|
|
@@ -14793,8 +14524,7 @@ var useExportOrdersMutation = (orderIds, mode = MutationMode.Default) => {
|
|
|
14793
14524
|
}
|
|
14794
14525
|
});
|
|
14795
14526
|
};
|
|
14796
|
-
|
|
14797
|
-
//#region ../admin/src/actions/composables/mutations/orders/usePrintOrdersMutation.ts
|
|
14527
|
+
// ../admin/src/actions/composables/mutations/orders/usePrintOrdersMutation.ts
|
|
14798
14528
|
var usePrintOrdersMutation = (orderIds) => {
|
|
14799
14529
|
return usePdkMutation(BackendEndpoint.PrintOrders, (input) => {
|
|
14800
14530
|
return usePdkAdminApi().printOrders({ parameters: {
|
|
@@ -14805,8 +14535,7 @@ var usePrintOrdersMutation = (orderIds) => {
|
|
|
14805
14535
|
} });
|
|
14806
14536
|
});
|
|
14807
14537
|
};
|
|
14808
|
-
|
|
14809
|
-
//#region ../admin/src/actions/composables/mutations/orders/useUpdateOrdersMutation.ts
|
|
14538
|
+
// ../admin/src/actions/composables/mutations/orders/useUpdateOrdersMutation.ts
|
|
14810
14539
|
var useUpdateOrdersMutation = (orderIds) => {
|
|
14811
14540
|
const queryClient = useQueryClient();
|
|
14812
14541
|
const pdk = usePdkAdminApi();
|
|
@@ -14825,8 +14554,7 @@ var useUpdateOrdersMutation = (orderIds) => {
|
|
|
14825
14554
|
}
|
|
14826
14555
|
});
|
|
14827
14556
|
};
|
|
14828
|
-
|
|
14829
|
-
//#region ../admin/src/actions/composables/mutations/settings/useUpdateProductSettingsMutation.ts
|
|
14557
|
+
// ../admin/src/actions/composables/mutations/settings/useUpdateProductSettingsMutation.ts
|
|
14830
14558
|
var useUpdateProductSettingsMutation = () => {
|
|
14831
14559
|
return usePdkMutation(BackendEndpoint.UpdateProductSettings, ({ form, productIds }) => {
|
|
14832
14560
|
const pdk = usePdkAdminApi();
|
|
@@ -14837,8 +14565,7 @@ var useUpdateProductSettingsMutation = () => {
|
|
|
14837
14565
|
return pdk.updateProductSettings(options);
|
|
14838
14566
|
});
|
|
14839
14567
|
};
|
|
14840
|
-
|
|
14841
|
-
//#region ../admin/src/actions/composables/queries/account/useFetchContextQuery.ts
|
|
14568
|
+
// ../admin/src/actions/composables/queries/account/useFetchContextQuery.ts
|
|
14842
14569
|
var useFetchContextQuery = (contextKey) => {
|
|
14843
14570
|
const queryClient = useQueryClient();
|
|
14844
14571
|
const adminInstance = useAdminInstance();
|
|
@@ -14855,12 +14582,10 @@ var useFetchContextQuery = (contextKey) => {
|
|
|
14855
14582
|
}
|
|
14856
14583
|
});
|
|
14857
14584
|
};
|
|
14858
|
-
|
|
14859
|
-
//#region ../admin/src/actions/composables/queries/queryKeys.ts
|
|
14585
|
+
// ../admin/src/actions/composables/queries/queryKeys.ts
|
|
14860
14586
|
var QUERY_KEY_ORDER = "order";
|
|
14861
14587
|
var QUERY_KEY_SHIPMENT = "shipment";
|
|
14862
|
-
|
|
14863
|
-
//#region ../admin/src/actions/composables/queries/orders/useFetchOrdersQuery.ts
|
|
14588
|
+
// ../admin/src/actions/composables/queries/orders/useFetchOrdersQuery.ts
|
|
14864
14589
|
var useFetchOrdersQuery = (externalIdentifier) => {
|
|
14865
14590
|
const queryKey = [QUERY_KEY_ORDER, ...externalIdentifier ? [{ id: externalIdentifier }] : []];
|
|
14866
14591
|
const queryClient = useQueryClient();
|
|
@@ -14875,15 +14600,13 @@ var useFetchOrdersQuery = (externalIdentifier) => {
|
|
|
14875
14600
|
}
|
|
14876
14601
|
});
|
|
14877
14602
|
};
|
|
14878
|
-
|
|
14879
|
-
//#region ../admin/src/actions/composables/queries/products/useFetchProductsQuery.ts
|
|
14603
|
+
// ../admin/src/actions/composables/queries/products/useFetchProductsQuery.ts
|
|
14880
14604
|
var useFetchProductsQuery = (externalIdentifier) => {
|
|
14881
14605
|
return useQuery([BackendEndpoint.FetchProducts, ...externalIdentifier ? [{ id: externalIdentifier }] : []], () => {
|
|
14882
14606
|
throw new Error("Not implemented");
|
|
14883
14607
|
}, useQueryClient().defaultQueryOptions());
|
|
14884
14608
|
};
|
|
14885
|
-
|
|
14886
|
-
//#region ../admin/src/actions/composables/queries/shipments/useFetchShipmentsQuery.ts
|
|
14609
|
+
// ../admin/src/actions/composables/queries/shipments/useFetchShipmentsQuery.ts
|
|
14887
14610
|
var useFetchShipmentsQuery = (orderIds, shipmentIds) => {
|
|
14888
14611
|
const queryKey = [QUERY_KEY_SHIPMENT, ...shipmentIds ? [{ id: shipmentIds }] : []];
|
|
14889
14612
|
const queryClient = useQueryClient();
|
|
@@ -14898,8 +14621,7 @@ var useFetchShipmentsQuery = (orderIds, shipmentIds) => {
|
|
|
14898
14621
|
}
|
|
14899
14622
|
});
|
|
14900
14623
|
};
|
|
14901
|
-
|
|
14902
|
-
//#region ../admin/src/actions/composables/queries/webhooks/useFetchWebhooksQuery.ts
|
|
14624
|
+
// ../admin/src/actions/composables/queries/webhooks/useFetchWebhooksQuery.ts
|
|
14903
14625
|
var useFetchWebhooksQuery = () => {
|
|
14904
14626
|
const queryKey = [BackendEndpoint.FetchWebhooks];
|
|
14905
14627
|
const queryClient = useQueryClient();
|
|
@@ -14912,8 +14634,7 @@ var useFetchWebhooksQuery = () => {
|
|
|
14912
14634
|
}
|
|
14913
14635
|
});
|
|
14914
14636
|
};
|
|
14915
|
-
|
|
14916
|
-
//#region ../admin/src/actions/composables/mutations/shipments/useDeleteShipmentsMutation.ts
|
|
14637
|
+
// ../admin/src/actions/composables/mutations/shipments/useDeleteShipmentsMutation.ts
|
|
14917
14638
|
var useDeleteShipmentsMutation = (orderIds, shipmentIds) => {
|
|
14918
14639
|
const queryClient = useQueryClient();
|
|
14919
14640
|
const pdk = usePdkAdminApi();
|
|
@@ -14953,8 +14674,7 @@ var useDeleteShipmentsMutation = (orderIds, shipmentIds) => {
|
|
|
14953
14674
|
}
|
|
14954
14675
|
});
|
|
14955
14676
|
};
|
|
14956
|
-
|
|
14957
|
-
//#region ../admin/src/actions/composables/mutations/shipments/useExportReturnMutation.ts
|
|
14677
|
+
// ../admin/src/actions/composables/mutations/shipments/useExportReturnMutation.ts
|
|
14958
14678
|
var useExportReturnMutation = (orderIds, shipmentIds) => {
|
|
14959
14679
|
const queryClient = useQueryClient();
|
|
14960
14680
|
return useMutation([QUERY_KEY_SHIPMENT, {
|
|
@@ -14971,8 +14691,7 @@ var useExportReturnMutation = (orderIds, shipmentIds) => {
|
|
|
14971
14691
|
});
|
|
14972
14692
|
} });
|
|
14973
14693
|
};
|
|
14974
|
-
|
|
14975
|
-
//#region ../admin/src/actions/composables/mutations/shipments/usePrintShipmentsMutation.ts
|
|
14694
|
+
// ../admin/src/actions/composables/mutations/shipments/usePrintShipmentsMutation.ts
|
|
14976
14695
|
var usePrintShipmentsMutation = (orderIds, shipmentIds) => {
|
|
14977
14696
|
return useMutation([QUERY_KEY_SHIPMENT, {
|
|
14978
14697
|
orderIds,
|
|
@@ -14989,8 +14708,7 @@ var usePrintShipmentsMutation = (orderIds, shipmentIds) => {
|
|
|
14989
14708
|
} });
|
|
14990
14709
|
});
|
|
14991
14710
|
};
|
|
14992
|
-
|
|
14993
|
-
//#region ../admin/src/actions/composables/mutations/shipments/useUpdateShipmentsMutation.ts
|
|
14711
|
+
// ../admin/src/actions/composables/mutations/shipments/useUpdateShipmentsMutation.ts
|
|
14994
14712
|
var useUpdateShipmentsMutation = (orderIds, shipmentIds) => {
|
|
14995
14713
|
const queryClient = useQueryClient();
|
|
14996
14714
|
return useMutation([QUERY_KEY_SHIPMENT, {
|
|
@@ -15008,8 +14726,7 @@ var useUpdateShipmentsMutation = (orderIds, shipmentIds) => {
|
|
|
15008
14726
|
}
|
|
15009
14727
|
});
|
|
15010
14728
|
};
|
|
15011
|
-
|
|
15012
|
-
//#region ../admin/src/actions/composables/mutations/webhooks/useCreateWebhooksMutation.ts
|
|
14729
|
+
// ../admin/src/actions/composables/mutations/webhooks/useCreateWebhooksMutation.ts
|
|
15013
14730
|
var useCreateWebhooksMutation = () => {
|
|
15014
14731
|
const queryClient = useQueryClient();
|
|
15015
14732
|
return usePdkMutation(BackendEndpoint.CreateWebhooks, (input) => usePdkAdminApi().createWebhooks({ parameters: input }), {
|
|
@@ -15019,8 +14736,7 @@ var useCreateWebhooksMutation = () => {
|
|
|
15019
14736
|
}
|
|
15020
14737
|
});
|
|
15021
14738
|
};
|
|
15022
|
-
|
|
15023
|
-
//#region ../admin/src/actions/composables/mutations/webhooks/useDeleteWebhooksMutation.ts
|
|
14739
|
+
// ../admin/src/actions/composables/mutations/webhooks/useDeleteWebhooksMutation.ts
|
|
15024
14740
|
var useDeleteWebhooksMutation = () => {
|
|
15025
14741
|
const queryClient = useQueryClient();
|
|
15026
14742
|
return usePdkMutation(BackendEndpoint.DeleteWebhooks, (input) => usePdkAdminApi().deleteWebhooks({ parameters: input }), {
|
|
@@ -15030,21 +14746,17 @@ var useDeleteWebhooksMutation = () => {
|
|
|
15030
14746
|
}
|
|
15031
14747
|
});
|
|
15032
14748
|
};
|
|
15033
|
-
|
|
15034
|
-
//#region ../admin/src/actions/defineAction.ts
|
|
14749
|
+
// ../admin/src/actions/defineAction.ts
|
|
15035
14750
|
var defineAction = (input) => input;
|
|
15036
|
-
|
|
15037
|
-
//#region ../admin/src/actions/executors/resolveQuerySuffix.ts
|
|
14751
|
+
// ../admin/src/actions/executors/resolveQuerySuffix.ts
|
|
15038
14752
|
var resolveQuerySuffix = (suffix, context) => {
|
|
15039
14753
|
return typeof suffix === "function" ? suffix(context) : suffix;
|
|
15040
14754
|
};
|
|
15041
|
-
|
|
15042
|
-
//#region ../admin/src/actions/executors/doMutate.ts
|
|
14755
|
+
// ../admin/src/actions/executors/doMutate.ts
|
|
15043
14756
|
var doMutate = (endpoint, suffix, context) => {
|
|
15044
14757
|
return useStoreQuery(endpoint, resolveQuerySuffix(suffix, context)).mutateAsync(context.parameters);
|
|
15045
14758
|
};
|
|
15046
|
-
|
|
15047
|
-
//#region ../admin/src/actions/executors/createHandlerWithParameters.ts
|
|
14759
|
+
// ../admin/src/actions/executors/createHandlerWithParameters.ts
|
|
15048
14760
|
var createHandlerWithParameters = async (args, endpoint, context, allowBulk) => {
|
|
15049
14761
|
const ids = toArray(args);
|
|
15050
14762
|
if (!ids.length) throw new Error("No arguments provided");
|
|
@@ -15052,20 +14764,17 @@ var createHandlerWithParameters = async (args, endpoint, context, allowBulk) =>
|
|
|
15052
14764
|
if (ids.length === 1) return doMutate(endpoint, ids[0], context);
|
|
15053
14765
|
return Promise.all(ids.map((id) => doMutate(endpoint, id, context)));
|
|
15054
14766
|
};
|
|
15055
|
-
|
|
15056
|
-
//#region ../admin/src/actions/executors/createMutationHandler.ts
|
|
14767
|
+
// ../admin/src/actions/executors/createMutationHandler.ts
|
|
15057
14768
|
var createMutationHandler = (endpoint, suffix) => {
|
|
15058
14769
|
return (context) => doMutate(endpoint, suffix, context);
|
|
15059
14770
|
};
|
|
15060
|
-
|
|
15061
|
-
//#region ../admin/src/actions/executors/createOrdersMutationHandler.ts
|
|
14771
|
+
// ../admin/src/actions/executors/createOrdersMutationHandler.ts
|
|
15062
14772
|
var createOrdersMutationHandler = (endpoint, allowBulk = false) => {
|
|
15063
14773
|
return (context) => {
|
|
15064
14774
|
return createHandlerWithParameters(context.parameters?.orderIds, endpoint, context, allowBulk);
|
|
15065
14775
|
};
|
|
15066
14776
|
};
|
|
15067
|
-
|
|
15068
|
-
//#region ../admin/src/actions/executors/createQueryHandler.ts
|
|
14777
|
+
// ../admin/src/actions/executors/createQueryHandler.ts
|
|
15069
14778
|
var createQueryHandler = (endpoint, suffix) => {
|
|
15070
14779
|
return async (context) => {
|
|
15071
14780
|
const query = useStoreQuery(endpoint, resolveQuerySuffix(suffix, context));
|
|
@@ -15073,18 +14782,15 @@ var createQueryHandler = (endpoint, suffix) => {
|
|
|
15073
14782
|
return query.data;
|
|
15074
14783
|
};
|
|
15075
14784
|
};
|
|
15076
|
-
|
|
15077
|
-
//#region ../admin/src/actions/executors/createShipmentsMutationHandler.ts
|
|
14785
|
+
// ../admin/src/actions/executors/createShipmentsMutationHandler.ts
|
|
15078
14786
|
var createShipmentsMutationHandler = (endpoint, allowBulk = false) => {
|
|
15079
14787
|
return (context) => {
|
|
15080
14788
|
return createHandlerWithParameters(context.parameters?.shipmentIds, endpoint, context, allowBulk);
|
|
15081
14789
|
};
|
|
15082
14790
|
};
|
|
15083
|
-
|
|
15084
|
-
//#region ../admin/src/actions/stopActionHandler.ts
|
|
14791
|
+
// ../admin/src/actions/stopActionHandler.ts
|
|
15085
14792
|
var StopActionHandler = class extends Error {};
|
|
15086
|
-
|
|
15087
|
-
//#region ../admin/src/actions/executors/executeHandler.ts
|
|
14793
|
+
// ../admin/src/actions/executors/executeHandler.ts
|
|
15088
14794
|
var HANDLER = "handler";
|
|
15089
14795
|
async function executeHandler(context) {
|
|
15090
14796
|
const { action, notifications, instance } = context;
|
|
@@ -15107,8 +14813,7 @@ async function executeHandler(context) {
|
|
|
15107
14813
|
instance.logger.error(HANDLER, error);
|
|
15108
14814
|
}
|
|
15109
14815
|
}
|
|
15110
|
-
|
|
15111
|
-
//#region ../admin/src/actions/executors/executeBeforeHandle.ts
|
|
14816
|
+
// ../admin/src/actions/executors/executeBeforeHandle.ts
|
|
15112
14817
|
var BEFORE_HANDLE = "beforeHandle";
|
|
15113
14818
|
async function executeBeforeHandle(context) {
|
|
15114
14819
|
const { action, instance, parameters } = context;
|
|
@@ -15125,8 +14830,7 @@ async function executeBeforeHandle(context) {
|
|
|
15125
14830
|
}
|
|
15126
14831
|
return context.parameters;
|
|
15127
14832
|
}
|
|
15128
|
-
|
|
15129
|
-
//#region ../admin/src/actions/executors/executeAfterHandle.ts
|
|
14833
|
+
// ../admin/src/actions/executors/executeAfterHandle.ts
|
|
15130
14834
|
var AFTER_HANDLE = "afterHandle";
|
|
15131
14835
|
async function executeAfterHandle(context, response) {
|
|
15132
14836
|
const { action, instance } = context;
|
|
@@ -15144,8 +14848,7 @@ async function executeAfterHandle(context, response) {
|
|
|
15144
14848
|
instance.logger.error(AFTER_HANDLE, error);
|
|
15145
14849
|
}
|
|
15146
14850
|
}
|
|
15147
|
-
|
|
15148
|
-
//#region ../admin/src/actions/executors/executeAction.ts
|
|
14851
|
+
// ../admin/src/actions/executors/executeAction.ts
|
|
15149
14852
|
var executeAction = async (context) => {
|
|
15150
14853
|
const { instance } = context;
|
|
15151
14854
|
const startTime = Date.now();
|
|
@@ -15162,8 +14865,7 @@ var executeAction = async (context) => {
|
|
|
15162
14865
|
instance.logger.debug("Took", Date.now() - startTime, "ms");
|
|
15163
14866
|
return resolvedResponse;
|
|
15164
14867
|
};
|
|
15165
|
-
|
|
15166
|
-
//#region ../admin/src/actions/executors/executeNextAction.ts
|
|
14868
|
+
// ../admin/src/actions/executors/executeNextAction.ts
|
|
15167
14869
|
var executeNextAction = async (context, nextAction, parameters) => {
|
|
15168
14870
|
const { instance } = context;
|
|
15169
14871
|
const nextActionIdentifier = getActionIdentifier(nextAction);
|
|
@@ -15176,16 +14878,14 @@ var executeNextAction = async (context, nextAction, parameters) => {
|
|
|
15176
14878
|
})
|
|
15177
14879
|
});
|
|
15178
14880
|
};
|
|
15179
|
-
|
|
15180
|
-
//#region ../admin/src/actions/executors/resolveOrderParameters.ts
|
|
14881
|
+
// ../admin/src/actions/executors/resolveOrderParameters.ts
|
|
15181
14882
|
var resolveOrderParameters = ({ parameters, instance }) => {
|
|
15182
14883
|
const formBuilder = ne();
|
|
15183
14884
|
parameters.orderIds ??= getOrderId(instance);
|
|
15184
14885
|
parameters.form ??= toValue$1(formBuilder.forms)?.[createShipmentFormName(parameters.orderIds)];
|
|
15185
14886
|
return Promise.resolve(parameters);
|
|
15186
14887
|
};
|
|
15187
|
-
|
|
15188
|
-
//#region ../admin/src/actions/definitions/modal.ts
|
|
14888
|
+
// ../admin/src/actions/definitions/modal.ts
|
|
15189
14889
|
var modalCloseAction = defineAction({
|
|
15190
14890
|
id: "modal_close",
|
|
15191
14891
|
label: "action_close",
|
|
@@ -15203,8 +14903,7 @@ var modalSubmitFormAction = defineAction({
|
|
|
15203
14903
|
await executeNextAction(context, modalCloseAction);
|
|
15204
14904
|
}
|
|
15205
14905
|
});
|
|
15206
|
-
|
|
15207
|
-
//#region ../admin/src/actions/print/openOrPrintPdf.ts
|
|
14906
|
+
// ../admin/src/actions/print/openOrPrintPdf.ts
|
|
15208
14907
|
var openPreparedPdf = async (labelId, parameters) => {
|
|
15209
14908
|
let url;
|
|
15210
14909
|
try {
|
|
@@ -15228,8 +14927,7 @@ var openOrPrintPdf = async ({ response, parameters }) => {
|
|
|
15228
14927
|
if (isOfType$1(response, "data")) return openPdfInNewWindow(response.data);
|
|
15229
14928
|
await downloadFile(response.url, generateLabelFilename(parameters));
|
|
15230
14929
|
};
|
|
15231
|
-
|
|
15232
|
-
//#region ../admin/src/actions/print/waitForLabelPrompt.ts
|
|
14930
|
+
// ../admin/src/actions/print/waitForLabelPrompt.ts
|
|
15233
14931
|
var waitForLabelPrompt = ({ parameters }) => {
|
|
15234
14932
|
const formBuilder = ne();
|
|
15235
14933
|
const modalStore = useModalStore();
|
|
@@ -15256,8 +14954,7 @@ var waitForLabelPrompt = ({ parameters }) => {
|
|
|
15256
14954
|
});
|
|
15257
14955
|
});
|
|
15258
14956
|
};
|
|
15259
|
-
|
|
15260
|
-
//#region ../admin/src/actions/print/resolvePrintParameters.ts
|
|
14957
|
+
// ../admin/src/actions/print/resolvePrintParameters.ts
|
|
15261
14958
|
var resolveParameters = (context) => {
|
|
15262
14959
|
const pluginSettings = usePluginSettings();
|
|
15263
14960
|
if (!pluginSettings.label.prompt) {
|
|
@@ -15276,8 +14973,7 @@ var resolvePrintParameters = async (context) => {
|
|
|
15276
14973
|
showLabelsLoading();
|
|
15277
14974
|
return parameters;
|
|
15278
14975
|
};
|
|
15279
|
-
|
|
15280
|
-
//#region ../admin/src/actions/definitions/shipments.ts
|
|
14976
|
+
// ../admin/src/actions/definitions/shipments.ts
|
|
15281
14977
|
var shipmentsExportReturnAction = defineAction({
|
|
15282
14978
|
name: AdminAction.ShipmentsExportReturn,
|
|
15283
14979
|
icon: AdminIcon.Return,
|
|
@@ -15318,8 +15014,7 @@ var shipmentActions = [
|
|
|
15318
15014
|
shipmentsExportReturnAction,
|
|
15319
15015
|
shipmentsDeleteAction
|
|
15320
15016
|
];
|
|
15321
|
-
|
|
15322
|
-
//#region ../admin/src/actions/definitions/orders.ts
|
|
15017
|
+
// ../admin/src/actions/definitions/orders.ts
|
|
15323
15018
|
var ordersEditAction = defineAction({
|
|
15324
15019
|
name: AdminAction.OrdersEdit,
|
|
15325
15020
|
icon: AdminIcon.Edit,
|
|
@@ -15397,8 +15092,7 @@ var orderViewInBackofficeAction = defineAction({
|
|
|
15397
15092
|
window.open(`${baseUrl}/orders`, "_blank");
|
|
15398
15093
|
}
|
|
15399
15094
|
});
|
|
15400
|
-
|
|
15401
|
-
//#region ../admin/src/actions/definitions/webhooks.ts
|
|
15095
|
+
// ../admin/src/actions/definitions/webhooks.ts
|
|
15402
15096
|
var webhooksFetchAction = defineAction({
|
|
15403
15097
|
name: AdminAction.WebhooksFetch,
|
|
15404
15098
|
label: "action_fetch_webhooks",
|
|
@@ -15417,8 +15111,7 @@ var webhooksDeleteAction = defineAction({
|
|
|
15417
15111
|
handler: createMutationHandler(BackendEndpoint.DeleteWebhooks),
|
|
15418
15112
|
variant: Variant.Error
|
|
15419
15113
|
});
|
|
15420
|
-
|
|
15421
|
-
//#region ../admin/src/actions/orderModeActions.ts
|
|
15114
|
+
// ../admin/src/actions/orderModeActions.ts
|
|
15422
15115
|
var STORE_MODE_ACTIONS = {
|
|
15423
15116
|
[OrderMode.OrderV1]: [orderExportAction, orderViewInBackofficeAction],
|
|
15424
15117
|
[OrderMode.Shipments]: [
|
|
@@ -15463,8 +15156,7 @@ var LIST_ITEM_MODE_ACTIONS = {
|
|
|
15463
15156
|
[OrderMode.OrderV2]: [ordersEditAction, orderExportToShipmentsAction],
|
|
15464
15157
|
[OrderMode.Shipments]: []
|
|
15465
15158
|
};
|
|
15466
|
-
|
|
15467
|
-
//#region ../admin/src/views/ProductSettings.vue?vue&type=script&setup=true&lang.ts
|
|
15159
|
+
// ../admin/src/views/ProductSettings.vue?vue&type=script&setup=true&lang.ts
|
|
15468
15160
|
var ProductSettings_vue_vue_type_script_setup_true_lang_default = /*#__PURE__*/ defineComponent({
|
|
15469
15161
|
__name: "ProductSettings",
|
|
15470
15162
|
props: {
|
|
@@ -15507,12 +15199,10 @@ var ProductSettings_vue_vue_type_script_setup_true_lang_default = /*#__PURE__*/
|
|
|
15507
15199
|
};
|
|
15508
15200
|
}
|
|
15509
15201
|
});
|
|
15510
|
-
|
|
15511
|
-
//#region ../admin/src/views/ProductSettings.vue
|
|
15202
|
+
// ../admin/src/views/ProductSettings.vue
|
|
15512
15203
|
var ProductSettings_exports = /* @__PURE__ */ __exportAll({ default: () => ProductSettings_default });
|
|
15513
15204
|
var ProductSettings_default = ProductSettings_vue_vue_type_script_setup_true_lang_default;
|
|
15514
|
-
|
|
15515
|
-
//#region ../admin/src/components/OrderListItem/ShipmentLabel.vue
|
|
15205
|
+
// ../admin/src/components/OrderListItem/ShipmentLabel.vue
|
|
15516
15206
|
var ShipmentLabel_default = /* @__PURE__ */ defineComponent({
|
|
15517
15207
|
__name: "ShipmentLabel",
|
|
15518
15208
|
props: { shipmentId: {} },
|
|
@@ -15548,5 +15238,4 @@ var ShipmentLabel_default = /* @__PURE__ */ defineComponent({
|
|
|
15548
15238
|
};
|
|
15549
15239
|
}
|
|
15550
15240
|
});
|
|
15551
|
-
//#endregion
|
|
15552
15241
|
export { useFetchProductsQuery as $, isDef as $n, unref as $r, FORM_KEY_PRODUCT_SETTINGS as $t, resolveOrderParameters as A, createPinia as An, defineAsyncComponent as Ar, downloadFileFromUrl as At, createMutationHandler as B, OrderMode as Bn, renderSlot as Br, ShipmentOptionsForm_default as Bt, shipmentsPrintAction as C, timeUntilStale as Ci, baseGetTag as Cn, computed as Cr, useLoading as Ct, openOrPrintPdf as D, createLogger as Dn, createElementBlock as Dr, useStoreContextQuery as Dt, waitForLabelPrompt as E, LogLevel as En, createCommentVNode as Er, useContext as Et, executeHandler as F, c as Fn, onMounted as Fr, INJECT_GLOBAL_PDK_ADMIN as Ft, useDeleteWebhooksMutation as G, NotificationCategory as Gn, withDirectives as Gr, FORM_KEYS as Gt, doMutate as H, AdminIcon as Hn, resolveDynamicComponent as Hr, generateFormFields as Ht, StopActionHandler as I, je as In, onUnmounted as Ir, resetLanguageCache as It, usePrintShipmentsMutation as J, optionalAdminActionContainerComponentNames as Jn, reactive as Jr, FORM_KEY_MODAL as Jt, useCreateWebhooksMutation as K, AdminComponent as Kn, isRef as Kr, FORM_KEY_ACCOUNT_SETTINGS as Kt, createShipmentsMutationHandler as L, ne as Ln, openBlock as Lr, useLanguage as Lt, executeAction as M, M as Mn, h$1 as Mr, formToBody as Mt, executeAfterHandle as N, Ne as Nn, inject as Nr, createFormElement as Nt, modalCloseAction as O, globalLogger as On, createTextVNode as Or, useStoreQuery as Ot, executeBeforeHandle as P, Xe as Pn, mergeProps as Pr, INJECT_ADMIN_INSTANCE as Pt, useFetchShipmentsQuery as Q, useVModel as Qn, toValue$1 as Qr, FORM_KEY_PLUGIN_SETTINGS as Qt, createQueryHandler as R, xe as Rn, provide as Rr, fillShipmentsQueryData as Rt, shipmentsExportReturnAction as S, replaceData as Si, isObjectLike as Sn, KeepAlive as Sr, useOrderMode as St, resolvePrintParameters as T, freeGlobal as Tn, createBlock as Tr, useGlobalContext as Tt, resolveQuerySuffix as U, AdminInstanceContextKey as Un, watch as Ur, resolveFormComponent as Ut, createHandlerWithParameters as V, AdminAction as Vn, resolveComponent as Vr, ShipmentBarcode_default as Vt, defineAction as W, AdminModalKey as Wn, withCtx as Wr, defineFormField as Wt, useDeleteShipmentsMutation as X, optionalAdminPlainWrapperComponentNames as Xn, toRaw as Xr, FORM_KEY_MODAL_RETURN_OPTIONS as Xt, useExportReturnMutation as Y, optionalAdminComponentNames as Yn, ref as Yr, FORM_KEY_MODAL_PRINT_OPTIONS as Yt, useFetchWebhooksQuery as Z, requiredAdminComponentNames as Zn, toRefs as Zr, FORM_KEY_MODAL_SHIPMENT_OPTIONS as Zt, ordersFetchAction as _, matchQuery as _i, isIndex as _n, Transition as _r, useFormatter as _t, LIST_ITEM_MODE_ACTIONS as a, defaultLogger as ai, ActionButton_default as an, FrontendEndpoint as ar, useUpdateOrdersMutation as at, shipmentActions as b, parseQueryArgs$1 as bi, isObject as bn, vShow as br, Format as bt, webhooksCreateAction as c, isCancelledError as ci, useNotificationStore as cn, TriState as cr, usePdkMutation as ct, ORDER_VIEW_IN_BACKOFFICE_ID as d, functionalUpdate as di, MapCache as dn, Variant as dr, createActionContext as dt, normalizeClass as ei, NotificationContainer_default as en, PackageTypeName as er, useFetchOrdersQuery as et, orderExportAction as f, getAbortController as fi, Map$1 as fn, setupDevtoolsPlugin as fr, useShipmentData as ft, ordersExportPrintShipmentsAction as g, matchMutation as gi, baseAssignValue as gn, isQueryKey as gr, useLocalizedFormatter as gt, ordersEditAction as h, isServer as hi, eq as hn, getClientKey as hr, useOrderData as ht, BOX_MODE_ACTIONS as i, notifyManager as ii, BulkSelectCheckbox_default as in, BackendEndpoint as ir, useUpdateProductSettingsMutation as it, executeNextAction as j, Je as jn, defineComponent as jr, prefixComponent as jt, modalSubmitFormAction as k, getActionIdentifier as kn, createVNode as kr, useQueryStore as kt, webhooksDeleteAction as l, onlineManager as li, useActionStore as ln, Size as lr, instantiateActions as lt, orderViewInBackofficeAction as m, hashQueryKeyByOptions as mi, assignValue as mn, cloneDeepUnref as mr, useOrdersData as mt, ProductSettings_default as n, Mutation as ni, usePdkAdminApi as nn, partitionArray as nr, QUERY_KEY_SHIPMENT as nt, MODAL_MODE_ACTIONS as o, canFetch as oi, setRequestHeadersProvider as on, AdminContextKey as or, usePrintOrdersMutation as ot, orderExportToShipmentsAction as p, hashQueryKey as pi, ListCache as pn, useQueryClient as pr, useProductData as pt, useUpdateShipmentsMutation as q, allAdminComponentNames as qn, markRaw as qr, FORM_KEY_CHILD_PRODUCT_SETTINGS as qt, ProductSettings_exports as r, Removable as ri, PackageType_default as rn, toArray as rr, useFetchContextQuery as rt, STORE_MODE_ACTIONS as s, createRetryer as si, useModalStore as sn, SortType as sr, useExportOrdersMutation as st, ShipmentLabel_default as t, toDisplayString as ti, DeliveryOptionsExcerpt_default as tn, isOfType$1 as tr, QUERY_KEY_ORDER as tt, webhooksFetchAction as u, focusManager as ui, get as un, Status as ur, instantiateAction as ut, ordersPrintAction as v, noop$2 as vi, defineProperty as vn, TransitionGroup as vr, useAdminConfig as vt, shipmentsUpdateAction as w, Subscribable as wi, root as wn, createBaseVNode as wr, useInstanceContext as wt, shipmentsDeleteAction as x, partialMatchKey as xi, isArray as xn, Fragment as xr, usePluginSettings as xt, ordersUpdateAction as y, parseFilterArgs as yi, isFunction as yn, createApp as yr, useAdminInstance as yt, createOrdersMutationHandler as z, AdminView as zn, renderList as zr, ShipmentStatus_default as zt };
|