@natoora-libs/core 0.1.16-dev-doug-2 → 0.1.16-dev-doug-4
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/components/index.js
CHANGED
|
@@ -2345,19 +2345,34 @@ var SvgIconSupplierPrices = (props) => /* @__PURE__ */ jsxs35("svg", { viewBox:
|
|
|
2345
2345
|
] });
|
|
2346
2346
|
var IconSupplierPrices_default = SvgIconSupplierPrices;
|
|
2347
2347
|
|
|
2348
|
+
// src/components/icons/IconTableEdit.tsx
|
|
2349
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2350
|
+
var SvgIconTableEdit = (props) => /* @__PURE__ */ jsx51(
|
|
2351
|
+
"svg",
|
|
2352
|
+
{
|
|
2353
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2354
|
+
width: "24",
|
|
2355
|
+
height: "24",
|
|
2356
|
+
viewBox: "0 0 24 24",
|
|
2357
|
+
...props,
|
|
2358
|
+
children: /* @__PURE__ */ jsx51("path", { d: "M21.7 13.35L20.7 14.35L18.65 12.3L19.65 11.3C19.86 11.08 20.21 11.08 20.42 11.3L21.7 12.58C21.92 12.79 21.92 13.14 21.7 13.35ZM12 18.94L18.07 12.88L20.12 14.93L14.06 21H12V18.94ZM4 2H18C18.5304 2 19.0391 2.21071 19.4142 2.58579C19.7893 2.96086 20 3.46957 20 4V8.17L16.17 12H12V16.17L10.17 18H4C3.46957 18 2.96086 17.7893 2.58579 17.4142C2.21071 17.0391 2 16.5304 2 16V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2ZM4 6V10H10V6H4ZM12 6V10H18V6H12ZM4 12V16H10V12H4Z" })
|
|
2359
|
+
}
|
|
2360
|
+
);
|
|
2361
|
+
var IconTableEdit_default = SvgIconTableEdit;
|
|
2362
|
+
|
|
2348
2363
|
// src/components/icons/IconUserManagement.tsx
|
|
2349
|
-
import { jsx as
|
|
2350
|
-
var SvgIconUserManagement = () => /* @__PURE__ */
|
|
2351
|
-
/* @__PURE__ */
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
/* @__PURE__ */
|
|
2354
|
-
/* @__PURE__ */
|
|
2364
|
+
import { jsx as jsx52, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2365
|
+
var SvgIconUserManagement = () => /* @__PURE__ */ jsx52("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", viewBox: "0 0 55 56.7", children: /* @__PURE__ */ jsx52("g", { children: /* @__PURE__ */ jsxs36("g", { id: "Layer_1", children: [
|
|
2366
|
+
/* @__PURE__ */ jsx52("path", { d: "M672.6,1136.6c-1.6,0-3,1.3-3,2.9s1.4,3,3,3,3-1.4,2.9-2.9c0-1.6-1.3-3-2.9-3h0Z" }),
|
|
2367
|
+
/* @__PURE__ */ jsx52("path", { d: "M683.4,1136.5c-1.7,0-3,1.4-3,3s1.4,3,3,3,3-1.4,3-3.1-1.4-2.9-3-2.9h0Z" }),
|
|
2368
|
+
/* @__PURE__ */ jsx52("path", { d: "M672.4,1130.2h.9v1.2c0,1.1.9,2,2,2h6.9c-1.6.3-3,1.3-4,2.7h-.5c-1.5-2.2-3.5-2.7-5.1-2.7s-2.3.3-3.3.9v-3.7h0c0,0,.2-.2.7-.3M687.2,1133.4v1.3c-.6-.5-1.2-.8-1.8-1.1h.3c.4,0,.7,0,1.2-.2.2,0,.3,0,.3,0M688,1118.3c-.7,0-1.3.5-1.4,1.1v12.1c-.4,0-.7,0-.9,0-.4,0-.5-.2-.8-.9-1.6-3.7-3.1-7.4-4.7-11.1-.2-.7-.8-1-1.6-1h-7.3c-1.1,0-1.6.3-1.6,1.6v8.1c-1.6.2-2.4,1-2.4,2.3v6.8c0,.2.2.7.5.7s.3,0,.5,0,.4,0,.6-.4c.8-1.6,2.1-2.4,3.8-2.4s2.9.8,3.7,2.3c0,.3.3.5.7.5h1.9c.5,0,.6-.2.8-.6.8-1.5,2.1-2.3,3.8-2.3s2.9.9,3.7,2.4c.5.9.5,1.8.2,3h5.4c.7,0,1.1-.6,1.1-1,0-.7-.3-1.1-.9-1.4-.2,0-.6,0-.8,0h-2.9v-18.7c-.3-.8-.7-1.2-1.4-1.2h0ZM672.4,1128.2v-7.2h5.5c0,0,.3,0,.3.3,1.4,3.3,2.9,6.6,4.2,9.9h0c-2.3,0-4.7,0-7.2,0v-2.3c0-.8,0-.9-.9-.9-.7,0-1.3,0-1.9,0h0Z" }),
|
|
2369
|
+
/* @__PURE__ */ jsx52("path", { d: "M29.3,26.7c1-1.3,1.5-3,1.5-4.6s-.5-3.3-1.5-4.6c.9-.6,2-.9,3.1-.9,1.5,0,2.9.6,3.9,1.6,1,1,1.6,2.5,1.6,3.9s-.6,2.9-1.6,3.9-2.5,1.6-3.9,1.6c-1.1,0-2.2-.3-3.1-.9ZM17.3,22.1c0-1.1.3-2.2.9-3.1.6-.9,1.5-1.6,2.5-2,1-.4,2.1-.5,3.2-.3,1.1.2,2.1.7,2.8,1.5.8.8,1.3,1.8,1.5,2.8.2,1.1.1,2.2-.3,3.2-.4,1-1.1,1.9-2,2.5-.9.6-2,.9-3.1.9s-2.9-.6-3.9-1.6-1.6-2.5-1.6-3.9ZM20.5,22.1c0,.5.1.9.4,1.3.3.4.6.7,1.1.9.4.2.9.2,1.4.1.5,0,.9-.3,1.2-.7.3-.3.6-.8.7-1.2,0-.5,0-.9-.1-1.4-.2-.4-.5-.8-.9-1.1-.4-.3-.9-.4-1.3-.4s-1.2.3-1.7.7c-.4.4-.7,1.1-.7,1.7ZM34,37.1v3.2H11.8v-3.2s0-6.3,11.1-6.3,11.1,6.3,11.1,6.3ZM30.8,37.1c-.2-1.2-2.1-3.2-7.9-3.2s-7.8,2.1-7.9,3.2M33.9,30.8c1,.8,1.8,1.7,2.3,2.8.6,1.1.9,2.3.9,3.5v3.2h6.3v-3.2s0-5.8-9.6-6.3h0Z" })
|
|
2355
2370
|
] }) }) });
|
|
2356
2371
|
var IconUserManagement_default = SvgIconUserManagement;
|
|
2357
2372
|
|
|
2358
2373
|
// src/components/icons/IconVkc.tsx
|
|
2359
|
-
import { jsx as
|
|
2360
|
-
var SvgIconVkc = (props) => /* @__PURE__ */
|
|
2374
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
2375
|
+
var SvgIconVkc = (props) => /* @__PURE__ */ jsx53("svg", { viewBox: "0 0 55 56.7", ...props, children: /* @__PURE__ */ jsx53(
|
|
2361
2376
|
"path",
|
|
2362
2377
|
{
|
|
2363
2378
|
className: "icon-vkc_svg__st0",
|
|
@@ -2367,16 +2382,16 @@ var SvgIconVkc = (props) => /* @__PURE__ */ jsx52("svg", { viewBox: "0 0 55 56.7
|
|
|
2367
2382
|
var IconVkc_default = SvgIconVkc;
|
|
2368
2383
|
|
|
2369
2384
|
// src/components/icons/SamsaraLogo.tsx
|
|
2370
|
-
import { jsx as
|
|
2385
|
+
import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2371
2386
|
var SvgSamsaraLogo = (props) => /* @__PURE__ */ jsxs37("svg", { viewBox: "0 0 36 52.4", ...props, children: [
|
|
2372
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ jsx54(
|
|
2373
2388
|
"path",
|
|
2374
2389
|
{
|
|
2375
2390
|
className: "samsara_logo_svg__st0",
|
|
2376
2391
|
d: "M27.2 17.6c-.4.9-1 1.6-1.8 2.2-.7.5-1.5.7-2.4.7-.4 0-.7-.3-.7-.6 0-.4.3-.7.6-.7.6 0 1.2-.2 1.7-.5.6-.4 1-.9 1.3-1.6.2-.4.1-.8-.1-1.2-.2-.4-.6-.6-1-.6-.9-.1-1.6.2-2.2.8-.9 1-1.3 2.7-1.5 3.4-.1.6-1.7 7.4-2.3 10.1-.1.4-.5.7-.9.7s-.8-.3-.9-.7l-.2-1c-.7-3.1-2-8.6-2.1-9.1-.2-.7-.5-2.4-1.5-3.4-.6-.6-1.3-.9-2.2-.8-.4 0-.8.2-1 .6-.2.4-.3.8-.1 1.2.3.7.7 1.2 1.3 1.6.5.3 1.1.5 1.7.5.4 0 .7.3.6.7 0 .4-.3.7-.7.6-.9 0-1.7-.3-2.4-.7-.8-.5-1.4-1.2-1.8-2.2-.3-.8-.3-1.7.2-2.5.4-.7 1.2-1.2 2.1-1.3 1.3-.1 2.4.3 3.2 1.2 1.2 1.2 1.7 3.2 1.8 4 .1.5 1.2 5.3 2 8.4.7-3.2 1.8-7.9 2-8.4.2-.8.6-2.8 1.8-4 .8-.9 2-1.3 3.2-1.2.8 0 1.6.5 2.1 1.3s.6 1.7.2 2.5M21.3 7c-.9 0-1.8.2-2.7.5-.4.1-.9.1-1.3 0-.8-.4-1.7-.5-2.6-.5-5.1 0-9.4 5.2-9.4 11.3 0 6.8 5.1 12.8 12.5 14.6h.5c7.4-1.8 12.5-7.8 12.5-14.6C30.7 12.1 26.4 7 21.3 7"
|
|
2377
2392
|
}
|
|
2378
2393
|
),
|
|
2379
|
-
/* @__PURE__ */
|
|
2394
|
+
/* @__PURE__ */ jsx54(
|
|
2380
2395
|
"path",
|
|
2381
2396
|
{
|
|
2382
2397
|
className: "samsara_logo_svg__st0",
|
|
@@ -2424,13 +2439,14 @@ var icons = {
|
|
|
2424
2439
|
SvgIconImport: IconImport_default,
|
|
2425
2440
|
SvgIconSnail: IconSnail_default,
|
|
2426
2441
|
SvgEmptyGlassIcon: EmptyGlassIcon_default,
|
|
2427
|
-
SvgIconUserManagement: IconUserManagement_default
|
|
2442
|
+
SvgIconUserManagement: IconUserManagement_default,
|
|
2443
|
+
SvgIconTableEdit: IconTableEdit_default
|
|
2428
2444
|
};
|
|
2429
2445
|
var icons_default = icons;
|
|
2430
2446
|
|
|
2431
2447
|
// src/components/icons/IconAirplane.tsx
|
|
2432
|
-
import { jsx as
|
|
2433
|
-
var SvgIconAirplane = (props) => /* @__PURE__ */
|
|
2448
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
2449
|
+
var SvgIconAirplane = (props) => /* @__PURE__ */ jsx55(
|
|
2434
2450
|
"svg",
|
|
2435
2451
|
{
|
|
2436
2452
|
width: "24",
|
|
@@ -2439,7 +2455,7 @@ var SvgIconAirplane = (props) => /* @__PURE__ */ jsx54(
|
|
|
2439
2455
|
fill: "none",
|
|
2440
2456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2441
2457
|
...props,
|
|
2442
|
-
children: /* @__PURE__ */
|
|
2458
|
+
children: /* @__PURE__ */ jsx55(
|
|
2443
2459
|
"path",
|
|
2444
2460
|
{
|
|
2445
2461
|
d: "M20.56 3.90998C21.15 4.49998 21.15 5.44998 20.56 6.02998L16.67 9.91998L18.79 19.11L17.38 20.53L13.5 13.1L9.6 17L9.96 19.47L8.89 20.53L7.13 17.35L3.94 15.58L5 14.5L7.5 14.87L11.37 11L3.94 7.08998L5.36 5.67998L14.55 7.79998L18.44 3.90998C19 3.32998 20 3.32998 20.56 3.90998Z",
|
|
@@ -2451,8 +2467,8 @@ var SvgIconAirplane = (props) => /* @__PURE__ */ jsx54(
|
|
|
2451
2467
|
var IconAirplane_default = SvgIconAirplane;
|
|
2452
2468
|
|
|
2453
2469
|
// src/components/icons/IconBicycle.tsx
|
|
2454
|
-
import { jsx as
|
|
2455
|
-
var SvgIconBicycle = () => /* @__PURE__ */
|
|
2470
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
2471
|
+
var SvgIconBicycle = () => /* @__PURE__ */ jsx56(
|
|
2456
2472
|
"svg",
|
|
2457
2473
|
{
|
|
2458
2474
|
width: "24",
|
|
@@ -2460,7 +2476,7 @@ var SvgIconBicycle = () => /* @__PURE__ */ jsx55(
|
|
|
2460
2476
|
viewBox: "0 0 24 24",
|
|
2461
2477
|
fill: "none",
|
|
2462
2478
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2463
|
-
children: /* @__PURE__ */
|
|
2479
|
+
children: /* @__PURE__ */ jsx56(
|
|
2464
2480
|
"path",
|
|
2465
2481
|
{
|
|
2466
2482
|
d: "M19 10C18.44 10 17.91 10.11 17.41 10.28L14.46 4.5H11V6H13.54L14.42 7.72L12 13.13L10.23 8.95C10.5 8.85 10.74 8.58 10.74 8.25C10.74 7.84 10.41 7.5 10 7.5H8C7.58 7.5 7.24 7.84 7.24 8.25C7.24 8.66 7.58 9 8 9H8.61L10.86 14.25H9.92C9.56 11.85 7.5 10 5 10C2.24 10 0 12.24 0 15C0 17.76 2.24 20 5 20C7.5 20 9.56 18.15 9.92 15.75H12.5L15.29 9.43L16.08 10.96C14.82 11.87 14 13.34 14 15C14 17.76 16.24 20 19 20C21.76 20 24 17.76 24 15C24 12.24 21.76 10 19 10ZM5 18.5C3.07 18.5 1.5 16.93 1.5 15C1.5 13.07 3.07 11.5 5 11.5C6.67 11.5 8.07 12.68 8.41 14.25H4V15.75H8.41C8.07 17.32 6.67 18.5 5 18.5ZM19 18.5C17.07 18.5 15.5 16.93 15.5 15C15.5 13.92 16 12.97 16.77 12.33L18.57 15.85L19.89 15.13L18.1 11.63C18.39 11.56 18.69 11.5 19 11.5C20.93 11.5 22.5 13.07 22.5 15C22.5 16.93 20.93 18.5 19 18.5Z",
|
|
@@ -2472,8 +2488,8 @@ var SvgIconBicycle = () => /* @__PURE__ */ jsx55(
|
|
|
2472
2488
|
var IconBicycle_default = SvgIconBicycle;
|
|
2473
2489
|
|
|
2474
2490
|
// src/components/icons/IconBus.tsx
|
|
2475
|
-
import { jsx as
|
|
2476
|
-
var SvgIconBus = () => /* @__PURE__ */
|
|
2491
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
2492
|
+
var SvgIconBus = () => /* @__PURE__ */ jsx57(
|
|
2477
2493
|
"svg",
|
|
2478
2494
|
{
|
|
2479
2495
|
width: "24",
|
|
@@ -2481,7 +2497,7 @@ var SvgIconBus = () => /* @__PURE__ */ jsx56(
|
|
|
2481
2497
|
viewBox: "0 0 24 24",
|
|
2482
2498
|
fill: "none",
|
|
2483
2499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2484
|
-
children: /* @__PURE__ */
|
|
2500
|
+
children: /* @__PURE__ */ jsx57(
|
|
2485
2501
|
"path",
|
|
2486
2502
|
{
|
|
2487
2503
|
d: "M3 4C1.89 4 1 4.89 1 6V17H3C3 17.7956 3.31607 18.5587 3.87868 19.1213C4.44129 19.6839 5.20435 20 6 20C6.79565 20 7.55871 19.6839 8.12132 19.1213C8.68393 18.5587 9 17.7956 9 17H15C15 17.7956 15.3161 18.5587 15.8787 19.1213C16.4413 19.6839 17.2044 20 18 20C18.7956 20 19.5587 19.6839 20.1213 19.1213C20.6839 18.5587 21 17.7956 21 17H23V14C23 12.89 22.11 12 21 12H19V9.5H23V6C23 4.89 22.11 4 21 4H3ZM2.5 5.5H6.5V8H2.5V5.5ZM8 5.5H12V8H8V5.5ZM13.5 5.5H17.5V8H13.5V5.5ZM19 5.5H21.5V8H19V5.5ZM13.5 9.5H17.5V12H13.5V9.5ZM2.5 9.5H6.5V12H2.5V9.5ZM8 9.5H12V12H8V9.5ZM6 15.5C6.39782 15.5 6.77936 15.658 7.06066 15.9393C7.34196 16.2206 7.5 16.6022 7.5 17C7.5 17.3978 7.34196 17.7794 7.06066 18.0607C6.77936 18.342 6.39782 18.5 6 18.5C5.60218 18.5 5.22064 18.342 4.93934 18.0607C4.65804 17.7794 4.5 17.3978 4.5 17C4.5 16.6022 4.65804 16.2206 4.93934 15.9393C5.22064 15.658 5.60218 15.5 6 15.5ZM18 15.5C18.3978 15.5 18.7794 15.658 19.0607 15.9393C19.342 16.2206 19.5 16.6022 19.5 17C19.5 17.3978 19.342 17.7794 19.0607 18.0607C18.7794 18.342 18.3978 18.5 18 18.5C17.6022 18.5 17.2206 18.342 16.9393 18.0607C16.658 17.7794 16.5 17.3978 16.5 17C16.5 16.6022 16.658 16.2206 16.9393 15.9393C17.2206 15.658 17.6022 15.5 18 15.5Z",
|
|
@@ -2493,8 +2509,8 @@ var SvgIconBus = () => /* @__PURE__ */ jsx56(
|
|
|
2493
2509
|
var IconBus_default = SvgIconBus;
|
|
2494
2510
|
|
|
2495
2511
|
// src/components/icons/IconCar.tsx
|
|
2496
|
-
import { jsx as
|
|
2497
|
-
var SvgIconCar = () => /* @__PURE__ */
|
|
2512
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
2513
|
+
var SvgIconCar = () => /* @__PURE__ */ jsx58(
|
|
2498
2514
|
"svg",
|
|
2499
2515
|
{
|
|
2500
2516
|
width: "24",
|
|
@@ -2502,7 +2518,7 @@ var SvgIconCar = () => /* @__PURE__ */ jsx57(
|
|
|
2502
2518
|
viewBox: "0 0 24 24",
|
|
2503
2519
|
fill: "none",
|
|
2504
2520
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2505
|
-
children: /* @__PURE__ */
|
|
2521
|
+
children: /* @__PURE__ */ jsx58(
|
|
2506
2522
|
"path",
|
|
2507
2523
|
{
|
|
2508
2524
|
d: "M3 6H16L19 10H21C22.11 10 23 10.89 23 12V15H21C21 15.7956 20.6839 16.5587 20.1213 17.1213C19.5587 17.6839 18.7956 18 18 18C17.2044 18 16.4413 17.6839 15.8787 17.1213C15.3161 16.5587 15 15.7956 15 15H9C9 15.7956 8.68393 16.5587 8.12132 17.1213C7.55871 17.6839 6.79565 18 6 18C5.20435 18 4.44129 17.6839 3.87868 17.1213C3.31607 16.5587 3 15.7956 3 15H1V8C1 6.89 1.89 6 3 6ZM2.5 7.5V10H10.5V7.5H2.5ZM12 7.5V10H17.14L15.25 7.5H12ZM6 13.5C5.60218 13.5 5.22064 13.658 4.93934 13.9393C4.65804 14.2206 4.5 14.6022 4.5 15C4.5 15.3978 4.65804 15.7794 4.93934 16.0607C5.22064 16.342 5.60218 16.5 6 16.5C6.39782 16.5 6.77936 16.342 7.06066 16.0607C7.34196 15.7794 7.5 15.3978 7.5 15C7.5 14.6022 7.34196 14.2206 7.06066 13.9393C6.77936 13.658 6.39782 13.5 6 13.5ZM18 13.5C17.6022 13.5 17.2206 13.658 16.9393 13.9393C16.658 14.2206 16.5 14.6022 16.5 15C16.5 15.3978 16.658 15.7794 16.9393 16.0607C17.2206 16.342 17.6022 16.5 18 16.5C18.3978 16.5 18.7794 16.342 19.0607 16.0607C19.342 15.7794 19.5 15.3978 19.5 15C19.5 14.6022 19.342 14.2206 19.0607 13.9393C18.7794 13.658 18.3978 13.5 18 13.5Z",
|
|
@@ -2514,8 +2530,8 @@ var SvgIconCar = () => /* @__PURE__ */ jsx57(
|
|
|
2514
2530
|
var IconCar_default = SvgIconCar;
|
|
2515
2531
|
|
|
2516
2532
|
// src/components/icons/IconFork.tsx
|
|
2517
|
-
import { jsx as
|
|
2518
|
-
var SvgIconFork = () => /* @__PURE__ */
|
|
2533
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
2534
|
+
var SvgIconFork = () => /* @__PURE__ */ jsx59(
|
|
2519
2535
|
"svg",
|
|
2520
2536
|
{
|
|
2521
2537
|
width: "20",
|
|
@@ -2523,7 +2539,7 @@ var SvgIconFork = () => /* @__PURE__ */ jsx58(
|
|
|
2523
2539
|
viewBox: "0 0 20 20",
|
|
2524
2540
|
fill: "none",
|
|
2525
2541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2526
|
-
children: /* @__PURE__ */
|
|
2542
|
+
children: /* @__PURE__ */ jsx59(
|
|
2527
2543
|
"path",
|
|
2528
2544
|
{
|
|
2529
2545
|
d: "M2.17501 19.235L0.765015 17.825L10.415 8.16502L10.215 7.94501C9.43501 7.17501 9.43501 5.91501 10.215 5.13501L14.555 0.765015L15.485 1.68501L12.245 4.94501L13.205 5.88501L16.445 2.63501L17.365 3.55501L14.115 6.79502L15.055 7.75502L18.315 4.50501L19.235 5.44501L14.865 9.78502C14.085 10.565 12.825 10.565 12.055 9.78502L11.835 9.58502L2.17501 19.235Z",
|
|
@@ -2535,8 +2551,8 @@ var SvgIconFork = () => /* @__PURE__ */ jsx58(
|
|
|
2535
2551
|
var IconFork_default = SvgIconFork;
|
|
2536
2552
|
|
|
2537
2553
|
// src/components/icons/IconHeart.tsx
|
|
2538
|
-
import { jsx as
|
|
2539
|
-
var SvgIconHeart = () => /* @__PURE__ */
|
|
2554
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
2555
|
+
var SvgIconHeart = () => /* @__PURE__ */ jsx60(
|
|
2540
2556
|
"svg",
|
|
2541
2557
|
{
|
|
2542
2558
|
width: "20",
|
|
@@ -2544,7 +2560,7 @@ var SvgIconHeart = () => /* @__PURE__ */ jsx59(
|
|
|
2544
2560
|
viewBox: "0 0 20 20",
|
|
2545
2561
|
fill: "none",
|
|
2546
2562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2547
|
-
children: /* @__PURE__ */
|
|
2563
|
+
children: /* @__PURE__ */ jsx60(
|
|
2548
2564
|
"path",
|
|
2549
2565
|
{
|
|
2550
2566
|
d: "M10 19.175L8.55 17.855C3.4 13.185 0 10.095 0 6.32501C0 3.23501 2.42 0.825012 5.5 0.825012C7.24 0.825012 8.91 1.63501 10 2.90501C11.09 1.63501 12.76 0.825012 14.5 0.825012C17.58 0.825012 20 3.23501 20 6.32501C20 10.095 16.6 13.185 11.45 17.855L10 19.175Z",
|
|
@@ -2556,8 +2572,8 @@ var SvgIconHeart = () => /* @__PURE__ */ jsx59(
|
|
|
2556
2572
|
var IconHeart_default = SvgIconHeart;
|
|
2557
2573
|
|
|
2558
2574
|
// src/components/icons/IconKnife.tsx
|
|
2559
|
-
import { jsx as
|
|
2560
|
-
var SvgIconKnife = (props) => /* @__PURE__ */
|
|
2575
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
2576
|
+
var SvgIconKnife = (props) => /* @__PURE__ */ jsx61(
|
|
2561
2577
|
"svg",
|
|
2562
2578
|
{
|
|
2563
2579
|
width: "20",
|
|
@@ -2566,7 +2582,7 @@ var SvgIconKnife = (props) => /* @__PURE__ */ jsx60(
|
|
|
2566
2582
|
fill: "none",
|
|
2567
2583
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2568
2584
|
...props,
|
|
2569
|
-
children: /* @__PURE__ */
|
|
2585
|
+
children: /* @__PURE__ */ jsx61(
|
|
2570
2586
|
"path",
|
|
2571
2587
|
{
|
|
2572
2588
|
d: "M18.6191 0C21.9691 5.61 10.4691 18.15 10.4691 18.15L7.5991 15.28L2.9091 20L0.769104 17.86L18.6191 0Z",
|
|
@@ -2578,8 +2594,8 @@ var SvgIconKnife = (props) => /* @__PURE__ */ jsx60(
|
|
|
2578
2594
|
var IconKnife_default = SvgIconKnife;
|
|
2579
2595
|
|
|
2580
2596
|
// src/components/icons/IconSpoon.tsx
|
|
2581
|
-
import { jsx as
|
|
2582
|
-
var SvgIconSpoon = () => /* @__PURE__ */
|
|
2597
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
2598
|
+
var SvgIconSpoon = () => /* @__PURE__ */ jsx62(
|
|
2583
2599
|
"svg",
|
|
2584
2600
|
{
|
|
2585
2601
|
width: "20",
|
|
@@ -2587,7 +2603,7 @@ var SvgIconSpoon = () => /* @__PURE__ */ jsx61(
|
|
|
2587
2603
|
viewBox: "0 0 20 20",
|
|
2588
2604
|
fill: "none",
|
|
2589
2605
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2590
|
-
children: /* @__PURE__ */
|
|
2606
|
+
children: /* @__PURE__ */ jsx62(
|
|
2591
2607
|
"path",
|
|
2592
2608
|
{
|
|
2593
2609
|
d: "M12.093 9.31795L2.33303 19.0779L0.923035 17.6679L10.683 7.90795C9.97303 6.37795 10.473 4.22795 12.063 2.63795C13.973 0.717946 16.713 0.357947 18.173 1.81795C19.643 3.28795 19.283 6.02795 17.363 7.93795C15.773 9.52795 13.623 10.0279 12.093 9.31795Z",
|
|
@@ -2599,8 +2615,8 @@ var SvgIconSpoon = () => /* @__PURE__ */ jsx61(
|
|
|
2599
2615
|
var IconSpoon_default = SvgIconSpoon;
|
|
2600
2616
|
|
|
2601
2617
|
// src/resources/icons/BulkIcon.tsx
|
|
2602
|
-
import { jsx as
|
|
2603
|
-
var BulkIcon = (props) => /* @__PURE__ */
|
|
2618
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
2619
|
+
var BulkIcon = (props) => /* @__PURE__ */ jsx63(
|
|
2604
2620
|
"svg",
|
|
2605
2621
|
{
|
|
2606
2622
|
height: 24,
|
|
@@ -2608,13 +2624,13 @@ var BulkIcon = (props) => /* @__PURE__ */ jsx62(
|
|
|
2608
2624
|
width: 24,
|
|
2609
2625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2610
2626
|
...props,
|
|
2611
|
-
children: /* @__PURE__ */
|
|
2627
|
+
children: /* @__PURE__ */ jsx63("path", { d: "M4 3h14a2 2 0 012 2v7.08a6.01 6.01 0 00-4.32.92H12v4h1.08c-.11.68-.11 1.35 0 2H4a2 2 0 01-2-2V5c0-1.1.9-2 2-2zm0 4v4h6V7H4zm8 0v4h6V7h-6zm-8 6v4h6v-4H4zM18 19h-2l3 3 3-3h-2v-4h-2v4z" })
|
|
2612
2628
|
}
|
|
2613
2629
|
);
|
|
2614
2630
|
var BulkIcon_default = BulkIcon;
|
|
2615
2631
|
|
|
2616
2632
|
// src/components/Buttons/RoundButton/RoundButton.tsx
|
|
2617
|
-
import { jsx as
|
|
2633
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
2618
2634
|
var useStyles11 = makeStyles11()(() => ({
|
|
2619
2635
|
base: {
|
|
2620
2636
|
backgroundColor: "transparent",
|
|
@@ -2732,48 +2748,48 @@ var RoundButton = ({
|
|
|
2732
2748
|
const { classes, cx } = useStyles11();
|
|
2733
2749
|
const iconSize = size === "small" ? "small" : "medium";
|
|
2734
2750
|
const iconComponentMap = {
|
|
2735
|
-
add: /* @__PURE__ */
|
|
2736
|
-
apps: /* @__PURE__ */
|
|
2737
|
-
arrowBack: /* @__PURE__ */
|
|
2738
|
-
arrowForward: /* @__PURE__ */
|
|
2739
|
-
avocado: /* @__PURE__ */
|
|
2740
|
-
backspaceOutlined: /* @__PURE__ */
|
|
2741
|
-
banana: /* @__PURE__ */
|
|
2742
|
-
block: /* @__PURE__ */
|
|
2743
|
-
bulk: /* @__PURE__ */
|
|
2744
|
-
callSplit: /* @__PURE__ */
|
|
2745
|
-
chevronRight: /* @__PURE__ */
|
|
2746
|
-
chevronUp: /* @__PURE__ */
|
|
2747
|
-
chevronDown: /* @__PURE__ */
|
|
2748
|
-
close: /* @__PURE__ */
|
|
2749
|
-
delete: /* @__PURE__ */
|
|
2750
|
-
done: /* @__PURE__ */
|
|
2751
|
-
edit: /* @__PURE__ */
|
|
2752
|
-
email: /* @__PURE__ */
|
|
2753
|
-
grape: /* @__PURE__ */
|
|
2754
|
-
groupAdd: /* @__PURE__ */
|
|
2755
|
-
history: /* @__PURE__ */
|
|
2756
|
-
menu: /* @__PURE__ */
|
|
2757
|
-
threeDots: /* @__PURE__ */
|
|
2758
|
-
notes: /* @__PURE__ */
|
|
2759
|
-
refresh: /* @__PURE__ */
|
|
2760
|
-
remove: /* @__PURE__ */
|
|
2761
|
-
search: /* @__PURE__ */
|
|
2762
|
-
send: /* @__PURE__ */
|
|
2763
|
-
strawberry: /* @__PURE__ */
|
|
2764
|
-
thumbDown: /* @__PURE__ */
|
|
2765
|
-
thumbUp: /* @__PURE__ */
|
|
2766
|
-
undo: /* @__PURE__ */
|
|
2767
|
-
play: /* @__PURE__ */
|
|
2768
|
-
snail: /* @__PURE__ */
|
|
2769
|
-
bus: /* @__PURE__ */
|
|
2770
|
-
spoon: /* @__PURE__ */
|
|
2771
|
-
fork: /* @__PURE__ */
|
|
2772
|
-
car: /* @__PURE__ */
|
|
2773
|
-
knife: /* @__PURE__ */
|
|
2774
|
-
bicycle: /* @__PURE__ */
|
|
2775
|
-
heart: /* @__PURE__ */
|
|
2776
|
-
airplane: /* @__PURE__ */
|
|
2751
|
+
add: /* @__PURE__ */ jsx64(Add3, { fontSize: iconSize }),
|
|
2752
|
+
apps: /* @__PURE__ */ jsx64(Apps, { fontSize: iconSize }),
|
|
2753
|
+
arrowBack: /* @__PURE__ */ jsx64(ArrowBack, { fontSize: iconSize }),
|
|
2754
|
+
arrowForward: /* @__PURE__ */ jsx64(ArrowForward, { fontSize: iconSize }),
|
|
2755
|
+
avocado: /* @__PURE__ */ jsx64(IconAvocado_default, {}),
|
|
2756
|
+
backspaceOutlined: /* @__PURE__ */ jsx64(BackspaceOutlined, { fontSize: iconSize }),
|
|
2757
|
+
banana: /* @__PURE__ */ jsx64(IconBanana_default, {}),
|
|
2758
|
+
block: /* @__PURE__ */ jsx64(Block, { fontSize: iconSize }),
|
|
2759
|
+
bulk: /* @__PURE__ */ jsx64(BulkIcon_default, { fill: colors.contrast }),
|
|
2760
|
+
callSplit: /* @__PURE__ */ jsx64(CallSplit, { fontSize: iconSize }),
|
|
2761
|
+
chevronRight: /* @__PURE__ */ jsx64(ChevronRight2, { fontSize: iconSize }),
|
|
2762
|
+
chevronUp: /* @__PURE__ */ jsx64(KeyboardArrowUp, { fontSize: iconSize }),
|
|
2763
|
+
chevronDown: /* @__PURE__ */ jsx64(KeyboardArrowDown, { fontSize: iconSize }),
|
|
2764
|
+
close: /* @__PURE__ */ jsx64(Close, { fontSize: iconSize }),
|
|
2765
|
+
delete: /* @__PURE__ */ jsx64(Delete2, { fontSize: iconSize, fill: colors.neutral800 }),
|
|
2766
|
+
done: /* @__PURE__ */ jsx64(Done, { fontSize: iconSize }),
|
|
2767
|
+
edit: /* @__PURE__ */ jsx64(Edit2, { fontSize: iconSize }),
|
|
2768
|
+
email: /* @__PURE__ */ jsx64(Email, { fontSize: iconSize }),
|
|
2769
|
+
grape: /* @__PURE__ */ jsx64(IconGrape_default, {}),
|
|
2770
|
+
groupAdd: /* @__PURE__ */ jsx64(GroupAdd, { fontSize: iconSize }),
|
|
2771
|
+
history: /* @__PURE__ */ jsx64(History, { fontSize: iconSize }),
|
|
2772
|
+
menu: /* @__PURE__ */ jsx64(Menu, { fontSize: iconSize }),
|
|
2773
|
+
threeDots: /* @__PURE__ */ jsx64(MoreHoriz, { fontSize: iconSize, color: iconColor }),
|
|
2774
|
+
notes: /* @__PURE__ */ jsx64(Comment, { fontSize: iconSize }),
|
|
2775
|
+
refresh: /* @__PURE__ */ jsx64(Refresh2, { fontSize: iconSize }),
|
|
2776
|
+
remove: /* @__PURE__ */ jsx64(Remove, { fontSize: iconSize }),
|
|
2777
|
+
search: /* @__PURE__ */ jsx64(Search, { fontSize: iconSize }),
|
|
2778
|
+
send: /* @__PURE__ */ jsx64(Send, { fontSize: iconSize }),
|
|
2779
|
+
strawberry: /* @__PURE__ */ jsx64(IconStrawberry_default, {}),
|
|
2780
|
+
thumbDown: /* @__PURE__ */ jsx64(ThumbDown, { fontSize: iconSize }),
|
|
2781
|
+
thumbUp: /* @__PURE__ */ jsx64(ThumbUp, { fontSize: iconSize }),
|
|
2782
|
+
undo: /* @__PURE__ */ jsx64(Undo, { fontSize: iconSize }),
|
|
2783
|
+
play: /* @__PURE__ */ jsx64(PlayArrowRounded, { fontSize: iconSize }),
|
|
2784
|
+
snail: /* @__PURE__ */ jsx64(icons_default.SvgIconSnail, { fontSize: iconSize, fill: colors.muiPrimary }),
|
|
2785
|
+
bus: /* @__PURE__ */ jsx64(IconBus_default, {}),
|
|
2786
|
+
spoon: /* @__PURE__ */ jsx64(IconSpoon_default, {}),
|
|
2787
|
+
fork: /* @__PURE__ */ jsx64(IconFork_default, {}),
|
|
2788
|
+
car: /* @__PURE__ */ jsx64(IconCar_default, {}),
|
|
2789
|
+
knife: /* @__PURE__ */ jsx64(IconKnife_default, {}),
|
|
2790
|
+
bicycle: /* @__PURE__ */ jsx64(IconBicycle_default, {}),
|
|
2791
|
+
heart: /* @__PURE__ */ jsx64(IconHeart_default, {}),
|
|
2792
|
+
airplane: /* @__PURE__ */ jsx64(IconAirplane_default, {})
|
|
2777
2793
|
};
|
|
2778
2794
|
const filteredSize = size === "double" ? void 0 : size;
|
|
2779
2795
|
const handleClick = (e) => {
|
|
@@ -2781,7 +2797,7 @@ var RoundButton = ({
|
|
|
2781
2797
|
onClick(e);
|
|
2782
2798
|
}
|
|
2783
2799
|
};
|
|
2784
|
-
const
|
|
2800
|
+
const Button17 = /* @__PURE__ */ jsx64(
|
|
2785
2801
|
Fab,
|
|
2786
2802
|
{
|
|
2787
2803
|
className: cx(
|
|
@@ -2805,7 +2821,7 @@ var RoundButton = ({
|
|
|
2805
2821
|
children: icon ? iconComponentMap[icon] : children || ""
|
|
2806
2822
|
}
|
|
2807
2823
|
);
|
|
2808
|
-
return tooltip ? /* @__PURE__ */
|
|
2824
|
+
return tooltip ? /* @__PURE__ */ jsx64(Tooltip2, { title: tooltip, children: Button17 }) : Button17;
|
|
2809
2825
|
};
|
|
2810
2826
|
var RoundButton_default = RoundButton;
|
|
2811
2827
|
|
|
@@ -2813,7 +2829,7 @@ var RoundButton_default = RoundButton;
|
|
|
2813
2829
|
import { memo as memo9 } from "react";
|
|
2814
2830
|
import { Pin } from "mdi-material-ui";
|
|
2815
2831
|
import { makeStyles as makeStyles12 } from "tss-react/mui";
|
|
2816
|
-
import { jsx as
|
|
2832
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
2817
2833
|
var useStyles12 = makeStyles12()(() => ({
|
|
2818
2834
|
root: {
|
|
2819
2835
|
opacity: 0.5
|
|
@@ -2824,14 +2840,14 @@ var useStyles12 = makeStyles12()(() => ({
|
|
|
2824
2840
|
}));
|
|
2825
2841
|
var PinButton = () => {
|
|
2826
2842
|
const { classes } = useStyles12();
|
|
2827
|
-
return /* @__PURE__ */
|
|
2843
|
+
return /* @__PURE__ */ jsx65(Pin, { className: classes.root });
|
|
2828
2844
|
};
|
|
2829
2845
|
var Pin_default = memo9(PinButton);
|
|
2830
2846
|
|
|
2831
2847
|
// src/components/Buttons/PinnedApp.tsx
|
|
2832
2848
|
import { Fab as Fab2, Icon } from "@mui/material";
|
|
2833
2849
|
import { makeStyles as makeStyles13 } from "tss-react/mui";
|
|
2834
|
-
import { jsx as
|
|
2850
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
2835
2851
|
var useStyles13 = makeStyles13()((theme) => ({
|
|
2836
2852
|
root: {
|
|
2837
2853
|
"& > *": {
|
|
@@ -2845,12 +2861,12 @@ var useStyles13 = makeStyles13()((theme) => ({
|
|
|
2845
2861
|
function ActionButton(props) {
|
|
2846
2862
|
const { app } = props;
|
|
2847
2863
|
const { classes } = useStyles13();
|
|
2848
|
-
return /* @__PURE__ */
|
|
2864
|
+
return /* @__PURE__ */ jsx66("div", { className: classes.root, children: /* @__PURE__ */ jsx66(Fab2, { color: "primary", "aria-label": "add", children: /* @__PURE__ */ jsx66(Icon, { children: app.icon }) }) });
|
|
2849
2865
|
}
|
|
2850
2866
|
|
|
2851
2867
|
// src/components/CompanyLogo/CompanyLogo.tsx
|
|
2852
2868
|
import { makeStyles as makeStyles14 } from "tss-react/mui";
|
|
2853
|
-
import { jsx as
|
|
2869
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
2854
2870
|
var useStyles14 = makeStyles14()((theme, { imageLogoDarkSmall, imageLogoLightSmall }) => ({
|
|
2855
2871
|
logoSmall: {
|
|
2856
2872
|
height: 46,
|
|
@@ -2883,14 +2899,14 @@ var CompanyLogo = ({
|
|
|
2883
2899
|
[classes.logoLight]: color === "light",
|
|
2884
2900
|
[classes.logoDark]: color === "dark"
|
|
2885
2901
|
});
|
|
2886
|
-
return /* @__PURE__ */
|
|
2902
|
+
return /* @__PURE__ */ jsx67("div", { className });
|
|
2887
2903
|
};
|
|
2888
2904
|
var CompanyLogo_default = CompanyLogo;
|
|
2889
2905
|
|
|
2890
2906
|
// src/components/ConfirmationDialog/ConfirmationDialog.tsx
|
|
2891
2907
|
import { Box as Box8, Dialog as Dialog3, DialogActions as DialogActions2, Divider, Typography as Typography7 } from "@mui/material";
|
|
2892
2908
|
import { makeStyles as makeStyles15 } from "tss-react/mui";
|
|
2893
|
-
import { jsx as
|
|
2909
|
+
import { jsx as jsx68, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2894
2910
|
var useStyles15 = makeStyles15()((theme) => ({
|
|
2895
2911
|
content: {
|
|
2896
2912
|
width: "660px"
|
|
@@ -2928,14 +2944,14 @@ var ConfirmationDialog = ({
|
|
|
2928
2944
|
};
|
|
2929
2945
|
const contentComponent = () => {
|
|
2930
2946
|
if (typeof content === "string") {
|
|
2931
|
-
return /* @__PURE__ */
|
|
2947
|
+
return /* @__PURE__ */ jsx68(Typography7, { variant: "body1", children: content });
|
|
2932
2948
|
}
|
|
2933
2949
|
return content;
|
|
2934
2950
|
};
|
|
2935
2951
|
return /* @__PURE__ */ jsxs38(Dialog3, { onClose: closeModal, open: isOpen, maxWidth: "lg", children: [
|
|
2936
2952
|
/* @__PURE__ */ jsxs38(Box8, { className: classes.content, children: [
|
|
2937
|
-
/* @__PURE__ */
|
|
2938
|
-
/* @__PURE__ */
|
|
2953
|
+
/* @__PURE__ */ jsx68(Typography7, { className: classes.title, variant: "h6", children: title }),
|
|
2954
|
+
/* @__PURE__ */ jsx68(
|
|
2939
2955
|
Box8,
|
|
2940
2956
|
{
|
|
2941
2957
|
sx: {
|
|
@@ -2948,9 +2964,9 @@ var ConfirmationDialog = ({
|
|
|
2948
2964
|
}
|
|
2949
2965
|
)
|
|
2950
2966
|
] }),
|
|
2951
|
-
/* @__PURE__ */
|
|
2967
|
+
/* @__PURE__ */ jsx68(Divider, {}),
|
|
2952
2968
|
/* @__PURE__ */ jsxs38(DialogActions2, { className: classes.footer, children: [
|
|
2953
|
-
!hideCancel && /* @__PURE__ */
|
|
2969
|
+
!hideCancel && /* @__PURE__ */ jsx68(
|
|
2954
2970
|
FilledButton_default,
|
|
2955
2971
|
{
|
|
2956
2972
|
className: classes.button,
|
|
@@ -2960,7 +2976,7 @@ var ConfirmationDialog = ({
|
|
|
2960
2976
|
onClick: closeModal
|
|
2961
2977
|
}
|
|
2962
2978
|
),
|
|
2963
|
-
!hideConfirm && /* @__PURE__ */
|
|
2979
|
+
!hideConfirm && /* @__PURE__ */ jsx68(
|
|
2964
2980
|
FilledButton_default,
|
|
2965
2981
|
{
|
|
2966
2982
|
className: classes.button,
|
|
@@ -2985,7 +3001,7 @@ var ConfirmationDialog_default = ConfirmationDialog;
|
|
|
2985
3001
|
// src/components/ControlledCheckbox/ControlledCheckbox.tsx
|
|
2986
3002
|
import { Controller } from "react-hook-form";
|
|
2987
3003
|
import { Checkbox, FormControlLabel, Tooltip as Tooltip3 } from "@mui/material";
|
|
2988
|
-
import { jsx as
|
|
3004
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
2989
3005
|
var ControlledCheckbox = ({
|
|
2990
3006
|
name,
|
|
2991
3007
|
label,
|
|
@@ -2997,18 +3013,18 @@ var ControlledCheckbox = ({
|
|
|
2997
3013
|
color,
|
|
2998
3014
|
handleChange,
|
|
2999
3015
|
disabled
|
|
3000
|
-
}) => /* @__PURE__ */
|
|
3016
|
+
}) => /* @__PURE__ */ jsx69(
|
|
3001
3017
|
Controller,
|
|
3002
3018
|
{
|
|
3003
3019
|
name,
|
|
3004
3020
|
control,
|
|
3005
3021
|
render: ({ field }) => {
|
|
3006
|
-
const checkbox = /* @__PURE__ */
|
|
3022
|
+
const checkbox = /* @__PURE__ */ jsx69(
|
|
3007
3023
|
FormControlLabel,
|
|
3008
3024
|
{
|
|
3009
3025
|
label,
|
|
3010
3026
|
className,
|
|
3011
|
-
control: /* @__PURE__ */
|
|
3027
|
+
control: /* @__PURE__ */ jsx69(
|
|
3012
3028
|
Checkbox,
|
|
3013
3029
|
{
|
|
3014
3030
|
...field,
|
|
@@ -3022,7 +3038,7 @@ var ControlledCheckbox = ({
|
|
|
3022
3038
|
)
|
|
3023
3039
|
}
|
|
3024
3040
|
);
|
|
3025
|
-
return tooltipDescription ? /* @__PURE__ */
|
|
3041
|
+
return tooltipDescription ? /* @__PURE__ */ jsx69(Tooltip3, { title: tooltipDescription, children: /* @__PURE__ */ jsx69("span", { children: checkbox }) }) : checkbox;
|
|
3026
3042
|
}
|
|
3027
3043
|
}
|
|
3028
3044
|
);
|
|
@@ -3032,7 +3048,7 @@ var ControlledCheckbox_default = ControlledCheckbox;
|
|
|
3032
3048
|
import { Controller as Controller2 } from "react-hook-form";
|
|
3033
3049
|
import { TextField } from "@mui/material";
|
|
3034
3050
|
import { makeStyles as makeStyles16 } from "tss-react/mui";
|
|
3035
|
-
import { jsx as
|
|
3051
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
3036
3052
|
var useStyles16 = makeStyles16()(() => ({
|
|
3037
3053
|
selectInput: {
|
|
3038
3054
|
minWidth: 122
|
|
@@ -3065,12 +3081,12 @@ var ControlledNumberInput = ({
|
|
|
3065
3081
|
"Backspace",
|
|
3066
3082
|
"Tab"
|
|
3067
3083
|
].includes(input.key) && input.preventDefault();
|
|
3068
|
-
return /* @__PURE__ */
|
|
3084
|
+
return /* @__PURE__ */ jsx70(
|
|
3069
3085
|
Controller2,
|
|
3070
3086
|
{
|
|
3071
3087
|
control,
|
|
3072
3088
|
name,
|
|
3073
|
-
render: ({ field: { onChange, value }, fieldState }) => /* @__PURE__ */
|
|
3089
|
+
render: ({ field: { onChange, value }, fieldState }) => /* @__PURE__ */ jsx70(
|
|
3074
3090
|
TextField,
|
|
3075
3091
|
{
|
|
3076
3092
|
variant: "standard",
|
|
@@ -3116,7 +3132,7 @@ import {
|
|
|
3116
3132
|
TextField as TextField2
|
|
3117
3133
|
} from "@mui/material";
|
|
3118
3134
|
import { makeStyles as makeStyles17 } from "tss-react/mui";
|
|
3119
|
-
import { jsx as
|
|
3135
|
+
import { jsx as jsx71, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
3120
3136
|
var convertUnderscoreToHyphen = (str) => str.replace(/_/g, "-");
|
|
3121
3137
|
var useStyles17 = makeStyles17()((theme) => ({
|
|
3122
3138
|
textFieldButtons: {
|
|
@@ -3217,17 +3233,17 @@ var ControlledNumericField = ({
|
|
|
3217
3233
|
decrementValue(field)();
|
|
3218
3234
|
}
|
|
3219
3235
|
};
|
|
3220
|
-
return /* @__PURE__ */
|
|
3236
|
+
return /* @__PURE__ */ jsx71(
|
|
3221
3237
|
Box9,
|
|
3222
3238
|
{
|
|
3223
3239
|
className,
|
|
3224
3240
|
"data-testid": dataTestId || `${convertUnderscoreToHyphen(fieldName)}`,
|
|
3225
|
-
children: /* @__PURE__ */
|
|
3241
|
+
children: /* @__PURE__ */ jsx71(
|
|
3226
3242
|
Controller3,
|
|
3227
3243
|
{
|
|
3228
3244
|
control,
|
|
3229
3245
|
name: fieldName,
|
|
3230
|
-
render: ({ field, fieldState }) => /* @__PURE__ */
|
|
3246
|
+
render: ({ field, fieldState }) => /* @__PURE__ */ jsx71(
|
|
3231
3247
|
TextField2,
|
|
3232
3248
|
{
|
|
3233
3249
|
...field,
|
|
@@ -3262,25 +3278,25 @@ var ControlledNumericField = ({
|
|
|
3262
3278
|
slotProps: {
|
|
3263
3279
|
htmlInput: { min, max, step },
|
|
3264
3280
|
input: {
|
|
3265
|
-
endAdornment: /* @__PURE__ */
|
|
3266
|
-
/* @__PURE__ */
|
|
3281
|
+
endAdornment: /* @__PURE__ */ jsx71(InputAdornment, { position: "end", children: /* @__PURE__ */ jsxs39(Box9, { className: classes.textFieldButtons, children: [
|
|
3282
|
+
/* @__PURE__ */ jsx71(
|
|
3267
3283
|
IconButton2,
|
|
3268
3284
|
{
|
|
3269
3285
|
disableRipple: true,
|
|
3270
3286
|
className: classes.arrowButton,
|
|
3271
3287
|
onClick: incrementValue(field),
|
|
3272
3288
|
"data-testid": "arrow-up",
|
|
3273
|
-
children: /* @__PURE__ */
|
|
3289
|
+
children: /* @__PURE__ */ jsx71(KeyboardArrowUpIcon, { sx: { fontSize: 15 } })
|
|
3274
3290
|
}
|
|
3275
3291
|
),
|
|
3276
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsx71(
|
|
3277
3293
|
IconButton2,
|
|
3278
3294
|
{
|
|
3279
3295
|
disableRipple: true,
|
|
3280
3296
|
className: classes.arrowButton,
|
|
3281
3297
|
onClick: decrementValue(field),
|
|
3282
3298
|
"data-testid": "arrow-down",
|
|
3283
|
-
children: /* @__PURE__ */
|
|
3299
|
+
children: /* @__PURE__ */ jsx71(KeyboardArrowDownIcon, { sx: { fontSize: 15 } })
|
|
3284
3300
|
}
|
|
3285
3301
|
)
|
|
3286
3302
|
] }) })
|
|
@@ -3299,7 +3315,7 @@ var ControlledNumericField_default = ControlledNumericField;
|
|
|
3299
3315
|
import { Controller as Controller4 } from "react-hook-form";
|
|
3300
3316
|
import { FormControl, FormHelperText, InputLabel, Select } from "@mui/material";
|
|
3301
3317
|
import { makeStyles as makeStyles18 } from "tss-react/mui";
|
|
3302
|
-
import { jsx as
|
|
3318
|
+
import { jsx as jsx72, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3303
3319
|
var useStyles18 = makeStyles18()(() => ({
|
|
3304
3320
|
selectInput: {
|
|
3305
3321
|
minWidth: 122
|
|
@@ -3316,7 +3332,7 @@ var ControlledSelectWithArray = ({
|
|
|
3316
3332
|
revalidateFormFunction
|
|
3317
3333
|
}) => {
|
|
3318
3334
|
const { classes } = useStyles18();
|
|
3319
|
-
return /* @__PURE__ */
|
|
3335
|
+
return /* @__PURE__ */ jsx72(
|
|
3320
3336
|
Controller4,
|
|
3321
3337
|
{
|
|
3322
3338
|
control,
|
|
@@ -3330,7 +3346,7 @@ var ControlledSelectWithArray = ({
|
|
|
3330
3346
|
className: className || classes.selectInput,
|
|
3331
3347
|
variant: "standard",
|
|
3332
3348
|
children: [
|
|
3333
|
-
/* @__PURE__ */
|
|
3349
|
+
/* @__PURE__ */ jsx72(InputLabel, { shrink: true, error: !!fieldState.error, children: label }),
|
|
3334
3350
|
/* @__PURE__ */ jsxs40(
|
|
3335
3351
|
Select,
|
|
3336
3352
|
{
|
|
@@ -3350,12 +3366,12 @@ var ControlledSelectWithArray = ({
|
|
|
3350
3366
|
},
|
|
3351
3367
|
error: !!fieldState.error,
|
|
3352
3368
|
children: [
|
|
3353
|
-
/* @__PURE__ */
|
|
3354
|
-
options?.map((item) => /* @__PURE__ */
|
|
3369
|
+
/* @__PURE__ */ jsx72("option", { "aria-label": "None" }),
|
|
3370
|
+
options?.map((item) => /* @__PURE__ */ jsx72("option", { value: item, children: item }, item))
|
|
3355
3371
|
]
|
|
3356
3372
|
}
|
|
3357
3373
|
),
|
|
3358
|
-
/* @__PURE__ */
|
|
3374
|
+
/* @__PURE__ */ jsx72(FormHelperText, { error: !!fieldState.error, children: fieldState.error?.message || error })
|
|
3359
3375
|
]
|
|
3360
3376
|
}
|
|
3361
3377
|
)
|
|
@@ -3368,7 +3384,7 @@ var ControlledSelectWithArray_default = ControlledSelectWithArray;
|
|
|
3368
3384
|
import { Controller as Controller5 } from "react-hook-form";
|
|
3369
3385
|
import { FormControl as FormControl2, FormHelperText as FormHelperText2, InputLabel as InputLabel2, Select as Select2 } from "@mui/material";
|
|
3370
3386
|
import { makeStyles as makeStyles19 } from "tss-react/mui";
|
|
3371
|
-
import { jsx as
|
|
3387
|
+
import { jsx as jsx73, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
3372
3388
|
var useStyles19 = makeStyles19()(() => ({
|
|
3373
3389
|
selectInput: {
|
|
3374
3390
|
minWidth: 122
|
|
@@ -3386,7 +3402,7 @@ var ControlledSelectWithObject = ({
|
|
|
3386
3402
|
revalidateFormFunction
|
|
3387
3403
|
}) => {
|
|
3388
3404
|
const { classes } = useStyles19();
|
|
3389
|
-
return /* @__PURE__ */
|
|
3405
|
+
return /* @__PURE__ */ jsx73(
|
|
3390
3406
|
Controller5,
|
|
3391
3407
|
{
|
|
3392
3408
|
control,
|
|
@@ -3400,7 +3416,7 @@ var ControlledSelectWithObject = ({
|
|
|
3400
3416
|
className: className || classes.selectInput,
|
|
3401
3417
|
variant: "standard",
|
|
3402
3418
|
children: [
|
|
3403
|
-
/* @__PURE__ */
|
|
3419
|
+
/* @__PURE__ */ jsx73(InputLabel2, { error: !!fieldState.error, children: label }),
|
|
3404
3420
|
/* @__PURE__ */ jsxs41(
|
|
3405
3421
|
Select2,
|
|
3406
3422
|
{
|
|
@@ -3420,8 +3436,8 @@ var ControlledSelectWithObject = ({
|
|
|
3420
3436
|
},
|
|
3421
3437
|
error: !!fieldState.error,
|
|
3422
3438
|
children: [
|
|
3423
|
-
/* @__PURE__ */
|
|
3424
|
-
options?.map((option) => /* @__PURE__ */
|
|
3439
|
+
/* @__PURE__ */ jsx73("option", { "aria-label": "None" }),
|
|
3440
|
+
options?.map((option) => /* @__PURE__ */ jsx73(
|
|
3425
3441
|
"option",
|
|
3426
3442
|
{
|
|
3427
3443
|
disabled: listToDisableFromOptions ? listToDisableFromOptions.includes(option.value) : false,
|
|
@@ -3433,7 +3449,7 @@ var ControlledSelectWithObject = ({
|
|
|
3433
3449
|
]
|
|
3434
3450
|
}
|
|
3435
3451
|
),
|
|
3436
|
-
/* @__PURE__ */
|
|
3452
|
+
/* @__PURE__ */ jsx73(FormHelperText2, { error: !!fieldState.error, children: fieldState.error?.message || error })
|
|
3437
3453
|
]
|
|
3438
3454
|
}
|
|
3439
3455
|
)
|
|
@@ -3449,7 +3465,7 @@ import {
|
|
|
3449
3465
|
import { Box as Box10, TextField as TextField3 } from "@mui/material";
|
|
3450
3466
|
import classNames from "classnames";
|
|
3451
3467
|
import { makeStyles as makeStyles20 } from "tss-react/mui";
|
|
3452
|
-
import { jsx as
|
|
3468
|
+
import { jsx as jsx74, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
3453
3469
|
var useStyles20 = makeStyles20()(() => ({
|
|
3454
3470
|
fullWidthWrapper: {
|
|
3455
3471
|
maxWidth: "100%"
|
|
@@ -3497,17 +3513,17 @@ var ControlledValidTextInput = ({
|
|
|
3497
3513
|
defaultHandleBlurValidationAndSubmit(controlledField, fieldState.isDirty);
|
|
3498
3514
|
}
|
|
3499
3515
|
};
|
|
3500
|
-
return /* @__PURE__ */
|
|
3516
|
+
return /* @__PURE__ */ jsx74(
|
|
3501
3517
|
Box10,
|
|
3502
3518
|
{
|
|
3503
3519
|
className,
|
|
3504
3520
|
"data-testid": dataTestId || `${convertUnderscoreToHyphen2(fieldName)}`,
|
|
3505
|
-
children: /* @__PURE__ */
|
|
3521
|
+
children: /* @__PURE__ */ jsx74(
|
|
3506
3522
|
Controller6,
|
|
3507
3523
|
{
|
|
3508
3524
|
control,
|
|
3509
3525
|
name: fieldName,
|
|
3510
|
-
render: ({ field: controlledField, fieldState }) => /* @__PURE__ */
|
|
3526
|
+
render: ({ field: controlledField, fieldState }) => /* @__PURE__ */ jsx74(Box10, { className: classes.fullWidthWrapper, children: /* @__PURE__ */ jsx74(
|
|
3511
3527
|
TextField3,
|
|
3512
3528
|
{
|
|
3513
3529
|
...controlledField,
|
|
@@ -3531,7 +3547,7 @@ var ControlledValidTextInput = ({
|
|
|
3531
3547
|
}),
|
|
3532
3548
|
"data-testid": dataTestId ? `${dataTestId}-helper-text` : `${convertUnderscoreToHyphen2(fieldName)}-helper-text`,
|
|
3533
3549
|
children: [
|
|
3534
|
-
/* @__PURE__ */
|
|
3550
|
+
/* @__PURE__ */ jsx74(
|
|
3535
3551
|
Box10,
|
|
3536
3552
|
{
|
|
3537
3553
|
component: "span",
|
|
@@ -3541,7 +3557,7 @@ var ControlledValidTextInput = ({
|
|
|
3541
3557
|
children: fieldState.error?.message ?? helperText
|
|
3542
3558
|
}
|
|
3543
3559
|
),
|
|
3544
|
-
!!maxLength && /* @__PURE__ */
|
|
3560
|
+
!!maxLength && /* @__PURE__ */ jsx74(Box10, { component: "span", children: `${watch(fieldName)?.length ?? 0}/${maxLength}` })
|
|
3545
3561
|
]
|
|
3546
3562
|
}
|
|
3547
3563
|
),
|
|
@@ -3560,7 +3576,7 @@ import { useState as useState2 } from "react";
|
|
|
3560
3576
|
import { Paper as Paper2, Skeleton } from "@mui/material";
|
|
3561
3577
|
import { DataGrid as MUIDataGrid } from "@mui/x-data-grid";
|
|
3562
3578
|
import { makeStyles as makeStyles21 } from "tss-react/mui";
|
|
3563
|
-
import { Fragment, jsx as
|
|
3579
|
+
import { Fragment, jsx as jsx75, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3564
3580
|
var useStyles21 = makeStyles21()(() => ({
|
|
3565
3581
|
root: {
|
|
3566
3582
|
justifyContent: "space-between",
|
|
@@ -3607,14 +3623,14 @@ var DataGrid = ({
|
|
|
3607
3623
|
]);
|
|
3608
3624
|
const rowHeight = 56;
|
|
3609
3625
|
const headerAndFooterHeight = 52 + 56;
|
|
3610
|
-
return /* @__PURE__ */
|
|
3626
|
+
return /* @__PURE__ */ jsx75(
|
|
3611
3627
|
"div",
|
|
3612
3628
|
{
|
|
3613
3629
|
className: classes.root,
|
|
3614
3630
|
style: {
|
|
3615
3631
|
height: height || rows.length * rowHeight + headerAndFooterHeight
|
|
3616
3632
|
},
|
|
3617
|
-
children: /* @__PURE__ */
|
|
3633
|
+
children: /* @__PURE__ */ jsx75(Paper2, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx75("div", { children: [...Array(Math.floor(10))].map((i) => /* @__PURE__ */ jsx75(
|
|
3618
3634
|
Skeleton,
|
|
3619
3635
|
{
|
|
3620
3636
|
animation: "pulse",
|
|
@@ -3624,7 +3640,7 @@ var DataGrid = ({
|
|
|
3624
3640
|
},
|
|
3625
3641
|
i
|
|
3626
3642
|
)) }) : /* @__PURE__ */ jsxs43(Fragment, { children: [
|
|
3627
|
-
/* @__PURE__ */
|
|
3643
|
+
/* @__PURE__ */ jsx75(
|
|
3628
3644
|
MUIDataGrid,
|
|
3629
3645
|
{
|
|
3630
3646
|
rows,
|
|
@@ -3729,10 +3745,10 @@ localizedMoment.locale(constants_default.locale);
|
|
|
3729
3745
|
var moment_default = localizedMoment;
|
|
3730
3746
|
|
|
3731
3747
|
// src/components/Date/Date.tsx
|
|
3732
|
-
import { jsx as
|
|
3748
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
3733
3749
|
var Date = ({ datetime, format = "L" }) => {
|
|
3734
3750
|
const formattedDate = moment_default(datetime).format(format);
|
|
3735
|
-
return /* @__PURE__ */
|
|
3751
|
+
return /* @__PURE__ */ jsx76("span", { children: formattedDate === "Invalid date" ? "-" : formattedDate });
|
|
3736
3752
|
};
|
|
3737
3753
|
var Date_default = Date;
|
|
3738
3754
|
|
|
@@ -3740,7 +3756,7 @@ var Date_default = Date;
|
|
|
3740
3756
|
import { memo as memo10 } from "react";
|
|
3741
3757
|
import { Alert, AlertTitle, Typography as Typography8, Box as Box11 } from "@mui/material";
|
|
3742
3758
|
import { makeStyles as makeStyles22 } from "tss-react/mui";
|
|
3743
|
-
import { Fragment as Fragment2, jsx as
|
|
3759
|
+
import { Fragment as Fragment2, jsx as jsx77, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3744
3760
|
var useStyles22 = makeStyles22()(() => ({
|
|
3745
3761
|
alert: { marginBottom: 16 },
|
|
3746
3762
|
bottomBar: {
|
|
@@ -3767,10 +3783,10 @@ var DeleteSubstitutionDialogContent = ({
|
|
|
3767
3783
|
] }),
|
|
3768
3784
|
"This action will permanently remove all data and history associated with this substitution, and it cannot be undone."
|
|
3769
3785
|
] }),
|
|
3770
|
-
/* @__PURE__ */
|
|
3786
|
+
/* @__PURE__ */ jsx77(Typography8, { variant: "body1", children: "Please confirm if you wish to proceed." }),
|
|
3771
3787
|
/* @__PURE__ */ jsxs44(Box11, { className: classes.bottomBar, children: [
|
|
3772
|
-
/* @__PURE__ */
|
|
3773
|
-
/* @__PURE__ */
|
|
3788
|
+
/* @__PURE__ */ jsx77(ExtendedButton_default, { copy: "Cancel", onClick: closeDialog }),
|
|
3789
|
+
/* @__PURE__ */ jsx77(
|
|
3774
3790
|
ExtendedButton_default,
|
|
3775
3791
|
{
|
|
3776
3792
|
copy: "Confirm",
|
|
@@ -3788,7 +3804,7 @@ var DeleteSubstitutionDialogContent_default = memo10(DeleteSubstitutionDialogCon
|
|
|
3788
3804
|
import { memo as memo11 } from "react";
|
|
3789
3805
|
import { Alert as Alert2, AlertTitle as AlertTitle2, Typography as Typography9, Box as Box12 } from "@mui/material";
|
|
3790
3806
|
import { makeStyles as makeStyles23 } from "tss-react/mui";
|
|
3791
|
-
import { Fragment as Fragment3, jsx as
|
|
3807
|
+
import { Fragment as Fragment3, jsx as jsx78, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3792
3808
|
var useStyles23 = makeStyles23()(() => ({
|
|
3793
3809
|
alert: { marginBottom: 16 },
|
|
3794
3810
|
bottomBar: {
|
|
@@ -3815,10 +3831,10 @@ var DeleteUserDialogContent = ({
|
|
|
3815
3831
|
] }),
|
|
3816
3832
|
"This action will permanently remove all data and history associated with this user, and it cannot be undone."
|
|
3817
3833
|
] }),
|
|
3818
|
-
/* @__PURE__ */
|
|
3834
|
+
/* @__PURE__ */ jsx78(Typography9, { variant: "body1", children: "Please confirm if you wish to proceed." }),
|
|
3819
3835
|
/* @__PURE__ */ jsxs45(Box12, { className: classes.bottomBar, children: [
|
|
3820
|
-
/* @__PURE__ */
|
|
3821
|
-
/* @__PURE__ */
|
|
3836
|
+
/* @__PURE__ */ jsx78(ExtendedButton_default, { color: "default", copy: "Cancel", onClick: closeDialog }),
|
|
3837
|
+
/* @__PURE__ */ jsx78(
|
|
3822
3838
|
ExtendedButton_default,
|
|
3823
3839
|
{
|
|
3824
3840
|
copy: "Confirm",
|
|
@@ -3835,7 +3851,7 @@ var DeleteUserDialogContent_default = memo11(DeleteUserDialogContent);
|
|
|
3835
3851
|
// src/components/FileCard/FileCard.tsx
|
|
3836
3852
|
import { Description as DescriptionIcon } from "@mui/icons-material";
|
|
3837
3853
|
import { Typography as Typography10, Box as Box13 } from "@mui/material";
|
|
3838
|
-
import { jsx as
|
|
3854
|
+
import { jsx as jsx79, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3839
3855
|
var getFileMetadata = (file) => {
|
|
3840
3856
|
const fullFilename = file.substring(file.lastIndexOf("/") + 1);
|
|
3841
3857
|
const extension = file.substring(file.lastIndexOf("."));
|
|
@@ -3860,7 +3876,7 @@ var FileCard = ({ document: document2 }) => {
|
|
|
3860
3876
|
minWidth: "250px"
|
|
3861
3877
|
},
|
|
3862
3878
|
children: [
|
|
3863
|
-
/* @__PURE__ */
|
|
3879
|
+
/* @__PURE__ */ jsx79(
|
|
3864
3880
|
Box13,
|
|
3865
3881
|
{
|
|
3866
3882
|
sx: {
|
|
@@ -3868,10 +3884,10 @@ var FileCard = ({ document: document2 }) => {
|
|
|
3868
3884
|
justifyContent: "center",
|
|
3869
3885
|
alignItems: "center"
|
|
3870
3886
|
},
|
|
3871
|
-
children: /* @__PURE__ */
|
|
3887
|
+
children: /* @__PURE__ */ jsx79(DescriptionIcon, { fontSize: "medium", color: "action" })
|
|
3872
3888
|
}
|
|
3873
3889
|
),
|
|
3874
|
-
/* @__PURE__ */
|
|
3890
|
+
/* @__PURE__ */ jsx79(
|
|
3875
3891
|
Box13,
|
|
3876
3892
|
{
|
|
3877
3893
|
sx: {
|
|
@@ -3897,7 +3913,7 @@ import { Typography as Typography11 } from "@mui/material";
|
|
|
3897
3913
|
import brown from "@mui/material/colors/brown";
|
|
3898
3914
|
import teal from "@mui/material/colors/teal";
|
|
3899
3915
|
import { makeStyles as makeStyles24 } from "tss-react/mui";
|
|
3900
|
-
import { jsx as
|
|
3916
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
3901
3917
|
var useStyles24 = makeStyles24()((theme) => ({
|
|
3902
3918
|
siteOne: {
|
|
3903
3919
|
backgroundColor: teal["50"],
|
|
@@ -3925,7 +3941,7 @@ var useStyles24 = makeStyles24()((theme) => ({
|
|
|
3925
3941
|
var FilledLabel = (props) => {
|
|
3926
3942
|
const { color, copy } = props;
|
|
3927
3943
|
const { classes } = useStyles24();
|
|
3928
|
-
return /* @__PURE__ */
|
|
3944
|
+
return /* @__PURE__ */ jsx80(Typography11, { variant: "caption", className: classes[color], children: copy });
|
|
3929
3945
|
};
|
|
3930
3946
|
var FilledLabel_default = memo12(FilledLabel);
|
|
3931
3947
|
|
|
@@ -3941,7 +3957,7 @@ import {
|
|
|
3941
3957
|
Divider as Divider2
|
|
3942
3958
|
} from "@mui/material";
|
|
3943
3959
|
import { makeStyles as makeStyles25 } from "tss-react/mui";
|
|
3944
|
-
import { Fragment as Fragment4, jsx as
|
|
3960
|
+
import { Fragment as Fragment4, jsx as jsx81, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
3945
3961
|
var useStyles25 = makeStyles25()((theme) => ({
|
|
3946
3962
|
filterOptions: {
|
|
3947
3963
|
height: 450,
|
|
@@ -3989,7 +4005,7 @@ var FilterGroupSelector = ({
|
|
|
3989
4005
|
);
|
|
3990
4006
|
};
|
|
3991
4007
|
return /* @__PURE__ */ jsxs47(Fragment4, { children: [
|
|
3992
|
-
/* @__PURE__ */
|
|
4008
|
+
/* @__PURE__ */ jsx81(
|
|
3993
4009
|
ActiveFiltersIconButton_default,
|
|
3994
4010
|
{
|
|
3995
4011
|
label: name,
|
|
@@ -4006,10 +4022,10 @@ var FilterGroupSelector = ({
|
|
|
4006
4022
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
4007
4023
|
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
4008
4024
|
children: [
|
|
4009
|
-
/* @__PURE__ */
|
|
4010
|
-
/* @__PURE__ */
|
|
4011
|
-
/* @__PURE__ */
|
|
4012
|
-
/* @__PURE__ */
|
|
4025
|
+
/* @__PURE__ */ jsx81(Box14, { p: 2, mt: -1, sx: { backgroundColor: colors.neutral200 }, children: /* @__PURE__ */ jsx81(Typography12, { variant: "button", children: `Search ${name}` }) }),
|
|
4026
|
+
/* @__PURE__ */ jsx81(Divider2, {}),
|
|
4027
|
+
/* @__PURE__ */ jsx81(Box14, { className: classes.filterOptions, children: optionsList.map(({ category, options }, index) => /* @__PURE__ */ jsxs47(Box14, { children: [
|
|
4028
|
+
/* @__PURE__ */ jsx81(
|
|
4013
4029
|
Typography12,
|
|
4014
4030
|
{
|
|
4015
4031
|
variant: "subtitle2",
|
|
@@ -4020,13 +4036,13 @@ var FilterGroupSelector = ({
|
|
|
4020
4036
|
options.map((value) => {
|
|
4021
4037
|
const key = `${category.replaceAll(" ", "_").toLocaleLowerCase()}${categoryIdentification ? `_${categoryIdentification}` : ""}: ${value}`;
|
|
4022
4038
|
return /* @__PURE__ */ jsxs47(MenuItem, { onClick: () => toggleOption(key), children: [
|
|
4023
|
-
/* @__PURE__ */
|
|
4024
|
-
/* @__PURE__ */
|
|
4039
|
+
/* @__PURE__ */ jsx81(Checkbox2, { checked: values.includes(key) }),
|
|
4040
|
+
/* @__PURE__ */ jsx81(ListItemText, { primary: value })
|
|
4025
4041
|
] }, value);
|
|
4026
4042
|
})
|
|
4027
4043
|
] }, category)) }),
|
|
4028
4044
|
/* @__PURE__ */ jsxs47(Box14, { display: "flex", children: [
|
|
4029
|
-
/* @__PURE__ */
|
|
4045
|
+
/* @__PURE__ */ jsx81(
|
|
4030
4046
|
ExtendedButton_default,
|
|
4031
4047
|
{
|
|
4032
4048
|
variant: "text",
|
|
@@ -4038,7 +4054,7 @@ var FilterGroupSelector = ({
|
|
|
4038
4054
|
}
|
|
4039
4055
|
}
|
|
4040
4056
|
),
|
|
4041
|
-
/* @__PURE__ */
|
|
4057
|
+
/* @__PURE__ */ jsx81(
|
|
4042
4058
|
ExtendedButton_default,
|
|
4043
4059
|
{
|
|
4044
4060
|
color: "primary",
|
|
@@ -4070,7 +4086,7 @@ import {
|
|
|
4070
4086
|
Divider as Divider3
|
|
4071
4087
|
} from "@mui/material";
|
|
4072
4088
|
import { makeStyles as makeStyles26 } from "tss-react/mui";
|
|
4073
|
-
import { Fragment as Fragment5, jsx as
|
|
4089
|
+
import { Fragment as Fragment5, jsx as jsx82, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
4074
4090
|
var useStyles26 = makeStyles26()((theme) => ({
|
|
4075
4091
|
filterOptions: {
|
|
4076
4092
|
height: 450,
|
|
@@ -4117,7 +4133,7 @@ var FilterSimpleSelector = ({
|
|
|
4117
4133
|
);
|
|
4118
4134
|
};
|
|
4119
4135
|
return /* @__PURE__ */ jsxs48(Fragment5, { children: [
|
|
4120
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ jsx82(
|
|
4121
4137
|
ActiveFiltersIconButton_default,
|
|
4122
4138
|
{
|
|
4123
4139
|
label: name,
|
|
@@ -4134,15 +4150,15 @@ var FilterSimpleSelector = ({
|
|
|
4134
4150
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
4135
4151
|
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
4136
4152
|
children: [
|
|
4137
|
-
/* @__PURE__ */
|
|
4138
|
-
/* @__PURE__ */
|
|
4139
|
-
/* @__PURE__ */
|
|
4140
|
-
/* @__PURE__ */
|
|
4141
|
-
/* @__PURE__ */
|
|
4153
|
+
/* @__PURE__ */ jsx82(Box15, { p: 2, mt: -1, sx: { backgroundColor: colors.neutral200 }, children: /* @__PURE__ */ jsx82(Typography13, { variant: "button", children: `Search ${name}` }) }),
|
|
4154
|
+
/* @__PURE__ */ jsx82(Divider3, {}),
|
|
4155
|
+
/* @__PURE__ */ jsx82(Box15, { className: classes.filterOptions, children: options.map((option) => /* @__PURE__ */ jsxs48(MenuItem2, { onClick: () => toggleOption(option), children: [
|
|
4156
|
+
/* @__PURE__ */ jsx82(Checkbox3, { checked: values.includes(option) }),
|
|
4157
|
+
/* @__PURE__ */ jsx82(ListItemText2, { primary: option })
|
|
4142
4158
|
] }, option)) }),
|
|
4143
|
-
/* @__PURE__ */
|
|
4159
|
+
/* @__PURE__ */ jsx82(Divider3, {}),
|
|
4144
4160
|
/* @__PURE__ */ jsxs48(Box15, { display: "flex", children: [
|
|
4145
|
-
/* @__PURE__ */
|
|
4161
|
+
/* @__PURE__ */ jsx82(
|
|
4146
4162
|
ExtendedButton_default,
|
|
4147
4163
|
{
|
|
4148
4164
|
variant: "text",
|
|
@@ -4154,7 +4170,7 @@ var FilterSimpleSelector = ({
|
|
|
4154
4170
|
}
|
|
4155
4171
|
}
|
|
4156
4172
|
),
|
|
4157
|
-
/* @__PURE__ */
|
|
4173
|
+
/* @__PURE__ */ jsx82(
|
|
4158
4174
|
ExtendedButton_default,
|
|
4159
4175
|
{
|
|
4160
4176
|
color: "primary",
|
|
@@ -4178,7 +4194,7 @@ var FilterSimpleSelector_default = FilterSimpleSelector;
|
|
|
4178
4194
|
import * as React from "react";
|
|
4179
4195
|
import { Box as Box16 } from "@mui/material";
|
|
4180
4196
|
import { makeStyles as makeStyles27 } from "tss-react/mui";
|
|
4181
|
-
import { jsx as
|
|
4197
|
+
import { jsx as jsx83, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
4182
4198
|
var footerHeight = "64px";
|
|
4183
4199
|
var useStyles27 = makeStyles27()((theme) => ({
|
|
4184
4200
|
root: {
|
|
@@ -4200,8 +4216,8 @@ var useStyles27 = makeStyles27()((theme) => ({
|
|
|
4200
4216
|
var FixedFooter = ({ justifyContent, children }) => {
|
|
4201
4217
|
const { classes } = useStyles27();
|
|
4202
4218
|
return /* @__PURE__ */ jsxs49(Box16, { children: [
|
|
4203
|
-
/* @__PURE__ */
|
|
4204
|
-
/* @__PURE__ */
|
|
4219
|
+
/* @__PURE__ */ jsx83(Box16, { className: classes.fixedOffset }),
|
|
4220
|
+
/* @__PURE__ */ jsx83(
|
|
4205
4221
|
Box16,
|
|
4206
4222
|
{
|
|
4207
4223
|
className: classes.root,
|
|
@@ -4218,7 +4234,7 @@ var FixedFooter_default = React.memo(FixedFooter);
|
|
|
4218
4234
|
// src/components/Header/Header.tsx
|
|
4219
4235
|
import { Paper as Paper3 } from "@mui/material";
|
|
4220
4236
|
import { makeStyles as makeStyles28 } from "tss-react/mui";
|
|
4221
|
-
import { jsx as
|
|
4237
|
+
import { jsx as jsx84, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
4222
4238
|
var useStyles28 = makeStyles28()((theme) => ({
|
|
4223
4239
|
container: {
|
|
4224
4240
|
margin: theme.spacing(1)
|
|
@@ -4241,7 +4257,7 @@ var Header = ({
|
|
|
4241
4257
|
wrappedHeader = false
|
|
4242
4258
|
}) => {
|
|
4243
4259
|
const { classes, cx } = useStyles28();
|
|
4244
|
-
return /* @__PURE__ */
|
|
4260
|
+
return /* @__PURE__ */ jsx84(
|
|
4245
4261
|
Paper3,
|
|
4246
4262
|
{
|
|
4247
4263
|
className: cx({
|
|
@@ -4249,8 +4265,8 @@ var Header = ({
|
|
|
4249
4265
|
}),
|
|
4250
4266
|
elevation: wrappedHeader ? 0 : 1,
|
|
4251
4267
|
children: /* @__PURE__ */ jsxs50("header", { className: classes.header, children: [
|
|
4252
|
-
/* @__PURE__ */
|
|
4253
|
-
children ? /* @__PURE__ */
|
|
4268
|
+
/* @__PURE__ */ jsx84(AppLabel_default, { appName }),
|
|
4269
|
+
children ? /* @__PURE__ */ jsx84("div", { className: classes.rightContent, children }) : null
|
|
4254
4270
|
] })
|
|
4255
4271
|
}
|
|
4256
4272
|
);
|
|
@@ -4260,20 +4276,20 @@ var Header_default = Header;
|
|
|
4260
4276
|
// src/components/List/List.tsx
|
|
4261
4277
|
import { FixedSizeList } from "react-window";
|
|
4262
4278
|
import { ListItem, ListItemText as ListItemText3 } from "@mui/material";
|
|
4263
|
-
import { Fragment as Fragment6, jsx as
|
|
4279
|
+
import { Fragment as Fragment6, jsx as jsx85, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
4264
4280
|
var ListHeader = (props) => {
|
|
4265
4281
|
const headers = props.headers || [];
|
|
4266
|
-
return /* @__PURE__ */
|
|
4282
|
+
return /* @__PURE__ */ jsx85(ListItem, { children: headers.map((header, i) => (
|
|
4267
4283
|
// eslint-disable-next-line react/no-array-index-key
|
|
4268
|
-
/* @__PURE__ */
|
|
4284
|
+
/* @__PURE__ */ jsx85(ListItemText3, { primary: header.text }, i)
|
|
4269
4285
|
)) });
|
|
4270
4286
|
};
|
|
4271
4287
|
function VirtualizedList(props) {
|
|
4272
4288
|
const { innerWidth, innerHeight } = window;
|
|
4273
4289
|
const { headers, items, renderItem } = props;
|
|
4274
4290
|
return /* @__PURE__ */ jsxs51(Fragment6, { children: [
|
|
4275
|
-
/* @__PURE__ */
|
|
4276
|
-
/* @__PURE__ */
|
|
4291
|
+
/* @__PURE__ */ jsx85(ListHeader, { headers }),
|
|
4292
|
+
/* @__PURE__ */ jsx85(
|
|
4277
4293
|
FixedSizeList,
|
|
4278
4294
|
{
|
|
4279
4295
|
height: innerHeight - 150,
|
|
@@ -4293,7 +4309,7 @@ import { Box as Box17, Chip as Chip2, Typography as Typography14 } from "@mui/ma
|
|
|
4293
4309
|
import { purple } from "@mui/material/colors";
|
|
4294
4310
|
import classNames2 from "classnames";
|
|
4295
4311
|
import { makeStyles as makeStyles29 } from "tss-react/mui";
|
|
4296
|
-
import { jsx as
|
|
4312
|
+
import { jsx as jsx86, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
4297
4313
|
var useStyles29 = makeStyles29()(() => ({
|
|
4298
4314
|
container: {
|
|
4299
4315
|
display: "flex",
|
|
@@ -4340,7 +4356,7 @@ var LocationsSectionInfo = ({
|
|
|
4340
4356
|
return "STOCK";
|
|
4341
4357
|
};
|
|
4342
4358
|
return /* @__PURE__ */ jsxs52(Box17, { className: classes.container, children: [
|
|
4343
|
-
/* @__PURE__ */
|
|
4359
|
+
/* @__PURE__ */ jsx86(
|
|
4344
4360
|
Chip2,
|
|
4345
4361
|
{
|
|
4346
4362
|
className: classNames2(classes.defaultChip, {
|
|
@@ -4351,10 +4367,10 @@ var LocationsSectionInfo = ({
|
|
|
4351
4367
|
label: getLocationLabel()
|
|
4352
4368
|
}
|
|
4353
4369
|
),
|
|
4354
|
-
/* @__PURE__ */
|
|
4370
|
+
/* @__PURE__ */ jsx86(Typography14, { className: classes.locationText, color: "primary", children: principalLocation }),
|
|
4355
4371
|
secondaryLocation?.map((loc) => /* @__PURE__ */ jsxs52(Fragment7, { children: [
|
|
4356
|
-
/* @__PURE__ */
|
|
4357
|
-
/* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ jsx86(Typography14, { className: classes.smallTitle, children: "/" }),
|
|
4373
|
+
/* @__PURE__ */ jsx86(Typography14, { className: classes.locationText, children: loc })
|
|
4358
4374
|
] }, loc))
|
|
4359
4375
|
] });
|
|
4360
4376
|
};
|
|
@@ -4364,7 +4380,7 @@ var LocationsSectionInfo_default = LocationsSectionInfo;
|
|
|
4364
4380
|
import { useEffect as useEffect2, useState as useState5 } from "react";
|
|
4365
4381
|
import { FormControl as FormControl3, Input, InputAdornment as InputAdornment2, InputLabel as InputLabel3 } from "@mui/material";
|
|
4366
4382
|
import { makeStyles as makeStyles30 } from "tss-react/mui";
|
|
4367
|
-
import { jsx as
|
|
4383
|
+
import { jsx as jsx87, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
4368
4384
|
var useStyles30 = makeStyles30()((theme) => ({
|
|
4369
4385
|
wrapper: {
|
|
4370
4386
|
padding: theme.spacing(3),
|
|
@@ -4407,13 +4423,13 @@ var Notes2 = ({
|
|
|
4407
4423
|
}
|
|
4408
4424
|
};
|
|
4409
4425
|
const { classes } = useStyles30();
|
|
4410
|
-
return /* @__PURE__ */
|
|
4411
|
-
/* @__PURE__ */
|
|
4412
|
-
/* @__PURE__ */
|
|
4426
|
+
return /* @__PURE__ */ jsx87("div", { className: classes.wrapper, children: /* @__PURE__ */ jsxs53(FormControl3, { fullWidth: true, children: [
|
|
4427
|
+
/* @__PURE__ */ jsx87(InputLabel3, { htmlFor: "notes", children: "Notes" }),
|
|
4428
|
+
/* @__PURE__ */ jsx87(
|
|
4413
4429
|
Input,
|
|
4414
4430
|
{
|
|
4415
4431
|
disabled: isDisabled || isLoading,
|
|
4416
|
-
endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */
|
|
4432
|
+
endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ jsx87(InputAdornment2, { position: "end", children: /* @__PURE__ */ jsx87(
|
|
4417
4433
|
RoundButton_default,
|
|
4418
4434
|
{
|
|
4419
4435
|
disabled: isLoading,
|
|
@@ -4439,7 +4455,7 @@ var Notes2 = ({
|
|
|
4439
4455
|
var Notes_default = Notes2;
|
|
4440
4456
|
|
|
4441
4457
|
// src/components/Numpad/Numpad.tsx
|
|
4442
|
-
import { jsx as
|
|
4458
|
+
import { jsx as jsx88, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
4443
4459
|
var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
4444
4460
|
"div",
|
|
4445
4461
|
{
|
|
@@ -4454,7 +4470,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4454
4470
|
children: [
|
|
4455
4471
|
/* @__PURE__ */ jsxs54("div", { children: [
|
|
4456
4472
|
/* @__PURE__ */ jsxs54("div", { children: [
|
|
4457
|
-
/* @__PURE__ */
|
|
4473
|
+
/* @__PURE__ */ jsx88(
|
|
4458
4474
|
RoundButton_default,
|
|
4459
4475
|
{
|
|
4460
4476
|
onClick: () => handleClick("1"),
|
|
@@ -4463,7 +4479,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4463
4479
|
children: "1"
|
|
4464
4480
|
}
|
|
4465
4481
|
),
|
|
4466
|
-
/* @__PURE__ */
|
|
4482
|
+
/* @__PURE__ */ jsx88(
|
|
4467
4483
|
RoundButton_default,
|
|
4468
4484
|
{
|
|
4469
4485
|
onClick: () => handleClick("2"),
|
|
@@ -4472,7 +4488,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4472
4488
|
children: "2"
|
|
4473
4489
|
}
|
|
4474
4490
|
),
|
|
4475
|
-
/* @__PURE__ */
|
|
4491
|
+
/* @__PURE__ */ jsx88(
|
|
4476
4492
|
RoundButton_default,
|
|
4477
4493
|
{
|
|
4478
4494
|
onClick: () => handleClick("3"),
|
|
@@ -4483,7 +4499,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4483
4499
|
)
|
|
4484
4500
|
] }),
|
|
4485
4501
|
/* @__PURE__ */ jsxs54("div", { children: [
|
|
4486
|
-
/* @__PURE__ */
|
|
4502
|
+
/* @__PURE__ */ jsx88(
|
|
4487
4503
|
RoundButton_default,
|
|
4488
4504
|
{
|
|
4489
4505
|
onClick: () => handleClick("4"),
|
|
@@ -4492,7 +4508,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4492
4508
|
children: "4"
|
|
4493
4509
|
}
|
|
4494
4510
|
),
|
|
4495
|
-
/* @__PURE__ */
|
|
4511
|
+
/* @__PURE__ */ jsx88(
|
|
4496
4512
|
RoundButton_default,
|
|
4497
4513
|
{
|
|
4498
4514
|
onClick: () => handleClick("5"),
|
|
@@ -4501,7 +4517,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4501
4517
|
children: "5"
|
|
4502
4518
|
}
|
|
4503
4519
|
),
|
|
4504
|
-
/* @__PURE__ */
|
|
4520
|
+
/* @__PURE__ */ jsx88(
|
|
4505
4521
|
RoundButton_default,
|
|
4506
4522
|
{
|
|
4507
4523
|
onClick: () => handleClick("6"),
|
|
@@ -4512,7 +4528,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4512
4528
|
)
|
|
4513
4529
|
] }),
|
|
4514
4530
|
/* @__PURE__ */ jsxs54("div", { children: [
|
|
4515
|
-
/* @__PURE__ */
|
|
4531
|
+
/* @__PURE__ */ jsx88(
|
|
4516
4532
|
RoundButton_default,
|
|
4517
4533
|
{
|
|
4518
4534
|
onClick: () => handleClick("7"),
|
|
@@ -4521,7 +4537,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4521
4537
|
children: "7"
|
|
4522
4538
|
}
|
|
4523
4539
|
),
|
|
4524
|
-
/* @__PURE__ */
|
|
4540
|
+
/* @__PURE__ */ jsx88(
|
|
4525
4541
|
RoundButton_default,
|
|
4526
4542
|
{
|
|
4527
4543
|
onClick: () => handleClick("8"),
|
|
@@ -4530,7 +4546,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4530
4546
|
children: "8"
|
|
4531
4547
|
}
|
|
4532
4548
|
),
|
|
4533
|
-
/* @__PURE__ */
|
|
4549
|
+
/* @__PURE__ */ jsx88(
|
|
4534
4550
|
RoundButton_default,
|
|
4535
4551
|
{
|
|
4536
4552
|
onClick: () => handleClick("9"),
|
|
@@ -4541,7 +4557,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4541
4557
|
)
|
|
4542
4558
|
] }),
|
|
4543
4559
|
/* @__PURE__ */ jsxs54("div", { children: [
|
|
4544
|
-
/* @__PURE__ */
|
|
4560
|
+
/* @__PURE__ */ jsx88(
|
|
4545
4561
|
RoundButton_default,
|
|
4546
4562
|
{
|
|
4547
4563
|
onClick: () => handleClick("0"),
|
|
@@ -4550,7 +4566,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4550
4566
|
children: "0"
|
|
4551
4567
|
}
|
|
4552
4568
|
),
|
|
4553
|
-
/* @__PURE__ */
|
|
4569
|
+
/* @__PURE__ */ jsx88(
|
|
4554
4570
|
RoundButton_default,
|
|
4555
4571
|
{
|
|
4556
4572
|
onClick: () => handleClick("."),
|
|
@@ -4561,7 +4577,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4561
4577
|
)
|
|
4562
4578
|
] })
|
|
4563
4579
|
] }),
|
|
4564
|
-
/* @__PURE__ */
|
|
4580
|
+
/* @__PURE__ */ jsx88(
|
|
4565
4581
|
"div",
|
|
4566
4582
|
{
|
|
4567
4583
|
style: {
|
|
@@ -4570,7 +4586,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs54(
|
|
|
4570
4586
|
justifyContent: "space-between",
|
|
4571
4587
|
borderLeft: `1px solid ${colors.neutral250}`
|
|
4572
4588
|
},
|
|
4573
|
-
children: /* @__PURE__ */
|
|
4589
|
+
children: /* @__PURE__ */ jsx88(
|
|
4574
4590
|
RoundButton_default,
|
|
4575
4591
|
{
|
|
4576
4592
|
icon: "backspaceOutlined",
|
|
@@ -4590,7 +4606,7 @@ var Numpad_default = Numpad;
|
|
|
4590
4606
|
import { memo as memo14, useState as useState6 } from "react";
|
|
4591
4607
|
import { TextField as TextField4, Typography as Typography15 } from "@mui/material";
|
|
4592
4608
|
import { makeStyles as makeStyles31 } from "tss-react/mui";
|
|
4593
|
-
import { jsx as
|
|
4609
|
+
import { jsx as jsx89, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4594
4610
|
var useStyles31 = makeStyles31()(() => ({
|
|
4595
4611
|
c_numpadinput__textfield: {
|
|
4596
4612
|
"& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
|
|
@@ -4628,12 +4644,12 @@ var NumpadInput = (props) => {
|
|
|
4628
4644
|
handleNextClick?.(state);
|
|
4629
4645
|
}
|
|
4630
4646
|
const DefaultInput = /* @__PURE__ */ jsxs55("div", { children: [
|
|
4631
|
-
/* @__PURE__ */
|
|
4632
|
-
/* @__PURE__ */
|
|
4647
|
+
/* @__PURE__ */ jsx89(Typography15, { variant: "h5", style: { padding: "16px 0 3rem" }, children: inputLabel }),
|
|
4648
|
+
/* @__PURE__ */ jsx89("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ jsx89(
|
|
4633
4649
|
TextField4,
|
|
4634
4650
|
{
|
|
4635
4651
|
id: "outlined-basic",
|
|
4636
|
-
label: /* @__PURE__ */
|
|
4652
|
+
label: /* @__PURE__ */ jsx89(Typography15, { style: { fontSize: "1.5rem" }, children: "Insert" }),
|
|
4637
4653
|
value: state,
|
|
4638
4654
|
variant: "outlined",
|
|
4639
4655
|
autoFocus: true,
|
|
@@ -4651,16 +4667,16 @@ var NumpadInput = (props) => {
|
|
|
4651
4667
|
return /* @__PURE__ */ jsxs55("div", { children: [
|
|
4652
4668
|
/* @__PURE__ */ jsxs55("div", { className: classes.c_numpadinput__body, children: [
|
|
4653
4669
|
children || DefaultInput,
|
|
4654
|
-
/* @__PURE__ */
|
|
4670
|
+
/* @__PURE__ */ jsx89(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
|
|
4655
4671
|
] }),
|
|
4656
|
-
state ? /* @__PURE__ */
|
|
4672
|
+
state ? /* @__PURE__ */ jsx89(
|
|
4657
4673
|
FilledButtonLg_default,
|
|
4658
4674
|
{
|
|
4659
4675
|
color: "primary",
|
|
4660
4676
|
copy: "next",
|
|
4661
4677
|
handleClick: handleSubmit
|
|
4662
4678
|
}
|
|
4663
|
-
) : /* @__PURE__ */
|
|
4679
|
+
) : /* @__PURE__ */ jsx89(FilledButtonLg_default, { copy: "next", disabled: true })
|
|
4664
4680
|
] });
|
|
4665
4681
|
};
|
|
4666
4682
|
var NumpadInput_default = memo14(NumpadInput);
|
|
@@ -4668,7 +4684,7 @@ var NumpadInput_default = memo14(NumpadInput);
|
|
|
4668
4684
|
// src/components/NumpadPlus/NumpadPlus.tsx
|
|
4669
4685
|
import { Box as Box18 } from "@mui/material";
|
|
4670
4686
|
import { makeStyles as makeStyles32 } from "tss-react/mui";
|
|
4671
|
-
import { jsx as
|
|
4687
|
+
import { jsx as jsx90, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4672
4688
|
var useStyles32 = makeStyles32()(() => ({
|
|
4673
4689
|
numpadContainer: {
|
|
4674
4690
|
display: "flex",
|
|
@@ -4703,7 +4719,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4703
4719
|
return /* @__PURE__ */ jsxs56(Box18, { className: styles.numpadContainer, children: [
|
|
4704
4720
|
/* @__PURE__ */ jsxs56(Box18, { className: styles.numpadNumbersContainer, children: [
|
|
4705
4721
|
/* @__PURE__ */ jsxs56(Box18, { className: styles.numpadRow, children: [
|
|
4706
|
-
/* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ jsx90(
|
|
4707
4723
|
RoundButton_default,
|
|
4708
4724
|
{
|
|
4709
4725
|
onClick: () => handleClick("1"),
|
|
@@ -4712,7 +4728,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4712
4728
|
children: "1"
|
|
4713
4729
|
}
|
|
4714
4730
|
),
|
|
4715
|
-
/* @__PURE__ */
|
|
4731
|
+
/* @__PURE__ */ jsx90(
|
|
4716
4732
|
RoundButton_default,
|
|
4717
4733
|
{
|
|
4718
4734
|
onClick: () => handleClick("2"),
|
|
@@ -4721,7 +4737,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4721
4737
|
children: "2"
|
|
4722
4738
|
}
|
|
4723
4739
|
),
|
|
4724
|
-
/* @__PURE__ */
|
|
4740
|
+
/* @__PURE__ */ jsx90(
|
|
4725
4741
|
RoundButton_default,
|
|
4726
4742
|
{
|
|
4727
4743
|
onClick: () => handleClick("3"),
|
|
@@ -4732,7 +4748,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4732
4748
|
)
|
|
4733
4749
|
] }),
|
|
4734
4750
|
/* @__PURE__ */ jsxs56(Box18, { className: styles.numpadRow, children: [
|
|
4735
|
-
/* @__PURE__ */
|
|
4751
|
+
/* @__PURE__ */ jsx90(
|
|
4736
4752
|
RoundButton_default,
|
|
4737
4753
|
{
|
|
4738
4754
|
onClick: () => handleClick("4"),
|
|
@@ -4741,7 +4757,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4741
4757
|
children: "4"
|
|
4742
4758
|
}
|
|
4743
4759
|
),
|
|
4744
|
-
/* @__PURE__ */
|
|
4760
|
+
/* @__PURE__ */ jsx90(
|
|
4745
4761
|
RoundButton_default,
|
|
4746
4762
|
{
|
|
4747
4763
|
onClick: () => handleClick("5"),
|
|
@@ -4750,7 +4766,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4750
4766
|
children: "5"
|
|
4751
4767
|
}
|
|
4752
4768
|
),
|
|
4753
|
-
/* @__PURE__ */
|
|
4769
|
+
/* @__PURE__ */ jsx90(
|
|
4754
4770
|
RoundButton_default,
|
|
4755
4771
|
{
|
|
4756
4772
|
onClick: () => handleClick("6"),
|
|
@@ -4761,7 +4777,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4761
4777
|
)
|
|
4762
4778
|
] }),
|
|
4763
4779
|
/* @__PURE__ */ jsxs56(Box18, { className: styles.numpadRow, children: [
|
|
4764
|
-
/* @__PURE__ */
|
|
4780
|
+
/* @__PURE__ */ jsx90(
|
|
4765
4781
|
RoundButton_default,
|
|
4766
4782
|
{
|
|
4767
4783
|
onClick: () => handleClick("7"),
|
|
@@ -4770,7 +4786,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4770
4786
|
children: "7"
|
|
4771
4787
|
}
|
|
4772
4788
|
),
|
|
4773
|
-
/* @__PURE__ */
|
|
4789
|
+
/* @__PURE__ */ jsx90(
|
|
4774
4790
|
RoundButton_default,
|
|
4775
4791
|
{
|
|
4776
4792
|
onClick: () => handleClick("8"),
|
|
@@ -4779,7 +4795,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4779
4795
|
children: "8"
|
|
4780
4796
|
}
|
|
4781
4797
|
),
|
|
4782
|
-
/* @__PURE__ */
|
|
4798
|
+
/* @__PURE__ */ jsx90(
|
|
4783
4799
|
RoundButton_default,
|
|
4784
4800
|
{
|
|
4785
4801
|
onClick: () => handleClick("9"),
|
|
@@ -4790,7 +4806,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4790
4806
|
)
|
|
4791
4807
|
] }),
|
|
4792
4808
|
/* @__PURE__ */ jsxs56(Box18, { className: styles.numpadRow, children: [
|
|
4793
|
-
/* @__PURE__ */
|
|
4809
|
+
/* @__PURE__ */ jsx90(
|
|
4794
4810
|
RoundButton_default,
|
|
4795
4811
|
{
|
|
4796
4812
|
onClick: () => handleClick("0"),
|
|
@@ -4799,7 +4815,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4799
4815
|
children: "0"
|
|
4800
4816
|
}
|
|
4801
4817
|
),
|
|
4802
|
-
/* @__PURE__ */
|
|
4818
|
+
/* @__PURE__ */ jsx90(
|
|
4803
4819
|
RoundButton_default,
|
|
4804
4820
|
{
|
|
4805
4821
|
onClick: () => handleClick("."),
|
|
@@ -4808,7 +4824,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4808
4824
|
children: "."
|
|
4809
4825
|
}
|
|
4810
4826
|
),
|
|
4811
|
-
/* @__PURE__ */
|
|
4827
|
+
/* @__PURE__ */ jsx90(
|
|
4812
4828
|
RoundButton_default,
|
|
4813
4829
|
{
|
|
4814
4830
|
onClick: () => handleClick("-"),
|
|
@@ -4819,7 +4835,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
4819
4835
|
)
|
|
4820
4836
|
] })
|
|
4821
4837
|
] }),
|
|
4822
|
-
/* @__PURE__ */
|
|
4838
|
+
/* @__PURE__ */ jsx90(Box18, { className: styles.numpadBackspace, children: /* @__PURE__ */ jsx90(
|
|
4823
4839
|
RoundButton_default,
|
|
4824
4840
|
{
|
|
4825
4841
|
icon: "backspaceOutlined",
|
|
@@ -4835,7 +4851,7 @@ var NumpadPlus_default = NumpadPlus;
|
|
|
4835
4851
|
// src/components/Pagination/Pagination.tsx
|
|
4836
4852
|
import { Pagination, Paper as Paper4, Typography as Typography16 } from "@mui/material";
|
|
4837
4853
|
import { makeStyles as makeStyles33 } from "tss-react/mui";
|
|
4838
|
-
import { jsx as
|
|
4854
|
+
import { jsx as jsx91, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
4839
4855
|
var paginationHeight = "56px";
|
|
4840
4856
|
var useStyles33 = makeStyles33()((theme) => ({
|
|
4841
4857
|
root: {
|
|
@@ -4878,7 +4894,7 @@ var PaginationForTable = ({
|
|
|
4878
4894
|
updateFilters({ ...appliedFilters, page: value });
|
|
4879
4895
|
};
|
|
4880
4896
|
const isFixed = position === "fixed";
|
|
4881
|
-
return /* @__PURE__ */
|
|
4897
|
+
return /* @__PURE__ */ jsx91(Paper4, { children: /* @__PURE__ */ jsxs57(
|
|
4882
4898
|
"div",
|
|
4883
4899
|
{
|
|
4884
4900
|
style,
|
|
@@ -4890,7 +4906,7 @@ var PaginationForTable = ({
|
|
|
4890
4906
|
"Page: ",
|
|
4891
4907
|
page
|
|
4892
4908
|
] }),
|
|
4893
|
-
/* @__PURE__ */
|
|
4909
|
+
/* @__PURE__ */ jsx91(
|
|
4894
4910
|
Pagination,
|
|
4895
4911
|
{
|
|
4896
4912
|
count: pagination.num_pages,
|
|
@@ -4907,8 +4923,8 @@ var Pagination_default = PaginationForTable;
|
|
|
4907
4923
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
4908
4924
|
import ReactPhoneInput from "react-phone-input-material-ui";
|
|
4909
4925
|
import { Box as Box19, TextField as TextField5, Typography as Typography17 } from "@mui/material";
|
|
4910
|
-
import { jsx as
|
|
4911
|
-
var TextInput = (props) => /* @__PURE__ */
|
|
4926
|
+
import { jsx as jsx92, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
4927
|
+
var TextInput = (props) => /* @__PURE__ */ jsx92(TextField5, { ...props, variant: "standard" });
|
|
4912
4928
|
var PhoneInput = ({
|
|
4913
4929
|
value,
|
|
4914
4930
|
onChange,
|
|
@@ -4925,7 +4941,7 @@ var PhoneInput = ({
|
|
|
4925
4941
|
},
|
|
4926
4942
|
className,
|
|
4927
4943
|
children: [
|
|
4928
|
-
/* @__PURE__ */
|
|
4944
|
+
/* @__PURE__ */ jsx92(
|
|
4929
4945
|
ReactPhoneInput,
|
|
4930
4946
|
{
|
|
4931
4947
|
label,
|
|
@@ -4940,7 +4956,7 @@ var PhoneInput = ({
|
|
|
4940
4956
|
}
|
|
4941
4957
|
}
|
|
4942
4958
|
),
|
|
4943
|
-
/* @__PURE__ */
|
|
4959
|
+
/* @__PURE__ */ jsx92(
|
|
4944
4960
|
Typography17,
|
|
4945
4961
|
{
|
|
4946
4962
|
variant: "caption",
|
|
@@ -4969,7 +4985,7 @@ import {
|
|
|
4969
4985
|
Typography as Typography18
|
|
4970
4986
|
} from "@mui/material";
|
|
4971
4987
|
import { makeStyles as makeStyles34 } from "tss-react/mui";
|
|
4972
|
-
import { jsx as
|
|
4988
|
+
import { jsx as jsx93, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
4973
4989
|
var useStyles34 = makeStyles34()((theme) => ({
|
|
4974
4990
|
container: {
|
|
4975
4991
|
position: "relative",
|
|
@@ -5112,7 +5128,7 @@ var PlusMinusInput = ({
|
|
|
5112
5128
|
updateInputValue(value);
|
|
5113
5129
|
};
|
|
5114
5130
|
const { classes, cx } = useStyles34();
|
|
5115
|
-
return /* @__PURE__ */
|
|
5131
|
+
return /* @__PURE__ */ jsx93("div", { className: classes.container, children: /* @__PURE__ */ jsxs59(
|
|
5116
5132
|
FormGroup,
|
|
5117
5133
|
{
|
|
5118
5134
|
className: cx(classes.wrapper, {
|
|
@@ -5120,7 +5136,7 @@ var PlusMinusInput = ({
|
|
|
5120
5136
|
[classes.rightButtons]: buttonsPosition === "right"
|
|
5121
5137
|
}),
|
|
5122
5138
|
children: [
|
|
5123
|
-
/* @__PURE__ */
|
|
5139
|
+
/* @__PURE__ */ jsx93(
|
|
5124
5140
|
RoundButton_default,
|
|
5125
5141
|
{
|
|
5126
5142
|
className: classes.minus,
|
|
@@ -5131,17 +5147,17 @@ var PlusMinusInput = ({
|
|
|
5131
5147
|
}
|
|
5132
5148
|
),
|
|
5133
5149
|
/* @__PURE__ */ jsxs59("div", { children: [
|
|
5134
|
-
/* @__PURE__ */
|
|
5150
|
+
/* @__PURE__ */ jsx93(
|
|
5135
5151
|
Controller7,
|
|
5136
5152
|
{
|
|
5137
5153
|
control,
|
|
5138
5154
|
name: "inputValue",
|
|
5139
|
-
render: ({ field }) => /* @__PURE__ */
|
|
5155
|
+
render: ({ field }) => /* @__PURE__ */ jsx93(
|
|
5140
5156
|
FormControlLabel2,
|
|
5141
5157
|
{
|
|
5142
5158
|
...field,
|
|
5143
5159
|
className: classes.formControlLabel,
|
|
5144
|
-
control: /* @__PURE__ */
|
|
5160
|
+
control: /* @__PURE__ */ jsx93(
|
|
5145
5161
|
TextField6,
|
|
5146
5162
|
{
|
|
5147
5163
|
className: classes.input,
|
|
@@ -5158,7 +5174,7 @@ var PlusMinusInput = ({
|
|
|
5158
5174
|
)
|
|
5159
5175
|
}
|
|
5160
5176
|
),
|
|
5161
|
-
errors.inputValue && /* @__PURE__ */
|
|
5177
|
+
errors.inputValue && /* @__PURE__ */ jsx93(
|
|
5162
5178
|
Typography18,
|
|
5163
5179
|
{
|
|
5164
5180
|
className: classes.errorText,
|
|
@@ -5169,7 +5185,7 @@ var PlusMinusInput = ({
|
|
|
5169
5185
|
}
|
|
5170
5186
|
)
|
|
5171
5187
|
] }),
|
|
5172
|
-
/* @__PURE__ */
|
|
5188
|
+
/* @__PURE__ */ jsx93(
|
|
5173
5189
|
RoundButton_default,
|
|
5174
5190
|
{
|
|
5175
5191
|
className: classes.plus,
|
|
@@ -5193,21 +5209,21 @@ import { withStyles as withStyles4 } from "tss-react/mui";
|
|
|
5193
5209
|
// src/components/ProductImage/ProductImage.tsx
|
|
5194
5210
|
import { CardMedia } from "@mui/material";
|
|
5195
5211
|
import { withStyles as withStyles3 } from "tss-react/mui";
|
|
5196
|
-
import { jsx as
|
|
5212
|
+
import { jsx as jsx94, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
5197
5213
|
var PImage = ({
|
|
5198
5214
|
classes,
|
|
5199
5215
|
image,
|
|
5200
5216
|
size = "c_productbust__image_xs",
|
|
5201
5217
|
status
|
|
5202
5218
|
}) => /* @__PURE__ */ jsxs60("div", { className: classes.c_productbust__image, children: [
|
|
5203
|
-
/* @__PURE__ */
|
|
5219
|
+
/* @__PURE__ */ jsx94(
|
|
5204
5220
|
CardMedia,
|
|
5205
5221
|
{
|
|
5206
5222
|
className: classes[size],
|
|
5207
5223
|
image: image || "@/resources/img/peas.jpg"
|
|
5208
5224
|
}
|
|
5209
5225
|
),
|
|
5210
|
-
status && status !== "ACTIVE" && /* @__PURE__ */
|
|
5226
|
+
status && status !== "ACTIVE" && /* @__PURE__ */ jsx94("div", { className: classes.c_productbust__label_status, children: status })
|
|
5211
5227
|
] });
|
|
5212
5228
|
var ProductImage = withStyles3(PImage, (theme) => ({
|
|
5213
5229
|
c_productbust__label_status: {
|
|
@@ -5289,7 +5305,7 @@ var ProductImage = withStyles3(PImage, (theme) => ({
|
|
|
5289
5305
|
var ProductImage_default = ProductImage;
|
|
5290
5306
|
|
|
5291
5307
|
// src/components/ProductBust/ProductBust.tsx
|
|
5292
|
-
import { Fragment as Fragment8, jsx as
|
|
5308
|
+
import { Fragment as Fragment8, jsx as jsx95, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
5293
5309
|
var PBust = ({
|
|
5294
5310
|
classes,
|
|
5295
5311
|
size,
|
|
@@ -5332,7 +5348,7 @@ var PBust = ({
|
|
|
5332
5348
|
break;
|
|
5333
5349
|
}
|
|
5334
5350
|
const [historyVisible, setHistoryVisible] = useState7(false);
|
|
5335
|
-
const historyDataIcon = () => /* @__PURE__ */
|
|
5351
|
+
const historyDataIcon = () => /* @__PURE__ */ jsx95(
|
|
5336
5352
|
RoundButton_default,
|
|
5337
5353
|
{
|
|
5338
5354
|
icon: "history",
|
|
@@ -5341,7 +5357,7 @@ var PBust = ({
|
|
|
5341
5357
|
}
|
|
5342
5358
|
);
|
|
5343
5359
|
return /* @__PURE__ */ jsxs61("div", { className: classes.c_productbust, children: [
|
|
5344
|
-
/* @__PURE__ */
|
|
5360
|
+
/* @__PURE__ */ jsx95(
|
|
5345
5361
|
ProductImage_default,
|
|
5346
5362
|
{
|
|
5347
5363
|
image: product?.image,
|
|
@@ -5352,7 +5368,7 @@ var PBust = ({
|
|
|
5352
5368
|
/* @__PURE__ */ jsxs61("div", { className: classes.c_productbust__container, children: [
|
|
5353
5369
|
/* @__PURE__ */ jsxs61("div", { className: classes.c_productbust__heading, children: [
|
|
5354
5370
|
/* @__PURE__ */ jsxs61("div", { children: [
|
|
5355
|
-
/* @__PURE__ */
|
|
5371
|
+
/* @__PURE__ */ jsx95(
|
|
5356
5372
|
Typography19,
|
|
5357
5373
|
{
|
|
5358
5374
|
component: "span",
|
|
@@ -5361,10 +5377,10 @@ var PBust = ({
|
|
|
5361
5377
|
children: !!locationData && locationData
|
|
5362
5378
|
}
|
|
5363
5379
|
),
|
|
5364
|
-
/* @__PURE__ */
|
|
5365
|
-
!product && /* @__PURE__ */
|
|
5380
|
+
/* @__PURE__ */ jsx95(Typography19, { component: "span", className: classes[titleSize], children: product?.name }),
|
|
5381
|
+
!product && /* @__PURE__ */ jsx95(Typography19, { component: "span", className: classes[titleSize], children: "Empty Position" }),
|
|
5366
5382
|
primaryData || /* @__PURE__ */ jsxs61(Fragment8, { children: [
|
|
5367
|
-
/* @__PURE__ */
|
|
5383
|
+
/* @__PURE__ */ jsx95(
|
|
5368
5384
|
Typography19,
|
|
5369
5385
|
{
|
|
5370
5386
|
style: { color: "#555" },
|
|
@@ -5372,7 +5388,7 @@ var PBust = ({
|
|
|
5372
5388
|
children: product?.category.name
|
|
5373
5389
|
}
|
|
5374
5390
|
),
|
|
5375
|
-
/* @__PURE__ */
|
|
5391
|
+
/* @__PURE__ */ jsx95(
|
|
5376
5392
|
Typography19,
|
|
5377
5393
|
{
|
|
5378
5394
|
style: { color: "#A42966", textTransform: "uppercase" },
|
|
@@ -5383,13 +5399,13 @@ var PBust = ({
|
|
|
5383
5399
|
] })
|
|
5384
5400
|
] }),
|
|
5385
5401
|
/* @__PURE__ */ jsxs61("div", { className: classes.c_productbust__btns, children: [
|
|
5386
|
-
/* @__PURE__ */
|
|
5387
|
-
/* @__PURE__ */
|
|
5402
|
+
/* @__PURE__ */ jsx95("div", { children: buttonData }),
|
|
5403
|
+
/* @__PURE__ */ jsx95("div", { children: !!locationId && historyDataIcon() })
|
|
5388
5404
|
] })
|
|
5389
5405
|
] }),
|
|
5390
|
-
/* @__PURE__ */
|
|
5406
|
+
/* @__PURE__ */ jsx95("div", { children: !!secondaryData && secondaryData })
|
|
5391
5407
|
] }),
|
|
5392
|
-
/* @__PURE__ */
|
|
5408
|
+
/* @__PURE__ */ jsx95(
|
|
5393
5409
|
LocationHistoryDialog,
|
|
5394
5410
|
{
|
|
5395
5411
|
handleVisible: setHistoryVisible,
|
|
@@ -5493,7 +5509,7 @@ var ProductBust_default = ProductBust;
|
|
|
5493
5509
|
// src/components/RenderAvatar/RenderAvatar.tsx
|
|
5494
5510
|
import { Avatar, Badge, Box as Box20, Typography as Typography20 } from "@mui/material";
|
|
5495
5511
|
import { withStyles as withStyles5 } from "tss-react/mui";
|
|
5496
|
-
import { jsx as
|
|
5512
|
+
import { jsx as jsx96, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
5497
5513
|
var RenderAvatar = ({ active }) => {
|
|
5498
5514
|
const StyledBadge = withStyles5(Badge, () => ({
|
|
5499
5515
|
root: {
|
|
@@ -5507,7 +5523,7 @@ var RenderAvatar = ({ active }) => {
|
|
|
5507
5523
|
{
|
|
5508
5524
|
sx: { display: "flex", flexDirection: "column", alignItems: "center" },
|
|
5509
5525
|
children: [
|
|
5510
|
-
/* @__PURE__ */
|
|
5526
|
+
/* @__PURE__ */ jsx96(
|
|
5511
5527
|
StyledBadge,
|
|
5512
5528
|
{
|
|
5513
5529
|
overlap: "circular",
|
|
@@ -5516,10 +5532,10 @@ var RenderAvatar = ({ active }) => {
|
|
|
5516
5532
|
horizontal: "right"
|
|
5517
5533
|
},
|
|
5518
5534
|
variant: "dot",
|
|
5519
|
-
children: /* @__PURE__ */
|
|
5535
|
+
children: /* @__PURE__ */ jsx96(Avatar, {})
|
|
5520
5536
|
}
|
|
5521
5537
|
),
|
|
5522
|
-
/* @__PURE__ */
|
|
5538
|
+
/* @__PURE__ */ jsx96(Typography20, { variant: "caption", children: active ? "Active" : "Disabled" })
|
|
5523
5539
|
]
|
|
5524
5540
|
}
|
|
5525
5541
|
);
|
|
@@ -5543,7 +5559,7 @@ import { useEffect as useEffect4, useState as useState8 } from "react";
|
|
|
5543
5559
|
var transformNameToID = (name) => name.replaceAll(" ", "-").toLocaleLowerCase();
|
|
5544
5560
|
|
|
5545
5561
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
5546
|
-
import { jsx as
|
|
5562
|
+
import { jsx as jsx97, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
5547
5563
|
var useStyles35 = makeStyles35()(
|
|
5548
5564
|
(_theme, _params, classes) => ({
|
|
5549
5565
|
root: {
|
|
@@ -5598,12 +5614,12 @@ var RenderContentList = ({
|
|
|
5598
5614
|
observer.current?.disconnect();
|
|
5599
5615
|
};
|
|
5600
5616
|
}, [items]);
|
|
5601
|
-
return /* @__PURE__ */
|
|
5617
|
+
return /* @__PURE__ */ jsx97(
|
|
5602
5618
|
List,
|
|
5603
5619
|
{
|
|
5604
5620
|
component: "nav",
|
|
5605
5621
|
"aria-labelledby": "nested-list-subheader",
|
|
5606
|
-
subheader: /* @__PURE__ */
|
|
5622
|
+
subheader: /* @__PURE__ */ jsx97(ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
|
|
5607
5623
|
children: items.map((item) => {
|
|
5608
5624
|
const id = transformNameToID(item);
|
|
5609
5625
|
return /* @__PURE__ */ jsxs63(
|
|
@@ -5622,8 +5638,8 @@ var RenderContentList = ({
|
|
|
5622
5638
|
}
|
|
5623
5639
|
},
|
|
5624
5640
|
children: [
|
|
5625
|
-
/* @__PURE__ */
|
|
5626
|
-
warningItems?.includes(item) && /* @__PURE__ */
|
|
5641
|
+
/* @__PURE__ */ jsx97(ListItemText4, { primary: item }),
|
|
5642
|
+
warningItems?.includes(item) && /* @__PURE__ */ jsx97(Tooltip4, { title: warningMessage, children: /* @__PURE__ */ jsx97(WarningAmber, { color: "warning" }) })
|
|
5627
5643
|
]
|
|
5628
5644
|
},
|
|
5629
5645
|
id
|
|
@@ -5637,7 +5653,7 @@ var RenderContentList_default = RenderContentList;
|
|
|
5637
5653
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
5638
5654
|
import { Box as Box21, Divider as Divider4, Paper as Paper5, Typography as Typography21 } from "@mui/material";
|
|
5639
5655
|
import { makeStyles as makeStyles36 } from "tss-react/mui";
|
|
5640
|
-
import { Fragment as Fragment9, jsx as
|
|
5656
|
+
import { Fragment as Fragment9, jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
5641
5657
|
var useStyles36 = makeStyles36()((theme) => ({
|
|
5642
5658
|
wrapper: {
|
|
5643
5659
|
display: "flex",
|
|
@@ -5677,7 +5693,7 @@ var RowProductCard = ({
|
|
|
5677
5693
|
large: "c_productbust__image_lg"
|
|
5678
5694
|
};
|
|
5679
5695
|
return /* @__PURE__ */ jsxs64(Paper5, { className: classes.wrapper, children: [
|
|
5680
|
-
/* @__PURE__ */
|
|
5696
|
+
/* @__PURE__ */ jsx98(
|
|
5681
5697
|
ProductImage_default,
|
|
5682
5698
|
{
|
|
5683
5699
|
image: product.image,
|
|
@@ -5703,16 +5719,16 @@ var RowProductCard = ({
|
|
|
5703
5719
|
},
|
|
5704
5720
|
children: [
|
|
5705
5721
|
/* @__PURE__ */ jsxs64("div", { children: [
|
|
5706
|
-
location ? /* @__PURE__ */
|
|
5707
|
-
/* @__PURE__ */
|
|
5722
|
+
location ? /* @__PURE__ */ jsx98(Typography21, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
|
|
5723
|
+
/* @__PURE__ */ jsx98(Typography21, { variant: "h6", children: product.name })
|
|
5708
5724
|
] }),
|
|
5709
5725
|
children
|
|
5710
5726
|
]
|
|
5711
5727
|
}
|
|
5712
5728
|
),
|
|
5713
5729
|
hasColumns ? /* @__PURE__ */ jsxs64(Fragment9, { children: [
|
|
5714
|
-
/* @__PURE__ */
|
|
5715
|
-
/* @__PURE__ */
|
|
5730
|
+
/* @__PURE__ */ jsx98(Divider4, { className: classes.divider }),
|
|
5731
|
+
/* @__PURE__ */ jsx98(
|
|
5716
5732
|
Box21,
|
|
5717
5733
|
{
|
|
5718
5734
|
sx: {
|
|
@@ -5720,8 +5736,8 @@ var RowProductCard = ({
|
|
|
5720
5736
|
gap: "24px"
|
|
5721
5737
|
},
|
|
5722
5738
|
children: columns.map((column) => /* @__PURE__ */ jsxs64("div", { children: [
|
|
5723
|
-
/* @__PURE__ */
|
|
5724
|
-
typeof column.value === "string" ? /* @__PURE__ */
|
|
5739
|
+
/* @__PURE__ */ jsx98(Typography21, { className: classes.smallTitle, variant: "caption", children: column.title }),
|
|
5740
|
+
typeof column.value === "string" ? /* @__PURE__ */ jsx98(Typography21, { variant: "body1", children: column.value }) : column.value
|
|
5725
5741
|
] }, column.title))
|
|
5726
5742
|
}
|
|
5727
5743
|
)
|
|
@@ -5737,7 +5753,7 @@ var RowProductCard_default = RowProductCard;
|
|
|
5737
5753
|
import { useEffect as useEffect6, useRef as useRef3, useState as useState10 } from "react";
|
|
5738
5754
|
import { Box as Box22, Dialog as Dialog4, Divider as Divider5, Fade, Paper as Paper6, Typography as Typography22 } from "@mui/material";
|
|
5739
5755
|
import { makeStyles as makeStyles37 } from "tss-react/mui";
|
|
5740
|
-
import { jsx as
|
|
5756
|
+
import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5741
5757
|
var useStyles37 = makeStyles37()((theme) => ({
|
|
5742
5758
|
dialog: {
|
|
5743
5759
|
margin: "0 auto",
|
|
@@ -5812,7 +5828,7 @@ var ScrollableDialog = ({
|
|
|
5812
5828
|
requestAnimationFrame(measureHeights);
|
|
5813
5829
|
}
|
|
5814
5830
|
}, [isOpen, header, footer, title, maxDialogHeight]);
|
|
5815
|
-
return /* @__PURE__ */
|
|
5831
|
+
return /* @__PURE__ */ jsx99(Dialog4, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ jsx99(
|
|
5816
5832
|
Fade,
|
|
5817
5833
|
{
|
|
5818
5834
|
in: isOpen,
|
|
@@ -5820,9 +5836,9 @@ var ScrollableDialog = ({
|
|
|
5820
5836
|
requestAnimationFrame(measureHeights);
|
|
5821
5837
|
},
|
|
5822
5838
|
children: /* @__PURE__ */ jsxs65(Paper6, { className: classes.wrapper, children: [
|
|
5823
|
-
header ? /* @__PURE__ */
|
|
5839
|
+
header ? /* @__PURE__ */ jsx99("div", { className: classes.header, id: "dialog-header", children: header }) : null,
|
|
5824
5840
|
/* @__PURE__ */ jsxs65("div", { className: classes.body, children: [
|
|
5825
|
-
/* @__PURE__ */
|
|
5841
|
+
/* @__PURE__ */ jsx99(
|
|
5826
5842
|
Typography22,
|
|
5827
5843
|
{
|
|
5828
5844
|
className: classes.title,
|
|
@@ -5831,7 +5847,7 @@ var ScrollableDialog = ({
|
|
|
5831
5847
|
children: title
|
|
5832
5848
|
}
|
|
5833
5849
|
),
|
|
5834
|
-
/* @__PURE__ */
|
|
5850
|
+
/* @__PURE__ */ jsx99(
|
|
5835
5851
|
"div",
|
|
5836
5852
|
{
|
|
5837
5853
|
className: cx(classes.scrollableContainer, {
|
|
@@ -5845,8 +5861,8 @@ var ScrollableDialog = ({
|
|
|
5845
5861
|
}
|
|
5846
5862
|
)
|
|
5847
5863
|
] }),
|
|
5848
|
-
/* @__PURE__ */
|
|
5849
|
-
footer ? /* @__PURE__ */
|
|
5864
|
+
/* @__PURE__ */ jsx99(Divider5, {}),
|
|
5865
|
+
footer ? /* @__PURE__ */ jsx99(
|
|
5850
5866
|
Box22,
|
|
5851
5867
|
{
|
|
5852
5868
|
className: classes.footer,
|
|
@@ -5878,7 +5894,7 @@ import {
|
|
|
5878
5894
|
} from "@mui/icons-material";
|
|
5879
5895
|
import { Button as Button11, Divider as Divider6, InputBase, Paper as Paper7 } from "@mui/material";
|
|
5880
5896
|
import { makeStyles as makeStyles38 } from "tss-react/mui";
|
|
5881
|
-
import { jsx as
|
|
5897
|
+
import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
5882
5898
|
var useStyles38 = makeStyles38()((theme) => ({
|
|
5883
5899
|
searchContainer: {
|
|
5884
5900
|
height: 46,
|
|
@@ -5939,8 +5955,8 @@ var SearchWithFilters = ({
|
|
|
5939
5955
|
setSearchText(searchValue);
|
|
5940
5956
|
}, [searchValue]);
|
|
5941
5957
|
return /* @__PURE__ */ jsxs66(Paper7, { className: classes.searchContainer, children: [
|
|
5942
|
-
/* @__PURE__ */
|
|
5943
|
-
/* @__PURE__ */
|
|
5958
|
+
/* @__PURE__ */ jsx100(SearchIcon, { className: classes.icon, fontSize: "small" }),
|
|
5959
|
+
/* @__PURE__ */ jsx100(
|
|
5944
5960
|
InputBase,
|
|
5945
5961
|
{
|
|
5946
5962
|
className: classes.input,
|
|
@@ -5952,7 +5968,7 @@ var SearchWithFilters = ({
|
|
|
5952
5968
|
inputProps: { "aria-label": "search" }
|
|
5953
5969
|
}
|
|
5954
5970
|
),
|
|
5955
|
-
/* @__PURE__ */
|
|
5971
|
+
/* @__PURE__ */ jsx100(Divider6, { className: classes.divider, orientation: "vertical" }),
|
|
5956
5972
|
/* @__PURE__ */ jsxs66(
|
|
5957
5973
|
Button11,
|
|
5958
5974
|
{
|
|
@@ -5961,7 +5977,7 @@ var SearchWithFilters = ({
|
|
|
5961
5977
|
disabled,
|
|
5962
5978
|
children: [
|
|
5963
5979
|
"Filters",
|
|
5964
|
-
showFilters ? /* @__PURE__ */
|
|
5980
|
+
showFilters ? /* @__PURE__ */ jsx100(ArrowDropUpIcon, {}) : /* @__PURE__ */ jsx100(ArrowDropDownIcon, {})
|
|
5965
5981
|
]
|
|
5966
5982
|
}
|
|
5967
5983
|
)
|
|
@@ -5970,7 +5986,7 @@ var SearchWithFilters = ({
|
|
|
5970
5986
|
var SearchWithFilters_default = React3.memo(SearchWithFilters);
|
|
5971
5987
|
|
|
5972
5988
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
5973
|
-
import { jsx as
|
|
5989
|
+
import { jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
5974
5990
|
var useStyles39 = makeStyles39()((theme) => ({
|
|
5975
5991
|
wrapper: {
|
|
5976
5992
|
display: "flex",
|
|
@@ -6006,11 +6022,11 @@ var SearchAndFilterHeader = ({
|
|
|
6006
6022
|
searchValue
|
|
6007
6023
|
}) => {
|
|
6008
6024
|
const { classes } = useStyles39();
|
|
6009
|
-
return /* @__PURE__ */
|
|
6025
|
+
return /* @__PURE__ */ jsx101(Paper8, { children: /* @__PURE__ */ jsxs67(Box23, { className: classes.wrapper, children: [
|
|
6010
6026
|
/* @__PURE__ */ jsxs67(Box23, { className: classes.container, children: [
|
|
6011
6027
|
/* @__PURE__ */ jsxs67(Box23, { className: classes.leftSection, children: [
|
|
6012
|
-
/* @__PURE__ */
|
|
6013
|
-
/* @__PURE__ */
|
|
6028
|
+
/* @__PURE__ */ jsx101(AppLabel_default, { appName }),
|
|
6029
|
+
/* @__PURE__ */ jsx101(
|
|
6014
6030
|
SearchWithFilters_default,
|
|
6015
6031
|
{
|
|
6016
6032
|
searchValue,
|
|
@@ -6021,9 +6037,9 @@ var SearchAndFilterHeader = ({
|
|
|
6021
6037
|
}
|
|
6022
6038
|
)
|
|
6023
6039
|
] }),
|
|
6024
|
-
/* @__PURE__ */
|
|
6040
|
+
/* @__PURE__ */ jsx101(Box23, { children: extraButton })
|
|
6025
6041
|
] }),
|
|
6026
|
-
showFilters ? /* @__PURE__ */
|
|
6042
|
+
showFilters ? /* @__PURE__ */ jsx101(Box23, { children: filtersComponent }) : null,
|
|
6027
6043
|
appliedFiltersComponent
|
|
6028
6044
|
] }) });
|
|
6029
6045
|
};
|
|
@@ -6043,7 +6059,7 @@ import {
|
|
|
6043
6059
|
} from "@mui/icons-material";
|
|
6044
6060
|
import { Box as Box24, Button as Button12, Divider as Divider7, InputBase as InputBase2, Paper as Paper9 } from "@mui/material";
|
|
6045
6061
|
import { makeStyles as makeStyles40 } from "tss-react/mui";
|
|
6046
|
-
import { Fragment as Fragment10, jsx as
|
|
6062
|
+
import { Fragment as Fragment10, jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
6047
6063
|
var useStyles40 = makeStyles40()((theme) => ({
|
|
6048
6064
|
c_search: {
|
|
6049
6065
|
height: 46,
|
|
@@ -6119,8 +6135,8 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
6119
6135
|
};
|
|
6120
6136
|
const ArrowIcon = isOpen ? ArrowDropUpIcon2 : ArrowDropDownIcon2;
|
|
6121
6137
|
return /* @__PURE__ */ jsxs68(Paper9, { className: classes.c_search, children: [
|
|
6122
|
-
/* @__PURE__ */
|
|
6123
|
-
/* @__PURE__ */
|
|
6138
|
+
/* @__PURE__ */ jsx102(Box24, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx102(SearchIcon2, { className: classes.icon, fontSize: "small" }) }),
|
|
6139
|
+
/* @__PURE__ */ jsx102(
|
|
6124
6140
|
InputBase2,
|
|
6125
6141
|
{
|
|
6126
6142
|
className: classes.c_search__input,
|
|
@@ -6131,7 +6147,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
6131
6147
|
}
|
|
6132
6148
|
),
|
|
6133
6149
|
showFilterButton && /* @__PURE__ */ jsxs68(Fragment10, { children: [
|
|
6134
|
-
/* @__PURE__ */
|
|
6150
|
+
/* @__PURE__ */ jsx102(
|
|
6135
6151
|
Divider7,
|
|
6136
6152
|
{
|
|
6137
6153
|
className: classes.c_search__divider,
|
|
@@ -6145,7 +6161,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
6145
6161
|
onClick: handleFilterButtonClick,
|
|
6146
6162
|
children: [
|
|
6147
6163
|
"Filters",
|
|
6148
|
-
/* @__PURE__ */
|
|
6164
|
+
/* @__PURE__ */ jsx102(ArrowIcon, { className: classes.c_search__bt_icon_filter })
|
|
6149
6165
|
]
|
|
6150
6166
|
}
|
|
6151
6167
|
)
|
|
@@ -6155,7 +6171,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
6155
6171
|
var SearchWithFiltersForTable_default = memo16(SearchWithFiltersForTable);
|
|
6156
6172
|
|
|
6157
6173
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
6158
|
-
import { jsx as
|
|
6174
|
+
import { jsx as jsx103, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
6159
6175
|
var useStyles41 = makeStyles41()((theme) => ({
|
|
6160
6176
|
container: {
|
|
6161
6177
|
display: "flex",
|
|
@@ -6189,8 +6205,8 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
6189
6205
|
const { classes } = useStyles41();
|
|
6190
6206
|
return /* @__PURE__ */ jsxs69(Box25, { className: classes.container, children: [
|
|
6191
6207
|
/* @__PURE__ */ jsxs69(Box25, { className: classes.leftSection, children: [
|
|
6192
|
-
/* @__PURE__ */
|
|
6193
|
-
/* @__PURE__ */
|
|
6208
|
+
/* @__PURE__ */ jsx103(AppLabel_default, { appName }),
|
|
6209
|
+
/* @__PURE__ */ jsx103(
|
|
6194
6210
|
SearchWithFiltersForTable_default,
|
|
6195
6211
|
{
|
|
6196
6212
|
onFilterButtonClick,
|
|
@@ -6201,17 +6217,17 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
6201
6217
|
searchedValue
|
|
6202
6218
|
}
|
|
6203
6219
|
),
|
|
6204
|
-
copy && /* @__PURE__ */
|
|
6220
|
+
copy && /* @__PURE__ */ jsx103(
|
|
6205
6221
|
Box25,
|
|
6206
6222
|
{
|
|
6207
6223
|
sx: {
|
|
6208
6224
|
margin: 0.5
|
|
6209
6225
|
},
|
|
6210
|
-
children: /* @__PURE__ */
|
|
6226
|
+
children: /* @__PURE__ */ jsx103(OutlinedButton_default, { copy })
|
|
6211
6227
|
}
|
|
6212
6228
|
)
|
|
6213
6229
|
] }),
|
|
6214
|
-
/* @__PURE__ */
|
|
6230
|
+
/* @__PURE__ */ jsx103(Box25, { children: button })
|
|
6215
6231
|
] });
|
|
6216
6232
|
};
|
|
6217
6233
|
var SearchAndFilterHeaderForTable_default = React4.memo(SearchAndFilterHeaderForTable);
|
|
@@ -6220,7 +6236,7 @@ var SearchAndFilterHeaderForTable_default = React4.memo(SearchAndFilterHeaderFor
|
|
|
6220
6236
|
import { useState as useState13, useRef as useRef4, useEffect as useEffect8 } from "react";
|
|
6221
6237
|
import { TextField as TextField7, InputAdornment as InputAdornment3, Box as Box26 } from "@mui/material";
|
|
6222
6238
|
import Search2 from "@mui/icons-material/Search";
|
|
6223
|
-
import { jsx as
|
|
6239
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
6224
6240
|
var SearchFieldDebounced = ({
|
|
6225
6241
|
onSearch,
|
|
6226
6242
|
initialValue = "",
|
|
@@ -6243,7 +6259,7 @@ var SearchFieldDebounced = ({
|
|
|
6243
6259
|
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
6244
6260
|
};
|
|
6245
6261
|
}, []);
|
|
6246
|
-
return /* @__PURE__ */
|
|
6262
|
+
return /* @__PURE__ */ jsx104(Box26, { width: 285, children: /* @__PURE__ */ jsx104(
|
|
6247
6263
|
TextField7,
|
|
6248
6264
|
{
|
|
6249
6265
|
fullWidth: true,
|
|
@@ -6258,7 +6274,7 @@ var SearchFieldDebounced = ({
|
|
|
6258
6274
|
px: 2,
|
|
6259
6275
|
py: 2.5
|
|
6260
6276
|
},
|
|
6261
|
-
startAdornment: /* @__PURE__ */
|
|
6277
|
+
startAdornment: /* @__PURE__ */ jsx104(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx104(Search2, { fontSize: "small" }) })
|
|
6262
6278
|
}
|
|
6263
6279
|
}
|
|
6264
6280
|
}
|
|
@@ -6269,7 +6285,7 @@ var SearchFieldDebounced = ({
|
|
|
6269
6285
|
import { History as History2, Info as InfoIcon } from "@mui/icons-material";
|
|
6270
6286
|
import { Box as Box27, Divider as Divider8, IconButton as IconButton3, Tooltip as Tooltip5, Typography as Typography23 } from "@mui/material";
|
|
6271
6287
|
import { makeStyles as makeStyles42 } from "tss-react/mui";
|
|
6272
|
-
import { jsx as
|
|
6288
|
+
import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
6273
6289
|
var useStyles42 = makeStyles42()((theme) => ({
|
|
6274
6290
|
container: {
|
|
6275
6291
|
display: "flex",
|
|
@@ -6314,7 +6330,7 @@ var SectionName = ({
|
|
|
6314
6330
|
const { classes } = useStyles42();
|
|
6315
6331
|
return /* @__PURE__ */ jsxs70(Box27, { className: classes.container, children: [
|
|
6316
6332
|
/* @__PURE__ */ jsxs70(Box27, { className: classes.titleContainer, children: [
|
|
6317
|
-
/* @__PURE__ */
|
|
6333
|
+
/* @__PURE__ */ jsx105(
|
|
6318
6334
|
Typography23,
|
|
6319
6335
|
{
|
|
6320
6336
|
variant: "h5",
|
|
@@ -6324,7 +6340,7 @@ var SectionName = ({
|
|
|
6324
6340
|
children: name
|
|
6325
6341
|
}
|
|
6326
6342
|
),
|
|
6327
|
-
tooltipDescription ? /* @__PURE__ */
|
|
6343
|
+
tooltipDescription ? /* @__PURE__ */ jsx105(Tooltip5, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx105(
|
|
6328
6344
|
InfoIcon,
|
|
6329
6345
|
{
|
|
6330
6346
|
fontSize: "small",
|
|
@@ -6334,7 +6350,7 @@ var SectionName = ({
|
|
|
6334
6350
|
) }) : null
|
|
6335
6351
|
] }),
|
|
6336
6352
|
/* @__PURE__ */ jsxs70(Box27, { className: classes.actionButtons, children: [
|
|
6337
|
-
buttonText ? /* @__PURE__ */
|
|
6353
|
+
buttonText ? /* @__PURE__ */ jsx105(
|
|
6338
6354
|
ExtendedButton_default,
|
|
6339
6355
|
{
|
|
6340
6356
|
type: buttonType,
|
|
@@ -6347,8 +6363,8 @@ var SectionName = ({
|
|
|
6347
6363
|
variant: "text"
|
|
6348
6364
|
}
|
|
6349
6365
|
) : null,
|
|
6350
|
-
openHistoryLog && buttonText && /* @__PURE__ */
|
|
6351
|
-
openHistoryLog && /* @__PURE__ */
|
|
6366
|
+
openHistoryLog && buttonText && /* @__PURE__ */ jsx105(Divider8, { orientation: "vertical", sx: { height: "24px" } }),
|
|
6367
|
+
openHistoryLog && /* @__PURE__ */ jsx105(IconButton3, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx105(History2, {}) })
|
|
6352
6368
|
] })
|
|
6353
6369
|
] });
|
|
6354
6370
|
};
|
|
@@ -6365,7 +6381,7 @@ import {
|
|
|
6365
6381
|
Select as Select3
|
|
6366
6382
|
} from "@mui/material";
|
|
6367
6383
|
import { makeStyles as makeStyles43 } from "tss-react/mui";
|
|
6368
|
-
import { jsx as
|
|
6384
|
+
import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
6369
6385
|
var useStyles43 = makeStyles43()(() => ({
|
|
6370
6386
|
container: {
|
|
6371
6387
|
display: "flex",
|
|
@@ -6444,7 +6460,7 @@ var SmartSelect = forwardRef2(
|
|
|
6444
6460
|
"data-testid": dataTestId,
|
|
6445
6461
|
disabled,
|
|
6446
6462
|
children: [
|
|
6447
|
-
inputLabel && /* @__PURE__ */
|
|
6463
|
+
inputLabel && /* @__PURE__ */ jsx106(
|
|
6448
6464
|
InputLabel4,
|
|
6449
6465
|
{
|
|
6450
6466
|
id: "smart-select-label",
|
|
@@ -6470,17 +6486,17 @@ var SmartSelect = forwardRef2(
|
|
|
6470
6486
|
MenuProps: menuProps,
|
|
6471
6487
|
label: inputLabel,
|
|
6472
6488
|
children: [
|
|
6473
|
-
isFetching && /* @__PURE__ */
|
|
6489
|
+
isFetching && /* @__PURE__ */ jsx106(
|
|
6474
6490
|
MenuItem3,
|
|
6475
6491
|
{
|
|
6476
6492
|
disabled: true,
|
|
6477
6493
|
"data-testid": `${dataTestId}-loading`,
|
|
6478
6494
|
id: `${dataTestId}-loading`,
|
|
6479
|
-
children: /* @__PURE__ */
|
|
6495
|
+
children: /* @__PURE__ */ jsx106(CircularProgress4, { size: 24 })
|
|
6480
6496
|
}
|
|
6481
6497
|
),
|
|
6482
|
-
(defaultOption === null || !defaultOptionLabelIsValid || !defaultOptionValueIsValid) && !isFetching && options?.length === 0 && /* @__PURE__ */
|
|
6483
|
-
localOptions.length === 0 && !isFetching && options?.length !== 0 && defaultOptionLabelIsValid && defaultOptionValueIsValid && /* @__PURE__ */
|
|
6498
|
+
(defaultOption === null || !defaultOptionLabelIsValid || !defaultOptionValueIsValid) && !isFetching && options?.length === 0 && /* @__PURE__ */ jsx106(MenuItem3, { disabled: true, "data-testid": `${dataTestId}-empty-message`, children: emptyMessage }),
|
|
6499
|
+
localOptions.length === 0 && !isFetching && options?.length !== 0 && defaultOptionLabelIsValid && defaultOptionValueIsValid && /* @__PURE__ */ jsx106(
|
|
6484
6500
|
MenuItem3,
|
|
6485
6501
|
{
|
|
6486
6502
|
value: defaultOption?.value,
|
|
@@ -6488,7 +6504,7 @@ var SmartSelect = forwardRef2(
|
|
|
6488
6504
|
children: defaultOption?.label
|
|
6489
6505
|
}
|
|
6490
6506
|
),
|
|
6491
|
-
!isFetching && combinedOptions.length > 0 && combinedOptions.map((option) => /* @__PURE__ */
|
|
6507
|
+
!isFetching && combinedOptions.length > 0 && combinedOptions.map((option) => /* @__PURE__ */ jsx106(
|
|
6492
6508
|
MenuItem3,
|
|
6493
6509
|
{
|
|
6494
6510
|
value: option?.value,
|
|
@@ -6501,7 +6517,7 @@ var SmartSelect = forwardRef2(
|
|
|
6501
6517
|
]
|
|
6502
6518
|
}
|
|
6503
6519
|
),
|
|
6504
|
-
helperText && /* @__PURE__ */
|
|
6520
|
+
helperText && /* @__PURE__ */ jsx106(FormHelperText3, { "data-testid": `${dataTestId}-helper-text`, children: helperText })
|
|
6505
6521
|
]
|
|
6506
6522
|
}
|
|
6507
6523
|
);
|
|
@@ -6514,7 +6530,7 @@ import { memo as memo18 } from "react";
|
|
|
6514
6530
|
import { Typography as Typography24 } from "@mui/material";
|
|
6515
6531
|
import red2 from "@mui/material/colors/red";
|
|
6516
6532
|
import { makeStyles as makeStyles44 } from "tss-react/mui";
|
|
6517
|
-
import { jsx as
|
|
6533
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
6518
6534
|
var useStyles44 = makeStyles44()((theme) => ({
|
|
6519
6535
|
red: {
|
|
6520
6536
|
backgroundColor: red2["50"],
|
|
@@ -6529,7 +6545,7 @@ var useStyles44 = makeStyles44()((theme) => ({
|
|
|
6529
6545
|
}));
|
|
6530
6546
|
var SquareLabel = ({ color, copy }) => {
|
|
6531
6547
|
const { classes } = useStyles44();
|
|
6532
|
-
return /* @__PURE__ */
|
|
6548
|
+
return /* @__PURE__ */ jsx107(Typography24, { className: classes[color], children: copy });
|
|
6533
6549
|
};
|
|
6534
6550
|
var SquareLabel_default = memo18(SquareLabel);
|
|
6535
6551
|
|
|
@@ -6537,7 +6553,7 @@ var SquareLabel_default = memo18(SquareLabel);
|
|
|
6537
6553
|
import { memo as memo19 } from "react";
|
|
6538
6554
|
import { Grid2, Switch } from "@mui/material";
|
|
6539
6555
|
import { withStyles as withStyles6 } from "tss-react/mui";
|
|
6540
|
-
import { jsx as
|
|
6556
|
+
import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
6541
6557
|
var LSwitch = ({
|
|
6542
6558
|
checked,
|
|
6543
6559
|
labelOn,
|
|
@@ -6545,7 +6561,7 @@ var LSwitch = ({
|
|
|
6545
6561
|
handleChange,
|
|
6546
6562
|
classes,
|
|
6547
6563
|
disabled
|
|
6548
|
-
}) => /* @__PURE__ */
|
|
6564
|
+
}) => /* @__PURE__ */ jsx108("div", { className: classes.c_switch, children: /* @__PURE__ */ jsxs72(
|
|
6549
6565
|
Grid2,
|
|
6550
6566
|
{
|
|
6551
6567
|
component: "label",
|
|
@@ -6555,8 +6571,8 @@ var LSwitch = ({
|
|
|
6555
6571
|
alignItems: "center"
|
|
6556
6572
|
},
|
|
6557
6573
|
children: [
|
|
6558
|
-
labelOff && /* @__PURE__ */
|
|
6559
|
-
/* @__PURE__ */
|
|
6574
|
+
labelOff && /* @__PURE__ */ jsx108(Grid2, { children: labelOff }),
|
|
6575
|
+
/* @__PURE__ */ jsx108(Grid2, { children: /* @__PURE__ */ jsx108(
|
|
6560
6576
|
Switch,
|
|
6561
6577
|
{
|
|
6562
6578
|
checked,
|
|
@@ -6565,7 +6581,7 @@ var LSwitch = ({
|
|
|
6565
6581
|
disabled
|
|
6566
6582
|
}
|
|
6567
6583
|
) }),
|
|
6568
|
-
labelOn && /* @__PURE__ */
|
|
6584
|
+
labelOn && /* @__PURE__ */ jsx108(Grid2, { children: labelOn })
|
|
6569
6585
|
]
|
|
6570
6586
|
}
|
|
6571
6587
|
) });
|
|
@@ -6603,7 +6619,7 @@ import {
|
|
|
6603
6619
|
} from "@mui/material";
|
|
6604
6620
|
import classNames3 from "classnames";
|
|
6605
6621
|
import { makeStyles as makeStyles45 } from "tss-react/mui";
|
|
6606
|
-
import { Fragment as Fragment11, jsx as
|
|
6622
|
+
import { Fragment as Fragment11, jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
6607
6623
|
var useStyles45 = makeStyles45()((theme) => ({
|
|
6608
6624
|
filterMenu: {
|
|
6609
6625
|
display: "flex",
|
|
@@ -6722,17 +6738,17 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
6722
6738
|
(value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
|
|
6723
6739
|
), [selectedFilters]);
|
|
6724
6740
|
const loadingSkeletons = /* @__PURE__ */ jsxs73(Box28, { "data-testid": "loading-skeletons", width: 272, children: [
|
|
6725
|
-
/* @__PURE__ */
|
|
6726
|
-
/* @__PURE__ */
|
|
6727
|
-
/* @__PURE__ */
|
|
6728
|
-
/* @__PURE__ */
|
|
6729
|
-
/* @__PURE__ */
|
|
6730
|
-
/* @__PURE__ */
|
|
6731
|
-
/* @__PURE__ */
|
|
6732
|
-
/* @__PURE__ */
|
|
6741
|
+
/* @__PURE__ */ jsx109(Skeleton2, { variant: "rounded", className: classes.skeleton }),
|
|
6742
|
+
/* @__PURE__ */ jsx109(Divider9, {}),
|
|
6743
|
+
/* @__PURE__ */ jsx109(Skeleton2, { variant: "rounded", className: classes.skeleton }),
|
|
6744
|
+
/* @__PURE__ */ jsx109(Skeleton2, { variant: "rounded", className: classes.skeleton }),
|
|
6745
|
+
/* @__PURE__ */ jsx109(Skeleton2, { variant: "rounded", className: classes.skeleton }),
|
|
6746
|
+
/* @__PURE__ */ jsx109(Skeleton2, { variant: "rounded", className: classes.skeleton }),
|
|
6747
|
+
/* @__PURE__ */ jsx109(Divider9, {}),
|
|
6748
|
+
/* @__PURE__ */ jsx109(Skeleton2, { variant: "rounded", className: classes.skeleton })
|
|
6733
6749
|
] });
|
|
6734
6750
|
return /* @__PURE__ */ jsxs73(Fragment11, { children: [
|
|
6735
|
-
/* @__PURE__ */
|
|
6751
|
+
/* @__PURE__ */ jsx109(
|
|
6736
6752
|
ActiveFiltersIconButton_default,
|
|
6737
6753
|
{
|
|
6738
6754
|
numActiveFilters,
|
|
@@ -6742,7 +6758,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
6742
6758
|
})
|
|
6743
6759
|
}
|
|
6744
6760
|
),
|
|
6745
|
-
/* @__PURE__ */
|
|
6761
|
+
/* @__PURE__ */ jsx109(
|
|
6746
6762
|
Menu4,
|
|
6747
6763
|
{
|
|
6748
6764
|
open: !!anchorEl,
|
|
@@ -6752,11 +6768,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
6752
6768
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
6753
6769
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
6754
6770
|
children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs73(Box28, { className: classes.filterMenu, children: [
|
|
6755
|
-
/* @__PURE__ */
|
|
6771
|
+
/* @__PURE__ */ jsx109(Box28, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx109(
|
|
6756
6772
|
FormControlLabel3,
|
|
6757
6773
|
{
|
|
6758
6774
|
label: "Select All",
|
|
6759
|
-
control: /* @__PURE__ */
|
|
6775
|
+
control: /* @__PURE__ */ jsx109(
|
|
6760
6776
|
Checkbox4,
|
|
6761
6777
|
{
|
|
6762
6778
|
disableRipple: true,
|
|
@@ -6773,8 +6789,8 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
6773
6789
|
)
|
|
6774
6790
|
}
|
|
6775
6791
|
) }),
|
|
6776
|
-
/* @__PURE__ */
|
|
6777
|
-
/* @__PURE__ */
|
|
6792
|
+
/* @__PURE__ */ jsx109(Divider9, { sx: { mb: 0.5 } }),
|
|
6793
|
+
/* @__PURE__ */ jsx109(Box28, { className: classes.filterOptions, children: filterOptionsData?.map(
|
|
6778
6794
|
(option) => {
|
|
6779
6795
|
const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
|
|
6780
6796
|
return /* @__PURE__ */ jsxs73(
|
|
@@ -6782,11 +6798,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
6782
6798
|
{
|
|
6783
6799
|
className: classes.filter,
|
|
6784
6800
|
children: [
|
|
6785
|
-
/* @__PURE__ */
|
|
6801
|
+
/* @__PURE__ */ jsx109(
|
|
6786
6802
|
FormControlLabel3,
|
|
6787
6803
|
{
|
|
6788
6804
|
label: resolvedOption,
|
|
6789
|
-
control: /* @__PURE__ */
|
|
6805
|
+
control: /* @__PURE__ */ jsx109(
|
|
6790
6806
|
Checkbox4,
|
|
6791
6807
|
{
|
|
6792
6808
|
disableRipple: true,
|
|
@@ -6797,16 +6813,16 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
6797
6813
|
},
|
|
6798
6814
|
resolvedOption
|
|
6799
6815
|
),
|
|
6800
|
-
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */
|
|
6816
|
+
shouldShowCheckOnFilter?.(headCell.id, option) ? /* @__PURE__ */ jsx109(Tooltip6, { title: "This filter is saved as default", children: /* @__PURE__ */ jsx109(CheckIcon, { fontSize: "small", color: "action" }) }) : null
|
|
6801
6817
|
]
|
|
6802
6818
|
},
|
|
6803
6819
|
resolvedOption
|
|
6804
6820
|
);
|
|
6805
6821
|
}
|
|
6806
6822
|
) }),
|
|
6807
|
-
/* @__PURE__ */
|
|
6823
|
+
/* @__PURE__ */ jsx109(Divider9, { sx: { mb: 0.5 } }),
|
|
6808
6824
|
/* @__PURE__ */ jsxs73(Box28, { className: classes.applyFilterButtonsContainer, children: [
|
|
6809
|
-
/* @__PURE__ */
|
|
6825
|
+
/* @__PURE__ */ jsx109(
|
|
6810
6826
|
ExtendedButton_default,
|
|
6811
6827
|
{
|
|
6812
6828
|
copy: "Save as Default",
|
|
@@ -6817,7 +6833,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
6817
6833
|
onClick: () => handleApplyFilters(true)
|
|
6818
6834
|
}
|
|
6819
6835
|
),
|
|
6820
|
-
/* @__PURE__ */
|
|
6836
|
+
/* @__PURE__ */ jsx109(
|
|
6821
6837
|
ExtendedButton_default,
|
|
6822
6838
|
{
|
|
6823
6839
|
copy: "Apply",
|
|
@@ -6847,7 +6863,7 @@ import {
|
|
|
6847
6863
|
Typography as Typography25
|
|
6848
6864
|
} from "@mui/material";
|
|
6849
6865
|
import { makeStyles as makeStyles46 } from "tss-react/mui";
|
|
6850
|
-
import { jsx as
|
|
6866
|
+
import { jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
6851
6867
|
var useStyles46 = makeStyles46()((theme) => ({
|
|
6852
6868
|
root: {
|
|
6853
6869
|
backgroundColor: colors.neutral100,
|
|
@@ -6871,6 +6887,7 @@ var useStyles46 = makeStyles46()((theme) => ({
|
|
|
6871
6887
|
tableHeaderContent: {
|
|
6872
6888
|
borderBottom: "1px solid",
|
|
6873
6889
|
borderBottomColor: colors.neutral300,
|
|
6890
|
+
backgroundColor: colors.neutral100,
|
|
6874
6891
|
whiteSpace: "nowrap",
|
|
6875
6892
|
"& .filter-menu-trigger": {
|
|
6876
6893
|
visibility: "hidden",
|
|
@@ -6920,8 +6937,8 @@ var SmartTableHeader = ({
|
|
|
6920
6937
|
onRequestSort(event, property);
|
|
6921
6938
|
};
|
|
6922
6939
|
const isSortActive = (headCellId) => orderBy === headCellId;
|
|
6923
|
-
return /* @__PURE__ */
|
|
6924
|
-
enableCheckboxSelection ? /* @__PURE__ */
|
|
6940
|
+
return /* @__PURE__ */ jsx110(TableHead, { className: classes.root, children: /* @__PURE__ */ jsxs74(TableRow, { children: [
|
|
6941
|
+
enableCheckboxSelection ? /* @__PURE__ */ jsx110(TableCell, { padding: "checkbox", sx: { backgroundColor: colors.neutral100 }, children: /* @__PURE__ */ jsx110(
|
|
6925
6942
|
Checkbox5,
|
|
6926
6943
|
{
|
|
6927
6944
|
color: "primary",
|
|
@@ -6931,7 +6948,7 @@ var SmartTableHeader = ({
|
|
|
6931
6948
|
onChange: onSelectAllClick
|
|
6932
6949
|
}
|
|
6933
6950
|
) }) : null,
|
|
6934
|
-
headCells.map((headCell) => /* @__PURE__ */
|
|
6951
|
+
headCells.map((headCell) => /* @__PURE__ */ jsx110(
|
|
6935
6952
|
TableCell,
|
|
6936
6953
|
{
|
|
6937
6954
|
className: classes.tableHeaderContent,
|
|
@@ -6945,7 +6962,7 @@ var SmartTableHeader = ({
|
|
|
6945
6962
|
flexDirection: "row",
|
|
6946
6963
|
gap: headCell.disableSort ? 1 : 0,
|
|
6947
6964
|
children: [
|
|
6948
|
-
headCell.disableSort ? headCell.RenderHeader ?? /* @__PURE__ */
|
|
6965
|
+
headCell.disableSort ? headCell.RenderHeader ?? /* @__PURE__ */ jsx110(Tooltip7, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsx110(Typography25, { variant: "subtitle2", mt: 0.25, fontWeight: 600, children: headCell.label }) }) : /* @__PURE__ */ jsx110(Tooltip7, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsxs74(
|
|
6949
6966
|
TableSortLabel,
|
|
6950
6967
|
{
|
|
6951
6968
|
"data-testid": "table-sort-label",
|
|
@@ -6954,11 +6971,11 @@ var SmartTableHeader = ({
|
|
|
6954
6971
|
onClick: createSortHandler(headCell.id),
|
|
6955
6972
|
children: [
|
|
6956
6973
|
headCell.RenderHeader ?? headCell.label,
|
|
6957
|
-
orderBy === headCell.id ? /* @__PURE__ */
|
|
6974
|
+
orderBy === headCell.id ? /* @__PURE__ */ jsx110("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
|
|
6958
6975
|
]
|
|
6959
6976
|
}
|
|
6960
6977
|
) }),
|
|
6961
|
-
headCell.refetchFilterOptions ? /* @__PURE__ */
|
|
6978
|
+
headCell.refetchFilterOptions ? /* @__PURE__ */ jsx110(
|
|
6962
6979
|
SmartTableHeaderFilterMenu_default,
|
|
6963
6980
|
{
|
|
6964
6981
|
headCell,
|
|
@@ -6997,11 +7014,11 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
6997
7014
|
|
|
6998
7015
|
// src/components/TableLoading/TableLoading.tsx
|
|
6999
7016
|
import { Box as Box30, Skeleton as Skeleton3 } from "@mui/material";
|
|
7000
|
-
import { jsx as
|
|
7017
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
7001
7018
|
var TableLoading = ({
|
|
7002
7019
|
rowsPerPage,
|
|
7003
7020
|
rowHeight
|
|
7004
|
-
}) => /* @__PURE__ */
|
|
7021
|
+
}) => /* @__PURE__ */ jsx111(Box30, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx111(
|
|
7005
7022
|
Skeleton3,
|
|
7006
7023
|
{
|
|
7007
7024
|
animation: "pulse",
|
|
@@ -7050,7 +7067,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
7050
7067
|
}
|
|
7051
7068
|
|
|
7052
7069
|
// src/components/Table/Table.tsx
|
|
7053
|
-
import { jsx as
|
|
7070
|
+
import { jsx as jsx112, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
7054
7071
|
var useStyles47 = makeStyles47()(() => ({
|
|
7055
7072
|
root: {
|
|
7056
7073
|
height: "calc(100vh - 262px)",
|
|
@@ -7128,24 +7145,24 @@ var Table = ({
|
|
|
7128
7145
|
);
|
|
7129
7146
|
const rowsComponents = rows.map((row) => {
|
|
7130
7147
|
if (RenderItem) {
|
|
7131
|
-
return /* @__PURE__ */
|
|
7148
|
+
return /* @__PURE__ */ jsx112(RenderItem, { ...row }, row.id);
|
|
7132
7149
|
}
|
|
7133
|
-
return /* @__PURE__ */
|
|
7150
|
+
return /* @__PURE__ */ jsx112(TableRow2, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx112(TableCell2, { children: row[column.id] }, column.id)) }, row.id);
|
|
7134
7151
|
});
|
|
7135
7152
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
7136
7153
|
rowsComponents.push(
|
|
7137
|
-
/* @__PURE__ */
|
|
7154
|
+
/* @__PURE__ */ jsx112(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx112(TableCell2, { colSpan: 8 }) }, uuidv4())
|
|
7138
7155
|
);
|
|
7139
7156
|
}
|
|
7140
7157
|
return rowsComponents;
|
|
7141
7158
|
};
|
|
7142
|
-
return /* @__PURE__ */
|
|
7143
|
-
/* @__PURE__ */
|
|
7159
|
+
return /* @__PURE__ */ jsx112(Paper10, { className: classes.root, children: /* @__PURE__ */ jsx112(Box31, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx112(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx112(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs75(MUITable, { size: "medium", stickyHeader: true, children: [
|
|
7160
|
+
/* @__PURE__ */ jsx112(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx112(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx112(
|
|
7144
7161
|
TableCell2,
|
|
7145
7162
|
{
|
|
7146
7163
|
align: "left",
|
|
7147
7164
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
7148
|
-
children: /* @__PURE__ */
|
|
7165
|
+
children: /* @__PURE__ */ jsx112(
|
|
7149
7166
|
TableSortLabel2,
|
|
7150
7167
|
{
|
|
7151
7168
|
active: orderBy === headCell.id,
|
|
@@ -7159,7 +7176,7 @@ var Table = ({
|
|
|
7159
7176
|
)) }) }),
|
|
7160
7177
|
/* @__PURE__ */ jsxs75(TableBody, { children: [
|
|
7161
7178
|
getTableRows(),
|
|
7162
|
-
rowsPerPage === emptyRows && /* @__PURE__ */
|
|
7179
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ jsx112(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx112(TableCell2, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
7163
7180
|
] })
|
|
7164
7181
|
] }) }) }) });
|
|
7165
7182
|
};
|
|
@@ -7182,7 +7199,7 @@ import {
|
|
|
7182
7199
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
7183
7200
|
import Refresh3 from "@mui/icons-material/Refresh";
|
|
7184
7201
|
import { Box as Box32, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography26 } from "@mui/material";
|
|
7185
|
-
import { jsx as
|
|
7202
|
+
import { jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7186
7203
|
var TableDesktopFooter = ({
|
|
7187
7204
|
numPages,
|
|
7188
7205
|
page,
|
|
@@ -7219,7 +7236,7 @@ var TableDesktopFooter = ({
|
|
|
7219
7236
|
borderColor: colors.neutral600
|
|
7220
7237
|
},
|
|
7221
7238
|
children: [
|
|
7222
|
-
/* @__PURE__ */
|
|
7239
|
+
/* @__PURE__ */ jsx113(
|
|
7223
7240
|
Refresh3,
|
|
7224
7241
|
{
|
|
7225
7242
|
fontSize: "small",
|
|
@@ -7232,19 +7249,19 @@ var TableDesktopFooter = ({
|
|
|
7232
7249
|
),
|
|
7233
7250
|
/* @__PURE__ */ jsxs76(Box32, { display: "flex", children: [
|
|
7234
7251
|
/* @__PURE__ */ jsxs76(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
7235
|
-
/* @__PURE__ */
|
|
7236
|
-
/* @__PURE__ */
|
|
7252
|
+
/* @__PURE__ */ jsx113(Typography26, { children: "Rows per page:" }),
|
|
7253
|
+
/* @__PURE__ */ jsx113(
|
|
7237
7254
|
Select4,
|
|
7238
7255
|
{
|
|
7239
7256
|
value: pageSize,
|
|
7240
7257
|
onChange: onPageSizeChange,
|
|
7241
7258
|
size: "small",
|
|
7242
7259
|
variant: "standard",
|
|
7243
|
-
children: pageSizeOptions.map((size) => /* @__PURE__ */
|
|
7260
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx113(MenuItem4, { value: size, children: size }, size))
|
|
7244
7261
|
}
|
|
7245
7262
|
)
|
|
7246
7263
|
] }),
|
|
7247
|
-
/* @__PURE__ */
|
|
7264
|
+
/* @__PURE__ */ jsx113(
|
|
7248
7265
|
Pagination2,
|
|
7249
7266
|
{
|
|
7250
7267
|
color: "standard",
|
|
@@ -7264,8 +7281,36 @@ import TableBody2 from "@mui/material/TableBody";
|
|
|
7264
7281
|
import TableCell3 from "@mui/material/TableCell";
|
|
7265
7282
|
import TableRow3 from "@mui/material/TableRow";
|
|
7266
7283
|
import Typography27 from "@mui/material/Typography";
|
|
7267
|
-
|
|
7268
|
-
|
|
7284
|
+
|
|
7285
|
+
// src/components/Buttons/BaseButton/BaseIconButton.tsx
|
|
7286
|
+
import { Button as Button14 } from "@mui/material";
|
|
7287
|
+
import { jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7288
|
+
var BaseIconButton = ({ icon, sx, ...props }) => {
|
|
7289
|
+
return /* @__PURE__ */ jsxs77(
|
|
7290
|
+
Button14,
|
|
7291
|
+
{
|
|
7292
|
+
sx: {
|
|
7293
|
+
display: "flex",
|
|
7294
|
+
gap: 1,
|
|
7295
|
+
alignItems: "center",
|
|
7296
|
+
justifyContent: "center",
|
|
7297
|
+
borderRadius: 100,
|
|
7298
|
+
...sx
|
|
7299
|
+
},
|
|
7300
|
+
...props,
|
|
7301
|
+
children: [
|
|
7302
|
+
icon,
|
|
7303
|
+
props.children
|
|
7304
|
+
]
|
|
7305
|
+
}
|
|
7306
|
+
);
|
|
7307
|
+
};
|
|
7308
|
+
|
|
7309
|
+
// src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
|
|
7310
|
+
import { jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7311
|
+
var TableDesktopNoColumnsMessage = ({
|
|
7312
|
+
onClickNoColumnsMessageOpenMenu
|
|
7313
|
+
}) => /* @__PURE__ */ jsx114(TableBody2, { children: /* @__PURE__ */ jsx114(TableRow3, { children: /* @__PURE__ */ jsxs78(
|
|
7269
7314
|
TableCell3,
|
|
7270
7315
|
{
|
|
7271
7316
|
sx: {
|
|
@@ -7278,19 +7323,43 @@ var TableDesktopNoColumnsMessage = () => /* @__PURE__ */ jsx113(TableBody2, { ch
|
|
|
7278
7323
|
alignItems: "center"
|
|
7279
7324
|
},
|
|
7280
7325
|
children: [
|
|
7281
|
-
/* @__PURE__ */
|
|
7282
|
-
/* @__PURE__ */
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7326
|
+
/* @__PURE__ */ jsx114(Typography27, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
|
|
7327
|
+
/* @__PURE__ */ jsx114(Typography27, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
|
|
7328
|
+
/* @__PURE__ */ jsxs78(
|
|
7329
|
+
Typography27,
|
|
7330
|
+
{
|
|
7331
|
+
variant: "subtitle1",
|
|
7332
|
+
align: "center",
|
|
7333
|
+
color: "textSecondary",
|
|
7334
|
+
sx: {
|
|
7335
|
+
backgroundColor: colors.neutral150,
|
|
7336
|
+
padding: 1,
|
|
7337
|
+
borderRadius: 1
|
|
7338
|
+
},
|
|
7339
|
+
children: [
|
|
7340
|
+
"Tips: ",
|
|
7341
|
+
/* @__PURE__ */ jsx114(Typography27, { component: "strong", children: "Save as default" }),
|
|
7342
|
+
" to keep these columns for future views"
|
|
7343
|
+
]
|
|
7344
|
+
}
|
|
7345
|
+
),
|
|
7346
|
+
/* @__PURE__ */ jsx114(
|
|
7347
|
+
BaseIconButton,
|
|
7348
|
+
{
|
|
7349
|
+
variant: "contained",
|
|
7350
|
+
color: "primary",
|
|
7351
|
+
onClick: onClickNoColumnsMessageOpenMenu,
|
|
7352
|
+
icon: /* @__PURE__ */ jsx114(IconTableEdit_default, { fill: colors.white }),
|
|
7353
|
+
children: "OPEN MENU"
|
|
7354
|
+
}
|
|
7355
|
+
)
|
|
7287
7356
|
]
|
|
7288
7357
|
}
|
|
7289
7358
|
) }) });
|
|
7290
7359
|
|
|
7291
7360
|
// src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
|
|
7292
7361
|
import { Skeleton as Skeleton4, TableCell as TableCell4, TableRow as TableRow4 } from "@mui/material";
|
|
7293
|
-
import { jsx as
|
|
7362
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
7294
7363
|
var getRange = (n) => Array.from({ length: n }, (_, i) => i + 1);
|
|
7295
7364
|
var TableDesktopLoadingState = ({
|
|
7296
7365
|
numRows,
|
|
@@ -7298,7 +7367,7 @@ var TableDesktopLoadingState = ({
|
|
|
7298
7367
|
numColumns,
|
|
7299
7368
|
rowHeight
|
|
7300
7369
|
}) => {
|
|
7301
|
-
return getRange(Math.min(numRows, rowsPerPage)).map((rowNum) => /* @__PURE__ */
|
|
7370
|
+
return getRange(Math.min(numRows, rowsPerPage)).map((rowNum) => /* @__PURE__ */ jsx115(TableRow4, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ jsx115(TableCell4, { children: /* @__PURE__ */ jsx115(
|
|
7302
7371
|
Skeleton4,
|
|
7303
7372
|
{
|
|
7304
7373
|
animation: "pulse",
|
|
@@ -7311,7 +7380,7 @@ var TableDesktopLoadingState = ({
|
|
|
7311
7380
|
};
|
|
7312
7381
|
|
|
7313
7382
|
// src/components/TableDesktopRows/TableDesktopRows.tsx
|
|
7314
|
-
import { jsx as
|
|
7383
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
7315
7384
|
var descendingComparator2 = (a, b, orderBy) => {
|
|
7316
7385
|
const objA = a[orderBy];
|
|
7317
7386
|
const objB = b[orderBy];
|
|
@@ -7358,7 +7427,7 @@ var TableDesktopRows = ({
|
|
|
7358
7427
|
}) => {
|
|
7359
7428
|
const sortedData = disableInternalSort ? data : stableSort2(data, getComparator(order, orderBy));
|
|
7360
7429
|
if (isLoading) {
|
|
7361
|
-
return /* @__PURE__ */
|
|
7430
|
+
return /* @__PURE__ */ jsx116(
|
|
7362
7431
|
TableDesktopLoadingState,
|
|
7363
7432
|
{
|
|
7364
7433
|
numRows: data.length,
|
|
@@ -7370,7 +7439,7 @@ var TableDesktopRows = ({
|
|
|
7370
7439
|
}
|
|
7371
7440
|
return sortedData.map((row, index) => {
|
|
7372
7441
|
const isItemSelected = selectedRows.has(row[keyField]);
|
|
7373
|
-
return /* @__PURE__ */
|
|
7442
|
+
return /* @__PURE__ */ jsx116(
|
|
7374
7443
|
RenderItem,
|
|
7375
7444
|
{
|
|
7376
7445
|
...{
|
|
@@ -7392,20 +7461,32 @@ var TableDesktopRows = ({
|
|
|
7392
7461
|
};
|
|
7393
7462
|
|
|
7394
7463
|
// src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
|
|
7395
|
-
import { Box as Box33, Button as
|
|
7396
|
-
import { jsx as
|
|
7464
|
+
import { Box as Box33, Button as Button15, Typography as Typography28 } from "@mui/material";
|
|
7465
|
+
import { jsx as jsx117, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7397
7466
|
var TableDesktopRowSelectionBar = ({
|
|
7398
7467
|
isEveryRowInPageSelected,
|
|
7399
|
-
|
|
7468
|
+
isRowsFromAllPagesSelected,
|
|
7400
7469
|
numSelectedRows,
|
|
7401
7470
|
totalRowCount,
|
|
7402
|
-
|
|
7471
|
+
onSelectRowsFromAllPagesClick,
|
|
7472
|
+
onClearSelectionClick
|
|
7403
7473
|
}) => {
|
|
7404
|
-
|
|
7474
|
+
const isAnyRowSelected = numSelectedRows > 0;
|
|
7475
|
+
const getSelectedRowsText = () => {
|
|
7476
|
+
if (isRowsFromAllPagesSelected) {
|
|
7477
|
+
return `All ${totalRowCount} rows from all pages are selected based on your filters.`;
|
|
7478
|
+
}
|
|
7479
|
+
if (isEveryRowInPageSelected) {
|
|
7480
|
+
return `All ${numSelectedRows} rows on this page are selected.`;
|
|
7481
|
+
}
|
|
7482
|
+
return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
|
|
7483
|
+
};
|
|
7484
|
+
return isAnyRowSelected ? /* @__PURE__ */ jsxs79(
|
|
7405
7485
|
Box33,
|
|
7406
7486
|
{
|
|
7407
7487
|
sx: {
|
|
7408
7488
|
p: 1,
|
|
7489
|
+
height: 40,
|
|
7409
7490
|
gap: 2,
|
|
7410
7491
|
display: "flex",
|
|
7411
7492
|
justifyContent: "center",
|
|
@@ -7413,8 +7494,13 @@ var TableDesktopRowSelectionBar = ({
|
|
|
7413
7494
|
backgroundColor: colors.neutral150
|
|
7414
7495
|
},
|
|
7415
7496
|
children: [
|
|
7416
|
-
/* @__PURE__ */
|
|
7417
|
-
/* @__PURE__ */
|
|
7497
|
+
/* @__PURE__ */ jsx117(Typography28, { children: getSelectedRowsText() }),
|
|
7498
|
+
!isRowsFromAllPagesSelected ? /* @__PURE__ */ jsxs79(Button15, { onClick: onSelectRowsFromAllPagesClick, children: [
|
|
7499
|
+
"Select all ",
|
|
7500
|
+
totalRowCount,
|
|
7501
|
+
" rows from all pages based on your filters"
|
|
7502
|
+
] }) : null,
|
|
7503
|
+
/* @__PURE__ */ jsx117(Button15, { onClick: onClearSelectionClick, children: "Clear Selection" })
|
|
7418
7504
|
]
|
|
7419
7505
|
}
|
|
7420
7506
|
) : null;
|
|
@@ -7423,7 +7509,7 @@ var TableDesktopRowSelectionBar = ({
|
|
|
7423
7509
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
7424
7510
|
import { TableCell as TableCell5, TableRow as TableRow5, Typography as Typography29 } from "@mui/material";
|
|
7425
7511
|
import { makeStyles as makeStyles48 } from "tss-react/mui";
|
|
7426
|
-
import { jsx as
|
|
7512
|
+
import { jsx as jsx118, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7427
7513
|
var useStyles48 = makeStyles48()(() => ({
|
|
7428
7514
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
7429
7515
|
tableCellDefault: { padding: 24 }
|
|
@@ -7435,17 +7521,17 @@ var TableEmptyResult = ({
|
|
|
7435
7521
|
}
|
|
7436
7522
|
}) => {
|
|
7437
7523
|
const { classes } = useStyles48();
|
|
7438
|
-
return showClearFilterButton ? /* @__PURE__ */
|
|
7524
|
+
return showClearFilterButton ? /* @__PURE__ */ jsx118(TableRow5, { children: /* @__PURE__ */ jsxs80(
|
|
7439
7525
|
TableCell5,
|
|
7440
7526
|
{
|
|
7441
7527
|
className: classes.tableCellIcon,
|
|
7442
7528
|
colSpan,
|
|
7443
7529
|
align: "center",
|
|
7444
7530
|
children: [
|
|
7445
|
-
/* @__PURE__ */
|
|
7446
|
-
/* @__PURE__ */
|
|
7447
|
-
/* @__PURE__ */
|
|
7448
|
-
/* @__PURE__ */
|
|
7531
|
+
/* @__PURE__ */ jsx118(EmptyGlassIcon_default, {}),
|
|
7532
|
+
/* @__PURE__ */ jsx118(Typography29, { variant: "h6", children: "No results found." }),
|
|
7533
|
+
/* @__PURE__ */ jsx118(Typography29, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
7534
|
+
/* @__PURE__ */ jsx118(
|
|
7449
7535
|
FilledButton_default,
|
|
7450
7536
|
{
|
|
7451
7537
|
copy: "Search",
|
|
@@ -7456,7 +7542,7 @@ var TableEmptyResult = ({
|
|
|
7456
7542
|
)
|
|
7457
7543
|
]
|
|
7458
7544
|
}
|
|
7459
|
-
) }) : /* @__PURE__ */
|
|
7545
|
+
) }) : /* @__PURE__ */ jsx118(TableRow5, { children: /* @__PURE__ */ jsx118(
|
|
7460
7546
|
TableCell5,
|
|
7461
7547
|
{
|
|
7462
7548
|
className: classes.tableCellDefault,
|
|
@@ -7469,7 +7555,7 @@ var TableEmptyResult = ({
|
|
|
7469
7555
|
var TableEmptyResult_default = TableEmptyResult;
|
|
7470
7556
|
|
|
7471
7557
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
7472
|
-
import { Fragment as Fragment12, jsx as
|
|
7558
|
+
import { Fragment as Fragment12, jsx as jsx119, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
7473
7559
|
var TableDesktop = ({
|
|
7474
7560
|
data,
|
|
7475
7561
|
headCells,
|
|
@@ -7501,7 +7587,7 @@ var TableDesktop = ({
|
|
|
7501
7587
|
appliedFilters?.sortField || "delivery_date"
|
|
7502
7588
|
);
|
|
7503
7589
|
const [selectedRows, setSelectedRows] = useState17(/* @__PURE__ */ new Set());
|
|
7504
|
-
const [
|
|
7590
|
+
const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState17(false);
|
|
7505
7591
|
const { toolbar: Toolbar2 } = components ?? {};
|
|
7506
7592
|
const { toolbarProps, footerProps } = componentsProps ?? {};
|
|
7507
7593
|
const numRows = useMemo3(
|
|
@@ -7529,15 +7615,18 @@ var TableDesktop = ({
|
|
|
7529
7615
|
updateSort(property, orderDir);
|
|
7530
7616
|
}
|
|
7531
7617
|
};
|
|
7618
|
+
const selectAllRowsInPage = () => {
|
|
7619
|
+
const allRowsIds = new Set(data.map((n) => n[keyField]));
|
|
7620
|
+
;
|
|
7621
|
+
setSelectedRows(allRowsIds);
|
|
7622
|
+
};
|
|
7532
7623
|
const resetSelectedRows = () => {
|
|
7533
7624
|
setSelectedRows(/* @__PURE__ */ new Set());
|
|
7534
|
-
|
|
7625
|
+
setIsRowsFromAllPagesSelected(false);
|
|
7535
7626
|
};
|
|
7536
7627
|
const handleSelectAllClick = (event) => {
|
|
7537
7628
|
if (event.target.checked) {
|
|
7538
|
-
|
|
7539
|
-
;
|
|
7540
|
-
setSelectedRows(allRowsIds);
|
|
7629
|
+
selectAllRowsInPage();
|
|
7541
7630
|
return;
|
|
7542
7631
|
}
|
|
7543
7632
|
resetSelectedRows();
|
|
@@ -7551,15 +7640,18 @@ var TableDesktop = ({
|
|
|
7551
7640
|
} else {
|
|
7552
7641
|
newSelected.add(rowId);
|
|
7553
7642
|
}
|
|
7643
|
+
if (newSelected.size < numRows) {
|
|
7644
|
+
setIsRowsFromAllPagesSelected(false);
|
|
7645
|
+
}
|
|
7554
7646
|
return newSelected;
|
|
7555
7647
|
});
|
|
7556
7648
|
};
|
|
7557
|
-
const
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7649
|
+
const handleSelectRowsFromAllPagesClick = () => {
|
|
7650
|
+
setIsRowsFromAllPagesSelected(true);
|
|
7651
|
+
selectAllRowsInPage();
|
|
7652
|
+
};
|
|
7653
|
+
const handleClearSelectionClick = () => {
|
|
7654
|
+
resetSelectedRows();
|
|
7563
7655
|
};
|
|
7564
7656
|
const handleApplyFilters = (updatedFilters, shouldSave) => {
|
|
7565
7657
|
resetSelectedRows();
|
|
@@ -7575,14 +7667,14 @@ var TableDesktop = ({
|
|
|
7575
7667
|
}
|
|
7576
7668
|
}, [enableCheckboxSelection]);
|
|
7577
7669
|
useEffect11(() => {
|
|
7578
|
-
if (isEveryRowInPageSelected ||
|
|
7670
|
+
if (isEveryRowInPageSelected || isRowsFromAllPagesSelected) {
|
|
7579
7671
|
const rowsIdsSet = new Set(data.map((obj) => obj[keyField]));
|
|
7580
7672
|
setSelectedRows(
|
|
7581
7673
|
(prev) => new Set([...prev].filter((value) => rowsIdsSet.has(value)))
|
|
7582
7674
|
);
|
|
7583
7675
|
}
|
|
7584
|
-
}, [data, setSelectedRows, isEveryRowInPageSelected,
|
|
7585
|
-
return /* @__PURE__ */
|
|
7676
|
+
}, [data, setSelectedRows, isEveryRowInPageSelected, isRowsFromAllPagesSelected]);
|
|
7677
|
+
return /* @__PURE__ */ jsx119(
|
|
7586
7678
|
Box34,
|
|
7587
7679
|
{
|
|
7588
7680
|
sx: {
|
|
@@ -7591,7 +7683,7 @@ var TableDesktop = ({
|
|
|
7591
7683
|
justifyContent: "space-between",
|
|
7592
7684
|
justifyItems: "stretch"
|
|
7593
7685
|
},
|
|
7594
|
-
children: /* @__PURE__ */
|
|
7686
|
+
children: /* @__PURE__ */ jsxs81(
|
|
7595
7687
|
Paper11,
|
|
7596
7688
|
{
|
|
7597
7689
|
sx: {
|
|
@@ -7601,25 +7693,26 @@ var TableDesktop = ({
|
|
|
7601
7693
|
justifyContent: "space-between"
|
|
7602
7694
|
},
|
|
7603
7695
|
children: [
|
|
7604
|
-
Toolbar2 ? /* @__PURE__ */
|
|
7696
|
+
Toolbar2 ? /* @__PURE__ */ jsx119(
|
|
7605
7697
|
Toolbar2,
|
|
7606
7698
|
{
|
|
7607
7699
|
selectedRows: [...selectedRows],
|
|
7608
|
-
isRowsInAllPagesSelected,
|
|
7700
|
+
isRowsInAllPagesSelected: isRowsFromAllPagesSelected,
|
|
7609
7701
|
...toolbarProps
|
|
7610
7702
|
}
|
|
7611
7703
|
) : null,
|
|
7612
|
-
/* @__PURE__ */
|
|
7704
|
+
/* @__PURE__ */ jsx119(
|
|
7613
7705
|
TableDesktopRowSelectionBar,
|
|
7614
7706
|
{
|
|
7615
7707
|
isEveryRowInPageSelected,
|
|
7616
|
-
|
|
7708
|
+
isRowsFromAllPagesSelected,
|
|
7617
7709
|
numSelectedRows: selectedRows.size,
|
|
7618
7710
|
totalRowCount: totalDataCount ?? 0,
|
|
7619
|
-
|
|
7711
|
+
onSelectRowsFromAllPagesClick: handleSelectRowsFromAllPagesClick,
|
|
7712
|
+
onClearSelectionClick: handleClearSelectionClick
|
|
7620
7713
|
}
|
|
7621
7714
|
),
|
|
7622
|
-
/* @__PURE__ */
|
|
7715
|
+
/* @__PURE__ */ jsx119(
|
|
7623
7716
|
TableContainer2,
|
|
7624
7717
|
{
|
|
7625
7718
|
sx: {
|
|
@@ -7641,14 +7734,19 @@ var TableDesktop = ({
|
|
|
7641
7734
|
backgroundColor: (theme) => theme.palette.grey[500]
|
|
7642
7735
|
}
|
|
7643
7736
|
},
|
|
7644
|
-
children: /* @__PURE__ */
|
|
7737
|
+
children: /* @__PURE__ */ jsx119(
|
|
7645
7738
|
Table2,
|
|
7646
7739
|
{
|
|
7647
7740
|
stickyHeader: true,
|
|
7648
7741
|
"aria-label": "sticky-table",
|
|
7649
7742
|
sx: { tableLayout },
|
|
7650
|
-
children: visibleHeadCells.length === 0 ? /* @__PURE__ */
|
|
7651
|
-
|
|
7743
|
+
children: visibleHeadCells.length === 0 ? /* @__PURE__ */ jsx119(
|
|
7744
|
+
TableDesktopNoColumnsMessage,
|
|
7745
|
+
{
|
|
7746
|
+
onClickNoColumnsMessageOpenMenu: toolbarProps?.onTableToolbarMenuOpen
|
|
7747
|
+
}
|
|
7748
|
+
) : /* @__PURE__ */ jsxs81(Fragment12, { children: [
|
|
7749
|
+
/* @__PURE__ */ jsx119(
|
|
7652
7750
|
SmartTableHeader_default,
|
|
7653
7751
|
{
|
|
7654
7752
|
headCells: visibleHeadCells,
|
|
@@ -7664,7 +7762,7 @@ var TableDesktop = ({
|
|
|
7664
7762
|
shouldShowCheckOnFilter
|
|
7665
7763
|
}
|
|
7666
7764
|
),
|
|
7667
|
-
/* @__PURE__ */
|
|
7765
|
+
/* @__PURE__ */ jsx119(TableBody3, { children: rowsPerPage !== emptyRows ? /* @__PURE__ */ jsx119(
|
|
7668
7766
|
TableDesktopRows,
|
|
7669
7767
|
{
|
|
7670
7768
|
data,
|
|
@@ -7683,7 +7781,7 @@ var TableDesktop = ({
|
|
|
7683
7781
|
rowHeight,
|
|
7684
7782
|
deleteItem
|
|
7685
7783
|
}
|
|
7686
|
-
) : /* @__PURE__ */
|
|
7784
|
+
) : /* @__PURE__ */ jsx119(
|
|
7687
7785
|
TableEmptyResult_default,
|
|
7688
7786
|
{
|
|
7689
7787
|
colSpan: enableCheckboxSelection ? visibleHeadCells.length + 1 : visibleHeadCells.length,
|
|
@@ -7697,7 +7795,7 @@ var TableDesktop = ({
|
|
|
7697
7795
|
}
|
|
7698
7796
|
),
|
|
7699
7797
|
children,
|
|
7700
|
-
footerProps ? /* @__PURE__ */
|
|
7798
|
+
footerProps ? /* @__PURE__ */ jsx119(TableDesktopFooter, { ...footerProps, onPageChange: handlePageChange }) : null
|
|
7701
7799
|
]
|
|
7702
7800
|
}
|
|
7703
7801
|
)
|
|
@@ -7711,7 +7809,7 @@ import { Checkbox as Checkbox6, FormControlLabel as FormControlLabel4 } from "@m
|
|
|
7711
7809
|
// src/components/TableDesktopEditableComponent/TableDesktopNumericField.tsx
|
|
7712
7810
|
import { useState as useState18 } from "react";
|
|
7713
7811
|
import { TextField as TextField8 } from "@mui/material";
|
|
7714
|
-
import { jsx as
|
|
7812
|
+
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
7715
7813
|
var TableDesktopNumericField = ({
|
|
7716
7814
|
rowId,
|
|
7717
7815
|
initialValue,
|
|
@@ -7735,7 +7833,7 @@ var TableDesktopNumericField = ({
|
|
|
7735
7833
|
commitValue(input);
|
|
7736
7834
|
}
|
|
7737
7835
|
};
|
|
7738
|
-
return /* @__PURE__ */
|
|
7836
|
+
return /* @__PURE__ */ jsx120(
|
|
7739
7837
|
TextField8,
|
|
7740
7838
|
{
|
|
7741
7839
|
fullWidth: true,
|
|
@@ -7763,7 +7861,7 @@ var TableDesktopNumericField = ({
|
|
|
7763
7861
|
|
|
7764
7862
|
// src/components/TableDesktopEditableComponent/TableDesktopSmartSelect.tsx
|
|
7765
7863
|
import { useState as useState19, memo as memo22, useEffect as useEffect12 } from "react";
|
|
7766
|
-
import { jsx as
|
|
7864
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
7767
7865
|
var resolveOptionType2 = (option, fieldName) => {
|
|
7768
7866
|
if (!option || typeof option !== "object") {
|
|
7769
7867
|
return option;
|
|
@@ -7804,7 +7902,7 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7804
7902
|
setOptions(parsedOptions);
|
|
7805
7903
|
}
|
|
7806
7904
|
}, [filterOptions]);
|
|
7807
|
-
return /* @__PURE__ */
|
|
7905
|
+
return /* @__PURE__ */ jsx121(
|
|
7808
7906
|
SmartSelect_default,
|
|
7809
7907
|
{
|
|
7810
7908
|
ref,
|
|
@@ -7837,7 +7935,7 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7837
7935
|
// src/components/TableDesktopEditableComponent/TableDesktopTextField.tsx
|
|
7838
7936
|
import { useMemo as useMemo4, useState as useState20 } from "react";
|
|
7839
7937
|
import { TextField as TextField9 } from "@mui/material";
|
|
7840
|
-
import { jsx as
|
|
7938
|
+
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
7841
7939
|
var TableDesktopTextField = ({
|
|
7842
7940
|
rowId,
|
|
7843
7941
|
initialValue,
|
|
@@ -7863,7 +7961,7 @@ var TableDesktopTextField = ({
|
|
|
7863
7961
|
commitValue(input);
|
|
7864
7962
|
}
|
|
7865
7963
|
};
|
|
7866
|
-
return /* @__PURE__ */
|
|
7964
|
+
return /* @__PURE__ */ jsx122(
|
|
7867
7965
|
TextField9,
|
|
7868
7966
|
{
|
|
7869
7967
|
fullWidth: true,
|
|
@@ -7885,7 +7983,7 @@ var TableDesktopTextField = ({
|
|
|
7885
7983
|
};
|
|
7886
7984
|
|
|
7887
7985
|
// src/components/TableDesktopEditableComponent/TableDesktopEditableComponent.tsx
|
|
7888
|
-
import { jsx as
|
|
7986
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
7889
7987
|
var TableDesktopEditableComponent = ({
|
|
7890
7988
|
editInitialValue,
|
|
7891
7989
|
rowId,
|
|
@@ -7904,7 +8002,7 @@ var TableDesktopEditableComponent = ({
|
|
|
7904
8002
|
onUpdateEditableCell
|
|
7905
8003
|
}) => {
|
|
7906
8004
|
const editableComponents = {
|
|
7907
|
-
"select": /* @__PURE__ */
|
|
8005
|
+
"select": /* @__PURE__ */ jsx123(
|
|
7908
8006
|
TableDesktopSmartSelect,
|
|
7909
8007
|
{
|
|
7910
8008
|
rowId,
|
|
@@ -7921,11 +8019,11 @@ var TableDesktopEditableComponent = ({
|
|
|
7921
8019
|
onUpdateEditableCell
|
|
7922
8020
|
}
|
|
7923
8021
|
),
|
|
7924
|
-
"checkbox": /* @__PURE__ */
|
|
8022
|
+
"checkbox": /* @__PURE__ */ jsx123(
|
|
7925
8023
|
FormControlLabel4,
|
|
7926
8024
|
{
|
|
7927
8025
|
label: showCheckboxLabel ? inputLabel : "",
|
|
7928
|
-
control: /* @__PURE__ */
|
|
8026
|
+
control: /* @__PURE__ */ jsx123(
|
|
7929
8027
|
Checkbox6,
|
|
7930
8028
|
{
|
|
7931
8029
|
disableRipple: true,
|
|
@@ -7941,7 +8039,7 @@ var TableDesktopEditableComponent = ({
|
|
|
7941
8039
|
)
|
|
7942
8040
|
}
|
|
7943
8041
|
),
|
|
7944
|
-
"text": /* @__PURE__ */
|
|
8042
|
+
"text": /* @__PURE__ */ jsx123(
|
|
7945
8043
|
TableDesktopTextField,
|
|
7946
8044
|
{
|
|
7947
8045
|
rowId,
|
|
@@ -7955,7 +8053,7 @@ var TableDesktopEditableComponent = ({
|
|
|
7955
8053
|
onUpdateEditableCell
|
|
7956
8054
|
}
|
|
7957
8055
|
),
|
|
7958
|
-
"numeric": /* @__PURE__ */
|
|
8056
|
+
"numeric": /* @__PURE__ */ jsx123(
|
|
7959
8057
|
TableDesktopNumericField,
|
|
7960
8058
|
{
|
|
7961
8059
|
rowId,
|
|
@@ -7978,10 +8076,10 @@ import CheckIcon2 from "@mui/icons-material/Check";
|
|
|
7978
8076
|
import CloseIcon from "@mui/icons-material/Close";
|
|
7979
8077
|
import EditIcon from "@mui/icons-material/Edit";
|
|
7980
8078
|
import { Box as Box35, IconButton as IconButton4, TableCell as TableCell6, Tooltip as Tooltip8 } from "@mui/material";
|
|
7981
|
-
import { jsx as
|
|
8079
|
+
import { jsx as jsx124, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
7982
8080
|
var getReadOnlyBooleanIcon = (value) => {
|
|
7983
8081
|
if (value) {
|
|
7984
|
-
return /* @__PURE__ */
|
|
8082
|
+
return /* @__PURE__ */ jsx124(CheckIcon2, { sx: { fontSize: 16 } });
|
|
7985
8083
|
}
|
|
7986
8084
|
return "-";
|
|
7987
8085
|
};
|
|
@@ -8040,7 +8138,7 @@ var TableDesktopCell = ({
|
|
|
8040
8138
|
setIsCellInEditMode((prev) => !prev);
|
|
8041
8139
|
};
|
|
8042
8140
|
const isCellEditable = !!enableEditMode && !!editableCellType && !disabled;
|
|
8043
|
-
return /* @__PURE__ */
|
|
8141
|
+
return /* @__PURE__ */ jsx124(Tooltip8, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ jsx124(
|
|
8044
8142
|
TableCell6,
|
|
8045
8143
|
{
|
|
8046
8144
|
align: "left",
|
|
@@ -8056,7 +8154,7 @@ var TableDesktopCell = ({
|
|
|
8056
8154
|
":hover": isCellEditable ? getCellBackgroundColor(isCellInEditMode) : void 0,
|
|
8057
8155
|
background: enableEditMode && isCellInEditMode ? colors.lightBlueBackground : void 0
|
|
8058
8156
|
},
|
|
8059
|
-
children: /* @__PURE__ */
|
|
8157
|
+
children: /* @__PURE__ */ jsxs82(
|
|
8060
8158
|
Box35,
|
|
8061
8159
|
{
|
|
8062
8160
|
p: 1,
|
|
@@ -8065,7 +8163,7 @@ var TableDesktopCell = ({
|
|
|
8065
8163
|
textOverflow: "ellipsis",
|
|
8066
8164
|
whiteSpace: "nowrap",
|
|
8067
8165
|
children: [
|
|
8068
|
-
enableEditMode && isCellHovered ? /* @__PURE__ */
|
|
8166
|
+
enableEditMode && isCellHovered ? /* @__PURE__ */ jsx124(Tooltip8, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx124(
|
|
8069
8167
|
IconButton4,
|
|
8070
8168
|
{
|
|
8071
8169
|
onClick: handleEditClick,
|
|
@@ -8080,10 +8178,10 @@ var TableDesktopCell = ({
|
|
|
8080
8178
|
backgroundColor: isCellInEditMode ? colors.lightBlueBackground : colors.neutral150
|
|
8081
8179
|
}
|
|
8082
8180
|
},
|
|
8083
|
-
children: isCellInEditMode ? /* @__PURE__ */
|
|
8181
|
+
children: isCellInEditMode ? /* @__PURE__ */ jsx124(CloseIcon, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx124(EditIcon, { fontSize: "small" })
|
|
8084
8182
|
}
|
|
8085
8183
|
) }) : null,
|
|
8086
|
-
enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */
|
|
8184
|
+
enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ jsx124(
|
|
8087
8185
|
TableDesktopEditableComponent,
|
|
8088
8186
|
{
|
|
8089
8187
|
editInitialValue,
|
|
@@ -8112,7 +8210,7 @@ import { memo as memo23, useEffect as useEffect14, useState as useState22 } from
|
|
|
8112
8210
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
8113
8211
|
import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
8114
8212
|
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
8115
|
-
import { jsx as
|
|
8213
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
8116
8214
|
var useStyles49 = makeStyles49()(() => ({
|
|
8117
8215
|
sortLabel: {
|
|
8118
8216
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -8157,7 +8255,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8157
8255
|
});
|
|
8158
8256
|
setSortableCells(sortedCells);
|
|
8159
8257
|
};
|
|
8160
|
-
return /* @__PURE__ */
|
|
8258
|
+
return /* @__PURE__ */ jsx125(TableHead3, { children: /* @__PURE__ */ jsx125(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx125(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx125(
|
|
8161
8259
|
TableSortLabel3,
|
|
8162
8260
|
{
|
|
8163
8261
|
className: classes.sortLabel,
|
|
@@ -8171,9 +8269,9 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8171
8269
|
var TableHeader_default = memo23(TableHeader);
|
|
8172
8270
|
|
|
8173
8271
|
// src/components/TextDivider/TextDivider.tsx
|
|
8174
|
-
import { Box as Box36, Typography as Typography30, Divider as Divider10, Button as
|
|
8272
|
+
import { Box as Box36, Typography as Typography30, Divider as Divider10, Button as Button16 } from "@mui/material";
|
|
8175
8273
|
import { makeStyles as makeStyles50 } from "tss-react/mui";
|
|
8176
|
-
import { jsx as
|
|
8274
|
+
import { jsx as jsx126, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8177
8275
|
var useStyles50 = makeStyles50()(() => ({
|
|
8178
8276
|
icon: {
|
|
8179
8277
|
fontSize: 20
|
|
@@ -8210,7 +8308,7 @@ var TextDivider = ({
|
|
|
8210
8308
|
}) => {
|
|
8211
8309
|
const { classes } = useStyles50();
|
|
8212
8310
|
const iconColor = color ?? colors.neutral900;
|
|
8213
|
-
return /* @__PURE__ */
|
|
8311
|
+
return /* @__PURE__ */ jsxs83(
|
|
8214
8312
|
Box36,
|
|
8215
8313
|
{
|
|
8216
8314
|
display: "flex",
|
|
@@ -8218,10 +8316,10 @@ var TextDivider = ({
|
|
|
8218
8316
|
justifyContent: "space-between",
|
|
8219
8317
|
className: classes.container,
|
|
8220
8318
|
children: [
|
|
8221
|
-
/* @__PURE__ */
|
|
8222
|
-
/* @__PURE__ */
|
|
8223
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */
|
|
8224
|
-
/* @__PURE__ */
|
|
8319
|
+
/* @__PURE__ */ jsx126(Divider10, { className: classes.leftDivider }),
|
|
8320
|
+
/* @__PURE__ */ jsx126(Button16, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs83(Box36, { className: classes.center, children: [
|
|
8321
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx126(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
8322
|
+
/* @__PURE__ */ jsx126(
|
|
8225
8323
|
Typography30,
|
|
8226
8324
|
{
|
|
8227
8325
|
color: "textSecondary",
|
|
@@ -8230,9 +8328,9 @@ var TextDivider = ({
|
|
|
8230
8328
|
children: title
|
|
8231
8329
|
}
|
|
8232
8330
|
),
|
|
8233
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */
|
|
8331
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx126(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
8234
8332
|
] }) }),
|
|
8235
|
-
/* @__PURE__ */
|
|
8333
|
+
/* @__PURE__ */ jsx126(Divider10, { className: classes.rightDivider })
|
|
8236
8334
|
]
|
|
8237
8335
|
}
|
|
8238
8336
|
);
|
|
@@ -8244,7 +8342,7 @@ import { DateRangePicker } from "react-dates";
|
|
|
8244
8342
|
import { makeStyles as makeStyles51 } from "tss-react/mui";
|
|
8245
8343
|
import "react-dates/initialize";
|
|
8246
8344
|
import "react-dates/lib/css/_datepicker.css";
|
|
8247
|
-
import { jsx as
|
|
8345
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
8248
8346
|
var useStyles51 = makeStyles51()((theme) => ({
|
|
8249
8347
|
wrapper: {
|
|
8250
8348
|
"& .DateRangePicker": {
|
|
@@ -8340,7 +8438,7 @@ var ThemedDateRangePicker = ({
|
|
|
8340
8438
|
...props
|
|
8341
8439
|
}) => {
|
|
8342
8440
|
const { classes, cx } = useStyles51();
|
|
8343
|
-
return /* @__PURE__ */
|
|
8441
|
+
return /* @__PURE__ */ jsx127("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx127(DateRangePicker, { ...props }) });
|
|
8344
8442
|
};
|
|
8345
8443
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
8346
8444
|
|
|
@@ -8348,7 +8446,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
8348
8446
|
import { memo as memo24 } from "react";
|
|
8349
8447
|
import { AppBar, Box as Box37, Toolbar } from "@mui/material";
|
|
8350
8448
|
import { makeStyles as makeStyles52 } from "tss-react/mui";
|
|
8351
|
-
import { jsx as
|
|
8449
|
+
import { jsx as jsx128, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
8352
8450
|
var useStyles52 = makeStyles52()((theme) => ({
|
|
8353
8451
|
menuButton: {
|
|
8354
8452
|
color: theme.palette.primary.contrastText
|
|
@@ -8368,9 +8466,9 @@ var TheToolbar = ({
|
|
|
8368
8466
|
rightSection
|
|
8369
8467
|
}) => {
|
|
8370
8468
|
const { classes } = useStyles52();
|
|
8371
|
-
return /* @__PURE__ */
|
|
8372
|
-
/* @__PURE__ */
|
|
8373
|
-
/* @__PURE__ */
|
|
8469
|
+
return /* @__PURE__ */ jsxs84(Box37, { children: [
|
|
8470
|
+
/* @__PURE__ */ jsx128(AppBar, { children: /* @__PURE__ */ jsxs84(Toolbar, { className: classes.topBar, children: [
|
|
8471
|
+
/* @__PURE__ */ jsx128(
|
|
8374
8472
|
RoundButton_default,
|
|
8375
8473
|
{
|
|
8376
8474
|
className: classes.menuButton,
|
|
@@ -8379,7 +8477,7 @@ var TheToolbar = ({
|
|
|
8379
8477
|
onClick: handleOpen
|
|
8380
8478
|
}
|
|
8381
8479
|
),
|
|
8382
|
-
/* @__PURE__ */
|
|
8480
|
+
/* @__PURE__ */ jsx128(
|
|
8383
8481
|
CompanyLogo_default,
|
|
8384
8482
|
{
|
|
8385
8483
|
size: "small",
|
|
@@ -8388,8 +8486,8 @@ var TheToolbar = ({
|
|
|
8388
8486
|
imageLogoLightSmall
|
|
8389
8487
|
}
|
|
8390
8488
|
),
|
|
8391
|
-
/* @__PURE__ */
|
|
8392
|
-
/* @__PURE__ */
|
|
8489
|
+
/* @__PURE__ */ jsx128(Box37, { ml: 2, children: leftSection }),
|
|
8490
|
+
/* @__PURE__ */ jsx128(Box37, { ml: "auto", children: rightSection })
|
|
8393
8491
|
] }) }),
|
|
8394
8492
|
LeftDrawer
|
|
8395
8493
|
] });
|
|
@@ -8398,20 +8496,20 @@ var TheToolbar_default = memo24(TheToolbar);
|
|
|
8398
8496
|
|
|
8399
8497
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8400
8498
|
import { Alert as MuiAlert, Snackbar } from "@mui/material";
|
|
8401
|
-
import { jsx as
|
|
8499
|
+
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
8402
8500
|
var ToastMessage = ({
|
|
8403
8501
|
toastType,
|
|
8404
8502
|
toastMessage,
|
|
8405
8503
|
open,
|
|
8406
8504
|
onClose
|
|
8407
|
-
}) => /* @__PURE__ */
|
|
8505
|
+
}) => /* @__PURE__ */ jsx129(
|
|
8408
8506
|
Snackbar,
|
|
8409
8507
|
{
|
|
8410
8508
|
open,
|
|
8411
8509
|
autoHideDuration: 1500,
|
|
8412
8510
|
onClose,
|
|
8413
8511
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8414
|
-
children: /* @__PURE__ */
|
|
8512
|
+
children: /* @__PURE__ */ jsx129(
|
|
8415
8513
|
MuiAlert,
|
|
8416
8514
|
{
|
|
8417
8515
|
elevation: 6,
|
|
@@ -8448,7 +8546,7 @@ import {
|
|
|
8448
8546
|
Fade as Fade2
|
|
8449
8547
|
} from "@mui/material";
|
|
8450
8548
|
import { makeStyles as makeStyles53 } from "tss-react/mui";
|
|
8451
|
-
import { jsx as
|
|
8549
|
+
import { jsx as jsx130, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
8452
8550
|
var useStyles53 = makeStyles53()((theme) => ({
|
|
8453
8551
|
paper: {
|
|
8454
8552
|
padding: theme.spacing(2)
|
|
@@ -8478,7 +8576,7 @@ var TwoButtonDialog = ({
|
|
|
8478
8576
|
cancelButton
|
|
8479
8577
|
}) => {
|
|
8480
8578
|
const { classes } = useStyles53();
|
|
8481
|
-
return /* @__PURE__ */
|
|
8579
|
+
return /* @__PURE__ */ jsx130(
|
|
8482
8580
|
Dialog5,
|
|
8483
8581
|
{
|
|
8484
8582
|
open,
|
|
@@ -8488,9 +8586,9 @@ var TwoButtonDialog = ({
|
|
|
8488
8586
|
closeAfterTransition: true,
|
|
8489
8587
|
BackdropComponent: Backdrop,
|
|
8490
8588
|
BackdropProps: { timeout: 500 },
|
|
8491
|
-
children: /* @__PURE__ */
|
|
8492
|
-
/* @__PURE__ */
|
|
8493
|
-
/* @__PURE__ */
|
|
8589
|
+
children: /* @__PURE__ */ jsx130(Fade2, { in: open, children: /* @__PURE__ */ jsxs85(Paper12, { className: classes.paper, children: [
|
|
8590
|
+
/* @__PURE__ */ jsxs85(Box38, { className: classes.mb, children: [
|
|
8591
|
+
/* @__PURE__ */ jsx130(Typography31, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx130(
|
|
8494
8592
|
Box38,
|
|
8495
8593
|
{
|
|
8496
8594
|
sx: {
|
|
@@ -8499,7 +8597,7 @@ var TwoButtonDialog = ({
|
|
|
8499
8597
|
children: title
|
|
8500
8598
|
}
|
|
8501
8599
|
) }),
|
|
8502
|
-
/* @__PURE__ */
|
|
8600
|
+
/* @__PURE__ */ jsxs85(
|
|
8503
8601
|
Box38,
|
|
8504
8602
|
{
|
|
8505
8603
|
className: classes.mt,
|
|
@@ -8507,15 +8605,15 @@ var TwoButtonDialog = ({
|
|
|
8507
8605
|
fontWeight: 600
|
|
8508
8606
|
},
|
|
8509
8607
|
children: [
|
|
8510
|
-
subtitle1 && /* @__PURE__ */
|
|
8511
|
-
subtitle2 && /* @__PURE__ */
|
|
8608
|
+
subtitle1 && /* @__PURE__ */ jsx130(Typography31, { variant: "subtitle1", children: subtitle1 }),
|
|
8609
|
+
subtitle2 && /* @__PURE__ */ jsx130(Typography31, { variant: "subtitle1", children: subtitle2 })
|
|
8512
8610
|
]
|
|
8513
8611
|
}
|
|
8514
8612
|
)
|
|
8515
8613
|
] }),
|
|
8516
|
-
/* @__PURE__ */
|
|
8517
|
-
/* @__PURE__ */
|
|
8518
|
-
/* @__PURE__ */
|
|
8614
|
+
/* @__PURE__ */ jsx130(Divider11, {}),
|
|
8615
|
+
/* @__PURE__ */ jsxs85(Box38, { className: classes.buttonContainer, children: [
|
|
8616
|
+
/* @__PURE__ */ jsx130(
|
|
8519
8617
|
FilledButton_default,
|
|
8520
8618
|
{
|
|
8521
8619
|
copy: cancelLabel,
|
|
@@ -8528,7 +8626,7 @@ var TwoButtonDialog = ({
|
|
|
8528
8626
|
}
|
|
8529
8627
|
}
|
|
8530
8628
|
),
|
|
8531
|
-
/* @__PURE__ */
|
|
8629
|
+
/* @__PURE__ */ jsx130(
|
|
8532
8630
|
FilledButton_default,
|
|
8533
8631
|
{
|
|
8534
8632
|
color: "primary",
|
|
@@ -8537,7 +8635,7 @@ var TwoButtonDialog = ({
|
|
|
8537
8635
|
}
|
|
8538
8636
|
)
|
|
8539
8637
|
] }),
|
|
8540
|
-
/* @__PURE__ */
|
|
8638
|
+
/* @__PURE__ */ jsx130(Loading_default, { isLoading: dialogLoading })
|
|
8541
8639
|
] }) })
|
|
8542
8640
|
}
|
|
8543
8641
|
);
|
|
@@ -8547,9 +8645,9 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8547
8645
|
// src/components/UserBust/UserBust.tsx
|
|
8548
8646
|
import { memo as memo25 } from "react";
|
|
8549
8647
|
import { Avatar as Avatar2, Typography as Typography32 } from "@mui/material";
|
|
8550
|
-
import { jsx as
|
|
8551
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
8552
|
-
/* @__PURE__ */
|
|
8648
|
+
import { jsx as jsx131, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
8649
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs86("div", { children: [
|
|
8650
|
+
/* @__PURE__ */ jsx131(
|
|
8553
8651
|
Avatar2,
|
|
8554
8652
|
{
|
|
8555
8653
|
src: user.profile_picture,
|
|
@@ -8557,18 +8655,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
|
|
|
8557
8655
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8558
8656
|
}
|
|
8559
8657
|
),
|
|
8560
|
-
/* @__PURE__ */
|
|
8561
|
-
/* @__PURE__ */
|
|
8562
|
-
/* @__PURE__ */
|
|
8658
|
+
/* @__PURE__ */ jsxs86("div", { style: { paddingTop: 16 }, children: [
|
|
8659
|
+
/* @__PURE__ */ jsx131(Typography32, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8660
|
+
/* @__PURE__ */ jsx131(Typography32, { ...typographyProps.username, children: user.username })
|
|
8563
8661
|
] })
|
|
8564
8662
|
] });
|
|
8565
8663
|
var UserBust_default = memo25(UserBust);
|
|
8566
8664
|
|
|
8567
8665
|
// src/components/icons/IconChart.tsx
|
|
8568
|
-
import { jsx as
|
|
8666
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
8569
8667
|
var SvgIconChart = (props) => {
|
|
8570
8668
|
const { fill } = props;
|
|
8571
|
-
return /* @__PURE__ */
|
|
8669
|
+
return /* @__PURE__ */ jsx132(
|
|
8572
8670
|
"svg",
|
|
8573
8671
|
{
|
|
8574
8672
|
width: "20",
|
|
@@ -8577,7 +8675,7 @@ var SvgIconChart = (props) => {
|
|
|
8577
8675
|
fill: "none",
|
|
8578
8676
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8579
8677
|
...props,
|
|
8580
|
-
children: /* @__PURE__ */
|
|
8678
|
+
children: /* @__PURE__ */ jsx132(
|
|
8581
8679
|
"path",
|
|
8582
8680
|
{
|
|
8583
8681
|
d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",
|