@overmap-ai/core 1.0.74-integration-improvements.0 → 1.0.74-integration-improvements.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/overmap-core.js +1092 -1059
  2. package/dist/overmap-core.umd.cjs +7 -7
  3. package/dist/sdk/services/AssetAttachmentService.d.ts +1 -1
  4. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +1 -1
  5. package/dist/sdk/services/BaseAttachmentService.d.ts +1 -1
  6. package/dist/sdk/services/DocumentAttachmentService.d.ts +1 -1
  7. package/dist/sdk/services/IssueAttachmentService.d.ts +1 -1
  8. package/dist/sdk/services/IssueCommentAttachmentService.d.ts +1 -1
  9. package/dist/sdk/services/IssueTypeAttachmentService.d.ts +1 -1
  10. package/dist/sdk/services/ProjectAttachmentService.d.ts +1 -1
  11. package/dist/sdk/services/ProjectService.d.ts +1 -1
  12. package/dist/sdk/services/TeamService.d.ts +3 -3
  13. package/dist/store/adapters/modelAdapter.d.ts +12 -12
  14. package/dist/store/slices/agentsSlice.d.ts +5 -5
  15. package/dist/store/slices/assetAttachmentSlice.d.ts +16 -10
  16. package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +16 -10
  17. package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +16 -10
  18. package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +16 -10
  19. package/dist/store/slices/assetProcedureFieldsSlice.d.ts +16 -10
  20. package/dist/store/slices/assetProcedureInstanceSlice.d.ts +16 -10
  21. package/dist/store/slices/assetProcedureSlice.d.ts +16 -10
  22. package/dist/store/slices/assetSlice.d.ts +16 -10
  23. package/dist/store/slices/assetStageCompletionSlice.d.ts +14 -8
  24. package/dist/store/slices/assetStageSlice.d.ts +16 -10
  25. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -10
  26. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +16 -10
  27. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +16 -10
  28. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +16 -10
  29. package/dist/store/slices/assetTypeFieldsSlice.d.ts +16 -10
  30. package/dist/store/slices/assetTypeSlice.d.ts +16 -10
  31. package/dist/store/slices/categorySlice.d.ts +8 -5
  32. package/dist/store/slices/documentAttachmentSlice.d.ts +16 -10
  33. package/dist/store/slices/emailDomainsSlice.d.ts +7 -4
  34. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -10
  35. package/dist/store/slices/formRevisionSlice.d.ts +13 -7
  36. package/dist/store/slices/formSlice.d.ts +10 -7
  37. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -10
  38. package/dist/store/slices/formSubmissionSlice.d.ts +16 -10
  39. package/dist/store/slices/geoImageSlice.d.ts +16 -10
  40. package/dist/store/slices/issueAssociationSlice.d.ts +16 -10
  41. package/dist/store/slices/issueAttachmentSlice.d.ts +16 -10
  42. package/dist/store/slices/issueCommentAttachmentSlice.d.ts +16 -10
  43. package/dist/store/slices/issueCommentSlice.d.ts +13 -7
  44. package/dist/store/slices/issueSlice.d.ts +13 -7
  45. package/dist/store/slices/issueTypeAttachmentSlice.d.ts +16 -10
  46. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +16 -10
  47. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +16 -10
  48. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +16 -10
  49. package/dist/store/slices/issueTypeFieldsSlice.d.ts +16 -10
  50. package/dist/store/slices/issueTypeSlice.d.ts +9 -6
  51. package/dist/store/slices/issueUpdateSlice.d.ts +13 -7
  52. package/dist/store/slices/licenseSlice.d.ts +4 -4
  53. package/dist/store/slices/organizationAccessSlice.d.ts +7 -4
  54. package/dist/store/slices/organizationSlice.d.ts +18 -12
  55. package/dist/store/slices/projectAccessSlice.d.ts +11 -5
  56. package/dist/store/slices/projectAttachmentSlice.d.ts +16 -10
  57. package/dist/store/slices/projectFileSlice.d.ts +16 -10
  58. package/dist/store/slices/projectSlice.d.ts +18 -12
  59. package/dist/store/slices/teamSlice.d.ts +10 -7
  60. package/dist/store/slices/userSlice.d.ts +31 -15
  61. package/dist/store/typings.d.ts +2 -2
  62. package/dist/typings/models/base.d.ts +4 -1
  63. package/dist/typings/models/issues.d.ts +3 -3
  64. package/dist/typings/models/organizations.d.ts +2 -1
  65. package/dist/typings/models/projects.d.ts +4 -3
  66. package/dist/typings/models/teams.d.ts +2 -2
  67. package/dist/typings/models/users.d.ts +7 -8
  68. package/package.json +1 -1
@@ -74,37 +74,37 @@ function _(t) {
74
74
  }
75
75
  function Jh() {
76
76
  return {
77
- initializeSelection: (l, o) => {
78
- l.selection = Array.from(new Set(o.payload));
77
+ initializeSelection: (l, r) => {
78
+ l.selection = Array.from(new Set(r.payload));
79
79
  },
80
- selectOne: (l, o) => {
81
- new Set(l.selection).has(o.payload) || l.selection.push(o.payload);
80
+ selectOne: (l, r) => {
81
+ new Set(l.selection).has(r.payload) || l.selection.push(r.payload);
82
82
  },
83
- selectMany: (l, o) => {
84
- const r = new Set(l.selection);
85
- for (const h of o.payload)
86
- r.has(h) || r.add(h);
87
- l.selection = Array.from(r);
83
+ selectMany: (l, r) => {
84
+ const o = new Set(l.selection);
85
+ for (const h of r.payload)
86
+ o.has(h) || o.add(h);
87
+ l.selection = Array.from(o);
88
88
  },
89
- unselectOne: (l, o) => {
90
- const r = new Set(l.selection);
91
- r.has(o.payload) && (r.delete(o.payload), l.selection = Array.from(r));
89
+ unselectOne: (l, r) => {
90
+ const o = new Set(l.selection);
91
+ o.has(r.payload) && (o.delete(r.payload), l.selection = Array.from(o));
92
92
  },
93
- unselectMany: (l, o) => {
94
- const r = new Set(l.selection);
95
- for (const h of o.payload)
96
- r.has(h) && r.delete(h);
97
- l.selection = Array.from(r);
93
+ unselectMany: (l, r) => {
94
+ const o = new Set(l.selection);
95
+ for (const h of r.payload)
96
+ o.has(h) && o.delete(h);
97
+ l.selection = Array.from(o);
98
98
  },
99
- toggleOne: (l, o) => {
100
- const r = new Set(l.selection);
101
- r.has(o.payload) ? r.delete(o.payload) : r.add(o.payload), l.selection = Array.from(r);
99
+ toggleOne: (l, r) => {
100
+ const o = new Set(l.selection);
101
+ o.has(r.payload) ? o.delete(r.payload) : o.add(r.payload), l.selection = Array.from(o);
102
102
  },
103
- toggleMany: (l, o) => {
104
- const r = new Set(l.selection);
105
- for (const h of o.payload)
106
- r.has(h) ? r.delete(h) : r.add(h);
107
- l.selection = Array.from(r);
103
+ toggleMany: (l, r) => {
104
+ const o = new Set(l.selection);
105
+ for (const h of r.payload)
106
+ o.has(h) ? o.delete(h) : o.add(h);
107
+ l.selection = Array.from(o);
108
108
  },
109
109
  getInitialState: (l) => ({
110
110
  ...l,
@@ -186,9 +186,9 @@ const b = (t) => t.length === 0 ? Qa : t, ze = (t) => Object.keys(t).length ===
186
186
  if (!t) return "";
187
187
  const e = new Date(t), s = e.getFullYear() === St.getFullYear(), i = { day: "numeric", month: "short" };
188
188
  return s || (i.year = "numeric"), e.toLocaleDateString([], i);
189
- }), oc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), rc = 1e3 * 86400, St = /* @__PURE__ */ new Date(), sm = (t) => new Date(t).toDateString() === St.toDateString(), im = Gi((t, e, s) => {
190
- const i = Math.round((new Date(t).getTime() - St.getTime()) / rc);
191
- return i < e || i > s ? cc(t) : oc.format(i, "days");
189
+ }), rc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), oc = 1e3 * 86400, St = /* @__PURE__ */ new Date(), sm = (t) => new Date(t).toDateString() === St.toDateString(), im = Gi((t, e, s) => {
190
+ const i = Math.round((new Date(t).getTime() - St.getTime()) / oc);
191
+ return i < e || i > s ? cc(t) : rc.format(i, "days");
192
192
  });
193
193
  function dc(t) {
194
194
  return new Uint8Array(t).reduce((s, i) => s + i.toString(16).padStart(2, "0"), "");
@@ -242,14 +242,14 @@ const cm = async (t) => {
242
242
  };
243
243
  }
244
244
  return Object.values(e);
245
- }, lc = async (t) => (await fetch(t)).blob(), om = (t) => new Promise((e, s) => {
245
+ }, lc = async (t) => (await fetch(t)).blob(), rm = (t) => new Promise((e, s) => {
246
246
  const i = new FileReader();
247
247
  i.onloadend = () => {
248
248
  var n;
249
249
  e(((n = i.result) == null ? void 0 : n.toString()) || "");
250
250
  }, i.readAsDataURL(t);
251
251
  });
252
- function rm(t) {
252
+ function om(t) {
253
253
  const e = new Blob([t]);
254
254
  La(e, t.name);
255
255
  }
@@ -299,13 +299,15 @@ function pm(t, e, s) {
299
299
  return s.findIndex((i) => i.file_sha1 === t.file_sha1) === e;
300
300
  }
301
301
  const fm = /^.+@.+\..+$/;
302
- function v(t) {
302
+ function P(t) {
303
303
  const e = { ...t };
304
304
  for (const s of [...hc, "created_by"])
305
305
  s in e && delete e[s];
306
306
  return e;
307
307
  }
308
- const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
308
+ const ke = _(
309
+ (t) => t.uuid
310
+ ), Ct = ke.getInitialState({}), Li = T({
309
311
  name: "agents",
310
312
  initialState: Ct,
311
313
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ct)),
@@ -323,7 +325,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
323
325
  [Bi, (t, e) => e],
324
326
  (t, e) => t[e]
325
327
  )
326
- ), gc = Li.reducer, C = _((t) => t.uuid), Dt = C.getInitialState({}), Ni = T({
328
+ ), gc = Li.reducer, C = _(
329
+ (t) => t.uuid
330
+ ), Dt = C.getInitialState({}), Ni = T({
327
331
  name: "assetAttachments",
328
332
  initialState: Dt,
329
333
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Dt)),
@@ -356,9 +360,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
356
360
  [Oc, (t, e) => e],
357
361
  (t, e) => b(t.filter(({ asset: s }) => e === s))
358
362
  )
359
- ), vc = Ni.reducer, D = _(
360
- (t) => t.uuid
361
- ), zt = D.getInitialState({}), Ki = T({
363
+ ), Pc = Ni.reducer, D = _((t) => t.uuid), zt = D.getInitialState({}), Ki = T({
362
364
  name: "assetProcedureFieldsAttachments",
363
365
  initialState: zt,
364
366
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zt)),
@@ -374,7 +376,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
374
376
  deleteAssetProcedureFieldsAttachments: D.deleteMany
375
377
  }
376
378
  }), {
377
- initializeAssetProcedureFieldsAttachments: Pc,
379
+ initializeAssetProcedureFieldsAttachments: vc,
378
380
  addAssetProcedureFieldsAttachment: Tm,
379
381
  addAssetProcedureFieldsAttachments: wc,
380
382
  setAssetProcedureFieldsAttachment: Rm,
@@ -388,7 +390,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
388
390
  (t) => Object.values(t)
389
391
  ), Fm = A(
390
392
  p([jc, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
391
- ), vm = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], Mc = Ki.reducer, x = _((t) => t.uuid), Ut = x.getInitialState({}), Yi = T({
393
+ ), Pm = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], Mc = Ki.reducer, x = _(
394
+ (t) => t.uuid
395
+ ), Ut = x.getInitialState({}), Yi = T({
392
396
  name: "assetProcedureFields",
393
397
  initialState: Ut,
394
398
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ut)),
@@ -406,7 +410,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
406
410
  }), {
407
411
  initializeAssetProcedureFields: Cc,
408
412
  addAssetProcedureFields: Dc,
409
- addAssetProcedureFieldsMany: Pm,
413
+ addAssetProcedureFieldsMany: vm,
410
414
  setAssetProcedureFields: wm,
411
415
  setAssetProcedureFieldsMany: Em,
412
416
  updateAssetProcedureFields: xc,
@@ -420,9 +424,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
420
424
  )
421
425
  ), Mm = A(
422
426
  p([Ji, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
423
- ), Cm = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], $c = Yi.reducer, z = _(
424
- (t) => t.uuid
425
- ), $t = z.getInitialState({}), Qi = T({
427
+ ), Cm = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], $c = Yi.reducer, z = _((t) => t.uuid), $t = z.getInitialState({}), Qi = T({
426
428
  name: "assetProcedureFieldValuesAttachments",
427
429
  initialState: $t,
428
430
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, $t)),
@@ -466,9 +468,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
466
468
  [Lc, (t, e) => e],
467
469
  (t, e) => b(t.filter((s) => s.field_values === e))
468
470
  )
469
- ), Hc = Qi.reducer, U = _(
470
- (t) => t.uuid
471
- ), Vt = U.getInitialState({}), Zi = T({
471
+ ), Hc = Qi.reducer, U = _((t) => t.uuid), Vt = U.getInitialState({}), Zi = T({
472
472
  name: "assetProcedureFieldValues",
473
473
  initialState: Vt,
474
474
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vt)),
@@ -500,9 +500,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
500
500
  p([en, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
501
501
  ), Nm = A(
502
502
  p([en, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure_instance === e)))
503
- ), Bt = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], Xc = Zi.reducer, $ = _(
504
- (t) => t.uuid
505
- ), Nt = $.getInitialState({}), tn = T({
503
+ ), Bt = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], Xc = Zi.reducer, $ = _((t) => t.uuid), Nt = $.getInitialState({}), tn = T({
506
504
  name: "assetProcedureInstances",
507
505
  initialState: Nt,
508
506
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Nt)),
@@ -520,17 +518,17 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
520
518
  }), {
521
519
  initializeAssetProcedureInstances: Zc,
522
520
  addAssetProcedureInstance: Ht,
523
- addAssetProcedureInstances: eo,
521
+ addAssetProcedureInstances: er,
524
522
  updateAssetProcedureInstance: Le,
525
523
  updateAssetProcedureInstances: Hm,
526
524
  deleteAssetProcedureInstance: Wt,
527
- deleteAssetProcedureInstances: to,
525
+ deleteAssetProcedureInstances: tr,
528
526
  setAssetProcedureInstance: Wm,
529
527
  setAssetProcedureInstances: Km
530
528
  } = tn.actions, sn = (t) => t.assetProcedureInstanceReducer.instances, nn = p(
531
529
  [sn],
532
530
  (t) => Object.values(t)
533
- ), so = A(
531
+ ), sr = A(
534
532
  p(
535
533
  [nn, (t, e) => e],
536
534
  (t, e) => b(
@@ -560,7 +558,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
560
558
  return b(s);
561
559
  }
562
560
  )
563
- ), io = tn.reducer, V = _((t) => t.uuid), Yt = V.getInitialState({}), an = T({
561
+ ), ir = tn.reducer, V = _(
562
+ (t) => t.uuid
563
+ ), Yt = V.getInitialState({}), an = T({
564
564
  name: "assetProcedures",
565
565
  initialState: Yt,
566
566
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Yt)),
@@ -576,7 +576,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
576
576
  deleteAssetProcedures: V.deleteMany
577
577
  }
578
578
  }), {
579
- initializeAssetProcedures: no,
579
+ initializeAssetProcedures: nr,
580
580
  addAssetProcedure: Jt,
581
581
  addAssetProcedures: Qm,
582
582
  updateAssetProcedure: Be,
@@ -585,9 +585,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
585
585
  deleteAssetProcedures: Zm,
586
586
  setAssetProcedure: ep,
587
587
  setAssetProcedures: tp
588
- } = an.actions, cn = (t) => t.assetProcedureReducer.instances, ao = p([cn], (t) => Object.values(t)), sp = A(
588
+ } = an.actions, cn = (t) => t.assetProcedureReducer.instances, ar = p([cn], (t) => Object.values(t)), sp = A(
589
589
  p(
590
- [ao, (t, e) => e],
590
+ [ar, (t, e) => e],
591
591
  (t, e) => b(
592
592
  t.filter((s) => s.organization === e)
593
593
  )
@@ -604,7 +604,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
604
604
  return b(s);
605
605
  }
606
606
  )
607
- ), co = an.reducer, G = _((t) => t.uuid), Zt = G.getInitialState({}), on = T({
607
+ ), cr = an.reducer, G = _((t) => t.uuid), Zt = G.getInitialState({}), rn = T({
608
608
  name: "assets",
609
609
  initialState: Zt,
610
610
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Zt)),
@@ -620,18 +620,18 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
620
620
  deleteAssets: G.deleteMany
621
621
  }
622
622
  }), {
623
- initializeAssets: oo,
623
+ initializeAssets: rr,
624
624
  addAsset: es,
625
- addAssets: rn,
625
+ addAssets: on,
626
626
  updateAsset: Ne,
627
627
  updateAssets: np,
628
628
  deleteAsset: ts,
629
- deleteAssets: ro,
629
+ deleteAssets: or,
630
630
  setAsset: ap,
631
631
  setAssets: cp
632
- } = on.actions, dn = (t) => t.assetReducer.instances, uo = p([dn], (t) => b(Object.values(t))), un = A(
633
- p([uo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
634
- ), ss = (t) => (e) => e.assetReducer.instances[t], op = A(
632
+ } = rn.actions, dn = (t) => t.assetReducer.instances, dr = p([dn], (t) => b(Object.values(t))), un = A(
633
+ p([dr, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
634
+ ), ss = (t) => (e) => e.assetReducer.instances[t], rp = A(
635
635
  p([dn, (t, e) => e], (t, e) => {
636
636
  const s = [];
637
637
  for (const i of e) {
@@ -640,7 +640,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
640
640
  }
641
641
  return b(s);
642
642
  })
643
- ), rp = (t) => (e) => un(t)(e).length, lo = on.reducer, me = _(
643
+ ), op = (t) => (e) => un(t)(e).length, ur = rn.reducer, me = _(
644
644
  (t) => t.uuid
645
645
  ), is = me.getInitialState({}), ln = T({
646
646
  name: "assetStageCompletions",
@@ -656,17 +656,17 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
656
656
  deleteAssetStageCompletions: me.deleteMany
657
657
  }
658
658
  }), {
659
- initializeAssetStageCompletions: ho,
659
+ initializeAssetStageCompletions: lr,
660
660
  addAssetStageCompletion: ns,
661
661
  addAssetStageCompletions: as,
662
- updateAssetStageCompletion: mo,
663
- updateAssetStageCompletions: po,
662
+ updateAssetStageCompletion: hr,
663
+ updateAssetStageCompletions: mr,
664
664
  deleteAssetStageCompletion: cs,
665
- deleteAssetStageCompletions: os
666
- } = ln.actions, fo = ln.reducer, hn = (t) => t.assetStageCompletionReducer.instances, dp = p(
665
+ deleteAssetStageCompletions: rs
666
+ } = ln.actions, pr = ln.reducer, hn = (t) => t.assetStageCompletionReducer.instances, dp = p(
667
667
  [hn],
668
668
  (t) => Object.values(t)
669
- ), yo = (t) => (e) => e.assetStageCompletionReducer.instances[t], Ao = A(
669
+ ), fr = (t) => (e) => e.assetStageCompletionReducer.instances[t], yr = A(
670
670
  p(
671
671
  [hn, (t, e) => e],
672
672
  (t, e) => {
@@ -678,10 +678,10 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
678
678
  );
679
679
  }
680
680
  )
681
- ), L = _((t) => t.uuid), rs = L.getInitialState({}), mn = T({
681
+ ), L = _((t) => t.uuid), os = L.getInitialState({}), mn = T({
682
682
  name: "assetStages",
683
- initialState: rs,
684
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, rs)),
683
+ initialState: os,
684
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, os)),
685
685
  reducers: {
686
686
  initializeAssetStages: L.initialize,
687
687
  setAssetStage: L.setOne,
@@ -694,8 +694,8 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
694
694
  deleteAssetStages: L.deleteMany
695
695
  }
696
696
  }), {
697
- initializeAssetStages: bo,
698
- setAssetStage: go,
697
+ initializeAssetStages: Ar,
698
+ setAssetStage: br,
699
699
  setAssetStages: up,
700
700
  addAssetStage: lp,
701
701
  addAssetStages: ds,
@@ -703,7 +703,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
703
703
  updateAssetStages: nt,
704
704
  deleteAssetStage: hp,
705
705
  deleteAssetStages: ls
706
- } = mn.actions, So = mn.reducer, Tt = (t) => t.assetStageReducer.instances, To = (t) => (e) => e.assetStageReducer.instances[t], Ro = p([Tt], (t) => Object.values(t)), mp = A(
706
+ } = mn.actions, gr = mn.reducer, Tt = (t) => t.assetStageReducer.instances, Sr = (t) => (e) => e.assetStageReducer.instances[t], Tr = p([Tt], (t) => Object.values(t)), mp = A(
707
707
  p([Tt, (t, e) => e], (t, e) => {
708
708
  const s = {};
709
709
  for (const [i, n] of Object.entries(t))
@@ -711,7 +711,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
711
711
  return ze(s);
712
712
  })
713
713
  ), pp = A(
714
- p([Ro, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
714
+ p([Tr, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
715
715
  ), hs = A(
716
716
  p([Tt, (t, e) => e], (t, e) => {
717
717
  const s = [];
@@ -721,7 +721,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
721
721
  }
722
722
  return b(s);
723
723
  })
724
- ), B = _((t) => t.uuid), ms = B.getInitialState({}), pn = T({
724
+ ), B = _(
725
+ (t) => t.uuid
726
+ ), ms = B.getInitialState({}), pn = T({
725
727
  name: "assetTypeAttachments",
726
728
  initialState: ms,
727
729
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ms)),
@@ -737,26 +739,24 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
737
739
  deleteAssetTypeAttachments: B.deleteMany
738
740
  }
739
741
  }), {
740
- initializeAssetTypeAttachments: _o,
742
+ initializeAssetTypeAttachments: Rr,
741
743
  addAssetTypeAttachment: fp,
742
744
  addAssetTypeAttachments: fn,
743
- setAssetTypeAttachment: Oo,
745
+ setAssetTypeAttachment: _r,
744
746
  setAssetTypeAttachments: yp,
745
747
  updateAssetTypeAttachment: Ap,
746
- updateAssetTypeAttachments: Io,
747
- deleteAssetTypeAttachment: Fo,
748
+ updateAssetTypeAttachments: Or,
749
+ deleteAssetTypeAttachment: Ir,
748
750
  deleteAssetTypeAttachments: yn
749
- } = pn.actions, vo = (t) => t.assetTypeAttachmentReducer.instances, Po = p(
750
- [vo],
751
+ } = pn.actions, Fr = (t) => t.assetTypeAttachmentReducer.instances, Pr = p(
752
+ [Fr],
751
753
  (t) => Object.values(t)
752
- ), wo = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], Eo = A(
754
+ ), vr = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], wr = A(
753
755
  p(
754
- [Po, (t, e) => e],
756
+ [Pr, (t, e) => e],
755
757
  (t, e) => b(t.filter(({ asset_type: s }) => e === s))
756
758
  )
757
- ), ko = pn.reducer, N = _(
758
- (t) => t.uuid
759
- ), ps = N.getInitialState({}), An = T({
759
+ ), Er = pn.reducer, N = _((t) => t.uuid), ps = N.getInitialState({}), An = T({
760
760
  name: "assetTypeFieldsAttachments",
761
761
  initialState: ps,
762
762
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ps)),
@@ -772,21 +772,23 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
772
772
  deleteAssetTypeFieldsAttachments: N.deleteMany
773
773
  }
774
774
  }), {
775
- initializeAssetTypeFieldsAttachments: qo,
775
+ initializeAssetTypeFieldsAttachments: kr,
776
776
  addAssetTypeFieldsAttachment: bp,
777
- addAssetTypeFieldsAttachments: jo,
777
+ addAssetTypeFieldsAttachments: qr,
778
778
  setAssetTypeFieldsAttachment: gp,
779
779
  setAssetTypeFieldsAttachments: Sp,
780
780
  updateAssetTypeFieldsAttachment: Tp,
781
- updateAssetTypeFieldsAttachments: Mo,
781
+ updateAssetTypeFieldsAttachments: jr,
782
782
  deleteAssetTypeFieldsAttachment: Rp,
783
- deleteAssetTypeFieldsAttachments: Co
784
- } = An.actions, Do = (t) => t.assetTypeFieldsAttachmentReducer.instances, xo = p(
785
- [Do],
783
+ deleteAssetTypeFieldsAttachments: Mr
784
+ } = An.actions, Cr = (t) => t.assetTypeFieldsAttachmentReducer.instances, Dr = p(
785
+ [Cr],
786
786
  (t) => Object.values(t)
787
787
  ), _p = A(
788
- p([xo, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
789
- ), Op = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], zo = An.reducer, H = _((t) => t.uuid), fs = H.getInitialState({}), bn = T({
788
+ p([Dr, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
789
+ ), Op = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], xr = An.reducer, H = _(
790
+ (t) => t.uuid
791
+ ), fs = H.getInitialState({}), bn = T({
790
792
  name: "assetTypeFields",
791
793
  initialState: fs,
792
794
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fs)),
@@ -802,22 +804,20 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
802
804
  deleteAssetTypeFieldsMany: H.deleteMany
803
805
  }
804
806
  }), {
805
- initializeAssetTypeFields: Uo,
806
- addAssetTypeFields: $o,
807
+ initializeAssetTypeFields: zr,
808
+ addAssetTypeFields: Ur,
807
809
  addAssetTypeFieldsMany: Ip,
808
810
  setAssetTypeFields: Fp,
809
- setAssetTypeFieldsMany: vp,
810
- updateAssetTypeFields: Vo,
811
- updateAssetTypeFieldsMany: Pp,
812
- deleteAssetTypeFields: Go,
811
+ setAssetTypeFieldsMany: Pp,
812
+ updateAssetTypeFields: $r,
813
+ updateAssetTypeFieldsMany: vp,
814
+ deleteAssetTypeFields: Vr,
813
815
  deleteAssetTypeFieldsMany: wp
814
- } = bn.actions, Lo = (t) => t.assetTypeFieldsReducer.instances, Rt = p([Lo], (t) => Object.values(t)), Ep = A(
816
+ } = bn.actions, Gr = (t) => t.assetTypeFieldsReducer.instances, Rt = p([Gr], (t) => Object.values(t)), Ep = A(
815
817
  p([Rt, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
816
818
  ), kp = A(
817
819
  p([Rt, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
818
- ), qp = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Bo = bn.reducer, W = _(
819
- (t) => t.uuid
820
- ), ys = W.getInitialState({}), gn = T({
820
+ ), qp = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Lr = bn.reducer, W = _((t) => t.uuid), ys = W.getInitialState({}), gn = T({
821
821
  name: "assetTypeFieldValuesAttachments",
822
822
  initialState: ys,
823
823
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ys)),
@@ -833,19 +833,19 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
833
833
  deleteAssetTypeFieldValuesAttachments: W.deleteMany
834
834
  }
835
835
  }), {
836
- initializeAssetTypeFieldValuesAttachments: No,
836
+ initializeAssetTypeFieldValuesAttachments: Br,
837
837
  addAssetTypeFieldValuesAttachment: jp,
838
838
  addAssetTypeFieldValuesAttachments: pt,
839
839
  setAssetTypeFieldValuesAttachment: Mp,
840
840
  setAssetTypeFieldValuesAttachments: Cp,
841
841
  updateAssetTypeFieldValuesAttachment: Dp,
842
- updateAssetTypeFieldValuesAttachments: Ho,
842
+ updateAssetTypeFieldValuesAttachments: Nr,
843
843
  deleteAssetTypeFieldValuesAttachment: xp,
844
844
  deleteAssetTypeFieldValuesAttachments: ft
845
- } = gn.actions, Sn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, Wo = p(
845
+ } = gn.actions, Sn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, Hr = p(
846
846
  [Sn],
847
847
  (t) => Object.values(t)
848
- ), zp = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], Ko = A(
848
+ ), zp = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], Wr = A(
849
849
  p(
850
850
  [
851
851
  Sn,
@@ -858,9 +858,11 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
858
858
  );
859
859
  }
860
860
  )
861
- ), Yo = A(
862
- p([Wo, (t, e) => e], (t, e) => b(t.filter((s) => s.field_values === e)))
863
- ), Jo = gn.reducer, K = _((t) => t.uuid), As = K.getInitialState({}), Tn = T({
861
+ ), Kr = A(
862
+ p([Hr, (t, e) => e], (t, e) => b(t.filter((s) => s.field_values === e)))
863
+ ), Yr = gn.reducer, K = _(
864
+ (t) => t.uuid
865
+ ), As = K.getInitialState({}), Tn = T({
864
866
  name: "assetTypeFieldValues",
865
867
  initialState: As,
866
868
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, As)),
@@ -876,16 +878,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
876
878
  deleteAssetTypeFieldValuesMany: K.deleteMany
877
879
  }
878
880
  }), {
879
- initializeAssetTypeFieldValues: Qo,
881
+ initializeAssetTypeFieldValues: Jr,
880
882
  addAssetTypeFieldValues: bs,
881
- addAssetTypeFieldValuesMany: Xo,
883
+ addAssetTypeFieldValuesMany: Qr,
882
884
  setAssetTypeFieldValues: Up,
883
885
  setAssetTypeFieldValuesMany: $p,
884
886
  updateAssetTypeFieldValues: He,
885
- updateAssetTypeFieldValuesMany: Zo,
887
+ updateAssetTypeFieldValuesMany: Xr,
886
888
  deleteAssetTypeFieldValues: gs,
887
- deleteAssetTypeFieldValuesMany: er
888
- } = Tn.actions, tr = (t) => t.assetTypeFieldValuesReducer.instances, Rn = p([tr], (t) => Object.values(t)), Vp = A(
889
+ deleteAssetTypeFieldValuesMany: Zr
890
+ } = Tn.actions, eo = (t) => t.assetTypeFieldValuesReducer.instances, Rn = p([eo], (t) => Object.values(t)), Vp = A(
889
891
  p([Rn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
890
892
  ), Gp = A(
891
893
  p(
@@ -897,7 +899,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
897
899
  return b(e.filter((n) => i.has(n.fields_revision)));
898
900
  }
899
901
  )
900
- ), Ss = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], sr = Tn.reducer, Y = _((t) => t.uuid), Ts = Y.getInitialState({}), _n = T({
902
+ ), Ss = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], to = Tn.reducer, Y = _((t) => t.uuid), Ts = Y.getInitialState({}), _n = T({
901
903
  name: "assetTypes",
902
904
  initialState: Ts,
903
905
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ts)),
@@ -913,7 +915,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
913
915
  deleteAssetTypes: Y.deleteMany
914
916
  }
915
917
  }), {
916
- initializeAssetTypes: ir,
918
+ initializeAssetTypes: so,
917
919
  setAssetType: Lp,
918
920
  setAssetTypes: Bp,
919
921
  addAssetType: Rs,
@@ -937,7 +939,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
937
939
  return b(s);
938
940
  }
939
941
  )
940
- ), nr = _n.reducer, Is = {
942
+ ), io = _n.reducer, Is = {
941
943
  accessToken: "",
942
944
  refreshToken: "",
943
945
  isLoggedIn: !1
@@ -956,7 +958,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
956
958
  e.payload || _t.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
957
959
  }
958
960
  }
959
- }), { setTokens: Jp, clearTokens: Qp, setLoggedIn: ar } = _t.actions, Xp = (t) => t.authReducer.accessToken, Zp = (t) => t.authReducer.isLoggedIn, cr = _t.reducer, qe = _((t) => t.uuid), Fs = qe.getInitialState({}), In = T({
961
+ }), { setTokens: Jp, clearTokens: Qp, setLoggedIn: no } = _t.actions, Xp = (t) => t.authReducer.accessToken, Zp = (t) => t.authReducer.isLoggedIn, ao = _t.reducer, qe = _((t) => t.uuid), Fs = qe.getInitialState({}), In = T({
960
962
  name: "categories",
961
963
  initialState: Fs,
962
964
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Fs)),
@@ -966,7 +968,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
966
968
  updateCategory: qe.updateOne,
967
969
  deleteCategory: qe.deleteOne
968
970
  }
969
- }), { initializeCategories: or, addCategory: vs, updateCategory: rr, deleteCategory: dr } = In.actions, Fn = (t) => t.categoryReducer.instances, ef = p([Fn], (t) => Object.values(t)), Ps = (t) => (e) => e.categoryReducer.instances[t], tf = A(
971
+ }), { initializeCategories: co, addCategory: Ps, updateCategory: ro, deleteCategory: oo } = In.actions, Fn = (t) => t.categoryReducer.instances, ef = p([Fn], (t) => Object.values(t)), vs = (t) => (e) => e.categoryReducer.instances[t], tf = A(
970
972
  p(
971
973
  [Fn, (t, e) => e],
972
974
  (t, e) => {
@@ -978,7 +980,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
978
980
  return b(s);
979
981
  }
980
982
  )
981
- ), sf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, ur = In.reducer, J = _((t) => t.uuid), ws = J.getInitialState({}), vn = T({
983
+ ), sf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, uo = In.reducer, J = _(
984
+ (t) => t.uuid
985
+ ), ws = J.getInitialState({}), Pn = T({
982
986
  name: "documentAttachments",
983
987
  initialState: ws,
984
988
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ws)),
@@ -994,26 +998,26 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
994
998
  deleteDocumentAttachments: J.deleteMany
995
999
  }
996
1000
  }), {
997
- initializeDocumentAttachments: lr,
1001
+ initializeDocumentAttachments: lo,
998
1002
  addDocumentAttachment: nf,
999
- addDocumentAttachments: hr,
1000
- setDocumentAttachment: mr,
1003
+ addDocumentAttachments: ho,
1004
+ setDocumentAttachment: mo,
1001
1005
  setDocumentAttachments: af,
1002
1006
  updateDocumentAttachment: cf,
1003
- updateDocumentAttachments: pr,
1004
- deleteDocumentAttachment: fr,
1005
- deleteDocumentAttachments: yr
1006
- } = vn.actions, Ar = (t) => t.documentAttachmentReducer.instances, br = p(
1007
- [Ar],
1007
+ updateDocumentAttachments: po,
1008
+ deleteDocumentAttachment: fo,
1009
+ deleteDocumentAttachments: yo
1010
+ } = Pn.actions, Ao = (t) => t.documentAttachmentReducer.instances, bo = p(
1011
+ [Ao],
1008
1012
  (t) => Object.values(t)
1009
- ), gr = (t) => (e) => e.documentAttachmentReducer.instances[t], of = A(
1013
+ ), go = (t) => (e) => e.documentAttachmentReducer.instances[t], rf = A(
1010
1014
  p(
1011
- [br, (t, e) => e],
1015
+ [bo, (t, e) => e],
1012
1016
  (t, e) => b(t.filter(({ document: s }) => e === s))
1013
1017
  )
1014
- ), Sr = vn.reducer, Es = {
1018
+ ), So = Pn.reducer, Es = {
1015
1019
  documents: {}
1016
- }, Pn = T({
1020
+ }, vn = T({
1017
1021
  name: "documents",
1018
1022
  initialState: Es,
1019
1023
  extraReducers: (t) => t.addCase("RESET", (e) => {
@@ -1137,10 +1141,10 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1137
1141
  }
1138
1142
  }
1139
1143
  }
1140
- }), { setDocuments: Tr, addDocuments: Rr, updateDocuments: ye, moveDocument: _r, removeDocuments: ks } = Pn.actions, De = (t) => t.documentsReducer.documents, Or = p(
1144
+ }), { setDocuments: To, addDocuments: Ro, updateDocuments: ye, moveDocument: _o, removeDocuments: ks } = vn.actions, De = (t) => t.documentsReducer.documents, Oo = p(
1141
1145
  [De],
1142
1146
  (t) => Object.values(t)
1143
- ), Ir = (t) => (e) => e.documentsReducer.documents[t], rf = A(
1147
+ ), Io = (t) => (e) => e.documentsReducer.documents[t], of = A(
1144
1148
  p(
1145
1149
  [De, (t, e) => e],
1146
1150
  (t, e) => {
@@ -1165,32 +1169,34 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1165
1169
  }
1166
1170
  )
1167
1171
  ), uf = p(
1168
- [Or],
1172
+ [Oo],
1169
1173
  (t) => b(t.filter((e) => !e.parent_document))
1170
- ), Fr = Pn.reducer, Ze = _((t) => t.uuid), vr = Ze.getInitialState({}), wn = T({
1174
+ ), Fo = vn.reducer, Ze = _(
1175
+ (t) => t.uuid
1176
+ ), Po = Ze.getInitialState({}), wn = T({
1171
1177
  name: "emailDomains",
1172
- initialState: vr,
1178
+ initialState: Po,
1173
1179
  reducers: {
1174
1180
  initializeEmailDomains: Ze.initialize,
1175
1181
  addEmailDomain: Ze.addOne,
1176
1182
  deleteEmailDomain: Ze.deleteOne
1177
1183
  }
1178
- }), { initializeEmailDomains: Pr, addEmailDomain: wr, deleteEmailDomain: Er } = wn.actions, kr = (t) => t.emailDomainsReducer.instances, qr = p([kr], (t) => Object.values(t)), lf = A(
1184
+ }), { initializeEmailDomains: vo, addEmailDomain: wo, deleteEmailDomain: Eo } = wn.actions, ko = (t) => t.emailDomainsReducer.instances, qo = p([ko], (t) => Object.values(t)), lf = A(
1179
1185
  p(
1180
- [qr, (t, e) => e],
1186
+ [qo, (t, e) => e],
1181
1187
  (t, e) => b(
1182
1188
  t.filter((s) => s.organization === e)
1183
1189
  )
1184
1190
  )
1185
- ), jr = wn.reducer, qs = {
1191
+ ), jo = wn.reducer, qs = {
1186
1192
  s3Urls: {}
1187
- }, En = 1e3 * 60 * 60, Mr = En * 24 * 7, kn = T({
1193
+ }, En = 1e3 * 60 * 60, Mo = En * 24 * 7, kn = T({
1188
1194
  name: "file",
1189
1195
  initialState: qs,
1190
1196
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qs)),
1191
1197
  reducers: {
1192
1198
  setUploadUrl: (t, e) => {
1193
- const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), c = new Date(a.getTime() + Mr);
1199
+ const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), c = new Date(a.getTime() + Mo);
1194
1200
  t.s3Urls[n] = {
1195
1201
  url: s,
1196
1202
  fields: i,
@@ -1198,16 +1204,14 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1198
1204
  };
1199
1205
  }
1200
1206
  }
1201
- }), { setUploadUrl: Cr } = kn.actions, Dr = (t) => (e) => {
1207
+ }), { setUploadUrl: Co } = kn.actions, Do = (t) => (e) => {
1202
1208
  const s = e.fileReducer.s3Urls[t];
1203
1209
  if (!s)
1204
1210
  return;
1205
1211
  const i = (/* @__PURE__ */ new Date()).getTime();
1206
1212
  if (!((s.exp ?? i) - i < En))
1207
1213
  return s;
1208
- }, xr = kn.reducer, Q = _(
1209
- (t) => t.uuid
1210
- ), js = Q.getInitialState({}), qn = T({
1214
+ }, xo = kn.reducer, Q = _((t) => t.uuid), js = Q.getInitialState({}), qn = T({
1211
1215
  name: "formRevisionAttachments",
1212
1216
  initialState: js,
1213
1217
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, js)),
@@ -1223,23 +1227,23 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1223
1227
  deleteFormRevisionAttachments: Q.deleteMany
1224
1228
  }
1225
1229
  }), {
1226
- initializeFormRevisionAttachments: zr,
1230
+ initializeFormRevisionAttachments: zo,
1227
1231
  addFormRevisionAttachment: hf,
1228
- addFormRevisionAttachments: Ur,
1232
+ addFormRevisionAttachments: Uo,
1229
1233
  setFormRevisionAttachment: mf,
1230
1234
  setFormRevisionAttachments: pf,
1231
1235
  updateFormRevisionAttachment: ff,
1232
- updateFormRevisionAttachments: $r,
1236
+ updateFormRevisionAttachments: $o,
1233
1237
  deleteFormRevisionAttachment: yf,
1234
- deleteFormRevisionAttachments: Vr
1235
- } = qn.actions, Gr = (t) => t.formRevisionAttachmentReducer.instances, Af = A(
1238
+ deleteFormRevisionAttachments: Vo
1239
+ } = qn.actions, Go = (t) => t.formRevisionAttachmentReducer.instances, Af = A(
1236
1240
  p(
1237
- [Gr, (t, e) => e],
1241
+ [Go, (t, e) => e],
1238
1242
  (t, e) => b(
1239
1243
  Object.values(t).filter((s) => s.form_revision === e)
1240
1244
  )
1241
1245
  )
1242
- ), Lr = qn.reducer, Br = (t, e) => {
1246
+ ), Lo = qn.reducer, Bo = (t, e) => {
1243
1247
  const s = t.revision, i = e.revision;
1244
1248
  return s === void 0 && i === void 0 ? t.submitted_at < e.submitted_at ? -1 : 1 : s === void 0 ? 1 : i === void 0 || s < i ? -1 : 1;
1245
1249
  }, Ae = _((t) => t.uuid), Ms = Ae.getInitialState({}), jn = T({
@@ -1255,13 +1259,13 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1255
1259
  deleteFormRevisions: Ae.deleteMany
1256
1260
  }
1257
1261
  }), {
1258
- setFormRevision: Nr,
1259
- initializeFormRevisions: Hr,
1262
+ setFormRevision: No,
1263
+ initializeFormRevisions: Ho,
1260
1264
  addFormRevision: Mn,
1261
- addFormRevisions: Wr,
1265
+ addFormRevisions: Wo,
1262
1266
  deleteFormRevision: Cn,
1263
- deleteFormRevisions: Kr
1264
- } = jn.actions, Ot = (t) => t.formRevisionReducer.instances, Yr = p(
1267
+ deleteFormRevisions: Ko
1268
+ } = jn.actions, Ot = (t) => t.formRevisionReducer.instances, Yo = p(
1265
1269
  [Ot],
1266
1270
  (t) => Object.values(t)
1267
1271
  ), bf = (t) => (e) => e.formRevisionReducer.instances[t], gf = A(
@@ -1270,16 +1274,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1270
1274
  (t, e) => {
1271
1275
  const s = Object.values(t).filter((a) => a.form === e);
1272
1276
  if (s.length === 0) return;
1273
- const n = s.sort(Br)[s.length - 1];
1277
+ const n = s.sort(Bo)[s.length - 1];
1274
1278
  return t[n.uuid];
1275
1279
  }
1276
1280
  )
1277
- ), Jr = A(
1281
+ ), Jo = A(
1278
1282
  p(
1279
- [Yr, (t, e) => e],
1283
+ [Yo, (t, e) => e],
1280
1284
  (t, e) => b(t.filter((s) => s.form === e))
1281
1285
  )
1282
- ), Qr = jn.reducer, be = _((t) => t.uuid), Cs = be.getInitialState({}), Dn = T({
1286
+ ), Qo = jn.reducer, be = _((t) => t.uuid), Cs = be.getInitialState({}), Dn = T({
1283
1287
  name: "forms",
1284
1288
  initialState: Cs,
1285
1289
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Cs)),
@@ -1291,9 +1295,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1291
1295
  updateForm: be.updateOne,
1292
1296
  deleteForm: be.deleteOne
1293
1297
  }
1294
- }), { initializeForms: Xr, setForm: Sf, addForm: Ds, addForms: Tf, updateForm: Rf, deleteForm: xs } = Dn.actions, Zr = Dn.reducer, ed = (t) => t.formReducer.instances, _f = p([ed], (t) => Object.values(t)), td = (t) => (e) => e.formReducer.instances[t], X = _(
1295
- (t) => t.uuid
1296
- ), zs = X.getInitialState({}), xn = T({
1298
+ }), { initializeForms: Xo, setForm: Sf, addForm: Ds, addForms: Tf, updateForm: Rf, deleteForm: xs } = Dn.actions, Zo = Dn.reducer, ed = (t) => t.formReducer.instances, _f = p([ed], (t) => Object.values(t)), td = (t) => (e) => e.formReducer.instances[t], X = _((t) => t.uuid), zs = X.getInitialState({}), xn = T({
1297
1299
  name: "formSubmissionAttachments",
1298
1300
  initialState: zs,
1299
1301
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zs)),
@@ -1314,9 +1316,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1314
1316
  addFormSubmissionAttachments: yt,
1315
1317
  setFormSubmissionAttachment: If,
1316
1318
  setFormSubmissionAttachments: Ff,
1317
- updateFormSubmissionAttachment: vf,
1319
+ updateFormSubmissionAttachment: Pf,
1318
1320
  updateFormSubmissionAttachments: id,
1319
- deleteFormSubmissionAttachment: Pf,
1321
+ deleteFormSubmissionAttachment: vf,
1320
1322
  deleteFormSubmissionAttachments: At
1321
1323
  } = xn.actions, zn = (t) => t.formSubmissionAttachmentReducer.instances, nd = A(
1322
1324
  p(
@@ -1338,7 +1340,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1338
1340
  Object.values(t).filter((s) => s.form_submission === e)
1339
1341
  )
1340
1342
  )
1341
- ), cd = xn.reducer, Z = _((t) => t.uuid), Us = Z.getInitialState({}), Un = T({
1343
+ ), cd = xn.reducer, Z = _(
1344
+ (t) => t.uuid
1345
+ ), Us = Z.getInitialState({}), Un = T({
1342
1346
  name: "formSubmissions",
1343
1347
  initialState: Us,
1344
1348
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Us)),
@@ -1354,12 +1358,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1354
1358
  deleteFormSubmissions: Z.deleteMany
1355
1359
  }
1356
1360
  }), {
1357
- initializeFormSubmissions: od,
1361
+ initializeFormSubmissions: rd,
1358
1362
  setFormSubmission: at,
1359
1363
  setFormSubmissions: wf,
1360
1364
  addFormSubmission: $s,
1361
1365
  addFormSubmissions: It,
1362
- updateFormSubmission: rd,
1366
+ updateFormSubmission: od,
1363
1367
  updateFormSubmissions: Ef,
1364
1368
  deleteFormSubmission: Vs,
1365
1369
  deleteFormSubmissions: Ft
@@ -1423,7 +1427,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1423
1427
  deleteGeoImages: bd
1424
1428
  } = Gn.actions, gd = (t) => t.geoImageReducer.instances, Sd = p([gd], (t) => Object.values(t)), Ns = (t) => (e) => e.geoImageReducer.instances[t], qf = A(
1425
1429
  p([Sd, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1426
- ), Td = Gn.reducer, te = _((t) => t.uuid), Hs = te.getInitialState({}), Ln = T({
1430
+ ), Td = Gn.reducer, te = _(
1431
+ (t) => t.uuid
1432
+ ), Hs = te.getInitialState({}), Ln = T({
1427
1433
  name: "issueAssociations",
1428
1434
  initialState: Hs,
1429
1435
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Hs)),
@@ -1460,12 +1466,14 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1460
1466
  [it, (t, e) => e],
1461
1467
  (t, e) => b(Object.values(t).filter((s) => s.issue === e))
1462
1468
  )
1463
- ), vd = A(
1469
+ ), Pd = A(
1464
1470
  p(
1465
1471
  [it, (t, e) => e],
1466
1472
  (t, e) => b(Object.values(t).filter((s) => s.asset === e))
1467
1473
  )
1468
- ), Pd = Ln.reducer, se = _((t) => t.uuid), Ys = se.getInitialState({}), Hn = T({
1474
+ ), vd = Ln.reducer, se = _(
1475
+ (t) => t.uuid
1476
+ ), Ys = se.getInitialState({}), Hn = T({
1469
1477
  name: "issueAttachments",
1470
1478
  initialState: Ys,
1471
1479
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ys)),
@@ -1498,9 +1506,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1498
1506
  [jd, (t, e) => e],
1499
1507
  (t, e) => b(t.filter(({ issue: s }) => e === s))
1500
1508
  )
1501
- ), Cd = (t) => (e) => e.issueAttachmentReducer.instances[t], Dd = Hn.reducer, ie = _(
1502
- (t) => t.uuid
1503
- ), Qs = ie.getInitialState({}), Yn = T({
1509
+ ), Cd = (t) => (e) => e.issueAttachmentReducer.instances[t], Dd = Hn.reducer, ie = _((t) => t.uuid), Qs = ie.getInitialState({}), Yn = T({
1504
1510
  name: "issueCommentAttachments",
1505
1511
  initialState: Qs,
1506
1512
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Qs)),
@@ -1574,7 +1580,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1574
1580
  deleteIssue: Se.deleteOne,
1575
1581
  deleteIssues: Se.deleteMany
1576
1582
  }
1577
- }), { initializeIssues: Yd, addIssue: ai, addIssues: Jd, updateIssue: ct, deleteIssue: ci, deleteIssues: Qd } = Qn.actions, Xd = (t) => t.issueReducer.instances, oi = (t) => (e) => e.issueReducer.instances[t], Wf = A(
1583
+ }), { initializeIssues: Yd, addIssue: ai, addIssues: Jd, updateIssue: ct, deleteIssue: ci, deleteIssues: Qd } = Qn.actions, Xd = (t) => t.issueReducer.instances, ri = (t) => (e) => e.issueReducer.instances[t], Wf = A(
1578
1584
  p([Xd, (t, e) => e], (t, e) => {
1579
1585
  const s = [];
1580
1586
  for (const i of e) {
@@ -1583,10 +1589,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1583
1589
  }
1584
1590
  return b(s);
1585
1591
  })
1586
- ), Zd = Qn.reducer, ne = _((t) => t.uuid), ri = ne.getInitialState({}), Xn = T({
1592
+ ), Zd = Qn.reducer, ne = _(
1593
+ (t) => t.uuid
1594
+ ), oi = ne.getInitialState({}), Xn = T({
1587
1595
  name: "issueTypeAttachments",
1588
- initialState: ri,
1589
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ri)),
1596
+ initialState: oi,
1597
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, oi)),
1590
1598
  reducers: {
1591
1599
  initializeIssueTypeAttachments: ne.initialize,
1592
1600
  addIssueTypeAttachment: ne.addOne,
@@ -1611,14 +1619,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1611
1619
  } = Xn.actions, au = (t) => t.issueTypeAttachmentReducer.instances, cu = p(
1612
1620
  [au],
1613
1621
  (t) => Object.values(t)
1614
- ), ou = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], Qf = A(
1622
+ ), ru = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], Qf = A(
1615
1623
  p(
1616
1624
  [cu, (t, e) => e],
1617
1625
  (t, e) => b(t.filter(({ issue_type: s }) => e === s))
1618
1626
  )
1619
- ), ru = Xn.reducer, ae = _(
1620
- (t) => t.uuid
1621
- ), ui = ae.getInitialState({}), Zn = T({
1627
+ ), ou = Xn.reducer, ae = _((t) => t.uuid), ui = ae.getInitialState({}), Zn = T({
1622
1628
  name: "issueTypeFieldsAttachments",
1623
1629
  initialState: ui,
1624
1630
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ui)),
@@ -1653,7 +1659,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1653
1659
  t.filter((s) => s.fields_revision === e)
1654
1660
  )
1655
1661
  )
1656
- ), ny = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], fu = Zn.reducer, ce = _((t) => t.uuid), li = ce.getInitialState({}), ea = T({
1662
+ ), ny = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], fu = Zn.reducer, ce = _(
1663
+ (t) => t.uuid
1664
+ ), li = ce.getInitialState({}), ea = T({
1657
1665
  name: "issueTypeFieldValues",
1658
1666
  initialState: li,
1659
1667
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, li)),
@@ -1673,27 +1681,29 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1673
1681
  addIssueTypeFieldValues: hi,
1674
1682
  addIssueTypeFieldValuesMany: ay,
1675
1683
  setIssueTypeFieldValues: cy,
1676
- setIssueTypeFieldValuesMany: oy,
1684
+ setIssueTypeFieldValuesMany: ry,
1677
1685
  updateIssueTypeFieldValues: Ye,
1678
- updateIssueTypeFieldValuesMany: ry,
1686
+ updateIssueTypeFieldValuesMany: oy,
1679
1687
  deleteIssueTypeFieldValues: mi,
1680
1688
  deleteIssueTypeFieldValuesMany: dy
1681
1689
  } = ea.actions, Au = (t) => t.issueTypeFieldValuesReducer.instances, ta = p([Au], (t) => Object.values(t)), uy = A(
1682
1690
  p([ta, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
1683
- ), pi = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], bu = ea.reducer, oe = _((t) => t.uuid), fi = oe.getInitialState({}), sa = T({
1691
+ ), pi = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], bu = ea.reducer, re = _(
1692
+ (t) => t.uuid
1693
+ ), fi = re.getInitialState({}), sa = T({
1684
1694
  name: "issueTypeFields",
1685
1695
  initialState: fi,
1686
1696
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fi)),
1687
1697
  reducers: {
1688
- initializeIssueTypeFields: oe.initialize,
1689
- addIssueTypeFields: oe.addOne,
1690
- addIssueTypeFieldsMany: oe.addMany,
1691
- setIssueTypeFields: oe.setOne,
1692
- setIssueTypeFieldsMany: oe.setMany,
1693
- updateIssueTypeFields: oe.updateOne,
1694
- updateIssueTypeFieldsMany: oe.updateMany,
1695
- deleteIssueTypeFields: oe.deleteOne,
1696
- deleteIssueTypeFieldsMany: oe.deleteMany
1698
+ initializeIssueTypeFields: re.initialize,
1699
+ addIssueTypeFields: re.addOne,
1700
+ addIssueTypeFieldsMany: re.addMany,
1701
+ setIssueTypeFields: re.setOne,
1702
+ setIssueTypeFieldsMany: re.setMany,
1703
+ updateIssueTypeFields: re.updateOne,
1704
+ updateIssueTypeFieldsMany: re.updateMany,
1705
+ deleteIssueTypeFields: re.deleteOne,
1706
+ deleteIssueTypeFieldsMany: re.deleteMany
1697
1707
  }
1698
1708
  }), {
1699
1709
  initializeIssueTypeFields: gu,
@@ -1705,13 +1715,13 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1705
1715
  updateIssueTypeFieldsMany: py,
1706
1716
  deleteIssueTypeFields: Ru,
1707
1717
  deleteIssueTypeFieldsMany: fy
1708
- } = sa.actions, _u = (t) => t.issueTypeFieldsReducer.instances, vt = p([_u], (t) => Object.values(t)), yy = A(
1709
- p([vt, (t, e) => e], (t, e) => b(t.filter((s) => s.issue_type === e)))
1718
+ } = sa.actions, _u = (t) => t.issueTypeFieldsReducer.instances, Pt = p([_u], (t) => Object.values(t)), yy = A(
1719
+ p([Pt, (t, e) => e], (t, e) => b(t.filter((s) => s.issue_type === e)))
1710
1720
  ), Ay = A(
1711
- p([vt, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
1721
+ p([Pt, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
1712
1722
  ), by = A(
1713
1723
  p(
1714
- [vt, ta, (t, e) => e],
1724
+ [Pt, ta, (t, e) => e],
1715
1725
  (t, e, s) => {
1716
1726
  const i = new Set(
1717
1727
  t.filter((n) => n.issue_type === s).map((n) => n.uuid)
@@ -1719,22 +1729,20 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1719
1729
  return b(e.filter((n) => i.has(n.fields_revision)));
1720
1730
  }
1721
1731
  )
1722
- ), gy = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Ou = sa.reducer, re = _(
1723
- (t) => t.uuid
1724
- ), yi = re.getInitialState({}), ia = T({
1732
+ ), gy = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Ou = sa.reducer, oe = _((t) => t.uuid), yi = oe.getInitialState({}), ia = T({
1725
1733
  name: "issueTypeFieldValuesAttachments",
1726
1734
  initialState: yi,
1727
1735
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, yi)),
1728
1736
  reducers: {
1729
- initializeIssueTypeFieldValuesAttachments: re.initialize,
1730
- addIssueTypeFieldValuesAttachment: re.addOne,
1731
- addIssueTypeFieldValuesAttachments: re.addMany,
1732
- setIssueTypeFieldValuesAttachment: re.setOne,
1733
- setIssueTypeFieldValuesAttachments: re.setMany,
1734
- updateIssueTypeFieldValuesAttachment: re.updateOne,
1735
- updateIssueTypeFieldValuesAttachments: re.updateMany,
1736
- deleteIssueTypeFieldValuesAttachment: re.deleteOne,
1737
- deleteIssueTypeFieldValuesAttachments: re.deleteMany
1737
+ initializeIssueTypeFieldValuesAttachments: oe.initialize,
1738
+ addIssueTypeFieldValuesAttachment: oe.addOne,
1739
+ addIssueTypeFieldValuesAttachments: oe.addMany,
1740
+ setIssueTypeFieldValuesAttachment: oe.setOne,
1741
+ setIssueTypeFieldValuesAttachments: oe.setMany,
1742
+ updateIssueTypeFieldValuesAttachment: oe.updateOne,
1743
+ updateIssueTypeFieldValuesAttachments: oe.updateMany,
1744
+ deleteIssueTypeFieldValuesAttachment: oe.deleteOne,
1745
+ deleteIssueTypeFieldValuesAttachments: oe.deleteMany
1738
1746
  }
1739
1747
  }), {
1740
1748
  initializeIssueTypeFieldValuesAttachments: Iu,
@@ -1746,10 +1754,10 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1746
1754
  updateIssueTypeFieldValuesAttachments: Fu,
1747
1755
  deleteIssueTypeFieldValuesAttachment: Oy,
1748
1756
  deleteIssueTypeFieldValuesAttachments: gt
1749
- } = ia.actions, na = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, vu = p(
1757
+ } = ia.actions, na = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, Pu = p(
1750
1758
  [na],
1751
1759
  (t) => Object.values(t)
1752
- ), Iy = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], Pu = A(
1760
+ ), Iy = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], vu = A(
1753
1761
  p(
1754
1762
  [
1755
1763
  na,
@@ -1764,7 +1772,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1764
1772
  )
1765
1773
  ), wu = A(
1766
1774
  p(
1767
- [vu, (t, e) => e],
1775
+ [Pu, (t, e) => e],
1768
1776
  (t, e) => b(t.filter((s) => s.field_values === e))
1769
1777
  )
1770
1778
  ), Eu = ia.reducer, Ie = _((t) => t.uuid), Ai = Ie.getInitialState({}), aa = T({
@@ -1790,7 +1798,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1790
1798
  n ? s.push(n) : console.warn("selectIssueTypesByIds: No issue type exists with the id", i);
1791
1799
  }
1792
1800
  return s;
1793
- }, vy = A(
1801
+ }, Py = A(
1794
1802
  p(
1795
1803
  [Cu, (t, e) => e],
1796
1804
  (t, e) => b(t.filter((s) => s.organization === e))
@@ -1802,7 +1810,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1802
1810
  Object.values(t).filter((s) => s.issue_type === e)
1803
1811
  )
1804
1812
  )
1805
- ), Py = (t) => (e) => ca(t)(e).length, Du = aa.reducer, Te = _((t) => t.uuid), Si = Te.getInitialState({}), oa = T({
1813
+ ), vy = (t) => (e) => ca(t)(e).length, Du = aa.reducer, Te = _(
1814
+ (t) => t.uuid
1815
+ ), Si = Te.getInitialState({}), ra = T({
1806
1816
  name: "issueUpdates",
1807
1817
  initialState: Si,
1808
1818
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Si)),
@@ -1821,12 +1831,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1821
1831
  addIssueUpdates: Uu,
1822
1832
  deleteIssueUpdate: $u,
1823
1833
  deleteIssueUpdates: Vu
1824
- } = oa.actions, Gu = (t) => t.issueUpdateReducer.instances, Lu = A(
1834
+ } = ra.actions, Gu = (t) => t.issueUpdateReducer.instances, Lu = A(
1825
1835
  p(
1826
1836
  [Gu, (t, e) => e],
1827
1837
  (t, e) => b(Object.values(t).filter((s) => s.issue === e))
1828
1838
  )
1829
- ), Bu = oa.reducer, et = _((t) => t.uuid), Ti = et.getInitialState({}), ra = T({
1839
+ ), Bu = ra.reducer, et = _((t) => t.uuid), Ti = et.getInitialState({}), oa = T({
1830
1840
  name: "license",
1831
1841
  initialState: Ti,
1832
1842
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ti)),
@@ -1835,15 +1845,15 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1835
1845
  addLicenses: et.addMany,
1836
1846
  updateLicense: et.updateOne
1837
1847
  }
1838
- }), { initializeLicences: Nu, addLicenses: Ey, updateLicense: pe } = ra.actions, Pt = (t) => t.licenseReducer.instances, ky = (t) => (e) => e.licenseReducer.instances[t], Hu = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), qy = p(
1839
- [Pt],
1848
+ }), { initializeLicences: Nu, addLicenses: Ey, updateLicense: pe } = oa.actions, vt = (t) => t.licenseReducer.instances, ky = (t) => (e) => e.licenseReducer.instances[t], Hu = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), qy = p(
1849
+ [vt],
1840
1850
  (t) => b(Object.values(t).filter((e) => e.is_active))
1841
1851
  ), jy = p(
1842
- [Pt],
1852
+ [vt],
1843
1853
  (t) => ze(
1844
1854
  Object.values(t).filter((e) => e.project).reduce((e, s) => ({ ...e, [s.project]: s }), {})
1845
1855
  )
1846
- ), Wu = ra.reducer, q = _((t) => t.uuid), Ri = q.getInitialState({
1856
+ ), Wu = oa.reducer, q = _((t) => t.id), Ri = q.getInitialState({
1847
1857
  currentUser: null
1848
1858
  }), da = T({
1849
1859
  name: "users",
@@ -1863,11 +1873,19 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1863
1873
  // Keep for backwards compatibility
1864
1874
  setCurrentUser: (t, e) => {
1865
1875
  t.currentUser = e.payload;
1876
+ },
1877
+ setProfilePicture: (t, e) => {
1878
+ if (!t.currentUser) return;
1879
+ t.currentUser.profile.file = e.payload.file ?? null, t.currentUser.profile.file_sha1 = e.payload.file_sha1 ?? null;
1880
+ const s = t.instances[t.currentUser.id];
1881
+ if (!s)
1882
+ throw new Error("Unable to find current user in users slice");
1883
+ s.profile.file = e.payload.file ?? null, s.profile.file_sha1 = e.payload.file_sha1 ?? null;
1866
1884
  }
1867
1885
  }
1868
1886
  }), {
1869
- initializeUsers: My,
1870
- setUsers: Ku,
1887
+ initializeUsers: Ku,
1888
+ setUsers: My,
1871
1889
  setUser: Cy,
1872
1890
  addUsers: Dy,
1873
1891
  addUser: xy,
@@ -1876,8 +1894,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1876
1894
  deleteUser: $y,
1877
1895
  deleteUsers: Vy,
1878
1896
  removeUser: Yu,
1879
- setCurrentUser: Gy
1880
- } = da.actions, Ju = da.reducer, wt = (t) => t.userReducer.currentUser, Et = (t) => t.userReducer.instances, Ly = (t) => (e) => e.userReducer.instances[t], By = A(
1897
+ setCurrentUser: Gy,
1898
+ setProfilePicture: Ly
1899
+ } = da.actions, Ju = da.reducer, wt = (t) => t.userReducer.currentUser, Et = (t) => t.userReducer.instances, By = (t) => (e) => e.userReducer.instances[t], Ny = A(
1881
1900
  p([Et, (t, e) => e], (t, e) => {
1882
1901
  const s = [];
1883
1902
  for (const i of e) {
@@ -1897,19 +1916,21 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1897
1916
  updateOrganizationAccess: tt.updateOne,
1898
1917
  deleteOrganizationAccess: tt.deleteOne
1899
1918
  }
1900
- }), { initializeOrganizationAccesses: Qu, updateOrganizationAccess: Xu, deleteOrganizationAccess: Zu } = ua.actions, la = (t) => t.organizationAccessReducer.instances, Ny = (t) => (e) => e.organizationAccessReducer.instances[t], Hy = p(
1919
+ }), { initializeOrganizationAccesses: Qu, updateOrganizationAccess: Xu, deleteOrganizationAccess: Zu } = ua.actions, la = (t) => t.organizationAccessReducer.instances, Hy = (t) => (e) => e.organizationAccessReducer.instances[t], Wy = p(
1901
1920
  [wt, la],
1902
1921
  (t, e) => Object.values(e).find(
1903
- (i) => i.user === (t == null ? void 0 : t.uuid)
1922
+ (i) => i.user === (t == null ? void 0 : t.id)
1904
1923
  ) ?? null
1905
- ), Wy = (t) => (e) => Object.values(e.organizationAccessReducer.instances).find(
1906
- (s) => s.user === t.uuid
1924
+ ), Ky = (t) => (e) => Object.values(e.organizationAccessReducer.instances).find(
1925
+ (s) => s.user === t.id
1907
1926
  ), el = (t) => {
1908
1927
  const e = {};
1909
1928
  for (const s of Object.values(t.organizationAccessReducer.instances))
1910
1929
  e[s.user] = s;
1911
1930
  return ze(e);
1912
- }, tl = ua.reducer, je = _((t) => t.uuid), Oi = je.getInitialState({}), ha = T({
1931
+ }, tl = ua.reducer, je = _(
1932
+ (t) => t.uuid
1933
+ ), Oi = je.getInitialState({}), ha = T({
1913
1934
  name: "projectAccess",
1914
1935
  initialState: Oi,
1915
1936
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Oi)),
@@ -1922,14 +1943,14 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1922
1943
  }), { initializeProjectAccesses: ma, updateProjectAccess: sl, deleteProjectAccess: il, deleteProjectAccesses: nl } = ha.actions, pa = (t) => t.projectAccessReducer.instances, al = p(
1923
1944
  pa,
1924
1945
  (t) => Object.values(t)
1925
- ), Ky = (t) => (e) => e.projectAccessReducer.instances[t], Yy = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
1926
- (s) => s.user === t.uuid
1946
+ ), Yy = (t) => (e) => e.projectAccessReducer.instances[t], Jy = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
1947
+ (s) => s.user === t.id
1927
1948
  ), cl = (t) => {
1928
1949
  const e = {};
1929
1950
  for (const s of Object.values(t.projectAccessReducer.instances))
1930
1951
  e[s.user] = s;
1931
1952
  return ze(e);
1932
- }, ol = ha.reducer, de = _((t) => t.uuid), Ii = de.getInitialState({}), fa = T({
1953
+ }, rl = ha.reducer, de = _((t) => t.uuid), Ii = de.getInitialState({}), fa = T({
1933
1954
  name: "projects",
1934
1955
  initialState: Ii,
1935
1956
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ii)),
@@ -1951,32 +1972,32 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1951
1972
  }
1952
1973
  }
1953
1974
  }), {
1954
- initializeProjects: Jy,
1955
- setProjects: rl,
1956
- setProject: Qy,
1957
- addProjects: Xy,
1958
- addProject: Zy,
1959
- updateProjects: eA,
1975
+ initializeProjects: Qy,
1976
+ setProjects: ol,
1977
+ setProject: Xy,
1978
+ addProjects: Zy,
1979
+ addProject: eA,
1980
+ updateProjects: tA,
1960
1981
  updateProject: dl,
1961
1982
  deleteProject: ul,
1962
- deleteProjects: tA,
1983
+ deleteProjects: sA,
1963
1984
  acceptProjectInvite: ll
1964
- } = fa.actions, hl = fa.reducer, kt = (t) => t.projectReducer.instances, sA = p([kt], (t) => b(Object.values(t))), iA = (t) => (e) => e.projectReducer.instances[t], ml = p(
1985
+ } = fa.actions, hl = fa.reducer, kt = (t) => t.projectReducer.instances, iA = p([kt], (t) => b(Object.values(t))), nA = (t) => (e) => e.projectReducer.instances[t], ml = p(
1965
1986
  [pa],
1966
1987
  (t) => Object.values(t).map((e) => e.user)
1967
1988
  ), pl = p(
1968
1989
  [ml, Et],
1969
1990
  (t, e) => t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
1970
- ), nA = p(
1991
+ ), aA = p(
1971
1992
  [wt, pl, cl],
1972
1993
  (t, e, s) => b(
1973
1994
  Object.values(e).sort((i, n) => {
1974
- if (i.uuid === (t == null ? void 0 : t.uuid))
1995
+ if (i.id === (t == null ? void 0 : t.id))
1975
1996
  return -1;
1976
- if (n.uuid === (t == null ? void 0 : t.uuid))
1997
+ if (n.id === (t == null ? void 0 : t.id))
1977
1998
  return 1;
1978
- const a = s[i.uuid], c = s[n.uuid];
1979
- return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.first_name.localeCompare(n.first_name) : (a == null ? void 0 : a.access_level) === zi.ADMIN ? -1 : 1;
1999
+ const a = s[i.id], c = s[n.id];
2000
+ return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === zi.ADMIN ? -1 : 1;
1980
2001
  })
1981
2002
  )
1982
2003
  ), ue = _((t) => t.uuid), Fi = ue.getInitialState({}), ya = T({
@@ -1995,16 +2016,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1995
2016
  deleteOrganizations: ue.deleteMany
1996
2017
  }
1997
2018
  }), {
1998
- initializeOrganizations: aA,
2019
+ initializeOrganizations: cA,
1999
2020
  setOrganizations: fl,
2000
- setOrganization: cA,
2021
+ setOrganization: rA,
2001
2022
  addOrganizations: oA,
2002
- addOrganization: rA,
2003
- updateOrganizations: dA,
2004
- updateOrganization: uA,
2005
- deleteOrganization: lA,
2006
- deleteOrganizations: hA
2007
- } = ya.actions, yl = (t) => t.organizationReducer.instances, Al = p([yl], (t) => Object.values(t)), mA = (t) => (e) => e.organizationReducer.instances[t], pA = p(
2023
+ addOrganization: dA,
2024
+ updateOrganizations: uA,
2025
+ updateOrganization: lA,
2026
+ deleteOrganization: hA,
2027
+ deleteOrganizations: mA
2028
+ } = ya.actions, yl = (t) => t.organizationReducer.instances, Al = p([yl], (t) => Object.values(t)), pA = (t) => (e) => e.organizationReducer.instances[t], fA = p(
2008
2029
  [Al],
2009
2030
  (t) => b(
2010
2031
  Object.values(t).filter((e) => e.has_access)
@@ -2012,16 +2033,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2012
2033
  ), bl = p(
2013
2034
  [la],
2014
2035
  (t) => Object.values(t).map((e) => e.user)
2015
- ), fA = A(
2036
+ ), yA = A(
2016
2037
  p(
2017
2038
  [kt, (t, e) => e],
2018
2039
  (t, e) => b(
2019
2040
  Object.values(t).filter((s) => s.organization_owner === e)
2020
2041
  )
2021
2042
  )
2022
- ), yA = A(
2043
+ ), AA = A(
2023
2044
  p(
2024
- [Pt, (t, e) => e],
2045
+ [vt, (t, e) => e],
2025
2046
  (t, e) => b(
2026
2047
  Object.values(t).filter((s) => s.organization_owner === e)
2027
2048
  )
@@ -2031,16 +2052,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2031
2052
  (t, e) => ze(
2032
2053
  t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
2033
2054
  )
2034
- ), AA = p(
2055
+ ), bA = p(
2035
2056
  [wt, gl, el],
2036
2057
  (t, e, s) => b(
2037
2058
  Object.values(e).sort((i, n) => {
2038
- if (i.uuid === (t == null ? void 0 : t.uuid))
2059
+ if (i.id === (t == null ? void 0 : t.id))
2039
2060
  return -1;
2040
- if (n.uuid === (t == null ? void 0 : t.uuid))
2061
+ if (n.id === (t == null ? void 0 : t.id))
2041
2062
  return 1;
2042
- const a = s[i.uuid], c = s[n.uuid];
2043
- return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.first_name.localeCompare(n.first_name) : (a == null ? void 0 : a.access_level) === Ui.ADMIN ? -1 : 1;
2063
+ const a = s[i.id], c = s[n.id];
2064
+ return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === Ui.ADMIN ? -1 : 1;
2044
2065
  })
2045
2066
  )
2046
2067
  ), Sl = ya.reducer, Tl = (t, e, s) => {
@@ -2059,13 +2080,13 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2059
2080
  }
2060
2081
  }
2061
2082
  };
2062
- }, vi = {
2083
+ }, Pi = {
2063
2084
  deletedRequests: [],
2064
2085
  latestRetryTime: 0
2065
2086
  }, Aa = T({
2066
2087
  name: "outbox",
2067
- initialState: vi,
2068
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vi)),
2088
+ initialState: Pi,
2089
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Pi)),
2069
2090
  reducers: {
2070
2091
  // enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
2071
2092
  // Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
@@ -2089,10 +2110,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2089
2110
  t.latestRetryTime = e.payload;
2090
2111
  }
2091
2112
  }
2092
- }), bA = (t) => t.outboxReducer.deletedRequests, gA = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Rl, markForDeletion: SA, markAsDeleted: _l, _setLatestRetryTime: Ol } = Aa.actions, Il = Aa.reducer, le = _((t) => t.uuid), Pi = le.getInitialState({}), ba = T({
2113
+ }), gA = (t) => t.outboxReducer.deletedRequests, SA = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Rl, markForDeletion: TA, markAsDeleted: _l, _setLatestRetryTime: Ol } = Aa.actions, Il = Aa.reducer, le = _(
2114
+ (t) => t.uuid
2115
+ ), vi = le.getInitialState({}), ba = T({
2093
2116
  name: "projectAttachments",
2094
- initialState: Pi,
2095
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Pi)),
2117
+ initialState: vi,
2118
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vi)),
2096
2119
  reducers: {
2097
2120
  initializeProjectAttachments: le.initialize,
2098
2121
  addProjectAttachment: le.addOne,
@@ -2106,11 +2129,11 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2106
2129
  }
2107
2130
  }), {
2108
2131
  initializeProjectAttachments: Fl,
2109
- addProjectAttachment: TA,
2110
- addProjectAttachments: vl,
2111
- setProjectAttachment: Pl,
2132
+ addProjectAttachment: RA,
2133
+ addProjectAttachments: Pl,
2134
+ setProjectAttachment: vl,
2112
2135
  setProjectAttachments: wl,
2113
- updateProjectAttachment: RA,
2136
+ updateProjectAttachment: _A,
2114
2137
  updateProjectAttachments: El,
2115
2138
  deleteProjectAttachment: kl,
2116
2139
  deleteProjectAttachments: ga
@@ -2122,7 +2145,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2122
2145
  [jl, (t, e) => e],
2123
2146
  (t, e) => b(t.filter(({ project: s }) => e === s))
2124
2147
  )
2125
- ), Dl = ba.reducer, he = _((t) => t.uuid), wi = he.getInitialState({
2148
+ ), Dl = ba.reducer, he = _(
2149
+ (t) => t.uuid
2150
+ ), wi = he.getInitialState({
2126
2151
  activeProjectFileId: null,
2127
2152
  isImportingProjectFile: !1
2128
2153
  }), Sa = T({
@@ -2164,12 +2189,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2164
2189
  }
2165
2190
  }), {
2166
2191
  initializeProjectFiles: xl,
2167
- setProjectFile: _A,
2168
- setProjectFiles: OA,
2169
- addProjectFile: IA,
2192
+ setProjectFile: OA,
2193
+ setProjectFiles: IA,
2194
+ addProjectFile: FA,
2170
2195
  addProjectFiles: zl,
2171
2196
  updateProjectFile: Ei,
2172
- updateProjectFiles: FA,
2197
+ updateProjectFiles: PA,
2173
2198
  deleteProjectFile: Ul,
2174
2199
  deleteProjectFiles: $l,
2175
2200
  // TODO: move following to /web
@@ -2177,7 +2202,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2177
2202
  setActiveProjectFileId: Gl,
2178
2203
  saveActiveProjectFileBounds: Ll,
2179
2204
  resetProjectFileObjectUrls: vA
2180
- } = Sa.actions, Bl = (t) => t.projectFileReducer.instances, Nl = p([Bl], (t) => b(Object.values(t).sort((e, s) => e.z_index - s.z_index))), PA = (t) => (e) => e.projectFileReducer.instances[t], wA = (t) => t.projectFileReducer.activeProjectFileId, EA = (t) => t.projectFileReducer.isImportingProjectFile, Hl = Sa.reducer, Wl = {
2205
+ } = Sa.actions, Bl = (t) => t.projectFileReducer.instances, Nl = p([Bl], (t) => b(Object.values(t).sort((e, s) => e.z_index - s.z_index))), wA = (t) => (e) => e.projectFileReducer.instances[t], EA = (t) => t.projectFileReducer.activeProjectFileId, kA = (t) => t.projectFileReducer.isImportingProjectFile, Hl = Sa.reducer, Wl = {
2181
2206
  isRehydrated: !1
2182
2207
  }, Ta = T({
2183
2208
  name: "rehydrated",
@@ -2188,7 +2213,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2188
2213
  t.isRehydrated = e.payload;
2189
2214
  }
2190
2215
  }
2191
- }), { setRehydrated: kA } = Ta.actions, qA = (t) => t.rehydratedReducer.isRehydrated, Kl = Ta.reducer, Fe = _((t) => t.uuid), ki = Fe.getInitialState({}), Ra = T({
2216
+ }), { setRehydrated: qA } = Ta.actions, jA = (t) => t.rehydratedReducer.isRehydrated, Kl = Ta.reducer, Fe = _((t) => t.uuid), ki = Fe.getInitialState({}), Ra = T({
2192
2217
  name: "teams",
2193
2218
  initialState: ki,
2194
2219
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ki)),
@@ -2199,7 +2224,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2199
2224
  updateTeam: Fe.updateOne,
2200
2225
  deleteTeam: Fe.deleteOne
2201
2226
  }
2202
- }), { setTeam: we, initializeTeams: Yl, addTeam: Jl, updateTeam: qi, deleteTeam: ji } = Ra.actions, _a = (t) => t.teamReducer.instances, Oa = p([_a], (t) => Object.values(t)), Ee = (t) => (e) => e.teamReducer.instances[t], jA = A(
2227
+ }), { setTeam: we, initializeTeams: Yl, addTeam: Jl, updateTeam: qi, deleteTeam: ji } = Ra.actions, _a = (t) => t.teamReducer.instances, Oa = p([_a], (t) => Object.values(t)), Ee = (t) => (e) => e.teamReducer.instances[t], MA = A(
2203
2228
  p(
2204
2229
  [_a, (t, e) => e],
2205
2230
  (t, e) => {
@@ -2211,12 +2236,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2211
2236
  return b(s);
2212
2237
  }
2213
2238
  )
2214
- ), MA = A(
2239
+ ), CA = A(
2215
2240
  p(
2216
2241
  [Oa, (t, e) => e],
2217
2242
  (t, e) => b(t.filter((s) => s.organization === e))
2218
2243
  )
2219
- ), CA = A(
2244
+ ), DA = A(
2220
2245
  p([Oa, (t, e) => e], (t, e) => b(t.filter((s) => s.members.includes(e))))
2221
2246
  ), Ql = Ra.reducer, Xl = {
2222
2247
  version: 0
@@ -2239,11 +2264,11 @@ function sh(t) {
2239
2264
  function ih() {
2240
2265
  return Fa;
2241
2266
  }
2242
- const va = {};
2243
- class Pa {
2267
+ const Pa = {};
2268
+ class va {
2244
2269
  constructor(e) {
2245
2270
  y(this, "client");
2246
- va[this.constructor.name] = this, this.client = e;
2271
+ Pa[this.constructor.name] = this, this.client = e;
2247
2272
  }
2248
2273
  async enqueueRequest(e) {
2249
2274
  return this.client.enqueueRequest(e, this.host, this.constructor.name);
@@ -2256,80 +2281,80 @@ class Pa {
2256
2281
  const wa = "versioning", Ea = () => qa.length - 1, ka = (t) => (t[wa] = { version: Ea() }, t), Mi = () => ka({}), nh = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), ah = (t) => (e) => {
2257
2282
  var s;
2258
2283
  return e === void 0 && (e = {}), ((s = e[wa]) == null ? void 0 : s.version) === Ea() ? e : t(e);
2259
- }, qa = [ka, Mi, Mi, nh], ch = Object.fromEntries(qa.map((t, e) => [e, ah(t)])), ja = "versioning", oh = {
2284
+ }, qa = [ka, Mi, Mi, nh], ch = Object.fromEntries(qa.map((t, e) => [e, ah(t)])), ja = "versioning", rh = {
2260
2285
  [ja]: eh,
2261
- fileReducer: xr,
2262
- authReducer: cr,
2263
- categoryReducer: ur,
2264
- assetReducer: lo,
2265
- assetAttachmentReducer: vc,
2266
- assetStageCompletionReducer: fo,
2267
- assetStageReducer: So,
2268
- assetTypeReducer: nr,
2269
- assetTypeAttachmentReducer: ko,
2286
+ fileReducer: xo,
2287
+ authReducer: ao,
2288
+ categoryReducer: uo,
2289
+ assetReducer: ur,
2290
+ assetAttachmentReducer: Pc,
2291
+ assetStageCompletionReducer: pr,
2292
+ assetStageReducer: gr,
2293
+ assetTypeReducer: io,
2294
+ assetTypeAttachmentReducer: Er,
2270
2295
  issueReducer: Zd,
2271
2296
  issueAttachmentReducer: Dd,
2272
2297
  issueTypeReducer: Du,
2273
- issueTypeAttachmentReducer: ru,
2298
+ issueTypeAttachmentReducer: ou,
2274
2299
  organizationReducer: Sl,
2275
2300
  outboxReducer: Il,
2276
2301
  projectReducer: hl,
2277
2302
  projectAttachmentReducer: Dl,
2278
- projectAccessReducer: ol,
2303
+ projectAccessReducer: rl,
2279
2304
  organizationAccessReducer: tl,
2280
2305
  projectFileReducer: Hl,
2281
2306
  rehydratedReducer: Kl,
2282
- formReducer: Zr,
2283
- formRevisionReducer: Qr,
2284
- formRevisionAttachmentReducer: Lr,
2307
+ formReducer: Zo,
2308
+ formRevisionReducer: Qo,
2309
+ formRevisionAttachmentReducer: Lo,
2285
2310
  formSubmissionAttachmentReducer: cd,
2286
2311
  formSubmissionReducer: hd,
2287
2312
  userReducer: Ju,
2288
- emailDomainsReducer: jr,
2313
+ emailDomainsReducer: jo,
2289
2314
  licenseReducer: Wu,
2290
- documentsReducer: Fr,
2291
- documentAttachmentReducer: Sr,
2315
+ documentsReducer: Fo,
2316
+ documentAttachmentReducer: So,
2292
2317
  teamReducer: Ql,
2293
2318
  agentsReducer: gc,
2294
2319
  issueCommentReducer: Kd,
2295
2320
  issueCommentAttachmentReducer: Nd,
2296
2321
  issueUpdateReducer: Bu,
2297
2322
  geoImageReducer: Td,
2298
- issueAssociationReducer: Pd,
2323
+ issueAssociationReducer: vd,
2299
2324
  issueTypeFieldsReducer: Ou,
2300
2325
  issueTypeFieldValuesReducer: bu,
2301
2326
  issueTypeFieldsAttachmentReducer: fu,
2302
2327
  issueTypeFieldValuesAttachmentReducer: Eu,
2303
- assetTypeFieldsReducer: Bo,
2304
- assetTypeFieldValuesReducer: sr,
2305
- assetTypeFieldsAttachmentReducer: zo,
2306
- assetTypeFieldValuesAttachmentReducer: Jo,
2307
- assetProcedureReducer: co,
2308
- assetProcedureInstanceReducer: io,
2328
+ assetTypeFieldsReducer: Lr,
2329
+ assetTypeFieldValuesReducer: to,
2330
+ assetTypeFieldsAttachmentReducer: xr,
2331
+ assetTypeFieldValuesAttachmentReducer: Yr,
2332
+ assetProcedureReducer: cr,
2333
+ assetProcedureInstanceReducer: ir,
2309
2334
  assetProcedureFieldsReducer: $c,
2310
2335
  assetProcedureFieldValuesReducer: Xc,
2311
2336
  assetProcedureFieldsAttachmentReducer: Mc,
2312
2337
  assetProcedureFieldValuesAttachmentReducer: Hc
2313
- }, Ci = Va(oh), rh = "RESET", DA = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Ci(void 0, e) : Ci(t, e);
2314
- let ot = null;
2315
- function ve() {
2338
+ }, Ci = Va(rh), oh = "RESET", xA = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Ci(void 0, e) : Ci(t, e);
2339
+ let rt = null;
2340
+ function Pe() {
2316
2341
  const t = Ue();
2317
2342
  if (!t)
2318
2343
  return console.warn("Client store not set; cannot get outbox coordinator yet."), null;
2319
- if (ot)
2320
- return ot;
2344
+ if (rt)
2345
+ return rt;
2321
2346
  const e = t.getState().offline.outbox, s = Me._fromOutbox(e);
2322
- return ot = s, s;
2347
+ return rt = s, s;
2323
2348
  }
2324
2349
  const dh = (t) => {
2325
2350
  if (t) throw t;
2326
2351
  const e = Ue();
2327
2352
  e ? e.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }) : console.error("Client store not set");
2328
2353
  }, uh = (t, e, s) => {
2329
- const i = ve();
2354
+ const i = Pe();
2330
2355
  return i ? (i.addRequest(e), i.getQueue()) : (console.warn("Outbox coordinator not set; cannot enqueue request yet."), []);
2331
2356
  }, lh = (t, e, s) => {
2332
- const i = ve();
2357
+ const i = Pe();
2333
2358
  if (!i)
2334
2359
  return console.warn("Outbox coordinator not set; cannot dequeue request yet."), [];
2335
2360
  const a = e.meta.offlineAction.payload.uuid;
@@ -2362,7 +2387,7 @@ const mh = {
2362
2387
  // Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
2363
2388
  peek: (...t) => Th(...t)
2364
2389
  }
2365
- }, ph = Ha(ch, ja), xA = Ga(Ba(mh), ph);
2390
+ }, ph = Ha(ch, ja), zA = Ga(Ba(mh), ph);
2366
2391
  function fh(t) {
2367
2392
  function e(s) {
2368
2393
  return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
@@ -2375,7 +2400,7 @@ function fh(t) {
2375
2400
  }
2376
2401
  }
2377
2402
  async function Ma(t, e) {
2378
- const s = va[t.meta.offline.effect.serviceName];
2403
+ const s = Pa[t.meta.offline.effect.serviceName];
2379
2404
  if (!s)
2380
2405
  throw new Error(`Service ${t.meta.offline.effect.serviceName} not found`);
2381
2406
  const i = s instanceof I;
@@ -2385,7 +2410,7 @@ async function Ma(t, e) {
2385
2410
  const a = {
2386
2411
  queryParams: "",
2387
2412
  isAuthNeeded: !0
2388
- }, c = t.meta.offline.effect, { payload: d, headers: l, method: o, queryParams: r, attachmentHash: h, isExternalUrl: m, isAuthNeeded: f, isResponseBlob: S } = {
2413
+ }, c = t.meta.offline.effect, { payload: d, headers: l, method: r, queryParams: o, attachmentHash: h, isExternalUrl: m, isAuthNeeded: f, isResponseBlob: S } = {
2389
2414
  ...a,
2390
2415
  ...c.request
2391
2416
  }, R = c.request;
@@ -2394,49 +2419,49 @@ async function Ma(t, e) {
2394
2419
  if (h && !F)
2395
2420
  throw new Error(`Cannot upload file ${h} because it's not cached.`);
2396
2421
  !m && !g.startsWith("http") && (!g.startsWith("/") && !g.startsWith("blob:") && (g = "/" + g), g = t.meta.offline.effect.BASE_URL + g);
2397
- const k = (P) => {
2422
+ const k = (v) => {
2398
2423
  if (h) {
2399
2424
  const M = R.s3url;
2400
2425
  if (!M) throw new Error(`No S3 URL for file ${h}`);
2401
2426
  if ("warning" in M) throw new Error(`S3 URL warning for file ${h}`);
2402
2427
  if (!F) throw new Error(`No file for file ${h}`);
2403
- const Pe = M.fields["x-amz-checksum-sha1"];
2404
- if (!Pe) throw new Error(`No checksum for file ${h}`);
2405
- return P.set("x-amz-checksum-sha1", Pe).field({ ...d, ...M.fields }).attach("file", F);
2428
+ const ve = M.fields["x-amz-checksum-sha1"];
2429
+ if (!ve) throw new Error(`No checksum for file ${h}`);
2430
+ return v.set("x-amz-checksum-sha1", ve).field({ ...d, ...M.fields }).attach("file", F);
2406
2431
  }
2407
- return P.send(d);
2432
+ return v.send(d);
2408
2433
  }, za = {
2409
2434
  [u.GET]: () => S ? Oe.get(g.toString()).responseType("blob") : Oe.get(g.toString()),
2410
2435
  [u.POST]: () => {
2411
- const P = Oe.post(g.toString());
2412
- return k(P);
2436
+ const v = Oe.post(g.toString());
2437
+ return k(v);
2413
2438
  },
2414
2439
  [u.PATCH]: () => {
2415
- const P = Oe.patch(g.toString());
2416
- return k(P);
2440
+ const v = Oe.patch(g.toString());
2441
+ return k(v);
2417
2442
  },
2418
2443
  [u.PUT]: () => {
2419
- const P = Oe.put(g.toString());
2420
- return k(P);
2444
+ const v = Oe.put(g.toString());
2445
+ return k(v);
2421
2446
  },
2422
2447
  [u.DELETE]: () => {
2423
- const P = Oe.delete(g.toString());
2424
- return k(P);
2448
+ const v = Oe.delete(g.toString());
2449
+ return k(v);
2425
2450
  }
2426
- }[o];
2451
+ }[r];
2427
2452
  let fe = za();
2428
2453
  if (f && i) {
2429
- const P = s.auth.getAuthHeader();
2430
- fe = fe.set("Authorization", P);
2454
+ const v = s.auth.getAuthHeader();
2455
+ fe = fe.set("Authorization", v);
2431
2456
  }
2432
2457
  l && (fe = fe.set(l));
2433
2458
  try {
2434
- return await fe.query(r);
2435
- } catch (P) {
2436
- const M = fh(P), Pe = M == null ? void 0 : M.status;
2437
- if (i && Pe === 401)
2438
- return await s.auth.handleUnauthorized(fe, M), fe.query(r);
2439
- throw new j({ response: M, innerError: P, discard: Da.includes(Pe) });
2459
+ return await fe.query(o);
2460
+ } catch (v) {
2461
+ const M = fh(v), ve = M == null ? void 0 : M.status;
2462
+ if (i && ve === 401)
2463
+ return await s.auth.handleUnauthorized(fe, M), fe.query(o);
2464
+ throw new j({ response: M, innerError: v, discard: Da.includes(ve) });
2440
2465
  }
2441
2466
  }
2442
2467
  class yh {
@@ -2491,7 +2516,7 @@ function Sh(t) {
2491
2516
  }
2492
2517
  const Da = [400, 409, 403, 404, 405, 500];
2493
2518
  function xa(t, e, s = 0) {
2494
- var o;
2519
+ var r;
2495
2520
  if (console.debug(
2496
2521
  "Considering discarding request due to error:",
2497
2522
  t,
@@ -2511,10 +2536,10 @@ Retries:`,
2511
2536
  const i = Ue(), a = i.getState().outboxReducer.deletedRequests, c = e.payload.uuid;
2512
2537
  function d() {
2513
2538
  i.dispatch(_l(c));
2514
- const r = ve();
2515
- if (!r)
2539
+ const o = Pe();
2540
+ if (!o)
2516
2541
  throw new Error("Outbox coordinator not set");
2517
- r.remove(e.payload.uuid);
2542
+ o.remove(e.payload.uuid);
2518
2543
  const h = e.meta.offline.rollback;
2519
2544
  throw h && (console.warn("Rolling back request due to SDK error:", e), i.dispatch(h)), t;
2520
2545
  }
@@ -2523,25 +2548,25 @@ Retries:`,
2523
2548
  if (a.includes(c))
2524
2549
  return console.debug("Discarding request due to deletion:", e), d();
2525
2550
  if (t instanceof j) {
2526
- const r = t.status || ((o = t.response) == null ? void 0 : o.status);
2527
- if (r || console.warn("Error has no status code:", t), r !== void 0 && Da.includes(r)) {
2551
+ const o = t.status || ((r = t.response) == null ? void 0 : r.status);
2552
+ if (o || console.warn("Error has no status code:", t), o !== void 0 && Da.includes(o)) {
2528
2553
  console.warn("Discarding request due to error:", t, `
2529
2554
  Action:`, e);
2530
- const h = ve();
2555
+ const h = Pe();
2531
2556
  if (!h)
2532
2557
  throw new Error("Outbox coordinator not set");
2533
2558
  h.remove(e.payload.uuid), t.options.discard = !0, d();
2534
2559
  }
2535
2560
  }
2536
2561
  console.debug("Registering a retry for request:", e.payload.uuid);
2537
- const l = ve();
2562
+ const l = Pe();
2538
2563
  if (!l)
2539
2564
  throw new Error("Outbox coordinator not set");
2540
2565
  return l.registerRetry(e.payload.uuid), !1;
2541
2566
  }
2542
2567
  function Th(t, e, s) {
2543
2568
  var i;
2544
- return (i = ve()) == null ? void 0 : i.peek();
2569
+ return (i = Pe()) == null ? void 0 : i.peek();
2545
2570
  }
2546
2571
  function Rh(t, e) {
2547
2572
  return Ue().dispatch(Ol((/* @__PURE__ */ new Date()).getTime())), ic;
@@ -2581,19 +2606,19 @@ class j extends Error {
2581
2606
  this.message = s.message ?? Oh(i, n) ?? xe, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, s.discard = s.discard ?? !1, this.options = s;
2582
2607
  }
2583
2608
  }
2584
- class Ih extends Pa {
2609
+ class Ih extends va {
2585
2610
  constructor(e) {
2586
2611
  super(e);
2587
2612
  }
2588
2613
  }
2589
- class I extends Pa {
2614
+ class I extends va {
2590
2615
  constructor(s, i) {
2591
2616
  super(s);
2592
2617
  y(this, "auth");
2593
2618
  this.auth = i;
2594
2619
  }
2595
2620
  }
2596
- class zA extends I {
2621
+ class UA extends I {
2597
2622
  async startConversation(e, s) {
2598
2623
  return this.enqueueRequest({
2599
2624
  description: "Start agent conversation",
@@ -2665,9 +2690,9 @@ class E extends I {
2665
2690
  projectAttachmentReducer: c,
2666
2691
  formRevisionAttachmentReducer: d,
2667
2692
  formSubmissionAttachmentReducer: l,
2668
- geoImageReducer: o,
2693
+ geoImageReducer: r,
2669
2694
  // fields
2670
- assetTypeFieldsAttachmentReducer: r,
2695
+ assetTypeFieldsAttachmentReducer: o,
2671
2696
  assetTypeFieldValuesAttachmentReducer: h,
2672
2697
  issueTypeFieldsAttachmentReducer: m,
2673
2698
  issueTypeFieldValuesAttachmentReducer: f
@@ -2680,8 +2705,8 @@ class E extends I {
2680
2705
  Object.values(c.instances),
2681
2706
  Object.values(d.instances),
2682
2707
  Object.values(l.instances),
2683
- Object.values(o.instances),
2684
2708
  Object.values(r.instances),
2709
+ Object.values(o.instances),
2685
2710
  Object.values(h.instances),
2686
2711
  Object.values(m.instances),
2687
2712
  Object.values(f.instances)
@@ -2716,10 +2741,10 @@ class E extends I {
2716
2741
  }
2717
2742
  class _e extends E {
2718
2743
  async _bulkAdd(e) {
2719
- var o;
2720
- const { store: s } = this.client, i = (o = s.getState().userReducer.currentUser) == null ? void 0 : o.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = [], c = [], d = {};
2721
- for (const r of e) {
2722
- const { modelUuid: h, file: m } = r, f = await this.getFilePayload(m);
2744
+ var r;
2745
+ const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = [], c = [], d = {};
2746
+ for (const o of e) {
2747
+ const { modelUuid: h, file: m } = o, f = await this.getFilePayload(m);
2723
2748
  f.sha1 in d || (d[f.sha1] = f);
2724
2749
  const S = this.buildOfflineAttachment({
2725
2750
  file: m,
@@ -2750,14 +2775,14 @@ class _e extends E {
2750
2775
  attachments: c,
2751
2776
  files: Object.values(d)
2752
2777
  },
2753
- blocks: a.map((r) => r.uuid),
2754
- blockers: a.map((r) => r.file_sha1)
2778
+ blocks: a.map((o) => o.uuid),
2779
+ blockers: a.map((o) => o.file_sha1)
2755
2780
  });
2756
- return l.then(({ attachments: r, presigned_urls: h }) => {
2757
- this.dispatch(this.updateAttachments(r)), this.processPresignedUrls(h);
2781
+ return l.then(({ attachments: o, presigned_urls: h }) => {
2782
+ this.dispatch(this.updateAttachments(o)), this.processPresignedUrls(h);
2758
2783
  }).catch(() => {
2759
- this.dispatch(this.removeAttachments(a.map((r) => r.uuid)));
2760
- }), [a, l.then(({ attachments: r }) => r)];
2784
+ this.dispatch(this.removeAttachments(a.map((o) => o.uuid)));
2785
+ }), [a, l.then(({ attachments: o }) => o)];
2761
2786
  }
2762
2787
  async _delete(e) {
2763
2788
  const { store: s } = this.client, i = this.selectAttachment(e)(s.getState());
@@ -2778,7 +2803,7 @@ class _e extends E {
2778
2803
  }), n;
2779
2804
  }
2780
2805
  }
2781
- class UA extends _e {
2806
+ class $A extends _e {
2782
2807
  constructor() {
2783
2808
  super(...arguments);
2784
2809
  y(this, "name", "Asset Attachment");
@@ -2829,12 +2854,12 @@ class UA extends _e {
2829
2854
  this.dispatch(xt(i));
2830
2855
  }
2831
2856
  }
2832
- class $A extends E {
2857
+ class VA extends E {
2833
2858
  async bulkAdd(e) {
2834
2859
  var l;
2835
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
2836
- for (const o of e) {
2837
- const { fieldsRevisionUuid: r, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
2860
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
2861
+ for (const r of e) {
2862
+ const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
2838
2863
  f.sha1 in n || (n[f.sha1] = f);
2839
2864
  const S = O({
2840
2865
  file: URL.createObjectURL(m),
@@ -2842,7 +2867,7 @@ class $A extends E {
2842
2867
  file_name: m.name,
2843
2868
  file_sha1: f.sha1,
2844
2869
  created_by: i,
2845
- fields_revision: r,
2870
+ fields_revision: o,
2846
2871
  submitted_at: s,
2847
2872
  field_identifier: h
2848
2873
  });
@@ -2853,7 +2878,7 @@ class $A extends E {
2853
2878
  field_identifier: h,
2854
2879
  file_extension: f.extension,
2855
2880
  file_sha1: f.sha1,
2856
- fields_revision: r
2881
+ fields_revision: o
2857
2882
  };
2858
2883
  c.push(R);
2859
2884
  }
@@ -2867,18 +2892,18 @@ class $A extends E {
2867
2892
  attachments: c,
2868
2893
  files: Object.values(n)
2869
2894
  },
2870
- blockers: a.map((o) => o.fields_revision),
2871
- blocks: a.map((o) => o.uuid)
2895
+ blockers: a.map((r) => r.fields_revision),
2896
+ blocks: a.map((r) => r.uuid)
2872
2897
  });
2873
- return d.then((o) => {
2874
- this.processPresignedUrls(o.presigned_urls), this.dispatch(Ec(o.attachments));
2898
+ return d.then((r) => {
2899
+ this.processPresignedUrls(r.presigned_urls), this.dispatch(Ec(r.attachments));
2875
2900
  }).catch(() => {
2876
2901
  this.dispatch(
2877
2902
  kc(
2878
- a.map((o) => o.uuid)
2903
+ a.map((r) => r.uuid)
2879
2904
  )
2880
2905
  );
2881
- }), [a, d.then(({ attachments: o }) => o)];
2906
+ }), [a, d.then(({ attachments: r }) => r)];
2882
2907
  }
2883
2908
  async refreshStore(e) {
2884
2909
  const s = await this.enqueueRequest({
@@ -2891,13 +2916,13 @@ class $A extends E {
2891
2916
  blockers: [],
2892
2917
  blocks: []
2893
2918
  });
2894
- this.dispatch(Pc(s));
2919
+ this.dispatch(vc(s));
2895
2920
  }
2896
2921
  }
2897
- class VA extends I {
2922
+ class GA extends I {
2898
2923
  add(e) {
2899
2924
  var d;
2900
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
2925
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
2901
2926
  ...e,
2902
2927
  created_by: i,
2903
2928
  submitted_at: n
@@ -2939,13 +2964,13 @@ function $e(t, e) {
2939
2964
  s.push(t.slice(i, i += e));
2940
2965
  return s;
2941
2966
  }
2942
- class GA extends E {
2967
+ class LA extends E {
2943
2968
  async bulkAdd(e, s) {
2944
- var o;
2945
- const i = (/* @__PURE__ */ new Date()).toISOString(), n = (o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.uuid, a = $e(e, s ?? e.length), c = [], d = [];
2946
- for (const r of a) {
2969
+ var r;
2970
+ const i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id, a = $e(e, s ?? e.length), c = [], d = [];
2971
+ for (const o of a) {
2947
2972
  const h = {}, m = [];
2948
- for (const f of r) {
2973
+ for (const f of o) {
2949
2974
  const { fieldValuesUuid: S, fieldIdentifier: R, file: g } = f, F = await this.getFilePayload(g);
2950
2975
  F.sha1 in h || (h[F.sha1] = F);
2951
2976
  const k = O(
@@ -2978,27 +3003,27 @@ class GA extends E {
2978
3003
  });
2979
3004
  }
2980
3005
  this.dispatch(ht(c));
2981
- const l = d.map((r) => this.enqueueRequest({
3006
+ const l = d.map((o) => this.enqueueRequest({
2982
3007
  description: "Add asset procedure field values attachments",
2983
3008
  method: u.POST,
2984
3009
  url: "/asset-procedure-field-values-attachments/bulk/",
2985
- payload: r,
2986
- blockers: r.attachments.map((h) => h.field_values),
2987
- blocks: r.attachments.map((h) => h.uuid)
3010
+ payload: o,
3011
+ blockers: o.attachments.map((h) => h.field_values),
3012
+ blocks: o.attachments.map((h) => h.uuid)
2988
3013
  }));
2989
- return Promise.all(l).then((r) => {
2990
- for (const m of r) this.processPresignedUrls(m.presigned_urls);
2991
- const h = r.flatMap((m) => m.attachments);
3014
+ return Promise.all(l).then((o) => {
3015
+ for (const m of o) this.processPresignedUrls(m.presigned_urls);
3016
+ const h = o.flatMap((m) => m.attachments);
2992
3017
  this.dispatch(Gc(h));
2993
- }).catch((r) => {
3018
+ }).catch((o) => {
2994
3019
  throw this.dispatch(
2995
3020
  mt(
2996
3021
  c.map((h) => h.uuid)
2997
3022
  )
2998
- ), r;
3023
+ ), o;
2999
3024
  }), [
3000
3025
  c,
3001
- l.map((r) => r.then(({ attachments: h }) => h))
3026
+ l.map((o) => o.then(({ attachments: h }) => h))
3002
3027
  ];
3003
3028
  }
3004
3029
  async bulkDelete(e) {
@@ -3039,18 +3064,18 @@ const Fh = (t) => Array.isArray(t) && t[0] instanceof File, st = (t) => {
3039
3064
  }
3040
3065
  return { values: s, files: e };
3041
3066
  };
3042
- class LA extends E {
3067
+ class BA extends E {
3043
3068
  add(e) {
3044
3069
  var c;
3045
3070
  const { store: s } = this.client, i = s.getState(), n = O({
3046
3071
  ...e,
3047
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid,
3072
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id,
3048
3073
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
3049
3074
  }), a = this.enqueueRequest({
3050
3075
  description: "Add form submission",
3051
3076
  method: u.POST,
3052
3077
  url: "/form-submissions/",
3053
- payload: v(n),
3078
+ payload: P(n),
3054
3079
  blockers: [
3055
3080
  "add-form-entry",
3056
3081
  e.form_revision,
@@ -3071,7 +3096,7 @@ class LA extends E {
3071
3096
  ...n,
3072
3097
  ...e
3073
3098
  };
3074
- this.dispatch(rd(a));
3099
+ this.dispatch(od(a));
3075
3100
  const c = this.enqueueRequest({
3076
3101
  description: "Delete user form submissions",
3077
3102
  method: u.PATCH,
@@ -3115,21 +3140,21 @@ class LA extends E {
3115
3140
  blockers: [],
3116
3141
  blocks: []
3117
3142
  });
3118
- this.dispatch(od(s));
3143
+ this.dispatch(rd(s));
3119
3144
  }
3120
3145
  }
3121
- class BA extends I {
3146
+ class NA extends I {
3122
3147
  add(e) {
3123
3148
  var c;
3124
3149
  const { store: s } = this.client, i = s.getState(), n = O({
3125
3150
  ...e,
3126
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid,
3151
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id,
3127
3152
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
3128
3153
  }), a = this.enqueueRequest({
3129
3154
  description: "Add asset procedure field values",
3130
3155
  method: u.POST,
3131
3156
  url: "/asset-procedure-field-values/",
3132
- payload: v(n),
3157
+ payload: P(n),
3133
3158
  blockers: [e.asset, e.fields_revision, e.asset_procedure_instance],
3134
3159
  blocks: [n.uuid]
3135
3160
  });
@@ -3138,15 +3163,15 @@ class BA extends I {
3138
3163
  }), [n, a];
3139
3164
  }
3140
3165
  bulkAdd(e, s) {
3141
- var o;
3166
+ var r;
3142
3167
  const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = st(e.values), a = [], c = $e(e.payloads, s ?? e.payloads.length), d = [];
3143
- for (const r of c) {
3168
+ for (const o of c) {
3144
3169
  const h = [];
3145
- for (const m of r) {
3170
+ for (const m of o) {
3146
3171
  const f = O({
3147
3172
  ...m,
3148
3173
  values: st(m.values).values,
3149
- created_by: (o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.uuid,
3174
+ created_by: (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id,
3150
3175
  submitted_at: i
3151
3176
  });
3152
3177
  a.push(f), h.push({
@@ -3166,22 +3191,22 @@ class BA extends I {
3166
3191
  }
3167
3192
  this.dispatch(Kc(a));
3168
3193
  const l = [];
3169
- for (const r of d) {
3170
- const h = r.field_values.map((g) => g.asset), m = r.field_values.map((g) => g.fields_revision), f = r.field_values.map((g) => g.asset_procedure_instance), S = r.field_values.map((g) => g.uuid), R = this.enqueueRequest({
3194
+ for (const o of d) {
3195
+ const h = o.field_values.map((g) => g.asset), m = o.field_values.map((g) => g.fields_revision), f = o.field_values.map((g) => g.asset_procedure_instance), S = o.field_values.map((g) => g.uuid), R = this.enqueueRequest({
3171
3196
  description: "Bulk add asset procedure field values",
3172
3197
  method: u.POST,
3173
3198
  url: "/asset-procedure-field-values/bulk/",
3174
- payload: r,
3199
+ payload: o,
3175
3200
  blockers: [...h, ...m, ...f],
3176
3201
  blocks: S
3177
3202
  });
3178
3203
  l.push(R);
3179
3204
  }
3180
- return Promise.all(l).then((r) => {
3181
- this.dispatch(Yc(r.flat()));
3205
+ return Promise.all(l).then((o) => {
3206
+ this.dispatch(Yc(o.flat()));
3182
3207
  }).catch(() => {
3183
3208
  this.dispatch(
3184
- Jc(a.map((r) => r.uuid))
3209
+ Jc(a.map((o) => o.uuid))
3185
3210
  );
3186
3211
  }), [a, l];
3187
3212
  }
@@ -3246,9 +3271,10 @@ class BA extends I {
3246
3271
  this.dispatch(Wc(s));
3247
3272
  }
3248
3273
  }
3249
- class NA extends I {
3274
+ class HA extends I {
3250
3275
  add(e) {
3251
- const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3276
+ var d;
3277
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3252
3278
  ...e,
3253
3279
  created_by: i,
3254
3280
  submitted_at: n
@@ -3258,12 +3284,12 @@ class NA extends I {
3258
3284
  description: "Create asset procedure instance",
3259
3285
  method: u.POST,
3260
3286
  url: "/asset-procedure-instances/",
3261
- payload: v(a),
3287
+ payload: P(a),
3262
3288
  blockers: [e.asset_procedure, e.asset_type],
3263
3289
  blocks: [a.uuid]
3264
3290
  });
3265
- return c.then((d) => {
3266
- this.dispatch(Le(d));
3291
+ return c.then((l) => {
3292
+ this.dispatch(Le(l));
3267
3293
  }).catch(() => {
3268
3294
  this.dispatch(Wt(a.uuid));
3269
3295
  }), [a, c];
@@ -3319,9 +3345,10 @@ class NA extends I {
3319
3345
  this.dispatch(Zc(s));
3320
3346
  }
3321
3347
  }
3322
- class HA extends I {
3348
+ class WA extends I {
3323
3349
  add(e) {
3324
- const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3350
+ var d;
3351
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3325
3352
  ...e,
3326
3353
  created_by: i,
3327
3354
  submitted_at: n
@@ -3331,12 +3358,12 @@ class HA extends I {
3331
3358
  description: "Create asset procedure",
3332
3359
  method: u.POST,
3333
3360
  url: "/asset-procedures/",
3334
- payload: v(a),
3361
+ payload: P(a),
3335
3362
  blockers: [],
3336
3363
  blocks: [a.uuid]
3337
3364
  });
3338
- return c.then((d) => {
3339
- this.dispatch(Be(d));
3365
+ return c.then((l) => {
3366
+ this.dispatch(Be(l));
3340
3367
  }).catch(() => {
3341
3368
  this.dispatch(Qt(a.uuid));
3342
3369
  }), [a, c];
@@ -3368,15 +3395,15 @@ class HA extends I {
3368
3395
  const { store: s } = this.client, i = s.getState(), n = Xt(e)(i);
3369
3396
  if (!n)
3370
3397
  throw new Error(`Expected asset procedure with uuid ${e} to exist`);
3371
- const a = so(e)(i);
3372
- return this.dispatch(Qt(e)), this.dispatch(to(a.map((c) => c.uuid))), this.enqueueRequest({
3398
+ const a = sr(e)(i);
3399
+ return this.dispatch(Qt(e)), this.dispatch(tr(a.map((c) => c.uuid))), this.enqueueRequest({
3373
3400
  description: "Delete asset procedure",
3374
3401
  method: u.DELETE,
3375
3402
  url: `/asset-procedures/${e}/`,
3376
3403
  blockers: [e],
3377
3404
  blocks: []
3378
3405
  }).catch((c) => {
3379
- throw this.dispatch(Jt(n)), this.dispatch(eo(a)), c;
3406
+ throw this.dispatch(Jt(n)), this.dispatch(er(a)), c;
3380
3407
  });
3381
3408
  }
3382
3409
  async refreshStore(e) {
@@ -3390,16 +3417,17 @@ class HA extends I {
3390
3417
  blockers: [],
3391
3418
  blocks: []
3392
3419
  });
3393
- this.dispatch(no(s));
3420
+ this.dispatch(nr(s));
3394
3421
  }
3395
3422
  }
3396
- class WA extends I {
3423
+ class KA extends I {
3397
3424
  // Basic CRUD functions
3398
3425
  add(e) {
3426
+ var d;
3399
3427
  const { store: s } = this.client;
3400
3428
  if (!e.canvas_marker && !e.geo_marker)
3401
3429
  throw new Error("Asset must have either a canvas_marker or geo_marker");
3402
- const i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3430
+ const i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3403
3431
  ...e,
3404
3432
  created_by: i,
3405
3433
  submitted_at: n
@@ -3409,12 +3437,12 @@ class WA extends I {
3409
3437
  description: "Create asset",
3410
3438
  method: u.POST,
3411
3439
  url: "/assets/",
3412
- payload: v(a),
3440
+ payload: P(a),
3413
3441
  blockers: [a.asset_type],
3414
3442
  blocks: [a.uuid]
3415
3443
  });
3416
- return c.then((d) => {
3417
- this.dispatch(Ne(d));
3444
+ return c.then((l) => {
3445
+ this.dispatch(Ne(l));
3418
3446
  }).catch(() => {
3419
3447
  this.dispatch(ts(a.uuid));
3420
3448
  }), [a, c];
@@ -3447,17 +3475,17 @@ class WA extends I {
3447
3475
  async remove(e) {
3448
3476
  const { store: s } = this.client, i = s.getState(), n = ss(e)(i);
3449
3477
  if (!n) throw new Error(`No asset with uuid ${e} found in the store`);
3450
- const a = Fc(e)(i), c = ld(e)(i), d = vd(e)(i);
3478
+ const a = Fc(e)(i), c = ld(e)(i), d = Pd(e)(i);
3451
3479
  if (this.dispatch(ts(e)), a.length > 0) {
3452
- const l = a.map(({ uuid: o }) => o);
3480
+ const l = a.map(({ uuid: r }) => r);
3453
3481
  this.dispatch(Wi(l));
3454
3482
  }
3455
3483
  if (c.length > 0) {
3456
- const l = c.map(({ uuid: o }) => o);
3484
+ const l = c.map(({ uuid: r }) => r);
3457
3485
  this.dispatch(Ft(l));
3458
3486
  }
3459
3487
  if (d.length > 0) {
3460
- const l = d.map(({ uuid: o }) => o);
3488
+ const l = d.map(({ uuid: r }) => r);
3461
3489
  this.dispatch(Nn(l));
3462
3490
  }
3463
3491
  return this.enqueueRequest({
@@ -3471,8 +3499,8 @@ class WA extends I {
3471
3499
  });
3472
3500
  }
3473
3501
  bulkAdd(e, s, i, n) {
3474
- const a = (/* @__PURE__ */ new Date()).toISOString(), c = Re(), d = $e(e, n).map((r) => {
3475
- const h = r.map((m) => O(m));
3502
+ const a = (/* @__PURE__ */ new Date()).toISOString(), c = Re(), d = $e(e, n).map((o) => {
3503
+ const h = o.map((m) => O(m));
3476
3504
  return {
3477
3505
  batchId: Re(),
3478
3506
  payload: {
@@ -3484,10 +3512,10 @@ class WA extends I {
3484
3512
  }
3485
3513
  };
3486
3514
  }), l = [];
3487
- let o = null;
3488
- for (const r of d) {
3489
- const { batchId: h, payload: m } = r, f = m.assets.map((F) => F.uuid), S = [s];
3490
- o && S.push(o);
3515
+ let r = null;
3516
+ for (const o of d) {
3517
+ const { batchId: h, payload: m } = o, f = m.assets.map((F) => F.uuid), S = [s];
3518
+ r && S.push(r);
3491
3519
  const R = f;
3492
3520
  R.push(h);
3493
3521
  const g = this.enqueueRequest({
@@ -3498,11 +3526,11 @@ class WA extends I {
3498
3526
  blockers: S,
3499
3527
  blocks: R
3500
3528
  });
3501
- o = r.batchId, l.push(g);
3529
+ r = o.batchId, l.push(g);
3502
3530
  }
3503
- return Promise.all(l).then((r) => {
3504
- const h = r.flat();
3505
- this.dispatch(rn(h));
3531
+ return Promise.all(l).then((o) => {
3532
+ const h = o.flat();
3533
+ this.dispatch(on(h));
3506
3534
  }), l;
3507
3535
  }
3508
3536
  async refreshStore(e) {
@@ -3516,12 +3544,13 @@ class WA extends I {
3516
3544
  blockers: [],
3517
3545
  blocks: []
3518
3546
  });
3519
- this.dispatch(oo(s));
3547
+ this.dispatch(rr(s));
3520
3548
  }
3521
3549
  }
3522
- class KA extends I {
3550
+ class YA extends I {
3523
3551
  add(e) {
3524
- const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3552
+ var d;
3553
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3525
3554
  ...e,
3526
3555
  created_by: i,
3527
3556
  submitted_at: n
@@ -3531,18 +3560,18 @@ class KA extends I {
3531
3560
  description: "Add asset stage completion",
3532
3561
  method: u.POST,
3533
3562
  url: "/asset-stage-completions/",
3534
- payload: v(a),
3563
+ payload: P(a),
3535
3564
  blockers: [e.asset, e.stage],
3536
3565
  blocks: [a.uuid]
3537
3566
  });
3538
- return c.then((d) => {
3539
- this.dispatch(mo(d));
3567
+ return c.then((l) => {
3568
+ this.dispatch(hr(l));
3540
3569
  }).catch(() => {
3541
3570
  this.dispatch(cs(a.uuid));
3542
3571
  }), [a, c];
3543
3572
  }
3544
3573
  delete(e) {
3545
- const { store: s } = this.client, i = yo(e)(s.getState());
3574
+ const { store: s } = this.client, i = fr(e)(s.getState());
3546
3575
  if (!i)
3547
3576
  throw new Error(`Expected asset stage completion with uuid ${e} to exist`);
3548
3577
  this.dispatch(cs(e));
@@ -3558,7 +3587,8 @@ class KA extends I {
3558
3587
  }), n;
3559
3588
  }
3560
3589
  bulkAdd(e) {
3561
- const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = s.getState().userReducer.currentUser.uuid, a = e.map((o) => O(o)), c = a.map((o) => ({
3590
+ var r;
3591
+ const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = e.map((o) => O(o)), c = a.map((o) => ({
3562
3592
  ...o,
3563
3593
  created_by: n,
3564
3594
  submitted_at: i
@@ -3580,14 +3610,14 @@ class KA extends I {
3580
3610
  blocks: d
3581
3611
  });
3582
3612
  return l.then((o) => {
3583
- this.dispatch(po(o));
3613
+ this.dispatch(mr(o));
3584
3614
  }).catch(() => {
3585
- this.dispatch(os(d));
3615
+ this.dispatch(rs(d));
3586
3616
  }), [c, l];
3587
3617
  }
3588
3618
  bulkDelete(e) {
3589
- const { store: s } = this.client, i = Ao(e)(s.getState());
3590
- this.dispatch(os(e));
3619
+ const { store: s } = this.client, i = yr(e)(s.getState());
3620
+ this.dispatch(rs(e));
3591
3621
  const n = this.enqueueRequest({
3592
3622
  description: "Deleting asset stage completions",
3593
3623
  method: u.DELETE,
@@ -3613,12 +3643,13 @@ class KA extends I {
3613
3643
  blockers: [],
3614
3644
  blocks: []
3615
3645
  });
3616
- this.dispatch(ho(s));
3646
+ this.dispatch(lr(s));
3617
3647
  }
3618
3648
  }
3619
- class YA extends I {
3649
+ class JA extends I {
3620
3650
  bulkAdd(e, s) {
3621
- const i = (/* @__PURE__ */ new Date()).toISOString(), n = this.client.store.getState().userReducer.currentUser.uuid, a = e.map((l) => O(l)), c = a.map((l) => ({ ...l, asset_procedure: s, created_by: n, submitted_at: i }));
3651
+ var l;
3652
+ const i = (/* @__PURE__ */ new Date()).toISOString(), n = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = e.map((r) => O(r)), c = a.map((r) => ({ ...r, asset_procedure: s, created_by: n, submitted_at: i }));
3622
3653
  this.dispatch(ds(c));
3623
3654
  const d = this.enqueueRequest({
3624
3655
  description: "Add asset stages",
@@ -3630,12 +3661,12 @@ class YA extends I {
3630
3661
  stages: a
3631
3662
  },
3632
3663
  blockers: [s],
3633
- blocks: a.map(({ uuid: l }) => l)
3664
+ blocks: a.map(({ uuid: r }) => r)
3634
3665
  });
3635
- return d.then((l) => {
3636
- this.dispatch(nt(l));
3666
+ return d.then((r) => {
3667
+ this.dispatch(nt(r));
3637
3668
  }).catch(() => {
3638
- this.dispatch(ls(c.map(({ uuid: l }) => l)));
3669
+ this.dispatch(ls(c.map(({ uuid: r }) => r)));
3639
3670
  }), [c, d];
3640
3671
  }
3641
3672
  async bulkUpdate(e, s) {
@@ -3671,7 +3702,7 @@ class YA extends I {
3671
3702
  }), n;
3672
3703
  }
3673
3704
  update(e) {
3674
- const { store: s } = this.client, i = To(e.uuid)(s.getState());
3705
+ const { store: s } = this.client, i = Sr(e.uuid)(s.getState());
3675
3706
  if (!i) throw new Error(`No asset stage with uuid ${e.uuid} found in the store`);
3676
3707
  const n = {
3677
3708
  ...i,
@@ -3694,7 +3725,7 @@ class YA extends I {
3694
3725
  return a.then((c) => {
3695
3726
  this.dispatch(us(c));
3696
3727
  }).catch(() => {
3697
- this.dispatch(go(i));
3728
+ this.dispatch(br(i));
3698
3729
  }), [n, a];
3699
3730
  }
3700
3731
  async refreshStore(e) {
@@ -3708,20 +3739,20 @@ class YA extends I {
3708
3739
  blockers: [],
3709
3740
  blocks: []
3710
3741
  });
3711
- this.dispatch(bo(s));
3742
+ this.dispatch(Ar(s));
3712
3743
  }
3713
3744
  }
3714
- class JA extends _e {
3745
+ class QA extends _e {
3715
3746
  constructor() {
3716
3747
  super(...arguments);
3717
3748
  y(this, "name", "Asset Type Attachment");
3718
3749
  y(this, "url", "/asset-type-attachments");
3719
3750
  y(this, "addAttachments", fn);
3720
- y(this, "updateAttachments", Io);
3751
+ y(this, "updateAttachments", Or);
3721
3752
  y(this, "removeAttachments", yn);
3722
- y(this, "removeAttachment", Fo);
3723
- y(this, "setAttachment", Oo);
3724
- y(this, "selectAttachment", wo);
3753
+ y(this, "removeAttachment", Ir);
3754
+ y(this, "setAttachment", _r);
3755
+ y(this, "selectAttachment", vr);
3725
3756
  }
3726
3757
  buildOfflineAttachment(s) {
3727
3758
  return O({
@@ -3758,15 +3789,15 @@ class JA extends _e {
3758
3789
  blocks: [],
3759
3790
  blockers: []
3760
3791
  });
3761
- this.dispatch(_o(i));
3792
+ this.dispatch(Rr(i));
3762
3793
  }
3763
3794
  }
3764
- class QA extends E {
3795
+ class XA extends E {
3765
3796
  async bulkAdd(e) {
3766
3797
  var l;
3767
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
3768
- for (const o of e) {
3769
- const { fieldsRevisionUuid: r, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
3798
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
3799
+ for (const r of e) {
3800
+ const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
3770
3801
  f.sha1 in n || (n[f.sha1] = f);
3771
3802
  const S = O({
3772
3803
  file: URL.createObjectURL(m),
@@ -3774,7 +3805,7 @@ class QA extends E {
3774
3805
  file_name: m.name,
3775
3806
  file_sha1: f.sha1,
3776
3807
  created_by: i,
3777
- fields_revision: r,
3808
+ fields_revision: o,
3778
3809
  submitted_at: s,
3779
3810
  field_identifier: h
3780
3811
  });
@@ -3785,11 +3816,11 @@ class QA extends E {
3785
3816
  field_identifier: h,
3786
3817
  file_extension: f.extension,
3787
3818
  file_sha1: f.sha1,
3788
- fields_revision: r
3819
+ fields_revision: o
3789
3820
  };
3790
3821
  c.push(R);
3791
3822
  }
3792
- this.dispatch(jo(a));
3823
+ this.dispatch(qr(a));
3793
3824
  const d = this.enqueueRequest({
3794
3825
  description: "Add asset type fields attachments",
3795
3826
  method: u.POST,
@@ -3799,18 +3830,18 @@ class QA extends E {
3799
3830
  attachments: c,
3800
3831
  files: Object.values(n)
3801
3832
  },
3802
- blockers: a.map((o) => o.fields_revision),
3803
- blocks: a.map((o) => o.uuid)
3833
+ blockers: a.map((r) => r.fields_revision),
3834
+ blocks: a.map((r) => r.uuid)
3804
3835
  });
3805
- return d.then((o) => {
3806
- this.processPresignedUrls(o.presigned_urls), this.dispatch(Mo(o.attachments));
3836
+ return d.then((r) => {
3837
+ this.processPresignedUrls(r.presigned_urls), this.dispatch(jr(r.attachments));
3807
3838
  }).catch(() => {
3808
3839
  this.dispatch(
3809
- Co(
3810
- a.map((o) => o.uuid)
3840
+ Mr(
3841
+ a.map((r) => r.uuid)
3811
3842
  )
3812
3843
  );
3813
- }), [a, d.then(({ attachments: o }) => o)];
3844
+ }), [a, d.then(({ attachments: r }) => r)];
3814
3845
  }
3815
3846
  async refreshStore(e) {
3816
3847
  const s = await this.enqueueRequest({
@@ -3823,18 +3854,18 @@ class QA extends E {
3823
3854
  blockers: [e],
3824
3855
  blocks: []
3825
3856
  });
3826
- this.dispatch(qo(s));
3857
+ this.dispatch(kr(s));
3827
3858
  }
3828
3859
  }
3829
- class XA extends I {
3860
+ class ZA extends I {
3830
3861
  add(e) {
3831
3862
  var d;
3832
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3863
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3833
3864
  ...e,
3834
3865
  created_by: i,
3835
3866
  submitted_at: n
3836
3867
  });
3837
- this.dispatch($o(a));
3868
+ this.dispatch(Ur(a));
3838
3869
  const c = this.enqueueRequest({
3839
3870
  description: "Add Asset Type Fields",
3840
3871
  method: u.POST,
@@ -3844,9 +3875,9 @@ class XA extends I {
3844
3875
  blocks: [a.uuid]
3845
3876
  });
3846
3877
  return c.then((l) => {
3847
- this.dispatch(Vo(l));
3878
+ this.dispatch($r(l));
3848
3879
  }).catch((l) => {
3849
- throw this.dispatch(Go(a.uuid)), l;
3880
+ throw this.dispatch(Vr(a.uuid)), l;
3850
3881
  }), [a, c];
3851
3882
  }
3852
3883
  async refreshStore(e) {
@@ -3860,16 +3891,16 @@ class XA extends I {
3860
3891
  blockers: [],
3861
3892
  blocks: []
3862
3893
  });
3863
- this.dispatch(Uo(s));
3894
+ this.dispatch(zr(s));
3864
3895
  }
3865
3896
  }
3866
- class ZA extends E {
3897
+ class eb extends E {
3867
3898
  async bulkAdd(e, s) {
3868
- var o;
3869
- const i = (/* @__PURE__ */ new Date()).toISOString(), n = (o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.uuid, a = $e(e, s ?? e.length), c = [], d = [];
3870
- for (const r of a) {
3899
+ var r;
3900
+ const i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id, a = $e(e, s ?? e.length), c = [], d = [];
3901
+ for (const o of a) {
3871
3902
  const h = {}, m = [];
3872
- for (const f of r) {
3903
+ for (const f of o) {
3873
3904
  const { fieldValuesUuid: S, fieldIdentifier: R, file: g } = f, F = await this.getFilePayload(g);
3874
3905
  F.sha1 in h || (h[F.sha1] = F);
3875
3906
  const k = O({
@@ -3900,31 +3931,31 @@ class ZA extends E {
3900
3931
  });
3901
3932
  }
3902
3933
  this.dispatch(pt(c));
3903
- const l = d.map((r) => this.enqueueRequest({
3934
+ const l = d.map((o) => this.enqueueRequest({
3904
3935
  description: "Add asset type field values attachments",
3905
3936
  method: u.POST,
3906
3937
  url: "/asset-type-field-values-attachments/bulk/",
3907
- payload: r,
3908
- blockers: r.attachments.map((h) => h.field_values),
3909
- blocks: r.attachments.map((h) => h.uuid)
3938
+ payload: o,
3939
+ blockers: o.attachments.map((h) => h.field_values),
3940
+ blocks: o.attachments.map((h) => h.uuid)
3910
3941
  }));
3911
- return Promise.all(l).then((r) => {
3912
- for (const m of r) this.processPresignedUrls(m.presigned_urls);
3913
- const h = r.flatMap((m) => m.attachments);
3914
- this.dispatch(Ho(h));
3915
- }).catch((r) => {
3942
+ return Promise.all(l).then((o) => {
3943
+ for (const m of o) this.processPresignedUrls(m.presigned_urls);
3944
+ const h = o.flatMap((m) => m.attachments);
3945
+ this.dispatch(Nr(h));
3946
+ }).catch((o) => {
3916
3947
  throw this.dispatch(
3917
3948
  ft(
3918
3949
  c.map((h) => h.uuid)
3919
3950
  )
3920
- ), r;
3951
+ ), o;
3921
3952
  }), [
3922
3953
  c,
3923
- l.map((r) => r.then(({ attachments: h }) => h))
3954
+ l.map((o) => o.then(({ attachments: h }) => h))
3924
3955
  ];
3925
3956
  }
3926
3957
  async bulkDelete(e) {
3927
- const { store: s } = this.client, i = s.getState(), n = Ko(e)(i);
3958
+ const { store: s } = this.client, i = s.getState(), n = Wr(e)(i);
3928
3959
  this.dispatch(ft(e));
3929
3960
  try {
3930
3961
  await this.enqueueRequest({
@@ -3950,21 +3981,21 @@ class ZA extends E {
3950
3981
  blockers: [],
3951
3982
  blocks: []
3952
3983
  });
3953
- this.dispatch(No(s));
3984
+ this.dispatch(Br(s));
3954
3985
  }
3955
3986
  }
3956
- class eb extends I {
3987
+ class tb extends I {
3957
3988
  add(e) {
3958
3989
  var c;
3959
3990
  const { store: s } = this.client, i = s.getState(), n = O({
3960
3991
  ...e,
3961
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid,
3992
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id,
3962
3993
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
3963
3994
  }), a = this.enqueueRequest({
3964
3995
  description: "Add asset type field values",
3965
3996
  method: u.POST,
3966
3997
  url: "/asset-type-field-values/",
3967
- payload: v(n),
3998
+ payload: P(n),
3968
3999
  blockers: [e.asset, e.fields_revision],
3969
4000
  blocks: [n.uuid]
3970
4001
  });
@@ -3973,15 +4004,15 @@ class eb extends I {
3973
4004
  }), [n, a];
3974
4005
  }
3975
4006
  bulkAdd(e, s) {
3976
- var o;
4007
+ var r;
3977
4008
  const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = st(e.values), a = [], c = $e(e.payloads, s ?? e.payloads.length), d = [];
3978
- for (const r of c) {
4009
+ for (const o of c) {
3979
4010
  const h = [];
3980
- for (const m of r) {
4011
+ for (const m of o) {
3981
4012
  const f = O({
3982
4013
  ...m,
3983
4014
  values: st(m.values).values,
3984
- created_by: (o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.uuid,
4015
+ created_by: (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id,
3985
4016
  submitted_at: i
3986
4017
  });
3987
4018
  a.push(f), h.push({
@@ -3998,23 +4029,23 @@ class eb extends I {
3998
4029
  field_values: h
3999
4030
  });
4000
4031
  }
4001
- this.dispatch(Xo(a));
4032
+ this.dispatch(Qr(a));
4002
4033
  const l = [];
4003
- for (const r of d) {
4004
- const h = r.field_values.map((R) => R.asset), m = r.field_values.map((R) => R.fields_revision), f = r.field_values.map((R) => R.uuid), S = this.enqueueRequest({
4034
+ for (const o of d) {
4035
+ const h = o.field_values.map((R) => R.asset), m = o.field_values.map((R) => R.fields_revision), f = o.field_values.map((R) => R.uuid), S = this.enqueueRequest({
4005
4036
  description: "Bulk add asset type field values",
4006
4037
  method: u.POST,
4007
4038
  url: "/asset-type-field-values/bulk/",
4008
- payload: r,
4039
+ payload: o,
4009
4040
  blockers: [...h, ...m],
4010
4041
  blocks: f
4011
4042
  });
4012
4043
  l.push(S);
4013
4044
  }
4014
- return Promise.all(l).then((r) => {
4015
- this.dispatch(Zo(r.flat()));
4045
+ return Promise.all(l).then((o) => {
4046
+ this.dispatch(Xr(o.flat()));
4016
4047
  }).catch(() => {
4017
- this.dispatch(er(a.map((r) => r.uuid)));
4048
+ this.dispatch(Zr(a.map((o) => o.uuid)));
4018
4049
  }), [a, l];
4019
4050
  }
4020
4051
  update(e) {
@@ -4048,7 +4079,7 @@ class eb extends I {
4048
4079
  const { store: s } = this.client, i = s.getState(), n = Ss(e)(i);
4049
4080
  if (!n)
4050
4081
  throw new Error(`Expected submission with uuid ${e} to exist`);
4051
- const a = Yo(e)(i);
4082
+ const a = Kr(e)(i);
4052
4083
  this.dispatch(gs(e)), this.dispatch(ft(a.map((c) => c.uuid)));
4053
4084
  try {
4054
4085
  await this.enqueueRequest({
@@ -4073,12 +4104,13 @@ class eb extends I {
4073
4104
  blockers: [],
4074
4105
  blocks: []
4075
4106
  });
4076
- this.dispatch(Qo(s));
4107
+ this.dispatch(Jr(s));
4077
4108
  }
4078
4109
  }
4079
- class tb extends I {
4110
+ class sb extends I {
4080
4111
  add(e) {
4081
- const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4112
+ var d;
4113
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4082
4114
  ...e,
4083
4115
  created_by: i,
4084
4116
  submitted_at: n
@@ -4088,12 +4120,12 @@ class tb extends I {
4088
4120
  description: "Create asset type",
4089
4121
  method: u.POST,
4090
4122
  url: "/asset-types/",
4091
- payload: v(a),
4123
+ payload: P(a),
4092
4124
  blockers: [],
4093
4125
  blocks: [a.uuid]
4094
4126
  });
4095
- return c.then((d) => {
4096
- this.dispatch(We(d));
4127
+ return c.then((l) => {
4128
+ this.dispatch(We(l));
4097
4129
  }).catch(() => {
4098
4130
  this.dispatch(_s(a.uuid));
4099
4131
  }), [a, c];
@@ -4130,15 +4162,15 @@ class tb extends I {
4130
4162
  const { store: s } = this.client, i = s.getState(), n = Os(e)(i);
4131
4163
  if (!n)
4132
4164
  throw new Error(`Expected asset type with uuid ${e} to exist`);
4133
- const a = un(e)(i), c = Eo(e)(i);
4134
- return this.dispatch(_s(e)), this.dispatch(ro(a.map((d) => d.uuid))), this.dispatch(yn(c.map(({ uuid: d }) => d))), this.enqueueRequest({
4165
+ const a = un(e)(i), c = wr(e)(i);
4166
+ return this.dispatch(_s(e)), this.dispatch(or(a.map((d) => d.uuid))), this.dispatch(yn(c.map(({ uuid: d }) => d))), this.enqueueRequest({
4135
4167
  description: "Delete asset type",
4136
4168
  method: u.DELETE,
4137
4169
  url: `/asset-types/${e}/`,
4138
4170
  blockers: [e],
4139
4171
  blocks: []
4140
4172
  }).catch((d) => {
4141
- throw this.dispatch(Rs(n)), this.dispatch(rn(a)), this.dispatch(fn(c)), d;
4173
+ throw this.dispatch(Rs(n)), this.dispatch(on(a)), this.dispatch(fn(c)), d;
4142
4174
  });
4143
4175
  }
4144
4176
  async refreshStore(e) {
@@ -4152,34 +4184,34 @@ class tb extends I {
4152
4184
  blockers: [],
4153
4185
  blocks: []
4154
4186
  });
4155
- this.dispatch(ir(s));
4187
+ this.dispatch(so(s));
4156
4188
  }
4157
4189
  }
4158
- class sb extends I {
4190
+ class ib extends I {
4159
4191
  add(e) {
4160
4192
  var d;
4161
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4193
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4162
4194
  ...e,
4163
4195
  created_by: i,
4164
4196
  submitted_at: n
4165
4197
  });
4166
- this.dispatch(vs(a));
4198
+ this.dispatch(Ps(a));
4167
4199
  const c = this.enqueueRequest({
4168
4200
  description: "Create Category",
4169
4201
  method: u.POST,
4170
4202
  url: "/categories/",
4171
- payload: v(a),
4203
+ payload: P(a),
4172
4204
  blockers: [e.project],
4173
4205
  blocks: [a.uuid]
4174
4206
  });
4175
4207
  return [a, c];
4176
4208
  }
4177
4209
  update(e) {
4178
- const s = this.client.store.getState(), i = Ps(e.uuid)(s);
4210
+ const s = this.client.store.getState(), i = vs(e.uuid)(s);
4179
4211
  if (!i)
4180
4212
  throw new Error(`Expected an existing category with uuid ${e.uuid}`);
4181
4213
  const n = { ...i, ...e };
4182
- this.dispatch(rr(n));
4214
+ this.dispatch(ro(n));
4183
4215
  const a = this.enqueueRequest({
4184
4216
  description: "Edit Category",
4185
4217
  method: u.PATCH,
@@ -4191,10 +4223,10 @@ class sb extends I {
4191
4223
  return [n, a];
4192
4224
  }
4193
4225
  remove(e) {
4194
- const { store: s } = this.client, i = Ps(e)(s.getState());
4226
+ const { store: s } = this.client, i = vs(e)(s.getState());
4195
4227
  if (!i)
4196
4228
  throw new Error(`No category with uuid ${e} found in the store`);
4197
- this.dispatch(dr(e));
4229
+ this.dispatch(oo(e));
4198
4230
  const n = this.enqueueRequest({
4199
4231
  description: "Delete Category",
4200
4232
  method: u.DELETE,
@@ -4203,7 +4235,7 @@ class sb extends I {
4203
4235
  blocks: []
4204
4236
  });
4205
4237
  return n.catch(() => {
4206
- this.dispatch(vs(i));
4238
+ this.dispatch(Ps(i));
4207
4239
  }), n;
4208
4240
  }
4209
4241
  async refreshStore(e) {
@@ -4217,20 +4249,20 @@ class sb extends I {
4217
4249
  blocks: [],
4218
4250
  blockers: []
4219
4251
  });
4220
- this.dispatch(or(s));
4252
+ this.dispatch(co(s));
4221
4253
  }
4222
4254
  }
4223
- class ib extends _e {
4255
+ class nb extends _e {
4224
4256
  constructor() {
4225
4257
  super(...arguments);
4226
4258
  y(this, "name", "Document Attachment");
4227
4259
  y(this, "url", "/document-attachments");
4228
- y(this, "addAttachments", hr);
4229
- y(this, "updateAttachments", pr);
4230
- y(this, "removeAttachments", yr);
4231
- y(this, "removeAttachment", fr);
4232
- y(this, "setAttachment", mr);
4233
- y(this, "selectAttachment", gr);
4260
+ y(this, "addAttachments", ho);
4261
+ y(this, "updateAttachments", po);
4262
+ y(this, "removeAttachments", yo);
4263
+ y(this, "removeAttachment", fo);
4264
+ y(this, "setAttachment", mo);
4265
+ y(this, "selectAttachment", go);
4234
4266
  }
4235
4267
  buildOfflineAttachment(s) {
4236
4268
  return O({
@@ -4253,10 +4285,10 @@ class ib extends _e {
4253
4285
  // NOTE: overriding the method from BaseAttachmentService since document attachments get vectorized
4254
4286
  async bulkAdd(s) {
4255
4287
  var h;
4256
- const { store: i } = this.client, n = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.uuid, a = (/* @__PURE__ */ new Date()).toISOString(), c = [], d = [], l = {}, o = {};
4288
+ const { store: i } = this.client, n = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.id, a = (/* @__PURE__ */ new Date()).toISOString(), c = [], d = [], l = {}, r = {};
4257
4289
  for (const m of s) {
4258
4290
  const { documentUuid: f, file: S } = m, R = await this.getFilePayload(S);
4259
- R.sha1 in l || (l[R.sha1] = R, o[R.sha1] = []);
4291
+ R.sha1 in l || (l[R.sha1] = R, r[R.sha1] = []);
4260
4292
  const g = this.buildOfflineAttachment({
4261
4293
  file: S,
4262
4294
  file_sha1: R.sha1,
@@ -4272,10 +4304,10 @@ class ib extends _e {
4272
4304
  file_extension: R.extension,
4273
4305
  description: g.description,
4274
4306
  document: f
4275
- }), o[R.sha1].push(g.uuid);
4307
+ }), r[R.sha1].push(g.uuid);
4276
4308
  }
4277
4309
  this.dispatch(this.addAttachments(c));
4278
- const r = this.enqueueRequest({
4310
+ const o = this.enqueueRequest({
4279
4311
  description: "Attach files to document",
4280
4312
  method: u.POST,
4281
4313
  url: "/document-attachments/bulk/",
@@ -4287,18 +4319,18 @@ class ib extends _e {
4287
4319
  blocks: c.map((m) => m.uuid),
4288
4320
  blockers: c.map((m) => m.file_sha1)
4289
4321
  });
4290
- return r.then(({ attachments: m, presigned_urls: f }) => {
4322
+ return o.then(({ attachments: m, presigned_urls: f }) => {
4291
4323
  this.dispatch(this.updateAttachments(m));
4292
4324
  const S = this.processPresignedUrls(f);
4293
4325
  for (const [R, g] of Object.entries(S))
4294
4326
  g.then(() => {
4295
- const F = o[R];
4327
+ const F = r[R];
4296
4328
  for (const k of F)
4297
4329
  this.makeReadable(k);
4298
4330
  });
4299
4331
  }).catch(() => {
4300
4332
  this.dispatch(this.removeAttachments(c.map((m) => m.uuid)));
4301
- }), [c, r.then(({ attachments: m }) => m)];
4333
+ }), [c, o.then(({ attachments: m }) => m)];
4302
4334
  }
4303
4335
  async delete(s) {
4304
4336
  return this._delete(s);
@@ -4324,7 +4356,7 @@ class ib extends _e {
4324
4356
  blocks: [],
4325
4357
  blockers: []
4326
4358
  });
4327
- this.dispatch(lr(n));
4359
+ this.dispatch(lo(n));
4328
4360
  const a = await this.enqueueRequest({
4329
4361
  description: "Get document attachments",
4330
4362
  method: u.GET,
@@ -4335,20 +4367,20 @@ class ib extends _e {
4335
4367
  this.dispatch(this.addAttachments(a));
4336
4368
  }
4337
4369
  }
4338
- class nb extends I {
4370
+ class ab extends I {
4339
4371
  add(e) {
4340
4372
  var d;
4341
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4373
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4342
4374
  ...e,
4343
4375
  created_by: i,
4344
4376
  submitted_at: n
4345
4377
  });
4346
- this.dispatch(Rr([a]));
4378
+ this.dispatch(Ro([a]));
4347
4379
  const c = this.enqueueRequest({
4348
4380
  description: "Create Document",
4349
4381
  method: u.POST,
4350
4382
  url: "/documents/",
4351
- payload: v(a),
4383
+ payload: P(a),
4352
4384
  queryParams: {
4353
4385
  parent_document: a.parent_document ?? void 0
4354
4386
  },
@@ -4390,14 +4422,14 @@ class nb extends I {
4390
4422
  `attempting to move a document with uuid ${e} that does not exist in store.documents`
4391
4423
  );
4392
4424
  if (c.push(d), d.parent_document && c.push(a[d.parent_document]), s) {
4393
- const o = a[s];
4394
- if (!o)
4425
+ const r = a[s];
4426
+ if (!r)
4395
4427
  throw new Error(
4396
4428
  `attempting to move a document to target with uuid ${s} that does not exist in store.documents`
4397
4429
  );
4398
- c.push(o), o.parent_document && c.push(a[o.parent_document]);
4430
+ c.push(r), r.parent_document && c.push(a[r.parent_document]);
4399
4431
  }
4400
- this.dispatch(_r({ documentId: e, targetDocumentId: s, position: i }));
4432
+ this.dispatch(_o({ documentId: e, targetDocumentId: s, position: i }));
4401
4433
  const l = this.enqueueRequest({
4402
4434
  description: "Move Document",
4403
4435
  method: u.PATCH,
@@ -4409,14 +4441,14 @@ class nb extends I {
4409
4441
  blockers: [e],
4410
4442
  blocks: []
4411
4443
  });
4412
- return l.then((o) => {
4413
- this.dispatch(ye(o));
4444
+ return l.then((r) => {
4445
+ this.dispatch(ye(r));
4414
4446
  }).catch(() => {
4415
4447
  this.dispatch(ye(c));
4416
4448
  }), l;
4417
4449
  }
4418
4450
  delete(e) {
4419
- const { store: s } = this.client, i = De(s.getState()), n = Ir(e)(s.getState());
4451
+ const { store: s } = this.client, i = De(s.getState()), n = Io(e)(s.getState());
4420
4452
  if (!n)
4421
4453
  throw new Error(`attempting to delete a document with uuid ${e} that does not exist in store.documents`);
4422
4454
  const a = n.parent_document ? i[n.parent_document] : void 0;
@@ -4448,10 +4480,10 @@ class nb extends I {
4448
4480
  blockers: [],
4449
4481
  blocks: []
4450
4482
  });
4451
- this.dispatch(Tr([...await i, ...await n]));
4483
+ this.dispatch(To([...await i, ...await n]));
4452
4484
  }
4453
4485
  }
4454
- class ab extends I {
4486
+ class cb extends I {
4455
4487
  async add(e, s) {
4456
4488
  return this.enqueueRequest({
4457
4489
  description: "Add email domain to organization",
@@ -4463,14 +4495,14 @@ class ab extends I {
4463
4495
  });
4464
4496
  }
4465
4497
  async remove(e) {
4466
- return this.dispatch(Er(e.uuid)), this.enqueueRequest({
4498
+ return this.dispatch(Eo(e.uuid)), this.enqueueRequest({
4467
4499
  description: "Remove email domain from organization",
4468
4500
  method: u.DELETE,
4469
4501
  url: `/organizations/${e.organization}/email-domains/${e.uuid}/`,
4470
4502
  blockers: [e.domain],
4471
4503
  blocks: []
4472
4504
  }).catch((s) => {
4473
- throw this.dispatch(wr(e)), s;
4505
+ throw this.dispatch(wo(e)), s;
4474
4506
  });
4475
4507
  }
4476
4508
  async refreshStore(e) {
@@ -4481,10 +4513,10 @@ class ab extends I {
4481
4513
  blockers: [e],
4482
4514
  blocks: []
4483
4515
  });
4484
- this.dispatch(Pr(s));
4516
+ this.dispatch(vo(s));
4485
4517
  }
4486
4518
  }
4487
- class cb extends I {
4519
+ class rb extends I {
4488
4520
  async getVerificationCode(e) {
4489
4521
  return this.enqueueRequest({
4490
4522
  description: "Get verification code",
@@ -4507,9 +4539,9 @@ class cb extends I {
4507
4539
  });
4508
4540
  }
4509
4541
  }
4510
- const Qe = {}, rt = /* @__PURE__ */ new Set();
4542
+ const Qe = {}, ot = /* @__PURE__ */ new Set();
4511
4543
  let Xe = 0, dt = 0, ut = 0;
4512
- const vh = 20;
4544
+ const Ph = 20;
4513
4545
  class ob extends I {
4514
4546
  constructor() {
4515
4547
  super(...arguments);
@@ -4538,7 +4570,7 @@ class ob extends I {
4538
4570
  blockers: [],
4539
4571
  blocks: [`s3-${n}`]
4540
4572
  });
4541
- return "url" in a && this.dispatch(Cr({ sha1: s, ...a })), a;
4573
+ return "url" in a && this.dispatch(Co({ sha1: s, ...a })), a;
4542
4574
  }
4543
4575
  /**
4544
4576
  * Adds a file to the cache using the sha1 hash as the key and returns the sha1 hash.
@@ -4547,7 +4579,7 @@ class ob extends I {
4547
4579
  * @param sha1 The sha1 hash of the file to cache.
4548
4580
  */
4549
4581
  async addCache(s, i) {
4550
- if (rt.has(i))
4582
+ if (ot.has(i))
4551
4583
  return;
4552
4584
  if (!s.type) {
4553
4585
  const c = s.name.split("."), d = c[c.length - 1];
@@ -4556,19 +4588,19 @@ class ob extends I {
4556
4588
  if (!s.name || !s.size || !s.type)
4557
4589
  throw new Error("Cannot add files to cache that do not have a name, size and type.");
4558
4590
  const n = await this._dbPromise;
4559
- !!await n.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), Xe++) : (await n.put("files", s, i), dt++), rt.add(i), ut++, ut % vh === 0 && console.debug(
4591
+ !!await n.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), Xe++) : (await n.put("files", s, i), dt++), ot.add(i), ut++, ut % Ph === 0 && console.debug(
4560
4592
  `File cache summary: ${Xe} hits and ${dt} misses, ${Xe / (Xe + dt) * 100}% hit rate over ${ut} calls to addCache.`
4561
4593
  );
4562
4594
  }
4563
4595
  async removeCache(s) {
4564
- await (await this._dbPromise).delete("files", s), rt.delete(s);
4596
+ await (await this._dbPromise).delete("files", s), ot.delete(s);
4565
4597
  }
4566
4598
  async fetchCache(s) {
4567
4599
  return (await this._dbPromise).get("files", s);
4568
4600
  }
4569
4601
  async getOrRenewUploadUrl(s) {
4570
4602
  const i = this.client.store.getState();
4571
- return Dr(s)(i) ?? await this.renewUploadUrl(s);
4603
+ return Do(s)(i) ?? await this.renewUploadUrl(s);
4572
4604
  }
4573
4605
  /** Ensure the file has been added to the file cache before calling `uploadFileToS3()` */
4574
4606
  async uploadFileToS3(s) {
@@ -4615,11 +4647,11 @@ class ob extends I {
4615
4647
  return c;
4616
4648
  }
4617
4649
  if (s.startsWith("blob:")) {
4618
- const r = await lc(s), h = new File([r], n ?? i, { type: r.type });
4650
+ const o = await lc(s), h = new File([o], n ?? i, { type: o.type });
4619
4651
  return await this.addCache(h, i), h;
4620
4652
  }
4621
4653
  let d = Qe[a], l = !0;
4622
- d ? l = !1 : (d = new Promise((r) => {
4654
+ d ? l = !1 : (d = new Promise((o) => {
4623
4655
  this.enqueueRequest({
4624
4656
  description: "Download file",
4625
4657
  method: u.GET,
@@ -4633,19 +4665,19 @@ class ob extends I {
4633
4665
  blocks: [i]
4634
4666
  }).then((h) => {
4635
4667
  const m = new File([h], n ?? i, { type: h.type });
4636
- r(m);
4668
+ o(m);
4637
4669
  });
4638
4670
  }), Qe[a] = d);
4639
- let o;
4671
+ let r;
4640
4672
  try {
4641
- o = await d;
4642
- } catch (r) {
4643
- throw l && r instanceof j && delete Qe[a], r;
4673
+ r = await d;
4674
+ } catch (o) {
4675
+ throw l && o instanceof j && delete Qe[a], o;
4644
4676
  }
4645
4677
  if (l) {
4646
- const r = await Ce(o);
4647
- if (r !== i) {
4648
- const f = `The hash of the file returned from the server (${r}) does not match the
4678
+ const o = await Ce(r);
4679
+ if (o !== i) {
4680
+ const f = `The hash of the file returned from the server (${o}) does not match the
4649
4681
  expected hash (${i}). This can happen if you're using a local development server and the
4650
4682
  isExternalUrl flag in the request details is set to true, because instead of requesting the local
4651
4683
  REST API, you will be requesting localhost:80 (where this app runs), resulting in a transformed blob
@@ -4654,25 +4686,25 @@ class ob extends I {
4654
4686
  external URLs and therefore not prepended with VITE_API_URL.`;
4655
4687
  throw new Error(f);
4656
4688
  }
4657
- const h = o.type.split("/")[1];
4689
+ const h = r.type.split("/")[1];
4658
4690
  if (!h)
4659
4691
  throw new Error("File has no extension");
4660
- const m = n ?? r + "." + h;
4661
- if (o = uc(o, m), !o.name)
4692
+ const m = n ?? o + "." + h;
4693
+ if (r = uc(r, m), !r.name)
4662
4694
  throw new Error("Failed to set file's name");
4663
- await this.addCache(o, r), Qe[a] = new Promise((f) => {
4664
- f(o);
4695
+ await this.addCache(r, o), Qe[a] = new Promise((f) => {
4696
+ f(r);
4665
4697
  });
4666
4698
  }
4667
- return o;
4699
+ return r;
4668
4700
  }
4669
4701
  }
4670
- class rb extends E {
4702
+ class db extends E {
4671
4703
  async bulkAdd(e) {
4672
4704
  var l;
4673
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
4674
- for (const o of e) {
4675
- const { revisionUuid: r, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
4705
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
4706
+ for (const r of e) {
4707
+ const { revisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
4676
4708
  f.sha1 in n || (n[f.sha1] = f);
4677
4709
  const S = O({
4678
4710
  file: URL.createObjectURL(m),
@@ -4680,7 +4712,7 @@ class rb extends E {
4680
4712
  file_name: m.name,
4681
4713
  file_sha1: f.sha1,
4682
4714
  created_by: i,
4683
- form_revision: r,
4715
+ form_revision: o,
4684
4716
  submitted_at: s,
4685
4717
  field_identifier: h
4686
4718
  });
@@ -4691,11 +4723,11 @@ class rb extends E {
4691
4723
  field_identifier: h,
4692
4724
  file_extension: f.extension,
4693
4725
  file_sha1: f.sha1,
4694
- form_revision: r
4726
+ form_revision: o
4695
4727
  };
4696
4728
  c.push(R);
4697
4729
  }
4698
- this.dispatch(Ur(a));
4730
+ this.dispatch(Uo(a));
4699
4731
  const d = this.enqueueRequest({
4700
4732
  description: "Attach files to form revision",
4701
4733
  method: u.POST,
@@ -4705,16 +4737,16 @@ class rb extends E {
4705
4737
  attachments: c,
4706
4738
  files: Object.values(n)
4707
4739
  },
4708
- blockers: a.map((o) => o.form_revision),
4709
- blocks: a.map((o) => o.uuid)
4740
+ blockers: a.map((r) => r.form_revision),
4741
+ blocks: a.map((r) => r.uuid)
4710
4742
  });
4711
- return d.then((o) => {
4712
- this.processPresignedUrls(o.presigned_urls), this.dispatch($r(o.attachments));
4743
+ return d.then((r) => {
4744
+ this.processPresignedUrls(r.presigned_urls), this.dispatch($o(r.attachments));
4713
4745
  }).catch(() => {
4714
4746
  this.dispatch(
4715
- Vr(a.map((o) => o.uuid))
4747
+ Vo(a.map((r) => r.uuid))
4716
4748
  );
4717
- }), [a, d.then(({ attachments: o }) => o)];
4749
+ }), [a, d.then(({ attachments: r }) => r)];
4718
4750
  }
4719
4751
  async refreshStore(e) {
4720
4752
  const s = await this.enqueueRequest({
@@ -4727,13 +4759,13 @@ class rb extends E {
4727
4759
  blockers: [e],
4728
4760
  blocks: []
4729
4761
  });
4730
- this.dispatch(zr(s));
4762
+ this.dispatch(zo(s));
4731
4763
  }
4732
4764
  }
4733
- class db extends E {
4765
+ class ub extends E {
4734
4766
  add(e) {
4735
4767
  var d;
4736
- const { store: s } = this.client, n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, a = O({
4768
+ const { store: s } = this.client, n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, a = O({
4737
4769
  ...e,
4738
4770
  created_by: n,
4739
4771
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
@@ -4743,12 +4775,12 @@ class db extends E {
4743
4775
  description: "Create form revision",
4744
4776
  method: u.POST,
4745
4777
  url: "/form-revisions/",
4746
- payload: v(a),
4778
+ payload: P(a),
4747
4779
  blockers: [e.form],
4748
4780
  blocks: [a.uuid]
4749
4781
  });
4750
4782
  return c.then((l) => {
4751
- this.dispatch(Nr(l));
4783
+ this.dispatch(No(l));
4752
4784
  }).catch(() => {
4753
4785
  this.dispatch(Cn(a.uuid));
4754
4786
  }), [a, c];
@@ -4764,10 +4796,10 @@ class db extends E {
4764
4796
  blockers: [e],
4765
4797
  blocks: []
4766
4798
  });
4767
- this.dispatch(Hr(s));
4799
+ this.dispatch(Ho(s));
4768
4800
  }
4769
4801
  }
4770
- const ub = async (t) => {
4802
+ const lb = async (t) => {
4771
4803
  const e = {}, s = [];
4772
4804
  for (const i of t) {
4773
4805
  if (i.type !== "section")
@@ -4791,10 +4823,10 @@ const ub = async (t) => {
4791
4823
  }
4792
4824
  return { fields: s, images: e };
4793
4825
  };
4794
- class lb extends E {
4826
+ class hb extends E {
4795
4827
  add(e, s) {
4796
- var o;
4797
- const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (o = i.getState().userReducer.currentUser) == null ? void 0 : o.uuid, c = O({
4828
+ var r;
4829
+ const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (r = i.getState().userReducer.currentUser) == null ? void 0 : r.id, c = O({
4798
4830
  ...e,
4799
4831
  submitted_at: n,
4800
4832
  created_by: a
@@ -4810,7 +4842,7 @@ class lb extends E {
4810
4842
  method: u.POST,
4811
4843
  url: "/forms/",
4812
4844
  payload: {
4813
- ...v(c),
4845
+ ...P(c),
4814
4846
  initial_revision: {
4815
4847
  uuid: d.uuid,
4816
4848
  submitted_at: d.submitted_at,
@@ -4822,8 +4854,8 @@ class lb extends E {
4822
4854
  blockers: [],
4823
4855
  blocks: [c.uuid, d.uuid]
4824
4856
  });
4825
- return l.catch((r) => {
4826
- throw this.dispatch(xs(c.uuid)), this.dispatch(Cn(d.uuid)), r;
4857
+ return l.catch((o) => {
4858
+ throw this.dispatch(xs(c.uuid)), this.dispatch(Cn(d.uuid)), o;
4827
4859
  }), [c, d, l];
4828
4860
  }
4829
4861
  async delete(e) {
@@ -4832,8 +4864,8 @@ class lb extends E {
4832
4864
  throw new Error("Expected form to exist");
4833
4865
  const a = dd(e)(i);
4834
4866
  a.length > 0 && this.dispatch(Ft(a.map(({ uuid: d }) => d)));
4835
- const c = Jr(e)(i);
4836
- c.length > 0 && this.dispatch(Kr(c.map(({ uuid: d }) => d))), this.dispatch(xs(e));
4867
+ const c = Jo(e)(i);
4868
+ c.length > 0 && this.dispatch(Ko(c.map(({ uuid: d }) => d))), this.dispatch(xs(e));
4837
4869
  try {
4838
4870
  return await this.enqueueRequest({
4839
4871
  description: "Delete form",
@@ -4843,7 +4875,7 @@ class lb extends E {
4843
4875
  blocks: []
4844
4876
  });
4845
4877
  } catch (d) {
4846
- throw this.dispatch(Ds(n)), c.length > 0 && this.dispatch(Wr(c)), a.length > 0 && this.dispatch(It(a)), d;
4878
+ throw this.dispatch(Ds(n)), c.length > 0 && this.dispatch(Wo(c)), a.length > 0 && this.dispatch(It(a)), d;
4847
4879
  }
4848
4880
  }
4849
4881
  async refreshStore(e) {
@@ -4857,15 +4889,15 @@ class lb extends E {
4857
4889
  blockers: [e],
4858
4890
  blocks: []
4859
4891
  });
4860
- this.dispatch(Xr(s));
4892
+ this.dispatch(Xo(s));
4861
4893
  }
4862
4894
  }
4863
- class hb extends E {
4895
+ class mb extends E {
4864
4896
  async bulkAdd(e) {
4865
4897
  var l;
4866
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
4867
- for (const o of e) {
4868
- const { submissionUuid: r, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
4898
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
4899
+ for (const r of e) {
4900
+ const { submissionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
4869
4901
  f.sha1 in n || (n[f.sha1] = f);
4870
4902
  const S = O({
4871
4903
  file: URL.createObjectURL(m),
@@ -4873,7 +4905,7 @@ class hb extends E {
4873
4905
  file_name: m.name,
4874
4906
  file_sha1: f.sha1,
4875
4907
  created_by: i,
4876
- form_submission: r,
4908
+ form_submission: o,
4877
4909
  submitted_at: s,
4878
4910
  field_identifier: h
4879
4911
  });
@@ -4884,7 +4916,7 @@ class hb extends E {
4884
4916
  file_sha1: f.sha1,
4885
4917
  file_extension: f.extension,
4886
4918
  field_identifier: h,
4887
- form_submission: r
4919
+ form_submission: o
4888
4920
  };
4889
4921
  c.push(R);
4890
4922
  }
@@ -4898,18 +4930,18 @@ class hb extends E {
4898
4930
  attachments: c,
4899
4931
  files: Object.values(n)
4900
4932
  },
4901
- blockers: a.map((o) => o.form_submission),
4902
- blocks: a.map((o) => o.uuid)
4933
+ blockers: a.map((r) => r.form_submission),
4934
+ blocks: a.map((r) => r.uuid)
4903
4935
  });
4904
- return d.then((o) => {
4905
- this.processPresignedUrls(o.presigned_urls), this.dispatch(id(o.attachments));
4906
- }).catch((o) => {
4936
+ return d.then((r) => {
4937
+ this.processPresignedUrls(r.presigned_urls), this.dispatch(id(r.attachments));
4938
+ }).catch((r) => {
4907
4939
  throw this.dispatch(
4908
4940
  At(
4909
- a.map((r) => r.uuid)
4941
+ a.map((o) => o.uuid)
4910
4942
  )
4911
- ), o;
4912
- }), [a, d.then(({ attachments: o }) => o)];
4943
+ ), r;
4944
+ }), [a, d.then(({ attachments: r }) => r)];
4913
4945
  }
4914
4946
  async bulkDelete(e) {
4915
4947
  const { store: s } = this.client, i = s.getState(), n = nd(e)(i);
@@ -4941,10 +4973,10 @@ class hb extends E {
4941
4973
  this.dispatch(sd(s));
4942
4974
  }
4943
4975
  }
4944
- class mb extends E {
4976
+ class pb extends E {
4945
4977
  async add(e) {
4946
4978
  var h;
4947
- const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), c = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.uuid, d = n.project, l = await this.getFilePayload(i), o = O({
4979
+ const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), c = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.id, d = n.project, l = await this.getFilePayload(i), r = O({
4948
4980
  ...n,
4949
4981
  file_name: i.name,
4950
4982
  file_sha1: l.sha1,
@@ -4952,40 +4984,40 @@ class mb extends E {
4952
4984
  submitted_at: a,
4953
4985
  created_by: c
4954
4986
  });
4955
- this.dispatch(fd(o));
4956
- const r = this.enqueueRequest({
4987
+ this.dispatch(fd(r));
4988
+ const o = this.enqueueRequest({
4957
4989
  description: "Add geo image",
4958
4990
  method: u.POST,
4959
4991
  url: "/geo-images/",
4960
4992
  payload: {
4961
- uuid: o.uuid,
4993
+ uuid: r.uuid,
4962
4994
  submitted_at: a,
4963
- title: o.title,
4964
- description: o.description,
4965
- geo_marker: o.geo_marker,
4966
- canvas_marker: o.canvas_marker,
4967
- sha1: o.file_sha1,
4968
- project: o.project,
4969
- file_name: o.file_name,
4970
- direction: o.direction,
4971
- original_date: o.original_date,
4995
+ title: r.title,
4996
+ description: r.description,
4997
+ geo_marker: r.geo_marker,
4998
+ canvas_marker: r.canvas_marker,
4999
+ sha1: r.file_sha1,
5000
+ project: r.project,
5001
+ file_name: r.file_name,
5002
+ direction: r.direction,
5003
+ original_date: r.original_date,
4972
5004
  file: l
4973
5005
  },
4974
5006
  blocks: [d],
4975
5007
  blockers: [d]
4976
5008
  });
4977
- return r.then((m) => {
5009
+ return o.then((m) => {
4978
5010
  this.processPresignedUrls(m.presigned_urls), this.dispatch(Ke(m.geo_image));
4979
5011
  }).catch(() => {
4980
- this.dispatch(Bs(o.uuid));
4981
- }), [o, r.then((m) => m.geo_image)];
5012
+ this.dispatch(Bs(r.uuid));
5013
+ }), [r, o.then((m) => m.geo_image)];
4982
5014
  }
4983
5015
  async bulkAdd(e, s) {
4984
5016
  var h;
4985
- const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.uuid, c = [], d = [], l = [], o = {};
5017
+ const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.id, c = [], d = [], l = [], r = {};
4986
5018
  for (const m of e) {
4987
5019
  const { file: f, ...S } = m, R = await this.getFilePayload(f);
4988
- R.sha1 in o || (o[R.sha1] = R);
5020
+ R.sha1 in r || (r[R.sha1] = R);
4989
5021
  const g = O({
4990
5022
  ...S,
4991
5023
  file_name: f.name,
@@ -5008,7 +5040,7 @@ class mb extends E {
5008
5040
  });
5009
5041
  }
5010
5042
  this.dispatch(yd(c));
5011
- const r = this.enqueueRequest({
5043
+ const o = this.enqueueRequest({
5012
5044
  description: "Bulk add geo images",
5013
5045
  method: u.POST,
5014
5046
  url: "/geo-images/bulk/",
@@ -5016,16 +5048,16 @@ class mb extends E {
5016
5048
  submitted_at: n,
5017
5049
  project: s,
5018
5050
  geo_images: l,
5019
- files: Object.values(o)
5051
+ files: Object.values(r)
5020
5052
  },
5021
5053
  blocks: [s],
5022
5054
  blockers: d
5023
5055
  });
5024
- return r.then((m) => {
5056
+ return o.then((m) => {
5025
5057
  this.processPresignedUrls(m.presigned_urls), this.dispatch(pd(m.geo_images));
5026
5058
  }).catch(() => {
5027
5059
  this.dispatch(bd(d));
5028
- }), [c, r.then((m) => m.geo_images)];
5060
+ }), [c, o.then((m) => m.geo_images)];
5029
5061
  }
5030
5062
  update(e) {
5031
5063
  const { store: s } = this.client, i = s.getState(), n = Ns(e.uuid)(i);
@@ -5074,10 +5106,10 @@ class mb extends E {
5074
5106
  this.dispatch(md(s));
5075
5107
  }
5076
5108
  }
5077
- class pb extends I {
5109
+ class fb extends I {
5078
5110
  add(e) {
5079
5111
  var d;
5080
- const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, a = O({
5112
+ const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, a = O({
5081
5113
  ...e,
5082
5114
  submitted_at: i,
5083
5115
  created_by: n
@@ -5087,7 +5119,7 @@ class pb extends I {
5087
5119
  description: "Add issue association",
5088
5120
  method: u.POST,
5089
5121
  url: "/issue-associations/",
5090
- payload: v(a),
5122
+ payload: P(a),
5091
5123
  blockers: [
5092
5124
  e.associated_issue,
5093
5125
  ...e.issue ? [e.issue] : [],
@@ -5129,7 +5161,7 @@ class pb extends I {
5129
5161
  this.dispatch(Rd(s));
5130
5162
  }
5131
5163
  }
5132
- class fb extends _e {
5164
+ class yb extends _e {
5133
5165
  constructor() {
5134
5166
  super(...arguments);
5135
5167
  y(this, "name", "Issue Attachment");
@@ -5180,7 +5212,7 @@ class fb extends _e {
5180
5212
  this.dispatch(Js(i));
5181
5213
  }
5182
5214
  }
5183
- class yb extends _e {
5215
+ class Ab extends _e {
5184
5216
  constructor() {
5185
5217
  super(...arguments);
5186
5218
  y(this, "name", "Issue Comment Attachment");
@@ -5231,12 +5263,12 @@ class yb extends _e {
5231
5263
  this.dispatch(Xs(i));
5232
5264
  }
5233
5265
  }
5234
- class Ab extends I {
5266
+ class bb extends I {
5235
5267
  add(e) {
5236
5268
  var a;
5237
5269
  const { store: s } = this.client, i = O({
5238
5270
  ...e,
5239
- author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.uuid,
5271
+ author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.id,
5240
5272
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
5241
5273
  });
5242
5274
  this.dispatch(ti(i));
@@ -5244,7 +5276,7 @@ class Ab extends I {
5244
5276
  description: "Add issue comment",
5245
5277
  method: u.POST,
5246
5278
  url: "/issue-comments/",
5247
- payload: v(i),
5279
+ payload: P(i),
5248
5280
  blockers: [e.issue],
5249
5281
  blocks: [i.uuid]
5250
5282
  });
@@ -5303,10 +5335,10 @@ class Ab extends I {
5303
5335
  this.dispatch(Hd(s));
5304
5336
  }
5305
5337
  }
5306
- class bb extends I {
5338
+ class gb extends I {
5307
5339
  add(e) {
5308
5340
  var l;
5309
- const { store: s } = this.client, i = s.getState(), n = (/* @__PURE__ */ new Date()).toISOString(), a = (l = i.userReducer.currentUser) == null ? void 0 : l.uuid, c = O({
5341
+ const { store: s } = this.client, i = s.getState(), n = (/* @__PURE__ */ new Date()).toISOString(), a = (l = i.userReducer.currentUser) == null ? void 0 : l.id, c = O({
5310
5342
  ...e,
5311
5343
  submitted_at: n,
5312
5344
  created_by: a
@@ -5316,7 +5348,7 @@ class bb extends I {
5316
5348
  description: "Create issue",
5317
5349
  method: u.POST,
5318
5350
  url: "/issues/",
5319
- payload: v(c),
5351
+ payload: P(c),
5320
5352
  blockers: [
5321
5353
  "add-issue",
5322
5354
  c.project,
@@ -5325,21 +5357,21 @@ class bb extends I {
5325
5357
  ],
5326
5358
  blocks: [c.uuid]
5327
5359
  });
5328
- return d.then((o) => {
5329
- this.dispatch(ct(o));
5330
- }).catch((o) => {
5331
- throw this.dispatch(ci(c.uuid)), o;
5360
+ return d.then((r) => {
5361
+ this.dispatch(ct(r));
5362
+ }).catch((r) => {
5363
+ throw this.dispatch(ci(c.uuid)), r;
5332
5364
  }), [c, d];
5333
5365
  }
5334
5366
  update(e) {
5335
5367
  var l;
5336
- const s = this.client.store.getState(), i = oi(e.uuid)(s);
5368
+ const s = this.client.store.getState(), i = ri(e.uuid)(s);
5337
5369
  if (!i)
5338
5370
  throw new Error(`Attempting to update an issue with uuid ${e.uuid} that doesn't exist in the store`);
5339
5371
  const n = { ...i, ...e };
5340
5372
  this.dispatch(ct(n));
5341
5373
  const a = {};
5342
- for (const o of [
5374
+ for (const r of [
5343
5375
  w.TITLE,
5344
5376
  w.DESCRIPTION,
5345
5377
  w.STATUS,
@@ -5348,49 +5380,49 @@ class bb extends I {
5348
5380
  w.ASSIGNED_TO,
5349
5381
  w.DUE_DATE
5350
5382
  ])
5351
- if (o in e && e[o] !== i[o])
5352
- switch (o) {
5383
+ if (r in e && e[r] !== i[r])
5384
+ switch (r) {
5353
5385
  case w.PRIORITY:
5354
5386
  case w.STATUS: {
5355
- const r = e[o];
5356
- a[o] = r !== void 0 ? Number(r) : null;
5387
+ const o = e[r];
5388
+ a[r] = o !== void 0 ? Number(o) : null;
5357
5389
  break;
5358
5390
  }
5359
5391
  case w.DUE_DATE:
5360
5392
  case w.DESCRIPTION:
5361
5393
  case w.TITLE:
5362
- a[o] = e[o] ?? null;
5394
+ a[r] = e[r] ?? null;
5363
5395
  break;
5364
5396
  case w.CATEGORY: {
5365
- let r = null;
5366
- const h = e[o];
5367
- if (h && (r = s.categoryReducer.instances[h] ?? null, !r))
5397
+ let o = null;
5398
+ const h = e[r];
5399
+ if (h && (o = s.categoryReducer.instances[h] ?? null, !o))
5368
5400
  throw new Error(
5369
5401
  `Trying to update issue category to ${h} which does not exist in store`
5370
5402
  );
5371
- a[o] = r ? {
5372
- name: r.name,
5373
- color: r.color,
5374
- uuid: r.uuid
5403
+ a[r] = o ? {
5404
+ name: o.name,
5405
+ color: o.color,
5406
+ uuid: o.uuid
5375
5407
  } : null;
5376
5408
  break;
5377
5409
  }
5378
5410
  case w.ASSIGNED_TO: {
5379
- let r = null;
5380
- const h = e[o];
5381
- if (h && (r = s.userReducer.instances[h] ?? null, !r))
5411
+ let o = null;
5412
+ const h = e[r];
5413
+ if (h && (o = s.userReducer.instances[h] ?? null, !o))
5382
5414
  throw new Error(
5383
5415
  `Trying to update issue assigned_to to ${h} which does not exist in store`
5384
5416
  );
5385
- a[o] = r ? {
5386
- full_name: r.first_name,
5387
- uuid: r.uuid
5417
+ a[r] = o ? {
5418
+ full_name: o.username,
5419
+ id: o.id
5388
5420
  } : null;
5389
5421
  break;
5390
5422
  }
5391
5423
  }
5392
5424
  const c = O({
5393
- created_by: (l = s.userReducer.currentUser) == null ? void 0 : l.uuid,
5425
+ created_by: (l = s.userReducer.currentUser) == null ? void 0 : l.id,
5394
5426
  submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
5395
5427
  issue: i.uuid,
5396
5428
  changes: a
@@ -5409,16 +5441,16 @@ class bb extends I {
5409
5441
  }), [n, d];
5410
5442
  }
5411
5443
  async remove(e) {
5412
- const { store: s } = this.client, i = s.getState(), n = oi(e)(i);
5444
+ const { store: s } = this.client, i = s.getState(), n = ri(e)(i);
5413
5445
  if (!n)
5414
5446
  throw new Error(`No issue with uuid ${e} found in the store`);
5415
5447
  const a = Md(e)(i), c = Lu(e)(i), d = ud(e)(i), l = {};
5416
- for (const r of Id(e)(i))
5417
- l[r.uuid] = r;
5418
- for (const r of Fd(e)(i))
5419
- l[r.uuid] = r;
5420
- const o = Object.values(l);
5421
- this.dispatch(ci(e)), a.length > 0 && this.dispatch(Kn(a.map(({ uuid: r }) => r))), c.length > 0 && this.dispatch(Vu(c.map(({ uuid: r }) => r))), d.length > 0 && this.dispatch(Ft(d.map(({ uuid: r }) => r))), o.length > 0 && this.dispatch(Nn(o.map(({ uuid: r }) => r)));
5448
+ for (const o of Id(e)(i))
5449
+ l[o.uuid] = o;
5450
+ for (const o of Fd(e)(i))
5451
+ l[o.uuid] = o;
5452
+ const r = Object.values(l);
5453
+ this.dispatch(ci(e)), a.length > 0 && this.dispatch(Kn(a.map(({ uuid: o }) => o))), c.length > 0 && this.dispatch(Vu(c.map(({ uuid: o }) => o))), d.length > 0 && this.dispatch(Ft(d.map(({ uuid: o }) => o))), r.length > 0 && this.dispatch(Nn(r.map(({ uuid: o }) => o)));
5422
5454
  try {
5423
5455
  return await this.enqueueRequest({
5424
5456
  description: "Delete issue",
@@ -5427,8 +5459,8 @@ class bb extends I {
5427
5459
  blockers: [e],
5428
5460
  blocks: []
5429
5461
  });
5430
- } catch (r) {
5431
- throw this.dispatch(ai(n)), this.dispatch(Wn(a)), this.dispatch(Uu(c)), this.dispatch(It(d)), this.dispatch(Bn(o)), r;
5462
+ } catch (o) {
5463
+ throw this.dispatch(ai(n)), this.dispatch(Wn(a)), this.dispatch(Uu(c)), this.dispatch(It(d)), this.dispatch(Bn(r)), o;
5432
5464
  }
5433
5465
  }
5434
5466
  async refreshStore(e) {
@@ -5445,7 +5477,7 @@ class bb extends I {
5445
5477
  this.dispatch(Yd(s));
5446
5478
  }
5447
5479
  }
5448
- class gb extends _e {
5480
+ class Sb extends _e {
5449
5481
  constructor() {
5450
5482
  super(...arguments);
5451
5483
  y(this, "name", "Issue Type Attachment");
@@ -5456,7 +5488,7 @@ class gb extends _e {
5456
5488
  y(this, "removeAttachments", nu);
5457
5489
  y(this, "removeAttachment", iu);
5458
5490
  y(this, "setAttachment", tu);
5459
- y(this, "selectAttachment", ou);
5491
+ y(this, "selectAttachment", ru);
5460
5492
  }
5461
5493
  buildOfflineAttachment(s) {
5462
5494
  return O({
@@ -5496,12 +5528,12 @@ class gb extends _e {
5496
5528
  this.dispatch(di(i));
5497
5529
  }
5498
5530
  }
5499
- class Sb extends E {
5531
+ class Tb extends E {
5500
5532
  async bulkAdd(e) {
5501
5533
  var l;
5502
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
5503
- for (const o of e) {
5504
- const { fieldsRevisionUuid: r, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
5534
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
5535
+ for (const r of e) {
5536
+ const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
5505
5537
  f.sha1 in n || (n[f.sha1] = f);
5506
5538
  const S = O({
5507
5539
  file: URL.createObjectURL(m),
@@ -5509,7 +5541,7 @@ class Sb extends E {
5509
5541
  file_name: m.name,
5510
5542
  file_sha1: f.sha1,
5511
5543
  created_by: i,
5512
- fields_revision: r,
5544
+ fields_revision: o,
5513
5545
  submitted_at: s,
5514
5546
  field_identifier: h
5515
5547
  });
@@ -5520,7 +5552,7 @@ class Sb extends E {
5520
5552
  file_extension: f.extension,
5521
5553
  field_identifier: h,
5522
5554
  file_sha1: f.sha1,
5523
- fields_revision: r
5555
+ fields_revision: o
5524
5556
  };
5525
5557
  c.push(R);
5526
5558
  }
@@ -5534,18 +5566,18 @@ class Sb extends E {
5534
5566
  attachments: c,
5535
5567
  files: Object.values(n)
5536
5568
  },
5537
- blockers: a.map((o) => o.fields_revision),
5538
- blocks: a.map((o) => o.uuid)
5569
+ blockers: a.map((r) => r.fields_revision),
5570
+ blocks: a.map((r) => r.uuid)
5539
5571
  });
5540
- return d.then((o) => {
5541
- this.processPresignedUrls(o.presigned_urls), this.dispatch(lu(o.attachments));
5572
+ return d.then((r) => {
5573
+ this.processPresignedUrls(r.presigned_urls), this.dispatch(lu(r.attachments));
5542
5574
  }).catch(() => {
5543
5575
  this.dispatch(
5544
5576
  hu(
5545
- a.map((o) => o.uuid)
5577
+ a.map((r) => r.uuid)
5546
5578
  )
5547
5579
  );
5548
- }), [a, d.then(({ attachments: o }) => o)];
5580
+ }), [a, d.then(({ attachments: r }) => r)];
5549
5581
  }
5550
5582
  async refreshStore(e) {
5551
5583
  const s = await this.enqueueRequest({
@@ -5561,10 +5593,10 @@ class Sb extends E {
5561
5593
  this.dispatch(du(s));
5562
5594
  }
5563
5595
  }
5564
- class Tb extends I {
5596
+ class Rb extends I {
5565
5597
  add(e) {
5566
5598
  var d;
5567
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
5599
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
5568
5600
  ...e,
5569
5601
  created_by: i,
5570
5602
  submitted_at: n
@@ -5574,7 +5606,7 @@ class Tb extends I {
5574
5606
  description: "Add Issue Type Fields",
5575
5607
  method: u.POST,
5576
5608
  url: "/issue-type-fields/",
5577
- payload: v(a),
5609
+ payload: P(a),
5578
5610
  blockers: [a.issue_type],
5579
5611
  blocks: [a.uuid]
5580
5612
  });
@@ -5598,12 +5630,12 @@ class Tb extends I {
5598
5630
  this.dispatch(gu(s));
5599
5631
  }
5600
5632
  }
5601
- class Rb extends E {
5633
+ class _b extends E {
5602
5634
  async bulkAdd(e) {
5603
5635
  var l;
5604
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
5605
- for (const o of e) {
5606
- const { fieldValuesUuid: r, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
5636
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
5637
+ for (const r of e) {
5638
+ const { fieldValuesUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
5607
5639
  f.sha1 in n || (n[f.sha1] = f);
5608
5640
  const S = O({
5609
5641
  file: URL.createObjectURL(m),
@@ -5611,7 +5643,7 @@ class Rb extends E {
5611
5643
  file_name: m.name,
5612
5644
  file_sha1: f.sha1,
5613
5645
  created_by: i,
5614
- field_values: r,
5646
+ field_values: o,
5615
5647
  submitted_at: s,
5616
5648
  field_identifier: h
5617
5649
  });
@@ -5622,7 +5654,7 @@ class Rb extends E {
5622
5654
  file_sha1: f.sha1,
5623
5655
  file_extension: f.extension,
5624
5656
  field_identifier: h,
5625
- field_values: r
5657
+ field_values: o
5626
5658
  };
5627
5659
  c.push(R);
5628
5660
  }
@@ -5636,21 +5668,21 @@ class Rb extends E {
5636
5668
  attachments: c,
5637
5669
  files: Object.values(n)
5638
5670
  },
5639
- blockers: a.map((o) => o.field_values),
5640
- blocks: a.map((o) => o.uuid)
5671
+ blockers: a.map((r) => r.field_values),
5672
+ blocks: a.map((r) => r.uuid)
5641
5673
  });
5642
- return d.then(({ presigned_urls: o, attachments: r }) => {
5643
- this.processPresignedUrls(o), this.dispatch(Fu(r));
5644
- }).catch((o) => {
5674
+ return d.then(({ presigned_urls: r, attachments: o }) => {
5675
+ this.processPresignedUrls(r), this.dispatch(Fu(o));
5676
+ }).catch((r) => {
5645
5677
  throw this.dispatch(
5646
5678
  gt(
5647
- a.map((r) => r.uuid)
5679
+ a.map((o) => o.uuid)
5648
5680
  )
5649
- ), o;
5650
- }), [a, d.then(({ attachments: o }) => o)];
5681
+ ), r;
5682
+ }), [a, d.then(({ attachments: r }) => r)];
5651
5683
  }
5652
5684
  async bulkDelete(e) {
5653
- const { store: s } = this.client, i = s.getState(), n = Pu(e)(i);
5685
+ const { store: s } = this.client, i = s.getState(), n = vu(e)(i);
5654
5686
  this.dispatch(gt(e));
5655
5687
  try {
5656
5688
  await this.enqueueRequest({
@@ -5679,18 +5711,18 @@ class Rb extends E {
5679
5711
  this.dispatch(Iu(s));
5680
5712
  }
5681
5713
  }
5682
- class _b extends I {
5714
+ class Ob extends I {
5683
5715
  add(e) {
5684
5716
  var c;
5685
5717
  const { store: s } = this.client, i = s.getState(), n = O({
5686
5718
  ...e,
5687
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid,
5719
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id,
5688
5720
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
5689
5721
  }), a = this.enqueueRequest({
5690
5722
  description: "Add issue type field values",
5691
5723
  method: u.POST,
5692
5724
  url: "/issue-type-field-values/",
5693
- payload: v(n),
5725
+ payload: P(n),
5694
5726
  blockers: [e.issue, e.fields_revision],
5695
5727
  blocks: [n.uuid]
5696
5728
  });
@@ -5757,19 +5789,19 @@ class _b extends I {
5757
5789
  this.dispatch(yu(s));
5758
5790
  }
5759
5791
  }
5760
- class Ob extends I {
5792
+ class Ib extends I {
5761
5793
  add(e) {
5762
5794
  var c;
5763
5795
  const { store: s } = this.client, i = s.getState(), n = O({
5764
5796
  ...e,
5765
5797
  submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
5766
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid
5798
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id
5767
5799
  });
5768
5800
  this.dispatch(qu(n));
5769
5801
  const a = this.enqueueRequest({
5770
5802
  method: u.POST,
5771
5803
  url: "/issue-types/",
5772
- payload: v(n),
5804
+ payload: P(n),
5773
5805
  blockers: [],
5774
5806
  blocks: [n.uuid]
5775
5807
  });
@@ -5830,7 +5862,7 @@ class Ob extends I {
5830
5862
  this.dispatch(ku(s));
5831
5863
  }
5832
5864
  }
5833
- class Ib extends I {
5865
+ class Fb extends I {
5834
5866
  async refreshStore(e) {
5835
5867
  const s = await this.enqueueRequest({
5836
5868
  description: "Get issue updates",
@@ -5845,13 +5877,13 @@ class Ib extends I {
5845
5877
  this.dispatch(xu(s));
5846
5878
  }
5847
5879
  }
5848
- const Ph = 1800;
5880
+ const vh = 1800;
5849
5881
  function wh(t) {
5850
5882
  if (!t.access) throw new Error("Missing access token");
5851
5883
  if (!t.refresh) throw new Error("Missing refresh token");
5852
5884
  return { accessToken: t.access, refreshToken: t.refresh };
5853
5885
  }
5854
- class Fb extends Ih {
5886
+ class Pb extends Ih {
5855
5887
  constructor() {
5856
5888
  super(...arguments);
5857
5889
  // _getTokenPair and _getRenewedTokens don't need to use enqueueRequest from the BaseApiService because
@@ -5892,7 +5924,7 @@ class Fb extends Ih {
5892
5924
  * Logs the user out
5893
5925
  */
5894
5926
  clearAuth() {
5895
- console.debug(this.constructor.name, "clearing auth;"), this.dispatch(ar(!1)), this.clearTokens(), this.dispatch({ type: Ka }), this.dispatch({ type: rh });
5927
+ console.debug(this.constructor.name, "clearing auth;"), this.dispatch(no(!1)), this.clearTokens(), this.dispatch({ type: Ka }), this.dispatch({ type: oh });
5896
5928
  }
5897
5929
  /**
5898
5930
  * Attempts to renew tokens
@@ -5922,7 +5954,7 @@ class Fb extends Ih {
5922
5954
  } catch {
5923
5955
  n = i;
5924
5956
  }
5925
- return n - i < Ph;
5957
+ return n - i < vh;
5926
5958
  }
5927
5959
  getAuthHeader() {
5928
5960
  return `Bearer ${this.getAccessToken()}`;
@@ -6075,7 +6107,7 @@ class vb extends I {
6075
6107
  this.dispatch(Nu(Object.values(i)));
6076
6108
  }
6077
6109
  }
6078
- class Pb extends I {
6110
+ class wb extends I {
6079
6111
  async update(e) {
6080
6112
  const s = this.enqueueRequest({
6081
6113
  description: "Edit organization access",
@@ -6109,7 +6141,7 @@ class Pb extends I {
6109
6141
  this.dispatch(Qu(s));
6110
6142
  }
6111
6143
  }
6112
- class wb extends I {
6144
+ class Eb extends I {
6113
6145
  create(e) {
6114
6146
  return this.enqueueRequest({
6115
6147
  description: "Create organization",
@@ -6159,7 +6191,7 @@ class wb extends I {
6159
6191
  i[a.uuid] = a, this.dispatch(fl(Object.values(i)));
6160
6192
  }
6161
6193
  }
6162
- class Eb extends I {
6194
+ class kb extends I {
6163
6195
  async update(e) {
6164
6196
  return this.dispatch(sl(e)), this.enqueueRequest({
6165
6197
  description: "Edit project access",
@@ -6194,16 +6226,16 @@ class Eb extends I {
6194
6226
  this.dispatch(ma(s));
6195
6227
  }
6196
6228
  }
6197
- class kb extends _e {
6229
+ class qb extends _e {
6198
6230
  constructor() {
6199
6231
  super(...arguments);
6200
6232
  y(this, "name", "Project Attachment");
6201
6233
  y(this, "url", "/project-attachments");
6202
- y(this, "addAttachments", vl);
6234
+ y(this, "addAttachments", Pl);
6203
6235
  y(this, "updateAttachments", El);
6204
6236
  y(this, "removeAttachments", ga);
6205
6237
  y(this, "removeAttachment", kl);
6206
- y(this, "setAttachment", Pl);
6238
+ y(this, "setAttachment", vl);
6207
6239
  y(this, "selectAttachment", Ml);
6208
6240
  }
6209
6241
  buildOfflineAttachment(s) {
@@ -6244,7 +6276,7 @@ class kb extends _e {
6244
6276
  this.dispatch(Fl(i));
6245
6277
  }
6246
6278
  }
6247
- class qb extends I {
6279
+ class jb extends I {
6248
6280
  async saveExisting(e) {
6249
6281
  if (!e.uuid)
6250
6282
  throw new Error(
@@ -6284,19 +6316,19 @@ class qb extends I {
6284
6316
  blocks: [i]
6285
6317
  };
6286
6318
  } else
6287
- a = new Promise((l, o) => {
6288
- this.client.files.uploadFileToS3(n.file_sha1).then(([r]) => {
6319
+ a = new Promise((l, r) => {
6320
+ this.client.files.uploadFileToS3(n.file_sha1).then(([o]) => {
6289
6321
  l({
6290
6322
  method: u.POST,
6291
6323
  url: `/projects/${n.project}/files/`,
6292
6324
  payload: {
6293
6325
  ...n,
6294
- ...r
6326
+ ...o
6295
6327
  },
6296
6328
  blockers: [i],
6297
6329
  blocks: [i]
6298
6330
  });
6299
- }).catch(o);
6331
+ }).catch(r);
6300
6332
  });
6301
6333
  const d = Promise.resolve(a).then((l) => this.enqueueRequest(l));
6302
6334
  return d.then((l) => {
@@ -6322,7 +6354,7 @@ class qb extends I {
6322
6354
  this.dispatch(xl(s));
6323
6355
  }
6324
6356
  }
6325
- class jb extends I {
6357
+ class Mb extends I {
6326
6358
  async add(e) {
6327
6359
  if (!e.bounds && !e.canvas_bounds)
6328
6360
  throw new Error("Project must either have bounds or canvas_bounds set");
@@ -6358,14 +6390,14 @@ class jb extends I {
6358
6390
  const { store: s } = this.client, i = s.getState(), n = kt(i), a = n[e];
6359
6391
  if (!a)
6360
6392
  throw new Error("Expected project to exist");
6361
- const c = Nl(i).filter((r) => r.project === e);
6362
- this.dispatch($l(c.map(({ uuid: r }) => r)));
6393
+ const c = Nl(i).filter((o) => o.project === e);
6394
+ this.dispatch($l(c.map(({ uuid: o }) => o)));
6363
6395
  const d = Cl(a.uuid)(i);
6364
- this.dispatch(ga(d.map(({ uuid: r }) => r)));
6396
+ this.dispatch(ga(d.map(({ uuid: o }) => o)));
6365
6397
  const l = al(i);
6366
- this.dispatch(nl(l.map(({ uuid: r }) => r))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(ul(a.uuid));
6367
- const o = Hu(a.uuid)(i);
6368
- o && this.dispatch(pe({ ...o, project: null }));
6398
+ this.dispatch(nl(l.map(({ uuid: o }) => o))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(ul(a.uuid));
6399
+ const r = Hu(a.uuid)(i);
6400
+ r && this.dispatch(pe({ ...r, project: null }));
6369
6401
  try {
6370
6402
  await this.enqueueRequest({
6371
6403
  description: "Delete project",
@@ -6374,8 +6406,8 @@ class jb extends I {
6374
6406
  blockers: [e],
6375
6407
  blocks: []
6376
6408
  }), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 });
6377
- } catch (r) {
6378
- throw this.dispatch(rl(Object.values(n))), this.dispatch(ma(Object.values(l))), this.dispatch(zl(c)), this.dispatch(wl(d)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), o && this.dispatch(pe({ ...o, project: a.uuid })), r;
6409
+ } catch (o) {
6410
+ throw this.dispatch(ol(Object.values(n))), this.dispatch(ma(Object.values(l))), this.dispatch(zl(c)), this.dispatch(wl(d)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), r && this.dispatch(pe({ ...r, project: a.uuid })), o;
6379
6411
  }
6380
6412
  }
6381
6413
  invite(e, s) {
@@ -6413,7 +6445,7 @@ class jb extends I {
6413
6445
  });
6414
6446
  }
6415
6447
  }
6416
- class Mb extends I {
6448
+ class Cb extends I {
6417
6449
  add(e) {
6418
6450
  const s = O({
6419
6451
  ...e,
@@ -6450,7 +6482,7 @@ class Mb extends I {
6450
6482
  description: "Update team",
6451
6483
  method: u.PATCH,
6452
6484
  url: `/organizations/teams/${e.uuid}/`,
6453
- payload: v(e),
6485
+ payload: P(e),
6454
6486
  blockers: [e.uuid],
6455
6487
  blocks: [e.uuid]
6456
6488
  });
@@ -6523,7 +6555,7 @@ class Mb extends I {
6523
6555
  this.dispatch(Yl(s));
6524
6556
  }
6525
6557
  }
6526
- class Cb extends I {
6558
+ class Db extends I {
6527
6559
  async refreshStore(e, s) {
6528
6560
  const i = {}, n = await this.enqueueRequest({
6529
6561
  description: "Fetch organization users",
@@ -6533,7 +6565,7 @@ class Cb extends I {
6533
6565
  blocks: []
6534
6566
  });
6535
6567
  for (const c of n)
6536
- i[c.uuid] = c;
6568
+ i[c.id] = c;
6537
6569
  const a = await this.enqueueRequest({
6538
6570
  description: "Fetch project users",
6539
6571
  method: u.GET,
@@ -6542,11 +6574,11 @@ class Cb extends I {
6542
6574
  blocks: []
6543
6575
  });
6544
6576
  for (const c of a)
6545
- i[c.uuid] = c;
6577
+ i[c.id] = c;
6546
6578
  this.dispatch(Ku(Object.values(i)));
6547
6579
  }
6548
6580
  }
6549
- class Db {
6581
+ class xb {
6550
6582
  constructor(e) {
6551
6583
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6552
6584
  y(this, "store");
@@ -6587,28 +6619,28 @@ class Db {
6587
6619
  } else {
6588
6620
  const c = this.store.dispatch(
6589
6621
  Rl(a)
6590
- ), d = (o) => {
6591
- if (o)
6592
- n.resolve(o.body);
6622
+ ), d = (r) => {
6623
+ if (r)
6624
+ n.resolve(r.body);
6593
6625
  else {
6594
- const r = new j({
6626
+ const o = new j({
6595
6627
  message: "Could not get a response from the server.",
6596
- response: o,
6628
+ response: r,
6597
6629
  discard: !0
6598
6630
  });
6599
- n.reject(r);
6631
+ n.reject(o);
6600
6632
  }
6601
- }, l = (o) => {
6602
- o instanceof j ? o.options.discard = !0 : (console.error(
6633
+ }, l = (r) => {
6634
+ r instanceof j ? r.options.discard = !0 : (console.error(
6603
6635
  "Received an unexpected error while processing a request:",
6604
- o,
6636
+ r,
6605
6637
  `
6606
6638
  Converting error to APIError and discarding.`
6607
- ), o = new j({
6639
+ ), r = new j({
6608
6640
  message: "An error occurred while processing the request.",
6609
- innerError: o,
6641
+ innerError: r,
6610
6642
  discard: !0
6611
- })), n.reject(o);
6643
+ })), n.reject(r);
6612
6644
  };
6613
6645
  c.then(d, l);
6614
6646
  }
@@ -6758,85 +6790,85 @@ class Me {
6758
6790
  this.requestAttemptCounter[e] = (this.requestAttemptCounter[e] || 0) + 1;
6759
6791
  }
6760
6792
  }
6761
- const xb = (t, e) => {
6793
+ const zb = (t, e) => {
6762
6794
  const s = new e(t);
6763
6795
  return sh(s), th(t), s;
6764
6796
  };
6765
6797
  var Eh = /* @__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))(Eh || {});
6766
6798
  export {
6767
6799
  j as APIError,
6768
- zA as AgentService,
6769
- UA as AssetAttachmentService,
6770
- GA as AssetProcedureFieldValuesAttachmentService,
6771
- BA as AssetProcedureFieldValuesService,
6772
- $A as AssetProcedureFieldsAttachmentService,
6773
- VA as AssetProcedureFieldsService,
6774
- NA as AssetProcedureInstanceService,
6775
- HA as AssetProcedureService,
6776
- WA as AssetService,
6777
- KA as AssetStageCompletionService,
6778
- YA as AssetStageService,
6779
- JA as AssetTypeAttachmentService,
6780
- ZA as AssetTypeFieldValuesAttachmentService,
6781
- eb as AssetTypeFieldValuesService,
6782
- QA as AssetTypeFieldsAttachmentService,
6783
- XA as AssetTypeFieldsService,
6784
- tb as AssetTypeService,
6800
+ UA as AgentService,
6801
+ $A as AssetAttachmentService,
6802
+ LA as AssetProcedureFieldValuesAttachmentService,
6803
+ NA as AssetProcedureFieldValuesService,
6804
+ VA as AssetProcedureFieldsAttachmentService,
6805
+ GA as AssetProcedureFieldsService,
6806
+ HA as AssetProcedureInstanceService,
6807
+ WA as AssetProcedureService,
6808
+ KA as AssetService,
6809
+ YA as AssetStageCompletionService,
6810
+ JA as AssetStageService,
6811
+ QA as AssetTypeAttachmentService,
6812
+ eb as AssetTypeFieldValuesAttachmentService,
6813
+ tb as AssetTypeFieldValuesService,
6814
+ XA as AssetTypeFieldsAttachmentService,
6815
+ ZA as AssetTypeFieldsService,
6816
+ sb as AssetTypeService,
6785
6817
  Za as AttachmentModel,
6786
6818
  I as BaseApiService,
6787
- Db as BaseSDK,
6819
+ xb as BaseSDK,
6788
6820
  hc as COMMON_AUTO_FIELDS,
6789
- sb as CategoryService,
6821
+ ib as CategoryService,
6790
6822
  Yh as DEFAULT_ISSUE_PRIORITY,
6791
6823
  Kh as DEFAULT_ISSUE_STATUS,
6792
6824
  nc as DeferredPromise,
6793
- ib as DocumentAttachmentService,
6794
- nb as DocumentService,
6825
+ nb as DocumentAttachmentService,
6826
+ ab as DocumentService,
6795
6827
  Qa as EMPTY_ARRAY,
6796
6828
  Xa as EMPTY_OBJECT,
6797
- ab as EmailDomainsService,
6798
- cb as EmailVerificationService,
6829
+ cb as EmailDomainsService,
6830
+ rb as EmailVerificationService,
6799
6831
  ob as FileService,
6800
- rb as FormRevisionAttachmentService,
6801
- db as FormRevisionService,
6802
- lb as FormService,
6803
- hb as FormSubmissionAttachmentService,
6804
- LA as FormSubmissionService,
6805
- mb as GeoImageService,
6832
+ db as FormRevisionAttachmentService,
6833
+ ub as FormRevisionService,
6834
+ hb as FormService,
6835
+ mb as FormSubmissionAttachmentService,
6836
+ BA as FormSubmissionService,
6837
+ pb as GeoImageService,
6806
6838
  u as HttpMethod,
6807
- pb as IssueAssociationService,
6808
- fb as IssueAttachmentService,
6809
- yb as IssueCommentAttachmentService,
6810
- Ab as IssueCommentService,
6839
+ fb as IssueAssociationService,
6840
+ yb as IssueAttachmentService,
6841
+ Ab as IssueCommentAttachmentService,
6842
+ bb as IssueCommentService,
6811
6843
  $i as IssuePriority,
6812
- bb as IssueService,
6844
+ gb as IssueService,
6813
6845
  Vi as IssueStatus,
6814
- gb as IssueTypeAttachmentService,
6815
- Rb as IssueTypeFieldValuesAttachmentService,
6816
- _b as IssueTypeFieldValuesService,
6817
- Sb as IssueTypeFieldsAttachmentService,
6818
- Tb as IssueTypeFieldsService,
6819
- Ob as IssueTypeService,
6846
+ Sb as IssueTypeAttachmentService,
6847
+ _b as IssueTypeFieldValuesAttachmentService,
6848
+ Ob as IssueTypeFieldValuesService,
6849
+ Tb as IssueTypeFieldsAttachmentService,
6850
+ Rb as IssueTypeFieldsService,
6851
+ Ib as IssueTypeService,
6820
6852
  w as IssueUpdateChange,
6821
- Ib as IssueUpdateService,
6822
- Fb as JWTService,
6853
+ Fb as IssueUpdateService,
6854
+ Pb as JWTService,
6823
6855
  tc as LicenseLevel,
6824
6856
  vb as LicenseService,
6825
6857
  sc as LicenseStatus,
6826
6858
  ic as OUTBOX_RETRY_DELAY,
6827
6859
  Ui as OrganizationAccessLevel,
6828
- Pb as OrganizationAccessService,
6829
- wb as OrganizationService,
6860
+ wb as OrganizationAccessService,
6861
+ Eb as OrganizationService,
6830
6862
  Me as OutboxCoordinator,
6831
6863
  ec as PaddleCheckoutEvent,
6832
6864
  zi as ProjectAccessLevel,
6833
- Eb as ProjectAccessService,
6834
- kb as ProjectAttachmentService,
6835
- qb as ProjectFileService,
6836
- jb as ProjectService,
6837
- Mb as TeamService,
6865
+ kb as ProjectAccessService,
6866
+ qb as ProjectAttachmentService,
6867
+ jb as ProjectFileService,
6868
+ Mb as ProjectService,
6869
+ Cb as TeamService,
6838
6870
  xe as UNKNOWN_ERROR_MESSAGE,
6839
- Cb as UserService,
6871
+ Db as UserService,
6840
6872
  ja as VERSION_REDUCER_KEY,
6841
6873
  Eh as VerificationCodeType,
6842
6874
  Ol as _setLatestRetryTime,
@@ -6852,9 +6884,9 @@ export {
6852
6884
  Dc as addAssetProcedureFields,
6853
6885
  Tm as addAssetProcedureFieldsAttachment,
6854
6886
  wc as addAssetProcedureFieldsAttachments,
6855
- Pm as addAssetProcedureFieldsMany,
6887
+ vm as addAssetProcedureFieldsMany,
6856
6888
  Ht as addAssetProcedureInstance,
6857
- eo as addAssetProcedureInstances,
6889
+ er as addAssetProcedureInstances,
6858
6890
  Qm as addAssetProcedures,
6859
6891
  lp as addAssetStage,
6860
6892
  ns as addAssetStageCompletion,
@@ -6866,24 +6898,24 @@ export {
6866
6898
  bs as addAssetTypeFieldValues,
6867
6899
  jp as addAssetTypeFieldValuesAttachment,
6868
6900
  pt as addAssetTypeFieldValuesAttachments,
6869
- Xo as addAssetTypeFieldValuesMany,
6870
- $o as addAssetTypeFields,
6901
+ Qr as addAssetTypeFieldValuesMany,
6902
+ Ur as addAssetTypeFields,
6871
6903
  bp as addAssetTypeFieldsAttachment,
6872
- jo as addAssetTypeFieldsAttachments,
6904
+ qr as addAssetTypeFieldsAttachments,
6873
6905
  Ip as addAssetTypeFieldsMany,
6874
6906
  Np as addAssetTypes,
6875
- rn as addAssets,
6876
- vs as addCategory,
6907
+ on as addAssets,
6908
+ Ps as addCategory,
6877
6909
  yc as addConversation,
6878
6910
  nf as addDocumentAttachment,
6879
- hr as addDocumentAttachments,
6880
- Rr as addDocuments,
6881
- wr as addEmailDomain,
6911
+ ho as addDocumentAttachments,
6912
+ Ro as addDocuments,
6913
+ wo as addEmailDomain,
6882
6914
  Ds as addForm,
6883
6915
  Mn as addFormRevision,
6884
6916
  hf as addFormRevisionAttachment,
6885
- Ur as addFormRevisionAttachments,
6886
- Wr as addFormRevisions,
6917
+ Uo as addFormRevisionAttachments,
6918
+ Wo as addFormRevisions,
6887
6919
  $s as addFormSubmission,
6888
6920
  Of as addFormSubmissionAttachment,
6889
6921
  yt as addFormSubmissionAttachments,
@@ -6915,21 +6947,21 @@ export {
6915
6947
  Uu as addIssueUpdates,
6916
6948
  Jd as addIssues,
6917
6949
  Ey as addLicenses,
6918
- rA as addOrganization,
6950
+ dA as addOrganization,
6919
6951
  oA as addOrganizations,
6920
- Zy as addProject,
6921
- TA as addProjectAttachment,
6922
- vl as addProjectAttachments,
6923
- IA as addProjectFile,
6952
+ eA as addProject,
6953
+ RA as addProjectAttachment,
6954
+ Pl as addProjectAttachments,
6955
+ FA as addProjectFile,
6924
6956
  zl as addProjectFiles,
6925
- Xy as addProjects,
6957
+ Zy as addProjects,
6926
6958
  Jl as addTeam,
6927
6959
  xy as addUser,
6928
6960
  Dy as addUsers,
6929
6961
  gc as agentsReducer,
6930
6962
  Li as agentsSlice,
6931
6963
  tm as areArraysEqual,
6932
- vc as assetAttachmentReducer,
6964
+ Pc as assetAttachmentReducer,
6933
6965
  Ni as assetAttachmentSlice,
6934
6966
  Hc as assetProcedureFieldValuesAttachmentReducer,
6935
6967
  Qi as assetProcedureFieldValuesAttachmentSlice,
@@ -6939,32 +6971,32 @@ export {
6939
6971
  Ki as assetProcedureFieldsAttachmentSlice,
6940
6972
  $c as assetProcedureFieldsReducer,
6941
6973
  Yi as assetProcedureFieldsSlice,
6942
- io as assetProcedureInstanceReducer,
6974
+ ir as assetProcedureInstanceReducer,
6943
6975
  tn as assetProcedureInstanceSlice,
6944
- co as assetProcedureReducer,
6976
+ cr as assetProcedureReducer,
6945
6977
  an as assetProcedureSlice,
6946
- lo as assetReducer,
6947
- on as assetSlice,
6948
- fo as assetStageCompletionReducer,
6978
+ ur as assetReducer,
6979
+ rn as assetSlice,
6980
+ pr as assetStageCompletionReducer,
6949
6981
  ln as assetStageCompletionSlice,
6950
- So as assetStageReducer,
6982
+ gr as assetStageReducer,
6951
6983
  mn as assetStageSlice,
6952
- ko as assetTypeAttachmentReducer,
6984
+ Er as assetTypeAttachmentReducer,
6953
6985
  pn as assetTypeAttachmentSlice,
6954
- Jo as assetTypeFieldValuesAttachmentReducer,
6986
+ Yr as assetTypeFieldValuesAttachmentReducer,
6955
6987
  gn as assetTypeFieldValuesAttachmentSlice,
6956
- sr as assetTypeFieldValuesReducer,
6988
+ to as assetTypeFieldValuesReducer,
6957
6989
  Tn as assetTypeFieldValuesSlice,
6958
- zo as assetTypeFieldsAttachmentReducer,
6990
+ xr as assetTypeFieldsAttachmentReducer,
6959
6991
  An as assetTypeFieldsAttachmentSlice,
6960
- Bo as assetTypeFieldsReducer,
6992
+ Lr as assetTypeFieldsReducer,
6961
6993
  bn as assetTypeFieldsSlice,
6962
- nr as assetTypeReducer,
6994
+ io as assetTypeReducer,
6963
6995
  _n as assetTypeSlice,
6964
- cr as authReducer,
6996
+ ao as authReducer,
6965
6997
  _t as authSlice,
6966
- om as blobToBase64,
6967
- ur as categoryReducer,
6998
+ rm as blobToBase64,
6999
+ uo as categoryReducer,
6968
7000
  In as categorySlice,
6969
7001
  Qp as clearTokens,
6970
7002
  cm as constructUploadedFilePayloads,
@@ -6972,7 +7004,7 @@ export {
6972
7004
  _ as createModelAdapter,
6973
7005
  Xh as createMultiPointGeometry,
6974
7006
  Tl as createOfflineAction,
6975
- v as createPayload,
7007
+ P as createPayload,
6976
7008
  Qh as createPointGeometry,
6977
7009
  Jh as createSelectionAdapter,
6978
7010
  ts as deleteAsset,
@@ -6988,36 +7020,36 @@ export {
6988
7020
  kc as deleteAssetProcedureFieldsAttachments,
6989
7021
  qm as deleteAssetProcedureFieldsMany,
6990
7022
  Wt as deleteAssetProcedureInstance,
6991
- to as deleteAssetProcedureInstances,
7023
+ tr as deleteAssetProcedureInstances,
6992
7024
  Zm as deleteAssetProcedures,
6993
7025
  hp as deleteAssetStage,
6994
7026
  cs as deleteAssetStageCompletion,
6995
- os as deleteAssetStageCompletions,
7027
+ rs as deleteAssetStageCompletions,
6996
7028
  ls as deleteAssetStages,
6997
7029
  _s as deleteAssetType,
6998
- Fo as deleteAssetTypeAttachment,
7030
+ Ir as deleteAssetTypeAttachment,
6999
7031
  yn as deleteAssetTypeAttachments,
7000
7032
  gs as deleteAssetTypeFieldValues,
7001
7033
  xp as deleteAssetTypeFieldValuesAttachment,
7002
7034
  ft as deleteAssetTypeFieldValuesAttachments,
7003
- er as deleteAssetTypeFieldValuesMany,
7004
- Go as deleteAssetTypeFields,
7035
+ Zr as deleteAssetTypeFieldValuesMany,
7036
+ Vr as deleteAssetTypeFields,
7005
7037
  Rp as deleteAssetTypeFieldsAttachment,
7006
- Co as deleteAssetTypeFieldsAttachments,
7038
+ Mr as deleteAssetTypeFieldsAttachments,
7007
7039
  wp as deleteAssetTypeFieldsMany,
7008
7040
  Wp as deleteAssetTypes,
7009
- ro as deleteAssets,
7010
- dr as deleteCategory,
7011
- fr as deleteDocumentAttachment,
7012
- yr as deleteDocumentAttachments,
7013
- Er as deleteEmailDomain,
7041
+ or as deleteAssets,
7042
+ oo as deleteCategory,
7043
+ fo as deleteDocumentAttachment,
7044
+ yo as deleteDocumentAttachments,
7045
+ Eo as deleteEmailDomain,
7014
7046
  xs as deleteForm,
7015
7047
  Cn as deleteFormRevision,
7016
7048
  yf as deleteFormRevisionAttachment,
7017
- Vr as deleteFormRevisionAttachments,
7018
- Kr as deleteFormRevisions,
7049
+ Vo as deleteFormRevisionAttachments,
7050
+ Ko as deleteFormRevisions,
7019
7051
  Vs as deleteFormSubmission,
7020
- Pf as deleteFormSubmissionAttachment,
7052
+ vf as deleteFormSubmissionAttachment,
7021
7053
  At as deleteFormSubmissionAttachments,
7022
7054
  Ft as deleteFormSubmissions,
7023
7055
  Bs as deleteGeoImage,
@@ -7044,9 +7076,9 @@ export {
7044
7076
  $u as deleteIssueUpdate,
7045
7077
  Vu as deleteIssueUpdates,
7046
7078
  Qd as deleteIssues,
7047
- lA as deleteOrganization,
7079
+ hA as deleteOrganization,
7048
7080
  Zu as deleteOrganizationAccess,
7049
- hA as deleteOrganizations,
7081
+ mA as deleteOrganizations,
7050
7082
  ul as deleteProject,
7051
7083
  il as deleteProjectAccess,
7052
7084
  nl as deleteProjectAccesses,
@@ -7054,32 +7086,32 @@ export {
7054
7086
  ga as deleteProjectAttachments,
7055
7087
  Ul as deleteProjectFile,
7056
7088
  $l as deleteProjectFiles,
7057
- tA as deleteProjects,
7089
+ sA as deleteProjects,
7058
7090
  ji as deleteTeam,
7059
7091
  $y as deleteUser,
7060
7092
  Vy as deleteUsers,
7061
7093
  lh as dequeue,
7062
7094
  xa as discard,
7063
- Sr as documentAttachmentReducer,
7064
- vn as documentAttachmentSlice,
7065
- Pn as documentSlice,
7066
- Fr as documentsReducer,
7067
- rm as downloadFile,
7095
+ So as documentAttachmentReducer,
7096
+ Pn as documentAttachmentSlice,
7097
+ vn as documentSlice,
7098
+ Fo as documentsReducer,
7099
+ om as downloadFile,
7068
7100
  am as downloadInMemoryFile,
7069
- jr as emailDomainsReducer,
7101
+ jo as emailDomainsReducer,
7070
7102
  wn as emailDomainsSlice,
7071
7103
  fm as emailRegex,
7072
7104
  uh as enqueue,
7073
7105
  Rl as enqueueRequest,
7074
7106
  b as fallbackToEmptyArray,
7075
7107
  ze as fallbackToEmptyObject,
7076
- xr as fileReducer,
7108
+ xo as fileReducer,
7077
7109
  kn as fileSlice,
7078
7110
  lc as fileToBlob,
7079
- Zr as formReducer,
7080
- Lr as formRevisionAttachmentReducer,
7111
+ Zo as formReducer,
7112
+ Lo as formRevisionAttachmentReducer,
7081
7113
  qn as formRevisionAttachmentSlice,
7082
- Qr as formRevisionReducer,
7114
+ Qo as formRevisionReducer,
7083
7115
  jn as formRevisionsSlice,
7084
7116
  Dn as formSlice,
7085
7117
  cd as formSubmissionAttachmentReducer,
@@ -7092,35 +7124,35 @@ export {
7092
7124
  jt as getFileS3Key,
7093
7125
  cc as getLocalDateString,
7094
7126
  im as getLocalRelativeDateString,
7095
- ve as getOutboxCoordinator,
7127
+ Pe as getOutboxCoordinator,
7096
7128
  uc as getRenamedFile,
7097
7129
  Ce as hashFile,
7098
- xb as initSDK,
7130
+ zb as initSDK,
7099
7131
  xt as initializeAssetAttachments,
7100
7132
  Wc as initializeAssetProcedureFieldValues,
7101
7133
  Vc as initializeAssetProcedureFieldValuesAttachments,
7102
7134
  Cc as initializeAssetProcedureFields,
7103
- Pc as initializeAssetProcedureFieldsAttachments,
7135
+ vc as initializeAssetProcedureFieldsAttachments,
7104
7136
  Zc as initializeAssetProcedureInstances,
7105
- no as initializeAssetProcedures,
7106
- ho as initializeAssetStageCompletions,
7107
- bo as initializeAssetStages,
7108
- _o as initializeAssetTypeAttachments,
7109
- Qo as initializeAssetTypeFieldValues,
7110
- No as initializeAssetTypeFieldValuesAttachments,
7111
- Uo as initializeAssetTypeFields,
7112
- qo as initializeAssetTypeFieldsAttachments,
7113
- ir as initializeAssetTypes,
7114
- oo as initializeAssets,
7115
- or as initializeCategories,
7137
+ nr as initializeAssetProcedures,
7138
+ lr as initializeAssetStageCompletions,
7139
+ Ar as initializeAssetStages,
7140
+ Rr as initializeAssetTypeAttachments,
7141
+ Jr as initializeAssetTypeFieldValues,
7142
+ Br as initializeAssetTypeFieldValuesAttachments,
7143
+ zr as initializeAssetTypeFields,
7144
+ kr as initializeAssetTypeFieldsAttachments,
7145
+ so as initializeAssetTypes,
7146
+ rr as initializeAssets,
7147
+ co as initializeCategories,
7116
7148
  fc as initializeConversations,
7117
- lr as initializeDocumentAttachments,
7118
- Pr as initializeEmailDomains,
7119
- zr as initializeFormRevisionAttachments,
7120
- Hr as initializeFormRevisions,
7149
+ lo as initializeDocumentAttachments,
7150
+ vo as initializeEmailDomains,
7151
+ zo as initializeFormRevisionAttachments,
7152
+ Ho as initializeFormRevisions,
7121
7153
  sd as initializeFormSubmissionAttachments,
7122
- od as initializeFormSubmissions,
7123
- Xr as initializeForms,
7154
+ rd as initializeFormSubmissions,
7155
+ Xo as initializeForms,
7124
7156
  md as initializeGeoImages,
7125
7157
  Rd as initializeIssueAssociations,
7126
7158
  Js as initializeIssueAttachments,
@@ -7135,15 +7167,15 @@ export {
7135
7167
  Yd as initializeIssues,
7136
7168
  Nu as initializeLicences,
7137
7169
  Qu as initializeOrganizationAccesses,
7138
- aA as initializeOrganizations,
7170
+ cA as initializeOrganizations,
7139
7171
  ma as initializeProjectAccesses,
7140
7172
  Fl as initializeProjectAttachments,
7141
7173
  xl as initializeProjectFiles,
7142
- Jy as initializeProjects,
7174
+ Qy as initializeProjects,
7143
7175
  Yl as initializeTeams,
7144
- My as initializeUsers,
7176
+ Ku as initializeUsers,
7145
7177
  sm as isToday,
7146
- Pd as issueAssociationReducer,
7178
+ vd as issueAssociationReducer,
7147
7179
  Ln as issueAssociationSlice,
7148
7180
  Dd as issueAttachmentReducer,
7149
7181
  Hn as issueAttachmentSlice,
@@ -7153,7 +7185,7 @@ export {
7153
7185
  Jn as issueCommentSlice,
7154
7186
  Zd as issueReducer,
7155
7187
  Qn as issueSlice,
7156
- ru as issueTypeAttachmentReducer,
7188
+ ou as issueTypeAttachmentReducer,
7157
7189
  Xn as issueTypeAttachmentSlice,
7158
7190
  Eu as issueTypeFieldValuesAttachmentReducer,
7159
7191
  ia as issueTypeFieldValuesAttachmentSlice,
@@ -7166,14 +7198,14 @@ export {
7166
7198
  Du as issueTypeReducer,
7167
7199
  aa as issueTypeSlice,
7168
7200
  Bu as issueUpdateReducer,
7169
- oa as issueUpdateSlice,
7201
+ ra as issueUpdateSlice,
7170
7202
  Wu as licenseReducer,
7171
- ra as licenseSlice,
7203
+ oa as licenseSlice,
7172
7204
  dm as logOnlyOnce,
7173
7205
  _l as markAsDeleted,
7174
- SA as markForDeletion,
7206
+ TA as markForDeletion,
7175
7207
  Gi as memoize,
7176
- _r as moveDocument,
7208
+ _o as moveDocument,
7177
7209
  O as offline,
7178
7210
  pm as onlyUniqueHashes,
7179
7211
  pc as onlyUniqueOfflineIds,
@@ -7183,11 +7215,11 @@ export {
7183
7215
  ya as organizationSlice,
7184
7216
  Il as outboxReducer,
7185
7217
  Aa as outboxSlice,
7186
- xA as overmapEnhancer,
7187
- oh as overmapReducers,
7188
- DA as overmapRootReducer,
7218
+ zA as overmapEnhancer,
7219
+ rh as overmapReducers,
7220
+ xA as overmapRootReducer,
7189
7221
  Ma as performRequest,
7190
- ol as projectAccessReducer,
7222
+ rl as projectAccessReducer,
7191
7223
  ha as projectAccessSlice,
7192
7224
  Dl as projectAttachmentReducer,
7193
7225
  ba as projectAttachmentSlice,
@@ -7201,14 +7233,14 @@ export {
7201
7233
  bi as removeIssueType,
7202
7234
  Yu as removeUser,
7203
7235
  vA as resetProjectFileObjectUrls,
7204
- rh as resetStore,
7236
+ oh as resetStore,
7205
7237
  A as restructureCreateSelectorWithArgs,
7206
7238
  Ll as saveActiveProjectFileBounds,
7207
7239
  Xp as selectAccessToken,
7208
- Hy as selectActiveOrganizationAccess,
7209
- wA as selectActiveProjectFileId,
7240
+ Wy as selectActiveOrganizationAccess,
7241
+ EA as selectActiveProjectFileId,
7210
7242
  qy as selectActiveStatusLicenses,
7211
- br as selectAllDocumentAttachments,
7243
+ bo as selectAllDocumentAttachments,
7212
7244
  jl as selectAllProjectAttachments,
7213
7245
  df as selectAncestorIdsOfDocument,
7214
7246
  Ic as selectAssetAttachmentById,
@@ -7225,7 +7257,7 @@ export {
7225
7257
  Qc as selectAssetProcedureFieldValuesMapping,
7226
7258
  Bm as selectAssetProcedureFieldValuesOfAsset,
7227
7259
  Ji as selectAssetProcedureFields,
7228
- vm as selectAssetProcedureFieldsAttachmentById,
7260
+ Pm as selectAssetProcedureFieldsAttachmentById,
7229
7261
  jc as selectAssetProcedureFieldsAttachments,
7230
7262
  qc as selectAssetProcedureFieldsAttachmentsMapping,
7231
7263
  Cm as selectAssetProcedureFieldsById,
@@ -7235,55 +7267,55 @@ export {
7235
7267
  nn as selectAssetProcedureInstances,
7236
7268
  Jm as selectAssetProcedureInstancesByIds,
7237
7269
  sn as selectAssetProcedureInstancesMapping,
7238
- so as selectAssetProcedureInstancesOfAssetProcedure,
7270
+ sr as selectAssetProcedureInstancesOfAssetProcedure,
7239
7271
  Ym as selectAssetProcedureInstancesOfAssetType,
7240
- ao as selectAssetProcedures,
7272
+ ar as selectAssetProcedures,
7241
7273
  ip as selectAssetProceduresByIds,
7242
7274
  cn as selectAssetProceduresMapping,
7243
7275
  sp as selectAssetProceduresOfOrganization,
7244
- To as selectAssetStageById,
7245
- yo as selectAssetStageCompletionById,
7276
+ Sr as selectAssetStageById,
7277
+ fr as selectAssetStageCompletionById,
7246
7278
  hn as selectAssetStageCompletionMapping,
7247
7279
  dp as selectAssetStageCompletions,
7248
- Ao as selectAssetStageCompletionsByIds,
7249
- Ro as selectAssetStages,
7280
+ yr as selectAssetStageCompletionsByIds,
7281
+ Tr as selectAssetStages,
7250
7282
  hs as selectAssetStagesByIds,
7251
7283
  mp as selectAssetStagesMappingOfAssetProcedure,
7252
7284
  pp as selectAssetStagesOfAssetProcedure,
7253
- wo as selectAssetTypeAttachmentById,
7254
- vo as selectAssetTypeAttachmentMapping,
7255
- Po as selectAssetTypeAttachments,
7285
+ vr as selectAssetTypeAttachmentById,
7286
+ Fr as selectAssetTypeAttachmentMapping,
7287
+ Pr as selectAssetTypeAttachments,
7256
7288
  Os as selectAssetTypeById,
7257
7289
  Rn as selectAssetTypeFieldValues,
7258
7290
  zp as selectAssetTypeFieldValuesAttachmentById,
7259
- Wo as selectAssetTypeFieldValuesAttachments,
7260
- Ko as selectAssetTypeFieldValuesAttachmentsByIds,
7291
+ Hr as selectAssetTypeFieldValuesAttachments,
7292
+ Wr as selectAssetTypeFieldValuesAttachmentsByIds,
7261
7293
  Sn as selectAssetTypeFieldValuesAttachmentsMapping,
7262
7294
  Ss as selectAssetTypeFieldValuesById,
7263
- tr as selectAssetTypeFieldValuesMapping,
7295
+ eo as selectAssetTypeFieldValuesMapping,
7264
7296
  Vp as selectAssetTypeFieldValuesOfAsset,
7265
7297
  Rt as selectAssetTypeFields,
7266
7298
  Op as selectAssetTypeFieldsAttachmentById,
7267
- xo as selectAssetTypeFieldsAttachments,
7268
- Do as selectAssetTypeFieldsAttachmentsMapping,
7299
+ Dr as selectAssetTypeFieldsAttachments,
7300
+ Cr as selectAssetTypeFieldsAttachmentsMapping,
7269
7301
  qp as selectAssetTypeFieldsById,
7270
- Lo as selectAssetTypeFieldsMapping,
7302
+ Gr as selectAssetTypeFieldsMapping,
7271
7303
  Ep as selectAssetTypeFieldsOfAssetType,
7272
7304
  Gp as selectAssetTypeValuesOfAssetType,
7273
7305
  Kp as selectAssetTypes,
7274
7306
  Yp as selectAssetTypesByIds,
7275
7307
  On as selectAssetTypesMapping,
7276
- uo as selectAssets,
7277
- op as selectAssetsByIds,
7308
+ dr as selectAssets,
7309
+ rp as selectAssetsByIds,
7278
7310
  dn as selectAssetsMapping,
7279
7311
  un as selectAssetsOfAssetType,
7280
7312
  Fc as selectAttachmentsOfAsset,
7281
7313
  Nc as selectAttachmentsOfAssetProcedureFieldValues,
7282
7314
  Fm as selectAttachmentsOfAssetProcedureFields,
7283
- Eo as selectAttachmentsOfAssetType,
7284
- Yo as selectAttachmentsOfAssetTypeFieldValues,
7315
+ wr as selectAttachmentsOfAssetType,
7316
+ Kr as selectAttachmentsOfAssetTypeFieldValues,
7285
7317
  _p as selectAttachmentsOfAssetTypeFields,
7286
- of as selectAttachmentsOfDocument,
7318
+ rf as selectAttachmentsOfDocument,
7287
7319
  Af as selectAttachmentsOfFormRevision,
7288
7320
  ad as selectAttachmentsOfFormSubmission,
7289
7321
  Md as selectAttachmentsOfIssue,
@@ -7294,31 +7326,31 @@ export {
7294
7326
  Cl as selectAttachmentsOfProject,
7295
7327
  ef as selectCategories,
7296
7328
  tf as selectCategoriesByIds,
7297
- Ps as selectCategoryById,
7329
+ vs as selectCategoryById,
7298
7330
  Fn as selectCategoryMapping,
7299
7331
  Hf as selectCommentsOfIssue,
7300
7332
  Am as selectConversation,
7301
7333
  Bi as selectConversationMapping,
7302
7334
  ym as selectConversations,
7303
7335
  wt as selectCurrentUser,
7304
- bA as selectDeletedRequests,
7305
- gr as selectDocumentAttachmentById,
7306
- Ar as selectDocumentAttachmentMapping,
7307
- Ir as selectDocumentById,
7308
- Or as selectDocuments,
7309
- rf as selectDocumentsByIds,
7336
+ gA as selectDeletedRequests,
7337
+ go as selectDocumentAttachmentById,
7338
+ Ao as selectDocumentAttachmentMapping,
7339
+ Io as selectDocumentById,
7340
+ Oo as selectDocuments,
7341
+ of as selectDocumentsByIds,
7310
7342
  De as selectDocumentsMapping,
7311
- qr as selectEmailDomains,
7312
- kr as selectEmailDomainsAsMapping,
7343
+ qo as selectEmailDomains,
7344
+ ko as selectEmailDomainsAsMapping,
7313
7345
  lf as selectEmailDomainsOfOrganization,
7314
7346
  Nm as selectFieldValuesOfAssetProcedureInstance,
7315
7347
  td as selectFormById,
7316
7348
  ed as selectFormMapping,
7317
- Gr as selectFormRevisionAttachmentsMapping,
7349
+ Go as selectFormRevisionAttachmentsMapping,
7318
7350
  bf as selectFormRevisionById,
7319
7351
  Ot as selectFormRevisionMapping,
7320
- Yr as selectFormRevisions,
7321
- Jr as selectFormRevisionsOfForm,
7352
+ Yo as selectFormRevisions,
7353
+ Jo as selectFormRevisionsOfForm,
7322
7354
  nd as selectFormSubmissionAttachemntsByIds,
7323
7355
  zn as selectFormSubmissionAttachmentsMapping,
7324
7356
  Gs as selectFormSubmissionById,
@@ -7332,18 +7364,18 @@ export {
7332
7364
  gd as selectGeoImageMapping,
7333
7365
  Sd as selectGeoImages,
7334
7366
  qf as selectGeoImagesOfProject,
7335
- EA as selectIsImportingProjectFile,
7367
+ kA as selectIsImportingProjectFile,
7336
7368
  Zp as selectIsLoggedIn,
7337
7369
  Od as selectIssueAssociationById,
7338
7370
  it as selectIssueAssociationMapping,
7339
7371
  Df as selectIssueAssociations,
7340
- vd as selectIssueAssociationsOfAsset,
7372
+ Pd as selectIssueAssociationsOfAsset,
7341
7373
  Fd as selectIssueAssociationsOfIssue,
7342
7374
  Id as selectIssueAssociationsToIssue,
7343
7375
  Cd as selectIssueAttachmentById,
7344
7376
  qd as selectIssueAttachmentMapping,
7345
7377
  jd as selectIssueAttachments,
7346
- oi as selectIssueById,
7378
+ ri as selectIssueById,
7347
7379
  Bd as selectIssueCommentAttachmentById,
7348
7380
  Gd as selectIssueCommentAttachmentMapping,
7349
7381
  Ld as selectIssueCommentAttachments,
@@ -7351,19 +7383,19 @@ export {
7351
7383
  Wd as selectIssueCommentMapping,
7352
7384
  sf as selectIssueCountOfCategory,
7353
7385
  Xd as selectIssueMapping,
7354
- ou as selectIssueTypeAttachmentById,
7386
+ ru as selectIssueTypeAttachmentById,
7355
7387
  au as selectIssueTypeAttachmentMapping,
7356
7388
  cu as selectIssueTypeAttachments,
7357
7389
  gi as selectIssueTypeById,
7358
7390
  ta as selectIssueTypeFieldValues,
7359
7391
  Iy as selectIssueTypeFieldValuesAttachmentById,
7360
- vu as selectIssueTypeFieldValuesAttachments,
7361
- Pu as selectIssueTypeFieldValuesAttachmentsByIds,
7392
+ Pu as selectIssueTypeFieldValuesAttachments,
7393
+ vu as selectIssueTypeFieldValuesAttachmentsByIds,
7362
7394
  na as selectIssueTypeFieldValuesAttachmentsMapping,
7363
7395
  pi as selectIssueTypeFieldValuesById,
7364
7396
  Au as selectIssueTypeFieldValuesMapping,
7365
7397
  uy as selectIssueTypeFieldValuesOfIssue,
7366
- vt as selectIssueTypeFields,
7398
+ Pt as selectIssueTypeFields,
7367
7399
  ny as selectIssueTypeFieldsAttachmentById,
7368
7400
  pu as selectIssueTypeFieldsAttachments,
7369
7401
  mu as selectIssueTypeFieldsAttachmentsMapping,
@@ -7374,66 +7406,66 @@ export {
7374
7406
  by as selectIssueTypeValuesOfIssueType,
7375
7407
  Cu as selectIssueTypes,
7376
7408
  Fy as selectIssueTypesByIds,
7377
- vy as selectIssueTypesOfOrganization,
7409
+ Py as selectIssueTypesOfOrganization,
7378
7410
  Gu as selectIssueUpdateMapping,
7379
7411
  Lu as selectIssueUpdatesOfIssue,
7380
7412
  Wf as selectIssuesByIds,
7381
7413
  ca as selectIssuesOfIssueType,
7382
- Py as selectIssuesOfIssueTypeCount,
7414
+ vy as selectIssuesOfIssueTypeCount,
7383
7415
  Mm as selectLatestAssetProcedureFieldsOfAssetProcedure,
7384
7416
  kp as selectLatestAssetTypeFieldsOfAssetType,
7385
7417
  gf as selectLatestFormRevisionOfForm,
7386
7418
  Ay as selectLatestIssueTypeFieldsOfIssueType,
7387
- gA as selectLatestRetryTime,
7419
+ SA as selectLatestRetryTime,
7388
7420
  ky as selectLicense,
7389
7421
  Hu as selectLicenseForProject,
7390
- Pt as selectLicenses,
7422
+ vt as selectLicenses,
7391
7423
  jy as selectLicensesForProjectsMapping,
7392
- yA as selectLicensesOfOrganization,
7393
- rp as selectNumberOfAssetsOfAssetType,
7394
- Ny as selectOrganizationAccessById,
7395
- Wy as selectOrganizationAccessForUser,
7424
+ AA as selectLicensesOfOrganization,
7425
+ op as selectNumberOfAssetsOfAssetType,
7426
+ Hy as selectOrganizationAccessById,
7427
+ Ky as selectOrganizationAccessForUser,
7396
7428
  el as selectOrganizationAccessUserMapping,
7397
7429
  la as selectOrganizationAccesses,
7398
- mA as selectOrganizationById,
7430
+ pA as selectOrganizationById,
7399
7431
  gl as selectOrganizationUsersAsMapping,
7400
7432
  bl as selectOrganizationUsersIds,
7401
7433
  Al as selectOrganizations,
7402
7434
  yl as selectOrganizationsMapping,
7403
- pA as selectOrganizationsWithAccess,
7404
- Ky as selectProjectAccessById,
7405
- Yy as selectProjectAccessForUser,
7435
+ fA as selectOrganizationsWithAccess,
7436
+ Yy as selectProjectAccessById,
7437
+ Jy as selectProjectAccessForUser,
7406
7438
  pa as selectProjectAccessMapping,
7407
7439
  cl as selectProjectAccessUserMapping,
7408
7440
  al as selectProjectAccesses,
7409
7441
  Ml as selectProjectAttachmentById,
7410
7442
  ql as selectProjectAttachmentMapping,
7411
- iA as selectProjectById,
7412
- PA as selectProjectFileById,
7443
+ nA as selectProjectById,
7444
+ wA as selectProjectFileById,
7413
7445
  Bl as selectProjectFileMapping,
7414
7446
  Nl as selectProjectFiles,
7415
7447
  kt as selectProjectMapping,
7416
7448
  pl as selectProjectUsersAsMapping,
7417
7449
  ml as selectProjectUsersIds,
7418
- sA as selectProjects,
7419
- fA as selectProjectsOfOrganization,
7420
- qA as selectRehydrated,
7450
+ iA as selectProjects,
7451
+ yA as selectProjectsOfOrganization,
7452
+ jA as selectRehydrated,
7421
7453
  uf as selectRootDocuments,
7422
- AA as selectSortedOrganizationUsers,
7423
- nA as selectSortedProjectUsers,
7454
+ bA as selectSortedOrganizationUsers,
7455
+ aA as selectSortedProjectUsers,
7424
7456
  Tt as selectStageMapping,
7425
7457
  Ee as selectTeamById,
7426
7458
  Oa as selectTeams,
7427
- jA as selectTeamsByIds,
7459
+ MA as selectTeamsByIds,
7428
7460
  _a as selectTeamsMapping,
7429
- MA as selectTeamsOfOrganization,
7430
- CA as selectTeamsOfUser,
7431
- Dr as selectUploadUrl,
7432
- Ly as selectUserById,
7433
- By as selectUsersByIds,
7461
+ CA as selectTeamsOfOrganization,
7462
+ DA as selectTeamsOfUser,
7463
+ Do as selectUploadUrl,
7464
+ By as selectUserById,
7465
+ Ny as selectUsersByIds,
7434
7466
  Et as selectUsersMapping,
7435
7467
  st as separateFilesFromValues,
7436
- ub as separateImageFromFields,
7468
+ lb as separateImageFromFields,
7437
7469
  Gl as setActiveProjectFileId,
7438
7470
  ap as setAsset,
7439
7471
  Sc as setAssetAttachment,
@@ -7450,10 +7482,10 @@ export {
7450
7482
  Wm as setAssetProcedureInstance,
7451
7483
  Km as setAssetProcedureInstances,
7452
7484
  tp as setAssetProcedures,
7453
- go as setAssetStage,
7485
+ br as setAssetStage,
7454
7486
  up as setAssetStages,
7455
7487
  Lp as setAssetType,
7456
- Oo as setAssetTypeAttachment,
7488
+ _r as setAssetTypeAttachment,
7457
7489
  yp as setAssetTypeAttachments,
7458
7490
  Up as setAssetTypeFieldValues,
7459
7491
  Mp as setAssetTypeFieldValuesAttachment,
@@ -7462,16 +7494,16 @@ export {
7462
7494
  Fp as setAssetTypeFields,
7463
7495
  gp as setAssetTypeFieldsAttachment,
7464
7496
  Sp as setAssetTypeFieldsAttachments,
7465
- vp as setAssetTypeFieldsMany,
7497
+ Pp as setAssetTypeFieldsMany,
7466
7498
  Bp as setAssetTypes,
7467
7499
  cp as setAssets,
7468
7500
  Ac as setConversation,
7469
7501
  Gy as setCurrentUser,
7470
- mr as setDocumentAttachment,
7502
+ mo as setDocumentAttachment,
7471
7503
  af as setDocumentAttachments,
7472
- Tr as setDocuments,
7504
+ To as setDocuments,
7473
7505
  Sf as setForm,
7474
- Nr as setFormRevision,
7506
+ No as setFormRevision,
7475
7507
  mf as setFormRevisionAttachment,
7476
7508
  pf as setFormRevisionAttachments,
7477
7509
  at as setFormSubmission,
@@ -7495,27 +7527,28 @@ export {
7495
7527
  cy as setIssueTypeFieldValues,
7496
7528
  Ty as setIssueTypeFieldValuesAttachment,
7497
7529
  Ry as setIssueTypeFieldValuesAttachments,
7498
- oy as setIssueTypeFieldValuesMany,
7530
+ ry as setIssueTypeFieldValuesMany,
7499
7531
  hy as setIssueTypeFields,
7500
7532
  Zf as setIssueTypeFieldsAttachment,
7501
7533
  ey as setIssueTypeFieldsAttachments,
7502
7534
  my as setIssueTypeFieldsMany,
7503
7535
  wy as setIssueUpdate,
7504
- ar as setLoggedIn,
7505
- cA as setOrganization,
7536
+ no as setLoggedIn,
7537
+ rA as setOrganization,
7506
7538
  fl as setOrganizations,
7507
- Qy as setProject,
7508
- Pl as setProjectAttachment,
7539
+ Ly as setProfilePicture,
7540
+ Xy as setProject,
7541
+ vl as setProjectAttachment,
7509
7542
  wl as setProjectAttachments,
7510
- _A as setProjectFile,
7511
- OA as setProjectFiles,
7512
- rl as setProjects,
7513
- kA as setRehydrated,
7543
+ OA as setProjectFile,
7544
+ IA as setProjectFiles,
7545
+ ol as setProjects,
7546
+ qA as setRehydrated,
7514
7547
  we as setTeam,
7515
7548
  Jp as setTokens,
7516
- Cr as setUploadUrl,
7549
+ Co as setUploadUrl,
7517
7550
  Cy as setUser,
7518
- Ku as setUsers,
7551
+ My as setUsers,
7519
7552
  em as shallowEqual,
7520
7553
  hm as slugify,
7521
7554
  lm as spacesToDashesLower,
@@ -7540,32 +7573,32 @@ export {
7540
7573
  Hm as updateAssetProcedureInstances,
7541
7574
  Xm as updateAssetProcedures,
7542
7575
  us as updateAssetStage,
7543
- mo as updateAssetStageCompletion,
7544
- po as updateAssetStageCompletions,
7576
+ hr as updateAssetStageCompletion,
7577
+ mr as updateAssetStageCompletions,
7545
7578
  nt as updateAssetStages,
7546
7579
  We as updateAssetType,
7547
7580
  Ap as updateAssetTypeAttachment,
7548
- Io as updateAssetTypeAttachments,
7581
+ Or as updateAssetTypeAttachments,
7549
7582
  He as updateAssetTypeFieldValues,
7550
7583
  Dp as updateAssetTypeFieldValuesAttachment,
7551
- Ho as updateAssetTypeFieldValuesAttachments,
7552
- Zo as updateAssetTypeFieldValuesMany,
7553
- Vo as updateAssetTypeFields,
7584
+ Nr as updateAssetTypeFieldValuesAttachments,
7585
+ Xr as updateAssetTypeFieldValuesMany,
7586
+ $r as updateAssetTypeFields,
7554
7587
  Tp as updateAssetTypeFieldsAttachment,
7555
- Mo as updateAssetTypeFieldsAttachments,
7556
- Pp as updateAssetTypeFieldsMany,
7588
+ jr as updateAssetTypeFieldsAttachments,
7589
+ vp as updateAssetTypeFieldsMany,
7557
7590
  Hp as updateAssetTypes,
7558
7591
  np as updateAssets,
7559
- rr as updateCategory,
7592
+ ro as updateCategory,
7560
7593
  bc as updateConversation,
7561
7594
  cf as updateDocumentAttachment,
7562
- pr as updateDocumentAttachments,
7595
+ po as updateDocumentAttachments,
7563
7596
  ye as updateDocuments,
7564
7597
  Rf as updateForm,
7565
7598
  ff as updateFormRevisionAttachment,
7566
- $r as updateFormRevisionAttachments,
7567
- rd as updateFormSubmission,
7568
- vf as updateFormSubmissionAttachment,
7599
+ $o as updateFormRevisionAttachments,
7600
+ od as updateFormSubmission,
7601
+ Pf as updateFormSubmissionAttachment,
7569
7602
  id as updateFormSubmissionAttachments,
7570
7603
  Ef as updateFormSubmissions,
7571
7604
  Ad as updateGeoImage,
@@ -7583,22 +7616,22 @@ export {
7583
7616
  Ye as updateIssueTypeFieldValues,
7584
7617
  _y as updateIssueTypeFieldValuesAttachment,
7585
7618
  Fu as updateIssueTypeFieldValuesAttachments,
7586
- ry as updateIssueTypeFieldValuesMany,
7619
+ oy as updateIssueTypeFieldValuesMany,
7587
7620
  Tu as updateIssueTypeFields,
7588
7621
  ty as updateIssueTypeFieldsAttachment,
7589
7622
  lu as updateIssueTypeFieldsAttachments,
7590
7623
  py as updateIssueTypeFieldsMany,
7591
7624
  pe as updateLicense,
7592
- uA as updateOrganization,
7625
+ lA as updateOrganization,
7593
7626
  Xu as updateOrganizationAccess,
7594
- dA as updateOrganizations,
7627
+ uA as updateOrganizations,
7595
7628
  dl as updateProject,
7596
7629
  sl as updateProjectAccess,
7597
- RA as updateProjectAttachment,
7630
+ _A as updateProjectAttachment,
7598
7631
  El as updateProjectAttachments,
7599
7632
  Ei as updateProjectFile,
7600
- FA as updateProjectFiles,
7601
- eA as updateProjects,
7633
+ PA as updateProjectFiles,
7634
+ tA as updateProjects,
7602
7635
  qi as updateTeam,
7603
7636
  Uy as updateUser,
7604
7637
  zy as updateUsers,