@overmap-ai/core 1.0.74-remove-workspaces.0 → 1.0.74
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/enums/access.d.ts +6 -4
- package/dist/overmap-core.js +701 -701
- package/dist/overmap-core.umd.cjs +6 -6
- package/dist/typings/models/access.d.ts +0 -1
- package/package.json +1 -1
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({
|
|
@@ -2802,10 +2802,10 @@ class Mp extends w {
|
|
|
2802
2802
|
async remove(e) {
|
|
2803
2803
|
const { store: s } = this.client, i = s.getState(), n = Ot(e)(i);
|
|
2804
2804
|
if (!n) throw new Error(`No asset with id ${e} found in the store`);
|
|
2805
|
-
const a =
|
|
2805
|
+
const a = ja(e)(i), o = zc(e)(i), r = er(e)(i);
|
|
2806
2806
|
if (this.dispatch(Rt(e)), a.length > 0) {
|
|
2807
2807
|
const u = a.map(({ offline_id: c }) => c);
|
|
2808
|
-
this.dispatch(
|
|
2808
|
+
this.dispatch(ri(u));
|
|
2809
2809
|
}
|
|
2810
2810
|
if (o.length > 0) {
|
|
2811
2811
|
const u = o.map(({ offline_id: c }) => c);
|
|
@@ -2813,7 +2813,7 @@ class Mp extends w {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
if (r.length > 0) {
|
|
2815
2815
|
const u = r.map(({ offline_id: c }) => c);
|
|
2816
|
-
this.dispatch(
|
|
2816
|
+
this.dispatch(Ji(u));
|
|
2817
2817
|
}
|
|
2818
2818
|
return this.enqueueRequest({
|
|
2819
2819
|
description: "Delete asset",
|
|
@@ -2822,7 +2822,7 @@ class Mp extends w {
|
|
|
2822
2822
|
blockers: [e],
|
|
2823
2823
|
blocks: []
|
|
2824
2824
|
}).catch((u) => {
|
|
2825
|
-
throw this.dispatch(Tt(n)), this.dispatch(
|
|
2825
|
+
throw this.dispatch(Tt(n)), this.dispatch(ci(a)), this.dispatch(ct(o)), this.dispatch(Yi(r)), u;
|
|
2826
2826
|
});
|
|
2827
2827
|
}
|
|
2828
2828
|
bulkAdd(e, s, i, n) {
|
|
@@ -2857,7 +2857,7 @@ class Mp extends w {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
return Promise.all(u).then((l) => {
|
|
2859
2859
|
const h = l.flat();
|
|
2860
|
-
this.dispatch(
|
|
2860
|
+
this.dispatch(ui(h));
|
|
2861
2861
|
}), u;
|
|
2862
2862
|
}
|
|
2863
2863
|
async refreshStore(e) {
|
|
@@ -2871,7 +2871,7 @@ class Mp extends w {
|
|
|
2871
2871
|
blockers: [],
|
|
2872
2872
|
blocks: []
|
|
2873
2873
|
});
|
|
2874
|
-
this.dispatch(
|
|
2874
|
+
this.dispatch(Da(s));
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
2877
|
class zp extends w {
|
|
@@ -2896,13 +2896,13 @@ class zp extends w {
|
|
|
2896
2896
|
blocks: [a.offline_id]
|
|
2897
2897
|
});
|
|
2898
2898
|
return o.then((r) => {
|
|
2899
|
-
this.dispatch(
|
|
2899
|
+
this.dispatch($a(r));
|
|
2900
2900
|
}).catch(() => {
|
|
2901
2901
|
this.dispatch(Et(a.offline_id));
|
|
2902
2902
|
}), [a, o];
|
|
2903
2903
|
}
|
|
2904
2904
|
delete(e) {
|
|
2905
|
-
const { store: s } = this.client, i =
|
|
2905
|
+
const { store: s } = this.client, i = Va(e)(s.getState());
|
|
2906
2906
|
if (!i)
|
|
2907
2907
|
throw new Error(`Expected asset stage completion with id ${e} to exist`);
|
|
2908
2908
|
this.dispatch(Et(e));
|
|
@@ -2936,13 +2936,13 @@ class zp extends w {
|
|
|
2936
2936
|
blocks: r
|
|
2937
2937
|
});
|
|
2938
2938
|
return u.then((c) => {
|
|
2939
|
-
this.dispatch(
|
|
2939
|
+
this.dispatch(Ua(c));
|
|
2940
2940
|
}).catch(() => {
|
|
2941
2941
|
this.dispatch(Ft(r));
|
|
2942
2942
|
}), [o, u];
|
|
2943
2943
|
}
|
|
2944
2944
|
bulkDelete(e) {
|
|
2945
|
-
const { store: s } = this.client, i =
|
|
2945
|
+
const { store: s } = this.client, i = Ga(e)(s.getState());
|
|
2946
2946
|
this.dispatch(Ft(e));
|
|
2947
2947
|
const n = this.enqueueRequest({
|
|
2948
2948
|
description: "Deleting asset stage completions",
|
|
@@ -2969,7 +2969,7 @@ class zp extends w {
|
|
|
2969
2969
|
blockers: [],
|
|
2970
2970
|
blocks: []
|
|
2971
2971
|
});
|
|
2972
|
-
this.dispatch(
|
|
2972
|
+
this.dispatch(za(s));
|
|
2973
2973
|
}
|
|
2974
2974
|
}
|
|
2975
2975
|
class $p extends w {
|
|
@@ -3027,7 +3027,7 @@ class $p extends w {
|
|
|
3027
3027
|
}), n;
|
|
3028
3028
|
}
|
|
3029
3029
|
update(e) {
|
|
3030
|
-
const { store: s } = this.client, i =
|
|
3030
|
+
const { store: s } = this.client, i = Wa(e.offline_id)(s.getState());
|
|
3031
3031
|
if (!i) throw new Error(`No asset stage with id ${e.offline_id} found in the store`);
|
|
3032
3032
|
const n = {
|
|
3033
3033
|
...i,
|
|
@@ -3050,7 +3050,7 @@ class $p extends w {
|
|
|
3050
3050
|
return a.then((o) => {
|
|
3051
3051
|
this.dispatch(qt(o));
|
|
3052
3052
|
}).catch(() => {
|
|
3053
|
-
this.dispatch(
|
|
3053
|
+
this.dispatch(Na(i));
|
|
3054
3054
|
}), [n, a];
|
|
3055
3055
|
}
|
|
3056
3056
|
async refreshStore(e) {
|
|
@@ -3064,7 +3064,7 @@ class $p extends w {
|
|
|
3064
3064
|
blockers: [],
|
|
3065
3065
|
blocks: []
|
|
3066
3066
|
});
|
|
3067
|
-
this.dispatch(
|
|
3067
|
+
this.dispatch(Ba(s));
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
3070
3070
|
class Up extends Ie {
|
|
@@ -3072,12 +3072,12 @@ class Up extends Ie {
|
|
|
3072
3072
|
super(...arguments);
|
|
3073
3073
|
y(this, "name", "Asset Type Attachment");
|
|
3074
3074
|
y(this, "url", "/asset-type-attachments");
|
|
3075
|
-
y(this, "addAttachments",
|
|
3076
|
-
y(this, "updateAttachments",
|
|
3077
|
-
y(this, "removeAttachments",
|
|
3078
|
-
y(this, "removeAttachment",
|
|
3079
|
-
y(this, "setAttachment",
|
|
3080
|
-
y(this, "selectAttachment",
|
|
3075
|
+
y(this, "addAttachments", gi);
|
|
3076
|
+
y(this, "updateAttachments", Qa);
|
|
3077
|
+
y(this, "removeAttachments", bi);
|
|
3078
|
+
y(this, "removeAttachment", Za);
|
|
3079
|
+
y(this, "setAttachment", Xa);
|
|
3080
|
+
y(this, "selectAttachment", to);
|
|
3081
3081
|
}
|
|
3082
3082
|
buildOfflineAttachment(s) {
|
|
3083
3083
|
return R({
|
|
@@ -3114,7 +3114,7 @@ class Up extends Ie {
|
|
|
3114
3114
|
blocks: [],
|
|
3115
3115
|
blockers: []
|
|
3116
3116
|
});
|
|
3117
|
-
this.dispatch(
|
|
3117
|
+
this.dispatch(Ja(i));
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
3120
|
class Vp extends k {
|
|
@@ -3145,7 +3145,7 @@ class Vp extends k {
|
|
|
3145
3145
|
};
|
|
3146
3146
|
o.push(T);
|
|
3147
3147
|
}
|
|
3148
|
-
this.dispatch(
|
|
3148
|
+
this.dispatch(ao(a));
|
|
3149
3149
|
const r = this.enqueueRequest({
|
|
3150
3150
|
description: "Add asset type fields attachments",
|
|
3151
3151
|
method: d.POST,
|
|
@@ -3159,10 +3159,10 @@ class Vp extends k {
|
|
|
3159
3159
|
blocks: a.map((c) => c.offline_id)
|
|
3160
3160
|
});
|
|
3161
3161
|
return r.then((c) => {
|
|
3162
|
-
this.processPresignedUrls(c.presigned_urls), this.dispatch(
|
|
3162
|
+
this.processPresignedUrls(c.presigned_urls), this.dispatch(oo(c.attachments));
|
|
3163
3163
|
}).catch(() => {
|
|
3164
3164
|
this.dispatch(
|
|
3165
|
-
|
|
3165
|
+
co(
|
|
3166
3166
|
a.map((c) => c.offline_id)
|
|
3167
3167
|
)
|
|
3168
3168
|
);
|
|
@@ -3179,7 +3179,7 @@ class Vp extends k {
|
|
|
3179
3179
|
blockers: [e.toString()],
|
|
3180
3180
|
blocks: []
|
|
3181
3181
|
});
|
|
3182
|
-
this.dispatch(
|
|
3182
|
+
this.dispatch(no(s));
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
3185
|
class Gp extends w {
|
|
@@ -3190,7 +3190,7 @@ class Gp extends w {
|
|
|
3190
3190
|
created_by: i,
|
|
3191
3191
|
submitted_at: n
|
|
3192
3192
|
});
|
|
3193
|
-
this.dispatch(
|
|
3193
|
+
this.dispatch(mo(a));
|
|
3194
3194
|
const o = this.enqueueRequest({
|
|
3195
3195
|
description: "Add Asset Type Fields",
|
|
3196
3196
|
method: d.POST,
|
|
@@ -3200,9 +3200,9 @@ class Gp extends w {
|
|
|
3200
3200
|
blocks: [a.offline_id]
|
|
3201
3201
|
});
|
|
3202
3202
|
return o.then((u) => {
|
|
3203
|
-
this.dispatch(
|
|
3203
|
+
this.dispatch(po(u));
|
|
3204
3204
|
}).catch((u) => {
|
|
3205
|
-
throw this.dispatch(
|
|
3205
|
+
throw this.dispatch(fo(a.offline_id)), u;
|
|
3206
3206
|
}), [a, o];
|
|
3207
3207
|
}
|
|
3208
3208
|
async refreshStore(e) {
|
|
@@ -3216,7 +3216,7 @@ class Gp extends w {
|
|
|
3216
3216
|
blockers: [],
|
|
3217
3217
|
blocks: []
|
|
3218
3218
|
});
|
|
3219
|
-
this.dispatch(
|
|
3219
|
+
this.dispatch(ho(s));
|
|
3220
3220
|
}
|
|
3221
3221
|
}
|
|
3222
3222
|
class Lp extends k {
|
|
@@ -3267,7 +3267,7 @@ class Lp extends k {
|
|
|
3267
3267
|
return Promise.all(u).then((l) => {
|
|
3268
3268
|
for (const m of l) this.processPresignedUrls(m.presigned_urls);
|
|
3269
3269
|
const h = l.flatMap((m) => m.attachments);
|
|
3270
|
-
this.dispatch(
|
|
3270
|
+
this.dispatch(bo(h));
|
|
3271
3271
|
}).catch((l) => {
|
|
3272
3272
|
throw this.dispatch(
|
|
3273
3273
|
Xe(
|
|
@@ -3280,7 +3280,7 @@ class Lp extends k {
|
|
|
3280
3280
|
];
|
|
3281
3281
|
}
|
|
3282
3282
|
async bulkDelete(e) {
|
|
3283
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3283
|
+
const { store: s } = this.client, i = s.getState(), n = So(e)(i);
|
|
3284
3284
|
this.dispatch(Xe(e));
|
|
3285
3285
|
try {
|
|
3286
3286
|
await this.enqueueRequest({
|
|
@@ -3306,10 +3306,10 @@ class Lp extends k {
|
|
|
3306
3306
|
blockers: [],
|
|
3307
3307
|
blocks: []
|
|
3308
3308
|
});
|
|
3309
|
-
this.dispatch(
|
|
3309
|
+
this.dispatch(go(s));
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
|
-
const Dl = (t) => Array.isArray(t) && t[0] instanceof File,
|
|
3312
|
+
const Dl = (t) => Array.isArray(t) && t[0] instanceof File, Xs = (t) => {
|
|
3313
3313
|
const e = {}, s = {};
|
|
3314
3314
|
for (const i in t) {
|
|
3315
3315
|
const n = t[i];
|
|
@@ -3337,12 +3337,12 @@ class Bp extends k {
|
|
|
3337
3337
|
],
|
|
3338
3338
|
blocks: [n.offline_id]
|
|
3339
3339
|
});
|
|
3340
|
-
return this.dispatch(
|
|
3341
|
-
this.dispatch(
|
|
3340
|
+
return this.dispatch(os(n)), a.then((r) => (this.dispatch(Ve(r)), r)).catch(() => {
|
|
3341
|
+
this.dispatch(cs(n.offline_id));
|
|
3342
3342
|
}), [n, a];
|
|
3343
3343
|
}
|
|
3344
3344
|
update(e) {
|
|
3345
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3345
|
+
const { store: s } = this.client, i = s.getState(), n = rs(e.offline_id)(i);
|
|
3346
3346
|
if (!n)
|
|
3347
3347
|
throw new Error(`Expected submission with offline_id ${e.offline_id} to exist`);
|
|
3348
3348
|
const a = {
|
|
@@ -3365,11 +3365,11 @@ class Bp extends k {
|
|
|
3365
3365
|
}), [a, o];
|
|
3366
3366
|
}
|
|
3367
3367
|
async delete(e) {
|
|
3368
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3368
|
+
const { store: s } = this.client, i = s.getState(), n = rs(e)(i);
|
|
3369
3369
|
if (!n)
|
|
3370
3370
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
3371
3371
|
const a = jc(e)(i);
|
|
3372
|
-
this.dispatch(
|
|
3372
|
+
this.dispatch(cs(e)), this.dispatch(Ze(a.map((o) => o.offline_id)));
|
|
3373
3373
|
try {
|
|
3374
3374
|
return await this.enqueueRequest({
|
|
3375
3375
|
description: "Delete user form submissions",
|
|
@@ -3379,7 +3379,7 @@ class Bp extends k {
|
|
|
3379
3379
|
blocks: []
|
|
3380
3380
|
});
|
|
3381
3381
|
} catch (o) {
|
|
3382
|
-
throw this.dispatch(
|
|
3382
|
+
throw this.dispatch(os(n)), this.dispatch(Qe(a)), o;
|
|
3383
3383
|
}
|
|
3384
3384
|
}
|
|
3385
3385
|
async refreshStore(e) {
|
|
@@ -3417,13 +3417,13 @@ class Np extends w {
|
|
|
3417
3417
|
}
|
|
3418
3418
|
bulkAdd(e, s) {
|
|
3419
3419
|
var c;
|
|
3420
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } =
|
|
3420
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = Xs(e.values), a = [], o = mt(e.payloads, s ?? e.payloads.length), r = [];
|
|
3421
3421
|
for (const l of o) {
|
|
3422
3422
|
const h = [];
|
|
3423
3423
|
for (const m of l) {
|
|
3424
3424
|
const f = R({
|
|
3425
3425
|
...m,
|
|
3426
|
-
values:
|
|
3426
|
+
values: Xs(m.values).values,
|
|
3427
3427
|
created_by: (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id,
|
|
3428
3428
|
submitted_at: i
|
|
3429
3429
|
});
|
|
@@ -3441,7 +3441,7 @@ class Np extends w {
|
|
|
3441
3441
|
field_values: h
|
|
3442
3442
|
});
|
|
3443
3443
|
}
|
|
3444
|
-
this.dispatch(
|
|
3444
|
+
this.dispatch(wo(a));
|
|
3445
3445
|
const u = [];
|
|
3446
3446
|
for (const l of r) {
|
|
3447
3447
|
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({
|
|
@@ -3455,9 +3455,9 @@ class Np extends w {
|
|
|
3455
3455
|
u.push(b);
|
|
3456
3456
|
}
|
|
3457
3457
|
return Promise.all(u).then((l) => {
|
|
3458
|
-
this.dispatch(
|
|
3458
|
+
this.dispatch(vo(l.flat()));
|
|
3459
3459
|
}).catch(() => {
|
|
3460
|
-
this.dispatch(
|
|
3460
|
+
this.dispatch(Io(a.map((l) => l.offline_id)));
|
|
3461
3461
|
}), [a, u];
|
|
3462
3462
|
}
|
|
3463
3463
|
update(e) {
|
|
@@ -3491,7 +3491,7 @@ class Np extends w {
|
|
|
3491
3491
|
const { store: s } = this.client, i = s.getState(), n = Ut(e)(i);
|
|
3492
3492
|
if (!n)
|
|
3493
3493
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
3494
|
-
const a =
|
|
3494
|
+
const a = To(e)(i);
|
|
3495
3495
|
this.dispatch($t(e)), this.dispatch(Xe(a.map((o) => o.offline_id)));
|
|
3496
3496
|
try {
|
|
3497
3497
|
await this.enqueueRequest({
|
|
@@ -3516,7 +3516,7 @@ class Np extends w {
|
|
|
3516
3516
|
blockers: [],
|
|
3517
3517
|
blocks: []
|
|
3518
3518
|
});
|
|
3519
|
-
this.dispatch(
|
|
3519
|
+
this.dispatch(Oo(s));
|
|
3520
3520
|
}
|
|
3521
3521
|
}
|
|
3522
3522
|
class Hp extends w {
|
|
@@ -3573,15 +3573,15 @@ class Hp extends w {
|
|
|
3573
3573
|
const { store: s } = this.client, i = s.getState(), n = Bt(e)(i);
|
|
3574
3574
|
if (!n)
|
|
3575
3575
|
throw new Error(`Expected asset type with offline_id ${e} to exist`);
|
|
3576
|
-
const a =
|
|
3577
|
-
return this.dispatch(Lt(e)), this.dispatch(
|
|
3576
|
+
const a = mi(e)(i), o = Ya(e)(i), r = so(e)(i);
|
|
3577
|
+
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({
|
|
3578
3578
|
description: "Delete asset type",
|
|
3579
3579
|
method: d.DELETE,
|
|
3580
3580
|
url: `/asset-types/${e}/`,
|
|
3581
3581
|
blockers: [e],
|
|
3582
3582
|
blocks: []
|
|
3583
3583
|
}).catch((u) => {
|
|
3584
|
-
throw this.dispatch(Gt(n)), this.dispatch(
|
|
3584
|
+
throw this.dispatch(Gt(n)), this.dispatch(ui(a)), this.dispatch(Ke(o)), this.dispatch(gi(r)), u;
|
|
3585
3585
|
});
|
|
3586
3586
|
}
|
|
3587
3587
|
async refreshStore(e) {
|
|
@@ -3595,7 +3595,7 @@ class Hp extends w {
|
|
|
3595
3595
|
blockers: [],
|
|
3596
3596
|
blocks: []
|
|
3597
3597
|
});
|
|
3598
|
-
this.dispatch(
|
|
3598
|
+
this.dispatch(ko(s));
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
class Wp extends w {
|
|
@@ -3622,7 +3622,7 @@ class Wp extends w {
|
|
|
3622
3622
|
if (!i)
|
|
3623
3623
|
throw new Error(`Expected an existing category with offline_id ${e.offline_id}`);
|
|
3624
3624
|
const n = { ...i, ...e };
|
|
3625
|
-
this.dispatch(
|
|
3625
|
+
this.dispatch(Co(n));
|
|
3626
3626
|
const a = this.enqueueRequest({
|
|
3627
3627
|
description: "Edit Category",
|
|
3628
3628
|
method: d.PATCH,
|
|
@@ -3637,7 +3637,7 @@ class Wp extends w {
|
|
|
3637
3637
|
const { store: s } = this.client, i = Kt(e)(s.getState());
|
|
3638
3638
|
if (!i)
|
|
3639
3639
|
throw new Error(`No category with id ${e} found in the store`);
|
|
3640
|
-
this.dispatch(
|
|
3640
|
+
this.dispatch(xo(e));
|
|
3641
3641
|
const n = this.enqueueRequest({
|
|
3642
3642
|
description: "Delete Category",
|
|
3643
3643
|
method: d.DELETE,
|
|
@@ -3660,7 +3660,7 @@ class Wp extends w {
|
|
|
3660
3660
|
blocks: [],
|
|
3661
3661
|
blockers: []
|
|
3662
3662
|
});
|
|
3663
|
-
this.dispatch(
|
|
3663
|
+
this.dispatch(Do(s));
|
|
3664
3664
|
}
|
|
3665
3665
|
}
|
|
3666
3666
|
class Kp extends Ie {
|
|
@@ -3668,12 +3668,12 @@ class Kp extends Ie {
|
|
|
3668
3668
|
super(...arguments);
|
|
3669
3669
|
y(this, "name", "Document Attachment");
|
|
3670
3670
|
y(this, "url", "/document-attachments");
|
|
3671
|
-
y(this, "addAttachments",
|
|
3672
|
-
y(this, "updateAttachments",
|
|
3673
|
-
y(this, "removeAttachments",
|
|
3674
|
-
y(this, "removeAttachment",
|
|
3675
|
-
y(this, "setAttachment",
|
|
3676
|
-
y(this, "selectAttachment",
|
|
3671
|
+
y(this, "addAttachments", $o);
|
|
3672
|
+
y(this, "updateAttachments", Vo);
|
|
3673
|
+
y(this, "removeAttachments", Lo);
|
|
3674
|
+
y(this, "removeAttachment", Go);
|
|
3675
|
+
y(this, "setAttachment", Uo);
|
|
3676
|
+
y(this, "selectAttachment", No);
|
|
3677
3677
|
}
|
|
3678
3678
|
buildOfflineAttachment(s) {
|
|
3679
3679
|
return R({
|
|
@@ -3767,7 +3767,7 @@ class Kp extends Ie {
|
|
|
3767
3767
|
blocks: [],
|
|
3768
3768
|
blockers: []
|
|
3769
3769
|
});
|
|
3770
|
-
this.dispatch(
|
|
3770
|
+
this.dispatch(zo(n));
|
|
3771
3771
|
const a = await this.enqueueRequest({
|
|
3772
3772
|
description: "Get document attachments",
|
|
3773
3773
|
method: d.GET,
|
|
@@ -3786,7 +3786,7 @@ class Yp extends w {
|
|
|
3786
3786
|
created_by: i,
|
|
3787
3787
|
submitted_at: n
|
|
3788
3788
|
});
|
|
3789
|
-
this.dispatch(
|
|
3789
|
+
this.dispatch(Ko([a]));
|
|
3790
3790
|
const o = this.enqueueRequest({
|
|
3791
3791
|
description: "Create Document",
|
|
3792
3792
|
method: d.POST,
|
|
@@ -3800,7 +3800,7 @@ class Yp extends w {
|
|
|
3800
3800
|
blocks: [a.offline_id]
|
|
3801
3801
|
});
|
|
3802
3802
|
return o.catch(() => {
|
|
3803
|
-
this.dispatch(
|
|
3803
|
+
this.dispatch(Xt([a.offline_id]));
|
|
3804
3804
|
}), [a, o];
|
|
3805
3805
|
}
|
|
3806
3806
|
update(e) {
|
|
@@ -3865,7 +3865,7 @@ class Yp extends w {
|
|
|
3865
3865
|
`attempting to delete a document with offline_id ${e} that does not exist in store.documents`
|
|
3866
3866
|
);
|
|
3867
3867
|
const a = n.parent_document ? i[n.parent_document] : void 0;
|
|
3868
|
-
this.dispatch(
|
|
3868
|
+
this.dispatch(Xt([e]));
|
|
3869
3869
|
const o = this.enqueueRequest({
|
|
3870
3870
|
description: "Delete Document",
|
|
3871
3871
|
method: d.DELETE,
|
|
@@ -3893,7 +3893,7 @@ class Yp extends w {
|
|
|
3893
3893
|
blockers: [],
|
|
3894
3894
|
blocks: []
|
|
3895
3895
|
});
|
|
3896
|
-
this.dispatch(
|
|
3896
|
+
this.dispatch(Wo([...await i, ...await n]));
|
|
3897
3897
|
}
|
|
3898
3898
|
}
|
|
3899
3899
|
class Jp extends w {
|
|
@@ -3961,7 +3961,7 @@ class Qp extends w {
|
|
|
3961
3961
|
y(this, "host");
|
|
3962
3962
|
// NOTE: If you alter the schema (of the IndexedDB database) in any way, you must increment the version in order to
|
|
3963
3963
|
// migrate the store. This allows idb to automatically migrate the user's existing data to the new schema.
|
|
3964
|
-
y(this, "_dbPromise",
|
|
3964
|
+
y(this, "_dbPromise", ta("fileCache", 1, {
|
|
3965
3965
|
upgrade(s) {
|
|
3966
3966
|
s.createObjectStore("files");
|
|
3967
3967
|
}
|
|
@@ -4060,7 +4060,7 @@ class Qp extends w {
|
|
|
4060
4060
|
return o;
|
|
4061
4061
|
}
|
|
4062
4062
|
if (s.startsWith("blob:")) {
|
|
4063
|
-
const l = await
|
|
4063
|
+
const l = await ba(s), h = new File([l], n ?? i, { type: l.type });
|
|
4064
4064
|
return await this.addCache(h, i), h;
|
|
4065
4065
|
}
|
|
4066
4066
|
let r = De[a], u = !0;
|
|
@@ -4103,7 +4103,7 @@ class Qp extends w {
|
|
|
4103
4103
|
if (!h)
|
|
4104
4104
|
throw new Error("File has no extension");
|
|
4105
4105
|
const m = n ?? l + "." + h;
|
|
4106
|
-
if (c =
|
|
4106
|
+
if (c = ga(c, m), !c.name)
|
|
4107
4107
|
throw new Error("Failed to set file's name");
|
|
4108
4108
|
await this.addCache(c, l), De[a] = new Promise((f) => {
|
|
4109
4109
|
f(c);
|
|
@@ -4186,7 +4186,7 @@ class ef extends k {
|
|
|
4186
4186
|
revision: "Pending",
|
|
4187
4187
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
4188
4188
|
});
|
|
4189
|
-
this.dispatch(
|
|
4189
|
+
this.dispatch($i(a));
|
|
4190
4190
|
const o = this.enqueueRequest({
|
|
4191
4191
|
description: "Create form revision",
|
|
4192
4192
|
method: d.POST,
|
|
@@ -4198,7 +4198,7 @@ class ef extends k {
|
|
|
4198
4198
|
return o.then((u) => {
|
|
4199
4199
|
this.dispatch(Ac(u));
|
|
4200
4200
|
}).catch(() => {
|
|
4201
|
-
this.dispatch(
|
|
4201
|
+
this.dispatch(Ui(a.offline_id));
|
|
4202
4202
|
}), [a, o];
|
|
4203
4203
|
}
|
|
4204
4204
|
async refreshStore(e) {
|
|
@@ -4253,7 +4253,7 @@ class sf extends k {
|
|
|
4253
4253
|
submitted_at: n,
|
|
4254
4254
|
created_by: a
|
|
4255
4255
|
});
|
|
4256
|
-
this.dispatch(
|
|
4256
|
+
this.dispatch(ss(o)), this.dispatch($i(r));
|
|
4257
4257
|
const u = this.enqueueRequest({
|
|
4258
4258
|
description: "Create form",
|
|
4259
4259
|
method: d.POST,
|
|
@@ -4272,7 +4272,7 @@ class sf extends k {
|
|
|
4272
4272
|
blocks: [o.offline_id, r.offline_id]
|
|
4273
4273
|
});
|
|
4274
4274
|
return u.catch((l) => {
|
|
4275
|
-
throw this.dispatch(
|
|
4275
|
+
throw this.dispatch(is(o.offline_id)), this.dispatch(Ui(r.offline_id)), l;
|
|
4276
4276
|
}), [o, r, u];
|
|
4277
4277
|
}
|
|
4278
4278
|
async delete(e) {
|
|
@@ -4282,7 +4282,7 @@ class sf extends k {
|
|
|
4282
4282
|
const a = xc(e)(i);
|
|
4283
4283
|
a.length > 0 && this.dispatch(rt(a.map(({ offline_id: r }) => r)));
|
|
4284
4284
|
const o = Rc(e)(i);
|
|
4285
|
-
o.length > 0 && this.dispatch(_c(o.map(({ offline_id: r }) => r))), this.dispatch(
|
|
4285
|
+
o.length > 0 && this.dispatch(_c(o.map(({ offline_id: r }) => r))), this.dispatch(is(e));
|
|
4286
4286
|
try {
|
|
4287
4287
|
return await this.enqueueRequest({
|
|
4288
4288
|
description: "Delete form",
|
|
@@ -4292,7 +4292,7 @@ class sf extends k {
|
|
|
4292
4292
|
blocks: []
|
|
4293
4293
|
});
|
|
4294
4294
|
} catch (r) {
|
|
4295
|
-
throw this.dispatch(
|
|
4295
|
+
throw this.dispatch(ss(n)), o.length > 0 && this.dispatch(bc(o)), a.length > 0 && this.dispatch(ct(a)), r;
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
4298
|
async refreshStore(e) {
|
|
@@ -4426,7 +4426,7 @@ class af extends k {
|
|
|
4426
4426
|
return l.then((m) => {
|
|
4427
4427
|
this.processPresignedUrls(m.presigned_urls), this.dispatch(qe(m.geo_image));
|
|
4428
4428
|
}).catch(() => {
|
|
4429
|
-
this.dispatch(
|
|
4429
|
+
this.dispatch(ls(c.offline_id));
|
|
4430
4430
|
}), [c, l.then((m) => m.geo_image)];
|
|
4431
4431
|
}
|
|
4432
4432
|
async bulkAdd(e, s) {
|
|
@@ -4477,7 +4477,7 @@ class af extends k {
|
|
|
4477
4477
|
}), [o, l.then((m) => m.geo_images)];
|
|
4478
4478
|
}
|
|
4479
4479
|
update(e) {
|
|
4480
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4480
|
+
const { store: s } = this.client, i = s.getState(), n = us(e.offline_id)(i);
|
|
4481
4481
|
if (!n)
|
|
4482
4482
|
throw new Error(`Map image with offline_id ${e.offline_id} does not exist in the store`);
|
|
4483
4483
|
const a = { ...n, ...e };
|
|
@@ -4497,10 +4497,10 @@ class af extends k {
|
|
|
4497
4497
|
}), [a, o];
|
|
4498
4498
|
}
|
|
4499
4499
|
async delete(e) {
|
|
4500
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4500
|
+
const { store: s } = this.client, i = s.getState(), n = us(e)(i);
|
|
4501
4501
|
if (!n)
|
|
4502
4502
|
throw new Error(`Map image with offline_id ${e} does not exist in the store`);
|
|
4503
|
-
this.dispatch(
|
|
4503
|
+
this.dispatch(ls(e));
|
|
4504
4504
|
const a = this.enqueueRequest({
|
|
4505
4505
|
description: "Delete geo image",
|
|
4506
4506
|
method: d.DELETE,
|
|
@@ -4531,7 +4531,7 @@ class of extends w {
|
|
|
4531
4531
|
submitted_at: i,
|
|
4532
4532
|
created_by: n
|
|
4533
4533
|
});
|
|
4534
|
-
this.dispatch(
|
|
4534
|
+
this.dispatch(ms(a));
|
|
4535
4535
|
const o = this.enqueueRequest({
|
|
4536
4536
|
description: "Add issue association",
|
|
4537
4537
|
method: d.POST,
|
|
@@ -4551,14 +4551,14 @@ class of extends w {
|
|
|
4551
4551
|
return o.then((u) => {
|
|
4552
4552
|
this.dispatch(Jc(u));
|
|
4553
4553
|
}).catch(() => {
|
|
4554
|
-
this.dispatch(
|
|
4554
|
+
this.dispatch(ps(a.offline_id));
|
|
4555
4555
|
}), [a, o];
|
|
4556
4556
|
}
|
|
4557
4557
|
async delete(e) {
|
|
4558
4558
|
const { store: s } = this.client, i = Xc(e)(s.getState());
|
|
4559
4559
|
if (!i)
|
|
4560
4560
|
throw new Error(`Issue association with id ${e} not found in store.`);
|
|
4561
|
-
this.dispatch(
|
|
4561
|
+
this.dispatch(ps(e));
|
|
4562
4562
|
const n = this.enqueueRequest({
|
|
4563
4563
|
description: "Delete issue association",
|
|
4564
4564
|
method: d.DELETE,
|
|
@@ -4567,7 +4567,7 @@ class of extends w {
|
|
|
4567
4567
|
blocks: []
|
|
4568
4568
|
});
|
|
4569
4569
|
return n.catch(() => {
|
|
4570
|
-
this.dispatch(
|
|
4570
|
+
this.dispatch(ms(i));
|
|
4571
4571
|
}), n;
|
|
4572
4572
|
}
|
|
4573
4573
|
async refreshStore(e) {
|
|
@@ -4587,9 +4587,9 @@ class cf extends Ie {
|
|
|
4587
4587
|
super(...arguments);
|
|
4588
4588
|
y(this, "name", "Issue Attachment");
|
|
4589
4589
|
y(this, "url", "/issue-attachments");
|
|
4590
|
-
y(this, "addAttachments",
|
|
4590
|
+
y(this, "addAttachments", Qi);
|
|
4591
4591
|
y(this, "updateAttachments", nr);
|
|
4592
|
-
y(this, "removeAttachments",
|
|
4592
|
+
y(this, "removeAttachments", Zi);
|
|
4593
4593
|
y(this, "removeAttachment", ar);
|
|
4594
4594
|
y(this, "setAttachment", ir);
|
|
4595
4595
|
y(this, "selectAttachment", rr);
|
|
@@ -4640,7 +4640,7 @@ class rf extends w {
|
|
|
4640
4640
|
author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.id,
|
|
4641
4641
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
4642
4642
|
});
|
|
4643
|
-
this.dispatch(
|
|
4643
|
+
this.dispatch(gs(i));
|
|
4644
4644
|
const n = this.enqueueRequest({
|
|
4645
4645
|
description: "Add issue comment",
|
|
4646
4646
|
method: d.POST,
|
|
@@ -4650,7 +4650,7 @@ class rf extends w {
|
|
|
4650
4650
|
blocks: [i.offline_id]
|
|
4651
4651
|
});
|
|
4652
4652
|
return n.catch(() => {
|
|
4653
|
-
this.dispatch(
|
|
4653
|
+
this.dispatch(bs(i.offline_id));
|
|
4654
4654
|
}), [i, n];
|
|
4655
4655
|
}
|
|
4656
4656
|
update(e) {
|
|
@@ -4661,7 +4661,7 @@ class rf extends w {
|
|
|
4661
4661
|
...i,
|
|
4662
4662
|
...e
|
|
4663
4663
|
};
|
|
4664
|
-
this.dispatch(
|
|
4664
|
+
this.dispatch(As(n));
|
|
4665
4665
|
const a = this.enqueueRequest({
|
|
4666
4666
|
description: "Edit issue comment",
|
|
4667
4667
|
method: d.PATCH,
|
|
@@ -4671,14 +4671,14 @@ class rf extends w {
|
|
|
4671
4671
|
blocks: [e.offline_id]
|
|
4672
4672
|
});
|
|
4673
4673
|
return a.catch(() => {
|
|
4674
|
-
this.dispatch(
|
|
4674
|
+
this.dispatch(As(i));
|
|
4675
4675
|
}), [n, a];
|
|
4676
4676
|
}
|
|
4677
4677
|
remove(e) {
|
|
4678
4678
|
const s = this.client.store.getState().issueCommentReducer.instances[e];
|
|
4679
4679
|
if (!s)
|
|
4680
4680
|
throw new Error(`Comment with offline_id ${e} not found in store`);
|
|
4681
|
-
this.dispatch(
|
|
4681
|
+
this.dispatch(bs(e));
|
|
4682
4682
|
const i = this.enqueueRequest({
|
|
4683
4683
|
description: "Delete comment",
|
|
4684
4684
|
method: d.DELETE,
|
|
@@ -4687,7 +4687,7 @@ class rf extends w {
|
|
|
4687
4687
|
blocks: []
|
|
4688
4688
|
});
|
|
4689
4689
|
return i.catch(() => {
|
|
4690
|
-
this.dispatch(
|
|
4690
|
+
this.dispatch(gs(s));
|
|
4691
4691
|
}), i;
|
|
4692
4692
|
}
|
|
4693
4693
|
async refreshStore(e) {
|
|
@@ -4712,7 +4712,7 @@ class df extends w {
|
|
|
4712
4712
|
submitted_at: n,
|
|
4713
4713
|
created_by: a
|
|
4714
4714
|
});
|
|
4715
|
-
this.dispatch(
|
|
4715
|
+
this.dispatch(Ss(o));
|
|
4716
4716
|
const r = this.enqueueRequest({
|
|
4717
4717
|
description: "Create issue",
|
|
4718
4718
|
method: d.POST,
|
|
@@ -4724,12 +4724,12 @@ class df extends w {
|
|
|
4724
4724
|
return r.then((c) => {
|
|
4725
4725
|
this.dispatch(Ge(c));
|
|
4726
4726
|
}).catch((c) => {
|
|
4727
|
-
throw this.dispatch(
|
|
4727
|
+
throw this.dispatch(Ts(o.offline_id)), c;
|
|
4728
4728
|
}), [o, r];
|
|
4729
4729
|
}
|
|
4730
4730
|
update(e) {
|
|
4731
4731
|
var u;
|
|
4732
|
-
const s = this.client.store.getState(), i =
|
|
4732
|
+
const s = this.client.store.getState(), i = Rs(e.offline_id)(s);
|
|
4733
4733
|
if (!i)
|
|
4734
4734
|
throw new Error(
|
|
4735
4735
|
`Attempting to update an issue with offline_id ${e.offline_id} that doesn't exist in the store`
|
|
@@ -4807,7 +4807,7 @@ class df extends w {
|
|
|
4807
4807
|
}), [n, r];
|
|
4808
4808
|
}
|
|
4809
4809
|
async remove(e) {
|
|
4810
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4810
|
+
const { store: s } = this.client, i = s.getState(), n = Rs(e)(i);
|
|
4811
4811
|
if (!n)
|
|
4812
4812
|
throw new Error(`No issue with id ${e} found in the store`);
|
|
4813
4813
|
const a = cr(e)(i), o = Zr(e)(i), r = Mc(e)(i), u = {};
|
|
@@ -4816,7 +4816,7 @@ class df extends w {
|
|
|
4816
4816
|
for (const l of Zc(e)(i))
|
|
4817
4817
|
u[l.offline_id] = l;
|
|
4818
4818
|
const c = Object.values(u);
|
|
4819
|
-
this.dispatch(
|
|
4819
|
+
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)));
|
|
4820
4820
|
try {
|
|
4821
4821
|
return await this.enqueueRequest({
|
|
4822
4822
|
description: "Delete issue",
|
|
@@ -4826,7 +4826,7 @@ class df extends w {
|
|
|
4826
4826
|
blocks: []
|
|
4827
4827
|
});
|
|
4828
4828
|
} catch (l) {
|
|
4829
|
-
throw this.dispatch(
|
|
4829
|
+
throw this.dispatch(Ss(n)), this.dispatch(Qi(a)), this.dispatch(Yr(o)), this.dispatch(ct(r)), this.dispatch(Yi(c)), l;
|
|
4830
4830
|
}
|
|
4831
4831
|
}
|
|
4832
4832
|
async refreshStore(e) {
|
|
@@ -5041,12 +5041,12 @@ class mf extends w {
|
|
|
5041
5041
|
blockers: [e.issue, e.fields_revision],
|
|
5042
5042
|
blocks: [n.offline_id]
|
|
5043
5043
|
});
|
|
5044
|
-
return this.dispatch(
|
|
5045
|
-
this.dispatch(
|
|
5044
|
+
return this.dispatch(vs(n)), a.then((r) => (this.dispatch(je(r)), r)).catch(() => {
|
|
5045
|
+
this.dispatch(Is(n.offline_id));
|
|
5046
5046
|
}), [n, a];
|
|
5047
5047
|
}
|
|
5048
5048
|
update(e) {
|
|
5049
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5049
|
+
const { store: s } = this.client, i = s.getState(), n = Es(e.offline_id)(i);
|
|
5050
5050
|
if (!n)
|
|
5051
5051
|
throw new Error(`Expected IssueTypeFieldValues with offline_id ${e.offline_id} to exist`);
|
|
5052
5052
|
const a = {
|
|
@@ -5073,11 +5073,11 @@ class mf extends w {
|
|
|
5073
5073
|
}), [a, o];
|
|
5074
5074
|
}
|
|
5075
5075
|
async delete(e) {
|
|
5076
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5076
|
+
const { store: s } = this.client, i = s.getState(), n = Es(e)(i);
|
|
5077
5077
|
if (!n)
|
|
5078
5078
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
5079
5079
|
const a = $r(e)(i);
|
|
5080
|
-
this.dispatch(
|
|
5080
|
+
this.dispatch(Is(e)), this.dispatch(tt(a.map((o) => o.offline_id)));
|
|
5081
5081
|
try {
|
|
5082
5082
|
await this.enqueueRequest({
|
|
5083
5083
|
description: "Delete issue type field values",
|
|
@@ -5087,7 +5087,7 @@ class mf extends w {
|
|
|
5087
5087
|
blocks: []
|
|
5088
5088
|
});
|
|
5089
5089
|
} catch (o) {
|
|
5090
|
-
throw this.dispatch(
|
|
5090
|
+
throw this.dispatch(vs(n)), this.dispatch(et(a)), o;
|
|
5091
5091
|
}
|
|
5092
5092
|
}
|
|
5093
5093
|
async refreshStore(e) {
|
|
@@ -5123,11 +5123,11 @@ class pf extends w {
|
|
|
5123
5123
|
return a.then((r) => {
|
|
5124
5124
|
this.dispatch(Pe(r));
|
|
5125
5125
|
}).catch(() => {
|
|
5126
|
-
this.dispatch(
|
|
5126
|
+
this.dispatch(js(n.offline_id));
|
|
5127
5127
|
}), [n, a];
|
|
5128
5128
|
}
|
|
5129
5129
|
update(e) {
|
|
5130
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5130
|
+
const { store: s } = this.client, i = s.getState(), n = Ps(e.offline_id)(i);
|
|
5131
5131
|
if (!n)
|
|
5132
5132
|
throw new Error(`IssueType with offline_id ${e.offline_id} does not exist in the store.`);
|
|
5133
5133
|
const a = {
|
|
@@ -5149,11 +5149,11 @@ class pf extends w {
|
|
|
5149
5149
|
}), [a, o];
|
|
5150
5150
|
}
|
|
5151
5151
|
delete(e) {
|
|
5152
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5152
|
+
const { store: s } = this.client, i = s.getState(), n = Ps(e)(i);
|
|
5153
5153
|
if (!n)
|
|
5154
5154
|
throw new Error(`IssueType with offline_id ${e} does not exist in the store.`);
|
|
5155
|
-
const a =
|
|
5156
|
-
this.dispatch(
|
|
5155
|
+
const a = un(e)(i);
|
|
5156
|
+
this.dispatch(js(e)), this.dispatch(yr(a.map((r) => r.offline_id)));
|
|
5157
5157
|
const o = this.enqueueRequest({
|
|
5158
5158
|
method: d.DELETE,
|
|
5159
5159
|
url: `/issue-types/${e}/`,
|
|
@@ -5192,7 +5192,7 @@ class ff extends w {
|
|
|
5192
5192
|
this.dispatch(Wr(s));
|
|
5193
5193
|
}
|
|
5194
5194
|
}
|
|
5195
|
-
class xl extends
|
|
5195
|
+
class xl extends Cn {
|
|
5196
5196
|
constructor(e) {
|
|
5197
5197
|
super(e);
|
|
5198
5198
|
}
|
|
@@ -5244,7 +5244,7 @@ class yf extends xl {
|
|
|
5244
5244
|
* Logs the user out
|
|
5245
5245
|
*/
|
|
5246
5246
|
clearAuth() {
|
|
5247
|
-
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(
|
|
5247
|
+
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(jo(!1)), this.clearTokens(), this.dispatch({ type: sa }), this.dispatch({ type: Al });
|
|
5248
5248
|
}
|
|
5249
5249
|
/**
|
|
5250
5250
|
* Attempts to renew tokens
|
|
@@ -5270,7 +5270,7 @@ class yf extends xl {
|
|
|
5270
5270
|
const i = Date.now() / 1e3;
|
|
5271
5271
|
let n;
|
|
5272
5272
|
try {
|
|
5273
|
-
n =
|
|
5273
|
+
n = ia(s).exp ?? i;
|
|
5274
5274
|
} catch {
|
|
5275
5275
|
n = i;
|
|
5276
5276
|
}
|
|
@@ -5543,7 +5543,7 @@ class _f extends w {
|
|
|
5543
5543
|
blockers: [],
|
|
5544
5544
|
blocks: []
|
|
5545
5545
|
});
|
|
5546
|
-
this.dispatch(
|
|
5546
|
+
this.dispatch(gn(s));
|
|
5547
5547
|
}
|
|
5548
5548
|
}
|
|
5549
5549
|
class Sf extends Ie {
|
|
@@ -5553,7 +5553,7 @@ class Sf extends Ie {
|
|
|
5553
5553
|
y(this, "url", "/project-attachments");
|
|
5554
5554
|
y(this, "addAttachments", Md);
|
|
5555
5555
|
y(this, "updateAttachments", Ud);
|
|
5556
|
-
y(this, "removeAttachments",
|
|
5556
|
+
y(this, "removeAttachments", wn);
|
|
5557
5557
|
y(this, "removeAttachment", Vd);
|
|
5558
5558
|
y(this, "setAttachment", zd);
|
|
5559
5559
|
y(this, "selectAttachment", Ld);
|
|
@@ -5612,7 +5612,7 @@ class Tf extends w {
|
|
|
5612
5612
|
blocks: [e.offline_id]
|
|
5613
5613
|
});
|
|
5614
5614
|
return i.then((n) => {
|
|
5615
|
-
this.dispatch(
|
|
5615
|
+
this.dispatch(Bs(n));
|
|
5616
5616
|
}), i;
|
|
5617
5617
|
}
|
|
5618
5618
|
// TODO: This needs to be seperated into a update and create method
|
|
@@ -5652,7 +5652,7 @@ class Tf extends w {
|
|
|
5652
5652
|
});
|
|
5653
5653
|
const r = Promise.resolve(a).then((u) => this.enqueueRequest(u));
|
|
5654
5654
|
return r.then((u) => {
|
|
5655
|
-
this.dispatch(
|
|
5655
|
+
this.dispatch(Bs(u));
|
|
5656
5656
|
}), this.dispatch(Qd), this.dispatch(Xd(null)), this.dispatch(Jd(!1)), [n, r];
|
|
5657
5657
|
}
|
|
5658
5658
|
delete(e) {
|
|
@@ -5707,13 +5707,13 @@ class Rf extends w {
|
|
|
5707
5707
|
});
|
|
5708
5708
|
}
|
|
5709
5709
|
async delete(e) {
|
|
5710
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5710
|
+
const { store: s } = this.client, i = s.getState(), n = Sn(i), a = n[e];
|
|
5711
5711
|
if (!a)
|
|
5712
5712
|
throw new Error("Expected project to exist");
|
|
5713
5713
|
const o = el(i).filter((l) => l.project === e);
|
|
5714
5714
|
this.dispatch(Yd(o.map(({ offline_id: l }) => l)));
|
|
5715
5715
|
const r = Bd(a.id)(i);
|
|
5716
|
-
this.dispatch(
|
|
5716
|
+
this.dispatch(wn(r.map(({ offline_id: l }) => l)));
|
|
5717
5717
|
const u = fd(i);
|
|
5718
5718
|
this.dispatch(pd(u.map(({ offline_id: l }) => l))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(_d(a));
|
|
5719
5719
|
const c = sd(a.id)(i);
|
|
@@ -5727,7 +5727,7 @@ class Rf extends w {
|
|
|
5727
5727
|
blocks: []
|
|
5728
5728
|
}), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 });
|
|
5729
5729
|
} catch (l) {
|
|
5730
|
-
throw this.dispatch(gd(Object.values(n))), this.dispatch(
|
|
5730
|
+
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;
|
|
5731
5731
|
}
|
|
5732
5732
|
}
|
|
5733
5733
|
invite(e, s) {
|
|
@@ -5786,7 +5786,7 @@ class Of extends w {
|
|
|
5786
5786
|
return i.then((n) => {
|
|
5787
5787
|
this.dispatch(Ae(n));
|
|
5788
5788
|
}).catch(() => {
|
|
5789
|
-
this.dispatch(
|
|
5789
|
+
this.dispatch(Ws(s.offline_id));
|
|
5790
5790
|
}), [s, i];
|
|
5791
5791
|
}
|
|
5792
5792
|
update(e) {
|
|
@@ -5797,7 +5797,7 @@ class Of extends w {
|
|
|
5797
5797
|
...i,
|
|
5798
5798
|
...e
|
|
5799
5799
|
};
|
|
5800
|
-
this.dispatch(
|
|
5800
|
+
this.dispatch(Hs(n));
|
|
5801
5801
|
const a = this.enqueueRequest({
|
|
5802
5802
|
description: "Update team",
|
|
5803
5803
|
method: d.PATCH,
|
|
@@ -5816,7 +5816,7 @@ class Of extends w {
|
|
|
5816
5816
|
const { store: s } = this.client, i = s.getState(), n = ge(e)(i);
|
|
5817
5817
|
if (!n)
|
|
5818
5818
|
throw new Error(`Expected team with id ${e} to exist`);
|
|
5819
|
-
this.dispatch(
|
|
5819
|
+
this.dispatch(Ws(e));
|
|
5820
5820
|
try {
|
|
5821
5821
|
return await this.enqueueRequest({
|
|
5822
5822
|
description: "Delete team",
|
|
@@ -5835,7 +5835,7 @@ class Of extends w {
|
|
|
5835
5835
|
throw new Error(`Expected team with id ${e} to exist`);
|
|
5836
5836
|
if (s.length !== new Set(s).size)
|
|
5837
5837
|
throw new Error("Duplicate members found in the list");
|
|
5838
|
-
this.dispatch(
|
|
5838
|
+
this.dispatch(Hs({ ...n, members: s }));
|
|
5839
5839
|
const a = this.enqueueRequest({
|
|
5840
5840
|
description: "Set team members",
|
|
5841
5841
|
method: d.PUT,
|
|
@@ -5912,17 +5912,17 @@ export {
|
|
|
5912
5912
|
Vp as AssetTypeFieldsAttachmentService,
|
|
5913
5913
|
Gp as AssetTypeFieldsService,
|
|
5914
5914
|
Hp as AssetTypeService,
|
|
5915
|
-
|
|
5915
|
+
oa as AttachmentModel,
|
|
5916
5916
|
w as BaseApiService,
|
|
5917
5917
|
Pp as BaseSDK,
|
|
5918
5918
|
Wp as CategoryService,
|
|
5919
5919
|
eu as DEFAULT_ISSUE_PRIORITY,
|
|
5920
5920
|
Zl as DEFAULT_ISSUE_STATUS,
|
|
5921
|
-
|
|
5921
|
+
ua as DeferredPromise,
|
|
5922
5922
|
Kp as DocumentAttachmentService,
|
|
5923
5923
|
Yp as DocumentService,
|
|
5924
|
-
|
|
5925
|
-
|
|
5924
|
+
na as EMPTY_ARRAY,
|
|
5925
|
+
aa as EMPTY_OBJECT,
|
|
5926
5926
|
Jp as EmailDomainsService,
|
|
5927
5927
|
Xp as EmailVerificationService,
|
|
5928
5928
|
Qp as FileService,
|
|
@@ -5936,9 +5936,9 @@ export {
|
|
|
5936
5936
|
of as IssueAssociationService,
|
|
5937
5937
|
cf as IssueAttachmentService,
|
|
5938
5938
|
rf as IssueCommentService,
|
|
5939
|
-
|
|
5939
|
+
ti as IssuePriority,
|
|
5940
5940
|
df as IssueService,
|
|
5941
|
-
|
|
5941
|
+
si as IssueStatus,
|
|
5942
5942
|
hf as IssueTypeFieldValuesAttachmentService,
|
|
5943
5943
|
mf as IssueTypeFieldValuesService,
|
|
5944
5944
|
lf as IssueTypeFieldsAttachmentService,
|
|
@@ -5947,16 +5947,16 @@ export {
|
|
|
5947
5947
|
I as IssueUpdateChange,
|
|
5948
5948
|
ff as IssueUpdateService,
|
|
5949
5949
|
yf as JWTService,
|
|
5950
|
-
|
|
5950
|
+
ra as LicenseLevel,
|
|
5951
5951
|
Af as LicenseService,
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5952
|
+
da as LicenseStatus,
|
|
5953
|
+
la as OUTBOX_RETRY_DELAY,
|
|
5954
|
+
ei as OrganizationAccessLevel,
|
|
5955
5955
|
gf as OrganizationAccessService,
|
|
5956
5956
|
bf as OrganizationService,
|
|
5957
5957
|
Te as OutboxCoordinator,
|
|
5958
|
-
|
|
5959
|
-
|
|
5958
|
+
ca as PaddleCheckoutEvent,
|
|
5959
|
+
Zs as ProjectAccessLevel,
|
|
5960
5960
|
_f as ProjectAccessService,
|
|
5961
5961
|
Sf as ProjectAttachmentService,
|
|
5962
5962
|
Tf as ProjectFileService,
|
|
@@ -5964,58 +5964,58 @@ export {
|
|
|
5964
5964
|
Of as TeamService,
|
|
5965
5965
|
we as UNKNOWN_ERROR_MESSAGE,
|
|
5966
5966
|
wf as UserService,
|
|
5967
|
-
|
|
5967
|
+
Un as VERSION_REDUCER_KEY,
|
|
5968
5968
|
$l as VerificationCodeType,
|
|
5969
5969
|
Tc as _selectLatestFormRevision,
|
|
5970
5970
|
Dd as _setLatestRetryTime,
|
|
5971
5971
|
Sd as acceptProjectInvite,
|
|
5972
5972
|
Tt as addAsset,
|
|
5973
5973
|
Su as addAssetAttachment,
|
|
5974
|
-
|
|
5974
|
+
ci as addAssetAttachments,
|
|
5975
5975
|
ju as addAssetStage,
|
|
5976
5976
|
vt as addAssetStageCompletion,
|
|
5977
5977
|
It as addAssetStageCompletions,
|
|
5978
5978
|
Ke as addAssetStages,
|
|
5979
5979
|
Gt as addAssetType,
|
|
5980
5980
|
Cu as addAssetTypeAttachment,
|
|
5981
|
-
|
|
5981
|
+
gi as addAssetTypeAttachments,
|
|
5982
5982
|
zt as addAssetTypeFieldValues,
|
|
5983
5983
|
eh as addAssetTypeFieldValuesAttachment,
|
|
5984
5984
|
Je as addAssetTypeFieldValuesAttachments,
|
|
5985
|
-
|
|
5986
|
-
|
|
5985
|
+
wo as addAssetTypeFieldValuesMany,
|
|
5986
|
+
mo as addAssetTypeFields,
|
|
5987
5987
|
$u as addAssetTypeFieldsAttachment,
|
|
5988
|
-
|
|
5988
|
+
ao as addAssetTypeFieldsAttachments,
|
|
5989
5989
|
Hu as addAssetTypeFieldsMany,
|
|
5990
5990
|
hh as addAssetTypes,
|
|
5991
|
-
|
|
5991
|
+
ui as addAssets,
|
|
5992
5992
|
Wt as addCategory,
|
|
5993
|
-
|
|
5993
|
+
Ra as addConversation,
|
|
5994
5994
|
Oh as addDocumentAttachment,
|
|
5995
|
-
|
|
5996
|
-
|
|
5995
|
+
$o as addDocumentAttachments,
|
|
5996
|
+
Ko as addDocuments,
|
|
5997
5997
|
tc as addEmailDomain,
|
|
5998
|
-
|
|
5999
|
-
|
|
5998
|
+
ss as addForm,
|
|
5999
|
+
$i as addFormRevision,
|
|
6000
6000
|
Ph as addFormRevisionAttachment,
|
|
6001
6001
|
uc as addFormRevisionAttachments,
|
|
6002
6002
|
bc as addFormRevisions,
|
|
6003
|
-
|
|
6003
|
+
os as addFormSubmission,
|
|
6004
6004
|
Hh as addFormSubmissionAttachment,
|
|
6005
6005
|
Qe as addFormSubmissionAttachments,
|
|
6006
6006
|
ct as addFormSubmissions,
|
|
6007
6007
|
Gh as addForms,
|
|
6008
6008
|
Gc as addGeoImage,
|
|
6009
6009
|
Lc as addGeoImages,
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6010
|
+
Ss as addIssue,
|
|
6011
|
+
ms as addIssueAssociation,
|
|
6012
|
+
Yi as addIssueAssociations,
|
|
6013
6013
|
am as addIssueAttachment,
|
|
6014
|
-
|
|
6015
|
-
|
|
6014
|
+
Qi as addIssueAttachments,
|
|
6015
|
+
gs as addIssueComment,
|
|
6016
6016
|
dm as addIssueComments,
|
|
6017
6017
|
Gr as addIssueType,
|
|
6018
|
-
|
|
6018
|
+
vs as addIssueTypeFieldValues,
|
|
6019
6019
|
Cm as addIssueTypeFieldValuesAttachment,
|
|
6020
6020
|
et as addIssueTypeFieldValuesAttachments,
|
|
6021
6021
|
_m as addIssueTypeFieldValuesMany,
|
|
@@ -6033,34 +6033,34 @@ export {
|
|
|
6033
6033
|
Wd as addProjectFiles,
|
|
6034
6034
|
al as addTeam,
|
|
6035
6035
|
Xm as addUsers,
|
|
6036
|
-
|
|
6037
|
-
|
|
6036
|
+
va as agentsReducer,
|
|
6037
|
+
ni as agentsSlice,
|
|
6038
6038
|
nu as areArraysEqual,
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6039
|
+
Pa as assetAttachmentReducer,
|
|
6040
|
+
oi as assetAttachmentSlice,
|
|
6041
|
+
Ma as assetReducer,
|
|
6042
|
+
li as assetSlice,
|
|
6043
|
+
La as assetStageCompletionReducer,
|
|
6044
|
+
pi as assetStageCompletionSlice,
|
|
6045
|
+
Ha as assetStageReducer,
|
|
6046
|
+
yi as assetStageSlice,
|
|
6047
|
+
io as assetTypeAttachmentReducer,
|
|
6048
|
+
Ai as assetTypeAttachmentSlice,
|
|
6049
|
+
Ro as assetTypeFieldValuesAttachmentReducer,
|
|
6050
|
+
Ri as assetTypeFieldValuesAttachmentSlice,
|
|
6051
|
+
Fo as assetTypeFieldValuesReducer,
|
|
6052
|
+
wi as assetTypeFieldValuesSlice,
|
|
6053
|
+
uo as assetTypeFieldsAttachmentReducer,
|
|
6054
|
+
Si as assetTypeFieldsAttachmentSlice,
|
|
6055
|
+
Ao as assetTypeFieldsReducer,
|
|
6056
|
+
Ti as assetTypeFieldsSlice,
|
|
6057
|
+
qo as assetTypeReducer,
|
|
6058
|
+
Ii as assetTypeSlice,
|
|
6059
|
+
Po as authReducer,
|
|
6060
6060
|
at as authSlice,
|
|
6061
6061
|
lu as blobToBase64,
|
|
6062
|
-
|
|
6063
|
-
|
|
6062
|
+
Mo as categoryReducer,
|
|
6063
|
+
Fi as categorySlice,
|
|
6064
6064
|
gh as clearTokens,
|
|
6065
6065
|
du as constructUploadedFilePayloads,
|
|
6066
6066
|
iu as coordinatesAreEqual,
|
|
@@ -6069,48 +6069,48 @@ export {
|
|
|
6069
6069
|
qd as createOfflineAction,
|
|
6070
6070
|
tu as createPointGeometry,
|
|
6071
6071
|
Rt as deleteAsset,
|
|
6072
|
-
|
|
6073
|
-
|
|
6072
|
+
Fa as deleteAssetAttachment,
|
|
6073
|
+
ri as deleteAssetAttachments,
|
|
6074
6074
|
Pu as deleteAssetStage,
|
|
6075
6075
|
Et as deleteAssetStageCompletion,
|
|
6076
6076
|
Ft as deleteAssetStageCompletions,
|
|
6077
6077
|
Ye as deleteAssetStages,
|
|
6078
6078
|
Lt as deleteAssetType,
|
|
6079
|
-
|
|
6080
|
-
|
|
6079
|
+
Za as deleteAssetTypeAttachment,
|
|
6080
|
+
bi as deleteAssetTypeAttachments,
|
|
6081
6081
|
$t as deleteAssetTypeFieldValues,
|
|
6082
6082
|
nh as deleteAssetTypeFieldValuesAttachment,
|
|
6083
6083
|
Xe as deleteAssetTypeFieldValuesAttachments,
|
|
6084
|
-
|
|
6085
|
-
|
|
6084
|
+
Io as deleteAssetTypeFieldValuesMany,
|
|
6085
|
+
fo as deleteAssetTypeFields,
|
|
6086
6086
|
Lu as deleteAssetTypeFieldsAttachment,
|
|
6087
|
-
|
|
6087
|
+
co as deleteAssetTypeFieldsAttachments,
|
|
6088
6088
|
Ju as deleteAssetTypeFieldsMany,
|
|
6089
6089
|
ph as deleteAssetTypes,
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6090
|
+
Ca as deleteAssets,
|
|
6091
|
+
xo as deleteCategory,
|
|
6092
|
+
Go as deleteDocumentAttachment,
|
|
6093
|
+
Lo as deleteDocumentAttachments,
|
|
6094
6094
|
sc as deleteEmailDomain,
|
|
6095
|
-
|
|
6096
|
-
|
|
6095
|
+
is as deleteForm,
|
|
6096
|
+
Ui as deleteFormRevision,
|
|
6097
6097
|
Mh as deleteFormRevisionAttachment,
|
|
6098
6098
|
mc as deleteFormRevisionAttachments,
|
|
6099
6099
|
_c as deleteFormRevisions,
|
|
6100
|
-
|
|
6100
|
+
cs as deleteFormSubmission,
|
|
6101
6101
|
Jh as deleteFormSubmissionAttachment,
|
|
6102
6102
|
Ze as deleteFormSubmissionAttachments,
|
|
6103
6103
|
rt as deleteFormSubmissions,
|
|
6104
|
-
|
|
6104
|
+
ls as deleteGeoImage,
|
|
6105
6105
|
Nc as deleteGeoImages,
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6106
|
+
Ts as deleteIssue,
|
|
6107
|
+
ps as deleteIssueAssociation,
|
|
6108
|
+
Ji as deleteIssueAssociations,
|
|
6109
6109
|
ar as deleteIssueAttachment,
|
|
6110
|
-
|
|
6111
|
-
|
|
6110
|
+
Zi as deleteIssueAttachments,
|
|
6111
|
+
bs as deleteIssueComment,
|
|
6112
6112
|
lm as deleteIssueComments,
|
|
6113
|
-
|
|
6113
|
+
Is as deleteIssueTypeFieldValues,
|
|
6114
6114
|
$m as deleteIssueTypeFieldValuesAttachment,
|
|
6115
6115
|
tt as deleteIssueTypeFieldValuesAttachments,
|
|
6116
6116
|
Om as deleteIssueTypeFieldValuesMany,
|
|
@@ -6126,61 +6126,61 @@ export {
|
|
|
6126
6126
|
md as deleteProjectAccess,
|
|
6127
6127
|
pd as deleteProjectAccesses,
|
|
6128
6128
|
Vd as deleteProjectAttachment,
|
|
6129
|
-
|
|
6129
|
+
wn as deleteProjectAttachments,
|
|
6130
6130
|
Kd as deleteProjectFile,
|
|
6131
6131
|
Yd as deleteProjectFiles,
|
|
6132
|
-
|
|
6132
|
+
Ws as deleteTeam,
|
|
6133
6133
|
_l as dequeue,
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6134
|
+
Bn as discard,
|
|
6135
|
+
Ho as documentAttachmentReducer,
|
|
6136
|
+
qi as documentAttachmentSlice,
|
|
6137
|
+
Pi as documentSlice,
|
|
6138
6138
|
Qo as documentsReducer,
|
|
6139
6139
|
uu as downloadFile,
|
|
6140
6140
|
ru as downloadInMemoryFile,
|
|
6141
6141
|
ac as emailDomainsReducer,
|
|
6142
|
-
|
|
6142
|
+
Di as emailDomainsSlice,
|
|
6143
6143
|
gu as emailRegex,
|
|
6144
6144
|
bl as enqueue,
|
|
6145
6145
|
jd as enqueueRequest,
|
|
6146
6146
|
g as fallbackToEmptyArray,
|
|
6147
6147
|
fe as fallbackToEmptyObject,
|
|
6148
6148
|
dc as fileReducer,
|
|
6149
|
-
|
|
6150
|
-
|
|
6149
|
+
xi as fileSlice,
|
|
6150
|
+
ba as fileToBlob,
|
|
6151
6151
|
vc as formReducer,
|
|
6152
6152
|
fc as formRevisionAttachmentReducer,
|
|
6153
|
-
|
|
6153
|
+
Mi as formRevisionAttachmentSlice,
|
|
6154
6154
|
Oc as formRevisionReducer,
|
|
6155
|
-
|
|
6156
|
-
|
|
6155
|
+
zi as formRevisionsSlice,
|
|
6156
|
+
Vi as formSlice,
|
|
6157
6157
|
Pc as formSubmissionAttachmentReducer,
|
|
6158
|
-
|
|
6158
|
+
Gi as formSubmissionAttachmentSlice,
|
|
6159
6159
|
$c as formSubmissionReducer,
|
|
6160
|
-
|
|
6160
|
+
Bi as formSubmissionSlice,
|
|
6161
6161
|
Kc as geoImageReducer,
|
|
6162
|
-
|
|
6162
|
+
Wi as geoImageSlice,
|
|
6163
6163
|
cu as getFileIdentifier,
|
|
6164
6164
|
yt as getFileS3Key,
|
|
6165
|
-
|
|
6165
|
+
pa as getLocalDateString,
|
|
6166
6166
|
ou as getLocalRelativeDateString,
|
|
6167
6167
|
pe as getOutboxCoordinator,
|
|
6168
|
-
|
|
6168
|
+
ga as getRenamedFile,
|
|
6169
6169
|
Re as hashFile,
|
|
6170
6170
|
Dp as initSDK,
|
|
6171
6171
|
_t as initializeAssetAttachments,
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6172
|
+
za as initializeAssetStageCompletions,
|
|
6173
|
+
Ba as initializeAssetStages,
|
|
6174
|
+
Ja as initializeAssetTypeAttachments,
|
|
6175
|
+
Oo as initializeAssetTypeFieldValues,
|
|
6176
|
+
go as initializeAssetTypeFieldValuesAttachments,
|
|
6177
|
+
ho as initializeAssetTypeFields,
|
|
6178
|
+
no as initializeAssetTypeFieldsAttachments,
|
|
6179
|
+
ko as initializeAssetTypes,
|
|
6180
|
+
Da as initializeAssets,
|
|
6181
|
+
Do as initializeCategories,
|
|
6182
|
+
Ta as initializeConversations,
|
|
6183
|
+
zo as initializeDocumentAttachments,
|
|
6184
6184
|
ec as initializeEmailDomains,
|
|
6185
6185
|
lc as initializeFormRevisionAttachments,
|
|
6186
6186
|
gc as initializeFormRevisions,
|
|
@@ -6199,63 +6199,63 @@ export {
|
|
|
6199
6199
|
pr as initializeIssues,
|
|
6200
6200
|
td as initializeLicences,
|
|
6201
6201
|
cd as initializeOrganizationAccesses,
|
|
6202
|
-
|
|
6202
|
+
gn as initializeProjectAccesses,
|
|
6203
6203
|
xd as initializeProjectAttachments,
|
|
6204
6204
|
Hd as initializeProjectFiles,
|
|
6205
6205
|
nl as initializeTeams,
|
|
6206
6206
|
au as isToday,
|
|
6207
6207
|
tr as issueAssociationReducer,
|
|
6208
|
-
|
|
6208
|
+
Ki as issueAssociationSlice,
|
|
6209
6209
|
dr as issueAttachmentReducer,
|
|
6210
|
-
|
|
6210
|
+
Xi as issueAttachmentSlice,
|
|
6211
6211
|
mr as issueCommentReducer,
|
|
6212
|
-
|
|
6212
|
+
tn as issueCommentSlice,
|
|
6213
6213
|
gr as issueReducer,
|
|
6214
|
-
|
|
6214
|
+
sn as issueSlice,
|
|
6215
6215
|
Ur as issueTypeFieldValuesAttachmentReducer,
|
|
6216
|
-
|
|
6216
|
+
rn as issueTypeFieldValuesAttachmentSlice,
|
|
6217
6217
|
Er as issueTypeFieldValuesReducer,
|
|
6218
|
-
|
|
6218
|
+
an as issueTypeFieldValuesSlice,
|
|
6219
6219
|
wr as issueTypeFieldsAttachmentReducer,
|
|
6220
|
-
|
|
6220
|
+
nn as issueTypeFieldsAttachmentSlice,
|
|
6221
6221
|
Dr as issueTypeFieldsReducer,
|
|
6222
|
-
|
|
6222
|
+
cn as issueTypeFieldsSlice,
|
|
6223
6223
|
Hr as issueTypeReducer,
|
|
6224
|
-
|
|
6224
|
+
ln as issueTypeSlice,
|
|
6225
6225
|
ed as issueUpdateReducer,
|
|
6226
|
-
|
|
6226
|
+
hn as issueUpdateSlice,
|
|
6227
6227
|
id as licenseReducer,
|
|
6228
|
-
|
|
6228
|
+
mn as licenseSlice,
|
|
6229
6229
|
hu as logOnlyOnce,
|
|
6230
6230
|
Pd as markAsDeleted,
|
|
6231
6231
|
pp as markForDeletion,
|
|
6232
|
-
|
|
6232
|
+
ii as memoize,
|
|
6233
6233
|
Yo as moveDocument,
|
|
6234
6234
|
R as offline,
|
|
6235
6235
|
Au as onlyUniqueHashes,
|
|
6236
|
-
|
|
6236
|
+
Sa as onlyUniqueOfflineIds,
|
|
6237
6237
|
ud as organizationAccessReducer,
|
|
6238
|
-
|
|
6238
|
+
fn as organizationAccessSlice,
|
|
6239
6239
|
kd as organizationReducer,
|
|
6240
|
-
|
|
6240
|
+
Tn as organizationSlice,
|
|
6241
6241
|
Cd as outboxReducer,
|
|
6242
|
-
|
|
6242
|
+
Rn as outboxSlice,
|
|
6243
6243
|
jp as overmapEnhancer,
|
|
6244
6244
|
yl as overmapReducers,
|
|
6245
6245
|
qp as overmapRootReducer,
|
|
6246
|
-
|
|
6246
|
+
Vn as performRequest,
|
|
6247
6247
|
Ad as projectAccessReducer,
|
|
6248
|
-
|
|
6248
|
+
An as projectAccessSlice,
|
|
6249
6249
|
Nd as projectAttachmentReducer,
|
|
6250
|
-
|
|
6250
|
+
On as projectAttachmentSlice,
|
|
6251
6251
|
tl as projectFileReducer,
|
|
6252
|
-
|
|
6252
|
+
In as projectFileSlice,
|
|
6253
6253
|
Td as projectReducer,
|
|
6254
|
-
|
|
6254
|
+
_n as projectSlice,
|
|
6255
6255
|
il as rehydratedReducer,
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6256
|
+
En as rehydratedSlice,
|
|
6257
|
+
Xt as removeDocuments,
|
|
6258
|
+
js as removeIssueType,
|
|
6259
6259
|
ad as removeUser,
|
|
6260
6260
|
Tp as resetProjectFileObjectUrls,
|
|
6261
6261
|
Al as resetStore,
|
|
@@ -6265,52 +6265,52 @@ export {
|
|
|
6265
6265
|
tp as selectActiveOrganizationAccess,
|
|
6266
6266
|
Op as selectActiveProjectFileId,
|
|
6267
6267
|
Wm as selectActiveStatusLicenses,
|
|
6268
|
-
|
|
6269
|
-
|
|
6268
|
+
ji as selectAllDocumentAttachments,
|
|
6269
|
+
vn as selectAllProjectAttachments,
|
|
6270
6270
|
kh as selectAncestorIdsOfDocument,
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6271
|
+
qa as selectAssetAttachmentById,
|
|
6272
|
+
ka as selectAssetAttachmentMapping,
|
|
6273
|
+
di as selectAssetAttachments,
|
|
6274
6274
|
Ot as selectAssetById,
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6275
|
+
Wa as selectAssetStageById,
|
|
6276
|
+
Va as selectAssetStageCompletionById,
|
|
6277
|
+
fi as selectAssetStageCompletionMapping,
|
|
6278
|
+
Ga as selectAssetStageCompletionsByIds,
|
|
6279
|
+
Ka as selectAssetStages,
|
|
6280
6280
|
jt as selectAssetStagesByIds,
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6281
|
+
to as selectAssetTypeAttachmentById,
|
|
6282
|
+
eo as selectAssetTypeAttachmentMapping,
|
|
6283
|
+
_i as selectAssetTypeAttachments,
|
|
6284
6284
|
Bt as selectAssetTypeById,
|
|
6285
|
-
|
|
6285
|
+
vi as selectAssetTypeFieldValues,
|
|
6286
6286
|
ah as selectAssetTypeFieldValuesAttachmentById,
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6287
|
+
_o as selectAssetTypeFieldValuesAttachments,
|
|
6288
|
+
So as selectAssetTypeFieldValuesAttachmentsByIds,
|
|
6289
|
+
Oi as selectAssetTypeFieldValuesAttachmentsMapping,
|
|
6290
6290
|
Ut as selectAssetTypeFieldValuesById,
|
|
6291
|
-
|
|
6291
|
+
Eo as selectAssetTypeFieldValuesMapping,
|
|
6292
6292
|
rh as selectAssetTypeFieldValuesOfAsset,
|
|
6293
6293
|
nt as selectAssetTypeFields,
|
|
6294
6294
|
Nu as selectAssetTypeFieldsAttachmentById,
|
|
6295
|
-
|
|
6296
|
-
|
|
6295
|
+
lo as selectAssetTypeFieldsAttachments,
|
|
6296
|
+
ro as selectAssetTypeFieldsAttachmentsMapping,
|
|
6297
6297
|
Zu as selectAssetTypeFieldsById,
|
|
6298
|
-
|
|
6298
|
+
yo as selectAssetTypeFieldsMapping,
|
|
6299
6299
|
Xu as selectAssetTypeFieldsOfAssetType,
|
|
6300
6300
|
Du as selectAssetTypeStagesMapping,
|
|
6301
6301
|
dh as selectAssetTypeValuesOfAssetType,
|
|
6302
6302
|
fh as selectAssetTypes,
|
|
6303
6303
|
yh as selectAssetTypesByIds,
|
|
6304
|
-
|
|
6305
|
-
|
|
6304
|
+
Ei as selectAssetTypesMapping,
|
|
6305
|
+
xa as selectAssets,
|
|
6306
6306
|
Eu as selectAssetsByIds,
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6307
|
+
hi as selectAssetsMapping,
|
|
6308
|
+
mi as selectAssetsOfAssetType,
|
|
6309
|
+
ja as selectAttachmentsOfAsset,
|
|
6310
6310
|
Ou as selectAttachmentsOfAssetByType,
|
|
6311
|
-
|
|
6311
|
+
so as selectAttachmentsOfAssetType,
|
|
6312
6312
|
zu as selectAttachmentsOfAssetTypeByType,
|
|
6313
|
-
|
|
6313
|
+
To as selectAttachmentsOfAssetTypeFieldValues,
|
|
6314
6314
|
Bu as selectAttachmentsOfAssetTypeFields,
|
|
6315
6315
|
Ih as selectAttachmentsOfDocument,
|
|
6316
6316
|
Eh as selectAttachmentsOfDocumentByType,
|
|
@@ -6325,16 +6325,16 @@ export {
|
|
|
6325
6325
|
Sh as selectCategories,
|
|
6326
6326
|
Th as selectCategoriesByIds,
|
|
6327
6327
|
Kt as selectCategoryById,
|
|
6328
|
-
|
|
6328
|
+
ki as selectCategoryMapping,
|
|
6329
6329
|
um as selectCommentsOfIssue,
|
|
6330
6330
|
ku as selectCompletedStagesByAsset,
|
|
6331
6331
|
_u as selectConversation,
|
|
6332
|
-
|
|
6332
|
+
ai as selectConversationMapping,
|
|
6333
6333
|
bu as selectConversations,
|
|
6334
6334
|
ut as selectCurrentUser,
|
|
6335
6335
|
hp as selectDeletedRequests,
|
|
6336
|
-
|
|
6337
|
-
|
|
6336
|
+
No as selectDocumentAttachmentById,
|
|
6337
|
+
Bo as selectDocumentAttachmentMapping,
|
|
6338
6338
|
Xo as selectDocumentById,
|
|
6339
6339
|
Jo as selectDocuments,
|
|
6340
6340
|
Fh as selectDocumentsByIds,
|
|
@@ -6351,15 +6351,15 @@ export {
|
|
|
6351
6351
|
Sc as selectFormRevisions,
|
|
6352
6352
|
Rc as selectFormRevisionsOfForm,
|
|
6353
6353
|
qc as selectFormSubmissionAttachemntsByIds,
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6354
|
+
Li as selectFormSubmissionAttachmentsMapping,
|
|
6355
|
+
rs as selectFormSubmissionById,
|
|
6356
|
+
Hi as selectFormSubmissions,
|
|
6357
|
+
Ni as selectFormSubmissionsMapping,
|
|
6358
6358
|
zc as selectFormSubmissionsOfAsset,
|
|
6359
6359
|
xc as selectFormSubmissionsOfForm,
|
|
6360
6360
|
Mc as selectFormSubmissionsOfIssue,
|
|
6361
6361
|
Bh as selectForms,
|
|
6362
|
-
|
|
6362
|
+
us as selectGeoImageById,
|
|
6363
6363
|
Hc as selectGeoImageMapping,
|
|
6364
6364
|
Wc as selectGeoImages,
|
|
6365
6365
|
em as selectGeoImagesOfProject,
|
|
@@ -6373,19 +6373,19 @@ export {
|
|
|
6373
6373
|
Qc as selectIssueAssociationsToIssue,
|
|
6374
6374
|
rr as selectIssueAttachmentById,
|
|
6375
6375
|
or as selectIssueAttachmentMapping,
|
|
6376
|
-
|
|
6377
|
-
|
|
6376
|
+
en as selectIssueAttachments,
|
|
6377
|
+
Rs as selectIssueById,
|
|
6378
6378
|
hr as selectIssueCommentById,
|
|
6379
6379
|
ur as selectIssueCommentMapping,
|
|
6380
6380
|
Rh as selectIssueCountOfCategory,
|
|
6381
6381
|
Ar as selectIssueMapping,
|
|
6382
|
-
|
|
6383
|
-
|
|
6382
|
+
Ps as selectIssueTypeById,
|
|
6383
|
+
on as selectIssueTypeFieldValues,
|
|
6384
6384
|
Um as selectIssueTypeFieldValuesAttachmentById,
|
|
6385
6385
|
Mr as selectIssueTypeFieldValuesAttachments,
|
|
6386
6386
|
zr as selectIssueTypeFieldValuesAttachmentsByIds,
|
|
6387
|
-
|
|
6388
|
-
|
|
6387
|
+
dn as selectIssueTypeFieldValuesAttachmentsMapping,
|
|
6388
|
+
Es as selectIssueTypeFieldValuesById,
|
|
6389
6389
|
Ir as selectIssueTypeFieldValuesMapping,
|
|
6390
6390
|
wm as selectIssueTypeFieldValuesOfIssue,
|
|
6391
6391
|
dt as selectIssueTypeFields,
|
|
@@ -6403,7 +6403,7 @@ export {
|
|
|
6403
6403
|
Qr as selectIssueUpdateMapping,
|
|
6404
6404
|
Zr as selectIssueUpdatesOfIssue,
|
|
6405
6405
|
hm as selectIssuesByIds,
|
|
6406
|
-
|
|
6406
|
+
un as selectIssuesOfIssueType,
|
|
6407
6407
|
Lm as selectIssuesOfIssueTypeCount,
|
|
6408
6408
|
Qu as selectLatestAssetTypeFieldsOfAssetType,
|
|
6409
6409
|
Uh as selectLatestFormRevisionOfForm,
|
|
@@ -6418,7 +6418,7 @@ export {
|
|
|
6418
6418
|
ep as selectOrganizationAccessById,
|
|
6419
6419
|
sp as selectOrganizationAccessForUser,
|
|
6420
6420
|
ld as selectOrganizationAccessUserMapping,
|
|
6421
|
-
|
|
6421
|
+
yn as selectOrganizationAccesses,
|
|
6422
6422
|
cp as selectOrganizationById,
|
|
6423
6423
|
Fd as selectOrganizationUsersAsMapping,
|
|
6424
6424
|
Ed as selectOrganizationUsersIds,
|
|
@@ -6427,7 +6427,7 @@ export {
|
|
|
6427
6427
|
rp as selectOrganizationsWithAccess,
|
|
6428
6428
|
ip as selectProjectAccessById,
|
|
6429
6429
|
np as selectProjectAccessForUser,
|
|
6430
|
-
|
|
6430
|
+
bn as selectProjectAccessMapping,
|
|
6431
6431
|
yd as selectProjectAccessUserMapping,
|
|
6432
6432
|
fd as selectProjectAccesses,
|
|
6433
6433
|
Ld as selectProjectAttachmentById,
|
|
@@ -6436,7 +6436,7 @@ export {
|
|
|
6436
6436
|
Rp as selectProjectFileById,
|
|
6437
6437
|
Zd as selectProjectFileMapping,
|
|
6438
6438
|
el as selectProjectFiles,
|
|
6439
|
-
|
|
6439
|
+
Sn as selectProjectMapping,
|
|
6440
6440
|
Od as selectProjectUsersAsMapping,
|
|
6441
6441
|
Rd as selectProjectUsersIds,
|
|
6442
6442
|
dp as selectProjectsOfOrganization,
|
|
@@ -6445,27 +6445,27 @@ export {
|
|
|
6445
6445
|
up as selectSortedOrganizationUsers,
|
|
6446
6446
|
op as selectSortedProjectUsers,
|
|
6447
6447
|
it as selectStageMapping,
|
|
6448
|
-
|
|
6448
|
+
Ya as selectStagesOfAssetType,
|
|
6449
6449
|
ge as selectTeamById,
|
|
6450
|
-
|
|
6450
|
+
qn as selectTeams,
|
|
6451
6451
|
Ep as selectTeamsByIds,
|
|
6452
|
-
|
|
6452
|
+
kn as selectTeamsMapping,
|
|
6453
6453
|
Fp as selectTeamsOfOrganization,
|
|
6454
6454
|
kp as selectTeamsOfUser,
|
|
6455
6455
|
rc as selectUploadUrl,
|
|
6456
6456
|
Qm as selectUserById,
|
|
6457
6457
|
Zm as selectUsersByIds,
|
|
6458
6458
|
ht as selectUsersMapping,
|
|
6459
|
-
|
|
6459
|
+
Xs as separateFilesFromValues,
|
|
6460
6460
|
tf as separateImageFromFields,
|
|
6461
6461
|
Xd as setActiveProjectFileId,
|
|
6462
6462
|
vu as setAsset,
|
|
6463
|
-
|
|
6463
|
+
Ia as setAssetAttachment,
|
|
6464
6464
|
Tu as setAssetAttachments,
|
|
6465
|
-
|
|
6465
|
+
Na as setAssetStage,
|
|
6466
6466
|
qu as setAssetStages,
|
|
6467
6467
|
lh as setAssetType,
|
|
6468
|
-
|
|
6468
|
+
Xa as setAssetTypeAttachment,
|
|
6469
6469
|
xu as setAssetTypeAttachments,
|
|
6470
6470
|
oh as setAssetTypeFieldValues,
|
|
6471
6471
|
th as setAssetTypeFieldValuesAttachment,
|
|
@@ -6477,11 +6477,11 @@ export {
|
|
|
6477
6477
|
Ku as setAssetTypeFieldsMany,
|
|
6478
6478
|
uh as setAssetTypes,
|
|
6479
6479
|
Iu as setAssets,
|
|
6480
|
-
|
|
6480
|
+
Oa as setConversation,
|
|
6481
6481
|
Ym as setCurrentUser,
|
|
6482
|
-
|
|
6482
|
+
Uo as setDocumentAttachment,
|
|
6483
6483
|
wh as setDocumentAttachments,
|
|
6484
|
-
|
|
6484
|
+
Wo as setDocuments,
|
|
6485
6485
|
Vh as setForm,
|
|
6486
6486
|
Ac as setFormRevision,
|
|
6487
6487
|
Dh as setFormRevisionAttachment,
|
|
@@ -6497,7 +6497,7 @@ export {
|
|
|
6497
6497
|
tm as setIssueAssociations,
|
|
6498
6498
|
ir as setIssueAttachment,
|
|
6499
6499
|
om as setIssueAttachments,
|
|
6500
|
-
|
|
6500
|
+
As as setIssueComment,
|
|
6501
6501
|
lr as setIssueComments,
|
|
6502
6502
|
Pe as setIssueType,
|
|
6503
6503
|
Sm as setIssueTypeFieldValues,
|
|
@@ -6509,7 +6509,7 @@ export {
|
|
|
6509
6509
|
fm as setIssueTypeFieldsAttachments,
|
|
6510
6510
|
Em as setIssueTypeFieldsMany,
|
|
6511
6511
|
Bm as setIssueUpdate,
|
|
6512
|
-
|
|
6512
|
+
jo as setLoggedIn,
|
|
6513
6513
|
wd as setOrganizations,
|
|
6514
6514
|
Jm as setProfilePicture,
|
|
6515
6515
|
zd as setProjectAttachment,
|
|
@@ -6522,38 +6522,38 @@ export {
|
|
|
6522
6522
|
Ah as setTokens,
|
|
6523
6523
|
cc as setUploadUrl,
|
|
6524
6524
|
nd as setUsers,
|
|
6525
|
-
|
|
6525
|
+
ma as shallowEqual,
|
|
6526
6526
|
fu as slugify,
|
|
6527
6527
|
pu as spacesToDashesLower,
|
|
6528
6528
|
ol as teamReducer,
|
|
6529
|
-
|
|
6529
|
+
Fn as teamSlice,
|
|
6530
6530
|
mu as toFileNameSafeString,
|
|
6531
|
-
|
|
6531
|
+
_a as toOfflineIdRecord,
|
|
6532
6532
|
yu as truncate,
|
|
6533
6533
|
Ee as updateAsset,
|
|
6534
6534
|
Ru as updateAssetAttachment,
|
|
6535
|
-
|
|
6535
|
+
Ea as updateAssetAttachments,
|
|
6536
6536
|
qt as updateAssetStage,
|
|
6537
|
-
|
|
6538
|
-
|
|
6537
|
+
$a as updateAssetStageCompletion,
|
|
6538
|
+
Ua as updateAssetStageCompletions,
|
|
6539
6539
|
Ue as updateAssetStages,
|
|
6540
6540
|
ke as updateAssetType,
|
|
6541
6541
|
Mu as updateAssetTypeAttachment,
|
|
6542
|
-
|
|
6542
|
+
Qa as updateAssetTypeAttachments,
|
|
6543
6543
|
Fe as updateAssetTypeFieldValues,
|
|
6544
6544
|
ih as updateAssetTypeFieldValuesAttachment,
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6545
|
+
bo as updateAssetTypeFieldValuesAttachments,
|
|
6546
|
+
vo as updateAssetTypeFieldValuesMany,
|
|
6547
|
+
po as updateAssetTypeFields,
|
|
6548
6548
|
Gu as updateAssetTypeFieldsAttachment,
|
|
6549
|
-
|
|
6549
|
+
oo as updateAssetTypeFieldsAttachments,
|
|
6550
6550
|
Yu as updateAssetTypeFieldsMany,
|
|
6551
6551
|
mh as updateAssetTypes,
|
|
6552
6552
|
wu as updateAssets,
|
|
6553
|
-
|
|
6554
|
-
|
|
6553
|
+
Co as updateCategory,
|
|
6554
|
+
wa as updateConversation,
|
|
6555
6555
|
vh as updateDocumentAttachment,
|
|
6556
|
-
|
|
6556
|
+
Vo as updateDocumentAttachments,
|
|
6557
6557
|
ne as updateDocuments,
|
|
6558
6558
|
Lh as updateForm,
|
|
6559
6559
|
xh as updateFormRevisionAttachment,
|
|
@@ -6584,11 +6584,11 @@ export {
|
|
|
6584
6584
|
hd as updateProjectAccess,
|
|
6585
6585
|
yp as updateProjectAttachment,
|
|
6586
6586
|
Ud as updateProjectAttachments,
|
|
6587
|
-
|
|
6587
|
+
Bs as updateProjectFile,
|
|
6588
6588
|
Sp as updateProjectFiles,
|
|
6589
|
-
|
|
6589
|
+
Hs as updateTeam,
|
|
6590
6590
|
od as userReducer,
|
|
6591
|
-
|
|
6591
|
+
pn as userSlice,
|
|
6592
6592
|
dl as versioningReducer,
|
|
6593
6593
|
rl as versioningSlice
|
|
6594
6594
|
};
|