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