@attabot/complaint-app 1.0.40 → 1.0.41
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.
- package/dist/complaint-app.js +116 -95
- package/dist/complaint-app.js.map +1 -1
- package/dist/complaint-app.umd.js +6 -6
- package/dist/complaint-app.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/complaint-app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as h, Fragment as de } from "react/jsx-runtime";
|
|
2
2
|
import * as B from "react";
|
|
3
|
-
import Fa, { createContext as yn, useMemo as
|
|
3
|
+
import Fa, { createContext as yn, useMemo as ne, useContext as hr, forwardRef as Vi, createElement as ia, useState as Z, useEffect as te, useCallback as De, useRef as ye, useLayoutEffect as tc } from "react";
|
|
4
4
|
import { createPortal as nc } from "react-dom";
|
|
5
5
|
import { useDispatch as Ae, useSelector as ee, Provider as rc } from "react-redux";
|
|
6
6
|
import { createAsyncThunk as be, createSlice as ke, combineReducers as ac, configureStore as sc } from "@reduxjs/toolkit";
|
|
@@ -3010,7 +3010,7 @@ const qa = "1.19.0", Ds = 64 * 1024, { isFunction: Fn } = w, Lp = (e) => encodeU
|
|
|
3010
3010
|
C.unsubscribe();
|
|
3011
3011
|
});
|
|
3012
3012
|
let q, Y = null;
|
|
3013
|
-
const
|
|
3013
|
+
const re = () => new K(
|
|
3014
3014
|
"Request body larger than maxBodyLength limit",
|
|
3015
3015
|
K.ERR_BAD_REQUEST,
|
|
3016
3016
|
y,
|
|
@@ -3050,14 +3050,14 @@ const qa = "1.19.0", Ds = 64 * 1024, { isFunction: Fn } = w, Lp = (e) => encodeU
|
|
|
3050
3050
|
if (W && E !== "get" && E !== "head") {
|
|
3051
3051
|
const ae = await g(N);
|
|
3052
3052
|
if (typeof ae == "number" && isFinite(ae) && (q = ae, ae > x))
|
|
3053
|
-
throw
|
|
3053
|
+
throw re();
|
|
3054
3054
|
}
|
|
3055
3055
|
const _ = W && (w.isReadableStream(N) || w.isStream(N)), V = (ae, ve, xe) => ks(
|
|
3056
3056
|
ae,
|
|
3057
3057
|
Ds,
|
|
3058
3058
|
(Te) => {
|
|
3059
3059
|
if (W && Te > x)
|
|
3060
|
-
throw Y =
|
|
3060
|
+
throw Y = re();
|
|
3061
3061
|
ve && ve(Te);
|
|
3062
3062
|
},
|
|
3063
3063
|
xe
|
|
@@ -4069,7 +4069,7 @@ const xo = yn({
|
|
|
4069
4069
|
cssVars: {}
|
|
4070
4070
|
});
|
|
4071
4071
|
function Jp({ theme: e, darkMode: t = !1, children: n }) {
|
|
4072
|
-
const r =
|
|
4072
|
+
const r = ne(() => {
|
|
4073
4073
|
const a = Wp(e, !!t), s = Gp(a);
|
|
4074
4074
|
return {
|
|
4075
4075
|
darkMode: !!t,
|
|
@@ -5313,7 +5313,7 @@ function Sm({
|
|
|
5313
5313
|
/* @__PURE__ */ h("div", { className: "ca-system-card__footer-actions", children: [
|
|
5314
5314
|
o ? /* @__PURE__ */ h(_e, { size: "sm", onClick: f, children: [
|
|
5315
5315
|
t,
|
|
5316
|
-
/* @__PURE__ */ l(Xn, { size: 14, color: "currentColor" })
|
|
5316
|
+
/* @__PURE__ */ l(Xn, { size: 14, color: "currentColor", className: "svg" })
|
|
5317
5317
|
] }) : null,
|
|
5318
5318
|
i ? /* @__PURE__ */ l(
|
|
5319
5319
|
_e,
|
|
@@ -5324,7 +5324,7 @@ function Sm({
|
|
|
5324
5324
|
const S = String(p);
|
|
5325
5325
|
u(mn({ data: !0 })), u(Dt(S)), d(`/settings/${S}?step=1`);
|
|
5326
5326
|
},
|
|
5327
|
-
endIcon: /* @__PURE__ */ l(Xn, { size: 14, color: "currentColor" }),
|
|
5327
|
+
endIcon: /* @__PURE__ */ l(Xn, { size: 14, color: "currentColor", className: "svg" }),
|
|
5328
5328
|
children: n
|
|
5329
5329
|
}
|
|
5330
5330
|
) : null,
|
|
@@ -5335,7 +5335,7 @@ function Sm({
|
|
|
5335
5335
|
onClick: () => {
|
|
5336
5336
|
p == null || p === "" || d(`/complaintmanagement/new/${String(p)}`);
|
|
5337
5337
|
},
|
|
5338
|
-
endIcon: /* @__PURE__ */ l(Xn, { size: 14, color: "currentColor" }),
|
|
5338
|
+
endIcon: /* @__PURE__ */ l(Xn, { size: 14, color: "currentColor", className: "svg" }),
|
|
5339
5339
|
children: "Add complaint"
|
|
5340
5340
|
}
|
|
5341
5341
|
) : null
|
|
@@ -5353,12 +5353,12 @@ function Cm({ label: e, value: t, icon: n, className: r = "" }) {
|
|
|
5353
5353
|
function Nm({ className: e = "" }) {
|
|
5354
5354
|
return /* @__PURE__ */ l("div", { className: `ca-divider ${e}`.trim(), role: "separator", "aria-orientation": "vertical" });
|
|
5355
5355
|
}
|
|
5356
|
-
const _m = "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", Am = "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", Lm = "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", Em = "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", Tm = "
|
|
5357
|
-
{ actionName: "READ", featureModule: { name: "
|
|
5358
|
-
{ actionName: "DELETE", featureModule: { name: "
|
|
5359
|
-
{ actionName: "CREATE", featureModule: { name: "
|
|
5360
|
-
{ actionName: "FULL_ACCESS", featureModule: { name: "
|
|
5361
|
-
{ actionName: "FULL_DATA_ACCESS", featureModule: { name: "
|
|
5356
|
+
const _m = "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", Am = "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", Lm = "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", Em = "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", Tm = "Complaints", Rm = [
|
|
5357
|
+
{ actionName: "READ", featureModule: { name: "Complaints", isActive: !1 }, source: "role:STOREMANAGER" },
|
|
5358
|
+
{ actionName: "DELETE", featureModule: { name: "Complaints", isActive: !1 }, source: "role:STOREMANAGER" },
|
|
5359
|
+
{ actionName: "CREATE", featureModule: { name: "Complaints", isActive: !1 }, source: "role:STOREMANAGER" },
|
|
5360
|
+
{ actionName: "FULL_ACCESS", featureModule: { name: "Complaints", isActive: !0 }, source: "role:STOREMANAGER" },
|
|
5361
|
+
{ actionName: "FULL_DATA_ACCESS", featureModule: { name: "Complaints", isActive: !1 }, source: "role:STOREMANAGER" }
|
|
5362
5362
|
];
|
|
5363
5363
|
function nl(e) {
|
|
5364
5364
|
const t = Array.isArray(e) ? e : [], n = new Set(
|
|
@@ -6453,10 +6453,10 @@ function ng({
|
|
|
6453
6453
|
complaintList: y = [],
|
|
6454
6454
|
loading: b = !1,
|
|
6455
6455
|
error: E = null
|
|
6456
|
-
} = ee((I) => I.complaintType ?? {}), N = ee((I) => I.appDetails?.details?.currentUser), D = ee((I) => I.appDetails?.details?.featureActions), { canViewCards: T, canCreateForm: j, canDelete: X, canOpen: G, hasAnyAccess: $ } =
|
|
6456
|
+
} = ee((I) => I.complaintType ?? {}), N = ee((I) => I.appDetails?.details?.currentUser), D = ee((I) => I.appDetails?.details?.featureActions), { canViewCards: T, canCreateForm: j, canDelete: X, canOpen: G, hasAnyAccess: $ } = ne(
|
|
6457
6457
|
() => nl(D),
|
|
6458
6458
|
[D]
|
|
6459
|
-
), z =
|
|
6459
|
+
), z = ne(() => ol(N), [N]), M = ne(
|
|
6460
6460
|
() => y.filter((I) => va(I, z)),
|
|
6461
6461
|
[y, z]
|
|
6462
6462
|
), H = T || j || X || G, R = !H && M.length > 0;
|
|
@@ -6606,7 +6606,7 @@ function rg({ children: e, initialValues: t }) {
|
|
|
6606
6606
|
...c,
|
|
6607
6607
|
workflow: { ...c.workflow, ...o }
|
|
6608
6608
|
}));
|
|
6609
|
-
}, []), i =
|
|
6609
|
+
}, []), i = ne(
|
|
6610
6610
|
() => ({ state: n, setState: r, update: a, updateWorkflow: s }),
|
|
6611
6611
|
[n, a, s]
|
|
6612
6612
|
);
|
|
@@ -7345,11 +7345,11 @@ function hg({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
|
|
|
7345
7345
|
!S || f === null || f === void 0 || c.current || p(rt(f)).unwrap().then((C) => {
|
|
7346
7346
|
const I = C?.data ?? C;
|
|
7347
7347
|
if (!I || c.current) return;
|
|
7348
|
-
const k = D.current, q = Na(I), Y = Na(k),
|
|
7348
|
+
const k = D.current, q = Na(I), Y = Na(k), re = {
|
|
7349
7349
|
...I,
|
|
7350
7350
|
roleIds: I.roleIds ?? k?.roleIds,
|
|
7351
7351
|
userIds: q.length ? q : Y
|
|
7352
|
-
}, F = fi(
|
|
7352
|
+
}, F = fi(re);
|
|
7353
7353
|
o(F), c.current = F, s({
|
|
7354
7354
|
categoryFormData: F,
|
|
7355
7355
|
categoryRoleIds: F.roles
|
|
@@ -7409,7 +7409,7 @@ function hg({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
|
|
|
7409
7409
|
const [q, Y] = await Promise.all([
|
|
7410
7410
|
p(Ze(I)).unwrap(),
|
|
7411
7411
|
p(qe(I)).unwrap()
|
|
7412
|
-
]),
|
|
7412
|
+
]), re = (Array.isArray(q?.data) ? q.data : Array.isArray(q) ? q : []).map((A) => ({
|
|
7413
7413
|
...A,
|
|
7414
7414
|
roleIds: [],
|
|
7415
7415
|
role: [],
|
|
@@ -7418,7 +7418,7 @@ function hg({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
|
|
|
7418
7418
|
s({
|
|
7419
7419
|
templateId: I,
|
|
7420
7420
|
tatMinutes: Pe(C?.tatMinutes),
|
|
7421
|
-
prefillWorkflowSteps:
|
|
7421
|
+
prefillWorkflowSteps: re,
|
|
7422
7422
|
prefillFormFields: F
|
|
7423
7423
|
});
|
|
7424
7424
|
} catch (q) {
|
|
@@ -7457,8 +7457,8 @@ function hg({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
|
|
|
7457
7457
|
const k = Array.isArray(I) ? C === "userIds" ? Kr(I, z) : [...new Set(I.filter((Y) => Y != null && Y !== ""))] : I, q = { ...i, [C]: k };
|
|
7458
7458
|
j(q, C === "roles" ? { categoryRoleIds: k } : {}), u((Y) => {
|
|
7459
7459
|
if (!Y[C]) return Y;
|
|
7460
|
-
const
|
|
7461
|
-
return delete
|
|
7460
|
+
const re = { ...Y };
|
|
7461
|
+
return delete re[C], re;
|
|
7462
7462
|
});
|
|
7463
7463
|
}, L = i.visibilityType === "PRIVATE_LINK" || i.visibilityType === "PUBLIC_LINK", O = async () => {
|
|
7464
7464
|
const C = {};
|
|
@@ -7503,10 +7503,10 @@ function hg({ stepMeta: e, stepperProps: t, roleList: n = [], userList: r = [] }
|
|
|
7503
7503
|
p(Dt(F?.data?.id ?? F?.id ?? null));
|
|
7504
7504
|
}, onFail: (F) => {
|
|
7505
7505
|
console.log("createComplaintType onFail:", F);
|
|
7506
|
-
} }),
|
|
7507
|
-
if (S && nn.fulfilled.match(
|
|
7506
|
+
} }), re = await p(Y);
|
|
7507
|
+
if (S && nn.fulfilled.match(re) || !S && tn.fulfilled.match(re)) {
|
|
7508
7508
|
if (!S) {
|
|
7509
|
-
const F =
|
|
7509
|
+
const F = re.payload?.data?.id ?? re.payload?.id;
|
|
7510
7510
|
F != null && p(Dt(F));
|
|
7511
7511
|
}
|
|
7512
7512
|
t.onNext?.();
|
|
@@ -7918,7 +7918,7 @@ function bi({ accent: e }) {
|
|
|
7918
7918
|
] });
|
|
7919
7919
|
}
|
|
7920
7920
|
function Ng({ id: e, selectedTableId: t, onSelect: n, setUpdatePayload: r, registerWorkflowActions: a, roleList: s = [], prefillSteps: i = [], tatTotalMinutes: o = 0, showRoleError: c = !1, showEscalationError: d = !1, showRequiredErrors: u = !1, userList: p = [], onAddBlocked: f }) {
|
|
7921
|
-
const S = e != null, [, v] = Z(Jr), [g, m] = Z(Jr), [y, b] = Z([]), [E, N] = Z(S), [D, T] = Z(null), [j, X] = Z(o), G = ye(null), $ = ye(o), z = ye(/* @__PURE__ */ new Set()), [M, H] = Z([]), [R, x] = Z(null), U = Ae(), W =
|
|
7921
|
+
const S = e != null, [, v] = Z(Jr), [g, m] = Z(Jr), [y, b] = Z([]), [E, N] = Z(S), [D, T] = Z(null), [j, X] = Z(o), G = ye(null), $ = ye(o), z = ye(/* @__PURE__ */ new Set()), [M, H] = Z([]), [R, x] = Z(null), U = Ae(), W = ne(() => {
|
|
7922
7922
|
const F = hi(i);
|
|
7923
7923
|
return F.length ? F : Jr;
|
|
7924
7924
|
}, [i]), L = (() => {
|
|
@@ -8034,7 +8034,7 @@ function Ng({ id: e, selectedTableId: t, onSelect: n, setUpdatePayload: r, regis
|
|
|
8034
8034
|
me && me.scrollTo({ left: me.scrollWidth, behavior: "smooth" });
|
|
8035
8035
|
});
|
|
8036
8036
|
});
|
|
8037
|
-
},
|
|
8037
|
+
}, re = (F) => {
|
|
8038
8038
|
z.current.delete(F), O(g.filter((A) => A.id !== F));
|
|
8039
8039
|
};
|
|
8040
8040
|
return E && !g.length ? null : /* @__PURE__ */ h(de, { children: [
|
|
@@ -8054,7 +8054,7 @@ function Ng({ id: e, selectedTableId: t, onSelect: n, setUpdatePayload: r, regis
|
|
|
8054
8054
|
setFormValues: (_) => k(F.id, _),
|
|
8055
8055
|
selected: F.id === t,
|
|
8056
8056
|
onSelect: () => n?.(F),
|
|
8057
|
-
onDelete: () =>
|
|
8057
|
+
onDelete: () => re(F.id),
|
|
8058
8058
|
onChange: (_) => I(F.id, _),
|
|
8059
8059
|
fieldErrors: u || M.includes(F.id) ? _a(F, A) : {}
|
|
8060
8060
|
}
|
|
@@ -8144,12 +8144,12 @@ function Eg({
|
|
|
8144
8144
|
roleList: a = [],
|
|
8145
8145
|
userList: s = []
|
|
8146
8146
|
}) {
|
|
8147
|
-
const { state: i, updateWorkflow: o } = rs(), { workflow: c } = i, d = i.categoryRoleIds, u =
|
|
8147
|
+
const { state: i, updateWorkflow: o } = rs(), { workflow: c } = i, d = i.categoryRoleIds, u = ne(() => {
|
|
8148
8148
|
const O = new Set(
|
|
8149
8149
|
(Array.isArray(d) ? d : []).filter((C) => C != null && C !== "").map(String)
|
|
8150
8150
|
);
|
|
8151
8151
|
return O.size ? a.filter((C) => !O.has(String(C.id ?? C.roleId ?? C.value))) : a;
|
|
8152
|
-
}, [d, a]), p =
|
|
8152
|
+
}, [d, a]), p = ne(() => {
|
|
8153
8153
|
const O = new Set(
|
|
8154
8154
|
(Array.isArray(d) ? d : []).filter((I) => I != null && I !== "").map(String)
|
|
8155
8155
|
);
|
|
@@ -8168,7 +8168,7 @@ function Eg({
|
|
|
8168
8168
|
te(() => {
|
|
8169
8169
|
$ == null || $ === "" || z != null && String(z) === String($) && G?.tatMinutes != null || j(rt($));
|
|
8170
8170
|
}, [j, G?.tatMinutes, z, $]);
|
|
8171
|
-
const H =
|
|
8171
|
+
const H = ne(() => {
|
|
8172
8172
|
const O = Array.isArray(f?.tables) ? f.tables : [];
|
|
8173
8173
|
return gf(O);
|
|
8174
8174
|
}, [f]), R = r ?? c.selectedTableCard ?? null, x = Array.isArray(f?.tables) && f.tables.length ? f.tables.map((O, C) => `L${C + 1}`).join(" > ") : "", U = (O) => {
|
|
@@ -8181,7 +8181,7 @@ function Eg({
|
|
|
8181
8181
|
},
|
|
8182
8182
|
onFail: (C) => {
|
|
8183
8183
|
const I = C?.response?.data ?? C?.payload ?? C, k = [...new Set(
|
|
8184
|
-
Array.isArray(I?.errors) ? I.errors.map((
|
|
8184
|
+
Array.isArray(I?.errors) ? I.errors.map((re) => re?.message).filter(Boolean) : []
|
|
8185
8185
|
)], q = (k.length ? k.join(" ") : null) ?? I?.message ?? I?.error ?? C?.message ?? "Failed to update workflow steps", Y = String(q).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.");
|
|
8186
8186
|
g(hf(Y));
|
|
8187
8187
|
}
|
|
@@ -8199,7 +8199,7 @@ function Eg({
|
|
|
8199
8199
|
}
|
|
8200
8200
|
y(!0);
|
|
8201
8201
|
const C = O.map((q, Y) => _a(q, Y)), I = O.length - 1;
|
|
8202
|
-
if (C.some((q, Y) => Object.entries(q).some(([
|
|
8202
|
+
if (C.some((q, Y) => Object.entries(q).some(([re, F]) => F && !(Y === I && re === "finalLevel")))) {
|
|
8203
8203
|
g("Please complete all required fields in every workflow level.");
|
|
8204
8204
|
return;
|
|
8205
8205
|
}
|
|
@@ -8385,7 +8385,7 @@ function Fg({
|
|
|
8385
8385
|
parentMappings: J,
|
|
8386
8386
|
...se(e) ? { optionColors: V } : {}
|
|
8387
8387
|
});
|
|
8388
|
-
},
|
|
8388
|
+
}, re = (_) => {
|
|
8389
8389
|
W || se(e) && et(_) || (j.current = !1, T({ original: _, draft: _ }));
|
|
8390
8390
|
}, F = () => {
|
|
8391
8391
|
j.current = !0, T(null);
|
|
@@ -8570,9 +8570,9 @@ function Fg({
|
|
|
8570
8570
|
tabIndex: V || W ? void 0 : 0,
|
|
8571
8571
|
title: V || W ? void 0 : "Click to edit",
|
|
8572
8572
|
style: V || W ? void 0 : { cursor: "text" },
|
|
8573
|
-
onClick: () =>
|
|
8573
|
+
onClick: () => re(_),
|
|
8574
8574
|
onKeyDown: (ie) => {
|
|
8575
|
-
ie.key === "Enter" &&
|
|
8575
|
+
ie.key === "Enter" && re(_);
|
|
8576
8576
|
},
|
|
8577
8577
|
children: se(e) ? Sr(_) : _
|
|
8578
8578
|
}
|
|
@@ -8603,7 +8603,7 @@ function kg(e) {
|
|
|
8603
8603
|
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";
|
|
8604
8604
|
}
|
|
8605
8605
|
function xg({ formFields: e = [], selectedField: t = null, onChange: n }) {
|
|
8606
|
-
const r = t, { fieldLabel: a } = ot(), s = (N) => se(r) ? Sr(N) : N, i = se(r) ? r : null, o =
|
|
8606
|
+
const r = t, { fieldLabel: a } = ot(), s = (N) => se(r) ? Sr(N) : N, i = se(r) ? r : null, o = ne(() => {
|
|
8607
8607
|
const N = String(r?.dependsOn || "").trim();
|
|
8608
8608
|
if (!N) return null;
|
|
8609
8609
|
const D = e.filter((T) => String(T.fieldLabel || "").trim() === N);
|
|
@@ -8853,13 +8853,13 @@ function Mg({
|
|
|
8853
8853
|
if (W && L && String(Y.dependsOn || "").trim() === L)
|
|
8854
8854
|
return { ...Y, dependsOn: "", parentMappings: {} };
|
|
8855
8855
|
if (q && L && String(Y.dependsOn || "").trim() === L) {
|
|
8856
|
-
const
|
|
8856
|
+
const re = Object.fromEntries(
|
|
8857
8857
|
Object.entries(Y.parentMappings || {}).map(([F, A]) => [
|
|
8858
8858
|
F,
|
|
8859
8859
|
A === q.from ? q.to : A
|
|
8860
8860
|
])
|
|
8861
8861
|
);
|
|
8862
|
-
return { ...Y, parentMappings:
|
|
8862
|
+
return { ...Y, parentMappings: re };
|
|
8863
8863
|
}
|
|
8864
8864
|
return Y;
|
|
8865
8865
|
}));
|
|
@@ -9232,7 +9232,7 @@ function Zg({ stepMeta: e, stepperProps: t }) {
|
|
|
9232
9232
|
}, []), S = De(async (k) => je(k) ? !1 : (Qr(k) && await n(Hn({
|
|
9233
9233
|
complaintTypeId: s,
|
|
9234
9234
|
fieldId: k.id
|
|
9235
|
-
})).unwrap(), !0), [s, n]), v = ee((k) => k.complaintAppComplaint?.formFields?.data), g = ee((k) => k.complaintAppComplaint?.formFields?.isLoading), m = ee((k) => k.complaintAppComplaint?.formFields?.error), y = ee((k) => k.workflow?.workflowSteps), b =
|
|
9235
|
+
})).unwrap(), !0), [s, n]), v = ee((k) => k.complaintAppComplaint?.formFields?.data), g = ee((k) => k.complaintAppComplaint?.formFields?.isLoading), m = ee((k) => k.complaintAppComplaint?.formFields?.error), y = ee((k) => k.workflow?.workflowSteps), b = ne(
|
|
9236
9236
|
() => Hg(y),
|
|
9237
9237
|
[y]
|
|
9238
9238
|
), E = ye(b), [N, D] = Z(!1);
|
|
@@ -9248,8 +9248,8 @@ function Zg({ stepMeta: e, stepperProps: t }) {
|
|
|
9248
9248
|
let q = !1;
|
|
9249
9249
|
return n(qe(k)).unwrap().then((Y) => {
|
|
9250
9250
|
if (q) return;
|
|
9251
|
-
const
|
|
9252
|
-
if (!(Array.isArray(
|
|
9251
|
+
const re = Array.isArray(Y) ? Y : Y?.data;
|
|
9252
|
+
if (!(Array.isArray(re) && re.length > 0) && d.length) {
|
|
9253
9253
|
const A = dt(d, E.current).map((_, V) => ({
|
|
9254
9254
|
..._,
|
|
9255
9255
|
id: `prefill-${V}`,
|
|
@@ -9258,7 +9258,7 @@ function Zg({ stepMeta: e, stepperProps: t }) {
|
|
|
9258
9258
|
o({ formFields: Nt(A) });
|
|
9259
9259
|
} else {
|
|
9260
9260
|
const A = Nt(
|
|
9261
|
-
dt(Array.isArray(
|
|
9261
|
+
dt(Array.isArray(re) ? re : [], E.current)
|
|
9262
9262
|
);
|
|
9263
9263
|
o({ formFields: A });
|
|
9264
9264
|
}
|
|
@@ -9266,8 +9266,8 @@ function Zg({ stepMeta: e, stepperProps: t }) {
|
|
|
9266
9266
|
}).catch(() => {
|
|
9267
9267
|
if (!q) {
|
|
9268
9268
|
if (d.length) {
|
|
9269
|
-
const Y = dt(d, E.current).map((
|
|
9270
|
-
...
|
|
9269
|
+
const Y = dt(d, E.current).map((re, F) => ({
|
|
9270
|
+
...re,
|
|
9271
9271
|
id: `prefill-${F}`,
|
|
9272
9272
|
isNew: !1
|
|
9273
9273
|
}));
|
|
@@ -9279,19 +9279,19 @@ function Zg({ stepMeta: e, stepperProps: t }) {
|
|
|
9279
9279
|
q = !0;
|
|
9280
9280
|
};
|
|
9281
9281
|
}, [s, n, d, o]);
|
|
9282
|
-
const T =
|
|
9282
|
+
const T = ne(
|
|
9283
9283
|
() => Nt(dt(v, b)),
|
|
9284
9284
|
[v, b]
|
|
9285
|
-
), X = Kt(s) == null || N, G = X ? c : T, $ =
|
|
9285
|
+
), X = Kt(s) == null || N, G = X ? c : T, $ = ne(() => Yh.filter((k) => !G.some((q) => k.fieldKey && q.fieldKey === k.fieldKey || se(k) && se(q) || dr(k) && dr(q) || it(k) && it(q))), [G]), z = ne(
|
|
9286
9286
|
() => er(G),
|
|
9287
9287
|
[G]
|
|
9288
|
-
), M =
|
|
9288
|
+
), M = ne(
|
|
9289
9289
|
() => It(G),
|
|
9290
9290
|
[G]
|
|
9291
|
-
), H = qg(m), R = zh, x = Hh, U =
|
|
9292
|
-
const k = [...b].sort((Y,
|
|
9291
|
+
), H = qg(m), R = zh, x = Hh, U = ne(() => {
|
|
9292
|
+
const k = [...b].sort((Y, re) => (Y.levelNo ?? 0) - (re.levelNo ?? 0)).map((Y) => fr(Y)).filter(Boolean), q = T.flatMap((Y) => Y.hideFor);
|
|
9293
9293
|
return _l([...k, ...q]);
|
|
9294
|
-
}, [T, b]), W =
|
|
9294
|
+
}, [T, b]), W = ne(() => {
|
|
9295
9295
|
const k = new Map(
|
|
9296
9296
|
dt(v, b).map((q) => [Number(q.id), q])
|
|
9297
9297
|
);
|
|
@@ -9314,12 +9314,12 @@ function Zg({ stepMeta: e, stepperProps: t }) {
|
|
|
9314
9314
|
originalFieldName: ie,
|
|
9315
9315
|
isNew: !1
|
|
9316
9316
|
} : J;
|
|
9317
|
-
}).filter((J) => !J.isNew && String(J.fieldLabel || "").trim()),
|
|
9317
|
+
}).filter((J) => !J.isNew && String(J.fieldLabel || "").trim()), re = new Map(
|
|
9318
9318
|
dt(v, b).map((J) => [Number(J.id), J])
|
|
9319
9319
|
);
|
|
9320
9320
|
if (!Y.some((J) => {
|
|
9321
9321
|
if (!Qr(J)) return !0;
|
|
9322
|
-
const ie =
|
|
9322
|
+
const ie = re.get(Number(J.id));
|
|
9323
9323
|
return !ie || Ai(J, ie);
|
|
9324
9324
|
})) {
|
|
9325
9325
|
t.onNext?.();
|
|
@@ -9460,7 +9460,7 @@ function mr({
|
|
|
9460
9460
|
disabled: i = !1,
|
|
9461
9461
|
accept: o
|
|
9462
9462
|
}) {
|
|
9463
|
-
const c = ea(n, a), d =
|
|
9463
|
+
const c = ea(n, a), d = ne(() => ea(n, a).map((u, p) => {
|
|
9464
9464
|
const f = e0(u);
|
|
9465
9465
|
return {
|
|
9466
9466
|
key: `${t0(u)}-${p}`,
|
|
@@ -9832,7 +9832,7 @@ function f0(e = []) {
|
|
|
9832
9832
|
});
|
|
9833
9833
|
}
|
|
9834
9834
|
function m0({ onPublish: e, stepMeta: t, stepperProps: n, storeList: r }) {
|
|
9835
|
-
const a = Ae(), s = ee((T) => T.appDetails?.id), i = ee((T) => T.complaintAppComplaint.formFields.data), o = ee((T) => T.complaintAppComplaint.formFields.isLoading), c = ee((T) => T.complaintAppComplaint.formFields.error), d = ee((T) => T.createComplaint?.isActive), u = ee((T) => T.createComplaint?.activeComplaintTypeId), p = ee((T) => T.createComplaint?.isUpdatingActive), f = ee((T) => T.createComplaint?.activeError), S = ee((T) => T.complaintType?.selected), v = ee((T) => T.complaintType?.complaintList ?? []), g = ee((T) => T.appDetails?.details?.currentUser), m =
|
|
9835
|
+
const a = Ae(), s = ee((T) => T.appDetails?.id), i = ee((T) => T.complaintAppComplaint.formFields.data), o = ee((T) => T.complaintAppComplaint.formFields.isLoading), c = ee((T) => T.complaintAppComplaint.formFields.error), d = ee((T) => T.createComplaint?.isActive), u = ee((T) => T.createComplaint?.activeComplaintTypeId), p = ee((T) => T.createComplaint?.isUpdatingActive), f = ee((T) => T.createComplaint?.activeError), S = ee((T) => T.complaintType?.selected), v = ee((T) => T.complaintType?.complaintList ?? []), g = ee((T) => T.appDetails?.details?.currentUser), m = ne(() => f0(i), [i]), y = ne(() => s == null ? null : S && String(S.id ?? S._id) === String(s) ? S : v.find((T) => String(T?.id ?? T?._id) === String(s)) ?? null, [v, s, S]), b = y != null && (y.isActive != null || y.active != null) ? !!(y.isActive ?? y.active) : null, E = String(u) === String(s) ? !!d : b ?? !0, N = rf(y, g);
|
|
9836
9836
|
return te(() => {
|
|
9837
9837
|
s && a(qe(s));
|
|
9838
9838
|
}, [s, a]), /* @__PURE__ */ h(de, { children: [
|
|
@@ -9924,7 +9924,7 @@ function y0({
|
|
|
9924
9924
|
$.set("step", "1"), S($, { replace: !0 });
|
|
9925
9925
|
}
|
|
9926
9926
|
}, [f, S]);
|
|
9927
|
-
const N =
|
|
9927
|
+
const N = ne(
|
|
9928
9928
|
() => Xe.find(($) => $.id === v) || Xe[0],
|
|
9929
9929
|
[v]
|
|
9930
9930
|
), D = De(
|
|
@@ -10279,7 +10279,7 @@ function na(e, t = 7) {
|
|
|
10279
10279
|
return a.length > t ? `${a.slice(0, t)}...${s}` : n;
|
|
10280
10280
|
}
|
|
10281
10281
|
function x0({ value: e, urlMap: t = {} }) {
|
|
10282
|
-
const n =
|
|
10282
|
+
const n = ne(() => qt(e), [e]), [r, a] = Z(null);
|
|
10283
10283
|
if (!n.length) return "-";
|
|
10284
10284
|
const s = n.filter((f) => typeof f == "string" && xi.test(pt(f))), i = n.filter((f) => typeof f == "string" && !xi.test(pt(f))).map((f) => ({ name: Qt(f), url: t[pt(f)] })), o = s.map((f) => ({ name: Qt(f), url: t[pt(f)] })).filter((f) => f.url), c = o[0], d = () => a(null), u = () => a((f) => f > 0 ? f - 1 : o.length - 1), p = () => a((f) => f < o.length - 1 ? f + 1 : 0);
|
|
10285
10285
|
return /* @__PURE__ */ h(de, { children: [
|
|
@@ -10613,7 +10613,7 @@ function $0() {
|
|
|
10613
10613
|
hasLoaded: p = !1,
|
|
10614
10614
|
requestedComplaintTypeId: f = null,
|
|
10615
10615
|
meta: S = null
|
|
10616
|
-
} = ee((P) => P.complaintManagement ?? {}), v = ee((P) => P.status?.list ?? []), g = ee((P) => P.changeStatus?.updatingId ?? null), m = ee((P) => P.roleUsers ?? {}), y = ee((P) => P.workflow?.workflowSteps), b = ee((P) => P.appDetails?.details?.currentUser), E = ee((P) => P.appDetails?.details?.storeList), N =
|
|
10616
|
+
} = ee((P) => P.complaintManagement ?? {}), v = ee((P) => P.status?.list ?? []), g = ee((P) => P.changeStatus?.updatingId ?? null), m = ee((P) => P.roleUsers ?? {}), y = ee((P) => P.workflow?.workflowSteps), b = ee((P) => P.appDetails?.details?.currentUser), E = ee((P) => P.appDetails?.details?.storeList), N = ne(() => th(E), [E]), D = ne(() => v.map((P) => P.name).filter(Boolean), [v]), T = ne(() => Array.isArray(y) ? y : Array.isArray(y?.steps) ? y.steps : [], [y]), j = ne(() => U0(b), [b]), X = b?.id ?? b?.userId ?? null, G = ee((P) => {
|
|
10617
10617
|
const Q = P.complaintType?.selected, ce = Array.isArray(Q?.accesses) ? Q.accesses.map((Le) => Le?.role?.id ?? Le?.role?.roleId ?? Le?.roleId).map(Number).filter(Number.isFinite) : [];
|
|
10618
10618
|
return ce.length ? ce : (Array.isArray(Q?.roleIds) ? Q.roleIds : Array.isArray(Q?.roles) ? Q.roles : []).map((Le) => Number(Le?.id ?? Le?.roleId ?? Le?.role_id ?? Le)).filter((Le) => Number.isFinite(Le));
|
|
10619
10619
|
}), $ = ee((P) => {
|
|
@@ -10623,7 +10623,7 @@ function $0() {
|
|
|
10623
10623
|
complaintTypeId: null,
|
|
10624
10624
|
value: "all",
|
|
10625
10625
|
explicitlySelected: !1
|
|
10626
|
-
}), [O, C] = Z(1), [I, k] = Z(Mm), [q, Y] = Z([]), [
|
|
10626
|
+
}), [O, C] = Z(1), [I, k] = Z(Mm), [q, Y] = Z([]), [re, F] = Z({}), [A, _] = Z(!1), [V, J] = Z(null), [ie, fe] = Z([]), [me, he] = Z(!1), [ge, ae] = Z({ complaintTypeId: null, field: "updated", preset: "", from: "", to: "" }), ve = String(ge.complaintTypeId) === String(o) && ge.preset ? ge : null, xe = ne(() => A0(ve), [ve]), Te = String(z.complaintTypeId) === String(o) ? z.status : "all", lt = String(H.complaintTypeId) === String(o) ? H.direction : Js, He = String(x.complaintTypeId) === String(o) ? x.level : "all", $e = String(W.complaintTypeId) === String(o) ? W.value : "all", Pl = String(W.complaintTypeId) === String(o) && W.explicitlySelected, Tn = (P, Q = "success") => {
|
|
10627
10627
|
const ce = `${Date.now()}-${Math.random()}`;
|
|
10628
10628
|
fe((Re) => [...Re, { id: ce, message: P, type: Q }]);
|
|
10629
10629
|
}, Ml = (P) => fe((Q) => Q.filter((ce) => ce.id !== P));
|
|
@@ -10652,10 +10652,10 @@ function $0() {
|
|
|
10652
10652
|
}, [o, X, xe, t, I, O, a, $e, lt, He, Te]);
|
|
10653
10653
|
const Ul = G.some(
|
|
10654
10654
|
(P) => j.includes(P)
|
|
10655
|
-
), ct =
|
|
10655
|
+
), ct = ne(() => f != null && o != null && String(f) !== String(o) ? [] : c.map((Q) => ({
|
|
10656
10656
|
...si(ti(Q, v, T), N),
|
|
10657
10657
|
_fields: Q?.formField || []
|
|
10658
|
-
})), [o, c, f, v, T, N]), is =
|
|
10658
|
+
})), [o, c, f, v, T, N]), is = ne(
|
|
10659
10659
|
() => [...new Set(ct.map((P) => P.roleId).filter((P) => P != null).map(String))],
|
|
10660
10660
|
[ct]
|
|
10661
10661
|
);
|
|
@@ -10664,10 +10664,10 @@ function $0() {
|
|
|
10664
10664
|
!m.usersByRoleId?.[P] && !m.loadingByRoleId?.[P] && !m.errorByRoleId?.[P] && t(sn(P));
|
|
10665
10665
|
});
|
|
10666
10666
|
}, [t, is, m.errorByRoleId, m.loadingByRoleId, m.usersByRoleId]);
|
|
10667
|
-
const Bl =
|
|
10667
|
+
const Bl = ne(
|
|
10668
10668
|
() => [...new Set(T.map((P, Q) => Number(P.levelNo ?? Q + 1)))].sort((P, Q) => P - Q),
|
|
10669
10669
|
[T]
|
|
10670
|
-
), Ar =
|
|
10670
|
+
), Ar = ne(
|
|
10671
10671
|
() => ni(ct, q).filter((P) => Pi(
|
|
10672
10672
|
P,
|
|
10673
10673
|
T,
|
|
@@ -10678,12 +10678,12 @@ function $0() {
|
|
|
10678
10678
|
), $l = Qs(Ar), os = (P) => {
|
|
10679
10679
|
const Q = P.assignedToUserId;
|
|
10680
10680
|
return Q == null || Q === "" ? 0 : String(Q) === String(X) ? 1 : 2;
|
|
10681
|
-
}, Wt = ct.map(({ _fields: P, ...Q }) => Q).sort((P, Q) => os(P) - os(Q)), Lr =
|
|
10681
|
+
}, Wt = ct.map(({ _fields: P, ...Q }) => Q).sort((P, Q) => os(P) - os(Q)), Lr = ne(
|
|
10682
10682
|
() => k0(Ar, ct),
|
|
10683
10683
|
[Ar, ct]
|
|
10684
|
-
), jl = Lr.every((P) => Object.prototype.hasOwnProperty.call(
|
|
10684
|
+
), jl = Lr.every((P) => Object.prototype.hasOwnProperty.call(re, P));
|
|
10685
10685
|
te(() => {
|
|
10686
|
-
const P = Lr.filter((ce) => !Object.prototype.hasOwnProperty.call(
|
|
10686
|
+
const P = Lr.filter((ce) => !Object.prototype.hasOwnProperty.call(re, ce));
|
|
10687
10687
|
if (!P.length) return;
|
|
10688
10688
|
let Q = !1;
|
|
10689
10689
|
return Promise.all(P.map(async (ce) => {
|
|
@@ -10698,7 +10698,7 @@ function $0() {
|
|
|
10698
10698
|
}), () => {
|
|
10699
10699
|
Q = !0;
|
|
10700
10700
|
};
|
|
10701
|
-
}, [Lr,
|
|
10701
|
+
}, [Lr, re, t]);
|
|
10702
10702
|
const Rn = qm(S, O, I, Wt.length), ls = !!(o && !u && (!Wt.length && (d || !p) || Wt.length > 0 && !jl)), ql = (P) => {
|
|
10703
10703
|
C(1), M({ complaintTypeId: o, status: P });
|
|
10704
10704
|
}, Vl = (P) => {
|
|
@@ -10755,7 +10755,7 @@ function $0() {
|
|
|
10755
10755
|
canAssign: cs(P),
|
|
10756
10756
|
onAssign: Xl,
|
|
10757
10757
|
onRetryUsers: (Q) => t(sn(Q)),
|
|
10758
|
-
attachmentUrlMap:
|
|
10758
|
+
attachmentUrlMap: re
|
|
10759
10759
|
});
|
|
10760
10760
|
return {
|
|
10761
10761
|
complaintTypeId: o,
|
|
@@ -10841,12 +10841,32 @@ function $0() {
|
|
|
10841
10841
|
};
|
|
10842
10842
|
}
|
|
10843
10843
|
function j0({ onHeaderActionsChange: e }) {
|
|
10844
|
-
const t = $0(), [n, r] = Z(""), a =
|
|
10845
|
-
const
|
|
10846
|
-
return
|
|
10847
|
-
(
|
|
10844
|
+
const t = $0(), [n, r] = Z(""), a = ne(() => {
|
|
10845
|
+
const o = n.trim().toLowerCase();
|
|
10846
|
+
return o ? t.tableProps.tableRows.filter(
|
|
10847
|
+
(c) => Object.values(c).some((d) => String(d ?? "").toLowerCase().includes(o))
|
|
10848
10848
|
) : t.tableProps.tableRows;
|
|
10849
|
-
}, [t.tableProps.tableRows, n]);
|
|
10849
|
+
}, [t.tableProps.tableRows, n]), s = ye({});
|
|
10850
|
+
te(() => {
|
|
10851
|
+
s.current = {
|
|
10852
|
+
onStatusChange: t.onStatusChange,
|
|
10853
|
+
onCreatedAtSortChange: t.onCreatedAtSortChange,
|
|
10854
|
+
onLevelChange: t.onLevelChange,
|
|
10855
|
+
onAssignmentChange: t.onAssignmentChange,
|
|
10856
|
+
onNewComplaint: t.onNewComplaint,
|
|
10857
|
+
onOpenDateFilter: t.onOpenDateFilter,
|
|
10858
|
+
onDownloadReport: t.onDownloadReport
|
|
10859
|
+
};
|
|
10860
|
+
});
|
|
10861
|
+
const i = ne(() => ({
|
|
10862
|
+
onStatusChange: (...o) => s.current.onStatusChange?.(...o),
|
|
10863
|
+
onCreatedAtSortChange: (...o) => s.current.onCreatedAtSortChange?.(...o),
|
|
10864
|
+
onLevelChange: (...o) => s.current.onLevelChange?.(...o),
|
|
10865
|
+
onAssignmentChange: (...o) => s.current.onAssignmentChange?.(...o),
|
|
10866
|
+
onNewComplaint: (...o) => s.current.onNewComplaint?.(...o),
|
|
10867
|
+
onOpenDateFilter: (...o) => s.current.onOpenDateFilter?.(...o),
|
|
10868
|
+
onDownloadReport: (...o) => s.current.onDownloadReport?.(...o)
|
|
10869
|
+
}), []);
|
|
10850
10870
|
return te(() => {
|
|
10851
10871
|
e?.({
|
|
10852
10872
|
search: n,
|
|
@@ -10857,14 +10877,14 @@ function j0({ onHeaderActionsChange: e }) {
|
|
|
10857
10877
|
selectedLevel: t.selectedLevel,
|
|
10858
10878
|
selectedAssignment: t.selectedAssignment,
|
|
10859
10879
|
workflowLevels: t.workflowLevels,
|
|
10860
|
-
onStatusChange:
|
|
10861
|
-
onCreatedAtSortChange:
|
|
10862
|
-
onLevelChange:
|
|
10863
|
-
onAssignmentChange:
|
|
10864
|
-
onNewComplaint:
|
|
10865
|
-
onOpenDateFilter:
|
|
10880
|
+
onStatusChange: i.onStatusChange,
|
|
10881
|
+
onCreatedAtSortChange: i.onCreatedAtSortChange,
|
|
10882
|
+
onLevelChange: i.onLevelChange,
|
|
10883
|
+
onAssignmentChange: i.onAssignmentChange,
|
|
10884
|
+
onNewComplaint: i.onNewComplaint,
|
|
10885
|
+
onOpenDateFilter: i.onOpenDateFilter,
|
|
10866
10886
|
hasDateFilter: t.hasDateFilter,
|
|
10867
|
-
onDownloadReport:
|
|
10887
|
+
onDownloadReport: i.onDownloadReport,
|
|
10868
10888
|
isDownloadingReport: t.isDownloadingReport,
|
|
10869
10889
|
complaintTypeId: t.complaintTypeId,
|
|
10870
10890
|
canCreateComplaint: t.canCreateComplaint,
|
|
@@ -10872,6 +10892,7 @@ function j0({ onHeaderActionsChange: e }) {
|
|
|
10872
10892
|
});
|
|
10873
10893
|
}, [
|
|
10874
10894
|
e,
|
|
10895
|
+
i,
|
|
10875
10896
|
n,
|
|
10876
10897
|
t.selectedStatus,
|
|
10877
10898
|
t.statusNames,
|
|
@@ -11219,7 +11240,7 @@ function Bi({ storeList: e } = {}) {
|
|
|
11219
11240
|
M = !0;
|
|
11220
11241
|
};
|
|
11221
11242
|
}, [s, n, i]);
|
|
11222
|
-
const G =
|
|
11243
|
+
const G = ne(() => o.length > 0, [o]), $ = async (M) => {
|
|
11223
11244
|
if (M.preventDefault(), !i) {
|
|
11224
11245
|
m("A valid complaint type is required.");
|
|
11225
11246
|
return;
|
|
@@ -11327,7 +11348,7 @@ function ny(e, t = 200, n = null) {
|
|
|
11327
11348
|
};
|
|
11328
11349
|
}, [e, t]);
|
|
11329
11350
|
const d = i.key === c, u = d ? i.complaints : sa, p = d ? i.error : null, f = c !== null && !d;
|
|
11330
|
-
return { rows:
|
|
11351
|
+
return { rows: ne(() => {
|
|
11331
11352
|
const v = { tatMinutes: Number(n) || 0 }, g = (y) => {
|
|
11332
11353
|
const b = new Date(y?.createdAt ?? y?.submittedAt ?? y?.date ?? 0).getTime();
|
|
11333
11354
|
return Number.isNaN(b) ? 0 : b;
|
|
@@ -11443,7 +11464,7 @@ function ay({
|
|
|
11443
11464
|
error: s,
|
|
11444
11465
|
onRetry: i
|
|
11445
11466
|
}) {
|
|
11446
|
-
const o =
|
|
11467
|
+
const o = ne(() => {
|
|
11447
11468
|
const d = [
|
|
11448
11469
|
...e.length ? e.map((p, f) => {
|
|
11449
11470
|
const S = p.action ?? p.activityType ?? p.type ?? "", v = p.description ?? p.remarks ?? p.remark ?? p.message ?? p.title ?? (typeof S == "string" ? S : "") ?? "Complaint updated", g = /submit|created/i.test(`${S} ${v}`) ? "created" : "remark", m = [
|
|
@@ -11515,7 +11536,7 @@ function ay({
|
|
|
11515
11536
|
] });
|
|
11516
11537
|
}
|
|
11517
11538
|
function sy({ complaintId: e, complaintTypeId: t }) {
|
|
11518
|
-
const n = Ae(), r = ze(), a = We(), s = a.pathname.startsWith("/querymanagement") ? "querymanagement" : "complaintmanagement", { data: i, isLoading: o, error: c } = ee((A) => A.complaintsGetOne ?? {}), d = ee((A) => A.activityLog ?? {}), u = ee((A) => A.status?.list ?? []), p = ee((A) => A.workflow?.workflowSteps), f = ee((A) => A.appDetails?.details?.currentUser), S = f?.id ?? f?.userId ?? null, { isLoading: v } = ee((A) => A.changeStatus ?? {}), [g, m] = Z({}), [y, b] = Z(null), [E, N] = Z(null), [D, T] = Z(""), [j, X] = Z(""), G =
|
|
11539
|
+
const n = Ae(), r = ze(), a = We(), s = a.pathname.startsWith("/querymanagement") ? "querymanagement" : "complaintmanagement", { data: i, isLoading: o, error: c } = ee((A) => A.complaintsGetOne ?? {}), d = ee((A) => A.activityLog ?? {}), u = ee((A) => A.status?.list ?? []), p = ee((A) => A.workflow?.workflowSteps), f = ee((A) => A.appDetails?.details?.currentUser), S = f?.id ?? f?.userId ?? null, { isLoading: v } = ee((A) => A.changeStatus ?? {}), [g, m] = Z({}), [y, b] = Z(null), [E, N] = Z(null), [D, T] = Z(""), [j, X] = Z(""), G = ne(() => Array.isArray(p) ? p : Array.isArray(p?.steps) ? p.steps : [], [p]);
|
|
11519
11540
|
te(() => {
|
|
11520
11541
|
n(nm()), n(dm());
|
|
11521
11542
|
const A = n(Tt(e)), _ = n(Rt(e));
|
|
@@ -11529,7 +11550,7 @@ function sy({ complaintId: e, complaintTypeId: t }) {
|
|
|
11529
11550
|
A.abort?.(), _.abort?.();
|
|
11530
11551
|
};
|
|
11531
11552
|
}, [t, n]);
|
|
11532
|
-
const $ = Array.isArray(i?.fieldValues) ? i.fieldValues : [], z =
|
|
11553
|
+
const $ = Array.isArray(i?.fieldValues) ? i.fieldValues : [], z = ne(() => {
|
|
11533
11554
|
const A = /* @__PURE__ */ new Set();
|
|
11534
11555
|
return (Array.isArray(i?.fieldValues) ? i.fieldValues : []).forEach((_) => {
|
|
11535
11556
|
En(_?.formField, _?.value) && qt(_.value).forEach((V) => {
|
|
@@ -11554,10 +11575,10 @@ function sy({ complaintId: e, complaintTypeId: t }) {
|
|
|
11554
11575
|
_ = !0;
|
|
11555
11576
|
};
|
|
11556
11577
|
}, [z, g, n]);
|
|
11557
|
-
const M = () => r(a.state?.from || `/${s}/${t}`), H = y ?? (i?.statusId == null ? "" : String(i.statusId)), R = E ?? (i?.currentStepId == null ? "" : String(i.currentStepId)), x =
|
|
11578
|
+
const M = () => r(a.state?.from || `/${s}/${t}`), H = y ?? (i?.statusId == null ? "" : String(i.statusId)), R = E ?? (i?.currentStepId == null ? "" : String(i.currentStepId)), x = ne(
|
|
11558
11579
|
() => G.find((A) => String(A.id) === String(i?.currentStepId)),
|
|
11559
11580
|
[i?.currentStepId, G]
|
|
11560
|
-
), U = x ?? i?.currentWorkflowStep, W = (Array.isArray(f?.roles) ? f.roles : []).map((A) => Number(A?.id ?? A?.roleId ?? A?.role_id ?? A)).filter(Number.isFinite), L =
|
|
11581
|
+
), U = x ?? i?.currentWorkflowStep, W = (Array.isArray(f?.roles) ? f.roles : []).map((A) => Number(A?.id ?? A?.roleId ?? A?.role_id ?? A)).filter(Number.isFinite), L = ne(() => {
|
|
11561
11582
|
if (!U) return !1;
|
|
11562
11583
|
const A = Array.isArray(U.roleIds) && U.roleIds.some((J) => W.includes(Number(J))), _ = Number(f?.id ?? f?.userId), V = [
|
|
11563
11584
|
U.userAssignments,
|
|
@@ -11566,13 +11587,13 @@ function sy({ complaintId: e, complaintTypeId: t }) {
|
|
|
11566
11587
|
U.assignedUsers
|
|
11567
11588
|
].filter(Array.isArray).flat().some((J) => Number(J?.userId ?? J?.id ?? J?.user?.id ?? J) === _);
|
|
11568
11589
|
return A || V;
|
|
11569
|
-
}, [U, f?.id, f?.userId, W]), O = !Qa(i?.status?.name) && S != null && String(i?.assignedToUserId) === String(S) && (!x || L), C =
|
|
11590
|
+
}, [U, f?.id, f?.userId, W]), O = !Qa(i?.status?.name) && S != null && String(i?.assignedToUserId) === String(S) && (!x || L), C = ne(
|
|
11570
11591
|
() => [...G].sort((A, _) => Number(A.levelNo ?? 0) - Number(_.levelNo ?? 0)),
|
|
11571
11592
|
[G]
|
|
11572
|
-
), I =
|
|
11593
|
+
), I = ne(
|
|
11573
11594
|
() => C.find((A) => String(A.id) === String(R)) ?? (String(i?.currentStepId) === String(R) ? i?.currentWorkflowStep : null),
|
|
11574
11595
|
[i?.currentStepId, i?.currentWorkflowStep, R, C]
|
|
11575
|
-
), k = Number(I?.levelNo ?? 0), q =
|
|
11596
|
+
), k = Number(I?.levelNo ?? 0), q = ne(
|
|
11576
11597
|
() => new Set(
|
|
11577
11598
|
C.filter((A, _) => {
|
|
11578
11599
|
const V = Number(A.levelNo ?? _ + 1);
|
|
@@ -11580,7 +11601,7 @@ function sy({ complaintId: e, complaintTypeId: t }) {
|
|
|
11580
11601
|
}).map((A) => String(A.id))
|
|
11581
11602
|
),
|
|
11582
11603
|
[k, I?.canReassign, C]
|
|
11583
|
-
), Y = i?.remarks,
|
|
11604
|
+
), Y = i?.remarks, re = ne(
|
|
11584
11605
|
() => [...Array.isArray(Y) ? Y : []],
|
|
11585
11606
|
[Y]
|
|
11586
11607
|
), F = async () => {
|
|
@@ -11711,7 +11732,7 @@ function sy({ complaintId: e, complaintTypeId: t }) {
|
|
|
11711
11732
|
}
|
|
11712
11733
|
),
|
|
11713
11734
|
j ? /* @__PURE__ */ l("p", { className: "ca-complaint-details__update-error", role: "alert", children: j }) : null,
|
|
11714
|
-
|
|
11735
|
+
re.length ? /* @__PURE__ */ l("ol", { className: "ca-complaint-details__remark-list", children: re.map((A, _) => /* @__PURE__ */ h("li", { children: [
|
|
11715
11736
|
/* @__PURE__ */ h("div", { className: "ca-complaint-details__remark-meta", children: [
|
|
11716
11737
|
/* @__PURE__ */ h("span", { children: [
|
|
11717
11738
|
A.fromLevelNo != null || A.toLevelNo != null ? `L${A.fromLevelNo ?? "—"} - L${A.toLevelNo ?? "—"}` : "",
|
|
@@ -11727,7 +11748,7 @@ function sy({ complaintId: e, complaintTypeId: t }) {
|
|
|
11727
11748
|
ay,
|
|
11728
11749
|
{
|
|
11729
11750
|
activities: d.activities,
|
|
11730
|
-
fallbackRemarks:
|
|
11751
|
+
fallbackRemarks: re,
|
|
11731
11752
|
createdAt: i.createdAt,
|
|
11732
11753
|
isLoading: d.isLoading,
|
|
11733
11754
|
error: d.error,
|
|
@@ -11872,7 +11893,7 @@ const qi = [], Gy = ({
|
|
|
11872
11893
|
onSaveDraft: G,
|
|
11873
11894
|
showSaveButton: $,
|
|
11874
11895
|
showNextButton: z
|
|
11875
|
-
}, x =
|
|
11896
|
+
}, x = ne(
|
|
11876
11897
|
() => ({
|
|
11877
11898
|
featureActions: v,
|
|
11878
11899
|
apiUrl: e,
|