@overmap-ai/core 1.0.74-remove-workspaces.0 → 1.0.75-more-clean-ups.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.
@@ -1,21 +1,21 @@
1
- var Wn = Object.defineProperty;
2
- var Kn = (t, e, s) => e in t ? Wn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var y = (t, e, s) => Kn(t, typeof e != "symbol" ? e + "" : e, s);
1
+ var Hn = Object.defineProperty;
2
+ var Wn = (t, e, s) => e in t ? Hn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
+ var y = (t, e, s) => Wn(t, typeof e != "symbol" ? e + "" : e, s);
4
4
  import { v4 as le } from "uuid";
5
- import { createSlice as _, createSelector as p, combineReducers as Yn, compose as Jn } from "@reduxjs/toolkit";
6
- import { saveAs as Xn } from "file-saver";
7
- import { offline as Qn } from "@redux-offline/redux-offline";
8
- import ft from "@redux-offline/redux-offline/lib/defaults";
9
- import Zn from "localforage";
10
- import ea from "redux-persist-migrate";
5
+ import { createSlice as _, createSelector as p, combineReducers as Kn, compose as Yn } from "@reduxjs/toolkit";
6
+ import { saveAs as Jn } from "file-saver";
7
+ import { offline as Xn } from "@redux-offline/redux-offline";
8
+ import yt from "@redux-offline/redux-offline/lib/defaults";
9
+ import Qn from "localforage";
10
+ import Zn from "redux-persist-migrate";
11
11
  import ue from "superagent";
12
- import { DepGraph as ta } from "dependency-graph";
13
- import { openDB as sa } from "idb";
14
- import { RESET_STATE as ia } from "@redux-offline/redux-offline/lib/constants";
15
- import na from "jwt-decode";
16
- const aa = Object.freeze([]), oa = Object.freeze({});
17
- var ei = /* @__PURE__ */ ((t) => (t[t.BASIC = 0] = "BASIC", t[t.ADMIN = 2] = "ADMIN", t))(ei || {}), ti = /* @__PURE__ */ ((t) => (t[t.BASIC = 0] = "BASIC", t[t.ADMIN = 2] = "ADMIN", t))(ti || {}), d = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(d || {}), ca = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(ca || {}), si = /* @__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))(si || {}), ii = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(ii || {}), 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 || {}), ra = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(ra || {}), da = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(da || {}), la = /* @__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))(la || {});
18
- const Zl = ii.BACKLOG, eu = si.MEDIUM, ua = 6e4;
12
+ import { DepGraph as ea } from "dependency-graph";
13
+ import { openDB as ta } from "idb";
14
+ import { RESET_STATE as sa } from "@redux-offline/redux-offline/lib/constants";
15
+ import ia from "jwt-decode";
16
+ const na = Object.freeze([]), aa = Object.freeze({});
17
+ var ei = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(ei || {}), ti = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(ti || {}), d = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(d || {}), oa = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(oa || {}), si = /* @__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))(si || {}), ii = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(ii || {}), 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 || {}), ca = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(ca || {}), ra = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(ra || {}), da = /* @__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))(da || {});
18
+ const Zl = ii.BACKLOG, eu = si.MEDIUM, la = 6e4;
19
19
  function O(t) {
20
20
  return {
21
21
  addOne: (h, m) => {
@@ -70,7 +70,7 @@ function O(t) {
70
70
  }
71
71
  var Zs;
72
72
  Zs = Symbol.toStringTag;
73
- class ha {
73
+ class ua {
74
74
  constructor() {
75
75
  y(this, Zs, "Promise");
76
76
  y(this, "_promise");
@@ -110,9 +110,9 @@ const tu = (t) => ({
110
110
  coordinates: t
111
111
  }), iu = (t, e) => t[0] === e[0] && t[1] === e[1];
112
112
  let We = !1;
113
- const ma = "";
114
- ["true", "1"].includes(ma.toLowerCase()) && (We = !0);
115
- function pa(t, e) {
113
+ const ha = "";
114
+ ["true", "1"].includes(ha.toLowerCase()) && (We = !0);
115
+ function ma(t, e) {
116
116
  if (t === e) return !0;
117
117
  if (typeof t != typeof e)
118
118
  return !1;
@@ -138,18 +138,18 @@ function nu(t, e) {
138
138
  if (t[s] !== e[s]) return !1;
139
139
  return !0;
140
140
  }
141
- const g = (t) => t.length === 0 ? aa : t, fe = (t) => Object.keys(t).length === 0 ? oa : t, fa = ni((t) => {
141
+ const g = (t) => t.length === 0 ? na : t, fe = (t) => Object.keys(t).length === 0 ? aa : t, pa = ni((t) => {
142
142
  if (!t) return "";
143
143
  const e = new Date(t), s = e.getFullYear() === st.getFullYear(), i = { day: "numeric", month: "short" };
144
144
  return s || (i.year = "numeric"), e.toLocaleDateString([], i);
145
- }), ya = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), Aa = 1e3 * 86400, st = /* @__PURE__ */ new Date(), au = (t) => new Date(t).toDateString() === st.toDateString(), ou = ni((t, e, s) => {
146
- const i = Math.round((new Date(t).getTime() - st.getTime()) / Aa);
147
- return i < e || i > s ? fa(t) : ya.format(i, "days");
145
+ }), fa = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), ya = 1e3 * 86400, st = /* @__PURE__ */ new Date(), au = (t) => new Date(t).toDateString() === st.toDateString(), ou = ni((t, e, s) => {
146
+ const i = Math.round((new Date(t).getTime() - st.getTime()) / ya);
147
+ return i < e || i > s ? pa(t) : fa.format(i, "days");
148
148
  });
149
- function ga(t) {
149
+ function Aa(t) {
150
150
  return new Uint8Array(t).reduce((s, i) => s + i.toString(16).padStart(2, "0"), "");
151
151
  }
152
- const yt = async (t, e) => {
152
+ const At = async (t, e) => {
153
153
  e || (e = await Re(t));
154
154
  let s = t.type;
155
155
  if (s.includes("/") && (s = s.split("/")[1]), !s)
@@ -166,7 +166,7 @@ function Re(t) {
166
166
  return;
167
167
  }
168
168
  crypto.subtle.digest("SHA-1", n).then((a) => {
169
- const o = ga(a);
169
+ const o = Aa(a);
170
170
  e(o);
171
171
  });
172
172
  }, i.readAsArrayBuffer(t);
@@ -179,7 +179,7 @@ function cu(t) {
179
179
  }
180
180
  return `${t.name}&${t.type}${t.size}`;
181
181
  }
182
- function ba(t, e) {
182
+ function ga(t, e) {
183
183
  return new File([t], e, { type: t.type });
184
184
  }
185
185
  function ru(t, e) {
@@ -198,7 +198,7 @@ const du = async (t) => {
198
198
  };
199
199
  }
200
200
  return Object.values(e);
201
- }, _a = async (t) => (await fetch(t)).blob(), lu = (t) => new Promise((e, s) => {
201
+ }, ba = async (t) => (await fetch(t)).blob(), lu = (t) => new Promise((e, s) => {
202
202
  const i = new FileReader();
203
203
  i.onloadend = () => {
204
204
  var n;
@@ -207,18 +207,18 @@ const du = async (t) => {
207
207
  });
208
208
  function uu(t) {
209
209
  const e = new Blob([t]);
210
- Xn(e, t.name);
210
+ Jn(e, t.name);
211
211
  }
212
- const At = {};
212
+ const gt = {};
213
213
  function hu(t, e, s, ...i) {
214
- const n = At[t];
214
+ const n = gt[t];
215
215
  let a = !1;
216
- n ? n[e] || (n[e] = !0, a = !0) : (At[t] = { [e]: !0 }, a = !0), a && console[s](...i);
216
+ n ? n[e] || (n[e] = !0, a = !0) : (gt[t] = { [e]: !0 }, a = !0), a && console[s](...i);
217
217
  }
218
218
  function R(t) {
219
219
  return { ...t, offline_id: le() };
220
220
  }
221
- function Sa(t) {
221
+ function _a(t) {
222
222
  const e = {};
223
223
  for (const s of t)
224
224
  e[s.offline_id] = s;
@@ -247,7 +247,7 @@ function yu(t, e) {
247
247
  return s.slice(0, s.lastIndexOf(" ")) + "…";
248
248
  }
249
249
  const A = (t) => (e) => (s) => t(s, e);
250
- function Ta(t, e, s) {
250
+ function Sa(t, e, s) {
251
251
  return s.findIndex((i) => i.offline_id === t.offline_id) === e;
252
252
  }
253
253
  function Au(t, e, s) {
@@ -255,17 +255,17 @@ function Au(t, e, s) {
255
255
  }
256
256
  const gu = /^.+@.+\..+$/, be = O(
257
257
  (t) => t.offline_id
258
- ), gt = be.getInitialState({}), ai = _({
258
+ ), bt = be.getInitialState({}), ai = _({
259
259
  name: "agents",
260
- initialState: gt,
261
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, gt)),
260
+ initialState: bt,
261
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, bt)),
262
262
  reducers: {
263
263
  initializeConversations: be.initialize,
264
264
  addConversation: be.addOne,
265
265
  setConversation: be.setOne,
266
266
  updateConversation: be.updateOne
267
267
  }
268
- }), { initializeConversations: Ra, addConversation: Oa, setConversation: wa, updateConversation: va } = ai.actions, oi = (t) => t.agentsReducer.instances, bu = p(
268
+ }), { initializeConversations: Ta, addConversation: Ra, setConversation: Oa, updateConversation: wa } = ai.actions, oi = (t) => t.agentsReducer.instances, bu = p(
269
269
  [oi],
270
270
  (t) => Object.values(t)
271
271
  ), _u = A(
@@ -273,10 +273,10 @@ const gu = /^.+@.+\..+$/, be = O(
273
273
  [oi, (t, e) => e],
274
274
  (t, e) => t[e]
275
275
  )
276
- ), Ia = ai.reducer, j = O((t) => t.offline_id), bt = j.getInitialState({}), ci = _({
276
+ ), va = ai.reducer, j = O((t) => t.offline_id), _t = j.getInitialState({}), ci = _({
277
277
  name: "assetAttachments",
278
- initialState: bt,
279
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, bt)),
278
+ initialState: _t,
279
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, _t)),
280
280
  reducers: {
281
281
  initializeAssetAttachments: j.initialize,
282
282
  addAssetAttachment: j.addOne,
@@ -289,19 +289,19 @@ const gu = /^.+@.+\..+$/, be = O(
289
289
  deleteAssetAttachments: j.deleteMany
290
290
  }
291
291
  }), {
292
- initializeAssetAttachments: _t,
292
+ initializeAssetAttachments: St,
293
293
  addAssetAttachment: Su,
294
294
  addAssetAttachments: ri,
295
- setAssetAttachment: Ea,
295
+ setAssetAttachment: Ia,
296
296
  setAssetAttachments: Tu,
297
297
  updateAssetAttachment: Ru,
298
- updateAssetAttachments: Fa,
299
- deleteAssetAttachment: ka,
298
+ updateAssetAttachments: Ea,
299
+ deleteAssetAttachment: Fa,
300
300
  deleteAssetAttachments: di
301
- } = ci.actions, qa = (t) => t.assetAttachmentReducer.instances, li = p(
302
- [qa],
301
+ } = ci.actions, ka = (t) => t.assetAttachmentReducer.instances, li = p(
302
+ [ka],
303
303
  (t) => Object.values(t)
304
- ), ja = (t) => (e) => e.assetAttachmentReducer.instances[t], Pa = A(
304
+ ), qa = (t) => (e) => e.assetAttachmentReducer.instances[t], ja = A(
305
305
  p(
306
306
  [li, (t, e) => e],
307
307
  (t, e) => g(t.filter(({ asset: s }) => e === s))
@@ -320,10 +320,10 @@ const gu = /^.+@.+\..+$/, be = O(
320
320
  return { fileAttachments: i, imageAttachments: n };
321
321
  }
322
322
  )
323
- ), Da = ci.reducer, P = O((t) => t.offline_id), St = P.getInitialState({}), ui = _({
323
+ ), Pa = ci.reducer, P = O((t) => t.offline_id), Tt = P.getInitialState({}), ui = _({
324
324
  name: "assets",
325
- initialState: St,
326
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, St)),
325
+ initialState: Tt,
326
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Tt)),
327
327
  reducers: {
328
328
  initializeAssets: P.initialize,
329
329
  addAsset: P.addOne,
@@ -336,18 +336,18 @@ const gu = /^.+@.+\..+$/, be = O(
336
336
  deleteAssets: P.deleteMany
337
337
  }
338
338
  }), {
339
- initializeAssets: Ca,
340
- addAsset: Tt,
339
+ initializeAssets: Da,
340
+ addAsset: Rt,
341
341
  addAssets: hi,
342
342
  updateAsset: Ee,
343
343
  updateAssets: wu,
344
- deleteAsset: Rt,
345
- deleteAssets: xa,
344
+ deleteAsset: Ot,
345
+ deleteAssets: Ca,
346
346
  setAsset: vu,
347
347
  setAssets: Iu
348
- } = ui.actions, mi = (t) => t.assetReducer.instances, Ma = p([mi], (t) => g(Object.values(t))), pi = A(
349
- p([Ma, (t, e) => e], (t, e) => g(t.filter((s) => s.asset_type === e)))
350
- ), Ot = (t) => (e) => e.assetReducer.instances[t], Eu = A(
348
+ } = ui.actions, mi = (t) => t.assetReducer.instances, xa = p([mi], (t) => g(Object.values(t))), pi = A(
349
+ p([xa, (t, e) => e], (t, e) => g(t.filter((s) => s.asset_type === e)))
350
+ ), wt = (t) => (e) => e.assetReducer.instances[t], Eu = A(
351
351
  p([mi, (t, e) => e], (t, e) => {
352
352
  const s = [];
353
353
  for (const i of e) {
@@ -356,12 +356,12 @@ const gu = /^.+@.+\..+$/, be = O(
356
356
  }
357
357
  return g(s);
358
358
  })
359
- ), Fu = (t) => (e) => pi(t)(e).length, za = ui.reducer, te = O(
359
+ ), Fu = (t) => (e) => pi(t)(e).length, Ma = ui.reducer, te = O(
360
360
  (t) => t.offline_id
361
- ), wt = te.getInitialState({}), fi = _({
361
+ ), vt = te.getInitialState({}), fi = _({
362
362
  name: "assetStageCompletions",
363
- initialState: wt,
364
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, wt)),
363
+ initialState: vt,
364
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vt)),
365
365
  reducers: {
366
366
  initializeAssetStageCompletions: te.initialize,
367
367
  addAssetStageCompletion: te.addOne,
@@ -372,13 +372,13 @@ const gu = /^.+@.+\..+$/, be = O(
372
372
  deleteAssetStageCompletions: te.deleteMany
373
373
  }
374
374
  }), {
375
- initializeAssetStageCompletions: $a,
376
- addAssetStageCompletion: vt,
377
- addAssetStageCompletions: It,
378
- updateAssetStageCompletion: Ua,
379
- updateAssetStageCompletions: Va,
380
- deleteAssetStageCompletion: Et,
381
- deleteAssetStageCompletions: Ft
375
+ initializeAssetStageCompletions: za,
376
+ addAssetStageCompletion: It,
377
+ addAssetStageCompletions: Et,
378
+ updateAssetStageCompletion: $a,
379
+ updateAssetStageCompletions: Ua,
380
+ deleteAssetStageCompletion: Ft,
381
+ deleteAssetStageCompletions: kt
382
382
  } = fi.actions, yi = (t) => t.assetStageCompletionReducer.instances, ku = p(
383
383
  [yi],
384
384
  (t) => {
@@ -389,7 +389,7 @@ const gu = /^.+@.+\..+$/, be = O(
389
389
  }
390
390
  return fe(e);
391
391
  }
392
- ), Ga = (t) => (e) => e.assetStageCompletionReducer.instances[t], La = A(
392
+ ), Va = (t) => (e) => e.assetStageCompletionReducer.instances[t], Ga = A(
393
393
  p(
394
394
  [yi, (t, e) => e],
395
395
  (t, e) => {
@@ -401,10 +401,10 @@ const gu = /^.+@.+\..+$/, be = O(
401
401
  );
402
402
  }
403
403
  )
404
- ), Ba = fi.reducer, D = O((t) => t.offline_id), kt = D.getInitialState({}), Ai = _({
404
+ ), La = fi.reducer, D = O((t) => t.offline_id), qt = D.getInitialState({}), Ai = _({
405
405
  name: "assetStages",
406
- initialState: kt,
407
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, kt)),
406
+ initialState: qt,
407
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qt)),
408
408
  reducers: {
409
409
  initializeAssetStages: D.initialize,
410
410
  setAssetStage: D.setOne,
@@ -417,27 +417,27 @@ const gu = /^.+@.+\..+$/, be = O(
417
417
  deleteAssetStages: D.deleteMany
418
418
  }
419
419
  }), {
420
- initializeAssetStages: Na,
421
- setAssetStage: Ha,
420
+ initializeAssetStages: Ba,
421
+ setAssetStage: Na,
422
422
  setAssetStages: qu,
423
423
  addAssetStage: ju,
424
424
  addAssetStages: Ke,
425
- updateAssetStage: qt,
425
+ updateAssetStage: jt,
426
426
  updateAssetStages: Ue,
427
427
  deleteAssetStage: Pu,
428
428
  deleteAssetStages: Ye
429
- } = Ai.actions, Wa = Ai.reducer, it = (t) => t.assetStageReducer.instances, Ka = (t) => (e) => e.assetStageReducer.instances[t], Ya = p([it], (t) => Object.values(t)), Du = A(
429
+ } = Ai.actions, Ha = Ai.reducer, it = (t) => t.assetStageReducer.instances, Wa = (t) => (e) => e.assetStageReducer.instances[t], Ka = p([it], (t) => Object.values(t)), Du = A(
430
430
  p([it, (t, e) => e], (t, e) => {
431
431
  const s = {};
432
432
  for (const [i, n] of Object.entries(t))
433
433
  n.asset_type === e && (s[i] = n);
434
434
  return fe(s);
435
435
  })
436
- ), Ja = A(
437
- p([Ya, (t, e) => e], (t, e) => g(
436
+ ), Ya = A(
437
+ p([Ka, (t, e) => e], (t, e) => g(
438
438
  t.filter((s) => s.asset_type === e).sort((s, i) => s.priority - i.priority)
439
439
  ))
440
- ), jt = A(
440
+ ), Pt = A(
441
441
  p([it, (t, e) => e], (t, e) => {
442
442
  const s = [];
443
443
  for (const i of e) {
@@ -448,10 +448,10 @@ const gu = /^.+@.+\..+$/, be = O(
448
448
  })
449
449
  ), C = O(
450
450
  (t) => t.offline_id
451
- ), Pt = C.getInitialState({}), gi = _({
451
+ ), Dt = C.getInitialState({}), gi = _({
452
452
  name: "assetTypeAttachments",
453
- initialState: Pt,
454
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Pt)),
453
+ initialState: Dt,
454
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Dt)),
455
455
  reducers: {
456
456
  initializeAssetTypeAttachments: C.initialize,
457
457
  addAssetTypeAttachment: C.addOne,
@@ -464,19 +464,19 @@ const gu = /^.+@.+\..+$/, be = O(
464
464
  deleteAssetTypeAttachments: C.deleteMany
465
465
  }
466
466
  }), {
467
- initializeAssetTypeAttachments: Xa,
467
+ initializeAssetTypeAttachments: Ja,
468
468
  addAssetTypeAttachment: Cu,
469
469
  addAssetTypeAttachments: bi,
470
- setAssetTypeAttachment: Qa,
470
+ setAssetTypeAttachment: Xa,
471
471
  setAssetTypeAttachments: xu,
472
472
  updateAssetTypeAttachment: Mu,
473
- updateAssetTypeAttachments: Za,
474
- deleteAssetTypeAttachment: eo,
473
+ updateAssetTypeAttachments: Qa,
474
+ deleteAssetTypeAttachment: Za,
475
475
  deleteAssetTypeAttachments: _i
476
- } = gi.actions, to = (t) => t.assetTypeAttachmentReducer.instances, Si = p(
477
- [to],
476
+ } = gi.actions, eo = (t) => t.assetTypeAttachmentReducer.instances, Si = p(
477
+ [eo],
478
478
  (t) => Object.values(t)
479
- ), so = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], io = A(
479
+ ), to = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], so = A(
480
480
  p(
481
481
  [Si, (t, e) => e],
482
482
  (t, e) => g(t.filter(({ asset_type: s }) => e === s))
@@ -495,12 +495,12 @@ const gu = /^.+@.+\..+$/, be = O(
495
495
  return { fileAttachments: i, imageAttachments: n };
496
496
  }
497
497
  )
498
- ), no = gi.reducer, x = O(
498
+ ), io = gi.reducer, x = O(
499
499
  (t) => t.offline_id
500
- ), Dt = x.getInitialState({}), Ti = _({
500
+ ), Ct = x.getInitialState({}), Ti = _({
501
501
  name: "assetTypeFieldsAttachments",
502
- initialState: Dt,
503
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Dt)),
502
+ initialState: Ct,
503
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ct)),
504
504
  reducers: {
505
505
  initializeAssetTypeFieldsAttachments: x.initialize,
506
506
  addAssetTypeFieldsAttachment: x.addOne,
@@ -513,24 +513,24 @@ const gu = /^.+@.+\..+$/, be = O(
513
513
  deleteAssetTypeFieldsAttachments: x.deleteMany
514
514
  }
515
515
  }), {
516
- initializeAssetTypeFieldsAttachments: ao,
516
+ initializeAssetTypeFieldsAttachments: no,
517
517
  addAssetTypeFieldsAttachment: $u,
518
- addAssetTypeFieldsAttachments: oo,
518
+ addAssetTypeFieldsAttachments: ao,
519
519
  setAssetTypeFieldsAttachment: Uu,
520
520
  setAssetTypeFieldsAttachments: Vu,
521
521
  updateAssetTypeFieldsAttachment: Gu,
522
- updateAssetTypeFieldsAttachments: co,
522
+ updateAssetTypeFieldsAttachments: oo,
523
523
  deleteAssetTypeFieldsAttachment: Lu,
524
- deleteAssetTypeFieldsAttachments: ro
525
- } = Ti.actions, lo = (t) => t.assetTypeFieldsAttachmentReducer.instances, uo = p(
526
- [lo],
524
+ deleteAssetTypeFieldsAttachments: co
525
+ } = Ti.actions, ro = (t) => t.assetTypeFieldsAttachmentReducer.instances, lo = p(
526
+ [ro],
527
527
  (t) => Object.values(t)
528
528
  ), Bu = A(
529
- p([uo, (t, e) => e], (t, e) => g(t.filter((s) => s.fields_revision === e)))
530
- ), Nu = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], ho = Ti.reducer, M = O((t) => t.offline_id), Ct = M.getInitialState({}), Ri = _({
529
+ p([lo, (t, e) => e], (t, e) => g(t.filter((s) => s.fields_revision === e)))
530
+ ), Nu = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], uo = Ti.reducer, M = O((t) => t.offline_id), xt = M.getInitialState({}), Ri = _({
531
531
  name: "assetTypeFields",
532
- initialState: Ct,
533
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ct)),
532
+ initialState: xt,
533
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xt)),
534
534
  reducers: {
535
535
  initializeAssetTypeFields: M.initialize,
536
536
  addAssetTypeFields: M.addOne,
@@ -543,25 +543,25 @@ const gu = /^.+@.+\..+$/, be = O(
543
543
  deleteAssetTypeFieldsMany: M.deleteMany
544
544
  }
545
545
  }), {
546
- initializeAssetTypeFields: mo,
547
- addAssetTypeFields: po,
546
+ initializeAssetTypeFields: ho,
547
+ addAssetTypeFields: mo,
548
548
  addAssetTypeFieldsMany: Hu,
549
549
  setAssetTypeFields: Wu,
550
550
  setAssetTypeFieldsMany: Ku,
551
- updateAssetTypeFields: fo,
551
+ updateAssetTypeFields: po,
552
552
  updateAssetTypeFieldsMany: Yu,
553
- deleteAssetTypeFields: yo,
553
+ deleteAssetTypeFields: fo,
554
554
  deleteAssetTypeFieldsMany: Ju
555
- } = Ri.actions, Ao = (t) => t.assetTypeFieldsReducer.instances, nt = p([Ao], (t) => Object.values(t)), Xu = A(
555
+ } = Ri.actions, yo = (t) => t.assetTypeFieldsReducer.instances, nt = p([yo], (t) => Object.values(t)), Xu = A(
556
556
  p([nt, (t, e) => e], (t, e) => g(t.filter((s) => s.asset_type === e)))
557
557
  ), Qu = A(
558
558
  p([nt, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
559
- ), Zu = (t) => (e) => e.assetTypeFieldsReducer.instances[t], go = Ri.reducer, z = O(
559
+ ), Zu = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Ao = Ri.reducer, z = O(
560
560
  (t) => t.offline_id
561
- ), xt = z.getInitialState({}), Oi = _({
561
+ ), Mt = z.getInitialState({}), Oi = _({
562
562
  name: "assetTypeFieldValuesAttachments",
563
- initialState: xt,
564
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xt)),
563
+ initialState: Mt,
564
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Mt)),
565
565
  reducers: {
566
566
  initializeAssetTypeFieldValuesAttachments: z.initialize,
567
567
  addAssetTypeFieldValuesAttachment: z.addOne,
@@ -574,19 +574,19 @@ const gu = /^.+@.+\..+$/, be = O(
574
574
  deleteAssetTypeFieldValuesAttachments: z.deleteMany
575
575
  }
576
576
  }), {
577
- initializeAssetTypeFieldValuesAttachments: bo,
577
+ initializeAssetTypeFieldValuesAttachments: go,
578
578
  addAssetTypeFieldValuesAttachment: eh,
579
579
  addAssetTypeFieldValuesAttachments: Je,
580
580
  setAssetTypeFieldValuesAttachment: th,
581
581
  setAssetTypeFieldValuesAttachments: sh,
582
582
  updateAssetTypeFieldValuesAttachment: ih,
583
- updateAssetTypeFieldValuesAttachments: _o,
583
+ updateAssetTypeFieldValuesAttachments: bo,
584
584
  deleteAssetTypeFieldValuesAttachment: nh,
585
585
  deleteAssetTypeFieldValuesAttachments: Xe
586
- } = Oi.actions, wi = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, So = p(
586
+ } = Oi.actions, wi = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, _o = p(
587
587
  [wi],
588
588
  (t) => Object.values(t)
589
- ), ah = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], To = A(
589
+ ), ah = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], So = A(
590
590
  p(
591
591
  [wi, (t, e) => e],
592
592
  (t, e) => {
@@ -596,14 +596,14 @@ const gu = /^.+@.+\..+$/, be = O(
596
596
  );
597
597
  }
598
598
  )
599
- ), Ro = A(
600
- p([So, (t, e) => e], (t, e) => g(t.filter((s) => s.field_values === e)))
601
- ), Oo = Oi.reducer, $ = O(
599
+ ), To = A(
600
+ p([_o, (t, e) => e], (t, e) => g(t.filter((s) => s.field_values === e)))
601
+ ), Ro = Oi.reducer, $ = O(
602
602
  (t) => t.offline_id
603
- ), Mt = $.getInitialState({}), vi = _({
603
+ ), zt = $.getInitialState({}), vi = _({
604
604
  name: "assetTypeFieldValues",
605
- initialState: Mt,
606
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Mt)),
605
+ initialState: zt,
606
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zt)),
607
607
  reducers: {
608
608
  initializeAssetTypeFieldValues: $.initialize,
609
609
  addAssetTypeFieldValues: $.addOne,
@@ -616,16 +616,16 @@ const gu = /^.+@.+\..+$/, be = O(
616
616
  deleteAssetTypeFieldValuesMany: $.deleteMany
617
617
  }
618
618
  }), {
619
- initializeAssetTypeFieldValues: wo,
620
- addAssetTypeFieldValues: zt,
621
- addAssetTypeFieldValuesMany: vo,
619
+ initializeAssetTypeFieldValues: Oo,
620
+ addAssetTypeFieldValues: $t,
621
+ addAssetTypeFieldValuesMany: wo,
622
622
  setAssetTypeFieldValues: oh,
623
623
  setAssetTypeFieldValuesMany: ch,
624
624
  updateAssetTypeFieldValues: Fe,
625
- updateAssetTypeFieldValuesMany: Io,
626
- deleteAssetTypeFieldValues: $t,
627
- deleteAssetTypeFieldValuesMany: Eo
628
- } = vi.actions, Fo = (t) => t.assetTypeFieldValuesReducer.instances, Ii = p([Fo], (t) => Object.values(t)), rh = A(
625
+ updateAssetTypeFieldValuesMany: vo,
626
+ deleteAssetTypeFieldValues: Ut,
627
+ deleteAssetTypeFieldValuesMany: Io
628
+ } = vi.actions, Eo = (t) => t.assetTypeFieldValuesReducer.instances, Ii = p([Eo], (t) => Object.values(t)), rh = A(
629
629
  p([Ii, (t, e) => e], (t, e) => g(t.filter((s) => s.asset === e)))
630
630
  ), dh = A(
631
631
  p(
@@ -637,10 +637,10 @@ const gu = /^.+@.+\..+$/, be = O(
637
637
  return g(e.filter((n) => i.has(n.fields_revision)));
638
638
  }
639
639
  )
640
- ), Ut = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], ko = vi.reducer, U = O((t) => t.offline_id), Vt = U.getInitialState({}), Ei = _({
640
+ ), Vt = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], Fo = vi.reducer, U = O((t) => t.offline_id), Gt = U.getInitialState({}), Ei = _({
641
641
  name: "assetTypes",
642
- initialState: Vt,
643
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vt)),
642
+ initialState: Gt,
643
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gt)),
644
644
  reducers: {
645
645
  initializeAssetTypes: U.initialize,
646
646
  setAssetType: U.setOne,
@@ -653,19 +653,19 @@ const gu = /^.+@.+\..+$/, be = O(
653
653
  deleteAssetTypes: U.deleteMany
654
654
  }
655
655
  }), {
656
- initializeAssetTypes: qo,
656
+ initializeAssetTypes: ko,
657
657
  setAssetType: lh,
658
658
  setAssetTypes: uh,
659
- addAssetType: Gt,
659
+ addAssetType: Lt,
660
660
  addAssetTypes: hh,
661
661
  updateAssetType: ke,
662
662
  updateAssetTypes: mh,
663
- deleteAssetType: Lt,
663
+ deleteAssetType: Bt,
664
664
  deleteAssetTypes: ph
665
665
  } = Ei.actions, Fi = (t) => t.assetTypeReducer.instances, fh = p(
666
666
  [Fi],
667
667
  (t) => Object.values(t)
668
- ), Bt = (t) => (e) => e.assetTypeReducer.instances[t], yh = A(
668
+ ), Nt = (t) => (e) => e.assetTypeReducer.instances[t], yh = A(
669
669
  p(
670
670
  [Fi, (t, e) => e],
671
671
  (t, e) => {
@@ -677,14 +677,14 @@ const gu = /^.+@.+\..+$/, be = O(
677
677
  return g(s);
678
678
  }
679
679
  )
680
- ), jo = Ei.reducer, Nt = {
680
+ ), qo = Ei.reducer, Ht = {
681
681
  accessToken: "",
682
682
  refreshToken: "",
683
683
  isLoggedIn: !1
684
684
  }, at = _({
685
685
  name: "auth",
686
- initialState: Nt,
687
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Nt)),
686
+ initialState: Ht,
687
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ht)),
688
688
  reducers: {
689
689
  setTokens: (t, e) => {
690
690
  t.accessToken = e.payload.accessToken, t.refreshToken = e.payload.refreshToken;
@@ -696,17 +696,17 @@ const gu = /^.+@.+\..+$/, be = O(
696
696
  e.payload || at.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
697
697
  }
698
698
  }
699
- }), { setTokens: Ah, clearTokens: gh, setLoggedIn: Po } = at.actions, bh = (t) => t.authReducer.accessToken, _h = (t) => t.authReducer.isLoggedIn, Do = at.reducer, _e = O((t) => t.offline_id), Ht = _e.getInitialState({}), ki = _({
699
+ }), { setTokens: Ah, clearTokens: gh, setLoggedIn: jo } = at.actions, bh = (t) => t.authReducer.accessToken, _h = (t) => t.authReducer.isLoggedIn, Po = at.reducer, _e = O((t) => t.offline_id), Wt = _e.getInitialState({}), ki = _({
700
700
  name: "categories",
701
- initialState: Ht,
702
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ht)),
701
+ initialState: Wt,
702
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Wt)),
703
703
  reducers: {
704
704
  initializeCategories: _e.initialize,
705
705
  addCategory: _e.addOne,
706
706
  updateCategory: _e.updateOne,
707
707
  deleteCategory: _e.deleteOne
708
708
  }
709
- }), { initializeCategories: Co, addCategory: Wt, updateCategory: xo, deleteCategory: Mo } = ki.actions, qi = (t) => t.categoryReducer.instances, Sh = p([qi], (t) => Object.values(t)), Kt = (t) => (e) => e.categoryReducer.instances[t], Th = A(
709
+ }), { initializeCategories: Do, addCategory: Kt, updateCategory: Co, deleteCategory: xo } = ki.actions, qi = (t) => t.categoryReducer.instances, Sh = p([qi], (t) => Object.values(t)), Yt = (t) => (e) => e.categoryReducer.instances[t], Th = A(
710
710
  p(
711
711
  [qi, (t, e) => e],
712
712
  (t, e) => {
@@ -718,10 +718,10 @@ const gu = /^.+@.+\..+$/, be = O(
718
718
  return g(s);
719
719
  }
720
720
  )
721
- ), Rh = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, zo = ki.reducer, V = O((t) => t.offline_id), Yt = V.getInitialState({}), ji = _({
721
+ ), Rh = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, Mo = ki.reducer, V = O((t) => t.offline_id), Jt = V.getInitialState({}), ji = _({
722
722
  name: "documentAttachments",
723
- initialState: Yt,
724
- extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Yt)),
723
+ initialState: Jt,
724
+ extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Jt)),
725
725
  reducers: {
726
726
  initializeDocumentAttachments: V.initialize,
727
727
  addDocumentAttachment: V.addOne,
@@ -734,19 +734,19 @@ const gu = /^.+@.+\..+$/, be = O(
734
734
  deleteDocumentAttachments: V.deleteMany
735
735
  }
736
736
  }), {
737
- initializeDocumentAttachments: $o,
737
+ initializeDocumentAttachments: zo,
738
738
  addDocumentAttachment: Oh,
739
- addDocumentAttachments: Uo,
740
- setDocumentAttachment: Vo,
739
+ addDocumentAttachments: $o,
740
+ setDocumentAttachment: Uo,
741
741
  setDocumentAttachments: wh,
742
742
  updateDocumentAttachment: vh,
743
- updateDocumentAttachments: Go,
744
- deleteDocumentAttachment: Lo,
745
- deleteDocumentAttachments: Bo
746
- } = ji.actions, No = (t) => t.documentAttachmentReducer.instances, Pi = p(
747
- [No],
743
+ updateDocumentAttachments: Vo,
744
+ deleteDocumentAttachment: Go,
745
+ deleteDocumentAttachments: Lo
746
+ } = ji.actions, Bo = (t) => t.documentAttachmentReducer.instances, Pi = p(
747
+ [Bo],
748
748
  (t) => Object.values(t)
749
- ), Ho = (t) => (e) => e.documentAttachmentReducer.instances[t], Ih = A(
749
+ ), No = (t) => (e) => e.documentAttachmentReducer.instances[t], Ih = A(
750
750
  p(
751
751
  [Pi, (t, e) => e],
752
752
  (t, e) => g(t.filter(({ document: s }) => e === s))
@@ -765,19 +765,19 @@ const gu = /^.+@.+\..+$/, be = O(
765
765
  return { fileAttachments: i, imageAttachments: n };
766
766
  }
767
767
  )
768
- ), Wo = ji.reducer, Jt = {
768
+ ), Ho = ji.reducer, Xt = {
769
769
  documents: {}
770
770
  }, Di = _({
771
771
  name: "documents",
772
- initialState: Jt,
772
+ initialState: Xt,
773
773
  extraReducers: (t) => t.addCase("RESET", (e) => {
774
- Object.assign(e, Jt);
774
+ Object.assign(e, Xt);
775
775
  }),
776
776
  reducers: {
777
777
  setDocuments: (t, e) => {
778
- if (e.payload.filter(Ta).length !== e.payload.length)
778
+ if (e.payload.filter(Sa).length !== e.payload.length)
779
779
  throw new Error("Tried to use setIssues reducer with duplicate ID's");
780
- t.documents = Sa(e.payload);
780
+ t.documents = _a(e.payload);
781
781
  },
782
782
  addDocuments: (t, e) => {
783
783
  for (const s of e.payload)
@@ -893,7 +893,7 @@ const gu = /^.+@.+\..+$/, be = O(
893
893
  }
894
894
  }
895
895
  }
896
- }), { setDocuments: Ko, addDocuments: Xt, updateDocuments: ne, moveDocument: Yo, removeDocuments: Qt } = Di.actions, Oe = (t) => t.documentsReducer.documents, Jo = p(
896
+ }), { setDocuments: Wo, addDocuments: Ko, updateDocuments: ne, moveDocument: Yo, removeDocuments: Qt } = Di.actions, Oe = (t) => t.documentsReducer.documents, Jo = p(
897
897
  [Oe],
898
898
  (t) => Object.values(t)
899
899
  ), Xo = (t) => (e) => e.documentsReducer.documents[t], Fh = A(
@@ -1068,7 +1068,7 @@ const gu = /^.+@.+\..+$/, be = O(
1068
1068
  return [...o.slice(0, n)];
1069
1069
  },
1070
1070
  // as the argument is an object, we check the first level of properties for equality
1071
- { memoizeOptions: { resultEqualityCheck: pa } }
1071
+ { memoizeOptions: { resultEqualityCheck: ma } }
1072
1072
  )
1073
1073
  ), L = O(
1074
1074
  (t) => t.offline_id
@@ -1671,13 +1671,13 @@ const gu = /^.+@.+\..+$/, be = O(
1671
1671
  throw new Error("Accept project invite: user is not in this project");
1672
1672
  }
1673
1673
  }
1674
- }), { setProjects: gd, updateProject: bd, deleteProject: _d, acceptProjectInvite: Sd } = Sn.actions, Td = Sn.reducer, Tn = (t) => t.projectReducer.projects, ap = (t) => (e) => e.projectReducer.projects[t], Rd = p(
1674
+ }), { setProjects: gd, updateProject: bd, deleteProject: _d, acceptProjectInvite: Sd } = Sn.actions, Td = Sn.reducer, mt = (t) => t.projectReducer.projects, ap = p([mt], (t) => g(Object.values(t))), op = (t) => (e) => e.projectReducer.projects[t], Rd = p(
1675
1675
  [_n],
1676
1676
  (t) => Object.values(t).map((e) => e.user)
1677
1677
  ), Od = p(
1678
1678
  [Rd, ht],
1679
1679
  (t, e) => t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
1680
- ), op = p(
1680
+ ), cp = p(
1681
1681
  [ut, Od, yd],
1682
1682
  (t, e, s) => g(
1683
1683
  Object.values(e).sort((i, n) => {
@@ -1691,7 +1691,7 @@ const gu = /^.+@.+\..+$/, be = O(
1691
1691
  )
1692
1692
  ), Vs = {
1693
1693
  organizations: {}
1694
- }, Rn = _({
1694
+ }, Tn = _({
1695
1695
  name: "organizations",
1696
1696
  initialState: Vs,
1697
1697
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vs)),
@@ -1701,7 +1701,7 @@ const gu = /^.+@.+\..+$/, be = O(
1701
1701
  t.organizations[s.id] = s;
1702
1702
  }
1703
1703
  }
1704
- }), { setOrganizations: wd } = Rn.actions, vd = (t) => t.organizationReducer.organizations, Id = p([vd], (t) => Object.values(t)), cp = (t) => (e) => e.organizationReducer.organizations[t], rp = p(
1704
+ }), { setOrganizations: wd } = Tn.actions, vd = (t) => t.organizationReducer.organizations, Id = p([vd], (t) => Object.values(t)), rp = (t) => (e) => e.organizationReducer.organizations[t], dp = p(
1705
1705
  [Id],
1706
1706
  (t) => g(
1707
1707
  Object.values(t).filter((e) => e.has_access)
@@ -1709,14 +1709,14 @@ const gu = /^.+@.+\..+$/, be = O(
1709
1709
  ), Ed = p(
1710
1710
  [An],
1711
1711
  (t) => Object.values(t).map((e) => e.user)
1712
- ), dp = A(
1712
+ ), lp = A(
1713
1713
  p(
1714
- [Tn, (t, e) => e],
1714
+ [mt, (t, e) => e],
1715
1715
  (t, e) => g(
1716
1716
  Object.values(t).filter((s) => s.organization_owner === e)
1717
1717
  )
1718
1718
  )
1719
- ), lp = A(
1719
+ ), up = A(
1720
1720
  p([lt, (t, e) => e], (t, e) => g(
1721
1721
  Object.values(t).filter((s) => s.organization_owner === e)
1722
1722
  ))
@@ -1725,7 +1725,7 @@ const gu = /^.+@.+\..+$/, be = O(
1725
1725
  (t, e) => fe(
1726
1726
  t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
1727
1727
  )
1728
- ), up = p(
1728
+ ), hp = p(
1729
1729
  [ut, Fd, ld],
1730
1730
  (t, e, s) => g(
1731
1731
  Object.values(e).sort((i, n) => {
@@ -1737,7 +1737,7 @@ const gu = /^.+@.+\..+$/, be = O(
1737
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) === ti.ADMIN ? -1 : 1;
1738
1738
  })
1739
1739
  )
1740
- ), kd = Rn.reducer, qd = (t, e, s) => {
1740
+ ), kd = Tn.reducer, qd = (t, e, s) => {
1741
1741
  const i = t.uuid ? t : { ...t, uuid: le() };
1742
1742
  return {
1743
1743
  payload: i,
@@ -1756,7 +1756,7 @@ const gu = /^.+@.+\..+$/, be = O(
1756
1756
  }, Gs = {
1757
1757
  deletedRequests: [],
1758
1758
  latestRetryTime: 0
1759
- }, On = _({
1759
+ }, Rn = _({
1760
1760
  name: "outbox",
1761
1761
  initialState: Gs,
1762
1762
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gs)),
@@ -1783,7 +1783,7 @@ const gu = /^.+@.+\..+$/, be = O(
1783
1783
  t.latestRetryTime = e.payload;
1784
1784
  }
1785
1785
  }
1786
- }), hp = (t) => t.outboxReducer.deletedRequests, mp = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: jd, markForDeletion: pp, markAsDeleted: Pd, _setLatestRetryTime: Dd } = On.actions, Cd = On.reducer, Q = O((t) => t.offline_id), Ls = Q.getInitialState({}), wn = _({
1786
+ }), mp = (t) => t.outboxReducer.deletedRequests, pp = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: jd, markForDeletion: fp, markAsDeleted: Pd, _setLatestRetryTime: Dd } = Rn.actions, Cd = Rn.reducer, Q = O((t) => t.offline_id), Ls = Q.getInitialState({}), On = _({
1787
1787
  name: "projectAttachments",
1788
1788
  initialState: Ls,
1789
1789
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ls)),
@@ -1800,22 +1800,22 @@ const gu = /^.+@.+\..+$/, be = O(
1800
1800
  }
1801
1801
  }), {
1802
1802
  initializeProjectAttachments: xd,
1803
- addProjectAttachment: fp,
1803
+ addProjectAttachment: yp,
1804
1804
  addProjectAttachments: Md,
1805
1805
  setProjectAttachment: zd,
1806
1806
  setProjectAttachments: $d,
1807
- updateProjectAttachment: yp,
1807
+ updateProjectAttachment: Ap,
1808
1808
  updateProjectAttachments: Ud,
1809
1809
  deleteProjectAttachment: Vd,
1810
- deleteProjectAttachments: vn
1811
- } = wn.actions, Gd = (t) => t.projectAttachmentReducer.instances, In = p(
1810
+ deleteProjectAttachments: wn
1811
+ } = On.actions, Gd = (t) => t.projectAttachmentReducer.instances, vn = p(
1812
1812
  [Gd],
1813
1813
  (t) => Object.values(t)
1814
1814
  ), Ld = (t) => (e) => e.projectAttachmentReducer.instances[t], Bd = A(
1815
- p([In, (t, e) => e], (t, e) => g(t.filter(({ project: s }) => e === s)))
1816
- ), Ap = A(
1815
+ p([vn, (t, e) => e], (t, e) => g(t.filter(({ project: s }) => e === s)))
1816
+ ), gp = A(
1817
1817
  p(
1818
- [In, (t, e) => e],
1818
+ [vn, (t, e) => e],
1819
1819
  (t, e) => {
1820
1820
  const s = t.filter(({ project: a }) => e === a), i = s.filter(
1821
1821
  // this null check here is necessary, there are cases where file_type is null or undefined
@@ -1827,10 +1827,10 @@ const gu = /^.+@.+\..+$/, be = O(
1827
1827
  return { fileAttachments: i, imageAttachments: n };
1828
1828
  }
1829
1829
  )
1830
- ), Nd = wn.reducer, Z = O((t) => t.offline_id), Bs = Z.getInitialState({
1830
+ ), Nd = On.reducer, Z = O((t) => t.offline_id), Bs = Z.getInitialState({
1831
1831
  activeProjectFileId: null,
1832
1832
  isImportingProjectFile: !1
1833
- }), En = _({
1833
+ }), In = _({
1834
1834
  name: "projectFiles",
1835
1835
  initialState: Bs,
1836
1836
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Bs)),
@@ -1869,22 +1869,22 @@ const gu = /^.+@.+\..+$/, be = O(
1869
1869
  }
1870
1870
  }), {
1871
1871
  initializeProjectFiles: Hd,
1872
- setProjectFile: gp,
1873
- setProjectFiles: bp,
1874
- addProjectFile: _p,
1872
+ setProjectFile: bp,
1873
+ setProjectFiles: _p,
1874
+ addProjectFile: Sp,
1875
1875
  addProjectFiles: Wd,
1876
1876
  updateProjectFile: Ns,
1877
- updateProjectFiles: Sp,
1877
+ updateProjectFiles: Tp,
1878
1878
  deleteProjectFile: Kd,
1879
1879
  deleteProjectFiles: Yd,
1880
1880
  // TODO: move following to /web
1881
1881
  setIsImportingProjectFile: Jd,
1882
1882
  setActiveProjectFileId: Xd,
1883
1883
  saveActiveProjectFileBounds: Qd,
1884
- resetProjectFileObjectUrls: Tp
1885
- } = En.actions, Zd = (t) => t.projectFileReducer.instances, el = p([Zd], (t) => g(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Rp = (t) => (e) => e.projectFileReducer.instances[t], Op = (t) => t.projectFileReducer.activeProjectFileId, wp = (t) => t.projectFileReducer.isImportingProjectFile, tl = En.reducer, sl = {
1884
+ resetProjectFileObjectUrls: Rp
1885
+ } = In.actions, Zd = (t) => t.projectFileReducer.instances, el = p([Zd], (t) => g(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Op = (t) => (e) => e.projectFileReducer.instances[t], wp = (t) => t.projectFileReducer.activeProjectFileId, vp = (t) => t.projectFileReducer.isImportingProjectFile, tl = In.reducer, sl = {
1886
1886
  isRehydrated: !1
1887
- }, Fn = _({
1887
+ }, En = _({
1888
1888
  name: "rehydrated",
1889
1889
  initialState: sl,
1890
1890
  // The `reducers` field lets us define reducers and generate associated actions
@@ -1893,7 +1893,7 @@ const gu = /^.+@.+\..+$/, be = O(
1893
1893
  t.isRehydrated = e.payload;
1894
1894
  }
1895
1895
  }
1896
- }), { setRehydrated: vp } = Fn.actions, Ip = (t) => t.rehydratedReducer.isRehydrated, il = Fn.reducer, me = O((t) => t.offline_id), Hs = me.getInitialState({}), kn = _({
1896
+ }), { setRehydrated: Ip } = En.actions, Ep = (t) => t.rehydratedReducer.isRehydrated, il = En.reducer, me = O((t) => t.offline_id), Hs = me.getInitialState({}), Fn = _({
1897
1897
  name: "teams",
1898
1898
  initialState: Hs,
1899
1899
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Hs)),
@@ -1904,9 +1904,9 @@ const gu = /^.+@.+\..+$/, be = O(
1904
1904
  updateTeam: me.updateOne,
1905
1905
  deleteTeam: me.deleteOne
1906
1906
  }
1907
- }), { setTeam: Ae, initializeTeams: nl, addTeam: al, updateTeam: Ws, deleteTeam: Ks } = kn.actions, qn = (t) => t.teamReducer.instances, jn = p([qn], (t) => Object.values(t)), ge = (t) => (e) => e.teamReducer.instances[t], Ep = A(
1907
+ }), { setTeam: Ae, initializeTeams: nl, addTeam: al, updateTeam: Ws, deleteTeam: Ks } = Fn.actions, kn = (t) => t.teamReducer.instances, qn = p([kn], (t) => Object.values(t)), ge = (t) => (e) => e.teamReducer.instances[t], Fp = A(
1908
1908
  p(
1909
- [qn, (t, e) => e],
1909
+ [kn, (t, e) => e],
1910
1910
  (t, e) => {
1911
1911
  const s = [];
1912
1912
  for (const i of e) {
@@ -1916,39 +1916,39 @@ const gu = /^.+@.+\..+$/, be = O(
1916
1916
  return g(s);
1917
1917
  }
1918
1918
  )
1919
- ), Fp = A(
1919
+ ), kp = A(
1920
1920
  p(
1921
- [jn, (t, e) => e],
1921
+ [qn, (t, e) => e],
1922
1922
  (t, e) => g(t.filter((s) => s.organization === e))
1923
1923
  )
1924
- ), kp = A(
1925
- p([jn, (t, e) => e], (t, e) => g(t.filter((s) => s.members.includes(e))))
1926
- ), ol = kn.reducer, cl = {
1924
+ ), qp = A(
1925
+ p([qn, (t, e) => e], (t, e) => g(t.filter((s) => s.members.includes(e))))
1926
+ ), ol = Fn.reducer, cl = {
1927
1927
  version: 0
1928
1928
  }, rl = _({
1929
1929
  name: "versioning",
1930
1930
  initialState: cl,
1931
1931
  reducers: {}
1932
1932
  }), dl = rl.reducer;
1933
- let Pn;
1933
+ let jn;
1934
1934
  function ll(t) {
1935
- Pn = t;
1935
+ jn = t;
1936
1936
  }
1937
1937
  function ve() {
1938
- return Pn;
1938
+ return jn;
1939
1939
  }
1940
- let Dn;
1940
+ let Pn;
1941
1941
  function ul(t) {
1942
- Dn = t;
1942
+ Pn = t;
1943
1943
  }
1944
1944
  function hl() {
1945
- return Dn;
1945
+ return Pn;
1946
1946
  }
1947
- const Cn = {};
1948
- class xn {
1947
+ const Dn = {};
1948
+ class Cn {
1949
1949
  constructor(e) {
1950
1950
  y(this, "client");
1951
- Cn[this.constructor.name] = this, this.client = e;
1951
+ Dn[this.constructor.name] = this, this.client = e;
1952
1952
  }
1953
1953
  async enqueueRequest(e) {
1954
1954
  return this.client.enqueueRequest(e, this.host, this.constructor.name);
@@ -1958,21 +1958,21 @@ class xn {
1958
1958
  this.client.store.dispatch(e);
1959
1959
  }
1960
1960
  }
1961
- const Mn = "versioning", zn = () => Un.length - 1, $n = (t) => (t[Mn] = { version: zn() }, t), Ys = () => $n({}), ml = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), pl = (t) => (e) => {
1961
+ const xn = "versioning", Mn = () => $n.length - 1, zn = (t) => (t[xn] = { version: Mn() }, t), Ys = () => zn({}), ml = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), pl = (t) => (e) => {
1962
1962
  var s;
1963
- return e === void 0 && (e = {}), ((s = e[Mn]) == null ? void 0 : s.version) === zn() ? e : t(e);
1964
- }, Un = [$n, Ys, Ys, ml], fl = Object.fromEntries(Un.map((t, e) => [e, pl(t)])), Vn = "versioning", yl = {
1963
+ return e === void 0 && (e = {}), ((s = e[xn]) == null ? void 0 : s.version) === Mn() ? e : t(e);
1964
+ }, $n = [zn, Ys, Ys, ml], fl = Object.fromEntries($n.map((t, e) => [e, pl(t)])), Un = "versioning", yl = {
1965
1965
  // TODO: attachmentReducer,
1966
- [Vn]: dl,
1966
+ [Un]: dl,
1967
1967
  fileReducer: dc,
1968
- authReducer: Do,
1969
- categoryReducer: zo,
1970
- assetReducer: za,
1971
- assetAttachmentReducer: Da,
1972
- assetStageCompletionReducer: Ba,
1973
- assetStageReducer: Wa,
1974
- assetTypeReducer: jo,
1975
- assetTypeAttachmentReducer: no,
1968
+ authReducer: Po,
1969
+ categoryReducer: Mo,
1970
+ assetReducer: Ma,
1971
+ assetAttachmentReducer: Pa,
1972
+ assetStageCompletionReducer: La,
1973
+ assetStageReducer: Ha,
1974
+ assetTypeReducer: qo,
1975
+ assetTypeAttachmentReducer: io,
1976
1976
  issueReducer: gr,
1977
1977
  issueAttachmentReducer: dr,
1978
1978
  issueTypeReducer: Hr,
@@ -1993,9 +1993,9 @@ const Mn = "versioning", zn = () => Un.length - 1, $n = (t) => (t[Mn] = { versio
1993
1993
  emailDomainsReducer: ac,
1994
1994
  licenseReducer: id,
1995
1995
  documentsReducer: Qo,
1996
- documentAttachmentReducer: Wo,
1996
+ documentAttachmentReducer: Ho,
1997
1997
  teamReducer: ol,
1998
- agentsReducer: Ia,
1998
+ agentsReducer: va,
1999
1999
  issueCommentReducer: mr,
2000
2000
  issueUpdateReducer: ed,
2001
2001
  geoImageReducer: Kc,
@@ -2004,11 +2004,11 @@ const Mn = "versioning", zn = () => Un.length - 1, $n = (t) => (t[Mn] = { versio
2004
2004
  issueTypeFieldValuesReducer: Er,
2005
2005
  issueTypeFieldsAttachmentReducer: wr,
2006
2006
  issueTypeFieldValuesAttachmentReducer: Ur,
2007
- assetTypeFieldsReducer: go,
2008
- assetTypeFieldValuesReducer: ko,
2009
- assetTypeFieldsAttachmentReducer: ho,
2010
- assetTypeFieldValuesAttachmentReducer: Oo
2011
- }, Js = Yn(yl), Al = "RESET", qp = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Js(void 0, e) : Js(t, e);
2007
+ assetTypeFieldsReducer: Ao,
2008
+ assetTypeFieldValuesReducer: Fo,
2009
+ assetTypeFieldsAttachmentReducer: uo,
2010
+ assetTypeFieldValuesAttachmentReducer: Ro
2011
+ }, Js = Kn(yl), Al = "RESET", jp = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Js(void 0, e) : Js(t, e);
2012
2012
  let Le = null;
2013
2013
  function pe() {
2014
2014
  const t = ve();
@@ -2039,28 +2039,28 @@ async function Sl(t, e) {
2039
2039
  return Fl(e);
2040
2040
  }
2041
2041
  const Tl = {
2042
- ...ft,
2042
+ ...yt,
2043
2043
  effect: Sl,
2044
2044
  // Casting needed because we are saving FullOfflineAction objects, not just OfflineAction objects,
2045
2045
  // but redux-offline does not know this.
2046
- discard: Nn,
2046
+ discard: Bn,
2047
2047
  returnPromises: !0,
2048
2048
  persistCallback: gl,
2049
2049
  retry: ql,
2050
2050
  // Modify the configuration of the offline store to use localforage
2051
2051
  // which uses IndexedDB by default (persists even on mobile when installed as a PWA, unlike localStorage)
2052
- persistOptions: { storage: Zn },
2052
+ persistOptions: { storage: Qn },
2053
2053
  // TODO: custom enqueue implementation to take care of intelligently cancelling "create/delete same issue",
2054
2054
  // and custom dequeue for e.g. if user insists on removing a failed a "create issue", then remove the "edit
2055
2055
  // that same issue"
2056
2056
  queue: {
2057
- ...ft.queue,
2057
+ ...yt.queue,
2058
2058
  enqueue: bl,
2059
2059
  dequeue: _l,
2060
2060
  // Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
2061
2061
  peek: (...t) => kl(...t)
2062
2062
  }
2063
- }, Rl = ea(fl, Vn), jp = Jn(Qn(Tl), Rl);
2063
+ }, Rl = Zn(fl, Un), Pp = Yn(Xn(Tl), Rl);
2064
2064
  function Ol(t) {
2065
2065
  function e(s) {
2066
2066
  return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
@@ -2072,8 +2072,8 @@ function Ol(t) {
2072
2072
  if (s.response && e(s.response.response)) return s.response.response;
2073
2073
  }
2074
2074
  }
2075
- async function Gn(t, e) {
2076
- const s = Cn[t.meta.offline.effect.serviceName];
2075
+ async function Vn(t, e) {
2076
+ const s = Dn[t.meta.offline.effect.serviceName];
2077
2077
  if (!s)
2078
2078
  throw new Error(`Service ${t.meta.offline.effect.serviceName} not found`);
2079
2079
  const i = s instanceof w;
@@ -2103,7 +2103,7 @@ async function Gn(t, e) {
2103
2103
  return v.set("x-amz-checksum-sha1", ye).field({ ...r, ...q.fields }).attach("file", E);
2104
2104
  }
2105
2105
  return v.send(r);
2106
- }, Hn = {
2106
+ }, Nn = {
2107
2107
  [d.GET]: () => b ? ue.get(S.toString()).responseType("blob") : ue.get(S.toString()),
2108
2108
  [d.POST]: () => {
2109
2109
  const v = ue.post(S.toString());
@@ -2122,7 +2122,7 @@ async function Gn(t, e) {
2122
2122
  return ee(v);
2123
2123
  }
2124
2124
  }[c];
2125
- let ie = Hn();
2125
+ let ie = Nn();
2126
2126
  if (f && i) {
2127
2127
  const v = s.auth.getAuthHeader();
2128
2128
  ie = ie.set("Authorization", v);
@@ -2134,7 +2134,7 @@ async function Gn(t, e) {
2134
2134
  const q = Ol(v), ye = q == null ? void 0 : q.status;
2135
2135
  if (i && ye === 401)
2136
2136
  return await s.auth.handleUnauthorized(ie, q), ie.query(l);
2137
- throw new F({ response: q, innerError: v, discard: Bn.includes(ye) });
2137
+ throw new F({ response: q, innerError: v, discard: Ln.includes(ye) });
2138
2138
  }
2139
2139
  }
2140
2140
  class wl {
@@ -2153,7 +2153,7 @@ class wl {
2153
2153
  return this._all;
2154
2154
  }
2155
2155
  }
2156
- class Ln {
2156
+ class Gn {
2157
2157
  constructor() {
2158
2158
  y(this, "next");
2159
2159
  this.next = null;
@@ -2168,16 +2168,16 @@ class Ln {
2168
2168
  if (console.debug("Middleware finished. Performing request:", e), !ve()) throw new Error("Client store not set");
2169
2169
  const i = hl();
2170
2170
  if (!i) throw new Error("Client SDK not set");
2171
- return Gn(e, i);
2171
+ return Vn(e, i);
2172
2172
  }
2173
2173
  }
2174
2174
  }
2175
- class vl extends Ln {
2175
+ class vl extends Gn {
2176
2176
  async run(e) {
2177
2177
  return super.run(e);
2178
2178
  }
2179
2179
  }
2180
- class Il extends Ln {
2180
+ class Il extends Gn {
2181
2181
  async run(e) {
2182
2182
  return super.run(e);
2183
2183
  }
@@ -2187,8 +2187,8 @@ function Fl(t) {
2187
2187
  var e;
2188
2188
  return (e = El[0]) == null ? void 0 : e.run(t);
2189
2189
  }
2190
- const Bn = [400, 409, 403, 404, 405, 500];
2191
- function Nn(t, e, s = 0) {
2190
+ const Ln = [400, 409, 403, 404, 405, 500];
2191
+ function Bn(t, e, s = 0) {
2192
2192
  var c;
2193
2193
  if (console.debug(
2194
2194
  "Considering discarding request due to error:",
@@ -2222,7 +2222,7 @@ Retries:`,
2222
2222
  return console.debug("Discarding request due to deletion:", e), r();
2223
2223
  if (t instanceof F) {
2224
2224
  const l = t.status || ((c = t.response) == null ? void 0 : c.status);
2225
- if (l || console.warn("Error has no status code:", t), l !== void 0 && Bn.includes(l)) {
2225
+ if (l || console.warn("Error has no status code:", t), l !== void 0 && Ln.includes(l)) {
2226
2226
  console.warn("Discarding request due to error:", t, `
2227
2227
  Action:`, e);
2228
2228
  const h = pe();
@@ -2242,7 +2242,7 @@ function kl(t, e, s) {
2242
2242
  return (i = pe()) == null ? void 0 : i.peek();
2243
2243
  }
2244
2244
  function ql(t, e) {
2245
- return ve().dispatch(Dd((/* @__PURE__ */ new Date()).getTime())), ua;
2245
+ return ve().dispatch(Dd((/* @__PURE__ */ new Date()).getTime())), la;
2246
2246
  }
2247
2247
  const we = "An unknown error occurred", jl = 500, Xs = ["non_field_errors", "detail"];
2248
2248
  function Pl(t, e) {
@@ -2279,7 +2279,7 @@ class F extends Error {
2279
2279
  this.message = s.message ?? Pl(i, n) ?? we, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, s.discard = s.discard ?? !1, this.options = s;
2280
2280
  }
2281
2281
  }
2282
- class Pp {
2282
+ class Dp {
2283
2283
  constructor(e) {
2284
2284
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2285
2285
  y(this, "store");
@@ -2293,7 +2293,7 @@ class Pp {
2293
2293
  });
2294
2294
  }
2295
2295
  _enqueueRequest(e, s, i) {
2296
- const n = new ha(), a = { ...e, BASE_URL: s, serviceName: i };
2296
+ const n = new ua(), a = { ...e, BASE_URL: s, serviceName: i };
2297
2297
  if (e.immediate) {
2298
2298
  const o = {
2299
2299
  ...a,
@@ -2312,10 +2312,10 @@ class Pp {
2312
2312
  }
2313
2313
  }
2314
2314
  };
2315
- Gn(r, this).then((u) => {
2315
+ Vn(r, this).then((u) => {
2316
2316
  n.resolve(u.body);
2317
2317
  }).catch((u) => {
2318
- Nn(u, r), u instanceof Error ? n.reject(u) : n.reject(new Error((u ?? we).toString()));
2318
+ Bn(u, r), u instanceof Error ? n.reject(u) : n.reject(new Error((u ?? we).toString()));
2319
2319
  });
2320
2320
  } else {
2321
2321
  const o = this.store.dispatch(
@@ -2353,7 +2353,7 @@ class Te {
2353
2353
  constructor() {
2354
2354
  y(this, "graph");
2355
2355
  y(this, "requestAttemptCounter");
2356
- this.graph = new ta(), this.requestAttemptCounter = {};
2356
+ this.graph = new ea(), this.requestAttemptCounter = {};
2357
2357
  }
2358
2358
  /**
2359
2359
  * Used when the app is loaded. Reconstructs the dependency graph based on an outbox from the redux-offline store.
@@ -2491,18 +2491,18 @@ class Te {
2491
2491
  this.requestAttemptCounter[e] = (this.requestAttemptCounter[e] || 0) + 1;
2492
2492
  }
2493
2493
  }
2494
- const Dp = (t, e) => {
2494
+ const Cp = (t, e) => {
2495
2495
  const s = new e(t);
2496
2496
  return ul(s), ll(t), s;
2497
2497
  };
2498
- class w extends xn {
2498
+ class w extends Cn {
2499
2499
  constructor(s, i) {
2500
2500
  super(s);
2501
2501
  y(this, "auth");
2502
2502
  this.auth = i;
2503
2503
  }
2504
2504
  }
2505
- class Cp extends w {
2505
+ class xp extends w {
2506
2506
  async startConversation(e, s) {
2507
2507
  return this.enqueueRequest({
2508
2508
  description: "Start agent conversation",
@@ -2514,7 +2514,7 @@ class Cp extends w {
2514
2514
  },
2515
2515
  blockers: ["prompt"],
2516
2516
  blocks: ["prompt"]
2517
- }).then((i) => (this.dispatch(Oa(i)), i));
2517
+ }).then((i) => (this.dispatch(Ra(i)), i));
2518
2518
  }
2519
2519
  async continueConversation(e, s, i) {
2520
2520
  return this.enqueueRequest({
@@ -2529,7 +2529,7 @@ class Cp extends w {
2529
2529
  blocks: ["prompt"],
2530
2530
  queryParams: { conversation_id: s }
2531
2531
  }).then((n) => {
2532
- this.dispatch(va(n));
2532
+ this.dispatch(wa(n));
2533
2533
  });
2534
2534
  }
2535
2535
  async fetchDetails(e) {
@@ -2540,7 +2540,7 @@ class Cp extends w {
2540
2540
  blockers: ["conversation"],
2541
2541
  blocks: ["conversation"]
2542
2542
  }).then((s) => {
2543
- this.dispatch(wa(s));
2543
+ this.dispatch(Oa(s));
2544
2544
  });
2545
2545
  }
2546
2546
  async rate(e, s) {
@@ -2561,7 +2561,7 @@ class Cp extends w {
2561
2561
  blockers: ["agent-conversations"],
2562
2562
  blocks: ["agent-conversations"]
2563
2563
  });
2564
- this.dispatch(Ra(s));
2564
+ this.dispatch(Ta(s));
2565
2565
  }
2566
2566
  }
2567
2567
  class k extends w {
@@ -2689,18 +2689,18 @@ class Ie extends k {
2689
2689
  }), n;
2690
2690
  }
2691
2691
  }
2692
- class xp extends Ie {
2692
+ class Mp extends Ie {
2693
2693
  constructor() {
2694
2694
  super(...arguments);
2695
2695
  y(this, "name", "Asset Attachment");
2696
2696
  y(this, "url", "/asset-attachments");
2697
- y(this, "initializeAttachments", _t);
2697
+ y(this, "initializeAttachments", St);
2698
2698
  y(this, "addAttachments", ri);
2699
- y(this, "updateAttachments", Fa);
2699
+ y(this, "updateAttachments", Ea);
2700
2700
  y(this, "removeAttachments", di);
2701
- y(this, "removeAttachment", ka);
2702
- y(this, "setAttachment", Ea);
2703
- y(this, "selectAttachment", ja);
2701
+ y(this, "removeAttachment", Fa);
2702
+ y(this, "setAttachment", Ia);
2703
+ y(this, "selectAttachment", qa);
2704
2704
  }
2705
2705
  buildOfflineAttachment(s) {
2706
2706
  return R({
@@ -2737,10 +2737,10 @@ class xp extends Ie {
2737
2737
  blocks: [],
2738
2738
  blockers: []
2739
2739
  });
2740
- this.dispatch(_t(i));
2740
+ this.dispatch(St(i));
2741
2741
  }
2742
2742
  }
2743
- function mt(t, e) {
2743
+ function pt(t, e) {
2744
2744
  const s = [];
2745
2745
  let i = 0;
2746
2746
  const n = t.length;
@@ -2748,7 +2748,7 @@ function mt(t, e) {
2748
2748
  s.push(t.slice(i, i += e));
2749
2749
  return s;
2750
2750
  }
2751
- class Mp extends w {
2751
+ class zp extends w {
2752
2752
  // Basic CRUD functions
2753
2753
  add(e) {
2754
2754
  const { store: s } = this.client;
@@ -2759,7 +2759,7 @@ class Mp extends w {
2759
2759
  created_by: i,
2760
2760
  submitted_at: n
2761
2761
  });
2762
- this.dispatch(Tt(a));
2762
+ this.dispatch(Rt(a));
2763
2763
  const o = this.enqueueRequest({
2764
2764
  description: "Create asset",
2765
2765
  method: d.POST,
@@ -2771,11 +2771,11 @@ class Mp extends w {
2771
2771
  return o.then((r) => {
2772
2772
  this.dispatch(Ee(r));
2773
2773
  }).catch(() => {
2774
- this.dispatch(Rt(a.offline_id));
2774
+ this.dispatch(Ot(a.offline_id));
2775
2775
  }), [a, o];
2776
2776
  }
2777
2777
  update(e) {
2778
- const { store: s } = this.client, i = Ot(e.offline_id)(s.getState());
2778
+ const { store: s } = this.client, i = wt(e.offline_id)(s.getState());
2779
2779
  if (!i)
2780
2780
  throw new Error(`No asset with id ${e.offline_id} found in the store`);
2781
2781
  const n = {
@@ -2800,10 +2800,10 @@ class Mp extends w {
2800
2800
  }), [n, a];
2801
2801
  }
2802
2802
  async remove(e) {
2803
- const { store: s } = this.client, i = s.getState(), n = Ot(e)(i);
2803
+ const { store: s } = this.client, i = s.getState(), n = wt(e)(i);
2804
2804
  if (!n) throw new Error(`No asset with id ${e} found in the store`);
2805
- const a = Pa(e)(i), o = zc(e)(i), r = er(e)(i);
2806
- if (this.dispatch(Rt(e)), a.length > 0) {
2805
+ const a = ja(e)(i), o = zc(e)(i), r = er(e)(i);
2806
+ if (this.dispatch(Ot(e)), a.length > 0) {
2807
2807
  const u = a.map(({ offline_id: c }) => c);
2808
2808
  this.dispatch(di(u));
2809
2809
  }
@@ -2822,11 +2822,11 @@ class Mp extends w {
2822
2822
  blockers: [e],
2823
2823
  blocks: []
2824
2824
  }).catch((u) => {
2825
- throw this.dispatch(Tt(n)), this.dispatch(ri(a)), this.dispatch(ct(o)), this.dispatch(Ji(r)), u;
2825
+ throw this.dispatch(Rt(n)), this.dispatch(ri(a)), this.dispatch(ct(o)), this.dispatch(Ji(r)), u;
2826
2826
  });
2827
2827
  }
2828
2828
  bulkAdd(e, s, i, n) {
2829
- const a = (/* @__PURE__ */ new Date()).toISOString(), o = le(), r = mt(e, n).map((l) => {
2829
+ const a = (/* @__PURE__ */ new Date()).toISOString(), o = le(), r = pt(e, n).map((l) => {
2830
2830
  const h = l.map((m) => R(m));
2831
2831
  return {
2832
2832
  batchId: le(),
@@ -2871,17 +2871,17 @@ class Mp extends w {
2871
2871
  blockers: [],
2872
2872
  blocks: []
2873
2873
  });
2874
- this.dispatch(Ca(s));
2874
+ this.dispatch(Da(s));
2875
2875
  }
2876
2876
  }
2877
- class zp extends w {
2877
+ class $p extends w {
2878
2878
  add(e) {
2879
2879
  const { store: s } = this.client, i = s.getState().userReducer.currentUser.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
2880
2880
  ...e,
2881
2881
  created_by: i,
2882
2882
  submitted_at: n
2883
2883
  });
2884
- this.dispatch(vt(a));
2884
+ this.dispatch(It(a));
2885
2885
  const o = this.enqueueRequest({
2886
2886
  description: "Add asset stage completion",
2887
2887
  method: d.POST,
@@ -2896,16 +2896,16 @@ class zp extends w {
2896
2896
  blocks: [a.offline_id]
2897
2897
  });
2898
2898
  return o.then((r) => {
2899
- this.dispatch(Ua(r));
2899
+ this.dispatch($a(r));
2900
2900
  }).catch(() => {
2901
- this.dispatch(Et(a.offline_id));
2901
+ this.dispatch(Ft(a.offline_id));
2902
2902
  }), [a, o];
2903
2903
  }
2904
2904
  delete(e) {
2905
- const { store: s } = this.client, i = Ga(e)(s.getState());
2905
+ const { store: s } = this.client, i = Va(e)(s.getState());
2906
2906
  if (!i)
2907
2907
  throw new Error(`Expected asset stage completion with id ${e} to exist`);
2908
- this.dispatch(Et(e));
2908
+ this.dispatch(Ft(e));
2909
2909
  const n = this.enqueueRequest({
2910
2910
  description: "Delete asset stage completion",
2911
2911
  method: d.DELETE,
@@ -2914,7 +2914,7 @@ class zp extends w {
2914
2914
  blocks: []
2915
2915
  });
2916
2916
  return n.catch(() => {
2917
- this.dispatch(vt(i));
2917
+ this.dispatch(It(i));
2918
2918
  }), n;
2919
2919
  }
2920
2920
  bulkAdd(e) {
@@ -2923,7 +2923,7 @@ class zp extends w {
2923
2923
  created_by: n,
2924
2924
  submitted_at: i
2925
2925
  })), r = o.map(({ offline_id: c }) => c);
2926
- this.dispatch(It(o));
2926
+ this.dispatch(Et(o));
2927
2927
  const u = this.enqueueRequest({
2928
2928
  description: "Bulk create asset stage completions",
2929
2929
  method: d.POST,
@@ -2936,14 +2936,14 @@ class zp extends w {
2936
2936
  blocks: r
2937
2937
  });
2938
2938
  return u.then((c) => {
2939
- this.dispatch(Va(c));
2939
+ this.dispatch(Ua(c));
2940
2940
  }).catch(() => {
2941
- this.dispatch(Ft(r));
2941
+ this.dispatch(kt(r));
2942
2942
  }), [o, u];
2943
2943
  }
2944
2944
  bulkDelete(e) {
2945
- const { store: s } = this.client, i = La(e)(s.getState());
2946
- this.dispatch(Ft(e));
2945
+ const { store: s } = this.client, i = Ga(e)(s.getState());
2946
+ this.dispatch(kt(e));
2947
2947
  const n = this.enqueueRequest({
2948
2948
  description: "Deleting asset stage completions",
2949
2949
  method: d.DELETE,
@@ -2955,7 +2955,7 @@ class zp extends w {
2955
2955
  blocks: []
2956
2956
  });
2957
2957
  return n.catch(() => {
2958
- this.dispatch(It(i));
2958
+ this.dispatch(Et(i));
2959
2959
  }), n;
2960
2960
  }
2961
2961
  async refreshStore(e) {
@@ -2969,10 +2969,10 @@ class zp extends w {
2969
2969
  blockers: [],
2970
2970
  blocks: []
2971
2971
  });
2972
- this.dispatch($a(s));
2972
+ this.dispatch(za(s));
2973
2973
  }
2974
2974
  }
2975
- class $p extends w {
2975
+ class Up extends w {
2976
2976
  bulkAdd(e, s) {
2977
2977
  const i = (/* @__PURE__ */ new Date()).toISOString(), n = this.client.store.getState().userReducer.currentUser.id, a = e.map((u) => R(u)), o = a.map((u) => ({ ...u, asset_type: s, created_by: n, submitted_at: i }));
2978
2978
  this.dispatch(Ke(o));
@@ -2995,7 +2995,7 @@ class $p extends w {
2995
2995
  }), [o, r];
2996
2996
  }
2997
2997
  async bulkUpdate(e, s) {
2998
- const n = this.client.store.getState(), a = jt(e.map(({ offline_id: o }) => o))(n);
2998
+ const n = this.client.store.getState(), a = Pt(e.map(({ offline_id: o }) => o))(n);
2999
2999
  return this.dispatch(Ue(e)), this.enqueueRequest({
3000
3000
  description: "Edit asset stages",
3001
3001
  method: d.PATCH,
@@ -3010,7 +3010,7 @@ class $p extends w {
3010
3010
  });
3011
3011
  }
3012
3012
  async bulkDelete(e) {
3013
- const { store: s } = this.client, i = jt(e)(s.getState());
3013
+ const { store: s } = this.client, i = Pt(e)(s.getState());
3014
3014
  this.dispatch(Ye(e));
3015
3015
  const n = this.enqueueRequest({
3016
3016
  description: "Delete asset stages",
@@ -3027,13 +3027,13 @@ class $p extends w {
3027
3027
  }), n;
3028
3028
  }
3029
3029
  update(e) {
3030
- const { store: s } = this.client, i = Ka(e.offline_id)(s.getState());
3030
+ const { store: s } = this.client, i = Wa(e.offline_id)(s.getState());
3031
3031
  if (!i) throw new Error(`No asset stage with id ${e.offline_id} found in the store`);
3032
3032
  const n = {
3033
3033
  ...i,
3034
3034
  ...e
3035
3035
  };
3036
- this.dispatch(qt(n));
3036
+ this.dispatch(jt(n));
3037
3037
  const a = this.enqueueRequest({
3038
3038
  description: "Update asset stage",
3039
3039
  method: d.PATCH,
@@ -3048,9 +3048,9 @@ class $p extends w {
3048
3048
  blocks: [i.offline_id]
3049
3049
  });
3050
3050
  return a.then((o) => {
3051
- this.dispatch(qt(o));
3051
+ this.dispatch(jt(o));
3052
3052
  }).catch(() => {
3053
- this.dispatch(Ha(i));
3053
+ this.dispatch(Na(i));
3054
3054
  }), [n, a];
3055
3055
  }
3056
3056
  async refreshStore(e) {
@@ -3064,20 +3064,20 @@ class $p extends w {
3064
3064
  blockers: [],
3065
3065
  blocks: []
3066
3066
  });
3067
- this.dispatch(Na(s));
3067
+ this.dispatch(Ba(s));
3068
3068
  }
3069
3069
  }
3070
- class Up extends Ie {
3070
+ class Vp extends Ie {
3071
3071
  constructor() {
3072
3072
  super(...arguments);
3073
3073
  y(this, "name", "Asset Type Attachment");
3074
3074
  y(this, "url", "/asset-type-attachments");
3075
3075
  y(this, "addAttachments", bi);
3076
- y(this, "updateAttachments", Za);
3076
+ y(this, "updateAttachments", Qa);
3077
3077
  y(this, "removeAttachments", _i);
3078
- y(this, "removeAttachment", eo);
3079
- y(this, "setAttachment", Qa);
3080
- y(this, "selectAttachment", so);
3078
+ y(this, "removeAttachment", Za);
3079
+ y(this, "setAttachment", Xa);
3080
+ y(this, "selectAttachment", to);
3081
3081
  }
3082
3082
  buildOfflineAttachment(s) {
3083
3083
  return R({
@@ -3114,10 +3114,10 @@ class Up extends Ie {
3114
3114
  blocks: [],
3115
3115
  blockers: []
3116
3116
  });
3117
- this.dispatch(Xa(i));
3117
+ this.dispatch(Ja(i));
3118
3118
  }
3119
3119
  }
3120
- class Vp extends k {
3120
+ class Gp extends k {
3121
3121
  async bulkAdd(e) {
3122
3122
  var u;
3123
3123
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
@@ -3145,7 +3145,7 @@ class Vp extends k {
3145
3145
  };
3146
3146
  o.push(T);
3147
3147
  }
3148
- this.dispatch(oo(a));
3148
+ this.dispatch(ao(a));
3149
3149
  const r = this.enqueueRequest({
3150
3150
  description: "Add asset type fields attachments",
3151
3151
  method: d.POST,
@@ -3159,10 +3159,10 @@ class Vp extends k {
3159
3159
  blocks: a.map((c) => c.offline_id)
3160
3160
  });
3161
3161
  return r.then((c) => {
3162
- this.processPresignedUrls(c.presigned_urls), this.dispatch(co(c.attachments));
3162
+ this.processPresignedUrls(c.presigned_urls), this.dispatch(oo(c.attachments));
3163
3163
  }).catch(() => {
3164
3164
  this.dispatch(
3165
- ro(
3165
+ co(
3166
3166
  a.map((c) => c.offline_id)
3167
3167
  )
3168
3168
  );
@@ -3179,10 +3179,10 @@ class Vp extends k {
3179
3179
  blockers: [e.toString()],
3180
3180
  blocks: []
3181
3181
  });
3182
- this.dispatch(ao(s));
3182
+ this.dispatch(no(s));
3183
3183
  }
3184
3184
  }
3185
- class Gp extends w {
3185
+ class Lp extends w {
3186
3186
  add(e) {
3187
3187
  var r;
3188
3188
  const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
@@ -3190,7 +3190,7 @@ class Gp extends w {
3190
3190
  created_by: i,
3191
3191
  submitted_at: n
3192
3192
  });
3193
- this.dispatch(po(a));
3193
+ this.dispatch(mo(a));
3194
3194
  const o = this.enqueueRequest({
3195
3195
  description: "Add Asset Type Fields",
3196
3196
  method: d.POST,
@@ -3200,9 +3200,9 @@ class Gp extends w {
3200
3200
  blocks: [a.offline_id]
3201
3201
  });
3202
3202
  return o.then((u) => {
3203
- this.dispatch(fo(u));
3203
+ this.dispatch(po(u));
3204
3204
  }).catch((u) => {
3205
- throw this.dispatch(yo(a.offline_id)), u;
3205
+ throw this.dispatch(fo(a.offline_id)), u;
3206
3206
  }), [a, o];
3207
3207
  }
3208
3208
  async refreshStore(e) {
@@ -3216,13 +3216,13 @@ class Gp extends w {
3216
3216
  blockers: [],
3217
3217
  blocks: []
3218
3218
  });
3219
- this.dispatch(mo(s));
3219
+ this.dispatch(ho(s));
3220
3220
  }
3221
3221
  }
3222
- class Lp extends k {
3222
+ class Bp extends k {
3223
3223
  async bulkAdd(e, s) {
3224
3224
  var c;
3225
- const i = (/* @__PURE__ */ new Date()).toISOString(), n = (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id, a = mt(e, s ?? e.length), o = [], r = [];
3225
+ const i = (/* @__PURE__ */ new Date()).toISOString(), n = (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id, a = pt(e, s ?? e.length), o = [], r = [];
3226
3226
  for (const l of a) {
3227
3227
  const h = {}, m = [];
3228
3228
  for (const f of l) {
@@ -3239,7 +3239,7 @@ class Lp extends k {
3239
3239
  field_identifier: T
3240
3240
  });
3241
3241
  o.push(ee);
3242
- const pt = {
3242
+ const ft = {
3243
3243
  offline_id: ee.offline_id,
3244
3244
  file_name: S.name,
3245
3245
  file_sha1: E.sha1,
@@ -3247,7 +3247,7 @@ class Lp extends k {
3247
3247
  field_identifier: T,
3248
3248
  field_values: b
3249
3249
  };
3250
- m.push(pt);
3250
+ m.push(ft);
3251
3251
  }
3252
3252
  r.push({
3253
3253
  submitted_at: i,
@@ -3267,7 +3267,7 @@ class Lp extends k {
3267
3267
  return Promise.all(u).then((l) => {
3268
3268
  for (const m of l) this.processPresignedUrls(m.presigned_urls);
3269
3269
  const h = l.flatMap((m) => m.attachments);
3270
- this.dispatch(_o(h));
3270
+ this.dispatch(bo(h));
3271
3271
  }).catch((l) => {
3272
3272
  throw this.dispatch(
3273
3273
  Xe(
@@ -3280,7 +3280,7 @@ class Lp extends k {
3280
3280
  ];
3281
3281
  }
3282
3282
  async bulkDelete(e) {
3283
- const { store: s } = this.client, i = s.getState(), n = To(e)(i);
3283
+ const { store: s } = this.client, i = s.getState(), n = So(e)(i);
3284
3284
  this.dispatch(Xe(e));
3285
3285
  try {
3286
3286
  await this.enqueueRequest({
@@ -3306,7 +3306,7 @@ class Lp extends k {
3306
3306
  blockers: [],
3307
3307
  blocks: []
3308
3308
  });
3309
- this.dispatch(bo(s));
3309
+ this.dispatch(go(s));
3310
3310
  }
3311
3311
  }
3312
3312
  const Dl = (t) => Array.isArray(t) && t[0] instanceof File, Qs = (t) => {
@@ -3317,7 +3317,7 @@ const Dl = (t) => Array.isArray(t) && t[0] instanceof File, Qs = (t) => {
3317
3317
  }
3318
3318
  return { values: s, files: e };
3319
3319
  };
3320
- class Bp extends k {
3320
+ class Np extends k {
3321
3321
  add(e) {
3322
3322
  var o;
3323
3323
  const { store: s } = this.client, i = s.getState(), n = R({
@@ -3396,7 +3396,7 @@ class Bp extends k {
3396
3396
  this.dispatch(Dc(s));
3397
3397
  }
3398
3398
  }
3399
- class Np extends w {
3399
+ class Hp extends w {
3400
3400
  add(e) {
3401
3401
  var o;
3402
3402
  const { store: s } = this.client, i = s.getState(), n = R({
@@ -3411,13 +3411,13 @@ class Np extends w {
3411
3411
  blockers: [e.asset, e.fields_revision],
3412
3412
  blocks: [n.offline_id]
3413
3413
  });
3414
- return this.dispatch(zt(n)), a.then((r) => (this.dispatch(Fe(r)), r)).catch(() => {
3415
- this.dispatch($t(n.offline_id));
3414
+ return this.dispatch($t(n)), a.then((r) => (this.dispatch(Fe(r)), r)).catch(() => {
3415
+ this.dispatch(Ut(n.offline_id));
3416
3416
  }), [n, a];
3417
3417
  }
3418
3418
  bulkAdd(e, s) {
3419
3419
  var c;
3420
- const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = Qs(e.values), a = [], o = mt(e.payloads, s ?? e.payloads.length), r = [];
3420
+ const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = Qs(e.values), a = [], o = pt(e.payloads, s ?? e.payloads.length), r = [];
3421
3421
  for (const l of o) {
3422
3422
  const h = [];
3423
3423
  for (const m of l) {
@@ -3441,7 +3441,7 @@ class Np extends w {
3441
3441
  field_values: h
3442
3442
  });
3443
3443
  }
3444
- this.dispatch(vo(a));
3444
+ this.dispatch(wo(a));
3445
3445
  const u = [];
3446
3446
  for (const l of r) {
3447
3447
  const h = l.field_values.map((T) => T.asset), m = l.field_values.map((T) => T.fields_revision), f = l.field_values.map((T) => T.offline_id), b = this.enqueueRequest({
@@ -3455,13 +3455,13 @@ class Np extends w {
3455
3455
  u.push(b);
3456
3456
  }
3457
3457
  return Promise.all(u).then((l) => {
3458
- this.dispatch(Io(l.flat()));
3458
+ this.dispatch(vo(l.flat()));
3459
3459
  }).catch(() => {
3460
- this.dispatch(Eo(a.map((l) => l.offline_id)));
3460
+ this.dispatch(Io(a.map((l) => l.offline_id)));
3461
3461
  }), [a, u];
3462
3462
  }
3463
3463
  update(e) {
3464
- const { store: s } = this.client, i = s.getState(), n = Ut(e.offline_id)(i);
3464
+ const { store: s } = this.client, i = s.getState(), n = Vt(e.offline_id)(i);
3465
3465
  if (!n)
3466
3466
  throw new Error(`Expected AssetTypeFieldValues with offline_id ${e.offline_id} to exist`);
3467
3467
  const a = {
@@ -3488,11 +3488,11 @@ class Np extends w {
3488
3488
  }), [a, o];
3489
3489
  }
3490
3490
  async delete(e) {
3491
- const { store: s } = this.client, i = s.getState(), n = Ut(e)(i);
3491
+ const { store: s } = this.client, i = s.getState(), n = Vt(e)(i);
3492
3492
  if (!n)
3493
3493
  throw new Error(`Expected submission with offline_id ${e} to exist`);
3494
- const a = Ro(e)(i);
3495
- this.dispatch($t(e)), this.dispatch(Xe(a.map((o) => o.offline_id)));
3494
+ const a = To(e)(i);
3495
+ this.dispatch(Ut(e)), this.dispatch(Xe(a.map((o) => o.offline_id)));
3496
3496
  try {
3497
3497
  await this.enqueueRequest({
3498
3498
  description: "Delete asset type field values",
@@ -3502,7 +3502,7 @@ class Np extends w {
3502
3502
  blocks: []
3503
3503
  });
3504
3504
  } catch (o) {
3505
- throw this.dispatch(zt(n)), this.dispatch(Je(a)), o;
3505
+ throw this.dispatch($t(n)), this.dispatch(Je(a)), o;
3506
3506
  }
3507
3507
  }
3508
3508
  async refreshStore(e) {
@@ -3516,17 +3516,17 @@ class Np extends w {
3516
3516
  blockers: [],
3517
3517
  blocks: []
3518
3518
  });
3519
- this.dispatch(wo(s));
3519
+ this.dispatch(Oo(s));
3520
3520
  }
3521
3521
  }
3522
- class Hp extends w {
3522
+ class Wp extends w {
3523
3523
  add(e) {
3524
3524
  const { store: s } = this.client, i = s.getState().userReducer.currentUser.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
3525
3525
  ...e,
3526
3526
  created_by: i,
3527
3527
  submitted_at: n
3528
3528
  });
3529
- this.dispatch(Gt(a));
3529
+ this.dispatch(Lt(a));
3530
3530
  const o = this.enqueueRequest({
3531
3531
  description: "Create asset type",
3532
3532
  method: d.POST,
@@ -3538,11 +3538,11 @@ class Hp extends w {
3538
3538
  return o.then((r) => {
3539
3539
  this.dispatch(ke(r));
3540
3540
  }).catch(() => {
3541
- this.dispatch(Lt(a.offline_id));
3541
+ this.dispatch(Bt(a.offline_id));
3542
3542
  }), [a, o];
3543
3543
  }
3544
3544
  update(e) {
3545
- const { store: s } = this.client, i = Bt(e.offline_id)(s.getState());
3545
+ const { store: s } = this.client, i = Nt(e.offline_id)(s.getState());
3546
3546
  if (!i)
3547
3547
  throw new Error(`Expected asset type with offline_id ${e.offline_id} to exist`);
3548
3548
  const n = {
@@ -3570,18 +3570,18 @@ class Hp extends w {
3570
3570
  }), [n, a];
3571
3571
  }
3572
3572
  async delete(e) {
3573
- const { store: s } = this.client, i = s.getState(), n = Bt(e)(i);
3573
+ const { store: s } = this.client, i = s.getState(), n = Nt(e)(i);
3574
3574
  if (!n)
3575
3575
  throw new Error(`Expected asset type with offline_id ${e} to exist`);
3576
- const a = pi(e)(i), o = Ja(e)(i), r = io(e)(i);
3577
- return this.dispatch(Lt(e)), this.dispatch(xa(a.map((u) => u.offline_id))), this.dispatch(Ye(o.map((u) => u.offline_id))), this.dispatch(_i(r.map(({ offline_id: u }) => u))), this.enqueueRequest({
3576
+ const a = pi(e)(i), o = Ya(e)(i), r = so(e)(i);
3577
+ return this.dispatch(Bt(e)), this.dispatch(Ca(a.map((u) => u.offline_id))), this.dispatch(Ye(o.map((u) => u.offline_id))), this.dispatch(_i(r.map(({ offline_id: u }) => u))), this.enqueueRequest({
3578
3578
  description: "Delete asset type",
3579
3579
  method: d.DELETE,
3580
3580
  url: `/asset-types/${e}/`,
3581
3581
  blockers: [e],
3582
3582
  blocks: []
3583
3583
  }).catch((u) => {
3584
- throw this.dispatch(Gt(n)), this.dispatch(hi(a)), this.dispatch(Ke(o)), this.dispatch(bi(r)), u;
3584
+ throw this.dispatch(Lt(n)), this.dispatch(hi(a)), this.dispatch(Ke(o)), this.dispatch(bi(r)), u;
3585
3585
  });
3586
3586
  }
3587
3587
  async refreshStore(e) {
@@ -3595,10 +3595,10 @@ class Hp extends w {
3595
3595
  blockers: [],
3596
3596
  blocks: []
3597
3597
  });
3598
- this.dispatch(qo(s));
3598
+ this.dispatch(ko(s));
3599
3599
  }
3600
3600
  }
3601
- class Wp extends w {
3601
+ class Kp extends w {
3602
3602
  add(e) {
3603
3603
  var r;
3604
3604
  const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
@@ -3606,7 +3606,7 @@ class Wp extends w {
3606
3606
  created_by: i,
3607
3607
  submitted_at: n
3608
3608
  });
3609
- this.dispatch(Wt(a));
3609
+ this.dispatch(Kt(a));
3610
3610
  const o = this.enqueueRequest({
3611
3611
  description: "Create Category",
3612
3612
  method: d.POST,
@@ -3618,11 +3618,11 @@ class Wp extends w {
3618
3618
  return [a, o];
3619
3619
  }
3620
3620
  update(e) {
3621
- const s = this.client.store.getState(), i = Kt(e.offline_id)(s);
3621
+ const s = this.client.store.getState(), i = Yt(e.offline_id)(s);
3622
3622
  if (!i)
3623
3623
  throw new Error(`Expected an existing category with offline_id ${e.offline_id}`);
3624
3624
  const n = { ...i, ...e };
3625
- this.dispatch(xo(n));
3625
+ this.dispatch(Co(n));
3626
3626
  const a = this.enqueueRequest({
3627
3627
  description: "Edit Category",
3628
3628
  method: d.PATCH,
@@ -3634,10 +3634,10 @@ class Wp extends w {
3634
3634
  return [n, a];
3635
3635
  }
3636
3636
  remove(e) {
3637
- const { store: s } = this.client, i = Kt(e)(s.getState());
3637
+ const { store: s } = this.client, i = Yt(e)(s.getState());
3638
3638
  if (!i)
3639
3639
  throw new Error(`No category with id ${e} found in the store`);
3640
- this.dispatch(Mo(e));
3640
+ this.dispatch(xo(e));
3641
3641
  const n = this.enqueueRequest({
3642
3642
  description: "Delete Category",
3643
3643
  method: d.DELETE,
@@ -3646,7 +3646,7 @@ class Wp extends w {
3646
3646
  blocks: []
3647
3647
  });
3648
3648
  return n.catch(() => {
3649
- this.dispatch(Wt(i));
3649
+ this.dispatch(Kt(i));
3650
3650
  }), n;
3651
3651
  }
3652
3652
  async refreshStore(e) {
@@ -3660,20 +3660,20 @@ class Wp extends w {
3660
3660
  blocks: [],
3661
3661
  blockers: []
3662
3662
  });
3663
- this.dispatch(Co(s));
3663
+ this.dispatch(Do(s));
3664
3664
  }
3665
3665
  }
3666
- class Kp extends Ie {
3666
+ class Yp extends Ie {
3667
3667
  constructor() {
3668
3668
  super(...arguments);
3669
3669
  y(this, "name", "Document Attachment");
3670
3670
  y(this, "url", "/document-attachments");
3671
- y(this, "addAttachments", Uo);
3672
- y(this, "updateAttachments", Go);
3673
- y(this, "removeAttachments", Bo);
3674
- y(this, "removeAttachment", Lo);
3675
- y(this, "setAttachment", Vo);
3676
- y(this, "selectAttachment", Ho);
3671
+ y(this, "addAttachments", $o);
3672
+ y(this, "updateAttachments", Vo);
3673
+ y(this, "removeAttachments", Lo);
3674
+ y(this, "removeAttachment", Go);
3675
+ y(this, "setAttachment", Uo);
3676
+ y(this, "selectAttachment", No);
3677
3677
  }
3678
3678
  buildOfflineAttachment(s) {
3679
3679
  return R({
@@ -3767,7 +3767,7 @@ class Kp extends Ie {
3767
3767
  blocks: [],
3768
3768
  blockers: []
3769
3769
  });
3770
- this.dispatch($o(n));
3770
+ this.dispatch(zo(n));
3771
3771
  const a = await this.enqueueRequest({
3772
3772
  description: "Get document attachments",
3773
3773
  method: d.GET,
@@ -3778,7 +3778,7 @@ class Kp extends Ie {
3778
3778
  this.dispatch(this.addAttachments(a));
3779
3779
  }
3780
3780
  }
3781
- class Yp extends w {
3781
+ class Jp extends w {
3782
3782
  add(e) {
3783
3783
  var r;
3784
3784
  const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
@@ -3786,7 +3786,7 @@ class Yp extends w {
3786
3786
  created_by: i,
3787
3787
  submitted_at: n
3788
3788
  });
3789
- this.dispatch(Xt([a]));
3789
+ this.dispatch(Ko([a]));
3790
3790
  const o = this.enqueueRequest({
3791
3791
  description: "Create Document",
3792
3792
  method: d.POST,
@@ -3893,10 +3893,10 @@ class Yp extends w {
3893
3893
  blockers: [],
3894
3894
  blocks: []
3895
3895
  });
3896
- this.dispatch(Ko(await i)), this.dispatch(Xt(await n));
3896
+ this.dispatch(Wo([...await i, ...await n]));
3897
3897
  }
3898
3898
  }
3899
- class Jp extends w {
3899
+ class Xp extends w {
3900
3900
  async add(e, s) {
3901
3901
  return this.enqueueRequest({
3902
3902
  description: "Add email domain to organization",
@@ -3929,7 +3929,7 @@ class Jp extends w {
3929
3929
  this.dispatch(ec(s));
3930
3930
  }
3931
3931
  }
3932
- class Xp extends w {
3932
+ class Qp extends w {
3933
3933
  async getVerificationCode(e) {
3934
3934
  return this.enqueueRequest({
3935
3935
  description: "Get verification code",
@@ -3955,13 +3955,13 @@ class Xp extends w {
3955
3955
  const De = {}, Be = /* @__PURE__ */ new Set();
3956
3956
  let Ce = 0, Ne = 0, He = 0;
3957
3957
  const Cl = 20;
3958
- class Qp extends w {
3958
+ class Zp extends w {
3959
3959
  constructor() {
3960
3960
  super(...arguments);
3961
3961
  y(this, "host");
3962
3962
  // NOTE: If you alter the schema (of the IndexedDB database) in any way, you must increment the version in order to
3963
3963
  // migrate the store. This allows idb to automatically migrate the user's existing data to the new schema.
3964
- y(this, "_dbPromise", sa("fileCache", 1, {
3964
+ y(this, "_dbPromise", ta("fileCache", 1, {
3965
3965
  upgrade(s) {
3966
3966
  s.createObjectStore("files");
3967
3967
  }
@@ -3970,7 +3970,7 @@ class Qp extends w {
3970
3970
  async renewUploadUrl(s) {
3971
3971
  const i = await this.fetchCache(s);
3972
3972
  if (!i) throw new Error(`File with sha1 ${s} not found in cache`);
3973
- const n = await yt(i, s), a = await this.enqueueRequest({
3973
+ const n = await At(i, s), a = await this.enqueueRequest({
3974
3974
  description: "Get S3 URL",
3975
3975
  method: d.GET,
3976
3976
  url: "/authentication/files/presigned-upload-url/",
@@ -4019,7 +4019,7 @@ class Qp extends w {
4019
4019
  async uploadFileToS3(s) {
4020
4020
  const i = await this.fetchCache(s);
4021
4021
  if (!i) throw new Error(`File with sha1 ${s} not found in cache`);
4022
- const n = await yt(i, s), a = {
4022
+ const n = await At(i, s), a = {
4023
4023
  file_name: i.name,
4024
4024
  file_sha1: s,
4025
4025
  file: n
@@ -4060,7 +4060,7 @@ class Qp extends w {
4060
4060
  return o;
4061
4061
  }
4062
4062
  if (s.startsWith("blob:")) {
4063
- const l = await _a(s), h = new File([l], n ?? i, { type: l.type });
4063
+ const l = await ba(s), h = new File([l], n ?? i, { type: l.type });
4064
4064
  return await this.addCache(h, i), h;
4065
4065
  }
4066
4066
  let r = De[a], u = !0;
@@ -4103,7 +4103,7 @@ class Qp extends w {
4103
4103
  if (!h)
4104
4104
  throw new Error("File has no extension");
4105
4105
  const m = n ?? l + "." + h;
4106
- if (c = ba(c, m), !c.name)
4106
+ if (c = ga(c, m), !c.name)
4107
4107
  throw new Error("Failed to set file's name");
4108
4108
  await this.addCache(c, l), De[a] = new Promise((f) => {
4109
4109
  f(c);
@@ -4112,7 +4112,7 @@ class Qp extends w {
4112
4112
  return c;
4113
4113
  }
4114
4114
  }
4115
- class Zp extends k {
4115
+ class ef extends k {
4116
4116
  async bulkAdd(e) {
4117
4117
  var u;
4118
4118
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
@@ -4177,7 +4177,7 @@ class Zp extends k {
4177
4177
  this.dispatch(lc(s));
4178
4178
  }
4179
4179
  }
4180
- class ef extends k {
4180
+ class tf extends k {
4181
4181
  add(e) {
4182
4182
  var r;
4183
4183
  const { store: s } = this.client, n = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = R({
@@ -4215,7 +4215,7 @@ class ef extends k {
4215
4215
  this.dispatch(gc(s));
4216
4216
  }
4217
4217
  }
4218
- const tf = async (t) => {
4218
+ const sf = async (t) => {
4219
4219
  const e = {}, s = [];
4220
4220
  for (const i of t) {
4221
4221
  if (i.type !== "section")
@@ -4239,7 +4239,7 @@ const tf = async (t) => {
4239
4239
  }
4240
4240
  return { fields: s, images: e };
4241
4241
  };
4242
- class sf extends k {
4242
+ class nf extends k {
4243
4243
  add(e, s) {
4244
4244
  var c;
4245
4245
  const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (c = i.getState().userReducer.currentUser) == null ? void 0 : c.id, o = R({
@@ -4309,7 +4309,7 @@ class sf extends k {
4309
4309
  this.dispatch(wc(s));
4310
4310
  }
4311
4311
  }
4312
- class nf extends k {
4312
+ class af extends k {
4313
4313
  async bulkAdd(e) {
4314
4314
  var u;
4315
4315
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
@@ -4390,7 +4390,7 @@ class nf extends k {
4390
4390
  this.dispatch(Fc(s));
4391
4391
  }
4392
4392
  }
4393
- class af extends k {
4393
+ class of extends k {
4394
4394
  async add(e) {
4395
4395
  var h;
4396
4396
  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({
@@ -4523,7 +4523,7 @@ class af extends k {
4523
4523
  this.dispatch(Uc(s));
4524
4524
  }
4525
4525
  }
4526
- class of extends w {
4526
+ class cf extends w {
4527
4527
  add(e) {
4528
4528
  var r;
4529
4529
  const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = R({
@@ -4582,7 +4582,7 @@ class of extends w {
4582
4582
  this.dispatch(Yc(s));
4583
4583
  }
4584
4584
  }
4585
- class cf extends Ie {
4585
+ class rf extends Ie {
4586
4586
  constructor() {
4587
4587
  super(...arguments);
4588
4588
  y(this, "name", "Issue Attachment");
@@ -4632,7 +4632,7 @@ class cf extends Ie {
4632
4632
  this.dispatch(sr(i));
4633
4633
  }
4634
4634
  }
4635
- class rf extends w {
4635
+ class df extends w {
4636
4636
  add(e) {
4637
4637
  var a;
4638
4638
  const { store: s } = this.client, i = R({
@@ -4704,7 +4704,7 @@ class rf extends w {
4704
4704
  this.dispatch(lr(s));
4705
4705
  }
4706
4706
  }
4707
- class df extends w {
4707
+ class lf extends w {
4708
4708
  add(e) {
4709
4709
  var u;
4710
4710
  const { store: s } = this.client, i = s.getState(), n = (/* @__PURE__ */ new Date()).toISOString(), a = (u = i.userReducer.currentUser) == null ? void 0 : u.id, o = R({
@@ -4843,7 +4843,7 @@ class df extends w {
4843
4843
  this.dispatch(pr(s));
4844
4844
  }
4845
4845
  }
4846
- class lf extends k {
4846
+ class uf extends k {
4847
4847
  async bulkAdd(e) {
4848
4848
  var u;
4849
4849
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
@@ -4908,7 +4908,7 @@ class lf extends k {
4908
4908
  this.dispatch(br(s));
4909
4909
  }
4910
4910
  }
4911
- class uf extends w {
4911
+ class hf extends w {
4912
4912
  add(e) {
4913
4913
  var r;
4914
4914
  const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
@@ -4945,7 +4945,7 @@ class uf extends w {
4945
4945
  this.dispatch(Fr(s));
4946
4946
  }
4947
4947
  }
4948
- class hf extends k {
4948
+ class mf extends k {
4949
4949
  async bulkAdd(e) {
4950
4950
  var u;
4951
4951
  const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
@@ -5026,7 +5026,7 @@ class hf extends k {
5026
5026
  this.dispatch(Cr(s));
5027
5027
  }
5028
5028
  }
5029
- class mf extends w {
5029
+ class pf extends w {
5030
5030
  add(e) {
5031
5031
  var o;
5032
5032
  const { store: s } = this.client, i = s.getState(), n = R({
@@ -5104,7 +5104,7 @@ class mf extends w {
5104
5104
  this.dispatch(vr(s));
5105
5105
  }
5106
5106
  }
5107
- class pf extends w {
5107
+ class ff extends w {
5108
5108
  add(e) {
5109
5109
  var o;
5110
5110
  const { store: s } = this.client, i = s.getState(), n = R({
@@ -5177,7 +5177,7 @@ class pf extends w {
5177
5177
  this.dispatch(Vr(s));
5178
5178
  }
5179
5179
  }
5180
- class ff extends w {
5180
+ class yf extends w {
5181
5181
  async refreshStore(e) {
5182
5182
  const s = await this.enqueueRequest({
5183
5183
  description: "Get issue updates",
@@ -5192,7 +5192,7 @@ class ff extends w {
5192
5192
  this.dispatch(Wr(s));
5193
5193
  }
5194
5194
  }
5195
- class xl extends xn {
5195
+ class xl extends Cn {
5196
5196
  constructor(e) {
5197
5197
  super(e);
5198
5198
  }
@@ -5203,7 +5203,7 @@ function zl(t) {
5203
5203
  if (!t.refresh) throw new Error("Missing refresh token");
5204
5204
  return { accessToken: t.access, refreshToken: t.refresh };
5205
5205
  }
5206
- class yf extends xl {
5206
+ class Af extends xl {
5207
5207
  constructor() {
5208
5208
  super(...arguments);
5209
5209
  // _getTokenPair and _getRenewedTokens don't need to use enqueueRequest from the BaseApiService because
@@ -5244,7 +5244,7 @@ class yf extends xl {
5244
5244
  * Logs the user out
5245
5245
  */
5246
5246
  clearAuth() {
5247
- console.debug(this.constructor.name, "clearing auth;"), this.dispatch(Po(!1)), this.clearTokens(), this.dispatch({ type: ia }), this.dispatch({ type: Al });
5247
+ console.debug(this.constructor.name, "clearing auth;"), this.dispatch(jo(!1)), this.clearTokens(), this.dispatch({ type: sa }), this.dispatch({ type: Al });
5248
5248
  }
5249
5249
  /**
5250
5250
  * Attempts to renew tokens
@@ -5270,7 +5270,7 @@ class yf extends xl {
5270
5270
  const i = Date.now() / 1e3;
5271
5271
  let n;
5272
5272
  try {
5273
- n = na(s).exp ?? i;
5273
+ n = ia(s).exp ?? i;
5274
5274
  } catch {
5275
5275
  n = i;
5276
5276
  }
@@ -5325,7 +5325,7 @@ class yf extends xl {
5325
5325
  });
5326
5326
  }
5327
5327
  }
5328
- class Af extends w {
5328
+ class gf extends w {
5329
5329
  async getLicense(e) {
5330
5330
  const s = await this.enqueueRequest({
5331
5331
  description: "Get license",
@@ -5430,7 +5430,7 @@ class Af extends w {
5430
5430
  this.dispatch(td(Object.values(i)));
5431
5431
  }
5432
5432
  }
5433
- class gf extends w {
5433
+ class bf extends w {
5434
5434
  async update(e) {
5435
5435
  const s = this.enqueueRequest({
5436
5436
  description: "Edit organization access",
@@ -5464,7 +5464,7 @@ class gf extends w {
5464
5464
  this.dispatch(cd(s));
5465
5465
  }
5466
5466
  }
5467
- class bf extends w {
5467
+ class _f extends w {
5468
5468
  create(e) {
5469
5469
  return this.enqueueRequest({
5470
5470
  description: "Create organization",
@@ -5514,7 +5514,7 @@ class bf extends w {
5514
5514
  i[a.id] = a, this.dispatch(wd(Object.values(i)));
5515
5515
  }
5516
5516
  }
5517
- class _f extends w {
5517
+ class Sf extends w {
5518
5518
  async update(e) {
5519
5519
  return this.dispatch(hd(e)), this.enqueueRequest({
5520
5520
  description: "Edit project access",
@@ -5546,14 +5546,14 @@ class _f extends w {
5546
5546
  this.dispatch(bn(s));
5547
5547
  }
5548
5548
  }
5549
- class Sf extends Ie {
5549
+ class Tf extends Ie {
5550
5550
  constructor() {
5551
5551
  super(...arguments);
5552
5552
  y(this, "name", "Project Attachment");
5553
5553
  y(this, "url", "/project-attachments");
5554
5554
  y(this, "addAttachments", Md);
5555
5555
  y(this, "updateAttachments", Ud);
5556
- y(this, "removeAttachments", vn);
5556
+ y(this, "removeAttachments", wn);
5557
5557
  y(this, "removeAttachment", Vd);
5558
5558
  y(this, "setAttachment", zd);
5559
5559
  y(this, "selectAttachment", Ld);
@@ -5596,7 +5596,7 @@ class Sf extends Ie {
5596
5596
  this.dispatch(xd(i));
5597
5597
  }
5598
5598
  }
5599
- class Tf extends w {
5599
+ class Rf extends w {
5600
5600
  async saveExisting(e) {
5601
5601
  if (!e.offline_id)
5602
5602
  throw new Error(
@@ -5674,7 +5674,7 @@ class Tf extends w {
5674
5674
  this.dispatch(Hd(s));
5675
5675
  }
5676
5676
  }
5677
- class Rf extends w {
5677
+ class Of extends w {
5678
5678
  async add(e) {
5679
5679
  if (!e.bounds && !e.canvas_bounds)
5680
5680
  throw new Error("Project must either have bounds or canvas_bounds set");
@@ -5707,13 +5707,13 @@ class Rf extends w {
5707
5707
  });
5708
5708
  }
5709
5709
  async delete(e) {
5710
- const { store: s } = this.client, i = s.getState(), n = Tn(i), a = n[e];
5710
+ const { store: s } = this.client, i = s.getState(), n = mt(i), a = n[e];
5711
5711
  if (!a)
5712
5712
  throw new Error("Expected project to exist");
5713
5713
  const o = el(i).filter((l) => l.project === e);
5714
5714
  this.dispatch(Yd(o.map(({ offline_id: l }) => l)));
5715
5715
  const r = Bd(a.id)(i);
5716
- this.dispatch(vn(r.map(({ offline_id: l }) => l)));
5716
+ this.dispatch(wn(r.map(({ offline_id: l }) => l)));
5717
5717
  const u = fd(i);
5718
5718
  this.dispatch(pd(u.map(({ offline_id: l }) => l))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(_d(a));
5719
5719
  const c = sd(a.id)(i);
@@ -5765,7 +5765,7 @@ class Rf extends w {
5765
5765
  });
5766
5766
  }
5767
5767
  }
5768
- class Of extends w {
5768
+ class wf extends w {
5769
5769
  add(e) {
5770
5770
  const s = R({
5771
5771
  ...e,
@@ -5875,7 +5875,7 @@ class Of extends w {
5875
5875
  this.dispatch(nl(s));
5876
5876
  }
5877
5877
  }
5878
- class wf extends w {
5878
+ class vf extends w {
5879
5879
  async refreshStore(e, s) {
5880
5880
  const i = {}, n = await this.enqueueRequest({
5881
5881
  description: "Fetch organization users",
@@ -5901,99 +5901,99 @@ class wf extends w {
5901
5901
  var $l = /* @__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))($l || {});
5902
5902
  export {
5903
5903
  F as APIError,
5904
- Cp as AgentService,
5905
- xp as AssetAttachmentService,
5906
- Mp as AssetService,
5907
- zp as AssetStageCompletionService,
5908
- $p as AssetStageService,
5909
- Up as AssetTypeAttachmentService,
5910
- Lp as AssetTypeFieldValuesAttachmentService,
5911
- Np as AssetTypeFieldValuesService,
5912
- Vp as AssetTypeFieldsAttachmentService,
5913
- Gp as AssetTypeFieldsService,
5914
- Hp as AssetTypeService,
5915
- ca as AttachmentModel,
5904
+ xp as AgentService,
5905
+ Mp as AssetAttachmentService,
5906
+ zp as AssetService,
5907
+ $p as AssetStageCompletionService,
5908
+ Up as AssetStageService,
5909
+ Vp as AssetTypeAttachmentService,
5910
+ Bp as AssetTypeFieldValuesAttachmentService,
5911
+ Hp as AssetTypeFieldValuesService,
5912
+ Gp as AssetTypeFieldsAttachmentService,
5913
+ Lp as AssetTypeFieldsService,
5914
+ Wp as AssetTypeService,
5915
+ oa as AttachmentModel,
5916
5916
  w as BaseApiService,
5917
- Pp as BaseSDK,
5918
- Wp as CategoryService,
5917
+ Dp as BaseSDK,
5918
+ Kp as CategoryService,
5919
5919
  eu as DEFAULT_ISSUE_PRIORITY,
5920
5920
  Zl as DEFAULT_ISSUE_STATUS,
5921
- ha as DeferredPromise,
5922
- Kp as DocumentAttachmentService,
5923
- Yp as DocumentService,
5924
- aa as EMPTY_ARRAY,
5925
- oa as EMPTY_OBJECT,
5926
- Jp as EmailDomainsService,
5927
- Xp as EmailVerificationService,
5928
- Qp as FileService,
5929
- Zp as FormRevisionAttachmentService,
5930
- ef as FormRevisionService,
5931
- sf as FormService,
5932
- nf as FormSubmissionAttachmentService,
5933
- Bp as FormSubmissionService,
5934
- af as GeoImageService,
5921
+ ua as DeferredPromise,
5922
+ Yp as DocumentAttachmentService,
5923
+ Jp as DocumentService,
5924
+ na as EMPTY_ARRAY,
5925
+ aa as EMPTY_OBJECT,
5926
+ Xp as EmailDomainsService,
5927
+ Qp as EmailVerificationService,
5928
+ Zp as FileService,
5929
+ ef as FormRevisionAttachmentService,
5930
+ tf as FormRevisionService,
5931
+ nf as FormService,
5932
+ af as FormSubmissionAttachmentService,
5933
+ Np as FormSubmissionService,
5934
+ of as GeoImageService,
5935
5935
  d as HttpMethod,
5936
- of as IssueAssociationService,
5937
- cf as IssueAttachmentService,
5938
- rf as IssueCommentService,
5936
+ cf as IssueAssociationService,
5937
+ rf as IssueAttachmentService,
5938
+ df as IssueCommentService,
5939
5939
  si as IssuePriority,
5940
- df as IssueService,
5940
+ lf as IssueService,
5941
5941
  ii as IssueStatus,
5942
- hf as IssueTypeFieldValuesAttachmentService,
5943
- mf as IssueTypeFieldValuesService,
5944
- lf as IssueTypeFieldsAttachmentService,
5945
- uf as IssueTypeFieldsService,
5946
- pf as IssueTypeService,
5942
+ mf as IssueTypeFieldValuesAttachmentService,
5943
+ pf as IssueTypeFieldValuesService,
5944
+ uf as IssueTypeFieldsAttachmentService,
5945
+ hf as IssueTypeFieldsService,
5946
+ ff as IssueTypeService,
5947
5947
  I as IssueUpdateChange,
5948
- ff as IssueUpdateService,
5949
- yf as JWTService,
5950
- da as LicenseLevel,
5951
- Af as LicenseService,
5952
- la as LicenseStatus,
5953
- ua as OUTBOX_RETRY_DELAY,
5948
+ yf as IssueUpdateService,
5949
+ Af as JWTService,
5950
+ ra as LicenseLevel,
5951
+ gf as LicenseService,
5952
+ da as LicenseStatus,
5953
+ la as OUTBOX_RETRY_DELAY,
5954
5954
  ti as OrganizationAccessLevel,
5955
- gf as OrganizationAccessService,
5956
- bf as OrganizationService,
5955
+ bf as OrganizationAccessService,
5956
+ _f as OrganizationService,
5957
5957
  Te as OutboxCoordinator,
5958
- ra as PaddleCheckoutEvent,
5958
+ ca as PaddleCheckoutEvent,
5959
5959
  ei as ProjectAccessLevel,
5960
- _f as ProjectAccessService,
5961
- Sf as ProjectAttachmentService,
5962
- Tf as ProjectFileService,
5963
- Rf as ProjectService,
5964
- Of as TeamService,
5960
+ Sf as ProjectAccessService,
5961
+ Tf as ProjectAttachmentService,
5962
+ Rf as ProjectFileService,
5963
+ Of as ProjectService,
5964
+ wf as TeamService,
5965
5965
  we as UNKNOWN_ERROR_MESSAGE,
5966
- wf as UserService,
5967
- Vn as VERSION_REDUCER_KEY,
5966
+ vf as UserService,
5967
+ Un as VERSION_REDUCER_KEY,
5968
5968
  $l as VerificationCodeType,
5969
5969
  Tc as _selectLatestFormRevision,
5970
5970
  Dd as _setLatestRetryTime,
5971
5971
  Sd as acceptProjectInvite,
5972
- Tt as addAsset,
5972
+ Rt as addAsset,
5973
5973
  Su as addAssetAttachment,
5974
5974
  ri as addAssetAttachments,
5975
5975
  ju as addAssetStage,
5976
- vt as addAssetStageCompletion,
5977
- It as addAssetStageCompletions,
5976
+ It as addAssetStageCompletion,
5977
+ Et as addAssetStageCompletions,
5978
5978
  Ke as addAssetStages,
5979
- Gt as addAssetType,
5979
+ Lt as addAssetType,
5980
5980
  Cu as addAssetTypeAttachment,
5981
5981
  bi as addAssetTypeAttachments,
5982
- zt as addAssetTypeFieldValues,
5982
+ $t as addAssetTypeFieldValues,
5983
5983
  eh as addAssetTypeFieldValuesAttachment,
5984
5984
  Je as addAssetTypeFieldValuesAttachments,
5985
- vo as addAssetTypeFieldValuesMany,
5986
- po as addAssetTypeFields,
5985
+ wo as addAssetTypeFieldValuesMany,
5986
+ mo as addAssetTypeFields,
5987
5987
  $u as addAssetTypeFieldsAttachment,
5988
- oo as addAssetTypeFieldsAttachments,
5988
+ ao as addAssetTypeFieldsAttachments,
5989
5989
  Hu as addAssetTypeFieldsMany,
5990
5990
  hh as addAssetTypes,
5991
5991
  hi as addAssets,
5992
- Wt as addCategory,
5993
- Oa as addConversation,
5992
+ Kt as addCategory,
5993
+ Ra as addConversation,
5994
5994
  Oh as addDocumentAttachment,
5995
- Uo as addDocumentAttachments,
5996
- Xt as addDocuments,
5995
+ $o as addDocumentAttachments,
5996
+ Ko as addDocuments,
5997
5997
  tc as addEmailDomain,
5998
5998
  is as addForm,
5999
5999
  Ui as addFormRevision,
@@ -6027,39 +6027,39 @@ export {
6027
6027
  Yr as addIssueUpdates,
6028
6028
  fr as addIssues,
6029
6029
  Nm as addLicenses,
6030
- fp as addProjectAttachment,
6030
+ yp as addProjectAttachment,
6031
6031
  Md as addProjectAttachments,
6032
- _p as addProjectFile,
6032
+ Sp as addProjectFile,
6033
6033
  Wd as addProjectFiles,
6034
6034
  al as addTeam,
6035
6035
  Xm as addUsers,
6036
- Ia as agentsReducer,
6036
+ va as agentsReducer,
6037
6037
  ai as agentsSlice,
6038
6038
  nu as areArraysEqual,
6039
- Da as assetAttachmentReducer,
6039
+ Pa as assetAttachmentReducer,
6040
6040
  ci as assetAttachmentSlice,
6041
- za as assetReducer,
6041
+ Ma as assetReducer,
6042
6042
  ui as assetSlice,
6043
- Ba as assetStageCompletionReducer,
6043
+ La as assetStageCompletionReducer,
6044
6044
  fi as assetStageCompletionSlice,
6045
- Wa as assetStageReducer,
6045
+ Ha as assetStageReducer,
6046
6046
  Ai as assetStageSlice,
6047
- no as assetTypeAttachmentReducer,
6047
+ io as assetTypeAttachmentReducer,
6048
6048
  gi as assetTypeAttachmentSlice,
6049
- Oo as assetTypeFieldValuesAttachmentReducer,
6049
+ Ro as assetTypeFieldValuesAttachmentReducer,
6050
6050
  Oi as assetTypeFieldValuesAttachmentSlice,
6051
- ko as assetTypeFieldValuesReducer,
6051
+ Fo as assetTypeFieldValuesReducer,
6052
6052
  vi as assetTypeFieldValuesSlice,
6053
- ho as assetTypeFieldsAttachmentReducer,
6053
+ uo as assetTypeFieldsAttachmentReducer,
6054
6054
  Ti as assetTypeFieldsAttachmentSlice,
6055
- go as assetTypeFieldsReducer,
6055
+ Ao as assetTypeFieldsReducer,
6056
6056
  Ri as assetTypeFieldsSlice,
6057
- jo as assetTypeReducer,
6057
+ qo as assetTypeReducer,
6058
6058
  Ei as assetTypeSlice,
6059
- Do as authReducer,
6059
+ Po as authReducer,
6060
6060
  at as authSlice,
6061
6061
  lu as blobToBase64,
6062
- zo as categoryReducer,
6062
+ Mo as categoryReducer,
6063
6063
  ki as categorySlice,
6064
6064
  gh as clearTokens,
6065
6065
  du as constructUploadedFilePayloads,
@@ -6068,29 +6068,29 @@ export {
6068
6068
  su as createMultiPointGeometry,
6069
6069
  qd as createOfflineAction,
6070
6070
  tu as createPointGeometry,
6071
- Rt as deleteAsset,
6072
- ka as deleteAssetAttachment,
6071
+ Ot as deleteAsset,
6072
+ Fa as deleteAssetAttachment,
6073
6073
  di as deleteAssetAttachments,
6074
6074
  Pu as deleteAssetStage,
6075
- Et as deleteAssetStageCompletion,
6076
- Ft as deleteAssetStageCompletions,
6075
+ Ft as deleteAssetStageCompletion,
6076
+ kt as deleteAssetStageCompletions,
6077
6077
  Ye as deleteAssetStages,
6078
- Lt as deleteAssetType,
6079
- eo as deleteAssetTypeAttachment,
6078
+ Bt as deleteAssetType,
6079
+ Za as deleteAssetTypeAttachment,
6080
6080
  _i as deleteAssetTypeAttachments,
6081
- $t as deleteAssetTypeFieldValues,
6081
+ Ut as deleteAssetTypeFieldValues,
6082
6082
  nh as deleteAssetTypeFieldValuesAttachment,
6083
6083
  Xe as deleteAssetTypeFieldValuesAttachments,
6084
- Eo as deleteAssetTypeFieldValuesMany,
6085
- yo as deleteAssetTypeFields,
6084
+ Io as deleteAssetTypeFieldValuesMany,
6085
+ fo as deleteAssetTypeFields,
6086
6086
  Lu as deleteAssetTypeFieldsAttachment,
6087
- ro as deleteAssetTypeFieldsAttachments,
6087
+ co as deleteAssetTypeFieldsAttachments,
6088
6088
  Ju as deleteAssetTypeFieldsMany,
6089
6089
  ph as deleteAssetTypes,
6090
- xa as deleteAssets,
6091
- Mo as deleteCategory,
6092
- Lo as deleteDocumentAttachment,
6093
- Bo as deleteDocumentAttachments,
6090
+ Ca as deleteAssets,
6091
+ xo as deleteCategory,
6092
+ Go as deleteDocumentAttachment,
6093
+ Lo as deleteDocumentAttachments,
6094
6094
  sc as deleteEmailDomain,
6095
6095
  ns as deleteForm,
6096
6096
  Vi as deleteFormRevision,
@@ -6126,13 +6126,13 @@ export {
6126
6126
  md as deleteProjectAccess,
6127
6127
  pd as deleteProjectAccesses,
6128
6128
  Vd as deleteProjectAttachment,
6129
- vn as deleteProjectAttachments,
6129
+ wn as deleteProjectAttachments,
6130
6130
  Kd as deleteProjectFile,
6131
6131
  Yd as deleteProjectFiles,
6132
6132
  Ks as deleteTeam,
6133
6133
  _l as dequeue,
6134
- Nn as discard,
6135
- Wo as documentAttachmentReducer,
6134
+ Bn as discard,
6135
+ Ho as documentAttachmentReducer,
6136
6136
  ji as documentAttachmentSlice,
6137
6137
  Di as documentSlice,
6138
6138
  Qo as documentsReducer,
@@ -6147,7 +6147,7 @@ export {
6147
6147
  fe as fallbackToEmptyObject,
6148
6148
  dc as fileReducer,
6149
6149
  Mi as fileSlice,
6150
- _a as fileToBlob,
6150
+ ba as fileToBlob,
6151
6151
  vc as formReducer,
6152
6152
  fc as formRevisionAttachmentReducer,
6153
6153
  zi as formRevisionAttachmentSlice,
@@ -6161,26 +6161,26 @@ export {
6161
6161
  Kc as geoImageReducer,
6162
6162
  Ki as geoImageSlice,
6163
6163
  cu as getFileIdentifier,
6164
- yt as getFileS3Key,
6165
- fa as getLocalDateString,
6164
+ At as getFileS3Key,
6165
+ pa as getLocalDateString,
6166
6166
  ou as getLocalRelativeDateString,
6167
6167
  pe as getOutboxCoordinator,
6168
- ba as getRenamedFile,
6168
+ ga as getRenamedFile,
6169
6169
  Re as hashFile,
6170
- Dp as initSDK,
6171
- _t as initializeAssetAttachments,
6172
- $a as initializeAssetStageCompletions,
6173
- Na as initializeAssetStages,
6174
- Xa as initializeAssetTypeAttachments,
6175
- wo as initializeAssetTypeFieldValues,
6176
- bo as initializeAssetTypeFieldValuesAttachments,
6177
- mo as initializeAssetTypeFields,
6178
- ao as initializeAssetTypeFieldsAttachments,
6179
- qo as initializeAssetTypes,
6180
- Ca as initializeAssets,
6181
- Co as initializeCategories,
6182
- Ra as initializeConversations,
6183
- $o as initializeDocumentAttachments,
6170
+ Cp as initSDK,
6171
+ St as initializeAssetAttachments,
6172
+ za as initializeAssetStageCompletions,
6173
+ Ba as initializeAssetStages,
6174
+ Ja as initializeAssetTypeAttachments,
6175
+ Oo as initializeAssetTypeFieldValues,
6176
+ go as initializeAssetTypeFieldValuesAttachments,
6177
+ ho as initializeAssetTypeFields,
6178
+ no as initializeAssetTypeFieldsAttachments,
6179
+ ko as initializeAssetTypes,
6180
+ Da as initializeAssets,
6181
+ Do as initializeCategories,
6182
+ Ta as initializeConversations,
6183
+ zo as initializeDocumentAttachments,
6184
6184
  ec as initializeEmailDomains,
6185
6185
  lc as initializeFormRevisionAttachments,
6186
6186
  gc as initializeFormRevisions,
@@ -6228,89 +6228,89 @@ export {
6228
6228
  pn as licenseSlice,
6229
6229
  hu as logOnlyOnce,
6230
6230
  Pd as markAsDeleted,
6231
- pp as markForDeletion,
6231
+ fp as markForDeletion,
6232
6232
  ni as memoize,
6233
6233
  Yo as moveDocument,
6234
6234
  R as offline,
6235
6235
  Au as onlyUniqueHashes,
6236
- Ta as onlyUniqueOfflineIds,
6236
+ Sa as onlyUniqueOfflineIds,
6237
6237
  ud as organizationAccessReducer,
6238
6238
  yn as organizationAccessSlice,
6239
6239
  kd as organizationReducer,
6240
- Rn as organizationSlice,
6240
+ Tn as organizationSlice,
6241
6241
  Cd as outboxReducer,
6242
- On as outboxSlice,
6243
- jp as overmapEnhancer,
6242
+ Rn as outboxSlice,
6243
+ Pp as overmapEnhancer,
6244
6244
  yl as overmapReducers,
6245
- qp as overmapRootReducer,
6246
- Gn as performRequest,
6245
+ jp as overmapRootReducer,
6246
+ Vn as performRequest,
6247
6247
  Ad as projectAccessReducer,
6248
6248
  gn as projectAccessSlice,
6249
6249
  Nd as projectAttachmentReducer,
6250
- wn as projectAttachmentSlice,
6250
+ On as projectAttachmentSlice,
6251
6251
  tl as projectFileReducer,
6252
- En as projectFileSlice,
6252
+ In as projectFileSlice,
6253
6253
  Td as projectReducer,
6254
6254
  Sn as projectSlice,
6255
6255
  il as rehydratedReducer,
6256
- Fn as rehydratedSlice,
6256
+ En as rehydratedSlice,
6257
6257
  Qt as removeDocuments,
6258
6258
  Ps as removeIssueType,
6259
6259
  ad as removeUser,
6260
- Tp as resetProjectFileObjectUrls,
6260
+ Rp as resetProjectFileObjectUrls,
6261
6261
  Al as resetStore,
6262
6262
  A as restructureCreateSelectorWithArgs,
6263
6263
  Qd as saveActiveProjectFileBounds,
6264
6264
  bh as selectAccessToken,
6265
6265
  tp as selectActiveOrganizationAccess,
6266
- Op as selectActiveProjectFileId,
6266
+ wp as selectActiveProjectFileId,
6267
6267
  Wm as selectActiveStatusLicenses,
6268
6268
  Pi as selectAllDocumentAttachments,
6269
- In as selectAllProjectAttachments,
6269
+ vn as selectAllProjectAttachments,
6270
6270
  kh as selectAncestorIdsOfDocument,
6271
- ja as selectAssetAttachmentById,
6272
- qa as selectAssetAttachmentMapping,
6271
+ qa as selectAssetAttachmentById,
6272
+ ka as selectAssetAttachmentMapping,
6273
6273
  li as selectAssetAttachments,
6274
- Ot as selectAssetById,
6275
- Ka as selectAssetStageById,
6276
- Ga as selectAssetStageCompletionById,
6274
+ wt as selectAssetById,
6275
+ Wa as selectAssetStageById,
6276
+ Va as selectAssetStageCompletionById,
6277
6277
  yi as selectAssetStageCompletionMapping,
6278
- La as selectAssetStageCompletionsByIds,
6279
- Ya as selectAssetStages,
6280
- jt as selectAssetStagesByIds,
6281
- so as selectAssetTypeAttachmentById,
6282
- to as selectAssetTypeAttachmentMapping,
6278
+ Ga as selectAssetStageCompletionsByIds,
6279
+ Ka as selectAssetStages,
6280
+ Pt as selectAssetStagesByIds,
6281
+ to as selectAssetTypeAttachmentById,
6282
+ eo as selectAssetTypeAttachmentMapping,
6283
6283
  Si as selectAssetTypeAttachments,
6284
- Bt as selectAssetTypeById,
6284
+ Nt as selectAssetTypeById,
6285
6285
  Ii as selectAssetTypeFieldValues,
6286
6286
  ah as selectAssetTypeFieldValuesAttachmentById,
6287
- So as selectAssetTypeFieldValuesAttachments,
6288
- To as selectAssetTypeFieldValuesAttachmentsByIds,
6287
+ _o as selectAssetTypeFieldValuesAttachments,
6288
+ So as selectAssetTypeFieldValuesAttachmentsByIds,
6289
6289
  wi as selectAssetTypeFieldValuesAttachmentsMapping,
6290
- Ut as selectAssetTypeFieldValuesById,
6291
- Fo as selectAssetTypeFieldValuesMapping,
6290
+ Vt as selectAssetTypeFieldValuesById,
6291
+ Eo as selectAssetTypeFieldValuesMapping,
6292
6292
  rh as selectAssetTypeFieldValuesOfAsset,
6293
6293
  nt as selectAssetTypeFields,
6294
6294
  Nu as selectAssetTypeFieldsAttachmentById,
6295
- uo as selectAssetTypeFieldsAttachments,
6296
- lo as selectAssetTypeFieldsAttachmentsMapping,
6295
+ lo as selectAssetTypeFieldsAttachments,
6296
+ ro as selectAssetTypeFieldsAttachmentsMapping,
6297
6297
  Zu as selectAssetTypeFieldsById,
6298
- Ao as selectAssetTypeFieldsMapping,
6298
+ yo as selectAssetTypeFieldsMapping,
6299
6299
  Xu as selectAssetTypeFieldsOfAssetType,
6300
6300
  Du as selectAssetTypeStagesMapping,
6301
6301
  dh as selectAssetTypeValuesOfAssetType,
6302
6302
  fh as selectAssetTypes,
6303
6303
  yh as selectAssetTypesByIds,
6304
6304
  Fi as selectAssetTypesMapping,
6305
- Ma as selectAssets,
6305
+ xa as selectAssets,
6306
6306
  Eu as selectAssetsByIds,
6307
6307
  mi as selectAssetsMapping,
6308
6308
  pi as selectAssetsOfAssetType,
6309
- Pa as selectAttachmentsOfAsset,
6309
+ ja as selectAttachmentsOfAsset,
6310
6310
  Ou as selectAttachmentsOfAssetByType,
6311
- io as selectAttachmentsOfAssetType,
6311
+ so as selectAttachmentsOfAssetType,
6312
6312
  zu as selectAttachmentsOfAssetTypeByType,
6313
- Ro as selectAttachmentsOfAssetTypeFieldValues,
6313
+ To as selectAttachmentsOfAssetTypeFieldValues,
6314
6314
  Bu as selectAttachmentsOfAssetTypeFields,
6315
6315
  Ih as selectAttachmentsOfDocument,
6316
6316
  Eh as selectAttachmentsOfDocumentByType,
@@ -6321,10 +6321,10 @@ export {
6321
6321
  $r as selectAttachmentsOfIssueTypeFieldValues,
6322
6322
  gm as selectAttachmentsOfIssueTypeFields,
6323
6323
  Bd as selectAttachmentsOfProject,
6324
- Ap as selectAttachmentsOfProjectByType,
6324
+ gp as selectAttachmentsOfProjectByType,
6325
6325
  Sh as selectCategories,
6326
6326
  Th as selectCategoriesByIds,
6327
- Kt as selectCategoryById,
6327
+ Yt as selectCategoryById,
6328
6328
  qi as selectCategoryMapping,
6329
6329
  um as selectCommentsOfIssue,
6330
6330
  ku as selectCompletedStagesByAsset,
@@ -6332,9 +6332,9 @@ export {
6332
6332
  oi as selectConversationMapping,
6333
6333
  bu as selectConversations,
6334
6334
  ut as selectCurrentUser,
6335
- hp as selectDeletedRequests,
6336
- Ho as selectDocumentAttachmentById,
6337
- No as selectDocumentAttachmentMapping,
6335
+ mp as selectDeletedRequests,
6336
+ No as selectDocumentAttachmentById,
6337
+ Bo as selectDocumentAttachmentMapping,
6338
6338
  Xo as selectDocumentById,
6339
6339
  Jo as selectDocuments,
6340
6340
  Fh as selectDocumentsByIds,
@@ -6363,7 +6363,7 @@ export {
6363
6363
  Hc as selectGeoImageMapping,
6364
6364
  Wc as selectGeoImages,
6365
6365
  em as selectGeoImagesOfProject,
6366
- wp as selectIsImportingProjectFile,
6366
+ vp as selectIsImportingProjectFile,
6367
6367
  _h as selectIsLoggedIn,
6368
6368
  Xc as selectIssueAssociationById,
6369
6369
  $e as selectIssueAssociationMapping,
@@ -6408,23 +6408,23 @@ export {
6408
6408
  Qu as selectLatestAssetTypeFieldsOfAssetType,
6409
6409
  Uh as selectLatestFormRevisionOfForm,
6410
6410
  jm as selectLatestIssueTypeFieldsOfIssueType,
6411
- mp as selectLatestRetryTime,
6411
+ pp as selectLatestRetryTime,
6412
6412
  Hm as selectLicense,
6413
6413
  sd as selectLicenseForProject,
6414
6414
  lt as selectLicenses,
6415
6415
  Km as selectLicensesForProjectsMapping,
6416
- lp as selectLicensesOfOrganization,
6416
+ up as selectLicensesOfOrganization,
6417
6417
  Fu as selectNumberOfAssetsOfAssetType,
6418
6418
  ep as selectOrganizationAccessById,
6419
6419
  sp as selectOrganizationAccessForUser,
6420
6420
  ld as selectOrganizationAccessUserMapping,
6421
6421
  An as selectOrganizationAccesses,
6422
- cp as selectOrganizationById,
6422
+ rp as selectOrganizationById,
6423
6423
  Fd as selectOrganizationUsersAsMapping,
6424
6424
  Ed as selectOrganizationUsersIds,
6425
6425
  Id as selectOrganizations,
6426
6426
  vd as selectOrganizationsMapping,
6427
- rp as selectOrganizationsWithAccess,
6427
+ dp as selectOrganizationsWithAccess,
6428
6428
  ip as selectProjectAccessById,
6429
6429
  np as selectProjectAccessForUser,
6430
6430
  _n as selectProjectAccessMapping,
@@ -6432,40 +6432,41 @@ export {
6432
6432
  fd as selectProjectAccesses,
6433
6433
  Ld as selectProjectAttachmentById,
6434
6434
  Gd as selectProjectAttachmentMapping,
6435
- ap as selectProjectById,
6436
- Rp as selectProjectFileById,
6435
+ op as selectProjectById,
6436
+ Op as selectProjectFileById,
6437
6437
  Zd as selectProjectFileMapping,
6438
6438
  el as selectProjectFiles,
6439
- Tn as selectProjectMapping,
6439
+ mt as selectProjectMapping,
6440
6440
  Od as selectProjectUsersAsMapping,
6441
6441
  Rd as selectProjectUsersIds,
6442
- dp as selectProjectsOfOrganization,
6443
- Ip as selectRehydrated,
6442
+ ap as selectProjects,
6443
+ lp as selectProjectsOfOrganization,
6444
+ Ep as selectRehydrated,
6444
6445
  qh as selectRootDocuments,
6445
- up as selectSortedOrganizationUsers,
6446
- op as selectSortedProjectUsers,
6446
+ hp as selectSortedOrganizationUsers,
6447
+ cp as selectSortedProjectUsers,
6447
6448
  it as selectStageMapping,
6448
- Ja as selectStagesOfAssetType,
6449
+ Ya as selectStagesOfAssetType,
6449
6450
  ge as selectTeamById,
6450
- jn as selectTeams,
6451
- Ep as selectTeamsByIds,
6452
- qn as selectTeamsMapping,
6453
- Fp as selectTeamsOfOrganization,
6454
- kp as selectTeamsOfUser,
6451
+ qn as selectTeams,
6452
+ Fp as selectTeamsByIds,
6453
+ kn as selectTeamsMapping,
6454
+ kp as selectTeamsOfOrganization,
6455
+ qp as selectTeamsOfUser,
6455
6456
  rc as selectUploadUrl,
6456
6457
  Qm as selectUserById,
6457
6458
  Zm as selectUsersByIds,
6458
6459
  ht as selectUsersMapping,
6459
6460
  Qs as separateFilesFromValues,
6460
- tf as separateImageFromFields,
6461
+ sf as separateImageFromFields,
6461
6462
  Xd as setActiveProjectFileId,
6462
6463
  vu as setAsset,
6463
- Ea as setAssetAttachment,
6464
+ Ia as setAssetAttachment,
6464
6465
  Tu as setAssetAttachments,
6465
- Ha as setAssetStage,
6466
+ Na as setAssetStage,
6466
6467
  qu as setAssetStages,
6467
6468
  lh as setAssetType,
6468
- Qa as setAssetTypeAttachment,
6469
+ Xa as setAssetTypeAttachment,
6469
6470
  xu as setAssetTypeAttachments,
6470
6471
  oh as setAssetTypeFieldValues,
6471
6472
  th as setAssetTypeFieldValuesAttachment,
@@ -6477,11 +6478,11 @@ export {
6477
6478
  Ku as setAssetTypeFieldsMany,
6478
6479
  uh as setAssetTypes,
6479
6480
  Iu as setAssets,
6480
- wa as setConversation,
6481
+ Oa as setConversation,
6481
6482
  Ym as setCurrentUser,
6482
- Vo as setDocumentAttachment,
6483
+ Uo as setDocumentAttachment,
6483
6484
  wh as setDocumentAttachments,
6484
- Ko as setDocuments,
6485
+ Wo as setDocuments,
6485
6486
  Vh as setForm,
6486
6487
  Ac as setFormRevision,
6487
6488
  Dh as setFormRevisionAttachment,
@@ -6509,51 +6510,51 @@ export {
6509
6510
  fm as setIssueTypeFieldsAttachments,
6510
6511
  Em as setIssueTypeFieldsMany,
6511
6512
  Bm as setIssueUpdate,
6512
- Po as setLoggedIn,
6513
+ jo as setLoggedIn,
6513
6514
  wd as setOrganizations,
6514
6515
  Jm as setProfilePicture,
6515
6516
  zd as setProjectAttachment,
6516
6517
  $d as setProjectAttachments,
6517
- gp as setProjectFile,
6518
- bp as setProjectFiles,
6518
+ bp as setProjectFile,
6519
+ _p as setProjectFiles,
6519
6520
  gd as setProjects,
6520
- vp as setRehydrated,
6521
+ Ip as setRehydrated,
6521
6522
  Ae as setTeam,
6522
6523
  Ah as setTokens,
6523
6524
  cc as setUploadUrl,
6524
6525
  nd as setUsers,
6525
- pa as shallowEqual,
6526
+ ma as shallowEqual,
6526
6527
  fu as slugify,
6527
6528
  pu as spacesToDashesLower,
6528
6529
  ol as teamReducer,
6529
- kn as teamSlice,
6530
+ Fn as teamSlice,
6530
6531
  mu as toFileNameSafeString,
6531
- Sa as toOfflineIdRecord,
6532
+ _a as toOfflineIdRecord,
6532
6533
  yu as truncate,
6533
6534
  Ee as updateAsset,
6534
6535
  Ru as updateAssetAttachment,
6535
- Fa as updateAssetAttachments,
6536
- qt as updateAssetStage,
6537
- Ua as updateAssetStageCompletion,
6538
- Va as updateAssetStageCompletions,
6536
+ Ea as updateAssetAttachments,
6537
+ jt as updateAssetStage,
6538
+ $a as updateAssetStageCompletion,
6539
+ Ua as updateAssetStageCompletions,
6539
6540
  Ue as updateAssetStages,
6540
6541
  ke as updateAssetType,
6541
6542
  Mu as updateAssetTypeAttachment,
6542
- Za as updateAssetTypeAttachments,
6543
+ Qa as updateAssetTypeAttachments,
6543
6544
  Fe as updateAssetTypeFieldValues,
6544
6545
  ih as updateAssetTypeFieldValuesAttachment,
6545
- _o as updateAssetTypeFieldValuesAttachments,
6546
- Io as updateAssetTypeFieldValuesMany,
6547
- fo as updateAssetTypeFields,
6546
+ bo as updateAssetTypeFieldValuesAttachments,
6547
+ vo as updateAssetTypeFieldValuesMany,
6548
+ po as updateAssetTypeFields,
6548
6549
  Gu as updateAssetTypeFieldsAttachment,
6549
- co as updateAssetTypeFieldsAttachments,
6550
+ oo as updateAssetTypeFieldsAttachments,
6550
6551
  Yu as updateAssetTypeFieldsMany,
6551
6552
  mh as updateAssetTypes,
6552
6553
  wu as updateAssets,
6553
- xo as updateCategory,
6554
- va as updateConversation,
6554
+ Co as updateCategory,
6555
+ wa as updateConversation,
6555
6556
  vh as updateDocumentAttachment,
6556
- Go as updateDocumentAttachments,
6557
+ Vo as updateDocumentAttachments,
6557
6558
  ne as updateDocuments,
6558
6559
  Lh as updateForm,
6559
6560
  xh as updateFormRevisionAttachment,
@@ -6582,10 +6583,10 @@ export {
6582
6583
  rd as updateOrganizationAccess,
6583
6584
  bd as updateProject,
6584
6585
  hd as updateProjectAccess,
6585
- yp as updateProjectAttachment,
6586
+ Ap as updateProjectAttachment,
6586
6587
  Ud as updateProjectAttachments,
6587
6588
  Ns as updateProjectFile,
6588
- Sp as updateProjectFiles,
6589
+ Tp as updateProjectFiles,
6589
6590
  Ws as updateTeam,
6590
6591
  od as userReducer,
6591
6592
  fn as userSlice,