@overmap-ai/core 1.0.74-model-indexes.2 → 1.0.74-model-indexes.3
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/overmap-core.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var y = (t, e, s) =>
|
|
1
|
+
var Hn = Object.defineProperty;
|
|
2
|
+
var Wn = (t, e, s) => e in t ? Hn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
+
var y = (t, e, s) => Wn(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import { v4 as le } from "uuid";
|
|
5
|
-
import { createSlice as _, createSelector as p, combineReducers as
|
|
6
|
-
import { saveAs as
|
|
7
|
-
import { offline as
|
|
5
|
+
import { createSlice as _, createSelector as p, combineReducers as Kn, compose as Yn } from "@reduxjs/toolkit";
|
|
6
|
+
import { saveAs as Jn } from "file-saver";
|
|
7
|
+
import { offline as Xn } from "@redux-offline/redux-offline";
|
|
8
8
|
import ft from "@redux-offline/redux-offline/lib/defaults";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Qn from "localforage";
|
|
10
|
+
import Zn from "redux-persist-migrate";
|
|
11
11
|
import ue from "superagent";
|
|
12
|
-
import { DepGraph as
|
|
13
|
-
import { openDB as
|
|
14
|
-
import { RESET_STATE as
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
var
|
|
18
|
-
const Zl =
|
|
12
|
+
import { DepGraph as ea } from "dependency-graph";
|
|
13
|
+
import { openDB as ta } from "idb";
|
|
14
|
+
import { RESET_STATE as sa } from "@redux-offline/redux-offline/lib/constants";
|
|
15
|
+
import ia from "jwt-decode";
|
|
16
|
+
const na = Object.freeze([]), aa = Object.freeze({});
|
|
17
|
+
var Zs = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(Zs || {}), ei = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(ei || {}), d = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(d || {}), oa = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(oa || {}), ti = /* @__PURE__ */ ((t) => (t[t.LOWEST = 0] = "LOWEST", t[t.LOW = 2] = "LOW", t[t.MEDIUM = 4] = "MEDIUM", t[t.HIGH = 6] = "HIGH", t[t.HIGHEST = 8] = "HIGHEST", t))(ti || {}), si = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(si || {}), I = /* @__PURE__ */ ((t) => (t.STATUS = "status", t.PRIORITY = "priority", t.CATEGORY = "category", t.DESCRIPTION = "description", t.TITLE = "title", t.ASSIGNED_TO = "assigned_to", t.DUE_DATE = "due_date", t))(I || {}), ca = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(ca || {}), ra = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(ra || {}), da = /* @__PURE__ */ ((t) => (t[t.ACTIVE = 0] = "ACTIVE", t[t.PAUSED = 2] = "PAUSED", t[t.CANCELLED = 4] = "CANCELLED", t[t.INACTIVE = 6] = "INACTIVE", t[t.PAST_DUE = 8] = "PAST_DUE", t))(da || {});
|
|
18
|
+
const Zl = si.BACKLOG, eu = ti.MEDIUM, la = 6e4;
|
|
19
19
|
function O(t) {
|
|
20
20
|
return {
|
|
21
21
|
addOne: (h, m) => {
|
|
@@ -68,11 +68,11 @@ function O(t) {
|
|
|
68
68
|
})
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
class
|
|
71
|
+
var Qs;
|
|
72
|
+
Qs = Symbol.toStringTag;
|
|
73
|
+
class ua {
|
|
74
74
|
constructor() {
|
|
75
|
-
y(this,
|
|
75
|
+
y(this, Qs, "Promise");
|
|
76
76
|
y(this, "_promise");
|
|
77
77
|
y(this, "_resolve");
|
|
78
78
|
y(this, "_reject");
|
|
@@ -110,9 +110,9 @@ const tu = (t) => ({
|
|
|
110
110
|
coordinates: t
|
|
111
111
|
}), iu = (t, e) => t[0] === e[0] && t[1] === e[1];
|
|
112
112
|
let We = !1;
|
|
113
|
-
const
|
|
114
|
-
["true", "1"].includes(
|
|
115
|
-
function
|
|
113
|
+
const ha = "";
|
|
114
|
+
["true", "1"].includes(ha.toLowerCase()) && (We = !0);
|
|
115
|
+
function ma(t, e) {
|
|
116
116
|
if (t === e) return !0;
|
|
117
117
|
if (typeof t != typeof e)
|
|
118
118
|
return !1;
|
|
@@ -125,7 +125,7 @@ function pa(t, e) {
|
|
|
125
125
|
}
|
|
126
126
|
return !0;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ii(t) {
|
|
129
129
|
const e = {};
|
|
130
130
|
return function() {
|
|
131
131
|
const s = Array.prototype.slice.call(arguments);
|
|
@@ -138,15 +138,15 @@ function nu(t, e) {
|
|
|
138
138
|
if (t[s] !== e[s]) return !1;
|
|
139
139
|
return !0;
|
|
140
140
|
}
|
|
141
|
-
const g = (t) => t.length === 0 ?
|
|
141
|
+
const g = (t) => t.length === 0 ? na : t, fe = (t) => Object.keys(t).length === 0 ? aa : t, pa = ii((t) => {
|
|
142
142
|
if (!t) return "";
|
|
143
143
|
const e = new Date(t), s = e.getFullYear() === st.getFullYear(), i = { day: "numeric", month: "short" };
|
|
144
144
|
return s || (i.year = "numeric"), e.toLocaleDateString([], i);
|
|
145
|
-
}),
|
|
146
|
-
const i = Math.round((new Date(t).getTime() - st.getTime()) /
|
|
147
|
-
return i < e || i > s ?
|
|
145
|
+
}), fa = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), ya = 1e3 * 86400, st = /* @__PURE__ */ new Date(), au = (t) => new Date(t).toDateString() === st.toDateString(), ou = ii((t, e, s) => {
|
|
146
|
+
const i = Math.round((new Date(t).getTime() - st.getTime()) / ya);
|
|
147
|
+
return i < e || i > s ? pa(t) : fa.format(i, "days");
|
|
148
148
|
});
|
|
149
|
-
function
|
|
149
|
+
function Aa(t) {
|
|
150
150
|
return new Uint8Array(t).reduce((s, i) => s + i.toString(16).padStart(2, "0"), "");
|
|
151
151
|
}
|
|
152
152
|
const yt = async (t, e) => {
|
|
@@ -166,7 +166,7 @@ function Re(t) {
|
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
168
|
crypto.subtle.digest("SHA-1", n).then((a) => {
|
|
169
|
-
const o =
|
|
169
|
+
const o = Aa(a);
|
|
170
170
|
e(o);
|
|
171
171
|
});
|
|
172
172
|
}, i.readAsArrayBuffer(t);
|
|
@@ -179,7 +179,7 @@ function cu(t) {
|
|
|
179
179
|
}
|
|
180
180
|
return `${t.name}&${t.type}${t.size}`;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function ga(t, e) {
|
|
183
183
|
return new File([t], e, { type: t.type });
|
|
184
184
|
}
|
|
185
185
|
function ru(t, e) {
|
|
@@ -198,7 +198,7 @@ const du = async (t) => {
|
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
return Object.values(e);
|
|
201
|
-
},
|
|
201
|
+
}, ba = async (t) => (await fetch(t)).blob(), lu = (t) => new Promise((e, s) => {
|
|
202
202
|
const i = new FileReader();
|
|
203
203
|
i.onloadend = () => {
|
|
204
204
|
var n;
|
|
@@ -207,7 +207,7 @@ const du = async (t) => {
|
|
|
207
207
|
});
|
|
208
208
|
function uu(t) {
|
|
209
209
|
const e = new Blob([t]);
|
|
210
|
-
|
|
210
|
+
Jn(e, t.name);
|
|
211
211
|
}
|
|
212
212
|
const At = {};
|
|
213
213
|
function hu(t, e, s, ...i) {
|
|
@@ -218,7 +218,7 @@ function hu(t, e, s, ...i) {
|
|
|
218
218
|
function R(t) {
|
|
219
219
|
return { ...t, offline_id: le() };
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function _a(t) {
|
|
222
222
|
const e = {};
|
|
223
223
|
for (const s of t)
|
|
224
224
|
e[s.offline_id] = s;
|
|
@@ -247,7 +247,7 @@ function yu(t, e) {
|
|
|
247
247
|
return s.slice(0, s.lastIndexOf(" ")) + "…";
|
|
248
248
|
}
|
|
249
249
|
const A = (t) => (e) => (s) => t(s, e);
|
|
250
|
-
function
|
|
250
|
+
function Sa(t, e, s) {
|
|
251
251
|
return s.findIndex((i) => i.offline_id === t.offline_id) === e;
|
|
252
252
|
}
|
|
253
253
|
function Au(t, e, s) {
|
|
@@ -255,7 +255,7 @@ function Au(t, e, s) {
|
|
|
255
255
|
}
|
|
256
256
|
const gu = /^.+@.+\..+$/, be = O(
|
|
257
257
|
(t) => t.offline_id
|
|
258
|
-
), gt = be.getInitialState({}),
|
|
258
|
+
), gt = be.getInitialState({}), ni = _({
|
|
259
259
|
name: "agents",
|
|
260
260
|
initialState: gt,
|
|
261
261
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, gt)),
|
|
@@ -265,15 +265,15 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
265
265
|
setConversation: be.setOne,
|
|
266
266
|
updateConversation: be.updateOne
|
|
267
267
|
}
|
|
268
|
-
}), { initializeConversations:
|
|
269
|
-
[
|
|
268
|
+
}), { initializeConversations: Ta, addConversation: Ra, setConversation: Oa, updateConversation: wa } = ni.actions, ai = (t) => t.agentsReducer.instances, bu = p(
|
|
269
|
+
[ai],
|
|
270
270
|
(t) => Object.values(t)
|
|
271
271
|
), _u = A(
|
|
272
272
|
p(
|
|
273
|
-
[
|
|
273
|
+
[ai, (t, e) => e],
|
|
274
274
|
(t, e) => t[e]
|
|
275
275
|
)
|
|
276
|
-
),
|
|
276
|
+
), va = ni.reducer, j = O((t) => t.offline_id), bt = j.getInitialState({}), oi = _({
|
|
277
277
|
name: "assetAttachments",
|
|
278
278
|
initialState: bt,
|
|
279
279
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, bt)),
|
|
@@ -291,24 +291,24 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
291
291
|
}), {
|
|
292
292
|
initializeAssetAttachments: _t,
|
|
293
293
|
addAssetAttachment: Su,
|
|
294
|
-
addAssetAttachments:
|
|
295
|
-
setAssetAttachment:
|
|
294
|
+
addAssetAttachments: ci,
|
|
295
|
+
setAssetAttachment: Ia,
|
|
296
296
|
setAssetAttachments: Tu,
|
|
297
297
|
updateAssetAttachment: Ru,
|
|
298
|
-
updateAssetAttachments:
|
|
299
|
-
deleteAssetAttachment:
|
|
300
|
-
deleteAssetAttachments:
|
|
301
|
-
} =
|
|
302
|
-
[
|
|
298
|
+
updateAssetAttachments: Ea,
|
|
299
|
+
deleteAssetAttachment: Fa,
|
|
300
|
+
deleteAssetAttachments: ri
|
|
301
|
+
} = oi.actions, ka = (t) => t.assetAttachmentReducer.instances, di = p(
|
|
302
|
+
[ka],
|
|
303
303
|
(t) => Object.values(t)
|
|
304
|
-
),
|
|
304
|
+
), qa = (t) => (e) => e.assetAttachmentReducer.instances[t], ja = A(
|
|
305
305
|
p(
|
|
306
|
-
[
|
|
306
|
+
[di, (t, e) => e],
|
|
307
307
|
(t, e) => g(t.filter(({ asset: s }) => e === s))
|
|
308
308
|
)
|
|
309
309
|
), Ou = A(
|
|
310
310
|
p(
|
|
311
|
-
[
|
|
311
|
+
[di, (t, e) => e],
|
|
312
312
|
(t, e) => {
|
|
313
313
|
const s = t.filter(({ asset: a }) => e === a), i = s.filter(
|
|
314
314
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -320,7 +320,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
320
320
|
return { fileAttachments: i, imageAttachments: n };
|
|
321
321
|
}
|
|
322
322
|
)
|
|
323
|
-
),
|
|
323
|
+
), Pa = oi.reducer, P = O((t) => t.offline_id), St = P.getInitialState({}), li = _({
|
|
324
324
|
name: "assets",
|
|
325
325
|
initialState: St,
|
|
326
326
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, St)),
|
|
@@ -336,19 +336,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
336
336
|
deleteAssets: P.deleteMany
|
|
337
337
|
}
|
|
338
338
|
}), {
|
|
339
|
-
initializeAssets:
|
|
339
|
+
initializeAssets: Da,
|
|
340
340
|
addAsset: Tt,
|
|
341
|
-
addAssets:
|
|
341
|
+
addAssets: ui,
|
|
342
342
|
updateAsset: Ee,
|
|
343
343
|
updateAssets: wu,
|
|
344
344
|
deleteAsset: Rt,
|
|
345
|
-
deleteAssets:
|
|
345
|
+
deleteAssets: Ca,
|
|
346
346
|
setAsset: vu,
|
|
347
347
|
setAssets: Iu
|
|
348
|
-
} =
|
|
349
|
-
p([
|
|
348
|
+
} = li.actions, hi = (t) => t.assetReducer.instances, xa = p([hi], (t) => g(Object.values(t))), mi = A(
|
|
349
|
+
p([xa, (t, e) => e], (t, e) => g(t.filter((s) => s.asset_type === e)))
|
|
350
350
|
), Ot = (t) => (e) => e.assetReducer.instances[t], Eu = A(
|
|
351
|
-
p([
|
|
351
|
+
p([hi, (t, e) => e], (t, e) => {
|
|
352
352
|
const s = [];
|
|
353
353
|
for (const i of e) {
|
|
354
354
|
const n = t[i];
|
|
@@ -356,9 +356,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
356
356
|
}
|
|
357
357
|
return g(s);
|
|
358
358
|
})
|
|
359
|
-
), Fu = (t) => (e) =>
|
|
359
|
+
), Fu = (t) => (e) => mi(t)(e).length, Ma = li.reducer, te = O(
|
|
360
360
|
(t) => t.offline_id
|
|
361
|
-
), wt = te.getInitialState({}),
|
|
361
|
+
), wt = te.getInitialState({}), pi = _({
|
|
362
362
|
name: "assetStageCompletions",
|
|
363
363
|
initialState: wt,
|
|
364
364
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, wt)),
|
|
@@ -372,15 +372,15 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
372
372
|
deleteAssetStageCompletions: te.deleteMany
|
|
373
373
|
}
|
|
374
374
|
}), {
|
|
375
|
-
initializeAssetStageCompletions:
|
|
375
|
+
initializeAssetStageCompletions: za,
|
|
376
376
|
addAssetStageCompletion: vt,
|
|
377
377
|
addAssetStageCompletions: It,
|
|
378
|
-
updateAssetStageCompletion:
|
|
379
|
-
updateAssetStageCompletions:
|
|
378
|
+
updateAssetStageCompletion: $a,
|
|
379
|
+
updateAssetStageCompletions: Ua,
|
|
380
380
|
deleteAssetStageCompletion: Et,
|
|
381
381
|
deleteAssetStageCompletions: Ft
|
|
382
|
-
} =
|
|
383
|
-
[
|
|
382
|
+
} = pi.actions, fi = (t) => t.assetStageCompletionReducer.instances, ku = p(
|
|
383
|
+
[fi],
|
|
384
384
|
(t) => {
|
|
385
385
|
const e = {};
|
|
386
386
|
for (const s of Object.values(t)) {
|
|
@@ -389,9 +389,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
389
389
|
}
|
|
390
390
|
return fe(e);
|
|
391
391
|
}
|
|
392
|
-
),
|
|
392
|
+
), Va = (t) => (e) => e.assetStageCompletionReducer.instances[t], Ga = A(
|
|
393
393
|
p(
|
|
394
|
-
[
|
|
394
|
+
[fi, (t, e) => e],
|
|
395
395
|
(t, e) => {
|
|
396
396
|
const s = new Set(e);
|
|
397
397
|
return g(
|
|
@@ -401,7 +401,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
)
|
|
404
|
-
),
|
|
404
|
+
), La = pi.reducer, D = O((t) => t.offline_id), kt = D.getInitialState({}), yi = _({
|
|
405
405
|
name: "assetStages",
|
|
406
406
|
initialState: kt,
|
|
407
407
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, kt)),
|
|
@@ -417,8 +417,8 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
417
417
|
deleteAssetStages: D.deleteMany
|
|
418
418
|
}
|
|
419
419
|
}), {
|
|
420
|
-
initializeAssetStages:
|
|
421
|
-
setAssetStage:
|
|
420
|
+
initializeAssetStages: Ba,
|
|
421
|
+
setAssetStage: Na,
|
|
422
422
|
setAssetStages: qu,
|
|
423
423
|
addAssetStage: ju,
|
|
424
424
|
addAssetStages: Ke,
|
|
@@ -426,15 +426,15 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
426
426
|
updateAssetStages: Ue,
|
|
427
427
|
deleteAssetStage: Pu,
|
|
428
428
|
deleteAssetStages: Ye
|
|
429
|
-
} =
|
|
429
|
+
} = yi.actions, Ha = yi.reducer, it = (t) => t.assetStageReducer.instances, Wa = (t) => (e) => e.assetStageReducer.instances[t], Ka = p([it], (t) => Object.values(t)), Du = A(
|
|
430
430
|
p([it, (t, e) => e], (t, e) => {
|
|
431
431
|
const s = {};
|
|
432
432
|
for (const [i, n] of Object.entries(t))
|
|
433
433
|
n.asset_type === e && (s[i] = n);
|
|
434
434
|
return fe(s);
|
|
435
435
|
})
|
|
436
|
-
),
|
|
437
|
-
p([
|
|
436
|
+
), Ya = A(
|
|
437
|
+
p([Ka, (t, e) => e], (t, e) => g(
|
|
438
438
|
t.filter((s) => s.asset_type === e).sort((s, i) => s.priority - i.priority)
|
|
439
439
|
))
|
|
440
440
|
), jt = A(
|
|
@@ -448,7 +448,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
448
448
|
})
|
|
449
449
|
), C = O(
|
|
450
450
|
(t) => t.offline_id
|
|
451
|
-
), Pt = C.getInitialState({}),
|
|
451
|
+
), Pt = C.getInitialState({}), Ai = _({
|
|
452
452
|
name: "assetTypeAttachments",
|
|
453
453
|
initialState: Pt,
|
|
454
454
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Pt)),
|
|
@@ -464,26 +464,26 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
464
464
|
deleteAssetTypeAttachments: C.deleteMany
|
|
465
465
|
}
|
|
466
466
|
}), {
|
|
467
|
-
initializeAssetTypeAttachments:
|
|
467
|
+
initializeAssetTypeAttachments: Ja,
|
|
468
468
|
addAssetTypeAttachment: Cu,
|
|
469
|
-
addAssetTypeAttachments:
|
|
470
|
-
setAssetTypeAttachment:
|
|
469
|
+
addAssetTypeAttachments: gi,
|
|
470
|
+
setAssetTypeAttachment: Xa,
|
|
471
471
|
setAssetTypeAttachments: xu,
|
|
472
472
|
updateAssetTypeAttachment: Mu,
|
|
473
|
-
updateAssetTypeAttachments:
|
|
474
|
-
deleteAssetTypeAttachment:
|
|
475
|
-
deleteAssetTypeAttachments:
|
|
476
|
-
} =
|
|
477
|
-
[
|
|
473
|
+
updateAssetTypeAttachments: Qa,
|
|
474
|
+
deleteAssetTypeAttachment: Za,
|
|
475
|
+
deleteAssetTypeAttachments: bi
|
|
476
|
+
} = Ai.actions, eo = (t) => t.assetTypeAttachmentReducer.instances, _i = p(
|
|
477
|
+
[eo],
|
|
478
478
|
(t) => Object.values(t)
|
|
479
|
-
),
|
|
479
|
+
), to = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], so = A(
|
|
480
480
|
p(
|
|
481
|
-
[
|
|
481
|
+
[_i, (t, e) => e],
|
|
482
482
|
(t, e) => g(t.filter(({ asset_type: s }) => e === s))
|
|
483
483
|
)
|
|
484
484
|
), zu = A(
|
|
485
485
|
p(
|
|
486
|
-
[
|
|
486
|
+
[_i, (t, e) => e],
|
|
487
487
|
(t, e) => {
|
|
488
488
|
const s = t.filter(({ asset_type: a }) => a === e), i = s.filter(
|
|
489
489
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -495,9 +495,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
495
495
|
return { fileAttachments: i, imageAttachments: n };
|
|
496
496
|
}
|
|
497
497
|
)
|
|
498
|
-
),
|
|
498
|
+
), io = Ai.reducer, x = O(
|
|
499
499
|
(t) => t.offline_id
|
|
500
|
-
), Dt = x.getInitialState({}),
|
|
500
|
+
), Dt = x.getInitialState({}), Si = _({
|
|
501
501
|
name: "assetTypeFieldsAttachments",
|
|
502
502
|
initialState: Dt,
|
|
503
503
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Dt)),
|
|
@@ -513,21 +513,21 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
513
513
|
deleteAssetTypeFieldsAttachments: x.deleteMany
|
|
514
514
|
}
|
|
515
515
|
}), {
|
|
516
|
-
initializeAssetTypeFieldsAttachments:
|
|
516
|
+
initializeAssetTypeFieldsAttachments: no,
|
|
517
517
|
addAssetTypeFieldsAttachment: $u,
|
|
518
|
-
addAssetTypeFieldsAttachments:
|
|
518
|
+
addAssetTypeFieldsAttachments: ao,
|
|
519
519
|
setAssetTypeFieldsAttachment: Uu,
|
|
520
520
|
setAssetTypeFieldsAttachments: Vu,
|
|
521
521
|
updateAssetTypeFieldsAttachment: Gu,
|
|
522
|
-
updateAssetTypeFieldsAttachments:
|
|
522
|
+
updateAssetTypeFieldsAttachments: oo,
|
|
523
523
|
deleteAssetTypeFieldsAttachment: Lu,
|
|
524
|
-
deleteAssetTypeFieldsAttachments:
|
|
525
|
-
} =
|
|
526
|
-
[
|
|
524
|
+
deleteAssetTypeFieldsAttachments: co
|
|
525
|
+
} = Si.actions, ro = (t) => t.assetTypeFieldsAttachmentReducer.instances, lo = p(
|
|
526
|
+
[ro],
|
|
527
527
|
(t) => Object.values(t)
|
|
528
528
|
), Bu = A(
|
|
529
|
-
p([
|
|
530
|
-
), Nu = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t],
|
|
529
|
+
p([lo, (t, e) => e], (t, e) => g(t.filter((s) => s.fields_revision === e)))
|
|
530
|
+
), Nu = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], uo = Si.reducer, M = O((t) => t.offline_id), Ct = M.getInitialState({}), Ti = _({
|
|
531
531
|
name: "assetTypeFields",
|
|
532
532
|
initialState: Ct,
|
|
533
533
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ct)),
|
|
@@ -543,22 +543,22 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
543
543
|
deleteAssetTypeFieldsMany: M.deleteMany
|
|
544
544
|
}
|
|
545
545
|
}), {
|
|
546
|
-
initializeAssetTypeFields:
|
|
547
|
-
addAssetTypeFields:
|
|
546
|
+
initializeAssetTypeFields: ho,
|
|
547
|
+
addAssetTypeFields: mo,
|
|
548
548
|
addAssetTypeFieldsMany: Hu,
|
|
549
549
|
setAssetTypeFields: Wu,
|
|
550
550
|
setAssetTypeFieldsMany: Ku,
|
|
551
|
-
updateAssetTypeFields:
|
|
551
|
+
updateAssetTypeFields: po,
|
|
552
552
|
updateAssetTypeFieldsMany: Yu,
|
|
553
|
-
deleteAssetTypeFields:
|
|
553
|
+
deleteAssetTypeFields: fo,
|
|
554
554
|
deleteAssetTypeFieldsMany: Ju
|
|
555
|
-
} =
|
|
555
|
+
} = Ti.actions, yo = (t) => t.assetTypeFieldsReducer.instances, nt = p([yo], (t) => Object.values(t)), Xu = A(
|
|
556
556
|
p([nt, (t, e) => e], (t, e) => g(t.filter((s) => s.asset_type === e)))
|
|
557
557
|
), Qu = A(
|
|
558
558
|
p([nt, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
559
|
-
), Zu = (t) => (e) => e.assetTypeFieldsReducer.instances[t],
|
|
559
|
+
), Zu = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Ao = Ti.reducer, z = O(
|
|
560
560
|
(t) => t.offline_id
|
|
561
|
-
), xt = z.getInitialState({}),
|
|
561
|
+
), xt = z.getInitialState({}), Ri = _({
|
|
562
562
|
name: "assetTypeFieldValuesAttachments",
|
|
563
563
|
initialState: xt,
|
|
564
564
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xt)),
|
|
@@ -574,21 +574,21 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
574
574
|
deleteAssetTypeFieldValuesAttachments: z.deleteMany
|
|
575
575
|
}
|
|
576
576
|
}), {
|
|
577
|
-
initializeAssetTypeFieldValuesAttachments:
|
|
577
|
+
initializeAssetTypeFieldValuesAttachments: go,
|
|
578
578
|
addAssetTypeFieldValuesAttachment: eh,
|
|
579
579
|
addAssetTypeFieldValuesAttachments: Je,
|
|
580
580
|
setAssetTypeFieldValuesAttachment: th,
|
|
581
581
|
setAssetTypeFieldValuesAttachments: sh,
|
|
582
582
|
updateAssetTypeFieldValuesAttachment: ih,
|
|
583
|
-
updateAssetTypeFieldValuesAttachments:
|
|
583
|
+
updateAssetTypeFieldValuesAttachments: bo,
|
|
584
584
|
deleteAssetTypeFieldValuesAttachment: nh,
|
|
585
585
|
deleteAssetTypeFieldValuesAttachments: Xe
|
|
586
|
-
} =
|
|
587
|
-
[
|
|
586
|
+
} = Ri.actions, Oi = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, _o = p(
|
|
587
|
+
[Oi],
|
|
588
588
|
(t) => Object.values(t)
|
|
589
|
-
), ah = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t],
|
|
589
|
+
), ah = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], So = A(
|
|
590
590
|
p(
|
|
591
|
-
[
|
|
591
|
+
[Oi, (t, e) => e],
|
|
592
592
|
(t, e) => {
|
|
593
593
|
const s = new Set(e);
|
|
594
594
|
return g(
|
|
@@ -596,11 +596,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
596
596
|
);
|
|
597
597
|
}
|
|
598
598
|
)
|
|
599
|
-
),
|
|
600
|
-
p([
|
|
601
|
-
),
|
|
599
|
+
), To = A(
|
|
600
|
+
p([_o, (t, e) => e], (t, e) => g(t.filter((s) => s.field_values === e)))
|
|
601
|
+
), Ro = Ri.reducer, $ = O(
|
|
602
602
|
(t) => t.offline_id
|
|
603
|
-
), Mt = $.getInitialState({}),
|
|
603
|
+
), Mt = $.getInitialState({}), wi = _({
|
|
604
604
|
name: "assetTypeFieldValues",
|
|
605
605
|
initialState: Mt,
|
|
606
606
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Mt)),
|
|
@@ -616,20 +616,20 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
616
616
|
deleteAssetTypeFieldValuesMany: $.deleteMany
|
|
617
617
|
}
|
|
618
618
|
}), {
|
|
619
|
-
initializeAssetTypeFieldValues:
|
|
619
|
+
initializeAssetTypeFieldValues: Oo,
|
|
620
620
|
addAssetTypeFieldValues: zt,
|
|
621
|
-
addAssetTypeFieldValuesMany:
|
|
621
|
+
addAssetTypeFieldValuesMany: wo,
|
|
622
622
|
setAssetTypeFieldValues: oh,
|
|
623
623
|
setAssetTypeFieldValuesMany: ch,
|
|
624
624
|
updateAssetTypeFieldValues: Fe,
|
|
625
|
-
updateAssetTypeFieldValuesMany:
|
|
625
|
+
updateAssetTypeFieldValuesMany: vo,
|
|
626
626
|
deleteAssetTypeFieldValues: $t,
|
|
627
|
-
deleteAssetTypeFieldValuesMany:
|
|
628
|
-
} =
|
|
629
|
-
p([
|
|
627
|
+
deleteAssetTypeFieldValuesMany: Io
|
|
628
|
+
} = wi.actions, Eo = (t) => t.assetTypeFieldValuesReducer.instances, vi = p([Eo], (t) => Object.values(t)), rh = A(
|
|
629
|
+
p([vi, (t, e) => e], (t, e) => g(t.filter((s) => s.asset === e)))
|
|
630
630
|
), dh = A(
|
|
631
631
|
p(
|
|
632
|
-
[nt,
|
|
632
|
+
[nt, vi, (t, e) => e],
|
|
633
633
|
(t, e, s) => {
|
|
634
634
|
const i = new Set(
|
|
635
635
|
t.filter((n) => n.asset_type === s).map((n) => n.offline_id)
|
|
@@ -637,7 +637,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
637
637
|
return g(e.filter((n) => i.has(n.fields_revision)));
|
|
638
638
|
}
|
|
639
639
|
)
|
|
640
|
-
), Ut = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t],
|
|
640
|
+
), Ut = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], Fo = wi.reducer, U = O((t) => t.offline_id), Vt = U.getInitialState({}), Ii = _({
|
|
641
641
|
name: "assetTypes",
|
|
642
642
|
initialState: Vt,
|
|
643
643
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vt)),
|
|
@@ -653,7 +653,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
653
653
|
deleteAssetTypes: U.deleteMany
|
|
654
654
|
}
|
|
655
655
|
}), {
|
|
656
|
-
initializeAssetTypes:
|
|
656
|
+
initializeAssetTypes: ko,
|
|
657
657
|
setAssetType: lh,
|
|
658
658
|
setAssetTypes: uh,
|
|
659
659
|
addAssetType: Gt,
|
|
@@ -662,12 +662,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
662
662
|
updateAssetTypes: mh,
|
|
663
663
|
deleteAssetType: Lt,
|
|
664
664
|
deleteAssetTypes: ph
|
|
665
|
-
} =
|
|
666
|
-
[
|
|
665
|
+
} = Ii.actions, Ei = (t) => t.assetTypeReducer.instances, fh = p(
|
|
666
|
+
[Ei],
|
|
667
667
|
(t) => Object.values(t)
|
|
668
668
|
), Bt = (t) => (e) => e.assetTypeReducer.instances[t], yh = A(
|
|
669
669
|
p(
|
|
670
|
-
[
|
|
670
|
+
[Ei, (t, e) => e],
|
|
671
671
|
(t, e) => {
|
|
672
672
|
const s = [];
|
|
673
673
|
for (const i of e) {
|
|
@@ -677,7 +677,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
677
677
|
return g(s);
|
|
678
678
|
}
|
|
679
679
|
)
|
|
680
|
-
),
|
|
680
|
+
), qo = Ii.reducer, Nt = {
|
|
681
681
|
accessToken: "",
|
|
682
682
|
refreshToken: "",
|
|
683
683
|
isLoggedIn: !1
|
|
@@ -696,7 +696,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
696
696
|
e.payload || at.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
}), { setTokens: Ah, clearTokens: gh, setLoggedIn:
|
|
699
|
+
}), { setTokens: Ah, clearTokens: gh, setLoggedIn: jo } = at.actions, bh = (t) => t.authReducer.accessToken, _h = (t) => t.authReducer.isLoggedIn, Po = at.reducer, _e = O((t) => t.offline_id), Ht = _e.getInitialState({}), Fi = _({
|
|
700
700
|
name: "categories",
|
|
701
701
|
initialState: Ht,
|
|
702
702
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ht)),
|
|
@@ -706,9 +706,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
706
706
|
updateCategory: _e.updateOne,
|
|
707
707
|
deleteCategory: _e.deleteOne
|
|
708
708
|
}
|
|
709
|
-
}), { initializeCategories:
|
|
709
|
+
}), { initializeCategories: Do, addCategory: Wt, updateCategory: Co, deleteCategory: xo } = Fi.actions, ki = (t) => t.categoryReducer.instances, Sh = p([ki], (t) => Object.values(t)), Kt = (t) => (e) => e.categoryReducer.instances[t], Th = A(
|
|
710
710
|
p(
|
|
711
|
-
[
|
|
711
|
+
[ki, (t, e) => e],
|
|
712
712
|
(t, e) => {
|
|
713
713
|
const s = [];
|
|
714
714
|
for (const i of e) {
|
|
@@ -718,7 +718,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
718
718
|
return g(s);
|
|
719
719
|
}
|
|
720
720
|
)
|
|
721
|
-
), Rh = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length,
|
|
721
|
+
), Rh = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, Mo = Fi.reducer, V = O((t) => t.offline_id), Yt = V.getInitialState({}), qi = _({
|
|
722
722
|
name: "documentAttachments",
|
|
723
723
|
initialState: Yt,
|
|
724
724
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Yt)),
|
|
@@ -734,26 +734,26 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
734
734
|
deleteDocumentAttachments: V.deleteMany
|
|
735
735
|
}
|
|
736
736
|
}), {
|
|
737
|
-
initializeDocumentAttachments:
|
|
737
|
+
initializeDocumentAttachments: zo,
|
|
738
738
|
addDocumentAttachment: Oh,
|
|
739
|
-
addDocumentAttachments:
|
|
740
|
-
setDocumentAttachment:
|
|
739
|
+
addDocumentAttachments: $o,
|
|
740
|
+
setDocumentAttachment: Uo,
|
|
741
741
|
setDocumentAttachments: wh,
|
|
742
742
|
updateDocumentAttachment: vh,
|
|
743
|
-
updateDocumentAttachments:
|
|
744
|
-
deleteDocumentAttachment:
|
|
745
|
-
deleteDocumentAttachments:
|
|
746
|
-
} =
|
|
747
|
-
[
|
|
743
|
+
updateDocumentAttachments: Vo,
|
|
744
|
+
deleteDocumentAttachment: Go,
|
|
745
|
+
deleteDocumentAttachments: Lo
|
|
746
|
+
} = qi.actions, Bo = (t) => t.documentAttachmentReducer.instances, ji = p(
|
|
747
|
+
[Bo],
|
|
748
748
|
(t) => Object.values(t)
|
|
749
|
-
),
|
|
749
|
+
), No = (t) => (e) => e.documentAttachmentReducer.instances[t], Ih = A(
|
|
750
750
|
p(
|
|
751
|
-
[
|
|
751
|
+
[ji, (t, e) => e],
|
|
752
752
|
(t, e) => g(t.filter(({ document: s }) => e === s))
|
|
753
753
|
)
|
|
754
754
|
), Eh = A(
|
|
755
755
|
p(
|
|
756
|
-
[
|
|
756
|
+
[ji, (t, e) => e],
|
|
757
757
|
(t, e) => {
|
|
758
758
|
const s = t.filter(({ document: a }) => e === a), i = s.filter(
|
|
759
759
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -765,9 +765,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
765
765
|
return { fileAttachments: i, imageAttachments: n };
|
|
766
766
|
}
|
|
767
767
|
)
|
|
768
|
-
),
|
|
768
|
+
), Ho = qi.reducer, Jt = {
|
|
769
769
|
documents: {}
|
|
770
|
-
},
|
|
770
|
+
}, Pi = _({
|
|
771
771
|
name: "documents",
|
|
772
772
|
initialState: Jt,
|
|
773
773
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
@@ -775,9 +775,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
775
775
|
}),
|
|
776
776
|
reducers: {
|
|
777
777
|
setDocuments: (t, e) => {
|
|
778
|
-
if (e.payload.filter(
|
|
778
|
+
if (e.payload.filter(Sa).length !== e.payload.length)
|
|
779
779
|
throw new Error("Tried to use setIssues reducer with duplicate ID's");
|
|
780
|
-
t.documents =
|
|
780
|
+
t.documents = _a(e.payload);
|
|
781
781
|
},
|
|
782
782
|
addDocuments: (t, e) => {
|
|
783
783
|
for (const s of e.payload)
|
|
@@ -893,7 +893,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
}), { setDocuments:
|
|
896
|
+
}), { setDocuments: Wo, addDocuments: Ko, updateDocuments: ne, moveDocument: Yo, removeDocuments: Xt } = Pi.actions, Oe = (t) => t.documentsReducer.documents, Jo = p(
|
|
897
897
|
[Oe],
|
|
898
898
|
(t) => Object.values(t)
|
|
899
899
|
), Xo = (t) => (e) => e.documentsReducer.documents[t], Fh = A(
|
|
@@ -920,7 +920,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
920
920
|
), qh = p(
|
|
921
921
|
[Jo],
|
|
922
922
|
(t) => g(t.filter((e) => !e.parent_document))
|
|
923
|
-
), Qo =
|
|
923
|
+
), Qo = Pi.reducer, xe = O((t) => t.offline_id), Zo = xe.getInitialState({}), Di = _({
|
|
924
924
|
name: "emailDomains",
|
|
925
925
|
initialState: Zo,
|
|
926
926
|
reducers: {
|
|
@@ -928,19 +928,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
928
928
|
addEmailDomain: xe.addOne,
|
|
929
929
|
deleteEmailDomain: xe.deleteOne
|
|
930
930
|
}
|
|
931
|
-
}), { initializeEmailDomains: ec, addEmailDomain: tc, deleteEmailDomain: sc } =
|
|
931
|
+
}), { initializeEmailDomains: ec, addEmailDomain: tc, deleteEmailDomain: sc } = Di.actions, ic = (t) => t.emailDomainsReducer.instances, nc = p([ic], (t) => Object.values(t)), jh = A(
|
|
932
932
|
p(
|
|
933
933
|
[nc, (t, e) => e],
|
|
934
934
|
(t, e) => g(
|
|
935
935
|
t.filter((s) => s.organization === e)
|
|
936
936
|
)
|
|
937
937
|
)
|
|
938
|
-
), ac =
|
|
938
|
+
), ac = Di.reducer, Qt = {
|
|
939
939
|
s3Urls: {}
|
|
940
|
-
},
|
|
940
|
+
}, Ci = 1e3 * 60 * 60, oc = Ci * 24 * 7, xi = _({
|
|
941
941
|
name: "file",
|
|
942
|
-
initialState:
|
|
943
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
942
|
+
initialState: Qt,
|
|
943
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Qt)),
|
|
944
944
|
reducers: {
|
|
945
945
|
setUploadUrl: (t, e) => {
|
|
946
946
|
const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), o = new Date(a.getTime() + oc);
|
|
@@ -951,19 +951,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
}), { setUploadUrl: cc } =
|
|
954
|
+
}), { setUploadUrl: cc } = xi.actions, rc = (t) => (e) => {
|
|
955
955
|
const s = e.fileReducer.s3Urls[t];
|
|
956
956
|
if (!s)
|
|
957
957
|
return;
|
|
958
958
|
const i = (/* @__PURE__ */ new Date()).getTime();
|
|
959
|
-
if (!((s.exp ?? i) - i <
|
|
959
|
+
if (!((s.exp ?? i) - i < Ci))
|
|
960
960
|
return s;
|
|
961
|
-
}, dc =
|
|
961
|
+
}, dc = xi.reducer, G = O(
|
|
962
962
|
(t) => t.offline_id
|
|
963
|
-
),
|
|
963
|
+
), Zt = G.getInitialState({}), Mi = _({
|
|
964
964
|
name: "formRevisionAttachments",
|
|
965
|
-
initialState:
|
|
966
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
965
|
+
initialState: Zt,
|
|
966
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Zt)),
|
|
967
967
|
reducers: {
|
|
968
968
|
initializeFormRevisionAttachments: G.initialize,
|
|
969
969
|
addFormRevisionAttachment: G.addOne,
|
|
@@ -985,20 +985,20 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
985
985
|
updateFormRevisionAttachments: hc,
|
|
986
986
|
deleteFormRevisionAttachment: Mh,
|
|
987
987
|
deleteFormRevisionAttachments: mc
|
|
988
|
-
} =
|
|
988
|
+
} = Mi.actions, pc = (t) => t.formRevisionAttachmentReducer.instances, zh = A(
|
|
989
989
|
p(
|
|
990
990
|
[pc, (t, e) => e],
|
|
991
991
|
(t, e) => g(
|
|
992
992
|
Object.values(t).filter((s) => s.form_revision === e)
|
|
993
993
|
)
|
|
994
994
|
)
|
|
995
|
-
), fc =
|
|
995
|
+
), fc = Mi.reducer, yc = (t, e) => {
|
|
996
996
|
const s = t.revision, i = e.revision;
|
|
997
997
|
return s === "Pending" && i === "Pending" ? t.submitted_at < e.submitted_at ? -1 : 1 : s === "Pending" ? 1 : i === "Pending" || s < i ? -1 : 1;
|
|
998
|
-
}, ae = O((t) => t.offline_id),
|
|
998
|
+
}, ae = O((t) => t.offline_id), es = ae.getInitialState({}), zi = _({
|
|
999
999
|
name: "formRevisions",
|
|
1000
|
-
initialState:
|
|
1001
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1000
|
+
initialState: es,
|
|
1001
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, es)),
|
|
1002
1002
|
reducers: {
|
|
1003
1003
|
initializeFormRevisions: ae.initialize,
|
|
1004
1004
|
setFormRevision: ae.setOne,
|
|
@@ -1010,11 +1010,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1010
1010
|
}), {
|
|
1011
1011
|
setFormRevision: Ac,
|
|
1012
1012
|
initializeFormRevisions: gc,
|
|
1013
|
-
addFormRevision:
|
|
1013
|
+
addFormRevision: $i,
|
|
1014
1014
|
addFormRevisions: bc,
|
|
1015
|
-
deleteFormRevision:
|
|
1015
|
+
deleteFormRevision: Ui,
|
|
1016
1016
|
deleteFormRevisions: _c
|
|
1017
|
-
} =
|
|
1017
|
+
} = zi.actions, ot = (t) => t.formRevisionReducer.instances, Sc = p(
|
|
1018
1018
|
[ot],
|
|
1019
1019
|
(t) => Object.values(t)
|
|
1020
1020
|
), $h = (t) => (e) => e.formRevisionReducer.instances[t], Tc = (t, e) => {
|
|
@@ -1039,10 +1039,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1039
1039
|
[Sc, (t, e) => e],
|
|
1040
1040
|
(t, e) => g(t.filter((s) => s.form === e))
|
|
1041
1041
|
)
|
|
1042
|
-
), Oc =
|
|
1042
|
+
), Oc = zi.reducer, oe = O((t) => t.offline_id), ts = oe.getInitialState({}), Vi = _({
|
|
1043
1043
|
name: "forms",
|
|
1044
|
-
initialState:
|
|
1045
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1044
|
+
initialState: ts,
|
|
1045
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ts)),
|
|
1046
1046
|
reducers: {
|
|
1047
1047
|
initializeForms: oe.initialize,
|
|
1048
1048
|
setForm: oe.setOne,
|
|
@@ -1051,7 +1051,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1051
1051
|
updateForm: oe.updateOne,
|
|
1052
1052
|
deleteForm: oe.deleteOne
|
|
1053
1053
|
}
|
|
1054
|
-
}), { initializeForms: wc, setForm: Vh, addForm:
|
|
1054
|
+
}), { initializeForms: wc, setForm: Vh, addForm: ss, addForms: Gh, updateForm: Lh, deleteForm: is } = Vi.actions, vc = Vi.reducer, Ic = (t) => t.formReducer.instances, Bh = p([Ic], (t) => Object.values(t)), Ec = (t) => (e) => e.formReducer.instances[t], Nh = A(
|
|
1055
1055
|
p(
|
|
1056
1056
|
[
|
|
1057
1057
|
(t) => t.formReducer.instances,
|
|
@@ -1068,14 +1068,14 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1068
1068
|
return [...o.slice(0, n)];
|
|
1069
1069
|
},
|
|
1070
1070
|
// as the argument is an object, we check the first level of properties for equality
|
|
1071
|
-
{ memoizeOptions: { resultEqualityCheck:
|
|
1071
|
+
{ memoizeOptions: { resultEqualityCheck: ma } }
|
|
1072
1072
|
)
|
|
1073
1073
|
), L = O(
|
|
1074
1074
|
(t) => t.offline_id
|
|
1075
|
-
),
|
|
1075
|
+
), ns = L.getInitialState({}), Gi = _({
|
|
1076
1076
|
name: "formSubmissionAttachments",
|
|
1077
|
-
initialState:
|
|
1078
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1077
|
+
initialState: ns,
|
|
1078
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ns)),
|
|
1079
1079
|
reducers: {
|
|
1080
1080
|
initializeFormSubmissionAttachments: L.initialize,
|
|
1081
1081
|
addFormSubmissionAttachment: L.addOne,
|
|
@@ -1097,9 +1097,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1097
1097
|
updateFormSubmissionAttachments: kc,
|
|
1098
1098
|
deleteFormSubmissionAttachment: Jh,
|
|
1099
1099
|
deleteFormSubmissionAttachments: Ze
|
|
1100
|
-
} =
|
|
1100
|
+
} = Gi.actions, Li = (t) => t.formSubmissionAttachmentReducer.instances, qc = A(
|
|
1101
1101
|
p(
|
|
1102
|
-
[
|
|
1102
|
+
[Li, (t, e) => e],
|
|
1103
1103
|
(t, e) => {
|
|
1104
1104
|
const s = new Set(e);
|
|
1105
1105
|
return g(
|
|
@@ -1109,17 +1109,17 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1109
1109
|
)
|
|
1110
1110
|
), jc = A(
|
|
1111
1111
|
p(
|
|
1112
|
-
[
|
|
1112
|
+
[Li, (t, e) => e],
|
|
1113
1113
|
(t, e) => g(
|
|
1114
1114
|
Object.values(t).filter(
|
|
1115
1115
|
(s) => s.form_submission === e
|
|
1116
1116
|
)
|
|
1117
1117
|
)
|
|
1118
1118
|
)
|
|
1119
|
-
), Pc =
|
|
1119
|
+
), Pc = Gi.reducer, B = O((t) => t.offline_id), as = B.getInitialState({}), Bi = _({
|
|
1120
1120
|
name: "formSubmissions",
|
|
1121
|
-
initialState:
|
|
1122
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1121
|
+
initialState: as,
|
|
1122
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, as)),
|
|
1123
1123
|
reducers: {
|
|
1124
1124
|
initializeFormSubmissions: B.initialize,
|
|
1125
1125
|
setFormSubmission: B.setOne,
|
|
@@ -1135,19 +1135,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1135
1135
|
initializeFormSubmissions: Dc,
|
|
1136
1136
|
setFormSubmission: Ve,
|
|
1137
1137
|
setFormSubmissions: Xh,
|
|
1138
|
-
addFormSubmission:
|
|
1138
|
+
addFormSubmission: os,
|
|
1139
1139
|
addFormSubmissions: ct,
|
|
1140
1140
|
updateFormSubmission: Cc,
|
|
1141
1141
|
updateFormSubmissions: Qh,
|
|
1142
|
-
deleteFormSubmission:
|
|
1142
|
+
deleteFormSubmission: cs,
|
|
1143
1143
|
deleteFormSubmissions: rt
|
|
1144
|
-
} =
|
|
1145
|
-
[
|
|
1144
|
+
} = Bi.actions, Ni = (t) => t.formSubmissionReducer.instances, Hi = p(
|
|
1145
|
+
[Ni],
|
|
1146
1146
|
(t) => Object.values(t)
|
|
1147
|
-
),
|
|
1147
|
+
), rs = (t) => (e) => e.formSubmissionReducer.instances[t], xc = A(
|
|
1148
1148
|
p(
|
|
1149
1149
|
[
|
|
1150
|
-
|
|
1150
|
+
Ni,
|
|
1151
1151
|
ot,
|
|
1152
1152
|
(t, e) => e
|
|
1153
1153
|
],
|
|
@@ -1162,20 +1162,20 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1162
1162
|
)
|
|
1163
1163
|
), Mc = A(
|
|
1164
1164
|
p(
|
|
1165
|
-
[
|
|
1165
|
+
[Hi, (t, e) => e],
|
|
1166
1166
|
(t, e) => Object.values(t).filter((s) => s.issue === e)
|
|
1167
1167
|
)
|
|
1168
1168
|
), zc = A(
|
|
1169
1169
|
p(
|
|
1170
|
-
[
|
|
1170
|
+
[Hi, (t, e) => e],
|
|
1171
1171
|
(t, e) => t.filter((s) => s.asset === e)
|
|
1172
1172
|
)
|
|
1173
|
-
), $c =
|
|
1173
|
+
), $c = Bi.reducer, N = O((t) => t.offline_id), ds = N.getInitialState({}), Wi = _({
|
|
1174
1174
|
name: "geoImages",
|
|
1175
|
-
initialState:
|
|
1175
|
+
initialState: ds,
|
|
1176
1176
|
extraReducers: (t) => {
|
|
1177
1177
|
t.addCase("RESET", (e) => {
|
|
1178
|
-
Object.assign(e,
|
|
1178
|
+
Object.assign(e, ds);
|
|
1179
1179
|
});
|
|
1180
1180
|
},
|
|
1181
1181
|
reducers: {
|
|
@@ -1197,14 +1197,14 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1197
1197
|
addGeoImages: Lc,
|
|
1198
1198
|
updateGeoImage: Bc,
|
|
1199
1199
|
updateGeoImages: Zh,
|
|
1200
|
-
deleteGeoImage:
|
|
1200
|
+
deleteGeoImage: ls,
|
|
1201
1201
|
deleteGeoImages: Nc
|
|
1202
|
-
} =
|
|
1202
|
+
} = Wi.actions, Hc = (t) => t.geoImageReducer.instances, Wc = p([Hc], (t) => Object.values(t)), us = (t) => (e) => e.geoImageReducer.instances[t], em = A(
|
|
1203
1203
|
p([Wc, (t, e) => e], (t, e) => g(t.filter((s) => s.project === e)))
|
|
1204
|
-
), Kc =
|
|
1204
|
+
), Kc = Wi.reducer, H = O((t) => t.offline_id), hs = H.getInitialState({}), Ki = _({
|
|
1205
1205
|
name: "issueAssociations",
|
|
1206
|
-
initialState:
|
|
1207
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1206
|
+
initialState: hs,
|
|
1207
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, hs)),
|
|
1208
1208
|
reducers: {
|
|
1209
1209
|
initializeIssueAssociations: H.initialize,
|
|
1210
1210
|
addIssueAssociation: H.addOne,
|
|
@@ -1222,11 +1222,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1222
1222
|
setIssueAssociation: sm,
|
|
1223
1223
|
updateIssueAssociation: Jc,
|
|
1224
1224
|
updateIssueAssociations: im,
|
|
1225
|
-
addIssueAssociation:
|
|
1226
|
-
addIssueAssociations:
|
|
1227
|
-
deleteIssueAssociation:
|
|
1228
|
-
deleteIssueAssociations:
|
|
1229
|
-
} =
|
|
1225
|
+
addIssueAssociation: ms,
|
|
1226
|
+
addIssueAssociations: Yi,
|
|
1227
|
+
deleteIssueAssociation: ps,
|
|
1228
|
+
deleteIssueAssociations: Ji
|
|
1229
|
+
} = Ki.actions, $e = (t) => t.issueAssociationReducer.instances, nm = p([$e], (t) => Object.values(t)), Xc = (t) => (e) => e.issueAssociationReducer.instances[t], Qc = A(
|
|
1230
1230
|
p(
|
|
1231
1231
|
[$e, (t, e) => e],
|
|
1232
1232
|
(t, e) => g(
|
|
@@ -1243,10 +1243,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1243
1243
|
[$e, (t, e) => e],
|
|
1244
1244
|
(t, e) => g(Object.values(t).filter((s) => s.asset === e))
|
|
1245
1245
|
)
|
|
1246
|
-
), tr =
|
|
1246
|
+
), tr = Ki.reducer, W = O((t) => t.offline_id), fs = W.getInitialState({}), Xi = _({
|
|
1247
1247
|
name: "issueAttachments",
|
|
1248
|
-
initialState:
|
|
1249
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1248
|
+
initialState: fs,
|
|
1249
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fs)),
|
|
1250
1250
|
reducers: {
|
|
1251
1251
|
initializeIssueAttachments: W.initialize,
|
|
1252
1252
|
addIssueAttachment: W.addOne,
|
|
@@ -1261,24 +1261,24 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1261
1261
|
}), {
|
|
1262
1262
|
initializeIssueAttachments: sr,
|
|
1263
1263
|
addIssueAttachment: am,
|
|
1264
|
-
addIssueAttachments:
|
|
1264
|
+
addIssueAttachments: Qi,
|
|
1265
1265
|
setIssueAttachment: ir,
|
|
1266
1266
|
setIssueAttachments: om,
|
|
1267
1267
|
updateIssueAttachment: cm,
|
|
1268
1268
|
updateIssueAttachments: nr,
|
|
1269
1269
|
deleteIssueAttachment: ar,
|
|
1270
|
-
deleteIssueAttachments:
|
|
1271
|
-
} =
|
|
1270
|
+
deleteIssueAttachments: Zi
|
|
1271
|
+
} = Xi.actions, or = (t) => t.issueAttachmentReducer.instances, en = p(
|
|
1272
1272
|
[or],
|
|
1273
1273
|
(t) => Object.values(t)
|
|
1274
1274
|
), cr = A(
|
|
1275
1275
|
p(
|
|
1276
|
-
[
|
|
1276
|
+
[en, (t, e) => e],
|
|
1277
1277
|
(t, e) => g(t.filter(({ issue: s }) => e === s))
|
|
1278
1278
|
)
|
|
1279
1279
|
), rr = (t) => (e) => e.issueAttachmentReducer.instances[t], rm = A(
|
|
1280
1280
|
p(
|
|
1281
|
-
[
|
|
1281
|
+
[en, (t, e) => e],
|
|
1282
1282
|
(t, e) => {
|
|
1283
1283
|
const s = t.filter(({ issue: a }) => a === e), i = s.filter(
|
|
1284
1284
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -1290,10 +1290,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1290
1290
|
return { fileAttachments: i, imageAttachments: n };
|
|
1291
1291
|
}
|
|
1292
1292
|
)
|
|
1293
|
-
), dr =
|
|
1293
|
+
), dr = Xi.reducer, ce = O((t) => t.offline_id), ys = ce.getInitialState({}), tn = _({
|
|
1294
1294
|
name: "issueComments",
|
|
1295
|
-
initialState:
|
|
1296
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1295
|
+
initialState: ys,
|
|
1296
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ys)),
|
|
1297
1297
|
reducers: {
|
|
1298
1298
|
addIssueComment: ce.addOne,
|
|
1299
1299
|
addIssueComments: ce.addMany,
|
|
@@ -1304,18 +1304,18 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1304
1304
|
}
|
|
1305
1305
|
}), {
|
|
1306
1306
|
setIssueComments: lr,
|
|
1307
|
-
setIssueComment:
|
|
1308
|
-
addIssueComment:
|
|
1307
|
+
setIssueComment: As,
|
|
1308
|
+
addIssueComment: gs,
|
|
1309
1309
|
addIssueComments: dm,
|
|
1310
|
-
deleteIssueComment:
|
|
1310
|
+
deleteIssueComment: bs,
|
|
1311
1311
|
deleteIssueComments: lm
|
|
1312
|
-
} =
|
|
1312
|
+
} = tn.actions, ur = (t) => t.issueCommentReducer.instances, hr = (t) => (e) => e.issueCommentReducer.instances[t], um = A(
|
|
1313
1313
|
p([ur, (t, e) => e], (t, e) => g(Object.values(t).filter((s) => s.issue === e)))
|
|
1314
|
-
), mr =
|
|
1314
|
+
), mr = tn.reducer, re = O((t) => t.offline_id), _s = re.getInitialState({}), sn = _({
|
|
1315
1315
|
name: "issues",
|
|
1316
|
-
initialState:
|
|
1316
|
+
initialState: _s,
|
|
1317
1317
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
1318
|
-
Object.assign(e,
|
|
1318
|
+
Object.assign(e, _s);
|
|
1319
1319
|
}),
|
|
1320
1320
|
reducers: {
|
|
1321
1321
|
initializeIssues: re.initialize,
|
|
@@ -1325,7 +1325,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1325
1325
|
deleteIssue: re.deleteOne,
|
|
1326
1326
|
deleteIssues: re.deleteMany
|
|
1327
1327
|
}
|
|
1328
|
-
}), { initializeIssues: pr, addIssue:
|
|
1328
|
+
}), { initializeIssues: pr, addIssue: Ss, addIssues: fr, updateIssue: Ge, deleteIssue: Ts, deleteIssues: yr } = sn.actions, Ar = (t) => t.issueReducer.instances, Rs = (t) => (e) => e.issueReducer.instances[t], hm = A(
|
|
1329
1329
|
p([Ar, (t, e) => e], (t, e) => {
|
|
1330
1330
|
const s = [];
|
|
1331
1331
|
for (const i of e) {
|
|
@@ -1334,12 +1334,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1334
1334
|
}
|
|
1335
1335
|
return g(s);
|
|
1336
1336
|
})
|
|
1337
|
-
), gr =
|
|
1337
|
+
), gr = sn.reducer, K = O(
|
|
1338
1338
|
(t) => t.offline_id
|
|
1339
|
-
),
|
|
1339
|
+
), Os = K.getInitialState({}), nn = _({
|
|
1340
1340
|
name: "issueTypeFieldsAttachments",
|
|
1341
|
-
initialState:
|
|
1342
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1341
|
+
initialState: Os,
|
|
1342
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Os)),
|
|
1343
1343
|
reducers: {
|
|
1344
1344
|
initializeIssueTypeFieldsAttachments: K.initialize,
|
|
1345
1345
|
addIssueTypeFieldsAttachment: K.addOne,
|
|
@@ -1361,7 +1361,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1361
1361
|
updateIssueTypeFieldsAttachments: Sr,
|
|
1362
1362
|
deleteIssueTypeFieldsAttachment: Am,
|
|
1363
1363
|
deleteIssueTypeFieldsAttachments: Tr
|
|
1364
|
-
} =
|
|
1364
|
+
} = nn.actions, Rr = (t) => t.issueTypeFieldsAttachmentReducer.instances, Or = p(
|
|
1365
1365
|
[Rr],
|
|
1366
1366
|
(t) => Object.values(t)
|
|
1367
1367
|
), gm = A(
|
|
@@ -1371,12 +1371,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1371
1371
|
t.filter((s) => s.fields_revision === e)
|
|
1372
1372
|
)
|
|
1373
1373
|
)
|
|
1374
|
-
), bm = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], wr =
|
|
1374
|
+
), bm = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], wr = nn.reducer, Y = O(
|
|
1375
1375
|
(t) => t.offline_id
|
|
1376
|
-
),
|
|
1376
|
+
), ws = Y.getInitialState({}), an = _({
|
|
1377
1377
|
name: "issueTypeFieldValues",
|
|
1378
|
-
initialState:
|
|
1379
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1378
|
+
initialState: ws,
|
|
1379
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ws)),
|
|
1380
1380
|
reducers: {
|
|
1381
1381
|
initializeIssueTypeFieldValues: Y.initialize,
|
|
1382
1382
|
addIssueTypeFieldValues: Y.addOne,
|
|
@@ -1390,20 +1390,20 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1390
1390
|
}
|
|
1391
1391
|
}), {
|
|
1392
1392
|
initializeIssueTypeFieldValues: vr,
|
|
1393
|
-
addIssueTypeFieldValues:
|
|
1393
|
+
addIssueTypeFieldValues: vs,
|
|
1394
1394
|
addIssueTypeFieldValuesMany: _m,
|
|
1395
1395
|
setIssueTypeFieldValues: Sm,
|
|
1396
1396
|
setIssueTypeFieldValuesMany: Tm,
|
|
1397
1397
|
updateIssueTypeFieldValues: je,
|
|
1398
1398
|
updateIssueTypeFieldValuesMany: Rm,
|
|
1399
|
-
deleteIssueTypeFieldValues:
|
|
1399
|
+
deleteIssueTypeFieldValues: Is,
|
|
1400
1400
|
deleteIssueTypeFieldValuesMany: Om
|
|
1401
|
-
} =
|
|
1402
|
-
p([
|
|
1403
|
-
),
|
|
1401
|
+
} = an.actions, Ir = (t) => t.issueTypeFieldValuesReducer.instances, on = p([Ir], (t) => Object.values(t)), wm = A(
|
|
1402
|
+
p([on, (t, e) => e], (t, e) => g(t.filter((s) => s.issue === e)))
|
|
1403
|
+
), Es = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Er = an.reducer, J = O((t) => t.offline_id), Fs = J.getInitialState({}), cn = _({
|
|
1404
1404
|
name: "issueTypeFields",
|
|
1405
|
-
initialState:
|
|
1406
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1405
|
+
initialState: Fs,
|
|
1406
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Fs)),
|
|
1407
1407
|
reducers: {
|
|
1408
1408
|
initializeIssueTypeFields: J.initialize,
|
|
1409
1409
|
addIssueTypeFields: J.addOne,
|
|
@@ -1425,13 +1425,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1425
1425
|
updateIssueTypeFieldsMany: Fm,
|
|
1426
1426
|
deleteIssueTypeFields: jr,
|
|
1427
1427
|
deleteIssueTypeFieldsMany: km
|
|
1428
|
-
} =
|
|
1428
|
+
} = cn.actions, Pr = (t) => t.issueTypeFieldsReducer.instances, dt = p([Pr], (t) => Object.values(t)), qm = A(
|
|
1429
1429
|
p([dt, (t, e) => e], (t, e) => g(t.filter((s) => s.issue_type === e)))
|
|
1430
1430
|
), jm = A(
|
|
1431
1431
|
p([dt, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
1432
1432
|
), Pm = A(
|
|
1433
1433
|
p(
|
|
1434
|
-
[dt,
|
|
1434
|
+
[dt, on, (t, e) => e],
|
|
1435
1435
|
(t, e, s) => {
|
|
1436
1436
|
const i = new Set(
|
|
1437
1437
|
t.filter((n) => n.issue_type === s).map((n) => n.offline_id)
|
|
@@ -1439,12 +1439,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1439
1439
|
return g(e.filter((n) => i.has(n.fields_revision)));
|
|
1440
1440
|
}
|
|
1441
1441
|
)
|
|
1442
|
-
), Dm = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Dr =
|
|
1442
|
+
), Dm = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Dr = cn.reducer, X = O(
|
|
1443
1443
|
(t) => t.offline_id
|
|
1444
|
-
),
|
|
1444
|
+
), ks = X.getInitialState({}), rn = _({
|
|
1445
1445
|
name: "issueTypeFieldValuesAttachments",
|
|
1446
|
-
initialState:
|
|
1447
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1446
|
+
initialState: ks,
|
|
1447
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ks)),
|
|
1448
1448
|
reducers: {
|
|
1449
1449
|
initializeIssueTypeFieldValuesAttachments: X.initialize,
|
|
1450
1450
|
addIssueTypeFieldValuesAttachment: X.addOne,
|
|
@@ -1466,12 +1466,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1466
1466
|
updateIssueTypeFieldValuesAttachments: xr,
|
|
1467
1467
|
deleteIssueTypeFieldValuesAttachment: $m,
|
|
1468
1468
|
deleteIssueTypeFieldValuesAttachments: tt
|
|
1469
|
-
} =
|
|
1470
|
-
[
|
|
1469
|
+
} = rn.actions, dn = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, Mr = p(
|
|
1470
|
+
[dn],
|
|
1471
1471
|
(t) => Object.values(t)
|
|
1472
1472
|
), Um = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], zr = A(
|
|
1473
1473
|
p(
|
|
1474
|
-
[
|
|
1474
|
+
[dn, (t, e) => e],
|
|
1475
1475
|
(t, e) => {
|
|
1476
1476
|
const s = new Set(e);
|
|
1477
1477
|
return g(
|
|
@@ -1484,11 +1484,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1484
1484
|
[Mr, (t, e) => e],
|
|
1485
1485
|
(t, e) => g(t.filter((s) => s.field_values === e))
|
|
1486
1486
|
)
|
|
1487
|
-
), Ur =
|
|
1487
|
+
), Ur = rn.reducer, he = O((t) => t.offline_id), qs = he.getInitialState({}), ln = _({
|
|
1488
1488
|
name: "issueTypes",
|
|
1489
|
-
initialState:
|
|
1489
|
+
initialState: qs,
|
|
1490
1490
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
1491
|
-
Object.assign(e,
|
|
1491
|
+
Object.assign(e, qs);
|
|
1492
1492
|
}),
|
|
1493
1493
|
reducers: {
|
|
1494
1494
|
initializeIssueTypes: he.initialize,
|
|
@@ -1497,10 +1497,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1497
1497
|
updateIssueType: he.updateOne,
|
|
1498
1498
|
removeIssueType: he.deleteOne
|
|
1499
1499
|
}
|
|
1500
|
-
}), { initializeIssueTypes: Vr, setIssueType: Pe, addIssueType: Gr, updateIssueType: Lr, removeIssueType:
|
|
1500
|
+
}), { initializeIssueTypes: Vr, setIssueType: Pe, addIssueType: Gr, updateIssueType: Lr, removeIssueType: js } = ln.actions, Br = (t) => t.issueTypeReducer.instances, Nr = p(
|
|
1501
1501
|
Br,
|
|
1502
1502
|
(t) => Object.values(t)
|
|
1503
|
-
),
|
|
1503
|
+
), Ps = (t) => (e) => e.issueTypeReducer.instances[t], Vm = (t) => (e) => {
|
|
1504
1504
|
const s = [];
|
|
1505
1505
|
for (const i of t) {
|
|
1506
1506
|
const n = e.issueTypeReducer.instances[i];
|
|
@@ -1512,17 +1512,17 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1512
1512
|
[Nr, (t, e) => e],
|
|
1513
1513
|
(t, e) => g(t.filter((s) => s.organization === e))
|
|
1514
1514
|
)
|
|
1515
|
-
),
|
|
1515
|
+
), un = A(
|
|
1516
1516
|
p(
|
|
1517
1517
|
[(t) => t.issueReducer.instances, (t, e) => e],
|
|
1518
1518
|
(t, e) => g(
|
|
1519
1519
|
Object.values(t).filter((s) => s.issue_type === e)
|
|
1520
1520
|
)
|
|
1521
1521
|
)
|
|
1522
|
-
), Lm = (t) => (e) =>
|
|
1522
|
+
), Lm = (t) => (e) => un(t)(e).length, Hr = ln.reducer, de = O((t) => t.offline_id), Ds = de.getInitialState({}), hn = _({
|
|
1523
1523
|
name: "issueUpdates",
|
|
1524
|
-
initialState:
|
|
1525
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1524
|
+
initialState: Ds,
|
|
1525
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ds)),
|
|
1526
1526
|
reducers: {
|
|
1527
1527
|
initializeIssueUpdates: de.setMany,
|
|
1528
1528
|
setIssueUpdate: de.setOne,
|
|
@@ -1538,21 +1538,21 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1538
1538
|
addIssueUpdates: Yr,
|
|
1539
1539
|
deleteIssueUpdate: Jr,
|
|
1540
1540
|
deleteIssueUpdates: Xr
|
|
1541
|
-
} =
|
|
1541
|
+
} = hn.actions, Qr = (t) => t.issueUpdateReducer.instances, Zr = A(
|
|
1542
1542
|
p(
|
|
1543
1543
|
[Qr, (t, e) => e],
|
|
1544
1544
|
(t, e) => g(Object.values(t).filter((s) => s.issue === e))
|
|
1545
1545
|
)
|
|
1546
|
-
), ed =
|
|
1546
|
+
), ed = hn.reducer, Me = O((t) => t.offline_id), Cs = Me.getInitialState({}), mn = _({
|
|
1547
1547
|
name: "license",
|
|
1548
|
-
initialState:
|
|
1549
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1548
|
+
initialState: Cs,
|
|
1549
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Cs)),
|
|
1550
1550
|
reducers: {
|
|
1551
1551
|
initializeLicences: Me.initialize,
|
|
1552
1552
|
addLicenses: Me.addMany,
|
|
1553
1553
|
updateLicense: Me.updateOne
|
|
1554
1554
|
}
|
|
1555
|
-
}), { initializeLicences: td, addLicenses: Nm, updateLicense: se } =
|
|
1555
|
+
}), { initializeLicences: td, addLicenses: Nm, updateLicense: se } = mn.actions, lt = (t) => t.licenseReducer.instances, Hm = (t) => (e) => e.licenseReducer.instances[t], sd = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), Wm = p(
|
|
1556
1556
|
[lt],
|
|
1557
1557
|
(t) => g(Object.values(t).filter((e) => e.is_active))
|
|
1558
1558
|
), Km = p(
|
|
@@ -1560,13 +1560,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1560
1560
|
(t) => fe(
|
|
1561
1561
|
Object.values(t).filter((e) => e.project).reduce((e, s) => ({ ...e, [s.project]: s }), {})
|
|
1562
1562
|
)
|
|
1563
|
-
), id =
|
|
1563
|
+
), id = mn.reducer, xs = {
|
|
1564
1564
|
users: {},
|
|
1565
1565
|
currentUser: null
|
|
1566
|
-
},
|
|
1566
|
+
}, pn = _({
|
|
1567
1567
|
name: "users",
|
|
1568
|
-
initialState:
|
|
1569
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1568
|
+
initialState: xs,
|
|
1569
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xs)),
|
|
1570
1570
|
reducers: {
|
|
1571
1571
|
setUsers: (t, e) => {
|
|
1572
1572
|
const s = {};
|
|
@@ -1593,7 +1593,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1593
1593
|
delete t.users[e.payload];
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
|
-
}), { setCurrentUser: Ym, setProfilePicture: Jm, setUsers: nd, addUsers: Xm, removeUser: ad } =
|
|
1596
|
+
}), { setCurrentUser: Ym, setProfilePicture: Jm, setUsers: nd, addUsers: Xm, removeUser: ad } = pn.actions, od = pn.reducer, ut = (t) => t.userReducer.currentUser, ht = (t) => t.userReducer.users, Qm = (t) => (e) => e.userReducer.users[t], Zm = A(
|
|
1597
1597
|
p([ht, (t, e) => e], (t, e) => {
|
|
1598
1598
|
const s = [];
|
|
1599
1599
|
for (const i of e) {
|
|
@@ -1604,17 +1604,17 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1604
1604
|
})
|
|
1605
1605
|
), ze = O(
|
|
1606
1606
|
(t) => t.offline_id
|
|
1607
|
-
),
|
|
1607
|
+
), Ms = ze.getInitialState({}), fn = _({
|
|
1608
1608
|
name: "organizationAccess",
|
|
1609
|
-
initialState:
|
|
1610
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1609
|
+
initialState: Ms,
|
|
1610
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ms)),
|
|
1611
1611
|
reducers: {
|
|
1612
1612
|
initializeOrganizationAccesses: ze.initialize,
|
|
1613
1613
|
updateOrganizationAccess: ze.updateOne,
|
|
1614
1614
|
deleteOrganizationAccess: ze.deleteOne
|
|
1615
1615
|
}
|
|
1616
|
-
}), { initializeOrganizationAccesses: cd, updateOrganizationAccess: rd, deleteOrganizationAccess: dd } =
|
|
1617
|
-
[ut,
|
|
1616
|
+
}), { initializeOrganizationAccesses: cd, updateOrganizationAccess: rd, deleteOrganizationAccess: dd } = fn.actions, yn = (t) => t.organizationAccessReducer.instances, ep = (t) => (e) => e.organizationAccessReducer.instances[t], tp = p(
|
|
1617
|
+
[ut, yn],
|
|
1618
1618
|
(t, e) => Object.values(e).find(
|
|
1619
1619
|
(i) => i.user === (t == null ? void 0 : t.id)
|
|
1620
1620
|
) ?? null
|
|
@@ -1625,18 +1625,18 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1625
1625
|
for (const s of Object.values(t.organizationAccessReducer.instances))
|
|
1626
1626
|
e[s.user] = s;
|
|
1627
1627
|
return fe(e);
|
|
1628
|
-
}, ud =
|
|
1628
|
+
}, ud = fn.reducer, Se = O((t) => t.offline_id), zs = Se.getInitialState({}), An = _({
|
|
1629
1629
|
name: "projectAccess",
|
|
1630
|
-
initialState:
|
|
1631
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1630
|
+
initialState: zs,
|
|
1631
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zs)),
|
|
1632
1632
|
reducers: {
|
|
1633
1633
|
initializeProjectAccesses: Se.initialize,
|
|
1634
1634
|
updateProjectAccess: Se.updateOne,
|
|
1635
1635
|
deleteProjectAccess: Se.deleteOne,
|
|
1636
1636
|
deleteProjectAccesses: Se.deleteMany
|
|
1637
1637
|
}
|
|
1638
|
-
}), { initializeProjectAccesses:
|
|
1639
|
-
|
|
1638
|
+
}), { initializeProjectAccesses: gn, updateProjectAccess: hd, deleteProjectAccess: md, deleteProjectAccesses: pd } = An.actions, bn = (t) => t.projectAccessReducer.instances, fd = p(
|
|
1639
|
+
bn,
|
|
1640
1640
|
(t) => Object.values(t)
|
|
1641
1641
|
), ip = (t) => (e) => e.projectAccessReducer.instances[t], np = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
|
|
1642
1642
|
(s) => s.user === t.id
|
|
@@ -1645,12 +1645,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1645
1645
|
for (const s of Object.values(t.projectAccessReducer.instances))
|
|
1646
1646
|
e[s.user] = s;
|
|
1647
1647
|
return fe(e);
|
|
1648
|
-
}, Ad =
|
|
1648
|
+
}, Ad = An.reducer, $s = {
|
|
1649
1649
|
projects: {}
|
|
1650
|
-
},
|
|
1650
|
+
}, _n = _({
|
|
1651
1651
|
name: "projects",
|
|
1652
|
-
initialState:
|
|
1653
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1652
|
+
initialState: $s,
|
|
1653
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, $s)),
|
|
1654
1654
|
reducers: {
|
|
1655
1655
|
setProjects: (t, e) => {
|
|
1656
1656
|
const s = {};
|
|
@@ -1671,8 +1671,8 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1671
1671
|
throw new Error("Accept project invite: user is not in this project");
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
}), { setProjects: gd, updateProject: bd, deleteProject: _d, acceptProjectInvite: Sd } =
|
|
1675
|
-
[
|
|
1674
|
+
}), { setProjects: gd, updateProject: bd, deleteProject: _d, acceptProjectInvite: Sd } = _n.actions, Td = _n.reducer, Sn = (t) => t.projectReducer.projects, ap = (t) => (e) => e.projectReducer.projects[t], Rd = p(
|
|
1675
|
+
[bn],
|
|
1676
1676
|
(t) => Object.values(t).map((e) => e.user)
|
|
1677
1677
|
), Od = p(
|
|
1678
1678
|
[Rd, ht],
|
|
@@ -1686,32 +1686,32 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1686
1686
|
if (n.id === (t == null ? void 0 : t.id))
|
|
1687
1687
|
return 1;
|
|
1688
1688
|
const a = s[i.id], o = s[n.id];
|
|
1689
|
-
return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) ===
|
|
1689
|
+
return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === Zs.ADMIN ? -1 : 1;
|
|
1690
1690
|
})
|
|
1691
1691
|
)
|
|
1692
|
-
),
|
|
1692
|
+
), Us = {
|
|
1693
1693
|
organizations: {}
|
|
1694
|
-
},
|
|
1694
|
+
}, Tn = _({
|
|
1695
1695
|
name: "organizations",
|
|
1696
|
-
initialState:
|
|
1697
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1696
|
+
initialState: Us,
|
|
1697
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Us)),
|
|
1698
1698
|
reducers: {
|
|
1699
1699
|
setOrganizations: (t, e) => {
|
|
1700
1700
|
for (const s of e.payload)
|
|
1701
1701
|
t.organizations[s.id] = s;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
}), { setOrganizations: wd } =
|
|
1704
|
+
}), { setOrganizations: wd } = Tn.actions, vd = (t) => t.organizationReducer.organizations, Id = p([vd], (t) => Object.values(t)), cp = (t) => (e) => e.organizationReducer.organizations[t], rp = p(
|
|
1705
1705
|
[Id],
|
|
1706
1706
|
(t) => g(
|
|
1707
1707
|
Object.values(t).filter((e) => e.has_access)
|
|
1708
1708
|
)
|
|
1709
1709
|
), Ed = p(
|
|
1710
|
-
[
|
|
1710
|
+
[yn],
|
|
1711
1711
|
(t) => Object.values(t).map((e) => e.user)
|
|
1712
1712
|
), dp = A(
|
|
1713
1713
|
p(
|
|
1714
|
-
[
|
|
1714
|
+
[Sn, (t, e) => e],
|
|
1715
1715
|
(t, e) => g(
|
|
1716
1716
|
Object.values(t).filter((s) => s.organization_owner === e)
|
|
1717
1717
|
)
|
|
@@ -1734,10 +1734,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1734
1734
|
if (n.id === (t == null ? void 0 : t.id))
|
|
1735
1735
|
return 1;
|
|
1736
1736
|
const a = s[i.id], o = s[n.id];
|
|
1737
|
-
return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) ===
|
|
1737
|
+
return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === ei.ADMIN ? -1 : 1;
|
|
1738
1738
|
})
|
|
1739
1739
|
)
|
|
1740
|
-
), kd =
|
|
1740
|
+
), kd = Tn.reducer, qd = (t, e, s) => {
|
|
1741
1741
|
const i = t.uuid ? t : { ...t, uuid: le() };
|
|
1742
1742
|
return {
|
|
1743
1743
|
payload: i,
|
|
@@ -1753,13 +1753,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
1755
|
};
|
|
1756
|
-
},
|
|
1756
|
+
}, Vs = {
|
|
1757
1757
|
deletedRequests: [],
|
|
1758
1758
|
latestRetryTime: 0
|
|
1759
|
-
},
|
|
1759
|
+
}, Rn = _({
|
|
1760
1760
|
name: "outbox",
|
|
1761
|
-
initialState:
|
|
1762
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1761
|
+
initialState: Vs,
|
|
1762
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vs)),
|
|
1763
1763
|
reducers: {
|
|
1764
1764
|
// enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
|
|
1765
1765
|
// Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
|
|
@@ -1783,10 +1783,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1783
1783
|
t.latestRetryTime = e.payload;
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
}), hp = (t) => t.outboxReducer.deletedRequests, mp = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: jd, markForDeletion: pp, markAsDeleted: Pd, _setLatestRetryTime: Dd } =
|
|
1786
|
+
}), hp = (t) => t.outboxReducer.deletedRequests, mp = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: jd, markForDeletion: pp, markAsDeleted: Pd, _setLatestRetryTime: Dd } = Rn.actions, Cd = Rn.reducer, Q = O((t) => t.offline_id), Gs = Q.getInitialState({}), On = _({
|
|
1787
1787
|
name: "projectAttachments",
|
|
1788
|
-
initialState:
|
|
1789
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1788
|
+
initialState: Gs,
|
|
1789
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gs)),
|
|
1790
1790
|
reducers: {
|
|
1791
1791
|
initializeProjectAttachments: Q.initialize,
|
|
1792
1792
|
addProjectAttachment: Q.addOne,
|
|
@@ -1807,15 +1807,15 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1807
1807
|
updateProjectAttachment: yp,
|
|
1808
1808
|
updateProjectAttachments: Ud,
|
|
1809
1809
|
deleteProjectAttachment: Vd,
|
|
1810
|
-
deleteProjectAttachments:
|
|
1811
|
-
} =
|
|
1810
|
+
deleteProjectAttachments: wn
|
|
1811
|
+
} = On.actions, Gd = (t) => t.projectAttachmentReducer.instances, vn = p(
|
|
1812
1812
|
[Gd],
|
|
1813
1813
|
(t) => Object.values(t)
|
|
1814
1814
|
), Ld = (t) => (e) => e.projectAttachmentReducer.instances[t], Bd = A(
|
|
1815
|
-
p([
|
|
1815
|
+
p([vn, (t, e) => e], (t, e) => g(t.filter(({ project: s }) => e === s)))
|
|
1816
1816
|
), Ap = A(
|
|
1817
1817
|
p(
|
|
1818
|
-
[
|
|
1818
|
+
[vn, (t, e) => e],
|
|
1819
1819
|
(t, e) => {
|
|
1820
1820
|
const s = t.filter(({ project: a }) => e === a), i = s.filter(
|
|
1821
1821
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -1827,13 +1827,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1827
1827
|
return { fileAttachments: i, imageAttachments: n };
|
|
1828
1828
|
}
|
|
1829
1829
|
)
|
|
1830
|
-
), Nd =
|
|
1830
|
+
), Nd = On.reducer, Z = O((t) => t.offline_id), Ls = Z.getInitialState({
|
|
1831
1831
|
activeProjectFileId: null,
|
|
1832
1832
|
isImportingProjectFile: !1
|
|
1833
|
-
}),
|
|
1833
|
+
}), In = _({
|
|
1834
1834
|
name: "projectFiles",
|
|
1835
|
-
initialState:
|
|
1836
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1835
|
+
initialState: Ls,
|
|
1836
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ls)),
|
|
1837
1837
|
reducers: {
|
|
1838
1838
|
initializeProjectFiles: Z.initialize,
|
|
1839
1839
|
setProjectFile: Z.setOne,
|
|
@@ -1873,7 +1873,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1873
1873
|
setProjectFiles: bp,
|
|
1874
1874
|
addProjectFile: _p,
|
|
1875
1875
|
addProjectFiles: Wd,
|
|
1876
|
-
updateProjectFile:
|
|
1876
|
+
updateProjectFile: Bs,
|
|
1877
1877
|
updateProjectFiles: Sp,
|
|
1878
1878
|
deleteProjectFile: Kd,
|
|
1879
1879
|
deleteProjectFiles: Yd,
|
|
@@ -1882,9 +1882,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1882
1882
|
setActiveProjectFileId: Xd,
|
|
1883
1883
|
saveActiveProjectFileBounds: Qd,
|
|
1884
1884
|
resetProjectFileObjectUrls: Tp
|
|
1885
|
-
} =
|
|
1885
|
+
} = In.actions, Zd = (t) => t.projectFileReducer.instances, el = p([Zd], (t) => g(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Rp = (t) => (e) => e.projectFileReducer.instances[t], Op = (t) => t.projectFileReducer.activeProjectFileId, wp = (t) => t.projectFileReducer.isImportingProjectFile, tl = In.reducer, sl = {
|
|
1886
1886
|
isRehydrated: !1
|
|
1887
|
-
},
|
|
1887
|
+
}, En = _({
|
|
1888
1888
|
name: "rehydrated",
|
|
1889
1889
|
initialState: sl,
|
|
1890
1890
|
// The `reducers` field lets us define reducers and generate associated actions
|
|
@@ -1893,10 +1893,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1893
1893
|
t.isRehydrated = e.payload;
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
}), { setRehydrated: vp } =
|
|
1896
|
+
}), { setRehydrated: vp } = En.actions, Ip = (t) => t.rehydratedReducer.isRehydrated, il = En.reducer, me = O((t) => t.offline_id), Ns = me.getInitialState({}), Fn = _({
|
|
1897
1897
|
name: "teams",
|
|
1898
|
-
initialState:
|
|
1899
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1898
|
+
initialState: Ns,
|
|
1899
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ns)),
|
|
1900
1900
|
reducers: {
|
|
1901
1901
|
setTeam: me.setOne,
|
|
1902
1902
|
initializeTeams: me.initialize,
|
|
@@ -1904,9 +1904,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1904
1904
|
updateTeam: me.updateOne,
|
|
1905
1905
|
deleteTeam: me.deleteOne
|
|
1906
1906
|
}
|
|
1907
|
-
}), { setTeam: Ae, initializeTeams: nl, addTeam: al, updateTeam:
|
|
1907
|
+
}), { setTeam: Ae, initializeTeams: nl, addTeam: al, updateTeam: Hs, deleteTeam: Ws } = Fn.actions, kn = (t) => t.teamReducer.instances, qn = p([kn], (t) => Object.values(t)), ge = (t) => (e) => e.teamReducer.instances[t], Ep = A(
|
|
1908
1908
|
p(
|
|
1909
|
-
[
|
|
1909
|
+
[kn, (t, e) => e],
|
|
1910
1910
|
(t, e) => {
|
|
1911
1911
|
const s = [];
|
|
1912
1912
|
for (const i of e) {
|
|
@@ -1918,37 +1918,37 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1918
1918
|
)
|
|
1919
1919
|
), Fp = A(
|
|
1920
1920
|
p(
|
|
1921
|
-
[
|
|
1921
|
+
[qn, (t, e) => e],
|
|
1922
1922
|
(t, e) => g(t.filter((s) => s.organization === e))
|
|
1923
1923
|
)
|
|
1924
1924
|
), kp = A(
|
|
1925
|
-
p([
|
|
1926
|
-
), ol =
|
|
1925
|
+
p([qn, (t, e) => e], (t, e) => g(t.filter((s) => s.members.includes(e))))
|
|
1926
|
+
), ol = Fn.reducer, cl = {
|
|
1927
1927
|
version: 0
|
|
1928
1928
|
}, rl = _({
|
|
1929
1929
|
name: "versioning",
|
|
1930
1930
|
initialState: cl,
|
|
1931
1931
|
reducers: {}
|
|
1932
1932
|
}), dl = rl.reducer;
|
|
1933
|
-
let
|
|
1933
|
+
let jn;
|
|
1934
1934
|
function ll(t) {
|
|
1935
|
-
|
|
1935
|
+
jn = t;
|
|
1936
1936
|
}
|
|
1937
1937
|
function ve() {
|
|
1938
|
-
return
|
|
1938
|
+
return jn;
|
|
1939
1939
|
}
|
|
1940
|
-
let
|
|
1940
|
+
let Pn;
|
|
1941
1941
|
function ul(t) {
|
|
1942
|
-
|
|
1942
|
+
Pn = t;
|
|
1943
1943
|
}
|
|
1944
1944
|
function hl() {
|
|
1945
|
-
return
|
|
1945
|
+
return Pn;
|
|
1946
1946
|
}
|
|
1947
|
-
const
|
|
1948
|
-
class
|
|
1947
|
+
const Dn = {};
|
|
1948
|
+
class Cn {
|
|
1949
1949
|
constructor(e) {
|
|
1950
1950
|
y(this, "client");
|
|
1951
|
-
|
|
1951
|
+
Dn[this.constructor.name] = this, this.client = e;
|
|
1952
1952
|
}
|
|
1953
1953
|
async enqueueRequest(e) {
|
|
1954
1954
|
return this.client.enqueueRequest(e, this.host, this.constructor.name);
|
|
@@ -1958,21 +1958,21 @@ class xn {
|
|
|
1958
1958
|
this.client.store.dispatch(e);
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
|
-
const
|
|
1961
|
+
const xn = "versioning", Mn = () => $n.length - 1, zn = (t) => (t[xn] = { version: Mn() }, t), Ks = () => zn({}), ml = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), pl = (t) => (e) => {
|
|
1962
1962
|
var s;
|
|
1963
|
-
return e === void 0 && (e = {}), ((s = e[
|
|
1964
|
-
},
|
|
1963
|
+
return e === void 0 && (e = {}), ((s = e[xn]) == null ? void 0 : s.version) === Mn() ? e : t(e);
|
|
1964
|
+
}, $n = [zn, Ks, Ks, ml], fl = Object.fromEntries($n.map((t, e) => [e, pl(t)])), Un = "versioning", yl = {
|
|
1965
1965
|
// TODO: attachmentReducer,
|
|
1966
|
-
[
|
|
1966
|
+
[Un]: dl,
|
|
1967
1967
|
fileReducer: dc,
|
|
1968
|
-
authReducer:
|
|
1969
|
-
categoryReducer:
|
|
1970
|
-
assetReducer:
|
|
1971
|
-
assetAttachmentReducer:
|
|
1972
|
-
assetStageCompletionReducer:
|
|
1973
|
-
assetStageReducer:
|
|
1974
|
-
assetTypeReducer:
|
|
1975
|
-
assetTypeAttachmentReducer:
|
|
1968
|
+
authReducer: Po,
|
|
1969
|
+
categoryReducer: Mo,
|
|
1970
|
+
assetReducer: Ma,
|
|
1971
|
+
assetAttachmentReducer: Pa,
|
|
1972
|
+
assetStageCompletionReducer: La,
|
|
1973
|
+
assetStageReducer: Ha,
|
|
1974
|
+
assetTypeReducer: qo,
|
|
1975
|
+
assetTypeAttachmentReducer: io,
|
|
1976
1976
|
issueReducer: gr,
|
|
1977
1977
|
issueAttachmentReducer: dr,
|
|
1978
1978
|
issueTypeReducer: Hr,
|
|
@@ -1993,9 +1993,9 @@ const Mn = "versioning", zn = () => Un.length - 1, $n = (t) => (t[Mn] = { versio
|
|
|
1993
1993
|
emailDomainsReducer: ac,
|
|
1994
1994
|
licenseReducer: id,
|
|
1995
1995
|
documentsReducer: Qo,
|
|
1996
|
-
documentAttachmentReducer:
|
|
1996
|
+
documentAttachmentReducer: Ho,
|
|
1997
1997
|
teamReducer: ol,
|
|
1998
|
-
agentsReducer:
|
|
1998
|
+
agentsReducer: va,
|
|
1999
1999
|
issueCommentReducer: mr,
|
|
2000
2000
|
issueUpdateReducer: ed,
|
|
2001
2001
|
geoImageReducer: Kc,
|
|
@@ -2004,11 +2004,11 @@ const Mn = "versioning", zn = () => Un.length - 1, $n = (t) => (t[Mn] = { versio
|
|
|
2004
2004
|
issueTypeFieldValuesReducer: Er,
|
|
2005
2005
|
issueTypeFieldsAttachmentReducer: wr,
|
|
2006
2006
|
issueTypeFieldValuesAttachmentReducer: Ur,
|
|
2007
|
-
assetTypeFieldsReducer:
|
|
2008
|
-
assetTypeFieldValuesReducer:
|
|
2009
|
-
assetTypeFieldsAttachmentReducer:
|
|
2010
|
-
assetTypeFieldValuesAttachmentReducer:
|
|
2011
|
-
},
|
|
2007
|
+
assetTypeFieldsReducer: Ao,
|
|
2008
|
+
assetTypeFieldValuesReducer: Fo,
|
|
2009
|
+
assetTypeFieldsAttachmentReducer: uo,
|
|
2010
|
+
assetTypeFieldValuesAttachmentReducer: Ro
|
|
2011
|
+
}, Ys = Kn(yl), Al = "RESET", qp = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Ys(void 0, e) : Ys(t, e);
|
|
2012
2012
|
let Le = null;
|
|
2013
2013
|
function pe() {
|
|
2014
2014
|
const t = ve();
|
|
@@ -2043,13 +2043,13 @@ const Tl = {
|
|
|
2043
2043
|
effect: Sl,
|
|
2044
2044
|
// Casting needed because we are saving FullOfflineAction objects, not just OfflineAction objects,
|
|
2045
2045
|
// but redux-offline does not know this.
|
|
2046
|
-
discard:
|
|
2046
|
+
discard: Bn,
|
|
2047
2047
|
returnPromises: !0,
|
|
2048
2048
|
persistCallback: gl,
|
|
2049
2049
|
retry: ql,
|
|
2050
2050
|
// Modify the configuration of the offline store to use localforage
|
|
2051
2051
|
// which uses IndexedDB by default (persists even on mobile when installed as a PWA, unlike localStorage)
|
|
2052
|
-
persistOptions: { storage:
|
|
2052
|
+
persistOptions: { storage: Qn },
|
|
2053
2053
|
// TODO: custom enqueue implementation to take care of intelligently cancelling "create/delete same issue",
|
|
2054
2054
|
// and custom dequeue for e.g. if user insists on removing a failed a "create issue", then remove the "edit
|
|
2055
2055
|
// that same issue"
|
|
@@ -2060,7 +2060,7 @@ const Tl = {
|
|
|
2060
2060
|
// Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
|
|
2061
2061
|
peek: (...t) => kl(...t)
|
|
2062
2062
|
}
|
|
2063
|
-
}, Rl =
|
|
2063
|
+
}, Rl = Zn(fl, Un), jp = Yn(Xn(Tl), Rl);
|
|
2064
2064
|
function Ol(t) {
|
|
2065
2065
|
function e(s) {
|
|
2066
2066
|
return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
|
|
@@ -2072,8 +2072,8 @@ function Ol(t) {
|
|
|
2072
2072
|
if (s.response && e(s.response.response)) return s.response.response;
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
|
-
async function
|
|
2076
|
-
const s =
|
|
2075
|
+
async function Vn(t, e) {
|
|
2076
|
+
const s = Dn[t.meta.offline.effect.serviceName];
|
|
2077
2077
|
if (!s)
|
|
2078
2078
|
throw new Error(`Service ${t.meta.offline.effect.serviceName} not found`);
|
|
2079
2079
|
const i = s instanceof w;
|
|
@@ -2103,7 +2103,7 @@ async function Gn(t, e) {
|
|
|
2103
2103
|
return v.set("x-amz-checksum-sha1", ye).field({ ...r, ...q.fields }).attach("file", E);
|
|
2104
2104
|
}
|
|
2105
2105
|
return v.send(r);
|
|
2106
|
-
},
|
|
2106
|
+
}, Nn = {
|
|
2107
2107
|
[d.GET]: () => b ? ue.get(S.toString()).responseType("blob") : ue.get(S.toString()),
|
|
2108
2108
|
[d.POST]: () => {
|
|
2109
2109
|
const v = ue.post(S.toString());
|
|
@@ -2122,7 +2122,7 @@ async function Gn(t, e) {
|
|
|
2122
2122
|
return ee(v);
|
|
2123
2123
|
}
|
|
2124
2124
|
}[c];
|
|
2125
|
-
let ie =
|
|
2125
|
+
let ie = Nn();
|
|
2126
2126
|
if (f && i) {
|
|
2127
2127
|
const v = s.auth.getAuthHeader();
|
|
2128
2128
|
ie = ie.set("Authorization", v);
|
|
@@ -2134,7 +2134,7 @@ async function Gn(t, e) {
|
|
|
2134
2134
|
const q = Ol(v), ye = q == null ? void 0 : q.status;
|
|
2135
2135
|
if (i && ye === 401)
|
|
2136
2136
|
return await s.auth.handleUnauthorized(ie, q), ie.query(l);
|
|
2137
|
-
throw new F({ response: q, innerError: v, discard:
|
|
2137
|
+
throw new F({ response: q, innerError: v, discard: Ln.includes(ye) });
|
|
2138
2138
|
}
|
|
2139
2139
|
}
|
|
2140
2140
|
class wl {
|
|
@@ -2153,7 +2153,7 @@ class wl {
|
|
|
2153
2153
|
return this._all;
|
|
2154
2154
|
}
|
|
2155
2155
|
}
|
|
2156
|
-
class
|
|
2156
|
+
class Gn {
|
|
2157
2157
|
constructor() {
|
|
2158
2158
|
y(this, "next");
|
|
2159
2159
|
this.next = null;
|
|
@@ -2168,16 +2168,16 @@ class Ln {
|
|
|
2168
2168
|
if (console.debug("Middleware finished. Performing request:", e), !ve()) throw new Error("Client store not set");
|
|
2169
2169
|
const i = hl();
|
|
2170
2170
|
if (!i) throw new Error("Client SDK not set");
|
|
2171
|
-
return
|
|
2171
|
+
return Vn(e, i);
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
2175
|
-
class vl extends
|
|
2175
|
+
class vl extends Gn {
|
|
2176
2176
|
async run(e) {
|
|
2177
2177
|
return super.run(e);
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
|
-
class Il extends
|
|
2180
|
+
class Il extends Gn {
|
|
2181
2181
|
async run(e) {
|
|
2182
2182
|
return super.run(e);
|
|
2183
2183
|
}
|
|
@@ -2187,8 +2187,8 @@ function Fl(t) {
|
|
|
2187
2187
|
var e;
|
|
2188
2188
|
return (e = El[0]) == null ? void 0 : e.run(t);
|
|
2189
2189
|
}
|
|
2190
|
-
const
|
|
2191
|
-
function
|
|
2190
|
+
const Ln = [400, 409, 403, 404, 405, 500];
|
|
2191
|
+
function Bn(t, e, s = 0) {
|
|
2192
2192
|
var c;
|
|
2193
2193
|
if (console.debug(
|
|
2194
2194
|
"Considering discarding request due to error:",
|
|
@@ -2222,7 +2222,7 @@ Retries:`,
|
|
|
2222
2222
|
return console.debug("Discarding request due to deletion:", e), r();
|
|
2223
2223
|
if (t instanceof F) {
|
|
2224
2224
|
const l = t.status || ((c = t.response) == null ? void 0 : c.status);
|
|
2225
|
-
if (l || console.warn("Error has no status code:", t), l !== void 0 &&
|
|
2225
|
+
if (l || console.warn("Error has no status code:", t), l !== void 0 && Ln.includes(l)) {
|
|
2226
2226
|
console.warn("Discarding request due to error:", t, `
|
|
2227
2227
|
Action:`, e);
|
|
2228
2228
|
const h = pe();
|
|
@@ -2242,9 +2242,9 @@ function kl(t, e, s) {
|
|
|
2242
2242
|
return (i = pe()) == null ? void 0 : i.peek();
|
|
2243
2243
|
}
|
|
2244
2244
|
function ql(t, e) {
|
|
2245
|
-
return ve().dispatch(Dd((/* @__PURE__ */ new Date()).getTime())),
|
|
2245
|
+
return ve().dispatch(Dd((/* @__PURE__ */ new Date()).getTime())), la;
|
|
2246
2246
|
}
|
|
2247
|
-
const we = "An unknown error occurred", jl = 500,
|
|
2247
|
+
const we = "An unknown error occurred", jl = 500, Js = ["non_field_errors", "detail"];
|
|
2248
2248
|
function Pl(t, e) {
|
|
2249
2249
|
let s;
|
|
2250
2250
|
if (t != null && t.body)
|
|
@@ -2256,7 +2256,7 @@ function Pl(t, e) {
|
|
|
2256
2256
|
s = i.message;
|
|
2257
2257
|
else
|
|
2258
2258
|
try {
|
|
2259
|
-
s = Object.entries(i).map(([n, a]) => typeof a == "string" ?
|
|
2259
|
+
s = Object.entries(i).map(([n, a]) => typeof a == "string" ? Js.includes(n) ? a : `${n}: ${a}` : Array.isArray(a) ? Js.includes(n) ? a.join(`
|
|
2260
2260
|
`) : a.map((o) => `${n}: ${o}`).join(`
|
|
2261
2261
|
`) : `${n}: ${JSON.stringify(a)}`).join(`
|
|
2262
2262
|
`);
|
|
@@ -2293,7 +2293,7 @@ class Pp {
|
|
|
2293
2293
|
});
|
|
2294
2294
|
}
|
|
2295
2295
|
_enqueueRequest(e, s, i) {
|
|
2296
|
-
const n = new
|
|
2296
|
+
const n = new ua(), a = { ...e, BASE_URL: s, serviceName: i };
|
|
2297
2297
|
if (e.immediate) {
|
|
2298
2298
|
const o = {
|
|
2299
2299
|
...a,
|
|
@@ -2312,10 +2312,10 @@ class Pp {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
2314
|
};
|
|
2315
|
-
|
|
2315
|
+
Vn(r, this).then((u) => {
|
|
2316
2316
|
n.resolve(u.body);
|
|
2317
2317
|
}).catch((u) => {
|
|
2318
|
-
|
|
2318
|
+
Bn(u, r), u instanceof Error ? n.reject(u) : n.reject(new Error((u ?? we).toString()));
|
|
2319
2319
|
});
|
|
2320
2320
|
} else {
|
|
2321
2321
|
const o = this.store.dispatch(
|
|
@@ -2353,7 +2353,7 @@ class Te {
|
|
|
2353
2353
|
constructor() {
|
|
2354
2354
|
y(this, "graph");
|
|
2355
2355
|
y(this, "requestAttemptCounter");
|
|
2356
|
-
this.graph = new
|
|
2356
|
+
this.graph = new ea(), this.requestAttemptCounter = {};
|
|
2357
2357
|
}
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Used when the app is loaded. Reconstructs the dependency graph based on an outbox from the redux-offline store.
|
|
@@ -2495,7 +2495,7 @@ const Dp = (t, e) => {
|
|
|
2495
2495
|
const s = new e(t);
|
|
2496
2496
|
return ul(s), ll(t), s;
|
|
2497
2497
|
};
|
|
2498
|
-
class w extends
|
|
2498
|
+
class w extends Cn {
|
|
2499
2499
|
constructor(s, i) {
|
|
2500
2500
|
super(s);
|
|
2501
2501
|
y(this, "auth");
|
|
@@ -2514,7 +2514,7 @@ class Cp extends w {
|
|
|
2514
2514
|
},
|
|
2515
2515
|
blockers: ["prompt"],
|
|
2516
2516
|
blocks: ["prompt"]
|
|
2517
|
-
}).then((i) => (this.dispatch(
|
|
2517
|
+
}).then((i) => (this.dispatch(Ra(i)), i));
|
|
2518
2518
|
}
|
|
2519
2519
|
async continueConversation(e, s, i) {
|
|
2520
2520
|
return this.enqueueRequest({
|
|
@@ -2529,7 +2529,7 @@ class Cp extends w {
|
|
|
2529
2529
|
blocks: ["prompt"],
|
|
2530
2530
|
queryParams: { conversation_id: s }
|
|
2531
2531
|
}).then((n) => {
|
|
2532
|
-
this.dispatch(
|
|
2532
|
+
this.dispatch(wa(n));
|
|
2533
2533
|
});
|
|
2534
2534
|
}
|
|
2535
2535
|
async fetchDetails(e) {
|
|
@@ -2540,7 +2540,7 @@ class Cp extends w {
|
|
|
2540
2540
|
blockers: ["conversation"],
|
|
2541
2541
|
blocks: ["conversation"]
|
|
2542
2542
|
}).then((s) => {
|
|
2543
|
-
this.dispatch(
|
|
2543
|
+
this.dispatch(Oa(s));
|
|
2544
2544
|
});
|
|
2545
2545
|
}
|
|
2546
2546
|
async rate(e, s) {
|
|
@@ -2561,7 +2561,7 @@ class Cp extends w {
|
|
|
2561
2561
|
blockers: ["agent-conversations"],
|
|
2562
2562
|
blocks: ["agent-conversations"]
|
|
2563
2563
|
});
|
|
2564
|
-
this.dispatch(
|
|
2564
|
+
this.dispatch(Ta(s));
|
|
2565
2565
|
}
|
|
2566
2566
|
}
|
|
2567
2567
|
class k extends w {
|
|
@@ -2695,12 +2695,12 @@ class xp extends Ie {
|
|
|
2695
2695
|
y(this, "name", "Asset Attachment");
|
|
2696
2696
|
y(this, "url", "/asset-attachments");
|
|
2697
2697
|
y(this, "initializeAttachments", _t);
|
|
2698
|
-
y(this, "addAttachments",
|
|
2699
|
-
y(this, "updateAttachments",
|
|
2700
|
-
y(this, "removeAttachments",
|
|
2701
|
-
y(this, "removeAttachment",
|
|
2702
|
-
y(this, "setAttachment",
|
|
2703
|
-
y(this, "selectAttachment",
|
|
2698
|
+
y(this, "addAttachments", ci);
|
|
2699
|
+
y(this, "updateAttachments", Ea);
|
|
2700
|
+
y(this, "removeAttachments", ri);
|
|
2701
|
+
y(this, "removeAttachment", Fa);
|
|
2702
|
+
y(this, "setAttachment", Ia);
|
|
2703
|
+
y(this, "selectAttachment", qa);
|
|
2704
2704
|
}
|
|
2705
2705
|
buildOfflineAttachment(s) {
|
|
2706
2706
|
return R({
|
|
@@ -2803,10 +2803,10 @@ class Mp extends w {
|
|
|
2803
2803
|
async remove(e) {
|
|
2804
2804
|
const { store: s } = this.client, i = s.getState(), n = Ot(e)(i);
|
|
2805
2805
|
if (!n) throw new Error(`No asset with id ${e} found in the store`);
|
|
2806
|
-
const a =
|
|
2806
|
+
const a = ja(e)(i), o = zc(e)(i), r = er(e)(i);
|
|
2807
2807
|
if (this.dispatch(Rt(e)), a.length > 0) {
|
|
2808
2808
|
const u = a.map(({ offline_id: c }) => c);
|
|
2809
|
-
this.dispatch(
|
|
2809
|
+
this.dispatch(ri(u));
|
|
2810
2810
|
}
|
|
2811
2811
|
if (o.length > 0) {
|
|
2812
2812
|
const u = o.map(({ offline_id: c }) => c);
|
|
@@ -2814,7 +2814,7 @@ class Mp extends w {
|
|
|
2814
2814
|
}
|
|
2815
2815
|
if (r.length > 0) {
|
|
2816
2816
|
const u = r.map(({ offline_id: c }) => c);
|
|
2817
|
-
this.dispatch(
|
|
2817
|
+
this.dispatch(Ji(u));
|
|
2818
2818
|
}
|
|
2819
2819
|
return this.enqueueRequest({
|
|
2820
2820
|
description: "Delete asset",
|
|
@@ -2823,7 +2823,7 @@ class Mp extends w {
|
|
|
2823
2823
|
blockers: [e],
|
|
2824
2824
|
blocks: []
|
|
2825
2825
|
}).catch((u) => {
|
|
2826
|
-
throw this.dispatch(Tt(n)), this.dispatch(
|
|
2826
|
+
throw this.dispatch(Tt(n)), this.dispatch(ci(a)), this.dispatch(ct(o)), this.dispatch(Yi(r)), u;
|
|
2827
2827
|
});
|
|
2828
2828
|
}
|
|
2829
2829
|
bulkAdd(e, s, i, n) {
|
|
@@ -2858,7 +2858,7 @@ class Mp extends w {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
return Promise.all(u).then((l) => {
|
|
2860
2860
|
const h = l.flat();
|
|
2861
|
-
this.dispatch(
|
|
2861
|
+
this.dispatch(ui(h));
|
|
2862
2862
|
}), u;
|
|
2863
2863
|
}
|
|
2864
2864
|
async refreshStore(e) {
|
|
@@ -2872,7 +2872,7 @@ class Mp extends w {
|
|
|
2872
2872
|
blockers: [],
|
|
2873
2873
|
blocks: []
|
|
2874
2874
|
});
|
|
2875
|
-
this.dispatch(
|
|
2875
|
+
this.dispatch(Da(s));
|
|
2876
2876
|
}
|
|
2877
2877
|
}
|
|
2878
2878
|
class zp extends w {
|
|
@@ -2897,13 +2897,13 @@ class zp extends w {
|
|
|
2897
2897
|
blocks: [a.offline_id]
|
|
2898
2898
|
});
|
|
2899
2899
|
return o.then((r) => {
|
|
2900
|
-
this.dispatch(
|
|
2900
|
+
this.dispatch($a(r));
|
|
2901
2901
|
}).catch(() => {
|
|
2902
2902
|
this.dispatch(Et(a.offline_id));
|
|
2903
2903
|
}), [a, o];
|
|
2904
2904
|
}
|
|
2905
2905
|
delete(e) {
|
|
2906
|
-
const { store: s } = this.client, i =
|
|
2906
|
+
const { store: s } = this.client, i = Va(e)(s.getState());
|
|
2907
2907
|
if (!i)
|
|
2908
2908
|
throw new Error(`Expected asset stage completion with id ${e} to exist`);
|
|
2909
2909
|
this.dispatch(Et(e));
|
|
@@ -2937,13 +2937,13 @@ class zp extends w {
|
|
|
2937
2937
|
blocks: r
|
|
2938
2938
|
});
|
|
2939
2939
|
return u.then((c) => {
|
|
2940
|
-
this.dispatch(
|
|
2940
|
+
this.dispatch(Ua(c));
|
|
2941
2941
|
}).catch(() => {
|
|
2942
2942
|
this.dispatch(Ft(r));
|
|
2943
2943
|
}), [o, u];
|
|
2944
2944
|
}
|
|
2945
2945
|
bulkDelete(e) {
|
|
2946
|
-
const { store: s } = this.client, i =
|
|
2946
|
+
const { store: s } = this.client, i = Ga(e)(s.getState());
|
|
2947
2947
|
this.dispatch(Ft(e));
|
|
2948
2948
|
const n = this.enqueueRequest({
|
|
2949
2949
|
description: "Deleting asset stage completions",
|
|
@@ -2970,7 +2970,7 @@ class zp extends w {
|
|
|
2970
2970
|
blockers: [],
|
|
2971
2971
|
blocks: []
|
|
2972
2972
|
});
|
|
2973
|
-
this.dispatch(
|
|
2973
|
+
this.dispatch(za(s));
|
|
2974
2974
|
}
|
|
2975
2975
|
}
|
|
2976
2976
|
class $p extends w {
|
|
@@ -3028,7 +3028,7 @@ class $p extends w {
|
|
|
3028
3028
|
}), n;
|
|
3029
3029
|
}
|
|
3030
3030
|
update(e) {
|
|
3031
|
-
const { store: s } = this.client, i =
|
|
3031
|
+
const { store: s } = this.client, i = Wa(e.offline_id)(s.getState());
|
|
3032
3032
|
if (!i) throw new Error(`No asset stage with id ${e.offline_id} found in the store`);
|
|
3033
3033
|
const n = {
|
|
3034
3034
|
...i,
|
|
@@ -3051,7 +3051,7 @@ class $p extends w {
|
|
|
3051
3051
|
return a.then((o) => {
|
|
3052
3052
|
this.dispatch(qt(o));
|
|
3053
3053
|
}).catch(() => {
|
|
3054
|
-
this.dispatch(
|
|
3054
|
+
this.dispatch(Na(i));
|
|
3055
3055
|
}), [n, a];
|
|
3056
3056
|
}
|
|
3057
3057
|
async refreshStore(e) {
|
|
@@ -3065,7 +3065,7 @@ class $p extends w {
|
|
|
3065
3065
|
blockers: [],
|
|
3066
3066
|
blocks: []
|
|
3067
3067
|
});
|
|
3068
|
-
this.dispatch(
|
|
3068
|
+
this.dispatch(Ba(s));
|
|
3069
3069
|
}
|
|
3070
3070
|
}
|
|
3071
3071
|
class Up extends Ie {
|
|
@@ -3073,12 +3073,12 @@ class Up extends Ie {
|
|
|
3073
3073
|
super(...arguments);
|
|
3074
3074
|
y(this, "name", "Asset Type Attachment");
|
|
3075
3075
|
y(this, "url", "/asset-type-attachments");
|
|
3076
|
-
y(this, "addAttachments",
|
|
3077
|
-
y(this, "updateAttachments",
|
|
3078
|
-
y(this, "removeAttachments",
|
|
3079
|
-
y(this, "removeAttachment",
|
|
3080
|
-
y(this, "setAttachment",
|
|
3081
|
-
y(this, "selectAttachment",
|
|
3076
|
+
y(this, "addAttachments", gi);
|
|
3077
|
+
y(this, "updateAttachments", Qa);
|
|
3078
|
+
y(this, "removeAttachments", bi);
|
|
3079
|
+
y(this, "removeAttachment", Za);
|
|
3080
|
+
y(this, "setAttachment", Xa);
|
|
3081
|
+
y(this, "selectAttachment", to);
|
|
3082
3082
|
}
|
|
3083
3083
|
buildOfflineAttachment(s) {
|
|
3084
3084
|
return R({
|
|
@@ -3115,7 +3115,7 @@ class Up extends Ie {
|
|
|
3115
3115
|
blocks: [],
|
|
3116
3116
|
blockers: []
|
|
3117
3117
|
});
|
|
3118
|
-
this.dispatch(
|
|
3118
|
+
this.dispatch(Ja(i));
|
|
3119
3119
|
}
|
|
3120
3120
|
}
|
|
3121
3121
|
class Vp extends k {
|
|
@@ -3146,7 +3146,7 @@ class Vp extends k {
|
|
|
3146
3146
|
};
|
|
3147
3147
|
o.push(T);
|
|
3148
3148
|
}
|
|
3149
|
-
this.dispatch(
|
|
3149
|
+
this.dispatch(ao(a));
|
|
3150
3150
|
const r = this.enqueueRequest({
|
|
3151
3151
|
description: "Add asset type fields attachments",
|
|
3152
3152
|
method: d.POST,
|
|
@@ -3160,10 +3160,10 @@ class Vp extends k {
|
|
|
3160
3160
|
blocks: a.map((c) => c.offline_id)
|
|
3161
3161
|
});
|
|
3162
3162
|
return r.then((c) => {
|
|
3163
|
-
this.processPresignedUrls(c.presigned_urls), this.dispatch(
|
|
3163
|
+
this.processPresignedUrls(c.presigned_urls), this.dispatch(oo(c.attachments));
|
|
3164
3164
|
}).catch(() => {
|
|
3165
3165
|
this.dispatch(
|
|
3166
|
-
|
|
3166
|
+
co(
|
|
3167
3167
|
a.map((c) => c.offline_id)
|
|
3168
3168
|
)
|
|
3169
3169
|
);
|
|
@@ -3180,7 +3180,7 @@ class Vp extends k {
|
|
|
3180
3180
|
blockers: [e.toString()],
|
|
3181
3181
|
blocks: []
|
|
3182
3182
|
});
|
|
3183
|
-
this.dispatch(
|
|
3183
|
+
this.dispatch(no(s));
|
|
3184
3184
|
}
|
|
3185
3185
|
}
|
|
3186
3186
|
class Gp extends w {
|
|
@@ -3191,7 +3191,7 @@ class Gp extends w {
|
|
|
3191
3191
|
created_by: i,
|
|
3192
3192
|
submitted_at: n
|
|
3193
3193
|
});
|
|
3194
|
-
this.dispatch(
|
|
3194
|
+
this.dispatch(mo(a));
|
|
3195
3195
|
const o = this.enqueueRequest({
|
|
3196
3196
|
description: "Add Asset Type Fields",
|
|
3197
3197
|
method: d.POST,
|
|
@@ -3201,9 +3201,9 @@ class Gp extends w {
|
|
|
3201
3201
|
blocks: [a.offline_id]
|
|
3202
3202
|
});
|
|
3203
3203
|
return o.then((u) => {
|
|
3204
|
-
this.dispatch(
|
|
3204
|
+
this.dispatch(po(u));
|
|
3205
3205
|
}).catch((u) => {
|
|
3206
|
-
throw this.dispatch(
|
|
3206
|
+
throw this.dispatch(fo(a.offline_id)), u;
|
|
3207
3207
|
}), [a, o];
|
|
3208
3208
|
}
|
|
3209
3209
|
async refreshStore(e) {
|
|
@@ -3217,7 +3217,7 @@ class Gp extends w {
|
|
|
3217
3217
|
blockers: [],
|
|
3218
3218
|
blocks: []
|
|
3219
3219
|
});
|
|
3220
|
-
this.dispatch(
|
|
3220
|
+
this.dispatch(ho(s));
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
3223
|
class Lp extends k {
|
|
@@ -3268,7 +3268,7 @@ class Lp extends k {
|
|
|
3268
3268
|
return Promise.all(u).then((l) => {
|
|
3269
3269
|
for (const m of l) this.processPresignedUrls(m.presigned_urls);
|
|
3270
3270
|
const h = l.flatMap((m) => m.attachments);
|
|
3271
|
-
this.dispatch(
|
|
3271
|
+
this.dispatch(bo(h));
|
|
3272
3272
|
}).catch((l) => {
|
|
3273
3273
|
throw this.dispatch(
|
|
3274
3274
|
Xe(
|
|
@@ -3281,7 +3281,7 @@ class Lp extends k {
|
|
|
3281
3281
|
];
|
|
3282
3282
|
}
|
|
3283
3283
|
async bulkDelete(e) {
|
|
3284
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3284
|
+
const { store: s } = this.client, i = s.getState(), n = So(e)(i);
|
|
3285
3285
|
this.dispatch(Xe(e));
|
|
3286
3286
|
try {
|
|
3287
3287
|
await this.enqueueRequest({
|
|
@@ -3307,10 +3307,10 @@ class Lp extends k {
|
|
|
3307
3307
|
blockers: [],
|
|
3308
3308
|
blocks: []
|
|
3309
3309
|
});
|
|
3310
|
-
this.dispatch(
|
|
3310
|
+
this.dispatch(go(s));
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
|
-
const Dl = (t) => Array.isArray(t) && t[0] instanceof File,
|
|
3313
|
+
const Dl = (t) => Array.isArray(t) && t[0] instanceof File, Xs = (t) => {
|
|
3314
3314
|
const e = {}, s = {};
|
|
3315
3315
|
for (const i in t) {
|
|
3316
3316
|
const n = t[i];
|
|
@@ -3339,12 +3339,12 @@ class Bp extends k {
|
|
|
3339
3339
|
],
|
|
3340
3340
|
blocks: [n.offline_id]
|
|
3341
3341
|
});
|
|
3342
|
-
return this.dispatch(
|
|
3343
|
-
this.dispatch(
|
|
3342
|
+
return this.dispatch(os(n)), a.then((r) => (this.dispatch(Ve(r)), r)).catch(() => {
|
|
3343
|
+
this.dispatch(cs(n.offline_id));
|
|
3344
3344
|
}), [n, a];
|
|
3345
3345
|
}
|
|
3346
3346
|
update(e) {
|
|
3347
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3347
|
+
const { store: s } = this.client, i = s.getState(), n = rs(e.offline_id)(i);
|
|
3348
3348
|
if (!n)
|
|
3349
3349
|
throw new Error(`Expected submission with offline_id ${e.offline_id} to exist`);
|
|
3350
3350
|
const a = {
|
|
@@ -3367,11 +3367,11 @@ class Bp extends k {
|
|
|
3367
3367
|
}), [a, o];
|
|
3368
3368
|
}
|
|
3369
3369
|
async delete(e) {
|
|
3370
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3370
|
+
const { store: s } = this.client, i = s.getState(), n = rs(e)(i);
|
|
3371
3371
|
if (!n)
|
|
3372
3372
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
3373
3373
|
const a = jc(e)(i);
|
|
3374
|
-
this.dispatch(
|
|
3374
|
+
this.dispatch(cs(e)), this.dispatch(Ze(a.map((o) => o.offline_id)));
|
|
3375
3375
|
try {
|
|
3376
3376
|
return await this.enqueueRequest({
|
|
3377
3377
|
description: "Delete user form submissions",
|
|
@@ -3381,7 +3381,7 @@ class Bp extends k {
|
|
|
3381
3381
|
blocks: []
|
|
3382
3382
|
});
|
|
3383
3383
|
} catch (o) {
|
|
3384
|
-
throw this.dispatch(
|
|
3384
|
+
throw this.dispatch(os(n)), this.dispatch(Qe(a)), o;
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
3387
|
async refreshStore(e) {
|
|
@@ -3419,13 +3419,13 @@ class Np extends w {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
bulkAdd(e, s) {
|
|
3421
3421
|
var c;
|
|
3422
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } =
|
|
3422
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = Xs(e.values), a = [], o = mt(e.payloads, s ?? e.payloads.length), r = [];
|
|
3423
3423
|
for (const l of o) {
|
|
3424
3424
|
const h = [];
|
|
3425
3425
|
for (const m of l) {
|
|
3426
3426
|
const f = R({
|
|
3427
3427
|
...m,
|
|
3428
|
-
values:
|
|
3428
|
+
values: Xs(m.values).values,
|
|
3429
3429
|
created_by: (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id,
|
|
3430
3430
|
submitted_at: i
|
|
3431
3431
|
});
|
|
@@ -3443,7 +3443,7 @@ class Np extends w {
|
|
|
3443
3443
|
field_values: h
|
|
3444
3444
|
});
|
|
3445
3445
|
}
|
|
3446
|
-
this.dispatch(
|
|
3446
|
+
this.dispatch(wo(a));
|
|
3447
3447
|
const u = [];
|
|
3448
3448
|
for (const l of r) {
|
|
3449
3449
|
const h = l.field_values.map((T) => T.asset), m = l.field_values.map((T) => T.fields_revision), f = l.field_values.map((T) => T.offline_id), b = this.enqueueRequest({
|
|
@@ -3457,9 +3457,9 @@ class Np extends w {
|
|
|
3457
3457
|
u.push(b);
|
|
3458
3458
|
}
|
|
3459
3459
|
return Promise.all(u).then((l) => {
|
|
3460
|
-
this.dispatch(
|
|
3460
|
+
this.dispatch(vo(l.flat()));
|
|
3461
3461
|
}).catch(() => {
|
|
3462
|
-
this.dispatch(
|
|
3462
|
+
this.dispatch(Io(a.map((l) => l.offline_id)));
|
|
3463
3463
|
}), [a, u];
|
|
3464
3464
|
}
|
|
3465
3465
|
update(e) {
|
|
@@ -3493,7 +3493,7 @@ class Np extends w {
|
|
|
3493
3493
|
const { store: s } = this.client, i = s.getState(), n = Ut(e)(i);
|
|
3494
3494
|
if (!n)
|
|
3495
3495
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
3496
|
-
const a =
|
|
3496
|
+
const a = To(e)(i);
|
|
3497
3497
|
this.dispatch($t(e)), this.dispatch(Xe(a.map((o) => o.offline_id)));
|
|
3498
3498
|
try {
|
|
3499
3499
|
await this.enqueueRequest({
|
|
@@ -3518,7 +3518,7 @@ class Np extends w {
|
|
|
3518
3518
|
blockers: [],
|
|
3519
3519
|
blocks: []
|
|
3520
3520
|
});
|
|
3521
|
-
this.dispatch(
|
|
3521
|
+
this.dispatch(Oo(s));
|
|
3522
3522
|
}
|
|
3523
3523
|
}
|
|
3524
3524
|
class Hp extends w {
|
|
@@ -3575,15 +3575,15 @@ class Hp extends w {
|
|
|
3575
3575
|
const { store: s } = this.client, i = s.getState(), n = Bt(e)(i);
|
|
3576
3576
|
if (!n)
|
|
3577
3577
|
throw new Error(`Expected asset type with offline_id ${e} to exist`);
|
|
3578
|
-
const a =
|
|
3579
|
-
return this.dispatch(Lt(e)), this.dispatch(
|
|
3578
|
+
const a = mi(e)(i), o = Ya(e)(i), r = so(e)(i);
|
|
3579
|
+
return this.dispatch(Lt(e)), this.dispatch(Ca(a.map((u) => u.offline_id))), this.dispatch(Ye(o.map((u) => u.offline_id))), this.dispatch(bi(r.map(({ offline_id: u }) => u))), this.enqueueRequest({
|
|
3580
3580
|
description: "Delete asset type",
|
|
3581
3581
|
method: d.DELETE,
|
|
3582
3582
|
url: `/asset-types/${e}/`,
|
|
3583
3583
|
blockers: [e],
|
|
3584
3584
|
blocks: []
|
|
3585
3585
|
}).catch((u) => {
|
|
3586
|
-
throw this.dispatch(Gt(n)), this.dispatch(
|
|
3586
|
+
throw this.dispatch(Gt(n)), this.dispatch(ui(a)), this.dispatch(Ke(o)), this.dispatch(gi(r)), u;
|
|
3587
3587
|
});
|
|
3588
3588
|
}
|
|
3589
3589
|
async refreshStore(e) {
|
|
@@ -3597,7 +3597,7 @@ class Hp extends w {
|
|
|
3597
3597
|
blockers: [],
|
|
3598
3598
|
blocks: []
|
|
3599
3599
|
});
|
|
3600
|
-
this.dispatch(
|
|
3600
|
+
this.dispatch(ko(s));
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
3603
|
class Wp extends w {
|
|
@@ -3624,7 +3624,7 @@ class Wp extends w {
|
|
|
3624
3624
|
if (!i)
|
|
3625
3625
|
throw new Error(`Expected an existing category with offline_id ${e.offline_id}`);
|
|
3626
3626
|
const n = { ...i, ...e };
|
|
3627
|
-
this.dispatch(
|
|
3627
|
+
this.dispatch(Co(n));
|
|
3628
3628
|
const a = this.enqueueRequest({
|
|
3629
3629
|
description: "Edit Category",
|
|
3630
3630
|
method: d.PATCH,
|
|
@@ -3639,7 +3639,7 @@ class Wp extends w {
|
|
|
3639
3639
|
const { store: s } = this.client, i = Kt(e)(s.getState());
|
|
3640
3640
|
if (!i)
|
|
3641
3641
|
throw new Error(`No category with id ${e} found in the store`);
|
|
3642
|
-
this.dispatch(
|
|
3642
|
+
this.dispatch(xo(e));
|
|
3643
3643
|
const n = this.enqueueRequest({
|
|
3644
3644
|
description: "Delete Category",
|
|
3645
3645
|
method: d.DELETE,
|
|
@@ -3662,7 +3662,7 @@ class Wp extends w {
|
|
|
3662
3662
|
blocks: [],
|
|
3663
3663
|
blockers: []
|
|
3664
3664
|
});
|
|
3665
|
-
this.dispatch(
|
|
3665
|
+
this.dispatch(Do(s));
|
|
3666
3666
|
}
|
|
3667
3667
|
}
|
|
3668
3668
|
class Kp extends Ie {
|
|
@@ -3670,12 +3670,12 @@ class Kp extends Ie {
|
|
|
3670
3670
|
super(...arguments);
|
|
3671
3671
|
y(this, "name", "Document Attachment");
|
|
3672
3672
|
y(this, "url", "/document-attachments");
|
|
3673
|
-
y(this, "addAttachments",
|
|
3674
|
-
y(this, "updateAttachments",
|
|
3675
|
-
y(this, "removeAttachments",
|
|
3676
|
-
y(this, "removeAttachment",
|
|
3677
|
-
y(this, "setAttachment",
|
|
3678
|
-
y(this, "selectAttachment",
|
|
3673
|
+
y(this, "addAttachments", $o);
|
|
3674
|
+
y(this, "updateAttachments", Vo);
|
|
3675
|
+
y(this, "removeAttachments", Lo);
|
|
3676
|
+
y(this, "removeAttachment", Go);
|
|
3677
|
+
y(this, "setAttachment", Uo);
|
|
3678
|
+
y(this, "selectAttachment", No);
|
|
3679
3679
|
}
|
|
3680
3680
|
buildOfflineAttachment(s) {
|
|
3681
3681
|
return R({
|
|
@@ -3769,7 +3769,7 @@ class Kp extends Ie {
|
|
|
3769
3769
|
blocks: [],
|
|
3770
3770
|
blockers: []
|
|
3771
3771
|
});
|
|
3772
|
-
this.dispatch(
|
|
3772
|
+
this.dispatch(zo(n));
|
|
3773
3773
|
const a = await this.enqueueRequest({
|
|
3774
3774
|
description: "Get document attachments",
|
|
3775
3775
|
method: d.GET,
|
|
@@ -3788,7 +3788,7 @@ class Yp extends w {
|
|
|
3788
3788
|
created_by: i,
|
|
3789
3789
|
submitted_at: n
|
|
3790
3790
|
});
|
|
3791
|
-
this.dispatch(
|
|
3791
|
+
this.dispatch(Ko([a]));
|
|
3792
3792
|
const o = this.enqueueRequest({
|
|
3793
3793
|
description: "Create Document",
|
|
3794
3794
|
method: d.POST,
|
|
@@ -3802,7 +3802,7 @@ class Yp extends w {
|
|
|
3802
3802
|
blocks: [a.offline_id]
|
|
3803
3803
|
});
|
|
3804
3804
|
return o.catch(() => {
|
|
3805
|
-
this.dispatch(
|
|
3805
|
+
this.dispatch(Xt([a.offline_id]));
|
|
3806
3806
|
}), [a, o];
|
|
3807
3807
|
}
|
|
3808
3808
|
update(e) {
|
|
@@ -3867,7 +3867,7 @@ class Yp extends w {
|
|
|
3867
3867
|
`attempting to delete a document with offline_id ${e} that does not exist in store.documents`
|
|
3868
3868
|
);
|
|
3869
3869
|
const a = n.parent_document ? i[n.parent_document] : void 0;
|
|
3870
|
-
this.dispatch(
|
|
3870
|
+
this.dispatch(Xt([e]));
|
|
3871
3871
|
const o = this.enqueueRequest({
|
|
3872
3872
|
description: "Delete Document",
|
|
3873
3873
|
method: d.DELETE,
|
|
@@ -3895,7 +3895,7 @@ class Yp extends w {
|
|
|
3895
3895
|
blockers: [],
|
|
3896
3896
|
blocks: []
|
|
3897
3897
|
});
|
|
3898
|
-
this.dispatch(
|
|
3898
|
+
this.dispatch(Wo([...await i, ...await n]));
|
|
3899
3899
|
}
|
|
3900
3900
|
}
|
|
3901
3901
|
class Jp extends w {
|
|
@@ -3963,7 +3963,7 @@ class Qp extends w {
|
|
|
3963
3963
|
y(this, "host");
|
|
3964
3964
|
// NOTE: If you alter the schema (of the IndexedDB database) in any way, you must increment the version in order to
|
|
3965
3965
|
// migrate the store. This allows idb to automatically migrate the user's existing data to the new schema.
|
|
3966
|
-
y(this, "_dbPromise",
|
|
3966
|
+
y(this, "_dbPromise", ta("fileCache", 1, {
|
|
3967
3967
|
upgrade(s) {
|
|
3968
3968
|
s.createObjectStore("files");
|
|
3969
3969
|
}
|
|
@@ -4062,7 +4062,7 @@ class Qp extends w {
|
|
|
4062
4062
|
return o;
|
|
4063
4063
|
}
|
|
4064
4064
|
if (s.startsWith("blob:")) {
|
|
4065
|
-
const l = await
|
|
4065
|
+
const l = await ba(s), h = new File([l], n ?? i, { type: l.type });
|
|
4066
4066
|
return await this.addCache(h, i), h;
|
|
4067
4067
|
}
|
|
4068
4068
|
let r = De[a], u = !0;
|
|
@@ -4105,7 +4105,7 @@ class Qp extends w {
|
|
|
4105
4105
|
if (!h)
|
|
4106
4106
|
throw new Error("File has no extension");
|
|
4107
4107
|
const m = n ?? l + "." + h;
|
|
4108
|
-
if (c =
|
|
4108
|
+
if (c = ga(c, m), !c.name)
|
|
4109
4109
|
throw new Error("Failed to set file's name");
|
|
4110
4110
|
await this.addCache(c, l), De[a] = new Promise((f) => {
|
|
4111
4111
|
f(c);
|
|
@@ -4188,7 +4188,7 @@ class ef extends k {
|
|
|
4188
4188
|
revision: "Pending",
|
|
4189
4189
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
4190
4190
|
});
|
|
4191
|
-
this.dispatch(
|
|
4191
|
+
this.dispatch($i(a));
|
|
4192
4192
|
const o = this.enqueueRequest({
|
|
4193
4193
|
description: "Create form revision",
|
|
4194
4194
|
method: d.POST,
|
|
@@ -4200,7 +4200,7 @@ class ef extends k {
|
|
|
4200
4200
|
return o.then((u) => {
|
|
4201
4201
|
this.dispatch(Ac(u));
|
|
4202
4202
|
}).catch(() => {
|
|
4203
|
-
this.dispatch(
|
|
4203
|
+
this.dispatch(Ui(a.offline_id));
|
|
4204
4204
|
}), [a, o];
|
|
4205
4205
|
}
|
|
4206
4206
|
async refreshStore(e) {
|
|
@@ -4255,7 +4255,7 @@ class sf extends k {
|
|
|
4255
4255
|
submitted_at: n,
|
|
4256
4256
|
created_by: a
|
|
4257
4257
|
});
|
|
4258
|
-
this.dispatch(
|
|
4258
|
+
this.dispatch(ss(o)), this.dispatch($i(r));
|
|
4259
4259
|
const u = this.enqueueRequest({
|
|
4260
4260
|
description: "Create form",
|
|
4261
4261
|
method: d.POST,
|
|
@@ -4274,7 +4274,7 @@ class sf extends k {
|
|
|
4274
4274
|
blocks: [o.offline_id, r.offline_id]
|
|
4275
4275
|
});
|
|
4276
4276
|
return u.catch((l) => {
|
|
4277
|
-
throw this.dispatch(
|
|
4277
|
+
throw this.dispatch(is(o.offline_id)), this.dispatch(Ui(r.offline_id)), l;
|
|
4278
4278
|
}), [o, r, u];
|
|
4279
4279
|
}
|
|
4280
4280
|
async delete(e) {
|
|
@@ -4284,7 +4284,7 @@ class sf extends k {
|
|
|
4284
4284
|
const a = xc(e)(i);
|
|
4285
4285
|
a.length > 0 && this.dispatch(rt(a.map(({ offline_id: r }) => r)));
|
|
4286
4286
|
const o = Rc(e)(i);
|
|
4287
|
-
o.length > 0 && this.dispatch(_c(o.map(({ offline_id: r }) => r))), this.dispatch(
|
|
4287
|
+
o.length > 0 && this.dispatch(_c(o.map(({ offline_id: r }) => r))), this.dispatch(is(e));
|
|
4288
4288
|
try {
|
|
4289
4289
|
return await this.enqueueRequest({
|
|
4290
4290
|
description: "Delete form",
|
|
@@ -4294,7 +4294,7 @@ class sf extends k {
|
|
|
4294
4294
|
blocks: []
|
|
4295
4295
|
});
|
|
4296
4296
|
} catch (r) {
|
|
4297
|
-
throw this.dispatch(
|
|
4297
|
+
throw this.dispatch(ss(n)), o.length > 0 && this.dispatch(bc(o)), a.length > 0 && this.dispatch(ct(a)), r;
|
|
4298
4298
|
}
|
|
4299
4299
|
}
|
|
4300
4300
|
async refreshStore(e) {
|
|
@@ -4429,7 +4429,7 @@ class af extends k {
|
|
|
4429
4429
|
return l.then((m) => {
|
|
4430
4430
|
this.processPresignedUrls(m.presigned_urls), this.dispatch(qe(m.geo_image));
|
|
4431
4431
|
}).catch(() => {
|
|
4432
|
-
this.dispatch(
|
|
4432
|
+
this.dispatch(ls(c.offline_id));
|
|
4433
4433
|
}), [c, l.then((m) => m.geo_image)];
|
|
4434
4434
|
}
|
|
4435
4435
|
async bulkAdd(e, s) {
|
|
@@ -4481,7 +4481,7 @@ class af extends k {
|
|
|
4481
4481
|
}), [o, l.then((m) => m.geo_images)];
|
|
4482
4482
|
}
|
|
4483
4483
|
update(e) {
|
|
4484
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4484
|
+
const { store: s } = this.client, i = s.getState(), n = us(e.offline_id)(i);
|
|
4485
4485
|
if (!n)
|
|
4486
4486
|
throw new Error(`Map image with offline_id ${e.offline_id} does not exist in the store`);
|
|
4487
4487
|
const a = { ...n, ...e };
|
|
@@ -4501,10 +4501,10 @@ class af extends k {
|
|
|
4501
4501
|
}), [a, o];
|
|
4502
4502
|
}
|
|
4503
4503
|
async delete(e) {
|
|
4504
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4504
|
+
const { store: s } = this.client, i = s.getState(), n = us(e)(i);
|
|
4505
4505
|
if (!n)
|
|
4506
4506
|
throw new Error(`Map image with offline_id ${e} does not exist in the store`);
|
|
4507
|
-
this.dispatch(
|
|
4507
|
+
this.dispatch(ls(e));
|
|
4508
4508
|
const a = this.enqueueRequest({
|
|
4509
4509
|
description: "Delete geo image",
|
|
4510
4510
|
method: d.DELETE,
|
|
@@ -4535,7 +4535,7 @@ class of extends w {
|
|
|
4535
4535
|
submitted_at: i,
|
|
4536
4536
|
created_by: n
|
|
4537
4537
|
});
|
|
4538
|
-
this.dispatch(
|
|
4538
|
+
this.dispatch(ms(a));
|
|
4539
4539
|
const o = this.enqueueRequest({
|
|
4540
4540
|
description: "Add issue association",
|
|
4541
4541
|
method: d.POST,
|
|
@@ -4555,14 +4555,14 @@ class of extends w {
|
|
|
4555
4555
|
return o.then((u) => {
|
|
4556
4556
|
this.dispatch(Jc(u));
|
|
4557
4557
|
}).catch(() => {
|
|
4558
|
-
this.dispatch(
|
|
4558
|
+
this.dispatch(ps(a.offline_id));
|
|
4559
4559
|
}), [a, o];
|
|
4560
4560
|
}
|
|
4561
4561
|
async delete(e) {
|
|
4562
4562
|
const { store: s } = this.client, i = Xc(e)(s.getState());
|
|
4563
4563
|
if (!i)
|
|
4564
4564
|
throw new Error(`Issue association with id ${e} not found in store.`);
|
|
4565
|
-
this.dispatch(
|
|
4565
|
+
this.dispatch(ps(e));
|
|
4566
4566
|
const n = this.enqueueRequest({
|
|
4567
4567
|
description: "Delete issue association",
|
|
4568
4568
|
method: d.DELETE,
|
|
@@ -4571,7 +4571,7 @@ class of extends w {
|
|
|
4571
4571
|
blocks: []
|
|
4572
4572
|
});
|
|
4573
4573
|
return n.catch(() => {
|
|
4574
|
-
this.dispatch(
|
|
4574
|
+
this.dispatch(ms(i));
|
|
4575
4575
|
}), n;
|
|
4576
4576
|
}
|
|
4577
4577
|
async refreshStore(e) {
|
|
@@ -4591,9 +4591,9 @@ class cf extends Ie {
|
|
|
4591
4591
|
super(...arguments);
|
|
4592
4592
|
y(this, "name", "Issue Attachment");
|
|
4593
4593
|
y(this, "url", "/issue-attachments");
|
|
4594
|
-
y(this, "addAttachments",
|
|
4594
|
+
y(this, "addAttachments", Qi);
|
|
4595
4595
|
y(this, "updateAttachments", nr);
|
|
4596
|
-
y(this, "removeAttachments",
|
|
4596
|
+
y(this, "removeAttachments", Zi);
|
|
4597
4597
|
y(this, "removeAttachment", ar);
|
|
4598
4598
|
y(this, "setAttachment", ir);
|
|
4599
4599
|
y(this, "selectAttachment", rr);
|
|
@@ -4644,7 +4644,7 @@ class rf extends w {
|
|
|
4644
4644
|
author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.id,
|
|
4645
4645
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
4646
4646
|
});
|
|
4647
|
-
this.dispatch(
|
|
4647
|
+
this.dispatch(gs(i));
|
|
4648
4648
|
const n = this.enqueueRequest({
|
|
4649
4649
|
description: "Add issue comment",
|
|
4650
4650
|
method: d.POST,
|
|
@@ -4654,7 +4654,7 @@ class rf extends w {
|
|
|
4654
4654
|
blocks: [i.offline_id]
|
|
4655
4655
|
});
|
|
4656
4656
|
return n.catch(() => {
|
|
4657
|
-
this.dispatch(
|
|
4657
|
+
this.dispatch(bs(i.offline_id));
|
|
4658
4658
|
}), [i, n];
|
|
4659
4659
|
}
|
|
4660
4660
|
update(e) {
|
|
@@ -4665,7 +4665,7 @@ class rf extends w {
|
|
|
4665
4665
|
...i,
|
|
4666
4666
|
...e
|
|
4667
4667
|
};
|
|
4668
|
-
this.dispatch(
|
|
4668
|
+
this.dispatch(As(n));
|
|
4669
4669
|
const a = this.enqueueRequest({
|
|
4670
4670
|
description: "Edit issue comment",
|
|
4671
4671
|
method: d.PATCH,
|
|
@@ -4675,14 +4675,14 @@ class rf extends w {
|
|
|
4675
4675
|
blocks: [e.offline_id]
|
|
4676
4676
|
});
|
|
4677
4677
|
return a.catch(() => {
|
|
4678
|
-
this.dispatch(
|
|
4678
|
+
this.dispatch(As(i));
|
|
4679
4679
|
}), [n, a];
|
|
4680
4680
|
}
|
|
4681
4681
|
remove(e) {
|
|
4682
4682
|
const s = this.client.store.getState().issueCommentReducer.instances[e];
|
|
4683
4683
|
if (!s)
|
|
4684
4684
|
throw new Error(`Comment with offline_id ${e} not found in store`);
|
|
4685
|
-
this.dispatch(
|
|
4685
|
+
this.dispatch(bs(e));
|
|
4686
4686
|
const i = this.enqueueRequest({
|
|
4687
4687
|
description: "Delete comment",
|
|
4688
4688
|
method: d.DELETE,
|
|
@@ -4691,7 +4691,7 @@ class rf extends w {
|
|
|
4691
4691
|
blocks: []
|
|
4692
4692
|
});
|
|
4693
4693
|
return i.catch(() => {
|
|
4694
|
-
this.dispatch(
|
|
4694
|
+
this.dispatch(gs(s));
|
|
4695
4695
|
}), i;
|
|
4696
4696
|
}
|
|
4697
4697
|
async refreshStore(e) {
|
|
@@ -4717,24 +4717,29 @@ class df extends w {
|
|
|
4717
4717
|
submitted_at: n,
|
|
4718
4718
|
created_by: a
|
|
4719
4719
|
});
|
|
4720
|
-
this.dispatch(
|
|
4720
|
+
this.dispatch(Ss(o));
|
|
4721
4721
|
const r = this.enqueueRequest({
|
|
4722
4722
|
description: "Create issue",
|
|
4723
4723
|
method: d.POST,
|
|
4724
4724
|
url: "/issues/",
|
|
4725
4725
|
payload: o,
|
|
4726
|
-
blockers: [
|
|
4726
|
+
blockers: [
|
|
4727
|
+
"add-issue",
|
|
4728
|
+
o.project.toString(),
|
|
4729
|
+
o.issue_type,
|
|
4730
|
+
...o.category ? [o.category] : []
|
|
4731
|
+
],
|
|
4727
4732
|
blocks: [o.offline_id]
|
|
4728
4733
|
});
|
|
4729
4734
|
return r.then((c) => {
|
|
4730
4735
|
this.dispatch(Ge(c));
|
|
4731
4736
|
}).catch((c) => {
|
|
4732
|
-
throw this.dispatch(
|
|
4737
|
+
throw this.dispatch(Ts(o.offline_id)), c;
|
|
4733
4738
|
}), [o, r];
|
|
4734
4739
|
}
|
|
4735
4740
|
update(e) {
|
|
4736
4741
|
var u;
|
|
4737
|
-
const s = this.client.store.getState(), i =
|
|
4742
|
+
const s = this.client.store.getState(), i = Rs(e.offline_id)(s);
|
|
4738
4743
|
if (!i)
|
|
4739
4744
|
throw new Error(
|
|
4740
4745
|
`Attempting to update an issue with offline_id ${e.offline_id} that doesn't exist in the store`
|
|
@@ -4812,7 +4817,7 @@ class df extends w {
|
|
|
4812
4817
|
}), [n, r];
|
|
4813
4818
|
}
|
|
4814
4819
|
async remove(e) {
|
|
4815
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4820
|
+
const { store: s } = this.client, i = s.getState(), n = Rs(e)(i);
|
|
4816
4821
|
if (!n)
|
|
4817
4822
|
throw new Error(`No issue with id ${e} found in the store`);
|
|
4818
4823
|
const a = cr(e)(i), o = Zr(e)(i), r = Mc(e)(i), u = {};
|
|
@@ -4821,7 +4826,7 @@ class df extends w {
|
|
|
4821
4826
|
for (const l of Zc(e)(i))
|
|
4822
4827
|
u[l.offline_id] = l;
|
|
4823
4828
|
const c = Object.values(u);
|
|
4824
|
-
this.dispatch(
|
|
4829
|
+
this.dispatch(Ts(e)), a.length > 0 && this.dispatch(Zi(a.map(({ offline_id: l }) => l))), o.length > 0 && this.dispatch(Xr(o.map(({ offline_id: l }) => l))), r.length > 0 && this.dispatch(rt(r.map(({ offline_id: l }) => l))), c.length > 0 && this.dispatch(Ji(c.map(({ offline_id: l }) => l)));
|
|
4825
4830
|
try {
|
|
4826
4831
|
return await this.enqueueRequest({
|
|
4827
4832
|
description: "Delete issue",
|
|
@@ -4831,7 +4836,7 @@ class df extends w {
|
|
|
4831
4836
|
blocks: []
|
|
4832
4837
|
});
|
|
4833
4838
|
} catch (l) {
|
|
4834
|
-
throw this.dispatch(
|
|
4839
|
+
throw this.dispatch(Ss(n)), this.dispatch(Qi(a)), this.dispatch(Yr(o)), this.dispatch(ct(r)), this.dispatch(Yi(c)), l;
|
|
4835
4840
|
}
|
|
4836
4841
|
}
|
|
4837
4842
|
async refreshStore(e) {
|
|
@@ -5046,12 +5051,12 @@ class mf extends w {
|
|
|
5046
5051
|
blockers: [e.issue, e.fields_revision],
|
|
5047
5052
|
blocks: [n.offline_id]
|
|
5048
5053
|
});
|
|
5049
|
-
return this.dispatch(
|
|
5050
|
-
this.dispatch(
|
|
5054
|
+
return this.dispatch(vs(n)), a.then((r) => (this.dispatch(je(r)), r)).catch(() => {
|
|
5055
|
+
this.dispatch(Is(n.offline_id));
|
|
5051
5056
|
}), [n, a];
|
|
5052
5057
|
}
|
|
5053
5058
|
update(e) {
|
|
5054
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5059
|
+
const { store: s } = this.client, i = s.getState(), n = Es(e.offline_id)(i);
|
|
5055
5060
|
if (!n)
|
|
5056
5061
|
throw new Error(`Expected IssueTypeFieldValues with offline_id ${e.offline_id} to exist`);
|
|
5057
5062
|
const a = {
|
|
@@ -5078,11 +5083,11 @@ class mf extends w {
|
|
|
5078
5083
|
}), [a, o];
|
|
5079
5084
|
}
|
|
5080
5085
|
async delete(e) {
|
|
5081
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5086
|
+
const { store: s } = this.client, i = s.getState(), n = Es(e)(i);
|
|
5082
5087
|
if (!n)
|
|
5083
5088
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
5084
5089
|
const a = $r(e)(i);
|
|
5085
|
-
this.dispatch(
|
|
5090
|
+
this.dispatch(Is(e)), this.dispatch(tt(a.map((o) => o.offline_id)));
|
|
5086
5091
|
try {
|
|
5087
5092
|
await this.enqueueRequest({
|
|
5088
5093
|
description: "Delete issue type field values",
|
|
@@ -5092,7 +5097,7 @@ class mf extends w {
|
|
|
5092
5097
|
blocks: []
|
|
5093
5098
|
});
|
|
5094
5099
|
} catch (o) {
|
|
5095
|
-
throw this.dispatch(
|
|
5100
|
+
throw this.dispatch(vs(n)), this.dispatch(et(a)), o;
|
|
5096
5101
|
}
|
|
5097
5102
|
}
|
|
5098
5103
|
async refreshStore(e) {
|
|
@@ -5128,11 +5133,11 @@ class pf extends w {
|
|
|
5128
5133
|
return a.then((r) => {
|
|
5129
5134
|
this.dispatch(Pe(r));
|
|
5130
5135
|
}).catch(() => {
|
|
5131
|
-
this.dispatch(
|
|
5136
|
+
this.dispatch(js(n.offline_id));
|
|
5132
5137
|
}), [n, a];
|
|
5133
5138
|
}
|
|
5134
5139
|
update(e) {
|
|
5135
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5140
|
+
const { store: s } = this.client, i = s.getState(), n = Ps(e.offline_id)(i);
|
|
5136
5141
|
if (!n)
|
|
5137
5142
|
throw new Error(`IssueType with offline_id ${e.offline_id} does not exist in the store.`);
|
|
5138
5143
|
const a = {
|
|
@@ -5154,11 +5159,11 @@ class pf extends w {
|
|
|
5154
5159
|
}), [a, o];
|
|
5155
5160
|
}
|
|
5156
5161
|
delete(e) {
|
|
5157
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5162
|
+
const { store: s } = this.client, i = s.getState(), n = Ps(e)(i);
|
|
5158
5163
|
if (!n)
|
|
5159
5164
|
throw new Error(`IssueType with offline_id ${e} does not exist in the store.`);
|
|
5160
|
-
const a =
|
|
5161
|
-
this.dispatch(
|
|
5165
|
+
const a = un(e)(i);
|
|
5166
|
+
this.dispatch(js(e)), this.dispatch(yr(a.map((r) => r.offline_id)));
|
|
5162
5167
|
const o = this.enqueueRequest({
|
|
5163
5168
|
method: d.DELETE,
|
|
5164
5169
|
url: `/issue-types/${e}/`,
|
|
@@ -5197,7 +5202,7 @@ class ff extends w {
|
|
|
5197
5202
|
this.dispatch(Wr(s));
|
|
5198
5203
|
}
|
|
5199
5204
|
}
|
|
5200
|
-
class xl extends
|
|
5205
|
+
class xl extends Cn {
|
|
5201
5206
|
constructor(e) {
|
|
5202
5207
|
super(e);
|
|
5203
5208
|
}
|
|
@@ -5249,7 +5254,7 @@ class yf extends xl {
|
|
|
5249
5254
|
* Logs the user out
|
|
5250
5255
|
*/
|
|
5251
5256
|
clearAuth() {
|
|
5252
|
-
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(
|
|
5257
|
+
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(jo(!1)), this.clearTokens(), this.dispatch({ type: sa }), this.dispatch({ type: Al });
|
|
5253
5258
|
}
|
|
5254
5259
|
/**
|
|
5255
5260
|
* Attempts to renew tokens
|
|
@@ -5275,7 +5280,7 @@ class yf extends xl {
|
|
|
5275
5280
|
const i = Date.now() / 1e3;
|
|
5276
5281
|
let n;
|
|
5277
5282
|
try {
|
|
5278
|
-
n =
|
|
5283
|
+
n = ia(s).exp ?? i;
|
|
5279
5284
|
} catch {
|
|
5280
5285
|
n = i;
|
|
5281
5286
|
}
|
|
@@ -5548,7 +5553,7 @@ class _f extends w {
|
|
|
5548
5553
|
blockers: [],
|
|
5549
5554
|
blocks: []
|
|
5550
5555
|
});
|
|
5551
|
-
this.dispatch(
|
|
5556
|
+
this.dispatch(gn(s));
|
|
5552
5557
|
}
|
|
5553
5558
|
}
|
|
5554
5559
|
class Sf extends Ie {
|
|
@@ -5558,7 +5563,7 @@ class Sf extends Ie {
|
|
|
5558
5563
|
y(this, "url", "/project-attachments");
|
|
5559
5564
|
y(this, "addAttachments", Md);
|
|
5560
5565
|
y(this, "updateAttachments", Ud);
|
|
5561
|
-
y(this, "removeAttachments",
|
|
5566
|
+
y(this, "removeAttachments", wn);
|
|
5562
5567
|
y(this, "removeAttachment", Vd);
|
|
5563
5568
|
y(this, "setAttachment", zd);
|
|
5564
5569
|
y(this, "selectAttachment", Ld);
|
|
@@ -5617,7 +5622,7 @@ class Tf extends w {
|
|
|
5617
5622
|
blocks: [e.offline_id]
|
|
5618
5623
|
});
|
|
5619
5624
|
return i.then((n) => {
|
|
5620
|
-
this.dispatch(
|
|
5625
|
+
this.dispatch(Bs(n));
|
|
5621
5626
|
}), i;
|
|
5622
5627
|
}
|
|
5623
5628
|
// TODO: This needs to be seperated into a update and create method
|
|
@@ -5657,7 +5662,7 @@ class Tf extends w {
|
|
|
5657
5662
|
});
|
|
5658
5663
|
const r = Promise.resolve(a).then((u) => this.enqueueRequest(u));
|
|
5659
5664
|
return r.then((u) => {
|
|
5660
|
-
this.dispatch(
|
|
5665
|
+
this.dispatch(Bs(u));
|
|
5661
5666
|
}), this.dispatch(Qd), this.dispatch(Xd(null)), this.dispatch(Jd(!1)), [n, r];
|
|
5662
5667
|
}
|
|
5663
5668
|
delete(e) {
|
|
@@ -5712,13 +5717,13 @@ class Rf extends w {
|
|
|
5712
5717
|
});
|
|
5713
5718
|
}
|
|
5714
5719
|
async delete(e) {
|
|
5715
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5720
|
+
const { store: s } = this.client, i = s.getState(), n = Sn(i), a = n[e];
|
|
5716
5721
|
if (!a)
|
|
5717
5722
|
throw new Error("Expected project to exist");
|
|
5718
5723
|
const o = el(i).filter((l) => l.project === e);
|
|
5719
5724
|
this.dispatch(Yd(o.map(({ offline_id: l }) => l)));
|
|
5720
5725
|
const r = Bd(a.id)(i);
|
|
5721
|
-
this.dispatch(
|
|
5726
|
+
this.dispatch(wn(r.map(({ offline_id: l }) => l)));
|
|
5722
5727
|
const u = fd(i);
|
|
5723
5728
|
this.dispatch(pd(u.map(({ offline_id: l }) => l))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(_d(a));
|
|
5724
5729
|
const c = sd(a.id)(i);
|
|
@@ -5732,7 +5737,7 @@ class Rf extends w {
|
|
|
5732
5737
|
blocks: []
|
|
5733
5738
|
}), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 });
|
|
5734
5739
|
} catch (l) {
|
|
5735
|
-
throw this.dispatch(gd(Object.values(n))), this.dispatch(
|
|
5740
|
+
throw this.dispatch(gd(Object.values(n))), this.dispatch(gn(Object.values(u))), this.dispatch(Wd(o)), this.dispatch($d(r)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), c && this.dispatch(se({ ...c, project: a.id })), l;
|
|
5736
5741
|
}
|
|
5737
5742
|
}
|
|
5738
5743
|
invite(e, s) {
|
|
@@ -5791,7 +5796,7 @@ class Of extends w {
|
|
|
5791
5796
|
return i.then((n) => {
|
|
5792
5797
|
this.dispatch(Ae(n));
|
|
5793
5798
|
}).catch(() => {
|
|
5794
|
-
this.dispatch(
|
|
5799
|
+
this.dispatch(Ws(s.offline_id));
|
|
5795
5800
|
}), [s, i];
|
|
5796
5801
|
}
|
|
5797
5802
|
update(e) {
|
|
@@ -5802,7 +5807,7 @@ class Of extends w {
|
|
|
5802
5807
|
...i,
|
|
5803
5808
|
...e
|
|
5804
5809
|
};
|
|
5805
|
-
this.dispatch(
|
|
5810
|
+
this.dispatch(Hs(n));
|
|
5806
5811
|
const a = this.enqueueRequest({
|
|
5807
5812
|
description: "Update team",
|
|
5808
5813
|
method: d.PATCH,
|
|
@@ -5821,7 +5826,7 @@ class Of extends w {
|
|
|
5821
5826
|
const { store: s } = this.client, i = s.getState(), n = ge(e)(i);
|
|
5822
5827
|
if (!n)
|
|
5823
5828
|
throw new Error(`Expected team with id ${e} to exist`);
|
|
5824
|
-
this.dispatch(
|
|
5829
|
+
this.dispatch(Ws(e));
|
|
5825
5830
|
try {
|
|
5826
5831
|
return await this.enqueueRequest({
|
|
5827
5832
|
description: "Delete team",
|
|
@@ -5840,7 +5845,7 @@ class Of extends w {
|
|
|
5840
5845
|
throw new Error(`Expected team with id ${e} to exist`);
|
|
5841
5846
|
if (s.length !== new Set(s).size)
|
|
5842
5847
|
throw new Error("Duplicate members found in the list");
|
|
5843
|
-
this.dispatch(
|
|
5848
|
+
this.dispatch(Hs({ ...n, members: s }));
|
|
5844
5849
|
const a = this.enqueueRequest({
|
|
5845
5850
|
description: "Set team members",
|
|
5846
5851
|
method: d.PUT,
|
|
@@ -5917,17 +5922,17 @@ export {
|
|
|
5917
5922
|
Vp as AssetTypeFieldsAttachmentService,
|
|
5918
5923
|
Gp as AssetTypeFieldsService,
|
|
5919
5924
|
Hp as AssetTypeService,
|
|
5920
|
-
|
|
5925
|
+
oa as AttachmentModel,
|
|
5921
5926
|
w as BaseApiService,
|
|
5922
5927
|
Pp as BaseSDK,
|
|
5923
5928
|
Wp as CategoryService,
|
|
5924
5929
|
eu as DEFAULT_ISSUE_PRIORITY,
|
|
5925
5930
|
Zl as DEFAULT_ISSUE_STATUS,
|
|
5926
|
-
|
|
5931
|
+
ua as DeferredPromise,
|
|
5927
5932
|
Kp as DocumentAttachmentService,
|
|
5928
5933
|
Yp as DocumentService,
|
|
5929
|
-
|
|
5930
|
-
|
|
5934
|
+
na as EMPTY_ARRAY,
|
|
5935
|
+
aa as EMPTY_OBJECT,
|
|
5931
5936
|
Jp as EmailDomainsService,
|
|
5932
5937
|
Xp as EmailVerificationService,
|
|
5933
5938
|
Qp as FileService,
|
|
@@ -5941,9 +5946,9 @@ export {
|
|
|
5941
5946
|
of as IssueAssociationService,
|
|
5942
5947
|
cf as IssueAttachmentService,
|
|
5943
5948
|
rf as IssueCommentService,
|
|
5944
|
-
|
|
5949
|
+
ti as IssuePriority,
|
|
5945
5950
|
df as IssueService,
|
|
5946
|
-
|
|
5951
|
+
si as IssueStatus,
|
|
5947
5952
|
hf as IssueTypeFieldValuesAttachmentService,
|
|
5948
5953
|
mf as IssueTypeFieldValuesService,
|
|
5949
5954
|
lf as IssueTypeFieldsAttachmentService,
|
|
@@ -5952,16 +5957,16 @@ export {
|
|
|
5952
5957
|
I as IssueUpdateChange,
|
|
5953
5958
|
ff as IssueUpdateService,
|
|
5954
5959
|
yf as JWTService,
|
|
5955
|
-
|
|
5960
|
+
ra as LicenseLevel,
|
|
5956
5961
|
Af as LicenseService,
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5962
|
+
da as LicenseStatus,
|
|
5963
|
+
la as OUTBOX_RETRY_DELAY,
|
|
5964
|
+
ei as OrganizationAccessLevel,
|
|
5960
5965
|
gf as OrganizationAccessService,
|
|
5961
5966
|
bf as OrganizationService,
|
|
5962
5967
|
Te as OutboxCoordinator,
|
|
5963
|
-
|
|
5964
|
-
|
|
5968
|
+
ca as PaddleCheckoutEvent,
|
|
5969
|
+
Zs as ProjectAccessLevel,
|
|
5965
5970
|
_f as ProjectAccessService,
|
|
5966
5971
|
Sf as ProjectAttachmentService,
|
|
5967
5972
|
Tf as ProjectFileService,
|
|
@@ -5969,58 +5974,58 @@ export {
|
|
|
5969
5974
|
Of as TeamService,
|
|
5970
5975
|
we as UNKNOWN_ERROR_MESSAGE,
|
|
5971
5976
|
wf as UserService,
|
|
5972
|
-
|
|
5977
|
+
Un as VERSION_REDUCER_KEY,
|
|
5973
5978
|
$l as VerificationCodeType,
|
|
5974
5979
|
Tc as _selectLatestFormRevision,
|
|
5975
5980
|
Dd as _setLatestRetryTime,
|
|
5976
5981
|
Sd as acceptProjectInvite,
|
|
5977
5982
|
Tt as addAsset,
|
|
5978
5983
|
Su as addAssetAttachment,
|
|
5979
|
-
|
|
5984
|
+
ci as addAssetAttachments,
|
|
5980
5985
|
ju as addAssetStage,
|
|
5981
5986
|
vt as addAssetStageCompletion,
|
|
5982
5987
|
It as addAssetStageCompletions,
|
|
5983
5988
|
Ke as addAssetStages,
|
|
5984
5989
|
Gt as addAssetType,
|
|
5985
5990
|
Cu as addAssetTypeAttachment,
|
|
5986
|
-
|
|
5991
|
+
gi as addAssetTypeAttachments,
|
|
5987
5992
|
zt as addAssetTypeFieldValues,
|
|
5988
5993
|
eh as addAssetTypeFieldValuesAttachment,
|
|
5989
5994
|
Je as addAssetTypeFieldValuesAttachments,
|
|
5990
|
-
|
|
5991
|
-
|
|
5995
|
+
wo as addAssetTypeFieldValuesMany,
|
|
5996
|
+
mo as addAssetTypeFields,
|
|
5992
5997
|
$u as addAssetTypeFieldsAttachment,
|
|
5993
|
-
|
|
5998
|
+
ao as addAssetTypeFieldsAttachments,
|
|
5994
5999
|
Hu as addAssetTypeFieldsMany,
|
|
5995
6000
|
hh as addAssetTypes,
|
|
5996
|
-
|
|
6001
|
+
ui as addAssets,
|
|
5997
6002
|
Wt as addCategory,
|
|
5998
|
-
|
|
6003
|
+
Ra as addConversation,
|
|
5999
6004
|
Oh as addDocumentAttachment,
|
|
6000
|
-
|
|
6001
|
-
|
|
6005
|
+
$o as addDocumentAttachments,
|
|
6006
|
+
Ko as addDocuments,
|
|
6002
6007
|
tc as addEmailDomain,
|
|
6003
|
-
|
|
6004
|
-
|
|
6008
|
+
ss as addForm,
|
|
6009
|
+
$i as addFormRevision,
|
|
6005
6010
|
Ph as addFormRevisionAttachment,
|
|
6006
6011
|
uc as addFormRevisionAttachments,
|
|
6007
6012
|
bc as addFormRevisions,
|
|
6008
|
-
|
|
6013
|
+
os as addFormSubmission,
|
|
6009
6014
|
Hh as addFormSubmissionAttachment,
|
|
6010
6015
|
Qe as addFormSubmissionAttachments,
|
|
6011
6016
|
ct as addFormSubmissions,
|
|
6012
6017
|
Gh as addForms,
|
|
6013
6018
|
Gc as addGeoImage,
|
|
6014
6019
|
Lc as addGeoImages,
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6020
|
+
Ss as addIssue,
|
|
6021
|
+
ms as addIssueAssociation,
|
|
6022
|
+
Yi as addIssueAssociations,
|
|
6018
6023
|
am as addIssueAttachment,
|
|
6019
|
-
|
|
6020
|
-
|
|
6024
|
+
Qi as addIssueAttachments,
|
|
6025
|
+
gs as addIssueComment,
|
|
6021
6026
|
dm as addIssueComments,
|
|
6022
6027
|
Gr as addIssueType,
|
|
6023
|
-
|
|
6028
|
+
vs as addIssueTypeFieldValues,
|
|
6024
6029
|
Cm as addIssueTypeFieldValuesAttachment,
|
|
6025
6030
|
et as addIssueTypeFieldValuesAttachments,
|
|
6026
6031
|
_m as addIssueTypeFieldValuesMany,
|
|
@@ -6038,34 +6043,34 @@ export {
|
|
|
6038
6043
|
Wd as addProjectFiles,
|
|
6039
6044
|
al as addTeam,
|
|
6040
6045
|
Xm as addUsers,
|
|
6041
|
-
|
|
6042
|
-
|
|
6046
|
+
va as agentsReducer,
|
|
6047
|
+
ni as agentsSlice,
|
|
6043
6048
|
nu as areArraysEqual,
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6049
|
+
Pa as assetAttachmentReducer,
|
|
6050
|
+
oi as assetAttachmentSlice,
|
|
6051
|
+
Ma as assetReducer,
|
|
6052
|
+
li as assetSlice,
|
|
6053
|
+
La as assetStageCompletionReducer,
|
|
6054
|
+
pi as assetStageCompletionSlice,
|
|
6055
|
+
Ha as assetStageReducer,
|
|
6056
|
+
yi as assetStageSlice,
|
|
6057
|
+
io as assetTypeAttachmentReducer,
|
|
6058
|
+
Ai as assetTypeAttachmentSlice,
|
|
6059
|
+
Ro as assetTypeFieldValuesAttachmentReducer,
|
|
6060
|
+
Ri as assetTypeFieldValuesAttachmentSlice,
|
|
6061
|
+
Fo as assetTypeFieldValuesReducer,
|
|
6062
|
+
wi as assetTypeFieldValuesSlice,
|
|
6063
|
+
uo as assetTypeFieldsAttachmentReducer,
|
|
6064
|
+
Si as assetTypeFieldsAttachmentSlice,
|
|
6065
|
+
Ao as assetTypeFieldsReducer,
|
|
6066
|
+
Ti as assetTypeFieldsSlice,
|
|
6067
|
+
qo as assetTypeReducer,
|
|
6068
|
+
Ii as assetTypeSlice,
|
|
6069
|
+
Po as authReducer,
|
|
6065
6070
|
at as authSlice,
|
|
6066
6071
|
lu as blobToBase64,
|
|
6067
|
-
|
|
6068
|
-
|
|
6072
|
+
Mo as categoryReducer,
|
|
6073
|
+
Fi as categorySlice,
|
|
6069
6074
|
gh as clearTokens,
|
|
6070
6075
|
du as constructUploadedFilePayloads,
|
|
6071
6076
|
iu as coordinatesAreEqual,
|
|
@@ -6074,48 +6079,48 @@ export {
|
|
|
6074
6079
|
qd as createOfflineAction,
|
|
6075
6080
|
tu as createPointGeometry,
|
|
6076
6081
|
Rt as deleteAsset,
|
|
6077
|
-
|
|
6078
|
-
|
|
6082
|
+
Fa as deleteAssetAttachment,
|
|
6083
|
+
ri as deleteAssetAttachments,
|
|
6079
6084
|
Pu as deleteAssetStage,
|
|
6080
6085
|
Et as deleteAssetStageCompletion,
|
|
6081
6086
|
Ft as deleteAssetStageCompletions,
|
|
6082
6087
|
Ye as deleteAssetStages,
|
|
6083
6088
|
Lt as deleteAssetType,
|
|
6084
|
-
|
|
6085
|
-
|
|
6089
|
+
Za as deleteAssetTypeAttachment,
|
|
6090
|
+
bi as deleteAssetTypeAttachments,
|
|
6086
6091
|
$t as deleteAssetTypeFieldValues,
|
|
6087
6092
|
nh as deleteAssetTypeFieldValuesAttachment,
|
|
6088
6093
|
Xe as deleteAssetTypeFieldValuesAttachments,
|
|
6089
|
-
|
|
6090
|
-
|
|
6094
|
+
Io as deleteAssetTypeFieldValuesMany,
|
|
6095
|
+
fo as deleteAssetTypeFields,
|
|
6091
6096
|
Lu as deleteAssetTypeFieldsAttachment,
|
|
6092
|
-
|
|
6097
|
+
co as deleteAssetTypeFieldsAttachments,
|
|
6093
6098
|
Ju as deleteAssetTypeFieldsMany,
|
|
6094
6099
|
ph as deleteAssetTypes,
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6100
|
+
Ca as deleteAssets,
|
|
6101
|
+
xo as deleteCategory,
|
|
6102
|
+
Go as deleteDocumentAttachment,
|
|
6103
|
+
Lo as deleteDocumentAttachments,
|
|
6099
6104
|
sc as deleteEmailDomain,
|
|
6100
|
-
|
|
6101
|
-
|
|
6105
|
+
is as deleteForm,
|
|
6106
|
+
Ui as deleteFormRevision,
|
|
6102
6107
|
Mh as deleteFormRevisionAttachment,
|
|
6103
6108
|
mc as deleteFormRevisionAttachments,
|
|
6104
6109
|
_c as deleteFormRevisions,
|
|
6105
|
-
|
|
6110
|
+
cs as deleteFormSubmission,
|
|
6106
6111
|
Jh as deleteFormSubmissionAttachment,
|
|
6107
6112
|
Ze as deleteFormSubmissionAttachments,
|
|
6108
6113
|
rt as deleteFormSubmissions,
|
|
6109
|
-
|
|
6114
|
+
ls as deleteGeoImage,
|
|
6110
6115
|
Nc as deleteGeoImages,
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6116
|
+
Ts as deleteIssue,
|
|
6117
|
+
ps as deleteIssueAssociation,
|
|
6118
|
+
Ji as deleteIssueAssociations,
|
|
6114
6119
|
ar as deleteIssueAttachment,
|
|
6115
|
-
|
|
6116
|
-
|
|
6120
|
+
Zi as deleteIssueAttachments,
|
|
6121
|
+
bs as deleteIssueComment,
|
|
6117
6122
|
lm as deleteIssueComments,
|
|
6118
|
-
|
|
6123
|
+
Is as deleteIssueTypeFieldValues,
|
|
6119
6124
|
$m as deleteIssueTypeFieldValuesAttachment,
|
|
6120
6125
|
tt as deleteIssueTypeFieldValuesAttachments,
|
|
6121
6126
|
Om as deleteIssueTypeFieldValuesMany,
|
|
@@ -6131,61 +6136,61 @@ export {
|
|
|
6131
6136
|
md as deleteProjectAccess,
|
|
6132
6137
|
pd as deleteProjectAccesses,
|
|
6133
6138
|
Vd as deleteProjectAttachment,
|
|
6134
|
-
|
|
6139
|
+
wn as deleteProjectAttachments,
|
|
6135
6140
|
Kd as deleteProjectFile,
|
|
6136
6141
|
Yd as deleteProjectFiles,
|
|
6137
|
-
|
|
6142
|
+
Ws as deleteTeam,
|
|
6138
6143
|
_l as dequeue,
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6144
|
+
Bn as discard,
|
|
6145
|
+
Ho as documentAttachmentReducer,
|
|
6146
|
+
qi as documentAttachmentSlice,
|
|
6147
|
+
Pi as documentSlice,
|
|
6143
6148
|
Qo as documentsReducer,
|
|
6144
6149
|
uu as downloadFile,
|
|
6145
6150
|
ru as downloadInMemoryFile,
|
|
6146
6151
|
ac as emailDomainsReducer,
|
|
6147
|
-
|
|
6152
|
+
Di as emailDomainsSlice,
|
|
6148
6153
|
gu as emailRegex,
|
|
6149
6154
|
bl as enqueue,
|
|
6150
6155
|
jd as enqueueRequest,
|
|
6151
6156
|
g as fallbackToEmptyArray,
|
|
6152
6157
|
fe as fallbackToEmptyObject,
|
|
6153
6158
|
dc as fileReducer,
|
|
6154
|
-
|
|
6155
|
-
|
|
6159
|
+
xi as fileSlice,
|
|
6160
|
+
ba as fileToBlob,
|
|
6156
6161
|
vc as formReducer,
|
|
6157
6162
|
fc as formRevisionAttachmentReducer,
|
|
6158
|
-
|
|
6163
|
+
Mi as formRevisionAttachmentSlice,
|
|
6159
6164
|
Oc as formRevisionReducer,
|
|
6160
|
-
|
|
6161
|
-
|
|
6165
|
+
zi as formRevisionsSlice,
|
|
6166
|
+
Vi as formSlice,
|
|
6162
6167
|
Pc as formSubmissionAttachmentReducer,
|
|
6163
|
-
|
|
6168
|
+
Gi as formSubmissionAttachmentSlice,
|
|
6164
6169
|
$c as formSubmissionReducer,
|
|
6165
|
-
|
|
6170
|
+
Bi as formSubmissionSlice,
|
|
6166
6171
|
Kc as geoImageReducer,
|
|
6167
|
-
|
|
6172
|
+
Wi as geoImageSlice,
|
|
6168
6173
|
cu as getFileIdentifier,
|
|
6169
6174
|
yt as getFileS3Key,
|
|
6170
|
-
|
|
6175
|
+
pa as getLocalDateString,
|
|
6171
6176
|
ou as getLocalRelativeDateString,
|
|
6172
6177
|
pe as getOutboxCoordinator,
|
|
6173
|
-
|
|
6178
|
+
ga as getRenamedFile,
|
|
6174
6179
|
Re as hashFile,
|
|
6175
6180
|
Dp as initSDK,
|
|
6176
6181
|
_t as initializeAssetAttachments,
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6182
|
+
za as initializeAssetStageCompletions,
|
|
6183
|
+
Ba as initializeAssetStages,
|
|
6184
|
+
Ja as initializeAssetTypeAttachments,
|
|
6185
|
+
Oo as initializeAssetTypeFieldValues,
|
|
6186
|
+
go as initializeAssetTypeFieldValuesAttachments,
|
|
6187
|
+
ho as initializeAssetTypeFields,
|
|
6188
|
+
no as initializeAssetTypeFieldsAttachments,
|
|
6189
|
+
ko as initializeAssetTypes,
|
|
6190
|
+
Da as initializeAssets,
|
|
6191
|
+
Do as initializeCategories,
|
|
6192
|
+
Ta as initializeConversations,
|
|
6193
|
+
zo as initializeDocumentAttachments,
|
|
6189
6194
|
ec as initializeEmailDomains,
|
|
6190
6195
|
lc as initializeFormRevisionAttachments,
|
|
6191
6196
|
gc as initializeFormRevisions,
|
|
@@ -6204,63 +6209,63 @@ export {
|
|
|
6204
6209
|
pr as initializeIssues,
|
|
6205
6210
|
td as initializeLicences,
|
|
6206
6211
|
cd as initializeOrganizationAccesses,
|
|
6207
|
-
|
|
6212
|
+
gn as initializeProjectAccesses,
|
|
6208
6213
|
xd as initializeProjectAttachments,
|
|
6209
6214
|
Hd as initializeProjectFiles,
|
|
6210
6215
|
nl as initializeTeams,
|
|
6211
6216
|
au as isToday,
|
|
6212
6217
|
tr as issueAssociationReducer,
|
|
6213
|
-
|
|
6218
|
+
Ki as issueAssociationSlice,
|
|
6214
6219
|
dr as issueAttachmentReducer,
|
|
6215
|
-
|
|
6220
|
+
Xi as issueAttachmentSlice,
|
|
6216
6221
|
mr as issueCommentReducer,
|
|
6217
|
-
|
|
6222
|
+
tn as issueCommentSlice,
|
|
6218
6223
|
gr as issueReducer,
|
|
6219
|
-
|
|
6224
|
+
sn as issueSlice,
|
|
6220
6225
|
Ur as issueTypeFieldValuesAttachmentReducer,
|
|
6221
|
-
|
|
6226
|
+
rn as issueTypeFieldValuesAttachmentSlice,
|
|
6222
6227
|
Er as issueTypeFieldValuesReducer,
|
|
6223
|
-
|
|
6228
|
+
an as issueTypeFieldValuesSlice,
|
|
6224
6229
|
wr as issueTypeFieldsAttachmentReducer,
|
|
6225
|
-
|
|
6230
|
+
nn as issueTypeFieldsAttachmentSlice,
|
|
6226
6231
|
Dr as issueTypeFieldsReducer,
|
|
6227
|
-
|
|
6232
|
+
cn as issueTypeFieldsSlice,
|
|
6228
6233
|
Hr as issueTypeReducer,
|
|
6229
|
-
|
|
6234
|
+
ln as issueTypeSlice,
|
|
6230
6235
|
ed as issueUpdateReducer,
|
|
6231
|
-
|
|
6236
|
+
hn as issueUpdateSlice,
|
|
6232
6237
|
id as licenseReducer,
|
|
6233
|
-
|
|
6238
|
+
mn as licenseSlice,
|
|
6234
6239
|
hu as logOnlyOnce,
|
|
6235
6240
|
Pd as markAsDeleted,
|
|
6236
6241
|
pp as markForDeletion,
|
|
6237
|
-
|
|
6242
|
+
ii as memoize,
|
|
6238
6243
|
Yo as moveDocument,
|
|
6239
6244
|
R as offline,
|
|
6240
6245
|
Au as onlyUniqueHashes,
|
|
6241
|
-
|
|
6246
|
+
Sa as onlyUniqueOfflineIds,
|
|
6242
6247
|
ud as organizationAccessReducer,
|
|
6243
|
-
|
|
6248
|
+
fn as organizationAccessSlice,
|
|
6244
6249
|
kd as organizationReducer,
|
|
6245
|
-
|
|
6250
|
+
Tn as organizationSlice,
|
|
6246
6251
|
Cd as outboxReducer,
|
|
6247
|
-
|
|
6252
|
+
Rn as outboxSlice,
|
|
6248
6253
|
jp as overmapEnhancer,
|
|
6249
6254
|
yl as overmapReducers,
|
|
6250
6255
|
qp as overmapRootReducer,
|
|
6251
|
-
|
|
6256
|
+
Vn as performRequest,
|
|
6252
6257
|
Ad as projectAccessReducer,
|
|
6253
|
-
|
|
6258
|
+
An as projectAccessSlice,
|
|
6254
6259
|
Nd as projectAttachmentReducer,
|
|
6255
|
-
|
|
6260
|
+
On as projectAttachmentSlice,
|
|
6256
6261
|
tl as projectFileReducer,
|
|
6257
|
-
|
|
6262
|
+
In as projectFileSlice,
|
|
6258
6263
|
Td as projectReducer,
|
|
6259
|
-
|
|
6264
|
+
_n as projectSlice,
|
|
6260
6265
|
il as rehydratedReducer,
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6266
|
+
En as rehydratedSlice,
|
|
6267
|
+
Xt as removeDocuments,
|
|
6268
|
+
js as removeIssueType,
|
|
6264
6269
|
ad as removeUser,
|
|
6265
6270
|
Tp as resetProjectFileObjectUrls,
|
|
6266
6271
|
Al as resetStore,
|
|
@@ -6270,52 +6275,52 @@ export {
|
|
|
6270
6275
|
tp as selectActiveOrganizationAccess,
|
|
6271
6276
|
Op as selectActiveProjectFileId,
|
|
6272
6277
|
Wm as selectActiveStatusLicenses,
|
|
6273
|
-
|
|
6274
|
-
|
|
6278
|
+
ji as selectAllDocumentAttachments,
|
|
6279
|
+
vn as selectAllProjectAttachments,
|
|
6275
6280
|
kh as selectAncestorIdsOfDocument,
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6281
|
+
qa as selectAssetAttachmentById,
|
|
6282
|
+
ka as selectAssetAttachmentMapping,
|
|
6283
|
+
di as selectAssetAttachments,
|
|
6279
6284
|
Ot as selectAssetById,
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
+
Wa as selectAssetStageById,
|
|
6286
|
+
Va as selectAssetStageCompletionById,
|
|
6287
|
+
fi as selectAssetStageCompletionMapping,
|
|
6288
|
+
Ga as selectAssetStageCompletionsByIds,
|
|
6289
|
+
Ka as selectAssetStages,
|
|
6285
6290
|
jt as selectAssetStagesByIds,
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6291
|
+
to as selectAssetTypeAttachmentById,
|
|
6292
|
+
eo as selectAssetTypeAttachmentMapping,
|
|
6293
|
+
_i as selectAssetTypeAttachments,
|
|
6289
6294
|
Bt as selectAssetTypeById,
|
|
6290
|
-
|
|
6295
|
+
vi as selectAssetTypeFieldValues,
|
|
6291
6296
|
ah as selectAssetTypeFieldValuesAttachmentById,
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6297
|
+
_o as selectAssetTypeFieldValuesAttachments,
|
|
6298
|
+
So as selectAssetTypeFieldValuesAttachmentsByIds,
|
|
6299
|
+
Oi as selectAssetTypeFieldValuesAttachmentsMapping,
|
|
6295
6300
|
Ut as selectAssetTypeFieldValuesById,
|
|
6296
|
-
|
|
6301
|
+
Eo as selectAssetTypeFieldValuesMapping,
|
|
6297
6302
|
rh as selectAssetTypeFieldValuesOfAsset,
|
|
6298
6303
|
nt as selectAssetTypeFields,
|
|
6299
6304
|
Nu as selectAssetTypeFieldsAttachmentById,
|
|
6300
|
-
|
|
6301
|
-
|
|
6305
|
+
lo as selectAssetTypeFieldsAttachments,
|
|
6306
|
+
ro as selectAssetTypeFieldsAttachmentsMapping,
|
|
6302
6307
|
Zu as selectAssetTypeFieldsById,
|
|
6303
|
-
|
|
6308
|
+
yo as selectAssetTypeFieldsMapping,
|
|
6304
6309
|
Xu as selectAssetTypeFieldsOfAssetType,
|
|
6305
6310
|
Du as selectAssetTypeStagesMapping,
|
|
6306
6311
|
dh as selectAssetTypeValuesOfAssetType,
|
|
6307
6312
|
fh as selectAssetTypes,
|
|
6308
6313
|
yh as selectAssetTypesByIds,
|
|
6309
|
-
|
|
6310
|
-
|
|
6314
|
+
Ei as selectAssetTypesMapping,
|
|
6315
|
+
xa as selectAssets,
|
|
6311
6316
|
Eu as selectAssetsByIds,
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6317
|
+
hi as selectAssetsMapping,
|
|
6318
|
+
mi as selectAssetsOfAssetType,
|
|
6319
|
+
ja as selectAttachmentsOfAsset,
|
|
6315
6320
|
Ou as selectAttachmentsOfAssetByType,
|
|
6316
|
-
|
|
6321
|
+
so as selectAttachmentsOfAssetType,
|
|
6317
6322
|
zu as selectAttachmentsOfAssetTypeByType,
|
|
6318
|
-
|
|
6323
|
+
To as selectAttachmentsOfAssetTypeFieldValues,
|
|
6319
6324
|
Bu as selectAttachmentsOfAssetTypeFields,
|
|
6320
6325
|
Ih as selectAttachmentsOfDocument,
|
|
6321
6326
|
Eh as selectAttachmentsOfDocumentByType,
|
|
@@ -6330,16 +6335,16 @@ export {
|
|
|
6330
6335
|
Sh as selectCategories,
|
|
6331
6336
|
Th as selectCategoriesByIds,
|
|
6332
6337
|
Kt as selectCategoryById,
|
|
6333
|
-
|
|
6338
|
+
ki as selectCategoryMapping,
|
|
6334
6339
|
um as selectCommentsOfIssue,
|
|
6335
6340
|
ku as selectCompletedStagesByAsset,
|
|
6336
6341
|
_u as selectConversation,
|
|
6337
|
-
|
|
6342
|
+
ai as selectConversationMapping,
|
|
6338
6343
|
bu as selectConversations,
|
|
6339
6344
|
ut as selectCurrentUser,
|
|
6340
6345
|
hp as selectDeletedRequests,
|
|
6341
|
-
|
|
6342
|
-
|
|
6346
|
+
No as selectDocumentAttachmentById,
|
|
6347
|
+
Bo as selectDocumentAttachmentMapping,
|
|
6343
6348
|
Xo as selectDocumentById,
|
|
6344
6349
|
Jo as selectDocuments,
|
|
6345
6350
|
Fh as selectDocumentsByIds,
|
|
@@ -6356,15 +6361,15 @@ export {
|
|
|
6356
6361
|
Sc as selectFormRevisions,
|
|
6357
6362
|
Rc as selectFormRevisionsOfForm,
|
|
6358
6363
|
qc as selectFormSubmissionAttachemntsByIds,
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6364
|
+
Li as selectFormSubmissionAttachmentsMapping,
|
|
6365
|
+
rs as selectFormSubmissionById,
|
|
6366
|
+
Hi as selectFormSubmissions,
|
|
6367
|
+
Ni as selectFormSubmissionsMapping,
|
|
6363
6368
|
zc as selectFormSubmissionsOfAsset,
|
|
6364
6369
|
xc as selectFormSubmissionsOfForm,
|
|
6365
6370
|
Mc as selectFormSubmissionsOfIssue,
|
|
6366
6371
|
Bh as selectForms,
|
|
6367
|
-
|
|
6372
|
+
us as selectGeoImageById,
|
|
6368
6373
|
Hc as selectGeoImageMapping,
|
|
6369
6374
|
Wc as selectGeoImages,
|
|
6370
6375
|
em as selectGeoImagesOfProject,
|
|
@@ -6378,19 +6383,19 @@ export {
|
|
|
6378
6383
|
Qc as selectIssueAssociationsToIssue,
|
|
6379
6384
|
rr as selectIssueAttachmentById,
|
|
6380
6385
|
or as selectIssueAttachmentMapping,
|
|
6381
|
-
|
|
6382
|
-
|
|
6386
|
+
en as selectIssueAttachments,
|
|
6387
|
+
Rs as selectIssueById,
|
|
6383
6388
|
hr as selectIssueCommentById,
|
|
6384
6389
|
ur as selectIssueCommentMapping,
|
|
6385
6390
|
Rh as selectIssueCountOfCategory,
|
|
6386
6391
|
Ar as selectIssueMapping,
|
|
6387
|
-
|
|
6388
|
-
|
|
6392
|
+
Ps as selectIssueTypeById,
|
|
6393
|
+
on as selectIssueTypeFieldValues,
|
|
6389
6394
|
Um as selectIssueTypeFieldValuesAttachmentById,
|
|
6390
6395
|
Mr as selectIssueTypeFieldValuesAttachments,
|
|
6391
6396
|
zr as selectIssueTypeFieldValuesAttachmentsByIds,
|
|
6392
|
-
|
|
6393
|
-
|
|
6397
|
+
dn as selectIssueTypeFieldValuesAttachmentsMapping,
|
|
6398
|
+
Es as selectIssueTypeFieldValuesById,
|
|
6394
6399
|
Ir as selectIssueTypeFieldValuesMapping,
|
|
6395
6400
|
wm as selectIssueTypeFieldValuesOfIssue,
|
|
6396
6401
|
dt as selectIssueTypeFields,
|
|
@@ -6408,7 +6413,7 @@ export {
|
|
|
6408
6413
|
Qr as selectIssueUpdateMapping,
|
|
6409
6414
|
Zr as selectIssueUpdatesOfIssue,
|
|
6410
6415
|
hm as selectIssuesByIds,
|
|
6411
|
-
|
|
6416
|
+
un as selectIssuesOfIssueType,
|
|
6412
6417
|
Lm as selectIssuesOfIssueTypeCount,
|
|
6413
6418
|
Qu as selectLatestAssetTypeFieldsOfAssetType,
|
|
6414
6419
|
Uh as selectLatestFormRevisionOfForm,
|
|
@@ -6423,7 +6428,7 @@ export {
|
|
|
6423
6428
|
ep as selectOrganizationAccessById,
|
|
6424
6429
|
sp as selectOrganizationAccessForUser,
|
|
6425
6430
|
ld as selectOrganizationAccessUserMapping,
|
|
6426
|
-
|
|
6431
|
+
yn as selectOrganizationAccesses,
|
|
6427
6432
|
cp as selectOrganizationById,
|
|
6428
6433
|
Fd as selectOrganizationUsersAsMapping,
|
|
6429
6434
|
Ed as selectOrganizationUsersIds,
|
|
@@ -6432,7 +6437,7 @@ export {
|
|
|
6432
6437
|
rp as selectOrganizationsWithAccess,
|
|
6433
6438
|
ip as selectProjectAccessById,
|
|
6434
6439
|
np as selectProjectAccessForUser,
|
|
6435
|
-
|
|
6440
|
+
bn as selectProjectAccessMapping,
|
|
6436
6441
|
yd as selectProjectAccessUserMapping,
|
|
6437
6442
|
fd as selectProjectAccesses,
|
|
6438
6443
|
Ld as selectProjectAttachmentById,
|
|
@@ -6441,7 +6446,7 @@ export {
|
|
|
6441
6446
|
Rp as selectProjectFileById,
|
|
6442
6447
|
Zd as selectProjectFileMapping,
|
|
6443
6448
|
el as selectProjectFiles,
|
|
6444
|
-
|
|
6449
|
+
Sn as selectProjectMapping,
|
|
6445
6450
|
Od as selectProjectUsersAsMapping,
|
|
6446
6451
|
Rd as selectProjectUsersIds,
|
|
6447
6452
|
dp as selectProjectsOfOrganization,
|
|
@@ -6450,27 +6455,27 @@ export {
|
|
|
6450
6455
|
up as selectSortedOrganizationUsers,
|
|
6451
6456
|
op as selectSortedProjectUsers,
|
|
6452
6457
|
it as selectStageMapping,
|
|
6453
|
-
|
|
6458
|
+
Ya as selectStagesOfAssetType,
|
|
6454
6459
|
ge as selectTeamById,
|
|
6455
|
-
|
|
6460
|
+
qn as selectTeams,
|
|
6456
6461
|
Ep as selectTeamsByIds,
|
|
6457
|
-
|
|
6462
|
+
kn as selectTeamsMapping,
|
|
6458
6463
|
Fp as selectTeamsOfOrganization,
|
|
6459
6464
|
kp as selectTeamsOfUser,
|
|
6460
6465
|
rc as selectUploadUrl,
|
|
6461
6466
|
Qm as selectUserById,
|
|
6462
6467
|
Zm as selectUsersByIds,
|
|
6463
6468
|
ht as selectUsersMapping,
|
|
6464
|
-
|
|
6469
|
+
Xs as separateFilesFromValues,
|
|
6465
6470
|
tf as separateImageFromFields,
|
|
6466
6471
|
Xd as setActiveProjectFileId,
|
|
6467
6472
|
vu as setAsset,
|
|
6468
|
-
|
|
6473
|
+
Ia as setAssetAttachment,
|
|
6469
6474
|
Tu as setAssetAttachments,
|
|
6470
|
-
|
|
6475
|
+
Na as setAssetStage,
|
|
6471
6476
|
qu as setAssetStages,
|
|
6472
6477
|
lh as setAssetType,
|
|
6473
|
-
|
|
6478
|
+
Xa as setAssetTypeAttachment,
|
|
6474
6479
|
xu as setAssetTypeAttachments,
|
|
6475
6480
|
oh as setAssetTypeFieldValues,
|
|
6476
6481
|
th as setAssetTypeFieldValuesAttachment,
|
|
@@ -6482,11 +6487,11 @@ export {
|
|
|
6482
6487
|
Ku as setAssetTypeFieldsMany,
|
|
6483
6488
|
uh as setAssetTypes,
|
|
6484
6489
|
Iu as setAssets,
|
|
6485
|
-
|
|
6490
|
+
Oa as setConversation,
|
|
6486
6491
|
Ym as setCurrentUser,
|
|
6487
|
-
|
|
6492
|
+
Uo as setDocumentAttachment,
|
|
6488
6493
|
wh as setDocumentAttachments,
|
|
6489
|
-
|
|
6494
|
+
Wo as setDocuments,
|
|
6490
6495
|
Vh as setForm,
|
|
6491
6496
|
Ac as setFormRevision,
|
|
6492
6497
|
Dh as setFormRevisionAttachment,
|
|
@@ -6502,7 +6507,7 @@ export {
|
|
|
6502
6507
|
tm as setIssueAssociations,
|
|
6503
6508
|
ir as setIssueAttachment,
|
|
6504
6509
|
om as setIssueAttachments,
|
|
6505
|
-
|
|
6510
|
+
As as setIssueComment,
|
|
6506
6511
|
lr as setIssueComments,
|
|
6507
6512
|
Pe as setIssueType,
|
|
6508
6513
|
Sm as setIssueTypeFieldValues,
|
|
@@ -6514,7 +6519,7 @@ export {
|
|
|
6514
6519
|
fm as setIssueTypeFieldsAttachments,
|
|
6515
6520
|
Em as setIssueTypeFieldsMany,
|
|
6516
6521
|
Bm as setIssueUpdate,
|
|
6517
|
-
|
|
6522
|
+
jo as setLoggedIn,
|
|
6518
6523
|
wd as setOrganizations,
|
|
6519
6524
|
Jm as setProfilePicture,
|
|
6520
6525
|
zd as setProjectAttachment,
|
|
@@ -6527,38 +6532,38 @@ export {
|
|
|
6527
6532
|
Ah as setTokens,
|
|
6528
6533
|
cc as setUploadUrl,
|
|
6529
6534
|
nd as setUsers,
|
|
6530
|
-
|
|
6535
|
+
ma as shallowEqual,
|
|
6531
6536
|
fu as slugify,
|
|
6532
6537
|
pu as spacesToDashesLower,
|
|
6533
6538
|
ol as teamReducer,
|
|
6534
|
-
|
|
6539
|
+
Fn as teamSlice,
|
|
6535
6540
|
mu as toFileNameSafeString,
|
|
6536
|
-
|
|
6541
|
+
_a as toOfflineIdRecord,
|
|
6537
6542
|
yu as truncate,
|
|
6538
6543
|
Ee as updateAsset,
|
|
6539
6544
|
Ru as updateAssetAttachment,
|
|
6540
|
-
|
|
6545
|
+
Ea as updateAssetAttachments,
|
|
6541
6546
|
qt as updateAssetStage,
|
|
6542
|
-
|
|
6543
|
-
|
|
6547
|
+
$a as updateAssetStageCompletion,
|
|
6548
|
+
Ua as updateAssetStageCompletions,
|
|
6544
6549
|
Ue as updateAssetStages,
|
|
6545
6550
|
ke as updateAssetType,
|
|
6546
6551
|
Mu as updateAssetTypeAttachment,
|
|
6547
|
-
|
|
6552
|
+
Qa as updateAssetTypeAttachments,
|
|
6548
6553
|
Fe as updateAssetTypeFieldValues,
|
|
6549
6554
|
ih as updateAssetTypeFieldValuesAttachment,
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6555
|
+
bo as updateAssetTypeFieldValuesAttachments,
|
|
6556
|
+
vo as updateAssetTypeFieldValuesMany,
|
|
6557
|
+
po as updateAssetTypeFields,
|
|
6553
6558
|
Gu as updateAssetTypeFieldsAttachment,
|
|
6554
|
-
|
|
6559
|
+
oo as updateAssetTypeFieldsAttachments,
|
|
6555
6560
|
Yu as updateAssetTypeFieldsMany,
|
|
6556
6561
|
mh as updateAssetTypes,
|
|
6557
6562
|
wu as updateAssets,
|
|
6558
|
-
|
|
6559
|
-
|
|
6563
|
+
Co as updateCategory,
|
|
6564
|
+
wa as updateConversation,
|
|
6560
6565
|
vh as updateDocumentAttachment,
|
|
6561
|
-
|
|
6566
|
+
Vo as updateDocumentAttachments,
|
|
6562
6567
|
ne as updateDocuments,
|
|
6563
6568
|
Lh as updateForm,
|
|
6564
6569
|
xh as updateFormRevisionAttachment,
|
|
@@ -6589,11 +6594,11 @@ export {
|
|
|
6589
6594
|
hd as updateProjectAccess,
|
|
6590
6595
|
yp as updateProjectAttachment,
|
|
6591
6596
|
Ud as updateProjectAttachments,
|
|
6592
|
-
|
|
6597
|
+
Bs as updateProjectFile,
|
|
6593
6598
|
Sp as updateProjectFiles,
|
|
6594
|
-
|
|
6599
|
+
Hs as updateTeam,
|
|
6595
6600
|
od as userReducer,
|
|
6596
|
-
|
|
6601
|
+
pn as userSlice,
|
|
6597
6602
|
dl as versioningReducer,
|
|
6598
6603
|
rl as versioningSlice
|
|
6599
6604
|
};
|