@mertcankocak/core-project 1.6.0 → 1.8.0
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/FormikAGGrid/ExcelExportButton.d.ts +34 -0
- package/dist/components/FormikAGGrid/ExcelExportButton.d.ts.map +1 -0
- package/dist/components/FormikAGGrid/FormikAGGrid.d.ts +85 -0
- package/dist/components/FormikAGGrid/FormikAGGrid.d.ts.map +1 -0
- package/dist/components/FormikAGGrid/index.d.ts +6 -0
- package/dist/components/FormikAGGrid/index.d.ts.map +1 -0
- package/dist/components/FormikAGGrid/types.d.ts +68 -0
- package/dist/components/FormikAGGrid/types.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/core-project.es.js +1535 -1132
- package/dist/core-project.umd.js +10 -10
- package/dist/style.css +1 -0
- package/package.json +9 -5
package/dist/core-project.es.js
CHANGED
|
@@ -1,259 +1,260 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { fileTypeFromBuffer as
|
|
3
|
-
import
|
|
4
|
-
import { useField as
|
|
5
|
-
import { InputAdornment as
|
|
6
|
-
import { VisibilityOff as
|
|
7
|
-
import { debounce as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as fe from "yup";
|
|
2
|
+
import { fileTypeFromBuffer as br } from "file-type";
|
|
3
|
+
import Ze, { forwardRef as Ce, useState as he, useRef as Wr, useEffect as Oe, useCallback as M, useMemo as te, createElement as Xe } from "react";
|
|
4
|
+
import { useField as De } from "formik";
|
|
5
|
+
import { InputAdornment as Ke, IconButton as Ne, Autocomplete as Qe, TextField as Me, CircularProgress as Kr, FormControl as Le, InputLabel as Er, Select as jr, MenuItem as Ee, FormHelperText as qe, Box as ce, Chip as He, OutlinedInput as Xr, Paper as Hr, Typography as be, FormLabel as kr, RadioGroup as Jr, FormControlLabel as Rr, Radio as Zr, FormGroup as Qr, Checkbox as et, Button as ze, Toolbar as dr, Menu as mr, ListItemIcon as Be, ListItemText as Fe } from "@mui/material";
|
|
6
|
+
import { VisibilityOff as rt, Visibility as Cr, Image as tt, PictureAsPdf as nt, Description as it, InsertDriveFile as at, Delete as hr, CloudUpload as st, FileDownload as lt, Refresh as pr, ViewColumn as ot, DensityMedium as gr, DensitySmall as ut, DensityLarge as ct } from "@mui/icons-material";
|
|
7
|
+
import { debounce as ft } from "lodash";
|
|
8
|
+
import { AgGridReact as dt } from "ag-grid-react";
|
|
9
|
+
const Dr = /^[0-9]{11}$/;
|
|
10
|
+
function mt(t) {
|
|
11
|
+
if (!Dr.test(t))
|
|
11
12
|
return !1;
|
|
12
|
-
const
|
|
13
|
-
return !(
|
|
13
|
+
const i = t.split("").map(Number);
|
|
14
|
+
return !(i[0] === 0 || i.slice(0, 9).reduce((u, n) => u + n, 0) % 10 !== i[9] || i.slice(0, 10).reduce((u, n) => u + n, 0) % 10 !== i[10]);
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function rn(t) {
|
|
16
17
|
const {
|
|
17
|
-
required:
|
|
18
|
+
required: i = !1,
|
|
18
19
|
message: r = "Geçerli bir T.C. kimlik numarası giriniz",
|
|
19
20
|
requiredMessage: o = "T.C. kimlik numarası zorunludur",
|
|
20
|
-
name:
|
|
21
|
+
name: u = "tcKimlikNo"
|
|
21
22
|
} = t || {};
|
|
22
|
-
let
|
|
23
|
-
return
|
|
24
|
-
|
|
23
|
+
let n = fe.string();
|
|
24
|
+
return i && (n = n.required(o)), n = n.matches(
|
|
25
|
+
Dr,
|
|
25
26
|
"T.C. kimlik numarası 11 haneli olmalıdır"
|
|
26
|
-
),
|
|
27
|
-
name:
|
|
27
|
+
), n = n.test({
|
|
28
|
+
name: u,
|
|
28
29
|
message: r,
|
|
29
30
|
test(a) {
|
|
30
|
-
return !
|
|
31
|
+
return !i && (!a || a.trim() === "") ? !0 : i && !a || !a || typeof a != "string" ? !1 : mt(a);
|
|
31
32
|
}
|
|
32
|
-
}),
|
|
33
|
+
}), n;
|
|
33
34
|
}
|
|
34
|
-
const
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
const ht = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
36
|
+
function pt(t) {
|
|
37
|
+
return ht.test(t);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function tn(t) {
|
|
39
40
|
const {
|
|
40
|
-
required:
|
|
41
|
+
required: i = !1,
|
|
41
42
|
message: r = "Geçerli bir email adresi giriniz",
|
|
42
43
|
requiredMessage: o = "Email zorunludur",
|
|
43
|
-
name:
|
|
44
|
+
name: u = "email"
|
|
44
45
|
} = t || {};
|
|
45
|
-
let
|
|
46
|
-
return
|
|
47
|
-
name:
|
|
46
|
+
let n = fe.string();
|
|
47
|
+
return i && (n = n.required(o)), n = n.email(r).test({
|
|
48
|
+
name: u,
|
|
48
49
|
message: r,
|
|
49
50
|
test(a) {
|
|
50
|
-
return !
|
|
51
|
+
return !i && (!a || a.trim() === "") ? !0 : i && !a || !a || typeof a != "string" ? !1 : pt(a);
|
|
51
52
|
}
|
|
52
|
-
}),
|
|
53
|
+
}), n;
|
|
53
54
|
}
|
|
54
|
-
const
|
|
55
|
-
function
|
|
56
|
-
const
|
|
57
|
-
return
|
|
55
|
+
const gt = /^(\+90\s?)?(0?5\d{2})\s?(\d{3})\s?(\d{2})\s?(\d{2})$/;
|
|
56
|
+
function vt(t) {
|
|
57
|
+
const i = t.replace(/\s+/g, "").replace(/[-\+()]/g, "");
|
|
58
|
+
return i.length !== 10 && i.length !== 11 || !i.match(/^(0?5\d{9})$/) ? !1 : gt.test(t) || /^0?5\d{9}$/.test(i);
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function nn(t) {
|
|
60
61
|
const {
|
|
61
|
-
required:
|
|
62
|
+
required: i = !1,
|
|
62
63
|
message: r = "Geçerli bir telefon numarası giriniz (05XX XXX XX XX)",
|
|
63
64
|
requiredMessage: o = "Telefon numarası zorunludur",
|
|
64
|
-
name:
|
|
65
|
+
name: u = "phone"
|
|
65
66
|
} = t || {};
|
|
66
|
-
let
|
|
67
|
-
return
|
|
68
|
-
name:
|
|
67
|
+
let n = fe.string();
|
|
68
|
+
return i && (n = n.required(o)), n = n.test({
|
|
69
|
+
name: u,
|
|
69
70
|
message: r,
|
|
70
71
|
test(a) {
|
|
71
|
-
return !
|
|
72
|
+
return !i && (!a || a.trim() === "") ? !0 : i && !a || !a || typeof a != "string" ? !1 : vt(a);
|
|
72
73
|
}
|
|
73
|
-
}),
|
|
74
|
+
}), n;
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function an(t, i) {
|
|
76
77
|
const {
|
|
77
78
|
minLength: r = 8,
|
|
78
79
|
requireUppercase: o = !0,
|
|
79
|
-
requireLowercase:
|
|
80
|
-
requireNumber:
|
|
80
|
+
requireLowercase: u = !0,
|
|
81
|
+
requireNumber: n = !0,
|
|
81
82
|
requireSpecialChar: a = !0
|
|
82
|
-
} =
|
|
83
|
-
return t.length < r && f.push(`Şifre en az ${r} karakter olmalıdır`), o && !/[A-Z]/.test(t) && f.push("Şifre en az bir büyük harf içermelidir"),
|
|
83
|
+
} = i || {}, f = [];
|
|
84
|
+
return t.length < r && f.push(`Şifre en az ${r} karakter olmalıdır`), o && !/[A-Z]/.test(t) && f.push("Şifre en az bir büyük harf içermelidir"), u && !/[a-z]/.test(t) && f.push("Şifre en az bir küçük harf içermelidir"), n && !/\d/.test(t) && f.push("Şifre en az bir rakam içermelidir"), a && !/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(t) && f.push("Şifre en az bir özel karakter içermelidir"), {
|
|
84
85
|
isValid: f.length === 0,
|
|
85
86
|
errors: f
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function sn(t) {
|
|
89
90
|
const {
|
|
90
|
-
required:
|
|
91
|
+
required: i = !1,
|
|
91
92
|
requiredMessage: r = "Şifre zorunludur",
|
|
92
93
|
minLength: o = 8,
|
|
93
|
-
requireUppercase:
|
|
94
|
-
requireLowercase:
|
|
94
|
+
requireUppercase: u = !0,
|
|
95
|
+
requireLowercase: n = !0,
|
|
95
96
|
requireNumber: a = !0,
|
|
96
97
|
requireSpecialChar: f = !0,
|
|
97
98
|
minLengthMessage: h = `Şifre en az ${o} karakter olmalıdır`,
|
|
98
|
-
uppercaseMessage:
|
|
99
|
-
lowercaseMessage:
|
|
100
|
-
numberMessage:
|
|
101
|
-
specialCharMessage:
|
|
99
|
+
uppercaseMessage: _ = "Şifre en az bir büyük harf içermelidir",
|
|
100
|
+
lowercaseMessage: D = "Şifre en az bir küçük harf içermelidir",
|
|
101
|
+
numberMessage: p = "Şifre en az bir rakam içermelidir",
|
|
102
|
+
specialCharMessage: g = "Şifre en az bir özel karakter içermelidir"
|
|
102
103
|
} = t || {};
|
|
103
|
-
let
|
|
104
|
-
return
|
|
104
|
+
let m = fe.string();
|
|
105
|
+
return i && (m = m.required(r)), m = m.min(o, h), u && (m = m.matches(/[A-Z]/, _)), n && (m = m.matches(/[a-z]/, D)), a && (m = m.matches(/\d/, p)), f && (m = m.matches(
|
|
105
106
|
/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,
|
|
106
|
-
|
|
107
|
-
)),
|
|
107
|
+
g
|
|
108
|
+
)), m;
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
+
function ln(t, i) {
|
|
110
111
|
const {
|
|
111
112
|
required: r = !1,
|
|
112
113
|
message: o = "Şifreler eşleşmiyor",
|
|
113
|
-
requiredMessage:
|
|
114
|
-
} =
|
|
115
|
-
let
|
|
116
|
-
return r && (
|
|
114
|
+
requiredMessage: u = "Şifre tekrarı zorunludur"
|
|
115
|
+
} = i || {};
|
|
116
|
+
let n = fe.string();
|
|
117
|
+
return r && (n = n.required(u)), n = n.oneOf([fe.ref(t)], o), n;
|
|
117
118
|
}
|
|
118
|
-
const
|
|
119
|
-
function
|
|
120
|
-
return !t || t.trim().length === 0 || t.trim().length < 2 ? !1 :
|
|
119
|
+
const _r = /^[a-zA-ZçğıöşüÇĞIİÖŞÜ\s]+$/;
|
|
120
|
+
function yt(t) {
|
|
121
|
+
return !t || t.trim().length === 0 || t.trim().length < 2 ? !1 : _r.test(t);
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
+
function on(t) {
|
|
123
124
|
const {
|
|
124
|
-
required:
|
|
125
|
+
required: i = !1,
|
|
125
126
|
message: r = "İsim sadece harf içermelidir",
|
|
126
127
|
requiredMessage: o = "İsim zorunludur",
|
|
127
|
-
name:
|
|
128
|
+
name: u = "name"
|
|
128
129
|
} = t || {};
|
|
129
|
-
let
|
|
130
|
-
return
|
|
131
|
-
name:
|
|
130
|
+
let n = fe.string();
|
|
131
|
+
return i && (n = n.required(o)), n = n.min(2, "İsim en az 2 karakter olmalıdır").matches(_r, r).test({
|
|
132
|
+
name: u,
|
|
132
133
|
message: r,
|
|
133
134
|
test(a) {
|
|
134
|
-
return !
|
|
135
|
+
return !i && (!a || a.trim() === "") ? !0 : i && !a || !a || typeof a != "string" ? !1 : yt(a);
|
|
135
136
|
}
|
|
136
|
-
}),
|
|
137
|
+
}), n;
|
|
137
138
|
}
|
|
138
|
-
const
|
|
139
|
-
function
|
|
140
|
-
const
|
|
141
|
-
if (!
|
|
139
|
+
const xt = /^TR\d{2}[0-9A-Z]{4}\d{1}[0-9A-Z]{15,30}$/i;
|
|
140
|
+
function bt(t) {
|
|
141
|
+
const i = t.replace(/\s+/g, "").toUpperCase();
|
|
142
|
+
if (!xt.test(i))
|
|
142
143
|
return !1;
|
|
143
|
-
const o = (
|
|
144
|
-
const a =
|
|
145
|
-
return a >= 65 && a <= 90 ? a - 55 :
|
|
144
|
+
const o = (i.slice(4) + i.slice(0, 4)).split("").map((n) => {
|
|
145
|
+
const a = n.charCodeAt(0);
|
|
146
|
+
return a >= 65 && a <= 90 ? a - 55 : n;
|
|
146
147
|
}).join("");
|
|
147
148
|
return BigInt(o) % BigInt(97) === BigInt(1);
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function un(t) {
|
|
150
151
|
const {
|
|
151
|
-
required:
|
|
152
|
+
required: i = !1,
|
|
152
153
|
message: r = "Geçerli bir IBAN numarası giriniz",
|
|
153
154
|
requiredMessage: o = "IBAN zorunludur",
|
|
154
|
-
name:
|
|
155
|
+
name: u = "iban"
|
|
155
156
|
} = t || {};
|
|
156
|
-
let
|
|
157
|
-
return
|
|
158
|
-
name:
|
|
157
|
+
let n = fe.string();
|
|
158
|
+
return i && (n = n.required(o)), n = n.test({
|
|
159
|
+
name: u,
|
|
159
160
|
message: r,
|
|
160
161
|
test(a) {
|
|
161
|
-
return !
|
|
162
|
+
return !i && (!a || a.trim() === "") ? !0 : i && !a || !a || typeof a != "string" ? !1 : bt(a);
|
|
162
163
|
}
|
|
163
|
-
}),
|
|
164
|
+
}), n;
|
|
164
165
|
}
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
const
|
|
168
|
-
if (!
|
|
166
|
+
const Et = /^\d{13,19}$/;
|
|
167
|
+
function jt(t) {
|
|
168
|
+
const i = t.replace(/\s+/g, "").replace(/-/g, "");
|
|
169
|
+
if (!Et.test(i))
|
|
169
170
|
return !1;
|
|
170
171
|
let r = 0, o = !1;
|
|
171
|
-
for (let
|
|
172
|
-
let
|
|
173
|
-
o && (
|
|
172
|
+
for (let u = i.length - 1; u >= 0; u--) {
|
|
173
|
+
let n = parseInt(i[u], 10);
|
|
174
|
+
o && (n *= 2, n > 9 && (n -= 9)), r += n, o = !o;
|
|
174
175
|
}
|
|
175
176
|
return r % 10 === 0;
|
|
176
177
|
}
|
|
177
|
-
function
|
|
178
|
+
function cn(t) {
|
|
178
179
|
const {
|
|
179
|
-
required:
|
|
180
|
+
required: i = !1,
|
|
180
181
|
message: r = "Geçerli bir kredi kartı numarası giriniz",
|
|
181
182
|
requiredMessage: o = "Kredi kartı numarası zorunludur",
|
|
182
|
-
name:
|
|
183
|
+
name: u = "creditCard"
|
|
183
184
|
} = t || {};
|
|
184
|
-
let
|
|
185
|
-
return
|
|
186
|
-
name:
|
|
185
|
+
let n = fe.string();
|
|
186
|
+
return i && (n = n.required(o)), n = n.test({
|
|
187
|
+
name: u,
|
|
187
188
|
message: r,
|
|
188
189
|
test(a) {
|
|
189
|
-
return !
|
|
190
|
+
return !i && (!a || a.trim() === "") ? !0 : i && !a || !a || typeof a != "string" ? !1 : jt(a);
|
|
190
191
|
}
|
|
191
|
-
}),
|
|
192
|
+
}), n;
|
|
192
193
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
if (!
|
|
194
|
+
const kt = /^\d{10}$/;
|
|
195
|
+
function Rt(t) {
|
|
196
|
+
if (!kt.test(t))
|
|
196
197
|
return !1;
|
|
197
|
-
const
|
|
198
|
-
return
|
|
198
|
+
const i = t.split("").map(Number);
|
|
199
|
+
return i.slice(0, 9).reduce((u, n, a) => {
|
|
199
200
|
const f = (a + 1) % 9 || 9;
|
|
200
|
-
return
|
|
201
|
-
}, 0) % 11 % 10 ===
|
|
201
|
+
return u + n * f;
|
|
202
|
+
}, 0) % 11 % 10 === i[9];
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
+
function fn(t) {
|
|
204
205
|
const {
|
|
205
|
-
required:
|
|
206
|
+
required: i = !1,
|
|
206
207
|
message: r = "Geçerli bir VKN (Vergi Kimlik Numarası) giriniz",
|
|
207
208
|
requiredMessage: o = "VKN zorunludur",
|
|
208
|
-
name:
|
|
209
|
+
name: u = "vkn"
|
|
209
210
|
} = t || {};
|
|
210
|
-
let
|
|
211
|
-
return
|
|
212
|
-
name:
|
|
211
|
+
let n = fe.string();
|
|
212
|
+
return i && (n = n.required(o)), n = n.test({
|
|
213
|
+
name: u,
|
|
213
214
|
message: r,
|
|
214
215
|
test(a) {
|
|
215
|
-
return !
|
|
216
|
+
return !i && (!a || a.trim() === "") ? !0 : i && !a || !a || typeof a != "string" ? !1 : Rt(a);
|
|
216
217
|
}
|
|
217
|
-
}),
|
|
218
|
+
}), n;
|
|
218
219
|
}
|
|
219
|
-
const
|
|
220
|
-
function
|
|
221
|
-
const
|
|
222
|
-
if (!
|
|
220
|
+
const vr = /^(\d{2})\s?([A-ZÇĞIİÖŞÜ]{1,3})\s?(\d{2,4})$/i;
|
|
221
|
+
function Ct(t) {
|
|
222
|
+
const i = t.replace(/\s+/g, " ").trim().toUpperCase();
|
|
223
|
+
if (!vr.test(i))
|
|
223
224
|
return !1;
|
|
224
|
-
const r =
|
|
225
|
+
const r = i.match(vr);
|
|
225
226
|
if (!r)
|
|
226
227
|
return !1;
|
|
227
|
-
const [, o,
|
|
228
|
-
return !(a < 1 || a > 81 ||
|
|
228
|
+
const [, o, u, n] = r, a = parseInt(o, 10);
|
|
229
|
+
return !(a < 1 || a > 81 || u.length < 1 || u.length > 3 || n.length < 2 || n.length > 4);
|
|
229
230
|
}
|
|
230
|
-
function
|
|
231
|
+
function dn(t) {
|
|
231
232
|
const {
|
|
232
|
-
required:
|
|
233
|
+
required: i = !1,
|
|
233
234
|
message: r = "Geçerli bir araç plakası giriniz (örn: 34 ABC 123)",
|
|
234
235
|
requiredMessage: o = "Araç plakası zorunludur",
|
|
235
|
-
name:
|
|
236
|
+
name: u = "plate"
|
|
236
237
|
} = t || {};
|
|
237
|
-
let
|
|
238
|
-
return
|
|
239
|
-
name:
|
|
238
|
+
let n = fe.string();
|
|
239
|
+
return i && (n = n.required(o)), n = n.test({
|
|
240
|
+
name: u,
|
|
240
241
|
message: r,
|
|
241
242
|
test(a) {
|
|
242
|
-
return !
|
|
243
|
+
return !i && (!a || a.trim() === "") ? !0 : i && !a || !a || typeof a != "string" ? !1 : Ct(a);
|
|
243
244
|
}
|
|
244
|
-
}),
|
|
245
|
+
}), n;
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
-
const
|
|
248
|
-
return
|
|
247
|
+
function Ve(t) {
|
|
248
|
+
const i = t.split(".");
|
|
249
|
+
return i.length > 1 ? i[i.length - 1].toLowerCase() : "";
|
|
249
250
|
}
|
|
250
|
-
async function
|
|
251
|
+
async function mn(t, i) {
|
|
251
252
|
const {
|
|
252
253
|
maxSize: r,
|
|
253
254
|
minSize: o,
|
|
254
|
-
allowedExtensions:
|
|
255
|
-
allowedMimeTypes:
|
|
256
|
-
} =
|
|
255
|
+
allowedExtensions: u = [],
|
|
256
|
+
allowedMimeTypes: n = []
|
|
257
|
+
} = i || {}, a = [];
|
|
257
258
|
if (r && t.size > r) {
|
|
258
259
|
const f = (r / 1048576).toFixed(2);
|
|
259
260
|
a.push(`Dosya boyutu en fazla ${f} MB olmalıdır`);
|
|
@@ -262,19 +263,19 @@ async function Zt(t, n) {
|
|
|
262
263
|
const f = (o / 1048576).toFixed(2);
|
|
263
264
|
a.push(`Dosya boyutu en az ${f} MB olmalıdır`);
|
|
264
265
|
}
|
|
265
|
-
if (
|
|
266
|
+
if (u.length > 0 && n.length === 0 && console.warn(
|
|
266
267
|
"⚠️ UYARI: Sadece dosya uzantısı kontrolü yapılıyor. Güvenlik için 'allowedMimeTypes' parametresini kullanarak magic bytes kontrolü yapmanız önerilir."
|
|
267
|
-
),
|
|
268
|
-
const f =
|
|
269
|
-
|
|
270
|
-
`İzin verilen dosya uzantıları: ${
|
|
268
|
+
), u.length > 0 && t instanceof File) {
|
|
269
|
+
const f = Ve(t.name);
|
|
270
|
+
u.includes(f) || a.push(
|
|
271
|
+
`İzin verilen dosya uzantıları: ${u.join(", ")}`
|
|
271
272
|
);
|
|
272
273
|
}
|
|
273
|
-
if (
|
|
274
|
+
if (n.length > 0)
|
|
274
275
|
try {
|
|
275
|
-
const f = await t.arrayBuffer(), h = new Uint8Array(f),
|
|
276
|
-
|
|
277
|
-
`Dosya tipi uyumsuz. Beklenen: ${
|
|
276
|
+
const f = await t.arrayBuffer(), h = new Uint8Array(f), _ = await br(h);
|
|
277
|
+
_ ? n.includes(_.mime) || a.push(
|
|
278
|
+
`Dosya tipi uyumsuz. Beklenen: ${n.join(", ")}, Tespit edilen: ${_.mime}. (Dosya uzantısı: ${t instanceof File ? Ve(t.name) : "bilinmiyor"})`
|
|
278
279
|
) : a.push(
|
|
279
280
|
"Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir."
|
|
280
281
|
);
|
|
@@ -286,60 +287,60 @@ async function Zt(t, n) {
|
|
|
286
287
|
errors: a
|
|
287
288
|
};
|
|
288
289
|
}
|
|
289
|
-
function
|
|
290
|
+
function hn(t) {
|
|
290
291
|
const {
|
|
291
|
-
required:
|
|
292
|
+
required: i = !1,
|
|
292
293
|
message: r = "Geçerli bir dosya seçiniz",
|
|
293
294
|
requiredMessage: o = "Dosya zorunludur",
|
|
294
|
-
name:
|
|
295
|
-
maxSize:
|
|
295
|
+
name: u = "file",
|
|
296
|
+
maxSize: n,
|
|
296
297
|
minSize: a,
|
|
297
298
|
allowedExtensions: f = [],
|
|
298
299
|
allowedMimeTypes: h = [],
|
|
299
|
-
sizeMessage:
|
|
300
|
-
extensionMessage:
|
|
300
|
+
sizeMessage: _,
|
|
301
|
+
extensionMessage: D
|
|
301
302
|
} = t || {};
|
|
302
|
-
let
|
|
303
|
-
return
|
|
304
|
-
name:
|
|
303
|
+
let p = fe.mixed();
|
|
304
|
+
return i && (p = p.required(o)), p = p.test({
|
|
305
|
+
name: u,
|
|
305
306
|
message: r || "Geçerli bir dosya seçiniz",
|
|
306
|
-
async test(
|
|
307
|
-
if (!
|
|
307
|
+
async test(g) {
|
|
308
|
+
if (!i && !g)
|
|
308
309
|
return !0;
|
|
309
|
-
if (
|
|
310
|
+
if (i && !g || !(g instanceof File))
|
|
310
311
|
return !1;
|
|
311
|
-
if (
|
|
312
|
-
const
|
|
312
|
+
if (n && g.size > n) {
|
|
313
|
+
const m = (n / 1048576).toFixed(2);
|
|
313
314
|
return this.createError({
|
|
314
|
-
message:
|
|
315
|
+
message: _ || `Dosya boyutu en fazla ${m} MB olmalıdır`
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
|
-
if (a &&
|
|
318
|
-
const
|
|
318
|
+
if (a && g.size < a) {
|
|
319
|
+
const m = (a / 1048576).toFixed(2);
|
|
319
320
|
return this.createError({
|
|
320
|
-
message:
|
|
321
|
+
message: _ || `Dosya boyutu en az ${m} MB olmalıdır`
|
|
321
322
|
});
|
|
322
323
|
}
|
|
323
324
|
if (f.length > 0) {
|
|
324
|
-
const
|
|
325
|
-
if (!f.includes(
|
|
325
|
+
const m = Ve(g.name);
|
|
326
|
+
if (!f.includes(m))
|
|
326
327
|
return this.createError({
|
|
327
|
-
message:
|
|
328
|
+
message: D || `İzin verilen dosya uzantıları: ${f.join(", ")}`
|
|
328
329
|
});
|
|
329
330
|
}
|
|
330
331
|
if (h.length > 0)
|
|
331
332
|
try {
|
|
332
|
-
const
|
|
333
|
-
if (!
|
|
333
|
+
const m = await g.arrayBuffer(), J = new Uint8Array(m), F = await br(J);
|
|
334
|
+
if (!F)
|
|
334
335
|
return this.createError({
|
|
335
336
|
message: "Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir."
|
|
336
337
|
});
|
|
337
|
-
if (!h.includes(
|
|
338
|
-
const Z =
|
|
338
|
+
if (!h.includes(F.mime)) {
|
|
339
|
+
const Z = Ve(g.name);
|
|
339
340
|
return this.createError({
|
|
340
341
|
message: `Dosya tipi uyumsuz. Beklenen: ${h.join(
|
|
341
342
|
", "
|
|
342
|
-
)}, Tespit edilen: ${
|
|
343
|
+
)}, Tespit edilen: ${F.mime}. (Dosya uzantısı: ${Z})`
|
|
343
344
|
});
|
|
344
345
|
}
|
|
345
346
|
} catch {
|
|
@@ -349,49 +350,49 @@ function Jt(t) {
|
|
|
349
350
|
}
|
|
350
351
|
return !0;
|
|
351
352
|
}
|
|
352
|
-
}),
|
|
353
|
+
}), p;
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
-
const { minDate: r, maxDate: o } =
|
|
356
|
-
if (isNaN(
|
|
355
|
+
function pn(t, i) {
|
|
356
|
+
const { minDate: r, maxDate: o } = i || {}, u = typeof t == "string" ? new Date(t) : t;
|
|
357
|
+
if (isNaN(u.getTime()))
|
|
357
358
|
return { isValid: !1, error: "Geçersiz tarih formatı" };
|
|
358
359
|
if (r) {
|
|
359
|
-
const
|
|
360
|
-
if (
|
|
360
|
+
const n = typeof r == "string" ? new Date(r) : r;
|
|
361
|
+
if (u < n)
|
|
361
362
|
return {
|
|
362
363
|
isValid: !1,
|
|
363
|
-
error: `Tarih ${
|
|
364
|
+
error: `Tarih ${n.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`
|
|
364
365
|
};
|
|
365
366
|
}
|
|
366
367
|
if (o) {
|
|
367
|
-
const
|
|
368
|
-
if (
|
|
368
|
+
const n = typeof o == "string" ? new Date(o) : o;
|
|
369
|
+
if (u > n)
|
|
369
370
|
return {
|
|
370
371
|
isValid: !1,
|
|
371
|
-
error: `Tarih ${
|
|
372
|
+
error: `Tarih ${n.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`
|
|
372
373
|
};
|
|
373
374
|
}
|
|
374
375
|
return { isValid: !0 };
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
+
function $r(t) {
|
|
377
378
|
const {
|
|
378
|
-
required:
|
|
379
|
+
required: i = !1,
|
|
379
380
|
requiredMessage: r = "Tarih zorunludur",
|
|
380
381
|
minDate: o,
|
|
381
|
-
maxDate:
|
|
382
|
-
minDateMessage:
|
|
382
|
+
maxDate: u,
|
|
383
|
+
minDateMessage: n,
|
|
383
384
|
maxDateMessage: a
|
|
384
385
|
} = t || {};
|
|
385
|
-
let f =
|
|
386
|
-
if (
|
|
386
|
+
let f = fe.date();
|
|
387
|
+
if (i && (f = f.required(r)), o) {
|
|
387
388
|
const h = typeof o == "string" ? new Date(o) : o;
|
|
388
389
|
f = f.min(
|
|
389
390
|
h,
|
|
390
|
-
|
|
391
|
+
n || `Tarih ${h.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`
|
|
391
392
|
);
|
|
392
393
|
}
|
|
393
|
-
if (
|
|
394
|
-
const h = typeof
|
|
394
|
+
if (u) {
|
|
395
|
+
const h = typeof u == "string" ? new Date(u) : u;
|
|
395
396
|
f = f.max(
|
|
396
397
|
h,
|
|
397
398
|
a || `Tarih ${h.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`
|
|
@@ -399,21 +400,21 @@ function gr(t) {
|
|
|
399
400
|
}
|
|
400
401
|
return f;
|
|
401
402
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
403
|
+
function gn(t) {
|
|
404
|
+
return $r({
|
|
404
405
|
...t,
|
|
405
406
|
maxDate: /* @__PURE__ */ new Date(),
|
|
406
407
|
maxDateMessage: (t == null ? void 0 : t.message) || "Tarih geçmiş bir tarih olmalıdır"
|
|
407
408
|
});
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
-
return
|
|
410
|
+
function vn(t) {
|
|
411
|
+
return $r({
|
|
411
412
|
...t,
|
|
412
413
|
minDate: /* @__PURE__ */ new Date(),
|
|
413
414
|
minDateMessage: (t == null ? void 0 : t.message) || "Tarih gelecek bir tarih olmalıdır"
|
|
414
415
|
});
|
|
415
416
|
}
|
|
416
|
-
var
|
|
417
|
+
var Je = { exports: {} }, Te = {};
|
|
417
418
|
/**
|
|
418
419
|
* @license React
|
|
419
420
|
* react-jsx-runtime.production.min.js
|
|
@@ -423,21 +424,21 @@ var qe = { exports: {} }, je = {};
|
|
|
423
424
|
* This source code is licensed under the MIT license found in the
|
|
424
425
|
* LICENSE file in the root directory of this source tree.
|
|
425
426
|
*/
|
|
426
|
-
var
|
|
427
|
-
function
|
|
428
|
-
if (
|
|
429
|
-
|
|
430
|
-
var t =
|
|
431
|
-
function a(f, h,
|
|
432
|
-
var
|
|
433
|
-
|
|
434
|
-
for (
|
|
435
|
-
if (f && f.defaultProps) for (
|
|
436
|
-
return { $$typeof:
|
|
427
|
+
var yr;
|
|
428
|
+
function Dt() {
|
|
429
|
+
if (yr) return Te;
|
|
430
|
+
yr = 1;
|
|
431
|
+
var t = Ze, i = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, u = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
432
|
+
function a(f, h, _) {
|
|
433
|
+
var D, p = {}, g = null, m = null;
|
|
434
|
+
_ !== void 0 && (g = "" + _), h.key !== void 0 && (g = "" + h.key), h.ref !== void 0 && (m = h.ref);
|
|
435
|
+
for (D in h) o.call(h, D) && !n.hasOwnProperty(D) && (p[D] = h[D]);
|
|
436
|
+
if (f && f.defaultProps) for (D in h = f.defaultProps, h) p[D] === void 0 && (p[D] = h[D]);
|
|
437
|
+
return { $$typeof: i, type: f, key: g, ref: m, props: p, _owner: u.current };
|
|
437
438
|
}
|
|
438
|
-
return
|
|
439
|
+
return Te.Fragment = r, Te.jsx = a, Te.jsxs = a, Te;
|
|
439
440
|
}
|
|
440
|
-
var
|
|
441
|
+
var Se = {};
|
|
441
442
|
/**
|
|
442
443
|
* @license React
|
|
443
444
|
* react-jsx-runtime.development.js
|
|
@@ -447,57 +448,57 @@ var Re = {};
|
|
|
447
448
|
* This source code is licensed under the MIT license found in the
|
|
448
449
|
* LICENSE file in the root directory of this source tree.
|
|
449
450
|
*/
|
|
450
|
-
var
|
|
451
|
-
function
|
|
452
|
-
return
|
|
453
|
-
var t =
|
|
451
|
+
var xr;
|
|
452
|
+
function _t() {
|
|
453
|
+
return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
454
|
+
var t = Ze, i = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), J = Symbol.iterator, F = "@@iterator";
|
|
454
455
|
function Z(e) {
|
|
455
456
|
if (e === null || typeof e != "object")
|
|
456
457
|
return null;
|
|
457
|
-
var
|
|
458
|
-
return typeof
|
|
458
|
+
var l = J && e[J] || e[F];
|
|
459
|
+
return typeof l == "function" ? l : null;
|
|
459
460
|
}
|
|
460
|
-
var
|
|
461
|
-
function
|
|
461
|
+
var Y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
462
|
+
function y(e) {
|
|
462
463
|
{
|
|
463
|
-
for (var
|
|
464
|
-
c[
|
|
465
|
-
|
|
464
|
+
for (var l = arguments.length, c = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
465
|
+
c[v - 1] = arguments[v];
|
|
466
|
+
$("error", e, c);
|
|
466
467
|
}
|
|
467
468
|
}
|
|
468
|
-
function
|
|
469
|
+
function $(e, l, c) {
|
|
469
470
|
{
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
var
|
|
473
|
-
return String(
|
|
471
|
+
var v = Y.ReactDebugCurrentFrame, N = v.getStackAddendum();
|
|
472
|
+
N !== "" && (l += "%s", c = c.concat([N]));
|
|
473
|
+
var U = c.map(function(P) {
|
|
474
|
+
return String(P);
|
|
474
475
|
});
|
|
475
|
-
|
|
476
|
+
U.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, U);
|
|
476
477
|
}
|
|
477
478
|
}
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
function
|
|
481
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e ===
|
|
479
|
+
var V = !1, w = !1, L = !1, I = !1, j = !1, C;
|
|
480
|
+
C = Symbol.for("react.module.reference");
|
|
481
|
+
function O(e) {
|
|
482
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === n || j || e === u || e === _ || e === D || I || e === m || V || w || L || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === p || e.$$typeof === a || e.$$typeof === f || e.$$typeof === h || // This needs to include all possible module reference object
|
|
482
483
|
// types supported by any Flight configuration anywhere since
|
|
483
484
|
// we don't know which Flight build this will end up being used
|
|
484
485
|
// with.
|
|
485
|
-
e.$$typeof ===
|
|
486
|
+
e.$$typeof === C || e.getModuleId !== void 0));
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
-
var
|
|
489
|
-
if (
|
|
490
|
-
return
|
|
491
|
-
var
|
|
492
|
-
return
|
|
488
|
+
function Q(e, l, c) {
|
|
489
|
+
var v = e.displayName;
|
|
490
|
+
if (v)
|
|
491
|
+
return v;
|
|
492
|
+
var N = l.displayName || l.name || "";
|
|
493
|
+
return N !== "" ? c + "(" + N + ")" : c;
|
|
493
494
|
}
|
|
494
|
-
function
|
|
495
|
+
function B(e) {
|
|
495
496
|
return e.displayName || "Context";
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function q(e) {
|
|
498
499
|
if (e == null)
|
|
499
500
|
return null;
|
|
500
|
-
if (typeof e.tag == "number" &&
|
|
501
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
501
502
|
return e.displayName || e.name || null;
|
|
502
503
|
if (typeof e == "string")
|
|
503
504
|
return e;
|
|
@@ -506,32 +507,32 @@ function pt() {
|
|
|
506
507
|
return "Fragment";
|
|
507
508
|
case r:
|
|
508
509
|
return "Portal";
|
|
509
|
-
case
|
|
510
|
+
case n:
|
|
510
511
|
return "Profiler";
|
|
511
|
-
case
|
|
512
|
+
case u:
|
|
512
513
|
return "StrictMode";
|
|
513
|
-
case
|
|
514
|
+
case _:
|
|
514
515
|
return "Suspense";
|
|
515
|
-
case
|
|
516
|
+
case D:
|
|
516
517
|
return "SuspenseList";
|
|
517
518
|
}
|
|
518
519
|
if (typeof e == "object")
|
|
519
520
|
switch (e.$$typeof) {
|
|
520
521
|
case f:
|
|
521
|
-
var
|
|
522
|
-
return
|
|
522
|
+
var l = e;
|
|
523
|
+
return B(l) + ".Consumer";
|
|
523
524
|
case a:
|
|
524
525
|
var c = e;
|
|
525
|
-
return
|
|
526
|
+
return B(c._context) + ".Provider";
|
|
526
527
|
case h:
|
|
527
|
-
return
|
|
528
|
-
case
|
|
529
|
-
var
|
|
530
|
-
return
|
|
531
|
-
case
|
|
532
|
-
var
|
|
528
|
+
return Q(e, e.render, "ForwardRef");
|
|
529
|
+
case p:
|
|
530
|
+
var v = e.displayName || null;
|
|
531
|
+
return v !== null ? v : q(e.type) || "Memo";
|
|
532
|
+
case g: {
|
|
533
|
+
var N = e, U = N._payload, P = N._init;
|
|
533
534
|
try {
|
|
534
|
-
return
|
|
535
|
+
return q(P(U));
|
|
535
536
|
} catch {
|
|
536
537
|
return null;
|
|
537
538
|
}
|
|
@@ -539,18 +540,18 @@ function pt() {
|
|
|
539
540
|
}
|
|
540
541
|
return null;
|
|
541
542
|
}
|
|
542
|
-
var
|
|
543
|
-
function
|
|
543
|
+
var b = Object.assign, k = 0, x, T, A, W, me, R, pe;
|
|
544
|
+
function oe() {
|
|
544
545
|
}
|
|
545
|
-
|
|
546
|
+
oe.__reactDisabledLog = !0;
|
|
546
547
|
function d() {
|
|
547
548
|
{
|
|
548
|
-
if (
|
|
549
|
-
|
|
549
|
+
if (k === 0) {
|
|
550
|
+
x = console.log, T = console.info, A = console.warn, W = console.error, me = console.group, R = console.groupCollapsed, pe = console.groupEnd;
|
|
550
551
|
var e = {
|
|
551
552
|
configurable: !0,
|
|
552
553
|
enumerable: !0,
|
|
553
|
-
value:
|
|
554
|
+
value: oe,
|
|
554
555
|
writable: !0
|
|
555
556
|
};
|
|
556
557
|
Object.defineProperties(console, {
|
|
@@ -563,250 +564,250 @@ function pt() {
|
|
|
563
564
|
groupEnd: e
|
|
564
565
|
});
|
|
565
566
|
}
|
|
566
|
-
|
|
567
|
+
k++;
|
|
567
568
|
}
|
|
568
569
|
}
|
|
569
|
-
function
|
|
570
|
+
function z() {
|
|
570
571
|
{
|
|
571
|
-
if (
|
|
572
|
+
if (k--, k === 0) {
|
|
572
573
|
var e = {
|
|
573
574
|
configurable: !0,
|
|
574
575
|
enumerable: !0,
|
|
575
576
|
writable: !0
|
|
576
577
|
};
|
|
577
578
|
Object.defineProperties(console, {
|
|
578
|
-
log:
|
|
579
|
-
value:
|
|
579
|
+
log: b({}, e, {
|
|
580
|
+
value: x
|
|
580
581
|
}),
|
|
581
|
-
info:
|
|
582
|
+
info: b({}, e, {
|
|
582
583
|
value: T
|
|
583
584
|
}),
|
|
584
|
-
warn:
|
|
585
|
+
warn: b({}, e, {
|
|
585
586
|
value: A
|
|
586
587
|
}),
|
|
587
|
-
error:
|
|
588
|
-
value:
|
|
588
|
+
error: b({}, e, {
|
|
589
|
+
value: W
|
|
589
590
|
}),
|
|
590
|
-
group:
|
|
591
|
-
value:
|
|
591
|
+
group: b({}, e, {
|
|
592
|
+
value: me
|
|
592
593
|
}),
|
|
593
|
-
groupCollapsed:
|
|
594
|
-
value:
|
|
594
|
+
groupCollapsed: b({}, e, {
|
|
595
|
+
value: R
|
|
595
596
|
}),
|
|
596
|
-
groupEnd:
|
|
597
|
-
value:
|
|
597
|
+
groupEnd: b({}, e, {
|
|
598
|
+
value: pe
|
|
598
599
|
})
|
|
599
600
|
});
|
|
600
601
|
}
|
|
601
|
-
|
|
602
|
+
k < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
602
603
|
}
|
|
603
604
|
}
|
|
604
|
-
var
|
|
605
|
-
function
|
|
605
|
+
var H = Y.ReactCurrentDispatcher, ne;
|
|
606
|
+
function ue(e, l, c) {
|
|
606
607
|
{
|
|
607
|
-
if (
|
|
608
|
+
if (ne === void 0)
|
|
608
609
|
try {
|
|
609
610
|
throw Error();
|
|
610
|
-
} catch (
|
|
611
|
-
var
|
|
612
|
-
|
|
611
|
+
} catch (N) {
|
|
612
|
+
var v = N.stack.trim().match(/\n( *(at )?)/);
|
|
613
|
+
ne = v && v[1] || "";
|
|
613
614
|
}
|
|
614
615
|
return `
|
|
615
|
-
` +
|
|
616
|
+
` + ne + e;
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
|
-
var
|
|
619
|
+
var se = !1, ge;
|
|
619
620
|
{
|
|
620
|
-
var
|
|
621
|
-
|
|
621
|
+
var je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
622
|
+
ge = new je();
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
-
if (!e ||
|
|
624
|
+
function ve(e, l) {
|
|
625
|
+
if (!e || se)
|
|
625
626
|
return "";
|
|
626
627
|
{
|
|
627
|
-
var c =
|
|
628
|
+
var c = ge.get(e);
|
|
628
629
|
if (c !== void 0)
|
|
629
630
|
return c;
|
|
630
631
|
}
|
|
631
|
-
var
|
|
632
|
-
|
|
633
|
-
var
|
|
632
|
+
var v;
|
|
633
|
+
se = !0;
|
|
634
|
+
var N = Error.prepareStackTrace;
|
|
634
635
|
Error.prepareStackTrace = void 0;
|
|
635
|
-
var
|
|
636
|
-
|
|
636
|
+
var U;
|
|
637
|
+
U = H.current, H.current = null, d();
|
|
637
638
|
try {
|
|
638
|
-
if (
|
|
639
|
-
var
|
|
639
|
+
if (l) {
|
|
640
|
+
var P = function() {
|
|
640
641
|
throw Error();
|
|
641
642
|
};
|
|
642
|
-
if (Object.defineProperty(
|
|
643
|
+
if (Object.defineProperty(P.prototype, "props", {
|
|
643
644
|
set: function() {
|
|
644
645
|
throw Error();
|
|
645
646
|
}
|
|
646
647
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
647
648
|
try {
|
|
648
|
-
Reflect.construct(
|
|
649
|
-
} catch (
|
|
650
|
-
|
|
649
|
+
Reflect.construct(P, []);
|
|
650
|
+
} catch (le) {
|
|
651
|
+
v = le;
|
|
651
652
|
}
|
|
652
|
-
Reflect.construct(e, [],
|
|
653
|
+
Reflect.construct(e, [], P);
|
|
653
654
|
} else {
|
|
654
655
|
try {
|
|
655
|
-
|
|
656
|
-
} catch (
|
|
657
|
-
|
|
656
|
+
P.call();
|
|
657
|
+
} catch (le) {
|
|
658
|
+
v = le;
|
|
658
659
|
}
|
|
659
|
-
e.call(
|
|
660
|
+
e.call(P.prototype);
|
|
660
661
|
}
|
|
661
662
|
} else {
|
|
662
663
|
try {
|
|
663
664
|
throw Error();
|
|
664
|
-
} catch (
|
|
665
|
-
|
|
665
|
+
} catch (le) {
|
|
666
|
+
v = le;
|
|
666
667
|
}
|
|
667
668
|
e();
|
|
668
669
|
}
|
|
669
|
-
} catch (
|
|
670
|
-
if (
|
|
671
|
-
for (var
|
|
672
|
-
`),
|
|
673
|
-
`),
|
|
674
|
-
|
|
675
|
-
for (;
|
|
676
|
-
if (
|
|
677
|
-
if (
|
|
670
|
+
} catch (le) {
|
|
671
|
+
if (le && v && typeof le.stack == "string") {
|
|
672
|
+
for (var S = le.stack.split(`
|
|
673
|
+
`), ae = v.stack.split(`
|
|
674
|
+
`), ee = S.length - 1, re = ae.length - 1; ee >= 1 && re >= 0 && S[ee] !== ae[re]; )
|
|
675
|
+
re--;
|
|
676
|
+
for (; ee >= 1 && re >= 0; ee--, re--)
|
|
677
|
+
if (S[ee] !== ae[re]) {
|
|
678
|
+
if (ee !== 1 || re !== 1)
|
|
678
679
|
do
|
|
679
|
-
if (
|
|
680
|
-
var
|
|
681
|
-
` +
|
|
682
|
-
return e.displayName &&
|
|
680
|
+
if (ee--, re--, re < 0 || S[ee] !== ae[re]) {
|
|
681
|
+
var de = `
|
|
682
|
+
` + S[ee].replace(" at new ", " at ");
|
|
683
|
+
return e.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", e.displayName)), typeof e == "function" && ge.set(e, de), de;
|
|
683
684
|
}
|
|
684
|
-
while (
|
|
685
|
+
while (ee >= 1 && re >= 0);
|
|
685
686
|
break;
|
|
686
687
|
}
|
|
687
688
|
}
|
|
688
689
|
} finally {
|
|
689
|
-
|
|
690
|
+
se = !1, H.current = U, z(), Error.prepareStackTrace = N;
|
|
690
691
|
}
|
|
691
|
-
var
|
|
692
|
-
return typeof e == "function" &&
|
|
692
|
+
var we = e ? e.displayName || e.name : "", Re = we ? ue(we) : "";
|
|
693
|
+
return typeof e == "function" && ge.set(e, Re), Re;
|
|
693
694
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
695
|
+
function _e(e, l, c) {
|
|
696
|
+
return ve(e, !1);
|
|
696
697
|
}
|
|
697
|
-
function
|
|
698
|
-
var
|
|
699
|
-
return !!(
|
|
698
|
+
function ye(e) {
|
|
699
|
+
var l = e.prototype;
|
|
700
|
+
return !!(l && l.isReactComponent);
|
|
700
701
|
}
|
|
701
|
-
function
|
|
702
|
+
function xe(e, l, c) {
|
|
702
703
|
if (e == null)
|
|
703
704
|
return "";
|
|
704
705
|
if (typeof e == "function")
|
|
705
|
-
return
|
|
706
|
+
return ve(e, ye(e));
|
|
706
707
|
if (typeof e == "string")
|
|
707
|
-
return
|
|
708
|
+
return ue(e);
|
|
708
709
|
switch (e) {
|
|
709
|
-
case
|
|
710
|
-
return
|
|
711
|
-
case
|
|
712
|
-
return
|
|
710
|
+
case _:
|
|
711
|
+
return ue("Suspense");
|
|
712
|
+
case D:
|
|
713
|
+
return ue("SuspenseList");
|
|
713
714
|
}
|
|
714
715
|
if (typeof e == "object")
|
|
715
716
|
switch (e.$$typeof) {
|
|
716
717
|
case h:
|
|
717
|
-
return
|
|
718
|
-
case
|
|
719
|
-
return
|
|
720
|
-
case
|
|
721
|
-
var
|
|
718
|
+
return _e(e.render);
|
|
719
|
+
case p:
|
|
720
|
+
return xe(e.type, l, c);
|
|
721
|
+
case g: {
|
|
722
|
+
var v = e, N = v._payload, U = v._init;
|
|
722
723
|
try {
|
|
723
|
-
return
|
|
724
|
+
return xe(U(N), l, c);
|
|
724
725
|
} catch {
|
|
725
726
|
}
|
|
726
727
|
}
|
|
727
728
|
}
|
|
728
729
|
return "";
|
|
729
730
|
}
|
|
730
|
-
var
|
|
731
|
-
function
|
|
731
|
+
var G = Object.prototype.hasOwnProperty, X = {}, K = Y.ReactDebugCurrentFrame;
|
|
732
|
+
function ke(e) {
|
|
732
733
|
if (e) {
|
|
733
|
-
var
|
|
734
|
-
|
|
734
|
+
var l = e._owner, c = xe(e.type, e._source, l ? l.type : null);
|
|
735
|
+
K.setExtraStackFrame(c);
|
|
735
736
|
} else
|
|
736
|
-
|
|
737
|
+
K.setExtraStackFrame(null);
|
|
737
738
|
}
|
|
738
|
-
function
|
|
739
|
+
function Pe(e, l, c, v, N) {
|
|
739
740
|
{
|
|
740
|
-
var
|
|
741
|
-
for (var
|
|
742
|
-
if (
|
|
743
|
-
var
|
|
741
|
+
var U = Function.call.bind(G);
|
|
742
|
+
for (var P in e)
|
|
743
|
+
if (U(e, P)) {
|
|
744
|
+
var S = void 0;
|
|
744
745
|
try {
|
|
745
|
-
if (typeof e[
|
|
746
|
-
var
|
|
747
|
-
throw
|
|
746
|
+
if (typeof e[P] != "function") {
|
|
747
|
+
var ae = Error((v || "React class") + ": " + c + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
748
|
+
throw ae.name = "Invariant Violation", ae;
|
|
748
749
|
}
|
|
749
|
-
|
|
750
|
-
} catch (
|
|
751
|
-
|
|
750
|
+
S = e[P](l, P, v, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
751
|
+
} catch (ee) {
|
|
752
|
+
S = ee;
|
|
752
753
|
}
|
|
753
|
-
|
|
754
|
+
S && !(S instanceof Error) && (ke(N), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", c, P, typeof S), ke(null)), S instanceof Error && !(S.message in X) && (X[S.message] = !0, ke(N), y("Failed %s type: %s", c, S.message), ke(null));
|
|
754
755
|
}
|
|
755
756
|
}
|
|
756
757
|
}
|
|
757
|
-
var
|
|
758
|
-
function
|
|
759
|
-
return
|
|
758
|
+
var Ie = Array.isArray;
|
|
759
|
+
function E(e) {
|
|
760
|
+
return Ie(e);
|
|
760
761
|
}
|
|
761
|
-
function
|
|
762
|
+
function ie(e) {
|
|
762
763
|
{
|
|
763
|
-
var
|
|
764
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, c = l && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
764
765
|
return c;
|
|
765
766
|
}
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
+
function Ae(e) {
|
|
768
769
|
try {
|
|
769
|
-
return
|
|
770
|
+
return er(e), !1;
|
|
770
771
|
} catch {
|
|
771
772
|
return !0;
|
|
772
773
|
}
|
|
773
774
|
}
|
|
774
|
-
function
|
|
775
|
+
function er(e) {
|
|
775
776
|
return "" + e;
|
|
776
777
|
}
|
|
777
|
-
function
|
|
778
|
-
if (
|
|
779
|
-
return
|
|
778
|
+
function rr(e) {
|
|
779
|
+
if (Ae(e))
|
|
780
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ie(e)), er(e);
|
|
780
781
|
}
|
|
781
|
-
var
|
|
782
|
+
var tr = Y.ReactCurrentOwner, wr = {
|
|
782
783
|
key: !0,
|
|
783
784
|
ref: !0,
|
|
784
785
|
__self: !0,
|
|
785
786
|
__source: !0
|
|
786
|
-
},
|
|
787
|
-
function
|
|
788
|
-
if (
|
|
789
|
-
var
|
|
790
|
-
if (
|
|
787
|
+
}, nr, ir;
|
|
788
|
+
function Tr(e) {
|
|
789
|
+
if (G.call(e, "ref")) {
|
|
790
|
+
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
791
|
+
if (l && l.isReactWarning)
|
|
791
792
|
return !1;
|
|
792
793
|
}
|
|
793
794
|
return e.ref !== void 0;
|
|
794
795
|
}
|
|
795
|
-
function
|
|
796
|
-
if (
|
|
797
|
-
var
|
|
798
|
-
if (
|
|
796
|
+
function Sr(e) {
|
|
797
|
+
if (G.call(e, "key")) {
|
|
798
|
+
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
799
|
+
if (l && l.isReactWarning)
|
|
799
800
|
return !1;
|
|
800
801
|
}
|
|
801
802
|
return e.key !== void 0;
|
|
802
803
|
}
|
|
803
|
-
function
|
|
804
|
-
typeof e.ref == "string" &&
|
|
804
|
+
function zr(e, l) {
|
|
805
|
+
typeof e.ref == "string" && tr.current;
|
|
805
806
|
}
|
|
806
|
-
function
|
|
807
|
+
function Or(e, l) {
|
|
807
808
|
{
|
|
808
809
|
var c = function() {
|
|
809
|
-
|
|
810
|
+
nr || (nr = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
810
811
|
};
|
|
811
812
|
c.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
812
813
|
get: c,
|
|
@@ -814,10 +815,10 @@ function pt() {
|
|
|
814
815
|
});
|
|
815
816
|
}
|
|
816
817
|
}
|
|
817
|
-
function
|
|
818
|
+
function Pr(e, l) {
|
|
818
819
|
{
|
|
819
820
|
var c = function() {
|
|
820
|
-
|
|
821
|
+
ir || (ir = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
821
822
|
};
|
|
822
823
|
c.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
823
824
|
get: c,
|
|
@@ -825,70 +826,70 @@ function pt() {
|
|
|
825
826
|
});
|
|
826
827
|
}
|
|
827
828
|
}
|
|
828
|
-
var
|
|
829
|
-
var
|
|
829
|
+
var Ir = function(e, l, c, v, N, U, P) {
|
|
830
|
+
var S = {
|
|
830
831
|
// This tag allows us to uniquely identify this as a React Element
|
|
831
|
-
$$typeof:
|
|
832
|
+
$$typeof: i,
|
|
832
833
|
// Built-in properties that belong on the element
|
|
833
834
|
type: e,
|
|
834
|
-
key:
|
|
835
|
+
key: l,
|
|
835
836
|
ref: c,
|
|
836
|
-
props:
|
|
837
|
+
props: P,
|
|
837
838
|
// Record the component responsible for creating this element.
|
|
838
|
-
_owner:
|
|
839
|
+
_owner: U
|
|
839
840
|
};
|
|
840
|
-
return
|
|
841
|
+
return S._store = {}, Object.defineProperty(S._store, "validated", {
|
|
841
842
|
configurable: !1,
|
|
842
843
|
enumerable: !1,
|
|
843
844
|
writable: !0,
|
|
844
845
|
value: !1
|
|
845
|
-
}), Object.defineProperty(
|
|
846
|
+
}), Object.defineProperty(S, "_self", {
|
|
846
847
|
configurable: !1,
|
|
847
848
|
enumerable: !1,
|
|
848
849
|
writable: !1,
|
|
849
|
-
value:
|
|
850
|
-
}), Object.defineProperty(
|
|
850
|
+
value: v
|
|
851
|
+
}), Object.defineProperty(S, "_source", {
|
|
851
852
|
configurable: !1,
|
|
852
853
|
enumerable: !1,
|
|
853
854
|
writable: !1,
|
|
854
|
-
value:
|
|
855
|
-
}), Object.freeze && (Object.freeze(
|
|
855
|
+
value: N
|
|
856
|
+
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
856
857
|
};
|
|
857
|
-
function
|
|
858
|
+
function Ar(e, l, c, v, N) {
|
|
858
859
|
{
|
|
859
|
-
var
|
|
860
|
-
c !== void 0 && (
|
|
861
|
-
for (
|
|
862
|
-
|
|
860
|
+
var U, P = {}, S = null, ae = null;
|
|
861
|
+
c !== void 0 && (rr(c), S = "" + c), Sr(l) && (rr(l.key), S = "" + l.key), Tr(l) && (ae = l.ref, zr(l, N));
|
|
862
|
+
for (U in l)
|
|
863
|
+
G.call(l, U) && !wr.hasOwnProperty(U) && (P[U] = l[U]);
|
|
863
864
|
if (e && e.defaultProps) {
|
|
864
|
-
var
|
|
865
|
-
for (
|
|
866
|
-
|
|
865
|
+
var ee = e.defaultProps;
|
|
866
|
+
for (U in ee)
|
|
867
|
+
P[U] === void 0 && (P[U] = ee[U]);
|
|
867
868
|
}
|
|
868
|
-
if (
|
|
869
|
-
var
|
|
870
|
-
|
|
869
|
+
if (S || ae) {
|
|
870
|
+
var re = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
871
|
+
S && Or(P, re), ae && Pr(P, re);
|
|
871
872
|
}
|
|
872
|
-
return
|
|
873
|
+
return Ir(e, S, ae, N, v, tr.current, P);
|
|
873
874
|
}
|
|
874
875
|
}
|
|
875
|
-
var
|
|
876
|
-
function
|
|
876
|
+
var Ge = Y.ReactCurrentOwner, ar = Y.ReactDebugCurrentFrame;
|
|
877
|
+
function $e(e) {
|
|
877
878
|
if (e) {
|
|
878
|
-
var
|
|
879
|
-
|
|
879
|
+
var l = e._owner, c = xe(e.type, e._source, l ? l.type : null);
|
|
880
|
+
ar.setExtraStackFrame(c);
|
|
880
881
|
} else
|
|
881
|
-
|
|
882
|
+
ar.setExtraStackFrame(null);
|
|
882
883
|
}
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
function
|
|
886
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
884
|
+
var Ue;
|
|
885
|
+
Ue = !1;
|
|
886
|
+
function Ye(e) {
|
|
887
|
+
return typeof e == "object" && e !== null && e.$$typeof === i;
|
|
887
888
|
}
|
|
888
|
-
function
|
|
889
|
+
function sr() {
|
|
889
890
|
{
|
|
890
|
-
if (
|
|
891
|
-
var e =
|
|
891
|
+
if (Ge.current) {
|
|
892
|
+
var e = q(Ge.current.type);
|
|
892
893
|
if (e)
|
|
893
894
|
return `
|
|
894
895
|
|
|
@@ -897,158 +898,158 @@ Check the render method of \`` + e + "`.";
|
|
|
897
898
|
return "";
|
|
898
899
|
}
|
|
899
900
|
}
|
|
900
|
-
function
|
|
901
|
+
function Br(e) {
|
|
901
902
|
return "";
|
|
902
903
|
}
|
|
903
|
-
var
|
|
904
|
-
function
|
|
904
|
+
var lr = {};
|
|
905
|
+
function Fr(e) {
|
|
905
906
|
{
|
|
906
|
-
var
|
|
907
|
-
if (!
|
|
907
|
+
var l = sr();
|
|
908
|
+
if (!l) {
|
|
908
909
|
var c = typeof e == "string" ? e : e.displayName || e.name;
|
|
909
|
-
c && (
|
|
910
|
+
c && (l = `
|
|
910
911
|
|
|
911
912
|
Check the top-level render call using <` + c + ">.");
|
|
912
913
|
}
|
|
913
|
-
return
|
|
914
|
+
return l;
|
|
914
915
|
}
|
|
915
916
|
}
|
|
916
|
-
function
|
|
917
|
+
function or(e, l) {
|
|
917
918
|
{
|
|
918
919
|
if (!e._store || e._store.validated || e.key != null)
|
|
919
920
|
return;
|
|
920
921
|
e._store.validated = !0;
|
|
921
|
-
var c =
|
|
922
|
-
if (
|
|
922
|
+
var c = Fr(l);
|
|
923
|
+
if (lr[c])
|
|
923
924
|
return;
|
|
924
|
-
|
|
925
|
-
var
|
|
926
|
-
e && e._owner && e._owner !==
|
|
925
|
+
lr[c] = !0;
|
|
926
|
+
var v = "";
|
|
927
|
+
e && e._owner && e._owner !== Ge.current && (v = " It was passed a child from " + q(e._owner.type) + "."), $e(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, v), $e(null);
|
|
927
928
|
}
|
|
928
929
|
}
|
|
929
|
-
function
|
|
930
|
+
function ur(e, l) {
|
|
930
931
|
{
|
|
931
932
|
if (typeof e != "object")
|
|
932
933
|
return;
|
|
933
|
-
if (
|
|
934
|
+
if (E(e))
|
|
934
935
|
for (var c = 0; c < e.length; c++) {
|
|
935
|
-
var
|
|
936
|
-
|
|
936
|
+
var v = e[c];
|
|
937
|
+
Ye(v) && or(v, l);
|
|
937
938
|
}
|
|
938
|
-
else if (
|
|
939
|
+
else if (Ye(e))
|
|
939
940
|
e._store && (e._store.validated = !0);
|
|
940
941
|
else if (e) {
|
|
941
|
-
var
|
|
942
|
-
if (typeof
|
|
943
|
-
for (var
|
|
944
|
-
|
|
942
|
+
var N = Z(e);
|
|
943
|
+
if (typeof N == "function" && N !== e.entries)
|
|
944
|
+
for (var U = N.call(e), P; !(P = U.next()).done; )
|
|
945
|
+
Ye(P.value) && or(P.value, l);
|
|
945
946
|
}
|
|
946
947
|
}
|
|
947
948
|
}
|
|
948
|
-
function
|
|
949
|
+
function Nr(e) {
|
|
949
950
|
{
|
|
950
|
-
var
|
|
951
|
-
if (
|
|
951
|
+
var l = e.type;
|
|
952
|
+
if (l == null || typeof l == "string")
|
|
952
953
|
return;
|
|
953
954
|
var c;
|
|
954
|
-
if (typeof
|
|
955
|
-
c =
|
|
956
|
-
else if (typeof
|
|
955
|
+
if (typeof l == "function")
|
|
956
|
+
c = l.propTypes;
|
|
957
|
+
else if (typeof l == "object" && (l.$$typeof === h || // Note: Memo only checks outer props here.
|
|
957
958
|
// Inner props are checked in the reconciler.
|
|
958
|
-
|
|
959
|
-
c =
|
|
959
|
+
l.$$typeof === p))
|
|
960
|
+
c = l.propTypes;
|
|
960
961
|
else
|
|
961
962
|
return;
|
|
962
963
|
if (c) {
|
|
963
|
-
var
|
|
964
|
-
|
|
965
|
-
} else if (
|
|
966
|
-
|
|
967
|
-
var
|
|
968
|
-
|
|
964
|
+
var v = q(l);
|
|
965
|
+
Pe(c, e.props, "prop", v, e);
|
|
966
|
+
} else if (l.PropTypes !== void 0 && !Ue) {
|
|
967
|
+
Ue = !0;
|
|
968
|
+
var N = q(l);
|
|
969
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
969
970
|
}
|
|
970
|
-
typeof
|
|
971
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
971
972
|
}
|
|
972
973
|
}
|
|
973
|
-
function
|
|
974
|
+
function Mr(e) {
|
|
974
975
|
{
|
|
975
|
-
for (var
|
|
976
|
-
var
|
|
977
|
-
if (
|
|
978
|
-
|
|
976
|
+
for (var l = Object.keys(e.props), c = 0; c < l.length; c++) {
|
|
977
|
+
var v = l[c];
|
|
978
|
+
if (v !== "children" && v !== "key") {
|
|
979
|
+
$e(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), $e(null);
|
|
979
980
|
break;
|
|
980
981
|
}
|
|
981
982
|
}
|
|
982
|
-
e.ref !== null && (
|
|
983
|
+
e.ref !== null && ($e(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
983
984
|
}
|
|
984
985
|
}
|
|
985
|
-
var
|
|
986
|
-
function
|
|
986
|
+
var cr = {};
|
|
987
|
+
function fr(e, l, c, v, N, U) {
|
|
987
988
|
{
|
|
988
|
-
var
|
|
989
|
-
if (!
|
|
990
|
-
var
|
|
991
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
992
|
-
var
|
|
993
|
-
|
|
994
|
-
var
|
|
995
|
-
e === null ?
|
|
989
|
+
var P = O(e);
|
|
990
|
+
if (!P) {
|
|
991
|
+
var S = "";
|
|
992
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
993
|
+
var ae = Br();
|
|
994
|
+
ae ? S += ae : S += sr();
|
|
995
|
+
var ee;
|
|
996
|
+
e === null ? ee = "null" : E(e) ? ee = "array" : e !== void 0 && e.$$typeof === i ? (ee = "<" + (q(e.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, S);
|
|
996
997
|
}
|
|
997
|
-
var
|
|
998
|
-
if (
|
|
999
|
-
return
|
|
1000
|
-
if (
|
|
1001
|
-
var
|
|
1002
|
-
if (
|
|
1003
|
-
if (
|
|
1004
|
-
if (
|
|
1005
|
-
for (var
|
|
1006
|
-
|
|
1007
|
-
Object.freeze && Object.freeze(
|
|
998
|
+
var re = Ar(e, l, c, N, U);
|
|
999
|
+
if (re == null)
|
|
1000
|
+
return re;
|
|
1001
|
+
if (P) {
|
|
1002
|
+
var de = l.children;
|
|
1003
|
+
if (de !== void 0)
|
|
1004
|
+
if (v)
|
|
1005
|
+
if (E(de)) {
|
|
1006
|
+
for (var we = 0; we < de.length; we++)
|
|
1007
|
+
ur(de[we], e);
|
|
1008
|
+
Object.freeze && Object.freeze(de);
|
|
1008
1009
|
} else
|
|
1009
|
-
|
|
1010
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1010
1011
|
else
|
|
1011
|
-
|
|
1012
|
+
ur(de, e);
|
|
1012
1013
|
}
|
|
1013
|
-
if (
|
|
1014
|
-
var
|
|
1015
|
-
return
|
|
1016
|
-
}),
|
|
1017
|
-
if (!
|
|
1018
|
-
var
|
|
1019
|
-
|
|
1014
|
+
if (G.call(l, "key")) {
|
|
1015
|
+
var Re = q(e), le = Object.keys(l).filter(function(Yr) {
|
|
1016
|
+
return Yr !== "key";
|
|
1017
|
+
}), We = le.length > 0 ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1018
|
+
if (!cr[Re + We]) {
|
|
1019
|
+
var Ur = le.length > 0 ? "{" + le.join(": ..., ") + ": ...}" : "{}";
|
|
1020
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
1020
1021
|
let props = %s;
|
|
1021
1022
|
<%s {...props} />
|
|
1022
1023
|
React keys must be passed directly to JSX without using spread:
|
|
1023
1024
|
let props = %s;
|
|
1024
|
-
<%s key={someKey} {...props} />`,
|
|
1025
|
+
<%s key={someKey} {...props} />`, We, Re, Ur, Re), cr[Re + We] = !0;
|
|
1025
1026
|
}
|
|
1026
1027
|
}
|
|
1027
|
-
return e === o ?
|
|
1028
|
+
return e === o ? Mr(re) : Nr(re), re;
|
|
1028
1029
|
}
|
|
1029
1030
|
}
|
|
1030
|
-
function
|
|
1031
|
-
return
|
|
1031
|
+
function Vr(e, l, c) {
|
|
1032
|
+
return fr(e, l, c, !0);
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
-
return
|
|
1034
|
+
function Lr(e, l, c) {
|
|
1035
|
+
return fr(e, l, c, !1);
|
|
1035
1036
|
}
|
|
1036
|
-
var
|
|
1037
|
-
|
|
1038
|
-
}()),
|
|
1037
|
+
var qr = Lr, Gr = Vr;
|
|
1038
|
+
Se.Fragment = o, Se.jsx = qr, Se.jsxs = Gr;
|
|
1039
|
+
}()), Se;
|
|
1039
1040
|
}
|
|
1040
|
-
process.env.NODE_ENV === "production" ?
|
|
1041
|
-
var
|
|
1042
|
-
function
|
|
1041
|
+
process.env.NODE_ENV === "production" ? Je.exports = Dt() : Je.exports = _t();
|
|
1042
|
+
var s = Je.exports;
|
|
1043
|
+
function $t(t) {
|
|
1043
1044
|
return t.replace(/ı/g, "I").replace(/i/g, "İ").replace(/ğ/g, "Ğ").replace(/ü/g, "Ü").replace(/ş/g, "Ş").replace(/ö/g, "Ö").replace(/ç/g, "Ç").toUpperCase().replace(/I/g, "ı").replace(/İ/g, "İ").replace(/Ğ/g, "ğ").replace(/Ü/g, "ü").replace(/Ş/g, "ş").replace(/Ö/g, "ö").replace(/Ç/g, "ç");
|
|
1044
1045
|
}
|
|
1045
|
-
const
|
|
1046
|
+
const wt = 300, Tt = 1, St = [
|
|
1046
1047
|
"password",
|
|
1047
1048
|
"email",
|
|
1048
1049
|
"number",
|
|
1049
1050
|
"tel",
|
|
1050
1051
|
"url"
|
|
1051
|
-
],
|
|
1052
|
+
], zt = [
|
|
1052
1053
|
"Backspace",
|
|
1053
1054
|
"Delete",
|
|
1054
1055
|
"ArrowLeft",
|
|
@@ -1057,28 +1058,28 @@ const vt = 300, yt = 1, bt = [
|
|
|
1057
1058
|
"Enter",
|
|
1058
1059
|
"Escape"
|
|
1059
1060
|
];
|
|
1060
|
-
function
|
|
1061
|
-
return r ||
|
|
1061
|
+
function Ot(t, i, r) {
|
|
1062
|
+
return r || St.includes(i) || !t ? t : $t(t);
|
|
1062
1063
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return /[0-9.]/.test(t) ||
|
|
1064
|
+
function Pt(t) {
|
|
1065
|
+
return /[0-9.]/.test(t) || zt.includes(t);
|
|
1065
1066
|
}
|
|
1066
|
-
function
|
|
1067
|
+
function It(t) {
|
|
1067
1068
|
const r = t.replace(/\D/g, "").slice(0, 11);
|
|
1068
1069
|
return r.length === 0 ? "" : r.length <= 3 ? r : r.length <= 6 ? `${r.slice(0, 3)} ${r.slice(3)}` : r.length <= 8 ? `${r.slice(0, 3)} ${r.slice(3, 6)} ${r.slice(6)}` : `${r.slice(0, 3)} ${r.slice(3, 6)} ${r.slice(
|
|
1069
1070
|
6,
|
|
1070
1071
|
8
|
|
1071
1072
|
)} ${r.slice(8)}`;
|
|
1072
1073
|
}
|
|
1073
|
-
function
|
|
1074
|
+
function At(t) {
|
|
1074
1075
|
const r = t.replace(/\D/g, "").slice(0, 8);
|
|
1075
1076
|
return r.length === 0 ? "" : r.length <= 2 ? r : r.length <= 4 ? `${r.slice(0, 2)}/${r.slice(2)}` : `${r.slice(0, 2)}/${r.slice(2, 4)}/${r.slice(4)}`;
|
|
1076
1077
|
}
|
|
1077
|
-
function
|
|
1078
|
+
function Bt(t) {
|
|
1078
1079
|
const r = t.replace(/\D/g, "").slice(0, 11);
|
|
1079
1080
|
return r.length === 0 ? "" : r.length <= 3 ? r : r.length <= 6 ? `${r.slice(0, 3)} ${r.slice(3)}` : `${r.slice(0, 3)} ${r.slice(3, 6)} ${r.slice(6)}`;
|
|
1080
1081
|
}
|
|
1081
|
-
function
|
|
1082
|
+
function Ft(t) {
|
|
1082
1083
|
const r = t.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 26);
|
|
1083
1084
|
return r.length === 0 ? "" : r.length <= 4 ? r : r.length <= 8 ? `${r.slice(0, 4)} ${r.slice(4)}` : r.length <= 12 ? `${r.slice(0, 4)} ${r.slice(4, 8)} ${r.slice(8)}` : r.length <= 16 ? `${r.slice(0, 4)} ${r.slice(4, 8)} ${r.slice(
|
|
1084
1085
|
8,
|
|
@@ -1097,645 +1098,645 @@ function $t(t) {
|
|
|
1097
1098
|
24
|
|
1098
1099
|
)} ${r.slice(24)}`;
|
|
1099
1100
|
}
|
|
1100
|
-
function
|
|
1101
|
-
if (!
|
|
1102
|
-
if (typeof
|
|
1103
|
-
return
|
|
1104
|
-
switch (
|
|
1101
|
+
function Nt(t, i) {
|
|
1102
|
+
if (!i) return t;
|
|
1103
|
+
if (typeof i == "function")
|
|
1104
|
+
return i(t);
|
|
1105
|
+
switch (i) {
|
|
1105
1106
|
case "phone":
|
|
1106
|
-
return
|
|
1107
|
+
return It(t);
|
|
1107
1108
|
case "date":
|
|
1108
|
-
return
|
|
1109
|
+
return At(t);
|
|
1109
1110
|
case "tcKimlikNo":
|
|
1110
|
-
return
|
|
1111
|
+
return Bt(t);
|
|
1111
1112
|
case "iban":
|
|
1112
|
-
return
|
|
1113
|
+
return Ft(t);
|
|
1113
1114
|
default:
|
|
1114
1115
|
return t;
|
|
1115
1116
|
}
|
|
1116
1117
|
}
|
|
1117
|
-
const
|
|
1118
|
+
const Mt = Ce(
|
|
1118
1119
|
({
|
|
1119
1120
|
name: t,
|
|
1120
|
-
label:
|
|
1121
|
+
label: i,
|
|
1121
1122
|
type: r = "text",
|
|
1122
1123
|
placeholder: o,
|
|
1123
|
-
className:
|
|
1124
|
-
fieldToSearch:
|
|
1124
|
+
className: u,
|
|
1125
|
+
fieldToSearch: n,
|
|
1125
1126
|
onSuggestionSearch: a,
|
|
1126
1127
|
disabled: f = !1,
|
|
1127
1128
|
step: h,
|
|
1128
|
-
min:
|
|
1129
|
-
max:
|
|
1130
|
-
startAdornment:
|
|
1131
|
-
endAdornment:
|
|
1132
|
-
disableUppercase:
|
|
1133
|
-
required:
|
|
1134
|
-
fullWidth:
|
|
1135
|
-
debounceDelay: Z =
|
|
1136
|
-
minSearchLength:
|
|
1137
|
-
helperText:
|
|
1138
|
-
autoFocus:
|
|
1139
|
-
multiline:
|
|
1140
|
-
rows:
|
|
1141
|
-
maxLength:
|
|
1142
|
-
errorMessageFormatter:
|
|
1143
|
-
"aria-label":
|
|
1144
|
-
"aria-describedby":
|
|
1145
|
-
sx:
|
|
1146
|
-
inputSx:
|
|
1147
|
-
inputElementSx:
|
|
1148
|
-
mask:
|
|
1149
|
-
showPasswordToggle:
|
|
1150
|
-
...
|
|
1151
|
-
},
|
|
1152
|
-
const [T, A,
|
|
1153
|
-
|
|
1154
|
-
if (
|
|
1155
|
-
|
|
1129
|
+
min: _,
|
|
1130
|
+
max: D,
|
|
1131
|
+
startAdornment: p,
|
|
1132
|
+
endAdornment: g,
|
|
1133
|
+
disableUppercase: m = !1,
|
|
1134
|
+
required: J = !1,
|
|
1135
|
+
fullWidth: F,
|
|
1136
|
+
debounceDelay: Z = wt,
|
|
1137
|
+
minSearchLength: Y = Tt,
|
|
1138
|
+
helperText: y,
|
|
1139
|
+
autoFocus: $,
|
|
1140
|
+
multiline: V,
|
|
1141
|
+
rows: w,
|
|
1142
|
+
maxLength: L,
|
|
1143
|
+
errorMessageFormatter: I,
|
|
1144
|
+
"aria-label": j,
|
|
1145
|
+
"aria-describedby": C,
|
|
1146
|
+
sx: O,
|
|
1147
|
+
inputSx: Q,
|
|
1148
|
+
inputElementSx: B,
|
|
1149
|
+
mask: q,
|
|
1150
|
+
showPasswordToggle: b = !1,
|
|
1151
|
+
...k
|
|
1152
|
+
}, x) => {
|
|
1153
|
+
const [T, A, W] = De(t), [me, R] = he([]), [pe, oe] = he(!1), [d, z] = he(!1), [H, ne] = he(!1), ue = Wr(
|
|
1154
|
+
n && a ? ft(async (G) => {
|
|
1155
|
+
if (G.length >= Y) {
|
|
1156
|
+
oe(!0);
|
|
1156
1157
|
try {
|
|
1157
|
-
const
|
|
1158
|
-
|
|
1159
|
-
|
|
1158
|
+
const X = await a(
|
|
1159
|
+
n,
|
|
1160
|
+
G
|
|
1160
1161
|
);
|
|
1161
|
-
|
|
1162
|
-
} catch (
|
|
1163
|
-
console.error("Search error:",
|
|
1162
|
+
R(X);
|
|
1163
|
+
} catch (X) {
|
|
1164
|
+
console.error("Search error:", X), R([]);
|
|
1164
1165
|
}
|
|
1165
|
-
|
|
1166
|
+
oe(!1);
|
|
1166
1167
|
} else
|
|
1167
|
-
|
|
1168
|
+
R([]);
|
|
1168
1169
|
}, Z) : null
|
|
1169
1170
|
).current;
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
}, [T.value,
|
|
1173
|
-
|
|
1174
|
-
}, [
|
|
1175
|
-
const
|
|
1176
|
-
(
|
|
1177
|
-
let
|
|
1178
|
-
return
|
|
1171
|
+
Oe(() => {
|
|
1172
|
+
ue && T.value && ue(T.value);
|
|
1173
|
+
}, [T.value, ue]), Oe(() => () => {
|
|
1174
|
+
ue && ue.cancel();
|
|
1175
|
+
}, [ue]);
|
|
1176
|
+
const se = M(
|
|
1177
|
+
(G) => {
|
|
1178
|
+
let X = Ot(G, r, m);
|
|
1179
|
+
return q && r !== "password" && (X = Nt(X, q)), X;
|
|
1179
1180
|
},
|
|
1180
|
-
[r,
|
|
1181
|
-
),
|
|
1182
|
-
|
|
1183
|
-
}, []),
|
|
1181
|
+
[r, m, q]
|
|
1182
|
+
), ge = M(() => {
|
|
1183
|
+
ne((G) => !G);
|
|
1184
|
+
}, []), je = te(() => r === "password" && H ? "text" : r, [r, H]), ve = te(() => {
|
|
1184
1185
|
if (!(!A.touched || !A.error))
|
|
1185
|
-
return
|
|
1186
|
-
}, [A.touched, A.error,
|
|
1186
|
+
return I ? I(A.error) : A.error;
|
|
1187
|
+
}, [A.touched, A.error, I]), _e = te(() => ve || y, [ve, y]), ye = te(
|
|
1187
1188
|
() => {
|
|
1188
|
-
var
|
|
1189
|
+
var G;
|
|
1189
1190
|
return {
|
|
1190
1191
|
name: t,
|
|
1191
|
-
label:
|
|
1192
|
-
type:
|
|
1192
|
+
label: i,
|
|
1193
|
+
type: je,
|
|
1193
1194
|
placeholder: o,
|
|
1194
|
-
required:
|
|
1195
|
+
required: J,
|
|
1195
1196
|
disabled: f,
|
|
1196
1197
|
error: A.touched && !!A.error,
|
|
1197
|
-
helperText:
|
|
1198
|
-
className:
|
|
1199
|
-
fullWidth:
|
|
1200
|
-
autoFocus:
|
|
1201
|
-
multiline:
|
|
1202
|
-
rows:
|
|
1203
|
-
sx:
|
|
1198
|
+
helperText: _e,
|
|
1199
|
+
className: u,
|
|
1200
|
+
fullWidth: F !== void 0 ? F : !!i,
|
|
1201
|
+
autoFocus: $,
|
|
1202
|
+
multiline: V,
|
|
1203
|
+
rows: w,
|
|
1204
|
+
sx: B ? [O, { "& .MuiInputBase-input": B }].filter(
|
|
1204
1205
|
Boolean
|
|
1205
|
-
) :
|
|
1206
|
+
) : O,
|
|
1206
1207
|
inputProps: {
|
|
1207
|
-
maxLength:
|
|
1208
|
+
maxLength: L,
|
|
1208
1209
|
step: h,
|
|
1209
|
-
min:
|
|
1210
|
-
max:
|
|
1210
|
+
min: _,
|
|
1211
|
+
max: D,
|
|
1211
1212
|
...r === "number" && {
|
|
1212
|
-
onKeyDown: (
|
|
1213
|
-
|
|
1213
|
+
onKeyDown: (X) => {
|
|
1214
|
+
Pt(X.key) || X.preventDefault();
|
|
1214
1215
|
}
|
|
1215
1216
|
},
|
|
1216
|
-
...
|
|
1217
|
+
...k.inputProps
|
|
1217
1218
|
},
|
|
1218
1219
|
InputProps: {
|
|
1219
|
-
startAdornment:
|
|
1220
|
-
endAdornment: /* @__PURE__ */
|
|
1221
|
-
r === "password" &&
|
|
1222
|
-
|
|
1220
|
+
startAdornment: p ? /* @__PURE__ */ s.jsx(Ke, { position: "start", children: p }) : void 0,
|
|
1221
|
+
endAdornment: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1222
|
+
r === "password" && b && /* @__PURE__ */ s.jsx(Ke, { position: "end", children: /* @__PURE__ */ s.jsx(
|
|
1223
|
+
Ne,
|
|
1223
1224
|
{
|
|
1224
1225
|
"aria-label": "Şifreyi göster/gizle",
|
|
1225
|
-
onClick:
|
|
1226
|
+
onClick: ge,
|
|
1226
1227
|
edge: "end",
|
|
1227
|
-
children:
|
|
1228
|
+
children: H ? /* @__PURE__ */ s.jsx(rt, {}) : /* @__PURE__ */ s.jsx(Cr, {})
|
|
1228
1229
|
}
|
|
1229
1230
|
) }),
|
|
1230
|
-
|
|
1231
|
-
(
|
|
1231
|
+
g ? /* @__PURE__ */ s.jsx(Ke, { position: "end", children: g }) : void 0,
|
|
1232
|
+
(G = k.InputProps) == null ? void 0 : G.endAdornment
|
|
1232
1233
|
] }),
|
|
1233
|
-
...
|
|
1234
|
-
...
|
|
1234
|
+
...Q && { sx: Q },
|
|
1235
|
+
...k.InputProps
|
|
1235
1236
|
},
|
|
1236
|
-
"aria-label":
|
|
1237
|
-
"aria-describedby":
|
|
1237
|
+
"aria-label": j,
|
|
1238
|
+
"aria-describedby": C || (ve ? `${t}-error` : void 0),
|
|
1238
1239
|
"aria-invalid": A.touched && A.error ? !0 : void 0,
|
|
1239
|
-
ref:
|
|
1240
|
-
...
|
|
1240
|
+
ref: x,
|
|
1241
|
+
...k
|
|
1241
1242
|
};
|
|
1242
1243
|
},
|
|
1243
1244
|
[
|
|
1244
1245
|
t,
|
|
1245
|
-
|
|
1246
|
-
|
|
1246
|
+
i,
|
|
1247
|
+
je,
|
|
1247
1248
|
o,
|
|
1248
|
-
|
|
1249
|
+
J,
|
|
1249
1250
|
f,
|
|
1250
1251
|
A.touched,
|
|
1251
1252
|
A.error,
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
M,
|
|
1255
|
-
j,
|
|
1256
|
-
B,
|
|
1257
|
-
D,
|
|
1253
|
+
_e,
|
|
1254
|
+
u,
|
|
1258
1255
|
F,
|
|
1259
|
-
h,
|
|
1260
|
-
C,
|
|
1261
1256
|
$,
|
|
1262
|
-
|
|
1257
|
+
V,
|
|
1258
|
+
w,
|
|
1259
|
+
L,
|
|
1260
|
+
h,
|
|
1263
1261
|
_,
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1262
|
+
D,
|
|
1263
|
+
p,
|
|
1264
|
+
g,
|
|
1265
|
+
j,
|
|
1266
|
+
C,
|
|
1267
|
+
O,
|
|
1268
|
+
Q,
|
|
1269
|
+
B,
|
|
1270
|
+
q,
|
|
1271
|
+
b,
|
|
1267
1272
|
H,
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
x,
|
|
1271
|
-
K,
|
|
1272
|
-
ke,
|
|
1273
|
-
b
|
|
1273
|
+
je,
|
|
1274
|
+
k
|
|
1274
1275
|
]
|
|
1275
1276
|
);
|
|
1276
|
-
if (
|
|
1277
|
-
return /* @__PURE__ */
|
|
1278
|
-
|
|
1277
|
+
if (n && a)
|
|
1278
|
+
return /* @__PURE__ */ s.jsx(
|
|
1279
|
+
Qe,
|
|
1279
1280
|
{
|
|
1280
1281
|
freeSolo: !0,
|
|
1281
1282
|
open: d,
|
|
1282
|
-
onOpen: () =>
|
|
1283
|
-
onClose: () =>
|
|
1284
|
-
options:
|
|
1285
|
-
loading:
|
|
1283
|
+
onOpen: () => z(!0),
|
|
1284
|
+
onClose: () => z(!1),
|
|
1285
|
+
options: me,
|
|
1286
|
+
loading: pe,
|
|
1286
1287
|
disabled: f,
|
|
1287
1288
|
value: T.value || "",
|
|
1288
|
-
onChange: (
|
|
1289
|
-
const
|
|
1290
|
-
|
|
1289
|
+
onChange: (G, X) => {
|
|
1290
|
+
const K = X || "";
|
|
1291
|
+
W.setValue(se(K));
|
|
1291
1292
|
},
|
|
1292
|
-
onInputChange: (
|
|
1293
|
-
|
|
1293
|
+
onInputChange: (G, X) => {
|
|
1294
|
+
W.setValue(se(X));
|
|
1294
1295
|
},
|
|
1295
|
-
renderInput: (
|
|
1296
|
-
var
|
|
1297
|
-
return /* @__PURE__ */
|
|
1298
|
-
|
|
1296
|
+
renderInput: (G) => {
|
|
1297
|
+
var X;
|
|
1298
|
+
return /* @__PURE__ */ s.jsx(
|
|
1299
|
+
Me,
|
|
1299
1300
|
{
|
|
1300
|
-
...
|
|
1301
|
-
...
|
|
1301
|
+
...G,
|
|
1302
|
+
...ye,
|
|
1302
1303
|
InputProps: {
|
|
1303
|
-
...
|
|
1304
|
-
...
|
|
1305
|
-
endAdornment: /* @__PURE__ */
|
|
1306
|
-
|
|
1307
|
-
(
|
|
1308
|
-
|
|
1304
|
+
...G.InputProps,
|
|
1305
|
+
...ye.InputProps,
|
|
1306
|
+
endAdornment: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1307
|
+
pe ? /* @__PURE__ */ s.jsx(Kr, { color: "inherit", size: 20 }) : null,
|
|
1308
|
+
(X = ye.InputProps) == null ? void 0 : X.endAdornment,
|
|
1309
|
+
G.InputProps.endAdornment
|
|
1309
1310
|
] })
|
|
1310
1311
|
},
|
|
1311
|
-
ref:
|
|
1312
|
+
ref: x
|
|
1312
1313
|
}
|
|
1313
1314
|
);
|
|
1314
1315
|
}
|
|
1315
1316
|
}
|
|
1316
1317
|
);
|
|
1317
|
-
const
|
|
1318
|
-
(
|
|
1319
|
-
const
|
|
1320
|
-
|
|
1318
|
+
const xe = M(
|
|
1319
|
+
(G) => {
|
|
1320
|
+
const X = G.target.value;
|
|
1321
|
+
W.setValue(se(X));
|
|
1321
1322
|
},
|
|
1322
|
-
[
|
|
1323
|
+
[W, se]
|
|
1323
1324
|
);
|
|
1324
|
-
return /* @__PURE__ */
|
|
1325
|
-
|
|
1325
|
+
return /* @__PURE__ */ s.jsx(
|
|
1326
|
+
Me,
|
|
1326
1327
|
{
|
|
1327
|
-
...
|
|
1328
|
+
...ye,
|
|
1328
1329
|
value: T.value || "",
|
|
1329
|
-
onChange:
|
|
1330
|
+
onChange: xe,
|
|
1330
1331
|
onBlur: T.onBlur
|
|
1331
1332
|
}
|
|
1332
1333
|
);
|
|
1333
1334
|
}
|
|
1334
1335
|
);
|
|
1335
|
-
|
|
1336
|
-
const
|
|
1336
|
+
Mt.displayName = "FormikTextField";
|
|
1337
|
+
const Vt = Ce(
|
|
1337
1338
|
({
|
|
1338
1339
|
name: t,
|
|
1339
|
-
options:
|
|
1340
|
+
options: i = [],
|
|
1340
1341
|
label: r,
|
|
1341
1342
|
placeholder: o,
|
|
1342
|
-
className:
|
|
1343
|
-
disabled:
|
|
1343
|
+
className: u,
|
|
1344
|
+
disabled: n = !1,
|
|
1344
1345
|
required: a = !1,
|
|
1345
1346
|
fullWidth: f = !0,
|
|
1346
1347
|
helperText: h,
|
|
1347
|
-
autoFocus:
|
|
1348
|
-
errorMessageFormatter:
|
|
1349
|
-
"aria-label":
|
|
1350
|
-
"aria-describedby":
|
|
1351
|
-
sx:
|
|
1352
|
-
formControlSx:
|
|
1353
|
-
multiple:
|
|
1348
|
+
autoFocus: _,
|
|
1349
|
+
errorMessageFormatter: D,
|
|
1350
|
+
"aria-label": p,
|
|
1351
|
+
"aria-describedby": g,
|
|
1352
|
+
sx: m,
|
|
1353
|
+
formControlSx: J,
|
|
1354
|
+
multiple: F = !1,
|
|
1354
1355
|
searchable: Z = !1,
|
|
1355
|
-
searchPlaceholder:
|
|
1356
|
-
onChange:
|
|
1357
|
-
renderOption:
|
|
1358
|
-
...
|
|
1359
|
-
},
|
|
1360
|
-
const [
|
|
1361
|
-
if (!(!
|
|
1362
|
-
return
|
|
1363
|
-
}, [
|
|
1364
|
-
(
|
|
1365
|
-
const
|
|
1366
|
-
|
|
1356
|
+
searchPlaceholder: Y,
|
|
1357
|
+
onChange: y,
|
|
1358
|
+
renderOption: $,
|
|
1359
|
+
...V
|
|
1360
|
+
}, w) => {
|
|
1361
|
+
const [L, I, j] = De(t), C = te(() => {
|
|
1362
|
+
if (!(!I.touched || !I.error))
|
|
1363
|
+
return D ? D(I.error) : I.error;
|
|
1364
|
+
}, [I.touched, I.error, D]), O = te(() => C || h, [C, h]), Q = M(
|
|
1365
|
+
(b) => {
|
|
1366
|
+
const k = b.target.value;
|
|
1367
|
+
j.setValue(k), y && y(k);
|
|
1367
1368
|
},
|
|
1368
|
-
[
|
|
1369
|
-
),
|
|
1370
|
-
(
|
|
1371
|
-
if (
|
|
1372
|
-
const
|
|
1373
|
-
|
|
1369
|
+
[j, y]
|
|
1370
|
+
), B = M(
|
|
1371
|
+
(b, k) => {
|
|
1372
|
+
if (F) {
|
|
1373
|
+
const x = Array.isArray(k) ? k.map((T) => T.value) : [];
|
|
1374
|
+
j.setValue(x), y && y(x);
|
|
1374
1375
|
} else {
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1376
|
+
const x = k && !Array.isArray(k) ? k.value : "";
|
|
1377
|
+
j.setValue(x), y && y(x);
|
|
1377
1378
|
}
|
|
1378
1379
|
},
|
|
1379
|
-
[
|
|
1380
|
-
),
|
|
1381
|
-
return Z ? /* @__PURE__ */
|
|
1382
|
-
|
|
1380
|
+
[j, y, F]
|
|
1381
|
+
), q = `${t}-select`;
|
|
1382
|
+
return Z ? /* @__PURE__ */ s.jsx(
|
|
1383
|
+
Qe,
|
|
1383
1384
|
{
|
|
1384
|
-
ref:
|
|
1385
|
-
options:
|
|
1386
|
-
getOptionLabel: (
|
|
1387
|
-
value:
|
|
1388
|
-
(
|
|
1389
|
-
var
|
|
1390
|
-
return (
|
|
1385
|
+
ref: w,
|
|
1386
|
+
options: i,
|
|
1387
|
+
getOptionLabel: (b) => b.label,
|
|
1388
|
+
value: F ? i.filter(
|
|
1389
|
+
(b) => {
|
|
1390
|
+
var k;
|
|
1391
|
+
return (k = L.value) == null ? void 0 : k.includes(b.value);
|
|
1391
1392
|
}
|
|
1392
|
-
) :
|
|
1393
|
-
onChange:
|
|
1394
|
-
multiple:
|
|
1395
|
-
disabled:
|
|
1393
|
+
) : i.find((b) => b.value === L.value) || null,
|
|
1394
|
+
onChange: B,
|
|
1395
|
+
multiple: F,
|
|
1396
|
+
disabled: n,
|
|
1396
1397
|
fullWidth: f,
|
|
1397
|
-
renderInput: (
|
|
1398
|
-
|
|
1398
|
+
renderInput: (b) => /* @__PURE__ */ s.jsx(
|
|
1399
|
+
Me,
|
|
1399
1400
|
{
|
|
1400
|
-
...
|
|
1401
|
+
...b,
|
|
1401
1402
|
name: t,
|
|
1402
1403
|
label: r,
|
|
1403
|
-
placeholder:
|
|
1404
|
+
placeholder: Y || o,
|
|
1404
1405
|
required: a,
|
|
1405
|
-
error:
|
|
1406
|
-
helperText:
|
|
1407
|
-
className:
|
|
1408
|
-
autoFocus:
|
|
1406
|
+
error: I.touched && !!I.error,
|
|
1407
|
+
helperText: O,
|
|
1408
|
+
className: u,
|
|
1409
|
+
autoFocus: _,
|
|
1409
1410
|
inputProps: {
|
|
1410
|
-
...
|
|
1411
|
-
"aria-label":
|
|
1412
|
-
"aria-describedby":
|
|
1413
|
-
"aria-invalid":
|
|
1411
|
+
...b.inputProps,
|
|
1412
|
+
"aria-label": p,
|
|
1413
|
+
"aria-describedby": g || (C ? `${t}-error` : void 0),
|
|
1414
|
+
"aria-invalid": I.touched && I.error ? !0 : void 0
|
|
1414
1415
|
},
|
|
1415
|
-
sx:
|
|
1416
|
+
sx: m
|
|
1416
1417
|
}
|
|
1417
1418
|
),
|
|
1418
|
-
renderOption: (
|
|
1419
|
-
getOptionDisabled: (
|
|
1420
|
-
if (typeof
|
|
1421
|
-
return
|
|
1422
|
-
const
|
|
1423
|
-
return (
|
|
1419
|
+
renderOption: (b, k) => /* @__PURE__ */ Xe("li", { ...b, key: k.value }, $ ? $(k, i.indexOf(k)) : k.label),
|
|
1420
|
+
getOptionDisabled: (b) => {
|
|
1421
|
+
if (typeof b == "object")
|
|
1422
|
+
return b.disabled || !1;
|
|
1423
|
+
const k = i.find((x) => x.value === b);
|
|
1424
|
+
return (k == null ? void 0 : k.disabled) || !1;
|
|
1424
1425
|
}
|
|
1425
1426
|
}
|
|
1426
|
-
) : /* @__PURE__ */
|
|
1427
|
-
|
|
1427
|
+
) : /* @__PURE__ */ s.jsxs(
|
|
1428
|
+
Le,
|
|
1428
1429
|
{
|
|
1429
|
-
ref:
|
|
1430
|
+
ref: w,
|
|
1430
1431
|
fullWidth: f,
|
|
1431
|
-
error:
|
|
1432
|
-
className:
|
|
1433
|
-
disabled:
|
|
1432
|
+
error: I.touched && !!I.error,
|
|
1433
|
+
className: u,
|
|
1434
|
+
disabled: n,
|
|
1434
1435
|
required: a,
|
|
1435
|
-
sx:
|
|
1436
|
+
sx: J,
|
|
1436
1437
|
children: [
|
|
1437
|
-
r && /* @__PURE__ */
|
|
1438
|
-
/* @__PURE__ */
|
|
1439
|
-
|
|
1438
|
+
r && /* @__PURE__ */ s.jsx(Er, { id: `${q}-label`, required: a, children: r }),
|
|
1439
|
+
/* @__PURE__ */ s.jsxs(
|
|
1440
|
+
jr,
|
|
1440
1441
|
{
|
|
1441
|
-
labelId: r ? `${
|
|
1442
|
-
id:
|
|
1442
|
+
labelId: r ? `${q}-label` : void 0,
|
|
1443
|
+
id: q,
|
|
1443
1444
|
name: t,
|
|
1444
|
-
value:
|
|
1445
|
-
onChange:
|
|
1446
|
-
onBlur:
|
|
1445
|
+
value: L.value ?? (F ? [] : ""),
|
|
1446
|
+
onChange: Q,
|
|
1447
|
+
onBlur: L.onBlur,
|
|
1447
1448
|
label: r,
|
|
1448
1449
|
displayEmpty: !!o,
|
|
1449
|
-
multiple:
|
|
1450
|
-
autoFocus:
|
|
1450
|
+
multiple: F,
|
|
1451
|
+
autoFocus: _,
|
|
1451
1452
|
inputProps: {
|
|
1452
|
-
"aria-label":
|
|
1453
|
-
"aria-describedby":
|
|
1454
|
-
"aria-invalid":
|
|
1453
|
+
"aria-label": p,
|
|
1454
|
+
"aria-describedby": g || (C ? `${t}-error` : void 0),
|
|
1455
|
+
"aria-invalid": I.touched && I.error ? !0 : void 0
|
|
1455
1456
|
},
|
|
1456
|
-
sx:
|
|
1457
|
-
...
|
|
1457
|
+
sx: m,
|
|
1458
|
+
...V,
|
|
1458
1459
|
children: [
|
|
1459
|
-
o && /* @__PURE__ */
|
|
1460
|
-
|
|
1461
|
-
|
|
1460
|
+
o && /* @__PURE__ */ s.jsx(Ee, { value: F ? [] : "", disabled: !0, children: o }),
|
|
1461
|
+
i.map((b) => /* @__PURE__ */ s.jsx(
|
|
1462
|
+
Ee,
|
|
1462
1463
|
{
|
|
1463
|
-
value:
|
|
1464
|
-
disabled:
|
|
1465
|
-
children:
|
|
1464
|
+
value: b.value,
|
|
1465
|
+
disabled: b.disabled,
|
|
1466
|
+
children: $ ? $(b, i.indexOf(b)) : b.label
|
|
1466
1467
|
},
|
|
1467
|
-
|
|
1468
|
+
b.value
|
|
1468
1469
|
))
|
|
1469
1470
|
]
|
|
1470
1471
|
}
|
|
1471
1472
|
),
|
|
1472
|
-
|
|
1473
|
+
O && /* @__PURE__ */ s.jsx(qe, { children: O })
|
|
1473
1474
|
]
|
|
1474
1475
|
}
|
|
1475
1476
|
);
|
|
1476
1477
|
}
|
|
1477
1478
|
);
|
|
1478
|
-
|
|
1479
|
-
const
|
|
1479
|
+
Vt.displayName = "FormikDropdown";
|
|
1480
|
+
const Lt = Ce(
|
|
1480
1481
|
({
|
|
1481
1482
|
name: t,
|
|
1482
|
-
options:
|
|
1483
|
+
options: i = [],
|
|
1483
1484
|
label: r,
|
|
1484
1485
|
placeholder: o,
|
|
1485
|
-
className:
|
|
1486
|
-
disabled:
|
|
1486
|
+
className: u,
|
|
1487
|
+
disabled: n = !1,
|
|
1487
1488
|
required: a = !1,
|
|
1488
1489
|
fullWidth: f = !0,
|
|
1489
1490
|
helperText: h,
|
|
1490
|
-
autoFocus:
|
|
1491
|
-
errorMessageFormatter:
|
|
1492
|
-
"aria-label":
|
|
1493
|
-
"aria-describedby":
|
|
1494
|
-
sx:
|
|
1495
|
-
formControlSx:
|
|
1496
|
-
searchable:
|
|
1491
|
+
autoFocus: _,
|
|
1492
|
+
errorMessageFormatter: D,
|
|
1493
|
+
"aria-label": p,
|
|
1494
|
+
"aria-describedby": g,
|
|
1495
|
+
sx: m,
|
|
1496
|
+
formControlSx: J,
|
|
1497
|
+
searchable: F = !1,
|
|
1497
1498
|
searchPlaceholder: Z,
|
|
1498
|
-
onChange:
|
|
1499
|
-
renderOption:
|
|
1500
|
-
renderValue:
|
|
1501
|
-
chipMaxWidth:
|
|
1502
|
-
...
|
|
1503
|
-
},
|
|
1504
|
-
const [
|
|
1505
|
-
if (!(!
|
|
1506
|
-
return
|
|
1507
|
-
}, [
|
|
1508
|
-
(
|
|
1509
|
-
const T =
|
|
1510
|
-
|
|
1499
|
+
onChange: Y,
|
|
1500
|
+
renderOption: y,
|
|
1501
|
+
renderValue: $,
|
|
1502
|
+
chipMaxWidth: V,
|
|
1503
|
+
...w
|
|
1504
|
+
}, L) => {
|
|
1505
|
+
const [I, j, C] = De(t), O = te(() => {
|
|
1506
|
+
if (!(!j.touched || !j.error))
|
|
1507
|
+
return D ? D(j.error) : j.error;
|
|
1508
|
+
}, [j.touched, j.error, D]), Q = te(() => O || h, [O, h]), B = M(
|
|
1509
|
+
(x) => {
|
|
1510
|
+
const T = x.target.value;
|
|
1511
|
+
C.setValue(T), Y && Y(T);
|
|
1511
1512
|
},
|
|
1512
|
-
[
|
|
1513
|
-
),
|
|
1514
|
-
(
|
|
1515
|
-
const A = T.map((
|
|
1516
|
-
|
|
1513
|
+
[C, Y]
|
|
1514
|
+
), q = M(
|
|
1515
|
+
(x, T) => {
|
|
1516
|
+
const A = T.map((W) => W.value);
|
|
1517
|
+
C.setValue(A), Y && Y(A);
|
|
1517
1518
|
},
|
|
1518
|
-
[
|
|
1519
|
-
),
|
|
1520
|
-
(
|
|
1521
|
-
const A =
|
|
1522
|
-
return /* @__PURE__ */
|
|
1523
|
-
|
|
1519
|
+
[C, Y]
|
|
1520
|
+
), b = M(
|
|
1521
|
+
(x) => x.length === 0 ? o || "" : /* @__PURE__ */ s.jsx(ce, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5 }, children: x.map((T) => {
|
|
1522
|
+
const A = i.find((W) => W.value === T);
|
|
1523
|
+
return /* @__PURE__ */ s.jsx(
|
|
1524
|
+
He,
|
|
1524
1525
|
{
|
|
1525
1526
|
label: (A == null ? void 0 : A.label) || String(T),
|
|
1526
1527
|
size: "small",
|
|
1527
1528
|
sx: {
|
|
1528
|
-
maxWidth:
|
|
1529
|
+
maxWidth: V,
|
|
1529
1530
|
"& .MuiChip-label": {
|
|
1530
|
-
overflow:
|
|
1531
|
-
textOverflow:
|
|
1531
|
+
overflow: V ? "hidden" : "visible",
|
|
1532
|
+
textOverflow: V ? "ellipsis" : "clip"
|
|
1532
1533
|
}
|
|
1533
1534
|
}
|
|
1534
1535
|
},
|
|
1535
1536
|
T
|
|
1536
1537
|
);
|
|
1537
1538
|
}) }),
|
|
1538
|
-
[
|
|
1539
|
-
),
|
|
1540
|
-
return
|
|
1541
|
-
|
|
1539
|
+
[i, o, V]
|
|
1540
|
+
), k = `${t}-multiselect`;
|
|
1541
|
+
return F ? /* @__PURE__ */ s.jsx(
|
|
1542
|
+
Qe,
|
|
1542
1543
|
{
|
|
1543
|
-
ref:
|
|
1544
|
+
ref: L,
|
|
1544
1545
|
multiple: !0,
|
|
1545
|
-
options:
|
|
1546
|
-
getOptionLabel: (
|
|
1547
|
-
value:
|
|
1548
|
-
(
|
|
1546
|
+
options: i,
|
|
1547
|
+
getOptionLabel: (x) => x.label,
|
|
1548
|
+
value: i.filter(
|
|
1549
|
+
(x) => (I.value || []).includes(x.value)
|
|
1549
1550
|
),
|
|
1550
|
-
onChange:
|
|
1551
|
-
disabled:
|
|
1551
|
+
onChange: q,
|
|
1552
|
+
disabled: n,
|
|
1552
1553
|
fullWidth: f,
|
|
1553
|
-
renderInput: (
|
|
1554
|
-
|
|
1554
|
+
renderInput: (x) => /* @__PURE__ */ s.jsx(
|
|
1555
|
+
Me,
|
|
1555
1556
|
{
|
|
1556
|
-
...
|
|
1557
|
+
...x,
|
|
1557
1558
|
name: t,
|
|
1558
1559
|
label: r,
|
|
1559
1560
|
placeholder: Z || o,
|
|
1560
1561
|
required: a,
|
|
1561
|
-
error:
|
|
1562
|
-
helperText:
|
|
1563
|
-
className:
|
|
1564
|
-
autoFocus:
|
|
1562
|
+
error: j.touched && !!j.error,
|
|
1563
|
+
helperText: Q,
|
|
1564
|
+
className: u,
|
|
1565
|
+
autoFocus: _,
|
|
1565
1566
|
inputProps: {
|
|
1566
|
-
...
|
|
1567
|
-
"aria-label":
|
|
1568
|
-
"aria-describedby":
|
|
1569
|
-
"aria-invalid":
|
|
1567
|
+
...x.inputProps,
|
|
1568
|
+
"aria-label": p,
|
|
1569
|
+
"aria-describedby": g || (O ? `${t}-error` : void 0),
|
|
1570
|
+
"aria-invalid": j.touched && j.error ? !0 : void 0
|
|
1570
1571
|
},
|
|
1571
|
-
sx:
|
|
1572
|
+
sx: m
|
|
1572
1573
|
}
|
|
1573
1574
|
),
|
|
1574
|
-
renderOption: (
|
|
1575
|
-
renderTags: (
|
|
1576
|
-
|
|
1575
|
+
renderOption: (x, T) => /* @__PURE__ */ Xe("li", { ...x, key: T.value }, y ? y(T, i.indexOf(T)) : T.label),
|
|
1576
|
+
renderTags: (x, T) => /* @__PURE__ */ s.jsx(ce, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5 }, children: x.map((A, W) => /* @__PURE__ */ Xe(
|
|
1577
|
+
He,
|
|
1577
1578
|
{
|
|
1578
|
-
...T({ index:
|
|
1579
|
+
...T({ index: W }),
|
|
1579
1580
|
key: A.value,
|
|
1580
1581
|
label: A.label,
|
|
1581
1582
|
size: "small",
|
|
1582
1583
|
sx: {
|
|
1583
|
-
maxWidth:
|
|
1584
|
+
maxWidth: V,
|
|
1584
1585
|
"& .MuiChip-label": {
|
|
1585
|
-
overflow:
|
|
1586
|
-
textOverflow:
|
|
1586
|
+
overflow: V ? "hidden" : "visible",
|
|
1587
|
+
textOverflow: V ? "ellipsis" : "clip"
|
|
1587
1588
|
}
|
|
1588
1589
|
}
|
|
1589
1590
|
}
|
|
1590
1591
|
)) }),
|
|
1591
|
-
getOptionDisabled: (
|
|
1592
|
+
getOptionDisabled: (x) => x.disabled || !1
|
|
1592
1593
|
}
|
|
1593
|
-
) : /* @__PURE__ */
|
|
1594
|
-
|
|
1594
|
+
) : /* @__PURE__ */ s.jsxs(
|
|
1595
|
+
Le,
|
|
1595
1596
|
{
|
|
1596
|
-
ref:
|
|
1597
|
+
ref: L,
|
|
1597
1598
|
fullWidth: f,
|
|
1598
|
-
error:
|
|
1599
|
-
className:
|
|
1600
|
-
disabled:
|
|
1599
|
+
error: j.touched && !!j.error,
|
|
1600
|
+
className: u,
|
|
1601
|
+
disabled: n,
|
|
1601
1602
|
required: a,
|
|
1602
|
-
sx:
|
|
1603
|
+
sx: J,
|
|
1603
1604
|
children: [
|
|
1604
|
-
r && /* @__PURE__ */
|
|
1605
|
-
/* @__PURE__ */
|
|
1606
|
-
|
|
1605
|
+
r && /* @__PURE__ */ s.jsx(Er, { id: `${k}-label`, required: a, children: r }),
|
|
1606
|
+
/* @__PURE__ */ s.jsxs(
|
|
1607
|
+
jr,
|
|
1607
1608
|
{
|
|
1608
|
-
labelId: r ? `${
|
|
1609
|
-
id:
|
|
1609
|
+
labelId: r ? `${k}-label` : void 0,
|
|
1610
|
+
id: k,
|
|
1610
1611
|
name: t,
|
|
1611
1612
|
multiple: !0,
|
|
1612
|
-
value:
|
|
1613
|
-
onChange:
|
|
1614
|
-
onBlur:
|
|
1613
|
+
value: I.value || [],
|
|
1614
|
+
onChange: B,
|
|
1615
|
+
onBlur: I.onBlur,
|
|
1615
1616
|
label: r,
|
|
1616
1617
|
displayEmpty: !!o,
|
|
1617
|
-
autoFocus:
|
|
1618
|
-
input: /* @__PURE__ */
|
|
1619
|
-
renderValue: (
|
|
1620
|
-
const T =
|
|
1621
|
-
return
|
|
1618
|
+
autoFocus: _,
|
|
1619
|
+
input: /* @__PURE__ */ s.jsx(Xr, { label: r }),
|
|
1620
|
+
renderValue: (x) => {
|
|
1621
|
+
const T = x;
|
|
1622
|
+
return $ ? $(T) : b(T);
|
|
1622
1623
|
},
|
|
1623
1624
|
inputProps: {
|
|
1624
|
-
"aria-label":
|
|
1625
|
-
"aria-describedby":
|
|
1626
|
-
"aria-invalid":
|
|
1625
|
+
"aria-label": p,
|
|
1626
|
+
"aria-describedby": g || (O ? `${t}-error` : void 0),
|
|
1627
|
+
"aria-invalid": j.touched && j.error ? !0 : void 0
|
|
1627
1628
|
},
|
|
1628
|
-
sx:
|
|
1629
|
-
...
|
|
1629
|
+
sx: m,
|
|
1630
|
+
...w,
|
|
1630
1631
|
children: [
|
|
1631
|
-
o && /* @__PURE__ */
|
|
1632
|
-
|
|
1633
|
-
|
|
1632
|
+
o && /* @__PURE__ */ s.jsx(Ee, { value: "", disabled: !0, children: o }),
|
|
1633
|
+
i.map((x) => /* @__PURE__ */ s.jsx(
|
|
1634
|
+
Ee,
|
|
1634
1635
|
{
|
|
1635
|
-
value:
|
|
1636
|
-
disabled:
|
|
1637
|
-
children:
|
|
1636
|
+
value: x.value,
|
|
1637
|
+
disabled: x.disabled,
|
|
1638
|
+
children: y ? y(x, i.indexOf(x)) : x.label
|
|
1638
1639
|
},
|
|
1639
|
-
|
|
1640
|
+
x.value
|
|
1640
1641
|
))
|
|
1641
1642
|
]
|
|
1642
1643
|
}
|
|
1643
1644
|
),
|
|
1644
|
-
|
|
1645
|
+
Q && /* @__PURE__ */ s.jsx(qe, { children: Q })
|
|
1645
1646
|
]
|
|
1646
1647
|
}
|
|
1647
1648
|
);
|
|
1648
1649
|
}
|
|
1649
1650
|
);
|
|
1650
|
-
|
|
1651
|
-
const
|
|
1651
|
+
Lt.displayName = "FormikMultiSelect";
|
|
1652
|
+
const qt = Ce(
|
|
1652
1653
|
({
|
|
1653
1654
|
name: t,
|
|
1654
|
-
label:
|
|
1655
|
+
label: i,
|
|
1655
1656
|
accept: r,
|
|
1656
1657
|
multiple: o = !1,
|
|
1657
|
-
maxFiles:
|
|
1658
|
-
maxSize:
|
|
1658
|
+
maxFiles: u,
|
|
1659
|
+
maxSize: n,
|
|
1659
1660
|
disabled: a = !1,
|
|
1660
1661
|
required: f = !1,
|
|
1661
1662
|
helperText: h,
|
|
1662
|
-
errorMessageFormatter:
|
|
1663
|
-
sx:
|
|
1664
|
-
onChange:
|
|
1665
|
-
renderPreview:
|
|
1666
|
-
showPreview:
|
|
1667
|
-
showFileSize:
|
|
1668
|
-
uploadButtonText:
|
|
1663
|
+
errorMessageFormatter: _,
|
|
1664
|
+
sx: D,
|
|
1665
|
+
onChange: p,
|
|
1666
|
+
renderPreview: g,
|
|
1667
|
+
showPreview: m = !0,
|
|
1668
|
+
showFileSize: J = !0,
|
|
1669
|
+
uploadButtonText: F = "Dosya Seç",
|
|
1669
1670
|
dragAndDrop: Z = !1,
|
|
1670
|
-
"aria-label":
|
|
1671
|
-
"aria-describedby":
|
|
1672
|
-
},
|
|
1673
|
-
const [
|
|
1674
|
-
if (!(!
|
|
1675
|
-
return
|
|
1676
|
-
}, [
|
|
1671
|
+
"aria-label": Y,
|
|
1672
|
+
"aria-describedby": y
|
|
1673
|
+
}, $) => {
|
|
1674
|
+
const [V, w, L] = De(t), [I, j] = he(!1), C = Ze.useRef(null), O = te(() => {
|
|
1675
|
+
if (!(!w.touched || !w.error))
|
|
1676
|
+
return _ ? _(w.error) : w.error;
|
|
1677
|
+
}, [w.touched, w.error, _]), Q = te(() => O || h, [O, h]), B = M((d) => {
|
|
1677
1678
|
if (d === 0) return "0 Bytes";
|
|
1678
|
-
const
|
|
1679
|
-
return Math.round(d / Math.pow(
|
|
1680
|
-
}, []),
|
|
1681
|
-
const
|
|
1682
|
-
return
|
|
1683
|
-
}, []),
|
|
1679
|
+
const z = 1024, H = ["Bytes", "KB", "MB", "GB"], ne = Math.floor(Math.log(d) / Math.log(z));
|
|
1680
|
+
return Math.round(d / Math.pow(z, ne) * 100) / 100 + " " + H[ne];
|
|
1681
|
+
}, []), q = M((d) => {
|
|
1682
|
+
const z = d.type;
|
|
1683
|
+
return z.startsWith("image/") ? /* @__PURE__ */ s.jsx(tt, {}) : z === "application/pdf" ? /* @__PURE__ */ s.jsx(nt, {}) : z.startsWith("text/") ? /* @__PURE__ */ s.jsx(it, {}) : /* @__PURE__ */ s.jsx(at, {});
|
|
1684
|
+
}, []), b = M(
|
|
1684
1685
|
(d) => {
|
|
1685
1686
|
if (f && d.length === 0)
|
|
1686
1687
|
return "En az bir dosya seçmelisiniz";
|
|
1687
|
-
if (
|
|
1688
|
-
return `Maksimum ${
|
|
1689
|
-
if (
|
|
1690
|
-
return `Bazı dosyalar çok büyük. Maksimum boyut: ${
|
|
1691
|
-
|
|
1688
|
+
if (u && d.length > u)
|
|
1689
|
+
return `Maksimum ${u} dosya seçebilirsiniz`;
|
|
1690
|
+
if (n && d.filter((H) => H.size > n).length > 0)
|
|
1691
|
+
return `Bazı dosyalar çok büyük. Maksimum boyut: ${B(
|
|
1692
|
+
n
|
|
1692
1693
|
)}`;
|
|
1693
1694
|
},
|
|
1694
|
-
[f,
|
|
1695
|
-
),
|
|
1695
|
+
[f, u, n, B]
|
|
1696
|
+
), k = M(
|
|
1696
1697
|
(d) => {
|
|
1697
1698
|
if (!d || d.length === 0) return;
|
|
1698
|
-
const
|
|
1699
|
-
if (
|
|
1700
|
-
|
|
1699
|
+
const z = Array.from(d), H = b(z);
|
|
1700
|
+
if (H) {
|
|
1701
|
+
L.setError(H);
|
|
1701
1702
|
return;
|
|
1702
1703
|
}
|
|
1703
|
-
const
|
|
1704
|
-
|
|
1704
|
+
const ne = o ? [...V.value || [], ...z] : z.slice(0, 1);
|
|
1705
|
+
L.setValue(ne), L.setError(void 0), p && p(ne);
|
|
1705
1706
|
},
|
|
1706
|
-
[
|
|
1707
|
-
),
|
|
1707
|
+
[V.value, o, b, L, p]
|
|
1708
|
+
), x = M(
|
|
1708
1709
|
(d) => {
|
|
1709
|
-
|
|
1710
|
+
k(d.target.files);
|
|
1710
1711
|
},
|
|
1711
|
-
[
|
|
1712
|
-
), T =
|
|
1712
|
+
[k]
|
|
1713
|
+
), T = M(
|
|
1713
1714
|
(d) => {
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1715
|
+
const z = (V.value || []).filter((H, ne) => ne !== d);
|
|
1716
|
+
L.setValue(z.length > 0 ? z : []), L.setError(void 0), p && p(z);
|
|
1716
1717
|
},
|
|
1717
|
-
[
|
|
1718
|
-
), A =
|
|
1718
|
+
[V.value, L, p]
|
|
1719
|
+
), A = M(
|
|
1719
1720
|
(d) => {
|
|
1720
|
-
d.preventDefault(), d.stopPropagation(), Z && !a &&
|
|
1721
|
+
d.preventDefault(), d.stopPropagation(), Z && !a && j(!0);
|
|
1721
1722
|
},
|
|
1722
1723
|
[Z, a]
|
|
1723
|
-
),
|
|
1724
|
-
d.preventDefault(), d.stopPropagation(),
|
|
1725
|
-
}, []),
|
|
1724
|
+
), W = M((d) => {
|
|
1725
|
+
d.preventDefault(), d.stopPropagation(), j(!1);
|
|
1726
|
+
}, []), me = M((d) => {
|
|
1726
1727
|
d.preventDefault(), d.stopPropagation();
|
|
1727
|
-
}, []),
|
|
1728
|
+
}, []), R = M(
|
|
1728
1729
|
(d) => {
|
|
1729
|
-
if (d.preventDefault(), d.stopPropagation(),
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1730
|
+
if (d.preventDefault(), d.stopPropagation(), j(!1), a) return;
|
|
1731
|
+
const z = d.dataTransfer.files;
|
|
1732
|
+
k(z);
|
|
1732
1733
|
},
|
|
1733
|
-
[a,
|
|
1734
|
-
),
|
|
1735
|
-
(d,
|
|
1736
|
-
const
|
|
1737
|
-
return /* @__PURE__ */
|
|
1738
|
-
|
|
1734
|
+
[a, k]
|
|
1735
|
+
), pe = M(
|
|
1736
|
+
(d, z) => {
|
|
1737
|
+
const H = d.type.startsWith("image/"), ne = H ? URL.createObjectURL(d) : null;
|
|
1738
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1739
|
+
Hr,
|
|
1739
1740
|
{
|
|
1740
1741
|
elevation: 2,
|
|
1741
1742
|
sx: {
|
|
@@ -1746,11 +1747,11 @@ const St = xe(
|
|
|
1746
1747
|
gap: 2
|
|
1747
1748
|
},
|
|
1748
1749
|
children: [
|
|
1749
|
-
|
|
1750
|
-
|
|
1750
|
+
H && ne ? /* @__PURE__ */ s.jsx(
|
|
1751
|
+
ce,
|
|
1751
1752
|
{
|
|
1752
1753
|
component: "img",
|
|
1753
|
-
src:
|
|
1754
|
+
src: ne,
|
|
1754
1755
|
alt: d.name,
|
|
1755
1756
|
sx: {
|
|
1756
1757
|
width: 60,
|
|
@@ -1759,141 +1760,141 @@ const St = xe(
|
|
|
1759
1760
|
borderRadius: 1
|
|
1760
1761
|
}
|
|
1761
1762
|
}
|
|
1762
|
-
) : /* @__PURE__ */
|
|
1763
|
-
/* @__PURE__ */
|
|
1764
|
-
/* @__PURE__ */
|
|
1765
|
-
|
|
1763
|
+
) : /* @__PURE__ */ s.jsx(ce, { sx: { fontSize: 40, color: "text.secondary" }, children: q(d) }),
|
|
1764
|
+
/* @__PURE__ */ s.jsxs(ce, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
1765
|
+
/* @__PURE__ */ s.jsx(be, { variant: "body2", noWrap: !0, children: d.name }),
|
|
1766
|
+
J && /* @__PURE__ */ s.jsx(be, { variant: "caption", color: "text.secondary", children: B(d.size) })
|
|
1766
1767
|
] }),
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
-
|
|
1768
|
+
/* @__PURE__ */ s.jsx(
|
|
1769
|
+
Ne,
|
|
1769
1770
|
{
|
|
1770
1771
|
size: "small",
|
|
1771
|
-
onClick: () => T(
|
|
1772
|
+
onClick: () => T(z),
|
|
1772
1773
|
disabled: a,
|
|
1773
1774
|
"aria-label": "Dosyayı kaldır",
|
|
1774
|
-
children: /* @__PURE__ */
|
|
1775
|
+
children: /* @__PURE__ */ s.jsx(hr, {})
|
|
1775
1776
|
}
|
|
1776
1777
|
)
|
|
1777
1778
|
]
|
|
1778
1779
|
},
|
|
1779
|
-
`${d.name}-${
|
|
1780
|
+
`${d.name}-${z}`
|
|
1780
1781
|
);
|
|
1781
1782
|
},
|
|
1782
|
-
[
|
|
1783
|
-
),
|
|
1784
|
-
return /* @__PURE__ */
|
|
1785
|
-
|
|
1783
|
+
[q, B, J, T, a]
|
|
1784
|
+
), oe = V.value || [];
|
|
1785
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1786
|
+
ce,
|
|
1786
1787
|
{
|
|
1787
|
-
ref:
|
|
1788
|
+
ref: $,
|
|
1788
1789
|
sx: {
|
|
1789
1790
|
width: "100%",
|
|
1790
|
-
|
|
1791
|
+
...D
|
|
1791
1792
|
},
|
|
1792
1793
|
children: [
|
|
1793
|
-
|
|
1794
|
-
|
|
1794
|
+
i && /* @__PURE__ */ s.jsxs(
|
|
1795
|
+
be,
|
|
1795
1796
|
{
|
|
1796
1797
|
variant: "body2",
|
|
1797
1798
|
sx: { mb: 1, fontWeight: 500 },
|
|
1798
1799
|
component: "label",
|
|
1799
1800
|
children: [
|
|
1800
|
-
|
|
1801
|
-
f && /* @__PURE__ */
|
|
1801
|
+
i,
|
|
1802
|
+
f && /* @__PURE__ */ s.jsx("span", { style: { color: "red" }, children: " *" })
|
|
1802
1803
|
]
|
|
1803
1804
|
}
|
|
1804
1805
|
),
|
|
1805
|
-
/* @__PURE__ */
|
|
1806
|
-
|
|
1806
|
+
/* @__PURE__ */ s.jsxs(
|
|
1807
|
+
ce,
|
|
1807
1808
|
{
|
|
1808
1809
|
onDragEnter: A,
|
|
1809
|
-
onDragOver:
|
|
1810
|
-
onDragLeave:
|
|
1811
|
-
onDrop:
|
|
1810
|
+
onDragOver: me,
|
|
1811
|
+
onDragLeave: W,
|
|
1812
|
+
onDrop: R,
|
|
1812
1813
|
sx: {
|
|
1813
|
-
border: `2px dashed ${
|
|
1814
|
+
border: `2px dashed ${I ? "primary.main" : w.touched && w.error ? "error.main" : "divider"}`,
|
|
1814
1815
|
borderRadius: 2,
|
|
1815
1816
|
p: 3,
|
|
1816
1817
|
textAlign: "center",
|
|
1817
|
-
backgroundColor:
|
|
1818
|
+
backgroundColor: I ? "action.hover" : "background.paper",
|
|
1818
1819
|
transition: "all 0.3s ease",
|
|
1819
1820
|
cursor: a ? "not-allowed" : "pointer",
|
|
1820
1821
|
opacity: a ? 0.6 : 1
|
|
1821
1822
|
},
|
|
1822
1823
|
onClick: () => {
|
|
1823
1824
|
var d;
|
|
1824
|
-
return !a && ((d =
|
|
1825
|
+
return !a && ((d = C.current) == null ? void 0 : d.click());
|
|
1825
1826
|
},
|
|
1826
|
-
"aria-label":
|
|
1827
|
-
"aria-describedby":
|
|
1828
|
-
"aria-invalid":
|
|
1827
|
+
"aria-label": Y || i || "Dosya yükleme alanı",
|
|
1828
|
+
"aria-describedby": y || (O ? `${t}-error` : void 0),
|
|
1829
|
+
"aria-invalid": w.touched && w.error ? !0 : void 0,
|
|
1829
1830
|
children: [
|
|
1830
|
-
/* @__PURE__ */
|
|
1831
|
+
/* @__PURE__ */ s.jsx(
|
|
1831
1832
|
"input",
|
|
1832
1833
|
{
|
|
1833
|
-
ref:
|
|
1834
|
+
ref: C,
|
|
1834
1835
|
type: "file",
|
|
1835
1836
|
accept: r,
|
|
1836
1837
|
multiple: o,
|
|
1837
|
-
onChange:
|
|
1838
|
+
onChange: x,
|
|
1838
1839
|
style: { display: "none" },
|
|
1839
1840
|
disabled: a,
|
|
1840
|
-
"aria-label":
|
|
1841
|
+
"aria-label": Y || i
|
|
1841
1842
|
}
|
|
1842
1843
|
),
|
|
1843
|
-
/* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1845
|
-
r && /* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ s.jsx(st, { sx: { fontSize: 48, color: "text.secondary", mb: 1 } }),
|
|
1845
|
+
/* @__PURE__ */ s.jsx(be, { variant: "body1", sx: { mb: 1 }, children: Z ? "Dosyaları buraya sürükleyin veya tıklayın" : F }),
|
|
1846
|
+
r && /* @__PURE__ */ s.jsxs(be, { variant: "caption", color: "text.secondary", children: [
|
|
1846
1847
|
"Kabul edilen formatlar: ",
|
|
1847
1848
|
r
|
|
1848
1849
|
] }),
|
|
1849
|
-
|
|
1850
|
-
|
|
1850
|
+
n && /* @__PURE__ */ s.jsxs(
|
|
1851
|
+
be,
|
|
1851
1852
|
{
|
|
1852
1853
|
variant: "caption",
|
|
1853
1854
|
color: "text.secondary",
|
|
1854
1855
|
display: "block",
|
|
1855
1856
|
children: [
|
|
1856
1857
|
"Maksimum dosya boyutu: ",
|
|
1857
|
-
|
|
1858
|
+
B(n)
|
|
1858
1859
|
]
|
|
1859
1860
|
}
|
|
1860
1861
|
),
|
|
1861
|
-
|
|
1862
|
-
|
|
1862
|
+
u && /* @__PURE__ */ s.jsxs(
|
|
1863
|
+
be,
|
|
1863
1864
|
{
|
|
1864
1865
|
variant: "caption",
|
|
1865
1866
|
color: "text.secondary",
|
|
1866
1867
|
display: "block",
|
|
1867
1868
|
children: [
|
|
1868
1869
|
"Maksimum dosya sayısı: ",
|
|
1869
|
-
|
|
1870
|
+
u
|
|
1870
1871
|
]
|
|
1871
1872
|
}
|
|
1872
1873
|
)
|
|
1873
1874
|
]
|
|
1874
1875
|
}
|
|
1875
1876
|
),
|
|
1876
|
-
|
|
1877
|
-
(d,
|
|
1877
|
+
m && oe.length > 0 && /* @__PURE__ */ s.jsx(ce, { sx: { mt: 2 }, children: oe.map(
|
|
1878
|
+
(d, z) => g ? /* @__PURE__ */ s.jsx(ce, { children: g(d, z) }, `${d.name}-${z}`) : pe(d, z)
|
|
1878
1879
|
) }),
|
|
1879
|
-
!
|
|
1880
|
-
|
|
1880
|
+
!m && oe.length > 0 && /* @__PURE__ */ s.jsx(ce, { sx: { mt: 2, display: "flex", flexWrap: "wrap", gap: 1 }, children: oe.map((d, z) => /* @__PURE__ */ s.jsx(
|
|
1881
|
+
He,
|
|
1881
1882
|
{
|
|
1882
|
-
label: `${d.name} (${
|
|
1883
|
-
onDelete: () => T(
|
|
1884
|
-
deleteIcon: /* @__PURE__ */
|
|
1883
|
+
label: `${d.name} (${B(d.size)})`,
|
|
1884
|
+
onDelete: () => T(z),
|
|
1885
|
+
deleteIcon: /* @__PURE__ */ s.jsx(hr, {}),
|
|
1885
1886
|
disabled: a
|
|
1886
1887
|
},
|
|
1887
|
-
`${d.name}-${
|
|
1888
|
+
`${d.name}-${z}`
|
|
1888
1889
|
)) }),
|
|
1889
|
-
|
|
1890
|
-
|
|
1890
|
+
Q && /* @__PURE__ */ s.jsx(
|
|
1891
|
+
be,
|
|
1891
1892
|
{
|
|
1892
1893
|
variant: "caption",
|
|
1893
|
-
color:
|
|
1894
|
+
color: w.touched && w.error ? "error" : "text.secondary",
|
|
1894
1895
|
sx: { mt: 1, display: "block" },
|
|
1895
|
-
id:
|
|
1896
|
-
children:
|
|
1896
|
+
id: O ? `${t}-error` : void 0,
|
|
1897
|
+
children: Q
|
|
1897
1898
|
}
|
|
1898
1899
|
)
|
|
1899
1900
|
]
|
|
@@ -1901,203 +1902,605 @@ const St = xe(
|
|
|
1901
1902
|
);
|
|
1902
1903
|
}
|
|
1903
1904
|
);
|
|
1904
|
-
|
|
1905
|
-
const
|
|
1905
|
+
qt.displayName = "FormikUploadSection";
|
|
1906
|
+
const Gt = Ce(
|
|
1906
1907
|
({
|
|
1907
1908
|
name: t,
|
|
1908
|
-
options:
|
|
1909
|
+
options: i = [],
|
|
1909
1910
|
label: r,
|
|
1910
1911
|
className: o,
|
|
1911
|
-
disabled:
|
|
1912
|
-
required:
|
|
1912
|
+
disabled: u = !1,
|
|
1913
|
+
required: n = !1,
|
|
1913
1914
|
helperText: a,
|
|
1914
1915
|
errorMessageFormatter: f,
|
|
1915
1916
|
sx: h,
|
|
1916
|
-
formControlSx:
|
|
1917
|
-
labelSx:
|
|
1918
|
-
onChange:
|
|
1919
|
-
row:
|
|
1920
|
-
renderOption:
|
|
1921
|
-
"aria-label":
|
|
1922
|
-
"aria-describedby":
|
|
1917
|
+
formControlSx: _,
|
|
1918
|
+
labelSx: D,
|
|
1919
|
+
onChange: p,
|
|
1920
|
+
row: g = !1,
|
|
1921
|
+
renderOption: m,
|
|
1922
|
+
"aria-label": J,
|
|
1923
|
+
"aria-describedby": F,
|
|
1923
1924
|
...Z
|
|
1924
|
-
},
|
|
1925
|
-
const [
|
|
1926
|
-
if (!(
|
|
1927
|
-
return f ? f(
|
|
1928
|
-
}, [
|
|
1929
|
-
(
|
|
1930
|
-
const
|
|
1931
|
-
|
|
1925
|
+
}, Y) => {
|
|
1926
|
+
const [y, $, V] = De(t), w = te(() => {
|
|
1927
|
+
if (!(!$.touched || !$.error))
|
|
1928
|
+
return f ? f($.error) : $.error;
|
|
1929
|
+
}, [$.touched, $.error, f]), L = te(() => w || a, [w, a]), I = M(
|
|
1930
|
+
(j) => {
|
|
1931
|
+
const C = j.target.value, O = i.find((B) => String(B.value) === C), Q = (O == null ? void 0 : O.value) || C;
|
|
1932
|
+
V.setValue(Q), p && p(Q);
|
|
1932
1933
|
},
|
|
1933
|
-
[
|
|
1934
|
+
[V, p, i]
|
|
1934
1935
|
);
|
|
1935
|
-
return /* @__PURE__ */
|
|
1936
|
-
|
|
1936
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1937
|
+
Le,
|
|
1937
1938
|
{
|
|
1938
|
-
ref:
|
|
1939
|
+
ref: Y,
|
|
1939
1940
|
component: "fieldset",
|
|
1940
|
-
error:
|
|
1941
|
+
error: $.touched && !!$.error,
|
|
1941
1942
|
className: o,
|
|
1942
|
-
disabled:
|
|
1943
|
-
required:
|
|
1943
|
+
disabled: u,
|
|
1944
|
+
required: n,
|
|
1944
1945
|
fullWidth: !0,
|
|
1945
|
-
sx:
|
|
1946
|
+
sx: _,
|
|
1946
1947
|
children: [
|
|
1947
|
-
r && /* @__PURE__ */
|
|
1948
|
-
/* @__PURE__ */
|
|
1949
|
-
|
|
1948
|
+
r && /* @__PURE__ */ s.jsx(kr, { component: "legend", sx: D, required: n, children: r }),
|
|
1949
|
+
/* @__PURE__ */ s.jsx(
|
|
1950
|
+
Jr,
|
|
1950
1951
|
{
|
|
1951
1952
|
name: t,
|
|
1952
|
-
value:
|
|
1953
|
-
onChange:
|
|
1954
|
-
onBlur:
|
|
1955
|
-
row:
|
|
1956
|
-
"aria-label":
|
|
1957
|
-
"aria-describedby":
|
|
1958
|
-
"aria-invalid":
|
|
1953
|
+
value: y.value ?? "",
|
|
1954
|
+
onChange: I,
|
|
1955
|
+
onBlur: y.onBlur,
|
|
1956
|
+
row: g,
|
|
1957
|
+
"aria-label": J || r,
|
|
1958
|
+
"aria-describedby": F || (w ? `${t}-error` : void 0),
|
|
1959
|
+
"aria-invalid": $.touched && $.error ? !0 : void 0,
|
|
1959
1960
|
sx: h,
|
|
1960
1961
|
...Z,
|
|
1961
|
-
children:
|
|
1962
|
-
|
|
1962
|
+
children: i.map((j, C) => /* @__PURE__ */ s.jsx(
|
|
1963
|
+
Rr,
|
|
1963
1964
|
{
|
|
1964
|
-
value: String(
|
|
1965
|
-
control: /* @__PURE__ */
|
|
1966
|
-
label:
|
|
1967
|
-
disabled:
|
|
1965
|
+
value: String(j.value),
|
|
1966
|
+
control: /* @__PURE__ */ s.jsx(Zr, {}),
|
|
1967
|
+
label: m ? m(j, C) : j.label,
|
|
1968
|
+
disabled: j.disabled || u
|
|
1968
1969
|
},
|
|
1969
|
-
|
|
1970
|
+
j.value
|
|
1970
1971
|
))
|
|
1971
1972
|
}
|
|
1972
1973
|
),
|
|
1973
|
-
|
|
1974
|
+
L && /* @__PURE__ */ s.jsx(qe, { id: w ? `${t}-error` : void 0, children: L })
|
|
1974
1975
|
]
|
|
1975
1976
|
}
|
|
1976
1977
|
);
|
|
1977
1978
|
}
|
|
1978
1979
|
);
|
|
1979
|
-
|
|
1980
|
-
const
|
|
1980
|
+
Gt.displayName = "FormikRadioButton";
|
|
1981
|
+
const Ut = Ce(
|
|
1981
1982
|
({
|
|
1982
1983
|
name: t,
|
|
1983
|
-
options:
|
|
1984
|
+
options: i = [],
|
|
1984
1985
|
label: r,
|
|
1985
1986
|
className: o,
|
|
1986
|
-
disabled:
|
|
1987
|
-
required:
|
|
1987
|
+
disabled: u = !1,
|
|
1988
|
+
required: n = !1,
|
|
1988
1989
|
helperText: a,
|
|
1989
1990
|
errorMessageFormatter: f,
|
|
1990
1991
|
sx: h,
|
|
1991
|
-
formControlSx:
|
|
1992
|
-
labelSx:
|
|
1993
|
-
onChange:
|
|
1994
|
-
row:
|
|
1995
|
-
renderOption:
|
|
1996
|
-
"aria-label":
|
|
1997
|
-
"aria-describedby":
|
|
1992
|
+
formControlSx: _,
|
|
1993
|
+
labelSx: D,
|
|
1994
|
+
onChange: p,
|
|
1995
|
+
row: g = !1,
|
|
1996
|
+
renderOption: m,
|
|
1997
|
+
"aria-label": J,
|
|
1998
|
+
"aria-describedby": F,
|
|
1998
1999
|
...Z
|
|
1999
|
-
},
|
|
2000
|
-
const [
|
|
2001
|
-
if (!(
|
|
2002
|
-
return f ? f(
|
|
2003
|
-
}, [
|
|
2004
|
-
(
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2000
|
+
}, Y) => {
|
|
2001
|
+
const [y, $, V] = De(t), w = te(() => {
|
|
2002
|
+
if (!(!$.touched || !$.error))
|
|
2003
|
+
return f ? f($.error) : $.error;
|
|
2004
|
+
}, [$.touched, $.error, f]), L = te(() => w || a, [w, a]), I = M(
|
|
2005
|
+
(C) => {
|
|
2006
|
+
const O = y.value || [], B = O.includes(C) ? O.filter((q) => q !== C) : [...O, C];
|
|
2007
|
+
V.setValue(B), p && p(B);
|
|
2007
2008
|
},
|
|
2008
|
-
[
|
|
2009
|
-
),
|
|
2010
|
-
(
|
|
2011
|
-
[
|
|
2009
|
+
[y.value, V, p]
|
|
2010
|
+
), j = M(
|
|
2011
|
+
(C) => (y.value || []).includes(C),
|
|
2012
|
+
[y.value]
|
|
2012
2013
|
);
|
|
2013
|
-
return /* @__PURE__ */
|
|
2014
|
-
|
|
2014
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2015
|
+
Le,
|
|
2015
2016
|
{
|
|
2016
|
-
ref:
|
|
2017
|
+
ref: Y,
|
|
2017
2018
|
component: "fieldset",
|
|
2018
|
-
error:
|
|
2019
|
+
error: $.touched && !!$.error,
|
|
2019
2020
|
className: o,
|
|
2020
|
-
disabled:
|
|
2021
|
-
required:
|
|
2021
|
+
disabled: u,
|
|
2022
|
+
required: n,
|
|
2022
2023
|
fullWidth: !0,
|
|
2023
|
-
sx:
|
|
2024
|
+
sx: _,
|
|
2024
2025
|
children: [
|
|
2025
|
-
r && /* @__PURE__ */
|
|
2026
|
-
/* @__PURE__ */
|
|
2027
|
-
|
|
2026
|
+
r && /* @__PURE__ */ s.jsx(kr, { component: "legend", sx: D, required: n, children: r }),
|
|
2027
|
+
/* @__PURE__ */ s.jsx(
|
|
2028
|
+
Qr,
|
|
2028
2029
|
{
|
|
2029
|
-
row:
|
|
2030
|
-
"aria-label":
|
|
2031
|
-
"aria-describedby":
|
|
2032
|
-
"aria-invalid":
|
|
2030
|
+
row: g,
|
|
2031
|
+
"aria-label": J || r,
|
|
2032
|
+
"aria-describedby": F || (w ? `${t}-error` : void 0),
|
|
2033
|
+
"aria-invalid": $.touched && $.error ? !0 : void 0,
|
|
2033
2034
|
sx: h,
|
|
2034
2035
|
...Z,
|
|
2035
|
-
children:
|
|
2036
|
-
|
|
2036
|
+
children: i.map((C, O) => /* @__PURE__ */ s.jsx(
|
|
2037
|
+
Rr,
|
|
2037
2038
|
{
|
|
2038
|
-
control: /* @__PURE__ */
|
|
2039
|
-
|
|
2039
|
+
control: /* @__PURE__ */ s.jsx(
|
|
2040
|
+
et,
|
|
2040
2041
|
{
|
|
2041
|
-
checked:
|
|
2042
|
-
onChange: () =>
|
|
2043
|
-
onBlur:
|
|
2044
|
-
name: `${t}-${
|
|
2045
|
-
disabled:
|
|
2042
|
+
checked: j(C.value),
|
|
2043
|
+
onChange: () => I(C.value),
|
|
2044
|
+
onBlur: y.onBlur,
|
|
2045
|
+
name: `${t}-${C.value}`,
|
|
2046
|
+
disabled: C.disabled || u
|
|
2046
2047
|
}
|
|
2047
2048
|
),
|
|
2048
|
-
label:
|
|
2049
|
+
label: m ? m(C, O) : C.label
|
|
2049
2050
|
},
|
|
2050
|
-
|
|
2051
|
+
C.value
|
|
2051
2052
|
))
|
|
2052
2053
|
}
|
|
2053
2054
|
),
|
|
2054
|
-
|
|
2055
|
+
L && /* @__PURE__ */ s.jsx(qe, { id: w ? `${t}-error` : void 0, children: L })
|
|
2056
|
+
]
|
|
2057
|
+
}
|
|
2058
|
+
);
|
|
2059
|
+
}
|
|
2060
|
+
);
|
|
2061
|
+
Ut.displayName = "FormikCheckbox";
|
|
2062
|
+
const Yt = ({
|
|
2063
|
+
gridApi: t,
|
|
2064
|
+
label: i = "Excel'e Aktar",
|
|
2065
|
+
disabled: r = !1,
|
|
2066
|
+
columnMapping: o,
|
|
2067
|
+
dataTransform: u,
|
|
2068
|
+
onExport: n,
|
|
2069
|
+
fileName: a,
|
|
2070
|
+
sheetName: f = "Sheet1"
|
|
2071
|
+
}) => {
|
|
2072
|
+
const [h, _] = he(!1), D = M(async () => {
|
|
2073
|
+
if (!t) return [];
|
|
2074
|
+
const g = [];
|
|
2075
|
+
return t.forEachNode((m) => {
|
|
2076
|
+
m.data && g.push(m.data);
|
|
2077
|
+
}), g;
|
|
2078
|
+
}, [t]), p = M(async () => {
|
|
2079
|
+
if (!(!t || h)) {
|
|
2080
|
+
_(!0), t.showLoadingOverlay();
|
|
2081
|
+
try {
|
|
2082
|
+
const g = await D();
|
|
2083
|
+
if (g.length === 0) {
|
|
2084
|
+
t.hideOverlay(), _(!1);
|
|
2085
|
+
return;
|
|
2086
|
+
}
|
|
2087
|
+
let m = u ? u(g) : g;
|
|
2088
|
+
o && (m = m.map((J) => {
|
|
2089
|
+
const F = {};
|
|
2090
|
+
return Object.keys(o).forEach((Z) => {
|
|
2091
|
+
F[o[Z]] = J[Z];
|
|
2092
|
+
}), F;
|
|
2093
|
+
})), n ? await n(t, m) : console.warn(
|
|
2094
|
+
"Excel export requires xlsx library. Please provide onExport function or install xlsx."
|
|
2095
|
+
);
|
|
2096
|
+
} catch (g) {
|
|
2097
|
+
console.error("Excel export error:", g);
|
|
2098
|
+
} finally {
|
|
2099
|
+
t.hideOverlay(), _(!1);
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
}, [
|
|
2103
|
+
t,
|
|
2104
|
+
h,
|
|
2105
|
+
D,
|
|
2106
|
+
o,
|
|
2107
|
+
u,
|
|
2108
|
+
n,
|
|
2109
|
+
a,
|
|
2110
|
+
f,
|
|
2111
|
+
i
|
|
2112
|
+
]);
|
|
2113
|
+
return /* @__PURE__ */ s.jsx(
|
|
2114
|
+
ze,
|
|
2115
|
+
{
|
|
2116
|
+
startIcon: /* @__PURE__ */ s.jsx(lt, {}),
|
|
2117
|
+
onClick: p,
|
|
2118
|
+
disabled: r || !t || h,
|
|
2119
|
+
size: "small",
|
|
2120
|
+
variant: "outlined",
|
|
2121
|
+
sx: { mr: 1 },
|
|
2122
|
+
children: h ? "Aktarılıyor..." : i
|
|
2123
|
+
}
|
|
2124
|
+
);
|
|
2125
|
+
}, Wt = Ce(
|
|
2126
|
+
({
|
|
2127
|
+
name: t,
|
|
2128
|
+
label: i,
|
|
2129
|
+
columnDefs: r,
|
|
2130
|
+
dataSource: o,
|
|
2131
|
+
rowData: u,
|
|
2132
|
+
rowModelType: n = "clientSide",
|
|
2133
|
+
defaultColDef: a,
|
|
2134
|
+
pagination: f = !0,
|
|
2135
|
+
paginationPageSize: h = 20,
|
|
2136
|
+
cacheBlockSize: _ = 20,
|
|
2137
|
+
maxBlocksInCache: D = 1,
|
|
2138
|
+
rowSelection: p,
|
|
2139
|
+
rowHeight: g,
|
|
2140
|
+
headerHeight: m,
|
|
2141
|
+
animateRows: J = !0,
|
|
2142
|
+
suppressColumnVirtualisation: F = !1,
|
|
2143
|
+
suppressRowVirtualisation: Z = !1,
|
|
2144
|
+
localeText: Y,
|
|
2145
|
+
getRowStyle: y,
|
|
2146
|
+
className: $,
|
|
2147
|
+
sx: V,
|
|
2148
|
+
height: w = 600,
|
|
2149
|
+
width: L = "100%",
|
|
2150
|
+
theme: I = "ag-theme-alpine",
|
|
2151
|
+
onChange: j,
|
|
2152
|
+
onGridReady: C,
|
|
2153
|
+
toolbar: O,
|
|
2154
|
+
loading: Q = !1,
|
|
2155
|
+
disabled: B = !1,
|
|
2156
|
+
helperText: q,
|
|
2157
|
+
errorMessageFormatter: b,
|
|
2158
|
+
"aria-label": k,
|
|
2159
|
+
"aria-describedby": x
|
|
2160
|
+
}, T) => {
|
|
2161
|
+
var ke, Pe, Ie;
|
|
2162
|
+
const [A, W, me] = De(t), [R, pe] = he(null), [oe, d] = he(null), [z, H] = he(null), [ne, ue] = he(g || 48), se = te(() => {
|
|
2163
|
+
if (!(!W.touched || !W.error))
|
|
2164
|
+
return b ? b(W.error) : W.error;
|
|
2165
|
+
}, [W.touched, W.error, b]), ge = te(() => se || q, [se, q]), je = M(
|
|
2166
|
+
(E) => {
|
|
2167
|
+
if (pe(E.api), p && E.api) {
|
|
2168
|
+
const ie = E.api.getSelectedRows();
|
|
2169
|
+
me.setValue(ie);
|
|
2170
|
+
}
|
|
2171
|
+
C && C(E.api);
|
|
2172
|
+
},
|
|
2173
|
+
[p, me, C]
|
|
2174
|
+
);
|
|
2175
|
+
Oe(() => {
|
|
2176
|
+
if (!R || !p) return;
|
|
2177
|
+
const E = () => {
|
|
2178
|
+
const ie = R.getSelectedRows();
|
|
2179
|
+
me.setValue(ie), j && j(ie);
|
|
2180
|
+
};
|
|
2181
|
+
return R.addEventListener("selectionChanged", E), () => {
|
|
2182
|
+
R.removeEventListener("selectionChanged", E);
|
|
2183
|
+
};
|
|
2184
|
+
}, [R, p, me, j]), Oe(() => {
|
|
2185
|
+
!R || !p || !A.value || R.forEachNode((E) => {
|
|
2186
|
+
const ie = Array.isArray(A.value) ? A.value.some(
|
|
2187
|
+
(Ae) => Ae && E.data && JSON.stringify(Ae) === JSON.stringify(E.data)
|
|
2188
|
+
) : !1;
|
|
2189
|
+
E.setSelected(ie);
|
|
2190
|
+
});
|
|
2191
|
+
}, [R, p, A.value]), Oe(() => {
|
|
2192
|
+
R && (Q ? R.showLoadingOverlay() : R.hideOverlay());
|
|
2193
|
+
}, [R, Q]);
|
|
2194
|
+
const ve = te(
|
|
2195
|
+
() => ({
|
|
2196
|
+
sortable: !0,
|
|
2197
|
+
resizable: !0,
|
|
2198
|
+
filter: !0,
|
|
2199
|
+
...a
|
|
2200
|
+
}),
|
|
2201
|
+
[a]
|
|
2202
|
+
), _e = te(() => {
|
|
2203
|
+
if (!(n !== "infinite" || !o))
|
|
2204
|
+
return o;
|
|
2205
|
+
}, [n, o]), ye = M(() => {
|
|
2206
|
+
R && (n === "infinite" && o ? R.refreshInfiniteCache() : R.refreshCells());
|
|
2207
|
+
}, [R, n, o]), xe = M(
|
|
2208
|
+
(E) => {
|
|
2209
|
+
d(E.currentTarget);
|
|
2210
|
+
},
|
|
2211
|
+
[]
|
|
2212
|
+
), G = M(
|
|
2213
|
+
(E) => {
|
|
2214
|
+
ue(E), R && R.resetRowHeights(), H(null);
|
|
2215
|
+
},
|
|
2216
|
+
[R]
|
|
2217
|
+
), X = M(
|
|
2218
|
+
(E) => {
|
|
2219
|
+
if (!R) return;
|
|
2220
|
+
const ie = R.getColumn(E);
|
|
2221
|
+
ie && R.setColumnVisible(E, !ie.isVisible());
|
|
2222
|
+
},
|
|
2223
|
+
[R]
|
|
2224
|
+
), K = te(
|
|
2225
|
+
() => ({
|
|
2226
|
+
enabled: !0,
|
|
2227
|
+
showRefresh: !0,
|
|
2228
|
+
showExport: !0,
|
|
2229
|
+
showColumnVisibility: !0,
|
|
2230
|
+
showDensity: !0,
|
|
2231
|
+
position: "top",
|
|
2232
|
+
...O
|
|
2233
|
+
}),
|
|
2234
|
+
[O]
|
|
2235
|
+
);
|
|
2236
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2237
|
+
ce,
|
|
2238
|
+
{
|
|
2239
|
+
ref: T,
|
|
2240
|
+
sx: {
|
|
2241
|
+
width: L,
|
|
2242
|
+
height: w,
|
|
2243
|
+
display: "flex",
|
|
2244
|
+
flexDirection: "column",
|
|
2245
|
+
...V
|
|
2246
|
+
},
|
|
2247
|
+
className: $,
|
|
2248
|
+
"aria-label": k,
|
|
2249
|
+
"aria-describedby": x || (se ? `${t}-error` : void 0),
|
|
2250
|
+
"aria-invalid": W.touched && W.error ? !0 : void 0,
|
|
2251
|
+
children: [
|
|
2252
|
+
K.enabled && K.position === "top" && /* @__PURE__ */ s.jsxs(
|
|
2253
|
+
dr,
|
|
2254
|
+
{
|
|
2255
|
+
variant: "dense",
|
|
2256
|
+
sx: {
|
|
2257
|
+
minHeight: "48px !important",
|
|
2258
|
+
px: 2,
|
|
2259
|
+
borderBottom: 1,
|
|
2260
|
+
borderColor: "divider",
|
|
2261
|
+
...K.sx
|
|
2262
|
+
},
|
|
2263
|
+
children: [
|
|
2264
|
+
K.showRefresh && /* @__PURE__ */ s.jsx(
|
|
2265
|
+
ze,
|
|
2266
|
+
{
|
|
2267
|
+
startIcon: /* @__PURE__ */ s.jsx(pr, {}),
|
|
2268
|
+
onClick: ye,
|
|
2269
|
+
disabled: B || !R,
|
|
2270
|
+
size: "small",
|
|
2271
|
+
sx: { mr: 1 },
|
|
2272
|
+
children: "Yenile"
|
|
2273
|
+
}
|
|
2274
|
+
),
|
|
2275
|
+
K.showExport && ((ke = K.excelExport) == null ? void 0 : ke.enabled) && /* @__PURE__ */ s.jsx(
|
|
2276
|
+
Yt,
|
|
2277
|
+
{
|
|
2278
|
+
gridApi: R,
|
|
2279
|
+
label: K.excelExport.label || i || "Excel'e Aktar",
|
|
2280
|
+
disabled: B,
|
|
2281
|
+
columnMapping: K.excelExport.columnMapping,
|
|
2282
|
+
dataTransform: K.excelExport.dataTransform,
|
|
2283
|
+
onExport: K.excelExport.onExport,
|
|
2284
|
+
fileName: K.excelExport.fileName,
|
|
2285
|
+
sheetName: K.excelExport.sheetName
|
|
2286
|
+
}
|
|
2287
|
+
),
|
|
2288
|
+
K.showColumnVisibility && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2289
|
+
/* @__PURE__ */ s.jsx(
|
|
2290
|
+
Ne,
|
|
2291
|
+
{
|
|
2292
|
+
onClick: xe,
|
|
2293
|
+
disabled: B || !R,
|
|
2294
|
+
size: "small",
|
|
2295
|
+
sx: { mr: 1 },
|
|
2296
|
+
title: "Sütun Görünürlüğü",
|
|
2297
|
+
children: /* @__PURE__ */ s.jsx(ot, {})
|
|
2298
|
+
}
|
|
2299
|
+
),
|
|
2300
|
+
/* @__PURE__ */ s.jsx(
|
|
2301
|
+
mr,
|
|
2302
|
+
{
|
|
2303
|
+
anchorEl: oe,
|
|
2304
|
+
open: !!oe,
|
|
2305
|
+
onClose: () => d(null),
|
|
2306
|
+
children: r.map((E) => {
|
|
2307
|
+
var ie;
|
|
2308
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2309
|
+
Ee,
|
|
2310
|
+
{
|
|
2311
|
+
onClick: () => E.field && X(E.field),
|
|
2312
|
+
children: [
|
|
2313
|
+
/* @__PURE__ */ s.jsx(Be, { children: /* @__PURE__ */ s.jsx(
|
|
2314
|
+
Cr,
|
|
2315
|
+
{
|
|
2316
|
+
fontSize: "small",
|
|
2317
|
+
color: (ie = R == null ? void 0 : R.getColumn(E.field || "")) != null && ie.isVisible() ? "primary" : "disabled"
|
|
2318
|
+
}
|
|
2319
|
+
) }),
|
|
2320
|
+
/* @__PURE__ */ s.jsx(Fe, { primary: E.headerName || E.field })
|
|
2321
|
+
]
|
|
2322
|
+
},
|
|
2323
|
+
E.field || E.headerName
|
|
2324
|
+
);
|
|
2325
|
+
})
|
|
2326
|
+
}
|
|
2327
|
+
)
|
|
2328
|
+
] }),
|
|
2329
|
+
K.showDensity && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2330
|
+
/* @__PURE__ */ s.jsx(
|
|
2331
|
+
Ne,
|
|
2332
|
+
{
|
|
2333
|
+
onClick: (E) => H(E.currentTarget),
|
|
2334
|
+
disabled: B,
|
|
2335
|
+
size: "small",
|
|
2336
|
+
sx: { mr: 1 },
|
|
2337
|
+
title: "Yoğunluk",
|
|
2338
|
+
children: /* @__PURE__ */ s.jsx(gr, {})
|
|
2339
|
+
}
|
|
2340
|
+
),
|
|
2341
|
+
/* @__PURE__ */ s.jsxs(
|
|
2342
|
+
mr,
|
|
2343
|
+
{
|
|
2344
|
+
anchorEl: z,
|
|
2345
|
+
open: !!z,
|
|
2346
|
+
onClose: () => H(null),
|
|
2347
|
+
children: [
|
|
2348
|
+
/* @__PURE__ */ s.jsxs(Ee, { onClick: () => G(40), children: [
|
|
2349
|
+
/* @__PURE__ */ s.jsx(Be, { children: /* @__PURE__ */ s.jsx(ut, {}) }),
|
|
2350
|
+
/* @__PURE__ */ s.jsx(Fe, { primary: "Kompakt" })
|
|
2351
|
+
] }),
|
|
2352
|
+
/* @__PURE__ */ s.jsxs(Ee, { onClick: () => G(48), children: [
|
|
2353
|
+
/* @__PURE__ */ s.jsx(Be, { children: /* @__PURE__ */ s.jsx(gr, {}) }),
|
|
2354
|
+
/* @__PURE__ */ s.jsx(Fe, { primary: "Normal" })
|
|
2355
|
+
] }),
|
|
2356
|
+
/* @__PURE__ */ s.jsxs(Ee, { onClick: () => G(56), children: [
|
|
2357
|
+
/* @__PURE__ */ s.jsx(Be, { children: /* @__PURE__ */ s.jsx(ct, {}) }),
|
|
2358
|
+
/* @__PURE__ */ s.jsx(Fe, { primary: "Rahat" })
|
|
2359
|
+
] })
|
|
2360
|
+
]
|
|
2361
|
+
}
|
|
2362
|
+
)
|
|
2363
|
+
] }),
|
|
2364
|
+
(Pe = K.customButtons) == null ? void 0 : Pe.map((E, ie) => /* @__PURE__ */ s.jsx(
|
|
2365
|
+
ze,
|
|
2366
|
+
{
|
|
2367
|
+
startIcon: E.icon,
|
|
2368
|
+
onClick: () => E.onClick(R),
|
|
2369
|
+
disabled: B || E.disabled || !R,
|
|
2370
|
+
size: "small",
|
|
2371
|
+
variant: E.variant || "outlined",
|
|
2372
|
+
sx: { mr: 1 },
|
|
2373
|
+
children: E.label
|
|
2374
|
+
},
|
|
2375
|
+
ie
|
|
2376
|
+
))
|
|
2377
|
+
]
|
|
2378
|
+
}
|
|
2379
|
+
),
|
|
2380
|
+
/* @__PURE__ */ s.jsx(ce, { sx: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ s.jsx("div", { className: I, style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ s.jsx(
|
|
2381
|
+
dt,
|
|
2382
|
+
{
|
|
2383
|
+
rowModelType: n,
|
|
2384
|
+
cacheBlockSize: _,
|
|
2385
|
+
maxBlocksInCache: D,
|
|
2386
|
+
datasource: _e,
|
|
2387
|
+
rowData: n === "clientSide" ? u : void 0,
|
|
2388
|
+
columnDefs: r,
|
|
2389
|
+
defaultColDef: ve,
|
|
2390
|
+
onGridReady: je,
|
|
2391
|
+
pagination: f,
|
|
2392
|
+
paginationPageSize: h,
|
|
2393
|
+
rowSelection: p,
|
|
2394
|
+
rowHeight: ne,
|
|
2395
|
+
headerHeight: m,
|
|
2396
|
+
animateRows: J,
|
|
2397
|
+
suppressColumnVirtualisation: F,
|
|
2398
|
+
suppressRowVirtualisation: Z,
|
|
2399
|
+
localeText: Y,
|
|
2400
|
+
getRowStyle: y,
|
|
2401
|
+
suppressRowClickSelection: B
|
|
2402
|
+
}
|
|
2403
|
+
) }) }),
|
|
2404
|
+
K.enabled && K.position === "bottom" && /* @__PURE__ */ s.jsxs(
|
|
2405
|
+
dr,
|
|
2406
|
+
{
|
|
2407
|
+
variant: "dense",
|
|
2408
|
+
sx: {
|
|
2409
|
+
minHeight: "48px !important",
|
|
2410
|
+
px: 2,
|
|
2411
|
+
borderTop: 1,
|
|
2412
|
+
borderColor: "divider",
|
|
2413
|
+
...K.sx
|
|
2414
|
+
},
|
|
2415
|
+
children: [
|
|
2416
|
+
K.showRefresh && /* @__PURE__ */ s.jsx(
|
|
2417
|
+
ze,
|
|
2418
|
+
{
|
|
2419
|
+
startIcon: /* @__PURE__ */ s.jsx(pr, {}),
|
|
2420
|
+
onClick: ye,
|
|
2421
|
+
disabled: B || !R,
|
|
2422
|
+
size: "small",
|
|
2423
|
+
sx: { mr: 1 },
|
|
2424
|
+
children: "Yenile"
|
|
2425
|
+
}
|
|
2426
|
+
),
|
|
2427
|
+
(Ie = K.customButtons) == null ? void 0 : Ie.map((E, ie) => /* @__PURE__ */ s.jsx(
|
|
2428
|
+
ze,
|
|
2429
|
+
{
|
|
2430
|
+
startIcon: E.icon,
|
|
2431
|
+
onClick: () => E.onClick(R),
|
|
2432
|
+
disabled: B || E.disabled || !R,
|
|
2433
|
+
size: "small",
|
|
2434
|
+
variant: E.variant || "outlined",
|
|
2435
|
+
sx: { mr: 1 },
|
|
2436
|
+
children: E.label
|
|
2437
|
+
},
|
|
2438
|
+
ie
|
|
2439
|
+
))
|
|
2440
|
+
]
|
|
2441
|
+
}
|
|
2442
|
+
),
|
|
2443
|
+
ge && /* @__PURE__ */ s.jsx(
|
|
2444
|
+
ce,
|
|
2445
|
+
{
|
|
2446
|
+
component: "span",
|
|
2447
|
+
sx: {
|
|
2448
|
+
mt: 1,
|
|
2449
|
+
px: 2,
|
|
2450
|
+
fontSize: "0.75rem",
|
|
2451
|
+
color: W.touched && W.error ? "error.main" : "text.secondary"
|
|
2452
|
+
},
|
|
2453
|
+
id: se ? `${t}-error` : void 0,
|
|
2454
|
+
children: ge
|
|
2455
|
+
}
|
|
2456
|
+
)
|
|
2055
2457
|
]
|
|
2056
2458
|
}
|
|
2057
2459
|
);
|
|
2058
2460
|
}
|
|
2059
2461
|
);
|
|
2060
|
-
|
|
2462
|
+
Wt.displayName = "FormikAGGrid";
|
|
2061
2463
|
export {
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2464
|
+
Et as CREDIT_CARD_REGEX,
|
|
2465
|
+
ht as EMAIL_REGEX,
|
|
2466
|
+
Wt as FormikAGGrid,
|
|
2467
|
+
Ut as FormikCheckbox,
|
|
2468
|
+
Vt as FormikDropdown,
|
|
2469
|
+
Lt as FormikMultiSelect,
|
|
2470
|
+
Gt as FormikRadioButton,
|
|
2471
|
+
Mt as FormikTextField,
|
|
2472
|
+
qt as FormikUploadSection,
|
|
2473
|
+
xt as IBAN_REGEX,
|
|
2474
|
+
_r as NAME_REGEX,
|
|
2475
|
+
gt as PHONE_REGEX,
|
|
2476
|
+
vr as PLATE_REGEX,
|
|
2477
|
+
Dr as TC_KIMLIK_NO_REGEX,
|
|
2478
|
+
kt as VKN_REGEX,
|
|
2479
|
+
cn as creditCardSchema,
|
|
2480
|
+
$r as dateSchema,
|
|
2481
|
+
tn as emailSchema,
|
|
2482
|
+
hn as fileSchema,
|
|
2483
|
+
vn as futureDateSchema,
|
|
2484
|
+
Ve as getFileExtension,
|
|
2485
|
+
un as ibanSchema,
|
|
2486
|
+
on as nameSchema,
|
|
2487
|
+
ln as passwordMatchSchema,
|
|
2488
|
+
sn as passwordSchema,
|
|
2489
|
+
gn as pastDateSchema,
|
|
2490
|
+
nn as phoneSchema,
|
|
2491
|
+
dn as plateSchema,
|
|
2492
|
+
rn as tcKimlikNoSchema,
|
|
2493
|
+
$t as toTurkishUpperCase,
|
|
2494
|
+
jt as validateCreditCard,
|
|
2495
|
+
pn as validateDate,
|
|
2496
|
+
pt as validateEmail,
|
|
2497
|
+
mn as validateFile,
|
|
2498
|
+
bt as validateIBAN,
|
|
2499
|
+
yt as validateName,
|
|
2500
|
+
an as validatePassword,
|
|
2501
|
+
vt as validatePhone,
|
|
2502
|
+
Ct as validatePlate,
|
|
2503
|
+
mt as validateTCKimlikNo,
|
|
2504
|
+
Rt as validateVKN,
|
|
2505
|
+
fn as vknSchema
|
|
2103
2506
|
};
|