@overmap-ai/core 1.0.80-presigned-get-improvements.1 → 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];
@@ -4170,7 +4170,7 @@ class V extends k {
4170
4170
  r = e;
4171
4171
  const h = this.buildModel(r), l = this.buildPayload(h);
4172
4172
  this.dispatch(i(h));
4173
- const y = this.enqueueRequest({
4173
+ const m = this.enqueueRequest({
4174
4174
  description: S(o.POST, this.name, !1),
4175
4175
  method: o.POST,
4176
4176
  url: `${this.url}/`,
@@ -4181,24 +4181,24 @@ class V extends k {
4181
4181
  blockers: this.getBlockers(h),
4182
4182
  blocks: this.getBlocks(h)
4183
4183
  });
4184
- y.then(({ instance: M }) => {
4184
+ m.then(({ instance: M }) => {
4185
4185
  this.dispatch(n(M));
4186
4186
  }).catch((M) => {
4187
4187
  throw this.dispatch(a(this.getId(h))), M;
4188
4188
  }).finally(() => {
4189
4189
  c && URL.revokeObjectURL(c);
4190
4190
  });
4191
- 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 }) => {
4192
4192
  try {
4193
4193
  return w && await this.client.files.processPresignedUrl(M.file_sha1, w), M.file_sha1;
4194
4194
  } catch (g) {
4195
4195
  throw console.error("Upload to s3 using presigned url failed.", g), g;
4196
4196
  }
4197
4197
  });
4198
- return [h, A, F];
4198
+ return [h, A, R];
4199
4199
  }
4200
4200
  async bulkAdd(e, i) {
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)), 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 = [];
4202
4202
  for (const w of l) {
4203
4203
  const g = [], E = {}, B = [], $ = [];
4204
4204
  for (const D of w) {
@@ -4233,10 +4233,10 @@ class V extends k {
4233
4233
  blockers: B,
4234
4234
  blocks: $
4235
4235
  };
4236
- y.push(q);
4236
+ m.push(q);
4237
4237
  }
4238
4238
  this.dispatch(n(c));
4239
- const A = y.map((w) => {
4239
+ const A = m.map((w) => {
4240
4240
  const { submittedAt: g, files: E, payloads: B, blocks: $, blockers: q } = w;
4241
4241
  return this.enqueueRequest({
4242
4242
  description: S(o.POST, this.name, !0),
@@ -4260,7 +4260,7 @@ class V extends k {
4260
4260
  for (const w of h)
4261
4261
  URL.revokeObjectURL(w);
4262
4262
  });
4263
- 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) => {
4264
4264
  const g = [];
4265
4265
  for (const { presigned_urls: E } of w) {
4266
4266
  const B = this.client.files.processPresignedUrls(E);
@@ -4273,7 +4273,7 @@ class V extends k {
4273
4273
  }
4274
4274
  return g;
4275
4275
  });
4276
- return [c, F, M];
4276
+ return [c, R, M];
4277
4277
  }
4278
4278
  async delete(e) {
4279
4279
  const { addOne: i, deleteOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
@@ -4401,7 +4401,7 @@ class Ow extends k {
4401
4401
  description: S(o.POST, this.name, !1),
4402
4402
  method: o.POST,
4403
4403
  url: `${this.url}/`,
4404
- payload: R(r),
4404
+ payload: F(r),
4405
4405
  blockers: [r.asset],
4406
4406
  blocks: [r.uuid]
4407
4407
  });
@@ -4486,8 +4486,8 @@ class Tw extends k {
4486
4486
  }
4487
4487
  add(e) {
4488
4488
  const { addOne: i, updateOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
4489
- var y;
4490
- 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;
4491
4491
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
4492
4492
  ...e,
4493
4493
  created_by: r,
@@ -4498,7 +4498,7 @@ class Tw extends k {
4498
4498
  description: S(o.POST, this.name, !1),
4499
4499
  method: o.POST,
4500
4500
  url: `${this.url}/`,
4501
- payload: R(c),
4501
+ payload: F(c),
4502
4502
  blockers: [c.asset_type],
4503
4503
  blocks: [c.uuid]
4504
4504
  });
@@ -4534,8 +4534,8 @@ class Tw extends k {
4534
4534
  async delete(e) {
4535
4535
  const { addOne: i, deleteOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
4536
4536
  if (!r) throw new Error(`No asset with uuid ${e} found in the store`);
4537
- 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));
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(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)));
4539
4539
  try {
4540
4540
  return await this.enqueueRequest({
4541
4541
  description: S(o.DELETE, this.name, !1),
@@ -4545,7 +4545,7 @@ class Tw extends k {
4545
4545
  blocks: []
4546
4546
  });
4547
4547
  } catch (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(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;
4549
4549
  }
4550
4550
  }
4551
4551
  bulkAdd(e, i) {
@@ -4553,7 +4553,7 @@ class Tw extends k {
4553
4553
  e,
4554
4554
  Math.min(i ?? e.length, at)
4555
4555
  ).map((h) => {
4556
- const l = h.map((y) => T(y));
4556
+ const l = h.map((m) => T(m));
4557
4557
  return {
4558
4558
  batchId: dt(),
4559
4559
  payload: {
@@ -4564,12 +4564,12 @@ class Tw extends k {
4564
4564
  }), d = [];
4565
4565
  let c = null;
4566
4566
  for (const h of r) {
4567
- 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({
4568
4568
  description: S(o.POST, this.name, !0),
4569
4569
  method: o.POST,
4570
4570
  url: `${this.url}/bulk/`,
4571
- payload: y,
4572
- blockers: (c ? [c] : []).concat(F).concat(M).concat(w),
4571
+ payload: m,
4572
+ blockers: (c ? [c] : []).concat(R).concat(M).concat(w),
4573
4573
  blocks: [l].concat(A)
4574
4574
  });
4575
4575
  c = h.batchId, d.push(g);
@@ -4596,19 +4596,19 @@ class Tw extends k {
4596
4596
  });
4597
4597
  this.dispatch(n(c));
4598
4598
  const h = ct(e, Math.min(i ?? e.length, at)), l = [];
4599
- let y = null;
4599
+ let m = null;
4600
4600
  for (const A of h) {
4601
- 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({
4602
4602
  description: S(o.PATCH, this.name, !0),
4603
4603
  method: o.PATCH,
4604
4604
  url: `${this.url}/bulk/`,
4605
4605
  payload: {
4606
4606
  payloads: A
4607
4607
  },
4608
- blockers: (y ? [y] : []).concat(M).concat(w),
4609
- blocks: [F].concat(M)
4608
+ blockers: (m ? [m] : []).concat(M).concat(w),
4609
+ blocks: [R].concat(M)
4610
4610
  });
4611
- l.push(g), y = F;
4611
+ l.push(g), m = R;
4612
4612
  }
4613
4613
  return Promise.all(l).then((A) => {
4614
4614
  this.dispatch(n(A.flat()));
@@ -4628,8 +4628,8 @@ class Tw extends k {
4628
4628
  blockers: e,
4629
4629
  blocks: []
4630
4630
  });
4631
- } catch (y) {
4632
- 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;
4633
4633
  }
4634
4634
  }
4635
4635
  async refreshStore(e, i) {
@@ -4815,8 +4815,8 @@ class _w extends k {
4815
4815
  }
4816
4816
  add(e) {
4817
4817
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
4818
- var y;
4819
- 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;
4820
4820
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
4821
4821
  ...e,
4822
4822
  created_by: r,
@@ -4827,7 +4827,7 @@ class _w extends k {
4827
4827
  description: S(o.POST, this.name, !1),
4828
4828
  method: o.POST,
4829
4829
  url: `${this.url}/`,
4830
- payload: R(c),
4830
+ payload: F(c),
4831
4831
  blockers: [c.asset_type],
4832
4832
  blocks: [c.uuid]
4833
4833
  });
@@ -4965,8 +4965,8 @@ class Mw extends k {
4965
4965
  }
4966
4966
  add(e) {
4967
4967
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
4968
- var y;
4969
- 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;
4970
4970
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
4971
4971
  ...e,
4972
4972
  created_by: r,
@@ -4975,7 +4975,7 @@ class Mw extends k {
4975
4975
  description: S(o.POST, this.name, !1),
4976
4976
  method: o.POST,
4977
4977
  url: `${this.url}/`,
4978
- payload: R(c),
4978
+ payload: F(c),
4979
4979
  blockers: [e.asset, e.fields_revision],
4980
4980
  blocks: [c.uuid]
4981
4981
  });
@@ -4986,8 +4986,8 @@ class Mw extends k {
4986
4986
  }), [c, h];
4987
4987
  }
4988
4988
  bulkAdd(e, i) {
4989
- 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 = [];
4990
- 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) {
4991
4991
  const w = [];
4992
4992
  for (const g of M) {
4993
4993
  const E = T({
@@ -5014,7 +5014,7 @@ class Mw extends k {
5014
5014
  });
5015
5015
  }
5016
5016
  this.dispatch(r(l));
5017
- const F = [];
5017
+ const R = [];
5018
5018
  for (const M of A) {
5019
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({
5020
5020
  description: S(o.POST, this.name, !0),
@@ -5024,13 +5024,13 @@ class Mw extends k {
5024
5024
  blockers: g.concat(E),
5025
5025
  blocks: B
5026
5026
  });
5027
- F.push($);
5027
+ R.push($);
5028
5028
  }
5029
- return Promise.all(F).then((M) => {
5029
+ return Promise.all(R).then((M) => {
5030
5030
  this.dispatch(d(M.flat()));
5031
5031
  }).catch(() => {
5032
5032
  this.dispatch(c(v(l)));
5033
- }), [l, F];
5033
+ }), [l, R];
5034
5034
  }
5035
5035
  update(e) {
5036
5036
  const { setOne: i } = this.actions, { selectById: n } = this.selectors, a = this.select(n(e.uuid));
@@ -5113,8 +5113,8 @@ class gw extends k {
5113
5113
  }
5114
5114
  add(e) {
5115
5115
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5116
- var y;
5117
- 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;
5118
5118
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5119
5119
  ...e,
5120
5120
  created_by: r,
@@ -5125,7 +5125,7 @@ class gw extends k {
5125
5125
  description: S(o.POST, this.name, !1),
5126
5126
  method: o.POST,
5127
5127
  url: `${this.url}/`,
5128
- payload: R(c),
5128
+ payload: F(c),
5129
5129
  blockers: [c.asset_type],
5130
5130
  blocks: [c.uuid]
5131
5131
  });
@@ -5210,8 +5210,8 @@ class ww extends k {
5210
5210
  }
5211
5211
  add(e) {
5212
5212
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5213
- var y;
5214
- 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;
5215
5215
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5216
5216
  ...e,
5217
5217
  created_by: r,
@@ -5222,7 +5222,7 @@ class ww extends k {
5222
5222
  description: S(o.POST, this.name, !1),
5223
5223
  method: o.POST,
5224
5224
  url: `${this.url}/`,
5225
- payload: R(c),
5225
+ payload: F(c),
5226
5226
  blockers: [e.asset, e.asset_type_identifier],
5227
5227
  blocks: [c.uuid]
5228
5228
  });
@@ -5236,7 +5236,7 @@ class ww extends k {
5236
5236
  const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((M) => {
5237
5237
  var w;
5238
5238
  return ((w = M.userReducer.currentUser) == null ? void 0 : w.id) ?? null;
5239
- }), h = ct(e, Math.min(i ?? e.length, at)), l = [], y = [];
5239
+ }), h = ct(e, Math.min(i ?? e.length, at)), l = [], m = [];
5240
5240
  for (const M of h) {
5241
5241
  const w = [], g = [], E = [];
5242
5242
  for (const $ of M) {
@@ -5245,7 +5245,7 @@ class ww extends k {
5245
5245
  submitted_at: d,
5246
5246
  created_by: c
5247
5247
  });
5248
- y.push(q);
5248
+ m.push(q);
5249
5249
  const D = {
5250
5250
  uuid: q.uuid,
5251
5251
  asset: q.asset,
@@ -5262,7 +5262,7 @@ class ww extends k {
5262
5262
  };
5263
5263
  l.push(B);
5264
5264
  }
5265
- this.dispatch(n(y));
5265
+ this.dispatch(n(m));
5266
5266
  const A = l.map((M) => {
5267
5267
  const { payloads: w, submitted_at: g, blockers: E, blocks: B } = M;
5268
5268
  return this.enqueueRequest({
@@ -5280,10 +5280,10 @@ class ww extends k {
5280
5280
  Promise.all(A).then((M) => {
5281
5281
  this.dispatch(a(M.flat()));
5282
5282
  }).catch((M) => {
5283
- throw this.dispatch(r(v(y))), M;
5283
+ throw this.dispatch(r(v(m))), M;
5284
5284
  });
5285
- const F = Promise.all(A).then((M) => M.flat());
5286
- return [y, F];
5285
+ const R = Promise.all(A).then((M) => M.flat());
5286
+ return [m, R];
5287
5287
  }
5288
5288
  async delete(e) {
5289
5289
  const { deleteOne: i, addOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
@@ -5338,8 +5338,8 @@ class Rw extends k {
5338
5338
  }
5339
5339
  add(e) {
5340
5340
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5341
- var y;
5342
- 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;
5343
5343
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5344
5344
  ...e,
5345
5345
  created_by: r,
@@ -5350,7 +5350,7 @@ class Rw extends k {
5350
5350
  description: S(o.POST, this.name, !1),
5351
5351
  method: o.POST,
5352
5352
  url: `${this.url}/`,
5353
- payload: R(c),
5353
+ payload: F(c),
5354
5354
  blockers: [],
5355
5355
  blocks: [c.uuid]
5356
5356
  });
@@ -5436,8 +5436,8 @@ class Fw extends k {
5436
5436
  }
5437
5437
  add(e) {
5438
5438
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5439
- var y;
5440
- 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;
5441
5441
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5442
5442
  ...e,
5443
5443
  created_by: r,
@@ -5448,7 +5448,7 @@ class Fw extends k {
5448
5448
  description: S(o.POST, this.name, !1),
5449
5449
  method: o.POST,
5450
5450
  url: `${this.url}/`,
5451
- payload: R(c),
5451
+ payload: F(c),
5452
5452
  blockers: [e.asset_type],
5453
5453
  blocks: [c.uuid]
5454
5454
  });
@@ -5632,8 +5632,8 @@ class vw extends k {
5632
5632
  }
5633
5633
  add(e) {
5634
5634
  const { addOne: i, deleteOne: n, updateOne: a } = this.actions, r = this.select((l) => {
5635
- var y;
5636
- 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;
5637
5637
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5638
5638
  ...e,
5639
5639
  created_by: r,
@@ -5644,7 +5644,7 @@ class vw extends k {
5644
5644
  description: S(o.POST, this.name, !1),
5645
5645
  method: o.POST,
5646
5646
  url: `${this.url}/`,
5647
- payload: R(c),
5647
+ payload: F(c),
5648
5648
  blockers: c.parent_document ? [c.parent_document] : [],
5649
5649
  blocks: [c.uuid]
5650
5650
  });
@@ -5871,43 +5871,47 @@ class zw extends At {
5871
5871
  * will be thrown.
5872
5872
  * @param downloadedName (Optional) The name to give the file after download. Set to the name of an attachment, for
5873
5873
  * example.
5874
+ * @param signal (Optional) An abort signal to be passed down to cancel the request
5874
5875
  */
5875
- async fetchFileFromUrl(e, i, n = i) {
5876
- const a = e.split("?")[0] ?? e, r = await this.fetchCache(i);
5877
- if (r) return r;
5878
- let d;
5879
- a in Tt ? d = Tt[a] : Ic(e) ? (d = Tc(e, n), Tt[a] = d) : (d = new Promise((l) => {
5880
- this.performRequest({
5881
- method: o.GET,
5882
- url: e,
5883
- // If in development, we should assume the files are saved at localhost by the Django development server.
5884
- // Setting this to true will lead to localhost:8000 being prepended to the URL.
5885
- isExternalUrl: !0,
5886
- isResponseBlob: !0,
5887
- isAuthNeeded: !1
5888
- }).then((y) => {
5889
- const A = new File([y], n, { type: y.type });
5890
- l(A);
5891
- });
5892
- }), 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;
5893
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;
5894
5898
  try {
5895
- c = await d;
5896
- } catch (l) {
5897
- throw l instanceof C && delete Tt[a], l;
5899
+ h = await c;
5900
+ } catch (m) {
5901
+ throw m instanceof C && delete Tt[r], m;
5898
5902
  }
5899
- const h = await $t(c);
5900
- if (h !== i) {
5901
- 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
5902
5906
  expected hash (${i}). This can happen if you're using a local development server and the
5903
5907
  isExternalUrl flag in the request details is set to true, because instead of requesting the local
5904
5908
  REST API, you will be requesting localhost:80 (where this app runs), resulting in a transformed blob
5905
5909
  (with an uuid attached) being returned. Alternatively, you may be running with
5906
5910
  import.meta.env.PROD, which will result in some file requests being treated as
5907
5911
  external URLs and therefore not prepended with VITE_API_URL.`;
5908
- throw new Error(l);
5912
+ throw new Error(m);
5909
5913
  }
5910
- return await this.addCache(c), c;
5914
+ return await this.addCache(h), h;
5911
5915
  }
5912
5916
  processPresignedUrl(e, i) {
5913
5917
  if ("warning" in i) {
@@ -5967,8 +5971,8 @@ class Dw extends k {
5967
5971
  }
5968
5972
  add(e) {
5969
5973
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
5970
- var y;
5971
- 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;
5972
5976
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
5973
5977
  ...e,
5974
5978
  created_by: r,
@@ -5979,7 +5983,7 @@ class Dw extends k {
5979
5983
  description: S(o.POST, this.name, !1),
5980
5984
  method: o.POST,
5981
5985
  url: `${this.url}/`,
5982
- payload: R(c),
5986
+ payload: F(c),
5983
5987
  blockers: [c.form],
5984
5988
  blocks: [c.uuid]
5985
5989
  });
@@ -6064,8 +6068,8 @@ class qw extends k {
6064
6068
  }
6065
6069
  add(e) {
6066
6070
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
6067
- var y;
6068
- 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;
6069
6073
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
6070
6074
  ...e,
6071
6075
  created_by: r,
@@ -6076,7 +6080,7 @@ class qw extends k {
6076
6080
  description: S(o.POST, this.name, !1),
6077
6081
  method: o.POST,
6078
6082
  url: `${this.url}/`,
6079
- payload: R(c),
6083
+ payload: F(c),
6080
6084
  blockers: [e.form_submission, e.form_identifier],
6081
6085
  blocks: [c.uuid]
6082
6086
  });
@@ -6228,8 +6232,8 @@ class Vw extends k {
6228
6232
  }
6229
6233
  add(e) {
6230
6234
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
6231
- var y;
6232
- 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;
6233
6237
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
6234
6238
  ...e,
6235
6239
  created_by: r,
@@ -6240,7 +6244,7 @@ class Vw extends k {
6240
6244
  description: S(o.POST, this.name, !1),
6241
6245
  method: o.POST,
6242
6246
  url: `${this.url}/`,
6243
- payload: R(c),
6247
+ payload: F(c),
6244
6248
  blockers: [e.form],
6245
6249
  blocks: [c.uuid]
6246
6250
  });
@@ -6285,8 +6289,8 @@ class $w extends k {
6285
6289
  }
6286
6290
  add(e) {
6287
6291
  const { addOne: i, updateOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
6288
- var y;
6289
- 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;
6290
6294
  }), c = T({
6291
6295
  ...e,
6292
6296
  submitted_at: r,
@@ -6297,7 +6301,7 @@ class $w extends k {
6297
6301
  description: S(o.POST, this.name, !1),
6298
6302
  method: o.POST,
6299
6303
  url: `${this.url}/`,
6300
- payload: R(c),
6304
+ payload: F(c),
6301
6305
  blockers: [],
6302
6306
  blocks: [c.uuid]
6303
6307
  });
@@ -6489,8 +6493,8 @@ class Cw extends k {
6489
6493
  }
6490
6494
  add(e) {
6491
6495
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
6492
- var y;
6493
- 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;
6494
6498
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
6495
6499
  ...e,
6496
6500
  created_by: r,
@@ -6499,7 +6503,7 @@ class Cw extends k {
6499
6503
  description: S(o.POST, this.name, !1),
6500
6504
  method: o.POST,
6501
6505
  url: `${this.url}/`,
6502
- payload: R(c),
6506
+ payload: F(c),
6503
6507
  blockers: [e.form_revision],
6504
6508
  blocks: [c.uuid]
6505
6509
  });
@@ -6703,8 +6707,8 @@ class Lw extends k {
6703
6707
  }
6704
6708
  add(e) {
6705
6709
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
6706
- var y;
6707
- 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;
6708
6712
  }), c = T({
6709
6713
  ...e,
6710
6714
  submitted_at: r,
@@ -6715,7 +6719,7 @@ class Lw extends k {
6715
6719
  description: S(o.POST, this.name, !1),
6716
6720
  method: o.POST,
6717
6721
  url: `${this.url}/`,
6718
- payload: R(c),
6722
+ payload: F(c),
6719
6723
  blockers: [e.issue, e.asset],
6720
6724
  blocks: [c.uuid]
6721
6725
  });
@@ -6727,8 +6731,8 @@ class Lw extends k {
6727
6731
  }
6728
6732
  bulkAdd(e) {
6729
6733
  const { addMany: i, deleteMany: n, updateMany: a } = this.actions, r = this.select((l) => {
6730
- var y;
6731
- 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;
6732
6736
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map((l) => T({ ...l, submitted_at: d, created_by: r }));
6733
6737
  this.dispatch(i(c));
6734
6738
  const h = this.enqueueRequest({
@@ -6736,7 +6740,7 @@ class Lw extends k {
6736
6740
  method: o.POST,
6737
6741
  url: `${this.url}/bulk/`,
6738
6742
  payload: {
6739
- payloads: c.map((l) => R(l)),
6743
+ payloads: c.map((l) => F(l)),
6740
6744
  submitted_at: d
6741
6745
  },
6742
6746
  blockers: c.flatMap((l) => [l.issue, l.asset]),
@@ -6953,7 +6957,7 @@ class Gw extends k {
6953
6957
  description: S(o.POST, this.name, !1),
6954
6958
  method: o.POST,
6955
6959
  url: `${this.url}/`,
6956
- payload: R(r),
6960
+ payload: F(r),
6957
6961
  blockers: [e.issue],
6958
6962
  blocks: [r.uuid]
6959
6963
  });
@@ -7038,8 +7042,8 @@ class Ww extends k {
7038
7042
  }
7039
7043
  add(e) {
7040
7044
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
7041
- var y;
7042
- 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;
7043
7047
  }), c = T({
7044
7048
  ...e,
7045
7049
  submitted_at: r,
@@ -7050,7 +7054,7 @@ class Ww extends k {
7050
7054
  description: S(o.POST, this.name, !1),
7051
7055
  method: o.POST,
7052
7056
  url: `${this.url}/`,
7053
- payload: R(c),
7057
+ payload: F(c),
7054
7058
  blockers: [c.project, c.issue_type, c.status, c.priority],
7055
7059
  blocks: [c.uuid]
7056
7060
  });
@@ -7078,10 +7082,10 @@ class Ww extends k {
7078
7082
  if (l in e && e[l] !== a[l])
7079
7083
  switch (l) {
7080
7084
  case x.PRIORITY: {
7081
- const y = e[l], A = this.select(Ir(y));
7085
+ const m = e[l], A = this.select(Ir(m));
7082
7086
  if (!A)
7083
7087
  throw new Error(
7084
- `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`
7085
7089
  );
7086
7090
  d[l] = {
7087
7091
  name: A.name,
@@ -7100,9 +7104,9 @@ class Ww extends k {
7100
7104
  d[l] = e.title ?? "";
7101
7105
  break;
7102
7106
  case x.STATUS: {
7103
- const y = e[l], A = this.select(gr(y));
7107
+ const m = e[l], A = this.select(gr(m));
7104
7108
  if (!A)
7105
- 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`);
7106
7110
  d[l] = {
7107
7111
  name: A.name,
7108
7112
  color: A.color,
@@ -7111,13 +7115,13 @@ class Ww extends k {
7111
7115
  break;
7112
7116
  }
7113
7117
  case x.ASSIGNED_TO: {
7114
- const y = e[l];
7115
- if (y === null)
7118
+ const m = e[l];
7119
+ if (m === null)
7116
7120
  d[l] = null;
7117
7121
  else {
7118
- const A = this.select(cs(y));
7122
+ const A = this.select(cs(m));
7119
7123
  if (!A)
7120
- 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.`);
7121
7125
  d[l] = {
7122
7126
  full_name: A.username,
7123
7127
  id: A.id
@@ -7128,8 +7132,8 @@ class Ww extends k {
7128
7132
  }
7129
7133
  const c = T({
7130
7134
  created_by: this.select((l) => {
7131
- var y;
7132
- 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;
7133
7137
  }),
7134
7138
  submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
7135
7139
  issue: a.uuid,
@@ -7167,19 +7171,19 @@ class Ww extends k {
7167
7171
  });
7168
7172
  this.dispatch(n(c));
7169
7173
  const h = ct(e, Math.min(i ?? e.length, at)), l = [];
7170
- let y = null;
7174
+ let m = null;
7171
7175
  for (const A of h) {
7172
- 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({
7173
7177
  description: S(o.PATCH, this.name, !0),
7174
7178
  method: o.PATCH,
7175
7179
  url: `${this.url}/bulk/`,
7176
7180
  payload: {
7177
7181
  payloads: A
7178
7182
  },
7179
- blockers: (y ? [y] : []).concat(M).concat(w).concat(g),
7180
- blocks: [F].concat(M)
7183
+ blockers: (m ? [m] : []).concat(M).concat(w).concat(g),
7184
+ blocks: [R].concat(M)
7181
7185
  });
7182
- l.push(E), y = F;
7186
+ l.push(E), m = R;
7183
7187
  }
7184
7188
  return Promise.all(l).then((A) => {
7185
7189
  this.dispatch(n(A.flat()));
@@ -7201,8 +7205,8 @@ class Ww extends k {
7201
7205
  blockers: [e],
7202
7206
  blocks: []
7203
7207
  });
7204
- } catch (y) {
7205
- 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;
7206
7210
  }
7207
7211
  }
7208
7212
  async bulkDelete(e) {
@@ -7404,8 +7408,8 @@ class Jw extends k {
7404
7408
  }
7405
7409
  add(e) {
7406
7410
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7407
- var y;
7408
- 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;
7409
7413
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7410
7414
  ...e,
7411
7415
  created_by: r,
@@ -7416,7 +7420,7 @@ class Jw extends k {
7416
7420
  description: S(o.POST, this.name, !1),
7417
7421
  method: o.POST,
7418
7422
  url: `${this.url}/`,
7419
- payload: R(c),
7423
+ payload: F(c),
7420
7424
  blockers: [c.issue_type],
7421
7425
  blocks: [c.uuid]
7422
7426
  });
@@ -7554,8 +7558,8 @@ class Qw extends k {
7554
7558
  }
7555
7559
  add(e) {
7556
7560
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7557
- var y;
7558
- 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;
7559
7563
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7560
7564
  ...e,
7561
7565
  created_by: r,
@@ -7564,7 +7568,7 @@ class Qw extends k {
7564
7568
  description: S(o.POST, this.name, !1),
7565
7569
  method: o.POST,
7566
7570
  url: `${this.url}/`,
7567
- payload: R(c),
7571
+ payload: F(c),
7568
7572
  blockers: [e.issue, e.fields_revision],
7569
7573
  blocks: [c.uuid]
7570
7574
  });
@@ -7655,8 +7659,8 @@ class Xw extends k {
7655
7659
  }
7656
7660
  add(e) {
7657
7661
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7658
- var y;
7659
- 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;
7660
7664
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7661
7665
  ...e,
7662
7666
  created_by: r,
@@ -7667,7 +7671,7 @@ class Xw extends k {
7667
7671
  description: S(o.POST, this.name, !1),
7668
7672
  method: o.POST,
7669
7673
  url: `${this.url}/`,
7670
- payload: R(c),
7674
+ payload: F(c),
7671
7675
  blockers: [c.issue_type],
7672
7676
  blocks: [c.uuid]
7673
7677
  });
@@ -7752,8 +7756,8 @@ class eR extends k {
7752
7756
  }
7753
7757
  add(e) {
7754
7758
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7755
- var y;
7756
- 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;
7757
7761
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7758
7762
  ...e,
7759
7763
  created_by: r,
@@ -7764,7 +7768,7 @@ class eR extends k {
7764
7768
  description: S(o.POST, this.name, !1),
7765
7769
  method: o.POST,
7766
7770
  url: `${this.url}/`,
7767
- payload: R(c),
7771
+ payload: F(c),
7768
7772
  blockers: [e.issue, e.issue_type_identifier],
7769
7773
  blocks: [c.uuid]
7770
7774
  });
@@ -7827,8 +7831,8 @@ class tR extends k {
7827
7831
  }
7828
7832
  add(e) {
7829
7833
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7830
- var y;
7831
- 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;
7832
7836
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7833
7837
  ...e,
7834
7838
  created_by: r,
@@ -7839,7 +7843,7 @@ class tR extends k {
7839
7843
  description: S(o.POST, this.name, !1),
7840
7844
  method: o.POST,
7841
7845
  url: `${this.url}/`,
7842
- payload: R(c),
7846
+ payload: F(c),
7843
7847
  blockers: [e.issue_type],
7844
7848
  blocks: [c.uuid]
7845
7849
  });
@@ -7921,8 +7925,8 @@ class sR extends k {
7921
7925
  }
7922
7926
  add(e) {
7923
7927
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
7924
- var y;
7925
- 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;
7926
7930
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
7927
7931
  ...e,
7928
7932
  submitted_at: d,
@@ -7932,7 +7936,7 @@ class sR extends k {
7932
7936
  const h = this.enqueueRequest({
7933
7937
  method: o.POST,
7934
7938
  url: `${this.url}/`,
7935
- payload: R(c),
7939
+ payload: F(c),
7936
7940
  blockers: [],
7937
7941
  blocks: [c.uuid]
7938
7942
  });
@@ -8017,8 +8021,8 @@ class iR extends k {
8017
8021
  }
8018
8022
  add(e) {
8019
8023
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
8020
- var y;
8021
- 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;
8022
8026
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
8023
8027
  ...e,
8024
8028
  created_by: r,
@@ -8029,7 +8033,7 @@ class iR extends k {
8029
8033
  description: S(o.POST, this.name, !1),
8030
8034
  method: o.POST,
8031
8035
  url: `${this.url}/`,
8032
- payload: R(c),
8036
+ payload: F(c),
8033
8037
  blockers: [e.issue_type],
8034
8038
  blocks: [c.uuid]
8035
8039
  });
@@ -8399,7 +8403,7 @@ class dR extends k {
8399
8403
  description: S(o.POST, this.name, !1),
8400
8404
  method: o.POST,
8401
8405
  url: `${this.url}/`,
8402
- payload: R(r),
8406
+ payload: F(r),
8403
8407
  blockers: [r.organization_access, r.project],
8404
8408
  blocks: [r.uuid]
8405
8409
  });
@@ -8419,7 +8423,7 @@ class dR extends k {
8419
8423
  description: S(o.POST, this.name, !0),
8420
8424
  method: o.POST,
8421
8425
  url: `${this.url}/bulk/`,
8422
- payload: { project_accesses: d.map((h) => R(h)) },
8426
+ payload: { project_accesses: d.map((h) => F(h)) },
8423
8427
  blockers: d.flatMap((h) => [
8424
8428
  h.project,
8425
8429
  h.organization_access
@@ -8586,7 +8590,7 @@ class uR extends k {
8586
8590
  description: S(o.POST, this.name, !1),
8587
8591
  method: o.POST,
8588
8592
  url: `${this.url}/`,
8589
- payload: R(r),
8593
+ payload: F(r),
8590
8594
  blockers: [r.project],
8591
8595
  blocks: [r.uuid]
8592
8596
  });
@@ -8771,7 +8775,7 @@ class hR extends Ot {
8771
8775
  const { addOne: i } = this.actions, n = await this.performRequest({
8772
8776
  method: o.POST,
8773
8777
  url: `${this.url}/`,
8774
- payload: R(e)
8778
+ payload: F(e)
8775
8779
  });
8776
8780
  return this.dispatch(i(n)), n;
8777
8781
  }
@@ -8779,7 +8783,7 @@ class hR extends Ot {
8779
8783
  const { updateOne: i } = this.actions, n = await this.performRequest({
8780
8784
  method: o.PATCH,
8781
8785
  url: `${this.url}/${e.uuid}/`,
8782
- payload: R(e)
8786
+ payload: F(e)
8783
8787
  });
8784
8788
  return this.dispatch(i(n)), n;
8785
8789
  }
@@ -8840,7 +8844,7 @@ class pR extends k {
8840
8844
  description: S(o.POST, this.name, !1),
8841
8845
  method: o.POST,
8842
8846
  url: `${this.url}/`,
8843
- payload: R(r),
8847
+ payload: F(r),
8844
8848
  blockers: [
8845
8849
  r.procedure_type,
8846
8850
  r.project,
@@ -8857,8 +8861,8 @@ class pR extends k {
8857
8861
  }
8858
8862
  bulkAdd(e, i) {
8859
8863
  var M;
8860
- 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 = [];
8861
- 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) {
8862
8866
  const g = [], E = [], B = [];
8863
8867
  for (const q of w) {
8864
8868
  const D = T({
@@ -8866,7 +8870,7 @@ class pR extends k {
8866
8870
  submitted_at: c,
8867
8871
  created_by: h
8868
8872
  });
8869
- l.push(D), g.push(R(D)), E.push(
8873
+ l.push(D), g.push(F(D)), E.push(
8870
8874
  D.procedure_type,
8871
8875
  D.project,
8872
8876
  D.asset,
@@ -8884,7 +8888,7 @@ class pR extends k {
8884
8888
  A.push($);
8885
8889
  }
8886
8890
  this.dispatch(a(l));
8887
- const F = A.map((w) => {
8891
+ const R = A.map((w) => {
8888
8892
  const { payload: g, blocks: E, blockers: B } = w;
8889
8893
  return this.enqueueRequest({
8890
8894
  description: S(o.POST, this.name, !0),
@@ -8895,11 +8899,11 @@ class pR extends k {
8895
8899
  blocks: E
8896
8900
  });
8897
8901
  });
8898
- return Promise.all(F).then((w) => {
8902
+ return Promise.all(R).then((w) => {
8899
8903
  this.dispatch(r(w.flat()));
8900
8904
  }).catch(() => {
8901
8905
  this.dispatch(d(v(l)));
8902
- }), [l, Promise.all(F).then((w) => w.flat())];
8906
+ }), [l, Promise.all(R).then((w) => w.flat())];
8903
8907
  }
8904
8908
  update(e) {
8905
8909
  const { updateOne: i } = this.actions, { selectById: n } = this.selectors, a = this.select(n(e.uuid));
@@ -9004,7 +9008,7 @@ class mR extends k {
9004
9008
  description: S(o.POST, this.name, !1),
9005
9009
  method: o.POST,
9006
9010
  url: `${this.url}/`,
9007
- payload: R(r),
9011
+ payload: F(r),
9008
9012
  blockers: [r.procedure, r.procedure_step],
9009
9013
  blocks: [r.uuid]
9010
9014
  });
@@ -9016,8 +9020,8 @@ class mR extends k {
9016
9020
  }
9017
9021
  bulkAdd(e) {
9018
9022
  const { addMany: i, setMany: n, deleteMany: a } = this.actions, r = this.select((l) => {
9019
- var y;
9020
- 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;
9021
9025
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map(
9022
9026
  (l) => T({
9023
9027
  ...l,
@@ -9031,7 +9035,7 @@ class mR extends k {
9031
9035
  method: o.POST,
9032
9036
  url: `${this.url}/bulk/`,
9033
9037
  payload: {
9034
- procedure_step_assignees: c.map((l) => R(l)),
9038
+ procedure_step_assignees: c.map((l) => F(l)),
9035
9039
  submitted_at: d
9036
9040
  },
9037
9041
  blockers: c.flatMap((l) => [
@@ -9126,7 +9130,7 @@ class yR extends k {
9126
9130
  description: S(o.POST, this.name, !1),
9127
9131
  method: o.POST,
9128
9132
  url: `${this.url}/`,
9129
- payload: R(r),
9133
+ payload: F(r),
9130
9134
  blockers: [r.procedure, r.procedure_step],
9131
9135
  blocks: [r.uuid]
9132
9136
  });
@@ -9223,7 +9227,7 @@ class fR extends k {
9223
9227
  description: S(o.POST, this.name, !1),
9224
9228
  method: o.POST,
9225
9229
  url: `${this.url}/`,
9226
- payload: R(r),
9230
+ payload: F(r),
9227
9231
  blockers: [r.procedure_step],
9228
9232
  blocks: [r.uuid]
9229
9233
  });
@@ -9297,7 +9301,7 @@ class SR extends k {
9297
9301
  description: S(o.POST, this.name, !1),
9298
9302
  method: o.POST,
9299
9303
  url: `${this.url}/`,
9300
- payload: R(r),
9304
+ payload: F(r),
9301
9305
  blockers: [r.procedure_step],
9302
9306
  blocks: [r.uuid]
9303
9307
  });
@@ -9479,7 +9483,7 @@ class TR extends k {
9479
9483
  description: S(o.POST, this.name, !1),
9480
9484
  method: o.POST,
9481
9485
  url: `${this.url}/`,
9482
- payload: R(r),
9486
+ payload: F(r),
9483
9487
  blockers: [r.procedure_step],
9484
9488
  blocks: [r.uuid]
9485
9489
  });
@@ -9647,7 +9651,7 @@ class PR extends k {
9647
9651
  description: S(o.POST, this.name, !1),
9648
9652
  method: o.POST,
9649
9653
  url: `${this.url}/`,
9650
- payload: R(r),
9654
+ payload: F(r),
9651
9655
  blockers: [r.field_values],
9652
9656
  blocks: [r.uuid]
9653
9657
  });
@@ -9732,8 +9736,8 @@ class _R extends k {
9732
9736
  }
9733
9737
  add(e) {
9734
9738
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
9735
- var y;
9736
- 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;
9737
9741
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
9738
9742
  ...e,
9739
9743
  created_by: r,
@@ -9742,7 +9746,7 @@ class _R extends k {
9742
9746
  description: S(o.POST, this.name, !1),
9743
9747
  method: o.POST,
9744
9748
  url: `${this.url}/`,
9745
- payload: R(c),
9749
+ payload: F(c),
9746
9750
  blockers: [e.procedure, e.procedure_step, e.fields_revision],
9747
9751
  blocks: [c.uuid]
9748
9752
  });
@@ -9753,26 +9757,26 @@ class _R extends k {
9753
9757
  }), [c, h];
9754
9758
  }
9755
9759
  bulkAdd(e, i) {
9756
- 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) => {
9757
9761
  var M;
9758
- return ((M = F.userReducer.currentUser) == null ? void 0 : M.id) ?? null;
9759
- }), h = [], l = ct(e, Math.min(i ?? e.length, at)), y = [];
9760
- 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) {
9761
9765
  const M = [], w = [], g = [];
9762
- for (const E of F) {
9766
+ for (const E of R) {
9763
9767
  const B = T({
9764
9768
  ...E,
9765
9769
  values: E.values,
9766
9770
  created_by: c,
9767
9771
  submitted_at: d
9768
9772
  });
9769
- h.push(B), M.push(R(B)), w.push(
9773
+ h.push(B), M.push(F(B)), w.push(
9770
9774
  B.procedure_step,
9771
9775
  B.procedure,
9772
9776
  B.fields_revision
9773
9777
  ), g.push(B.uuid);
9774
9778
  }
9775
- y.push({
9779
+ m.push({
9776
9780
  payload: {
9777
9781
  payloads: M,
9778
9782
  submitted_at: d
@@ -9782,8 +9786,8 @@ class _R extends k {
9782
9786
  });
9783
9787
  }
9784
9788
  this.dispatch(n(h));
9785
- const A = y.map((F) => {
9786
- const { payload: M, blocks: w, blockers: g } = F;
9789
+ const A = m.map((R) => {
9790
+ const { payload: M, blocks: w, blockers: g } = R;
9787
9791
  return this.enqueueRequest({
9788
9792
  description: S(o.POST, this.name, !0),
9789
9793
  method: o.POST,
@@ -9793,13 +9797,13 @@ class _R extends k {
9793
9797
  blocks: w
9794
9798
  });
9795
9799
  });
9796
- return Promise.all(A).then((F) => {
9797
- this.dispatch(a(F.flat()));
9800
+ return Promise.all(A).then((R) => {
9801
+ this.dispatch(a(R.flat()));
9798
9802
  }).catch(() => {
9799
9803
  this.dispatch(r(v(h)));
9800
9804
  }), [
9801
9805
  h,
9802
- Promise.all(A).then((F) => F.flat())
9806
+ Promise.all(A).then((R) => R.flat())
9803
9807
  ];
9804
9808
  }
9805
9809
  update(e) {
@@ -9895,7 +9899,7 @@ class bR extends k {
9895
9899
  description: S(o.POST, this.name, !1),
9896
9900
  method: o.POST,
9897
9901
  url: `${this.url}/`,
9898
- payload: R(r),
9902
+ payload: F(r),
9899
9903
  blockers: [r.procedure, r.procedure_step],
9900
9904
  blocks: [r.uuid]
9901
9905
  });
@@ -9907,8 +9911,8 @@ class bR extends k {
9907
9911
  }
9908
9912
  bulkAdd(e) {
9909
9913
  const { addMany: i, setMany: n, deleteMany: a } = this.actions, r = this.select((l) => {
9910
- var y;
9911
- 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;
9912
9916
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map(
9913
9917
  (l) => T({
9914
9918
  ...l,
@@ -9922,7 +9926,7 @@ class bR extends k {
9922
9926
  method: o.POST,
9923
9927
  url: `${this.url}/bulk/`,
9924
9928
  payload: {
9925
- procedure_step_reviewers: c.map((l) => R(l)),
9929
+ procedure_step_reviewers: c.map((l) => F(l)),
9926
9930
  submitted_at: d
9927
9931
  },
9928
9932
  blockers: c.flatMap((l) => [l.procedure, l.procedure_step]),
@@ -10012,7 +10016,7 @@ class MR extends k {
10012
10016
  description: S(o.POST, this.name, !1),
10013
10017
  method: o.POST,
10014
10018
  url: `${this.url}/`,
10015
- payload: R(d),
10019
+ payload: F(d),
10016
10020
  blockers: [d.procedure_type, d.project],
10017
10021
  blocks: [d.uuid]
10018
10022
  });
@@ -10110,7 +10114,7 @@ class gR extends k {
10110
10114
  description: S(o.POST, this.name, !1),
10111
10115
  method: o.POST,
10112
10116
  url: `${this.url}/`,
10113
- payload: R(r),
10117
+ payload: F(r),
10114
10118
  blockers: [r.procedure_type],
10115
10119
  blocks: [r.uuid]
10116
10120
  });
@@ -10201,9 +10205,9 @@ class wR extends V {
10201
10205
  return [e.uuid];
10202
10206
  }
10203
10207
  buildModel(e) {
10204
- 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) => {
10205
10209
  var A;
10206
- return ((A = y.userReducer.currentUser) == null ? void 0 : A.id) ?? null;
10210
+ return ((A = m.userReducer.currentUser) == null ? void 0 : A.id) ?? null;
10207
10211
  }), l = (/* @__PURE__ */ new Date()).toISOString();
10208
10212
  return T({
10209
10213
  file_url: c,
@@ -10346,8 +10350,8 @@ class FR extends k {
10346
10350
  }
10347
10351
  add(e) {
10348
10352
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
10349
- var y;
10350
- 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;
10351
10355
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
10352
10356
  ...e,
10353
10357
  created_by: r,
@@ -10358,7 +10362,7 @@ class FR extends k {
10358
10362
  description: S(o.POST, this.name, !1),
10359
10363
  method: o.POST,
10360
10364
  url: `${this.url}/`,
10361
- payload: R(c),
10365
+ payload: F(c),
10362
10366
  blockers: [c.procedure_type],
10363
10367
  blocks: [c.uuid]
10364
10368
  });
@@ -10496,8 +10500,8 @@ class vR extends k {
10496
10500
  }
10497
10501
  add(e) {
10498
10502
  const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
10499
- var y;
10500
- 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;
10501
10505
  }), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
10502
10506
  ...e,
10503
10507
  created_by: r,
@@ -10506,7 +10510,7 @@ class vR extends k {
10506
10510
  description: S(o.POST, this.name, !1),
10507
10511
  method: o.POST,
10508
10512
  url: `${this.url}/`,
10509
- payload: R(c),
10513
+ payload: F(c),
10510
10514
  blockers: [e.fields_revision, e.procedure],
10511
10515
  blocks: [c.uuid]
10512
10516
  });
@@ -10517,22 +10521,22 @@ class vR extends k {
10517
10521
  }), [c, h];
10518
10522
  }
10519
10523
  bulkAdd(e, i) {
10520
- 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) => {
10521
10525
  var M;
10522
- return ((M = F.userReducer.currentUser) == null ? void 0 : M.id) ?? null;
10523
- }), h = [], l = ct(e, Math.min(i ?? e.length, at)), y = [];
10524
- 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) {
10525
10529
  const M = [], w = [], g = [];
10526
- for (const E of F) {
10530
+ for (const E of R) {
10527
10531
  const B = T({
10528
10532
  ...E,
10529
10533
  values: E.values,
10530
10534
  created_by: c,
10531
10535
  submitted_at: d
10532
10536
  });
10533
- 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);
10534
10538
  }
10535
- y.push({
10539
+ m.push({
10536
10540
  payload: {
10537
10541
  payloads: M,
10538
10542
  submitted_at: d
@@ -10542,8 +10546,8 @@ class vR extends k {
10542
10546
  });
10543
10547
  }
10544
10548
  this.dispatch(n(h));
10545
- const A = y.map((F) => {
10546
- const { payload: M, blocks: w, blockers: g } = F;
10549
+ const A = m.map((R) => {
10550
+ const { payload: M, blocks: w, blockers: g } = R;
10547
10551
  return this.enqueueRequest({
10548
10552
  description: S(o.POST, this.name, !0),
10549
10553
  method: o.POST,
@@ -10553,13 +10557,13 @@ class vR extends k {
10553
10557
  blocks: w
10554
10558
  });
10555
10559
  });
10556
- return Promise.all(A).then((F) => {
10557
- this.dispatch(a(F.flat()));
10560
+ return Promise.all(A).then((R) => {
10561
+ this.dispatch(a(R.flat()));
10558
10562
  }).catch(() => {
10559
10563
  this.dispatch(r(v(h)));
10560
10564
  }), [
10561
10565
  h,
10562
- Promise.all(A).then((F) => F.flat())
10566
+ Promise.all(A).then((R) => R.flat())
10563
10567
  ];
10564
10568
  }
10565
10569
  update(e) {
@@ -10651,7 +10655,7 @@ class kR extends k {
10651
10655
  description: S(o.POST, this.name, !1),
10652
10656
  method: o.POST,
10653
10657
  url: `${this.url}/`,
10654
- payload: R(r),
10658
+ payload: F(r),
10655
10659
  blockers: [],
10656
10660
  blocks: [r.uuid]
10657
10661
  });
@@ -10748,7 +10752,7 @@ class BR extends k {
10748
10752
  description: S(o.POST, this.name, !1),
10749
10753
  method: o.POST,
10750
10754
  url: `${this.url}/`,
10751
- payload: R(r),
10755
+ payload: F(r),
10752
10756
  blockers: [e.team],
10753
10757
  blocks: [r.uuid]
10754
10758
  });
@@ -10768,7 +10772,7 @@ class BR extends k {
10768
10772
  description: S(o.POST, this.name, !0),
10769
10773
  method: o.POST,
10770
10774
  url: `${this.url}/bulk/`,
10771
- payload: { team_memberships: d.map((h) => R(h)) },
10775
+ payload: { team_memberships: d.map((h) => F(h)) },
10772
10776
  blockers: d.map((h) => h.team),
10773
10777
  blocks: d.map((h) => h.uuid)
10774
10778
  });
@@ -10842,7 +10846,7 @@ class zR extends k {
10842
10846
  description: S(o.POST, this.name, !1),
10843
10847
  method: o.POST,
10844
10848
  url: `${this.url}/`,
10845
- payload: R(r),
10849
+ payload: F(r),
10846
10850
  blockers: [],
10847
10851
  blocks: [r.uuid]
10848
10852
  });
@@ -10865,7 +10869,7 @@ class zR extends k {
10865
10869
  description: S(o.PATCH, this.name, !1),
10866
10870
  method: o.PATCH,
10867
10871
  url: `${this.url}/${e.uuid}/`,
10868
- payload: R(e),
10872
+ payload: F(e),
10869
10873
  blockers: [e.uuid],
10870
10874
  blocks: [e.uuid]
10871
10875
  });
@@ -10957,9 +10961,9 @@ async function Ua(t, s, e, i, n) {
10957
10961
  payload: c,
10958
10962
  headers: h,
10959
10963
  method: l,
10960
- queryParams: y,
10964
+ queryParams: m,
10961
10965
  attachmentHash: A,
10962
- isExternalUrl: F,
10966
+ isExternalUrl: R,
10963
10967
  isAuthNeeded: M,
10964
10968
  isResponseBlob: w
10965
10969
  } = {
@@ -10970,7 +10974,7 @@ async function Ua(t, s, e, i, n) {
10970
10974
  const E = A ? await e.files.fetchCache(A) : void 0;
10971
10975
  if (A && !E)
10972
10976
  throw new Error(`Cannot upload file ${A} because it's not cached.`);
10973
- !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);
10974
10978
  const B = (j) => {
10975
10979
  if (A) {
10976
10980
  if (!d) throw new Error(`No S3 URL for file ${A}`);
@@ -11010,11 +11014,11 @@ async function Ua(t, s, e, i, n) {
11010
11014
  }
11011
11015
  h && (D = D.set(h));
11012
11016
  try {
11013
- return await D.query(y);
11017
+ return await D.query(m);
11014
11018
  } catch (j) {
11015
11019
  const U = Ob(j), Et = U == null ? void 0 : U.status;
11016
11020
  if (a && Et === 401)
11017
- return await i.auth.handleUnauthorized(D, U), D.query(y);
11021
+ return await i.auth.handleUnauthorized(D, U), D.query(m);
11018
11022
  throw new C({
11019
11023
  response: U,
11020
11024
  innerError: j,
@@ -11615,7 +11619,7 @@ export {
11615
11619
  kM as clearTokens,
11616
11620
  P as createModelAdapter,
11617
11621
  FS as createOfflineAction,
11618
- R as createPayload,
11622
+ F as createPayload,
11619
11623
  Yb as createSelectionAdapter,
11620
11624
  ad as deleteAsset,
11621
11625
  jc as deleteAssetAttachment,
@@ -11978,7 +11982,7 @@ export {
11978
11982
  Wr as projectSlice,
11979
11983
  k_ as rehydratedReducer,
11980
11984
  za as rehydratedSlice,
11981
- m as restructureSelectorWithArgs,
11985
+ y as restructureSelectorWithArgs,
11982
11986
  Eb as runMiddleware,
11983
11987
  BM as selectAccessToken,
11984
11988
  Ig as selectAccessesByUserOfProject,