@mamrp/components 1.0.3 → 1.0.5
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/index.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +105 -189
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +96 -179
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2211,88 +2211,6 @@ function SearchLicensePlate({
|
|
|
2211
2211
|
));
|
|
2212
2212
|
}
|
|
2213
2213
|
|
|
2214
|
-
// src/loading/index.tsx
|
|
2215
|
-
import React13 from "react";
|
|
2216
|
-
function Loading() {
|
|
2217
|
-
return /* @__PURE__ */ React13.createElement("div", { className: "loading" }, /* @__PURE__ */ React13.createElement(
|
|
2218
|
-
"img",
|
|
2219
|
-
{
|
|
2220
|
-
src: "/assets/images/favicon.ico",
|
|
2221
|
-
alt: "MAM Logo",
|
|
2222
|
-
className: "mam-logo"
|
|
2223
|
-
}
|
|
2224
|
-
), /* @__PURE__ */ React13.createElement("p", { className: "message" }, "\u062F\u0631 \u062D\u0627\u0644 \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC\u060C \u0644\u0637\u0641\u0627 \u0645\u0646\u062A\u0638\u0631 \u0628\u0645\u0627\u0646\u06CC\u062F", /* @__PURE__ */ React13.createElement("span", { className: "dots" }, /* @__PURE__ */ React13.createElement("span", null, "."), /* @__PURE__ */ React13.createElement("span", null, "."), /* @__PURE__ */ React13.createElement("span", null, "."), /* @__PURE__ */ React13.createElement("span", null, "."))), /* @__PURE__ */ React13.createElement("style", null, `
|
|
2225
|
-
.loading {
|
|
2226
|
-
position: fixed;
|
|
2227
|
-
top: 0;
|
|
2228
|
-
left: 0;
|
|
2229
|
-
width: 100%;
|
|
2230
|
-
height: 100%;
|
|
2231
|
-
display: flex;
|
|
2232
|
-
flex-direction: column;
|
|
2233
|
-
justify-content: center;
|
|
2234
|
-
align-items: center;
|
|
2235
|
-
background-color: #065938;
|
|
2236
|
-
color: #fff;
|
|
2237
|
-
z-index: 9999;
|
|
2238
|
-
}
|
|
2239
|
-
.mam-logo {
|
|
2240
|
-
width: 120px;
|
|
2241
|
-
height: auto;
|
|
2242
|
-
margin-bottom: 5px;
|
|
2243
|
-
animation: float 3s ease-in-out infinite, glow 1.5s alternate infinite ease-in-out;
|
|
2244
|
-
}
|
|
2245
|
-
@keyframes float {
|
|
2246
|
-
0%, 100% {
|
|
2247
|
-
transform: translateY(0);
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
}
|
|
2251
|
-
@keyframes glow {
|
|
2252
|
-
0% {
|
|
2253
|
-
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
|
|
2254
|
-
}
|
|
2255
|
-
100% {
|
|
2256
|
-
filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
|
|
2257
|
-
}
|
|
2258
|
-
}
|
|
2259
|
-
.message {
|
|
2260
|
-
font-size: 1.2rem;
|
|
2261
|
-
font-weight: bold;
|
|
2262
|
-
display: flex;
|
|
2263
|
-
align-items: center;
|
|
2264
|
-
}
|
|
2265
|
-
.dots {
|
|
2266
|
-
display: inline-block;
|
|
2267
|
-
margin-left: 5px;
|
|
2268
|
-
}
|
|
2269
|
-
.dots span {
|
|
2270
|
-
animation: blink 1.5s step-start infinite;
|
|
2271
|
-
font-size: 1.5rem;
|
|
2272
|
-
}
|
|
2273
|
-
.dots span:nth-child(1) {
|
|
2274
|
-
animation-delay: 0s;
|
|
2275
|
-
}
|
|
2276
|
-
.dots span:nth-child(2) {
|
|
2277
|
-
animation-delay: 0.3s;
|
|
2278
|
-
}
|
|
2279
|
-
.dots span:nth-child(3) {
|
|
2280
|
-
animation-delay: 0.6s;
|
|
2281
|
-
}
|
|
2282
|
-
@keyframes blink {
|
|
2283
|
-
0% {
|
|
2284
|
-
opacity: 0;
|
|
2285
|
-
}
|
|
2286
|
-
50% {
|
|
2287
|
-
opacity: 1;
|
|
2288
|
-
}
|
|
2289
|
-
100% {
|
|
2290
|
-
opacity: 0;
|
|
2291
|
-
}
|
|
2292
|
-
}
|
|
2293
|
-
`));
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
2214
|
// src/mobile-date-time-picker/index.tsx
|
|
2297
2215
|
import { Button as Button8, Typography as Typography8 } from "@mui/material";
|
|
2298
2216
|
import useMediaQuery4 from "@mui/material/useMediaQuery";
|
|
@@ -2304,7 +2222,7 @@ import {
|
|
|
2304
2222
|
import { AdapterMomentJalaali as AdapterMomentJalaali4 } from "@mui/x-date-pickers/AdapterMomentJalaali";
|
|
2305
2223
|
import dayjs2 from "dayjs";
|
|
2306
2224
|
import moment6 from "moment-jalaali";
|
|
2307
|
-
import
|
|
2225
|
+
import React13, { useState as useState8 } from "react";
|
|
2308
2226
|
import { Controller as Controller6 } from "react-hook-form";
|
|
2309
2227
|
moment6.loadPersian({ dialect: "persian-modern", usePersianDigits: true });
|
|
2310
2228
|
var JalaliDatePicker3 = ({
|
|
@@ -2340,18 +2258,18 @@ var JalaliDatePicker3 = ({
|
|
|
2340
2258
|
calendarWeekNumberAriaLabelText: (weekNumber) => `\u0647\u0641\u062A\u0647 ${weekNumber}`,
|
|
2341
2259
|
calendarWeekNumberText: (weekNumber) => `${weekNumber}`
|
|
2342
2260
|
};
|
|
2343
|
-
return /* @__PURE__ */
|
|
2261
|
+
return /* @__PURE__ */ React13.createElement(
|
|
2344
2262
|
LocalizationProvider4,
|
|
2345
2263
|
{
|
|
2346
2264
|
dateAdapter: AdapterMomentJalaali4,
|
|
2347
2265
|
localeText: customLocaleText
|
|
2348
2266
|
},
|
|
2349
|
-
/* @__PURE__ */
|
|
2267
|
+
/* @__PURE__ */ React13.createElement(
|
|
2350
2268
|
Controller6,
|
|
2351
2269
|
{
|
|
2352
2270
|
name,
|
|
2353
2271
|
control,
|
|
2354
|
-
render: ({ field, fieldState: { error } }) => /* @__PURE__ */
|
|
2272
|
+
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ React13.createElement(Box11, { sx: { width: "100%" } }, /* @__PURE__ */ React13.createElement(
|
|
2355
2273
|
MobileDateTimePicker,
|
|
2356
2274
|
{
|
|
2357
2275
|
open,
|
|
@@ -2394,7 +2312,7 @@ var JalaliDatePicker3 = ({
|
|
|
2394
2312
|
} else {
|
|
2395
2313
|
formattedDay = "\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u0646\u062A\u062E\u0627\u0628 \u0646\u0634\u062F\u0647 \u0627\u0633\u062A", formattedDate = "", formattedYear = "", formattedTime = "";
|
|
2396
2314
|
}
|
|
2397
|
-
return /* @__PURE__ */
|
|
2315
|
+
return /* @__PURE__ */ React13.createElement(
|
|
2398
2316
|
Box11,
|
|
2399
2317
|
{
|
|
2400
2318
|
sx: {
|
|
@@ -2407,7 +2325,7 @@ var JalaliDatePicker3 = ({
|
|
|
2407
2325
|
gap: 1
|
|
2408
2326
|
}
|
|
2409
2327
|
},
|
|
2410
|
-
/* @__PURE__ */
|
|
2328
|
+
/* @__PURE__ */ React13.createElement(
|
|
2411
2329
|
Typography8,
|
|
2412
2330
|
{
|
|
2413
2331
|
fontSize: 16,
|
|
@@ -2416,7 +2334,7 @@ var JalaliDatePicker3 = ({
|
|
|
2416
2334
|
},
|
|
2417
2335
|
`${formattedDay}\u060C`
|
|
2418
2336
|
),
|
|
2419
|
-
/* @__PURE__ */
|
|
2337
|
+
/* @__PURE__ */ React13.createElement(
|
|
2420
2338
|
Typography8,
|
|
2421
2339
|
{
|
|
2422
2340
|
variant: "h4",
|
|
@@ -2425,7 +2343,7 @@ var JalaliDatePicker3 = ({
|
|
|
2425
2343
|
},
|
|
2426
2344
|
`${formattedDate}`
|
|
2427
2345
|
),
|
|
2428
|
-
/* @__PURE__ */
|
|
2346
|
+
/* @__PURE__ */ React13.createElement(
|
|
2429
2347
|
Typography8,
|
|
2430
2348
|
{
|
|
2431
2349
|
fontSize: 16,
|
|
@@ -2434,8 +2352,8 @@ var JalaliDatePicker3 = ({
|
|
|
2434
2352
|
},
|
|
2435
2353
|
`${formattedYear}`
|
|
2436
2354
|
),
|
|
2437
|
-
field.value && /* @__PURE__ */
|
|
2438
|
-
/* @__PURE__ */
|
|
2355
|
+
field.value && /* @__PURE__ */ React13.createElement(Typography8, null, "-"),
|
|
2356
|
+
/* @__PURE__ */ React13.createElement(
|
|
2439
2357
|
Typography8,
|
|
2440
2358
|
{
|
|
2441
2359
|
fontSize: 16,
|
|
@@ -2448,7 +2366,7 @@ var JalaliDatePicker3 = ({
|
|
|
2448
2366
|
);
|
|
2449
2367
|
},
|
|
2450
2368
|
monthButton: (props) => {
|
|
2451
|
-
return /* @__PURE__ */
|
|
2369
|
+
return /* @__PURE__ */ React13.createElement(
|
|
2452
2370
|
Button8,
|
|
2453
2371
|
{
|
|
2454
2372
|
className: props.className,
|
|
@@ -2526,7 +2444,7 @@ var JalaliDatePicker3 = ({
|
|
|
2526
2444
|
}
|
|
2527
2445
|
}
|
|
2528
2446
|
}
|
|
2529
|
-
), error && /* @__PURE__ */
|
|
2447
|
+
), error && /* @__PURE__ */ React13.createElement(Typography8, { fontSize: 13, color: "error", sx: { mt: 0.6, ml: 1 } }, error.message))
|
|
2530
2448
|
}
|
|
2531
2449
|
)
|
|
2532
2450
|
);
|
|
@@ -2534,7 +2452,7 @@ var JalaliDatePicker3 = ({
|
|
|
2534
2452
|
var mobile_date_time_picker_default = JalaliDatePicker3;
|
|
2535
2453
|
|
|
2536
2454
|
// src/modal/index.tsx
|
|
2537
|
-
import * as
|
|
2455
|
+
import * as React14 from "react";
|
|
2538
2456
|
import Dialog5 from "@mui/material/Dialog";
|
|
2539
2457
|
import DialogActions3 from "@mui/material/DialogActions";
|
|
2540
2458
|
import DialogContent5 from "@mui/material/DialogContent";
|
|
@@ -2557,7 +2475,7 @@ function ConfirmationDialog2({
|
|
|
2557
2475
|
bodyText,
|
|
2558
2476
|
isLoading
|
|
2559
2477
|
}) {
|
|
2560
|
-
return /* @__PURE__ */
|
|
2478
|
+
return /* @__PURE__ */ React14.createElement(Dialog5, { open, onClose: handleClose, fullWidth: true, maxWidth: "xs" }, /* @__PURE__ */ React14.createElement(Box12, null, /* @__PURE__ */ React14.createElement(
|
|
2561
2479
|
DialogTitle5,
|
|
2562
2480
|
{
|
|
2563
2481
|
fontWeight: 700,
|
|
@@ -2566,9 +2484,9 @@ function ConfirmationDialog2({
|
|
|
2566
2484
|
alignItems: "center",
|
|
2567
2485
|
gap: 1
|
|
2568
2486
|
},
|
|
2569
|
-
/* @__PURE__ */
|
|
2487
|
+
/* @__PURE__ */ React14.createElement(FaRegTrashAlt, { style: { color: "red" }, size: 18 }),
|
|
2570
2488
|
headerText
|
|
2571
|
-
), /* @__PURE__ */
|
|
2489
|
+
), /* @__PURE__ */ React14.createElement(
|
|
2572
2490
|
IconButton5,
|
|
2573
2491
|
{
|
|
2574
2492
|
"aria-label": "close",
|
|
@@ -2580,8 +2498,8 @@ function ConfirmationDialog2({
|
|
|
2580
2498
|
color: (theme) => theme.palette.grey[500]
|
|
2581
2499
|
}
|
|
2582
2500
|
},
|
|
2583
|
-
/* @__PURE__ */
|
|
2584
|
-
), /* @__PURE__ */
|
|
2501
|
+
/* @__PURE__ */ React14.createElement(MdClose3, null)
|
|
2502
|
+
), /* @__PURE__ */ React14.createElement(Divider3, { sx: { my: "10px" } }), /* @__PURE__ */ React14.createElement(DialogContent5, null, bodyText), /* @__PURE__ */ React14.createElement(
|
|
2585
2503
|
DialogActions3,
|
|
2586
2504
|
{
|
|
2587
2505
|
sx: {
|
|
@@ -2593,7 +2511,7 @@ function ConfirmationDialog2({
|
|
|
2593
2511
|
padding: "2rem"
|
|
2594
2512
|
}
|
|
2595
2513
|
},
|
|
2596
|
-
/* @__PURE__ */
|
|
2514
|
+
/* @__PURE__ */ React14.createElement(
|
|
2597
2515
|
Button9,
|
|
2598
2516
|
{
|
|
2599
2517
|
disabled: isLoading,
|
|
@@ -2604,17 +2522,17 @@ function ConfirmationDialog2({
|
|
|
2604
2522
|
variant: "contained",
|
|
2605
2523
|
color: "error",
|
|
2606
2524
|
sx: { minWidth: "120px" },
|
|
2607
|
-
startIcon: isLoading ? /* @__PURE__ */
|
|
2525
|
+
startIcon: isLoading ? /* @__PURE__ */ React14.createElement(CircularProgress2, { sx: { color: "white" }, size: 20 }) : /* @__PURE__ */ React14.createElement(FaRegTrashAlt, { size: 16 })
|
|
2608
2526
|
},
|
|
2609
2527
|
"\u062D\u0630\u0641"
|
|
2610
2528
|
),
|
|
2611
|
-
/* @__PURE__ */
|
|
2529
|
+
/* @__PURE__ */ React14.createElement(
|
|
2612
2530
|
Button9,
|
|
2613
2531
|
{
|
|
2614
2532
|
onClick: handleClose,
|
|
2615
2533
|
variant: "outlined",
|
|
2616
2534
|
color: "error",
|
|
2617
|
-
startIcon: /* @__PURE__ */
|
|
2535
|
+
startIcon: /* @__PURE__ */ React14.createElement(MdOutlineCancel2, { size: 15 }),
|
|
2618
2536
|
sx: { minWidth: "120px" }
|
|
2619
2537
|
},
|
|
2620
2538
|
"\u0627\u0646\u0635\u0631\u0627\u0641"
|
|
@@ -2629,14 +2547,14 @@ import {
|
|
|
2629
2547
|
Typography as Typography9,
|
|
2630
2548
|
useTheme as useTheme4
|
|
2631
2549
|
} from "@mui/material";
|
|
2632
|
-
import
|
|
2550
|
+
import React15 from "react";
|
|
2633
2551
|
function NoResult({
|
|
2634
2552
|
title = "\u062F\u0627\u062F\u0647 \u0627\u06CC \u0628\u0631\u0627\u06CC \u0646\u0645\u0627\u06CC\u0634 \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F!",
|
|
2635
2553
|
description,
|
|
2636
2554
|
sx = {}
|
|
2637
2555
|
}) {
|
|
2638
2556
|
const theme = useTheme4();
|
|
2639
|
-
return /* @__PURE__ */
|
|
2557
|
+
return /* @__PURE__ */ React15.createElement(
|
|
2640
2558
|
Card2,
|
|
2641
2559
|
{
|
|
2642
2560
|
sx: {
|
|
@@ -2646,7 +2564,7 @@ function NoResult({
|
|
|
2646
2564
|
border: `1px solid ${theme.palette.secondary.light}`
|
|
2647
2565
|
}
|
|
2648
2566
|
},
|
|
2649
|
-
/* @__PURE__ */
|
|
2567
|
+
/* @__PURE__ */ React15.createElement(
|
|
2650
2568
|
Stack3,
|
|
2651
2569
|
{
|
|
2652
2570
|
spacing: 2,
|
|
@@ -2656,7 +2574,7 @@ function NoResult({
|
|
|
2656
2574
|
...sx
|
|
2657
2575
|
}
|
|
2658
2576
|
},
|
|
2659
|
-
/* @__PURE__ */
|
|
2577
|
+
/* @__PURE__ */ React15.createElement(
|
|
2660
2578
|
"img",
|
|
2661
2579
|
{
|
|
2662
2580
|
src: "/assets/images/no-data.png",
|
|
@@ -2665,7 +2583,7 @@ function NoResult({
|
|
|
2665
2583
|
width: 100
|
|
2666
2584
|
}
|
|
2667
2585
|
),
|
|
2668
|
-
/* @__PURE__ */
|
|
2586
|
+
/* @__PURE__ */ React15.createElement(Stack3, { spacing: 1, alignItems: "center" }, /* @__PURE__ */ React15.createElement(Typography9, { fontWeight: "600" }, title), description && /* @__PURE__ */ React15.createElement(Typography9, { fontWeight: "500" }, description))
|
|
2669
2587
|
)
|
|
2670
2588
|
);
|
|
2671
2589
|
}
|
|
@@ -2675,14 +2593,14 @@ import { convertToPersianDigits as convertToPersianDigits3 } from "@mamrp/utils"
|
|
|
2675
2593
|
import { Button as Button10 } from "@mui/material";
|
|
2676
2594
|
import Stack4 from "@mui/material/Stack";
|
|
2677
2595
|
import { Box as Box13 } from "@mui/system";
|
|
2678
|
-
import * as
|
|
2596
|
+
import * as React16 from "react";
|
|
2679
2597
|
import { FaChevronLeft as FaChevronLeft3, FaChevronRight as FaChevronRight3 } from "react-icons/fa";
|
|
2680
2598
|
function PaginationList({
|
|
2681
2599
|
currentPage,
|
|
2682
2600
|
setCurrentPage,
|
|
2683
2601
|
totalPages
|
|
2684
2602
|
}) {
|
|
2685
|
-
|
|
2603
|
+
React16.useEffect(() => {
|
|
2686
2604
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
2687
2605
|
}, [currentPage]);
|
|
2688
2606
|
const handlePrevious = () => {
|
|
@@ -2695,7 +2613,7 @@ function PaginationList({
|
|
|
2695
2613
|
setCurrentPage(currentPage + 1);
|
|
2696
2614
|
}
|
|
2697
2615
|
};
|
|
2698
|
-
return /* @__PURE__ */
|
|
2616
|
+
return /* @__PURE__ */ React16.createElement(
|
|
2699
2617
|
Stack4,
|
|
2700
2618
|
{
|
|
2701
2619
|
direction: "row",
|
|
@@ -2703,7 +2621,7 @@ function PaginationList({
|
|
|
2703
2621
|
alignItems: "center",
|
|
2704
2622
|
justifyContent: "center"
|
|
2705
2623
|
},
|
|
2706
|
-
/* @__PURE__ */
|
|
2624
|
+
/* @__PURE__ */ React16.createElement(
|
|
2707
2625
|
Button10,
|
|
2708
2626
|
{
|
|
2709
2627
|
variant: "contained",
|
|
@@ -2720,12 +2638,12 @@ function PaginationList({
|
|
|
2720
2638
|
justifyContent: "center"
|
|
2721
2639
|
},
|
|
2722
2640
|
size: "large",
|
|
2723
|
-
startIcon: /* @__PURE__ */
|
|
2641
|
+
startIcon: /* @__PURE__ */ React16.createElement(FaChevronRight3, null)
|
|
2724
2642
|
},
|
|
2725
2643
|
"\u0642\u0628\u0644\u06CC",
|
|
2726
2644
|
" "
|
|
2727
2645
|
),
|
|
2728
|
-
/* @__PURE__ */
|
|
2646
|
+
/* @__PURE__ */ React16.createElement(
|
|
2729
2647
|
Box13,
|
|
2730
2648
|
{
|
|
2731
2649
|
sx: {
|
|
@@ -2741,10 +2659,10 @@ function PaginationList({
|
|
|
2741
2659
|
backgroundColor: "#065938"
|
|
2742
2660
|
}
|
|
2743
2661
|
},
|
|
2744
|
-
/* @__PURE__ */
|
|
2662
|
+
/* @__PURE__ */ React16.createElement("span", { style: { margin: "0px 6px", fontSize: "1.2rem" } }, "\u0635\u0641\u062D\u0647"),
|
|
2745
2663
|
convertToPersianDigits3(currentPage)
|
|
2746
2664
|
),
|
|
2747
|
-
/* @__PURE__ */
|
|
2665
|
+
/* @__PURE__ */ React16.createElement(
|
|
2748
2666
|
Button10,
|
|
2749
2667
|
{
|
|
2750
2668
|
variant: "contained",
|
|
@@ -2761,7 +2679,7 @@ function PaginationList({
|
|
|
2761
2679
|
justifyContent: "center"
|
|
2762
2680
|
},
|
|
2763
2681
|
size: "large",
|
|
2764
|
-
endIcon: /* @__PURE__ */
|
|
2682
|
+
endIcon: /* @__PURE__ */ React16.createElement(FaChevronLeft3, null)
|
|
2765
2683
|
},
|
|
2766
2684
|
"\u0628\u0639\u062F\u06CC",
|
|
2767
2685
|
" "
|
|
@@ -2770,7 +2688,7 @@ function PaginationList({
|
|
|
2770
2688
|
}
|
|
2771
2689
|
|
|
2772
2690
|
// src/radio-button/index.tsx
|
|
2773
|
-
import * as
|
|
2691
|
+
import * as React17 from "react";
|
|
2774
2692
|
import { Controller as Controller7 } from "react-hook-form";
|
|
2775
2693
|
import Radio from "@mui/material/Radio";
|
|
2776
2694
|
import RadioGroup from "@mui/material/RadioGroup";
|
|
@@ -2778,17 +2696,17 @@ import FormControlLabel2 from "@mui/material/FormControlLabel";
|
|
|
2778
2696
|
import FormControl from "@mui/material/FormControl";
|
|
2779
2697
|
import FormLabel from "@mui/material/FormLabel";
|
|
2780
2698
|
function RadioButton({ name, label, options, control }) {
|
|
2781
|
-
return /* @__PURE__ */
|
|
2699
|
+
return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(FormControl, { sx: {
|
|
2782
2700
|
display: "flex",
|
|
2783
2701
|
flexDirection: "row",
|
|
2784
2702
|
alignItems: "center",
|
|
2785
2703
|
justifyContent: "start"
|
|
2786
|
-
} }, /* @__PURE__ */
|
|
2704
|
+
} }, /* @__PURE__ */ React17.createElement(FormLabel, { id: `${name}-label` }, label), /* @__PURE__ */ React17.createElement(
|
|
2787
2705
|
Controller7,
|
|
2788
2706
|
{
|
|
2789
2707
|
name,
|
|
2790
2708
|
control,
|
|
2791
|
-
render: ({ field }) => /* @__PURE__ */
|
|
2709
|
+
render: ({ field }) => /* @__PURE__ */ React17.createElement(
|
|
2792
2710
|
RadioGroup,
|
|
2793
2711
|
{
|
|
2794
2712
|
...field,
|
|
@@ -2800,12 +2718,12 @@ function RadioButton({ name, label, options, control }) {
|
|
|
2800
2718
|
marginLeft: 5
|
|
2801
2719
|
}
|
|
2802
2720
|
},
|
|
2803
|
-
options.map((option) => /* @__PURE__ */
|
|
2721
|
+
options.map((option) => /* @__PURE__ */ React17.createElement(
|
|
2804
2722
|
FormControlLabel2,
|
|
2805
2723
|
{
|
|
2806
2724
|
key: option.value,
|
|
2807
2725
|
value: option.value,
|
|
2808
|
-
control: /* @__PURE__ */
|
|
2726
|
+
control: /* @__PURE__ */ React17.createElement(Radio, { id: option.id }),
|
|
2809
2727
|
label: option.name
|
|
2810
2728
|
}
|
|
2811
2729
|
))
|
|
@@ -2828,7 +2746,7 @@ import {
|
|
|
2828
2746
|
Select,
|
|
2829
2747
|
Typography as Typography10
|
|
2830
2748
|
} from "@mui/material";
|
|
2831
|
-
import
|
|
2749
|
+
import React18, { useState as useState9 } from "react";
|
|
2832
2750
|
var backendResponse = {
|
|
2833
2751
|
value: {
|
|
2834
2752
|
data: [
|
|
@@ -2896,7 +2814,7 @@ var NestedSelect = () => {
|
|
|
2896
2814
|
const isAnyChildSelected = item.children?.some(
|
|
2897
2815
|
(child) => selectedItem?.id === child.id
|
|
2898
2816
|
);
|
|
2899
|
-
return /* @__PURE__ */
|
|
2817
|
+
return /* @__PURE__ */ React18.createElement("div", { key: item.id }, /* @__PURE__ */ React18.createElement(
|
|
2900
2818
|
MenuItem,
|
|
2901
2819
|
{
|
|
2902
2820
|
onClick: (e) => {
|
|
@@ -2906,9 +2824,9 @@ var NestedSelect = () => {
|
|
|
2906
2824
|
disabled: isAnyChildSelected,
|
|
2907
2825
|
sx: { pl: level * 2 }
|
|
2908
2826
|
},
|
|
2909
|
-
/* @__PURE__ */
|
|
2910
|
-
/* @__PURE__ */
|
|
2911
|
-
item.children && item.children.length > 0 && /* @__PURE__ */
|
|
2827
|
+
/* @__PURE__ */ React18.createElement(Checkbox2, { checked: isParentSelected }),
|
|
2828
|
+
/* @__PURE__ */ React18.createElement(ListItemText, { primary: item.title }),
|
|
2829
|
+
item.children && item.children.length > 0 && /* @__PURE__ */ React18.createElement(
|
|
2912
2830
|
IconButton6,
|
|
2913
2831
|
{
|
|
2914
2832
|
size: "small",
|
|
@@ -2917,12 +2835,12 @@ var NestedSelect = () => {
|
|
|
2917
2835
|
handleToggle(item.id);
|
|
2918
2836
|
}
|
|
2919
2837
|
},
|
|
2920
|
-
openMenus[item.id] ? /* @__PURE__ */
|
|
2838
|
+
openMenus[item.id] ? /* @__PURE__ */ React18.createElement(MdKeyboardArrowLeft, null) : /* @__PURE__ */ React18.createElement(MdKeyboardArrowRight, null)
|
|
2921
2839
|
)
|
|
2922
|
-
), item.children && item.children.length > 0 && /* @__PURE__ */
|
|
2840
|
+
), item.children && item.children.length > 0 && /* @__PURE__ */ React18.createElement(Collapse, { in: openMenus[item.id], timeout: "auto", unmountOnExit: true }, /* @__PURE__ */ React18.createElement(List, { component: "div", disablePadding: true }, renderMenuItems(item.children, level + 1))));
|
|
2923
2841
|
});
|
|
2924
2842
|
};
|
|
2925
|
-
return /* @__PURE__ */
|
|
2843
|
+
return /* @__PURE__ */ React18.createElement(FormControl2, { fullWidth: true, variant: "outlined" }, /* @__PURE__ */ React18.createElement(InputLabel, { shrink: true }, "\u062F\u0633\u062A\u0647 \u0628\u0646\u062F\u06CC *"), /* @__PURE__ */ React18.createElement(
|
|
2926
2844
|
Select,
|
|
2927
2845
|
{
|
|
2928
2846
|
label: "\u062F\u0633\u062A\u0647 \u0628\u0646\u062F\u06CC *",
|
|
@@ -2931,7 +2849,7 @@ var NestedSelect = () => {
|
|
|
2931
2849
|
open: menuOpen,
|
|
2932
2850
|
onOpen: () => setMenuOpen(true),
|
|
2933
2851
|
onClose: () => setMenuOpen(false),
|
|
2934
|
-
renderValue: (selected) => selectedItem ? /* @__PURE__ */
|
|
2852
|
+
renderValue: (selected) => selectedItem ? /* @__PURE__ */ React18.createElement(Typography10, null, selectedItem.title) : " "
|
|
2935
2853
|
},
|
|
2936
2854
|
renderMenuItems(backendResponse.value.data)
|
|
2937
2855
|
));
|
|
@@ -2941,7 +2859,7 @@ var selector_default = NestedSelect;
|
|
|
2941
2859
|
// src/spinner/sonar/index.tsx
|
|
2942
2860
|
import { Box as Box14 } from "@mui/material";
|
|
2943
2861
|
import { keyframes } from "@mui/system";
|
|
2944
|
-
import
|
|
2862
|
+
import React19 from "react";
|
|
2945
2863
|
var radarAnimation = keyframes`
|
|
2946
2864
|
0% {
|
|
2947
2865
|
background: inherit;
|
|
@@ -2954,7 +2872,7 @@ var radarAnimation = keyframes`
|
|
|
2954
2872
|
}
|
|
2955
2873
|
`;
|
|
2956
2874
|
function SonarSpinner({ children }) {
|
|
2957
|
-
return /* @__PURE__ */
|
|
2875
|
+
return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(Box14, { className: "absolute w-[30px] h-[30px] rounded-full bg-white z-10 flex items-center justify-center" }, children), /* @__PURE__ */ React19.createElement(
|
|
2958
2876
|
Box14,
|
|
2959
2877
|
{
|
|
2960
2878
|
className: "root",
|
|
@@ -2967,7 +2885,7 @@ function SonarSpinner({ children }) {
|
|
|
2967
2885
|
transform: "translateZ(0)"
|
|
2968
2886
|
}
|
|
2969
2887
|
},
|
|
2970
|
-
/* @__PURE__ */
|
|
2888
|
+
/* @__PURE__ */ React19.createElement(
|
|
2971
2889
|
Box14,
|
|
2972
2890
|
{
|
|
2973
2891
|
className: "radar",
|
|
@@ -2985,7 +2903,7 @@ function SonarSpinner({ children }) {
|
|
|
2985
2903
|
animationDelay: "0s"
|
|
2986
2904
|
}
|
|
2987
2905
|
},
|
|
2988
|
-
/* @__PURE__ */
|
|
2906
|
+
/* @__PURE__ */ React19.createElement(
|
|
2989
2907
|
Box14,
|
|
2990
2908
|
{
|
|
2991
2909
|
className: "sonar",
|
|
@@ -2999,7 +2917,7 @@ function SonarSpinner({ children }) {
|
|
|
2999
2917
|
}
|
|
3000
2918
|
}
|
|
3001
2919
|
),
|
|
3002
|
-
/* @__PURE__ */
|
|
2920
|
+
/* @__PURE__ */ React19.createElement(
|
|
3003
2921
|
Box14,
|
|
3004
2922
|
{
|
|
3005
2923
|
className: "sonar delayed",
|
|
@@ -3027,14 +2945,14 @@ import Box15 from "@mui/material/Box";
|
|
|
3027
2945
|
import Step from "@mui/material/Step";
|
|
3028
2946
|
import StepButton from "@mui/material/StepButton";
|
|
3029
2947
|
import Stepper from "@mui/material/Stepper";
|
|
3030
|
-
import * as
|
|
2948
|
+
import * as React20 from "react";
|
|
3031
2949
|
function HorizontalStepper({
|
|
3032
2950
|
steps,
|
|
3033
2951
|
currentStep,
|
|
3034
2952
|
setCurrentStep
|
|
3035
2953
|
}) {
|
|
3036
|
-
const [completed, setCompleted] =
|
|
3037
|
-
return /* @__PURE__ */
|
|
2954
|
+
const [completed, setCompleted] = React20.useState({});
|
|
2955
|
+
return /* @__PURE__ */ React20.createElement(Box15, { sx: { width: "100%" } }, /* @__PURE__ */ React20.createElement(Stepper, { nonLinear: true, activeStep: currentStep }, steps.map((label, index) => /* @__PURE__ */ React20.createElement(Step, { key: index, completed: completed[index] }, /* @__PURE__ */ React20.createElement(
|
|
3038
2956
|
StepButton,
|
|
3039
2957
|
{
|
|
3040
2958
|
color: "inherit",
|
|
@@ -3052,7 +2970,7 @@ function HorizontalStepper({
|
|
|
3052
2970
|
// src/switch-button/index.tsx
|
|
3053
2971
|
import { Box as Box16, FormControlLabel as FormControlLabel3, Switch } from "@mui/material";
|
|
3054
2972
|
import { styled as styled2 } from "@mui/system";
|
|
3055
|
-
import
|
|
2973
|
+
import React21 from "react";
|
|
3056
2974
|
var CustomSwitch = styled2(Switch)(({ theme }) => ({
|
|
3057
2975
|
"& .MuiSwitch-switchBase.Mui-checked": {
|
|
3058
2976
|
color: theme.palette.primary.main
|
|
@@ -3108,10 +3026,10 @@ var SwitchWithIcons = ({
|
|
|
3108
3026
|
iconChecked,
|
|
3109
3027
|
iconUnchecked
|
|
3110
3028
|
}) => {
|
|
3111
|
-
return /* @__PURE__ */
|
|
3029
|
+
return /* @__PURE__ */ React21.createElement(BoxContainer, null, /* @__PURE__ */ React21.createElement(
|
|
3112
3030
|
FormControlLabel3,
|
|
3113
3031
|
{
|
|
3114
|
-
control: /* @__PURE__ */
|
|
3032
|
+
control: /* @__PURE__ */ React21.createElement(
|
|
3115
3033
|
CustomSwitch,
|
|
3116
3034
|
{
|
|
3117
3035
|
checked,
|
|
@@ -3119,7 +3037,7 @@ var SwitchWithIcons = ({
|
|
|
3119
3037
|
name: "switch"
|
|
3120
3038
|
}
|
|
3121
3039
|
),
|
|
3122
|
-
label: /* @__PURE__ */
|
|
3040
|
+
label: /* @__PURE__ */ React21.createElement(LabelContainer, null, checked ? iconChecked ? iconChecked : /* @__PURE__ */ React21.createElement("div", { style: { fontSize: 22, color: "#4CAF50" } }, "\u2714") : iconUnchecked ? iconUnchecked : /* @__PURE__ */ React21.createElement("div", { style: { fontSize: 20, color: "#757575" } }, "\u2718"))
|
|
3123
3041
|
}
|
|
3124
3042
|
));
|
|
3125
3043
|
};
|
|
@@ -3132,7 +3050,7 @@ import { styled as styled3 } from "@mui/material/styles";
|
|
|
3132
3050
|
import {
|
|
3133
3051
|
DataGrid
|
|
3134
3052
|
} from "@mui/x-data-grid";
|
|
3135
|
-
import
|
|
3053
|
+
import React22, { useEffect as useEffect8 } from "react";
|
|
3136
3054
|
var ScrollableContainer = styled3("div")({
|
|
3137
3055
|
width: "100%",
|
|
3138
3056
|
overflowX: "auto"
|
|
@@ -3158,7 +3076,7 @@ var Table = ({
|
|
|
3158
3076
|
fontSize,
|
|
3159
3077
|
...rest
|
|
3160
3078
|
}) => {
|
|
3161
|
-
const [sortModel, setSortModel] =
|
|
3079
|
+
const [sortModel, setSortModel] = React22.useState([]);
|
|
3162
3080
|
const handleSetQueryOptions = (options) => {
|
|
3163
3081
|
if (!Array.isArray(options)) return;
|
|
3164
3082
|
const formattedOptions = options.reduce((acc, item) => {
|
|
@@ -3186,7 +3104,7 @@ var Table = ({
|
|
|
3186
3104
|
setSortModel([]);
|
|
3187
3105
|
}
|
|
3188
3106
|
}, [sortQuery]);
|
|
3189
|
-
const handleSortModelChange =
|
|
3107
|
+
const handleSortModelChange = React22.useCallback(
|
|
3190
3108
|
(sortModel2) => {
|
|
3191
3109
|
handleSetQueryOptions(
|
|
3192
3110
|
sortModel2.map((item) => ({
|
|
@@ -3226,7 +3144,7 @@ var Table = ({
|
|
|
3226
3144
|
// Connect paginationModel to DataGrid
|
|
3227
3145
|
}
|
|
3228
3146
|
};
|
|
3229
|
-
return /* @__PURE__ */
|
|
3147
|
+
return /* @__PURE__ */ React22.createElement(ScrollableContainer, null, /* @__PURE__ */ React22.createElement(
|
|
3230
3148
|
DataGrid,
|
|
3231
3149
|
{
|
|
3232
3150
|
rows,
|
|
@@ -3271,14 +3189,14 @@ var Table = ({
|
|
|
3271
3189
|
noRowsLabel: "\u0647\u06CC\u0686 \u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F!",
|
|
3272
3190
|
noResultsOverlayLabel: "\u0647\u06CC\u0686 \u062F\u0627\u062F\u0647\u200C\u0627\u06CC \u06CC\u0627\u0641\u062A \u0646\u0634\u062F!",
|
|
3273
3191
|
MuiTablePagination: {
|
|
3274
|
-
labelDisplayedRows: ({ from, to, count }) => loading ? /* @__PURE__ */
|
|
3192
|
+
labelDisplayedRows: ({ from, to, count }) => loading ? /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement(
|
|
3275
3193
|
Skeleton2,
|
|
3276
3194
|
{
|
|
3277
3195
|
variant: "text",
|
|
3278
3196
|
width: 30,
|
|
3279
3197
|
style: { display: "inline-block" }
|
|
3280
3198
|
}
|
|
3281
|
-
), " ", /* @__PURE__ */
|
|
3199
|
+
), " ", /* @__PURE__ */ React22.createElement(
|
|
3282
3200
|
Skeleton2,
|
|
3283
3201
|
{
|
|
3284
3202
|
variant: "text",
|
|
@@ -3287,7 +3205,7 @@ var Table = ({
|
|
|
3287
3205
|
}
|
|
3288
3206
|
)) : `${from} - ${!isNaN(to) ? to : "..."} \u0627\u0632 ${count !== void 0 ? count : "..."}`
|
|
3289
3207
|
},
|
|
3290
|
-
footerRowSelected: (count) => /* @__PURE__ */
|
|
3208
|
+
footerRowSelected: (count) => /* @__PURE__ */ React22.createElement(Typography11, null, "\u0633\u0637\u0631 \u0647\u0627\u06CC \u0627\u0646\u062A\u062E\u0627\u0628 \u0634\u062F\u0647 : ", count)
|
|
3291
3209
|
},
|
|
3292
3210
|
...rest
|
|
3293
3211
|
}
|
|
@@ -3302,7 +3220,7 @@ import { Controller as Controller8 } from "react-hook-form";
|
|
|
3302
3220
|
import { NumericFormat } from "react-number-format";
|
|
3303
3221
|
import CircularProgress3 from "@mui/material/CircularProgress";
|
|
3304
3222
|
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
3305
|
-
import
|
|
3223
|
+
import React23 from "react";
|
|
3306
3224
|
var FormInputNumber = ({
|
|
3307
3225
|
name,
|
|
3308
3226
|
control,
|
|
@@ -3320,13 +3238,13 @@ var FormInputNumber = ({
|
|
|
3320
3238
|
decimalScale = 2,
|
|
3321
3239
|
...rest
|
|
3322
3240
|
}) => {
|
|
3323
|
-
return /* @__PURE__ */
|
|
3241
|
+
return /* @__PURE__ */ React23.createElement(
|
|
3324
3242
|
Controller8,
|
|
3325
3243
|
{
|
|
3326
3244
|
rules,
|
|
3327
3245
|
name,
|
|
3328
3246
|
control,
|
|
3329
|
-
render: ({ field: { onChange, value, ref }, fieldState: { error } }) => /* @__PURE__ */
|
|
3247
|
+
render: ({ field: { onChange, value, ref }, fieldState: { error } }) => /* @__PURE__ */ React23.createElement(
|
|
3330
3248
|
TextField3,
|
|
3331
3249
|
{
|
|
3332
3250
|
disabled: isLoading,
|
|
@@ -3366,7 +3284,7 @@ var FormInputNumber = ({
|
|
|
3366
3284
|
maxLength,
|
|
3367
3285
|
decimalScale
|
|
3368
3286
|
},
|
|
3369
|
-
endAdornment: isLoading ? /* @__PURE__ */
|
|
3287
|
+
endAdornment: isLoading ? /* @__PURE__ */ React23.createElement(InputAdornment2, { position: "end" }, /* @__PURE__ */ React23.createElement(CircularProgress3, { size: 20 })) : null,
|
|
3370
3288
|
startAdornment
|
|
3371
3289
|
},
|
|
3372
3290
|
...rest
|
|
@@ -3386,7 +3304,7 @@ var NumericFormatCustom = forwardRef(
|
|
|
3386
3304
|
decimalScale,
|
|
3387
3305
|
...other
|
|
3388
3306
|
} = props;
|
|
3389
|
-
return /* @__PURE__ */
|
|
3307
|
+
return /* @__PURE__ */ React23.createElement(
|
|
3390
3308
|
NumericFormat,
|
|
3391
3309
|
{
|
|
3392
3310
|
...other,
|
|
@@ -3417,7 +3335,7 @@ var number_type_default = FormInputNumber;
|
|
|
3417
3335
|
import CircularProgress4 from "@mui/material/CircularProgress";
|
|
3418
3336
|
import InputAdornment3 from "@mui/material/InputAdornment";
|
|
3419
3337
|
import TextField4 from "@mui/material/TextField";
|
|
3420
|
-
import
|
|
3338
|
+
import React24 from "react";
|
|
3421
3339
|
import { Controller as Controller9 } from "react-hook-form";
|
|
3422
3340
|
var FormInputText = ({
|
|
3423
3341
|
name,
|
|
@@ -3434,13 +3352,13 @@ var FormInputText = ({
|
|
|
3434
3352
|
rows,
|
|
3435
3353
|
...rest
|
|
3436
3354
|
}) => {
|
|
3437
|
-
return /* @__PURE__ */
|
|
3355
|
+
return /* @__PURE__ */ React24.createElement(
|
|
3438
3356
|
Controller9,
|
|
3439
3357
|
{
|
|
3440
3358
|
name,
|
|
3441
3359
|
control,
|
|
3442
3360
|
rules,
|
|
3443
|
-
render: ({ field: { onChange, value, ref }, fieldState: { error } }) => /* @__PURE__ */
|
|
3361
|
+
render: ({ field: { onChange, value, ref }, fieldState: { error } }) => /* @__PURE__ */ React24.createElement(
|
|
3444
3362
|
TextField4,
|
|
3445
3363
|
{
|
|
3446
3364
|
disabled: disabled || isLoading,
|
|
@@ -3460,7 +3378,7 @@ var FormInputText = ({
|
|
|
3460
3378
|
readOnly
|
|
3461
3379
|
},
|
|
3462
3380
|
InputProps: {
|
|
3463
|
-
endAdornment: isLoading ? /* @__PURE__ */
|
|
3381
|
+
endAdornment: isLoading ? /* @__PURE__ */ React24.createElement(InputAdornment3, { position: "end" }, /* @__PURE__ */ React24.createElement(CircularProgress4, { size: 20 })) : null
|
|
3464
3382
|
},
|
|
3465
3383
|
InputLabelProps: { shrink: true },
|
|
3466
3384
|
inputRef: ref,
|
|
@@ -3473,7 +3391,7 @@ var FormInputText = ({
|
|
|
3473
3391
|
var text_type_default = FormInputText;
|
|
3474
3392
|
|
|
3475
3393
|
// src/upload-image/index.tsx
|
|
3476
|
-
import
|
|
3394
|
+
import React25 from "react";
|
|
3477
3395
|
import {
|
|
3478
3396
|
Controller as Controller10
|
|
3479
3397
|
} from "react-hook-form";
|
|
@@ -3554,12 +3472,12 @@ var UploadImage = ({
|
|
|
3554
3472
|
}
|
|
3555
3473
|
}
|
|
3556
3474
|
};
|
|
3557
|
-
return /* @__PURE__ */
|
|
3475
|
+
return /* @__PURE__ */ React25.createElement(
|
|
3558
3476
|
Controller10,
|
|
3559
3477
|
{
|
|
3560
3478
|
name,
|
|
3561
3479
|
control,
|
|
3562
|
-
render: ({ field }) => /* @__PURE__ */
|
|
3480
|
+
render: ({ field }) => /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(
|
|
3563
3481
|
"label",
|
|
3564
3482
|
{
|
|
3565
3483
|
htmlFor: "file-upload",
|
|
@@ -3579,7 +3497,7 @@ var UploadImage = ({
|
|
|
3579
3497
|
overflow: "hidden"
|
|
3580
3498
|
}
|
|
3581
3499
|
},
|
|
3582
|
-
selectedImage ? /* @__PURE__ */
|
|
3500
|
+
selectedImage ? /* @__PURE__ */ React25.createElement(
|
|
3583
3501
|
Image3,
|
|
3584
3502
|
{
|
|
3585
3503
|
src: selectedImage,
|
|
@@ -3587,13 +3505,13 @@ var UploadImage = ({
|
|
|
3587
3505
|
fill: true,
|
|
3588
3506
|
objectFit: imageFit
|
|
3589
3507
|
}
|
|
3590
|
-
) : /* @__PURE__ */
|
|
3508
|
+
) : /* @__PURE__ */ React25.createElement(
|
|
3591
3509
|
Stack5,
|
|
3592
3510
|
{
|
|
3593
3511
|
spacing: allowGallery ? 2 : 0,
|
|
3594
3512
|
sx: { pt: allowGallery ? 2 : 0 }
|
|
3595
3513
|
},
|
|
3596
|
-
/* @__PURE__ */
|
|
3514
|
+
/* @__PURE__ */ React25.createElement(
|
|
3597
3515
|
Box17,
|
|
3598
3516
|
{
|
|
3599
3517
|
sx: {
|
|
@@ -3603,31 +3521,31 @@ var UploadImage = ({
|
|
|
3603
3521
|
gap: 1.5
|
|
3604
3522
|
}
|
|
3605
3523
|
},
|
|
3606
|
-
/* @__PURE__ */
|
|
3524
|
+
/* @__PURE__ */ React25.createElement(Box17, { sx: { paddingBottom: "0.5rem" } }, /* @__PURE__ */ React25.createElement(GrUpload, null)),
|
|
3607
3525
|
placeholder
|
|
3608
3526
|
),
|
|
3609
|
-
allowGallery && /* @__PURE__ */
|
|
3527
|
+
allowGallery && /* @__PURE__ */ React25.createElement(Stack5, { spacing: 1.5 }, /* @__PURE__ */ React25.createElement(
|
|
3610
3528
|
Button11,
|
|
3611
3529
|
{
|
|
3612
3530
|
sx: { width: "9rem" },
|
|
3613
3531
|
variant: "outlined",
|
|
3614
3532
|
color: "info",
|
|
3615
|
-
startIcon: /* @__PURE__ */
|
|
3533
|
+
startIcon: /* @__PURE__ */ React25.createElement(MdOutlineCameraAlt, { size: 16 }),
|
|
3616
3534
|
onClick: () => document.getElementById("camera-upload")?.click()
|
|
3617
3535
|
},
|
|
3618
3536
|
"\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u0627\u0632 \u062F\u0648\u0631\u0628\u06CC\u0646"
|
|
3619
|
-
), /* @__PURE__ */
|
|
3537
|
+
), /* @__PURE__ */ React25.createElement(
|
|
3620
3538
|
Button11,
|
|
3621
3539
|
{
|
|
3622
3540
|
sx: { width: "9rem" },
|
|
3623
3541
|
variant: "outlined",
|
|
3624
3542
|
color: "info",
|
|
3625
|
-
startIcon: /* @__PURE__ */
|
|
3543
|
+
startIcon: /* @__PURE__ */ React25.createElement(GrGallery, { size: 16 }),
|
|
3626
3544
|
onClick: () => document.getElementById("gallery-upload")?.click()
|
|
3627
3545
|
},
|
|
3628
3546
|
"\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u0627\u0632 \u06AF\u0627\u0644\u0631\u06CC"
|
|
3629
3547
|
)),
|
|
3630
|
-
!allowGallery && /* @__PURE__ */
|
|
3548
|
+
!allowGallery && /* @__PURE__ */ React25.createElement(
|
|
3631
3549
|
"input",
|
|
3632
3550
|
{
|
|
3633
3551
|
id: "file-upload",
|
|
@@ -3642,7 +3560,7 @@ var UploadImage = ({
|
|
|
3642
3560
|
}
|
|
3643
3561
|
)
|
|
3644
3562
|
)
|
|
3645
|
-
), /* @__PURE__ */
|
|
3563
|
+
), /* @__PURE__ */ React25.createElement(
|
|
3646
3564
|
"input",
|
|
3647
3565
|
{
|
|
3648
3566
|
id: "gallery-upload",
|
|
@@ -3654,7 +3572,7 @@ var UploadImage = ({
|
|
|
3654
3572
|
},
|
|
3655
3573
|
style: { display: "none" }
|
|
3656
3574
|
}
|
|
3657
|
-
), /* @__PURE__ */
|
|
3575
|
+
), /* @__PURE__ */ React25.createElement(
|
|
3658
3576
|
"input",
|
|
3659
3577
|
{
|
|
3660
3578
|
id: "camera-upload",
|
|
@@ -3667,12 +3585,12 @@ var UploadImage = ({
|
|
|
3667
3585
|
},
|
|
3668
3586
|
style: { display: "none" }
|
|
3669
3587
|
}
|
|
3670
|
-
), selectedImage && /* @__PURE__ */
|
|
3588
|
+
), selectedImage && /* @__PURE__ */ React25.createElement(
|
|
3671
3589
|
Box17,
|
|
3672
3590
|
{
|
|
3673
3591
|
sx: { display: "flex", justifyContent: "center", marginTop: 2 }
|
|
3674
3592
|
},
|
|
3675
|
-
/* @__PURE__ */
|
|
3593
|
+
/* @__PURE__ */ React25.createElement(
|
|
3676
3594
|
Button11,
|
|
3677
3595
|
{
|
|
3678
3596
|
onClick: () => {
|
|
@@ -3692,7 +3610,7 @@ var UploadImage = ({
|
|
|
3692
3610
|
},
|
|
3693
3611
|
"\u062D\u0630\u0641 \u062A\u0635\u0648\u06CC\u0631"
|
|
3694
3612
|
)
|
|
3695
|
-
), errors[name] && /* @__PURE__ */
|
|
3613
|
+
), errors[name] && /* @__PURE__ */ React25.createElement(Typography12, { color: "error", variant: "body2", sx: { mt: 1.5, ml: 1 } }, String(errors[name]?.message || "")))
|
|
3696
3614
|
}
|
|
3697
3615
|
);
|
|
3698
3616
|
};
|
|
@@ -3784,7 +3702,6 @@ export {
|
|
|
3784
3702
|
text_type_default as FormInputText,
|
|
3785
3703
|
HorizontalStepper,
|
|
3786
3704
|
LicensePlate,
|
|
3787
|
-
Loading,
|
|
3788
3705
|
mobile_date_time_picker_default as MobileDateTimePicker,
|
|
3789
3706
|
ConfirmationDialog2 as Modal,
|
|
3790
3707
|
selector_default as NestedSelectort,
|