@attabot/complaint-app 1.0.58 → 1.0.59

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.
@@ -3731,23 +3731,23 @@ xe.getAdapter = Bl.getAdapter;
3731
3731
  xe.HttpStatusCode = Ja;
3732
3732
  xe.default = xe;
3733
3733
  const {
3734
- Axios: Wb,
3735
- AxiosError: zb,
3736
- CanceledError: Hb,
3737
- isCancel: Kb,
3738
- CancelToken: Qb,
3739
- VERSION: Xb,
3740
- all: Yb,
3741
- Cancel: Gb,
3742
- isAxiosError: Jb,
3743
- spread: Zb,
3744
- toFormData: e1,
3745
- AxiosHeaders: t1,
3746
- HttpStatusCode: n1,
3747
- formToJSON: r1,
3748
- getAdapter: a1,
3749
- mergeConfig: s1,
3750
- create: i1
3734
+ Axios: zb,
3735
+ AxiosError: Hb,
3736
+ CanceledError: Kb,
3737
+ isCancel: Qb,
3738
+ CancelToken: Xb,
3739
+ VERSION: Yb,
3740
+ all: Gb,
3741
+ Cancel: Jb,
3742
+ isAxiosError: Zb,
3743
+ spread: e1,
3744
+ toFormData: t1,
3745
+ AxiosHeaders: n1,
3746
+ HttpStatusCode: r1,
3747
+ formToJSON: a1,
3748
+ getAdapter: s1,
3749
+ mergeConfig: i1,
3750
+ create: o1
3751
3751
  } = xe;
3752
3752
  function pr(e) {
3753
3753
  for (var t = 1; t < arguments.length; t++) {
@@ -3819,8 +3819,13 @@ function Za(e, t) {
3819
3819
  );
3820
3820
  }
3821
3821
  var On = Za(vm, { path: "/" });
3822
- const wm = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
3823
- let gn = "https://api-grievance.airaops.com", jl = null, Ms = !1;
3822
+ const wm = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Sm = () => {
3823
+ if (typeof window > "u")
3824
+ return process.env.NEXT_PUBLIC_API_URL || "https://api-grievance.airaops.com";
3825
+ const e = window.location.hostname;
3826
+ return e === "localhost" || e === "127.0.0.1" ? "http://localhost:8000" : e === "dev-dashboard.airaops.com" ? "https://api-grievance-dev.airaops.com/" : "https://api-grievance.airaops.com";
3827
+ };
3828
+ let gn = Sm(), jl = null, Ms = !1;
3824
3829
  try {
3825
3830
  if (typeof import.meta < "u" && wm?.VITE_API_URL)
3826
3831
  gn = void 0;
@@ -3830,13 +3835,13 @@ try {
3830
3835
  }
3831
3836
  } catch {
3832
3837
  }
3833
- const Sm = (e) => {
3838
+ const Cm = (e) => {
3834
3839
  gn = e || "", Te.defaults.baseURL = gn;
3835
3840
  }, Vl = (e) => {
3836
3841
  jl = e || null;
3837
- }, Cm = (e) => {
3842
+ }, Nm = (e) => {
3838
3843
  Ms = !!e;
3839
- }, Nm = () => Ms ? null : jl || On.get("token") || null, Te = xe.create({
3844
+ }, _m = () => Ms ? null : jl || On.get("token") || null, Te = xe.create({
3840
3845
  baseURL: gn,
3841
3846
  headers: {
3842
3847
  Accept: "application/json",
@@ -3844,7 +3849,7 @@ const Sm = (e) => {
3844
3849
  }
3845
3850
  });
3846
3851
  Te.interceptors.request.use((e) => {
3847
- const t = Nm();
3852
+ const t = _m();
3848
3853
  return e.headers = e.headers || {}, t ? e.headers.Authorization = `Bearer ${t}` : delete e.headers.Authorization, e;
3849
3854
  });
3850
3855
  let Ca = !1, Na = null;
@@ -3876,7 +3881,7 @@ Te.interceptors.response.use(
3876
3881
  return Promise.reject(e);
3877
3882
  }
3878
3883
  );
3879
- const _m = Yn(null), Lm = ({ children: e, apiUrl: t, authToken: n, publicAccess: r = !1 }) => (t && Sm(t), Cm(r), Vl(n || null), /* @__PURE__ */ o(_m.Provider, { value: { apiUrl: t, authToken: r ? null : n, publicAccess: r }, children: e })), Tt = {
3884
+ const Lm = Yn(null), Em = ({ children: e, apiUrl: t, authToken: n, publicAccess: r = !1 }) => (t && Cm(t), Nm(r), Vl(n || null), /* @__PURE__ */ o(Lm.Provider, { value: { apiUrl: t, authToken: r ? null : n, publicAccess: r }, children: e })), Tt = {
3880
3885
  mode: "light",
3881
3886
  colors: {
3882
3887
  primary: "#2D64B8",
@@ -4000,7 +4005,7 @@ const _m = Yn(null), Lm = ({ children: e, apiUrl: t, authToken: n, publicAccess:
4000
4005
  card: "0 1px 2px rgba(0, 0, 0, 0.35)",
4001
4006
  settings: "0 1px 3px rgba(0, 0, 0, 0.4)"
4002
4007
  }
4003
- }, Em = {
4008
+ }, Tm = {
4004
4009
  light: Tt,
4005
4010
  dark: Nr
4006
4011
  };
@@ -4015,7 +4020,7 @@ function Dn(e, t) {
4015
4020
  on(a) && on(e[r]) ? n[r] = Dn(e[r], a) : a !== void 0 && (n[r] = a);
4016
4021
  }), n;
4017
4022
  }
4018
- function Tm(e) {
4023
+ function Im(e) {
4019
4024
  return !e || !on(e) ? { light: Tt, dark: Nr } : on(e.light) || on(e.dark) ? {
4020
4025
  light: Dn(Tt, e.light || {}),
4021
4026
  dark: Dn(Nr, e.dark || {})
@@ -4024,15 +4029,15 @@ function Tm(e) {
4024
4029
  dark: Dn(Nr, e)
4025
4030
  };
4026
4031
  }
4027
- function Im(e, t = !1) {
4028
- const n = Tm(e);
4032
+ function Rm(e, t = !1) {
4033
+ const n = Im(e);
4029
4034
  return {
4030
4035
  ...t ? n.dark : n.light,
4031
4036
  mode: t ? "dark" : "light",
4032
4037
  __pack: n
4033
4038
  };
4034
4039
  }
4035
- const Rm = {
4040
+ const km = {
4036
4041
  primary: "--ca-primary",
4037
4042
  primaryHover: "--ca-primary-hover",
4038
4043
  text: "--ca-text",
@@ -4063,13 +4068,13 @@ const Rm = {
4063
4068
  tableHeadBg: "--ca-table-head-bg",
4064
4069
  sidebarBg: "--ca-sidebar-bg",
4065
4070
  overlay: "--ca-overlay"
4066
- }, km = {
4071
+ }, xm = {
4067
4072
  sm: "--ca-radius-sm",
4068
4073
  md: "--ca-radius-md",
4069
4074
  lg: "--ca-radius-lg",
4070
4075
  xl: "--ca-radius-xl",
4071
4076
  pill: "--ca-radius-pill"
4072
- }, xm = {
4077
+ }, Fm = {
4073
4078
  fontFamily: "--ca-font",
4074
4079
  h1Size: "--ca-h1-size",
4075
4080
  h2Size: "--ca-h2-size",
@@ -4077,31 +4082,31 @@ const Rm = {
4077
4082
  labelSize: "--ca-label-size",
4078
4083
  valueSize: "--ca-value-size",
4079
4084
  smallSize: "--ca-small-size"
4080
- }, Fm = {
4085
+ }, Om = {
4081
4086
  card: "--ca-shadow-card",
4082
4087
  settings: "--ca-shadow-settings"
4083
4088
  };
4084
- function Om(e) {
4089
+ function Dm(e) {
4085
4090
  const t = {};
4086
- return e?.colors && Object.entries(Rm).forEach(([n, r]) => {
4091
+ return e?.colors && Object.entries(km).forEach(([n, r]) => {
4087
4092
  e.colors[n] != null && (t[r] = e.colors[n]);
4088
- }), e?.radii && Object.entries(km).forEach(([n, r]) => {
4093
+ }), e?.radii && Object.entries(xm).forEach(([n, r]) => {
4089
4094
  e.radii[n] != null && (t[r] = e.radii[n]);
4090
- }), e?.typography && Object.entries(xm).forEach(([n, r]) => {
4095
+ }), e?.typography && Object.entries(Fm).forEach(([n, r]) => {
4091
4096
  e.typography[n] != null && (t[r] = e.typography[n]);
4092
- }), e?.shadow && Object.entries(Fm).forEach(([n, r]) => {
4097
+ }), e?.shadow && Object.entries(Om).forEach(([n, r]) => {
4093
4098
  e.shadow[n] != null && (t[r] = e.shadow[n]);
4094
4099
  }), t["--ca-on-primary"] && !t["--ca-white"] && (t["--ca-white"] = t["--ca-on-primary"]), t;
4095
4100
  }
4096
4101
  const ql = Yn({
4097
4102
  darkMode: !1,
4098
4103
  theme: null,
4099
- themeFile: Em,
4104
+ themeFile: Tm,
4100
4105
  cssVars: {}
4101
4106
  });
4102
- function Dm({ theme: e, darkMode: t = !1, children: n }) {
4107
+ function Mm({ theme: e, darkMode: t = !1, children: n }) {
4103
4108
  const r = oe(() => {
4104
- const a = Im(e, !!t), s = Om(a);
4109
+ const a = Rm(e, !!t), s = Dm(a);
4105
4110
  return {
4106
4111
  darkMode: !!t,
4107
4112
  theme: a,
@@ -4117,19 +4122,19 @@ function Wl() {
4117
4122
  }
4118
4123
  const Ps = Object.freeze({
4119
4124
  formFields: (e) => `/api/v1/complaint-types/${e}/form-fields`
4120
- }), Mm = (e) => {
4125
+ }), Pm = (e) => {
4121
4126
  const t = e?.response?.data, n = Array.isArray(t?.errors) ? t.errors.map((a) => a?.message).filter(Boolean) : [];
4122
4127
  if (n.length) return n.join(" ");
4123
4128
  const r = t?.message ?? t?.error ?? e?.message;
4124
4129
  return Array.isArray(r) ? r.filter(Boolean).join(", ") : r && typeof r == "object" ? r.message ?? JSON.stringify(r) : r || "Something went wrong";
4125
- }, Pm = (e, t) => t.rejectWithValue({
4130
+ }, Bm = (e, t) => t.rejectWithValue({
4126
4131
  status: e?.response?.status ?? e?.status,
4127
- message: Mm(e)
4132
+ message: Pm(e)
4128
4133
  }), Bs = (e, t) => Le(e, async (n, r) => {
4129
4134
  try {
4130
4135
  return (await t(n, r)).data;
4131
4136
  } catch (a) {
4132
- return Pm(a, r);
4137
+ return Bm(a, r);
4133
4138
  }
4134
4139
  }), ot = Bs(
4135
4140
  "complaint/types/getFormFields",
@@ -4140,7 +4145,7 @@ const Ps = Object.freeze({
4140
4145
  ), Lr = Bs(
4141
4146
  "complaint/types/deleteFormField",
4142
4147
  ({ complaintTypeId: e, fieldId: t }) => Te.delete(`${Ps.formFields(e)}/${t}`)
4143
- ), Bm = () => ({
4148
+ ), Um = () => ({
4144
4149
  data: [],
4145
4150
  selected: null,
4146
4151
  pagination: null,
@@ -4148,9 +4153,9 @@ const Ps = Object.freeze({
4148
4153
  isMutating: !1,
4149
4154
  error: null
4150
4155
  }), Di = {
4151
- formFields: Bm(),
4156
+ formFields: Um(),
4152
4157
  error: null
4153
- }, Um = (e) => {
4158
+ }, $m = (e) => {
4154
4159
  if (Array.isArray(e)) return { data: e, pagination: null };
4155
4160
  const t = e?.data ?? e;
4156
4161
  return Array.isArray(t) ? { data: t, pagination: e?.pagination ?? null } : {
@@ -4177,7 +4182,7 @@ const Ps = Object.freeze({
4177
4182
  e.addCase(ot.pending, (t) => {
4178
4183
  t.formFields.isLoading = !0, t.formFields.error = null;
4179
4184
  }).addCase(ot.fulfilled, (t, n) => {
4180
- const r = Um(n.payload);
4185
+ const r = $m(n.payload);
4181
4186
  t.formFields.isLoading = !1, t.formFields.data = r.data;
4182
4187
  }).addCase(ot.rejected, (t, n) => {
4183
4188
  t.formFields.isLoading = !1, t.formFields.error = _a(n);
@@ -4197,10 +4202,10 @@ const Ps = Object.freeze({
4197
4202
  });
4198
4203
  }
4199
4204
  }), {
4200
- clearComplaintError: o1,
4201
- clearSelectedComplaintResource: l1,
4202
- resetComplaintState: c1
4203
- } = zl.actions, $m = zl.reducer, ir = "/api/v1/complaint-types", or = (e, t) => {
4205
+ clearComplaintError: l1,
4206
+ clearSelectedComplaintResource: c1,
4207
+ resetComplaintState: d1
4208
+ } = zl.actions, jm = zl.reducer, ir = "/api/v1/complaint-types", or = (e, t) => {
4204
4209
  const n = e?.response?.data, r = Array.isArray(n?.errors) ? n.errors.map((a) => a?.message).filter(Boolean) : [];
4205
4210
  return t.rejectWithValue({
4206
4211
  status: e?.response?.status ?? e?.status,
@@ -4285,17 +4290,17 @@ function es(e) {
4285
4290
  );
4286
4291
  return t === null ? null : [t];
4287
4292
  }
4288
- function jm(e, t) {
4293
+ function Vm(e, t) {
4289
4294
  const n = es(e), r = Wr(t);
4290
4295
  return r !== null && n?.includes(r) === !0;
4291
4296
  }
4292
- const Vm = {
4297
+ const qm = {
4293
4298
  complaintList: [],
4294
4299
  selected: null,
4295
4300
  loading: !1,
4296
4301
  saving: !1,
4297
4302
  error: null
4298
- }, qm = [
4303
+ }, Wm = [
4299
4304
  "data",
4300
4305
  "items",
4301
4306
  "results",
@@ -4308,7 +4313,7 @@ const Vm = {
4308
4313
  ], Hl = (e) => {
4309
4314
  if (Array.isArray(e)) return e;
4310
4315
  if (!e || typeof e != "object") return [];
4311
- for (const t of qm)
4316
+ for (const t of Wm)
4312
4317
  if (e[t] !== void 0) {
4313
4318
  const n = Hl(e[t]);
4314
4319
  if (n.length || Array.isArray(e[t])) return n;
@@ -4320,7 +4325,7 @@ const Vm = {
4320
4325
  return n?.length || !r?.length ? e : { ...e, userIds: r };
4321
4326
  }, Kl = He({
4322
4327
  name: "complaintType",
4323
- initialState: Vm,
4328
+ initialState: qm,
4324
4329
  reducers: {
4325
4330
  setComplaintTypeActive(e, t) {
4326
4331
  const { id: n, isActive: r } = t.payload ?? {};
@@ -4386,13 +4391,13 @@ const Vm = {
4386
4391
  t.saving = !1, t.error = n.payload?.message ?? n.error?.message ?? "Failed to delete complaint type";
4387
4392
  });
4388
4393
  }
4389
- }), { setComplaintTypeActive: Wm } = Kl.actions, zm = Kl.reducer, Hm = {
4394
+ }), { setComplaintTypeActive: zm } = Kl.actions, Hm = Kl.reducer, Km = {
4390
4395
  details: {},
4391
4396
  id: null,
4392
4397
  isEdit: !1
4393
4398
  }, Ql = He({
4394
4399
  name: "appDetails",
4395
- initialState: Hm,
4400
+ initialState: Km,
4396
4401
  reducers: {
4397
4402
  setAppDetails(e, t) {
4398
4403
  e.details = t.payload ?? {};
@@ -4411,21 +4416,21 @@ const Vm = {
4411
4416
  }
4412
4417
  }
4413
4418
  }), {
4414
- setAppDetails: Km,
4415
- clearAppDetails: d1,
4419
+ setAppDetails: Qm,
4420
+ clearAppDetails: u1,
4416
4421
  // id,
4417
4422
  setId: An,
4418
4423
  setIsEdit: Kn,
4419
4424
  // isEdit,
4420
- clearId: u1
4421
- } = Ql.actions, Qm = Ql.reducer, Xm = {
4425
+ clearId: p1
4426
+ } = Ql.actions, Xm = Ql.reducer, Ym = {
4422
4427
  list: [],
4423
4428
  pagination: null,
4424
4429
  isLoading: !1,
4425
4430
  error: null
4426
4431
  }, Xl = He({
4427
4432
  name: "roles",
4428
- initialState: Xm,
4433
+ initialState: Ym,
4429
4434
  reducers: {
4430
4435
  // Unused: nothing dispatches these helpers.
4431
4436
  // clearRolesError: (state) => {
@@ -4456,7 +4461,7 @@ const Vm = {
4456
4461
  // },
4457
4462
  });
4458
4463
  Xl.reducer;
4459
- const zr = 60, ts = 24 * zr, Ym = { d: ts, h: zr, m: 1 };
4464
+ const zr = 60, ts = 24 * zr, Gm = { d: ts, h: zr, m: 1 };
4460
4465
  function Ta(e) {
4461
4466
  const t = Number(e);
4462
4467
  return Number.isFinite(t) && t > 0 ? t : 0;
@@ -4477,7 +4482,7 @@ function Ge(e) {
4477
4482
  const n = /(\d+(?:\.\d+)?)\s*(d|h|m)/g;
4478
4483
  let r = 0, a = !1, s;
4479
4484
  for (; (s = n.exec(t)) !== null; )
4480
- a = !0, r += (Ym[s[2]] || 0) * Number(s[1]);
4485
+ a = !0, r += (Gm[s[2]] || 0) * Number(s[1]);
4481
4486
  return a ? Ta(r) : 0;
4482
4487
  }
4483
4488
  function Sn(e) {
@@ -4488,14 +4493,14 @@ function Sn(e) {
4488
4493
  const n = Math.floor(t / ts), r = Math.floor(t % ts / zr), a = t % zr, s = [];
4489
4494
  return n && s.push(`${n}d`), r && s.push(`${r}h`), a && s.push(`${a}m`), s.join("");
4490
4495
  }
4491
- function Gm(e) {
4496
+ function Jm(e) {
4492
4497
  const t = String(e ?? "").trim().toLowerCase().replace(/minutes?/g, "").replace(/\s+/g, "");
4493
4498
  return !t || !/^(\d+(?:\.\d+)?[dhm])+$/.test(t) ? !1 : Ge(e) > 0;
4494
4499
  }
4495
- function Jm(e) {
4500
+ function Zm(e) {
4496
4501
  return String(e ?? "").replace(/(\d+)\s*minutes?/gi, (t, n) => Sn(Number(n)) || "0m");
4497
4502
  }
4498
- function Zm(e = []) {
4503
+ function eh(e = []) {
4499
4504
  return Yl(e, !0);
4500
4505
  }
4501
4506
  function en(e = [], t = 0) {
@@ -4506,13 +4511,13 @@ function en(e = [], t = 0) {
4506
4511
  ), r = Sn(n), a = e.length - 1;
4507
4512
  return String(e[a]?.escalateAfterMinutes ?? "") === r ? e : e.map((s, l) => l === a ? { ...s, escalateAfterMinutes: r } : s);
4508
4513
  }
4509
- function eh(e = []) {
4514
+ function th(e = []) {
4510
4515
  if (!Array.isArray(e) || e.length === 0) return e;
4511
4516
  const t = e.length - 1;
4512
4517
  return e.map((n, r) => r === t ? { ...n, escalateAfterMinutes: "" } : n);
4513
4518
  }
4514
4519
  const Gl = (e) => `/api/v1/complaint-types/${e}/workflow-steps`;
4515
- function th(e) {
4520
+ function nh(e) {
4516
4521
  const t = e?.response?.data ?? e?.payload ?? e, n = Array.isArray(t?.errors) ? t.errors.map((r) => r?.message).filter(Boolean) : [];
4517
4522
  return n.length ? n.join(" ") : t?.message ?? t?.error ?? e?.message ?? "Something went wrong";
4518
4523
  }
@@ -4521,7 +4526,7 @@ function Ia(e) {
4521
4526
  }
4522
4527
  const Jl = (e, t) => t.rejectWithValue({
4523
4528
  status: e?.response?.status ?? e?.status,
4524
- message: th(e)
4529
+ message: nh(e)
4525
4530
  }), mt = Le(
4526
4531
  "workflow/fetchSteps",
4527
4532
  async (e, t) => {
@@ -4566,14 +4571,14 @@ const Jl = (e, t) => t.rejectWithValue({
4566
4571
  return typeof r == "function" && r(s), Jl(s, a);
4567
4572
  }
4568
4573
  }
4569
- ), nh = {
4574
+ ), rh = {
4570
4575
  workflowSteps: null,
4571
4576
  workflowStepsLoading: !1,
4572
4577
  workflowStepsSaving: !1,
4573
4578
  error: null
4574
- }, rh = He({
4579
+ }, ah = He({
4575
4580
  name: "workflow",
4576
- initialState: nh,
4581
+ initialState: rh,
4577
4582
  reducers: {},
4578
4583
  extraReducers: (e) => {
4579
4584
  e.addCase(mt.pending, (t) => {
@@ -4590,7 +4595,7 @@ const Jl = (e, t) => t.rejectWithValue({
4590
4595
  t.workflowStepsSaving = !1, t.error = n.payload?.message ?? n.error?.message ?? "Failed to update workflow steps";
4591
4596
  });
4592
4597
  }
4593
- }), ah = rh.reducer, Us = "/api/v1/complaints/list", Mi = (e) => Array.isArray(e) ? e.filter((t) => t != null && t !== "" && t !== "all" && t !== "All") : e == null || e === "" || e === "all" || e === "All" ? [] : [e];
4598
+ }), sh = ah.reducer, Us = "/api/v1/complaints/list", Mi = (e) => Array.isArray(e) ? e.filter((t) => t != null && t !== "" && t !== "all" && t !== "All") : e == null || e === "" || e === "all" || e === "All" ? [] : [e];
4594
4599
  function $s(e = {}) {
4595
4600
  const {
4596
4601
  complaintTypeId: t,
@@ -4611,7 +4616,7 @@ function $s(e = {}) {
4611
4616
  }, f = Mi(a), y = Mi(d).map(Number).filter(Number.isFinite);
4612
4617
  return f.length && (u.status = f), y.length && (u.escalationTo = y), c != null && c !== "" && (u.assignmentFilter = c), l && i && (u.fromDate = l, u.toDate = i), typeof p == "string" && p.trim() !== "" && (u.search = p.trim()), u;
4613
4618
  }
4614
- const sh = (e, t) => {
4619
+ const ih = (e, t) => {
4615
4620
  const n = e?.response?.data, r = Array.isArray(n?.errors) ? n.errors.map((a) => a?.message).filter(Boolean) : [];
4616
4621
  return t.rejectWithValue({
4617
4622
  status: e?.response?.status ?? e?.status,
@@ -4625,10 +4630,10 @@ const sh = (e, t) => {
4625
4630
  signal: t.signal
4626
4631
  })).data;
4627
4632
  } catch (n) {
4628
- return sh(n, t);
4633
+ return ih(n, t);
4629
4634
  }
4630
4635
  }
4631
- ), ih = (e) => `/api/v1/complaints/${e}`, oh = (e, t) => {
4636
+ ), oh = (e) => `/api/v1/complaints/${e}`, lh = (e, t) => {
4632
4637
  const n = e?.response?.data, r = Array.isArray(n?.errors) ? n.errors.map((a) => a?.message).filter(Boolean) : [];
4633
4638
  return t.rejectWithValue({
4634
4639
  status: e?.response?.status ?? e?.status,
@@ -4646,12 +4651,12 @@ const Ut = Le(
4646
4651
  try {
4647
4652
  const c = {}, d = Ra(t), p = Ra(n), u = Ra(r);
4648
4653
  d != null && (c.statusId = d), p != null && (c.currentStepId = p), u != null && (c.assignedToUserId = u), a != null && String(a).trim() !== "" && (c.remarks = String(a).trim());
4649
- const f = await Te.patch(ih(e), c, {
4654
+ const f = await Te.patch(oh(e), c, {
4650
4655
  signal: i.signal
4651
4656
  });
4652
4657
  return s && typeof s == "function" && s(f.data), f.data;
4653
4658
  } catch (c) {
4654
- return l && typeof l == "function" && l(c), oh(c, i);
4659
+ return l && typeof l == "function" && l(c), lh(c, i);
4655
4660
  }
4656
4661
  }
4657
4662
  ), Pi = {
@@ -4662,7 +4667,7 @@ const Ut = Le(
4662
4667
  hasLoaded: !1,
4663
4668
  requestedComplaintTypeId: null,
4664
4669
  activeRequestId: null
4665
- }, lh = (e) => {
4670
+ }, ch = (e) => {
4666
4671
  const t = e?.data ?? e;
4667
4672
  if (Array.isArray(t))
4668
4673
  return { list: t, meta: e?.meta ?? e?.pagination ?? null };
@@ -4671,7 +4676,7 @@ const Ut = Le(
4671
4676
  list: Array.isArray(n) ? n : [],
4672
4677
  meta: t?.meta ?? t?.pagination ?? e?.meta ?? e?.pagination ?? null
4673
4678
  };
4674
- }, ch = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch queries", Bi = (e) => e?.complaintId ?? e?.id, dh = (e, t) => {
4679
+ }, dh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch queries", Bi = (e) => e?.complaintId ?? e?.id, uh = (e, t) => {
4675
4680
  const n = t.meta?.arg ?? {}, r = t.payload?.data ?? t.payload, a = n.id ?? Bi(r);
4676
4681
  return a == null ? e : e.map((s) => {
4677
4682
  if (String(Bi(s)) !== String(a)) return s;
@@ -4702,18 +4707,18 @@ const Ut = Le(
4702
4707
  const r = n.meta.arg?.complaintTypeId;
4703
4708
  if (t.activeRequestId !== n.meta.requestId || t.requestedComplaintTypeId != null && r != null && String(t.requestedComplaintTypeId) !== String(r))
4704
4709
  return;
4705
- const a = lh(n.payload);
4710
+ const a = ch(n.payload);
4706
4711
  t.isLoading = !1, t.hasLoaded = !0, t.activeRequestId = null, t.list = a.list, t.meta = a.meta;
4707
4712
  }).addCase(Ir.rejected, (t, n) => {
4708
4713
  const r = n.meta.arg?.complaintTypeId;
4709
- t.activeRequestId !== n.meta.requestId || t.requestedComplaintTypeId != null && r != null && String(t.requestedComplaintTypeId) !== String(r) || (t.isLoading = !1, t.hasLoaded = !0, t.activeRequestId = null, n.meta.aborted || (t.error = ch(n)));
4714
+ t.activeRequestId !== n.meta.requestId || t.requestedComplaintTypeId != null && r != null && String(t.requestedComplaintTypeId) !== String(r) || (t.isLoading = !1, t.hasLoaded = !0, t.activeRequestId = null, n.meta.aborted || (t.error = dh(n)));
4710
4715
  }).addCase(Ut.fulfilled, (t, n) => {
4711
- t.list = dh(t.list, n);
4716
+ t.list = uh(t.list, n);
4712
4717
  });
4713
4718
  }
4714
4719
  }), {
4715
4720
  resetComplaintManagementState: ec
4716
- } = Zl.actions, uh = Zl.reducer, ph = (e) => `/api/v1/complaint-types/${e}/statuses`, fh = "/api/v1/complaints/summary", tc = (e, t) => {
4721
+ } = Zl.actions, ph = Zl.reducer, fh = (e) => `/api/v1/complaint-types/${e}/statuses`, mh = "/api/v1/complaints/summary", tc = (e, t) => {
4717
4722
  const n = e?.response?.data, r = Array.isArray(n?.errors) ? n.errors.map((a) => a?.message).filter(Boolean) : [];
4718
4723
  return t.rejectWithValue({
4719
4724
  status: e?.response?.status ?? e?.status,
@@ -4723,7 +4728,7 @@ const Ut = Le(
4723
4728
  "status/fetchStatuses",
4724
4729
  async (e, t) => {
4725
4730
  try {
4726
- return (await Te.get(ph(e), {
4731
+ return (await Te.get(fh(e), {
4727
4732
  signal: t.signal
4728
4733
  })).data;
4729
4734
  } catch (n) {
@@ -4734,7 +4739,7 @@ const Ut = Le(
4734
4739
  "status/fetchComplaintSummary",
4735
4740
  async (e, t) => {
4736
4741
  try {
4737
- return (await Te.get(fh, {
4742
+ return (await Te.get(mh, {
4738
4743
  params: { complaintTypeId: e },
4739
4744
  signal: t.signal
4740
4745
  })).data;
@@ -4753,13 +4758,13 @@ const Ut = Le(
4753
4758
  complaintSummaryError: null,
4754
4759
  hasComplaintSummaryLoaded: !1,
4755
4760
  requestedComplaintSummaryTypeId: null
4756
- }, mh = (e) => {
4761
+ }, hh = (e) => {
4757
4762
  const t = e?.data ?? e?.results ?? e?.items ?? e;
4758
4763
  return Array.isArray(t) ? t : [];
4759
- }, hh = (e) => {
4764
+ }, gh = (e) => {
4760
4765
  const t = e?.data ?? e;
4761
4766
  return !t || typeof t != "object" || Array.isArray(t) ? null : t;
4762
- }, gh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch statuses", Ah = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch complaint summary", fr = (e, t) => e != null && t != null && String(e) !== String(t), nc = He({
4767
+ }, Ah = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch statuses", yh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch complaint summary", fr = (e, t) => e != null && t != null && String(e) !== String(t), nc = He({
4763
4768
  name: "status",
4764
4769
  initialState: Ui,
4765
4770
  reducers: {
@@ -4772,29 +4777,29 @@ const Ut = Le(
4772
4777
  const r = n.meta.arg;
4773
4778
  if (fr(t.requestedComplaintTypeId, r))
4774
4779
  return;
4775
- const a = mh(n.payload);
4780
+ const a = hh(n.payload);
4776
4781
  t.isLoading = !1, t.hasLoaded = !0, t.list = [...a].sort(
4777
4782
  (s, l) => (s.displayOrder ?? 0) - (l.displayOrder ?? 0)
4778
4783
  );
4779
4784
  }).addCase(cn.rejected, (t, n) => {
4780
4785
  if (n.meta.aborted) return;
4781
4786
  const r = n.meta.arg;
4782
- fr(t.requestedComplaintTypeId, r) || (t.isLoading = !1, t.hasLoaded = !0, t.error = gh(n));
4787
+ fr(t.requestedComplaintTypeId, r) || (t.isLoading = !1, t.hasLoaded = !0, t.error = Ah(n));
4783
4788
  }).addCase(Rr.pending, (t, n) => {
4784
4789
  t.isComplaintSummaryLoading = !0, t.complaintSummaryError = null, t.hasComplaintSummaryLoaded = !1, t.complaintSummary = null, t.requestedComplaintSummaryTypeId = n.meta.arg ?? null;
4785
4790
  }).addCase(Rr.fulfilled, (t, n) => {
4786
4791
  const r = n.meta.arg;
4787
- fr(t.requestedComplaintSummaryTypeId, r) || (t.isComplaintSummaryLoading = !1, t.hasComplaintSummaryLoaded = !0, t.complaintSummary = hh(n.payload));
4792
+ fr(t.requestedComplaintSummaryTypeId, r) || (t.isComplaintSummaryLoading = !1, t.hasComplaintSummaryLoaded = !0, t.complaintSummary = gh(n.payload));
4788
4793
  }).addCase(Rr.rejected, (t, n) => {
4789
4794
  if (n.meta.aborted) return;
4790
4795
  const r = n.meta.arg;
4791
- fr(t.requestedComplaintSummaryTypeId, r) || (t.isComplaintSummaryLoading = !1, t.hasComplaintSummaryLoaded = !0, t.complaintSummaryError = Ah(n));
4796
+ fr(t.requestedComplaintSummaryTypeId, r) || (t.isComplaintSummaryLoading = !1, t.hasComplaintSummaryLoaded = !0, t.complaintSummaryError = yh(n));
4792
4797
  });
4793
4798
  }
4794
4799
  }), {
4795
4800
  // clearStatusError,
4796
4801
  resetStatusState: rc
4797
- } = nc.actions, yh = nc.reducer, bh = "/api/v1/complaints", vh = "/api/v1/complaint-types", ac = (e, t) => {
4802
+ } = nc.actions, bh = nc.reducer, vh = "/api/v1/complaints", wh = "/api/v1/complaint-types", ac = (e, t) => {
4798
4803
  const n = e?.response?.data, r = Array.isArray(n?.errors) ? n.errors.map((a) => a?.message).filter(Boolean) : [];
4799
4804
  return t.rejectWithValue({
4800
4805
  status: e?.response?.status ?? e?.status,
@@ -4804,7 +4809,7 @@ const Ut = Le(
4804
4809
  "createComplaint/create",
4805
4810
  async (e, t) => {
4806
4811
  try {
4807
- return (await Te.post(bh, e, {
4812
+ return (await Te.post(vh, e, {
4808
4813
  signal: t.signal
4809
4814
  })).data;
4810
4815
  } catch (n) {
@@ -4816,7 +4821,7 @@ const Ut = Le(
4816
4821
  async ({ id: e, isActive: t, isArchived: n, onSuccess: r, onFail: a }, s) => {
4817
4822
  try {
4818
4823
  const l = await Te.patch(
4819
- `${vh}/${e}`,
4824
+ `${wh}/${e}`,
4820
4825
  // isArchived is sent only when given (Archived -> Active), so normal toggles are unchanged.
4821
4826
  n === void 0 ? { isActive: t } : { isActive: t, isArchived: n },
4822
4827
  { signal: s.signal }
@@ -4826,7 +4831,7 @@ const Ut = Le(
4826
4831
  return a && typeof a == "function" && a(l), ac(l, s);
4827
4832
  }
4828
4833
  }
4829
- ), wh = {
4834
+ ), Sh = {
4830
4835
  data: null,
4831
4836
  isLoading: !1,
4832
4837
  error: null,
@@ -4835,9 +4840,9 @@ const Ut = Le(
4835
4840
  activeComplaintTypeId: null,
4836
4841
  isUpdatingActive: !1,
4837
4842
  activeError: null
4838
- }, Sh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to create complaint", Ch = (e) => e.payload?.message ?? e.error?.message ?? "Failed to update complaint type", Nh = He({
4843
+ }, Ch = (e) => e.payload?.message ?? e.error?.message ?? "Failed to create complaint", Nh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to update complaint type", _h = He({
4839
4844
  name: "createComplaint",
4840
- initialState: wh,
4845
+ initialState: Sh,
4841
4846
  reducers: {},
4842
4847
  extraReducers: (e) => {
4843
4848
  e.addCase(kr.pending, (t) => {
@@ -4845,7 +4850,7 @@ const Ut = Le(
4845
4850
  }).addCase(kr.fulfilled, (t, n) => {
4846
4851
  t.isLoading = !1, t.hasLoaded = !0, t.data = n.payload?.data ?? n.payload;
4847
4852
  }).addCase(kr.rejected, (t, n) => {
4848
- n.meta.aborted || (t.isLoading = !1, t.hasLoaded = !0, t.error = Sh(n));
4853
+ n.meta.aborted || (t.isLoading = !1, t.hasLoaded = !0, t.error = Ch(n));
4849
4854
  }).addCase(Bn.pending, (t) => {
4850
4855
  t.isUpdatingActive = !0, t.activeError = null;
4851
4856
  }).addCase(Bn.fulfilled, (t, n) => {
@@ -4853,16 +4858,16 @@ const Ut = Le(
4853
4858
  const r = n.payload?.data ?? n.payload;
4854
4859
  t.activeComplaintTypeId = r?.id ?? n.meta?.arg?.id ?? null, t.isActive = !!(r?.isActive ?? r?.active ?? n.meta?.arg?.isActive);
4855
4860
  }).addCase(Bn.rejected, (t, n) => {
4856
- n.meta.aborted || (t.isUpdatingActive = !1, t.activeError = Ch(n));
4861
+ n.meta.aborted || (t.isUpdatingActive = !1, t.activeError = Nh(n));
4857
4862
  });
4858
4863
  }
4859
- }), _h = Nh.reducer, $i = {
4864
+ }), Lh = _h.reducer, $i = {
4860
4865
  data: null,
4861
4866
  isLoading: !1,
4862
4867
  error: null,
4863
4868
  hasLoaded: !1,
4864
4869
  updatingId: null
4865
- }, Lh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to update complaint status", sc = He({
4870
+ }, Eh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to update complaint status", sc = He({
4866
4871
  name: "changeStatus",
4867
4872
  initialState: $i,
4868
4873
  reducers: {
@@ -4874,25 +4879,25 @@ const Ut = Le(
4874
4879
  }).addCase(Ut.fulfilled, (t, n) => {
4875
4880
  t.isLoading = !1, t.hasLoaded = !0, t.updatingId = null, t.data = n.payload?.data ?? n.payload;
4876
4881
  }).addCase(Ut.rejected, (t, n) => {
4877
- n.meta.aborted || (t.isLoading = !1, t.hasLoaded = !0, t.updatingId = null, t.error = Lh(n));
4882
+ n.meta.aborted || (t.isLoading = !1, t.hasLoaded = !0, t.updatingId = null, t.error = Eh(n));
4878
4883
  });
4879
4884
  }
4880
- }), { resetChangeStatusState: Eh } = sc.actions, Th = sc.reducer, Ih = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, js = (e, t) => {
4885
+ }), { resetChangeStatusState: Th } = sc.actions, Ih = sc.reducer, Rh = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, js = (e, t) => {
4881
4886
  try {
4882
- return Ih?.[e] || t;
4887
+ return Rh?.[e] || t;
4883
4888
  } catch {
4884
4889
  return t;
4885
4890
  }
4886
- }, Rh = js(
4891
+ }, kh = js(
4887
4892
  "VITE_S3_API_URL",
4888
4893
  "https://api.airaops.com"
4889
4894
  ).replace(/\/$/, ""), ic = js(
4890
4895
  "VITE_S3_UPLOAD_ENDPOINT",
4891
4896
  "/api/v1/files/upload"
4892
- ), kh = js(
4897
+ ), xh = js(
4893
4898
  "VITE_S3_SIGNED_URL_ENDPOINT",
4894
4899
  "/api/v1/files/signed-url"
4895
- ), oc = (e) => /^https?:\/\//i.test(e) ? e : `${Rh}${e}`, xh = (e) => (String(e?.name || e?.fileName || "file").split(/[/\\]/).pop() || "file").replace(/[^\w.-]+/g, "_") || "file", lc = (e, t) => {
4900
+ ), oc = (e) => /^https?:\/\//i.test(e) ? e : `${kh}${e}`, Fh = (e) => (String(e?.name || e?.fileName || "file").split(/[/\\]/).pop() || "file").replace(/[^\w.-]+/g, "_") || "file", lc = (e, t) => {
4896
4901
  const n = e?.response?.data, r = n?.error?.details?.errors?.file;
4897
4902
  if (r) return r;
4898
4903
  const a = n?.message;
@@ -4904,7 +4909,7 @@ const Ut = Le(
4904
4909
  const r = {
4905
4910
  fileSize: e.size,
4906
4911
  subDirectory: t,
4907
- fileName: xh(e)
4912
+ fileName: Fh(e)
4908
4913
  }, a = await Te.post(oc(ic), r), s = a.data.uploadSignedUrl;
4909
4914
  return (await fetch(s, {
4910
4915
  method: "PUT",
@@ -4921,13 +4926,13 @@ const Ut = Le(
4921
4926
  "s3/getSignedUrl",
4922
4927
  async ({ params: e }, { rejectWithValue: t }) => {
4923
4928
  try {
4924
- const r = (await Te.get(oc(kh), { params: e })).data ?? {}, a = r.data ?? r;
4929
+ const r = (await Te.get(oc(xh), { params: e })).data ?? {}, a = r.data ?? r;
4925
4930
  return a.signedUrl || a.uploadSignedUrl || "";
4926
4931
  } catch (n) {
4927
4932
  return t(lc(n, "Error getting file signedUrl"));
4928
4933
  }
4929
4934
  }
4930
- ), Fh = {
4935
+ ), Oh = {
4931
4936
  isUploading: !1,
4932
4937
  uploadedFile: null,
4933
4938
  uploadedFiles: [],
@@ -4935,9 +4940,9 @@ const Ut = Le(
4935
4940
  isGettingSignedUrl: !1,
4936
4941
  signedUrl: "",
4937
4942
  signedUrlError: null
4938
- }, Oh = He({
4943
+ }, Dh = He({
4939
4944
  name: "s3",
4940
- initialState: Fh,
4945
+ initialState: Oh,
4941
4946
  reducers: {},
4942
4947
  extraReducers: (e) => {
4943
4948
  e.addCase(Un.pending, (t) => {
@@ -4954,7 +4959,7 @@ const Ut = Le(
4954
4959
  n.meta.aborted || (t.isGettingSignedUrl = !1, t.signedUrl = "", t.signedUrlError = n.payload || "Error getting file signedUrl");
4955
4960
  });
4956
4961
  }
4957
- }), Dh = Oh.reducer, Mh = (e) => `/api/v1/complaints/${encodeURIComponent(e)}`, Ph = (e, t) => {
4962
+ }), Mh = Dh.reducer, Ph = (e) => `/api/v1/complaints/${encodeURIComponent(e)}`, Bh = (e, t) => {
4958
4963
  const n = e?.response?.data, r = Array.isArray(n?.errors) ? n.errors.map((a) => a?.message).filter(Boolean) : [];
4959
4964
  return t.rejectWithValue({
4960
4965
  status: e?.response?.status ?? e?.status,
@@ -4964,11 +4969,11 @@ const Ut = Le(
4964
4969
  "complaintsGetOne/fetchById",
4965
4970
  async (e, t) => {
4966
4971
  try {
4967
- return (await Te.get(Mh(e), {
4972
+ return (await Te.get(Ph(e), {
4968
4973
  signal: t.signal
4969
4974
  })).data;
4970
4975
  } catch (n) {
4971
- return Ph(n, t);
4976
+ return Bh(n, t);
4972
4977
  }
4973
4978
  }
4974
4979
  ), ji = {
@@ -4977,7 +4982,7 @@ const Ut = Le(
4977
4982
  error: null,
4978
4983
  hasLoaded: !1,
4979
4984
  requestedComplaintId: null
4980
- }, Bh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch complaint details", Vi = (e, t) => e != null && t != null && String(e) !== String(t), cc = He({
4985
+ }, Uh = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch complaint details", Vi = (e, t) => e != null && t != null && String(e) !== String(t), cc = He({
4981
4986
  name: "complaintsGetOne",
4982
4987
  initialState: ji,
4983
4988
  reducers: {
@@ -4989,14 +4994,14 @@ const Ut = Le(
4989
4994
  }).addCase(Dt.fulfilled, (t, n) => {
4990
4995
  Vi(t.requestedComplaintId, n.meta.arg) || (t.data = n.payload?.data ?? n.payload, t.isLoading = !1, t.hasLoaded = !0);
4991
4996
  }).addCase(Dt.rejected, (t, n) => {
4992
- n.meta.aborted || Vi(t.requestedComplaintId, n.meta.arg) || (t.isLoading = !1, t.hasLoaded = !0, t.error = Bh(n));
4997
+ n.meta.aborted || Vi(t.requestedComplaintId, n.meta.arg) || (t.isLoading = !1, t.hasLoaded = !0, t.error = Uh(n));
4993
4998
  });
4994
4999
  }
4995
- }), { resetComplaintDetails: Uh } = cc.actions, $h = cc.reducer, jh = (e) => `/api/v1/users/role/${e}`, $t = Le(
5000
+ }), { resetComplaintDetails: $h } = cc.actions, jh = cc.reducer, Vh = (e) => `/api/v1/users/role/${e}`, $t = Le(
4996
5001
  "roleUsers/fetchByRole",
4997
5002
  async (e, t) => {
4998
5003
  try {
4999
- const n = await Te.get(jh(encodeURIComponent(e)), {
5004
+ const n = await Te.get(Vh(encodeURIComponent(e)), {
5000
5005
  signal: t.signal
5001
5006
  });
5002
5007
  return { roleId: e, response: n.data };
@@ -5007,13 +5012,13 @@ const Ut = Le(
5007
5012
  });
5008
5013
  }
5009
5014
  }
5010
- ), Vh = {
5015
+ ), qh = {
5011
5016
  usersByRoleId: {},
5012
5017
  loadingByRoleId: {},
5013
5018
  errorByRoleId: {}
5014
- }, qh = He({
5019
+ }, Wh = He({
5015
5020
  name: "roleUsers",
5016
- initialState: Vh,
5021
+ initialState: qh,
5017
5022
  reducers: {},
5018
5023
  extraReducers: (e) => {
5019
5024
  e.addCase($t.pending, (t, n) => {
@@ -5028,11 +5033,11 @@ const Ut = Le(
5028
5033
  t.loadingByRoleId[r] = !1, t.errorByRoleId[r] = n.payload?.message ?? n.error?.message ?? "Failed to fetch users for role";
5029
5034
  });
5030
5035
  }
5031
- }), Wh = qh.reducer, zh = (e) => `/api/v1/complaints/${encodeURIComponent(e)}/activities`, Mt = Le(
5036
+ }), zh = Wh.reducer, Hh = (e) => `/api/v1/complaints/${encodeURIComponent(e)}/activities`, Mt = Le(
5032
5037
  "activityLog/fetchByComplaint",
5033
5038
  async (e, t) => {
5034
5039
  try {
5035
- const n = await Te.get(zh(e), {
5040
+ const n = await Te.get(Hh(e), {
5036
5041
  signal: t.signal
5037
5042
  });
5038
5043
  return { complaintId: e, response: n.data };
@@ -5051,7 +5056,7 @@ const Ut = Le(
5051
5056
  hasLoaded: !1,
5052
5057
  currentRequestId: null
5053
5058
  };
5054
- function Hh(e) {
5059
+ function Kh(e) {
5055
5060
  const t = e?.data ?? e;
5056
5061
  return Array.isArray(t) ? t : Array.isArray(t?.activities) ? t.activities : Array.isArray(t?.items) ? t.items : Array.isArray(t?.results) ? t.results : [];
5057
5062
  }
@@ -5065,29 +5070,29 @@ const dc = He({
5065
5070
  e.addCase(Mt.pending, (t, n) => {
5066
5071
  t.activities = [], t.complaintId = n.meta.arg ?? null, t.isLoading = !0, t.error = null, t.hasLoaded = !1, t.currentRequestId = n.meta.requestId;
5067
5072
  }).addCase(Mt.fulfilled, (t, n) => {
5068
- t.currentRequestId === n.meta.requestId && (t.activities = Hh(n.payload?.response), t.complaintId = n.payload?.complaintId ?? n.meta.arg, t.isLoading = !1, t.hasLoaded = !0, t.currentRequestId = null);
5073
+ t.currentRequestId === n.meta.requestId && (t.activities = Kh(n.payload?.response), t.complaintId = n.payload?.complaintId ?? n.meta.arg, t.isLoading = !1, t.hasLoaded = !0, t.currentRequestId = null);
5069
5074
  }).addCase(Mt.rejected, (t, n) => {
5070
5075
  n.meta.aborted || t.currentRequestId !== n.meta.requestId || (t.isLoading = !1, t.hasLoaded = !0, t.error = n.payload?.message ?? n.error?.message ?? "Failed to fetch complaint activity", t.currentRequestId = null);
5071
5076
  });
5072
5077
  }
5073
- }), { resetActivityLog: Kh } = dc.actions, Qh = dc.reducer, Xh = (e, t) => `/api/v1/complaint-analytics/${e}/${t}`, Yh = (e, t) => {
5078
+ }), { resetActivityLog: Qh } = dc.actions, Xh = dc.reducer, Yh = (e, t) => `/api/v1/complaint-analytics/${e}/${t}`, Gh = (e, t) => {
5074
5079
  const n = e?.response?.data, r = Array.isArray(n?.errors) ? n.errors.map((a) => a?.message).filter(Boolean) : [];
5075
5080
  return t.rejectWithValue({
5076
5081
  status: e?.response?.status ?? e?.status,
5077
5082
  message: (r.length ? r.join(" ") : null) ?? n?.message ?? n?.error ?? e?.message ?? "Something went wrong"
5078
5083
  });
5079
- }, Gh = ({ fromDate: e, toDate: t, granularity: n } = {}) => {
5084
+ }, Jh = ({ fromDate: e, toDate: t, granularity: n } = {}) => {
5080
5085
  const r = {};
5081
5086
  return e && t && (r.fromDate = e, r.toDate = t), n && (r.granularity = n), r;
5082
5087
  }, gt = async (e, t, n) => {
5083
5088
  try {
5084
5089
  const { complaintTypeId: r, ...a } = t || {};
5085
- return (await Te.get(Xh(r, e), {
5086
- params: Gh(a),
5090
+ return (await Te.get(Yh(r, e), {
5091
+ params: Jh(a),
5087
5092
  signal: n.signal
5088
5093
  })).data;
5089
5094
  } catch (r) {
5090
- return Yh(r, n);
5095
+ return Gh(r, n);
5091
5096
  }
5092
5097
  }, uc = Le(
5093
5098
  "analytics/fetchOverview",
@@ -5119,7 +5124,7 @@ const dc = He({
5119
5124
  ), vc = Le(
5120
5125
  "analytics/fetchReassignments",
5121
5126
  (e, t) => gt("reassignments", e, t)
5122
- ), Jh = {
5127
+ ), Zh = {
5123
5128
  overview: uc,
5124
5129
  trends: pc,
5125
5130
  backlog: fc,
@@ -5136,54 +5141,54 @@ const dc = He({
5136
5141
  error: null,
5137
5142
  hasLoaded: !1,
5138
5143
  requestedComplaintTypeId: null
5139
- }, Zh = jd("analytics/reset"), eg = (e) => e?.data ?? e ?? null, tg = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch analytics", zi = (e, t) => e != null && t != null && String(e) !== String(t), At = (e, t) => He({
5144
+ }, eg = jd("analytics/reset"), tg = (e) => e?.data ?? e ?? null, ng = (e) => e.payload?.message ?? e.error?.message ?? "Failed to fetch analytics", zi = (e, t) => e != null && t != null && String(e) !== String(t), At = (e, t) => He({
5140
5145
  name: `analytics/${e}`,
5141
5146
  initialState: Wi,
5142
5147
  reducers: {},
5143
5148
  extraReducers: (n) => {
5144
- n.addCase(Zh, () => Wi).addCase(t.pending, (r, a) => {
5149
+ n.addCase(eg, () => Wi).addCase(t.pending, (r, a) => {
5145
5150
  const s = a.meta.arg?.complaintTypeId ?? null;
5146
5151
  String(r.requestedComplaintTypeId) !== String(s) && (r.data = null), r.isLoading = !0, r.error = null, r.hasLoaded = !1, r.requestedComplaintTypeId = s;
5147
5152
  }).addCase(t.fulfilled, (r, a) => {
5148
- zi(r.requestedComplaintTypeId, a.meta.arg?.complaintTypeId) || (r.isLoading = !1, r.hasLoaded = !0, r.data = eg(a.payload));
5153
+ zi(r.requestedComplaintTypeId, a.meta.arg?.complaintTypeId) || (r.isLoading = !1, r.hasLoaded = !0, r.data = tg(a.payload));
5149
5154
  }).addCase(t.rejected, (r, a) => {
5150
- a.meta.aborted || zi(r.requestedComplaintTypeId, a.meta.arg?.complaintTypeId) || (r.isLoading = !1, r.hasLoaded = !0, r.error = tg(a));
5155
+ a.meta.aborted || zi(r.requestedComplaintTypeId, a.meta.arg?.complaintTypeId) || (r.isLoading = !1, r.hasLoaded = !0, r.error = ng(a));
5151
5156
  });
5152
5157
  }
5153
- }), ng = At("overview", uc).reducer, rg = At("trends", pc).reducer, ag = At("backlog", fc).reducer, sg = At("sla", mc).reducer, ig = At("resolutionTimes", hc).reducer, og = At("types", gc).reducer, lg = At("workflowBottlenecks", Ac).reducer, cg = At("workload", yc).reducer, dg = At("escalations", bc).reducer, ug = At("reassignments", vc).reducer, pg = rl({
5154
- overview: ng,
5155
- trends: rg,
5156
- backlog: ag,
5157
- sla: sg,
5158
- resolutionTimes: ig,
5159
- types: og,
5160
- workflowBottlenecks: lg,
5161
- workload: cg,
5162
- escalations: dg,
5163
- reassignments: ug
5164
- }), fg = rl({
5165
- complaintAppComplaint: $m,
5166
- complaintType: zm,
5167
- appDetails: Qm,
5168
- workflow: ah,
5158
+ }), rg = At("overview", uc).reducer, ag = At("trends", pc).reducer, sg = At("backlog", fc).reducer, ig = At("sla", mc).reducer, og = At("resolutionTimes", hc).reducer, lg = At("types", gc).reducer, cg = At("workflowBottlenecks", Ac).reducer, dg = At("workload", yc).reducer, ug = At("escalations", bc).reducer, pg = At("reassignments", vc).reducer, fg = rl({
5159
+ overview: rg,
5160
+ trends: ag,
5161
+ backlog: sg,
5162
+ sla: ig,
5163
+ resolutionTimes: og,
5164
+ types: lg,
5165
+ workflowBottlenecks: cg,
5166
+ workload: dg,
5167
+ escalations: ug,
5168
+ reassignments: pg
5169
+ }), mg = rl({
5170
+ complaintAppComplaint: jm,
5171
+ complaintType: Hm,
5172
+ appDetails: Xm,
5173
+ workflow: sh,
5169
5174
  roles: Xl.reducer,
5170
- complaintManagement: uh,
5171
- status: yh,
5172
- createComplaint: _h,
5173
- changeStatus: Th,
5174
- s3: Dh,
5175
- complaintsGetOne: $h,
5176
- roleUsers: Wh,
5177
- activityLog: Qh,
5178
- analytics: pg
5179
- }), mg = (e) => Vd({
5180
- reducer: fg,
5175
+ complaintManagement: ph,
5176
+ status: bh,
5177
+ createComplaint: Lh,
5178
+ changeStatus: Ih,
5179
+ s3: Mh,
5180
+ complaintsGetOne: jh,
5181
+ roleUsers: zh,
5182
+ activityLog: Xh,
5183
+ analytics: fg
5184
+ }), hg = (e) => Vd({
5185
+ reducer: mg,
5181
5186
  preloadedState: e,
5182
5187
  middleware: (t) => t({
5183
5188
  immutableCheck: !1,
5184
5189
  serializableCheck: !1
5185
5190
  })
5186
- }), hg = mg(), wc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJoCAYAAACeDIXdAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAKu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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgXv4/Ng4tbFQ9KisAAAAASUVORK5CYII=";
5187
5192
  function Pe({
5188
5193
  children: e,
5189
5194
  variant: t = "primary",
@@ -5219,7 +5224,7 @@ function Pe({
5219
5224
  }
5220
5225
  );
5221
5226
  }
5222
- function gg({ size: e = 16, color: t = "currentColor", ...n }) {
5227
+ function Ag({ size: e = 16, color: t = "currentColor", ...n }) {
5223
5228
  return /* @__PURE__ */ o(
5224
5229
  "svg",
5225
5230
  {
@@ -5250,7 +5255,7 @@ const Hi = {
5250
5255
  value: "ca-value",
5251
5256
  small: "ca-small",
5252
5257
  link: "ca-link"
5253
- }, Ag = {
5258
+ }, yg = {
5254
5259
  h1: "h1",
5255
5260
  h2: "h2",
5256
5261
  body: "p",
@@ -5266,7 +5271,7 @@ function Ht({
5266
5271
  children: r,
5267
5272
  ...a
5268
5273
  }) {
5269
- const s = t || Ag[e] || "p", l = Hi[e] || Hi.body;
5274
+ const s = t || yg[e] || "p", l = Hi[e] || Hi.body;
5270
5275
  return /* @__PURE__ */ o(s, { className: `${l} ${n}`.trim(), ...a, children: r });
5271
5276
  }
5272
5277
  function Sc(e) {
@@ -5278,13 +5283,13 @@ function Cc(e) {
5278
5283
  function Nc(e) {
5279
5284
  return /* @__PURE__ */ o(Ht, { variant: "body", ...e });
5280
5285
  }
5281
- function yg(e) {
5286
+ function bg(e) {
5282
5287
  return /* @__PURE__ */ o(Ht, { variant: "label", ...e });
5283
5288
  }
5284
- function bg(e) {
5289
+ function vg(e) {
5285
5290
  return /* @__PURE__ */ o(Ht, { variant: "value", ...e });
5286
5291
  }
5287
- function p1(e) {
5292
+ function f1(e) {
5288
5293
  return /* @__PURE__ */ o(Ht, { variant: "link", type: "button", ...e });
5289
5294
  }
5290
5295
  function ka({
@@ -5300,7 +5305,7 @@ function ka({
5300
5305
  /* @__PURE__ */ o(Sc, { children: e }),
5301
5306
  t ? /* @__PURE__ */ o(Nc, { children: t }) : null
5302
5307
  ] }),
5303
- a ? /* @__PURE__ */ o("div", { className: "ca-page-header__actions", children: /* @__PURE__ */ o(Pe, { startIcon: /* @__PURE__ */ o(gg, {}), onClick: r, children: n }) }) : null
5308
+ a ? /* @__PURE__ */ o("div", { className: "ca-page-header__actions", children: /* @__PURE__ */ o(Pe, { startIcon: /* @__PURE__ */ o(Ag, {}), onClick: r, children: n }) }) : null
5304
5309
  ] });
5305
5310
  }
5306
5311
  function Vs({
@@ -5336,8 +5341,8 @@ function qs({ size: e = 16, color: t = "#9CA3AF", ...n }) {
5336
5341
  }
5337
5342
  ) });
5338
5343
  }
5339
- const vg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAWVJREFUeAHtm81NxDAQhT9+7iwVkBI4csyR43bAdgAdUAJLBVsKJUAHgQpCB8FRIhHMKnK82ZWdeZ/0lFjOKM6TNZlENgghhBD7eHCqnar+3Bztgze9ahbK2UhfM+HabDnHOOYNuCRfCqfH/vzV6ZOZaTylxju/Y3sjkpyT4CzjUxLEODIA48gAjCMDME4qBrzQFTZtdVeQCKcqhUvvPtvAuFnGl8IMKLz2FSdEOQDjyACMIwMwjgzAODIA4xzDgGenndOazIn52Nh4MauImB1hJPkxVHrt5GeBcgDGkQEYRwZgHBnAcfkmY2IqrXJwfUXYP/4Vf5fkhRZPW6b/Sp9EbKlZ0JW3IWXwMGY9Maal5H/1OQmtE8Q4MmCkz8/gNyyQMQM+vPYTC+RipO/a6X7QvuuPX2T+fg/Ffz/nqooD9jvc0u0VyOFBx3TQfofWhApoMlbFDGzoFiXnNiPqfuxCCCGExw9cfQ+fJ3a07QAAAABJRU5ErkJggg==";
5340
- function wg({
5344
+ const wg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAWVJREFUeAHtm81NxDAQhT9+7iwVkBI4csyR43bAdgAdUAJLBVsKJUAHgQpCB8FRIhHMKnK82ZWdeZ/0lFjOKM6TNZlENgghhBD7eHCqnar+3Bztgze9ahbK2UhfM+HabDnHOOYNuCRfCqfH/vzV6ZOZaTylxju/Y3sjkpyT4CzjUxLEODIA48gAjCMDME4qBrzQFTZtdVeQCKcqhUvvPtvAuFnGl8IMKLz2FSdEOQDjyACMIwMwjgzAODIA4xzDgGenndOazIn52Nh4MauImB1hJPkxVHrt5GeBcgDGkQEYRwZgHBnAcfkmY2IqrXJwfUXYP/4Vf5fkhRZPW6b/Sp9EbKlZ0JW3IWXwMGY9Maal5H/1OQmtE8Q4MmCkz8/gNyyQMQM+vPYTC+RipO/a6X7QvuuPX2T+fg/Ffz/nqooD9jvc0u0VyOFBx3TQfofWhApoMlbFDGzoFiXnNiPqfuxCCCGExw9cfQ+fJ3a07QAAAABJRU5ErkJggg==";
5345
+ function Sg({
5341
5346
  title: e,
5342
5347
  titleAsLink: t = !1,
5343
5348
  onTitleClick: n,
@@ -5371,7 +5376,7 @@ function wg({
5371
5376
  "aria-label": `View analytics for ${e}`,
5372
5377
  title: "View analytics",
5373
5378
  onClick: () => f(`/${String(p)}?view=analytics`),
5374
- children: /* @__PURE__ */ o("img", { src: vg, alt: "" })
5379
+ children: /* @__PURE__ */ o("img", { src: wg, alt: "" })
5375
5380
  }
5376
5381
  ) : null,
5377
5382
  /* @__PURE__ */ o("span", { className: "ca-system-card__active-label", children: r ? "Active" : "Inactive" }),
@@ -5422,8 +5427,8 @@ function xr({ size: e = 16, color: t = "currentColor", ...n }) {
5422
5427
  }
5423
5428
  );
5424
5429
  }
5425
- const Sg = "aira-query-complaintTypeId";
5426
- function Cg({
5430
+ const Cg = "aira-query-complaintTypeId";
5431
+ function Ng({
5427
5432
  updatedOn: e,
5428
5433
  openLabel: t = "Open",
5429
5434
  configureLabel: n = "Configure",
@@ -5442,7 +5447,7 @@ function Cg({
5442
5447
  if (y != null && y !== "") {
5443
5448
  const g = String(y);
5444
5449
  try {
5445
- sessionStorage.setItem(Sg, g);
5450
+ sessionStorage.setItem(Cg, g);
5446
5451
  } catch {
5447
5452
  }
5448
5453
  p(An(g)), p(ec()), p(rc()), d(`/${g}`);
@@ -5489,18 +5494,18 @@ function Cg({
5489
5494
  ] })
5490
5495
  ] });
5491
5496
  }
5492
- function Ng({ label: e, value: t, icon: n, className: r = "" }) {
5497
+ function _g({ label: e, value: t, icon: n, className: r = "" }) {
5493
5498
  const a = t == null ? "—" : typeof t == "number" ? String(t).padStart(2, "0") : t;
5494
5499
  return /* @__PURE__ */ m("div", { className: `ca-data-point ${r}`.trim(), children: [
5495
5500
  n ? /* @__PURE__ */ o("span", { className: "ca-data-point__icon", "aria-hidden": "true", children: n }) : null,
5496
- /* @__PURE__ */ o(bg, { children: a }),
5501
+ /* @__PURE__ */ o(vg, { children: a }),
5497
5502
  /* @__PURE__ */ o("span", { className: "ca-data-point__label", children: e })
5498
5503
  ] });
5499
5504
  }
5500
- function _g({ className: e = "" }) {
5505
+ function Lg({ className: e = "" }) {
5501
5506
  return /* @__PURE__ */ o("div", { className: `ca-divider ${e}`.trim(), role: "separator", "aria-orientation": "vertical" });
5502
5507
  }
5503
- const Lg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_617_15259)'%3e%3cpath%20d='M9.99992%2011.9997H6.66658M11.9999%209.33301H6.66658M2.66659%2014.6663H13.3333C13.6869%2014.6663%2014.026%2014.5259%2014.2761%2014.2758C14.5261%2014.0258%2014.6666%2013.6866%2014.6666%2013.333V2.66634C14.6666%202.31272%2014.5261%201.97358%2014.2761%201.72353C14.026%201.47348%2013.6869%201.33301%2013.3333%201.33301H5.33325C4.97963%201.33301%204.64049%201.47348%204.39044%201.72353C4.14039%201.97358%203.99992%202.31272%203.99992%202.66634V5.99967M2.66659%2014.6663C3.02021%2014.6663%203.35935%2014.5259%203.60939%2014.2758C3.85944%2014.0258%203.99992%2013.6866%203.99992%2013.333V5.99967M2.66659%2014.6663C2.31296%2014.6663%201.97382%2014.5259%201.72378%2014.2758C1.47373%2014.0258%201.33325%2013.6866%201.33325%2013.333V7.33301C1.33325%206.97939%201.47373%206.64025%201.72378%206.3902C1.97382%206.14015%202.31296%205.99967%202.66659%205.99967H3.99992M7.33325%203.99967H11.3333C11.7014%203.99967%2011.9999%204.29815%2011.9999%204.66634V5.99967C11.9999%206.36786%2011.7014%206.66634%2011.3333%206.66634H7.33325C6.96506%206.66634%206.66658%206.36786%206.66658%205.99967V4.66634C6.66658%204.29815%206.96506%203.99967%207.33325%203.99967Z'%20stroke='%232D64B8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_617_15259'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Eg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.44729%202.75711C6.48402%202.37067%206.66351%202.01181%206.95069%201.75063C7.23787%201.48945%207.61211%201.34473%208.00029%201.34473C8.38847%201.34473%208.76271%201.48945%209.04989%201.75063C9.33707%202.01181%209.51656%202.37067%209.55329%202.75711C9.57537%203.00675%209.65727%203.24739%209.79205%203.45867C9.92683%203.66995%2010.1105%203.84565%2010.3276%203.97089C10.5447%204.09614%2010.7887%204.16724%2011.0391%204.17819C11.2895%204.18913%2011.5388%204.1396%2011.766%204.03378C12.1187%203.87363%2012.5184%203.85045%2012.8873%203.96877C13.2562%204.08708%2013.5678%204.33841%2013.7616%204.67385C13.9554%205.00928%2014.0175%205.40482%2013.9357%205.78349C13.854%206.16215%2013.6342%206.49685%2013.3193%206.72244C13.1142%206.86634%2012.9468%207.05751%2012.8312%207.27979C12.7157%207.50207%2012.6553%207.74891%2012.6553%207.99944C12.6553%208.24997%2012.7157%208.49681%2012.8312%208.71909C12.9468%208.94137%2013.1142%209.13254%2013.3193%209.27644C13.6342%209.50203%2013.854%209.83673%2013.9357%2010.2154C14.0175%2010.5941%2013.9554%2010.9896%2013.7616%2011.325C13.5678%2011.6605%2013.2562%2011.9118%2012.8873%2012.0301C12.5184%2012.1484%2012.1187%2012.1253%2011.766%2011.9651C11.5388%2011.8593%2011.2895%2011.8097%2011.0391%2011.8207C10.7887%2011.8316%2010.5447%2011.9027%2010.3276%2012.028C10.1105%2012.1532%209.92683%2012.3289%209.79205%2012.5402C9.65727%2012.7515%209.57537%2012.9921%209.55329%2013.2418C9.51656%2013.6282%209.33707%2013.9871%209.04989%2014.2483C8.76271%2014.5094%208.38847%2014.6542%208.00029%2014.6542C7.61211%2014.6542%207.23787%2014.5094%206.95069%2014.2483C6.66351%2013.9871%206.48402%2013.6282%206.44729%2013.2418C6.42525%2012.992%206.34336%2012.7513%206.20854%2012.54C6.07371%2012.3286%205.88994%2012.1528%205.67278%2012.0276C5.45562%2011.9023%205.21147%2011.8313%204.96101%2011.8204C4.71055%2011.8095%204.46116%2011.8591%204.23396%2011.9651C3.88122%2012.1253%203.48151%2012.1484%203.11263%2012.0301C2.74374%2011.9118%202.43207%2011.6605%202.23828%2011.325C2.04449%2010.9896%201.98244%2010.5941%202.0642%2010.2154C2.14596%209.83673%202.36569%209.50203%202.68063%209.27644C2.88571%209.13254%203.05311%208.94137%203.16868%208.71909C3.28426%208.49681%203.34459%208.24997%203.34459%207.99944C3.34459%207.74891%203.28426%207.50207%203.16868%207.27979C3.05311%207.05751%202.88571%206.86634%202.68063%206.72244C2.36614%206.49674%202.14679%206.16217%202.06523%205.78376C1.98366%205.40535%202.0457%205.01014%202.23928%204.67492C2.43287%204.3397%202.74417%204.08843%203.11269%203.96994C3.4812%203.85144%203.88061%203.8742%204.23329%204.03378C4.46046%204.1396%204.70979%204.18913%204.96016%204.17819C5.21053%204.16724%205.45458%204.09614%205.67165%203.97089C5.88872%203.84565%206.07242%203.66995%206.2072%203.45867C6.34198%203.24739%206.42388%203.00675%206.44596%202.75711M9.99996%207.99978C9.99996%209.10434%209.10453%209.99978%207.99996%209.99978C6.89539%209.99978%205.99996%209.10434%205.99996%207.99978C5.99996%206.89521%206.89539%205.99978%207.99996%205.99978C9.10453%205.99978%209.99996%206.89521%209.99996%207.99978Z'%20stroke='%23745EBF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Tg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.99992%208H6.66659M9.99992%205.33333H6.66659M12.6666%2011.3333V3.33333C12.6666%202.97971%2012.5261%202.64057%2012.2761%202.39052C12.026%202.14048%2011.6869%202%2011.3333%202H2.66659M2.66659%202C3.02021%202%203.35935%202.14048%203.60939%202.39052C3.85944%202.64057%203.99992%202.97971%203.99992%203.33333V5.33333M2.66659%202C2.31296%202%201.97382%202.14048%201.72378%202.39052C1.47373%202.64057%201.33325%202.97971%201.33325%203.33333V4.66667C1.33325%204.84348%201.40349%205.01305%201.52851%205.13807C1.65354%205.2631%201.82311%205.33333%201.99992%205.33333H3.99992M5.33325%2014H13.3333C13.6869%2014%2014.026%2013.8595%2014.2761%2013.6095C14.5261%2013.3594%2014.6666%2013.0203%2014.6666%2012.6667V12C14.6666%2011.8232%2014.5963%2011.6536%2014.4713%2011.5286C14.3463%2011.4036%2014.1767%2011.3333%2013.9999%2011.3333H7.33325C7.15644%2011.3333%206.98687%2011.4036%206.86185%2011.5286C6.73682%2011.6536%206.66659%2011.8232%206.66659%2012V12.6667C6.66659%2013.0203%206.52611%2013.3594%206.27606%2013.6095C6.02601%2013.8595%205.68687%2014%205.33325%2014ZM5.33325%2014C4.97963%2014%204.64049%2013.8595%204.39044%2013.6095C4.14039%2013.3594%203.99992%2013.0203%203.99992%2012.6667V5.33333'%20stroke='%2300B692'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Ig = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.66675%209.33301H6.66675M2.66675%201.33301H9.33341M3.33341%2011.9997H12.6667C13.0349%2011.9997%2013.3334%2012.2982%2013.3334%2012.6663V13.9997C13.3334%2014.3679%2013.0349%2014.6663%2012.6667%2014.6663H3.33341C2.96522%2014.6663%202.66675%2014.3679%202.66675%2013.9997V12.6663C2.66675%2012.2982%202.96522%2011.9997%203.33341%2011.9997ZM3.33341%203.99967H12.6667C13.0349%203.99967%2013.3334%204.29815%2013.3334%204.66634V5.99967C13.3334%206.36786%2013.0349%206.66634%2012.6667%206.66634H3.33341C2.96522%206.66634%202.66675%206.36786%202.66675%205.99967V4.66634C2.66675%204.29815%202.96522%203.99967%203.33341%203.99967Z'%20stroke='%23FF6F00'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Rg = "Complaints", kg = [
5508
+ const Eg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_617_15259)'%3e%3cpath%20d='M9.99992%2011.9997H6.66658M11.9999%209.33301H6.66658M2.66659%2014.6663H13.3333C13.6869%2014.6663%2014.026%2014.5259%2014.2761%2014.2758C14.5261%2014.0258%2014.6666%2013.6866%2014.6666%2013.333V2.66634C14.6666%202.31272%2014.5261%201.97358%2014.2761%201.72353C14.026%201.47348%2013.6869%201.33301%2013.3333%201.33301H5.33325C4.97963%201.33301%204.64049%201.47348%204.39044%201.72353C4.14039%201.97358%203.99992%202.31272%203.99992%202.66634V5.99967M2.66659%2014.6663C3.02021%2014.6663%203.35935%2014.5259%203.60939%2014.2758C3.85944%2014.0258%203.99992%2013.6866%203.99992%2013.333V5.99967M2.66659%2014.6663C2.31296%2014.6663%201.97382%2014.5259%201.72378%2014.2758C1.47373%2014.0258%201.33325%2013.6866%201.33325%2013.333V7.33301C1.33325%206.97939%201.47373%206.64025%201.72378%206.3902C1.97382%206.14015%202.31296%205.99967%202.66659%205.99967H3.99992M7.33325%203.99967H11.3333C11.7014%203.99967%2011.9999%204.29815%2011.9999%204.66634V5.99967C11.9999%206.36786%2011.7014%206.66634%2011.3333%206.66634H7.33325C6.96506%206.66634%206.66658%206.36786%206.66658%205.99967V4.66634C6.66658%204.29815%206.96506%203.99967%207.33325%203.99967Z'%20stroke='%232D64B8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_617_15259'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Tg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.44729%202.75711C6.48402%202.37067%206.66351%202.01181%206.95069%201.75063C7.23787%201.48945%207.61211%201.34473%208.00029%201.34473C8.38847%201.34473%208.76271%201.48945%209.04989%201.75063C9.33707%202.01181%209.51656%202.37067%209.55329%202.75711C9.57537%203.00675%209.65727%203.24739%209.79205%203.45867C9.92683%203.66995%2010.1105%203.84565%2010.3276%203.97089C10.5447%204.09614%2010.7887%204.16724%2011.0391%204.17819C11.2895%204.18913%2011.5388%204.1396%2011.766%204.03378C12.1187%203.87363%2012.5184%203.85045%2012.8873%203.96877C13.2562%204.08708%2013.5678%204.33841%2013.7616%204.67385C13.9554%205.00928%2014.0175%205.40482%2013.9357%205.78349C13.854%206.16215%2013.6342%206.49685%2013.3193%206.72244C13.1142%206.86634%2012.9468%207.05751%2012.8312%207.27979C12.7157%207.50207%2012.6553%207.74891%2012.6553%207.99944C12.6553%208.24997%2012.7157%208.49681%2012.8312%208.71909C12.9468%208.94137%2013.1142%209.13254%2013.3193%209.27644C13.6342%209.50203%2013.854%209.83673%2013.9357%2010.2154C14.0175%2010.5941%2013.9554%2010.9896%2013.7616%2011.325C13.5678%2011.6605%2013.2562%2011.9118%2012.8873%2012.0301C12.5184%2012.1484%2012.1187%2012.1253%2011.766%2011.9651C11.5388%2011.8593%2011.2895%2011.8097%2011.0391%2011.8207C10.7887%2011.8316%2010.5447%2011.9027%2010.3276%2012.028C10.1105%2012.1532%209.92683%2012.3289%209.79205%2012.5402C9.65727%2012.7515%209.57537%2012.9921%209.55329%2013.2418C9.51656%2013.6282%209.33707%2013.9871%209.04989%2014.2483C8.76271%2014.5094%208.38847%2014.6542%208.00029%2014.6542C7.61211%2014.6542%207.23787%2014.5094%206.95069%2014.2483C6.66351%2013.9871%206.48402%2013.6282%206.44729%2013.2418C6.42525%2012.992%206.34336%2012.7513%206.20854%2012.54C6.07371%2012.3286%205.88994%2012.1528%205.67278%2012.0276C5.45562%2011.9023%205.21147%2011.8313%204.96101%2011.8204C4.71055%2011.8095%204.46116%2011.8591%204.23396%2011.9651C3.88122%2012.1253%203.48151%2012.1484%203.11263%2012.0301C2.74374%2011.9118%202.43207%2011.6605%202.23828%2011.325C2.04449%2010.9896%201.98244%2010.5941%202.0642%2010.2154C2.14596%209.83673%202.36569%209.50203%202.68063%209.27644C2.88571%209.13254%203.05311%208.94137%203.16868%208.71909C3.28426%208.49681%203.34459%208.24997%203.34459%207.99944C3.34459%207.74891%203.28426%207.50207%203.16868%207.27979C3.05311%207.05751%202.88571%206.86634%202.68063%206.72244C2.36614%206.49674%202.14679%206.16217%202.06523%205.78376C1.98366%205.40535%202.0457%205.01014%202.23928%204.67492C2.43287%204.3397%202.74417%204.08843%203.11269%203.96994C3.4812%203.85144%203.88061%203.8742%204.23329%204.03378C4.46046%204.1396%204.70979%204.18913%204.96016%204.17819C5.21053%204.16724%205.45458%204.09614%205.67165%203.97089C5.88872%203.84565%206.07242%203.66995%206.2072%203.45867C6.34198%203.24739%206.42388%203.00675%206.44596%202.75711M9.99996%207.99978C9.99996%209.10434%209.10453%209.99978%207.99996%209.99978C6.89539%209.99978%205.99996%209.10434%205.99996%207.99978C5.99996%206.89521%206.89539%205.99978%207.99996%205.99978C9.10453%205.99978%209.99996%206.89521%209.99996%207.99978Z'%20stroke='%23745EBF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Ig = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.99992%208H6.66659M9.99992%205.33333H6.66659M12.6666%2011.3333V3.33333C12.6666%202.97971%2012.5261%202.64057%2012.2761%202.39052C12.026%202.14048%2011.6869%202%2011.3333%202H2.66659M2.66659%202C3.02021%202%203.35935%202.14048%203.60939%202.39052C3.85944%202.64057%203.99992%202.97971%203.99992%203.33333V5.33333M2.66659%202C2.31296%202%201.97382%202.14048%201.72378%202.39052C1.47373%202.64057%201.33325%202.97971%201.33325%203.33333V4.66667C1.33325%204.84348%201.40349%205.01305%201.52851%205.13807C1.65354%205.2631%201.82311%205.33333%201.99992%205.33333H3.99992M5.33325%2014H13.3333C13.6869%2014%2014.026%2013.8595%2014.2761%2013.6095C14.5261%2013.3594%2014.6666%2013.0203%2014.6666%2012.6667V12C14.6666%2011.8232%2014.5963%2011.6536%2014.4713%2011.5286C14.3463%2011.4036%2014.1767%2011.3333%2013.9999%2011.3333H7.33325C7.15644%2011.3333%206.98687%2011.4036%206.86185%2011.5286C6.73682%2011.6536%206.66659%2011.8232%206.66659%2012V12.6667C6.66659%2013.0203%206.52611%2013.3594%206.27606%2013.6095C6.02601%2013.8595%205.68687%2014%205.33325%2014ZM5.33325%2014C4.97963%2014%204.64049%2013.8595%204.39044%2013.6095C4.14039%2013.3594%203.99992%2013.0203%203.99992%2012.6667V5.33333'%20stroke='%2300B692'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Rg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.66675%209.33301H6.66675M2.66675%201.33301H9.33341M3.33341%2011.9997H12.6667C13.0349%2011.9997%2013.3334%2012.2982%2013.3334%2012.6663V13.9997C13.3334%2014.3679%2013.0349%2014.6663%2012.6667%2014.6663H3.33341C2.96522%2014.6663%202.66675%2014.3679%202.66675%2013.9997V12.6663C2.66675%2012.2982%202.96522%2011.9997%203.33341%2011.9997ZM3.33341%203.99967H12.6667C13.0349%203.99967%2013.3334%204.29815%2013.3334%204.66634V5.99967C13.3334%206.36786%2013.0349%206.66634%2012.6667%206.66634H3.33341C2.96522%206.66634%202.66675%206.36786%202.66675%205.99967V4.66634C2.66675%204.29815%202.96522%203.99967%203.33341%203.99967Z'%20stroke='%23FF6F00'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", kg = "Complaints", xg = [
5504
5509
  { actionName: "READ", featureModule: { name: "Complaints", isActive: !1 }, source: "role:STOREMANAGER" },
5505
5510
  { actionName: "DELETE", featureModule: { name: "Complaints", isActive: !1 }, source: "role:STOREMANAGER" },
5506
5511
  { actionName: "CREATE", featureModule: { name: "Complaints", isActive: !1 }, source: "role:STOREMANAGER" },
@@ -5509,7 +5514,7 @@ const Lg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%20
5509
5514
  ];
5510
5515
  function aa(e) {
5511
5516
  const t = Array.isArray(e) ? e : [], n = new Set(
5512
- t.filter((p) => p?.featureModule?.name === Rg && p?.featureModule?.isActive !== !1).map((p) => String(p?.actionName || "").trim().toUpperCase())
5517
+ t.filter((p) => p?.featureModule?.name === kg && p?.featureModule?.isActive !== !1).map((p) => String(p?.actionName || "").trim().toUpperCase())
5513
5518
  ), r = n.has("FULL_ACCESS"), a = n.has("FULL_DATA_ACCESS") || n.has("FULL_CONTENT_ACCESS"), s = n.has("READ") || r, l = n.has("CREATE") || r, i = n.has("DELETE") || r, c = a;
5514
5519
  return {
5515
5520
  canViewCards: s,
@@ -5524,7 +5529,7 @@ function aa(e) {
5524
5529
  hasAnyAccess: s || l || i || c
5525
5530
  };
5526
5531
  }
5527
- const xg = [
5532
+ const Fg = [
5528
5533
  "Text",
5529
5534
  // 'Select',
5530
5535
  "Dropdown",
@@ -5544,7 +5549,7 @@ const xg = [
5544
5549
  "Radio",
5545
5550
  "Checkbox"
5546
5551
  // 'MultiSelect',
5547
- ]), Fg = ["Both", "User", "Admin"], Og = {
5552
+ ]), Og = ["Both", "User", "Admin"], Dg = {
5548
5553
  Open: "#FF0000",
5549
5554
  Cancelled: "#FF6F00",
5550
5555
  Closed: "#00D82F"
@@ -5559,7 +5564,7 @@ const xg = [
5559
5564
  hideFor: [],
5560
5565
  dependsOn: "",
5561
5566
  options: [...ns],
5562
- optionColors: { ...Og },
5567
+ optionColors: { ...Dg },
5563
5568
  parentMappings: {},
5564
5569
  lockMode: "options",
5565
5570
  isNew: !1
@@ -5592,7 +5597,7 @@ const xg = [
5592
5597
  parentMappings: {},
5593
5598
  lockMode: "all",
5594
5599
  isNew: !1
5595
- }, Dg = [
5600
+ }, Mg = [
5596
5601
  {
5597
5602
  ...bt,
5598
5603
  label: bt.fieldLabel
@@ -5612,7 +5617,7 @@ function pe(e) {
5612
5617
  function ut(e) {
5613
5618
  return pe(e) && (e?.lockMode === "options" || e?.lockMode === "all");
5614
5619
  }
5615
- function Mg(e, t = []) {
5620
+ function Pg(e, t = []) {
5616
5621
  if (!pe(e)) return !1;
5617
5622
  const n = t.length ? t : [e], r = n.filter((l) => !l?.isNew && pe(l)), a = n.filter(ut), s = r[0] || a[0] || n.find((l) => pe(l) && !l?.isNew);
5618
5623
  return s ? String(s.id) === String(e.id) : !e?.isNew;
@@ -5629,7 +5634,7 @@ function Et(e) {
5629
5634
  const t = String(e || "").trim().toLowerCase();
5630
5635
  return t === "open" || t === "cancelled" || t === "canceled" || t === "closed";
5631
5636
  }
5632
- function Pg(e) {
5637
+ function Bg(e) {
5633
5638
  return String(e || "").trim().toLowerCase() === "open";
5634
5639
  }
5635
5640
  function sa(e) {
@@ -5639,7 +5644,7 @@ function un(e = []) {
5639
5644
  const t = (e || []).filter((l) => l != null && String(l).trim() !== ""), n = (l) => t.find((i) => String(i).trim().toLowerCase() === l), r = n("open"), a = ["cancelled", "closed"].map(n).filter((l) => l != null), s = t.filter((l) => l !== r && !a.includes(l));
5640
5645
  return [r, ...s, ...a].filter((l) => l != null);
5641
5646
  }
5642
- function Bg(e = []) {
5647
+ function Ug(e = []) {
5643
5648
  const t = new Set(ns.map((r) => r.toLowerCase())), n = (e || []).filter((r) => {
5644
5649
  const a = String(r || "").trim().toLowerCase();
5645
5650
  return !a || a === "done" || a === "canceled" || t.has(a) ? !1 : (t.add(a), !0);
@@ -5661,7 +5666,7 @@ function Xi(e = []) {
5661
5666
  function Lc(e = []) {
5662
5667
  return e.some((t) => !pe(t) && !$e(t) && String(t.fieldLabel || t.label || "").trim());
5663
5668
  }
5664
- function Ug(e = []) {
5669
+ function $g(e = []) {
5665
5670
  return e.filter((t) => {
5666
5671
  if (!t.required || pe(t) || $e(t)) return !1;
5667
5672
  const n = String(t.dependsOn || "").trim();
@@ -5676,8 +5681,8 @@ function Ug(e = []) {
5676
5681
  return s.some((c) => !i.has(c));
5677
5682
  });
5678
5683
  }
5679
- function $g(e = []) {
5680
- const t = Ug(e).map((r) => String(r.fieldLabel || "").trim()).filter(Boolean);
5684
+ function jg(e = []) {
5685
+ const t = $g(e).map((r) => String(r.fieldLabel || "").trim()).filter(Boolean);
5681
5686
  return t.length ? `${t.length === 1 ? t[0] : `${t.slice(0, -1).join(", ")} and ${t[t.length - 1]}`} ${t.length === 1 ? "field cannot be made required" : "fields cannot be made required"} because all parent options are not mapped with the child field. Map every parent option to a child option, or turn off Required.` : "";
5682
5687
  }
5683
5688
  function Ec(e = []) {
@@ -5688,12 +5693,12 @@ function Ec(e = []) {
5688
5693
  !a || n.has(a) || (n.add(a), t.push(a));
5689
5694
  }), t.length ? t.length === 1 ? `Add options for ${t[0]} field.` : t.length === 2 ? `Add options for ${t[0]} and ${t[1]} fields.` : `Add options for ${t.slice(0, -1).join(", ")}, and ${t[t.length - 1]} fields.` : "";
5690
5695
  }
5691
- function jg(e, t) {
5696
+ function Vg(e, t) {
5692
5697
  const n = String(e?.fieldLabel || e?.label || "").trim().toLowerCase(), r = String(t?.fieldLabel || t?.label || "").trim().toLowerCase(), a = String(e?.fieldType || "").trim().toLowerCase(), s = String(t?.fieldType || "").trim().toLowerCase();
5693
5698
  return !!(n && r && a && s && n === r && a === s);
5694
5699
  }
5695
5700
  function Fr(e, t = []) {
5696
- return e ? t.some((n) => String(n.id) === String(e.id) ? !1 : jg(e, n)) : !1;
5701
+ return e ? t.some((n) => String(n.id) === String(e.id) ? !1 : Vg(e, n)) : !1;
5697
5702
  }
5698
5703
  function Or(e = []) {
5699
5704
  return e.some((t) => Fr(t, e));
@@ -5713,17 +5718,17 @@ function zs(e, t = {}, n = "") {
5713
5718
  }
5714
5719
  return t[e] ?? e ?? "Custom";
5715
5720
  }
5716
- function Vg(e) {
5721
+ function qg(e) {
5717
5722
  return Hr(e) ? "Priorities" : "Option";
5718
5723
  }
5719
- function qg(e, t = !1) {
5724
+ function Wg(e, t = !1) {
5720
5725
  return e ? t ? "Define options and set parent." : pe(e) ? "Manage the status" : "Manage your fields." : "";
5721
5726
  }
5722
5727
  function Kr(e, t = []) {
5723
5728
  if (String(e?.fieldType || "") === "MultiSelect")
5724
5729
  return Kr({ ...e, fieldType: "Checkbox" }, t);
5725
5730
  if (pe(e)) {
5726
- if (e?.isNew || !Mg(e, t))
5731
+ if (e?.isNew || !Pg(e, t))
5727
5732
  return {
5728
5733
  ...e,
5729
5734
  lockMode: e?.lockMode === "all" ? e.lockMode : void 0
@@ -5737,7 +5742,7 @@ function Kr(e, t = []) {
5737
5742
  originalFieldName: r ? bt.originalFieldName : e.originalFieldName ?? n,
5738
5743
  fieldType: bt.fieldType,
5739
5744
  required: !0,
5740
- options: Bg(e.options),
5745
+ options: Ug(e.options),
5741
5746
  optionColors: { ...e.optionColors || {}, ...bt.optionColors },
5742
5747
  lockMode: "options"
5743
5748
  };
@@ -5764,7 +5769,7 @@ function Ft(e = []) {
5764
5769
  const n = { ...bt };
5765
5770
  return [Kr(n, [n, ...t]), ...t];
5766
5771
  }
5767
- const Tc = "aira-query-complaintTypeId", Wg = { id: "status", label: "Status", key: "status" }, zg = { id: "escalationTo", label: "Escalation To", key: "escalationTo" }, Hg = { id: "submittedByUserName", label: "Submitted By", key: "submittedByUserName" }, Kg = { id: "assignedToUserName", label: "Assigned To", key: "assignedToUserName" }, Qg = { id: "complaintId", label: "Complaint Id", key: "complaintId" }, Xg = { id: "createdAt", label: "Created At", key: "createdAt" }, Yg = { id: "updatedAt", label: "Updated At", key: "updatedAt" }, Yi = "desc", Gi = "asc", Gg = 50, Jg = ["25", "50", "100", "200"], Zg = 999999, Hs = /* @__PURE__ */ new Set(["status", "escalationTo", "id", "submittedByUserName", "assignedToUserName", "complaintId", "createdAt", "updatedAt"]), eA = [
5772
+ const Tc = "aira-query-complaintTypeId", zg = { id: "status", label: "Status", key: "status" }, Hg = { id: "escalationTo", label: "Escalation To", key: "escalationTo" }, Kg = { id: "submittedByUserName", label: "Submitted By", key: "submittedByUserName" }, Qg = { id: "assignedToUserName", label: "Assigned To", key: "assignedToUserName" }, Xg = { id: "complaintId", label: "Complaint Id", key: "complaintId" }, Yg = { id: "createdAt", label: "Created At", key: "createdAt" }, Gg = { id: "updatedAt", label: "Updated At", key: "updatedAt" }, Yi = "desc", Gi = "asc", Jg = 50, Zg = ["25", "50", "100", "200"], eA = 999999, Hs = /* @__PURE__ */ new Set(["status", "escalationTo", "id", "submittedByUserName", "assignedToUserName", "complaintId", "createdAt", "updatedAt"]), tA = [
5768
5773
  "Jan",
5769
5774
  "Feb",
5770
5775
  "Mar",
@@ -5778,7 +5783,7 @@ const Tc = "aira-query-complaintTypeId", Wg = { id: "status", label: "Status", k
5778
5783
  "Nov",
5779
5784
  "Dec"
5780
5785
  ];
5781
- function tA(e) {
5786
+ function nA(e) {
5782
5787
  const t = e.getHours(), n = String(e.getMinutes()).padStart(2, "0");
5783
5788
  return `${String(t % 12 || 12).padStart(2, "0")}:${n} ${t >= 12 ? "PM" : "AM"}`;
5784
5789
  }
@@ -5787,17 +5792,17 @@ function Ji(e) {
5787
5792
  }
5788
5793
  function jn(e) {
5789
5794
  const t = Dc(e);
5790
- return !e || Number.isNaN(t.getTime()) ? "" : `${Mc(e)}, ${tA(t)}`;
5795
+ return !e || Number.isNaN(t.getTime()) ? "" : `${Mc(e)}, ${nA(t)}`;
5791
5796
  }
5792
5797
  function Zi(e) {
5793
5798
  return [
5794
- Hg,
5795
5799
  Kg,
5796
5800
  Qg,
5797
5801
  Xg,
5798
5802
  Yg,
5799
- Wg,
5803
+ Gg,
5800
5804
  zg,
5805
+ Hg,
5801
5806
  ...e
5802
5807
  ];
5803
5808
  }
@@ -5814,7 +5819,7 @@ function Ic(e) {
5814
5819
  };
5815
5820
  }).filter((r) => r.key && !Hs.has(r.key));
5816
5821
  }
5817
- function nA(e, t, n, r) {
5822
+ function rA(e, t, n, r) {
5818
5823
  const a = e?.data ?? e ?? {}, s = Number(a.total ?? a.totalItems ?? a.totalCount ?? a.count), l = Number(a.totalPages ?? a.pages ?? a.pageCount);
5819
5824
  return Number.isFinite(l) && l > 0 ? {
5820
5825
  totalPages: l,
@@ -5876,7 +5881,7 @@ function rs(e, t = []) {
5876
5881
  }
5877
5882
  return "";
5878
5883
  }
5879
- function rA(e, t = []) {
5884
+ function aA(e, t = []) {
5880
5885
  const n = e?.statusId ?? e?.complaintStatusId;
5881
5886
  if (n != null && n !== "") return n;
5882
5887
  const r = e?.status;
@@ -5893,11 +5898,11 @@ function rA(e, t = []) {
5893
5898
  function Qr(e) {
5894
5899
  return e === !0 || e === "Yes" || e === "true" || e === 1 || e === "1";
5895
5900
  }
5896
- const aA = /* @__PURE__ */ new Set(["closed", "cancelled", "canceled"]);
5901
+ const sA = /* @__PURE__ */ new Set(["closed", "cancelled", "canceled"]);
5897
5902
  function Ks(e) {
5898
- return aA.has(String(e || "").trim().toLowerCase());
5903
+ return sA.has(String(e || "").trim().toLowerCase());
5899
5904
  }
5900
- function sA(e) {
5905
+ function iA(e) {
5901
5906
  return Ks(e);
5902
5907
  }
5903
5908
  function Xr(e) {
@@ -5912,7 +5917,7 @@ function Fc(e, t = []) {
5912
5917
  const r = e?.level ?? e?.levelNo;
5913
5918
  return r != null && r !== "" ? t.find((a) => String(a.levelNo) === String(r)) ?? null : null;
5914
5919
  }
5915
- function iA(e, t = []) {
5920
+ function oA(e, t = []) {
5916
5921
  const n = e?.level ?? e?.levelNo;
5917
5922
  if (n != null && n !== "") return `Level ${n}`;
5918
5923
  const r = e?.workflowStepId ?? e?.currentWorkflowStepId ?? e?.currentStepId;
@@ -5927,8 +5932,8 @@ function to(e, t = [], n = []) {
5927
5932
  id: e?.complaintId ?? e?.id,
5928
5933
  status: rs(e, t),
5929
5934
  isClosed: Xr(rs(e, t)),
5930
- statusId: rA(e, t),
5931
- escalationTo: iA(e, n),
5935
+ statusId: aA(e, t),
5936
+ escalationTo: oA(e, n),
5932
5937
  level: a ?? null,
5933
5938
  currentStepId: r?.id ?? e?.currentStepId ?? e?.workflowStepId ?? e?.currentWorkflowStepId ?? null,
5934
5939
  canResolve: Qr(e?.canResolve ?? r?.canResolve),
@@ -5965,7 +5970,7 @@ function no(e, t) {
5965
5970
  });
5966
5971
  }), r;
5967
5972
  }
5968
- function oA(e, t, n) {
5973
+ function lA(e, t, n) {
5969
5974
  return String(e?.fieldType || "").toLowerCase() === "file" ? !0 : t.some((a) => n(e, a[e.key] ?? "-"));
5970
5975
  }
5971
5976
  function Oc(e) {
@@ -5976,7 +5981,7 @@ function ro(e) {
5976
5981
  const t = e == null ? "" : String(e);
5977
5982
  return /[",\n]/.test(t) ? `"${t.replace(/"/g, '""')}"` : t;
5978
5983
  }
5979
- function lA(e, t) {
5984
+ function cA(e, t) {
5980
5985
  const n = e.map((a) => ro(a.label)).join(","), r = t.map((a) => e.map((s) => ro(a[s.key] ?? "-")).join(","));
5981
5986
  return [n, ...r].join(`\r
5982
5987
  `);
@@ -5988,7 +5993,7 @@ function Dc(e) {
5988
5993
  function Mc(e) {
5989
5994
  if (!e) return "";
5990
5995
  const t = Dc(e);
5991
- return Number.isNaN(t.getTime()) ? "" : `${t.getDate()} ${eA[t.getMonth()]} ${t.getFullYear()}`;
5996
+ return Number.isNaN(t.getTime()) ? "" : `${t.getDate()} ${tA[t.getMonth()]} ${t.getFullYear()}`;
5992
5997
  }
5993
5998
  function Pc(e) {
5994
5999
  return (Array.isArray(e?.roles) ? e.roles : []).map((n) => Number(n?.id ?? n?.roleId ?? n?.role_id ?? n)).filter((n) => Number.isFinite(n));
@@ -6033,10 +6038,10 @@ function $c(e, t = [], n = [], r = null) {
6033
6038
  date: jn(e?.createdAt ?? e?.date),
6034
6039
  createdOn: jn(e?.createdAt ?? e?.date),
6035
6040
  updatedOn: jn(e?.updatedAt),
6036
- tat: r && !(r.requireLevelTat && s != null && !u) ? uA(e, p, a) : null
6041
+ tat: r && !(r.requireLevelTat && s != null && !u) ? pA(e, p, a) : null
6037
6042
  };
6038
6043
  }
6039
- function cA(e, t = []) {
6044
+ function dA(e, t = []) {
6040
6045
  const n = Number(e?.totalEntries) || 0, r = Number(e?.openEntries) || 0, a = Number(e?.closedEntries) || 0, s = Number(e?.cancelledEntriesCount ?? e?.cancelledEntries) || 0, l = [
6041
6046
  e?.workflowSteps?.steps,
6042
6047
  e?.workflowSteps,
@@ -6075,14 +6080,14 @@ function ss(e) {
6075
6080
  const t = Math.max(Math.floor(Math.abs(e) / 60), 0), n = Math.floor(t / 1440), r = Math.floor(t % 1440 / 60), a = t % 60, s = [];
6076
6081
  return n && s.push(`${n}d`), r && s.push(`${r}h`), a && s.push(`${a}m`), s.join(" ") || "0m";
6077
6082
  }
6078
- function dA(e) {
6083
+ function uA(e) {
6079
6084
  if (e % 1440 === 0) {
6080
6085
  const t = e / 1440;
6081
6086
  return `${t} ${t === 1 ? "day" : "days"}`;
6082
6087
  }
6083
6088
  return ss(e * 60);
6084
6089
  }
6085
- function uA(e, t, n = "") {
6090
+ function pA(e, t, n = "") {
6086
6091
  if (Ks(n)) return null;
6087
6092
  const r = Number(e?.escalationTimeRemainingSeconds);
6088
6093
  if (e?.escalationTimeRemainingSeconds == null || !Number.isFinite(r)) return null;
@@ -6091,14 +6096,14 @@ function uA(e, t, n = "") {
6091
6096
  percent: s ? 100 : l,
6092
6097
  state: s ? "overdue" : "ok",
6093
6098
  remainingLabel: s ? `Overdue by ${ss(r)}` : `${ss(r)} remaining`,
6094
- totalLabel: a ? `of ${dA(Number(t))}` : ""
6099
+ totalLabel: a ? `of ${uA(Number(t))}` : ""
6095
6100
  };
6096
6101
  }
6097
6102
  function is(e) {
6098
6103
  return String(e ?? "").replace(/\r\n?/g, `
6099
6104
  `).trim();
6100
6105
  }
6101
- const pA = {
6106
+ const fA = {
6102
6107
  wrap: "ca-filler-card__description-wrap",
6103
6108
  text: "ca-filler-card__desc",
6104
6109
  clamped: "ca-filler-card__desc--clamped",
@@ -6106,7 +6111,7 @@ const pA = {
6106
6111
  };
6107
6112
  function Qs({
6108
6113
  text: e,
6109
- classes: t = pA,
6114
+ classes: t = fA,
6110
6115
  forceLayout: n = !1,
6111
6116
  onTextClick: r
6112
6117
  }) {
@@ -6151,7 +6156,7 @@ function Qs({
6151
6156
  ) : null
6152
6157
  ] });
6153
6158
  }
6154
- function fA({
6159
+ function mA({
6155
6160
  id: e,
6156
6161
  title: t,
6157
6162
  item: n,
@@ -6192,18 +6197,18 @@ function fA({
6192
6197
  }
6193
6198
  s && typeof window < "u" && window.open(s, "_blank", "noopener,noreferrer");
6194
6199
  }, ue = [
6195
- { label: "Total entries", value: n?.totalEntries ?? 0, icon: /* @__PURE__ */ o("img", { src: Lg, alt: "" }) },
6196
- { label: "Open entries", value: n?.openEntries ?? 0, icon: /* @__PURE__ */ o("img", { src: Eg, alt: "" }) },
6200
+ { label: "Total entries", value: n?.totalEntries ?? 0, icon: /* @__PURE__ */ o("img", { src: Eg, alt: "" }) },
6201
+ { label: "Open entries", value: n?.openEntries ?? 0, icon: /* @__PURE__ */ o("img", { src: Tg, alt: "" }) },
6197
6202
  {
6198
6203
  label: "Closed entries",
6199
6204
  value: (Number(n?.closedEntries) || 0) + (Number(n?.cancelledEntriesCount) || 0),
6200
- icon: /* @__PURE__ */ o("img", { src: Tg, alt: "" })
6205
+ icon: /* @__PURE__ */ o("img", { src: Ig, alt: "" })
6201
6206
  },
6202
- { label: "Escalated entries", value: n?.escalatedEntries ?? 0, icon: /* @__PURE__ */ o("img", { src: Ig, alt: "" }) }
6207
+ { label: "Escalated entries", value: n?.escalatedEntries ?? 0, icon: /* @__PURE__ */ o("img", { src: Rg, alt: "" }) }
6203
6208
  ], he = e ?? n?.id ?? n?._id;
6204
6209
  return /* @__PURE__ */ m("article", { className: `ca-system-card ${N}`.trim(), children: [
6205
6210
  /* @__PURE__ */ o(
6206
- wg,
6211
+ Sg,
6207
6212
  {
6208
6213
  title: n?.name,
6209
6214
  titleAsLink: u,
@@ -6232,11 +6237,11 @@ function fA({
6232
6237
  }
6233
6238
  ) : null,
6234
6239
  /* @__PURE__ */ o("div", { className: "ca-system-card__stats", children: ue.map((C, B) => /* @__PURE__ */ m(ws.Fragment, { children: [
6235
- B > 0 ? /* @__PURE__ */ o(_g, {}) : /* @__PURE__ */ o("div", { className: "ca-system-card__stats-spacer" }),
6236
- /* @__PURE__ */ o(Ng, { label: C.label, value: C.value, icon: C.icon })
6240
+ B > 0 ? /* @__PURE__ */ o(Lg, {}) : /* @__PURE__ */ o("div", { className: "ca-system-card__stats-spacer" }),
6241
+ /* @__PURE__ */ o(_g, { label: C.label, value: C.value, icon: C.icon })
6237
6242
  ] }, C.label)) }),
6238
6243
  /* @__PURE__ */ o(
6239
- Cg,
6244
+ Ng,
6240
6245
  {
6241
6246
  updatedOn: p ?? Mc(n?.updatedAt ?? n?.createdAt),
6242
6247
  onOpen: () => w?.({ id: e, title: t }),
@@ -6270,7 +6275,7 @@ function io({
6270
6275
  className: p = ""
6271
6276
  }) {
6272
6277
  return e.length ? /* @__PURE__ */ o("div", { className: `ca-system-grid ${p}`.trim(), children: e.map((u) => /* @__PURE__ */ o(
6273
- fA,
6278
+ mA,
6274
6279
  {
6275
6280
  item: u,
6276
6281
  ...u,
@@ -6311,7 +6316,7 @@ function Qn({
6311
6316
  )
6312
6317
  ] });
6313
6318
  }
6314
- function mA({ size: e = 18, color: t = "currentColor", ...n }) {
6319
+ function hA({ size: e = 18, color: t = "currentColor", ...n }) {
6315
6320
  return /* @__PURE__ */ m(
6316
6321
  "svg",
6317
6322
  {
@@ -6344,7 +6349,7 @@ function mA({ size: e = 18, color: t = "currentColor", ...n }) {
6344
6349
  }
6345
6350
  );
6346
6351
  }
6347
- function hA({
6352
+ function gA({
6348
6353
  value: e,
6349
6354
  onChange: t,
6350
6355
  onSearch: n,
@@ -6361,7 +6366,7 @@ function hA({
6361
6366
  onChange: t,
6362
6367
  onKeyDown: s,
6363
6368
  placeholder: r,
6364
- icon: /* @__PURE__ */ o(mA, {}),
6369
+ icon: /* @__PURE__ */ o(hA, {}),
6365
6370
  "aria-label": r
6366
6371
  }
6367
6372
  ) });
@@ -6435,7 +6440,7 @@ function Xn({
6435
6440
  document.body
6436
6441
  );
6437
6442
  }
6438
- function gA({ type: e }) {
6443
+ function AA({ type: e }) {
6439
6444
  return e === "error" ? /* @__PURE__ */ m("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
6440
6445
  /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
6441
6446
  /* @__PURE__ */ o("path", { d: "M12 7.5v5.5M12 16.2v.1", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
@@ -6444,12 +6449,12 @@ function gA({ type: e }) {
6444
6449
  /* @__PURE__ */ o("path", { d: "M8 12.5l2.8 2.8L16.2 9.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
6445
6450
  ] });
6446
6451
  }
6447
- function AA({ id: e, message: t, type: n = "success", onDismiss: r }) {
6452
+ function yA({ id: e, message: t, type: n = "success", onDismiss: r }) {
6448
6453
  return se(() => {
6449
6454
  const a = setTimeout(() => r(e), 3500);
6450
6455
  return () => clearTimeout(a);
6451
6456
  }, [e, r]), /* @__PURE__ */ m("div", { className: `ca-toast ca-toast--${n}`, role: "status", children: [
6452
- /* @__PURE__ */ o("span", { className: "ca-toast__icon", children: /* @__PURE__ */ o(gA, { type: n }) }),
6457
+ /* @__PURE__ */ o("span", { className: "ca-toast__icon", children: /* @__PURE__ */ o(AA, { type: n }) }),
6453
6458
  /* @__PURE__ */ m("div", { className: "ca-toast__content", children: [
6454
6459
  /* @__PURE__ */ o("div", { className: "ca-toast__title", children: n === "error" ? "Error" : "Success" }),
6455
6460
  /* @__PURE__ */ o("div", { className: "ca-toast__message", children: t })
@@ -6468,17 +6473,17 @@ function AA({ id: e, message: t, type: n = "success", onDismiss: r }) {
6468
6473
  }
6469
6474
  function ia({ toasts: e = [], onDismiss: t }) {
6470
6475
  if (!e.length) return null;
6471
- const n = /* @__PURE__ */ o("div", { className: "ca-toast-container", children: e.map((r) => /* @__PURE__ */ o(AA, { ...r, onDismiss: t }, r.id)) });
6476
+ const n = /* @__PURE__ */ o("div", { className: "ca-toast-container", children: e.map((r) => /* @__PURE__ */ o(yA, { ...r, onDismiss: t }, r.id)) });
6472
6477
  return typeof document < "u" ? Gn(n, document.body) : n;
6473
6478
  }
6474
6479
  const qc = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
6475
- const yA = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
6476
- const bA = (e) => e.replace(
6480
+ const bA = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
6481
+ const vA = (e) => e.replace(
6477
6482
  /^([A-Z])|[\s-_]+(\w)/g,
6478
6483
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
6479
6484
  );
6480
6485
  const oo = (e) => {
6481
- const t = bA(e);
6486
+ const t = vA(e);
6482
6487
  return t.charAt(0).toUpperCase() + t.slice(1);
6483
6488
  };
6484
6489
  var xa = {
@@ -6492,12 +6497,12 @@ var xa = {
6492
6497
  strokeLinecap: "round",
6493
6498
  strokeLinejoin: "round"
6494
6499
  };
6495
- const vA = (e) => {
6500
+ const wA = (e) => {
6496
6501
  for (const t in e)
6497
6502
  if (t.startsWith("aria-") || t === "role" || t === "title")
6498
6503
  return !0;
6499
6504
  return !1;
6500
- }, wA = Yn({}), SA = () => Zr(wA), CA = nl(
6505
+ }, SA = Yn({}), CA = () => Zr(SA), NA = nl(
6501
6506
  ({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: a = "", children: s, iconNode: l, ...i }, c) => {
6502
6507
  const {
6503
6508
  size: d = 24,
@@ -6505,7 +6510,7 @@ const vA = (e) => {
6505
6510
  absoluteStrokeWidth: u = !1,
6506
6511
  color: f = "currentColor",
6507
6512
  className: y = ""
6508
- } = SA() ?? {}, g = r ?? u ? Number(n ?? p) * 24 / Number(t ?? d) : n ?? p;
6513
+ } = CA() ?? {}, g = r ?? u ? Number(n ?? p) * 24 / Number(t ?? d) : n ?? p;
6509
6514
  return Wa(
6510
6515
  "svg",
6511
6516
  {
@@ -6516,7 +6521,7 @@ const vA = (e) => {
6516
6521
  stroke: e ?? f,
6517
6522
  strokeWidth: g,
6518
6523
  className: qc("lucide", y, a),
6519
- ...!s && !vA(i) && { "aria-hidden": "true" },
6524
+ ...!s && !wA(i) && { "aria-hidden": "true" },
6520
6525
  ...i
6521
6526
  },
6522
6527
  [
@@ -6528,11 +6533,11 @@ const vA = (e) => {
6528
6533
  );
6529
6534
  const _e = (e, t) => {
6530
6535
  const n = nl(
6531
- ({ className: r, ...a }, s) => Wa(CA, {
6536
+ ({ className: r, ...a }, s) => Wa(NA, {
6532
6537
  ref: s,
6533
6538
  iconNode: t,
6534
6539
  className: qc(
6535
- `lucide-${yA(oo(e))}`,
6540
+ `lucide-${bA(oo(e))}`,
6536
6541
  `lucide-${e}`,
6537
6542
  r
6538
6543
  ),
@@ -6541,15 +6546,15 @@ const _e = (e, t) => {
6541
6546
  );
6542
6547
  return n.displayName = oo(e), n;
6543
6548
  };
6544
- const NA = [
6549
+ const _A = [
6545
6550
  ["path", { d: "M5 12h14", key: "1ays0h" }],
6546
6551
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
6547
- ], Wc = _e("arrow-right", NA);
6548
- const _A = [
6552
+ ], Wc = _e("arrow-right", _A);
6553
+ const LA = [
6549
6554
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
6550
6555
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
6551
- ], LA = _e("arrow-up", _A);
6552
- const EA = [
6556
+ ], EA = _e("arrow-up", LA);
6557
+ const TA = [
6553
6558
  ["path", { d: "M10 12h4", key: "a56b0p" }],
6554
6559
  ["path", { d: "M10 8h4", key: "1sr2af" }],
6555
6560
  ["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
@@ -6561,39 +6566,39 @@ const EA = [
6561
6566
  }
6562
6567
  ],
6563
6568
  ["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
6564
- ], zc = _e("building-2", EA);
6565
- const TA = [
6569
+ ], zc = _e("building-2", TA);
6570
+ const IA = [
6566
6571
  ["path", { d: "M8 2v3", key: "1ioesn" }],
6567
6572
  ["path", { d: "M16 2v3", key: "otl347" }],
6568
6573
  ["rect", { x: "3", y: "3", width: "18", height: "18", rx: "2", key: "h1oib" }],
6569
6574
  ["path", { d: "M3 9h18", key: "1pudct" }]
6570
- ], IA = _e("calendar", TA);
6571
- const RA = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], oa = _e("chevron-down", RA);
6572
- const kA = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], xA = _e("chevron-left", kA);
6573
- const FA = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], nt = _e("chevron-right", FA);
6574
- const OA = [
6575
+ ], RA = _e("calendar", IA);
6576
+ const kA = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], oa = _e("chevron-down", kA);
6577
+ const xA = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], FA = _e("chevron-left", xA);
6578
+ const OA = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], nt = _e("chevron-right", OA);
6579
+ const DA = [
6575
6580
  ["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
6576
6581
  ["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
6577
- ], DA = _e("chevrons-left", OA);
6578
- const MA = [
6582
+ ], MA = _e("chevrons-left", DA);
6583
+ const PA = [
6579
6584
  ["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
6580
6585
  ["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
6581
- ], PA = _e("chevrons-right", MA);
6582
- const BA = [
6586
+ ], BA = _e("chevrons-right", PA);
6587
+ const UA = [
6583
6588
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
6584
6589
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }]
6585
- ], hr = _e("circle-dot", BA);
6586
- const UA = [
6590
+ ], hr = _e("circle-dot", UA);
6591
+ const $A = [
6587
6592
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
6588
6593
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
6589
6594
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
6590
- ], $A = _e("download", UA);
6591
- const jA = [
6595
+ ], jA = _e("download", $A);
6596
+ const VA = [
6592
6597
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
6593
6598
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
6594
6599
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
6595
- ], VA = _e("external-link", jA);
6596
- const qA = [
6600
+ ], qA = _e("external-link", VA);
6601
+ const WA = [
6597
6602
  [
6598
6603
  "path",
6599
6604
  {
@@ -6602,8 +6607,8 @@ const qA = [
6602
6607
  }
6603
6608
  ],
6604
6609
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
6605
- ], WA = _e("eye", qA);
6606
- const zA = [
6610
+ ], zA = _e("eye", WA);
6611
+ const HA = [
6607
6612
  [
6608
6613
  "path",
6609
6614
  {
@@ -6614,8 +6619,8 @@ const zA = [
6614
6619
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
6615
6620
  ["path", { d: "M9 15h6", key: "cctwl0" }],
6616
6621
  ["path", { d: "M12 18v-6", key: "17g6i2" }]
6617
- ], HA = _e("file-plus", zA);
6618
- const KA = [
6622
+ ], KA = _e("file-plus", HA);
6623
+ const QA = [
6619
6624
  [
6620
6625
  "path",
6621
6626
  {
@@ -6627,8 +6632,8 @@ const KA = [
6627
6632
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
6628
6633
  ["path", { d: "M16 13H8", key: "t4e002" }],
6629
6634
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
6630
- ], QA = _e("file-text", KA);
6631
- const XA = [
6635
+ ], XA = _e("file-text", QA);
6636
+ const YA = [
6632
6637
  [
6633
6638
  "path",
6634
6639
  {
@@ -6637,8 +6642,8 @@ const XA = [
6637
6642
  }
6638
6643
  ],
6639
6644
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
6640
- ], YA = _e("file", XA);
6641
- const GA = [
6645
+ ], GA = _e("file", YA);
6646
+ const JA = [
6642
6647
  [
6643
6648
  "path",
6644
6649
  {
@@ -6646,8 +6651,8 @@ const GA = [
6646
6651
  key: "1jaruq"
6647
6652
  }
6648
6653
  ]
6649
- ], JA = _e("flag", GA);
6650
- const ZA = [
6654
+ ], ZA = _e("flag", JA);
6655
+ const e0 = [
6651
6656
  [
6652
6657
  "path",
6653
6658
  {
@@ -6655,8 +6660,8 @@ const ZA = [
6655
6660
  key: "sc7q7i"
6656
6661
  }
6657
6662
  ]
6658
- ], e0 = _e("funnel", ZA);
6659
- const t0 = [
6663
+ ], t0 = _e("funnel", e0);
6664
+ const n0 = [
6660
6665
  [
6661
6666
  "path",
6662
6667
  {
@@ -6671,8 +6676,8 @@ const t0 = [
6671
6676
  key: "byia6g"
6672
6677
  }
6673
6678
  ]
6674
- ], n0 = _e("layers-2", t0);
6675
- const r0 = [
6679
+ ], r0 = _e("layers-2", n0);
6680
+ const a0 = [
6676
6681
  [
6677
6682
  "path",
6678
6683
  {
@@ -6694,29 +6699,29 @@ const r0 = [
6694
6699
  key: "kqbvx6"
6695
6700
  }
6696
6701
  ]
6697
- ], a0 = _e("layers", r0);
6698
- const s0 = [
6702
+ ], s0 = _e("layers", a0);
6703
+ const i0 = [
6699
6704
  ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }],
6700
6705
  ["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }],
6701
6706
  ["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }],
6702
6707
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
6703
- ], i0 = _e("layout-grid", s0);
6704
- const o0 = [
6708
+ ], o0 = _e("layout-grid", i0);
6709
+ const l0 = [
6705
6710
  ["path", { d: "M2 5h20", key: "1fs1ex" }],
6706
6711
  ["path", { d: "M6 12h12", key: "8npq4p" }],
6707
6712
  ["path", { d: "M9 19h6", key: "456am0" }]
6708
- ], l0 = _e("list-filter", o0);
6709
- const c0 = [
6713
+ ], c0 = _e("list-filter", l0);
6714
+ const d0 = [
6710
6715
  ["path", { d: "M5 12h14", key: "1ays0h" }],
6711
6716
  ["path", { d: "M12 5v14", key: "s699le" }]
6712
- ], Hc = _e("plus", c0);
6713
- const d0 = [
6717
+ ], Hc = _e("plus", d0);
6718
+ const u0 = [
6714
6719
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
6715
6720
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
6716
6721
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
6717
6722
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
6718
- ], u0 = _e("refresh-cw", d0);
6719
- const p0 = [
6723
+ ], p0 = _e("refresh-cw", u0);
6724
+ const f0 = [
6720
6725
  ["path", { d: "M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5", key: "slp6dd" }],
6721
6726
  [
6722
6727
  "path",
@@ -6726,34 +6731,34 @@ const p0 = [
6726
6731
  }
6727
6732
  ],
6728
6733
  ["path", { d: "M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05", key: "wn3emo" }]
6729
- ], lo = _e("store", p0);
6730
- const f0 = [
6734
+ ], lo = _e("store", f0);
6735
+ const m0 = [
6731
6736
  ["path", { d: "M10 11v6", key: "nco0om" }],
6732
6737
  ["path", { d: "M14 11v6", key: "outv1u" }],
6733
6738
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
6734
6739
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
6735
6740
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
6736
- ], m0 = _e("trash-2", f0);
6737
- const h0 = [
6741
+ ], h0 = _e("trash-2", m0);
6742
+ const g0 = [
6738
6743
  ["path", { d: "m16 11 2 2 4-4", key: "9rsbq5" }],
6739
6744
  ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
6740
6745
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
6741
- ], g0 = _e("user-check", h0);
6742
- const A0 = [
6746
+ ], A0 = _e("user-check", g0);
6747
+ const y0 = [
6743
6748
  ["path", { d: "m19 16-3 3", key: "lp3y45" }],
6744
6749
  ["path", { d: "M2 21a8 8 0 0 1 12.664-6.5", key: "1ap0vn" }],
6745
6750
  ["path", { d: "M22 19h-6l3 3", key: "13fjle" }],
6746
6751
  ["circle", { cx: "10", cy: "8", r: "5", key: "o932ke" }]
6747
- ], y0 = _e("user-round-arrow-left", A0);
6748
- const b0 = [
6752
+ ], b0 = _e("user-round-arrow-left", y0);
6753
+ const v0 = [
6749
6754
  ["rect", { width: "8", height: "8", x: "3", y: "3", rx: "2", key: "by2w9f" }],
6750
6755
  ["path", { d: "M7 11v4a2 2 0 0 0 2 2h4", key: "xkn7yn" }],
6751
6756
  ["rect", { width: "8", height: "8", x: "13", y: "13", rx: "2", key: "1cgmvn" }]
6752
- ], v0 = _e("workflow", b0);
6753
- const w0 = [
6757
+ ], w0 = _e("workflow", v0);
6758
+ const S0 = [
6754
6759
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
6755
6760
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
6756
- ], Kc = _e("x", w0);
6761
+ ], Kc = _e("x", S0);
6757
6762
  function Qc({ row: e, onClick: t }) {
6758
6763
  return /* @__PURE__ */ m(
6759
6764
  "div",
@@ -6818,7 +6823,7 @@ function Qc({ row: e, onClick: t }) {
6818
6823
  }
6819
6824
  );
6820
6825
  }
6821
- const S0 = [];
6826
+ const C0 = [];
6822
6827
  function co({
6823
6828
  form: e,
6824
6829
  onAddComplaint: t,
@@ -6826,14 +6831,14 @@ function co({
6826
6831
  onOpenComplaint: r
6827
6832
  /*onOpenSubmissionLink*/
6828
6833
  }) {
6829
- const a = ie((u) => u.appDetails?.details?.userList) ?? S0, {
6834
+ const a = ie((u) => u.appDetails?.details?.userList) ?? C0, {
6830
6835
  total: s,
6831
6836
  open: l,
6832
6837
  closed: i,
6833
6838
  cancelled: c,
6834
6839
  previewRows: d
6835
6840
  /*tatMinutes*/
6836
- } = cA(e, a), p = e.isActive !== !1 && e.active !== !1;
6841
+ } = dA(e, a), p = e.isActive !== !1 && e.active !== !1;
6837
6842
  return /* @__PURE__ */ m("article", { className: "ca-filler-card", children: [
6838
6843
  /* @__PURE__ */ m("div", { className: "ca-filler-card__head", children: [
6839
6844
  /* @__PURE__ */ m("div", { className: "ca-filler-card__heading", children: [
@@ -6883,10 +6888,10 @@ function co({
6883
6888
  ] }) })
6884
6889
  ] });
6885
6890
  }
6886
- const C0 = ["isActive", "isArchived"], N0 = "Create, manage and track complaint forms, workflows and responses across departments.";
6887
- function _0({
6891
+ const N0 = ["isActive", "isArchived"], _0 = "Create, manage and track complaint forms, workflows and responses across departments.";
6892
+ function L0({
6888
6893
  title: e = "Complaint Management",
6889
- description: t = N0,
6894
+ description: t = _0,
6890
6895
  createLabel: n = "Create New Form",
6891
6896
  onCreateForm: r,
6892
6897
  onConfigure: a,
@@ -6954,7 +6959,7 @@ function _0({
6954
6959
  searchPlaceholder: "Search forms",
6955
6960
  onSearchChange: g,
6956
6961
  filter: w,
6957
- filterOptions: C0,
6962
+ filterOptions: N0,
6958
6963
  onFilterChange: A,
6959
6964
  canCreateComplaint: B,
6960
6965
  onNewComplaint: Z
@@ -7003,7 +7008,7 @@ function _0({
7003
7008
  isActive: ae,
7004
7009
  ...Ne ? { isArchived: !1 } : {}
7005
7010
  })).unwrap().then(() => {
7006
- if (f(Wm({ id: Q, isActive: ae })), Ne) {
7011
+ if (f(zm({ id: Q, isActive: ae })), Ne) {
7007
7012
  const De = String(fe?.name ?? fe?.title ?? "").trim();
7008
7013
  H(De ? `"${De}" is now active.` : "Form is now active."), f(Bt({
7009
7014
  ...W ? { search: W } : {},
@@ -7086,7 +7091,7 @@ function _0({
7086
7091
  ),
7087
7092
  V ? /* @__PURE__ */ m(Ee, { children: [
7088
7093
  d ? null : /* @__PURE__ */ o("div", { className: "ca-search-container", children: /* @__PURE__ */ o(
7089
- hA,
7094
+ gA,
7090
7095
  {
7091
7096
  value: y,
7092
7097
  onChange: be,
@@ -7180,7 +7185,7 @@ const Xc = Yn(null), uo = () => ({
7180
7185
  prefillWorkflowSteps: [],
7181
7186
  prefillFormFields: []
7182
7187
  });
7183
- function L0({ children: e, initialValues: t }) {
7188
+ function E0({ children: e, initialValues: t }) {
7184
7189
  const [n, r] = P(() => ({
7185
7190
  ...uo(),
7186
7191
  ...t,
@@ -7236,12 +7241,12 @@ const ft = [
7236
7241
  title: "Review & Publish",
7237
7242
  description: "Review your configuration and publish."
7238
7243
  }
7239
- ], f1 = [
7244
+ ], m1 = [
7240
7245
  { id: 1, label: "Create Workflow" },
7241
7246
  { id: 2, label: "Status" },
7242
7247
  { id: 3, label: "Workflow Steps" }
7243
7248
  ];
7244
- function E0({
7249
+ function T0({
7245
7250
  title: e,
7246
7251
  description: t,
7247
7252
  icon: n,
@@ -7293,7 +7298,7 @@ function la({
7293
7298
  }) {
7294
7299
  return /* @__PURE__ */ m("section", { className: `ca-settings-card ${y}`.trim(), children: [
7295
7300
  /* @__PURE__ */ o(
7296
- E0,
7301
+ T0,
7297
7302
  {
7298
7303
  title: e,
7299
7304
  description: t,
@@ -7318,7 +7323,7 @@ function Yc({ children: e, hint: t, htmlFor: n, className: r = "" }) {
7318
7323
  t != null ? /* @__PURE__ */ o("span", { className: "ca-field-label__hint", children: t }) : null
7319
7324
  ] });
7320
7325
  }
7321
- function T0({ size: e = 16, color: t = "currentColor", ...n }) {
7326
+ function I0({ size: e = 16, color: t = "currentColor", ...n }) {
7322
7327
  return /* @__PURE__ */ o("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", ...n, children: /* @__PURE__ */ o(
7323
7328
  "path",
7324
7329
  {
@@ -7405,7 +7410,7 @@ function Oe({
7405
7410
  children: T || r
7406
7411
  }
7407
7412
  ),
7408
- /* @__PURE__ */ o("span", { className: "ca-select__chevron", children: s ? null : /* @__PURE__ */ o(T0, { size: 16 }) }),
7413
+ /* @__PURE__ */ o("span", { className: "ca-select__chevron", children: s ? null : /* @__PURE__ */ o(I0, { size: 16 }) }),
7409
7414
  u && typeof document < "u" ? Gn(
7410
7415
  /* @__PURE__ */ m(
7411
7416
  "ul",
@@ -7501,11 +7506,11 @@ function mo({ label: e, hint: t, helperText: n, ...r }) {
7501
7506
  function ho({ label: e, hint: t, ...n }) {
7502
7507
  return /* @__PURE__ */ o(dt, { label: e, hint: t, htmlFor: n.id, children: /* @__PURE__ */ o(Oe, { ...n }) });
7503
7508
  }
7504
- function m1({ label: e, hint: t, maxLength: n, value: r = "", ...a }) {
7509
+ function h1({ label: e, hint: t, maxLength: n, value: r = "", ...a }) {
7505
7510
  const s = t ?? (n != null ? `${String(r).length}/${n}` : void 0);
7506
7511
  return /* @__PURE__ */ o(dt, { label: e, hint: s, htmlFor: a.id, children: /* @__PURE__ */ o(Gc, { value: r, maxLength: n, ...a }) });
7507
7512
  }
7508
- function I0({ size: e = 12, color: t = "currentColor", ...n }) {
7513
+ function R0({ size: e = 12, color: t = "currentColor", ...n }) {
7509
7514
  return /* @__PURE__ */ o("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", ...n, children: /* @__PURE__ */ o(
7510
7515
  "path",
7511
7516
  {
@@ -7516,7 +7521,7 @@ function I0({ size: e = 12, color: t = "currentColor", ...n }) {
7516
7521
  }
7517
7522
  ) });
7518
7523
  }
7519
- function R0({ label: e, onRemove: t, className: n = "", title: r }) {
7524
+ function k0({ label: e, onRemove: t, className: n = "", title: r }) {
7520
7525
  return /* @__PURE__ */ m("span", { className: `ca-tag ${n}`.trim(), title: r, children: [
7521
7526
  e,
7522
7527
  t ? /* @__PURE__ */ o(
@@ -7526,7 +7531,7 @@ function R0({ label: e, onRemove: t, className: n = "", title: r }) {
7526
7531
  className: "ca-tag__remove",
7527
7532
  onClick: t,
7528
7533
  "aria-label": `Remove ${e}`,
7529
- children: /* @__PURE__ */ o(I0, { size: 10 })
7534
+ children: /* @__PURE__ */ o(R0, { size: 10 })
7530
7535
  }
7531
7536
  ) : null
7532
7537
  ] });
@@ -7754,7 +7759,7 @@ function os({
7754
7759
  }
7755
7760
  ),
7756
7761
  T.length > 0 ? /* @__PURE__ */ o("div", { className: "ca-tag-list", children: [...new Set(T)].map((C) => /* @__PURE__ */ o(
7757
- R0,
7762
+ k0,
7758
7763
  {
7759
7764
  label: G.get(String(C)) || String(C),
7760
7765
  title: ne.find((B) => String(B.value) === String(C))?.title,
@@ -7840,7 +7845,7 @@ function ca({
7840
7845
  ] }) : null
7841
7846
  ] });
7842
7847
  }
7843
- const k0 = {
7848
+ const x0 = {
7844
7849
  categoryName: "",
7845
7850
  tatMinutes: "",
7846
7851
  template: "",
@@ -7851,12 +7856,12 @@ const k0 = {
7851
7856
  active: !0,
7852
7857
  roles: [],
7853
7858
  userIds: []
7854
- }, x0 = [
7859
+ }, F0 = [
7855
7860
  { value: "INTERNAL_LOGIN", label: "Internal Login" },
7856
7861
  { value: "PRIVATE_LINK", label: "Private Link" },
7857
7862
  { value: "PUBLIC_LINK", label: "Public Link" }
7858
7863
  ], ls = (e) => String(e?.id ?? e?.code ?? e?.name ?? "");
7859
- function F0(e) {
7864
+ function O0(e) {
7860
7865
  return Array.isArray(e) ? [...new Set(e.map((t) => !t || typeof t != "object" ? t : t.userId ?? t.user_id ?? t.id ?? t.value ?? t.user?.userId ?? t.user?.id).filter((t) => t != null && t !== ""))] : [];
7861
7866
  }
7862
7867
  function cs(e) {
@@ -7866,7 +7871,7 @@ function cs(e) {
7866
7871
  Array.isArray(e?.accesses) ? e.accesses.map((n) => n?.userId ?? n?.user?.id) : null
7867
7872
  ];
7868
7873
  for (const n of t) {
7869
- const r = F0(n);
7874
+ const r = O0(n);
7870
7875
  if (r.length) return r;
7871
7876
  }
7872
7877
  return [];
@@ -7883,7 +7888,7 @@ function Dr(e) {
7883
7888
  function sn(e) {
7884
7889
  return String(e ?? "").toLowerCase().replace(/[^a-z0-9]/g, "");
7885
7890
  }
7886
- function O0(e, t, n) {
7891
+ function D0(e, t, n) {
7887
7892
  const r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), s = (i) => {
7888
7893
  if (i == null || i === "") return;
7889
7894
  if (typeof i != "object") {
@@ -7928,7 +7933,7 @@ function O0(e, t, n) {
7928
7933
  c && r.has(c) && d && a.add(d);
7929
7934
  }), { roleIds: r, roleNames: a };
7930
7935
  }
7931
- function D0(e, t = []) {
7936
+ function M0(e, t = []) {
7932
7937
  const n = e?.createdByUser ?? e?.createdBy ?? e?.creator, r = tt(
7933
7938
  e?.createdByUserId ?? e?.createdById ?? n?.userId ?? n?.id ?? n?.user?.id ?? (typeof n == "number" || /^\d+$/.test(String(n ?? "").trim()) ? n : null)
7934
7939
  );
@@ -7966,13 +7971,13 @@ const go = (e) => {
7966
7971
  userIds: cs(e)
7967
7972
  };
7968
7973
  };
7969
- function M0(e) {
7974
+ function P0(e) {
7970
7975
  return [
7971
7976
  /*UNSELECTED_TEMPLATE_OPTION,*/
7972
7977
  ...e
7973
7978
  ];
7974
7979
  }
7975
- function P0(e, t) {
7980
+ function B0(e, t) {
7976
7981
  const n = [];
7977
7982
  if (e.categoryName && n.push("Please enter a category name."), e.tatMinutes) {
7978
7983
  const r = String(t.tatMinutes ?? "").trim();
@@ -7982,12 +7987,12 @@ function P0(e, t) {
7982
7987
  }
7983
7988
  return e.visibilityType && n.push("Please select a visibility type."), e.roles && n.push("Please select roles for complaint filling."), n.join(" ");
7984
7989
  }
7985
- function B0(e) {
7990
+ function U0(e) {
7986
7991
  return String(e ?? "").replace(/(^|\s)(\S)/g, (t, n, r) => n + r.toUpperCase());
7987
7992
  }
7988
- function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }) {
7993
+ function $0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }) {
7989
7994
  const { state: a, update: s, updateWorkflow: l } = Ys(), [i, c] = P(
7990
- () => a.categoryFormData ?? k0
7995
+ () => a.categoryFormData ?? x0
7991
7996
  ), d = Ce(a.categoryFormData), [p, u] = P({}), f = je(), { id: y } = ie((b) => b.appDetails || {}), { isEdit: g } = ie((b) => b.appDetails || {}), w = ie((b) => b.complaintType || {}), A = ie((b) => b.workflow?.workflowSteps), h = ie((b) => b.appDetails?.details?.currentUser), {
7992
7997
  complaintList: v = [],
7993
7998
  /* saving,*/
@@ -8036,7 +8041,7 @@ function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
8036
8041
  }) : [], G = a.workflow?.stepsLoaded ? Dr(a.workflow.steps) : [
8037
8042
  ...Dr(a.prefillWorkflowSteps),
8038
8043
  ...ne
8039
- ], k = O0(
8044
+ ], k = D0(
8040
8045
  G,
8041
8046
  r,
8042
8047
  n
@@ -8054,7 +8059,7 @@ function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
8054
8059
  sublabel: O,
8055
8060
  title: O ? `Email: ${O}` : ""
8056
8061
  };
8057
- }).filter((b) => b.value !== null && b.value !== void 0 && b.value !== ""), le = g ? D0(T, r) : Gs(h), M = [];
8062
+ }).filter((b) => b.value !== null && b.value !== void 0 && b.value !== ""), le = g ? M0(T, r) : Gs(h), M = [];
8058
8063
  Fa(i.userIds, M);
8059
8064
  const ce = g ? T?.createdByUser ?? T?.createdBy : h;
8060
8065
  if (le && !H.some((b) => tt(b.value) === le)) {
@@ -8172,7 +8177,7 @@ function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
8172
8177
  });
8173
8178
  }, Y = async () => {
8174
8179
  const b = {};
8175
- if (i.categoryName.trim() || (b.categoryName = !0), Gm(i.tatMinutes) || (b.tatMinutes = !0), i.visibilityType || (b.visibilityType = !0), i.roles.length || (b.roles = !0), Object.keys(b).length > 0) {
8180
+ if (i.categoryName.trim() || (b.categoryName = !0), Jm(i.tatMinutes) || (b.tatMinutes = !0), i.visibilityType || (b.visibilityType = !0), i.roles.length || (b.roles = !0), Object.keys(b).length > 0) {
8176
8181
  u(b);
8177
8182
  return;
8178
8183
  }
@@ -8233,14 +8238,14 @@ function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
8233
8238
  onNext: Y
8234
8239
  }
8235
8240
  ),
8236
- N || Object.keys(p).length > 0 ? /* @__PURE__ */ o("div", { className: "ca-validation-toast", role: "alert", children: N || P0(p, i) }) : null,
8241
+ N || Object.keys(p).length > 0 ? /* @__PURE__ */ o("div", { className: "ca-validation-toast", role: "alert", children: N || B0(p, i) }) : null,
8237
8242
  /* @__PURE__ */ m(
8238
8243
  la,
8239
8244
  {
8240
8245
  className: "ca-settings-card--category-type",
8241
8246
  title: e.title,
8242
8247
  description: e.description,
8243
- icon: /* @__PURE__ */ o(n0, { size: 20, "aria-hidden": "true" }),
8248
+ icon: /* @__PURE__ */ o(r0, { size: 20, "aria-hidden": "true" }),
8244
8249
  iconClassName: "ca-settings-card__icon--green",
8245
8250
  headerDividerVariant: "green",
8246
8251
  showNext: !1,
@@ -8250,7 +8255,7 @@ function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
8250
8255
  label: "Select Template (Optional)",
8251
8256
  value: i.template || i.categoryType,
8252
8257
  onChange: B,
8253
- options: M0(ue),
8258
+ options: P0(ue),
8254
8259
  placeholder: "Select Template",
8255
8260
  maxVisible: 3,
8256
8261
  disabled: g,
@@ -8270,7 +8275,7 @@ function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
8270
8275
  className: "ca-step-row__grow",
8271
8276
  inputClassName: p.categoryName ? "ca-control--invalid" : "",
8272
8277
  value: i.categoryName,
8273
- onChange: (b) => J("categoryName", B0(b.target.value)),
8278
+ onChange: (b) => J("categoryName", U0(b.target.value)),
8274
8279
  placeholder: "Enter category name"
8275
8280
  }
8276
8281
  ),
@@ -8314,7 +8319,7 @@ function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
8314
8319
  className: `ca-step-row__grow ${p.visibilityType ? "ca-control--invalid" : ""}`,
8315
8320
  value: i.visibilityType,
8316
8321
  onChange: (b) => J("visibilityType", b.target.value),
8317
- options: x0,
8322
+ options: F0,
8318
8323
  placeholder: "Select visibility type"
8319
8324
  }
8320
8325
  ) }),
@@ -8339,7 +8344,7 @@ function U0({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
8339
8344
  )
8340
8345
  ] });
8341
8346
  }
8342
- function $0({ level: e, onAdd: t, disabled: n = !1 }) {
8347
+ function j0({ level: e, onAdd: t, disabled: n = !1 }) {
8343
8348
  const r = `Level ${e}`;
8344
8349
  return /* @__PURE__ */ m("div", { className: "ca-add-table-card", children: [
8345
8350
  /* @__PURE__ */ m("header", { className: "ca-add-table-card__header", children: [
@@ -8368,7 +8373,7 @@ function $0({ level: e, onAdd: t, disabled: n = !1 }) {
8368
8373
  ] });
8369
8374
  }
8370
8375
  const Oa = ["Yes", "No"], tn = () => /* @__PURE__ */ o("span", { style: { color: "#dc2626" }, "aria-hidden": "true", children: " *" });
8371
- function j0({ name: e, level: t, value: n, initialFormValues: r, setFormValues: a, onChange: s, selected: l = !1, onSelect: i, onDelete: c, subtitle: d, roleList: p = [], noRolesAvailableMessage: u = !1, noUsersAvailableMessage: f = !1, showRoleError: y = !1, showEscalationError: g = !1, userList: w = [], fieldErrors: A = {} }) {
8376
+ function V0({ name: e, level: t, value: n, initialFormValues: r, setFormValues: a, onChange: s, selected: l = !1, onSelect: i, onDelete: c, subtitle: d, roleList: p = [], noRolesAvailableMessage: u = !1, noUsersAvailableMessage: f = !1, showRoleError: y = !1, showEscalationError: g = !1, userList: w = [], fieldErrors: A = {} }) {
8372
8377
  const h = n ?? r ?? {}, v = Array.isArray(h.role) ? h.role : [], _ = Array.isArray(h.users) ? h.users : [], N = h.workflowType === "user" ? "user" : "role", T = p.map((M) => ({
8373
8378
  value: M.id ?? M.roleId ?? M.value,
8374
8379
  label: M.name ?? M.roleName ?? M.label
@@ -8553,7 +8558,7 @@ function ds(e, t = 0) {
8553
8558
  escalation: n(e?.escalateAfterMinutes)
8554
8559
  };
8555
8560
  }
8556
- const V0 = "data:image/svg+xml,%3csvg%20width='31'%20height='57'%20viewBox='0%200%2031%2057'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.50001%200.000227733C0.223869%200.000226605%209.85899e-06%200.224084%208.79418e-06%200.500226C7.72665e-06%200.776369%200.223865%201.00023%200.500009%201.00023L0.50001%200.500227L0.50001%200.000227733ZM15%200.500275L15%201.00028L15%200.500275ZM27%2012.5003L27.5%2012.5003L27%2012.5003ZM26.6464%2056.8527C26.8417%2057.048%2027.1582%2057.048%2027.3535%2056.8527L30.5355%2053.6707C30.7307%2053.4755%2030.7307%2053.1589%2030.5355%2052.9636C30.3402%2052.7683%2030.0236%2052.7683%2029.8284%2052.9636L26.9999%2055.792L24.1715%2052.9636C23.9763%2052.7683%2023.6597%2052.7683%2023.4644%2052.9636C23.2692%2053.1589%2023.2692%2053.4754%2023.4644%2053.6707L26.6464%2056.8527ZM0.50001%200.500227L0.500009%201.00023L15%201.00028L15%200.500275L15%200.000275583L0.50001%200.000227733L0.50001%200.500227ZM27%2012.5003L26.5%2012.5003L26.4999%2056.4991L26.9999%2056.4991L27.4999%2056.4991L27.5%2012.5003L27%2012.5003ZM15%200.500275L15%201.00028C21.3513%201.0003%2026.5%206.14903%2026.5%2012.5003L27%2012.5003L27.5%2012.5003C27.5%205.59674%2021.9036%200.000298399%2015%200.000275583L15%200.500275Z'%20fill='%2300BF87'/%3e%3c/svg%3e", q0 = "data:image/svg+xml,%3csvg%20width='28'%20height='61'%20viewBox='0%200%2028%2061'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.0053%2057.2042C27.2006%2057.009%2027.2006%2056.6924%2027.0053%2056.4971L23.8233%2053.3152C23.6281%2053.1199%2023.3115%2053.1199%2023.1162%2053.3152C22.921%2053.5104%2022.921%2053.827%2023.1162%2054.0223L25.9447%2056.8507L23.1163%2059.6791C22.921%2059.8744%2022.921%2060.191%2023.1163%2060.3862C23.3115%2060.5815%2023.6281%2060.5815%2023.8234%2060.3862L27.0053%2057.2042ZM12.5001%2056.8508L12.5001%2057.3508V57.3508L12.5001%2056.8508ZM0.500014%2044.8508L1.33317e-05%2044.8508V44.8508L0.500014%2044.8508ZM26.6518%2056.8507L26.6518%2056.3507L12.5001%2056.3508L12.5001%2056.8508L12.5001%2057.3508L26.6518%2057.3507L26.6518%2056.8507ZM0.500014%2044.8508L1.00001%2044.8508L1.00001%20-0.000388027L0.50001%20-0.000388722L9.54624e-06%20-0.000389416L1.33317e-05%2044.8508L0.500014%2044.8508ZM12.5001%2056.8508L12.5001%2056.3508C6.14877%2056.3508%201.00001%2051.2021%201.00001%2044.8508L0.500014%2044.8508L1.33317e-05%2044.8508C1.43871e-05%2051.7544%205.59649%2057.3508%2012.5001%2057.3508L12.5001%2056.8508Z'%20fill='%23FF9E32'/%3e%3c/svg%3e", W0 = "data:image/svg+xml,%3csvg%20width='57'%20height='31'%20viewBox='0%200%2057%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M56.9989%200.500133C56.9989%200.223991%2056.7751%200.000131942%2056.4989%200.00013087C56.2228%200.000129795%2055.9989%200.223987%2055.9989%200.500131L56.4989%200.500132L56.9989%200.500133ZM56.4989%2015.0002L55.9989%2015.0002L56.4989%2015.0002ZM44.4989%2027.0001L44.4988%2027.5001L44.4989%2027.0001ZM0.146456%2026.6465C-0.0488074%2026.8418%20-0.0488086%2027.1584%200.146455%2027.3536L3.32843%2030.5356C3.52369%2030.7309%203.84027%2030.7309%204.03554%2030.5356C4.2308%2030.3403%204.2308%2030.0238%204.03554%2029.8285L1.20712%2027.0001L4.03555%2024.1716C4.23081%2023.9764%204.23081%2023.6598%204.03555%2023.4645C3.84029%2023.2693%203.5237%2023.2693%203.32844%2023.4645L0.146456%2026.6465ZM56.4989%200.500132L55.9989%200.500131L55.9989%2015.0002L56.4989%2015.0002L56.9989%2015.0002L56.9989%200.500133L56.4989%200.500132ZM44.4989%2027.0001L44.4989%2026.5001L0.500009%2026.5001L0.500008%2027.0001L0.500007%2027.5001L44.4988%2027.5001L44.4989%2027.0001ZM56.4989%2015.0002L55.9989%2015.0002C55.9988%2021.3514%2050.8501%2026.5001%2044.4989%2026.5001L44.4989%2027.0001L44.4988%2027.5001C51.4024%2027.5001%2056.9988%2021.9037%2056.9989%2015.0002L56.4989%2015.0002Z'%20fill='%2300BF87'/%3e%3c/svg%3e", z0 = "data:image/svg+xml,%3csvg%20width='61'%20height='28'%20viewBox='0%200%2061%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32848%2027.0049C3.52374%2027.2002%203.84032%2027.2002%204.03559%2027.0049L7.21755%2023.8229C7.41281%2023.6277%207.4128%2023.3111%207.21754%2023.1158C7.02228%2022.9206%206.70569%2022.9206%206.51043%2023.1158L3.68203%2025.9443L0.85358%2023.1159C0.658316%2022.9206%200.341733%2022.9206%200.146472%2023.1159C-0.0487878%2023.3111%20-0.0487864%2023.6277%200.146478%2023.823L3.32848%2027.0049ZM3.68194%2012.4997L3.18194%2012.4997V12.4997L3.68194%2012.4997ZM15.6819%200.499617L15.6819%20-0.000382774V-0.000382774L15.6819%200.499617ZM3.68203%2026.6514L4.18203%2026.6514L4.18194%2012.4997L3.68194%2012.4997L3.18194%2012.4997L3.18203%2026.6514L3.68203%2026.6514ZM15.6819%200.499617L15.6819%200.999618L60.5331%200.999616L60.5331%200.499615L60.5331%20-0.000385315L15.6819%20-0.000382774L15.6819%200.499617ZM3.68194%2012.4997L4.18194%2012.4997C4.1819%206.14838%209.33063%200.999618%2015.6819%200.999618L15.6819%200.499617L15.6819%20-0.000382774C8.77834%20-0.00038191%203.18189%205.5961%203.18194%2012.4997L3.68194%2012.4997Z'%20fill='%23FF9E32'/%3e%3c/svg%3e", Js = (e, t, n = {}) => ({
8561
+ const q0 = "data:image/svg+xml,%3csvg%20width='31'%20height='57'%20viewBox='0%200%2031%2057'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.50001%200.000227733C0.223869%200.000226605%209.85899e-06%200.224084%208.79418e-06%200.500226C7.72665e-06%200.776369%200.223865%201.00023%200.500009%201.00023L0.50001%200.500227L0.50001%200.000227733ZM15%200.500275L15%201.00028L15%200.500275ZM27%2012.5003L27.5%2012.5003L27%2012.5003ZM26.6464%2056.8527C26.8417%2057.048%2027.1582%2057.048%2027.3535%2056.8527L30.5355%2053.6707C30.7307%2053.4755%2030.7307%2053.1589%2030.5355%2052.9636C30.3402%2052.7683%2030.0236%2052.7683%2029.8284%2052.9636L26.9999%2055.792L24.1715%2052.9636C23.9763%2052.7683%2023.6597%2052.7683%2023.4644%2052.9636C23.2692%2053.1589%2023.2692%2053.4754%2023.4644%2053.6707L26.6464%2056.8527ZM0.50001%200.500227L0.500009%201.00023L15%201.00028L15%200.500275L15%200.000275583L0.50001%200.000227733L0.50001%200.500227ZM27%2012.5003L26.5%2012.5003L26.4999%2056.4991L26.9999%2056.4991L27.4999%2056.4991L27.5%2012.5003L27%2012.5003ZM15%200.500275L15%201.00028C21.3513%201.0003%2026.5%206.14903%2026.5%2012.5003L27%2012.5003L27.5%2012.5003C27.5%205.59674%2021.9036%200.000298399%2015%200.000275583L15%200.500275Z'%20fill='%2300BF87'/%3e%3c/svg%3e", W0 = "data:image/svg+xml,%3csvg%20width='28'%20height='61'%20viewBox='0%200%2028%2061'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.0053%2057.2042C27.2006%2057.009%2027.2006%2056.6924%2027.0053%2056.4971L23.8233%2053.3152C23.6281%2053.1199%2023.3115%2053.1199%2023.1162%2053.3152C22.921%2053.5104%2022.921%2053.827%2023.1162%2054.0223L25.9447%2056.8507L23.1163%2059.6791C22.921%2059.8744%2022.921%2060.191%2023.1163%2060.3862C23.3115%2060.5815%2023.6281%2060.5815%2023.8234%2060.3862L27.0053%2057.2042ZM12.5001%2056.8508L12.5001%2057.3508V57.3508L12.5001%2056.8508ZM0.500014%2044.8508L1.33317e-05%2044.8508V44.8508L0.500014%2044.8508ZM26.6518%2056.8507L26.6518%2056.3507L12.5001%2056.3508L12.5001%2056.8508L12.5001%2057.3508L26.6518%2057.3507L26.6518%2056.8507ZM0.500014%2044.8508L1.00001%2044.8508L1.00001%20-0.000388027L0.50001%20-0.000388722L9.54624e-06%20-0.000389416L1.33317e-05%2044.8508L0.500014%2044.8508ZM12.5001%2056.8508L12.5001%2056.3508C6.14877%2056.3508%201.00001%2051.2021%201.00001%2044.8508L0.500014%2044.8508L1.33317e-05%2044.8508C1.43871e-05%2051.7544%205.59649%2057.3508%2012.5001%2057.3508L12.5001%2056.8508Z'%20fill='%23FF9E32'/%3e%3c/svg%3e", z0 = "data:image/svg+xml,%3csvg%20width='57'%20height='31'%20viewBox='0%200%2057%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M56.9989%200.500133C56.9989%200.223991%2056.7751%200.000131942%2056.4989%200.00013087C56.2228%200.000129795%2055.9989%200.223987%2055.9989%200.500131L56.4989%200.500132L56.9989%200.500133ZM56.4989%2015.0002L55.9989%2015.0002L56.4989%2015.0002ZM44.4989%2027.0001L44.4988%2027.5001L44.4989%2027.0001ZM0.146456%2026.6465C-0.0488074%2026.8418%20-0.0488086%2027.1584%200.146455%2027.3536L3.32843%2030.5356C3.52369%2030.7309%203.84027%2030.7309%204.03554%2030.5356C4.2308%2030.3403%204.2308%2030.0238%204.03554%2029.8285L1.20712%2027.0001L4.03555%2024.1716C4.23081%2023.9764%204.23081%2023.6598%204.03555%2023.4645C3.84029%2023.2693%203.5237%2023.2693%203.32844%2023.4645L0.146456%2026.6465ZM56.4989%200.500132L55.9989%200.500131L55.9989%2015.0002L56.4989%2015.0002L56.9989%2015.0002L56.9989%200.500133L56.4989%200.500132ZM44.4989%2027.0001L44.4989%2026.5001L0.500009%2026.5001L0.500008%2027.0001L0.500007%2027.5001L44.4988%2027.5001L44.4989%2027.0001ZM56.4989%2015.0002L55.9989%2015.0002C55.9988%2021.3514%2050.8501%2026.5001%2044.4989%2026.5001L44.4989%2027.0001L44.4988%2027.5001C51.4024%2027.5001%2056.9988%2021.9037%2056.9989%2015.0002L56.4989%2015.0002Z'%20fill='%2300BF87'/%3e%3c/svg%3e", H0 = "data:image/svg+xml,%3csvg%20width='61'%20height='28'%20viewBox='0%200%2061%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32848%2027.0049C3.52374%2027.2002%203.84032%2027.2002%204.03559%2027.0049L7.21755%2023.8229C7.41281%2023.6277%207.4128%2023.3111%207.21754%2023.1158C7.02228%2022.9206%206.70569%2022.9206%206.51043%2023.1158L3.68203%2025.9443L0.85358%2023.1159C0.658316%2022.9206%200.341733%2022.9206%200.146472%2023.1159C-0.0487878%2023.3111%20-0.0487864%2023.6277%200.146478%2023.823L3.32848%2027.0049ZM3.68194%2012.4997L3.18194%2012.4997V12.4997L3.68194%2012.4997ZM15.6819%200.499617L15.6819%20-0.000382774V-0.000382774L15.6819%200.499617ZM3.68203%2026.6514L4.18203%2026.6514L4.18194%2012.4997L3.68194%2012.4997L3.18194%2012.4997L3.18203%2026.6514L3.68203%2026.6514ZM15.6819%200.499617L15.6819%200.999618L60.5331%200.999616L60.5331%200.499615L60.5331%20-0.000385315L15.6819%20-0.000382774L15.6819%200.499617ZM3.68194%2012.4997L4.18194%2012.4997C4.1819%206.14838%209.33063%200.999618%2015.6819%200.999618L15.6819%200.499617L15.6819%20-0.000382774C8.77834%20-0.00038191%203.18189%205.5961%203.18194%2012.4997L3.68194%2012.4997Z'%20fill='%23FF9E32'/%3e%3c/svg%3e", Js = (e, t, n = {}) => ({
8557
8562
  id: e,
8558
8563
  name: t,
8559
8564
  role: Array.isArray(n.role) ? n.role : n.roleId !== void 0 && n.roleId !== null ? [n.roleId] : [],
@@ -8568,7 +8573,7 @@ const V0 = "data:image/svg+xml,%3csvg%20width='31'%20height='57'%20viewBox='0%20
8568
8573
  function Da(e) {
8569
8574
  return e === !0 || e === "Yes" || e === "true" || e === 1 || e === "1" ? "Yes" : e === !1 || e === "No" || e === "false" || e === 0 || e === "0" ? "No" : e ?? "";
8570
8575
  }
8571
- function H0(e, t) {
8576
+ function K0(e, t) {
8572
8577
  const n = [e.role, e.roleIds, e.roles].filter(Array.isArray), a = (n.find((i) => i.length) ?? n[0] ?? []).map((i) => i && typeof i == "object" ? i.id ?? i.roleId : i).filter((i) => i != null), s = (Array.isArray(e.userAssignments) ? e.userAssignments : Array.isArray(e.users) ? e.users : []).map((i) => i && typeof i == "object" ? i.userId ?? i.id : i).filter((i) => i != null), l = a.length > 0 ? "role" : s.length > 0 || /user/i.test(String(e.workflowType ?? "")) ? "user" : "role";
8573
8578
  return Js(
8574
8579
  e.levelNo ?? t + 1,
@@ -8585,9 +8590,9 @@ function H0(e, t) {
8585
8590
  );
8586
8591
  }
8587
8592
  function Ao(e = []) {
8588
- return (Array.isArray(e) ? e : []).map(H0);
8593
+ return (Array.isArray(e) ? e : []).map(K0);
8589
8594
  }
8590
- function K0(e, t, n) {
8595
+ function Q0(e, t, n) {
8591
8596
  const r = new Set(t ? t.split(",") : []), a = new Set(n ? n.split(",") : []);
8592
8597
  let s = !1;
8593
8598
  const l = e.map((i) => {
@@ -8604,19 +8609,19 @@ const Ma = [
8604
8609
  ];
8605
8610
  function bo({ accent: e }) {
8606
8611
  return /* @__PURE__ */ m("div", { className: `ca-escalation-connector ca-escalation-connector--desktop ca-escalation-connector--${e}`, "aria-hidden": "true", children: [
8607
- /* @__PURE__ */ o("img", { src: V0, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--first" }),
8612
+ /* @__PURE__ */ o("img", { src: q0, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--first" }),
8608
8613
  /* @__PURE__ */ o("span", { children: "Escalates to" }),
8609
- /* @__PURE__ */ o("img", { src: q0, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--second" })
8614
+ /* @__PURE__ */ o("img", { src: W0, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--second" })
8610
8615
  ] });
8611
8616
  }
8612
8617
  function vo({ accent: e }) {
8613
8618
  return /* @__PURE__ */ m("div", { className: `ca-escalation-connector ca-escalation-connector--mobile ca-escalation-connector--${e}`, "aria-hidden": "true", children: [
8614
- /* @__PURE__ */ o("img", { src: W0, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--first" }),
8619
+ /* @__PURE__ */ o("img", { src: z0, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--first" }),
8615
8620
  /* @__PURE__ */ o("span", { children: "Escalates to" }),
8616
- /* @__PURE__ */ o("img", { src: z0, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--second" })
8621
+ /* @__PURE__ */ o("img", { src: H0, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--second" })
8617
8622
  ] });
8618
8623
  }
8619
- function Q0({
8624
+ function X0({
8620
8625
  id: e,
8621
8626
  selectedTableId: t,
8622
8627
  onSelect: n,
@@ -8663,7 +8668,7 @@ function Q0({
8663
8668
  }
8664
8669
  if (!$ && (W.tables !== L || W.blockedRoleKey !== _ || W.blockedUserKey !== N)) {
8665
8670
  ne({ tables: L, blockedRoleKey: _, blockedUserKey: N });
8666
- const D = K0(L, _, N);
8671
+ const D = Q0(L, _, N);
8667
8672
  D !== L && j(D);
8668
8673
  }
8669
8674
  se(() => {
@@ -8754,7 +8759,7 @@ function Q0({
8754
8759
  }
8755
8760
  }
8756
8761
  f?.("");
8757
- const K = L.reduce((fe, Ne) => Math.max(fe, Number(Ne.id) || 0), 0) + 1, de = L.length + 1, ve = L[L.length - 1], ae = ve != null && B.current.has(ve.id) && Ge(ve.escalateAfterMinutes) > 0 ? L : eh(L);
8762
+ const K = L.reduce((fe, Ne) => Math.max(fe, Number(Ne.id) || 0), 0) + 1, de = L.length + 1, ve = L[L.length - 1], ae = ve != null && B.current.has(ve.id) && Ge(ve.escalateAfterMinutes) > 0 ? L : th(L);
8758
8763
  B.current.delete(K), R([
8759
8764
  ...ae,
8760
8765
  Js(K, D || `Level ${de}`)
@@ -8771,7 +8776,7 @@ function Q0({
8771
8776
  /* @__PURE__ */ o("div", { className: "ca-table-card-grid", "aria-label": "Escalation levels", ref: he, children: /* @__PURE__ */ m("div", { className: "ca-table-card-grid__track", children: [
8772
8777
  L.map((D, Z) => /* @__PURE__ */ m(ws.Fragment, { children: [
8773
8778
  /* @__PURE__ */ o(
8774
- j0,
8779
+ V0,
8775
8780
  {
8776
8781
  name: D.name,
8777
8782
  roleList: re,
@@ -8801,7 +8806,7 @@ function Q0({
8801
8806
  /* @__PURE__ */ o(vo, { accent: L.length === 1 ? "green" : L.length === 2 ? "orange" : "purple" })
8802
8807
  ] }) : null,
8803
8808
  /* @__PURE__ */ o(
8804
- $0,
8809
+ j0,
8805
8810
  {
8806
8811
  level: L.length + 1,
8807
8812
  onAdd: Se,
@@ -8821,7 +8826,7 @@ function Q0({
8821
8826
  )
8822
8827
  ] });
8823
8828
  }
8824
- function X0({ totalMinutes: e = 0, usedMinutes: t = 0 }) {
8829
+ function Y0({ totalMinutes: e = 0, usedMinutes: t = 0 }) {
8825
8830
  const n = Ge(e), r = Ge(t), a = Math.max(0, n - r), s = Sn(a) || "0m", l = n > 0 ? Math.min(100, r / n * 100) : 0;
8826
8831
  return /* @__PURE__ */ m("div", { className: "ca-tat-progress", "aria-label": `TAT minutes, ${s} left`, children: [
8827
8832
  /* @__PURE__ */ m("div", { className: "ca-tat-progress__row", children: [
@@ -8844,7 +8849,7 @@ function So(e) {
8844
8849
  function Zc(e) {
8845
8850
  return String(e ?? "").toLowerCase().replace(/[^a-z0-9]/g, "");
8846
8851
  }
8847
- function Y0(e) {
8852
+ function G0(e) {
8848
8853
  return [
8849
8854
  e?.roleId,
8850
8855
  e?.role_id,
@@ -8855,7 +8860,7 @@ function Y0(e) {
8855
8860
  e?.userRoles
8856
8861
  ].flatMap((n) => Array.isArray(n) ? n : [n]).flatMap((n) => [So(n), So(n?.role)]).filter(Boolean);
8857
8862
  }
8858
- function G0(e) {
8863
+ function J0(e) {
8859
8864
  const t = [
8860
8865
  e?.role,
8861
8866
  e?.roles,
@@ -8872,7 +8877,7 @@ function Co(e) {
8872
8877
  const t = e?.id ?? e?.userId ?? e?.user_id ?? e?.value;
8873
8878
  return t == null || t === "" ? null : String(t);
8874
8879
  }
8875
- function J0({
8880
+ function Z0({
8876
8881
  onNext: e,
8877
8882
  stepMeta: t,
8878
8883
  stepperProps: n,
@@ -8897,7 +8902,7 @@ function J0({
8897
8902
  const F = new Set(
8898
8903
  a.filter((O) => b.has(String(O.id ?? O.roleId ?? O.value))).map((O) => Zc(O.name ?? O.roleName ?? O.label)).filter(Boolean)
8899
8904
  );
8900
- return s.filter((O) => !Y0(O).some((V) => b.has(V)) && !G0(O).some((V) => F.has(V)));
8905
+ return s.filter((O) => !G0(O).some((V) => b.has(V)) && !J0(O).some((V) => F.has(V)));
8901
8906
  }, [w, a, s]), _ = s.length > 0 && w.length > 0 && v.length === 0, N = oe(() => {
8902
8907
  if (v === s) return [];
8903
8908
  const b = new Set(v.map(Co).filter(Boolean));
@@ -8915,7 +8920,7 @@ function J0({
8915
8920
  }, [M, p?.tatMinutes, f, u]);
8916
8921
  const ue = oe(() => {
8917
8922
  const b = Array.isArray(T?.tables) ? T.tables : [];
8918
- return Zm(b);
8923
+ return eh(b);
8919
8924
  }, [T]), he = r ?? c.selectedTableCard ?? null, C = Array.isArray(T?.tables) && T.tables.length ? T.tables.map((b, F) => `L${F + 1}`).join(" > ") : "", B = (b) => {
8920
8925
  M(
8921
8926
  Tr({
@@ -8928,7 +8933,7 @@ function J0({
8928
8933
  const O = F?.response?.data ?? F?.payload ?? F, V = [...new Set(
8929
8934
  Array.isArray(O?.errors) ? O.errors.map((U) => U?.message).filter(Boolean) : []
8930
8935
  )], re = (V.length ? V.join(" ") : null) ?? O?.message ?? O?.error ?? F?.message ?? "Failed to update workflow steps", R = String(re).replace(/roleIds must contain at least 1 elements?/gi, "Please select at least one role or user in every level.").replace(/userAssignments must contain at least 1 elements?/gi, "Please select at least one role or user in every level.");
8931
- j(Jm(R));
8936
+ j(Zm(R));
8932
8937
  }
8933
8938
  })
8934
8939
  );
@@ -8987,13 +8992,13 @@ function J0({
8987
8992
  {
8988
8993
  title: t.title,
8989
8994
  description: C,
8990
- icon: /* @__PURE__ */ o(v0, { size: 20, "aria-hidden": "true" }),
8995
+ icon: /* @__PURE__ */ o(w0, { size: 20, "aria-hidden": "true" }),
8991
8996
  iconClassName: "ca-settings-card__icon--green",
8992
8997
  headerDividerVariant: "green",
8993
8998
  showNext: !1,
8994
- headerExtra: /* @__PURE__ */ o(X0, { totalMinutes: ce, usedMinutes: ue }),
8999
+ headerExtra: /* @__PURE__ */ o(Y0, { totalMinutes: ce, usedMinutes: ue }),
8995
9000
  children: /* @__PURE__ */ o("div", { className: "ca-workflow__main", children: /* @__PURE__ */ o(
8996
- Q0,
9001
+ X0,
8997
9002
  {
8998
9003
  id: d,
8999
9004
  selectedTableId: he?.id,
@@ -9019,7 +9024,7 @@ function J0({
9019
9024
  )
9020
9025
  ] });
9021
9026
  }
9022
- function Z0({ onAdd: e, disabled: t = !1 }) {
9027
+ function ey({ onAdd: e, disabled: t = !1 }) {
9023
9028
  return /* @__PURE__ */ o(
9024
9029
  "button",
9025
9030
  {
@@ -9050,7 +9055,7 @@ function St() {
9050
9055
  }
9051
9056
  };
9052
9057
  }
9053
- function ey({ size: e = 16, color: t = "#9CA3AF", ...n }) {
9058
+ function ty({ size: e = 16, color: t = "#9CA3AF", ...n }) {
9054
9059
  return /* @__PURE__ */ m("svg", { width: e, height: e, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", ...n, children: [
9055
9060
  /* @__PURE__ */ o("circle", { cx: "5", cy: "4", r: "1.2", fill: t }),
9056
9061
  /* @__PURE__ */ o("circle", { cx: "11", cy: "4", r: "1.2", fill: t }),
@@ -9077,11 +9082,11 @@ function _o(e) {
9077
9082
  order: Number(e.order) || 1
9078
9083
  });
9079
9084
  }
9080
- function ty(e) {
9085
+ function ny(e) {
9081
9086
  return String(e ?? "").replace(/(^|\s)(\S)/g, (t, n, r) => n + r.toUpperCase());
9082
9087
  }
9083
- const ny = "#9CA3AF";
9084
- function ry({
9088
+ const ry = "#9CA3AF";
9089
+ function ay({
9085
9090
  field: e,
9086
9091
  fieldOptions: t = [],
9087
9092
  fieldTypeOptions: n = [],
@@ -9137,7 +9142,7 @@ function ry({
9137
9142
  }
9138
9143
  }
9139
9144
  if (e.options?.includes(R)) return;
9140
- const U = pe(e) ? { ...e.optionColors || {}, [R]: e.optionColors?.[R] || ny } : e.optionColors;
9145
+ const U = pe(e) ? { ...e.optionColors || {}, [R]: e.optionColors?.[R] || ry } : e.optionColors;
9141
9146
  Y({
9142
9147
  options: pe(e) ? un([...e.options || [], R]) : [...e.options || [], R],
9143
9148
  ...pe(e) ? { optionColors: U } : {}
@@ -9208,7 +9213,7 @@ function ry({
9208
9213
  R.dataTransfer.setData("text/plain", String(e.id)), R.dataTransfer.effectAllowed = "move", d?.();
9209
9214
  },
9210
9215
  onDragEnd: () => p?.(),
9211
- children: /* @__PURE__ */ o(ey, { size: 15, color: "currentColor" })
9216
+ children: /* @__PURE__ */ o(ty, { size: 15, color: "currentColor" })
9212
9217
  }
9213
9218
  ),
9214
9219
  /* @__PURE__ */ m("div", { className: "ca-form-card__actions", children: [
@@ -9246,7 +9251,7 @@ function ry({
9246
9251
  placeholder: "Enter field label",
9247
9252
  disabled: M,
9248
9253
  className: J,
9249
- onChange: (R) => Y({ fieldLabel: ty(R.target.value) })
9254
+ onChange: (R) => Y({ fieldLabel: ny(R.target.value) })
9250
9255
  }
9251
9256
  ) }),
9252
9257
  /* @__PURE__ */ o("div", { className: "ca-form-card__row", children: M ? /* @__PURE__ */ o("span", { className: "ca-form-card__static", children: e.fieldType || "—" }) : /* @__PURE__ */ o(
@@ -9366,15 +9371,15 @@ function Ba({ option: e, onDelete: t, locked: n = !1 }) {
9366
9371
  "aria-label": `Delete ${e}`,
9367
9372
  title: `Delete ${e}`,
9368
9373
  onClick: () => t(e),
9369
- children: /* @__PURE__ */ o(m0, { size: 14, strokeWidth: 1.5, color: "currentColor", "aria-hidden": "true" })
9374
+ children: /* @__PURE__ */ o(h0, { size: 14, strokeWidth: 1.5, color: "currentColor", "aria-hidden": "true" })
9370
9375
  }
9371
9376
  ) });
9372
9377
  }
9373
- function ay(e) {
9378
+ function sy(e) {
9374
9379
  const t = String(e || "").trim();
9375
9380
  return /^#[0-9A-Fa-f]{6}$/.test(t) ? t.toUpperCase() : /^#[0-9A-Fa-f]{3}$/.test(t) ? `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`.toUpperCase() : "#000000";
9376
9381
  }
9377
- function sy({ formFields: e = [], selectedField: t = null, onChange: n }) {
9382
+ function iy({ formFields: e = [], selectedField: t = null, onChange: n }) {
9378
9383
  const r = t, { fieldLabel: a } = St(), s = (N) => pe(r) ? sa(N) : N, l = pe(r) ? r : null, i = oe(() => {
9379
9384
  const N = String(r?.dependsOn || "").trim();
9380
9385
  if (!N) return null;
@@ -9403,7 +9408,7 @@ function sy({ formFields: e = [], selectedField: t = null, onChange: n }) {
9403
9408
  parentMappings: I,
9404
9409
  ...pe(L) ? { optionColors: T } : {}
9405
9410
  } : L));
9406
- }, w = r && a(r) || "Select field", A = qg(r, d), h = pe(r) ? un(r?.options || []) : r?.options || [], v = (N, T) => /* @__PURE__ */ o("div", { className: "field-options-panel__table-wrap", children: /* @__PURE__ */ m("table", { className: "field-options-panel__table", children: [
9411
+ }, w = r && a(r) || "Select field", A = Wg(r, d), h = pe(r) ? un(r?.options || []) : r?.options || [], v = (N, T) => /* @__PURE__ */ o("div", { className: "field-options-panel__table-wrap", children: /* @__PURE__ */ m("table", { className: "field-options-panel__table", children: [
9407
9412
  /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ m("tr", { children: [
9408
9413
  N.map((I) => /* @__PURE__ */ o("th", { scope: "col", children: I }, I)),
9409
9414
  /* @__PURE__ */ o("th", { scope: "col", "aria-label": "Delete" })
@@ -9439,7 +9444,7 @@ function sy({ formFields: e = [], selectedField: t = null, onChange: n }) {
9439
9444
  ) : /* @__PURE__ */ o("p", { className: "field-options-panel__empty", children: "No options added." }) : l ? _ = h.length ? v(
9440
9445
  [pe(l) ? "Status" : "Option", "Colors"],
9441
9446
  h.map((N) => {
9442
- const T = ay(l.optionColors?.[N]);
9447
+ const T = sy(l.optionColors?.[N]);
9443
9448
  return /* @__PURE__ */ m("tr", { children: [
9444
9449
  /* @__PURE__ */ o("td", { children: s(N) }),
9445
9450
  /* @__PURE__ */ o("td", { children: /* @__PURE__ */ m("div", { className: "field-options-panel__color", children: [
@@ -9473,7 +9478,7 @@ function sy({ formFields: e = [], selectedField: t = null, onChange: n }) {
9473
9478
  ] }, N);
9474
9479
  })
9475
9480
  ) : /* @__PURE__ */ o("p", { className: "field-options-panel__empty", children: "No options added." }) : h.length && (_ = v(
9476
- [Vg(r)],
9481
+ [qg(r)],
9477
9482
  h.map((N) => /* @__PURE__ */ m("tr", { children: [
9478
9483
  /* @__PURE__ */ o("td", { children: s(N) }),
9479
9484
  /* @__PURE__ */ o(
@@ -9516,7 +9521,7 @@ function sy({ formFields: e = [], selectedField: t = null, onChange: n }) {
9516
9521
  }
9517
9522
  );
9518
9523
  }
9519
- function iy(e, t = []) {
9524
+ function oy(e, t = []) {
9520
9525
  const n = /* @__PURE__ */ new Set(), r = [];
9521
9526
  return t.forEach((a) => {
9522
9527
  if (String(a.id) === String(e?.id) || pe(a)) return;
@@ -9526,8 +9531,8 @@ function iy(e, t = []) {
9526
9531
  n.has(l) || !(a?.options || []).some((c) => String(c || "").trim()) || (n.add(l), r.push(s));
9527
9532
  }), r;
9528
9533
  }
9529
- const oy = ["Actions", "Field Label", "Field Type", "Required", "Field Access", "Hide for", "DependsOn", "Options"];
9530
- function ly(e, t) {
9534
+ const ly = ["Actions", "Field Label", "Field Type", "Required", "Field Access", "Hide for", "DependsOn", "Options"];
9535
+ function cy(e, t) {
9531
9536
  return {
9532
9537
  ...e,
9533
9538
  id: e.id ?? `${Date.now()}-${t}`,
@@ -9546,10 +9551,10 @@ function ly(e, t) {
9546
9551
  };
9547
9552
  }
9548
9553
  function nn(e = []) {
9549
- const t = e.map(ly);
9554
+ const t = e.map(cy);
9550
9555
  return t.map((n) => Kr(n, t));
9551
9556
  }
9552
- function cy({
9557
+ function dy({
9553
9558
  initialFields: e,
9554
9559
  onChange: t,
9555
9560
  addExternalFieldRef: n,
@@ -9679,13 +9684,13 @@ function cy({
9679
9684
  ce || ue || h ? /* @__PURE__ */ o("div", { className: "ca-validation-toast", role: "alert", children: ce || ue || h }) : null,
9680
9685
  /* @__PURE__ */ m("div", { className: "ca-form-card-grid__container ", children: [
9681
9686
  /* @__PURE__ */ m("div", { className: "ca-form-card-grid", children: [
9682
- /* @__PURE__ */ o("div", { className: "ca-form-card-grid__labels", children: oy.map((C) => /* @__PURE__ */ o("div", { className: "ca-form-card-grid__label", children: C }, C)) }),
9687
+ /* @__PURE__ */ o("div", { className: "ca-form-card-grid__labels", children: ly.map((C) => /* @__PURE__ */ o("div", { className: "ca-form-card-grid__label", children: C }, C)) }),
9683
9688
  /* @__PURE__ */ m("div", { className: "ca-form-card-grid__cards", ref: N, children: [
9684
9689
  d.map((C) => /* @__PURE__ */ o(
9685
- ry,
9690
+ ay,
9686
9691
  {
9687
9692
  field: C,
9688
- fieldOptions: iy(C, d),
9693
+ fieldOptions: oy(C, d),
9689
9694
  fieldTypeOptions: r,
9690
9695
  fieldAccessOptions: a,
9691
9696
  hideForOptions: s,
@@ -9708,16 +9713,16 @@ function cy({
9708
9713
  },
9709
9714
  C.id
9710
9715
  )),
9711
- /* @__PURE__ */ o(Z0, { onAdd: $, disabled: le || M })
9716
+ /* @__PURE__ */ o(ey, { onAdd: $, disabled: le || M })
9712
9717
  ] })
9713
9718
  ] }),
9714
- /* @__PURE__ */ o(sy, { formFields: d, selectedField: he, onChange: L })
9719
+ /* @__PURE__ */ o(iy, { formFields: d, selectedField: he, onChange: L })
9715
9720
  ] })
9716
9721
  ] });
9717
9722
  }
9718
9723
  const Lo = {
9719
9724
  department: zc,
9720
- priorities: JA,
9725
+ priorities: ZA,
9721
9726
  status: hr,
9722
9727
  statuses: hr,
9723
9728
  statusCustom: hr,
@@ -9725,7 +9730,7 @@ const Lo = {
9725
9730
  storeId: lo,
9726
9731
  storeIdCustom: lo
9727
9732
  };
9728
- function dy({ fields: e = [], onAddField: t, disableAdd: n = !1, disableAddHint: r = "Resolve duplicate field first" }) {
9733
+ function uy({ fields: e = [], onAddField: t, disableAdd: n = !1, disableAddHint: r = "Resolve duplicate field first" }) {
9729
9734
  const [a, s] = P(!1), { fieldLabel: l } = St();
9730
9735
  return /* @__PURE__ */ m(
9731
9736
  "aside",
@@ -9820,7 +9825,7 @@ const td = {
9820
9825
  BOTH: "Both",
9821
9826
  USER: "User",
9822
9827
  ADMIN: "Admin"
9823
- }, uy = {
9828
+ }, py = {
9824
9829
  ...Object.fromEntries(
9825
9830
  Object.entries(td).map(([e, t]) => [t, e])
9826
9831
  ),
@@ -9836,7 +9841,7 @@ const td = {
9836
9841
  "Date Time": "DATETIME"
9837
9842
  // Textarea: 'TEXTAREA',
9838
9843
  // TextField: 'TEXT',
9839
- }, py = {
9844
+ }, fy = {
9840
9845
  ...Object.fromEntries(
9841
9846
  Object.entries(nd).map(([e, t]) => [t, e])
9842
9847
  ),
@@ -9850,12 +9855,12 @@ function fn(e) {
9850
9855
  const t = String(e || "").trim().split(/[^A-Za-z0-9]+/).filter(Boolean);
9851
9856
  return t.length ? t[0].toLowerCase() + t.slice(1).map((n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()).join("") : "";
9852
9857
  }
9853
- function fy(e, t) {
9858
+ function my(e, t) {
9854
9859
  const n = fn(e), r = fn(t);
9855
9860
  return n ? r ? n + r.charAt(0).toUpperCase() + r.slice(1) : n : "";
9856
9861
  }
9857
9862
  function Yr(e, t) {
9858
- return pe({ ...e, fieldLabel: t }) ? fn(t) || "status" : $e({ ...e, fieldLabel: t }) ? "storeIdCustom" : fy(t, e.fieldType);
9863
+ return pe({ ...e, fieldLabel: t }) ? fn(t) || "status" : $e({ ...e, fieldLabel: t }) ? "storeIdCustom" : my(t, e.fieldType);
9859
9864
  }
9860
9865
  function Tn(e) {
9861
9866
  const t = e?.data ?? e?.id ?? e;
@@ -9863,7 +9868,7 @@ function Tn(e) {
9863
9868
  const n = String(t).trim();
9864
9869
  return !n || n === "null" || n === "undefined" ? null : n;
9865
9870
  }
9866
- function my(e, t) {
9871
+ function hy(e, t) {
9867
9872
  const [n, r] = P(void 0);
9868
9873
  return ht(() => {
9869
9874
  if (!e || typeof document > "u") return;
@@ -9885,13 +9890,13 @@ function my(e, t) {
9885
9890
  };
9886
9891
  }, [e, t]), n;
9887
9892
  }
9888
- function hy(e) {
9893
+ function gy(e) {
9889
9894
  return e ? typeof e == "string" ? e : e.message || e.error || "" : "";
9890
9895
  }
9891
9896
  function Ua(e) {
9892
9897
  return e ? typeof e.id == "number" || /^\d+$/.test(String(e.id)) : !1;
9893
9898
  }
9894
- function gy(e = []) {
9899
+ function Ay(e = []) {
9895
9900
  const t = pe(e) ? un(e.options || []) : e.options || [];
9896
9901
  if (!t.length) return null;
9897
9902
  const n = e.parentMappings || {}, r = e.optionColors || {}, a = !!e.dependsOn || t.some((s) => n[s]);
@@ -9901,7 +9906,7 @@ function gy(e = []) {
9901
9906
  name: s,
9902
9907
  displayOrder: l + 1,
9903
9908
  isActive: !0,
9904
- isDefault: Pg(s)
9909
+ isDefault: Bg(s)
9905
9910
  };
9906
9911
  return r[s] && (i.color = r[s]), i;
9907
9912
  })
@@ -9912,8 +9917,8 @@ function gy(e = []) {
9912
9917
  })
9913
9918
  } : { values: t };
9914
9919
  }
9915
- function Ay(e, t = [], n = []) {
9916
- const r = String(e.fieldLabel || "").trim(), a = e.originalFieldName != null && r === String(e.originalFieldName).trim(), s = t.find((y) => String(y.fieldLabel || "").trim() === e.dependsOn && e.dependsOn), l = Yr(e, r) || (a ? e.fieldKey : ""), i = s ? Yr(s, s.fieldLabel) || s.fieldKey : "", c = wy(e, n), d = gy(e), p = uy[e.fieldType] ?? String(e.fieldType || "TEXT").toUpperCase(), u = py[e.fieldAccess] ?? (e.fieldAccess ? String(e.fieldAccess).toUpperCase() : "USER"), f = {
9920
+ function yy(e, t = [], n = []) {
9921
+ const r = String(e.fieldLabel || "").trim(), a = e.originalFieldName != null && r === String(e.originalFieldName).trim(), s = t.find((y) => String(y.fieldLabel || "").trim() === e.dependsOn && e.dependsOn), l = Yr(e, r) || (a ? e.fieldKey : ""), i = s ? Yr(s, s.fieldLabel) || s.fieldKey : "", c = Sy(e, n), d = Ay(e), p = py[e.fieldType] ?? String(e.fieldType || "TEXT").toUpperCase(), u = fy[e.fieldAccess] ?? (e.fieldAccess ? String(e.fieldAccess).toUpperCase() : "USER"), f = {
9917
9922
  fieldName: r,
9918
9923
  fieldKey: l,
9919
9924
  fieldType: p,
@@ -9938,15 +9943,15 @@ function Eo(e) {
9938
9943
  order: Number(e.order) || 1
9939
9944
  });
9940
9945
  }
9941
- function yy(e, t) {
9946
+ function by(e, t) {
9942
9947
  return Eo(e) !== Eo(t);
9943
9948
  }
9944
- function by(e = [], t = e, n = []) {
9949
+ function vy(e = [], t = e, n = []) {
9945
9950
  return {
9946
- fields: e.filter((a) => !a.isNew && String(a.fieldLabel || "").trim()).map((a, s) => Ay({ ...a, order: a.order || s + 1 }, t, n))
9951
+ fields: e.filter((a) => !a.isNew && String(a.fieldLabel || "").trim()).map((a, s) => yy({ ...a, order: a.order || s + 1 }, t, n))
9947
9952
  };
9948
9953
  }
9949
- function vy(e) {
9954
+ function wy(e) {
9950
9955
  return Array.isArray(e) ? e : Array.isArray(e?.data) ? e.data : [];
9951
9956
  }
9952
9957
  function Gr(e) {
@@ -9961,7 +9966,7 @@ function To(e, t = []) {
9961
9966
  const a = t.find((s) => String(s.id) === String(r));
9962
9967
  return Gr(a);
9963
9968
  }
9964
- function wy(e, t = []) {
9969
+ function Sy(e, t = []) {
9965
9970
  const n = Array.isArray(e.hideFor) ? e.hideFor : [];
9966
9971
  if (!n.length) return null;
9967
9972
  for (const s of n) {
@@ -9977,15 +9982,15 @@ function rd(e) {
9977
9982
  function Mr(e) {
9978
9983
  return typeof e == "string" ? e : e?.label ?? e?.name ?? e?.value ?? "";
9979
9984
  }
9980
- function Sy(e) {
9985
+ function Cy(e) {
9981
9986
  return !e || typeof e != "object" ? "" : e.dependsOnValue ?? e.parent ?? "";
9982
9987
  }
9983
- function Cy(e, t = []) {
9988
+ function Ny(e, t = []) {
9984
9989
  if (!e) return "";
9985
9990
  const n = t.map(Mr).filter(Boolean), r = n.find((s) => s === e);
9986
9991
  return r || n.find((s) => fn(s) === e || fn(s) === fn(e)) || e;
9987
9992
  }
9988
- function Ny(e) {
9993
+ function _y(e) {
9989
9994
  return e && typeof e == "object" && e.color ? e.color : "";
9990
9995
  }
9991
9996
  function rn(e = [], t = []) {
@@ -10010,12 +10015,12 @@ function rn(e = [], t = []) {
10010
10015
  options: a.map(Mr).filter(Boolean),
10011
10016
  parentMappings: Object.fromEntries(
10012
10017
  a.map((i) => {
10013
- const c = Mr(i), d = Sy(i);
10014
- return !c || !d ? null : [c, Cy(d, s?.options?.values ?? [])];
10018
+ const c = Mr(i), d = Cy(i);
10019
+ return !c || !d ? null : [c, Ny(d, s?.options?.values ?? [])];
10015
10020
  }).filter(Boolean)
10016
10021
  ),
10017
10022
  optionColors: Object.fromEntries(
10018
- a.map((i) => [Mr(i), Ny(i)]).filter(([i, c]) => i && c)
10023
+ a.map((i) => [Mr(i), _y(i)]).filter(([i, c]) => i && c)
10019
10024
  ),
10020
10025
  fieldKey: r.fieldKey,
10021
10026
  originalFieldName: r.fieldName ?? r.fieldLabel ?? "",
@@ -10029,7 +10034,7 @@ function rn(e = [], t = []) {
10029
10034
  function Io(e = []) {
10030
10035
  return Lc(e) ? "At least one field must be required (Status and Office are not counted). Please turn on Required for one field, then click Next." : "Please add at least one field (Status and Office are not counted), then click Next.";
10031
10036
  }
10032
- function _y({ stepMeta: e, stepperProps: t }) {
10037
+ function Ly({ stepMeta: e, stepperProps: t }) {
10033
10038
  const n = je(), { systemId: r } = Ke(), a = ie((z) => z.appDetails?.id), s = Tn(a) ?? Tn(r), { state: l, update: i } = Ys(), { formFields: c, prefillFormFields: d = [] } = l, p = Ce(null), u = ke((z) => i({ formFields: z }), [i]), f = ke(async (z) => {
10034
10039
  const ee = String(z.fieldLabel || "").trim();
10035
10040
  return ee ? {
@@ -10043,7 +10048,7 @@ function _y({ stepMeta: e, stepperProps: t }) {
10043
10048
  complaintTypeId: s,
10044
10049
  fieldId: z.id
10045
10050
  })).unwrap(), !0), [s, n]), g = ie((z) => z.complaintAppComplaint?.formFields?.data), w = ie((z) => z.complaintAppComplaint?.formFields?.isLoading), A = ie((z) => z.complaintAppComplaint?.formFields?.error), h = ie((z) => z.workflow?.workflowSteps), v = oe(
10046
- () => vy(h),
10051
+ () => wy(h),
10047
10052
  [h]
10048
10053
  ), _ = Ce(v), [N, T] = P(!1);
10049
10054
  se(() => {
@@ -10092,16 +10097,16 @@ function _y({ stepMeta: e, stepperProps: t }) {
10092
10097
  const I = oe(
10093
10098
  () => Ft(rn(g, v)),
10094
10099
  [g, v]
10095
- ), j = Tn(s) == null || N, W = j ? c : I, ne = oe(() => Dg.filter((z) => !W.some((ee) => z.fieldKey && ee.fieldKey === z.fieldKey || pe(z) && pe(ee) || Hr(z) && Hr(ee) || $e(z) && $e(ee))), [W]), G = oe(
10100
+ ), j = Tn(s) == null || N, W = j ? c : I, ne = oe(() => Mg.filter((z) => !W.some((ee) => z.fieldKey && ee.fieldKey === z.fieldKey || pe(z) && pe(ee) || Hr(z) && Hr(ee) || $e(z) && $e(ee))), [W]), G = oe(
10096
10101
  () => Or(W),
10097
10102
  [W]
10098
10103
  ), k = oe(
10099
10104
  () => pn(W),
10100
10105
  [W]
10101
- ), $ = hy(A), H = xg, le = Fg, M = oe(() => {
10106
+ ), $ = gy(A), H = Fg, le = Og, M = oe(() => {
10102
10107
  const z = [...v].sort((ye, Se) => (ye.levelNo ?? 0) - (Se.levelNo ?? 0)).map((ye) => Gr(ye)).filter(Boolean), ee = I.flatMap((ye) => ye.hideFor);
10103
10108
  return rd([...z, ...ee]);
10104
- }, [I, v]), [ce, ue] = P([]), [he, C] = P(!1), [B, J] = P(!1), [Y, b] = P(""), [F, O] = P(""), V = Ce(null), re = my(
10109
+ }, [I, v]), [ce, ue] = P([]), [he, C] = P(!1), [B, J] = P(!1), [Y, b] = P(""), [F, O] = P(""), V = Ce(null), re = hy(
10105
10110
  he || B,
10106
10111
  V
10107
10112
  ), R = ke(async (z, ee = []) => {
@@ -10138,7 +10143,7 @@ function _y({ stepMeta: e, stepperProps: t }) {
10138
10143
  if (!Z.some((ae) => {
10139
10144
  if (!Ua(ae)) return !0;
10140
10145
  const fe = be.get(String(ae.id));
10141
- return !fe || yy(ae, fe);
10146
+ return !fe || by(ae, fe);
10142
10147
  })) {
10143
10148
  ee.length && i({ formFields: Ft(D) }), t.onNext?.();
10144
10149
  return;
@@ -10148,7 +10153,7 @@ function _y({ stepMeta: e, stepperProps: t }) {
10148
10153
  );
10149
10154
  await n(_r({
10150
10155
  complaintTypeId: s,
10151
- data: by(de, de, v)
10156
+ data: vy(de, de, v)
10152
10157
  })).unwrap();
10153
10158
  const ve = await n(ot(s)).unwrap(), Q = Array.isArray(ve) ? ve : ve?.data;
10154
10159
  i({
@@ -10160,7 +10165,7 @@ function _y({ stepMeta: e, stepperProps: t }) {
10160
10165
  }
10161
10166
  }, [g, s, n, W, t, i, v]), U = ke(() => {
10162
10167
  if (pn(W)) return;
10163
- const z = $g(W);
10168
+ const z = jg(W);
10164
10169
  if (z) {
10165
10170
  O(z);
10166
10171
  return;
@@ -10243,7 +10248,7 @@ function _y({ stepMeta: e, stepperProps: t }) {
10243
10248
  children: !j || w ? /* @__PURE__ */ o(Rt, { text: "Loading form fields" }) : $ && !W.length ? /* @__PURE__ */ o("div", { className: "ca-validation-toast", role: "alert", children: $ }) : /* @__PURE__ */ m("div", { className: "ca-form-fields", ref: V, children: [
10244
10249
  $ ? /* @__PURE__ */ o("div", { className: "ca-validation-toast", role: "alert", children: $ }) : null,
10245
10250
  /* @__PURE__ */ o(
10246
- dy,
10251
+ uy,
10247
10252
  {
10248
10253
  fields: ne,
10249
10254
  disableAdd: G || k,
@@ -10253,7 +10258,7 @@ function _y({ stepMeta: e, stepperProps: t }) {
10253
10258
  ),
10254
10259
  /* @__PURE__ */ o("div", { className: "ca-settings-card__divider" }),
10255
10260
  /* @__PURE__ */ o(
10256
- cy,
10261
+ dy,
10257
10262
  {
10258
10263
  initialFields: W,
10259
10264
  addExternalFieldRef: p,
@@ -10271,7 +10276,7 @@ function _y({ stepMeta: e, stepperProps: t }) {
10271
10276
  )
10272
10277
  ] });
10273
10278
  }
10274
- function Ly({
10279
+ function Ey({
10275
10280
  label: e = "Active",
10276
10281
  checked: t,
10277
10282
  onChange: n,
@@ -10279,7 +10284,7 @@ function Ly({
10279
10284
  className: a = ""
10280
10285
  }) {
10281
10286
  return /* @__PURE__ */ m("div", { className: `ca-toggle-field ${a}`.trim(), children: [
10282
- /* @__PURE__ */ o(yg, { children: e }),
10287
+ /* @__PURE__ */ o(bg, { children: e }),
10283
10288
  /* @__PURE__ */ o(Vs, { checked: t, onChange: n, disabled: r, "aria-label": e })
10284
10289
  ] });
10285
10290
  }
@@ -10301,7 +10306,7 @@ function ad({ storeList: e = [], value: t, onChange: n, ...r }) {
10301
10306
  }
10302
10307
  );
10303
10308
  }
10304
- const Ey = /^[^\s]+\/[^\s]+\.[A-Za-z0-9]{2,5}(?:\?.*)?(?:::.+)?$/;
10309
+ const Ty = /^[^\s]+\/[^\s]+\.[A-Za-z0-9]{2,5}(?:\?.*)?(?:::.+)?$/;
10305
10310
  function Cn(e) {
10306
10311
  const t = String(e ?? ""), n = t.indexOf("::");
10307
10312
  return n >= 0 ? t.slice(0, n) : t;
@@ -10310,14 +10315,14 @@ function sd(e) {
10310
10315
  const t = String(e ?? ""), n = t.indexOf("::");
10311
10316
  return n >= 0 ? t.slice(n + 2) : t;
10312
10317
  }
10313
- const Ty = new RegExp("(?<=\\.[A-Za-z0-9]{2,5})(?=[A-Za-z0-9_-]+\\/)|[,\\n;]+");
10318
+ const Iy = new RegExp("(?<=\\.[A-Za-z0-9]{2,5})(?=[A-Za-z0-9_-]+\\/)|[,\\n;]+");
10314
10319
  function Nn(e) {
10315
- return (Array.isArray(e) ? e : [e]).filter((n) => n != null && n !== "" && n !== "-").flatMap((n) => typeof n == "string" ? n.split(Ty).map((r) => r.trim()).filter(Boolean) : [n]);
10320
+ return (Array.isArray(e) ? e : [e]).filter((n) => n != null && n !== "" && n !== "-").flatMap((n) => typeof n == "string" ? n.split(Iy).map((r) => r.trim()).filter(Boolean) : [n]);
10316
10321
  }
10317
- const Iy = /\.(png|jpe?g|gif|webp|bmp|svg)(?:\?.*)?$/i, Ry = /\.(mp4|webm|mov|m4v|ogv|ogg)(?:\?.*)?$/i;
10322
+ const Ry = /\.(png|jpe?g|gif|webp|bmp|svg)(?:\?.*)?$/i, ky = /\.(mp4|webm|mov|m4v|ogv|ogg)(?:\?.*)?$/i;
10318
10323
  function da(e) {
10319
10324
  const t = Cn(e);
10320
- return Iy.test(t) ? "image" : Ry.test(t) ? "video" : "file";
10325
+ return Ry.test(t) ? "image" : ky.test(t) ? "video" : "file";
10321
10326
  }
10322
10327
  function Zs(e) {
10323
10328
  const n = (Cn(e).split("?")[0].split("/").pop() ?? "").split(".");
@@ -10330,14 +10335,14 @@ function id(e) {
10330
10335
  }
10331
10336
  return 0;
10332
10337
  }
10333
- function ky(e) {
10338
+ function xy(e) {
10334
10339
  const t = Nn(e);
10335
- return t.length > 0 && t.every((n) => typeof n == "string" && Ey.test(n));
10340
+ return t.length > 0 && t.every((n) => typeof n == "string" && Ty.test(n));
10336
10341
  }
10337
10342
  function yn(e, t) {
10338
- return String(e?.fieldType || "").toLowerCase() === "file" || ky(t);
10343
+ return String(e?.fieldType || "").toLowerCase() === "file" || xy(t);
10339
10344
  }
10340
- function xy(e, t) {
10345
+ function Fy(e, t) {
10341
10346
  const n = /* @__PURE__ */ new Set();
10342
10347
  return t.forEach((r) => {
10343
10348
  e.forEach((a) => {
@@ -10350,7 +10355,7 @@ function xy(e, t) {
10350
10355
  });
10351
10356
  }), Array.from(n);
10352
10357
  }
10353
- function Fy(e) {
10358
+ function Oy(e) {
10354
10359
  const [t, n] = P(void 0);
10355
10360
  return ht(() => {
10356
10361
  if (typeof document > "u") return;
@@ -10367,19 +10372,19 @@ function Fy(e) {
10367
10372
  };
10368
10373
  }, [e]), t;
10369
10374
  }
10370
- function Oy({ ext: e, size: t }) {
10375
+ function Dy({ ext: e, size: t }) {
10371
10376
  switch (e) {
10372
10377
  case "pdf":
10373
- return /* @__PURE__ */ o(QA, { size: t, "aria-hidden": "true" });
10378
+ return /* @__PURE__ */ o(XA, { size: t, "aria-hidden": "true" });
10374
10379
  case "xlsx":
10375
10380
  case "xls":
10376
10381
  case "csv":
10377
- return /* @__PURE__ */ o(i0, { size: t, "aria-hidden": "true" });
10382
+ return /* @__PURE__ */ o(o0, { size: t, "aria-hidden": "true" });
10378
10383
  default:
10379
- return /* @__PURE__ */ o(YA, { size: t, "aria-hidden": "true" });
10384
+ return /* @__PURE__ */ o(GA, { size: t, "aria-hidden": "true" });
10380
10385
  }
10381
10386
  }
10382
- function Dy(e, t, n, r) {
10387
+ function My(e, t, n, r) {
10383
10388
  if (n) {
10384
10389
  window.open(n, "_blank", "noopener,noreferrer");
10385
10390
  return;
@@ -10395,7 +10400,7 @@ function Dy(e, t, n, r) {
10395
10400
  a.close(), r?.();
10396
10401
  });
10397
10402
  }
10398
- async function My(e, t, n, r) {
10403
+ async function Py(e, t, n, r) {
10399
10404
  const a = n || await e?.(t);
10400
10405
  if (!a) throw new Error("Attachment URL is unavailable");
10401
10406
  let s = a, l = !1;
@@ -10414,12 +10419,12 @@ function ua({ item: e, onOpen: t, getUrl: n, large: r = !1 }) {
10414
10419
  return;
10415
10420
  }
10416
10421
  if (e.ext?.toLowerCase() === "pdf") {
10417
- Dy(n, e.path, e.url, () => {
10422
+ My(n, e.path, e.url, () => {
10418
10423
  s("Unable to open file. Please try again.");
10419
10424
  });
10420
10425
  return;
10421
10426
  }
10422
- My(n, e.path, e.url, e.name).catch(() => s("Unable to download file. Please try again."));
10427
+ Py(n, e.path, e.url, e.name).catch(() => s("Unable to download file. Please try again."));
10423
10428
  };
10424
10429
  return /* @__PURE__ */ m(
10425
10430
  "button",
@@ -10430,7 +10435,7 @@ function ua({ item: e, onOpen: t, getUrl: n, large: r = !1 }) {
10430
10435
  "aria-label": `${e.ext?.toLowerCase() === "pdf" ? "Open" : "Download"} ${e.name}`,
10431
10436
  onClick: l,
10432
10437
  children: [
10433
- /* @__PURE__ */ o("span", { className: "ca-file-chip__icon", children: /* @__PURE__ */ o(Oy, { ext: e.ext, size: r ? 28 : 18 }) }),
10438
+ /* @__PURE__ */ o("span", { className: "ca-file-chip__icon", children: /* @__PURE__ */ o(Dy, { ext: e.ext, size: r ? 28 : 18 }) }),
10434
10439
  /* @__PURE__ */ m("span", { className: "ca-file-chip__text", children: [
10435
10440
  /* @__PURE__ */ o("span", { className: "ca-file-chip__name", children: e.name }),
10436
10441
  /* @__PURE__ */ o("span", { className: "ca-file-chip__ext", children: e.ext ? e.ext.toUpperCase() : "FILE" }),
@@ -10441,7 +10446,7 @@ function ua({ item: e, onOpen: t, getUrl: n, large: r = !1 }) {
10441
10446
  );
10442
10447
  }
10443
10448
  function ei({ items: e, index: t, onIndexChange: n, onClose: r, getUrl: a }) {
10444
- const s = Fy(!0), [l, i] = P({}), c = e[t], d = c?.path, p = c?.kind, u = c && (c.url || l[d]) || "", f = !!c && p !== "file" && !u && !(d in l);
10449
+ const s = Oy(!0), [l, i] = P({}), c = e[t], d = c?.path, p = c?.kind, u = c && (c.url || l[d]) || "", f = !!c && p !== "file" && !u && !(d in l);
10445
10450
  if (se(() => {
10446
10451
  if (!f || !a) return;
10447
10452
  let A = !1;
@@ -10494,7 +10499,7 @@ function ei({ items: e, index: t, onIndexChange: n, onClose: r, getUrl: a }) {
10494
10499
  }
10495
10500
  );
10496
10501
  }
10497
- function Py(e, t) {
10502
+ function By(e, t) {
10498
10503
  return Nn(e).filter((n) => typeof n == "string").map((n) => {
10499
10504
  const r = Cn(n);
10500
10505
  return {
@@ -10507,8 +10512,8 @@ function Py(e, t) {
10507
10512
  };
10508
10513
  });
10509
10514
  }
10510
- function By({ value: e, urlMap: t = {}, ensureUrl: n }) {
10511
- const [r, a] = P(null), s = oe(() => Py(e, t), [e, t]);
10515
+ function Uy({ value: e, urlMap: t = {}, ensureUrl: n }) {
10516
+ const [r, a] = P(null), s = oe(() => By(e, t), [e, t]);
10512
10517
  if (!s.length) return "-";
10513
10518
  const l = id(s.map((d) => d.key)), i = s[l], c = s.length - 1;
10514
10519
  return /* @__PURE__ */ m(Ee, { children: [
@@ -10568,17 +10573,17 @@ function By({ value: e, urlMap: t = {}, ensureUrl: n }) {
10568
10573
  ) : null
10569
10574
  ] });
10570
10575
  }
10571
- const Uy = /\.(png|jpe?g|gif|webp|bmp|svg)$/i, $y = /\.(mp4|webm|mov|m4v|ogv|ogg)$/i;
10572
- function jy(e) {
10573
- return e ? e.type && e.type.startsWith("video/") ? !0 : $y.test(e.name || "") : !1;
10576
+ const $y = /\.(png|jpe?g|gif|webp|bmp|svg)$/i, jy = /\.(mp4|webm|mov|m4v|ogv|ogg)$/i;
10577
+ function Vy(e) {
10578
+ return e ? e.type && e.type.startsWith("video/") ? !0 : jy.test(e.name || "") : !1;
10574
10579
  }
10575
10580
  function $a(e, t) {
10576
10581
  return t ? Array.isArray(e) ? e.filter(Boolean) : [] : e instanceof File ? [e] : [];
10577
10582
  }
10578
- function Vy(e) {
10579
- return e ? e.type && e.type.startsWith("image/") ? !0 : Uy.test(e.name || "") : !1;
10580
- }
10581
10583
  function qy(e) {
10584
+ return e ? e.type && e.type.startsWith("image/") ? !0 : $y.test(e.name || "") : !1;
10585
+ }
10586
+ function Wy(e) {
10582
10587
  return `${e.name}-${e.size}-${e.lastModified}`;
10583
10588
  }
10584
10589
  function ps({
@@ -10592,7 +10597,7 @@ function ps({
10592
10597
  accept: i
10593
10598
  }) {
10594
10599
  const [c, d] = P(null), p = $a(n, a), u = oe(() => $a(n, a).map((f, y) => {
10595
- const g = Vy(f), w = !g && jy(f), A = `${qy(f)}-${y}`;
10600
+ const g = qy(f), w = !g && Vy(f), A = `${Wy(f)}-${y}`;
10596
10601
  return {
10597
10602
  key: A,
10598
10603
  path: A,
@@ -10689,7 +10694,7 @@ function ps({
10689
10694
  ) : null
10690
10695
  ] });
10691
10696
  }
10692
- const Wy = /* @__PURE__ */ new Set(["select", "radio", "checkbox"]);
10697
+ const zy = /* @__PURE__ */ new Set(["select", "radio", "checkbox"]);
10693
10698
  function od(e) {
10694
10699
  return String(e || "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
10695
10700
  }
@@ -10709,12 +10714,12 @@ function fs(e) {
10709
10714
  return t === "file" ? "file" : t === "images" ? "images" : t === "email" || n.includes("email") ? "email" : t === "textarea" || t === "text area" ? "textarea" : t === "date" ? "date" : t === "date time" || t === "datetime" || t === "datetime-local" ? "datetime-local" : t === "time" ? "time" : t === "number" || t === "mobile" ? "number" : t === "radio" ? "radio" : t === "checkbox" || t === "multiselect" ? "checkbox" : (t === "dropdown" || t === "select" || t === "custom") && e.options?.length ? "select" : "text";
10710
10715
  }
10711
10716
  function ko(e) {
10712
- return Wy.has(e);
10717
+ return zy.has(e);
10713
10718
  }
10714
- function zy(e) {
10719
+ function Hy(e) {
10715
10720
  return e === "textarea" || e === "radio" || e === "checkbox";
10716
10721
  }
10717
- function Hy(e) {
10722
+ function Ky(e) {
10718
10723
  const t = String(e.fieldType || "").toLowerCase();
10719
10724
  return t === "text" || t === "textfield";
10720
10725
  }
@@ -10749,7 +10754,7 @@ function Oo(e, t = [], n = {}) {
10749
10754
  function cd(e) {
10750
10755
  return e === "checkbox" || e === "images" ? [] : "";
10751
10756
  }
10752
- function Ky({ question: e, options: t, value: n, onChange: r, storeList: a }) {
10757
+ function Qy({ question: e, options: t, value: n, onChange: r, storeList: a }) {
10753
10758
  const s = ti(e), l = fs(e), i = n ?? cd(l), c = {
10754
10759
  id: s,
10755
10760
  name: String(e.fieldKey || Kt(e) || s),
@@ -10852,7 +10857,7 @@ function Ky({ question: e, options: t, value: n, onChange: r, storeList: a }) {
10852
10857
  /^\d*$/.test(p) || (d.preventDefault(), r(Fo(p)));
10853
10858
  }
10854
10859
  }
10855
- ) : Hy(e) ? /* @__PURE__ */ o(
10860
+ ) : Ky(e) ? /* @__PURE__ */ o(
10856
10861
  "input",
10857
10862
  {
10858
10863
  ...c,
@@ -10882,7 +10887,7 @@ function Ky({ question: e, options: t, value: n, onChange: r, storeList: a }) {
10882
10887
  }
10883
10888
  );
10884
10889
  }
10885
- function Qy({ fields: e = [], storeList: t }) {
10890
+ function Xy({ fields: e = [], storeList: t }) {
10886
10891
  const { fieldLabel: n } = St(), [r, a] = P({}), s = (l, i) => {
10887
10892
  const c = Mn(l);
10888
10893
  a((d) => {
@@ -10902,14 +10907,14 @@ function Qy({ fields: e = [], storeList: t }) {
10902
10907
  return /* @__PURE__ */ m(
10903
10908
  "div",
10904
10909
  {
10905
- className: `review-question${zy(i) ? " review-question--wide" : ""}`,
10910
+ className: `review-question${Hy(i) ? " review-question--wide" : ""}`,
10906
10911
  children: [
10907
10912
  /* @__PURE__ */ m("label", { className: "review-label", htmlFor: c, children: [
10908
10913
  n(l) || "Untitled field",
10909
10914
  l.required ? /* @__PURE__ */ o("span", { className: "review-required", children: "*" }) : null
10910
10915
  ] }),
10911
10916
  /* @__PURE__ */ o(
10912
- Ky,
10917
+ Qy,
10913
10918
  {
10914
10919
  storeList: t,
10915
10920
  question: l,
@@ -10924,7 +10929,7 @@ function Qy({ fields: e = [], storeList: t }) {
10924
10929
  );
10925
10930
  }) }) }) }) : /* @__PURE__ */ o("p", { className: "review-empty", children: "No form fields added" });
10926
10931
  }
10927
- const Xy = {
10932
+ const Yy = {
10928
10933
  CUSTOM: "Custom",
10929
10934
  TEXT: "Text",
10930
10935
  TEXTAREA: "Text Area",
@@ -10943,15 +10948,15 @@ const Xy = {
10943
10948
  FILE: "File",
10944
10949
  IMAGES: "Images",
10945
10950
  TIME: "Time"
10946
- }, Yy = {
10951
+ }, Gy = {
10947
10952
  BOTH: "Both",
10948
10953
  USER: "User",
10949
10954
  ADMIN: "Admin"
10950
10955
  };
10951
- function Gy(e) {
10956
+ function Jy(e) {
10952
10957
  return e ? typeof e == "string" ? e : e.name ?? e.label ?? e.title ?? null : null;
10953
10958
  }
10954
- function Jy(e) {
10959
+ function Zy(e) {
10955
10960
  return [...new Set(e.filter(Boolean))];
10956
10961
  }
10957
10962
  function ms(e) {
@@ -10961,15 +10966,15 @@ function ja(e) {
10961
10966
  const t = String(e || "").trim().split(/[^A-Za-z0-9]+/).filter(Boolean);
10962
10967
  return t.length ? t[0].toLowerCase() + t.slice(1).map((n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()).join("") : "";
10963
10968
  }
10964
- function Zy(e) {
10969
+ function e2(e) {
10965
10970
  return !e || typeof e != "object" ? "" : e.dependsOnValue ?? e.parent ?? "";
10966
10971
  }
10967
- function e2(e, t = []) {
10972
+ function t2(e, t = []) {
10968
10973
  if (!e) return "";
10969
10974
  const n = t.map(ms).filter(Boolean), r = n.find((s) => s === e);
10970
10975
  return r || n.find((s) => ja(s) === e || ja(s) === ja(e)) || e;
10971
10976
  }
10972
- function t2(e = []) {
10977
+ function n2(e = []) {
10973
10978
  const t = [...e].sort(
10974
10979
  (n, r) => (n.displayOrder ?? 0) - (r.displayOrder ?? 0)
10975
10980
  );
@@ -10980,26 +10985,26 @@ function t2(e = []) {
10980
10985
  label: n.fieldName ?? n.fieldLabel ?? n.label ?? "",
10981
10986
  fieldLabel: n.fieldName ?? n.fieldLabel ?? n.label ?? "",
10982
10987
  fieldKey: n.fieldKey,
10983
- fieldType: zs(n.fieldType, Xy, n.fieldKey),
10988
+ fieldType: zs(n.fieldType, Yy, n.fieldKey),
10984
10989
  required: !!n.required,
10985
- fieldAccess: Yy[n.fieldAccess] ?? n.fieldAccess ?? "",
10986
- hideFor: Jy([
10990
+ fieldAccess: Gy[n.fieldAccess] ?? n.fieldAccess ?? "",
10991
+ hideFor: Zy([
10987
10992
  ...Array.isArray(n.hideFor) ? n.hideFor : [],
10988
- Gy(n.hideForWorkflowStep)
10993
+ Jy(n.hideForWorkflowStep)
10989
10994
  ]),
10990
10995
  dependsOn: n.dependsOnField?.fieldName ?? a?.fieldName ?? n.dependsOn ?? "",
10991
10996
  options: r.map(ms).filter(Boolean),
10992
10997
  parentMappings: Object.fromEntries(
10993
10998
  r.map((s) => {
10994
- const l = ms(s), i = Zy(s);
10995
- return !l || !i ? null : [l, e2(i, a?.options?.values ?? [])];
10999
+ const l = ms(s), i = e2(s);
11000
+ return !l || !i ? null : [l, t2(i, a?.options?.values ?? [])];
10996
11001
  }).filter(Boolean)
10997
11002
  )
10998
11003
  };
10999
11004
  });
11000
11005
  }
11001
- function n2({ onPublish: e, stepMeta: t, stepperProps: n, storeList: r }) {
11002
- const a = je(), s = ie((I) => I.appDetails?.id), l = ie((I) => I.complaintAppComplaint.formFields.data), i = ie((I) => I.complaintAppComplaint.formFields.isLoading), c = ie((I) => I.complaintAppComplaint.formFields.error), d = ie((I) => I.createComplaint?.isActive), p = ie((I) => I.createComplaint?.activeComplaintTypeId), u = ie((I) => I.createComplaint?.isUpdatingActive), f = ie((I) => I.createComplaint?.activeError), y = ie((I) => I.complaintType?.selected), g = ie((I) => I.complaintType?.complaintList ?? []), w = ie((I) => I.appDetails?.details?.currentUser), A = oe(() => t2(l), [l]), h = oe(() => s == null ? null : y && String(y.id ?? y._id) === String(s) ? y : g.find((I) => String(I?.id ?? I?._id) === String(s)) ?? null, [g, s, y]), v = h != null && (h.isActive != null || h.active != null) ? !!(h.isActive ?? h.active) : null, _ = String(p) === String(s) ? !!d : v ?? !0, N = jm(h, w);
11006
+ function r2({ onPublish: e, stepMeta: t, stepperProps: n, storeList: r }) {
11007
+ const a = je(), s = ie((I) => I.appDetails?.id), l = ie((I) => I.complaintAppComplaint.formFields.data), i = ie((I) => I.complaintAppComplaint.formFields.isLoading), c = ie((I) => I.complaintAppComplaint.formFields.error), d = ie((I) => I.createComplaint?.isActive), p = ie((I) => I.createComplaint?.activeComplaintTypeId), u = ie((I) => I.createComplaint?.isUpdatingActive), f = ie((I) => I.createComplaint?.activeError), y = ie((I) => I.complaintType?.selected), g = ie((I) => I.complaintType?.complaintList ?? []), w = ie((I) => I.appDetails?.details?.currentUser), A = oe(() => n2(l), [l]), h = oe(() => s == null ? null : y && String(y.id ?? y._id) === String(s) ? y : g.find((I) => String(I?.id ?? I?._id) === String(s)) ?? null, [g, s, y]), v = h != null && (h.isActive != null || h.active != null) ? !!(h.isActive ?? h.active) : null, _ = String(p) === String(s) ? !!d : v ?? !0, N = Vm(h, w);
11003
11008
  return se(() => {
11004
11009
  s && a(ot(s));
11005
11010
  }, [s, a]), /* @__PURE__ */ m(Ee, { children: [
@@ -11011,7 +11016,7 @@ function n2({ onPublish: e, stepMeta: t, stepperProps: n, storeList: r }) {
11011
11016
  showSaveButton: !1,
11012
11017
  nextLabel: "Publish",
11013
11018
  extraActions: /* @__PURE__ */ o(
11014
- Ly,
11019
+ Ey,
11015
11020
  {
11016
11021
  label: "Active",
11017
11022
  checked: _,
@@ -11037,20 +11042,20 @@ function n2({ onPublish: e, stepMeta: t, stepperProps: n, storeList: r }) {
11037
11042
  {
11038
11043
  title: t.title,
11039
11044
  description: t.description,
11040
- icon: /* @__PURE__ */ o(WA, { size: 16, "aria-hidden": "true" }),
11045
+ icon: /* @__PURE__ */ o(zA, { size: 16, "aria-hidden": "true" }),
11041
11046
  iconClassName: "ca-settings-card__icon--review",
11042
11047
  headerDividerVariant: "accent",
11043
11048
  showNext: !1,
11044
- children: /* @__PURE__ */ o("div", { className: "ca-review", children: /* @__PURE__ */ o("section", { className: "ca-review__block ca-review__block--last", children: i ? /* @__PURE__ */ o(Rt, { text: "Loading form fields" }) : c && !A.length ? /* @__PURE__ */ o("p", { className: "ca-body", children: c }) : /* @__PURE__ */ o(Qy, { fields: A, storeList: r }) }) })
11049
+ children: /* @__PURE__ */ o("div", { className: "ca-review", children: /* @__PURE__ */ o("section", { className: "ca-review__block ca-review__block--last", children: i ? /* @__PURE__ */ o(Rt, { text: "Loading form fields" }) : c && !A.length ? /* @__PURE__ */ o("p", { className: "ca-body", children: c }) : /* @__PURE__ */ o(Xy, { fields: A, storeList: r }) }) })
11045
11050
  }
11046
11051
  )
11047
11052
  ] });
11048
11053
  }
11049
- function r2(e) {
11054
+ function a2(e) {
11050
11055
  const t = Number(e);
11051
11056
  return !Number.isFinite(t) || t < 1 ? 1 : t > ft.length ? ft.length : Math.floor(t);
11052
11057
  }
11053
- function a2(e) {
11058
+ function s2(e) {
11054
11059
  const t = Number(e);
11055
11060
  return !Number.isFinite(t) || t < 1 ? 1 : t > 3 ? 3 : Math.floor(t);
11056
11061
  }
@@ -11066,7 +11071,7 @@ function dd({
11066
11071
  showSaveButton: c = !0,
11067
11072
  showNextButton: d = !0
11068
11073
  }) {
11069
- const p = at(), u = je(), f = Ke(), y = e ?? f.systemId, [g, w] = tr(), A = r2(g.get("step") || 1), h = a2(g.get("substep") || 1), v = !!y && y !== "new", [_, N] = P(!1);
11074
+ const p = at(), u = je(), f = Ke(), y = e ?? f.systemId, [g, w] = tr(), A = a2(g.get("step") || 1), h = s2(g.get("substep") || 1), v = !!y && y !== "new", [_, N] = P(!1);
11070
11075
  se(() => {
11071
11076
  if (!v) return;
11072
11077
  let k = !1;
@@ -11125,11 +11130,11 @@ function dd({
11125
11130
  nextLabel: A < ft.length ? "Save & Next" : void 0,
11126
11131
  className: "ca-settings-page__stepper"
11127
11132
  };
11128
- return /* @__PURE__ */ o(L0, { children: /* @__PURE__ */ m("div", { className: "ca-settings-page", children: [
11133
+ return /* @__PURE__ */ o(E0, { children: /* @__PURE__ */ m("div", { className: "ca-settings-page", children: [
11129
11134
  /* @__PURE__ */ o("div", { className: "ca-settings-page__header", children: /* @__PURE__ */ o(Sc, { children: t }) }),
11130
- A === 1 ? /* @__PURE__ */ o(U0, { stepMeta: I, stepperProps: G, roleList: s, userList: l }) : null,
11135
+ A === 1 ? /* @__PURE__ */ o($0, { stepMeta: I, stepperProps: G, roleList: s, userList: l }) : null,
11131
11136
  A === 2 ? /* @__PURE__ */ o(
11132
- J0,
11137
+ Z0,
11133
11138
  {
11134
11139
  onNext: j,
11135
11140
  stepMeta: I,
@@ -11140,11 +11145,11 @@ function dd({
11140
11145
  stepperProps: G
11141
11146
  }
11142
11147
  ) : null,
11143
- A === 3 ? /* @__PURE__ */ o(_y, { stepMeta: I, stepperProps: G }) : null,
11144
- A === 4 ? /* @__PURE__ */ o(n2, { storeList: i, onPublish: ne, stepMeta: I, stepperProps: G }) : null
11148
+ A === 3 ? /* @__PURE__ */ o(Ly, { stepMeta: I, stepperProps: G }) : null,
11149
+ A === 4 ? /* @__PURE__ */ o(r2, { storeList: i, onPublish: ne, stepMeta: I, stepperProps: G }) : null
11145
11150
  ] }) }, y || "new");
11146
11151
  }
11147
- function s2() {
11152
+ function i2() {
11148
11153
  const e = at(), { complaintTypeId: t } = Ke(), n = ie((c) => c.appDetails?.details?.featureActions), { canViewAnalytics: r } = aa(n), a = ie((c) => c.complaintManagement?.meta ?? null), s = Number(a?.total ?? a?.data?.total), l = Number.isFinite(s) ? s : 0, i = ie((c) => {
11149
11154
  const d = c.complaintType ?? {}, p = d.complaintList?.find((w) => String(w?.id ?? w?._id) === String(t));
11150
11155
  if (p) return p.name ?? p.complaintTypeName ?? p.title ?? "";
@@ -11234,7 +11239,7 @@ function ud({
11234
11239
  onClick: () => r?.(1),
11235
11240
  disabled: i || p,
11236
11241
  "aria-label": "First page",
11237
- children: /* @__PURE__ */ o(DA, { size: 16, "aria-hidden": "true" })
11242
+ children: /* @__PURE__ */ o(MA, { size: 16, "aria-hidden": "true" })
11238
11243
  }
11239
11244
  ),
11240
11245
  /* @__PURE__ */ o(
@@ -11245,7 +11250,7 @@ function ud({
11245
11250
  onClick: () => r?.(e - 1),
11246
11251
  disabled: i || p,
11247
11252
  "aria-label": "Previous page",
11248
- children: /* @__PURE__ */ o(xA, { size: 16, "aria-hidden": "true" })
11253
+ children: /* @__PURE__ */ o(FA, { size: 16, "aria-hidden": "true" })
11249
11254
  }
11250
11255
  ),
11251
11256
  /* @__PURE__ */ m("span", { className: "ca-custom-pagination__range", children: [
@@ -11274,7 +11279,7 @@ function ud({
11274
11279
  onClick: () => r?.(l),
11275
11280
  disabled: i || u,
11276
11281
  "aria-label": "Last page",
11277
- children: /* @__PURE__ */ o(PA, { size: 16, "aria-hidden": "true" })
11282
+ children: /* @__PURE__ */ o(BA, { size: 16, "aria-hidden": "true" })
11278
11283
  }
11279
11284
  )
11280
11285
  ] })
@@ -11282,7 +11287,7 @@ function ud({
11282
11287
  }
11283
11288
  );
11284
11289
  }
11285
- const i2 = [
11290
+ const o2 = [
11286
11291
  { value: "today", label: "Today" },
11287
11292
  { value: "yesterday", label: "Yesterday" },
11288
11293
  { value: "lastWeek", label: "Last Week" },
@@ -11291,7 +11296,7 @@ const i2 = [
11291
11296
  { value: "ytd", label: "YTD" },
11292
11297
  { value: "custom", label: "Custom" }
11293
11298
  ], Do = (e) => String(e).padStart(2, "0"), et = (e) => `${e.getFullYear()}-${Do(e.getMonth() + 1)}-${Do(e.getDate())}`, Rn = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
11294
- function o2(e, t = "", n = "", r = /* @__PURE__ */ new Date()) {
11299
+ function l2(e, t = "", n = "", r = /* @__PURE__ */ new Date()) {
11295
11300
  const a = new Date(r.getFullYear(), r.getMonth(), r.getDate()), s = (a.getDay() + 6) % 7, l = Rn(a, -s);
11296
11301
  switch (e) {
11297
11302
  case "today":
@@ -11313,23 +11318,23 @@ function o2(e, t = "", n = "", r = /* @__PURE__ */ new Date()) {
11313
11318
  return null;
11314
11319
  }
11315
11320
  }
11316
- function l2(e) {
11321
+ function c2(e) {
11317
11322
  if (!e?.preset) return {};
11318
- const t = o2(e.preset, e.from, e.to);
11323
+ const t = l2(e.preset, e.from, e.to);
11319
11324
  return t ? { ...t } : {};
11320
11325
  }
11321
- const c2 = [
11326
+ const d2 = [
11322
11327
  { value: "created", label: "Created" },
11323
11328
  { value: "updated", label: "Updated" }
11324
11329
  ];
11325
- function d2({ initial: e, onApply: t, onReset: n, onClose: r }) {
11330
+ function u2({ initial: e, onApply: t, onReset: n, onClose: r }) {
11326
11331
  const [a, s] = P(e?.field || "updated"), [l, i] = P(e?.preset || ""), [c, d] = P(e?.from || ""), [p, u] = P(e?.to || ""), f = l === "custom" && (!c || !p || c > p), y = !!l && !f;
11327
11332
  return /* @__PURE__ */ o("div", { className: "ca-confirm-modal", role: "dialog", "aria-modal": "true", "aria-label": "Filters", children: /* @__PURE__ */ m("div", { className: "ca-confirm-modal__dialog ca-date-filter", children: [
11328
11333
  /* @__PURE__ */ m("div", { className: "ca-date-filter__header", children: [
11329
11334
  /* @__PURE__ */ o("span", { className: "ca-date-filter__title", children: "Filters" }),
11330
11335
  /* @__PURE__ */ o("button", { type: "button", className: "ca-date-filter__close", "aria-label": "Close", onClick: r, children: /* @__PURE__ */ o(Kc, { size: 18 }) })
11331
11336
  ] }),
11332
- /* @__PURE__ */ o("div", { className: "ca-date-filter__tabs", role: "group", "aria-label": "Date field", children: c2.map((g) => /* @__PURE__ */ o(
11337
+ /* @__PURE__ */ o("div", { className: "ca-date-filter__tabs", role: "group", "aria-label": "Date field", children: d2.map((g) => /* @__PURE__ */ o(
11333
11338
  "button",
11334
11339
  {
11335
11340
  type: "button",
@@ -11339,7 +11344,7 @@ function d2({ initial: e, onApply: t, onReset: n, onClose: r }) {
11339
11344
  },
11340
11345
  g.value
11341
11346
  )) }),
11342
- /* @__PURE__ */ o("div", { className: "ca-date-filter__list", children: i2.map((g) => /* @__PURE__ */ m(
11347
+ /* @__PURE__ */ o("div", { className: "ca-date-filter__list", children: o2.map((g) => /* @__PURE__ */ m(
11343
11348
  "label",
11344
11349
  {
11345
11350
  className: `ca-date-filter__option${l === g.value ? " ca-date-filter__option--active" : ""}`,
@@ -11370,16 +11375,16 @@ function d2({ initial: e, onApply: t, onReset: n, onClose: r }) {
11370
11375
  ] })
11371
11376
  ] }) });
11372
11377
  }
11373
- function u2({ open: e, initial: t, onApply: n, onReset: r, onClose: a }) {
11374
- return e ? /* @__PURE__ */ o(d2, { initial: t, onApply: n, onReset: r, onClose: a }) : null;
11378
+ function p2({ open: e, initial: t, onApply: n, onReset: r, onClose: a }) {
11379
+ return e ? /* @__PURE__ */ o(u2, { initial: t, onApply: n, onReset: r, onClose: a }) : null;
11375
11380
  }
11376
- const p2 = /^(\d{4})-(\d{2})-(\d{2})$/, f2 = /^(\d{2}):(\d{2})(?::\d{2}(?:\.\d+)?)?$/, pd = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})/, Mo = (e) => String(e).padStart(2, "0");
11381
+ const f2 = /^(\d{4})-(\d{2})-(\d{2})$/, m2 = /^(\d{2}):(\d{2})(?::\d{2}(?:\.\d+)?)?$/, pd = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})/, Mo = (e) => String(e).padStart(2, "0");
11377
11382
  function fd(e, t) {
11378
11383
  const n = Number(e);
11379
11384
  return `${Mo(n % 12 || 12)}:${Mo(t)} ${n >= 12 ? "PM" : "AM"}`;
11380
11385
  }
11381
11386
  function Pr(e) {
11382
- const t = p2.exec(String(e ?? "").trim());
11387
+ const t = f2.exec(String(e ?? "").trim());
11383
11388
  return t ? `${t[3]}/${t[2]}/${t[1]}` : "";
11384
11389
  }
11385
11390
  function Po(e) {
@@ -11388,8 +11393,8 @@ function Po(e) {
11388
11393
  const n = Number(t[1]), r = Number(t[2]), a = Number(t[3]), s = new Date(a, r - 1, n);
11389
11394
  return a < 1900 || s.getFullYear() !== a || s.getMonth() !== r - 1 || s.getDate() !== n ? "" : `${t[3]}-${t[2]}-${t[1]}`;
11390
11395
  }
11391
- function m2(e) {
11392
- const t = f2.exec(String(e ?? "").trim());
11396
+ function h2(e) {
11397
+ const t = m2.exec(String(e ?? "").trim());
11393
11398
  return t ? fd(t[1], t[2]) : "";
11394
11399
  }
11395
11400
  function Bo(e) {
@@ -11401,17 +11406,17 @@ function md(e, t) {
11401
11406
  const n = String(e ?? "").toLowerCase().replace(/[\s_-]/g, "");
11402
11407
  if (!["date", "datetime", "datetimelocal", "time"].includes(n)) return t;
11403
11408
  const r = t.trim(), a = pd.exec(r);
11404
- return a ? `${a[3]}/${a[2]}/${a[1]}, ${fd(a[4], a[5])}` : Pr(r) || m2(r) || t;
11409
+ return a ? `${a[3]}/${a[2]}/${a[1]}, ${fd(a[4], a[5])}` : Pr(r) || h2(r) || t;
11405
11410
  }
11406
11411
  function gr(e, t = !1) {
11407
11412
  const n = [];
11408
11413
  return !t && e === "description" && n.push("ca-complaint-table__desc"), e === "actions" && n.push("ca-complaint-table__sticky", "ca-complaint-table__sticky--actions"), n.length ? n.join(" ") : void 0;
11409
11414
  }
11410
- function h2(e, t = []) {
11415
+ function g2(e, t = []) {
11411
11416
  const n = t.find((a) => String(a.id) === String(e.assignedToUserId));
11412
11417
  return (n ? [n.firstName, n.lastName].filter(Boolean).join(" ").trim() : "") || e.assignedToUserName || "";
11413
11418
  }
11414
- function g2({ row: e, ctx: t, isOpen: n, onToggle: r }) {
11419
+ function A2({ row: e, ctx: t, isOpen: n, onToggle: r }) {
11415
11420
  const a = t.roleUsers ?? [], s = Ce(null), l = Ce(null), [i, c] = P(null), d = a.find((h) => String(h.id) === String(e.assignedToUserId)), u = (d ? [d.firstName, d.lastName].filter(Boolean).join(" ").trim() : "") || e.assignedToUserName || "", f = e.assignedToUserId, y = f != null && f !== "" && String(f) === String(t.currentUserId), g = u || (y ? "Assign to Me" : "Assign"), w = a.filter((h) => String(h.id) !== String(t.currentUserId)), A = !!e.isClosed || t.canAssign === !1;
11416
11421
  return ht(() => {
11417
11422
  if (!n) return;
@@ -11514,7 +11519,7 @@ function g2({ row: e, ctx: t, isOpen: n, onToggle: r }) {
11514
11519
  ) : null
11515
11520
  ] });
11516
11521
  }
11517
- function A2({ text: e }) {
11522
+ function y2({ text: e }) {
11518
11523
  const t = Ce(null), [n, r] = P(!1), [a, s] = P(!1), l = () => {
11519
11524
  const i = t.current;
11520
11525
  !i || n || s(i.scrollHeight > i.clientHeight + 1);
@@ -11544,19 +11549,19 @@ function A2({ text: e }) {
11544
11549
  ) : null
11545
11550
  ] });
11546
11551
  }
11547
- function y2(e) {
11552
+ function b2(e) {
11548
11553
  return e == null ? !0 : typeof e == "string" ? e.trim() === "" : Array.isArray(e) ? e.length === 0 : !1;
11549
11554
  }
11550
11555
  function Uo(e, t, n = {}, r = {}) {
11551
- const a = y2(t[e.key]) ? "---" : t[e.key];
11556
+ const a = b2(t[e.key]) ? "---" : t[e.key];
11552
11557
  if (e.key === "status" || e.key === "escalationTo")
11553
11558
  return a;
11554
11559
  if (e.key === "assignedToUserName") {
11555
- const s = h2(t, n.roleUsers ?? []);
11560
+ const s = g2(t, n.roleUsers ?? []);
11556
11561
  return s ? /* @__PURE__ */ o("span", { className: "ca-complaint-table__ellipsis", children: s }) : "-";
11557
11562
  }
11558
11563
  return e.key === "actions" ? /* @__PURE__ */ m("div", { className: "ca-complaint-table__action-cell", children: [
11559
- /* @__PURE__ */ o(g2, { row: t, ctx: n, ...r }),
11564
+ /* @__PURE__ */ o(A2, { row: t, ctx: n, ...r }),
11560
11565
  /* @__PURE__ */ o(
11561
11566
  "button",
11562
11567
  {
@@ -11569,9 +11574,9 @@ function Uo(e, t, n = {}, r = {}) {
11569
11574
  children: /* @__PURE__ */ o(nt, { size: 16, "aria-hidden": "true" })
11570
11575
  }
11571
11576
  )
11572
- ] }) : yn(e, a) && Nn(a).some((s) => typeof s == "string") ? /* @__PURE__ */ o(By, { value: a, urlMap: n.attachmentUrlMap, ensureUrl: n.ensureAttachmentUrl }) : typeof a == "string" && a.trim() && a !== "-" ? /* @__PURE__ */ o(A2, { text: md(e.fieldType, a.trim()) }) : a;
11577
+ ] }) : yn(e, a) && Nn(a).some((s) => typeof s == "string") ? /* @__PURE__ */ o(Uy, { value: a, urlMap: n.attachmentUrlMap, ensureUrl: n.ensureAttachmentUrl }) : typeof a == "string" && a.trim() && a !== "-" ? /* @__PURE__ */ o(y2, { text: md(e.fieldType, a.trim()) }) : a;
11573
11578
  }
11574
- function b2({
11579
+ function v2({
11575
11580
  scrollFields: e,
11576
11581
  stickyFields: t,
11577
11582
  tableRows: n,
@@ -11625,8 +11630,8 @@ function b2({
11625
11630
  n.length ? null : /* @__PURE__ */ o("div", { className: "ca-complaint-table__empty-overlay", children: /* @__PURE__ */ o(Xs, { text: "Nothing here yet", illustrated: !0 }) })
11626
11631
  ] });
11627
11632
  }
11628
- const v2 = { id: "actions", label: "Actions", key: "actions" }, $o = [];
11629
- async function w2({
11633
+ const w2 = { id: "actions", label: "Actions", key: "actions" }, $o = [];
11634
+ async function S2({
11630
11635
  complaintTypeId: e,
11631
11636
  status: t,
11632
11637
  dateParams: n = {},
@@ -11639,7 +11644,7 @@ async function w2({
11639
11644
  ...n,
11640
11645
  complaintTypeId: e,
11641
11646
  page: 1,
11642
- limit: Zg,
11647
+ limit: eA,
11643
11648
  sort: r,
11644
11649
  assignmentFilter: a,
11645
11650
  escalationTo: s,
@@ -11652,7 +11657,7 @@ function jo(e, t = !1) {
11652
11657
  const n = Array.isArray(e) ? e : e == null ? [] : [e];
11653
11658
  return n.includes("all") || n.includes("All") ? [] : n.filter((r) => r != null && r !== "").map((r) => t ? Number(r) : String(r)).filter((r) => !t || Number.isFinite(r));
11654
11659
  }
11655
- function S2(e) {
11660
+ function C2(e) {
11656
11661
  return (Array.isArray(e?.roles) ? e.roles : []).map((n) => Number(n?.id ?? n?.roleId ?? n?.role_id ?? n)).filter((n) => Number.isFinite(n));
11657
11662
  }
11658
11663
  function Vo(e, t = [], n = [], r = null) {
@@ -11667,7 +11672,7 @@ function hd(e) {
11667
11672
  function hs(e, t = [], n = null) {
11668
11673
  return (Array.isArray(e?.roleIds) ? e.roleIds.map(Number) : []).some((a) => t.includes(a)) ? !0 : n != null && hd(e).includes(Number(n));
11669
11674
  }
11670
- function C2() {
11675
+ function N2() {
11671
11676
  const { fieldLabel: e } = St(), t = je(), n = at(), r = Ve(), { complaintTypeId: a } = Ke(), [s] = tr(), l = ie((x) => x.appDetails?.id), i = xc(
11672
11677
  a,
11673
11678
  s.get("complaintTypeId"),
@@ -11685,7 +11690,7 @@ function C2() {
11685
11690
  hasLoaded: g = !1,
11686
11691
  requestedComplaintTypeId: w = null,
11687
11692
  meta: A = null
11688
- } = ie((x) => x.complaintManagement ?? {}), h = ie((x) => x.status?.list ?? []), v = ie((x) => x.changeStatus?.updatingId ?? null), _ = ie((x) => x.roleUsers ?? {}), N = ie((x) => x.workflow?.workflowSteps), T = ie((x) => x.appDetails?.details?.currentUser), I = ie((x) => x.appDetails?.details?.featureActions), L = aa(I).canSeeAllFilters, j = ie((x) => x.appDetails?.details?.storeList), W = ie((x) => x.appDetails?.details?.userList ?? []), ne = oe(() => jc(j), [j]), G = oe(() => h.map((x) => x.name).filter(Boolean), [h]), k = oe(() => Array.isArray(N) ? N : Array.isArray(N?.steps) ? N.steps : [], [N]), $ = oe(() => S2(T), [T]), H = T?.id ?? T?.userId ?? null, le = oe(() => {
11693
+ } = ie((x) => x.complaintManagement ?? {}), h = ie((x) => x.status?.list ?? []), v = ie((x) => x.changeStatus?.updatingId ?? null), _ = ie((x) => x.roleUsers ?? {}), N = ie((x) => x.workflow?.workflowSteps), T = ie((x) => x.appDetails?.details?.currentUser), I = ie((x) => x.appDetails?.details?.featureActions), L = aa(I).canSeeAllFilters, j = ie((x) => x.appDetails?.details?.storeList), W = ie((x) => x.appDetails?.details?.userList ?? []), ne = oe(() => jc(j), [j]), G = oe(() => h.map((x) => x.name).filter(Boolean), [h]), k = oe(() => Array.isArray(N) ? N : Array.isArray(N?.steps) ? N.steps : [], [N]), $ = oe(() => C2(T), [T]), H = T?.id ?? T?.userId ?? null, le = oe(() => {
11689
11694
  const x = d, te = Array.isArray(x?.accesses) ? x.accesses.map((Ie) => Ie?.role?.id ?? Ie?.role?.roleId ?? Ie?.roleId).map(Number).filter(Number.isFinite) : [];
11690
11695
  return te.length ? te : (Array.isArray(x?.roleIds) ? x.roleIds : Array.isArray(x?.roles) ? x.roles : []).map((Ie) => Number(Ie?.id ?? Ie?.roleId ?? Ie?.role_id ?? Ie)).filter((Ie) => Number.isFinite(Ie));
11691
11696
  }, [d]), M = oe(() => {
@@ -11695,7 +11700,7 @@ function C2() {
11695
11700
  complaintTypeId: null,
11696
11701
  value: "All",
11697
11702
  explicitlySelected: !1
11698
- }), [F, O] = P(""), [V, re] = P(""), [R, U] = P(1), [z, ee] = P(Gg), [ye, Se] = P([]), [be, D] = P({}), [Z, K] = P(!1), [de, ve] = P(null), [Q, ae] = P([]), [fe, Ne] = P(!1), [De, Nt] = P({ complaintTypeId: null, field: "updated", preset: "", from: "", to: "" }), Qt = String(De.complaintTypeId) === String(i) && De.preset ? De : null, kt = oe(() => l2(Qt), [Qt]);
11703
+ }), [F, O] = P(""), [V, re] = P(""), [R, U] = P(1), [z, ee] = P(Jg), [ye, Se] = P([]), [be, D] = P({}), [Z, K] = P(!1), [de, ve] = P(null), [Q, ae] = P([]), [fe, Ne] = P(!1), [De, Nt] = P({ complaintTypeId: null, field: "updated", preset: "", from: "", to: "" }), Qt = String(De.complaintTypeId) === String(i) && De.preset ? De : null, kt = oe(() => c2(Qt), [Qt]);
11699
11704
  se(() => {
11700
11705
  const x = setTimeout(() => {
11701
11706
  re(F.trim()), U(1);
@@ -11712,7 +11717,7 @@ function C2() {
11712
11717
  !i || a || (eo(i), n(`/${i}`, { replace: !0 }));
11713
11718
  }, [i, n, a]), se(() => {
11714
11719
  if (!i || !a) return;
11715
- eo(i), t(An(i)), t(ec()), t(rc()), t(Eh());
11720
+ eo(i), t(An(i)), t(ec()), t(rc()), t(Th());
11716
11721
  const x = t(cn(i)), te = t(Rr(i)), Fe = t(mt(i)), Ie = t(ot(i));
11717
11722
  return Ie.unwrap().then((xt) => Se(Ic(xt))).catch(() => Se([])), () => {
11718
11723
  x.abort?.(), te.abort?.(), Fe.abort?.(), Ie.abort?.();
@@ -11769,7 +11774,7 @@ function C2() {
11769
11774
  const te = x.assignedToUserId;
11770
11775
  return te == null || te === "" ? 0 : String(te) === String(H) ? 1 : 2;
11771
11776
  }, Ln = ct.map(({ _fields: x, ...te }) => te).sort((x, te) => ri(x) - ri(te)), fa = oe(
11772
- () => xy(pa, ct),
11777
+ () => Fy(pa, ct),
11773
11778
  [pa, ct]
11774
11779
  ), Ld = fa.every((x) => Object.prototype.hasOwnProperty.call(be, x)), lr = Ce({}), ma = ke((x) => x ? (lr.current[x] || (lr.current[x] = t(dn({ params: { path: x } })).unwrap().then((te) => (D((Fe) => ({ ...Fe, [x]: te })), te)).catch(() => (delete lr.current[x], ""))), lr.current[x]) : Promise.resolve(""), [t]);
11775
11780
  se(() => {
@@ -11778,7 +11783,7 @@ function C2() {
11778
11783
  ma(te);
11779
11784
  });
11780
11785
  }, [fa, be, ma]);
11781
- const cr = nA(A, R, z, Ln.length), ai = !!(i && !y && (!Ln.length && (f || !g) || Ln.length > 0 && !Ld)), Ed = (x) => {
11786
+ const cr = rA(A, R, z, Ln.length), ai = !!(i && !y && (!Ln.length && (f || !g) || Ln.length > 0 && !Ld)), Ed = (x) => {
11782
11787
  U(1), ue({ complaintTypeId: i, status: jo(x) });
11783
11788
  }, Td = (x) => {
11784
11789
  x >= 1 && x <= cr.totalPages && x !== R && U(x);
@@ -11889,7 +11894,7 @@ function C2() {
11889
11894
  if (!(!i || Z)) {
11890
11895
  K(!0), ve(null);
11891
11896
  try {
11892
- const te = (await w2({
11897
+ const te = (await S2({
11893
11898
  complaintTypeId: i,
11894
11899
  status: yt,
11895
11900
  dateParams: kt,
@@ -11905,7 +11910,7 @@ function C2() {
11905
11910
  k,
11906
11911
  $,
11907
11912
  H
11908
- )), Ie = Zi(Fe).filter((Jt) => !oA(Jt, te, yn)), xt = new Blob([lA(Ie, te)], { type: "text/csv;charset=utf-8;" }), Qe = URL.createObjectURL(xt), _t = document.createElement("a");
11913
+ )), Ie = Zi(Fe).filter((Jt) => !lA(Jt, te, yn)), xt = new Blob([cA(Ie, te)], { type: "text/csv;charset=utf-8;" }), Qe = URL.createObjectURL(xt), _t = document.createElement("a");
11909
11914
  _t.href = Qe, _t.download = `complaints-report-${i}-${Date.now()}.csv`, document.body.appendChild(_t), _t.click(), document.body.removeChild(_t), URL.revokeObjectURL(Qe);
11910
11915
  } catch (x) {
11911
11916
  ve(x?.response?.data?.message ?? x?.message ?? "Failed to download report");
@@ -11921,7 +11926,7 @@ function C2() {
11921
11926
  onDismissToast: we,
11922
11927
  tableProps: {
11923
11928
  scrollFields: _d.filter((x) => x.key !== "actions"),
11924
- stickyFields: [v2],
11929
+ stickyFields: [w2],
11925
11930
  tableRows: Ln,
11926
11931
  fieldLabel: e,
11927
11932
  getCellContext: Ud,
@@ -11935,21 +11940,21 @@ function C2() {
11935
11940
  itemsPerPage: z,
11936
11941
  onPageChange: Td,
11937
11942
  onItemsPerPageChange: Id,
11938
- selectOptions: Jg,
11943
+ selectOptions: Zg,
11939
11944
  totalPages: cr.totalPages,
11940
11945
  disabled: ai,
11941
11946
  hasRows: !!(cr.totalItems > 0 || Ln.length || R > 1)
11942
11947
  }
11943
11948
  };
11944
11949
  }
11945
- const N2 = [
11950
+ const _2 = [
11946
11951
  { value: "All", label: "All Assignments" },
11947
11952
  { value: "AssignToMe", label: "Assign to Me" },
11948
11953
  { value: "AssignToOther", label: "Assign to Others" },
11949
11954
  { value: "Unassigned", label: "Unassigned" }
11950
11955
  ];
11951
- function _2({ onHeaderActionsChange: e }) {
11952
- const t = C2(), n = t.tableProps.tableRows, r = Ce({});
11956
+ function L2({ onHeaderActionsChange: e }) {
11957
+ const t = N2(), n = t.tableProps.tableRows, r = Ce({});
11953
11958
  se(() => {
11954
11959
  r.current = {
11955
11960
  onStatusChange: t.onStatusChange,
@@ -11979,7 +11984,7 @@ function _2({ onHeaderActionsChange: e }) {
11979
11984
  selectedCreatedAtSort: t.selectedCreatedAtSort,
11980
11985
  selectedLevel: t.selectedLevel,
11981
11986
  selectedAssignment: t.selectedAssignment,
11982
- assignmentOptions: N2,
11987
+ assignmentOptions: _2,
11983
11988
  workflowLevels: t.workflowLevels,
11984
11989
  showLevelAndAssignmentFilters: t.canFilterByLevelAndAssignment,
11985
11990
  onStatusChange: a.onStatusChange,
@@ -12015,10 +12020,10 @@ function _2({ onHeaderActionsChange: e }) {
12015
12020
  ]), se(() => () => e?.(null), [e]), /* @__PURE__ */ m("section", { className: "ca-complaint-table", "aria-label": "Complaint records", children: [
12016
12021
  t.error ? /* @__PURE__ */ o("p", { className: "ca-body", children: t.error }) : null,
12017
12022
  t.downloadError ? /* @__PURE__ */ o("p", { className: "ca-body", children: t.downloadError }) : null,
12018
- t.showLoading ? /* @__PURE__ */ o(Rt, { text: "Loading complaints" }) : /* @__PURE__ */ o(b2, { ...t.tableProps, tableRows: n }),
12023
+ t.showLoading ? /* @__PURE__ */ o(Rt, { text: "Loading complaints" }) : /* @__PURE__ */ o(v2, { ...t.tableProps, tableRows: n }),
12019
12024
  t.paginationProps.hasRows ? /* @__PURE__ */ o(ud, { ...t.paginationProps }) : null,
12020
12025
  /* @__PURE__ */ o(
12021
- u2,
12026
+ p2,
12022
12027
  {
12023
12028
  open: t.isDateFilterOpen,
12024
12029
  initial: t.dateFilter,
@@ -12031,8 +12036,8 @@ function _2({ onHeaderActionsChange: e }) {
12031
12036
  ] });
12032
12037
  }
12033
12038
  const gs = ({ onHeaderActionsChange: e }) => /* @__PURE__ */ m("main", { className: "ca-query-management-page", children: [
12034
- /* @__PURE__ */ o(s2, {}),
12035
- /* @__PURE__ */ o(_2, { onHeaderActionsChange: e })
12039
+ /* @__PURE__ */ o(i2, {}),
12040
+ /* @__PURE__ */ o(L2, { onHeaderActionsChange: e })
12036
12041
  ] });
12037
12042
  function gd({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled: s = !1 }) {
12038
12043
  const [l, i] = P(() => Pr(n)), [c, d] = P(n), p = Ce(null);
@@ -12083,7 +12088,7 @@ function gd({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled:
12083
12088
  cursor: "pointer",
12084
12089
  transform: "translateY(-50%)"
12085
12090
  },
12086
- children: /* @__PURE__ */ o(IA, { size: 16, "aria-hidden": "true" })
12091
+ children: /* @__PURE__ */ o(RA, { size: 16, "aria-hidden": "true" })
12087
12092
  }
12088
12093
  ),
12089
12094
  /* @__PURE__ */ o(
@@ -12110,7 +12115,7 @@ function gd({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled:
12110
12115
  )
12111
12116
  ] });
12112
12117
  }
12113
- function L2({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled: s = !1 }) {
12118
+ function E2({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled: s = !1 }) {
12114
12119
  return /* @__PURE__ */ o(
12115
12120
  "input",
12116
12121
  {
@@ -12125,7 +12130,7 @@ function L2({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled:
12125
12130
  }
12126
12131
  );
12127
12132
  }
12128
- function E2({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled: s = !1 }) {
12133
+ function T2({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled: s = !1 }) {
12129
12134
  const l = Bo(n), [i, c] = P(l.date), [d, p] = P(l.time), [u, f] = P(n);
12130
12135
  if (n !== u && (f(n), n)) {
12131
12136
  const g = Bo(n);
@@ -12147,7 +12152,7 @@ function E2({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled:
12147
12152
  }
12148
12153
  ) }),
12149
12154
  /* @__PURE__ */ o("div", { style: { flex: "1 1 220px", minWidth: 0 }, children: /* @__PURE__ */ o(
12150
- L2,
12155
+ E2,
12151
12156
  {
12152
12157
  name: t,
12153
12158
  value: d,
@@ -12160,7 +12165,7 @@ function E2({ id: e, name: t, value: n, onChange: r, required: a = !1, disabled:
12160
12165
  ) })
12161
12166
  ] });
12162
12167
  }
12163
- const T2 = {
12168
+ const I2 = {
12164
12169
  CUSTOM: "Custom",
12165
12170
  TEXT: "Text",
12166
12171
  TEXTAREA: "Text Area",
@@ -12178,7 +12183,7 @@ const T2 = {
12178
12183
  function As(e) {
12179
12184
  return typeof e == "string" ? e : e?.label ?? "";
12180
12185
  }
12181
- function I2(e = []) {
12186
+ function R2(e = []) {
12182
12187
  const t = [...e].sort(
12183
12188
  (n, r) => (n.displayOrder ?? 0) - (r.displayOrder ?? 0)
12184
12189
  );
@@ -12188,14 +12193,14 @@ function I2(e = []) {
12188
12193
  id: n.id,
12189
12194
  label: l,
12190
12195
  fieldKey: pe({ fieldKey: a, label: r }) ? "status" : s ? "storeIdCustom" : a,
12191
- fieldType: zs(n.fieldType, T2, n.fieldKey),
12196
+ fieldType: zs(n.fieldType, I2, n.fieldKey),
12192
12197
  required: !!n.required,
12193
12198
  dependsOn: n.dependsOnField?.fieldName ?? c?.fieldName ?? n.dependsOn ?? "",
12194
12199
  options: i.map(As).filter(Boolean),
12195
12200
  parentMappings: Object.fromEntries(
12196
12201
  i.map((d) => {
12197
- const p = As(d), u = k2(d);
12198
- return !p || !u ? null : [p, x2(u, c?.options?.values ?? [])];
12202
+ const p = As(d), u = x2(d);
12203
+ return !p || !u ? null : [p, F2(u, c?.options?.values ?? [])];
12199
12204
  }).filter(Boolean)
12200
12205
  )
12201
12206
  };
@@ -12205,21 +12210,21 @@ function Br(e) {
12205
12210
  const t = String(e || "").trim().split(/[^A-Za-z0-9]+/).filter(Boolean);
12206
12211
  return t.length ? t[0].toLowerCase() + t.slice(1).map((n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()).join("") : "";
12207
12212
  }
12208
- function R2(e) {
12213
+ function k2(e) {
12209
12214
  if (pe(e)) return "status";
12210
12215
  if ($e(e)) return "storeIdCustom";
12211
12216
  const t = String(e.fieldKey || "").trim();
12212
12217
  return t && !/\s/.test(t) ? t : Br(e.label || t);
12213
12218
  }
12214
- function k2(e) {
12219
+ function x2(e) {
12215
12220
  return !e || typeof e != "object" ? "" : e.dependsOnValue ?? e.parent ?? "";
12216
12221
  }
12217
- function x2(e, t = []) {
12222
+ function F2(e, t = []) {
12218
12223
  if (!e) return "";
12219
12224
  const n = t.map(As).filter(Boolean), r = n.find((s) => s === e);
12220
12225
  return r || n.find((s) => Br(s) === e || Br(s) === Br(e)) || e;
12221
12226
  }
12222
- function F2(e, t = [], n = {}) {
12227
+ function O2(e, t = [], n = {}) {
12223
12228
  const r = e.options || [], a = String(e.dependsOn || "").trim();
12224
12229
  if (!a) return r;
12225
12230
  const s = t.find((d) => String(d.label || "").trim() === a || String(d.fieldKey || "").trim() === a);
@@ -12232,7 +12237,7 @@ function F2(e, t = [], n = {}) {
12232
12237
  function ys(e) {
12233
12238
  return _n(e) === "checkbox";
12234
12239
  }
12235
- function O2(e, t) {
12240
+ function D2(e, t) {
12236
12241
  const n = String(t || "").trim();
12237
12242
  return n && e.find((r) => String(r.label || "").trim() === n || String(r.fieldKey || "").trim() === n) || null;
12238
12243
  }
@@ -12240,12 +12245,12 @@ function Ad(e, t) {
12240
12245
  const n = String(t?.label || "").trim();
12241
12246
  return n && e.find((r) => String(r.dependsOn || "").trim() === n) || null;
12242
12247
  }
12243
- function D2(e, t, n) {
12248
+ function M2(e, t, n) {
12244
12249
  const r = {}, a = Array.isArray(t) ? t[0] : t;
12245
12250
  if (!a) return r;
12246
12251
  let s = e, l = a;
12247
12252
  for (; s?.dependsOn; ) {
12248
- const i = O2(n, s.dependsOn);
12253
+ const i = D2(n, s.dependsOn);
12249
12254
  if (!i) break;
12250
12255
  const c = (s.parentMappings || {})[l];
12251
12256
  if (!c) break;
@@ -12263,7 +12268,7 @@ function D2(e, t, n) {
12263
12268
  function Ur(e) {
12264
12269
  return Array.isArray(e) ? e.filter((t) => t != null && t !== "") : e == null || e === "" ? [] : [e];
12265
12270
  }
12266
- function M2(e, t, n, r, a) {
12271
+ function P2(e, t, n, r, a) {
12267
12272
  const s = {}, l = Ur(n);
12268
12273
  let i = Ur(t).filter((d) => !l.includes(d)), c = e;
12269
12274
  for (; c && i.length; ) {
@@ -12301,7 +12306,7 @@ function Wo(e, t) {
12301
12306
  const n = e.file && typeof e.file == "object" ? e.file : e, r = n.path || n.id || t?.name || "", a = n.originalName || t?.name || "";
12302
12307
  return a && r && String(r) !== a ? `${r}::${a}` : r;
12303
12308
  }
12304
- async function P2(e, t, n) {
12309
+ async function B2(e, t, n) {
12305
12310
  const r = _n(t);
12306
12311
  if (r === "file" && typeof File < "u" && n instanceof File) {
12307
12312
  const a = await e(Un({ file: n, folder: "complaints" })).unwrap();
@@ -12315,39 +12320,39 @@ async function P2(e, t, n) {
12315
12320
  return a;
12316
12321
  })) : bd(n);
12317
12322
  }
12318
- function B2(e, t = []) {
12323
+ function U2(e, t = []) {
12319
12324
  if (e == null || e === "") return "";
12320
12325
  const n = t.find((a) => String(a?.id ?? a?._id) === String(e)), r = n?.name ?? n?.storeName ?? n?.label;
12321
12326
  if (!r || !String(r).trim())
12322
12327
  throw new Error("Unable to resolve the selected Office name. Please select an Office again.");
12323
12328
  return String(r).trim();
12324
12329
  }
12325
- async function U2(e = [], t = {}, n, r = []) {
12330
+ async function $2(e = [], t = {}, n, r = []) {
12326
12331
  const a = {};
12327
12332
  for (const s of e) {
12328
- const l = R2(s);
12333
+ const l = k2(s);
12329
12334
  if (!l) continue;
12330
12335
  const i = t[Re(s)];
12331
- a[l] = $e(s) ? B2(i, r) : await P2(n, s, i);
12336
+ a[l] = $e(s) ? U2(i, r) : await B2(n, s, i);
12332
12337
  }
12333
12338
  return a;
12334
12339
  }
12335
12340
  function zo(e) {
12336
12341
  return Array.isArray(e) ? e.length === 0 : typeof File < "u" && e instanceof File ? !1 : e == null || String(e).trim() === "";
12337
12342
  }
12338
- function $2(e) {
12343
+ function j2(e) {
12339
12344
  return /^\d+$/.test(String(e).trim());
12340
12345
  }
12341
- function j2(e = [], t = {}) {
12346
+ function V2(e = [], t = {}) {
12342
12347
  for (const n of e) {
12343
12348
  const r = _n(n), a = t[Re(n)], s = n.label || "This field";
12344
12349
  if (n.required && zo(a)) return `${s} is required.`;
12345
- if (!zo(a) && r === "number" && !$2(a))
12350
+ if (!zo(a) && r === "number" && !j2(a))
12346
12351
  return `${s} must be a valid number.`;
12347
12352
  }
12348
12353
  return "";
12349
12354
  }
12350
- function V2({ field: e, value: t, onChange: n, storeList: r, options: a = e.options }) {
12355
+ function q2({ field: e, value: t, onChange: n, storeList: r, options: a = e.options }) {
12351
12356
  const { fieldLabel: s } = St(), l = _n(e), i = yd(e), c = pe(e);
12352
12357
  if ($e(e) && Array.isArray(r))
12353
12358
  return /* @__PURE__ */ o(ad, { id: i, name: Re(e), required: e.required, storeList: r, value: t, onChange: n });
@@ -12405,7 +12410,7 @@ function V2({ field: e, value: t, onChange: n, storeList: r, options: a = e.opti
12405
12410
  if (l === "date")
12406
12411
  return /* @__PURE__ */ o(gd, { id: i, name: Re(e), value: t, onChange: n, required: e.required, disabled: c });
12407
12412
  if (l === "datetime-local")
12408
- return /* @__PURE__ */ o(E2, { id: i, name: Re(e), value: t, onChange: n, required: e.required, disabled: c });
12413
+ return /* @__PURE__ */ o(T2, { id: i, name: Re(e), value: t, onChange: n, required: e.required, disabled: c });
12409
12414
  if (l === "select") {
12410
12415
  const d = (a || []).includes(t) || !c || !t ? a : [t, ...a];
12411
12416
  return /* @__PURE__ */ o(
@@ -12426,7 +12431,7 @@ function V2({ field: e, value: t, onChange: n, storeList: r, options: a = e.opti
12426
12431
  }
12427
12432
  return /* @__PURE__ */ o("input", { id: i, name: Re(e), className: "review-control", type: l, value: t, onChange: (d) => n(l === "text" ? d.target.value.replace(/^\s+/, "") : d.target.value), required: e.required, disabled: c });
12428
12433
  }
12429
- function q2({ storeList: e } = {}) {
12434
+ function W2({ storeList: e } = {}) {
12430
12435
  const { fieldLabel: t } = St(), n = je(), r = at(), a = Ve(), { complaintTypeId: s } = Ke(), l = ie((b) => b.appDetails?.details?.storeList), i = Array.isArray(e) ? e : Array.isArray(l) ? l : [], c = Number(s), d = Number.isFinite(c) && c > 0, p = new URLSearchParams(a.search).get("access") === "public", [u, f] = P([]), [y, g] = P({}), [w, A] = P(!0), [h, v] = P(!1), [_, N] = P(""), [T, I] = P(""), [L, j] = P([]), W = ke((b, F = "success") => {
12431
12436
  j((O) => [...O, { id: Date.now() + Math.random(), message: b, type: F }]);
12432
12437
  }, []), ne = ke((b) => {
@@ -12464,7 +12469,7 @@ function q2({ storeList: e } = {}) {
12464
12469
  let b = !1;
12465
12470
  return n(ot(c)).unwrap().then((F) => {
12466
12471
  if (b) return;
12467
- const O = I2(Array.isArray(F?.data) ? F.data : F);
12472
+ const O = R2(Array.isArray(F?.data) ? F.data : F);
12468
12473
  f(O), g(Object.fromEntries(O.map((V) => [Re(V), qo(V)])));
12469
12474
  }).catch((F) => {
12470
12475
  b || N(typeof F == "string" ? F : F?.message || "Failed to load form fields.");
@@ -12480,13 +12485,13 @@ function q2({ storeList: e } = {}) {
12480
12485
  return;
12481
12486
  }
12482
12487
  N(""), I(""), v(!0);
12483
- const F = j2(u, y);
12488
+ const F = V2(u, y);
12484
12489
  if (F) {
12485
12490
  W(F, "error"), v(!1);
12486
12491
  return;
12487
12492
  }
12488
12493
  try {
12489
- const O = await U2(u, y, n, i), V = u.findIndex(pe), re = u[V + 1], U = (re ? [].concat(bd(y[Re(re)])).join(", ").trim() : "") || C;
12494
+ const O = await $2(u, y, n, i), V = u.findIndex(pe), re = u[V + 1], U = (re ? [].concat(bd(y[Re(re)])).join(", ").trim() : "") || C;
12490
12495
  if (!U) {
12491
12496
  W("Title is required. Please fill the first field.", "error");
12492
12497
  return;
@@ -12505,14 +12510,14 @@ function q2({ storeList: e } = {}) {
12505
12510
  v(!1);
12506
12511
  }
12507
12512
  }, Y = (b) => {
12508
- const F = F2(b, u, y);
12513
+ const F = O2(b, u, y);
12509
12514
  return /* @__PURE__ */ m("div", { className: `review-question${["textarea", "radio", "checkbox"].includes(_n(b)) ? " review-question--wide" : ""}`, children: [
12510
12515
  /* @__PURE__ */ m("label", { className: "review-label", htmlFor: yd(b), children: [
12511
12516
  t(b) || "Untitled field",
12512
12517
  b.required ? /* @__PURE__ */ o("span", { className: "review-required", children: "*" }) : null
12513
12518
  ] }),
12514
12519
  /* @__PURE__ */ o(
12515
- V2,
12520
+ q2,
12516
12521
  {
12517
12522
  storeList: i,
12518
12523
  field: b,
@@ -12520,7 +12525,7 @@ function q2({ storeList: e } = {}) {
12520
12525
  value: y[Re(b)] ?? qo(b),
12521
12526
  onChange: (O) => {
12522
12527
  pe(b) || g((V) => {
12523
- const re = M2(b, V[Re(b)], O, u, V), R = D2(b, O, u);
12528
+ const re = P2(b, V[Re(b)], O, u, V), R = M2(b, O, u);
12524
12529
  return { ...V, [Re(b)]: O, ...re, ...R };
12525
12530
  });
12526
12531
  }
@@ -12543,7 +12548,7 @@ function q2({ storeList: e } = {}) {
12543
12548
  ] });
12544
12549
  }
12545
12550
  const Ar = [];
12546
- function W2(e, t = 200, n = null) {
12551
+ function z2(e, t = 200, n = null) {
12547
12552
  const r = je(), a = ie((A) => A.appDetails?.details?.userList) ?? Ar, s = ie((A) => A.status?.list) ?? Ar, l = ie((A) => A.workflow?.workflowSteps), i = Array.isArray(l) ? l : Array.isArray(l?.steps) ? l.steps : Array.isArray(l?.data) ? l.data : Ar, [c, d] = P({ key: null, complaints: [], error: null }), p = e == null || e === "" ? null : `${e}:${t}`;
12548
12553
  se(() => {
12549
12554
  if (e == null || e === "") return;
@@ -12580,12 +12585,12 @@ function W2(e, t = 200, n = null) {
12580
12585
  return [...f].sort((_, N) => h(N) - h(_) || v(N) - v(_)).map((_) => $c(_, s, a, A));
12581
12586
  }, [f, s, a, n, i]), isLoading: g, error: y };
12582
12587
  }
12583
- const z2 = ["10", "25", "50", "100", "200"], H2 = 10;
12584
- function K2() {
12585
- const e = je(), t = at(), n = Ve(), { complaintTypeId: r } = Ke(), [a, s] = P(1), [l, i] = P(H2), c = ie((A) => {
12588
+ const H2 = ["10", "25", "50", "100", "200"], K2 = 10;
12589
+ function Q2() {
12590
+ const e = je(), t = at(), n = Ve(), { complaintTypeId: r } = Ke(), [a, s] = P(1), [l, i] = P(K2), c = ie((A) => {
12586
12591
  const h = A.complaintType ?? {};
12587
12592
  return (Array.isArray(h.complaintList) ? h.complaintList : []).find((_) => String(_?.id ?? _?._id) === String(r)) ?? (String(h.selected?.id ?? h.selected?._id) === String(r) ? h.selected : null);
12588
- }), { rows: d, isLoading: p, error: u } = W2(r, void 0, c?.tatMinutes), f = Math.max(1, Math.ceil(d.length / l)), y = Math.min(a, f), g = d.slice((y - 1) * l, y * l), w = ke((A) => {
12593
+ }), { rows: d, isLoading: p, error: u } = z2(r, void 0, c?.tatMinutes), f = Math.max(1, Math.ceil(d.length / l)), y = Math.min(a, f), g = d.slice((y - 1) * l, y * l), w = ke((A) => {
12589
12594
  t(`/${r}?view=all&complaintId=${A.id}`, {
12590
12595
  state: { from: n.pathname }
12591
12596
  });
@@ -12639,7 +12644,7 @@ function K2() {
12639
12644
  totalItems: d.length,
12640
12645
  itemsPerPage: l,
12641
12646
  totalPages: f,
12642
- selectOptions: z2,
12647
+ selectOptions: H2,
12643
12648
  onPageChange: (A) => {
12644
12649
  A >= 1 && A <= f && s(A);
12645
12650
  },
@@ -12650,11 +12655,11 @@ function K2() {
12650
12655
  ) }) : null
12651
12656
  ] }) });
12652
12657
  }
12653
- function Q2(e) {
12658
+ function X2(e) {
12654
12659
  return ([e?.userAssignments, e?.users, e?.userIds, e?.assignedUsers].find(Array.isArray) ?? []).map((n) => Number(n && typeof n == "object" ? n.userId ?? n.id ?? n.user?.id : n)).filter(Number.isFinite);
12655
12660
  }
12656
- function X2(e, t = [], n = null) {
12657
- return (Array.isArray(e?.roleIds) ? e.roleIds.map(Number) : []).some((a) => t.includes(a)) ? !0 : n != null && Q2(e).includes(Number(n));
12661
+ function Y2(e, t = [], n = null) {
12662
+ return (Array.isArray(e?.roleIds) ? e.roleIds.map(Number) : []).some((a) => t.includes(a)) ? !0 : n != null && X2(e).includes(Number(n));
12658
12663
  }
12659
12664
  function bs(e) {
12660
12665
  return jn(e) || "—";
@@ -12666,7 +12671,7 @@ function Jr(e) {
12666
12671
  const t = typeof e == "object" && e !== null ? e.userId ?? e.user_id ?? e.id ?? e.value ?? e.user?.id : e;
12667
12672
  return t == null || t === "" ? null : String(t);
12668
12673
  }
12669
- function Y2(e) {
12674
+ function G2(e) {
12670
12675
  const t = [
12671
12676
  e?.roleIds,
12672
12677
  e?.roles,
@@ -12676,7 +12681,7 @@ function Y2(e) {
12676
12681
  typeof n == "object" && n !== null ? { id: n.id ?? n.roleId ?? n.role_id ?? n.value ?? n.role?.id } : n
12677
12682
  )).filter(Boolean))];
12678
12683
  }
12679
- function G2(e) {
12684
+ function J2(e) {
12680
12685
  return [
12681
12686
  e?.userAssignments,
12682
12687
  e?.users,
@@ -12684,7 +12689,7 @@ function G2(e) {
12684
12689
  e?.assignedUsers
12685
12690
  ].flatMap((n) => Array.isArray(n) ? n : n == null ? [] : [n]).filter((n) => n && typeof n == "object");
12686
12691
  }
12687
- function J2(e) {
12692
+ function Z2(e) {
12688
12693
  const t = [
12689
12694
  e?.userAssignments,
12690
12695
  e?.users,
@@ -12699,7 +12704,7 @@ function Va(e) {
12699
12704
  e?.lastName
12700
12705
  ].filter(Boolean).join(" ") ?? e?.email ?? "").trim();
12701
12706
  }
12702
- function Z2({
12707
+ function eb({
12703
12708
  assignedToUserId: e,
12704
12709
  assignedToUserName: t,
12705
12710
  currentUserId: n,
@@ -12806,7 +12811,7 @@ function Z2({
12806
12811
  ) : null
12807
12812
  ] });
12808
12813
  }
12809
- function eb({ text: e }) {
12814
+ function tb({ text: e }) {
12810
12815
  const t = Ce(null), [n, r] = P(!1), [a, s] = P(!1), l = () => {
12811
12816
  const i = t.current;
12812
12817
  !i || n || s(i.scrollHeight > i.clientHeight + 1);
@@ -12881,10 +12886,10 @@ function qa({ label: e, value: t, fieldType: n, attachmentUrls: r, getAttachment
12881
12886
  onClose: () => i(null)
12882
12887
  }
12883
12888
  ) : null
12884
- ] }) : /* @__PURE__ */ o("span", { className: "ca-complaint-details__field-value", children: /* @__PURE__ */ o(eb, { text: vd(md(n, t)) }) })
12889
+ ] }) : /* @__PURE__ */ o("span", { className: "ca-complaint-details__field-value", children: /* @__PURE__ */ o(tb, { text: vd(md(n, t)) }) })
12885
12890
  ] });
12886
12891
  }
12887
- function tb({
12892
+ function nb({
12888
12893
  activities: e = [],
12889
12894
  fallbackRemarks: t = [],
12890
12895
  localRemarks: n = [],
@@ -12951,7 +12956,7 @@ function tb({
12951
12956
  /* @__PURE__ */ o("button", { type: "button", onClick: l, children: "Retry" })
12952
12957
  ] }) : null,
12953
12958
  i.length ? /* @__PURE__ */ o("ol", { className: "ca-complaint-details__activity-list", children: i.map((c) => /* @__PURE__ */ m("li", { className: "ca-complaint-details__activity-item", children: [
12954
- /* @__PURE__ */ o("span", { className: `ca-complaint-details__activity-icon ca-complaint-details__activity-icon--${c.type}`, "aria-hidden": "true", children: nb(c) }),
12959
+ /* @__PURE__ */ o("span", { className: `ca-complaint-details__activity-icon ca-complaint-details__activity-icon--${c.type}`, "aria-hidden": "true", children: rb(c) }),
12955
12960
  /* @__PURE__ */ m("div", { className: "ca-complaint-details__activity-content", children: [
12956
12961
  /* @__PURE__ */ o("p", { children: c.text }),
12957
12962
  c.type === "remark" || c.author ? /* @__PURE__ */ m(Ee, { children: [
@@ -12968,22 +12973,22 @@ function tb({
12968
12973
  ] });
12969
12974
  }
12970
12975
  const kn = { size: 14, strokeWidth: 1.8 };
12971
- function nb(e) {
12976
+ function rb(e) {
12972
12977
  switch (String(e.action ?? "").trim().toUpperCase()) {
12973
12978
  case "CREATED":
12974
- return /* @__PURE__ */ o(HA, { ...kn });
12979
+ return /* @__PURE__ */ o(KA, { ...kn });
12975
12980
  case "ASSIGNED":
12976
- return /* @__PURE__ */ o(g0, { ...kn });
12981
+ return /* @__PURE__ */ o(A0, { ...kn });
12977
12982
  case "ESCALATED":
12978
12983
  case "REASSIGNED":
12979
- return /* @__PURE__ */ o(a0, { ...kn });
12984
+ return /* @__PURE__ */ o(s0, { ...kn });
12980
12985
  case "STATUS_CHANGED":
12981
- return /* @__PURE__ */ o(u0, { ...kn });
12986
+ return /* @__PURE__ */ o(p0, { ...kn });
12982
12987
  default:
12983
- return /* @__PURE__ */ o(LA, { ...kn });
12988
+ return /* @__PURE__ */ o(EA, { ...kn });
12984
12989
  }
12985
12990
  }
12986
- function rb({ complaintId: e, complaintTypeId: t }) {
12991
+ function ab({ complaintId: e, complaintTypeId: t }) {
12987
12992
  const n = je(), { data: r, isLoading: a, error: s } = ie((E) => E.complaintsGetOne ?? {}), l = ie((E) => E.activityLog ?? {}), i = ie((E) => E.status?.list ?? []), c = ie((E) => E.workflow?.workflowSteps), d = ie((E) => E.appDetails?.details?.currentUser), p = ie((E) => E.roleUsers ?? {}), u = ie((E) => E.appDetails?.details?.userList ?? []), f = d?.id ?? d?.userId ?? null, { fieldLabel: y } = St(), g = ie((E) => E.appDetails?.details?.storeList), w = oe(() => jc(g), [g]), A = (E) => {
12988
12993
  const me = E?.fieldName ?? E?.fieldKey ?? "Field";
12989
12994
  return y({
@@ -13011,7 +13016,7 @@ function rb({ complaintId: e, complaintTypeId: t }) {
13011
13016
  }, [t, n]);
13012
13017
  const J = oe(() => Array.isArray(c) ? c : Array.isArray(c?.steps) ? c.steps : [], [c]);
13013
13018
  se(() => {
13014
- n(Uh()), n(Kh());
13019
+ n($h()), n(Qh());
13015
13020
  const E = n(Dt(e)), me = n(Mt(e));
13016
13021
  return () => {
13017
13022
  E.abort?.(), me.abort?.();
@@ -13051,7 +13056,7 @@ function rb({ complaintId: e, complaintTypeId: t }) {
13051
13056
  const F = ke((E) => _[E] ? Promise.resolve(_[E]) : n(dn({ params: { path: E } })).unwrap(), [_, n]), O = T ?? (r?.statusId == null ? "" : String(r.statusId)), V = L ?? (r?.currentStepId == null ? "" : String(r.currentStepId)), re = O !== (r?.statusId == null ? "" : String(r.statusId)) || V !== (r?.currentStepId == null ? "" : String(r.currentStepId)), R = oe(
13052
13057
  () => J.find((E) => String(E.id) === String(r?.currentStepId)),
13053
13058
  [r?.currentStepId, J]
13054
- ), U = R ?? r?.currentWorkflowStep, z = oe(() => Y2(U), [U]);
13059
+ ), U = R ?? r?.currentWorkflowStep, z = oe(() => G2(U), [U]);
13055
13060
  se(() => {
13056
13061
  z.forEach((E) => {
13057
13062
  !p.usersByRoleId?.[E] && !p.loadingByRoleId?.[E] && !p.errorByRoleId?.[E] && n($t(E));
@@ -13064,9 +13069,9 @@ function rb({ complaintId: e, complaintTypeId: t }) {
13064
13069
  p.usersByRoleId
13065
13070
  ]);
13066
13071
  const ee = oe(() => {
13067
- const E = J2(U), me = [
13072
+ const E = Z2(U), me = [
13068
13073
  ...z.flatMap((we) => p.usersByRoleId?.[we] ?? []),
13069
- ...G2(U),
13074
+ ...J2(U),
13070
13075
  ...u.filter((we) => E.has(Jr(we))),
13071
13076
  d,
13072
13077
  r?.assignedToUser
@@ -13099,7 +13104,7 @@ function rb({ complaintId: e, complaintTypeId: t }) {
13099
13104
  const me = E.formField?.fieldKey || E.formField?.fieldName, Ae = E.formField?.hideForWorkflowStepId ?? C[me];
13100
13105
  if (Ae == null || Ae === "") return !0;
13101
13106
  const we = J.find((it) => String(it.id) === String(Ae));
13102
- return !we || !X2(we, D, f);
13107
+ return !we || !Y2(we, D, f);
13103
13108
  }), de = (E) => yn(E.formField, E.value), ve = K.filter((E) => !de(E)), Q = K.filter(de), ae = !Xr(r?.status?.name) && f != null && (!R || Z), fe = !Xr(r?.status?.name) && f != null && String(r?.assignedToUserId) === String(f) && (!R || Z), Ne = oe(
13104
13109
  () => [...J].sort((E, me) => Number(E.levelNo ?? 0) - Number(me.levelNo ?? 0)),
13105
13110
  [J]
@@ -13193,7 +13198,7 @@ function rb({ complaintId: e, complaintTypeId: t }) {
13193
13198
  /* @__PURE__ */ o("div", { className: "ca-complaint-details__assignment-section", children: /* @__PURE__ */ m("div", { className: "ca-complaint-details__field", children: [
13194
13199
  /* @__PURE__ */ o("span", { className: "ca-complaint-details__field-label", children: "Assign to" }),
13195
13200
  /* @__PURE__ */ o(
13196
- Z2,
13201
+ eb,
13197
13202
  {
13198
13203
  assignedToUserId: r.assignedToUserId,
13199
13204
  assignedToUserName: ee.find((E) => E.id === String(r.assignedToUserId))?.name || r.assignedToUserName || r.assignedToUser?.name || "",
@@ -13222,7 +13227,7 @@ function rb({ complaintId: e, complaintTypeId: t }) {
13222
13227
  menuClassName: "ca-complaint-details__select-menu",
13223
13228
  placeholder: r.status?.name || "—",
13224
13229
  options: i.map((E) => {
13225
- const Ae = !(String(E.id) === String(r.statusId)) && sA(E.name) && !Qr(U?.canResolve ?? r.currentWorkflowStep?.canResolve);
13230
+ const Ae = !(String(E.id) === String(r.statusId)) && iA(E.name) && !Qr(U?.canResolve ?? r.currentWorkflowStep?.canResolve);
13226
13231
  return { value: E.id, label: E.name, disabled: Ae };
13227
13232
  }),
13228
13233
  onChange: (E) => I(E.target.value)
@@ -13325,7 +13330,7 @@ function rb({ complaintId: e, complaintTypeId: t }) {
13325
13330
  ] }) : null
13326
13331
  ] }),
13327
13332
  /* @__PURE__ */ o(
13328
- tb,
13333
+ nb,
13329
13334
  {
13330
13335
  activities: l.activities,
13331
13336
  fallbackRemarks: yt,
@@ -13345,7 +13350,7 @@ function vs({
13345
13350
  } = {}) {
13346
13351
  const n = Ke(), r = t ?? n.complaintId, a = e ?? n.complaintTypeId;
13347
13352
  return /* @__PURE__ */ o(
13348
- rb,
13353
+ ab,
13349
13354
  {
13350
13355
  complaintId: r,
13351
13356
  complaintTypeId: a
@@ -13368,11 +13373,11 @@ const Je = (e) => {
13368
13373
  }, pt = (e) => {
13369
13374
  const t = Je(e);
13370
13375
  return t > 0 && t < 10 ? `0${t}` : String(t);
13371
- }, We = (e, t = 2) => String(Number(Je(e).toFixed(t))), yr = (e, t) => t > 0 ? `${Math.round(Je(e) / t * 100)}%` : "0%", ab = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], sb = (e) => {
13376
+ }, We = (e, t = 2) => String(Number(Je(e).toFixed(t))), yr = (e, t) => t > 0 ? `${Math.round(Je(e) / t * 100)}%` : "0%", sb = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], ib = (e) => {
13372
13377
  const t = new Date(e);
13373
- return Number.isNaN(t.getTime()) ? String(e ?? "") : `${ab[t.getUTCMonth()]} ${String(t.getUTCFullYear()).slice(-2)}`;
13378
+ return Number.isNaN(t.getTime()) ? String(e ?? "") : `${sb[t.getUTCMonth()]} ${String(t.getUTCFullYear()).slice(-2)}`;
13374
13379
  };
13375
- function ib({ data: e }) {
13380
+ function ob({ data: e }) {
13376
13381
  const t = Je(e?.openBacklog), n = Array.isArray(e?.ageBuckets) ? e.ageBuckets : [], r = e?.oldestComplaint, a = r && typeof r == "object" ? r.complaintId ?? r.id : r, s = r && typeof r == "object" ? r.submissionNumber ?? a : r, l = at(), i = Ve(), { complaintTypeId: c } = Ke(), [d] = tr(), p = ie((g) => g.appDetails?.id), u = xc(
13377
13382
  c,
13378
13383
  d.get("complaintTypeId"),
@@ -13410,7 +13415,7 @@ function ib({ data: e }) {
13410
13415
  children: [
13411
13416
  s,
13412
13417
  " ",
13413
- /* @__PURE__ */ o(VA, { size: 11 })
13418
+ /* @__PURE__ */ o(qA, { size: 11 })
13414
13419
  ]
13415
13420
  }
13416
13421
  ) : null
@@ -13440,7 +13445,7 @@ function Ye({ label: e, value: t, detail: n, className: r = "" }) {
13440
13445
  n ? /* @__PURE__ */ o("span", { className: "ca-analysis-metric__detail", children: n }) : null
13441
13446
  ] });
13442
13447
  }
13443
- function ob({ data: e }) {
13448
+ function lb({ data: e }) {
13444
13449
  const t = Je(e?.total), n = [
13445
13450
  { label: "Total", value: pt(t), detail: "All complaints" },
13446
13451
  { label: "Open", value: pt(e?.open), detail: yr(e?.open, t), action: !0 },
@@ -13453,7 +13458,7 @@ function ob({ data: e }) {
13453
13458
  l ? /* @__PURE__ */ o("span", { className: "ca-analysis-status__arrow", "aria-hidden": "true", children: /* @__PURE__ */ o(nt, { size: 14, className: "ca-analysis-chevron" }) }) : null
13454
13459
  ] }, r)) }) });
13455
13460
  }
13456
- const lb = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], xn = 30, Ho = 435, Ko = [20, 50, 80, 110, 140], Qo = [30, 67, 104, 141], Xo = 141, cb = 111, db = 4, ub = 102, pb = 9, fb = 45, mb = [
13461
+ const cb = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], xn = 30, Ho = 435, Ko = [20, 50, 80, 110, 140], Qo = [30, 67, 104, 141], Xo = 141, db = 111, ub = 4, pb = 102, fb = 9, mb = 45, hb = [
13457
13462
  { key: "closed", color: "var(--ca-analysis-neutral)" },
13458
13463
  { key: "resolved", color: "var(--ca-analysis-green)" },
13459
13464
  { key: "created", color: "var(--ca-analysis-blue)" }
@@ -13466,11 +13471,11 @@ function Yo(e, t = 4) {
13466
13471
  const n = Math.ceil(e / t), r = 10 ** Math.floor(Math.log10(n));
13467
13472
  return [1, 2, 5, 10].map((a) => a * r).find((a) => a >= n);
13468
13473
  }
13469
- function hb(e, t) {
13474
+ function gb(e, t) {
13470
13475
  const n = new Date(e);
13471
13476
  if (Number.isNaN(n.getTime())) return String(e ?? "");
13472
13477
  if (t === "monthly")
13473
- return `${lb[n.getUTCMonth()]} ${String(n.getUTCFullYear()).slice(-2)}`;
13478
+ return `${cb[n.getUTCMonth()]} ${String(n.getUTCFullYear()).slice(-2)}`;
13474
13479
  const r = String(n.getUTCDate()).padStart(2, "0"), a = String(n.getUTCMonth() + 1).padStart(2, "0");
13475
13480
  return `${r}/${a}`;
13476
13481
  }
@@ -13478,14 +13483,14 @@ function wd({ variant: e = "trend", data: t = [], granularity: n = "monthly" })
13478
13483
  const r = e === "trend", a = e === "resolution", s = !r, l = Array.isArray(t) ? t : [], i = r ? l : [], c = Math.max(
13479
13484
  0,
13480
13485
  ...i.flatMap((k) => [an(k.created), an(k.resolved), an(k.closed)])
13481
- ), d = Yo(c), p = d * 4, u = (k) => i.length <= 1 ? (xn + Ho) / 2 : xn + k * ((Ho - xn) / (i.length - 1)), f = (k) => 140 - an(k) / p * 120, y = mb.map((k) => ({
13486
+ ), d = Yo(c), p = d * 4, u = (k) => i.length <= 1 ? (xn + Ho) / 2 : xn + k * ((Ho - xn) / (i.length - 1)), f = (k) => 140 - an(k) / p * 120, y = hb.map((k) => ({
13482
13487
  color: k.color,
13483
13488
  points: i.map(($, H) => [u(H), f($[k.key])])
13484
13489
  })), g = Math.max(1, Math.ceil(i.length / 10)), w = i.map((k, $) => ({
13485
- label: $ % g === 0 ? hb(k.period, n) : "",
13490
+ label: $ % g === 0 ? gb(k.period, n) : "",
13486
13491
  x: u($)
13487
- })), A = a ? db : pb, h = a ? ub : fb, v = s ? a ? l.slice(0, A) : l.slice(-A) : [], _ = Math.max(0, ...v.map((k) => an(k.value))), N = Yo(_, 3), T = N * 3, I = a ? 28 : 20, L = v.map((k, $) => {
13488
- const H = an(k.value), le = H > 0 ? Math.max(H / T * cb, 2) : 0;
13492
+ })), A = a ? ub : fb, h = a ? pb : mb, v = s ? a ? l.slice(0, A) : l.slice(-A) : [], _ = Math.max(0, ...v.map((k) => an(k.value))), N = Yo(_, 3), T = N * 3, I = a ? 28 : 20, L = v.map((k, $) => {
13493
+ const H = an(k.value), le = H > 0 ? Math.max(H / T * db, 2) : 0;
13489
13494
  return {
13490
13495
  label: k.label,
13491
13496
  value: H,
@@ -13561,7 +13566,7 @@ function wd({ variant: e = "trend", data: t = [], granularity: n = "monthly" })
13561
13566
  }
13562
13567
  ) });
13563
13568
  }
13564
- function gb({
13569
+ function Ab({
13565
13570
  period: e,
13566
13571
  /*onPeriodChange,*/
13567
13572
  data: t
@@ -13594,9 +13599,9 @@ const Go = (e) => {
13594
13599
  const t = e?.fromLevelNo == null ? "Unassigned" : `Level ${e.fromLevelNo}`, n = e?.toLevelNo == null ? "Unassigned" : `Level ${e.toLevelNo}`;
13595
13600
  return `${t} - ${n}`;
13596
13601
  };
13597
- function Ab({ data: e }) {
13602
+ function yb({ data: e }) {
13598
13603
  const t = Array.isArray(e?.byLevel) ? e.byLevel : [], n = Array.isArray(e?.byMonth) ? e.byMonth : [], r = Math.max(0, ...t.map((s) => Je(s.count))), a = n.map((s) => ({
13599
- label: sb(s.month),
13604
+ label: ib(s.month),
13600
13605
  value: Je(s.count)
13601
13606
  }));
13602
13607
  return /* @__PURE__ */ m(Ct, { title: "Escalations", action: !0, className: "ca-analysis-escalations", children: [
@@ -13637,7 +13642,7 @@ function Jo({
13637
13642
  /* @__PURE__ */ o("tbody", { children: r.length ? r.map((i, c) => /* @__PURE__ */ o("tr", { children: i.map((d, p) => /* @__PURE__ */ o("td", { className: s?.(p, d), children: d }, `${e}-${c}-${p}`)) }, `${e}-${c}`)) : /* @__PURE__ */ o("tr", { children: /* @__PURE__ */ o("td", { colSpan: n.length, className: "ca-analysis-table-panel__empty", children: /* @__PURE__ */ o("div", { className: "ca-analysis-table-panel__empty-text", children: l }) }) }) })
13638
13643
  ] }) }) });
13639
13644
  }
13640
- function yb({ data: e }) {
13645
+ function bb({ data: e }) {
13641
13646
  const t = Je(e?.totalReassignments) > 0;
13642
13647
  return /* @__PURE__ */ m(Ct, { title: "Reassignments", action: !0, className: "ca-analysis-reassignments", children: [
13643
13648
  t ? /* @__PURE__ */ m("div", { className: "ca-analysis-reassignments__metrics", children: [
@@ -13647,13 +13652,13 @@ function yb({ data: e }) {
13647
13652
  /* @__PURE__ */ o(Ye, { label: "Avg. per Complaint", value: We(e?.averageReassignmentsPerComplaint) })
13648
13653
  ] }) : null,
13649
13654
  t ? null : /* @__PURE__ */ m("div", { className: "ca-analysis-reassignments__empty", children: [
13650
- /* @__PURE__ */ o(y0, { size: 19 }),
13655
+ /* @__PURE__ */ o(b0, { size: 19 }),
13651
13656
  /* @__PURE__ */ o("strong", { children: "No Reassignments" }),
13652
13657
  /* @__PURE__ */ o("span", { children: "There were no complaint reassignments in the selected period." })
13653
13658
  ] })
13654
13659
  ] });
13655
13660
  }
13656
- function bb({ data: e }) {
13661
+ function vb({ data: e }) {
13657
13662
  const t = [
13658
13663
  ["Average", e?.averageResolutionHours],
13659
13664
  ["Median", e?.medianResolutionHours],
@@ -13662,7 +13667,7 @@ function bb({ data: e }) {
13662
13667
  ];
13663
13668
  return /* @__PURE__ */ o(Ct, { title: "Resolution Time", action: !0, className: "ca-analysis-resolution", children: /* @__PURE__ */ o("div", { className: "ca-analysis-resolution__metrics", children: t.map(([n, r], a) => /* @__PURE__ */ o(Ye, { label: n, value: We(r), className: a === 0 ? "is-highlighted" : "" }, n)) }) });
13664
13669
  }
13665
- function vb({ data: e }) {
13670
+ function wb({ data: e }) {
13666
13671
  const t = Je(e?.resolvedWithinSla), n = Je(e?.breachedCount), r = Je(e?.atRiskCount), a = t + n + r, s = a ? t / a * 100 : 0, l = a ? (t + n) / a * 100 : 0, i = a ? {
13667
13672
  background: `conic-gradient(var(--ca-analysis-orange) 0 ${s}%, var(--ca-analysis-positive) ${s}% ${l}%, var(--ca-analysis-yellow) ${l}% 100%)`
13668
13673
  } : { background: "var(--ca-analysis-track)" }, c = [
@@ -13700,7 +13705,7 @@ function vb({ data: e }) {
13700
13705
  /* @__PURE__ */ o("a", { className: "ca-analysis-link", href: "#breached-complaints", children: "View breached complaints ›" })
13701
13706
  ] });
13702
13707
  }
13703
- const Zo = ["Name", "Assigned", "Pending", "Completed", "Breaches", "Avg. Handling"], wb = (e) => [
13708
+ const Zo = ["Name", "Assigned", "Pending", "Completed", "Breaches", "Avg. Handling"], Sb = (e) => [
13704
13709
  e?.name ?? e?.teamName ?? e?.roleName ?? e?.departmentName ?? "-",
13705
13710
  e?.assigned ?? 0,
13706
13711
  e?.pending ?? 0,
@@ -13708,8 +13713,8 @@ const Zo = ["Name", "Assigned", "Pending", "Completed", "Breaches", "Avg. Handli
13708
13713
  e?.slaBreaches ?? 0,
13709
13714
  `${We(e?.averageHandlingHours)} h`
13710
13715
  ];
13711
- function Sb({ data: e, view: t, onViewChange: n }) {
13712
- const r = t === "Teams" ? e?.teams : e?.users, a = (Array.isArray(r) ? r : []).map(wb);
13716
+ function Cb({ data: e, view: t, onViewChange: n }) {
13717
+ const r = t === "Teams" ? e?.teams : e?.users, a = (Array.isArray(r) ? r : []).map(Sb);
13713
13718
  return /* @__PURE__ */ m(Ct, { title: "User & Team Workload", className: "ca-analysis-workload ca-analysis-table-panel", children: [
13714
13719
  /* @__PURE__ */ m("div", { className: "ca-analysis-workload__tabs", role: "group", "aria-label": "Workload view", children: [
13715
13720
  /* @__PURE__ */ o("button", { className: t === "Users" ? "is-selected" : "", onClick: () => n("Users"), type: "button", children: "Users" }),
@@ -13721,14 +13726,14 @@ function Sb({ data: e, view: t, onViewChange: n }) {
13721
13726
  ] }) })
13722
13727
  ] });
13723
13728
  }
13724
- function Cb() {
13729
+ function Nb() {
13725
13730
  const e = je(), { complaintTypeId: t } = Ke(), n = ie((g) => g.analytics) ?? {}, [r, a] = P("Monthly"), [s, l] = P("Users"), [
13726
13731
  i
13727
13732
  /*setDateRange*/
13728
13733
  ] = P({ fromDate: "", toDate: "" }), { fromDate: c, toDate: d } = i, p = r.toLowerCase();
13729
13734
  se(() => {
13730
13735
  if (!t) return;
13731
- const g = Object.values(Jh).map((w) => e(w({
13736
+ const g = Object.values(Zh).map((w) => e(w({
13732
13737
  complaintTypeId: t,
13733
13738
  fromDate: c,
13734
13739
  toDate: d,
@@ -13760,24 +13765,24 @@ function Cb() {
13760
13765
  /* @__PURE__ */ o("div", { className: "ca-analysis-header__controls" })
13761
13766
  ] }),
13762
13767
  /* @__PURE__ */ m("div", { className: "ca-analysis-top", children: [
13763
- /* @__PURE__ */ o(ob, { data: n.overview?.data }),
13764
- /* @__PURE__ */ o(ib, { data: n.backlog?.data })
13768
+ /* @__PURE__ */ o(lb, { data: n.overview?.data }),
13769
+ /* @__PURE__ */ o(ob, { data: n.backlog?.data })
13765
13770
  ] }),
13766
13771
  /* @__PURE__ */ m("div", { className: "ca-analysis-columns", children: [
13767
13772
  /* @__PURE__ */ m("div", { className: "ca-analysis-column", children: [
13768
13773
  /* @__PURE__ */ o(
13769
- gb,
13774
+ Ab,
13770
13775
  {
13771
13776
  period: r,
13772
13777
  onPeriodChange: a,
13773
13778
  data: n.trends?.data
13774
13779
  }
13775
13780
  ),
13776
- /* @__PURE__ */ o(bb, { data: n.resolutionTimes?.data }),
13777
- /* @__PURE__ */ o(Ab, { data: n.escalations?.data })
13781
+ /* @__PURE__ */ o(vb, { data: n.resolutionTimes?.data }),
13782
+ /* @__PURE__ */ o(yb, { data: n.escalations?.data })
13778
13783
  ] }),
13779
13784
  /* @__PURE__ */ m("div", { className: "ca-analysis-column", children: [
13780
- /* @__PURE__ */ o(vb, { data: n.sla?.data }),
13785
+ /* @__PURE__ */ o(wb, { data: n.sla?.data }),
13781
13786
  /* @__PURE__ */ o(
13782
13787
  Jo,
13783
13788
  {
@@ -13800,14 +13805,14 @@ function Cb() {
13800
13805
  }
13801
13806
  ),
13802
13807
  /* @__PURE__ */ o(
13803
- Sb,
13808
+ Cb,
13804
13809
  {
13805
13810
  data: n.workload?.data,
13806
13811
  view: s,
13807
13812
  onViewChange: l
13808
13813
  }
13809
13814
  ),
13810
- /* @__PURE__ */ o(yb, { data: n.reassignments?.data })
13815
+ /* @__PURE__ */ o(bb, { data: n.reassignments?.data })
13811
13816
  ] })
13812
13817
  ] })
13813
13818
  ] });
@@ -13816,15 +13821,15 @@ function Fn({ param: e = "complaintTypeId", children: t }) {
13816
13821
  const n = Ke(), r = String(n[e] ?? "");
13817
13822
  return /^\d+$/.test(r) && Number(r) > 0 ? t : /* @__PURE__ */ o(jt, { to: "/", replace: !0 });
13818
13823
  }
13819
- function Nb() {
13824
+ function _b() {
13820
13825
  const { complaintTypeId: e } = Ke(), { search: t } = Ve(), n = new URLSearchParams(t);
13821
13826
  return n.set("view", "new"), /* @__PURE__ */ o(jt, { to: `/${e}?${n.toString()}`, replace: !0 });
13822
13827
  }
13823
- function _b() {
13828
+ function Lb() {
13824
13829
  const { systemId: e } = Ke(), { search: t } = Ve(), n = new URLSearchParams(t);
13825
13830
  return n.get("step") || n.set("step", "1"), /* @__PURE__ */ o(jt, { to: `/${e}?${n.toString()}`, replace: !0 });
13826
13831
  }
13827
- function Lb({ settingsProps: e }) {
13832
+ function Eb({ settingsProps: e }) {
13828
13833
  const [t] = tr();
13829
13834
  return t.get("step") ? /* @__PURE__ */ o(dd, { systemId: "new", ...e }) : /* @__PURE__ */ o(jt, { to: "/", replace: !0 });
13830
13835
  }
@@ -13832,18 +13837,18 @@ function el() {
13832
13837
  const { complaintTypeId: e, complaintId: t } = Ke(), n = new URLSearchParams();
13833
13838
  return n.set("view", "all"), t && n.set("complaintId", t), /* @__PURE__ */ o(jt, { to: `/${e}?${n.toString()}`, replace: !0 });
13834
13839
  }
13835
- function Eb({ onHeaderActionsChange: e, company: t, storeList: n, settingsProps: r }) {
13840
+ function Tb({ onHeaderActionsChange: e, company: t, storeList: n, settingsProps: r }) {
13836
13841
  const { complaintTypeId: a } = Ke(), [s] = tr(), l = s.get("view");
13837
- if (l === "analytics") return /* @__PURE__ */ o(Cb, {});
13838
- if (l === "new") return /* @__PURE__ */ o(q2, { company: t, storeList: n });
13842
+ if (l === "analytics") return /* @__PURE__ */ o(Nb, {});
13843
+ if (l === "new") return /* @__PURE__ */ o(W2, { company: t, storeList: n });
13839
13844
  if (l === "all") {
13840
13845
  const i = s.get("complaintId");
13841
- return i ? /* @__PURE__ */ o(vs, { complaintTypeId: a, complaintId: i }) : /* @__PURE__ */ o(K2, {});
13846
+ return i ? /* @__PURE__ */ o(vs, { complaintTypeId: a, complaintId: i }) : /* @__PURE__ */ o(Q2, {});
13842
13847
  }
13843
13848
  return !l && s.get("step") ? /* @__PURE__ */ o(dd, { systemId: a, ...r }) : /* @__PURE__ */ o(gs, { onHeaderActionsChange: e });
13844
13849
  }
13845
- function Tb({ pageProps: e = {}, onPublish: t, onStepChange: n, children: r }) {
13846
- const a = r ?? /* @__PURE__ */ o(_0, { ...e }), { pathname: s, search: l } = Ve(), i = {
13850
+ function Ib({ pageProps: e = {}, onPublish: t, onStepChange: n, children: r }) {
13851
+ const a = r ?? /* @__PURE__ */ o(L0, { ...e }), { pathname: s, search: l } = Ve(), i = {
13847
13852
  onPublish: t,
13848
13853
  onStepChange: n,
13849
13854
  company: e.company,
@@ -13855,13 +13860,13 @@ function Tb({ pageProps: e = {}, onPublish: t, onStepChange: n, children: r }) {
13855
13860
  document.querySelector(".ca-root")?.scrollIntoView({ block: "start" });
13856
13861
  }, [s, d, p, u]), /* @__PURE__ */ m(Ou, { children: [
13857
13862
  /* @__PURE__ */ o(qe, { path: "/", element: a }),
13858
- /* @__PURE__ */ o(qe, { path: "/settings/:systemId", element: /* @__PURE__ */ o(_b, {}) }),
13859
- /* @__PURE__ */ o(qe, { path: "new", element: /* @__PURE__ */ o(Lb, { settingsProps: i }) }),
13863
+ /* @__PURE__ */ o(qe, { path: "/settings/:systemId", element: /* @__PURE__ */ o(Lb, {}) }),
13864
+ /* @__PURE__ */ o(qe, { path: "new", element: /* @__PURE__ */ o(Eb, { settingsProps: i }) }),
13860
13865
  /* @__PURE__ */ o(
13861
13866
  qe,
13862
13867
  {
13863
13868
  path: "new/:complaintTypeId",
13864
- element: /* @__PURE__ */ o(Fn, { children: /* @__PURE__ */ o(Nb, {}) })
13869
+ element: /* @__PURE__ */ o(Fn, { children: /* @__PURE__ */ o(_b, {}) })
13865
13870
  }
13866
13871
  ),
13867
13872
  /* @__PURE__ */ o(qe, { path: "all", element: /* @__PURE__ */ o(jt, { to: "/", replace: !0 }) }),
@@ -13894,7 +13899,7 @@ function Tb({ pageProps: e = {}, onPublish: t, onStepChange: n, children: r }) {
13894
13899
  {
13895
13900
  path: ":complaintTypeId",
13896
13901
  element: /* @__PURE__ */ o(Fn, { children: /* @__PURE__ */ o(
13897
- Eb,
13902
+ Tb,
13898
13903
  {
13899
13904
  onHeaderActionsChange: e.onHeaderActionsChange,
13900
13905
  company: e.company,
@@ -13908,14 +13913,14 @@ function Tb({ pageProps: e = {}, onPublish: t, onStepChange: n, children: r }) {
13908
13913
  /* @__PURE__ */ o(qe, { path: "*", element: a })
13909
13914
  ] });
13910
13915
  }
13911
- function Ib({
13916
+ function Rb({
13912
13917
  pageProps: e,
13913
13918
  onPublish: t = (a) => console.log(a),
13914
13919
  onStepChange: n = (a) => console.log(a),
13915
13920
  children: r
13916
13921
  }) {
13917
13922
  return /* @__PURE__ */ o(
13918
- Tb,
13923
+ Ib,
13919
13924
  {
13920
13925
  pageProps: e,
13921
13926
  onPublish: t,
@@ -13924,7 +13929,7 @@ function Ib({
13924
13929
  }
13925
13930
  );
13926
13931
  }
13927
- function Rb({ children: e }) {
13932
+ function kb({ children: e }) {
13928
13933
  const { cssVars: t, darkMode: n, mode: r } = Wl();
13929
13934
  return /* @__PURE__ */ o(
13930
13935
  "div",
@@ -13936,19 +13941,19 @@ function Rb({ children: e }) {
13936
13941
  }
13937
13942
  );
13938
13943
  }
13939
- function kb({ basePath: e, children: t }) {
13944
+ function xb({ basePath: e, children: t }) {
13940
13945
  return zt() ? t : /* @__PURE__ */ o(Yu, { basename: e, children: t });
13941
13946
  }
13942
- function xb({ store: e, children: t }) {
13943
- return /* @__PURE__ */ o($d, { store: e || hg, children: t });
13947
+ function Fb({ store: e, children: t }) {
13948
+ return /* @__PURE__ */ o($d, { store: e || gg, children: t });
13944
13949
  }
13945
- function Fb({ details: e, children: t }) {
13950
+ function Ob({ details: e, children: t }) {
13946
13951
  const n = je();
13947
13952
  return se(() => {
13948
- n(Km(e));
13953
+ n(Qm(e));
13949
13954
  }, [n, e]), t;
13950
13955
  }
13951
- const tl = [], h1 = ({
13956
+ const tl = [], g1 = ({
13952
13957
  apiUrl: e,
13953
13958
  authToken: t,
13954
13959
  publicAccess: n = !1,
@@ -13964,7 +13969,7 @@ const tl = [], h1 = ({
13964
13969
  storeList: f,
13965
13970
  currentUser: y,
13966
13971
  company: g = y?.company,
13967
- featureActions: w = kg,
13972
+ featureActions: w = xg,
13968
13973
  useDemoData: A = !0,
13969
13974
  createLabel: h,
13970
13975
  onCreateForm: v,
@@ -14062,8 +14067,8 @@ const tl = [], h1 = ({
14062
14067
  $
14063
14068
  ]
14064
14069
  );
14065
- return /* @__PURE__ */ o(ed.Provider, { value: g, children: /* @__PURE__ */ o(Dm, { theme: s, darkMode: l, children: /* @__PURE__ */ o(xb, { store: r, children: /* @__PURE__ */ o(Fb, { details: M, children: /* @__PURE__ */ o(Rb, { children: /* @__PURE__ */ o(Lm, { apiUrl: e, authToken: t, publicAccess: n, children: /* @__PURE__ */ o(kb, { basePath: a, children: /* @__PURE__ */ o(
14066
- Ib,
14070
+ return /* @__PURE__ */ o(ed.Provider, { value: g, children: /* @__PURE__ */ o(Mm, { theme: s, darkMode: l, children: /* @__PURE__ */ o(Fb, { store: r, children: /* @__PURE__ */ o(Ob, { details: M, children: /* @__PURE__ */ o(kb, { children: /* @__PURE__ */ o(Em, { apiUrl: e, authToken: t, publicAccess: n, children: /* @__PURE__ */ o(xb, { basePath: a, children: /* @__PURE__ */ o(
14071
+ Rb,
14067
14072
  {
14068
14073
  pageProps: le,
14069
14074
  onPublish: W,
@@ -14072,7 +14077,7 @@ const tl = [], h1 = ({
14072
14077
  }
14073
14078
  ) }) }) }) }) }) }) });
14074
14079
  };
14075
- function g1({ children: e, onClick: t, className: n = "", active: r = !1 }) {
14080
+ function A1({ children: e, onClick: t, className: n = "", active: r = !1 }) {
14076
14081
  return /* @__PURE__ */ o(
14077
14082
  "button",
14078
14083
  {
@@ -14083,7 +14088,7 @@ function g1({ children: e, onClick: t, className: n = "", active: r = !1 }) {
14083
14088
  }
14084
14089
  );
14085
14090
  }
14086
- function A1({
14091
+ function y1({
14087
14092
  checked: e = !1,
14088
14093
  onChange: t,
14089
14094
  name: n,
@@ -14107,7 +14112,7 @@ function A1({
14107
14112
  /* @__PURE__ */ o("span", { className: "ca-radio__mark" })
14108
14113
  ] });
14109
14114
  }
14110
- function y1({ status: e = "inactive", label: t, className: n = "" }) {
14115
+ function b1({ status: e = "inactive", label: t, className: n = "" }) {
14111
14116
  const a = String(e).toLowerCase() === "active", s = t ?? (a ? "Active" : "Inactive");
14112
14117
  return /* @__PURE__ */ o(
14113
14118
  "span",
@@ -14117,7 +14122,7 @@ function y1({ status: e = "inactive", label: t, className: n = "" }) {
14117
14122
  }
14118
14123
  );
14119
14124
  }
14120
- function b1({ size: e = 28, color: t = "currentColor", ...n }) {
14125
+ function v1({ size: e = 28, color: t = "currentColor", ...n }) {
14121
14126
  return /* @__PURE__ */ m(
14122
14127
  "svg",
14123
14128
  {
@@ -14162,8 +14167,8 @@ function b1({ size: e = 28, color: t = "currentColor", ...n }) {
14162
14167
  }
14163
14168
  );
14164
14169
  }
14165
- const Ob = ["Open", "Cancelled", "Closed"];
14166
- function v1({
14170
+ const Db = ["Open", "Cancelled", "Closed"];
14171
+ function w1({
14167
14172
  selectedStatus: e,
14168
14173
  statusNames: t = [],
14169
14174
  selectedCreatedAtSort: n,
@@ -14187,7 +14192,7 @@ function v1({
14187
14192
  return /* @__PURE__ */ m("div", { className: "ca-complaint-table__toolbar", children: [
14188
14193
  /* @__PURE__ */ m("div", { className: "ca-complaint-table__filters", children: [
14189
14194
  /* @__PURE__ */ m("label", { className: "ca-complaint-table__filter", children: [
14190
- /* @__PURE__ */ o(e0, { size: 14, "aria-hidden": "true" }),
14195
+ /* @__PURE__ */ o(t0, { size: 14, "aria-hidden": "true" }),
14191
14196
  /* @__PURE__ */ o("span", { className: "ca-complaint-table__sr-only", children: "Filter by status" }),
14192
14197
  /* @__PURE__ */ o(
14193
14198
  Oe,
@@ -14198,7 +14203,7 @@ function v1({
14198
14203
  allowClear: !0,
14199
14204
  options: [
14200
14205
  { value: "all", label: "Select Status" },
14201
- ...(t.length ? t : Ob).map((A) => ({
14206
+ ...(t.length ? t : Db).map((A) => ({
14202
14207
  value: A,
14203
14208
  label: sa(A)
14204
14209
  }))
@@ -14268,7 +14273,7 @@ function v1({
14268
14273
  "aria-label": "Filter by date",
14269
14274
  title: "Filter by date",
14270
14275
  onClick: u,
14271
- children: /* @__PURE__ */ o(l0, { className: "ca-complaint-table__sort-icon", size: 14, "aria-hidden": "true" })
14276
+ children: /* @__PURE__ */ o(c0, { className: "ca-complaint-table__sort-icon", size: 14, "aria-hidden": "true" })
14272
14277
  }
14273
14278
  )
14274
14279
  ] }),
@@ -14277,7 +14282,7 @@ function v1({
14277
14282
  {
14278
14283
  variant: "outline",
14279
14284
  size: "sm",
14280
- startIcon: /* @__PURE__ */ o($A, { size: 14 }),
14285
+ startIcon: /* @__PURE__ */ o(jA, { size: 14 }),
14281
14286
  onClick: y,
14282
14287
  disabled: g || !w,
14283
14288
  children: "Download Report"
@@ -14285,114 +14290,114 @@ function v1({
14285
14290
  ) })
14286
14291
  ] });
14287
14292
  }
14288
- const w1 = Tt.colors, S1 = Tt.radii, C1 = Tt.spacing, N1 = Tt.typography, _1 = [];
14293
+ const S1 = Tt.colors, C1 = Tt.radii, N1 = Tt.spacing, _1 = Tt.typography, L1 = [];
14289
14294
  export {
14290
- Z0 as AddFormButton,
14291
- $0 as AddTableCard,
14295
+ ey as AddFormButton,
14296
+ j0 as AddTableCard,
14292
14297
  Ct as AnalyticsCard,
14293
14298
  Ye as AnalyticsMetric,
14294
14299
  Jo as AnalyticsTablePanel,
14295
14300
  wd as AnalyticsTrendChart,
14296
- Lm as ApiProvider,
14297
- ib as BacklogAgingPanel,
14301
+ Em as ApiProvider,
14302
+ ob as BacklogAgingPanel,
14298
14303
  Nc as BodyText,
14299
14304
  Pe as Button,
14300
14305
  Ps as COMPLAINT_ENDPOINTS,
14301
- Cg as CardFooter,
14302
- wg as CardHeader,
14303
- T0 as ChevronDownIcon,
14306
+ Ng as CardFooter,
14307
+ Sg as CardHeader,
14308
+ I0 as ChevronDownIcon,
14304
14309
  xr as ChevronRightIcon,
14305
- g1 as Chip,
14306
- I0 as CloseIcon,
14307
- h1 as ComplaintApp,
14308
- _0 as ComplaintManagementPage,
14310
+ A1 as Chip,
14311
+ R0 as CloseIcon,
14312
+ g1 as ComplaintApp,
14313
+ L0 as ComplaintManagementPage,
14309
14314
  dd as ComplaintSettingsPage,
14310
- ob as ComplaintStatusOverview,
14311
- b2 as ComplaintTableGrid,
14312
- v1 as ComplaintTableToolbar,
14313
- gb as ComplaintTrendPanel,
14315
+ lb as ComplaintStatusOverview,
14316
+ v2 as ComplaintTableGrid,
14317
+ w1 as ComplaintTableToolbar,
14318
+ Ab as ComplaintTrendPanel,
14314
14319
  ud as CustomPagination,
14315
- N0 as DEFAULT_PAGE_DESCRIPTION,
14316
- _1 as DEMO_SYSTEMS,
14317
- Ng as DataPoint,
14318
- _g as Divider,
14319
- ey as DragHandleIcon,
14320
+ _0 as DEFAULT_PAGE_DESCRIPTION,
14321
+ L1 as DEMO_SYSTEMS,
14322
+ _g as DataPoint,
14323
+ Lg as Divider,
14324
+ ty as DragHandleIcon,
14320
14325
  Xs as EmptyState,
14321
- Ab as EscalationsPanel,
14326
+ yb as EscalationsPanel,
14322
14327
  Yc as FieldLabel,
14323
- ry as FormCard,
14324
- cy as FormCardGrid,
14328
+ ay as FormCard,
14329
+ dy as FormCardGrid,
14325
14330
  dt as FormField,
14326
14331
  mo as FormInput,
14327
14332
  ho as FormSelect,
14328
- m1 as FormTextarea,
14333
+ h1 as FormTextarea,
14329
14334
  Sc as Heading1,
14330
14335
  Cc as Heading2,
14331
14336
  Qn as Input,
14332
- yg as LabelText,
14333
- b1 as LayersIcon,
14334
- p1 as LinkText,
14337
+ bg as LabelText,
14338
+ v1 as LayersIcon,
14339
+ f1 as LinkText,
14335
14340
  Rt as Loading,
14336
14341
  ka as PageHeader,
14337
- gg as PlusIcon,
14338
- A1 as Radio,
14339
- yb as ReassignmentsPanel,
14340
- bb as ResolutionTimePanel,
14342
+ Ag as PlusIcon,
14343
+ y1 as Radio,
14344
+ bb as ReassignmentsPanel,
14345
+ vb as ResolutionTimePanel,
14341
14346
  os as RoleMultiSelect,
14342
14347
  ft as SETTINGS_STEPS,
14343
- hA as SearchBar,
14344
- mA as SearchIcon,
14348
+ gA as SearchBar,
14349
+ hA as SearchIcon,
14345
14350
  Oe as Select,
14346
14351
  la as SettingsCard,
14347
- E0 as SettingsCardHeader,
14348
- L0 as SettingsWizardProvider,
14349
- vb as SlaCompliancePanel,
14350
- y1 as StatusBadge,
14352
+ T0 as SettingsCardHeader,
14353
+ E0 as SettingsWizardProvider,
14354
+ wb as SlaCompliancePanel,
14355
+ b1 as StatusBadge,
14351
14356
  ca as Stepper,
14352
- fA as SystemCard,
14357
+ mA as SystemCard,
14353
14358
  io as SystemCardGrid,
14354
- j0 as TableCard,
14355
- Q0 as TableCardGrid,
14356
- R0 as Tag,
14357
- Sb as TeamWorkloadPanel,
14359
+ V0 as TableCard,
14360
+ X0 as TableCardGrid,
14361
+ k0 as Tag,
14362
+ Cb as TeamWorkloadPanel,
14358
14363
  Gc as Textarea,
14359
- Dm as ThemeProvider,
14364
+ Mm as ThemeProvider,
14360
14365
  Vs as Toggle,
14361
- Ly as ToggleField,
14366
+ Ey as ToggleField,
14362
14367
  qs as TrashIcon,
14363
14368
  Ht as Typography,
14364
- bg as ValueText,
14365
- f1 as WORKFLOW_SUBSTEPS,
14369
+ vg as ValueText,
14370
+ m1 as WORKFLOW_SUBSTEPS,
14366
14371
  Te as api,
14367
- Qm as appDetailsReducer,
14368
- d1 as clearAppDetails,
14369
- o1 as clearComplaintError,
14370
- u1 as clearId,
14371
- l1 as clearSelectedComplaintResource,
14372
- w1 as colors,
14373
- $m as complaintReducer,
14374
- mg as createComplaintStore,
14372
+ Xm as appDetailsReducer,
14373
+ u1 as clearAppDetails,
14374
+ l1 as clearComplaintError,
14375
+ p1 as clearId,
14376
+ c1 as clearSelectedComplaintResource,
14377
+ S1 as colors,
14378
+ jm as complaintReducer,
14379
+ hg as createComplaintStore,
14375
14380
  Nr as darkTheme,
14376
14381
  Dn as deepMerge,
14377
- h1 as default,
14378
- Em as defaultThemeFile,
14382
+ g1 as default,
14383
+ Tm as defaultThemeFile,
14379
14384
  Lr as deleteFormField,
14380
14385
  ot as getFormFields,
14381
14386
  Tt as lightTheme,
14382
- Tm as normalizeThemeFile,
14383
- S1 as radii,
14384
- c1 as resetComplaintState,
14385
- Im as resolveActiveTheme,
14387
+ Im as normalizeThemeFile,
14388
+ C1 as radii,
14389
+ d1 as resetComplaintState,
14390
+ Rm as resolveActiveTheme,
14386
14391
  _r as saveFormFields,
14387
- Km as setAppDetails,
14392
+ Qm as setAppDetails,
14388
14393
  Vl as setAuthToken,
14389
- Sm as setBaseUrl,
14394
+ Cm as setBaseUrl,
14390
14395
  An as setId,
14391
14396
  Kn as setIsEdit,
14392
- C1 as spacing,
14393
- hg as store,
14394
- Om as themeToCssVars,
14395
- N1 as typography,
14397
+ N1 as spacing,
14398
+ gg as store,
14399
+ Dm as themeToCssVars,
14400
+ _1 as typography,
14396
14401
  Ys as useSettingsWizard,
14397
14402
  Wl as useTheme
14398
14403
  };