@overmap-ai/core 1.0.78-view-sets.27 → 1.0.78-view-sets-cleanup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,10 +2,10 @@ var Mc = Object.defineProperty;
2
2
  var jc = (t, e, s) => e in t ? Mc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var f = (t, e, s) => jc(t, typeof e != "symbol" ? e + "" : e, s);
4
4
  import "@redux-offline/redux-offline/lib/types";
5
- import { createAction as jt, createSlice as P, isAnyOf as R, createSelector as m, combineReducers as Pa, compose as zc } from "@reduxjs/toolkit";
5
+ import { createAction as jt, createSlice as P, isAnyOf as R, createSelector as m, combineReducers as Pa, compose as Uc } from "@reduxjs/toolkit";
6
6
  import $e from "superagent";
7
7
  import { v4 as Be } from "uuid";
8
- import { saveAs as Uc } from "file-saver";
8
+ import { saveAs as zc } from "file-saver";
9
9
  import { offline as Dc } from "@redux-offline/redux-offline";
10
10
  import Yt from "@redux-offline/redux-offline/lib/defaults";
11
11
  import "buffer";
@@ -60,10 +60,12 @@ function O(t) {
60
60
  },
61
61
  initialize: (h, p) => {
62
62
  h.instances = {};
63
- for (const A of p.payload) {
64
- const S = t(A);
65
- h.instances[S] = A;
63
+ const A = /* @__PURE__ */ new Set();
64
+ for (const S of p.payload) {
65
+ const g = t(S);
66
+ A.add(g), h.instances[g] = S;
66
67
  }
68
+ A.size !== p.payload.length && console.warn("duplicate ids detected when initializing model instances.");
67
69
  },
68
70
  getInitialState: (h) => ({
69
71
  ...h,
@@ -182,12 +184,12 @@ function Fm(t, e) {
182
184
  if (t[s] !== e[s]) return !1;
183
185
  return !0;
184
186
  }
185
- const b = (t) => t.length === 0 ? Bc : t, zt = (t) => Object.keys(t).length === 0 ? Lc : t, Jc = Oa((t) => {
187
+ const b = (t) => t.length === 0 ? Bc : t, Ut = (t) => Object.keys(t).length === 0 ? Lc : t, Jc = Oa((t) => {
186
188
  if (!t) return "";
187
- const e = new Date(t), s = e.getFullYear() === Ut.getFullYear(), i = { day: "numeric", month: "short" };
189
+ const e = new Date(t), s = e.getFullYear() === zt.getFullYear(), i = { day: "numeric", month: "short" };
188
190
  return s || (i.year = "numeric"), e.toLocaleDateString([], i);
189
- }), Zc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), Qc = 1e3 * 86400, Ut = /* @__PURE__ */ new Date(), Om = (t) => new Date(t).toDateString() === Ut.toDateString(), Rm = Oa((t, e, s) => {
190
- const i = Math.round((new Date(t).getTime() - Ut.getTime()) / Qc);
191
+ }), Zc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), Qc = 1e3 * 86400, zt = /* @__PURE__ */ new Date(), Om = (t) => new Date(t).toDateString() === zt.toDateString(), Rm = Oa((t, e, s) => {
192
+ const i = Math.round((new Date(t).getTime() - zt.getTime()) / Qc);
191
193
  return i < e || i > s ? Jc(t) : Zc.format(i, "days");
192
194
  });
193
195
  function Xc(t) {
@@ -251,7 +253,7 @@ const wm = async (t) => {
251
253
  });
252
254
  function qm(t) {
253
255
  const e = new Blob([t]);
254
- Uc(e, t.name);
256
+ zc(e, t.name);
255
257
  }
256
258
  const Zt = {};
257
259
  function Em(t, e, s, ...i) {
@@ -282,10 +284,10 @@ function Mm(t, e = void 0, s = 255) {
282
284
  function jm(t) {
283
285
  return t.toLowerCase().replace(" ", "-");
284
286
  }
285
- function zm(t, e = !1) {
287
+ function Um(t, e = !1) {
286
288
  return t.normalize("NFKD").toLowerCase().replace(/[^\w\s-]/g, "").trim().replace(/[-\s]+/g, e ? "_" : "-");
287
289
  }
288
- function Um(t, e) {
290
+ function zm(t, e) {
289
291
  if (t.length <= e)
290
292
  return t;
291
293
  const s = t.slice(0, e - 1);
@@ -476,8 +478,8 @@ const V = O(
476
478
  deleteAssetProcedureFieldsMany: B.deleteMany
477
479
  }
478
480
  }), {
479
- initializeAssetProcedureFields: zr,
480
- addAssetProcedureFields: Ur,
481
+ initializeAssetProcedureFields: Ur,
482
+ addAssetProcedureFields: zr,
481
483
  addAssetProcedureFieldsMany: cA,
482
484
  setAssetProcedureFields: rA,
483
485
  setAssetProcedureFieldsMany: oA,
@@ -492,7 +494,7 @@ const V = O(
492
494
  )
493
495
  ), hA = y(
494
496
  m([ja, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
495
- ), pA = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], Cr = Ma.reducer, L = O((t) => t.uuid), as = L.getInitialState({}), za = P({
497
+ ), pA = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], Cr = Ma.reducer, L = O((t) => t.uuid), as = L.getInitialState({}), Ua = P({
496
498
  name: "assetProcedureFieldValuesAttachments",
497
499
  initialState: as,
498
500
  extraReducers: (t) => t.addMatcher(
@@ -520,13 +522,13 @@ const V = O(
520
522
  updateAssetProcedureFieldValuesAttachments: Gr,
521
523
  deleteAssetProcedureFieldValuesAttachment: bA,
522
524
  deleteAssetProcedureFieldValuesAttachments: Ft
523
- } = za.actions, Ua = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances, Br = m(
524
- [Ua],
525
+ } = Ua.actions, za = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances, Br = m(
526
+ [za],
525
527
  (t) => Object.values(t)
526
528
  ), SA = (t) => (e) => e.assetProcedureFieldValuesAttachmentReducer.instances[t], Lr = y(
527
529
  m(
528
530
  [
529
- Ua,
531
+ za,
530
532
  (t, e) => e
531
533
  ],
532
534
  (t, e) => {
@@ -539,7 +541,7 @@ const V = O(
539
541
  [Br, (t, e) => e],
540
542
  (t, e) => b(t.filter((s) => s.field_values === e))
541
543
  )
542
- ), Hr = za.reducer, N = O((t) => t.uuid), ns = N.getInitialState({}), Da = P({
544
+ ), Hr = Ua.reducer, N = O((t) => t.uuid), ns = N.getInitialState({}), Da = P({
543
545
  name: "assetProcedureFieldValues",
544
546
  initialState: ns,
545
547
  extraReducers: (t) => t.addMatcher(
@@ -677,7 +679,7 @@ const V = O(
677
679
  return b(s);
678
680
  }
679
681
  )
680
- ), zA = y(
682
+ ), UA = y(
681
683
  m([no, (t, e) => e], (t, e) => b(t.filter((s) => s.organization === e)))
682
684
  ), co = Ga.reducer, K = O((t) => t.uuid), ys = K.getInitialState(
683
685
  {}
@@ -701,7 +703,7 @@ const V = O(
701
703
  }
702
704
  }), {
703
705
  initializeAssetProcedureStepFieldsAttachments: ro,
704
- addAssetProcedureStepFieldsAttachment: UA,
706
+ addAssetProcedureStepFieldsAttachment: zA,
705
707
  addAssetProcedureStepFieldsAttachments: oo,
706
708
  setAssetProcedureStepFieldsAttachment: DA,
707
709
  setAssetProcedureStepFieldsAttachments: xA,
@@ -884,7 +886,7 @@ const V = O(
884
886
  const s = {};
885
887
  for (const [i, a] of Object.entries(t))
886
888
  a.asset_procedure === e && (s[i] = a);
887
- return zt(s);
889
+ return Ut(s);
888
890
  })
889
891
  ), Af = y(
890
892
  m([Eo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
@@ -930,7 +932,7 @@ const V = O(
930
932
  setAssets: Sf
931
933
  } = Qa.actions, en = (t) => t.assetReducer.instances, jo = m([en], (t) => b(Object.values(t))), tn = y(
932
934
  m([jo, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
933
- ), Ms = (t) => (e) => e.assetReducer.instances[t], zo = y(
935
+ ), Ms = (t) => (e) => e.assetReducer.instances[t], Uo = y(
934
936
  m([en, (t, e) => e], (t, e) => {
935
937
  const s = [];
936
938
  for (const i of e) {
@@ -939,7 +941,7 @@ const V = O(
939
941
  }
940
942
  return b(s);
941
943
  })
942
- ), gf = (t) => (e) => tn(t)(e).length, Uo = Qa.reducer, ee = O(
944
+ ), gf = (t) => (e) => tn(t)(e).length, zo = Qa.reducer, ee = O(
943
945
  (t) => t.uuid
944
946
  ), js = ee.getInitialState({}), sn = P({
945
947
  name: "assetStageCompletions",
@@ -961,8 +963,8 @@ const V = O(
961
963
  }
962
964
  }), {
963
965
  initializeAssetStageCompletions: Do,
964
- addAssetStageCompletion: zs,
965
- addAssetStageCompletions: Us,
966
+ addAssetStageCompletion: Us,
967
+ addAssetStageCompletions: zs,
966
968
  setAssetStageCompletion: _f,
967
969
  setAssetStageCompletions: Pf,
968
970
  updateAssetStageCompletion: xo,
@@ -1017,7 +1019,7 @@ const V = O(
1017
1019
  const s = {};
1018
1020
  for (const [i, a] of Object.entries(t))
1019
1021
  a.asset_procedure === e && (s[i] = a);
1020
- return zt(s);
1022
+ return Ut(s);
1021
1023
  })
1022
1024
  ), wf = y(
1023
1025
  m([Ho, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
@@ -1090,8 +1092,8 @@ const V = O(
1090
1092
  initializeAssetTypeFieldsAttachments: sd,
1091
1093
  addAssetTypeFieldsAttachment: jf,
1092
1094
  addAssetTypeFieldsAttachments: id,
1093
- setAssetTypeFieldsAttachment: zf,
1094
- setAssetTypeFieldsAttachments: Uf,
1095
+ setAssetTypeFieldsAttachment: Uf,
1096
+ setAssetTypeFieldsAttachments: zf,
1095
1097
  updateAssetTypeFieldsAttachment: Df,
1096
1098
  updateAssetTypeFieldsAttachments: ad,
1097
1099
  deleteAssetTypeFieldsAttachment: xf,
@@ -1315,7 +1317,7 @@ const V = O(
1315
1317
  updateCategories: Sy,
1316
1318
  deleteCategory: jd,
1317
1319
  deleteCategories: gy
1318
- } = yn.actions, bn = (t) => t.categoryReducer.instances, zd = m([bn], (t) => Object.values(t)), ai = (t) => (e) => e.categoryReducer.instances[t], _y = y(
1320
+ } = yn.actions, bn = (t) => t.categoryReducer.instances, Ud = m([bn], (t) => Object.values(t)), ai = (t) => (e) => e.categoryReducer.instances[t], _y = y(
1319
1321
  m(
1320
1322
  [bn, (t, e) => e],
1321
1323
  (t, e) => {
@@ -1328,8 +1330,8 @@ const V = O(
1328
1330
  }
1329
1331
  )
1330
1332
  ), Py = y(
1331
- m([zd, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1332
- ), Ud = yn.reducer, de = O(
1333
+ m([Ud, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1334
+ ), zd = yn.reducer, de = O(
1333
1335
  (t) => t.uuid
1334
1336
  ), ni = de.getInitialState({}), Sn = P({
1335
1337
  name: "documentAttachments",
@@ -1482,8 +1484,8 @@ const V = O(
1482
1484
  updateEmailDomain: My,
1483
1485
  updateEmailDomains: jy,
1484
1486
  deleteEmailDomain: Xd,
1485
- deleteEmailDomains: zy
1486
- } = Pn.actions, eu = (t) => t.emailDomainsReducer.instances, tu = m([eu], (t) => Object.values(t)), Uy = y(
1487
+ deleteEmailDomains: Uy
1488
+ } = Pn.actions, eu = (t) => t.emailDomainsReducer.instances, tu = m([eu], (t) => Object.values(t)), zy = y(
1487
1489
  m(
1488
1490
  [tu, (t, e) => e],
1489
1491
  (t, e) => b(
@@ -1729,12 +1731,12 @@ const V = O(
1729
1731
  [jn, (t, e) => e],
1730
1732
  (t, e) => Object.values(t).filter((s) => s.issue === e)
1731
1733
  )
1732
- ), zu = y(
1734
+ ), Uu = y(
1733
1735
  m(
1734
1736
  [jn, (t, e) => e],
1735
1737
  (t, e) => t.filter((s) => s.asset === e)
1736
1738
  )
1737
- ), Uu = En.reducer, fe = O((t) => t.uuid), gi = fe.getInitialState({}), zn = P({
1739
+ ), zu = En.reducer, fe = O((t) => t.uuid), gi = fe.getInitialState({}), Un = P({
1738
1740
  name: "geoImages",
1739
1741
  initialState: gi,
1740
1742
  extraReducers: (t) => t.addMatcher(
@@ -1762,11 +1764,11 @@ const V = O(
1762
1764
  updateGeoImages: ob,
1763
1765
  deleteGeoImage: _i,
1764
1766
  deleteGeoImages: Gu
1765
- } = zn.actions, Bu = (t) => t.geoImageReducer.instances, Lu = m([Bu], (t) => Object.values(t)), Pi = (t) => (e) => e.geoImageReducer.instances[t], db = y(
1767
+ } = Un.actions, Bu = (t) => t.geoImageReducer.instances, Lu = m([Bu], (t) => Object.values(t)), Pi = (t) => (e) => e.geoImageReducer.instances[t], db = y(
1766
1768
  m([Lu, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1767
- ), Nu = zn.reducer, ye = O(
1769
+ ), Nu = Un.reducer, ye = O(
1768
1770
  (t) => t.uuid
1769
- ), Ti = ye.getInitialState({}), Un = P({
1771
+ ), Ti = ye.getInitialState({}), zn = P({
1770
1772
  name: "issueAssociations",
1771
1773
  initialState: Ti,
1772
1774
  extraReducers: (t) => t.addMatcher(
@@ -1794,7 +1796,7 @@ const V = O(
1794
1796
  addIssueAssociations: Dn,
1795
1797
  deleteIssueAssociation: Oi,
1796
1798
  deleteIssueAssociations: xn
1797
- } = Un.actions, ht = (t) => t.issueAssociationReducer.instances, pb = m([ht], (t) => Object.values(t)), Ku = (t) => (e) => e.issueAssociationReducer.instances[t], Yu = y(
1799
+ } = zn.actions, ht = (t) => t.issueAssociationReducer.instances, pb = m([ht], (t) => Object.values(t)), Ku = (t) => (e) => e.issueAssociationReducer.instances[t], Yu = y(
1798
1800
  m(
1799
1801
  [ht, (t, e) => e],
1800
1802
  (t, e) => b(
@@ -1811,7 +1813,7 @@ const V = O(
1811
1813
  [ht, (t, e) => e],
1812
1814
  (t, e) => b(Object.values(t).filter((s) => s.asset === e))
1813
1815
  )
1814
- ), Qu = Un.reducer, be = O(
1816
+ ), Qu = zn.reducer, be = O(
1815
1817
  (t) => t.uuid
1816
1818
  ), Ri = be.getInitialState({}), Vn = P({
1817
1819
  name: "issueAttachments",
@@ -1921,12 +1923,12 @@ const V = O(
1921
1923
  [yl, (t, e) => e],
1922
1924
  (t, e) => b(Object.values(t).filter((s) => s.issue === e))
1923
1925
  )
1924
- ), bl = Bn.reducer, _e = O((t) => t.uuid), zi = _e.getInitialState({}), Ln = P({
1926
+ ), bl = Bn.reducer, _e = O((t) => t.uuid), Ui = _e.getInitialState({}), Ln = P({
1925
1927
  name: "issues",
1926
- initialState: zi,
1928
+ initialState: Ui,
1927
1929
  extraReducers: (t) => t.addMatcher(
1928
1930
  R(_, q, I),
1929
- (e) => Object.assign(e, zi)
1931
+ (e) => Object.assign(e, Ui)
1930
1932
  ),
1931
1933
  reducers: {
1932
1934
  initializeIssues: _e.initialize,
@@ -1941,7 +1943,7 @@ const V = O(
1941
1943
  }
1942
1944
  }), {
1943
1945
  initializeIssues: Sl,
1944
- addIssue: Ui,
1946
+ addIssue: zi,
1945
1947
  addIssues: gl,
1946
1948
  setIssue: Ib,
1947
1949
  setIssues: vb,
@@ -1991,7 +1993,7 @@ const V = O(
1991
1993
  } = Hn.actions, vl = (t) => t.issueTypeAttachmentReducer.instances, wl = m(
1992
1994
  [vl],
1993
1995
  (t) => Object.values(t)
1994
- ), kl = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], zb = y(
1996
+ ), kl = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], Ub = y(
1995
1997
  m(
1996
1998
  [wl, (t, e) => e],
1997
1999
  (t, e) => b(t.filter(({ issue_type: s }) => e === s))
@@ -2016,16 +2018,16 @@ const V = O(
2016
2018
  }
2017
2019
  }), {
2018
2020
  initializeIssueTypeFieldsAttachments: El,
2019
- addIssueTypeFieldsAttachment: Ub,
2021
+ addIssueTypeFieldsAttachment: zb,
2020
2022
  addIssueTypeFieldsAttachments: Ml,
2021
2023
  setIssueTypeFieldsAttachment: Db,
2022
2024
  setIssueTypeFieldsAttachments: xb,
2023
2025
  updateIssueTypeFieldsAttachment: Vb,
2024
2026
  updateIssueTypeFieldsAttachments: jl,
2025
2027
  deleteIssueTypeFieldsAttachment: Cb,
2026
- deleteIssueTypeFieldsAttachments: zl
2027
- } = Wn.actions, Ul = (t) => t.issueTypeFieldsAttachmentReducer.instances, Dl = m(
2028
- [Ul],
2028
+ deleteIssueTypeFieldsAttachments: Ul
2029
+ } = Wn.actions, zl = (t) => t.issueTypeFieldsAttachmentReducer.instances, Dl = m(
2030
+ [zl],
2029
2031
  (t) => Object.values(t)
2030
2032
  ), $b = y(
2031
2033
  m(
@@ -2159,7 +2161,7 @@ const V = O(
2159
2161
  [Jl, (t, e) => e],
2160
2162
  (t, e) => b(t.filter((s) => s.field_values === e))
2161
2163
  )
2162
- ), Xl = Zn.reducer, U = O((t) => t.uuid), Ki = U.getInitialState({}), Xn = P({
2164
+ ), Xl = Zn.reducer, z = O((t) => t.uuid), Ki = z.getInitialState({}), Xn = P({
2163
2165
  name: "issueTypes",
2164
2166
  initialState: Ki,
2165
2167
  extraReducers: (t) => t.addMatcher(
@@ -2167,16 +2169,16 @@ const V = O(
2167
2169
  (e) => Object.assign(e, Ki)
2168
2170
  ),
2169
2171
  reducers: {
2170
- initializeIssueTypes: U.initialize,
2171
- addIssueType: U.addOne,
2172
- addIssueTypes: U.addMany,
2173
- setIssueType: U.setOne,
2174
- setIssueTypes: U.setMany,
2175
- updateIssueType: U.updateOne,
2176
- updateIssueTypes: U.updateMany,
2177
- deleteIssueType: U.deleteOne,
2178
- deleteIssueTypes: U.deleteMany,
2179
- removeIssueType: U.deleteOne
2172
+ initializeIssueTypes: z.initialize,
2173
+ addIssueType: z.addOne,
2174
+ addIssueTypes: z.addMany,
2175
+ setIssueType: z.setOne,
2176
+ setIssueTypes: z.setMany,
2177
+ updateIssueType: z.updateOne,
2178
+ updateIssueTypes: z.updateMany,
2179
+ deleteIssueType: z.deleteOne,
2180
+ deleteIssueTypes: z.deleteMany,
2181
+ removeIssueType: z.deleteOne
2180
2182
  }
2181
2183
  }), {
2182
2184
  initializeIssueTypes: eh,
@@ -2324,8 +2326,8 @@ const V = O(
2324
2326
  updateOrganizationAccess: yt,
2325
2327
  updateOrganizationAccesses: jS,
2326
2328
  deleteOrganizationAccess: Ph,
2327
- deleteOrganizationAccesses: zS
2328
- } = ac.actions, Th = ac.reducer, nc = (t) => t.organizationAccessReducer.instances, ea = (t) => (e) => e.organizationAccessReducer.instances[t], US = m(
2329
+ deleteOrganizationAccesses: US
2330
+ } = ac.actions, Th = ac.reducer, nc = (t) => t.organizationAccessReducer.instances, ea = (t) => (e) => e.organizationAccessReducer.instances[t], zS = m(
2329
2331
  [bh, nc],
2330
2332
  (t, e) => Object.values(e).find(
2331
2333
  (i) => i.user === (t == null ? void 0 : t.id)
@@ -2334,7 +2336,7 @@ const V = O(
2334
2336
  const e = {};
2335
2337
  for (const s of Object.values(t))
2336
2338
  e[s.user] = s;
2337
- return zt(e);
2339
+ return Ut(e);
2338
2340
  }), DS = y(
2339
2341
  m(
2340
2342
  [Wt, Fh, (t, e) => e],
@@ -2440,9 +2442,9 @@ const V = O(
2440
2442
  deleteProjectAccesses: qe.deleteMany
2441
2443
  }
2442
2444
  }), {
2443
- initializeProjectAccesses: zh,
2445
+ initializeProjectAccesses: Uh,
2444
2446
  addProjectAccess: aa,
2445
- addProjectAccesses: Uh,
2447
+ addProjectAccesses: zh,
2446
2448
  setProjectAccess: YS,
2447
2449
  setProjectAccesses: JS,
2448
2450
  updateProjectAccess: rt,
@@ -2618,9 +2620,9 @@ const V = O(
2618
2620
  t.isRehydrated = e.payload;
2619
2621
  }
2620
2622
  }
2621
- }), { setRehydrated: yg } = Ac.actions, bg = (t) => t.rehydratedReducer.isRehydrated, pp = Ac.reducer, ze = O(
2623
+ }), { setRehydrated: yg } = Ac.actions, bg = (t) => t.rehydratedReducer.isRehydrated, pp = Ac.reducer, Ue = O(
2622
2624
  (t) => t.uuid
2623
- ), pa = ze.getInitialState({}), fc = P({
2625
+ ), pa = Ue.getInitialState({}), fc = P({
2624
2626
  name: "teamMemberships",
2625
2627
  initialState: pa,
2626
2628
  extraReducers: (t) => t.addMatcher(
@@ -2628,15 +2630,15 @@ const V = O(
2628
2630
  (e) => Object.assign(e, pa)
2629
2631
  ),
2630
2632
  reducers: {
2631
- initializeTeamMemberships: ze.initialize,
2632
- addTeamMembership: ze.addOne,
2633
- addTeamMemberships: ze.addMany,
2634
- setTeamMembership: ze.setOne,
2635
- setTeamMemberships: ze.setMany,
2636
- updateTeamMembership: ze.updateOne,
2637
- updateTeamMemberships: ze.updateMany,
2638
- deleteTeamMembership: ze.deleteOne,
2639
- deleteTeamMemberships: ze.deleteMany
2633
+ initializeTeamMemberships: Ue.initialize,
2634
+ addTeamMembership: Ue.addOne,
2635
+ addTeamMemberships: Ue.addMany,
2636
+ setTeamMembership: Ue.setOne,
2637
+ setTeamMemberships: Ue.setMany,
2638
+ updateTeamMembership: Ue.updateOne,
2639
+ updateTeamMemberships: Ue.updateMany,
2640
+ deleteTeamMembership: Ue.deleteOne,
2641
+ deleteTeamMemberships: Ue.deleteMany
2640
2642
  }
2641
2643
  }), {
2642
2644
  initializeTeamMemberships: mp,
@@ -2666,7 +2668,7 @@ const V = O(
2666
2668
  return b(t.filter((a) => i.has(a.id)));
2667
2669
  }
2668
2670
  )
2669
- ), Ue = O((t) => t.uuid), fa = Ue.getInitialState({}), bc = P({
2671
+ ), ze = O((t) => t.uuid), fa = ze.getInitialState({}), bc = P({
2670
2672
  name: "teams",
2671
2673
  initialState: fa,
2672
2674
  extraReducers: (t) => t.addMatcher(
@@ -2674,15 +2676,15 @@ const V = O(
2674
2676
  (e) => Object.assign(e, fa)
2675
2677
  ),
2676
2678
  reducers: {
2677
- initializeTeams: Ue.initialize,
2678
- addTeam: Ue.addOne,
2679
- addTeams: Ue.addMany,
2680
- setTeam: Ue.setOne,
2681
- setTeams: Ue.setMany,
2682
- updateTeam: Ue.updateOne,
2683
- updateTeams: Ue.updateMany,
2684
- deleteTeam: Ue.deleteOne,
2685
- deleteTeams: Ue.deleteMany
2679
+ initializeTeams: ze.initialize,
2680
+ addTeam: ze.addOne,
2681
+ addTeams: ze.addMany,
2682
+ setTeam: ze.setOne,
2683
+ setTeams: ze.setMany,
2684
+ updateTeam: ze.updateOne,
2685
+ updateTeams: ze.updateMany,
2686
+ deleteTeam: ze.deleteOne,
2687
+ deleteTeams: ze.deleteMany
2686
2688
  }
2687
2689
  }), {
2688
2690
  initializeTeams: Sp,
@@ -2724,8 +2726,8 @@ const V = O(
2724
2726
  }, Eg = Pa(gc), Ip = {
2725
2727
  ...gc,
2726
2728
  [lt]: Rp,
2727
- categoryReducer: Ud,
2728
- assetReducer: Uo,
2729
+ categoryReducer: zd,
2730
+ assetReducer: zo,
2729
2731
  assetAttachmentReducer: yr,
2730
2732
  assetStageCompletionReducer: Co,
2731
2733
  assetStageReducer: No,
@@ -2746,7 +2748,7 @@ const V = O(
2746
2748
  formRevisionReducer: gu,
2747
2749
  formRevisionAttachmentReducer: hu,
2748
2750
  formSubmissionAttachmentReducer: ku,
2749
- formSubmissionReducer: Uu,
2751
+ formSubmissionReducer: zu,
2750
2752
  userReducer: yh,
2751
2753
  emailDomainsReducer: su,
2752
2754
  documentsReducer: Jd,
@@ -2826,10 +2828,10 @@ const jp = (t) => {
2826
2828
  if (t) throw t;
2827
2829
  const e = Ye();
2828
2830
  e ? e.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }) : console.error("Client store not set");
2829
- }, zp = (t, e, s) => {
2831
+ }, Up = (t, e, s) => {
2830
2832
  const i = Ge();
2831
2833
  return i ? (i.addRequest(e), i.getQueue()) : (console.warn("Outbox coordinator not set; cannot enqueue request yet."), []);
2832
- }, Up = (t, e, s) => {
2834
+ }, zp = (t, e, s) => {
2833
2835
  const i = Ge();
2834
2836
  if (!i)
2835
2837
  return console.warn("Outbox coordinator not set; cannot dequeue request yet."), [];
@@ -2858,12 +2860,12 @@ const xp = {
2858
2860
  // that same issue"
2859
2861
  queue: {
2860
2862
  ...Yt.queue,
2861
- enqueue: zp,
2862
- dequeue: Up,
2863
+ enqueue: Up,
2864
+ dequeue: zp,
2863
2865
  // Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
2864
2866
  peek: (...t) => Hp(...t)
2865
2867
  }
2866
- }, Vp = Vc(Mp, lt), jg = zc(Dc(xp), Vp);
2868
+ }, Vp = Vc(Mp, lt), jg = Uc(Dc(xp), Vp);
2867
2869
  function Cp(t) {
2868
2870
  function e(s) {
2869
2871
  return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((a) => a in s);
@@ -3094,7 +3096,7 @@ class v extends Fc {
3094
3096
  this.auth = i;
3095
3097
  }
3096
3098
  }
3097
- class zg extends v {
3099
+ class Ug extends v {
3098
3100
  async startConversation(e, s) {
3099
3101
  return this.enqueueRequest({
3100
3102
  description: "Start agent conversation",
@@ -3157,7 +3159,7 @@ class zg extends v {
3157
3159
  return this.dispatch(nr(s)), s;
3158
3160
  }
3159
3161
  }
3160
- class z extends v {
3162
+ class U extends v {
3161
3163
  getNumberOfAttachmentsWithSha1(e) {
3162
3164
  const {
3163
3165
  issueAttachmentReducer: s,
@@ -3216,7 +3218,7 @@ class z extends v {
3216
3218
  return await this.client.files.addCache(e, s), i;
3217
3219
  }
3218
3220
  }
3219
- class De extends z {
3221
+ class De extends U {
3220
3222
  async _bulkAdd(e) {
3221
3223
  var r;
3222
3224
  const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = [], c = [], o = {};
@@ -3280,7 +3282,7 @@ class De extends z {
3280
3282
  }), a;
3281
3283
  }
3282
3284
  }
3283
- class Ug extends De {
3285
+ class zg extends De {
3284
3286
  constructor() {
3285
3287
  super(...arguments);
3286
3288
  f(this, "name", "Asset Attachment");
@@ -3381,7 +3383,7 @@ class Dg extends De {
3381
3383
  return this.dispatch(br(i)), i;
3382
3384
  }
3383
3385
  }
3384
- class xg extends z {
3386
+ class xg extends U {
3385
3387
  async bulkAdd(e) {
3386
3388
  var l;
3387
3389
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], c = [];
@@ -3454,7 +3456,7 @@ class Vg extends v {
3454
3456
  created_by: i,
3455
3457
  submitted_at: a
3456
3458
  });
3457
- this.dispatch(Ur(n));
3459
+ this.dispatch(zr(n));
3458
3460
  const c = this.enqueueRequest({
3459
3461
  description: "Add Asset Procedure Fields",
3460
3462
  method: u.POST,
@@ -3480,7 +3482,7 @@ class Vg extends v {
3480
3482
  blockers: [],
3481
3483
  blocks: []
3482
3484
  });
3483
- return this.dispatch(zr(s)), s;
3485
+ return this.dispatch(Ur(s)), s;
3484
3486
  }
3485
3487
  }
3486
3488
  function Ve(t, e) {
@@ -3491,7 +3493,7 @@ function Ve(t, e) {
3491
3493
  s.push(t.slice(i, i += e));
3492
3494
  return s;
3493
3495
  }
3494
- class Cg extends z {
3496
+ class Cg extends U {
3495
3497
  async bulkAdd(e, s) {
3496
3498
  var r;
3497
3499
  const i = (/* @__PURE__ */ new Date()).toISOString(), a = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id, n = Ve(e, s ?? e.length), c = [], o = [];
@@ -3860,7 +3862,7 @@ class Bg extends v {
3860
3862
  return this.dispatch(ao(s)), s;
3861
3863
  }
3862
3864
  }
3863
- class Lg extends z {
3865
+ class Lg extends U {
3864
3866
  async bulkAdd(e) {
3865
3867
  var l;
3866
3868
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], c = [];
@@ -4001,7 +4003,7 @@ class Ng extends v {
4001
4003
  return this.dispatch(Ao(s)), s;
4002
4004
  }
4003
4005
  }
4004
- class Hg extends z {
4006
+ class Hg extends U {
4005
4007
  async bulkAdd(e, s) {
4006
4008
  var r;
4007
4009
  const i = (/* @__PURE__ */ new Date()).toISOString(), a = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id, n = Ve(e, s ?? e.length), c = [], o = [];
@@ -4354,7 +4356,7 @@ class Yg extends v {
4354
4356
  async delete(e) {
4355
4357
  const { store: s } = this.client, i = s.getState(), a = Ms(e)(i);
4356
4358
  if (!a) throw new Error(`No asset with uuid ${e} found in the store`);
4357
- const n = fr(e)(i), c = zu(e)(i), o = Zu(e)(i);
4359
+ const n = fr(e)(i), c = Uu(e)(i), o = Zu(e)(i);
4358
4360
  if (this.dispatch(Es(e)), n.length > 0) {
4359
4361
  const l = n.map(({ uuid: r }) => r);
4360
4362
  this.dispatch(ka(l));
@@ -4413,7 +4415,7 @@ class Yg extends v {
4413
4415
  }), l;
4414
4416
  }
4415
4417
  async bulkDelete(e) {
4416
- const { store: s } = this.client, i = s.getState(), a = zo(e)(i);
4418
+ const { store: s } = this.client, i = s.getState(), a = Uo(e)(i);
4417
4419
  this.dispatch(Xa(e));
4418
4420
  try {
4419
4421
  await this.enqueueRequest({
@@ -4450,7 +4452,7 @@ class Jg extends v {
4450
4452
  created_by: i,
4451
4453
  submitted_at: a
4452
4454
  });
4453
- this.dispatch(zs(n));
4455
+ this.dispatch(Us(n));
4454
4456
  const c = this.enqueueRequest({
4455
4457
  description: "Add asset stage completion",
4456
4458
  method: u.POST,
@@ -4478,7 +4480,7 @@ class Jg extends v {
4478
4480
  blocks: []
4479
4481
  });
4480
4482
  return a.catch(() => {
4481
- this.dispatch(zs(i));
4483
+ this.dispatch(Us(i));
4482
4484
  }), a;
4483
4485
  }
4484
4486
  bulkAdd(e) {
@@ -4488,7 +4490,7 @@ class Jg extends v {
4488
4490
  created_by: a,
4489
4491
  submitted_at: i
4490
4492
  })), o = c.map(({ uuid: d }) => d);
4491
- this.dispatch(Us(c));
4493
+ this.dispatch(zs(c));
4492
4494
  const l = this.enqueueRequest({
4493
4495
  description: "Bulk create asset stage completions",
4494
4496
  method: u.POST,
@@ -4522,7 +4524,7 @@ class Jg extends v {
4522
4524
  blocks: []
4523
4525
  });
4524
4526
  return a.catch(() => {
4525
- this.dispatch(Us(i));
4527
+ this.dispatch(zs(i));
4526
4528
  }), a;
4527
4529
  }
4528
4530
  async refreshStore(e) {
@@ -4661,7 +4663,7 @@ class Qg extends De {
4661
4663
  return this.dispatch(Wo(i)), i;
4662
4664
  }
4663
4665
  }
4664
- class Xg extends z {
4666
+ class Xg extends U {
4665
4667
  async bulkAdd(e) {
4666
4668
  var l;
4667
4669
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], c = [];
@@ -4763,7 +4765,7 @@ class e_ extends v {
4763
4765
  return this.dispatch(dd(s)), s;
4764
4766
  }
4765
4767
  }
4766
- class t_ extends z {
4768
+ class t_ extends U {
4767
4769
  async bulkAdd(e, s) {
4768
4770
  var r;
4769
4771
  const i = (/* @__PURE__ */ new Date()).toISOString(), a = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id, n = Ve(e, s ?? e.length), c = [], o = [];
@@ -5549,7 +5551,7 @@ class d_ extends v {
5549
5551
  return r;
5550
5552
  }
5551
5553
  }
5552
- class u_ extends z {
5554
+ class u_ extends U {
5553
5555
  async bulkAdd(e) {
5554
5556
  var l;
5555
5557
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], c = [];
@@ -5612,7 +5614,7 @@ class u_ extends z {
5612
5614
  return this.dispatch(ru(s)), s;
5613
5615
  }
5614
5616
  }
5615
- class l_ extends z {
5617
+ class l_ extends U {
5616
5618
  add(e) {
5617
5619
  var o;
5618
5620
  const { store: s } = this.client, a = (o = s.getState().userReducer.currentUser) == null ? void 0 : o.id, n = F({
@@ -5649,7 +5651,7 @@ class l_ extends z {
5649
5651
  return this.dispatch(mu(s)), s;
5650
5652
  }
5651
5653
  }
5652
- class h_ extends z {
5654
+ class h_ extends U {
5653
5655
  add(e, s) {
5654
5656
  var r;
5655
5657
  const { store: i } = this.client, a = (/* @__PURE__ */ new Date()).toISOString(), n = (r = i.getState().userReducer.currentUser) == null ? void 0 : r.id, c = F({
@@ -5718,7 +5720,7 @@ class h_ extends z {
5718
5720
  return this.dispatch(_u(s)), s;
5719
5721
  }
5720
5722
  }
5721
- class p_ extends z {
5723
+ class p_ extends U {
5722
5724
  async bulkAdd(e) {
5723
5725
  var l;
5724
5726
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], c = [];
@@ -5799,7 +5801,7 @@ class p_ extends z {
5799
5801
  return this.dispatch(Ru(s)), s;
5800
5802
  }
5801
5803
  }
5802
- class m_ extends z {
5804
+ class m_ extends U {
5803
5805
  add(e) {
5804
5806
  var c;
5805
5807
  const { store: s } = this.client, i = s.getState(), a = F({
@@ -5877,7 +5879,7 @@ class m_ extends z {
5877
5879
  return this.dispatch(qu(s)), s;
5878
5880
  }
5879
5881
  }
5880
- class A_ extends z {
5882
+ class A_ extends U {
5881
5883
  async add(e) {
5882
5884
  var h;
5883
5885
  const { store: s } = this.client, { file: i, ...a } = e, n = (/* @__PURE__ */ new Date()).toISOString(), c = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.id, o = a.project, l = await this.getFilePayload(i), r = F({
@@ -6250,7 +6252,7 @@ class g_ extends v {
6250
6252
  submitted_at: a,
6251
6253
  created_by: n
6252
6254
  });
6253
- this.dispatch(Ui(c));
6255
+ this.dispatch(zi(c));
6254
6256
  const o = this.enqueueRequest({
6255
6257
  description: "Create issue",
6256
6258
  method: u.POST,
@@ -6366,7 +6368,7 @@ class g_ extends v {
6366
6368
  blocks: []
6367
6369
  });
6368
6370
  } catch (d) {
6369
- throw this.dispatch(Ui(a)), this.dispatch(Cn(n)), this.dispatch(oh(c)), this.dispatch(Lt(o)), this.dispatch(Dn(r)), d;
6371
+ throw this.dispatch(zi(a)), this.dispatch(Cn(n)), this.dispatch(oh(c)), this.dispatch(Lt(o)), this.dispatch(Dn(r)), d;
6370
6372
  }
6371
6373
  }
6372
6374
  async refreshStore(e) {
@@ -6434,7 +6436,7 @@ class __ extends De {
6434
6436
  return this.dispatch(Ci(i)), i;
6435
6437
  }
6436
6438
  }
6437
- class P_ extends z {
6439
+ class P_ extends U {
6438
6440
  async bulkAdd(e) {
6439
6441
  var l;
6440
6442
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], c = [];
@@ -6479,7 +6481,7 @@ class P_ extends z {
6479
6481
  this.processPresignedUrls(r.presigned_urls), this.dispatch(jl(r.attachments));
6480
6482
  }).catch(() => {
6481
6483
  this.dispatch(
6482
- zl(
6484
+ Ul(
6483
6485
  n.map((r) => r.uuid)
6484
6486
  )
6485
6487
  );
@@ -6536,7 +6538,7 @@ class T_ extends v {
6536
6538
  return this.dispatch(Gl(s)), s;
6537
6539
  }
6538
6540
  }
6539
- class F_ extends z {
6541
+ class F_ extends U {
6540
6542
  async bulkAdd(e) {
6541
6543
  var l;
6542
6544
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], c = [];
@@ -7007,21 +7009,25 @@ class k_ extends v {
7007
7009
  }
7008
7010
  class q_ extends v {
7009
7011
  add(e) {
7010
- const s = F(e);
7011
- this.dispatch(aa(s));
7012
- const i = this.enqueueRequest({
7012
+ var n;
7013
+ const { store: s } = this.client, i = F({
7014
+ ...e,
7015
+ created_by: (n = s.getState().userReducer.currentUser) == null ? void 0 : n.id
7016
+ });
7017
+ this.dispatch(aa(i));
7018
+ const a = this.enqueueRequest({
7013
7019
  description: "Add project access",
7014
7020
  method: u.POST,
7015
7021
  url: "/project-accesses/",
7016
- payload: w(s),
7017
- blockers: [s.organization_access, s.project],
7018
- blocks: [s.uuid]
7022
+ payload: w(i),
7023
+ blockers: [i.organization_access, i.project],
7024
+ blocks: [i.uuid]
7019
7025
  });
7020
- return i.then((a) => {
7021
- this.dispatch(rt(a));
7022
- }).catch((a) => {
7023
- throw this.dispatch(na(s.uuid)), a;
7024
- }), [s, i];
7026
+ return a.then((c) => {
7027
+ this.dispatch(rt(c));
7028
+ }).catch((c) => {
7029
+ throw this.dispatch(na(i.uuid)), c;
7030
+ }), [i, a];
7025
7031
  }
7026
7032
  update(e) {
7027
7033
  const { store: s } = this.client, i = ca(e.uuid)(s.getState()), a = {
@@ -7069,7 +7075,7 @@ class q_ extends v {
7069
7075
  blockers: [],
7070
7076
  blocks: []
7071
7077
  });
7072
- return this.dispatch(zh(s)), s;
7078
+ return this.dispatch(Uh(s)), s;
7073
7079
  }
7074
7080
  }
7075
7081
  class E_ extends De {
@@ -7249,7 +7255,7 @@ class j_ extends v {
7249
7255
  blocks: []
7250
7256
  }), this.dispatch(ha(a.uuid));
7251
7257
  } catch (l) {
7252
- throw this.dispatch(la(a)), this.dispatch(Uh(Object.values(o))), this.dispatch(Qh(n)), this.dispatch(Bh(c)), l;
7258
+ throw this.dispatch(la(a)), this.dispatch(zh(Object.values(o))), this.dispatch(Qh(n)), this.dispatch(Bh(c)), l;
7253
7259
  }
7254
7260
  }
7255
7261
  async refreshStore(e) {
@@ -7266,23 +7272,27 @@ class j_ extends v {
7266
7272
  return this.dispatch(rp(s)), s;
7267
7273
  }
7268
7274
  }
7269
- class z_ extends v {
7275
+ class U_ extends v {
7270
7276
  add(e) {
7271
- const s = F(e);
7272
- this.dispatch(Ap(s));
7273
- const i = this.enqueueRequest({
7277
+ var n;
7278
+ const { store: s } = this.client, i = F({
7279
+ ...e,
7280
+ created_by: (n = s.getState().userReducer.currentUser) == null ? void 0 : n.id
7281
+ });
7282
+ this.dispatch(Ap(i));
7283
+ const a = this.enqueueRequest({
7274
7284
  description: "Create team membership",
7275
7285
  method: u.POST,
7276
7286
  url: "/team-memberships/",
7277
- payload: w(s),
7287
+ payload: w(i),
7278
7288
  blockers: [e.team],
7279
- blocks: [s.uuid]
7289
+ blocks: [i.uuid]
7280
7290
  });
7281
- return i.then((a) => {
7282
- this.dispatch(ma(a));
7291
+ return a.then((c) => {
7292
+ this.dispatch(ma(c));
7283
7293
  }).catch(() => {
7284
- this.dispatch(Aa(s.uuid));
7285
- }), [s, i];
7294
+ this.dispatch(Aa(i.uuid));
7295
+ }), [i, a];
7286
7296
  }
7287
7297
  async delete(e) {
7288
7298
  const { store: s } = this.client, i = s.getState(), a = bp(e)(i);
@@ -7315,28 +7325,28 @@ class z_ extends v {
7315
7325
  return this.dispatch(mp(s)), s;
7316
7326
  }
7317
7327
  }
7318
- class U_ extends v {
7328
+ class z_ extends v {
7319
7329
  add(e) {
7320
- const s = F({
7330
+ var n;
7331
+ const { store: s } = this.client, i = F({
7321
7332
  ...e,
7322
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
7323
- // TODO: uncomment once supported
7324
- // created_by: state.userReducer.currentUser.uuid,
7333
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
7334
+ created_by: (n = s.getState().userReducer.currentUser) == null ? void 0 : n.id
7325
7335
  });
7326
- this.dispatch(gp(s));
7327
- const i = this.enqueueRequest({
7336
+ this.dispatch(gp(i));
7337
+ const a = this.enqueueRequest({
7328
7338
  description: "Create team",
7329
7339
  method: u.POST,
7330
7340
  url: "/teams/",
7331
- payload: w(s),
7341
+ payload: w(i),
7332
7342
  blockers: [],
7333
- blocks: [s.uuid]
7343
+ blocks: [i.uuid]
7334
7344
  });
7335
- return i.then((a) => {
7336
- this.dispatch(ot(a));
7345
+ return a.then((c) => {
7346
+ this.dispatch(ot(c));
7337
7347
  }).catch(() => {
7338
- this.dispatch(ya(s.uuid));
7339
- }), [s, i];
7348
+ this.dispatch(ya(i.uuid));
7349
+ }), [i, a];
7340
7350
  }
7341
7351
  update(e) {
7342
7352
  const { store: s } = this.client, i = ba(e.uuid)(s.getState());
@@ -7623,8 +7633,8 @@ const V_ = (t, e) => {
7623
7633
  var em = /* @__PURE__ */ ((t) => (t[t.USER_REGISTRATION = 0] = "USER_REGISTRATION", t[t.APPLICATION_INVITE = 2] = "APPLICATION_INVITE", t[t.PROJECT_INVITE = 4] = "PROJECT_INVITE", t[t.ORGANIZATION_INVITE = 6] = "ORGANIZATION_INVITE", t[t.ADD_EMAIL_DOMAIN = 8] = "ADD_EMAIL_DOMAIN", t[t.RESET_PASSWORD = 10] = "RESET_PASSWORD", t))(em || {});
7624
7634
  export {
7625
7635
  D as APIError,
7626
- zg as AgentService,
7627
- Ug as AssetAttachmentService,
7636
+ Ug as AgentService,
7637
+ zg as AssetAttachmentService,
7628
7638
  Dg as AssetProcedureAttachmentService,
7629
7639
  Cg as AssetProcedureFieldValuesAttachmentService,
7630
7640
  $g as AssetProcedureFieldValuesService,
@@ -7696,8 +7706,8 @@ export {
7696
7706
  I as RESET_ORGANIZATION_STATE,
7697
7707
  q as RESET_PROJECT_STATE,
7698
7708
  _ as RESET_STATE,
7699
- z_ as TeamMembershipService,
7700
- U_ as TeamService,
7709
+ U_ as TeamMembershipService,
7710
+ z_ as TeamService,
7701
7711
  Ke as UNKNOWN_ERROR_MESSAGE,
7702
7712
  D_ as UserService,
7703
7713
  lt as VERSION_REDUCER_KEY,
@@ -7713,7 +7723,7 @@ export {
7713
7723
  mA as addAssetProcedureFieldValuesAttachment,
7714
7724
  Tt as addAssetProcedureFieldValuesAttachments,
7715
7725
  Kr as addAssetProcedureFieldValuesMany,
7716
- Ur as addAssetProcedureFields,
7726
+ zr as addAssetProcedureFields,
7717
7727
  Xm as addAssetProcedureFieldsAttachment,
7718
7728
  wr as addAssetProcedureFieldsAttachments,
7719
7729
  cA as addAssetProcedureFieldsMany,
@@ -7725,14 +7735,14 @@ export {
7725
7735
  Ot as addAssetProcedureStepFieldValuesAttachments,
7726
7736
  Fo as addAssetProcedureStepFieldValuesMany,
7727
7737
  Ss as addAssetProcedureStepFields,
7728
- UA as addAssetProcedureStepFieldsAttachment,
7738
+ zA as addAssetProcedureStepFieldsAttachment,
7729
7739
  oo as addAssetProcedureStepFieldsAttachments,
7730
7740
  BA as addAssetProcedureStepFieldsMany,
7731
7741
  lf as addAssetProcedureSteps,
7732
7742
  wA as addAssetProcedures,
7733
7743
  Cs as addAssetStage,
7734
- zs as addAssetStageCompletion,
7735
- Us as addAssetStageCompletions,
7744
+ Us as addAssetStageCompletion,
7745
+ zs as addAssetStageCompletions,
7736
7746
  Of as addAssetStages,
7737
7747
  Qs as addAssetType,
7738
7748
  qf as addAssetTypeAttachment,
@@ -7768,7 +7778,7 @@ export {
7768
7778
  Ky as addForms,
7769
7779
  Vu as addGeoImage,
7770
7780
  Cu as addGeoImages,
7771
- Ui as addIssue,
7781
+ zi as addIssue,
7772
7782
  Fi as addIssueAssociation,
7773
7783
  Dn as addIssueAssociations,
7774
7784
  mb as addIssueAttachment,
@@ -7785,7 +7795,7 @@ export {
7785
7795
  Et as addIssueTypeFieldValuesAttachments,
7786
7796
  Bb as addIssueTypeFieldValuesMany,
7787
7797
  Bl as addIssueTypeFields,
7788
- Ub as addIssueTypeFieldsAttachment,
7798
+ zb as addIssueTypeFieldsAttachment,
7789
7799
  Ml as addIssueTypeFieldsAttachments,
7790
7800
  Yb as addIssueTypeFieldsMany,
7791
7801
  uS as addIssueTypes,
@@ -7798,7 +7808,7 @@ export {
7798
7808
  CS as addOrganizations,
7799
7809
  la as addProject,
7800
7810
  aa as addProjectAccess,
7801
- Uh as addProjectAccesses,
7811
+ zh as addProjectAccesses,
7802
7812
  eg as addProjectAttachment,
7803
7813
  $h as addProjectAttachments,
7804
7814
  ag as addProjectFile,
@@ -7818,7 +7828,7 @@ export {
7818
7828
  Ir as assetProcedureAttachmentReducer,
7819
7829
  qa as assetProcedureAttachmentSlice,
7820
7830
  Hr as assetProcedureFieldValuesAttachmentReducer,
7821
- za as assetProcedureFieldValuesAttachmentSlice,
7831
+ Ua as assetProcedureFieldValuesAttachmentSlice,
7822
7832
  Qr as assetProcedureFieldValuesReducer,
7823
7833
  Da as assetProcedureFieldValuesSlice,
7824
7834
  jr as assetProcedureFieldsAttachmentReducer,
@@ -7839,7 +7849,7 @@ export {
7839
7849
  Na as assetProcedureStepFieldsSlice,
7840
7850
  qo as assetProcedureStepReducer,
7841
7851
  Za as assetProcedureStepSlice,
7842
- Uo as assetReducer,
7852
+ zo as assetReducer,
7843
7853
  Qa as assetSlice,
7844
7854
  Co as assetStageCompletionReducer,
7845
7855
  sn as assetStageCompletionSlice,
@@ -7862,7 +7872,7 @@ export {
7862
7872
  Eg as baseReducer,
7863
7873
  gc as baseReducers,
7864
7874
  km as blobToBase64,
7865
- Ud as categoryReducer,
7875
+ zd as categoryReducer,
7866
7876
  yn as categorySlice,
7867
7877
  py as clearTokens,
7868
7878
  wm as constructUploadedFilePayloads,
@@ -7924,7 +7934,7 @@ export {
7924
7934
  $d as deleteDocumentAttachment,
7925
7935
  Gd as deleteDocumentAttachments,
7926
7936
  Xd as deleteEmailDomain,
7927
- zy as deleteEmailDomains,
7937
+ Uy as deleteEmailDomains,
7928
7938
  mi as deleteForm,
7929
7939
  vn as deleteFormRevision,
7930
7940
  $y as deleteFormRevisionAttachment,
@@ -7955,7 +7965,7 @@ export {
7955
7965
  Wb as deleteIssueTypeFieldValuesMany,
7956
7966
  Nl as deleteIssueTypeFields,
7957
7967
  Cb as deleteIssueTypeFieldsAttachment,
7958
- zl as deleteIssueTypeFieldsAttachments,
7968
+ Ul as deleteIssueTypeFieldsAttachments,
7959
7969
  Xb as deleteIssueTypeFieldsMany,
7960
7970
  mS as deleteIssueTypes,
7961
7971
  dh as deleteIssueUpdate,
@@ -7963,7 +7973,7 @@ export {
7963
7973
  _l as deleteIssues,
7964
7974
  GS as deleteOrganization,
7965
7975
  Ph as deleteOrganizationAccess,
7966
- zS as deleteOrganizationAccesses,
7976
+ US as deleteOrganizationAccesses,
7967
7977
  BS as deleteOrganizations,
7968
7978
  ha as deleteProject,
7969
7979
  na as deleteProjectAccess,
@@ -7979,7 +7989,7 @@ export {
7979
7989
  wg as deleteTeams,
7980
7990
  fh as deleteUser,
7981
7991
  IS as deleteUsers,
7982
- Up as dequeue,
7992
+ zp as dequeue,
7983
7993
  qc as discard,
7984
7994
  Hd as documentAttachmentReducer,
7985
7995
  Sn as documentAttachmentSlice,
@@ -7990,10 +8000,10 @@ export {
7990
8000
  su as emailDomainsReducer,
7991
8001
  Pn as emailDomainsSlice,
7992
8002
  xm as emailRegex,
7993
- zp as enqueue,
8003
+ Up as enqueue,
7994
8004
  qh as enqueueRequest,
7995
8005
  b as fallbackToEmptyArray,
7996
- zt as fallbackToEmptyObject,
8006
+ Ut as fallbackToEmptyObject,
7997
8007
  cu as fileReducer,
7998
8008
  Fn as fileSlice,
7999
8009
  tr as fileToBlob,
@@ -8005,10 +8015,10 @@ export {
8005
8015
  wn as formSlice,
8006
8016
  ku as formSubmissionAttachmentReducer,
8007
8017
  kn as formSubmissionAttachmentSlice,
8008
- Uu as formSubmissionReducer,
8018
+ zu as formSubmissionReducer,
8009
8019
  En as formSubmissionSlice,
8010
8020
  Nu as geoImageReducer,
8011
- zn as geoImageSlice,
8021
+ Un as geoImageSlice,
8012
8022
  Im as getFileIdentifier,
8013
8023
  Jt as getFileS3Key,
8014
8024
  Jc as getLocalDateString,
@@ -8021,7 +8031,7 @@ export {
8021
8031
  br as initializeAssetProcedureAttachments,
8022
8032
  Wr as initializeAssetProcedureFieldValues,
8023
8033
  $r as initializeAssetProcedureFieldValuesAttachments,
8024
- zr as initializeAssetProcedureFields,
8034
+ Ur as initializeAssetProcedureFields,
8025
8035
  vr as initializeAssetProcedureFieldsAttachments,
8026
8036
  Xr as initializeAssetProcedureInstances,
8027
8037
  To as initializeAssetProcedureStepFieldValues,
@@ -8063,7 +8073,7 @@ export {
8063
8073
  Sl as initializeIssues,
8064
8074
  gh as initializeOrganizationAccesses,
8065
8075
  Oh as initializeOrganizations,
8066
- zh as initializeProjectAccesses,
8076
+ Uh as initializeProjectAccesses,
8067
8077
  Ch as initializeProjectAttachments,
8068
8078
  Zh as initializeProjectFiles,
8069
8079
  rp as initializeProjects,
@@ -8072,7 +8082,7 @@ export {
8072
8082
  mh as initializeUsers,
8073
8083
  Om as isToday,
8074
8084
  Qu as issueAssociationReducer,
8075
- Un as issueAssociationSlice,
8085
+ zn as issueAssociationSlice,
8076
8086
  cl as issueAttachmentReducer,
8077
8087
  Vn as issueAttachmentSlice,
8078
8088
  Al as issueCommentAttachmentReducer,
@@ -8130,7 +8140,7 @@ export {
8130
8140
  my as selectAccessToken,
8131
8141
  QS as selectAccessesByUserOfProject,
8132
8142
  Ag as selectAccessibleProjects,
8133
- US as selectActiveOrganizationAccess,
8143
+ zS as selectActiveOrganizationAccess,
8134
8144
  og as selectActiveProjectFileId,
8135
8145
  Ld as selectAllDocumentAttachments,
8136
8146
  Wh as selectAllProjectAttachments,
@@ -8146,7 +8156,7 @@ export {
8146
8156
  SA as selectAssetProcedureFieldValuesAttachmentById,
8147
8157
  Br as selectAssetProcedureFieldValuesAttachments,
8148
8158
  Lr as selectAssetProcedureFieldValuesAttachmentsByIds,
8149
- Ua as selectAssetProcedureFieldValuesAttachmentsMapping,
8159
+ za as selectAssetProcedureFieldValuesAttachmentsMapping,
8150
8160
  os as selectAssetProcedureFieldValuesById,
8151
8161
  Zr as selectAssetProcedureFieldValuesMapping,
8152
8162
  PA as selectAssetProcedureFieldValuesOfAsset,
@@ -8189,7 +8199,7 @@ export {
8189
8199
  no as selectAssetProcedures,
8190
8200
  jA as selectAssetProceduresByIds,
8191
8201
  Ba as selectAssetProceduresMapping,
8192
- zA as selectAssetProceduresOfOrganization,
8202
+ UA as selectAssetProceduresOfOrganization,
8193
8203
  Gs as selectAssetStageById,
8194
8204
  $o as selectAssetStageCompletionById,
8195
8205
  an as selectAssetStageCompletionMapping,
@@ -8224,7 +8234,7 @@ export {
8224
8234
  fn as selectAssetTypesMapping,
8225
8235
  ly as selectAssetTypesOfOrganization,
8226
8236
  jo as selectAssets,
8227
- zo as selectAssetsByIds,
8237
+ Uo as selectAssetsByIds,
8228
8238
  en as selectAssetsMapping,
8229
8239
  tn as selectAssetsOfAssetType,
8230
8240
  fr as selectAttachmentsOfAsset,
@@ -8241,11 +8251,11 @@ export {
8241
8251
  wu as selectAttachmentsOfFormSubmission,
8242
8252
  al as selectAttachmentsOfIssue,
8243
8253
  gb as selectAttachmentsOfIssueComment,
8244
- zb as selectAttachmentsOfIssueType,
8254
+ Ub as selectAttachmentsOfIssueType,
8245
8255
  Ql as selectAttachmentsOfIssueTypeFieldValues,
8246
8256
  $b as selectAttachmentsOfIssueTypeFields,
8247
8257
  Yh as selectAttachmentsOfProject,
8248
- zd as selectCategories,
8258
+ Ud as selectCategories,
8249
8259
  _y as selectCategoriesByIds,
8250
8260
  Py as selectCategoriesOfProject,
8251
8261
  ai as selectCategoryById,
@@ -8264,7 +8274,7 @@ export {
8264
8274
  Gt as selectDocumentsMapping,
8265
8275
  tu as selectEmailDomains,
8266
8276
  eu as selectEmailDomainsAsMapping,
8267
- Uy as selectEmailDomainsOfOrganization,
8277
+ zy as selectEmailDomainsOfOrganization,
8268
8278
  TA as selectFieldValuesOfAssetProcedureInstance,
8269
8279
  Ou as selectFormById,
8270
8280
  Tu as selectFormMapping,
@@ -8278,7 +8288,7 @@ export {
8278
8288
  Si as selectFormSubmissionById,
8279
8289
  jn as selectFormSubmissions,
8280
8290
  Mn as selectFormSubmissionsMapping,
8281
- zu as selectFormSubmissionsOfAsset,
8291
+ Uu as selectFormSubmissionsOfAsset,
8282
8292
  Mu as selectFormSubmissionsOfForm,
8283
8293
  ju as selectFormSubmissionsOfIssue,
8284
8294
  Fu as selectForms,
@@ -8320,7 +8330,7 @@ export {
8320
8330
  Ht as selectIssueTypeFields,
8321
8331
  Gb as selectIssueTypeFieldsAttachmentById,
8322
8332
  Dl as selectIssueTypeFieldsAttachments,
8323
- Ul as selectIssueTypeFieldsAttachmentsMapping,
8333
+ zl as selectIssueTypeFieldsAttachmentsMapping,
8324
8334
  iS as selectIssueTypeFieldsById,
8325
8335
  Hl as selectIssueTypeFieldsMapping,
8326
8336
  eS as selectIssueTypeFieldsOfIssueType,
@@ -8423,8 +8433,8 @@ export {
8423
8433
  Zf as setAssetTypeFieldValuesAttachments,
8424
8434
  sy as setAssetTypeFieldValuesMany,
8425
8435
  Gf as setAssetTypeFields,
8426
- zf as setAssetTypeFieldsAttachment,
8427
- Uf as setAssetTypeFieldsAttachments,
8436
+ Uf as setAssetTypeFieldsAttachment,
8437
+ zf as setAssetTypeFieldsAttachments,
8428
8438
  Bf as setAssetTypeFieldsMany,
8429
8439
  cy as setAssetTypes,
8430
8440
  Sf as setAssets,
@@ -8499,7 +8509,7 @@ export {
8499
8509
  TS as setUser,
8500
8510
  PS as setUsers,
8501
8511
  Tm as shallowEqual,
8502
- zm as slugify,
8512
+ Um as slugify,
8503
8513
  jm as spacesToDashesLower,
8504
8514
  fp as teamMembershipReducer,
8505
8515
  fc as teamMembershipSlice,
@@ -8507,7 +8517,7 @@ export {
8507
8517
  bc as teamSlice,
8508
8518
  Mm as toFileNameSafeString,
8509
8519
  ir as toOfflineIdRecord,
8510
- Um as truncate,
8520
+ zm as truncate,
8511
8521
  tt as updateAsset,
8512
8522
  Km as updateAssetAttachment,
8513
8523
  lr as updateAssetAttachments,