@overmap-ai/core 1.0.80-presigned-get-improvements.0 → 1.0.80-presigned-get-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.
@@ -29,51 +29,51 @@ const ic = Object.freeze([]), nc = Object.freeze({}), rc = 6e4, ac = [
29
29
  var cc = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(cc || {}), o = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(o || {}), dc = /* @__PURE__ */ ((t) => (t[t.PLANNED = 0] = "PLANNED", t[t.ACTIVE = 1] = "ACTIVE", t[t.MAINTENANCE = 2] = "MAINTENANCE", t[t.INACTIVE = 3] = "INACTIVE", t[t.RETIRED = 4] = "RETIRED", t[t.DISPOSED = 5] = "DISPOSED", t))(dc || {}), x = /* @__PURE__ */ ((t) => (t.STATUS = "status", t.PRIORITY = "priority", t.DESCRIPTION = "description", t.TITLE = "title", t.ASSIGNED_TO = "assigned_to", t.DUE_DATE = "due_date", t))(x || {}), oc = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.PLANNED = 1] = "PLANNED", t[t.IN_PROGRESS = 2] = "IN_PROGRESS", t[t.COMPLETED = 3] = "COMPLETED", t[t.CANCELLED = 4] = "CANCELLED", t))(oc || {}), uc = /* @__PURE__ */ ((t) => (t[t.LOWEST = 0] = "LOWEST", t[t.LOW = 2] = "LOW", t[t.MEDIUM = 4] = "MEDIUM", t[t.HIGH = 6] = "HIGH", t[t.HIGHEST = 8] = "HIGHEST", t))(uc || {}), lc = /* @__PURE__ */ ((t) => (t[t.ADD_ASSIGNEE = 0] = "ADD_ASSIGNEE", t[t.REMOVE_ASSIGNEE = 2] = "REMOVE_ASSIGNEE", t[t.ADD_REVIEWER = 4] = "ADD_REVIEWER", t[t.REMOVE_REVIEWER = 6] = "REMOVE_REVIEWER", t))(lc || {}), hc = /* @__PURE__ */ ((t) => (t[t.APPROVED = 0] = "APPROVED", t[t.REJECTED = 2] = "REJECTED", t[t.CHANGES_REQUESTED = 4] = "CHANGES_REQUESTED", t))(hc || {});
30
30
  function P(t) {
31
31
  return {
32
- addOne: (l, y) => {
33
- const A = t(y.payload);
34
- l.instances[A] = y.payload;
32
+ addOne: (l, m) => {
33
+ const A = t(m.payload);
34
+ l.instances[A] = m.payload;
35
35
  },
36
- addMany: (l, y) => {
37
- for (const A of y.payload) {
38
- const F = t(A);
39
- l.instances[F] = A;
36
+ addMany: (l, m) => {
37
+ for (const A of m.payload) {
38
+ const R = t(A);
39
+ l.instances[R] = A;
40
40
  }
41
41
  },
42
- setOne: (l, y) => {
43
- const A = t(y.payload);
44
- l.instances[A] = y.payload;
42
+ setOne: (l, m) => {
43
+ const A = t(m.payload);
44
+ l.instances[A] = m.payload;
45
45
  },
46
- setMany: (l, y) => {
47
- for (const A of y.payload) {
48
- const F = t(A);
49
- l.instances[F] = A;
46
+ setMany: (l, m) => {
47
+ for (const A of m.payload) {
48
+ const R = t(A);
49
+ l.instances[R] = A;
50
50
  }
51
51
  },
52
- updateOne: (l, y) => {
53
- const A = t(y.payload);
54
- l.instances[A] = y.payload;
52
+ updateOne: (l, m) => {
53
+ const A = t(m.payload);
54
+ l.instances[A] = m.payload;
55
55
  },
56
- updateMany: (l, y) => {
57
- for (const A of y.payload) {
58
- const F = t(A);
59
- l.instances[F] = A;
56
+ updateMany: (l, m) => {
57
+ for (const A of m.payload) {
58
+ const R = t(A);
59
+ l.instances[R] = A;
60
60
  }
61
61
  },
62
- deleteOne: (l, y) => {
63
- delete l.instances[y.payload];
62
+ deleteOne: (l, m) => {
63
+ delete l.instances[m.payload];
64
64
  },
65
- deleteMany: (l, y) => {
66
- for (const A of y.payload)
65
+ deleteMany: (l, m) => {
66
+ for (const A of m.payload)
67
67
  delete l.instances[A];
68
68
  },
69
- initialize: (l, y) => {
69
+ initialize: (l, m) => {
70
70
  l.instances = {};
71
71
  const A = /* @__PURE__ */ new Set();
72
- for (const F of y.payload) {
73
- const M = t(F);
74
- A.add(M), l.instances[M] = F;
72
+ for (const R of m.payload) {
73
+ const M = t(R);
74
+ A.add(M), l.instances[M] = R;
75
75
  }
76
- A.size !== y.payload.length && console.warn("duplicate ids detected when initializing model instances.");
76
+ A.size !== m.payload.length && console.warn("duplicate ids detected when initializing model instances.");
77
77
  }
78
78
  };
79
79
  }
@@ -87,8 +87,8 @@ function Yb(t) {
87
87
  },
88
88
  selectMany: (c, h) => {
89
89
  const l = new Set(c[t]);
90
- for (const y of h.payload)
91
- l.has(y) || l.add(y);
90
+ for (const m of h.payload)
91
+ l.has(m) || l.add(m);
92
92
  c[t] = Array.from(l);
93
93
  },
94
94
  unselectOne: (c, h) => {
@@ -97,8 +97,8 @@ function Yb(t) {
97
97
  },
98
98
  unselectMany: (c, h) => {
99
99
  const l = new Set(c[t]);
100
- for (const y of h.payload)
101
- l.has(y) && l.delete(y);
100
+ for (const m of h.payload)
101
+ l.has(m) && l.delete(m);
102
102
  c[t] = Array.from(l);
103
103
  },
104
104
  toggleOne: (c, h) => {
@@ -107,8 +107,8 @@ function Yb(t) {
107
107
  },
108
108
  toggleMany: (c, h) => {
109
109
  const l = new Set(c[t]);
110
- for (const y of h.payload)
111
- l.has(y) ? l.delete(y) : l.add(y);
110
+ for (const m of h.payload)
111
+ l.has(m) ? l.delete(m) : l.add(m);
112
112
  c[t] = Array.from(l);
113
113
  }
114
114
  };
@@ -335,7 +335,7 @@ class hM {
335
335
  return p([this.getData], (s) => f(this.performOperations(s)));
336
336
  }
337
337
  }
338
- const m = (
338
+ const y = (
339
339
  // oxlint-disable-next-line no-explicit-any REASON: Need for generic args
340
340
  (t) => (...s) => (e) => t(e, ...s)
341
341
  ), N = P((t) => t.uuid), Os = {
@@ -371,7 +371,7 @@ const m = (
371
371
  } = Gi.actions, Wi = (t) => t.agentsReducer.instances, AM = p(
372
372
  [Wi],
373
373
  (t) => Object.values(t)
374
- ), OM = m(
374
+ ), OM = y(
375
375
  p(
376
376
  [Wi, (t, s) => s],
377
377
  (t, s) => t[s]
@@ -409,12 +409,12 @@ const m = (
409
409
  } = Ki.actions, Vc = (t) => t.assetAttachmentReducer.instances, Zi = p(
410
410
  [Vc],
411
411
  (t) => Object.values(t)
412
- ), $c = (t) => (s) => s.assetAttachmentReducer.instances[t], xc = m(
412
+ ), $c = (t) => (s) => s.assetAttachmentReducer.instances[t], xc = y(
413
413
  p([Zi, (t, s) => s], (t, s) => {
414
414
  const e = new Set(s);
415
415
  return f(t.filter(({ uuid: i }) => e.has(i)));
416
416
  })
417
- ), Cc = m(
417
+ ), Cc = y(
418
418
  p([Zi, (t, s) => s], (t, s) => f(t.filter(({ asset: e }) => s === e)))
419
419
  ), Uc = Ki.reducer, G = P(
420
420
  (t) => t.uuid
@@ -451,14 +451,14 @@ const m = (
451
451
  } = Qi.actions, Jc = (t) => t.assetCommentReducer.instances, Kt = p(
452
452
  [Jc],
453
453
  (t) => f(Object.values(t).toSorted(wt))
454
- ), Zc = (t) => (s) => s.assetCommentReducer.instances[t], Qc = m(
454
+ ), Zc = (t) => (s) => s.assetCommentReducer.instances[t], Qc = y(
455
455
  p([Kt, (t, s) => s], (t, s) => {
456
456
  const e = new Set(s);
457
457
  return f(t.filter(({ uuid: i }) => e.has(i)));
458
458
  })
459
- ), Xc = m(
459
+ ), Xc = y(
460
460
  p([Kt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset === s)))
461
- ), ed = m(
461
+ ), ed = y(
462
462
  p([Kt, (t, s) => s], (t, s) => {
463
463
  const e = new Set(s);
464
464
  return f(t.filter((i) => e.has(i.asset)));
@@ -493,11 +493,11 @@ const m = (
493
493
  deleteAssets: tn,
494
494
  setAsset: cd,
495
495
  setAssets: dd
496
- } = Xi.actions, od = (t) => t.assetReducer.instances, Yt = p([od], (t) => f(Object.values(t))), TM = m(
496
+ } = Xi.actions, od = (t) => t.assetReducer.instances, Yt = p([od], (t) => f(Object.values(t))), TM = y(
497
497
  p([Yt, (t, s) => s], (t, s) => f(t.filter(({ project: e }) => e === s)))
498
- ), ud = m(
498
+ ), ud = y(
499
499
  p([Yt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset_type === s)))
500
- ), ld = (t) => (s) => s.assetReducer.instances[t], hd = m(
500
+ ), ld = (t) => (s) => s.assetReducer.instances[t], hd = y(
501
501
  p([Yt, (t, s) => s], (t, s) => {
502
502
  const e = new Set(s);
503
503
  return f(t.filter(({ uuid: i }) => e.has(i)));
@@ -535,7 +535,7 @@ const m = (
535
535
  } = sn.actions, Id = (t) => t.assetTypeAttachmentReducer.instances, an = p(
536
536
  [Id],
537
537
  (t) => Object.values(t)
538
- ), Pd = (t) => (s) => s.assetTypeAttachmentReducer.instances[t], _d = m(
538
+ ), Pd = (t) => (s) => s.assetTypeAttachmentReducer.instances[t], _d = y(
539
539
  p(
540
540
  [an, (t, s) => s],
541
541
  (t, s) => {
@@ -543,7 +543,7 @@ const m = (
543
543
  return f(t.filter(({ uuid: i }) => e.has(i)));
544
544
  }
545
545
  )
546
- ), bd = m(
546
+ ), bd = y(
547
547
  p([an, (t, s) => s], (t, s) => f(t.filter(({ asset_type: e }) => s === e)))
548
548
  ), Md = sn.reducer, Y = P((t) => t.uuid), bs = {
549
549
  instances: {}
@@ -578,12 +578,12 @@ const m = (
578
578
  } = cn.actions, Dd = (t) => t.assetTypeFieldsAttachmentReducer.instances, dn = p(
579
579
  [Dd],
580
580
  (t) => Object.values(t)
581
- ), IM = m(
581
+ ), IM = y(
582
582
  p(
583
583
  [dn, (t, s) => s],
584
584
  (t, s) => f(t.filter((e) => e.fields_revision === s))
585
585
  )
586
- ), qd = (t) => (s) => s.assetTypeFieldsAttachmentReducer.instances[t], jd = m(
586
+ ), qd = (t) => (s) => s.assetTypeFieldsAttachmentReducer.instances[t], jd = y(
587
587
  p(
588
588
  [dn, (t, s) => s],
589
589
  (t, s) => {
@@ -621,11 +621,11 @@ const m = (
621
621
  updateAssetTypeFieldsMany: Hd,
622
622
  deleteAssetTypeFields: Gd,
623
623
  deleteAssetTypeFieldsMany: Wd
624
- } = on.actions, Kd = (t) => t.assetTypeFieldsReducer.instances, vt = p([Kd], (t) => Object.values(t)), PM = m(
624
+ } = on.actions, Kd = (t) => t.assetTypeFieldsReducer.instances, vt = p([Kd], (t) => Object.values(t)), PM = y(
625
625
  p([vt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset_type === s)))
626
- ), _M = m(
626
+ ), _M = y(
627
627
  p([vt, (t, s) => s], (t, s) => t.filter((e) => e.asset_type === s).toSorted(wt).pop())
628
- ), Yd = (t) => (s) => s.assetTypeFieldsReducer.instances[t], Jd = m(
628
+ ), Yd = (t) => (s) => s.assetTypeFieldsReducer.instances[t], Jd = y(
629
629
  p([vt, (t, s) => s], (t, s) => {
630
630
  const e = new Set(s);
631
631
  return f(t.filter(({ uuid: i }) => e.has(i)));
@@ -663,7 +663,7 @@ const m = (
663
663
  } = un.actions, ro = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, pn = p(
664
664
  [ro],
665
665
  (t) => Object.values(t)
666
- ), ao = (t) => (s) => s.assetTypeFieldValuesAttachmentReducer.instances[t], co = m(
666
+ ), ao = (t) => (s) => s.assetTypeFieldValuesAttachmentReducer.instances[t], co = y(
667
667
  p(
668
668
  [pn, (t, s) => s],
669
669
  (t, s) => {
@@ -671,7 +671,7 @@ const m = (
671
671
  return f(t.filter(({ uuid: i }) => e.has(i)));
672
672
  }
673
673
  )
674
- ), oo = m(
674
+ ), oo = y(
675
675
  p(
676
676
  [pn, (t, s) => s],
677
677
  (t, s) => f(t.filter((e) => e.field_values === s))
@@ -706,9 +706,9 @@ const m = (
706
706
  updateAssetTypeFieldValuesMany: So,
707
707
  deleteAssetTypeFieldValues: Ao,
708
708
  deleteAssetTypeFieldValuesMany: Oo
709
- } = mn.actions, To = (t) => t.assetTypeFieldValuesReducer.instances, Jt = p([To], (t) => Object.values(t)), bM = m(
709
+ } = mn.actions, To = (t) => t.assetTypeFieldValuesReducer.instances, Jt = p([To], (t) => Object.values(t)), bM = y(
710
710
  p([Jt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset === s)))
711
- ), MM = m(
711
+ ), MM = y(
712
712
  p(
713
713
  [vt, Jt, (t, s) => s],
714
714
  (t, s, e) => {
@@ -718,7 +718,7 @@ const m = (
718
718
  return f(s.filter((n) => i.has(n.fields_revision)));
719
719
  }
720
720
  )
721
- ), Io = (t) => (s) => s.assetTypeFieldValuesReducer.instances[t], Po = m(
721
+ ), Io = (t) => (s) => s.assetTypeFieldValuesReducer.instances[t], Po = y(
722
722
  p(
723
723
  [Jt, (t, s) => s],
724
724
  (t, s) => {
@@ -759,7 +759,7 @@ const m = (
759
759
  } = yn.actions, Bo = (t) => t.assetTypeIdentifierReducer.instances, fn = p(
760
760
  [Bo],
761
761
  (t) => Object.values(t)
762
- ), zo = (t) => (s) => s.assetTypeIdentifierReducer.instances[t], Do = m(
762
+ ), zo = (t) => (s) => s.assetTypeIdentifierReducer.instances[t], Do = y(
763
763
  p(
764
764
  [fn, (t, s) => s],
765
765
  (t, s) => {
@@ -767,7 +767,7 @@ const m = (
767
767
  return f(t.filter(({ uuid: i }) => e.has(i)));
768
768
  }
769
769
  )
770
- ), gM = m(
770
+ ), gM = y(
771
771
  p([fn, (t, s) => s], (t, s) => f(t.filter((e) => e.asset_type === s)))
772
772
  ), qo = yn.reducer, ee = P((t) => t.uuid), Fs = {
773
773
  instances: {}
@@ -802,7 +802,7 @@ const m = (
802
802
  } = Sn.actions, Go = (t) => t.assetTypeIdentifierValueReducer.instances, Zt = p(
803
803
  [Go],
804
804
  (t) => Object.values(t)
805
- ), Wo = (t) => (s) => s.assetTypeIdentifierValueReducer.instances[t], Ko = m(
805
+ ), Wo = (t) => (s) => s.assetTypeIdentifierValueReducer.instances[t], Ko = y(
806
806
  p(
807
807
  [Zt, (t, s) => s],
808
808
  (t, s) => {
@@ -810,9 +810,9 @@ const m = (
810
810
  return f(t.filter(({ uuid: i }) => e.has(i)));
811
811
  }
812
812
  )
813
- ), wM = m(
813
+ ), wM = y(
814
814
  p([Zt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset === s)))
815
- ), RM = m(
815
+ ), RM = y(
816
816
  p(
817
817
  [Zt, (t, s) => s],
818
818
  (t, s) => f(
@@ -854,12 +854,12 @@ const m = (
854
854
  } = An.actions, ru = (t) => t.assetTypeReducer.instances, On = p(
855
855
  [ru],
856
856
  (t) => Object.values(t)
857
- ), au = (t) => (s) => s.assetTypeReducer.instances[t], cu = m(
857
+ ), au = (t) => (s) => s.assetTypeReducer.instances[t], cu = y(
858
858
  p([On, (t, s) => s], (t, s) => {
859
859
  const e = new Set(s);
860
860
  return f(t.filter(({ uuid: i }) => e.has(i)));
861
861
  })
862
- ), FM = m(
862
+ ), FM = y(
863
863
  p([On, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
864
864
  ), du = An.reducer, se = P((t) => t.uuid), vs = {
865
865
  instances: {}
@@ -891,12 +891,12 @@ const m = (
891
891
  updateAssetTypeStatuses: yu,
892
892
  deleteAssetTypeStatus: fu,
893
893
  deleteAssetTypeStatuses: Su
894
- } = Tn.actions, Au = (t) => t.assetTypeStatusReducer.instances, In = p([Au], (t) => f(Object.values(t).toSorted(Pc))), Ou = (t) => (s) => s.assetTypeStatusReducer.instances[t], Tu = m(
894
+ } = Tn.actions, Au = (t) => t.assetTypeStatusReducer.instances, In = p([Au], (t) => f(Object.values(t).toSorted(Pc))), Ou = (t) => (s) => s.assetTypeStatusReducer.instances[t], Tu = y(
895
895
  p([In, (t, s) => s], (t, s) => {
896
896
  const e = new Set(s);
897
897
  return f(t.filter(({ uuid: i }) => e.has(i)));
898
898
  })
899
- ), EM = m(
899
+ ), EM = y(
900
900
  p([In, (t, s) => s], (t, s) => f(t.filter((e) => e.asset_type === s)))
901
901
  ), Iu = Tn.reducer, ks = {
902
902
  accessToken: "",
@@ -947,7 +947,7 @@ const m = (
947
947
  } = Pn.actions, Bu = (t) => t.documentAttachmentReducer.instances, _n = p(
948
948
  [Bu],
949
949
  (t) => Object.values(t)
950
- ), zu = (t) => (s) => s.documentAttachmentReducer.instances[t], Du = m(
950
+ ), zu = (t) => (s) => s.documentAttachmentReducer.instances[t], Du = y(
951
951
  p(
952
952
  [_n, (t, s) => s],
953
953
  (t, s) => {
@@ -955,7 +955,7 @@ const m = (
955
955
  return f(t.filter(({ uuid: i }) => e.has(i)));
956
956
  }
957
957
  )
958
- ), DM = m(
958
+ ), DM = y(
959
959
  p([_n, (t, s) => s], (t, s) => f(t.filter(({ document: e }) => s === e)))
960
960
  ), qu = Pn.reducer, ne = P(({ uuid: t }) => t), zs = {
961
961
  instances: {}
@@ -989,16 +989,16 @@ const m = (
989
989
  } = bn.actions, Gu = bn.reducer, Mn = (t) => t.documentsReducer.instances, Xt = p(
990
990
  [Mn],
991
991
  (t) => Object.values(t)
992
- ), Wu = (t) => (s) => s.documentsReducer.instances[t], Ku = m(
992
+ ), Wu = (t) => (s) => s.documentsReducer.instances[t], Ku = y(
993
993
  p([Xt, (t, s) => s], (t, s) => {
994
994
  const e = new Set(s);
995
995
  return f(t.filter(({ uuid: i }) => e.has(i)));
996
996
  })
997
- ), qM = m(
997
+ ), qM = y(
998
998
  p([Xt, (t, s) => s], (t, s) => t.filter((e) => e.project === s))
999
- ), jM = m(
999
+ ), jM = y(
1000
1000
  p([Xt, (t, s) => s], (t, s) => t.filter((e) => e.organization === s))
1001
- ), Yu = m(
1001
+ ), Yu = y(
1002
1002
  p([Mn, (t, s) => s], (t, s) => {
1003
1003
  if (!t[s]) return f([]);
1004
1004
  const n = Mc(s, Object.values(t)).all().map(({ model: a }) => a);
@@ -1036,12 +1036,12 @@ const m = (
1036
1036
  updateEmailDomains: sl,
1037
1037
  deleteEmailDomain: il,
1038
1038
  deleteEmailDomains: nl
1039
- } = gn.actions, rl = (t) => t.emailDomainsReducer.instances, wn = p([rl], (t) => Object.values(t)), al = (t) => (s) => s.emailDomainsReducer.instances[t], cl = m(
1039
+ } = gn.actions, rl = (t) => t.emailDomainsReducer.instances, wn = p([rl], (t) => Object.values(t)), al = (t) => (s) => s.emailDomainsReducer.instances[t], cl = y(
1040
1040
  p([wn, (t, s) => s], (t, s) => {
1041
1041
  const e = new Set(s);
1042
1042
  return f(t.filter(({ uuid: i }) => e.has(i)));
1043
1043
  })
1044
- ), VM = m(
1044
+ ), VM = y(
1045
1045
  p([wn, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
1046
1046
  ), dl = gn.reducer, qs = {
1047
1047
  s3Urls: {}
@@ -1101,12 +1101,12 @@ const m = (
1101
1101
  } = En.actions, Tl = (t) => t.formIdentifierReducer.instances, vn = p(
1102
1102
  [Tl],
1103
1103
  (t) => Object.values(t)
1104
- ), Il = (t) => (s) => s.formIdentifierReducer.instances[t], Pl = m(
1104
+ ), Il = (t) => (s) => s.formIdentifierReducer.instances[t], Pl = y(
1105
1105
  p([vn, (t, s) => s], (t, s) => {
1106
1106
  const e = new Set(s);
1107
1107
  return f(t.filter(({ uuid: i }) => e.has(i)));
1108
1108
  })
1109
- ), CM = m(
1109
+ ), CM = y(
1110
1110
  p([vn, (t, s) => s], (t, s) => f(t.filter((e) => e.form === s)))
1111
1111
  ), _l = En.reducer, ce = P((t) => t.uuid), Vs = {
1112
1112
  instances: {}
@@ -1141,7 +1141,7 @@ const m = (
1141
1141
  } = kn.actions, Bl = (t) => t.formIdentifierValueReducer.instances, es = p(
1142
1142
  [Bl],
1143
1143
  (t) => Object.values(t)
1144
- ), zl = (t) => (s) => s.formIdentifierValueReducer.instances[t], Dl = m(
1144
+ ), zl = (t) => (s) => s.formIdentifierValueReducer.instances[t], Dl = y(
1145
1145
  p(
1146
1146
  [es, (t, s) => s],
1147
1147
  (t, s) => {
@@ -1149,14 +1149,14 @@ const m = (
1149
1149
  return f(t.filter(({ uuid: i }) => e.has(i)));
1150
1150
  }
1151
1151
  )
1152
- ), UM = m(
1152
+ ), UM = y(
1153
1153
  p(
1154
1154
  [es, (t, s) => s],
1155
1155
  (t, s) => f(
1156
1156
  t.filter((e) => e.form_submission === s)
1157
1157
  )
1158
1158
  )
1159
- ), LM = m(
1159
+ ), LM = y(
1160
1160
  p(
1161
1161
  [es, (t, s) => s],
1162
1162
  (t, s) => f(
@@ -1196,12 +1196,12 @@ const m = (
1196
1196
  } = Bn.actions, ts = (t) => t.formRevisionAttachmentReducer.instances, Gl = p(
1197
1197
  [ts],
1198
1198
  (t) => Object.values(t)
1199
- ), Wl = m(
1199
+ ), Wl = y(
1200
1200
  p(
1201
1201
  [ts, (t, s) => s],
1202
1202
  (t, s) => t[s]
1203
1203
  )
1204
- ), Kl = m(
1204
+ ), Kl = y(
1205
1205
  p(
1206
1206
  [Gl, (t, s) => s],
1207
1207
  (t, s) => {
@@ -1209,7 +1209,7 @@ const m = (
1209
1209
  return f(t.filter(({ uuid: i }) => e.has(i)));
1210
1210
  }
1211
1211
  )
1212
- ), NM = m(
1212
+ ), NM = y(
1213
1213
  p([ts, (t, s) => s], (t, s) => f(
1214
1214
  Object.values(t).filter((e) => e.form_revision === s)
1215
1215
  ))
@@ -1248,14 +1248,14 @@ const m = (
1248
1248
  } = zn.actions, ih = (t) => t.formRevisionReducer.instances, ss = p(
1249
1249
  [ih],
1250
1250
  (t) => Object.values(t)
1251
- ), nh = (t) => (s) => s.formRevisionReducer.instances[t], rh = m(
1251
+ ), nh = (t) => (s) => s.formRevisionReducer.instances[t], rh = y(
1252
1252
  p([ss, (t, s) => s], (t, s) => {
1253
1253
  const e = new Set(s);
1254
1254
  return f(t.filter(({ uuid: i }) => e.has(i)));
1255
1255
  })
1256
- ), HM = m(
1256
+ ), HM = y(
1257
1257
  p([ss, (t, s) => s], (t, s) => t.filter((e) => e.form === s).toSorted(wt).pop())
1258
- ), ah = m(
1258
+ ), ah = y(
1259
1259
  p(
1260
1260
  [ss, (t, s) => s],
1261
1261
  (t, s) => f(t.filter((e) => e.form === s))
@@ -1290,12 +1290,12 @@ const m = (
1290
1290
  updateForms: mh,
1291
1291
  deleteForm: yh,
1292
1292
  deleteForms: fh
1293
- } = jn.actions, Sh = jn.reducer, Ah = (t) => t.formReducer.instances, Vn = p([Ah], (t) => Object.values(t)), Oh = (t) => (s) => s.formReducer.instances[t], Th = m(
1293
+ } = jn.actions, Sh = jn.reducer, Ah = (t) => t.formReducer.instances, Vn = p([Ah], (t) => Object.values(t)), Oh = (t) => (s) => s.formReducer.instances[t], Th = y(
1294
1294
  p([Vn, (t, s) => s], (t, s) => {
1295
1295
  const e = new Set(s);
1296
1296
  return f(t.filter(({ uuid: i }) => e.has(i)));
1297
1297
  })
1298
- ), GM = m(
1298
+ ), GM = y(
1299
1299
  p([Vn, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
1300
1300
  ), le = P((t) => t.uuid), Us = {
1301
1301
  instances: {}
@@ -1330,12 +1330,12 @@ const m = (
1330
1330
  } = $n.actions, Un = (t) => t.formSubmissionAttachmentReducer.instances, Ln = p(
1331
1331
  [Un],
1332
1332
  (t) => Object.values(t)
1333
- ), Rh = m(
1333
+ ), Rh = y(
1334
1334
  p(
1335
1335
  [Un, (t, s) => s],
1336
1336
  (t, s) => t[s]
1337
1337
  )
1338
- ), Nn = m(
1338
+ ), Nn = y(
1339
1339
  p(
1340
1340
  [Ln, (t, s) => s],
1341
1341
  (t, s) => {
@@ -1345,7 +1345,7 @@ const m = (
1345
1345
  );
1346
1346
  }
1347
1347
  )
1348
- ), Fh = Nn, Eh = m(
1348
+ ), Fh = Nn, Eh = y(
1349
1349
  p(
1350
1350
  [Ln, (t, s) => s],
1351
1351
  (t, s) => f(
@@ -1387,24 +1387,24 @@ const m = (
1387
1387
  } = Hn.actions, $h = (t) => t.formSubmissionReducer.instances, L = p(
1388
1388
  [$h],
1389
1389
  (t) => Object.values(t)
1390
- ), xh = (t) => (s) => s.formSubmissionReducer.instances[t], Ch = m(
1390
+ ), xh = (t) => (s) => s.formSubmissionReducer.instances[t], Ch = y(
1391
1391
  p([L, (t, s) => s], (t, s) => {
1392
1392
  const e = new Set(s);
1393
1393
  return f(t.filter(({ uuid: i }) => e.has(i)));
1394
1394
  })
1395
- ), Uh = m(
1395
+ ), Uh = y(
1396
1396
  p([L, (t, s) => s], (t, s) => f(t.filter((e) => e.form === s)))
1397
- ), WM = m(
1397
+ ), WM = y(
1398
1398
  p(
1399
1399
  [L, (t, s) => s],
1400
1400
  (t, s) => f(t.filter(({ organization: e }) => e === s))
1401
1401
  )
1402
- ), KM = m(
1402
+ ), KM = y(
1403
1403
  p(
1404
1404
  [L, (t, s) => s],
1405
1405
  (t, s) => f(t.filter(({ project: e }) => e === s))
1406
1406
  )
1407
- ), YM = m(
1407
+ ), YM = y(
1408
1408
  p(
1409
1409
  [
1410
1410
  L,
@@ -1415,7 +1415,7 @@ const m = (
1415
1415
  t.filter(({ project: i, form: n }) => i === s && n === e)
1416
1416
  )
1417
1417
  )
1418
- ), JM = m(
1418
+ ), JM = y(
1419
1419
  p(
1420
1420
  [
1421
1421
  L,
@@ -1426,9 +1426,9 @@ const m = (
1426
1426
  t.filter(({ organization: i, form: n }) => i === s && n === e)
1427
1427
  )
1428
1428
  )
1429
- ), Lh = m(
1429
+ ), Lh = y(
1430
1430
  p([L, (t, s) => s], (t, s) => f(t.filter(({ issue: e }) => e === s)))
1431
- ), Nh = m(
1431
+ ), Nh = y(
1432
1432
  p(
1433
1433
  [L, (t, s) => s],
1434
1434
  (t, s) => {
@@ -1436,9 +1436,9 @@ const m = (
1436
1436
  return f(t.filter(({ issue: i }) => i && e.has(i)));
1437
1437
  }
1438
1438
  )
1439
- ), Hh = m(
1439
+ ), Hh = y(
1440
1440
  p([L, (t, s) => s], (t, s) => f(t.filter(({ asset: e }) => e === s)))
1441
- ), Gh = m(
1441
+ ), Gh = y(
1442
1442
  p(
1443
1443
  [L, (t, s) => s],
1444
1444
  (t, s) => {
@@ -1478,12 +1478,12 @@ const m = (
1478
1478
  updateGeoImages: ep,
1479
1479
  deleteGeoImage: tp,
1480
1480
  deleteGeoImages: sp
1481
- } = Gn.actions, ip = (t) => t.geoImageReducer.instances, Wn = p([ip], (t) => Object.values(t)), np = (t) => (s) => s.geoImageReducer.instances[t], rp = m(
1481
+ } = Gn.actions, ip = (t) => t.geoImageReducer.instances, Wn = p([ip], (t) => Object.values(t)), np = (t) => (s) => s.geoImageReducer.instances[t], rp = y(
1482
1482
  p([Wn, (t, s) => s], (t, s) => {
1483
1483
  const e = new Set(s);
1484
1484
  return f(t.filter(({ uuid: i }) => e.has(i)));
1485
1485
  })
1486
- ), ZM = m(
1486
+ ), ZM = y(
1487
1487
  p([Wn, (t, s) => s], (t, s) => f(t.filter((e) => e.project === s)))
1488
1488
  ), ap = Gn.reducer, me = P((t) => t.uuid), Hs = {
1489
1489
  instances: {}
@@ -1515,12 +1515,12 @@ const m = (
1515
1515
  addIssueAssociations: Pt,
1516
1516
  deleteIssueAssociation: pp,
1517
1517
  deleteIssueAssociations: _t
1518
- } = Kn.actions, mp = (t) => t.issueAssociationReducer.instances, Rt = p([mp], (t) => Object.values(t)), yp = (t) => (s) => s.issueAssociationReducer.instances[t], fp = m(
1518
+ } = Kn.actions, mp = (t) => t.issueAssociationReducer.instances, Rt = p([mp], (t) => Object.values(t)), yp = (t) => (s) => s.issueAssociationReducer.instances[t], fp = y(
1519
1519
  p([Rt, (t, s) => s], (t, s) => {
1520
1520
  const e = new Set(s);
1521
1521
  return f(t.filter(({ uuid: i }) => e.has(i)));
1522
1522
  })
1523
- ), Sp = m(
1523
+ ), Sp = y(
1524
1524
  p(
1525
1525
  [Rt, (t, s) => s],
1526
1526
  (t, s) => {
@@ -1528,11 +1528,11 @@ const m = (
1528
1528
  return f(t.filter(({ issue: i }) => e.has(i)));
1529
1529
  }
1530
1530
  )
1531
- ), Ap = m(
1531
+ ), Ap = y(
1532
1532
  p([Rt, (t, s) => s], (t, s) => f(t.filter(({ issue: e }) => e === s)))
1533
- ), Op = m(
1533
+ ), Op = y(
1534
1534
  p([Rt, (t, s) => s], (t, s) => f(t.filter(({ asset: e }) => e === s)))
1535
- ), Tp = m(
1535
+ ), Tp = y(
1536
1536
  p(
1537
1537
  [Rt, (t, s) => s],
1538
1538
  (t, s) => {
@@ -1573,12 +1573,12 @@ const m = (
1573
1573
  } = Yn.actions, Fp = (t) => t.issueAttachmentReducer.instances, Qn = p(
1574
1574
  [Fp],
1575
1575
  (t) => Object.values(t)
1576
- ), Ep = m(
1576
+ ), Ep = y(
1577
1577
  p(
1578
1578
  [Qn, (t, s) => s],
1579
1579
  (t, s) => f(t.filter(({ issue: e }) => s === e))
1580
1580
  )
1581
- ), vp = (t) => (s) => s.issueAttachmentReducer.instances[t], kp = m(
1581
+ ), vp = (t) => (s) => s.issueAttachmentReducer.instances[t], kp = y(
1582
1582
  p([Qn, (t, s) => s], (t, s) => {
1583
1583
  const e = new Set(s);
1584
1584
  return f(t.filter(({ uuid: i }) => e.has(i)));
@@ -1616,7 +1616,7 @@ const m = (
1616
1616
  } = Xn.actions, Lp = (t) => t.issueCommentAttachmentReducer.instances, er = p(
1617
1617
  [Lp],
1618
1618
  (t) => Object.values(t)
1619
- ), Np = (t) => (s) => s.issueCommentAttachmentReducer.instances[t], Hp = m(
1619
+ ), Np = (t) => (s) => s.issueCommentAttachmentReducer.instances[t], Hp = y(
1620
1620
  p(
1621
1621
  [er, (t, s) => s],
1622
1622
  (t, s) => {
@@ -1624,7 +1624,7 @@ const m = (
1624
1624
  return f(t.filter(({ uuid: i }) => e.has(i)));
1625
1625
  }
1626
1626
  )
1627
- ), QM = m(
1627
+ ), QM = y(
1628
1628
  p([er, (t, s) => s], (t, s) => f(t.filter(({ issue_comment: e }) => s === e)))
1629
1629
  ), Gp = Xn.reducer, Se = P(
1630
1630
  (t) => t.uuid
@@ -1658,12 +1658,12 @@ const m = (
1658
1658
  updateIssueComments: Xp,
1659
1659
  deleteIssueComment: em,
1660
1660
  deleteIssueComments: tm
1661
- } = tr.actions, sr = (t) => t.issueCommentReducer.instances, sm = (t) => (s) => s.issueCommentReducer.instances[t], im = m(
1661
+ } = tr.actions, sr = (t) => t.issueCommentReducer.instances, sm = (t) => (s) => s.issueCommentReducer.instances[t], im = y(
1662
1662
  p([sr, (t, s) => s], (t, s) => {
1663
1663
  const e = new Set(s);
1664
1664
  return f(Object.values(t).filter(({ uuid: i }) => e.has(i)));
1665
1665
  })
1666
- ), XM = m(
1666
+ ), XM = y(
1667
1667
  p(
1668
1668
  [sr, (t, s) => s],
1669
1669
  (t, s) => f(
@@ -1703,14 +1703,14 @@ const m = (
1703
1703
  } = ir.actions, hm = (t) => t.issueReducer.instances, is = p(
1704
1704
  [hm],
1705
1705
  (t) => Object.values(t)
1706
- ), pm = (t) => (s) => s.issueReducer.instances[t], mm = m(
1706
+ ), pm = (t) => (s) => s.issueReducer.instances[t], mm = y(
1707
1707
  p([is, (t, s) => s], (t, s) => {
1708
1708
  const e = new Set(s);
1709
1709
  return f(t.filter(({ uuid: i }) => e.has(i)));
1710
1710
  })
1711
- ), eg = m(
1711
+ ), eg = y(
1712
1712
  p([is, (t, s) => s], (t, s) => t.filter((e) => e.project === s))
1713
- ), ym = m(
1713
+ ), ym = y(
1714
1714
  p([is, (t, s) => s], (t, s) => t.filter((e) => e.issue_type === s))
1715
1715
  ), fm = ir.reducer, Oe = P((t) => t.uuid), Js = {
1716
1716
  instances: {}
@@ -1745,7 +1745,7 @@ const m = (
1745
1745
  } = ar.actions, gm = (t) => t.issueTypeAttachmentReducer.instances, cr = p(
1746
1746
  [gm],
1747
1747
  (t) => Object.values(t)
1748
- ), wm = (t) => (s) => s.issueTypeAttachmentReducer.instances[t], Rm = m(
1748
+ ), wm = (t) => (s) => s.issueTypeAttachmentReducer.instances[t], Rm = y(
1749
1749
  p(
1750
1750
  [cr, (t, s) => s],
1751
1751
  (t, s) => {
@@ -1753,7 +1753,7 @@ const m = (
1753
1753
  return f(t.filter(({ uuid: i }) => e.has(i)));
1754
1754
  }
1755
1755
  )
1756
- ), tg = m(
1756
+ ), tg = y(
1757
1757
  p([cr, (t, s) => s], (t, s) => f(t.filter(({ issue_type: e }) => s === e)))
1758
1758
  ), Fm = ar.reducer, Te = P((t) => t.uuid), Zs = {
1759
1759
  instances: {}
@@ -1788,12 +1788,12 @@ const m = (
1788
1788
  } = dr.actions, $m = (t) => t.issueTypeFieldsAttachmentReducer.instances, or = p(
1789
1789
  [$m],
1790
1790
  (t) => Object.values(t)
1791
- ), sg = m(
1791
+ ), sg = y(
1792
1792
  p(
1793
1793
  [or, (t, s) => s],
1794
1794
  (t, s) => f(t.filter((e) => e.fields_revision === s))
1795
1795
  )
1796
- ), xm = (t) => (s) => s.issueTypeFieldsAttachmentReducer.instances[t], Cm = m(
1796
+ ), xm = (t) => (s) => s.issueTypeFieldsAttachmentReducer.instances[t], Cm = y(
1797
1797
  p(
1798
1798
  [or, (t, s) => s],
1799
1799
  (t, s) => {
@@ -1831,9 +1831,9 @@ const m = (
1831
1831
  updateIssueTypeFieldValuesMany: Ym,
1832
1832
  deleteIssueTypeFieldValues: Jm,
1833
1833
  deleteIssueTypeFieldValuesMany: Zm
1834
- } = ur.actions, Qm = (t) => t.issueTypeFieldValuesReducer.instances, ns = p([Qm], (t) => Object.values(t)), ig = m(
1834
+ } = ur.actions, Qm = (t) => t.issueTypeFieldValuesReducer.instances, ns = p([Qm], (t) => Object.values(t)), ig = y(
1835
1835
  p([ns, (t, s) => s], (t, s) => f(t.filter((e) => e.issue === s)))
1836
- ), Xm = (t) => (s) => s.issueTypeFieldValuesReducer.instances[t], ey = m(
1836
+ ), Xm = (t) => (s) => s.issueTypeFieldValuesReducer.instances[t], ey = y(
1837
1837
  p(
1838
1838
  [ns, (t, s) => s],
1839
1839
  (t, s) => {
@@ -1871,11 +1871,11 @@ const m = (
1871
1871
  updateIssueTypeFieldsMany: dy,
1872
1872
  deleteIssueTypeFields: oy,
1873
1873
  deleteIssueTypeFieldsMany: uy
1874
- } = lr.actions, ly = (t) => t.issueTypeFieldsReducer.instances, kt = p([ly], (t) => Object.values(t)), ng = m(
1874
+ } = lr.actions, ly = (t) => t.issueTypeFieldsReducer.instances, kt = p([ly], (t) => Object.values(t)), ng = y(
1875
1875
  p([kt, (t, s) => s], (t, s) => f(t.filter((e) => e.issue_type === s)))
1876
- ), rg = m(
1876
+ ), rg = y(
1877
1877
  p([kt, (t, s) => s], (t, s) => t.filter((e) => e.issue_type === s).sort((e, i) => e.submitted_at > i.submitted_at ? -1 : 1)[0])
1878
- ), ag = m(
1878
+ ), ag = y(
1879
1879
  p(
1880
1880
  [kt, ns, (t, s) => s],
1881
1881
  (t, s, e) => {
@@ -1885,7 +1885,7 @@ const m = (
1885
1885
  return f(s.filter((n) => i.has(n.fields_revision)));
1886
1886
  }
1887
1887
  )
1888
- ), hy = (t) => (s) => s.issueTypeFieldsReducer.instances[t], py = m(
1888
+ ), hy = (t) => (s) => s.issueTypeFieldsReducer.instances[t], py = y(
1889
1889
  p([kt, (t, s) => s], (t, s) => {
1890
1890
  const e = new Set(s);
1891
1891
  return f(t.filter(({ uuid: i }) => e.has(i)));
@@ -1923,7 +1923,7 @@ const m = (
1923
1923
  } = hr.actions, Py = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, yr = p(
1924
1924
  [Py],
1925
1925
  (t) => Object.values(t)
1926
- ), _y = (t) => (s) => s.issueTypeFieldValuesAttachmentReducer.instances[t], by = m(
1926
+ ), _y = (t) => (s) => s.issueTypeFieldValuesAttachmentReducer.instances[t], by = y(
1927
1927
  p(
1928
1928
  [yr, (t, s) => s],
1929
1929
  (t, s) => {
@@ -1931,7 +1931,7 @@ const m = (
1931
1931
  return f(t.filter(({ uuid: i }) => e.has(i)));
1932
1932
  }
1933
1933
  )
1934
- ), My = m(
1934
+ ), My = y(
1935
1935
  p(
1936
1936
  [yr, (t, s) => s],
1937
1937
  (t, s) => f(t.filter((e) => e.field_values === s))
@@ -1969,7 +1969,7 @@ const m = (
1969
1969
  } = fr.actions, qy = (t) => t.issueTypeIdentifierReducer.instances, Sr = p(
1970
1970
  [qy],
1971
1971
  (t) => Object.values(t)
1972
- ), jy = (t) => (s) => s.issueTypeIdentifierReducer.instances[t], Vy = m(
1972
+ ), jy = (t) => (s) => s.issueTypeIdentifierReducer.instances[t], Vy = y(
1973
1973
  p(
1974
1974
  [Sr, (t, s) => s],
1975
1975
  (t, s) => {
@@ -1977,7 +1977,7 @@ const m = (
1977
1977
  return f(t.filter(({ uuid: i }) => e.has(i)));
1978
1978
  }
1979
1979
  )
1980
- ), cg = m(
1980
+ ), cg = y(
1981
1981
  p([Sr, (t, s) => s], (t, s) => f(t.filter((e) => e.issue_type === s)))
1982
1982
  ), $y = fr.reducer, Me = P((t) => t.uuid), si = {
1983
1983
  instances: {}
@@ -2012,7 +2012,7 @@ const m = (
2012
2012
  } = Ar.actions, Yy = (t) => t.issueTypeIdentifierValueReducer.instances, rs = p(
2013
2013
  [Yy],
2014
2014
  (t) => Object.values(t)
2015
- ), Jy = (t) => (s) => s.issueTypeIdentifierValueReducer.instances[t], Zy = m(
2015
+ ), Jy = (t) => (s) => s.issueTypeIdentifierValueReducer.instances[t], Zy = y(
2016
2016
  p(
2017
2017
  [rs, (t, s) => s],
2018
2018
  (t, s) => {
@@ -2020,9 +2020,9 @@ const m = (
2020
2020
  return f(t.filter(({ uuid: i }) => e.has(i)));
2021
2021
  }
2022
2022
  )
2023
- ), dg = m(
2023
+ ), dg = y(
2024
2024
  p([rs, (t, s) => s], (t, s) => f(t.filter((e) => e.issue === s)))
2025
- ), og = m(
2025
+ ), og = y(
2026
2026
  p(
2027
2027
  [rs, (t, s) => s],
2028
2028
  (t, s) => f(
@@ -2062,7 +2062,7 @@ const m = (
2062
2062
  } = Or.actions, of = (t) => t.issueTypePriorityReducer.instances, Tr = p(
2063
2063
  [of],
2064
2064
  (t) => f(Object.values(t).toSorted(bc))
2065
- ), Ir = (t) => (s) => s.issueTypePriorityReducer.instances[t], uf = m(
2065
+ ), Ir = (t) => (s) => s.issueTypePriorityReducer.instances[t], uf = y(
2066
2066
  p(
2067
2067
  [Tr, (t, s) => s],
2068
2068
  (t, s) => {
@@ -2070,7 +2070,7 @@ const m = (
2070
2070
  return f(t.filter(({ uuid: i }) => e.has(i)));
2071
2071
  }
2072
2072
  )
2073
- ), ug = m(
2073
+ ), ug = y(
2074
2074
  p([Tr, (t, s) => s], (t, s) => f(t.filter((e) => e.issue_type === s)))
2075
2075
  ), lf = Or.reducer, we = P(
2076
2076
  (t) => t.uuid
@@ -2107,12 +2107,12 @@ const m = (
2107
2107
  } = Pr.actions, If = (t) => t.issueTypeReducer.instances, _r = p(
2108
2108
  If,
2109
2109
  (t) => Object.values(t)
2110
- ), Pf = (t) => (s) => s.issueTypeReducer.instances[t], _f = m(
2110
+ ), Pf = (t) => (s) => s.issueTypeReducer.instances[t], _f = y(
2111
2111
  p([_r, (t, s) => s], (t, s) => {
2112
2112
  const e = new Set(s);
2113
2113
  return f(t.filter(({ uuid: i }) => e.has(i)));
2114
2114
  })
2115
- ), lg = m(
2115
+ ), lg = y(
2116
2116
  p([_r, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
2117
2117
  ), bf = Pr.reducer, Re = P((t) => t.uuid), ri = {
2118
2118
  instances: {}
@@ -2144,12 +2144,12 @@ const m = (
2144
2144
  updateIssueTypeStatuses: vf,
2145
2145
  deleteIssueTypeStatus: kf,
2146
2146
  deleteIssueTypeStatuses: Bf
2147
- } = br.actions, zf = (t) => t.issueTypeStatusReducer.instances, Mr = p([zf], (t) => f(Object.values(t).toSorted(_c))), gr = (t) => (s) => s.issueTypeStatusReducer.instances[t], Df = m(
2147
+ } = br.actions, zf = (t) => t.issueTypeStatusReducer.instances, Mr = p([zf], (t) => f(Object.values(t).toSorted(_c))), gr = (t) => (s) => s.issueTypeStatusReducer.instances[t], Df = y(
2148
2148
  p([Mr, (t, s) => s], (t, s) => {
2149
2149
  const e = new Set(s);
2150
2150
  return f(t.filter(({ uuid: i }) => e.has(i)));
2151
2151
  })
2152
- ), hg = m(
2152
+ ), hg = y(
2153
2153
  p([Mr, (t, s) => s], (t, s) => f(t.filter((e) => e.issue_type === s)))
2154
2154
  ), qf = br.reducer, Fe = P(
2155
2155
  (t) => t.uuid
@@ -2186,12 +2186,12 @@ const m = (
2186
2186
  } = wr.actions, kr = (t) => t.issueUpdateReducer.instances, Br = p(
2187
2187
  [kr],
2188
2188
  (t) => Object.values(t)
2189
- ), Uf = m(
2189
+ ), Uf = y(
2190
2190
  p(
2191
2191
  [kr, (t, s) => s],
2192
2192
  (t, s) => t[s]
2193
2193
  )
2194
- ), Lf = m(
2194
+ ), Lf = y(
2195
2195
  p(
2196
2196
  [Br, (t, s) => s],
2197
2197
  (t, s) => {
@@ -2199,7 +2199,7 @@ const m = (
2199
2199
  return f(t.filter(({ uuid: i }) => e.has(i)));
2200
2200
  }
2201
2201
  )
2202
- ), Nf = m(
2202
+ ), Nf = y(
2203
2203
  p([Br, (t, s) => s], (t, s) => f(t.filter((e) => e.issue === s)))
2204
2204
  ), Hf = wr.reducer, Ee = P((t) => t.id), ci = {
2205
2205
  instances: {},
@@ -2242,7 +2242,7 @@ const m = (
2242
2242
  deleteUsers: Qf,
2243
2243
  setCurrentUser: pg,
2244
2244
  setCurrentUserProfile: mg
2245
- } = zr.actions, Xf = zr.reducer, eS = (t) => t.userReducer.currentUser, jr = (t) => t.userReducer.instances, as = p([jr], (t) => Object.values(t)), cs = (t) => (s) => s.userReducer.instances[t], tS = m(
2245
+ } = zr.actions, Xf = zr.reducer, eS = (t) => t.userReducer.currentUser, jr = (t) => t.userReducer.instances, as = p([jr], (t) => Object.values(t)), cs = (t) => (s) => s.userReducer.instances[t], tS = y(
2246
2246
  p([as, (t, s) => s], (t, s) => {
2247
2247
  const e = new Set(s);
2248
2248
  return f(t.filter(({ id: i }) => e.has(i)));
@@ -2277,7 +2277,7 @@ const m = (
2277
2277
  updateOrganizationAccesses: dS,
2278
2278
  deleteOrganizationAccess: oS,
2279
2279
  deleteOrganizationAccesses: uS
2280
- } = Vr.actions, lS = Vr.reducer, ds = (t) => t.organizationAccessReducer.instances, hS = (t) => (s) => s.organizationAccessReducer.instances[t], pS = m(
2280
+ } = Vr.actions, lS = Vr.reducer, ds = (t) => t.organizationAccessReducer.instances, hS = (t) => (s) => s.organizationAccessReducer.instances[t], pS = y(
2281
2281
  p(
2282
2282
  [ds, (t, s) => s],
2283
2283
  (t, s) => {
@@ -2295,7 +2295,7 @@ const m = (
2295
2295
  for (const e of Object.values(t))
2296
2296
  s[e.user] = e;
2297
2297
  return Li(s);
2298
- }), fg = m(
2298
+ }), fg = y(
2299
2299
  p(
2300
2300
  [jr, mS, (t, s) => s],
2301
2301
  (t, s, e) => f(
@@ -2332,7 +2332,7 @@ const m = (
2332
2332
  updateOrganization: IS,
2333
2333
  deleteOrganization: PS,
2334
2334
  deleteOrganizations: _S
2335
- } = $r.actions, bS = (t) => t.organizationReducer.instances, MS = p([bS], (t) => Object.values(t)), gS = (t) => (s) => s.organizationReducer.instances[t], wS = m(
2335
+ } = $r.actions, bS = (t) => t.organizationReducer.instances, MS = p([bS], (t) => Object.values(t)), gS = (t) => (s) => s.organizationReducer.instances[t], wS = y(
2336
2336
  p([MS, (t, s) => s], (t, s) => {
2337
2337
  const e = new Set(s);
2338
2338
  return f(t.filter(({ uuid: i }) => e.has(i)));
@@ -2418,26 +2418,26 @@ const m = (
2418
2418
  } = Cr.actions, LS = Cr.reducer, Ur = (t) => t.projectAccessReducer.instances, Bt = p(
2419
2419
  Ur,
2420
2420
  (t) => Object.values(t)
2421
- ), NS = (t) => (s) => s.projectAccessReducer.instances[t], HS = m(
2421
+ ), NS = (t) => (s) => s.projectAccessReducer.instances[t], HS = y(
2422
2422
  p([Bt, (t, s) => s], (t, s) => {
2423
2423
  const e = new Set(s);
2424
2424
  return f(t.filter(({ uuid: i }) => e.has(i)));
2425
2425
  })
2426
- ), Tg = m(
2426
+ ), Tg = y(
2427
2427
  p(
2428
2428
  [Ur, (t, s) => s],
2429
2429
  (t, s) => f(
2430
2430
  Object.values(t).filter((e) => e.project === s)
2431
2431
  )
2432
2432
  )
2433
- ), Ig = m(
2433
+ ), Ig = y(
2434
2434
  p([Bt, (t, s) => s], (t, s) => {
2435
2435
  const e = {};
2436
2436
  for (const i of t.filter((n) => n.project === s))
2437
2437
  e[i.user] = i;
2438
2438
  return e;
2439
2439
  })
2440
- ), Pg = m(
2440
+ ), Pg = y(
2441
2441
  p(
2442
2442
  [as, Bt, (t, s) => s],
2443
2443
  (t, s, e) => {
@@ -2478,12 +2478,12 @@ const m = (
2478
2478
  } = Lr.actions, tA = (t) => t.projectAttachmentReducer.instances, Nr = p(
2479
2479
  [tA],
2480
2480
  (t) => Object.values(t)
2481
- ), sA = (t) => (s) => s.projectAttachmentReducer.instances[t], iA = m(
2481
+ ), sA = (t) => (s) => s.projectAttachmentReducer.instances[t], iA = y(
2482
2482
  p([Nr, (t, s) => s], (t, s) => {
2483
2483
  const e = new Set(s);
2484
2484
  return f(t.filter(({ uuid: i }) => e.has(i)));
2485
2485
  })
2486
- ), _g = m(
2486
+ ), _g = y(
2487
2487
  p([Nr, (t, s) => s], (t, s) => f(t.filter(({ project: e }) => s === e)))
2488
2488
  ), nA = Lr.reducer, De = P(
2489
2489
  (t) => t.uuid
@@ -2520,14 +2520,14 @@ const m = (
2520
2520
  } = Hr.actions, mA = (t) => t.projectCommentReducer.instances, os = p(
2521
2521
  [mA],
2522
2522
  (t) => f(Object.values(t).toSorted(wt))
2523
- ), yA = (t) => (s) => s.projectCommentReducer.instances[t], fA = m(
2523
+ ), yA = (t) => (s) => s.projectCommentReducer.instances[t], fA = y(
2524
2524
  p([os, (t, s) => s], (t, s) => {
2525
2525
  const e = new Set(s);
2526
2526
  return f(t.filter(({ uuid: i }) => e.has(i)));
2527
2527
  })
2528
- ), bg = m(
2528
+ ), bg = y(
2529
2529
  p([os, (t, s) => s], (t, s) => f(t.filter((e) => e.project === s)))
2530
- ), Mg = m(
2530
+ ), Mg = y(
2531
2531
  p([os, (t, s) => s], (t, s) => {
2532
2532
  const e = new Set(s);
2533
2533
  return f(t.filter((i) => e.has(i.project)));
@@ -2564,7 +2564,7 @@ const m = (
2564
2564
  updateProjectFiles: bA,
2565
2565
  deleteProjectFile: MA,
2566
2566
  deleteProjectFiles: gA
2567
- } = Gr.actions, wA = (t) => t.projectFileReducer.instances, RA = p([wA], (t) => f(Object.values(t).toSorted((s, e) => s.z_index - e.z_index))), FA = (t) => (s) => s.projectFileReducer.instances[t], EA = m(
2567
+ } = Gr.actions, wA = (t) => t.projectFileReducer.instances, RA = p([wA], (t) => f(Object.values(t).toSorted((s, e) => s.z_index - e.z_index))), FA = (t) => (s) => s.projectFileReducer.instances[t], EA = y(
2568
2568
  p([RA, (t, s) => s], (t, s) => {
2569
2569
  const e = new Set(s);
2570
2570
  return f(t.filter(({ uuid: i }) => e.has(i)));
@@ -2599,17 +2599,17 @@ const m = (
2599
2599
  updateProject: VA,
2600
2600
  deleteProject: $A,
2601
2601
  deleteProjects: xA
2602
- } = Wr.actions, CA = Wr.reducer, UA = (t) => t.projectReducer.instances, us = p([UA], (t) => Object.values(t)), LA = (t) => (s) => s.projectReducer.instances[t], NA = m(
2602
+ } = Wr.actions, CA = Wr.reducer, UA = (t) => t.projectReducer.instances, us = p([UA], (t) => Object.values(t)), LA = (t) => (s) => s.projectReducer.instances[t], NA = y(
2603
2603
  p([us, (t, s) => s], (t, s) => {
2604
2604
  const e = new Set(s);
2605
2605
  return f(t.filter(({ uuid: i }) => e.has(i)));
2606
2606
  })
2607
- ), gg = m(
2607
+ ), gg = y(
2608
2608
  p([us, Bt, (t, s) => s], (t, s, e) => {
2609
2609
  const i = new Set(s.filter((n) => n.user === e).map((n) => n.project));
2610
2610
  return f(t.filter((n) => i.has(n.uuid)));
2611
2611
  })
2612
- ), wg = m(
2612
+ ), wg = y(
2613
2613
  p([us, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
2614
2614
  ), Ve = P(({ uuid: t }) => t), fi = {
2615
2615
  instances: {}
@@ -2644,7 +2644,7 @@ const m = (
2644
2644
  } = Kr.actions, eO = Kr.reducer, tO = (t) => t.procedureInitiativeReducer.instances, ls = p(
2645
2645
  [tO],
2646
2646
  (t) => Object.values(t)
2647
- ), sO = (t) => (s) => s.procedureInitiativeReducer.instances[t], iO = m(
2647
+ ), sO = (t) => (s) => s.procedureInitiativeReducer.instances[t], iO = y(
2648
2648
  p(
2649
2649
  [ls, (t, s) => s],
2650
2650
  (t, s) => {
@@ -2652,9 +2652,9 @@ const m = (
2652
2652
  return f(t.filter(({ uuid: i }) => e.has(i)));
2653
2653
  }
2654
2654
  )
2655
- ), Rg = m(
2655
+ ), Rg = y(
2656
2656
  p([ls, (t, s) => s], (t, s) => f(t.filter((e) => e.project === s)))
2657
- ), Fg = m(
2657
+ ), Fg = y(
2658
2658
  p([ls, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_type === s)))
2659
2659
  ), $e = P(({ uuid: t }) => t), Si = {
2660
2660
  instances: {}
@@ -2689,23 +2689,23 @@ const m = (
2689
2689
  } = Yr.actions, lO = Yr.reducer, hO = (t) => t.procedureReducer.instances, yt = p(
2690
2690
  [hO],
2691
2691
  (t) => Object.values(t)
2692
- ), pO = (t) => (s) => s.procedureReducer.instances[t], mO = m(
2692
+ ), pO = (t) => (s) => s.procedureReducer.instances[t], mO = y(
2693
2693
  p([yt, (t, s) => s], (t, s) => {
2694
2694
  const e = new Set(s);
2695
2695
  return f(t.filter(({ uuid: i }) => e.has(i)));
2696
2696
  })
2697
- ), Eg = m(
2697
+ ), Eg = y(
2698
2698
  p([yt, (t, s) => s], (t, s) => f(t.filter((e) => e.project === s)))
2699
- ), yO = m(
2699
+ ), yO = y(
2700
2700
  p([yt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_type === s)))
2701
- ), fO = m(
2701
+ ), fO = y(
2702
2702
  p([yt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset === s)))
2703
- ), SO = m(
2703
+ ), SO = y(
2704
2704
  p([yt, (t, s) => s], (t, s) => {
2705
2705
  const e = new Set(s);
2706
2706
  return f(t.filter(({ asset: i }) => e.has(i)));
2707
2707
  })
2708
- ), AO = m(
2708
+ ), AO = y(
2709
2709
  p([yt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_initiative === s)))
2710
2710
  ), xe = P((t) => t.uuid), Ai = {
2711
2711
  instances: {}
@@ -2737,7 +2737,7 @@ const m = (
2737
2737
  updateProcedureStepAssignees: MO,
2738
2738
  deleteProcedureStepAssignee: gO,
2739
2739
  deleteProcedureStepAssignees: wO
2740
- } = Jr.actions, RO = (t) => t.procedureStepAssigneeReducer.instances, zt = p([RO], (t) => Object.values(t)), FO = (t) => (s) => s.procedureStepAssigneeReducer.instances[t], EO = m(
2740
+ } = Jr.actions, RO = (t) => t.procedureStepAssigneeReducer.instances, zt = p([RO], (t) => Object.values(t)), FO = (t) => (s) => s.procedureStepAssigneeReducer.instances[t], EO = y(
2741
2741
  p(
2742
2742
  [zt, (t, s) => s],
2743
2743
  (t, s) => {
@@ -2745,11 +2745,11 @@ const m = (
2745
2745
  return f(t.filter(({ uuid: i }) => e.has(i)));
2746
2746
  }
2747
2747
  )
2748
- ), vg = m(
2748
+ ), vg = y(
2749
2749
  p([zt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
2750
- ), kg = m(
2750
+ ), kg = y(
2751
2751
  p([zt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
2752
- ), Bg = m(
2752
+ ), Bg = y(
2753
2753
  p(
2754
2754
  [
2755
2755
  zt,
@@ -2792,7 +2792,7 @@ const m = (
2792
2792
  updateProcedureStepComments: VO,
2793
2793
  deleteProcedureStepComment: $O,
2794
2794
  deleteProcedureStepComments: xO
2795
- } = Zr.actions, CO = (t) => t.procedureStepCommentReducer.instances, Dt = p([CO], (t) => Object.values(t)), UO = (t) => (s) => s.procedureStepCommentReducer.instances[t], LO = m(
2795
+ } = Zr.actions, CO = (t) => t.procedureStepCommentReducer.instances, Dt = p([CO], (t) => Object.values(t)), UO = (t) => (s) => s.procedureStepCommentReducer.instances[t], LO = y(
2796
2796
  p(
2797
2797
  [Dt, (t, s) => s],
2798
2798
  (t, s) => {
@@ -2800,11 +2800,11 @@ const m = (
2800
2800
  return f(t.filter(({ uuid: i }) => e.has(i)));
2801
2801
  }
2802
2802
  )
2803
- ), zg = m(
2803
+ ), zg = y(
2804
2804
  p([Dt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
2805
- ), Dg = m(
2805
+ ), Dg = y(
2806
2806
  p([Dt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
2807
- ), qg = m(
2807
+ ), qg = y(
2808
2808
  p(
2809
2809
  [
2810
2810
  Dt,
@@ -2850,7 +2850,7 @@ const m = (
2850
2850
  } = Qr.actions, eT = (t) => t.procedureStepDefaultAssigneeReducer.instances, Xr = p(
2851
2851
  [eT],
2852
2852
  (t) => Object.values(t)
2853
- ), tT = (t) => (s) => s.procedureStepDefaultAssigneeReducer.instances[t], sT = m(
2853
+ ), tT = (t) => (s) => s.procedureStepDefaultAssigneeReducer.instances[t], sT = y(
2854
2854
  p(
2855
2855
  [Xr, (t, s) => s],
2856
2856
  (t, s) => {
@@ -2858,7 +2858,7 @@ const m = (
2858
2858
  return f(t.filter(({ uuid: i }) => e.has(i)));
2859
2859
  }
2860
2860
  )
2861
- ), jg = m(
2861
+ ), jg = y(
2862
2862
  p(
2863
2863
  [Xr, (t, s) => s],
2864
2864
  (t, s) => f(t.filter((e) => e.procedure_step === s))
@@ -2896,7 +2896,7 @@ const m = (
2896
2896
  } = ea.actions, pT = (t) => t.procedureStepDefaultReviewerReducer.instances, ta = p(
2897
2897
  [pT],
2898
2898
  (t) => Object.values(t)
2899
- ), mT = (t) => (s) => s.procedureStepDefaultReviewerReducer.instances[t], yT = m(
2899
+ ), mT = (t) => (s) => s.procedureStepDefaultReviewerReducer.instances[t], yT = y(
2900
2900
  p(
2901
2901
  [ta, (t, s) => s],
2902
2902
  (t, s) => {
@@ -2904,7 +2904,7 @@ const m = (
2904
2904
  return f(t.filter(({ uuid: i }) => e.has(i)));
2905
2905
  }
2906
2906
  )
2907
- ), Vg = m(
2907
+ ), Vg = y(
2908
2908
  p(
2909
2909
  [ta, (t, s) => s],
2910
2910
  (t, s) => f(t.filter((e) => e.procedure_step === s))
@@ -2939,7 +2939,7 @@ const m = (
2939
2939
  updateProcedureStepEvents: _T,
2940
2940
  deleteProcedureStepEvent: bT,
2941
2941
  deleteProcedureStepEvents: MT
2942
- } = sa.actions, gT = (t) => t.procedureStepEventReducer.instances, qt = p([gT], (t) => Object.values(t)), wT = (t) => (s) => s.procedureStepEventReducer.instances[t], RT = m(
2942
+ } = sa.actions, gT = (t) => t.procedureStepEventReducer.instances, qt = p([gT], (t) => Object.values(t)), wT = (t) => (s) => s.procedureStepEventReducer.instances[t], RT = y(
2943
2943
  p(
2944
2944
  [qt, (t, s) => s],
2945
2945
  (t, s) => {
@@ -2947,11 +2947,11 @@ const m = (
2947
2947
  return f(t.filter(({ uuid: i }) => e.has(i)));
2948
2948
  }
2949
2949
  )
2950
- ), $g = m(
2950
+ ), $g = y(
2951
2951
  p([qt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
2952
- ), xg = m(
2952
+ ), xg = y(
2953
2953
  p([qt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
2954
- ), Cg = m(
2954
+ ), Cg = y(
2955
2955
  p(
2956
2956
  [
2957
2957
  qt,
@@ -2997,12 +2997,12 @@ const m = (
2997
2997
  } = ia.actions, jT = (t) => t.procedureStepFieldsAttachmentReducer.instances, aa = p(
2998
2998
  [jT],
2999
2999
  (t) => Object.values(t)
3000
- ), VT = m(
3000
+ ), VT = y(
3001
3001
  p(
3002
3002
  [aa, (t, s) => s],
3003
3003
  (t, s) => f(t.filter((e) => e.fields_revision === s))
3004
3004
  )
3005
- ), $T = (t) => (s) => s.procedureStepFieldsAttachmentReducer.instances[t], xT = m(
3005
+ ), $T = (t) => (s) => s.procedureStepFieldsAttachmentReducer.instances[t], xT = y(
3006
3006
  p(
3007
3007
  [aa, (t, s) => s],
3008
3008
  (t, s) => {
@@ -3040,9 +3040,9 @@ const m = (
3040
3040
  updateProcedureStepFieldsMany: KT,
3041
3041
  deleteProcedureStepFields: YT,
3042
3042
  deleteProcedureStepFieldsMany: JT
3043
- } = ca.actions, da = (t) => t.procedureStepFieldsReducer.instances, hs = p([da], (t) => Object.values(t)), Ug = m(
3043
+ } = ca.actions, da = (t) => t.procedureStepFieldsReducer.instances, hs = p([da], (t) => Object.values(t)), Ug = y(
3044
3044
  p([hs, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
3045
- ), Lg = m(
3045
+ ), Lg = y(
3046
3046
  p([hs, (t, s) => s], (t, s) => t.filter((e) => e.procedure_step === s).toSorted(wt).pop())
3047
3047
  ), Ng = p([da], (t) => {
3048
3048
  const s = {};
@@ -3051,7 +3051,7 @@ const m = (
3051
3051
  (!i || i.submitted_at < e.submitted_at) && (s[e.procedure_step] = e);
3052
3052
  }
3053
3053
  return s;
3054
- }), ZT = (t) => (s) => s.procedureStepFieldsReducer.instances[t], QT = m(
3054
+ }), ZT = (t) => (s) => s.procedureStepFieldsReducer.instances[t], QT = y(
3055
3055
  p(
3056
3056
  [hs, (t, s) => s],
3057
3057
  (t, s) => {
@@ -3092,7 +3092,7 @@ const m = (
3092
3092
  } = oa.actions, cI = (t) => t.procedureStepFieldValuesAttachmentReducer.instances, ha = p(
3093
3093
  [cI],
3094
3094
  (t) => Object.values(t)
3095
- ), dI = (t) => (s) => s.procedureStepFieldValuesAttachmentReducer.instances[t], oI = m(
3095
+ ), dI = (t) => (s) => s.procedureStepFieldValuesAttachmentReducer.instances[t], oI = y(
3096
3096
  p(
3097
3097
  [ha, (t, s) => s],
3098
3098
  (t, s) => {
@@ -3100,7 +3100,7 @@ const m = (
3100
3100
  return f(t.filter(({ uuid: i }) => e.has(i)));
3101
3101
  }
3102
3102
  )
3103
- ), uI = m(
3103
+ ), uI = y(
3104
3104
  p(
3105
3105
  [ha, (t, s) => s],
3106
3106
  (t, s) => f(t.filter((e) => e.field_values === s))
@@ -3138,14 +3138,14 @@ const m = (
3138
3138
  } = pa.actions, II = pa.reducer, PI = (t) => t.procedureStepFieldValuesReducer.instances, ft = p(
3139
3139
  [PI],
3140
3140
  (t) => Object.values(t)
3141
- ), Hg = m(
3141
+ ), Hg = y(
3142
3142
  p([ft, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
3143
- ), Gg = m(
3143
+ ), Gg = y(
3144
3144
  p(
3145
3145
  [ft, (t, s) => s],
3146
3146
  (t, s) => f(t.filter((e) => e.procedure_step === s))
3147
3147
  )
3148
- ), _I = (t) => (s) => s.procedureStepFieldValuesReducer.instances[t], bI = m(
3148
+ ), _I = (t) => (s) => s.procedureStepFieldValuesReducer.instances[t], bI = y(
3149
3149
  p(
3150
3150
  [ft, (t, s) => s],
3151
3151
  (t, s) => {
@@ -3153,7 +3153,7 @@ const m = (
3153
3153
  return f(t.filter(({ uuid: i }) => e.has(i)));
3154
3154
  }
3155
3155
  )
3156
- ), Wg = m(
3156
+ ), Wg = y(
3157
3157
  p(
3158
3158
  [
3159
3159
  ft,
@@ -3199,7 +3199,7 @@ const m = (
3199
3199
  } = ma.actions, kI = (t) => t.procedureStepFieldValuesReviewReducer.instances, St = p(
3200
3200
  [kI],
3201
3201
  (t) => Object.values(t)
3202
- ), BI = (t) => (s) => s.procedureStepFieldValuesReviewReducer.instances[t], zI = m(
3202
+ ), BI = (t) => (s) => s.procedureStepFieldValuesReviewReducer.instances[t], zI = y(
3203
3203
  p(
3204
3204
  [St, (t, s) => s],
3205
3205
  (t, s) => {
@@ -3207,12 +3207,12 @@ const m = (
3207
3207
  return f(t.filter(({ uuid: i }) => e.has(i)));
3208
3208
  }
3209
3209
  )
3210
- ), DI = m(
3210
+ ), DI = y(
3211
3211
  p(
3212
3212
  [St, (t, s) => s],
3213
3213
  (t, s) => f(t.filter((e) => e.field_values === s))
3214
3214
  )
3215
- ), Kg = m(
3215
+ ), Kg = y(
3216
3216
  p(
3217
3217
  [St, (t, s) => s],
3218
3218
  (t, s) => {
@@ -3224,7 +3224,7 @@ const m = (
3224
3224
  return e;
3225
3225
  }
3226
3226
  )
3227
- ), Yg = m(
3227
+ ), Yg = y(
3228
3228
  p(
3229
3229
  [
3230
3230
  ft,
@@ -3242,7 +3242,7 @@ const m = (
3242
3242
  );
3243
3243
  }
3244
3244
  )
3245
- ), Jg = m(
3245
+ ), Jg = y(
3246
3246
  p(
3247
3247
  [
3248
3248
  ft,
@@ -3302,7 +3302,7 @@ const m = (
3302
3302
  updateProcedureStepReviewers: LI,
3303
3303
  deleteProcedureStepReviewer: NI,
3304
3304
  deleteProcedureStepReviewers: HI
3305
- } = Sa.actions, GI = (t) => t.procedureStepReviewerReducer.instances, jt = p([GI], (t) => Object.values(t)), WI = (t) => (s) => s.procedureStepReviewerReducer.instances[t], KI = m(
3305
+ } = Sa.actions, GI = (t) => t.procedureStepReviewerReducer.instances, jt = p([GI], (t) => Object.values(t)), WI = (t) => (s) => s.procedureStepReviewerReducer.instances[t], KI = y(
3306
3306
  p(
3307
3307
  [jt, (t, s) => s],
3308
3308
  (t, s) => {
@@ -3310,11 +3310,11 @@ const m = (
3310
3310
  return f(t.filter(({ uuid: i }) => e.has(i)));
3311
3311
  }
3312
3312
  )
3313
- ), Qg = m(
3313
+ ), Qg = y(
3314
3314
  p([jt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
3315
- ), Xg = m(
3315
+ ), Xg = y(
3316
3316
  p([jt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
3317
- ), ew = m(
3317
+ ), ew = y(
3318
3318
  p(
3319
3319
  [
3320
3320
  jt,
@@ -3359,7 +3359,7 @@ const m = (
3359
3359
  updateProcedureSteps: sP,
3360
3360
  deleteProcedureStep: iP,
3361
3361
  deleteProcedureSteps: nP
3362
- } = Aa.actions, rP = Aa.reducer, Oa = (t) => t.procedureStepReducer.instances, aP = (t) => (s) => s.procedureStepReducer.instances[t], Ta = p([Oa], (t) => Object.values(t).toSorted((s, e) => s.order - e.order)), tw = m(
3362
+ } = Aa.actions, rP = Aa.reducer, Oa = (t) => t.procedureStepReducer.instances, aP = (t) => (s) => s.procedureStepReducer.instances[t], Ta = p([Oa], (t) => Object.values(t).toSorted((s, e) => s.order - e.order)), tw = y(
3363
3363
  p(
3364
3364
  [Oa, (t, s) => s],
3365
3365
  (t, s) => {
@@ -3369,9 +3369,9 @@ const m = (
3369
3369
  return Li(e);
3370
3370
  }
3371
3371
  )
3372
- ), sw = m(
3372
+ ), sw = y(
3373
3373
  p([Ta, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_type === s)))
3374
- ), cP = m(
3374
+ ), cP = y(
3375
3375
  p([Ta, (t, s) => s], (t, s) => {
3376
3376
  const e = new Set(s);
3377
3377
  return f(t.filter(({ uuid: i }) => e.has(i)));
@@ -3409,7 +3409,7 @@ const m = (
3409
3409
  } = Ia.actions, SP = Ia.reducer, AP = (t) => t.procedureTypeAttachmentReducer.instances, Pa = p(
3410
3410
  [AP],
3411
3411
  (t) => Object.values(t)
3412
- ), OP = (t) => (s) => s.procedureTypeAttachmentReducer.instances[t], TP = m(
3412
+ ), OP = (t) => (s) => s.procedureTypeAttachmentReducer.instances[t], TP = y(
3413
3413
  p(
3414
3414
  [Pa, (t, s) => s],
3415
3415
  (t, s) => {
@@ -3417,7 +3417,7 @@ const m = (
3417
3417
  return f(t.filter(({ uuid: i }) => e.has(i)));
3418
3418
  }
3419
3419
  )
3420
- ), iw = m(
3420
+ ), iw = y(
3421
3421
  p(
3422
3422
  [Pa, (t, s) => s],
3423
3423
  (t, s) => f(t.filter(({ procedure_type: e }) => s === e))
@@ -3455,12 +3455,12 @@ const m = (
3455
3455
  } = _a.actions, EP = _a.reducer, vP = (t) => t.procedureTypeFieldsAttachmentReducer.instances, ba = p(
3456
3456
  [vP],
3457
3457
  (t) => Object.values(t)
3458
- ), nw = m(
3458
+ ), nw = y(
3459
3459
  p(
3460
3460
  [ba, (t, s) => s],
3461
3461
  (t, s) => f(t.filter((e) => e.fields_revision === s))
3462
3462
  )
3463
- ), kP = (t) => (s) => s.procedureTypeFieldsAttachmentReducer.instances[t], BP = m(
3463
+ ), kP = (t) => (s) => s.procedureTypeFieldsAttachmentReducer.instances[t], BP = y(
3464
3464
  p(
3465
3465
  [ba, (t, s) => s],
3466
3466
  (t, s) => {
@@ -3501,11 +3501,11 @@ const m = (
3501
3501
  } = Ma.actions, LP = Ma.reducer, NP = (t) => t.procedureTypeFieldsReducer.instances, ps = p(
3502
3502
  [NP],
3503
3503
  (t) => Object.values(t)
3504
- ), rw = m(
3504
+ ), rw = y(
3505
3505
  p([ps, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_type === s)))
3506
- ), aw = m(
3506
+ ), aw = y(
3507
3507
  p([ps, (t, s) => s], (t, s) => t.filter((e) => e.procedure_type === s).sort((e, i) => e.submitted_at > i.submitted_at ? -1 : 1)[0])
3508
- ), HP = (t) => (s) => s.procedureTypeFieldsReducer.instances[t], GP = m(
3508
+ ), HP = (t) => (s) => s.procedureTypeFieldsReducer.instances[t], GP = y(
3509
3509
  p(
3510
3510
  [ps, (t, s) => s],
3511
3511
  (t, s) => {
@@ -3546,7 +3546,7 @@ const m = (
3546
3546
  } = ga.actions, e_ = ga.reducer, t_ = (t) => t.procedureFieldValuesAttachmentReducer.instances, Fa = p(
3547
3547
  [t_],
3548
3548
  (t) => Object.values(t)
3549
- ), s_ = (t) => (s) => s.procedureFieldValuesAttachmentReducer.instances[t], i_ = m(
3549
+ ), s_ = (t) => (s) => s.procedureFieldValuesAttachmentReducer.instances[t], i_ = y(
3550
3550
  p(
3551
3551
  [Fa, (t, s) => s],
3552
3552
  (t, s) => {
@@ -3554,7 +3554,7 @@ const m = (
3554
3554
  return f(t.filter(({ uuid: i }) => e.has(i)));
3555
3555
  }
3556
3556
  )
3557
- ), n_ = m(
3557
+ ), n_ = y(
3558
3558
  p(
3559
3559
  [Fa, (t, s) => s],
3560
3560
  (t, s) => f(t.filter((e) => e.field_values === s))
@@ -3589,9 +3589,9 @@ const m = (
3589
3589
  updateProcedureFieldValuesMany: l_,
3590
3590
  deleteProcedureFieldValues: h_,
3591
3591
  deleteProcedureFieldValuesMany: p_
3592
- } = Ea.actions, m_ = Ea.reducer, y_ = (t) => t.procedureFieldValuesReducer.instances, va = p([y_], (t) => Object.values(t)), cw = m(
3592
+ } = Ea.actions, m_ = Ea.reducer, y_ = (t) => t.procedureFieldValuesReducer.instances, va = p([y_], (t) => Object.values(t)), cw = y(
3593
3593
  p([va, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
3594
- ), f_ = (t) => (s) => s.procedureFieldValuesReducer.instances[t], S_ = m(
3594
+ ), f_ = (t) => (s) => s.procedureFieldValuesReducer.instances[t], S_ = y(
3595
3595
  p(
3596
3596
  [va, (t, s) => s],
3597
3597
  (t, s) => {
@@ -3634,12 +3634,12 @@ const m = (
3634
3634
  } = ka.actions, w_ = ka.reducer, R_ = (t) => t.procedureTypeReducer.instances, Ba = p(
3635
3635
  [R_],
3636
3636
  (t) => Object.values(t)
3637
- ), F_ = (t) => (s) => s.procedureTypeReducer.instances[t], E_ = m(
3637
+ ), F_ = (t) => (s) => s.procedureTypeReducer.instances[t], E_ = y(
3638
3638
  p([Ba, (t, s) => s], (t, s) => {
3639
3639
  const e = new Set(s);
3640
3640
  return f(t.filter(({ uuid: i }) => e.has(i)));
3641
3641
  })
3642
- ), dw = m(
3642
+ ), dw = y(
3643
3643
  p([Ba, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
3644
3644
  ), v_ = {
3645
3645
  isRehydrated: !1
@@ -3687,19 +3687,19 @@ const m = (
3687
3687
  } = Da.actions, U_ = Da.reducer, L_ = (t) => t.teamMembershipReducer.instances, ms = p(
3688
3688
  [L_],
3689
3689
  (t) => Object.values(t)
3690
- ), N_ = (t) => (s) => s.teamMembershipReducer.instances[t], H_ = m(
3690
+ ), N_ = (t) => (s) => s.teamMembershipReducer.instances[t], H_ = y(
3691
3691
  p([ms, (t, s) => s], (t, s) => {
3692
3692
  const e = new Set(s);
3693
3693
  return f(t.filter(({ uuid: i }) => e.has(i)));
3694
3694
  })
3695
- ), lw = m(
3695
+ ), lw = y(
3696
3696
  p([ms, (t, s) => s], (t, s) => {
3697
3697
  const e = {};
3698
3698
  for (const i of t.filter((n) => n.team === s))
3699
3699
  e[i.user] = i;
3700
3700
  return e;
3701
3701
  })
3702
- ), hw = m(
3702
+ ), hw = y(
3703
3703
  p(
3704
3704
  [as, ms, (t, s) => s],
3705
3705
  (t, s, e) => {
@@ -3737,12 +3737,12 @@ const m = (
3737
3737
  updateTeams: Q_,
3738
3738
  deleteTeam: X_,
3739
3739
  deleteTeams: eb
3740
- } = qa.actions, tb = (t) => t.teamReducer.instances, ja = p([tb], (t) => Object.values(t)), sb = (t) => (s) => s.teamReducer.instances[t], ib = m(
3740
+ } = qa.actions, tb = (t) => t.teamReducer.instances, ja = p([tb], (t) => Object.values(t)), sb = (t) => (s) => s.teamReducer.instances[t], ib = y(
3741
3741
  p([ja, (t, s) => s], (t, s) => {
3742
3742
  const e = new Set(s);
3743
3743
  return f(t.filter(({ uuid: i }) => e.has(i)));
3744
3744
  })
3745
- ), pw = m(
3745
+ ), pw = y(
3746
3746
  p([ja, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
3747
3747
  ), nb = qa.reducer, Va = {
3748
3748
  outboxReducer: BS,
@@ -3926,18 +3926,18 @@ Retries:`,
3926
3926
  if (!l)
3927
3927
  throw new Error("Outbox coordinator not set");
3928
3928
  l.remove(s.payload.uuid);
3929
- const y = s.meta.offline.rollback;
3930
- throw y && (console.warn("Rolling back request due to SDK error:", s), i.dispatch(y)), t;
3929
+ const m = s.meta.offline.rollback;
3930
+ throw m && (console.warn("Rolling back request due to SDK error:", s), i.dispatch(m)), t;
3931
3931
  }
3932
3932
  if (t instanceof C && t.options.discard && (console.debug("Discarding request due to explicit discard:", s.payload.url), d()), a.includes(r) && (console.debug("Discarding request due to deletion:", s.payload.url), d()), t instanceof C) {
3933
3933
  const l = t.status || ((h = t.response) == null ? void 0 : h.status);
3934
3934
  if (l || console.warn("Error has no status code:", t), l !== void 0 && $a.includes(l)) {
3935
3935
  console.warn("Discarding request due to error:", t, `
3936
3936
  Action:`, s);
3937
- const y = ht();
3938
- if (!y)
3937
+ const m = ht();
3938
+ if (!m)
3939
3939
  throw new Error("Outbox coordinator not set");
3940
- y.remove(s.payload.uuid), t.options.discard = !0, d();
3940
+ m.remove(s.payload.uuid), t.options.discard = !0, d();
3941
3941
  }
3942
3942
  }
3943
3943
  console.debug("Registering a retry for request:", s.payload.uuid);
@@ -4105,7 +4105,7 @@ function S(t, s, e) {
4105
4105
  return `Delete ${i}`;
4106
4106
  }
4107
4107
  }
4108
- function R(t) {
4108
+ function F(t) {
4109
4109
  const s = { ...t };
4110
4110
  for (const e of [...ac, "created_by"])
4111
4111
  e in s && delete s[e];
@@ -4143,11 +4143,15 @@ class V extends k {
4143
4143
  super(...arguments);
4144
4144
  u(this, "pageSize", cb);
4145
4145
  }
4146
- async getFileUrl(e, i) {
4147
- const n = await this.get(e, i);
4148
- if (!n.file_url)
4146
+ async getPresignedUrl(e, i) {
4147
+ const { updateOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
4148
+ if (!r)
4149
+ throw new Error(`Could not find ${this.name}: ${e} in store.`);
4150
+ if (r.file_url) return r.file_url;
4151
+ const d = await this.get(e, i);
4152
+ if (!d.file_url)
4149
4153
  throw new Error(`Unable to obtain file_url for ${this.name}: ${e}`);
4150
- return n.file_url;
4154
+ return this.dispatch(n(d)), d.file_url;
4151
4155
  }
4152
4156
  async add(e) {
4153
4157
  const { addOne: i, updateOne: n, deleteOne: a } = this.actions;
@@ -4166,7 +4170,7 @@ class V extends k {
4166
4170
  r = e;
4167
4171
  const h = this.buildModel(r), l = this.buildPayload(h);
4168
4172
  this.dispatch(i(h));
4169
- const y = this.enqueueRequest({
4173
+ const m = this.enqueueRequest({
4170
4174
  description: S(o.POST, this.name, !1),
4171
4175
  method: o.POST,
4172
4176
  url: `${this.url}/`,
@@ -4177,24 +4181,24 @@ class V extends k {
4177
4181
  blockers: this.getBlockers(h),
4178
4182
  blocks: this.getBlocks(h)
4179
4183
  });
4180
- y.then(({ instance: M }) => {
4184
+ m.then(({ instance: M }) => {
4181
4185
  this.dispatch(n(M));
4182
4186
  }).catch((M) => {
4183
4187
  throw this.dispatch(a(this.getId(h))), M;
4184
4188
  }).finally(() => {
4185
4189
  c && URL.revokeObjectURL(c);
4186
4190
  });
4187
- const A = y.then(({ instance: M }) => M), F = y.then(async ({ instance: M, presigned_url: w }) => {
4191
+ const A = m.then(({ instance: M }) => M), R = m.then(async ({ instance: M, presigned_url: w }) => {
4188
4192
  try {
4189
4193
  return w && await this.client.files.processPresignedUrl(M.file_sha1, w), M.file_sha1;
4190
4194
  } catch (g) {
4191
4195
  throw console.error("Upload to s3 using presigned url failed.", g), g;
4192
4196
  }
4193
4197
  });
4194
- return [h, A, F];
4198
+ return [h, A, R];
4195
4199
  }
4196
4200
  async bulkAdd(e, i) {
4197
- const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = [], h = /* @__PURE__ */ new Set(), l = ct(e, Math.min(i ?? e.length, at)), y = [];
4201
+ const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = [], h = /* @__PURE__ */ new Set(), l = ct(e, Math.min(i ?? e.length, at)), m = [];
4198
4202
  for (const w of l) {
4199
4203
  const g = [], E = {}, B = [], $ = [];
4200
4204
  for (const D of w) {
@@ -4229,10 +4233,10 @@ class V extends k {
4229
4233
  blockers: B,
4230
4234
  blocks: $
4231
4235
  };
4232
- y.push(q);
4236
+ m.push(q);
4233
4237
  }
4234
4238
  this.dispatch(n(c));
4235
- const A = y.map((w) => {
4239
+ const A = m.map((w) => {
4236
4240
  const { submittedAt: g, files: E, payloads: B, blocks: $, blockers: q } = w;
4237
4241
  return this.enqueueRequest({
4238
4242
  description: S(o.POST, this.name, !0),
@@ -4256,7 +4260,7 @@ class V extends k {
4256
4260
  for (const w of h)
4257
4261
  URL.revokeObjectURL(w);
4258
4262
  });
4259
- const F = Promise.all(A).then((w) => w.flatMap(({ instances: g }) => g)), M = Promise.all(A).then(async (w) => {
4263
+ const R = Promise.all(A).then((w) => w.flatMap(({ instances: g }) => g)), M = Promise.all(A).then(async (w) => {
4260
4264
  const g = [];
4261
4265
  for (const { presigned_urls: E } of w) {
4262
4266
  const B = this.client.files.processPresignedUrls(E);
@@ -4269,7 +4273,7 @@ class V extends k {
4269
4273
  }
4270
4274
  return g;
4271
4275
  });
4272
- return [c, F, M];
4276
+ return [c, R, M];
4273
4277
  }
4274
4278
  async delete(e) {
4275
4279
  const { addOne: i, deleteOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
@@ -4397,7 +4401,7 @@ class Ow extends k {
4397
4401
  description: S(o.POST, this.name, !1),
4398
4402
  method: o.POST,
4399
4403
  url: `${this.url}/`,
4400
- payload: R(r),
4404
+ payload: F(r),
4401
4405
  blockers: [r.asset],
4402
4406
  blocks: [r.uuid]
4403
4407
  });
@@ -4482,8 +4486,8 @@ class Tw extends k {
4482
4486
  }
4483
4487
  add(e) {
4484
4488
  const { addOne: i, updateOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
4485
- var y;
4486
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
4489
+ var m;
4490
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
4487
4491
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
4488
4492
  ...e,
4489
4493
  created_by: r,
@@ -4494,7 +4498,7 @@ class Tw extends k {
4494
4498
  description: S(o.POST, this.name, !1),
4495
4499
  method: o.POST,
4496
4500
  url: `${this.url}/`,
4497
- payload: R(c),
4501
+ payload: F(c),
4498
4502
  blockers: [c.asset_type],
4499
4503
  blocks: [c.uuid]
4500
4504
  });
@@ -4530,8 +4534,8 @@ class Tw extends k {
4530
4534
  async delete(e) {
4531
4535
  const { addOne: i, deleteOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
4532
4536
  if (!r) throw new Error(`No asset with uuid ${e} found in the store`);
4533
- const d = this.select(Cc(e)), c = this.select(Xc(e)), h = this.select(Op(e)), l = this.select(fO(e)), y = this.select(Hh(e));
4534
- this.dispatch(n(e)), this.dispatch(Ji(v(d))), this.dispatch(Nt(v(c))), this.dispatch(_t(v(h))), this.dispatch(Mt(v(l))), this.dispatch(mt(v(y)));
4537
+ const d = this.select(Cc(e)), c = this.select(Xc(e)), h = this.select(Op(e)), l = this.select(fO(e)), m = this.select(Hh(e));
4538
+ this.dispatch(n(e)), this.dispatch(Ji(v(d))), this.dispatch(Nt(v(c))), this.dispatch(_t(v(h))), this.dispatch(Mt(v(l))), this.dispatch(mt(v(m)));
4535
4539
  try {
4536
4540
  return await this.enqueueRequest({
4537
4541
  description: S(o.DELETE, this.name, !1),
@@ -4541,7 +4545,7 @@ class Tw extends k {
4541
4545
  blocks: []
4542
4546
  });
4543
4547
  } catch (A) {
4544
- throw this.dispatch(i(r)), this.dispatch(Yi(d)), this.dispatch(Lt(c)), this.dispatch(Pt(h)), this.dispatch(bt(l)), this.dispatch(pt(y)), A;
4548
+ throw this.dispatch(i(r)), this.dispatch(Yi(d)), this.dispatch(Lt(c)), this.dispatch(Pt(h)), this.dispatch(bt(l)), this.dispatch(pt(m)), A;
4545
4549
  }
4546
4550
  }
4547
4551
  bulkAdd(e, i) {
@@ -4549,7 +4553,7 @@ class Tw extends k {
4549
4553
  e,
4550
4554
  Math.min(i ?? e.length, at)
4551
4555
  ).map((h) => {
4552
- const l = h.map((y) => T(y));
4556
+ const l = h.map((m) => T(m));
4553
4557
  return {
4554
4558
  batchId: dt(),
4555
4559
  payload: {
@@ -4560,12 +4564,12 @@ class Tw extends k {
4560
4564
  }), d = [];
4561
4565
  let c = null;
4562
4566
  for (const h of r) {
4563
- const { batchId: l, payload: y } = h, A = y.assets.map(({ uuid: E }) => E), F = y.assets.map(({ asset_type: E }) => E), M = y.assets.map(({ project: E }) => E), w = y.assets.map(({ status: E }) => E), g = this.enqueueRequest({
4567
+ const { batchId: l, payload: m } = h, A = m.assets.map(({ uuid: E }) => E), R = m.assets.map(({ asset_type: E }) => E), M = m.assets.map(({ project: E }) => E), w = m.assets.map(({ status: E }) => E), g = this.enqueueRequest({
4564
4568
  description: S(o.POST, this.name, !0),
4565
4569
  method: o.POST,
4566
4570
  url: `${this.url}/bulk/`,
4567
- payload: y,
4568
- blockers: (c ? [c] : []).concat(F).concat(M).concat(w),
4571
+ payload: m,
4572
+ blockers: (c ? [c] : []).concat(R).concat(M).concat(w),
4569
4573
  blocks: [l].concat(A)
4570
4574
  });
4571
4575
  c = h.batchId, d.push(g);
@@ -4592,19 +4596,19 @@ class Tw extends k {
4592
4596
  });
4593
4597
  this.dispatch(n(c));
4594
4598
  const h = ct(e, Math.min(i ?? e.length, at)), l = [];
4595
- let y = null;
4599
+ let m = null;
4596
4600
  for (const A of h) {
4597
- const F = dt(), M = v(A), w = A.map(({ status: E }) => E).filter(Boolean), g = this.enqueueRequest({
4601
+ const R = dt(), M = v(A), w = A.map(({ status: E }) => E).filter(Boolean), g = this.enqueueRequest({
4598
4602
  description: S(o.PATCH, this.name, !0),
4599
4603
  method: o.PATCH,
4600
4604
  url: `${this.url}/bulk/`,
4601
4605
  payload: {
4602
4606
  payloads: A
4603
4607
  },
4604
- blockers: (y ? [y] : []).concat(M).concat(w),
4605
- blocks: [F].concat(M)
4608
+ blockers: (m ? [m] : []).concat(M).concat(w),
4609
+ blocks: [R].concat(M)
4606
4610
  });
4607
- l.push(g), y = F;
4611
+ l.push(g), m = R;
4608
4612
  }
4609
4613
  return Promise.all(l).then((A) => {
4610
4614
  this.dispatch(n(A.flat()));
@@ -4624,8 +4628,8 @@ class Tw extends k {
4624
4628
  blockers: e,
4625
4629
  blocks: []
4626
4630
  });
4627
- } catch (y) {
4628
- throw this.dispatch(i(r)), this.dispatch(Lt(d)), this.dispatch(Pt(c)), this.dispatch(bt(h)), this.dispatch(pt(l)), y;
4631
+ } catch (m) {
4632
+ throw this.dispatch(i(r)), this.dispatch(Lt(d)), this.dispatch(Pt(c)), this.dispatch(bt(h)), this.dispatch(pt(l)), m;
4629
4633
  }
4630
4634
  }
4631
4635
  async refreshStore(e, i) {
@@ -4811,8 +4815,8 @@ class _w extends k {
4811
4815
  }
4812
4816
  add(e) {
4813
4817
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
4814
- var y;
4815
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
4818
+ var m;
4819
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
4816
4820
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
4817
4821
  ...e,
4818
4822
  created_by: r,
@@ -4823,7 +4827,7 @@ class _w extends k {
4823
4827
  description: S(o.POST, this.name, !1),
4824
4828
  method: o.POST,
4825
4829
  url: `${this.url}/`,
4826
- payload: R(c),
4830
+ payload: F(c),
4827
4831
  blockers: [c.asset_type],
4828
4832
  blocks: [c.uuid]
4829
4833
  });
@@ -4961,8 +4965,8 @@ class Mw extends k {
4961
4965
  }
4962
4966
  add(e) {
4963
4967
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
4964
- var y;
4965
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
4968
+ var m;
4969
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
4966
4970
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
4967
4971
  ...e,
4968
4972
  created_by: r,
@@ -4971,7 +4975,7 @@ class Mw extends k {
4971
4975
  description: S(o.POST, this.name, !1),
4972
4976
  method: o.POST,
4973
4977
  url: `${this.url}/`,
4974
- payload: R(c),
4978
+ payload: F(c),
4975
4979
  blockers: [e.asset, e.fields_revision],
4976
4980
  blocks: [c.uuid]
4977
4981
  });
@@ -4982,8 +4986,8 @@ class Mw extends k {
4982
4986
  }), [c, h];
4983
4987
  }
4984
4988
  bulkAdd(e, i) {
4985
- const { payloads: n, values: a } = e, { addMany: r, setMany: d, deleteMany: c } = this.actions, h = (/* @__PURE__ */ new Date()).toISOString(), l = [], y = ct(n, Math.min(i ?? n.length, at)), A = [];
4986
- for (const M of y) {
4989
+ const { payloads: n, values: a } = e, { addMany: r, setMany: d, deleteMany: c } = this.actions, h = (/* @__PURE__ */ new Date()).toISOString(), l = [], m = ct(n, Math.min(i ?? n.length, at)), A = [];
4990
+ for (const M of m) {
4987
4991
  const w = [];
4988
4992
  for (const g of M) {
4989
4993
  const E = T({
@@ -5010,7 +5014,7 @@ class Mw extends k {
5010
5014
  });
5011
5015
  }
5012
5016
  this.dispatch(r(l));
5013
- const F = [];
5017
+ const R = [];
5014
5018
  for (const M of A) {
5015
5019
  const { field_values: w } = M, g = w.map(({ asset: q }) => q), E = w.map(({ fields_revision: q }) => q), B = w.map(({ uuid: q }) => q), $ = this.enqueueRequest({
5016
5020
  description: S(o.POST, this.name, !0),
@@ -5020,13 +5024,13 @@ class Mw extends k {
5020
5024
  blockers: g.concat(E),
5021
5025
  blocks: B
5022
5026
  });
5023
- F.push($);
5027
+ R.push($);
5024
5028
  }
5025
- return Promise.all(F).then((M) => {
5029
+ return Promise.all(R).then((M) => {
5026
5030
  this.dispatch(d(M.flat()));
5027
5031
  }).catch(() => {
5028
5032
  this.dispatch(c(v(l)));
5029
- }), [l, F];
5033
+ }), [l, R];
5030
5034
  }
5031
5035
  update(e) {
5032
5036
  const { setOne: i } = this.actions, { selectById: n } = this.selectors, a = this.select(n(e.uuid));
@@ -5109,8 +5113,8 @@ class gw extends k {
5109
5113
  }
5110
5114
  add(e) {
5111
5115
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5112
- var y;
5113
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
5116
+ var m;
5117
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
5114
5118
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5115
5119
  ...e,
5116
5120
  created_by: r,
@@ -5121,7 +5125,7 @@ class gw extends k {
5121
5125
  description: S(o.POST, this.name, !1),
5122
5126
  method: o.POST,
5123
5127
  url: `${this.url}/`,
5124
- payload: R(c),
5128
+ payload: F(c),
5125
5129
  blockers: [c.asset_type],
5126
5130
  blocks: [c.uuid]
5127
5131
  });
@@ -5206,8 +5210,8 @@ class ww extends k {
5206
5210
  }
5207
5211
  add(e) {
5208
5212
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5209
- var y;
5210
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
5213
+ var m;
5214
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
5211
5215
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5212
5216
  ...e,
5213
5217
  created_by: r,
@@ -5218,7 +5222,7 @@ class ww extends k {
5218
5222
  description: S(o.POST, this.name, !1),
5219
5223
  method: o.POST,
5220
5224
  url: `${this.url}/`,
5221
- payload: R(c),
5225
+ payload: F(c),
5222
5226
  blockers: [e.asset, e.asset_type_identifier],
5223
5227
  blocks: [c.uuid]
5224
5228
  });
@@ -5232,7 +5236,7 @@ class ww extends k {
5232
5236
  const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((M) => {
5233
5237
  var w;
5234
5238
  return ((w = M.userReducer.currentUser) == null ? void 0 : w.id) ?? null;
5235
- }), h = ct(e, Math.min(i ?? e.length, at)), l = [], y = [];
5239
+ }), h = ct(e, Math.min(i ?? e.length, at)), l = [], m = [];
5236
5240
  for (const M of h) {
5237
5241
  const w = [], g = [], E = [];
5238
5242
  for (const $ of M) {
@@ -5241,7 +5245,7 @@ class ww extends k {
5241
5245
  submitted_at: d,
5242
5246
  created_by: c
5243
5247
  });
5244
- y.push(q);
5248
+ m.push(q);
5245
5249
  const D = {
5246
5250
  uuid: q.uuid,
5247
5251
  asset: q.asset,
@@ -5258,7 +5262,7 @@ class ww extends k {
5258
5262
  };
5259
5263
  l.push(B);
5260
5264
  }
5261
- this.dispatch(n(y));
5265
+ this.dispatch(n(m));
5262
5266
  const A = l.map((M) => {
5263
5267
  const { payloads: w, submitted_at: g, blockers: E, blocks: B } = M;
5264
5268
  return this.enqueueRequest({
@@ -5276,10 +5280,10 @@ class ww extends k {
5276
5280
  Promise.all(A).then((M) => {
5277
5281
  this.dispatch(a(M.flat()));
5278
5282
  }).catch((M) => {
5279
- throw this.dispatch(r(v(y))), M;
5283
+ throw this.dispatch(r(v(m))), M;
5280
5284
  });
5281
- const F = Promise.all(A).then((M) => M.flat());
5282
- return [y, F];
5285
+ const R = Promise.all(A).then((M) => M.flat());
5286
+ return [m, R];
5283
5287
  }
5284
5288
  async delete(e) {
5285
5289
  const { deleteOne: i, addOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
@@ -5334,8 +5338,8 @@ class Rw extends k {
5334
5338
  }
5335
5339
  add(e) {
5336
5340
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5337
- var y;
5338
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
5341
+ var m;
5342
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
5339
5343
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5340
5344
  ...e,
5341
5345
  created_by: r,
@@ -5346,7 +5350,7 @@ class Rw extends k {
5346
5350
  description: S(o.POST, this.name, !1),
5347
5351
  method: o.POST,
5348
5352
  url: `${this.url}/`,
5349
- payload: R(c),
5353
+ payload: F(c),
5350
5354
  blockers: [],
5351
5355
  blocks: [c.uuid]
5352
5356
  });
@@ -5432,8 +5436,8 @@ class Fw extends k {
5432
5436
  }
5433
5437
  add(e) {
5434
5438
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5435
- var y;
5436
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
5439
+ var m;
5440
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
5437
5441
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5438
5442
  ...e,
5439
5443
  created_by: r,
@@ -5444,7 +5448,7 @@ class Fw extends k {
5444
5448
  description: S(o.POST, this.name, !1),
5445
5449
  method: o.POST,
5446
5450
  url: `${this.url}/`,
5447
- payload: R(c),
5451
+ payload: F(c),
5448
5452
  blockers: [e.asset_type],
5449
5453
  blocks: [c.uuid]
5450
5454
  });
@@ -5628,8 +5632,8 @@ class vw extends k {
5628
5632
  }
5629
5633
  add(e) {
5630
5634
  const { addOne: i, deleteOne: n, updateOne: a } = this.actions, r = this.select((l) => {
5631
- var y;
5632
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
5635
+ var m;
5636
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
5633
5637
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5634
5638
  ...e,
5635
5639
  created_by: r,
@@ -5640,7 +5644,7 @@ class vw extends k {
5640
5644
  description: S(o.POST, this.name, !1),
5641
5645
  method: o.POST,
5642
5646
  url: `${this.url}/`,
5643
- payload: R(c),
5647
+ payload: F(c),
5644
5648
  blockers: c.parent_document ? [c.parent_document] : [],
5645
5649
  blocks: [c.uuid]
5646
5650
  });
@@ -5867,43 +5871,47 @@ class zw extends At {
5867
5871
  * will be thrown.
5868
5872
  * @param downloadedName (Optional) The name to give the file after download. Set to the name of an attachment, for
5869
5873
  * example.
5874
+ * @param signal (Optional) An abort signal to be passed down to cancel the request
5870
5875
  */
5871
- async fetchFileFromUrl(e, i, n = i) {
5872
- const a = e.split("?")[0] ?? e, r = await this.fetchCache(i);
5873
- if (r) return r;
5874
- let d;
5875
- a in Tt ? d = Tt[a] : Ic(e) ? (d = Tc(e, n), Tt[a] = d) : (d = new Promise((l) => {
5876
- this.performRequest({
5877
- method: o.GET,
5878
- url: e,
5879
- // If in development, we should assume the files are saved at localhost by the Django development server.
5880
- // Setting this to true will lead to localhost:8000 being prepended to the URL.
5881
- isExternalUrl: !0,
5882
- isResponseBlob: !0,
5883
- isAuthNeeded: !1
5884
- }).then((y) => {
5885
- const A = new File([y], n, { type: y.type });
5886
- l(A);
5887
- });
5888
- }), Tt[a] = d);
5876
+ async fetchFileFromUrl(e, i, n = i, a) {
5877
+ const r = e.split("?")[0] ?? e, d = await this.fetchCache(i);
5878
+ if (d) return d;
5889
5879
  let c;
5880
+ r in Tt ? c = Tt[r] : Ic(e) ? (c = Tc(e, n), Tt[r] = c) : (c = new Promise((m) => {
5881
+ this.performRequest(
5882
+ {
5883
+ method: o.GET,
5884
+ url: e,
5885
+ // If in development, we should assume the files are saved at localhost by the Django development server.
5886
+ // Setting this to true will lead to localhost:8000 being prepended to the URL.
5887
+ isExternalUrl: !0,
5888
+ isResponseBlob: !0,
5889
+ isAuthNeeded: !1
5890
+ },
5891
+ a
5892
+ ).then((A) => {
5893
+ const R = new File([A], n, { type: A.type });
5894
+ m(R);
5895
+ });
5896
+ }), Tt[r] = c);
5897
+ let h;
5890
5898
  try {
5891
- c = await d;
5892
- } catch (l) {
5893
- throw l instanceof C && delete Tt[a], l;
5899
+ h = await c;
5900
+ } catch (m) {
5901
+ throw m instanceof C && delete Tt[r], m;
5894
5902
  }
5895
- const h = await $t(c);
5896
- if (h !== i) {
5897
- const l = `The hash of the file returned from the server (${h}) does not match the
5903
+ const l = await $t(h);
5904
+ if (l !== i) {
5905
+ const m = `The hash of the file returned from the server (${l}) does not match the
5898
5906
  expected hash (${i}). This can happen if you're using a local development server and the
5899
5907
  isExternalUrl flag in the request details is set to true, because instead of requesting the local
5900
5908
  REST API, you will be requesting localhost:80 (where this app runs), resulting in a transformed blob
5901
5909
  (with an uuid attached) being returned. Alternatively, you may be running with
5902
5910
  import.meta.env.PROD, which will result in some file requests being treated as
5903
5911
  external URLs and therefore not prepended with VITE_API_URL.`;
5904
- throw new Error(l);
5912
+ throw new Error(m);
5905
5913
  }
5906
- return await this.addCache(c), c;
5914
+ return await this.addCache(h), h;
5907
5915
  }
5908
5916
  processPresignedUrl(e, i) {
5909
5917
  if ("warning" in i) {
@@ -5963,8 +5971,8 @@ class Dw extends k {
5963
5971
  }
5964
5972
  add(e) {
5965
5973
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5966
- var y;
5967
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
5974
+ var m;
5975
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
5968
5976
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5969
5977
  ...e,
5970
5978
  created_by: r,
@@ -5975,7 +5983,7 @@ class Dw extends k {
5975
5983
  description: S(o.POST, this.name, !1),
5976
5984
  method: o.POST,
5977
5985
  url: `${this.url}/`,
5978
- payload: R(c),
5986
+ payload: F(c),
5979
5987
  blockers: [c.form],
5980
5988
  blocks: [c.uuid]
5981
5989
  });
@@ -6060,8 +6068,8 @@ class qw extends k {
6060
6068
  }
6061
6069
  add(e) {
6062
6070
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
6063
- var y;
6064
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
6071
+ var m;
6072
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
6065
6073
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
6066
6074
  ...e,
6067
6075
  created_by: r,
@@ -6072,7 +6080,7 @@ class qw extends k {
6072
6080
  description: S(o.POST, this.name, !1),
6073
6081
  method: o.POST,
6074
6082
  url: `${this.url}/`,
6075
- payload: R(c),
6083
+ payload: F(c),
6076
6084
  blockers: [e.form_submission, e.form_identifier],
6077
6085
  blocks: [c.uuid]
6078
6086
  });
@@ -6224,8 +6232,8 @@ class Vw extends k {
6224
6232
  }
6225
6233
  add(e) {
6226
6234
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
6227
- var y;
6228
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
6235
+ var m;
6236
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
6229
6237
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
6230
6238
  ...e,
6231
6239
  created_by: r,
@@ -6236,7 +6244,7 @@ class Vw extends k {
6236
6244
  description: S(o.POST, this.name, !1),
6237
6245
  method: o.POST,
6238
6246
  url: `${this.url}/`,
6239
- payload: R(c),
6247
+ payload: F(c),
6240
6248
  blockers: [e.form],
6241
6249
  blocks: [c.uuid]
6242
6250
  });
@@ -6281,8 +6289,8 @@ class $w extends k {
6281
6289
  }
6282
6290
  add(e) {
6283
6291
  const { addOne: i, updateOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
6284
- var y;
6285
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
6292
+ var m;
6293
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
6286
6294
  }), c = T({
6287
6295
  ...e,
6288
6296
  submitted_at: r,
@@ -6293,7 +6301,7 @@ class $w extends k {
6293
6301
  description: S(o.POST, this.name, !1),
6294
6302
  method: o.POST,
6295
6303
  url: `${this.url}/`,
6296
- payload: R(c),
6304
+ payload: F(c),
6297
6305
  blockers: [],
6298
6306
  blocks: [c.uuid]
6299
6307
  });
@@ -6485,8 +6493,8 @@ class Cw extends k {
6485
6493
  }
6486
6494
  add(e) {
6487
6495
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
6488
- var y;
6489
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
6496
+ var m;
6497
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
6490
6498
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
6491
6499
  ...e,
6492
6500
  created_by: r,
@@ -6495,7 +6503,7 @@ class Cw extends k {
6495
6503
  description: S(o.POST, this.name, !1),
6496
6504
  method: o.POST,
6497
6505
  url: `${this.url}/`,
6498
- payload: R(c),
6506
+ payload: F(c),
6499
6507
  blockers: [e.form_revision],
6500
6508
  blocks: [c.uuid]
6501
6509
  });
@@ -6699,8 +6707,8 @@ class Lw extends k {
6699
6707
  }
6700
6708
  add(e) {
6701
6709
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
6702
- var y;
6703
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
6710
+ var m;
6711
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
6704
6712
  }), c = T({
6705
6713
  ...e,
6706
6714
  submitted_at: r,
@@ -6711,7 +6719,7 @@ class Lw extends k {
6711
6719
  description: S(o.POST, this.name, !1),
6712
6720
  method: o.POST,
6713
6721
  url: `${this.url}/`,
6714
- payload: R(c),
6722
+ payload: F(c),
6715
6723
  blockers: [e.issue, e.asset],
6716
6724
  blocks: [c.uuid]
6717
6725
  });
@@ -6723,8 +6731,8 @@ class Lw extends k {
6723
6731
  }
6724
6732
  bulkAdd(e) {
6725
6733
  const { addMany: i, deleteMany: n, updateMany: a } = this.actions, r = this.select((l) => {
6726
- var y;
6727
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
6734
+ var m;
6735
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
6728
6736
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map((l) => T({ ...l, submitted_at: d, created_by: r }));
6729
6737
  this.dispatch(i(c));
6730
6738
  const h = this.enqueueRequest({
@@ -6732,7 +6740,7 @@ class Lw extends k {
6732
6740
  method: o.POST,
6733
6741
  url: `${this.url}/bulk/`,
6734
6742
  payload: {
6735
- payloads: c.map((l) => R(l)),
6743
+ payloads: c.map((l) => F(l)),
6736
6744
  submitted_at: d
6737
6745
  },
6738
6746
  blockers: c.flatMap((l) => [l.issue, l.asset]),
@@ -6949,7 +6957,7 @@ class Gw extends k {
6949
6957
  description: S(o.POST, this.name, !1),
6950
6958
  method: o.POST,
6951
6959
  url: `${this.url}/`,
6952
- payload: R(r),
6960
+ payload: F(r),
6953
6961
  blockers: [e.issue],
6954
6962
  blocks: [r.uuid]
6955
6963
  });
@@ -7034,8 +7042,8 @@ class Ww extends k {
7034
7042
  }
7035
7043
  add(e) {
7036
7044
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
7037
- var y;
7038
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
7045
+ var m;
7046
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
7039
7047
  }), c = T({
7040
7048
  ...e,
7041
7049
  submitted_at: r,
@@ -7046,7 +7054,7 @@ class Ww extends k {
7046
7054
  description: S(o.POST, this.name, !1),
7047
7055
  method: o.POST,
7048
7056
  url: `${this.url}/`,
7049
- payload: R(c),
7057
+ payload: F(c),
7050
7058
  blockers: [c.project, c.issue_type, c.status, c.priority],
7051
7059
  blocks: [c.uuid]
7052
7060
  });
@@ -7074,10 +7082,10 @@ class Ww extends k {
7074
7082
  if (l in e && e[l] !== a[l])
7075
7083
  switch (l) {
7076
7084
  case x.PRIORITY: {
7077
- const y = e[l], A = this.select(Ir(y));
7085
+ const m = e[l], A = this.select(Ir(m));
7078
7086
  if (!A)
7079
7087
  throw new Error(
7080
- `Trying to update issue type priority with ${y} which does not exist in store`
7088
+ `Trying to update issue type priority with ${m} which does not exist in store`
7081
7089
  );
7082
7090
  d[l] = {
7083
7091
  name: A.name,
@@ -7096,9 +7104,9 @@ class Ww extends k {
7096
7104
  d[l] = e.title ?? "";
7097
7105
  break;
7098
7106
  case x.STATUS: {
7099
- const y = e[l], A = this.select(gr(y));
7107
+ const m = e[l], A = this.select(gr(m));
7100
7108
  if (!A)
7101
- throw new Error(`Trying to update issue type status with ${y} which does not exist in store`);
7109
+ throw new Error(`Trying to update issue type status with ${m} which does not exist in store`);
7102
7110
  d[l] = {
7103
7111
  name: A.name,
7104
7112
  color: A.color,
@@ -7107,13 +7115,13 @@ class Ww extends k {
7107
7115
  break;
7108
7116
  }
7109
7117
  case x.ASSIGNED_TO: {
7110
- const y = e[l];
7111
- if (y === null)
7118
+ const m = e[l];
7119
+ if (m === null)
7112
7120
  d[l] = null;
7113
7121
  else {
7114
- const A = this.select(cs(y));
7122
+ const A = this.select(cs(m));
7115
7123
  if (!A)
7116
- throw new Error(`Trying to update assigned to with ${y} which does not exist in store.`);
7124
+ throw new Error(`Trying to update assigned to with ${m} which does not exist in store.`);
7117
7125
  d[l] = {
7118
7126
  full_name: A.username,
7119
7127
  id: A.id
@@ -7124,8 +7132,8 @@ class Ww extends k {
7124
7132
  }
7125
7133
  const c = T({
7126
7134
  created_by: this.select((l) => {
7127
- var y;
7128
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
7135
+ var m;
7136
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
7129
7137
  }),
7130
7138
  submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
7131
7139
  issue: a.uuid,
@@ -7163,19 +7171,19 @@ class Ww extends k {
7163
7171
  });
7164
7172
  this.dispatch(n(c));
7165
7173
  const h = ct(e, Math.min(i ?? e.length, at)), l = [];
7166
- let y = null;
7174
+ let m = null;
7167
7175
  for (const A of h) {
7168
- const F = dt(), M = v(A), w = A.map(({ status: B }) => B).filter(Boolean), g = A.map(({ priority: B }) => B).filter(Boolean), E = this.enqueueRequest({
7176
+ const R = dt(), M = v(A), w = A.map(({ status: B }) => B).filter(Boolean), g = A.map(({ priority: B }) => B).filter(Boolean), E = this.enqueueRequest({
7169
7177
  description: S(o.PATCH, this.name, !0),
7170
7178
  method: o.PATCH,
7171
7179
  url: `${this.url}/bulk/`,
7172
7180
  payload: {
7173
7181
  payloads: A
7174
7182
  },
7175
- blockers: (y ? [y] : []).concat(M).concat(w).concat(g),
7176
- blocks: [F].concat(M)
7183
+ blockers: (m ? [m] : []).concat(M).concat(w).concat(g),
7184
+ blocks: [R].concat(M)
7177
7185
  });
7178
- l.push(E), y = F;
7186
+ l.push(E), m = R;
7179
7187
  }
7180
7188
  return Promise.all(l).then((A) => {
7181
7189
  this.dispatch(n(A.flat()));
@@ -7197,8 +7205,8 @@ class Ww extends k {
7197
7205
  blockers: [e],
7198
7206
  blocks: []
7199
7207
  });
7200
- } catch (y) {
7201
- throw this.dispatch(n(r)), this.dispatch(Jn(c)), this.dispatch(Fr(h)), this.dispatch(Pt(d)), this.dispatch(pt(l)), y;
7208
+ } catch (m) {
7209
+ throw this.dispatch(n(r)), this.dispatch(Jn(c)), this.dispatch(Fr(h)), this.dispatch(Pt(d)), this.dispatch(pt(l)), m;
7202
7210
  }
7203
7211
  }
7204
7212
  async bulkDelete(e) {
@@ -7400,8 +7408,8 @@ class Jw extends k {
7400
7408
  }
7401
7409
  add(e) {
7402
7410
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7403
- var y;
7404
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
7411
+ var m;
7412
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
7405
7413
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7406
7414
  ...e,
7407
7415
  created_by: r,
@@ -7412,7 +7420,7 @@ class Jw extends k {
7412
7420
  description: S(o.POST, this.name, !1),
7413
7421
  method: o.POST,
7414
7422
  url: `${this.url}/`,
7415
- payload: R(c),
7423
+ payload: F(c),
7416
7424
  blockers: [c.issue_type],
7417
7425
  blocks: [c.uuid]
7418
7426
  });
@@ -7550,8 +7558,8 @@ class Qw extends k {
7550
7558
  }
7551
7559
  add(e) {
7552
7560
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7553
- var y;
7554
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
7561
+ var m;
7562
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
7555
7563
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7556
7564
  ...e,
7557
7565
  created_by: r,
@@ -7560,7 +7568,7 @@ class Qw extends k {
7560
7568
  description: S(o.POST, this.name, !1),
7561
7569
  method: o.POST,
7562
7570
  url: `${this.url}/`,
7563
- payload: R(c),
7571
+ payload: F(c),
7564
7572
  blockers: [e.issue, e.fields_revision],
7565
7573
  blocks: [c.uuid]
7566
7574
  });
@@ -7651,8 +7659,8 @@ class Xw extends k {
7651
7659
  }
7652
7660
  add(e) {
7653
7661
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7654
- var y;
7655
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
7662
+ var m;
7663
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
7656
7664
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7657
7665
  ...e,
7658
7666
  created_by: r,
@@ -7663,7 +7671,7 @@ class Xw extends k {
7663
7671
  description: S(o.POST, this.name, !1),
7664
7672
  method: o.POST,
7665
7673
  url: `${this.url}/`,
7666
- payload: R(c),
7674
+ payload: F(c),
7667
7675
  blockers: [c.issue_type],
7668
7676
  blocks: [c.uuid]
7669
7677
  });
@@ -7748,8 +7756,8 @@ class eR extends k {
7748
7756
  }
7749
7757
  add(e) {
7750
7758
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7751
- var y;
7752
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
7759
+ var m;
7760
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
7753
7761
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7754
7762
  ...e,
7755
7763
  created_by: r,
@@ -7760,7 +7768,7 @@ class eR extends k {
7760
7768
  description: S(o.POST, this.name, !1),
7761
7769
  method: o.POST,
7762
7770
  url: `${this.url}/`,
7763
- payload: R(c),
7771
+ payload: F(c),
7764
7772
  blockers: [e.issue, e.issue_type_identifier],
7765
7773
  blocks: [c.uuid]
7766
7774
  });
@@ -7823,8 +7831,8 @@ class tR extends k {
7823
7831
  }
7824
7832
  add(e) {
7825
7833
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7826
- var y;
7827
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
7834
+ var m;
7835
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
7828
7836
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7829
7837
  ...e,
7830
7838
  created_by: r,
@@ -7835,7 +7843,7 @@ class tR extends k {
7835
7843
  description: S(o.POST, this.name, !1),
7836
7844
  method: o.POST,
7837
7845
  url: `${this.url}/`,
7838
- payload: R(c),
7846
+ payload: F(c),
7839
7847
  blockers: [e.issue_type],
7840
7848
  blocks: [c.uuid]
7841
7849
  });
@@ -7917,8 +7925,8 @@ class sR extends k {
7917
7925
  }
7918
7926
  add(e) {
7919
7927
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7920
- var y;
7921
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
7928
+ var m;
7929
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
7922
7930
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7923
7931
  ...e,
7924
7932
  submitted_at: d,
@@ -7928,7 +7936,7 @@ class sR extends k {
7928
7936
  const h = this.enqueueRequest({
7929
7937
  method: o.POST,
7930
7938
  url: `${this.url}/`,
7931
- payload: R(c),
7939
+ payload: F(c),
7932
7940
  blockers: [],
7933
7941
  blocks: [c.uuid]
7934
7942
  });
@@ -8013,8 +8021,8 @@ class iR extends k {
8013
8021
  }
8014
8022
  add(e) {
8015
8023
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
8016
- var y;
8017
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
8024
+ var m;
8025
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
8018
8026
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
8019
8027
  ...e,
8020
8028
  created_by: r,
@@ -8025,7 +8033,7 @@ class iR extends k {
8025
8033
  description: S(o.POST, this.name, !1),
8026
8034
  method: o.POST,
8027
8035
  url: `${this.url}/`,
8028
- payload: R(c),
8036
+ payload: F(c),
8029
8037
  blockers: [e.issue_type],
8030
8038
  blocks: [c.uuid]
8031
8039
  });
@@ -8395,7 +8403,7 @@ class dR extends k {
8395
8403
  description: S(o.POST, this.name, !1),
8396
8404
  method: o.POST,
8397
8405
  url: `${this.url}/`,
8398
- payload: R(r),
8406
+ payload: F(r),
8399
8407
  blockers: [r.organization_access, r.project],
8400
8408
  blocks: [r.uuid]
8401
8409
  });
@@ -8415,7 +8423,7 @@ class dR extends k {
8415
8423
  description: S(o.POST, this.name, !0),
8416
8424
  method: o.POST,
8417
8425
  url: `${this.url}/bulk/`,
8418
- payload: { project_accesses: d.map((h) => R(h)) },
8426
+ payload: { project_accesses: d.map((h) => F(h)) },
8419
8427
  blockers: d.flatMap((h) => [
8420
8428
  h.project,
8421
8429
  h.organization_access
@@ -8582,7 +8590,7 @@ class uR extends k {
8582
8590
  description: S(o.POST, this.name, !1),
8583
8591
  method: o.POST,
8584
8592
  url: `${this.url}/`,
8585
- payload: R(r),
8593
+ payload: F(r),
8586
8594
  blockers: [r.project],
8587
8595
  blocks: [r.uuid]
8588
8596
  });
@@ -8767,7 +8775,7 @@ class hR extends Ot {
8767
8775
  const { addOne: i } = this.actions, n = await this.performRequest({
8768
8776
  method: o.POST,
8769
8777
  url: `${this.url}/`,
8770
- payload: R(e)
8778
+ payload: F(e)
8771
8779
  });
8772
8780
  return this.dispatch(i(n)), n;
8773
8781
  }
@@ -8775,7 +8783,7 @@ class hR extends Ot {
8775
8783
  const { updateOne: i } = this.actions, n = await this.performRequest({
8776
8784
  method: o.PATCH,
8777
8785
  url: `${this.url}/${e.uuid}/`,
8778
- payload: R(e)
8786
+ payload: F(e)
8779
8787
  });
8780
8788
  return this.dispatch(i(n)), n;
8781
8789
  }
@@ -8836,7 +8844,7 @@ class pR extends k {
8836
8844
  description: S(o.POST, this.name, !1),
8837
8845
  method: o.POST,
8838
8846
  url: `${this.url}/`,
8839
- payload: R(r),
8847
+ payload: F(r),
8840
8848
  blockers: [
8841
8849
  r.procedure_type,
8842
8850
  r.project,
@@ -8853,8 +8861,8 @@ class pR extends k {
8853
8861
  }
8854
8862
  bulkAdd(e, i) {
8855
8863
  var M;
8856
- const { store: n } = this.client, { addMany: a, updateMany: r, deleteMany: d } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), h = ((M = n.getState().userReducer.currentUser) == null ? void 0 : M.id) ?? null, l = [], y = ct(e, Math.min(i ?? e.length, at)), A = [];
8857
- for (const w of y) {
8864
+ const { store: n } = this.client, { addMany: a, updateMany: r, deleteMany: d } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), h = ((M = n.getState().userReducer.currentUser) == null ? void 0 : M.id) ?? null, l = [], m = ct(e, Math.min(i ?? e.length, at)), A = [];
8865
+ for (const w of m) {
8858
8866
  const g = [], E = [], B = [];
8859
8867
  for (const q of w) {
8860
8868
  const D = T({
@@ -8862,7 +8870,7 @@ class pR extends k {
8862
8870
  submitted_at: c,
8863
8871
  created_by: h
8864
8872
  });
8865
- l.push(D), g.push(R(D)), E.push(
8873
+ l.push(D), g.push(F(D)), E.push(
8866
8874
  D.procedure_type,
8867
8875
  D.project,
8868
8876
  D.asset,
@@ -8880,7 +8888,7 @@ class pR extends k {
8880
8888
  A.push($);
8881
8889
  }
8882
8890
  this.dispatch(a(l));
8883
- const F = A.map((w) => {
8891
+ const R = A.map((w) => {
8884
8892
  const { payload: g, blocks: E, blockers: B } = w;
8885
8893
  return this.enqueueRequest({
8886
8894
  description: S(o.POST, this.name, !0),
@@ -8891,11 +8899,11 @@ class pR extends k {
8891
8899
  blocks: E
8892
8900
  });
8893
8901
  });
8894
- return Promise.all(F).then((w) => {
8902
+ return Promise.all(R).then((w) => {
8895
8903
  this.dispatch(r(w.flat()));
8896
8904
  }).catch(() => {
8897
8905
  this.dispatch(d(v(l)));
8898
- }), [l, Promise.all(F).then((w) => w.flat())];
8906
+ }), [l, Promise.all(R).then((w) => w.flat())];
8899
8907
  }
8900
8908
  update(e) {
8901
8909
  const { updateOne: i } = this.actions, { selectById: n } = this.selectors, a = this.select(n(e.uuid));
@@ -9000,7 +9008,7 @@ class mR extends k {
9000
9008
  description: S(o.POST, this.name, !1),
9001
9009
  method: o.POST,
9002
9010
  url: `${this.url}/`,
9003
- payload: R(r),
9011
+ payload: F(r),
9004
9012
  blockers: [r.procedure, r.procedure_step],
9005
9013
  blocks: [r.uuid]
9006
9014
  });
@@ -9012,8 +9020,8 @@ class mR extends k {
9012
9020
  }
9013
9021
  bulkAdd(e) {
9014
9022
  const { addMany: i, setMany: n, deleteMany: a } = this.actions, r = this.select((l) => {
9015
- var y;
9016
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
9023
+ var m;
9024
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
9017
9025
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map(
9018
9026
  (l) => T({
9019
9027
  ...l,
@@ -9027,7 +9035,7 @@ class mR extends k {
9027
9035
  method: o.POST,
9028
9036
  url: `${this.url}/bulk/`,
9029
9037
  payload: {
9030
- procedure_step_assignees: c.map((l) => R(l)),
9038
+ procedure_step_assignees: c.map((l) => F(l)),
9031
9039
  submitted_at: d
9032
9040
  },
9033
9041
  blockers: c.flatMap((l) => [
@@ -9122,7 +9130,7 @@ class yR extends k {
9122
9130
  description: S(o.POST, this.name, !1),
9123
9131
  method: o.POST,
9124
9132
  url: `${this.url}/`,
9125
- payload: R(r),
9133
+ payload: F(r),
9126
9134
  blockers: [r.procedure, r.procedure_step],
9127
9135
  blocks: [r.uuid]
9128
9136
  });
@@ -9219,7 +9227,7 @@ class fR extends k {
9219
9227
  description: S(o.POST, this.name, !1),
9220
9228
  method: o.POST,
9221
9229
  url: `${this.url}/`,
9222
- payload: R(r),
9230
+ payload: F(r),
9223
9231
  blockers: [r.procedure_step],
9224
9232
  blocks: [r.uuid]
9225
9233
  });
@@ -9293,7 +9301,7 @@ class SR extends k {
9293
9301
  description: S(o.POST, this.name, !1),
9294
9302
  method: o.POST,
9295
9303
  url: `${this.url}/`,
9296
- payload: R(r),
9304
+ payload: F(r),
9297
9305
  blockers: [r.procedure_step],
9298
9306
  blocks: [r.uuid]
9299
9307
  });
@@ -9475,7 +9483,7 @@ class TR extends k {
9475
9483
  description: S(o.POST, this.name, !1),
9476
9484
  method: o.POST,
9477
9485
  url: `${this.url}/`,
9478
- payload: R(r),
9486
+ payload: F(r),
9479
9487
  blockers: [r.procedure_step],
9480
9488
  blocks: [r.uuid]
9481
9489
  });
@@ -9643,7 +9651,7 @@ class PR extends k {
9643
9651
  description: S(o.POST, this.name, !1),
9644
9652
  method: o.POST,
9645
9653
  url: `${this.url}/`,
9646
- payload: R(r),
9654
+ payload: F(r),
9647
9655
  blockers: [r.field_values],
9648
9656
  blocks: [r.uuid]
9649
9657
  });
@@ -9728,8 +9736,8 @@ class _R extends k {
9728
9736
  }
9729
9737
  add(e) {
9730
9738
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
9731
- var y;
9732
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
9739
+ var m;
9740
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
9733
9741
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
9734
9742
  ...e,
9735
9743
  created_by: r,
@@ -9738,7 +9746,7 @@ class _R extends k {
9738
9746
  description: S(o.POST, this.name, !1),
9739
9747
  method: o.POST,
9740
9748
  url: `${this.url}/`,
9741
- payload: R(c),
9749
+ payload: F(c),
9742
9750
  blockers: [e.procedure, e.procedure_step, e.fields_revision],
9743
9751
  blocks: [c.uuid]
9744
9752
  });
@@ -9749,26 +9757,26 @@ class _R extends k {
9749
9757
  }), [c, h];
9750
9758
  }
9751
9759
  bulkAdd(e, i) {
9752
- const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((F) => {
9760
+ const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((R) => {
9753
9761
  var M;
9754
- return ((M = F.userReducer.currentUser) == null ? void 0 : M.id) ?? null;
9755
- }), h = [], l = ct(e, Math.min(i ?? e.length, at)), y = [];
9756
- for (const F of l) {
9762
+ return ((M = R.userReducer.currentUser) == null ? void 0 : M.id) ?? null;
9763
+ }), h = [], l = ct(e, Math.min(i ?? e.length, at)), m = [];
9764
+ for (const R of l) {
9757
9765
  const M = [], w = [], g = [];
9758
- for (const E of F) {
9766
+ for (const E of R) {
9759
9767
  const B = T({
9760
9768
  ...E,
9761
9769
  values: E.values,
9762
9770
  created_by: c,
9763
9771
  submitted_at: d
9764
9772
  });
9765
- h.push(B), M.push(R(B)), w.push(
9773
+ h.push(B), M.push(F(B)), w.push(
9766
9774
  B.procedure_step,
9767
9775
  B.procedure,
9768
9776
  B.fields_revision
9769
9777
  ), g.push(B.uuid);
9770
9778
  }
9771
- y.push({
9779
+ m.push({
9772
9780
  payload: {
9773
9781
  payloads: M,
9774
9782
  submitted_at: d
@@ -9778,8 +9786,8 @@ class _R extends k {
9778
9786
  });
9779
9787
  }
9780
9788
  this.dispatch(n(h));
9781
- const A = y.map((F) => {
9782
- const { payload: M, blocks: w, blockers: g } = F;
9789
+ const A = m.map((R) => {
9790
+ const { payload: M, blocks: w, blockers: g } = R;
9783
9791
  return this.enqueueRequest({
9784
9792
  description: S(o.POST, this.name, !0),
9785
9793
  method: o.POST,
@@ -9789,13 +9797,13 @@ class _R extends k {
9789
9797
  blocks: w
9790
9798
  });
9791
9799
  });
9792
- return Promise.all(A).then((F) => {
9793
- this.dispatch(a(F.flat()));
9800
+ return Promise.all(A).then((R) => {
9801
+ this.dispatch(a(R.flat()));
9794
9802
  }).catch(() => {
9795
9803
  this.dispatch(r(v(h)));
9796
9804
  }), [
9797
9805
  h,
9798
- Promise.all(A).then((F) => F.flat())
9806
+ Promise.all(A).then((R) => R.flat())
9799
9807
  ];
9800
9808
  }
9801
9809
  update(e) {
@@ -9891,7 +9899,7 @@ class bR extends k {
9891
9899
  description: S(o.POST, this.name, !1),
9892
9900
  method: o.POST,
9893
9901
  url: `${this.url}/`,
9894
- payload: R(r),
9902
+ payload: F(r),
9895
9903
  blockers: [r.procedure, r.procedure_step],
9896
9904
  blocks: [r.uuid]
9897
9905
  });
@@ -9903,8 +9911,8 @@ class bR extends k {
9903
9911
  }
9904
9912
  bulkAdd(e) {
9905
9913
  const { addMany: i, setMany: n, deleteMany: a } = this.actions, r = this.select((l) => {
9906
- var y;
9907
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
9914
+ var m;
9915
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
9908
9916
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map(
9909
9917
  (l) => T({
9910
9918
  ...l,
@@ -9918,7 +9926,7 @@ class bR extends k {
9918
9926
  method: o.POST,
9919
9927
  url: `${this.url}/bulk/`,
9920
9928
  payload: {
9921
- procedure_step_reviewers: c.map((l) => R(l)),
9929
+ procedure_step_reviewers: c.map((l) => F(l)),
9922
9930
  submitted_at: d
9923
9931
  },
9924
9932
  blockers: c.flatMap((l) => [l.procedure, l.procedure_step]),
@@ -10008,7 +10016,7 @@ class MR extends k {
10008
10016
  description: S(o.POST, this.name, !1),
10009
10017
  method: o.POST,
10010
10018
  url: `${this.url}/`,
10011
- payload: R(d),
10019
+ payload: F(d),
10012
10020
  blockers: [d.procedure_type, d.project],
10013
10021
  blocks: [d.uuid]
10014
10022
  });
@@ -10106,7 +10114,7 @@ class gR extends k {
10106
10114
  description: S(o.POST, this.name, !1),
10107
10115
  method: o.POST,
10108
10116
  url: `${this.url}/`,
10109
- payload: R(r),
10117
+ payload: F(r),
10110
10118
  blockers: [r.procedure_type],
10111
10119
  blocks: [r.uuid]
10112
10120
  });
@@ -10197,9 +10205,9 @@ class wR extends V {
10197
10205
  return [e.uuid];
10198
10206
  }
10199
10207
  buildModel(e) {
10200
- const { procedure_type: i, file_sha1: n, file_extension: a, file_name: r, file_type: d, file_url: c } = e, h = this.select((y) => {
10208
+ const { procedure_type: i, file_sha1: n, file_extension: a, file_name: r, file_type: d, file_url: c } = e, h = this.select((m) => {
10201
10209
  var A;
10202
- return ((A = y.userReducer.currentUser) == null ? void 0 : A.id) ?? null;
10210
+ return ((A = m.userReducer.currentUser) == null ? void 0 : A.id) ?? null;
10203
10211
  }), l = (/* @__PURE__ */ new Date()).toISOString();
10204
10212
  return T({
10205
10213
  file_url: c,
@@ -10342,8 +10350,8 @@ class FR extends k {
10342
10350
  }
10343
10351
  add(e) {
10344
10352
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
10345
- var y;
10346
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
10353
+ var m;
10354
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
10347
10355
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
10348
10356
  ...e,
10349
10357
  created_by: r,
@@ -10354,7 +10362,7 @@ class FR extends k {
10354
10362
  description: S(o.POST, this.name, !1),
10355
10363
  method: o.POST,
10356
10364
  url: `${this.url}/`,
10357
- payload: R(c),
10365
+ payload: F(c),
10358
10366
  blockers: [c.procedure_type],
10359
10367
  blocks: [c.uuid]
10360
10368
  });
@@ -10492,8 +10500,8 @@ class vR extends k {
10492
10500
  }
10493
10501
  add(e) {
10494
10502
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
10495
- var y;
10496
- return ((y = l.userReducer.currentUser) == null ? void 0 : y.id) ?? null;
10503
+ var m;
10504
+ return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
10497
10505
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
10498
10506
  ...e,
10499
10507
  created_by: r,
@@ -10502,7 +10510,7 @@ class vR extends k {
10502
10510
  description: S(o.POST, this.name, !1),
10503
10511
  method: o.POST,
10504
10512
  url: `${this.url}/`,
10505
- payload: R(c),
10513
+ payload: F(c),
10506
10514
  blockers: [e.fields_revision, e.procedure],
10507
10515
  blocks: [c.uuid]
10508
10516
  });
@@ -10513,22 +10521,22 @@ class vR extends k {
10513
10521
  }), [c, h];
10514
10522
  }
10515
10523
  bulkAdd(e, i) {
10516
- const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((F) => {
10524
+ const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((R) => {
10517
10525
  var M;
10518
- return ((M = F.userReducer.currentUser) == null ? void 0 : M.id) ?? null;
10519
- }), h = [], l = ct(e, Math.min(i ?? e.length, at)), y = [];
10520
- for (const F of l) {
10526
+ return ((M = R.userReducer.currentUser) == null ? void 0 : M.id) ?? null;
10527
+ }), h = [], l = ct(e, Math.min(i ?? e.length, at)), m = [];
10528
+ for (const R of l) {
10521
10529
  const M = [], w = [], g = [];
10522
- for (const E of F) {
10530
+ for (const E of R) {
10523
10531
  const B = T({
10524
10532
  ...E,
10525
10533
  values: E.values,
10526
10534
  created_by: c,
10527
10535
  submitted_at: d
10528
10536
  });
10529
- h.push(B), M.push(R(B)), w.push(B.procedure, B.fields_revision), g.push(B.uuid);
10537
+ h.push(B), M.push(F(B)), w.push(B.procedure, B.fields_revision), g.push(B.uuid);
10530
10538
  }
10531
- y.push({
10539
+ m.push({
10532
10540
  payload: {
10533
10541
  payloads: M,
10534
10542
  submitted_at: d
@@ -10538,8 +10546,8 @@ class vR extends k {
10538
10546
  });
10539
10547
  }
10540
10548
  this.dispatch(n(h));
10541
- const A = y.map((F) => {
10542
- const { payload: M, blocks: w, blockers: g } = F;
10549
+ const A = m.map((R) => {
10550
+ const { payload: M, blocks: w, blockers: g } = R;
10543
10551
  return this.enqueueRequest({
10544
10552
  description: S(o.POST, this.name, !0),
10545
10553
  method: o.POST,
@@ -10549,13 +10557,13 @@ class vR extends k {
10549
10557
  blocks: w
10550
10558
  });
10551
10559
  });
10552
- return Promise.all(A).then((F) => {
10553
- this.dispatch(a(F.flat()));
10560
+ return Promise.all(A).then((R) => {
10561
+ this.dispatch(a(R.flat()));
10554
10562
  }).catch(() => {
10555
10563
  this.dispatch(r(v(h)));
10556
10564
  }), [
10557
10565
  h,
10558
- Promise.all(A).then((F) => F.flat())
10566
+ Promise.all(A).then((R) => R.flat())
10559
10567
  ];
10560
10568
  }
10561
10569
  update(e) {
@@ -10647,7 +10655,7 @@ class kR extends k {
10647
10655
  description: S(o.POST, this.name, !1),
10648
10656
  method: o.POST,
10649
10657
  url: `${this.url}/`,
10650
- payload: R(r),
10658
+ payload: F(r),
10651
10659
  blockers: [],
10652
10660
  blocks: [r.uuid]
10653
10661
  });
@@ -10744,7 +10752,7 @@ class BR extends k {
10744
10752
  description: S(o.POST, this.name, !1),
10745
10753
  method: o.POST,
10746
10754
  url: `${this.url}/`,
10747
- payload: R(r),
10755
+ payload: F(r),
10748
10756
  blockers: [e.team],
10749
10757
  blocks: [r.uuid]
10750
10758
  });
@@ -10764,7 +10772,7 @@ class BR extends k {
10764
10772
  description: S(o.POST, this.name, !0),
10765
10773
  method: o.POST,
10766
10774
  url: `${this.url}/bulk/`,
10767
- payload: { team_memberships: d.map((h) => R(h)) },
10775
+ payload: { team_memberships: d.map((h) => F(h)) },
10768
10776
  blockers: d.map((h) => h.team),
10769
10777
  blocks: d.map((h) => h.uuid)
10770
10778
  });
@@ -10838,7 +10846,7 @@ class zR extends k {
10838
10846
  description: S(o.POST, this.name, !1),
10839
10847
  method: o.POST,
10840
10848
  url: `${this.url}/`,
10841
- payload: R(r),
10849
+ payload: F(r),
10842
10850
  blockers: [],
10843
10851
  blocks: [r.uuid]
10844
10852
  });
@@ -10861,7 +10869,7 @@ class zR extends k {
10861
10869
  description: S(o.PATCH, this.name, !1),
10862
10870
  method: o.PATCH,
10863
10871
  url: `${this.url}/${e.uuid}/`,
10864
- payload: R(e),
10872
+ payload: F(e),
10865
10873
  blockers: [e.uuid],
10866
10874
  blocks: [e.uuid]
10867
10875
  });
@@ -10953,9 +10961,9 @@ async function Ua(t, s, e, i, n) {
10953
10961
  payload: c,
10954
10962
  headers: h,
10955
10963
  method: l,
10956
- queryParams: y,
10964
+ queryParams: m,
10957
10965
  attachmentHash: A,
10958
- isExternalUrl: F,
10966
+ isExternalUrl: R,
10959
10967
  isAuthNeeded: M,
10960
10968
  isResponseBlob: w
10961
10969
  } = {
@@ -10966,7 +10974,7 @@ async function Ua(t, s, e, i, n) {
10966
10974
  const E = A ? await e.files.fetchCache(A) : void 0;
10967
10975
  if (A && !E)
10968
10976
  throw new Error(`Cannot upload file ${A} because it's not cached.`);
10969
- !F && !g.startsWith("http") && (!g.startsWith("/") && !g.startsWith("blob:") && (g = "/" + g), g = t + g);
10977
+ !R && !g.startsWith("http") && (!g.startsWith("/") && !g.startsWith("blob:") && (g = "/" + g), g = t + g);
10970
10978
  const B = (j) => {
10971
10979
  if (A) {
10972
10980
  if (!d) throw new Error(`No S3 URL for file ${A}`);
@@ -11006,11 +11014,11 @@ async function Ua(t, s, e, i, n) {
11006
11014
  }
11007
11015
  h && (D = D.set(h));
11008
11016
  try {
11009
- return await D.query(y);
11017
+ return await D.query(m);
11010
11018
  } catch (j) {
11011
11019
  const U = Ob(j), Et = U == null ? void 0 : U.status;
11012
11020
  if (a && Et === 401)
11013
- return await i.auth.handleUnauthorized(D, U), D.query(y);
11021
+ return await i.auth.handleUnauthorized(D, U), D.query(m);
11014
11022
  throw new C({
11015
11023
  response: U,
11016
11024
  innerError: j,
@@ -11611,7 +11619,7 @@ export {
11611
11619
  kM as clearTokens,
11612
11620
  P as createModelAdapter,
11613
11621
  FS as createOfflineAction,
11614
- R as createPayload,
11622
+ F as createPayload,
11615
11623
  Yb as createSelectionAdapter,
11616
11624
  ad as deleteAsset,
11617
11625
  jc as deleteAssetAttachment,
@@ -11974,7 +11982,7 @@ export {
11974
11982
  Wr as projectSlice,
11975
11983
  k_ as rehydratedReducer,
11976
11984
  za as rehydratedSlice,
11977
- m as restructureSelectorWithArgs,
11985
+ y as restructureSelectorWithArgs,
11978
11986
  Eb as runMiddleware,
11979
11987
  BM as selectAccessToken,
11980
11988
  Ig as selectAccessesByUserOfProject,