@overmap-ai/core 1.0.80-implement-issueassignee-service.0 → 1.0.80-implement-issueassignee-service.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ var Ja = (t, s, e) => s in t ? Ya(t, s, { enumerable: !0, configurable: !0, writ
3
3
  var u = (t, s, e) => Ja(t, typeof s != "symbol" ? s + "" : s, e);
4
4
  import "@redux-offline/redux-offline/lib/types";
5
5
  import { createAction as Yt, createSelector as h, createSlice as T, isAnyOf as _, combineReducers as Ni } from "@reduxjs/toolkit";
6
- import lt from "superagent";
6
+ import ht from "superagent";
7
7
  import { v4 as ot } from "uuid";
8
8
  import { useMemo as Za } from "react";
9
9
  import Xa from "fast-tree-builder";
@@ -1408,11 +1408,11 @@ const m = (
1408
1408
  setFormSubmission: Vh,
1409
1409
  setFormSubmissions: xh,
1410
1410
  addFormSubmission: Ch,
1411
- addFormSubmissions: pt,
1411
+ addFormSubmissions: mt,
1412
1412
  updateFormSubmission: Uh,
1413
1413
  updateFormSubmissions: Lh,
1414
1414
  deleteFormSubmission: Nh,
1415
- deleteFormSubmissions: mt
1415
+ deleteFormSubmissions: yt
1416
1416
  } = Yn.actions, Hh = (t) => t.formSubmissionReducer.instances, U = h(
1417
1417
  [Hh],
1418
1418
  (t) => Object.values(t)
@@ -2766,27 +2766,27 @@ const m = (
2766
2766
  updateProcedures: kO,
2767
2767
  deleteProcedure: BO,
2768
2768
  deleteProcedures: gt
2769
- } = Zr.actions, zO = Zr.reducer, DO = (t) => t.procedureReducer.instances, yt = h(
2769
+ } = Zr.actions, zO = Zr.reducer, DO = (t) => t.procedureReducer.instances, ft = h(
2770
2770
  [DO],
2771
2771
  (t) => Object.values(t)
2772
2772
  ), qO = (t) => (s) => s.procedureReducer.instances[t], jO = m(
2773
- h([yt, (t, s) => s], (t, s) => {
2773
+ h([ft, (t, s) => s], (t, s) => {
2774
2774
  const e = new Set(s);
2775
2775
  return y(t.filter(({ uuid: i }) => e.has(i)));
2776
2776
  })
2777
2777
  ), ew = m(
2778
- h([yt, (t, s) => s], (t, s) => y(t.filter((e) => e.project === s)))
2778
+ h([ft, (t, s) => s], (t, s) => y(t.filter((e) => e.project === s)))
2779
2779
  ), $O = m(
2780
- h([yt, (t, s) => s], (t, s) => y(t.filter((e) => e.procedure_type === s)))
2780
+ h([ft, (t, s) => s], (t, s) => y(t.filter((e) => e.procedure_type === s)))
2781
2781
  ), VO = m(
2782
- h([yt, (t, s) => s], (t, s) => y(t.filter((e) => e.asset === s)))
2782
+ h([ft, (t, s) => s], (t, s) => y(t.filter((e) => e.asset === s)))
2783
2783
  ), xO = m(
2784
- h([yt, (t, s) => s], (t, s) => {
2784
+ h([ft, (t, s) => s], (t, s) => {
2785
2785
  const e = new Set(s);
2786
2786
  return y(t.filter(({ asset: i }) => e.has(i)));
2787
2787
  })
2788
2788
  ), CO = m(
2789
- h([yt, (t, s) => s], (t, s) => y(t.filter((e) => e.procedure_initiative === s)))
2789
+ h([ft, (t, s) => s], (t, s) => y(t.filter((e) => e.procedure_initiative === s)))
2790
2790
  ), xe = P((t) => t.uuid), Pi = {
2791
2791
  instances: {}
2792
2792
  }, Xr = T({
@@ -3215,19 +3215,19 @@ const m = (
3215
3215
  updateProcedureStepFieldValuesMany: CT,
3216
3216
  deleteProcedureStepFieldValues: UT,
3217
3217
  deleteProcedureStepFieldValuesMany: LT
3218
- } = ya.actions, NT = ya.reducer, HT = (t) => t.procedureStepFieldValuesReducer.instances, ft = h(
3218
+ } = ya.actions, NT = ya.reducer, HT = (t) => t.procedureStepFieldValuesReducer.instances, St = h(
3219
3219
  [HT],
3220
3220
  (t) => Object.values(t)
3221
3221
  ), yw = m(
3222
- h([ft, (t, s) => s], (t, s) => y(t.filter((e) => e.procedure === s)))
3222
+ h([St, (t, s) => s], (t, s) => y(t.filter((e) => e.procedure === s)))
3223
3223
  ), fw = m(
3224
3224
  h(
3225
- [ft, (t, s) => s],
3225
+ [St, (t, s) => s],
3226
3226
  (t, s) => y(t.filter((e) => e.procedure_step === s))
3227
3227
  )
3228
3228
  ), GT = (t) => (s) => s.procedureStepFieldValuesReducer.instances[t], WT = m(
3229
3229
  h(
3230
- [ft, (t, s) => s],
3230
+ [St, (t, s) => s],
3231
3231
  (t, s) => {
3232
3232
  const e = new Set(s);
3233
3233
  return y(t.filter(({ uuid: i }) => e.has(i)));
@@ -3236,7 +3236,7 @@ const m = (
3236
3236
  ), Sw = m(
3237
3237
  h(
3238
3238
  [
3239
- ft,
3239
+ St,
3240
3240
  (t, s) => s,
3241
3241
  (t, s, e) => e
3242
3242
  ],
@@ -3276,12 +3276,12 @@ const m = (
3276
3276
  updateProcedureStepFieldValuesReviews: QT,
3277
3277
  deleteProcedureStepFieldValuesReview: eP,
3278
3278
  deleteProcedureStepFieldValuesReviews: Aa
3279
- } = fa.actions, tP = (t) => t.procedureStepFieldValuesReviewReducer.instances, St = h(
3279
+ } = fa.actions, tP = (t) => t.procedureStepFieldValuesReviewReducer.instances, At = h(
3280
3280
  [tP],
3281
3281
  (t) => Object.values(t)
3282
3282
  ), sP = (t) => (s) => s.procedureStepFieldValuesReviewReducer.instances[t], iP = m(
3283
3283
  h(
3284
- [St, (t, s) => s],
3284
+ [At, (t, s) => s],
3285
3285
  (t, s) => {
3286
3286
  const e = new Set(s);
3287
3287
  return y(t.filter(({ uuid: i }) => e.has(i)));
@@ -3289,12 +3289,12 @@ const m = (
3289
3289
  )
3290
3290
  ), nP = m(
3291
3291
  h(
3292
- [St, (t, s) => s],
3292
+ [At, (t, s) => s],
3293
3293
  (t, s) => y(t.filter((e) => e.field_values === s))
3294
3294
  )
3295
3295
  ), Aw = m(
3296
3296
  h(
3297
- [St, (t, s) => s],
3297
+ [At, (t, s) => s],
3298
3298
  (t, s) => {
3299
3299
  let e;
3300
3300
  for (const i of t) {
@@ -3307,8 +3307,8 @@ const m = (
3307
3307
  ), Ow = m(
3308
3308
  h(
3309
3309
  [
3310
- ft,
3311
3310
  St,
3311
+ At,
3312
3312
  (t, s) => s
3313
3313
  ],
3314
3314
  (t, s, e) => {
@@ -3325,8 +3325,8 @@ const m = (
3325
3325
  ), Iw = m(
3326
3326
  h(
3327
3327
  [
3328
- ft,
3329
3328
  St,
3329
+ At,
3330
3330
  (t, s) => s,
3331
3331
  (t, s, e) => e
3332
3332
  ],
@@ -3345,7 +3345,7 @@ const m = (
3345
3345
  );
3346
3346
  }
3347
3347
  )
3348
- ), Tw = h([St], (t) => {
3348
+ ), Tw = h([At], (t) => {
3349
3349
  const s = {};
3350
3350
  for (const e of t) {
3351
3351
  const { field_values: i } = e, n = s[i];
@@ -3931,10 +3931,10 @@ const E_ = (t) => {
3931
3931
  const s = Et();
3932
3932
  s ? s.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }) : console.error("Client store not set");
3933
3933
  }, v_ = (t, s, e) => {
3934
- const i = ht();
3934
+ const i = pt();
3935
3935
  return i ? (i.addRequest(s), i.getQueue()) : (console.warn("Outbox coordinator not set; cannot enqueue request yet."), []);
3936
3936
  }, k_ = (t, s, e) => {
3937
- const i = ht();
3937
+ const i = pt();
3938
3938
  if (!i)
3939
3939
  return console.warn("Outbox coordinator not set; cannot dequeue request yet."), [];
3940
3940
  const a = s.meta.offlineAction.payload.uuid;
@@ -4003,7 +4003,7 @@ Retries:`,
4003
4003
  const i = Et(), a = i.getState().outboxReducer.deletedRequests, r = s.payload.uuid;
4004
4004
  function d() {
4005
4005
  i.dispatch(eA(r));
4006
- const l = ht();
4006
+ const l = pt();
4007
4007
  if (!l)
4008
4008
  throw new Error("Outbox coordinator not set");
4009
4009
  l.remove(s.payload.uuid);
@@ -4015,21 +4015,21 @@ Retries:`,
4015
4015
  if (l || console.warn("Error has no status code:", t), l !== void 0 && Ca.includes(l)) {
4016
4016
  console.warn("Discarding request due to error:", t, `
4017
4017
  Action:`, s);
4018
- const f = ht();
4018
+ const f = pt();
4019
4019
  if (!f)
4020
4020
  throw new Error("Outbox coordinator not set");
4021
4021
  f.remove(s.payload.uuid), t.options.discard = !0, d();
4022
4022
  }
4023
4023
  }
4024
4024
  console.debug("Registering a retry for request:", s.payload.uuid);
4025
- const c = ht();
4025
+ const c = pt();
4026
4026
  if (!c)
4027
4027
  throw new Error("Outbox coordinator not set");
4028
4028
  return c.registerRetry(s.payload.uuid), !1;
4029
4029
  }
4030
4030
  function j_(t, s, e) {
4031
4031
  var i;
4032
- return (i = ht()) == null ? void 0 : i.peek();
4032
+ return (i = pt()) == null ? void 0 : i.peek();
4033
4033
  }
4034
4034
  function $_(t, s) {
4035
4035
  return Et().dispatch(tA((/* @__PURE__ */ new Date()).getTime())), ac;
@@ -4085,14 +4085,14 @@ class U_ extends La {
4085
4085
  super(s);
4086
4086
  }
4087
4087
  }
4088
- class At extends La {
4088
+ class Ot extends La {
4089
4089
  constructor(e, i) {
4090
4090
  super(e);
4091
4091
  u(this, "auth");
4092
4092
  this.auth = i;
4093
4093
  }
4094
4094
  }
4095
- class Cw extends At {
4095
+ class Cw extends Ot {
4096
4096
  async startConversation(s, e) {
4097
4097
  return this.enqueueRequest({
4098
4098
  description: "Start agent conversation",
@@ -4192,7 +4192,7 @@ function F(t) {
4192
4192
  e in s && delete s[e];
4193
4193
  return s;
4194
4194
  }
4195
- class v extends At {
4195
+ class k extends Ot {
4196
4196
  async get(s, e) {
4197
4197
  return this.performRequest(
4198
4198
  {
@@ -4219,7 +4219,7 @@ class v extends At {
4219
4219
  );
4220
4220
  }
4221
4221
  }
4222
- class j extends v {
4222
+ class j extends k {
4223
4223
  async getPresignedUrl(s, e) {
4224
4224
  const { selectById: i } = this.selectors, n = this.select(i(s));
4225
4225
  if (!n)
@@ -4283,19 +4283,19 @@ class j extends v {
4283
4283
  async bulkAdd(s, e) {
4284
4284
  const { addMany: i, updateMany: n, deleteMany: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = [], c = /* @__PURE__ */ new Set(), p = ct(s, Math.min(e ?? s.length, at)), l = [];
4285
4285
  for (const b of p) {
4286
- const R = [], w = {}, k = [], B = [];
4286
+ const R = [], w = {}, v = [], B = [];
4287
4287
  for (const D of b) {
4288
4288
  let q;
4289
4289
  if ("file" in D) {
4290
- const { file: Vt, ...Ka } = D, ut = await this.client.files.getFilePayload(Vt);
4291
- ut.sha1 in w || (w[ut.sha1] = ut);
4290
+ const { file: Vt, ...Ka } = D, lt = await this.client.files.getFilePayload(Vt);
4291
+ lt.sha1 in w || (w[lt.sha1] = lt);
4292
4292
  const As = URL.createObjectURL(Vt);
4293
4293
  c.add(As), q = {
4294
4294
  ...Ka,
4295
- file_sha1: ut.sha1,
4296
- file_type: ut.file_type,
4295
+ file_sha1: lt.sha1,
4296
+ file_type: lt.file_type,
4297
4297
  file_name: Vt.name,
4298
- file_extension: ut.extension,
4298
+ file_extension: lt.extension,
4299
4299
  object_url: As
4300
4300
  };
4301
4301
  } else
@@ -4305,7 +4305,7 @@ class j extends v {
4305
4305
  const $ = this.buildBulkPayload(dt);
4306
4306
  R.push($);
4307
4307
  const C = this.getBlockers(dt);
4308
- k.push(...C);
4308
+ v.push(...C);
4309
4309
  const vt = this.getBlocks(dt);
4310
4310
  B.push(...vt);
4311
4311
  }
@@ -4313,14 +4313,14 @@ class j extends v {
4313
4313
  payloads: R,
4314
4314
  submittedAt: r,
4315
4315
  files: Object.values(w),
4316
- blockers: k,
4316
+ blockers: v,
4317
4317
  blocks: B
4318
4318
  };
4319
4319
  l.push(V);
4320
4320
  }
4321
4321
  this.dispatch(i(d));
4322
4322
  const f = l.map((b) => {
4323
- const { submittedAt: R, files: w, payloads: k, blocks: B, blockers: V } = b;
4323
+ const { submittedAt: R, files: w, payloads: v, blocks: B, blockers: V } = b;
4324
4324
  return this.enqueueRequest({
4325
4325
  description: S(o.POST, this.name, !0),
4326
4326
  method: o.POST,
@@ -4328,7 +4328,7 @@ class j extends v {
4328
4328
  payload: {
4329
4329
  submitted_at: R,
4330
4330
  files: w,
4331
- payloads: k
4331
+ payloads: v
4332
4332
  },
4333
4333
  blockers: V,
4334
4334
  blocks: B
@@ -4346,8 +4346,8 @@ class j extends v {
4346
4346
  const A = Promise.all(f).then((b) => b.flatMap(({ instances: R }) => R)), M = Promise.all(f).then(async (b) => {
4347
4347
  const R = [];
4348
4348
  for (const { presigned_urls: w } of b) {
4349
- const k = this.client.files.processPresignedUrls(w);
4350
- for (const [B, V] of Object.entries(k))
4349
+ const v = this.client.files.processPresignedUrls(w);
4350
+ for (const [B, V] of Object.entries(v))
4351
4351
  try {
4352
4352
  await V, R.push(B);
4353
4353
  } catch (D) {
@@ -4449,7 +4449,7 @@ class Uw extends j {
4449
4449
  return this.dispatch(n(r)), r;
4450
4450
  }
4451
4451
  }
4452
- class Lw extends v {
4452
+ class Lw extends k {
4453
4453
  constructor() {
4454
4454
  super(...arguments);
4455
4455
  u(this, "name", "Asset Comment");
@@ -4546,7 +4546,7 @@ class Lw extends v {
4546
4546
  return this.dispatch(n(r)), r;
4547
4547
  }
4548
4548
  }
4549
- class Nw extends v {
4549
+ class Nw extends k {
4550
4550
  constructor() {
4551
4551
  super(...arguments);
4552
4552
  u(this, "url", "/assets");
@@ -4618,7 +4618,7 @@ class Nw extends v {
4618
4618
  const { addOne: i, deleteOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
4619
4619
  if (!r) throw new Error(`No asset with uuid ${e} found in the store`);
4620
4620
  const d = this.select(Wc(e)), c = this.select(rd(e)), p = this.select(gp(e)), l = this.select(VO(e)), f = this.select(Zh(e));
4621
- this.dispatch(n(e)), this.dispatch(en(E(d))), this.dispatch(Gt(E(c))), this.dispatch(bt(E(p))), this.dispatch(gt(E(l))), this.dispatch(mt(E(f)));
4621
+ this.dispatch(n(e)), this.dispatch(en(E(d))), this.dispatch(Gt(E(c))), this.dispatch(bt(E(p))), this.dispatch(gt(E(l))), this.dispatch(yt(E(f)));
4622
4622
  try {
4623
4623
  return await this.enqueueRequest({
4624
4624
  description: S(o.DELETE, this.name, !1),
@@ -4628,7 +4628,7 @@ class Nw extends v {
4628
4628
  blocks: []
4629
4629
  });
4630
4630
  } catch (A) {
4631
- throw this.dispatch(i(r)), this.dispatch(Qi(d)), this.dispatch(Ht(c)), this.dispatch(Pt(p)), this.dispatch(_t(l)), this.dispatch(pt(f)), A;
4631
+ throw this.dispatch(i(r)), this.dispatch(Qi(d)), this.dispatch(Ht(c)), this.dispatch(Pt(p)), this.dispatch(_t(l)), this.dispatch(mt(f)), A;
4632
4632
  }
4633
4633
  }
4634
4634
  bulkAdd(e, i) {
@@ -4647,7 +4647,7 @@ class Nw extends v {
4647
4647
  }), d = [];
4648
4648
  let c = null;
4649
4649
  for (const p of r) {
4650
- const { batchId: l, payload: f } = p, A = f.assets.map(({ uuid: k }) => k), M = f.assets.map(({ asset_type: k }) => k), b = f.assets.map(({ project: k }) => k), R = f.assets.map(({ status: k }) => k), w = this.enqueueRequest({
4650
+ const { batchId: l, payload: f } = p, A = f.assets.map(({ uuid: v }) => v), M = f.assets.map(({ asset_type: v }) => v), b = f.assets.map(({ project: v }) => v), R = f.assets.map(({ status: v }) => v), w = this.enqueueRequest({
4651
4651
  description: S(o.POST, this.name, !0),
4652
4652
  method: o.POST,
4653
4653
  url: `${this.url}/bulk/`,
@@ -4681,7 +4681,7 @@ class Nw extends v {
4681
4681
  const p = ct(e, Math.min(i ?? e.length, at)), l = [];
4682
4682
  let f = null;
4683
4683
  for (const A of p) {
4684
- const M = ot(), b = E(A), R = A.map(({ status: k }) => k).filter(Boolean), w = this.enqueueRequest({
4684
+ const M = ot(), b = E(A), R = A.map(({ status: v }) => v).filter(Boolean), w = this.enqueueRequest({
4685
4685
  description: S(o.PATCH, this.name, !0),
4686
4686
  method: o.PATCH,
4687
4687
  url: `${this.url}/bulk/`,
@@ -4701,7 +4701,7 @@ class Nw extends v {
4701
4701
  }
4702
4702
  async bulkDelete(e) {
4703
4703
  const { addMany: i, deleteMany: n } = this.actions, { selectByIds: a } = this.selectors, r = this.select(a(e)), d = this.select(ad(e)), c = this.select(Mp(e)), p = this.select(xO(e)), l = this.select(Xh(e));
4704
- this.dispatch(n(e)), this.dispatch(Gt(E(d))), this.dispatch(bt(E(c))), this.dispatch(gt(E(p))), this.dispatch(mt(E(l)));
4704
+ this.dispatch(n(e)), this.dispatch(Gt(E(d))), this.dispatch(bt(E(c))), this.dispatch(gt(E(p))), this.dispatch(yt(E(l)));
4705
4705
  try {
4706
4706
  return await this.enqueueRequest({
4707
4707
  description: S(o.DELETE, this.name, !0),
@@ -4712,7 +4712,7 @@ class Nw extends v {
4712
4712
  blocks: []
4713
4713
  });
4714
4714
  } catch (f) {
4715
- throw this.dispatch(i(r)), this.dispatch(Ht(d)), this.dispatch(Pt(c)), this.dispatch(_t(p)), this.dispatch(pt(l)), f;
4715
+ throw this.dispatch(i(r)), this.dispatch(Ht(d)), this.dispatch(Pt(c)), this.dispatch(_t(p)), this.dispatch(mt(l)), f;
4716
4716
  }
4717
4717
  }
4718
4718
  async refreshStore(e, i) {
@@ -4875,7 +4875,7 @@ class Gw extends j {
4875
4875
  return this.dispatch(n(a)), a;
4876
4876
  }
4877
4877
  }
4878
- class Ww extends v {
4878
+ class Ww extends k {
4879
4879
  constructor() {
4880
4880
  super(...arguments);
4881
4881
  u(this, "name", "Asset Type Fields");
@@ -5025,7 +5025,7 @@ class Kw extends j {
5025
5025
  return this.dispatch(n(r)), r;
5026
5026
  }
5027
5027
  }
5028
- class Yw extends v {
5028
+ class Yw extends k {
5029
5029
  constructor() {
5030
5030
  super(...arguments);
5031
5031
  u(this, "name", "Asset Type Field Values");
@@ -5073,7 +5073,7 @@ class Yw extends v {
5073
5073
  for (const b of f) {
5074
5074
  const R = [];
5075
5075
  for (const w of b) {
5076
- const k = I({
5076
+ const v = I({
5077
5077
  ...w,
5078
5078
  values: w.values,
5079
5079
  created_by: this.select((B) => {
@@ -5082,12 +5082,12 @@ class Yw extends v {
5082
5082
  }),
5083
5083
  submitted_at: p
5084
5084
  });
5085
- l.push(k), R.push({
5086
- uuid: k.uuid,
5085
+ l.push(v), R.push({
5086
+ uuid: v.uuid,
5087
5087
  asset: w.asset,
5088
5088
  fields_revision: w.fields_revision,
5089
5089
  published_at: w.published_at,
5090
- values: k.values
5090
+ values: v.values
5091
5091
  });
5092
5092
  }
5093
5093
  A.push({
@@ -5099,12 +5099,12 @@ class Yw extends v {
5099
5099
  this.dispatch(r(l));
5100
5100
  const M = [];
5101
5101
  for (const b of A) {
5102
- const { field_values: R } = b, w = R.map(({ asset: D }) => D), k = R.map(({ fields_revision: D }) => D), B = R.map(({ uuid: D }) => D), V = this.enqueueRequest({
5102
+ const { field_values: R } = b, w = R.map(({ asset: D }) => D), v = R.map(({ fields_revision: D }) => D), B = R.map(({ uuid: D }) => D), V = this.enqueueRequest({
5103
5103
  description: S(o.POST, this.name, !0),
5104
5104
  method: o.POST,
5105
5105
  url: `${this.url}/bulk/`,
5106
5106
  payload: b,
5107
- blockers: w.concat(k),
5107
+ blockers: w.concat(v),
5108
5108
  blocks: B
5109
5109
  });
5110
5110
  M.push(V);
@@ -5173,7 +5173,7 @@ class Yw extends v {
5173
5173
  return this.dispatch(n(r)), r;
5174
5174
  }
5175
5175
  }
5176
- class Jw extends v {
5176
+ class Jw extends k {
5177
5177
  constructor() {
5178
5178
  super(...arguments);
5179
5179
  u(this, "name", "Asset Type Identifier");
@@ -5270,7 +5270,7 @@ class Jw extends v {
5270
5270
  return this.dispatch(n(a)), a;
5271
5271
  }
5272
5272
  }
5273
- class Zw extends v {
5273
+ class Zw extends k {
5274
5274
  constructor() {
5275
5275
  super(...arguments);
5276
5276
  u(this, "name", "Asset Type Identifier Value");
@@ -5321,7 +5321,7 @@ class Zw extends v {
5321
5321
  return ((R = b.userReducer.currentUser) == null ? void 0 : R.id) ?? null;
5322
5322
  }), p = ct(e, Math.min(i ?? e.length, at)), l = [], f = [];
5323
5323
  for (const b of p) {
5324
- const R = [], w = [], k = [];
5324
+ const R = [], w = [], v = [];
5325
5325
  for (const V of b) {
5326
5326
  const D = I({
5327
5327
  ...V,
@@ -5335,19 +5335,19 @@ class Zw extends v {
5335
5335
  asset_type_identifier: D.asset_type_identifier,
5336
5336
  value: D.value
5337
5337
  };
5338
- R.push(q), w.push(D.asset), w.push(D.asset_type_identifier), k.push(D.uuid);
5338
+ R.push(q), w.push(D.asset), w.push(D.asset_type_identifier), v.push(D.uuid);
5339
5339
  }
5340
5340
  const B = {
5341
5341
  payloads: R,
5342
5342
  submitted_at: d,
5343
5343
  blockers: w,
5344
- blocks: k
5344
+ blocks: v
5345
5345
  };
5346
5346
  l.push(B);
5347
5347
  }
5348
5348
  this.dispatch(n(f));
5349
5349
  const A = l.map((b) => {
5350
- const { payloads: R, submitted_at: w, blockers: k, blocks: B } = b;
5350
+ const { payloads: R, submitted_at: w, blockers: v, blocks: B } = b;
5351
5351
  return this.enqueueRequest({
5352
5352
  description: S(o.POST, this.name, !0),
5353
5353
  method: o.POST,
@@ -5356,7 +5356,7 @@ class Zw extends v {
5356
5356
  submitted_at: w,
5357
5357
  payloads: R
5358
5358
  },
5359
- blockers: k,
5359
+ blockers: v,
5360
5360
  blocks: B
5361
5361
  });
5362
5362
  });
@@ -5398,7 +5398,7 @@ class Zw extends v {
5398
5398
  return this.dispatch(n(r)), r;
5399
5399
  }
5400
5400
  }
5401
- class Xw extends v {
5401
+ class Xw extends k {
5402
5402
  constructor() {
5403
5403
  super(...arguments);
5404
5404
  u(this, "name", "Asset Type");
@@ -5496,7 +5496,7 @@ class Xw extends v {
5496
5496
  return this.dispatch(n(a)), a;
5497
5497
  }
5498
5498
  }
5499
- class Qw extends v {
5499
+ class Qw extends k {
5500
5500
  constructor() {
5501
5501
  super(...arguments);
5502
5502
  u(this, "name", "Asset Type Status");
@@ -5692,7 +5692,7 @@ class eR extends j {
5692
5692
  return this.dispatch(n(c)), c;
5693
5693
  }
5694
5694
  }
5695
- class tR extends v {
5695
+ class tR extends k {
5696
5696
  constructor() {
5697
5697
  super(...arguments);
5698
5698
  u(this, "name", "Document");
@@ -5799,7 +5799,7 @@ class tR extends v {
5799
5799
  return this.dispatch(n(c)), c;
5800
5800
  }
5801
5801
  }
5802
- class Ot extends At {
5802
+ class ut extends Ot {
5803
5803
  async get(s, e) {
5804
5804
  return this.performRequest(
5805
5805
  {
@@ -5826,7 +5826,7 @@ class Ot extends At {
5826
5826
  );
5827
5827
  }
5828
5828
  }
5829
- class sR extends Ot {
5829
+ class sR extends ut {
5830
5830
  constructor() {
5831
5831
  super(...arguments);
5832
5832
  u(this, "name", "Email Domains");
@@ -5884,7 +5884,7 @@ class sR extends Ot {
5884
5884
  return this.dispatch(n(a)), a;
5885
5885
  }
5886
5886
  }
5887
- class iR extends At {
5887
+ class iR extends Ot {
5888
5888
  async getVerificationCode(s) {
5889
5889
  return this.enqueueRequest({
5890
5890
  description: "Get verification code",
@@ -5908,7 +5908,7 @@ class iR extends At {
5908
5908
  }
5909
5909
  }
5910
5910
  const It = {}, Ct = /* @__PURE__ */ new Set(), Ut = /* @__PURE__ */ new Set();
5911
- class nR extends At {
5911
+ class nR extends Ot {
5912
5912
  constructor() {
5913
5913
  super(...arguments);
5914
5914
  u(this, "host");
@@ -6048,7 +6048,7 @@ class nR extends At {
6048
6048
  return i;
6049
6049
  }
6050
6050
  }
6051
- class rR extends v {
6051
+ class rR extends k {
6052
6052
  constructor() {
6053
6053
  super(...arguments);
6054
6054
  u(this, "name", "Form Identifier");
@@ -6145,7 +6145,7 @@ class rR extends v {
6145
6145
  return this.dispatch(n(a)), a;
6146
6146
  }
6147
6147
  }
6148
- class aR extends v {
6148
+ class aR extends k {
6149
6149
  constructor() {
6150
6150
  super(...arguments);
6151
6151
  u(this, "name", "Form Identifier Value");
@@ -6309,7 +6309,7 @@ class cR extends j {
6309
6309
  return this.dispatch(n(a)), a;
6310
6310
  }
6311
6311
  }
6312
- class dR extends v {
6312
+ class dR extends k {
6313
6313
  constructor() {
6314
6314
  super(...arguments);
6315
6315
  u(this, "name", "Form Revision");
@@ -6366,7 +6366,7 @@ class dR extends v {
6366
6366
  return this.dispatch(n(a)), a;
6367
6367
  }
6368
6368
  }
6369
- class oR extends v {
6369
+ class oR extends k {
6370
6370
  constructor() {
6371
6371
  super(...arguments);
6372
6372
  u(this, "name", "Form");
@@ -6439,7 +6439,7 @@ class oR extends v {
6439
6439
  if (!r)
6440
6440
  throw new Error("Expected form to exist");
6441
6441
  const d = this.select(Kh(e)), c = this.select(hh(e));
6442
- this.dispatch(i(e)), this.dispatch(mt(E(d))), this.dispatch(xn(E(c)));
6442
+ this.dispatch(i(e)), this.dispatch(yt(E(d))), this.dispatch(xn(E(c)));
6443
6443
  try {
6444
6444
  return await this.enqueueRequest({
6445
6445
  description: S(o.DELETE, this.name, !1),
@@ -6449,7 +6449,7 @@ class oR extends v {
6449
6449
  blocks: []
6450
6450
  });
6451
6451
  } catch (p) {
6452
- throw this.dispatch(n(r)), this.dispatch(Vn(c)), this.dispatch(pt(d)), p;
6452
+ throw this.dispatch(n(r)), this.dispatch(Vn(c)), this.dispatch(mt(d)), p;
6453
6453
  }
6454
6454
  }
6455
6455
  async refreshStore(e, i) {
@@ -6570,20 +6570,20 @@ class uR extends j {
6570
6570
  return this.dispatch(n(r)), r;
6571
6571
  }
6572
6572
  }
6573
- class lR extends v {
6573
+ class lR extends k {
6574
6574
  constructor() {
6575
6575
  super(...arguments);
6576
6576
  u(this, "name", "Form Submission");
6577
6577
  u(this, "url", "/form-submissions");
6578
6578
  u(this, "actions", {
6579
6579
  addOne: Ch,
6580
- addMany: pt,
6580
+ addMany: mt,
6581
6581
  setOne: Vh,
6582
6582
  setMany: xh,
6583
6583
  updateOne: Uh,
6584
6584
  updateMany: Lh,
6585
6585
  deleteOne: Nh,
6586
- deleteMany: mt,
6586
+ deleteMany: yt,
6587
6587
  initialize: $h
6588
6588
  });
6589
6589
  u(this, "selectors", {
@@ -6784,7 +6784,7 @@ class hR extends j {
6784
6784
  return this.dispatch(n(a)), a;
6785
6785
  }
6786
6786
  }
6787
- class pR extends v {
6787
+ class pR extends k {
6788
6788
  constructor() {
6789
6789
  super(...arguments);
6790
6790
  u(this, "name", "Issue Association");
@@ -6881,7 +6881,7 @@ class pR extends v {
6881
6881
  return this.dispatch(n(r)), r;
6882
6882
  }
6883
6883
  }
6884
- class mR extends v {
6884
+ class mR extends k {
6885
6885
  constructor() {
6886
6886
  super(...arguments);
6887
6887
  u(this, "name", "Issue Assignee");
@@ -6943,7 +6943,7 @@ class mR extends v {
6943
6943
  method: o.POST,
6944
6944
  url: `${this.url}/bulk/`,
6945
6945
  payload: {
6946
- issue_assignees: c.map((l) => F(l)),
6946
+ payloads: c.map((l) => F(l)),
6947
6947
  submitted_at: d
6948
6948
  },
6949
6949
  blockers: c.map((l) => l.issue),
@@ -7144,7 +7144,7 @@ class fR extends j {
7144
7144
  return this.dispatch(n(r)), r;
7145
7145
  }
7146
7146
  }
7147
- class SR extends v {
7147
+ class SR extends k {
7148
7148
  constructor() {
7149
7149
  super(...arguments);
7150
7150
  u(this, "name", "Issue Comment");
@@ -7238,7 +7238,7 @@ class SR extends v {
7238
7238
  return this.dispatch(n(r)), r;
7239
7239
  }
7240
7240
  }
7241
- class AR extends v {
7241
+ class AR extends k {
7242
7242
  constructor() {
7243
7243
  super(...arguments);
7244
7244
  u(this, "name", "Issue");
@@ -7322,7 +7322,7 @@ class AR extends v {
7322
7322
  const p = ct(e, Math.min(i ?? e.length, at)), l = [];
7323
7323
  let f = null;
7324
7324
  for (const A of p) {
7325
- const M = ot(), b = E(A), R = A.map(({ status: B }) => B).filter(Boolean), w = A.map(({ priority: B }) => B).filter(Boolean), k = this.enqueueRequest({
7325
+ const M = ot(), b = E(A), R = A.map(({ status: B }) => B).filter(Boolean), w = A.map(({ priority: B }) => B).filter(Boolean), v = this.enqueueRequest({
7326
7326
  description: S(o.PATCH, this.name, !0),
7327
7327
  method: o.PATCH,
7328
7328
  url: `${this.url}/bulk/`,
@@ -7332,7 +7332,7 @@ class AR extends v {
7332
7332
  blockers: (f ? [f] : []).concat(b).concat(R).concat(w),
7333
7333
  blocks: [M].concat(b)
7334
7334
  });
7335
- l.push(k), f = M;
7335
+ l.push(v), f = M;
7336
7336
  }
7337
7337
  return Promise.all(l).then((A) => {
7338
7338
  this.dispatch(n(A.flat()));
@@ -7345,7 +7345,7 @@ class AR extends v {
7345
7345
  if (!r)
7346
7346
  throw new Error(`No issue with uuid ${e} found in the store`);
7347
7347
  const d = this.select(_p(e)), c = this.select($p(e)), p = this.select(Yp(e)), l = this.select(pS(e)), f = this.select(Yh(e));
7348
- this.dispatch(i(e)), this.dispatch(sr(E(p))), this.dispatch(kr(E(l))), this.dispatch(bt(E(d))), this.dispatch(Kt(E(c))), this.dispatch(mt(E(f)));
7348
+ this.dispatch(i(e)), this.dispatch(sr(E(p))), this.dispatch(kr(E(l))), this.dispatch(bt(E(d))), this.dispatch(Kt(E(c))), this.dispatch(yt(E(f)));
7349
7349
  try {
7350
7350
  return await this.enqueueRequest({
7351
7351
  description: S(o.DELETE, this.name, !1),
@@ -7355,12 +7355,12 @@ class AR extends v {
7355
7355
  blocks: []
7356
7356
  });
7357
7357
  } catch (A) {
7358
- throw this.dispatch(n(r)), this.dispatch(tr(p)), this.dispatch(vr(l)), this.dispatch(Pt(d)), this.dispatch(Wt(c)), this.dispatch(pt(f)), A;
7358
+ throw this.dispatch(n(r)), this.dispatch(tr(p)), this.dispatch(vr(l)), this.dispatch(Pt(d)), this.dispatch(Wt(c)), this.dispatch(mt(f)), A;
7359
7359
  }
7360
7360
  }
7361
7361
  async bulkDelete(e) {
7362
7362
  const { addMany: i, deleteMany: n } = this.actions, { selectByIds: a } = this.selectors, r = this.select(a(e)), d = this.select(bp(e)), c = this.select(Vp(e)), p = this.select(Jh(e));
7363
- this.dispatch(n(e)), this.dispatch(bt(E(d))), this.dispatch(Kt(E(c))), this.dispatch(mt(E(p)));
7363
+ this.dispatch(n(e)), this.dispatch(bt(E(d))), this.dispatch(Kt(E(c))), this.dispatch(yt(E(p)));
7364
7364
  try {
7365
7365
  return await this.enqueueRequest({
7366
7366
  description: S(o.DELETE, this.name, !0),
@@ -7371,7 +7371,7 @@ class AR extends v {
7371
7371
  blocks: []
7372
7372
  });
7373
7373
  } catch (l) {
7374
- throw this.dispatch(i(r)), this.dispatch(Pt(d)), this.dispatch(Wt(c)), this.dispatch(pt(p)), l;
7374
+ throw this.dispatch(i(r)), this.dispatch(Pt(d)), this.dispatch(Wt(c)), this.dispatch(mt(p)), l;
7375
7375
  }
7376
7376
  }
7377
7377
  async refreshStore(e, i) {
@@ -7534,7 +7534,7 @@ class IR extends j {
7534
7534
  return this.dispatch(n(a)), a;
7535
7535
  }
7536
7536
  }
7537
- class TR extends v {
7537
+ class TR extends k {
7538
7538
  constructor() {
7539
7539
  super(...arguments);
7540
7540
  u(this, "name", "Issue Type Fields");
@@ -7684,7 +7684,7 @@ class PR extends j {
7684
7684
  return this.dispatch(n(r)), r;
7685
7685
  }
7686
7686
  }
7687
- class bR extends v {
7687
+ class bR extends k {
7688
7688
  constructor() {
7689
7689
  super(...arguments);
7690
7690
  u(this, "name", "Issue Type Field Values");
@@ -7785,7 +7785,7 @@ class bR extends v {
7785
7785
  return this.dispatch(n(r)), r;
7786
7786
  }
7787
7787
  }
7788
- class _R extends v {
7788
+ class _R extends k {
7789
7789
  constructor() {
7790
7790
  super(...arguments);
7791
7791
  u(this, "name", "Issue Type Identifier");
@@ -7882,7 +7882,7 @@ class _R extends v {
7882
7882
  return this.dispatch(n(a)), a;
7883
7883
  }
7884
7884
  }
7885
- class gR extends v {
7885
+ class gR extends k {
7886
7886
  constructor() {
7887
7887
  super(...arguments);
7888
7888
  u(this, "name", "Issue Type Identifier Value");
@@ -7957,7 +7957,7 @@ class gR extends v {
7957
7957
  return this.dispatch(n(r)), r;
7958
7958
  }
7959
7959
  }
7960
- class MR extends v {
7960
+ class MR extends k {
7961
7961
  constructor() {
7962
7962
  super(...arguments);
7963
7963
  u(this, "name", "Issue Type Priority");
@@ -8051,7 +8051,7 @@ class MR extends v {
8051
8051
  return this.dispatch(n(a)), a;
8052
8052
  }
8053
8053
  }
8054
- class wR extends v {
8054
+ class wR extends k {
8055
8055
  constructor() {
8056
8056
  super(...arguments);
8057
8057
  u(this, "name", "Issue Type");
@@ -8147,7 +8147,7 @@ class wR extends v {
8147
8147
  return this.dispatch(n(a)), a;
8148
8148
  }
8149
8149
  }
8150
- class RR extends v {
8150
+ class RR extends k {
8151
8151
  constructor() {
8152
8152
  super(...arguments);
8153
8153
  u(this, "name", "Issue Type Status");
@@ -8241,7 +8241,7 @@ class RR extends v {
8241
8241
  return this.dispatch(n(a)), a;
8242
8242
  }
8243
8243
  }
8244
- class FR extends v {
8244
+ class FR extends ut {
8245
8245
  constructor() {
8246
8246
  super(...arguments);
8247
8247
  u(this, "name", "Issue Update");
@@ -8392,7 +8392,7 @@ class ER extends U_ {
8392
8392
  });
8393
8393
  }
8394
8394
  }
8395
- class vR extends Ot {
8395
+ class vR extends ut {
8396
8396
  constructor() {
8397
8397
  super(...arguments);
8398
8398
  u(this, "name", "Organization Access");
@@ -8461,7 +8461,7 @@ class vR extends Ot {
8461
8461
  return this.dispatch(n(a)), a;
8462
8462
  }
8463
8463
  }
8464
- class kR extends Ot {
8464
+ class kR extends ut {
8465
8465
  constructor() {
8466
8466
  super(...arguments);
8467
8467
  u(this, "name", "Organization");
@@ -8518,7 +8518,7 @@ class kR extends Ot {
8518
8518
  return this.dispatch(i(n)), n;
8519
8519
  }
8520
8520
  }
8521
- class BR extends v {
8521
+ class BR extends k {
8522
8522
  constructor() {
8523
8523
  super(...arguments);
8524
8524
  u(this, "name", "Project Access");
@@ -8704,7 +8704,7 @@ class zR extends j {
8704
8704
  return this.dispatch(n(a)), a;
8705
8705
  }
8706
8706
  }
8707
- class DR extends v {
8707
+ class DR extends k {
8708
8708
  constructor() {
8709
8709
  super(...arguments);
8710
8710
  u(this, "name", "Project Comment");
@@ -8899,7 +8899,7 @@ class qR extends j {
8899
8899
  return this.dispatch(n(r)), r;
8900
8900
  }
8901
8901
  }
8902
- class jR extends Ot {
8902
+ class jR extends ut {
8903
8903
  constructor() {
8904
8904
  super(...arguments);
8905
8905
  u(this, "name", "Project");
@@ -8958,7 +8958,7 @@ class jR extends Ot {
8958
8958
  return this.dispatch(n(a)), a;
8959
8959
  }
8960
8960
  }
8961
- class $R extends v {
8961
+ class $R extends k {
8962
8962
  constructor() {
8963
8963
  super(...arguments);
8964
8964
  u(this, "name", "Procedure");
@@ -9012,14 +9012,14 @@ class $R extends v {
9012
9012
  var b;
9013
9013
  const { store: n } = this.client, { addMany: a, updateMany: r, deleteMany: d } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), p = ((b = n.getState().userReducer.currentUser) == null ? void 0 : b.id) ?? null, l = [], f = ct(e, Math.min(i ?? e.length, at)), A = [];
9014
9014
  for (const R of f) {
9015
- const w = [], k = [], B = [];
9015
+ const w = [], v = [], B = [];
9016
9016
  for (const D of R) {
9017
9017
  const q = I({
9018
9018
  ...D,
9019
9019
  submitted_at: c,
9020
9020
  created_by: p
9021
9021
  });
9022
- l.push(q), w.push(F(q)), k.push(
9022
+ l.push(q), w.push(F(q)), v.push(
9023
9023
  q.procedure_type,
9024
9024
  q.project,
9025
9025
  q.asset,
@@ -9031,21 +9031,21 @@ class $R extends v {
9031
9031
  submitted_at: c,
9032
9032
  payloads: w
9033
9033
  },
9034
- blockers: k,
9034
+ blockers: v,
9035
9035
  blocks: B
9036
9036
  };
9037
9037
  A.push(V);
9038
9038
  }
9039
9039
  this.dispatch(a(l));
9040
9040
  const M = A.map((R) => {
9041
- const { payload: w, blocks: k, blockers: B } = R;
9041
+ const { payload: w, blocks: v, blockers: B } = R;
9042
9042
  return this.enqueueRequest({
9043
9043
  description: S(o.POST, this.name, !0),
9044
9044
  method: o.POST,
9045
9045
  url: `${this.url}/bulk/`,
9046
9046
  payload: w,
9047
9047
  blockers: B,
9048
- blocks: k
9048
+ blocks: v
9049
9049
  });
9050
9050
  });
9051
9051
  return Promise.all(M).then((R) => {
@@ -9122,7 +9122,7 @@ class $R extends v {
9122
9122
  return this.dispatch(n(r)), r;
9123
9123
  }
9124
9124
  }
9125
- class VR extends v {
9125
+ class VR extends k {
9126
9126
  constructor() {
9127
9127
  super(...arguments);
9128
9128
  u(this, "name", "Procedure Step Assignee");
@@ -9244,7 +9244,7 @@ class VR extends v {
9244
9244
  return this.dispatch(n(r)), r;
9245
9245
  }
9246
9246
  }
9247
- class xR extends v {
9247
+ class xR extends k {
9248
9248
  constructor() {
9249
9249
  super(...arguments);
9250
9250
  u(this, "name", "Procedure Step Comment");
@@ -9341,7 +9341,7 @@ class xR extends v {
9341
9341
  return this.dispatch(n(r)), r;
9342
9342
  }
9343
9343
  }
9344
- class CR extends v {
9344
+ class CR extends k {
9345
9345
  constructor() {
9346
9346
  super(...arguments);
9347
9347
  u(this, "name", "Procedure Step Default Assignee");
@@ -9415,7 +9415,7 @@ class CR extends v {
9415
9415
  return this.dispatch(n(a)), a;
9416
9416
  }
9417
9417
  }
9418
- class UR extends v {
9418
+ class UR extends k {
9419
9419
  constructor() {
9420
9420
  super(...arguments);
9421
9421
  u(this, "name", "Procedure Step Default Reviewer");
@@ -9489,7 +9489,7 @@ class UR extends v {
9489
9489
  return this.dispatch(n(a)), a;
9490
9490
  }
9491
9491
  }
9492
- class LR extends Ot {
9492
+ class LR extends ut {
9493
9493
  constructor() {
9494
9494
  super(...arguments);
9495
9495
  u(this, "name", "Procedure Step Event");
@@ -9597,7 +9597,7 @@ class NR extends j {
9597
9597
  return this.dispatch(n(a)), a;
9598
9598
  }
9599
9599
  }
9600
- class HR extends v {
9600
+ class HR extends k {
9601
9601
  constructor() {
9602
9602
  super(...arguments);
9603
9603
  u(this, "name", "Procedure Step Fields");
@@ -9765,7 +9765,7 @@ class GR extends j {
9765
9765
  return this.dispatch(n(r)), r;
9766
9766
  }
9767
9767
  }
9768
- class WR extends v {
9768
+ class WR extends k {
9769
9769
  constructor() {
9770
9770
  super(...arguments);
9771
9771
  u(this, "name", "Procedure Step Field Values Review");
@@ -9862,7 +9862,7 @@ class WR extends v {
9862
9862
  return this.dispatch(n(r)), r;
9863
9863
  }
9864
9864
  }
9865
- class KR extends v {
9865
+ class KR extends k {
9866
9866
  constructor() {
9867
9867
  super(...arguments);
9868
9868
  u(this, "name", "Procedure Step Field Values");
@@ -9912,10 +9912,10 @@ class KR extends v {
9912
9912
  }), p = [], l = ct(e, Math.min(i ?? e.length, at)), f = [];
9913
9913
  for (const M of l) {
9914
9914
  const b = [], R = [], w = [];
9915
- for (const k of M) {
9915
+ for (const v of M) {
9916
9916
  const B = I({
9917
- ...k,
9918
- values: k.values,
9917
+ ...v,
9918
+ values: v.values,
9919
9919
  created_by: c,
9920
9920
  submitted_at: d
9921
9921
  });
@@ -10013,7 +10013,7 @@ class KR extends v {
10013
10013
  return this.dispatch(n(r)), r;
10014
10014
  }
10015
10015
  }
10016
- class YR extends v {
10016
+ class YR extends k {
10017
10017
  constructor() {
10018
10018
  super(...arguments);
10019
10019
  u(this, "name", "Procedure Step Reviewer");
@@ -10132,7 +10132,7 @@ class YR extends v {
10132
10132
  return this.dispatch(n(r)), r;
10133
10133
  }
10134
10134
  }
10135
- class JR extends v {
10135
+ class JR extends k {
10136
10136
  constructor() {
10137
10137
  super(...arguments);
10138
10138
  u(this, "name", "Procedure Initiative");
@@ -10228,7 +10228,7 @@ class JR extends v {
10228
10228
  return this.dispatch(n(r)), r;
10229
10229
  }
10230
10230
  }
10231
- class ZR extends v {
10231
+ class ZR extends k {
10232
10232
  constructor() {
10233
10233
  super(...arguments);
10234
10234
  u(this, "name", "Procedure Step");
@@ -10471,7 +10471,7 @@ class QR extends j {
10471
10471
  return this.dispatch(n(a)), a;
10472
10472
  }
10473
10473
  }
10474
- class eF extends v {
10474
+ class eF extends k {
10475
10475
  constructor() {
10476
10476
  super(...arguments);
10477
10477
  u(this, "name", "Procedure Type Fields");
@@ -10621,7 +10621,7 @@ class tF extends j {
10621
10621
  return this.dispatch(n(r)), r;
10622
10622
  }
10623
10623
  }
10624
- class sF extends v {
10624
+ class sF extends k {
10625
10625
  constructor() {
10626
10626
  super(...arguments);
10627
10627
  u(this, "name", "Procedure Field Values");
@@ -10671,10 +10671,10 @@ class sF extends v {
10671
10671
  }), p = [], l = ct(e, Math.min(i ?? e.length, at)), f = [];
10672
10672
  for (const M of l) {
10673
10673
  const b = [], R = [], w = [];
10674
- for (const k of M) {
10674
+ for (const v of M) {
10675
10675
  const B = I({
10676
- ...k,
10677
- values: k.values,
10676
+ ...v,
10677
+ values: v.values,
10678
10678
  created_by: c,
10679
10679
  submitted_at: d
10680
10680
  });
@@ -10764,7 +10764,7 @@ class sF extends v {
10764
10764
  return this.dispatch(n(r)), r;
10765
10765
  }
10766
10766
  }
10767
- class iF extends v {
10767
+ class iF extends k {
10768
10768
  constructor() {
10769
10769
  super(...arguments);
10770
10770
  u(this, "name", "Procedure Type");
@@ -10862,7 +10862,7 @@ class iF extends v {
10862
10862
  return this.dispatch(n(a)), a;
10863
10863
  }
10864
10864
  }
10865
- class nF extends v {
10865
+ class nF extends k {
10866
10866
  constructor() {
10867
10867
  super(...arguments);
10868
10868
  u(this, "name", "Team Membership");
@@ -10955,7 +10955,7 @@ class nF extends v {
10955
10955
  return this.dispatch(n(a)), a;
10956
10956
  }
10957
10957
  }
10958
- class rF extends v {
10958
+ class rF extends k {
10959
10959
  constructor() {
10960
10960
  super(...arguments);
10961
10961
  u(this, "name", "Team");
@@ -11052,7 +11052,7 @@ class rF extends v {
11052
11052
  return this.dispatch(n(a)), a;
11053
11053
  }
11054
11054
  }
11055
- class aF extends Ot {
11055
+ class aF extends ut {
11056
11056
  constructor() {
11057
11057
  super(...arguments);
11058
11058
  u(this, "name", "User");
@@ -11095,7 +11095,7 @@ class aF extends Ot {
11095
11095
  }
11096
11096
  }
11097
11097
  async function Na(t, s, e, i, n) {
11098
- const a = i instanceof At;
11098
+ const a = i instanceof Ot;
11099
11099
  a && s.checkAuth !== !1 && await i.auth.prepareAuth();
11100
11100
  const r = {
11101
11101
  queryParams: "",
@@ -11115,36 +11115,36 @@ async function Na(t, s, e, i, n) {
11115
11115
  ...s
11116
11116
  };
11117
11117
  let w = s.url;
11118
- const k = A ? await e.files.getFileFromCache(A) : void 0;
11119
- if (A && !k)
11118
+ const v = A ? await e.files.getFileFromCache(A) : void 0;
11119
+ if (A && !v)
11120
11120
  throw new Error(`Cannot upload file ${A} because it's not cached.`);
11121
11121
  !M && !w.startsWith("http") && (!w.startsWith("/") && !w.startsWith("blob:") && (w = "/" + w), w = t + w);
11122
11122
  const B = ($) => {
11123
11123
  if (A) {
11124
11124
  if (!d) throw new Error(`No S3 URL for file ${A}`);
11125
11125
  if ("warning" in d) throw new Error(`S3 URL warning for file ${A}`);
11126
- if (!k) throw new Error(`No file for file ${A}`);
11126
+ if (!v) throw new Error(`No file for file ${A}`);
11127
11127
  const C = d.fields["x-amz-checksum-sha1"];
11128
11128
  if (!C) throw new Error(`No checksum for file ${A}`);
11129
- return $.set("x-amz-checksum-sha1", C).field({ ...c, ...d.fields }).attach("file", k);
11129
+ return $.set("x-amz-checksum-sha1", C).field({ ...c, ...d.fields }).attach("file", v);
11130
11130
  }
11131
11131
  return $.send(c);
11132
11132
  }, D = {
11133
- [o.GET]: () => R ? lt.get(w.toString()).responseType("blob") : lt.get(w.toString()),
11133
+ [o.GET]: () => R ? ht.get(w.toString()).responseType("blob") : ht.get(w.toString()),
11134
11134
  [o.POST]: () => {
11135
- const $ = lt.post(w.toString());
11135
+ const $ = ht.post(w.toString());
11136
11136
  return B($);
11137
11137
  },
11138
11138
  [o.PATCH]: () => {
11139
- const $ = lt.patch(w.toString());
11139
+ const $ = ht.patch(w.toString());
11140
11140
  return B($);
11141
11141
  },
11142
11142
  [o.PUT]: () => {
11143
- const $ = lt.put(w.toString());
11143
+ const $ = ht.put(w.toString());
11144
11144
  return B($);
11145
11145
  },
11146
11146
  [o.DELETE]: () => {
11147
- const $ = lt.delete(w.toString());
11147
+ const $ = ht.delete(w.toString());
11148
11148
  return B($);
11149
11149
  }
11150
11150
  }[l];
@@ -11414,7 +11414,7 @@ function W_() {
11414
11414
  return Ga;
11415
11415
  }
11416
11416
  let Lt = null;
11417
- function ht() {
11417
+ function pt() {
11418
11418
  const t = Et();
11419
11419
  if (!t)
11420
11420
  return console.warn("Client store not set; cannot get outbox coordinator yet."), null;
@@ -11496,10 +11496,10 @@ export {
11496
11496
  Zw as AssetTypeIdentifierValueService,
11497
11497
  Xw as AssetTypeService,
11498
11498
  Qw as AssetTypeStatusService,
11499
- At as BaseApiService,
11500
- Ot as BaseModelApiService,
11499
+ Ot as BaseApiService,
11500
+ ut as BaseModelApiService,
11501
11501
  j as BaseOfflineFileModelApiService,
11502
- v as BaseOfflineModelApiService,
11502
+ k as BaseOfflineModelApiService,
11503
11503
  cF as BaseSDK,
11504
11504
  cc as COMMON_AUTO_FIELDS,
11505
11505
  F_ as DEFAULT_PAGE_SIZE,
@@ -11632,7 +11632,7 @@ export {
11632
11632
  Ch as addFormSubmission,
11633
11633
  Rh as addFormSubmissionAttachment,
11634
11634
  Nn as addFormSubmissionAttachments,
11635
- pt as addFormSubmissions,
11635
+ mt as addFormSubmissions,
11636
11636
  fh as addForms,
11637
11637
  ip as addGeoImage,
11638
11638
  np as addGeoImages,
@@ -11811,7 +11811,7 @@ export {
11811
11811
  Nh as deleteFormSubmission,
11812
11812
  Bh as deleteFormSubmissionAttachment,
11813
11813
  Hn as deleteFormSubmissionAttachments,
11814
- mt as deleteFormSubmissions,
11814
+ yt as deleteFormSubmissions,
11815
11815
  Ph as deleteForms,
11816
11816
  cp as deleteGeoImage,
11817
11817
  dp as deleteGeoImages,
@@ -11950,7 +11950,7 @@ export {
11950
11950
  Ic as getFileExtension,
11951
11951
  fc as getLocalDateString,
11952
11952
  Pg as getLocalRelativeDateString,
11953
- ht as getOutboxCoordinator,
11953
+ pt as getOutboxCoordinator,
11954
11954
  Mc as getPresignedUrlExpiryDate,
11955
11955
  _g as getRenamedFile,
11956
11956
  S as getRequestDescription,
@@ -12446,7 +12446,7 @@ export {
12446
12446
  ow as selectProcedureStepEventsOfProcedure,
12447
12447
  lw as selectProcedureStepEventsOfProcedureAndProcedureStep,
12448
12448
  uw as selectProcedureStepEventsOfProcedureStep,
12449
- ft as selectProcedureStepFieldValues,
12449
+ St as selectProcedureStepFieldValues,
12450
12450
  vT as selectProcedureStepFieldValuesAttachmentById,
12451
12451
  ma as selectProcedureStepFieldValuesAttachments,
12452
12452
  kT as selectProcedureStepFieldValuesAttachmentsByIds,
@@ -12458,7 +12458,7 @@ export {
12458
12458
  Sw as selectProcedureStepFieldValuesOfProcedureAndProcedureStep,
12459
12459
  fw as selectProcedureStepFieldValuesOfProcedureStep,
12460
12460
  sP as selectProcedureStepFieldValuesReviewById,
12461
- St as selectProcedureStepFieldValuesReviews,
12461
+ At as selectProcedureStepFieldValuesReviews,
12462
12462
  iP as selectProcedureStepFieldValuesReviewsByIds,
12463
12463
  tP as selectProcedureStepFieldValuesReviewsMapping,
12464
12464
  Ow as selectProcedureStepFieldValuesReviewsOfProcedure,
@@ -12502,7 +12502,7 @@ export {
12502
12502
  Qb as selectProcedureTypesByIds,
12503
12503
  Zb as selectProcedureTypesMapping,
12504
12504
  kw as selectProcedureTypesOfOrganization,
12505
- yt as selectProcedures,
12505
+ ft as selectProcedures,
12506
12506
  jO as selectProceduresByIds,
12507
12507
  DO as selectProceduresMapping,
12508
12508
  VO as selectProceduresOfAsset,