@overmap-ai/core 1.0.72-workspace-developments.0 → 1.0.73

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.
@@ -16,6 +16,58 @@ import ua from "jwt-decode";
16
16
  const ha = Object.freeze([]), ma = Object.freeze({});
17
17
  var ai = /* @__PURE__ */ ((t) => (t[t.BASIC = 0] = "BASIC", t[t.ADMIN = 2] = "ADMIN", t))(ai || {}), oi = /* @__PURE__ */ ((t) => (t[t.BASIC = 0] = "BASIC", t[t.ADMIN = 2] = "ADMIN", t))(oi || {}), d = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(d || {}), pa = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(pa || {}), ci = /* @__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))(ci || {}), ri = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(ri || {}), I = /* @__PURE__ */ ((t) => (t.STATUS = "status", t.PRIORITY = "priority", t.CATEGORY = "category", t.DESCRIPTION = "description", t.TITLE = "title", t.ASSIGNED_TO = "assigned_to", t.DUE_DATE = "due_date", t))(I || {}), fa = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(fa || {}), ya = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(ya || {}), Aa = /* @__PURE__ */ ((t) => (t[t.ACTIVE = 0] = "ACTIVE", t[t.PAUSED = 2] = "PAUSED", t[t.CANCELLED = 4] = "CANCELLED", t[t.INACTIVE = 6] = "INACTIVE", t[t.PAST_DUE = 8] = "PAST_DUE", t))(Aa || {});
18
18
  const lu = ri.BACKLOG, uu = ci.MEDIUM, ga = 6e4;
19
+ function w(t) {
20
+ return {
21
+ addOne: (h, m) => {
22
+ const f = t(m.payload);
23
+ h.instances[f] = m.payload;
24
+ },
25
+ addMany: (h, m) => {
26
+ for (const f of m.payload) {
27
+ const b = t(f);
28
+ h.instances[b] = f;
29
+ }
30
+ },
31
+ setOne: (h, m) => {
32
+ const f = t(m.payload);
33
+ h.instances[f] = m.payload;
34
+ },
35
+ setMany: (h, m) => {
36
+ for (const f of m.payload) {
37
+ const b = t(f);
38
+ h.instances[b] = f;
39
+ }
40
+ },
41
+ updateOne: (h, m) => {
42
+ const f = t(m.payload);
43
+ h.instances[f] = m.payload;
44
+ },
45
+ updateMany: (h, m) => {
46
+ for (const f of m.payload) {
47
+ const b = t(f);
48
+ h.instances[b] = f;
49
+ }
50
+ },
51
+ deleteOne: (h, m) => {
52
+ delete h.instances[m.payload];
53
+ },
54
+ deleteMany: (h, m) => {
55
+ for (const f of m.payload)
56
+ delete h.instances[f];
57
+ },
58
+ initialize: (h, m) => {
59
+ h.instances = {};
60
+ for (const f of m.payload) {
61
+ const b = t(f);
62
+ h.instances[b] = f;
63
+ }
64
+ },
65
+ getInitialState: (h) => ({
66
+ ...h,
67
+ instances: {}
68
+ })
69
+ };
70
+ }
19
71
  var ni;
20
72
  ni = Symbol.toStringTag;
21
73
  class ba {
@@ -166,7 +218,7 @@ function Ru(t, e, s, ...i) {
166
218
  function R(t) {
167
219
  return { ...t, offline_id: le() };
168
220
  }
169
- function ka(t) {
221
+ function Ea(t) {
170
222
  const e = {};
171
223
  for (const s of t)
172
224
  e[s.offline_id] = s;
@@ -195,66 +247,13 @@ function Iu(t, e) {
195
247
  return s.slice(0, s.lastIndexOf(" ")) + "…";
196
248
  }
197
249
  const A = (t) => (e) => (s) => t(s, e);
198
- function Ea(t, e, s) {
250
+ function ka(t, e, s) {
199
251
  return s.findIndex((i) => i.offline_id === t.offline_id) === e;
200
252
  }
201
- function ku(t, e, s) {
253
+ function Eu(t, e, s) {
202
254
  return s.findIndex((i) => i.file_sha1 === t.file_sha1) === e;
203
255
  }
204
- const Eu = /^.+@.+\..+$/;
205
- function w(t) {
206
- return {
207
- addOne: (h, m) => {
208
- const f = t(m.payload);
209
- h.instances[f] = m.payload;
210
- },
211
- addMany: (h, m) => {
212
- for (const f of m.payload) {
213
- const b = t(f);
214
- h.instances[b] = f;
215
- }
216
- },
217
- setOne: (h, m) => {
218
- const f = t(m.payload);
219
- h.instances[f] = m.payload;
220
- },
221
- setMany: (h, m) => {
222
- for (const f of m.payload) {
223
- const b = t(f);
224
- h.instances[b] = f;
225
- }
226
- },
227
- updateOne: (h, m) => {
228
- const f = t(m.payload);
229
- h.instances[f] = m.payload;
230
- },
231
- updateMany: (h, m) => {
232
- for (const f of m.payload) {
233
- const b = t(f);
234
- h.instances[b] = f;
235
- }
236
- },
237
- deleteOne: (h, m) => {
238
- delete h.instances[m.payload];
239
- },
240
- deleteMany: (h, m) => {
241
- for (const f of m.payload)
242
- delete h.instances[f];
243
- },
244
- initialize: (h, m) => {
245
- h.instances = {};
246
- for (const f of m.payload) {
247
- const b = t(f);
248
- h.instances[b] = f;
249
- }
250
- },
251
- getInitialState: (h) => ({
252
- ...h,
253
- instances: {}
254
- })
255
- };
256
- }
257
- const _e = w(
256
+ const ku = /^.+@.+\..+$/, _e = w(
258
257
  (t) => t.offline_id
259
258
  ), _t = _e.getInitialState({}), li = _({
260
259
  name: "agents",
@@ -293,10 +292,10 @@ const _e = w(
293
292
  initializeAssetAttachments: Tt,
294
293
  addAssetAttachment: ju,
295
294
  addAssetAttachments: mi,
296
- setAssetAttachment: xa,
295
+ setAssetAttachment: Ca,
297
296
  setAssetAttachments: Pu,
298
297
  updateAssetAttachment: Du,
299
- updateAssetAttachments: Ca,
298
+ updateAssetAttachments: xa,
300
299
  deleteAssetAttachment: Ma,
301
300
  deleteAssetAttachments: pi
302
301
  } = hi.actions, za = (t) => t.assetAttachmentReducer.instances, fi = p(
@@ -307,7 +306,7 @@ const _e = w(
307
306
  [fi, (t, e) => e],
308
307
  (t, e) => g(t.filter(({ asset: s }) => e === s))
309
308
  )
310
- ), xu = A(
309
+ ), Cu = A(
311
310
  p(
312
311
  [fi, (t, e) => e],
313
312
  (t, e) => {
@@ -340,8 +339,8 @@ const _e = w(
340
339
  initializeAssets: Ga,
341
340
  addAsset: wt,
342
341
  addAssets: Ai,
343
- updateAsset: Ee,
344
- updateAssets: Cu,
342
+ updateAsset: ke,
343
+ updateAssets: xu,
345
344
  deleteAsset: Ot,
346
345
  deleteAssets: La,
347
346
  setAsset: Mu,
@@ -374,8 +373,8 @@ const _e = w(
374
373
  }
375
374
  }), {
376
375
  initializeAssetStageCompletions: Wa,
377
- addAssetStageCompletion: kt,
378
- addAssetStageCompletions: Et,
376
+ addAssetStageCompletion: Et,
377
+ addAssetStageCompletions: kt,
379
378
  updateAssetStageCompletion: Ha,
380
379
  updateAssetStageCompletions: Ka,
381
380
  deleteAssetStageCompletion: Ft,
@@ -447,22 +446,22 @@ const _e = w(
447
446
  }
448
447
  return g(s);
449
448
  })
450
- ), x = w(
449
+ ), C = w(
451
450
  (t) => t.offline_id
452
- ), xt = x.getInitialState({}), Ri = _({
451
+ ), Ct = C.getInitialState({}), Ri = _({
453
452
  name: "assetTypeAttachments",
454
- initialState: xt,
455
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xt)),
453
+ initialState: Ct,
454
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ct)),
456
455
  reducers: {
457
- initializeAssetTypeAttachments: x.initialize,
458
- addAssetTypeAttachment: x.addOne,
459
- addAssetTypeAttachments: x.addMany,
460
- setAssetTypeAttachment: x.setOne,
461
- setAssetTypeAttachments: x.setMany,
462
- updateAssetTypeAttachment: x.updateOne,
463
- updateAssetTypeAttachments: x.updateMany,
464
- deleteAssetTypeAttachment: x.deleteOne,
465
- deleteAssetTypeAttachments: x.deleteMany
456
+ initializeAssetTypeAttachments: C.initialize,
457
+ addAssetTypeAttachment: C.addOne,
458
+ addAssetTypeAttachments: C.addMany,
459
+ setAssetTypeAttachment: C.setOne,
460
+ setAssetTypeAttachments: C.setMany,
461
+ updateAssetTypeAttachment: C.updateOne,
462
+ updateAssetTypeAttachments: C.updateMany,
463
+ deleteAssetTypeAttachment: C.deleteOne,
464
+ deleteAssetTypeAttachments: C.deleteMany
466
465
  }
467
466
  }), {
468
467
  initializeAssetTypeAttachments: no,
@@ -496,22 +495,22 @@ const _e = w(
496
495
  return { fileAttachments: i, imageAttachments: n };
497
496
  }
498
497
  )
499
- ), ho = Ri.reducer, C = w(
498
+ ), ho = Ri.reducer, x = w(
500
499
  (t) => t.offline_id
501
- ), Ct = C.getInitialState({}), Ii = _({
500
+ ), xt = x.getInitialState({}), Ii = _({
502
501
  name: "assetTypeFieldsAttachments",
503
- initialState: Ct,
504
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ct)),
502
+ initialState: xt,
503
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xt)),
505
504
  reducers: {
506
- initializeAssetTypeFieldsAttachments: C.initialize,
507
- addAssetTypeFieldsAttachment: C.addOne,
508
- addAssetTypeFieldsAttachments: C.addMany,
509
- setAssetTypeFieldsAttachment: C.setOne,
510
- setAssetTypeFieldsAttachments: C.setMany,
511
- updateAssetTypeFieldsAttachment: C.updateOne,
512
- updateAssetTypeFieldsAttachments: C.updateMany,
513
- deleteAssetTypeFieldsAttachment: C.deleteOne,
514
- deleteAssetTypeFieldsAttachments: C.deleteMany
505
+ initializeAssetTypeFieldsAttachments: x.initialize,
506
+ addAssetTypeFieldsAttachment: x.addOne,
507
+ addAssetTypeFieldsAttachments: x.addMany,
508
+ setAssetTypeFieldsAttachment: x.setOne,
509
+ setAssetTypeFieldsAttachments: x.setMany,
510
+ updateAssetTypeFieldsAttachment: x.updateOne,
511
+ updateAssetTypeFieldsAttachments: x.updateMany,
512
+ deleteAssetTypeFieldsAttachment: x.deleteOne,
513
+ deleteAssetTypeFieldsAttachments: x.deleteMany
515
514
  }
516
515
  }), {
517
516
  initializeAssetTypeFieldsAttachments: mo,
@@ -528,7 +527,7 @@ const _e = w(
528
527
  (t) => Object.values(t)
529
528
  ), th = A(
530
529
  p([go, (t, e) => e], (t, e) => g(t.filter((s) => s.fields_revision === e)))
531
- ), sh = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], bo = Ii.reducer, M = w((t) => t.offline_id), Mt = M.getInitialState({}), ki = _({
530
+ ), sh = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], bo = Ii.reducer, M = w((t) => t.offline_id), Mt = M.getInitialState({}), Ei = _({
532
531
  name: "assetTypeFields",
533
532
  initialState: Mt,
534
533
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Mt)),
@@ -553,13 +552,13 @@ const _e = w(
553
552
  updateAssetTypeFieldsMany: oh,
554
553
  deleteAssetTypeFields: Ro,
555
554
  deleteAssetTypeFieldsMany: ch
556
- } = ki.actions, wo = (t) => t.assetTypeFieldsReducer.instances, ot = p([wo], (t) => Object.values(t)), rh = A(
555
+ } = Ei.actions, wo = (t) => t.assetTypeFieldsReducer.instances, ot = p([wo], (t) => Object.values(t)), rh = A(
557
556
  p([ot, (t, e) => e], (t, e) => g(t.filter((s) => s.asset_type === e)))
558
557
  ), dh = A(
559
558
  p([ot, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
560
- ), lh = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Oo = ki.reducer, z = w(
559
+ ), lh = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Oo = Ei.reducer, z = w(
561
560
  (t) => t.offline_id
562
- ), zt = z.getInitialState({}), Ei = _({
561
+ ), zt = z.getInitialState({}), ki = _({
563
562
  name: "assetTypeFieldValuesAttachments",
564
563
  initialState: zt,
565
564
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zt)),
@@ -584,10 +583,10 @@ const _e = w(
584
583
  updateAssetTypeFieldValuesAttachments: Io,
585
584
  deleteAssetTypeFieldValuesAttachment: fh,
586
585
  deleteAssetTypeFieldValuesAttachments: Ze
587
- } = Ei.actions, Fi = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, ko = p(
586
+ } = ki.actions, Fi = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, Eo = p(
588
587
  [Fi],
589
588
  (t) => Object.values(t)
590
- ), yh = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], Eo = A(
589
+ ), yh = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], ko = A(
591
590
  p(
592
591
  [Fi, (t, e) => e],
593
592
  (t, e) => {
@@ -598,8 +597,8 @@ const _e = w(
598
597
  }
599
598
  )
600
599
  ), Fo = A(
601
- p([ko, (t, e) => e], (t, e) => g(t.filter((s) => s.field_values === e)))
602
- ), qo = Ei.reducer, $ = w(
600
+ p([Eo, (t, e) => e], (t, e) => g(t.filter((s) => s.field_values === e)))
601
+ ), qo = ki.reducer, $ = w(
603
602
  (t) => t.offline_id
604
603
  ), $t = $.getInitialState({}), qi = _({
605
604
  name: "assetTypeFieldValues",
@@ -625,8 +624,8 @@ const _e = w(
625
624
  updateAssetTypeFieldValues: Fe,
626
625
  updateAssetTypeFieldValuesMany: Do,
627
626
  deleteAssetTypeFieldValues: Vt,
628
- deleteAssetTypeFieldValuesMany: xo
629
- } = qi.actions, Co = (t) => t.assetTypeFieldValuesReducer.instances, ji = p([Co], (t) => Object.values(t)), bh = A(
627
+ deleteAssetTypeFieldValuesMany: Co
628
+ } = qi.actions, xo = (t) => t.assetTypeFieldValuesReducer.instances, ji = p([xo], (t) => Object.values(t)), bh = A(
630
629
  p([ji, (t, e) => e], (t, e) => g(t.filter((s) => s.asset === e)))
631
630
  ), _h = A(
632
631
  p(
@@ -697,7 +696,7 @@ const _e = w(
697
696
  e.payload || ct.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
698
697
  }
699
698
  }
700
- }), { setTokens: kh, clearTokens: Eh, setLoggedIn: Uo } = ct.actions, Fh = (t) => t.authReducer.accessToken, qh = (t) => t.authReducer.isLoggedIn, Vo = ct.reducer, Se = w((t) => t.offline_id), Kt = Se.getInitialState({}), xi = _({
699
+ }), { setTokens: Eh, clearTokens: kh, setLoggedIn: Uo } = ct.actions, Fh = (t) => t.authReducer.accessToken, qh = (t) => t.authReducer.isLoggedIn, Vo = ct.reducer, Se = w((t) => t.offline_id), Kt = Se.getInitialState({}), Ci = _({
701
700
  name: "categories",
702
701
  initialState: Kt,
703
702
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Kt)),
@@ -707,9 +706,9 @@ const _e = w(
707
706
  updateCategory: Se.updateOne,
708
707
  deleteCategory: Se.deleteOne
709
708
  }
710
- }), { initializeCategories: Go, addCategory: Yt, updateCategory: Lo, deleteCategory: Bo } = xi.actions, Ci = (t) => t.categoryReducer.instances, jh = p([Ci], (t) => Object.values(t)), Jt = (t) => (e) => e.categoryReducer.instances[t], Ph = A(
709
+ }), { initializeCategories: Go, addCategory: Yt, updateCategory: Lo, deleteCategory: Bo } = Ci.actions, xi = (t) => t.categoryReducer.instances, jh = p([xi], (t) => Object.values(t)), Jt = (t) => (e) => e.categoryReducer.instances[t], Ph = A(
711
710
  p(
712
- [Ci, (t, e) => e],
711
+ [xi, (t, e) => e],
713
712
  (t, e) => {
714
713
  const s = [];
715
714
  for (const i of e) {
@@ -719,7 +718,7 @@ const _e = w(
719
718
  return g(s);
720
719
  }
721
720
  )
722
- ), Dh = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, No = xi.reducer, V = w((t) => t.offline_id), Xt = V.getInitialState({}), Mi = _({
721
+ ), Dh = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, No = Ci.reducer, V = w((t) => t.offline_id), Xt = V.getInitialState({}), Mi = _({
723
722
  name: "documentAttachments",
724
723
  initialState: Xt,
725
724
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Xt)),
@@ -736,10 +735,10 @@ const _e = w(
736
735
  }
737
736
  }), {
738
737
  initializeDocumentAttachments: Wo,
739
- addDocumentAttachment: xh,
738
+ addDocumentAttachment: Ch,
740
739
  addDocumentAttachments: Ho,
741
740
  setDocumentAttachment: Ko,
742
- setDocumentAttachments: Ch,
741
+ setDocumentAttachments: xh,
743
742
  updateDocumentAttachment: Mh,
744
743
  updateDocumentAttachments: Yo,
745
744
  deleteDocumentAttachment: Jo,
@@ -776,9 +775,9 @@ const _e = w(
776
775
  }),
777
776
  reducers: {
778
777
  setDocuments: (t, e) => {
779
- if (e.payload.filter(Ea).length !== e.payload.length)
778
+ if (e.payload.filter(ka).length !== e.payload.length)
780
779
  throw new Error("Tried to use setIssues reducer with duplicate ID's");
781
- t.documents = ka(e.payload);
780
+ t.documents = Ea(e.payload);
782
781
  },
783
782
  addDocuments: (t, e) => {
784
783
  for (const s of e.payload)
@@ -1015,10 +1014,10 @@ const _e = w(
1015
1014
  addFormRevisions: vc,
1016
1015
  deleteFormRevision: Wi,
1017
1016
  deleteFormRevisions: Ic
1018
- } = Bi.actions, rt = (t) => t.formRevisionReducer.instances, kc = p(
1017
+ } = Bi.actions, rt = (t) => t.formRevisionReducer.instances, Ec = p(
1019
1018
  [rt],
1020
1019
  (t) => Object.values(t)
1021
- ), Jh = (t) => (e) => e.formRevisionReducer.instances[t], Ec = (t, e) => {
1020
+ ), Jh = (t) => (e) => e.formRevisionReducer.instances[t], kc = (t, e) => {
1022
1021
  let s = null;
1023
1022
  for (const i of Object.values(t))
1024
1023
  i.form === e && (!s || s.revision < i.revision) && (s = i);
@@ -1037,7 +1036,7 @@ const _e = w(
1037
1036
  )
1038
1037
  ), Fc = A(
1039
1038
  p(
1040
- [kc, (t, e) => e],
1039
+ [Ec, (t, e) => e],
1041
1040
  (t, e) => g(t.filter((s) => s.form === e))
1042
1041
  )
1043
1042
  ), qc = Bi.reducer, oe = w((t) => t.offline_id), ns = oe.getInitialState({}), Hi = _({
@@ -1052,7 +1051,7 @@ const _e = w(
1052
1051
  updateForm: oe.updateOne,
1053
1052
  deleteForm: oe.deleteOne
1054
1053
  }
1055
- }), { initializeForms: jc, setForm: Qh, addForm: as, addForms: Zh, updateForm: em, deleteForm: os } = Hi.actions, Pc = Hi.reducer, Dc = (t) => t.formReducer.instances, tm = p([Dc], (t) => Object.values(t)), xc = (t) => (e) => e.formReducer.instances[t], sm = A(
1054
+ }), { initializeForms: jc, setForm: Qh, addForm: as, addForms: Zh, updateForm: em, deleteForm: os } = Hi.actions, Pc = Hi.reducer, Dc = (t) => t.formReducer.instances, tm = p([Dc], (t) => Object.values(t)), Cc = (t) => (e) => e.formReducer.instances[t], sm = A(
1056
1055
  p(
1057
1056
  [
1058
1057
  (t) => t.formReducer.instances,
@@ -1064,7 +1063,7 @@ const _e = w(
1064
1063
  for (const [r, u] of Object.entries(t)) {
1065
1064
  if (Number.isInteger(a) && a !== u.organization)
1066
1065
  continue;
1067
- Ec(e, r).title.toLowerCase().includes(i.toLowerCase()) && o.push(u);
1066
+ kc(e, r).title.toLowerCase().includes(i.toLowerCase()) && o.push(u);
1068
1067
  }
1069
1068
  return [...o.slice(0, n)];
1070
1069
  },
@@ -1089,7 +1088,7 @@ const _e = w(
1089
1088
  deleteFormSubmissionAttachments: L.deleteMany
1090
1089
  }
1091
1090
  }), {
1092
- initializeFormSubmissionAttachments: Cc,
1091
+ initializeFormSubmissionAttachments: xc,
1093
1092
  addFormSubmissionAttachment: im,
1094
1093
  addFormSubmissionAttachments: et,
1095
1094
  setFormSubmissionAttachment: nm,
@@ -1201,7 +1200,7 @@ const _e = w(
1201
1200
  deleteGeoImage: ms,
1202
1201
  deleteGeoImages: Qc
1203
1202
  } = Zi.actions, Zc = (t) => t.geoImageReducer.instances, er = p([Zc], (t) => Object.values(t)), ps = (t) => (e) => e.geoImageReducer.instances[t], um = A(
1204
- p([er, (t, e) => e], (t, e) => g(t.filter((s) => s.index_workspace === e)))
1203
+ p([er, (t, e) => e], (t, e) => g(t.filter((s) => s.project === e)))
1205
1204
  ), tr = Zi.reducer, W = w((t) => t.offline_id), fs = W.getInitialState({}), en = _({
1206
1205
  name: "issueAssociations",
1207
1206
  initialState: fs,
@@ -1359,13 +1358,13 @@ const _e = w(
1359
1358
  setIssueTypeFieldsAttachment: Om,
1360
1359
  setIssueTypeFieldsAttachments: vm,
1361
1360
  updateIssueTypeFieldsAttachment: Im,
1362
- updateIssueTypeFieldsAttachments: kr,
1363
- deleteIssueTypeFieldsAttachment: km,
1364
- deleteIssueTypeFieldsAttachments: Er
1361
+ updateIssueTypeFieldsAttachments: Er,
1362
+ deleteIssueTypeFieldsAttachment: Em,
1363
+ deleteIssueTypeFieldsAttachments: kr
1365
1364
  } = ln.actions, Fr = (t) => t.issueTypeFieldsAttachmentReducer.instances, qr = p(
1366
1365
  [Fr],
1367
1366
  (t) => Object.values(t)
1368
- ), Em = A(
1367
+ ), km = A(
1369
1368
  p(
1370
1369
  [qr, (t, e) => e],
1371
1370
  (t, e) => g(
@@ -1374,10 +1373,10 @@ const _e = w(
1374
1373
  )
1375
1374
  ), Fm = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], jr = ln.reducer, Y = w(
1376
1375
  (t) => t.offline_id
1377
- ), ks = Y.getInitialState({}), un = _({
1376
+ ), Es = Y.getInitialState({}), un = _({
1378
1377
  name: "issueTypeFieldValues",
1379
- initialState: ks,
1380
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ks)),
1378
+ initialState: Es,
1379
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Es)),
1381
1380
  reducers: {
1382
1381
  initializeIssueTypeFieldValues: Y.initialize,
1383
1382
  addIssueTypeFieldValues: Y.addOne,
@@ -1391,17 +1390,17 @@ const _e = w(
1391
1390
  }
1392
1391
  }), {
1393
1392
  initializeIssueTypeFieldValues: Pr,
1394
- addIssueTypeFieldValues: Es,
1393
+ addIssueTypeFieldValues: ks,
1395
1394
  addIssueTypeFieldValuesMany: qm,
1396
1395
  setIssueTypeFieldValues: jm,
1397
1396
  setIssueTypeFieldValuesMany: Pm,
1398
1397
  updateIssueTypeFieldValues: Pe,
1399
1398
  updateIssueTypeFieldValuesMany: Dm,
1400
1399
  deleteIssueTypeFieldValues: Fs,
1401
- deleteIssueTypeFieldValuesMany: xm
1402
- } = un.actions, Dr = (t) => t.issueTypeFieldValuesReducer.instances, hn = p([Dr], (t) => Object.values(t)), Cm = A(
1400
+ deleteIssueTypeFieldValuesMany: Cm
1401
+ } = un.actions, Dr = (t) => t.issueTypeFieldValuesReducer.instances, hn = p([Dr], (t) => Object.values(t)), xm = A(
1403
1402
  p([hn, (t, e) => e], (t, e) => g(t.filter((s) => s.issue === e)))
1404
- ), qs = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], xr = un.reducer, J = w((t) => t.offline_id), js = J.getInitialState({}), mn = _({
1403
+ ), qs = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Cr = un.reducer, J = w((t) => t.offline_id), js = J.getInitialState({}), mn = _({
1405
1404
  name: "issueTypeFields",
1406
1405
  initialState: js,
1407
1406
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, js)),
@@ -1417,7 +1416,7 @@ const _e = w(
1417
1416
  deleteIssueTypeFieldsMany: J.deleteMany
1418
1417
  }
1419
1418
  }), {
1420
- initializeIssueTypeFields: Cr,
1419
+ initializeIssueTypeFields: xr,
1421
1420
  addIssueTypeFields: Mr,
1422
1421
  addIssueTypeFieldsMany: Mm,
1423
1422
  setIssueTypeFields: zm,
@@ -1498,10 +1497,10 @@ const _e = w(
1498
1497
  updateIssueType: he.updateOne,
1499
1498
  removeIssueType: he.deleteOne
1500
1499
  }
1501
- }), { initializeIssueTypes: Kr, setIssueType: De, addIssueType: Yr, updateIssueType: Jr, removeIssueType: xs } = yn.actions, Xr = (t) => t.issueTypeReducer.instances, Qr = p(
1500
+ }), { initializeIssueTypes: Kr, setIssueType: De, addIssueType: Yr, updateIssueType: Jr, removeIssueType: Cs } = yn.actions, Xr = (t) => t.issueTypeReducer.instances, Qr = p(
1502
1501
  Xr,
1503
1502
  (t) => Object.values(t)
1504
- ), Cs = (t) => (e) => e.issueTypeReducer.instances[t], Qm = (t) => (e) => {
1503
+ ), xs = (t) => (e) => e.issueTypeReducer.instances[t], Qm = (t) => (e) => {
1505
1504
  const s = [];
1506
1505
  for (const i of t) {
1507
1506
  const n = e.issueTypeReducer.instances[i];
@@ -1672,7 +1671,7 @@ const _e = w(
1672
1671
  throw new Error("Accept project invite: user is not in this project");
1673
1672
  }
1674
1673
  }
1675
- }), { setProjects: Od, updateProject: vd, deleteProject: Id, acceptProjectInvite: kd } = vn.actions, Ed = vn.reducer, In = (t) => t.projectReducer.projects, yp = (t) => (e) => e.projectReducer.projects[t], Fd = p(
1674
+ }), { setProjects: Od, updateProject: vd, deleteProject: Id, acceptProjectInvite: Ed } = vn.actions, kd = vn.reducer, In = (t) => t.projectReducer.projects, yp = (t) => (e) => e.projectReducer.projects[t], Fd = p(
1676
1675
  [On],
1677
1676
  (t) => Object.values(t).map((e) => e.user)
1678
1677
  ), qd = p(
@@ -1692,7 +1691,7 @@ const _e = w(
1692
1691
  )
1693
1692
  ), Ls = {
1694
1693
  organizations: {}
1695
- }, kn = _({
1694
+ }, En = _({
1696
1695
  name: "organizations",
1697
1696
  initialState: Ls,
1698
1697
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ls)),
@@ -1702,12 +1701,12 @@ const _e = w(
1702
1701
  t.organizations[s.id] = s;
1703
1702
  }
1704
1703
  }
1705
- }), { setOrganizations: jd } = kn.actions, Pd = (t) => t.organizationReducer.organizations, Dd = p([Pd], (t) => Object.values(t)), gp = (t) => (e) => e.organizationReducer.organizations[t], bp = p(
1704
+ }), { setOrganizations: jd } = En.actions, Pd = (t) => t.organizationReducer.organizations, Dd = p([Pd], (t) => Object.values(t)), gp = (t) => (e) => e.organizationReducer.organizations[t], bp = p(
1706
1705
  [Dd],
1707
1706
  (t) => g(
1708
1707
  Object.values(t).filter((e) => e.has_access)
1709
1708
  )
1710
- ), xd = p(
1709
+ ), Cd = p(
1711
1710
  [Tn],
1712
1711
  (t) => Object.values(t).map((e) => e.user)
1713
1712
  ), _p = A(
@@ -1721,13 +1720,13 @@ const _e = w(
1721
1720
  p([ht, (t, e) => e], (t, e) => g(
1722
1721
  Object.values(t).filter((s) => s.organization_owner === e)
1723
1722
  ))
1724
- ), Cd = p(
1725
- [xd, pt],
1723
+ ), xd = p(
1724
+ [Cd, pt],
1726
1725
  (t, e) => ye(
1727
1726
  t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
1728
1727
  )
1729
1728
  ), Tp = p(
1730
- [mt, Cd, Ad],
1729
+ [mt, xd, Ad],
1731
1730
  (t, e, s) => g(
1732
1731
  Object.values(e).sort((i, n) => {
1733
1732
  if (i.id === (t == null ? void 0 : t.id))
@@ -1738,7 +1737,7 @@ const _e = w(
1738
1737
  return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === oi.ADMIN ? -1 : 1;
1739
1738
  })
1740
1739
  )
1741
- ), Md = kn.reducer, zd = (t, e, s) => {
1740
+ ), Md = En.reducer, zd = (t, e, s) => {
1742
1741
  const i = t.uuid ? t : { ...t, uuid: le() };
1743
1742
  return {
1744
1743
  payload: i,
@@ -1757,7 +1756,7 @@ const _e = w(
1757
1756
  }, Bs = {
1758
1757
  deletedRequests: [],
1759
1758
  latestRetryTime: 0
1760
- }, En = _({
1759
+ }, kn = _({
1761
1760
  name: "outbox",
1762
1761
  initialState: Bs,
1763
1762
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Bs)),
@@ -1784,7 +1783,7 @@ const _e = w(
1784
1783
  t.latestRetryTime = e.payload;
1785
1784
  }
1786
1785
  }
1787
- }), Rp = (t) => t.outboxReducer.deletedRequests, wp = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: $d, markForDeletion: Op, markAsDeleted: Ud, _setLatestRetryTime: Vd } = En.actions, Gd = En.reducer, Q = w((t) => t.offline_id), Ns = Q.getInitialState({}), Fn = _({
1786
+ }), Rp = (t) => t.outboxReducer.deletedRequests, wp = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: $d, markForDeletion: Op, markAsDeleted: Ud, _setLatestRetryTime: Vd } = kn.actions, Gd = kn.reducer, Q = w((t) => t.offline_id), Ns = Q.getInitialState({}), Fn = _({
1788
1787
  name: "projectAttachments",
1789
1788
  initialState: Ns,
1790
1789
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ns)),
@@ -1814,7 +1813,7 @@ const _e = w(
1814
1813
  (t) => Object.values(t)
1815
1814
  ), Jd = (t) => (e) => e.projectAttachmentReducer.instances[t], Xd = A(
1816
1815
  p([jn, (t, e) => e], (t, e) => g(t.filter(({ project: s }) => e === s)))
1817
- ), kp = A(
1816
+ ), Ep = A(
1818
1817
  p(
1819
1818
  [jn, (t, e) => e],
1820
1819
  (t, e) => {
@@ -1870,7 +1869,7 @@ const _e = w(
1870
1869
  }
1871
1870
  }), {
1872
1871
  initializeProjectFiles: Zd,
1873
- setProjectFile: Ep,
1872
+ setProjectFile: kp,
1874
1873
  setProjectFiles: Fp,
1875
1874
  addProjectFile: qp,
1876
1875
  addProjectFiles: el,
@@ -1883,7 +1882,7 @@ const _e = w(
1883
1882
  setActiveProjectFileId: nl,
1884
1883
  saveActiveProjectFileBounds: al,
1885
1884
  resetProjectFileObjectUrls: Pp
1886
- } = Pn.actions, ol = (t) => t.projectFileReducer.instances, cl = p([ol], (t) => g(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Dp = (t) => (e) => e.projectFileReducer.instances[t], xp = (t) => t.projectFileReducer.activeProjectFileId, Cp = (t) => t.projectFileReducer.isImportingProjectFile, rl = Pn.reducer, dl = {
1885
+ } = Pn.actions, ol = (t) => t.projectFileReducer.instances, cl = p([ol], (t) => g(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Dp = (t) => (e) => e.projectFileReducer.instances[t], Cp = (t) => t.projectFileReducer.activeProjectFileId, xp = (t) => t.projectFileReducer.isImportingProjectFile, rl = Pn.reducer, dl = {
1887
1886
  isRehydrated: !1
1888
1887
  }, Dn = _({
1889
1888
  name: "rehydrated",
@@ -1894,7 +1893,7 @@ const _e = w(
1894
1893
  t.isRehydrated = e.payload;
1895
1894
  }
1896
1895
  }
1897
- }), { setRehydrated: Mp } = Dn.actions, zp = (t) => t.rehydratedReducer.isRehydrated, ll = Dn.reducer, me = w((t) => t.offline_id), Ks = me.getInitialState({}), xn = _({
1896
+ }), { setRehydrated: Mp } = Dn.actions, zp = (t) => t.rehydratedReducer.isRehydrated, ll = Dn.reducer, me = w((t) => t.offline_id), Ks = me.getInitialState({}), Cn = _({
1898
1897
  name: "teams",
1899
1898
  initialState: Ks,
1900
1899
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ks)),
@@ -1905,9 +1904,9 @@ const _e = w(
1905
1904
  updateTeam: me.updateOne,
1906
1905
  deleteTeam: me.deleteOne
1907
1906
  }
1908
- }), { setTeam: ge, initializeTeams: ul, addTeam: hl, updateTeam: Ys, deleteTeam: Js } = xn.actions, Cn = (t) => t.teamReducer.instances, Mn = p([Cn], (t) => Object.values(t)), be = (t) => (e) => e.teamReducer.instances[t], $p = A(
1907
+ }), { setTeam: ge, initializeTeams: ul, addTeam: hl, updateTeam: Ys, deleteTeam: Js } = Cn.actions, xn = (t) => t.teamReducer.instances, Mn = p([xn], (t) => Object.values(t)), be = (t) => (e) => e.teamReducer.instances[t], $p = A(
1909
1908
  p(
1910
- [Cn, (t, e) => e],
1909
+ [xn, (t, e) => e],
1911
1910
  (t, e) => {
1912
1911
  const s = [];
1913
1912
  for (const i of e) {
@@ -1924,7 +1923,7 @@ const _e = w(
1924
1923
  )
1925
1924
  ), Vp = A(
1926
1925
  p([Mn, (t, e) => e], (t, e) => g(t.filter((s) => s.members.includes(e))))
1927
- ), ml = xn.reducer, pl = {
1926
+ ), ml = Cn.reducer, pl = {
1928
1927
  version: 0
1929
1928
  }, fl = _({
1930
1929
  name: "versioning",
@@ -1940,7 +1939,7 @@ const _e = w(
1940
1939
  updateWorkspace: pe.updateOne,
1941
1940
  deleteWorkspace: pe.deleteOne
1942
1941
  }
1943
- }), { initializeWorkspaces: gl, setWorkspaces: Gp, addWorkspace: Xs, updateWorkspace: xe, deleteWorkspace: Qs } = zn.actions, $n = (t) => t.workspaceReducer.instances, bl = p([$n], (t) => Object.values(t)), Lp = p(
1942
+ }), { initializeWorkspaces: gl, setWorkspaces: Gp, addWorkspace: Xs, updateWorkspace: Ce, deleteWorkspace: Qs } = zn.actions, $n = (t) => t.workspaceReducer.instances, bl = p([$n], (t) => Object.values(t)), Lp = p(
1944
1943
  [bl],
1945
1944
  (t) => t.find((e) => e.name.toLowerCase() === "main")
1946
1945
  ), Zs = (t) => (e) => e.workspaceReducer.instances[t], Bp = p(
@@ -1997,7 +1996,7 @@ const Bn = "versioning", Nn = () => Hn.length - 1, Wn = (t) => (t[Bn] = { versio
1997
1996
  issueTypeReducer: Zr,
1998
1997
  organizationReducer: Md,
1999
1998
  outboxReducer: Gd,
2000
- projectReducer: Ed,
1999
+ projectReducer: kd,
2001
2000
  projectAttachmentReducer: Qd,
2002
2001
  projectAccessReducer: wd,
2003
2002
  organizationAccessReducer: gd,
@@ -2021,14 +2020,14 @@ const Bn = "versioning", Nn = () => Hn.length - 1, Wn = (t) => (t[Bn] = { versio
2021
2020
  geoImageReducer: tr,
2022
2021
  issueAssociationReducer: rr,
2023
2022
  issueTypeFieldsReducer: Vr,
2024
- issueTypeFieldValuesReducer: xr,
2023
+ issueTypeFieldValuesReducer: Cr,
2025
2024
  issueTypeFieldsAttachmentReducer: jr,
2026
2025
  issueTypeFieldValuesAttachmentReducer: Hr,
2027
2026
  assetTypeFieldsReducer: Oo,
2028
2027
  assetTypeFieldValuesReducer: Mo,
2029
2028
  assetTypeFieldsAttachmentReducer: bo,
2030
2029
  assetTypeFieldValuesAttachmentReducer: qo
2031
- }, ti = sa(Il), kl = "RESET", Np = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? ti(void 0, e) : ti(t, e);
2030
+ }, ti = sa(Il), El = "RESET", Np = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? ti(void 0, e) : ti(t, e);
2032
2031
  let Ne = null;
2033
2032
  function fe() {
2034
2033
  const t = Ie();
@@ -2039,7 +2038,7 @@ function fe() {
2039
2038
  const e = t.getState().offline.outbox, s = Re._fromOutbox(e);
2040
2039
  return Ne = s, s;
2041
2040
  }
2042
- const El = (t) => {
2041
+ const kl = (t) => {
2043
2042
  if (t) throw t;
2044
2043
  const e = Ie();
2045
2044
  e ? e.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }) : console.error("Client store not set");
@@ -2065,7 +2064,7 @@ const Pl = {
2065
2064
  // but redux-offline does not know this.
2066
2065
  discard: Qn,
2067
2066
  returnPromises: !0,
2068
- persistCallback: El,
2067
+ persistCallback: kl,
2069
2068
  retry: Gl,
2070
2069
  // Modify the configuration of the offline store to use localforage
2071
2070
  // which uses IndexedDB by default (persists even on mobile when installed as a PWA, unlike localStorage)
@@ -2081,7 +2080,7 @@ const Pl = {
2081
2080
  peek: (...t) => Vl(...t)
2082
2081
  }
2083
2082
  }, Dl = ca(vl, Kn), Wp = ia(aa(Pl), Dl);
2084
- function xl(t) {
2083
+ function Cl(t) {
2085
2084
  function e(s) {
2086
2085
  return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
2087
2086
  }
@@ -2108,8 +2107,8 @@ async function Yn(t, e) {
2108
2107
  ...o.request
2109
2108
  }, T = o.request;
2110
2109
  let S = T.url;
2111
- const k = h ? await e.files.fetchCache(h) : void 0;
2112
- if (h && !k)
2110
+ const E = h ? await e.files.fetchCache(h) : void 0;
2111
+ if (h && !E)
2113
2112
  throw new Error(`Cannot upload file ${h} because it's not cached.`);
2114
2113
  !m && !S.startsWith("http") && (!S.startsWith("/") && !S.startsWith("blob:") && (S = "/" + S), S = t.meta.offline.effect.BASE_URL + S);
2115
2114
  const ee = (v) => {
@@ -2117,10 +2116,10 @@ async function Yn(t, e) {
2117
2116
  const q = T.s3url;
2118
2117
  if (!q) throw new Error(`No S3 URL for file ${h}`);
2119
2118
  if ("warning" in q) throw new Error(`S3 URL warning for file ${h}`);
2120
- if (!k) throw new Error(`No file for file ${h}`);
2119
+ if (!E) throw new Error(`No file for file ${h}`);
2121
2120
  const Ae = q.fields["x-amz-checksum-sha1"];
2122
2121
  if (!Ae) throw new Error(`No checksum for file ${h}`);
2123
- return v.set("x-amz-checksum-sha1", Ae).field({ ...r, ...q.fields }).attach("file", k);
2122
+ return v.set("x-amz-checksum-sha1", Ae).field({ ...r, ...q.fields }).attach("file", E);
2124
2123
  }
2125
2124
  return v.send(r);
2126
2125
  }, Zn = {
@@ -2151,13 +2150,13 @@ async function Yn(t, e) {
2151
2150
  try {
2152
2151
  return await ie.query(l);
2153
2152
  } catch (v) {
2154
- const q = xl(v), Ae = q == null ? void 0 : q.status;
2153
+ const q = Cl(v), Ae = q == null ? void 0 : q.status;
2155
2154
  if (i && Ae === 401)
2156
2155
  return await s.auth.handleUnauthorized(ie, q), ie.query(l);
2157
- throw new E({ response: q, innerError: v, discard: Xn.includes(Ae) });
2156
+ throw new k({ response: q, innerError: v, discard: Xn.includes(Ae) });
2158
2157
  }
2159
2158
  }
2160
- class Cl {
2159
+ class xl {
2161
2160
  constructor(e) {
2162
2161
  y(this, "_all");
2163
2162
  y(this, "_previous");
@@ -2179,7 +2178,7 @@ class Jn {
2179
2178
  this.next = null;
2180
2179
  }
2181
2180
  then(e) {
2182
- return new Cl(this).then(e);
2181
+ return new xl(this).then(e);
2183
2182
  }
2184
2183
  async run(e) {
2185
2184
  if (this.next)
@@ -2236,11 +2235,11 @@ Retries:`,
2236
2235
  const h = e.meta.offline.rollback;
2237
2236
  throw h && (console.warn("Rolling back request due to SDK error:", e), i.dispatch(h)), t;
2238
2237
  }
2239
- if (t instanceof E && t.options.discard)
2238
+ if (t instanceof k && t.options.discard)
2240
2239
  return console.debug("Discarding request due to explicit discard:", e), r();
2241
2240
  if (a.includes(o))
2242
2241
  return console.debug("Discarding request due to deletion:", e), r();
2243
- if (t instanceof E) {
2242
+ if (t instanceof k) {
2244
2243
  const l = t.status || ((c = t.response) == null ? void 0 : c.status);
2245
2244
  if (l || console.warn("Error has no status code:", t), l !== void 0 && Xn.includes(l)) {
2246
2245
  console.warn("Discarding request due to error:", t, `
@@ -2287,7 +2286,7 @@ function Bl(t, e) {
2287
2286
  else t != null && t.text ? s = t.text : e instanceof Error && (s = e.message);
2288
2287
  return !s || s.length > Ll ? ve : s;
2289
2288
  }
2290
- class E extends Error {
2289
+ class k extends Error {
2291
2290
  constructor(s) {
2292
2291
  super(ve);
2293
2292
  // NOTE: Needs to conform to NetworkError in @redux-offline/redux-offline, which has `status` and `response`.
@@ -2307,7 +2306,7 @@ class Hp {
2307
2306
  }
2308
2307
  async enqueueRequest(e, s, i) {
2309
2308
  return this._enqueueRequest(e, s, i).then((n) => {
2310
- if (n instanceof E)
2309
+ if (n instanceof k)
2311
2310
  throw n;
2312
2311
  return n;
2313
2312
  });
@@ -2344,7 +2343,7 @@ class Hp {
2344
2343
  if (c)
2345
2344
  n.resolve(c.body);
2346
2345
  else {
2347
- const l = new E({
2346
+ const l = new k({
2348
2347
  message: "Could not get a response from the server.",
2349
2348
  response: c,
2350
2349
  discard: !0
@@ -2352,12 +2351,12 @@ class Hp {
2352
2351
  n.reject(l);
2353
2352
  }
2354
2353
  }, u = (c) => {
2355
- c instanceof E ? c.options.discard = !0 : (console.error(
2354
+ c instanceof k ? c.options.discard = !0 : (console.error(
2356
2355
  "Received an unexpected error while processing a request:",
2357
2356
  c,
2358
2357
  `
2359
2358
  Converting error to APIError and discarding.`
2360
- ), c = new E({
2359
+ ), c = new k({
2361
2360
  message: "An error occurred while processing the request.",
2362
2361
  innerError: c,
2363
2362
  discard: !0
@@ -2643,7 +2642,7 @@ class F extends O {
2643
2642
  return await this.client.files.addCache(e, s), i;
2644
2643
  }
2645
2644
  }
2646
- class ke extends F {
2645
+ class Ee extends F {
2647
2646
  async _bulkAdd(e) {
2648
2647
  var c;
2649
2648
  const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = [], o = [], r = {};
@@ -2709,17 +2708,17 @@ class ke extends F {
2709
2708
  }), n;
2710
2709
  }
2711
2710
  }
2712
- class Jp extends ke {
2711
+ class Jp extends Ee {
2713
2712
  constructor() {
2714
2713
  super(...arguments);
2715
2714
  y(this, "name", "Asset Attachment");
2716
2715
  y(this, "url", "/asset-attachments");
2717
2716
  y(this, "initializeAttachments", Tt);
2718
2717
  y(this, "addAttachments", mi);
2719
- y(this, "updateAttachments", Ca);
2718
+ y(this, "updateAttachments", xa);
2720
2719
  y(this, "removeAttachments", pi);
2721
2720
  y(this, "removeAttachment", Ma);
2722
- y(this, "setAttachment", xa);
2721
+ y(this, "setAttachment", Ca);
2723
2722
  y(this, "selectAttachment", $a);
2724
2723
  }
2725
2724
  buildOfflineAttachment(s) {
@@ -2789,7 +2788,7 @@ class Xp extends O {
2789
2788
  blocks: [a.offline_id]
2790
2789
  });
2791
2790
  return o.then((r) => {
2792
- this.dispatch(Ee(r));
2791
+ this.dispatch(ke(r));
2793
2792
  }).catch(() => {
2794
2793
  this.dispatch(Ot(a.offline_id));
2795
2794
  }), [a, o];
@@ -2804,7 +2803,7 @@ class Xp extends O {
2804
2803
  };
2805
2804
  if (!n.canvas_marker && !n.geo_marker)
2806
2805
  throw new Error("Asset must have either a canvas_marker or geo_marker");
2807
- this.dispatch(Ee(n));
2806
+ this.dispatch(ke(n));
2808
2807
  const a = this.enqueueRequest({
2809
2808
  description: "Edit asset",
2810
2809
  method: d.PATCH,
@@ -2814,9 +2813,9 @@ class Xp extends O {
2814
2813
  blocks: [e.offline_id]
2815
2814
  });
2816
2815
  return a.then((o) => {
2817
- this.dispatch(Ee(o));
2816
+ this.dispatch(ke(o));
2818
2817
  }).catch(() => {
2819
- this.dispatch(Ee(i));
2818
+ this.dispatch(ke(i));
2820
2819
  }), [n, a];
2821
2820
  }
2822
2821
  async remove(e) {
@@ -2861,7 +2860,7 @@ class Xp extends O {
2861
2860
  }), u = [];
2862
2861
  let c = null;
2863
2862
  for (const l of r) {
2864
- const { batchId: h, payload: m } = l, f = m.assets.map((k) => k.offline_id), b = [s];
2863
+ const { batchId: h, payload: m } = l, f = m.assets.map((E) => E.offline_id), b = [s];
2865
2864
  c && b.push(c);
2866
2865
  const T = f;
2867
2866
  T.push(h);
@@ -2901,7 +2900,7 @@ class Qp extends O {
2901
2900
  created_by: i,
2902
2901
  submitted_at: n
2903
2902
  });
2904
- this.dispatch(kt(a));
2903
+ this.dispatch(Et(a));
2905
2904
  const o = this.enqueueRequest({
2906
2905
  description: "Add asset stage completion",
2907
2906
  method: d.POST,
@@ -2934,7 +2933,7 @@ class Qp extends O {
2934
2933
  blocks: []
2935
2934
  });
2936
2935
  return n.catch(() => {
2937
- this.dispatch(kt(i));
2936
+ this.dispatch(Et(i));
2938
2937
  }), n;
2939
2938
  }
2940
2939
  bulkAdd(e) {
@@ -2943,7 +2942,7 @@ class Qp extends O {
2943
2942
  created_by: n,
2944
2943
  submitted_at: i
2945
2944
  })), r = o.map(({ offline_id: c }) => c);
2946
- this.dispatch(Et(o));
2945
+ this.dispatch(kt(o));
2947
2946
  const u = this.enqueueRequest({
2948
2947
  description: "Bulk create asset stage completions",
2949
2948
  method: d.POST,
@@ -2975,7 +2974,7 @@ class Qp extends O {
2975
2974
  blocks: []
2976
2975
  });
2977
2976
  return n.catch(() => {
2978
- this.dispatch(Et(i));
2977
+ this.dispatch(kt(i));
2979
2978
  }), n;
2980
2979
  }
2981
2980
  async refreshStore(e) {
@@ -3087,7 +3086,7 @@ class Zp extends O {
3087
3086
  this.dispatch(Qa(s));
3088
3087
  }
3089
3088
  }
3090
- class ef extends ke {
3089
+ class ef extends Ee {
3091
3090
  constructor() {
3092
3091
  super(...arguments);
3093
3092
  y(this, "name", "Asset Type Attachment");
@@ -3246,13 +3245,13 @@ class nf extends F {
3246
3245
  for (const l of a) {
3247
3246
  const h = {}, m = [];
3248
3247
  for (const f of l) {
3249
- const { fieldValuesId: b, fieldIdentifier: T, file: S } = f, k = await this.getFilePayload(S);
3250
- k.sha1 in h || (h[k.sha1] = k);
3248
+ const { fieldValuesId: b, fieldIdentifier: T, file: S } = f, E = await this.getFilePayload(S);
3249
+ E.sha1 in h || (h[E.sha1] = E);
3251
3250
  const ee = R({
3252
3251
  file: URL.createObjectURL(S),
3253
3252
  file_type: S.type,
3254
3253
  file_name: S.name,
3255
- file_sha1: k.sha1,
3254
+ file_sha1: E.sha1,
3256
3255
  created_by: n,
3257
3256
  field_values: b,
3258
3257
  submitted_at: i,
@@ -3262,8 +3261,8 @@ class nf extends F {
3262
3261
  const yt = {
3263
3262
  offline_id: ee.offline_id,
3264
3263
  file_name: S.name,
3265
- file_sha1: k.sha1,
3266
- file_extension: k.extension,
3264
+ file_sha1: E.sha1,
3265
+ file_extension: E.extension,
3267
3266
  field_identifier: T,
3268
3267
  field_values: b
3269
3268
  };
@@ -3300,7 +3299,7 @@ class nf extends F {
3300
3299
  ];
3301
3300
  }
3302
3301
  async bulkDelete(e) {
3303
- const { store: s } = this.client, i = s.getState(), n = Eo(e)(i);
3302
+ const { store: s } = this.client, i = s.getState(), n = ko(e)(i);
3304
3303
  this.dispatch(Ze(e));
3305
3304
  try {
3306
3305
  await this.enqueueRequest({
@@ -3477,7 +3476,7 @@ class of extends O {
3477
3476
  return Promise.all(u).then((l) => {
3478
3477
  this.dispatch(Do(l.flat()));
3479
3478
  }).catch(() => {
3480
- this.dispatch(xo(a.map((l) => l.offline_id)));
3479
+ this.dispatch(Co(a.map((l) => l.offline_id)));
3481
3480
  }), [a, u];
3482
3481
  }
3483
3482
  update(e) {
@@ -3680,7 +3679,7 @@ class rf extends O {
3680
3679
  this.dispatch(Go(s));
3681
3680
  }
3682
3681
  }
3683
- class df extends ke {
3682
+ class df extends Ee {
3684
3683
  constructor() {
3685
3684
  super(...arguments);
3686
3685
  y(this, "name", "Document Attachment");
@@ -3752,8 +3751,8 @@ class df extends ke {
3752
3751
  const b = this.processPresignedUrls(f);
3753
3752
  for (const [T, S] of Object.entries(b))
3754
3753
  S.then(() => {
3755
- const k = c[T];
3756
- for (const ee of k)
3754
+ const E = c[T];
3755
+ for (const ee of E)
3757
3756
  this.makeReadable(ee);
3758
3757
  });
3759
3758
  }).catch(() => {
@@ -3969,7 +3968,7 @@ class hf extends O {
3969
3968
  });
3970
3969
  }
3971
3970
  }
3972
- const Ce = {}, We = /* @__PURE__ */ new Set();
3971
+ const xe = {}, We = /* @__PURE__ */ new Set();
3973
3972
  let Me = 0, He = 0, Ke = 0;
3974
3973
  const Wl = 20;
3975
3974
  class mf extends O {
@@ -4080,7 +4079,7 @@ class mf extends O {
4080
4079
  const l = await Ia(s), h = new File([l], n ?? i, { type: l.type });
4081
4080
  return await this.addCache(h, i), h;
4082
4081
  }
4083
- let r = Ce[a], u = !0;
4082
+ let r = xe[a], u = !0;
4084
4083
  r ? u = !1 : (r = new Promise((l) => {
4085
4084
  this.enqueueRequest({
4086
4085
  description: "Download file",
@@ -4097,12 +4096,12 @@ class mf extends O {
4097
4096
  const m = new File([h], n ?? i, { type: h.type });
4098
4097
  l(m);
4099
4098
  });
4100
- }), Ce[a] = r);
4099
+ }), xe[a] = r);
4101
4100
  let c;
4102
4101
  try {
4103
4102
  c = await r;
4104
4103
  } catch (l) {
4105
- throw u && l instanceof E && delete Ce[a], l;
4104
+ throw u && l instanceof k && delete xe[a], l;
4106
4105
  }
4107
4106
  if (u) {
4108
4107
  const l = await we(c);
@@ -4122,7 +4121,7 @@ class mf extends O {
4122
4121
  const m = n ?? l + "." + h;
4123
4122
  if (c = va(c, m), !c.name)
4124
4123
  throw new Error("Failed to set file's name");
4125
- await this.addCache(c, l), Ce[a] = new Promise((f) => {
4124
+ await this.addCache(c, l), xe[a] = new Promise((f) => {
4126
4125
  f(c);
4127
4126
  });
4128
4127
  }
@@ -4293,7 +4292,7 @@ class Af extends F {
4293
4292
  }), [o, r, u];
4294
4293
  }
4295
4294
  async delete(e) {
4296
- const { store: s } = this.client, i = s.getState(), n = xc(e)(i);
4295
+ const { store: s } = this.client, i = s.getState(), n = Cc(e)(i);
4297
4296
  if (!n)
4298
4297
  throw new Error("Expected form to exist");
4299
4298
  const a = Lc(e)(i);
@@ -4404,13 +4403,13 @@ class gf extends F {
4404
4403
  blockers: [],
4405
4404
  blocks: []
4406
4405
  });
4407
- this.dispatch(Cc(s));
4406
+ this.dispatch(xc(s));
4408
4407
  }
4409
4408
  }
4410
4409
  class bf extends F {
4411
4410
  async add(e) {
4412
4411
  var h;
4413
- const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), o = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.id, r = n.index_workspace, u = await this.getFilePayload(i), c = R({
4412
+ const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), o = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.id, r = n.project, u = await this.getFilePayload(i), c = R({
4414
4413
  ...n,
4415
4414
  file_name: i.name,
4416
4415
  file_sha1: u.sha1,
@@ -4431,14 +4430,14 @@ class bf extends F {
4431
4430
  geo_marker: c.geo_marker,
4432
4431
  canvas_marker: c.canvas_marker,
4433
4432
  sha1: c.file_sha1,
4434
- index_workspace: c.index_workspace,
4433
+ project: c.project,
4435
4434
  file_name: c.file_name,
4436
4435
  direction: c.direction,
4437
4436
  original_date: c.original_date,
4438
4437
  file: u
4439
4438
  },
4440
- blocks: [c.offline_id],
4441
- blockers: [r]
4439
+ blocks: [r.toString()],
4440
+ blockers: [r.toString()]
4442
4441
  });
4443
4442
  return l.then((m) => {
4444
4443
  this.processPresignedUrls(m.presigned_urls), this.dispatch(je(m.geo_image));
@@ -4459,8 +4458,7 @@ class bf extends F {
4459
4458
  file: URL.createObjectURL(f),
4460
4459
  submitted_at: n,
4461
4460
  created_by: a,
4462
- index_workspace: s,
4463
- index: null
4461
+ project: s
4464
4462
  });
4465
4463
  o.push(S), r.push(S.offline_id), u.push({
4466
4464
  offline_id: S.offline_id,
@@ -4481,11 +4479,11 @@ class bf extends F {
4481
4479
  url: "/geo-images/bulk/",
4482
4480
  payload: {
4483
4481
  submitted_at: n,
4484
- index_workspace: s,
4482
+ project: s,
4485
4483
  geo_images: u,
4486
4484
  files: Object.values(c)
4487
4485
  },
4488
- blocks: [s],
4486
+ blocks: [s.toString()],
4489
4487
  blockers: r
4490
4488
  });
4491
4489
  return l.then((m) => {
@@ -4534,10 +4532,7 @@ class bf extends F {
4534
4532
  const s = await this.enqueueRequest({
4535
4533
  description: "Get geo images",
4536
4534
  method: d.GET,
4537
- url: "/geo-images/",
4538
- queryParams: {
4539
- project: e.toString()
4540
- },
4535
+ url: `/projects/${e}/geo-images/`,
4541
4536
  blocks: [e.toString()],
4542
4537
  blockers: []
4543
4538
  });
@@ -4603,7 +4598,7 @@ class _f extends O {
4603
4598
  this.dispatch(sr(s));
4604
4599
  }
4605
4600
  }
4606
- class Sf extends ke {
4601
+ class Sf extends Ee {
4607
4602
  constructor() {
4608
4603
  super(...arguments);
4609
4604
  y(this, "name", "Issue Attachment");
@@ -4906,10 +4901,10 @@ class wf extends F {
4906
4901
  blocks: a.map((c) => c.offline_id)
4907
4902
  });
4908
4903
  return r.then((c) => {
4909
- this.processPresignedUrls(c.presigned_urls), this.dispatch(kr(c.attachments));
4904
+ this.processPresignedUrls(c.presigned_urls), this.dispatch(Er(c.attachments));
4910
4905
  }).catch(() => {
4911
4906
  this.dispatch(
4912
- Er(
4907
+ kr(
4913
4908
  a.map((c) => c.offline_id)
4914
4909
  )
4915
4910
  );
@@ -4963,7 +4958,7 @@ class Of extends O {
4963
4958
  blockers: [],
4964
4959
  blocks: []
4965
4960
  });
4966
- this.dispatch(Cr(s));
4961
+ this.dispatch(xr(s));
4967
4962
  }
4968
4963
  }
4969
4964
  class vf extends F {
@@ -5062,7 +5057,7 @@ class If extends O {
5062
5057
  blockers: [e.issue, e.fields_revision],
5063
5058
  blocks: [n.offline_id]
5064
5059
  });
5065
- return this.dispatch(Es(n)), a.then((r) => (this.dispatch(Pe(r)), r)).catch(() => {
5060
+ return this.dispatch(ks(n)), a.then((r) => (this.dispatch(Pe(r)), r)).catch(() => {
5066
5061
  this.dispatch(Fs(n.offline_id));
5067
5062
  }), [n, a];
5068
5063
  }
@@ -5108,7 +5103,7 @@ class If extends O {
5108
5103
  blocks: []
5109
5104
  });
5110
5105
  } catch (o) {
5111
- throw this.dispatch(Es(n)), this.dispatch(st(a)), o;
5106
+ throw this.dispatch(ks(n)), this.dispatch(st(a)), o;
5112
5107
  }
5113
5108
  }
5114
5109
  async refreshStore(e) {
@@ -5125,7 +5120,7 @@ class If extends O {
5125
5120
  this.dispatch(Pr(s));
5126
5121
  }
5127
5122
  }
5128
- class kf extends O {
5123
+ class Ef extends O {
5129
5124
  add(e) {
5130
5125
  var o;
5131
5126
  const { store: s } = this.client, i = s.getState(), n = R({
@@ -5144,11 +5139,11 @@ class kf extends O {
5144
5139
  return a.then((r) => {
5145
5140
  this.dispatch(De(r));
5146
5141
  }).catch(() => {
5147
- this.dispatch(xs(n.offline_id));
5142
+ this.dispatch(Cs(n.offline_id));
5148
5143
  }), [n, a];
5149
5144
  }
5150
5145
  update(e) {
5151
- const { store: s } = this.client, i = s.getState(), n = Cs(e.offline_id)(i);
5146
+ const { store: s } = this.client, i = s.getState(), n = xs(e.offline_id)(i);
5152
5147
  if (!n)
5153
5148
  throw new Error(`IssueType with offline_id ${e.offline_id} does not exist in the store.`);
5154
5149
  const a = {
@@ -5170,11 +5165,11 @@ class kf extends O {
5170
5165
  }), [a, o];
5171
5166
  }
5172
5167
  delete(e) {
5173
- const { store: s } = this.client, i = s.getState(), n = Cs(e)(i);
5168
+ const { store: s } = this.client, i = s.getState(), n = xs(e)(i);
5174
5169
  if (!n)
5175
5170
  throw new Error(`IssueType with offline_id ${e} does not exist in the store.`);
5176
5171
  const a = An(e)(i);
5177
- this.dispatch(xs(e)), this.dispatch(Rr(a.map((r) => r.offline_id)));
5172
+ this.dispatch(Cs(e)), this.dispatch(Rr(a.map((r) => r.offline_id)));
5178
5173
  const o = this.enqueueRequest({
5179
5174
  method: d.DELETE,
5180
5175
  url: `/issue-types/${e}/`,
@@ -5198,7 +5193,7 @@ class kf extends O {
5198
5193
  this.dispatch(Kr(s));
5199
5194
  }
5200
5195
  }
5201
- class Ef extends O {
5196
+ class kf extends O {
5202
5197
  async refreshStore(e) {
5203
5198
  const s = await this.enqueueRequest({
5204
5199
  description: "Get issue updates",
@@ -5265,7 +5260,7 @@ class Ff extends Hl {
5265
5260
  * Logs the user out
5266
5261
  */
5267
5262
  clearAuth() {
5268
- console.debug(this.constructor.name, "clearing auth;"), this.dispatch(Uo(!1)), this.clearTokens(), this.dispatch({ type: la }), this.dispatch({ type: kl });
5263
+ console.debug(this.constructor.name, "clearing auth;"), this.dispatch(Uo(!1)), this.clearTokens(), this.dispatch({ type: la }), this.dispatch({ type: El });
5269
5264
  }
5270
5265
  /**
5271
5266
  * Attempts to renew tokens
@@ -5306,7 +5301,7 @@ class Ff extends Hl {
5306
5301
  try {
5307
5302
  await this.renewTokens();
5308
5303
  } catch (s) {
5309
- return s instanceof E && this.clearAuth(), s instanceof Error ? Promise.reject(s) : Promise.reject(new Error((s ?? ve).toString()));
5304
+ return s instanceof k && this.clearAuth(), s instanceof Error ? Promise.reject(s) : Promise.reject(new Error((s ?? ve).toString()));
5310
5305
  }
5311
5306
  }
5312
5307
  }
@@ -5314,7 +5309,7 @@ class Ff extends Hl {
5314
5309
  async handleUnauthorized(s, i) {
5315
5310
  const n = this.client.store.getState();
5316
5311
  if (s.url.endsWith("/token/refresh/"))
5317
- throw n.authReducer.isLoggedIn && console.warn("No signed-in user to sign out."), this.clearAuth(), new E({
5312
+ throw n.authReducer.isLoggedIn && console.warn("No signed-in user to sign out."), this.clearAuth(), new k({
5318
5313
  message: "You have been signed out due to inactivity.",
5319
5314
  response: i,
5320
5315
  discard: !0
@@ -5322,7 +5317,7 @@ class Ff extends Hl {
5322
5317
  if (n.authReducer.isLoggedIn)
5323
5318
  await this.renewTokens();
5324
5319
  else
5325
- throw console.debug("Forbidden; user is not logged in."), new E({
5320
+ throw console.debug("Forbidden; user is not logged in."), new k({
5326
5321
  message: "Incorrect username or password.",
5327
5322
  response: i,
5328
5323
  discard: !0
@@ -5567,7 +5562,7 @@ class Df extends O {
5567
5562
  this.dispatch(wn(s));
5568
5563
  }
5569
5564
  }
5570
- class xf extends ke {
5565
+ class Cf extends Ee {
5571
5566
  constructor() {
5572
5567
  super(...arguments);
5573
5568
  y(this, "name", "Project Attachment");
@@ -5617,7 +5612,7 @@ class xf extends ke {
5617
5612
  this.dispatch(Ld(i));
5618
5613
  }
5619
5614
  }
5620
- class Cf extends O {
5615
+ class xf extends O {
5621
5616
  async saveExisting(e) {
5622
5617
  if (!e.offline_id)
5623
5618
  throw new Error(
@@ -5782,7 +5777,7 @@ class Mf extends O {
5782
5777
  blockers: [e.toString()],
5783
5778
  blocks: [e.toString()]
5784
5779
  }).then(() => {
5785
- this.dispatch(kd(e));
5780
+ this.dispatch(Ed(e));
5786
5781
  });
5787
5782
  }
5788
5783
  }
@@ -5937,7 +5932,7 @@ class Uf extends O {
5937
5932
  blocks: [n.offline_id]
5938
5933
  });
5939
5934
  return a.then((r) => {
5940
- this.dispatch(xe(r));
5935
+ this.dispatch(Ce(r));
5941
5936
  }).catch(() => {
5942
5937
  this.dispatch(Qs(n.offline_id));
5943
5938
  }), [n, a];
@@ -5947,7 +5942,7 @@ class Uf extends O {
5947
5942
  if (!i)
5948
5943
  throw new Error(`Expected an existing workspace with offline_id ${e.offline_id}`);
5949
5944
  const n = { ...i, ...e };
5950
- this.dispatch(xe(n));
5945
+ this.dispatch(Ce(n));
5951
5946
  const a = this.enqueueRequest({
5952
5947
  description: "Update Workspace",
5953
5948
  method: d.PATCH,
@@ -5957,9 +5952,9 @@ class Uf extends O {
5957
5952
  blocks: [i.offline_id]
5958
5953
  });
5959
5954
  return a.then((o) => {
5960
- this.dispatch(xe(o));
5955
+ this.dispatch(Ce(o));
5961
5956
  }).catch(() => {
5962
- this.dispatch(xe(i));
5957
+ this.dispatch(Ce(i));
5963
5958
  }), [i, a];
5964
5959
  }
5965
5960
  delete(e) {
@@ -5991,7 +5986,7 @@ class Uf extends O {
5991
5986
  }
5992
5987
  var Jl = /* @__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))(Jl || {});
5993
5988
  export {
5994
- E as APIError,
5989
+ k as APIError,
5995
5990
  Yp as AgentService,
5996
5991
  Jp as AssetAttachmentService,
5997
5992
  Xp as AssetService,
@@ -6034,9 +6029,9 @@ export {
6034
6029
  If as IssueTypeFieldValuesService,
6035
6030
  wf as IssueTypeFieldsAttachmentService,
6036
6031
  Of as IssueTypeFieldsService,
6037
- kf as IssueTypeService,
6032
+ Ef as IssueTypeService,
6038
6033
  I as IssueUpdateChange,
6039
- Ef as IssueUpdateService,
6034
+ kf as IssueUpdateService,
6040
6035
  Ff as JWTService,
6041
6036
  ya as LicenseLevel,
6042
6037
  qf as LicenseService,
@@ -6049,8 +6044,8 @@ export {
6049
6044
  fa as PaddleCheckoutEvent,
6050
6045
  ai as ProjectAccessLevel,
6051
6046
  Df as ProjectAccessService,
6052
- xf as ProjectAttachmentService,
6053
- Cf as ProjectFileService,
6047
+ Cf as ProjectAttachmentService,
6048
+ xf as ProjectFileService,
6054
6049
  Mf as ProjectService,
6055
6050
  zf as TeamService,
6056
6051
  ve as UNKNOWN_ERROR_MESSAGE,
@@ -6058,15 +6053,15 @@ export {
6058
6053
  Kn as VERSION_REDUCER_KEY,
6059
6054
  Jl as VerificationCodeType,
6060
6055
  Uf as WorkspaceService,
6061
- Ec as _selectLatestFormRevision,
6056
+ kc as _selectLatestFormRevision,
6062
6057
  Vd as _setLatestRetryTime,
6063
- kd as acceptProjectInvite,
6058
+ Ed as acceptProjectInvite,
6064
6059
  wt as addAsset,
6065
6060
  ju as addAssetAttachment,
6066
6061
  mi as addAssetAttachments,
6067
6062
  Lu as addAssetStage,
6068
- kt as addAssetStageCompletion,
6069
- Et as addAssetStageCompletions,
6063
+ Et as addAssetStageCompletion,
6064
+ kt as addAssetStageCompletions,
6070
6065
  Je as addAssetStages,
6071
6066
  Bt as addAssetType,
6072
6067
  Wu as addAssetTypeAttachment,
@@ -6083,7 +6078,7 @@ export {
6083
6078
  Ai as addAssets,
6084
6079
  Yt as addCategory,
6085
6080
  qa as addConversation,
6086
- xh as addDocumentAttachment,
6081
+ Ch as addDocumentAttachment,
6087
6082
  Ho as addDocumentAttachments,
6088
6083
  Zt as addDocuments,
6089
6084
  rc as addEmailDomain,
@@ -6107,7 +6102,7 @@ export {
6107
6102
  Ss as addIssueComment,
6108
6103
  _m as addIssueComments,
6109
6104
  Yr as addIssueType,
6110
- Es as addIssueTypeFieldValues,
6105
+ ks as addIssueTypeFieldValues,
6111
6106
  Wm as addIssueTypeFieldValuesAttachment,
6112
6107
  st as addIssueTypeFieldValuesAttachments,
6113
6108
  qm as addIssueTypeFieldValuesMany,
@@ -6140,23 +6135,24 @@ export {
6140
6135
  ho as assetTypeAttachmentReducer,
6141
6136
  Ri as assetTypeAttachmentSlice,
6142
6137
  qo as assetTypeFieldValuesAttachmentReducer,
6143
- Ei as assetTypeFieldValuesAttachmentSlice,
6138
+ ki as assetTypeFieldValuesAttachmentSlice,
6144
6139
  Mo as assetTypeFieldValuesReducer,
6145
6140
  qi as assetTypeFieldValuesSlice,
6146
6141
  bo as assetTypeFieldsAttachmentReducer,
6147
6142
  Ii as assetTypeFieldsAttachmentSlice,
6148
6143
  Oo as assetTypeFieldsReducer,
6149
- ki as assetTypeFieldsSlice,
6144
+ Ei as assetTypeFieldsSlice,
6150
6145
  $o as assetTypeReducer,
6151
6146
  Pi as assetTypeSlice,
6152
6147
  Vo as authReducer,
6153
6148
  ct as authSlice,
6154
6149
  Su as blobToBase64,
6155
6150
  No as categoryReducer,
6156
- xi as categorySlice,
6157
- Eh as clearTokens,
6151
+ Ci as categorySlice,
6152
+ kh as clearTokens,
6158
6153
  _u as constructUploadedFilePayloads,
6159
6154
  pu as coordinatesAreEqual,
6155
+ w as createModelAdapter,
6160
6156
  mu as createMultiPointGeometry,
6161
6157
  zd as createOfflineAction,
6162
6158
  hu as createPointGeometry,
@@ -6173,7 +6169,7 @@ export {
6173
6169
  Vt as deleteAssetTypeFieldValues,
6174
6170
  fh as deleteAssetTypeFieldValuesAttachment,
6175
6171
  Ze as deleteAssetTypeFieldValuesAttachments,
6176
- xo as deleteAssetTypeFieldValuesMany,
6172
+ Co as deleteAssetTypeFieldValuesMany,
6177
6173
  Ro as deleteAssetTypeFields,
6178
6174
  eh as deleteAssetTypeFieldsAttachment,
6179
6175
  yo as deleteAssetTypeFieldsAttachments,
@@ -6205,10 +6201,10 @@ export {
6205
6201
  Fs as deleteIssueTypeFieldValues,
6206
6202
  Jm as deleteIssueTypeFieldValuesAttachment,
6207
6203
  it as deleteIssueTypeFieldValuesAttachments,
6208
- xm as deleteIssueTypeFieldValuesMany,
6204
+ Cm as deleteIssueTypeFieldValuesMany,
6209
6205
  $r as deleteIssueTypeFields,
6210
- km as deleteIssueTypeFieldsAttachment,
6211
- Er as deleteIssueTypeFieldsAttachments,
6206
+ Em as deleteIssueTypeFieldsAttachment,
6207
+ kr as deleteIssueTypeFieldsAttachments,
6212
6208
  Vm as deleteIssueTypeFieldsMany,
6213
6209
  id as deleteIssueUpdate,
6214
6210
  nd as deleteIssueUpdates,
@@ -6233,7 +6229,7 @@ export {
6233
6229
  bu as downloadInMemoryFile,
6234
6230
  hc as emailDomainsReducer,
6235
6231
  Ui as emailDomainsSlice,
6236
- Eu as emailRegex,
6232
+ ku as emailRegex,
6237
6233
  Fl as enqueue,
6238
6234
  $d as enqueueRequest,
6239
6235
  g as fallbackToEmptyArray,
@@ -6277,7 +6273,7 @@ export {
6277
6273
  cc as initializeEmailDomains,
6278
6274
  Ac as initializeFormRevisionAttachments,
6279
6275
  Oc as initializeFormRevisions,
6280
- Cc as initializeFormSubmissionAttachments,
6276
+ xc as initializeFormSubmissionAttachments,
6281
6277
  Vc as initializeFormSubmissions,
6282
6278
  jc as initializeForms,
6283
6279
  Hc as initializeGeoImages,
@@ -6285,7 +6281,7 @@ export {
6285
6281
  dr as initializeIssueAttachments,
6286
6282
  Pr as initializeIssueTypeFieldValues,
6287
6283
  Gr as initializeIssueTypeFieldValuesAttachments,
6288
- Cr as initializeIssueTypeFields,
6284
+ xr as initializeIssueTypeFields,
6289
6285
  vr as initializeIssueTypeFieldsAttachments,
6290
6286
  Kr as initializeIssueTypes,
6291
6287
  ed as initializeIssueUpdates,
@@ -6308,7 +6304,7 @@ export {
6308
6304
  dn as issueSlice,
6309
6305
  Hr as issueTypeFieldValuesAttachmentReducer,
6310
6306
  pn as issueTypeFieldValuesAttachmentSlice,
6311
- xr as issueTypeFieldValuesReducer,
6307
+ Cr as issueTypeFieldValuesReducer,
6312
6308
  un as issueTypeFieldValuesSlice,
6313
6309
  jr as issueTypeFieldsAttachmentReducer,
6314
6310
  ln as issueTypeFieldsAttachmentSlice,
@@ -6326,14 +6322,14 @@ export {
6326
6322
  di as memoize,
6327
6323
  sc as moveDocument,
6328
6324
  R as offline,
6329
- ku as onlyUniqueHashes,
6330
- Ea as onlyUniqueOfflineIds,
6325
+ Eu as onlyUniqueHashes,
6326
+ ka as onlyUniqueOfflineIds,
6331
6327
  gd as organizationAccessReducer,
6332
6328
  Sn as organizationAccessSlice,
6333
6329
  Md as organizationReducer,
6334
- kn as organizationSlice,
6330
+ En as organizationSlice,
6335
6331
  Gd as outboxReducer,
6336
- En as outboxSlice,
6332
+ kn as outboxSlice,
6337
6333
  Wp as overmapEnhancer,
6338
6334
  Il as overmapReducers,
6339
6335
  Np as overmapRootReducer,
@@ -6344,20 +6340,20 @@ export {
6344
6340
  Fn as projectAttachmentSlice,
6345
6341
  rl as projectFileReducer,
6346
6342
  Pn as projectFileSlice,
6347
- Ed as projectReducer,
6343
+ kd as projectReducer,
6348
6344
  vn as projectSlice,
6349
6345
  ll as rehydratedReducer,
6350
6346
  Dn as rehydratedSlice,
6351
6347
  es as removeDocuments,
6352
- xs as removeIssueType,
6348
+ Cs as removeIssueType,
6353
6349
  hd as removeUser,
6354
6350
  Pp as resetProjectFileObjectUrls,
6355
- kl as resetStore,
6351
+ El as resetStore,
6356
6352
  A as restructureCreateSelectorWithArgs,
6357
6353
  al as saveActiveProjectFileBounds,
6358
6354
  Fh as selectAccessToken,
6359
6355
  hp as selectActiveOrganizationAccess,
6360
- xp as selectActiveProjectFileId,
6356
+ Cp as selectActiveProjectFileId,
6361
6357
  np as selectActiveStatusLicenses,
6362
6358
  zi as selectAllDocumentAttachments,
6363
6359
  jn as selectAllProjectAttachments,
@@ -6378,11 +6374,11 @@ export {
6378
6374
  Wt as selectAssetTypeById,
6379
6375
  ji as selectAssetTypeFieldValues,
6380
6376
  yh as selectAssetTypeFieldValuesAttachmentById,
6381
- ko as selectAssetTypeFieldValuesAttachments,
6382
- Eo as selectAssetTypeFieldValuesAttachmentsByIds,
6377
+ Eo as selectAssetTypeFieldValuesAttachments,
6378
+ ko as selectAssetTypeFieldValuesAttachmentsByIds,
6383
6379
  Fi as selectAssetTypeFieldValuesAttachmentsMapping,
6384
6380
  Gt as selectAssetTypeFieldValuesById,
6385
- Co as selectAssetTypeFieldValuesMapping,
6381
+ xo as selectAssetTypeFieldValuesMapping,
6386
6382
  bh as selectAssetTypeFieldValuesOfAsset,
6387
6383
  ot as selectAssetTypeFields,
6388
6384
  sh as selectAssetTypeFieldsAttachmentById,
@@ -6401,7 +6397,7 @@ export {
6401
6397
  gi as selectAssetsMapping,
6402
6398
  bi as selectAssetsOfAssetType,
6403
6399
  Ua as selectAttachmentsOfAsset,
6404
- xu as selectAttachmentsOfAssetByType,
6400
+ Cu as selectAttachmentsOfAssetByType,
6405
6401
  uo as selectAttachmentsOfAssetType,
6406
6402
  Yu as selectAttachmentsOfAssetTypeByType,
6407
6403
  Fo as selectAttachmentsOfAssetTypeFieldValues,
@@ -6413,13 +6409,13 @@ export {
6413
6409
  pr as selectAttachmentsOfIssue,
6414
6410
  bm as selectAttachmentsOfIssueByType,
6415
6411
  Wr as selectAttachmentsOfIssueTypeFieldValues,
6416
- Em as selectAttachmentsOfIssueTypeFields,
6412
+ km as selectAttachmentsOfIssueTypeFields,
6417
6413
  Xd as selectAttachmentsOfProject,
6418
- kp as selectAttachmentsOfProjectByType,
6414
+ Ep as selectAttachmentsOfProjectByType,
6419
6415
  jh as selectCategories,
6420
6416
  Ph as selectCategoriesByIds,
6421
6417
  Jt as selectCategoryById,
6422
- Ci as selectCategoryMapping,
6418
+ xi as selectCategoryMapping,
6423
6419
  Tm as selectCommentsOfIssue,
6424
6420
  Vu as selectCompletedStagesByAsset,
6425
6421
  qu as selectConversation,
@@ -6437,12 +6433,12 @@ export {
6437
6433
  lc as selectEmailDomainsAsMapping,
6438
6434
  Lh as selectEmailDomainsOfOrganization,
6439
6435
  sm as selectFilteredForms,
6440
- xc as selectFormById,
6436
+ Cc as selectFormById,
6441
6437
  Dc as selectFormMapping,
6442
6438
  Sc as selectFormRevisionAttachmentsMapping,
6443
6439
  Jh as selectFormRevisionById,
6444
6440
  rt as selectFormRevisionMapping,
6445
- kc as selectFormRevisions,
6441
+ Ec as selectFormRevisions,
6446
6442
  Fc as selectFormRevisionsOfForm,
6447
6443
  zc as selectFormSubmissionAttachemntsByIds,
6448
6444
  Yi as selectFormSubmissionAttachmentsMapping,
@@ -6456,8 +6452,8 @@ export {
6456
6452
  ps as selectGeoImageById,
6457
6453
  Zc as selectGeoImageMapping,
6458
6454
  er as selectGeoImages,
6459
- um as selectGeoImagesOfWorkspace,
6460
- Cp as selectIsImportingProjectFile,
6455
+ um as selectGeoImagesOfProject,
6456
+ xp as selectIsImportingProjectFile,
6461
6457
  qh as selectIsLoggedIn,
6462
6458
  nr as selectIssueAssociationById,
6463
6459
  Ve as selectIssueAssociationMapping,
@@ -6473,7 +6469,7 @@ export {
6473
6469
  gr as selectIssueCommentMapping,
6474
6470
  Dh as selectIssueCountOfCategory,
6475
6471
  wr as selectIssueMapping,
6476
- Cs as selectIssueTypeById,
6472
+ xs as selectIssueTypeById,
6477
6473
  hn as selectIssueTypeFieldValues,
6478
6474
  Xm as selectIssueTypeFieldValuesAttachmentById,
6479
6475
  Br as selectIssueTypeFieldValuesAttachments,
@@ -6481,7 +6477,7 @@ export {
6481
6477
  fn as selectIssueTypeFieldValuesAttachmentsMapping,
6482
6478
  qs as selectIssueTypeFieldValuesById,
6483
6479
  Dr as selectIssueTypeFieldValuesMapping,
6484
- Cm as selectIssueTypeFieldValuesOfIssue,
6480
+ xm as selectIssueTypeFieldValuesOfIssue,
6485
6481
  ut as selectIssueTypeFields,
6486
6482
  Fm as selectIssueTypeFieldsAttachmentById,
6487
6483
  qr as selectIssueTypeFieldsAttachments,
@@ -6515,8 +6511,8 @@ export {
6515
6511
  Ad as selectOrganizationAccessUserMapping,
6516
6512
  Tn as selectOrganizationAccesses,
6517
6513
  gp as selectOrganizationById,
6518
- Cd as selectOrganizationUsersAsMapping,
6519
- xd as selectOrganizationUsersIds,
6514
+ xd as selectOrganizationUsersAsMapping,
6515
+ Cd as selectOrganizationUsersIds,
6520
6516
  Dd as selectOrganizations,
6521
6517
  Pd as selectOrganizationsMapping,
6522
6518
  bp as selectOrganizationsWithAccess,
@@ -6545,7 +6541,7 @@ export {
6545
6541
  be as selectTeamById,
6546
6542
  Mn as selectTeams,
6547
6543
  $p as selectTeamsByIds,
6548
- Cn as selectTeamsMapping,
6544
+ xn as selectTeamsMapping,
6549
6545
  Up as selectTeamsOfOrganization,
6550
6546
  Vp as selectTeamsOfUser,
6551
6547
  fc as selectUploadUrl,
@@ -6559,7 +6555,7 @@ export {
6559
6555
  yf as separateImageFromFields,
6560
6556
  nl as setActiveProjectFileId,
6561
6557
  Mu as setAsset,
6562
- xa as setAssetAttachment,
6558
+ Ca as setAssetAttachment,
6563
6559
  Pu as setAssetAttachments,
6564
6560
  Za as setAssetStage,
6565
6561
  Gu as setAssetStages,
@@ -6579,7 +6575,7 @@ export {
6579
6575
  ja as setConversation,
6580
6576
  op as setCurrentUser,
6581
6577
  Ko as setDocumentAttachment,
6582
- Ch as setDocumentAttachments,
6578
+ xh as setDocumentAttachments,
6583
6579
  tc as setDocuments,
6584
6580
  Qh as setForm,
6585
6581
  wc as setFormRevision,
@@ -6613,12 +6609,12 @@ export {
6613
6609
  cp as setProfilePicture,
6614
6610
  Nd as setProjectAttachment,
6615
6611
  Wd as setProjectAttachments,
6616
- Ep as setProjectFile,
6612
+ kp as setProjectFile,
6617
6613
  Fp as setProjectFiles,
6618
6614
  Od as setProjects,
6619
6615
  Mp as setRehydrated,
6620
6616
  ge as setTeam,
6621
- kh as setTokens,
6617
+ Eh as setTokens,
6622
6618
  pc as setUploadUrl,
6623
6619
  ud as setUsers,
6624
6620
  Gp as setWorkspaces,
@@ -6626,13 +6622,13 @@ export {
6626
6622
  vu as slugify,
6627
6623
  Ou as spacesToDashesLower,
6628
6624
  ml as teamReducer,
6629
- xn as teamSlice,
6625
+ Cn as teamSlice,
6630
6626
  wu as toFileNameSafeString,
6631
- ka as toOfflineIdRecord,
6627
+ Ea as toOfflineIdRecord,
6632
6628
  Iu as truncate,
6633
- Ee as updateAsset,
6629
+ ke as updateAsset,
6634
6630
  Du as updateAssetAttachment,
6635
- Ca as updateAssetAttachments,
6631
+ xa as updateAssetAttachments,
6636
6632
  Pt as updateAssetStage,
6637
6633
  Ha as updateAssetStageCompletion,
6638
6634
  Ka as updateAssetStageCompletions,
@@ -6649,7 +6645,7 @@ export {
6649
6645
  fo as updateAssetTypeFieldsAttachments,
6650
6646
  oh as updateAssetTypeFieldsMany,
6651
6647
  wh as updateAssetTypes,
6652
- Cu as updateAssets,
6648
+ xu as updateAssets,
6653
6649
  Lo as updateCategory,
6654
6650
  Pa as updateConversation,
6655
6651
  Mh as updateDocumentAttachment,
@@ -6676,7 +6672,7 @@ export {
6676
6672
  Dm as updateIssueTypeFieldValuesMany,
6677
6673
  zr as updateIssueTypeFields,
6678
6674
  Im as updateIssueTypeFieldsAttachment,
6679
- kr as updateIssueTypeFieldsAttachments,
6675
+ Er as updateIssueTypeFieldsAttachments,
6680
6676
  Um as updateIssueTypeFieldsMany,
6681
6677
  se as updateLicense,
6682
6678
  fd as updateOrganizationAccess,
@@ -6687,7 +6683,7 @@ export {
6687
6683
  Hs as updateProjectFile,
6688
6684
  jp as updateProjectFiles,
6689
6685
  Ys as updateTeam,
6690
- xe as updateWorkspace,
6686
+ Ce as updateWorkspace,
6691
6687
  md as userReducer,
6692
6688
  _n as userSlice,
6693
6689
  yl as versioningReducer,