@overmap-ai/core 1.0.78-view-sets.39 → 1.0.78-view-sets.40

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.
@@ -2,7 +2,7 @@ var zr = Object.defineProperty;
2
2
  var Dr = (t, e, s) => e in t ? zr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var A = (t, e, s) => Dr(t, typeof e != "symbol" ? e + "" : e, s);
4
4
  import "@redux-offline/redux-offline/lib/types";
5
- import { createAction as Ut, createSlice as P, isAnyOf as O, createSelector as p, combineReducers as Pa, compose as xr } from "@reduxjs/toolkit";
5
+ import { createAction as Ut, createSlice as P, isAnyOf as O, createSelector as m, combineReducers as Pa, compose as xr } from "@reduxjs/toolkit";
6
6
  import Ge from "superagent";
7
7
  import { v4 as Le } from "uuid";
8
8
  import { saveAs as Vr } from "file-saver";
@@ -19,54 +19,54 @@ import { DepGraph as Hr } from "dependency-graph";
19
19
  import "@tiptap/core";
20
20
  const Wr = Object.freeze([]), Kr = Object.freeze({});
21
21
  var Yr = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(Yr || {}), u = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(u || {}), Jr = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(Jr || {}), Ta = /* @__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))(Ta || {}), Fa = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(Fa || {}), j = /* @__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))(j || {});
22
- const Tm = Fa.BACKLOG, Fm = Ta.MEDIUM, Zr = 6e4;
22
+ const Tp = Fa.BACKLOG, Fp = Ta.MEDIUM, Zr = 6e4;
23
23
  function F(t) {
24
24
  return {
25
- addOne: (h, m) => {
26
- const f = t(m.payload);
27
- h.instances[f] = m.payload;
25
+ addOne: (h, p) => {
26
+ const f = t(p.payload);
27
+ h.instances[f] = p.payload;
28
28
  },
29
- addMany: (h, m) => {
30
- for (const f of m.payload) {
29
+ addMany: (h, p) => {
30
+ for (const f of p.payload) {
31
31
  const g = t(f);
32
32
  h.instances[g] = f;
33
33
  }
34
34
  },
35
- setOne: (h, m) => {
36
- const f = t(m.payload);
37
- h.instances[f] = m.payload;
35
+ setOne: (h, p) => {
36
+ const f = t(p.payload);
37
+ h.instances[f] = p.payload;
38
38
  },
39
- setMany: (h, m) => {
40
- for (const f of m.payload) {
39
+ setMany: (h, p) => {
40
+ for (const f of p.payload) {
41
41
  const g = t(f);
42
42
  h.instances[g] = f;
43
43
  }
44
44
  },
45
- updateOne: (h, m) => {
46
- const f = t(m.payload);
47
- h.instances[f] = m.payload;
45
+ updateOne: (h, p) => {
46
+ const f = t(p.payload);
47
+ h.instances[f] = p.payload;
48
48
  },
49
- updateMany: (h, m) => {
50
- for (const f of m.payload) {
49
+ updateMany: (h, p) => {
50
+ for (const f of p.payload) {
51
51
  const g = t(f);
52
52
  h.instances[g] = f;
53
53
  }
54
54
  },
55
- deleteOne: (h, m) => {
56
- delete h.instances[m.payload];
55
+ deleteOne: (h, p) => {
56
+ delete h.instances[p.payload];
57
57
  },
58
- deleteMany: (h, m) => {
59
- for (const f of m.payload)
58
+ deleteMany: (h, p) => {
59
+ for (const f of p.payload)
60
60
  delete h.instances[f];
61
61
  },
62
- initialize: (h, m) => {
62
+ initialize: (h, p) => {
63
63
  h.instances = {};
64
64
  const f = /* @__PURE__ */ new Set();
65
- for (const g of m.payload) {
65
+ for (const g of p.payload) {
66
66
  const S = t(g);
67
67
  f.add(S), h.instances[S] = g;
68
68
  }
69
- f.size !== m.payload.length && console.warn("duplicate ids detected when initializing model instances.");
69
+ f.size !== p.payload.length && console.warn("duplicate ids detected when initializing model instances.");
70
70
  },
71
71
  getInitialState: (h) => ({
72
72
  ...h,
@@ -74,7 +74,7 @@ function F(t) {
74
74
  })
75
75
  };
76
76
  }
77
- function Om() {
77
+ function Op() {
78
78
  return {
79
79
  initializeSelection: (l, c) => {
80
80
  l.selection = Array.from(new Set(c.payload));
@@ -149,17 +149,17 @@ class Qr {
149
149
  throw new Error("`finally` not implemented");
150
150
  }
151
151
  }
152
- const Im = (t) => ({
152
+ const Ip = (t) => ({
153
153
  type: "Point",
154
154
  coordinates: t
155
- }), Rm = (t) => ({
155
+ }), Rp = (t) => ({
156
156
  type: "MultiPoint",
157
157
  coordinates: t
158
- }), vm = (t, e) => t[0] === e[0] && t[1] === e[1];
158
+ }), vp = (t, e) => t[0] === e[0] && t[1] === e[1];
159
159
  let Tt = !1;
160
160
  const Xr = "";
161
161
  ["true", "1"].includes(Xr.toLowerCase()) && (Tt = !0);
162
- function wm(t, e) {
162
+ function wp(t, e) {
163
163
  if (t === e) return !0;
164
164
  if (typeof t != typeof e)
165
165
  return !1;
@@ -179,7 +179,7 @@ function Oa(t) {
179
179
  return s in e ? (Tt && console.debug(`Memoization debug: Using memorized return value for ${t.toString()}(`, s, ")"), e[s]) : (Tt && console.debug(`Memoization debug: Cache miss! Memoizing ${t.toString()}(`, s, ")"), e[s] = t.apply(this, s));
180
180
  };
181
181
  }
182
- function km(t, e) {
182
+ function kp(t, e) {
183
183
  if (t.length !== e.length) return !1;
184
184
  for (let s = 0; s < t.length; s++)
185
185
  if (t[s] !== e[s]) return !1;
@@ -189,7 +189,7 @@ const b = (t) => t.length === 0 ? Wr : t, zt = (t) => Object.keys(t).length ===
189
189
  if (!t) return "";
190
190
  const e = new Date(t), s = e.getFullYear() === Dt.getFullYear(), i = { day: "numeric", month: "short" };
191
191
  return s || (i.year = "numeric"), e.toLocaleDateString([], i);
192
- }), tc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), sc = 1e3 * 86400, Dt = /* @__PURE__ */ new Date(), Em = (t) => new Date(t).toDateString() === Dt.toDateString(), Mm = Oa((t, e, s) => {
192
+ }), tc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), sc = 1e3 * 86400, Dt = /* @__PURE__ */ new Date(), Ep = (t) => new Date(t).toDateString() === Dt.toDateString(), Mp = Oa((t, e, s) => {
193
193
  const i = Math.round((new Date(t).getTime() - Dt.getTime()) / sc);
194
194
  return i < e || i > s ? ec(t) : tc.format(i, "days");
195
195
  });
@@ -219,7 +219,7 @@ function Ke(t) {
219
219
  }, i.readAsArrayBuffer(t);
220
220
  });
221
221
  }
222
- function qm(t) {
222
+ function qp(t) {
223
223
  if (!t.name || !t.type || !t.size) {
224
224
  const e = "File has no name, type, and/or size";
225
225
  throw new Error(e);
@@ -229,11 +229,11 @@ function qm(t) {
229
229
  function ac(t, e) {
230
230
  return new File([t], e, { type: t.type });
231
231
  }
232
- function jm(t, e) {
232
+ function jp(t, e) {
233
233
  const s = document.createElement("a");
234
234
  s.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(e)), s.setAttribute("download", t), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
235
235
  }
236
- const Um = async (t) => {
236
+ const Up = async (t) => {
237
237
  const e = {};
238
238
  for (const s of t) {
239
239
  const i = await Ke(s);
@@ -245,19 +245,19 @@ const Um = async (t) => {
245
245
  };
246
246
  }
247
247
  return Object.values(e);
248
- }, nc = async (t) => (await fetch(t)).blob(), zm = (t) => new Promise((e, s) => {
248
+ }, nc = async (t) => (await fetch(t)).blob(), zp = (t) => new Promise((e, s) => {
249
249
  const i = new FileReader();
250
250
  i.onloadend = () => {
251
251
  var a;
252
252
  e(((a = i.result) == null ? void 0 : a.toString()) || "");
253
253
  }, i.readAsDataURL(t);
254
254
  });
255
- function Dm(t) {
255
+ function Dp(t) {
256
256
  const e = new Blob([t]);
257
257
  Vr(e, t.name);
258
258
  }
259
259
  const Zt = {};
260
- function xm(t, e, s, ...i) {
260
+ function xp(t, e, s, ...i) {
261
261
  const a = Zt[t];
262
262
  let n = !1;
263
263
  a ? a[e] || (a[e] = !0, n = !0) : (Zt[t] = { [e]: !0 }, n = !0), n && console[s](...i);
@@ -272,7 +272,7 @@ function cc(t) {
272
272
  e[s.uuid] = s;
273
273
  return e;
274
274
  }
275
- function Vm(t, e = void 0, s = 255) {
275
+ function Vp(t, e = void 0, s = 255) {
276
276
  let i = t.replace(/[^a-z0-9_\-.]/gi, "_").replace(/_{2,}/g, "_");
277
277
  if (!e) {
278
278
  const n = t.split(".");
@@ -282,13 +282,13 @@ function Vm(t, e = void 0, s = 255) {
282
282
  const a = e ? e.length : 0;
283
283
  return i.length + a > s && (i = i.slice(0, s - a) + (e || "")), i;
284
284
  }
285
- function Cm(t) {
285
+ function Cp(t) {
286
286
  return t.toLowerCase().replace(" ", "-");
287
287
  }
288
- function $m(t, e = !1) {
288
+ function $p(t, e = !1) {
289
289
  return t.normalize("NFKD").toLowerCase().replace(/[^\w\s-]/g, "").trim().replace(/[-\s]+/g, e ? "_" : "-");
290
290
  }
291
- function Gm(t, e) {
291
+ function Gp(t, e) {
292
292
  if (t.length <= e)
293
293
  return t;
294
294
  const s = t.slice(0, e - 1);
@@ -298,10 +298,10 @@ const y = (t) => (e) => (s) => t(s, e);
298
298
  function oc(t, e, s) {
299
299
  return s.findIndex((i) => i.uuid === t.uuid) === e;
300
300
  }
301
- function Bm(t, e, s) {
301
+ function Bp(t, e, s) {
302
302
  return s.findIndex((i) => i.file_sha1 === t.file_sha1) === e;
303
303
  }
304
- const Lm = /^.+@.+\..+$/;
304
+ const Lp = /^.+@.+\..+$/;
305
305
  function k(t) {
306
306
  const e = { ...t };
307
307
  for (const s of [...rc, "created_by"])
@@ -331,22 +331,22 @@ const $ = F(
331
331
  }), {
332
332
  initializeConversations: dc,
333
333
  addConversation: uc,
334
- addConversations: Nm,
334
+ addConversations: Np,
335
335
  setConversation: lc,
336
- setConversations: Hm,
336
+ setConversations: Hp,
337
337
  updateConversation: hc,
338
- updateConversations: Wm,
339
- deleteConversation: Km,
340
- deleteConversations: Ym
341
- } = Ia.actions, Ra = (t) => t.agentsReducer.instances, Jm = p(
338
+ updateConversations: Wp,
339
+ deleteConversation: Kp,
340
+ deleteConversations: Yp
341
+ } = Ia.actions, Ra = (t) => t.agentsReducer.instances, Jp = m(
342
342
  [Ra],
343
343
  (t) => Object.values(t)
344
- ), Zm = y(
345
- p(
344
+ ), Zp = y(
345
+ m(
346
346
  [Ra, (t, e) => e],
347
347
  (t, e) => t[e]
348
348
  )
349
- ), pc = Ia.reducer, G = F(
349
+ ), mc = Ia.reducer, G = F(
350
350
  (t) => t.uuid
351
351
  ), Xt = G.getInitialState({}), va = P({
352
352
  name: "assetAttachments",
@@ -368,19 +368,19 @@ const $ = F(
368
368
  }
369
369
  }), {
370
370
  initializeAssetAttachments: es,
371
- addAssetAttachment: Qm,
371
+ addAssetAttachment: Qp,
372
372
  addAssetAttachments: wa,
373
- setAssetAttachment: mc,
374
- setAssetAttachments: Xm,
373
+ setAssetAttachment: pc,
374
+ setAssetAttachments: Xp,
375
375
  updateAssetAttachment: ef,
376
376
  updateAssetAttachments: fc,
377
377
  deleteAssetAttachment: Ac,
378
378
  deleteAssetAttachments: ka
379
- } = va.actions, yc = (t) => t.assetAttachmentReducer.instances, bc = p(
379
+ } = va.actions, yc = (t) => t.assetAttachmentReducer.instances, bc = m(
380
380
  [yc],
381
381
  (t) => Object.values(t)
382
382
  ), gc = (t) => (e) => e.assetAttachmentReducer.instances[t], Sc = y(
383
- p([bc, (t, e) => e], (t, e) => b(t.filter(({ asset: s }) => e === s)))
383
+ m([bc, (t, e) => e], (t, e) => b(t.filter(({ asset: s }) => e === s)))
384
384
  ), _c = va.reducer, B = F((t) => t.uuid), ts = B.getInitialState({}), Ea = P({
385
385
  name: "assetProcedureAttachments",
386
386
  initialState: ts,
@@ -409,11 +409,11 @@ const $ = F(
409
409
  updateAssetProcedureAttachments: Oc,
410
410
  deleteAssetProcedureAttachment: Ic,
411
411
  deleteAssetProcedureAttachments: Rc
412
- } = Ea.actions, vc = Ea.reducer, wc = (t) => t.assetProcedureAttachmentReducer.instances, kc = p(
412
+ } = Ea.actions, vc = Ea.reducer, wc = (t) => t.assetProcedureAttachmentReducer.instances, kc = m(
413
413
  [wc],
414
414
  (t) => Object.values(t)
415
415
  ), Ec = (t) => (e) => e.assetProcedureAttachmentReducer.instances[t], nf = y(
416
- p(
416
+ m(
417
417
  [kc, (t, e) => e],
418
418
  (t, e) => b(t.filter(({ asset_procedure: s }) => e === s))
419
419
  )
@@ -445,11 +445,11 @@ const $ = F(
445
445
  updateAssetProcedureFieldsAttachments: jc,
446
446
  deleteAssetProcedureFieldsAttachment: uf,
447
447
  deleteAssetProcedureFieldsAttachments: Uc
448
- } = Ma.actions, zc = (t) => t.assetProcedureFieldsAttachmentReducer.instances, Dc = p(
448
+ } = Ma.actions, zc = (t) => t.assetProcedureFieldsAttachmentReducer.instances, Dc = m(
449
449
  [zc],
450
450
  (t) => Object.values(t)
451
451
  ), lf = y(
452
- p(
452
+ m(
453
453
  [Dc, (t, e) => e],
454
454
  (t, e) => b(t.filter((s) => s.fields_revision === e))
455
455
  )
@@ -476,23 +476,23 @@ const $ = F(
476
476
  }), {
477
477
  initializeAssetProcedureFields: Vc,
478
478
  addAssetProcedureFields: Cc,
479
- addAssetProcedureFieldsMany: pf,
480
- setAssetProcedureFields: mf,
479
+ addAssetProcedureFieldsMany: mf,
480
+ setAssetProcedureFields: pf,
481
481
  setAssetProcedureFieldsMany: ff,
482
482
  updateAssetProcedureFields: $c,
483
483
  updateAssetProcedureFieldsMany: Af,
484
484
  deleteAssetProcedureFields: Gc,
485
485
  deleteAssetProcedureFieldsMany: yf
486
- } = qa.actions, Bc = (t) => t.assetProcedureFieldsReducer.instances, ja = p(
486
+ } = qa.actions, Bc = (t) => t.assetProcedureFieldsReducer.instances, ja = m(
487
487
  [Bc],
488
488
  (t) => Object.values(t)
489
489
  ), bf = y(
490
- p(
490
+ m(
491
491
  [ja, (t, e) => e],
492
492
  (t, e) => b(t.filter((s) => s.asset_procedure === e))
493
493
  )
494
494
  ), gf = y(
495
- p([ja, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
495
+ m([ja, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
496
496
  ), Sf = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], Lc = qa.reducer, H = F((t) => t.uuid), as = H.getInitialState({}), Ua = P({
497
497
  name: "assetProcedureFieldValuesAttachments",
498
498
  initialState: as,
@@ -521,11 +521,11 @@ const $ = F(
521
521
  updateAssetProcedureFieldValuesAttachments: Hc,
522
522
  deleteAssetProcedureFieldValuesAttachment: Of,
523
523
  deleteAssetProcedureFieldValuesAttachments: Ot
524
- } = Ua.actions, za = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances, Wc = p(
524
+ } = Ua.actions, za = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances, Wc = m(
525
525
  [za],
526
526
  (t) => Object.values(t)
527
527
  ), If = (t) => (e) => e.assetProcedureFieldValuesAttachmentReducer.instances[t], Kc = y(
528
- p(
528
+ m(
529
529
  [
530
530
  za,
531
531
  (t, e) => e
@@ -536,7 +536,7 @@ const $ = F(
536
536
  }
537
537
  )
538
538
  ), Yc = y(
539
- p(
539
+ m(
540
540
  [Wc, (t, e) => e],
541
541
  (t, e) => b(t.filter((s) => s.field_values === e))
542
542
  )
@@ -568,13 +568,13 @@ const $ = F(
568
568
  updateAssetProcedureFieldValuesMany: Xc,
569
569
  deleteAssetProcedureFieldValues: cs,
570
570
  deleteAssetProcedureFieldValuesMany: eo
571
- } = Da.actions, to = Da.reducer, so = (t) => t.assetProcedureFieldValuesReducer.instances, xa = p(
571
+ } = Da.actions, to = Da.reducer, so = (t) => t.assetProcedureFieldValuesReducer.instances, xa = m(
572
572
  [so],
573
573
  (t) => Object.values(t)
574
574
  ), wf = y(
575
- p([xa, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
575
+ m([xa, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
576
576
  ), kf = y(
577
- p(
577
+ m(
578
578
  [xa, (t, e) => e],
579
579
  (t, e) => b(t.filter((s) => s.asset_procedure_instance === e))
580
580
  )
@@ -606,11 +606,11 @@ const $ = F(
606
606
  deleteAssetProcedureInstances: no,
607
607
  setAssetProcedureInstance: Mf,
608
608
  setAssetProcedureInstances: qf
609
- } = Va.actions, ro = Va.reducer, Ca = (t) => t.assetProcedureInstanceReducer.instances, $a = p(
609
+ } = Va.actions, ro = Va.reducer, Ca = (t) => t.assetProcedureInstanceReducer.instances, $a = m(
610
610
  [Ca],
611
611
  (t) => Object.values(t)
612
612
  ), co = y(
613
- p(
613
+ m(
614
614
  [$a, (t, e) => e],
615
615
  (t, e) => b(
616
616
  t.filter(
@@ -619,14 +619,14 @@ const $ = F(
619
619
  )
620
620
  )
621
621
  ), jf = y(
622
- p(
622
+ m(
623
623
  [$a, (t, e) => e],
624
624
  (t, e) => b(
625
625
  t.filter((s) => s.asset_type === e)
626
626
  )
627
627
  )
628
628
  ), hs = (t) => (e) => e.assetProcedureInstanceReducer.instances[t], Uf = y(
629
- p(
629
+ m(
630
630
  [Ca, (t, e) => e],
631
631
  (t, e) => {
632
632
  const s = [];
@@ -639,12 +639,12 @@ const $ = F(
639
639
  )
640
640
  ), Y = F(
641
641
  (t) => t.uuid
642
- ), ps = Y.getInitialState({}), Ga = P({
642
+ ), ms = Y.getInitialState({}), Ga = P({
643
643
  name: "assetProcedures",
644
- initialState: ps,
644
+ initialState: ms,
645
645
  extraReducers: (t) => t.addMatcher(
646
646
  O(_, I),
647
- (e) => Object.assign(e, ps)
647
+ (e) => Object.assign(e, ms)
648
648
  ),
649
649
  reducers: {
650
650
  initializeAssetProcedures: Y.initialize,
@@ -659,7 +659,7 @@ const $ = F(
659
659
  }
660
660
  }), {
661
661
  initializeAssetProcedures: oo,
662
- addAssetProcedure: ms,
662
+ addAssetProcedure: ps,
663
663
  addAssetProcedures: zf,
664
664
  updateAssetProcedure: Xe,
665
665
  updateAssetProcedures: Df,
@@ -667,11 +667,11 @@ const $ = F(
667
667
  deleteAssetProcedures: xf,
668
668
  setAssetProcedure: Vf,
669
669
  setAssetProcedures: Cf
670
- } = Ga.actions, uo = Ga.reducer, Ba = (t) => t.assetProcedureReducer.instances, lo = p(
670
+ } = Ga.actions, uo = Ga.reducer, Ba = (t) => t.assetProcedureReducer.instances, lo = m(
671
671
  [Ba],
672
672
  (t) => Object.values(t)
673
673
  ), As = (t) => (e) => e.assetProcedureReducer.instances[t], $f = y(
674
- p(
674
+ m(
675
675
  [Ba, (t, e) => e],
676
676
  (t, e) => {
677
677
  const s = [];
@@ -683,7 +683,7 @@ const $ = F(
683
683
  }
684
684
  )
685
685
  ), Gf = y(
686
- p([lo, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
686
+ m([lo, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
687
687
  ), J = F((t) => t.uuid), ys = J.getInitialState(
688
688
  {}
689
689
  ), La = P({
@@ -707,18 +707,18 @@ const $ = F(
707
707
  }), {
708
708
  initializeAssetProcedureStepFieldsAttachments: ho,
709
709
  addAssetProcedureStepFieldsAttachment: Bf,
710
- addAssetProcedureStepFieldsAttachments: po,
710
+ addAssetProcedureStepFieldsAttachments: mo,
711
711
  setAssetProcedureStepFieldsAttachment: Lf,
712
712
  setAssetProcedureStepFieldsAttachments: Nf,
713
713
  updateAssetProcedureStepFieldsAttachment: Hf,
714
- updateAssetProcedureStepFieldsAttachments: mo,
714
+ updateAssetProcedureStepFieldsAttachments: po,
715
715
  deleteAssetProcedureStepFieldsAttachment: Wf,
716
716
  deleteAssetProcedureStepFieldsAttachments: fo
717
- } = La.actions, Ao = (t) => t.assetProcedureStepFieldsAttachmentReducer.instances, yo = p(
717
+ } = La.actions, Ao = (t) => t.assetProcedureStepFieldsAttachmentReducer.instances, yo = m(
718
718
  [Ao],
719
719
  (t) => Object.values(t)
720
720
  ), Kf = y(
721
- p(
721
+ m(
722
722
  [yo, (t, e) => e],
723
723
  (t, e) => b(t.filter((s) => s.fields_revision === e))
724
724
  )
@@ -750,20 +750,20 @@ const $ = F(
750
750
  updateAssetProcedureStepFieldsMany: Xf,
751
751
  deleteAssetProcedureStepFields: Ss,
752
752
  deleteAssetProcedureStepFieldsMany: eA
753
- } = Na.actions, Ha = (t) => t.assetProcedureStepFieldsReducer.instances, Wa = p(
753
+ } = Na.actions, Ha = (t) => t.assetProcedureStepFieldsReducer.instances, Wa = m(
754
754
  [Ha],
755
755
  (t) => Object.values(t)
756
756
  ), tA = y(
757
- p(
757
+ m(
758
758
  [Wa, (t, e) => e],
759
759
  (t, e) => b(t.filter((s) => s.asset_procedure_step === e))
760
760
  )
761
761
  ), sA = y(
762
- p(
762
+ m(
763
763
  [Wa, (t, e) => e],
764
764
  (t, e) => t.filter((s) => s.asset_procedure_step === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0]
765
765
  )
766
- ), iA = p(
766
+ ), iA = m(
767
767
  [Ha],
768
768
  (t) => {
769
769
  const e = {};
@@ -801,11 +801,11 @@ const $ = F(
801
801
  updateAssetProcedureStepFieldValuesAttachments: Po,
802
802
  deleteAssetProcedureStepFieldValuesAttachment: dA,
803
803
  deleteAssetProcedureStepFieldValuesAttachments: Rt
804
- } = Ka.actions, Ya = (t) => t.assetProcedureStepFieldValuesAttachmentReducer.instances, To = p(
804
+ } = Ka.actions, Ya = (t) => t.assetProcedureStepFieldValuesAttachmentReducer.instances, To = m(
805
805
  [Ya],
806
806
  (t) => Object.values(t)
807
807
  ), uA = (t) => (e) => e.assetProcedureStepFieldValuesAttachmentReducer.instances[t], Fo = y(
808
- p(
808
+ m(
809
809
  [
810
810
  Ya,
811
811
  (t, e) => e
@@ -816,7 +816,7 @@ const $ = F(
816
816
  }
817
817
  )
818
818
  ), Oo = y(
819
- p(
819
+ m(
820
820
  [To, (t, e) => e],
821
821
  (t, e) => b(t.filter((s) => s.field_values === e))
822
822
  )
@@ -848,23 +848,23 @@ const $ = F(
848
848
  updateAssetProcedureStepFieldValuesMany: wo,
849
849
  deleteAssetProcedureStepFieldValues: Fs,
850
850
  deleteAssetProcedureStepFieldValuesMany: ko
851
- } = Ja.actions, Eo = (t) => t.assetProcedureStepFieldValuesReducer.instances, xt = p(
851
+ } = Ja.actions, Eo = (t) => t.assetProcedureStepFieldValuesReducer.instances, xt = m(
852
852
  [Eo],
853
853
  (t) => Object.values(t)
854
- ), pA = y(
855
- p(
854
+ ), mA = y(
855
+ m(
856
856
  [xt, (t, e) => e],
857
857
  (t, e) => b(t.filter((s) => s.asset === e))
858
858
  )
859
- ), mA = y(
860
- p(
859
+ ), pA = y(
860
+ m(
861
861
  [xt, (t, e) => e],
862
862
  (t, e) => b(
863
863
  t.filter((s) => s.asset_procedure_instance === e)
864
864
  )
865
865
  )
866
866
  ), fA = y(
867
- p(
867
+ m(
868
868
  [xt, (t, e) => e],
869
869
  (t, e) => b(t.filter((s) => s.asset_procedure_step === e))
870
870
  )
@@ -894,12 +894,12 @@ const $ = F(
894
894
  setAssetProcedureSteps: AA,
895
895
  addAssetProcedureStep: Rs,
896
896
  addAssetProcedureSteps: yA,
897
- updateAssetProcedureStep: mt,
897
+ updateAssetProcedureStep: pt,
898
898
  updateAssetProcedureSteps: bA,
899
899
  deleteAssetProcedureStep: vs,
900
900
  deleteAssetProcedureSteps: gA
901
- } = Za.actions, Uo = Za.reducer, Vt = (t) => t.assetProcedureStepReducer.instances, ws = (t) => (e) => e.assetProcedureStepReducer.instances[t], zo = p([Vt], (t) => Object.values(t)), SA = y(
902
- p(
901
+ } = Za.actions, Uo = Za.reducer, Vt = (t) => t.assetProcedureStepReducer.instances, ws = (t) => (e) => e.assetProcedureStepReducer.instances[t], zo = m([Vt], (t) => Object.values(t)), SA = y(
902
+ m(
903
903
  [Vt, (t, e) => e],
904
904
  (t, e) => {
905
905
  const s = {};
@@ -909,9 +909,9 @@ const $ = F(
909
909
  }
910
910
  )
911
911
  ), _A = y(
912
- p([zo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
912
+ m([zo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
913
913
  ), PA = y(
914
- p(
914
+ m(
915
915
  [Vt, (t, e) => e],
916
916
  (t, e) => {
917
917
  const s = [];
@@ -950,10 +950,10 @@ const $ = F(
950
950
  deleteAssets: Xa,
951
951
  setAsset: FA,
952
952
  setAssets: OA
953
- } = Qa.actions, en = (t) => t.assetReducer.instances, xo = p([en], (t) => b(Object.values(t))), tn = y(
954
- p([xo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
953
+ } = Qa.actions, en = (t) => t.assetReducer.instances, xo = m([en], (t) => b(Object.values(t))), tn = y(
954
+ m([xo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
955
955
  ), qs = (t) => (e) => e.assetReducer.instances[t], Vo = y(
956
- p([en, (t, e) => e], (t, e) => {
956
+ m([en, (t, e) => e], (t, e) => {
957
957
  const s = [];
958
958
  for (const i of e) {
959
959
  const a = t[i];
@@ -991,11 +991,11 @@ const $ = F(
991
991
  updateAssetStageCompletions: Bo,
992
992
  deleteAssetStageCompletion: Ds,
993
993
  deleteAssetStageCompletions: xs
994
- } = sn.actions, Lo = sn.reducer, an = (t) => t.assetStageCompletionReducer.instances, wA = p(
994
+ } = sn.actions, Lo = sn.reducer, an = (t) => t.assetStageCompletionReducer.instances, wA = m(
995
995
  [an],
996
996
  (t) => Object.values(t)
997
997
  ), No = (t) => (e) => e.assetStageCompletionReducer.instances[t], Ho = y(
998
- p(
998
+ m(
999
999
  [an, (t, e) => e],
1000
1000
  (t, e) => {
1001
1001
  const s = new Set(e);
@@ -1034,17 +1034,17 @@ const $ = F(
1034
1034
  updateAssetStages: MA,
1035
1035
  deleteAssetStage: $s,
1036
1036
  deleteAssetStages: qA
1037
- } = nn.actions, Yo = nn.reducer, Ct = (t) => t.assetStageReducer.instances, Gs = (t) => (e) => e.assetStageReducer.instances[t], Jo = p([Ct], (t) => Object.values(t)), jA = y(
1038
- p([Ct, (t, e) => e], (t, e) => {
1037
+ } = nn.actions, Yo = nn.reducer, Ct = (t) => t.assetStageReducer.instances, Gs = (t) => (e) => e.assetStageReducer.instances[t], Jo = m([Ct], (t) => Object.values(t)), jA = y(
1038
+ m([Ct, (t, e) => e], (t, e) => {
1039
1039
  const s = {};
1040
1040
  for (const [i, a] of Object.entries(t))
1041
1041
  a.asset_procedure === e && (s[i] = a);
1042
1042
  return zt(s);
1043
1043
  })
1044
1044
  ), UA = y(
1045
- p([Jo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
1045
+ m([Jo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
1046
1046
  ), zA = y(
1047
- p([Ct, (t, e) => e], (t, e) => {
1047
+ m([Ct, (t, e) => e], (t, e) => {
1048
1048
  const s = [];
1049
1049
  for (const i of e) {
1050
1050
  const a = t[i];
@@ -1082,11 +1082,11 @@ const $ = F(
1082
1082
  updateAssetTypeAttachments: Xo,
1083
1083
  deleteAssetTypeAttachment: ed,
1084
1084
  deleteAssetTypeAttachments: on
1085
- } = rn.actions, td = (t) => t.assetTypeAttachmentReducer.instances, sd = p(
1085
+ } = rn.actions, td = (t) => t.assetTypeAttachmentReducer.instances, sd = m(
1086
1086
  [td],
1087
1087
  (t) => Object.values(t)
1088
1088
  ), id = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], ad = y(
1089
- p([sd, (t, e) => e], (t, e) => b(t.filter(({ asset_type: s }) => e === s)))
1089
+ m([sd, (t, e) => e], (t, e) => b(t.filter(({ asset_type: s }) => e === s)))
1090
1090
  ), nd = rn.reducer, ne = F((t) => t.uuid), Ls = ne.getInitialState({}), dn = P({
1091
1091
  name: "assetTypeFieldsAttachments",
1092
1092
  initialState: Ls,
@@ -1115,11 +1115,11 @@ const $ = F(
1115
1115
  updateAssetTypeFieldsAttachments: od,
1116
1116
  deleteAssetTypeFieldsAttachment: LA,
1117
1117
  deleteAssetTypeFieldsAttachments: dd
1118
- } = dn.actions, ud = (t) => t.assetTypeFieldsAttachmentReducer.instances, ld = p(
1118
+ } = dn.actions, ud = (t) => t.assetTypeFieldsAttachmentReducer.instances, ld = m(
1119
1119
  [ud],
1120
1120
  (t) => Object.values(t)
1121
1121
  ), NA = y(
1122
- p(
1122
+ m(
1123
1123
  [ld, (t, e) => e],
1124
1124
  (t, e) => b(t.filter((s) => s.fields_revision === e))
1125
1125
  )
@@ -1144,8 +1144,8 @@ const $ = F(
1144
1144
  deleteAssetTypeFieldsMany: re.deleteMany
1145
1145
  }
1146
1146
  }), {
1147
- initializeAssetTypeFields: pd,
1148
- addAssetTypeFields: md,
1147
+ initializeAssetTypeFields: md,
1148
+ addAssetTypeFields: pd,
1149
1149
  addAssetTypeFieldsMany: WA,
1150
1150
  setAssetTypeFields: KA,
1151
1151
  setAssetTypeFieldsMany: YA,
@@ -1153,10 +1153,10 @@ const $ = F(
1153
1153
  updateAssetTypeFieldsMany: JA,
1154
1154
  deleteAssetTypeFields: Ad,
1155
1155
  deleteAssetTypeFieldsMany: ZA
1156
- } = un.actions, yd = (t) => t.assetTypeFieldsReducer.instances, $t = p([yd], (t) => Object.values(t)), QA = y(
1157
- p([$t, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
1156
+ } = un.actions, yd = (t) => t.assetTypeFieldsReducer.instances, $t = m([yd], (t) => Object.values(t)), QA = y(
1157
+ m([$t, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
1158
1158
  ), XA = y(
1159
- p([$t, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
1159
+ m([$t, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
1160
1160
  ), ey = (t) => (e) => e.assetTypeFieldsReducer.instances[t], bd = un.reducer, ce = F((t) => t.uuid), Hs = ce.getInitialState({}), ln = P({
1161
1161
  name: "assetTypeFieldValuesAttachments",
1162
1162
  initialState: Hs,
@@ -1185,11 +1185,11 @@ const $ = F(
1185
1185
  updateAssetTypeFieldValuesAttachments: Sd,
1186
1186
  deleteAssetTypeFieldValuesAttachment: ny,
1187
1187
  deleteAssetTypeFieldValuesAttachments: kt
1188
- } = ln.actions, hn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, _d = p(
1188
+ } = ln.actions, hn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, _d = m(
1189
1189
  [hn],
1190
1190
  (t) => Object.values(t)
1191
1191
  ), ry = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], Pd = y(
1192
- p(
1192
+ m(
1193
1193
  [hn, (t, e) => e],
1194
1194
  (t, e) => {
1195
1195
  const s = new Set(e);
@@ -1199,13 +1199,13 @@ const $ = F(
1199
1199
  }
1200
1200
  )
1201
1201
  ), Td = y(
1202
- p(
1202
+ m(
1203
1203
  [_d, (t, e) => e],
1204
1204
  (t, e) => b(t.filter((s) => s.field_values === e))
1205
1205
  )
1206
1206
  ), Fd = ln.reducer, oe = F(
1207
1207
  (t) => t.uuid
1208
- ), Ws = oe.getInitialState({}), pn = P({
1208
+ ), Ws = oe.getInitialState({}), mn = P({
1209
1209
  name: "assetTypeFieldValues",
1210
1210
  initialState: Ws,
1211
1211
  extraReducers: (t) => t.addMatcher(
@@ -1233,11 +1233,11 @@ const $ = F(
1233
1233
  updateAssetTypeFieldValuesMany: Rd,
1234
1234
  deleteAssetTypeFieldValues: Ys,
1235
1235
  deleteAssetTypeFieldValuesMany: vd
1236
- } = pn.actions, wd = (t) => t.assetTypeFieldValuesReducer.instances, mn = p([wd], (t) => Object.values(t)), dy = y(
1237
- p([mn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
1236
+ } = mn.actions, wd = (t) => t.assetTypeFieldValuesReducer.instances, pn = m([wd], (t) => Object.values(t)), dy = y(
1237
+ m([pn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
1238
1238
  ), uy = y(
1239
- p(
1240
- [$t, mn, (t, e) => e],
1239
+ m(
1240
+ [$t, pn, (t, e) => e],
1241
1241
  (t, e, s) => {
1242
1242
  const i = new Set(
1243
1243
  t.filter((a) => a.asset_type === s).map((a) => a.uuid)
@@ -1245,7 +1245,7 @@ const $ = F(
1245
1245
  return b(e.filter((a) => i.has(a.fields_revision)));
1246
1246
  }
1247
1247
  )
1248
- ), Js = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], kd = pn.reducer, de = F((t) => t.uuid), Zs = de.getInitialState({}), fn = P({
1248
+ ), Js = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], kd = mn.reducer, de = F((t) => t.uuid), Zs = de.getInitialState({}), fn = P({
1249
1249
  name: "assetTypes",
1250
1250
  initialState: Zs,
1251
1251
  extraReducers: (t) => t.addMatcher(
@@ -1268,16 +1268,16 @@ const $ = F(
1268
1268
  setAssetType: ly,
1269
1269
  setAssetTypes: hy,
1270
1270
  addAssetType: Qs,
1271
- addAssetTypes: py,
1271
+ addAssetTypes: my,
1272
1272
  updateAssetType: at,
1273
- updateAssetTypes: my,
1273
+ updateAssetTypes: py,
1274
1274
  deleteAssetType: Xs,
1275
1275
  deleteAssetTypes: fy
1276
- } = fn.actions, An = (t) => t.assetTypeReducer.instances, Md = p(
1276
+ } = fn.actions, An = (t) => t.assetTypeReducer.instances, Md = m(
1277
1277
  [An],
1278
1278
  (t) => Object.values(t)
1279
1279
  ), ei = (t) => (e) => e.assetTypeReducer.instances[t], Ay = y(
1280
- p(
1280
+ m(
1281
1281
  [An, (t, e) => e],
1282
1282
  (t, e) => {
1283
1283
  const s = [];
@@ -1289,7 +1289,7 @@ const $ = F(
1289
1289
  }
1290
1290
  )
1291
1291
  ), yy = y(
1292
- p([Md, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
1292
+ m([Md, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
1293
1293
  ), qd = fn.reducer, ti = {
1294
1294
  accessToken: "",
1295
1295
  refreshToken: "",
@@ -1337,8 +1337,8 @@ const $ = F(
1337
1337
  updateCategories: Oy,
1338
1338
  deleteCategory: xd,
1339
1339
  deleteCategories: Iy
1340
- } = yn.actions, bn = (t) => t.categoryReducer.instances, Vd = p([bn], (t) => Object.values(t)), ai = (t) => (e) => e.categoryReducer.instances[t], Ry = y(
1341
- p([bn, (t, e) => e], (t, e) => {
1340
+ } = yn.actions, bn = (t) => t.categoryReducer.instances, Vd = m([bn], (t) => Object.values(t)), ai = (t) => (e) => e.categoryReducer.instances[t], Ry = y(
1341
+ m([bn, (t, e) => e], (t, e) => {
1342
1342
  const s = [];
1343
1343
  for (const i of e) {
1344
1344
  const a = t[i];
@@ -1347,7 +1347,7 @@ const $ = F(
1347
1347
  return b(s);
1348
1348
  })
1349
1349
  ), vy = y(
1350
- p([Vd, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1350
+ m([Vd, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1351
1351
  ), Cd = yn.reducer, le = F(
1352
1352
  (t) => t.uuid
1353
1353
  ), ni = le.getInitialState({}), gn = P({
@@ -1375,11 +1375,11 @@ const $ = F(
1375
1375
  updateDocumentAttachments: Ld,
1376
1376
  deleteDocumentAttachment: Nd,
1377
1377
  deleteDocumentAttachments: Hd
1378
- } = gn.actions, Wd = (t) => t.documentAttachmentReducer.instances, Kd = p(
1378
+ } = gn.actions, Wd = (t) => t.documentAttachmentReducer.instances, Kd = m(
1379
1379
  [Wd],
1380
1380
  (t) => Object.values(t)
1381
1381
  ), Yd = (t) => (e) => e.documentAttachmentReducer.instances[t], My = y(
1382
- p([Kd, (t, e) => e], (t, e) => b(t.filter(({ document: s }) => e === s)))
1382
+ m([Kd, (t, e) => e], (t, e) => b(t.filter(({ document: s }) => e === s)))
1383
1383
  ), Jd = gn.reducer, ri = {
1384
1384
  documents: {}
1385
1385
  }, Sn = P({
@@ -1450,11 +1450,11 @@ const $ = F(
1450
1450
  }
1451
1451
  }
1452
1452
  }
1453
- }), { setDocuments: Zd, addDocuments: Qd, updateDocuments: He, removeDocuments: ci } = Sn.actions, Bt = (t) => t.documentsReducer.documents, _n = p(
1453
+ }), { setDocuments: Zd, addDocuments: Qd, updateDocuments: He, removeDocuments: ci } = Sn.actions, Bt = (t) => t.documentsReducer.documents, _n = m(
1454
1454
  [Bt],
1455
1455
  (t) => Object.values(t)
1456
1456
  ), Xd = (t) => (e) => e.documentsReducer.documents[t], qy = y(
1457
- p([Bt, (t, e) => e], (t, e) => {
1457
+ m([Bt, (t, e) => e], (t, e) => {
1458
1458
  const s = [];
1459
1459
  for (const i of e) {
1460
1460
  const a = t[i];
@@ -1463,9 +1463,9 @@ const $ = F(
1463
1463
  return b(s);
1464
1464
  })
1465
1465
  ), jy = y(
1466
- p([_n, (t, e) => e], (t, e) => t.filter((s) => s.project === e))
1466
+ m([_n, (t, e) => e], (t, e) => t.filter((s) => s.project === e))
1467
1467
  ), Uy = y(
1468
- p([_n, (t, e) => e], (t, e) => t.filter((s) => s.organization === e))
1468
+ m([_n, (t, e) => e], (t, e) => t.filter((s) => s.organization === e))
1469
1469
  ), eu = Sn.reducer, he = F(
1470
1470
  (t) => t.uuid
1471
1471
  ), oi = he.getInitialState({}), Pn = P({
@@ -1496,8 +1496,8 @@ const $ = F(
1496
1496
  updateEmailDomains: Cy,
1497
1497
  deleteEmailDomain: iu,
1498
1498
  deleteEmailDomains: $y
1499
- } = Pn.actions, au = (t) => t.emailDomainsReducer.instances, nu = p([au], (t) => Object.values(t)), Gy = y(
1500
- p([nu, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
1499
+ } = Pn.actions, au = (t) => t.emailDomainsReducer.instances, nu = m([au], (t) => Object.values(t)), Gy = y(
1500
+ m([nu, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
1501
1501
  ), ru = Pn.reducer, di = {
1502
1502
  s3Urls: {}
1503
1503
  }, Tn = 1e3 * 60 * 60, cu = Tn * 24 * 7, Fn = P({
@@ -1521,7 +1521,7 @@ const $ = F(
1521
1521
  const i = (/* @__PURE__ */ new Date()).getTime();
1522
1522
  if (!((s.exp ?? i) - i < Tn))
1523
1523
  return s;
1524
- }, uu = Fn.reducer, pe = F((t) => t.uuid), ui = pe.getInitialState({}), On = P({
1524
+ }, uu = Fn.reducer, me = F((t) => t.uuid), ui = me.getInitialState({}), On = P({
1525
1525
  name: "formRevisionAttachments",
1526
1526
  initialState: ui,
1527
1527
  extraReducers: (t) => t.addMatcher(
@@ -1529,15 +1529,15 @@ const $ = F(
1529
1529
  (e) => Object.assign(e, ui)
1530
1530
  ),
1531
1531
  reducers: {
1532
- initializeFormRevisionAttachments: pe.initialize,
1533
- addFormRevisionAttachment: pe.addOne,
1534
- addFormRevisionAttachments: pe.addMany,
1535
- setFormRevisionAttachment: pe.setOne,
1536
- setFormRevisionAttachments: pe.setMany,
1537
- updateFormRevisionAttachment: pe.updateOne,
1538
- updateFormRevisionAttachments: pe.updateMany,
1539
- deleteFormRevisionAttachment: pe.deleteOne,
1540
- deleteFormRevisionAttachments: pe.deleteMany
1532
+ initializeFormRevisionAttachments: me.initialize,
1533
+ addFormRevisionAttachment: me.addOne,
1534
+ addFormRevisionAttachments: me.addMany,
1535
+ setFormRevisionAttachment: me.setOne,
1536
+ setFormRevisionAttachments: me.setMany,
1537
+ updateFormRevisionAttachment: me.updateOne,
1538
+ updateFormRevisionAttachments: me.updateMany,
1539
+ deleteFormRevisionAttachment: me.deleteOne,
1540
+ deleteFormRevisionAttachments: me.deleteMany
1541
1541
  }
1542
1542
  }), {
1543
1543
  initializeFormRevisionAttachments: lu,
@@ -1546,14 +1546,14 @@ const $ = F(
1546
1546
  setFormRevisionAttachment: Ly,
1547
1547
  setFormRevisionAttachments: Ny,
1548
1548
  updateFormRevisionAttachment: Hy,
1549
- updateFormRevisionAttachments: pu,
1549
+ updateFormRevisionAttachments: mu,
1550
1550
  deleteFormRevisionAttachment: Wy,
1551
- deleteFormRevisionAttachments: mu
1551
+ deleteFormRevisionAttachments: pu
1552
1552
  } = On.actions, fu = (t) => t.formRevisionAttachmentReducer.instances, Ky = y(
1553
- p([fu, (t, e) => e], (t, e) => b(
1553
+ m([fu, (t, e) => e], (t, e) => b(
1554
1554
  Object.values(t).filter((s) => s.form_revision === e)
1555
1555
  ))
1556
- ), Au = On.reducer, me = F((t) => t.uuid), li = me.getInitialState({}), In = P({
1556
+ ), Au = On.reducer, pe = F((t) => t.uuid), li = pe.getInitialState({}), In = P({
1557
1557
  name: "formRevisions",
1558
1558
  initialState: li,
1559
1559
  extraReducers: (t) => t.addMatcher(
@@ -1561,15 +1561,15 @@ const $ = F(
1561
1561
  (e) => Object.assign(e, li)
1562
1562
  ),
1563
1563
  reducers: {
1564
- initializeFormRevisions: me.initialize,
1565
- addFormRevision: me.addOne,
1566
- addFormRevisions: me.addMany,
1567
- setFormRevision: me.setOne,
1568
- setFormRevisions: me.setMany,
1569
- updateFormRevision: me.updateOne,
1570
- updateFormRevisions: me.updateMany,
1571
- deleteFormRevision: me.deleteOne,
1572
- deleteFormRevisions: me.deleteMany
1564
+ initializeFormRevisions: pe.initialize,
1565
+ addFormRevision: pe.addOne,
1566
+ addFormRevisions: pe.addMany,
1567
+ setFormRevision: pe.setOne,
1568
+ setFormRevisions: pe.setMany,
1569
+ updateFormRevision: pe.updateOne,
1570
+ updateFormRevisions: pe.updateMany,
1571
+ deleteFormRevision: pe.deleteOne,
1572
+ deleteFormRevisions: pe.deleteMany
1573
1573
  }
1574
1574
  }), {
1575
1575
  initializeFormRevisions: yu,
@@ -1581,13 +1581,13 @@ const $ = F(
1581
1581
  updateFormRevisions: Zy,
1582
1582
  deleteFormRevision: vn,
1583
1583
  deleteFormRevisions: Su
1584
- } = In.actions, wn = (t) => t.formRevisionReducer.instances, kn = p(
1584
+ } = In.actions, wn = (t) => t.formRevisionReducer.instances, kn = m(
1585
1585
  [wn],
1586
1586
  (t) => Object.values(t)
1587
1587
  ), Qy = (t) => (e) => e.formRevisionReducer.instances[t], Xy = y(
1588
- p([kn, (t, e) => e], (t, e) => t.filter((s) => s.form === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
1588
+ m([kn, (t, e) => e], (t, e) => t.filter((s) => s.form === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
1589
1589
  ), _u = y(
1590
- p(
1590
+ m(
1591
1591
  [kn, (t, e) => e],
1592
1592
  (t, e) => b(t.filter((s) => s.form === e))
1593
1593
  )
@@ -1611,16 +1611,16 @@ const $ = F(
1611
1611
  }
1612
1612
  }), {
1613
1613
  initializeForms: Tu,
1614
- addForm: pi,
1614
+ addForm: mi,
1615
1615
  addForms: eb,
1616
1616
  setForm: tb,
1617
1617
  setForms: sb,
1618
1618
  updateForm: ib,
1619
1619
  updateForms: ab,
1620
- deleteForm: mi,
1620
+ deleteForm: pi,
1621
1621
  deleteForms: nb
1622
- } = En.actions, Fu = En.reducer, Ou = (t) => t.formReducer.instances, Iu = p([Ou], (t) => Object.values(t)), Ru = (t) => (e) => e.formReducer.instances[t], rb = y(
1623
- p([Iu, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
1622
+ } = En.actions, Fu = En.reducer, Ou = (t) => t.formReducer.instances, Iu = m([Ou], (t) => Object.values(t)), Ru = (t) => (e) => e.formReducer.instances[t], rb = y(
1623
+ m([Iu, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
1624
1624
  ), Ae = F((t) => t.uuid), fi = Ae.getInitialState({}), Mn = P({
1625
1625
  name: "formSubmissionAttachments",
1626
1626
  initialState: fi,
@@ -1649,11 +1649,11 @@ const $ = F(
1649
1649
  updateFormSubmissionAttachments: wu,
1650
1650
  deleteFormSubmissionAttachment: lb,
1651
1651
  deleteFormSubmissionAttachments: Mt
1652
- } = Mn.actions, ku = (t) => t.formSubmissionAttachmentReducer.instances, qn = p(
1652
+ } = Mn.actions, ku = (t) => t.formSubmissionAttachmentReducer.instances, qn = m(
1653
1653
  [ku],
1654
1654
  (t) => Object.values(t)
1655
1655
  ), Eu = y(
1656
- p(
1656
+ m(
1657
1657
  [qn, (t, e) => e],
1658
1658
  (t, e) => {
1659
1659
  const s = new Set(e);
@@ -1663,7 +1663,7 @@ const $ = F(
1663
1663
  }
1664
1664
  )
1665
1665
  ), Mu = y(
1666
- p(
1666
+ m(
1667
1667
  [qn, (t, e) => e],
1668
1668
  (t, e) => b(
1669
1669
  t.filter((s) => s.form_submission === e)
@@ -1696,14 +1696,14 @@ const $ = F(
1696
1696
  addFormSubmission: yi,
1697
1697
  addFormSubmissions: Lt,
1698
1698
  updateFormSubmission: Uu,
1699
- updateFormSubmissions: pb,
1699
+ updateFormSubmissions: mb,
1700
1700
  deleteFormSubmission: bi,
1701
1701
  deleteFormSubmissions: Nt
1702
- } = jn.actions, Un = (t) => t.formSubmissionReducer.instances, zn = p(
1702
+ } = jn.actions, Un = (t) => t.formSubmissionReducer.instances, zn = m(
1703
1703
  [Un],
1704
1704
  (t) => Object.values(t)
1705
1705
  ), gi = (t) => (e) => e.formSubmissionReducer.instances[t], zu = y(
1706
- p(
1706
+ m(
1707
1707
  [Un, wn, (t, e) => e],
1708
1708
  (t, e, s) => {
1709
1709
  const i = /* @__PURE__ */ new Set();
@@ -1715,9 +1715,9 @@ const $ = F(
1715
1715
  }
1716
1716
  )
1717
1717
  ), Du = y(
1718
- p([zn, (t, e) => e], (t, e) => Object.values(t).filter((s) => s.issue === e))
1718
+ m([zn, (t, e) => e], (t, e) => Object.values(t).filter((s) => s.issue === e))
1719
1719
  ), xu = y(
1720
- p([zn, (t, e) => e], (t, e) => t.filter((s) => s.asset === e))
1720
+ m([zn, (t, e) => e], (t, e) => t.filter((s) => s.asset === e))
1721
1721
  ), Vu = jn.reducer, be = F((t) => t.uuid), Si = be.getInitialState({}), Dn = P({
1722
1722
  name: "geoImages",
1723
1723
  initialState: Si,
@@ -1743,11 +1743,11 @@ const $ = F(
1743
1743
  addGeoImage: Gu,
1744
1744
  addGeoImages: Bu,
1745
1745
  updateGeoImage: Lu,
1746
- updateGeoImages: mb,
1746
+ updateGeoImages: pb,
1747
1747
  deleteGeoImage: _i,
1748
1748
  deleteGeoImages: Nu
1749
- } = Dn.actions, Hu = (t) => t.geoImageReducer.instances, Wu = p([Hu], (t) => Object.values(t)), Pi = (t) => (e) => e.geoImageReducer.instances[t], fb = y(
1750
- p([Wu, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1749
+ } = Dn.actions, Hu = (t) => t.geoImageReducer.instances, Wu = m([Hu], (t) => Object.values(t)), Pi = (t) => (e) => e.geoImageReducer.instances[t], fb = y(
1750
+ m([Wu, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1751
1751
  ), Ku = Dn.reducer, ge = F(
1752
1752
  (t) => t.uuid
1753
1753
  ), Ti = ge.getInitialState({}), xn = P({
@@ -1778,21 +1778,21 @@ const $ = F(
1778
1778
  addIssueAssociations: Vn,
1779
1779
  deleteIssueAssociation: Oi,
1780
1780
  deleteIssueAssociations: Cn
1781
- } = xn.actions, pt = (t) => t.issueAssociationReducer.instances, gb = p([pt], (t) => Object.values(t)), Zu = (t) => (e) => e.issueAssociationReducer.instances[t], Qu = y(
1782
- p(
1783
- [pt, (t, e) => e],
1781
+ } = xn.actions, mt = (t) => t.issueAssociationReducer.instances, gb = m([mt], (t) => Object.values(t)), Zu = (t) => (e) => e.issueAssociationReducer.instances[t], Qu = y(
1782
+ m(
1783
+ [mt, (t, e) => e],
1784
1784
  (t, e) => b(
1785
1785
  Object.values(t).filter((s) => s.associated_issue === e)
1786
1786
  )
1787
1787
  )
1788
1788
  ), Xu = y(
1789
- p(
1790
- [pt, (t, e) => e],
1789
+ m(
1790
+ [mt, (t, e) => e],
1791
1791
  (t, e) => b(Object.values(t).filter((s) => s.issue === e))
1792
1792
  )
1793
1793
  ), el = y(
1794
- p(
1795
- [pt, (t, e) => e],
1794
+ m(
1795
+ [mt, (t, e) => e],
1796
1796
  (t, e) => b(Object.values(t).filter((s) => s.asset === e))
1797
1797
  )
1798
1798
  ), tl = xn.reducer, Se = F(
@@ -1825,11 +1825,11 @@ const $ = F(
1825
1825
  updateIssueAttachments: il,
1826
1826
  deleteIssueAttachment: al,
1827
1827
  deleteIssueAttachments: Bn
1828
- } = $n.actions, nl = (t) => t.issueAttachmentReducer.instances, rl = p(
1828
+ } = $n.actions, nl = (t) => t.issueAttachmentReducer.instances, rl = m(
1829
1829
  [nl],
1830
1830
  (t) => Object.values(t)
1831
1831
  ), cl = y(
1832
- p(
1832
+ m(
1833
1833
  [rl, (t, e) => e],
1834
1834
  (t, e) => b(t.filter(({ issue: s }) => e === s))
1835
1835
  )
@@ -1859,13 +1859,13 @@ const $ = F(
1859
1859
  setIssueCommentAttachments: Fb,
1860
1860
  updateIssueCommentAttachment: Ob,
1861
1861
  updateIssueCommentAttachments: hl,
1862
- deleteIssueCommentAttachment: pl,
1863
- deleteIssueCommentAttachments: ml
1864
- } = Ln.actions, fl = (t) => t.issueCommentAttachmentReducer.instances, Al = p(
1862
+ deleteIssueCommentAttachment: ml,
1863
+ deleteIssueCommentAttachments: pl
1864
+ } = Ln.actions, fl = (t) => t.issueCommentAttachmentReducer.instances, Al = m(
1865
1865
  [fl],
1866
1866
  (t) => Object.values(t)
1867
1867
  ), yl = (t) => (e) => e.issueCommentAttachmentReducer.instances[t], Ib = y(
1868
- p([Al, (t, e) => e], (t, e) => b(t.filter(({ issue_comment: s }) => e === s)))
1868
+ m([Al, (t, e) => e], (t, e) => b(t.filter(({ issue_comment: s }) => e === s)))
1869
1869
  ), bl = Ln.reducer, Pe = F((t) => t.uuid), ki = Pe.getInitialState({}), Nn = P({
1870
1870
  name: "issueComments",
1871
1871
  initialState: ki,
@@ -1895,7 +1895,7 @@ const $ = F(
1895
1895
  deleteIssueComment: qi,
1896
1896
  deleteIssueComments: Eb
1897
1897
  } = Nn.actions, Sl = (t) => t.issueCommentReducer.instances, ji = (t) => (e) => e.issueCommentReducer.instances[t], Mb = y(
1898
- p(
1898
+ m(
1899
1899
  [Sl, (t, e) => e],
1900
1900
  (t, e) => b(
1901
1901
  Object.values(t).filter((s) => s.issue === e)
@@ -1929,11 +1929,11 @@ const $ = F(
1929
1929
  updateIssues: Ub,
1930
1930
  deleteIssue: Di,
1931
1931
  deleteIssues: Fl
1932
- } = Hn.actions, Wn = (t) => t.issueReducer.instances, Kn = p(
1932
+ } = Hn.actions, Wn = (t) => t.issueReducer.instances, Kn = m(
1933
1933
  [Wn],
1934
1934
  (t) => Object.values(t)
1935
1935
  ), xi = (t) => (e) => e.issueReducer.instances[t], zb = y(
1936
- p([Wn, (t, e) => e], (t, e) => {
1936
+ m([Wn, (t, e) => e], (t, e) => {
1937
1937
  const s = [];
1938
1938
  for (const i of e) {
1939
1939
  const a = t[i];
@@ -1942,9 +1942,9 @@ const $ = F(
1942
1942
  return b(s);
1943
1943
  })
1944
1944
  ), Db = y(
1945
- p([Kn, (t, e) => e], (t, e) => t.filter((s) => s.project === e))
1945
+ m([Kn, (t, e) => e], (t, e) => t.filter((s) => s.project === e))
1946
1946
  ), Ol = y(
1947
- p([Kn, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e))
1947
+ m([Kn, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e))
1948
1948
  ), Il = Hn.reducer, Fe = F(
1949
1949
  (t) => t.uuid
1950
1950
  ), Vi = Fe.getInitialState({}), Yn = P({
@@ -1975,11 +1975,11 @@ const $ = F(
1975
1975
  updateIssueTypeAttachments: wl,
1976
1976
  deleteIssueTypeAttachment: kl,
1977
1977
  deleteIssueTypeAttachments: El
1978
- } = Yn.actions, Ml = (t) => t.issueTypeAttachmentReducer.instances, ql = p(
1978
+ } = Yn.actions, Ml = (t) => t.issueTypeAttachmentReducer.instances, ql = m(
1979
1979
  [Ml],
1980
1980
  (t) => Object.values(t)
1981
1981
  ), jl = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], $b = y(
1982
- p([ql, (t, e) => e], (t, e) => b(t.filter(({ issue_type: s }) => e === s)))
1982
+ m([ql, (t, e) => e], (t, e) => b(t.filter(({ issue_type: s }) => e === s)))
1983
1983
  ), Ul = Yn.reducer, Oe = F((t) => t.uuid), $i = Oe.getInitialState({}), Jn = P({
1984
1984
  name: "issueTypeFieldsAttachments",
1985
1985
  initialState: $i,
@@ -2008,11 +2008,11 @@ const $ = F(
2008
2008
  updateIssueTypeFieldsAttachments: xl,
2009
2009
  deleteIssueTypeFieldsAttachment: Hb,
2010
2010
  deleteIssueTypeFieldsAttachments: Vl
2011
- } = Jn.actions, Cl = (t) => t.issueTypeFieldsAttachmentReducer.instances, $l = p(
2011
+ } = Jn.actions, Cl = (t) => t.issueTypeFieldsAttachmentReducer.instances, $l = m(
2012
2012
  [Cl],
2013
2013
  (t) => Object.values(t)
2014
2014
  ), Wb = y(
2015
- p(
2015
+ m(
2016
2016
  [$l, (t, e) => e],
2017
2017
  (t, e) => b(t.filter((s) => s.fields_revision === e))
2018
2018
  )
@@ -2046,8 +2046,8 @@ const $ = F(
2046
2046
  updateIssueTypeFieldValuesMany: Qb,
2047
2047
  deleteIssueTypeFieldValues: Li,
2048
2048
  deleteIssueTypeFieldValuesMany: Xb
2049
- } = Zn.actions, Ll = (t) => t.issueTypeFieldValuesReducer.instances, Qn = p([Ll], (t) => Object.values(t)), eg = y(
2050
- p([Qn, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
2049
+ } = Zn.actions, Ll = (t) => t.issueTypeFieldValuesReducer.instances, Qn = m([Ll], (t) => Object.values(t)), eg = y(
2050
+ m([Qn, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
2051
2051
  ), Ni = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Nl = Zn.reducer, Re = F(
2052
2052
  (t) => t.uuid
2053
2053
  ), Hi = Re.getInitialState({}), Xn = P({
@@ -2078,12 +2078,12 @@ const $ = F(
2078
2078
  updateIssueTypeFieldsMany: ag,
2079
2079
  deleteIssueTypeFields: Yl,
2080
2080
  deleteIssueTypeFieldsMany: ng
2081
- } = Xn.actions, Jl = (t) => t.issueTypeFieldsReducer.instances, Ht = p([Jl], (t) => Object.values(t)), rg = y(
2082
- p([Ht, (t, e) => e], (t, e) => b(t.filter((s) => s.issue_type === e)))
2081
+ } = Xn.actions, Jl = (t) => t.issueTypeFieldsReducer.instances, Ht = m([Jl], (t) => Object.values(t)), rg = y(
2082
+ m([Ht, (t, e) => e], (t, e) => b(t.filter((s) => s.issue_type === e)))
2083
2083
  ), cg = y(
2084
- p([Ht, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
2084
+ m([Ht, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
2085
2085
  ), og = y(
2086
- p(
2086
+ m(
2087
2087
  [Ht, Qn, (t, e) => e],
2088
2088
  (t, e, s) => {
2089
2089
  const i = new Set(
@@ -2116,15 +2116,15 @@ const $ = F(
2116
2116
  addIssueTypeFieldValuesAttachments: qt,
2117
2117
  setIssueTypeFieldValuesAttachment: lg,
2118
2118
  setIssueTypeFieldValuesAttachments: hg,
2119
- updateIssueTypeFieldValuesAttachment: pg,
2119
+ updateIssueTypeFieldValuesAttachment: mg,
2120
2120
  updateIssueTypeFieldValuesAttachments: Xl,
2121
- deleteIssueTypeFieldValuesAttachment: mg,
2121
+ deleteIssueTypeFieldValuesAttachment: pg,
2122
2122
  deleteIssueTypeFieldValuesAttachments: jt
2123
- } = er.actions, eh = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, tr = p(
2123
+ } = er.actions, eh = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, tr = m(
2124
2124
  [eh],
2125
2125
  (t) => Object.values(t)
2126
2126
  ), fg = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], th = y(
2127
- p(
2127
+ m(
2128
2128
  [tr, (t, e) => e],
2129
2129
  (t, e) => {
2130
2130
  const s = new Set(e);
@@ -2132,7 +2132,7 @@ const $ = F(
2132
2132
  }
2133
2133
  )
2134
2134
  ), sh = y(
2135
- p(
2135
+ m(
2136
2136
  [tr, (t, e) => e],
2137
2137
  (t, e) => b(t.filter((s) => s.field_values === e))
2138
2138
  )
@@ -2166,11 +2166,11 @@ const $ = F(
2166
2166
  deleteIssueType: gg,
2167
2167
  deleteIssueTypes: Sg,
2168
2168
  removeIssueType: Yi
2169
- } = sr.actions, ir = (t) => t.issueTypeReducer.instances, ch = p(
2169
+ } = sr.actions, ir = (t) => t.issueTypeReducer.instances, ch = m(
2170
2170
  ir,
2171
2171
  (t) => Object.values(t)
2172
2172
  ), Ji = (t) => (e) => e.issueTypeReducer.instances[t], _g = y(
2173
- p(
2173
+ m(
2174
2174
  [ir, (t, e) => e],
2175
2175
  (t, e) => {
2176
2176
  const s = [];
@@ -2182,7 +2182,7 @@ const $ = F(
2182
2182
  }
2183
2183
  )
2184
2184
  ), Pg = y(
2185
- p([ch, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
2185
+ m([ch, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
2186
2186
  ), oh = sr.reducer, we = F(
2187
2187
  (t) => t.uuid
2188
2188
  ), Zi = we.getInitialState({}), ar = P({
@@ -2212,12 +2212,12 @@ const $ = F(
2212
2212
  updateIssueUpdate: Og,
2213
2213
  updateIssueUpdates: Ig,
2214
2214
  deleteIssueUpdate: hh,
2215
- deleteIssueUpdates: ph
2216
- } = ar.actions, mh = (t) => t.issueUpdateReducer.instances, fh = p(
2217
- [mh],
2215
+ deleteIssueUpdates: mh
2216
+ } = ar.actions, ph = (t) => t.issueUpdateReducer.instances, fh = m(
2217
+ [ph],
2218
2218
  (t) => Object.values(t)
2219
2219
  ), Ah = y(
2220
- p([fh, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
2220
+ m([fh, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
2221
2221
  ), yh = ar.reducer, ke = F((t) => t.id), Qi = ke.getInitialState({
2222
2222
  currentUser: null
2223
2223
  }), nr = P({
@@ -2261,8 +2261,8 @@ const $ = F(
2261
2261
  deleteUsers: Mg,
2262
2262
  setCurrentUser: qg,
2263
2263
  setProfilePicture: jg
2264
- } = nr.actions, _h = nr.reducer, Ph = (t) => t.userReducer.currentUser, Wt = (t) => t.userReducer.instances, rr = p([Wt], (t) => Object.values(t)), Th = (t) => (e) => e.userReducer.instances[t], Ug = y(
2265
- p([Wt, (t, e) => e], (t, e) => {
2264
+ } = nr.actions, _h = nr.reducer, Ph = (t) => t.userReducer.currentUser, Wt = (t) => t.userReducer.instances, rr = m([Wt], (t) => Object.values(t)), Th = (t) => (e) => e.userReducer.instances[t], Ug = y(
2265
+ m([Wt, (t, e) => e], (t, e) => {
2266
2266
  const s = [];
2267
2267
  for (const i of e) {
2268
2268
  const a = t[i];
@@ -2300,18 +2300,18 @@ const $ = F(
2300
2300
  updateOrganizationAccesses: Vg,
2301
2301
  deleteOrganizationAccess: Ih,
2302
2302
  deleteOrganizationAccesses: Cg
2303
- } = cr.actions, Rh = cr.reducer, or = (t) => t.organizationAccessReducer.instances, ea = (t) => (e) => e.organizationAccessReducer.instances[t], $g = p(
2303
+ } = cr.actions, Rh = cr.reducer, or = (t) => t.organizationAccessReducer.instances, ea = (t) => (e) => e.organizationAccessReducer.instances[t], $g = m(
2304
2304
  [Ph, or],
2305
2305
  (t, e) => Object.values(e).find(
2306
2306
  (i) => i.user === (t == null ? void 0 : t.id)
2307
2307
  ) ?? null
2308
- ), vh = p([or], (t) => {
2308
+ ), vh = m([or], (t) => {
2309
2309
  const e = {};
2310
2310
  for (const s of Object.values(t))
2311
2311
  e[s.user] = s;
2312
2312
  return zt(e);
2313
2313
  }), Gg = y(
2314
- p(
2314
+ m(
2315
2315
  [Wt, vh, (t, e) => e],
2316
2316
  (t, e, s) => b(
2317
2317
  Object.values(t).filter((i) => {
@@ -2348,7 +2348,7 @@ const $ = F(
2348
2348
  updateOrganization: Eh,
2349
2349
  deleteOrganization: Wg,
2350
2350
  deleteOrganizations: Kg
2351
- } = dr.actions, Mh = (t) => t.organizationReducer.instances, Yg = p([Mh], (t) => Object.values(t)), Jg = (t) => (e) => e.organizationReducer.instances[t], qh = dr.reducer, jh = (t, e, s) => {
2351
+ } = dr.actions, Mh = (t) => t.organizationReducer.instances, Yg = m([Mh], (t) => Object.values(t)), Jg = (t) => (e) => e.organizationReducer.instances[t], qh = dr.reducer, jh = (t, e, s) => {
2352
2352
  const i = t.uuid ? t : { ...t, uuid: Le() };
2353
2353
  return {
2354
2354
  payload: i,
@@ -2424,25 +2424,25 @@ const $ = F(
2424
2424
  updateProjectAccesses: sS,
2425
2425
  deleteProjectAccess: na,
2426
2426
  deleteProjectAccesses: $h
2427
- } = lr.actions, Gh = lr.reducer, hr = (t) => t.projectAccessReducer.instances, Kt = p(
2427
+ } = lr.actions, Gh = lr.reducer, hr = (t) => t.projectAccessReducer.instances, Kt = m(
2428
2428
  hr,
2429
2429
  (t) => Object.values(t)
2430
2430
  ), ra = (t) => (e) => e.projectAccessReducer.instances[t], Bh = y(
2431
- p(
2431
+ m(
2432
2432
  [hr, (t, e) => e],
2433
2433
  (t, e) => b(
2434
2434
  Object.values(t).filter((s) => s.project === e)
2435
2435
  )
2436
2436
  )
2437
2437
  ), iS = y(
2438
- p([Kt, (t, e) => e], (t, e) => {
2438
+ m([Kt, (t, e) => e], (t, e) => {
2439
2439
  const s = {};
2440
2440
  for (const i of t.filter((a) => a.project === e))
2441
2441
  s[i.user] = i;
2442
2442
  return s;
2443
2443
  })
2444
2444
  ), aS = y(
2445
- p(
2445
+ m(
2446
2446
  [rr, Kt, (t, e) => e],
2447
2447
  (t, e, s) => {
2448
2448
  const i = new Set(e.filter((a) => a.project === s).map((a) => a.user));
@@ -2451,7 +2451,7 @@ const $ = F(
2451
2451
  )
2452
2452
  ), je = F(
2453
2453
  (t) => t.uuid
2454
- ), ca = je.getInitialState({}), pr = P({
2454
+ ), ca = je.getInitialState({}), mr = P({
2455
2455
  name: "projectAttachments",
2456
2456
  initialState: ca,
2457
2457
  extraReducers: (t) => t.addMatcher(
@@ -2478,13 +2478,13 @@ const $ = F(
2478
2478
  updateProjectAttachment: rS,
2479
2479
  updateProjectAttachments: Kh,
2480
2480
  deleteProjectAttachment: Yh,
2481
- deleteProjectAttachments: mr
2482
- } = pr.actions, Jh = (t) => t.projectAttachmentReducer.instances, Zh = p(
2481
+ deleteProjectAttachments: pr
2482
+ } = mr.actions, Jh = (t) => t.projectAttachmentReducer.instances, Zh = m(
2483
2483
  [Jh],
2484
2484
  (t) => Object.values(t)
2485
2485
  ), Qh = (t) => (e) => e.projectAttachmentReducer.instances[t], Xh = y(
2486
- p([Zh, (t, e) => e], (t, e) => b(t.filter(({ project: s }) => e === s)))
2487
- ), ep = pr.reducer, Ue = F(
2486
+ m([Zh, (t, e) => e], (t, e) => b(t.filter(({ project: s }) => e === s)))
2487
+ ), em = mr.reducer, Ue = F(
2488
2488
  (t) => t.uuid
2489
2489
  ), oa = Ue.getInitialState({
2490
2490
  activeProjectFileId: null,
@@ -2530,21 +2530,21 @@ const $ = F(
2530
2530
  }
2531
2531
  }
2532
2532
  }), {
2533
- initializeProjectFiles: tp,
2533
+ initializeProjectFiles: tm,
2534
2534
  setProjectFile: cS,
2535
2535
  setProjectFiles: oS,
2536
2536
  addProjectFile: dS,
2537
- addProjectFiles: sp,
2537
+ addProjectFiles: sm,
2538
2538
  updateProjectFile: da,
2539
2539
  updateProjectFiles: uS,
2540
- deleteProjectFile: ip,
2541
- deleteProjectFiles: ap,
2540
+ deleteProjectFile: im,
2541
+ deleteProjectFiles: am,
2542
2542
  // TODO: move following to /web
2543
- setIsImportingProjectFile: np,
2544
- setActiveProjectFileId: rp,
2545
- saveActiveProjectFileBounds: cp,
2543
+ setIsImportingProjectFile: nm,
2544
+ setActiveProjectFileId: rm,
2545
+ saveActiveProjectFileBounds: cm,
2546
2546
  resetProjectFileObjectUrls: lS
2547
- } = fr.actions, op = (t) => t.projectFileReducer.instances, dp = p([op], (t) => b(Object.values(t).sort((e, s) => e.z_index - s.z_index))), hS = (t) => (e) => e.projectFileReducer.instances[t], pS = (t) => t.projectFileReducer.activeProjectFileId, mS = (t) => t.projectFileReducer.isImportingProjectFile, up = fr.reducer, ze = F((t) => t.uuid), ua = ze.getInitialState({}), Ar = P({
2547
+ } = fr.actions, om = (t) => t.projectFileReducer.instances, dm = m([om], (t) => b(Object.values(t).sort((e, s) => e.z_index - s.z_index))), hS = (t) => (e) => e.projectFileReducer.instances[t], mS = (t) => t.projectFileReducer.activeProjectFileId, pS = (t) => t.projectFileReducer.isImportingProjectFile, um = fr.reducer, ze = F((t) => t.uuid), ua = ze.getInitialState({}), Ar = P({
2548
2548
  name: "projects",
2549
2549
  initialState: ua,
2550
2550
  extraReducers: (t) => t.addMatcher(
@@ -2563,41 +2563,41 @@ const $ = F(
2563
2563
  deleteProjects: ze.deleteMany
2564
2564
  }
2565
2565
  }), {
2566
- initializeProjects: lp,
2566
+ initializeProjects: lm,
2567
2567
  setProjects: fS,
2568
2568
  setProject: AS,
2569
2569
  addProjects: yS,
2570
2570
  addProject: la,
2571
2571
  updateProjects: bS,
2572
- updateProject: hp,
2572
+ updateProject: hm,
2573
2573
  deleteProject: ha,
2574
2574
  deleteProjects: gS
2575
- } = Ar.actions, pp = Ar.reducer, mp = (t) => t.projectReducer.instances, yr = p([mp], (t) => b(Object.values(t))), fp = (t) => (e) => e.projectReducer.instances[t], SS = y(
2576
- p([yr, Kt, (t, e) => e], (t, e, s) => {
2575
+ } = Ar.actions, mm = Ar.reducer, pm = (t) => t.projectReducer.instances, yr = m([pm], (t) => b(Object.values(t))), fm = (t) => (e) => e.projectReducer.instances[t], SS = y(
2576
+ m([yr, Kt, (t, e) => e], (t, e, s) => {
2577
2577
  const i = new Set(e.filter((a) => a.user === s).map((a) => a.project));
2578
2578
  return b(t.filter((a) => i.has(a.uuid)));
2579
2579
  })
2580
2580
  ), _S = y(
2581
- p([yr, (t, e) => e], (t, e) => b(t.filter((s) => s.organization_owner === e)))
2582
- ), Ap = {
2581
+ m([yr, (t, e) => e], (t, e) => b(t.filter((s) => s.organization_owner === e)))
2582
+ ), Am = {
2583
2583
  isRehydrated: !1
2584
2584
  }, br = P({
2585
2585
  name: "rehydrated",
2586
- initialState: Ap,
2586
+ initialState: Am,
2587
2587
  // The `reducers` field lets us define reducers and generate associated actions
2588
2588
  reducers: {
2589
2589
  setRehydrated: (t, e) => {
2590
2590
  t.isRehydrated = e.payload;
2591
2591
  }
2592
2592
  }
2593
- }), { setRehydrated: PS } = br.actions, TS = (t) => t.rehydratedReducer.isRehydrated, yp = br.reducer, De = F(
2593
+ }), { setRehydrated: PS } = br.actions, TS = (t) => t.rehydratedReducer.isRehydrated, ym = br.reducer, De = F(
2594
2594
  (t) => t.uuid
2595
- ), pa = De.getInitialState({}), gr = P({
2595
+ ), ma = De.getInitialState({}), gr = P({
2596
2596
  name: "teamMemberships",
2597
- initialState: pa,
2597
+ initialState: ma,
2598
2598
  extraReducers: (t) => t.addMatcher(
2599
2599
  O(_, I),
2600
- (e) => Object.assign(e, pa)
2600
+ (e) => Object.assign(e, ma)
2601
2601
  ),
2602
2602
  reducers: {
2603
2603
  initializeTeamMemberships: De.initialize,
@@ -2611,27 +2611,27 @@ const $ = F(
2611
2611
  deleteTeamMemberships: De.deleteMany
2612
2612
  }
2613
2613
  }), {
2614
- initializeTeamMemberships: bp,
2615
- addTeamMembership: gp,
2614
+ initializeTeamMemberships: bm,
2615
+ addTeamMembership: gm,
2616
2616
  addTeamMemberships: FS,
2617
- setTeamMembership: ma,
2617
+ setTeamMembership: pa,
2618
2618
  setTeamMemberships: OS,
2619
2619
  updateTeamMembership: IS,
2620
2620
  updateTeamMemberships: RS,
2621
2621
  deleteTeamMembership: fa,
2622
2622
  deleteTeamMemberships: vS
2623
- } = gr.actions, Sp = gr.reducer, _p = (t) => t.teamMembershipReducer.instances, Sr = p(
2624
- [_p],
2623
+ } = gr.actions, Sm = gr.reducer, _m = (t) => t.teamMembershipReducer.instances, Sr = m(
2624
+ [_m],
2625
2625
  (t) => Object.values(t)
2626
- ), Pp = (t) => (e) => e.teamMembershipReducer.instances[t], wS = y(
2627
- p([Sr, (t, e) => e], (t, e) => {
2626
+ ), Pm = (t) => (e) => e.teamMembershipReducer.instances[t], wS = y(
2627
+ m([Sr, (t, e) => e], (t, e) => {
2628
2628
  const s = {};
2629
2629
  for (const i of t.filter((a) => a.team === e))
2630
2630
  s[i.user] = i;
2631
2631
  return s;
2632
2632
  })
2633
2633
  ), kS = y(
2634
- p(
2634
+ m(
2635
2635
  [rr, Sr, (t, e) => e],
2636
2636
  (t, e, s) => {
2637
2637
  const i = new Set(e.filter((a) => a.team === s).map((a) => a.user));
@@ -2657,17 +2657,17 @@ const $ = F(
2657
2657
  deleteTeams: xe.deleteMany
2658
2658
  }
2659
2659
  }), {
2660
- initializeTeams: Tp,
2661
- addTeam: Fp,
2660
+ initializeTeams: Tm,
2661
+ addTeam: Fm,
2662
2662
  addTeams: ES,
2663
2663
  setTeam: dt,
2664
2664
  setTeams: MS,
2665
- updateTeam: Op,
2665
+ updateTeam: Om,
2666
2666
  updateTeams: qS,
2667
2667
  deleteTeam: ya,
2668
2668
  deleteTeams: jS
2669
- } = _r.actions, Pr = (t) => t.teamReducer.instances, Ip = p([Pr], (t) => Object.values(t)), ba = (t) => (e) => e.teamReducer.instances[t], US = y(
2670
- p(
2669
+ } = _r.actions, Pr = (t) => t.teamReducer.instances, Im = m([Pr], (t) => Object.values(t)), ba = (t) => (e) => e.teamReducer.instances[t], US = y(
2670
+ m(
2671
2671
  [Pr, (t, e) => e],
2672
2672
  (t, e) => {
2673
2673
  const s = [];
@@ -2679,20 +2679,20 @@ const $ = F(
2679
2679
  }
2680
2680
  )
2681
2681
  ), zS = y(
2682
- p([Ip, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
2683
- ), Rp = _r.reducer, vp = {
2682
+ m([Im, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
2683
+ ), Rm = _r.reducer, vm = {
2684
2684
  version: 0
2685
- }, wp = P({
2685
+ }, wm = P({
2686
2686
  name: "versioning",
2687
- initialState: vp,
2687
+ initialState: vm,
2688
2688
  reducers: {}
2689
- }), kp = wp.reducer, Tr = {
2689
+ }), km = wm.reducer, Tr = {
2690
2690
  outboxReducer: xh,
2691
2691
  fileReducer: uu,
2692
2692
  authReducer: Ud
2693
- }, DS = Pa(Tr), Ep = {
2693
+ }, DS = Pa(Tr), Em = {
2694
2694
  ...Tr,
2695
- [ht]: kp,
2695
+ [ht]: km,
2696
2696
  categoryReducer: Cd,
2697
2697
  assetReducer: Co,
2698
2698
  assetAttachmentReducer: _c,
@@ -2705,12 +2705,12 @@ const $ = F(
2705
2705
  issueTypeReducer: oh,
2706
2706
  issueTypeAttachmentReducer: Ul,
2707
2707
  organizationReducer: qh,
2708
- projectReducer: pp,
2709
- projectAttachmentReducer: ep,
2708
+ projectReducer: mm,
2709
+ projectAttachmentReducer: em,
2710
2710
  projectAccessReducer: Gh,
2711
2711
  organizationAccessReducer: Rh,
2712
- projectFileReducer: up,
2713
- rehydratedReducer: yp,
2712
+ projectFileReducer: um,
2713
+ rehydratedReducer: ym,
2714
2714
  formReducer: Fu,
2715
2715
  formRevisionReducer: Pu,
2716
2716
  formRevisionAttachmentReducer: Au,
@@ -2720,8 +2720,8 @@ const $ = F(
2720
2720
  emailDomainsReducer: ru,
2721
2721
  documentsReducer: eu,
2722
2722
  documentAttachmentReducer: Jd,
2723
- teamReducer: Rp,
2724
- agentsReducer: pc,
2723
+ teamReducer: Rm,
2724
+ agentsReducer: mc,
2725
2725
  issueCommentReducer: _l,
2726
2726
  issueCommentAttachmentReducer: bl,
2727
2727
  issueUpdateReducer: yh,
@@ -2747,8 +2747,8 @@ const $ = F(
2747
2747
  assetProcedureStepFieldValuesAttachmentReducer: Io,
2748
2748
  assetProcedureStepFieldValuesReducer: Mo,
2749
2749
  assetProcedureStepReducer: Uo,
2750
- teamMembershipReducer: Sp
2751
- }, xS = Pa(Ep);
2750
+ teamMembershipReducer: Sm
2751
+ }, xS = Pa(Em);
2752
2752
  function VS(t, e) {
2753
2753
  return Cr(t, e);
2754
2754
  }
@@ -2780,39 +2780,39 @@ class CS {
2780
2780
  return this.operations.push((e) => e), this;
2781
2781
  }
2782
2782
  get(e, s) {
2783
- return p([this.getData], (i) => this.performOperations(i).find((a) => a[e] === s));
2783
+ return m([this.getData], (i) => this.performOperations(i).find((a) => a[e] === s));
2784
2784
  }
2785
2785
  count() {
2786
- return p([this.getData], (e) => this.performOperations(e).length);
2786
+ return m([this.getData], (e) => this.performOperations(e).length);
2787
2787
  }
2788
2788
  first() {
2789
- return p([this.getData], (e) => this.performOperations(e)[0]);
2789
+ return m([this.getData], (e) => this.performOperations(e)[0]);
2790
2790
  }
2791
2791
  last() {
2792
- return p([this.getData], (e) => {
2792
+ return m([this.getData], (e) => {
2793
2793
  const s = this.performOperations(e);
2794
2794
  return s[s.length - 1];
2795
2795
  });
2796
2796
  }
2797
2797
  exists() {
2798
- return p([this.getData], (e) => this.performOperations(e).length > 0);
2798
+ return m([this.getData], (e) => this.performOperations(e).length > 0);
2799
2799
  }
2800
2800
  toSelector() {
2801
- return p([this.getData], (e) => b(this.performOperations(e)));
2801
+ return m([this.getData], (e) => b(this.performOperations(e)));
2802
2802
  }
2803
2803
  }
2804
2804
  let Fr;
2805
- function Mp(t) {
2805
+ function Mm(t) {
2806
2806
  Fr = t;
2807
2807
  }
2808
2808
  function Je() {
2809
2809
  return Fr;
2810
2810
  }
2811
2811
  let Or;
2812
- function qp(t) {
2812
+ function qm(t) {
2813
2813
  Or = t;
2814
2814
  }
2815
- function jp() {
2815
+ function jm() {
2816
2816
  return Or;
2817
2817
  }
2818
2818
  const Ir = {};
@@ -2846,10 +2846,10 @@ class Rr {
2846
2846
  this.client.store.dispatch(e);
2847
2847
  }
2848
2848
  }
2849
- const vr = () => kr.length - 1, wr = (t) => (t[ht] = { version: vr() }, t), ga = () => wr({}), Up = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), zp = (t) => (e) => {
2849
+ const vr = () => kr.length - 1, wr = (t) => (t[ht] = { version: vr() }, t), ga = () => wr({}), Um = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), zm = (t) => (e) => {
2850
2850
  var s;
2851
2851
  return e === void 0 && (e = {}), ((s = e[ht]) == null ? void 0 : s.version) === vr() ? e : t(e);
2852
- }, kr = [wr, ga, ga, Up], Dp = Object.fromEntries(kr.map((t, e) => [e, zp(t)]));
2852
+ }, kr = [wr, ga, ga, Um], Dm = Object.fromEntries(kr.map((t, e) => [e, zm(t)]));
2853
2853
  let gt = null;
2854
2854
  function Be() {
2855
2855
  const t = Je();
@@ -2860,34 +2860,34 @@ function Be() {
2860
2860
  const e = t.getState().offline.outbox, s = We._fromOutbox(e);
2861
2861
  return gt = s, s;
2862
2862
  }
2863
- const xp = (t) => {
2863
+ const xm = (t) => {
2864
2864
  if (t) throw t;
2865
2865
  const e = Je();
2866
2866
  e ? e.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }) : console.error("Client store not set");
2867
- }, Vp = (t, e, s) => {
2867
+ }, Vm = (t, e, s) => {
2868
2868
  const i = Be();
2869
2869
  return i ? (i.addRequest(e), i.getQueue()) : (console.warn("Outbox coordinator not set; cannot enqueue request yet."), []);
2870
- }, Cp = (t, e, s) => {
2870
+ }, Cm = (t, e, s) => {
2871
2871
  const i = Be();
2872
2872
  if (!i)
2873
2873
  return console.warn("Outbox coordinator not set; cannot dequeue request yet."), [];
2874
2874
  const n = e.meta.offlineAction.payload.uuid;
2875
2875
  return i.remove(n), i.getQueue();
2876
2876
  };
2877
- async function $p(t, e) {
2877
+ async function $m(t, e) {
2878
2878
  if (!e.payload)
2879
2879
  throw new Error("Received empty payload");
2880
- return Yp(e);
2880
+ return Ym(e);
2881
2881
  }
2882
- const Gp = {
2882
+ const Gm = {
2883
2883
  ...Yt,
2884
- effect: $p,
2884
+ effect: $m,
2885
2885
  // Casting needed because we are saving FullOfflineAction objects, not just OfflineAction objects,
2886
2886
  // but redux-offline does not know this.
2887
2887
  discard: jr,
2888
2888
  returnPromises: !0,
2889
- persistCallback: xp,
2890
- retry: Zp,
2889
+ persistCallback: xm,
2890
+ retry: Zm,
2891
2891
  // Modify the configuration of the offline store to use localforage
2892
2892
  // which uses IndexedDB by default (persists even on mobile when installed as a PWA, unlike localStorage)
2893
2893
  persistOptions: { storage: Gr },
@@ -2896,13 +2896,13 @@ const Gp = {
2896
2896
  // that same issue"
2897
2897
  queue: {
2898
2898
  ...Yt.queue,
2899
- enqueue: Vp,
2900
- dequeue: Cp,
2899
+ enqueue: Vm,
2900
+ dequeue: Cm,
2901
2901
  // Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
2902
- peek: (...t) => Jp(...t)
2902
+ peek: (...t) => Jm(...t)
2903
2903
  }
2904
- }, Bp = Br(Dp, ht), $S = xr($r(Gp), Bp);
2905
- function Lp(t) {
2904
+ }, Bm = Br(Dm, ht), $S = xr($r(Gm), Bm);
2905
+ function Lm(t) {
2906
2906
  function e(s) {
2907
2907
  return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((a) => a in s);
2908
2908
  }
@@ -2924,23 +2924,23 @@ async function Er(t, e, s) {
2924
2924
  const r = {
2925
2925
  queryParams: "",
2926
2926
  isAuthNeeded: !0
2927
- }, d = t.meta.offline.effect, { payload: l, headers: c, method: o, queryParams: h, attachmentHash: m, isExternalUrl: f, isAuthNeeded: g, isResponseBlob: S } = {
2927
+ }, d = t.meta.offline.effect, { payload: l, headers: c, method: o, queryParams: h, attachmentHash: p, isExternalUrl: f, isAuthNeeded: g, isResponseBlob: S } = {
2928
2928
  ...r,
2929
2929
  ...d.request
2930
2930
  }, R = d.request;
2931
2931
  let v = R.url;
2932
- const z = m ? await e.files.fetchCache(m) : void 0;
2933
- if (m && !z)
2934
- throw new Error(`Cannot upload file ${m} because it's not cached.`);
2932
+ const z = p ? await e.files.fetchCache(p) : void 0;
2933
+ if (p && !z)
2934
+ throw new Error(`Cannot upload file ${p} because it's not cached.`);
2935
2935
  !f && !v.startsWith("http") && (!v.startsWith("/") && !v.startsWith("blob:") && (v = "/" + v), v = t.meta.offline.effect.BASE_URL + v);
2936
2936
  const V = (q) => {
2937
- if (m) {
2937
+ if (p) {
2938
2938
  const C = R.s3url;
2939
- if (!C) throw new Error(`No S3 URL for file ${m}`);
2940
- if ("warning" in C) throw new Error(`S3 URL warning for file ${m}`);
2941
- if (!z) throw new Error(`No file for file ${m}`);
2939
+ if (!C) throw new Error(`No S3 URL for file ${p}`);
2940
+ if ("warning" in C) throw new Error(`S3 URL warning for file ${p}`);
2941
+ if (!z) throw new Error(`No file for file ${p}`);
2942
2942
  const Ne = C.fields["x-amz-checksum-sha1"];
2943
- if (!Ne) throw new Error(`No checksum for file ${m}`);
2943
+ if (!Ne) throw new Error(`No checksum for file ${p}`);
2944
2944
  return q.set("x-amz-checksum-sha1", Ne).field({ ...l, ...C.fields }).attach("file", z);
2945
2945
  }
2946
2946
  return q.send(l);
@@ -2974,13 +2974,13 @@ async function Er(t, e, s) {
2974
2974
  try {
2975
2975
  return await Ve.query(h);
2976
2976
  } catch (q) {
2977
- const C = Lp(q), Ne = C == null ? void 0 : C.status;
2977
+ const C = Lm(q), Ne = C == null ? void 0 : C.status;
2978
2978
  if (a && Ne === 401)
2979
2979
  return await i.auth.handleUnauthorized(Ve, C), Ve.query(h);
2980
2980
  throw new x({ response: C, innerError: q, discard: qr.includes(Ne) });
2981
2981
  }
2982
2982
  }
2983
- class Np {
2983
+ class Nm {
2984
2984
  constructor(e) {
2985
2985
  A(this, "_all");
2986
2986
  A(this, "_previous");
@@ -3002,33 +3002,33 @@ class Mr {
3002
3002
  this.next = null;
3003
3003
  }
3004
3004
  then(e) {
3005
- return new Np(this).then(e);
3005
+ return new Nm(this).then(e);
3006
3006
  }
3007
3007
  async run(e) {
3008
3008
  if (this.next)
3009
3009
  return this.next.run(e);
3010
3010
  {
3011
3011
  if (console.debug("Middleware finished. Performing request:", e), !Je()) throw new Error("Client store not set");
3012
- const i = jp();
3012
+ const i = jm();
3013
3013
  if (!i) throw new Error("Client SDK not set");
3014
3014
  return Er(e, i);
3015
3015
  }
3016
3016
  }
3017
3017
  }
3018
- class Hp extends Mr {
3018
+ class Hm extends Mr {
3019
3019
  async run(e) {
3020
3020
  return super.run(e);
3021
3021
  }
3022
3022
  }
3023
- class Wp extends Mr {
3023
+ class Wm extends Mr {
3024
3024
  async run(e) {
3025
3025
  return super.run(e);
3026
3026
  }
3027
3027
  }
3028
- const Kp = new Hp().then(new Wp()).compile();
3029
- function Yp(t) {
3028
+ const Km = new Hm().then(new Wm()).compile();
3029
+ function Ym(t) {
3030
3030
  var e;
3031
- return (e = Kp[0]) == null ? void 0 : e.run(t);
3031
+ return (e = Km[0]) == null ? void 0 : e.run(t);
3032
3032
  }
3033
3033
  const qr = [400, 409, 403, 404, 405, 500];
3034
3034
  function jr(t, e, s = 0) {
@@ -3080,15 +3080,15 @@ Action:`, e);
3080
3080
  throw new Error("Outbox coordinator not set");
3081
3081
  return l.registerRetry(e.payload.uuid), !1;
3082
3082
  }
3083
- function Jp(t, e, s) {
3083
+ function Jm(t, e, s) {
3084
3084
  var i;
3085
3085
  return (i = Be()) == null ? void 0 : i.peek();
3086
3086
  }
3087
- function Zp(t, e) {
3087
+ function Zm(t, e) {
3088
3088
  return Je().dispatch(Dh((/* @__PURE__ */ new Date()).getTime())), Zr;
3089
3089
  }
3090
- const Ye = "An unknown error occurred", Qp = 500, Sa = ["non_field_errors", "detail"];
3091
- function Xp(t, e) {
3090
+ const Ye = "An unknown error occurred", Qm = 500, Sa = ["non_field_errors", "detail"];
3091
+ function Xm(t, e) {
3092
3092
  let s;
3093
3093
  if (t != null && t.body)
3094
3094
  if (typeof t.body == "object") {
@@ -3108,7 +3108,7 @@ function Xp(t, e) {
3108
3108
  }
3109
3109
  } else typeof t.body == "string" && (s = t.body);
3110
3110
  else t != null && t.text ? s = t.text : e instanceof Error && (s = e.message);
3111
- return !s || s.length > Qp ? Ye : s;
3111
+ return !s || s.length > Qm ? Ye : s;
3112
3112
  }
3113
3113
  class x extends Error {
3114
3114
  constructor(s) {
@@ -3119,10 +3119,10 @@ class x extends Error {
3119
3119
  A(this, "message");
3120
3120
  A(this, "options");
3121
3121
  const { response: i, innerError: a } = s;
3122
- this.message = s.message ?? Xp(i, a) ?? Ye, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, s.discard = s.discard ?? !1, this.options = s;
3122
+ this.message = s.message ?? Xm(i, a) ?? Ye, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, s.discard = s.discard ?? !1, this.options = s;
3123
3123
  }
3124
3124
  }
3125
- class em extends Rr {
3125
+ class ep extends Rr {
3126
3126
  constructor(e) {
3127
3127
  super(e);
3128
3128
  }
@@ -3216,7 +3216,7 @@ class U extends w {
3216
3216
  // fields
3217
3217
  assetTypeFieldsAttachmentReducer: o,
3218
3218
  assetTypeFieldValuesAttachmentReducer: h,
3219
- issueTypeFieldsAttachmentReducer: m,
3219
+ issueTypeFieldsAttachmentReducer: p,
3220
3220
  issueTypeFieldValuesAttachmentReducer: f
3221
3221
  } = this.client.store.getState();
3222
3222
  return [].concat(
@@ -3230,7 +3230,7 @@ class U extends w {
3230
3230
  Object.values(c.instances),
3231
3231
  Object.values(o.instances),
3232
3232
  Object.values(h.instances),
3233
- Object.values(m.instances),
3233
+ Object.values(p.instances),
3234
3234
  Object.values(f.instances)
3235
3235
  ).filter((S) => S.file_sha1 === e).length;
3236
3236
  }
@@ -3266,10 +3266,10 @@ class Ce extends U {
3266
3266
  var c;
3267
3267
  const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = [], r = [], d = {};
3268
3268
  for (const o of e) {
3269
- const { modelUuid: h, file: m } = o, f = await this.getFilePayload(m);
3269
+ const { modelUuid: h, file: p } = o, f = await this.getFilePayload(p);
3270
3270
  f.sha1 in d || (d[f.sha1] = f);
3271
3271
  const g = this.buildOfflineAttachment({
3272
- file: m,
3272
+ file: p,
3273
3273
  file_sha1: f.sha1,
3274
3274
  submitted_at: a,
3275
3275
  created_by: i,
@@ -3335,7 +3335,7 @@ class NS extends Ce {
3335
3335
  A(this, "updateAttachments", fc);
3336
3336
  A(this, "removeAttachments", ka);
3337
3337
  A(this, "removeAttachment", Ac);
3338
- A(this, "setAttachment", mc);
3338
+ A(this, "setAttachment", pc);
3339
3339
  A(this, "selectAttachment", gc);
3340
3340
  }
3341
3341
  buildOfflineAttachment(s) {
@@ -3429,6 +3429,7 @@ class HS extends Ce {
3429
3429
  async refreshStore(s, i) {
3430
3430
  const a = await this.enqueueRequest(
3431
3431
  {
3432
+ immediate: !0,
3432
3433
  description: "Get asset procedure attachments",
3433
3434
  method: u.GET,
3434
3435
  url: `${this.url}/`,
@@ -3448,12 +3449,12 @@ class WS extends U {
3448
3449
  var l;
3449
3450
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
3450
3451
  for (const c of e) {
3451
- const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = c, f = await this.getFilePayload(m);
3452
+ const { fieldsRevisionUuid: o, fieldIdentifier: h, file: p } = c, f = await this.getFilePayload(p);
3452
3453
  f.sha1 in a || (a[f.sha1] = f);
3453
3454
  const g = T({
3454
- file: URL.createObjectURL(m),
3455
- file_type: m.type,
3456
- file_name: m.name,
3455
+ file: URL.createObjectURL(p),
3456
+ file_type: p.type,
3457
+ file_name: p.name,
3457
3458
  file_sha1: f.sha1,
3458
3459
  created_by: i,
3459
3460
  fields_revision: o,
@@ -3463,7 +3464,7 @@ class WS extends U {
3463
3464
  n.push(g);
3464
3465
  const S = {
3465
3466
  uuid: g.uuid,
3466
- file_name: m.name,
3467
+ file_name: p.name,
3467
3468
  field_identifier: h,
3468
3469
  file_extension: f.extension,
3469
3470
  file_sha1: f.sha1,
@@ -3497,6 +3498,7 @@ class WS extends U {
3497
3498
  async refreshStore(e, s) {
3498
3499
  const i = await this.enqueueRequest(
3499
3500
  {
3501
+ immediate: !0,
3500
3502
  description: "Get asset procedure fields attachments",
3501
3503
  method: u.GET,
3502
3504
  url: "/asset-procedure-fields-attachments/",
@@ -3537,6 +3539,7 @@ class KS extends w {
3537
3539
  async refreshStore(e, s) {
3538
3540
  const i = await this.enqueueRequest(
3539
3541
  {
3542
+ immediate: !0,
3540
3543
  description: "Get Asset Procedure Fields",
3541
3544
  method: u.GET,
3542
3545
  url: "/asset-procedure-fields/",
@@ -3564,7 +3567,7 @@ class YS extends U {
3564
3567
  var c;
3565
3568
  const i = (/* @__PURE__ */ new Date()).toISOString(), a = (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id, n = $e(e, s ?? e.length), r = [], d = [];
3566
3569
  for (const o of n) {
3567
- const h = {}, m = [];
3570
+ const h = {}, p = [];
3568
3571
  for (const f of o) {
3569
3572
  const { fieldValuesUuid: g, fieldIdentifier: S, file: R } = f, v = await this.getFilePayload(R);
3570
3573
  v.sha1 in h || (h[v.sha1] = v);
@@ -3589,11 +3592,11 @@ class YS extends U {
3589
3592
  field_identifier: S,
3590
3593
  field_values: g
3591
3594
  };
3592
- m.push(V);
3595
+ p.push(V);
3593
3596
  }
3594
3597
  d.push({
3595
3598
  submitted_at: i,
3596
- attachments: m,
3599
+ attachments: p,
3597
3600
  files: Object.values(h)
3598
3601
  });
3599
3602
  }
@@ -3607,8 +3610,8 @@ class YS extends U {
3607
3610
  blocks: o.attachments.map((h) => h.uuid)
3608
3611
  }));
3609
3612
  return Promise.all(l).then((o) => {
3610
- for (const m of o) this.processPresignedUrls(m.presigned_urls);
3611
- const h = o.flatMap((m) => m.attachments);
3613
+ for (const p of o) this.processPresignedUrls(p.presigned_urls);
3614
+ const h = o.flatMap((p) => p.attachments);
3612
3615
  this.dispatch(Hc(h));
3613
3616
  }).catch((o) => {
3614
3617
  throw this.dispatch(
@@ -3690,19 +3693,19 @@ class JS extends w {
3690
3693
  for (const c of n) {
3691
3694
  const o = [];
3692
3695
  for (const h of c) {
3693
- const m = T({
3696
+ const p = T({
3694
3697
  ...h,
3695
3698
  values: h.values,
3696
3699
  created_by: (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id,
3697
3700
  submitted_at: i
3698
3701
  });
3699
- a.push(m), o.push({
3700
- uuid: m.uuid,
3702
+ a.push(p), o.push({
3703
+ uuid: p.uuid,
3701
3704
  asset: h.asset,
3702
3705
  fields_revision: h.fields_revision,
3703
3706
  asset_procedure_instance: h.asset_procedure_instance,
3704
3707
  published_at: h.published_at,
3705
- values: m.values
3708
+ values: p.values
3706
3709
  });
3707
3710
  }
3708
3711
  r.push({
@@ -3714,12 +3717,12 @@ class JS extends w {
3714
3717
  this.dispatch(Qc(a));
3715
3718
  const d = [];
3716
3719
  for (const c of r) {
3717
- const o = c.field_values.map((S) => S.asset), h = c.field_values.map((S) => S.fields_revision), m = c.field_values.map((S) => S.asset_procedure_instance), f = c.field_values.map((S) => S.uuid), g = this.enqueueRequest({
3720
+ const o = c.field_values.map((S) => S.asset), h = c.field_values.map((S) => S.fields_revision), p = c.field_values.map((S) => S.asset_procedure_instance), f = c.field_values.map((S) => S.uuid), g = this.enqueueRequest({
3718
3721
  description: "Bulk add asset procedure field values",
3719
3722
  method: u.POST,
3720
3723
  url: "/asset-procedure-field-values/bulk/",
3721
3724
  payload: c,
3722
- blockers: [...o, ...h, ...m],
3725
+ blockers: [...o, ...h, ...p],
3723
3726
  blocks: f
3724
3727
  });
3725
3728
  d.push(g);
@@ -3903,7 +3906,7 @@ class QS extends w {
3903
3906
  created_by: i,
3904
3907
  submitted_at: a
3905
3908
  });
3906
- this.dispatch(ms(n));
3909
+ this.dispatch(ps(n));
3907
3910
  const r = this.enqueueRequest({
3908
3911
  description: "Create asset procedure",
3909
3912
  method: u.POST,
@@ -3953,12 +3956,13 @@ class QS extends w {
3953
3956
  blockers: [e],
3954
3957
  blocks: []
3955
3958
  }).catch((r) => {
3956
- throw this.dispatch(ms(a)), this.dispatch(ao(n)), r;
3959
+ throw this.dispatch(ps(a)), this.dispatch(ao(n)), r;
3957
3960
  });
3958
3961
  }
3959
3962
  async refreshStore(e, s) {
3960
3963
  const i = await this.enqueueRequest(
3961
3964
  {
3965
+ immediate: !0,
3962
3966
  description: "Get asset procedures",
3963
3967
  method: u.GET,
3964
3968
  url: "/asset-procedures/",
@@ -3978,12 +3982,12 @@ class XS extends U {
3978
3982
  var l;
3979
3983
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
3980
3984
  for (const c of e) {
3981
- const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = c, f = await this.getFilePayload(m);
3985
+ const { fieldsRevisionUuid: o, fieldIdentifier: h, file: p } = c, f = await this.getFilePayload(p);
3982
3986
  f.sha1 in a || (a[f.sha1] = f);
3983
3987
  const g = T({
3984
- file: URL.createObjectURL(m),
3985
- file_type: m.type,
3986
- file_name: m.name,
3988
+ file: URL.createObjectURL(p),
3989
+ file_type: p.type,
3990
+ file_name: p.name,
3987
3991
  file_sha1: f.sha1,
3988
3992
  created_by: i,
3989
3993
  fields_revision: o,
@@ -3993,7 +3997,7 @@ class XS extends U {
3993
3997
  n.push(g);
3994
3998
  const S = {
3995
3999
  uuid: g.uuid,
3996
- file_name: m.name,
4000
+ file_name: p.name,
3997
4001
  field_identifier: h,
3998
4002
  file_extension: f.extension,
3999
4003
  file_sha1: f.sha1,
@@ -4001,7 +4005,7 @@ class XS extends U {
4001
4005
  };
4002
4006
  r.push(S);
4003
4007
  }
4004
- this.dispatch(po(n));
4008
+ this.dispatch(mo(n));
4005
4009
  const d = this.enqueueRequest({
4006
4010
  description: "Add asset procedure step fields attachments",
4007
4011
  method: u.POST,
@@ -4015,7 +4019,7 @@ class XS extends U {
4015
4019
  blocks: n.map((c) => c.uuid)
4016
4020
  });
4017
4021
  return d.then((c) => {
4018
- this.processPresignedUrls(c.presigned_urls), this.dispatch(mo(c.attachments));
4022
+ this.processPresignedUrls(c.presigned_urls), this.dispatch(po(c.attachments));
4019
4023
  }).catch(() => {
4020
4024
  this.dispatch(
4021
4025
  fo(
@@ -4027,6 +4031,7 @@ class XS extends U {
4027
4031
  async refreshStore(e, s) {
4028
4032
  const i = await this.enqueueRequest(
4029
4033
  {
4034
+ immediate: !0,
4030
4035
  description: "Get asset procedure step fields attachments",
4031
4036
  method: u.GET,
4032
4037
  url: "/asset-procedure-step-fields-attachments/",
@@ -4106,6 +4111,7 @@ class e_ extends w {
4106
4111
  async refreshStore(e, s) {
4107
4112
  const i = await this.enqueueRequest(
4108
4113
  {
4114
+ immediate: !0,
4109
4115
  description: "Get Asset Procedure Step Fields",
4110
4116
  method: u.GET,
4111
4117
  url: "/asset-procedure-step-fields/",
@@ -4125,7 +4131,7 @@ class t_ extends U {
4125
4131
  var c;
4126
4132
  const i = (/* @__PURE__ */ new Date()).toISOString(), a = (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id, n = $e(e, s ?? e.length), r = [], d = [];
4127
4133
  for (const o of n) {
4128
- const h = {}, m = [];
4134
+ const h = {}, p = [];
4129
4135
  for (const f of o) {
4130
4136
  const { fieldValuesUuid: g, fieldIdentifier: S, file: R } = f, v = await this.getFilePayload(R);
4131
4137
  v.sha1 in h || (h[v.sha1] = v);
@@ -4148,11 +4154,11 @@ class t_ extends U {
4148
4154
  field_identifier: S,
4149
4155
  field_values: g
4150
4156
  };
4151
- m.push(V);
4157
+ p.push(V);
4152
4158
  }
4153
4159
  d.push({
4154
4160
  submitted_at: i,
4155
- attachments: m,
4161
+ attachments: p,
4156
4162
  files: Object.values(h)
4157
4163
  });
4158
4164
  }
@@ -4166,8 +4172,8 @@ class t_ extends U {
4166
4172
  blocks: o.attachments.map((h) => h.uuid)
4167
4173
  }));
4168
4174
  return Promise.all(l).then((o) => {
4169
- for (const m of o) this.processPresignedUrls(m.presigned_urls);
4170
- const h = o.flatMap((m) => m.attachments);
4175
+ for (const p of o) this.processPresignedUrls(p.presigned_urls);
4176
+ const h = o.flatMap((p) => p.attachments);
4171
4177
  this.dispatch(Po(h));
4172
4178
  }).catch((o) => {
4173
4179
  throw this.dispatch(
@@ -4249,20 +4255,20 @@ class s_ extends w {
4249
4255
  for (const c of n) {
4250
4256
  const o = [];
4251
4257
  for (const h of c) {
4252
- const m = T({
4258
+ const p = T({
4253
4259
  ...h,
4254
4260
  values: h.values,
4255
4261
  created_by: (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id,
4256
4262
  submitted_at: i
4257
4263
  });
4258
- a.push(m), o.push({
4259
- uuid: m.uuid,
4264
+ a.push(p), o.push({
4265
+ uuid: p.uuid,
4260
4266
  asset: h.asset,
4261
4267
  fields_revision: h.fields_revision,
4262
4268
  asset_procedure_instance: h.asset_procedure_instance,
4263
4269
  asset_procedure_step: h.asset_procedure_step,
4264
4270
  published_at: h.published_at,
4265
- values: m.values
4271
+ values: p.values
4266
4272
  });
4267
4273
  }
4268
4274
  r.push({
@@ -4274,12 +4280,12 @@ class s_ extends w {
4274
4280
  this.dispatch(vo(a));
4275
4281
  const d = [];
4276
4282
  for (const c of r) {
4277
- const o = c.field_values.map((S) => S.asset), h = c.field_values.map((S) => S.fields_revision), m = c.field_values.map((S) => S.asset_procedure_instance), f = c.field_values.map((S) => S.uuid), g = this.enqueueRequest({
4283
+ const o = c.field_values.map((S) => S.asset), h = c.field_values.map((S) => S.fields_revision), p = c.field_values.map((S) => S.asset_procedure_instance), f = c.field_values.map((S) => S.uuid), g = this.enqueueRequest({
4278
4284
  description: "Bulk add asset procedure step field values",
4279
4285
  method: u.POST,
4280
4286
  url: "/asset-procedure-step-field-values/bulk/",
4281
4287
  payload: c,
4282
- blockers: [...o, ...h, ...m],
4288
+ blockers: [...o, ...h, ...p],
4283
4289
  blocks: f
4284
4290
  });
4285
4291
  d.push(g);
@@ -4387,7 +4393,7 @@ class i_ extends w {
4387
4393
  blocks: [n.uuid]
4388
4394
  });
4389
4395
  return r.then((l) => {
4390
- this.dispatch(mt(l));
4396
+ this.dispatch(pt(l));
4391
4397
  }).catch(() => {
4392
4398
  this.dispatch(vs(n.uuid));
4393
4399
  }), [n, r];
@@ -4399,7 +4405,7 @@ class i_ extends w {
4399
4405
  ...i,
4400
4406
  ...e
4401
4407
  };
4402
- this.dispatch(mt(a));
4408
+ this.dispatch(pt(a));
4403
4409
  const n = this.enqueueRequest({
4404
4410
  description: "Update asset procedure step",
4405
4411
  method: u.PATCH,
@@ -4414,7 +4420,7 @@ class i_ extends w {
4414
4420
  blocks: [i.uuid]
4415
4421
  });
4416
4422
  return n.then((r) => {
4417
- this.dispatch(mt(r));
4423
+ this.dispatch(pt(r));
4418
4424
  }).catch(() => {
4419
4425
  this.dispatch(jo(i));
4420
4426
  }), [a, n];
@@ -4435,6 +4441,7 @@ class i_ extends w {
4435
4441
  async refreshStore(e, s) {
4436
4442
  const i = await this.enqueueRequest(
4437
4443
  {
4444
+ immediate: !0,
4438
4445
  description: "Get asset procedure steps",
4439
4446
  method: u.GET,
4440
4447
  url: "/asset-procedure-steps/",
@@ -4529,7 +4536,7 @@ class a_ extends w {
4529
4536
  }
4530
4537
  bulkAdd(e, s, i, a) {
4531
4538
  const n = (/* @__PURE__ */ new Date()).toISOString(), r = Le(), d = $e(e, a).map((o) => {
4532
- const h = o.map((m) => T(m));
4539
+ const h = o.map((p) => T(p));
4533
4540
  return {
4534
4541
  batchId: Le(),
4535
4542
  payload: {
@@ -4543,7 +4550,7 @@ class a_ extends w {
4543
4550
  }), l = [];
4544
4551
  let c = null;
4545
4552
  for (const o of d) {
4546
- const { batchId: h, payload: m } = o, f = m.assets.map((v) => v.uuid), g = [s];
4553
+ const { batchId: h, payload: p } = o, f = p.assets.map((v) => v.uuid), g = [s];
4547
4554
  c && g.push(c);
4548
4555
  const S = f;
4549
4556
  S.push(h);
@@ -4551,7 +4558,7 @@ class a_ extends w {
4551
4558
  description: "Batch create assets",
4552
4559
  method: u.POST,
4553
4560
  url: "/assets/bulk/",
4554
- payload: m,
4561
+ payload: p,
4555
4562
  blockers: g,
4556
4563
  blocks: S
4557
4564
  });
@@ -4778,6 +4785,7 @@ class r_ extends w {
4778
4785
  async refreshStore(e, s) {
4779
4786
  const i = await this.enqueueRequest(
4780
4787
  {
4788
+ immediate: !0,
4781
4789
  description: "Get asset stages",
4782
4790
  method: u.GET,
4783
4791
  url: "/asset-stages/",
@@ -4831,6 +4839,7 @@ class c_ extends Ce {
4831
4839
  async refreshStore(s, i) {
4832
4840
  const a = await this.enqueueRequest(
4833
4841
  {
4842
+ immediate: !0,
4834
4843
  description: "Get asset type attachments",
4835
4844
  method: u.GET,
4836
4845
  url: `${this.url}/`,
@@ -4850,12 +4859,12 @@ class o_ extends U {
4850
4859
  var l;
4851
4860
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
4852
4861
  for (const c of e) {
4853
- const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = c, f = await this.getFilePayload(m);
4862
+ const { fieldsRevisionUuid: o, fieldIdentifier: h, file: p } = c, f = await this.getFilePayload(p);
4854
4863
  f.sha1 in a || (a[f.sha1] = f);
4855
4864
  const g = T({
4856
- file: URL.createObjectURL(m),
4857
- file_type: m.type,
4858
- file_name: m.name,
4865
+ file: URL.createObjectURL(p),
4866
+ file_type: p.type,
4867
+ file_name: p.name,
4859
4868
  file_sha1: f.sha1,
4860
4869
  created_by: i,
4861
4870
  fields_revision: o,
@@ -4865,7 +4874,7 @@ class o_ extends U {
4865
4874
  n.push(g);
4866
4875
  const S = {
4867
4876
  uuid: g.uuid,
4868
- file_name: m.name,
4877
+ file_name: p.name,
4869
4878
  field_identifier: h,
4870
4879
  file_extension: f.extension,
4871
4880
  file_sha1: f.sha1,
@@ -4899,6 +4908,7 @@ class o_ extends U {
4899
4908
  async refreshStore(e, s) {
4900
4909
  const i = await this.enqueueRequest(
4901
4910
  {
4911
+ immediate: !0,
4902
4912
  description: "Get asset type fields attachments",
4903
4913
  method: u.GET,
4904
4914
  url: "/asset-type-fields-attachments/",
@@ -4921,7 +4931,7 @@ class d_ extends w {
4921
4931
  created_by: i,
4922
4932
  submitted_at: a
4923
4933
  });
4924
- this.dispatch(md(n));
4934
+ this.dispatch(pd(n));
4925
4935
  const r = this.enqueueRequest({
4926
4936
  description: "Add Asset Type Fields",
4927
4937
  method: u.POST,
@@ -4939,6 +4949,7 @@ class d_ extends w {
4939
4949
  async refreshStore(e, s) {
4940
4950
  const i = await this.enqueueRequest(
4941
4951
  {
4952
+ immediate: !0,
4942
4953
  description: "Get Asset Type Fields",
4943
4954
  method: u.GET,
4944
4955
  url: "/asset-type-fields/",
@@ -4950,7 +4961,7 @@ class d_ extends w {
4950
4961
  },
4951
4962
  s
4952
4963
  );
4953
- return this.dispatch(pd(i)), i;
4964
+ return this.dispatch(md(i)), i;
4954
4965
  }
4955
4966
  }
4956
4967
  class u_ extends U {
@@ -4958,7 +4969,7 @@ class u_ extends U {
4958
4969
  var c;
4959
4970
  const i = (/* @__PURE__ */ new Date()).toISOString(), a = (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id, n = $e(e, s ?? e.length), r = [], d = [];
4960
4971
  for (const o of n) {
4961
- const h = {}, m = [];
4972
+ const h = {}, p = [];
4962
4973
  for (const f of o) {
4963
4974
  const { fieldValuesUuid: g, fieldIdentifier: S, file: R } = f, v = await this.getFilePayload(R);
4964
4975
  v.sha1 in h || (h[v.sha1] = v);
@@ -4981,11 +4992,11 @@ class u_ extends U {
4981
4992
  field_identifier: S,
4982
4993
  field_values: g
4983
4994
  };
4984
- m.push(V);
4995
+ p.push(V);
4985
4996
  }
4986
4997
  d.push({
4987
4998
  submitted_at: i,
4988
- attachments: m,
4999
+ attachments: p,
4989
5000
  files: Object.values(h)
4990
5001
  });
4991
5002
  }
@@ -4999,8 +5010,8 @@ class u_ extends U {
4999
5010
  blocks: o.attachments.map((h) => h.uuid)
5000
5011
  }));
5001
5012
  return Promise.all(l).then((o) => {
5002
- for (const m of o) this.processPresignedUrls(m.presigned_urls);
5003
- const h = o.flatMap((m) => m.attachments);
5013
+ for (const p of o) this.processPresignedUrls(p.presigned_urls);
5014
+ const h = o.flatMap((p) => p.attachments);
5004
5015
  this.dispatch(Sd(h));
5005
5016
  }).catch((o) => {
5006
5017
  throw this.dispatch(
@@ -5082,18 +5093,18 @@ class l_ extends w {
5082
5093
  for (const c of n) {
5083
5094
  const o = [];
5084
5095
  for (const h of c) {
5085
- const m = T({
5096
+ const p = T({
5086
5097
  ...h,
5087
5098
  values: h.values,
5088
5099
  created_by: (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id,
5089
5100
  submitted_at: i
5090
5101
  });
5091
- a.push(m), o.push({
5092
- uuid: m.uuid,
5102
+ a.push(p), o.push({
5103
+ uuid: p.uuid,
5093
5104
  asset: h.asset,
5094
5105
  fields_revision: h.fields_revision,
5095
5106
  published_at: h.published_at,
5096
- values: m.values
5107
+ values: p.values
5097
5108
  });
5098
5109
  }
5099
5110
  r.push({
@@ -5105,13 +5116,13 @@ class l_ extends w {
5105
5116
  this.dispatch(Id(a));
5106
5117
  const d = [];
5107
5118
  for (const c of r) {
5108
- const o = c.field_values.map((g) => g.asset), h = c.field_values.map((g) => g.fields_revision), m = c.field_values.map((g) => g.uuid), f = this.enqueueRequest({
5119
+ const o = c.field_values.map((g) => g.asset), h = c.field_values.map((g) => g.fields_revision), p = c.field_values.map((g) => g.uuid), f = this.enqueueRequest({
5109
5120
  description: "Bulk add asset type field values",
5110
5121
  method: u.POST,
5111
5122
  url: "/asset-type-field-values/bulk/",
5112
5123
  payload: c,
5113
5124
  blockers: [...o, ...h],
5114
- blocks: m
5125
+ blocks: p
5115
5126
  });
5116
5127
  d.push(f);
5117
5128
  }
@@ -5263,6 +5274,7 @@ class h_ extends w {
5263
5274
  async refreshStore(e, s) {
5264
5275
  const i = await this.enqueueRequest(
5265
5276
  {
5277
+ immediate: !0,
5266
5278
  description: "Get asset types",
5267
5279
  method: u.GET,
5268
5280
  url: "/asset-types/",
@@ -5277,7 +5289,7 @@ class h_ extends w {
5277
5289
  return this.dispatch(Ed(i)), i;
5278
5290
  }
5279
5291
  }
5280
- class p_ extends w {
5292
+ class m_ extends w {
5281
5293
  add(e) {
5282
5294
  var d;
5283
5295
  const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = T({
@@ -5331,6 +5343,7 @@ class p_ extends w {
5331
5343
  async refreshStore(e, s) {
5332
5344
  const i = await this.enqueueRequest(
5333
5345
  {
5346
+ immediate: !0,
5334
5347
  description: "Get categories",
5335
5348
  method: u.GET,
5336
5349
  url: "/categories/",
@@ -5345,7 +5358,7 @@ class p_ extends w {
5345
5358
  return this.dispatch(zd(i)), i;
5346
5359
  }
5347
5360
  }
5348
- class m_ extends Ce {
5361
+ class p_ extends Ce {
5349
5362
  constructor() {
5350
5363
  super(...arguments);
5351
5364
  A(this, "name", "Document Attachment");
@@ -5379,8 +5392,8 @@ class m_ extends Ce {
5379
5392
  async bulkAdd(s) {
5380
5393
  var h;
5381
5394
  const { store: i } = this.client, a = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.id, n = (/* @__PURE__ */ new Date()).toISOString(), r = [], d = [], l = {}, c = {};
5382
- for (const m of s) {
5383
- const { documentUuid: f, file: g } = m, S = await this.getFilePayload(g);
5395
+ for (const p of s) {
5396
+ const { documentUuid: f, file: g } = p, S = await this.getFilePayload(g);
5384
5397
  S.sha1 in l || (l[S.sha1] = S, c[S.sha1] = []);
5385
5398
  const R = this.buildOfflineAttachment({
5386
5399
  file: g,
@@ -5409,11 +5422,11 @@ class m_ extends Ce {
5409
5422
  attachments: d,
5410
5423
  files: Object.values(l)
5411
5424
  },
5412
- blocks: r.map((m) => m.uuid),
5413
- blockers: r.map((m) => m.file_sha1)
5425
+ blocks: r.map((p) => p.uuid),
5426
+ blockers: r.map((p) => p.file_sha1)
5414
5427
  });
5415
- return o.then(({ attachments: m, presigned_urls: f }) => {
5416
- this.dispatch(this.updateAttachments(m));
5428
+ return o.then(({ attachments: p, presigned_urls: f }) => {
5429
+ this.dispatch(this.updateAttachments(p));
5417
5430
  const g = this.processPresignedUrls(f);
5418
5431
  for (const [S, R] of Object.entries(g))
5419
5432
  R.then(() => {
@@ -5422,8 +5435,8 @@ class m_ extends Ce {
5422
5435
  this.makeReadable(z);
5423
5436
  });
5424
5437
  }).catch(() => {
5425
- this.dispatch(this.removeAttachments(r.map((m) => m.uuid)));
5426
- }), [r, o.then(({ attachments: m }) => m)];
5438
+ this.dispatch(this.removeAttachments(r.map((p) => p.uuid)));
5439
+ }), [r, o.then(({ attachments: p }) => p)];
5427
5440
  }
5428
5441
  async delete(s) {
5429
5442
  return this._delete(s);
@@ -5444,6 +5457,7 @@ class m_ extends Ce {
5444
5457
  async refreshStore(s, i) {
5445
5458
  const a = await this.enqueueRequest(
5446
5459
  {
5460
+ immediate: !0,
5447
5461
  description: "Get document attachments",
5448
5462
  method: u.GET,
5449
5463
  url: "/document-attachments/",
@@ -5456,6 +5470,7 @@ class m_ extends Ce {
5456
5470
  i
5457
5471
  ), n = await this.enqueueRequest(
5458
5472
  {
5473
+ immediate: !0,
5459
5474
  description: "Get document attachments",
5460
5475
  method: u.GET,
5461
5476
  url: "/document-attachments/",
@@ -5540,6 +5555,7 @@ class f_ extends w {
5540
5555
  async refreshStore(e, s) {
5541
5556
  const i = this.enqueueRequest(
5542
5557
  {
5558
+ immediate: !0,
5543
5559
  description: "Get project documents",
5544
5560
  method: u.GET,
5545
5561
  url: "/documents/",
@@ -5552,6 +5568,7 @@ class f_ extends w {
5552
5568
  s
5553
5569
  ), a = this.enqueueRequest(
5554
5570
  {
5571
+ immediate: !0,
5555
5572
  description: "Get organization documents",
5556
5573
  method: u.GET,
5557
5574
  url: "/documents/",
@@ -5591,6 +5608,7 @@ class A_ extends w {
5591
5608
  async refreshStore(e, s) {
5592
5609
  const i = await this.enqueueRequest(
5593
5610
  {
5611
+ immediate: !0,
5594
5612
  description: "Fetch email domains for organization",
5595
5613
  method: u.GET,
5596
5614
  url: "/organization-email-domains/",
@@ -5630,7 +5648,7 @@ class y_ extends w {
5630
5648
  }
5631
5649
  const ut = {}, St = /* @__PURE__ */ new Set();
5632
5650
  let lt = 0, _t = 0, Pt = 0;
5633
- const tm = 20;
5651
+ const tp = 20;
5634
5652
  class b_ extends w {
5635
5653
  constructor() {
5636
5654
  super(...arguments);
@@ -5677,7 +5695,7 @@ class b_ extends w {
5677
5695
  if (!s.name || !s.size || !s.type)
5678
5696
  throw new Error("Cannot add files to cache that do not have a name, size and type.");
5679
5697
  const a = await this._dbPromise;
5680
- !!await a.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), lt++) : (await a.put("files", s, i), _t++), St.add(i), Pt++, Pt % tm === 0 && console.debug(
5698
+ !!await a.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), lt++) : (await a.put("files", s, i), _t++), St.add(i), Pt++, Pt % tp === 0 && console.debug(
5681
5699
  `File cache summary: ${lt} hits and ${_t} misses, ${lt / (lt + _t) * 100}% hit rate over ${Pt} calls to addCache.`
5682
5700
  );
5683
5701
  }
@@ -5753,8 +5771,8 @@ class b_ extends w {
5753
5771
  blockers: [i],
5754
5772
  blocks: [i]
5755
5773
  }).then((h) => {
5756
- const m = new File([h], a ?? i, { type: h.type });
5757
- o(m);
5774
+ const p = new File([h], a ?? i, { type: h.type });
5775
+ o(p);
5758
5776
  });
5759
5777
  }), ut[n] = d);
5760
5778
  let c;
@@ -5778,8 +5796,8 @@ class b_ extends w {
5778
5796
  const h = c.type.split("/")[1];
5779
5797
  if (!h)
5780
5798
  throw new Error("File has no extension");
5781
- const m = a ?? o + "." + h;
5782
- if (c = ac(c, m), !c.name)
5799
+ const p = a ?? o + "." + h;
5800
+ if (c = ac(c, p), !c.name)
5783
5801
  throw new Error("Failed to set file's name");
5784
5802
  await this.addCache(c, o), ut[n] = new Promise((f) => {
5785
5803
  f(c);
@@ -5793,12 +5811,12 @@ class g_ extends U {
5793
5811
  var l;
5794
5812
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
5795
5813
  for (const c of e) {
5796
- const { revisionUuid: o, fieldIdentifier: h, file: m } = c, f = await this.getFilePayload(m);
5814
+ const { revisionUuid: o, fieldIdentifier: h, file: p } = c, f = await this.getFilePayload(p);
5797
5815
  f.sha1 in a || (a[f.sha1] = f);
5798
5816
  const g = T({
5799
- file: URL.createObjectURL(m),
5800
- file_type: m.type,
5801
- file_name: m.name,
5817
+ file: URL.createObjectURL(p),
5818
+ file_type: p.type,
5819
+ file_name: p.name,
5802
5820
  file_sha1: f.sha1,
5803
5821
  created_by: i,
5804
5822
  form_revision: o,
@@ -5808,7 +5826,7 @@ class g_ extends U {
5808
5826
  n.push(g);
5809
5827
  const S = {
5810
5828
  uuid: g.uuid,
5811
- file_name: m.name,
5829
+ file_name: p.name,
5812
5830
  field_identifier: h,
5813
5831
  file_extension: f.extension,
5814
5832
  file_sha1: f.sha1,
@@ -5830,16 +5848,17 @@ class g_ extends U {
5830
5848
  blocks: n.map((c) => c.uuid)
5831
5849
  });
5832
5850
  return d.then((c) => {
5833
- this.processPresignedUrls(c.presigned_urls), this.dispatch(pu(c.attachments));
5851
+ this.processPresignedUrls(c.presigned_urls), this.dispatch(mu(c.attachments));
5834
5852
  }).catch(() => {
5835
5853
  this.dispatch(
5836
- mu(n.map((c) => c.uuid))
5854
+ pu(n.map((c) => c.uuid))
5837
5855
  );
5838
5856
  }), [n, d.then(({ attachments: c }) => c)];
5839
5857
  }
5840
5858
  async refreshStore(e, s) {
5841
5859
  const i = await this.enqueueRequest(
5842
5860
  {
5861
+ immediate: !0,
5843
5862
  description: "Fetch organization form revision attachments",
5844
5863
  method: u.GET,
5845
5864
  url: "/form-revision-attachments/",
@@ -5880,6 +5899,7 @@ class S_ extends U {
5880
5899
  async refreshStore(e, s) {
5881
5900
  const i = await this.enqueueRequest(
5882
5901
  {
5902
+ immediate: !0,
5883
5903
  description: "Get organization form revisions",
5884
5904
  method: u.GET,
5885
5905
  url: "/form-revisions/",
@@ -5907,7 +5927,7 @@ class __ extends U {
5907
5927
  submitted_at: a,
5908
5928
  created_by: n
5909
5929
  });
5910
- this.dispatch(pi(r)), this.dispatch(Rn(d));
5930
+ this.dispatch(mi(r)), this.dispatch(Rn(d));
5911
5931
  const l = this.enqueueRequest({
5912
5932
  description: "Create form",
5913
5933
  method: u.POST,
@@ -5926,7 +5946,7 @@ class __ extends U {
5926
5946
  blocks: [r.uuid, d.uuid]
5927
5947
  });
5928
5948
  return l.catch((o) => {
5929
- throw this.dispatch(mi(r.uuid)), this.dispatch(vn(d.uuid)), o;
5949
+ throw this.dispatch(pi(r.uuid)), this.dispatch(vn(d.uuid)), o;
5930
5950
  }), [r, d, l];
5931
5951
  }
5932
5952
  async delete(e) {
@@ -5936,7 +5956,7 @@ class __ extends U {
5936
5956
  const n = zu(e)(i);
5937
5957
  n.length > 0 && this.dispatch(Nt(n.map(({ uuid: d }) => d)));
5938
5958
  const r = _u(e)(i);
5939
- r.length > 0 && this.dispatch(Su(r.map(({ uuid: d }) => d))), this.dispatch(mi(e));
5959
+ r.length > 0 && this.dispatch(Su(r.map(({ uuid: d }) => d))), this.dispatch(pi(e));
5940
5960
  try {
5941
5961
  return await this.enqueueRequest({
5942
5962
  description: "Delete form",
@@ -5946,12 +5966,13 @@ class __ extends U {
5946
5966
  blocks: []
5947
5967
  });
5948
5968
  } catch (d) {
5949
- throw this.dispatch(pi(a)), r.length > 0 && this.dispatch(bu(r)), n.length > 0 && this.dispatch(Lt(n)), d;
5969
+ throw this.dispatch(mi(a)), r.length > 0 && this.dispatch(bu(r)), n.length > 0 && this.dispatch(Lt(n)), d;
5950
5970
  }
5951
5971
  }
5952
5972
  async refreshStore(e, s) {
5953
5973
  const i = await this.enqueueRequest(
5954
5974
  {
5975
+ immediate: !0,
5955
5976
  description: "Fetch organization forms",
5956
5977
  method: u.GET,
5957
5978
  url: "/forms/",
@@ -5971,12 +5992,12 @@ class P_ extends U {
5971
5992
  var l;
5972
5993
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
5973
5994
  for (const c of e) {
5974
- const { submissionUuid: o, fieldIdentifier: h, file: m } = c, f = await this.getFilePayload(m);
5995
+ const { submissionUuid: o, fieldIdentifier: h, file: p } = c, f = await this.getFilePayload(p);
5975
5996
  f.sha1 in a || (a[f.sha1] = f);
5976
5997
  const g = T({
5977
- file: URL.createObjectURL(m),
5978
- file_type: m.type,
5979
- file_name: m.name,
5998
+ file: URL.createObjectURL(p),
5999
+ file_type: p.type,
6000
+ file_name: p.name,
5980
6001
  file_sha1: f.sha1,
5981
6002
  created_by: i,
5982
6003
  form_submission: o,
@@ -5986,7 +6007,7 @@ class P_ extends U {
5986
6007
  n.push(g);
5987
6008
  const S = {
5988
6009
  uuid: g.uuid,
5989
- file_name: m.name,
6010
+ file_name: p.name,
5990
6011
  file_sha1: f.sha1,
5991
6012
  file_extension: f.extension,
5992
6013
  field_identifier: h,
@@ -6186,17 +6207,17 @@ class F_ extends U {
6186
6207
  blocks: [d],
6187
6208
  blockers: [d]
6188
6209
  });
6189
- return o.then((m) => {
6190
- this.processPresignedUrls(m.presigned_urls), this.dispatch(nt(m.geo_image));
6210
+ return o.then((p) => {
6211
+ this.processPresignedUrls(p.presigned_urls), this.dispatch(nt(p.geo_image));
6191
6212
  }).catch(() => {
6192
6213
  this.dispatch(_i(c.uuid));
6193
- }), [c, o.then((m) => m.geo_image)];
6214
+ }), [c, o.then((p) => p.geo_image)];
6194
6215
  }
6195
6216
  async bulkAdd(e, s) {
6196
6217
  var h;
6197
6218
  const { store: i } = this.client, a = (/* @__PURE__ */ new Date()).toISOString(), n = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.id, r = [], d = [], l = [], c = {};
6198
- for (const m of e) {
6199
- const { file: f, ...g } = m, S = await this.getFilePayload(f);
6219
+ for (const p of e) {
6220
+ const { file: f, ...g } = p, S = await this.getFilePayload(f);
6200
6221
  S.sha1 in c || (c[S.sha1] = S);
6201
6222
  const R = T({
6202
6223
  ...g,
@@ -6233,11 +6254,11 @@ class F_ extends U {
6233
6254
  blocks: [s],
6234
6255
  blockers: d
6235
6256
  });
6236
- return o.then((m) => {
6237
- this.processPresignedUrls(m.presigned_urls), this.dispatch($u(m.geo_images));
6257
+ return o.then((p) => {
6258
+ this.processPresignedUrls(p.presigned_urls), this.dispatch($u(p.geo_images));
6238
6259
  }).catch(() => {
6239
6260
  this.dispatch(Nu(d));
6240
- }), [r, o.then((m) => m.geo_images)];
6261
+ }), [r, o.then((p) => p.geo_images)];
6241
6262
  }
6242
6263
  update(e) {
6243
6264
  const { store: s } = this.client, i = s.getState(), a = Pi(e.uuid)(i);
@@ -6437,8 +6458,8 @@ class R_ extends Ce {
6437
6458
  A(this, "initializeAttachments", wi);
6438
6459
  A(this, "addAttachments", ul);
6439
6460
  A(this, "updateAttachments", hl);
6440
- A(this, "removeAttachments", ml);
6441
- A(this, "removeAttachment", pl);
6461
+ A(this, "removeAttachments", pl);
6462
+ A(this, "removeAttachment", ml);
6442
6463
  A(this, "setAttachment", ll);
6443
6464
  A(this, "selectAttachment", yl);
6444
6465
  }
@@ -6684,7 +6705,7 @@ class w_ extends w {
6684
6705
  for (const o of Xu(e)(i))
6685
6706
  l[o.uuid] = o;
6686
6707
  const c = Object.values(l);
6687
- this.dispatch(Di(e)), n.length > 0 && this.dispatch(Bn(n.map(({ uuid: o }) => o))), r.length > 0 && this.dispatch(ph(r.map(({ uuid: o }) => o))), d.length > 0 && this.dispatch(Nt(d.map(({ uuid: o }) => o))), c.length > 0 && this.dispatch(Cn(c.map(({ uuid: o }) => o)));
6708
+ this.dispatch(Di(e)), n.length > 0 && this.dispatch(Bn(n.map(({ uuid: o }) => o))), r.length > 0 && this.dispatch(mh(r.map(({ uuid: o }) => o))), d.length > 0 && this.dispatch(Nt(d.map(({ uuid: o }) => o))), c.length > 0 && this.dispatch(Cn(c.map(({ uuid: o }) => o)));
6688
6709
  try {
6689
6710
  return await this.enqueueRequest({
6690
6711
  description: "Delete issue",
@@ -6765,6 +6786,7 @@ class k_ extends Ce {
6765
6786
  async refreshStore(s, i) {
6766
6787
  const a = await this.enqueueRequest(
6767
6788
  {
6789
+ immediate: !0,
6768
6790
  description: "Get issue type attachments",
6769
6791
  method: u.GET,
6770
6792
  url: `${this.url}/`,
@@ -6784,12 +6806,12 @@ class E_ extends U {
6784
6806
  var l;
6785
6807
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
6786
6808
  for (const c of e) {
6787
- const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = c, f = await this.getFilePayload(m);
6809
+ const { fieldsRevisionUuid: o, fieldIdentifier: h, file: p } = c, f = await this.getFilePayload(p);
6788
6810
  f.sha1 in a || (a[f.sha1] = f);
6789
6811
  const g = T({
6790
- file: URL.createObjectURL(m),
6791
- file_type: m.type,
6792
- file_name: m.name,
6812
+ file: URL.createObjectURL(p),
6813
+ file_type: p.type,
6814
+ file_name: p.name,
6793
6815
  file_sha1: f.sha1,
6794
6816
  created_by: i,
6795
6817
  fields_revision: o,
@@ -6799,7 +6821,7 @@ class E_ extends U {
6799
6821
  n.push(g);
6800
6822
  const S = {
6801
6823
  uuid: g.uuid,
6802
- file_name: m.name,
6824
+ file_name: p.name,
6803
6825
  file_extension: f.extension,
6804
6826
  field_identifier: h,
6805
6827
  file_sha1: f.sha1,
@@ -6833,6 +6855,7 @@ class E_ extends U {
6833
6855
  async refreshStore(e, s) {
6834
6856
  const i = await this.enqueueRequest(
6835
6857
  {
6858
+ immediate: !0,
6836
6859
  description: "get issue type fields attachments",
6837
6860
  method: u.GET,
6838
6861
  url: "/issue-type-fields-attachments/",
@@ -6873,6 +6896,7 @@ class M_ extends w {
6873
6896
  async refreshStore(e, s) {
6874
6897
  const i = await this.enqueueRequest(
6875
6898
  {
6899
+ immediate: !0,
6876
6900
  description: "Get Issue Type Fields",
6877
6901
  method: u.GET,
6878
6902
  url: "/issue-type-fields/",
@@ -6892,12 +6916,12 @@ class q_ extends U {
6892
6916
  var l;
6893
6917
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
6894
6918
  for (const c of e) {
6895
- const { fieldValuesUuid: o, fieldIdentifier: h, file: m } = c, f = await this.getFilePayload(m);
6919
+ const { fieldValuesUuid: o, fieldIdentifier: h, file: p } = c, f = await this.getFilePayload(p);
6896
6920
  f.sha1 in a || (a[f.sha1] = f);
6897
6921
  const g = T({
6898
- file: URL.createObjectURL(m),
6899
- file_type: m.type,
6900
- file_name: m.name,
6922
+ file: URL.createObjectURL(p),
6923
+ file_type: p.type,
6924
+ file_name: p.name,
6901
6925
  file_sha1: f.sha1,
6902
6926
  created_by: i,
6903
6927
  field_values: o,
@@ -6907,7 +6931,7 @@ class q_ extends U {
6907
6931
  n.push(g);
6908
6932
  const S = {
6909
6933
  uuid: g.uuid,
6910
- file_name: m.name,
6934
+ file_name: p.name,
6911
6935
  file_sha1: f.sha1,
6912
6936
  file_extension: f.extension,
6913
6937
  field_identifier: h,
@@ -7137,6 +7161,7 @@ class U_ extends w {
7137
7161
  async refreshStore(e, s) {
7138
7162
  const i = await this.enqueueRequest(
7139
7163
  {
7164
+ immediate: !0,
7140
7165
  method: u.GET,
7141
7166
  url: "/issue-types/",
7142
7167
  queryParams: {
@@ -7179,13 +7204,13 @@ class z_ extends w {
7179
7204
  return this.dispatch(dh(a)), a;
7180
7205
  }
7181
7206
  }
7182
- const sm = 1800;
7183
- function im(t) {
7207
+ const sp = 1800;
7208
+ function ip(t) {
7184
7209
  if (!t.access) throw new Error("Missing access token");
7185
7210
  if (!t.refresh) throw new Error("Missing refresh token");
7186
7211
  return { accessToken: t.access, refreshToken: t.refresh };
7187
7212
  }
7188
- class D_ extends em {
7213
+ class D_ extends ep {
7189
7214
  constructor() {
7190
7215
  super(...arguments);
7191
7216
  // _getTokenPair and _getRenewedTokens don't need to use enqueueRequest from the BaseApiService because
@@ -7256,7 +7281,7 @@ class D_ extends em {
7256
7281
  } catch {
7257
7282
  a = i;
7258
7283
  }
7259
- return a - i < sm;
7284
+ return a - i < sp;
7260
7285
  }
7261
7286
  getAuthHeader() {
7262
7287
  return `Bearer ${this.getAccessToken()}`;
@@ -7303,7 +7328,7 @@ class D_ extends em {
7303
7328
  blockers: [],
7304
7329
  blocks: []
7305
7330
  }).then((a) => {
7306
- this.setTokens(im(a));
7331
+ this.setTokens(ip(a));
7307
7332
  });
7308
7333
  }
7309
7334
  }
@@ -7347,6 +7372,7 @@ class x_ extends w {
7347
7372
  async refreshStore(e, s) {
7348
7373
  const i = await this.enqueueRequest(
7349
7374
  {
7375
+ immediate: !0,
7350
7376
  description: "Get organization accesses",
7351
7377
  method: u.GET,
7352
7378
  url: "/organization-accesses/",
@@ -7396,6 +7422,7 @@ class V_ extends w {
7396
7422
  async refreshStore(e) {
7397
7423
  const s = await this.enqueueRequest(
7398
7424
  {
7425
+ immediate: !0,
7399
7426
  description: "Fetch organizations",
7400
7427
  method: u.GET,
7401
7428
  url: "/organizations/",
@@ -7463,6 +7490,7 @@ class C_ extends w {
7463
7490
  async refreshStore(e, s) {
7464
7491
  const i = await this.enqueueRequest(
7465
7492
  {
7493
+ immediate: !0,
7466
7494
  description: "Get project accesses",
7467
7495
  method: u.GET,
7468
7496
  url: "/project-accesses/",
@@ -7484,7 +7512,7 @@ class $_ extends Ce {
7484
7512
  A(this, "url", "/project-attachments");
7485
7513
  A(this, "addAttachments", Nh);
7486
7514
  A(this, "updateAttachments", Kh);
7487
- A(this, "removeAttachments", mr);
7515
+ A(this, "removeAttachments", pr);
7488
7516
  A(this, "removeAttachment", Yh);
7489
7517
  A(this, "setAttachment", Hh);
7490
7518
  A(this, "selectAttachment", Qh);
@@ -7516,6 +7544,7 @@ class $_ extends Ce {
7516
7544
  async refreshStore(s, i) {
7517
7545
  const a = await this.enqueueRequest(
7518
7546
  {
7547
+ immediate: !0,
7519
7548
  description: "Get project attachments",
7520
7549
  method: u.GET,
7521
7550
  url: `${this.url}/`,
@@ -7587,10 +7616,10 @@ class G_ extends w {
7587
7616
  const d = Promise.resolve(n).then((l) => this.enqueueRequest(l));
7588
7617
  return d.then((l) => {
7589
7618
  this.dispatch(da(l));
7590
- }), this.dispatch(cp), this.dispatch(rp(null)), this.dispatch(np(!1)), [a, d];
7619
+ }), this.dispatch(cm), this.dispatch(rm(null)), this.dispatch(nm(!1)), [a, d];
7591
7620
  }
7592
7621
  delete(e) {
7593
- return this.dispatch(ip(e)), this.enqueueRequest({
7622
+ return this.dispatch(im(e)), this.enqueueRequest({
7594
7623
  method: u.DELETE,
7595
7624
  url: `/project-files/${e}`,
7596
7625
  blockers: [e],
@@ -7622,7 +7651,7 @@ class G_ extends w {
7622
7651
  }),
7623
7652
  s
7624
7653
  )).flat();
7625
- return this.dispatch(tp(a)), a;
7654
+ return this.dispatch(tm(a)), a;
7626
7655
  }
7627
7656
  }
7628
7657
  class B_ extends w {
@@ -7640,7 +7669,7 @@ class B_ extends w {
7640
7669
  async update(e) {
7641
7670
  if (!e.bounds && !e.canvas_bounds)
7642
7671
  throw new Error("Project must either have bounds or canvas_bounds set");
7643
- return this.dispatch(hp(e)), await this.enqueueRequest({
7672
+ return this.dispatch(hm(e)), await this.enqueueRequest({
7644
7673
  description: "Update project",
7645
7674
  method: u.PATCH,
7646
7675
  url: `/projects/${e.uuid}/`,
@@ -7653,13 +7682,13 @@ class B_ extends w {
7653
7682
  });
7654
7683
  }
7655
7684
  async delete(e) {
7656
- const { store: s } = this.client, i = s.getState(), a = fp(e)(i);
7685
+ const { store: s } = this.client, i = s.getState(), a = fm(e)(i);
7657
7686
  if (!a)
7658
7687
  throw new Error("Expected project to exist");
7659
- const n = dp(i).filter((l) => l.project === e);
7660
- this.dispatch(ap(n.map(({ uuid: l }) => l)));
7688
+ const n = dm(i).filter((l) => l.project === e);
7689
+ this.dispatch(am(n.map(({ uuid: l }) => l)));
7661
7690
  const r = Xh(a.uuid)(i);
7662
- this.dispatch(mr(r.map(({ uuid: l }) => l)));
7691
+ this.dispatch(pr(r.map(({ uuid: l }) => l)));
7663
7692
  const d = Bh(e)(i);
7664
7693
  this.dispatch($h(d.map(({ uuid: l }) => l))), this.dispatch(ha(a.uuid));
7665
7694
  try {
@@ -7671,12 +7700,13 @@ class B_ extends w {
7671
7700
  blocks: []
7672
7701
  }), this.dispatch(ha(a.uuid));
7673
7702
  } catch (l) {
7674
- throw this.dispatch(la(a)), this.dispatch(Ch(Object.values(d))), this.dispatch(sp(n)), this.dispatch(Wh(r)), l;
7703
+ throw this.dispatch(la(a)), this.dispatch(Ch(Object.values(d))), this.dispatch(sm(n)), this.dispatch(Wh(r)), l;
7675
7704
  }
7676
7705
  }
7677
7706
  async refreshStore(e, s) {
7678
7707
  const i = await this.enqueueRequest(
7679
7708
  {
7709
+ immediate: !0,
7680
7710
  description: "Fetch projects",
7681
7711
  method: u.GET,
7682
7712
  url: "/projects/",
@@ -7688,13 +7718,13 @@ class B_ extends w {
7688
7718
  },
7689
7719
  s
7690
7720
  );
7691
- return this.dispatch(lp(i)), i;
7721
+ return this.dispatch(lm(i)), i;
7692
7722
  }
7693
7723
  }
7694
7724
  class L_ extends w {
7695
7725
  add(e) {
7696
7726
  const s = T(e);
7697
- this.dispatch(gp(s));
7727
+ this.dispatch(gm(s));
7698
7728
  const i = this.enqueueRequest({
7699
7729
  description: "Create team membership",
7700
7730
  method: u.POST,
@@ -7704,13 +7734,13 @@ class L_ extends w {
7704
7734
  blocks: [s.uuid]
7705
7735
  });
7706
7736
  return i.then((a) => {
7707
- this.dispatch(ma(a));
7737
+ this.dispatch(pa(a));
7708
7738
  }).catch(() => {
7709
7739
  this.dispatch(fa(s.uuid));
7710
7740
  }), [s, i];
7711
7741
  }
7712
7742
  async delete(e) {
7713
- const { store: s } = this.client, i = s.getState(), a = Pp(e)(i);
7743
+ const { store: s } = this.client, i = s.getState(), a = Pm(e)(i);
7714
7744
  if (!a)
7715
7745
  throw new Error(`Expected team membership with uuid ${e} to exist`);
7716
7746
  this.dispatch(fa(e));
@@ -7723,12 +7753,13 @@ class L_ extends w {
7723
7753
  blocks: [e]
7724
7754
  });
7725
7755
  } catch (n) {
7726
- throw this.dispatch(ma(a)), n;
7756
+ throw this.dispatch(pa(a)), n;
7727
7757
  }
7728
7758
  }
7729
7759
  async refreshStore(e, s) {
7730
7760
  const i = await this.enqueueRequest(
7731
7761
  {
7762
+ immediate: !0,
7732
7763
  description: "Fetch team memberships",
7733
7764
  method: u.GET,
7734
7765
  url: "/team-memberships/",
@@ -7740,7 +7771,7 @@ class L_ extends w {
7740
7771
  },
7741
7772
  s
7742
7773
  );
7743
- return this.dispatch(bp(i)), i;
7774
+ return this.dispatch(bm(i)), i;
7744
7775
  }
7745
7776
  }
7746
7777
  class N_ extends w {
@@ -7751,7 +7782,7 @@ class N_ extends w {
7751
7782
  // TODO: uncomment once supported
7752
7783
  // created_by: state.userReducer.currentUser.uuid,
7753
7784
  });
7754
- this.dispatch(Fp(s));
7785
+ this.dispatch(Fm(s));
7755
7786
  const i = this.enqueueRequest({
7756
7787
  description: "Create team",
7757
7788
  method: u.POST,
@@ -7774,7 +7805,7 @@ class N_ extends w {
7774
7805
  ...i,
7775
7806
  ...e
7776
7807
  };
7777
- this.dispatch(Op(a));
7808
+ this.dispatch(Om(a));
7778
7809
  const n = this.enqueueRequest({
7779
7810
  description: "Update team",
7780
7811
  method: u.PATCH,
@@ -7809,6 +7840,7 @@ class N_ extends w {
7809
7840
  async refreshStore(e, s) {
7810
7841
  const i = await this.enqueueRequest(
7811
7842
  {
7843
+ immediate: !0,
7812
7844
  description: "Fetch teams",
7813
7845
  method: u.GET,
7814
7846
  url: "/teams/",
@@ -7820,13 +7852,14 @@ class N_ extends w {
7820
7852
  },
7821
7853
  s
7822
7854
  );
7823
- return this.dispatch(Tp(i)), i;
7855
+ return this.dispatch(Tm(i)), i;
7824
7856
  }
7825
7857
  }
7826
7858
  class H_ extends w {
7827
7859
  async refreshStore(e, s) {
7828
7860
  const i = await this.enqueueRequest(
7829
7861
  {
7862
+ immediate: !0,
7830
7863
  description: "Fetch organization users",
7831
7864
  method: u.GET,
7832
7865
  url: `/organizations/${e}/users/`,
@@ -8052,9 +8085,9 @@ class We {
8052
8085
  }
8053
8086
  const K_ = (t, e) => {
8054
8087
  const s = new e(t);
8055
- return qp(s), Mp(t), s;
8088
+ return qm(s), Mm(t), s;
8056
8089
  };
8057
- var am = /* @__PURE__ */ ((t) => (t[t.USER_REGISTRATION = 0] = "USER_REGISTRATION", t[t.APPLICATION_INVITE = 2] = "APPLICATION_INVITE", t[t.PROJECT_INVITE = 4] = "PROJECT_INVITE", t[t.ORGANIZATION_INVITE = 6] = "ORGANIZATION_INVITE", t[t.ADD_EMAIL_DOMAIN = 8] = "ADD_EMAIL_DOMAIN", t[t.RESET_PASSWORD = 10] = "RESET_PASSWORD", t))(am || {});
8090
+ var ap = /* @__PURE__ */ ((t) => (t[t.USER_REGISTRATION = 0] = "USER_REGISTRATION", t[t.APPLICATION_INVITE = 2] = "APPLICATION_INVITE", t[t.PROJECT_INVITE = 4] = "PROJECT_INVITE", t[t.ORGANIZATION_INVITE = 6] = "ORGANIZATION_INVITE", t[t.ADD_EMAIL_DOMAIN = 8] = "ADD_EMAIL_DOMAIN", t[t.RESET_PASSWORD = 10] = "RESET_PASSWORD", t))(ap || {});
8058
8091
  export {
8059
8092
  x as APIError,
8060
8093
  GS as AgentService,
@@ -8084,12 +8117,12 @@ export {
8084
8117
  w as BaseApiService,
8085
8118
  W_ as BaseSDK,
8086
8119
  rc as COMMON_AUTO_FIELDS,
8087
- p_ as CategoryService,
8088
- Fm as DEFAULT_ISSUE_PRIORITY,
8089
- Tm as DEFAULT_ISSUE_STATUS,
8120
+ m_ as CategoryService,
8121
+ Fp as DEFAULT_ISSUE_PRIORITY,
8122
+ Tp as DEFAULT_ISSUE_STATUS,
8090
8123
  M as DEFAULT_PAGINATION_PAGE_SIZE,
8091
8124
  Qr as DeferredPromise,
8092
- m_ as DocumentAttachmentService,
8125
+ p_ as DocumentAttachmentService,
8093
8126
  f_ as DocumentService,
8094
8127
  Wr as EMPTY_ARRAY,
8095
8128
  Kr as EMPTY_OBJECT,
@@ -8139,12 +8172,12 @@ export {
8139
8172
  Ye as UNKNOWN_ERROR_MESSAGE,
8140
8173
  H_ as UserService,
8141
8174
  ht as VERSION_REDUCER_KEY,
8142
- am as VerificationCodeType,
8175
+ ap as VerificationCodeType,
8143
8176
  Dh as _setLatestRetryTime,
8144
8177
  Es as addAsset,
8145
- Qm as addAssetAttachment,
8178
+ Qp as addAssetAttachment,
8146
8179
  wa as addAssetAttachments,
8147
- ms as addAssetProcedure,
8180
+ ps as addAssetProcedure,
8148
8181
  tf as addAssetProcedureAttachment,
8149
8182
  Tc as addAssetProcedureAttachments,
8150
8183
  rs as addAssetProcedureFieldValues,
@@ -8154,7 +8187,7 @@ export {
8154
8187
  Cc as addAssetProcedureFields,
8155
8188
  rf as addAssetProcedureFieldsAttachment,
8156
8189
  qc as addAssetProcedureFieldsAttachments,
8157
- pf as addAssetProcedureFieldsMany,
8190
+ mf as addAssetProcedureFieldsMany,
8158
8191
  us as addAssetProcedureInstance,
8159
8192
  ao as addAssetProcedureInstances,
8160
8193
  Rs as addAssetProcedureStep,
@@ -8164,7 +8197,7 @@ export {
8164
8197
  vo as addAssetProcedureStepFieldValuesMany,
8165
8198
  gs as addAssetProcedureStepFields,
8166
8199
  Bf as addAssetProcedureStepFieldsAttachment,
8167
- po as addAssetProcedureStepFieldsAttachments,
8200
+ mo as addAssetProcedureStepFieldsAttachments,
8168
8201
  Jf as addAssetProcedureStepFieldsMany,
8169
8202
  yA as addAssetProcedureSteps,
8170
8203
  zf as addAssetProcedures,
@@ -8179,22 +8212,22 @@ export {
8179
8212
  ty as addAssetTypeFieldValuesAttachment,
8180
8213
  wt as addAssetTypeFieldValuesAttachments,
8181
8214
  Id as addAssetTypeFieldValuesMany,
8182
- md as addAssetTypeFields,
8215
+ pd as addAssetTypeFields,
8183
8216
  CA as addAssetTypeFieldsAttachment,
8184
8217
  cd as addAssetTypeFieldsAttachments,
8185
8218
  WA as addAssetTypeFieldsMany,
8186
- py as addAssetTypes,
8219
+ my as addAssetTypes,
8187
8220
  vt as addAssets,
8188
8221
  Py as addCategories,
8189
8222
  ii as addCategory,
8190
8223
  uc as addConversation,
8191
- Nm as addConversations,
8224
+ Np as addConversations,
8192
8225
  wy as addDocumentAttachment,
8193
8226
  Gd as addDocumentAttachments,
8194
8227
  Qd as addDocuments,
8195
8228
  su as addEmailDomain,
8196
8229
  zy as addEmailDomains,
8197
- pi as addForm,
8230
+ mi as addForm,
8198
8231
  Rn as addFormRevision,
8199
8232
  By as addFormRevisionAttachment,
8200
8233
  hu as addFormRevisionAttachments,
@@ -8240,17 +8273,17 @@ export {
8240
8273
  nS as addProjectAttachment,
8241
8274
  Nh as addProjectAttachments,
8242
8275
  dS as addProjectFile,
8243
- sp as addProjectFiles,
8276
+ sm as addProjectFiles,
8244
8277
  yS as addProjects,
8245
- Fp as addTeam,
8246
- gp as addTeamMembership,
8278
+ Fm as addTeam,
8279
+ gm as addTeamMembership,
8247
8280
  FS as addTeamMemberships,
8248
8281
  ES as addTeams,
8249
8282
  gh as addUser,
8250
8283
  wg as addUsers,
8251
- pc as agentsReducer,
8284
+ mc as agentsReducer,
8252
8285
  Ia as agentsSlice,
8253
- km as areArraysEqual,
8286
+ kp as areArraysEqual,
8254
8287
  _c as assetAttachmentReducer,
8255
8288
  va as assetAttachmentSlice,
8256
8289
  vc as assetProcedureAttachmentReducer,
@@ -8288,7 +8321,7 @@ export {
8288
8321
  Fd as assetTypeFieldValuesAttachmentReducer,
8289
8322
  ln as assetTypeFieldValuesAttachmentSlice,
8290
8323
  kd as assetTypeFieldValuesReducer,
8291
- pn as assetTypeFieldValuesSlice,
8324
+ mn as assetTypeFieldValuesSlice,
8292
8325
  hd as assetTypeFieldsAttachmentReducer,
8293
8326
  dn as assetTypeFieldsAttachmentSlice,
8294
8327
  bd as assetTypeFieldsReducer,
@@ -8299,18 +8332,18 @@ export {
8299
8332
  Gt as authSlice,
8300
8333
  DS as baseReducer,
8301
8334
  Tr as baseReducers,
8302
- zm as blobToBase64,
8335
+ zp as blobToBase64,
8303
8336
  Cd as categoryReducer,
8304
8337
  yn as categorySlice,
8305
8338
  gy as clearTokens,
8306
- Um as constructUploadedFilePayloads,
8307
- vm as coordinatesAreEqual,
8339
+ Up as constructUploadedFilePayloads,
8340
+ vp as coordinatesAreEqual,
8308
8341
  F as createModelAdapter,
8309
- Rm as createMultiPointGeometry,
8342
+ Rp as createMultiPointGeometry,
8310
8343
  jh as createOfflineAction,
8311
8344
  k as createPayload,
8312
- Im as createPointGeometry,
8313
- Om as createSelectionAdapter,
8345
+ Ip as createPointGeometry,
8346
+ Op as createSelectionAdapter,
8314
8347
  Ms as deleteAsset,
8315
8348
  Ac as deleteAssetAttachment,
8316
8349
  ka as deleteAssetAttachments,
@@ -8357,16 +8390,16 @@ export {
8357
8390
  Xa as deleteAssets,
8358
8391
  Iy as deleteCategories,
8359
8392
  xd as deleteCategory,
8360
- Km as deleteConversation,
8361
- Ym as deleteConversations,
8393
+ Kp as deleteConversation,
8394
+ Yp as deleteConversations,
8362
8395
  Nd as deleteDocumentAttachment,
8363
8396
  Hd as deleteDocumentAttachments,
8364
8397
  iu as deleteEmailDomain,
8365
8398
  $y as deleteEmailDomains,
8366
- mi as deleteForm,
8399
+ pi as deleteForm,
8367
8400
  vn as deleteFormRevision,
8368
8401
  Wy as deleteFormRevisionAttachment,
8369
- mu as deleteFormRevisionAttachments,
8402
+ pu as deleteFormRevisionAttachments,
8370
8403
  Su as deleteFormRevisions,
8371
8404
  bi as deleteFormSubmission,
8372
8405
  lb as deleteFormSubmissionAttachment,
@@ -8381,14 +8414,14 @@ export {
8381
8414
  al as deleteIssueAttachment,
8382
8415
  Bn as deleteIssueAttachments,
8383
8416
  qi as deleteIssueComment,
8384
- pl as deleteIssueCommentAttachment,
8385
- ml as deleteIssueCommentAttachments,
8417
+ ml as deleteIssueCommentAttachment,
8418
+ pl as deleteIssueCommentAttachments,
8386
8419
  Eb as deleteIssueComments,
8387
8420
  gg as deleteIssueType,
8388
8421
  kl as deleteIssueTypeAttachment,
8389
8422
  El as deleteIssueTypeAttachments,
8390
8423
  Li as deleteIssueTypeFieldValues,
8391
- mg as deleteIssueTypeFieldValuesAttachment,
8424
+ pg as deleteIssueTypeFieldValuesAttachment,
8392
8425
  jt as deleteIssueTypeFieldValuesAttachments,
8393
8426
  Xb as deleteIssueTypeFieldValuesMany,
8394
8427
  Yl as deleteIssueTypeFields,
@@ -8397,7 +8430,7 @@ export {
8397
8430
  ng as deleteIssueTypeFieldsMany,
8398
8431
  Sg as deleteIssueTypes,
8399
8432
  hh as deleteIssueUpdate,
8400
- ph as deleteIssueUpdates,
8433
+ mh as deleteIssueUpdates,
8401
8434
  Fl as deleteIssues,
8402
8435
  Wg as deleteOrganization,
8403
8436
  Ih as deleteOrganizationAccess,
@@ -8407,9 +8440,9 @@ export {
8407
8440
  na as deleteProjectAccess,
8408
8441
  $h as deleteProjectAccesses,
8409
8442
  Yh as deleteProjectAttachment,
8410
- mr as deleteProjectAttachments,
8411
- ip as deleteProjectFile,
8412
- ap as deleteProjectFiles,
8443
+ pr as deleteProjectAttachments,
8444
+ im as deleteProjectFile,
8445
+ am as deleteProjectFiles,
8413
8446
  gS as deleteProjects,
8414
8447
  ya as deleteTeam,
8415
8448
  fa as deleteTeamMembership,
@@ -8417,18 +8450,18 @@ export {
8417
8450
  jS as deleteTeams,
8418
8451
  Sh as deleteUser,
8419
8452
  Mg as deleteUsers,
8420
- Cp as dequeue,
8453
+ Cm as dequeue,
8421
8454
  jr as discard,
8422
8455
  Jd as documentAttachmentReducer,
8423
8456
  gn as documentAttachmentSlice,
8424
8457
  Sn as documentSlice,
8425
8458
  eu as documentsReducer,
8426
- Dm as downloadFile,
8427
- jm as downloadInMemoryFile,
8459
+ Dp as downloadFile,
8460
+ jp as downloadInMemoryFile,
8428
8461
  ru as emailDomainsReducer,
8429
8462
  Pn as emailDomainsSlice,
8430
- Lm as emailRegex,
8431
- Vp as enqueue,
8463
+ Lp as emailRegex,
8464
+ Vm as enqueue,
8432
8465
  Uh as enqueueRequest,
8433
8466
  b as fallbackToEmptyArray,
8434
8467
  zt as fallbackToEmptyObject,
@@ -8447,10 +8480,10 @@ export {
8447
8480
  jn as formSubmissionSlice,
8448
8481
  Ku as geoImageReducer,
8449
8482
  Dn as geoImageSlice,
8450
- qm as getFileIdentifier,
8483
+ qp as getFileIdentifier,
8451
8484
  Jt as getFileS3Key,
8452
8485
  ec as getLocalDateString,
8453
- Mm as getLocalRelativeDateString,
8486
+ Mp as getLocalRelativeDateString,
8454
8487
  Be as getOutboxCoordinator,
8455
8488
  ac as getRenamedFile,
8456
8489
  Ke as hashFile,
@@ -8473,7 +8506,7 @@ export {
8473
8506
  Zo as initializeAssetTypeAttachments,
8474
8507
  Od as initializeAssetTypeFieldValues,
8475
8508
  gd as initializeAssetTypeFieldValuesAttachments,
8476
- pd as initializeAssetTypeFields,
8509
+ md as initializeAssetTypeFields,
8477
8510
  rd as initializeAssetTypeFieldsAttachments,
8478
8511
  Ed as initializeAssetTypes,
8479
8512
  Do as initializeAssets,
@@ -8503,12 +8536,12 @@ export {
8503
8536
  wh as initializeOrganizations,
8504
8537
  Vh as initializeProjectAccesses,
8505
8538
  Lh as initializeProjectAttachments,
8506
- tp as initializeProjectFiles,
8507
- lp as initializeProjects,
8508
- bp as initializeTeamMemberships,
8509
- Tp as initializeTeams,
8539
+ tm as initializeProjectFiles,
8540
+ lm as initializeProjects,
8541
+ bm as initializeTeamMemberships,
8542
+ Tm as initializeTeams,
8510
8543
  bh as initializeUsers,
8511
- Em as isToday,
8544
+ Ep as isToday,
8512
8545
  tl as issueAssociationReducer,
8513
8546
  xn as issueAssociationSlice,
8514
8547
  dl as issueAttachmentReducer,
@@ -8533,12 +8566,12 @@ export {
8533
8566
  sr as issueTypeSlice,
8534
8567
  yh as issueUpdateReducer,
8535
8568
  ar as issueUpdateSlice,
8536
- xm as logOnlyOnce,
8569
+ xp as logOnlyOnce,
8537
8570
  zh as markAsDeleted,
8538
8571
  Xg as markForDeletion,
8539
8572
  Oa as memoize,
8540
8573
  T as offline,
8541
- Bm as onlyUniqueHashes,
8574
+ Bp as onlyUniqueHashes,
8542
8575
  oc as onlyUniqueOfflineIds,
8543
8576
  Rh as organizationAccessReducer,
8544
8577
  cr as organizationAccessSlice,
@@ -8548,28 +8581,28 @@ export {
8548
8581
  ur as outboxSlice,
8549
8582
  $S as overmapEnhancer,
8550
8583
  xS as overmapReducer,
8551
- Ep as overmapReducers,
8584
+ Em as overmapReducers,
8552
8585
  Er as performRequest,
8553
8586
  Gh as projectAccessReducer,
8554
8587
  lr as projectAccessSlice,
8555
- ep as projectAttachmentReducer,
8556
- pr as projectAttachmentSlice,
8557
- up as projectFileReducer,
8588
+ em as projectAttachmentReducer,
8589
+ mr as projectAttachmentSlice,
8590
+ um as projectFileReducer,
8558
8591
  fr as projectFileSlice,
8559
- pp as projectReducer,
8592
+ mm as projectReducer,
8560
8593
  Ar as projectSlice,
8561
- yp as rehydratedReducer,
8594
+ ym as rehydratedReducer,
8562
8595
  br as rehydratedSlice,
8563
8596
  ci as removeDocuments,
8564
8597
  Yi as removeIssueType,
8565
8598
  lS as resetProjectFileObjectUrls,
8566
8599
  y as restructureCreateSelectorWithArgs,
8567
- cp as saveActiveProjectFileBounds,
8600
+ cm as saveActiveProjectFileBounds,
8568
8601
  Sy as selectAccessToken,
8569
8602
  iS as selectAccessesByUserOfProject,
8570
8603
  SS as selectAccessibleProjects,
8571
8604
  $g as selectActiveOrganizationAccess,
8572
- pS as selectActiveProjectFileId,
8605
+ mS as selectActiveProjectFileId,
8573
8606
  Kd as selectAllDocumentAttachments,
8574
8607
  Zh as selectAllProjectAttachments,
8575
8608
  gc as selectAssetAttachmentById,
@@ -8609,8 +8642,8 @@ export {
8609
8642
  Ya as selectAssetProcedureStepFieldValuesAttachmentsMapping,
8610
8643
  Os as selectAssetProcedureStepFieldValuesById,
8611
8644
  Eo as selectAssetProcedureStepFieldValuesMapping,
8612
- pA as selectAssetProcedureStepFieldValuesOfAsset,
8613
- mA as selectAssetProcedureStepFieldValuesOfAssetProcedureInstance,
8645
+ mA as selectAssetProcedureStepFieldValuesOfAsset,
8646
+ pA as selectAssetProcedureStepFieldValuesOfAssetProcedureInstance,
8614
8647
  fA as selectAssetProcedureStepFieldValuesOfAssetProcedureStep,
8615
8648
  Wa as selectAssetProcedureStepFields,
8616
8649
  Yf as selectAssetProcedureStepFieldsAttachmentById,
@@ -8641,7 +8674,7 @@ export {
8641
8674
  td as selectAssetTypeAttachmentMapping,
8642
8675
  sd as selectAssetTypeAttachments,
8643
8676
  ei as selectAssetTypeById,
8644
- mn as selectAssetTypeFieldValues,
8677
+ pn as selectAssetTypeFieldValues,
8645
8678
  ry as selectAssetTypeFieldValuesAttachmentById,
8646
8679
  _d as selectAssetTypeFieldValuesAttachments,
8647
8680
  Pd as selectAssetTypeFieldValuesAttachmentsByIds,
@@ -8689,9 +8722,9 @@ export {
8689
8722
  ai as selectCategoryById,
8690
8723
  bn as selectCategoryMapping,
8691
8724
  Mb as selectCommentsOfIssue,
8692
- Zm as selectConversation,
8725
+ Zp as selectConversation,
8693
8726
  Ra as selectConversationMapping,
8694
- Jm as selectConversations,
8727
+ Jp as selectConversations,
8695
8728
  Ph as selectCurrentUser,
8696
8729
  Zg as selectDeletedRequests,
8697
8730
  Yd as selectDocumentAttachmentById,
@@ -8726,10 +8759,10 @@ export {
8726
8759
  Hu as selectGeoImageMapping,
8727
8760
  Wu as selectGeoImages,
8728
8761
  fb as selectGeoImagesOfProject,
8729
- mS as selectIsImportingProjectFile,
8762
+ pS as selectIsImportingProjectFile,
8730
8763
  _y as selectIsLoggedIn,
8731
8764
  Zu as selectIssueAssociationById,
8732
- pt as selectIssueAssociationMapping,
8765
+ mt as selectIssueAssociationMapping,
8733
8766
  gb as selectIssueAssociations,
8734
8767
  el as selectIssueAssociationsOfAsset,
8735
8768
  Xu as selectIssueAssociationsOfIssue,
@@ -8768,7 +8801,7 @@ export {
8768
8801
  ch as selectIssueTypes,
8769
8802
  _g as selectIssueTypesByIds,
8770
8803
  Pg as selectIssueTypesOfOrganization,
8771
- mh as selectIssueUpdateMapping,
8804
+ ph as selectIssueUpdateMapping,
8772
8805
  fh as selectIssueUpdates,
8773
8806
  Ah as selectIssueUpdatesOfIssue,
8774
8807
  Kn as selectIssues,
@@ -8797,21 +8830,21 @@ export {
8797
8830
  Bh as selectProjectAccessesOfProject,
8798
8831
  Qh as selectProjectAttachmentById,
8799
8832
  Jh as selectProjectAttachmentMapping,
8800
- fp as selectProjectById,
8833
+ fm as selectProjectById,
8801
8834
  jy as selectProjectDocuments,
8802
8835
  hS as selectProjectFileById,
8803
- op as selectProjectFileMapping,
8804
- dp as selectProjectFiles,
8805
- mp as selectProjectMapping,
8836
+ om as selectProjectFileMapping,
8837
+ dm as selectProjectFiles,
8838
+ pm as selectProjectMapping,
8806
8839
  yr as selectProjects,
8807
8840
  _S as selectProjectsOfOrganization,
8808
8841
  TS as selectRehydrated,
8809
8842
  Ct as selectStageMapping,
8810
8843
  ba as selectTeamById,
8811
- Pp as selectTeamMembershipById,
8844
+ Pm as selectTeamMembershipById,
8812
8845
  Sr as selectTeamMemberships,
8813
- _p as selectTeamMembershipsMapping,
8814
- Ip as selectTeams,
8846
+ _m as selectTeamMembershipsMapping,
8847
+ Im as selectTeams,
8815
8848
  US as selectTeamsByIds,
8816
8849
  Pr as selectTeamsMapping,
8817
8850
  zS as selectTeamsOfOrganization,
@@ -8823,10 +8856,10 @@ export {
8823
8856
  Gg as selectUsersOfOrganization,
8824
8857
  aS as selectUsersOfProject,
8825
8858
  kS as selectUsersOfTeam,
8826
- rp as setActiveProjectFileId,
8859
+ rm as setActiveProjectFileId,
8827
8860
  FA as setAsset,
8828
- mc as setAssetAttachment,
8829
- Xm as setAssetAttachments,
8861
+ pc as setAssetAttachment,
8862
+ Xp as setAssetAttachments,
8830
8863
  Vf as setAssetProcedure,
8831
8864
  Fc as setAssetProcedureAttachment,
8832
8865
  sf as setAssetProcedureAttachments,
@@ -8834,7 +8867,7 @@ export {
8834
8867
  Pf as setAssetProcedureFieldValuesAttachment,
8835
8868
  Tf as setAssetProcedureFieldValuesAttachments,
8836
8869
  vf as setAssetProcedureFieldValuesMany,
8837
- mf as setAssetProcedureFields,
8870
+ pf as setAssetProcedureFields,
8838
8871
  cf as setAssetProcedureFieldsAttachment,
8839
8872
  of as setAssetProcedureFieldsAttachments,
8840
8873
  ff as setAssetProcedureFieldsMany,
@@ -8871,7 +8904,7 @@ export {
8871
8904
  Fy as setCategories,
8872
8905
  Ty as setCategory,
8873
8906
  lc as setConversation,
8874
- Hm as setConversations,
8907
+ Hp as setConversations,
8875
8908
  qg as setCurrentUser,
8876
8909
  Bd as setDocumentAttachment,
8877
8910
  ky as setDocumentAttachments,
@@ -8890,7 +8923,7 @@ export {
8890
8923
  sb as setForms,
8891
8924
  nt as setGeoImage,
8892
8925
  $u as setGeoImages,
8893
- np as setIsImportingProjectFile,
8926
+ nm as setIsImportingProjectFile,
8894
8927
  qb as setIssue,
8895
8928
  yb as setIssueAssociation,
8896
8929
  Ab as setIssueAssociations,
@@ -8931,23 +8964,23 @@ export {
8931
8964
  fS as setProjects,
8932
8965
  PS as setRehydrated,
8933
8966
  dt as setTeam,
8934
- ma as setTeamMembership,
8967
+ pa as setTeamMembership,
8935
8968
  OS as setTeamMemberships,
8936
8969
  MS as setTeams,
8937
8970
  by as setTokens,
8938
8971
  ou as setUploadUrl,
8939
8972
  vg as setUser,
8940
8973
  Rg as setUsers,
8941
- wm as shallowEqual,
8942
- $m as slugify,
8943
- Cm as spacesToDashesLower,
8944
- Sp as teamMembershipReducer,
8974
+ wp as shallowEqual,
8975
+ $p as slugify,
8976
+ Cp as spacesToDashesLower,
8977
+ Sm as teamMembershipReducer,
8945
8978
  gr as teamMembershipSlice,
8946
- Rp as teamReducer,
8979
+ Rm as teamReducer,
8947
8980
  _r as teamSlice,
8948
- Vm as toFileNameSafeString,
8981
+ Vp as toFileNameSafeString,
8949
8982
  cc as toOfflineIdRecord,
8950
- Gm as truncate,
8983
+ Gp as truncate,
8951
8984
  st as updateAsset,
8952
8985
  ef as updateAssetAttachment,
8953
8986
  fc as updateAssetAttachments,
@@ -8964,14 +8997,14 @@ export {
8964
8997
  Af as updateAssetProcedureFieldsMany,
8965
8998
  Qe as updateAssetProcedureInstance,
8966
8999
  Ef as updateAssetProcedureInstances,
8967
- mt as updateAssetProcedureStep,
9000
+ pt as updateAssetProcedureStep,
8968
9001
  tt as updateAssetProcedureStepFieldValues,
8969
9002
  oA as updateAssetProcedureStepFieldValuesAttachment,
8970
9003
  Po as updateAssetProcedureStepFieldValuesAttachments,
8971
9004
  wo as updateAssetProcedureStepFieldValuesMany,
8972
9005
  et as updateAssetProcedureStepFields,
8973
9006
  Hf as updateAssetProcedureStepFieldsAttachment,
8974
- mo as updateAssetProcedureStepFieldsAttachments,
9007
+ po as updateAssetProcedureStepFieldsAttachments,
8975
9008
  Xf as updateAssetProcedureStepFieldsMany,
8976
9009
  bA as updateAssetProcedureSteps,
8977
9010
  Df as updateAssetProcedures,
@@ -8990,12 +9023,12 @@ export {
8990
9023
  BA as updateAssetTypeFieldsAttachment,
8991
9024
  od as updateAssetTypeFieldsAttachments,
8992
9025
  JA as updateAssetTypeFieldsMany,
8993
- my as updateAssetTypes,
9026
+ py as updateAssetTypes,
8994
9027
  TA as updateAssets,
8995
9028
  Oy as updateCategories,
8996
9029
  Dd as updateCategory,
8997
9030
  hc as updateConversation,
8998
- Wm as updateConversations,
9031
+ Wp as updateConversations,
8999
9032
  Ey as updateDocumentAttachment,
9000
9033
  Ld as updateDocumentAttachments,
9001
9034
  He as updateDocuments,
@@ -9004,15 +9037,15 @@ export {
9004
9037
  ib as updateForm,
9005
9038
  Jy as updateFormRevision,
9006
9039
  Hy as updateFormRevisionAttachment,
9007
- pu as updateFormRevisionAttachments,
9040
+ mu as updateFormRevisionAttachments,
9008
9041
  Zy as updateFormRevisions,
9009
9042
  Uu as updateFormSubmission,
9010
9043
  ub as updateFormSubmissionAttachment,
9011
9044
  wu as updateFormSubmissionAttachments,
9012
- pb as updateFormSubmissions,
9045
+ mb as updateFormSubmissions,
9013
9046
  ab as updateForms,
9014
9047
  Lu as updateGeoImage,
9015
- mb as updateGeoImages,
9048
+ pb as updateGeoImages,
9016
9049
  yt as updateIssue,
9017
9050
  Ju as updateIssueAssociation,
9018
9051
  bb as updateIssueAssociations,
@@ -9026,7 +9059,7 @@ export {
9026
9059
  Cb as updateIssueTypeAttachment,
9027
9060
  wl as updateIssueTypeAttachments,
9028
9061
  rt as updateIssueTypeFieldValues,
9029
- pg as updateIssueTypeFieldValuesAttachment,
9062
+ mg as updateIssueTypeFieldValuesAttachment,
9030
9063
  Xl as updateIssueTypeFieldValuesAttachments,
9031
9064
  Qb as updateIssueTypeFieldValuesMany,
9032
9065
  Kl as updateIssueTypeFields,
@@ -9041,7 +9074,7 @@ export {
9041
9074
  bt as updateOrganizationAccess,
9042
9075
  Vg as updateOrganizationAccesses,
9043
9076
  Hg as updateOrganizations,
9044
- hp as updateProject,
9077
+ hm as updateProject,
9045
9078
  ot as updateProjectAccess,
9046
9079
  sS as updateProjectAccesses,
9047
9080
  rS as updateProjectAttachment,
@@ -9049,7 +9082,7 @@ export {
9049
9082
  da as updateProjectFile,
9050
9083
  uS as updateProjectFiles,
9051
9084
  bS as updateProjects,
9052
- Op as updateTeam,
9085
+ Om as updateTeam,
9053
9086
  IS as updateTeamMembership,
9054
9087
  RS as updateTeamMemberships,
9055
9088
  qS as updateTeams,
@@ -9058,6 +9091,6 @@ export {
9058
9091
  VS as useSelectorBuilder,
9059
9092
  _h as userReducer,
9060
9093
  nr as userSlice,
9061
- kp as versioningReducer,
9062
- wp as versioningSlice
9094
+ km as versioningReducer,
9095
+ wm as versioningSlice
9063
9096
  };