@overmap-ai/core 1.0.74-procedures.1 → 1.0.74-procedures.2

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.
@@ -1,21 +1,21 @@
1
- var ka = Object.defineProperty;
2
- var qa = (t, e, s) => e in t ? ka(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var g = (t, e, s) => qa(t, typeof e != "symbol" ? e + "" : e, s);
1
+ var Ea = Object.defineProperty;
2
+ var ka = (t, e, s) => e in t ? Ea(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
+ var g = (t, e, s) => ka(t, typeof e != "symbol" ? e + "" : e, s);
4
4
  import { v4 as ye } from "uuid";
5
- import { createSlice as S, createSelector as p, combineReducers as ja, compose as Da } from "@reduxjs/toolkit";
6
- import { saveAs as Ma } from "file-saver";
7
- import { offline as xa } from "@redux-offline/redux-offline";
5
+ import { createSlice as S, createSelector as p, combineReducers as qa, compose as ja } from "@reduxjs/toolkit";
6
+ import { saveAs as Da } from "file-saver";
7
+ import { offline as Ma } from "@redux-offline/redux-offline";
8
8
  import Ot from "@redux-offline/redux-offline/lib/defaults";
9
- import Ca from "localforage";
10
- import za from "redux-persist-migrate";
9
+ import xa from "localforage";
10
+ import Ca from "redux-persist-migrate";
11
11
  import Ae from "superagent";
12
- import { DepGraph as $a } from "dependency-graph";
13
- import { openDB as Va } from "idb";
14
- import { RESET_STATE as Ua } from "@redux-offline/redux-offline/lib/constants";
15
- import Ga from "jwt-decode";
16
- const La = Object.freeze([]), Ba = Object.freeze({});
17
- var vi = /* @__PURE__ */ ((t) => (t[t.BASIC = 0] = "BASIC", t[t.ADMIN = 2] = "ADMIN", t))(vi || {}), Ii = /* @__PURE__ */ ((t) => (t[t.BASIC = 0] = "BASIC", t[t.ADMIN = 2] = "ADMIN", t))(Ii || {}), d = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(d || {}), Na = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(Na || {}), wi = /* @__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))(wi || {}), Pi = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(Pi || {}), w = /* @__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))(w || {}), Ha = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(Ha || {}), Wa = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(Wa || {}), Ka = /* @__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))(Ka || {});
18
- const fh = Pi.BACKLOG, yh = wi.MEDIUM, Ya = 6e4;
12
+ import { DepGraph as za } from "dependency-graph";
13
+ import { openDB as $a } from "idb";
14
+ import { RESET_STATE as Va } from "@redux-offline/redux-offline/lib/constants";
15
+ import Ua from "jwt-decode";
16
+ const Ga = Object.freeze([]), Ba = Object.freeze({});
17
+ var Oi = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(Oi || {}), vi = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(vi || {}), d = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(d || {}), La = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(La || {}), Ii = /* @__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))(Ii || {}), wi = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(wi || {}), w = /* @__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))(w || {}), Na = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(Na || {}), Ha = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(Ha || {}), Wa = /* @__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))(Wa || {});
18
+ const fh = wi.BACKLOG, yh = Ii.MEDIUM, Ka = 6e4;
19
19
  function F(t) {
20
20
  return {
21
21
  addOne: (h, m) => {
@@ -68,11 +68,11 @@ function F(t) {
68
68
  })
69
69
  };
70
70
  }
71
- var Oi;
72
- Oi = Symbol.toStringTag;
73
- class Ja {
71
+ var Fi;
72
+ Fi = Symbol.toStringTag;
73
+ class Ya {
74
74
  constructor() {
75
- g(this, Oi, "Promise");
75
+ g(this, Fi, "Promise");
76
76
  g(this, "_promise");
77
77
  g(this, "_resolve");
78
78
  g(this, "_reject");
@@ -110,9 +110,9 @@ const Ah = (t) => ({
110
110
  coordinates: t
111
111
  }), _h = (t, e) => t[0] === e[0] && t[1] === e[1];
112
112
  let at = !1;
113
- const Xa = "";
114
- ["true", "1"].includes(Xa.toLowerCase()) && (at = !0);
115
- function Qa(t, e) {
113
+ const Ja = "";
114
+ ["true", "1"].includes(Ja.toLowerCase()) && (at = !0);
115
+ function Xa(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 Qa(t, e) {
125
125
  }
126
126
  return !0;
127
127
  }
128
- function Ei(t) {
128
+ function Pi(t) {
129
129
  const e = {};
130
130
  return function() {
131
131
  const s = Array.prototype.slice.call(arguments);
@@ -138,15 +138,15 @@ function bh(t, e) {
138
138
  if (t[s] !== e[s]) return !1;
139
139
  return !0;
140
140
  }
141
- const A = (t) => t.length === 0 ? La : t, qe = (t) => Object.keys(t).length === 0 ? Ba : t, Za = Ei((t) => {
141
+ const A = (t) => t.length === 0 ? Ga : t, qe = (t) => Object.keys(t).length === 0 ? Ba : t, Qa = Pi((t) => {
142
142
  if (!t) return "";
143
143
  const e = new Date(t), s = e.getFullYear() === pt.getFullYear(), i = { day: "numeric", month: "short" };
144
144
  return s || (i.year = "numeric"), e.toLocaleDateString([], i);
145
- }), eo = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), to = 1e3 * 86400, pt = /* @__PURE__ */ new Date(), Sh = (t) => new Date(t).toDateString() === pt.toDateString(), Th = Ei((t, e, s) => {
146
- const i = Math.round((new Date(t).getTime() - pt.getTime()) / to);
147
- return i < e || i > s ? Za(t) : eo.format(i, "days");
145
+ }), Za = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), eo = 1e3 * 86400, pt = /* @__PURE__ */ new Date(), Sh = (t) => new Date(t).toDateString() === pt.toDateString(), Th = Pi((t, e, s) => {
146
+ const i = Math.round((new Date(t).getTime() - pt.getTime()) / eo);
147
+ return i < e || i > s ? Qa(t) : Za.format(i, "days");
148
148
  });
149
- function so(t) {
149
+ function to(t) {
150
150
  return new Uint8Array(t).reduce((s, i) => s + i.toString(16).padStart(2, "0"), "");
151
151
  }
152
152
  const vt = async (t, e) => {
@@ -166,7 +166,7 @@ function Pe(t) {
166
166
  return;
167
167
  }
168
168
  crypto.subtle.digest("SHA-1", n).then((a) => {
169
- const o = so(a);
169
+ const o = to(a);
170
170
  e(o);
171
171
  });
172
172
  }, i.readAsArrayBuffer(t);
@@ -179,7 +179,7 @@ function Rh(t) {
179
179
  }
180
180
  return `${t.name}&${t.type}${t.size}`;
181
181
  }
182
- function io(t, e) {
182
+ function so(t, e) {
183
183
  return new File([t], e, { type: t.type });
184
184
  }
185
185
  function Fh(t, e) {
@@ -198,7 +198,7 @@ const Oh = async (t) => {
198
198
  };
199
199
  }
200
200
  return Object.values(e);
201
- }, no = async (t) => (await fetch(t)).blob(), vh = (t) => new Promise((e, s) => {
201
+ }, io = async (t) => (await fetch(t)).blob(), vh = (t) => new Promise((e, s) => {
202
202
  const i = new FileReader();
203
203
  i.onloadend = () => {
204
204
  var n;
@@ -207,7 +207,7 @@ const Oh = async (t) => {
207
207
  });
208
208
  function Ih(t) {
209
209
  const e = new Blob([t]);
210
- Ma(e, t.name);
210
+ Da(e, t.name);
211
211
  }
212
212
  const It = {};
213
213
  function wh(t, e, s, ...i) {
@@ -218,7 +218,7 @@ function wh(t, e, s, ...i) {
218
218
  function R(t) {
219
219
  return { ...t, offline_id: ye() };
220
220
  }
221
- function ao(t) {
221
+ function no(t) {
222
222
  const e = {};
223
223
  for (const s of t)
224
224
  e[s.offline_id] = s;
@@ -247,7 +247,7 @@ function qh(t, e) {
247
247
  return s.slice(0, s.lastIndexOf(" ")) + "…";
248
248
  }
249
249
  const y = (t) => (e) => (s) => t(s, e);
250
- function oo(t, e, s) {
250
+ function ao(t, e, s) {
251
251
  return s.findIndex((i) => i.offline_id === t.offline_id) === e;
252
252
  }
253
253
  function jh(t, e, s) {
@@ -255,7 +255,7 @@ function jh(t, e, s) {
255
255
  }
256
256
  const Dh = /^.+@.+\..+$/, Fe = F(
257
257
  (t) => t.offline_id
258
- ), wt = Fe.getInitialState({}), ki = S({
258
+ ), wt = Fe.getInitialState({}), Ei = S({
259
259
  name: "agents",
260
260
  initialState: wt,
261
261
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, wt)),
@@ -265,15 +265,15 @@ const Dh = /^.+@.+\..+$/, Fe = F(
265
265
  setConversation: Fe.setOne,
266
266
  updateConversation: Fe.updateOne
267
267
  }
268
- }), { initializeConversations: co, addConversation: ro, setConversation: lo, updateConversation: uo } = ki.actions, qi = (t) => t.agentsReducer.instances, Mh = p(
269
- [qi],
268
+ }), { initializeConversations: oo, addConversation: co, setConversation: ro, updateConversation: lo } = Ei.actions, ki = (t) => t.agentsReducer.instances, Mh = p(
269
+ [ki],
270
270
  (t) => Object.values(t)
271
271
  ), xh = y(
272
272
  p(
273
- [qi, (t, e) => e],
273
+ [ki, (t, e) => e],
274
274
  (t, e) => t[e]
275
275
  )
276
- ), ho = ki.reducer, j = F((t) => t.offline_id), Pt = j.getInitialState({}), ji = S({
276
+ ), uo = Ei.reducer, j = F((t) => t.offline_id), Pt = j.getInitialState({}), qi = S({
277
277
  name: "assetAttachments",
278
278
  initialState: Pt,
279
279
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Pt)),
@@ -291,24 +291,24 @@ const Dh = /^.+@.+\..+$/, Fe = F(
291
291
  }), {
292
292
  initializeAssetAttachments: Et,
293
293
  addAssetAttachment: Ch,
294
- addAssetAttachments: Di,
295
- setAssetAttachment: mo,
294
+ addAssetAttachments: ji,
295
+ setAssetAttachment: ho,
296
296
  setAssetAttachments: zh,
297
297
  updateAssetAttachment: $h,
298
- updateAssetAttachments: po,
299
- deleteAssetAttachment: fo,
300
- deleteAssetAttachments: Mi
301
- } = ji.actions, yo = (t) => t.assetAttachmentReducer.instances, xi = p(
302
- [yo],
298
+ updateAssetAttachments: mo,
299
+ deleteAssetAttachment: po,
300
+ deleteAssetAttachments: Di
301
+ } = qi.actions, fo = (t) => t.assetAttachmentReducer.instances, Mi = p(
302
+ [fo],
303
303
  (t) => Object.values(t)
304
- ), Ao = (t) => (e) => e.assetAttachmentReducer.instances[t], go = y(
304
+ ), yo = (t) => (e) => e.assetAttachmentReducer.instances[t], Ao = y(
305
305
  p(
306
- [xi, (t, e) => e],
306
+ [Mi, (t, e) => e],
307
307
  (t, e) => A(t.filter(({ asset: s }) => e === s))
308
308
  )
309
309
  ), Vh = y(
310
310
  p(
311
- [xi, (t, e) => e],
311
+ [Mi, (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,9 +320,9 @@ const Dh = /^.+@.+\..+$/, Fe = F(
320
320
  return { fileAttachments: i, imageAttachments: n };
321
321
  }
322
322
  )
323
- ), _o = ji.reducer, D = F(
323
+ ), go = qi.reducer, D = F(
324
324
  (t) => t.offline_id
325
- ), kt = D.getInitialState({}), Ci = S({
325
+ ), kt = D.getInitialState({}), xi = S({
326
326
  name: "assetProcedureFieldsAttachments",
327
327
  initialState: kt,
328
328
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, kt)),
@@ -338,21 +338,21 @@ const Dh = /^.+@.+\..+$/, Fe = F(
338
338
  deleteAssetProcedureFieldsAttachments: D.deleteMany
339
339
  }
340
340
  }), {
341
- initializeAssetProcedureFieldsAttachments: bo,
341
+ initializeAssetProcedureFieldsAttachments: _o,
342
342
  addAssetProcedureFieldsAttachment: Uh,
343
- addAssetProcedureFieldsAttachments: So,
343
+ addAssetProcedureFieldsAttachments: bo,
344
344
  setAssetProcedureFieldsAttachment: Gh,
345
- setAssetProcedureFieldsAttachments: Lh,
346
- updateAssetProcedureFieldsAttachment: Bh,
347
- updateAssetProcedureFieldsAttachments: To,
345
+ setAssetProcedureFieldsAttachments: Bh,
346
+ updateAssetProcedureFieldsAttachment: Lh,
347
+ updateAssetProcedureFieldsAttachments: So,
348
348
  deleteAssetProcedureFieldsAttachment: Nh,
349
- deleteAssetProcedureFieldsAttachments: Ro
350
- } = Ci.actions, Fo = (t) => t.assetProcedureFieldsAttachmentReducer.instances, Oo = p(
351
- [Fo],
349
+ deleteAssetProcedureFieldsAttachments: To
350
+ } = xi.actions, Ro = (t) => t.assetProcedureFieldsAttachmentReducer.instances, Fo = p(
351
+ [Ro],
352
352
  (t) => Object.values(t)
353
353
  ), Hh = y(
354
- p([Oo, (t, e) => e], (t, e) => A(t.filter((s) => s.fields_revision === e)))
355
- ), Wh = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], vo = Ci.reducer, M = F((t) => t.offline_id), qt = M.getInitialState({}), zi = S({
354
+ p([Fo, (t, e) => e], (t, e) => A(t.filter((s) => s.fields_revision === e)))
355
+ ), Wh = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], Oo = xi.reducer, M = F((t) => t.offline_id), qt = M.getInitialState({}), Ci = S({
356
356
  name: "assetProcedureFields",
357
357
  initialState: qt,
358
358
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qt)),
@@ -368,25 +368,25 @@ const Dh = /^.+@.+\..+$/, Fe = F(
368
368
  deleteAssetProcedureFieldsMany: M.deleteMany
369
369
  }
370
370
  }), {
371
- initializeAssetProcedureFields: Io,
372
- addAssetProcedureFields: wo,
371
+ initializeAssetProcedureFields: vo,
372
+ addAssetProcedureFields: Io,
373
373
  addAssetProcedureFieldsMany: Kh,
374
374
  setAssetProcedureFields: Yh,
375
375
  setAssetProcedureFieldsMany: Jh,
376
- updateAssetProcedureFields: Po,
376
+ updateAssetProcedureFields: wo,
377
377
  updateAssetProcedureFieldsMany: Xh,
378
- deleteAssetProcedureFields: Eo,
378
+ deleteAssetProcedureFields: Po,
379
379
  deleteAssetProcedureFieldsMany: Qh
380
- } = zi.actions, ko = (t) => t.assetProcedureFieldsReducer.instances, $i = p([ko], (t) => Object.values(t)), Zh = y(
380
+ } = Ci.actions, Eo = (t) => t.assetProcedureFieldsReducer.instances, zi = p([Eo], (t) => Object.values(t)), Zh = y(
381
381
  p(
382
- [$i, (t, e) => e],
382
+ [zi, (t, e) => e],
383
383
  (t, e) => A(t.filter((s) => s.asset_procedure === e))
384
384
  )
385
385
  ), em = y(
386
- p([$i, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
387
- ), tm = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], qo = zi.reducer, x = F(
386
+ p([zi, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
387
+ ), tm = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], ko = Ci.reducer, x = F(
388
388
  (t) => t.offline_id
389
- ), jt = x.getInitialState({}), Vi = S({
389
+ ), jt = x.getInitialState({}), $i = S({
390
390
  name: "assetProcedureFieldValuesAttachments",
391
391
  initialState: jt,
392
392
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, jt)),
@@ -402,21 +402,21 @@ const Dh = /^.+@.+\..+$/, Fe = F(
402
402
  deleteAssetProcedureFieldValuesAttachments: x.deleteMany
403
403
  }
404
404
  }), {
405
- initializeAssetProcedureFieldValuesAttachments: jo,
405
+ initializeAssetProcedureFieldValuesAttachments: qo,
406
406
  addAssetProcedureFieldValuesAttachment: sm,
407
407
  addAssetProcedureFieldValuesAttachments: ot,
408
408
  setAssetProcedureFieldValuesAttachment: im,
409
409
  setAssetProcedureFieldValuesAttachments: nm,
410
410
  updateAssetProcedureFieldValuesAttachment: am,
411
- updateAssetProcedureFieldValuesAttachments: Do,
411
+ updateAssetProcedureFieldValuesAttachments: jo,
412
412
  deleteAssetProcedureFieldValuesAttachment: om,
413
413
  deleteAssetProcedureFieldValuesAttachments: ct
414
- } = Vi.actions, Ui = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances, Mo = p(
415
- [Ui],
414
+ } = $i.actions, Vi = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances, Do = p(
415
+ [Vi],
416
416
  (t) => Object.values(t)
417
- ), cm = (t) => (e) => e.assetProcedureFieldValuesAttachmentReducer.instances[t], xo = y(
417
+ ), cm = (t) => (e) => e.assetProcedureFieldValuesAttachmentReducer.instances[t], Mo = y(
418
418
  p(
419
- [Ui, (t, e) => e],
419
+ [Vi, (t, e) => e],
420
420
  (t, e) => {
421
421
  const s = new Set(e);
422
422
  return A(
@@ -424,11 +424,11 @@ const Dh = /^.+@.+\..+$/, Fe = F(
424
424
  );
425
425
  }
426
426
  )
427
- ), Co = y(
428
- p([Mo, (t, e) => e], (t, e) => A(t.filter((s) => s.field_values === e)))
429
- ), zo = Vi.reducer, C = F(
427
+ ), xo = y(
428
+ p([Do, (t, e) => e], (t, e) => A(t.filter((s) => s.field_values === e)))
429
+ ), Co = $i.reducer, C = F(
430
430
  (t) => t.offline_id
431
- ), Dt = C.getInitialState({}), Gi = S({
431
+ ), Dt = C.getInitialState({}), Ui = S({
432
432
  name: "assetProcedureFieldValues",
433
433
  initialState: Dt,
434
434
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Dt)),
@@ -444,26 +444,26 @@ const Dh = /^.+@.+\..+$/, Fe = F(
444
444
  deleteAssetProcedureFieldValuesMany: C.deleteMany
445
445
  }
446
446
  }), {
447
- initializeAssetProcedureFieldValues: $o,
447
+ initializeAssetProcedureFieldValues: zo,
448
448
  addAssetProcedureFieldValues: Mt,
449
- addAssetProcedureFieldValuesMany: Vo,
449
+ addAssetProcedureFieldValuesMany: $o,
450
450
  setAssetProcedureFieldValues: rm,
451
451
  setAssetProcedureFieldValuesMany: dm,
452
452
  updateAssetProcedureFieldValues: Ce,
453
- updateAssetProcedureFieldValuesMany: Uo,
453
+ updateAssetProcedureFieldValuesMany: Vo,
454
454
  deleteAssetProcedureFieldValues: xt,
455
- deleteAssetProcedureFieldValuesMany: Go
456
- } = Gi.actions, Lo = (t) => t.assetProcedureFieldValuesReducer.instances, Li = p(
457
- [Lo],
455
+ deleteAssetProcedureFieldValuesMany: Uo
456
+ } = Ui.actions, Go = (t) => t.assetProcedureFieldValuesReducer.instances, Gi = p(
457
+ [Go],
458
458
  (t) => Object.values(t)
459
459
  ), lm = y(
460
460
  p(
461
- [Li, (t, e) => e],
461
+ [Gi, (t, e) => e],
462
462
  (t, e) => A(t.filter((s) => s.asset === e))
463
463
  )
464
464
  ), um = y(
465
- p([Li, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_procedure_instance === e)))
466
- ), Ct = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], Bo = Gi.reducer, z = F(
465
+ p([Gi, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_procedure_instance === e)))
466
+ ), Ct = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], Bo = Ui.reducer, z = F(
467
467
  (t) => t.offline_id
468
468
  ), zt = z.getInitialState({}), Bi = S({
469
469
  name: "assetProcedureInstances",
@@ -481,21 +481,21 @@ const Dh = /^.+@.+\..+$/, Fe = F(
481
481
  deleteAssetProcedureInstances: z.deleteMany
482
482
  }
483
483
  }), {
484
- initializeAssetProcedureInstances: No,
484
+ initializeAssetProcedureInstances: Lo,
485
485
  addAssetProcedureInstance: $t,
486
- addAssetProcedureInstances: Ho,
486
+ addAssetProcedureInstances: No,
487
487
  updateAssetProcedureInstance: ze,
488
488
  updateAssetProcedureInstances: hm,
489
489
  deleteAssetProcedureInstance: Vt,
490
- deleteAssetProcedureInstances: Wo,
490
+ deleteAssetProcedureInstances: Ho,
491
491
  setAssetProcedureInstance: mm,
492
492
  setAssetProcedureInstances: pm
493
- } = Bi.actions, Ni = (t) => t.assetProcedureInstanceReducer.instances, Hi = p(
494
- [Ni],
493
+ } = Bi.actions, Li = (t) => t.assetProcedureInstanceReducer.instances, Ni = p(
494
+ [Li],
495
495
  (t) => Object.values(t)
496
- ), Ko = y(
496
+ ), Wo = y(
497
497
  p(
498
- [Hi, (t, e) => e],
498
+ [Ni, (t, e) => e],
499
499
  (t, e) => A(
500
500
  t.filter(
501
501
  (s) => s.asset_procedure === e
@@ -504,7 +504,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
504
504
  )
505
505
  ), fm = y(
506
506
  p(
507
- [Hi, (t, e) => e],
507
+ [Ni, (t, e) => e],
508
508
  (t, e) => A(
509
509
  t.filter(
510
510
  (s) => s.asset_type === e
@@ -513,7 +513,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
513
513
  )
514
514
  ), Ut = (t) => (e) => e.assetProcedureInstanceReducer.instances[t], ym = y(
515
515
  p(
516
- [Ni, (t, e) => e],
516
+ [Li, (t, e) => e],
517
517
  (t, e) => {
518
518
  const s = [];
519
519
  for (const i of e) {
@@ -523,7 +523,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
523
523
  return A(s);
524
524
  }
525
525
  )
526
- ), Yo = Bi.reducer, $ = F((t) => t.offline_id), Gt = $.getInitialState({}), Wi = S({
526
+ ), Ko = Bi.reducer, $ = F((t) => t.offline_id), Gt = $.getInitialState({}), Hi = S({
527
527
  name: "assetProcedures",
528
528
  initialState: Gt,
529
529
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gt)),
@@ -539,24 +539,24 @@ const Dh = /^.+@.+\..+$/, Fe = F(
539
539
  deleteAssetProcedures: $.deleteMany
540
540
  }
541
541
  }), {
542
- initializeAssetProcedures: Jo,
543
- addAssetProcedure: Lt,
542
+ initializeAssetProcedures: Yo,
543
+ addAssetProcedure: Bt,
544
544
  addAssetProcedures: Am,
545
545
  updateAssetProcedure: $e,
546
546
  updateAssetProcedures: gm,
547
- deleteAssetProcedure: Bt,
547
+ deleteAssetProcedure: Lt,
548
548
  deleteAssetProcedures: _m,
549
549
  setAssetProcedure: bm,
550
550
  setAssetProcedures: Sm
551
- } = Wi.actions, Ki = (t) => t.assetProcedureReducer.instances, Xo = p([Ki], (t) => Object.values(t)), Tm = y(
551
+ } = Hi.actions, Wi = (t) => t.assetProcedureReducer.instances, Jo = p([Wi], (t) => Object.values(t)), Tm = y(
552
552
  p(
553
- [Xo, (t, e) => e],
553
+ [Jo, (t, e) => e],
554
554
  (t, e) => A(
555
555
  t.filter((s) => s.organization === e)
556
556
  )
557
557
  )
558
558
  ), Nt = (t) => (e) => e.assetProcedureReducer.instances[t], Rm = y(
559
- p([Ki, (t, e) => e], (t, e) => {
559
+ p([Wi, (t, e) => e], (t, e) => {
560
560
  const s = [];
561
561
  for (const i of e) {
562
562
  const n = t[i];
@@ -564,7 +564,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
564
564
  }
565
565
  return A(s);
566
566
  })
567
- ), Qo = Wi.reducer, V = F((t) => t.offline_id), Ht = V.getInitialState({}), Yi = S({
567
+ ), Xo = Hi.reducer, V = F((t) => t.offline_id), Ht = V.getInitialState({}), Ki = S({
568
568
  name: "assets",
569
569
  initialState: Ht,
570
570
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ht)),
@@ -580,19 +580,19 @@ const Dh = /^.+@.+\..+$/, Fe = F(
580
580
  deleteAssets: V.deleteMany
581
581
  }
582
582
  }), {
583
- initializeAssets: Zo,
583
+ initializeAssets: Qo,
584
584
  addAsset: Wt,
585
- addAssets: Ji,
585
+ addAssets: Yi,
586
586
  updateAsset: Ve,
587
587
  updateAssets: Fm,
588
588
  deleteAsset: Kt,
589
- deleteAssets: ec,
589
+ deleteAssets: Zo,
590
590
  setAsset: Om,
591
591
  setAssets: vm
592
- } = Yi.actions, Xi = (t) => t.assetReducer.instances, tc = p([Xi], (t) => A(Object.values(t))), Qi = y(
593
- p([tc, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_type === e)))
592
+ } = Ki.actions, Ji = (t) => t.assetReducer.instances, ec = p([Ji], (t) => A(Object.values(t))), Xi = y(
593
+ p([ec, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_type === e)))
594
594
  ), Yt = (t) => (e) => e.assetReducer.instances[t], Im = y(
595
- p([Xi, (t, e) => e], (t, e) => {
595
+ p([Ji, (t, e) => e], (t, e) => {
596
596
  const s = [];
597
597
  for (const i of e) {
598
598
  const n = t[i];
@@ -600,9 +600,9 @@ const Dh = /^.+@.+\..+$/, Fe = F(
600
600
  }
601
601
  return A(s);
602
602
  })
603
- ), wm = (t) => (e) => Qi(t)(e).length, sc = Yi.reducer, ce = F(
603
+ ), wm = (t) => (e) => Xi(t)(e).length, tc = Ki.reducer, ce = F(
604
604
  (t) => t.offline_id
605
- ), Jt = ce.getInitialState({}), Zi = S({
605
+ ), Jt = ce.getInitialState({}), Qi = S({
606
606
  name: "assetStageCompletions",
607
607
  initialState: Jt,
608
608
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Jt)),
@@ -616,18 +616,18 @@ const Dh = /^.+@.+\..+$/, Fe = F(
616
616
  deleteAssetStageCompletions: ce.deleteMany
617
617
  }
618
618
  }), {
619
- initializeAssetStageCompletions: ic,
619
+ initializeAssetStageCompletions: sc,
620
620
  addAssetStageCompletion: Xt,
621
621
  addAssetStageCompletions: Qt,
622
- updateAssetStageCompletion: nc,
623
- updateAssetStageCompletions: ac,
622
+ updateAssetStageCompletion: ic,
623
+ updateAssetStageCompletions: nc,
624
624
  deleteAssetStageCompletion: Zt,
625
625
  deleteAssetStageCompletions: es
626
- } = Zi.actions, oc = Zi.reducer, en = (t) => t.assetStageCompletionReducer.instances, Pm = p(
627
- [en],
626
+ } = Qi.actions, ac = Qi.reducer, Zi = (t) => t.assetStageCompletionReducer.instances, Pm = p(
627
+ [Zi],
628
628
  (t) => Object.values(t)
629
- ), cc = (t) => (e) => e.assetStageCompletionReducer.instances[t], rc = y(
630
- p([en, (t, e) => e], (t, e) => {
629
+ ), oc = (t) => (e) => e.assetStageCompletionReducer.instances[t], cc = y(
630
+ p([Zi, (t, e) => e], (t, e) => {
631
631
  const s = new Set(e);
632
632
  return A(
633
633
  Object.values(t).filter(
@@ -635,7 +635,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
635
635
  )
636
636
  );
637
637
  })
638
- ), U = F((t) => t.offline_id), ts = U.getInitialState({}), tn = S({
638
+ ), U = F((t) => t.offline_id), ts = U.getInitialState({}), en = S({
639
639
  name: "assetStages",
640
640
  initialState: ts,
641
641
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ts)),
@@ -651,8 +651,8 @@ const Dh = /^.+@.+\..+$/, Fe = F(
651
651
  deleteAssetStages: U.deleteMany
652
652
  }
653
653
  }), {
654
- initializeAssetStages: dc,
655
- setAssetStage: lc,
654
+ initializeAssetStages: rc,
655
+ setAssetStage: dc,
656
656
  setAssetStages: Em,
657
657
  addAssetStage: km,
658
658
  addAssetStages: ss,
@@ -660,7 +660,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
660
660
  updateAssetStages: Qe,
661
661
  deleteAssetStage: qm,
662
662
  deleteAssetStages: ns
663
- } = tn.actions, uc = tn.reducer, ft = (t) => t.assetStageReducer.instances, hc = (t) => (e) => e.assetStageReducer.instances[t], mc = p([ft], (t) => Object.values(t)), jm = y(
663
+ } = en.actions, lc = en.reducer, ft = (t) => t.assetStageReducer.instances, uc = (t) => (e) => e.assetStageReducer.instances[t], hc = p([ft], (t) => Object.values(t)), jm = y(
664
664
  p([ft, (t, e) => e], (t, e) => {
665
665
  const s = {};
666
666
  for (const [i, n] of Object.entries(t))
@@ -668,7 +668,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
668
668
  return qe(s);
669
669
  })
670
670
  ), Dm = y(
671
- p([mc, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_procedure === e)))
671
+ p([hc, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_procedure === e)))
672
672
  ), as = y(
673
673
  p([ft, (t, e) => e], (t, e) => {
674
674
  const s = [];
@@ -680,7 +680,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
680
680
  })
681
681
  ), G = F(
682
682
  (t) => t.offline_id
683
- ), os = G.getInitialState({}), sn = S({
683
+ ), os = G.getInitialState({}), tn = S({
684
684
  name: "assetTypeAttachments",
685
685
  initialState: os,
686
686
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, os)),
@@ -696,26 +696,26 @@ const Dh = /^.+@.+\..+$/, Fe = F(
696
696
  deleteAssetTypeAttachments: G.deleteMany
697
697
  }
698
698
  }), {
699
- initializeAssetTypeAttachments: pc,
699
+ initializeAssetTypeAttachments: mc,
700
700
  addAssetTypeAttachment: Mm,
701
- addAssetTypeAttachments: nn,
702
- setAssetTypeAttachment: fc,
701
+ addAssetTypeAttachments: sn,
702
+ setAssetTypeAttachment: pc,
703
703
  setAssetTypeAttachments: xm,
704
704
  updateAssetTypeAttachment: Cm,
705
- updateAssetTypeAttachments: yc,
706
- deleteAssetTypeAttachment: Ac,
707
- deleteAssetTypeAttachments: an
708
- } = sn.actions, gc = (t) => t.assetTypeAttachmentReducer.instances, on = p(
709
- [gc],
705
+ updateAssetTypeAttachments: fc,
706
+ deleteAssetTypeAttachment: yc,
707
+ deleteAssetTypeAttachments: nn
708
+ } = tn.actions, Ac = (t) => t.assetTypeAttachmentReducer.instances, an = p(
709
+ [Ac],
710
710
  (t) => Object.values(t)
711
- ), _c = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], bc = y(
711
+ ), gc = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], _c = y(
712
712
  p(
713
- [on, (t, e) => e],
713
+ [an, (t, e) => e],
714
714
  (t, e) => A(t.filter(({ asset_type: s }) => e === s))
715
715
  )
716
716
  ), zm = y(
717
717
  p(
718
- [on, (t, e) => e],
718
+ [an, (t, e) => e],
719
719
  (t, e) => {
720
720
  const s = t.filter(({ asset_type: a }) => a === e), i = s.filter(
721
721
  // this null check here is necessary, there are cases where file_type is null or undefined
@@ -727,70 +727,70 @@ const Dh = /^.+@.+\..+$/, Fe = F(
727
727
  return { fileAttachments: i, imageAttachments: n };
728
728
  }
729
729
  )
730
- ), Sc = sn.reducer, L = F(
730
+ ), bc = tn.reducer, B = F(
731
731
  (t) => t.offline_id
732
- ), cs = L.getInitialState({}), cn = S({
732
+ ), cs = B.getInitialState({}), on = S({
733
733
  name: "assetTypeFieldsAttachments",
734
734
  initialState: cs,
735
735
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, cs)),
736
736
  reducers: {
737
- initializeAssetTypeFieldsAttachments: L.initialize,
738
- addAssetTypeFieldsAttachment: L.addOne,
739
- addAssetTypeFieldsAttachments: L.addMany,
740
- setAssetTypeFieldsAttachment: L.setOne,
741
- setAssetTypeFieldsAttachments: L.setMany,
742
- updateAssetTypeFieldsAttachment: L.updateOne,
743
- updateAssetTypeFieldsAttachments: L.updateMany,
744
- deleteAssetTypeFieldsAttachment: L.deleteOne,
745
- deleteAssetTypeFieldsAttachments: L.deleteMany
737
+ initializeAssetTypeFieldsAttachments: B.initialize,
738
+ addAssetTypeFieldsAttachment: B.addOne,
739
+ addAssetTypeFieldsAttachments: B.addMany,
740
+ setAssetTypeFieldsAttachment: B.setOne,
741
+ setAssetTypeFieldsAttachments: B.setMany,
742
+ updateAssetTypeFieldsAttachment: B.updateOne,
743
+ updateAssetTypeFieldsAttachments: B.updateMany,
744
+ deleteAssetTypeFieldsAttachment: B.deleteOne,
745
+ deleteAssetTypeFieldsAttachments: B.deleteMany
746
746
  }
747
747
  }), {
748
- initializeAssetTypeFieldsAttachments: Tc,
748
+ initializeAssetTypeFieldsAttachments: Sc,
749
749
  addAssetTypeFieldsAttachment: $m,
750
- addAssetTypeFieldsAttachments: Rc,
750
+ addAssetTypeFieldsAttachments: Tc,
751
751
  setAssetTypeFieldsAttachment: Vm,
752
752
  setAssetTypeFieldsAttachments: Um,
753
753
  updateAssetTypeFieldsAttachment: Gm,
754
- updateAssetTypeFieldsAttachments: Fc,
755
- deleteAssetTypeFieldsAttachment: Lm,
756
- deleteAssetTypeFieldsAttachments: Oc
757
- } = cn.actions, vc = (t) => t.assetTypeFieldsAttachmentReducer.instances, Ic = p(
758
- [vc],
754
+ updateAssetTypeFieldsAttachments: Rc,
755
+ deleteAssetTypeFieldsAttachment: Bm,
756
+ deleteAssetTypeFieldsAttachments: Fc
757
+ } = on.actions, Oc = (t) => t.assetTypeFieldsAttachmentReducer.instances, vc = p(
758
+ [Oc],
759
759
  (t) => Object.values(t)
760
- ), Bm = y(
761
- p([Ic, (t, e) => e], (t, e) => A(t.filter((s) => s.fields_revision === e)))
762
- ), Nm = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], wc = cn.reducer, B = F((t) => t.offline_id), rs = B.getInitialState({}), rn = S({
760
+ ), Lm = y(
761
+ p([vc, (t, e) => e], (t, e) => A(t.filter((s) => s.fields_revision === e)))
762
+ ), Nm = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], Ic = on.reducer, L = F((t) => t.offline_id), rs = L.getInitialState({}), cn = S({
763
763
  name: "assetTypeFields",
764
764
  initialState: rs,
765
765
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, rs)),
766
766
  reducers: {
767
- initializeAssetTypeFields: B.initialize,
768
- addAssetTypeFields: B.addOne,
769
- addAssetTypeFieldsMany: B.addMany,
770
- setAssetTypeFields: B.setOne,
771
- setAssetTypeFieldsMany: B.setMany,
772
- updateAssetTypeFields: B.updateOne,
773
- updateAssetTypeFieldsMany: B.updateMany,
774
- deleteAssetTypeFields: B.deleteOne,
775
- deleteAssetTypeFieldsMany: B.deleteMany
767
+ initializeAssetTypeFields: L.initialize,
768
+ addAssetTypeFields: L.addOne,
769
+ addAssetTypeFieldsMany: L.addMany,
770
+ setAssetTypeFields: L.setOne,
771
+ setAssetTypeFieldsMany: L.setMany,
772
+ updateAssetTypeFields: L.updateOne,
773
+ updateAssetTypeFieldsMany: L.updateMany,
774
+ deleteAssetTypeFields: L.deleteOne,
775
+ deleteAssetTypeFieldsMany: L.deleteMany
776
776
  }
777
777
  }), {
778
- initializeAssetTypeFields: Pc,
779
- addAssetTypeFields: Ec,
778
+ initializeAssetTypeFields: wc,
779
+ addAssetTypeFields: Pc,
780
780
  addAssetTypeFieldsMany: Hm,
781
781
  setAssetTypeFields: Wm,
782
782
  setAssetTypeFieldsMany: Km,
783
- updateAssetTypeFields: kc,
783
+ updateAssetTypeFields: Ec,
784
784
  updateAssetTypeFieldsMany: Ym,
785
- deleteAssetTypeFields: qc,
785
+ deleteAssetTypeFields: kc,
786
786
  deleteAssetTypeFieldsMany: Jm
787
- } = rn.actions, jc = (t) => t.assetTypeFieldsReducer.instances, yt = p([jc], (t) => Object.values(t)), Xm = y(
787
+ } = cn.actions, qc = (t) => t.assetTypeFieldsReducer.instances, yt = p([qc], (t) => Object.values(t)), Xm = y(
788
788
  p([yt, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_type === e)))
789
789
  ), Qm = y(
790
790
  p([yt, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
791
- ), Zm = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Dc = rn.reducer, N = F(
791
+ ), Zm = (t) => (e) => e.assetTypeFieldsReducer.instances[t], jc = cn.reducer, N = F(
792
792
  (t) => t.offline_id
793
- ), ds = N.getInitialState({}), dn = S({
793
+ ), ds = N.getInitialState({}), rn = S({
794
794
  name: "assetTypeFieldValuesAttachments",
795
795
  initialState: ds,
796
796
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ds)),
@@ -806,21 +806,21 @@ const Dh = /^.+@.+\..+$/, Fe = F(
806
806
  deleteAssetTypeFieldValuesAttachments: N.deleteMany
807
807
  }
808
808
  }), {
809
- initializeAssetTypeFieldValuesAttachments: Mc,
809
+ initializeAssetTypeFieldValuesAttachments: Dc,
810
810
  addAssetTypeFieldValuesAttachment: ep,
811
811
  addAssetTypeFieldValuesAttachments: rt,
812
812
  setAssetTypeFieldValuesAttachment: tp,
813
813
  setAssetTypeFieldValuesAttachments: sp,
814
814
  updateAssetTypeFieldValuesAttachment: ip,
815
- updateAssetTypeFieldValuesAttachments: xc,
815
+ updateAssetTypeFieldValuesAttachments: Mc,
816
816
  deleteAssetTypeFieldValuesAttachment: np,
817
817
  deleteAssetTypeFieldValuesAttachments: dt
818
- } = dn.actions, ln = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, Cc = p(
819
- [ln],
818
+ } = rn.actions, dn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, xc = p(
819
+ [dn],
820
820
  (t) => Object.values(t)
821
- ), ap = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], zc = y(
821
+ ), ap = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], Cc = y(
822
822
  p(
823
- [ln, (t, e) => e],
823
+ [dn, (t, e) => e],
824
824
  (t, e) => {
825
825
  const s = new Set(e);
826
826
  return A(
@@ -828,11 +828,11 @@ const Dh = /^.+@.+\..+$/, Fe = F(
828
828
  );
829
829
  }
830
830
  )
831
- ), $c = y(
832
- p([Cc, (t, e) => e], (t, e) => A(t.filter((s) => s.field_values === e)))
833
- ), Vc = dn.reducer, H = F(
831
+ ), zc = y(
832
+ p([xc, (t, e) => e], (t, e) => A(t.filter((s) => s.field_values === e)))
833
+ ), $c = rn.reducer, H = F(
834
834
  (t) => t.offline_id
835
- ), ls = H.getInitialState({}), un = S({
835
+ ), ls = H.getInitialState({}), ln = S({
836
836
  name: "assetTypeFieldValues",
837
837
  initialState: ls,
838
838
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ls)),
@@ -848,20 +848,20 @@ const Dh = /^.+@.+\..+$/, Fe = F(
848
848
  deleteAssetTypeFieldValuesMany: H.deleteMany
849
849
  }
850
850
  }), {
851
- initializeAssetTypeFieldValues: Uc,
851
+ initializeAssetTypeFieldValues: Vc,
852
852
  addAssetTypeFieldValues: us,
853
- addAssetTypeFieldValuesMany: Gc,
853
+ addAssetTypeFieldValuesMany: Uc,
854
854
  setAssetTypeFieldValues: op,
855
855
  setAssetTypeFieldValuesMany: cp,
856
856
  updateAssetTypeFieldValues: Ue,
857
- updateAssetTypeFieldValuesMany: Lc,
857
+ updateAssetTypeFieldValuesMany: Gc,
858
858
  deleteAssetTypeFieldValues: hs,
859
859
  deleteAssetTypeFieldValuesMany: Bc
860
- } = un.actions, Nc = (t) => t.assetTypeFieldValuesReducer.instances, hn = p([Nc], (t) => Object.values(t)), rp = y(
861
- p([hn, (t, e) => e], (t, e) => A(t.filter((s) => s.asset === e)))
860
+ } = ln.actions, Lc = (t) => t.assetTypeFieldValuesReducer.instances, un = p([Lc], (t) => Object.values(t)), rp = y(
861
+ p([un, (t, e) => e], (t, e) => A(t.filter((s) => s.asset === e)))
862
862
  ), dp = y(
863
863
  p(
864
- [yt, hn, (t, e) => e],
864
+ [yt, un, (t, e) => e],
865
865
  (t, e, s) => {
866
866
  const i = new Set(
867
867
  t.filter((n) => n.asset_type === s).map((n) => n.offline_id)
@@ -869,7 +869,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
869
869
  return A(e.filter((n) => i.has(n.fields_revision)));
870
870
  }
871
871
  )
872
- ), ms = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], Hc = un.reducer, W = F((t) => t.offline_id), ps = W.getInitialState({}), mn = S({
872
+ ), ms = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], Nc = ln.reducer, W = F((t) => t.offline_id), ps = W.getInitialState({}), hn = S({
873
873
  name: "assetTypes",
874
874
  initialState: ps,
875
875
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ps)),
@@ -885,7 +885,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
885
885
  deleteAssetTypes: W.deleteMany
886
886
  }
887
887
  }), {
888
- initializeAssetTypes: Wc,
888
+ initializeAssetTypes: Hc,
889
889
  setAssetType: lp,
890
890
  setAssetTypes: up,
891
891
  addAssetType: fs,
@@ -894,12 +894,12 @@ const Dh = /^.+@.+\..+$/, Fe = F(
894
894
  updateAssetTypes: mp,
895
895
  deleteAssetType: ys,
896
896
  deleteAssetTypes: pp
897
- } = mn.actions, pn = (t) => t.assetTypeReducer.instances, fp = p(
898
- [pn],
897
+ } = hn.actions, mn = (t) => t.assetTypeReducer.instances, fp = p(
898
+ [mn],
899
899
  (t) => Object.values(t)
900
900
  ), As = (t) => (e) => e.assetTypeReducer.instances[t], yp = y(
901
901
  p(
902
- [pn, (t, e) => e],
902
+ [mn, (t, e) => e],
903
903
  (t, e) => {
904
904
  const s = [];
905
905
  for (const i of e) {
@@ -909,7 +909,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
909
909
  return A(s);
910
910
  }
911
911
  )
912
- ), Kc = mn.reducer, gs = {
912
+ ), Wc = hn.reducer, gs = {
913
913
  accessToken: "",
914
914
  refreshToken: "",
915
915
  isLoggedIn: !1
@@ -928,7 +928,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
928
928
  e.payload || At.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
929
929
  }
930
930
  }
931
- }), { setTokens: Ap, clearTokens: gp, setLoggedIn: Yc } = At.actions, _p = (t) => t.authReducer.accessToken, bp = (t) => t.authReducer.isLoggedIn, Jc = At.reducer, Oe = F((t) => t.offline_id), _s = Oe.getInitialState({}), fn = S({
931
+ }), { setTokens: Ap, clearTokens: gp, setLoggedIn: Kc } = At.actions, _p = (t) => t.authReducer.accessToken, bp = (t) => t.authReducer.isLoggedIn, Yc = At.reducer, Oe = F((t) => t.offline_id), _s = Oe.getInitialState({}), pn = S({
932
932
  name: "categories",
933
933
  initialState: _s,
934
934
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, _s)),
@@ -938,9 +938,9 @@ const Dh = /^.+@.+\..+$/, Fe = F(
938
938
  updateCategory: Oe.updateOne,
939
939
  deleteCategory: Oe.deleteOne
940
940
  }
941
- }), { initializeCategories: Xc, addCategory: bs, updateCategory: Qc, deleteCategory: Zc } = fn.actions, yn = (t) => t.categoryReducer.instances, Sp = p([yn], (t) => Object.values(t)), Ss = (t) => (e) => e.categoryReducer.instances[t], Tp = y(
941
+ }), { initializeCategories: Jc, addCategory: bs, updateCategory: Xc, deleteCategory: Qc } = pn.actions, fn = (t) => t.categoryReducer.instances, Sp = p([fn], (t) => Object.values(t)), Ss = (t) => (e) => e.categoryReducer.instances[t], Tp = y(
942
942
  p(
943
- [yn, (t, e) => e],
943
+ [fn, (t, e) => e],
944
944
  (t, e) => {
945
945
  const s = [];
946
946
  for (const i of e) {
@@ -950,7 +950,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
950
950
  return A(s);
951
951
  }
952
952
  )
953
- ), Rp = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, er = fn.reducer, K = F((t) => t.offline_id), Ts = K.getInitialState({}), An = S({
953
+ ), Rp = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, Zc = pn.reducer, K = F((t) => t.offline_id), Ts = K.getInitialState({}), yn = S({
954
954
  name: "documentAttachments",
955
955
  initialState: Ts,
956
956
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ts)),
@@ -966,26 +966,26 @@ const Dh = /^.+@.+\..+$/, Fe = F(
966
966
  deleteDocumentAttachments: K.deleteMany
967
967
  }
968
968
  }), {
969
- initializeDocumentAttachments: tr,
969
+ initializeDocumentAttachments: er,
970
970
  addDocumentAttachment: Fp,
971
- addDocumentAttachments: sr,
972
- setDocumentAttachment: ir,
971
+ addDocumentAttachments: tr,
972
+ setDocumentAttachment: sr,
973
973
  setDocumentAttachments: Op,
974
974
  updateDocumentAttachment: vp,
975
- updateDocumentAttachments: nr,
976
- deleteDocumentAttachment: ar,
977
- deleteDocumentAttachments: or
978
- } = An.actions, cr = (t) => t.documentAttachmentReducer.instances, gn = p(
979
- [cr],
975
+ updateDocumentAttachments: ir,
976
+ deleteDocumentAttachment: nr,
977
+ deleteDocumentAttachments: ar
978
+ } = yn.actions, or = (t) => t.documentAttachmentReducer.instances, An = p(
979
+ [or],
980
980
  (t) => Object.values(t)
981
- ), rr = (t) => (e) => e.documentAttachmentReducer.instances[t], Ip = y(
981
+ ), cr = (t) => (e) => e.documentAttachmentReducer.instances[t], Ip = y(
982
982
  p(
983
- [gn, (t, e) => e],
983
+ [An, (t, e) => e],
984
984
  (t, e) => A(t.filter(({ document: s }) => e === s))
985
985
  )
986
986
  ), wp = y(
987
987
  p(
988
- [gn, (t, e) => e],
988
+ [An, (t, e) => e],
989
989
  (t, e) => {
990
990
  const s = t.filter(({ document: a }) => e === a), i = s.filter(
991
991
  // this null check here is necessary, there are cases where file_type is null or undefined
@@ -997,9 +997,9 @@ const Dh = /^.+@.+\..+$/, Fe = F(
997
997
  return { fileAttachments: i, imageAttachments: n };
998
998
  }
999
999
  )
1000
- ), dr = An.reducer, Rs = {
1000
+ ), rr = yn.reducer, Rs = {
1001
1001
  documents: {}
1002
- }, _n = S({
1002
+ }, gn = S({
1003
1003
  name: "documents",
1004
1004
  initialState: Rs,
1005
1005
  extraReducers: (t) => t.addCase("RESET", (e) => {
@@ -1007,9 +1007,9 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1007
1007
  }),
1008
1008
  reducers: {
1009
1009
  setDocuments: (t, e) => {
1010
- if (e.payload.filter(oo).length !== e.payload.length)
1010
+ if (e.payload.filter(ao).length !== e.payload.length)
1011
1011
  throw new Error("Tried to use setIssues reducer with duplicate ID's");
1012
- t.documents = ao(e.payload);
1012
+ t.documents = no(e.payload);
1013
1013
  },
1014
1014
  addDocuments: (t, e) => {
1015
1015
  for (const s of e.payload)
@@ -1125,7 +1125,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1125
1125
  }
1126
1126
  }
1127
1127
  }
1128
- }), { setDocuments: lr, addDocuments: Fs, updateDocuments: le, moveDocument: ur, removeDocuments: Os } = _n.actions, Ee = (t) => t.documentsReducer.documents, hr = p(
1128
+ }), { setDocuments: dr, addDocuments: lr, updateDocuments: le, moveDocument: ur, removeDocuments: Fs } = gn.actions, Ee = (t) => t.documentsReducer.documents, hr = p(
1129
1129
  [Ee],
1130
1130
  (t) => Object.values(t)
1131
1131
  ), mr = (t) => (e) => e.documentsReducer.documents[t], Pp = y(
@@ -1152,7 +1152,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1152
1152
  ), kp = p(
1153
1153
  [hr],
1154
1154
  (t) => A(t.filter((e) => !e.parent_document))
1155
- ), pr = _n.reducer, Ke = F((t) => t.offline_id), fr = Ke.getInitialState({}), bn = S({
1155
+ ), pr = gn.reducer, Ke = F((t) => t.offline_id), fr = Ke.getInitialState({}), _n = S({
1156
1156
  name: "emailDomains",
1157
1157
  initialState: fr,
1158
1158
  reducers: {
@@ -1160,19 +1160,19 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1160
1160
  addEmailDomain: Ke.addOne,
1161
1161
  deleteEmailDomain: Ke.deleteOne
1162
1162
  }
1163
- }), { initializeEmailDomains: yr, addEmailDomain: Ar, deleteEmailDomain: gr } = bn.actions, _r = (t) => t.emailDomainsReducer.instances, br = p([_r], (t) => Object.values(t)), qp = y(
1163
+ }), { initializeEmailDomains: yr, addEmailDomain: Ar, deleteEmailDomain: gr } = _n.actions, _r = (t) => t.emailDomainsReducer.instances, br = p([_r], (t) => Object.values(t)), qp = y(
1164
1164
  p(
1165
1165
  [br, (t, e) => e],
1166
1166
  (t, e) => A(
1167
1167
  t.filter((s) => s.organization === e)
1168
1168
  )
1169
1169
  )
1170
- ), Sr = bn.reducer, vs = {
1170
+ ), Sr = _n.reducer, Os = {
1171
1171
  s3Urls: {}
1172
- }, Sn = 1e3 * 60 * 60, Tr = Sn * 24 * 7, Tn = S({
1172
+ }, bn = 1e3 * 60 * 60, Tr = bn * 24 * 7, Sn = S({
1173
1173
  name: "file",
1174
- initialState: vs,
1175
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vs)),
1174
+ initialState: Os,
1175
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Os)),
1176
1176
  reducers: {
1177
1177
  setUploadUrl: (t, e) => {
1178
1178
  const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), o = new Date(a.getTime() + Tr);
@@ -1183,19 +1183,19 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1183
1183
  };
1184
1184
  }
1185
1185
  }
1186
- }), { setUploadUrl: Rr } = Tn.actions, Fr = (t) => (e) => {
1186
+ }), { setUploadUrl: Rr } = Sn.actions, Fr = (t) => (e) => {
1187
1187
  const s = e.fileReducer.s3Urls[t];
1188
1188
  if (!s)
1189
1189
  return;
1190
1190
  const i = (/* @__PURE__ */ new Date()).getTime();
1191
- if (!((s.exp ?? i) - i < Sn))
1191
+ if (!((s.exp ?? i) - i < bn))
1192
1192
  return s;
1193
- }, Or = Tn.reducer, Y = F(
1193
+ }, Or = Sn.reducer, Y = F(
1194
1194
  (t) => t.offline_id
1195
- ), Is = Y.getInitialState({}), Rn = S({
1195
+ ), vs = Y.getInitialState({}), Tn = S({
1196
1196
  name: "formRevisionAttachments",
1197
- initialState: Is,
1198
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Is)),
1197
+ initialState: vs,
1198
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vs)),
1199
1199
  reducers: {
1200
1200
  initializeFormRevisionAttachments: Y.initialize,
1201
1201
  addFormRevisionAttachment: Y.addOne,
@@ -1217,20 +1217,20 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1217
1217
  updateFormRevisionAttachments: wr,
1218
1218
  deleteFormRevisionAttachment: Cp,
1219
1219
  deleteFormRevisionAttachments: Pr
1220
- } = Rn.actions, Er = (t) => t.formRevisionAttachmentReducer.instances, zp = y(
1220
+ } = Tn.actions, Er = (t) => t.formRevisionAttachmentReducer.instances, zp = y(
1221
1221
  p(
1222
1222
  [Er, (t, e) => e],
1223
1223
  (t, e) => A(
1224
1224
  Object.values(t).filter((s) => s.form_revision === e)
1225
1225
  )
1226
1226
  )
1227
- ), kr = Rn.reducer, qr = (t, e) => {
1227
+ ), kr = Tn.reducer, qr = (t, e) => {
1228
1228
  const s = t.revision, i = e.revision;
1229
1229
  return s === "Pending" && i === "Pending" ? t.submitted_at < e.submitted_at ? -1 : 1 : s === "Pending" ? 1 : i === "Pending" || s < i ? -1 : 1;
1230
- }, ue = F((t) => t.offline_id), ws = ue.getInitialState({}), Fn = S({
1230
+ }, ue = F((t) => t.offline_id), Is = ue.getInitialState({}), Rn = S({
1231
1231
  name: "formRevisions",
1232
- initialState: ws,
1233
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ws)),
1232
+ initialState: Is,
1233
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Is)),
1234
1234
  reducers: {
1235
1235
  initializeFormRevisions: ue.initialize,
1236
1236
  setFormRevision: ue.setOne,
@@ -1242,11 +1242,11 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1242
1242
  }), {
1243
1243
  setFormRevision: jr,
1244
1244
  initializeFormRevisions: Dr,
1245
- addFormRevision: On,
1245
+ addFormRevision: Fn,
1246
1246
  addFormRevisions: Mr,
1247
- deleteFormRevision: vn,
1247
+ deleteFormRevision: On,
1248
1248
  deleteFormRevisions: xr
1249
- } = Fn.actions, gt = (t) => t.formRevisionReducer.instances, Cr = p(
1249
+ } = Rn.actions, gt = (t) => t.formRevisionReducer.instances, Cr = p(
1250
1250
  [gt],
1251
1251
  (t) => Object.values(t)
1252
1252
  ), $p = (t) => (e) => e.formRevisionReducer.instances[t], zr = (t, e) => {
@@ -1271,10 +1271,10 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1271
1271
  [Cr, (t, e) => e],
1272
1272
  (t, e) => A(t.filter((s) => s.form === e))
1273
1273
  )
1274
- ), Vr = Fn.reducer, he = F((t) => t.offline_id), Ps = he.getInitialState({}), In = S({
1274
+ ), Vr = Rn.reducer, he = F((t) => t.offline_id), ws = he.getInitialState({}), vn = S({
1275
1275
  name: "forms",
1276
- initialState: Ps,
1277
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ps)),
1276
+ initialState: ws,
1277
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ws)),
1278
1278
  reducers: {
1279
1279
  initializeForms: he.initialize,
1280
1280
  setForm: he.setOne,
@@ -1283,7 +1283,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1283
1283
  updateForm: he.updateOne,
1284
1284
  deleteForm: he.deleteOne
1285
1285
  }
1286
- }), { initializeForms: Ur, setForm: Up, addForm: Es, addForms: Gp, updateForm: Lp, deleteForm: ks } = In.actions, Gr = In.reducer, Lr = (t) => t.formReducer.instances, Bp = p([Lr], (t) => Object.values(t)), Br = (t) => (e) => e.formReducer.instances[t], Np = y(
1286
+ }), { initializeForms: Ur, setForm: Up, addForm: Ps, addForms: Gp, updateForm: Bp, deleteForm: Es } = vn.actions, Gr = vn.reducer, Br = (t) => t.formReducer.instances, Lp = p([Br], (t) => Object.values(t)), Lr = (t) => (e) => e.formReducer.instances[t], Np = y(
1287
1287
  p(
1288
1288
  [
1289
1289
  (t) => t.formReducer.instances,
@@ -1300,14 +1300,14 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1300
1300
  return [...o.slice(0, n)];
1301
1301
  },
1302
1302
  // as the argument is an object, we check the first level of properties for equality
1303
- { memoizeOptions: { resultEqualityCheck: Qa } }
1303
+ { memoizeOptions: { resultEqualityCheck: Xa } }
1304
1304
  )
1305
1305
  ), J = F(
1306
1306
  (t) => t.offline_id
1307
- ), qs = J.getInitialState({}), wn = S({
1307
+ ), ks = J.getInitialState({}), In = S({
1308
1308
  name: "formSubmissionAttachments",
1309
- initialState: qs,
1310
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qs)),
1309
+ initialState: ks,
1310
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ks)),
1311
1311
  reducers: {
1312
1312
  initializeFormSubmissionAttachments: J.initialize,
1313
1313
  addFormSubmissionAttachment: J.addOne,
@@ -1329,9 +1329,9 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1329
1329
  updateFormSubmissionAttachments: Hr,
1330
1330
  deleteFormSubmissionAttachment: Jp,
1331
1331
  deleteFormSubmissionAttachments: ut
1332
- } = wn.actions, Pn = (t) => t.formSubmissionAttachmentReducer.instances, Wr = y(
1332
+ } = In.actions, wn = (t) => t.formSubmissionAttachmentReducer.instances, Wr = y(
1333
1333
  p(
1334
- [Pn, (t, e) => e],
1334
+ [wn, (t, e) => e],
1335
1335
  (t, e) => {
1336
1336
  const s = new Set(e);
1337
1337
  return A(
@@ -1341,17 +1341,17 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1341
1341
  )
1342
1342
  ), Kr = y(
1343
1343
  p(
1344
- [Pn, (t, e) => e],
1344
+ [wn, (t, e) => e],
1345
1345
  (t, e) => A(
1346
1346
  Object.values(t).filter(
1347
1347
  (s) => s.form_submission === e
1348
1348
  )
1349
1349
  )
1350
1350
  )
1351
- ), Yr = wn.reducer, X = F((t) => t.offline_id), js = X.getInitialState({}), En = S({
1351
+ ), Yr = In.reducer, X = F((t) => t.offline_id), qs = X.getInitialState({}), Pn = S({
1352
1352
  name: "formSubmissions",
1353
- initialState: js,
1354
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, js)),
1353
+ initialState: qs,
1354
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qs)),
1355
1355
  reducers: {
1356
1356
  initializeFormSubmissions: X.initialize,
1357
1357
  setFormSubmission: X.setOne,
@@ -1367,19 +1367,19 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1367
1367
  initializeFormSubmissions: Jr,
1368
1368
  setFormSubmission: Ze,
1369
1369
  setFormSubmissions: Xp,
1370
- addFormSubmission: Ds,
1370
+ addFormSubmission: js,
1371
1371
  addFormSubmissions: _t,
1372
1372
  updateFormSubmission: Xr,
1373
1373
  updateFormSubmissions: Qp,
1374
- deleteFormSubmission: Ms,
1374
+ deleteFormSubmission: Ds,
1375
1375
  deleteFormSubmissions: bt
1376
- } = En.actions, kn = (t) => t.formSubmissionReducer.instances, qn = p(
1377
- [kn],
1376
+ } = Pn.actions, En = (t) => t.formSubmissionReducer.instances, kn = p(
1377
+ [En],
1378
1378
  (t) => Object.values(t)
1379
- ), xs = (t) => (e) => e.formSubmissionReducer.instances[t], Qr = y(
1379
+ ), Ms = (t) => (e) => e.formSubmissionReducer.instances[t], Qr = y(
1380
1380
  p(
1381
1381
  [
1382
- kn,
1382
+ En,
1383
1383
  gt,
1384
1384
  (t, e) => e
1385
1385
  ],
@@ -1394,20 +1394,20 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1394
1394
  )
1395
1395
  ), Zr = y(
1396
1396
  p(
1397
- [qn, (t, e) => e],
1397
+ [kn, (t, e) => e],
1398
1398
  (t, e) => Object.values(t).filter((s) => s.issue === e)
1399
1399
  )
1400
1400
  ), ed = y(
1401
1401
  p(
1402
- [qn, (t, e) => e],
1402
+ [kn, (t, e) => e],
1403
1403
  (t, e) => t.filter((s) => s.asset === e)
1404
1404
  )
1405
- ), td = En.reducer, Q = F((t) => t.offline_id), Cs = Q.getInitialState({}), jn = S({
1405
+ ), td = Pn.reducer, Q = F((t) => t.offline_id), xs = Q.getInitialState({}), qn = S({
1406
1406
  name: "geoImages",
1407
- initialState: Cs,
1407
+ initialState: xs,
1408
1408
  extraReducers: (t) => {
1409
1409
  t.addCase("RESET", (e) => {
1410
- Object.assign(e, Cs);
1410
+ Object.assign(e, xs);
1411
1411
  });
1412
1412
  },
1413
1413
  reducers: {
@@ -1423,20 +1423,20 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1423
1423
  }
1424
1424
  }), {
1425
1425
  initializeGeoImages: sd,
1426
- setGeoImage: Le,
1426
+ setGeoImage: Be,
1427
1427
  setGeoImages: id,
1428
1428
  addGeoImage: nd,
1429
1429
  addGeoImages: ad,
1430
1430
  updateGeoImage: od,
1431
1431
  updateGeoImages: Zp,
1432
- deleteGeoImage: zs,
1432
+ deleteGeoImage: Cs,
1433
1433
  deleteGeoImages: cd
1434
- } = jn.actions, rd = (t) => t.geoImageReducer.instances, dd = p([rd], (t) => Object.values(t)), $s = (t) => (e) => e.geoImageReducer.instances[t], ef = y(
1434
+ } = qn.actions, rd = (t) => t.geoImageReducer.instances, dd = p([rd], (t) => Object.values(t)), zs = (t) => (e) => e.geoImageReducer.instances[t], ef = y(
1435
1435
  p([dd, (t, e) => e], (t, e) => A(t.filter((s) => s.project === e)))
1436
- ), ld = jn.reducer, Z = F((t) => t.offline_id), Vs = Z.getInitialState({}), Dn = S({
1436
+ ), ld = qn.reducer, Z = F((t) => t.offline_id), $s = Z.getInitialState({}), jn = S({
1437
1437
  name: "issueAssociations",
1438
- initialState: Vs,
1439
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vs)),
1438
+ initialState: $s,
1439
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, $s)),
1440
1440
  reducers: {
1441
1441
  initializeIssueAssociations: Z.initialize,
1442
1442
  addIssueAssociation: Z.addOne,
@@ -1454,11 +1454,11 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1454
1454
  setIssueAssociation: sf,
1455
1455
  updateIssueAssociation: hd,
1456
1456
  updateIssueAssociations: nf,
1457
- addIssueAssociation: Us,
1458
- addIssueAssociations: Mn,
1459
- deleteIssueAssociation: Gs,
1460
- deleteIssueAssociations: xn
1461
- } = Dn.actions, Xe = (t) => t.issueAssociationReducer.instances, af = p([Xe], (t) => Object.values(t)), md = (t) => (e) => e.issueAssociationReducer.instances[t], pd = y(
1457
+ addIssueAssociation: Vs,
1458
+ addIssueAssociations: Dn,
1459
+ deleteIssueAssociation: Us,
1460
+ deleteIssueAssociations: Mn
1461
+ } = jn.actions, Xe = (t) => t.issueAssociationReducer.instances, af = p([Xe], (t) => Object.values(t)), md = (t) => (e) => e.issueAssociationReducer.instances[t], pd = y(
1462
1462
  p(
1463
1463
  [Xe, (t, e) => e],
1464
1464
  (t, e) => A(
@@ -1475,10 +1475,10 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1475
1475
  [Xe, (t, e) => e],
1476
1476
  (t, e) => A(Object.values(t).filter((s) => s.asset === e))
1477
1477
  )
1478
- ), Ad = Dn.reducer, ee = F((t) => t.offline_id), Ls = ee.getInitialState({}), Cn = S({
1478
+ ), Ad = jn.reducer, ee = F((t) => t.offline_id), Gs = ee.getInitialState({}), xn = S({
1479
1479
  name: "issueAttachments",
1480
- initialState: Ls,
1481
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ls)),
1480
+ initialState: Gs,
1481
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gs)),
1482
1482
  reducers: {
1483
1483
  initializeIssueAttachments: ee.initialize,
1484
1484
  addIssueAttachment: ee.addOne,
@@ -1493,24 +1493,24 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1493
1493
  }), {
1494
1494
  initializeIssueAttachments: gd,
1495
1495
  addIssueAttachment: of,
1496
- addIssueAttachments: zn,
1496
+ addIssueAttachments: Cn,
1497
1497
  setIssueAttachment: _d,
1498
1498
  setIssueAttachments: cf,
1499
1499
  updateIssueAttachment: rf,
1500
1500
  updateIssueAttachments: bd,
1501
1501
  deleteIssueAttachment: Sd,
1502
- deleteIssueAttachments: $n
1503
- } = Cn.actions, Td = (t) => t.issueAttachmentReducer.instances, Vn = p(
1502
+ deleteIssueAttachments: zn
1503
+ } = xn.actions, Td = (t) => t.issueAttachmentReducer.instances, $n = p(
1504
1504
  [Td],
1505
1505
  (t) => Object.values(t)
1506
1506
  ), Rd = y(
1507
1507
  p(
1508
- [Vn, (t, e) => e],
1508
+ [$n, (t, e) => e],
1509
1509
  (t, e) => A(t.filter(({ issue: s }) => e === s))
1510
1510
  )
1511
1511
  ), Fd = (t) => (e) => e.issueAttachmentReducer.instances[t], df = y(
1512
1512
  p(
1513
- [Vn, (t, e) => e],
1513
+ [$n, (t, e) => e],
1514
1514
  (t, e) => {
1515
1515
  const s = t.filter(({ issue: a }) => a === e), i = s.filter(
1516
1516
  // this null check here is necessary, there are cases where file_type is null or undefined
@@ -1522,7 +1522,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1522
1522
  return { fileAttachments: i, imageAttachments: n };
1523
1523
  }
1524
1524
  )
1525
- ), Od = Cn.reducer, me = F((t) => t.offline_id), Bs = me.getInitialState({}), Un = S({
1525
+ ), Od = xn.reducer, me = F((t) => t.offline_id), Bs = me.getInitialState({}), Vn = S({
1526
1526
  name: "issueComments",
1527
1527
  initialState: Bs,
1528
1528
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Bs)),
@@ -1536,18 +1536,18 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1536
1536
  }
1537
1537
  }), {
1538
1538
  setIssueComments: vd,
1539
- setIssueComment: Ns,
1540
- addIssueComment: Hs,
1539
+ setIssueComment: Ls,
1540
+ addIssueComment: Ns,
1541
1541
  addIssueComments: lf,
1542
- deleteIssueComment: Ws,
1542
+ deleteIssueComment: Hs,
1543
1543
  deleteIssueComments: uf
1544
- } = Un.actions, Id = (t) => t.issueCommentReducer.instances, wd = (t) => (e) => e.issueCommentReducer.instances[t], hf = y(
1544
+ } = Vn.actions, Id = (t) => t.issueCommentReducer.instances, wd = (t) => (e) => e.issueCommentReducer.instances[t], hf = y(
1545
1545
  p([Id, (t, e) => e], (t, e) => A(Object.values(t).filter((s) => s.issue === e)))
1546
- ), Pd = Un.reducer, pe = F((t) => t.offline_id), Ks = pe.getInitialState({}), Gn = S({
1546
+ ), Pd = Vn.reducer, pe = F((t) => t.offline_id), Ws = pe.getInitialState({}), Un = S({
1547
1547
  name: "issues",
1548
- initialState: Ks,
1548
+ initialState: Ws,
1549
1549
  extraReducers: (t) => t.addCase("RESET", (e) => {
1550
- Object.assign(e, Ks);
1550
+ Object.assign(e, Ws);
1551
1551
  }),
1552
1552
  reducers: {
1553
1553
  initializeIssues: pe.initialize,
@@ -1557,7 +1557,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1557
1557
  deleteIssue: pe.deleteOne,
1558
1558
  deleteIssues: pe.deleteMany
1559
1559
  }
1560
- }), { initializeIssues: Ed, addIssue: Ys, addIssues: kd, updateIssue: et, deleteIssue: Js, deleteIssues: qd } = Gn.actions, jd = (t) => t.issueReducer.instances, Xs = (t) => (e) => e.issueReducer.instances[t], mf = y(
1560
+ }), { initializeIssues: Ed, addIssue: Ks, addIssues: kd, updateIssue: et, deleteIssue: Ys, deleteIssues: qd } = Un.actions, jd = (t) => t.issueReducer.instances, Js = (t) => (e) => e.issueReducer.instances[t], mf = y(
1561
1561
  p([jd, (t, e) => e], (t, e) => {
1562
1562
  const s = [];
1563
1563
  for (const i of e) {
@@ -1566,12 +1566,12 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1566
1566
  }
1567
1567
  return A(s);
1568
1568
  })
1569
- ), Dd = Gn.reducer, te = F(
1569
+ ), Dd = Un.reducer, te = F(
1570
1570
  (t) => t.offline_id
1571
- ), Qs = te.getInitialState({}), Ln = S({
1571
+ ), Xs = te.getInitialState({}), Gn = S({
1572
1572
  name: "issueTypeFieldsAttachments",
1573
- initialState: Qs,
1574
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Qs)),
1573
+ initialState: Xs,
1574
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Xs)),
1575
1575
  reducers: {
1576
1576
  initializeIssueTypeFieldsAttachments: te.initialize,
1577
1577
  addIssueTypeFieldsAttachment: te.addOne,
@@ -1593,7 +1593,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1593
1593
  updateIssueTypeFieldsAttachments: Cd,
1594
1594
  deleteIssueTypeFieldsAttachment: gf,
1595
1595
  deleteIssueTypeFieldsAttachments: zd
1596
- } = Ln.actions, $d = (t) => t.issueTypeFieldsAttachmentReducer.instances, Vd = p(
1596
+ } = Gn.actions, $d = (t) => t.issueTypeFieldsAttachmentReducer.instances, Vd = p(
1597
1597
  [$d],
1598
1598
  (t) => Object.values(t)
1599
1599
  ), _f = y(
@@ -1603,12 +1603,12 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1603
1603
  t.filter((s) => s.fields_revision === e)
1604
1604
  )
1605
1605
  )
1606
- ), bf = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], Ud = Ln.reducer, se = F(
1606
+ ), bf = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], Ud = Gn.reducer, se = F(
1607
1607
  (t) => t.offline_id
1608
- ), Zs = se.getInitialState({}), Bn = S({
1608
+ ), Qs = se.getInitialState({}), Bn = S({
1609
1609
  name: "issueTypeFieldValues",
1610
- initialState: Zs,
1611
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Zs)),
1610
+ initialState: Qs,
1611
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Qs)),
1612
1612
  reducers: {
1613
1613
  initializeIssueTypeFieldValues: se.initialize,
1614
1614
  addIssueTypeFieldValues: se.addOne,
@@ -1622,20 +1622,20 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1622
1622
  }
1623
1623
  }), {
1624
1624
  initializeIssueTypeFieldValues: Gd,
1625
- addIssueTypeFieldValues: ei,
1625
+ addIssueTypeFieldValues: Zs,
1626
1626
  addIssueTypeFieldValuesMany: Sf,
1627
1627
  setIssueTypeFieldValues: Tf,
1628
1628
  setIssueTypeFieldValuesMany: Rf,
1629
- updateIssueTypeFieldValues: Be,
1629
+ updateIssueTypeFieldValues: Le,
1630
1630
  updateIssueTypeFieldValuesMany: Ff,
1631
- deleteIssueTypeFieldValues: ti,
1631
+ deleteIssueTypeFieldValues: ei,
1632
1632
  deleteIssueTypeFieldValuesMany: Of
1633
- } = Bn.actions, Ld = (t) => t.issueTypeFieldValuesReducer.instances, Nn = p([Ld], (t) => Object.values(t)), vf = y(
1634
- p([Nn, (t, e) => e], (t, e) => A(t.filter((s) => s.issue === e)))
1635
- ), si = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Bd = Bn.reducer, ie = F((t) => t.offline_id), ii = ie.getInitialState({}), Hn = S({
1633
+ } = Bn.actions, Bd = (t) => t.issueTypeFieldValuesReducer.instances, Ln = p([Bd], (t) => Object.values(t)), vf = y(
1634
+ p([Ln, (t, e) => e], (t, e) => A(t.filter((s) => s.issue === e)))
1635
+ ), ti = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Ld = Bn.reducer, ie = F((t) => t.offline_id), si = ie.getInitialState({}), Nn = S({
1636
1636
  name: "issueTypeFields",
1637
- initialState: ii,
1638
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ii)),
1637
+ initialState: si,
1638
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, si)),
1639
1639
  reducers: {
1640
1640
  initializeIssueTypeFields: ie.initialize,
1641
1641
  addIssueTypeFields: ie.addOne,
@@ -1657,13 +1657,13 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1657
1657
  updateIssueTypeFieldsMany: Ef,
1658
1658
  deleteIssueTypeFields: Kd,
1659
1659
  deleteIssueTypeFieldsMany: kf
1660
- } = Hn.actions, Yd = (t) => t.issueTypeFieldsReducer.instances, St = p([Yd], (t) => Object.values(t)), qf = y(
1660
+ } = Nn.actions, Yd = (t) => t.issueTypeFieldsReducer.instances, St = p([Yd], (t) => Object.values(t)), qf = y(
1661
1661
  p([St, (t, e) => e], (t, e) => A(t.filter((s) => s.issue_type === e)))
1662
1662
  ), jf = y(
1663
1663
  p([St, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
1664
1664
  ), Df = y(
1665
1665
  p(
1666
- [St, Nn, (t, e) => e],
1666
+ [St, Ln, (t, e) => e],
1667
1667
  (t, e, s) => {
1668
1668
  const i = new Set(
1669
1669
  t.filter((n) => n.issue_type === s).map((n) => n.offline_id)
@@ -1671,12 +1671,12 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1671
1671
  return A(e.filter((n) => i.has(n.fields_revision)));
1672
1672
  }
1673
1673
  )
1674
- ), Mf = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Jd = Hn.reducer, ne = F(
1674
+ ), Mf = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Jd = Nn.reducer, ne = F(
1675
1675
  (t) => t.offline_id
1676
- ), ni = ne.getInitialState({}), Wn = S({
1676
+ ), ii = ne.getInitialState({}), Hn = S({
1677
1677
  name: "issueTypeFieldValuesAttachments",
1678
- initialState: ni,
1679
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ni)),
1678
+ initialState: ii,
1679
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ii)),
1680
1680
  reducers: {
1681
1681
  initializeIssueTypeFieldValuesAttachments: ne.initialize,
1682
1682
  addIssueTypeFieldValuesAttachment: ne.addOne,
@@ -1698,12 +1698,12 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1698
1698
  updateIssueTypeFieldValuesAttachments: Qd,
1699
1699
  deleteIssueTypeFieldValuesAttachment: Vf,
1700
1700
  deleteIssueTypeFieldValuesAttachments: mt
1701
- } = Wn.actions, Kn = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, Zd = p(
1702
- [Kn],
1701
+ } = Hn.actions, Wn = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, Zd = p(
1702
+ [Wn],
1703
1703
  (t) => Object.values(t)
1704
1704
  ), Uf = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], el = y(
1705
1705
  p(
1706
- [Kn, (t, e) => e],
1706
+ [Wn, (t, e) => e],
1707
1707
  (t, e) => {
1708
1708
  const s = new Set(e);
1709
1709
  return A(
@@ -1716,11 +1716,11 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1716
1716
  [Zd, (t, e) => e],
1717
1717
  (t, e) => A(t.filter((s) => s.field_values === e))
1718
1718
  )
1719
- ), sl = Wn.reducer, ge = F((t) => t.offline_id), ai = ge.getInitialState({}), Yn = S({
1719
+ ), sl = Hn.reducer, ge = F((t) => t.offline_id), ni = ge.getInitialState({}), Kn = S({
1720
1720
  name: "issueTypes",
1721
- initialState: ai,
1721
+ initialState: ni,
1722
1722
  extraReducers: (t) => t.addCase("RESET", (e) => {
1723
- Object.assign(e, ai);
1723
+ Object.assign(e, ni);
1724
1724
  }),
1725
1725
  reducers: {
1726
1726
  initializeIssueTypes: ge.initialize,
@@ -1729,32 +1729,32 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1729
1729
  updateIssueType: ge.updateOne,
1730
1730
  removeIssueType: ge.deleteOne
1731
1731
  }
1732
- }), { initializeIssueTypes: il, setIssueType: Ne, addIssueType: nl, updateIssueType: al, removeIssueType: oi } = Yn.actions, ol = (t) => t.issueTypeReducer.instances, cl = p(
1732
+ }), { initializeIssueTypes: il, setIssueType: Ne, addIssueType: nl, updateIssueType: al, removeIssueType: ai } = Kn.actions, ol = (t) => t.issueTypeReducer.instances, cl = p(
1733
1733
  ol,
1734
1734
  (t) => Object.values(t)
1735
- ), ci = (t) => (e) => e.issueTypeReducer.instances[t], Gf = (t) => (e) => {
1735
+ ), oi = (t) => (e) => e.issueTypeReducer.instances[t], Gf = (t) => (e) => {
1736
1736
  const s = [];
1737
1737
  for (const i of t) {
1738
1738
  const n = e.issueTypeReducer.instances[i];
1739
1739
  n ? s.push(n) : console.warn("selectIssueTypesByIds: No issue type exists with the id", i);
1740
1740
  }
1741
1741
  return s;
1742
- }, Lf = y(
1742
+ }, Bf = y(
1743
1743
  p(
1744
1744
  [cl, (t, e) => e],
1745
1745
  (t, e) => A(t.filter((s) => s.organization === e))
1746
1746
  )
1747
- ), Jn = y(
1747
+ ), Yn = y(
1748
1748
  p(
1749
1749
  [(t) => t.issueReducer.instances, (t, e) => e],
1750
1750
  (t, e) => A(
1751
1751
  Object.values(t).filter((s) => s.issue_type === e)
1752
1752
  )
1753
1753
  )
1754
- ), Bf = (t) => (e) => Jn(t)(e).length, rl = Yn.reducer, fe = F((t) => t.offline_id), ri = fe.getInitialState({}), Xn = S({
1754
+ ), Lf = (t) => (e) => Yn(t)(e).length, rl = Kn.reducer, fe = F((t) => t.offline_id), ci = fe.getInitialState({}), Jn = S({
1755
1755
  name: "issueUpdates",
1756
- initialState: ri,
1757
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ri)),
1756
+ initialState: ci,
1757
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ci)),
1758
1758
  reducers: {
1759
1759
  initializeIssueUpdates: fe.setMany,
1760
1760
  setIssueUpdate: fe.setOne,
@@ -1770,21 +1770,21 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1770
1770
  addIssueUpdates: ul,
1771
1771
  deleteIssueUpdate: hl,
1772
1772
  deleteIssueUpdates: ml
1773
- } = Xn.actions, pl = (t) => t.issueUpdateReducer.instances, fl = y(
1773
+ } = Jn.actions, pl = (t) => t.issueUpdateReducer.instances, fl = y(
1774
1774
  p(
1775
1775
  [pl, (t, e) => e],
1776
1776
  (t, e) => A(Object.values(t).filter((s) => s.issue === e))
1777
1777
  )
1778
- ), yl = Xn.reducer, Ye = F((t) => t.offline_id), di = Ye.getInitialState({}), Qn = S({
1778
+ ), yl = Jn.reducer, Ye = F((t) => t.offline_id), ri = Ye.getInitialState({}), Xn = S({
1779
1779
  name: "license",
1780
- initialState: di,
1781
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, di)),
1780
+ initialState: ri,
1781
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ri)),
1782
1782
  reducers: {
1783
1783
  initializeLicences: Ye.initialize,
1784
1784
  addLicenses: Ye.addMany,
1785
1785
  updateLicense: Ye.updateOne
1786
1786
  }
1787
- }), { initializeLicences: Al, addLicenses: Hf, updateLicense: re } = Qn.actions, Tt = (t) => t.licenseReducer.instances, Wf = (t) => (e) => e.licenseReducer.instances[t], gl = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), Kf = p(
1787
+ }), { initializeLicences: Al, addLicenses: Hf, updateLicense: re } = Xn.actions, Tt = (t) => t.licenseReducer.instances, Wf = (t) => (e) => e.licenseReducer.instances[t], gl = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), Kf = p(
1788
1788
  [Tt],
1789
1789
  (t) => A(Object.values(t).filter((e) => e.is_active))
1790
1790
  ), Yf = p(
@@ -1792,13 +1792,13 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1792
1792
  (t) => qe(
1793
1793
  Object.values(t).filter((e) => e.project).reduce((e, s) => ({ ...e, [s.project]: s }), {})
1794
1794
  )
1795
- ), _l = Qn.reducer, li = {
1795
+ ), _l = Xn.reducer, di = {
1796
1796
  users: {},
1797
1797
  currentUser: null
1798
- }, Zn = S({
1798
+ }, Qn = S({
1799
1799
  name: "users",
1800
- initialState: li,
1801
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, li)),
1800
+ initialState: di,
1801
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, di)),
1802
1802
  reducers: {
1803
1803
  setUsers: (t, e) => {
1804
1804
  const s = {};
@@ -1825,7 +1825,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1825
1825
  delete t.users[e.payload];
1826
1826
  }
1827
1827
  }
1828
- }), { setCurrentUser: Jf, setProfilePicture: Xf, setUsers: bl, addUsers: Qf, removeUser: Sl } = Zn.actions, Tl = Zn.reducer, Rt = (t) => t.userReducer.currentUser, Ft = (t) => t.userReducer.users, Zf = (t) => (e) => e.userReducer.users[t], ey = y(
1828
+ }), { setCurrentUser: Jf, setProfilePicture: Xf, setUsers: bl, addUsers: Qf, removeUser: Sl } = Qn.actions, Tl = Qn.reducer, Rt = (t) => t.userReducer.currentUser, Ft = (t) => t.userReducer.users, Zf = (t) => (e) => e.userReducer.users[t], ey = y(
1829
1829
  p([Ft, (t, e) => e], (t, e) => {
1830
1830
  const s = [];
1831
1831
  for (const i of e) {
@@ -1836,17 +1836,17 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1836
1836
  })
1837
1837
  ), Je = F(
1838
1838
  (t) => t.offline_id
1839
- ), ui = Je.getInitialState({}), ea = S({
1839
+ ), li = Je.getInitialState({}), Zn = S({
1840
1840
  name: "organizationAccess",
1841
- initialState: ui,
1842
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ui)),
1841
+ initialState: li,
1842
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, li)),
1843
1843
  reducers: {
1844
1844
  initializeOrganizationAccesses: Je.initialize,
1845
1845
  updateOrganizationAccess: Je.updateOne,
1846
1846
  deleteOrganizationAccess: Je.deleteOne
1847
1847
  }
1848
- }), { initializeOrganizationAccesses: Rl, updateOrganizationAccess: Fl, deleteOrganizationAccess: Ol } = ea.actions, ta = (t) => t.organizationAccessReducer.instances, ty = (t) => (e) => e.organizationAccessReducer.instances[t], sy = p(
1849
- [Rt, ta],
1848
+ }), { initializeOrganizationAccesses: Rl, updateOrganizationAccess: Fl, deleteOrganizationAccess: Ol } = Zn.actions, ea = (t) => t.organizationAccessReducer.instances, ty = (t) => (e) => e.organizationAccessReducer.instances[t], sy = p(
1849
+ [Rt, ea],
1850
1850
  (t, e) => Object.values(e).find(
1851
1851
  (i) => i.user === (t == null ? void 0 : t.id)
1852
1852
  ) ?? null
@@ -1857,18 +1857,18 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1857
1857
  for (const s of Object.values(t.organizationAccessReducer.instances))
1858
1858
  e[s.user] = s;
1859
1859
  return qe(e);
1860
- }, Il = ea.reducer, ve = F((t) => t.offline_id), hi = ve.getInitialState({}), sa = S({
1860
+ }, Il = Zn.reducer, ve = F((t) => t.offline_id), ui = ve.getInitialState({}), ta = S({
1861
1861
  name: "projectAccess",
1862
- initialState: hi,
1863
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, hi)),
1862
+ initialState: ui,
1863
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ui)),
1864
1864
  reducers: {
1865
1865
  initializeProjectAccesses: ve.initialize,
1866
1866
  updateProjectAccess: ve.updateOne,
1867
1867
  deleteProjectAccess: ve.deleteOne,
1868
1868
  deleteProjectAccesses: ve.deleteMany
1869
1869
  }
1870
- }), { initializeProjectAccesses: ia, updateProjectAccess: wl, deleteProjectAccess: Pl, deleteProjectAccesses: El } = sa.actions, na = (t) => t.projectAccessReducer.instances, kl = p(
1871
- na,
1870
+ }), { initializeProjectAccesses: sa, updateProjectAccess: wl, deleteProjectAccess: Pl, deleteProjectAccesses: El } = ta.actions, ia = (t) => t.projectAccessReducer.instances, kl = p(
1871
+ ia,
1872
1872
  (t) => Object.values(t)
1873
1873
  ), ny = (t) => (e) => e.projectAccessReducer.instances[t], ay = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
1874
1874
  (s) => s.user === t.id
@@ -1877,12 +1877,12 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1877
1877
  for (const s of Object.values(t.projectAccessReducer.instances))
1878
1878
  e[s.user] = s;
1879
1879
  return qe(e);
1880
- }, jl = sa.reducer, mi = {
1880
+ }, jl = ta.reducer, hi = {
1881
1881
  projects: {}
1882
- }, aa = S({
1882
+ }, na = S({
1883
1883
  name: "projects",
1884
- initialState: mi,
1885
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, mi)),
1884
+ initialState: hi,
1885
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, hi)),
1886
1886
  reducers: {
1887
1887
  setProjects: (t, e) => {
1888
1888
  const s = {};
@@ -1903,8 +1903,8 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1903
1903
  throw new Error("Accept project invite: user is not in this project");
1904
1904
  }
1905
1905
  }
1906
- }), { setProjects: Dl, updateProject: Ml, deleteProject: xl, acceptProjectInvite: Cl } = aa.actions, zl = aa.reducer, oa = (t) => t.projectReducer.projects, oy = (t) => (e) => e.projectReducer.projects[t], $l = p(
1907
- [na],
1906
+ }), { setProjects: Dl, updateProject: Ml, deleteProject: xl, acceptProjectInvite: Cl } = na.actions, zl = na.reducer, aa = (t) => t.projectReducer.projects, oy = (t) => (e) => e.projectReducer.projects[t], $l = p(
1907
+ [ia],
1908
1908
  (t) => Object.values(t).map((e) => e.user)
1909
1909
  ), Vl = p(
1910
1910
  [$l, Ft],
@@ -1918,32 +1918,32 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1918
1918
  if (n.id === (t == null ? void 0 : t.id))
1919
1919
  return 1;
1920
1920
  const a = s[i.id], o = s[n.id];
1921
- 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) === vi.ADMIN ? -1 : 1;
1921
+ 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) === Oi.ADMIN ? -1 : 1;
1922
1922
  })
1923
1923
  )
1924
- ), pi = {
1924
+ ), mi = {
1925
1925
  organizations: {}
1926
- }, ca = S({
1926
+ }, oa = S({
1927
1927
  name: "organizations",
1928
- initialState: pi,
1929
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, pi)),
1928
+ initialState: mi,
1929
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, mi)),
1930
1930
  reducers: {
1931
1931
  setOrganizations: (t, e) => {
1932
1932
  for (const s of e.payload)
1933
1933
  t.organizations[s.id] = s;
1934
1934
  }
1935
1935
  }
1936
- }), { setOrganizations: Ul } = ca.actions, Gl = (t) => t.organizationReducer.organizations, Ll = p([Gl], (t) => Object.values(t)), ry = (t) => (e) => e.organizationReducer.organizations[t], dy = p(
1937
- [Ll],
1936
+ }), { setOrganizations: Ul } = oa.actions, Gl = (t) => t.organizationReducer.organizations, Bl = p([Gl], (t) => Object.values(t)), ry = (t) => (e) => e.organizationReducer.organizations[t], dy = p(
1937
+ [Bl],
1938
1938
  (t) => A(
1939
1939
  Object.values(t).filter((e) => e.has_access)
1940
1940
  )
1941
- ), Bl = p(
1942
- [ta],
1941
+ ), Ll = p(
1942
+ [ea],
1943
1943
  (t) => Object.values(t).map((e) => e.user)
1944
1944
  ), ly = y(
1945
1945
  p(
1946
- [oa, (t, e) => e],
1946
+ [aa, (t, e) => e],
1947
1947
  (t, e) => A(
1948
1948
  Object.values(t).filter((s) => s.organization_owner === e)
1949
1949
  )
@@ -1953,7 +1953,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1953
1953
  Object.values(t).filter((s) => s.organization_owner === e)
1954
1954
  ))
1955
1955
  ), Nl = p(
1956
- [Bl, Ft],
1956
+ [Ll, Ft],
1957
1957
  (t, e) => qe(
1958
1958
  t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
1959
1959
  )
@@ -1966,10 +1966,10 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1966
1966
  if (n.id === (t == null ? void 0 : t.id))
1967
1967
  return 1;
1968
1968
  const a = s[i.id], o = s[n.id];
1969
- 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) === Ii.ADMIN ? -1 : 1;
1969
+ 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) === vi.ADMIN ? -1 : 1;
1970
1970
  })
1971
1971
  )
1972
- ), Hl = ca.reducer, Wl = (t, e, s) => {
1972
+ ), Hl = oa.reducer, Wl = (t, e, s) => {
1973
1973
  const i = t.uuid ? t : { ...t, uuid: ye() };
1974
1974
  return {
1975
1975
  payload: i,
@@ -1985,13 +1985,13 @@ const Dh = /^.+@.+\..+$/, Fe = F(
1985
1985
  }
1986
1986
  }
1987
1987
  };
1988
- }, fi = {
1988
+ }, pi = {
1989
1989
  deletedRequests: [],
1990
1990
  latestRetryTime: 0
1991
- }, ra = S({
1991
+ }, ca = S({
1992
1992
  name: "outbox",
1993
- initialState: fi,
1994
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fi)),
1993
+ initialState: pi,
1994
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, pi)),
1995
1995
  reducers: {
1996
1996
  // enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
1997
1997
  // Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
@@ -2015,10 +2015,10 @@ const Dh = /^.+@.+\..+$/, Fe = F(
2015
2015
  t.latestRetryTime = e.payload;
2016
2016
  }
2017
2017
  }
2018
- }), my = (t) => t.outboxReducer.deletedRequests, py = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Kl, markForDeletion: fy, markAsDeleted: Yl, _setLatestRetryTime: Jl } = ra.actions, Xl = ra.reducer, ae = F((t) => t.offline_id), yi = ae.getInitialState({}), da = S({
2018
+ }), my = (t) => t.outboxReducer.deletedRequests, py = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Kl, markForDeletion: fy, markAsDeleted: Yl, _setLatestRetryTime: Jl } = ca.actions, Xl = ca.reducer, ae = F((t) => t.offline_id), fi = ae.getInitialState({}), ra = S({
2019
2019
  name: "projectAttachments",
2020
- initialState: yi,
2021
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, yi)),
2020
+ initialState: fi,
2021
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fi)),
2022
2022
  reducers: {
2023
2023
  initializeProjectAttachments: ae.initialize,
2024
2024
  addProjectAttachment: ae.addOne,
@@ -2039,15 +2039,15 @@ const Dh = /^.+@.+\..+$/, Fe = F(
2039
2039
  updateProjectAttachment: Ay,
2040
2040
  updateProjectAttachments: su,
2041
2041
  deleteProjectAttachment: iu,
2042
- deleteProjectAttachments: la
2043
- } = da.actions, nu = (t) => t.projectAttachmentReducer.instances, ua = p(
2042
+ deleteProjectAttachments: da
2043
+ } = ra.actions, nu = (t) => t.projectAttachmentReducer.instances, la = p(
2044
2044
  [nu],
2045
2045
  (t) => Object.values(t)
2046
2046
  ), au = (t) => (e) => e.projectAttachmentReducer.instances[t], ou = y(
2047
- p([ua, (t, e) => e], (t, e) => A(t.filter(({ project: s }) => e === s)))
2047
+ p([la, (t, e) => e], (t, e) => A(t.filter(({ project: s }) => e === s)))
2048
2048
  ), gy = y(
2049
2049
  p(
2050
- [ua, (t, e) => e],
2050
+ [la, (t, e) => e],
2051
2051
  (t, e) => {
2052
2052
  const s = t.filter(({ project: a }) => e === a), i = s.filter(
2053
2053
  // this null check here is necessary, there are cases where file_type is null or undefined
@@ -2059,13 +2059,13 @@ const Dh = /^.+@.+\..+$/, Fe = F(
2059
2059
  return { fileAttachments: i, imageAttachments: n };
2060
2060
  }
2061
2061
  )
2062
- ), cu = da.reducer, oe = F((t) => t.offline_id), Ai = oe.getInitialState({
2062
+ ), cu = ra.reducer, oe = F((t) => t.offline_id), yi = oe.getInitialState({
2063
2063
  activeProjectFileId: null,
2064
2064
  isImportingProjectFile: !1
2065
- }), ha = S({
2065
+ }), ua = S({
2066
2066
  name: "projectFiles",
2067
- initialState: Ai,
2068
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ai)),
2067
+ initialState: yi,
2068
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, yi)),
2069
2069
  reducers: {
2070
2070
  initializeProjectFiles: oe.initialize,
2071
2071
  setProjectFile: oe.setOne,
@@ -2105,7 +2105,7 @@ const Dh = /^.+@.+\..+$/, Fe = F(
2105
2105
  setProjectFiles: by,
2106
2106
  addProjectFile: Sy,
2107
2107
  addProjectFiles: du,
2108
- updateProjectFile: gi,
2108
+ updateProjectFile: Ai,
2109
2109
  updateProjectFiles: Ty,
2110
2110
  deleteProjectFile: lu,
2111
2111
  deleteProjectFiles: uu,
@@ -2114,9 +2114,9 @@ const Dh = /^.+@.+\..+$/, Fe = F(
2114
2114
  setActiveProjectFileId: mu,
2115
2115
  saveActiveProjectFileBounds: pu,
2116
2116
  resetProjectFileObjectUrls: Ry
2117
- } = ha.actions, fu = (t) => t.projectFileReducer.instances, yu = p([fu], (t) => A(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Fy = (t) => (e) => e.projectFileReducer.instances[t], Oy = (t) => t.projectFileReducer.activeProjectFileId, vy = (t) => t.projectFileReducer.isImportingProjectFile, Au = ha.reducer, gu = {
2117
+ } = ua.actions, fu = (t) => t.projectFileReducer.instances, yu = p([fu], (t) => A(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Fy = (t) => (e) => e.projectFileReducer.instances[t], Oy = (t) => t.projectFileReducer.activeProjectFileId, vy = (t) => t.projectFileReducer.isImportingProjectFile, Au = ua.reducer, gu = {
2118
2118
  isRehydrated: !1
2119
- }, ma = S({
2119
+ }, ha = S({
2120
2120
  name: "rehydrated",
2121
2121
  initialState: gu,
2122
2122
  // The `reducers` field lets us define reducers and generate associated actions
@@ -2125,10 +2125,10 @@ const Dh = /^.+@.+\..+$/, Fe = F(
2125
2125
  t.isRehydrated = e.payload;
2126
2126
  }
2127
2127
  }
2128
- }), { setRehydrated: Iy } = ma.actions, wy = (t) => t.rehydratedReducer.isRehydrated, _u = ma.reducer, _e = F((t) => t.offline_id), _i = _e.getInitialState({}), pa = S({
2128
+ }), { setRehydrated: Iy } = ha.actions, wy = (t) => t.rehydratedReducer.isRehydrated, _u = ha.reducer, _e = F((t) => t.offline_id), gi = _e.getInitialState({}), ma = S({
2129
2129
  name: "teams",
2130
- initialState: _i,
2131
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, _i)),
2130
+ initialState: gi,
2131
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, gi)),
2132
2132
  reducers: {
2133
2133
  setTeam: _e.setOne,
2134
2134
  initializeTeams: _e.initialize,
@@ -2136,9 +2136,9 @@ const Dh = /^.+@.+\..+$/, Fe = F(
2136
2136
  updateTeam: _e.updateOne,
2137
2137
  deleteTeam: _e.deleteOne
2138
2138
  }
2139
- }), { setTeam: Te, initializeTeams: bu, addTeam: Su, updateTeam: bi, deleteTeam: Si } = pa.actions, fa = (t) => t.teamReducer.instances, ya = p([fa], (t) => Object.values(t)), Re = (t) => (e) => e.teamReducer.instances[t], Py = y(
2139
+ }), { setTeam: Te, initializeTeams: bu, addTeam: Su, updateTeam: _i, deleteTeam: bi } = ma.actions, pa = (t) => t.teamReducer.instances, fa = p([pa], (t) => Object.values(t)), Re = (t) => (e) => e.teamReducer.instances[t], Py = y(
2140
2140
  p(
2141
- [fa, (t, e) => e],
2141
+ [pa, (t, e) => e],
2142
2142
  (t, e) => {
2143
2143
  const s = [];
2144
2144
  for (const i of e) {
@@ -2150,37 +2150,37 @@ const Dh = /^.+@.+\..+$/, Fe = F(
2150
2150
  )
2151
2151
  ), Ey = y(
2152
2152
  p(
2153
- [ya, (t, e) => e],
2153
+ [fa, (t, e) => e],
2154
2154
  (t, e) => A(t.filter((s) => s.organization === e))
2155
2155
  )
2156
2156
  ), ky = y(
2157
- p([ya, (t, e) => e], (t, e) => A(t.filter((s) => s.members.includes(e))))
2158
- ), Tu = pa.reducer, Ru = {
2157
+ p([fa, (t, e) => e], (t, e) => A(t.filter((s) => s.members.includes(e))))
2158
+ ), Tu = ma.reducer, Ru = {
2159
2159
  version: 0
2160
2160
  }, Fu = S({
2161
2161
  name: "versioning",
2162
2162
  initialState: Ru,
2163
2163
  reducers: {}
2164
2164
  }), Ou = Fu.reducer;
2165
- let Aa;
2165
+ let ya;
2166
2166
  function vu(t) {
2167
- Aa = t;
2167
+ ya = t;
2168
2168
  }
2169
2169
  function je() {
2170
- return Aa;
2170
+ return ya;
2171
2171
  }
2172
- let ga;
2172
+ let Aa;
2173
2173
  function Iu(t) {
2174
- ga = t;
2174
+ Aa = t;
2175
2175
  }
2176
2176
  function wu() {
2177
- return ga;
2177
+ return Aa;
2178
2178
  }
2179
- const _a = {};
2180
- class ba {
2179
+ const ga = {};
2180
+ class _a {
2181
2181
  constructor(e) {
2182
2182
  g(this, "client");
2183
- _a[this.constructor.name] = this, this.client = e;
2183
+ ga[this.constructor.name] = this, this.client = e;
2184
2184
  }
2185
2185
  async enqueueRequest(e) {
2186
2186
  return this.client.enqueueRequest(e, this.host, this.constructor.name);
@@ -2190,21 +2190,21 @@ class ba {
2190
2190
  this.client.store.dispatch(e);
2191
2191
  }
2192
2192
  }
2193
- const Sa = "versioning", Ta = () => Fa.length - 1, Ra = (t) => (t[Sa] = { version: Ta() }, t), Ti = () => Ra({}), Pu = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), Eu = (t) => (e) => {
2193
+ const ba = "versioning", Sa = () => Ra.length - 1, Ta = (t) => (t[ba] = { version: Sa() }, t), Si = () => Ta({}), Pu = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), Eu = (t) => (e) => {
2194
2194
  var s;
2195
- return e === void 0 && (e = {}), ((s = e[Sa]) == null ? void 0 : s.version) === Ta() ? e : t(e);
2196
- }, Fa = [Ra, Ti, Ti, Pu], ku = Object.fromEntries(Fa.map((t, e) => [e, Eu(t)])), Oa = "versioning", qu = {
2195
+ return e === void 0 && (e = {}), ((s = e[ba]) == null ? void 0 : s.version) === Sa() ? e : t(e);
2196
+ }, Ra = [Ta, Si, Si, Pu], ku = Object.fromEntries(Ra.map((t, e) => [e, Eu(t)])), Fa = "versioning", qu = {
2197
2197
  // TODO: attachmentReducer,
2198
- [Oa]: Ou,
2198
+ [Fa]: Ou,
2199
2199
  fileReducer: Or,
2200
- authReducer: Jc,
2201
- categoryReducer: er,
2202
- assetReducer: sc,
2203
- assetAttachmentReducer: _o,
2204
- assetStageCompletionReducer: oc,
2205
- assetStageReducer: uc,
2206
- assetTypeReducer: Kc,
2207
- assetTypeAttachmentReducer: Sc,
2200
+ authReducer: Yc,
2201
+ categoryReducer: Zc,
2202
+ assetReducer: tc,
2203
+ assetAttachmentReducer: go,
2204
+ assetStageCompletionReducer: ac,
2205
+ assetStageReducer: lc,
2206
+ assetTypeReducer: Wc,
2207
+ assetTypeAttachmentReducer: bc,
2208
2208
  issueReducer: Dd,
2209
2209
  issueAttachmentReducer: Od,
2210
2210
  issueTypeReducer: rl,
@@ -2225,28 +2225,28 @@ const Sa = "versioning", Ta = () => Fa.length - 1, Ra = (t) => (t[Sa] = { versio
2225
2225
  emailDomainsReducer: Sr,
2226
2226
  licenseReducer: _l,
2227
2227
  documentsReducer: pr,
2228
- documentAttachmentReducer: dr,
2228
+ documentAttachmentReducer: rr,
2229
2229
  teamReducer: Tu,
2230
- agentsReducer: ho,
2230
+ agentsReducer: uo,
2231
2231
  issueCommentReducer: Pd,
2232
2232
  issueUpdateReducer: yl,
2233
2233
  geoImageReducer: ld,
2234
2234
  issueAssociationReducer: Ad,
2235
2235
  issueTypeFieldsReducer: Jd,
2236
- issueTypeFieldValuesReducer: Bd,
2236
+ issueTypeFieldValuesReducer: Ld,
2237
2237
  issueTypeFieldsAttachmentReducer: Ud,
2238
2238
  issueTypeFieldValuesAttachmentReducer: sl,
2239
- assetTypeFieldsReducer: Dc,
2240
- assetTypeFieldValuesReducer: Hc,
2241
- assetTypeFieldsAttachmentReducer: wc,
2242
- assetTypeFieldValuesAttachmentReducer: Vc,
2243
- assetProcedureReducer: Qo,
2244
- assetProcedureInstanceReducer: Yo,
2245
- assetProcedureFieldsReducer: qo,
2239
+ assetTypeFieldsReducer: jc,
2240
+ assetTypeFieldValuesReducer: Nc,
2241
+ assetTypeFieldsAttachmentReducer: Ic,
2242
+ assetTypeFieldValuesAttachmentReducer: $c,
2243
+ assetProcedureReducer: Xo,
2244
+ assetProcedureInstanceReducer: Ko,
2245
+ assetProcedureFieldsReducer: ko,
2246
2246
  assetProcedureFieldValuesReducer: Bo,
2247
- assetProcedureFieldsAttachmentReducer: vo,
2248
- assetProcedureFieldValuesAttachmentReducer: zo
2249
- }, Ri = ja(qu), ju = "RESET", qy = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Ri(void 0, e) : Ri(t, e);
2247
+ assetProcedureFieldsAttachmentReducer: Oo,
2248
+ assetProcedureFieldValuesAttachmentReducer: Co
2249
+ }, Ti = qa(qu), ju = "RESET", qy = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Ti(void 0, e) : Ti(t, e);
2250
2250
  let tt = null;
2251
2251
  function be() {
2252
2252
  const t = je();
@@ -2281,13 +2281,13 @@ const zu = {
2281
2281
  effect: Cu,
2282
2282
  // Casting needed because we are saving FullOfflineAction objects, not just OfflineAction objects,
2283
2283
  // but redux-offline does not know this.
2284
- discard: Pa,
2284
+ discard: wa,
2285
2285
  returnPromises: !0,
2286
2286
  persistCallback: Du,
2287
2287
  retry: Wu,
2288
2288
  // Modify the configuration of the offline store to use localforage
2289
2289
  // which uses IndexedDB by default (persists even on mobile when installed as a PWA, unlike localStorage)
2290
- persistOptions: { storage: Ca },
2290
+ persistOptions: { storage: xa },
2291
2291
  // TODO: custom enqueue implementation to take care of intelligently cancelling "create/delete same issue",
2292
2292
  // and custom dequeue for e.g. if user insists on removing a failed a "create issue", then remove the "edit
2293
2293
  // that same issue"
@@ -2298,7 +2298,7 @@ const zu = {
2298
2298
  // Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
2299
2299
  peek: (...t) => Hu(...t)
2300
2300
  }
2301
- }, $u = za(ku, Oa), jy = Da(xa(zu), $u);
2301
+ }, $u = Ca(ku, Fa), jy = ja(Ma(zu), $u);
2302
2302
  function Vu(t) {
2303
2303
  function e(s) {
2304
2304
  return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
@@ -2310,8 +2310,8 @@ function Vu(t) {
2310
2310
  if (s.response && e(s.response.response)) return s.response.response;
2311
2311
  }
2312
2312
  }
2313
- async function va(t, e) {
2314
- const s = _a[t.meta.offline.effect.serviceName];
2313
+ async function Oa(t, e) {
2314
+ const s = ga[t.meta.offline.effect.serviceName];
2315
2315
  if (!s)
2316
2316
  throw new Error(`Service ${t.meta.offline.effect.serviceName} not found`);
2317
2317
  const i = s instanceof O;
@@ -2341,7 +2341,7 @@ async function va(t, e) {
2341
2341
  return I.set("x-amz-checksum-sha1", Se).field({ ...r, ...q.fields }).attach("file", v);
2342
2342
  }
2343
2343
  return I.send(r);
2344
- }, Ea = {
2344
+ }, Pa = {
2345
2345
  [d.GET]: () => b ? Ae.get(_.toString()).responseType("blob") : Ae.get(_.toString()),
2346
2346
  [d.POST]: () => {
2347
2347
  const I = Ae.post(_.toString());
@@ -2360,7 +2360,7 @@ async function va(t, e) {
2360
2360
  return E(I);
2361
2361
  }
2362
2362
  }[c];
2363
- let de = Ea();
2363
+ let de = Pa();
2364
2364
  if (f && i) {
2365
2365
  const I = s.auth.getAuthHeader();
2366
2366
  de = de.set("Authorization", I);
@@ -2372,7 +2372,7 @@ async function va(t, e) {
2372
2372
  const q = Vu(I), Se = q == null ? void 0 : q.status;
2373
2373
  if (i && Se === 401)
2374
2374
  return await s.auth.handleUnauthorized(de, q), de.query(l);
2375
- throw new k({ response: q, innerError: I, discard: wa.includes(Se) });
2375
+ throw new k({ response: q, innerError: I, discard: Ia.includes(Se) });
2376
2376
  }
2377
2377
  }
2378
2378
  class Uu {
@@ -2391,7 +2391,7 @@ class Uu {
2391
2391
  return this._all;
2392
2392
  }
2393
2393
  }
2394
- class Ia {
2394
+ class va {
2395
2395
  constructor() {
2396
2396
  g(this, "next");
2397
2397
  this.next = null;
@@ -2406,27 +2406,27 @@ class Ia {
2406
2406
  if (console.debug("Middleware finished. Performing request:", e), !je()) throw new Error("Client store not set");
2407
2407
  const i = wu();
2408
2408
  if (!i) throw new Error("Client SDK not set");
2409
- return va(e, i);
2409
+ return Oa(e, i);
2410
2410
  }
2411
2411
  }
2412
2412
  }
2413
- class Gu extends Ia {
2413
+ class Gu extends va {
2414
2414
  async run(e) {
2415
2415
  return super.run(e);
2416
2416
  }
2417
2417
  }
2418
- class Lu extends Ia {
2418
+ class Bu extends va {
2419
2419
  async run(e) {
2420
2420
  return super.run(e);
2421
2421
  }
2422
2422
  }
2423
- const Bu = new Gu().then(new Lu()).compile();
2423
+ const Lu = new Gu().then(new Bu()).compile();
2424
2424
  function Nu(t) {
2425
2425
  var e;
2426
- return (e = Bu[0]) == null ? void 0 : e.run(t);
2426
+ return (e = Lu[0]) == null ? void 0 : e.run(t);
2427
2427
  }
2428
- const wa = [400, 409, 403, 404, 405, 500];
2429
- function Pa(t, e, s = 0) {
2428
+ const Ia = [400, 409, 403, 404, 405, 500];
2429
+ function wa(t, e, s = 0) {
2430
2430
  var c;
2431
2431
  if (console.debug(
2432
2432
  "Considering discarding request due to error:",
@@ -2460,7 +2460,7 @@ Retries:`,
2460
2460
  return console.debug("Discarding request due to deletion:", e), r();
2461
2461
  if (t instanceof k) {
2462
2462
  const l = t.status || ((c = t.response) == null ? void 0 : c.status);
2463
- if (l || console.warn("Error has no status code:", t), l !== void 0 && wa.includes(l)) {
2463
+ if (l || console.warn("Error has no status code:", t), l !== void 0 && Ia.includes(l)) {
2464
2464
  console.warn("Discarding request due to error:", t, `
2465
2465
  Action:`, e);
2466
2466
  const h = be();
@@ -2480,9 +2480,9 @@ function Hu(t, e, s) {
2480
2480
  return (i = be()) == null ? void 0 : i.peek();
2481
2481
  }
2482
2482
  function Wu(t, e) {
2483
- return je().dispatch(Jl((/* @__PURE__ */ new Date()).getTime())), Ya;
2483
+ return je().dispatch(Jl((/* @__PURE__ */ new Date()).getTime())), Ka;
2484
2484
  }
2485
- const ke = "An unknown error occurred", Ku = 500, Fi = ["non_field_errors", "detail"];
2485
+ const ke = "An unknown error occurred", Ku = 500, Ri = ["non_field_errors", "detail"];
2486
2486
  function Yu(t, e) {
2487
2487
  let s;
2488
2488
  if (t != null && t.body)
@@ -2494,7 +2494,7 @@ function Yu(t, e) {
2494
2494
  s = i.message;
2495
2495
  else
2496
2496
  try {
2497
- s = Object.entries(i).map(([n, a]) => typeof a == "string" ? Fi.includes(n) ? a : `${n}: ${a}` : Array.isArray(a) ? Fi.includes(n) ? a.join(`
2497
+ s = Object.entries(i).map(([n, a]) => typeof a == "string" ? Ri.includes(n) ? a : `${n}: ${a}` : Array.isArray(a) ? Ri.includes(n) ? a.join(`
2498
2498
  `) : a.map((o) => `${n}: ${o}`).join(`
2499
2499
  `) : `${n}: ${JSON.stringify(a)}`).join(`
2500
2500
  `);
@@ -2531,7 +2531,7 @@ class Dy {
2531
2531
  });
2532
2532
  }
2533
2533
  _enqueueRequest(e, s, i) {
2534
- const n = new Ja(), a = { ...e, BASE_URL: s, serviceName: i };
2534
+ const n = new Ya(), a = { ...e, BASE_URL: s, serviceName: i };
2535
2535
  if (e.immediate) {
2536
2536
  const o = {
2537
2537
  ...a,
@@ -2550,10 +2550,10 @@ class Dy {
2550
2550
  }
2551
2551
  }
2552
2552
  };
2553
- va(r, this).then((u) => {
2553
+ Oa(r, this).then((u) => {
2554
2554
  n.resolve(u.body);
2555
2555
  }).catch((u) => {
2556
- Pa(u, r), u instanceof Error ? n.reject(u) : n.reject(new Error((u ?? ke).toString()));
2556
+ wa(u, r), u instanceof Error ? n.reject(u) : n.reject(new Error((u ?? ke).toString()));
2557
2557
  });
2558
2558
  } else {
2559
2559
  const o = this.store.dispatch(
@@ -2591,7 +2591,7 @@ class Ie {
2591
2591
  constructor() {
2592
2592
  g(this, "graph");
2593
2593
  g(this, "requestAttemptCounter");
2594
- this.graph = new $a(), this.requestAttemptCounter = {};
2594
+ this.graph = new za(), this.requestAttemptCounter = {};
2595
2595
  }
2596
2596
  /**
2597
2597
  * Used when the app is loaded. Reconstructs the dependency graph based on an outbox from the redux-offline store.
@@ -2733,7 +2733,7 @@ const My = (t, e) => {
2733
2733
  const s = new e(t);
2734
2734
  return Iu(s), vu(t), s;
2735
2735
  };
2736
- class O extends ba {
2736
+ class O extends _a {
2737
2737
  constructor(s, i) {
2738
2738
  super(s);
2739
2739
  g(this, "auth");
@@ -2752,7 +2752,7 @@ class xy extends O {
2752
2752
  },
2753
2753
  blockers: ["prompt"],
2754
2754
  blocks: ["prompt"]
2755
- }).then((i) => (this.dispatch(ro(i)), i));
2755
+ }).then((i) => (this.dispatch(co(i)), i));
2756
2756
  }
2757
2757
  async continueConversation(e, s, i) {
2758
2758
  return this.enqueueRequest({
@@ -2767,7 +2767,7 @@ class xy extends O {
2767
2767
  blocks: ["prompt"],
2768
2768
  queryParams: { conversation_id: s }
2769
2769
  }).then((n) => {
2770
- this.dispatch(uo(n));
2770
+ this.dispatch(lo(n));
2771
2771
  });
2772
2772
  }
2773
2773
  async fetchDetails(e) {
@@ -2778,7 +2778,7 @@ class xy extends O {
2778
2778
  blockers: ["conversation"],
2779
2779
  blocks: ["conversation"]
2780
2780
  }).then((s) => {
2781
- this.dispatch(lo(s));
2781
+ this.dispatch(ro(s));
2782
2782
  });
2783
2783
  }
2784
2784
  async rate(e, s) {
@@ -2799,7 +2799,7 @@ class xy extends O {
2799
2799
  blockers: ["agent-conversations"],
2800
2800
  blocks: ["agent-conversations"]
2801
2801
  });
2802
- this.dispatch(co(s));
2802
+ this.dispatch(oo(s));
2803
2803
  }
2804
2804
  }
2805
2805
  class P extends O {
@@ -2933,12 +2933,12 @@ class Cy extends De {
2933
2933
  g(this, "name", "Asset Attachment");
2934
2934
  g(this, "url", "/asset-attachments");
2935
2935
  g(this, "initializeAttachments", Et);
2936
- g(this, "addAttachments", Di);
2937
- g(this, "updateAttachments", po);
2938
- g(this, "removeAttachments", Mi);
2939
- g(this, "removeAttachment", fo);
2940
- g(this, "setAttachment", mo);
2941
- g(this, "selectAttachment", Ao);
2936
+ g(this, "addAttachments", ji);
2937
+ g(this, "updateAttachments", mo);
2938
+ g(this, "removeAttachments", Di);
2939
+ g(this, "removeAttachment", po);
2940
+ g(this, "setAttachment", ho);
2941
+ g(this, "selectAttachment", yo);
2942
2942
  }
2943
2943
  buildOfflineAttachment(s) {
2944
2944
  return R({
@@ -3006,7 +3006,7 @@ class zy extends P {
3006
3006
  };
3007
3007
  o.push(T);
3008
3008
  }
3009
- this.dispatch(So(a));
3009
+ this.dispatch(bo(a));
3010
3010
  const r = this.enqueueRequest({
3011
3011
  description: "Add asset procedure fields attachments",
3012
3012
  method: d.POST,
@@ -3020,10 +3020,10 @@ class zy extends P {
3020
3020
  blocks: a.map((c) => c.offline_id)
3021
3021
  });
3022
3022
  return r.then((c) => {
3023
- this.processPresignedUrls(c.presigned_urls), this.dispatch(To(c.attachments));
3023
+ this.processPresignedUrls(c.presigned_urls), this.dispatch(So(c.attachments));
3024
3024
  }).catch(() => {
3025
3025
  this.dispatch(
3026
- Ro(
3026
+ To(
3027
3027
  a.map((c) => c.offline_id)
3028
3028
  )
3029
3029
  );
@@ -3040,7 +3040,7 @@ class zy extends P {
3040
3040
  blockers: [],
3041
3041
  blocks: []
3042
3042
  });
3043
- this.dispatch(bo(s));
3043
+ this.dispatch(_o(s));
3044
3044
  }
3045
3045
  }
3046
3046
  class $y extends O {
@@ -3051,7 +3051,7 @@ class $y extends O {
3051
3051
  created_by: i,
3052
3052
  submitted_at: n
3053
3053
  });
3054
- this.dispatch(wo(a));
3054
+ this.dispatch(Io(a));
3055
3055
  const o = this.enqueueRequest({
3056
3056
  description: "Add Asset Procedure Fields",
3057
3057
  method: d.POST,
@@ -3061,9 +3061,9 @@ class $y extends O {
3061
3061
  blocks: [a.offline_id]
3062
3062
  });
3063
3063
  return o.then((u) => {
3064
- this.dispatch(Po(u));
3064
+ this.dispatch(wo(u));
3065
3065
  }).catch((u) => {
3066
- throw this.dispatch(Eo(a.offline_id)), u;
3066
+ throw this.dispatch(Po(a.offline_id)), u;
3067
3067
  }), [a, o];
3068
3068
  }
3069
3069
  async refreshStore(e) {
@@ -3077,7 +3077,7 @@ class $y extends O {
3077
3077
  blockers: [],
3078
3078
  blocks: []
3079
3079
  });
3080
- this.dispatch(Io(s));
3080
+ this.dispatch(vo(s));
3081
3081
  }
3082
3082
  }
3083
3083
  function Me(t, e) {
@@ -3138,7 +3138,7 @@ class Vy extends P {
3138
3138
  return Promise.all(u).then((l) => {
3139
3139
  for (const m of l) this.processPresignedUrls(m.presigned_urls);
3140
3140
  const h = l.flatMap((m) => m.attachments);
3141
- this.dispatch(Do(h));
3141
+ this.dispatch(jo(h));
3142
3142
  }).catch((l) => {
3143
3143
  throw this.dispatch(
3144
3144
  ct(
@@ -3151,7 +3151,7 @@ class Vy extends P {
3151
3151
  ];
3152
3152
  }
3153
3153
  async bulkDelete(e) {
3154
- const { store: s } = this.client, i = s.getState(), n = xo(e)(i);
3154
+ const { store: s } = this.client, i = s.getState(), n = Mo(e)(i);
3155
3155
  this.dispatch(ct(e));
3156
3156
  try {
3157
3157
  await this.enqueueRequest({
@@ -3177,7 +3177,7 @@ class Vy extends P {
3177
3177
  blockers: [],
3178
3178
  blocks: []
3179
3179
  });
3180
- this.dispatch(jo(s));
3180
+ this.dispatch(qo(s));
3181
3181
  }
3182
3182
  }
3183
3183
  const Ju = (t) => Array.isArray(t) && t[0] instanceof File, we = (t) => {
@@ -3193,6 +3193,7 @@ class Uy extends P {
3193
3193
  var o;
3194
3194
  const { store: s } = this.client, i = s.getState(), n = R({
3195
3195
  ...e,
3196
+ index: null,
3196
3197
  created_by: (o = i.userReducer.currentUser) == null ? void 0 : o.id,
3197
3198
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
3198
3199
  }), a = this.enqueueRequest({
@@ -3208,12 +3209,12 @@ class Uy extends P {
3208
3209
  ],
3209
3210
  blocks: [n.offline_id]
3210
3211
  });
3211
- return this.dispatch(Ds(n)), a.then((r) => (this.dispatch(Ze(r)), r)).catch(() => {
3212
- this.dispatch(Ms(n.offline_id));
3212
+ return this.dispatch(js(n)), a.then((r) => (this.dispatch(Ze(r)), r)).catch(() => {
3213
+ this.dispatch(Ds(n.offline_id));
3213
3214
  }), [n, a];
3214
3215
  }
3215
3216
  update(e) {
3216
- const { store: s } = this.client, i = s.getState(), n = xs(e.offline_id)(i);
3217
+ const { store: s } = this.client, i = s.getState(), n = Ms(e.offline_id)(i);
3217
3218
  if (!n)
3218
3219
  throw new Error(`Expected submission with offline_id ${e.offline_id} to exist`);
3219
3220
  const a = {
@@ -3236,11 +3237,11 @@ class Uy extends P {
3236
3237
  }), [a, o];
3237
3238
  }
3238
3239
  async delete(e) {
3239
- const { store: s } = this.client, i = s.getState(), n = xs(e)(i);
3240
+ const { store: s } = this.client, i = s.getState(), n = Ms(e)(i);
3240
3241
  if (!n)
3241
3242
  throw new Error(`Expected submission with offline_id ${e} to exist`);
3242
3243
  const a = Kr(e)(i);
3243
- this.dispatch(Ms(e)), this.dispatch(ut(a.map((o) => o.offline_id)));
3244
+ this.dispatch(Ds(e)), this.dispatch(ut(a.map((o) => o.offline_id)));
3244
3245
  try {
3245
3246
  return await this.enqueueRequest({
3246
3247
  description: "Delete user form submissions",
@@ -3250,7 +3251,7 @@ class Uy extends P {
3250
3251
  blocks: []
3251
3252
  });
3252
3253
  } catch (o) {
3253
- throw this.dispatch(Ds(n)), this.dispatch(lt(a)), o;
3254
+ throw this.dispatch(js(n)), this.dispatch(lt(a)), o;
3254
3255
  }
3255
3256
  }
3256
3257
  async refreshStore(e) {
@@ -3313,7 +3314,7 @@ class Gy extends O {
3313
3314
  field_values: h
3314
3315
  });
3315
3316
  }
3316
- this.dispatch(Vo(a));
3317
+ this.dispatch($o(a));
3317
3318
  const u = [];
3318
3319
  for (const l of r) {
3319
3320
  const h = l.field_values.map((_) => _.asset), m = l.field_values.map((_) => _.fields_revision), f = l.field_values.map((_) => _.asset_procedure_instance), b = l.field_values.map((_) => _.offline_id), T = this.enqueueRequest({
@@ -3327,10 +3328,10 @@ class Gy extends O {
3327
3328
  u.push(T);
3328
3329
  }
3329
3330
  return Promise.all(u).then((l) => {
3330
- this.dispatch(Uo(l.flat()));
3331
+ this.dispatch(Vo(l.flat()));
3331
3332
  }).catch(() => {
3332
3333
  this.dispatch(
3333
- Go(a.map((l) => l.offline_id))
3334
+ Uo(a.map((l) => l.offline_id))
3334
3335
  );
3335
3336
  }), [a, u];
3336
3337
  }
@@ -3376,7 +3377,7 @@ class Gy extends O {
3376
3377
  const { store: s } = this.client, i = s.getState(), n = Ct(e)(i);
3377
3378
  if (!n)
3378
3379
  throw new Error(`Expected submission with offline_id ${e} to exist`);
3379
- const a = Co(e)(i);
3380
+ const a = xo(e)(i);
3380
3381
  this.dispatch(xt(e)), this.dispatch(
3381
3382
  ct(a.map((o) => o.offline_id))
3382
3383
  );
@@ -3403,13 +3404,14 @@ class Gy extends O {
3403
3404
  blockers: [],
3404
3405
  blocks: []
3405
3406
  });
3406
- this.dispatch($o(s));
3407
+ this.dispatch(zo(s));
3407
3408
  }
3408
3409
  }
3409
- class Ly extends O {
3410
+ class By extends O {
3410
3411
  add(e) {
3411
3412
  const { store: s } = this.client, i = s.getState().userReducer.currentUser.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
3412
3413
  ...e,
3414
+ index: null,
3413
3415
  created_by: i,
3414
3416
  submitted_at: n
3415
3417
  });
@@ -3479,17 +3481,17 @@ class Ly extends O {
3479
3481
  blockers: [],
3480
3482
  blocks: []
3481
3483
  });
3482
- this.dispatch(No(s));
3484
+ this.dispatch(Lo(s));
3483
3485
  }
3484
3486
  }
3485
- class By extends O {
3487
+ class Ly extends O {
3486
3488
  add(e) {
3487
3489
  const { store: s } = this.client, i = s.getState().userReducer.currentUser.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
3488
3490
  ...e,
3489
3491
  created_by: i,
3490
3492
  submitted_at: n
3491
3493
  });
3492
- this.dispatch(Lt(a));
3494
+ this.dispatch(Bt(a));
3493
3495
  const o = this.enqueueRequest({
3494
3496
  description: "Create asset procedure",
3495
3497
  method: d.POST,
@@ -3504,7 +3506,7 @@ class By extends O {
3504
3506
  return o.then((r) => {
3505
3507
  this.dispatch($e(r));
3506
3508
  }).catch(() => {
3507
- this.dispatch(Bt(a.offline_id));
3509
+ this.dispatch(Lt(a.offline_id));
3508
3510
  }), [a, o];
3509
3511
  }
3510
3512
  update(e) {
@@ -3539,15 +3541,15 @@ class By extends O {
3539
3541
  const { store: s } = this.client, i = s.getState(), n = Nt(e)(i);
3540
3542
  if (!n)
3541
3543
  throw new Error(`Expected asset procedure with offline_id ${e} to exist`);
3542
- const a = Ko(e)(i);
3543
- return this.dispatch(Bt(e)), this.dispatch(Wo(a.map((o) => o.offline_id))), this.enqueueRequest({
3544
+ const a = Wo(e)(i);
3545
+ return this.dispatch(Lt(e)), this.dispatch(Ho(a.map((o) => o.offline_id))), this.enqueueRequest({
3544
3546
  description: "Delete asset procedure",
3545
3547
  method: d.DELETE,
3546
3548
  url: `/asset-procedures/${e}/`,
3547
3549
  blockers: [e],
3548
3550
  blocks: []
3549
3551
  }).catch((o) => {
3550
- throw this.dispatch(Lt(n)), this.dispatch(Ho(a)), o;
3552
+ throw this.dispatch(Bt(n)), this.dispatch(No(a)), o;
3551
3553
  });
3552
3554
  }
3553
3555
  async refreshStore(e) {
@@ -3561,7 +3563,7 @@ class By extends O {
3561
3563
  blockers: [],
3562
3564
  blocks: []
3563
3565
  });
3564
- this.dispatch(Jo(s));
3566
+ this.dispatch(Yo(s));
3565
3567
  }
3566
3568
  }
3567
3569
  class Ny extends O {
@@ -3572,6 +3574,7 @@ class Ny extends O {
3572
3574
  throw new Error("Asset must have either a canvas_marker or geo_marker");
3573
3575
  const i = s.getState().userReducer.currentUser.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
3574
3576
  ...e,
3577
+ index: null,
3575
3578
  created_by: i,
3576
3579
  submitted_at: n
3577
3580
  });
@@ -3618,10 +3621,10 @@ class Ny extends O {
3618
3621
  async remove(e) {
3619
3622
  const { store: s } = this.client, i = s.getState(), n = Yt(e)(i);
3620
3623
  if (!n) throw new Error(`No asset with id ${e} found in the store`);
3621
- const a = go(e)(i), o = ed(e)(i), r = yd(e)(i);
3624
+ const a = Ao(e)(i), o = ed(e)(i), r = yd(e)(i);
3622
3625
  if (this.dispatch(Kt(e)), a.length > 0) {
3623
3626
  const u = a.map(({ offline_id: c }) => c);
3624
- this.dispatch(Mi(u));
3627
+ this.dispatch(Di(u));
3625
3628
  }
3626
3629
  if (o.length > 0) {
3627
3630
  const u = o.map(({ offline_id: c }) => c);
@@ -3629,7 +3632,7 @@ class Ny extends O {
3629
3632
  }
3630
3633
  if (r.length > 0) {
3631
3634
  const u = r.map(({ offline_id: c }) => c);
3632
- this.dispatch(xn(u));
3635
+ this.dispatch(Mn(u));
3633
3636
  }
3634
3637
  return this.enqueueRequest({
3635
3638
  description: "Delete asset",
@@ -3638,7 +3641,7 @@ class Ny extends O {
3638
3641
  blockers: [e],
3639
3642
  blocks: []
3640
3643
  }).catch((u) => {
3641
- throw this.dispatch(Wt(n)), this.dispatch(Di(a)), this.dispatch(_t(o)), this.dispatch(Mn(r)), u;
3644
+ throw this.dispatch(Wt(n)), this.dispatch(ji(a)), this.dispatch(_t(o)), this.dispatch(Dn(r)), u;
3642
3645
  });
3643
3646
  }
3644
3647
  bulkAdd(e, s, i, n) {
@@ -3673,7 +3676,7 @@ class Ny extends O {
3673
3676
  }
3674
3677
  return Promise.all(u).then((l) => {
3675
3678
  const h = l.flat();
3676
- this.dispatch(Ji(h));
3679
+ this.dispatch(Yi(h));
3677
3680
  }), u;
3678
3681
  }
3679
3682
  async refreshStore(e) {
@@ -3687,7 +3690,7 @@ class Ny extends O {
3687
3690
  blockers: [],
3688
3691
  blocks: []
3689
3692
  });
3690
- this.dispatch(Zo(s));
3693
+ this.dispatch(Qo(s));
3691
3694
  }
3692
3695
  }
3693
3696
  class Hy extends O {
@@ -3713,13 +3716,13 @@ class Hy extends O {
3713
3716
  blocks: [a.offline_id]
3714
3717
  });
3715
3718
  return o.then((r) => {
3716
- this.dispatch(nc(r));
3719
+ this.dispatch(ic(r));
3717
3720
  }).catch(() => {
3718
3721
  this.dispatch(Zt(a.offline_id));
3719
3722
  }), [a, o];
3720
3723
  }
3721
3724
  delete(e) {
3722
- const { store: s } = this.client, i = cc(e)(s.getState());
3725
+ const { store: s } = this.client, i = oc(e)(s.getState());
3723
3726
  if (!i)
3724
3727
  throw new Error(`Expected asset stage completion with id ${e} to exist`);
3725
3728
  this.dispatch(Zt(e));
@@ -3757,13 +3760,13 @@ class Hy extends O {
3757
3760
  blocks: r
3758
3761
  });
3759
3762
  return u.then((c) => {
3760
- this.dispatch(ac(c));
3763
+ this.dispatch(nc(c));
3761
3764
  }).catch(() => {
3762
3765
  this.dispatch(es(r));
3763
3766
  }), [o, u];
3764
3767
  }
3765
3768
  bulkDelete(e) {
3766
- const { store: s } = this.client, i = rc(e)(s.getState());
3769
+ const { store: s } = this.client, i = cc(e)(s.getState());
3767
3770
  this.dispatch(es(e));
3768
3771
  const n = this.enqueueRequest({
3769
3772
  description: "Deleting asset stage completions",
@@ -3790,7 +3793,7 @@ class Hy extends O {
3790
3793
  blockers: [],
3791
3794
  blocks: []
3792
3795
  });
3793
- this.dispatch(ic(s));
3796
+ this.dispatch(sc(s));
3794
3797
  }
3795
3798
  }
3796
3799
  class Wy extends O {
@@ -3848,7 +3851,7 @@ class Wy extends O {
3848
3851
  }), n;
3849
3852
  }
3850
3853
  update(e) {
3851
- const { store: s } = this.client, i = hc(e.offline_id)(s.getState());
3854
+ const { store: s } = this.client, i = uc(e.offline_id)(s.getState());
3852
3855
  if (!i) throw new Error(`No asset stage with id ${e.offline_id} found in the store`);
3853
3856
  const n = {
3854
3857
  ...i,
@@ -3871,7 +3874,7 @@ class Wy extends O {
3871
3874
  return a.then((o) => {
3872
3875
  this.dispatch(is(o));
3873
3876
  }).catch(() => {
3874
- this.dispatch(lc(i));
3877
+ this.dispatch(dc(i));
3875
3878
  }), [n, a];
3876
3879
  }
3877
3880
  async refreshStore(e) {
@@ -3885,7 +3888,7 @@ class Wy extends O {
3885
3888
  blockers: [],
3886
3889
  blocks: []
3887
3890
  });
3888
- this.dispatch(dc(s));
3891
+ this.dispatch(rc(s));
3889
3892
  }
3890
3893
  }
3891
3894
  class Ky extends De {
@@ -3893,12 +3896,12 @@ class Ky extends De {
3893
3896
  super(...arguments);
3894
3897
  g(this, "name", "Asset Type Attachment");
3895
3898
  g(this, "url", "/asset-type-attachments");
3896
- g(this, "addAttachments", nn);
3897
- g(this, "updateAttachments", yc);
3898
- g(this, "removeAttachments", an);
3899
- g(this, "removeAttachment", Ac);
3900
- g(this, "setAttachment", fc);
3901
- g(this, "selectAttachment", _c);
3899
+ g(this, "addAttachments", sn);
3900
+ g(this, "updateAttachments", fc);
3901
+ g(this, "removeAttachments", nn);
3902
+ g(this, "removeAttachment", yc);
3903
+ g(this, "setAttachment", pc);
3904
+ g(this, "selectAttachment", gc);
3902
3905
  }
3903
3906
  buildOfflineAttachment(s) {
3904
3907
  return R({
@@ -3935,7 +3938,7 @@ class Ky extends De {
3935
3938
  blocks: [],
3936
3939
  blockers: []
3937
3940
  });
3938
- this.dispatch(pc(i));
3941
+ this.dispatch(mc(i));
3939
3942
  }
3940
3943
  }
3941
3944
  class Yy extends P {
@@ -3966,7 +3969,7 @@ class Yy extends P {
3966
3969
  };
3967
3970
  o.push(T);
3968
3971
  }
3969
- this.dispatch(Rc(a));
3972
+ this.dispatch(Tc(a));
3970
3973
  const r = this.enqueueRequest({
3971
3974
  description: "Add asset type fields attachments",
3972
3975
  method: d.POST,
@@ -3980,10 +3983,10 @@ class Yy extends P {
3980
3983
  blocks: a.map((c) => c.offline_id)
3981
3984
  });
3982
3985
  return r.then((c) => {
3983
- this.processPresignedUrls(c.presigned_urls), this.dispatch(Fc(c.attachments));
3986
+ this.processPresignedUrls(c.presigned_urls), this.dispatch(Rc(c.attachments));
3984
3987
  }).catch(() => {
3985
3988
  this.dispatch(
3986
- Oc(
3989
+ Fc(
3987
3990
  a.map((c) => c.offline_id)
3988
3991
  )
3989
3992
  );
@@ -4000,7 +4003,7 @@ class Yy extends P {
4000
4003
  blockers: [e.toString()],
4001
4004
  blocks: []
4002
4005
  });
4003
- this.dispatch(Tc(s));
4006
+ this.dispatch(Sc(s));
4004
4007
  }
4005
4008
  }
4006
4009
  class Jy extends O {
@@ -4011,7 +4014,7 @@ class Jy extends O {
4011
4014
  created_by: i,
4012
4015
  submitted_at: n
4013
4016
  });
4014
- this.dispatch(Ec(a));
4017
+ this.dispatch(Pc(a));
4015
4018
  const o = this.enqueueRequest({
4016
4019
  description: "Add Asset Type Fields",
4017
4020
  method: d.POST,
@@ -4021,9 +4024,9 @@ class Jy extends O {
4021
4024
  blocks: [a.offline_id]
4022
4025
  });
4023
4026
  return o.then((u) => {
4024
- this.dispatch(kc(u));
4027
+ this.dispatch(Ec(u));
4025
4028
  }).catch((u) => {
4026
- throw this.dispatch(qc(a.offline_id)), u;
4029
+ throw this.dispatch(kc(a.offline_id)), u;
4027
4030
  }), [a, o];
4028
4031
  }
4029
4032
  async refreshStore(e) {
@@ -4037,7 +4040,7 @@ class Jy extends O {
4037
4040
  blockers: [],
4038
4041
  blocks: []
4039
4042
  });
4040
- this.dispatch(Pc(s));
4043
+ this.dispatch(wc(s));
4041
4044
  }
4042
4045
  }
4043
4046
  class Xy extends P {
@@ -4088,7 +4091,7 @@ class Xy extends P {
4088
4091
  return Promise.all(u).then((l) => {
4089
4092
  for (const m of l) this.processPresignedUrls(m.presigned_urls);
4090
4093
  const h = l.flatMap((m) => m.attachments);
4091
- this.dispatch(xc(h));
4094
+ this.dispatch(Mc(h));
4092
4095
  }).catch((l) => {
4093
4096
  throw this.dispatch(
4094
4097
  dt(
@@ -4101,7 +4104,7 @@ class Xy extends P {
4101
4104
  ];
4102
4105
  }
4103
4106
  async bulkDelete(e) {
4104
- const { store: s } = this.client, i = s.getState(), n = zc(e)(i);
4107
+ const { store: s } = this.client, i = s.getState(), n = Cc(e)(i);
4105
4108
  this.dispatch(dt(e));
4106
4109
  try {
4107
4110
  await this.enqueueRequest({
@@ -4127,7 +4130,7 @@ class Xy extends P {
4127
4130
  blockers: [],
4128
4131
  blocks: []
4129
4132
  });
4130
- this.dispatch(Mc(s));
4133
+ this.dispatch(Dc(s));
4131
4134
  }
4132
4135
  }
4133
4136
  class Qy extends O {
@@ -4175,7 +4178,7 @@ class Qy extends O {
4175
4178
  field_values: h
4176
4179
  });
4177
4180
  }
4178
- this.dispatch(Gc(a));
4181
+ this.dispatch(Uc(a));
4179
4182
  const u = [];
4180
4183
  for (const l of r) {
4181
4184
  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({
@@ -4189,7 +4192,7 @@ class Qy extends O {
4189
4192
  u.push(b);
4190
4193
  }
4191
4194
  return Promise.all(u).then((l) => {
4192
- this.dispatch(Lc(l.flat()));
4195
+ this.dispatch(Gc(l.flat()));
4193
4196
  }).catch(() => {
4194
4197
  this.dispatch(Bc(a.map((l) => l.offline_id)));
4195
4198
  }), [a, u];
@@ -4225,7 +4228,7 @@ class Qy extends O {
4225
4228
  const { store: s } = this.client, i = s.getState(), n = ms(e)(i);
4226
4229
  if (!n)
4227
4230
  throw new Error(`Expected submission with offline_id ${e} to exist`);
4228
- const a = $c(e)(i);
4231
+ const a = zc(e)(i);
4229
4232
  this.dispatch(hs(e)), this.dispatch(dt(a.map((o) => o.offline_id)));
4230
4233
  try {
4231
4234
  await this.enqueueRequest({
@@ -4250,7 +4253,7 @@ class Qy extends O {
4250
4253
  blockers: [],
4251
4254
  blocks: []
4252
4255
  });
4253
- this.dispatch(Uc(s));
4256
+ this.dispatch(Vc(s));
4254
4257
  }
4255
4258
  }
4256
4259
  class Zy extends O {
@@ -4307,15 +4310,15 @@ class Zy extends O {
4307
4310
  const { store: s } = this.client, i = s.getState(), n = As(e)(i);
4308
4311
  if (!n)
4309
4312
  throw new Error(`Expected asset type with offline_id ${e} to exist`);
4310
- const a = Qi(e)(i), o = bc(e)(i);
4311
- return this.dispatch(ys(e)), this.dispatch(ec(a.map((r) => r.offline_id))), this.dispatch(an(o.map(({ offline_id: r }) => r))), this.enqueueRequest({
4313
+ const a = Xi(e)(i), o = _c(e)(i);
4314
+ return this.dispatch(ys(e)), this.dispatch(Zo(a.map((r) => r.offline_id))), this.dispatch(nn(o.map(({ offline_id: r }) => r))), this.enqueueRequest({
4312
4315
  description: "Delete asset type",
4313
4316
  method: d.DELETE,
4314
4317
  url: `/asset-types/${e}/`,
4315
4318
  blockers: [e],
4316
4319
  blocks: []
4317
4320
  }).catch((r) => {
4318
- throw this.dispatch(fs(n)), this.dispatch(Ji(a)), this.dispatch(nn(o)), r;
4321
+ throw this.dispatch(fs(n)), this.dispatch(Yi(a)), this.dispatch(sn(o)), r;
4319
4322
  });
4320
4323
  }
4321
4324
  async refreshStore(e) {
@@ -4329,7 +4332,7 @@ class Zy extends O {
4329
4332
  blockers: [],
4330
4333
  blocks: []
4331
4334
  });
4332
- this.dispatch(Wc(s));
4335
+ this.dispatch(Hc(s));
4333
4336
  }
4334
4337
  }
4335
4338
  class eA extends O {
@@ -4356,7 +4359,7 @@ class eA extends O {
4356
4359
  if (!i)
4357
4360
  throw new Error(`Expected an existing category with offline_id ${e.offline_id}`);
4358
4361
  const n = { ...i, ...e };
4359
- this.dispatch(Qc(n));
4362
+ this.dispatch(Xc(n));
4360
4363
  const a = this.enqueueRequest({
4361
4364
  description: "Edit Category",
4362
4365
  method: d.PATCH,
@@ -4371,7 +4374,7 @@ class eA extends O {
4371
4374
  const { store: s } = this.client, i = Ss(e)(s.getState());
4372
4375
  if (!i)
4373
4376
  throw new Error(`No category with id ${e} found in the store`);
4374
- this.dispatch(Zc(e));
4377
+ this.dispatch(Qc(e));
4375
4378
  const n = this.enqueueRequest({
4376
4379
  description: "Delete Category",
4377
4380
  method: d.DELETE,
@@ -4394,7 +4397,7 @@ class eA extends O {
4394
4397
  blocks: [],
4395
4398
  blockers: []
4396
4399
  });
4397
- this.dispatch(Xc(s));
4400
+ this.dispatch(Jc(s));
4398
4401
  }
4399
4402
  }
4400
4403
  class tA extends De {
@@ -4402,12 +4405,12 @@ class tA extends De {
4402
4405
  super(...arguments);
4403
4406
  g(this, "name", "Document Attachment");
4404
4407
  g(this, "url", "/document-attachments");
4405
- g(this, "addAttachments", sr);
4406
- g(this, "updateAttachments", nr);
4407
- g(this, "removeAttachments", or);
4408
- g(this, "removeAttachment", ar);
4409
- g(this, "setAttachment", ir);
4410
- g(this, "selectAttachment", rr);
4408
+ g(this, "addAttachments", tr);
4409
+ g(this, "updateAttachments", ir);
4410
+ g(this, "removeAttachments", ar);
4411
+ g(this, "removeAttachment", nr);
4412
+ g(this, "setAttachment", sr);
4413
+ g(this, "selectAttachment", cr);
4411
4414
  }
4412
4415
  buildOfflineAttachment(s) {
4413
4416
  return R({
@@ -4501,7 +4504,7 @@ class tA extends De {
4501
4504
  blocks: [],
4502
4505
  blockers: []
4503
4506
  });
4504
- this.dispatch(tr(n));
4507
+ this.dispatch(er(n));
4505
4508
  const a = await this.enqueueRequest({
4506
4509
  description: "Get document attachments",
4507
4510
  method: d.GET,
@@ -4520,7 +4523,7 @@ class sA extends O {
4520
4523
  created_by: i,
4521
4524
  submitted_at: n
4522
4525
  });
4523
- this.dispatch(Fs([a]));
4526
+ this.dispatch(lr([a]));
4524
4527
  const o = this.enqueueRequest({
4525
4528
  description: "Create Document",
4526
4529
  method: d.POST,
@@ -4534,7 +4537,7 @@ class sA extends O {
4534
4537
  blocks: [a.offline_id]
4535
4538
  });
4536
4539
  return o.catch(() => {
4537
- this.dispatch(Os([a.offline_id]));
4540
+ this.dispatch(Fs([a.offline_id]));
4538
4541
  }), [a, o];
4539
4542
  }
4540
4543
  update(e) {
@@ -4599,7 +4602,7 @@ class sA extends O {
4599
4602
  `attempting to delete a document with offline_id ${e} that does not exist in store.documents`
4600
4603
  );
4601
4604
  const a = n.parent_document ? i[n.parent_document] : void 0;
4602
- this.dispatch(Os([e]));
4605
+ this.dispatch(Fs([e]));
4603
4606
  const o = this.enqueueRequest({
4604
4607
  description: "Delete Document",
4605
4608
  method: d.DELETE,
@@ -4627,7 +4630,7 @@ class sA extends O {
4627
4630
  blockers: [],
4628
4631
  blocks: []
4629
4632
  });
4630
- this.dispatch(lr(await i)), this.dispatch(Fs(await n));
4633
+ this.dispatch(dr([...await i, ...await n]));
4631
4634
  }
4632
4635
  }
4633
4636
  class iA extends O {
@@ -4695,7 +4698,7 @@ class aA extends O {
4695
4698
  g(this, "host");
4696
4699
  // NOTE: If you alter the schema (of the IndexedDB database) in any way, you must increment the version in order to
4697
4700
  // migrate the store. This allows idb to automatically migrate the user's existing data to the new schema.
4698
- g(this, "_dbPromise", Va("fileCache", 1, {
4701
+ g(this, "_dbPromise", $a("fileCache", 1, {
4699
4702
  upgrade(s) {
4700
4703
  s.createObjectStore("files");
4701
4704
  }
@@ -4794,7 +4797,7 @@ class aA extends O {
4794
4797
  return o;
4795
4798
  }
4796
4799
  if (s.startsWith("blob:")) {
4797
- const l = await no(s), h = new File([l], n ?? i, { type: l.type });
4800
+ const l = await io(s), h = new File([l], n ?? i, { type: l.type });
4798
4801
  return await this.addCache(h, i), h;
4799
4802
  }
4800
4803
  let r = He[a], u = !0;
@@ -4837,7 +4840,7 @@ class aA extends O {
4837
4840
  if (!h)
4838
4841
  throw new Error("File has no extension");
4839
4842
  const m = n ?? l + "." + h;
4840
- if (c = io(c, m), !c.name)
4843
+ if (c = so(c, m), !c.name)
4841
4844
  throw new Error("Failed to set file's name");
4842
4845
  await this.addCache(c, l), He[a] = new Promise((f) => {
4843
4846
  f(c);
@@ -4920,7 +4923,7 @@ class cA extends P {
4920
4923
  revision: "Pending",
4921
4924
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4922
4925
  });
4923
- this.dispatch(On(a));
4926
+ this.dispatch(Fn(a));
4924
4927
  const o = this.enqueueRequest({
4925
4928
  description: "Create form revision",
4926
4929
  method: d.POST,
@@ -4932,7 +4935,7 @@ class cA extends P {
4932
4935
  return o.then((u) => {
4933
4936
  this.dispatch(jr(u));
4934
4937
  }).catch(() => {
4935
- this.dispatch(vn(a.offline_id));
4938
+ this.dispatch(On(a.offline_id));
4936
4939
  }), [a, o];
4937
4940
  }
4938
4941
  async refreshStore(e) {
@@ -4987,7 +4990,7 @@ class dA extends P {
4987
4990
  submitted_at: n,
4988
4991
  created_by: a
4989
4992
  });
4990
- this.dispatch(Es(o)), this.dispatch(On(r));
4993
+ this.dispatch(Ps(o)), this.dispatch(Fn(r));
4991
4994
  const u = this.enqueueRequest({
4992
4995
  description: "Create form",
4993
4996
  method: d.POST,
@@ -5006,17 +5009,17 @@ class dA extends P {
5006
5009
  blocks: [o.offline_id, r.offline_id]
5007
5010
  });
5008
5011
  return u.catch((l) => {
5009
- throw this.dispatch(ks(o.offline_id)), this.dispatch(vn(r.offline_id)), l;
5012
+ throw this.dispatch(Es(o.offline_id)), this.dispatch(On(r.offline_id)), l;
5010
5013
  }), [o, r, u];
5011
5014
  }
5012
5015
  async delete(e) {
5013
- const { store: s } = this.client, i = s.getState(), n = Br(e)(i);
5016
+ const { store: s } = this.client, i = s.getState(), n = Lr(e)(i);
5014
5017
  if (!n)
5015
5018
  throw new Error("Expected form to exist");
5016
5019
  const a = Qr(e)(i);
5017
5020
  a.length > 0 && this.dispatch(bt(a.map(({ offline_id: r }) => r)));
5018
5021
  const o = $r(e)(i);
5019
- o.length > 0 && this.dispatch(xr(o.map(({ offline_id: r }) => r))), this.dispatch(ks(e));
5022
+ o.length > 0 && this.dispatch(xr(o.map(({ offline_id: r }) => r))), this.dispatch(Es(e));
5020
5023
  try {
5021
5024
  return await this.enqueueRequest({
5022
5025
  description: "Delete form",
@@ -5026,7 +5029,7 @@ class dA extends P {
5026
5029
  blocks: []
5027
5030
  });
5028
5031
  } catch (r) {
5029
- throw this.dispatch(Es(n)), o.length > 0 && this.dispatch(Mr(o)), a.length > 0 && this.dispatch(_t(a)), r;
5032
+ throw this.dispatch(Ps(n)), o.length > 0 && this.dispatch(Mr(o)), a.length > 0 && this.dispatch(_t(a)), r;
5030
5033
  }
5031
5034
  }
5032
5035
  async refreshStore(e) {
@@ -5132,6 +5135,7 @@ class uA extends P {
5132
5135
  file_name: i.name,
5133
5136
  file_sha1: u.sha1,
5134
5137
  file: URL.createObjectURL(i),
5138
+ index: null,
5135
5139
  submitted_at: a,
5136
5140
  created_by: o
5137
5141
  });
@@ -5158,9 +5162,9 @@ class uA extends P {
5158
5162
  blockers: [r.toString()]
5159
5163
  });
5160
5164
  return l.then((m) => {
5161
- this.processPresignedUrls(m.presigned_urls), this.dispatch(Le(m.geo_image));
5165
+ this.processPresignedUrls(m.presigned_urls), this.dispatch(Be(m.geo_image));
5162
5166
  }).catch(() => {
5163
- this.dispatch(zs(c.offline_id));
5167
+ this.dispatch(Cs(c.offline_id));
5164
5168
  }), [c, l.then((m) => m.geo_image)];
5165
5169
  }
5166
5170
  async bulkAdd(e, s) {
@@ -5175,6 +5179,7 @@ class uA extends P {
5175
5179
  file_sha1: T.sha1,
5176
5180
  file: URL.createObjectURL(f),
5177
5181
  submitted_at: n,
5182
+ index: null,
5178
5183
  created_by: a,
5179
5184
  project: s
5180
5185
  });
@@ -5211,7 +5216,7 @@ class uA extends P {
5211
5216
  }), [o, l.then((m) => m.geo_images)];
5212
5217
  }
5213
5218
  update(e) {
5214
- const { store: s } = this.client, i = s.getState(), n = $s(e.offline_id)(i);
5219
+ const { store: s } = this.client, i = s.getState(), n = zs(e.offline_id)(i);
5215
5220
  if (!n)
5216
5221
  throw new Error(`Map image with offline_id ${e.offline_id} does not exist in the store`);
5217
5222
  const a = { ...n, ...e };
@@ -5225,16 +5230,16 @@ class uA extends P {
5225
5230
  blockers: [e.offline_id]
5226
5231
  });
5227
5232
  return o.then((r) => {
5228
- this.dispatch(Le(r));
5233
+ this.dispatch(Be(r));
5229
5234
  }).catch(() => {
5230
- this.dispatch(Le(n));
5235
+ this.dispatch(Be(n));
5231
5236
  }), [a, o];
5232
5237
  }
5233
5238
  async delete(e) {
5234
- const { store: s } = this.client, i = s.getState(), n = $s(e)(i);
5239
+ const { store: s } = this.client, i = s.getState(), n = zs(e)(i);
5235
5240
  if (!n)
5236
5241
  throw new Error(`Map image with offline_id ${e} does not exist in the store`);
5237
- this.dispatch(zs(e));
5242
+ this.dispatch(Cs(e));
5238
5243
  const a = this.enqueueRequest({
5239
5244
  description: "Delete geo image",
5240
5245
  method: d.DELETE,
@@ -5243,7 +5248,7 @@ class uA extends P {
5243
5248
  blockers: [e]
5244
5249
  });
5245
5250
  return a.catch(() => {
5246
- this.dispatch(Le(n));
5251
+ this.dispatch(Be(n));
5247
5252
  }), a;
5248
5253
  }
5249
5254
  async refreshStore(e) {
@@ -5265,7 +5270,7 @@ class hA extends O {
5265
5270
  submitted_at: i,
5266
5271
  created_by: n
5267
5272
  });
5268
- this.dispatch(Us(a));
5273
+ this.dispatch(Vs(a));
5269
5274
  const o = this.enqueueRequest({
5270
5275
  description: "Add issue association",
5271
5276
  method: d.POST,
@@ -5285,14 +5290,14 @@ class hA extends O {
5285
5290
  return o.then((u) => {
5286
5291
  this.dispatch(hd(u));
5287
5292
  }).catch(() => {
5288
- this.dispatch(Gs(a.offline_id));
5293
+ this.dispatch(Us(a.offline_id));
5289
5294
  }), [a, o];
5290
5295
  }
5291
5296
  async delete(e) {
5292
5297
  const { store: s } = this.client, i = md(e)(s.getState());
5293
5298
  if (!i)
5294
5299
  throw new Error(`Issue association with id ${e} not found in store.`);
5295
- this.dispatch(Gs(e));
5300
+ this.dispatch(Us(e));
5296
5301
  const n = this.enqueueRequest({
5297
5302
  description: "Delete issue association",
5298
5303
  method: d.DELETE,
@@ -5301,7 +5306,7 @@ class hA extends O {
5301
5306
  blocks: []
5302
5307
  });
5303
5308
  return n.catch(() => {
5304
- this.dispatch(Us(i));
5309
+ this.dispatch(Vs(i));
5305
5310
  }), n;
5306
5311
  }
5307
5312
  async refreshStore(e) {
@@ -5321,9 +5326,9 @@ class mA extends De {
5321
5326
  super(...arguments);
5322
5327
  g(this, "name", "Issue Attachment");
5323
5328
  g(this, "url", "/issue-attachments");
5324
- g(this, "addAttachments", zn);
5329
+ g(this, "addAttachments", Cn);
5325
5330
  g(this, "updateAttachments", bd);
5326
- g(this, "removeAttachments", $n);
5331
+ g(this, "removeAttachments", zn);
5327
5332
  g(this, "removeAttachment", Sd);
5328
5333
  g(this, "setAttachment", _d);
5329
5334
  g(this, "selectAttachment", Fd);
@@ -5374,7 +5379,7 @@ class pA extends O {
5374
5379
  author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.id,
5375
5380
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
5376
5381
  });
5377
- this.dispatch(Hs(i));
5382
+ this.dispatch(Ns(i));
5378
5383
  const n = this.enqueueRequest({
5379
5384
  description: "Add issue comment",
5380
5385
  method: d.POST,
@@ -5384,7 +5389,7 @@ class pA extends O {
5384
5389
  blocks: [i.offline_id]
5385
5390
  });
5386
5391
  return n.catch(() => {
5387
- this.dispatch(Ws(i.offline_id));
5392
+ this.dispatch(Hs(i.offline_id));
5388
5393
  }), [i, n];
5389
5394
  }
5390
5395
  update(e) {
@@ -5395,7 +5400,7 @@ class pA extends O {
5395
5400
  ...i,
5396
5401
  ...e
5397
5402
  };
5398
- this.dispatch(Ns(n));
5403
+ this.dispatch(Ls(n));
5399
5404
  const a = this.enqueueRequest({
5400
5405
  description: "Edit issue comment",
5401
5406
  method: d.PATCH,
@@ -5405,14 +5410,14 @@ class pA extends O {
5405
5410
  blocks: [e.offline_id]
5406
5411
  });
5407
5412
  return a.catch(() => {
5408
- this.dispatch(Ns(i));
5413
+ this.dispatch(Ls(i));
5409
5414
  }), [n, a];
5410
5415
  }
5411
5416
  remove(e) {
5412
5417
  const s = this.client.store.getState().issueCommentReducer.instances[e];
5413
5418
  if (!s)
5414
5419
  throw new Error(`Comment with offline_id ${e} not found in store`);
5415
- this.dispatch(Ws(e));
5420
+ this.dispatch(Hs(e));
5416
5421
  const i = this.enqueueRequest({
5417
5422
  description: "Delete comment",
5418
5423
  method: d.DELETE,
@@ -5421,7 +5426,7 @@ class pA extends O {
5421
5426
  blocks: []
5422
5427
  });
5423
5428
  return i.catch(() => {
5424
- this.dispatch(Hs(s));
5429
+ this.dispatch(Ns(s));
5425
5430
  }), i;
5426
5431
  }
5427
5432
  async refreshStore(e) {
@@ -5443,27 +5448,33 @@ class fA extends O {
5443
5448
  var u;
5444
5449
  const { store: s } = this.client, i = s.getState(), n = (/* @__PURE__ */ new Date()).toISOString(), a = (u = i.userReducer.currentUser) == null ? void 0 : u.id, o = R({
5445
5450
  ...e,
5451
+ index: null,
5446
5452
  submitted_at: n,
5447
5453
  created_by: a
5448
5454
  });
5449
- this.dispatch(Ys(o));
5455
+ this.dispatch(Ks(o));
5450
5456
  const r = this.enqueueRequest({
5451
5457
  description: "Create issue",
5452
5458
  method: d.POST,
5453
5459
  url: "/issues/",
5454
5460
  payload: o,
5455
- blockers: ["add-issue", o.project.toString()],
5461
+ blockers: [
5462
+ "add-issue",
5463
+ o.project.toString(),
5464
+ o.issue_type,
5465
+ ...o.category ? [o.category] : []
5466
+ ],
5456
5467
  blocks: [o.offline_id]
5457
5468
  });
5458
5469
  return r.then((c) => {
5459
5470
  this.dispatch(et(c));
5460
5471
  }).catch((c) => {
5461
- throw this.dispatch(Js(o.offline_id)), c;
5472
+ throw this.dispatch(Ys(o.offline_id)), c;
5462
5473
  }), [o, r];
5463
5474
  }
5464
5475
  update(e) {
5465
5476
  var u;
5466
- const s = this.client.store.getState(), i = Xs(e.offline_id)(s);
5477
+ const s = this.client.store.getState(), i = Js(e.offline_id)(s);
5467
5478
  if (!i)
5468
5479
  throw new Error(
5469
5480
  `Attempting to update an issue with offline_id ${e.offline_id} that doesn't exist in the store`
@@ -5541,7 +5552,7 @@ class fA extends O {
5541
5552
  }), [n, r];
5542
5553
  }
5543
5554
  async remove(e) {
5544
- const { store: s } = this.client, i = s.getState(), n = Xs(e)(i);
5555
+ const { store: s } = this.client, i = s.getState(), n = Js(e)(i);
5545
5556
  if (!n)
5546
5557
  throw new Error(`No issue with id ${e} found in the store`);
5547
5558
  const a = Rd(e)(i), o = fl(e)(i), r = Zr(e)(i), u = {};
@@ -5550,7 +5561,7 @@ class fA extends O {
5550
5561
  for (const l of fd(e)(i))
5551
5562
  u[l.offline_id] = l;
5552
5563
  const c = Object.values(u);
5553
- this.dispatch(Js(e)), a.length > 0 && this.dispatch($n(a.map(({ offline_id: l }) => l))), o.length > 0 && this.dispatch(ml(o.map(({ offline_id: l }) => l))), r.length > 0 && this.dispatch(bt(r.map(({ offline_id: l }) => l))), c.length > 0 && this.dispatch(xn(c.map(({ offline_id: l }) => l)));
5564
+ this.dispatch(Ys(e)), a.length > 0 && this.dispatch(zn(a.map(({ offline_id: l }) => l))), o.length > 0 && this.dispatch(ml(o.map(({ offline_id: l }) => l))), r.length > 0 && this.dispatch(bt(r.map(({ offline_id: l }) => l))), c.length > 0 && this.dispatch(Mn(c.map(({ offline_id: l }) => l)));
5554
5565
  try {
5555
5566
  return await this.enqueueRequest({
5556
5567
  description: "Delete issue",
@@ -5560,7 +5571,7 @@ class fA extends O {
5560
5571
  blocks: []
5561
5572
  });
5562
5573
  } catch (l) {
5563
- throw this.dispatch(Ys(n)), this.dispatch(zn(a)), this.dispatch(ul(o)), this.dispatch(_t(r)), this.dispatch(Mn(c)), l;
5574
+ throw this.dispatch(Ks(n)), this.dispatch(Cn(a)), this.dispatch(ul(o)), this.dispatch(_t(r)), this.dispatch(Dn(c)), l;
5564
5575
  }
5565
5576
  }
5566
5577
  async refreshStore(e) {
@@ -5775,19 +5786,19 @@ class _A extends O {
5775
5786
  blockers: [e.issue, e.fields_revision],
5776
5787
  blocks: [n.offline_id]
5777
5788
  });
5778
- return this.dispatch(ei(n)), a.then((r) => (this.dispatch(Be(r)), r)).catch(() => {
5779
- this.dispatch(ti(n.offline_id));
5789
+ return this.dispatch(Zs(n)), a.then((r) => (this.dispatch(Le(r)), r)).catch(() => {
5790
+ this.dispatch(ei(n.offline_id));
5780
5791
  }), [n, a];
5781
5792
  }
5782
5793
  update(e) {
5783
- const { store: s } = this.client, i = s.getState(), n = si(e.offline_id)(i);
5794
+ const { store: s } = this.client, i = s.getState(), n = ti(e.offline_id)(i);
5784
5795
  if (!n)
5785
5796
  throw new Error(`Expected IssueTypeFieldValues with offline_id ${e.offline_id} to exist`);
5786
5797
  const a = {
5787
5798
  ...n,
5788
5799
  ...e
5789
5800
  };
5790
- this.dispatch(Be(a));
5801
+ this.dispatch(Le(a));
5791
5802
  const o = this.enqueueRequest({
5792
5803
  description: "Update issue type field values",
5793
5804
  method: d.PATCH,
@@ -5801,17 +5812,17 @@ class _A extends O {
5801
5812
  blocks: [a.offline_id]
5802
5813
  });
5803
5814
  return o.then((r) => {
5804
- this.dispatch(Be(r));
5815
+ this.dispatch(Le(r));
5805
5816
  }).catch(() => {
5806
- this.dispatch(Be(n));
5817
+ this.dispatch(Le(n));
5807
5818
  }), [a, o];
5808
5819
  }
5809
5820
  async delete(e) {
5810
- const { store: s } = this.client, i = s.getState(), n = si(e)(i);
5821
+ const { store: s } = this.client, i = s.getState(), n = ti(e)(i);
5811
5822
  if (!n)
5812
5823
  throw new Error(`Expected submission with offline_id ${e} to exist`);
5813
5824
  const a = tl(e)(i);
5814
- this.dispatch(ti(e)), this.dispatch(mt(a.map((o) => o.offline_id)));
5825
+ this.dispatch(ei(e)), this.dispatch(mt(a.map((o) => o.offline_id)));
5815
5826
  try {
5816
5827
  await this.enqueueRequest({
5817
5828
  description: "Delete issue type field values",
@@ -5821,7 +5832,7 @@ class _A extends O {
5821
5832
  blocks: []
5822
5833
  });
5823
5834
  } catch (o) {
5824
- throw this.dispatch(ei(n)), this.dispatch(ht(a)), o;
5835
+ throw this.dispatch(Zs(n)), this.dispatch(ht(a)), o;
5825
5836
  }
5826
5837
  }
5827
5838
  async refreshStore(e) {
@@ -5857,11 +5868,11 @@ class bA extends O {
5857
5868
  return a.then((r) => {
5858
5869
  this.dispatch(Ne(r));
5859
5870
  }).catch(() => {
5860
- this.dispatch(oi(n.offline_id));
5871
+ this.dispatch(ai(n.offline_id));
5861
5872
  }), [n, a];
5862
5873
  }
5863
5874
  update(e) {
5864
- const { store: s } = this.client, i = s.getState(), n = ci(e.offline_id)(i);
5875
+ const { store: s } = this.client, i = s.getState(), n = oi(e.offline_id)(i);
5865
5876
  if (!n)
5866
5877
  throw new Error(`IssueType with offline_id ${e.offline_id} does not exist in the store.`);
5867
5878
  const a = {
@@ -5883,11 +5894,11 @@ class bA extends O {
5883
5894
  }), [a, o];
5884
5895
  }
5885
5896
  delete(e) {
5886
- const { store: s } = this.client, i = s.getState(), n = ci(e)(i);
5897
+ const { store: s } = this.client, i = s.getState(), n = oi(e)(i);
5887
5898
  if (!n)
5888
5899
  throw new Error(`IssueType with offline_id ${e} does not exist in the store.`);
5889
- const a = Jn(e)(i);
5890
- this.dispatch(oi(e)), this.dispatch(qd(a.map((r) => r.offline_id)));
5900
+ const a = Yn(e)(i);
5901
+ this.dispatch(ai(e)), this.dispatch(qd(a.map((r) => r.offline_id)));
5891
5902
  const o = this.enqueueRequest({
5892
5903
  method: d.DELETE,
5893
5904
  url: `/issue-types/${e}/`,
@@ -5926,7 +5937,7 @@ class SA extends O {
5926
5937
  this.dispatch(dl(s));
5927
5938
  }
5928
5939
  }
5929
- class Qu extends ba {
5940
+ class Qu extends _a {
5930
5941
  constructor(e) {
5931
5942
  super(e);
5932
5943
  }
@@ -5978,7 +5989,7 @@ class TA extends Qu {
5978
5989
  * Logs the user out
5979
5990
  */
5980
5991
  clearAuth() {
5981
- console.debug(this.constructor.name, "clearing auth;"), this.dispatch(Yc(!1)), this.clearTokens(), this.dispatch({ type: Ua }), this.dispatch({ type: ju });
5992
+ console.debug(this.constructor.name, "clearing auth;"), this.dispatch(Kc(!1)), this.clearTokens(), this.dispatch({ type: Va }), this.dispatch({ type: ju });
5982
5993
  }
5983
5994
  /**
5984
5995
  * Attempts to renew tokens
@@ -6004,7 +6015,7 @@ class TA extends Qu {
6004
6015
  const i = Date.now() / 1e3;
6005
6016
  let n;
6006
6017
  try {
6007
- n = Ga(s).exp ?? i;
6018
+ n = Ua(s).exp ?? i;
6008
6019
  } catch {
6009
6020
  n = i;
6010
6021
  }
@@ -6277,7 +6288,7 @@ class vA extends O {
6277
6288
  blockers: [],
6278
6289
  blocks: []
6279
6290
  });
6280
- this.dispatch(ia(s));
6291
+ this.dispatch(sa(s));
6281
6292
  }
6282
6293
  }
6283
6294
  class IA extends De {
@@ -6287,7 +6298,7 @@ class IA extends De {
6287
6298
  g(this, "url", "/project-attachments");
6288
6299
  g(this, "addAttachments", Zl);
6289
6300
  g(this, "updateAttachments", su);
6290
- g(this, "removeAttachments", la);
6301
+ g(this, "removeAttachments", da);
6291
6302
  g(this, "removeAttachment", iu);
6292
6303
  g(this, "setAttachment", eu);
6293
6304
  g(this, "selectAttachment", au);
@@ -6346,7 +6357,7 @@ class wA extends O {
6346
6357
  blocks: [e.offline_id]
6347
6358
  });
6348
6359
  return i.then((n) => {
6349
- this.dispatch(gi(n));
6360
+ this.dispatch(Ai(n));
6350
6361
  }), i;
6351
6362
  }
6352
6363
  // TODO: This needs to be seperated into a update and create method
@@ -6386,7 +6397,7 @@ class wA extends O {
6386
6397
  });
6387
6398
  const r = Promise.resolve(a).then((u) => this.enqueueRequest(u));
6388
6399
  return r.then((u) => {
6389
- this.dispatch(gi(u));
6400
+ this.dispatch(Ai(u));
6390
6401
  }), this.dispatch(pu), this.dispatch(mu(null)), this.dispatch(hu(!1)), [n, r];
6391
6402
  }
6392
6403
  delete(e) {
@@ -6441,13 +6452,13 @@ class PA extends O {
6441
6452
  });
6442
6453
  }
6443
6454
  async delete(e) {
6444
- const { store: s } = this.client, i = s.getState(), n = oa(i), a = n[e];
6455
+ const { store: s } = this.client, i = s.getState(), n = aa(i), a = n[e];
6445
6456
  if (!a)
6446
6457
  throw new Error("Expected project to exist");
6447
6458
  const o = yu(i).filter((l) => l.project === e);
6448
6459
  this.dispatch(uu(o.map(({ offline_id: l }) => l)));
6449
6460
  const r = ou(a.id)(i);
6450
- this.dispatch(la(r.map(({ offline_id: l }) => l)));
6461
+ this.dispatch(da(r.map(({ offline_id: l }) => l)));
6451
6462
  const u = kl(i);
6452
6463
  this.dispatch(El(u.map(({ offline_id: l }) => l))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(xl(a));
6453
6464
  const c = gl(a.id)(i);
@@ -6461,7 +6472,7 @@ class PA extends O {
6461
6472
  blocks: []
6462
6473
  }), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 });
6463
6474
  } catch (l) {
6464
- throw this.dispatch(Dl(Object.values(n))), this.dispatch(ia(Object.values(u))), this.dispatch(du(o)), this.dispatch(tu(r)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), c && this.dispatch(re({ ...c, project: a.id })), l;
6475
+ throw this.dispatch(Dl(Object.values(n))), this.dispatch(sa(Object.values(u))), this.dispatch(du(o)), this.dispatch(tu(r)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), c && this.dispatch(re({ ...c, project: a.id })), l;
6465
6476
  }
6466
6477
  }
6467
6478
  invite(e, s) {
@@ -6520,7 +6531,7 @@ class EA extends O {
6520
6531
  return i.then((n) => {
6521
6532
  this.dispatch(Te(n));
6522
6533
  }).catch(() => {
6523
- this.dispatch(Si(s.offline_id));
6534
+ this.dispatch(bi(s.offline_id));
6524
6535
  }), [s, i];
6525
6536
  }
6526
6537
  update(e) {
@@ -6531,7 +6542,7 @@ class EA extends O {
6531
6542
  ...i,
6532
6543
  ...e
6533
6544
  };
6534
- this.dispatch(bi(n));
6545
+ this.dispatch(_i(n));
6535
6546
  const a = this.enqueueRequest({
6536
6547
  description: "Update team",
6537
6548
  method: d.PATCH,
@@ -6550,7 +6561,7 @@ class EA extends O {
6550
6561
  const { store: s } = this.client, i = s.getState(), n = Re(e)(i);
6551
6562
  if (!n)
6552
6563
  throw new Error(`Expected team with id ${e} to exist`);
6553
- this.dispatch(Si(e));
6564
+ this.dispatch(bi(e));
6554
6565
  try {
6555
6566
  return await this.enqueueRequest({
6556
6567
  description: "Delete team",
@@ -6569,7 +6580,7 @@ class EA extends O {
6569
6580
  throw new Error(`Expected team with id ${e} to exist`);
6570
6581
  if (s.length !== new Set(s).size)
6571
6582
  throw new Error("Duplicate members found in the list");
6572
- this.dispatch(bi({ ...n, members: s }));
6583
+ this.dispatch(_i({ ...n, members: s }));
6573
6584
  const a = this.enqueueRequest({
6574
6585
  description: "Set team members",
6575
6586
  method: d.PUT,
@@ -6641,8 +6652,8 @@ export {
6641
6652
  Gy as AssetProcedureFieldValuesService,
6642
6653
  zy as AssetProcedureFieldsAttachmentService,
6643
6654
  $y as AssetProcedureFieldsService,
6644
- Ly as AssetProcedureInstanceService,
6645
- By as AssetProcedureService,
6655
+ By as AssetProcedureInstanceService,
6656
+ Ly as AssetProcedureService,
6646
6657
  Ny as AssetService,
6647
6658
  Hy as AssetStageCompletionService,
6648
6659
  Wy as AssetStageService,
@@ -6652,16 +6663,16 @@ export {
6652
6663
  Yy as AssetTypeFieldsAttachmentService,
6653
6664
  Jy as AssetTypeFieldsService,
6654
6665
  Zy as AssetTypeService,
6655
- Na as AttachmentModel,
6666
+ La as AttachmentModel,
6656
6667
  O as BaseApiService,
6657
6668
  Dy as BaseSDK,
6658
6669
  eA as CategoryService,
6659
6670
  yh as DEFAULT_ISSUE_PRIORITY,
6660
6671
  fh as DEFAULT_ISSUE_STATUS,
6661
- Ja as DeferredPromise,
6672
+ Ya as DeferredPromise,
6662
6673
  tA as DocumentAttachmentService,
6663
6674
  sA as DocumentService,
6664
- La as EMPTY_ARRAY,
6675
+ Ga as EMPTY_ARRAY,
6665
6676
  Ba as EMPTY_OBJECT,
6666
6677
  iA as EmailDomainsService,
6667
6678
  nA as EmailVerificationService,
@@ -6676,9 +6687,9 @@ export {
6676
6687
  hA as IssueAssociationService,
6677
6688
  mA as IssueAttachmentService,
6678
6689
  pA as IssueCommentService,
6679
- wi as IssuePriority,
6690
+ Ii as IssuePriority,
6680
6691
  fA as IssueService,
6681
- Pi as IssueStatus,
6692
+ wi as IssueStatus,
6682
6693
  gA as IssueTypeFieldValuesAttachmentService,
6683
6694
  _A as IssueTypeFieldValuesService,
6684
6695
  yA as IssueTypeFieldsAttachmentService,
@@ -6687,16 +6698,16 @@ export {
6687
6698
  w as IssueUpdateChange,
6688
6699
  SA as IssueUpdateService,
6689
6700
  TA as JWTService,
6690
- Wa as LicenseLevel,
6701
+ Ha as LicenseLevel,
6691
6702
  RA as LicenseService,
6692
- Ka as LicenseStatus,
6693
- Ya as OUTBOX_RETRY_DELAY,
6694
- Ii as OrganizationAccessLevel,
6703
+ Wa as LicenseStatus,
6704
+ Ka as OUTBOX_RETRY_DELAY,
6705
+ vi as OrganizationAccessLevel,
6695
6706
  FA as OrganizationAccessService,
6696
6707
  OA as OrganizationService,
6697
6708
  Ie as OutboxCoordinator,
6698
- Ha as PaddleCheckoutEvent,
6699
- vi as ProjectAccessLevel,
6709
+ Na as PaddleCheckoutEvent,
6710
+ Oi as ProjectAccessLevel,
6700
6711
  vA as ProjectAccessService,
6701
6712
  IA as ProjectAttachmentService,
6702
6713
  wA as ProjectFileService,
@@ -6704,25 +6715,25 @@ export {
6704
6715
  EA as TeamService,
6705
6716
  ke as UNKNOWN_ERROR_MESSAGE,
6706
6717
  kA as UserService,
6707
- Oa as VERSION_REDUCER_KEY,
6718
+ Fa as VERSION_REDUCER_KEY,
6708
6719
  th as VerificationCodeType,
6709
6720
  zr as _selectLatestFormRevision,
6710
6721
  Jl as _setLatestRetryTime,
6711
6722
  Cl as acceptProjectInvite,
6712
6723
  Wt as addAsset,
6713
6724
  Ch as addAssetAttachment,
6714
- Di as addAssetAttachments,
6715
- Lt as addAssetProcedure,
6725
+ ji as addAssetAttachments,
6726
+ Bt as addAssetProcedure,
6716
6727
  Mt as addAssetProcedureFieldValues,
6717
6728
  sm as addAssetProcedureFieldValuesAttachment,
6718
6729
  ot as addAssetProcedureFieldValuesAttachments,
6719
- Vo as addAssetProcedureFieldValuesMany,
6720
- wo as addAssetProcedureFields,
6730
+ $o as addAssetProcedureFieldValuesMany,
6731
+ Io as addAssetProcedureFields,
6721
6732
  Uh as addAssetProcedureFieldsAttachment,
6722
- So as addAssetProcedureFieldsAttachments,
6733
+ bo as addAssetProcedureFieldsAttachments,
6723
6734
  Kh as addAssetProcedureFieldsMany,
6724
6735
  $t as addAssetProcedureInstance,
6725
- Ho as addAssetProcedureInstances,
6736
+ No as addAssetProcedureInstances,
6726
6737
  Am as addAssetProcedures,
6727
6738
  km as addAssetStage,
6728
6739
  Xt as addAssetStageCompletion,
@@ -6730,44 +6741,44 @@ export {
6730
6741
  ss as addAssetStages,
6731
6742
  fs as addAssetType,
6732
6743
  Mm as addAssetTypeAttachment,
6733
- nn as addAssetTypeAttachments,
6744
+ sn as addAssetTypeAttachments,
6734
6745
  us as addAssetTypeFieldValues,
6735
6746
  ep as addAssetTypeFieldValuesAttachment,
6736
6747
  rt as addAssetTypeFieldValuesAttachments,
6737
- Gc as addAssetTypeFieldValuesMany,
6738
- Ec as addAssetTypeFields,
6748
+ Uc as addAssetTypeFieldValuesMany,
6749
+ Pc as addAssetTypeFields,
6739
6750
  $m as addAssetTypeFieldsAttachment,
6740
- Rc as addAssetTypeFieldsAttachments,
6751
+ Tc as addAssetTypeFieldsAttachments,
6741
6752
  Hm as addAssetTypeFieldsMany,
6742
6753
  hp as addAssetTypes,
6743
- Ji as addAssets,
6754
+ Yi as addAssets,
6744
6755
  bs as addCategory,
6745
- ro as addConversation,
6756
+ co as addConversation,
6746
6757
  Fp as addDocumentAttachment,
6747
- sr as addDocumentAttachments,
6748
- Fs as addDocuments,
6758
+ tr as addDocumentAttachments,
6759
+ lr as addDocuments,
6749
6760
  Ar as addEmailDomain,
6750
- Es as addForm,
6751
- On as addFormRevision,
6761
+ Ps as addForm,
6762
+ Fn as addFormRevision,
6752
6763
  jp as addFormRevisionAttachment,
6753
6764
  Ir as addFormRevisionAttachments,
6754
6765
  Mr as addFormRevisions,
6755
- Ds as addFormSubmission,
6766
+ js as addFormSubmission,
6756
6767
  Hp as addFormSubmissionAttachment,
6757
6768
  lt as addFormSubmissionAttachments,
6758
6769
  _t as addFormSubmissions,
6759
6770
  Gp as addForms,
6760
6771
  nd as addGeoImage,
6761
6772
  ad as addGeoImages,
6762
- Ys as addIssue,
6763
- Us as addIssueAssociation,
6764
- Mn as addIssueAssociations,
6773
+ Ks as addIssue,
6774
+ Vs as addIssueAssociation,
6775
+ Dn as addIssueAssociations,
6765
6776
  of as addIssueAttachment,
6766
- zn as addIssueAttachments,
6767
- Hs as addIssueComment,
6777
+ Cn as addIssueAttachments,
6778
+ Ns as addIssueComment,
6768
6779
  lf as addIssueComments,
6769
6780
  nl as addIssueType,
6770
- ei as addIssueTypeFieldValues,
6781
+ Zs as addIssueTypeFieldValues,
6771
6782
  xf as addIssueTypeFieldValuesAttachment,
6772
6783
  ht as addIssueTypeFieldValuesAttachments,
6773
6784
  Sf as addIssueTypeFieldValuesMany,
@@ -6785,46 +6796,46 @@ export {
6785
6796
  du as addProjectFiles,
6786
6797
  Su as addTeam,
6787
6798
  Qf as addUsers,
6788
- ho as agentsReducer,
6789
- ki as agentsSlice,
6799
+ uo as agentsReducer,
6800
+ Ei as agentsSlice,
6790
6801
  bh as areArraysEqual,
6791
- _o as assetAttachmentReducer,
6792
- ji as assetAttachmentSlice,
6793
- zo as assetProcedureFieldValuesAttachmentReducer,
6794
- Vi as assetProcedureFieldValuesAttachmentSlice,
6802
+ go as assetAttachmentReducer,
6803
+ qi as assetAttachmentSlice,
6804
+ Co as assetProcedureFieldValuesAttachmentReducer,
6805
+ $i as assetProcedureFieldValuesAttachmentSlice,
6795
6806
  Bo as assetProcedureFieldValuesReducer,
6796
- Gi as assetProcedureFieldValuesSlice,
6797
- vo as assetProcedureFieldsAttachmentReducer,
6798
- Ci as assetProcedureFieldsAttachmentSlice,
6799
- qo as assetProcedureFieldsReducer,
6800
- zi as assetProcedureFieldsSlice,
6801
- Yo as assetProcedureInstanceReducer,
6807
+ Ui as assetProcedureFieldValuesSlice,
6808
+ Oo as assetProcedureFieldsAttachmentReducer,
6809
+ xi as assetProcedureFieldsAttachmentSlice,
6810
+ ko as assetProcedureFieldsReducer,
6811
+ Ci as assetProcedureFieldsSlice,
6812
+ Ko as assetProcedureInstanceReducer,
6802
6813
  Bi as assetProcedureInstanceSlice,
6803
- Qo as assetProcedureReducer,
6804
- Wi as assetProcedureSlice,
6805
- sc as assetReducer,
6806
- Yi as assetSlice,
6807
- oc as assetStageCompletionReducer,
6808
- Zi as assetStageCompletionSlice,
6809
- uc as assetStageReducer,
6810
- tn as assetStageSlice,
6811
- Sc as assetTypeAttachmentReducer,
6812
- sn as assetTypeAttachmentSlice,
6813
- Vc as assetTypeFieldValuesAttachmentReducer,
6814
- dn as assetTypeFieldValuesAttachmentSlice,
6815
- Hc as assetTypeFieldValuesReducer,
6816
- un as assetTypeFieldValuesSlice,
6817
- wc as assetTypeFieldsAttachmentReducer,
6818
- cn as assetTypeFieldsAttachmentSlice,
6819
- Dc as assetTypeFieldsReducer,
6820
- rn as assetTypeFieldsSlice,
6821
- Kc as assetTypeReducer,
6822
- mn as assetTypeSlice,
6823
- Jc as authReducer,
6814
+ Xo as assetProcedureReducer,
6815
+ Hi as assetProcedureSlice,
6816
+ tc as assetReducer,
6817
+ Ki as assetSlice,
6818
+ ac as assetStageCompletionReducer,
6819
+ Qi as assetStageCompletionSlice,
6820
+ lc as assetStageReducer,
6821
+ en as assetStageSlice,
6822
+ bc as assetTypeAttachmentReducer,
6823
+ tn as assetTypeAttachmentSlice,
6824
+ $c as assetTypeFieldValuesAttachmentReducer,
6825
+ rn as assetTypeFieldValuesAttachmentSlice,
6826
+ Nc as assetTypeFieldValuesReducer,
6827
+ ln as assetTypeFieldValuesSlice,
6828
+ Ic as assetTypeFieldsAttachmentReducer,
6829
+ on as assetTypeFieldsAttachmentSlice,
6830
+ jc as assetTypeFieldsReducer,
6831
+ cn as assetTypeFieldsSlice,
6832
+ Wc as assetTypeReducer,
6833
+ hn as assetTypeSlice,
6834
+ Yc as authReducer,
6824
6835
  At as authSlice,
6825
6836
  vh as blobToBase64,
6826
- er as categoryReducer,
6827
- fn as categorySlice,
6837
+ Zc as categoryReducer,
6838
+ pn as categorySlice,
6828
6839
  gp as clearTokens,
6829
6840
  Oh as constructUploadedFilePayloads,
6830
6841
  _h as coordinatesAreEqual,
@@ -6833,60 +6844,60 @@ export {
6833
6844
  Wl as createOfflineAction,
6834
6845
  Ah as createPointGeometry,
6835
6846
  Kt as deleteAsset,
6836
- fo as deleteAssetAttachment,
6837
- Mi as deleteAssetAttachments,
6838
- Bt as deleteAssetProcedure,
6847
+ po as deleteAssetAttachment,
6848
+ Di as deleteAssetAttachments,
6849
+ Lt as deleteAssetProcedure,
6839
6850
  xt as deleteAssetProcedureFieldValues,
6840
6851
  om as deleteAssetProcedureFieldValuesAttachment,
6841
6852
  ct as deleteAssetProcedureFieldValuesAttachments,
6842
- Go as deleteAssetProcedureFieldValuesMany,
6843
- Eo as deleteAssetProcedureFields,
6853
+ Uo as deleteAssetProcedureFieldValuesMany,
6854
+ Po as deleteAssetProcedureFields,
6844
6855
  Nh as deleteAssetProcedureFieldsAttachment,
6845
- Ro as deleteAssetProcedureFieldsAttachments,
6856
+ To as deleteAssetProcedureFieldsAttachments,
6846
6857
  Qh as deleteAssetProcedureFieldsMany,
6847
6858
  Vt as deleteAssetProcedureInstance,
6848
- Wo as deleteAssetProcedureInstances,
6859
+ Ho as deleteAssetProcedureInstances,
6849
6860
  _m as deleteAssetProcedures,
6850
6861
  qm as deleteAssetStage,
6851
6862
  Zt as deleteAssetStageCompletion,
6852
6863
  es as deleteAssetStageCompletions,
6853
6864
  ns as deleteAssetStages,
6854
6865
  ys as deleteAssetType,
6855
- Ac as deleteAssetTypeAttachment,
6856
- an as deleteAssetTypeAttachments,
6866
+ yc as deleteAssetTypeAttachment,
6867
+ nn as deleteAssetTypeAttachments,
6857
6868
  hs as deleteAssetTypeFieldValues,
6858
6869
  np as deleteAssetTypeFieldValuesAttachment,
6859
6870
  dt as deleteAssetTypeFieldValuesAttachments,
6860
6871
  Bc as deleteAssetTypeFieldValuesMany,
6861
- qc as deleteAssetTypeFields,
6862
- Lm as deleteAssetTypeFieldsAttachment,
6863
- Oc as deleteAssetTypeFieldsAttachments,
6872
+ kc as deleteAssetTypeFields,
6873
+ Bm as deleteAssetTypeFieldsAttachment,
6874
+ Fc as deleteAssetTypeFieldsAttachments,
6864
6875
  Jm as deleteAssetTypeFieldsMany,
6865
6876
  pp as deleteAssetTypes,
6866
- ec as deleteAssets,
6867
- Zc as deleteCategory,
6868
- ar as deleteDocumentAttachment,
6869
- or as deleteDocumentAttachments,
6877
+ Zo as deleteAssets,
6878
+ Qc as deleteCategory,
6879
+ nr as deleteDocumentAttachment,
6880
+ ar as deleteDocumentAttachments,
6870
6881
  gr as deleteEmailDomain,
6871
- ks as deleteForm,
6872
- vn as deleteFormRevision,
6882
+ Es as deleteForm,
6883
+ On as deleteFormRevision,
6873
6884
  Cp as deleteFormRevisionAttachment,
6874
6885
  Pr as deleteFormRevisionAttachments,
6875
6886
  xr as deleteFormRevisions,
6876
- Ms as deleteFormSubmission,
6887
+ Ds as deleteFormSubmission,
6877
6888
  Jp as deleteFormSubmissionAttachment,
6878
6889
  ut as deleteFormSubmissionAttachments,
6879
6890
  bt as deleteFormSubmissions,
6880
- zs as deleteGeoImage,
6891
+ Cs as deleteGeoImage,
6881
6892
  cd as deleteGeoImages,
6882
- Js as deleteIssue,
6883
- Gs as deleteIssueAssociation,
6884
- xn as deleteIssueAssociations,
6893
+ Ys as deleteIssue,
6894
+ Us as deleteIssueAssociation,
6895
+ Mn as deleteIssueAssociations,
6885
6896
  Sd as deleteIssueAttachment,
6886
- $n as deleteIssueAttachments,
6887
- Ws as deleteIssueComment,
6897
+ zn as deleteIssueAttachments,
6898
+ Hs as deleteIssueComment,
6888
6899
  uf as deleteIssueComments,
6889
- ti as deleteIssueTypeFieldValues,
6900
+ ei as deleteIssueTypeFieldValues,
6890
6901
  Vf as deleteIssueTypeFieldValuesAttachment,
6891
6902
  mt as deleteIssueTypeFieldValuesAttachments,
6892
6903
  Of as deleteIssueTypeFieldValuesMany,
@@ -6902,67 +6913,67 @@ export {
6902
6913
  Pl as deleteProjectAccess,
6903
6914
  El as deleteProjectAccesses,
6904
6915
  iu as deleteProjectAttachment,
6905
- la as deleteProjectAttachments,
6916
+ da as deleteProjectAttachments,
6906
6917
  lu as deleteProjectFile,
6907
6918
  uu as deleteProjectFiles,
6908
- Si as deleteTeam,
6919
+ bi as deleteTeam,
6909
6920
  xu as dequeue,
6910
- Pa as discard,
6911
- dr as documentAttachmentReducer,
6912
- An as documentAttachmentSlice,
6913
- _n as documentSlice,
6921
+ wa as discard,
6922
+ rr as documentAttachmentReducer,
6923
+ yn as documentAttachmentSlice,
6924
+ gn as documentSlice,
6914
6925
  pr as documentsReducer,
6915
6926
  Ih as downloadFile,
6916
6927
  Fh as downloadInMemoryFile,
6917
6928
  Sr as emailDomainsReducer,
6918
- bn as emailDomainsSlice,
6929
+ _n as emailDomainsSlice,
6919
6930
  Dh as emailRegex,
6920
6931
  Mu as enqueue,
6921
6932
  Kl as enqueueRequest,
6922
6933
  A as fallbackToEmptyArray,
6923
6934
  qe as fallbackToEmptyObject,
6924
6935
  Or as fileReducer,
6925
- Tn as fileSlice,
6926
- no as fileToBlob,
6936
+ Sn as fileSlice,
6937
+ io as fileToBlob,
6927
6938
  Gr as formReducer,
6928
6939
  kr as formRevisionAttachmentReducer,
6929
- Rn as formRevisionAttachmentSlice,
6940
+ Tn as formRevisionAttachmentSlice,
6930
6941
  Vr as formRevisionReducer,
6931
- Fn as formRevisionsSlice,
6932
- In as formSlice,
6942
+ Rn as formRevisionsSlice,
6943
+ vn as formSlice,
6933
6944
  Yr as formSubmissionAttachmentReducer,
6934
- wn as formSubmissionAttachmentSlice,
6945
+ In as formSubmissionAttachmentSlice,
6935
6946
  td as formSubmissionReducer,
6936
- En as formSubmissionSlice,
6947
+ Pn as formSubmissionSlice,
6937
6948
  ld as geoImageReducer,
6938
- jn as geoImageSlice,
6949
+ qn as geoImageSlice,
6939
6950
  Rh as getFileIdentifier,
6940
6951
  vt as getFileS3Key,
6941
- Za as getLocalDateString,
6952
+ Qa as getLocalDateString,
6942
6953
  Th as getLocalRelativeDateString,
6943
6954
  be as getOutboxCoordinator,
6944
- io as getRenamedFile,
6955
+ so as getRenamedFile,
6945
6956
  Pe as hashFile,
6946
6957
  My as initSDK,
6947
6958
  Et as initializeAssetAttachments,
6948
- $o as initializeAssetProcedureFieldValues,
6949
- jo as initializeAssetProcedureFieldValuesAttachments,
6950
- Io as initializeAssetProcedureFields,
6951
- bo as initializeAssetProcedureFieldsAttachments,
6952
- No as initializeAssetProcedureInstances,
6953
- Jo as initializeAssetProcedures,
6954
- ic as initializeAssetStageCompletions,
6955
- dc as initializeAssetStages,
6956
- pc as initializeAssetTypeAttachments,
6957
- Uc as initializeAssetTypeFieldValues,
6958
- Mc as initializeAssetTypeFieldValuesAttachments,
6959
- Pc as initializeAssetTypeFields,
6960
- Tc as initializeAssetTypeFieldsAttachments,
6961
- Wc as initializeAssetTypes,
6962
- Zo as initializeAssets,
6963
- Xc as initializeCategories,
6964
- co as initializeConversations,
6965
- tr as initializeDocumentAttachments,
6959
+ zo as initializeAssetProcedureFieldValues,
6960
+ qo as initializeAssetProcedureFieldValuesAttachments,
6961
+ vo as initializeAssetProcedureFields,
6962
+ _o as initializeAssetProcedureFieldsAttachments,
6963
+ Lo as initializeAssetProcedureInstances,
6964
+ Yo as initializeAssetProcedures,
6965
+ sc as initializeAssetStageCompletions,
6966
+ rc as initializeAssetStages,
6967
+ mc as initializeAssetTypeAttachments,
6968
+ Vc as initializeAssetTypeFieldValues,
6969
+ Dc as initializeAssetTypeFieldValuesAttachments,
6970
+ wc as initializeAssetTypeFields,
6971
+ Sc as initializeAssetTypeFieldsAttachments,
6972
+ Hc as initializeAssetTypes,
6973
+ Qo as initializeAssets,
6974
+ Jc as initializeCategories,
6975
+ oo as initializeConversations,
6976
+ er as initializeDocumentAttachments,
6966
6977
  yr as initializeEmailDomains,
6967
6978
  vr as initializeFormRevisionAttachments,
6968
6979
  Dr as initializeFormRevisions,
@@ -6981,63 +6992,63 @@ export {
6981
6992
  Ed as initializeIssues,
6982
6993
  Al as initializeLicences,
6983
6994
  Rl as initializeOrganizationAccesses,
6984
- ia as initializeProjectAccesses,
6995
+ sa as initializeProjectAccesses,
6985
6996
  Ql as initializeProjectAttachments,
6986
6997
  ru as initializeProjectFiles,
6987
6998
  bu as initializeTeams,
6988
6999
  Sh as isToday,
6989
7000
  Ad as issueAssociationReducer,
6990
- Dn as issueAssociationSlice,
7001
+ jn as issueAssociationSlice,
6991
7002
  Od as issueAttachmentReducer,
6992
- Cn as issueAttachmentSlice,
7003
+ xn as issueAttachmentSlice,
6993
7004
  Pd as issueCommentReducer,
6994
- Un as issueCommentSlice,
7005
+ Vn as issueCommentSlice,
6995
7006
  Dd as issueReducer,
6996
- Gn as issueSlice,
7007
+ Un as issueSlice,
6997
7008
  sl as issueTypeFieldValuesAttachmentReducer,
6998
- Wn as issueTypeFieldValuesAttachmentSlice,
6999
- Bd as issueTypeFieldValuesReducer,
7009
+ Hn as issueTypeFieldValuesAttachmentSlice,
7010
+ Ld as issueTypeFieldValuesReducer,
7000
7011
  Bn as issueTypeFieldValuesSlice,
7001
7012
  Ud as issueTypeFieldsAttachmentReducer,
7002
- Ln as issueTypeFieldsAttachmentSlice,
7013
+ Gn as issueTypeFieldsAttachmentSlice,
7003
7014
  Jd as issueTypeFieldsReducer,
7004
- Hn as issueTypeFieldsSlice,
7015
+ Nn as issueTypeFieldsSlice,
7005
7016
  rl as issueTypeReducer,
7006
- Yn as issueTypeSlice,
7017
+ Kn as issueTypeSlice,
7007
7018
  yl as issueUpdateReducer,
7008
- Xn as issueUpdateSlice,
7019
+ Jn as issueUpdateSlice,
7009
7020
  _l as licenseReducer,
7010
- Qn as licenseSlice,
7021
+ Xn as licenseSlice,
7011
7022
  wh as logOnlyOnce,
7012
7023
  Yl as markAsDeleted,
7013
7024
  fy as markForDeletion,
7014
- Ei as memoize,
7025
+ Pi as memoize,
7015
7026
  ur as moveDocument,
7016
7027
  R as offline,
7017
7028
  jh as onlyUniqueHashes,
7018
- oo as onlyUniqueOfflineIds,
7029
+ ao as onlyUniqueOfflineIds,
7019
7030
  Il as organizationAccessReducer,
7020
- ea as organizationAccessSlice,
7031
+ Zn as organizationAccessSlice,
7021
7032
  Hl as organizationReducer,
7022
- ca as organizationSlice,
7033
+ oa as organizationSlice,
7023
7034
  Xl as outboxReducer,
7024
- ra as outboxSlice,
7035
+ ca as outboxSlice,
7025
7036
  jy as overmapEnhancer,
7026
7037
  qu as overmapReducers,
7027
7038
  qy as overmapRootReducer,
7028
- va as performRequest,
7039
+ Oa as performRequest,
7029
7040
  jl as projectAccessReducer,
7030
- sa as projectAccessSlice,
7041
+ ta as projectAccessSlice,
7031
7042
  cu as projectAttachmentReducer,
7032
- da as projectAttachmentSlice,
7043
+ ra as projectAttachmentSlice,
7033
7044
  Au as projectFileReducer,
7034
- ha as projectFileSlice,
7045
+ ua as projectFileSlice,
7035
7046
  zl as projectReducer,
7036
- aa as projectSlice,
7047
+ na as projectSlice,
7037
7048
  _u as rehydratedReducer,
7038
- ma as rehydratedSlice,
7039
- Os as removeDocuments,
7040
- oi as removeIssueType,
7049
+ ha as rehydratedSlice,
7050
+ Fs as removeDocuments,
7051
+ ai as removeIssueType,
7041
7052
  Sl as removeUser,
7042
7053
  Ry as resetProjectFileObjectUrls,
7043
7054
  ju as resetStore,
@@ -7047,83 +7058,83 @@ export {
7047
7058
  sy as selectActiveOrganizationAccess,
7048
7059
  Oy as selectActiveProjectFileId,
7049
7060
  Kf as selectActiveStatusLicenses,
7050
- gn as selectAllDocumentAttachments,
7051
- ua as selectAllProjectAttachments,
7061
+ An as selectAllDocumentAttachments,
7062
+ la as selectAllProjectAttachments,
7052
7063
  Ep as selectAncestorIdsOfDocument,
7053
- Ao as selectAssetAttachmentById,
7054
- yo as selectAssetAttachmentMapping,
7055
- xi as selectAssetAttachments,
7064
+ yo as selectAssetAttachmentById,
7065
+ fo as selectAssetAttachmentMapping,
7066
+ Mi as selectAssetAttachments,
7056
7067
  Yt as selectAssetById,
7057
7068
  Nt as selectAssetProcedureById,
7058
- Li as selectAssetProcedureFieldValues,
7069
+ Gi as selectAssetProcedureFieldValues,
7059
7070
  cm as selectAssetProcedureFieldValuesAttachmentById,
7060
- Mo as selectAssetProcedureFieldValuesAttachments,
7061
- xo as selectAssetProcedureFieldValuesAttachmentsByIds,
7062
- Ui as selectAssetProcedureFieldValuesAttachmentsMapping,
7071
+ Do as selectAssetProcedureFieldValuesAttachments,
7072
+ Mo as selectAssetProcedureFieldValuesAttachmentsByIds,
7073
+ Vi as selectAssetProcedureFieldValuesAttachmentsMapping,
7063
7074
  Ct as selectAssetProcedureFieldValuesById,
7064
- Lo as selectAssetProcedureFieldValuesMapping,
7075
+ Go as selectAssetProcedureFieldValuesMapping,
7065
7076
  lm as selectAssetProcedureFieldValuesOfAsset,
7066
- $i as selectAssetProcedureFields,
7077
+ zi as selectAssetProcedureFields,
7067
7078
  Wh as selectAssetProcedureFieldsAttachmentById,
7068
- Oo as selectAssetProcedureFieldsAttachments,
7069
- Fo as selectAssetProcedureFieldsAttachmentsMapping,
7079
+ Fo as selectAssetProcedureFieldsAttachments,
7080
+ Ro as selectAssetProcedureFieldsAttachmentsMapping,
7070
7081
  tm as selectAssetProcedureFieldsById,
7071
- ko as selectAssetProcedureFieldsMapping,
7082
+ Eo as selectAssetProcedureFieldsMapping,
7072
7083
  Zh as selectAssetProcedureFieldsOfAssetProcedure,
7073
7084
  Ut as selectAssetProcedureInstanceById,
7074
- Hi as selectAssetProcedureInstances,
7085
+ Ni as selectAssetProcedureInstances,
7075
7086
  ym as selectAssetProcedureInstancesByIds,
7076
- Ni as selectAssetProcedureInstancesMapping,
7077
- Ko as selectAssetProcedureInstancesOfAssetProcedure,
7087
+ Li as selectAssetProcedureInstancesMapping,
7088
+ Wo as selectAssetProcedureInstancesOfAssetProcedure,
7078
7089
  fm as selectAssetProcedureInstancesOfAssetType,
7079
- Xo as selectAssetProcedures,
7090
+ Jo as selectAssetProcedures,
7080
7091
  Rm as selectAssetProceduresByIds,
7081
- Ki as selectAssetProceduresMapping,
7092
+ Wi as selectAssetProceduresMapping,
7082
7093
  Tm as selectAssetProceduresOfOrganization,
7083
- hc as selectAssetStageById,
7084
- cc as selectAssetStageCompletionById,
7085
- en as selectAssetStageCompletionMapping,
7094
+ uc as selectAssetStageById,
7095
+ oc as selectAssetStageCompletionById,
7096
+ Zi as selectAssetStageCompletionMapping,
7086
7097
  Pm as selectAssetStageCompletions,
7087
- rc as selectAssetStageCompletionsByIds,
7088
- mc as selectAssetStages,
7098
+ cc as selectAssetStageCompletionsByIds,
7099
+ hc as selectAssetStages,
7089
7100
  as as selectAssetStagesByIds,
7090
7101
  jm as selectAssetStagesMappingOfAssetProcedure,
7091
7102
  Dm as selectAssetStagesOfAssetProcedure,
7092
- _c as selectAssetTypeAttachmentById,
7093
- gc as selectAssetTypeAttachmentMapping,
7094
- on as selectAssetTypeAttachments,
7103
+ gc as selectAssetTypeAttachmentById,
7104
+ Ac as selectAssetTypeAttachmentMapping,
7105
+ an as selectAssetTypeAttachments,
7095
7106
  As as selectAssetTypeById,
7096
- hn as selectAssetTypeFieldValues,
7107
+ un as selectAssetTypeFieldValues,
7097
7108
  ap as selectAssetTypeFieldValuesAttachmentById,
7098
- Cc as selectAssetTypeFieldValuesAttachments,
7099
- zc as selectAssetTypeFieldValuesAttachmentsByIds,
7100
- ln as selectAssetTypeFieldValuesAttachmentsMapping,
7109
+ xc as selectAssetTypeFieldValuesAttachments,
7110
+ Cc as selectAssetTypeFieldValuesAttachmentsByIds,
7111
+ dn as selectAssetTypeFieldValuesAttachmentsMapping,
7101
7112
  ms as selectAssetTypeFieldValuesById,
7102
- Nc as selectAssetTypeFieldValuesMapping,
7113
+ Lc as selectAssetTypeFieldValuesMapping,
7103
7114
  rp as selectAssetTypeFieldValuesOfAsset,
7104
7115
  yt as selectAssetTypeFields,
7105
7116
  Nm as selectAssetTypeFieldsAttachmentById,
7106
- Ic as selectAssetTypeFieldsAttachments,
7107
- vc as selectAssetTypeFieldsAttachmentsMapping,
7117
+ vc as selectAssetTypeFieldsAttachments,
7118
+ Oc as selectAssetTypeFieldsAttachmentsMapping,
7108
7119
  Zm as selectAssetTypeFieldsById,
7109
- jc as selectAssetTypeFieldsMapping,
7120
+ qc as selectAssetTypeFieldsMapping,
7110
7121
  Xm as selectAssetTypeFieldsOfAssetType,
7111
7122
  dp as selectAssetTypeValuesOfAssetType,
7112
7123
  fp as selectAssetTypes,
7113
7124
  yp as selectAssetTypesByIds,
7114
- pn as selectAssetTypesMapping,
7115
- tc as selectAssets,
7125
+ mn as selectAssetTypesMapping,
7126
+ ec as selectAssets,
7116
7127
  Im as selectAssetsByIds,
7117
- Xi as selectAssetsMapping,
7118
- Qi as selectAssetsOfAssetType,
7119
- go as selectAttachmentsOfAsset,
7128
+ Ji as selectAssetsMapping,
7129
+ Xi as selectAssetsOfAssetType,
7130
+ Ao as selectAttachmentsOfAsset,
7120
7131
  Vh as selectAttachmentsOfAssetByType,
7121
- Co as selectAttachmentsOfAssetProcedureFieldValues,
7132
+ xo as selectAttachmentsOfAssetProcedureFieldValues,
7122
7133
  Hh as selectAttachmentsOfAssetProcedureFields,
7123
- bc as selectAttachmentsOfAssetType,
7134
+ _c as selectAttachmentsOfAssetType,
7124
7135
  zm as selectAttachmentsOfAssetTypeByType,
7125
- $c as selectAttachmentsOfAssetTypeFieldValues,
7126
- Bm as selectAttachmentsOfAssetTypeFields,
7136
+ zc as selectAttachmentsOfAssetTypeFieldValues,
7137
+ Lm as selectAttachmentsOfAssetTypeFields,
7127
7138
  Ip as selectAttachmentsOfDocument,
7128
7139
  wp as selectAttachmentsOfDocumentByType,
7129
7140
  zp as selectAttachmentsOfFormRevision,
@@ -7137,15 +7148,15 @@ export {
7137
7148
  Sp as selectCategories,
7138
7149
  Tp as selectCategoriesByIds,
7139
7150
  Ss as selectCategoryById,
7140
- yn as selectCategoryMapping,
7151
+ fn as selectCategoryMapping,
7141
7152
  hf as selectCommentsOfIssue,
7142
7153
  xh as selectConversation,
7143
- qi as selectConversationMapping,
7154
+ ki as selectConversationMapping,
7144
7155
  Mh as selectConversations,
7145
7156
  Rt as selectCurrentUser,
7146
7157
  my as selectDeletedRequests,
7147
- rr as selectDocumentAttachmentById,
7148
- cr as selectDocumentAttachmentMapping,
7158
+ cr as selectDocumentAttachmentById,
7159
+ or as selectDocumentAttachmentMapping,
7149
7160
  mr as selectDocumentById,
7150
7161
  hr as selectDocuments,
7151
7162
  Pp as selectDocumentsByIds,
@@ -7155,23 +7166,23 @@ export {
7155
7166
  qp as selectEmailDomainsOfOrganization,
7156
7167
  um as selectFieldValuesOfAssetProcedureInstance,
7157
7168
  Np as selectFilteredForms,
7158
- Br as selectFormById,
7159
- Lr as selectFormMapping,
7169
+ Lr as selectFormById,
7170
+ Br as selectFormMapping,
7160
7171
  Er as selectFormRevisionAttachmentsMapping,
7161
7172
  $p as selectFormRevisionById,
7162
7173
  gt as selectFormRevisionMapping,
7163
7174
  Cr as selectFormRevisions,
7164
7175
  $r as selectFormRevisionsOfForm,
7165
7176
  Wr as selectFormSubmissionAttachemntsByIds,
7166
- Pn as selectFormSubmissionAttachmentsMapping,
7167
- xs as selectFormSubmissionById,
7168
- qn as selectFormSubmissions,
7169
- kn as selectFormSubmissionsMapping,
7177
+ wn as selectFormSubmissionAttachmentsMapping,
7178
+ Ms as selectFormSubmissionById,
7179
+ kn as selectFormSubmissions,
7180
+ En as selectFormSubmissionsMapping,
7170
7181
  ed as selectFormSubmissionsOfAsset,
7171
7182
  Qr as selectFormSubmissionsOfForm,
7172
7183
  Zr as selectFormSubmissionsOfIssue,
7173
- Bp as selectForms,
7174
- $s as selectGeoImageById,
7184
+ Lp as selectForms,
7185
+ zs as selectGeoImageById,
7175
7186
  rd as selectGeoImageMapping,
7176
7187
  dd as selectGeoImages,
7177
7188
  ef as selectGeoImagesOfProject,
@@ -7185,20 +7196,20 @@ export {
7185
7196
  pd as selectIssueAssociationsToIssue,
7186
7197
  Fd as selectIssueAttachmentById,
7187
7198
  Td as selectIssueAttachmentMapping,
7188
- Vn as selectIssueAttachments,
7189
- Xs as selectIssueById,
7199
+ $n as selectIssueAttachments,
7200
+ Js as selectIssueById,
7190
7201
  wd as selectIssueCommentById,
7191
7202
  Id as selectIssueCommentMapping,
7192
7203
  Rp as selectIssueCountOfCategory,
7193
7204
  jd as selectIssueMapping,
7194
- ci as selectIssueTypeById,
7195
- Nn as selectIssueTypeFieldValues,
7205
+ oi as selectIssueTypeById,
7206
+ Ln as selectIssueTypeFieldValues,
7196
7207
  Uf as selectIssueTypeFieldValuesAttachmentById,
7197
7208
  Zd as selectIssueTypeFieldValuesAttachments,
7198
7209
  el as selectIssueTypeFieldValuesAttachmentsByIds,
7199
- Kn as selectIssueTypeFieldValuesAttachmentsMapping,
7200
- si as selectIssueTypeFieldValuesById,
7201
- Ld as selectIssueTypeFieldValuesMapping,
7210
+ Wn as selectIssueTypeFieldValuesAttachmentsMapping,
7211
+ ti as selectIssueTypeFieldValuesById,
7212
+ Bd as selectIssueTypeFieldValuesMapping,
7202
7213
  vf as selectIssueTypeFieldValuesOfIssue,
7203
7214
  St as selectIssueTypeFields,
7204
7215
  bf as selectIssueTypeFieldsAttachmentById,
@@ -7211,12 +7222,12 @@ export {
7211
7222
  Df as selectIssueTypeValuesOfIssueType,
7212
7223
  cl as selectIssueTypes,
7213
7224
  Gf as selectIssueTypesByIds,
7214
- Lf as selectIssueTypesOfOrganization,
7225
+ Bf as selectIssueTypesOfOrganization,
7215
7226
  pl as selectIssueUpdateMapping,
7216
7227
  fl as selectIssueUpdatesOfIssue,
7217
7228
  mf as selectIssuesByIds,
7218
- Jn as selectIssuesOfIssueType,
7219
- Bf as selectIssuesOfIssueTypeCount,
7229
+ Yn as selectIssuesOfIssueType,
7230
+ Lf as selectIssuesOfIssueTypeCount,
7220
7231
  em as selectLatestAssetProcedureFieldsOfAssetProcedure,
7221
7232
  Qm as selectLatestAssetTypeFieldsOfAssetType,
7222
7233
  Vp as selectLatestFormRevisionOfForm,
@@ -7231,16 +7242,16 @@ export {
7231
7242
  ty as selectOrganizationAccessById,
7232
7243
  iy as selectOrganizationAccessForUser,
7233
7244
  vl as selectOrganizationAccessUserMapping,
7234
- ta as selectOrganizationAccesses,
7245
+ ea as selectOrganizationAccesses,
7235
7246
  ry as selectOrganizationById,
7236
7247
  Nl as selectOrganizationUsersAsMapping,
7237
- Bl as selectOrganizationUsersIds,
7238
- Ll as selectOrganizations,
7248
+ Ll as selectOrganizationUsersIds,
7249
+ Bl as selectOrganizations,
7239
7250
  Gl as selectOrganizationsMapping,
7240
7251
  dy as selectOrganizationsWithAccess,
7241
7252
  ny as selectProjectAccessById,
7242
7253
  ay as selectProjectAccessForUser,
7243
- na as selectProjectAccessMapping,
7254
+ ia as selectProjectAccessMapping,
7244
7255
  ql as selectProjectAccessUserMapping,
7245
7256
  kl as selectProjectAccesses,
7246
7257
  au as selectProjectAttachmentById,
@@ -7249,7 +7260,7 @@ export {
7249
7260
  Fy as selectProjectFileById,
7250
7261
  fu as selectProjectFileMapping,
7251
7262
  yu as selectProjectFiles,
7252
- oa as selectProjectMapping,
7263
+ aa as selectProjectMapping,
7253
7264
  Vl as selectProjectUsersAsMapping,
7254
7265
  $l as selectProjectUsersIds,
7255
7266
  ly as selectProjectsOfOrganization,
@@ -7259,9 +7270,9 @@ export {
7259
7270
  cy as selectSortedProjectUsers,
7260
7271
  ft as selectStageMapping,
7261
7272
  Re as selectTeamById,
7262
- ya as selectTeams,
7273
+ fa as selectTeams,
7263
7274
  Py as selectTeamsByIds,
7264
- fa as selectTeamsMapping,
7275
+ pa as selectTeamsMapping,
7265
7276
  Ey as selectTeamsOfOrganization,
7266
7277
  ky as selectTeamsOfUser,
7267
7278
  Fr as selectUploadUrl,
@@ -7272,7 +7283,7 @@ export {
7272
7283
  rA as separateImageFromFields,
7273
7284
  mu as setActiveProjectFileId,
7274
7285
  Om as setAsset,
7275
- mo as setAssetAttachment,
7286
+ ho as setAssetAttachment,
7276
7287
  zh as setAssetAttachments,
7277
7288
  bm as setAssetProcedure,
7278
7289
  rm as setAssetProcedureFieldValues,
@@ -7281,15 +7292,15 @@ export {
7281
7292
  dm as setAssetProcedureFieldValuesMany,
7282
7293
  Yh as setAssetProcedureFields,
7283
7294
  Gh as setAssetProcedureFieldsAttachment,
7284
- Lh as setAssetProcedureFieldsAttachments,
7295
+ Bh as setAssetProcedureFieldsAttachments,
7285
7296
  Jh as setAssetProcedureFieldsMany,
7286
7297
  mm as setAssetProcedureInstance,
7287
7298
  pm as setAssetProcedureInstances,
7288
7299
  Sm as setAssetProcedures,
7289
- lc as setAssetStage,
7300
+ dc as setAssetStage,
7290
7301
  Em as setAssetStages,
7291
7302
  lp as setAssetType,
7292
- fc as setAssetTypeAttachment,
7303
+ pc as setAssetTypeAttachment,
7293
7304
  xm as setAssetTypeAttachments,
7294
7305
  op as setAssetTypeFieldValues,
7295
7306
  tp as setAssetTypeFieldValuesAttachment,
@@ -7301,11 +7312,11 @@ export {
7301
7312
  Km as setAssetTypeFieldsMany,
7302
7313
  up as setAssetTypes,
7303
7314
  vm as setAssets,
7304
- lo as setConversation,
7315
+ ro as setConversation,
7305
7316
  Jf as setCurrentUser,
7306
- ir as setDocumentAttachment,
7317
+ sr as setDocumentAttachment,
7307
7318
  Op as setDocumentAttachments,
7308
- lr as setDocuments,
7319
+ dr as setDocuments,
7309
7320
  Up as setForm,
7310
7321
  jr as setFormRevision,
7311
7322
  Dp as setFormRevisionAttachment,
@@ -7314,14 +7325,14 @@ export {
7314
7325
  Wp as setFormSubmissionAttachment,
7315
7326
  Kp as setFormSubmissionAttachments,
7316
7327
  Xp as setFormSubmissions,
7317
- Le as setGeoImage,
7328
+ Be as setGeoImage,
7318
7329
  id as setGeoImages,
7319
7330
  hu as setIsImportingProjectFile,
7320
7331
  sf as setIssueAssociation,
7321
7332
  tf as setIssueAssociations,
7322
7333
  _d as setIssueAttachment,
7323
7334
  cf as setIssueAttachments,
7324
- Ns as setIssueComment,
7335
+ Ls as setIssueComment,
7325
7336
  vd as setIssueComments,
7326
7337
  Ne as setIssueType,
7327
7338
  Tf as setIssueTypeFieldValues,
@@ -7333,7 +7344,7 @@ export {
7333
7344
  yf as setIssueTypeFieldsAttachments,
7334
7345
  Pf as setIssueTypeFieldsMany,
7335
7346
  Nf as setIssueUpdate,
7336
- Yc as setLoggedIn,
7347
+ Kc as setLoggedIn,
7337
7348
  Ul as setOrganizations,
7338
7349
  Xf as setProfilePicture,
7339
7350
  eu as setProjectAttachment,
@@ -7346,52 +7357,52 @@ export {
7346
7357
  Ap as setTokens,
7347
7358
  Rr as setUploadUrl,
7348
7359
  bl as setUsers,
7349
- Qa as shallowEqual,
7360
+ Xa as shallowEqual,
7350
7361
  kh as slugify,
7351
7362
  Eh as spacesToDashesLower,
7352
7363
  Tu as teamReducer,
7353
- pa as teamSlice,
7364
+ ma as teamSlice,
7354
7365
  Ph as toFileNameSafeString,
7355
- ao as toOfflineIdRecord,
7366
+ no as toOfflineIdRecord,
7356
7367
  qh as truncate,
7357
7368
  Ve as updateAsset,
7358
7369
  $h as updateAssetAttachment,
7359
- po as updateAssetAttachments,
7370
+ mo as updateAssetAttachments,
7360
7371
  $e as updateAssetProcedure,
7361
7372
  Ce as updateAssetProcedureFieldValues,
7362
7373
  am as updateAssetProcedureFieldValuesAttachment,
7363
- Do as updateAssetProcedureFieldValuesAttachments,
7364
- Uo as updateAssetProcedureFieldValuesMany,
7365
- Po as updateAssetProcedureFields,
7366
- Bh as updateAssetProcedureFieldsAttachment,
7367
- To as updateAssetProcedureFieldsAttachments,
7374
+ jo as updateAssetProcedureFieldValuesAttachments,
7375
+ Vo as updateAssetProcedureFieldValuesMany,
7376
+ wo as updateAssetProcedureFields,
7377
+ Lh as updateAssetProcedureFieldsAttachment,
7378
+ So as updateAssetProcedureFieldsAttachments,
7368
7379
  Xh as updateAssetProcedureFieldsMany,
7369
7380
  ze as updateAssetProcedureInstance,
7370
7381
  hm as updateAssetProcedureInstances,
7371
7382
  gm as updateAssetProcedures,
7372
7383
  is as updateAssetStage,
7373
- nc as updateAssetStageCompletion,
7374
- ac as updateAssetStageCompletions,
7384
+ ic as updateAssetStageCompletion,
7385
+ nc as updateAssetStageCompletions,
7375
7386
  Qe as updateAssetStages,
7376
7387
  Ge as updateAssetType,
7377
7388
  Cm as updateAssetTypeAttachment,
7378
- yc as updateAssetTypeAttachments,
7389
+ fc as updateAssetTypeAttachments,
7379
7390
  Ue as updateAssetTypeFieldValues,
7380
7391
  ip as updateAssetTypeFieldValuesAttachment,
7381
- xc as updateAssetTypeFieldValuesAttachments,
7382
- Lc as updateAssetTypeFieldValuesMany,
7383
- kc as updateAssetTypeFields,
7392
+ Mc as updateAssetTypeFieldValuesAttachments,
7393
+ Gc as updateAssetTypeFieldValuesMany,
7394
+ Ec as updateAssetTypeFields,
7384
7395
  Gm as updateAssetTypeFieldsAttachment,
7385
- Fc as updateAssetTypeFieldsAttachments,
7396
+ Rc as updateAssetTypeFieldsAttachments,
7386
7397
  Ym as updateAssetTypeFieldsMany,
7387
7398
  mp as updateAssetTypes,
7388
7399
  Fm as updateAssets,
7389
- Qc as updateCategory,
7390
- uo as updateConversation,
7400
+ Xc as updateCategory,
7401
+ lo as updateConversation,
7391
7402
  vp as updateDocumentAttachment,
7392
- nr as updateDocumentAttachments,
7403
+ ir as updateDocumentAttachments,
7393
7404
  le as updateDocuments,
7394
- Lp as updateForm,
7405
+ Bp as updateForm,
7395
7406
  xp as updateFormRevisionAttachment,
7396
7407
  wr as updateFormRevisionAttachments,
7397
7408
  Xr as updateFormSubmission,
@@ -7406,7 +7417,7 @@ export {
7406
7417
  rf as updateIssueAttachment,
7407
7418
  bd as updateIssueAttachments,
7408
7419
  al as updateIssueType,
7409
- Be as updateIssueTypeFieldValues,
7420
+ Le as updateIssueTypeFieldValues,
7410
7421
  $f as updateIssueTypeFieldValuesAttachment,
7411
7422
  Qd as updateIssueTypeFieldValuesAttachments,
7412
7423
  Ff as updateIssueTypeFieldValuesMany,
@@ -7420,11 +7431,11 @@ export {
7420
7431
  wl as updateProjectAccess,
7421
7432
  Ay as updateProjectAttachment,
7422
7433
  su as updateProjectAttachments,
7423
- gi as updateProjectFile,
7434
+ Ai as updateProjectFile,
7424
7435
  Ty as updateProjectFiles,
7425
- bi as updateTeam,
7436
+ _i as updateTeam,
7426
7437
  Tl as userReducer,
7427
- Zn as userSlice,
7438
+ Qn as userSlice,
7428
7439
  Ou as versioningReducer,
7429
7440
  Fu as versioningSlice
7430
7441
  };